From f5d738e01c2d06225e020e8053566c598d23821f Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 9 Dec 2019 22:31:05 +0000 Subject: [PATCH] Block Editor: Resolve `@wordpress/block-directory` to the expected version, 1.0.6. Follow-up to [46860]. Props aduth, garrett-eclipse, audrasjb, azaozz. Merges [46870] to the 5.3 branch. Fixes #48884. Built from https://develop.svn.wordpress.org/branches/5.3@46871 git-svn-id: http://core.svn.wordpress.org/branches/5.3@46671 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/js/dist/block-editor.js | 4 +- wp-includes/js/dist/block-editor.min.js | 2 +- wp-includes/js/dist/block-library.js | 4 +- wp-includes/js/dist/block-library.min.js | 2 +- wp-includes/js/dist/blocks.js | 4 +- wp-includes/js/dist/blocks.min.js | 2 +- wp-includes/js/dist/components.js | 76 +++++++++--------- wp-includes/js/dist/components.min.js | 4 +- wp-includes/js/dist/edit-post.js | 16 ++-- wp-includes/js/dist/edit-post.min.js | 2 +- wp-includes/js/dist/editor.js | 98 +++--------------------- wp-includes/js/dist/editor.min.js | 2 +- wp-includes/version.php | 2 +- 13 files changed, 69 insertions(+), 149 deletions(-) diff --git a/wp-includes/js/dist/block-editor.js b/wp-includes/js/dist/block-editor.js index a42e9e474c..9c456c82ac 100644 --- a/wp-includes/js/dist/block-editor.js +++ b/wp-includes/js/dist/block-editor.js @@ -4928,7 +4928,7 @@ var external_this_wp_hooks_ = __webpack_require__(27); var external_this_wp_data_ = __webpack_require__(4); // EXTERNAL MODULE: ./node_modules/tinycolor2/tinycolor.js -var tinycolor = __webpack_require__(49); +var tinycolor = __webpack_require__(48); var tinycolor_default = /*#__PURE__*/__webpack_require__.n(tinycolor); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/colors/utils.js @@ -23627,7 +23627,7 @@ try { /***/ }), -/***/ 49: +/***/ 48: /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_RESULT__;// TinyColor v1.4.1 diff --git a/wp-includes/js/dist/block-editor.min.js b/wp-includes/js/dist/block-editor.min.js index 23530dc3eb..5bea7d001e 100644 --- a/wp-includes/js/dist/block-editor.min.js +++ b/wp-includes/js/dist/block-editor.min.js @@ -46,4 +46,4 @@ IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISI 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),l=n(5),s=n(6),u=n(7),d=n(8),f=n(9),p=n(10),b=n(11),h=n(13),m=n(14),v=n(16),g=n(17);t.Diff=i.default,t.diffChars=c.diffChars,t.diffWords=a.diffWords,t.diffWordsWithSpace=a.diffWordsWithSpace,t.diffLines=l.diffLines,t.diffTrimmedLines=l.diffTrimmedLines,t.diffSentences=s.diffSentences,t.diffCss=u.diffCss,t.diffJson=d.diffJson,t.diffArrays=f.diffArrays,t.structuredPatch=m.structuredPatch,t.createTwoFilesPatch=m.createTwoFilesPatch,t.createPatch=m.createPatch,t.applyPatch=p.applyPatch,t.applyPatches=p.applyPatches,t.parsePatch=b.parsePatch,t.merge=h.merge,t.convertChangesToDMP=v.convertChangesToDMP,t.convertChangesToXML=g.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,l=0;ie.length?n:e})),s.value=e.join(d)}else s.value=e.join(n.slice(a,a+s.count));a+=s.count,s.added||(l+=s.count)}}var f=t[c-1];return c>1&&"string"==typeof f.value&&(f.added||f.removed)&&e.equals("",f.value)&&(t[c-2].value+=f.value,t.pop()),t}function o(e){return{newPos:e.newPos,components:e.components.slice(0)}}t.__esModule=!0,t.default=n,n.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.callback;"function"==typeof n&&(i=n,n={}),this.options=n;var c=this;function a(e){return i?(setTimeout((function(){i(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,s=e.length,u=1,d=l+s,f=[{newPos:-1,components:[]}],p=this.extractCommon(f[0],t,e,0);if(f[0].newPos+1>=l&&p+1>=s)return a([{value:this.join(t),count:t.length}]);function b(){for(var n=-1*u;n<=u;n+=2){var i=void 0,d=f[n-1],p=f[n+1],b=(p?p.newPos:0)-n;d&&(f[n-1]=void 0);var h=d&&d.newPos+1=l&&b+1>=s)return a(r(c,i.components,t,e,c.useLongestToken));f[n]=i}else f[n]=void 0}u++}if(i)!function e(){setTimeout((function(){if(u>d)return i();b()||e()}),0)}();else for(;u<=d;){var h=b();if(h)return h}},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,l=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,l=n.compareLine||function(e,t,n,r){return t===r},s=0,u=n.fuzzFactor||0,d=0,f=0,p=void 0,b=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(!l(t+1,r[t],i,c)&&++s>u)return!1;t++}}return!0}for(var m=0;m0?w[0]:" ",B=w.length>0?w.substr(1):w,T=S.linedelimiters[E];if(" "===I)C++;else if("-"===I)r.splice(C,1),i.splice(C,1);else if("+"===I)r.splice(C,0,B),i.splice(C,0,T),C++;else if("\\"===I){var x=S.lines[E-1]?S.lines[E-1][0]:null;"+"===x?p=!0:"-"===x&&(b=!0)}}}if(p)for(;!r[r.length-1];)r.pop(),i.pop();else b&&(r.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]/),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(-l.context)):[],f-=b.length,p-=b.length)}(c=b).push.apply(c,o(r.map((function(e){return(t.added?"+":"-")+e})))),t.added?m+=r.length:h+=r.length}else{if(f)if(r.length<=2*l.context&&e=s.length-2&&r.length<=l.context){var y=/\n$/.test(n),j=/\n$/.test(i);0!=r.length||y?y&&j||b.push("\\ No newline at end of file"):b.splice(k.oldLines,0,"\\ No newline at end of file")}d.push(k),f=0,p=0,b=[]}h+=r.length,m+=r.length}},g=0;ge.length)return!1;for(var n=0;n"):r.removed&&t.push(""),t.push((o=r.value,void 0,o.replace(/&/g,"&").replace(//g,">").replace(/"/g,"""))),r.added?t.push(""):r.removed&&t.push("")}var o;return t.join("")}}])},e.exports=r()},22:function(e,t){!function(){e.exports=this.wp.richText}()},220: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 f=n?i(d):d,p={},b=!0,h={node:f,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&&(b=!1)},delete:function(e){delete h.parent.node[h.key],e&&(b=!1)},remove:function(e){l(h.parent.node)?h.parent.node.splice(h.key,1):delete h.parent.node[h.key],e&&(b=!1)},keys:null,before:function(e){p.before=e},after:function(e){p.after=e},pre:function(e){p.pre=e},post:function(e){p.post=e},stop:function(){a=!1},block:function(){b=!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;e3&&void 0!==arguments[3]?arguments[3]:1,o=Object(Be.a)(e);return o.splice(t,r),Pe(o,e.slice(t,t+r),n)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Object(I.a)({},t,[]);return e.forEach((function(e){var r=e.clientId,o=e.innerBlocks;n[t].push(r),Object.assign(n,Fe(o,r))})),n}function He(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.reduce((function(e,n){return Object.assign(e,Object(I.a)({},n.clientId,t),He(n.innerBlocks,n.clientId))}),{})}function Ue(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.identity,n={},r=Object(Be.a)(e);r.length;){var o=r.shift(),i=o.innerBlocks,c=Object(Ae.a)(o,["innerBlocks"]);r.push.apply(r,Object(Be.a)(i)),n[c.clientId]=t(c)}return n}function Ve(e){return Ue(e,(function(e){return Object(p.omit)(e,"attributes")}))}function ze(e){return Ue(e,(function(e){return e.attributes}))}function Ke(e,t){return e===t?Object(l.a)({},e):t}function We(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&e.clientId===t.clientId&&(n=e.attributes,r=t.attributes,Object(p.isEqual)(Object(p.keys)(n),Object(p.keys)(r)));var n,r}var qe=function(e){return e.reduce((function(e,t){return e[t]={},e}),{})};var Ge=Object(p.flow)(m.combineReducers,(function(e){return function(t,n){if(t&&"SAVE_REUSABLE_BLOCK_SUCCESS"===n.type){var r=n.id,o=n.updatedId;if(r===o)return t;(t=Object(l.a)({},t)).attributes=Object(p.mapValues)(t.attributes,(function(e,n){return"core/block"===t.byClientId[n].name&&e.ref===r?Object(l.a)({},e,{ref:o}):e}))}return e(t,n)}}),(function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=e(t,n);if(r===t)return t;r.cache=t.cache?t.cache:{};var o=function(e){return e.reduce((function(e,n){var r=n;do{e.push(r),r=t.parents[r]}while(r);return e}),[])};switch(n.type){case"RESET_BLOCKS":r.cache=Object(p.mapValues)(Ue(n.blocks),(function(){return{}}));break;case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":var i=Object(p.keys)(Ue(n.blocks));n.rootClientId&&i.push(n.rootClientId),r.cache=Object(l.a)({},r.cache,qe(o(i)));break;case"UPDATE_BLOCK":case"UPDATE_BLOCK_ATTRIBUTES":r.cache=Object(l.a)({},r.cache,qe(o([n.clientId])));break;case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var c=qe(o(n.replacedClientIds));r.cache=Object(l.a)({},Object(p.omit)(r.cache,n.replacedClientIds),Object(p.omit)(c,n.replacedClientIds),qe(Object(p.keys)(Ue(n.blocks))));break;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":r.cache=Object(l.a)({},Object(p.omit)(r.cache,n.removedClientIds),qe(Object(p.difference)(o(n.clientIds),n.clientIds)));break;case"MOVE_BLOCK_TO_POSITION":var a=[n.clientId];n.fromRootClientId&&a.push(n.fromRootClientId),n.toRootClientId&&a.push(n.toRootClientId),r.cache=Object(l.a)({},r.cache,qe(o(a)));break;case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":var s=[];n.rootClientId&&s.push(n.rootClientId),r.cache=Object(l.a)({},r.cache,qe(o(s)));break;case"SAVE_REUSABLE_BLOCK_SUCCESS":var u=Object(p.keys)(Object(p.omitBy)(r.attributes,(function(e,t){return"core/block"!==r.byClientId[t].name||e.ref!==n.updatedId})));r.cache=Object(l.a)({},r.cache,qe(o(u)))}return r}}),(function(e){return function(t,n){var r=function(e){for(var n=e,r=0;r1&&void 0!==arguments[1]?arguments[1]:"";return Object(p.reduce)(t[n],(function(n,r){return[].concat(Object(Be.a)(n),[r],Object(Be.a)(e(t,r)))}),[])}(t.order);return Object(l.a)({},t,{byClientId:Object(l.a)({},Object(p.omit)(t.byClientId,r),Ve(n.blocks)),attributes:Object(l.a)({},Object(p.omit)(t.attributes,r),ze(n.blocks)),order:Object(l.a)({},Object(p.omit)(t.order,r),Fe(n.blocks)),parents:Object(l.a)({},Object(p.omit)(t.parents,r),He(n.blocks)),cache:Object(l.a)({},Object(p.omit)(t.cache,r),Object(p.mapValues)(Ue(n.blocks),(function(){return{}})))})}return e(t,n)}}),(function(e){var t;return function(n,r){var o=e(n,r),i="MARK_LAST_CHANGE_AS_PERSISTENT"===r.type;if(n===o&&!i){var c=Object(p.get)(n,["isPersistentChange"],!0);return n.isPersistentChange===c?n:Object(l.a)({},o,{isPersistentChange:c})}return o=Object(l.a)({},o,{isPersistentChange:i||!We(r,t)}),t=r,o}}),(function(e){var t=new Set(["RECEIVE_BLOCKS"]);return function(n,r){var o=e(n,r);return o!==n&&(o.isIgnoredChange=t.has(r.type)),o}}))({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 Ve(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return Object(l.a)({},e,Ve(t.blocks));case"UPDATE_BLOCK":if(!e[t.clientId])return e;var n=Object(p.omit)(t.updates,"attributes");return Object(p.isEmpty)(n)?e:Object(l.a)({},e,Object(I.a)({},t.clientId,Object(l.a)({},e[t.clientId],n)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?Object(l.a)({},Object(p.omit)(e,t.replacedClientIds),Ve(t.blocks)):e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.omit)(e,t.removedClientIds)}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 ze(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return Object(l.a)({},e,ze(t.blocks));case"UPDATE_BLOCK":return e[t.clientId]&&t.updates.attributes?Object(l.a)({},e,Object(I.a)({},t.clientId,Object(l.a)({},e[t.clientId],t.updates.attributes))):e;case"UPDATE_BLOCK_ATTRIBUTES":if(!e[t.clientId])return e;var n=Object(p.reduce)(t.attributes,(function(n,r,o){return r!==n[o]&&((n=Ke(e[t.clientId],n))[o]=r),n}),e[t.clientId]);return n===e[t.clientId]?e:Object(l.a)({},e,Object(I.a)({},t.clientId,n));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?Object(l.a)({},Object(p.omit)(e,t.replacedClientIds),ze(t.blocks)):e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.omit)(e,t.removedClientIds)}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 Fe(t.blocks);case"RECEIVE_BLOCKS":return Object(l.a)({},e,Object(p.omit)(Fe(t.blocks),""));case"INSERT_BLOCKS":var n=t.rootClientId,r=void 0===n?"":n,o=e[r]||[],i=Fe(t.blocks,r),c=t.index,a=void 0===c?o.length:c;return Object(l.a)({},e,i,Object(I.a)({},r,Pe(o,i[r],a)));case"MOVE_BLOCK_TO_POSITION":var s,u=t.fromRootClientId,d=void 0===u?"":u,f=t.toRootClientId,b=void 0===f?"":f,h=t.clientId,m=t.index,v=void 0===m?e[b].length:m;if(d===b){var g=e[b],O=g.indexOf(h);return Object(l.a)({},e,Object(I.a)({},b,De(e[b],O,v)))}return Object(l.a)({},e,(s={},Object(I.a)(s,d,Object(p.without)(e[d],h)),Object(I.a)(s,b,Pe(e[b],h,v)),s));case"MOVE_BLOCKS_UP":var k=t.clientIds,y=t.rootClientId,j=void 0===y?"":y,_=Object(p.first)(k),S=e[j];if(!S.length||_===Object(p.first)(S))return e;var C=S.indexOf(_);return Object(l.a)({},e,Object(I.a)({},j,De(S,C,C-1,k.length)));case"MOVE_BLOCKS_DOWN":var E=t.clientIds,w=t.rootClientId,B=void 0===w?"":w,T=Object(p.first)(E),x=Object(p.last)(E),L=e[B];if(!L.length||x===Object(p.last)(L))return e;var N=L.indexOf(T);return Object(l.a)({},e,Object(I.a)({},B,De(L,N,N+1,E.length)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var A=t.clientIds;if(!t.blocks)return e;var M=Fe(t.blocks);return Object(p.flow)([function(e){return Object(p.omit)(e,t.replacedClientIds)},function(e){return Object(l.a)({},e,Object(p.omit)(M,""))},function(e){return Object(p.mapValues)(e,(function(e){return Object(p.reduce)(e,(function(e,t){return t===A[0]?[].concat(Object(Be.a)(e),Object(Be.a)(M[""])):(-1===A.indexOf(t)&&e.push(t),e)}),[])}))}])(e);case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.flow)([function(e){return Object(p.omit)(e,t.removedClientIds)},function(e){return Object(p.mapValues)(e,(function(e){return p.without.apply(void 0,[e].concat(Object(Be.a)(t.removedClientIds)))}))}])(e)}return e},parents: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 He(t.blocks);case"RECEIVE_BLOCKS":return Object(l.a)({},e,He(t.blocks));case"INSERT_BLOCKS":return Object(l.a)({},e,He(t.blocks,t.rootClientId||""));case"MOVE_BLOCK_TO_POSITION":return Object(l.a)({},e,Object(I.a)({},t.clientId,t.toRootClientId||""));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(l.a)({},Object(p.omit)(e,t.replacedClientIds),He(t.blocks,e[t.clientIds[0]]));case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.omit)(e,t.removedClientIds)}return e}});var $e={},Ye={start:$e,end:$e,isMultiSelecting:!1,isEnabled:!0,initialPosition:null};var Xe=Object(m.combineReducers)({blocks:Ge,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]:Ye,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"CLEAR_SELECTED_BLOCK":return e.start&&e.start.clientId?Object(l.a)({},e,{start:$e,end:$e,isMultiSelecting:!1,initialPosition:null}):e;case"START_MULTI_SELECT":return e.isMultiSelecting?e:Object(l.a)({},e,{isMultiSelecting:!0,initialPosition:null});case"STOP_MULTI_SELECT":return e.isMultiSelecting?Object(l.a)({},e,{isMultiSelecting:!1,initialPosition:null}):e;case"MULTI_SELECT":return Object(l.a)({},e,{isMultiSelecting:e.isMultiSelecting,start:{clientId:t.start},end:{clientId:t.end}});case"SELECT_BLOCK":return t.clientId===e.start.clientId&&t.clientId===e.end.clientId?e:Object(l.a)({},e,{initialPosition:t.initialPosition,start:{clientId:t.clientId},end:{clientId:t.clientId}});case"REPLACE_INNER_BLOCKS":case"INSERT_BLOCKS":return t.updateSelection?Object(l.a)({},e,{start:{clientId:t.blocks[0].clientId},end:{clientId:t.blocks[0].clientId}}):e;case"REMOVE_BLOCKS":return t.clientIds&&t.clientIds.length&&-1!==t.clientIds.indexOf(e.start.clientId)?Object(l.a)({},e,{start:$e,end:$e,isMultiSelecting:!1,initialPosition:null}):e;case"REPLACE_BLOCKS":if(-1===t.clientIds.indexOf(e.start.clientId))return e;var n=t.indexToSelect||t.blocks.length-1,r=t.blocks[n];return r?r.clientId===e.start.clientId&&r.clientId===e.end.clientId?e:Object(l.a)({},e,{start:{clientId:r.clientId},end:{clientId:r.clientId}}):Object(l.a)({},e,{start:$e,end:$e,isMultiSelecting:!1,initialPosition:null});case"TOGGLE_SELECTION":return Object(l.a)({},e,{isEnabled:t.isSelectionEnabled});case"SELECTION_CHANGE":return Object(l.a)({},e,{start:{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.startOffset},end:{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.endOffset}})}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(l.a)({},e,Object(I.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(p.omit)(e,t.clientIds);case"UPDATE_BLOCK_LIST_SETTINGS":var n=t.clientId;return t.settings?Object(p.isEqual)(e[n],t.settings)?e:Object(l.a)({},e,Object(I.a)({},n,t.settings)):e.hasOwnProperty(n)?Object(p.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(l.a)({},e,{isValid:t.isValid})}return e},settings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Re,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_SETTINGS":return Object(l.a)({},e,t.settings)}return e},preferences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Me,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 r=n.name,o={name:n.name};return Object(i.isReusableBlock)(n)&&(o.ref=n.attributes.ref,r+="/"+n.attributes.ref),Object(l.a)({},e,{insertUsage:Object(l.a)({},e.insertUsage,Object(I.a)({},r,{time:t.time,count:e.insertUsage[r]?e.insertUsage[r].count+1:1,insert:o}))})}),e)}return e},lastBlockAttributesChange:function(e,t){switch(t.type){case"UPDATE_BLOCK":if(!t.updates.attributes)break;return Object(I.a)({},t.clientId,t.updates.attributes);case"UPDATE_BLOCK_ATTRIBUTES":return Object(I.a)({},t.clientId,t.attributes)}return null},isNavigationMode:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_NAVIGATION_MODE"===t.type?t.isNavigationMode:e},didAutomaticChange:function(e,t){return"MARK_AUTOMATIC_CHANGE"===t.type}}),Ze=n(72),Je=n.n(Ze),Qe=n(218),et=n.n(Qe),tt=n(45),nt=n(20),rt=n.n(nt);function ot(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o1&&void 0!==arguments[1]?arguments[1]:null,clientId:e}}function Ot(e){var t;return rt.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,ot("core/block-editor","getPreviousBlockClientId",e);case 2:if(!(t=n.sent)){n.next=6;break}return n.next=6,gt(t,-1);case 6:case"end":return n.stop()}}),at)}function kt(e){var t;return rt.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,ot("core/block-editor","getNextBlockClientId",e);case 2:if(!(t=n.sent)){n.next=6;break}return n.next=6,gt(t);case 6:case"end":return n.stop()}}),lt)}function yt(){return{type:"START_MULTI_SELECT"}}function jt(){return{type:"STOP_MULTI_SELECT"}}function _t(e,t){return{type:"MULTI_SELECT",start:e,end:t}}function St(){return{type:"CLEAR_SELECTED_BLOCK"}}function Ct(){return{type:"TOGGLE_SELECTION",isSelectionEnabled:!(arguments.length>0&&void 0!==arguments[0])||arguments[0]}}function Et(e,t){var n=Object(p.get)(t,["__experimentalPreferredStyleVariations","value"],{});return e.map((function(e){var t=e.name;if(!n[t])return e;var r=Object(p.get)(e,["attributes","className"]);if(Object(p.includes)(r,"is-style-"))return e;var o=e.attributes,i=void 0===o?{}:o,c=n[t];return Object(l.a)({},e,{attributes:Object(l.a)({},i,{className:"".concat(r||""," is-style-").concat(c).trim()})})}))}function wt(e,t,n){var r,o,i;return rt.a.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return e=Object(p.castArray)(e),c.t0=Et,c.t1=Object(p.castArray)(t),c.next=5,ot("core/block-editor","getSettings");case 5:return c.t2=c.sent,t=(0,c.t0)(c.t1,c.t2),c.next=9,ot("core/block-editor","getBlockRootClientId",Object(p.first)(e));case 9:r=c.sent,o=0;case 11:if(!(o1&&void 0!==a[1]?a[1]:"",n=a.length>2&&void 0!==a[2]?a[2]:"",r=a.length>3?a[3]:void 0,l.next=5,ot("core/block-editor","getTemplateLock",t);case 5:if("all"!==(o=l.sent)){l.next=8;break}return l.abrupt("return");case 8:if(i={type:"MOVE_BLOCK_TO_POSITION",fromRootClientId:t,toRootClientId:n,clientId:e,index:r},t!==n){l.next=13;break}return l.next=12,i;case 12:return l.abrupt("return");case 13:if("insert"!==o){l.next=15;break}return l.abrupt("return");case 15:return l.next=17,ot("core/block-editor","getBlockName",e);case 17:return c=l.sent,l.next=20,ot("core/block-editor","canInsertBlockType",c,n);case 20:if(!l.sent){l.next=24;break}return l.next=24,i;case 24:case"end":return l.stop()}}),ut)}function Nt(e,t,n){return At([e],t,n,!(arguments.length>3&&void 0!==arguments[3])||arguments[3])}function At(e,t,n){var r,o,i,c,a,l,s,u,d=arguments;return rt.a.wrap((function(f){for(;;)switch(f.prev=f.next){case 0:return r=!(d.length>3&&void 0!==d[3])||d[3],f.t0=Et,f.t1=Object(p.castArray)(e),f.next=5,ot("core/block-editor","getSettings");case 5:f.t2=f.sent,e=(0,f.t0)(f.t1,f.t2),o=[],i=!0,c=!1,a=void 0,f.prev=11,l=e[Symbol.iterator]();case 13:if(i=(s=l.next()).done){f.next=22;break}return u=s.value,f.next=17,ot("core/block-editor","canInsertBlockType",u.name,n);case 17:f.sent&&o.push(u);case 19:i=!0,f.next=13;break;case 22:f.next=28;break;case 24:f.prev=24,f.t3=f.catch(11),c=!0,a=f.t3;case 28:f.prev=28,f.prev=29,i||null==l.return||l.return();case 31:if(f.prev=31,!c){f.next=34;break}throw a;case 34:return f.finish(31);case 35:return f.finish(28);case 36:if(!o.length){f.next=38;break}return f.abrupt("return",{type:"INSERT_BLOCKS",blocks:o,index:t,rootClientId:n,time:Date.now(),updateSelection:r});case 38:case"end":return f.stop()}}),dt,null,[[11,24,28,36],[29,,31,35]])}function Mt(e,t){return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t}}function Rt(){return{type:"HIDE_INSERTION_POINT"}}function Pt(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}function Dt(){return{type:"SYNCHRONIZE_TEMPLATE"}}function Ft(e,t){return{type:"MERGE_BLOCKS",blocks:[e,t]}}function Ht(e){var t,n=arguments;return rt.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t=!(n.length>1&&void 0!==n[1])||n[1],e=Object(p.castArray)(e),!t){r.next=5;break}return r.next=5,Ot(e[0]);case 5:return r.next=7,{type:"REMOVE_BLOCKS",clientIds:e};case 7:return r.delegateYield(pt(),"t0",8);case 8:case"end":return r.stop()}}),ft)}function Ut(e,t){return Ht([e],t)}function Vt(e,t){return{type:"REPLACE_INNER_BLOCKS",rootClientId:e,blocks:t,updateSelection:!(arguments.length>2&&void 0!==arguments[2])||arguments[2],time:Date.now()}}function zt(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function Kt(){return{type:"START_TYPING"}}function Wt(){return{type:"STOP_TYPING"}}function qt(){return{type:"ENTER_FORMATTED_TEXT"}}function Gt(){return{type:"EXIT_FORMATTED_TEXT"}}function $t(e,t,n,r){return{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:r}}function Yt(e,t,n){var r=Object(i.getDefaultBlockName)();if(r)return Nt(Object(i.createBlock)(r,e),n,t)}function Xt(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function Zt(e){return{type:"UPDATE_SETTINGS",settings:e}}function Jt(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function Qt(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function en(){return{type:"MARK_AUTOMATIC_CHANGE"}}function tn(){return{type:"SET_NAVIGATION_MODE",isNavigationMode:!(arguments.length>0&&void 0!==arguments[0])||arguments[0]}}var nn=n(36),rn=3,on=2,cn=1,an=0,ln=Object(u.createElement)(P.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(P.Rect,{x:"0",fill:"none",width:"24",height:"24"}),Object(u.createElement)(P.G,null,Object(u.createElement)(P.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"}))),sn=[];function un(e,t){var n=e.blocks.byClientId[t];return n?n.name:null}function dn(e,t){var n=e.blocks.byClientId[t];return!!n&&n.isValid}function fn(e,t){return e.blocks.byClientId[t]?e.blocks.attributes[t]:null}var pn=Object(nn.a)((function(e,t){var n=e.blocks.byClientId[t];return n?Object(l.a)({},n,{attributes:fn(e,t),innerBlocks:hn(e,t)}):null}),(function(e,t){return[e.blocks.cache[t]]})),bn=Object(nn.a)((function(e,t){var n=e.blocks.byClientId[t];return n?Object(l.a)({},n,{attributes:fn(e,t)}):null}),(function(e,t){return[e.blocks.byClientId[t],e.blocks.attributes[t]]})),hn=Object(nn.a)((function(e,t){return Object(p.map)(Wn(e,t),(function(t){return pn(e,t)}))}),(function(e){return[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]})),mn=function e(t,n){return Object(p.flatMap)(n,(function(n){var r=Wn(t,n);return[].concat(Object(Be.a)(r),Object(Be.a)(e(t,r)))}))},vn=Object(nn.a)((function(e){var t=Wn(e);return[].concat(Object(Be.a)(t),Object(Be.a)(mn(e,t)))}),(function(e){return[e.blocks.order]})),gn=Object(nn.a)((function(e,t){var n=vn(e);return t?Object(p.reduce)(n,(function(n,r){return e.blocks.byClientId[r].name===t?n+1:n}),0):n.length}),(function(e){return[e.blocks.order,e.blocks.byClientId]})),On=Object(nn.a)((function(e,t){return Object(p.map)(Object(p.castArray)(t),(function(t){return pn(e,t)}))}),(function(e){return[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]}));function kn(e,t){return Wn(e,t).length}function yn(e){return e.blockSelection.start}function jn(e){return e.blockSelection.end}function _n(e){return e.blockSelection.start.clientId}function Sn(e){return e.blockSelection.end.clientId}function Cn(e){var t=Rn(e).length;return t||(e.blockSelection.start.clientId?1:0)}function En(e){var t=e.blockSelection,n=t.start,r=t.end;return!!n.clientId&&n.clientId===r.clientId}function wn(e){var t=e.blockSelection,n=t.start,r=t.end;return n.clientId&&n.clientId===r.clientId&&e.blocks.byClientId[n.clientId]?n.clientId:null}function In(e){var t=wn(e);return t?pn(e,t):null}function Bn(e,t){return void 0!==e.blocks.parents[t]?e.blocks.parents[t]:null}function Tn(e,t){var n,r=t;do{n=r,r=e.blocks.parents[r]}while(r);return n}function xn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(void 0===t&&(t=wn(e)),void 0===t&&(t=n<0?Dn(e):Fn(e)),!t)return null;var r=Bn(e,t);if(null===r)return null;var o=e.blocks.order[r],i=o.indexOf(t)+1*n;return i<0?null:i===o.length?null:o[i]}function Ln(e,t){return xn(e,t,-1)}function Nn(e,t){return xn(e,t,1)}function An(e){var t=e.blockSelection,n=t.start,r=t.end;return n.clientId===r.clientId&&n.clientId?e.blockSelection.initialPosition:null}var Mn=Object(nn.a)((function(e){var t=e.blockSelection,n=t.start,r=t.end;if(void 0===n.clientId||void 0===r.clientId)return sn;if(n.clientId===r.clientId)return[n.clientId];var o=Bn(e,n.clientId);if(null===o)return sn;var i=Wn(e,o),c=i.indexOf(n.clientId),a=i.indexOf(r.clientId);return c>a?i.slice(a,c+1):i.slice(c,a+1)}),(function(e){return[e.blocks.order,e.blockSelection.start.clientId,e.blockSelection.end.clientId]}));function Rn(e){var t=e.blockSelection,n=t.start,r=t.end;return n.clientId===r.clientId?sn:Mn(e)}var Pn=Object(nn.a)((function(e){var t=Rn(e);return t.length?t.map((function(t){return pn(e,t)})):sn}),(function(e){return[].concat(Object(Be.a)(Mn.getDependants(e)),[e.blocks.byClientId,e.blocks.order,e.blocks.attributes])}));function Dn(e){return Object(p.first)(Rn(e))||null}function Fn(e){return Object(p.last)(Rn(e))||null}function Hn(e,t){return Dn(e)===t}function Un(e,t){return-1!==Rn(e).indexOf(t)}var Vn=Object(nn.a)((function(e,t){for(var n=t,r=!1;n&&!r;)r=Un(e,n=Bn(e,n));return r}),(function(e){return[e.blocks.order,e.blockSelection.start.clientId,e.blockSelection.end.clientId]}));function zn(e){var t=e.blockSelection,n=t.start,r=t.end;return n.clientId===r.clientId?null:n.clientId||null}function Kn(e){var t=e.blockSelection,n=t.start,r=t.end;return n.clientId===r.clientId?null:r.clientId||null}function Wn(e,t){return e.blocks.order[t||""]||sn}function qn(e,t,n){return Wn(e,n).indexOf(t)}function Gn(e,t){var n=e.blockSelection,r=n.start,o=n.end;return r.clientId===o.clientId&&r.clientId===t}function $n(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Object(p.some)(Wn(e,t),(function(t){return Gn(e,t)||Un(e,t)||n&&$n(e,t,n)}))}function Yn(e,t){if(!t)return!1;var n=Rn(e),r=n.indexOf(t);return r>-1&&r2&&void 0!==arguments[2]?arguments[2]:null,r=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Object(p.isBoolean)(e)?e:Object(p.isArray)(e)?Object(p.includes)(e,t):n},o=Object(i.getBlockType)(t);if(!o)return!1;var c=br(e),a=c.allowedBlockTypes,l=r(a,t,!0);if(!l)return!1;var s=!!cr(e,n);if(s)return!1;var u=pr(e,n),d=Object(p.get)(u,["allowedBlocks"]),f=r(d,t),b=o.parent,h=un(e,n),m=r(b,h);return null!==f&&null!==m?f||m:null!==f?f:null===m||m},lr=Object(nn.a)(ar,(function(e,t,n){return[e.blockListSettings[n],e.blocks.byClientId[n],e.settings.allowedBlockTypes,e.settings.templateLock]}));function sr(e,t){return Object(p.get)(e.preferences.insertUsage,[t],null)}var ur=function(e,t,n){return!!Object(i.hasBlockSupport)(t,"inserter",!0)&&ar(e,t.name,n)},dr=Object(nn.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=function(e,t,n){return n?rn:t>0?on:"common"===e?cn:an},r=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}},o=function(t){var o=t.name,c=!1;Object(i.hasBlockSupport)(t.name,"multiple",!0)||(c=Object(p.some)(On(e,vn(e)),{name:t.name}));var a=Object(p.isArray)(t.parent),l=sr(e,o)||{},s=l.time,u=l.count,d=void 0===u?0:u;return{id:o,name:t.name,initialAttributes:{},title:t.title,icon:t.icon,category:t.category,keywords:t.keywords,isDisabled:c,utility:n(t.category,d,a),frecency:r(s,d)}},c=function(t){var o,c="core/block/".concat(t.id),a=mr(e,t.id);1===a.length&&(o=Object(i.getBlockType)(a[0].name));var l=sr(e,c)||{},s=l.time,u=l.count,d=void 0===u?0:u,f=n("reusable",d,!1),p=r(s,d);return{id:c,name:"core/block",initialAttributes:{ref:t.id},title:t.title,icon:o?o.icon:ln,category:"reusable",keywords:[],isDisabled:!1,utility:f,frecency:p}},a=Object(i.getBlockTypes)().filter((function(n){return ur(e,n,t)})).map(o),l=ar(e,"core/block",t)?Or(e).map(c):[];return Object(p.orderBy)([].concat(Object(Be.a)(a),Object(Be.a)(l)),["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,Or(e),Object(i.getBlockTypes)()]})),fr=Object(nn.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Object(p.some)(Object(i.getBlockTypes)(),(function(n){return ur(e,n,t)}));if(n)return!0;var r=ar(e,"core/block",t)&&Or(e).length>0;return r}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Or(e),Object(i.getBlockTypes)()]}));function pr(e,t){return e.blockListSettings[t]}function br(e){return e.settings}function hr(e){return e.blocks.isPersistentChange}var mr=Object(nn.a)((function(e,t){var n=Object(p.find)(Or(e),(function(e){return e.id===t}));return n?Object(i.parse)(n.content):null}),(function(e){return[Or(e)]}));function vr(e){return e.blocks.isIgnoredChange}function gr(e){return e.lastBlockAttributesChange}function Or(e){return Object(p.get)(e,["settings","__experimentalReusableBlocks"],sn)}function kr(e){return e.isNavigationMode}function yr(e){return e.didAutomaticChange}var jr={MERGE_BLOCKS:function(e,t){var n=t.dispatch,r=t.getState(),o=Object(Ne.a)(e.blocks,2),a=o[0],s=o[1],u=pn(r,a),d=Object(i.getBlockType)(u.name);if(d.merge){var f=pn(r,s),b=Object(i.getBlockType)(f.name),h=yn(r),m=h.clientId,v=h.attributeKey,g=h.offset,O=(m===a||m===s)&&void 0!==v&&void 0!==g,k=Object(i.cloneBlock)(u),y=Object(i.cloneBlock)(f);if(O){var j=m===a?k:y,_=j.attributes[v],S=(m===a?d:b).attributes[v],C=S.multiline,E=S.__unstableMultilineWrapperTags,w=Object(c.insert)(Object(c.create)({html:_,multilineTag:C,multilineWrapperTags:E}),"†",g,g);j.attributes[v]=Object(c.toHTMLString)({value:w,multilineTag:C})}var I=u.name===f.name?[y]:Object(i.switchToBlockType)(y,u.name);if(I&&I.length){var B=d.merge(k.attributes,I[0].attributes);if(O){var T=Object(p.findKey)(B,(function(e){return"string"==typeof e&&-1!==e.indexOf("†")})),x=B[T],L=d.attributes[T],N=L.multiline,A=L.__unstableMultilineWrapperTags,M=Object(c.create)({html:x,multilineTag:N,multilineWrapperTags:A}),R=M.text.indexOf("†"),P=Object(c.remove)(M,R,R+1),D=Object(c.toHTMLString)({value:P,multilineTag:N});B[T]=D,n($t(u.clientId,T,R,R))}n(wt([u.clientId,f.clientId],[Object(l.a)({},u,{attributes:Object(l.a)({},u.attributes,B)})].concat(Object(Be.a)(I.slice(1)))))}}else n(gt(u.clientId))},RESET_BLOCKS:[function(e,t){var n=t.getState(),r=ir(n),o=cr(n),c=!r||"all"!==o||Object(i.doBlocksMatchTemplate)(e.blocks,r);if(c!==or(n))return Pt(c)}],MULTI_SELECT:function(e,t){var n=Cn((0,t.getState)());Object(tt.speak)(Object(H.sprintf)(Object(H._n)("%s block selected.","%s blocks selected.",n),n),"assertive")},SYNCHRONIZE_TEMPLATE:function(e,t){var n=(0,t.getState)(),r=hn(n),o=ir(n);return bt(Object(i.synchronizeBlocksWithTemplate)(r,o))}};var _r=function(e){var t,n=[Je()(jr),et.a],r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:e.getState,dispatch:function(){return r.apply(void 0,arguments)}};return t=n.map((function(e){return e(o)})),r=p.flowRight.apply(void 0,Object(Be.a)(t))(e.dispatch),e.dispatch=r,e},Sr={reducer:Xe,selectors:o,actions:r,controls:it},Cr=Object(m.registerStore)("core/block-editor",Object(l.a)({},Sr,{persist:["preferences"]}));_r(Cr);var Er=Object(b.createHigherOrderComponent)((function(e){return Object(m.withRegistry)((function(t){var n=t.useSubRegistry,r=void 0===n||n,o=t.registry,i=Object(Ae.a)(t,["useSubRegistry","registry"]);if(!r)return Object(u.createElement)(e,Object(s.a)({registry:o},i));var c=Object(u.useState)(null),a=Object(Ne.a)(c,2),l=a[0],d=a[1];return Object(u.useEffect)((function(){var e=Object(m.createRegistry)({},o),t=e.registerStore("core/block-editor",Sr);_r(t),d(e)}),[o]),l?Object(u.createElement)(m.RegistryProvider,{value:l},Object(u.createElement)(e,Object(s.a)({registry:l},i))):null}))}),"withRegistryProvider"),wr=function(e){function t(){return Object(j.a)(this,t),Object(S.a)(this,Object(C.a)(t).apply(this,arguments))}return Object(w.a)(t,e),Object(_.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,r=t.updateSettings,o=t.value,i=t.resetBlocks,c=t.registry;n!==e.settings&&r(n),c!==e.registry&&this.attachChangeObserver(c),null!==this.isSyncingOutcomingValue&&this.isSyncingOutcomingValue===o?this.isSyncingOutcomingValue=null:o!==e.value&&(this.isSyncingOutcomingValue=null,this.isSyncingIncomingValue=o,i(o))}},{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"),r=n.getBlocks,o=n.isLastBlockChangePersistent,i=n.__unstableIsLastBlockChangeIgnored,c=r(),a=o();this.unsubscribe=e.subscribe((function(){var e=t.props,n=e.onChange,l=void 0===n?p.noop:n,s=e.onInput,u=void 0===s?p.noop:s,d=r(),f=o();if(d!==c&&(t.isSyncingIncomingValue||i()))return t.isSyncingIncomingValue=null,c=d,void(a=f);(d!==c||f&&!a)&&(d!==c&&(t.isSyncingOutcomingValue=d),c=d,(a=f)?l(c):u(c))}))}},{key:"render",value:function(){return this.props.children}}]),t}(u.Component),Ir=Object(b.compose)([Er,Object(m.withDispatch)((function(e){var t=e("core/block-editor");return{updateSettings:t.updateSettings,resetBlocks:t.resetBlocks}}))])(wr),Br=function(e){var t=e.children,n=e.clientId,r=e.isBlockInSelection,o=Object(m.useSelect)((function(e){return e("core/block-editor").hasSelectedInnerBlock(n,!0)})),i=r||o;return Object(u.createElement)(m.__experimentalAsyncModeProvider,{value:!i},t)},Tr=n(64),xr=n(25);function Lr(e,t,n,r,o,i){var c=n+1;return e>1?function(e,t,n,r,o){var i=t+1;if(o<0&&n)return Object(H.__)("Blocks cannot be moved up as they are already at the top");if(o>0&&r)return Object(H.__)("Blocks cannot be moved down as they are already at the bottom");if(o<0&&!n)return Object(H.sprintf)(Object(H._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(H.sprintf)(Object(H._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(H.sprintf)(Object(H.__)("Block %s is the only block, and cannot be moved"),t):i>0&&!o?Object(H.sprintf)(Object(H.__)("Move %1$s block from position %2$d down to position %3$d"),t,c,c+1):i>0&&o?Object(H.sprintf)(Object(H.__)("Block %s is at the end of the content and can’t be moved down"),t):i<0&&!r?Object(H.sprintf)(Object(H.__)("Move %1$s block from position %2$d up to position %3$d"),t,c,c-1):i<0&&r?Object(H.sprintf)(Object(H.__)("Block %s is at the beginning of the content and can’t be moved up"),t):void 0}var Nr=Object(u.createElement)(P.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(u.createElement)(P.Polygon,{points:"9,4.5 3.3,10.1 4.8,11.5 9,7.3 13.2,11.5 14.7,10.1 "})),Ar=Object(u.createElement)(P.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(u.createElement)(P.Polygon,{points:"9,13.5 14.7,7.9 13.2,6.5 9,10.7 4.8,6.5 3.3,7.9 "})),Mr=Object(u.createElement)(P.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(u.createElement)(P.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"})),Rr=Object(m.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,l={type:"block",srcIndex:i,srcRootClientId:r,srcClientId:n};return Object(u.createElement)(P.Draggable,{elementId:o,transferData:l,onDragStart:c,onDragEnd:a},(function(e){var n=e.onDraggableStart,r=e.onDraggableEnd;return t({onDraggableStart:n,onDraggableEnd:r})}))})),Pr=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 l=f()("editor-block-mover__control-drag-handle block-editor-block-mover__control-drag-handle",n);return Object(u.createElement)(Rr,{clientId:a,blockElementId:c,onDragStart:o,onDragEnd:i},(function(e){var t=e.onDraggableStart,n=e.onDraggableEnd;return Object(u.createElement)("div",{className:l,"aria-hidden":"true",onDragStart:t,onDragEnd:n,draggable:!0},r)}))},Dr=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).state={isFocused:!1},e.onFocus=e.onFocus.bind(Object(E.a)(e)),e.onBlur=e.onBlur.bind(Object(E.a)(e)),e}return Object(w.a)(t,e),Object(_.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,l=e.clientIds,s=e.blockElementId,d=e.blockType,b=e.firstIndex,h=e.isLocked,m=e.instanceId,v=e.isHidden,g=e.rootClientId,O=this.state.isFocused,k=Object(p.castArray)(l).length;return h||r&&o&&!g?null:Object(u.createElement)("div",{className:f()("editor-block-mover block-editor-block-mover",{"is-visible":O||!v})},Object(u.createElement)(P.IconButton,{className:"editor-block-mover__control block-editor-block-mover__control",onClick:r?null:t,icon:Nr,label:Object(H.__)("Move up"),"aria-describedby":"block-editor-block-mover__up-description-".concat(m),"aria-disabled":r,onFocus:this.onFocus,onBlur:this.onBlur}),Object(u.createElement)(Pr,{className:"editor-block-mover__control block-editor-block-mover__control",icon:Mr,clientId:l,blockElementId:s,isVisible:i,onDragStart:c,onDragEnd:a}),Object(u.createElement)(P.IconButton,{className:"editor-block-mover__control block-editor-block-mover__control",onClick:o?null:n,icon:Ar,label:Object(H.__)("Move down"),"aria-describedby":"block-editor-block-mover__down-description-".concat(m),"aria-disabled":o,onFocus:this.onFocus,onBlur:this.onBlur}),Object(u.createElement)("span",{id:"block-editor-block-mover__up-description-".concat(m),className:"editor-block-mover__description block-editor-block-mover__description"},Lr(k,d&&d.title,b,r,o,-1)),Object(u.createElement)("span",{id:"block-editor-block-mover__down-description-".concat(m),className:"editor-block-mover__description block-editor-block-mover__description"},Lr(k,d&&d.title,b,r,o,1)))}}]),t}(u.Component),Fr=Object(b.compose)(Object(m.withSelect)((function(e,t){var n=t.clientIds,r=e("core/block-editor"),o=r.getBlock,c=r.getBlockIndex,a=r.getTemplateLock,l=r.getBlockRootClientId,s=r.getBlockOrder,u=Object(p.castArray)(n),d=Object(p.first)(u),f=o(d),b=l(Object(p.first)(u)),h=s(b),m=c(d,b),v=c(Object(p.last)(u),b);return{blockType:f?Object(i.getBlockType)(f.name):null,isLocked:"all"===a(b),rootClientId:b,firstIndex:m,isFirst:0===m,isLast:v===h.length-1}})),Object(m.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(p.partial)(i,n,r),onMoveUp:Object(p.partial)(c,n,r)}})),b.withInstanceId)(Dr);var Hr=function(e){var t=e.className,n=e.actions,r=e.children,o=e.secondaryActions;return Object(u.createElement)("div",{className:f()(t,"editor-warning block-editor-warning")},Object(u.createElement)("div",{className:"editor-warning__contents block-editor-warning__contents"},Object(u.createElement)("p",{className:"editor-warning__message block-editor-warning__message"},r),u.Children.count(n)>0&&Object(u.createElement)("div",{className:"editor-warning__actions block-editor-warning__actions"},u.Children.map(n,(function(e,t){return Object(u.createElement)("span",{key:t,className:"editor-warning__action block-editor-warning__action"},e)})))),o&&Object(u.createElement)(P.Dropdown,{className:"editor-warning__secondary block-editor-warning__secondary",position:"bottom left",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(u.createElement)(P.IconButton,{icon:"ellipsis",label:Object(H.__)("More options"),onClick:n,"aria-expanded":t})},renderContent:function(){return Object(u.createElement)(P.MenuGroup,null,o.map((function(e,t){return Object(u.createElement)(P.MenuItem,{onClick:e.onClick,key:t},e.title)})))}}))},Ur=n(219),Vr=function(e){var t=e.title,n=e.rawContent,r=e.renderedContent,o=e.action,i=e.actionText,c=e.className;return Object(u.createElement)("div",{className:c},Object(u.createElement)("div",{className:"editor-block-compare__content block-editor-block-compare__content"},Object(u.createElement)("h2",{className:"editor-block-compare__heading block-editor-block-compare__heading"},t),Object(u.createElement)("div",{className:"editor-block-compare__html block-editor-block-compare__html"},n),Object(u.createElement)("div",{className:"editor-block-compare__preview block-editor-block-compare__preview edit-post-visual-editor"},r)),Object(u.createElement)("div",{className:"editor-block-compare__action block-editor-block-compare__action"},Object(u.createElement)(P.Button,{isLarge:!0,tabIndex:"0",onClick:o},i)))},zr=function(e){function t(){return Object(j.a)(this,t),Object(S.a)(this,Object(C.a)(t).apply(this,arguments))}return Object(w.a)(t,e),Object(_.a)(t,[{key:"getDifference",value:function(e,t){return Object(Ur.diffChars)(e,t).map((function(e,t){var n=f()({"editor-block-compare__added block-editor-block-compare__added":e.added,"editor-block-compare__removed block-editor-block-compare__removed":e.removed});return Object(u.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(p.castArray)(e),n=t.map((function(e){return Object(i.getSaveContent)(e.name,e.attributes,e.innerBlocks)})),r=t.map((function(e){return Object(i.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)),l=this.getDifference(c.rawContent,a.rawContent);return Object(u.createElement)("div",{className:"editor-block-compare__wrapper block-editor-block-compare__wrapper"},Object(u.createElement)(Vr,{title:Object(H.__)("Current"),className:"editor-block-compare__current block-editor-block-compare__current",action:n,actionText:Object(H.__)("Convert to HTML"),rawContent:c.rawContent,renderedContent:c.renderedContent}),Object(u.createElement)(Vr,{title:Object(H.__)("After Conversion"),className:"editor-block-compare__converted block-editor-block-compare__converted",action:r,actionText:i,rawContent:l,renderedContent:a.renderedContent}))}}]),t}(u.Component),Kr=function(e){function t(e){var n;return Object(j.a)(this,t),(n=Object(S.a)(this,Object(C.a)(t).call(this,e))).state={compare:!1},n.onCompare=n.onCompare.bind(Object(E.a)(n)),n.onCompareClose=n.onCompareClose.bind(Object(E.a)(n)),n}return Object(w.a)(t,e),Object(_.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,c=e.block,a=!!Object(i.getBlockType)("core/html"),l=this.state.compare,s=[{title:Object(H.__)("Convert to Classic Block"),onClick:r},{title:Object(H.__)("Attempt Block Recovery"),onClick:o}];return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(Hr,{actions:[Object(u.createElement)(P.Button,{key:"convert",onClick:this.onCompare,isLarge:!0,isPrimary:!a},Object(H._x)("Resolve","imperative verb")),a&&Object(u.createElement)(P.Button,{key:"edit",onClick:t,isLarge:!0,isPrimary:!0},Object(H.__)("Convert to HTML"))],secondaryActions:s},Object(H.__)("This block contains unexpected or invalid content.")),l&&Object(u.createElement)(P.Modal,{title:Object(H.__)("Resolve Block"),onRequestClose:this.onCompareClose,className:"editor-block-compare block-editor-block-compare"},Object(u.createElement)(zr,{block:c,onKeep:t,onConvert:n,convertor:Wr,convertButtonText:Object(H.__)("Convert to Blocks")})))}}]),t}(u.Component),Wr=function(e){return Object(i.rawHandler)({HTML:e.originalContent})},qr=Object(b.compose)([Object(m.withSelect)((function(e,t){var n=t.clientId;return{block:e("core/block-editor").getBlock(n)}})),Object(m.withDispatch)((function(e,t){var n=t.block,r=e("core/block-editor").replaceBlock;return{convertToClassic:function(){r(n.clientId,function(e){return Object(i.createBlock)("core/freeform",{content:e.originalContent})}(n))},convertToHTML:function(){r(n.clientId,function(e){return Object(i.createBlock)("core/html",{content:e.originalContent})}(n))},convertToBlocks:function(){r(n.clientId,Wr(n))},attemptBlockRecovery:function(){var e,t,o,c;r(n.clientId,(t=(e=n).name,o=e.attributes,c=e.innerBlocks,Object(i.createBlock)(t,o,c)))}}}))])(Kr),Gr=Object(u.createElement)(Hr,{className:"block-editor-block-list__block-crash-warning"},Object(H.__)("This block has encountered an error and cannot be previewed.")),$r=function(){return Gr},Yr=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).state={hasError:!1},e}return Object(w.a)(t,e),Object(_.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}(u.Component),Xr=n(62),Zr=n.n(Xr),Jr=function(e){function t(e){var n;return Object(j.a)(this,t),(n=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).onChange=n.onChange.bind(Object(E.a)(n)),n.onBlur=n.onBlur.bind(Object(E.a)(n)),n.state={html:e.block.isValid?Object(i.getBlockContent)(e.block):e.block.originalContent},n}return Object(w.a)(t,e),Object(_.a)(t,[{key:"componentDidUpdate",value:function(e){Object(p.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),r=e||Object(i.getSaveContent)(t,n),o=!e||Object(i.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(u.createElement)(Zr.a,{className:"editor-block-list__block-html-textarea block-editor-block-list__block-html-textarea",value:e,onBlur:this.onBlur,onChange:this.onChange})}}]),t}(u.Component),Qr=Object(b.compose)([Object(m.withSelect)((function(e,t){return{block:e("core/block-editor").getBlock(t.clientId)}})),Object(m.withDispatch)((function(e){return{onChange:function(t,n,r,o){e("core/block-editor").updateBlock(t,{attributes:n,originalContent:r,isValid:o})}}}))])(Jr);var eo=Object(m.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})),to=Object(u.forwardRef)((function(e,t){var n=e.clientId,r=Object(m.useDispatch)("core/block-editor").setNavigationMode,o=Object(m.useSelect)((function(e){return{rootClientId:e("core/block-editor").getBlockRootClientId(n)}})).rootClientId;return Object(u.createElement)("div",{className:"editor-block-list__breadcrumb block-editor-block-list__breadcrumb"},Object(u.createElement)(P.Toolbar,null,o&&Object(u.createElement)(u.Fragment,null,Object(u.createElement)(eo,{clientId:o}),Object(u.createElement)("span",{className:"editor-block-list__descendant-arrow block-editor-block-list__descendant-arrow"})),Object(u.createElement)(P.Button,{ref:t,onClick:function(){return r(!1)}},Object(u.createElement)(eo,{clientId:n}))))})),no=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).focusToolbar=e.focusToolbar.bind(Object(E.a)(e)),e.toolbar=Object(u.createRef)(),e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"focusToolbar",value:function(){var e=xr.focus.tabbable.find(this.toolbar.current);e.length&&e[0].focus()}},{key:"componentDidMount",value:function(){this.props.focusOnMount&&this.focusToolbar(),this.toolbar.current.addEventListener("keydown",this.switchOnKeyDown)}},{key:"componentwillUnmount",value:function(){this.toolbar.current.removeEventListener("keydown",this.switchOnKeyDown)}},{key:"render",value:function(){var e=this.props,t=e.children,n=Object(Ae.a)(e,["children"]);return Object(u.createElement)(P.NavigableMenu,Object(s.a)({orientation:"horizontal",role:"toolbar",ref:this.toolbar},Object(p.omit)(n,["focusOnMount"])),Object(u.createElement)(P.KeyboardShortcuts,{bindGlobal:!0,eventName:"keydown",shortcuts:{"alt+f10":this.focusToolbar}}),t)}}]),t}(u.Component);var ro=function(e){var t=e.focusOnMount;return Object(u.createElement)(no,{focusOnMount:t,className:"editor-block-contextual-toolbar block-editor-block-contextual-toolbar","aria-label":Object(H.__)("Block tools")},Object(u.createElement)(wc,null))};var oo=Object(m.withSelect)((function(e){var t=e("core/block-editor"),n=t.getMultiSelectedBlockClientIds,r=t.isMultiSelecting;return{multiSelectedBlockClientIds:n(),isSelecting:r()}}))((function(e){var t=e.multiSelectedBlockClientIds;return e.isSelecting?null:Object(u.createElement)(Fr,{clientIds:t})}));var io=Object(a.ifViewportMatches)("< small")((function(e){var t=e.clientId;return Object(u.createElement)("div",{className:"editor-block-list__block-mobile-toolbar block-editor-block-list__block-mobile-toolbar"},Object(u.createElement)(zo,null),Object(u.createElement)(Fr,{clientIds:[t]}))})),co=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).state={isInserterFocused:!1},e.onBlurInserter=e.onBlurInserter.bind(Object(E.a)(e)),e.onFocusInserter=e.onFocusInserter.bind(Object(E.a)(e)),e}return Object(w.a)(t,e),Object(_.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(u.createElement)("div",{className:"editor-block-list__insertion-point block-editor-block-list__insertion-point"},n&&Object(u.createElement)("div",{className:"editor-block-list__insertion-point-indicator block-editor-block-list__insertion-point-indicator"}),Object(u.createElement)("div",{onFocus:this.onFocusInserter,onBlur:this.onBlurInserter,tabIndex:-1,className:f()("editor-block-list__insertion-point-inserter block-editor-block-list__insertion-point-inserter",{"is-visible":e})},Object(u.createElement)(zo,{rootClientId:r,clientId:o})))}}]),t}(u.Component),ao=Object(m.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,l=i(n,r),s=c();return{showInsertionPoint:a()&&s.index===l&&s.rootClientId===r}}))(co),lo=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).proxyEvent=e.proxyEvent.bind(Object(E.a)(e)),e.eventMap={},e}return Object(w.a)(t,e),Object(_.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=t.tagName,c=void 0===i?"div":i,a=Object(Ae.a)(t,["childHandledEvents","forwardedRef","tagName"]),s=Object(p.reduce)([].concat(Object(Be.a)(r),Object(Be.a)(Object.keys(a))),(function(t,n){var r=n.match(/^on([A-Z][a-zA-Z]+?)(Handled)?$/);if(r){!!r[2]&&delete a[n];var o="on"+r[1];t[o]=e.proxyEvent,e.eventMap[r[1].toLowerCase()]=o}return t}),{});return Object(u.createElement)(c,Object(l.a)({ref:o},a,s))}}]),t}(u.Component),so=function(e,t){return Object(u.createElement)(lo,Object(s.a)({},e,{forwardedRef:t}))};so.displayName="IgnoreNestedEvents";var uo=Object(u.forwardRef)(so);var fo=Object(b.compose)(Object(m.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(m.withDispatch)((function(e,t){var n=t.clientId,r=t.rootClientId;return{onInsert:function(t){var o=t.name,c=t.initialAttributes,a=Object(i.createBlock)(o,c);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(p.filter)(t,(function(e){return!(e.isDisabled||e.name===Object(i.getDefaultBlockName)()&&Object(p.isEmpty)(e.initialAttributes))})).slice(0,3);return Object(u.createElement)("div",{className:"editor-inserter-with-shortcuts block-editor-inserter-with-shortcuts"},o.map((function(e){return Object(u.createElement)(P.IconButton,{key:e.id,className:"editor-inserter-with-shortcuts__block block-editor-inserter-with-shortcuts__block",onClick:function(){return r(e)},label:Object(H.sprintf)(Object(H.__)("Add %s"),e.title),icon:Object(u.createElement)(be,{icon:e.icon})})})))}));function po(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:document).querySelector('[data-block="'+e+'"]')}var bo=function(e){return e+1},ho=function(e){return{top:e.offsetTop,left:e.offsetLeft}};var mo=function(e,t,n,r,o){var i=Object(b.useReducedMotion)()||!r,c=Object(u.useReducer)(bo,0),a=Object(Ne.a)(c,2),l=a[0],s=a[1],d=Object(u.useReducer)(bo,0),f=Object(Ne.a)(d,2),p=f[0],h=f[1],m=Object(u.useState)({x:0,y:0,scrollTop:0}),v=Object(Ne.a)(m,2),g=v[0],O=v[1],k=e.current?ho(e.current):null,y=Object(u.useMemo)((function(){return!!n&&Object(xr.getScrollContainer)(e.current)}),[n]);Object(u.useLayoutEffect)((function(){l&&h()}),[l]),Object(u.useLayoutEffect)((function(){if(i){if(n&&y){e.current.style.transform="none";var t=ho(e.current);y.scrollTop=y.scrollTop-k.top+t.top}}else{e.current.style.transform="none";var r=ho(e.current),o={x:k?k.left-r.left:0,y:k?k.top-r.top:0,scrollTop:k&&y?y.scrollTop-k.top+r.top:0};e.current.style.transform=0===o.x&&0===o.y?void 0:"translate3d(".concat(o.x,"px,").concat(o.y,"px,0)"),s(),O(o)}}),[o]);var j=Object(Tr.useSpring)({from:{x:g.x,y:g.y},to:{x:0,y:0},reset:l!==p,config:{mass:5,tension:2e3,friction:200},immediate:i,onFrame:function(e){n&&y&&!i&&e.y&&(y.scrollTop=g.scrollTop+e.y)}});return i?{}:{transformOrigin:"center",transform:Object(Tr.interpolate)([j.x,j.y],(function(e,t){return 0===e&&0===t?void 0:"translate3d(".concat(e,"px,").concat(t,"px,0)")})),zIndex:Object(Tr.interpolate)([j.x,j.y],(function(e,n){return!t||0===e&&0===n?void 0:"1"}))}},vo=function(e){e.preventDefault()};var go=Object(m.withSelect)((function(e,t){var n=t.clientId,r=t.rootClientId,o=t.isLargeViewport,c=e("core/block-editor"),a=c.isBlockSelected,l=c.isAncestorMultiSelected,s=c.isBlockMultiSelected,u=c.isFirstMultiSelectedBlock,d=c.isTyping,f=c.isCaretWithinFormattedText,p=c.getBlockMode,b=c.isSelectionEnabled,h=c.getSelectedBlocksInitialCaretPosition,m=c.getSettings,v=c.hasSelectedInnerBlock,g=c.getTemplateLock,O=c.getBlockIndex,k=c.getBlockOrder,y=c.__unstableGetBlockWithoutInnerBlocks,j=c.isNavigationMode,_=y(n),S=a(n),C=m(),E=C.hasFixedToolbar,w=C.focusMode,I=C.isRTL,B=g(r),T=v(n,!0),x=O(n,r),L=k(r),N=_||{},A=N.name,M=N.attributes,R=N.isValid;return{isPartOfMultiSelection:s(n)||l(n),isFirstMultiSelected:u(n),isTypingWithinBlock:(S||T)&&d(),isCaretWithinFormattedText:f(),mode:p(n),isSelectionEnabled:b(),initialPosition:S?h():null,isEmptyDefaultBlock:A&&Object(i.isUnmodifiedDefaultBlock)({name:A,attributes:M}),isMovable:"all"!==B,isLocked:!!B,isFocusMode:w&&o,hasFixedToolbar:E&&o,isLast:x===L.length-1,isNavigationMode:j(),isRTL:I,block:_,name:A,attributes:M,isValid:R,isSelected:S,isParentOfSelectedBlock:T}})),Oo=Object(m.withDispatch)((function(e,t,n){var r=n.select,o=e("core/block-editor"),c=o.updateBlockAttributes,a=o.selectBlock,l=o.multiSelect,s=o.insertBlocks,u=o.insertDefaultBlock,d=o.removeBlock,f=o.mergeBlocks,p=o.replaceBlocks,b=o.toggleSelection,h=o.setNavigationMode,m=o.__unstableMarkLastChangeAsPersistent;return{setAttributes:function(e){var n=t.clientId;c(n,e)},onSelect:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.clientId,n=arguments.length>1?arguments[1]:void 0;a(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);u({},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){d(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&&f(n,a)}else{var l=i(n);l&&f(l,n)}},onReplace:function(e,n){e.length&&!Object(i.isUnmodifiedDefaultBlock)(e[e.length-1])&&m(),p([t.clientId],e,n)},onShiftSelection:function(){if(t.isSelectionEnabled){var e=r("core/block-editor").getBlockSelectionStart;e()?l(e(),t.clientId):a(t.clientId)}},toggleSelection:function(e){b(e)},enableNavigationMode:function(){h(!0)}}})),ko=Object(b.compose)(b.pure,Object(a.withViewportMatch)({isLargeViewport:"medium"}),go,Oo,Object(b.ifCondition)((function(e){return!!e.block})),Object(P.withFilters)("editor.BlockListBlock"))((function(e){var t=e.blockRef,n=e.mode,r=e.isFocusMode,o=e.hasFixedToolbar,c=e.isLocked,a=e.clientId,d=e.rootClientId,b=e.isSelected,h=e.isPartOfMultiSelection,m=e.isFirstMultiSelected,v=e.isTypingWithinBlock,g=e.isCaretWithinFormattedText,O=e.isEmptyDefaultBlock,k=e.isMovable,y=e.isParentOfSelectedBlock,j=e.isDraggable,_=e.isSelectionEnabled,S=e.className,C=e.name,E=e.isValid,w=e.isLast,I=e.attributes,B=e.initialPosition,T=e.wrapperProps,x=e.setAttributes,L=e.onReplace,N=e.onInsertBlocksAfter,A=e.onMerge,M=e.onSelect,R=e.onRemove,D=e.onInsertDefaultBlockAfter,F=e.toggleSelection,U=e.onShiftSelection,V=e.onSelectionStart,z=e.animateOnChange,K=e.enableAnimation,W=e.isNavigationMode,q=e.enableNavigationMode,G=Object(u.useState)({}),$=Object(Ne.a)(G,2)[1],Y=Object(u.useRef)(null);Object(u.useEffect)((function(){t(Y.current,a)}),[]);var X=Object(u.useRef)(),Z=Object(u.useRef)(),J=Object(u.useRef)(!1),Q=Object(u.useState)(!1),ee=Object(Ne.a)(Q,2),te=ee[0],ne=ee[1],re=function(){te&&ne(!1)};Object(u.useEffect)((function(){(v||b)&&re()}));var oe=Object(u.useState)(!1),ie=Object(Ne.a)(oe,2),ce=ie[0],ae=ie[1],se=Object(u.useState)(!1),ue=Object(Ne.a)(se,2),de=ue[0],fe=ue[1],pe=Object(u.useRef)(!1);Object(u.useEffect)((function(){pe.current&&(pe.current=!1)}));var be=function(e){if(!Y.current.contains(document.activeElement))if(W)Z.current.focus();else{var t=xr.focus.tabbable.find(X.current).filter(xr.isTextField).filter((function(t){return!e||(n=X.current,r=t,o=n.querySelector(".block-editor-block-list__layout"),n.contains(r)&&(!o||!o.contains(r)));var n,r,o})),n=-1===B,r=(n?p.last:p.first)(t);r?Object(xr.placeCaretAtHorizontalEdge)(r,n):Y.current.focus()}},me=Object(u.useRef)(!0);Object(u.useEffect)((function(){b&&be(!me.current),me.current=!1}),[b]),Object(u.useEffect)((function(){m&&Y.current.focus()}),[m]);var ve=mo(Y,b||h,b||m,K,z);Object(u.useLayoutEffect)((function(){b&&(W?Z.current.focus():be(!0))}),[b,W]);var ge=function(e){e&&!b&&M()},Oe=te&&!h,ke=Object(i.getBlockType)(C),ye=Object(H.sprintf)(Object(H.__)("Block: %s"),ke.title),je=C===Object(i.getUnregisteredTypeHandlerName)(),_e=!W&&(b||Oe)&&O&&E,Se=!W&&(b||Oe||w)&&O&&E,Ce=!r&&!Se&&b&&!v,Ee=!r&&!o&&Oe&&!O,we=!W&&b&&!Se&&!h&&!v,Be=b&&W||!W&&!r&&Oe&&!O,Te=!W&&!o&&!Se&&(b&&(!v||g)||m),xe=!W&&Ce,Le=h&&m||!h,Ae=f()("wp-block editor-block-list__block block-editor-block-list__block",{"has-warning":!E||!!de||je,"is-selected":Ce,"is-navigate-mode":W,"is-multi-selected":h,"is-hovered":Ee,"is-reusable":Object(i.isReusableBlock)(ke),"is-dragging":ce,"is-typing":v,"is-focused":r&&(b||y),"is-focus-mode":r,"has-child-selected":y},S);ke.getEditWrapperProps&&(T=Object(l.a)({},T,ke.getEditWrapperProps(I)));var Me="block-".concat(a),Re=Object(u.createElement)(le,{name:C,isSelected:b,attributes:I,setAttributes:x,insertBlocksAfter:c?void 0:N,onReplace:c?void 0:L,mergeBlocks:c?void 0:A,clientId:a,isSelectionEnabled:_,toggleSelection:F});return"visual"!==n&&(Re=Object(u.createElement)("div",{style:{display:"none"}},Re)),Object(u.createElement)(uo,Object(s.a)({id:Me,ref:Y,onMouseOver:function(){te||h||b||J.current||ne(!0)},onMouseOverHandled:re,onMouseLeave:re,className:Ae,"data-type":C,onTouchStart:function(){J.current=!0},onFocus:function(){b||h||M()},onClick:function(){J.current=!1},onKeyDown:function(e){var t=e.keyCode,n=e.target,r=b&&!c&&(n===Y.current||n===Z.current),o=!W;switch(t){case he.ENTER:r&&o&&(D(),e.preventDefault());break;case he.BACKSPACE:case he.DELETE:r&&(R(a),e.preventDefault());break;case he.ESCAPE:b&&o&&(q(),Y.current.focus())}},tabIndex:"0","aria-label":ye,childHandledEvents:["onDragStart","onMouseDown"],tagName:Tr.animated.div},T,{style:T&&T.style?Object(l.a)({},T.style,ve):ve}),Le&&Object(u.createElement)(ao,{clientId:a,rootClientId:d}),Object(u.createElement)(Ie,{clientId:a,rootClientId:d}),m&&Object(u.createElement)(oo,{rootClientId:d}),Object(u.createElement)("div",{className:"editor-block-list__block-edit block-editor-block-list__block-edit"},we&&Object(u.createElement)(Fr,{clientIds:a,blockElementId:Me,isHidden:!b,isDraggable:!1!==j&&!h&&k,onDragStart:function(){ae(!0)},onDragEnd:function(){ae(!1)}}),Be&&Object(u.createElement)(to,{clientId:a,ref:Z}),(Te||pe.current)&&Object(u.createElement)(ro,{focusOnMount:pe.current}),!W&&!Te&&b&&!o&&!O&&Object(u.createElement)(P.KeyboardShortcuts,{bindGlobal:!0,eventName:"keydown",shortcuts:{"alt+f10":function(){pe.current=!0,$({})}}}),Object(u.createElement)(uo,{ref:X,onDragStart:vo,onMouseDown:function(e){0===e.button&&(e.shiftKey?b||(U(),e.preventDefault()):X.current.contains(e.target)&&(V(a),h&&M()))},"data-block":a},Object(u.createElement)(Yr,{onError:function(){return fe(!0)}},E&&Re,E&&"html"===n&&Object(u.createElement)(Qr,{clientId:a}),!E&&[Object(u.createElement)(qr,{key:"invalid-warning",clientId:a}),Object(u.createElement)("div",{key:"invalid-preview"},Object(i.getSaveElement)(ke,I))]),!!de&&Object(u.createElement)($r,null),xe&&Object(u.createElement)(io,{clientId:a}))),_e&&Object(u.createElement)("div",{className:"editor-block-list__side-inserter block-editor-block-list__side-inserter"},Object(u.createElement)(fo,{clientId:a,rootClientId:d,onToggle:ge})),Se&&Object(u.createElement)("div",{className:"editor-block-list__empty-block-inserter block-editor-block-list__empty-block-inserter"},Object(u.createElement)(zo,{position:"top right",onToggle:ge,rootClientId:d,clientId:a})))})),yo=n(52);var jo=Object(b.compose)(Object(b.withState)({hovered:!1}),Object(m.withSelect)((function(e,t){var n=e("core/block-editor"),r=n.getBlockCount,o=n.getBlockName,c=n.isBlockValid,a=n.getSettings,l=n.getTemplateLock,s=!r(t.rootClientId),u=o(t.lastBlockClientId)===Object(i.getDefaultBlockName)(),d=c(t.lastBlockClientId),f=a().bodyPlaceholder;return{isVisible:s||!u||!d,showPrompt:s,isLocked:!!l(t.rootClientId),placeholder:f}})),Object(m.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,l=e.setState;if(t||!n)return null;var s=Object(yo.decodeEntities)(i)||Object(H.__)("Start writing or type / to choose a block");return Object(u.createElement)("div",{"data-root-client-id":c||"",className:"wp-block editor-default-block-appender block-editor-default-block-appender",onMouseEnter:function(){return l({hovered:!0})},onMouseLeave:function(){return l({hovered:!1})}},Object(u.createElement)(Ie,{rootClientId:c}),Object(u.createElement)(Zr.a,{role:"button","aria-label":Object(H.__)("Add block"),className:"editor-default-block-appender__content block-editor-default-block-appender__content",readOnly:!0,onFocus:r,value:o?s:""}),a&&Object(u.createElement)(fo,{rootClientId:c}),Object(u.createElement)(zo,{rootClientId:c,position:"top right",isAppender:!0}))}));var _o=Object(m.withSelect)((function(e,t){var n=t.rootClientId,r=e("core/block-editor"),o=r.getBlockOrder,c=r.canInsertBlockType;return{isLocked:!!(0,r.getTemplateLock)(n),blockClientIds:o(n),canInsertDefaultBlock:c(Object(i.getDefaultBlockName)(),n)}}))((function(e){var t=e.blockClientIds,n=e.rootClientId,r=e.canInsertDefaultBlock,o=e.isLocked,i=e.renderAppender;return o?null:i?Object(u.createElement)("div",{className:"block-list-appender"},Object(u.createElement)(i,null)):!1===i?null:r?Object(u.createElement)("div",{className:"block-list-appender"},Object(u.createElement)(uo,{childHandledEvents:["onFocus","onClick","onKeyDown"]},Object(u.createElement)(jo,{rootClientId:n,lastBlockClientId:Object(p.last)(t)}))):Object(u.createElement)("div",{className:"block-list-appender"},Object(u.createElement)(Ko,{rootClientId:n,className:"block-list-appender__toggle"}))})),So=function(e){function t(e){var n;return Object(j.a)(this,t),(n=Object(S.a)(this,Object(C.a)(t).call(this,e))).onSelectionStart=n.onSelectionStart.bind(Object(E.a)(n)),n.onSelectionEnd=n.onSelectionEnd.bind(Object(E.a)(n)),n.setBlockRef=n.setBlockRef.bind(Object(E.a)(n)),n.setLastClientY=n.setLastClientY.bind(Object(E.a)(n)),n.onPointerMove=Object(p.throttle)(n.onPointerMove.bind(Object(E.a)(n)),100),n.onScroll=function(){return n.onPointerMove({clientY:n.lastClientY})},n.lastClientY=0,n.nodes={},n}return Object(w.a)(t,e),Object(_.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(l.a)({},this.nodes,Object(I.a)({},t,e))}},{key:"onPointerMove",value:function(e){var t=e.clientY;this.props.isMultiSelecting||this.props.onStartMultiSelect();var n=po(this.selectionAtStart).getBoundingClientRect();if(!(t>=n.top&&t<=n.bottom)){var r=t-n.top,o=Object(p.findLast)(this.coordMapKeys,(function(e){return ea.height*l?(c.height-a.height*l)/2+o:0;h(l),y({x:u,y:d}),r.style.marginTop="0"}else{var f=e.getBoundingClientRect();h(f.width/n)}s(!0)}}),100);return function(){e&&window.clearTimeout(e)}}),[]),!t||0===t.length)return null;var j={transform:"scale(".concat(b,")"),visibility:l?"visible":"hidden",left:O,top:k,width:n};return Object(u.createElement)("div",{ref:i,className:f()("block-editor-block-preview__container editor-styles-wrapper",{"is-ready":l}),"aria-hidden":!0},Object(u.createElement)(P.Disabled,{style:j,className:"block-editor-block-preview__content"},Object(u.createElement)(Co,null)))}var wo=Object(m.withSelect)((function(e){return{settings:e("core/block-editor").getSettings()}}))((function(e){var t=e.blocks,n=e.viewportWidth,r=void 0===n?700:n,o=e.padding,i=e.settings,c=Object(u.useMemo)((function(){return Object(p.castArray)(t)}),[t]),a=Object(u.useReducer)((function(e){return e+1}),0),l=Object(Ne.a)(a,2),s=l[0],d=l[1];return Object(u.useLayoutEffect)(d,[t]),Object(u.createElement)(Ir,{value:c,settings:i},Object(u.createElement)(Eo,{key:s,blocks:c,viewportWidth:r,padding:o}))}));var Io=function(e){var t=e.icon,n=e.onClick,r=e.isDisabled,o=e.title,i=e.className,c=Object(Ae.a)(e,["icon","onClick","isDisabled","title","className"]),a=t?{backgroundColor:t.background,color:t.foreground}:{};return Object(u.createElement)("li",{className:"editor-block-types-list__list-item block-editor-block-types-list__list-item"},Object(u.createElement)("button",Object(s.a)({className:f()("editor-block-types-list__item block-editor-block-types-list__item",i),onClick:function(e){e.preventDefault(),n()},disabled:r},c),Object(u.createElement)("span",{className:"editor-block-types-list__item-icon block-editor-block-types-list__item-icon",style:a},Object(u.createElement)(be,{icon:t,showColors:!0})),Object(u.createElement)("span",{className:"editor-block-types-list__item-title block-editor-block-types-list__item-title"},o)))};var Bo=function(e){var t=e.items,n=e.onSelect,r=e.onHover,o=void 0===r?function(){}:r,c=e.children;return(Object(u.createElement)("ul",{role:"list",className:"editor-block-types-list block-editor-block-types-list"},t&&t.map((function(e){return Object(u.createElement)(Io,{key:e.id,className:Object(i.getBlockMenuDefaultClassName)(e.id),icon:e.icon,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})})),c))};var To=function(e){var t=e.blockType;return Object(u.createElement)("div",{className:"block-editor-block-card"},Object(u.createElement)(be,{icon:t.icon,showColors:!0}),Object(u.createElement)("div",{className:"block-editor-block-card__content"},Object(u.createElement)("div",{className:"block-editor-block-card__title"},t.title),Object(u.createElement)("div",{className:"block-editor-block-card__description"},t.description)))};var xo=Object(b.compose)(Object(b.ifCondition)((function(e){var t=e.items;return t&&t.length>0})),Object(m.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(Ae.a)(e,["rootBlockIcon","rootBlockTitle","items"]);return Object(u.createElement)("div",{className:"editor-inserter__child-blocks block-editor-inserter__child-blocks"},(t||n)&&Object(u.createElement)("div",{className:"editor-inserter__parent-block-header block-editor-inserter__parent-block-header"},Object(u.createElement)(be,{icon:t,showColors:!0}),n&&Object(u.createElement)("h2",null,n)),Object(u.createElement)(Bo,Object(s.a)({items:r},o)))})),Lo=Object(P.createSlotFill)("__experimentalInserterMenuExtension"),No=Lo.Fill,Ao=Lo.Slot;No.Slot=Ao;var Mo=No,Ro=function(e){return e.stopPropagation()},Po=function(e,t){var n=Do(t),r=function(e){return-1!==Do(e).indexOf(n)},o=Object(i.getCategories)();return e.filter((function(e){var t=Object(p.find)(o,{slug:e.category});return r(e.title)||Object(p.some)(e.keywords,r)||t&&r(t.title)}))},Do=function(e){return e=(e=(e=(e=Object(p.deburr)(e)).replace(/^\//,"")).toLowerCase()).trim()},Fo=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).state={childItems:[],filterValue:"",hoveredItem:null,suggestedItems:[],reusableItems:[],itemsPerCategory:{},openPanels:["suggested"]},e.onChangeSearchInput=e.onChangeSearchInput.bind(Object(E.a)(e)),e.onHover=e.onHover.bind(Object(E.a)(e)),e.panels={},e.inserterResults=Object(u.createRef)(),e}return Object(w.a)(t,e),Object(_.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(p.without)(t.state.openPanels,e)}):(t.setState({openPanels:[].concat(Object(Be.a)(t.state.openPanels),[e])}),t.props.setTimeout((function(){xe()(t.panels[e],t.inserterResults.current,{alignWithTop:!0})})))}}},{key:"filterOpenPanels",value:function(e,t,n,r){if(e===this.state.filterValue)return this.state.openPanels;if(!e)return["suggested"];var o=[];return r.length>0&&o.push("reusable"),n.length>0&&(o=o.concat(Object.keys(t))),o}},{key:"filter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.props,n=t.debouncedSpeak,r=t.items,o=t.rootChildBlocks,c=Po(r,e),a=Object(p.filter)(c,(function(e){var t=e.name;return Object(p.includes)(o,t)})),l=[];if(!e){var s=this.props.maxSuggestedItems||9;l=Object(p.filter)(r,(function(e){return e.utility>0})).slice(0,s)}var u=Object(p.filter)(c,{category:"reusable"}),d=function(e){return Object(p.findIndex)(Object(i.getCategories)(),(function(t){return t.slug===e.category}))},f=Object(p.flow)((function(e){return Object(p.filter)(e,(function(e){return"reusable"!==e.category}))}),(function(e){return Object(p.sortBy)(e,d)}),(function(e){return Object(p.groupBy)(e,"category")}))(c);this.setState({hoveredItem:null,childItems:a,filterValue:e,suggestedItems:l,reusableItems:u,itemsPerCategory:f,openPanels:this.filterOpenPanels(e,f,c,u)});var b=Object.keys(f).reduce((function(e,t){return e+f[t].length}),0),h=Object(H.sprintf)(Object(H._n)("%d result found.","%d results found.",b),b);n(h)}},{key:"onKeyDown",value:function(e){Object(p.includes)([he.LEFT,he.DOWN,he.RIGHT,he.UP,he.BACKSPACE,he.ENTER],e.keyCode)&&e.stopPropagation()}},{key:"render",value:function(){var e=this,t=this.props,n=t.instanceId,r=t.onSelect,o=t.rootClientId,c=t.showInserterHelpPanel,a=this.state,l=a.childItems,s=a.hoveredItem,d=a.itemsPerCategory,b=a.openPanels,h=a.reusableItems,m=a.suggestedItems,v=a.filterValue,g=function(e){return-1!==b.indexOf(e)},O=!Object(p.isEmpty)(m)||!Object(p.isEmpty)(h)||!Object(p.isEmpty)(d),k=s?Object(i.getBlockType)(s.name):null,y=O&&c;return Object(u.createElement)("div",{className:f()("editor-inserter__menu block-editor-inserter__menu",{"has-help-panel":y}),onKeyPress:Ro,onKeyDown:this.onKeyDown},Object(u.createElement)("div",{className:"block-editor-inserter__main-area"},Object(u.createElement)("label",{htmlFor:"block-editor-inserter__search-".concat(n),className:"screen-reader-text"},Object(H.__)("Search for a block")),Object(u.createElement)("input",{id:"block-editor-inserter__search-".concat(n),type:"search",placeholder:Object(H.__)("Search for a block"),className:"editor-inserter__search block-editor-inserter__search",autoFocus:!0,onChange:this.onChangeSearchInput}),Object(u.createElement)("div",{className:"editor-inserter__results block-editor-inserter__results",ref:this.inserterResults,tabIndex:"0",role:"region","aria-label":Object(H.__)("Available block types")},Object(u.createElement)(xo,{rootClientId:o,items:l,onSelect:r,onHover:this.onHover}),!!m.length&&Object(u.createElement)(P.PanelBody,{title:Object(H._x)("Most Used","blocks"),opened:g("suggested"),onToggle:this.onTogglePanel("suggested"),ref:this.bindPanel("suggested")},Object(u.createElement)(Bo,{items:m,onSelect:r,onHover:this.onHover})),Object(p.map)(Object(i.getCategories)(),(function(t){var n=d[t.slug];return n&&n.length?Object(u.createElement)(P.PanelBody,{key:t.slug,title:t.title,icon:t.icon,opened:g(t.slug),onToggle:e.onTogglePanel(t.slug),ref:e.bindPanel(t.slug)},Object(u.createElement)(Bo,{items:n,onSelect:r,onHover:e.onHover})):null})),!!h.length&&Object(u.createElement)(P.PanelBody,{className:"editor-inserter__reusable-blocks-panel block-editor-inserter__reusable-blocks-panel",title:Object(H.__)("Reusable"),opened:g("reusable"),onToggle:this.onTogglePanel("reusable"),icon:"controls-repeat",ref:this.bindPanel("reusable")},Object(u.createElement)(Bo,{items:h,onSelect:r,onHover:this.onHover}),Object(u.createElement)("a",{className:"editor-inserter__manage-reusable-blocks block-editor-inserter__manage-reusable-blocks",href:Object(Le.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(H.__)("Manage All Reusable Blocks"))),Object(u.createElement)(Mo.Slot,{fillProps:{onSelect:r,onHover:this.onHover,filterValue:v,hasItems:O}},(function(e){return e.length?e:O?null:Object(u.createElement)("p",{className:"editor-inserter__no-results block-editor-inserter__no-results"},Object(H.__)("No blocks found."))})))),y&&Object(u.createElement)("div",{className:"block-editor-inserter__menu-help-panel"},s&&Object(u.createElement)(u.Fragment,null,!Object(i.isReusableBlock)(s)&&Object(u.createElement)(To,{blockType:k}),Object(u.createElement)("div",{className:"block-editor-inserter__preview"},Object(i.isReusableBlock)(s)||k.example?Object(u.createElement)("div",{className:"block-editor-inserter__preview-content"},Object(u.createElement)(wo,{padding:10,viewportWidth:500,blocks:k.example?Object(i.getBlockFromExample)(s.name,k.example):Object(i.createBlock)(s.name,s.initialAttributes)})):Object(u.createElement)("div",{className:"block-editor-inserter__preview-content-missing"},Object(H.__)("No Preview Available.")))),!s&&Object(u.createElement)("div",{className:"block-editor-inserter__menu-help-panel-no-block"},Object(u.createElement)("div",{className:"block-editor-inserter__menu-help-panel-no-block-text"},Object(u.createElement)("div",{className:"block-editor-inserter__menu-help-panel-title"},Object(H.__)("Content Blocks")),Object(u.createElement)("p",null,Object(H.__)("Welcome to the wonderful world of blocks! Blocks are the basis of all content within the editor.")),Object(u.createElement)("p",null,Object(H.__)("There are blocks available for all kinds of content: insert text, headings, images, lists, videos, tables, and lots more.")),Object(u.createElement)("p",null,Object(H.__)("Browse through the library to learn more about what each block does."))),Object(u.createElement)(P.Tip,null,Object(H.__)('While writing, you can press "/" to quickly insert new blocks.')))))}}]),t}(u.Component),Ho=Object(b.compose)(Object(m.withSelect)((function(e,t){var n=t.clientId,r=t.isAppender,o=t.rootClientId,i=t.showInserterHelpPanel,c=e("core/block-editor"),a=c.getInserterItems,l=c.getBlockName,s=c.getBlockRootClientId,u=c.getBlockSelectionEnd,d=c.getSettings,f=e("core/blocks").getChildBlockNames,p=o;if(!p&&!n&&!r){var b=u();b&&(p=s(b)||void 0)}return{rootChildBlocks:f(l(p)),items:a(p),showInserterHelpPanel:i&&d().showInserterHelpPanel,destinationRootClientId:p}})),Object(m.withDispatch)((function(e,t,n){var r=n.select,o=e("core/block-editor"),c=o.showInsertionPoint,a=o.hideInsertionPoint;function l(){var e=r("core/block-editor"),n=e.getBlockIndex,o=e.getBlockSelectionEnd,i=e.getBlockOrder,c=t.clientId,a=t.destinationRootClientId,l=t.isAppender;if(c)return n(c,a);var s=o();return!l&&s?n(s,a)+1:i(a).length}return{fetchReusableBlocks:e("core/editor").__experimentalFetchReusableBlocks,showInsertionPoint:function(){var e=l();c(t.destinationRootClientId,e)},hideInsertionPoint:a,onSelect:function(n){var o=e("core/block-editor"),c=o.replaceBlocks,a=o.insertBlock,s=r("core/block-editor").getSelectedBlock,u=t.isAppender,d=n.name,f=n.initialAttributes,p=s(),b=Object(i.createBlock)(d,f);return!u&&p&&Object(i.isUnmodifiedDefaultBlock)(p)?c(p.clientId,b):a(b,l(),t.destinationRootClientId),t.onSelect(),b}}})),P.withSpokenMessages,b.withInstanceId,b.withSafeTimeout)(Fo),Uo=function(e){var t=e.onToggle,n=e.disabled,r=e.isOpen;return Object(u.createElement)(P.IconButton,{icon:"insert",label:Object(H.__)("Add block"),labelPosition:"bottom",onClick:t,className:"editor-inserter__toggle block-editor-inserter__toggle","aria-haspopup":"true","aria-expanded":r,disabled:n})},Vo=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).onToggle=e.onToggle.bind(Object(E.a)(e)),e.renderToggle=e.renderToggle.bind(Object(E.a)(e)),e.renderContent=e.renderContent.bind(Object(E.a)(e)),e}return Object(w.a)(t,e),Object(_.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?Uo: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,c=n.showInserterHelpPanel;return Object(u.createElement)(Ho,{onSelect:t,rootClientId:r,clientId:o,isAppender:i,showInserterHelpPanel:c})}},{key:"render",value:function(){var e=this.props.position;return Object(u.createElement)(P.Dropdown,{className:"editor-inserter block-editor-inserter",contentClassName:"editor-inserter__popover block-editor-inserter__popover",position:e,onToggle:this.onToggle,expandOnMobile:!0,headerTitle:Object(H.__)("Add a block"),renderToggle:this.renderToggle,renderContent:this.renderContent})}}]),t}(u.Component),zo=Object(b.compose)([Object(m.withSelect)((function(e,t){var n=t.rootClientId;return{hasItems:(0,e("core/block-editor").hasInserterItems)(n)}})),Object(b.ifCondition)((function(e){return e.hasItems}))])(Vo);var Ko=function(e){var t=e.rootClientId,n=e.className;return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(Ie,{rootClientId:t}),Object(u.createElement)(zo,{rootClientId:t,renderToggle:function(e){var t=e.onToggle,r=e.disabled,o=e.isOpen;return Object(u.createElement)(P.Button,{className:f()(n,"block-editor-button-block-appender"),onClick:t,"aria-expanded":o,disabled:r},Object(u.createElement)("span",{className:"screen-reader-text"},Object(H.__)("Add Block")),Object(u.createElement)(P.Icon,{icon:"insert"}))},isAppender:!0}))},Wo=Object(b.createHigherOrderComponent)(Object(m.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(p.isEmpty)(r)||!o}})),"withColorContext"),qo=Wo(P.ColorPalette);function Go(e){var t=e.tinyBackgroundColor,n=e.tinyTextColor,r=e.backgroundColor,o=e.textColor,i=t.getBrightness()=24?"large":"small"})?null:Object(u.createElement)(Go,{backgroundColor:t,textColor:c,tinyBackgroundColor:a,tinyTextColor:l})},Yo=n(41),Xo=n.n(Yo),Zo=Object(b.createHigherOrderComponent)((function(e){return q((function(e){return Object(p.pick)(e,["clientId"])}))(e)}),"withClientId"),Jo=Zo((function(e){var t=e.clientId;return Object(u.createElement)(Ko,{rootClientId:t})})),Qo=Object(b.compose)([Zo,Object(m.withSelect)((function(e,t){var n=t.clientId,r=(0,e("core/block-editor").getBlockOrder)(n);return{lastBlockClientId:Object(p.last)(r)}}))])((function(e){var t=e.clientId,n=e.lastBlockClientId;return Object(u.createElement)(uo,{childHandledEvents:["onFocus","onClick","onKeyDown"]},Object(u.createElement)(jo,{rootClientId:t,lastBlockClientId:n}))}));var ei=function(e){var t=e.options,n=e.onSelect,r=e.allowSkip,o=f()("block-editor-inner-blocks__template-picker",{"has-many-options":t.length>4}),i=r?Object(H.__)("Select a layout to start with, or make one yourself."):Object(H.__)("Select a layout to start with.");return Object(u.createElement)(P.Placeholder,{icon:"layout",label:Object(H.__)("Choose Layout"),instructions:i,className:o},Object(u.createElement)("ul",{className:"block-editor-inner-blocks__template-picker-options",role:"list"},t.map((function(e,t){return Object(u.createElement)("li",{key:t},Object(u.createElement)(P.IconButton,{isLarge:!0,icon:e.icon,onClick:function(){return n(e.template)},className:"block-editor-inner-blocks__template-picker-option",label:e.title}))}))),r&&Object(u.createElement)("div",{className:"block-editor-inner-blocks__template-picker-skip"},Object(u.createElement)(P.Button,{isLink:!0,onClick:function(){return n(void 0)}},Object(H.__)("Skip"))))},ti=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).state={templateInProcess:!!e.props.template},e.updateNestedSettings(),e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.templateLock;0!==e.block.innerBlocks.length&&"all"!==t||this.synchronizeBlocksWithTemplate(),this.state.templateInProcess&&this.setState({templateInProcess:!1})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.template,r=t.block,o=t.templateLock,i=r.innerBlocks;(this.updateNestedSettings(),0===i.length||"all"===o)&&(!Object(p.isEqual)(n,e.template)&&this.synchronizeBlocksWithTemplate())}},{key:"synchronizeBlocksWithTemplate",value:function(){var e=this.props,t=e.template,n=e.block,r=e.replaceInnerBlocks,o=n.innerBlocks,c=Object(i.synchronizeBlocksWithTemplate)(o,t);Object(p.isEqual)(c,o)||r(c)}},{key:"updateNestedSettings",value:function(){var e=this.props,t=e.blockListSettings,n=e.allowedBlocks,r=e.updateNestedSettings,o=e.templateLock,i=e.parentLock,c={allowedBlocks:n,templateLock:void 0===o?i:o};Xo()(t,c)||r(c)}},{key:"render",value:function(){var e=this.props,t=e.isSmallScreen,n=e.clientId,r=e.hasOverlay,o=e.renderAppender,i=e.template,c=e.__experimentalTemplateOptions,a=e.__experimentalOnSelectTemplateOption,l=e.__experimentalAllowTemplateOptionSkip,s=this.state.templateInProcess,d=null===i&&!!c,p=f()("editor-inner-blocks block-editor-inner-blocks",{"has-overlay":t&&r&&!d});return Object(u.createElement)("div",{className:p},!s&&(d?Object(u.createElement)(ei,{options:c,onSelect:a,allowSkip:l}):Object(u.createElement)(Co,{rootClientId:n,renderAppender:o})))}}]),t}(u.Component);(ti=Object(b.compose)([Object(a.withViewportMatch)({isSmallScreen:"< medium"}),q((function(e){return Object(p.pick)(e,["clientId"])})),Object(m.withSelect)((function(e,t){var n=e("core/block-editor"),r=n.isBlockSelected,o=n.hasSelectedInnerBlock,i=n.getBlock,c=n.getBlockListSettings,a=n.getBlockRootClientId,l=n.getTemplateLock,s=t.clientId,u=i(s),d=a(s);return{block:u,blockListSettings:c(s),hasOverlay:"core/template"!==u.name&&!r(s)&&!o(s,!0),parentLock:l(d)}})),Object(m.withDispatch)((function(e,t){var n=e("core/block-editor"),r=n.replaceInnerBlocks,o=n.updateBlockListSettings,i=t.block,c=t.clientId,a=t.templateInsertUpdatesSelection,l=void 0===a||a;return{replaceInnerBlocks:function(e){r(c,e,0===i.innerBlocks.length&&l)},updateNestedSettings:function(t){e(o(c,t))}}}))])(ti)).DefaultBlockAppender=Qo,ti.ButtonBlockAppender=Jo,ti.Content=Object(i.withBlockContentContext)((function(e){var t=e.BlockContent;return Object(u.createElement)(t,null)}));var ni=ti,ri=Object(P.createSlotFill)("InspectorAdvancedControls"),oi=ri.Fill,ii=ri.Slot,ci=G(oi);ci.Slot=ii;var ai=ci,li=Object(P.createSlotFill)("InspectorControls"),si=li.Fill,ui=li.Slot,di=G(si);di.Slot=ui;var fi=di,pi=Object(P.withFilters)("editor.MediaUpload")((function(){return null}));function bi(e){var t=e.url,n=e.urlLabel,r=e.className,o=f()(r,"block-editor-url-popover__link-viewer-url");return t?Object(u.createElement)(P.ExternalLink,{className:o,href:t},n||Object(Le.filterURLForDisplay)(Object(Le.safeDecodeURI)(t))):Object(u.createElement)("span",{className:o})}var hi=function(e){return e.stopPropagation()},mi=function(e){function t(e){var n,r=e.autocompleteRef;return Object(j.a)(this,t),(n=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).onChange=n.onChange.bind(Object(E.a)(n)),n.onKeyDown=n.onKeyDown.bind(Object(E.a)(n)),n.autocompleteRef=r||Object(u.createRef)(),n.inputRef=Object(u.createRef)(),n.updateSuggestions=Object(p.throttle)(n.updateSuggestions.bind(Object(E.a)(n)),200),n.suggestionNodes=[],n.state={suggestions:[],showSuggestions:!1,selectedSuggestion:null},n}return Object(w.a)(t,e),Object(_.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,xe()(this.suggestionNodes[r],this.autocompleteRef.current,{onlyScrollIfNeeded:!0}),this.props.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,n=this.props.fetchLinkSuggestions;if(n)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 r=n(e);r.then((function(e){t.suggestionsRequest===r&&(t.setState({suggestions:e,loading:!1}),e.length?t.props.debouncedSpeak(Object(H.sprintf)(Object(H._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(H.__)("No results."),"assertive"))})).catch((function(){t.suggestionsRequest===r&&t.setState({loading:!1})})),this.suggestionsRequest=r}}},{key:"onChange",value:function(e){var t=e.target.value;this.props.onChange(t),this.updateSuggestions(t)}},{key:"onKeyDown",value:function(e){var t=this.state,n=t.showSuggestions,r=t.selectedSuggestion,o=t.suggestions,i=t.loading;if(n&&o.length&&!i){var c=this.state.suggestions[this.state.selectedSuggestion];switch(e.keyCode){case he.UP:e.stopPropagation(),e.preventDefault();var a=r?r-1:o.length-1;this.setState({selectedSuggestion:a});break;case he.DOWN:e.stopPropagation(),e.preventDefault();var l=null===r||r===o.length-1?0:r+1;this.setState({selectedSuggestion:l});break;case he.TAB:null!==this.state.selectedSuggestion&&(this.selectLink(c),this.props.speak(Object(H.__)("Link selected.")));break;case he.ENTER:null!==this.state.selectedSuggestion&&(e.stopPropagation(),this.selectLink(c))}}else switch(e.keyCode){case he.UP:0!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(0,0));break;case he.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,l=t.id,s=t.isFullWidth,d=t.hasBorder,p=this.state,b=p.showSuggestions,h=p.suggestions,m=p.selectedSuggestion,v=p.loading,g="block-editor-url-input-suggestions-".concat(c),O="block-editor-url-input-suggestion-".concat(c);return Object(u.createElement)("div",{className:f()("editor-url-input block-editor-url-input",a,{"is-full-width":s,"has-border":d})},Object(u.createElement)("input",{id:l,autoFocus:i,type:"text","aria-label":Object(H.__)("URL"),required:!0,value:r,onChange:this.onChange,onInput:hi,placeholder:Object(H.__)("Paste URL or type to search"),onKeyDown:this.onKeyDown,role:"combobox","aria-expanded":b,"aria-autocomplete":"list","aria-owns":g,"aria-activedescendant":null!==m?"".concat(O,"-").concat(m):void 0,ref:this.inputRef}),v&&Object(u.createElement)(P.Spinner,null),b&&!!h.length&&Object(u.createElement)(P.Popover,{position:"bottom",noArrow:!0,focusOnMount:!1},Object(u.createElement)("div",{className:f()("editor-url-input__suggestions","block-editor-url-input__suggestions","".concat(a,"__suggestions")),id:g,ref:this.autocompleteRef,role:"listbox"},h.map((function(t,n){return Object(u.createElement)("button",{key:t.id,role:"option",tabIndex:"-1",id:"".concat(O,"-").concat(n),ref:e.bindSuggestionNode(n),className:f()("editor-url-input__suggestion block-editor-url-input__suggestion",{"is-selected":n===m}),onClick:function(){return e.handleOnClick(t)},"aria-selected":n===m},t.title)})))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.disableSuggestions,r=t.showSuggestions;return{showSuggestions:!0!==n&&r}}}]),t}(u.Component),vi=Object(b.compose)(b.withSafeTimeout,P.withSpokenMessages,b.withInstanceId,Object(m.withSelect)((function(e){return{fetchLinkSuggestions:(0,e("core/block-editor").getSettings)().__experimentalFetchLinkSuggestions}})))(mi);var gi=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).toggleSettingsVisibility=e.toggleSettingsVisibility.bind(Object(E.a)(e)),e.state={isSettingsExpanded:!1},e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"toggleSettingsVisibility",value:function(){this.setState({isSettingsExpanded:!this.state.isSettingsExpanded})}},{key:"render",value:function(){var e=this.props,t=e.additionalControls,n=e.children,r=e.renderSettings,o=e.position,i=void 0===o?"bottom center":o,c=e.focusOnMount,a=void 0===c?"firstElement":c,l=Object(Ae.a)(e,["additionalControls","children","renderSettings","position","focusOnMount"]),d=this.state.isSettingsExpanded,f=!!r&&d;return Object(u.createElement)(P.Popover,Object(s.a)({className:"editor-url-popover block-editor-url-popover",focusOnMount:a,position:i},l),Object(u.createElement)("div",{className:"block-editor-url-popover__input-container"},Object(u.createElement)("div",{className:"editor-url-popover__row block-editor-url-popover__row"},n,!!r&&Object(u.createElement)(P.IconButton,{className:"editor-url-popover__settings-toggle block-editor-url-popover__settings-toggle",icon:"arrow-down-alt2",label:Object(H.__)("Link settings"),onClick:this.toggleSettingsVisibility,"aria-expanded":d})),f&&Object(u.createElement)("div",{className:"editor-url-popover__row block-editor-url-popover__row editor-url-popover__settings block-editor-url-popover__settings"},r())),t&&!f&&Object(u.createElement)("div",{className:"block-editor-url-popover__additional-controls"},t))}}]),t}(u.Component);gi.LinkEditor=function(e){var t=e.autocompleteRef,n=e.className,r=e.onChangeInputValue,o=e.value,i=Object(Ae.a)(e,["autocompleteRef","className","onChangeInputValue","value"]);return Object(u.createElement)("form",Object(s.a)({className:f()("block-editor-url-popover__link-editor",n)},i),Object(u.createElement)(vi,{value:o,onChange:r,autocompleteRef:t}),Object(u.createElement)(P.IconButton,{icon:"editor-break",label:Object(H.__)("Apply"),type:"submit"}))},gi.LinkViewer=function(e){var t=e.className,n=e.linkClassName,r=e.onEditLinkClick,o=e.url,i=e.urlLabel,c=Object(Ae.a)(e,["className","linkClassName","onEditLinkClick","url","urlLabel"]);return Object(u.createElement)("div",Object(s.a)({className:f()("block-editor-url-popover__link-viewer",t)},c),Object(u.createElement)(bi,{url:o,urlLabel:i,className:n}),r&&Object(u.createElement)(P.IconButton,{icon:"edit",label:Object(H.__)("Edit"),onClick:r}))};var Oi=gi,ki=function(e){var t=e.src,n=e.onChange,r=e.onSubmit,o=e.onClose;return Object(u.createElement)(Oi,{onClose:o},Object(u.createElement)("form",{className:"editor-media-placeholder__url-input-form block-editor-media-placeholder__url-input-form",onSubmit:r},Object(u.createElement)("input",{className:"editor-media-placeholder__url-input-field block-editor-media-placeholder__url-input-field",type:"url","aria-label":Object(H.__)("URL"),placeholder:Object(H.__)("Paste or type URL"),onChange:n,value:t}),Object(u.createElement)(P.IconButton,{className:"editor-media-placeholder__url-input-submit-button block-editor-media-placeholder__url-input-submit-button",icon:"editor-break",label:Object(H.__)("Apply"),type:"submit"})))},yi=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).state={src:"",isURLInputVisible:!1},e.onChangeSrc=e.onChangeSrc.bind(Object(E.a)(e)),e.onSubmitSrc=e.onSubmitSrc.bind(Object(E.a)(e)),e.onUpload=e.onUpload.bind(Object(E.a)(e)),e.onFilesUpload=e.onFilesUpload.bind(Object(E.a)(e)),e.openURLInput=e.openURLInput.bind(Object(E.a)(e)),e.closeURLInput=e.closeURLInput.bind(Object(E.a)(e)),e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"onlyAllowsImages",value:function(){var e=this.props.allowedTypes;return!!e&&Object(p.every)(e,(function(e){return"image"===e||Object(p.startsWith)(e,"image/")}))}},{key:"componentDidMount",value:function(){this.setState({src:Object(p.get)(this.props.value,["src"],"")})}},{key:"componentDidUpdate",value:function(e){Object(p.get)(e.value,["src"],"")!==Object(p.get)(this.props.value,["src"],"")&&this.setState({src:Object(p.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,n=this.props,r=n.addToGallery,o=n.allowedTypes,i=n.mediaUpload,c=n.multiple,a=n.onError,l=n.onSelect,s=n.value;if(c)if(r){var u=void 0===s?[]:s;t=function(e){l(u.concat(e))}}else t=l;else t=function(e){var t=Object(Ne.a)(e,1)[0];return l(t)};i({allowedTypes:o,filesList:e,onFileChange:t,onError:a})}},{key:"openURLInput",value:function(){this.setState({isURLInputVisible:!0})}},{key:"closeURLInput",value:function(){this.setState({isURLInputVisible:!1})}},{key:"renderPlaceholder",value:function(e,t){var n=this.props,r=n.allowedTypes,o=void 0===r?[]:r,i=n.className,c=n.icon,a=n.isAppender,l=n.labels,s=void 0===l?{}:l,d=n.onDoubleClick,p=n.mediaPreview,b=n.notices,h=n.onSelectURL,m=n.mediaUpload,v=n.children,g=s.instructions,O=s.title;if(m||h||(g=Object(H.__)("To edit this block, you need permission to upload media.")),void 0===g||void 0===O){var k=1===o.length,y=k&&"audio"===o[0],j=k&&"image"===o[0],_=k&&"video"===o[0];void 0===g&&m&&(g=Object(H.__)("Upload a media file or pick one from your media library."),y?g=Object(H.__)("Upload an audio file, pick one from your media library, or add one with a URL."):j?g=Object(H.__)("Upload an image file, pick one from your media library, or add one with a URL."):_&&(g=Object(H.__)("Upload a video file, pick one from your media library, or add one with a URL."))),void 0===O&&(O=Object(H.__)("Media"),y?O=Object(H.__)("Audio"):j?O=Object(H.__)("Image"):_&&(O=Object(H.__)("Video")))}var S=f()("block-editor-media-placeholder","editor-media-placeholder",i,{"is-appender":a});return Object(u.createElement)(P.Placeholder,{icon:c,label:O,instructions:g,className:S,notices:b,onClick:t,onDoubleClick:d,preview:p},e,v)}},{key:"renderDropZone",value:function(){var e=this.props,t=e.disableDropZone,n=e.onHTMLDrop,r=void 0===n?p.noop:n;return t?null:Object(u.createElement)(P.DropZone,{onFilesDrop:this.onFilesUpload,onHTMLDrop:r})}},{key:"renderCancelLink",value:function(){var e=this.props.onCancel;return e&&Object(u.createElement)(P.Button,{className:"block-editor-media-placeholder__cancel-button",title:Object(H.__)("Cancel"),isLink:!0,onClick:e},Object(H.__)("Cancel"))}},{key:"renderUrlSelectionUI",value:function(){if(!this.props.onSelectURL)return null;var e=this.state,t=e.isURLInputVisible,n=e.src;return Object(u.createElement)("div",{className:"editor-media-placeholder__url-input-container block-editor-media-placeholder__url-input-container"},Object(u.createElement)(P.Button,{className:"editor-media-placeholder__button block-editor-media-placeholder__button",onClick:this.openURLInput,isToggled:t,isLarge:!0},Object(H.__)("Insert from URL")),t&&Object(u.createElement)(ki,{src:n,onChange:this.onChangeSrc,onSubmit:this.onSubmitSrc,onClose:this.closeURLInput}))}},{key:"renderMediaUploadChecked",value:function(){var e=this,t=this.props,n=t.accept,r=t.addToGallery,o=t.allowedTypes,i=void 0===o?[]:o,c=t.isAppender,a=t.mediaUpload,l=t.multiple,s=void 0!==l&&l,d=t.onSelect,b=t.value,h=void 0===b?{}:b,m=Object(u.createElement)(pi,{addToGallery:r,gallery:s&&this.onlyAllowsImages(),multiple:s,onSelect:d,allowedTypes:i,value:Object(p.isArray)(h)?h.map((function(e){return e.id})):h.id,render:function(e){var t=e.open;return Object(u.createElement)(P.Button,{isLarge:!0,className:f()("editor-media-placeholder__button","editor-media-placeholder__media-library-button"),onClick:function(e){e.stopPropagation(),t()}},Object(H.__)("Media Library"))}});if(a&&c)return Object(u.createElement)(u.Fragment,null,this.renderDropZone(),Object(u.createElement)(P.FormFileUpload,{onChange:this.onUpload,accept:n,multiple:s,render:function(t){var n=t.openFileDialog,r=Object(u.createElement)(u.Fragment,null,Object(u.createElement)(P.IconButton,{isLarge:!0,className:f()("block-editor-media-placeholder__button","editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),icon:"upload"},Object(H.__)("Upload")),m,e.renderUrlSelectionUI(),e.renderCancelLink());return e.renderPlaceholder(r,n)}}));if(a){var v=Object(u.createElement)(u.Fragment,null,this.renderDropZone(),Object(u.createElement)(P.FormFileUpload,{isLarge:!0,className:f()("block-editor-media-placeholder__button","editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onChange:this.onUpload,accept:n,multiple:s},Object(H.__)("Upload")),m,this.renderUrlSelectionUI(),this.renderCancelLink());return this.renderPlaceholder(v)}return this.renderPlaceholder(m)}},{key:"render",value:function(){return this.props.dropZoneUIOnly?Object(u.createElement)(Ee,null,this.renderDropZone()):Object(u.createElement)(Ee,{fallback:this.renderPlaceholder(this.renderUrlSelectionUI())},this.renderMediaUploadChecked())}}]),t}(u.Component),ji=Object(m.withSelect)((function(e){return{mediaUpload:(0,e("core/block-editor").getSettings)().__experimentalMediaUpload}})),_i=Object(b.compose)(ji,Object(P.withFilters)("editor.MediaPlaceholder"))(yi),Si=Object(H.__)("(current %s: %s)");var Ci=Object(b.compose)([Wo,Object(b.ifCondition)((function(e){return e.hasColorsToChoose}))])((function(e){var t=e.colors,n=e.disableCustomColors,r=e.label,o=e.onChange,i=e.value,c=k(t,i),a=c&&c.name,l=Object(H.sprintf)(Si,r.toLowerCase(),a||i);return Object(u.createElement)(P.BaseControl,{className:"editor-color-palette-control block-editor-color-palette-control"},Object(u.createElement)(P.BaseControl.VisualLabel,null,r,i&&Object(u.createElement)(P.ColorIndicator,{colorValue:i,"aria-label":l})),Object(u.createElement)(qo,Object(s.a)({className:"editor-color-palette-control__color-palette block-editor-color-palette-control__color-palette",value:i,onChange:o},{colors:t,disableCustomColors:n})))})),Ei=function(e,t){return void 0!==t.disableCustomColors?t.disableCustomColors:e},wi=Object(H.__)("(%s: %s)"),Ii=Object(b.ifCondition)((function(e){var t=e.colors,n=e.disableCustomColors,r=e.colorSettings;return Object(p.some)(r,(function(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return!Ei(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(Ae.a)(e,["children","colors","colorSettings","disableCustomColors","title"]),a=Object(u.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 r=e.value,o=e.label,i=e.colors;if(!r)return null;var c=k(i||t,r),a=c&&c.name,l=Object(H.sprintf)(wi,o.toLowerCase(),a||r);return Object(u.createElement)(P.ColorIndicator,{key:n,colorValue:r,"aria-label":l})}))}(r,n));return Object(u.createElement)(P.PanelBody,Object(s.a)({className:"editor-panel-color-settings block-editor-panel-color-settings",title:a},c),r.map((function(e,t){return Object(u.createElement)(Ci,Object(s.a)({key:t},Object(l.a)({colors:n,disableCustomColors:o},e)))})),t)})),Bi=Wo(Ii),Ti=Object(u.forwardRef)((function(e,t){var n=e.onChange,r=e.className,o=Object(Ae.a)(e,["onChange","className"]);return Object(u.createElement)(Zr.a,Object(s.a)({ref:t,className:f()("editor-plain-text block-editor-plain-text",r),onChange:function(e){return n(e.target.value)}},o))})),xi=n(35),Li=n(37),Ni=n.n(Li),Ai={position:"bottom left"},Mi=function(){return Object(u.createElement)("div",{className:"editor-format-toolbar block-editor-format-toolbar"},Object(u.createElement)(P.Toolbar,null,["bold","italic","link"].map((function(e){return Object(u.createElement)(P.Slot,{name:"RichText.ToolbarControls.".concat(e),key:e})})),Object(u.createElement)(P.Slot,{name:"RichText.ToolbarControls"},(function(e){return 0!==e.length&&Object(u.createElement)(P.DropdownMenu,{icon:!1,label:Object(H.__)("More rich text controls"),controls:Object(p.orderBy)(e.map((function(e){return Object(Ne.a)(e,1)[0].props})),"title"),popoverProps:Ai})}))))},Ri=[he.rawShortcut.primary("z"),he.rawShortcut.primaryShift("z"),he.rawShortcut.primary("y")],Pi=Object(u.createElement)(P.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(p.fromPairs)(Ri.map((function(e){return[e,function(e){return e.preventDefault()}]})))}),Di=function(){return Pi},Fi=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).onUse=e.onUse.bind(Object(E.a)(e)),e}return Object(w.a)(t,e),Object(_.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(u.createElement)(P.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(I.a)({},he.rawShortcut[n](t),this.onUse)})}}]),t}(u.Component);function Hi(e){var t,n=e.name,r=e.shortcutType,o=e.shortcutCharacter,i=Object(Ae.a)(e,["name","shortcutType","shortcutCharacter"]),c="RichText.ToolbarControls";return n&&(c+=".".concat(n)),r&&o&&(t=he.displayShortcut[r](o)),Object(u.createElement)(P.Fill,{name:c},Object(u.createElement)(P.ToolbarButton,Object(s.a)({},i,{shortcut:t})))}var Ui=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).onInput=e.onInput.bind(Object(E.a)(e)),e}return Object(w.a)(t,e),Object(_.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}(u.Component),Vi=window.requestIdleCallback||function(e){window.setTimeout(e,100)};function zi(e){if(!0===e||"p"===e||"li"===e)return!0===e?"p":e}var Ki=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).onEnter=e.onEnter.bind(Object(E.a)(e)),e.onSplit=e.onSplit.bind(Object(E.a)(e)),e.onPaste=e.onPaste.bind(Object(E.a)(e)),e.onDelete=e.onDelete.bind(Object(E.a)(e)),e.inputRule=e.inputRule.bind(Object(E.a)(e)),e.markAutomaticChange=e.markAutomaticChange.bind(Object(E.a)(e)),e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"onEnter",value:function(e){var t=e.value,n=e.onChange,r=e.shiftKey,o=this.props,a=o.onReplace,l=o.onSplit,s=o.multiline,u=a&&l;if(a){var d=Object(i.getBlockTransforms)("from").filter((function(e){return"enter"===e.type})),f=Object(i.findTransform)(d,(function(e){return e.regExp.test(t.text)}));f&&(a([f.transform({content:t.text})]),this.markAutomaticChange())}s?r?n(Object(c.insert)(t,"\n")):u&&Object(c.__unstableIsEmptyLine)(t)?this.onSplit(t):n(Object(c.__unstableInsertLineSeparator)(t)):r||!u?n(Object(c.insert)(t,"\n")):this.onSplit(t)}},{key:"onDelete",value:function(e){var t=e.value,n=e.isReverse,r=this.props,o=r.onMerge,i=r.onRemove;o&&o(!n),i&&Object(c.isEmpty)(t)&&n&&i(!n)}},{key:"onPaste",value:function(e){var t=e.value,n=e.onChange,r=e.html,o=e.plainText,a=e.image,l=this.props,s=l.onReplace,u=l.onSplit,d=l.tagName,f=l.canUserUseUnfilteredHTML,p=l.multiline,b=l.__unstableEmbedURLOnPaste;if(a&&!r){var h=a.getAsFile?a.getAsFile():a,m=Object(i.pasteHandler)({HTML:''),mode:"BLOCKS",tagName:d});return window.console.log("Received item:\n\n",h),void(s&&Object(c.isEmpty)(t)?s(m):this.onSplit(t,m))}var v=s&&u?"AUTO":"INLINE";b&&Object(c.isEmpty)(t)&&Object(Le.isURL)(o.trim())&&(v="BLOCKS");var g=Object(i.pasteHandler)({HTML:r,plainText:o,mode:v,tagName:d,canUserUseUnfilteredHTML:f});if("string"==typeof g){var O=Object(c.create)({html:g});p&&(O=Object(c.replace)(O,/\n+/g,c.__UNSTABLE_LINE_SEPARATOR)),n(Object(c.insert)(t,O))}else g.length>0&&(s&&Object(c.isEmpty)(t)?s(g):this.onSplit(t,g))}},{key:"onSplit",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=this.props,r=n.onReplace,o=n.onSplit,i=n.__unstableOnSplitMiddle,a=n.multiline;if(r&&o){var l=[],s=Object(c.split)(e),u=Object(Ne.a)(s,2),d=u[0],f=u[1],p=t.length>0,b=zi(a);p&&Object(c.isEmpty)(d)||l.push(o(Object(c.toHTMLString)({value:d,multilineTag:b}))),p?l.push.apply(l,Object(Be.a)(t)):i&&l.push(i()),!p&&i&&Object(c.isEmpty)(f)||l.push(o(Object(c.toHTMLString)({value:f,multilineTag:b})));var h=p?l.length-1:1;r(l,h)}}},{key:"inputRule",value:function(e,t){var n=this.props.onReplace;if(n){var r=e.start,o=e.text;if(" "===o.slice(r-1,r)){var a=o.slice(0,r).trim(),l=Object(i.getBlockTransforms)("from").filter((function(e){return"prefix"===e.type})),s=Object(i.findTransform)(l,(function(e){var t=e.prefix;return a===t}));if(s){var u=t(Object(c.slice)(e,r,o.length));n([s.transform(u)]),this.markAutomaticChange()}}}}},{key:"getAllowedFormats",value:function(){var e=this.props,t=e.allowedFormats,n=e.formattingControls;if(t||n)return t||(Ni()("wp.blockEditor.RichText formattingControls prop",{alternative:"allowedFormats"}),n.map((function(e){return"core/".concat(e)})))}},{key:"markAutomaticChange",value:function(){var e=this;Vi((function(){e.props.markAutomaticChange()}))}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.tagName,r=e.value,o=e.onChange,a=e.selectionStart,l=e.selectionEnd,d=e.onSelectionChange,p=e.multiline,b=e.inlineToolbar,h=e.wrapperClassName,m=e.className,v=e.autocompleters,g=e.onReplace,O=e.isCaretWithinFormattedText,k=e.onEnterFormattedText,y=e.onExitFormattedText,j=e.isSelected,_=e.onCreateUndoLevel,S=(e.markAutomaticChange,e.didAutomaticChange),C=e.undo,E=e.placeholder,w=e.keepPlaceholderOnFocus,I=(e.allowedFormats,e.withoutInteractiveFormatting),B=(e.onRemove,e.onMerge,e.onSplit,e.canUserUseUnfilteredHTML,e.clientId,e.identifier,e.instanceId,e.start),T=e.reversed,x=Object(Ae.a)(e,["children","tagName","value","onChange","selectionStart","selectionEnd","onSelectionChange","multiline","inlineToolbar","wrapperClassName","className","autocompleters","onReplace","isCaretWithinFormattedText","onEnterFormattedText","onExitFormattedText","isSelected","onCreateUndoLevel","markAutomaticChange","didAutomaticChange","undo","placeholder","keepPlaceholderOnFocus","allowedFormats","withoutInteractiveFormatting","onRemove","onMerge","onSplit","canUserUseUnfilteredHTML","clientId","identifier","instanceId","start","reversed"]),L=zi(p),N=this.getAllowedFormats(),A=!N||N.length>0,M=r,R=o;Array.isArray(r)&&(M=i.children.toHTML(r),R=function(e){return o(i.children.fromDOM(Object(c.__unstableCreateElement)(document,e).childNodes))});var D=Object(u.createElement)(c.__experimentalRichText,Object(s.a)({},x,{value:M,onChange:R,selectionStart:a,selectionEnd:l,onSelectionChange:d,tagName:n,className:f()("editor-rich-text__editable block-editor-rich-text__editable",m,{"is-selected":j,"keep-placeholder-on-focus":w}),placeholder:E,allowedFormats:N,withoutInteractiveFormatting:I,onEnter:this.onEnter,onDelete:this.onDelete,onPaste:this.onPaste,__unstableIsSelected:j,__unstableInputRule:this.inputRule,__unstableMultilineTag:L,__unstableIsCaretWithinFormattedText:O,__unstableOnEnterFormattedText:k,__unstableOnExitFormattedText:y,__unstableOnCreateUndoLevel:_,__unstableMarkAutomaticChange:this.markAutomaticChange,__unstableDidAutomaticChange:S,__unstableUndo:C}),(function(e){var n=e.isSelected,r=e.value,o=e.onChange,i=e.Editable;return Object(u.createElement)(u.Fragment,null,t&&t({value:r,onChange:o}),n&&!b&&A&&Object(u.createElement)(pe,null,Object(u.createElement)(Mi,null)),n&&b&&A&&Object(u.createElement)(P.IsolatedEventContainer,{className:"editor-rich-text__inline-toolbar block-editor-rich-text__inline-toolbar"},Object(u.createElement)(Mi,null)),n&&Object(u.createElement)(Di,null),Object(u.createElement)($,{onReplace:g,completers:v,record:r,onChange:o,isSelected:n},(function(e){var t=e.listBoxId,n=e.activeId,r=e.onKeyDown;return Object(u.createElement)(i,{"aria-autocomplete":t?"list":void 0,"aria-owns":t,"aria-activedescendant":n,start:B,reversed:T,onKeyDown:r})})))}));return Object(u.createElement)("div",{className:f()("editor-rich-text block-editor-rich-text",h)},D)}}]),t}(u.Component),Wi=Object(b.compose)([b.withInstanceId,q((function(e){return{clientId:e.clientId}})),Object(m.withSelect)((function(e,t){var n=t.clientId,r=t.instanceId,o=t.identifier,i=void 0===o?r:o,c=t.isSelected,a=e("core/block-editor"),l=a.isCaretWithinFormattedText,s=a.getSelectionStart,u=a.getSelectionEnd,d=a.getSettings,f=a.didAutomaticChange,p=s(),b=u(),h=d().__experimentalCanUserUseUnfilteredHTML;return void 0===c?c=p.clientId===n&&p.attributeKey===i:c&&(c=p.clientId===n),{canUserUseUnfilteredHTML:h,isCaretWithinFormattedText:l(),selectionStart:c?p.offset:void 0,selectionEnd:c?b.offset:void 0,isSelected:c,didAutomaticChange:f()}})),Object(m.withDispatch)((function(e,t){var n=t.clientId,r=t.instanceId,o=t.identifier,i=void 0===o?r:o,c=e("core/block-editor"),a=c.__unstableMarkLastChangeAsPersistent,l=c.enterFormattedText,s=c.exitFormattedText,u=c.selectionChange;return{onCreateUndoLevel:a,onEnterFormattedText:l,onExitFormattedText:s,onSelectionChange:function(e,t){u(n,i,e,t)},markAutomaticChange:c.__unstableMarkAutomaticChange,undo:e("core/editor").undo}})),Object(P.withFilters)("experimentalRichText")])(Ki);Wi.Content=function(e){var t=e.value,n=e.tagName,r=e.multiline,o=Object(Ae.a)(e,["value","tagName","multiline"]);Array.isArray(t)&&(t=i.children.toHTML(t));var c=zi(r);!t&&c&&(t="<".concat(c,">"));var a=Object(u.createElement)(u.RawHTML,null,t);return n?Object(u.createElement)(n,Object(p.omit)(o,["format"]),a):a},Wi.isEmpty=function(e){return!e||0===e.length},Wi.Content.defaultProps={format:"string",value:""};var qi=Wi,Gi=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).toggle=e.toggle.bind(Object(E.a)(e)),e.submitLink=e.submitLink.bind(Object(E.a)(e)),e.state={expanded:!1},e}return Object(w.a)(t,e),Object(_.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(H.__)("Edit link"):Object(H.__)("Insert link");return Object(u.createElement)("div",{className:"editor-url-input__button block-editor-url-input__button"},Object(u.createElement)(P.IconButton,{icon:"admin-links",label:o,onClick:this.toggle,className:f()("components-toolbar__control",{"is-active":t})}),r&&Object(u.createElement)("form",{className:"editor-url-input__button-modal block-editor-url-input__button-modal",onSubmit:this.submitLink},Object(u.createElement)("div",{className:"editor-url-input__button-modal-line block-editor-url-input__button-modal-line"},Object(u.createElement)(P.IconButton,{className:"editor-url-input__back block-editor-url-input__back",icon:"arrow-left-alt",label:Object(H.__)("Close"),onClick:this.toggle}),Object(u.createElement)(vi,{value:t||"",onChange:n}),Object(u.createElement)(P.IconButton,{icon:"editor-break",label:Object(H.__)("Submit"),type:"submit"}))))}}]),t}(u.Component),$i=Object(P.createSlotFill)("__experimentalBlockSettingsMenuFirstItem"),Yi=$i.Fill,Xi=$i.Slot;Yi.Slot=Xi;var Zi=Yi,Ji=Object(P.createSlotFill)("__experimentalBlockSettingsMenuPluginsExtension"),Qi=Ji.Fill,ec=Ji.Slot;Qi.Slot=ec;var tc=Qi;var nc=Object(b.compose)([Object(m.withSelect)((function(e,t){var n=e("core/block-editor"),r=n.canInsertBlockType,o=n.getBlockRootClientId,c=n.getBlocksByClientId,a=n.getTemplateLock,l=e("core/blocks").getDefaultBlockName,s=c(t.clientIds),u=o(t.clientIds[0]);return{blocks:s,canDuplicate:Object(p.every)(s,(function(e){return!!e&&Object(i.hasBlockSupport)(e.name,"multiple",!0)&&r(e.name,u)})),canInsertDefaultBlock:r(l(),u),extraProps:t,isLocked:!!a(u),rootClientId:u}})),Object(m.withDispatch)((function(e,t,n){var r=n.select,o=t.clientIds,c=t.rootClientId,a=t.blocks,l=t.isLocked,s=t.canDuplicate,u=e("core/block-editor"),d=u.insertBlocks,f=u.multiSelect,b=u.removeBlocks,h=u.insertDefaultBlock,m=u.replaceBlocks;return{onDuplicate:function(){if(s){var e=(0,r("core/block-editor").getBlockIndex)(Object(p.last)(Object(p.castArray)(o)),c),t=a.map((function(e){return Object(i.cloneBlock)(e)}));d(t,e+1,c),t.length>1&&f(Object(p.first)(t).clientId,Object(p.last)(t).clientId)}},onRemove:function(){l||b(o)},onInsertBefore:function(){if(!l){var e=(0,r("core/block-editor").getBlockIndex)(Object(p.first)(Object(p.castArray)(o)),c);h({},c,e)}},onInsertAfter:function(){if(!l){var e=(0,r("core/block-editor").getBlockIndex)(Object(p.last)(Object(p.castArray)(o)),c);h({},c,e+1)}},onGroup:function(){if(a.length){var e=(0,r("core/blocks").getGroupingBlockName)(),t=Object(i.switchToBlockType)(a,e);t&&m(o,t)}},onUngroup:function(){if(a.length){var e=a[0].innerBlocks;e.length&&m(o,e)}}}}))])((function(e){var t=e.canDuplicate,n=e.canInsertDefaultBlock;return(0,e.children)({canDuplicate:t,canInsertDefaultBlock:n,isLocked:e.isLocked,onDuplicate:e.onDuplicate,onGroup:e.onGroup,onInsertAfter:e.onInsertAfter,onInsertBefore:e.onInsertBefore,onRemove:e.onRemove,onUngroup:e.onUngroup})})),rc=function(e){return e.preventDefault(),e},oc={duplicate:{raw:he.rawShortcut.primaryShift("d"),display:he.displayShortcut.primaryShift("d")},removeBlock:{raw:he.rawShortcut.access("z"),display:he.displayShortcut.access("z")},insertBefore:{raw:he.rawShortcut.primaryAlt("t"),display:he.displayShortcut.primaryAlt("t")},insertAfter:{raw:he.rawShortcut.primaryAlt("y"),display:he.displayShortcut.primaryAlt("y")}},ic=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).selectAll=e.selectAll.bind(Object(E.a)(e)),e.deleteSelectedBlocks=e.deleteSelectedBlocks.bind(Object(E.a)(e)),e.clearMultiSelection=e.clearMultiSelection.bind(Object(E.a)(e)),e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"selectAll",value:function(e){var t=this.props,n=t.rootBlocksClientIds,r=t.onMultiSelect;e.preventDefault(),r(Object(p.first)(n),Object(p.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(u.createElement)(u.Fragment,null,Object(u.createElement)(P.KeyboardShortcuts,{shortcuts:(e={},Object(I.a)(e,he.rawShortcut.primary("a"),this.selectAll),Object(I.a)(e,"backspace",this.deleteSelectedBlocks),Object(I.a)(e,"del",this.deleteSelectedBlocks),Object(I.a)(e,"escape",this.clearMultiSelection),e)}),t.length>0&&Object(u.createElement)(nc,{clientIds:t},(function(e){var t,n=e.onDuplicate,r=e.onRemove,o=e.onInsertAfter,i=e.onInsertBefore;return Object(u.createElement)(P.KeyboardShortcuts,{bindGlobal:!0,shortcuts:(t={},Object(I.a)(t,oc.duplicate.raw,Object(p.flow)(rc,n)),Object(I.a)(t,oc.removeBlock.raw,Object(p.flow)(rc,r)),Object(I.a)(t,oc.insertBefore.raw,Object(p.flow)(rc,i)),Object(I.a)(t,oc.insertAfter.raw,Object(p.flow)(rc,o)),t)})})))}}]),t}(u.Component),cc=Object(b.compose)([Object(m.withSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockOrder,r=t.getSelectedBlockClientIds,o=t.hasMultiSelection,i=t.getBlockRootClientId,c=t.getTemplateLock,a=r();return{rootBlocksClientIds:n(),hasMultiSelection:o(),isLocked:Object(p.some)(a,(function(e){return!!c(i(e))})),selectedBlockClientIds:a}})),Object(m.withDispatch)((function(e){var t=e("core/block-editor");return{clearSelectedBlock:t.clearSelectedBlock,onMultiSelect:t.multiSelect,onRemove:t.removeBlocks}}))])(ic),ac=Object(m.withSelect)((function(e){return{selectedBlockClientId:e("core/block-editor").getBlockSelectionStart()}}))((function(e){var t=e.selectedBlockClientId;return t&&Object(u.createElement)(P.Button,{isDefault:!0,type:"button",className:"editor-skip-to-selected-block block-editor-skip-to-selected-block",onClick:function(){po(t).closest(".block-editor-block-list__block").focus()}},Object(H.__)("Skip to the selected block"))})),lc=n(143),sc=n.n(lc);function uc(e,t,n){var r=new sc.a(e);return t&&r.remove("is-style-"+t.name),r.add("is-style-"+n.name),r.value}var dc=Object(b.compose)([Object(m.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock,o=e("core/blocks").getBlockStyles,c=r(n),a=Object(i.getBlockType)(c.name);return{block:c,className:c.attributes.className||"",styles:o(c.name),type:a}})),Object(m.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.type,c=e.block,a=e.onSwitch,s=void 0===a?p.noop:a,d=e.onHoverClassName,b=void 0===d?p.noop:d;if(!t||0===t.length)return null;o.styles||Object(p.find)(t,"isDefault")||(t=[{name:"default",label:Object(H._x)("Default","block style"),isDefault:!0}].concat(Object(Be.a)(t)));var h=function(e,t){var n=!0,r=!1,o=void 0;try{for(var i,c=new sc.a(t).values()[Symbol.iterator]();!(n=(i=c.next()).done);n=!0){var a=i.value;if(-1!==a.indexOf("is-style-")){var l=a.substring(9),s=Object(p.find)(e,{name:l});if(s)return s}}}catch(e){r=!0,o=e}finally{try{n||null==c.return||c.return()}finally{if(r)throw o}}return Object(p.find)(e,"isDefault")}(t,n);function m(e){var t=uc(n,h,e);r(t),b(null),s()}return Object(u.createElement)("div",{className:"editor-block-styles block-editor-block-styles"},t.map((function(e){var t=uc(n,h,e);return Object(u.createElement)("div",{key:e.name,className:f()("editor-block-styles__item block-editor-block-styles__item",{"is-active":h===e}),onClick:function(){return m(e)},onKeyDown:function(t){he.ENTER!==t.keyCode&&he.SPACE!==t.keyCode||(t.preventDefault(),m(e))},onMouseEnter:function(){return b(t)},onMouseLeave:function(){return b(null)},role:"button",tabIndex:"0","aria-label":e.label||e.name},Object(u.createElement)("div",{className:"editor-block-styles__item-preview block-editor-block-styles__item-preview"},Object(u.createElement)(wo,{viewportWidth:500,blocks:o.example?Object(i.getBlockFromExample)(c.name,{attributes:Object(l.a)({},o.example.attributes,{className:t}),innerBlocks:o.example.innerBlocks}):Object(i.cloneBlock)(c,{className:t})})),Object(u.createElement)("div",{className:"editor-block-styles__item-label block-editor-block-styles__item-label"},e.label||e.name))})))})),fc=n(97);var pc=Object(m.withSelect)((function(e){return{blocks:(0,e("core/block-editor").getMultiSelectedBlocks)()}}))((function(e){var t=e.blocks,n=Object(fc.count)(Object(i.serialize)(t),"words");return Object(u.createElement)("div",{className:"editor-multi-selection-inspector__card block-editor-multi-selection-inspector__card"},Object(u.createElement)(be,{icon:Object(u.createElement)(P.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(P.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(u.createElement)("div",{className:"editor-multi-selection-inspector__card-content block-editor-multi-selection-inspector__card-content"},Object(u.createElement)("div",{className:"editor-multi-selection-inspector__card-title block-editor-multi-selection-inspector__card-title"},Object(H.sprintf)(Object(H._n)("%d block","%d blocks",t.length),t.length)),Object(u.createElement)("div",{className:"editor-multi-selection-inspector__card-description block-editor-multi-selection-inspector__card-description"},Object(H.sprintf)(Object(H._n)("%d word","%d words",n),n))))}));function bc(e){var t=e.blockName,n=Object(m.useSelect)((function(e){var n=e("core/block-editor").getSettings().__experimentalPreferredStyleVariations;return{preferredStyle:Object(p.get)(n,["value",t]),onUpdatePreferredStyleVariations:Object(p.get)(n,["onChange"],null),styles:e("core/blocks").getBlockStyles(t)}}),[t]),r=n.preferredStyle,o=n.onUpdatePreferredStyleVariations,i=n.styles,c=Object(u.useMemo)((function(){return[{label:Object(H.__)("Not set"),value:""}].concat(Object(Be.a)(i.map((function(e){return{label:e.label,value:e.name}}))))}),[i]),a=Object(u.useCallback)((function(e){o(t,e)}),[t,o]);return o&&Object(u.createElement)(P.SelectControl,{options:c,value:r||"",label:Object(H.__)("Default Style"),onChange:a})}var hc=Object(m.withSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getSelectedBlockCount,o=t.getBlockName,c=e("core/blocks").getBlockStyles,a=n(),l=a&&o(a),s=a&&Object(i.getBlockType)(l),u=a&&c(l);return{count:r(),hasBlockStyles:u&&u.length>0,selectedBlockName:l,selectedBlockClientId:a,blockType:s}}))((function(e){var t=e.blockType,n=e.count,r=e.hasBlockStyles,o=e.selectedBlockClientId,c=e.selectedBlockName,a=e.showNoBlockSelectedMessage,l=void 0===a||a;if(n>1)return Object(u.createElement)(pc,null);var s=c===Object(i.getUnregisteredTypeHandlerName)();return t&&o&&!s?Object(u.createElement)(u.Fragment,null,Object(u.createElement)(To,{blockType:t}),r&&Object(u.createElement)("div",null,Object(u.createElement)(P.PanelBody,{title:Object(H.__)("Styles"),initialOpen:!1},Object(u.createElement)(dc,{clientId:o}),Object(u.createElement)(bc,{blockName:t.name}))),Object(u.createElement)("div",null,Object(u.createElement)(fi.Slot,null)),Object(u.createElement)("div",null,Object(u.createElement)(ai.Slot,null,(function(e){return!Object(p.isEmpty)(e)&&Object(u.createElement)(P.PanelBody,{className:"editor-block-inspector__advanced block-editor-block-inspector__advanced",title:Object(H.__)("Advanced"),initialOpen:!1},e)}))),Object(u.createElement)(ac,{key:"back"})):l?Object(u.createElement)("span",{className:"editor-block-inspector__no-blocks block-editor-block-inspector__no-blocks"},Object(H.__)("No block selected.")):null})),mc=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).bindContainer=e.bindContainer.bind(Object(E.a)(e)),e.clearSelectionIfFocusTarget=e.clearSelectionIfFocusTarget.bind(Object(E.a)(e)),e}return Object(w.a)(t,e),Object(_.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(u.createElement)("div",Object(s.a)({tabIndex:-1,onFocus:this.clearSelectionIfFocusTarget,ref:this.bindContainer},Object(p.omit)(this.props,["clearSelectedBlock","hasSelectedBlock","hasMultiSelection"])))}}]),t}(u.Component),vc=Object(b.compose)([Object(m.withSelect)((function(e){var t=e("core/block-editor"),n=t.hasSelectedBlock,r=t.hasMultiSelection;return{hasSelectedBlock:n(),hasMultiSelection:r()}})),Object(m.withDispatch)((function(e){return{clearSelectedBlock:e("core/block-editor").clearSelectedBlock}}))])(mc);var gc=Object(b.compose)([Object(m.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor"),o=r.getBlock,c=r.getBlockMode,a=r.getSettings,l=o(n),s=a().codeEditingEnabled;return{mode:c(n),blockType:l?Object(i.getBlockType)(l.name):null,isCodeEditingEnabled:s}})),Object(m.withDispatch)((function(e,t){var n=t.onToggle,r=void 0===n?p.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,c=void 0!==o&&o,a=e.isCodeEditingEnabled,l=void 0===a||a;if(!Object(i.hasBlockSupport)(t,"html",!0)||!l)return null;var s="visual"===n?Object(H.__)("Edit as HTML"):Object(H.__)("Edit visually");return Object(u.createElement)(P.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:r,icon:"html"},!c&&s)}));function Oc(e){var t=e.shouldRender,n=e.onClick,r=e.small;if(!t)return null;var o=Object(H.__)("Convert to Blocks");return Object(u.createElement)(P.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:n,icon:"screenoptions"},!r&&o)}var kc=Object(b.compose)(Object(m.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(m.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)}))}}})))(Oc),yc=Object(b.compose)(Object(m.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock(n);return{block:r,shouldRender:r&&r.name===Object(i.getFreeformContentHandlerName)()}})),Object(m.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)}))}}})))(Oc),jc={className:"block-editor-block-settings-menu__popover editor-block-settings-menu__popover",position:"bottom right"};var _c=function(e){var t=e.clientIds,n=Object(p.castArray)(t),r=n.length,o=n[0];return Object(u.createElement)(nc,{clientIds:t},(function(e){var n=e.canDuplicate,i=e.canInsertDefaultBlock,c=e.isLocked,a=e.onDuplicate,l=e.onInsertAfter,s=e.onInsertBefore,d=e.onRemove;return Object(u.createElement)(P.Toolbar,null,Object(u.createElement)(P.DropdownMenu,{icon:"ellipsis",label:Object(H.__)("More options"),className:"block-editor-block-settings-menu",popoverProps:jc},(function(e){var f=e.onClose;return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(P.MenuGroup,null,Object(u.createElement)(Zi.Slot,{fillProps:{onClose:f}}),1===r&&Object(u.createElement)(yc,{clientId:o}),1===r&&Object(u.createElement)(kc,{clientId:o}),n&&Object(u.createElement)(P.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:Object(p.flow)(f,a),icon:"admin-page",shortcut:oc.duplicate.display},Object(H.__)("Duplicate")),i&&Object(u.createElement)(u.Fragment,null,Object(u.createElement)(P.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:Object(p.flow)(f,s),icon:"insert-before",shortcut:oc.insertBefore.display},Object(H.__)("Insert Before")),Object(u.createElement)(P.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:Object(p.flow)(f,l),icon:"insert-after",shortcut:oc.insertAfter.display},Object(H.__)("Insert After"))),1===r&&Object(u.createElement)(gc,{clientId:o,onToggle:f}),Object(u.createElement)(tc.Slot,{fillProps:{clientIds:t,onClose:f}})),Object(u.createElement)(P.MenuGroup,null,!c&&Object(u.createElement)(P.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:Object(p.flow)(f,d),icon:"trash",shortcut:oc.removeBlock.display},Object(H._n)("Remove Block","Remove Blocks",r))))})))}))},Sc=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).state={hoveredClassName:null},e.onHoverClassName=e.onHoverClassName.bind(Object(E.a)(e)),e}return Object(w.a)(t,e),Object(_.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,c=t.hasBlockStyles,a=this.state.hoveredClassName;if(!n||!n.length)return null;var s,d=a?n[0]:null,f=a?Object(i.getBlockType)(d.name):null,b=Object(p.mapKeys)(o,(function(e){return e.name})),h=Object(p.orderBy)(Object(p.filter)(Object(i.getPossibleBlockTransformations)(n),(function(e){return e&&!!b[e.name]})),(function(e){return b[e.name].frecency}),"desc");if(1===Object(p.uniq)(Object(p.map)(n,"name")).length){var m=n[0].name,v=Object(i.getBlockType)(m);s=v.icon}else s="layout";return c||h.length?Object(u.createElement)(P.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,r=e.isOpen,o=1===n.length?Object(H.__)("Change block type or style"):Object(H.sprintf)(Object(H._n)("Change type of %d block","Change type of %d blocks",n.length),n.length);return Object(u.createElement)(P.Toolbar,null,Object(u.createElement)(P.IconButton,{className:"editor-block-switcher__toggle block-editor-block-switcher__toggle",onClick:t,"aria-haspopup":"true","aria-expanded":r,label:o,tooltip:o,onKeyDown:function(e){r||e.keyCode!==he.DOWN||(e.preventDefault(),e.stopPropagation(),t())},icon:Object(u.createElement)(u.Fragment,null,Object(u.createElement)(be,{icon:s,showColors:!0}),Object(u.createElement)(P.SVG,{className:"editor-block-switcher__transform block-editor-block-switcher__transform",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(P.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(u.createElement)(u.Fragment,null,(c||0!==h.length)&&Object(u.createElement)("div",{className:"block-editor-block-switcher__container"},c&&Object(u.createElement)(P.PanelBody,{title:Object(H.__)("Block Styles"),initialOpen:!0},Object(u.createElement)(dc,{clientId:n[0].clientId,onSwitch:o,onHoverClassName:e.onHoverClassName})),0!==h.length&&Object(u.createElement)(P.PanelBody,{title:Object(H.__)("Transform To:"),initialOpen:!0},Object(u.createElement)(Bo,{items:h.map((function(e){return{id:e.name,icon:e.icon,title:e.title}})),onSelect:function(e){r(n,e.id),o()}}))),null!==a&&Object(u.createElement)("div",{className:"block-editor-block-switcher__preview"},Object(u.createElement)("div",{className:"block-editor-block-switcher__preview-title"},Object(H.__)("Preview")),Object(u.createElement)(wo,{viewportWidth:500,blocks:f.example?Object(i.getBlockFromExample)(d.name,{attributes:Object(l.a)({},f.example.attributes,{className:a}),innerBlocks:f.example.innerBlocks}):Object(i.cloneBlock)(d,{className:a})})))}}):Object(u.createElement)(P.Toolbar,null,Object(u.createElement)(P.IconButton,{disabled:!0,className:"editor-block-switcher__no-switcher-icon block-editor-block-switcher__no-switcher-icon",label:Object(H.__)("Block icon"),icon:Object(u.createElement)(be,{icon:s,showColors:!0})}))}}]),t}(u.Component),Cc=Object(b.compose)(Object(m.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,l=i(Object(p.first)(Object(p.castArray)(n))),s=o(n),u=s&&1===s.length?s[0]:null,d=u&&a(u.name);return{blocks:s,inserterItems:c(l),hasBlockStyles:d&&d.length>0}})),Object(m.withDispatch)((function(e,t){return{onTransform:function(n,r){e("core/block-editor").replaceBlocks(t.clientIds,Object(i.switchToBlockType)(n,r))}}})))(Sc);var Ec=Object(m.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(u.createElement)(Cc,{key:"switcher",clientIds:n}):null}));var wc=Object(m.withSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockMode,r=t.getSelectedBlockClientIds,o=t.isBlockValid,i=r();return{blockClientIds:i,isValid:1===i.length?o(i[0]):null,mode:1===i.length?n(i[0]):null}}))((function(e){var t=e.blockClientIds,n=e.isValid,r=e.mode;return 0===t.length?null:t.length>1?Object(u.createElement)("div",{className:"editor-block-toolbar block-editor-block-toolbar"},Object(u.createElement)(Ec,null),Object(u.createElement)(_c,{clientIds:t})):Object(u.createElement)("div",{className:"editor-block-toolbar block-editor-block-toolbar"},"visual"===r&&n&&Object(u.createElement)(u.Fragment,null,Object(u.createElement)(Cc,{clientIds:t}),Object(u.createElement)(oe.Slot,{bubblesVirtually:!0,className:"block-editor-block-toolbar__slot"}),Object(u.createElement)(pe.Slot,{bubblesVirtually:!0,className:"block-editor-block-toolbar__slot"})),Object(u.createElement)(_c,{clientIds:t}))}));var Ic=Object(b.compose)([Object(m.withDispatch)((function(e,t,n){var r=(0,n.select)("core/block-editor"),o=r.getBlocksByClientId,c=r.getSelectedBlockClientIds,a=r.hasMultiSelection,l=e("core/block-editor").removeBlocks,s=function(e){var t=c();if(0!==t.length&&(a()||!Object(xr.documentHasSelection)())){var n=Object(i.serialize)(o(t));e.clipboardData.setData("text/plain",n),e.clipboardData.setData("text/html",n),e.preventDefault()}};return{onCopy:s,onCut:function(e){if(s(e),a()){var t=c();l(t)}}}}))])((function(e){var t=e.children,n=e.onCopy,r=e.onCut;return Object(u.createElement)("div",{onCopy:n,onCut:r},t)})),Bc=function(e){function t(){return Object(j.a)(this,t),Object(S.a)(this,Object(C.a)(t).apply(this,arguments))}return Object(w.a)(t,e),Object(_.a)(t,[{key:"componentDidUpdate",value:function(){this.scrollIntoView()}},{key:"scrollIntoView",value:function(){var e=this.props.extentClientId;if(e){var t=po(e);if(t){var n=Object(xr.getScrollContainer)(t);n&&xe()(t,n,{onlyScrollIfNeeded:!0})}}}},{key:"render",value:function(){return null}}]),t}(u.Component),Tc=Object(m.withSelect)((function(e){return{extentClientId:(0,e("core/block-editor").getLastMultiSelectedBlockClientId)()}}))(Bc),xc=[he.UP,he.RIGHT,he.DOWN,he.LEFT,he.ENTER,he.BACKSPACE];var Lc=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).stopTypingOnSelectionUncollapse=e.stopTypingOnSelectionUncollapse.bind(Object(E.a)(e)),e.stopTypingOnMouseMove=e.stopTypingOnMouseMove.bind(Object(E.a)(e)),e.startTypingInTextField=e.startTypingInTextField.bind(Object(E.a)(e)),e.stopTypingOnNonTextField=e.stopTypingOnNonTextField.bind(Object(E.a)(e)),e.stopTypingOnEscapeKey=e.stopTypingOnEscapeKey.bind(Object(E.a)(e)),e.onKeyDown=Object(p.over)([e.startTypingInTextField,e.stopTypingOnEscapeKey]),e.lastMouseMove=null,e}return Object(w.a)(t,e),Object(_.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===he.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(xr.isTextField)(i)||i.closest(".block-editor-block-toolbar")||("keydown"!==o||function(e){var t=e.keyCode;return!e.shiftKey&&Object(p.includes)(xc,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(xr.isTextField)(i)&&o()}))}},{key:"render",value:function(){var e=this.props.children;return Object(u.createElement)("div",{onFocus:this.stopTypingOnNonTextField,onKeyPress:this.startTypingInTextField,onKeyDown:this.onKeyDown},e)}}]),t}(u.Component),Nc=Object(b.compose)([Object(m.withSelect)((function(e){return{isTyping:(0,e("core/block-editor").isTyping)()}})),Object(m.withDispatch)((function(e){var t=e("core/block-editor");return{onStartTyping:t.startTyping,onStopTyping:t.stopTyping}})),b.withSafeTimeout])(Lc);function Ac(){return Ni()("PreserveScrollInReorder component",{hint:"This behavior is now built-in the block list"}),null}var Mc=-1!==window.navigator.userAgent.indexOf("Trident"),Rc=new Set([he.UP,he.DOWN,he.LEFT,he.RIGHT]),Pc=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).ref=Object(u.createRef)(),e.onKeyDown=e.onKeyDown.bind(Object(E.a)(e)),e.addSelectionChangeListener=e.addSelectionChangeListener.bind(Object(E.a)(e)),e.computeCaretRectOnSelectionChange=e.computeCaretRectOnSelectionChange.bind(Object(E.a)(e)),e.maintainCaretPosition=e.maintainCaretPosition.bind(Object(E.a)(e)),e.computeCaretRect=e.computeCaretRect.bind(Object(E.a)(e)),e.onScrollResize=e.onScrollResize.bind(Object(E.a)(e)),e.isSelectionEligibleForScroll=e.isSelectionEligibleForScroll.bind(Object(E.a)(e)),e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScrollResize,!0),window.addEventListener("resize",this.onScrollResize,!0)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("scroll",this.onScrollResize,!0),window.removeEventListener("resize",this.onScrollResize,!0),document.removeEventListener("selectionchange",this.computeCaretRectOnSelectionChange),this.onScrollResize.rafId&&window.cancelAnimationFrame(this.onScrollResize.rafId),this.onKeyDown.rafId&&window.cancelAnimationFrame(this.onKeyDown.rafId)}},{key:"computeCaretRect",value:function(){this.isSelectionEligibleForScroll()&&(this.caretRect=Object(xr.computeCaretRect)())}},{key:"computeCaretRectOnSelectionChange",value:function(){document.removeEventListener("selectionchange",this.computeCaretRectOnSelectionChange),this.computeCaretRect()}},{key:"onScrollResize",value:function(){var e=this;this.onScrollResize.rafId||(this.onScrollResize.rafId=window.requestAnimationFrame((function(){e.computeCaretRect(),delete e.onScrollResize.rafId})))}},{key:"isSelectionEligibleForScroll",value:function(){return this.props.selectedBlockClientId&&this.ref.current.contains(document.activeElement)&&document.activeElement.isContentEditable}},{key:"isLastEditableNode",value:function(){var e=this.ref.current.querySelectorAll('[contenteditable="true"]');return e[e.length-1]===document.activeElement}},{key:"maintainCaretPosition",value:function(e){var t=e.keyCode;if(this.isSelectionEligibleForScroll()){var n=Object(xr.computeCaretRect)();if(n)if(this.caretRect)if(Rc.has(t))this.caretRect=n;else{var r=n.top-this.caretRect.top;if(0!==r){var o=Object(xr.getScrollContainer)(this.ref.current);if(o){var i=o===document.body,c=i?window.scrollY:o.scrollTop,a=i?0:o.getBoundingClientRect().top,l=i?this.caretRect.top/window.innerHeight:(this.caretRect.top-a)/(window.innerHeight-a);if(0===c&&l<.75&&this.isLastEditableNode())this.caretRect=n;else{var s=i?window.innerHeight:o.clientHeight;this.caretRect.top+this.caretRect.height>a+s||this.caretRect.top1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t=Array.isArray(e)?e:!0===e?Wc:[],!r||!0===e&&!n?p.without.apply(void 0,[t].concat(qc)):t}var $c=Object(b.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=Gc(Object(i.getBlockSupport)(n,"align"),Object(i.hasBlockSupport)(n,"alignWide",!0));return[r.length>0&&t.isSelected&&Object(u.createElement)(oe,{key:"align-controls"},Object(u.createElement)(Q,{value:t.attributes.align,onChange:function(e){if(!e){var n=Object(i.getBlockType)(t.name);Object(p.get)(n,["attributes","align","default"])&&(e="")}t.setAttributes({align:e})},controls:r})),Object(u.createElement)(e,Object(s.a)({key:"edit"},t))]}}),"withToolbarControls"),Yc=Object(b.createHigherOrderComponent)(Object(b.compose)([Object(m.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,c=r.align,a=Gc(Object(i.getBlockSupport)(n,"align"),Object(i.hasBlockSupport)(n,"alignWide",!0),o),d=t.wrapperProps;return Object(p.includes)(a,c)&&(d=Object(l.a)({},d,{"data-align":c})),Object(u.createElement)(e,Object(s.a)({},t,{wrapperProps:d}))}}]));Object(h.addFilter)("blocks.registerBlockType","core/align/addAttribute",(function(e){return Object(p.has)(e.attributes,["align","type"])?e:(Object(i.hasBlockSupport)(e,"align")&&(e.attributes=Object(p.assign)(e.attributes,{align:{type:"string"}})),e)})),Object(h.addFilter)("editor.BlockListBlock","core/editor/align/with-data-align",Yc),Object(h.addFilter)("editor.BlockEdit","core/editor/align/with-toolbar-controls",$c),Object(h.addFilter)("blocks.getSaveContent.extraProps","core/align/addAssignedAlign",(function(e,t,n){var r=n.align,o=Object(i.getBlockSupport)(t,"align"),c=Object(i.hasBlockSupport)(t,"alignWide",!0);return Object(p.includes)(Gc(o,c),r)&&(e.className=f()("align".concat(r),e.className)),e}));var Xc=/[\s#]/g;var Zc=Object(b.createHigherOrderComponent)((function(e){return function(t){return Object(i.hasBlockSupport)(t.name,"anchor")&&t.isSelected?Object(u.createElement)(u.Fragment,null,Object(u.createElement)(e,t),Object(u.createElement)(ai,null,Object(u.createElement)(P.TextControl,{className:"html-anchor-control",label:Object(H.__)("HTML Anchor"),help:Object(u.createElement)(u.Fragment,null,Object(H.__)("Enter a word or two — without spaces — to make a unique web address just for this heading, called an “anchor.” Then, you’ll be able to link directly to this section of your page."),Object(u.createElement)(P.ExternalLink,{href:"https://wordpress.org/support/article/page-jumps/"},Object(H.__)("Learn more about anchors"))),value:t.attributes.anchor||"",onChange:function(e){e=e.replace(Xc,"-"),t.setAttributes({anchor:e})}}))):Object(u.createElement)(e,t)}}),"withInspectorControl");Object(h.addFilter)("blocks.registerBlockType","core/anchor/attribute",(function(e){return Object(p.has)(e.attributes,["anchor","type"])?e:(Object(i.hasBlockSupport)(e,"anchor")&&(e.attributes=Object(p.assign)(e.attributes,{anchor:{type:"string",source:"attribute",attribute:"id",selector:"*"}})),e)})),Object(h.addFilter)("editor.BlockEdit","core/editor/anchor/with-inspector-control",Zc),Object(h.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 Jc=Object(b.createHigherOrderComponent)((function(e){return function(t){return Object(i.hasBlockSupport)(t.name,"customClassName",!0)&&t.isSelected?Object(u.createElement)(u.Fragment,null,Object(u.createElement)(e,t),Object(u.createElement)(ai,null,Object(u.createElement)(P.TextControl,{label:Object(H.__)("Additional CSS Class(es)"),value:t.attributes.className||"",onChange:function(e){t.setAttributes({className:""!==e?e:void 0})},help:Object(H.__)("Separate multiple classes with spaces.")}))):Object(u.createElement)(e,t)}}),"withInspectorControl");function Qc(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(h.addFilter)("blocks.registerBlockType","core/custom-class-name/attribute",(function(e){return Object(i.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes=Object(p.assign)(e.attributes,{className:{type:"string"}})),e})),Object(h.addFilter)("editor.BlockEdit","core/editor/custom-class-name/with-inspector-control",Jc),Object(h.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=f()(e.className,n.className)),e})),Object(h.addFilter)("blocks.getBlockAttributes","core/custom-class-name/addParsedDifference",(function(e,t,n){if(Object(i.hasBlockSupport)(t,"customClassName",!0)){var r=Object(p.omit)(e,["className"]),o=Object(i.getSaveContent)(t,r),c=Qc(o),a=Qc(n),l=Object(p.difference)(a,c);l.length?e.className=l.join(" "):o&&delete e.className}return e})),Object(h.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(p.uniq)([Object(i.getBlockDefaultClassName)(t.name)].concat(Object(Be.a)(e.className.split(" ")))).join(" ").trim():e.className=Object(i.getBlockDefaultClassName)(t.name)),e}));var ea=n(220),ta=n.n(ea),na=n(31),ra=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,oa=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),p(),t}}function c(e){this.start=e,this.end={line:n,column:r},this.source=t.source}c.prototype.content=e;var a=[];function l(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 s(){return f(/^{\s*/)}function u(){return f(/^}/)}function d(){var t,n=[];for(p(),b(n);e.length&&"}"!==e.charAt(0)&&(t=C()||E());)!1!==t&&(n.push(t),b(n));return n}function f(t){var n=t.exec(e);if(n){var r=n[0];return o(r),e=e.slice(r.length),n}}function p(){f(/^\s*/)}function b(e){var t;for(e=e||[];t=h();)!1!==t&&e.push(t);return e}function h(){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 l("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 m(){var e=f(/^([^{]+)/);if(e)return ia(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 v(){var e=i(),t=f(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(t){if(t=ia(t[0]),!f(/^:\s*/))return l("property missing ':'");var n=f(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),r=e({type:"declaration",property:t.replace(ra,""),value:n?ia(n[0]).replace(ra,""):""});return f(/^[;\s]*/),r}}function g(){var e,t=[];if(!s())return l("missing '{'");for(b(t);e=v();)!1!==e&&(t.push(e),b(t));return u()?t:l("missing '}'")}function O(){for(var e,t=[],n=i();e=f(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),f(/^,\s*/);if(t.length)return n({type:"keyframe",values:t,declarations:g()})}var k,y=S("import"),j=S("charset"),_=S("namespace");function S(e){var t=new RegExp("^@"+e+"\\s*([^;]+);");return function(){var n=i(),r=f(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=f(/^@([-\w]+)?keyframes\s*/);if(t){var n=t[1];if(!(t=f(/^([-\w]+)\s*/)))return l("@keyframes missing name");var r,o=t[1];if(!s())return l("@keyframes missing '{'");for(var c=b();r=O();)c.push(r),c=c.concat(b());return u()?e({type:"keyframes",name:o,vendor:n,keyframes:c}):l("@keyframes missing '}'")}}()||function(){var e=i(),t=f(/^@media *([^{]+)/);if(t){var n=ia(t[1]);if(!s())return l("@media missing '{'");var r=b().concat(d());return u()?e({type:"media",media:n,rules:r}):l("@media missing '}'")}}()||function(){var e=i(),t=f(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return e({type:"custom-media",name:ia(t[1]),media:ia(t[2])})}()||function(){var e=i(),t=f(/^@supports *([^{]+)/);if(t){var n=ia(t[1]);if(!s())return l("@supports missing '{'");var r=b().concat(d());return u()?e({type:"supports",supports:n,rules:r}):l("@supports missing '}'")}}()||y()||j()||_()||function(){var e=i(),t=f(/^@([-\w]+)?document *([^{]+)/);if(t){var n=ia(t[1]),r=ia(t[2]);if(!s())return l("@document missing '{'");var o=b().concat(d());return u()?e({type:"document",document:r,vendor:n,rules:o}):l("@document missing '}'")}}()||function(){var e=i();if(f(/^@page */)){var t=m()||[];if(!s())return l("@page missing '{'");for(var n,r=b();n=v();)r.push(n),r=r.concat(b());return u()?e({type:"page",selectors:t,declarations:r}):l("@page missing '}'")}}()||function(){var e=i();if(f(/^@host\s*/)){if(!s())return l("@host missing '{'");var t=b().concat(d());return u()?e({type:"host",rules:t}):l("@host missing '}'")}}()||function(){var e=i();if(f(/^@font-face\s*/)){if(!s())return l("@font-face missing '{'");for(var t,n=b();t=v();)n.push(t),n=n.concat(b());return u()?e({type:"font-face",declarations:n}):l("@font-face missing '}'")}}()}function E(){var e=i(),t=m();return t?(b(),e({type:"rule",selectors:t,declarations:g()})):l("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(na.a)(c)&&e(c,o)}r&&Object.defineProperty(t,"parent",{configurable:!0,writable:!0,enumerable:!1,value:n||null});return t}((k=d(),{type:"stylesheet",stylesheet:{source:t.source,rules:k,parsingErrors:a}}))};function ia(e){return e?e.replace(/^\s+|\s+$/g,""):""}var ca=n(112),aa=n.n(ca),la=sa;function sa(e){this.options=e||{}}sa.prototype.emit=function(e){return e},sa.prototype.visit=function(e){return this[e.type](e)},sa.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(l.a)({},n,{selectors:n.selectors.map((function(n){return Object(p.includes)(t,n.trim())?n:n.match(ka)?n.replace(/^(body|html|:root)/,e):e+" "+n}))}):n}},ja=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(p.map)(e,(function(e){var n=e.css,r=e.baseURL,o=[];return t&&o.push(ya(t)),r&&o.push(Oa(r)),o.length?ha(n,Object(b.compose)(o)):n}))};n.d(t,"AlignmentToolbar",(function(){return V})),n.d(t,"Autocomplete",(function(){return $})),n.d(t,"BlockAlignmentToolbar",(function(){return Q})),n.d(t,"BlockControls",(function(){return oe})),n.d(t,"BlockEdit",(function(){return le})),n.d(t,"BlockFormatControls",(function(){return pe})),n.d(t,"BlockIcon",(function(){return be})),n.d(t,"BlockNavigationDropdown",(function(){return Oe})),n.d(t,"__experimentalBlockNavigationList",(function(){return me})),n.d(t,"BlockVerticalAlignmentToolbar",(function(){return Ce})),n.d(t,"ButtonBlockerAppender",(function(){return Ko})),n.d(t,"ColorPalette",(function(){return qo})),n.d(t,"ContrastChecker",(function(){return $o})),n.d(t,"InnerBlocks",(function(){return ni})),n.d(t,"InspectorAdvancedControls",(function(){return ai})),n.d(t,"InspectorControls",(function(){return fi})),n.d(t,"MediaPlaceholder",(function(){return _i})),n.d(t,"MediaUpload",(function(){return pi})),n.d(t,"MediaUploadCheck",(function(){return Ee})),n.d(t,"PanelColorSettings",(function(){return Bi})),n.d(t,"PlainText",(function(){return Ti})),n.d(t,"RichText",(function(){return qi})),n.d(t,"RichTextShortcut",(function(){return Fi})),n.d(t,"RichTextToolbarButton",(function(){return Hi})),n.d(t,"__unstableRichTextInputEvent",(function(){return Ui})),n.d(t,"URLInput",(function(){return vi})),n.d(t,"URLInputButton",(function(){return Gi})),n.d(t,"URLPopover",(function(){return Oi})),n.d(t,"withColorContext",(function(){return Wo})),n.d(t,"__experimentalBlockSettingsMenuFirstItem",(function(){return Zi})),n.d(t,"__experimentalBlockSettingsMenuPluginsExtension",(function(){return tc})),n.d(t,"__experimentalInserterMenuExtension",(function(){return Mo})),n.d(t,"BlockEditorKeyboardShortcuts",(function(){return cc})),n.d(t,"BlockInspector",(function(){return hc})),n.d(t,"BlockList",(function(){return Co})),n.d(t,"BlockMover",(function(){return Fr})),n.d(t,"BlockPreview",(function(){return wo})),n.d(t,"BlockSelectionClearer",(function(){return vc})),n.d(t,"BlockSettingsMenu",(function(){return _c})),n.d(t,"BlockTitle",(function(){return eo})),n.d(t,"BlockToolbar",(function(){return wc})),n.d(t,"CopyHandler",(function(){return Ic})),n.d(t,"DefaultBlockAppender",(function(){return jo})),n.d(t,"Inserter",(function(){return zo})),n.d(t,"MultiBlocksSwitcher",(function(){return Ec})),n.d(t,"MultiSelectScrollIntoView",(function(){return Tc})),n.d(t,"NavigableToolbar",(function(){return no})),n.d(t,"ObserveTyping",(function(){return Nc})),n.d(t,"PreserveScrollInReorder",(function(){return Ac})),n.d(t,"SkipToSelectedBlock",(function(){return ac})),n.d(t,"Typewriter",(function(){return Dc})),n.d(t,"Warning",(function(){return Hr})),n.d(t,"WritingFlow",(function(){return Kc})),n.d(t,"BlockEditorProvider",(function(){return Ir})),n.d(t,"getColorClassName",(function(){return y})),n.d(t,"getColorObjectByAttributeValues",(function(){return O})),n.d(t,"getColorObjectByColorValue",(function(){return k})),n.d(t,"createCustomColorsHOC",(function(){return N})),n.d(t,"withColors",(function(){return A})),n.d(t,"getFontSize",(function(){return M})),n.d(t,"getFontSizeClass",(function(){return R})),n.d(t,"FontSizePicker",(function(){return D})),n.d(t,"withFontSizes",(function(){return F})),n.d(t,"transformStyles",(function(){return ja})),n.d(t,"storeConfig",(function(){return Sr})),n.d(t,"SETTINGS_DEFAULTS",(function(){return Re}))},35:function(e,t){!function(){e.exports=this.wp.blob}()},36: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;r=0;--i){var c=this.tryEntries[i],a=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var l=r.call(c,"catchLoc"),s=r.call(c,"finallyLoc");if(l&&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),E(n),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),b}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},49:function(e,t,n){var r;!function(o){var i=/^\s+/,c=/\s+$/,a=0,l=o.round,s=o.min,u=o.max,d=o.random;function f(e,t){if(t=t||{},(e=e||"")instanceof f)return e;if(!(this instanceof f))return new f(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,a=null,l=null,d=!1,f=!1;"string"==typeof e&&(e=function(e){e=e.replace(i,"").replace(c,"").toLowerCase();var t,n=!1;if(T[e])e=T[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=z.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=z.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=z.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=z.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=z.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=z.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=z.hex8.exec(e))return{r:M(t[1]),g:M(t[2]),b:M(t[3]),a:F(t[4]),format:n?"name":"hex8"};if(t=z.hex6.exec(e))return{r:M(t[1]),g:M(t[2]),b:M(t[3]),format:n?"name":"hex"};if(t=z.hex4.exec(e))return{r:M(t[1]+""+t[1]),g:M(t[2]+""+t[2]),b:M(t[3]+""+t[3]),a:F(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=z.hex3.exec(e))return{r:M(t[1]+""+t[1]),g:M(t[2]+""+t[2]),b:M(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(K(e.r)&&K(e.g)&&K(e.b)?(p=e.r,b=e.g,h=e.b,t={r:255*N(p,255),g:255*N(b,255),b:255*N(h,255)},d=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):K(e.h)&&K(e.s)&&K(e.v)?(r=P(e.s),a=P(e.v),t=function(e,t,n){e=6*N(e,360),t=N(t,100),n=N(n,100);var r=o.floor(e),i=e-r,c=n*(1-t),a=n*(1-i*t),l=n*(1-(1-i)*t),s=r%6;return{r:255*[n,a,c,c,l,n][s],g:255*[l,n,n,a,c,c][s],b:255*[c,c,l,n,n,a][s]}}(e.h,r,a),d=!0,f="hsv"):K(e.h)&&K(e.s)&&K(e.l)&&(r=P(e.s),l=P(e.l),t=function(e,t,n){var r,o,i;function c(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=N(e,360),t=N(t,100),n=N(n,100),0===t)r=o=i=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=c(l,a,e+1/3),o=c(l,a,e),i=c(l,a,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,r,l),d=!0,f="hsl"),e.hasOwnProperty("a")&&(n=e.a));var p,b,h;return n=L(n),{ok:d,format:e.format||f,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=a++}function p(e,t,n){e=N(e,255),t=N(t,255),n=N(n,255);var r,o,i=u(e,t,n),c=s(e,t,n),a=(i+c)/2;if(i==c)r=o=0;else{var l=i-c;switch(o=a>.5?l/(2-i-c):l/(i+c),i){case e:r=(t-n)/l+(t>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(f(r));return i}function B(e,t){t=t||6;for(var n=f(e).toHsv(),r=n.h,o=n.s,i=n.v,c=[],a=1/t;t--;)c.push(f({h:r,s:o,v:i})),i=(i+a)%1;return c}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,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=L(e),this._roundA=l(100*this._a)/100,this},toHsv:function(){var e=b(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=b(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=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=p(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 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=[R(l(e).toString(16)),R(l(t).toString(16)),R(l(n).toString(16)),R(D(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: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*N(this._r,255))+"%",g:l(100*N(this._g,255))+"%",b:l(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*N(this._r,255))+"%, "+l(100*N(this._g,255))+"%, "+l(100*N(this._b,255))+"%)":"rgba("+l(100*N(this._r,255))+"%, "+l(100*N(this._g,255))+"%, "+l(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="#"+m(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=f(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 f(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(y,arguments)},darken:function(){return this._applyModification(j,arguments)},desaturate:function(){return this._applyModification(v,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(B,arguments)},splitcomplement:function(){return this._applyCombination(w,arguments)},triad:function(){return this._applyCombination(C,arguments)},tetrad:function(){return this._applyCombination(E,arguments)}},f.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:P(e[r]));e=n}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,n){n=0===n?0:n||50;var r=f(e).toRgb(),o=f(t).toRgb(),i=n/100;return f({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})},f.readability=function(e,t){var n=f(e),r=f(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},f.isReadable=function(e,t,n){var r,o,i=f.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},f.mostReadable=function(e,t,n){var r,o,i,c,a=null,l=0;o=(n=n||{}).includeFallbackColors,i=n.level,c=n.size;for(var s=0;sl&&(l=r,a=f(t[s]));return f.isReadable(e,a,{level:i,size:c})||!o?a:(n.includeFallbackColors=!1,f.mostReadable(e,["#fff","#000"],n))};var T=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"},x=f.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(T);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),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function A(e){return s(1,u(0,e))}function M(e){return parseInt(e,16)}function R(e){return 1==e.length?"0"+e:""+e}function P(e){return e<=1&&(e=100*e+"%"),e}function D(e){return o.round(255*parseFloat(e)).toString(16)}function F(e){return M(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=f:void 0===(r=function(){return f}.call(t,n,t,e))||(e.exports=r)}(Math)},5: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}))},52:function(e,t){!function(){e.exports=this.wp.htmlEntities}()},62:function(e,t,n){"use strict";t.__esModule=!0;var r=n(115);t.default=r.default},64:function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(119)),i=r(n(120)),c=n(28),a=r(c),l=r(n(121)),s=r(n(122)),u={arr:Array.isArray,obj:function(e){return"[object Object]"===Object.prototype.toString.call(e)},fun:function(e){return"function"==typeof e},str:function(e){return"string"==typeof e},num:function(e){return"number"==typeof e},und:function(e){return void 0===e},nul:function(e){return null===e},set:function(e){return e instanceof Set},map:function(e){return e instanceof Map},equ:function(e,t){if(typeof e!=typeof t)return!1;if(u.str(e)||u.num(e))return e===t;if(u.obj(e)&&u.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;var n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!u.und(n)||e===t}};function d(){var e=c.useState(!1)[1];return c.useCallback((function(){return e((function(e){return!e}))}),[])}function f(e,t){return u.und(e)||u.nul(e)?t:e}function p(e){return u.und(e)?[]:u.arr(e)?e:[e]}function b(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=n.length)break;i=n[o++]}else{if((o=n.next()).done)break;i=o.value}for(var c=i,a=!1,l=0;l=p.startTime+s.duration;else if(s.decay)m=b+O/(1-.998)*(1-Math.exp(-(1-.998)*(t-p.startTime))),(u=Math.abs(p.lastPosition-m)<.1)&&(h=m);else{d=void 0!==p.lastTime?p.lastTime:t,O=void 0!==p.lastVelocity?p.lastVelocity:s.initialVelocity,t>d+64&&(d=t);for(var k=Math.floor(t-d),y=0;yh:m=e);++n);return n-1}(e,i);return function(e,t,n,r,o,i,c,a,l){var s=l?l(e):e;if(sn){if("identity"===a)return s;"clamp"===a&&(s=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?s=-s:n===1/0?s-=t:s=(s-t)/(n-t);s=i(s),r===-1/0?s=-s:o===1/0?s+=r:s=s*(o-r)+r;return s}(e,i[t],i[t+1],o[t],o[t+1],l,c,a,r.map)}}var H=function(e){function t(n,r,o,i){var c;return(c=e.call(this)||this).calc=void 0,c.payload=n instanceof O&&!(n instanceof t)?n.getPayload():Array.isArray(n)?n:[n],c.calc=F(r,o,i),c}l(t,e);var n=t.prototype;return n.getValue=function(){return this.calc.apply(this,this.payload.map((function(e){return e.getValue()})))},n.updateConfig=function(e,t,n){this.calc=F(e,t,n)},n.interpolate=function(e,n,r){return new t(this,e,n,r)},t}(O);var U=function(e){function t(t){var n;return(n=e.call(this)||this).animatedStyles=new Set,n.value=void 0,n.startPosition=void 0,n.lastPosition=void 0,n.lastVelocity=void 0,n.startTime=void 0,n.lastTime=void 0,n.done=!1,n.setValue=function(e,t){void 0===t&&(t=!0),n.value=e,t&&n.flush()},n.value=t,n.startPosition=t,n.lastPosition=t,n}l(t,e);var n=t.prototype;return n.flush=function(){0===this.animatedStyles.size&&function e(t,n){"update"in t?n.add(t):t.getChildren().forEach((function(t){return e(t,n)}))}(this,this.animatedStyles),this.animatedStyles.forEach((function(e){return e.update()}))},n.clearStyles=function(){this.animatedStyles.clear()},n.getValue=function(){return this.value},n.interpolate=function(e,t,n){return new H(this,e,t,n)},t}(g),V=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map((function(e){return new U(e)})),n}l(t,e);var n=t.prototype;return n.setValue=function(e,t){var n=this;void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((function(e,r){return n.payload[r].setValue(e,t)})):this.payload.forEach((function(n){return n.setValue(e,t)}))},n.getValue=function(){return this.payload.map((function(e){return e.getValue()}))},n.interpolate=function(e,t){return new H(this,e,t)},t}(O),z=0,K=function(){function e(){var e=this;this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=function(){return e.interpolations},this.id=z++}var t=e.prototype;return t.update=function(e){if(!e)return this;var t=h(e),n=t.delay,r=void 0===n?0:n,c=t.to,a=i(t,["delay","to"]);if(u.arr(c)||u.fun(c))this.queue.push(o({},a,{delay:r,to:c}));else if(c){var l={};Object.entries(c).forEach((function(e){var t,n=e[0],i=e[1],c=o({to:(t={},t[n]=i,t),delay:b(r,n)},a),s=l[c.delay]&&l[c.delay].to;l[c.delay]=o({},l[c.delay],c,{to:o({},s,c.to)})})),this.queue=Object.values(l)}return this.queue=this.queue.sort((function(e,t){return e.delay-t.delay})),this.diff(a),this},t.start=function(e){var t,n=this;if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((function(e){var t=e.from,r=void 0===t?{}:t,i=e.to,c=void 0===i?{}:i;u.obj(r)&&(n.merged=o({},r,n.merged)),u.obj(c)&&(n.merged=o({},n.merged,c))}));var r=this.local=++this.guid,c=this.localQueue=this.queue;this.queue=[],c.forEach((function(t,o){var a=t.delay,l=i(t,["delay"]),s=function(t){o===c.length-1&&r===n.guid&&t&&(n.idle=!0,n.props.onRest&&n.props.onRest(n.merged)),e&&e()},d=u.arr(l.to)||u.fun(l.to);a?setTimeout((function(){r===n.guid&&(d?n.runAsync(l,s):n.diff(l).start(s))}),a):d?n.runAsync(l,s):n.diff(l).start(s)}))}else u.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,P.has(t)||P.add(t),R||(R=!0,S(x||D));return this},t.stop=function(e){return this.listeners.forEach((function(t){return t(e)})),this.listeners=[],this},t.pause=function(e){var t;return this.stop(!0),e&&(t=this,P.has(t)&&P.delete(t)),this},t.runAsync=function(e,t){var n=this,r=(e.delay,i(e,["delay"])),c=this.local,a=Promise.resolve(void 0);if(u.arr(r.to))for(var l=function(e){var t=e,i=o({},r,h(r.to[t]));u.arr(i.config)&&(i.config=i.config[t]),a=a.then((function(){if(c===n.guid)return new Promise((function(e){return n.diff(i).start(e)}))}))},s=0;s=r.length)return"break";c=r[i++]}else{if((i=r.next()).done)return"break";c=i.value}var n=c.key,a=function(e){return e.key!==n};(u.und(t)||t===n)&&(e.current.instances.delete(n),e.current.transitions=e.current.transitions.filter(a),e.current.deleted=e.current.deleted.filter(a))},r=e.current.deleted,o=Array.isArray(r),i=0;for(r=o?r:r[Symbol.iterator]();;){var c;if("break"===n())break}e.current.forceUpdate()}var Q=function(e){function t(t){var n;return void 0===t&&(t={}),n=e.call(this)||this,!t.transform||t.transform instanceof g||(t=m.transform(t)),n.payload=t,n}return l(t,e),t}(k),ee={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},te="[-+]?\\d*\\.?\\d+",ne=te+"%";function re(){for(var e=arguments.length,t=new Array(e),n=0;n1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function pe(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=fe(o,r,e+1/3),c=fe(o,r,e),a=fe(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*c)<<16|Math.round(255*a)<<8}function be(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function he(e){return(parseFloat(e)%360+360)%360/360}function me(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function ve(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function ge(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=ue.exec(t))?parseInt(n[1]+"ff",16)>>>0:ee.hasOwnProperty(t)?ee[t]:(n=oe.exec(t))?(be(n[1])<<24|be(n[2])<<16|be(n[3])<<8|255)>>>0:(n=ie.exec(t))?(be(n[1])<<24|be(n[2])<<16|be(n[3])<<8|me(n[4]))>>>0:(n=le.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=de.exec(t))?parseInt(n[1],16)>>>0:(n=se.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=ce.exec(t))?(255|pe(he(n[1]),ve(n[2]),ve(n[3])))>>>0:(n=ae.exec(t))?(pe(he(n[1]),ve(n[2]),ve(n[3]))|me(n[4]))>>>0:null;return null===r?e:"rgba("+((4278190080&(r=r||0))>>>24)+", "+((16711680&r)>>>16)+", "+((65280&r)>>>8)+", "+(255&r)/255+")"}var Oe=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ke=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,ye=new RegExp("("+Object.keys(ee).join("|")+")","g"),je={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,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},_e=["Webkit","Ms","Moz","O"];function Se(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||je.hasOwnProperty(e)&&je[e]?(""+t).trim():t+"px"}je=Object.keys(je).reduce((function(e,t){return _e.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),je);var Ce={};N((function(e){return new Q(e)})),B("div"),E((function(e){var t=e.output.map((function(e){return e.replace(ke,ge)})).map((function(e){return e.replace(ye,ge)})),n=t[0].match(Oe).map((function(){return[]}));t.forEach((function(e){e.match(Oe).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(Oe).map((function(t,r){return F(o({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(Oe,(function(){return r[n++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,n,r,o){return"rgba("+Math.round(t)+", "+Math.round(n)+", "+Math.round(r)+", "+o+")"}))}})),j(ee),y((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,r=t.children,o=t.scrollTop,c=t.scrollLeft,a=i(t,["style","children","scrollTop","scrollLeft"]),l="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var s in void 0!==o&&(e.scrollTop=o),void 0!==c&&(e.scrollLeft=c),void 0!==r&&(e.textContent=r),n)if(n.hasOwnProperty(s)){var u=0===s.indexOf("--"),d=Se(s,n[s],u);"float"===s&&(s="cssFloat"),u?e.style.setProperty(s,d):e.style[s]=d}for(var f in a){var p=l?f:Ce[f]||(Ce[f]=f.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(p)&&e.setAttribute(p,a[f])}}),(function(e){return e}));var Ee,we,Ie=(Ee=function(e){return c.forwardRef((function(t,n){var r=d(),l=c.useRef(!0),s=c.useRef(null),f=c.useRef(null),p=c.useCallback((function(e){var t=s.current;s.current=new M(e,(function(){var e=!1;f.current&&(e=m.fn(f.current,s.current.getAnimatedValue())),f.current&&!1!==e||r()})),t&&t.detach()}),[]);c.useEffect((function(){return function(){l.current=!1,s.current&&s.current.detach()}}),[]),c.useImperativeHandle(n,(function(){return L(f,l,r)})),p(t);var b,h=s.current.getValue(),v=(h.scrollTop,h.scrollLeft,i(h,["scrollTop","scrollLeft"])),g=(b=e,!u.fun(b)||b.prototype instanceof a.Component?function(e){return f.current=function(e,t){return t&&(u.fun(t)?t(e):u.obj(t)&&(t.current=e)),e}(e,n)}:void 0);return a.createElement(e,o({},v,{ref:g}))}))},void 0===(we=!1)&&(we=!0),function(e){return(u.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=we?t[0].toLowerCase()+t.substring(1):t;return e[n]=Ee(n),e}),Ee)}),Be=Ie(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]);t.apply=Ie,t.config={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},t.update=D,t.animated=Be,t.a=Be,t.interpolate=function(e,t,n){return e&&new H(e,t,n)},t.Globals=A,t.useSpring=function(e){var t=u.fun(e),n=W(1,t?e:[e]),r=n[0],o=n[1],i=n[2];return t?[r[0],o,i]:r},t.useTrail=function(e,t){var n=c.useRef(!1),r=u.fun(t),i=b(t),a=c.useRef(),l=W(e,(function(e,t){return 0===e&&(a.current=[]),a.current.push(t),o({},i,{config:b(i.config,e),attach:e>0&&function(){return a.current[e-1]}})})),s=l[0],d=l[1],f=l[2],p=c.useMemo((function(){return function(e){return d((function(t,n){e.reverse;var r=e.reverse?t+1:t-1,c=a.current[r];return o({},e,{config:b(e.config||i.config,t),attach:c&&function(){return c}})}))}}),[e,i.reverse]);return c.useEffect((function(){n.current&&!r&&p(t)})),c.useEffect((function(){n.current=!0}),[]),r?[s,p,f]:s},t.useTransition=function(e,t,n){var r=o({items:e,keys:t||function(e){return e}},n),a=Z(r),l=a.lazy,s=void 0!==l&&l,u=(a.unique,a.reset),f=void 0!==u&&u,p=(a.enter,a.leave,a.update,a.onDestroyed),h=(a.keys,a.items,a.onFrame),m=a.onRest,v=a.onStart,g=a.ref,O=i(a,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),k=d(),y=c.useRef(!1),j=c.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!y.current&&new Map,forceUpdate:k});return c.useImperativeHandle(r.ref,(function(){return{start:function(){return Promise.all(Array.from(j.current.instances).map((function(e){var t=e[1];return new Promise((function(e){return t.start(e)}))})))},stop:function(e){return Array.from(j.current.instances).forEach((function(t){return t[1].stop(e)}))},get controllers(){return Array.from(j.current.instances).map((function(e){return e[1]}))}}})),j.current=function(e,t){var n=e.first,r=e.prevProps,c=i(e,["first","prevProps"]),a=Z(t),l=a.items,s=a.keys,u=a.initial,d=a.from,f=a.enter,p=a.leave,h=a.update,m=a.trail,v=void 0===m?0:m,g=a.unique,O=a.config,k=a.order,y=void 0===k?[G,$,Y]:k,j=Z(r),_=j.keys,S=j.items,C=o({},c.current),E=[].concat(c.deleted),w=Object.keys(C),I=new Set(w),B=new Set(s),T=s.filter((function(e){return!I.has(e)})),x=c.transitions.filter((function(e){return!e.destroyed&&!B.has(e.originalKey)})).map((function(e){return e.originalKey})),L=s.filter((function(e){return I.has(e)})),N=-v;for(;y.length;){switch(y.shift()){case G:T.forEach((function(e,t){g&&E.find((function(t){return t.originalKey===e}))&&(E=E.filter((function(t){return t.originalKey!==e})));var r=s.indexOf(e),o=l[r],i=n&&void 0!==u?"initial":G;C[e]={slot:i,originalKey:e,key:g?String(e):q++,item:o,trail:N+=v,config:b(O,o,i),from:b(n&&void 0!==u?u||{}:d,o),to:b(f,o)}}));break;case $:x.forEach((function(e){var t=_.indexOf(e),n=S[t],r=$;E.unshift(o({},C[e],{slot:r,destroyed:!0,left:_[Math.max(0,t-1)],right:_[Math.min(_.length,t+1)],trail:N+=v,config:b(O,n,r),to:b(p,n)})),delete C[e]}));break;case Y:L.forEach((function(e){var t=s.indexOf(e),n=l[t],r=Y;C[e]=o({},C[e],{item:n,slot:r,trail:N+=v,config:b(O,n,r),to:b(h,n)})}))}}var A=s.map((function(e){return C[e]}));return E.forEach((function(e){var t,n=e.left,r=(e.right,i(e,["left","right"]));-1!==(t=A.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),A=[].concat(A.slice(0,t),[r],A.slice(t))})),o({},c,{changed:T.length||x.length||L.length,first:n&&0===T.length,transitions:A,current:C,deleted:E,prevProps:t})}(j.current,r),j.current.changed&&j.current.transitions.forEach((function(e){var t=e.slot,n=e.from,r=e.to,i=e.config,c=e.trail,a=e.key,l=e.item;j.current.instances.has(a)||j.current.instances.set(a,new K);var u=j.current.instances.get(a),d=o({},O,{to:r,from:n,config:i,ref:g,onRest:function(n){j.current.mounted&&(e.destroyed&&(g||s||J(j,a),p&&p(l)),!Array.from(j.current.instances).some((function(e){return!e[1].idle}))&&(g||s)&&j.current.deleted.length>0&&J(j),m&&m(l,t,n))},onStart:v&&function(){return v(l,t)},onFrame:h&&function(e){return h(l,t,e)},delay:c,reset:f&&t===G});u.update(d),j.current.paused||u.start()})),c.useEffect((function(){return j.current.mounted=y.current=!0,function(){j.current.mounted=y.current=!1,Array.from(j.current.instances).map((function(e){return e[1].destroy()})),j.current.instances.clear()}}),[]),j.current.transitions.map((function(e){var t=e.item,n=e.slot,r=e.key;return{item:t,key:r,state:n,props:j.current.instances.get(r).getValues()}}))},t.useChain=function(e,t,n){void 0===n&&(n=1e3);var r=c.useRef();c.useEffect((function(){u.equ(e,r.current)?e.forEach((function(e){var t=e.current;return t&&t.start()})):t?e.forEach((function(e,r){var i=e.current;if(i){var c=i.controllers;if(c.length){var a=n*t[r];c.forEach((function(e){e.queue=e.queue.map((function(e){return o({},e,{delay:e.delay+a})})),e.start()}))}}})):e.reduce((function(e,t,n){var r=t.current;return e.then((function(){return r.start()}))}),Promise.resolve()),r.current=e}))},t.useSprings=W},65: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},68:function(e,t,n){"use strict";e.exports=n(113)},7:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(10);function o(e){for(var t=1;t",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(s),d=["%","/","?",";","#"].concat(u),f=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,b=/^([+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},g=n(126);function O(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?N+="x":N+=L[A];if(!N.match(p)){var R=T.slice(0,w),P=T.slice(w+1),D=L.match(b);D&&(R.push(D[1]),P.unshift(D[2])),P.length&&(O="/"+P.join(".")+O),this.hostname=R.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),B||(this.hostname=r.toASCII(this.hostname));var F=this.port?":"+this.port:"",H=this.hostname||"";this.host=H+F,this.href+=this.host,B&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==O[0]&&(O="/"+O))}if(!h[j])for(w=0,x=u.length;w0)&&n.host.split("@"))&&(n.auth=B.shift(),n.host=n.hostname=B.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 C=_.slice(-1)[0],E=(n.host||e.host||_.length>1)&&("."===C||".."===C)||""===C,w=0,I=_.length;I>=0;I--)"."===(C=_[I])?_.splice(I,1):".."===C?(_.splice(I,1),w++):w&&(_.splice(I,1),w--);if(!y&&!j)for(;w--;w)_.unshift("..");!y||""===_[0]||_[0]&&"/"===_[0].charAt(0)||_.unshift(""),E&&"/"!==_.join("/").substr(-1)&&_.push("");var B,T=""===_[0]||_[0]&&"/"===_[0].charAt(0);S&&(n.hostname=n.host=T?"":_.length?_.shift():"",(B=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=B.shift(),n.host=n.hostname=B.shift()));return(y=y||n.host&&_.length)&&!T&&_.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)}},87:function(e,t,n){"use strict";var r=n(88);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,c){if(c!==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 t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},88:function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9:function(e,t){!function(){e.exports=this.wp.blocks}()},97:function(e,t){!function(){e.exports=this.wp.wordcount}()}}); \ No newline at end of file +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),l=n(5),s=n(6),u=n(7),d=n(8),f=n(9),p=n(10),b=n(11),h=n(13),m=n(14),v=n(16),g=n(17);t.Diff=i.default,t.diffChars=c.diffChars,t.diffWords=a.diffWords,t.diffWordsWithSpace=a.diffWordsWithSpace,t.diffLines=l.diffLines,t.diffTrimmedLines=l.diffTrimmedLines,t.diffSentences=s.diffSentences,t.diffCss=u.diffCss,t.diffJson=d.diffJson,t.diffArrays=f.diffArrays,t.structuredPatch=m.structuredPatch,t.createTwoFilesPatch=m.createTwoFilesPatch,t.createPatch=m.createPatch,t.applyPatch=p.applyPatch,t.applyPatches=p.applyPatches,t.parsePatch=b.parsePatch,t.merge=h.merge,t.convertChangesToDMP=v.convertChangesToDMP,t.convertChangesToXML=g.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,l=0;ie.length?n:e})),s.value=e.join(d)}else s.value=e.join(n.slice(a,a+s.count));a+=s.count,s.added||(l+=s.count)}}var f=t[c-1];return c>1&&"string"==typeof f.value&&(f.added||f.removed)&&e.equals("",f.value)&&(t[c-2].value+=f.value,t.pop()),t}function o(e){return{newPos:e.newPos,components:e.components.slice(0)}}t.__esModule=!0,t.default=n,n.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.callback;"function"==typeof n&&(i=n,n={}),this.options=n;var c=this;function a(e){return i?(setTimeout((function(){i(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,s=e.length,u=1,d=l+s,f=[{newPos:-1,components:[]}],p=this.extractCommon(f[0],t,e,0);if(f[0].newPos+1>=l&&p+1>=s)return a([{value:this.join(t),count:t.length}]);function b(){for(var n=-1*u;n<=u;n+=2){var i=void 0,d=f[n-1],p=f[n+1],b=(p?p.newPos:0)-n;d&&(f[n-1]=void 0);var h=d&&d.newPos+1=l&&b+1>=s)return a(r(c,i.components,t,e,c.useLongestToken));f[n]=i}else f[n]=void 0}u++}if(i)!function e(){setTimeout((function(){if(u>d)return i();b()||e()}),0)}();else for(;u<=d;){var h=b();if(h)return h}},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,l=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,l=n.compareLine||function(e,t,n,r){return t===r},s=0,u=n.fuzzFactor||0,d=0,f=0,p=void 0,b=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(!l(t+1,r[t],i,c)&&++s>u)return!1;t++}}return!0}for(var m=0;m0?w[0]:" ",B=w.length>0?w.substr(1):w,T=S.linedelimiters[E];if(" "===I)C++;else if("-"===I)r.splice(C,1),i.splice(C,1);else if("+"===I)r.splice(C,0,B),i.splice(C,0,T),C++;else if("\\"===I){var x=S.lines[E-1]?S.lines[E-1][0]:null;"+"===x?p=!0:"-"===x&&(b=!0)}}}if(p)for(;!r[r.length-1];)r.pop(),i.pop();else b&&(r.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]/),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(-l.context)):[],f-=b.length,p-=b.length)}(c=b).push.apply(c,o(r.map((function(e){return(t.added?"+":"-")+e})))),t.added?m+=r.length:h+=r.length}else{if(f)if(r.length<=2*l.context&&e=s.length-2&&r.length<=l.context){var y=/\n$/.test(n),j=/\n$/.test(i);0!=r.length||y?y&&j||b.push("\\ No newline at end of file"):b.splice(k.oldLines,0,"\\ No newline at end of file")}d.push(k),f=0,p=0,b=[]}h+=r.length,m+=r.length}},g=0;ge.length)return!1;for(var n=0;n"):r.removed&&t.push(""),t.push((o=r.value,void 0,o.replace(/&/g,"&").replace(//g,">").replace(/"/g,"""))),r.added?t.push(""):r.removed&&t.push("")}var o;return t.join("")}}])},e.exports=r()},22:function(e,t){!function(){e.exports=this.wp.richText}()},220: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 f=n?i(d):d,p={},b=!0,h={node:f,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&&(b=!1)},delete:function(e){delete h.parent.node[h.key],e&&(b=!1)},remove:function(e){l(h.parent.node)?h.parent.node.splice(h.key,1):delete h.parent.node[h.key],e&&(b=!1)},keys:null,before:function(e){p.before=e},after:function(e){p.after=e},pre:function(e){p.pre=e},post:function(e){p.post=e},stop:function(){a=!1},block:function(){b=!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;e3&&void 0!==arguments[3]?arguments[3]:1,o=Object(Be.a)(e);return o.splice(t,r),Pe(o,e.slice(t,t+r),n)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Object(I.a)({},t,[]);return e.forEach((function(e){var r=e.clientId,o=e.innerBlocks;n[t].push(r),Object.assign(n,Fe(o,r))})),n}function He(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.reduce((function(e,n){return Object.assign(e,Object(I.a)({},n.clientId,t),He(n.innerBlocks,n.clientId))}),{})}function Ue(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.identity,n={},r=Object(Be.a)(e);r.length;){var o=r.shift(),i=o.innerBlocks,c=Object(Ae.a)(o,["innerBlocks"]);r.push.apply(r,Object(Be.a)(i)),n[c.clientId]=t(c)}return n}function Ve(e){return Ue(e,(function(e){return Object(p.omit)(e,"attributes")}))}function ze(e){return Ue(e,(function(e){return e.attributes}))}function Ke(e,t){return e===t?Object(l.a)({},e):t}function We(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&e.clientId===t.clientId&&(n=e.attributes,r=t.attributes,Object(p.isEqual)(Object(p.keys)(n),Object(p.keys)(r)));var n,r}var qe=function(e){return e.reduce((function(e,t){return e[t]={},e}),{})};var Ge=Object(p.flow)(m.combineReducers,(function(e){return function(t,n){if(t&&"SAVE_REUSABLE_BLOCK_SUCCESS"===n.type){var r=n.id,o=n.updatedId;if(r===o)return t;(t=Object(l.a)({},t)).attributes=Object(p.mapValues)(t.attributes,(function(e,n){return"core/block"===t.byClientId[n].name&&e.ref===r?Object(l.a)({},e,{ref:o}):e}))}return e(t,n)}}),(function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=e(t,n);if(r===t)return t;r.cache=t.cache?t.cache:{};var o=function(e){return e.reduce((function(e,n){var r=n;do{e.push(r),r=t.parents[r]}while(r);return e}),[])};switch(n.type){case"RESET_BLOCKS":r.cache=Object(p.mapValues)(Ue(n.blocks),(function(){return{}}));break;case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":var i=Object(p.keys)(Ue(n.blocks));n.rootClientId&&i.push(n.rootClientId),r.cache=Object(l.a)({},r.cache,qe(o(i)));break;case"UPDATE_BLOCK":case"UPDATE_BLOCK_ATTRIBUTES":r.cache=Object(l.a)({},r.cache,qe(o([n.clientId])));break;case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var c=qe(o(n.replacedClientIds));r.cache=Object(l.a)({},Object(p.omit)(r.cache,n.replacedClientIds),Object(p.omit)(c,n.replacedClientIds),qe(Object(p.keys)(Ue(n.blocks))));break;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":r.cache=Object(l.a)({},Object(p.omit)(r.cache,n.removedClientIds),qe(Object(p.difference)(o(n.clientIds),n.clientIds)));break;case"MOVE_BLOCK_TO_POSITION":var a=[n.clientId];n.fromRootClientId&&a.push(n.fromRootClientId),n.toRootClientId&&a.push(n.toRootClientId),r.cache=Object(l.a)({},r.cache,qe(o(a)));break;case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":var s=[];n.rootClientId&&s.push(n.rootClientId),r.cache=Object(l.a)({},r.cache,qe(o(s)));break;case"SAVE_REUSABLE_BLOCK_SUCCESS":var u=Object(p.keys)(Object(p.omitBy)(r.attributes,(function(e,t){return"core/block"!==r.byClientId[t].name||e.ref!==n.updatedId})));r.cache=Object(l.a)({},r.cache,qe(o(u)))}return r}}),(function(e){return function(t,n){var r=function(e){for(var n=e,r=0;r1&&void 0!==arguments[1]?arguments[1]:"";return Object(p.reduce)(t[n],(function(n,r){return[].concat(Object(Be.a)(n),[r],Object(Be.a)(e(t,r)))}),[])}(t.order);return Object(l.a)({},t,{byClientId:Object(l.a)({},Object(p.omit)(t.byClientId,r),Ve(n.blocks)),attributes:Object(l.a)({},Object(p.omit)(t.attributes,r),ze(n.blocks)),order:Object(l.a)({},Object(p.omit)(t.order,r),Fe(n.blocks)),parents:Object(l.a)({},Object(p.omit)(t.parents,r),He(n.blocks)),cache:Object(l.a)({},Object(p.omit)(t.cache,r),Object(p.mapValues)(Ue(n.blocks),(function(){return{}})))})}return e(t,n)}}),(function(e){var t;return function(n,r){var o=e(n,r),i="MARK_LAST_CHANGE_AS_PERSISTENT"===r.type;if(n===o&&!i){var c=Object(p.get)(n,["isPersistentChange"],!0);return n.isPersistentChange===c?n:Object(l.a)({},o,{isPersistentChange:c})}return o=Object(l.a)({},o,{isPersistentChange:i||!We(r,t)}),t=r,o}}),(function(e){var t=new Set(["RECEIVE_BLOCKS"]);return function(n,r){var o=e(n,r);return o!==n&&(o.isIgnoredChange=t.has(r.type)),o}}))({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 Ve(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return Object(l.a)({},e,Ve(t.blocks));case"UPDATE_BLOCK":if(!e[t.clientId])return e;var n=Object(p.omit)(t.updates,"attributes");return Object(p.isEmpty)(n)?e:Object(l.a)({},e,Object(I.a)({},t.clientId,Object(l.a)({},e[t.clientId],n)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?Object(l.a)({},Object(p.omit)(e,t.replacedClientIds),Ve(t.blocks)):e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.omit)(e,t.removedClientIds)}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 ze(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return Object(l.a)({},e,ze(t.blocks));case"UPDATE_BLOCK":return e[t.clientId]&&t.updates.attributes?Object(l.a)({},e,Object(I.a)({},t.clientId,Object(l.a)({},e[t.clientId],t.updates.attributes))):e;case"UPDATE_BLOCK_ATTRIBUTES":if(!e[t.clientId])return e;var n=Object(p.reduce)(t.attributes,(function(n,r,o){return r!==n[o]&&((n=Ke(e[t.clientId],n))[o]=r),n}),e[t.clientId]);return n===e[t.clientId]?e:Object(l.a)({},e,Object(I.a)({},t.clientId,n));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?Object(l.a)({},Object(p.omit)(e,t.replacedClientIds),ze(t.blocks)):e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.omit)(e,t.removedClientIds)}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 Fe(t.blocks);case"RECEIVE_BLOCKS":return Object(l.a)({},e,Object(p.omit)(Fe(t.blocks),""));case"INSERT_BLOCKS":var n=t.rootClientId,r=void 0===n?"":n,o=e[r]||[],i=Fe(t.blocks,r),c=t.index,a=void 0===c?o.length:c;return Object(l.a)({},e,i,Object(I.a)({},r,Pe(o,i[r],a)));case"MOVE_BLOCK_TO_POSITION":var s,u=t.fromRootClientId,d=void 0===u?"":u,f=t.toRootClientId,b=void 0===f?"":f,h=t.clientId,m=t.index,v=void 0===m?e[b].length:m;if(d===b){var g=e[b],O=g.indexOf(h);return Object(l.a)({},e,Object(I.a)({},b,De(e[b],O,v)))}return Object(l.a)({},e,(s={},Object(I.a)(s,d,Object(p.without)(e[d],h)),Object(I.a)(s,b,Pe(e[b],h,v)),s));case"MOVE_BLOCKS_UP":var k=t.clientIds,y=t.rootClientId,j=void 0===y?"":y,_=Object(p.first)(k),S=e[j];if(!S.length||_===Object(p.first)(S))return e;var C=S.indexOf(_);return Object(l.a)({},e,Object(I.a)({},j,De(S,C,C-1,k.length)));case"MOVE_BLOCKS_DOWN":var E=t.clientIds,w=t.rootClientId,B=void 0===w?"":w,T=Object(p.first)(E),x=Object(p.last)(E),L=e[B];if(!L.length||x===Object(p.last)(L))return e;var N=L.indexOf(T);return Object(l.a)({},e,Object(I.a)({},B,De(L,N,N+1,E.length)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var A=t.clientIds;if(!t.blocks)return e;var M=Fe(t.blocks);return Object(p.flow)([function(e){return Object(p.omit)(e,t.replacedClientIds)},function(e){return Object(l.a)({},e,Object(p.omit)(M,""))},function(e){return Object(p.mapValues)(e,(function(e){return Object(p.reduce)(e,(function(e,t){return t===A[0]?[].concat(Object(Be.a)(e),Object(Be.a)(M[""])):(-1===A.indexOf(t)&&e.push(t),e)}),[])}))}])(e);case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.flow)([function(e){return Object(p.omit)(e,t.removedClientIds)},function(e){return Object(p.mapValues)(e,(function(e){return p.without.apply(void 0,[e].concat(Object(Be.a)(t.removedClientIds)))}))}])(e)}return e},parents: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 He(t.blocks);case"RECEIVE_BLOCKS":return Object(l.a)({},e,He(t.blocks));case"INSERT_BLOCKS":return Object(l.a)({},e,He(t.blocks,t.rootClientId||""));case"MOVE_BLOCK_TO_POSITION":return Object(l.a)({},e,Object(I.a)({},t.clientId,t.toRootClientId||""));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(l.a)({},Object(p.omit)(e,t.replacedClientIds),He(t.blocks,e[t.clientIds[0]]));case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.omit)(e,t.removedClientIds)}return e}});var $e={},Ye={start:$e,end:$e,isMultiSelecting:!1,isEnabled:!0,initialPosition:null};var Xe=Object(m.combineReducers)({blocks:Ge,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]:Ye,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"CLEAR_SELECTED_BLOCK":return e.start&&e.start.clientId?Object(l.a)({},e,{start:$e,end:$e,isMultiSelecting:!1,initialPosition:null}):e;case"START_MULTI_SELECT":return e.isMultiSelecting?e:Object(l.a)({},e,{isMultiSelecting:!0,initialPosition:null});case"STOP_MULTI_SELECT":return e.isMultiSelecting?Object(l.a)({},e,{isMultiSelecting:!1,initialPosition:null}):e;case"MULTI_SELECT":return Object(l.a)({},e,{isMultiSelecting:e.isMultiSelecting,start:{clientId:t.start},end:{clientId:t.end}});case"SELECT_BLOCK":return t.clientId===e.start.clientId&&t.clientId===e.end.clientId?e:Object(l.a)({},e,{initialPosition:t.initialPosition,start:{clientId:t.clientId},end:{clientId:t.clientId}});case"REPLACE_INNER_BLOCKS":case"INSERT_BLOCKS":return t.updateSelection?Object(l.a)({},e,{start:{clientId:t.blocks[0].clientId},end:{clientId:t.blocks[0].clientId}}):e;case"REMOVE_BLOCKS":return t.clientIds&&t.clientIds.length&&-1!==t.clientIds.indexOf(e.start.clientId)?Object(l.a)({},e,{start:$e,end:$e,isMultiSelecting:!1,initialPosition:null}):e;case"REPLACE_BLOCKS":if(-1===t.clientIds.indexOf(e.start.clientId))return e;var n=t.indexToSelect||t.blocks.length-1,r=t.blocks[n];return r?r.clientId===e.start.clientId&&r.clientId===e.end.clientId?e:Object(l.a)({},e,{start:{clientId:r.clientId},end:{clientId:r.clientId}}):Object(l.a)({},e,{start:$e,end:$e,isMultiSelecting:!1,initialPosition:null});case"TOGGLE_SELECTION":return Object(l.a)({},e,{isEnabled:t.isSelectionEnabled});case"SELECTION_CHANGE":return Object(l.a)({},e,{start:{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.startOffset},end:{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.endOffset}})}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(l.a)({},e,Object(I.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(p.omit)(e,t.clientIds);case"UPDATE_BLOCK_LIST_SETTINGS":var n=t.clientId;return t.settings?Object(p.isEqual)(e[n],t.settings)?e:Object(l.a)({},e,Object(I.a)({},n,t.settings)):e.hasOwnProperty(n)?Object(p.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(l.a)({},e,{isValid:t.isValid})}return e},settings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Re,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_SETTINGS":return Object(l.a)({},e,t.settings)}return e},preferences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Me,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 r=n.name,o={name:n.name};return Object(i.isReusableBlock)(n)&&(o.ref=n.attributes.ref,r+="/"+n.attributes.ref),Object(l.a)({},e,{insertUsage:Object(l.a)({},e.insertUsage,Object(I.a)({},r,{time:t.time,count:e.insertUsage[r]?e.insertUsage[r].count+1:1,insert:o}))})}),e)}return e},lastBlockAttributesChange:function(e,t){switch(t.type){case"UPDATE_BLOCK":if(!t.updates.attributes)break;return Object(I.a)({},t.clientId,t.updates.attributes);case"UPDATE_BLOCK_ATTRIBUTES":return Object(I.a)({},t.clientId,t.attributes)}return null},isNavigationMode:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_NAVIGATION_MODE"===t.type?t.isNavigationMode:e},didAutomaticChange:function(e,t){return"MARK_AUTOMATIC_CHANGE"===t.type}}),Ze=n(72),Je=n.n(Ze),Qe=n(218),et=n.n(Qe),tt=n(45),nt=n(20),rt=n.n(nt);function ot(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o1&&void 0!==arguments[1]?arguments[1]:null,clientId:e}}function Ot(e){var t;return rt.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,ot("core/block-editor","getPreviousBlockClientId",e);case 2:if(!(t=n.sent)){n.next=6;break}return n.next=6,gt(t,-1);case 6:case"end":return n.stop()}}),at)}function kt(e){var t;return rt.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,ot("core/block-editor","getNextBlockClientId",e);case 2:if(!(t=n.sent)){n.next=6;break}return n.next=6,gt(t);case 6:case"end":return n.stop()}}),lt)}function yt(){return{type:"START_MULTI_SELECT"}}function jt(){return{type:"STOP_MULTI_SELECT"}}function _t(e,t){return{type:"MULTI_SELECT",start:e,end:t}}function St(){return{type:"CLEAR_SELECTED_BLOCK"}}function Ct(){return{type:"TOGGLE_SELECTION",isSelectionEnabled:!(arguments.length>0&&void 0!==arguments[0])||arguments[0]}}function Et(e,t){var n=Object(p.get)(t,["__experimentalPreferredStyleVariations","value"],{});return e.map((function(e){var t=e.name;if(!n[t])return e;var r=Object(p.get)(e,["attributes","className"]);if(Object(p.includes)(r,"is-style-"))return e;var o=e.attributes,i=void 0===o?{}:o,c=n[t];return Object(l.a)({},e,{attributes:Object(l.a)({},i,{className:"".concat(r||""," is-style-").concat(c).trim()})})}))}function wt(e,t,n){var r,o,i;return rt.a.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return e=Object(p.castArray)(e),c.t0=Et,c.t1=Object(p.castArray)(t),c.next=5,ot("core/block-editor","getSettings");case 5:return c.t2=c.sent,t=(0,c.t0)(c.t1,c.t2),c.next=9,ot("core/block-editor","getBlockRootClientId",Object(p.first)(e));case 9:r=c.sent,o=0;case 11:if(!(o1&&void 0!==a[1]?a[1]:"",n=a.length>2&&void 0!==a[2]?a[2]:"",r=a.length>3?a[3]:void 0,l.next=5,ot("core/block-editor","getTemplateLock",t);case 5:if("all"!==(o=l.sent)){l.next=8;break}return l.abrupt("return");case 8:if(i={type:"MOVE_BLOCK_TO_POSITION",fromRootClientId:t,toRootClientId:n,clientId:e,index:r},t!==n){l.next=13;break}return l.next=12,i;case 12:return l.abrupt("return");case 13:if("insert"!==o){l.next=15;break}return l.abrupt("return");case 15:return l.next=17,ot("core/block-editor","getBlockName",e);case 17:return c=l.sent,l.next=20,ot("core/block-editor","canInsertBlockType",c,n);case 20:if(!l.sent){l.next=24;break}return l.next=24,i;case 24:case"end":return l.stop()}}),ut)}function Nt(e,t,n){return At([e],t,n,!(arguments.length>3&&void 0!==arguments[3])||arguments[3])}function At(e,t,n){var r,o,i,c,a,l,s,u,d=arguments;return rt.a.wrap((function(f){for(;;)switch(f.prev=f.next){case 0:return r=!(d.length>3&&void 0!==d[3])||d[3],f.t0=Et,f.t1=Object(p.castArray)(e),f.next=5,ot("core/block-editor","getSettings");case 5:f.t2=f.sent,e=(0,f.t0)(f.t1,f.t2),o=[],i=!0,c=!1,a=void 0,f.prev=11,l=e[Symbol.iterator]();case 13:if(i=(s=l.next()).done){f.next=22;break}return u=s.value,f.next=17,ot("core/block-editor","canInsertBlockType",u.name,n);case 17:f.sent&&o.push(u);case 19:i=!0,f.next=13;break;case 22:f.next=28;break;case 24:f.prev=24,f.t3=f.catch(11),c=!0,a=f.t3;case 28:f.prev=28,f.prev=29,i||null==l.return||l.return();case 31:if(f.prev=31,!c){f.next=34;break}throw a;case 34:return f.finish(31);case 35:return f.finish(28);case 36:if(!o.length){f.next=38;break}return f.abrupt("return",{type:"INSERT_BLOCKS",blocks:o,index:t,rootClientId:n,time:Date.now(),updateSelection:r});case 38:case"end":return f.stop()}}),dt,null,[[11,24,28,36],[29,,31,35]])}function Mt(e,t){return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t}}function Rt(){return{type:"HIDE_INSERTION_POINT"}}function Pt(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}function Dt(){return{type:"SYNCHRONIZE_TEMPLATE"}}function Ft(e,t){return{type:"MERGE_BLOCKS",blocks:[e,t]}}function Ht(e){var t,n=arguments;return rt.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t=!(n.length>1&&void 0!==n[1])||n[1],e=Object(p.castArray)(e),!t){r.next=5;break}return r.next=5,Ot(e[0]);case 5:return r.next=7,{type:"REMOVE_BLOCKS",clientIds:e};case 7:return r.delegateYield(pt(),"t0",8);case 8:case"end":return r.stop()}}),ft)}function Ut(e,t){return Ht([e],t)}function Vt(e,t){return{type:"REPLACE_INNER_BLOCKS",rootClientId:e,blocks:t,updateSelection:!(arguments.length>2&&void 0!==arguments[2])||arguments[2],time:Date.now()}}function zt(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function Kt(){return{type:"START_TYPING"}}function Wt(){return{type:"STOP_TYPING"}}function qt(){return{type:"ENTER_FORMATTED_TEXT"}}function Gt(){return{type:"EXIT_FORMATTED_TEXT"}}function $t(e,t,n,r){return{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:r}}function Yt(e,t,n){var r=Object(i.getDefaultBlockName)();if(r)return Nt(Object(i.createBlock)(r,e),n,t)}function Xt(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function Zt(e){return{type:"UPDATE_SETTINGS",settings:e}}function Jt(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function Qt(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function en(){return{type:"MARK_AUTOMATIC_CHANGE"}}function tn(){return{type:"SET_NAVIGATION_MODE",isNavigationMode:!(arguments.length>0&&void 0!==arguments[0])||arguments[0]}}var nn=n(36),rn=3,on=2,cn=1,an=0,ln=Object(u.createElement)(P.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(P.Rect,{x:"0",fill:"none",width:"24",height:"24"}),Object(u.createElement)(P.G,null,Object(u.createElement)(P.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"}))),sn=[];function un(e,t){var n=e.blocks.byClientId[t];return n?n.name:null}function dn(e,t){var n=e.blocks.byClientId[t];return!!n&&n.isValid}function fn(e,t){return e.blocks.byClientId[t]?e.blocks.attributes[t]:null}var pn=Object(nn.a)((function(e,t){var n=e.blocks.byClientId[t];return n?Object(l.a)({},n,{attributes:fn(e,t),innerBlocks:hn(e,t)}):null}),(function(e,t){return[e.blocks.cache[t]]})),bn=Object(nn.a)((function(e,t){var n=e.blocks.byClientId[t];return n?Object(l.a)({},n,{attributes:fn(e,t)}):null}),(function(e,t){return[e.blocks.byClientId[t],e.blocks.attributes[t]]})),hn=Object(nn.a)((function(e,t){return Object(p.map)(Wn(e,t),(function(t){return pn(e,t)}))}),(function(e){return[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]})),mn=function e(t,n){return Object(p.flatMap)(n,(function(n){var r=Wn(t,n);return[].concat(Object(Be.a)(r),Object(Be.a)(e(t,r)))}))},vn=Object(nn.a)((function(e){var t=Wn(e);return[].concat(Object(Be.a)(t),Object(Be.a)(mn(e,t)))}),(function(e){return[e.blocks.order]})),gn=Object(nn.a)((function(e,t){var n=vn(e);return t?Object(p.reduce)(n,(function(n,r){return e.blocks.byClientId[r].name===t?n+1:n}),0):n.length}),(function(e){return[e.blocks.order,e.blocks.byClientId]})),On=Object(nn.a)((function(e,t){return Object(p.map)(Object(p.castArray)(t),(function(t){return pn(e,t)}))}),(function(e){return[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]}));function kn(e,t){return Wn(e,t).length}function yn(e){return e.blockSelection.start}function jn(e){return e.blockSelection.end}function _n(e){return e.blockSelection.start.clientId}function Sn(e){return e.blockSelection.end.clientId}function Cn(e){var t=Rn(e).length;return t||(e.blockSelection.start.clientId?1:0)}function En(e){var t=e.blockSelection,n=t.start,r=t.end;return!!n.clientId&&n.clientId===r.clientId}function wn(e){var t=e.blockSelection,n=t.start,r=t.end;return n.clientId&&n.clientId===r.clientId&&e.blocks.byClientId[n.clientId]?n.clientId:null}function In(e){var t=wn(e);return t?pn(e,t):null}function Bn(e,t){return void 0!==e.blocks.parents[t]?e.blocks.parents[t]:null}function Tn(e,t){var n,r=t;do{n=r,r=e.blocks.parents[r]}while(r);return n}function xn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(void 0===t&&(t=wn(e)),void 0===t&&(t=n<0?Dn(e):Fn(e)),!t)return null;var r=Bn(e,t);if(null===r)return null;var o=e.blocks.order[r],i=o.indexOf(t)+1*n;return i<0?null:i===o.length?null:o[i]}function Ln(e,t){return xn(e,t,-1)}function Nn(e,t){return xn(e,t,1)}function An(e){var t=e.blockSelection,n=t.start,r=t.end;return n.clientId===r.clientId&&n.clientId?e.blockSelection.initialPosition:null}var Mn=Object(nn.a)((function(e){var t=e.blockSelection,n=t.start,r=t.end;if(void 0===n.clientId||void 0===r.clientId)return sn;if(n.clientId===r.clientId)return[n.clientId];var o=Bn(e,n.clientId);if(null===o)return sn;var i=Wn(e,o),c=i.indexOf(n.clientId),a=i.indexOf(r.clientId);return c>a?i.slice(a,c+1):i.slice(c,a+1)}),(function(e){return[e.blocks.order,e.blockSelection.start.clientId,e.blockSelection.end.clientId]}));function Rn(e){var t=e.blockSelection,n=t.start,r=t.end;return n.clientId===r.clientId?sn:Mn(e)}var Pn=Object(nn.a)((function(e){var t=Rn(e);return t.length?t.map((function(t){return pn(e,t)})):sn}),(function(e){return[].concat(Object(Be.a)(Mn.getDependants(e)),[e.blocks.byClientId,e.blocks.order,e.blocks.attributes])}));function Dn(e){return Object(p.first)(Rn(e))||null}function Fn(e){return Object(p.last)(Rn(e))||null}function Hn(e,t){return Dn(e)===t}function Un(e,t){return-1!==Rn(e).indexOf(t)}var Vn=Object(nn.a)((function(e,t){for(var n=t,r=!1;n&&!r;)r=Un(e,n=Bn(e,n));return r}),(function(e){return[e.blocks.order,e.blockSelection.start.clientId,e.blockSelection.end.clientId]}));function zn(e){var t=e.blockSelection,n=t.start,r=t.end;return n.clientId===r.clientId?null:n.clientId||null}function Kn(e){var t=e.blockSelection,n=t.start,r=t.end;return n.clientId===r.clientId?null:r.clientId||null}function Wn(e,t){return e.blocks.order[t||""]||sn}function qn(e,t,n){return Wn(e,n).indexOf(t)}function Gn(e,t){var n=e.blockSelection,r=n.start,o=n.end;return r.clientId===o.clientId&&r.clientId===t}function $n(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Object(p.some)(Wn(e,t),(function(t){return Gn(e,t)||Un(e,t)||n&&$n(e,t,n)}))}function Yn(e,t){if(!t)return!1;var n=Rn(e),r=n.indexOf(t);return r>-1&&r2&&void 0!==arguments[2]?arguments[2]:null,r=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Object(p.isBoolean)(e)?e:Object(p.isArray)(e)?Object(p.includes)(e,t):n},o=Object(i.getBlockType)(t);if(!o)return!1;var c=br(e),a=c.allowedBlockTypes,l=r(a,t,!0);if(!l)return!1;var s=!!cr(e,n);if(s)return!1;var u=pr(e,n),d=Object(p.get)(u,["allowedBlocks"]),f=r(d,t),b=o.parent,h=un(e,n),m=r(b,h);return null!==f&&null!==m?f||m:null!==f?f:null===m||m},lr=Object(nn.a)(ar,(function(e,t,n){return[e.blockListSettings[n],e.blocks.byClientId[n],e.settings.allowedBlockTypes,e.settings.templateLock]}));function sr(e,t){return Object(p.get)(e.preferences.insertUsage,[t],null)}var ur=function(e,t,n){return!!Object(i.hasBlockSupport)(t,"inserter",!0)&&ar(e,t.name,n)},dr=Object(nn.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=function(e,t,n){return n?rn:t>0?on:"common"===e?cn:an},r=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}},o=function(t){var o=t.name,c=!1;Object(i.hasBlockSupport)(t.name,"multiple",!0)||(c=Object(p.some)(On(e,vn(e)),{name:t.name}));var a=Object(p.isArray)(t.parent),l=sr(e,o)||{},s=l.time,u=l.count,d=void 0===u?0:u;return{id:o,name:t.name,initialAttributes:{},title:t.title,icon:t.icon,category:t.category,keywords:t.keywords,isDisabled:c,utility:n(t.category,d,a),frecency:r(s,d)}},c=function(t){var o,c="core/block/".concat(t.id),a=mr(e,t.id);1===a.length&&(o=Object(i.getBlockType)(a[0].name));var l=sr(e,c)||{},s=l.time,u=l.count,d=void 0===u?0:u,f=n("reusable",d,!1),p=r(s,d);return{id:c,name:"core/block",initialAttributes:{ref:t.id},title:t.title,icon:o?o.icon:ln,category:"reusable",keywords:[],isDisabled:!1,utility:f,frecency:p}},a=Object(i.getBlockTypes)().filter((function(n){return ur(e,n,t)})).map(o),l=ar(e,"core/block",t)?Or(e).map(c):[];return Object(p.orderBy)([].concat(Object(Be.a)(a),Object(Be.a)(l)),["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,Or(e),Object(i.getBlockTypes)()]})),fr=Object(nn.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Object(p.some)(Object(i.getBlockTypes)(),(function(n){return ur(e,n,t)}));if(n)return!0;var r=ar(e,"core/block",t)&&Or(e).length>0;return r}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Or(e),Object(i.getBlockTypes)()]}));function pr(e,t){return e.blockListSettings[t]}function br(e){return e.settings}function hr(e){return e.blocks.isPersistentChange}var mr=Object(nn.a)((function(e,t){var n=Object(p.find)(Or(e),(function(e){return e.id===t}));return n?Object(i.parse)(n.content):null}),(function(e){return[Or(e)]}));function vr(e){return e.blocks.isIgnoredChange}function gr(e){return e.lastBlockAttributesChange}function Or(e){return Object(p.get)(e,["settings","__experimentalReusableBlocks"],sn)}function kr(e){return e.isNavigationMode}function yr(e){return e.didAutomaticChange}var jr={MERGE_BLOCKS:function(e,t){var n=t.dispatch,r=t.getState(),o=Object(Ne.a)(e.blocks,2),a=o[0],s=o[1],u=pn(r,a),d=Object(i.getBlockType)(u.name);if(d.merge){var f=pn(r,s),b=Object(i.getBlockType)(f.name),h=yn(r),m=h.clientId,v=h.attributeKey,g=h.offset,O=(m===a||m===s)&&void 0!==v&&void 0!==g,k=Object(i.cloneBlock)(u),y=Object(i.cloneBlock)(f);if(O){var j=m===a?k:y,_=j.attributes[v],S=(m===a?d:b).attributes[v],C=S.multiline,E=S.__unstableMultilineWrapperTags,w=Object(c.insert)(Object(c.create)({html:_,multilineTag:C,multilineWrapperTags:E}),"†",g,g);j.attributes[v]=Object(c.toHTMLString)({value:w,multilineTag:C})}var I=u.name===f.name?[y]:Object(i.switchToBlockType)(y,u.name);if(I&&I.length){var B=d.merge(k.attributes,I[0].attributes);if(O){var T=Object(p.findKey)(B,(function(e){return"string"==typeof e&&-1!==e.indexOf("†")})),x=B[T],L=d.attributes[T],N=L.multiline,A=L.__unstableMultilineWrapperTags,M=Object(c.create)({html:x,multilineTag:N,multilineWrapperTags:A}),R=M.text.indexOf("†"),P=Object(c.remove)(M,R,R+1),D=Object(c.toHTMLString)({value:P,multilineTag:N});B[T]=D,n($t(u.clientId,T,R,R))}n(wt([u.clientId,f.clientId],[Object(l.a)({},u,{attributes:Object(l.a)({},u.attributes,B)})].concat(Object(Be.a)(I.slice(1)))))}}else n(gt(u.clientId))},RESET_BLOCKS:[function(e,t){var n=t.getState(),r=ir(n),o=cr(n),c=!r||"all"!==o||Object(i.doBlocksMatchTemplate)(e.blocks,r);if(c!==or(n))return Pt(c)}],MULTI_SELECT:function(e,t){var n=Cn((0,t.getState)());Object(tt.speak)(Object(H.sprintf)(Object(H._n)("%s block selected.","%s blocks selected.",n),n),"assertive")},SYNCHRONIZE_TEMPLATE:function(e,t){var n=(0,t.getState)(),r=hn(n),o=ir(n);return bt(Object(i.synchronizeBlocksWithTemplate)(r,o))}};var _r=function(e){var t,n=[Je()(jr),et.a],r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:e.getState,dispatch:function(){return r.apply(void 0,arguments)}};return t=n.map((function(e){return e(o)})),r=p.flowRight.apply(void 0,Object(Be.a)(t))(e.dispatch),e.dispatch=r,e},Sr={reducer:Xe,selectors:o,actions:r,controls:it},Cr=Object(m.registerStore)("core/block-editor",Object(l.a)({},Sr,{persist:["preferences"]}));_r(Cr);var Er=Object(b.createHigherOrderComponent)((function(e){return Object(m.withRegistry)((function(t){var n=t.useSubRegistry,r=void 0===n||n,o=t.registry,i=Object(Ae.a)(t,["useSubRegistry","registry"]);if(!r)return Object(u.createElement)(e,Object(s.a)({registry:o},i));var c=Object(u.useState)(null),a=Object(Ne.a)(c,2),l=a[0],d=a[1];return Object(u.useEffect)((function(){var e=Object(m.createRegistry)({},o),t=e.registerStore("core/block-editor",Sr);_r(t),d(e)}),[o]),l?Object(u.createElement)(m.RegistryProvider,{value:l},Object(u.createElement)(e,Object(s.a)({registry:l},i))):null}))}),"withRegistryProvider"),wr=function(e){function t(){return Object(j.a)(this,t),Object(S.a)(this,Object(C.a)(t).apply(this,arguments))}return Object(w.a)(t,e),Object(_.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,r=t.updateSettings,o=t.value,i=t.resetBlocks,c=t.registry;n!==e.settings&&r(n),c!==e.registry&&this.attachChangeObserver(c),null!==this.isSyncingOutcomingValue&&this.isSyncingOutcomingValue===o?this.isSyncingOutcomingValue=null:o!==e.value&&(this.isSyncingOutcomingValue=null,this.isSyncingIncomingValue=o,i(o))}},{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"),r=n.getBlocks,o=n.isLastBlockChangePersistent,i=n.__unstableIsLastBlockChangeIgnored,c=r(),a=o();this.unsubscribe=e.subscribe((function(){var e=t.props,n=e.onChange,l=void 0===n?p.noop:n,s=e.onInput,u=void 0===s?p.noop:s,d=r(),f=o();if(d!==c&&(t.isSyncingIncomingValue||i()))return t.isSyncingIncomingValue=null,c=d,void(a=f);(d!==c||f&&!a)&&(d!==c&&(t.isSyncingOutcomingValue=d),c=d,(a=f)?l(c):u(c))}))}},{key:"render",value:function(){return this.props.children}}]),t}(u.Component),Ir=Object(b.compose)([Er,Object(m.withDispatch)((function(e){var t=e("core/block-editor");return{updateSettings:t.updateSettings,resetBlocks:t.resetBlocks}}))])(wr),Br=function(e){var t=e.children,n=e.clientId,r=e.isBlockInSelection,o=Object(m.useSelect)((function(e){return e("core/block-editor").hasSelectedInnerBlock(n,!0)})),i=r||o;return Object(u.createElement)(m.__experimentalAsyncModeProvider,{value:!i},t)},Tr=n(64),xr=n(25);function Lr(e,t,n,r,o,i){var c=n+1;return e>1?function(e,t,n,r,o){var i=t+1;if(o<0&&n)return Object(H.__)("Blocks cannot be moved up as they are already at the top");if(o>0&&r)return Object(H.__)("Blocks cannot be moved down as they are already at the bottom");if(o<0&&!n)return Object(H.sprintf)(Object(H._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(H.sprintf)(Object(H._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(H.sprintf)(Object(H.__)("Block %s is the only block, and cannot be moved"),t):i>0&&!o?Object(H.sprintf)(Object(H.__)("Move %1$s block from position %2$d down to position %3$d"),t,c,c+1):i>0&&o?Object(H.sprintf)(Object(H.__)("Block %s is at the end of the content and can’t be moved down"),t):i<0&&!r?Object(H.sprintf)(Object(H.__)("Move %1$s block from position %2$d up to position %3$d"),t,c,c-1):i<0&&r?Object(H.sprintf)(Object(H.__)("Block %s is at the beginning of the content and can’t be moved up"),t):void 0}var Nr=Object(u.createElement)(P.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(u.createElement)(P.Polygon,{points:"9,4.5 3.3,10.1 4.8,11.5 9,7.3 13.2,11.5 14.7,10.1 "})),Ar=Object(u.createElement)(P.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(u.createElement)(P.Polygon,{points:"9,13.5 14.7,7.9 13.2,6.5 9,10.7 4.8,6.5 3.3,7.9 "})),Mr=Object(u.createElement)(P.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(u.createElement)(P.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"})),Rr=Object(m.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,l={type:"block",srcIndex:i,srcRootClientId:r,srcClientId:n};return Object(u.createElement)(P.Draggable,{elementId:o,transferData:l,onDragStart:c,onDragEnd:a},(function(e){var n=e.onDraggableStart,r=e.onDraggableEnd;return t({onDraggableStart:n,onDraggableEnd:r})}))})),Pr=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 l=f()("editor-block-mover__control-drag-handle block-editor-block-mover__control-drag-handle",n);return Object(u.createElement)(Rr,{clientId:a,blockElementId:c,onDragStart:o,onDragEnd:i},(function(e){var t=e.onDraggableStart,n=e.onDraggableEnd;return Object(u.createElement)("div",{className:l,"aria-hidden":"true",onDragStart:t,onDragEnd:n,draggable:!0},r)}))},Dr=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).state={isFocused:!1},e.onFocus=e.onFocus.bind(Object(E.a)(e)),e.onBlur=e.onBlur.bind(Object(E.a)(e)),e}return Object(w.a)(t,e),Object(_.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,l=e.clientIds,s=e.blockElementId,d=e.blockType,b=e.firstIndex,h=e.isLocked,m=e.instanceId,v=e.isHidden,g=e.rootClientId,O=this.state.isFocused,k=Object(p.castArray)(l).length;return h||r&&o&&!g?null:Object(u.createElement)("div",{className:f()("editor-block-mover block-editor-block-mover",{"is-visible":O||!v})},Object(u.createElement)(P.IconButton,{className:"editor-block-mover__control block-editor-block-mover__control",onClick:r?null:t,icon:Nr,label:Object(H.__)("Move up"),"aria-describedby":"block-editor-block-mover__up-description-".concat(m),"aria-disabled":r,onFocus:this.onFocus,onBlur:this.onBlur}),Object(u.createElement)(Pr,{className:"editor-block-mover__control block-editor-block-mover__control",icon:Mr,clientId:l,blockElementId:s,isVisible:i,onDragStart:c,onDragEnd:a}),Object(u.createElement)(P.IconButton,{className:"editor-block-mover__control block-editor-block-mover__control",onClick:o?null:n,icon:Ar,label:Object(H.__)("Move down"),"aria-describedby":"block-editor-block-mover__down-description-".concat(m),"aria-disabled":o,onFocus:this.onFocus,onBlur:this.onBlur}),Object(u.createElement)("span",{id:"block-editor-block-mover__up-description-".concat(m),className:"editor-block-mover__description block-editor-block-mover__description"},Lr(k,d&&d.title,b,r,o,-1)),Object(u.createElement)("span",{id:"block-editor-block-mover__down-description-".concat(m),className:"editor-block-mover__description block-editor-block-mover__description"},Lr(k,d&&d.title,b,r,o,1)))}}]),t}(u.Component),Fr=Object(b.compose)(Object(m.withSelect)((function(e,t){var n=t.clientIds,r=e("core/block-editor"),o=r.getBlock,c=r.getBlockIndex,a=r.getTemplateLock,l=r.getBlockRootClientId,s=r.getBlockOrder,u=Object(p.castArray)(n),d=Object(p.first)(u),f=o(d),b=l(Object(p.first)(u)),h=s(b),m=c(d,b),v=c(Object(p.last)(u),b);return{blockType:f?Object(i.getBlockType)(f.name):null,isLocked:"all"===a(b),rootClientId:b,firstIndex:m,isFirst:0===m,isLast:v===h.length-1}})),Object(m.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(p.partial)(i,n,r),onMoveUp:Object(p.partial)(c,n,r)}})),b.withInstanceId)(Dr);var Hr=function(e){var t=e.className,n=e.actions,r=e.children,o=e.secondaryActions;return Object(u.createElement)("div",{className:f()(t,"editor-warning block-editor-warning")},Object(u.createElement)("div",{className:"editor-warning__contents block-editor-warning__contents"},Object(u.createElement)("p",{className:"editor-warning__message block-editor-warning__message"},r),u.Children.count(n)>0&&Object(u.createElement)("div",{className:"editor-warning__actions block-editor-warning__actions"},u.Children.map(n,(function(e,t){return Object(u.createElement)("span",{key:t,className:"editor-warning__action block-editor-warning__action"},e)})))),o&&Object(u.createElement)(P.Dropdown,{className:"editor-warning__secondary block-editor-warning__secondary",position:"bottom left",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(u.createElement)(P.IconButton,{icon:"ellipsis",label:Object(H.__)("More options"),onClick:n,"aria-expanded":t})},renderContent:function(){return Object(u.createElement)(P.MenuGroup,null,o.map((function(e,t){return Object(u.createElement)(P.MenuItem,{onClick:e.onClick,key:t},e.title)})))}}))},Ur=n(219),Vr=function(e){var t=e.title,n=e.rawContent,r=e.renderedContent,o=e.action,i=e.actionText,c=e.className;return Object(u.createElement)("div",{className:c},Object(u.createElement)("div",{className:"editor-block-compare__content block-editor-block-compare__content"},Object(u.createElement)("h2",{className:"editor-block-compare__heading block-editor-block-compare__heading"},t),Object(u.createElement)("div",{className:"editor-block-compare__html block-editor-block-compare__html"},n),Object(u.createElement)("div",{className:"editor-block-compare__preview block-editor-block-compare__preview edit-post-visual-editor"},r)),Object(u.createElement)("div",{className:"editor-block-compare__action block-editor-block-compare__action"},Object(u.createElement)(P.Button,{isLarge:!0,tabIndex:"0",onClick:o},i)))},zr=function(e){function t(){return Object(j.a)(this,t),Object(S.a)(this,Object(C.a)(t).apply(this,arguments))}return Object(w.a)(t,e),Object(_.a)(t,[{key:"getDifference",value:function(e,t){return Object(Ur.diffChars)(e,t).map((function(e,t){var n=f()({"editor-block-compare__added block-editor-block-compare__added":e.added,"editor-block-compare__removed block-editor-block-compare__removed":e.removed});return Object(u.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(p.castArray)(e),n=t.map((function(e){return Object(i.getSaveContent)(e.name,e.attributes,e.innerBlocks)})),r=t.map((function(e){return Object(i.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)),l=this.getDifference(c.rawContent,a.rawContent);return Object(u.createElement)("div",{className:"editor-block-compare__wrapper block-editor-block-compare__wrapper"},Object(u.createElement)(Vr,{title:Object(H.__)("Current"),className:"editor-block-compare__current block-editor-block-compare__current",action:n,actionText:Object(H.__)("Convert to HTML"),rawContent:c.rawContent,renderedContent:c.renderedContent}),Object(u.createElement)(Vr,{title:Object(H.__)("After Conversion"),className:"editor-block-compare__converted block-editor-block-compare__converted",action:r,actionText:i,rawContent:l,renderedContent:a.renderedContent}))}}]),t}(u.Component),Kr=function(e){function t(e){var n;return Object(j.a)(this,t),(n=Object(S.a)(this,Object(C.a)(t).call(this,e))).state={compare:!1},n.onCompare=n.onCompare.bind(Object(E.a)(n)),n.onCompareClose=n.onCompareClose.bind(Object(E.a)(n)),n}return Object(w.a)(t,e),Object(_.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,c=e.block,a=!!Object(i.getBlockType)("core/html"),l=this.state.compare,s=[{title:Object(H.__)("Convert to Classic Block"),onClick:r},{title:Object(H.__)("Attempt Block Recovery"),onClick:o}];return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(Hr,{actions:[Object(u.createElement)(P.Button,{key:"convert",onClick:this.onCompare,isLarge:!0,isPrimary:!a},Object(H._x)("Resolve","imperative verb")),a&&Object(u.createElement)(P.Button,{key:"edit",onClick:t,isLarge:!0,isPrimary:!0},Object(H.__)("Convert to HTML"))],secondaryActions:s},Object(H.__)("This block contains unexpected or invalid content.")),l&&Object(u.createElement)(P.Modal,{title:Object(H.__)("Resolve Block"),onRequestClose:this.onCompareClose,className:"editor-block-compare block-editor-block-compare"},Object(u.createElement)(zr,{block:c,onKeep:t,onConvert:n,convertor:Wr,convertButtonText:Object(H.__)("Convert to Blocks")})))}}]),t}(u.Component),Wr=function(e){return Object(i.rawHandler)({HTML:e.originalContent})},qr=Object(b.compose)([Object(m.withSelect)((function(e,t){var n=t.clientId;return{block:e("core/block-editor").getBlock(n)}})),Object(m.withDispatch)((function(e,t){var n=t.block,r=e("core/block-editor").replaceBlock;return{convertToClassic:function(){r(n.clientId,function(e){return Object(i.createBlock)("core/freeform",{content:e.originalContent})}(n))},convertToHTML:function(){r(n.clientId,function(e){return Object(i.createBlock)("core/html",{content:e.originalContent})}(n))},convertToBlocks:function(){r(n.clientId,Wr(n))},attemptBlockRecovery:function(){var e,t,o,c;r(n.clientId,(t=(e=n).name,o=e.attributes,c=e.innerBlocks,Object(i.createBlock)(t,o,c)))}}}))])(Kr),Gr=Object(u.createElement)(Hr,{className:"block-editor-block-list__block-crash-warning"},Object(H.__)("This block has encountered an error and cannot be previewed.")),$r=function(){return Gr},Yr=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).state={hasError:!1},e}return Object(w.a)(t,e),Object(_.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}(u.Component),Xr=n(62),Zr=n.n(Xr),Jr=function(e){function t(e){var n;return Object(j.a)(this,t),(n=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).onChange=n.onChange.bind(Object(E.a)(n)),n.onBlur=n.onBlur.bind(Object(E.a)(n)),n.state={html:e.block.isValid?Object(i.getBlockContent)(e.block):e.block.originalContent},n}return Object(w.a)(t,e),Object(_.a)(t,[{key:"componentDidUpdate",value:function(e){Object(p.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),r=e||Object(i.getSaveContent)(t,n),o=!e||Object(i.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(u.createElement)(Zr.a,{className:"editor-block-list__block-html-textarea block-editor-block-list__block-html-textarea",value:e,onBlur:this.onBlur,onChange:this.onChange})}}]),t}(u.Component),Qr=Object(b.compose)([Object(m.withSelect)((function(e,t){return{block:e("core/block-editor").getBlock(t.clientId)}})),Object(m.withDispatch)((function(e){return{onChange:function(t,n,r,o){e("core/block-editor").updateBlock(t,{attributes:n,originalContent:r,isValid:o})}}}))])(Jr);var eo=Object(m.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})),to=Object(u.forwardRef)((function(e,t){var n=e.clientId,r=Object(m.useDispatch)("core/block-editor").setNavigationMode,o=Object(m.useSelect)((function(e){return{rootClientId:e("core/block-editor").getBlockRootClientId(n)}})).rootClientId;return Object(u.createElement)("div",{className:"editor-block-list__breadcrumb block-editor-block-list__breadcrumb"},Object(u.createElement)(P.Toolbar,null,o&&Object(u.createElement)(u.Fragment,null,Object(u.createElement)(eo,{clientId:o}),Object(u.createElement)("span",{className:"editor-block-list__descendant-arrow block-editor-block-list__descendant-arrow"})),Object(u.createElement)(P.Button,{ref:t,onClick:function(){return r(!1)}},Object(u.createElement)(eo,{clientId:n}))))})),no=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).focusToolbar=e.focusToolbar.bind(Object(E.a)(e)),e.toolbar=Object(u.createRef)(),e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"focusToolbar",value:function(){var e=xr.focus.tabbable.find(this.toolbar.current);e.length&&e[0].focus()}},{key:"componentDidMount",value:function(){this.props.focusOnMount&&this.focusToolbar(),this.toolbar.current.addEventListener("keydown",this.switchOnKeyDown)}},{key:"componentwillUnmount",value:function(){this.toolbar.current.removeEventListener("keydown",this.switchOnKeyDown)}},{key:"render",value:function(){var e=this.props,t=e.children,n=Object(Ae.a)(e,["children"]);return Object(u.createElement)(P.NavigableMenu,Object(s.a)({orientation:"horizontal",role:"toolbar",ref:this.toolbar},Object(p.omit)(n,["focusOnMount"])),Object(u.createElement)(P.KeyboardShortcuts,{bindGlobal:!0,eventName:"keydown",shortcuts:{"alt+f10":this.focusToolbar}}),t)}}]),t}(u.Component);var ro=function(e){var t=e.focusOnMount;return Object(u.createElement)(no,{focusOnMount:t,className:"editor-block-contextual-toolbar block-editor-block-contextual-toolbar","aria-label":Object(H.__)("Block tools")},Object(u.createElement)(wc,null))};var oo=Object(m.withSelect)((function(e){var t=e("core/block-editor"),n=t.getMultiSelectedBlockClientIds,r=t.isMultiSelecting;return{multiSelectedBlockClientIds:n(),isSelecting:r()}}))((function(e){var t=e.multiSelectedBlockClientIds;return e.isSelecting?null:Object(u.createElement)(Fr,{clientIds:t})}));var io=Object(a.ifViewportMatches)("< small")((function(e){var t=e.clientId;return Object(u.createElement)("div",{className:"editor-block-list__block-mobile-toolbar block-editor-block-list__block-mobile-toolbar"},Object(u.createElement)(zo,null),Object(u.createElement)(Fr,{clientIds:[t]}))})),co=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).state={isInserterFocused:!1},e.onBlurInserter=e.onBlurInserter.bind(Object(E.a)(e)),e.onFocusInserter=e.onFocusInserter.bind(Object(E.a)(e)),e}return Object(w.a)(t,e),Object(_.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(u.createElement)("div",{className:"editor-block-list__insertion-point block-editor-block-list__insertion-point"},n&&Object(u.createElement)("div",{className:"editor-block-list__insertion-point-indicator block-editor-block-list__insertion-point-indicator"}),Object(u.createElement)("div",{onFocus:this.onFocusInserter,onBlur:this.onBlurInserter,tabIndex:-1,className:f()("editor-block-list__insertion-point-inserter block-editor-block-list__insertion-point-inserter",{"is-visible":e})},Object(u.createElement)(zo,{rootClientId:r,clientId:o})))}}]),t}(u.Component),ao=Object(m.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,l=i(n,r),s=c();return{showInsertionPoint:a()&&s.index===l&&s.rootClientId===r}}))(co),lo=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).proxyEvent=e.proxyEvent.bind(Object(E.a)(e)),e.eventMap={},e}return Object(w.a)(t,e),Object(_.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=t.tagName,c=void 0===i?"div":i,a=Object(Ae.a)(t,["childHandledEvents","forwardedRef","tagName"]),s=Object(p.reduce)([].concat(Object(Be.a)(r),Object(Be.a)(Object.keys(a))),(function(t,n){var r=n.match(/^on([A-Z][a-zA-Z]+?)(Handled)?$/);if(r){!!r[2]&&delete a[n];var o="on"+r[1];t[o]=e.proxyEvent,e.eventMap[r[1].toLowerCase()]=o}return t}),{});return Object(u.createElement)(c,Object(l.a)({ref:o},a,s))}}]),t}(u.Component),so=function(e,t){return Object(u.createElement)(lo,Object(s.a)({},e,{forwardedRef:t}))};so.displayName="IgnoreNestedEvents";var uo=Object(u.forwardRef)(so);var fo=Object(b.compose)(Object(m.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(m.withDispatch)((function(e,t){var n=t.clientId,r=t.rootClientId;return{onInsert:function(t){var o=t.name,c=t.initialAttributes,a=Object(i.createBlock)(o,c);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(p.filter)(t,(function(e){return!(e.isDisabled||e.name===Object(i.getDefaultBlockName)()&&Object(p.isEmpty)(e.initialAttributes))})).slice(0,3);return Object(u.createElement)("div",{className:"editor-inserter-with-shortcuts block-editor-inserter-with-shortcuts"},o.map((function(e){return Object(u.createElement)(P.IconButton,{key:e.id,className:"editor-inserter-with-shortcuts__block block-editor-inserter-with-shortcuts__block",onClick:function(){return r(e)},label:Object(H.sprintf)(Object(H.__)("Add %s"),e.title),icon:Object(u.createElement)(be,{icon:e.icon})})})))}));function po(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:document).querySelector('[data-block="'+e+'"]')}var bo=function(e){return e+1},ho=function(e){return{top:e.offsetTop,left:e.offsetLeft}};var mo=function(e,t,n,r,o){var i=Object(b.useReducedMotion)()||!r,c=Object(u.useReducer)(bo,0),a=Object(Ne.a)(c,2),l=a[0],s=a[1],d=Object(u.useReducer)(bo,0),f=Object(Ne.a)(d,2),p=f[0],h=f[1],m=Object(u.useState)({x:0,y:0,scrollTop:0}),v=Object(Ne.a)(m,2),g=v[0],O=v[1],k=e.current?ho(e.current):null,y=Object(u.useMemo)((function(){return!!n&&Object(xr.getScrollContainer)(e.current)}),[n]);Object(u.useLayoutEffect)((function(){l&&h()}),[l]),Object(u.useLayoutEffect)((function(){if(i){if(n&&y){e.current.style.transform="none";var t=ho(e.current);y.scrollTop=y.scrollTop-k.top+t.top}}else{e.current.style.transform="none";var r=ho(e.current),o={x:k?k.left-r.left:0,y:k?k.top-r.top:0,scrollTop:k&&y?y.scrollTop-k.top+r.top:0};e.current.style.transform=0===o.x&&0===o.y?void 0:"translate3d(".concat(o.x,"px,").concat(o.y,"px,0)"),s(),O(o)}}),[o]);var j=Object(Tr.useSpring)({from:{x:g.x,y:g.y},to:{x:0,y:0},reset:l!==p,config:{mass:5,tension:2e3,friction:200},immediate:i,onFrame:function(e){n&&y&&!i&&e.y&&(y.scrollTop=g.scrollTop+e.y)}});return i?{}:{transformOrigin:"center",transform:Object(Tr.interpolate)([j.x,j.y],(function(e,t){return 0===e&&0===t?void 0:"translate3d(".concat(e,"px,").concat(t,"px,0)")})),zIndex:Object(Tr.interpolate)([j.x,j.y],(function(e,n){return!t||0===e&&0===n?void 0:"1"}))}},vo=function(e){e.preventDefault()};var go=Object(m.withSelect)((function(e,t){var n=t.clientId,r=t.rootClientId,o=t.isLargeViewport,c=e("core/block-editor"),a=c.isBlockSelected,l=c.isAncestorMultiSelected,s=c.isBlockMultiSelected,u=c.isFirstMultiSelectedBlock,d=c.isTyping,f=c.isCaretWithinFormattedText,p=c.getBlockMode,b=c.isSelectionEnabled,h=c.getSelectedBlocksInitialCaretPosition,m=c.getSettings,v=c.hasSelectedInnerBlock,g=c.getTemplateLock,O=c.getBlockIndex,k=c.getBlockOrder,y=c.__unstableGetBlockWithoutInnerBlocks,j=c.isNavigationMode,_=y(n),S=a(n),C=m(),E=C.hasFixedToolbar,w=C.focusMode,I=C.isRTL,B=g(r),T=v(n,!0),x=O(n,r),L=k(r),N=_||{},A=N.name,M=N.attributes,R=N.isValid;return{isPartOfMultiSelection:s(n)||l(n),isFirstMultiSelected:u(n),isTypingWithinBlock:(S||T)&&d(),isCaretWithinFormattedText:f(),mode:p(n),isSelectionEnabled:b(),initialPosition:S?h():null,isEmptyDefaultBlock:A&&Object(i.isUnmodifiedDefaultBlock)({name:A,attributes:M}),isMovable:"all"!==B,isLocked:!!B,isFocusMode:w&&o,hasFixedToolbar:E&&o,isLast:x===L.length-1,isNavigationMode:j(),isRTL:I,block:_,name:A,attributes:M,isValid:R,isSelected:S,isParentOfSelectedBlock:T}})),Oo=Object(m.withDispatch)((function(e,t,n){var r=n.select,o=e("core/block-editor"),c=o.updateBlockAttributes,a=o.selectBlock,l=o.multiSelect,s=o.insertBlocks,u=o.insertDefaultBlock,d=o.removeBlock,f=o.mergeBlocks,p=o.replaceBlocks,b=o.toggleSelection,h=o.setNavigationMode,m=o.__unstableMarkLastChangeAsPersistent;return{setAttributes:function(e){var n=t.clientId;c(n,e)},onSelect:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.clientId,n=arguments.length>1?arguments[1]:void 0;a(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);u({},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){d(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&&f(n,a)}else{var l=i(n);l&&f(l,n)}},onReplace:function(e,n){e.length&&!Object(i.isUnmodifiedDefaultBlock)(e[e.length-1])&&m(),p([t.clientId],e,n)},onShiftSelection:function(){if(t.isSelectionEnabled){var e=r("core/block-editor").getBlockSelectionStart;e()?l(e(),t.clientId):a(t.clientId)}},toggleSelection:function(e){b(e)},enableNavigationMode:function(){h(!0)}}})),ko=Object(b.compose)(b.pure,Object(a.withViewportMatch)({isLargeViewport:"medium"}),go,Oo,Object(b.ifCondition)((function(e){return!!e.block})),Object(P.withFilters)("editor.BlockListBlock"))((function(e){var t=e.blockRef,n=e.mode,r=e.isFocusMode,o=e.hasFixedToolbar,c=e.isLocked,a=e.clientId,d=e.rootClientId,b=e.isSelected,h=e.isPartOfMultiSelection,m=e.isFirstMultiSelected,v=e.isTypingWithinBlock,g=e.isCaretWithinFormattedText,O=e.isEmptyDefaultBlock,k=e.isMovable,y=e.isParentOfSelectedBlock,j=e.isDraggable,_=e.isSelectionEnabled,S=e.className,C=e.name,E=e.isValid,w=e.isLast,I=e.attributes,B=e.initialPosition,T=e.wrapperProps,x=e.setAttributes,L=e.onReplace,N=e.onInsertBlocksAfter,A=e.onMerge,M=e.onSelect,R=e.onRemove,D=e.onInsertDefaultBlockAfter,F=e.toggleSelection,U=e.onShiftSelection,V=e.onSelectionStart,z=e.animateOnChange,K=e.enableAnimation,W=e.isNavigationMode,q=e.enableNavigationMode,G=Object(u.useState)({}),$=Object(Ne.a)(G,2)[1],Y=Object(u.useRef)(null);Object(u.useEffect)((function(){t(Y.current,a)}),[]);var X=Object(u.useRef)(),Z=Object(u.useRef)(),J=Object(u.useRef)(!1),Q=Object(u.useState)(!1),ee=Object(Ne.a)(Q,2),te=ee[0],ne=ee[1],re=function(){te&&ne(!1)};Object(u.useEffect)((function(){(v||b)&&re()}));var oe=Object(u.useState)(!1),ie=Object(Ne.a)(oe,2),ce=ie[0],ae=ie[1],se=Object(u.useState)(!1),ue=Object(Ne.a)(se,2),de=ue[0],fe=ue[1],pe=Object(u.useRef)(!1);Object(u.useEffect)((function(){pe.current&&(pe.current=!1)}));var be=function(e){if(!Y.current.contains(document.activeElement))if(W)Z.current.focus();else{var t=xr.focus.tabbable.find(X.current).filter(xr.isTextField).filter((function(t){return!e||(n=X.current,r=t,o=n.querySelector(".block-editor-block-list__layout"),n.contains(r)&&(!o||!o.contains(r)));var n,r,o})),n=-1===B,r=(n?p.last:p.first)(t);r?Object(xr.placeCaretAtHorizontalEdge)(r,n):Y.current.focus()}},me=Object(u.useRef)(!0);Object(u.useEffect)((function(){b&&be(!me.current),me.current=!1}),[b]),Object(u.useEffect)((function(){m&&Y.current.focus()}),[m]);var ve=mo(Y,b||h,b||m,K,z);Object(u.useLayoutEffect)((function(){b&&(W?Z.current.focus():be(!0))}),[b,W]);var ge=function(e){e&&!b&&M()},Oe=te&&!h,ke=Object(i.getBlockType)(C),ye=Object(H.sprintf)(Object(H.__)("Block: %s"),ke.title),je=C===Object(i.getUnregisteredTypeHandlerName)(),_e=!W&&(b||Oe)&&O&&E,Se=!W&&(b||Oe||w)&&O&&E,Ce=!r&&!Se&&b&&!v,Ee=!r&&!o&&Oe&&!O,we=!W&&b&&!Se&&!h&&!v,Be=b&&W||!W&&!r&&Oe&&!O,Te=!W&&!o&&!Se&&(b&&(!v||g)||m),xe=!W&&Ce,Le=h&&m||!h,Ae=f()("wp-block editor-block-list__block block-editor-block-list__block",{"has-warning":!E||!!de||je,"is-selected":Ce,"is-navigate-mode":W,"is-multi-selected":h,"is-hovered":Ee,"is-reusable":Object(i.isReusableBlock)(ke),"is-dragging":ce,"is-typing":v,"is-focused":r&&(b||y),"is-focus-mode":r,"has-child-selected":y},S);ke.getEditWrapperProps&&(T=Object(l.a)({},T,ke.getEditWrapperProps(I)));var Me="block-".concat(a),Re=Object(u.createElement)(le,{name:C,isSelected:b,attributes:I,setAttributes:x,insertBlocksAfter:c?void 0:N,onReplace:c?void 0:L,mergeBlocks:c?void 0:A,clientId:a,isSelectionEnabled:_,toggleSelection:F});return"visual"!==n&&(Re=Object(u.createElement)("div",{style:{display:"none"}},Re)),Object(u.createElement)(uo,Object(s.a)({id:Me,ref:Y,onMouseOver:function(){te||h||b||J.current||ne(!0)},onMouseOverHandled:re,onMouseLeave:re,className:Ae,"data-type":C,onTouchStart:function(){J.current=!0},onFocus:function(){b||h||M()},onClick:function(){J.current=!1},onKeyDown:function(e){var t=e.keyCode,n=e.target,r=b&&!c&&(n===Y.current||n===Z.current),o=!W;switch(t){case he.ENTER:r&&o&&(D(),e.preventDefault());break;case he.BACKSPACE:case he.DELETE:r&&(R(a),e.preventDefault());break;case he.ESCAPE:b&&o&&(q(),Y.current.focus())}},tabIndex:"0","aria-label":ye,childHandledEvents:["onDragStart","onMouseDown"],tagName:Tr.animated.div},T,{style:T&&T.style?Object(l.a)({},T.style,ve):ve}),Le&&Object(u.createElement)(ao,{clientId:a,rootClientId:d}),Object(u.createElement)(Ie,{clientId:a,rootClientId:d}),m&&Object(u.createElement)(oo,{rootClientId:d}),Object(u.createElement)("div",{className:"editor-block-list__block-edit block-editor-block-list__block-edit"},we&&Object(u.createElement)(Fr,{clientIds:a,blockElementId:Me,isHidden:!b,isDraggable:!1!==j&&!h&&k,onDragStart:function(){ae(!0)},onDragEnd:function(){ae(!1)}}),Be&&Object(u.createElement)(to,{clientId:a,ref:Z}),(Te||pe.current)&&Object(u.createElement)(ro,{focusOnMount:pe.current}),!W&&!Te&&b&&!o&&!O&&Object(u.createElement)(P.KeyboardShortcuts,{bindGlobal:!0,eventName:"keydown",shortcuts:{"alt+f10":function(){pe.current=!0,$({})}}}),Object(u.createElement)(uo,{ref:X,onDragStart:vo,onMouseDown:function(e){0===e.button&&(e.shiftKey?b||(U(),e.preventDefault()):X.current.contains(e.target)&&(V(a),h&&M()))},"data-block":a},Object(u.createElement)(Yr,{onError:function(){return fe(!0)}},E&&Re,E&&"html"===n&&Object(u.createElement)(Qr,{clientId:a}),!E&&[Object(u.createElement)(qr,{key:"invalid-warning",clientId:a}),Object(u.createElement)("div",{key:"invalid-preview"},Object(i.getSaveElement)(ke,I))]),!!de&&Object(u.createElement)($r,null),xe&&Object(u.createElement)(io,{clientId:a}))),_e&&Object(u.createElement)("div",{className:"editor-block-list__side-inserter block-editor-block-list__side-inserter"},Object(u.createElement)(fo,{clientId:a,rootClientId:d,onToggle:ge})),Se&&Object(u.createElement)("div",{className:"editor-block-list__empty-block-inserter block-editor-block-list__empty-block-inserter"},Object(u.createElement)(zo,{position:"top right",onToggle:ge,rootClientId:d,clientId:a})))})),yo=n(52);var jo=Object(b.compose)(Object(b.withState)({hovered:!1}),Object(m.withSelect)((function(e,t){var n=e("core/block-editor"),r=n.getBlockCount,o=n.getBlockName,c=n.isBlockValid,a=n.getSettings,l=n.getTemplateLock,s=!r(t.rootClientId),u=o(t.lastBlockClientId)===Object(i.getDefaultBlockName)(),d=c(t.lastBlockClientId),f=a().bodyPlaceholder;return{isVisible:s||!u||!d,showPrompt:s,isLocked:!!l(t.rootClientId),placeholder:f}})),Object(m.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,l=e.setState;if(t||!n)return null;var s=Object(yo.decodeEntities)(i)||Object(H.__)("Start writing or type / to choose a block");return Object(u.createElement)("div",{"data-root-client-id":c||"",className:"wp-block editor-default-block-appender block-editor-default-block-appender",onMouseEnter:function(){return l({hovered:!0})},onMouseLeave:function(){return l({hovered:!1})}},Object(u.createElement)(Ie,{rootClientId:c}),Object(u.createElement)(Zr.a,{role:"button","aria-label":Object(H.__)("Add block"),className:"editor-default-block-appender__content block-editor-default-block-appender__content",readOnly:!0,onFocus:r,value:o?s:""}),a&&Object(u.createElement)(fo,{rootClientId:c}),Object(u.createElement)(zo,{rootClientId:c,position:"top right",isAppender:!0}))}));var _o=Object(m.withSelect)((function(e,t){var n=t.rootClientId,r=e("core/block-editor"),o=r.getBlockOrder,c=r.canInsertBlockType;return{isLocked:!!(0,r.getTemplateLock)(n),blockClientIds:o(n),canInsertDefaultBlock:c(Object(i.getDefaultBlockName)(),n)}}))((function(e){var t=e.blockClientIds,n=e.rootClientId,r=e.canInsertDefaultBlock,o=e.isLocked,i=e.renderAppender;return o?null:i?Object(u.createElement)("div",{className:"block-list-appender"},Object(u.createElement)(i,null)):!1===i?null:r?Object(u.createElement)("div",{className:"block-list-appender"},Object(u.createElement)(uo,{childHandledEvents:["onFocus","onClick","onKeyDown"]},Object(u.createElement)(jo,{rootClientId:n,lastBlockClientId:Object(p.last)(t)}))):Object(u.createElement)("div",{className:"block-list-appender"},Object(u.createElement)(Ko,{rootClientId:n,className:"block-list-appender__toggle"}))})),So=function(e){function t(e){var n;return Object(j.a)(this,t),(n=Object(S.a)(this,Object(C.a)(t).call(this,e))).onSelectionStart=n.onSelectionStart.bind(Object(E.a)(n)),n.onSelectionEnd=n.onSelectionEnd.bind(Object(E.a)(n)),n.setBlockRef=n.setBlockRef.bind(Object(E.a)(n)),n.setLastClientY=n.setLastClientY.bind(Object(E.a)(n)),n.onPointerMove=Object(p.throttle)(n.onPointerMove.bind(Object(E.a)(n)),100),n.onScroll=function(){return n.onPointerMove({clientY:n.lastClientY})},n.lastClientY=0,n.nodes={},n}return Object(w.a)(t,e),Object(_.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(l.a)({},this.nodes,Object(I.a)({},t,e))}},{key:"onPointerMove",value:function(e){var t=e.clientY;this.props.isMultiSelecting||this.props.onStartMultiSelect();var n=po(this.selectionAtStart).getBoundingClientRect();if(!(t>=n.top&&t<=n.bottom)){var r=t-n.top,o=Object(p.findLast)(this.coordMapKeys,(function(e){return ea.height*l?(c.height-a.height*l)/2+o:0;h(l),y({x:u,y:d}),r.style.marginTop="0"}else{var f=e.getBoundingClientRect();h(f.width/n)}s(!0)}}),100);return function(){e&&window.clearTimeout(e)}}),[]),!t||0===t.length)return null;var j={transform:"scale(".concat(b,")"),visibility:l?"visible":"hidden",left:O,top:k,width:n};return Object(u.createElement)("div",{ref:i,className:f()("block-editor-block-preview__container editor-styles-wrapper",{"is-ready":l}),"aria-hidden":!0},Object(u.createElement)(P.Disabled,{style:j,className:"block-editor-block-preview__content"},Object(u.createElement)(Co,null)))}var wo=Object(m.withSelect)((function(e){return{settings:e("core/block-editor").getSettings()}}))((function(e){var t=e.blocks,n=e.viewportWidth,r=void 0===n?700:n,o=e.padding,i=e.settings,c=Object(u.useMemo)((function(){return Object(p.castArray)(t)}),[t]),a=Object(u.useReducer)((function(e){return e+1}),0),l=Object(Ne.a)(a,2),s=l[0],d=l[1];return Object(u.useLayoutEffect)(d,[t]),Object(u.createElement)(Ir,{value:c,settings:i},Object(u.createElement)(Eo,{key:s,blocks:c,viewportWidth:r,padding:o}))}));var Io=function(e){var t=e.icon,n=e.onClick,r=e.isDisabled,o=e.title,i=e.className,c=Object(Ae.a)(e,["icon","onClick","isDisabled","title","className"]),a=t?{backgroundColor:t.background,color:t.foreground}:{};return Object(u.createElement)("li",{className:"editor-block-types-list__list-item block-editor-block-types-list__list-item"},Object(u.createElement)("button",Object(s.a)({className:f()("editor-block-types-list__item block-editor-block-types-list__item",i),onClick:function(e){e.preventDefault(),n()},disabled:r},c),Object(u.createElement)("span",{className:"editor-block-types-list__item-icon block-editor-block-types-list__item-icon",style:a},Object(u.createElement)(be,{icon:t,showColors:!0})),Object(u.createElement)("span",{className:"editor-block-types-list__item-title block-editor-block-types-list__item-title"},o)))};var Bo=function(e){var t=e.items,n=e.onSelect,r=e.onHover,o=void 0===r?function(){}:r,c=e.children;return(Object(u.createElement)("ul",{role:"list",className:"editor-block-types-list block-editor-block-types-list"},t&&t.map((function(e){return Object(u.createElement)(Io,{key:e.id,className:Object(i.getBlockMenuDefaultClassName)(e.id),icon:e.icon,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})})),c))};var To=function(e){var t=e.blockType;return Object(u.createElement)("div",{className:"block-editor-block-card"},Object(u.createElement)(be,{icon:t.icon,showColors:!0}),Object(u.createElement)("div",{className:"block-editor-block-card__content"},Object(u.createElement)("div",{className:"block-editor-block-card__title"},t.title),Object(u.createElement)("div",{className:"block-editor-block-card__description"},t.description)))};var xo=Object(b.compose)(Object(b.ifCondition)((function(e){var t=e.items;return t&&t.length>0})),Object(m.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(Ae.a)(e,["rootBlockIcon","rootBlockTitle","items"]);return Object(u.createElement)("div",{className:"editor-inserter__child-blocks block-editor-inserter__child-blocks"},(t||n)&&Object(u.createElement)("div",{className:"editor-inserter__parent-block-header block-editor-inserter__parent-block-header"},Object(u.createElement)(be,{icon:t,showColors:!0}),n&&Object(u.createElement)("h2",null,n)),Object(u.createElement)(Bo,Object(s.a)({items:r},o)))})),Lo=Object(P.createSlotFill)("__experimentalInserterMenuExtension"),No=Lo.Fill,Ao=Lo.Slot;No.Slot=Ao;var Mo=No,Ro=function(e){return e.stopPropagation()},Po=function(e,t){var n=Do(t),r=function(e){return-1!==Do(e).indexOf(n)},o=Object(i.getCategories)();return e.filter((function(e){var t=Object(p.find)(o,{slug:e.category});return r(e.title)||Object(p.some)(e.keywords,r)||t&&r(t.title)}))},Do=function(e){return e=(e=(e=(e=Object(p.deburr)(e)).replace(/^\//,"")).toLowerCase()).trim()},Fo=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).state={childItems:[],filterValue:"",hoveredItem:null,suggestedItems:[],reusableItems:[],itemsPerCategory:{},openPanels:["suggested"]},e.onChangeSearchInput=e.onChangeSearchInput.bind(Object(E.a)(e)),e.onHover=e.onHover.bind(Object(E.a)(e)),e.panels={},e.inserterResults=Object(u.createRef)(),e}return Object(w.a)(t,e),Object(_.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(p.without)(t.state.openPanels,e)}):(t.setState({openPanels:[].concat(Object(Be.a)(t.state.openPanels),[e])}),t.props.setTimeout((function(){xe()(t.panels[e],t.inserterResults.current,{alignWithTop:!0})})))}}},{key:"filterOpenPanels",value:function(e,t,n,r){if(e===this.state.filterValue)return this.state.openPanels;if(!e)return["suggested"];var o=[];return r.length>0&&o.push("reusable"),n.length>0&&(o=o.concat(Object.keys(t))),o}},{key:"filter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.props,n=t.debouncedSpeak,r=t.items,o=t.rootChildBlocks,c=Po(r,e),a=Object(p.filter)(c,(function(e){var t=e.name;return Object(p.includes)(o,t)})),l=[];if(!e){var s=this.props.maxSuggestedItems||9;l=Object(p.filter)(r,(function(e){return e.utility>0})).slice(0,s)}var u=Object(p.filter)(c,{category:"reusable"}),d=function(e){return Object(p.findIndex)(Object(i.getCategories)(),(function(t){return t.slug===e.category}))},f=Object(p.flow)((function(e){return Object(p.filter)(e,(function(e){return"reusable"!==e.category}))}),(function(e){return Object(p.sortBy)(e,d)}),(function(e){return Object(p.groupBy)(e,"category")}))(c);this.setState({hoveredItem:null,childItems:a,filterValue:e,suggestedItems:l,reusableItems:u,itemsPerCategory:f,openPanels:this.filterOpenPanels(e,f,c,u)});var b=Object.keys(f).reduce((function(e,t){return e+f[t].length}),0),h=Object(H.sprintf)(Object(H._n)("%d result found.","%d results found.",b),b);n(h)}},{key:"onKeyDown",value:function(e){Object(p.includes)([he.LEFT,he.DOWN,he.RIGHT,he.UP,he.BACKSPACE,he.ENTER],e.keyCode)&&e.stopPropagation()}},{key:"render",value:function(){var e=this,t=this.props,n=t.instanceId,r=t.onSelect,o=t.rootClientId,c=t.showInserterHelpPanel,a=this.state,l=a.childItems,s=a.hoveredItem,d=a.itemsPerCategory,b=a.openPanels,h=a.reusableItems,m=a.suggestedItems,v=a.filterValue,g=function(e){return-1!==b.indexOf(e)},O=!Object(p.isEmpty)(m)||!Object(p.isEmpty)(h)||!Object(p.isEmpty)(d),k=s?Object(i.getBlockType)(s.name):null,y=O&&c;return Object(u.createElement)("div",{className:f()("editor-inserter__menu block-editor-inserter__menu",{"has-help-panel":y}),onKeyPress:Ro,onKeyDown:this.onKeyDown},Object(u.createElement)("div",{className:"block-editor-inserter__main-area"},Object(u.createElement)("label",{htmlFor:"block-editor-inserter__search-".concat(n),className:"screen-reader-text"},Object(H.__)("Search for a block")),Object(u.createElement)("input",{id:"block-editor-inserter__search-".concat(n),type:"search",placeholder:Object(H.__)("Search for a block"),className:"editor-inserter__search block-editor-inserter__search",autoFocus:!0,onChange:this.onChangeSearchInput}),Object(u.createElement)("div",{className:"editor-inserter__results block-editor-inserter__results",ref:this.inserterResults,tabIndex:"0",role:"region","aria-label":Object(H.__)("Available block types")},Object(u.createElement)(xo,{rootClientId:o,items:l,onSelect:r,onHover:this.onHover}),!!m.length&&Object(u.createElement)(P.PanelBody,{title:Object(H._x)("Most Used","blocks"),opened:g("suggested"),onToggle:this.onTogglePanel("suggested"),ref:this.bindPanel("suggested")},Object(u.createElement)(Bo,{items:m,onSelect:r,onHover:this.onHover})),Object(p.map)(Object(i.getCategories)(),(function(t){var n=d[t.slug];return n&&n.length?Object(u.createElement)(P.PanelBody,{key:t.slug,title:t.title,icon:t.icon,opened:g(t.slug),onToggle:e.onTogglePanel(t.slug),ref:e.bindPanel(t.slug)},Object(u.createElement)(Bo,{items:n,onSelect:r,onHover:e.onHover})):null})),!!h.length&&Object(u.createElement)(P.PanelBody,{className:"editor-inserter__reusable-blocks-panel block-editor-inserter__reusable-blocks-panel",title:Object(H.__)("Reusable"),opened:g("reusable"),onToggle:this.onTogglePanel("reusable"),icon:"controls-repeat",ref:this.bindPanel("reusable")},Object(u.createElement)(Bo,{items:h,onSelect:r,onHover:this.onHover}),Object(u.createElement)("a",{className:"editor-inserter__manage-reusable-blocks block-editor-inserter__manage-reusable-blocks",href:Object(Le.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(H.__)("Manage All Reusable Blocks"))),Object(u.createElement)(Mo.Slot,{fillProps:{onSelect:r,onHover:this.onHover,filterValue:v,hasItems:O}},(function(e){return e.length?e:O?null:Object(u.createElement)("p",{className:"editor-inserter__no-results block-editor-inserter__no-results"},Object(H.__)("No blocks found."))})))),y&&Object(u.createElement)("div",{className:"block-editor-inserter__menu-help-panel"},s&&Object(u.createElement)(u.Fragment,null,!Object(i.isReusableBlock)(s)&&Object(u.createElement)(To,{blockType:k}),Object(u.createElement)("div",{className:"block-editor-inserter__preview"},Object(i.isReusableBlock)(s)||k.example?Object(u.createElement)("div",{className:"block-editor-inserter__preview-content"},Object(u.createElement)(wo,{padding:10,viewportWidth:500,blocks:k.example?Object(i.getBlockFromExample)(s.name,k.example):Object(i.createBlock)(s.name,s.initialAttributes)})):Object(u.createElement)("div",{className:"block-editor-inserter__preview-content-missing"},Object(H.__)("No Preview Available.")))),!s&&Object(u.createElement)("div",{className:"block-editor-inserter__menu-help-panel-no-block"},Object(u.createElement)("div",{className:"block-editor-inserter__menu-help-panel-no-block-text"},Object(u.createElement)("div",{className:"block-editor-inserter__menu-help-panel-title"},Object(H.__)("Content Blocks")),Object(u.createElement)("p",null,Object(H.__)("Welcome to the wonderful world of blocks! Blocks are the basis of all content within the editor.")),Object(u.createElement)("p",null,Object(H.__)("There are blocks available for all kinds of content: insert text, headings, images, lists, videos, tables, and lots more.")),Object(u.createElement)("p",null,Object(H.__)("Browse through the library to learn more about what each block does."))),Object(u.createElement)(P.Tip,null,Object(H.__)('While writing, you can press "/" to quickly insert new blocks.')))))}}]),t}(u.Component),Ho=Object(b.compose)(Object(m.withSelect)((function(e,t){var n=t.clientId,r=t.isAppender,o=t.rootClientId,i=t.showInserterHelpPanel,c=e("core/block-editor"),a=c.getInserterItems,l=c.getBlockName,s=c.getBlockRootClientId,u=c.getBlockSelectionEnd,d=c.getSettings,f=e("core/blocks").getChildBlockNames,p=o;if(!p&&!n&&!r){var b=u();b&&(p=s(b)||void 0)}return{rootChildBlocks:f(l(p)),items:a(p),showInserterHelpPanel:i&&d().showInserterHelpPanel,destinationRootClientId:p}})),Object(m.withDispatch)((function(e,t,n){var r=n.select,o=e("core/block-editor"),c=o.showInsertionPoint,a=o.hideInsertionPoint;function l(){var e=r("core/block-editor"),n=e.getBlockIndex,o=e.getBlockSelectionEnd,i=e.getBlockOrder,c=t.clientId,a=t.destinationRootClientId,l=t.isAppender;if(c)return n(c,a);var s=o();return!l&&s?n(s,a)+1:i(a).length}return{fetchReusableBlocks:e("core/editor").__experimentalFetchReusableBlocks,showInsertionPoint:function(){var e=l();c(t.destinationRootClientId,e)},hideInsertionPoint:a,onSelect:function(n){var o=e("core/block-editor"),c=o.replaceBlocks,a=o.insertBlock,s=r("core/block-editor").getSelectedBlock,u=t.isAppender,d=n.name,f=n.initialAttributes,p=s(),b=Object(i.createBlock)(d,f);return!u&&p&&Object(i.isUnmodifiedDefaultBlock)(p)?c(p.clientId,b):a(b,l(),t.destinationRootClientId),t.onSelect(),b}}})),P.withSpokenMessages,b.withInstanceId,b.withSafeTimeout)(Fo),Uo=function(e){var t=e.onToggle,n=e.disabled,r=e.isOpen;return Object(u.createElement)(P.IconButton,{icon:"insert",label:Object(H.__)("Add block"),labelPosition:"bottom",onClick:t,className:"editor-inserter__toggle block-editor-inserter__toggle","aria-haspopup":"true","aria-expanded":r,disabled:n})},Vo=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).onToggle=e.onToggle.bind(Object(E.a)(e)),e.renderToggle=e.renderToggle.bind(Object(E.a)(e)),e.renderContent=e.renderContent.bind(Object(E.a)(e)),e}return Object(w.a)(t,e),Object(_.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?Uo: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,c=n.showInserterHelpPanel;return Object(u.createElement)(Ho,{onSelect:t,rootClientId:r,clientId:o,isAppender:i,showInserterHelpPanel:c})}},{key:"render",value:function(){var e=this.props.position;return Object(u.createElement)(P.Dropdown,{className:"editor-inserter block-editor-inserter",contentClassName:"editor-inserter__popover block-editor-inserter__popover",position:e,onToggle:this.onToggle,expandOnMobile:!0,headerTitle:Object(H.__)("Add a block"),renderToggle:this.renderToggle,renderContent:this.renderContent})}}]),t}(u.Component),zo=Object(b.compose)([Object(m.withSelect)((function(e,t){var n=t.rootClientId;return{hasItems:(0,e("core/block-editor").hasInserterItems)(n)}})),Object(b.ifCondition)((function(e){return e.hasItems}))])(Vo);var Ko=function(e){var t=e.rootClientId,n=e.className;return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(Ie,{rootClientId:t}),Object(u.createElement)(zo,{rootClientId:t,renderToggle:function(e){var t=e.onToggle,r=e.disabled,o=e.isOpen;return Object(u.createElement)(P.Button,{className:f()(n,"block-editor-button-block-appender"),onClick:t,"aria-expanded":o,disabled:r},Object(u.createElement)("span",{className:"screen-reader-text"},Object(H.__)("Add Block")),Object(u.createElement)(P.Icon,{icon:"insert"}))},isAppender:!0}))},Wo=Object(b.createHigherOrderComponent)(Object(m.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(p.isEmpty)(r)||!o}})),"withColorContext"),qo=Wo(P.ColorPalette);function Go(e){var t=e.tinyBackgroundColor,n=e.tinyTextColor,r=e.backgroundColor,o=e.textColor,i=t.getBrightness()=24?"large":"small"})?null:Object(u.createElement)(Go,{backgroundColor:t,textColor:c,tinyBackgroundColor:a,tinyTextColor:l})},Yo=n(41),Xo=n.n(Yo),Zo=Object(b.createHigherOrderComponent)((function(e){return q((function(e){return Object(p.pick)(e,["clientId"])}))(e)}),"withClientId"),Jo=Zo((function(e){var t=e.clientId;return Object(u.createElement)(Ko,{rootClientId:t})})),Qo=Object(b.compose)([Zo,Object(m.withSelect)((function(e,t){var n=t.clientId,r=(0,e("core/block-editor").getBlockOrder)(n);return{lastBlockClientId:Object(p.last)(r)}}))])((function(e){var t=e.clientId,n=e.lastBlockClientId;return Object(u.createElement)(uo,{childHandledEvents:["onFocus","onClick","onKeyDown"]},Object(u.createElement)(jo,{rootClientId:t,lastBlockClientId:n}))}));var ei=function(e){var t=e.options,n=e.onSelect,r=e.allowSkip,o=f()("block-editor-inner-blocks__template-picker",{"has-many-options":t.length>4}),i=r?Object(H.__)("Select a layout to start with, or make one yourself."):Object(H.__)("Select a layout to start with.");return Object(u.createElement)(P.Placeholder,{icon:"layout",label:Object(H.__)("Choose Layout"),instructions:i,className:o},Object(u.createElement)("ul",{className:"block-editor-inner-blocks__template-picker-options",role:"list"},t.map((function(e,t){return Object(u.createElement)("li",{key:t},Object(u.createElement)(P.IconButton,{isLarge:!0,icon:e.icon,onClick:function(){return n(e.template)},className:"block-editor-inner-blocks__template-picker-option",label:e.title}))}))),r&&Object(u.createElement)("div",{className:"block-editor-inner-blocks__template-picker-skip"},Object(u.createElement)(P.Button,{isLink:!0,onClick:function(){return n(void 0)}},Object(H.__)("Skip"))))},ti=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).state={templateInProcess:!!e.props.template},e.updateNestedSettings(),e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.templateLock;0!==e.block.innerBlocks.length&&"all"!==t||this.synchronizeBlocksWithTemplate(),this.state.templateInProcess&&this.setState({templateInProcess:!1})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.template,r=t.block,o=t.templateLock,i=r.innerBlocks;(this.updateNestedSettings(),0===i.length||"all"===o)&&(!Object(p.isEqual)(n,e.template)&&this.synchronizeBlocksWithTemplate())}},{key:"synchronizeBlocksWithTemplate",value:function(){var e=this.props,t=e.template,n=e.block,r=e.replaceInnerBlocks,o=n.innerBlocks,c=Object(i.synchronizeBlocksWithTemplate)(o,t);Object(p.isEqual)(c,o)||r(c)}},{key:"updateNestedSettings",value:function(){var e=this.props,t=e.blockListSettings,n=e.allowedBlocks,r=e.updateNestedSettings,o=e.templateLock,i=e.parentLock,c={allowedBlocks:n,templateLock:void 0===o?i:o};Xo()(t,c)||r(c)}},{key:"render",value:function(){var e=this.props,t=e.isSmallScreen,n=e.clientId,r=e.hasOverlay,o=e.renderAppender,i=e.template,c=e.__experimentalTemplateOptions,a=e.__experimentalOnSelectTemplateOption,l=e.__experimentalAllowTemplateOptionSkip,s=this.state.templateInProcess,d=null===i&&!!c,p=f()("editor-inner-blocks block-editor-inner-blocks",{"has-overlay":t&&r&&!d});return Object(u.createElement)("div",{className:p},!s&&(d?Object(u.createElement)(ei,{options:c,onSelect:a,allowSkip:l}):Object(u.createElement)(Co,{rootClientId:n,renderAppender:o})))}}]),t}(u.Component);(ti=Object(b.compose)([Object(a.withViewportMatch)({isSmallScreen:"< medium"}),q((function(e){return Object(p.pick)(e,["clientId"])})),Object(m.withSelect)((function(e,t){var n=e("core/block-editor"),r=n.isBlockSelected,o=n.hasSelectedInnerBlock,i=n.getBlock,c=n.getBlockListSettings,a=n.getBlockRootClientId,l=n.getTemplateLock,s=t.clientId,u=i(s),d=a(s);return{block:u,blockListSettings:c(s),hasOverlay:"core/template"!==u.name&&!r(s)&&!o(s,!0),parentLock:l(d)}})),Object(m.withDispatch)((function(e,t){var n=e("core/block-editor"),r=n.replaceInnerBlocks,o=n.updateBlockListSettings,i=t.block,c=t.clientId,a=t.templateInsertUpdatesSelection,l=void 0===a||a;return{replaceInnerBlocks:function(e){r(c,e,0===i.innerBlocks.length&&l)},updateNestedSettings:function(t){e(o(c,t))}}}))])(ti)).DefaultBlockAppender=Qo,ti.ButtonBlockAppender=Jo,ti.Content=Object(i.withBlockContentContext)((function(e){var t=e.BlockContent;return Object(u.createElement)(t,null)}));var ni=ti,ri=Object(P.createSlotFill)("InspectorAdvancedControls"),oi=ri.Fill,ii=ri.Slot,ci=G(oi);ci.Slot=ii;var ai=ci,li=Object(P.createSlotFill)("InspectorControls"),si=li.Fill,ui=li.Slot,di=G(si);di.Slot=ui;var fi=di,pi=Object(P.withFilters)("editor.MediaUpload")((function(){return null}));function bi(e){var t=e.url,n=e.urlLabel,r=e.className,o=f()(r,"block-editor-url-popover__link-viewer-url");return t?Object(u.createElement)(P.ExternalLink,{className:o,href:t},n||Object(Le.filterURLForDisplay)(Object(Le.safeDecodeURI)(t))):Object(u.createElement)("span",{className:o})}var hi=function(e){return e.stopPropagation()},mi=function(e){function t(e){var n,r=e.autocompleteRef;return Object(j.a)(this,t),(n=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).onChange=n.onChange.bind(Object(E.a)(n)),n.onKeyDown=n.onKeyDown.bind(Object(E.a)(n)),n.autocompleteRef=r||Object(u.createRef)(),n.inputRef=Object(u.createRef)(),n.updateSuggestions=Object(p.throttle)(n.updateSuggestions.bind(Object(E.a)(n)),200),n.suggestionNodes=[],n.state={suggestions:[],showSuggestions:!1,selectedSuggestion:null},n}return Object(w.a)(t,e),Object(_.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,xe()(this.suggestionNodes[r],this.autocompleteRef.current,{onlyScrollIfNeeded:!0}),this.props.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,n=this.props.fetchLinkSuggestions;if(n)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 r=n(e);r.then((function(e){t.suggestionsRequest===r&&(t.setState({suggestions:e,loading:!1}),e.length?t.props.debouncedSpeak(Object(H.sprintf)(Object(H._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(H.__)("No results."),"assertive"))})).catch((function(){t.suggestionsRequest===r&&t.setState({loading:!1})})),this.suggestionsRequest=r}}},{key:"onChange",value:function(e){var t=e.target.value;this.props.onChange(t),this.updateSuggestions(t)}},{key:"onKeyDown",value:function(e){var t=this.state,n=t.showSuggestions,r=t.selectedSuggestion,o=t.suggestions,i=t.loading;if(n&&o.length&&!i){var c=this.state.suggestions[this.state.selectedSuggestion];switch(e.keyCode){case he.UP:e.stopPropagation(),e.preventDefault();var a=r?r-1:o.length-1;this.setState({selectedSuggestion:a});break;case he.DOWN:e.stopPropagation(),e.preventDefault();var l=null===r||r===o.length-1?0:r+1;this.setState({selectedSuggestion:l});break;case he.TAB:null!==this.state.selectedSuggestion&&(this.selectLink(c),this.props.speak(Object(H.__)("Link selected.")));break;case he.ENTER:null!==this.state.selectedSuggestion&&(e.stopPropagation(),this.selectLink(c))}}else switch(e.keyCode){case he.UP:0!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(0,0));break;case he.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,l=t.id,s=t.isFullWidth,d=t.hasBorder,p=this.state,b=p.showSuggestions,h=p.suggestions,m=p.selectedSuggestion,v=p.loading,g="block-editor-url-input-suggestions-".concat(c),O="block-editor-url-input-suggestion-".concat(c);return Object(u.createElement)("div",{className:f()("editor-url-input block-editor-url-input",a,{"is-full-width":s,"has-border":d})},Object(u.createElement)("input",{id:l,autoFocus:i,type:"text","aria-label":Object(H.__)("URL"),required:!0,value:r,onChange:this.onChange,onInput:hi,placeholder:Object(H.__)("Paste URL or type to search"),onKeyDown:this.onKeyDown,role:"combobox","aria-expanded":b,"aria-autocomplete":"list","aria-owns":g,"aria-activedescendant":null!==m?"".concat(O,"-").concat(m):void 0,ref:this.inputRef}),v&&Object(u.createElement)(P.Spinner,null),b&&!!h.length&&Object(u.createElement)(P.Popover,{position:"bottom",noArrow:!0,focusOnMount:!1},Object(u.createElement)("div",{className:f()("editor-url-input__suggestions","block-editor-url-input__suggestions","".concat(a,"__suggestions")),id:g,ref:this.autocompleteRef,role:"listbox"},h.map((function(t,n){return Object(u.createElement)("button",{key:t.id,role:"option",tabIndex:"-1",id:"".concat(O,"-").concat(n),ref:e.bindSuggestionNode(n),className:f()("editor-url-input__suggestion block-editor-url-input__suggestion",{"is-selected":n===m}),onClick:function(){return e.handleOnClick(t)},"aria-selected":n===m},t.title)})))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.disableSuggestions,r=t.showSuggestions;return{showSuggestions:!0!==n&&r}}}]),t}(u.Component),vi=Object(b.compose)(b.withSafeTimeout,P.withSpokenMessages,b.withInstanceId,Object(m.withSelect)((function(e){return{fetchLinkSuggestions:(0,e("core/block-editor").getSettings)().__experimentalFetchLinkSuggestions}})))(mi);var gi=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).toggleSettingsVisibility=e.toggleSettingsVisibility.bind(Object(E.a)(e)),e.state={isSettingsExpanded:!1},e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"toggleSettingsVisibility",value:function(){this.setState({isSettingsExpanded:!this.state.isSettingsExpanded})}},{key:"render",value:function(){var e=this.props,t=e.additionalControls,n=e.children,r=e.renderSettings,o=e.position,i=void 0===o?"bottom center":o,c=e.focusOnMount,a=void 0===c?"firstElement":c,l=Object(Ae.a)(e,["additionalControls","children","renderSettings","position","focusOnMount"]),d=this.state.isSettingsExpanded,f=!!r&&d;return Object(u.createElement)(P.Popover,Object(s.a)({className:"editor-url-popover block-editor-url-popover",focusOnMount:a,position:i},l),Object(u.createElement)("div",{className:"block-editor-url-popover__input-container"},Object(u.createElement)("div",{className:"editor-url-popover__row block-editor-url-popover__row"},n,!!r&&Object(u.createElement)(P.IconButton,{className:"editor-url-popover__settings-toggle block-editor-url-popover__settings-toggle",icon:"arrow-down-alt2",label:Object(H.__)("Link settings"),onClick:this.toggleSettingsVisibility,"aria-expanded":d})),f&&Object(u.createElement)("div",{className:"editor-url-popover__row block-editor-url-popover__row editor-url-popover__settings block-editor-url-popover__settings"},r())),t&&!f&&Object(u.createElement)("div",{className:"block-editor-url-popover__additional-controls"},t))}}]),t}(u.Component);gi.LinkEditor=function(e){var t=e.autocompleteRef,n=e.className,r=e.onChangeInputValue,o=e.value,i=Object(Ae.a)(e,["autocompleteRef","className","onChangeInputValue","value"]);return Object(u.createElement)("form",Object(s.a)({className:f()("block-editor-url-popover__link-editor",n)},i),Object(u.createElement)(vi,{value:o,onChange:r,autocompleteRef:t}),Object(u.createElement)(P.IconButton,{icon:"editor-break",label:Object(H.__)("Apply"),type:"submit"}))},gi.LinkViewer=function(e){var t=e.className,n=e.linkClassName,r=e.onEditLinkClick,o=e.url,i=e.urlLabel,c=Object(Ae.a)(e,["className","linkClassName","onEditLinkClick","url","urlLabel"]);return Object(u.createElement)("div",Object(s.a)({className:f()("block-editor-url-popover__link-viewer",t)},c),Object(u.createElement)(bi,{url:o,urlLabel:i,className:n}),r&&Object(u.createElement)(P.IconButton,{icon:"edit",label:Object(H.__)("Edit"),onClick:r}))};var Oi=gi,ki=function(e){var t=e.src,n=e.onChange,r=e.onSubmit,o=e.onClose;return Object(u.createElement)(Oi,{onClose:o},Object(u.createElement)("form",{className:"editor-media-placeholder__url-input-form block-editor-media-placeholder__url-input-form",onSubmit:r},Object(u.createElement)("input",{className:"editor-media-placeholder__url-input-field block-editor-media-placeholder__url-input-field",type:"url","aria-label":Object(H.__)("URL"),placeholder:Object(H.__)("Paste or type URL"),onChange:n,value:t}),Object(u.createElement)(P.IconButton,{className:"editor-media-placeholder__url-input-submit-button block-editor-media-placeholder__url-input-submit-button",icon:"editor-break",label:Object(H.__)("Apply"),type:"submit"})))},yi=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).state={src:"",isURLInputVisible:!1},e.onChangeSrc=e.onChangeSrc.bind(Object(E.a)(e)),e.onSubmitSrc=e.onSubmitSrc.bind(Object(E.a)(e)),e.onUpload=e.onUpload.bind(Object(E.a)(e)),e.onFilesUpload=e.onFilesUpload.bind(Object(E.a)(e)),e.openURLInput=e.openURLInput.bind(Object(E.a)(e)),e.closeURLInput=e.closeURLInput.bind(Object(E.a)(e)),e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"onlyAllowsImages",value:function(){var e=this.props.allowedTypes;return!!e&&Object(p.every)(e,(function(e){return"image"===e||Object(p.startsWith)(e,"image/")}))}},{key:"componentDidMount",value:function(){this.setState({src:Object(p.get)(this.props.value,["src"],"")})}},{key:"componentDidUpdate",value:function(e){Object(p.get)(e.value,["src"],"")!==Object(p.get)(this.props.value,["src"],"")&&this.setState({src:Object(p.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,n=this.props,r=n.addToGallery,o=n.allowedTypes,i=n.mediaUpload,c=n.multiple,a=n.onError,l=n.onSelect,s=n.value;if(c)if(r){var u=void 0===s?[]:s;t=function(e){l(u.concat(e))}}else t=l;else t=function(e){var t=Object(Ne.a)(e,1)[0];return l(t)};i({allowedTypes:o,filesList:e,onFileChange:t,onError:a})}},{key:"openURLInput",value:function(){this.setState({isURLInputVisible:!0})}},{key:"closeURLInput",value:function(){this.setState({isURLInputVisible:!1})}},{key:"renderPlaceholder",value:function(e,t){var n=this.props,r=n.allowedTypes,o=void 0===r?[]:r,i=n.className,c=n.icon,a=n.isAppender,l=n.labels,s=void 0===l?{}:l,d=n.onDoubleClick,p=n.mediaPreview,b=n.notices,h=n.onSelectURL,m=n.mediaUpload,v=n.children,g=s.instructions,O=s.title;if(m||h||(g=Object(H.__)("To edit this block, you need permission to upload media.")),void 0===g||void 0===O){var k=1===o.length,y=k&&"audio"===o[0],j=k&&"image"===o[0],_=k&&"video"===o[0];void 0===g&&m&&(g=Object(H.__)("Upload a media file or pick one from your media library."),y?g=Object(H.__)("Upload an audio file, pick one from your media library, or add one with a URL."):j?g=Object(H.__)("Upload an image file, pick one from your media library, or add one with a URL."):_&&(g=Object(H.__)("Upload a video file, pick one from your media library, or add one with a URL."))),void 0===O&&(O=Object(H.__)("Media"),y?O=Object(H.__)("Audio"):j?O=Object(H.__)("Image"):_&&(O=Object(H.__)("Video")))}var S=f()("block-editor-media-placeholder","editor-media-placeholder",i,{"is-appender":a});return Object(u.createElement)(P.Placeholder,{icon:c,label:O,instructions:g,className:S,notices:b,onClick:t,onDoubleClick:d,preview:p},e,v)}},{key:"renderDropZone",value:function(){var e=this.props,t=e.disableDropZone,n=e.onHTMLDrop,r=void 0===n?p.noop:n;return t?null:Object(u.createElement)(P.DropZone,{onFilesDrop:this.onFilesUpload,onHTMLDrop:r})}},{key:"renderCancelLink",value:function(){var e=this.props.onCancel;return e&&Object(u.createElement)(P.Button,{className:"block-editor-media-placeholder__cancel-button",title:Object(H.__)("Cancel"),isLink:!0,onClick:e},Object(H.__)("Cancel"))}},{key:"renderUrlSelectionUI",value:function(){if(!this.props.onSelectURL)return null;var e=this.state,t=e.isURLInputVisible,n=e.src;return Object(u.createElement)("div",{className:"editor-media-placeholder__url-input-container block-editor-media-placeholder__url-input-container"},Object(u.createElement)(P.Button,{className:"editor-media-placeholder__button block-editor-media-placeholder__button",onClick:this.openURLInput,isToggled:t,isLarge:!0},Object(H.__)("Insert from URL")),t&&Object(u.createElement)(ki,{src:n,onChange:this.onChangeSrc,onSubmit:this.onSubmitSrc,onClose:this.closeURLInput}))}},{key:"renderMediaUploadChecked",value:function(){var e=this,t=this.props,n=t.accept,r=t.addToGallery,o=t.allowedTypes,i=void 0===o?[]:o,c=t.isAppender,a=t.mediaUpload,l=t.multiple,s=void 0!==l&&l,d=t.onSelect,b=t.value,h=void 0===b?{}:b,m=Object(u.createElement)(pi,{addToGallery:r,gallery:s&&this.onlyAllowsImages(),multiple:s,onSelect:d,allowedTypes:i,value:Object(p.isArray)(h)?h.map((function(e){return e.id})):h.id,render:function(e){var t=e.open;return Object(u.createElement)(P.Button,{isLarge:!0,className:f()("editor-media-placeholder__button","editor-media-placeholder__media-library-button"),onClick:function(e){e.stopPropagation(),t()}},Object(H.__)("Media Library"))}});if(a&&c)return Object(u.createElement)(u.Fragment,null,this.renderDropZone(),Object(u.createElement)(P.FormFileUpload,{onChange:this.onUpload,accept:n,multiple:s,render:function(t){var n=t.openFileDialog,r=Object(u.createElement)(u.Fragment,null,Object(u.createElement)(P.IconButton,{isLarge:!0,className:f()("block-editor-media-placeholder__button","editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),icon:"upload"},Object(H.__)("Upload")),m,e.renderUrlSelectionUI(),e.renderCancelLink());return e.renderPlaceholder(r,n)}}));if(a){var v=Object(u.createElement)(u.Fragment,null,this.renderDropZone(),Object(u.createElement)(P.FormFileUpload,{isLarge:!0,className:f()("block-editor-media-placeholder__button","editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onChange:this.onUpload,accept:n,multiple:s},Object(H.__)("Upload")),m,this.renderUrlSelectionUI(),this.renderCancelLink());return this.renderPlaceholder(v)}return this.renderPlaceholder(m)}},{key:"render",value:function(){return this.props.dropZoneUIOnly?Object(u.createElement)(Ee,null,this.renderDropZone()):Object(u.createElement)(Ee,{fallback:this.renderPlaceholder(this.renderUrlSelectionUI())},this.renderMediaUploadChecked())}}]),t}(u.Component),ji=Object(m.withSelect)((function(e){return{mediaUpload:(0,e("core/block-editor").getSettings)().__experimentalMediaUpload}})),_i=Object(b.compose)(ji,Object(P.withFilters)("editor.MediaPlaceholder"))(yi),Si=Object(H.__)("(current %s: %s)");var Ci=Object(b.compose)([Wo,Object(b.ifCondition)((function(e){return e.hasColorsToChoose}))])((function(e){var t=e.colors,n=e.disableCustomColors,r=e.label,o=e.onChange,i=e.value,c=k(t,i),a=c&&c.name,l=Object(H.sprintf)(Si,r.toLowerCase(),a||i);return Object(u.createElement)(P.BaseControl,{className:"editor-color-palette-control block-editor-color-palette-control"},Object(u.createElement)(P.BaseControl.VisualLabel,null,r,i&&Object(u.createElement)(P.ColorIndicator,{colorValue:i,"aria-label":l})),Object(u.createElement)(qo,Object(s.a)({className:"editor-color-palette-control__color-palette block-editor-color-palette-control__color-palette",value:i,onChange:o},{colors:t,disableCustomColors:n})))})),Ei=function(e,t){return void 0!==t.disableCustomColors?t.disableCustomColors:e},wi=Object(H.__)("(%s: %s)"),Ii=Object(b.ifCondition)((function(e){var t=e.colors,n=e.disableCustomColors,r=e.colorSettings;return Object(p.some)(r,(function(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return!Ei(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(Ae.a)(e,["children","colors","colorSettings","disableCustomColors","title"]),a=Object(u.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 r=e.value,o=e.label,i=e.colors;if(!r)return null;var c=k(i||t,r),a=c&&c.name,l=Object(H.sprintf)(wi,o.toLowerCase(),a||r);return Object(u.createElement)(P.ColorIndicator,{key:n,colorValue:r,"aria-label":l})}))}(r,n));return Object(u.createElement)(P.PanelBody,Object(s.a)({className:"editor-panel-color-settings block-editor-panel-color-settings",title:a},c),r.map((function(e,t){return Object(u.createElement)(Ci,Object(s.a)({key:t},Object(l.a)({colors:n,disableCustomColors:o},e)))})),t)})),Bi=Wo(Ii),Ti=Object(u.forwardRef)((function(e,t){var n=e.onChange,r=e.className,o=Object(Ae.a)(e,["onChange","className"]);return Object(u.createElement)(Zr.a,Object(s.a)({ref:t,className:f()("editor-plain-text block-editor-plain-text",r),onChange:function(e){return n(e.target.value)}},o))})),xi=n(35),Li=n(37),Ni=n.n(Li),Ai={position:"bottom left"},Mi=function(){return Object(u.createElement)("div",{className:"editor-format-toolbar block-editor-format-toolbar"},Object(u.createElement)(P.Toolbar,null,["bold","italic","link"].map((function(e){return Object(u.createElement)(P.Slot,{name:"RichText.ToolbarControls.".concat(e),key:e})})),Object(u.createElement)(P.Slot,{name:"RichText.ToolbarControls"},(function(e){return 0!==e.length&&Object(u.createElement)(P.DropdownMenu,{icon:!1,label:Object(H.__)("More rich text controls"),controls:Object(p.orderBy)(e.map((function(e){return Object(Ne.a)(e,1)[0].props})),"title"),popoverProps:Ai})}))))},Ri=[he.rawShortcut.primary("z"),he.rawShortcut.primaryShift("z"),he.rawShortcut.primary("y")],Pi=Object(u.createElement)(P.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(p.fromPairs)(Ri.map((function(e){return[e,function(e){return e.preventDefault()}]})))}),Di=function(){return Pi},Fi=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).onUse=e.onUse.bind(Object(E.a)(e)),e}return Object(w.a)(t,e),Object(_.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(u.createElement)(P.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(I.a)({},he.rawShortcut[n](t),this.onUse)})}}]),t}(u.Component);function Hi(e){var t,n=e.name,r=e.shortcutType,o=e.shortcutCharacter,i=Object(Ae.a)(e,["name","shortcutType","shortcutCharacter"]),c="RichText.ToolbarControls";return n&&(c+=".".concat(n)),r&&o&&(t=he.displayShortcut[r](o)),Object(u.createElement)(P.Fill,{name:c},Object(u.createElement)(P.ToolbarButton,Object(s.a)({},i,{shortcut:t})))}var Ui=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).onInput=e.onInput.bind(Object(E.a)(e)),e}return Object(w.a)(t,e),Object(_.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}(u.Component),Vi=window.requestIdleCallback||function(e){window.setTimeout(e,100)};function zi(e){if(!0===e||"p"===e||"li"===e)return!0===e?"p":e}var Ki=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).onEnter=e.onEnter.bind(Object(E.a)(e)),e.onSplit=e.onSplit.bind(Object(E.a)(e)),e.onPaste=e.onPaste.bind(Object(E.a)(e)),e.onDelete=e.onDelete.bind(Object(E.a)(e)),e.inputRule=e.inputRule.bind(Object(E.a)(e)),e.markAutomaticChange=e.markAutomaticChange.bind(Object(E.a)(e)),e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"onEnter",value:function(e){var t=e.value,n=e.onChange,r=e.shiftKey,o=this.props,a=o.onReplace,l=o.onSplit,s=o.multiline,u=a&&l;if(a){var d=Object(i.getBlockTransforms)("from").filter((function(e){return"enter"===e.type})),f=Object(i.findTransform)(d,(function(e){return e.regExp.test(t.text)}));f&&(a([f.transform({content:t.text})]),this.markAutomaticChange())}s?r?n(Object(c.insert)(t,"\n")):u&&Object(c.__unstableIsEmptyLine)(t)?this.onSplit(t):n(Object(c.__unstableInsertLineSeparator)(t)):r||!u?n(Object(c.insert)(t,"\n")):this.onSplit(t)}},{key:"onDelete",value:function(e){var t=e.value,n=e.isReverse,r=this.props,o=r.onMerge,i=r.onRemove;o&&o(!n),i&&Object(c.isEmpty)(t)&&n&&i(!n)}},{key:"onPaste",value:function(e){var t=e.value,n=e.onChange,r=e.html,o=e.plainText,a=e.image,l=this.props,s=l.onReplace,u=l.onSplit,d=l.tagName,f=l.canUserUseUnfilteredHTML,p=l.multiline,b=l.__unstableEmbedURLOnPaste;if(a&&!r){var h=a.getAsFile?a.getAsFile():a,m=Object(i.pasteHandler)({HTML:''),mode:"BLOCKS",tagName:d});return window.console.log("Received item:\n\n",h),void(s&&Object(c.isEmpty)(t)?s(m):this.onSplit(t,m))}var v=s&&u?"AUTO":"INLINE";b&&Object(c.isEmpty)(t)&&Object(Le.isURL)(o.trim())&&(v="BLOCKS");var g=Object(i.pasteHandler)({HTML:r,plainText:o,mode:v,tagName:d,canUserUseUnfilteredHTML:f});if("string"==typeof g){var O=Object(c.create)({html:g});p&&(O=Object(c.replace)(O,/\n+/g,c.__UNSTABLE_LINE_SEPARATOR)),n(Object(c.insert)(t,O))}else g.length>0&&(s&&Object(c.isEmpty)(t)?s(g):this.onSplit(t,g))}},{key:"onSplit",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=this.props,r=n.onReplace,o=n.onSplit,i=n.__unstableOnSplitMiddle,a=n.multiline;if(r&&o){var l=[],s=Object(c.split)(e),u=Object(Ne.a)(s,2),d=u[0],f=u[1],p=t.length>0,b=zi(a);p&&Object(c.isEmpty)(d)||l.push(o(Object(c.toHTMLString)({value:d,multilineTag:b}))),p?l.push.apply(l,Object(Be.a)(t)):i&&l.push(i()),!p&&i&&Object(c.isEmpty)(f)||l.push(o(Object(c.toHTMLString)({value:f,multilineTag:b})));var h=p?l.length-1:1;r(l,h)}}},{key:"inputRule",value:function(e,t){var n=this.props.onReplace;if(n){var r=e.start,o=e.text;if(" "===o.slice(r-1,r)){var a=o.slice(0,r).trim(),l=Object(i.getBlockTransforms)("from").filter((function(e){return"prefix"===e.type})),s=Object(i.findTransform)(l,(function(e){var t=e.prefix;return a===t}));if(s){var u=t(Object(c.slice)(e,r,o.length));n([s.transform(u)]),this.markAutomaticChange()}}}}},{key:"getAllowedFormats",value:function(){var e=this.props,t=e.allowedFormats,n=e.formattingControls;if(t||n)return t||(Ni()("wp.blockEditor.RichText formattingControls prop",{alternative:"allowedFormats"}),n.map((function(e){return"core/".concat(e)})))}},{key:"markAutomaticChange",value:function(){var e=this;Vi((function(){e.props.markAutomaticChange()}))}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.tagName,r=e.value,o=e.onChange,a=e.selectionStart,l=e.selectionEnd,d=e.onSelectionChange,p=e.multiline,b=e.inlineToolbar,h=e.wrapperClassName,m=e.className,v=e.autocompleters,g=e.onReplace,O=e.isCaretWithinFormattedText,k=e.onEnterFormattedText,y=e.onExitFormattedText,j=e.isSelected,_=e.onCreateUndoLevel,S=(e.markAutomaticChange,e.didAutomaticChange),C=e.undo,E=e.placeholder,w=e.keepPlaceholderOnFocus,I=(e.allowedFormats,e.withoutInteractiveFormatting),B=(e.onRemove,e.onMerge,e.onSplit,e.canUserUseUnfilteredHTML,e.clientId,e.identifier,e.instanceId,e.start),T=e.reversed,x=Object(Ae.a)(e,["children","tagName","value","onChange","selectionStart","selectionEnd","onSelectionChange","multiline","inlineToolbar","wrapperClassName","className","autocompleters","onReplace","isCaretWithinFormattedText","onEnterFormattedText","onExitFormattedText","isSelected","onCreateUndoLevel","markAutomaticChange","didAutomaticChange","undo","placeholder","keepPlaceholderOnFocus","allowedFormats","withoutInteractiveFormatting","onRemove","onMerge","onSplit","canUserUseUnfilteredHTML","clientId","identifier","instanceId","start","reversed"]),L=zi(p),N=this.getAllowedFormats(),A=!N||N.length>0,M=r,R=o;Array.isArray(r)&&(M=i.children.toHTML(r),R=function(e){return o(i.children.fromDOM(Object(c.__unstableCreateElement)(document,e).childNodes))});var D=Object(u.createElement)(c.__experimentalRichText,Object(s.a)({},x,{value:M,onChange:R,selectionStart:a,selectionEnd:l,onSelectionChange:d,tagName:n,className:f()("editor-rich-text__editable block-editor-rich-text__editable",m,{"is-selected":j,"keep-placeholder-on-focus":w}),placeholder:E,allowedFormats:N,withoutInteractiveFormatting:I,onEnter:this.onEnter,onDelete:this.onDelete,onPaste:this.onPaste,__unstableIsSelected:j,__unstableInputRule:this.inputRule,__unstableMultilineTag:L,__unstableIsCaretWithinFormattedText:O,__unstableOnEnterFormattedText:k,__unstableOnExitFormattedText:y,__unstableOnCreateUndoLevel:_,__unstableMarkAutomaticChange:this.markAutomaticChange,__unstableDidAutomaticChange:S,__unstableUndo:C}),(function(e){var n=e.isSelected,r=e.value,o=e.onChange,i=e.Editable;return Object(u.createElement)(u.Fragment,null,t&&t({value:r,onChange:o}),n&&!b&&A&&Object(u.createElement)(pe,null,Object(u.createElement)(Mi,null)),n&&b&&A&&Object(u.createElement)(P.IsolatedEventContainer,{className:"editor-rich-text__inline-toolbar block-editor-rich-text__inline-toolbar"},Object(u.createElement)(Mi,null)),n&&Object(u.createElement)(Di,null),Object(u.createElement)($,{onReplace:g,completers:v,record:r,onChange:o,isSelected:n},(function(e){var t=e.listBoxId,n=e.activeId,r=e.onKeyDown;return Object(u.createElement)(i,{"aria-autocomplete":t?"list":void 0,"aria-owns":t,"aria-activedescendant":n,start:B,reversed:T,onKeyDown:r})})))}));return Object(u.createElement)("div",{className:f()("editor-rich-text block-editor-rich-text",h)},D)}}]),t}(u.Component),Wi=Object(b.compose)([b.withInstanceId,q((function(e){return{clientId:e.clientId}})),Object(m.withSelect)((function(e,t){var n=t.clientId,r=t.instanceId,o=t.identifier,i=void 0===o?r:o,c=t.isSelected,a=e("core/block-editor"),l=a.isCaretWithinFormattedText,s=a.getSelectionStart,u=a.getSelectionEnd,d=a.getSettings,f=a.didAutomaticChange,p=s(),b=u(),h=d().__experimentalCanUserUseUnfilteredHTML;return void 0===c?c=p.clientId===n&&p.attributeKey===i:c&&(c=p.clientId===n),{canUserUseUnfilteredHTML:h,isCaretWithinFormattedText:l(),selectionStart:c?p.offset:void 0,selectionEnd:c?b.offset:void 0,isSelected:c,didAutomaticChange:f()}})),Object(m.withDispatch)((function(e,t){var n=t.clientId,r=t.instanceId,o=t.identifier,i=void 0===o?r:o,c=e("core/block-editor"),a=c.__unstableMarkLastChangeAsPersistent,l=c.enterFormattedText,s=c.exitFormattedText,u=c.selectionChange;return{onCreateUndoLevel:a,onEnterFormattedText:l,onExitFormattedText:s,onSelectionChange:function(e,t){u(n,i,e,t)},markAutomaticChange:c.__unstableMarkAutomaticChange,undo:e("core/editor").undo}})),Object(P.withFilters)("experimentalRichText")])(Ki);Wi.Content=function(e){var t=e.value,n=e.tagName,r=e.multiline,o=Object(Ae.a)(e,["value","tagName","multiline"]);Array.isArray(t)&&(t=i.children.toHTML(t));var c=zi(r);!t&&c&&(t="<".concat(c,">"));var a=Object(u.createElement)(u.RawHTML,null,t);return n?Object(u.createElement)(n,Object(p.omit)(o,["format"]),a):a},Wi.isEmpty=function(e){return!e||0===e.length},Wi.Content.defaultProps={format:"string",value:""};var qi=Wi,Gi=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).toggle=e.toggle.bind(Object(E.a)(e)),e.submitLink=e.submitLink.bind(Object(E.a)(e)),e.state={expanded:!1},e}return Object(w.a)(t,e),Object(_.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(H.__)("Edit link"):Object(H.__)("Insert link");return Object(u.createElement)("div",{className:"editor-url-input__button block-editor-url-input__button"},Object(u.createElement)(P.IconButton,{icon:"admin-links",label:o,onClick:this.toggle,className:f()("components-toolbar__control",{"is-active":t})}),r&&Object(u.createElement)("form",{className:"editor-url-input__button-modal block-editor-url-input__button-modal",onSubmit:this.submitLink},Object(u.createElement)("div",{className:"editor-url-input__button-modal-line block-editor-url-input__button-modal-line"},Object(u.createElement)(P.IconButton,{className:"editor-url-input__back block-editor-url-input__back",icon:"arrow-left-alt",label:Object(H.__)("Close"),onClick:this.toggle}),Object(u.createElement)(vi,{value:t||"",onChange:n}),Object(u.createElement)(P.IconButton,{icon:"editor-break",label:Object(H.__)("Submit"),type:"submit"}))))}}]),t}(u.Component),$i=Object(P.createSlotFill)("__experimentalBlockSettingsMenuFirstItem"),Yi=$i.Fill,Xi=$i.Slot;Yi.Slot=Xi;var Zi=Yi,Ji=Object(P.createSlotFill)("__experimentalBlockSettingsMenuPluginsExtension"),Qi=Ji.Fill,ec=Ji.Slot;Qi.Slot=ec;var tc=Qi;var nc=Object(b.compose)([Object(m.withSelect)((function(e,t){var n=e("core/block-editor"),r=n.canInsertBlockType,o=n.getBlockRootClientId,c=n.getBlocksByClientId,a=n.getTemplateLock,l=e("core/blocks").getDefaultBlockName,s=c(t.clientIds),u=o(t.clientIds[0]);return{blocks:s,canDuplicate:Object(p.every)(s,(function(e){return!!e&&Object(i.hasBlockSupport)(e.name,"multiple",!0)&&r(e.name,u)})),canInsertDefaultBlock:r(l(),u),extraProps:t,isLocked:!!a(u),rootClientId:u}})),Object(m.withDispatch)((function(e,t,n){var r=n.select,o=t.clientIds,c=t.rootClientId,a=t.blocks,l=t.isLocked,s=t.canDuplicate,u=e("core/block-editor"),d=u.insertBlocks,f=u.multiSelect,b=u.removeBlocks,h=u.insertDefaultBlock,m=u.replaceBlocks;return{onDuplicate:function(){if(s){var e=(0,r("core/block-editor").getBlockIndex)(Object(p.last)(Object(p.castArray)(o)),c),t=a.map((function(e){return Object(i.cloneBlock)(e)}));d(t,e+1,c),t.length>1&&f(Object(p.first)(t).clientId,Object(p.last)(t).clientId)}},onRemove:function(){l||b(o)},onInsertBefore:function(){if(!l){var e=(0,r("core/block-editor").getBlockIndex)(Object(p.first)(Object(p.castArray)(o)),c);h({},c,e)}},onInsertAfter:function(){if(!l){var e=(0,r("core/block-editor").getBlockIndex)(Object(p.last)(Object(p.castArray)(o)),c);h({},c,e+1)}},onGroup:function(){if(a.length){var e=(0,r("core/blocks").getGroupingBlockName)(),t=Object(i.switchToBlockType)(a,e);t&&m(o,t)}},onUngroup:function(){if(a.length){var e=a[0].innerBlocks;e.length&&m(o,e)}}}}))])((function(e){var t=e.canDuplicate,n=e.canInsertDefaultBlock;return(0,e.children)({canDuplicate:t,canInsertDefaultBlock:n,isLocked:e.isLocked,onDuplicate:e.onDuplicate,onGroup:e.onGroup,onInsertAfter:e.onInsertAfter,onInsertBefore:e.onInsertBefore,onRemove:e.onRemove,onUngroup:e.onUngroup})})),rc=function(e){return e.preventDefault(),e},oc={duplicate:{raw:he.rawShortcut.primaryShift("d"),display:he.displayShortcut.primaryShift("d")},removeBlock:{raw:he.rawShortcut.access("z"),display:he.displayShortcut.access("z")},insertBefore:{raw:he.rawShortcut.primaryAlt("t"),display:he.displayShortcut.primaryAlt("t")},insertAfter:{raw:he.rawShortcut.primaryAlt("y"),display:he.displayShortcut.primaryAlt("y")}},ic=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).selectAll=e.selectAll.bind(Object(E.a)(e)),e.deleteSelectedBlocks=e.deleteSelectedBlocks.bind(Object(E.a)(e)),e.clearMultiSelection=e.clearMultiSelection.bind(Object(E.a)(e)),e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"selectAll",value:function(e){var t=this.props,n=t.rootBlocksClientIds,r=t.onMultiSelect;e.preventDefault(),r(Object(p.first)(n),Object(p.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(u.createElement)(u.Fragment,null,Object(u.createElement)(P.KeyboardShortcuts,{shortcuts:(e={},Object(I.a)(e,he.rawShortcut.primary("a"),this.selectAll),Object(I.a)(e,"backspace",this.deleteSelectedBlocks),Object(I.a)(e,"del",this.deleteSelectedBlocks),Object(I.a)(e,"escape",this.clearMultiSelection),e)}),t.length>0&&Object(u.createElement)(nc,{clientIds:t},(function(e){var t,n=e.onDuplicate,r=e.onRemove,o=e.onInsertAfter,i=e.onInsertBefore;return Object(u.createElement)(P.KeyboardShortcuts,{bindGlobal:!0,shortcuts:(t={},Object(I.a)(t,oc.duplicate.raw,Object(p.flow)(rc,n)),Object(I.a)(t,oc.removeBlock.raw,Object(p.flow)(rc,r)),Object(I.a)(t,oc.insertBefore.raw,Object(p.flow)(rc,i)),Object(I.a)(t,oc.insertAfter.raw,Object(p.flow)(rc,o)),t)})})))}}]),t}(u.Component),cc=Object(b.compose)([Object(m.withSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockOrder,r=t.getSelectedBlockClientIds,o=t.hasMultiSelection,i=t.getBlockRootClientId,c=t.getTemplateLock,a=r();return{rootBlocksClientIds:n(),hasMultiSelection:o(),isLocked:Object(p.some)(a,(function(e){return!!c(i(e))})),selectedBlockClientIds:a}})),Object(m.withDispatch)((function(e){var t=e("core/block-editor");return{clearSelectedBlock:t.clearSelectedBlock,onMultiSelect:t.multiSelect,onRemove:t.removeBlocks}}))])(ic),ac=Object(m.withSelect)((function(e){return{selectedBlockClientId:e("core/block-editor").getBlockSelectionStart()}}))((function(e){var t=e.selectedBlockClientId;return t&&Object(u.createElement)(P.Button,{isDefault:!0,type:"button",className:"editor-skip-to-selected-block block-editor-skip-to-selected-block",onClick:function(){po(t).closest(".block-editor-block-list__block").focus()}},Object(H.__)("Skip to the selected block"))})),lc=n(143),sc=n.n(lc);function uc(e,t,n){var r=new sc.a(e);return t&&r.remove("is-style-"+t.name),r.add("is-style-"+n.name),r.value}var dc=Object(b.compose)([Object(m.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock,o=e("core/blocks").getBlockStyles,c=r(n),a=Object(i.getBlockType)(c.name);return{block:c,className:c.attributes.className||"",styles:o(c.name),type:a}})),Object(m.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.type,c=e.block,a=e.onSwitch,s=void 0===a?p.noop:a,d=e.onHoverClassName,b=void 0===d?p.noop:d;if(!t||0===t.length)return null;o.styles||Object(p.find)(t,"isDefault")||(t=[{name:"default",label:Object(H._x)("Default","block style"),isDefault:!0}].concat(Object(Be.a)(t)));var h=function(e,t){var n=!0,r=!1,o=void 0;try{for(var i,c=new sc.a(t).values()[Symbol.iterator]();!(n=(i=c.next()).done);n=!0){var a=i.value;if(-1!==a.indexOf("is-style-")){var l=a.substring(9),s=Object(p.find)(e,{name:l});if(s)return s}}}catch(e){r=!0,o=e}finally{try{n||null==c.return||c.return()}finally{if(r)throw o}}return Object(p.find)(e,"isDefault")}(t,n);function m(e){var t=uc(n,h,e);r(t),b(null),s()}return Object(u.createElement)("div",{className:"editor-block-styles block-editor-block-styles"},t.map((function(e){var t=uc(n,h,e);return Object(u.createElement)("div",{key:e.name,className:f()("editor-block-styles__item block-editor-block-styles__item",{"is-active":h===e}),onClick:function(){return m(e)},onKeyDown:function(t){he.ENTER!==t.keyCode&&he.SPACE!==t.keyCode||(t.preventDefault(),m(e))},onMouseEnter:function(){return b(t)},onMouseLeave:function(){return b(null)},role:"button",tabIndex:"0","aria-label":e.label||e.name},Object(u.createElement)("div",{className:"editor-block-styles__item-preview block-editor-block-styles__item-preview"},Object(u.createElement)(wo,{viewportWidth:500,blocks:o.example?Object(i.getBlockFromExample)(c.name,{attributes:Object(l.a)({},o.example.attributes,{className:t}),innerBlocks:o.example.innerBlocks}):Object(i.cloneBlock)(c,{className:t})})),Object(u.createElement)("div",{className:"editor-block-styles__item-label block-editor-block-styles__item-label"},e.label||e.name))})))})),fc=n(97);var pc=Object(m.withSelect)((function(e){return{blocks:(0,e("core/block-editor").getMultiSelectedBlocks)()}}))((function(e){var t=e.blocks,n=Object(fc.count)(Object(i.serialize)(t),"words");return Object(u.createElement)("div",{className:"editor-multi-selection-inspector__card block-editor-multi-selection-inspector__card"},Object(u.createElement)(be,{icon:Object(u.createElement)(P.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(P.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(u.createElement)("div",{className:"editor-multi-selection-inspector__card-content block-editor-multi-selection-inspector__card-content"},Object(u.createElement)("div",{className:"editor-multi-selection-inspector__card-title block-editor-multi-selection-inspector__card-title"},Object(H.sprintf)(Object(H._n)("%d block","%d blocks",t.length),t.length)),Object(u.createElement)("div",{className:"editor-multi-selection-inspector__card-description block-editor-multi-selection-inspector__card-description"},Object(H.sprintf)(Object(H._n)("%d word","%d words",n),n))))}));function bc(e){var t=e.blockName,n=Object(m.useSelect)((function(e){var n=e("core/block-editor").getSettings().__experimentalPreferredStyleVariations;return{preferredStyle:Object(p.get)(n,["value",t]),onUpdatePreferredStyleVariations:Object(p.get)(n,["onChange"],null),styles:e("core/blocks").getBlockStyles(t)}}),[t]),r=n.preferredStyle,o=n.onUpdatePreferredStyleVariations,i=n.styles,c=Object(u.useMemo)((function(){return[{label:Object(H.__)("Not set"),value:""}].concat(Object(Be.a)(i.map((function(e){return{label:e.label,value:e.name}}))))}),[i]),a=Object(u.useCallback)((function(e){o(t,e)}),[t,o]);return o&&Object(u.createElement)(P.SelectControl,{options:c,value:r||"",label:Object(H.__)("Default Style"),onChange:a})}var hc=Object(m.withSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getSelectedBlockCount,o=t.getBlockName,c=e("core/blocks").getBlockStyles,a=n(),l=a&&o(a),s=a&&Object(i.getBlockType)(l),u=a&&c(l);return{count:r(),hasBlockStyles:u&&u.length>0,selectedBlockName:l,selectedBlockClientId:a,blockType:s}}))((function(e){var t=e.blockType,n=e.count,r=e.hasBlockStyles,o=e.selectedBlockClientId,c=e.selectedBlockName,a=e.showNoBlockSelectedMessage,l=void 0===a||a;if(n>1)return Object(u.createElement)(pc,null);var s=c===Object(i.getUnregisteredTypeHandlerName)();return t&&o&&!s?Object(u.createElement)(u.Fragment,null,Object(u.createElement)(To,{blockType:t}),r&&Object(u.createElement)("div",null,Object(u.createElement)(P.PanelBody,{title:Object(H.__)("Styles"),initialOpen:!1},Object(u.createElement)(dc,{clientId:o}),Object(u.createElement)(bc,{blockName:t.name}))),Object(u.createElement)("div",null,Object(u.createElement)(fi.Slot,null)),Object(u.createElement)("div",null,Object(u.createElement)(ai.Slot,null,(function(e){return!Object(p.isEmpty)(e)&&Object(u.createElement)(P.PanelBody,{className:"editor-block-inspector__advanced block-editor-block-inspector__advanced",title:Object(H.__)("Advanced"),initialOpen:!1},e)}))),Object(u.createElement)(ac,{key:"back"})):l?Object(u.createElement)("span",{className:"editor-block-inspector__no-blocks block-editor-block-inspector__no-blocks"},Object(H.__)("No block selected.")):null})),mc=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).bindContainer=e.bindContainer.bind(Object(E.a)(e)),e.clearSelectionIfFocusTarget=e.clearSelectionIfFocusTarget.bind(Object(E.a)(e)),e}return Object(w.a)(t,e),Object(_.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(u.createElement)("div",Object(s.a)({tabIndex:-1,onFocus:this.clearSelectionIfFocusTarget,ref:this.bindContainer},Object(p.omit)(this.props,["clearSelectedBlock","hasSelectedBlock","hasMultiSelection"])))}}]),t}(u.Component),vc=Object(b.compose)([Object(m.withSelect)((function(e){var t=e("core/block-editor"),n=t.hasSelectedBlock,r=t.hasMultiSelection;return{hasSelectedBlock:n(),hasMultiSelection:r()}})),Object(m.withDispatch)((function(e){return{clearSelectedBlock:e("core/block-editor").clearSelectedBlock}}))])(mc);var gc=Object(b.compose)([Object(m.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor"),o=r.getBlock,c=r.getBlockMode,a=r.getSettings,l=o(n),s=a().codeEditingEnabled;return{mode:c(n),blockType:l?Object(i.getBlockType)(l.name):null,isCodeEditingEnabled:s}})),Object(m.withDispatch)((function(e,t){var n=t.onToggle,r=void 0===n?p.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,c=void 0!==o&&o,a=e.isCodeEditingEnabled,l=void 0===a||a;if(!Object(i.hasBlockSupport)(t,"html",!0)||!l)return null;var s="visual"===n?Object(H.__)("Edit as HTML"):Object(H.__)("Edit visually");return Object(u.createElement)(P.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:r,icon:"html"},!c&&s)}));function Oc(e){var t=e.shouldRender,n=e.onClick,r=e.small;if(!t)return null;var o=Object(H.__)("Convert to Blocks");return Object(u.createElement)(P.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:n,icon:"screenoptions"},!r&&o)}var kc=Object(b.compose)(Object(m.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(m.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)}))}}})))(Oc),yc=Object(b.compose)(Object(m.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock(n);return{block:r,shouldRender:r&&r.name===Object(i.getFreeformContentHandlerName)()}})),Object(m.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)}))}}})))(Oc),jc={className:"block-editor-block-settings-menu__popover editor-block-settings-menu__popover",position:"bottom right"};var _c=function(e){var t=e.clientIds,n=Object(p.castArray)(t),r=n.length,o=n[0];return Object(u.createElement)(nc,{clientIds:t},(function(e){var n=e.canDuplicate,i=e.canInsertDefaultBlock,c=e.isLocked,a=e.onDuplicate,l=e.onInsertAfter,s=e.onInsertBefore,d=e.onRemove;return Object(u.createElement)(P.Toolbar,null,Object(u.createElement)(P.DropdownMenu,{icon:"ellipsis",label:Object(H.__)("More options"),className:"block-editor-block-settings-menu",popoverProps:jc},(function(e){var f=e.onClose;return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(P.MenuGroup,null,Object(u.createElement)(Zi.Slot,{fillProps:{onClose:f}}),1===r&&Object(u.createElement)(yc,{clientId:o}),1===r&&Object(u.createElement)(kc,{clientId:o}),n&&Object(u.createElement)(P.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:Object(p.flow)(f,a),icon:"admin-page",shortcut:oc.duplicate.display},Object(H.__)("Duplicate")),i&&Object(u.createElement)(u.Fragment,null,Object(u.createElement)(P.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:Object(p.flow)(f,s),icon:"insert-before",shortcut:oc.insertBefore.display},Object(H.__)("Insert Before")),Object(u.createElement)(P.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:Object(p.flow)(f,l),icon:"insert-after",shortcut:oc.insertAfter.display},Object(H.__)("Insert After"))),1===r&&Object(u.createElement)(gc,{clientId:o,onToggle:f}),Object(u.createElement)(tc.Slot,{fillProps:{clientIds:t,onClose:f}})),Object(u.createElement)(P.MenuGroup,null,!c&&Object(u.createElement)(P.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:Object(p.flow)(f,d),icon:"trash",shortcut:oc.removeBlock.display},Object(H._n)("Remove Block","Remove Blocks",r))))})))}))},Sc=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).state={hoveredClassName:null},e.onHoverClassName=e.onHoverClassName.bind(Object(E.a)(e)),e}return Object(w.a)(t,e),Object(_.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,c=t.hasBlockStyles,a=this.state.hoveredClassName;if(!n||!n.length)return null;var s,d=a?n[0]:null,f=a?Object(i.getBlockType)(d.name):null,b=Object(p.mapKeys)(o,(function(e){return e.name})),h=Object(p.orderBy)(Object(p.filter)(Object(i.getPossibleBlockTransformations)(n),(function(e){return e&&!!b[e.name]})),(function(e){return b[e.name].frecency}),"desc");if(1===Object(p.uniq)(Object(p.map)(n,"name")).length){var m=n[0].name,v=Object(i.getBlockType)(m);s=v.icon}else s="layout";return c||h.length?Object(u.createElement)(P.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,r=e.isOpen,o=1===n.length?Object(H.__)("Change block type or style"):Object(H.sprintf)(Object(H._n)("Change type of %d block","Change type of %d blocks",n.length),n.length);return Object(u.createElement)(P.Toolbar,null,Object(u.createElement)(P.IconButton,{className:"editor-block-switcher__toggle block-editor-block-switcher__toggle",onClick:t,"aria-haspopup":"true","aria-expanded":r,label:o,tooltip:o,onKeyDown:function(e){r||e.keyCode!==he.DOWN||(e.preventDefault(),e.stopPropagation(),t())},icon:Object(u.createElement)(u.Fragment,null,Object(u.createElement)(be,{icon:s,showColors:!0}),Object(u.createElement)(P.SVG,{className:"editor-block-switcher__transform block-editor-block-switcher__transform",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(P.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(u.createElement)(u.Fragment,null,(c||0!==h.length)&&Object(u.createElement)("div",{className:"block-editor-block-switcher__container"},c&&Object(u.createElement)(P.PanelBody,{title:Object(H.__)("Block Styles"),initialOpen:!0},Object(u.createElement)(dc,{clientId:n[0].clientId,onSwitch:o,onHoverClassName:e.onHoverClassName})),0!==h.length&&Object(u.createElement)(P.PanelBody,{title:Object(H.__)("Transform To:"),initialOpen:!0},Object(u.createElement)(Bo,{items:h.map((function(e){return{id:e.name,icon:e.icon,title:e.title}})),onSelect:function(e){r(n,e.id),o()}}))),null!==a&&Object(u.createElement)("div",{className:"block-editor-block-switcher__preview"},Object(u.createElement)("div",{className:"block-editor-block-switcher__preview-title"},Object(H.__)("Preview")),Object(u.createElement)(wo,{viewportWidth:500,blocks:f.example?Object(i.getBlockFromExample)(d.name,{attributes:Object(l.a)({},f.example.attributes,{className:a}),innerBlocks:f.example.innerBlocks}):Object(i.cloneBlock)(d,{className:a})})))}}):Object(u.createElement)(P.Toolbar,null,Object(u.createElement)(P.IconButton,{disabled:!0,className:"editor-block-switcher__no-switcher-icon block-editor-block-switcher__no-switcher-icon",label:Object(H.__)("Block icon"),icon:Object(u.createElement)(be,{icon:s,showColors:!0})}))}}]),t}(u.Component),Cc=Object(b.compose)(Object(m.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,l=i(Object(p.first)(Object(p.castArray)(n))),s=o(n),u=s&&1===s.length?s[0]:null,d=u&&a(u.name);return{blocks:s,inserterItems:c(l),hasBlockStyles:d&&d.length>0}})),Object(m.withDispatch)((function(e,t){return{onTransform:function(n,r){e("core/block-editor").replaceBlocks(t.clientIds,Object(i.switchToBlockType)(n,r))}}})))(Sc);var Ec=Object(m.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(u.createElement)(Cc,{key:"switcher",clientIds:n}):null}));var wc=Object(m.withSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockMode,r=t.getSelectedBlockClientIds,o=t.isBlockValid,i=r();return{blockClientIds:i,isValid:1===i.length?o(i[0]):null,mode:1===i.length?n(i[0]):null}}))((function(e){var t=e.blockClientIds,n=e.isValid,r=e.mode;return 0===t.length?null:t.length>1?Object(u.createElement)("div",{className:"editor-block-toolbar block-editor-block-toolbar"},Object(u.createElement)(Ec,null),Object(u.createElement)(_c,{clientIds:t})):Object(u.createElement)("div",{className:"editor-block-toolbar block-editor-block-toolbar"},"visual"===r&&n&&Object(u.createElement)(u.Fragment,null,Object(u.createElement)(Cc,{clientIds:t}),Object(u.createElement)(oe.Slot,{bubblesVirtually:!0,className:"block-editor-block-toolbar__slot"}),Object(u.createElement)(pe.Slot,{bubblesVirtually:!0,className:"block-editor-block-toolbar__slot"})),Object(u.createElement)(_c,{clientIds:t}))}));var Ic=Object(b.compose)([Object(m.withDispatch)((function(e,t,n){var r=(0,n.select)("core/block-editor"),o=r.getBlocksByClientId,c=r.getSelectedBlockClientIds,a=r.hasMultiSelection,l=e("core/block-editor").removeBlocks,s=function(e){var t=c();if(0!==t.length&&(a()||!Object(xr.documentHasSelection)())){var n=Object(i.serialize)(o(t));e.clipboardData.setData("text/plain",n),e.clipboardData.setData("text/html",n),e.preventDefault()}};return{onCopy:s,onCut:function(e){if(s(e),a()){var t=c();l(t)}}}}))])((function(e){var t=e.children,n=e.onCopy,r=e.onCut;return Object(u.createElement)("div",{onCopy:n,onCut:r},t)})),Bc=function(e){function t(){return Object(j.a)(this,t),Object(S.a)(this,Object(C.a)(t).apply(this,arguments))}return Object(w.a)(t,e),Object(_.a)(t,[{key:"componentDidUpdate",value:function(){this.scrollIntoView()}},{key:"scrollIntoView",value:function(){var e=this.props.extentClientId;if(e){var t=po(e);if(t){var n=Object(xr.getScrollContainer)(t);n&&xe()(t,n,{onlyScrollIfNeeded:!0})}}}},{key:"render",value:function(){return null}}]),t}(u.Component),Tc=Object(m.withSelect)((function(e){return{extentClientId:(0,e("core/block-editor").getLastMultiSelectedBlockClientId)()}}))(Bc),xc=[he.UP,he.RIGHT,he.DOWN,he.LEFT,he.ENTER,he.BACKSPACE];var Lc=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).stopTypingOnSelectionUncollapse=e.stopTypingOnSelectionUncollapse.bind(Object(E.a)(e)),e.stopTypingOnMouseMove=e.stopTypingOnMouseMove.bind(Object(E.a)(e)),e.startTypingInTextField=e.startTypingInTextField.bind(Object(E.a)(e)),e.stopTypingOnNonTextField=e.stopTypingOnNonTextField.bind(Object(E.a)(e)),e.stopTypingOnEscapeKey=e.stopTypingOnEscapeKey.bind(Object(E.a)(e)),e.onKeyDown=Object(p.over)([e.startTypingInTextField,e.stopTypingOnEscapeKey]),e.lastMouseMove=null,e}return Object(w.a)(t,e),Object(_.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===he.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(xr.isTextField)(i)||i.closest(".block-editor-block-toolbar")||("keydown"!==o||function(e){var t=e.keyCode;return!e.shiftKey&&Object(p.includes)(xc,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(xr.isTextField)(i)&&o()}))}},{key:"render",value:function(){var e=this.props.children;return Object(u.createElement)("div",{onFocus:this.stopTypingOnNonTextField,onKeyPress:this.startTypingInTextField,onKeyDown:this.onKeyDown},e)}}]),t}(u.Component),Nc=Object(b.compose)([Object(m.withSelect)((function(e){return{isTyping:(0,e("core/block-editor").isTyping)()}})),Object(m.withDispatch)((function(e){var t=e("core/block-editor");return{onStartTyping:t.startTyping,onStopTyping:t.stopTyping}})),b.withSafeTimeout])(Lc);function Ac(){return Ni()("PreserveScrollInReorder component",{hint:"This behavior is now built-in the block list"}),null}var Mc=-1!==window.navigator.userAgent.indexOf("Trident"),Rc=new Set([he.UP,he.DOWN,he.LEFT,he.RIGHT]),Pc=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).ref=Object(u.createRef)(),e.onKeyDown=e.onKeyDown.bind(Object(E.a)(e)),e.addSelectionChangeListener=e.addSelectionChangeListener.bind(Object(E.a)(e)),e.computeCaretRectOnSelectionChange=e.computeCaretRectOnSelectionChange.bind(Object(E.a)(e)),e.maintainCaretPosition=e.maintainCaretPosition.bind(Object(E.a)(e)),e.computeCaretRect=e.computeCaretRect.bind(Object(E.a)(e)),e.onScrollResize=e.onScrollResize.bind(Object(E.a)(e)),e.isSelectionEligibleForScroll=e.isSelectionEligibleForScroll.bind(Object(E.a)(e)),e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScrollResize,!0),window.addEventListener("resize",this.onScrollResize,!0)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("scroll",this.onScrollResize,!0),window.removeEventListener("resize",this.onScrollResize,!0),document.removeEventListener("selectionchange",this.computeCaretRectOnSelectionChange),this.onScrollResize.rafId&&window.cancelAnimationFrame(this.onScrollResize.rafId),this.onKeyDown.rafId&&window.cancelAnimationFrame(this.onKeyDown.rafId)}},{key:"computeCaretRect",value:function(){this.isSelectionEligibleForScroll()&&(this.caretRect=Object(xr.computeCaretRect)())}},{key:"computeCaretRectOnSelectionChange",value:function(){document.removeEventListener("selectionchange",this.computeCaretRectOnSelectionChange),this.computeCaretRect()}},{key:"onScrollResize",value:function(){var e=this;this.onScrollResize.rafId||(this.onScrollResize.rafId=window.requestAnimationFrame((function(){e.computeCaretRect(),delete e.onScrollResize.rafId})))}},{key:"isSelectionEligibleForScroll",value:function(){return this.props.selectedBlockClientId&&this.ref.current.contains(document.activeElement)&&document.activeElement.isContentEditable}},{key:"isLastEditableNode",value:function(){var e=this.ref.current.querySelectorAll('[contenteditable="true"]');return e[e.length-1]===document.activeElement}},{key:"maintainCaretPosition",value:function(e){var t=e.keyCode;if(this.isSelectionEligibleForScroll()){var n=Object(xr.computeCaretRect)();if(n)if(this.caretRect)if(Rc.has(t))this.caretRect=n;else{var r=n.top-this.caretRect.top;if(0!==r){var o=Object(xr.getScrollContainer)(this.ref.current);if(o){var i=o===document.body,c=i?window.scrollY:o.scrollTop,a=i?0:o.getBoundingClientRect().top,l=i?this.caretRect.top/window.innerHeight:(this.caretRect.top-a)/(window.innerHeight-a);if(0===c&&l<.75&&this.isLastEditableNode())this.caretRect=n;else{var s=i?window.innerHeight:o.clientHeight;this.caretRect.top+this.caretRect.height>a+s||this.caretRect.top1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t=Array.isArray(e)?e:!0===e?Wc:[],!r||!0===e&&!n?p.without.apply(void 0,[t].concat(qc)):t}var $c=Object(b.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=Gc(Object(i.getBlockSupport)(n,"align"),Object(i.hasBlockSupport)(n,"alignWide",!0));return[r.length>0&&t.isSelected&&Object(u.createElement)(oe,{key:"align-controls"},Object(u.createElement)(Q,{value:t.attributes.align,onChange:function(e){if(!e){var n=Object(i.getBlockType)(t.name);Object(p.get)(n,["attributes","align","default"])&&(e="")}t.setAttributes({align:e})},controls:r})),Object(u.createElement)(e,Object(s.a)({key:"edit"},t))]}}),"withToolbarControls"),Yc=Object(b.createHigherOrderComponent)(Object(b.compose)([Object(m.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,c=r.align,a=Gc(Object(i.getBlockSupport)(n,"align"),Object(i.hasBlockSupport)(n,"alignWide",!0),o),d=t.wrapperProps;return Object(p.includes)(a,c)&&(d=Object(l.a)({},d,{"data-align":c})),Object(u.createElement)(e,Object(s.a)({},t,{wrapperProps:d}))}}]));Object(h.addFilter)("blocks.registerBlockType","core/align/addAttribute",(function(e){return Object(p.has)(e.attributes,["align","type"])?e:(Object(i.hasBlockSupport)(e,"align")&&(e.attributes=Object(p.assign)(e.attributes,{align:{type:"string"}})),e)})),Object(h.addFilter)("editor.BlockListBlock","core/editor/align/with-data-align",Yc),Object(h.addFilter)("editor.BlockEdit","core/editor/align/with-toolbar-controls",$c),Object(h.addFilter)("blocks.getSaveContent.extraProps","core/align/addAssignedAlign",(function(e,t,n){var r=n.align,o=Object(i.getBlockSupport)(t,"align"),c=Object(i.hasBlockSupport)(t,"alignWide",!0);return Object(p.includes)(Gc(o,c),r)&&(e.className=f()("align".concat(r),e.className)),e}));var Xc=/[\s#]/g;var Zc=Object(b.createHigherOrderComponent)((function(e){return function(t){return Object(i.hasBlockSupport)(t.name,"anchor")&&t.isSelected?Object(u.createElement)(u.Fragment,null,Object(u.createElement)(e,t),Object(u.createElement)(ai,null,Object(u.createElement)(P.TextControl,{className:"html-anchor-control",label:Object(H.__)("HTML Anchor"),help:Object(u.createElement)(u.Fragment,null,Object(H.__)("Enter a word or two — without spaces — to make a unique web address just for this heading, called an “anchor.” Then, you’ll be able to link directly to this section of your page."),Object(u.createElement)(P.ExternalLink,{href:"https://wordpress.org/support/article/page-jumps/"},Object(H.__)("Learn more about anchors"))),value:t.attributes.anchor||"",onChange:function(e){e=e.replace(Xc,"-"),t.setAttributes({anchor:e})}}))):Object(u.createElement)(e,t)}}),"withInspectorControl");Object(h.addFilter)("blocks.registerBlockType","core/anchor/attribute",(function(e){return Object(p.has)(e.attributes,["anchor","type"])?e:(Object(i.hasBlockSupport)(e,"anchor")&&(e.attributes=Object(p.assign)(e.attributes,{anchor:{type:"string",source:"attribute",attribute:"id",selector:"*"}})),e)})),Object(h.addFilter)("editor.BlockEdit","core/editor/anchor/with-inspector-control",Zc),Object(h.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 Jc=Object(b.createHigherOrderComponent)((function(e){return function(t){return Object(i.hasBlockSupport)(t.name,"customClassName",!0)&&t.isSelected?Object(u.createElement)(u.Fragment,null,Object(u.createElement)(e,t),Object(u.createElement)(ai,null,Object(u.createElement)(P.TextControl,{label:Object(H.__)("Additional CSS Class(es)"),value:t.attributes.className||"",onChange:function(e){t.setAttributes({className:""!==e?e:void 0})},help:Object(H.__)("Separate multiple classes with spaces.")}))):Object(u.createElement)(e,t)}}),"withInspectorControl");function Qc(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(h.addFilter)("blocks.registerBlockType","core/custom-class-name/attribute",(function(e){return Object(i.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes=Object(p.assign)(e.attributes,{className:{type:"string"}})),e})),Object(h.addFilter)("editor.BlockEdit","core/editor/custom-class-name/with-inspector-control",Jc),Object(h.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=f()(e.className,n.className)),e})),Object(h.addFilter)("blocks.getBlockAttributes","core/custom-class-name/addParsedDifference",(function(e,t,n){if(Object(i.hasBlockSupport)(t,"customClassName",!0)){var r=Object(p.omit)(e,["className"]),o=Object(i.getSaveContent)(t,r),c=Qc(o),a=Qc(n),l=Object(p.difference)(a,c);l.length?e.className=l.join(" "):o&&delete e.className}return e})),Object(h.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(p.uniq)([Object(i.getBlockDefaultClassName)(t.name)].concat(Object(Be.a)(e.className.split(" ")))).join(" ").trim():e.className=Object(i.getBlockDefaultClassName)(t.name)),e}));var ea=n(220),ta=n.n(ea),na=n(31),ra=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,oa=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),p(),t}}function c(e){this.start=e,this.end={line:n,column:r},this.source=t.source}c.prototype.content=e;var a=[];function l(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 s(){return f(/^{\s*/)}function u(){return f(/^}/)}function d(){var t,n=[];for(p(),b(n);e.length&&"}"!==e.charAt(0)&&(t=C()||E());)!1!==t&&(n.push(t),b(n));return n}function f(t){var n=t.exec(e);if(n){var r=n[0];return o(r),e=e.slice(r.length),n}}function p(){f(/^\s*/)}function b(e){var t;for(e=e||[];t=h();)!1!==t&&e.push(t);return e}function h(){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 l("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 m(){var e=f(/^([^{]+)/);if(e)return ia(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 v(){var e=i(),t=f(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(t){if(t=ia(t[0]),!f(/^:\s*/))return l("property missing ':'");var n=f(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),r=e({type:"declaration",property:t.replace(ra,""),value:n?ia(n[0]).replace(ra,""):""});return f(/^[;\s]*/),r}}function g(){var e,t=[];if(!s())return l("missing '{'");for(b(t);e=v();)!1!==e&&(t.push(e),b(t));return u()?t:l("missing '}'")}function O(){for(var e,t=[],n=i();e=f(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),f(/^,\s*/);if(t.length)return n({type:"keyframe",values:t,declarations:g()})}var k,y=S("import"),j=S("charset"),_=S("namespace");function S(e){var t=new RegExp("^@"+e+"\\s*([^;]+);");return function(){var n=i(),r=f(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=f(/^@([-\w]+)?keyframes\s*/);if(t){var n=t[1];if(!(t=f(/^([-\w]+)\s*/)))return l("@keyframes missing name");var r,o=t[1];if(!s())return l("@keyframes missing '{'");for(var c=b();r=O();)c.push(r),c=c.concat(b());return u()?e({type:"keyframes",name:o,vendor:n,keyframes:c}):l("@keyframes missing '}'")}}()||function(){var e=i(),t=f(/^@media *([^{]+)/);if(t){var n=ia(t[1]);if(!s())return l("@media missing '{'");var r=b().concat(d());return u()?e({type:"media",media:n,rules:r}):l("@media missing '}'")}}()||function(){var e=i(),t=f(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return e({type:"custom-media",name:ia(t[1]),media:ia(t[2])})}()||function(){var e=i(),t=f(/^@supports *([^{]+)/);if(t){var n=ia(t[1]);if(!s())return l("@supports missing '{'");var r=b().concat(d());return u()?e({type:"supports",supports:n,rules:r}):l("@supports missing '}'")}}()||y()||j()||_()||function(){var e=i(),t=f(/^@([-\w]+)?document *([^{]+)/);if(t){var n=ia(t[1]),r=ia(t[2]);if(!s())return l("@document missing '{'");var o=b().concat(d());return u()?e({type:"document",document:r,vendor:n,rules:o}):l("@document missing '}'")}}()||function(){var e=i();if(f(/^@page */)){var t=m()||[];if(!s())return l("@page missing '{'");for(var n,r=b();n=v();)r.push(n),r=r.concat(b());return u()?e({type:"page",selectors:t,declarations:r}):l("@page missing '}'")}}()||function(){var e=i();if(f(/^@host\s*/)){if(!s())return l("@host missing '{'");var t=b().concat(d());return u()?e({type:"host",rules:t}):l("@host missing '}'")}}()||function(){var e=i();if(f(/^@font-face\s*/)){if(!s())return l("@font-face missing '{'");for(var t,n=b();t=v();)n.push(t),n=n.concat(b());return u()?e({type:"font-face",declarations:n}):l("@font-face missing '}'")}}()}function E(){var e=i(),t=m();return t?(b(),e({type:"rule",selectors:t,declarations:g()})):l("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(na.a)(c)&&e(c,o)}r&&Object.defineProperty(t,"parent",{configurable:!0,writable:!0,enumerable:!1,value:n||null});return t}((k=d(),{type:"stylesheet",stylesheet:{source:t.source,rules:k,parsingErrors:a}}))};function ia(e){return e?e.replace(/^\s+|\s+$/g,""):""}var ca=n(112),aa=n.n(ca),la=sa;function sa(e){this.options=e||{}}sa.prototype.emit=function(e){return e},sa.prototype.visit=function(e){return this[e.type](e)},sa.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(l.a)({},n,{selectors:n.selectors.map((function(n){return Object(p.includes)(t,n.trim())?n:n.match(ka)?n.replace(/^(body|html|:root)/,e):e+" "+n}))}):n}},ja=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(p.map)(e,(function(e){var n=e.css,r=e.baseURL,o=[];return t&&o.push(ya(t)),r&&o.push(Oa(r)),o.length?ha(n,Object(b.compose)(o)):n}))};n.d(t,"AlignmentToolbar",(function(){return V})),n.d(t,"Autocomplete",(function(){return $})),n.d(t,"BlockAlignmentToolbar",(function(){return Q})),n.d(t,"BlockControls",(function(){return oe})),n.d(t,"BlockEdit",(function(){return le})),n.d(t,"BlockFormatControls",(function(){return pe})),n.d(t,"BlockIcon",(function(){return be})),n.d(t,"BlockNavigationDropdown",(function(){return Oe})),n.d(t,"__experimentalBlockNavigationList",(function(){return me})),n.d(t,"BlockVerticalAlignmentToolbar",(function(){return Ce})),n.d(t,"ButtonBlockerAppender",(function(){return Ko})),n.d(t,"ColorPalette",(function(){return qo})),n.d(t,"ContrastChecker",(function(){return $o})),n.d(t,"InnerBlocks",(function(){return ni})),n.d(t,"InspectorAdvancedControls",(function(){return ai})),n.d(t,"InspectorControls",(function(){return fi})),n.d(t,"MediaPlaceholder",(function(){return _i})),n.d(t,"MediaUpload",(function(){return pi})),n.d(t,"MediaUploadCheck",(function(){return Ee})),n.d(t,"PanelColorSettings",(function(){return Bi})),n.d(t,"PlainText",(function(){return Ti})),n.d(t,"RichText",(function(){return qi})),n.d(t,"RichTextShortcut",(function(){return Fi})),n.d(t,"RichTextToolbarButton",(function(){return Hi})),n.d(t,"__unstableRichTextInputEvent",(function(){return Ui})),n.d(t,"URLInput",(function(){return vi})),n.d(t,"URLInputButton",(function(){return Gi})),n.d(t,"URLPopover",(function(){return Oi})),n.d(t,"withColorContext",(function(){return Wo})),n.d(t,"__experimentalBlockSettingsMenuFirstItem",(function(){return Zi})),n.d(t,"__experimentalBlockSettingsMenuPluginsExtension",(function(){return tc})),n.d(t,"__experimentalInserterMenuExtension",(function(){return Mo})),n.d(t,"BlockEditorKeyboardShortcuts",(function(){return cc})),n.d(t,"BlockInspector",(function(){return hc})),n.d(t,"BlockList",(function(){return Co})),n.d(t,"BlockMover",(function(){return Fr})),n.d(t,"BlockPreview",(function(){return wo})),n.d(t,"BlockSelectionClearer",(function(){return vc})),n.d(t,"BlockSettingsMenu",(function(){return _c})),n.d(t,"BlockTitle",(function(){return eo})),n.d(t,"BlockToolbar",(function(){return wc})),n.d(t,"CopyHandler",(function(){return Ic})),n.d(t,"DefaultBlockAppender",(function(){return jo})),n.d(t,"Inserter",(function(){return zo})),n.d(t,"MultiBlocksSwitcher",(function(){return Ec})),n.d(t,"MultiSelectScrollIntoView",(function(){return Tc})),n.d(t,"NavigableToolbar",(function(){return no})),n.d(t,"ObserveTyping",(function(){return Nc})),n.d(t,"PreserveScrollInReorder",(function(){return Ac})),n.d(t,"SkipToSelectedBlock",(function(){return ac})),n.d(t,"Typewriter",(function(){return Dc})),n.d(t,"Warning",(function(){return Hr})),n.d(t,"WritingFlow",(function(){return Kc})),n.d(t,"BlockEditorProvider",(function(){return Ir})),n.d(t,"getColorClassName",(function(){return y})),n.d(t,"getColorObjectByAttributeValues",(function(){return O})),n.d(t,"getColorObjectByColorValue",(function(){return k})),n.d(t,"createCustomColorsHOC",(function(){return N})),n.d(t,"withColors",(function(){return A})),n.d(t,"getFontSize",(function(){return M})),n.d(t,"getFontSizeClass",(function(){return R})),n.d(t,"FontSizePicker",(function(){return D})),n.d(t,"withFontSizes",(function(){return F})),n.d(t,"transformStyles",(function(){return ja})),n.d(t,"storeConfig",(function(){return Sr})),n.d(t,"SETTINGS_DEFAULTS",(function(){return Re}))},35:function(e,t){!function(){e.exports=this.wp.blob}()},36: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;r=0;--i){var c=this.tryEntries[i],a=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var l=r.call(c,"catchLoc"),s=r.call(c,"finallyLoc");if(l&&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),E(n),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),b}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},48:function(e,t,n){var r;!function(o){var i=/^\s+/,c=/\s+$/,a=0,l=o.round,s=o.min,u=o.max,d=o.random;function f(e,t){if(t=t||{},(e=e||"")instanceof f)return e;if(!(this instanceof f))return new f(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,a=null,l=null,d=!1,f=!1;"string"==typeof e&&(e=function(e){e=e.replace(i,"").replace(c,"").toLowerCase();var t,n=!1;if(T[e])e=T[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=z.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=z.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=z.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=z.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=z.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=z.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=z.hex8.exec(e))return{r:M(t[1]),g:M(t[2]),b:M(t[3]),a:F(t[4]),format:n?"name":"hex8"};if(t=z.hex6.exec(e))return{r:M(t[1]),g:M(t[2]),b:M(t[3]),format:n?"name":"hex"};if(t=z.hex4.exec(e))return{r:M(t[1]+""+t[1]),g:M(t[2]+""+t[2]),b:M(t[3]+""+t[3]),a:F(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=z.hex3.exec(e))return{r:M(t[1]+""+t[1]),g:M(t[2]+""+t[2]),b:M(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(K(e.r)&&K(e.g)&&K(e.b)?(p=e.r,b=e.g,h=e.b,t={r:255*N(p,255),g:255*N(b,255),b:255*N(h,255)},d=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):K(e.h)&&K(e.s)&&K(e.v)?(r=P(e.s),a=P(e.v),t=function(e,t,n){e=6*N(e,360),t=N(t,100),n=N(n,100);var r=o.floor(e),i=e-r,c=n*(1-t),a=n*(1-i*t),l=n*(1-(1-i)*t),s=r%6;return{r:255*[n,a,c,c,l,n][s],g:255*[l,n,n,a,c,c][s],b:255*[c,c,l,n,n,a][s]}}(e.h,r,a),d=!0,f="hsv"):K(e.h)&&K(e.s)&&K(e.l)&&(r=P(e.s),l=P(e.l),t=function(e,t,n){var r,o,i;function c(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=N(e,360),t=N(t,100),n=N(n,100),0===t)r=o=i=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=c(l,a,e+1/3),o=c(l,a,e),i=c(l,a,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,r,l),d=!0,f="hsl"),e.hasOwnProperty("a")&&(n=e.a));var p,b,h;return n=L(n),{ok:d,format:e.format||f,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=a++}function p(e,t,n){e=N(e,255),t=N(t,255),n=N(n,255);var r,o,i=u(e,t,n),c=s(e,t,n),a=(i+c)/2;if(i==c)r=o=0;else{var l=i-c;switch(o=a>.5?l/(2-i-c):l/(i+c),i){case e:r=(t-n)/l+(t>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(f(r));return i}function B(e,t){t=t||6;for(var n=f(e).toHsv(),r=n.h,o=n.s,i=n.v,c=[],a=1/t;t--;)c.push(f({h:r,s:o,v:i})),i=(i+a)%1;return c}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,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=L(e),this._roundA=l(100*this._a)/100,this},toHsv:function(){var e=b(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=b(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=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=p(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 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=[R(l(e).toString(16)),R(l(t).toString(16)),R(l(n).toString(16)),R(D(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: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*N(this._r,255))+"%",g:l(100*N(this._g,255))+"%",b:l(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*N(this._r,255))+"%, "+l(100*N(this._g,255))+"%, "+l(100*N(this._b,255))+"%)":"rgba("+l(100*N(this._r,255))+"%, "+l(100*N(this._g,255))+"%, "+l(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="#"+m(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=f(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 f(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(y,arguments)},darken:function(){return this._applyModification(j,arguments)},desaturate:function(){return this._applyModification(v,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(B,arguments)},splitcomplement:function(){return this._applyCombination(w,arguments)},triad:function(){return this._applyCombination(C,arguments)},tetrad:function(){return this._applyCombination(E,arguments)}},f.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:P(e[r]));e=n}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,n){n=0===n?0:n||50;var r=f(e).toRgb(),o=f(t).toRgb(),i=n/100;return f({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})},f.readability=function(e,t){var n=f(e),r=f(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},f.isReadable=function(e,t,n){var r,o,i=f.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},f.mostReadable=function(e,t,n){var r,o,i,c,a=null,l=0;o=(n=n||{}).includeFallbackColors,i=n.level,c=n.size;for(var s=0;sl&&(l=r,a=f(t[s]));return f.isReadable(e,a,{level:i,size:c})||!o?a:(n.includeFallbackColors=!1,f.mostReadable(e,["#fff","#000"],n))};var T=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"},x=f.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(T);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),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function A(e){return s(1,u(0,e))}function M(e){return parseInt(e,16)}function R(e){return 1==e.length?"0"+e:""+e}function P(e){return e<=1&&(e=100*e+"%"),e}function D(e){return o.round(255*parseFloat(e)).toString(16)}function F(e){return M(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=f:void 0===(r=function(){return f}.call(t,n,t,e))||(e.exports=r)}(Math)},5: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}))},52:function(e,t){!function(){e.exports=this.wp.htmlEntities}()},62:function(e,t,n){"use strict";t.__esModule=!0;var r=n(115);t.default=r.default},64:function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(119)),i=r(n(120)),c=n(28),a=r(c),l=r(n(121)),s=r(n(122)),u={arr:Array.isArray,obj:function(e){return"[object Object]"===Object.prototype.toString.call(e)},fun:function(e){return"function"==typeof e},str:function(e){return"string"==typeof e},num:function(e){return"number"==typeof e},und:function(e){return void 0===e},nul:function(e){return null===e},set:function(e){return e instanceof Set},map:function(e){return e instanceof Map},equ:function(e,t){if(typeof e!=typeof t)return!1;if(u.str(e)||u.num(e))return e===t;if(u.obj(e)&&u.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;var n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!u.und(n)||e===t}};function d(){var e=c.useState(!1)[1];return c.useCallback((function(){return e((function(e){return!e}))}),[])}function f(e,t){return u.und(e)||u.nul(e)?t:e}function p(e){return u.und(e)?[]:u.arr(e)?e:[e]}function b(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=n.length)break;i=n[o++]}else{if((o=n.next()).done)break;i=o.value}for(var c=i,a=!1,l=0;l=p.startTime+s.duration;else if(s.decay)m=b+O/(1-.998)*(1-Math.exp(-(1-.998)*(t-p.startTime))),(u=Math.abs(p.lastPosition-m)<.1)&&(h=m);else{d=void 0!==p.lastTime?p.lastTime:t,O=void 0!==p.lastVelocity?p.lastVelocity:s.initialVelocity,t>d+64&&(d=t);for(var k=Math.floor(t-d),y=0;yh:m=e);++n);return n-1}(e,i);return function(e,t,n,r,o,i,c,a,l){var s=l?l(e):e;if(sn){if("identity"===a)return s;"clamp"===a&&(s=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?s=-s:n===1/0?s-=t:s=(s-t)/(n-t);s=i(s),r===-1/0?s=-s:o===1/0?s+=r:s=s*(o-r)+r;return s}(e,i[t],i[t+1],o[t],o[t+1],l,c,a,r.map)}}var H=function(e){function t(n,r,o,i){var c;return(c=e.call(this)||this).calc=void 0,c.payload=n instanceof O&&!(n instanceof t)?n.getPayload():Array.isArray(n)?n:[n],c.calc=F(r,o,i),c}l(t,e);var n=t.prototype;return n.getValue=function(){return this.calc.apply(this,this.payload.map((function(e){return e.getValue()})))},n.updateConfig=function(e,t,n){this.calc=F(e,t,n)},n.interpolate=function(e,n,r){return new t(this,e,n,r)},t}(O);var U=function(e){function t(t){var n;return(n=e.call(this)||this).animatedStyles=new Set,n.value=void 0,n.startPosition=void 0,n.lastPosition=void 0,n.lastVelocity=void 0,n.startTime=void 0,n.lastTime=void 0,n.done=!1,n.setValue=function(e,t){void 0===t&&(t=!0),n.value=e,t&&n.flush()},n.value=t,n.startPosition=t,n.lastPosition=t,n}l(t,e);var n=t.prototype;return n.flush=function(){0===this.animatedStyles.size&&function e(t,n){"update"in t?n.add(t):t.getChildren().forEach((function(t){return e(t,n)}))}(this,this.animatedStyles),this.animatedStyles.forEach((function(e){return e.update()}))},n.clearStyles=function(){this.animatedStyles.clear()},n.getValue=function(){return this.value},n.interpolate=function(e,t,n){return new H(this,e,t,n)},t}(g),V=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map((function(e){return new U(e)})),n}l(t,e);var n=t.prototype;return n.setValue=function(e,t){var n=this;void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((function(e,r){return n.payload[r].setValue(e,t)})):this.payload.forEach((function(n){return n.setValue(e,t)}))},n.getValue=function(){return this.payload.map((function(e){return e.getValue()}))},n.interpolate=function(e,t){return new H(this,e,t)},t}(O),z=0,K=function(){function e(){var e=this;this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=function(){return e.interpolations},this.id=z++}var t=e.prototype;return t.update=function(e){if(!e)return this;var t=h(e),n=t.delay,r=void 0===n?0:n,c=t.to,a=i(t,["delay","to"]);if(u.arr(c)||u.fun(c))this.queue.push(o({},a,{delay:r,to:c}));else if(c){var l={};Object.entries(c).forEach((function(e){var t,n=e[0],i=e[1],c=o({to:(t={},t[n]=i,t),delay:b(r,n)},a),s=l[c.delay]&&l[c.delay].to;l[c.delay]=o({},l[c.delay],c,{to:o({},s,c.to)})})),this.queue=Object.values(l)}return this.queue=this.queue.sort((function(e,t){return e.delay-t.delay})),this.diff(a),this},t.start=function(e){var t,n=this;if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((function(e){var t=e.from,r=void 0===t?{}:t,i=e.to,c=void 0===i?{}:i;u.obj(r)&&(n.merged=o({},r,n.merged)),u.obj(c)&&(n.merged=o({},n.merged,c))}));var r=this.local=++this.guid,c=this.localQueue=this.queue;this.queue=[],c.forEach((function(t,o){var a=t.delay,l=i(t,["delay"]),s=function(t){o===c.length-1&&r===n.guid&&t&&(n.idle=!0,n.props.onRest&&n.props.onRest(n.merged)),e&&e()},d=u.arr(l.to)||u.fun(l.to);a?setTimeout((function(){r===n.guid&&(d?n.runAsync(l,s):n.diff(l).start(s))}),a):d?n.runAsync(l,s):n.diff(l).start(s)}))}else u.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,P.has(t)||P.add(t),R||(R=!0,S(x||D));return this},t.stop=function(e){return this.listeners.forEach((function(t){return t(e)})),this.listeners=[],this},t.pause=function(e){var t;return this.stop(!0),e&&(t=this,P.has(t)&&P.delete(t)),this},t.runAsync=function(e,t){var n=this,r=(e.delay,i(e,["delay"])),c=this.local,a=Promise.resolve(void 0);if(u.arr(r.to))for(var l=function(e){var t=e,i=o({},r,h(r.to[t]));u.arr(i.config)&&(i.config=i.config[t]),a=a.then((function(){if(c===n.guid)return new Promise((function(e){return n.diff(i).start(e)}))}))},s=0;s=r.length)return"break";c=r[i++]}else{if((i=r.next()).done)return"break";c=i.value}var n=c.key,a=function(e){return e.key!==n};(u.und(t)||t===n)&&(e.current.instances.delete(n),e.current.transitions=e.current.transitions.filter(a),e.current.deleted=e.current.deleted.filter(a))},r=e.current.deleted,o=Array.isArray(r),i=0;for(r=o?r:r[Symbol.iterator]();;){var c;if("break"===n())break}e.current.forceUpdate()}var Q=function(e){function t(t){var n;return void 0===t&&(t={}),n=e.call(this)||this,!t.transform||t.transform instanceof g||(t=m.transform(t)),n.payload=t,n}return l(t,e),t}(k),ee={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},te="[-+]?\\d*\\.?\\d+",ne=te+"%";function re(){for(var e=arguments.length,t=new Array(e),n=0;n1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function pe(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=fe(o,r,e+1/3),c=fe(o,r,e),a=fe(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*c)<<16|Math.round(255*a)<<8}function be(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function he(e){return(parseFloat(e)%360+360)%360/360}function me(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function ve(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function ge(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=ue.exec(t))?parseInt(n[1]+"ff",16)>>>0:ee.hasOwnProperty(t)?ee[t]:(n=oe.exec(t))?(be(n[1])<<24|be(n[2])<<16|be(n[3])<<8|255)>>>0:(n=ie.exec(t))?(be(n[1])<<24|be(n[2])<<16|be(n[3])<<8|me(n[4]))>>>0:(n=le.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=de.exec(t))?parseInt(n[1],16)>>>0:(n=se.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=ce.exec(t))?(255|pe(he(n[1]),ve(n[2]),ve(n[3])))>>>0:(n=ae.exec(t))?(pe(he(n[1]),ve(n[2]),ve(n[3]))|me(n[4]))>>>0:null;return null===r?e:"rgba("+((4278190080&(r=r||0))>>>24)+", "+((16711680&r)>>>16)+", "+((65280&r)>>>8)+", "+(255&r)/255+")"}var Oe=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ke=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,ye=new RegExp("("+Object.keys(ee).join("|")+")","g"),je={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,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},_e=["Webkit","Ms","Moz","O"];function Se(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||je.hasOwnProperty(e)&&je[e]?(""+t).trim():t+"px"}je=Object.keys(je).reduce((function(e,t){return _e.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),je);var Ce={};N((function(e){return new Q(e)})),B("div"),E((function(e){var t=e.output.map((function(e){return e.replace(ke,ge)})).map((function(e){return e.replace(ye,ge)})),n=t[0].match(Oe).map((function(){return[]}));t.forEach((function(e){e.match(Oe).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(Oe).map((function(t,r){return F(o({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(Oe,(function(){return r[n++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,n,r,o){return"rgba("+Math.round(t)+", "+Math.round(n)+", "+Math.round(r)+", "+o+")"}))}})),j(ee),y((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,r=t.children,o=t.scrollTop,c=t.scrollLeft,a=i(t,["style","children","scrollTop","scrollLeft"]),l="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var s in void 0!==o&&(e.scrollTop=o),void 0!==c&&(e.scrollLeft=c),void 0!==r&&(e.textContent=r),n)if(n.hasOwnProperty(s)){var u=0===s.indexOf("--"),d=Se(s,n[s],u);"float"===s&&(s="cssFloat"),u?e.style.setProperty(s,d):e.style[s]=d}for(var f in a){var p=l?f:Ce[f]||(Ce[f]=f.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(p)&&e.setAttribute(p,a[f])}}),(function(e){return e}));var Ee,we,Ie=(Ee=function(e){return c.forwardRef((function(t,n){var r=d(),l=c.useRef(!0),s=c.useRef(null),f=c.useRef(null),p=c.useCallback((function(e){var t=s.current;s.current=new M(e,(function(){var e=!1;f.current&&(e=m.fn(f.current,s.current.getAnimatedValue())),f.current&&!1!==e||r()})),t&&t.detach()}),[]);c.useEffect((function(){return function(){l.current=!1,s.current&&s.current.detach()}}),[]),c.useImperativeHandle(n,(function(){return L(f,l,r)})),p(t);var b,h=s.current.getValue(),v=(h.scrollTop,h.scrollLeft,i(h,["scrollTop","scrollLeft"])),g=(b=e,!u.fun(b)||b.prototype instanceof a.Component?function(e){return f.current=function(e,t){return t&&(u.fun(t)?t(e):u.obj(t)&&(t.current=e)),e}(e,n)}:void 0);return a.createElement(e,o({},v,{ref:g}))}))},void 0===(we=!1)&&(we=!0),function(e){return(u.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=we?t[0].toLowerCase()+t.substring(1):t;return e[n]=Ee(n),e}),Ee)}),Be=Ie(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]);t.apply=Ie,t.config={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},t.update=D,t.animated=Be,t.a=Be,t.interpolate=function(e,t,n){return e&&new H(e,t,n)},t.Globals=A,t.useSpring=function(e){var t=u.fun(e),n=W(1,t?e:[e]),r=n[0],o=n[1],i=n[2];return t?[r[0],o,i]:r},t.useTrail=function(e,t){var n=c.useRef(!1),r=u.fun(t),i=b(t),a=c.useRef(),l=W(e,(function(e,t){return 0===e&&(a.current=[]),a.current.push(t),o({},i,{config:b(i.config,e),attach:e>0&&function(){return a.current[e-1]}})})),s=l[0],d=l[1],f=l[2],p=c.useMemo((function(){return function(e){return d((function(t,n){e.reverse;var r=e.reverse?t+1:t-1,c=a.current[r];return o({},e,{config:b(e.config||i.config,t),attach:c&&function(){return c}})}))}}),[e,i.reverse]);return c.useEffect((function(){n.current&&!r&&p(t)})),c.useEffect((function(){n.current=!0}),[]),r?[s,p,f]:s},t.useTransition=function(e,t,n){var r=o({items:e,keys:t||function(e){return e}},n),a=Z(r),l=a.lazy,s=void 0!==l&&l,u=(a.unique,a.reset),f=void 0!==u&&u,p=(a.enter,a.leave,a.update,a.onDestroyed),h=(a.keys,a.items,a.onFrame),m=a.onRest,v=a.onStart,g=a.ref,O=i(a,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),k=d(),y=c.useRef(!1),j=c.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!y.current&&new Map,forceUpdate:k});return c.useImperativeHandle(r.ref,(function(){return{start:function(){return Promise.all(Array.from(j.current.instances).map((function(e){var t=e[1];return new Promise((function(e){return t.start(e)}))})))},stop:function(e){return Array.from(j.current.instances).forEach((function(t){return t[1].stop(e)}))},get controllers(){return Array.from(j.current.instances).map((function(e){return e[1]}))}}})),j.current=function(e,t){var n=e.first,r=e.prevProps,c=i(e,["first","prevProps"]),a=Z(t),l=a.items,s=a.keys,u=a.initial,d=a.from,f=a.enter,p=a.leave,h=a.update,m=a.trail,v=void 0===m?0:m,g=a.unique,O=a.config,k=a.order,y=void 0===k?[G,$,Y]:k,j=Z(r),_=j.keys,S=j.items,C=o({},c.current),E=[].concat(c.deleted),w=Object.keys(C),I=new Set(w),B=new Set(s),T=s.filter((function(e){return!I.has(e)})),x=c.transitions.filter((function(e){return!e.destroyed&&!B.has(e.originalKey)})).map((function(e){return e.originalKey})),L=s.filter((function(e){return I.has(e)})),N=-v;for(;y.length;){switch(y.shift()){case G:T.forEach((function(e,t){g&&E.find((function(t){return t.originalKey===e}))&&(E=E.filter((function(t){return t.originalKey!==e})));var r=s.indexOf(e),o=l[r],i=n&&void 0!==u?"initial":G;C[e]={slot:i,originalKey:e,key:g?String(e):q++,item:o,trail:N+=v,config:b(O,o,i),from:b(n&&void 0!==u?u||{}:d,o),to:b(f,o)}}));break;case $:x.forEach((function(e){var t=_.indexOf(e),n=S[t],r=$;E.unshift(o({},C[e],{slot:r,destroyed:!0,left:_[Math.max(0,t-1)],right:_[Math.min(_.length,t+1)],trail:N+=v,config:b(O,n,r),to:b(p,n)})),delete C[e]}));break;case Y:L.forEach((function(e){var t=s.indexOf(e),n=l[t],r=Y;C[e]=o({},C[e],{item:n,slot:r,trail:N+=v,config:b(O,n,r),to:b(h,n)})}))}}var A=s.map((function(e){return C[e]}));return E.forEach((function(e){var t,n=e.left,r=(e.right,i(e,["left","right"]));-1!==(t=A.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),A=[].concat(A.slice(0,t),[r],A.slice(t))})),o({},c,{changed:T.length||x.length||L.length,first:n&&0===T.length,transitions:A,current:C,deleted:E,prevProps:t})}(j.current,r),j.current.changed&&j.current.transitions.forEach((function(e){var t=e.slot,n=e.from,r=e.to,i=e.config,c=e.trail,a=e.key,l=e.item;j.current.instances.has(a)||j.current.instances.set(a,new K);var u=j.current.instances.get(a),d=o({},O,{to:r,from:n,config:i,ref:g,onRest:function(n){j.current.mounted&&(e.destroyed&&(g||s||J(j,a),p&&p(l)),!Array.from(j.current.instances).some((function(e){return!e[1].idle}))&&(g||s)&&j.current.deleted.length>0&&J(j),m&&m(l,t,n))},onStart:v&&function(){return v(l,t)},onFrame:h&&function(e){return h(l,t,e)},delay:c,reset:f&&t===G});u.update(d),j.current.paused||u.start()})),c.useEffect((function(){return j.current.mounted=y.current=!0,function(){j.current.mounted=y.current=!1,Array.from(j.current.instances).map((function(e){return e[1].destroy()})),j.current.instances.clear()}}),[]),j.current.transitions.map((function(e){var t=e.item,n=e.slot,r=e.key;return{item:t,key:r,state:n,props:j.current.instances.get(r).getValues()}}))},t.useChain=function(e,t,n){void 0===n&&(n=1e3);var r=c.useRef();c.useEffect((function(){u.equ(e,r.current)?e.forEach((function(e){var t=e.current;return t&&t.start()})):t?e.forEach((function(e,r){var i=e.current;if(i){var c=i.controllers;if(c.length){var a=n*t[r];c.forEach((function(e){e.queue=e.queue.map((function(e){return o({},e,{delay:e.delay+a})})),e.start()}))}}})):e.reduce((function(e,t,n){var r=t.current;return e.then((function(){return r.start()}))}),Promise.resolve()),r.current=e}))},t.useSprings=W},65: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},68:function(e,t,n){"use strict";e.exports=n(113)},7:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(10);function o(e){for(var t=1;t",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(s),d=["%","/","?",";","#"].concat(u),f=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,b=/^([+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},g=n(126);function O(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?N+="x":N+=L[A];if(!N.match(p)){var R=T.slice(0,w),P=T.slice(w+1),D=L.match(b);D&&(R.push(D[1]),P.unshift(D[2])),P.length&&(O="/"+P.join(".")+O),this.hostname=R.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),B||(this.hostname=r.toASCII(this.hostname));var F=this.port?":"+this.port:"",H=this.hostname||"";this.host=H+F,this.href+=this.host,B&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==O[0]&&(O="/"+O))}if(!h[j])for(w=0,x=u.length;w0)&&n.host.split("@"))&&(n.auth=B.shift(),n.host=n.hostname=B.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 C=_.slice(-1)[0],E=(n.host||e.host||_.length>1)&&("."===C||".."===C)||""===C,w=0,I=_.length;I>=0;I--)"."===(C=_[I])?_.splice(I,1):".."===C?(_.splice(I,1),w++):w&&(_.splice(I,1),w--);if(!y&&!j)for(;w--;w)_.unshift("..");!y||""===_[0]||_[0]&&"/"===_[0].charAt(0)||_.unshift(""),E&&"/"!==_.join("/").substr(-1)&&_.push("");var B,T=""===_[0]||_[0]&&"/"===_[0].charAt(0);S&&(n.hostname=n.host=T?"":_.length?_.shift():"",(B=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=B.shift(),n.host=n.hostname=B.shift()));return(y=y||n.host&&_.length)&&!T&&_.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)}},87:function(e,t,n){"use strict";var r=n(88);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,c){if(c!==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 t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},88:function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9:function(e,t){!function(){e.exports=this.wp.blocks}()},97:function(e,t){!function(){e.exports=this.wp.wordcount}()}}); \ No newline at end of file diff --git a/wp-includes/js/dist/block-library.js b/wp-includes/js/dist/block-library.js index ed010f2a48..b7e22fa150 100644 --- a/wp-includes/js/dist/block-library.js +++ b/wp-includes/js/dist/block-library.js @@ -10357,7 +10357,7 @@ var dist = __webpack_require__(221); var dist_default = /*#__PURE__*/__webpack_require__.n(dist); // EXTERNAL MODULE: ./node_modules/tinycolor2/tinycolor.js -var tinycolor = __webpack_require__(49); +var tinycolor = __webpack_require__(48); var tinycolor_default = /*#__PURE__*/__webpack_require__.n(tinycolor); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/cover/icon.js @@ -20605,7 +20605,7 @@ module.exports = function memize( fn, options ) { /***/ }), -/***/ 49: +/***/ 48: /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_RESULT__;// TinyColor v1.4.1 diff --git a/wp-includes/js/dist/block-library.min.js b/wp-includes/js/dist/block-library.min.js index 76c47c2975..f410333e4c 100644 --- a/wp-includes/js/dist/block-library.min.js +++ b/wp-includes/js/dist/block-library.min.js @@ -5,7 +5,7 @@ this.wp=this.wp||{},this.wp.blockLibrary=function(e){var t={};function n(r){if(t http://jedwatson.github.io/classnames */!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t=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.richText}()},221: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}))[0],5),m=b[0],d=b[1],h=b[2],p=b[3],g=b[4];return p?[Math.round(m/p),Math.round(d/p),Math.round(h/p),Math.round(p/g)]:[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){return(299*e[0]+587*e[1]+114*e[2])/1e3<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}()}()},23:function(e,t,n){"use strict";var r=n(38);var o=n(39);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}))},24:function(e,t){!function(){e.exports=this.wp.editor}()},26:function(e,t){!function(){e.exports=this.wp.url}()},29:function(e,t){!function(){e.exports=this.moment}()},3:function(e,t){!function(){e.exports=this.wp.components}()},30: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}))},31: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}))},34:function(e,t){!function(){e.exports=this.wp.apiFetch}()},341:function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"metadata",(function(){return ve})),n.d(r,"name",(function(){return Oe})),n.d(r,"settings",(function(){return je}));var o={};n.r(o),n.d(o,"metadata",(function(){return gt})),n.d(o,"name",(function(){return ft})),n.d(o,"settings",(function(){return vt}));var a={};n.r(a),n.d(a,"metadata",(function(){return xt})),n.d(a,"name",(function(){return St})),n.d(a,"settings",(function(){return Tt}));var c={};n.r(c),n.d(c,"metadata",(function(){return Pt})),n.d(c,"name",(function(){return Lt})),n.d(c,"settings",(function(){return Ht}));var i={};n.r(i),n.d(i,"metadata",(function(){return Xt})),n.d(i,"name",(function(){return en})),n.d(i,"settings",(function(){return tn}));var l={};n.r(l),n.d(l,"name",(function(){return an})),n.d(l,"settings",(function(){return cn}));var s={};n.r(s),n.d(s,"metadata",(function(){return dn})),n.d(s,"name",(function(){return hn})),n.d(s,"settings",(function(){return pn}));var u={};n.r(u),n.d(u,"metadata",(function(){return Sn})),n.d(u,"name",(function(){return Tn})),n.d(u,"settings",(function(){return Nn}));var b={};n.r(b),n.d(b,"name",(function(){return Pn})),n.d(b,"settings",(function(){return Ln}));var m={};n.r(m),n.d(m,"name",(function(){return Dn})),n.d(m,"settings",(function(){return Fn}));var d={};n.r(d),n.d(d,"metadata",(function(){return Jn})),n.d(d,"name",(function(){return Xn})),n.d(d,"settings",(function(){return er}));var h={};n.r(h),n.d(h,"metadata",(function(){return pr})),n.d(h,"name",(function(){return gr})),n.d(h,"settings",(function(){return fr}));var p={};n.r(p),n.d(p,"metadata",(function(){return jr})),n.d(p,"name",(function(){return yr})),n.d(p,"settings",(function(){return _r}));var g={};n.r(g),n.d(g,"metadata",(function(){return qr})),n.d(g,"name",(function(){return Wr})),n.d(g,"settings",(function(){return Gr}));var f={};n.r(f),n.d(f,"name",(function(){return oo})),n.d(f,"settings",(function(){return ao})),n.d(f,"common",(function(){return co})),n.d(f,"others",(function(){return io}));var v={};n.r(v),n.d(v,"metadata",(function(){return ho})),n.d(v,"name",(function(){return po})),n.d(v,"settings",(function(){return go}));var O={};n.r(O),n.d(O,"metadata",(function(){return yo})),n.d(O,"name",(function(){return _o})),n.d(O,"settings",(function(){return ko}));var j={};n.r(j),n.d(j,"metadata",(function(){return Lo})),n.d(j,"name",(function(){return Ho})),n.d(j,"settings",(function(){return zo}));var y={};n.r(y),n.d(y,"name",(function(){return Fo})),n.d(y,"settings",(function(){return Uo}));var _={};n.r(_),n.d(_,"name",(function(){return Qo})),n.d(_,"settings",(function(){return Jo}));var k={};n.r(k),n.d(k,"metadata",(function(){return ra})),n.d(k,"name",(function(){return oa})),n.d(k,"settings",(function(){return aa}));var C={};n.r(C),n.d(C,"metadata",(function(){return ia})),n.d(C,"name",(function(){return la})),n.d(C,"settings",(function(){return sa}));var w={};n.r(w),n.d(w,"metadata",(function(){return da})),n.d(w,"name",(function(){return ha})),n.d(w,"settings",(function(){return pa}));var E={};n.r(E),n.d(E,"metadata",(function(){return va})),n.d(E,"name",(function(){return Oa})),n.d(E,"settings",(function(){return ja}));var x={};n.r(x),n.d(x,"metadata",(function(){return ka})),n.d(x,"name",(function(){return Ca})),n.d(x,"settings",(function(){return wa}));var S={};n.r(S),n.d(S,"metadata",(function(){return Ba})),n.d(S,"name",(function(){return Ia})),n.d(S,"settings",(function(){return Ma}));var T={};n.r(T),n.d(T,"name",(function(){return Da})),n.d(T,"settings",(function(){return Fa}));var N={};n.r(N),n.d(N,"name",(function(){return qa})),n.d(N,"settings",(function(){return Wa}));var R={};n.r(R),n.d(R,"name",(function(){return Ga})),n.d(R,"settings",(function(){return Ka}));var A={};n.r(A),n.d(A,"metadata",(function(){return Qa})),n.d(A,"name",(function(){return Ja})),n.d(A,"settings",(function(){return Xa}));var B={};n.r(B),n.d(B,"metadata",(function(){return rc})),n.d(B,"name",(function(){return oc})),n.d(B,"settings",(function(){return ac}));var I={};n.r(I),n.d(I,"name",(function(){return uc})),n.d(I,"settings",(function(){return bc}));var M={};n.r(M),n.d(M,"metadata",(function(){return hc})),n.d(M,"name",(function(){return pc})),n.d(M,"settings",(function(){return gc}));var P={};n.r(P),n.d(P,"metadata",(function(){return yc})),n.d(P,"name",(function(){return _c})),n.d(P,"settings",(function(){return kc}));var L={};n.r(L),n.d(L,"metadata",(function(){return Dc})),n.d(L,"name",(function(){return Fc})),n.d(L,"settings",(function(){return Uc}));var H={};n.r(H),n.d(H,"metadata",(function(){return Wc})),n.d(H,"name",(function(){return Gc})),n.d(H,"settings",(function(){return Kc}));var z={};n.r(z),n.d(z,"metadata",(function(){return Qc})),n.d(z,"name",(function(){return Jc})),n.d(z,"settings",(function(){return Xc}));var V={};n.r(V),n.d(V,"metadata",(function(){return ci})),n.d(V,"name",(function(){return ii})),n.d(V,"settings",(function(){return li}));var D={};n.r(D),n.d(D,"name",(function(){return bi})),n.d(D,"settings",(function(){return mi}));var F={};n.r(F),n.d(F,"metadata",(function(){return gi})),n.d(F,"name",(function(){return fi})),n.d(F,"settings",(function(){return vi}));var U=n(17),q=n(10),W=(n(89),n(6)),G=(n(24),n(9)),K=n(1),Z=n(7),$=n(0),Y=n(16),Q=n.n(Y),J=n(2),X={className:!1},ee={align:{type:"string"},content:{type:"string",source:"html",selector:"p",default:""},dropCap:{type:"boolean",default:!1},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"]}},te=[{supports:X,attributes:ee,save:function(e){var t,n=e.attributes,r=n.align,o=n.content,a=n.dropCap,c=n.backgroundColor,i=n.textColor,l=n.customBackgroundColor,s=n.customTextColor,u=n.fontSize,b=n.customFontSize,m=n.direction,d=Object(W.getColorClassName)("color",i),h=Object(W.getColorClassName)("background-color",c),p=Object(W.getFontSizeClass)(u),g=Q()((t={"has-text-color":i||s,"has-background":c||l,"has-drop-cap":a},Object(q.a)(t,p,p),Object(q.a)(t,d,d),Object(q.a)(t,h,h),t)),f={backgroundColor:h?void 0:l,color:d?void 0:s,fontSize:p?void 0:b,textAlign:r};return Object($.createElement)(W.RichText.Content,{tagName:"p",style:f,className:g||void 0,value:o,dir:m})}},{supports:X,attributes:Object(Z.a)({},ee,{width:{type:"string"}}),save:function(e){var t,n=e.attributes,r=n.width,o=n.align,a=n.content,c=n.dropCap,i=n.backgroundColor,l=n.textColor,s=n.customBackgroundColor,u=n.customTextColor,b=n.fontSize,m=n.customFontSize,d=Object(W.getColorClassName)("color",l),h=Object(W.getColorClassName)("background-color",i),p=b&&"is-".concat(b,"-text"),g=Q()((t={},Object(q.a)(t,"align".concat(r),r),Object(q.a)(t,"has-background",i||s),Object(q.a)(t,"has-drop-cap",c),Object(q.a)(t,p,p),Object(q.a)(t,d,d),Object(q.a)(t,h,h),t)),f={backgroundColor:h?void 0:s,color:d?void 0:u,fontSize:p?void 0:m,textAlign:o};return Object($.createElement)(W.RichText.Content,{tagName:"p",style:f,className:g||void 0,value:a})}},{supports:X,attributes:Object(J.omit)(Object(Z.a)({},ee,{fontSize:{type:"number"}}),"customFontSize","customTextColor","customBackgroundColor"),save:function(e){var t,n=e.attributes,r=n.width,o=n.align,a=n.content,c=n.dropCap,i=n.backgroundColor,l=n.textColor,s=n.fontSize,u=Q()((t={},Object(q.a)(t,"align".concat(r),r),Object(q.a)(t,"has-background",i),Object(q.a)(t,"has-drop-cap",c),t)),b={backgroundColor:i,color:l,fontSize:s,textAlign:o};return Object($.createElement)("p",{style:b,className:u||void 0},a)},migrate:function(e){return Object(J.omit)(Object(Z.a)({},e,{customFontSize:Object(J.isFinite)(e.fontSize)?e.fontSize:void 0,customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.backgroundColor&&"#"===e.backgroundColor[0]?e.backgroundColor:void 0}),["fontSize","textColor","backgroundColor"])}},{supports:X,attributes:Object(Z.a)({},ee,{content:{type:"string",source:"html",default:""}}),save:function(e){var t=e.attributes;return Object($.createElement)($.RawHTML,null,t.content)},migrate:function(e){return e}}],ne=n(18),re=n(12),oe=n(11),ae=n(13),ce=n(14),ie=n(5),le=n(15),se=n(3),ue=n(8),be=n(4),me=window.getComputedStyle,de=Object(se.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?me(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}})),he=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(ae.a)(this,Object(ce.a)(t).apply(this,arguments))).toggleDropCap=e.toggleDropCap.bind(Object(ie.a)(e)),e}return Object(le.a)(t,e),Object(oe.a)(t,[{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(K.__)("Showing large initial letter."):Object(K.__)("Toggle to show a large initial letter.")}},{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=t.setAttributes,o=t.mergeBlocks,a=t.onReplace,c=t.className,i=t.backgroundColor,l=t.textColor,s=t.setBackgroundColor,u=t.setTextColor,b=t.fallbackBackgroundColor,m=t.fallbackTextColor,d=t.fallbackFontSize,h=t.fontSize,p=t.setFontSize,g=t.isRTL,f=n.align,v=n.content,O=n.dropCap,j=n.placeholder,y=n.direction;return Object($.createElement)($.Fragment,null,Object($.createElement)(W.BlockControls,null,Object($.createElement)(W.AlignmentToolbar,{value:f,onChange:function(e){r({align:e})}}),g&&Object($.createElement)(se.Toolbar,{controls:[{icon:"editor-ltr",title:Object(K._x)("Left to right","editor button"),isActive:"ltr"===y,onClick:function(){r({direction:"ltr"===y?void 0:"ltr"})}}]})),Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,{title:Object(K.__)("Text Settings"),className:"blocks-font-size"},Object($.createElement)(W.FontSizePicker,{fallbackFontSize:d,value:h.size,onChange:p}),Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Drop Cap"),checked:!!O,onChange:this.toggleDropCap,help:this.getDropCapHelp})),Object($.createElement)(W.PanelColorSettings,{title:Object(K.__)("Color Settings"),initialOpen:!1,colorSettings:[{value:i.color,onChange:s,label:Object(K.__)("Background Color")},{value:l.color,onChange:u,label:Object(K.__)("Text Color")}]},Object($.createElement)(W.ContrastChecker,Object(ne.a)({textColor:l.color,backgroundColor:i.color,fallbackTextColor:m,fallbackBackgroundColor:b},{fontSize:h.size})))),Object($.createElement)(W.RichText,{identifier:"content",tagName:"p",className:Q()("wp-block-paragraph",c,(e={"has-text-color":l.color,"has-background":i.color,"has-drop-cap":O},Object(q.a)(e,"has-text-align-".concat(f),f),Object(q.a)(e,i.class,i.class),Object(q.a)(e,l.class,l.class),Object(q.a)(e,h.class,h.class),e)),style:{backgroundColor:i.color,color:l.color,fontSize:h.size?h.size+"px":void 0,direction:y},value:v,onChange:function(e){r({content:e})},onSplit:function(e){return e?Object(G.createBlock)("core/paragraph",Object(Z.a)({},n,{content:e})):Object(G.createBlock)("core/paragraph")},onMerge:o,onReplace:a,onRemove:a?function(){return a([])}:void 0,"aria-label":v?Object(K.__)("Paragraph block"):Object(K.__)("Empty block; start writing or type forward slash to choose a block"),placeholder:j||Object(K.__)("Start writing or type / to choose a block"),__unstableEmbedURLOnPaste:!0}))}}]),t}($.Component),pe=Object(ue.compose)([Object(W.withColors)("backgroundColor",{textColor:"color"}),Object(W.withFontSizes)("fontSize"),de,Object(be.withSelect)((function(e){return{isRTL:(0,e("core/block-editor").getSettings)().isRTL}}))])(he),ge=Object($.createElement)(se.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object($.createElement)(se.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"}));var fe={from:[{type:"raw",priority:20,selector:"p",schema:{p:{children:Object(G.getPhrasingContentSchema)()}}}]},ve={name:"core/paragraph",category:"common",attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"p",default:""},dropCap:{type:"boolean",default:!1},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"]}}},Oe=ve.name,je={title:Object(K.__)("Paragraph"),description:Object(K.__)("Start with the building block of all narrative."),icon:ge,keywords:[Object(K.__)("text")],example:{attributes:{content:Object(K.__)("In a village of La Mancha, the name of which I have no desire to call to mind, there lived not long since one of those gentlemen that keep a lance in the lance-rack, an old buckler, a lean hack, and a greyhound for coursing."),customFontSize:28,dropCap:!0}},supports:{className:!1},transforms:fe,deprecated:te,merge:function(e,t){return{content:(e.content||"")+(t.content||"")}},getEditWrapperProps:function(e){var t=e.width;if(-1!==["wide","full","left","right"].indexOf(t))return{"data-align":t}},edit:pe,save:function(e){var t,n=e.attributes,r=n.align,o=n.content,a=n.dropCap,c=n.backgroundColor,i=n.textColor,l=n.customBackgroundColor,s=n.customTextColor,u=n.fontSize,b=n.customFontSize,m=n.direction,d=Object(W.getColorClassName)("color",i),h=Object(W.getColorClassName)("background-color",c),p=Object(W.getFontSizeClass)(u),g=Q()((t={"has-text-color":i||s,"has-background":c||l,"has-drop-cap":a},Object(q.a)(t,"has-text-align-".concat(r),r),Object(q.a)(t,p,p),Object(q.a)(t,d,d),Object(q.a)(t,h,h),t)),f={backgroundColor:h?void 0:l,color:d?void 0:s,fontSize:p?void 0:b};return Object($.createElement)(W.RichText.Content,{tagName:"p",style:f,className:g||void 0,value:o,dir:m})}},ye={align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},linkDestination:{type:"string",default:"none"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},_e=[{attributes:ye,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=Q()((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:ye,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:ye,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(ne.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}))}}],ke=n(23),Ce=n(35),we=n(19),Ee=n(26),xe=n(42),Se=n(45),Te=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object($.createElement)(se.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"})),Ne=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object($.createElement)(se.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"})),Re=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object($.createElement)(se.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($.createElement)(se.Polygon,{points:"14.5 11 11 15.51 8.5 12.5 5 17 19 17"})),Ae=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object($.createElement)(se.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"})),Be={foreground:"#1da1f2",src:Object($.createElement)(se.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object($.createElement)(se.G,null,Object($.createElement)(se.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"})))},Ie={foreground:"#ff0000",src:Object($.createElement)(se.SVG,{viewBox:"0 0 24 24"},Object($.createElement)(se.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"}))},Me={foreground:"#3b5998",src:Object($.createElement)(se.SVG,{viewBox:"0 0 24 24"},Object($.createElement)(se.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"}))},Pe=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24"},Object($.createElement)(se.G,null,Object($.createElement)(se.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"}))),Le={foreground:"#0073AA",src:Object($.createElement)(se.SVG,{viewBox:"0 0 24 24"},Object($.createElement)(se.G,null,Object($.createElement)(se.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"})))},He={foreground:"#1db954",src:Object($.createElement)(se.SVG,{viewBox:"0 0 24 24"},Object($.createElement)(se.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"}))},ze=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24"},Object($.createElement)(se.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"})),Ve={foreground:"#1ab7ea",src:Object($.createElement)(se.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object($.createElement)(se.G,null,Object($.createElement)(se.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"})))},De=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24"},Object($.createElement)(se.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"})),Fe={foreground:"#35465c",src:Object($.createElement)(se.SVG,{viewBox:"0 0 24 24"},Object($.createElement)(se.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"}))},Ue=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24"},Object($.createElement)(se.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($.createElement)(se.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($.createElement)(se.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"})),qe=[{name:"core-embed/twitter",settings:{title:"Twitter",icon:Be,keywords:["tweet"],description:Object(K.__)("Embed a tweet.")},patterns:[/^https?:\/\/(www\.)?twitter\.com\/.+/i]},{name:"core-embed/youtube",settings:{title:"YouTube",icon:Ie,keywords:[Object(K.__)("music"),Object(K.__)("video")],description:Object(K.__)("Embed a YouTube video.")},patterns:[/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i,/^https?:\/\/youtu\.be\/.+/i]},{name:"core-embed/facebook",settings:{title:"Facebook",icon:Me,description:Object(K.__)("Embed a Facebook post.")},patterns:[/^https?:\/\/www\.facebook.com\/.+/i]},{name:"core-embed/instagram",settings:{title:"Instagram",icon:Pe,keywords:[Object(K.__)("image")],description:Object(K.__)("Embed an Instagram post.")},patterns:[/^https?:\/\/(www\.)?instagr(\.am|am\.com)\/.+/i]},{name:"core-embed/wordpress",settings:{title:"WordPress",icon:Le,keywords:[Object(K.__)("post"),Object(K.__)("blog")],responsive:!1,description:Object(K.__)("Embed a WordPress post.")}},{name:"core-embed/soundcloud",settings:{title:"SoundCloud",icon:Ne,keywords:[Object(K.__)("music"),Object(K.__)("audio")],description:Object(K.__)("Embed SoundCloud content.")},patterns:[/^https?:\/\/(www\.)?soundcloud\.com\/.+/i]},{name:"core-embed/spotify",settings:{title:"Spotify",icon:He,keywords:[Object(K.__)("music"),Object(K.__)("audio")],description:Object(K.__)("Embed Spotify content.")},patterns:[/^https?:\/\/(open|play)\.spotify\.com\/.+/i]},{name:"core-embed/flickr",settings:{title:"Flickr",icon:ze,keywords:[Object(K.__)("image")],description:Object(K.__)("Embed Flickr content.")},patterns:[/^https?:\/\/(www\.)?flickr\.com\/.+/i,/^https?:\/\/flic\.kr\/.+/i]},{name:"core-embed/vimeo",settings:{title:"Vimeo",icon:Ve,keywords:[Object(K.__)("video")],description:Object(K.__)("Embed a Vimeo video.")},patterns:[/^https?:\/\/(www\.)?vimeo\.com\/.+/i]}],We=[{name:"core-embed/animoto",settings:{title:"Animoto",icon:Ae,description:Object(K.__)("Embed an Animoto video.")},patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i]},{name:"core-embed/cloudup",settings:{title:"Cloudup",icon:Te,description:Object(K.__)("Embed Cloudup content.")},patterns:[/^https?:\/\/cloudup\.com\/.+/i]},{name:"core-embed/collegehumor",settings:{title:"CollegeHumor",icon:Ae,description:Object(K.__)("Embed CollegeHumor content."),supports:{inserter:!1}},patterns:[]},{name:"core-embed/crowdsignal",settings:{title:"Crowdsignal",icon:Te,keywords:["polldaddy"],transform:[{type:"block",blocks:["core-embed/polldaddy"],transform:function(e){return Object(G.createBlock)("core-embed/crowdsignal",{content:e})}}],description:Object(K.__)("Embed Crowdsignal (formerly Polldaddy) content.")},patterns:[/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.survey\.fm)\/.+/i]},{name:"core-embed/dailymotion",settings:{title:"Dailymotion",icon:Ae,description:Object(K.__)("Embed a Dailymotion video.")},patterns:[/^https?:\/\/(www\.)?dailymotion\.com\/.+/i]},{name:"core-embed/hulu",settings:{title:"Hulu",icon:Ae,description:Object(K.__)("Embed Hulu content.")},patterns:[/^https?:\/\/(www\.)?hulu\.com\/.+/i]},{name:"core-embed/imgur",settings:{title:"Imgur",icon:Re,description:Object(K.__)("Embed Imgur content.")},patterns:[/^https?:\/\/(.+\.)?imgur\.com\/.+/i]},{name:"core-embed/issuu",settings:{title:"Issuu",icon:Te,description:Object(K.__)("Embed Issuu content.")},patterns:[/^https?:\/\/(www\.)?issuu\.com\/.+/i]},{name:"core-embed/kickstarter",settings:{title:"Kickstarter",icon:Te,description:Object(K.__)("Embed Kickstarter content.")},patterns:[/^https?:\/\/(www\.)?kickstarter\.com\/.+/i,/^https?:\/\/kck\.st\/.+/i]},{name:"core-embed/meetup-com",settings:{title:"Meetup.com",icon:Te,description:Object(K.__)("Embed Meetup.com content.")},patterns:[/^https?:\/\/(www\.)?meetu(\.ps|p\.com)\/.+/i]},{name:"core-embed/mixcloud",settings:{title:"Mixcloud",icon:Ne,keywords:[Object(K.__)("music"),Object(K.__)("audio")],description:Object(K.__)("Embed Mixcloud content.")},patterns:[/^https?:\/\/(www\.)?mixcloud\.com\/.+/i]},{name:"core-embed/polldaddy",settings:{title:"Polldaddy",icon:Te,description:Object(K.__)("Embed Polldaddy content."),supports:{inserter:!1}},patterns:[]},{name:"core-embed/reddit",settings:{title:"Reddit",icon:De,description:Object(K.__)("Embed a Reddit thread.")},patterns:[/^https?:\/\/(www\.)?reddit\.com\/.+/i]},{name:"core-embed/reverbnation",settings:{title:"ReverbNation",icon:Ne,description:Object(K.__)("Embed ReverbNation content.")},patterns:[/^https?:\/\/(www\.)?reverbnation\.com\/.+/i]},{name:"core-embed/screencast",settings:{title:"Screencast",icon:Ae,description:Object(K.__)("Embed Screencast content.")},patterns:[/^https?:\/\/(www\.)?screencast\.com\/.+/i]},{name:"core-embed/scribd",settings:{title:"Scribd",icon:Te,description:Object(K.__)("Embed Scribd content.")},patterns:[/^https?:\/\/(www\.)?scribd\.com\/.+/i]},{name:"core-embed/slideshare",settings:{title:"Slideshare",icon:Te,description:Object(K.__)("Embed Slideshare content.")},patterns:[/^https?:\/\/(.+?\.)?slideshare\.net\/.+/i]},{name:"core-embed/smugmug",settings:{title:"SmugMug",icon:Re,description:Object(K.__)("Embed SmugMug content.")},patterns:[/^https?:\/\/(www\.)?smugmug\.com\/.+/i]},{name:"core-embed/speaker",settings:{title:"Speaker",icon:Ne,supports:{inserter:!1}},patterns:[]},{name:"core-embed/speaker-deck",settings:{title:"Speaker Deck",icon:Te,transform:[{type:"block",blocks:["core-embed/speaker"],transform:function(e){return Object(G.createBlock)("core-embed/speaker-deck",{content:e})}}],description:Object(K.__)("Embed Speaker Deck content.")},patterns:[/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i]},{name:"core-embed/ted",settings:{title:"TED",icon:Ae,description:Object(K.__)("Embed a TED video.")},patterns:[/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i]},{name:"core-embed/tumblr",settings:{title:"Tumblr",icon:Fe,description:Object(K.__)("Embed a Tumblr post.")},patterns:[/^https?:\/\/(www\.)?tumblr\.com\/.+/i]},{name:"core-embed/videopress",settings:{title:"VideoPress",icon:Ae,keywords:[Object(K.__)("video")],description:Object(K.__)("Embed a VideoPress video.")},patterns:[/^https?:\/\/videopress\.com\/.+/i]},{name:"core-embed/wordpress-tv",settings:{title:"WordPress.tv",icon:Ae,description:Object(K.__)("Embed a WordPress.tv video.")},patterns:[/^https?:\/\/wordpress\.tv\/.+/i]},{name:"core-embed/amazon-kindle",settings:{title:"Amazon Kindle",icon:Ue,keywords:[Object(K.__)("ebook")],responsive:!1,description:Object(K.__)("Embed Amazon Kindle content.")},patterns:[/^https?:\/\/([a-z0-9-]+\.)?(amazon|amzn)(\.[a-z]{2,4})+\/.+/i,/^https?:\/\/(www\.)?(a\.co|z\.cn)\/.+/i]}],Ge=["facebook.com","smugmug.com"],Ke=[{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"}],Ze=n(70),$e=n.n(Ze),Ye=n(44),Qe=n.n(Ye),Je=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.some((function(t){return e.match(t)}))},Xe=function(e){return Object(J.includes)(e,'class="wp-embedded-content"')},et=function(e,t){var n=e.preview,r=e.name,o=e.attributes.url;if(o){var a=function(e){for(var t=0,n=[].concat(Object(U.a)(qe),Object(U.a)(We));t1&&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 $e()(t,(s={},Object(q.a)(s,u.className,n),Object(q.a)(s,"wp-has-aspect-ratio",n),s))}return t}var nt=Qe()((function(e,t,n,r){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(!e)return{};var a={},c=e.type,i=void 0===c?"rich":c,l=e.html,s=e.provider_name,u=Object(J.kebabCase)(Object(J.toLower)(""!==s?s:t));return Xe(l)&&(i="wp-embed"),(l||"photo"===i)&&(a.type=i,a.providerNameSlug=u),a.className=tt(l,n,r&&o),a})),rt=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object($.createElement)(se.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)(se.Path,{d:"m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z"}));var ot=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(ae.a)(this,Object(ce.a)(t).apply(this,arguments))).state={width:void 0,height:void 0},e.bindContainer=e.bindContainer.bind(Object(ie.a)(e)),e.calculateSize=e.calculateSize.bind(Object(ie.a)(e)),e}return Object(le.a)(t,e),Object(oe.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($.createElement)("div",{ref:this.bindContainer},this.props.children(e))}}]),t}($.Component),at=Object(ue.withGlobalEvents)({resize:"calculateSize"})(ot),ct=["image"],it=function(e,t){return!e&&Object(Ce.isBlobURL)(t)},lt=function(e){e.stopPropagation()},st=function(e){[we.LEFT,we.DOWN,we.RIGHT,we.UP,we.BACKSPACE,we.ENTER].indexOf(e.keyCode)>-1&&e.stopPropagation()},ut=function(e){var t=e.advancedOptions,n=e.linkDestination,r=e.mediaLinks,o=e.onChangeUrl,a=e.url,c=Object($.useState)(!1),i=Object(ke.a)(c,2),l=i[0],s=i[1],u=Object($.useCallback)((function(){s(!0)})),b=Object($.useState)(!1),m=Object(ke.a)(b,2),d=m[0],h=m[1],p=Object($.useState)(null),g=Object(ke.a)(p,2),f=g[0],v=g[1],O=Object($.useCallback)((function(){"media"!==n&&"attachment"!==n||v(""),h(!0)})),j=Object($.useCallback)((function(){h(!1)})),y=Object($.useCallback)((function(){v(null),j(),s(!1)})),_=Object($.useRef)(null),k=Object($.useCallback)((function(){return function(e){var t=_.current;t&&t.contains(e.target)||(s(!1),v(null),j())}})),C=Object($.useCallback)((function(){return function(e){f&&o(f),j(),v(null),e.preventDefault()}})),w=Object($.useCallback)((function(){y(),o("")})),E=null!==f?f:a,x=(Object(J.find)(r,["linkDestination",n])||{}).title;return Object($.createElement)($.Fragment,null,Object($.createElement)(se.IconButton,{icon:"admin-links",className:"components-toolbar__control",label:a?Object(K.__)("Edit link"):Object(K.__)("Insert link"),"aria-expanded":l,onClick:u}),l&&Object($.createElement)(W.URLPopover,{onClickOutside:k(),onClose:y,renderSettings:function(){return t},additionalControls:!E&&Object($.createElement)(se.NavigableMenu,null,Object(J.map)(r,(function(e){return Object($.createElement)(se.MenuItem,{key:e.linkDestination,icon:e.icon,onClick:function(){v(null),o(e.url),j()}},e.title)})))},(!a||d)&&Object($.createElement)(W.URLPopover.LinkEditor,{className:"editor-format-toolbar__link-container-content block-editor-format-toolbar__link-container-content",value:E,onChangeInputValue:v,onKeyDown:st,onKeyPress:lt,onSubmit:C(),autocompleteRef:_}),a&&!d&&Object($.createElement)($.Fragment,null,Object($.createElement)(W.URLPopover.LinkViewer,{className:"editor-format-toolbar__link-container-content block-editor-format-toolbar__link-container-content",onKeyPress:lt,url:a,onEditLinkClick:O,urlLabel:x}),Object($.createElement)(se.IconButton,{icon:"no",label:Object(K.__)("Remove link"),onClick:w}))))},bt=function(e){function t(e){var n,r=e.attributes;return Object(re.a)(this,t),(n=Object(ae.a)(this,Object(ce.a)(t).apply(this,arguments))).updateAlt=n.updateAlt.bind(Object(ie.a)(n)),n.updateAlignment=n.updateAlignment.bind(Object(ie.a)(n)),n.onFocusCaption=n.onFocusCaption.bind(Object(ie.a)(n)),n.onImageClick=n.onImageClick.bind(Object(ie.a)(n)),n.onSelectImage=n.onSelectImage.bind(Object(ie.a)(n)),n.onSelectURL=n.onSelectURL.bind(Object(ie.a)(n)),n.updateImage=n.updateImage.bind(Object(ie.a)(n)),n.updateWidth=n.updateWidth.bind(Object(ie.a)(n)),n.updateHeight=n.updateHeight.bind(Object(ie.a)(n)),n.updateDimensions=n.updateDimensions.bind(Object(ie.a)(n)),n.onSetHref=n.onSetHref.bind(Object(ie.a)(n)),n.onSetLinkClass=n.onSetLinkClass.bind(Object(ie.a)(n)),n.onSetLinkRel=n.onSetLinkRel.bind(Object(ie.a)(n)),n.onSetNewTab=n.onSetNewTab.bind(Object(ie.a)(n)),n.getFilename=n.getFilename.bind(Object(ie.a)(n)),n.toggleIsEditing=n.toggleIsEditing.bind(Object(ie.a)(n)),n.onUploadError=n.onUploadError.bind(Object(ie.a)(n)),n.onImageError=n.onImageError.bind(Object(ie.a)(n)),n.getLinkDestinations=n.getLinkDestinations.bind(Object(ie.a)(n)),n.state={captionFocused:!1,isEditing:!r.url},n}return Object(le.a)(t,e),Object(oe.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.mediaUpload,o=t.noticeOperations,a=n.id,c=n.url,i=void 0===c?"":c;if(it(a,i)){var l=Object(Ce.getBlobByURL)(i);l&&r({filesList:[l],onFileChange:function(t){var n=Object(ke.a)(t,1)[0];e.onSelectImage(n)},allowedTypes:ct,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;it(n,o)&&!it(c,l)&&Object(Ce.revokeBlobURL)(l),!this.props.isSelected&&e.isSelected&&this.state.captionFocused&&this.setState({captionFocused:!1})}},{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e),this.setState({isEditing:!0})}},{key:"onSelectImage",value:function(e){if(e&&e.url){this.setState({isEditing:!1});var t,n,r,o=this.props.attributes,a=o.id,c=o.url,i=o.alt,l=o.caption,s=(t=e,(n=Object(J.pick)(t,["alt","id","link","caption"])).url=Object(J.get)(t,["sizes","large","url"])||Object(J.get)(t,["media_details","sizes","large","source_url"])||t.url,n);it(a,c)&&(i&&(s=Object(J.omit)(s,["alt"])),l&&(s=Object(J.omit)(s,["caption"]))),r=e.id&&e.id===a?{url:c}:{width:void 0,height:void 0,sizeSlug:"large"},this.props.setAttributes(Object(Z.a)({},s,r))}else this.props.setAttributes({url:void 0,alt:void 0,id:void 0,caption:void 0})}},{key:"onSelectURL",value:function(e){e!==this.props.attributes.url&&this.props.setAttributes({url:e,id:void 0,sizeSlug:"large"}),this.setState({isEditing:!1})}},{key:"onImageError",value:function(e){var t=et({attributes:{url:e}});void 0!==t&&this.props.onReplace(t)}},{key:"onSetHref",value:function(e){var t,n=this.getLinkDestinations();this.props.attributes.linkDestination===(t=e?(Object(J.find)(n,(function(t){return t.url===e}))||{linkDestination:"custom"}).linkDestination:"none")?this.props.setAttributes({href:e}):this.props.setAttributes({linkDestination:t,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(Z.a)({},t,{align:e}))}},{key:"updateImage",value:function(e){var t=this.props.image,n=Object(J.get)(t,["media_details","sizes",e,"source_url"]);if(!n)return null;this.props.setAttributes({url:n,width:void 0,height:void 0,sizeSlug:e})}},{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(Ee.getPath)(e);if(t)return Object(J.last)(t.split("/"))}},{key:"getLinkDestinations",value:function(){return[{linkDestination:"media",title:Object(K.__)("Media File"),url:this.props.image&&this.props.image.source_url||this.props.attributes.url,icon:rt},{linkDestination:"attachment",title:Object(K.__)("Attachment Page"),url:this.props.image&&this.props.image.link,icon:Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:"M0 0h24v24H0V0z",fill:"none"}),Object($.createElement)(se.Path,{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v5h5v11H6z"}))}]}},{key:"toggleIsEditing",value:function(){this.setState({isEditing:!this.state.isEditing}),this.state.isEditing?Object(Se.speak)(Object(K.__)("You are now viewing the image in the image block.")):Object(Se.speak)(Object(K.__)("You are now editing the image in the image block."))}},{key:"getImageSizeOptions",value:function(){var e=this.props.imageSizes;return Object(J.map)(e,(function(e){var t=e.name;return{value:e.slug,label:t}}))}},{key:"render",value:function(){var e=this,t=this.state.isEditing,n=this.props,r=n.attributes,o=n.setAttributes,a=n.isLargeViewport,c=n.isSelected,i=n.className,l=n.maxWidth,s=n.noticeUI,u=n.isRTL,b=n.onResizeStart,m=n.onResizeStop,d=r.url,h=r.alt,p=r.caption,g=r.align,f=r.id,v=r.href,O=r.rel,j=r.linkClass,y=r.linkDestination,_=r.width,k=r.height,C=r.linkTarget,w=r.sizeSlug,E=function(e,t){return t&&!e&&!Object(Ce.isBlobURL)(t)}(f,d),x=Object($.createElement)(se.SVG,{width:20,height:20,viewBox:"0 0 20 20"},Object($.createElement)(se.Rect,{x:11,y:3,width:7,height:5,rx:1}),Object($.createElement)(se.Rect,{x:2,y:12,width:7,height:5,rx:1}),Object($.createElement)(se.Path,{d:"M13,12h1a3,3,0,0,1-3,3v2a5,5,0,0,0,5-5h1L15,9Z"}),Object($.createElement)(se.Path,{d:"M4,8H3l2,3L7,8H6A3,3,0,0,1,9,5V3A5,5,0,0,0,4,8Z"})),S=Object($.createElement)(W.BlockControls,null,Object($.createElement)(W.BlockAlignmentToolbar,{value:g,onChange:this.updateAlignment}),d&&Object($.createElement)($.Fragment,null,Object($.createElement)(se.Toolbar,null,Object($.createElement)(se.IconButton,{className:Q()("components-icon-button components-toolbar__control",{"is-active":this.state.isEditing}),label:Object(K.__)("Edit image"),"aria-pressed":this.state.isEditing,onClick:this.toggleIsEditing,icon:x})),Object($.createElement)(se.Toolbar,null,Object($.createElement)(ut,{url:v||"",onChangeUrl:this.onSetHref,mediaLinks:this.getLinkDestinations(),linkDestination:y,advancedOptions:Object($.createElement)($.Fragment,null,Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Open in New Tab"),onChange:this.onSetNewTab,checked:"_blank"===C}),Object($.createElement)(se.TextControl,{label:Object(K.__)("Link CSS Class"),value:j||"",onKeyPress:lt,onKeyDown:st,onChange:this.onSetLinkClass}),Object($.createElement)(se.TextControl,{label:Object(K.__)("Link Rel"),value:O||"",onChange:this.onSetLinkRel,onKeyPress:lt,onKeyDown:st}))})))),T=E?d:void 0,N={title:d?Object(K.__)("Edit image"):Object(K.__)("Image"),instructions:Object(K.__)("Upload an image file, pick one from your media library, or add one with a URL.")},R=!!d&&Object($.createElement)("img",{alt:Object(K.__)("Edit image"),title:Object(K.__)("Edit image"),className:"edit-image-preview",src:d}),A=Object($.createElement)(W.MediaPlaceholder,{icon:Object($.createElement)(W.BlockIcon,{icon:rt}),className:i,labels:N,onSelect:this.onSelectImage,onSelectURL:this.onSelectURL,onDoubleClick:this.toggleIsEditing,onCancel:!!d&&this.toggleIsEditing,notices:s,onError:this.onUploadError,accept:"image/*",allowedTypes:ct,value:{id:f,src:T},mediaPreview:R,dropZoneUIOnly:!t&&d});if(t||!d)return Object($.createElement)($.Fragment,null,S,A);var B=Q()(i,Object(q.a)({"is-transient":Object(Ce.isBlobURL)(d),"is-resized":!!_||!!k,"is-focused":c},"size-".concat(w),w)),I=-1===["wide","full"].indexOf(g)&&a,M=this.getImageSizeOptions(),P=function(t,n){return Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,{title:Object(K.__)("Image Settings")},Object($.createElement)(se.TextareaControl,{label:Object(K.__)("Alt Text (Alternative Text)"),value:h,onChange:e.updateAlt,help:Object($.createElement)($.Fragment,null,Object($.createElement)(se.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},Object(K.__)("Describe the purpose of the image")),Object(K.__)("Leave empty if the image is purely decorative."))}),!Object(J.isEmpty)(M)&&Object($.createElement)(se.SelectControl,{label:Object(K.__)("Image Size"),value:w,options:M,onChange:e.updateImage}),I&&Object($.createElement)("div",{className:"block-library-image__dimensions"},Object($.createElement)("p",{className:"block-library-image__dimensions__row"},Object(K.__)("Image Dimensions")),Object($.createElement)("div",{className:"block-library-image__dimensions__row"},Object($.createElement)(se.TextControl,{type:"number",className:"block-library-image__dimensions__width",label:Object(K.__)("Width"),value:_||t||"",min:1,onChange:e.updateWidth}),Object($.createElement)(se.TextControl,{type:"number",className:"block-library-image__dimensions__height",label:Object(K.__)("Height"),value:k||n||"",min:1,onChange:e.updateHeight})),Object($.createElement)("div",{className:"block-library-image__dimensions__row"},Object($.createElement)(se.ButtonGroup,{"aria-label":Object(K.__)("Image Size")},[25,50,75,100].map((function(r){var o=Math.round(t*(r/100)),a=Math.round(n*(r/100)),c=_===o&&k===a;return Object($.createElement)(se.Button,{key:r,isSmall:!0,isPrimary:c,"aria-pressed":c,onClick:e.updateDimensions(o,a)},r,"%")}))),Object($.createElement)(se.Button,{isSmall:!0,onClick:e.updateDimensions()},Object(K.__)("Reset"))))))};return Object($.createElement)($.Fragment,null,S,Object($.createElement)("figure",{className:B},Object($.createElement)(at,{src:d,dirtynessTrigger:g},(function(t){var n,r=t.imageWidthWithinContainer,a=t.imageHeightWithinContainer,c=t.imageWidth,i=t.imageHeight,s=e.getFilename(d);n=h||(s?Object(K.sprintf)(Object(K.__)("This image has an empty alt attribute; its file name is %s"),s):Object(K.__)("This image has an empty alt attribute"));var p=Object($.createElement)($.Fragment,null,Object($.createElement)("img",{src:d,alt:n,onDoubleClick:e.toggleIsEditing,onClick:e.onImageClick,onError:function(){return e.onImageError(d)}}),Object(Ce.isBlobURL)(d)&&Object($.createElement)(se.Spinner,null));if(!I||!r)return Object($.createElement)($.Fragment,null,P(c,i),Object($.createElement)("div",{style:{width:_,height:k}},p));var f=_||r,v=k||a,O=c/i,j=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"},width:{type:"number"},height:{type:"number"},sizeSlug:{type:"string"},linkDestination:{type:"string",default:"none"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}}},ft=gt.name,vt={title:Object(K.__)("Image"),description:Object(K.__)("Insert an image to make a visual statement."),icon:rt,keywords:["img",Object(K.__)("photo")],example:{attributes:{sizeSlug:"large",url:"https://s.w.org/images/core/5.3/MtBlanc1.jpg",caption:Object(K.__)("Mont Blanc appears—still, snowy, and serene.")}},styles:[{name:"default",label:Object(K._x)("Default","block style"),isDefault:!0},{name:"circle-mask",label:Object(K._x)("Circle Mask","block style")}],transforms:pt,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:mt,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=n.sizeSlug,p=Q()((t={},Object(q.a)(t,"align".concat(c),c),Object(q.a)(t,"size-".concat(h),h),Object(q.a)(t,"is-resized",u||b),t)),g=Object($.createElement)("img",{src:r,alt:o,className:m?"wp-image-".concat(m):null,width:u,height:b}),f=Object($.createElement)($.Fragment,null,i?Object($.createElement)("a",{className:s,href:i,target:d,rel:l},g):g,!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:p},f)):Object($.createElement)("figure",{className:p},f)},deprecated:_e},Ot={className:!1,anchor:!0},jt={align:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},level:{type:"number",default:2},placeholder:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},yt=[{attributes:jt,save:function(e){var t,n=e.attributes,r=n.align,o=n.content,a=n.customTextColor,c=n.level,i=n.textColor,l="h"+c,s=Object(W.getColorClassName)("color",i),u=Q()((t={},Object(q.a)(t,s,s),Object(q.a)(t,"has-text-align-".concat(r),r),t));return Object($.createElement)(W.RichText.Content,{className:u||void 0,tagName:l,style:{color:s?void 0:a},value:o})},supports:Ot},{supports:Ot,attributes:jt,save:function(e){var t=e.attributes,n=t.align,r=t.level,o=t.content,a=t.textColor,c=t.customTextColor,i="h"+r,l=Object(W.getColorClassName)("color",a),s=Q()(Object(q.a)({},l,l));return Object($.createElement)(W.RichText.Content,{className:s||void 0,tagName:i,style:{textAlign:n,color:l?void 0:c},value:o})}}];function _t(e){var t=e.level,n={1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z"};return n.hasOwnProperty(t)?Object($.createElement)(se.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:n[t]})):null}var kt=function(e){function t(){return Object(re.a)(this,t),Object(ae.a)(this,Object(ce.a)(t).apply(this,arguments))}return Object(le.a)(t,e),Object(oe.a)(t,[{key:"createLevelControl",value:function(e,t,n){return{icon:Object($.createElement)(_t,{level:e}),title:Object(K.sprintf)(Object(K.__)("Heading %d"),e),isActive:e===t,onClick:function(){return n(e)}}}},{key:"render",value:function(){var e=this,t=this.props,n=t.isCollapsed,r=void 0===n||n,o=t.minLevel,a=t.maxLevel,c=t.selectedLevel,i=t.onChange;return Object($.createElement)(se.Toolbar,{isCollapsed:r,icon:Object($.createElement)(_t,{level:c}),controls:Object(J.range)(o,a).map((function(t){return e.createLevelControl(t,c,i)}))})}}]),t}($.Component),Ct=Object($.memo)((function(e){var t=e.textColorValue,n=e.setTextColor;return Object($.createElement)(W.PanelColorSettings,{title:Object(K.__)("Color Settings"),initialOpen:!1,colorSettings:[{value:t,onChange:n,label:Object(K.__)("Text Color")}]})}));var wt=Object(ue.compose)([Object(W.withColors)("backgroundColor",{textColor:"color"})])((function(e){var t,n=e.attributes,r=e.setAttributes,o=e.mergeBlocks,a=e.onReplace,c=e.className,i=e.textColor,l=e.setTextColor,s=n.align,u=n.content,b=n.level,m=n.placeholder,d="h"+b;return Object($.createElement)($.Fragment,null,Object($.createElement)(W.BlockControls,null,Object($.createElement)(kt,{minLevel:2,maxLevel:5,selectedLevel:b,onChange:function(e){return r({level:e})}}),Object($.createElement)(W.AlignmentToolbar,{value:s,onChange:function(e){r({align:e})}})),Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,{title:Object(K.__)("Heading Settings")},Object($.createElement)("p",null,Object(K.__)("Level")),Object($.createElement)(kt,{isCollapsed:!1,minLevel:1,maxLevel:7,selectedLevel:b,onChange:function(e){return r({level:e})}})),Object($.createElement)(Ct,{setTextColor:l,textColorValue:i.color})),Object($.createElement)(W.RichText,{identifier:"content",wrapperClassName:"wp-block-heading",tagName:d,value:u,onChange:function(e){return r({content:e})},onMerge:o,onSplit:function(e){return e?Object(G.createBlock)("core/heading",Object(Z.a)({},n,{content:e})):Object(G.createBlock)("core/paragraph")},onReplace:a,onRemove:function(){return a([])},className:Q()(c,(t={},Object(q.a)(t,"has-text-align-".concat(s),s),Object(q.a)(t,"has-text-color",i.color),Object(q.a)(t,i.class,i.class),t)),placeholder:m||Object(K.__)("Write heading…"),style:{color:i.color}}))}));var Et={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(Z.a)({},Object(G.getBlockAttributes)("core/heading",e.outerHTML),{level:(t=e.nodeName,Number(t.substr(1)))}));var t}}].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})}}]},xt={name:"core/heading",category:"common",attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},level:{type:"number",default:2},placeholder:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}}},St=xt.name,Tt={title:Object(K.__)("Heading"),description:Object(K.__)("Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content."),icon:"heading",keywords:[Object(K.__)("title"),Object(K.__)("subtitle")],supports:{className:!1,anchor:!0},example:{attributes:{content:Object(K.__)("Code is Poetry"),level:2}},transforms:Et,deprecated:yt,merge:function(e,t){return{content:(e.content||"")+(t.content||"")}},edit:wt,save:function(e){var t,n=e.attributes,r=n.align,o=n.content,a=n.customTextColor,c=n.level,i=n.textColor,l="h"+c,s=Object(W.getColorClassName)("color",i),u=Q()((t={},Object(q.a)(t,s,s),Object(q.a)(t,"has-text-color",i||a),Object(q.a)(t,"has-text-align-".concat(r),r),t));return Object($.createElement)(W.RichText.Content,{className:u||void 0,tagName:l,style:{color:s?void 0:a},value:o})}},Nt={value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"}},Rt=[{attributes:Nt,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}))}},{attributes:Object(Z.a)({},Nt,{style:{type:"number",default:1}}),migrate:function(e){return 2===e.style?Object(Z.a)({},Object(J.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(Z.a)({},Nt,{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}))}}];var At=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object($.createElement)(se.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"}));var Bt=n(21),It=n(22),Mt={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:function(e){return Object(G.createBlock)("core/quote",{value:Object(It.toHTMLString)({value:Object(It.join)(e.map((function(e){var t=e.content;return Object(It.create)({html:t})})),"\u2028"),multilineTag:"p"})})}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content;return Object(G.createBlock)("core/quote",{value:"

".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(It.split)(Object(It.create)({html:t,multilineTag:"p"}),"\u2028").map((function(e){return Object(G.createBlock)("core/paragraph",{content:Object(It.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(Bt.a)(e,["value","citation"]);if("

"===t)return Object(G.createBlock)("core/heading",{content:n});var o=Object(It.split)(Object(It.create)({html:t,multilineTag:"p"}),"\u2028"),a=Object(G.createBlock)("core/heading",{content:Object(It.toHTMLString)({value:o[0]})});if(!n&&1===o.length)return a;var c=o.slice(1);return[a,Object(G.createBlock)("core/quote",Object(Z.a)({},r,{citation:n,value:Object(It.toHTMLString)({value:c.length?Object(It.join)(o.slice(1),"\u2028"):Object(It.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})}}]},Pt={name:"core/quote",category:"common",attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"}}},Lt=Pt.name,Ht={title:Object(K.__)("Quote"),description:Object(K.__)('Give quoted text visual emphasis. "In quoting others, we cite ourselves." — Julio Cortázar'),icon:At,keywords:[Object(K.__)("blockquote"),Object(K.__)("cite")],example:{attributes:{value:"

"+Object(K.__)("In quoting others, we cite ourselves.")+"

",citation:"Julio Cortázar",className:"is-style-large"}},styles:[{name:"default",label:Object(K._x)("Default","block style"),isDefault:!0},{name:"large",label:Object(K._x)("Large","block style")}],transforms:Mt,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)(se.BlockQuotation,{className:Q()(c,Object(q.a)({},"has-text-align-".concat(i),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(K.__)("Write quote…"),onReplace:a,onSplit:function(e){return Object(G.createBlock)("core/quote",Object(Z.a)({},t,{value:e}))},__unstableOnSplitMiddle:function(){return Object(G.createBlock)("core/paragraph")}}),(!W.RichText.isEmpty(s)||r)&&Object($.createElement)(W.RichText,{identifier:"citation",value:s,onChange:function(e){return n({citation:e})},__unstableMobileNoFocusOnMount:!0,placeholder:Object(K.__)("Write citation…"),className:"wp-block-quote__citation"})))},save:function(e){var t=e.attributes,n=t.align,r=t.value,o=t.citation,a=Q()(Object(q.a)({},"has-text-align-".concat(n),n));return Object($.createElement)("blockquote",{className:a},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 r||(r=e.citation),n&&"

"!==n?Object(Z.a)({},e,{value:e.value+n,citation:r}):Object(Z.a)({},e,{citation:r})},deprecated:Rt};function zt(e){return Math.min(3,e.images.length)}var Vt=function(e){var t=Object(J.pick)(e,["alt","id","link","caption"]);t.url=Object(J.get)(e,["sizes","large","url"])||Object(J.get)(e,["media_details","sizes","large","source_url"])||e.url;var n=Object(J.get)(e,["sizes","full","url"])||Object(J.get)(e,["media_details","sizes","full","source_url"]);return n&&(t.fullUrl=n),t},Dt=[{attributes:{images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},fullUrl:{source:"attribute",selector:"img",attribute:"data-full-url"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},link:{source:"attribute",selector:"img",attribute:"data-link"},caption:{type:"array",source:"children",selector:"figcaption"}}},ids:{type:"array",default:[]},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?zt(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.fullUrl||e.url;break;case"attachment":t=e.link}var n=Object($.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"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:{images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},link:{source:"attribute",selector:"img",attribute:"data-link"},caption:{type:"array",source:"children",selector:"figcaption"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},isEligible:function(e){var t=e.images,n=e.ids;return t&&t.length>0&&(!n&&t||n&&t&&n.length!==t.length||Object(J.some)(t,(function(e,t){return!e&&null!==n[t]||parseInt(e,10)!==n[t]})))},migrate:function(e){return Object(Z.a)({},e,{ids:Object(J.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?zt(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:{images:{type:"array",default:[],source:"query",selector:"div.wp-block-gallery figure.blocks-gallery-image img",query:{url:{source:"attribute",attribute:"src"},alt:{source:"attribute",attribute:"alt",default:""},id:{source:"attribute",attribute:"data-id"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},align:{type:"string",default:"none"}},save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?zt(t):r,a=t.align,c=t.imageCrop,i=t.linkTo,l=Q()("columns-".concat(o),{alignnone:"none"===a,"is-cropped":c});return Object($.createElement)("div",{className:l},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)})))}}],Ft=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object($.createElement)(se.G,null,Object($.createElement)(se.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"}))),Ut=Object($.createElement)(se.SVG,{width:"18",height:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:"M5 8.70002L10.6 14.4L12 12.9L7.8 8.70002L12 4.50002L10.6 3.00002L5 8.70002Z"})),qt=Object($.createElement)(se.SVG,{width:"18",height:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:"M13 8.7L7.4 3L6 4.5L10.2 8.7L6 12.9L7.4 14.4L13 8.7Z"})),Wt=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(ae.a)(this,Object(ce.a)(t).apply(this,arguments))).onSelectImage=e.onSelectImage.bind(Object(ie.a)(e)),e.onSelectCaption=e.onSelectCaption.bind(Object(ie.a)(e)),e.onRemoveImage=e.onRemoveImage.bind(Object(ie.a)(e)),e.bindContainer=e.bindContainer.bind(Object(ie.a)(e)),e.state={captionSelected:!1},e}return Object(le.a)(t,e),Object(oe.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:"onSelectImage",value:function(){this.props.isSelected||this.props.onSelect(),this.state.captionSelected&&this.setState({captionSelected:!1})}},{key:"onRemoveImage",value:function(e){this.container===document.activeElement&&this.props.isSelected&&-1!==[we.BACKSPACE,we.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.isFirstItem,l=t.isLastItem,s=t.isSelected,u=t.caption,b=t.onRemove,m=t.onMoveForward,d=t.onMoveBackward,h=t.setAttributes,p=t["aria-label"];switch(a){case"media":e=n;break;case"attachment":e=c}var g=Object($.createElement)($.Fragment,null,Object($.createElement)("img",{src:n,alt:r,"data-id":o,onClick:this.onSelectImage,onFocus:this.onSelectImage,onKeyDown:this.onRemoveImage,tabIndex:"0","aria-label":p,ref:this.bindContainer}),Object(Ce.isBlobURL)(n)&&Object($.createElement)(se.Spinner,null)),f=Q()({"is-selected":s,"is-transient":Object(Ce.isBlobURL)(n)});return Object($.createElement)("figure",{className:f},e?Object($.createElement)("a",{href:e},g):g,Object($.createElement)("div",{className:"block-library-gallery-item__move-menu"},Object($.createElement)(se.IconButton,{icon:Ut,onClick:i?void 0:d,className:"blocks-gallery-item__move-backward",label:Object(K.__)("Move image backward"),"aria-disabled":i,disabled:!s}),Object($.createElement)(se.IconButton,{icon:qt,onClick:l?void 0:m,className:"blocks-gallery-item__move-forward",label:Object(K.__)("Move image forward"),"aria-disabled":l,disabled:!s})),Object($.createElement)("div",{className:"block-library-gallery-item__inline-menu"},Object($.createElement)(se.IconButton,{icon:"no-alt",onClick:b,className:"blocks-gallery-item__remove",label:Object(K.__)("Remove image"),disabled:!s})),(s||u)&&Object($.createElement)(W.RichText,{tagName:"figcaption",placeholder:s?Object(K.__)("Write caption…"):null,value:u,isSelected:this.state.captionSelected,onChange:function(e){return h({caption:e})},unstableOnFocus:this.onSelectCaption,inlineToolbar:!0}))}}]),t}($.Component),Gt=Object(be.withSelect)((function(e,t){var n=e("core").getMedia,r=t.id;return{image:r?n(r):null}}))(Wt),Kt=[{value:"attachment",label:Object(K.__)("Attachment Page")},{value:"media",label:Object(K.__)("Media File")},{value:"none",label:Object(K.__)("None")}],Zt=["image"],$t=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(ae.a)(this,Object(ce.a)(t).apply(this,arguments))).onSelectImage=e.onSelectImage.bind(Object(ie.a)(e)),e.onSelectImages=e.onSelectImages.bind(Object(ie.a)(e)),e.setLinkTo=e.setLinkTo.bind(Object(ie.a)(e)),e.setColumnsNumber=e.setColumnsNumber.bind(Object(ie.a)(e)),e.toggleImageCrop=e.toggleImageCrop.bind(Object(ie.a)(e)),e.onMove=e.onMove.bind(Object(ie.a)(e)),e.onMoveForward=e.onMoveForward.bind(Object(ie.a)(e)),e.onMoveBackward=e.onMoveBackward.bind(Object(ie.a)(e)),e.onRemoveImage=e.onRemoveImage.bind(Object(ie.a)(e)),e.onUploadError=e.onUploadError.bind(Object(ie.a)(e)),e.setImageAttributes=e.setImageAttributes.bind(Object(ie.a)(e)),e.setAttributes=e.setAttributes.bind(Object(ie.a)(e)),e.onFocusGalleryCaption=e.onFocusGalleryCaption.bind(Object(ie.a)(e)),e.state={selectedImage:null,attachmentCaptions:null},e}return Object(le.a)(t,e),Object(oe.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(Z.a)({},e,{ids:Object(J.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:"onMove",value:function(e,t){var n=Object(U.a)(this.props.attributes.images);n.splice(t,1,this.props.attributes.images[e]),n.splice(e,1,this.props.attributes.images[t]),this.setState({selectedImage:t}),this.setAttributes({images:n})}},{key:"onMoveForward",value:function(e){var t=this;return function(){e!==t.props.attributes.images.length-1&&t.onMove(e,e+1)}}},{key:"onMoveBackward",value:function(e){var t=this;return function(){0!==e&&t.onMove(e,e-1)}}},{key:"onRemoveImage",value:function(e){var t=this;return function(){var n=Object(J.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:"selectCaption",value:function(e,t,n){var r=Object(J.find)(t,{id:e.id}),o=r?r.caption:e.caption;if(!n)return o;var a=Object(J.find)(n,{id:e.id});return a&&a.caption!==e.caption?e.caption:o}},{key:"onSelectImages",value:function(e){var t=this,n=this.props.attributes,r=n.columns,o=n.images,a=this.state.attachmentCaptions;this.setState({attachmentCaptions:e.map((function(e){return{id:e.id,caption:e.caption}}))}),this.setAttributes({images:e.map((function(e){return Object(Z.a)({},Vt(e),{caption:t.selectCaption(e,o,a)})})),columns:r?Math.min(e.length,r):r})}},{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{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(K.__)("Thumbnails are cropped to align."):Object(K.__)("Thumbnails are not cropped.")}},{key:"onFocusGalleryCaption",value:function(){this.setState({selectedImage:null})}},{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(Z.a)({},n[e],t)],Object(U.a)(n.slice(e+1)))})}},{key:"componentDidMount",value:function(){var e=this.props,t=e.attributes,n=e.mediaUpload,r=t.images;if(Object(J.every)(r,(function(e){var t=e.url;return Object(Ce.isBlobURL)(t)}))){var o=Object(J.map)(r,(function(e){var t=e.url;return Object(Ce.getBlobByURL)(t)}));Object(J.forEach)(r,(function(e){var t=e.url;return Object(Ce.revokeBlobURL)(t)})),n({filesList:o,onFileChange:this.onSelectImages,allowedTypes:["image"]})}}},{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.className,a=n.isSelected,c=n.noticeUI,i=n.setAttributes,l=r.align,s=r.columns,u=void 0===s?zt(r):s,b=r.caption,m=r.imageCrop,d=r.images,h=r.linkTo,p=!!d.length,g=p&&Object(J.some)(d,(function(e){return e.id})),f=Object($.createElement)(W.MediaPlaceholder,{addToGallery:g,isAppender:p,className:o,dropZoneUIOnly:p&&!a,icon:!p&&Object($.createElement)(W.BlockIcon,{icon:Ft}),labels:{title:!p&&Object(K.__)("Gallery"),instructions:!p&&Object(K.__)("Drag images, upload new ones or select files from your library.")},onSelect:this.onSelectImages,accept:"image/*",allowedTypes:Zt,multiple:!0,value:g?d:void 0,onError:this.onUploadError,notices:p?void 0:c});if(!p)return f;var v=Q()("blocks-gallery-caption",{"screen-reader-text":!a&&W.RichText.isEmpty(b)});return Object($.createElement)($.Fragment,null,Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,{title:Object(K.__)("Gallery Settings")},d.length>1&&Object($.createElement)(se.RangeControl,{label:Object(K.__)("Columns"),value:u,onChange:this.setColumnsNumber,min:1,max:Math.min(8,d.length),required:!0}),Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Crop Images"),checked:!!m,onChange:this.toggleImageCrop,help:this.getImageCropHelp}),Object($.createElement)(se.SelectControl,{label:Object(K.__)("Link To"),value:h,onChange:this.setLinkTo,options:Kt}))),c,Object($.createElement)("figure",{className:Q()(o,(e={},Object(q.a)(e,"align".concat(l),l),Object(q.a)(e,"columns-".concat(u),u),Object(q.a)(e,"is-cropped",m),e))},Object($.createElement)("ul",{className:"blocks-gallery-grid"},d.map((function(e,n){var r=Object(K.sprintf)(Object(K.__)("image %1$d of %2$d in gallery"),n+1,d.length);return Object($.createElement)("li",{className:"blocks-gallery-item",key:e.id||e.url},Object($.createElement)(Gt,{url:e.url,alt:e.alt,id:e.id,isFirstItem:0===n,isLastItem:n+1===d.length,isSelected:a&&t.state.selectedImage===n,onMoveBackward:t.onMoveBackward(n),onMoveForward:t.onMoveForward(n),onRemove:t.onRemoveImage(n),onSelect:t.onSelectImage(n),setAttributes:function(e){return t.setImageAttributes(n,e)},caption:e.caption,"aria-label":r}))}))),f,Object($.createElement)(W.RichText,{tagName:"figcaption",className:v,placeholder:Object(K.__)("Write gallery caption…"),value:b,unstableOnFocus:this.onFocusGalleryCaption,onChange:function(e){return i({caption:e})},inlineToolbar:!0})))}}]),t}($.Component),Yt=Object(ue.compose)([Object(be.withSelect)((function(e){return{mediaUpload:(0,e("core/block-editor").getSettings)().__experimentalMediaUpload}})),se.withNotices])($t);var Qt=function(e){return e?e.split(",").map((function(e){return parseInt(e,10)})):[]},Jt={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:function(e){var t=e[0].align;t=Object(J.every)(e,["align",t])?t:void 0;var n=Object(J.filter)(e,(function(e){return e.url}));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 Qt(t).map((function(e){return{id:e}}))}},ids:{type:"array",shortcode:function(e){var t=e.named.ids;return Qt(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(J.every)(e,(function(e){return 0===e.type.indexOf("image/")}))},transform:function(e){return Object(G.createBlock)("core/gallery",{images:e.map((function(e){return Vt({url:Object(Ce.createBlobURL)(e)})}))})}}],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})}}]},Xt={name:"core/gallery",category:"common",attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},fullUrl:{source:"attribute",selector:"img",attribute:"data-full-url"},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:".blocks-gallery-item__caption"}}},ids:{type:"array",default:[]},columns:{type:"number"},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}}},en=Xt.name,tn={title:Object(K.__)("Gallery"),description:Object(K.__)("Display multiple images in a rich gallery."),icon:Ft,keywords:[Object(K.__)("images"),Object(K.__)("photos")],example:{attributes:{columns:2,images:[{url:"https://s.w.org/images/core/5.3/Glacial_lakes%2C_Bhutan.jpg"},{url:"https://s.w.org/images/core/5.3/Sediment_off_the_Yucatan_Peninsula.jpg"}]}},supports:{align:!0},transforms:Jt,edit:Yt,save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?zt(t):r,a=t.imageCrop,c=t.caption,i=t.linkTo;return Object($.createElement)("figure",{className:"columns-".concat(o," ").concat(a?"is-cropped":"")},Object($.createElement)("ul",{className:"blocks-gallery-grid"},n.map((function(e){var t;switch(i){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}var n=Object($.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"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,!W.RichText.isEmpty(e.caption)&&Object($.createElement)(W.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!W.RichText.isEmpty(c)&&Object($.createElement)(W.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:c}))},deprecated:Dt},nn=n(58),rn=n.n(nn);var on=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:"M21 6V20C21 21.1 20.1 22 19 22H5C3.89 22 3 21.1 3 20L3.01 6C3.01 4.9 3.89 4 5 4H6V2H8V4H16V2H18V4H19C20.1 4 21 4.9 21 6ZM5 8H19V6H5V8ZM19 20V10H5V20H19ZM11 12H17V14H11V12ZM17 16H11V18H17V16ZM7 12H9V14H7V12ZM9 18V16H7V18H9Z"})),an="core/archives",cn={title:Object(K.__)("Archives"),description:Object(K.__)("Display a monthly archive of your posts."),icon:on,category:"widgets",supports:{align:!0,html:!1},edit:function(e){var t=e.attributes,n=e.setAttributes,r=t.showPostCounts,o=t.displayAsDropdown;return Object($.createElement)($.Fragment,null,Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,{title:Object(K.__)("Archives Settings")},Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Display as Dropdown"),checked:o,onChange:function(){return n({displayAsDropdown:!o})}}),Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Show Post Counts"),checked:r,onChange:function(){return n({showPostCounts:!r})}}))),Object($.createElement)(se.Disabled,null,Object($.createElement)(rn.a,{block:"core/archives",attributes:t})))}},ln=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object($.createElement)(se.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"})),sn=["audio"],un=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(ae.a)(this,Object(ce.a)(t).apply(this,arguments))).state={editing:!e.props.attributes.src},e.toggleAttribute=e.toggleAttribute.bind(Object(ie.a)(e)),e.onSelectURL=e.onSelectURL.bind(Object(ie.a)(e)),e.onUploadError=e.onUploadError.bind(Object(ie.a)(e)),e}return Object(le.a)(t,e),Object(oe.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.mediaUpload,o=t.noticeOperations,a=t.setAttributes,c=n.id,i=n.src,l=void 0===i?"":i;if(!c&&Object(Ce.isBlobURL)(l)){var s=Object(Ce.getBlobByURL)(l);s&&r({filesList:[s],onFileChange:function(e){var t=Object(ke.a)(e,1)[0],n=t.id,r=t.url;a({id:n,src:r})},onError:function(t){a({src:void 0,id:void 0}),e.setState({editing:!0}),o.createErrorNotice(t)},allowedTypes:sn})}}},{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=et({attributes:{url:e}});if(void 0!==o)return void this.props.onReplace(o);r({src:e,id:void 0})}this.setState({editing:!1})}},{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"getAutoplayHelp",value:function(e){return e?Object(K.__)("Note: Autoplaying audio may cause usability issues for some visitors."):null}},{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.noticeUI,m=this.state.editing,d=function(){e.setState({editing:!0})};return m?Object($.createElement)(W.MediaPlaceholder,{icon:Object($.createElement)(W.BlockIcon,{icon:ln}),className:u,onSelect:function(t){if(!t||!t.url)return l({src:void 0,id:void 0}),void d();l({src:t.url,id:t.id}),e.setState({src:t.url,editing:!1})},onSelectURL:this.onSelectURL,accept:"audio/*",allowedTypes:sn,value:this.props.attributes,notices:b,onError:this.onUploadError}):Object($.createElement)($.Fragment,null,Object($.createElement)(W.BlockControls,null,Object($.createElement)(se.Toolbar,null,Object($.createElement)(se.IconButton,{className:"components-icon-button components-toolbar__control",label:Object(K.__)("Edit audio"),onClick:d,icon:"edit"}))),Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,{title:Object(K.__)("Audio Settings")},Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Autoplay"),onChange:this.toggleAttribute("autoplay"),checked:n,help:this.getAutoplayHelp}),Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Loop"),onChange:this.toggleAttribute("loop"),checked:o}),Object($.createElement)(se.SelectControl,{label:Object(K.__)("Preload"),value:void 0!==a?a:"none",onChange:function(e){return l({preload:"none"!==e?e:void 0})},options:[{value:"auto",label:Object(K.__)("Auto")},{value:"metadata",label:Object(K.__)("Metadata")},{value:"none",label:Object(K.__)("None")}]}))),Object($.createElement)("figure",{className:u},Object($.createElement)(se.Disabled,null,Object($.createElement)("audio",{controls:"controls",src:c})),(!W.RichText.isEmpty(r)||s)&&Object($.createElement)(W.RichText,{tagName:"figcaption",placeholder:Object(K.__)("Write caption…"),value:r,onChange:function(e){return l({caption:e})},inlineToolbar:!0})))}}]),t}($.Component),bn=Object(ue.compose)([Object(be.withSelect)((function(e){return{mediaUpload:(0,e("core/block-editor").getSettings)().__experimentalMediaUpload}})),se.withNotices])(un);var mn={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(Ce.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:function(e){return e.named.src}},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}}}}]},dn={name:"core/audio",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"}}},hn=dn.name,pn={title:Object(K.__)("Audio"),description:Object(K.__)("Embed a simple audio player."),icon:ln,transforms:mn,supports:{align:!0},edit:bn,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}))}},gn=function(e){return Object(J.omit)(Object(Z.a)({},e,{customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.color&&"#"===e.color[0]?e.color:void 0}),["color","textColor"])},fn={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"}},vn=[{attributes:Object(Z.a)({},fn,{align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"}}),isEligible:function(e){return e.className&&e.className.includes("is-style-squared")},migrate:function(e){var t=e.className;return t&&(t=t.replace(/is-style-squared[\s]?/,"").trim()),Object(Z.a)({},e,{className:t||void 0,borderRadius:0})},save:function(e){var t,n=e.attributes,r=n.backgroundColor,o=n.customBackgroundColor,a=n.customTextColor,c=n.linkTarget,i=n.rel,l=n.text,s=n.textColor,u=n.title,b=n.url,m=Object(W.getColorClassName)("color",s),d=Object(W.getColorClassName)("background-color",r),h=Q()("wp-block-button__link",(t={"has-text-color":s||a},Object(q.a)(t,m,m),Object(q.a)(t,"has-background",r||o),Object(q.a)(t,d,d),t)),p={backgroundColor:d?void 0:o,color:m?void 0:a};return Object($.createElement)("div",null,Object($.createElement)(W.RichText.Content,{tagName:"a",className:h,href:b,title:u,style:p,value:l,target:c,rel:i}))}},{attributes:Object(Z.a)({},fn,{align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}}),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=Q()("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}))},migrate:gn},{attributes:Object(Z.a)({},fn,{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:gn},{attributes:Object(Z.a)({},fn,{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:gn}],On=window.getComputedStyle,jn=Object(se.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:On(e).backgroundColor,fallbackTextColor:a||!c?void 0:On(c).color}})),yn=0,_n=50,kn=5;function Cn(e){var t=e.borderRadius,n=void 0===t?"":t,r=e.setAttributes,o=Object($.useCallback)((function(e){r({borderRadius:e})}),[r]);return Object($.createElement)(se.PanelBody,{title:Object(K.__)("Border Settings")},Object($.createElement)(se.RangeControl,{value:n,label:Object(K.__)("Border Radius"),min:yn,max:_n,initialPosition:kn,allowReset:!0,onChange:o}))}var wn=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(ae.a)(this,Object(ce.a)(t).apply(this,arguments))).nodeRef=null,e.bindRef=e.bindRef.bind(Object(ie.a)(e)),e.onSetLinkRel=e.onSetLinkRel.bind(Object(ie.a)(e)),e.onToggleOpenInNewTab=e.onToggleOpenInNewTab.bind(Object(ie.a)(e)),e}return Object(le.a)(t,e),Object(oe.a)(t,[{key:"bindRef",value:function(e){e&&(this.nodeRef=e)}},{key:"onSetLinkRel",value:function(e){this.props.setAttributes({rel:e})}},{key:"onToggleOpenInNewTab",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:"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.className,b=t.instanceId,m=t.isSelected,d=n.borderRadius,h=n.linkTarget,p=n.placeholder,g=n.rel,f=n.text,v=n.title,O=n.url,j="wp-block-button__inline-link-".concat(b);return Object($.createElement)("div",{className:u,title:v,ref:this.bindRef},Object($.createElement)(W.RichText,{placeholder:p||Object(K.__)("Add text…"),value:f,onChange:function(e){return s({text:e})},withoutInteractiveFormatting:!0,className:Q()("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),Object(q.a)(e,"no-border-radius",0===d),e)),style:{backgroundColor:r.color,color:o.color,borderRadius:d?d+"px":void 0}}),Object($.createElement)(se.BaseControl,{label:Object(K.__)("Link"),className:"wp-block-button__inline-link",id:j},Object($.createElement)(W.URLInput,{className:"wp-block-button__inline-link-input",value:O,autoFocus:!1,onChange:function(e){return s({url:e})},disableSuggestions:!m,id:j,isFullWidth:!0,hasBorder:!0})),Object($.createElement)(W.InspectorControls,null,Object($.createElement)(W.PanelColorSettings,{title:Object(K.__)("Color Settings"),colorSettings:[{value:r.color,onChange:a,label:Object(K.__)("Background Color")},{value:o.color,onChange:c,label:Object(K.__)("Text Color")}]},Object($.createElement)(W.ContrastChecker,{isLargeText:!1,textColor:o.color,backgroundColor:r.color,fallbackBackgroundColor:i,fallbackTextColor:l})),Object($.createElement)(Cn,{borderRadius:d,setAttributes:s}),Object($.createElement)(se.PanelBody,{title:Object(K.__)("Link settings")},Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Open in new tab"),onChange:this.onToggleOpenInNewTab,checked:"_blank"===h}),Object($.createElement)(se.TextControl,{label:Object(K.__)("Link rel"),value:g||"",onChange:this.onSetLinkRel}))))}}]),t}($.Component),En=Object(ue.compose)([ue.withInstanceId,Object(W.withColors)("backgroundColor",{textColor:"color"}),jn])(wn),xn=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object($.createElement)(se.G,null,Object($.createElement)(se.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"})));var Sn={name:"core/button",category:"layout",attributes:{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"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"}}},Tn=Sn.name,Nn={title:Object(K.__)("Button"),description:Object(K.__)("Prompt visitors to take action with a button-style link."),icon:xn,keywords:[Object(K.__)("link")],example:{attributes:{className:"is-style-fill",backgroundColor:"vivid-green-cyan",text:Object(K.__)("Call to Action")}},supports:{align:!0,alignWide:!1},styles:[{name:"fill",label:Object(K.__)("Fill"),isDefault:!0},{name:"outline",label:Object(K.__)("Outline")}],edit:En,save:function(e){var t,n=e.attributes,r=n.backgroundColor,o=n.borderRadius,a=n.customBackgroundColor,c=n.customTextColor,i=n.linkTarget,l=n.rel,s=n.text,u=n.textColor,b=n.title,m=n.url,d=Object(W.getColorClassName)("color",u),h=Object(W.getColorClassName)("background-color",r),p=Q()("wp-block-button__link",(t={"has-text-color":u||c},Object(q.a)(t,d,d),Object(q.a)(t,"has-background",r||a),Object(q.a)(t,h,h),Object(q.a)(t,"no-border-radius",0===o),t)),g={backgroundColor:h?void 0:a,color:d?void 0:c,borderRadius:o?o+"px":void 0};return Object($.createElement)("div",null,Object($.createElement)(W.RichText.Content,{tagName:"a",className:p,href:m,title:b,style:g,value:s,target:i,rel:l}))},deprecated:vn},Rn=n(29),An=n.n(Rn),Bn=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(ae.a)(this,Object(ce.a)(t).apply(this,arguments))).getYearMonth=Qe()(e.getYearMonth.bind(Object(ie.a)(e)),{maxSize:1}),e.getServerSideAttributes=Qe()(e.getServerSideAttributes.bind(Object(ie.a)(e)),{maxSize:1}),e}return Object(le.a)(t,e),Object(oe.a)(t,[{key:"getYearMonth",value:function(e){if(!e)return{};var t=An()(e);return{year:t.year(),month:t.month()+1}}},{key:"getServerSideAttributes",value:function(e,t){return Object(Z.a)({},e,this.getYearMonth(t))}},{key:"render",value:function(){return Object($.createElement)(se.Disabled,null,Object($.createElement)(rn.a,{block:"core/calendar",attributes:this.getServerSideAttributes(this.props.attributes,this.props.date)}))}}]),t}($.Component),In=Object(be.withSelect)((function(e){var t=e("core/editor");if(t){var n=t.getEditedPostAttribute;return{date:"post"===n("type")?n("date"):void 0}}}))(Bn),Mn=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object($.createElement)(se.G,null,Object($.createElement)(se.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"}))),Pn="core/calendar",Ln={title:Object(K.__)("Calendar"),description:Object(K.__)("A calendar of your site’s posts."),icon:Mn,category:"widgets",keywords:[Object(K.__)("posts"),Object(K.__)("archive")],supports:{align:!0},example:{},edit:In},Hn=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(ae.a)(this,Object(ce.a)(t).apply(this,arguments))).toggleDisplayAsDropdown=e.toggleDisplayAsDropdown.bind(Object(ie.a)(e)),e.toggleShowPostCounts=e.toggleShowPostCounts.bind(Object(ie.a)(e)),e.toggleShowHierarchy=e.toggleShowHierarchy.bind(Object(ie.a)(e)),e}return Object(le.a)(t,e),Object(oe.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(J.unescape)(e.name).trim():Object(K.__)("(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",rel:"noreferrer noopener"},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(K.__)("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(J.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)(se.PanelBody,{title:Object(K.__)("Categories Settings")},Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Display as Dropdown"),checked:r,onChange:this.toggleDisplayAsDropdown}),Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Show Hierarchy"),checked:o,onChange:this.toggleShowHierarchy}),Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Show Post Counts"),checked:a,onChange:this.toggleShowPostCounts})));return n?Object($.createElement)($.Fragment,null,c,Object($.createElement)(se.Placeholder,{icon:"admin-post",label:Object(K.__)("Categories")},Object($.createElement)(se.Spinner,null))):Object($.createElement)($.Fragment,null,c,Object($.createElement)("div",{className:this.props.className},r?this.renderCategoryDropdown():this.renderCategoryList()))}}]),t}($.Component),zn=Object(ue.compose)(Object(be.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])}})),ue.withInstanceId)(Hn),Vn=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object($.createElement)(se.Path,{d:"M12,2l-5.5,9h11L12,2z M12,5.84L13.93,9h-3.87L12,5.84z"}),Object($.createElement)(se.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)(se.Path,{d:"m3 21.5h8v-8h-8v8zm2-6h4v4h-4v-4z"})),Dn="core/categories",Fn={title:Object(K.__)("Categories"),description:Object(K.__)("Display a list of all categories."),icon:Vn,category:"widgets",supports:{align:!0,html:!1},edit:zn};function Un(e){return Object(J.flow)(qn,Gn,Zn)(e||"")}function qn(e){return e.replace(/&/g,"&")}function Wn(e){return e.replace(/&/g,"&")}function Gn(e){return e.replace(/\[/g,"[")}function Kn(e){return e.replace(/[/g,"[")}function Zn(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1//$2")}function $n(e){return e.replace(/^(\s*https?:)//([^\s<>"]+\s*)$/m,"$1//$2")}var Yn=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object($.createElement)(se.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"}));var Qn={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":{}}}}}}}]},Jn={name:"core/code",category:"formatting",attributes:{content:{type:"string",source:"text",selector:"code"}}},Xn=Jn.name,er={title:Object(K.__)("Code"),description:Object(K.__)("Display code snippets that respect your spacing and tabs."),icon:Yn,example:{attributes:{content:Object(K.__)('// A "block" is the abstract term used')+"\n"+Object(K.__)("// to describe units of markup that,")+"\n"+Object(K.__)("// when composed together, form the")+"\n"+Object(K.__)("// content or layout of a page.")+"\n"+Object(K.__)("registerBlockType( name, settings );")}},supports:{html:!1},transforms:Qn,edit:function(e){var t,n=e.attributes,r=e.setAttributes,o=e.className;return Object($.createElement)("div",{className:o},Object($.createElement)(W.PlainText,{value:(t=n.content,Object(J.flow)($n,Kn,Wn)(t||"")),onChange:function(e){return r({content:Un(e)})},placeholder:Object(K.__)("Write code…"),"aria-label":Object(K.__)("Code")}))},save:function(e){var t=e.attributes;return Object($.createElement)("pre",null,Object($.createElement)("code",null,t.content))}};function tr(e){var t,n=tr.doc;n||(n=document.implementation.createHTMLDocument(""),tr.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 nr=[{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!==tr(e.originalContent)}))},migrate:function(e,t){var n=t.reduce((function(e,t){var n=tr(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)}));return[Object(J.omit)(e,["columns"]),n]},save:function(e){var t=e.attributes.columns;return Object($.createElement)("div",{className:"has-".concat(t,"-columns")},Object($.createElement)(W.InnerBlocks.Content,null))}},{attributes:{columns:{type:"number",default:2}},migrate:function(e,t){return[e=Object(J.omit)(e,["columns"]),t]},save:function(e){var t=e.attributes,n=t.verticalAlignment,r=t.columns,o=Q()("has-".concat(r,"-columns"),Object(q.a)({},"are-vertically-aligned-".concat(n),n));return Object($.createElement)("div",{className:o},Object($.createElement)(W.InnerBlocks.Content,null))}}],rr=Qe()((function(e){return void 0===e?null:Object(J.times)(e,(function(){return["core/column"]}))})),or=function(e){return Number.isFinite(e)?parseFloat(e.toFixed(2)):void 0};function ar(e,t){var n=e.attributes.width;return or(void 0===n?100/t:n)}function cr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return Object(J.sumBy)(e,(function(e){return ar(e,t)}))}function ir(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return e.reduce((function(e,n){var r=ar(n,t);return Object.assign(e,Object(q.a)({},n.clientId,r))}),{})}function lr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,r=(t-cr(e,n))/e.length;return Object(J.mapValues)(ir(e,n),(function(e){return or(e+r)}))}function sr(e,t){return e.map((function(e){return Object(J.merge)({},e,{attributes:{width:t[e.clientId]}})}))}var ur=["core/column"],br=[{title:Object(K.__)("Two columns; equal split"),icon:Object($.createElement)(se.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H25V34H39ZM23 34H9V14H23V34Z"})),template:[["core/column"],["core/column"]]},{title:Object(K.__)("Two columns; one-third, two-thirds split"),icon:Object($.createElement)(se.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H20V34H39ZM18 34H9V14H18V34Z"})),template:[["core/column",{width:33.33}],["core/column",{width:66.66}]]},{title:Object(K.__)("Two columns; two-thirds, one-third split"),icon:Object($.createElement)(se.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H30V34H39ZM28 34H9V14H28V34Z"})),template:[["core/column",{width:66.66}],["core/column",{width:33.33}]]},{title:Object(K.__)("Three columns; equal split"),icon:Object($.createElement)(se.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM28.5 34h-9V14h9v20zm2 0V14H39v20h-8.5zm-13 0H9V14h8.5v20z"})),template:[["core/column"],["core/column"],["core/column"]]},{title:Object(K.__)("Three columns; wide center column"),icon:Object($.createElement)(se.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM31 34H17V14h14v20zm2 0V14h6v20h-6zm-18 0H9V14h6v20z"})),template:[["core/column",{width:25}],["core/column",{width:50}],["core/column",{width:25}]]}],mr=2;var dr=Object(be.withDispatch)((function(e,t,n){return{updateAlignment:function(r){var o=t.clientId,a=t.setAttributes,c=e("core/block-editor").updateBlockAttributes,i=n.select("core/block-editor").getBlockOrder;a({verticalAlignment:r}),i(o).forEach((function(e){c(e,{verticalAlignment:r})}))},updateColumns:function(r,o){var a=t.clientId,c=e("core/block-editor").replaceInnerBlocks,i=(0,n.select("core/block-editor").getBlocks)(a),l=i.some((function(e){return Number.isFinite(e.attributes.width)})),s=o>r;if(s&&l){var u=or(100/o),b=lr(i,100-u);i=[].concat(Object(U.a)(sr(i,b)),Object(U.a)(Object(J.times)(o-r,(function(){return Object(G.createBlock)("core/column",{width:u})}))))}else if(s)i=[].concat(Object(U.a)(i),Object(U.a)(Object(J.times)(o-r,(function(){return Object(G.createBlock)("core/column")}))));else{if(i=Object(J.dropRight)(i,r-o),l)i=sr(i,lr(i,100))}c(a,i,!1)}}}))((function(e){var t=e.attributes,n=e.className,r=e.updateAlignment,o=e.updateColumns,a=e.clientId,c=t.verticalAlignment,i=Object(be.useSelect)((function(e){return{count:e("core/block-editor").getBlockCount(a)}})).count,l=Object($.useState)(rr(i)),s=Object(ke.a)(l,2),u=s[0],b=s[1],m=Object($.useState)(!1),d=Object(ke.a)(m,2),h=d[0],p=d[1];Object($.useEffect)((function(){h&&p(!1)}),[h]);var g=Q()(n,Object(q.a)({},"are-vertically-aligned-".concat(c),c)),f=0===i&&!h||!u;return Object($.createElement)($.Fragment,null,!f&&Object($.createElement)($.Fragment,null,Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,null,Object($.createElement)(se.RangeControl,{label:Object(K.__)("Columns"),value:i,onChange:function(e){return o(i,e)},min:2,max:6}))),Object($.createElement)(W.BlockControls,null,Object($.createElement)(W.BlockVerticalAlignmentToolbar,{onChange:r,value:c}))),Object($.createElement)("div",{className:g},Object($.createElement)(W.InnerBlocks,{__experimentalTemplateOptions:br,__experimentalOnSelectTemplateOption:function(e){void 0===e&&(e=rr(mr)),b(e),p(!0)},__experimentalAllowTemplateOptionSkip:!0,template:f?null:u,templateLock:"all",allowedBlocks:ur})))})),hr=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object($.createElement)(se.G,null,Object($.createElement)(se.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"})));var pr={name:"core/columns",category:"layout",attributes:{verticalAlignment:{type:"string"}}},gr=pr.name,fr={title:Object(K.__)("Columns"),icon:hr,description:Object(K.__)("Add a block that displays content in multiple columns, then add whatever content blocks you’d like."),supports:{align:["wide","full"],html:!1},example:{innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et eros eu felis."}},{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"}},{name:"core/paragraph",attributes:{content:"Suspendisse commodo neque lacus, a dictum orci interdum et."}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:Object(K.__)("Etiam et egestas lorem. Vivamus sagittis sit amet dolor quis lobortis. Integer sed fermentum arcu, id vulputate lacus. Etiam fermentum sem eu quam hendrerit.")}},{name:"core/paragraph",attributes:{content:Object(K.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:nr,edit:dr,save:function(e){var t=e.attributes.verticalAlignment,n=Q()(Object(q.a)({},"are-vertically-aligned-".concat(t),t));return Object($.createElement)("div",{className:n},Object($.createElement)(W.InnerBlocks.Content,null))}};var vr=Object(ue.compose)(Object(be.withSelect)((function(e,t){var n=t.clientId;return{hasChildBlocks:(0,e("core/block-editor").getBlockOrder)(n).length>0}})),Object(be.withDispatch)((function(e,t,n){return{updateAlignment:function(r){var o=t.clientId,a=t.setAttributes,c=e("core/block-editor").updateBlockAttributes,i=n.select("core/block-editor").getBlockRootClientId;a({verticalAlignment:r}),c(i(o),{verticalAlignment:null})},updateWidth:function(r){var o=t.clientId,a=e("core/block-editor").updateBlockAttributes,c=n.select("core/block-editor"),i=c.getBlockRootClientId,l=(0,c.getBlocks)(i(o)),s=function(e,t){var n=Object(J.findIndex)(e,{clientId:t});return n===e.length-1?e.slice(0,n):e.slice(n+1)}(l,o),u=r+cr(Object(J.difference)(l,[Object(J.find)(l,{clientId:o})].concat(Object(U.a)(s)))),b=Object(Z.a)({},ir(l,l.length),Object(q.a)({},o,or(r)),lr(s,100-u,l.length));Object(J.forEach)(b,(function(e,t){a(t,{width:e})}))}}})))((function(e){var t=e.attributes,n=e.className,r=e.updateAlignment,o=e.updateWidth,a=e.hasChildBlocks,c=t.verticalAlignment,i=t.width,l=Q()(n,"block-core-columns",Object(q.a)({},"is-vertically-aligned-".concat(c),c));return Object($.createElement)("div",{className:l},Object($.createElement)(W.BlockControls,null,Object($.createElement)(W.BlockVerticalAlignmentToolbar,{onChange:r,value:c})),Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,{title:Object(K.__)("Column Settings")},Object($.createElement)(se.RangeControl,{label:Object(K.__)("Percentage width"),value:i||"",onChange:o,min:0,max:100,required:!0,allowReset:!0}))),Object($.createElement)(W.InnerBlocks,{templateLock:!1,renderAppender:a?void 0:function(){return Object($.createElement)(W.InnerBlocks.ButtonBlockAppender,null)}}))})),Or=Object($.createElement)(se.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object($.createElement)(se.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object($.createElement)(se.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"}));var jr={name:"core/column",category:"common",attributes:{verticalAlignment:{type:"string"},width:{type:"number",min:0,max:100}}},yr=jr.name,_r={title:Object(K.__)("Column"),parent:["core/columns"],icon:Or,description:Object(K.__)("A single column within a columns block."),supports:{inserter:!1,reusable:!1,html:!1},getEditWrapperProps:function(e){var t=e.width;if(Number.isFinite(t))return{style:{flexBasis:t+"%"}}},edit:vr,save:function(e){var t,n=e.attributes,r=n.verticalAlignment,o=n.width,a=Q()(Object(q.a)({},"is-vertically-aligned-".concat(r),r));return Number.isFinite(o)&&(t={flexBasis:o+"%"}),Object($.createElement)("div",{className:a,style:t},Object($.createElement)(W.InnerBlocks.Content,null))}},kr="image",Cr="video",wr=50;function Er(e){return e?{backgroundImage:"url(".concat(e,")")}:{}}function xr(e){return 0===e||50===e?null:"has-background-dim-"+10*Math.round(e/10)}var Sr={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"}},Tr=[{attributes:Object(Z.a)({},Sr,{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,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=n===kr?Er(u):{};b||(m.backgroundColor=o),c&&!i&&(m.backgroundPosition="".concat(100*c.x,"% ").concat(100*c.y,"%"));var d=Q()(xr(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},Cr===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}))},migrate:function(e){return[Object(J.omit)(e,["title","contentAlign"]),[Object(G.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(K.__)("Write title…")})]]}},{attributes:Object(Z.a)({},Sr,{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,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=Er(n);u||(b.backgroundColor=s);var m=Q()("wp-block-cover-image",xr(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}))},migrate:function(e){return[Object(J.omit)(e,["title","contentAlign","align"]),[Object(G.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(K.__)("Write title…")})]]}},{attributes:Object(Z.a)({},Sr,{title:{type:"string",source:"html",selector:"h2"},align:{type:"string"},contentAlign:{type:"string",default:"center"}}),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=Er(n),l=Q()("wp-block-cover-image",xr(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}))},migrate:function(e){return[Object(J.omit)(e,["title","contentAlign","align"]),[Object(G.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(K.__)("Write title…")})]]}}],Nr=n(221),Rr=n.n(Nr),Ar=n(49),Br=n.n(Ar),Ir=Object($.createElement)(se.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object($.createElement)(se.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)(se.Path,{d:"M0 0h24v24H0z",fill:"none"})),Mr=["image","video"],Pr=[["core/paragraph",{align:"center",fontSize:"large",placeholder:Object(K.__)("Write title…")}]];function Lr(){return Lr.fastAverageColor||(Lr.fastAverageColor=new Rr.a),Lr.fastAverageColor}var Hr=Object(ue.withInstanceId)((function(e){var t=e.value,n=void 0===t?"":t,r=e.instanceId,o=e.onChange,a=Object($.useState)(null),c=Object(ke.a)(a,2),i=c[0],l=c[1],s=Object($.useCallback)((function(e){var t=""!==e.target.value?parseInt(e.target.value,10):void 0;(isNaN(t)||t50){if(e&&e.attributes.dimRatio>50&&e.overlayColor.color===o.color)return;return o.color?void this.changeIsDarkIfRequired(Br()(o.color).isDark()):void this.changeIsDarkIfRequired(!0)}if(!(e&&e.attributes.dimRatio<=50&&e.attributes.url===c)){var i;switch(r.backgroundType){case kr:i=this.imageRef.current;break;case Cr:i=this.videoRef.current}i&&Lr().getColorAsync(i,(function(e){t.changeIsDarkIfRequired(e.isDark)}))}}},{key:"changeIsDarkIfRequired",value:function(e){this.state.isDark!==e&&this.setState({isDark:e})}}]),t}($.Component),Fr=Object(ue.compose)([Object(be.withDispatch)((function(e){return{toggleSelection:e("core/block-editor").toggleSelection}})),Object(W.withColors)({overlayColor:"background-color"}),se.withNotices,ue.withInstanceId])(Dr);var Ur={from:[{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:Cr})}}],to:[{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.backgroundType;return!e.url||t===kr},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||t===Cr},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})}}]},qr={name:"core/cover",category:"common",attributes:{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"},minHeight:{type:"number"}}},Wr=qr.name,Gr={title:Object(K.__)("Cover"),description:Object(K.__)("Add an image or video with a text overlay — great for headers."),icon:Ir,supports:{align:!0},example:{attributes:{customOverlayColor:"#065174",dimRatio:40,url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"},innerBlocks:[{name:"core/paragraph",attributes:{customFontSize:48,content:Object(K.__)("Snow Patrol"),align:"center"}}]},transforms:Ur,save:function(e){var t=e.attributes,n=t.backgroundType,r=t.customOverlayColor,o=t.dimRatio,a=t.focalPoint,c=t.hasParallax,i=t.overlayColor,l=t.url,s=t.minHeight,u=Object(W.getColorClassName)("background-color",i),b=n===kr?Er(l):{};u||(b.backgroundColor=r),a&&!c&&(b.backgroundPosition="".concat(100*a.x,"% ").concat(100*a.y,"%")),b.minHeight=s||void 0;var m=Q()(xr(o),u,{"has-background-dim":0!==o,"has-parallax":c});return Object($.createElement)("div",{className:m,style:b},Cr===n&&l&&Object($.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:l}),Object($.createElement)("div",{className:"wp-block-cover__inner-container"},Object($.createElement)(W.InnerBlocks.Content,null)))},edit:Fr,deprecated:Tr},Kr=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)(se.Toolbar,null,n&&Object($.createElement)(se.IconButton,{className:"components-toolbar__control",label:Object(K.__)("Edit URL"),icon:"edit",onClick:i}))),r&&t&&Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,{title:Object(K.__)("Media Settings"),className:"blocks-responsive"},Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Resize for smaller devices"),checked:o,help:a,onChange:c}))))},Zr=function(){return Object($.createElement)("div",{className:"wp-block-embed is-loading"},Object($.createElement)(se.Spinner,null),Object($.createElement)("p",null,Object(K.__)("Embedding…")))},$r=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)(se.Placeholder,{icon:Object($.createElement)(W.BlockIcon,{icon:t,showColors:!0}),label:n,className:"wp-block-embed",instructions:Object(K.__)("Paste a link to the content you want to display on your site.")},Object($.createElement)("form",{onSubmit:o},Object($.createElement)("input",{type:"url",value:r||"",className:"components-placeholder__input","aria-label":n,placeholder:Object(K.__)("Enter URL to embed here…"),onChange:a}),Object($.createElement)(se.Button,{isLarge:!0,type:"submit"},Object(K._x)("Embed","button label")),c&&Object($.createElement)("p",{className:"components-placeholder__error"},Object(K.__)("Sorry, this content could not be embedded."),Object($.createElement)("br",null),Object($.createElement)(se.Button,{isLarge:!0,onClick:l},Object(K._x)("Try again","button label"))," ",Object($.createElement)(se.Button,{isLarge:!0,onClick:i},Object(K._x)("Convert to link","button label")))),Object($.createElement)("div",{className:"components-placeholder__learn-more"},Object($.createElement)(se.ExternalLink,{href:Object(K.__)("https://wordpress.org/support/article/embeds/")},Object(K.__)("Learn more about embeds"))))},Yr=n(82),Qr=window.FocusEvent,Jr=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(ae.a)(this,Object(ce.a)(t).apply(this,arguments))).checkFocus=e.checkFocus.bind(Object(ie.a)(e)),e.node=Object($.createRef)(),e}return Object(le.a)(t,e),Object(oe.a)(t,[{key:"checkFocus",value:function(){var e=document.activeElement;if("IFRAME"===e.tagName&&e.parentNode===this.node.current){var t=new Qr("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),Xr=Object(ue.withGlobalEvents)({blur:"checkFocus"})(Jr),eo=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(ae.a)(this,Object(ce.a)(t).apply(this,arguments))).hideOverlay=e.hideOverlay.bind(Object(ie.a)(e)),e.state={interactive:!1},e}return Object(le.a)(t,e),Object(oe.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(Yr.parse)(a).host.split("."),f=g.splice(g.length-2,g.length-1).join("."),v=Object(J.includes)(Ge,f),O=Object(K.sprintf)(Object(K.__)("Embedded content from %s"),f),j=$e()(c,u,"wp-block-embed__wrapper"),y="wp-embed"===c?Object($.createElement)(Xr,{html:p}):Object($.createElement)("div",{className:"wp-block-embed__wrapper"},Object($.createElement)(se.SandBox,{html:p,scripts:d,title:O,type:j,onFocus:this.hideOverlay}),!h&&Object($.createElement)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}));return Object($.createElement)("figure",{className:$e()(u,"wp-block-embed",{"is-type-video":"video"===c})},v?Object($.createElement)(se.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(K.sprintf)(Object(K.__)("Embedded content from %s can't be previewed in the editor."),f))):y,(!W.RichText.isEmpty(i)||s)&&Object($.createElement)(W.RichText,{tagName:"figcaption",placeholder:Object(K.__)("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 to(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return(function(r){function o(){var e;return Object(re.a)(this,o),(e=Object(ae.a)(this,Object(ce.a)(o).apply(this,arguments))).switchBackToURLInput=e.switchBackToURLInput.bind(Object(ie.a)(e)),e.setUrl=e.setUrl.bind(Object(ie.a)(e)),e.getMergedAttributes=e.getMergedAttributes.bind(Object(ie.a)(e)),e.setMergedAttributes=e.setMergedAttributes.bind(Object(ie.a)(e)),e.getResponsiveHelp=e.getResponsiveHelp.bind(Object(ie.a)(e)),e.toggleResponsive=e.toggleResponsive.bind(Object(ie.a)(e)),e.handleIncomingPreview=e.handleIncomingPreview.bind(Object(ie.a)(e)),e.state={editingURL:!1,url:e.props.attributes.url},e.props.preview&&e.handleIncomingPreview(),e}return Object(le.a)(o,r),Object(oe.a)(o,[{key:"handleIncomingPreview",value:function(){if(this.setMergedAttributes(),this.props.onReplace){var e=et(this.props,this.getMergedAttributes());e&&this.props.onReplace(e)}}},{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 void(this.props.fetching||this.resubmitWithoutTrailingSlash());this.handleIncomingPreview()}}},{key:"resubmitWithoutTrailingSlash",value:function(){this.setState((function(e){return{url:e.url.replace(/\/$/,"")}}),this.setUrl)}},{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:"getMergedAttributes",value:function(){var t=this.props.preview,r=this.props.attributes,o=r.className,a=r.allowResponsive;return Object(Z.a)({},this.props.attributes,nt(t,e,o,n,a))}},{key:"setMergedAttributes",value:function(){(0,this.props.setAttributes)(this.getMergedAttributes())}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"getResponsiveHelp",value:function(e){return e?Object(K.__)("This embed will preserve its aspect ratio when the browser is resized."):Object(K.__)("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:tt(o,r,n&&a)})}},{key:"render",value:function(){var r=this,o=this.state,a=o.url,c=o.editingURL,i=this.props,l=i.fetching,s=i.setAttributes,u=i.isSelected,b=i.preview,m=i.cannotEmbed,d=i.themeSupportsResponsive,h=i.tryAgain;if(l)return Object($.createElement)(Zr,null);var p=Object(K.sprintf)(Object(K.__)("%s URL"),e);if(!b||m||c)return Object($.createElement)($r,{icon:t,label:p,onSubmit:this.setUrl,value:a,cannotEmbed:m,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:h});var g=this.getMergedAttributes(),f=g.caption,v=g.type,O=g.allowResponsive,j=Q()(g.className,this.props.className);return Object($.createElement)($.Fragment,null,Object($.createElement)(Kr,{showEditButton:b&&!m,themeSupportsResponsive:d,blockSupportsResponsive:n,allowResponsive:O,getResponsiveHelp:this.getResponsiveHelp,toggleResponsive:this.toggleResponsive,switchBackToURLInput:this.switchBackToURLInput}),Object($.createElement)(eo,{preview:b,className:j,url:a,type:v,caption:f,onCaptionChange:function(e){return s({caption:e})},isSelected:u,icon:t,label:p}))}}]),o}($.Component))}var no={url:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption"},type:{type:"string"},providerNameSlug:{type:"string"},allowResponsive:{type:"boolean",default:!0}};function ro(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(K.__)("Add a block that displays content pulled from other sites, like Twitter, Instagram or YouTube."),h=to(t,r,m);return{title:t,description:d,icon:r,category:a,keywords:l,attributes:no,supports:Object(Z.a)({align:!0},u),transforms:c,edit:Object(ue.compose)(Object(be.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(be.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=$e()("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:no,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=$e()("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 oo="core/embed",ao=ro({title:Object(K._x)("Embed","block title"),description:Object(K.__)("Embed videos, images, tweets, audio, and other content from external sources."),icon:Te,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()})}}]}}),co=qe.map((function(e){return Object(Z.a)({},e,{settings:ro(e.settings)})})),io=We.map((function(e){return Object(Z.a)({},e,{settings:ro(e.settings)})})),lo=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object($.createElement)(se.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 so(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(K.__)("URL")}];return s&&(u=[{value:i,label:Object(K.__)("Media File")},{value:s,label:Object(K.__)("Attachment page")}]),Object($.createElement)($.Fragment,null,Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,{title:Object(K.__)("Text link settings")},Object($.createElement)(se.SelectControl,{label:Object(K.__)("Link To"),value:l,options:u,onChange:o}),Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Open in new tab"),checked:n,onChange:a})),Object($.createElement)(se.PanelBody,{title:Object(K.__)("Download button settings")},Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Show download button"),checked:r,onChange:c}))))}var uo=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(ae.a)(this,Object(ce.a)(t).apply(this,arguments))).onSelectFile=e.onSelectFile.bind(Object(ie.a)(e)),e.confirmCopyURL=e.confirmCopyURL.bind(Object(ie.a)(e)),e.resetCopyConfirmation=e.resetCopyConfirmation.bind(Object(ie.a)(e)),e.changeLinkDestinationOption=e.changeLinkDestinationOption.bind(Object(ie.a)(e)),e.changeOpenInNewWindow=e.changeOpenInNewWindow.bind(Object(ie.a)(e)),e.changeShowDownloadButton=e.changeShowDownloadButton.bind(Object(ie.a)(e)),e.onUploadError=e.onUploadError.bind(Object(ie.a)(e)),e.state={hasError:!1,showCopyConfirmation:!1},e}return Object(le.a)(t,e),Object(oe.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.mediaUpload,o=t.noticeOperations,a=t.setAttributes,c=n.downloadButtonText,i=n.href;Object(Ce.isBlobURL)(i)&&(r({filesList:[Object(Ce.getBlobByURL)(i)],onFileChange:function(t){var n=Object(ke.a)(t,1)[0];return e.onSelectFile(n)},onError:function(t){e.setState({hasError:!0}),o.createErrorNotice(t)}}),Object(Ce.revokeBlobURL)(i));void 0===c&&a({downloadButtonText:Object(K._x)("Download","button label")})}},{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:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{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,t=this.props,n=t.className,r=t.isSelected,o=t.attributes,a=t.setAttributes,c=t.noticeUI,i=t.media,l=o.fileName,s=o.href,u=o.textLinkHref,b=o.textLinkTarget,m=o.showDownloadButton,d=o.downloadButtonText,h=o.id,p=this.state,g=p.hasError,f=p.showCopyConfirmation,v=i&&i.link;if(!s||g)return Object($.createElement)(W.MediaPlaceholder,{icon:Object($.createElement)(W.BlockIcon,{icon:lo}),labels:{title:Object(K.__)("File"),instructions:Object(K.__)("Upload a file or pick one from your media library.")},onSelect:this.onSelectFile,notices:c,onError:this.onUploadError,accept:"*"});var O=Q()(n,{"is-transient":Object(Ce.isBlobURL)(s)});return Object($.createElement)($.Fragment,null,Object($.createElement)(so,Object(ne.a)({hrefs:{href:s,textLinkHref:u,attachmentPage:v}},{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)(se.Toolbar,null,Object($.createElement)(W.MediaUpload,{onSelect:this.onSelectFile,value:h,render:function(e){var t=e.open;return Object($.createElement)(se.IconButton,{className:"components-toolbar__control",label:Object(K.__)("Edit file"),onClick:t,icon:"edit"})}})))),Object($.createElement)(se.Animate,{type:Object(Ce.isBlobURL)(s)?"loading":null},(function(t){var n=t.className;return Object($.createElement)("div",{className:Q()(O,n)},Object($.createElement)("div",{className:"wp-block-file__content-wrapper"},Object($.createElement)(W.RichText,{wrapperClassName:"wp-block-file__textlink",tagName:"div",value:l,placeholder:Object(K.__)("Write file name…"),withoutInteractiveFormatting:!0,onChange:function(e){return a({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,withoutInteractiveFormatting:!0,placeholder:Object(K.__)("Add text…"),onChange:function(e){return a({downloadButtonText:e})}}))),r&&Object($.createElement)(se.ClipboardButton,{isDefault:!0,text:s,className:"wp-block-file__copy-url-button",onCopy:e.confirmCopyURL,onFinishCopy:e.resetCopyConfirmation,disabled:Object(Ce.isBlobURL)(s)},f?Object(K.__)("Copied!"):Object(K.__)("Copy URL")))})))}}]),t}($.Component),bo=Object(ue.compose)([Object(be.withSelect)((function(e,t){var n=e("core").getMedia,r=(0,e("core/block-editor").getSettings)().__experimentalMediaUpload,o=t.attributes.id;return{media:void 0===o?void 0:n(o),mediaUpload:r}})),se.withNotices])(uo);var mo={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(Ce.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(be.select)("core").getMedia)(t);return!!n&&Object(J.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(be.select)("core").getMedia)(t);return!!n&&Object(J.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(be.select)("core").getMedia)(t);return!!n&&Object(J.includes)(n.mime_type,"image")},transform:function(e){return Object(G.createBlock)("core/image",{url:e.href,caption:e.fileName,id:e.id})}}]},ho={name:"core/file",category:"common",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]"}}},po=ho.name,go={title:Object(K.__)("File"),description:Object(K.__)("Add a link to a downloadable file."),icon:lo,keywords:[Object(K.__)("document"),Object(K.__)("pdf")],supports:{align:!0},transforms:mo,edit:bo,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})))}},fo=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(ae.a)(this,Object(ce.a)(t).apply(this,arguments))).state={isPreview:!1,styles:[]},e.switchToHTML=e.switchToHTML.bind(Object(ie.a)(e)),e.switchToPreview=e.switchToPreview.bind(Object(ie.a)(e)),e}return Object(le.a)(t,e),Object(oe.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(K.__)("Preview"))))),Object($.createElement)(se.Disabled.Consumer,null,(function(e){return o||e?Object($.createElement)(se.SandBox,{html:t.content,styles:a}):Object($.createElement)(W.PlainText,{value:t.content,onChange:function(e){return n({content:e})},placeholder:Object(K.__)("Write HTML…"),"aria-label":Object(K.__)("HTML")})})))}}]),t}($.Component),vo=Object(be.withSelect)((function(e){return{styles:(0,e("core/block-editor").getSettings)().styles}}))(fo),Oo=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.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"}));var jo={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)()}}}}}]},yo={name:"core/html",category:"formatting",attributes:{content:{type:"string",source:"html"}}},_o=yo.name,ko={title:Object(K.__)("Custom HTML"),description:Object(K.__)("Add custom HTML code and preview it as you edit."),icon:Oo,keywords:[Object(K.__)("embed")],example:{attributes:{content:""+Object(K.__)("Welcome to the wonderful world of blocks…")+""}},supports:{customClassName:!1,className:!1,html:!1},transforms:jo,edit:vo,save:function(e){var t=e.attributes;return Object($.createElement)($.RawHTML,null,t.content)}},Co=[{attributes:{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}},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=Q()((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]||J.noop)()),Object($.createElement)("div",{className:"wp-block-media-text__content"},Object($.createElement)(W.InnerBlocks.Content,null)))}}],wo=Object($.createElement)(se.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object($.createElement)(se.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)(se.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)(se.Path,{d:"M5 19h8l-1.59-2H9.24l-.84 1.1L7 16.3 5 19z"})),Eo=["image","video"];function xo(e,t){return e?{backgroundImage:"url(".concat(e,")"),backgroundPosition:t?"".concat(100*t.x,"% ").concat(100*t.y,"%"):"50% 50%"}:{}}var So=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(ae.a)(this,Object(ce.a)(t).apply(this,arguments))).onUploadError=e.onUploadError.bind(Object(ie.a)(e)),e}return Object(le.a)(t,e),Object(oe.a)(t,[{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"renderToolbarEditButton",value:function(){var e=this.props,t=e.mediaId,n=e.onSelectMedia;return Object($.createElement)(W.BlockControls,null,Object($.createElement)(se.Toolbar,null,Object($.createElement)(W.MediaUpload,{onSelect:n,allowedTypes:Eo,value:t,render:function(e){var t=e.open;return Object($.createElement)(se.IconButton,{className:"components-toolbar__control",label:Object(K.__)("Edit media"),icon:"edit",onClick:t})}})))}},{key:"renderImage",value:function(){var e=this.props,t=e.mediaAlt,n=e.mediaUrl,r=e.className,o=e.imageFill,a=e.focalPoint,c=o?xo(n,a):{};return Object($.createElement)($.Fragment,null,this.renderToolbarEditButton(),Object($.createElement)("figure",{className:r,style:c},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,r=e.noticeUI;return Object($.createElement)(W.MediaPlaceholder,{icon:Object($.createElement)(W.BlockIcon,{icon:wo}),labels:{title:Object(K.__)("Media area")},className:n,onSelect:t,accept:"image/*,video/*",allowedTypes:Eo,notices:r,onError:this.onUploadError})}},{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,i=e.toggleSelection;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($.createElement)(se.ResizableBox,{className:"editor-media-container__resizer",size:{width:o+"%"},minWidth:"10%",maxWidth:"100%",enable:l,onResizeStart:function(){i(!1)},onResize:function(e,t,n){c(parseInt(n.style.width))},onResizeStop:function(e,t,n){i(!0),a(parseInt(n.style.width))},axis:"x"},s)}return this.renderPlaceholder()}}]),t}($.Component),To=Object(ue.compose)([Object(be.withDispatch)((function(e){return{toggleSelection:e("core/block-editor").toggleSelection}})),se.withNotices])(So),No=[["core/paragraph",{fontSize:"large",placeholder:Object(K._x)("Content…","content placeholder")}]],Ro=function(e){return Math.max(15,Math.min(e,85))},Ao=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(ae.a)(this,Object(ce.a)(t).apply(this,arguments))).onSelectMedia=e.onSelectMedia.bind(Object(ie.a)(e)),e.onWidthChange=e.onWidthChange.bind(Object(ie.a)(e)),e.commitWidthChange=e.commitWidthChange.bind(Object(ie.a)(e)),e.state={mediaWidth:null},e}return Object(le.a)(t,e),Object(oe.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(J.get)(e,["sizes","large","url"])||Object(J.get)(e,["media_details","sizes","large","source_url"])),r({mediaAlt:e.alt,mediaId:e.id,mediaType:t,mediaUrl:n||e.url,imageFill:void 0,focalPoint:void 0})}},{key:"onWidthChange",value:function(e){this.setState({mediaWidth:Ro(e)})}},{key:"commitWidthChange",value:function(e){(0,this.props.setAttributes)({mediaWidth:Ro(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,i=e.imageFill,l=e.focalPoint;return Object($.createElement)(To,Object(ne.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,imageFill:i,focalPoint:l}))}},{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=n.verticalAlignment,h=n.mediaUrl,p=n.imageFill,g=n.focalPoint,f=this.state.mediaWidth,v=Q()(r,(e={"has-media-on-the-right":"right"===u,"is-selected":a,"has-background":o.class||o.color},Object(q.a)(e,o.class,o.class),Object(q.a)(e,"is-stacked-on-mobile",l),Object(q.a)(e,"is-vertically-aligned-".concat(d),d),Object(q.a)(e,"is-image-fill",p),e)),O="".concat(f||m,"%"),j="right"===u?"1fr ".concat(O):"".concat(O," 1fr"),y={gridTemplateColumns:j,msGridColumns:j,backgroundColor:o.color},_=[{value:o.color,onChange:i,label:Object(K.__)("Background Color")}],k=[{icon:"align-pull-left",title:Object(K.__)("Show media on left"),isActive:"left"===u,onClick:function(){return c({mediaPosition:"left"})}},{icon:"align-pull-right",title:Object(K.__)("Show media on right"),isActive:"right"===u,onClick:function(){return c({mediaPosition:"right"})}}],C=Object($.createElement)(se.PanelBody,{title:Object(K.__)("Media & Text Settings")},Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Stack on mobile"),checked:l,onChange:function(){return c({isStackedOnMobile:!l})}}),"image"===b&&Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Crop image to fill entire column"),checked:p,onChange:function(){return c({imageFill:!p})}}),p&&Object($.createElement)(se.FocalPointPicker,{label:Object(K.__)("Focal Point Picker"),url:h,value:g,onChange:function(e){return c({focalPoint:e})}}),"image"===b&&Object($.createElement)(se.TextareaControl,{label:Object(K.__)("Alt Text (Alternative Text)"),value:s,onChange:function(e){c({mediaAlt:e})},help:Object($.createElement)($.Fragment,null,Object($.createElement)(se.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},Object(K.__)("Describe the purpose of the image")),Object(K.__)("Leave empty if the image is purely decorative."))}));return Object($.createElement)($.Fragment,null,Object($.createElement)(W.InspectorControls,null,C,Object($.createElement)(W.PanelColorSettings,{title:Object(K.__)("Color Settings"),initialOpen:!1,colorSettings:_})),Object($.createElement)(W.BlockControls,null,Object($.createElement)(se.Toolbar,{controls:k}),Object($.createElement)(W.BlockVerticalAlignmentToolbar,{onChange:function(e){c({verticalAlignment:e})},value:d})),Object($.createElement)("div",{className:v,style:y},this.renderMediaArea(),Object($.createElement)(W.InnerBlocks,{template:No,templateInsertUpdatesSelection:!1})))}}]),t}($.Component),Bo=Object(W.withColors)("backgroundColor")(Ao),Io=Object($.createElement)(se.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object($.createElement)(se.Path,{d:"M13 17h8v-2h-8v2zM3 19h8V5H3v14zM13 9h8V7h-8v2zm0 4h8v-2h-8v2z"})),Mo=50;var Po={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})}}]},Lo={name:"core/media-text",category:"layout",attributes:{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},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}}},Ho=Lo.name,zo={title:Object(K.__)("Media & Text"),description:Object(K.__)("Set media and words side-by-side for a richer layout."),icon:Io,keywords:[Object(K.__)("image"),Object(K.__)("video")],supports:{align:["wide","full"],html:!1},example:{attributes:{mediaType:"image",mediaUrl:"https://s.w.org/images/core/5.3/Biologia_Centrali-Americana_-_Cantorchilus_semibadius_1902.jpg"},innerBlocks:[{name:"core/paragraph",attributes:{content:Object(K.__)("The wren
Earns his living
Noiselessly.")}},{name:"core/paragraph",attributes:{content:Object(K.__)("— Kobayashi Issa (一茶)")}}]},transforms:Po,edit:Bo,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=r.verticalAlignment,h=r.imageFill,p=r.focalPoint,g={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})}},f=Object(W.getColorClassName)("background-color",o),v=Q()((t={"has-media-on-the-right":"right"===l,"has-background":f||a},Object(q.a)(t,f,f),Object(q.a)(t,"is-stacked-on-mobile",c),Object(q.a)(t,"is-vertically-aligned-".concat(d),d),Object(q.a)(t,"is-image-fill",h),t)),O=h?xo(u,p):{};b!==Mo&&(n="right"===l?"auto ".concat(b,"%"):"".concat(b,"% auto"));var j={backgroundColor:f?void 0:a,gridTemplateColumns:n};return Object($.createElement)("div",{className:v,style:j},Object($.createElement)("figure",{className:"wp-block-media-text__media",style:O},(g[s]||J.noop)()),Object($.createElement)("div",{className:"wp-block-media-text__content"},Object($.createElement)(W.InnerBlocks.Content,null)))},deprecated:Co},Vo=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(ae.a)(this,Object(ce.a)(t).apply(this,arguments))).setCommentsToShow=e.setCommentsToShow.bind(Object(ie.a)(e)),e.toggleDisplayAvatar=e.createToggleAttribute("displayAvatar"),e.toggleDisplayDate=e.createToggleAttribute("displayDate"),e.toggleDisplayExcerpt=e.createToggleAttribute("displayExcerpt"),e}return Object(le.a)(t,e),Object(oe.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:"setCommentsToShow",value:function(e){this.props.setAttributes({commentsToShow:e})}},{key:"render",value:function(){var e=this.props.attributes,t=e.commentsToShow,n=e.displayAvatar,r=e.displayDate,o=e.displayExcerpt;return Object($.createElement)($.Fragment,null,Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,{title:Object(K.__)("Latest Comments Settings")},Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Display Avatar"),checked:n,onChange:this.toggleDisplayAvatar}),Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Display Date"),checked:r,onChange:this.toggleDisplayDate}),Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Display Excerpt"),checked:o,onChange:this.toggleDisplayExcerpt}),Object($.createElement)(se.RangeControl,{label:Object(K.__)("Number of Comments"),value:t,onChange:this.setCommentsToShow,min:1,max:100,required:!0}))),Object($.createElement)(se.Disabled,null,Object($.createElement)(rn.a,{block:"core/latest-comments",attributes:this.props.attributes})))}}]),t}($.Component),Do=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object($.createElement)(se.G,null,Object($.createElement)(se.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"}))),Fo="core/latest-comments",Uo={title:Object(K.__)("Latest Comments"),description:Object(K.__)("Display a list of your most recent comments."),icon:Do,category:"widgets",keywords:[Object(K.__)("recent comments")],supports:{align:!0,html:!1},edit:Vo},qo=n(34),Wo=n.n(qo),Go=n(53),Ko={per_page:-1},Zo=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(ae.a)(this,Object(ce.a)(t).apply(this,arguments))).state={categoriesList:[]},e}return Object(le.a)(t,e),Object(oe.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.isStillMounted=!0,this.fetchRequest=Wo()({path:Object(Ee.addQueryArgs)("/wp/v2/categories",Ko)}).then((function(t){e.isStillMounted&&e.setState({categoriesList:t})})).catch((function(){e.isStillMounted&&e.setState({categoriesList:[]})}))}},{key:"componentWillUnmount",value:function(){this.isStillMounted=!1}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=e.latestPosts,o=this.state.categoriesList,a=t.displayPostContentRadio,c=t.displayPostContent,i=t.displayPostDate,l=t.postLayout,s=t.columns,u=t.order,b=t.orderBy,m=t.categories,d=t.postsToShow,h=t.excerptLength,p=Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,{title:Object(K.__)("Post Content Settings")},Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Post Content"),checked:c,onChange:function(e){return n({displayPostContent:e})}}),c&&Object($.createElement)(se.RadioControl,{label:"Show:",selected:a,options:[{label:"Excerpt",value:"excerpt"},{label:"Full Post",value:"full_post"}],onChange:function(e){return n({displayPostContentRadio:e})}}),c&&"excerpt"===a&&Object($.createElement)(se.RangeControl,{label:Object(K.__)("Max number of words in excerpt"),value:h,onChange:function(e){return n({excerptLength:e})},min:10,max:100})),Object($.createElement)(se.PanelBody,{title:Object(K.__)("Post Meta Settings")},Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Display post date"),checked:i,onChange:function(e){return n({displayPostDate:e})}})),Object($.createElement)(se.PanelBody,{title:Object(K.__)("Sorting and Filtering")},Object($.createElement)(se.QueryControls,Object(ne.a)({order:u,orderBy:b},{numberOfItems:d,categoriesList:o,selectedCategoryId:m,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})}})),"grid"===l&&Object($.createElement)(se.RangeControl,{label:Object(K.__)("Columns"),value:s,onChange:function(e){return n({columns:e})},min:2,max:g?Math.min(6,r.length):6,required:!0}))),g=Array.isArray(r)&&r.length;if(!g)return Object($.createElement)($.Fragment,null,p,Object($.createElement)(se.Placeholder,{icon:"admin-post",label:Object(K.__)("Latest Posts")},Array.isArray(r)?Object(K.__)("No posts found."):Object($.createElement)(se.Spinner,null)));var f=r.length>d?r.slice(0,d):r,v=[{icon:"list-view",title:Object(K.__)("List view"),onClick:function(){return n({postLayout:"list"})},isActive:"list"===l},{icon:"grid-view",title:Object(K.__)("Grid view"),onClick:function(){return n({postLayout:"grid"})},isActive:"grid"===l}],O=Object(Go.__experimentalGetSettings)().formats.date;return Object($.createElement)($.Fragment,null,p,Object($.createElement)(W.BlockControls,null,Object($.createElement)(se.Toolbar,{controls:v})),Object($.createElement)("ul",{className:Q()(this.props.className,Object(q.a)({"wp-block-latest-posts__list":!0,"is-grid":"grid"===l,"has-dates":i},"columns-".concat(s),"grid"===l))},f.map((function(e,t){var n=e.title.rendered.trim(),r=e.excerpt.rendered;""===e.excerpt.raw&&(r=e.content.raw);var o=document.createElement("div");return o.innerHTML=r,r=o.textContent||o.innerText||"",Object($.createElement)("li",{key:t},Object($.createElement)("a",{href:e.link,target:"_blank",rel:"noreferrer noopener"},n?Object($.createElement)($.RawHTML,null,n):Object(K.__)("(no title)")),i&&e.date_gmt&&Object($.createElement)("time",{dateTime:Object(Go.format)("c",e.date_gmt),className:"wp-block-latest-posts__post-date"},Object(Go.dateI18n)(O,e.date_gmt)),c&&"excerpt"===a&&Object($.createElement)("div",{className:"wp-block-latest-posts__post-excerpt"},Object($.createElement)($.RawHTML,{key:"html"},h'+Object(K.__)("Read more")+"":r.trim().split(" ",h).join(" "))),c&&"full_post"===a&&Object($.createElement)("div",{className:"wp-block-latest-posts__post-full-content"},Object($.createElement)($.RawHTML,{key:"html"},e.content.raw.trim())))}))))}}]),t}($.Component),$o=Object(be.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(J.pickBy)({categories:c,order:o,orderby:a,per_page:r},(function(e){return!Object(J.isUndefined)(e)})))}}))(Zo),Yo=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object($.createElement)(se.Rect,{x:"11",y:"7",width:"6",height:"2"}),Object($.createElement)(se.Rect,{x:"11",y:"11",width:"6",height:"2"}),Object($.createElement)(se.Rect,{x:"11",y:"15",width:"6",height:"2"}),Object($.createElement)(se.Rect,{x:"7",y:"7",width:"2",height:"2"}),Object($.createElement)(se.Rect,{x:"7",y:"11",width:"2",height:"2"}),Object($.createElement)(se.Rect,{x:"7",y:"15",width:"2",height:"2"}),Object($.createElement)(se.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"})),Qo="core/latest-posts",Jo={title:Object(K.__)("Latest Posts"),description:Object(K.__)("Display a list of your most recent posts."),icon:Yo,category:"widgets",keywords:[Object(K.__)("recent posts")],supports:{align:!0,html:!1},edit:$o},Xo=function(e){var t=e.setAttributes,n=e.reversed,r=e.start;return Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,{title:Object(K.__)("Ordered List Settings")},Object($.createElement)(se.TextControl,{label:Object(K.__)("Start Value"),type:"number",onChange:function(e){var n=parseInt(e,10);t({start:isNaN(n)?void 0:n})},value:Number.isInteger(r)?r.toString(10):"",step:"1"}),Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Reverse List Numbering"),checked:n||!1,onChange:function(e){t({reversed:e||void 0})}})))};var ea=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.G,null,Object($.createElement)(se.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"})));var ta=Object(Z.a)({},Object(G.getPhrasingContentSchema)(),{ul:{},ol:{attributes:["type"]}});["ul","ol"].forEach((function(e){ta[e].children={li:{children:ta}}}));var na={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:function(e){return Object(G.createBlock)("core/list",{values:Object(It.toHTMLString)({value:Object(It.join)(e.map((function(t){var n=t.content,r=Object(It.create)({html:n});return e.length>1?r:Object(It.replace)(r,/\n/g,It.__UNSTABLE_LINE_SEPARATOR)})),It.__UNSTABLE_LINE_SEPARATOR),multilineTag:"li"})})}},{type:"block",blocks:["core/quote"],transform:function(e){var t=e.value;return Object(G.createBlock)("core/list",{values:Object(It.toHTMLString)({value:Object(It.create)({html:t,multilineTag:"p"}),multilineTag:"li"})})}},{type:"raw",selector:"ol,ul",schema:{ol:ta.ol,ul:ta.ul},transform:function(e){return Object(G.createBlock)("core/list",Object(Z.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(It.split)(Object(It.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),It.__UNSTABLE_LINE_SEPARATOR).map((function(e){return Object(G.createBlock)("core/paragraph",{content:Object(It.toHTMLString)({value:e})})}))}},{type:"block",blocks:["core/quote"],transform:function(e){var t=e.values;return Object(G.createBlock)("core/quote",{value:Object(It.toHTMLString)({value:Object(It.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),multilineTag:"p"})})}}]},ra={name:"core/list",category:"common",attributes:{ordered:{type:"boolean",default:!1},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:""},start:{type:"number"},reversed:{type:"boolean"}}},oa=ra.name,aa={title:Object(K.__)("List"),description:Object(K.__)("Create a bulleted or numbered list."),icon:ea,keywords:[Object(K.__)("bullet list"),Object(K.__)("ordered list"),Object(K.__)("numbered list")],supports:{className:!1},example:{attributes:{values:"
  • Alice.
  • The White Rabbit.
  • The Cheshire Cat.
  • The Mad Hatter.
  • The Queen of Hearts.
  • "}},transforms:na,merge:function(e,t){var n=t.values;return n&&"
  • "!==n?Object(Z.a)({},e,{values:e.values+n}):e},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.mergeBlocks,o=e.onReplace,a=e.className,c=t.ordered,i=t.values,l=t.reversed,s=t.start,u=c?"ol":"ul";return Object($.createElement)($.Fragment,null,Object($.createElement)(W.RichText,{identifier:"values",multiline:"li",tagName:u,onChange:function(e){return n({values:e})},value:i,wrapperClassName:"block-library-list",className:a,placeholder:Object(K.__)("Write list…"),onMerge:r,onSplit:function(e){return Object(G.createBlock)(oa,Object(Z.a)({},t,{values:e}))},__unstableOnSplitMiddle:function(){return Object(G.createBlock)("core/paragraph")},onReplace:o,onRemove:function(){return o([])},start:s,reversed:l},(function(e){var t=e.value,r=e.onChange;return Object($.createElement)($.Fragment,null,Object($.createElement)(W.RichTextShortcut,{type:"primary",character:"[",onUse:function(){r(Object(It.__unstableOutdentListItems)(t))}}),Object($.createElement)(W.RichTextShortcut,{type:"primary",character:"]",onUse:function(){r(Object(It.__unstableIndentListItems)(t,{type:u}))}}),Object($.createElement)(W.RichTextShortcut,{type:"primary",character:"m",onUse:function(){r(Object(It.__unstableIndentListItems)(t,{type:u}))}}),Object($.createElement)(W.RichTextShortcut,{type:"primaryShift",character:"m",onUse:function(){r(Object(It.__unstableOutdentListItems)(t))}}),Object($.createElement)(W.BlockControls,null,Object($.createElement)(se.Toolbar,{controls:[{icon:"editor-ul",title:Object(K.__)("Convert to unordered list"),isActive:Object(It.__unstableIsActiveListType)(t,"ul",u),onClick:function(){r(Object(It.__unstableChangeListType)(t,{type:"ul"})),Object(It.__unstableIsListRootSelected)(t)&&n({ordered:!1})}},{icon:"editor-ol",title:Object(K.__)("Convert to ordered list"),isActive:Object(It.__unstableIsActiveListType)(t,"ol",u),onClick:function(){r(Object(It.__unstableChangeListType)(t,{type:"ol"})),Object(It.__unstableIsListRootSelected)(t)&&n({ordered:!0})}},{icon:"editor-outdent",title:Object(K.__)("Outdent list item"),shortcut:Object(K._x)("Backspace","keyboard key"),onClick:function(){r(Object(It.__unstableOutdentListItems)(t))}},{icon:"editor-indent",title:Object(K.__)("Indent list item"),shortcut:Object(K._x)("Space","keyboard key"),onClick:function(){r(Object(It.__unstableIndentListItems)(t,{type:u}))}}]})))})),c&&Object($.createElement)(Xo,{setAttributes:n,ordered:c,reversed:l,start:s}))},save:function(e){var t=e.attributes,n=t.ordered,r=t.values,o=t.reversed,a=t.start,c=n?"ol":"ul";return Object($.createElement)(W.RichText.Content,{tagName:c,value:r,reversed:o,start:a,multiline:"li"})}};var ca=Object(be.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(K.sprintf)(Object(K.__)('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)(se.Button,{key:"convert",onClick:r,isLarge:!0,isPrimary:!0},Object(K.__)("Keep as HTML")))):t=Object(K.sprintf)(Object(K.__)('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))}));var ia={name:"core/missing",category:"common",attributes:{originalName:{type:"string"},originalUndelimitedContent:{type:"string"},originalContent:{type:"string",source:"html"}}},la=ia.name,sa={name:la,title:Object(K.__)("Unrecognized Block"),description:Object(K.__)("Your site doesn’t include support for this block."),supports:{className:!1,customClassName:!1,inserter:!1,html:!1,reusable:!1},edit:ca,save:function(e){var t=e.attributes;return Object($.createElement)($.RawHTML,null,t.originalContent)}},ua=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(ae.a)(this,Object(ce.a)(t).apply(this,arguments))).onChangeInput=e.onChangeInput.bind(Object(ie.a)(e)),e.onKeyDown=e.onKeyDown.bind(Object(ie.a)(e)),e.state={defaultText:Object(K.__)("Read more")},e}return Object(le.a)(t,e),Object(oe.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===we.ENTER&&n([Object(G.createBlock)(Object(G.getDefaultBlockName)())])}},{key:"getHideExcerptHelp",value:function(e){return e?Object(K.__)("The excerpt is hidden."):Object(K.__)("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)(se.PanelBody,null,Object($.createElement)(se.ToggleControl,{label:Object(K.__)("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),ba=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object($.createElement)(se.G,null,Object($.createElement)(se.Path,{d:"M2 9v2h19V9H2zm0 6h5v-2H2v2zm7 0h5v-2H9v2zm7 0h5v-2h-5v2z"})));var ma={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)}}]},da={name:"core/more",category:"layout",attributes:{customText:{type:"string"},noTeaser:{type:"boolean",default:!1}}},ha=da.name,pa={title:Object(K._x)("More","block name"),description:Object(K.__)("Content before this block will be shown in the excerpt on your archives page."),icon:ba,supports:{customClassName:!1,className:!1,html:!1,multiple:!1},example:{},transforms:ma,edit:ua,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(J.compact)([o,a]).join("\n"))}};var ga=Object($.createElement)(se.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24px",height:"24px",viewBox:"0 0 24 24"},Object($.createElement)(se.Path,{d:"M0 0h24v24H0z",fill:"none"}),Object($.createElement)(se.Path,{d:"M9 11h6v2H9zM2 11h5v2H2zM17 11h5v2h-5zM6 4h7v5h7V8l-6-6H6a2 2 0 0 0-2 2v5h2zM18 20H6v-5H4v5a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5h-2z"}));var fa={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",{})}}]},va={name:"core/nextpage",category:"layout"},Oa=va.name,ja={title:Object(K.__)("Page Break"),description:Object(K.__)("Separate your content into a multi-page experience."),icon:ga,keywords:[Object(K.__)("next page"),Object(K.__)("pagination")],supports:{customClassName:!1,className:!1,html:!1},example:{},transforms:fa,edit:function(){return Object($.createElement)("div",{className:"wp-block-nextpage"},Object($.createElement)("span",null,Object(K.__)("Page break")))},save:function(){return Object($.createElement)($.RawHTML,null,"\x3c!--nextpage--\x3e")}};var ya=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object($.createElement)(se.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)(se.Rect,{x:"6",y:"10",width:"2",height:"2"}),Object($.createElement)(se.Rect,{x:"6",y:"14",width:"8",height:"2"}),Object($.createElement)(se.Rect,{x:"16",y:"14",width:"2",height:"2"}),Object($.createElement)(se.Rect,{x:"10",y:"10",width:"8",height:"2"}));var _a={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)}}]},ka={name:"core/preformatted",category:"formatting",attributes:{content:{type:"string",source:"html",selector:"pre",default:""}}},Ca=ka.name,wa={title:Object(K.__)("Preformatted"),description:Object(K.__)("Add text that respects your spacing and tabs, and also allows styling."),icon:ya,example:{attributes:{content:Object(K.__)("EXT. XANADU - FAINT DAWN - 1940 (MINIATURE)")+"\n"+Object(K.__)("Window, very small in the distance, illuminated.")+"\n"+Object(K.__)("All around this is an almost totally black screen. Now, as the camera moves slowly towards the window which is almost a postage stamp in the frame, other forms appear;")}},transforms:_a,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.replace(/
    /g,"\n")})},placeholder:Object(K.__)("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}}},Ea="is-style-".concat("solid-color"),xa={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"}};function Sa(e){if(e){var t=e.match(/border-color:([^;]+)[;]?/);return t&&t[1]?t[1]:void 0}}var Ta=[{attributes:Object(Z.a)({},xa,{figureStyle:{source:"attribute",selector:"figure",attribute:"style"}}),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,b=r.figureStyle;if(Object(J.includes)(u,Ea)){var m=Object(W.getColorClassName)("background-color",o);t=Q()(Object(q.a)({"has-background":m||a},m,m)),n={backgroundColor:m?void 0:a}}else if(a)n={borderColor:a};else if(o){n={borderColor:Sa(b)}}var d=Object(W.getColorClassName)("color",c),h=(c||i)&&Q()("has-text-color",Object(q.a)({},d,d)),p=d?void 0:{color:i};return Object($.createElement)("figure",{className:t,style:n},Object($.createElement)("blockquote",{className:h,style:p},Object($.createElement)(W.RichText.Content,{value:l,multiline:!0}),!W.RichText.isEmpty(s)&&Object($.createElement)(W.RichText.Content,{tagName:"cite",value:s})))},migrate:function(e){var t=e.className,n=e.figureStyle,r=e.mainColor,o=Object(Bt.a)(e,["className","figureStyle","mainColor"]);if(!Object(J.includes)(t,Ea)&&r&&n){var a=Sa(n);if(a)return Object(Z.a)({},o,{className:t,customMainColor:a})}return Object(Z.a)({className:t,mainColor:r},o)}},{attributes:xa,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(J.includes)(u,Ea))(t=Object(W.getColorClassName)("background-color",o))||(n={backgroundColor:a});else if(a)n={borderColor:a};else if(o){var b=Object(J.get)(Object(be.select)("core/block-editor").getSettings(),["colors"],[]);n={borderColor:Object(W.getColorObjectByAttributeValues)(b,o).color}}var m=Object(W.getColorClassName)("color",c),d=c||i?Q()("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})))}},{attributes:Object(Z.a)({},xa),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(Z.a)({},xa,{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}))}}],Na=function(e){function t(e){var n;return Object(re.a)(this,t),(n=Object(ae.a)(this,Object(ce.a)(t).call(this,e))).wasTextColorAutomaticallyComputed=!1,n.pullQuoteMainColorSetter=n.pullQuoteMainColorSetter.bind(Object(ie.a)(n)),n.pullQuoteTextColorSetter=n.pullQuoteTextColorSetter.bind(Object(ie.a)(n)),n}return Object(le.a)(t,e),Object(oe.a)(t,[{key:"pullQuoteMainColorSetter",value:function(e){var t=this.props,n=t.colorUtils,r=t.textColor,o=t.setAttributes,a=t.setTextColor,c=t.setMainColor,i=t.className,l=Object(J.includes)(i,Ea),s=!r.color||this.wasTextColorAutomaticallyComputed,u=l&&s&&e;l?c(e):o({customMainColor:e}),u&&(this.wasTextColorAutomaticallyComputed=!0,a(n.getMostReadableColor(e)))}},{key:"pullQuoteTextColorSetter",value:function(e){(0,this.props.setTextColor)(e),this.wasTextColorAutomaticallyComputed=!1}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.attributes,r=t.className,o=t.mainColor,a=t.setAttributes;n.mainColor&&!Object(J.includes)(r,Ea)&&Object(J.includes)(e.className,Ea)&&a({mainColor:void 0,customMainColor:o.color})}},{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(J.includes)(c,Ea),u=s?{backgroundColor:n.color}:{borderColor:n.color},b=Q()(c,Object(q.a)({"has-background":s&&n.color},n.class,s&&n.class)),m={color:r.color},d=r.color&&Q()("has-text-color",Object(q.a)({},r.class,r.class));return Object($.createElement)($.Fragment,null,Object($.createElement)("figure",{style:u,className:b},Object($.createElement)("blockquote",{style:m,className:d},Object($.createElement)(W.RichText,{multiline:!0,value:i,onChange:function(e){return o({value:e})},placeholder:Object(K.__)("Write quote…"),wrapperClassName:"block-library-pullquote__content"}),(!W.RichText.isEmpty(l)||a)&&Object($.createElement)(W.RichText,{value:l,placeholder:Object(K.__)("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(K.__)("Color Settings"),colorSettings:[{value:n.color,onChange:this.pullQuoteMainColorSetter,label:Object(K.__)("Main Color")},{value:r.color,onChange:this.pullQuoteTextColorSetter,label:Object(K.__)("Text Color")}]},s&&Object($.createElement)(W.ContrastChecker,Object(ne.a)({textColor:r.color,backgroundColor:n.color},{isLargeText:!1})))))}}]),t}($.Component),Ra=Object(W.withColors)({mainColor:"background-color",textColor:"color"})(Na),Aa=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object($.createElement)(se.Polygon,{points:"21 18 2 18 2 20 21 20"}),Object($.createElement)(se.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)(se.Polygon,{points:"21 4 2 4 2 6 21 6"}));var Ba={name:"core/pullquote",category:"formatting",attributes:{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"}}},Ia=Ba.name,Ma={title:Object(K.__)("Pullquote"),description:Object(K.__)("Give special visual emphasis to a quote from your text."),icon:Aa,example:{attributes:{value:"

    "+Object(K.__)("One of the hardest things to do in technology is disrupt yourself.")+"

    ",citation:"Matt Mullenweg"}},styles:[{name:"default",label:Object(K._x)("Default","block style"),isDefault:!0},{name:"solid-color",label:Object(K.__)("Solid Color")}],supports:{align:["left","right","wide","full"]},edit:Ra,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(J.includes)(u,Ea)){var b=Object(W.getColorClassName)("background-color",o);t=Q()(Object(q.a)({"has-background":b||a},b,b)),n={backgroundColor:b?void 0:a}}else a&&(n={borderColor:a});var m=Object(W.getColorClassName)("color",c),d=(c||i)&&Q()("has-text-color",Object(q.a)({},m,m)),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:Ta},Pa=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(ae.a)(this,Object(ce.a)(t).apply(this,arguments))).titleField=Object($.createRef)(),e.editButton=Object($.createRef)(),e.handleFormSubmit=e.handleFormSubmit.bind(Object(ie.a)(e)),e.handleTitleChange=e.handleTitleChange.bind(Object(ie.a)(e)),e.handleTitleKeyDown=e.handleTitleKeyDown.bind(Object(ie.a)(e)),e}return Object(le.a)(t,e),Object(oe.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===we.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)(se.Button,{ref:this.editButton,isLarge:!0,className:"reusable-block-edit-panel__button",disabled:o,onClick:a},Object(K.__)("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(K.__)("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)(se.Button,{type:"submit",isLarge:!0,isBusy:r,disabled:!n||r,className:"reusable-block-edit-panel__button"},Object(K.__)("Save"))))}}]),t}($.Component),La=Object(ue.withInstanceId)(Pa);var Ha=function(e){var t=e.title,n=Object(K.sprintf)(Object(K.__)("Reusable Block: %s"),t);return Object($.createElement)(se.Tooltip,{text:n},Object($.createElement)("span",{className:"reusable-block-indicator"},Object($.createElement)(se.Dashicon,{icon:"controls-repeat"})))},za=function(e){function t(e){var n,r=e.reusableBlock;return Object(re.a)(this,t),(n=Object(ae.a)(this,Object(ce.a)(t).apply(this,arguments))).startEditing=n.startEditing.bind(Object(ie.a)(n)),n.stopEditing=n.stopEditing.bind(Object(ie.a)(n)),n.setBlocks=n.setBlocks.bind(Object(ie.a)(n)),n.setTitle=n.setTitle.bind(Object(ie.a)(n)),n.save=n.save.bind(Object(ie.a)(n)),n.state=r?{isEditing:r.isTemporary,title:r.title,blocks:Object(G.parse)(r.content)}:{isEditing:!1,title:null,blocks:[]},n}return Object(le.a)(t,e),Object(oe.a)(t,[{key:"componentDidMount",value:function(){this.props.reusableBlock||this.props.fetchReusableBlock()}},{key:"componentDidUpdate",value:function(e){e.reusableBlock!==this.props.reusableBlock&&null===this.state.title&&this.setState({title:this.props.reusableBlock.title,blocks:Object(G.parse)(this.props.reusableBlock.content)})}},{key:"startEditing",value:function(){var e=this.props.reusableBlock;this.setState({isEditing:!0,title:e.title,blocks:Object(G.parse)(e.content)})}},{key:"stopEditing",value:function(){this.setState({isEditing:!1,title:null,blocks:[]})}},{key:"setBlocks",value:function(e){this.setState({blocks:e})}},{key:"setTitle",value:function(e){this.setState({title:e})}},{key:"save",value:function(){var e=this.props,t=e.onChange,n=e.onSave,r=this.state,o=r.blocks;t({title:r.title,content:Object(G.serialize)(o)}),n(),this.stopEditing()}},{key:"render",value:function(){var e=this.props,t=e.isSelected,n=e.reusableBlock,r=e.isFetching,o=e.isSaving,a=e.canUpdateBlock,c=e.settings,i=this.state,l=i.isEditing,s=i.title,u=i.blocks;if(!n&&r)return Object($.createElement)(se.Placeholder,null,Object($.createElement)(se.Spinner,null));if(!n)return Object($.createElement)(se.Placeholder,null,Object(K.__)("Block has been deleted or is unavailable."));var b=Object($.createElement)(W.BlockEditorProvider,{settings:c,value:u,onChange:this.setBlocks,onInput:this.setBlocks},Object($.createElement)(W.WritingFlow,null,Object($.createElement)(W.BlockList,null)));return l||(b=Object($.createElement)(se.Disabled,null,b)),Object($.createElement)("div",{className:"block-library-block__reusable-block-container"},(t||l)&&Object($.createElement)(La,{isEditing:l,title:null!==s?s:n.title,isSaving:o&&!n.isTemporary,isEditDisabled:!a,onEdit:this.startEditing,onChangeTitle:this.setTitle,onSave:this.save,onCancel:this.stopEditing}),!t&&!l&&Object($.createElement)(Ha,{title:n.title}),b)}}]),t}($.Component),Va=Object(ue.compose)([Object(be.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"),l=i.__experimentalGetParsedReusableBlock,s=i.getSettings,u=t.attributes.ref,b=r(u);return{reusableBlock:b,isFetching:o(u),isSaving:a(u),blocks:b?l(b.id):null,canUpdateBlock:!!b&&!b.isTemporary&&!!c("update","blocks",u),settings:s()}})),Object(be.withDispatch)((function(e,t){var n=e("core/editor"),r=n.__experimentalFetchReusableBlocks,o=n.__experimentalUpdateReusableBlock,a=n.__experimentalSaveReusableBlock,c=t.attributes.ref;return{fetchReusableBlock:Object(J.partial)(r,c),onChange:Object(J.partial)(o,c),onSave:Object(J.partial)(a,c)}}))])(za),Da="core/block",Fa={title:Object(K.__)("Reusable Block"),category:"reusable",description:Object(K.__)("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."),supports:{customClassName:!1,html:!1,inserter:!1},edit:Va},Ua=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(ae.a)(this,Object(ce.a)(t).apply(this,arguments))).state={editing:!e.props.attributes.feedURL},e.toggleAttribute=e.toggleAttribute.bind(Object(ie.a)(e)),e.onSubmitURL=e.onSubmitURL.bind(Object(ie.a)(e)),e}return Object(le.a)(t,e),Object(oe.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)(se.Placeholder,{icon:"rss",label:"RSS"},Object($.createElement)("form",{onSubmit:this.onSubmitURL},Object($.createElement)(se.TextControl,{placeholder:Object(K.__)("Enter URL here…"),value:l,onChange:function(e){return u({feedURL:e})},className:"components-placeholder__input"}),Object($.createElement)(se.Button,{isLarge:!0,type:"submit"},Object(K.__)("Use URL"))));var b=[{icon:"edit",title:Object(K.__)("Edit RSS URL"),onClick:function(){return e.setState({editing:!0})}},{icon:"list-view",title:Object(K.__)("List view"),onClick:function(){return u({blockLayout:"list"})},isActive:"list"===n},{icon:"grid-view",title:Object(K.__)("Grid view"),onClick:function(){return u({blockLayout:"grid"})},isActive:"grid"===n}];return Object($.createElement)($.Fragment,null,Object($.createElement)(W.BlockControls,null,Object($.createElement)(se.Toolbar,{controls:b})),Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,{title:Object(K.__)("RSS Settings")},Object($.createElement)(se.RangeControl,{label:Object(K.__)("Number of items"),value:s,onChange:function(e){return u({itemsToShow:e})},min:1,max:10,required:!0}),Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Display author"),checked:o,onChange:this.toggleAttribute("displayAuthor")}),Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Display date"),checked:c,onChange:this.toggleAttribute("displayDate")}),Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Display excerpt"),checked:a,onChange:this.toggleAttribute("displayExcerpt")}),a&&Object($.createElement)(se.RangeControl,{label:Object(K.__)("Max number of words in excerpt"),value:i,onChange:function(e){return u({excerptLength:e})},min:10,max:100,required:!0}),"grid"===n&&Object($.createElement)(se.RangeControl,{label:Object(K.__)("Columns"),value:r,onChange:function(e){return u({columns:e})},min:2,max:6,required:!0}))),Object($.createElement)(se.Disabled,null,Object($.createElement)(rn.a,{block:"core/rss",attributes:this.props.attributes})))}}]),t}($.Component),qa="core/rss",Wa={title:Object(K.__)("RSS"),description:Object(K.__)("Display entries from any RSS or Atom feed."),icon:"rss",category:"widgets",keywords:[Object(K.__)("atom"),Object(K.__)("feed")],supports:{align:!0,html:!1},example:{attributes:{feedURL:"https://wordpress.org"}},edit:Ua};var Ga="core/search",Ka={title:Object(K.__)("Search"),description:Object(K.__)("Help visitors find your content."),icon:"search",category:"widgets",keywords:[Object(K.__)("find")],supports:{align:!0},example:{},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(K.__)("Label text"),placeholder:Object(K.__)("Add label…"),withoutInteractiveFormatting:!0,value:o,onChange:function(e){return r({label:e})}}),Object($.createElement)("input",{className:"wp-block-search__input","aria-label":Object(K.__)("Optional placeholder text"),placeholder:a?void 0:Object(K.__)("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(K.__)("Button text"),placeholder:Object(K.__)("Add button text…"),withoutInteractiveFormatting:!0,value:c,onChange:function(e){return r({buttonText:e})}}))}},Za=[{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},save:function(e){var t=e.attributes,n=t.backgroundColor,r=t.customBackgroundColor,o=Object(W.getColorClassName)("background-color",n),a=Q()(o,{"has-background":n||r}),c={backgroundColor:o?void 0:r};return Object($.createElement)("div",{className:a,style:c},Object($.createElement)(W.InnerBlocks.Content,null))}}];var $a=Object(ue.compose)([Object(W.withColors)("backgroundColor"),Object(be.withSelect)((function(e,t){var n=t.clientId,r=(0,e("core/block-editor").getBlock)(n);return{hasInnerBlocks:!(!r||!r.innerBlocks.length)}}))])((function(e){var t=e.className,n=e.setBackgroundColor,r=e.backgroundColor,o=e.hasInnerBlocks,a={backgroundColor:r.color},c=Q()(t,r.class,{"has-background":!!r.color});return Object($.createElement)($.Fragment,null,Object($.createElement)(W.InspectorControls,null,Object($.createElement)(W.PanelColorSettings,{title:Object(K.__)("Color Settings"),colorSettings:[{value:r.color,onChange:n,label:Object(K.__)("Background Color")}]})),Object($.createElement)("div",{className:c,style:a},Object($.createElement)("div",{className:"wp-block-group__inner-container"},Object($.createElement)(W.InnerBlocks,{renderAppender:!o&&W.InnerBlocks.ButtonBlockAppender}))))})),Ya=Object($.createElement)(se.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M9 8a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-1v3a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1h1V8zm2 3h4V9h-4v2zm2 2H9v2h4v-2z"}),Object($.createElement)(se.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M2 4.732A2 2 0 1 1 4.732 2h14.536A2 2 0 1 1 22 4.732v14.536A2 2 0 1 1 19.268 22H4.732A2 2 0 1 1 2 19.268V4.732zM4.732 4h14.536c.175.304.428.557.732.732v14.536a2.01 2.01 0 0 0-.732.732H4.732A2.01 2.01 0 0 0 4 19.268V4.732A2.01 2.01 0 0 0 4.732 4z"}));var Qa={name:"core/group",category:"layout",attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"}}},Ja=Qa.name,Xa={title:Object(K.__)("Group"),icon:Ya,description:Object(K.__)("A block that groups other blocks."),keywords:[Object(K.__)("container"),Object(K.__)("wrapper"),Object(K.__)("row"),Object(K.__)("section")],example:{attributes:{customBackgroundColor:"#ffffff"},innerBlocks:[{name:"core/paragraph",attributes:{customTextColor:"#cf2e2e",fontSize:"large",content:Object(K.__)("One.")}},{name:"core/paragraph",attributes:{customTextColor:"#ff6900",fontSize:"large",content:Object(K.__)("Two.")}},{name:"core/paragraph",attributes:{customTextColor:"#fcb900",fontSize:"large",content:Object(K.__)("Three.")}},{name:"core/paragraph",attributes:{customTextColor:"#00d084",fontSize:"large",content:Object(K.__)("Four.")}},{name:"core/paragraph",attributes:{customTextColor:"#0693e3",fontSize:"large",content:Object(K.__)("Five.")}},{name:"core/paragraph",attributes:{customTextColor:"#9b51e0",fontSize:"large",content:Object(K.__)("Six.")}}]},supports:{align:["wide","full"],anchor:!0,html:!1},transforms:{from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:function(e){if(1!==e.length||"core/group"!==e[0].name){var t=["wide","full"],n=e.reduce((function(e,n){var r=n.attributes.align;return t.indexOf(r)>t.indexOf(e)?r:e}),void 0),r=e.map((function(e){return Object(G.createBlock)(e.name,e.attributes,e.innerBlocks)}));return Object(G.createBlock)("core/group",{align:n},r)}}}]},edit:$a,save:function(e){var t=e.attributes,n=t.backgroundColor,r=t.customBackgroundColor,o=Object(W.getColorClassName)("background-color",n),a=Q()(o,{"has-background":n||r}),c={backgroundColor:o?void 0:r};return Object($.createElement)("div",{className:a,style:c},Object($.createElement)("div",{className:"wp-block-group__inner-container"},Object($.createElement)(W.InnerBlocks.Content,null)))},deprecated:Za};var ec=Object(W.withColors)("color",{textColor:"color"})((function(e){var t=e.color,n=e.setColor,r=e.className;return Object($.createElement)($.Fragment,null,Object($.createElement)(se.HorizontalRule,{className:Q()(r,Object(q.a)({"has-background":t.color},t.class,t.class)),style:{backgroundColor:t.color,color:t.color}}),Object($.createElement)(W.InspectorControls,null,Object($.createElement)(W.PanelColorSettings,{title:Object(K.__)("Color Settings"),colorSettings:[{value:t.color,onChange:n,label:Object(K.__)("Color")}]})))})),tc=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object($.createElement)(se.Path,{d:"M19 13H5v-2h14v2z"}));var nc={from:[{type:"enter",regExp:/^-{3,}$/,transform:function(){return Object(G.createBlock)("core/separator")}},{type:"raw",selector:"hr",schema:{hr:{}}}]},rc={name:"core/separator",category:"layout",attributes:{color:{type:"string"},customColor:{type:"string"}}},oc=rc.name,ac={title:Object(K.__)("Separator"),description:Object(K.__)("Create a break between ideas or sections with a horizontal separator."),icon:tc,keywords:[Object(K.__)("horizontal-line"),"hr",Object(K.__)("divider")],example:{attributes:{customColor:"#065174",className:"is-style-wide"}},styles:[{name:"default",label:Object(K.__)("Default"),isDefault:!0},{name:"wide",label:Object(K.__)("Wide Line")},{name:"dots",label:Object(K.__)("Dots")}],transforms:nc,edit:ec,save:function(e){var t,n=e.attributes,r=n.color,o=n.customColor,a=Object(W.getColorClassName)("background-color",r),c=Object(W.getColorClassName)("color",r),i=Q()((t={"has-text-color has-background":r||o},Object(q.a)(t,a,a),Object(q.a)(t,c,c),t)),l={backgroundColor:a?void 0:o,color:c?void 0:o};return Object($.createElement)("hr",{className:i,style:l})}},cc=Object(ue.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 components-placeholder"},Object($.createElement)("label",{htmlFor:o,className:"components-placeholder__label"},Object($.createElement)(se.Dashicon,{icon:"shortcode"}),Object(K.__)("Shortcode")),Object($.createElement)(W.PlainText,{className:"input-control",id:o,value:t.text,placeholder:Object(K.__)("Write shortcode here…"),onChange:function(e){return n({text:e})}}))})),ic=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.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"}));var lc=n(69),sc={from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:function(e,t){var n=t.content;return Object(lc.removep)(Object(lc.autop)(n))}}},priority:20}]},uc="core/shortcode",bc={title:Object(K.__)("Shortcode"),description:Object(K.__)("Insert additional custom elements with a WordPress shortcode."),icon:ic,category:"widgets",transforms:sc,supports:{customClassName:!1,className:!1,html:!1},edit:cc,save:function(e){var t=e.attributes;return Object($.createElement)($.RawHTML,null,t.text)}},mc=Object(ue.compose)([Object(be.withDispatch)((function(e){var t=e("core/block-editor").toggleSelection;return{onResizeStart:function(){return t(!1)},onResizeStop:function(){return t(!0)}}})),ue.withInstanceId])((function(e){var t=e.attributes,n=e.isSelected,r=e.setAttributes,o=e.instanceId,a=e.onResizeStart,c=e.onResizeStop,i=t.height,l="block-spacer-height-input-".concat(o),s=Object($.useState)(i),u=Object(ke.a)(s,2),b=u[0],m=u[1];return Object($.createElement)($.Fragment,null,Object($.createElement)(se.ResizableBox,{className:Q()("block-library-spacer__resize-container",{"is-selected":n}),size:{height:i},minHeight:"20",enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:a,onResizeStop:function(e,t,n,o){c();var a=parseInt(i+o.height,10);r({height:a}),m(a)}}),Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,{title:Object(K.__)("Spacer Settings")},Object($.createElement)(se.BaseControl,{label:Object(K.__)("Height in pixels"),id:l},Object($.createElement)("input",{type:"number",id:l,onChange:function(e){var t=parseInt(e.target.value,10);m(t),isNaN(t)?(m(""),t=100):t<20&&(t=20),r({height:t})},value:b,min:"20",step:"10"})))))})),dc=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.G,null,Object($.createElement)(se.Path,{d:"M13 4v2h3.59L6 16.59V13H4v7h7v-2H7.41L18 7.41V11h2V4h-7"})));var hc={name:"core/spacer",category:"layout",attributes:{height:{type:"number",default:100}}},pc=hc.name,gc={title:Object(K.__)("Spacer"),description:Object(K.__)("Add white space between blocks and customize its height."),icon:dc,edit:mc,save:function(e){var t=e.attributes;return Object($.createElement)("div",{style:{height:t.height},"aria-hidden":!0})}},fc=n(37),vc=n.n(fc);var Oc=Object($.createElement)(se.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object($.createElement)(se.Path,{d:"M7.1 6l-.5 3h4.5L9.4 19h3l1.8-10h4.5l.5-3H7.1z"}));var jc={to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(G.createBlock)("core/paragraph",e)}}]},yc={name:"core/subhead",category:"common",attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"p"}}},_c=yc.name,kc={title:Object(K.__)("Subheading (deprecated)"),description:Object(K.__)("This block is deprecated. Please use the Paragraph block instead."),icon:Oc,supports:{inserter:!1,multiple:!1},transforms:jc,edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.className,o=t.align,a=t.content,c=t.placeholder;return vc()("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(K.__)("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})}},Cc=[{attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}}},supports:{align:!0},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=Q()(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,o=e.scope;return Object($.createElement)(W.RichText.Content,{tagName:r,value:n,key:t,scope:"th"===r?o:void 0})})))})))};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}))}}],wc=["align"];function Ec(e,t,n){if(!t)return e;var r=Object(J.pick)(e,["head","body","foot"]),o=t.sectionName,a=t.rowIndex;return Object(J.mapValues)(r,(function(e,r){return o&&o!==r?e:e.map((function(e,o){return a&&a!==o?e:{cells:e.cells.map((function(e,a){return xc({sectionName:r,columnIndex:a,rowIndex:o},t)?n(e):e}))}}))}))}function xc(e,t){if(!e||!t)return!1;switch(t.type){case"column":return"column"===t.type&&e.columnIndex===t.columnIndex;case"cell":return"cell"===t.type&&e.sectionName===t.sectionName&&e.columnIndex===t.columnIndex&&e.rowIndex===t.rowIndex}}function Sc(e,t){var n=t.sectionName,r=t.rowIndex,o=t.columnCount,a=function(e){return Rc(e.head)?Rc(e.body)?Rc(e.foot)?void 0:e.foot[0]:e.body[0]:e.head[0]}(e),c=void 0===o?Object(J.get)(a,["cells","length"]):o;return c?Object(q.a)({},n,[].concat(Object(U.a)(e[n].slice(0,r)),[{cells:Object(J.times)(c,(function(e){var t=Object(J.get)(a,["cells",e],{}),r=Object(J.pick)(t,wc);return Object(Z.a)({},r,{content:"",tag:"head"===n?"th":"td"})}))}],Object(U.a)(e[n].slice(r)))):e}function Tc(e,t){var n=t.columnIndex,r=Object(J.pick)(e,["head","body","foot"]);return Object(J.mapValues)(r,(function(e,t){return Rc(e)?e:e.map((function(e){return Ac(e)||e.cells.length0&&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.columnIndex;this.setState({selectedCell:null}),o(Tc(r,{columnIndex:a+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.sectionName,a=e.columnIndex;this.setState({selectedCell:null}),r(function(e,t){var n=t.columnIndex,r=Object(J.pick)(e,["head","body","foot"]);return Object(J.mapValues)(r,(function(e){return Rc(e)?e:e.map((function(e){return{cells:e.cells.length>=n?e.cells.filter((function(e,t){return t!==n})):e.cells}})).filter((function(e){return e.cells.length}))}))}(n,{sectionName:o,columnIndex:a}))}}},{key:"createOnFocus",value:function(e){var t=this;return function(){t.setState({selectedCell:Object(Z.a)({},e,{type:"cell"})})}}},{key:"getTableControls",value:function(){var e=this.state.selectedCell;return[{icon:"table-row-before",title:Object(K.__)("Add Row Before"),isDisabled:!e,onClick:this.onInsertRowBefore},{icon:"table-row-after",title:Object(K.__)("Add Row After"),isDisabled:!e,onClick:this.onInsertRowAfter},{icon:"table-row-delete",title:Object(K.__)("Delete Row"),isDisabled:!e,onClick:this.onDeleteRow},{icon:"table-col-before",title:Object(K.__)("Add Column Before"),isDisabled:!e,onClick:this.onInsertColumnBefore},{icon:"table-col-after",title:Object(K.__)("Add Column After"),isDisabled:!e,onClick:this.onInsertColumnAfter},{icon:"table-col-delete",title:Object(K.__)("Delete Column"),isDisabled:!e,onClick:this.onDeleteColumn}]}},{key:"renderSection",value:function(e){var t=this,n=e.name,r=e.rows;if(Rc(r))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=e.scope,s=e.align,u={sectionName:n,rowIndex:r,columnIndex:o},b=xc(u,a),m=Q()(Object(q.a)({"is-selected":b},"has-text-align-".concat(s),s));return Object($.createElement)(i,{key:o,className:m,scope:"th"===i?l:void 0,onClick:function(e){var t=e&&e.target&&e.target.querySelector(".".concat("wp-block-table__cell-content"));t&&t.focus()}},Object($.createElement)(W.RichText,{className:"wp-block-table__cell-content",value:c,onChange:t.onChange,unstableOnFocus:t.createOnFocus(u)}))})))})))}},{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,t=this.props,n=t.attributes,r=t.className,o=t.backgroundColor,a=t.setBackgroundColor,c=this.state,i=c.initialRowCount,l=c.initialColumnCount,s=n.hasFixedLayout,u=n.head,b=n.body,m=n.foot,d=Rc(u)&&Rc(b)&&Rc(m),h=this.renderSection;if(d)return Object($.createElement)(se.Placeholder,{label:Object(K.__)("Table"),icon:Object($.createElement)(W.BlockIcon,{icon:Bc,showColors:!0}),instructions:Object(K.__)("Insert a table for sharing data."),isColumnLayout:!0},Object($.createElement)("form",{className:"wp-block-table__placeholder-form",onSubmit:this.onCreateTable},Object($.createElement)(se.TextControl,{type:"number",label:Object(K.__)("Column Count"),value:l,onChange:this.onChangeInitialColumnCount,min:"1",className:"wp-block-table__placeholder-input"}),Object($.createElement)(se.TextControl,{type:"number",label:Object(K.__)("Row Count"),value:i,onChange:this.onChangeInitialRowCount,min:"1",className:"wp-block-table__placeholder-input"}),Object($.createElement)(se.Button,{className:"wp-block-table__placeholder-button",isDefault:!0,type:"submit"},Object(K.__)("Create Table"))));var p=Q()(o.class,{"has-fixed-layout":s,"has-background":!!o.color});return Object($.createElement)($.Fragment,null,Object($.createElement)(W.BlockControls,null,Object($.createElement)(se.Toolbar,null,Object($.createElement)(se.DropdownMenu,{hasArrowIndicator:!0,icon:"editor-table",label:Object(K.__)("Edit table"),controls:this.getTableControls()})),Object($.createElement)(W.AlignmentToolbar,{label:Object(K.__)("Change column alignment"),alignmentControls:Mc,value:this.getCellAlignment(),onChange:function(t){return e.onChangeColumnAlignment(t)},onHover:this.onHoverAlignment})),Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,{title:Object(K.__)("Table Settings"),className:"blocks-table-settings"},Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Fixed width table cells"),checked:!!s,onChange:this.onChangeFixedLayout}),Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Header section"),checked:!(!u||!u.length),onChange:this.onToggleHeaderSection}),Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Footer section"),checked:!(!m||!m.length),onChange:this.onToggleFooterSection})),Object($.createElement)(W.PanelColorSettings,{title:Object(K.__)("Color Settings"),initialOpen:!1,colorSettings:[{value:o.color,onChange:a,label:Object(K.__)("Background Color"),disableCustomColors:!0,colors:Ic}]})),Object($.createElement)("figure",{className:r},Object($.createElement)("table",{className:p},Object($.createElement)(h,{name:"head",rows:u}),Object($.createElement)(h,{name:"body",rows:b}),Object($.createElement)(h,{name:"foot",rows:m}))))}}]),t}($.Component),Hc=Pc("backgroundColor")(Lc);var zc={tr:{allowEmpty:!0,children:{th:{allowEmpty:!0,children:Object(G.getPhrasingContentSchema)(),attributes:["scope"]},td:{allowEmpty:!0,children:Object(G.getPhrasingContentSchema)()}}}},Vc={from:[{type:"raw",selector:"table",schema:{table:{children:{thead:{allowEmpty:!0,children:zc},tfoot:{allowEmpty:!0,children:zc},tbody:{allowEmpty:!0,children:zc}}}}}]},Dc={name:"core/table",category:"formatting",attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}}}},Fc=Dc.name,Uc={title:Object(K.__)("Table"),description:Object(K.__)("Insert a table — perfect for sharing charts and data."),icon:Bc,example:{attributes:{head:[{cells:[{content:Object(K.__)("Version"),tag:"th"},{content:Object(K.__)("Jazz Musician"),tag:"th"},{content:Object(K.__)("Release Date"),tag:"th"}]}],body:[{cells:[{content:"5.2",tag:"td"},{content:"Jaco Pastorius",tag:"td"},{content:Object(K.__)("May 7, 2019"),tag:"td"}]},{cells:[{content:"5.1",tag:"td"},{content:"Betty Carter",tag:"td"},{content:Object(K.__)("February 21, 2019"),tag:"td"}]},{cells:[{content:"5.0",tag:"td"},{content:"Bebo Valdés",tag:"td"},{content:Object(K.__)("December 6, 2018"),tag:"td"}]}]}},styles:[{name:"regular",label:Object(K._x)("Default","block style"),isDefault:!0},{name:"stripes",label:Object(K.__)("Stripes")}],supports:{align:!0},transforms:Vc,edit:Hc,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=Q()(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,o=e.scope,a=e.align,c=Q()(Object(q.a)({},"has-text-align-".concat(a),a));return Object($.createElement)(W.RichText.Content,{className:c||void 0,"data-align":a,tagName:r,value:n,key:t,scope:"th"===r?o:void 0})})))})))};return Object($.createElement)("figure",null,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})))},deprecated:Cc};var qc={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})])})))}}]},Wc={name:"core/text-columns",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"}}},Gc=Wc.name,Kc={supports:{inserter:!1},title:Object(K.__)("Text Columns (deprecated)"),description:Object(K.__)("This block is deprecated. Please use the Columns block instead."),transforms:qc,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 vc()("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)(se.PanelBody,null,Object($.createElement)(se.RangeControl,{label:Object(K.__)("Columns"),value:c,onChange:function(e){return n({columns:e})},min:2,max:4,required:!0}))),Object($.createElement)("div",{className:"".concat(r," align").concat(o," columns-").concat(c)},Object(J.times)(c,(function(e){return Object($.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object($.createElement)(W.RichText,{tagName:"p",value:Object(J.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(K.__)("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(J.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(J.get)(r,[e,"children"])}))})))}},Zc=[{attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}},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})}}];var $c=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:"M21 11.01L3 11V13H21V11.01ZM3 16H17V18H3V16ZM15 6H3V8.01L15 8V6Z"}));var Yc={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)}}]},Qc={name:"core/verse",category:"formatting",attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}}},Jc=Qc.name,Xc={title:Object(K.__)("Verse"),description:Object(K.__)("Insert poetry. Use special spacing formats. Or quote song lyrics."),icon:$c,example:{attributes:{content:Object(K.__)("WHAT was he doing, the great god Pan,")+"
    "+Object(K.__)(" Down in the reeds by the river?")+"
    "+Object(K.__)("Spreading ruin and scattering ban,")+"
    "+Object(K.__)("Splashing and paddling with hoofs of a goat,")+"
    "+Object(K.__)("And breaking the golden lilies afloat")+"
    "+Object(K.__)(" With the dragon-fly on the river.")}},keywords:[Object(K.__)("poetry")],transforms:Yc,deprecated:Zc,merge:function(e,t){return{content:e.content+t.content}},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})},placeholder:Object(K.__)("Write…"),wrapperClassName:r,className:Q()(Object(q.a)({},"has-text-align-".concat(a),a)),onMerge:o}))},save:function(e){var t=e.attributes,n=t.textAlign,r=t.content,o=Q()(Object(q.a)({},"has-text-align-".concat(n),n));return Object($.createElement)(W.RichText.Content,{tagName:"pre",className:o,value:r})}},ei=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object($.createElement)(se.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"})),ti=["video"],ni=["image"],ri=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(ae.a)(this,Object(ce.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(ie.a)(e)),e.onSelectURL=e.onSelectURL.bind(Object(ie.a)(e)),e.onSelectPoster=e.onSelectPoster.bind(Object(ie.a)(e)),e.onRemovePoster=e.onRemovePoster.bind(Object(ie.a)(e)),e.onUploadError=e.onUploadError.bind(Object(ie.a)(e)),e}return Object(le.a)(t,e),Object(oe.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.mediaUpload,o=t.noticeOperations,a=t.setAttributes,c=n.id,i=n.src,l=void 0===i?"":i;if(!c&&Object(Ce.isBlobURL)(l)){var s=Object(Ce.getBlobByURL)(l);s&&r({filesList:[s],onFileChange:function(e){var t=Object(ke.a)(e,1)[0].url;a({src:t})},onError:function(t){e.setState({editing:!0}),o.createErrorNotice(t)},allowedTypes:ti})}}},{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=et({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:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"getAutoplayHelp",value:function(e){return e?Object(K.__)("Note: Autoplaying videos may cause usability issues for some visitors."):null}},{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.playsInline,l=t.poster,s=t.preload,u=t.src,b=this.props,m=b.className,d=b.instanceId,h=b.isSelected,p=b.noticeUI,g=b.setAttributes,f=this.state.editing,v=function(){e.setState({editing:!0})};if(f)return Object($.createElement)(W.MediaPlaceholder,{icon:Object($.createElement)(W.BlockIcon,{icon:ei}),className:m,onSelect:function(t){if(!t||!t.url)return g({src:void 0,id:void 0}),void v();g({src:t.url,id:t.id}),e.setState({src:t.url,editing:!1})},onSelectURL:this.onSelectURL,accept:"video/*",allowedTypes:ti,value:this.props.attributes,notices:p,onError:this.onUploadError});var O="video-block__poster-image-description-".concat(d);return Object($.createElement)($.Fragment,null,Object($.createElement)(W.BlockControls,null,Object($.createElement)(se.Toolbar,null,Object($.createElement)(se.IconButton,{className:"components-icon-button components-toolbar__control",label:Object(K.__)("Edit video"),onClick:v,icon:"edit"}))),Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,{title:Object(K.__)("Video Settings")},Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Autoplay"),onChange:this.toggleAttribute("autoplay"),checked:n,help:this.getAutoplayHelp}),Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Loop"),onChange:this.toggleAttribute("loop"),checked:a}),Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Muted"),onChange:this.toggleAttribute("muted"),checked:c}),Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Playback Controls"),onChange:this.toggleAttribute("controls"),checked:o}),Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Play inline"),onChange:this.toggleAttribute("playsInline"),checked:i}),Object($.createElement)(se.SelectControl,{label:Object(K.__)("Preload"),value:s,onChange:function(e){return g({preload:e})},options:[{value:"auto",label:Object(K.__)("Auto")},{value:"metadata",label:Object(K.__)("Metadata")},{value:"none",label:Object(K.__)("None")}]}),Object($.createElement)(W.MediaUploadCheck,null,Object($.createElement)(se.BaseControl,{className:"editor-video-poster-control"},Object($.createElement)(se.BaseControl.VisualLabel,null,Object(K.__)("Poster Image")),Object($.createElement)(W.MediaUpload,{title:Object(K.__)("Select Poster Image"),onSelect:this.onSelectPoster,allowedTypes:ni,render:function(t){var n=t.open;return Object($.createElement)(se.Button,{isDefault:!0,onClick:n,ref:e.posterImageButton,"aria-describedby":O},e.props.attributes.poster?Object(K.__)("Replace image"):Object(K.__)("Select Poster Image"))}}),Object($.createElement)("p",{id:O,hidden:!0},this.props.attributes.poster?Object(K.sprintf)(Object(K.__)("The current poster image url is %s"),this.props.attributes.poster):Object(K.__)("There is no poster image currently selected")),!!this.props.attributes.poster&&Object($.createElement)(se.Button,{onClick:this.onRemovePoster,isLink:!0,isDestructive:!0},Object(K.__)("Remove Poster Image")))))),Object($.createElement)("figure",{className:m},Object($.createElement)(se.Disabled,null,Object($.createElement)("video",{controls:o,poster:l,src:u,ref:this.videoPlayer})),(!W.RichText.isEmpty(r)||h)&&Object($.createElement)(W.RichText,{tagName:"figcaption",placeholder:Object(K.__)("Write caption…"),value:r,onChange:function(e){return g({caption:e})},inlineToolbar:!0})))}}]),t}($.Component),oi=Object(ue.compose)([Object(be.withSelect)((function(e){return{mediaUpload:(0,e("core/block-editor").getSettings)().__experimentalMediaUpload}})),se.withNotices,ue.withInstanceId])(ri);var ai={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(Ce.createBlobURL)(t)})}},{type:"shortcode",tag:"video",attributes:{src:{type:"string",shortcode:function(e){var t=e.named,n=t.src,r=t.mp4,o=t.m4v,a=t.webm,c=t.ogv,i=t.flv;return n||r||o||a||c||i}},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}}}}]},ci={name:"core/video",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"},playsInline:{type:"boolean",source:"attribute",selector:"video",attribute:"playsinline"}}},ii=ci.name,li={title:Object(K.__)("Video"),description:Object(K.__)("Embed a video from your media library or upload a new one."),icon:ei,keywords:[Object(K.__)("movie")],transforms:ai,supports:{align:!0},edit:oi,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,u=t.playsInline;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,playsInline:u}),!W.RichText.isEmpty(r)&&Object($.createElement)(W.RichText.Content,{tagName:"figcaption",value:r}))}},si=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(ae.a)(this,Object(ce.a)(t).apply(this,arguments))).state={editing:!e.props.attributes.taxonomy},e.setTaxonomy=e.setTaxonomy.bind(Object(ie.a)(e)),e.toggleShowTagCounts=e.toggleShowTagCounts.bind(Object(ie.a)(e)),e}return Object(le.a)(t,e),Object(oe.a)(t,[{key:"getTaxonomyOptions",value:function(){var e=Object(J.filter)(this.props.taxonomies,"show_cloud"),t={label:Object(K.__)("- Select -"),value:"",disabled:!0},n=Object(J.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)(se.PanelBody,{title:Object(K.__)("Tag Cloud Settings")},Object($.createElement)(se.SelectControl,{label:Object(K.__)("Taxonomy"),options:r,value:t,onChange:this.setTaxonomy}),Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Show post counts"),checked:n,onChange:this.toggleShowTagCounts})));return Object($.createElement)($.Fragment,null,o,Object($.createElement)(rn.a,{key:"tag-cloud",block:"core/tag-cloud",attributes:e}))}}]),t}($.Component),ui=Object(be.withSelect)((function(e){return{taxonomies:e("core").getTaxonomies()}}))(si),bi="core/tag-cloud",mi={title:Object(K.__)("Tag Cloud"),description:Object(K.__)("A cloud of your most used tags."),icon:"tag",category:"widgets",supports:{html:!1,align:!0},edit:ui},di=window.wp;var hi=function(e){function t(e){var n;return Object(re.a)(this,t),(n=Object(ae.a)(this,Object(ce.a)(t).call(this,e))).initialize=n.initialize.bind(Object(ie.a)(n)),n.onSetup=n.onSetup.bind(Object(ie.a)(n)),n.focus=n.focus.bind(Object(ie.a)(n)),n}return Object(le.a)(t,e),Object(oe.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),di.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;di.oldEditor.initialize("editor-".concat(e),{tinymce:Object(Z.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!==we.BACKSPACE&&t.keyCode!==we.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===we.F10&&t.stopPropagation()})),e.addButton("kitchensink",{tooltip:Object(K._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(K.__)("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(K.__)("Classic"),onKeyDown:this.onToolbarKeyDown}),Object($.createElement)("div",{key:"editor",id:"editor-".concat(t),className:"wp-block-freeform block-library-rich-text__tinymce"})]}}]),t}($.Component),pi=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:"M0,0h24v24H0V0z M0,0h24v24H0V0z",fill:"none"}),Object($.createElement)(se.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)(se.Rect,{x:"11",y:"8",width:"2",height:"2"}),Object($.createElement)(se.Rect,{x:"11",y:"11",width:"2",height:"2"}),Object($.createElement)(se.Rect,{x:"8",y:"8",width:"2",height:"2"}),Object($.createElement)(se.Rect,{x:"8",y:"11",width:"2",height:"2"}),Object($.createElement)(se.Rect,{x:"5",y:"11",width:"2",height:"2"}),Object($.createElement)(se.Rect,{x:"5",y:"8",width:"2",height:"2"}),Object($.createElement)(se.Rect,{x:"8",y:"14",width:"8",height:"2"}),Object($.createElement)(se.Rect,{x:"14",y:"11",width:"2",height:"2"}),Object($.createElement)(se.Rect,{x:"14",y:"8",width:"2",height:"2"}),Object($.createElement)(se.Rect,{x:"17",y:"11",width:"2",height:"2"}),Object($.createElement)(se.Rect,{x:"17",y:"8",width:"2",height:"2"}));var gi={name:"core/freeform",category:"formatting",attributes:{content:{type:"string",source:"html"}}},fi=gi.name,vi={title:Object(K._x)("Classic","block title"),description:Object(K.__)("Use the classic WordPress editor."),icon:pi,supports:{className:!1,customClassName:!1,reusable:!1},edit:hi,save:function(e){var t=e.attributes.content;return Object($.createElement)($.RawHTML,null,t)}};n.d(t,"registerCoreBlocks",(function(){return ji})),n.d(t,"__experimentalRegisterExperimentalCoreBlocks",(function(){return yi}));var Oi=function(e){if(e){var t=e.metadata,n=e.settings,r=e.name;t&&Object(G.unstable__bootstrapServerSideBlockDefinitions)(Object(q.a)({},r,t)),Object(G.registerBlockType)(r,n)}},ji=function(){[r,o,a,i,k,c,I,l,s,u,b,m,d,h,p,g,f].concat(Object(U.a)(co),Object(U.a)(io),[v,A,window.wp&&window.wp.oldEditor?F:null,O,j,y,_,C,w,E,x,S,N,R,B,T,M,P,L,D,H,z,V]).forEach(Oi),Object(G.setDefaultBlockName)(Oe),window.wp&&window.wp.oldEditor&&Object(G.setFreeformContentHandlerName)(fi),Object(G.setUnregisteredTypeHandlerName)(la),A&&Object(G.setGroupingBlockName)(Ja)},yi=void 0},35:function(e,t){!function(){e.exports=this.wp.blob}()},37:function(e,t){!function(){e.exports=this.wp.deprecated}()},38:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},39: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.data}()},42:function(e,t){!function(){e.exports=this.wp.viewport}()},44: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,m="hsl"),e.hasOwnProperty("a")&&(n=e.a));var d,h,p;return n=A(n),{ok:b,format:e.format||m,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 d(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(m(r));return a}function T(e,t){t=t||6;for(var n=m(e).toHsv(),r=n.h,o=n.s,a=n.v,c=[],i=1/t;t--;)c.push(m({h:r,s:o,v:a})),a=(a+i)%1;return c}m.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=A(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=d(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=d(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=[P(l(e).toString(16)),P(l(t).toString(16)),P(l(n).toString(16)),P(H(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)&&(R[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=m(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 m(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(v,arguments)},greyscale:function(){return this._applyModification(O,arguments)},spin:function(){return this._applyModification(k,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(C,arguments)},monochromatic:function(){return this._applyCombination(T,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(w,arguments)},tetrad:function(){return this._applyCombination(E,arguments)}},m.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:L(e[r]));e=n}return m(e,t)},m.equals=function(e,t){return!(!e||!t)&&m(e).toRgbString()==m(t).toRgbString()},m.random=function(){return m.fromRatio({r:b(),g:b(),b:b()})},m.mix=function(e,t,n){n=0===n?0:n||50;var r=m(e).toRgb(),o=m(t).toRgb(),a=n/100;return m({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})},m.readability=function(e,t){var n=m(e),r=m(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},m.isReadable=function(e,t,n){var r,o,a=m.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},m.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=m(t[s]));return m.isReadable(e,i,{level:a,size:c})||!o?i:(n.includeFallbackColors=!1,m.mostReadable(e,["#fff","#000"],n))};var N=m.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"},R=m.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(N);function A(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 M(e){return parseInt(e,16)}function P(e){return 1==e.length?"0"+e:""+e}function L(e){return e<=1&&(e=100*e+"%"),e}function H(e){return o.round(255*parseFloat(e)).toString(16)}function z(e){return M(e)/255}var V,D,F,U=(D="[\\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"+D),rgba:new RegExp("rgba"+F),hsl:new RegExp("hsl"+D),hsla:new RegExp("hsla"+F),hsv:new RegExp("hsv"+D),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 q(e){return!!U.CSS_UNIT.exec(e)}e.exports?e.exports=m:void 0===(r=function(){return m}.call(t,n,t,e))||(e.exports=r)}(Math)},5: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}))},53:function(e,t){!function(){e.exports=this.wp.date}()},58:function(e,t){!function(){e.exports=this.wp.serverSideRender}()},6:function(e,t){!function(){e.exports=this.wp.blockEditor}()},65: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},69:function(e,t){!function(){e.exports=this.wp.autop}()},7:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(10);function o(e){for(var t=1;tc?(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}))[0],5),m=b[0],d=b[1],h=b[2],p=b[3],g=b[4];return p?[Math.round(m/p),Math.round(d/p),Math.round(h/p),Math.round(p/g)]:[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){return(299*e[0]+587*e[1]+114*e[2])/1e3<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}()}()},23:function(e,t,n){"use strict";var r=n(38);var o=n(39);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}))},24:function(e,t){!function(){e.exports=this.wp.editor}()},26:function(e,t){!function(){e.exports=this.wp.url}()},29:function(e,t){!function(){e.exports=this.moment}()},3:function(e,t){!function(){e.exports=this.wp.components}()},30: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}))},31: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}))},34:function(e,t){!function(){e.exports=this.wp.apiFetch}()},341:function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"metadata",(function(){return ve})),n.d(r,"name",(function(){return Oe})),n.d(r,"settings",(function(){return je}));var o={};n.r(o),n.d(o,"metadata",(function(){return gt})),n.d(o,"name",(function(){return ft})),n.d(o,"settings",(function(){return vt}));var a={};n.r(a),n.d(a,"metadata",(function(){return xt})),n.d(a,"name",(function(){return St})),n.d(a,"settings",(function(){return Tt}));var c={};n.r(c),n.d(c,"metadata",(function(){return Pt})),n.d(c,"name",(function(){return Lt})),n.d(c,"settings",(function(){return Ht}));var i={};n.r(i),n.d(i,"metadata",(function(){return Xt})),n.d(i,"name",(function(){return en})),n.d(i,"settings",(function(){return tn}));var l={};n.r(l),n.d(l,"name",(function(){return an})),n.d(l,"settings",(function(){return cn}));var s={};n.r(s),n.d(s,"metadata",(function(){return dn})),n.d(s,"name",(function(){return hn})),n.d(s,"settings",(function(){return pn}));var u={};n.r(u),n.d(u,"metadata",(function(){return Sn})),n.d(u,"name",(function(){return Tn})),n.d(u,"settings",(function(){return Nn}));var b={};n.r(b),n.d(b,"name",(function(){return Pn})),n.d(b,"settings",(function(){return Ln}));var m={};n.r(m),n.d(m,"name",(function(){return Dn})),n.d(m,"settings",(function(){return Fn}));var d={};n.r(d),n.d(d,"metadata",(function(){return Jn})),n.d(d,"name",(function(){return Xn})),n.d(d,"settings",(function(){return er}));var h={};n.r(h),n.d(h,"metadata",(function(){return pr})),n.d(h,"name",(function(){return gr})),n.d(h,"settings",(function(){return fr}));var p={};n.r(p),n.d(p,"metadata",(function(){return jr})),n.d(p,"name",(function(){return yr})),n.d(p,"settings",(function(){return _r}));var g={};n.r(g),n.d(g,"metadata",(function(){return qr})),n.d(g,"name",(function(){return Wr})),n.d(g,"settings",(function(){return Gr}));var f={};n.r(f),n.d(f,"name",(function(){return oo})),n.d(f,"settings",(function(){return ao})),n.d(f,"common",(function(){return co})),n.d(f,"others",(function(){return io}));var v={};n.r(v),n.d(v,"metadata",(function(){return ho})),n.d(v,"name",(function(){return po})),n.d(v,"settings",(function(){return go}));var O={};n.r(O),n.d(O,"metadata",(function(){return yo})),n.d(O,"name",(function(){return _o})),n.d(O,"settings",(function(){return ko}));var j={};n.r(j),n.d(j,"metadata",(function(){return Lo})),n.d(j,"name",(function(){return Ho})),n.d(j,"settings",(function(){return zo}));var y={};n.r(y),n.d(y,"name",(function(){return Fo})),n.d(y,"settings",(function(){return Uo}));var _={};n.r(_),n.d(_,"name",(function(){return Qo})),n.d(_,"settings",(function(){return Jo}));var k={};n.r(k),n.d(k,"metadata",(function(){return ra})),n.d(k,"name",(function(){return oa})),n.d(k,"settings",(function(){return aa}));var C={};n.r(C),n.d(C,"metadata",(function(){return ia})),n.d(C,"name",(function(){return la})),n.d(C,"settings",(function(){return sa}));var w={};n.r(w),n.d(w,"metadata",(function(){return da})),n.d(w,"name",(function(){return ha})),n.d(w,"settings",(function(){return pa}));var E={};n.r(E),n.d(E,"metadata",(function(){return va})),n.d(E,"name",(function(){return Oa})),n.d(E,"settings",(function(){return ja}));var x={};n.r(x),n.d(x,"metadata",(function(){return ka})),n.d(x,"name",(function(){return Ca})),n.d(x,"settings",(function(){return wa}));var S={};n.r(S),n.d(S,"metadata",(function(){return Ba})),n.d(S,"name",(function(){return Ia})),n.d(S,"settings",(function(){return Ma}));var T={};n.r(T),n.d(T,"name",(function(){return Da})),n.d(T,"settings",(function(){return Fa}));var N={};n.r(N),n.d(N,"name",(function(){return qa})),n.d(N,"settings",(function(){return Wa}));var R={};n.r(R),n.d(R,"name",(function(){return Ga})),n.d(R,"settings",(function(){return Ka}));var A={};n.r(A),n.d(A,"metadata",(function(){return Qa})),n.d(A,"name",(function(){return Ja})),n.d(A,"settings",(function(){return Xa}));var B={};n.r(B),n.d(B,"metadata",(function(){return rc})),n.d(B,"name",(function(){return oc})),n.d(B,"settings",(function(){return ac}));var I={};n.r(I),n.d(I,"name",(function(){return uc})),n.d(I,"settings",(function(){return bc}));var M={};n.r(M),n.d(M,"metadata",(function(){return hc})),n.d(M,"name",(function(){return pc})),n.d(M,"settings",(function(){return gc}));var P={};n.r(P),n.d(P,"metadata",(function(){return yc})),n.d(P,"name",(function(){return _c})),n.d(P,"settings",(function(){return kc}));var L={};n.r(L),n.d(L,"metadata",(function(){return Dc})),n.d(L,"name",(function(){return Fc})),n.d(L,"settings",(function(){return Uc}));var H={};n.r(H),n.d(H,"metadata",(function(){return Wc})),n.d(H,"name",(function(){return Gc})),n.d(H,"settings",(function(){return Kc}));var z={};n.r(z),n.d(z,"metadata",(function(){return Qc})),n.d(z,"name",(function(){return Jc})),n.d(z,"settings",(function(){return Xc}));var V={};n.r(V),n.d(V,"metadata",(function(){return ci})),n.d(V,"name",(function(){return ii})),n.d(V,"settings",(function(){return li}));var D={};n.r(D),n.d(D,"name",(function(){return bi})),n.d(D,"settings",(function(){return mi}));var F={};n.r(F),n.d(F,"metadata",(function(){return gi})),n.d(F,"name",(function(){return fi})),n.d(F,"settings",(function(){return vi}));var U=n(17),q=n(10),W=(n(89),n(6)),G=(n(24),n(9)),K=n(1),Z=n(7),$=n(0),Y=n(16),Q=n.n(Y),J=n(2),X={className:!1},ee={align:{type:"string"},content:{type:"string",source:"html",selector:"p",default:""},dropCap:{type:"boolean",default:!1},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"]}},te=[{supports:X,attributes:ee,save:function(e){var t,n=e.attributes,r=n.align,o=n.content,a=n.dropCap,c=n.backgroundColor,i=n.textColor,l=n.customBackgroundColor,s=n.customTextColor,u=n.fontSize,b=n.customFontSize,m=n.direction,d=Object(W.getColorClassName)("color",i),h=Object(W.getColorClassName)("background-color",c),p=Object(W.getFontSizeClass)(u),g=Q()((t={"has-text-color":i||s,"has-background":c||l,"has-drop-cap":a},Object(q.a)(t,p,p),Object(q.a)(t,d,d),Object(q.a)(t,h,h),t)),f={backgroundColor:h?void 0:l,color:d?void 0:s,fontSize:p?void 0:b,textAlign:r};return Object($.createElement)(W.RichText.Content,{tagName:"p",style:f,className:g||void 0,value:o,dir:m})}},{supports:X,attributes:Object(Z.a)({},ee,{width:{type:"string"}}),save:function(e){var t,n=e.attributes,r=n.width,o=n.align,a=n.content,c=n.dropCap,i=n.backgroundColor,l=n.textColor,s=n.customBackgroundColor,u=n.customTextColor,b=n.fontSize,m=n.customFontSize,d=Object(W.getColorClassName)("color",l),h=Object(W.getColorClassName)("background-color",i),p=b&&"is-".concat(b,"-text"),g=Q()((t={},Object(q.a)(t,"align".concat(r),r),Object(q.a)(t,"has-background",i||s),Object(q.a)(t,"has-drop-cap",c),Object(q.a)(t,p,p),Object(q.a)(t,d,d),Object(q.a)(t,h,h),t)),f={backgroundColor:h?void 0:s,color:d?void 0:u,fontSize:p?void 0:m,textAlign:o};return Object($.createElement)(W.RichText.Content,{tagName:"p",style:f,className:g||void 0,value:a})}},{supports:X,attributes:Object(J.omit)(Object(Z.a)({},ee,{fontSize:{type:"number"}}),"customFontSize","customTextColor","customBackgroundColor"),save:function(e){var t,n=e.attributes,r=n.width,o=n.align,a=n.content,c=n.dropCap,i=n.backgroundColor,l=n.textColor,s=n.fontSize,u=Q()((t={},Object(q.a)(t,"align".concat(r),r),Object(q.a)(t,"has-background",i),Object(q.a)(t,"has-drop-cap",c),t)),b={backgroundColor:i,color:l,fontSize:s,textAlign:o};return Object($.createElement)("p",{style:b,className:u||void 0},a)},migrate:function(e){return Object(J.omit)(Object(Z.a)({},e,{customFontSize:Object(J.isFinite)(e.fontSize)?e.fontSize:void 0,customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.backgroundColor&&"#"===e.backgroundColor[0]?e.backgroundColor:void 0}),["fontSize","textColor","backgroundColor"])}},{supports:X,attributes:Object(Z.a)({},ee,{content:{type:"string",source:"html",default:""}}),save:function(e){var t=e.attributes;return Object($.createElement)($.RawHTML,null,t.content)},migrate:function(e){return e}}],ne=n(18),re=n(12),oe=n(11),ae=n(13),ce=n(14),ie=n(5),le=n(15),se=n(3),ue=n(8),be=n(4),me=window.getComputedStyle,de=Object(se.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?me(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}})),he=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(ae.a)(this,Object(ce.a)(t).apply(this,arguments))).toggleDropCap=e.toggleDropCap.bind(Object(ie.a)(e)),e}return Object(le.a)(t,e),Object(oe.a)(t,[{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(K.__)("Showing large initial letter."):Object(K.__)("Toggle to show a large initial letter.")}},{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=t.setAttributes,o=t.mergeBlocks,a=t.onReplace,c=t.className,i=t.backgroundColor,l=t.textColor,s=t.setBackgroundColor,u=t.setTextColor,b=t.fallbackBackgroundColor,m=t.fallbackTextColor,d=t.fallbackFontSize,h=t.fontSize,p=t.setFontSize,g=t.isRTL,f=n.align,v=n.content,O=n.dropCap,j=n.placeholder,y=n.direction;return Object($.createElement)($.Fragment,null,Object($.createElement)(W.BlockControls,null,Object($.createElement)(W.AlignmentToolbar,{value:f,onChange:function(e){r({align:e})}}),g&&Object($.createElement)(se.Toolbar,{controls:[{icon:"editor-ltr",title:Object(K._x)("Left to right","editor button"),isActive:"ltr"===y,onClick:function(){r({direction:"ltr"===y?void 0:"ltr"})}}]})),Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,{title:Object(K.__)("Text Settings"),className:"blocks-font-size"},Object($.createElement)(W.FontSizePicker,{fallbackFontSize:d,value:h.size,onChange:p}),Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Drop Cap"),checked:!!O,onChange:this.toggleDropCap,help:this.getDropCapHelp})),Object($.createElement)(W.PanelColorSettings,{title:Object(K.__)("Color Settings"),initialOpen:!1,colorSettings:[{value:i.color,onChange:s,label:Object(K.__)("Background Color")},{value:l.color,onChange:u,label:Object(K.__)("Text Color")}]},Object($.createElement)(W.ContrastChecker,Object(ne.a)({textColor:l.color,backgroundColor:i.color,fallbackTextColor:m,fallbackBackgroundColor:b},{fontSize:h.size})))),Object($.createElement)(W.RichText,{identifier:"content",tagName:"p",className:Q()("wp-block-paragraph",c,(e={"has-text-color":l.color,"has-background":i.color,"has-drop-cap":O},Object(q.a)(e,"has-text-align-".concat(f),f),Object(q.a)(e,i.class,i.class),Object(q.a)(e,l.class,l.class),Object(q.a)(e,h.class,h.class),e)),style:{backgroundColor:i.color,color:l.color,fontSize:h.size?h.size+"px":void 0,direction:y},value:v,onChange:function(e){r({content:e})},onSplit:function(e){return e?Object(G.createBlock)("core/paragraph",Object(Z.a)({},n,{content:e})):Object(G.createBlock)("core/paragraph")},onMerge:o,onReplace:a,onRemove:a?function(){return a([])}:void 0,"aria-label":v?Object(K.__)("Paragraph block"):Object(K.__)("Empty block; start writing or type forward slash to choose a block"),placeholder:j||Object(K.__)("Start writing or type / to choose a block"),__unstableEmbedURLOnPaste:!0}))}}]),t}($.Component),pe=Object(ue.compose)([Object(W.withColors)("backgroundColor",{textColor:"color"}),Object(W.withFontSizes)("fontSize"),de,Object(be.withSelect)((function(e){return{isRTL:(0,e("core/block-editor").getSettings)().isRTL}}))])(he),ge=Object($.createElement)(se.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object($.createElement)(se.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"}));var fe={from:[{type:"raw",priority:20,selector:"p",schema:{p:{children:Object(G.getPhrasingContentSchema)()}}}]},ve={name:"core/paragraph",category:"common",attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"p",default:""},dropCap:{type:"boolean",default:!1},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"]}}},Oe=ve.name,je={title:Object(K.__)("Paragraph"),description:Object(K.__)("Start with the building block of all narrative."),icon:ge,keywords:[Object(K.__)("text")],example:{attributes:{content:Object(K.__)("In a village of La Mancha, the name of which I have no desire to call to mind, there lived not long since one of those gentlemen that keep a lance in the lance-rack, an old buckler, a lean hack, and a greyhound for coursing."),customFontSize:28,dropCap:!0}},supports:{className:!1},transforms:fe,deprecated:te,merge:function(e,t){return{content:(e.content||"")+(t.content||"")}},getEditWrapperProps:function(e){var t=e.width;if(-1!==["wide","full","left","right"].indexOf(t))return{"data-align":t}},edit:pe,save:function(e){var t,n=e.attributes,r=n.align,o=n.content,a=n.dropCap,c=n.backgroundColor,i=n.textColor,l=n.customBackgroundColor,s=n.customTextColor,u=n.fontSize,b=n.customFontSize,m=n.direction,d=Object(W.getColorClassName)("color",i),h=Object(W.getColorClassName)("background-color",c),p=Object(W.getFontSizeClass)(u),g=Q()((t={"has-text-color":i||s,"has-background":c||l,"has-drop-cap":a},Object(q.a)(t,"has-text-align-".concat(r),r),Object(q.a)(t,p,p),Object(q.a)(t,d,d),Object(q.a)(t,h,h),t)),f={backgroundColor:h?void 0:l,color:d?void 0:s,fontSize:p?void 0:b};return Object($.createElement)(W.RichText.Content,{tagName:"p",style:f,className:g||void 0,value:o,dir:m})}},ye={align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},linkDestination:{type:"string",default:"none"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},_e=[{attributes:ye,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=Q()((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:ye,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:ye,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(ne.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}))}}],ke=n(23),Ce=n(35),we=n(19),Ee=n(26),xe=n(42),Se=n(45),Te=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object($.createElement)(se.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"})),Ne=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object($.createElement)(se.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"})),Re=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object($.createElement)(se.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($.createElement)(se.Polygon,{points:"14.5 11 11 15.51 8.5 12.5 5 17 19 17"})),Ae=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object($.createElement)(se.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"})),Be={foreground:"#1da1f2",src:Object($.createElement)(se.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object($.createElement)(se.G,null,Object($.createElement)(se.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"})))},Ie={foreground:"#ff0000",src:Object($.createElement)(se.SVG,{viewBox:"0 0 24 24"},Object($.createElement)(se.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"}))},Me={foreground:"#3b5998",src:Object($.createElement)(se.SVG,{viewBox:"0 0 24 24"},Object($.createElement)(se.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"}))},Pe=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24"},Object($.createElement)(se.G,null,Object($.createElement)(se.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"}))),Le={foreground:"#0073AA",src:Object($.createElement)(se.SVG,{viewBox:"0 0 24 24"},Object($.createElement)(se.G,null,Object($.createElement)(se.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"})))},He={foreground:"#1db954",src:Object($.createElement)(se.SVG,{viewBox:"0 0 24 24"},Object($.createElement)(se.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"}))},ze=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24"},Object($.createElement)(se.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"})),Ve={foreground:"#1ab7ea",src:Object($.createElement)(se.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object($.createElement)(se.G,null,Object($.createElement)(se.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"})))},De=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24"},Object($.createElement)(se.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"})),Fe={foreground:"#35465c",src:Object($.createElement)(se.SVG,{viewBox:"0 0 24 24"},Object($.createElement)(se.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"}))},Ue=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24"},Object($.createElement)(se.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($.createElement)(se.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($.createElement)(se.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"})),qe=[{name:"core-embed/twitter",settings:{title:"Twitter",icon:Be,keywords:["tweet"],description:Object(K.__)("Embed a tweet.")},patterns:[/^https?:\/\/(www\.)?twitter\.com\/.+/i]},{name:"core-embed/youtube",settings:{title:"YouTube",icon:Ie,keywords:[Object(K.__)("music"),Object(K.__)("video")],description:Object(K.__)("Embed a YouTube video.")},patterns:[/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i,/^https?:\/\/youtu\.be\/.+/i]},{name:"core-embed/facebook",settings:{title:"Facebook",icon:Me,description:Object(K.__)("Embed a Facebook post.")},patterns:[/^https?:\/\/www\.facebook.com\/.+/i]},{name:"core-embed/instagram",settings:{title:"Instagram",icon:Pe,keywords:[Object(K.__)("image")],description:Object(K.__)("Embed an Instagram post.")},patterns:[/^https?:\/\/(www\.)?instagr(\.am|am\.com)\/.+/i]},{name:"core-embed/wordpress",settings:{title:"WordPress",icon:Le,keywords:[Object(K.__)("post"),Object(K.__)("blog")],responsive:!1,description:Object(K.__)("Embed a WordPress post.")}},{name:"core-embed/soundcloud",settings:{title:"SoundCloud",icon:Ne,keywords:[Object(K.__)("music"),Object(K.__)("audio")],description:Object(K.__)("Embed SoundCloud content.")},patterns:[/^https?:\/\/(www\.)?soundcloud\.com\/.+/i]},{name:"core-embed/spotify",settings:{title:"Spotify",icon:He,keywords:[Object(K.__)("music"),Object(K.__)("audio")],description:Object(K.__)("Embed Spotify content.")},patterns:[/^https?:\/\/(open|play)\.spotify\.com\/.+/i]},{name:"core-embed/flickr",settings:{title:"Flickr",icon:ze,keywords:[Object(K.__)("image")],description:Object(K.__)("Embed Flickr content.")},patterns:[/^https?:\/\/(www\.)?flickr\.com\/.+/i,/^https?:\/\/flic\.kr\/.+/i]},{name:"core-embed/vimeo",settings:{title:"Vimeo",icon:Ve,keywords:[Object(K.__)("video")],description:Object(K.__)("Embed a Vimeo video.")},patterns:[/^https?:\/\/(www\.)?vimeo\.com\/.+/i]}],We=[{name:"core-embed/animoto",settings:{title:"Animoto",icon:Ae,description:Object(K.__)("Embed an Animoto video.")},patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i]},{name:"core-embed/cloudup",settings:{title:"Cloudup",icon:Te,description:Object(K.__)("Embed Cloudup content.")},patterns:[/^https?:\/\/cloudup\.com\/.+/i]},{name:"core-embed/collegehumor",settings:{title:"CollegeHumor",icon:Ae,description:Object(K.__)("Embed CollegeHumor content."),supports:{inserter:!1}},patterns:[]},{name:"core-embed/crowdsignal",settings:{title:"Crowdsignal",icon:Te,keywords:["polldaddy"],transform:[{type:"block",blocks:["core-embed/polldaddy"],transform:function(e){return Object(G.createBlock)("core-embed/crowdsignal",{content:e})}}],description:Object(K.__)("Embed Crowdsignal (formerly Polldaddy) content.")},patterns:[/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.survey\.fm)\/.+/i]},{name:"core-embed/dailymotion",settings:{title:"Dailymotion",icon:Ae,description:Object(K.__)("Embed a Dailymotion video.")},patterns:[/^https?:\/\/(www\.)?dailymotion\.com\/.+/i]},{name:"core-embed/hulu",settings:{title:"Hulu",icon:Ae,description:Object(K.__)("Embed Hulu content.")},patterns:[/^https?:\/\/(www\.)?hulu\.com\/.+/i]},{name:"core-embed/imgur",settings:{title:"Imgur",icon:Re,description:Object(K.__)("Embed Imgur content.")},patterns:[/^https?:\/\/(.+\.)?imgur\.com\/.+/i]},{name:"core-embed/issuu",settings:{title:"Issuu",icon:Te,description:Object(K.__)("Embed Issuu content.")},patterns:[/^https?:\/\/(www\.)?issuu\.com\/.+/i]},{name:"core-embed/kickstarter",settings:{title:"Kickstarter",icon:Te,description:Object(K.__)("Embed Kickstarter content.")},patterns:[/^https?:\/\/(www\.)?kickstarter\.com\/.+/i,/^https?:\/\/kck\.st\/.+/i]},{name:"core-embed/meetup-com",settings:{title:"Meetup.com",icon:Te,description:Object(K.__)("Embed Meetup.com content.")},patterns:[/^https?:\/\/(www\.)?meetu(\.ps|p\.com)\/.+/i]},{name:"core-embed/mixcloud",settings:{title:"Mixcloud",icon:Ne,keywords:[Object(K.__)("music"),Object(K.__)("audio")],description:Object(K.__)("Embed Mixcloud content.")},patterns:[/^https?:\/\/(www\.)?mixcloud\.com\/.+/i]},{name:"core-embed/polldaddy",settings:{title:"Polldaddy",icon:Te,description:Object(K.__)("Embed Polldaddy content."),supports:{inserter:!1}},patterns:[]},{name:"core-embed/reddit",settings:{title:"Reddit",icon:De,description:Object(K.__)("Embed a Reddit thread.")},patterns:[/^https?:\/\/(www\.)?reddit\.com\/.+/i]},{name:"core-embed/reverbnation",settings:{title:"ReverbNation",icon:Ne,description:Object(K.__)("Embed ReverbNation content.")},patterns:[/^https?:\/\/(www\.)?reverbnation\.com\/.+/i]},{name:"core-embed/screencast",settings:{title:"Screencast",icon:Ae,description:Object(K.__)("Embed Screencast content.")},patterns:[/^https?:\/\/(www\.)?screencast\.com\/.+/i]},{name:"core-embed/scribd",settings:{title:"Scribd",icon:Te,description:Object(K.__)("Embed Scribd content.")},patterns:[/^https?:\/\/(www\.)?scribd\.com\/.+/i]},{name:"core-embed/slideshare",settings:{title:"Slideshare",icon:Te,description:Object(K.__)("Embed Slideshare content.")},patterns:[/^https?:\/\/(.+?\.)?slideshare\.net\/.+/i]},{name:"core-embed/smugmug",settings:{title:"SmugMug",icon:Re,description:Object(K.__)("Embed SmugMug content.")},patterns:[/^https?:\/\/(www\.)?smugmug\.com\/.+/i]},{name:"core-embed/speaker",settings:{title:"Speaker",icon:Ne,supports:{inserter:!1}},patterns:[]},{name:"core-embed/speaker-deck",settings:{title:"Speaker Deck",icon:Te,transform:[{type:"block",blocks:["core-embed/speaker"],transform:function(e){return Object(G.createBlock)("core-embed/speaker-deck",{content:e})}}],description:Object(K.__)("Embed Speaker Deck content.")},patterns:[/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i]},{name:"core-embed/ted",settings:{title:"TED",icon:Ae,description:Object(K.__)("Embed a TED video.")},patterns:[/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i]},{name:"core-embed/tumblr",settings:{title:"Tumblr",icon:Fe,description:Object(K.__)("Embed a Tumblr post.")},patterns:[/^https?:\/\/(www\.)?tumblr\.com\/.+/i]},{name:"core-embed/videopress",settings:{title:"VideoPress",icon:Ae,keywords:[Object(K.__)("video")],description:Object(K.__)("Embed a VideoPress video.")},patterns:[/^https?:\/\/videopress\.com\/.+/i]},{name:"core-embed/wordpress-tv",settings:{title:"WordPress.tv",icon:Ae,description:Object(K.__)("Embed a WordPress.tv video.")},patterns:[/^https?:\/\/wordpress\.tv\/.+/i]},{name:"core-embed/amazon-kindle",settings:{title:"Amazon Kindle",icon:Ue,keywords:[Object(K.__)("ebook")],responsive:!1,description:Object(K.__)("Embed Amazon Kindle content.")},patterns:[/^https?:\/\/([a-z0-9-]+\.)?(amazon|amzn)(\.[a-z]{2,4})+\/.+/i,/^https?:\/\/(www\.)?(a\.co|z\.cn)\/.+/i]}],Ge=["facebook.com","smugmug.com"],Ke=[{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"}],Ze=n(70),$e=n.n(Ze),Ye=n(44),Qe=n.n(Ye),Je=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.some((function(t){return e.match(t)}))},Xe=function(e){return Object(J.includes)(e,'class="wp-embedded-content"')},et=function(e,t){var n=e.preview,r=e.name,o=e.attributes.url;if(o){var a=function(e){for(var t=0,n=[].concat(Object(U.a)(qe),Object(U.a)(We));t1&&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 $e()(t,(s={},Object(q.a)(s,u.className,n),Object(q.a)(s,"wp-has-aspect-ratio",n),s))}return t}var nt=Qe()((function(e,t,n,r){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(!e)return{};var a={},c=e.type,i=void 0===c?"rich":c,l=e.html,s=e.provider_name,u=Object(J.kebabCase)(Object(J.toLower)(""!==s?s:t));return Xe(l)&&(i="wp-embed"),(l||"photo"===i)&&(a.type=i,a.providerNameSlug=u),a.className=tt(l,n,r&&o),a})),rt=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object($.createElement)(se.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)(se.Path,{d:"m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z"}));var ot=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(ae.a)(this,Object(ce.a)(t).apply(this,arguments))).state={width:void 0,height:void 0},e.bindContainer=e.bindContainer.bind(Object(ie.a)(e)),e.calculateSize=e.calculateSize.bind(Object(ie.a)(e)),e}return Object(le.a)(t,e),Object(oe.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($.createElement)("div",{ref:this.bindContainer},this.props.children(e))}}]),t}($.Component),at=Object(ue.withGlobalEvents)({resize:"calculateSize"})(ot),ct=["image"],it=function(e,t){return!e&&Object(Ce.isBlobURL)(t)},lt=function(e){e.stopPropagation()},st=function(e){[we.LEFT,we.DOWN,we.RIGHT,we.UP,we.BACKSPACE,we.ENTER].indexOf(e.keyCode)>-1&&e.stopPropagation()},ut=function(e){var t=e.advancedOptions,n=e.linkDestination,r=e.mediaLinks,o=e.onChangeUrl,a=e.url,c=Object($.useState)(!1),i=Object(ke.a)(c,2),l=i[0],s=i[1],u=Object($.useCallback)((function(){s(!0)})),b=Object($.useState)(!1),m=Object(ke.a)(b,2),d=m[0],h=m[1],p=Object($.useState)(null),g=Object(ke.a)(p,2),f=g[0],v=g[1],O=Object($.useCallback)((function(){"media"!==n&&"attachment"!==n||v(""),h(!0)})),j=Object($.useCallback)((function(){h(!1)})),y=Object($.useCallback)((function(){v(null),j(),s(!1)})),_=Object($.useRef)(null),k=Object($.useCallback)((function(){return function(e){var t=_.current;t&&t.contains(e.target)||(s(!1),v(null),j())}})),C=Object($.useCallback)((function(){return function(e){f&&o(f),j(),v(null),e.preventDefault()}})),w=Object($.useCallback)((function(){y(),o("")})),E=null!==f?f:a,x=(Object(J.find)(r,["linkDestination",n])||{}).title;return Object($.createElement)($.Fragment,null,Object($.createElement)(se.IconButton,{icon:"admin-links",className:"components-toolbar__control",label:a?Object(K.__)("Edit link"):Object(K.__)("Insert link"),"aria-expanded":l,onClick:u}),l&&Object($.createElement)(W.URLPopover,{onClickOutside:k(),onClose:y,renderSettings:function(){return t},additionalControls:!E&&Object($.createElement)(se.NavigableMenu,null,Object(J.map)(r,(function(e){return Object($.createElement)(se.MenuItem,{key:e.linkDestination,icon:e.icon,onClick:function(){v(null),o(e.url),j()}},e.title)})))},(!a||d)&&Object($.createElement)(W.URLPopover.LinkEditor,{className:"editor-format-toolbar__link-container-content block-editor-format-toolbar__link-container-content",value:E,onChangeInputValue:v,onKeyDown:st,onKeyPress:lt,onSubmit:C(),autocompleteRef:_}),a&&!d&&Object($.createElement)($.Fragment,null,Object($.createElement)(W.URLPopover.LinkViewer,{className:"editor-format-toolbar__link-container-content block-editor-format-toolbar__link-container-content",onKeyPress:lt,url:a,onEditLinkClick:O,urlLabel:x}),Object($.createElement)(se.IconButton,{icon:"no",label:Object(K.__)("Remove link"),onClick:w}))))},bt=function(e){function t(e){var n,r=e.attributes;return Object(re.a)(this,t),(n=Object(ae.a)(this,Object(ce.a)(t).apply(this,arguments))).updateAlt=n.updateAlt.bind(Object(ie.a)(n)),n.updateAlignment=n.updateAlignment.bind(Object(ie.a)(n)),n.onFocusCaption=n.onFocusCaption.bind(Object(ie.a)(n)),n.onImageClick=n.onImageClick.bind(Object(ie.a)(n)),n.onSelectImage=n.onSelectImage.bind(Object(ie.a)(n)),n.onSelectURL=n.onSelectURL.bind(Object(ie.a)(n)),n.updateImage=n.updateImage.bind(Object(ie.a)(n)),n.updateWidth=n.updateWidth.bind(Object(ie.a)(n)),n.updateHeight=n.updateHeight.bind(Object(ie.a)(n)),n.updateDimensions=n.updateDimensions.bind(Object(ie.a)(n)),n.onSetHref=n.onSetHref.bind(Object(ie.a)(n)),n.onSetLinkClass=n.onSetLinkClass.bind(Object(ie.a)(n)),n.onSetLinkRel=n.onSetLinkRel.bind(Object(ie.a)(n)),n.onSetNewTab=n.onSetNewTab.bind(Object(ie.a)(n)),n.getFilename=n.getFilename.bind(Object(ie.a)(n)),n.toggleIsEditing=n.toggleIsEditing.bind(Object(ie.a)(n)),n.onUploadError=n.onUploadError.bind(Object(ie.a)(n)),n.onImageError=n.onImageError.bind(Object(ie.a)(n)),n.getLinkDestinations=n.getLinkDestinations.bind(Object(ie.a)(n)),n.state={captionFocused:!1,isEditing:!r.url},n}return Object(le.a)(t,e),Object(oe.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.mediaUpload,o=t.noticeOperations,a=n.id,c=n.url,i=void 0===c?"":c;if(it(a,i)){var l=Object(Ce.getBlobByURL)(i);l&&r({filesList:[l],onFileChange:function(t){var n=Object(ke.a)(t,1)[0];e.onSelectImage(n)},allowedTypes:ct,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;it(n,o)&&!it(c,l)&&Object(Ce.revokeBlobURL)(l),!this.props.isSelected&&e.isSelected&&this.state.captionFocused&&this.setState({captionFocused:!1})}},{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e),this.setState({isEditing:!0})}},{key:"onSelectImage",value:function(e){if(e&&e.url){this.setState({isEditing:!1});var t,n,r,o=this.props.attributes,a=o.id,c=o.url,i=o.alt,l=o.caption,s=(t=e,(n=Object(J.pick)(t,["alt","id","link","caption"])).url=Object(J.get)(t,["sizes","large","url"])||Object(J.get)(t,["media_details","sizes","large","source_url"])||t.url,n);it(a,c)&&(i&&(s=Object(J.omit)(s,["alt"])),l&&(s=Object(J.omit)(s,["caption"]))),r=e.id&&e.id===a?{url:c}:{width:void 0,height:void 0,sizeSlug:"large"},this.props.setAttributes(Object(Z.a)({},s,r))}else this.props.setAttributes({url:void 0,alt:void 0,id:void 0,caption:void 0})}},{key:"onSelectURL",value:function(e){e!==this.props.attributes.url&&this.props.setAttributes({url:e,id:void 0,sizeSlug:"large"}),this.setState({isEditing:!1})}},{key:"onImageError",value:function(e){var t=et({attributes:{url:e}});void 0!==t&&this.props.onReplace(t)}},{key:"onSetHref",value:function(e){var t,n=this.getLinkDestinations();this.props.attributes.linkDestination===(t=e?(Object(J.find)(n,(function(t){return t.url===e}))||{linkDestination:"custom"}).linkDestination:"none")?this.props.setAttributes({href:e}):this.props.setAttributes({linkDestination:t,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(Z.a)({},t,{align:e}))}},{key:"updateImage",value:function(e){var t=this.props.image,n=Object(J.get)(t,["media_details","sizes",e,"source_url"]);if(!n)return null;this.props.setAttributes({url:n,width:void 0,height:void 0,sizeSlug:e})}},{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(Ee.getPath)(e);if(t)return Object(J.last)(t.split("/"))}},{key:"getLinkDestinations",value:function(){return[{linkDestination:"media",title:Object(K.__)("Media File"),url:this.props.image&&this.props.image.source_url||this.props.attributes.url,icon:rt},{linkDestination:"attachment",title:Object(K.__)("Attachment Page"),url:this.props.image&&this.props.image.link,icon:Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:"M0 0h24v24H0V0z",fill:"none"}),Object($.createElement)(se.Path,{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v5h5v11H6z"}))}]}},{key:"toggleIsEditing",value:function(){this.setState({isEditing:!this.state.isEditing}),this.state.isEditing?Object(Se.speak)(Object(K.__)("You are now viewing the image in the image block.")):Object(Se.speak)(Object(K.__)("You are now editing the image in the image block."))}},{key:"getImageSizeOptions",value:function(){var e=this.props.imageSizes;return Object(J.map)(e,(function(e){var t=e.name;return{value:e.slug,label:t}}))}},{key:"render",value:function(){var e=this,t=this.state.isEditing,n=this.props,r=n.attributes,o=n.setAttributes,a=n.isLargeViewport,c=n.isSelected,i=n.className,l=n.maxWidth,s=n.noticeUI,u=n.isRTL,b=n.onResizeStart,m=n.onResizeStop,d=r.url,h=r.alt,p=r.caption,g=r.align,f=r.id,v=r.href,O=r.rel,j=r.linkClass,y=r.linkDestination,_=r.width,k=r.height,C=r.linkTarget,w=r.sizeSlug,E=function(e,t){return t&&!e&&!Object(Ce.isBlobURL)(t)}(f,d),x=Object($.createElement)(se.SVG,{width:20,height:20,viewBox:"0 0 20 20"},Object($.createElement)(se.Rect,{x:11,y:3,width:7,height:5,rx:1}),Object($.createElement)(se.Rect,{x:2,y:12,width:7,height:5,rx:1}),Object($.createElement)(se.Path,{d:"M13,12h1a3,3,0,0,1-3,3v2a5,5,0,0,0,5-5h1L15,9Z"}),Object($.createElement)(se.Path,{d:"M4,8H3l2,3L7,8H6A3,3,0,0,1,9,5V3A5,5,0,0,0,4,8Z"})),S=Object($.createElement)(W.BlockControls,null,Object($.createElement)(W.BlockAlignmentToolbar,{value:g,onChange:this.updateAlignment}),d&&Object($.createElement)($.Fragment,null,Object($.createElement)(se.Toolbar,null,Object($.createElement)(se.IconButton,{className:Q()("components-icon-button components-toolbar__control",{"is-active":this.state.isEditing}),label:Object(K.__)("Edit image"),"aria-pressed":this.state.isEditing,onClick:this.toggleIsEditing,icon:x})),Object($.createElement)(se.Toolbar,null,Object($.createElement)(ut,{url:v||"",onChangeUrl:this.onSetHref,mediaLinks:this.getLinkDestinations(),linkDestination:y,advancedOptions:Object($.createElement)($.Fragment,null,Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Open in New Tab"),onChange:this.onSetNewTab,checked:"_blank"===C}),Object($.createElement)(se.TextControl,{label:Object(K.__)("Link CSS Class"),value:j||"",onKeyPress:lt,onKeyDown:st,onChange:this.onSetLinkClass}),Object($.createElement)(se.TextControl,{label:Object(K.__)("Link Rel"),value:O||"",onChange:this.onSetLinkRel,onKeyPress:lt,onKeyDown:st}))})))),T=E?d:void 0,N={title:d?Object(K.__)("Edit image"):Object(K.__)("Image"),instructions:Object(K.__)("Upload an image file, pick one from your media library, or add one with a URL.")},R=!!d&&Object($.createElement)("img",{alt:Object(K.__)("Edit image"),title:Object(K.__)("Edit image"),className:"edit-image-preview",src:d}),A=Object($.createElement)(W.MediaPlaceholder,{icon:Object($.createElement)(W.BlockIcon,{icon:rt}),className:i,labels:N,onSelect:this.onSelectImage,onSelectURL:this.onSelectURL,onDoubleClick:this.toggleIsEditing,onCancel:!!d&&this.toggleIsEditing,notices:s,onError:this.onUploadError,accept:"image/*",allowedTypes:ct,value:{id:f,src:T},mediaPreview:R,dropZoneUIOnly:!t&&d});if(t||!d)return Object($.createElement)($.Fragment,null,S,A);var B=Q()(i,Object(q.a)({"is-transient":Object(Ce.isBlobURL)(d),"is-resized":!!_||!!k,"is-focused":c},"size-".concat(w),w)),I=-1===["wide","full"].indexOf(g)&&a,M=this.getImageSizeOptions(),P=function(t,n){return Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,{title:Object(K.__)("Image Settings")},Object($.createElement)(se.TextareaControl,{label:Object(K.__)("Alt Text (Alternative Text)"),value:h,onChange:e.updateAlt,help:Object($.createElement)($.Fragment,null,Object($.createElement)(se.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},Object(K.__)("Describe the purpose of the image")),Object(K.__)("Leave empty if the image is purely decorative."))}),!Object(J.isEmpty)(M)&&Object($.createElement)(se.SelectControl,{label:Object(K.__)("Image Size"),value:w,options:M,onChange:e.updateImage}),I&&Object($.createElement)("div",{className:"block-library-image__dimensions"},Object($.createElement)("p",{className:"block-library-image__dimensions__row"},Object(K.__)("Image Dimensions")),Object($.createElement)("div",{className:"block-library-image__dimensions__row"},Object($.createElement)(se.TextControl,{type:"number",className:"block-library-image__dimensions__width",label:Object(K.__)("Width"),value:_||t||"",min:1,onChange:e.updateWidth}),Object($.createElement)(se.TextControl,{type:"number",className:"block-library-image__dimensions__height",label:Object(K.__)("Height"),value:k||n||"",min:1,onChange:e.updateHeight})),Object($.createElement)("div",{className:"block-library-image__dimensions__row"},Object($.createElement)(se.ButtonGroup,{"aria-label":Object(K.__)("Image Size")},[25,50,75,100].map((function(r){var o=Math.round(t*(r/100)),a=Math.round(n*(r/100)),c=_===o&&k===a;return Object($.createElement)(se.Button,{key:r,isSmall:!0,isPrimary:c,"aria-pressed":c,onClick:e.updateDimensions(o,a)},r,"%")}))),Object($.createElement)(se.Button,{isSmall:!0,onClick:e.updateDimensions()},Object(K.__)("Reset"))))))};return Object($.createElement)($.Fragment,null,S,Object($.createElement)("figure",{className:B},Object($.createElement)(at,{src:d,dirtynessTrigger:g},(function(t){var n,r=t.imageWidthWithinContainer,a=t.imageHeightWithinContainer,c=t.imageWidth,i=t.imageHeight,s=e.getFilename(d);n=h||(s?Object(K.sprintf)(Object(K.__)("This image has an empty alt attribute; its file name is %s"),s):Object(K.__)("This image has an empty alt attribute"));var p=Object($.createElement)($.Fragment,null,Object($.createElement)("img",{src:d,alt:n,onDoubleClick:e.toggleIsEditing,onClick:e.onImageClick,onError:function(){return e.onImageError(d)}}),Object(Ce.isBlobURL)(d)&&Object($.createElement)(se.Spinner,null));if(!I||!r)return Object($.createElement)($.Fragment,null,P(c,i),Object($.createElement)("div",{style:{width:_,height:k}},p));var f=_||r,v=k||a,O=c/i,j=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"},width:{type:"number"},height:{type:"number"},sizeSlug:{type:"string"},linkDestination:{type:"string",default:"none"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}}},ft=gt.name,vt={title:Object(K.__)("Image"),description:Object(K.__)("Insert an image to make a visual statement."),icon:rt,keywords:["img",Object(K.__)("photo")],example:{attributes:{sizeSlug:"large",url:"https://s.w.org/images/core/5.3/MtBlanc1.jpg",caption:Object(K.__)("Mont Blanc appears—still, snowy, and serene.")}},styles:[{name:"default",label:Object(K._x)("Default","block style"),isDefault:!0},{name:"circle-mask",label:Object(K._x)("Circle Mask","block style")}],transforms:pt,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:mt,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=n.sizeSlug,p=Q()((t={},Object(q.a)(t,"align".concat(c),c),Object(q.a)(t,"size-".concat(h),h),Object(q.a)(t,"is-resized",u||b),t)),g=Object($.createElement)("img",{src:r,alt:o,className:m?"wp-image-".concat(m):null,width:u,height:b}),f=Object($.createElement)($.Fragment,null,i?Object($.createElement)("a",{className:s,href:i,target:d,rel:l},g):g,!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:p},f)):Object($.createElement)("figure",{className:p},f)},deprecated:_e},Ot={className:!1,anchor:!0},jt={align:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},level:{type:"number",default:2},placeholder:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},yt=[{attributes:jt,save:function(e){var t,n=e.attributes,r=n.align,o=n.content,a=n.customTextColor,c=n.level,i=n.textColor,l="h"+c,s=Object(W.getColorClassName)("color",i),u=Q()((t={},Object(q.a)(t,s,s),Object(q.a)(t,"has-text-align-".concat(r),r),t));return Object($.createElement)(W.RichText.Content,{className:u||void 0,tagName:l,style:{color:s?void 0:a},value:o})},supports:Ot},{supports:Ot,attributes:jt,save:function(e){var t=e.attributes,n=t.align,r=t.level,o=t.content,a=t.textColor,c=t.customTextColor,i="h"+r,l=Object(W.getColorClassName)("color",a),s=Q()(Object(q.a)({},l,l));return Object($.createElement)(W.RichText.Content,{className:s||void 0,tagName:i,style:{textAlign:n,color:l?void 0:c},value:o})}}];function _t(e){var t=e.level,n={1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z"};return n.hasOwnProperty(t)?Object($.createElement)(se.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:n[t]})):null}var kt=function(e){function t(){return Object(re.a)(this,t),Object(ae.a)(this,Object(ce.a)(t).apply(this,arguments))}return Object(le.a)(t,e),Object(oe.a)(t,[{key:"createLevelControl",value:function(e,t,n){return{icon:Object($.createElement)(_t,{level:e}),title:Object(K.sprintf)(Object(K.__)("Heading %d"),e),isActive:e===t,onClick:function(){return n(e)}}}},{key:"render",value:function(){var e=this,t=this.props,n=t.isCollapsed,r=void 0===n||n,o=t.minLevel,a=t.maxLevel,c=t.selectedLevel,i=t.onChange;return Object($.createElement)(se.Toolbar,{isCollapsed:r,icon:Object($.createElement)(_t,{level:c}),controls:Object(J.range)(o,a).map((function(t){return e.createLevelControl(t,c,i)}))})}}]),t}($.Component),Ct=Object($.memo)((function(e){var t=e.textColorValue,n=e.setTextColor;return Object($.createElement)(W.PanelColorSettings,{title:Object(K.__)("Color Settings"),initialOpen:!1,colorSettings:[{value:t,onChange:n,label:Object(K.__)("Text Color")}]})}));var wt=Object(ue.compose)([Object(W.withColors)("backgroundColor",{textColor:"color"})])((function(e){var t,n=e.attributes,r=e.setAttributes,o=e.mergeBlocks,a=e.onReplace,c=e.className,i=e.textColor,l=e.setTextColor,s=n.align,u=n.content,b=n.level,m=n.placeholder,d="h"+b;return Object($.createElement)($.Fragment,null,Object($.createElement)(W.BlockControls,null,Object($.createElement)(kt,{minLevel:2,maxLevel:5,selectedLevel:b,onChange:function(e){return r({level:e})}}),Object($.createElement)(W.AlignmentToolbar,{value:s,onChange:function(e){r({align:e})}})),Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,{title:Object(K.__)("Heading Settings")},Object($.createElement)("p",null,Object(K.__)("Level")),Object($.createElement)(kt,{isCollapsed:!1,minLevel:1,maxLevel:7,selectedLevel:b,onChange:function(e){return r({level:e})}})),Object($.createElement)(Ct,{setTextColor:l,textColorValue:i.color})),Object($.createElement)(W.RichText,{identifier:"content",wrapperClassName:"wp-block-heading",tagName:d,value:u,onChange:function(e){return r({content:e})},onMerge:o,onSplit:function(e){return e?Object(G.createBlock)("core/heading",Object(Z.a)({},n,{content:e})):Object(G.createBlock)("core/paragraph")},onReplace:a,onRemove:function(){return a([])},className:Q()(c,(t={},Object(q.a)(t,"has-text-align-".concat(s),s),Object(q.a)(t,"has-text-color",i.color),Object(q.a)(t,i.class,i.class),t)),placeholder:m||Object(K.__)("Write heading…"),style:{color:i.color}}))}));var Et={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(Z.a)({},Object(G.getBlockAttributes)("core/heading",e.outerHTML),{level:(t=e.nodeName,Number(t.substr(1)))}));var t}}].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})}}]},xt={name:"core/heading",category:"common",attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},level:{type:"number",default:2},placeholder:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}}},St=xt.name,Tt={title:Object(K.__)("Heading"),description:Object(K.__)("Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content."),icon:"heading",keywords:[Object(K.__)("title"),Object(K.__)("subtitle")],supports:{className:!1,anchor:!0},example:{attributes:{content:Object(K.__)("Code is Poetry"),level:2}},transforms:Et,deprecated:yt,merge:function(e,t){return{content:(e.content||"")+(t.content||"")}},edit:wt,save:function(e){var t,n=e.attributes,r=n.align,o=n.content,a=n.customTextColor,c=n.level,i=n.textColor,l="h"+c,s=Object(W.getColorClassName)("color",i),u=Q()((t={},Object(q.a)(t,s,s),Object(q.a)(t,"has-text-color",i||a),Object(q.a)(t,"has-text-align-".concat(r),r),t));return Object($.createElement)(W.RichText.Content,{className:u||void 0,tagName:l,style:{color:s?void 0:a},value:o})}},Nt={value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"}},Rt=[{attributes:Nt,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}))}},{attributes:Object(Z.a)({},Nt,{style:{type:"number",default:1}}),migrate:function(e){return 2===e.style?Object(Z.a)({},Object(J.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(Z.a)({},Nt,{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}))}}];var At=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object($.createElement)(se.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"}));var Bt=n(21),It=n(22),Mt={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:function(e){return Object(G.createBlock)("core/quote",{value:Object(It.toHTMLString)({value:Object(It.join)(e.map((function(e){var t=e.content;return Object(It.create)({html:t})})),"\u2028"),multilineTag:"p"})})}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content;return Object(G.createBlock)("core/quote",{value:"

    ".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(It.split)(Object(It.create)({html:t,multilineTag:"p"}),"\u2028").map((function(e){return Object(G.createBlock)("core/paragraph",{content:Object(It.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(Bt.a)(e,["value","citation"]);if("

    "===t)return Object(G.createBlock)("core/heading",{content:n});var o=Object(It.split)(Object(It.create)({html:t,multilineTag:"p"}),"\u2028"),a=Object(G.createBlock)("core/heading",{content:Object(It.toHTMLString)({value:o[0]})});if(!n&&1===o.length)return a;var c=o.slice(1);return[a,Object(G.createBlock)("core/quote",Object(Z.a)({},r,{citation:n,value:Object(It.toHTMLString)({value:c.length?Object(It.join)(o.slice(1),"\u2028"):Object(It.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})}}]},Pt={name:"core/quote",category:"common",attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"}}},Lt=Pt.name,Ht={title:Object(K.__)("Quote"),description:Object(K.__)('Give quoted text visual emphasis. "In quoting others, we cite ourselves." — Julio Cortázar'),icon:At,keywords:[Object(K.__)("blockquote"),Object(K.__)("cite")],example:{attributes:{value:"

    "+Object(K.__)("In quoting others, we cite ourselves.")+"

    ",citation:"Julio Cortázar",className:"is-style-large"}},styles:[{name:"default",label:Object(K._x)("Default","block style"),isDefault:!0},{name:"large",label:Object(K._x)("Large","block style")}],transforms:Mt,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)(se.BlockQuotation,{className:Q()(c,Object(q.a)({},"has-text-align-".concat(i),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(K.__)("Write quote…"),onReplace:a,onSplit:function(e){return Object(G.createBlock)("core/quote",Object(Z.a)({},t,{value:e}))},__unstableOnSplitMiddle:function(){return Object(G.createBlock)("core/paragraph")}}),(!W.RichText.isEmpty(s)||r)&&Object($.createElement)(W.RichText,{identifier:"citation",value:s,onChange:function(e){return n({citation:e})},__unstableMobileNoFocusOnMount:!0,placeholder:Object(K.__)("Write citation…"),className:"wp-block-quote__citation"})))},save:function(e){var t=e.attributes,n=t.align,r=t.value,o=t.citation,a=Q()(Object(q.a)({},"has-text-align-".concat(n),n));return Object($.createElement)("blockquote",{className:a},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 r||(r=e.citation),n&&"

    "!==n?Object(Z.a)({},e,{value:e.value+n,citation:r}):Object(Z.a)({},e,{citation:r})},deprecated:Rt};function zt(e){return Math.min(3,e.images.length)}var Vt=function(e){var t=Object(J.pick)(e,["alt","id","link","caption"]);t.url=Object(J.get)(e,["sizes","large","url"])||Object(J.get)(e,["media_details","sizes","large","source_url"])||e.url;var n=Object(J.get)(e,["sizes","full","url"])||Object(J.get)(e,["media_details","sizes","full","source_url"]);return n&&(t.fullUrl=n),t},Dt=[{attributes:{images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},fullUrl:{source:"attribute",selector:"img",attribute:"data-full-url"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},link:{source:"attribute",selector:"img",attribute:"data-link"},caption:{type:"array",source:"children",selector:"figcaption"}}},ids:{type:"array",default:[]},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?zt(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.fullUrl||e.url;break;case"attachment":t=e.link}var n=Object($.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"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:{images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},link:{source:"attribute",selector:"img",attribute:"data-link"},caption:{type:"array",source:"children",selector:"figcaption"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},isEligible:function(e){var t=e.images,n=e.ids;return t&&t.length>0&&(!n&&t||n&&t&&n.length!==t.length||Object(J.some)(t,(function(e,t){return!e&&null!==n[t]||parseInt(e,10)!==n[t]})))},migrate:function(e){return Object(Z.a)({},e,{ids:Object(J.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?zt(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:{images:{type:"array",default:[],source:"query",selector:"div.wp-block-gallery figure.blocks-gallery-image img",query:{url:{source:"attribute",attribute:"src"},alt:{source:"attribute",attribute:"alt",default:""},id:{source:"attribute",attribute:"data-id"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},align:{type:"string",default:"none"}},save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?zt(t):r,a=t.align,c=t.imageCrop,i=t.linkTo,l=Q()("columns-".concat(o),{alignnone:"none"===a,"is-cropped":c});return Object($.createElement)("div",{className:l},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)})))}}],Ft=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object($.createElement)(se.G,null,Object($.createElement)(se.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"}))),Ut=Object($.createElement)(se.SVG,{width:"18",height:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:"M5 8.70002L10.6 14.4L12 12.9L7.8 8.70002L12 4.50002L10.6 3.00002L5 8.70002Z"})),qt=Object($.createElement)(se.SVG,{width:"18",height:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:"M13 8.7L7.4 3L6 4.5L10.2 8.7L6 12.9L7.4 14.4L13 8.7Z"})),Wt=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(ae.a)(this,Object(ce.a)(t).apply(this,arguments))).onSelectImage=e.onSelectImage.bind(Object(ie.a)(e)),e.onSelectCaption=e.onSelectCaption.bind(Object(ie.a)(e)),e.onRemoveImage=e.onRemoveImage.bind(Object(ie.a)(e)),e.bindContainer=e.bindContainer.bind(Object(ie.a)(e)),e.state={captionSelected:!1},e}return Object(le.a)(t,e),Object(oe.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:"onSelectImage",value:function(){this.props.isSelected||this.props.onSelect(),this.state.captionSelected&&this.setState({captionSelected:!1})}},{key:"onRemoveImage",value:function(e){this.container===document.activeElement&&this.props.isSelected&&-1!==[we.BACKSPACE,we.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.isFirstItem,l=t.isLastItem,s=t.isSelected,u=t.caption,b=t.onRemove,m=t.onMoveForward,d=t.onMoveBackward,h=t.setAttributes,p=t["aria-label"];switch(a){case"media":e=n;break;case"attachment":e=c}var g=Object($.createElement)($.Fragment,null,Object($.createElement)("img",{src:n,alt:r,"data-id":o,onClick:this.onSelectImage,onFocus:this.onSelectImage,onKeyDown:this.onRemoveImage,tabIndex:"0","aria-label":p,ref:this.bindContainer}),Object(Ce.isBlobURL)(n)&&Object($.createElement)(se.Spinner,null)),f=Q()({"is-selected":s,"is-transient":Object(Ce.isBlobURL)(n)});return Object($.createElement)("figure",{className:f},e?Object($.createElement)("a",{href:e},g):g,Object($.createElement)("div",{className:"block-library-gallery-item__move-menu"},Object($.createElement)(se.IconButton,{icon:Ut,onClick:i?void 0:d,className:"blocks-gallery-item__move-backward",label:Object(K.__)("Move image backward"),"aria-disabled":i,disabled:!s}),Object($.createElement)(se.IconButton,{icon:qt,onClick:l?void 0:m,className:"blocks-gallery-item__move-forward",label:Object(K.__)("Move image forward"),"aria-disabled":l,disabled:!s})),Object($.createElement)("div",{className:"block-library-gallery-item__inline-menu"},Object($.createElement)(se.IconButton,{icon:"no-alt",onClick:b,className:"blocks-gallery-item__remove",label:Object(K.__)("Remove image"),disabled:!s})),(s||u)&&Object($.createElement)(W.RichText,{tagName:"figcaption",placeholder:s?Object(K.__)("Write caption…"):null,value:u,isSelected:this.state.captionSelected,onChange:function(e){return h({caption:e})},unstableOnFocus:this.onSelectCaption,inlineToolbar:!0}))}}]),t}($.Component),Gt=Object(be.withSelect)((function(e,t){var n=e("core").getMedia,r=t.id;return{image:r?n(r):null}}))(Wt),Kt=[{value:"attachment",label:Object(K.__)("Attachment Page")},{value:"media",label:Object(K.__)("Media File")},{value:"none",label:Object(K.__)("None")}],Zt=["image"],$t=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(ae.a)(this,Object(ce.a)(t).apply(this,arguments))).onSelectImage=e.onSelectImage.bind(Object(ie.a)(e)),e.onSelectImages=e.onSelectImages.bind(Object(ie.a)(e)),e.setLinkTo=e.setLinkTo.bind(Object(ie.a)(e)),e.setColumnsNumber=e.setColumnsNumber.bind(Object(ie.a)(e)),e.toggleImageCrop=e.toggleImageCrop.bind(Object(ie.a)(e)),e.onMove=e.onMove.bind(Object(ie.a)(e)),e.onMoveForward=e.onMoveForward.bind(Object(ie.a)(e)),e.onMoveBackward=e.onMoveBackward.bind(Object(ie.a)(e)),e.onRemoveImage=e.onRemoveImage.bind(Object(ie.a)(e)),e.onUploadError=e.onUploadError.bind(Object(ie.a)(e)),e.setImageAttributes=e.setImageAttributes.bind(Object(ie.a)(e)),e.setAttributes=e.setAttributes.bind(Object(ie.a)(e)),e.onFocusGalleryCaption=e.onFocusGalleryCaption.bind(Object(ie.a)(e)),e.state={selectedImage:null,attachmentCaptions:null},e}return Object(le.a)(t,e),Object(oe.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(Z.a)({},e,{ids:Object(J.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:"onMove",value:function(e,t){var n=Object(U.a)(this.props.attributes.images);n.splice(t,1,this.props.attributes.images[e]),n.splice(e,1,this.props.attributes.images[t]),this.setState({selectedImage:t}),this.setAttributes({images:n})}},{key:"onMoveForward",value:function(e){var t=this;return function(){e!==t.props.attributes.images.length-1&&t.onMove(e,e+1)}}},{key:"onMoveBackward",value:function(e){var t=this;return function(){0!==e&&t.onMove(e,e-1)}}},{key:"onRemoveImage",value:function(e){var t=this;return function(){var n=Object(J.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:"selectCaption",value:function(e,t,n){var r=Object(J.find)(t,{id:e.id}),o=r?r.caption:e.caption;if(!n)return o;var a=Object(J.find)(n,{id:e.id});return a&&a.caption!==e.caption?e.caption:o}},{key:"onSelectImages",value:function(e){var t=this,n=this.props.attributes,r=n.columns,o=n.images,a=this.state.attachmentCaptions;this.setState({attachmentCaptions:e.map((function(e){return{id:e.id,caption:e.caption}}))}),this.setAttributes({images:e.map((function(e){return Object(Z.a)({},Vt(e),{caption:t.selectCaption(e,o,a)})})),columns:r?Math.min(e.length,r):r})}},{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{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(K.__)("Thumbnails are cropped to align."):Object(K.__)("Thumbnails are not cropped.")}},{key:"onFocusGalleryCaption",value:function(){this.setState({selectedImage:null})}},{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(Z.a)({},n[e],t)],Object(U.a)(n.slice(e+1)))})}},{key:"componentDidMount",value:function(){var e=this.props,t=e.attributes,n=e.mediaUpload,r=t.images;if(Object(J.every)(r,(function(e){var t=e.url;return Object(Ce.isBlobURL)(t)}))){var o=Object(J.map)(r,(function(e){var t=e.url;return Object(Ce.getBlobByURL)(t)}));Object(J.forEach)(r,(function(e){var t=e.url;return Object(Ce.revokeBlobURL)(t)})),n({filesList:o,onFileChange:this.onSelectImages,allowedTypes:["image"]})}}},{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.className,a=n.isSelected,c=n.noticeUI,i=n.setAttributes,l=r.align,s=r.columns,u=void 0===s?zt(r):s,b=r.caption,m=r.imageCrop,d=r.images,h=r.linkTo,p=!!d.length,g=p&&Object(J.some)(d,(function(e){return e.id})),f=Object($.createElement)(W.MediaPlaceholder,{addToGallery:g,isAppender:p,className:o,dropZoneUIOnly:p&&!a,icon:!p&&Object($.createElement)(W.BlockIcon,{icon:Ft}),labels:{title:!p&&Object(K.__)("Gallery"),instructions:!p&&Object(K.__)("Drag images, upload new ones or select files from your library.")},onSelect:this.onSelectImages,accept:"image/*",allowedTypes:Zt,multiple:!0,value:g?d:void 0,onError:this.onUploadError,notices:p?void 0:c});if(!p)return f;var v=Q()("blocks-gallery-caption",{"screen-reader-text":!a&&W.RichText.isEmpty(b)});return Object($.createElement)($.Fragment,null,Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,{title:Object(K.__)("Gallery Settings")},d.length>1&&Object($.createElement)(se.RangeControl,{label:Object(K.__)("Columns"),value:u,onChange:this.setColumnsNumber,min:1,max:Math.min(8,d.length),required:!0}),Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Crop Images"),checked:!!m,onChange:this.toggleImageCrop,help:this.getImageCropHelp}),Object($.createElement)(se.SelectControl,{label:Object(K.__)("Link To"),value:h,onChange:this.setLinkTo,options:Kt}))),c,Object($.createElement)("figure",{className:Q()(o,(e={},Object(q.a)(e,"align".concat(l),l),Object(q.a)(e,"columns-".concat(u),u),Object(q.a)(e,"is-cropped",m),e))},Object($.createElement)("ul",{className:"blocks-gallery-grid"},d.map((function(e,n){var r=Object(K.sprintf)(Object(K.__)("image %1$d of %2$d in gallery"),n+1,d.length);return Object($.createElement)("li",{className:"blocks-gallery-item",key:e.id||e.url},Object($.createElement)(Gt,{url:e.url,alt:e.alt,id:e.id,isFirstItem:0===n,isLastItem:n+1===d.length,isSelected:a&&t.state.selectedImage===n,onMoveBackward:t.onMoveBackward(n),onMoveForward:t.onMoveForward(n),onRemove:t.onRemoveImage(n),onSelect:t.onSelectImage(n),setAttributes:function(e){return t.setImageAttributes(n,e)},caption:e.caption,"aria-label":r}))}))),f,Object($.createElement)(W.RichText,{tagName:"figcaption",className:v,placeholder:Object(K.__)("Write gallery caption…"),value:b,unstableOnFocus:this.onFocusGalleryCaption,onChange:function(e){return i({caption:e})},inlineToolbar:!0})))}}]),t}($.Component),Yt=Object(ue.compose)([Object(be.withSelect)((function(e){return{mediaUpload:(0,e("core/block-editor").getSettings)().__experimentalMediaUpload}})),se.withNotices])($t);var Qt=function(e){return e?e.split(",").map((function(e){return parseInt(e,10)})):[]},Jt={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:function(e){var t=e[0].align;t=Object(J.every)(e,["align",t])?t:void 0;var n=Object(J.filter)(e,(function(e){return e.url}));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 Qt(t).map((function(e){return{id:e}}))}},ids:{type:"array",shortcode:function(e){var t=e.named.ids;return Qt(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(J.every)(e,(function(e){return 0===e.type.indexOf("image/")}))},transform:function(e){return Object(G.createBlock)("core/gallery",{images:e.map((function(e){return Vt({url:Object(Ce.createBlobURL)(e)})}))})}}],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})}}]},Xt={name:"core/gallery",category:"common",attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},fullUrl:{source:"attribute",selector:"img",attribute:"data-full-url"},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:".blocks-gallery-item__caption"}}},ids:{type:"array",default:[]},columns:{type:"number"},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}}},en=Xt.name,tn={title:Object(K.__)("Gallery"),description:Object(K.__)("Display multiple images in a rich gallery."),icon:Ft,keywords:[Object(K.__)("images"),Object(K.__)("photos")],example:{attributes:{columns:2,images:[{url:"https://s.w.org/images/core/5.3/Glacial_lakes%2C_Bhutan.jpg"},{url:"https://s.w.org/images/core/5.3/Sediment_off_the_Yucatan_Peninsula.jpg"}]}},supports:{align:!0},transforms:Jt,edit:Yt,save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?zt(t):r,a=t.imageCrop,c=t.caption,i=t.linkTo;return Object($.createElement)("figure",{className:"columns-".concat(o," ").concat(a?"is-cropped":"")},Object($.createElement)("ul",{className:"blocks-gallery-grid"},n.map((function(e){var t;switch(i){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}var n=Object($.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"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,!W.RichText.isEmpty(e.caption)&&Object($.createElement)(W.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!W.RichText.isEmpty(c)&&Object($.createElement)(W.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:c}))},deprecated:Dt},nn=n(58),rn=n.n(nn);var on=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:"M21 6V20C21 21.1 20.1 22 19 22H5C3.89 22 3 21.1 3 20L3.01 6C3.01 4.9 3.89 4 5 4H6V2H8V4H16V2H18V4H19C20.1 4 21 4.9 21 6ZM5 8H19V6H5V8ZM19 20V10H5V20H19ZM11 12H17V14H11V12ZM17 16H11V18H17V16ZM7 12H9V14H7V12ZM9 18V16H7V18H9Z"})),an="core/archives",cn={title:Object(K.__)("Archives"),description:Object(K.__)("Display a monthly archive of your posts."),icon:on,category:"widgets",supports:{align:!0,html:!1},edit:function(e){var t=e.attributes,n=e.setAttributes,r=t.showPostCounts,o=t.displayAsDropdown;return Object($.createElement)($.Fragment,null,Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,{title:Object(K.__)("Archives Settings")},Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Display as Dropdown"),checked:o,onChange:function(){return n({displayAsDropdown:!o})}}),Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Show Post Counts"),checked:r,onChange:function(){return n({showPostCounts:!r})}}))),Object($.createElement)(se.Disabled,null,Object($.createElement)(rn.a,{block:"core/archives",attributes:t})))}},ln=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object($.createElement)(se.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"})),sn=["audio"],un=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(ae.a)(this,Object(ce.a)(t).apply(this,arguments))).state={editing:!e.props.attributes.src},e.toggleAttribute=e.toggleAttribute.bind(Object(ie.a)(e)),e.onSelectURL=e.onSelectURL.bind(Object(ie.a)(e)),e.onUploadError=e.onUploadError.bind(Object(ie.a)(e)),e}return Object(le.a)(t,e),Object(oe.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.mediaUpload,o=t.noticeOperations,a=t.setAttributes,c=n.id,i=n.src,l=void 0===i?"":i;if(!c&&Object(Ce.isBlobURL)(l)){var s=Object(Ce.getBlobByURL)(l);s&&r({filesList:[s],onFileChange:function(e){var t=Object(ke.a)(e,1)[0],n=t.id,r=t.url;a({id:n,src:r})},onError:function(t){a({src:void 0,id:void 0}),e.setState({editing:!0}),o.createErrorNotice(t)},allowedTypes:sn})}}},{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=et({attributes:{url:e}});if(void 0!==o)return void this.props.onReplace(o);r({src:e,id:void 0})}this.setState({editing:!1})}},{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"getAutoplayHelp",value:function(e){return e?Object(K.__)("Note: Autoplaying audio may cause usability issues for some visitors."):null}},{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.noticeUI,m=this.state.editing,d=function(){e.setState({editing:!0})};return m?Object($.createElement)(W.MediaPlaceholder,{icon:Object($.createElement)(W.BlockIcon,{icon:ln}),className:u,onSelect:function(t){if(!t||!t.url)return l({src:void 0,id:void 0}),void d();l({src:t.url,id:t.id}),e.setState({src:t.url,editing:!1})},onSelectURL:this.onSelectURL,accept:"audio/*",allowedTypes:sn,value:this.props.attributes,notices:b,onError:this.onUploadError}):Object($.createElement)($.Fragment,null,Object($.createElement)(W.BlockControls,null,Object($.createElement)(se.Toolbar,null,Object($.createElement)(se.IconButton,{className:"components-icon-button components-toolbar__control",label:Object(K.__)("Edit audio"),onClick:d,icon:"edit"}))),Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,{title:Object(K.__)("Audio Settings")},Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Autoplay"),onChange:this.toggleAttribute("autoplay"),checked:n,help:this.getAutoplayHelp}),Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Loop"),onChange:this.toggleAttribute("loop"),checked:o}),Object($.createElement)(se.SelectControl,{label:Object(K.__)("Preload"),value:void 0!==a?a:"none",onChange:function(e){return l({preload:"none"!==e?e:void 0})},options:[{value:"auto",label:Object(K.__)("Auto")},{value:"metadata",label:Object(K.__)("Metadata")},{value:"none",label:Object(K.__)("None")}]}))),Object($.createElement)("figure",{className:u},Object($.createElement)(se.Disabled,null,Object($.createElement)("audio",{controls:"controls",src:c})),(!W.RichText.isEmpty(r)||s)&&Object($.createElement)(W.RichText,{tagName:"figcaption",placeholder:Object(K.__)("Write caption…"),value:r,onChange:function(e){return l({caption:e})},inlineToolbar:!0})))}}]),t}($.Component),bn=Object(ue.compose)([Object(be.withSelect)((function(e){return{mediaUpload:(0,e("core/block-editor").getSettings)().__experimentalMediaUpload}})),se.withNotices])(un);var mn={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(Ce.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:function(e){return e.named.src}},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}}}}]},dn={name:"core/audio",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"}}},hn=dn.name,pn={title:Object(K.__)("Audio"),description:Object(K.__)("Embed a simple audio player."),icon:ln,transforms:mn,supports:{align:!0},edit:bn,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}))}},gn=function(e){return Object(J.omit)(Object(Z.a)({},e,{customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.color&&"#"===e.color[0]?e.color:void 0}),["color","textColor"])},fn={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"}},vn=[{attributes:Object(Z.a)({},fn,{align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"}}),isEligible:function(e){return e.className&&e.className.includes("is-style-squared")},migrate:function(e){var t=e.className;return t&&(t=t.replace(/is-style-squared[\s]?/,"").trim()),Object(Z.a)({},e,{className:t||void 0,borderRadius:0})},save:function(e){var t,n=e.attributes,r=n.backgroundColor,o=n.customBackgroundColor,a=n.customTextColor,c=n.linkTarget,i=n.rel,l=n.text,s=n.textColor,u=n.title,b=n.url,m=Object(W.getColorClassName)("color",s),d=Object(W.getColorClassName)("background-color",r),h=Q()("wp-block-button__link",(t={"has-text-color":s||a},Object(q.a)(t,m,m),Object(q.a)(t,"has-background",r||o),Object(q.a)(t,d,d),t)),p={backgroundColor:d?void 0:o,color:m?void 0:a};return Object($.createElement)("div",null,Object($.createElement)(W.RichText.Content,{tagName:"a",className:h,href:b,title:u,style:p,value:l,target:c,rel:i}))}},{attributes:Object(Z.a)({},fn,{align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}}),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=Q()("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}))},migrate:gn},{attributes:Object(Z.a)({},fn,{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:gn},{attributes:Object(Z.a)({},fn,{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:gn}],On=window.getComputedStyle,jn=Object(se.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:On(e).backgroundColor,fallbackTextColor:a||!c?void 0:On(c).color}})),yn=0,_n=50,kn=5;function Cn(e){var t=e.borderRadius,n=void 0===t?"":t,r=e.setAttributes,o=Object($.useCallback)((function(e){r({borderRadius:e})}),[r]);return Object($.createElement)(se.PanelBody,{title:Object(K.__)("Border Settings")},Object($.createElement)(se.RangeControl,{value:n,label:Object(K.__)("Border Radius"),min:yn,max:_n,initialPosition:kn,allowReset:!0,onChange:o}))}var wn=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(ae.a)(this,Object(ce.a)(t).apply(this,arguments))).nodeRef=null,e.bindRef=e.bindRef.bind(Object(ie.a)(e)),e.onSetLinkRel=e.onSetLinkRel.bind(Object(ie.a)(e)),e.onToggleOpenInNewTab=e.onToggleOpenInNewTab.bind(Object(ie.a)(e)),e}return Object(le.a)(t,e),Object(oe.a)(t,[{key:"bindRef",value:function(e){e&&(this.nodeRef=e)}},{key:"onSetLinkRel",value:function(e){this.props.setAttributes({rel:e})}},{key:"onToggleOpenInNewTab",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:"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.className,b=t.instanceId,m=t.isSelected,d=n.borderRadius,h=n.linkTarget,p=n.placeholder,g=n.rel,f=n.text,v=n.title,O=n.url,j="wp-block-button__inline-link-".concat(b);return Object($.createElement)("div",{className:u,title:v,ref:this.bindRef},Object($.createElement)(W.RichText,{placeholder:p||Object(K.__)("Add text…"),value:f,onChange:function(e){return s({text:e})},withoutInteractiveFormatting:!0,className:Q()("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),Object(q.a)(e,"no-border-radius",0===d),e)),style:{backgroundColor:r.color,color:o.color,borderRadius:d?d+"px":void 0}}),Object($.createElement)(se.BaseControl,{label:Object(K.__)("Link"),className:"wp-block-button__inline-link",id:j},Object($.createElement)(W.URLInput,{className:"wp-block-button__inline-link-input",value:O,autoFocus:!1,onChange:function(e){return s({url:e})},disableSuggestions:!m,id:j,isFullWidth:!0,hasBorder:!0})),Object($.createElement)(W.InspectorControls,null,Object($.createElement)(W.PanelColorSettings,{title:Object(K.__)("Color Settings"),colorSettings:[{value:r.color,onChange:a,label:Object(K.__)("Background Color")},{value:o.color,onChange:c,label:Object(K.__)("Text Color")}]},Object($.createElement)(W.ContrastChecker,{isLargeText:!1,textColor:o.color,backgroundColor:r.color,fallbackBackgroundColor:i,fallbackTextColor:l})),Object($.createElement)(Cn,{borderRadius:d,setAttributes:s}),Object($.createElement)(se.PanelBody,{title:Object(K.__)("Link settings")},Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Open in new tab"),onChange:this.onToggleOpenInNewTab,checked:"_blank"===h}),Object($.createElement)(se.TextControl,{label:Object(K.__)("Link rel"),value:g||"",onChange:this.onSetLinkRel}))))}}]),t}($.Component),En=Object(ue.compose)([ue.withInstanceId,Object(W.withColors)("backgroundColor",{textColor:"color"}),jn])(wn),xn=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object($.createElement)(se.G,null,Object($.createElement)(se.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"})));var Sn={name:"core/button",category:"layout",attributes:{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"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"}}},Tn=Sn.name,Nn={title:Object(K.__)("Button"),description:Object(K.__)("Prompt visitors to take action with a button-style link."),icon:xn,keywords:[Object(K.__)("link")],example:{attributes:{className:"is-style-fill",backgroundColor:"vivid-green-cyan",text:Object(K.__)("Call to Action")}},supports:{align:!0,alignWide:!1},styles:[{name:"fill",label:Object(K.__)("Fill"),isDefault:!0},{name:"outline",label:Object(K.__)("Outline")}],edit:En,save:function(e){var t,n=e.attributes,r=n.backgroundColor,o=n.borderRadius,a=n.customBackgroundColor,c=n.customTextColor,i=n.linkTarget,l=n.rel,s=n.text,u=n.textColor,b=n.title,m=n.url,d=Object(W.getColorClassName)("color",u),h=Object(W.getColorClassName)("background-color",r),p=Q()("wp-block-button__link",(t={"has-text-color":u||c},Object(q.a)(t,d,d),Object(q.a)(t,"has-background",r||a),Object(q.a)(t,h,h),Object(q.a)(t,"no-border-radius",0===o),t)),g={backgroundColor:h?void 0:a,color:d?void 0:c,borderRadius:o?o+"px":void 0};return Object($.createElement)("div",null,Object($.createElement)(W.RichText.Content,{tagName:"a",className:p,href:m,title:b,style:g,value:s,target:i,rel:l}))},deprecated:vn},Rn=n(29),An=n.n(Rn),Bn=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(ae.a)(this,Object(ce.a)(t).apply(this,arguments))).getYearMonth=Qe()(e.getYearMonth.bind(Object(ie.a)(e)),{maxSize:1}),e.getServerSideAttributes=Qe()(e.getServerSideAttributes.bind(Object(ie.a)(e)),{maxSize:1}),e}return Object(le.a)(t,e),Object(oe.a)(t,[{key:"getYearMonth",value:function(e){if(!e)return{};var t=An()(e);return{year:t.year(),month:t.month()+1}}},{key:"getServerSideAttributes",value:function(e,t){return Object(Z.a)({},e,this.getYearMonth(t))}},{key:"render",value:function(){return Object($.createElement)(se.Disabled,null,Object($.createElement)(rn.a,{block:"core/calendar",attributes:this.getServerSideAttributes(this.props.attributes,this.props.date)}))}}]),t}($.Component),In=Object(be.withSelect)((function(e){var t=e("core/editor");if(t){var n=t.getEditedPostAttribute;return{date:"post"===n("type")?n("date"):void 0}}}))(Bn),Mn=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object($.createElement)(se.G,null,Object($.createElement)(se.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"}))),Pn="core/calendar",Ln={title:Object(K.__)("Calendar"),description:Object(K.__)("A calendar of your site’s posts."),icon:Mn,category:"widgets",keywords:[Object(K.__)("posts"),Object(K.__)("archive")],supports:{align:!0},example:{},edit:In},Hn=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(ae.a)(this,Object(ce.a)(t).apply(this,arguments))).toggleDisplayAsDropdown=e.toggleDisplayAsDropdown.bind(Object(ie.a)(e)),e.toggleShowPostCounts=e.toggleShowPostCounts.bind(Object(ie.a)(e)),e.toggleShowHierarchy=e.toggleShowHierarchy.bind(Object(ie.a)(e)),e}return Object(le.a)(t,e),Object(oe.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(J.unescape)(e.name).trim():Object(K.__)("(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",rel:"noreferrer noopener"},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(K.__)("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(J.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)(se.PanelBody,{title:Object(K.__)("Categories Settings")},Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Display as Dropdown"),checked:r,onChange:this.toggleDisplayAsDropdown}),Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Show Hierarchy"),checked:o,onChange:this.toggleShowHierarchy}),Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Show Post Counts"),checked:a,onChange:this.toggleShowPostCounts})));return n?Object($.createElement)($.Fragment,null,c,Object($.createElement)(se.Placeholder,{icon:"admin-post",label:Object(K.__)("Categories")},Object($.createElement)(se.Spinner,null))):Object($.createElement)($.Fragment,null,c,Object($.createElement)("div",{className:this.props.className},r?this.renderCategoryDropdown():this.renderCategoryList()))}}]),t}($.Component),zn=Object(ue.compose)(Object(be.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])}})),ue.withInstanceId)(Hn),Vn=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object($.createElement)(se.Path,{d:"M12,2l-5.5,9h11L12,2z M12,5.84L13.93,9h-3.87L12,5.84z"}),Object($.createElement)(se.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)(se.Path,{d:"m3 21.5h8v-8h-8v8zm2-6h4v4h-4v-4z"})),Dn="core/categories",Fn={title:Object(K.__)("Categories"),description:Object(K.__)("Display a list of all categories."),icon:Vn,category:"widgets",supports:{align:!0,html:!1},edit:zn};function Un(e){return Object(J.flow)(qn,Gn,Zn)(e||"")}function qn(e){return e.replace(/&/g,"&")}function Wn(e){return e.replace(/&/g,"&")}function Gn(e){return e.replace(/\[/g,"[")}function Kn(e){return e.replace(/[/g,"[")}function Zn(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1//$2")}function $n(e){return e.replace(/^(\s*https?:)//([^\s<>"]+\s*)$/m,"$1//$2")}var Yn=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object($.createElement)(se.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"}));var Qn={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":{}}}}}}}]},Jn={name:"core/code",category:"formatting",attributes:{content:{type:"string",source:"text",selector:"code"}}},Xn=Jn.name,er={title:Object(K.__)("Code"),description:Object(K.__)("Display code snippets that respect your spacing and tabs."),icon:Yn,example:{attributes:{content:Object(K.__)('// A "block" is the abstract term used')+"\n"+Object(K.__)("// to describe units of markup that,")+"\n"+Object(K.__)("// when composed together, form the")+"\n"+Object(K.__)("// content or layout of a page.")+"\n"+Object(K.__)("registerBlockType( name, settings );")}},supports:{html:!1},transforms:Qn,edit:function(e){var t,n=e.attributes,r=e.setAttributes,o=e.className;return Object($.createElement)("div",{className:o},Object($.createElement)(W.PlainText,{value:(t=n.content,Object(J.flow)($n,Kn,Wn)(t||"")),onChange:function(e){return r({content:Un(e)})},placeholder:Object(K.__)("Write code…"),"aria-label":Object(K.__)("Code")}))},save:function(e){var t=e.attributes;return Object($.createElement)("pre",null,Object($.createElement)("code",null,t.content))}};function tr(e){var t,n=tr.doc;n||(n=document.implementation.createHTMLDocument(""),tr.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 nr=[{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!==tr(e.originalContent)}))},migrate:function(e,t){var n=t.reduce((function(e,t){var n=tr(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)}));return[Object(J.omit)(e,["columns"]),n]},save:function(e){var t=e.attributes.columns;return Object($.createElement)("div",{className:"has-".concat(t,"-columns")},Object($.createElement)(W.InnerBlocks.Content,null))}},{attributes:{columns:{type:"number",default:2}},migrate:function(e,t){return[e=Object(J.omit)(e,["columns"]),t]},save:function(e){var t=e.attributes,n=t.verticalAlignment,r=t.columns,o=Q()("has-".concat(r,"-columns"),Object(q.a)({},"are-vertically-aligned-".concat(n),n));return Object($.createElement)("div",{className:o},Object($.createElement)(W.InnerBlocks.Content,null))}}],rr=Qe()((function(e){return void 0===e?null:Object(J.times)(e,(function(){return["core/column"]}))})),or=function(e){return Number.isFinite(e)?parseFloat(e.toFixed(2)):void 0};function ar(e,t){var n=e.attributes.width;return or(void 0===n?100/t:n)}function cr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return Object(J.sumBy)(e,(function(e){return ar(e,t)}))}function ir(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return e.reduce((function(e,n){var r=ar(n,t);return Object.assign(e,Object(q.a)({},n.clientId,r))}),{})}function lr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,r=(t-cr(e,n))/e.length;return Object(J.mapValues)(ir(e,n),(function(e){return or(e+r)}))}function sr(e,t){return e.map((function(e){return Object(J.merge)({},e,{attributes:{width:t[e.clientId]}})}))}var ur=["core/column"],br=[{title:Object(K.__)("Two columns; equal split"),icon:Object($.createElement)(se.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H25V34H39ZM23 34H9V14H23V34Z"})),template:[["core/column"],["core/column"]]},{title:Object(K.__)("Two columns; one-third, two-thirds split"),icon:Object($.createElement)(se.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H20V34H39ZM18 34H9V14H18V34Z"})),template:[["core/column",{width:33.33}],["core/column",{width:66.66}]]},{title:Object(K.__)("Two columns; two-thirds, one-third split"),icon:Object($.createElement)(se.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H30V34H39ZM28 34H9V14H28V34Z"})),template:[["core/column",{width:66.66}],["core/column",{width:33.33}]]},{title:Object(K.__)("Three columns; equal split"),icon:Object($.createElement)(se.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM28.5 34h-9V14h9v20zm2 0V14H39v20h-8.5zm-13 0H9V14h8.5v20z"})),template:[["core/column"],["core/column"],["core/column"]]},{title:Object(K.__)("Three columns; wide center column"),icon:Object($.createElement)(se.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM31 34H17V14h14v20zm2 0V14h6v20h-6zm-18 0H9V14h6v20z"})),template:[["core/column",{width:25}],["core/column",{width:50}],["core/column",{width:25}]]}],mr=2;var dr=Object(be.withDispatch)((function(e,t,n){return{updateAlignment:function(r){var o=t.clientId,a=t.setAttributes,c=e("core/block-editor").updateBlockAttributes,i=n.select("core/block-editor").getBlockOrder;a({verticalAlignment:r}),i(o).forEach((function(e){c(e,{verticalAlignment:r})}))},updateColumns:function(r,o){var a=t.clientId,c=e("core/block-editor").replaceInnerBlocks,i=(0,n.select("core/block-editor").getBlocks)(a),l=i.some((function(e){return Number.isFinite(e.attributes.width)})),s=o>r;if(s&&l){var u=or(100/o),b=lr(i,100-u);i=[].concat(Object(U.a)(sr(i,b)),Object(U.a)(Object(J.times)(o-r,(function(){return Object(G.createBlock)("core/column",{width:u})}))))}else if(s)i=[].concat(Object(U.a)(i),Object(U.a)(Object(J.times)(o-r,(function(){return Object(G.createBlock)("core/column")}))));else{if(i=Object(J.dropRight)(i,r-o),l)i=sr(i,lr(i,100))}c(a,i,!1)}}}))((function(e){var t=e.attributes,n=e.className,r=e.updateAlignment,o=e.updateColumns,a=e.clientId,c=t.verticalAlignment,i=Object(be.useSelect)((function(e){return{count:e("core/block-editor").getBlockCount(a)}})).count,l=Object($.useState)(rr(i)),s=Object(ke.a)(l,2),u=s[0],b=s[1],m=Object($.useState)(!1),d=Object(ke.a)(m,2),h=d[0],p=d[1];Object($.useEffect)((function(){h&&p(!1)}),[h]);var g=Q()(n,Object(q.a)({},"are-vertically-aligned-".concat(c),c)),f=0===i&&!h||!u;return Object($.createElement)($.Fragment,null,!f&&Object($.createElement)($.Fragment,null,Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,null,Object($.createElement)(se.RangeControl,{label:Object(K.__)("Columns"),value:i,onChange:function(e){return o(i,e)},min:2,max:6}))),Object($.createElement)(W.BlockControls,null,Object($.createElement)(W.BlockVerticalAlignmentToolbar,{onChange:r,value:c}))),Object($.createElement)("div",{className:g},Object($.createElement)(W.InnerBlocks,{__experimentalTemplateOptions:br,__experimentalOnSelectTemplateOption:function(e){void 0===e&&(e=rr(mr)),b(e),p(!0)},__experimentalAllowTemplateOptionSkip:!0,template:f?null:u,templateLock:"all",allowedBlocks:ur})))})),hr=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object($.createElement)(se.G,null,Object($.createElement)(se.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"})));var pr={name:"core/columns",category:"layout",attributes:{verticalAlignment:{type:"string"}}},gr=pr.name,fr={title:Object(K.__)("Columns"),icon:hr,description:Object(K.__)("Add a block that displays content in multiple columns, then add whatever content blocks you’d like."),supports:{align:["wide","full"],html:!1},example:{innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et eros eu felis."}},{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"}},{name:"core/paragraph",attributes:{content:"Suspendisse commodo neque lacus, a dictum orci interdum et."}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:Object(K.__)("Etiam et egestas lorem. Vivamus sagittis sit amet dolor quis lobortis. Integer sed fermentum arcu, id vulputate lacus. Etiam fermentum sem eu quam hendrerit.")}},{name:"core/paragraph",attributes:{content:Object(K.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:nr,edit:dr,save:function(e){var t=e.attributes.verticalAlignment,n=Q()(Object(q.a)({},"are-vertically-aligned-".concat(t),t));return Object($.createElement)("div",{className:n},Object($.createElement)(W.InnerBlocks.Content,null))}};var vr=Object(ue.compose)(Object(be.withSelect)((function(e,t){var n=t.clientId;return{hasChildBlocks:(0,e("core/block-editor").getBlockOrder)(n).length>0}})),Object(be.withDispatch)((function(e,t,n){return{updateAlignment:function(r){var o=t.clientId,a=t.setAttributes,c=e("core/block-editor").updateBlockAttributes,i=n.select("core/block-editor").getBlockRootClientId;a({verticalAlignment:r}),c(i(o),{verticalAlignment:null})},updateWidth:function(r){var o=t.clientId,a=e("core/block-editor").updateBlockAttributes,c=n.select("core/block-editor"),i=c.getBlockRootClientId,l=(0,c.getBlocks)(i(o)),s=function(e,t){var n=Object(J.findIndex)(e,{clientId:t});return n===e.length-1?e.slice(0,n):e.slice(n+1)}(l,o),u=r+cr(Object(J.difference)(l,[Object(J.find)(l,{clientId:o})].concat(Object(U.a)(s)))),b=Object(Z.a)({},ir(l,l.length),Object(q.a)({},o,or(r)),lr(s,100-u,l.length));Object(J.forEach)(b,(function(e,t){a(t,{width:e})}))}}})))((function(e){var t=e.attributes,n=e.className,r=e.updateAlignment,o=e.updateWidth,a=e.hasChildBlocks,c=t.verticalAlignment,i=t.width,l=Q()(n,"block-core-columns",Object(q.a)({},"is-vertically-aligned-".concat(c),c));return Object($.createElement)("div",{className:l},Object($.createElement)(W.BlockControls,null,Object($.createElement)(W.BlockVerticalAlignmentToolbar,{onChange:r,value:c})),Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,{title:Object(K.__)("Column Settings")},Object($.createElement)(se.RangeControl,{label:Object(K.__)("Percentage width"),value:i||"",onChange:o,min:0,max:100,required:!0,allowReset:!0}))),Object($.createElement)(W.InnerBlocks,{templateLock:!1,renderAppender:a?void 0:function(){return Object($.createElement)(W.InnerBlocks.ButtonBlockAppender,null)}}))})),Or=Object($.createElement)(se.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object($.createElement)(se.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object($.createElement)(se.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"}));var jr={name:"core/column",category:"common",attributes:{verticalAlignment:{type:"string"},width:{type:"number",min:0,max:100}}},yr=jr.name,_r={title:Object(K.__)("Column"),parent:["core/columns"],icon:Or,description:Object(K.__)("A single column within a columns block."),supports:{inserter:!1,reusable:!1,html:!1},getEditWrapperProps:function(e){var t=e.width;if(Number.isFinite(t))return{style:{flexBasis:t+"%"}}},edit:vr,save:function(e){var t,n=e.attributes,r=n.verticalAlignment,o=n.width,a=Q()(Object(q.a)({},"is-vertically-aligned-".concat(r),r));return Number.isFinite(o)&&(t={flexBasis:o+"%"}),Object($.createElement)("div",{className:a,style:t},Object($.createElement)(W.InnerBlocks.Content,null))}},kr="image",Cr="video",wr=50;function Er(e){return e?{backgroundImage:"url(".concat(e,")")}:{}}function xr(e){return 0===e||50===e?null:"has-background-dim-"+10*Math.round(e/10)}var Sr={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"}},Tr=[{attributes:Object(Z.a)({},Sr,{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,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=n===kr?Er(u):{};b||(m.backgroundColor=o),c&&!i&&(m.backgroundPosition="".concat(100*c.x,"% ").concat(100*c.y,"%"));var d=Q()(xr(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},Cr===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}))},migrate:function(e){return[Object(J.omit)(e,["title","contentAlign"]),[Object(G.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(K.__)("Write title…")})]]}},{attributes:Object(Z.a)({},Sr,{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,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=Er(n);u||(b.backgroundColor=s);var m=Q()("wp-block-cover-image",xr(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}))},migrate:function(e){return[Object(J.omit)(e,["title","contentAlign","align"]),[Object(G.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(K.__)("Write title…")})]]}},{attributes:Object(Z.a)({},Sr,{title:{type:"string",source:"html",selector:"h2"},align:{type:"string"},contentAlign:{type:"string",default:"center"}}),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=Er(n),l=Q()("wp-block-cover-image",xr(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}))},migrate:function(e){return[Object(J.omit)(e,["title","contentAlign","align"]),[Object(G.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(K.__)("Write title…")})]]}}],Nr=n(221),Rr=n.n(Nr),Ar=n(48),Br=n.n(Ar),Ir=Object($.createElement)(se.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object($.createElement)(se.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)(se.Path,{d:"M0 0h24v24H0z",fill:"none"})),Mr=["image","video"],Pr=[["core/paragraph",{align:"center",fontSize:"large",placeholder:Object(K.__)("Write title…")}]];function Lr(){return Lr.fastAverageColor||(Lr.fastAverageColor=new Rr.a),Lr.fastAverageColor}var Hr=Object(ue.withInstanceId)((function(e){var t=e.value,n=void 0===t?"":t,r=e.instanceId,o=e.onChange,a=Object($.useState)(null),c=Object(ke.a)(a,2),i=c[0],l=c[1],s=Object($.useCallback)((function(e){var t=""!==e.target.value?parseInt(e.target.value,10):void 0;(isNaN(t)||t50){if(e&&e.attributes.dimRatio>50&&e.overlayColor.color===o.color)return;return o.color?void this.changeIsDarkIfRequired(Br()(o.color).isDark()):void this.changeIsDarkIfRequired(!0)}if(!(e&&e.attributes.dimRatio<=50&&e.attributes.url===c)){var i;switch(r.backgroundType){case kr:i=this.imageRef.current;break;case Cr:i=this.videoRef.current}i&&Lr().getColorAsync(i,(function(e){t.changeIsDarkIfRequired(e.isDark)}))}}},{key:"changeIsDarkIfRequired",value:function(e){this.state.isDark!==e&&this.setState({isDark:e})}}]),t}($.Component),Fr=Object(ue.compose)([Object(be.withDispatch)((function(e){return{toggleSelection:e("core/block-editor").toggleSelection}})),Object(W.withColors)({overlayColor:"background-color"}),se.withNotices,ue.withInstanceId])(Dr);var Ur={from:[{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:Cr})}}],to:[{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.backgroundType;return!e.url||t===kr},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||t===Cr},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})}}]},qr={name:"core/cover",category:"common",attributes:{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"},minHeight:{type:"number"}}},Wr=qr.name,Gr={title:Object(K.__)("Cover"),description:Object(K.__)("Add an image or video with a text overlay — great for headers."),icon:Ir,supports:{align:!0},example:{attributes:{customOverlayColor:"#065174",dimRatio:40,url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"},innerBlocks:[{name:"core/paragraph",attributes:{customFontSize:48,content:Object(K.__)("Snow Patrol"),align:"center"}}]},transforms:Ur,save:function(e){var t=e.attributes,n=t.backgroundType,r=t.customOverlayColor,o=t.dimRatio,a=t.focalPoint,c=t.hasParallax,i=t.overlayColor,l=t.url,s=t.minHeight,u=Object(W.getColorClassName)("background-color",i),b=n===kr?Er(l):{};u||(b.backgroundColor=r),a&&!c&&(b.backgroundPosition="".concat(100*a.x,"% ").concat(100*a.y,"%")),b.minHeight=s||void 0;var m=Q()(xr(o),u,{"has-background-dim":0!==o,"has-parallax":c});return Object($.createElement)("div",{className:m,style:b},Cr===n&&l&&Object($.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:l}),Object($.createElement)("div",{className:"wp-block-cover__inner-container"},Object($.createElement)(W.InnerBlocks.Content,null)))},edit:Fr,deprecated:Tr},Kr=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)(se.Toolbar,null,n&&Object($.createElement)(se.IconButton,{className:"components-toolbar__control",label:Object(K.__)("Edit URL"),icon:"edit",onClick:i}))),r&&t&&Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,{title:Object(K.__)("Media Settings"),className:"blocks-responsive"},Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Resize for smaller devices"),checked:o,help:a,onChange:c}))))},Zr=function(){return Object($.createElement)("div",{className:"wp-block-embed is-loading"},Object($.createElement)(se.Spinner,null),Object($.createElement)("p",null,Object(K.__)("Embedding…")))},$r=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)(se.Placeholder,{icon:Object($.createElement)(W.BlockIcon,{icon:t,showColors:!0}),label:n,className:"wp-block-embed",instructions:Object(K.__)("Paste a link to the content you want to display on your site.")},Object($.createElement)("form",{onSubmit:o},Object($.createElement)("input",{type:"url",value:r||"",className:"components-placeholder__input","aria-label":n,placeholder:Object(K.__)("Enter URL to embed here…"),onChange:a}),Object($.createElement)(se.Button,{isLarge:!0,type:"submit"},Object(K._x)("Embed","button label")),c&&Object($.createElement)("p",{className:"components-placeholder__error"},Object(K.__)("Sorry, this content could not be embedded."),Object($.createElement)("br",null),Object($.createElement)(se.Button,{isLarge:!0,onClick:l},Object(K._x)("Try again","button label"))," ",Object($.createElement)(se.Button,{isLarge:!0,onClick:i},Object(K._x)("Convert to link","button label")))),Object($.createElement)("div",{className:"components-placeholder__learn-more"},Object($.createElement)(se.ExternalLink,{href:Object(K.__)("https://wordpress.org/support/article/embeds/")},Object(K.__)("Learn more about embeds"))))},Yr=n(82),Qr=window.FocusEvent,Jr=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(ae.a)(this,Object(ce.a)(t).apply(this,arguments))).checkFocus=e.checkFocus.bind(Object(ie.a)(e)),e.node=Object($.createRef)(),e}return Object(le.a)(t,e),Object(oe.a)(t,[{key:"checkFocus",value:function(){var e=document.activeElement;if("IFRAME"===e.tagName&&e.parentNode===this.node.current){var t=new Qr("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),Xr=Object(ue.withGlobalEvents)({blur:"checkFocus"})(Jr),eo=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(ae.a)(this,Object(ce.a)(t).apply(this,arguments))).hideOverlay=e.hideOverlay.bind(Object(ie.a)(e)),e.state={interactive:!1},e}return Object(le.a)(t,e),Object(oe.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(Yr.parse)(a).host.split("."),f=g.splice(g.length-2,g.length-1).join("."),v=Object(J.includes)(Ge,f),O=Object(K.sprintf)(Object(K.__)("Embedded content from %s"),f),j=$e()(c,u,"wp-block-embed__wrapper"),y="wp-embed"===c?Object($.createElement)(Xr,{html:p}):Object($.createElement)("div",{className:"wp-block-embed__wrapper"},Object($.createElement)(se.SandBox,{html:p,scripts:d,title:O,type:j,onFocus:this.hideOverlay}),!h&&Object($.createElement)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}));return Object($.createElement)("figure",{className:$e()(u,"wp-block-embed",{"is-type-video":"video"===c})},v?Object($.createElement)(se.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(K.sprintf)(Object(K.__)("Embedded content from %s can't be previewed in the editor."),f))):y,(!W.RichText.isEmpty(i)||s)&&Object($.createElement)(W.RichText,{tagName:"figcaption",placeholder:Object(K.__)("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 to(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return(function(r){function o(){var e;return Object(re.a)(this,o),(e=Object(ae.a)(this,Object(ce.a)(o).apply(this,arguments))).switchBackToURLInput=e.switchBackToURLInput.bind(Object(ie.a)(e)),e.setUrl=e.setUrl.bind(Object(ie.a)(e)),e.getMergedAttributes=e.getMergedAttributes.bind(Object(ie.a)(e)),e.setMergedAttributes=e.setMergedAttributes.bind(Object(ie.a)(e)),e.getResponsiveHelp=e.getResponsiveHelp.bind(Object(ie.a)(e)),e.toggleResponsive=e.toggleResponsive.bind(Object(ie.a)(e)),e.handleIncomingPreview=e.handleIncomingPreview.bind(Object(ie.a)(e)),e.state={editingURL:!1,url:e.props.attributes.url},e.props.preview&&e.handleIncomingPreview(),e}return Object(le.a)(o,r),Object(oe.a)(o,[{key:"handleIncomingPreview",value:function(){if(this.setMergedAttributes(),this.props.onReplace){var e=et(this.props,this.getMergedAttributes());e&&this.props.onReplace(e)}}},{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 void(this.props.fetching||this.resubmitWithoutTrailingSlash());this.handleIncomingPreview()}}},{key:"resubmitWithoutTrailingSlash",value:function(){this.setState((function(e){return{url:e.url.replace(/\/$/,"")}}),this.setUrl)}},{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:"getMergedAttributes",value:function(){var t=this.props.preview,r=this.props.attributes,o=r.className,a=r.allowResponsive;return Object(Z.a)({},this.props.attributes,nt(t,e,o,n,a))}},{key:"setMergedAttributes",value:function(){(0,this.props.setAttributes)(this.getMergedAttributes())}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"getResponsiveHelp",value:function(e){return e?Object(K.__)("This embed will preserve its aspect ratio when the browser is resized."):Object(K.__)("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:tt(o,r,n&&a)})}},{key:"render",value:function(){var r=this,o=this.state,a=o.url,c=o.editingURL,i=this.props,l=i.fetching,s=i.setAttributes,u=i.isSelected,b=i.preview,m=i.cannotEmbed,d=i.themeSupportsResponsive,h=i.tryAgain;if(l)return Object($.createElement)(Zr,null);var p=Object(K.sprintf)(Object(K.__)("%s URL"),e);if(!b||m||c)return Object($.createElement)($r,{icon:t,label:p,onSubmit:this.setUrl,value:a,cannotEmbed:m,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:h});var g=this.getMergedAttributes(),f=g.caption,v=g.type,O=g.allowResponsive,j=Q()(g.className,this.props.className);return Object($.createElement)($.Fragment,null,Object($.createElement)(Kr,{showEditButton:b&&!m,themeSupportsResponsive:d,blockSupportsResponsive:n,allowResponsive:O,getResponsiveHelp:this.getResponsiveHelp,toggleResponsive:this.toggleResponsive,switchBackToURLInput:this.switchBackToURLInput}),Object($.createElement)(eo,{preview:b,className:j,url:a,type:v,caption:f,onCaptionChange:function(e){return s({caption:e})},isSelected:u,icon:t,label:p}))}}]),o}($.Component))}var no={url:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption"},type:{type:"string"},providerNameSlug:{type:"string"},allowResponsive:{type:"boolean",default:!0}};function ro(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(K.__)("Add a block that displays content pulled from other sites, like Twitter, Instagram or YouTube."),h=to(t,r,m);return{title:t,description:d,icon:r,category:a,keywords:l,attributes:no,supports:Object(Z.a)({align:!0},u),transforms:c,edit:Object(ue.compose)(Object(be.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(be.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=$e()("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:no,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=$e()("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 oo="core/embed",ao=ro({title:Object(K._x)("Embed","block title"),description:Object(K.__)("Embed videos, images, tweets, audio, and other content from external sources."),icon:Te,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()})}}]}}),co=qe.map((function(e){return Object(Z.a)({},e,{settings:ro(e.settings)})})),io=We.map((function(e){return Object(Z.a)({},e,{settings:ro(e.settings)})})),lo=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object($.createElement)(se.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 so(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(K.__)("URL")}];return s&&(u=[{value:i,label:Object(K.__)("Media File")},{value:s,label:Object(K.__)("Attachment page")}]),Object($.createElement)($.Fragment,null,Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,{title:Object(K.__)("Text link settings")},Object($.createElement)(se.SelectControl,{label:Object(K.__)("Link To"),value:l,options:u,onChange:o}),Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Open in new tab"),checked:n,onChange:a})),Object($.createElement)(se.PanelBody,{title:Object(K.__)("Download button settings")},Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Show download button"),checked:r,onChange:c}))))}var uo=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(ae.a)(this,Object(ce.a)(t).apply(this,arguments))).onSelectFile=e.onSelectFile.bind(Object(ie.a)(e)),e.confirmCopyURL=e.confirmCopyURL.bind(Object(ie.a)(e)),e.resetCopyConfirmation=e.resetCopyConfirmation.bind(Object(ie.a)(e)),e.changeLinkDestinationOption=e.changeLinkDestinationOption.bind(Object(ie.a)(e)),e.changeOpenInNewWindow=e.changeOpenInNewWindow.bind(Object(ie.a)(e)),e.changeShowDownloadButton=e.changeShowDownloadButton.bind(Object(ie.a)(e)),e.onUploadError=e.onUploadError.bind(Object(ie.a)(e)),e.state={hasError:!1,showCopyConfirmation:!1},e}return Object(le.a)(t,e),Object(oe.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.mediaUpload,o=t.noticeOperations,a=t.setAttributes,c=n.downloadButtonText,i=n.href;Object(Ce.isBlobURL)(i)&&(r({filesList:[Object(Ce.getBlobByURL)(i)],onFileChange:function(t){var n=Object(ke.a)(t,1)[0];return e.onSelectFile(n)},onError:function(t){e.setState({hasError:!0}),o.createErrorNotice(t)}}),Object(Ce.revokeBlobURL)(i));void 0===c&&a({downloadButtonText:Object(K._x)("Download","button label")})}},{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:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{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,t=this.props,n=t.className,r=t.isSelected,o=t.attributes,a=t.setAttributes,c=t.noticeUI,i=t.media,l=o.fileName,s=o.href,u=o.textLinkHref,b=o.textLinkTarget,m=o.showDownloadButton,d=o.downloadButtonText,h=o.id,p=this.state,g=p.hasError,f=p.showCopyConfirmation,v=i&&i.link;if(!s||g)return Object($.createElement)(W.MediaPlaceholder,{icon:Object($.createElement)(W.BlockIcon,{icon:lo}),labels:{title:Object(K.__)("File"),instructions:Object(K.__)("Upload a file or pick one from your media library.")},onSelect:this.onSelectFile,notices:c,onError:this.onUploadError,accept:"*"});var O=Q()(n,{"is-transient":Object(Ce.isBlobURL)(s)});return Object($.createElement)($.Fragment,null,Object($.createElement)(so,Object(ne.a)({hrefs:{href:s,textLinkHref:u,attachmentPage:v}},{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)(se.Toolbar,null,Object($.createElement)(W.MediaUpload,{onSelect:this.onSelectFile,value:h,render:function(e){var t=e.open;return Object($.createElement)(se.IconButton,{className:"components-toolbar__control",label:Object(K.__)("Edit file"),onClick:t,icon:"edit"})}})))),Object($.createElement)(se.Animate,{type:Object(Ce.isBlobURL)(s)?"loading":null},(function(t){var n=t.className;return Object($.createElement)("div",{className:Q()(O,n)},Object($.createElement)("div",{className:"wp-block-file__content-wrapper"},Object($.createElement)(W.RichText,{wrapperClassName:"wp-block-file__textlink",tagName:"div",value:l,placeholder:Object(K.__)("Write file name…"),withoutInteractiveFormatting:!0,onChange:function(e){return a({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,withoutInteractiveFormatting:!0,placeholder:Object(K.__)("Add text…"),onChange:function(e){return a({downloadButtonText:e})}}))),r&&Object($.createElement)(se.ClipboardButton,{isDefault:!0,text:s,className:"wp-block-file__copy-url-button",onCopy:e.confirmCopyURL,onFinishCopy:e.resetCopyConfirmation,disabled:Object(Ce.isBlobURL)(s)},f?Object(K.__)("Copied!"):Object(K.__)("Copy URL")))})))}}]),t}($.Component),bo=Object(ue.compose)([Object(be.withSelect)((function(e,t){var n=e("core").getMedia,r=(0,e("core/block-editor").getSettings)().__experimentalMediaUpload,o=t.attributes.id;return{media:void 0===o?void 0:n(o),mediaUpload:r}})),se.withNotices])(uo);var mo={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(Ce.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(be.select)("core").getMedia)(t);return!!n&&Object(J.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(be.select)("core").getMedia)(t);return!!n&&Object(J.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(be.select)("core").getMedia)(t);return!!n&&Object(J.includes)(n.mime_type,"image")},transform:function(e){return Object(G.createBlock)("core/image",{url:e.href,caption:e.fileName,id:e.id})}}]},ho={name:"core/file",category:"common",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]"}}},po=ho.name,go={title:Object(K.__)("File"),description:Object(K.__)("Add a link to a downloadable file."),icon:lo,keywords:[Object(K.__)("document"),Object(K.__)("pdf")],supports:{align:!0},transforms:mo,edit:bo,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})))}},fo=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(ae.a)(this,Object(ce.a)(t).apply(this,arguments))).state={isPreview:!1,styles:[]},e.switchToHTML=e.switchToHTML.bind(Object(ie.a)(e)),e.switchToPreview=e.switchToPreview.bind(Object(ie.a)(e)),e}return Object(le.a)(t,e),Object(oe.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(K.__)("Preview"))))),Object($.createElement)(se.Disabled.Consumer,null,(function(e){return o||e?Object($.createElement)(se.SandBox,{html:t.content,styles:a}):Object($.createElement)(W.PlainText,{value:t.content,onChange:function(e){return n({content:e})},placeholder:Object(K.__)("Write HTML…"),"aria-label":Object(K.__)("HTML")})})))}}]),t}($.Component),vo=Object(be.withSelect)((function(e){return{styles:(0,e("core/block-editor").getSettings)().styles}}))(fo),Oo=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.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"}));var jo={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)()}}}}}]},yo={name:"core/html",category:"formatting",attributes:{content:{type:"string",source:"html"}}},_o=yo.name,ko={title:Object(K.__)("Custom HTML"),description:Object(K.__)("Add custom HTML code and preview it as you edit."),icon:Oo,keywords:[Object(K.__)("embed")],example:{attributes:{content:""+Object(K.__)("Welcome to the wonderful world of blocks…")+""}},supports:{customClassName:!1,className:!1,html:!1},transforms:jo,edit:vo,save:function(e){var t=e.attributes;return Object($.createElement)($.RawHTML,null,t.content)}},Co=[{attributes:{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}},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=Q()((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]||J.noop)()),Object($.createElement)("div",{className:"wp-block-media-text__content"},Object($.createElement)(W.InnerBlocks.Content,null)))}}],wo=Object($.createElement)(se.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object($.createElement)(se.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)(se.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)(se.Path,{d:"M5 19h8l-1.59-2H9.24l-.84 1.1L7 16.3 5 19z"})),Eo=["image","video"];function xo(e,t){return e?{backgroundImage:"url(".concat(e,")"),backgroundPosition:t?"".concat(100*t.x,"% ").concat(100*t.y,"%"):"50% 50%"}:{}}var So=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(ae.a)(this,Object(ce.a)(t).apply(this,arguments))).onUploadError=e.onUploadError.bind(Object(ie.a)(e)),e}return Object(le.a)(t,e),Object(oe.a)(t,[{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"renderToolbarEditButton",value:function(){var e=this.props,t=e.mediaId,n=e.onSelectMedia;return Object($.createElement)(W.BlockControls,null,Object($.createElement)(se.Toolbar,null,Object($.createElement)(W.MediaUpload,{onSelect:n,allowedTypes:Eo,value:t,render:function(e){var t=e.open;return Object($.createElement)(se.IconButton,{className:"components-toolbar__control",label:Object(K.__)("Edit media"),icon:"edit",onClick:t})}})))}},{key:"renderImage",value:function(){var e=this.props,t=e.mediaAlt,n=e.mediaUrl,r=e.className,o=e.imageFill,a=e.focalPoint,c=o?xo(n,a):{};return Object($.createElement)($.Fragment,null,this.renderToolbarEditButton(),Object($.createElement)("figure",{className:r,style:c},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,r=e.noticeUI;return Object($.createElement)(W.MediaPlaceholder,{icon:Object($.createElement)(W.BlockIcon,{icon:wo}),labels:{title:Object(K.__)("Media area")},className:n,onSelect:t,accept:"image/*,video/*",allowedTypes:Eo,notices:r,onError:this.onUploadError})}},{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,i=e.toggleSelection;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($.createElement)(se.ResizableBox,{className:"editor-media-container__resizer",size:{width:o+"%"},minWidth:"10%",maxWidth:"100%",enable:l,onResizeStart:function(){i(!1)},onResize:function(e,t,n){c(parseInt(n.style.width))},onResizeStop:function(e,t,n){i(!0),a(parseInt(n.style.width))},axis:"x"},s)}return this.renderPlaceholder()}}]),t}($.Component),To=Object(ue.compose)([Object(be.withDispatch)((function(e){return{toggleSelection:e("core/block-editor").toggleSelection}})),se.withNotices])(So),No=[["core/paragraph",{fontSize:"large",placeholder:Object(K._x)("Content…","content placeholder")}]],Ro=function(e){return Math.max(15,Math.min(e,85))},Ao=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(ae.a)(this,Object(ce.a)(t).apply(this,arguments))).onSelectMedia=e.onSelectMedia.bind(Object(ie.a)(e)),e.onWidthChange=e.onWidthChange.bind(Object(ie.a)(e)),e.commitWidthChange=e.commitWidthChange.bind(Object(ie.a)(e)),e.state={mediaWidth:null},e}return Object(le.a)(t,e),Object(oe.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(J.get)(e,["sizes","large","url"])||Object(J.get)(e,["media_details","sizes","large","source_url"])),r({mediaAlt:e.alt,mediaId:e.id,mediaType:t,mediaUrl:n||e.url,imageFill:void 0,focalPoint:void 0})}},{key:"onWidthChange",value:function(e){this.setState({mediaWidth:Ro(e)})}},{key:"commitWidthChange",value:function(e){(0,this.props.setAttributes)({mediaWidth:Ro(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,i=e.imageFill,l=e.focalPoint;return Object($.createElement)(To,Object(ne.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,imageFill:i,focalPoint:l}))}},{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=n.verticalAlignment,h=n.mediaUrl,p=n.imageFill,g=n.focalPoint,f=this.state.mediaWidth,v=Q()(r,(e={"has-media-on-the-right":"right"===u,"is-selected":a,"has-background":o.class||o.color},Object(q.a)(e,o.class,o.class),Object(q.a)(e,"is-stacked-on-mobile",l),Object(q.a)(e,"is-vertically-aligned-".concat(d),d),Object(q.a)(e,"is-image-fill",p),e)),O="".concat(f||m,"%"),j="right"===u?"1fr ".concat(O):"".concat(O," 1fr"),y={gridTemplateColumns:j,msGridColumns:j,backgroundColor:o.color},_=[{value:o.color,onChange:i,label:Object(K.__)("Background Color")}],k=[{icon:"align-pull-left",title:Object(K.__)("Show media on left"),isActive:"left"===u,onClick:function(){return c({mediaPosition:"left"})}},{icon:"align-pull-right",title:Object(K.__)("Show media on right"),isActive:"right"===u,onClick:function(){return c({mediaPosition:"right"})}}],C=Object($.createElement)(se.PanelBody,{title:Object(K.__)("Media & Text Settings")},Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Stack on mobile"),checked:l,onChange:function(){return c({isStackedOnMobile:!l})}}),"image"===b&&Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Crop image to fill entire column"),checked:p,onChange:function(){return c({imageFill:!p})}}),p&&Object($.createElement)(se.FocalPointPicker,{label:Object(K.__)("Focal Point Picker"),url:h,value:g,onChange:function(e){return c({focalPoint:e})}}),"image"===b&&Object($.createElement)(se.TextareaControl,{label:Object(K.__)("Alt Text (Alternative Text)"),value:s,onChange:function(e){c({mediaAlt:e})},help:Object($.createElement)($.Fragment,null,Object($.createElement)(se.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},Object(K.__)("Describe the purpose of the image")),Object(K.__)("Leave empty if the image is purely decorative."))}));return Object($.createElement)($.Fragment,null,Object($.createElement)(W.InspectorControls,null,C,Object($.createElement)(W.PanelColorSettings,{title:Object(K.__)("Color Settings"),initialOpen:!1,colorSettings:_})),Object($.createElement)(W.BlockControls,null,Object($.createElement)(se.Toolbar,{controls:k}),Object($.createElement)(W.BlockVerticalAlignmentToolbar,{onChange:function(e){c({verticalAlignment:e})},value:d})),Object($.createElement)("div",{className:v,style:y},this.renderMediaArea(),Object($.createElement)(W.InnerBlocks,{template:No,templateInsertUpdatesSelection:!1})))}}]),t}($.Component),Bo=Object(W.withColors)("backgroundColor")(Ao),Io=Object($.createElement)(se.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object($.createElement)(se.Path,{d:"M13 17h8v-2h-8v2zM3 19h8V5H3v14zM13 9h8V7h-8v2zm0 4h8v-2h-8v2z"})),Mo=50;var Po={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})}}]},Lo={name:"core/media-text",category:"layout",attributes:{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},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}}},Ho=Lo.name,zo={title:Object(K.__)("Media & Text"),description:Object(K.__)("Set media and words side-by-side for a richer layout."),icon:Io,keywords:[Object(K.__)("image"),Object(K.__)("video")],supports:{align:["wide","full"],html:!1},example:{attributes:{mediaType:"image",mediaUrl:"https://s.w.org/images/core/5.3/Biologia_Centrali-Americana_-_Cantorchilus_semibadius_1902.jpg"},innerBlocks:[{name:"core/paragraph",attributes:{content:Object(K.__)("The wren
    Earns his living
    Noiselessly.")}},{name:"core/paragraph",attributes:{content:Object(K.__)("— Kobayashi Issa (一茶)")}}]},transforms:Po,edit:Bo,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=r.verticalAlignment,h=r.imageFill,p=r.focalPoint,g={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})}},f=Object(W.getColorClassName)("background-color",o),v=Q()((t={"has-media-on-the-right":"right"===l,"has-background":f||a},Object(q.a)(t,f,f),Object(q.a)(t,"is-stacked-on-mobile",c),Object(q.a)(t,"is-vertically-aligned-".concat(d),d),Object(q.a)(t,"is-image-fill",h),t)),O=h?xo(u,p):{};b!==Mo&&(n="right"===l?"auto ".concat(b,"%"):"".concat(b,"% auto"));var j={backgroundColor:f?void 0:a,gridTemplateColumns:n};return Object($.createElement)("div",{className:v,style:j},Object($.createElement)("figure",{className:"wp-block-media-text__media",style:O},(g[s]||J.noop)()),Object($.createElement)("div",{className:"wp-block-media-text__content"},Object($.createElement)(W.InnerBlocks.Content,null)))},deprecated:Co},Vo=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(ae.a)(this,Object(ce.a)(t).apply(this,arguments))).setCommentsToShow=e.setCommentsToShow.bind(Object(ie.a)(e)),e.toggleDisplayAvatar=e.createToggleAttribute("displayAvatar"),e.toggleDisplayDate=e.createToggleAttribute("displayDate"),e.toggleDisplayExcerpt=e.createToggleAttribute("displayExcerpt"),e}return Object(le.a)(t,e),Object(oe.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:"setCommentsToShow",value:function(e){this.props.setAttributes({commentsToShow:e})}},{key:"render",value:function(){var e=this.props.attributes,t=e.commentsToShow,n=e.displayAvatar,r=e.displayDate,o=e.displayExcerpt;return Object($.createElement)($.Fragment,null,Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,{title:Object(K.__)("Latest Comments Settings")},Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Display Avatar"),checked:n,onChange:this.toggleDisplayAvatar}),Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Display Date"),checked:r,onChange:this.toggleDisplayDate}),Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Display Excerpt"),checked:o,onChange:this.toggleDisplayExcerpt}),Object($.createElement)(se.RangeControl,{label:Object(K.__)("Number of Comments"),value:t,onChange:this.setCommentsToShow,min:1,max:100,required:!0}))),Object($.createElement)(se.Disabled,null,Object($.createElement)(rn.a,{block:"core/latest-comments",attributes:this.props.attributes})))}}]),t}($.Component),Do=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object($.createElement)(se.G,null,Object($.createElement)(se.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"}))),Fo="core/latest-comments",Uo={title:Object(K.__)("Latest Comments"),description:Object(K.__)("Display a list of your most recent comments."),icon:Do,category:"widgets",keywords:[Object(K.__)("recent comments")],supports:{align:!0,html:!1},edit:Vo},qo=n(34),Wo=n.n(qo),Go=n(53),Ko={per_page:-1},Zo=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(ae.a)(this,Object(ce.a)(t).apply(this,arguments))).state={categoriesList:[]},e}return Object(le.a)(t,e),Object(oe.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.isStillMounted=!0,this.fetchRequest=Wo()({path:Object(Ee.addQueryArgs)("/wp/v2/categories",Ko)}).then((function(t){e.isStillMounted&&e.setState({categoriesList:t})})).catch((function(){e.isStillMounted&&e.setState({categoriesList:[]})}))}},{key:"componentWillUnmount",value:function(){this.isStillMounted=!1}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=e.latestPosts,o=this.state.categoriesList,a=t.displayPostContentRadio,c=t.displayPostContent,i=t.displayPostDate,l=t.postLayout,s=t.columns,u=t.order,b=t.orderBy,m=t.categories,d=t.postsToShow,h=t.excerptLength,p=Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,{title:Object(K.__)("Post Content Settings")},Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Post Content"),checked:c,onChange:function(e){return n({displayPostContent:e})}}),c&&Object($.createElement)(se.RadioControl,{label:"Show:",selected:a,options:[{label:"Excerpt",value:"excerpt"},{label:"Full Post",value:"full_post"}],onChange:function(e){return n({displayPostContentRadio:e})}}),c&&"excerpt"===a&&Object($.createElement)(se.RangeControl,{label:Object(K.__)("Max number of words in excerpt"),value:h,onChange:function(e){return n({excerptLength:e})},min:10,max:100})),Object($.createElement)(se.PanelBody,{title:Object(K.__)("Post Meta Settings")},Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Display post date"),checked:i,onChange:function(e){return n({displayPostDate:e})}})),Object($.createElement)(se.PanelBody,{title:Object(K.__)("Sorting and Filtering")},Object($.createElement)(se.QueryControls,Object(ne.a)({order:u,orderBy:b},{numberOfItems:d,categoriesList:o,selectedCategoryId:m,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})}})),"grid"===l&&Object($.createElement)(se.RangeControl,{label:Object(K.__)("Columns"),value:s,onChange:function(e){return n({columns:e})},min:2,max:g?Math.min(6,r.length):6,required:!0}))),g=Array.isArray(r)&&r.length;if(!g)return Object($.createElement)($.Fragment,null,p,Object($.createElement)(se.Placeholder,{icon:"admin-post",label:Object(K.__)("Latest Posts")},Array.isArray(r)?Object(K.__)("No posts found."):Object($.createElement)(se.Spinner,null)));var f=r.length>d?r.slice(0,d):r,v=[{icon:"list-view",title:Object(K.__)("List view"),onClick:function(){return n({postLayout:"list"})},isActive:"list"===l},{icon:"grid-view",title:Object(K.__)("Grid view"),onClick:function(){return n({postLayout:"grid"})},isActive:"grid"===l}],O=Object(Go.__experimentalGetSettings)().formats.date;return Object($.createElement)($.Fragment,null,p,Object($.createElement)(W.BlockControls,null,Object($.createElement)(se.Toolbar,{controls:v})),Object($.createElement)("ul",{className:Q()(this.props.className,Object(q.a)({"wp-block-latest-posts__list":!0,"is-grid":"grid"===l,"has-dates":i},"columns-".concat(s),"grid"===l))},f.map((function(e,t){var n=e.title.rendered.trim(),r=e.excerpt.rendered;""===e.excerpt.raw&&(r=e.content.raw);var o=document.createElement("div");return o.innerHTML=r,r=o.textContent||o.innerText||"",Object($.createElement)("li",{key:t},Object($.createElement)("a",{href:e.link,target:"_blank",rel:"noreferrer noopener"},n?Object($.createElement)($.RawHTML,null,n):Object(K.__)("(no title)")),i&&e.date_gmt&&Object($.createElement)("time",{dateTime:Object(Go.format)("c",e.date_gmt),className:"wp-block-latest-posts__post-date"},Object(Go.dateI18n)(O,e.date_gmt)),c&&"excerpt"===a&&Object($.createElement)("div",{className:"wp-block-latest-posts__post-excerpt"},Object($.createElement)($.RawHTML,{key:"html"},h'+Object(K.__)("Read more")+"":r.trim().split(" ",h).join(" "))),c&&"full_post"===a&&Object($.createElement)("div",{className:"wp-block-latest-posts__post-full-content"},Object($.createElement)($.RawHTML,{key:"html"},e.content.raw.trim())))}))))}}]),t}($.Component),$o=Object(be.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(J.pickBy)({categories:c,order:o,orderby:a,per_page:r},(function(e){return!Object(J.isUndefined)(e)})))}}))(Zo),Yo=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object($.createElement)(se.Rect,{x:"11",y:"7",width:"6",height:"2"}),Object($.createElement)(se.Rect,{x:"11",y:"11",width:"6",height:"2"}),Object($.createElement)(se.Rect,{x:"11",y:"15",width:"6",height:"2"}),Object($.createElement)(se.Rect,{x:"7",y:"7",width:"2",height:"2"}),Object($.createElement)(se.Rect,{x:"7",y:"11",width:"2",height:"2"}),Object($.createElement)(se.Rect,{x:"7",y:"15",width:"2",height:"2"}),Object($.createElement)(se.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"})),Qo="core/latest-posts",Jo={title:Object(K.__)("Latest Posts"),description:Object(K.__)("Display a list of your most recent posts."),icon:Yo,category:"widgets",keywords:[Object(K.__)("recent posts")],supports:{align:!0,html:!1},edit:$o},Xo=function(e){var t=e.setAttributes,n=e.reversed,r=e.start;return Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,{title:Object(K.__)("Ordered List Settings")},Object($.createElement)(se.TextControl,{label:Object(K.__)("Start Value"),type:"number",onChange:function(e){var n=parseInt(e,10);t({start:isNaN(n)?void 0:n})},value:Number.isInteger(r)?r.toString(10):"",step:"1"}),Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Reverse List Numbering"),checked:n||!1,onChange:function(e){t({reversed:e||void 0})}})))};var ea=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.G,null,Object($.createElement)(se.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"})));var ta=Object(Z.a)({},Object(G.getPhrasingContentSchema)(),{ul:{},ol:{attributes:["type"]}});["ul","ol"].forEach((function(e){ta[e].children={li:{children:ta}}}));var na={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:function(e){return Object(G.createBlock)("core/list",{values:Object(It.toHTMLString)({value:Object(It.join)(e.map((function(t){var n=t.content,r=Object(It.create)({html:n});return e.length>1?r:Object(It.replace)(r,/\n/g,It.__UNSTABLE_LINE_SEPARATOR)})),It.__UNSTABLE_LINE_SEPARATOR),multilineTag:"li"})})}},{type:"block",blocks:["core/quote"],transform:function(e){var t=e.value;return Object(G.createBlock)("core/list",{values:Object(It.toHTMLString)({value:Object(It.create)({html:t,multilineTag:"p"}),multilineTag:"li"})})}},{type:"raw",selector:"ol,ul",schema:{ol:ta.ol,ul:ta.ul},transform:function(e){return Object(G.createBlock)("core/list",Object(Z.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(It.split)(Object(It.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),It.__UNSTABLE_LINE_SEPARATOR).map((function(e){return Object(G.createBlock)("core/paragraph",{content:Object(It.toHTMLString)({value:e})})}))}},{type:"block",blocks:["core/quote"],transform:function(e){var t=e.values;return Object(G.createBlock)("core/quote",{value:Object(It.toHTMLString)({value:Object(It.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),multilineTag:"p"})})}}]},ra={name:"core/list",category:"common",attributes:{ordered:{type:"boolean",default:!1},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:""},start:{type:"number"},reversed:{type:"boolean"}}},oa=ra.name,aa={title:Object(K.__)("List"),description:Object(K.__)("Create a bulleted or numbered list."),icon:ea,keywords:[Object(K.__)("bullet list"),Object(K.__)("ordered list"),Object(K.__)("numbered list")],supports:{className:!1},example:{attributes:{values:"
  • Alice.
  • The White Rabbit.
  • The Cheshire Cat.
  • The Mad Hatter.
  • The Queen of Hearts.
  • "}},transforms:na,merge:function(e,t){var n=t.values;return n&&"
  • "!==n?Object(Z.a)({},e,{values:e.values+n}):e},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.mergeBlocks,o=e.onReplace,a=e.className,c=t.ordered,i=t.values,l=t.reversed,s=t.start,u=c?"ol":"ul";return Object($.createElement)($.Fragment,null,Object($.createElement)(W.RichText,{identifier:"values",multiline:"li",tagName:u,onChange:function(e){return n({values:e})},value:i,wrapperClassName:"block-library-list",className:a,placeholder:Object(K.__)("Write list…"),onMerge:r,onSplit:function(e){return Object(G.createBlock)(oa,Object(Z.a)({},t,{values:e}))},__unstableOnSplitMiddle:function(){return Object(G.createBlock)("core/paragraph")},onReplace:o,onRemove:function(){return o([])},start:s,reversed:l},(function(e){var t=e.value,r=e.onChange;return Object($.createElement)($.Fragment,null,Object($.createElement)(W.RichTextShortcut,{type:"primary",character:"[",onUse:function(){r(Object(It.__unstableOutdentListItems)(t))}}),Object($.createElement)(W.RichTextShortcut,{type:"primary",character:"]",onUse:function(){r(Object(It.__unstableIndentListItems)(t,{type:u}))}}),Object($.createElement)(W.RichTextShortcut,{type:"primary",character:"m",onUse:function(){r(Object(It.__unstableIndentListItems)(t,{type:u}))}}),Object($.createElement)(W.RichTextShortcut,{type:"primaryShift",character:"m",onUse:function(){r(Object(It.__unstableOutdentListItems)(t))}}),Object($.createElement)(W.BlockControls,null,Object($.createElement)(se.Toolbar,{controls:[{icon:"editor-ul",title:Object(K.__)("Convert to unordered list"),isActive:Object(It.__unstableIsActiveListType)(t,"ul",u),onClick:function(){r(Object(It.__unstableChangeListType)(t,{type:"ul"})),Object(It.__unstableIsListRootSelected)(t)&&n({ordered:!1})}},{icon:"editor-ol",title:Object(K.__)("Convert to ordered list"),isActive:Object(It.__unstableIsActiveListType)(t,"ol",u),onClick:function(){r(Object(It.__unstableChangeListType)(t,{type:"ol"})),Object(It.__unstableIsListRootSelected)(t)&&n({ordered:!0})}},{icon:"editor-outdent",title:Object(K.__)("Outdent list item"),shortcut:Object(K._x)("Backspace","keyboard key"),onClick:function(){r(Object(It.__unstableOutdentListItems)(t))}},{icon:"editor-indent",title:Object(K.__)("Indent list item"),shortcut:Object(K._x)("Space","keyboard key"),onClick:function(){r(Object(It.__unstableIndentListItems)(t,{type:u}))}}]})))})),c&&Object($.createElement)(Xo,{setAttributes:n,ordered:c,reversed:l,start:s}))},save:function(e){var t=e.attributes,n=t.ordered,r=t.values,o=t.reversed,a=t.start,c=n?"ol":"ul";return Object($.createElement)(W.RichText.Content,{tagName:c,value:r,reversed:o,start:a,multiline:"li"})}};var ca=Object(be.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(K.sprintf)(Object(K.__)('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)(se.Button,{key:"convert",onClick:r,isLarge:!0,isPrimary:!0},Object(K.__)("Keep as HTML")))):t=Object(K.sprintf)(Object(K.__)('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))}));var ia={name:"core/missing",category:"common",attributes:{originalName:{type:"string"},originalUndelimitedContent:{type:"string"},originalContent:{type:"string",source:"html"}}},la=ia.name,sa={name:la,title:Object(K.__)("Unrecognized Block"),description:Object(K.__)("Your site doesn’t include support for this block."),supports:{className:!1,customClassName:!1,inserter:!1,html:!1,reusable:!1},edit:ca,save:function(e){var t=e.attributes;return Object($.createElement)($.RawHTML,null,t.originalContent)}},ua=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(ae.a)(this,Object(ce.a)(t).apply(this,arguments))).onChangeInput=e.onChangeInput.bind(Object(ie.a)(e)),e.onKeyDown=e.onKeyDown.bind(Object(ie.a)(e)),e.state={defaultText:Object(K.__)("Read more")},e}return Object(le.a)(t,e),Object(oe.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===we.ENTER&&n([Object(G.createBlock)(Object(G.getDefaultBlockName)())])}},{key:"getHideExcerptHelp",value:function(e){return e?Object(K.__)("The excerpt is hidden."):Object(K.__)("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)(se.PanelBody,null,Object($.createElement)(se.ToggleControl,{label:Object(K.__)("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),ba=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object($.createElement)(se.G,null,Object($.createElement)(se.Path,{d:"M2 9v2h19V9H2zm0 6h5v-2H2v2zm7 0h5v-2H9v2zm7 0h5v-2h-5v2z"})));var ma={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)}}]},da={name:"core/more",category:"layout",attributes:{customText:{type:"string"},noTeaser:{type:"boolean",default:!1}}},ha=da.name,pa={title:Object(K._x)("More","block name"),description:Object(K.__)("Content before this block will be shown in the excerpt on your archives page."),icon:ba,supports:{customClassName:!1,className:!1,html:!1,multiple:!1},example:{},transforms:ma,edit:ua,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(J.compact)([o,a]).join("\n"))}};var ga=Object($.createElement)(se.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24px",height:"24px",viewBox:"0 0 24 24"},Object($.createElement)(se.Path,{d:"M0 0h24v24H0z",fill:"none"}),Object($.createElement)(se.Path,{d:"M9 11h6v2H9zM2 11h5v2H2zM17 11h5v2h-5zM6 4h7v5h7V8l-6-6H6a2 2 0 0 0-2 2v5h2zM18 20H6v-5H4v5a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5h-2z"}));var fa={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",{})}}]},va={name:"core/nextpage",category:"layout"},Oa=va.name,ja={title:Object(K.__)("Page Break"),description:Object(K.__)("Separate your content into a multi-page experience."),icon:ga,keywords:[Object(K.__)("next page"),Object(K.__)("pagination")],supports:{customClassName:!1,className:!1,html:!1},example:{},transforms:fa,edit:function(){return Object($.createElement)("div",{className:"wp-block-nextpage"},Object($.createElement)("span",null,Object(K.__)("Page break")))},save:function(){return Object($.createElement)($.RawHTML,null,"\x3c!--nextpage--\x3e")}};var ya=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object($.createElement)(se.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)(se.Rect,{x:"6",y:"10",width:"2",height:"2"}),Object($.createElement)(se.Rect,{x:"6",y:"14",width:"8",height:"2"}),Object($.createElement)(se.Rect,{x:"16",y:"14",width:"2",height:"2"}),Object($.createElement)(se.Rect,{x:"10",y:"10",width:"8",height:"2"}));var _a={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)}}]},ka={name:"core/preformatted",category:"formatting",attributes:{content:{type:"string",source:"html",selector:"pre",default:""}}},Ca=ka.name,wa={title:Object(K.__)("Preformatted"),description:Object(K.__)("Add text that respects your spacing and tabs, and also allows styling."),icon:ya,example:{attributes:{content:Object(K.__)("EXT. XANADU - FAINT DAWN - 1940 (MINIATURE)")+"\n"+Object(K.__)("Window, very small in the distance, illuminated.")+"\n"+Object(K.__)("All around this is an almost totally black screen. Now, as the camera moves slowly towards the window which is almost a postage stamp in the frame, other forms appear;")}},transforms:_a,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.replace(/
    /g,"\n")})},placeholder:Object(K.__)("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}}},Ea="is-style-".concat("solid-color"),xa={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"}};function Sa(e){if(e){var t=e.match(/border-color:([^;]+)[;]?/);return t&&t[1]?t[1]:void 0}}var Ta=[{attributes:Object(Z.a)({},xa,{figureStyle:{source:"attribute",selector:"figure",attribute:"style"}}),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,b=r.figureStyle;if(Object(J.includes)(u,Ea)){var m=Object(W.getColorClassName)("background-color",o);t=Q()(Object(q.a)({"has-background":m||a},m,m)),n={backgroundColor:m?void 0:a}}else if(a)n={borderColor:a};else if(o){n={borderColor:Sa(b)}}var d=Object(W.getColorClassName)("color",c),h=(c||i)&&Q()("has-text-color",Object(q.a)({},d,d)),p=d?void 0:{color:i};return Object($.createElement)("figure",{className:t,style:n},Object($.createElement)("blockquote",{className:h,style:p},Object($.createElement)(W.RichText.Content,{value:l,multiline:!0}),!W.RichText.isEmpty(s)&&Object($.createElement)(W.RichText.Content,{tagName:"cite",value:s})))},migrate:function(e){var t=e.className,n=e.figureStyle,r=e.mainColor,o=Object(Bt.a)(e,["className","figureStyle","mainColor"]);if(!Object(J.includes)(t,Ea)&&r&&n){var a=Sa(n);if(a)return Object(Z.a)({},o,{className:t,customMainColor:a})}return Object(Z.a)({className:t,mainColor:r},o)}},{attributes:xa,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(J.includes)(u,Ea))(t=Object(W.getColorClassName)("background-color",o))||(n={backgroundColor:a});else if(a)n={borderColor:a};else if(o){var b=Object(J.get)(Object(be.select)("core/block-editor").getSettings(),["colors"],[]);n={borderColor:Object(W.getColorObjectByAttributeValues)(b,o).color}}var m=Object(W.getColorClassName)("color",c),d=c||i?Q()("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})))}},{attributes:Object(Z.a)({},xa),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(Z.a)({},xa,{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}))}}],Na=function(e){function t(e){var n;return Object(re.a)(this,t),(n=Object(ae.a)(this,Object(ce.a)(t).call(this,e))).wasTextColorAutomaticallyComputed=!1,n.pullQuoteMainColorSetter=n.pullQuoteMainColorSetter.bind(Object(ie.a)(n)),n.pullQuoteTextColorSetter=n.pullQuoteTextColorSetter.bind(Object(ie.a)(n)),n}return Object(le.a)(t,e),Object(oe.a)(t,[{key:"pullQuoteMainColorSetter",value:function(e){var t=this.props,n=t.colorUtils,r=t.textColor,o=t.setAttributes,a=t.setTextColor,c=t.setMainColor,i=t.className,l=Object(J.includes)(i,Ea),s=!r.color||this.wasTextColorAutomaticallyComputed,u=l&&s&&e;l?c(e):o({customMainColor:e}),u&&(this.wasTextColorAutomaticallyComputed=!0,a(n.getMostReadableColor(e)))}},{key:"pullQuoteTextColorSetter",value:function(e){(0,this.props.setTextColor)(e),this.wasTextColorAutomaticallyComputed=!1}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.attributes,r=t.className,o=t.mainColor,a=t.setAttributes;n.mainColor&&!Object(J.includes)(r,Ea)&&Object(J.includes)(e.className,Ea)&&a({mainColor:void 0,customMainColor:o.color})}},{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(J.includes)(c,Ea),u=s?{backgroundColor:n.color}:{borderColor:n.color},b=Q()(c,Object(q.a)({"has-background":s&&n.color},n.class,s&&n.class)),m={color:r.color},d=r.color&&Q()("has-text-color",Object(q.a)({},r.class,r.class));return Object($.createElement)($.Fragment,null,Object($.createElement)("figure",{style:u,className:b},Object($.createElement)("blockquote",{style:m,className:d},Object($.createElement)(W.RichText,{multiline:!0,value:i,onChange:function(e){return o({value:e})},placeholder:Object(K.__)("Write quote…"),wrapperClassName:"block-library-pullquote__content"}),(!W.RichText.isEmpty(l)||a)&&Object($.createElement)(W.RichText,{value:l,placeholder:Object(K.__)("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(K.__)("Color Settings"),colorSettings:[{value:n.color,onChange:this.pullQuoteMainColorSetter,label:Object(K.__)("Main Color")},{value:r.color,onChange:this.pullQuoteTextColorSetter,label:Object(K.__)("Text Color")}]},s&&Object($.createElement)(W.ContrastChecker,Object(ne.a)({textColor:r.color,backgroundColor:n.color},{isLargeText:!1})))))}}]),t}($.Component),Ra=Object(W.withColors)({mainColor:"background-color",textColor:"color"})(Na),Aa=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object($.createElement)(se.Polygon,{points:"21 18 2 18 2 20 21 20"}),Object($.createElement)(se.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)(se.Polygon,{points:"21 4 2 4 2 6 21 6"}));var Ba={name:"core/pullquote",category:"formatting",attributes:{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"}}},Ia=Ba.name,Ma={title:Object(K.__)("Pullquote"),description:Object(K.__)("Give special visual emphasis to a quote from your text."),icon:Aa,example:{attributes:{value:"

    "+Object(K.__)("One of the hardest things to do in technology is disrupt yourself.")+"

    ",citation:"Matt Mullenweg"}},styles:[{name:"default",label:Object(K._x)("Default","block style"),isDefault:!0},{name:"solid-color",label:Object(K.__)("Solid Color")}],supports:{align:["left","right","wide","full"]},edit:Ra,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(J.includes)(u,Ea)){var b=Object(W.getColorClassName)("background-color",o);t=Q()(Object(q.a)({"has-background":b||a},b,b)),n={backgroundColor:b?void 0:a}}else a&&(n={borderColor:a});var m=Object(W.getColorClassName)("color",c),d=(c||i)&&Q()("has-text-color",Object(q.a)({},m,m)),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:Ta},Pa=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(ae.a)(this,Object(ce.a)(t).apply(this,arguments))).titleField=Object($.createRef)(),e.editButton=Object($.createRef)(),e.handleFormSubmit=e.handleFormSubmit.bind(Object(ie.a)(e)),e.handleTitleChange=e.handleTitleChange.bind(Object(ie.a)(e)),e.handleTitleKeyDown=e.handleTitleKeyDown.bind(Object(ie.a)(e)),e}return Object(le.a)(t,e),Object(oe.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===we.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)(se.Button,{ref:this.editButton,isLarge:!0,className:"reusable-block-edit-panel__button",disabled:o,onClick:a},Object(K.__)("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(K.__)("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)(se.Button,{type:"submit",isLarge:!0,isBusy:r,disabled:!n||r,className:"reusable-block-edit-panel__button"},Object(K.__)("Save"))))}}]),t}($.Component),La=Object(ue.withInstanceId)(Pa);var Ha=function(e){var t=e.title,n=Object(K.sprintf)(Object(K.__)("Reusable Block: %s"),t);return Object($.createElement)(se.Tooltip,{text:n},Object($.createElement)("span",{className:"reusable-block-indicator"},Object($.createElement)(se.Dashicon,{icon:"controls-repeat"})))},za=function(e){function t(e){var n,r=e.reusableBlock;return Object(re.a)(this,t),(n=Object(ae.a)(this,Object(ce.a)(t).apply(this,arguments))).startEditing=n.startEditing.bind(Object(ie.a)(n)),n.stopEditing=n.stopEditing.bind(Object(ie.a)(n)),n.setBlocks=n.setBlocks.bind(Object(ie.a)(n)),n.setTitle=n.setTitle.bind(Object(ie.a)(n)),n.save=n.save.bind(Object(ie.a)(n)),n.state=r?{isEditing:r.isTemporary,title:r.title,blocks:Object(G.parse)(r.content)}:{isEditing:!1,title:null,blocks:[]},n}return Object(le.a)(t,e),Object(oe.a)(t,[{key:"componentDidMount",value:function(){this.props.reusableBlock||this.props.fetchReusableBlock()}},{key:"componentDidUpdate",value:function(e){e.reusableBlock!==this.props.reusableBlock&&null===this.state.title&&this.setState({title:this.props.reusableBlock.title,blocks:Object(G.parse)(this.props.reusableBlock.content)})}},{key:"startEditing",value:function(){var e=this.props.reusableBlock;this.setState({isEditing:!0,title:e.title,blocks:Object(G.parse)(e.content)})}},{key:"stopEditing",value:function(){this.setState({isEditing:!1,title:null,blocks:[]})}},{key:"setBlocks",value:function(e){this.setState({blocks:e})}},{key:"setTitle",value:function(e){this.setState({title:e})}},{key:"save",value:function(){var e=this.props,t=e.onChange,n=e.onSave,r=this.state,o=r.blocks;t({title:r.title,content:Object(G.serialize)(o)}),n(),this.stopEditing()}},{key:"render",value:function(){var e=this.props,t=e.isSelected,n=e.reusableBlock,r=e.isFetching,o=e.isSaving,a=e.canUpdateBlock,c=e.settings,i=this.state,l=i.isEditing,s=i.title,u=i.blocks;if(!n&&r)return Object($.createElement)(se.Placeholder,null,Object($.createElement)(se.Spinner,null));if(!n)return Object($.createElement)(se.Placeholder,null,Object(K.__)("Block has been deleted or is unavailable."));var b=Object($.createElement)(W.BlockEditorProvider,{settings:c,value:u,onChange:this.setBlocks,onInput:this.setBlocks},Object($.createElement)(W.WritingFlow,null,Object($.createElement)(W.BlockList,null)));return l||(b=Object($.createElement)(se.Disabled,null,b)),Object($.createElement)("div",{className:"block-library-block__reusable-block-container"},(t||l)&&Object($.createElement)(La,{isEditing:l,title:null!==s?s:n.title,isSaving:o&&!n.isTemporary,isEditDisabled:!a,onEdit:this.startEditing,onChangeTitle:this.setTitle,onSave:this.save,onCancel:this.stopEditing}),!t&&!l&&Object($.createElement)(Ha,{title:n.title}),b)}}]),t}($.Component),Va=Object(ue.compose)([Object(be.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"),l=i.__experimentalGetParsedReusableBlock,s=i.getSettings,u=t.attributes.ref,b=r(u);return{reusableBlock:b,isFetching:o(u),isSaving:a(u),blocks:b?l(b.id):null,canUpdateBlock:!!b&&!b.isTemporary&&!!c("update","blocks",u),settings:s()}})),Object(be.withDispatch)((function(e,t){var n=e("core/editor"),r=n.__experimentalFetchReusableBlocks,o=n.__experimentalUpdateReusableBlock,a=n.__experimentalSaveReusableBlock,c=t.attributes.ref;return{fetchReusableBlock:Object(J.partial)(r,c),onChange:Object(J.partial)(o,c),onSave:Object(J.partial)(a,c)}}))])(za),Da="core/block",Fa={title:Object(K.__)("Reusable Block"),category:"reusable",description:Object(K.__)("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."),supports:{customClassName:!1,html:!1,inserter:!1},edit:Va},Ua=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(ae.a)(this,Object(ce.a)(t).apply(this,arguments))).state={editing:!e.props.attributes.feedURL},e.toggleAttribute=e.toggleAttribute.bind(Object(ie.a)(e)),e.onSubmitURL=e.onSubmitURL.bind(Object(ie.a)(e)),e}return Object(le.a)(t,e),Object(oe.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)(se.Placeholder,{icon:"rss",label:"RSS"},Object($.createElement)("form",{onSubmit:this.onSubmitURL},Object($.createElement)(se.TextControl,{placeholder:Object(K.__)("Enter URL here…"),value:l,onChange:function(e){return u({feedURL:e})},className:"components-placeholder__input"}),Object($.createElement)(se.Button,{isLarge:!0,type:"submit"},Object(K.__)("Use URL"))));var b=[{icon:"edit",title:Object(K.__)("Edit RSS URL"),onClick:function(){return e.setState({editing:!0})}},{icon:"list-view",title:Object(K.__)("List view"),onClick:function(){return u({blockLayout:"list"})},isActive:"list"===n},{icon:"grid-view",title:Object(K.__)("Grid view"),onClick:function(){return u({blockLayout:"grid"})},isActive:"grid"===n}];return Object($.createElement)($.Fragment,null,Object($.createElement)(W.BlockControls,null,Object($.createElement)(se.Toolbar,{controls:b})),Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,{title:Object(K.__)("RSS Settings")},Object($.createElement)(se.RangeControl,{label:Object(K.__)("Number of items"),value:s,onChange:function(e){return u({itemsToShow:e})},min:1,max:10,required:!0}),Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Display author"),checked:o,onChange:this.toggleAttribute("displayAuthor")}),Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Display date"),checked:c,onChange:this.toggleAttribute("displayDate")}),Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Display excerpt"),checked:a,onChange:this.toggleAttribute("displayExcerpt")}),a&&Object($.createElement)(se.RangeControl,{label:Object(K.__)("Max number of words in excerpt"),value:i,onChange:function(e){return u({excerptLength:e})},min:10,max:100,required:!0}),"grid"===n&&Object($.createElement)(se.RangeControl,{label:Object(K.__)("Columns"),value:r,onChange:function(e){return u({columns:e})},min:2,max:6,required:!0}))),Object($.createElement)(se.Disabled,null,Object($.createElement)(rn.a,{block:"core/rss",attributes:this.props.attributes})))}}]),t}($.Component),qa="core/rss",Wa={title:Object(K.__)("RSS"),description:Object(K.__)("Display entries from any RSS or Atom feed."),icon:"rss",category:"widgets",keywords:[Object(K.__)("atom"),Object(K.__)("feed")],supports:{align:!0,html:!1},example:{attributes:{feedURL:"https://wordpress.org"}},edit:Ua};var Ga="core/search",Ka={title:Object(K.__)("Search"),description:Object(K.__)("Help visitors find your content."),icon:"search",category:"widgets",keywords:[Object(K.__)("find")],supports:{align:!0},example:{},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(K.__)("Label text"),placeholder:Object(K.__)("Add label…"),withoutInteractiveFormatting:!0,value:o,onChange:function(e){return r({label:e})}}),Object($.createElement)("input",{className:"wp-block-search__input","aria-label":Object(K.__)("Optional placeholder text"),placeholder:a?void 0:Object(K.__)("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(K.__)("Button text"),placeholder:Object(K.__)("Add button text…"),withoutInteractiveFormatting:!0,value:c,onChange:function(e){return r({buttonText:e})}}))}},Za=[{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},save:function(e){var t=e.attributes,n=t.backgroundColor,r=t.customBackgroundColor,o=Object(W.getColorClassName)("background-color",n),a=Q()(o,{"has-background":n||r}),c={backgroundColor:o?void 0:r};return Object($.createElement)("div",{className:a,style:c},Object($.createElement)(W.InnerBlocks.Content,null))}}];var $a=Object(ue.compose)([Object(W.withColors)("backgroundColor"),Object(be.withSelect)((function(e,t){var n=t.clientId,r=(0,e("core/block-editor").getBlock)(n);return{hasInnerBlocks:!(!r||!r.innerBlocks.length)}}))])((function(e){var t=e.className,n=e.setBackgroundColor,r=e.backgroundColor,o=e.hasInnerBlocks,a={backgroundColor:r.color},c=Q()(t,r.class,{"has-background":!!r.color});return Object($.createElement)($.Fragment,null,Object($.createElement)(W.InspectorControls,null,Object($.createElement)(W.PanelColorSettings,{title:Object(K.__)("Color Settings"),colorSettings:[{value:r.color,onChange:n,label:Object(K.__)("Background Color")}]})),Object($.createElement)("div",{className:c,style:a},Object($.createElement)("div",{className:"wp-block-group__inner-container"},Object($.createElement)(W.InnerBlocks,{renderAppender:!o&&W.InnerBlocks.ButtonBlockAppender}))))})),Ya=Object($.createElement)(se.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M9 8a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-1v3a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1h1V8zm2 3h4V9h-4v2zm2 2H9v2h4v-2z"}),Object($.createElement)(se.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M2 4.732A2 2 0 1 1 4.732 2h14.536A2 2 0 1 1 22 4.732v14.536A2 2 0 1 1 19.268 22H4.732A2 2 0 1 1 2 19.268V4.732zM4.732 4h14.536c.175.304.428.557.732.732v14.536a2.01 2.01 0 0 0-.732.732H4.732A2.01 2.01 0 0 0 4 19.268V4.732A2.01 2.01 0 0 0 4.732 4z"}));var Qa={name:"core/group",category:"layout",attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"}}},Ja=Qa.name,Xa={title:Object(K.__)("Group"),icon:Ya,description:Object(K.__)("A block that groups other blocks."),keywords:[Object(K.__)("container"),Object(K.__)("wrapper"),Object(K.__)("row"),Object(K.__)("section")],example:{attributes:{customBackgroundColor:"#ffffff"},innerBlocks:[{name:"core/paragraph",attributes:{customTextColor:"#cf2e2e",fontSize:"large",content:Object(K.__)("One.")}},{name:"core/paragraph",attributes:{customTextColor:"#ff6900",fontSize:"large",content:Object(K.__)("Two.")}},{name:"core/paragraph",attributes:{customTextColor:"#fcb900",fontSize:"large",content:Object(K.__)("Three.")}},{name:"core/paragraph",attributes:{customTextColor:"#00d084",fontSize:"large",content:Object(K.__)("Four.")}},{name:"core/paragraph",attributes:{customTextColor:"#0693e3",fontSize:"large",content:Object(K.__)("Five.")}},{name:"core/paragraph",attributes:{customTextColor:"#9b51e0",fontSize:"large",content:Object(K.__)("Six.")}}]},supports:{align:["wide","full"],anchor:!0,html:!1},transforms:{from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:function(e){if(1!==e.length||"core/group"!==e[0].name){var t=["wide","full"],n=e.reduce((function(e,n){var r=n.attributes.align;return t.indexOf(r)>t.indexOf(e)?r:e}),void 0),r=e.map((function(e){return Object(G.createBlock)(e.name,e.attributes,e.innerBlocks)}));return Object(G.createBlock)("core/group",{align:n},r)}}}]},edit:$a,save:function(e){var t=e.attributes,n=t.backgroundColor,r=t.customBackgroundColor,o=Object(W.getColorClassName)("background-color",n),a=Q()(o,{"has-background":n||r}),c={backgroundColor:o?void 0:r};return Object($.createElement)("div",{className:a,style:c},Object($.createElement)("div",{className:"wp-block-group__inner-container"},Object($.createElement)(W.InnerBlocks.Content,null)))},deprecated:Za};var ec=Object(W.withColors)("color",{textColor:"color"})((function(e){var t=e.color,n=e.setColor,r=e.className;return Object($.createElement)($.Fragment,null,Object($.createElement)(se.HorizontalRule,{className:Q()(r,Object(q.a)({"has-background":t.color},t.class,t.class)),style:{backgroundColor:t.color,color:t.color}}),Object($.createElement)(W.InspectorControls,null,Object($.createElement)(W.PanelColorSettings,{title:Object(K.__)("Color Settings"),colorSettings:[{value:t.color,onChange:n,label:Object(K.__)("Color")}]})))})),tc=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object($.createElement)(se.Path,{d:"M19 13H5v-2h14v2z"}));var nc={from:[{type:"enter",regExp:/^-{3,}$/,transform:function(){return Object(G.createBlock)("core/separator")}},{type:"raw",selector:"hr",schema:{hr:{}}}]},rc={name:"core/separator",category:"layout",attributes:{color:{type:"string"},customColor:{type:"string"}}},oc=rc.name,ac={title:Object(K.__)("Separator"),description:Object(K.__)("Create a break between ideas or sections with a horizontal separator."),icon:tc,keywords:[Object(K.__)("horizontal-line"),"hr",Object(K.__)("divider")],example:{attributes:{customColor:"#065174",className:"is-style-wide"}},styles:[{name:"default",label:Object(K.__)("Default"),isDefault:!0},{name:"wide",label:Object(K.__)("Wide Line")},{name:"dots",label:Object(K.__)("Dots")}],transforms:nc,edit:ec,save:function(e){var t,n=e.attributes,r=n.color,o=n.customColor,a=Object(W.getColorClassName)("background-color",r),c=Object(W.getColorClassName)("color",r),i=Q()((t={"has-text-color has-background":r||o},Object(q.a)(t,a,a),Object(q.a)(t,c,c),t)),l={backgroundColor:a?void 0:o,color:c?void 0:o};return Object($.createElement)("hr",{className:i,style:l})}},cc=Object(ue.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 components-placeholder"},Object($.createElement)("label",{htmlFor:o,className:"components-placeholder__label"},Object($.createElement)(se.Dashicon,{icon:"shortcode"}),Object(K.__)("Shortcode")),Object($.createElement)(W.PlainText,{className:"input-control",id:o,value:t.text,placeholder:Object(K.__)("Write shortcode here…"),onChange:function(e){return n({text:e})}}))})),ic=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.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"}));var lc=n(69),sc={from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:function(e,t){var n=t.content;return Object(lc.removep)(Object(lc.autop)(n))}}},priority:20}]},uc="core/shortcode",bc={title:Object(K.__)("Shortcode"),description:Object(K.__)("Insert additional custom elements with a WordPress shortcode."),icon:ic,category:"widgets",transforms:sc,supports:{customClassName:!1,className:!1,html:!1},edit:cc,save:function(e){var t=e.attributes;return Object($.createElement)($.RawHTML,null,t.text)}},mc=Object(ue.compose)([Object(be.withDispatch)((function(e){var t=e("core/block-editor").toggleSelection;return{onResizeStart:function(){return t(!1)},onResizeStop:function(){return t(!0)}}})),ue.withInstanceId])((function(e){var t=e.attributes,n=e.isSelected,r=e.setAttributes,o=e.instanceId,a=e.onResizeStart,c=e.onResizeStop,i=t.height,l="block-spacer-height-input-".concat(o),s=Object($.useState)(i),u=Object(ke.a)(s,2),b=u[0],m=u[1];return Object($.createElement)($.Fragment,null,Object($.createElement)(se.ResizableBox,{className:Q()("block-library-spacer__resize-container",{"is-selected":n}),size:{height:i},minHeight:"20",enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:a,onResizeStop:function(e,t,n,o){c();var a=parseInt(i+o.height,10);r({height:a}),m(a)}}),Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,{title:Object(K.__)("Spacer Settings")},Object($.createElement)(se.BaseControl,{label:Object(K.__)("Height in pixels"),id:l},Object($.createElement)("input",{type:"number",id:l,onChange:function(e){var t=parseInt(e.target.value,10);m(t),isNaN(t)?(m(""),t=100):t<20&&(t=20),r({height:t})},value:b,min:"20",step:"10"})))))})),dc=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.G,null,Object($.createElement)(se.Path,{d:"M13 4v2h3.59L6 16.59V13H4v7h7v-2H7.41L18 7.41V11h2V4h-7"})));var hc={name:"core/spacer",category:"layout",attributes:{height:{type:"number",default:100}}},pc=hc.name,gc={title:Object(K.__)("Spacer"),description:Object(K.__)("Add white space between blocks and customize its height."),icon:dc,edit:mc,save:function(e){var t=e.attributes;return Object($.createElement)("div",{style:{height:t.height},"aria-hidden":!0})}},fc=n(37),vc=n.n(fc);var Oc=Object($.createElement)(se.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object($.createElement)(se.Path,{d:"M7.1 6l-.5 3h4.5L9.4 19h3l1.8-10h4.5l.5-3H7.1z"}));var jc={to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(G.createBlock)("core/paragraph",e)}}]},yc={name:"core/subhead",category:"common",attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"p"}}},_c=yc.name,kc={title:Object(K.__)("Subheading (deprecated)"),description:Object(K.__)("This block is deprecated. Please use the Paragraph block instead."),icon:Oc,supports:{inserter:!1,multiple:!1},transforms:jc,edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.className,o=t.align,a=t.content,c=t.placeholder;return vc()("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(K.__)("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})}},Cc=[{attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}}},supports:{align:!0},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=Q()(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,o=e.scope;return Object($.createElement)(W.RichText.Content,{tagName:r,value:n,key:t,scope:"th"===r?o:void 0})})))})))};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}))}}],wc=["align"];function Ec(e,t,n){if(!t)return e;var r=Object(J.pick)(e,["head","body","foot"]),o=t.sectionName,a=t.rowIndex;return Object(J.mapValues)(r,(function(e,r){return o&&o!==r?e:e.map((function(e,o){return a&&a!==o?e:{cells:e.cells.map((function(e,a){return xc({sectionName:r,columnIndex:a,rowIndex:o},t)?n(e):e}))}}))}))}function xc(e,t){if(!e||!t)return!1;switch(t.type){case"column":return"column"===t.type&&e.columnIndex===t.columnIndex;case"cell":return"cell"===t.type&&e.sectionName===t.sectionName&&e.columnIndex===t.columnIndex&&e.rowIndex===t.rowIndex}}function Sc(e,t){var n=t.sectionName,r=t.rowIndex,o=t.columnCount,a=function(e){return Rc(e.head)?Rc(e.body)?Rc(e.foot)?void 0:e.foot[0]:e.body[0]:e.head[0]}(e),c=void 0===o?Object(J.get)(a,["cells","length"]):o;return c?Object(q.a)({},n,[].concat(Object(U.a)(e[n].slice(0,r)),[{cells:Object(J.times)(c,(function(e){var t=Object(J.get)(a,["cells",e],{}),r=Object(J.pick)(t,wc);return Object(Z.a)({},r,{content:"",tag:"head"===n?"th":"td"})}))}],Object(U.a)(e[n].slice(r)))):e}function Tc(e,t){var n=t.columnIndex,r=Object(J.pick)(e,["head","body","foot"]);return Object(J.mapValues)(r,(function(e,t){return Rc(e)?e:e.map((function(e){return Ac(e)||e.cells.length0&&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.columnIndex;this.setState({selectedCell:null}),o(Tc(r,{columnIndex:a+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.sectionName,a=e.columnIndex;this.setState({selectedCell:null}),r(function(e,t){var n=t.columnIndex,r=Object(J.pick)(e,["head","body","foot"]);return Object(J.mapValues)(r,(function(e){return Rc(e)?e:e.map((function(e){return{cells:e.cells.length>=n?e.cells.filter((function(e,t){return t!==n})):e.cells}})).filter((function(e){return e.cells.length}))}))}(n,{sectionName:o,columnIndex:a}))}}},{key:"createOnFocus",value:function(e){var t=this;return function(){t.setState({selectedCell:Object(Z.a)({},e,{type:"cell"})})}}},{key:"getTableControls",value:function(){var e=this.state.selectedCell;return[{icon:"table-row-before",title:Object(K.__)("Add Row Before"),isDisabled:!e,onClick:this.onInsertRowBefore},{icon:"table-row-after",title:Object(K.__)("Add Row After"),isDisabled:!e,onClick:this.onInsertRowAfter},{icon:"table-row-delete",title:Object(K.__)("Delete Row"),isDisabled:!e,onClick:this.onDeleteRow},{icon:"table-col-before",title:Object(K.__)("Add Column Before"),isDisabled:!e,onClick:this.onInsertColumnBefore},{icon:"table-col-after",title:Object(K.__)("Add Column After"),isDisabled:!e,onClick:this.onInsertColumnAfter},{icon:"table-col-delete",title:Object(K.__)("Delete Column"),isDisabled:!e,onClick:this.onDeleteColumn}]}},{key:"renderSection",value:function(e){var t=this,n=e.name,r=e.rows;if(Rc(r))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=e.scope,s=e.align,u={sectionName:n,rowIndex:r,columnIndex:o},b=xc(u,a),m=Q()(Object(q.a)({"is-selected":b},"has-text-align-".concat(s),s));return Object($.createElement)(i,{key:o,className:m,scope:"th"===i?l:void 0,onClick:function(e){var t=e&&e.target&&e.target.querySelector(".".concat("wp-block-table__cell-content"));t&&t.focus()}},Object($.createElement)(W.RichText,{className:"wp-block-table__cell-content",value:c,onChange:t.onChange,unstableOnFocus:t.createOnFocus(u)}))})))})))}},{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,t=this.props,n=t.attributes,r=t.className,o=t.backgroundColor,a=t.setBackgroundColor,c=this.state,i=c.initialRowCount,l=c.initialColumnCount,s=n.hasFixedLayout,u=n.head,b=n.body,m=n.foot,d=Rc(u)&&Rc(b)&&Rc(m),h=this.renderSection;if(d)return Object($.createElement)(se.Placeholder,{label:Object(K.__)("Table"),icon:Object($.createElement)(W.BlockIcon,{icon:Bc,showColors:!0}),instructions:Object(K.__)("Insert a table for sharing data."),isColumnLayout:!0},Object($.createElement)("form",{className:"wp-block-table__placeholder-form",onSubmit:this.onCreateTable},Object($.createElement)(se.TextControl,{type:"number",label:Object(K.__)("Column Count"),value:l,onChange:this.onChangeInitialColumnCount,min:"1",className:"wp-block-table__placeholder-input"}),Object($.createElement)(se.TextControl,{type:"number",label:Object(K.__)("Row Count"),value:i,onChange:this.onChangeInitialRowCount,min:"1",className:"wp-block-table__placeholder-input"}),Object($.createElement)(se.Button,{className:"wp-block-table__placeholder-button",isDefault:!0,type:"submit"},Object(K.__)("Create Table"))));var p=Q()(o.class,{"has-fixed-layout":s,"has-background":!!o.color});return Object($.createElement)($.Fragment,null,Object($.createElement)(W.BlockControls,null,Object($.createElement)(se.Toolbar,null,Object($.createElement)(se.DropdownMenu,{hasArrowIndicator:!0,icon:"editor-table",label:Object(K.__)("Edit table"),controls:this.getTableControls()})),Object($.createElement)(W.AlignmentToolbar,{label:Object(K.__)("Change column alignment"),alignmentControls:Mc,value:this.getCellAlignment(),onChange:function(t){return e.onChangeColumnAlignment(t)},onHover:this.onHoverAlignment})),Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,{title:Object(K.__)("Table Settings"),className:"blocks-table-settings"},Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Fixed width table cells"),checked:!!s,onChange:this.onChangeFixedLayout}),Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Header section"),checked:!(!u||!u.length),onChange:this.onToggleHeaderSection}),Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Footer section"),checked:!(!m||!m.length),onChange:this.onToggleFooterSection})),Object($.createElement)(W.PanelColorSettings,{title:Object(K.__)("Color Settings"),initialOpen:!1,colorSettings:[{value:o.color,onChange:a,label:Object(K.__)("Background Color"),disableCustomColors:!0,colors:Ic}]})),Object($.createElement)("figure",{className:r},Object($.createElement)("table",{className:p},Object($.createElement)(h,{name:"head",rows:u}),Object($.createElement)(h,{name:"body",rows:b}),Object($.createElement)(h,{name:"foot",rows:m}))))}}]),t}($.Component),Hc=Pc("backgroundColor")(Lc);var zc={tr:{allowEmpty:!0,children:{th:{allowEmpty:!0,children:Object(G.getPhrasingContentSchema)(),attributes:["scope"]},td:{allowEmpty:!0,children:Object(G.getPhrasingContentSchema)()}}}},Vc={from:[{type:"raw",selector:"table",schema:{table:{children:{thead:{allowEmpty:!0,children:zc},tfoot:{allowEmpty:!0,children:zc},tbody:{allowEmpty:!0,children:zc}}}}}]},Dc={name:"core/table",category:"formatting",attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}}}},Fc=Dc.name,Uc={title:Object(K.__)("Table"),description:Object(K.__)("Insert a table — perfect for sharing charts and data."),icon:Bc,example:{attributes:{head:[{cells:[{content:Object(K.__)("Version"),tag:"th"},{content:Object(K.__)("Jazz Musician"),tag:"th"},{content:Object(K.__)("Release Date"),tag:"th"}]}],body:[{cells:[{content:"5.2",tag:"td"},{content:"Jaco Pastorius",tag:"td"},{content:Object(K.__)("May 7, 2019"),tag:"td"}]},{cells:[{content:"5.1",tag:"td"},{content:"Betty Carter",tag:"td"},{content:Object(K.__)("February 21, 2019"),tag:"td"}]},{cells:[{content:"5.0",tag:"td"},{content:"Bebo Valdés",tag:"td"},{content:Object(K.__)("December 6, 2018"),tag:"td"}]}]}},styles:[{name:"regular",label:Object(K._x)("Default","block style"),isDefault:!0},{name:"stripes",label:Object(K.__)("Stripes")}],supports:{align:!0},transforms:Vc,edit:Hc,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=Q()(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,o=e.scope,a=e.align,c=Q()(Object(q.a)({},"has-text-align-".concat(a),a));return Object($.createElement)(W.RichText.Content,{className:c||void 0,"data-align":a,tagName:r,value:n,key:t,scope:"th"===r?o:void 0})})))})))};return Object($.createElement)("figure",null,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})))},deprecated:Cc};var qc={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})])})))}}]},Wc={name:"core/text-columns",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"}}},Gc=Wc.name,Kc={supports:{inserter:!1},title:Object(K.__)("Text Columns (deprecated)"),description:Object(K.__)("This block is deprecated. Please use the Columns block instead."),transforms:qc,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 vc()("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)(se.PanelBody,null,Object($.createElement)(se.RangeControl,{label:Object(K.__)("Columns"),value:c,onChange:function(e){return n({columns:e})},min:2,max:4,required:!0}))),Object($.createElement)("div",{className:"".concat(r," align").concat(o," columns-").concat(c)},Object(J.times)(c,(function(e){return Object($.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object($.createElement)(W.RichText,{tagName:"p",value:Object(J.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(K.__)("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(J.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(J.get)(r,[e,"children"])}))})))}},Zc=[{attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}},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})}}];var $c=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:"M21 11.01L3 11V13H21V11.01ZM3 16H17V18H3V16ZM15 6H3V8.01L15 8V6Z"}));var Yc={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)}}]},Qc={name:"core/verse",category:"formatting",attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}}},Jc=Qc.name,Xc={title:Object(K.__)("Verse"),description:Object(K.__)("Insert poetry. Use special spacing formats. Or quote song lyrics."),icon:$c,example:{attributes:{content:Object(K.__)("WHAT was he doing, the great god Pan,")+"
    "+Object(K.__)(" Down in the reeds by the river?")+"
    "+Object(K.__)("Spreading ruin and scattering ban,")+"
    "+Object(K.__)("Splashing and paddling with hoofs of a goat,")+"
    "+Object(K.__)("And breaking the golden lilies afloat")+"
    "+Object(K.__)(" With the dragon-fly on the river.")}},keywords:[Object(K.__)("poetry")],transforms:Yc,deprecated:Zc,merge:function(e,t){return{content:e.content+t.content}},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})},placeholder:Object(K.__)("Write…"),wrapperClassName:r,className:Q()(Object(q.a)({},"has-text-align-".concat(a),a)),onMerge:o}))},save:function(e){var t=e.attributes,n=t.textAlign,r=t.content,o=Q()(Object(q.a)({},"has-text-align-".concat(n),n));return Object($.createElement)(W.RichText.Content,{tagName:"pre",className:o,value:r})}},ei=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object($.createElement)(se.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"})),ti=["video"],ni=["image"],ri=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(ae.a)(this,Object(ce.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(ie.a)(e)),e.onSelectURL=e.onSelectURL.bind(Object(ie.a)(e)),e.onSelectPoster=e.onSelectPoster.bind(Object(ie.a)(e)),e.onRemovePoster=e.onRemovePoster.bind(Object(ie.a)(e)),e.onUploadError=e.onUploadError.bind(Object(ie.a)(e)),e}return Object(le.a)(t,e),Object(oe.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.mediaUpload,o=t.noticeOperations,a=t.setAttributes,c=n.id,i=n.src,l=void 0===i?"":i;if(!c&&Object(Ce.isBlobURL)(l)){var s=Object(Ce.getBlobByURL)(l);s&&r({filesList:[s],onFileChange:function(e){var t=Object(ke.a)(e,1)[0].url;a({src:t})},onError:function(t){e.setState({editing:!0}),o.createErrorNotice(t)},allowedTypes:ti})}}},{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=et({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:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"getAutoplayHelp",value:function(e){return e?Object(K.__)("Note: Autoplaying videos may cause usability issues for some visitors."):null}},{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.playsInline,l=t.poster,s=t.preload,u=t.src,b=this.props,m=b.className,d=b.instanceId,h=b.isSelected,p=b.noticeUI,g=b.setAttributes,f=this.state.editing,v=function(){e.setState({editing:!0})};if(f)return Object($.createElement)(W.MediaPlaceholder,{icon:Object($.createElement)(W.BlockIcon,{icon:ei}),className:m,onSelect:function(t){if(!t||!t.url)return g({src:void 0,id:void 0}),void v();g({src:t.url,id:t.id}),e.setState({src:t.url,editing:!1})},onSelectURL:this.onSelectURL,accept:"video/*",allowedTypes:ti,value:this.props.attributes,notices:p,onError:this.onUploadError});var O="video-block__poster-image-description-".concat(d);return Object($.createElement)($.Fragment,null,Object($.createElement)(W.BlockControls,null,Object($.createElement)(se.Toolbar,null,Object($.createElement)(se.IconButton,{className:"components-icon-button components-toolbar__control",label:Object(K.__)("Edit video"),onClick:v,icon:"edit"}))),Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,{title:Object(K.__)("Video Settings")},Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Autoplay"),onChange:this.toggleAttribute("autoplay"),checked:n,help:this.getAutoplayHelp}),Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Loop"),onChange:this.toggleAttribute("loop"),checked:a}),Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Muted"),onChange:this.toggleAttribute("muted"),checked:c}),Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Playback Controls"),onChange:this.toggleAttribute("controls"),checked:o}),Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Play inline"),onChange:this.toggleAttribute("playsInline"),checked:i}),Object($.createElement)(se.SelectControl,{label:Object(K.__)("Preload"),value:s,onChange:function(e){return g({preload:e})},options:[{value:"auto",label:Object(K.__)("Auto")},{value:"metadata",label:Object(K.__)("Metadata")},{value:"none",label:Object(K.__)("None")}]}),Object($.createElement)(W.MediaUploadCheck,null,Object($.createElement)(se.BaseControl,{className:"editor-video-poster-control"},Object($.createElement)(se.BaseControl.VisualLabel,null,Object(K.__)("Poster Image")),Object($.createElement)(W.MediaUpload,{title:Object(K.__)("Select Poster Image"),onSelect:this.onSelectPoster,allowedTypes:ni,render:function(t){var n=t.open;return Object($.createElement)(se.Button,{isDefault:!0,onClick:n,ref:e.posterImageButton,"aria-describedby":O},e.props.attributes.poster?Object(K.__)("Replace image"):Object(K.__)("Select Poster Image"))}}),Object($.createElement)("p",{id:O,hidden:!0},this.props.attributes.poster?Object(K.sprintf)(Object(K.__)("The current poster image url is %s"),this.props.attributes.poster):Object(K.__)("There is no poster image currently selected")),!!this.props.attributes.poster&&Object($.createElement)(se.Button,{onClick:this.onRemovePoster,isLink:!0,isDestructive:!0},Object(K.__)("Remove Poster Image")))))),Object($.createElement)("figure",{className:m},Object($.createElement)(se.Disabled,null,Object($.createElement)("video",{controls:o,poster:l,src:u,ref:this.videoPlayer})),(!W.RichText.isEmpty(r)||h)&&Object($.createElement)(W.RichText,{tagName:"figcaption",placeholder:Object(K.__)("Write caption…"),value:r,onChange:function(e){return g({caption:e})},inlineToolbar:!0})))}}]),t}($.Component),oi=Object(ue.compose)([Object(be.withSelect)((function(e){return{mediaUpload:(0,e("core/block-editor").getSettings)().__experimentalMediaUpload}})),se.withNotices,ue.withInstanceId])(ri);var ai={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(Ce.createBlobURL)(t)})}},{type:"shortcode",tag:"video",attributes:{src:{type:"string",shortcode:function(e){var t=e.named,n=t.src,r=t.mp4,o=t.m4v,a=t.webm,c=t.ogv,i=t.flv;return n||r||o||a||c||i}},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}}}}]},ci={name:"core/video",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"},playsInline:{type:"boolean",source:"attribute",selector:"video",attribute:"playsinline"}}},ii=ci.name,li={title:Object(K.__)("Video"),description:Object(K.__)("Embed a video from your media library or upload a new one."),icon:ei,keywords:[Object(K.__)("movie")],transforms:ai,supports:{align:!0},edit:oi,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,u=t.playsInline;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,playsInline:u}),!W.RichText.isEmpty(r)&&Object($.createElement)(W.RichText.Content,{tagName:"figcaption",value:r}))}},si=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(ae.a)(this,Object(ce.a)(t).apply(this,arguments))).state={editing:!e.props.attributes.taxonomy},e.setTaxonomy=e.setTaxonomy.bind(Object(ie.a)(e)),e.toggleShowTagCounts=e.toggleShowTagCounts.bind(Object(ie.a)(e)),e}return Object(le.a)(t,e),Object(oe.a)(t,[{key:"getTaxonomyOptions",value:function(){var e=Object(J.filter)(this.props.taxonomies,"show_cloud"),t={label:Object(K.__)("- Select -"),value:"",disabled:!0},n=Object(J.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)(se.PanelBody,{title:Object(K.__)("Tag Cloud Settings")},Object($.createElement)(se.SelectControl,{label:Object(K.__)("Taxonomy"),options:r,value:t,onChange:this.setTaxonomy}),Object($.createElement)(se.ToggleControl,{label:Object(K.__)("Show post counts"),checked:n,onChange:this.toggleShowTagCounts})));return Object($.createElement)($.Fragment,null,o,Object($.createElement)(rn.a,{key:"tag-cloud",block:"core/tag-cloud",attributes:e}))}}]),t}($.Component),ui=Object(be.withSelect)((function(e){return{taxonomies:e("core").getTaxonomies()}}))(si),bi="core/tag-cloud",mi={title:Object(K.__)("Tag Cloud"),description:Object(K.__)("A cloud of your most used tags."),icon:"tag",category:"widgets",supports:{html:!1,align:!0},edit:ui},di=window.wp;var hi=function(e){function t(e){var n;return Object(re.a)(this,t),(n=Object(ae.a)(this,Object(ce.a)(t).call(this,e))).initialize=n.initialize.bind(Object(ie.a)(n)),n.onSetup=n.onSetup.bind(Object(ie.a)(n)),n.focus=n.focus.bind(Object(ie.a)(n)),n}return Object(le.a)(t,e),Object(oe.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),di.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;di.oldEditor.initialize("editor-".concat(e),{tinymce:Object(Z.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!==we.BACKSPACE&&t.keyCode!==we.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===we.F10&&t.stopPropagation()})),e.addButton("kitchensink",{tooltip:Object(K._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(K.__)("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(K.__)("Classic"),onKeyDown:this.onToolbarKeyDown}),Object($.createElement)("div",{key:"editor",id:"editor-".concat(t),className:"wp-block-freeform block-library-rich-text__tinymce"})]}}]),t}($.Component),pi=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:"M0,0h24v24H0V0z M0,0h24v24H0V0z",fill:"none"}),Object($.createElement)(se.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)(se.Rect,{x:"11",y:"8",width:"2",height:"2"}),Object($.createElement)(se.Rect,{x:"11",y:"11",width:"2",height:"2"}),Object($.createElement)(se.Rect,{x:"8",y:"8",width:"2",height:"2"}),Object($.createElement)(se.Rect,{x:"8",y:"11",width:"2",height:"2"}),Object($.createElement)(se.Rect,{x:"5",y:"11",width:"2",height:"2"}),Object($.createElement)(se.Rect,{x:"5",y:"8",width:"2",height:"2"}),Object($.createElement)(se.Rect,{x:"8",y:"14",width:"8",height:"2"}),Object($.createElement)(se.Rect,{x:"14",y:"11",width:"2",height:"2"}),Object($.createElement)(se.Rect,{x:"14",y:"8",width:"2",height:"2"}),Object($.createElement)(se.Rect,{x:"17",y:"11",width:"2",height:"2"}),Object($.createElement)(se.Rect,{x:"17",y:"8",width:"2",height:"2"}));var gi={name:"core/freeform",category:"formatting",attributes:{content:{type:"string",source:"html"}}},fi=gi.name,vi={title:Object(K._x)("Classic","block title"),description:Object(K.__)("Use the classic WordPress editor."),icon:pi,supports:{className:!1,customClassName:!1,reusable:!1},edit:hi,save:function(e){var t=e.attributes.content;return Object($.createElement)($.RawHTML,null,t)}};n.d(t,"registerCoreBlocks",(function(){return ji})),n.d(t,"__experimentalRegisterExperimentalCoreBlocks",(function(){return yi}));var Oi=function(e){if(e){var t=e.metadata,n=e.settings,r=e.name;t&&Object(G.unstable__bootstrapServerSideBlockDefinitions)(Object(q.a)({},r,t)),Object(G.registerBlockType)(r,n)}},ji=function(){[r,o,a,i,k,c,I,l,s,u,b,m,d,h,p,g,f].concat(Object(U.a)(co),Object(U.a)(io),[v,A,window.wp&&window.wp.oldEditor?F:null,O,j,y,_,C,w,E,x,S,N,R,B,T,M,P,L,D,H,z,V]).forEach(Oi),Object(G.setDefaultBlockName)(Oe),window.wp&&window.wp.oldEditor&&Object(G.setFreeformContentHandlerName)(fi),Object(G.setUnregisteredTypeHandlerName)(la),A&&Object(G.setGroupingBlockName)(Ja)},yi=void 0},35:function(e,t){!function(){e.exports=this.wp.blob}()},37:function(e,t){!function(){e.exports=this.wp.deprecated}()},38:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},39: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.data}()},42:function(e,t){!function(){e.exports=this.wp.viewport}()},44: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,m="hsl"),e.hasOwnProperty("a")&&(n=e.a));var d,h,p;return n=A(n),{ok:b,format:e.format||m,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 d(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(m(r));return a}function T(e,t){t=t||6;for(var n=m(e).toHsv(),r=n.h,o=n.s,a=n.v,c=[],i=1/t;t--;)c.push(m({h:r,s:o,v:a})),a=(a+i)%1;return c}m.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=A(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=d(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=d(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=[P(l(e).toString(16)),P(l(t).toString(16)),P(l(n).toString(16)),P(H(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)&&(R[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=m(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 m(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(v,arguments)},greyscale:function(){return this._applyModification(O,arguments)},spin:function(){return this._applyModification(k,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(C,arguments)},monochromatic:function(){return this._applyCombination(T,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(w,arguments)},tetrad:function(){return this._applyCombination(E,arguments)}},m.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:L(e[r]));e=n}return m(e,t)},m.equals=function(e,t){return!(!e||!t)&&m(e).toRgbString()==m(t).toRgbString()},m.random=function(){return m.fromRatio({r:b(),g:b(),b:b()})},m.mix=function(e,t,n){n=0===n?0:n||50;var r=m(e).toRgb(),o=m(t).toRgb(),a=n/100;return m({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})},m.readability=function(e,t){var n=m(e),r=m(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},m.isReadable=function(e,t,n){var r,o,a=m.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},m.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=m(t[s]));return m.isReadable(e,i,{level:a,size:c})||!o?i:(n.includeFallbackColors=!1,m.mostReadable(e,["#fff","#000"],n))};var N=m.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"},R=m.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(N);function A(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 M(e){return parseInt(e,16)}function P(e){return 1==e.length?"0"+e:""+e}function L(e){return e<=1&&(e=100*e+"%"),e}function H(e){return o.round(255*parseFloat(e)).toString(16)}function z(e){return M(e)/255}var V,D,F,U=(D="[\\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"+D),rgba:new RegExp("rgba"+F),hsl:new RegExp("hsl"+D),hsla:new RegExp("hsla"+F),hsv:new RegExp("hsv"+D),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 q(e){return!!U.CSS_UNIT.exec(e)}e.exports?e.exports=m:void 0===(r=function(){return m}.call(t,n,t,e))||(e.exports=r)}(Math)},5: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}))},53:function(e,t){!function(){e.exports=this.wp.date}()},58:function(e,t){!function(){e.exports=this.wp.serverSideRender}()},6:function(e,t){!function(){e.exports=this.wp.blockEditor}()},65: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},69:function(e,t){!function(){e.exports=this.wp.autop}()},7:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(10);function o(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),u="vanilla",l={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,u=n||"",l=u.indexOf("g")>-1,d=new RegExp(t+"|"+r,"g"+u.replace(/g/g,"")),f=new RegExp(t,u.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),!l)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 l=[];0!==s[0].wholeMatch.start&&l.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=u,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])||(u=r.gTitles[a])}var l='"};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,v=function(e){"use strict";return function(t,r,n,a,o,s,c){var u=n=n.replace(i.helper.regexes.asteriskDashAndColon,i.helper.escapeCharactersCallback),l="",d="",f=r||"",h=c||"";return/^www\./i.test(n)&&(n=n.replace(/^www\./i,"http://www.")),e.excludeTrailingPunctuationFromURLs&&s&&(l=s),e.openLinksInNewWindow&&(d=' target="¨E95Eblank"'),f+'"+u+""+l+h}},k=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,v(t))).replace(_,k(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,v(t)):e.replace(p,v(t))).replace(b,k(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 u 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(u))switch(u.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[u]+'"',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"),u="<"+n[o]+"\\b[^>]*>",l="";-1!==(s=i.helper.regexIndexOf(e,c));){var d=i.helper.splitAtIndex(e,s),f=i.helper.replaceRecursiveRegExp(d[1],a,u,l,"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)+'"',u=""+o+"";return i.subParser("hashBlock")(u,t,r)}))).replace(o,(function(e,a){var o=i.subParser("spanGamut")(a,t,r),s=t.noHeaderId?"":' id="'+c(a)+'"',u=n+1,l=""+o+"";return i.subParser("hashBlock")(l,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 u=i.subParser("spanGamut")(s,t,r),l=t.noHeaderId?"":' id="'+c(o)+'"',d=n-1+a.length,f=""+u+"";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,u){var l=r.gUrls,d=r.gTitles,f=r.gDimensions;if(n=n.toLowerCase(),u||(u=""),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(l[n]))return e;a=l[n],i.helper.isUndefined(d[n])||(u=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,s,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,u,l){l=l&&""!==l.trim();var d=i.subParser("outdent")(c,t,r),f="";return u&&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,u="";if(-1!==e.search(c))!function t(l){var d=l.search(c),f=a(e,r);-1!==d?(u+="\n\n<"+r+f+">\n"+n(l.slice(0,d),!!i)+"\n",c="ul"===(r="ul"===r?"ol":"ul")?o:s,t(l.slice(d))):u+="\n\n<"+r+f+">\n"+n(l,!!i)+"\n"}(e);else{var l=a(e,r);u="\n\n<"+r+l+">\n"+n(e,!!i)+"\n"}return u}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(l)&&(d=!0)}a[s]=l}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,u){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+u:(u&&(r.gTitles[n]=u.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)},23:function(e,t,r){"use strict";var n=r(38);var a=r(39);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}))},25:function(e,t){!function(){e.exports=this.wp.dom}()},27:function(e,t){!function(){e.exports=this.wp.hooks}()},30: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}))},347:function(e,t,r){"use strict";r.r(t);var n={};r.r(n),r.d(n,"getBlockTypes",(function(){return k})),r.d(n,"getBlockType",(function(){return w})),r.d(n,"getBlockStyles",(function(){return y})),r.d(n,"getCategories",(function(){return j})),r.d(n,"getDefaultBlockName",(function(){return O})),r.d(n,"getFreeformFallbackBlockName",(function(){return T})),r.d(n,"getUnregisteredFallbackBlockName",(function(){return x})),r.d(n,"getGroupingBlockName",(function(){return C})),r.d(n,"getChildBlockNames",(function(){return A})),r.d(n,"getBlockSupport",(function(){return S})),r.d(n,"hasBlockSupport",(function(){return E})),r.d(n,"isMatchingSearchTerm",(function(){return P})),r.d(n,"hasChildBlocks",(function(){return N})),r.d(n,"hasChildBlocksWithInserterSupport",(function(){return B}));var a={};r.r(a),r.d(a,"addBlockTypes",(function(){return M})),r.d(a,"removeBlockTypes",(function(){return L})),r.d(a,"addBlockStyles",(function(){return z})),r.d(a,"removeBlockStyles",(function(){return H})),r.d(a,"setDefaultBlockName",(function(){return I})),r.d(a,"setFreeformFallbackBlockName",(function(){return D})),r.d(a,"setUnregisteredFallbackBlockName",(function(){return V})),r.d(a,"setGroupingBlockName",(function(){return R})),r.d(a,"setCategories",(function(){return F})),r.d(a,"updateCategory",(function(){return $}));var i=r(4),o=r(10),s=r(17),c=r(7),u=r(2),l=r(1),d=[{slug:"common",title:Object(l.__)("Common Blocks")},{slug:"formatting",title:Object(l.__)("Formatting")},{slug:"layout",title:Object(l.__)("Layout Elements")},{slug:"widgets",title:Object(l.__)("Widgets")},{slug:"embed",title:Object(l.__)("Embeds")},{slug:"reusable",title:Object(l.__)("Reusable Blocks")}];function f(e){return function(){var t=arguments.length>0&&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"),m=f("SET_GROUPING_BLOCK_NAME");var b=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(u.keyBy)(Object(u.map)(t.blockTypes,(function(e){return Object(u.omit)(e,"styles ")})),"name"));case"REMOVE_BLOCK_TYPES":return Object(u.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(u.mapValues)(Object(u.keyBy)(t.blockTypes,"name"),(function(t){return Object(u.uniqBy)([].concat(Object(s.a)(Object(u.get)(t,["styles"],[])),Object(s.a)(Object(u.get)(e,[t.name],[]))),(function(e){return e.name}))})));case"ADD_BLOCK_STYLES":return Object(c.a)({},e,Object(o.a)({},t.blockName,Object(u.uniqBy)([].concat(Object(s.a)(Object(u.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(u.filter)(Object(u.get)(e,[t.blockName],[]),(function(e){return-1===t.styleNames.indexOf(e.name)}))))}return e},defaultBlockName:h,freeformFallbackBlockName:p,unregisteredFallbackBlockName:g,groupingBlockName:m,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(u.isEmpty)(t.category))return e;if(Object(u.find)(e,["slug",t.slug]))return Object(u.map)(e,(function(e){return e.slug===t.slug?Object(c.a)({},e,t.category):e}))}return e}}),_=r(36),v=function(e,t){return"string"==typeof t?w(e,t):t},k=Object(_.a)((function(e){return Object.values(e.blockTypes)}),(function(e){return[e.blockTypes]}));function w(e,t){return e.blockTypes[t]}function y(e,t){return e.blockStyles[t]}function j(e){return e.categories}function O(e){return e.defaultBlockName}function T(e){return e.freeformFallbackBlockName}function x(e){return e.unregisteredFallbackBlockName}function C(e){return e.groupingBlockName}var A=Object(_.a)((function(e,t){return Object(u.map)(Object(u.filter)(e.blockTypes,(function(e){return Object(u.includes)(e.parent,t)})),(function(e){return e.name}))}),(function(e){return[e.blockTypes]})),S=function(e,t,r,n){var a=v(e,t);return Object(u.get)(a,["supports",r],n)};function E(e,t,r,n){return!!S(e,t,r,n)}function P(e,t,r){var n=v(e,t),a=Object(u.flow)([u.deburr,function(e){return e.toLowerCase()},function(e){return e.trim()}]),i=a(r),o=Object(u.flow)([a,function(e){return Object(u.includes)(e,i)}]);return o(n.title)||Object(u.some)(n.keywords,o)||o(n.category)}var N=function(e,t){return A(e,t).length>0},B=function(e,t){return Object(u.some)(A(e,t),(function(t){return E(e,t,"inserter",!0)}))};function M(e){return{type:"ADD_BLOCK_TYPES",blockTypes:Object(u.castArray)(e)}}function L(e){return{type:"REMOVE_BLOCK_TYPES",names:Object(u.castArray)(e)}}function z(e,t){return{type:"ADD_BLOCK_STYLES",styles:Object(u.castArray)(t),blockName:e}}function H(e,t){return{type:"REMOVE_BLOCK_STYLES",styleNames:Object(u.castArray)(t),blockName:e}}function I(e){return{type:"SET_DEFAULT_BLOCK_NAME",name:e}}function D(e){return{type:"SET_FREEFORM_FALLBACK_BLOCK_NAME",name:e}}function V(e){return{type:"SET_UNREGISTERED_FALLBACK_BLOCK_NAME",name:e}}function R(e){return{type:"SET_GROUPING_BLOCK_NAME",name:e}}function F(e){return{type:"SET_CATEGORIES",categories:e}}function $(e,t){return{type:"UPDATE_CATEGORY",slug:e,category:t}}Object(i.registerStore)("core/blocks",{reducer:b,selectors:n,actions:a});var q=r(67),U=r.n(q),G=r(27),W=r(49),K=r.n(W),Y=r(0),Z=["#191e23","#f8f9f9"];function Q(e){var t=pe();if(e.name!==t)return!1;Q.block&&Q.block.name===t||(Q.block=Te(t));var r=Q.block,n=ge(t);return Object(u.every)(n.attributes,(function(t,n){return r.attributes[n]===e.attributes[n]}))}function X(e){return!!e&&(Object(u.isString)(e)||Object(Y.isValidElement)(e)||Object(u.isFunction)(e)||e instanceof Y.Component)}function J(e){if(X(e))return{src:e};if(Object(u.has)(e,["background"])){var t=K()(e.background);return Object(c.a)({},e,{foreground:e.foreground?e.foreground:Object(W.mostReadable)(t,Z,{includeFallbackColors:!0,level:"AA",size:"large"}).toHexString(),shadowColor:t.setAlpha(.3).toRgbString()})}return e}function ee(e){return Object(u.isString)(e)?ge(e):e}var te=["attributes","supports","save","migrate","isEligible"],re={icon:"block-default",attributes:{},keywords:[],save:function(){return null}},ne={};function ae(e){ne=Object(c.a)({},ne,e)}function ie(e,t){if(t=Object(c.a)({name:e},re,Object(u.get)(ne,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{var r=Object(c.a)({},t);if((t=Object(G.applyFilters)("blocks.registerBlockType",t,e)).deprecated&&(t.deprecated=t.deprecated.map((function(t){return Object(u.pick)(Object(G.applyFilters)("blocks.registerBlockType",Object(c.a)({},Object(u.omit)(r,te),t),e),te)}))),Object(u.isPlainObject)(t))if(Object(u.isFunction)(t.save))if("edit"in t&&!Object(u.isFunction)(t.edit))console.error('The "edit" property must be a valid function.');else if("category"in t)if("category"in t&&!Object(u.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=J(t.icon),X(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://developer.wordpress.org/block-editor/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 a valid function.');else console.error("Block settings must be a valid object.")}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 oe(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 se(e){Object(i.dispatch)("core/blocks").setFreeformFallbackBlockName(e)}function ce(){return Object(i.select)("core/blocks").getFreeformFallbackBlockName()}function ue(){return Object(i.select)("core/blocks").getGroupingBlockName()}function le(e){Object(i.dispatch)("core/blocks").setUnregisteredFallbackBlockName(e)}function de(){return Object(i.select)("core/blocks").getUnregisteredFallbackBlockName()}function fe(e){Object(i.dispatch)("core/blocks").setDefaultBlockName(e)}function he(e){Object(i.dispatch)("core/blocks").setGroupingBlockName(e)}function pe(){return Object(i.select)("core/blocks").getDefaultBlockName()}function ge(e){return Object(i.select)("core/blocks").getBlockType(e)}function me(){return Object(i.select)("core/blocks").getBlockTypes()}function be(e,t,r){return Object(i.select)("core/blocks").getBlockSupport(e,t,r)}function _e(e,t,r){return Object(i.select)("core/blocks").hasBlockSupport(e,t,r)}function ve(e){return"core/block"===e.name}var ke=function(e){return Object(i.select)("core/blocks").getChildBlockNames(e)},we=function(e){return Object(i.select)("core/blocks").hasChildBlocks(e)},ye=function(e){return Object(i.select)("core/blocks").hasChildBlocksWithInserterSupport(e)},je=function(e,t){Object(i.dispatch)("core/blocks").addBlockStyles(e,t)},Oe=function(e,t){Object(i.dispatch)("core/blocks").removeBlockStyles(e,t)};function Te(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=ge(e),a=Object(u.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:U()(),name:e,isValid:!0,attributes:a,innerBlocks:r}}function xe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=U()();return Object(c.a)({},e,{clientId:n,attributes:Object(c.a)({},e.attributes,t),innerBlocks:r||e.innerBlocks.map((function(e){return xe(e)}))})}var Ce=function(e,t,r){if(Object(u.isEmpty)(r))return!1;var n=r.length>1,a=Object(u.first)(r).name;if(!(Ee(e)||!n||e.isMultiBlock))return!1;if(!Ee(e)&&!Object(u.every)(r,{name:a}))return!1;if(!("block"===e.type))return!1;var i=Object(u.first)(r);if(!("from"!==t||-1!==e.blocks.indexOf(i.name)||Ee(e)))return!1;if(!n&&Pe(i.name)&&Pe(e.blockName))return!1;if(Object(u.isFunction)(e.isMatch)){var o=e.isMultiBlock?r.map((function(e){return e.attributes})):i.attributes;if(!e.isMatch(o))return!1}return!0},Ae=function(e){if(Object(u.isEmpty)(e))return[];var t=me();return Object(u.filter)(t,(function(t){return!!Me(Le("from",t.name),(function(t){return Ce(t,"from",e)}))}))},Se=function(e){if(Object(u.isEmpty)(e))return[];var t=Le("to",ge(Object(u.first)(e).name).name),r=Object(u.filter)(t,(function(t){return t&&Ce(t,"to",e)}));return Object(u.flatMap)(r,(function(e){return e.blocks})).map((function(e){return ge(e)}))},Ee=function(e){return e&&"block"===e.type&&Array.isArray(e.blocks)&&e.blocks.includes("*")},Pe=function(e){return e===ue()},Ne=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!e.length)return!1;var t=e[0].name;return Object(u.every)(e,["name",t])};function Be(e){if(Object(u.isEmpty)(e))return[];var t=Ae(e),r=Se(e);return Object(u.uniq)([].concat(Object(s.a)(t),Object(s.a)(r)))}function Me(e,t){for(var r=Object(G.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(!Pe(t)&&n&&!Ne(r))return null;var o,s=Le("from",t),l=Me(Le("to",i),(function(e){return"block"===e.type&&(Ee(e)||-1!==e.blocks.indexOf(t))&&(!n||e.isMultiBlock)}))||Me(s,(function(e){return"block"===e.type&&(Ee(e)||-1!==e.blocks.indexOf(i))&&(!n||e.isMultiBlock)}));if(!l)return null;if(o=l.isMultiBlock?Object(u.has)(l,"__experimentalConvert")?l.__experimentalConvert(r):l.transform(r.map((function(e){return e.attributes})),r.map((function(e){return e.innerBlocks}))):Object(u.has)(l,"__experimentalConvert")?l.__experimentalConvert(a):l.transform(a.attributes,a.innerBlocks),!Object(u.isObjectLike)(o))return null;if((o=Object(u.castArray)(o)).some((function(e){return!ge(e.name)})))return null;var d=Object(u.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(G.applyFilters)("blocks.switchToBlockType.transformedBlock",n,e)}))}var He=function e(t,r){return Te(t,r.attributes,Object(u.map)(r.innerBlocks,(function(t){return e(t.name,t)})))},Ie=r(23);var De,Ve=function(){return De||(De=document.implementation.createHTMLDocument("")),De};function Re(e,t){if(t){if("string"==typeof e){var r=Ve();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]=Re(e,t[n]),r}),{})}}function Fe(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 $e=r(69),qe=r(222),Ue=r(38),Ge=r(30),We=r(39);var Ke=r(12),Ye=r(11),Ze=/^#[xX]([A-Fa-f0-9]+)$/,Qe=/^#([0-9]+)$/,Xe=/^([A-Za-z0-9]+)$/,Je=(function(){function e(e){this.named=e}e.prototype.parse=function(e){if(e){var t=e.match(Ze);return t?String.fromCharCode(parseInt(t[1],16)):(t=e.match(Qe))?String.fromCharCode(parseInt(t[1],10)):(t=e.match(Xe))?this.named[t[1]]:void 0}}}(),/[\t\n\f ]/),et=/[A-Za-z]/,tt=/\r\n?/g;function rt(e){return Je.test(e)}function nt(e){return et.test(e)}var at=function(){function e(e,t){this.delegate=e,this.entityParser=t,this.state="beforeData",this.line=-1,this.column=-1,this.input="",this.index=-1,this.tagNameBuffer="",this.states={beforeData:function(){var e=this.peek();if("<"!==e||this.isIgnoredEndTag()){if("\n"===e){var t=this.tagNameBuffer.toLowerCase();"pre"!==t&&"textarea"!==t||this.consume()}this.transitionTo("data"),this.delegate.beginData()}else this.transitionTo("tagOpen"),this.markTagStart(),this.consume()},data:function(){var e=this.peek(),t=this.tagNameBuffer.toLowerCase();"<"!==e||this.isIgnoredEndTag()?"&"===e&&"script"!==t&&"style"!==t?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(e)):(this.delegate.finishData(),this.transitionTo("tagOpen"),this.markTagStart(),this.consume())},tagOpen:function(){var e=this.consume();"!"===e?this.transitionTo("markupDeclarationOpen"):"/"===e?this.transitionTo("endTagOpen"):("@"===e||":"===e||nt(e))&&(this.transitionTo("tagName"),this.tagNameBuffer="",this.delegate.beginStartTag(),this.appendToTagName(e))},markupDeclarationOpen:function(){"-"===this.consume()&&"-"===this.peek()&&(this.consume(),this.transitionTo("commentStart"),this.delegate.beginComment())},commentStart:function(){var e=this.consume();"-"===e?this.transitionTo("commentStartDash"):">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData(e),this.transitionTo("comment"))},commentStartDash:function(){var e=this.consume();"-"===e?this.transitionTo("commentEnd"):">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("-"),this.transitionTo("comment"))},comment:function(){var e=this.consume();"-"===e?this.transitionTo("commentEndDash"):this.delegate.appendToCommentData(e)},commentEndDash:function(){var e=this.consume();"-"===e?this.transitionTo("commentEnd"):(this.delegate.appendToCommentData("-"+e),this.transitionTo("comment"))},commentEnd:function(){var e=this.consume();">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("--"+e),this.transitionTo("comment"))},tagName:function(){var e=this.consume();rt(e)?this.transitionTo("beforeAttributeName"):"/"===e?this.transitionTo("selfClosingStartTag"):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(e)},endTagName:function(){var e=this.consume();rt(e)?(this.transitionTo("beforeAttributeName"),this.tagNameBuffer=""):"/"===e?(this.transitionTo("selfClosingStartTag"),this.tagNameBuffer=""):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData"),this.tagNameBuffer=""):this.appendToTagName(e)},beforeAttributeName:function(){var e=this.peek();rt(e)?this.consume():"/"===e?(this.transitionTo("selfClosingStartTag"),this.consume()):">"===e?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):"="===e?(this.delegate.reportSyntaxError("attribute name cannot start with equals sign"),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e)):(this.transitionTo("attributeName"),this.delegate.beginAttribute())},attributeName:function(){var e=this.peek();rt(e)?(this.transitionTo("afterAttributeName"),this.consume()):"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"="===e?(this.transitionTo("beforeAttributeValue"),this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("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();rt(e)?this.consume():"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"="===e?(this.consume(),this.transitionTo("beforeAttributeValue")):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e))},beforeAttributeValue:function(){var e=this.peek();rt(e)?this.consume():'"'===e?(this.transitionTo("attributeValueDoubleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):"'"===e?(this.transitionTo("attributeValueSingleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.transitionTo("attributeValueUnquoted"),this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(e))},attributeValueDoubleQuoted:function(){var e=this.consume();'"'===e?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(e)},attributeValueSingleQuoted:function(){var e=this.consume();"'"===e?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(e)},attributeValueUnquoted:function(){var e=this.peek();rt(e)?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("beforeAttributeName")):"/"===e?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"&"===e?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef()||"&")):">"===e?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.consume(),this.delegate.appendToAttributeValue(e))},afterAttributeValueQuoted:function(){var e=this.peek();rt(e)?(this.consume(),this.transitionTo("beforeAttributeName")):"/"===e?(this.consume(),this.transitionTo("selfClosingStartTag")):">"===e?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},selfClosingStartTag:function(){">"===this.peek()?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},endTagOpen:function(){var e=this.consume();("@"===e||":"===e||nt(e))&&(this.transitionTo("endTagName"),this.tagNameBuffer="",this.delegate.beginEndTag(),this.appendToTagName(e))}},this.reset()}return e.prototype.reset=function(){this.transitionTo("beforeData"),this.input="",this.tagNameBuffer="",this.index=0,this.line=1,this.column=0,this.delegate.reset()},e.prototype.transitionTo=function(e){this.state=e},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(tt,"\n")}(e);this.index"!==this.input.substring(this.index,this.index+8)||"style"===e&&""!==this.input.substring(this.index,this.index+8)||"script"===e&&"<\/script>"!==this.input.substring(this.index,this.index+9)},e}(),it=function(){function e(e,t){void 0===t&&(t={}),this.options=t,this.token=null,this.startLine=1,this.startColumn=0,this.tokens=[],this.tokenizer=new at(this,e),this._currentAttribute=void 0}return e.prototype.tokenize=function(e){return this.tokens=[],this.tokenizer.tokenize(e),this.tokens},e.prototype.tokenizePart=function(e){return this.tokens=[],this.tokenizer.tokenizePart(e),this.tokens},e.prototype.tokenizeEOF=function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},e.prototype.reset=function(){this.token=null,this.startLine=1,this.startColumn=0},e.prototype.current=function(){var e=this.token;if(null===e)throw new Error("token was unexpectedly null");if(0===arguments.length)return e;for(var t=0;t1?r-1:0),a=1;a2&&void 0!==arguments[2]?arguments[2]:[],n=ee(e),a=n.save;if(a.prototype instanceof Y.Component){var i=new a({attributes:t});a=i.render.bind(i)}var o=a({attributes:t,innerBlocks:r});if(Object(u.isObject)(o)&&Object(G.hasFilter)("blocks.getSaveContent.extraProps")){var s=Object(G.applyFilters)("blocks.getSaveContent.extraProps",Object(c.a)({},o.props),n,t);ut()(s,o.props)||(o=Object(Y.cloneElement)(o,s))}return o=Object(G.applyFilters)("blocks.getSaveElement",o,n,t),Object(Y.createElement)(mt,{innerBlocks:r},o)}function kt(e,t,r){var n=ee(e);return Object(Y.renderToString)(vt(n,t,r))}function wt(e){var t=e.originalContent;if(e.isValid||e.innerBlocks.length)try{t=kt(e.name,e.attributes,e.innerBlocks)}catch(e){}return t}function yt(e,t,r){var n=Object(u.isEmpty)(t)?"":function(e){return JSON.stringify(e).replace(/--/g,"\\u002d\\u002d").replace(//g,"\\u003e").replace(/&/g,"\\u0026").replace(/\\"/g,"\\u0022")}(t)+" ",a=Object(u.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 jt(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).isInnerBlocks,r=void 0!==t&&t,n=e.name,a=wt(e);return n===de()||!r&&n===ce()?a:yt(n,function(e,t){return Object(u.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)}),{})}(ge(n),e.attributes),a)}function Ot(e,t){return Object(u.castArray)(e).map((function(e){return jt(e,t)})).join("\n\n")}var Tt=/[\t\n\r\v\f ]+/g,xt=/^[\t\n\r\v\f ]*$/,Ct=/^url\s*\(['"\s]*(.*?)['"\s]*\)$/,At=["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"],St=[].concat(At,["autocapitalize","autocomplete","charset","contenteditable","crossorigin","decoding","dir","draggable","enctype","formenctype","formmethod","http-equiv","inputmode","kind","method","preload","scope","shape","spellcheck","translate","type","wrap"]),Et=[u.identity,function(e){return Lt(e).join(" ")}],Pt=/^[\da-z]+$/i,Nt=/^#\d+$/,Bt=/^#x[\da-f]+$/i;var Mt=function(){function e(){Object(Ke.a)(this,e)}return Object(Ye.a)(e,[{key:"parse",value:function(e){if(t=e,Pt.test(t)||Nt.test(t)||Bt.test(t))return Object(ot.decodeEntities)("&"+e+";");var t}}]),e}();function Lt(e){return e.trim().split(Tt)}function zt(e){return e.attributes.filter((function(e){var t=Object(Ie.a)(e,2),r=t[0];return t[1]||0===r.indexOf("data-")||Object(u.includes)(St,r)}))}function Ht(e,t){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:st(),n=e.chars,a=t.chars,i=0;i2&&void 0!==arguments[2]?arguments[2]:st();if(e.length!==t.length)return r.warning("Expected attributes %o, instead saw %o.",t,e),!1;var n=[e,t].map(u.fromPairs),a=Object(Ie.a)(n,2),i=a[0],o=a[1];for(var s in i){if(!o.hasOwnProperty(s))return r.warning("Encountered unexpected attribute `%s`.",s),!1;var c=i[s],l=o[s],d=Vt[s];if(d){if(!d(c,l))return r.warning("Expected attribute `%s` of value `%s`, saw `%s`.",s,l,c),!1}else if(c!==l)return r.warning("Expected attribute `%s` of value `%s`, saw `%s`.",s,l,c),!1}return!0}var Ft={StartTag:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:st();return e.tagName!==t.tagName?(r.warning("Expected tag name `%s`, instead saw `%s`.",t.tagName,e.tagName),!1):Rt.apply(void 0,Object(s.a)([e,t].map(zt)).concat([r]))},Chars:Ht,Comment:Ht};function $t(e){for(var t;t=e.shift();){if("Chars"!==t.type)return t;if(!xt.test(t.chars))return t}}function qt(e,t){return!!e.selfClosing&&!(!t||t.tagName!==e.tagName||"EndTag"!==t.type)}function Ut(e,t){var r,n,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:st(),i=[e,t].map((function(e){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:st();try{return new it(new Mt).tokenize(e)}catch(r){t.warning("Malformed HTML detected: %s",e)}return null}(e,a)})),o=Object(Ie.a)(i,2),s=o[0],c=o[1];if(!s||!c)return!1;for(;r=$t(s);){if(!(n=$t(c)))return a.warning("Expected end of content, instead saw %o.",r),!1;if(r.type!==n.type)return a.warning("Expected token of type `%s` (%o), instead saw `%s` (%o).",n.type,n,r.type,r),!1;var u=Ft[r.type];if(u&&!u(r,n,a))return!1;qt(r,c[0])?$t(c):qt(n,s[0])&&$t(s)}return!(n=$t(c))||(a.warning("Expected %o, instead saw end of content.",n),!1)}function Gt(e,t,r){var n,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){var e=[],t=st();return{error:function(){for(var r=arguments.length,n=new Array(r),a=0;a2&&void 0!==arguments[2]?arguments[2]:{},n=ee(e),a=Object(u.mapValues)(n.attributes,(function(e,n){return ur(n,e,t,r)}));return Object(G.applyFilters)("blocks.getBlockAttributes",a,n,t,r)}function dr(e){var t=e.blockName,r=e.attrs,n=e.innerBlocks,a=void 0===n?[]:n,i=e.innerHTML,o=e.innerContent,l=ce(),d=de()||l;r=r||{},i=i.trim();var f=t||l;"core/cover-image"===f&&(f="core/cover"),"core/text"!==f&&"core/cover-text"!==f||(f="core/paragraph"),f===l&&(i=Object($e.autop)(i).trim());var h=ge(f);if(!h){var p={attrs:r,blockName:t,innerBlocks:a,innerContent:o},g=fr(p,{isCommentDelimited:!1}),m=fr(p,{isCommentDelimited:!0});f&&(i=m),r={originalName:t,originalContent:m,originalUndelimitedContent:g},h=ge(f=d)}a=(a=a.map(dr)).filter((function(e){return e}));var b=f===l||f===d;if(h&&(i||!b)){var _=Te(f,lr(h,i,r),a);if(!b){var v=Gt(h,_.attributes,i),k=v.isValid,w=v.validationIssues;_.isValid=k,_.validationIssues=w}return _.originalContent=_.originalContent||i,(_=function(e,t){var r=ge(e.name),n=r.deprecated;if(!n||!n.length)return e;for(var a=e,i=a.originalContent,o=a.innerBlocks,l=0;l0&&(_.isValid?console.info("Block successfully updated for `%s` (%o).\n\nNew content generated by `save` function:\n\n%s\n\nContent retrieved from post body:\n\n%s",h.name,h,kt(h,_.attributes),_.originalContent):_.validationIssues.forEach((function(e){var t=e.log,r=e.args;return t.apply(void 0,Object(s.a)(r))}))),_}}function fr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.isCommentDelimited,n=void 0===r||r,a=e.blockName,i=e.attrs,o=void 0===i?{}:i,s=e.innerBlocks,c=void 0===s?[]:s,u=e.innerContent,l=0,d=(void 0===u?[]:u).map((function(e){return null!==e?e:fr(c[l++],t)})).join("\n").replace(/\n+/g,"\n").trim();return n?yt(a,o,d):d}var hr,pr=(hr=qe.parse,function(e){return hr(e).reduce((function(e,t){var r=dr(t);return r&&e.push(r),e}),[])}),gr=pr,mr=r(25),br={strong:{},em:{},s:{},del:{},ins:{},a:{attributes:["href","target","rel"]},code:{},abbr:{attributes:["title"]},sub:{},sup:{},br:{},"#text":{}};function _r(){return br}function vr(e){var t=e.nodeName.toLowerCase();return _r().hasOwnProperty(t)||"span"===t}["strong","em","s","del","ins","a","code","abbr","sub","sup"].forEach((function(e){br[e].children=Object(u.omit)(br,e)}));var kr=window.Node,wr=kr.ELEMENT_NODE,yr=kr.TEXT_NODE;function jr(e){var t=e.map((function(e){var t=e.isMatch,r=e.blockName,n=e.schema,a=_e(r,"anchor");return a||t?Object(u.mapValues)(n,(function(e){var r=e.attributes||[];return a&&(r=[].concat(Object(s.a)(r),["id"])),Object(c.a)({},e,{attributes:r,isMatch:t||void 0})})):n}));return u.mergeWith.apply(void 0,[{}].concat(Object(s.a)(t),[function(e,t,r){switch(r){case"children":return"*"===e||"*"===t?"*":Object(c.a)({},e,t);case"attributes":case"require":return[].concat(Object(s.a)(e||[]),Object(s.a)(t||[]));case"isMatch":if(!e||!t)return;return function(){return e.apply(void 0,arguments)||t.apply(void 0,arguments)}}}]))}function Or(e){return!e.hasChildNodes()||Array.from(e.childNodes).every((function(e){return e.nodeType===yr?!e.nodeValue.trim():e.nodeType!==wr||("BR"===e.nodeName||!e.hasAttributes()&&Or(e))}))}function Tr(e){var t=arguments.length>1&&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 xr(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&&!vr(t)&&t.nextElementSibling&&Object(mr.insertAfter)(r.createElement("br"),t),Object(mr.unwrap)(t);else if(t.nodeType===wr){var o=n[i],s=o.attributes,c=void 0===s?[]:s,l=o.classes,d=void 0===l?[]:l,f=o.children,h=o.require,p=void 0===h?[]:h,g=o.allowEmpty;if(f&&!g&&Or(t))return void Object(mr.remove)(t);if(t.hasAttributes()&&(Array.from(t.attributes).forEach((function(e){var r=e.name;"class"===r||Object(u.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)}:u.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(mr.unwrap)(t)):"BODY"===t.parentNode.nodeName&&vr(t)?(e(t.childNodes,r,n,a),Array.from(t.childNodes).some((function(e){return!vr(e)}))&&Object(mr.unwrap)(t)):e(t.childNodes,r,f,a);else for(;t.firstChild;)Object(mr.remove)(t.firstChild)}}}))}(n.body.childNodes,n,t,r),n.body.innerHTML}var Cr=window.Node,Ar=Cr.ELEMENT_NODE,Sr=Cr.TEXT_NODE,Er=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===Sr?i.nodeValue.trim()?(a.lastChild&&"P"===a.lastChild.nodeName||a.appendChild(r.createElement("P")),a.lastChild.appendChild(i)):n.removeChild(i):i.nodeType===Ar?"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?Or(i)?n.removeChild(i):a.appendChild(i):vr(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,Nr=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(mr.remove)(n);break}Object(mr.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(mr.replace)(e,function(e){var t=e.createElement("wp-block");return t.dataset.block="core/nextpage",t}(t))};function Br(e){return"OL"===e.nodeName||"UL"===e.nodeName}var Mr=function(e){if(Br(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&&Br(a)){var u=e.previousElementSibling;u?u.appendChild(e):Object(mr.unwrap)(e)}}},Lr=function(e){"BLOCKQUOTE"===e.nodeName&&(e.innerHTML=Er(e.innerHTML))};var zr=function(e,t,r){if(function(e,t){var r=e.nodeName.toLowerCase();return"figcaption"!==r&&!vr(e)&&Object(u.has)(t,["figure","children",r])}(e,r)){var n=e,a=e.parentNode;(function(e,t){var r=e.nodeName.toLowerCase();return Object(u.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)}},Hr=r(144);var Ir=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=Me(Le("from"),(function(e){return"shortcode"===e.type&&Object(u.some)(Object(u.castArray)(e.tag),(function(e){return Object(Hr.regexp)(e).test(t)}))}));if(!n)return[t];var a,i=Object(u.castArray)(n.tag),o=Object(u.first)(i);if(a=Object(Hr.next)(o,t,r)){var l=t.substr(0,a.index);if(r=a.index+a.content.length,!Object(u.includes)(a.shortcode.content||"","<")&&!/(\n|

    )\s*$/.test(l))return e(t,r);var d=Object(u.mapValues)(Object(u.pickBy)(n.attributes,(function(e){return e.shortcode})),(function(e){return e.shortcode(a.shortcode.attrs,a)}));return[l,Te(n.blockName,lr(Object(c.a)({},ge(n.blockName),{attributes:n.attributes}),a.shortcode.content,d))].concat(Object(s.a)(e(t.substr(r))))}return[t]},Dr=window.Node.COMMENT_NODE,Vr=function(e){e.nodeType===Dr&&Object(mr.remove)(e)};function Rr(e,t){return e.every((function(e){return function(e,t){if(vr(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(u.difference)([r,t],e).length}))}(e,t)&&Rr(Array.from(e.children),t)}))}function Fr(e){return"BR"===e.nodeName&&e.previousSibling&&"BR"===e.previousSibling.nodeName}var $r=function(e,t){var r=document.implementation.createHTMLDocument("");r.body.innerHTML=e;var n=Array.from(r.body.children);return!n.some(Fr)&&Rr(n,t)},qr=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(mr.wrap)(t.createElement("strong"),e),"italic"===a&&Object(mr.wrap)(t.createElement("em"),e),"line-through"===i&&Object(mr.wrap)(t.createElement("s"),e),"super"===o?Object(mr.wrap)(t.createElement("sup"),e):"sub"===o&&Object(mr.wrap)(t.createElement("sub"),e)}else"B"===e.nodeName?e=Object(mr.replaceTag)(e,"strong"):"I"===e.nodeName?e=Object(mr.replaceTag)(e,"em"):"A"===e.nodeName&&(e.target&&"_blank"===e.target.toLowerCase()?e.rel="noreferrer noopener":(e.removeAttribute("target"),e.removeAttribute("rel")))},Ur=function(e){"SCRIPT"!==e.nodeName&&"NOSCRIPT"!==e.nodeName&&"TEMPLATE"!==e.nodeName&&"STYLE"!==e.nodeName||e.parentNode.removeChild(e)},Gr=window.parseInt;function Wr(e){return"OL"===e.nodeName||"UL"===e.nodeName}var Kr=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=Gr(n[1],10)-1||0,i=e.previousElementSibling;if(!i||!Wr(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 u=e.previousElementSibling,l=u.nodeName,d=t.createElement("li"),f=u;for(e.removeChild(e.firstElementChild);e.firstChild;)d.appendChild(e.firstChild);for(;a--;)Wr(f=f.lastElementChild||f)&&(f=f.lastElementChild||f);Wr(f)||(f=f.appendChild(t.createElement(l))),f.appendChild(d),e.parentNode.removeChild(e)}}}},Yr=r(35),Zr=window,Qr=Zr.atob,Xr=Zr.File,Jr=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(Ie.a)(r,2),a=n[0],i=n[1],o=a.slice(5).split(";"),s=Object(Ie.a)(o,1)[0];if(!i||!s)return void(e.src="");try{t=Qr(i)}catch(t){return void(e.src="")}for(var c=new Uint8Array(t.length),u=0;u]+>/,""),"INLINE"!==o){var f=r||a;if(-1!==f.indexOf("\x3c!-- wp:"))return pr(f)}if(String.prototype.normalize&&(r=r.normalize()),!a||r&&!function(e){return!/<(?!br[ />])/i.test(e)}(r)||(r=rn(a),"AUTO"===o&&-1===a.indexOf("\n")&&0!==a.indexOf("

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

    ")&&(o="INLINE")),"INLINE"===o)return sn(r);var h=Ir(r),p=h.length>1;if("AUTO"===o&&!p&&$r(r,s))return sn(r);var g=Object(u.filter)(Le("from"),{type:"raw"}).map((function(e){return e.isMatch?e:Object(c.a)({},e,{isMatch:function(t){return e.selector&&t.matches(e.selector)}})})),m=_r(),b=jr(g),_=Object(u.compact)(Object(u.flatMap)(h,(function(e){if("string"!=typeof e)return e;var t=[an,Kr,Ur,Mr,Jr,qr,Nr,Vr,zr,Lr];d||t.unshift(nn);var r=Object(c.a)({},b,m);return e=xr(e=Tr(e,t,b),r),e=Er(e),on.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=Me(r,(function(t){return(0,t.isMatch)(e)}));if(!t)return Te("core/html",lr("core/html",e.outerHTML));var n=t.transform,a=t.blockName;return n?n(e):Te(a,lr(a,e.outerHTML))}))}({html:e,rawTransforms:g})})));if("AUTO"===o&&1===_.length){var v=a.trim();if(""!==v&&-1===v.indexOf("\n"))return xr(wt(_[0]),m)}return _}function un(e){var t=e.HTML,r=void 0===t?"":t;if(-1!==r.indexOf("\x3c!-- wp:"))return pr(r);var n=Ir(r),a=Object(u.filter)(Le("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=jr(a);return Object(u.compact)(Object(u.flatMap)(n,(function(e){return"string"!=typeof e?e:(e=Tr(e,[Mr,Nr,zr,Lr],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=Me(r,(function(t){return(0,t.isMatch)(e)}));if(!t)return Te("core/html",lr("core/html",e.outerHTML));var n=t.transform,a=t.blockName;return n?n(e):Te(a,lr(a,e.outerHTML))}))}({html:e=Er(e),rawTransforms:a}))})))}function ln(){return Object(i.select)("core/blocks").getCategories()}function dn(e){Object(i.dispatch)("core/blocks").setCategories(e)}function fn(e,t){Object(i.dispatch)("core/blocks").updateCategory(e,t)}function hn(){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(u.every)(t,(function(t,r){var n=Object(Ie.a)(t,3),a=n[0],i=n[2],o=e[r];return a===o.name&&hn(o.innerBlocks,i)}))}function pn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return t?Object(u.map)(t,(function(t,r){var n=Object(Ie.a)(t,3),a=n[0],i=n[1],o=n[2],s=e[r];if(s&&s.name===a){var l=pn(s.innerBlocks,o);return Object(c.a)({},s,{innerBlocks:l})}var d=ge(a),f=function(e,t){return Object(u.mapValues)(t,(function(t,r){return h(e[r],t)}))},h=function(e,t){return r=e,"html"===Object(u.get)(r,["source"])&&Object(u.isArray)(t)?Object(Y.renderToString)(t):function(e){return"query"===Object(u.get)(e,["source"])}(e)&&t?t.map((function(t){return f(e.query,t)})):t;var r};return Te(a,f(Object(u.get)(d,["attributes"],{}),i),pn([],o))})):e}r.d(t,"createBlock",(function(){return Te})),r.d(t,"cloneBlock",(function(){return xe})),r.d(t,"getPossibleBlockTransformations",(function(){return Be})),r.d(t,"switchToBlockType",(function(){return ze})),r.d(t,"getBlockTransforms",(function(){return Le})),r.d(t,"findTransform",(function(){return Me})),r.d(t,"getBlockFromExample",(function(){return He})),r.d(t,"parse",(function(){return gr})),r.d(t,"getBlockAttributes",(function(){return lr})),r.d(t,"parseWithAttributeSchema",(function(){return cr})),r.d(t,"pasteHandler",(function(){return cn})),r.d(t,"rawHandler",(function(){return un})),r.d(t,"getPhrasingContentSchema",(function(){return _r})),r.d(t,"serialize",(function(){return Ot})),r.d(t,"getBlockContent",(function(){return wt})),r.d(t,"getBlockDefaultClassName",(function(){return bt})),r.d(t,"getBlockMenuDefaultClassName",(function(){return _t})),r.d(t,"getSaveElement",(function(){return vt})),r.d(t,"getSaveContent",(function(){return kt})),r.d(t,"isValidBlockContent",(function(){return Wt})),r.d(t,"getCategories",(function(){return ln})),r.d(t,"setCategories",(function(){return dn})),r.d(t,"updateCategory",(function(){return fn})),r.d(t,"registerBlockType",(function(){return ie})),r.d(t,"unregisterBlockType",(function(){return oe})),r.d(t,"setFreeformContentHandlerName",(function(){return se})),r.d(t,"getFreeformContentHandlerName",(function(){return ce})),r.d(t,"setUnregisteredTypeHandlerName",(function(){return le})),r.d(t,"getUnregisteredTypeHandlerName",(function(){return de})),r.d(t,"setDefaultBlockName",(function(){return fe})),r.d(t,"getDefaultBlockName",(function(){return pe})),r.d(t,"setGroupingBlockName",(function(){return he})),r.d(t,"getGroupingBlockName",(function(){return ue})),r.d(t,"getBlockType",(function(){return ge})),r.d(t,"getBlockTypes",(function(){return me})),r.d(t,"getBlockSupport",(function(){return be})),r.d(t,"hasBlockSupport",(function(){return _e})),r.d(t,"isReusableBlock",(function(){return ve})),r.d(t,"getChildBlockNames",(function(){return ke})),r.d(t,"hasChildBlocks",(function(){return we})),r.d(t,"hasChildBlocksWithInserterSupport",(function(){return ye})),r.d(t,"unstable__bootstrapServerSideBlockDefinitions",(function(){return ae})),r.d(t,"registerBlockStyle",(function(){return je})),r.d(t,"unregisterBlockStyle",(function(){return Oe})),r.d(t,"isUnmodifiedDefaultBlock",(function(){return Q})),r.d(t,"normalizeIconObject",(function(){return J})),r.d(t,"isValidIcon",(function(){return X})),r.d(t,"doBlocksMatchTemplate",(function(){return hn})),r.d(t,"synchronizeBlocksWithTemplate",(function(){return pn})),r.d(t,"children",(function(){return Qt})),r.d(t,"node",(function(){return ar})),r.d(t,"withBlockContentContext",(function(){return gt}))},35:function(e,t){!function(){e.exports=this.wp.blob}()},36: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;n1&&(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=B(e,360),t=B(t,100),r=B(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=N(r),{ok:d,format:e.format||f,r:u(255,l(t.r,0)),g:u(255,l(t.g,0)),b:u(255,l(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=B(e,255),t=B(t,255),r=B(r,255);var n,a,i=l(e,t,r),o=u(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 S(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=N(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(I(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*B(this._r,255))+"%",g:c(100*B(this._g,255))+"%",b:c(100*B(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+c(100*B(this._r,255))+"%, "+c(100*B(this._g,255))+"%, "+c(100*B(this._b,255))+"%)":"rgba("+c(100*B(this._r,255))+"%, "+c(100*B(this._g,255))+"%, "+c(100*B(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(k,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(v,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(A,arguments)},complement:function(){return this._applyCombination(O,arguments)},monochromatic:function(){return this._applyCombination(S,arguments)},splitcomplement:function(){return this._applyCombination(C,arguments)},triad:function(){return this._applyCombination(T,arguments)},tetrad:function(){return this._applyCombination(x,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 u=0;uc&&(c=n,s=f(t[u]));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 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 r=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=u(t,l(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),a.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function M(e){return u(1,l(0,e))}function L(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 I(e){return a.round(255*parseFloat(e)).toString(16)}function D(e){return L(e)/255}var V,R,F,$=(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 q(e){return!!$.CSS_UNIT.exec(e)}e.exports?e.exports=f:void 0===(n=function(){return f}.call(t,r,t,e))||(e.exports=n)}(Math)},52:function(e,t){!function(){e.exports=this.wp.htmlEntities}()},67:function(e,t,r){var n=r(85),a=r(86);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)}},69: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(10);function a(e){for(var t=1;t>>((3&t)<<3)&255;return a}}},86: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("")}}}); \ No newline at end of file +(function(){function a(e){"use strict";var t={omitExtraWLInCodeBlocks:{defaultValue:!1,describe:"Omit the default extra whiteline added to code blocks",type:"boolean"},noHeaderId:{defaultValue:!1,describe:"Turn on/off generated header id",type:"boolean"},prefixHeaderId:{defaultValue:!1,describe:"Add a prefix to the generated header ids. Passing a string will prefix that string to the header id. Setting to true will add a generic 'section-' prefix",type:"string"},rawPrefixHeaderId:{defaultValue:!1,describe:'Setting this option to true will prevent showdown from modifying the prefix. This might result in malformed IDs (if, for instance, the " char is used in the prefix)',type:"boolean"},ghCompatibleHeaderId:{defaultValue:!1,describe:"Generate header ids compatible with github style (spaces are replaced with dashes, a bunch of non alphanumeric chars are removed)",type:"boolean"},rawHeaderId:{defaultValue:!1,describe:"Remove only spaces, ' and \" from generated header ids (including prefixes), replacing them with dashes (-). WARNING: This might result in malformed ids",type:"boolean"},headerLevelStart:{defaultValue:!1,describe:"The header blocks level start",type:"integer"},parseImgDimensions:{defaultValue:!1,describe:"Turn on/off image dimension parsing",type:"boolean"},simplifiedAutoLink:{defaultValue:!1,describe:"Turn on/off GFM autolink style",type:"boolean"},excludeTrailingPunctuationFromURLs:{defaultValue:!1,describe:"Excludes trailing punctuation from links generated with autoLinking",type:"boolean"},literalMidWordUnderscores:{defaultValue:!1,describe:"Parse midword underscores as literal underscores",type:"boolean"},literalMidWordAsterisks:{defaultValue:!1,describe:"Parse midword asterisks as literal asterisks",type:"boolean"},strikethrough:{defaultValue:!1,describe:"Turn on/off strikethrough support",type:"boolean"},tables:{defaultValue:!1,describe:"Turn on/off tables support",type:"boolean"},tablesHeaderId:{defaultValue:!1,describe:"Add an id to table headers",type:"boolean"},ghCodeBlocks:{defaultValue:!0,describe:"Turn on/off GFM fenced code blocks support",type:"boolean"},tasklists:{defaultValue:!1,describe:"Turn on/off GFM tasklist support",type:"boolean"},smoothLivePreview:{defaultValue:!1,describe:"Prevents weird effects in live previews due to incomplete input",type:"boolean"},smartIndentationFix:{defaultValue:!1,description:"Tries to smartly fix indentation in es6 strings",type:"boolean"},disableForced4SpacesIndentedSublists:{defaultValue:!1,description:"Disables the requirement of indenting nested sublists by 4 spaces",type:"boolean"},simpleLineBreaks:{defaultValue:!1,description:"Parses simple line breaks as
    (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),u="vanilla",l={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,u=n||"",l=u.indexOf("g")>-1,d=new RegExp(t+"|"+r,"g"+u.replace(/g/g,"")),f=new RegExp(t,u.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),!l)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 l=[];0!==s[0].wholeMatch.start&&l.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=u,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])||(u=r.gTitles[a])}var l='"};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,v=function(e){"use strict";return function(t,r,n,a,o,s,c){var u=n=n.replace(i.helper.regexes.asteriskDashAndColon,i.helper.escapeCharactersCallback),l="",d="",f=r||"",h=c||"";return/^www\./i.test(n)&&(n=n.replace(/^www\./i,"http://www.")),e.excludeTrailingPunctuationFromURLs&&s&&(l=s),e.openLinksInNewWindow&&(d=' target="¨E95Eblank"'),f+'"+u+""+l+h}},k=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,v(t))).replace(_,k(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,v(t)):e.replace(p,v(t))).replace(b,k(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 u 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(u))switch(u.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[u]+'"',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"),u="<"+n[o]+"\\b[^>]*>",l="";-1!==(s=i.helper.regexIndexOf(e,c));){var d=i.helper.splitAtIndex(e,s),f=i.helper.replaceRecursiveRegExp(d[1],a,u,l,"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)+'"',u=""+o+"";return i.subParser("hashBlock")(u,t,r)}))).replace(o,(function(e,a){var o=i.subParser("spanGamut")(a,t,r),s=t.noHeaderId?"":' id="'+c(a)+'"',u=n+1,l=""+o+"";return i.subParser("hashBlock")(l,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 u=i.subParser("spanGamut")(s,t,r),l=t.noHeaderId?"":' id="'+c(o)+'"',d=n-1+a.length,f=""+u+"";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,u){var l=r.gUrls,d=r.gTitles,f=r.gDimensions;if(n=n.toLowerCase(),u||(u=""),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(l[n]))return e;a=l[n],i.helper.isUndefined(d[n])||(u=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,s,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,u,l){l=l&&""!==l.trim();var d=i.subParser("outdent")(c,t,r),f="";return u&&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,u="";if(-1!==e.search(c))!function t(l){var d=l.search(c),f=a(e,r);-1!==d?(u+="\n\n<"+r+f+">\n"+n(l.slice(0,d),!!i)+"\n",c="ul"===(r="ul"===r?"ol":"ul")?o:s,t(l.slice(d))):u+="\n\n<"+r+f+">\n"+n(l,!!i)+"\n"}(e);else{var l=a(e,r);u="\n\n<"+r+l+">\n"+n(e,!!i)+"\n"}return u}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(l)&&(d=!0)}a[s]=l}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,u){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+u:(u&&(r.gTitles[n]=u.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)},23:function(e,t,r){"use strict";var n=r(38);var a=r(39);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}))},25:function(e,t){!function(){e.exports=this.wp.dom}()},27:function(e,t){!function(){e.exports=this.wp.hooks}()},30: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}))},347:function(e,t,r){"use strict";r.r(t);var n={};r.r(n),r.d(n,"getBlockTypes",(function(){return k})),r.d(n,"getBlockType",(function(){return w})),r.d(n,"getBlockStyles",(function(){return y})),r.d(n,"getCategories",(function(){return j})),r.d(n,"getDefaultBlockName",(function(){return O})),r.d(n,"getFreeformFallbackBlockName",(function(){return T})),r.d(n,"getUnregisteredFallbackBlockName",(function(){return x})),r.d(n,"getGroupingBlockName",(function(){return C})),r.d(n,"getChildBlockNames",(function(){return A})),r.d(n,"getBlockSupport",(function(){return S})),r.d(n,"hasBlockSupport",(function(){return E})),r.d(n,"isMatchingSearchTerm",(function(){return P})),r.d(n,"hasChildBlocks",(function(){return N})),r.d(n,"hasChildBlocksWithInserterSupport",(function(){return B}));var a={};r.r(a),r.d(a,"addBlockTypes",(function(){return M})),r.d(a,"removeBlockTypes",(function(){return L})),r.d(a,"addBlockStyles",(function(){return z})),r.d(a,"removeBlockStyles",(function(){return H})),r.d(a,"setDefaultBlockName",(function(){return I})),r.d(a,"setFreeformFallbackBlockName",(function(){return D})),r.d(a,"setUnregisteredFallbackBlockName",(function(){return V})),r.d(a,"setGroupingBlockName",(function(){return R})),r.d(a,"setCategories",(function(){return F})),r.d(a,"updateCategory",(function(){return $}));var i=r(4),o=r(10),s=r(17),c=r(7),u=r(2),l=r(1),d=[{slug:"common",title:Object(l.__)("Common Blocks")},{slug:"formatting",title:Object(l.__)("Formatting")},{slug:"layout",title:Object(l.__)("Layout Elements")},{slug:"widgets",title:Object(l.__)("Widgets")},{slug:"embed",title:Object(l.__)("Embeds")},{slug:"reusable",title:Object(l.__)("Reusable Blocks")}];function f(e){return function(){var t=arguments.length>0&&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"),m=f("SET_GROUPING_BLOCK_NAME");var b=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(u.keyBy)(Object(u.map)(t.blockTypes,(function(e){return Object(u.omit)(e,"styles ")})),"name"));case"REMOVE_BLOCK_TYPES":return Object(u.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(u.mapValues)(Object(u.keyBy)(t.blockTypes,"name"),(function(t){return Object(u.uniqBy)([].concat(Object(s.a)(Object(u.get)(t,["styles"],[])),Object(s.a)(Object(u.get)(e,[t.name],[]))),(function(e){return e.name}))})));case"ADD_BLOCK_STYLES":return Object(c.a)({},e,Object(o.a)({},t.blockName,Object(u.uniqBy)([].concat(Object(s.a)(Object(u.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(u.filter)(Object(u.get)(e,[t.blockName],[]),(function(e){return-1===t.styleNames.indexOf(e.name)}))))}return e},defaultBlockName:h,freeformFallbackBlockName:p,unregisteredFallbackBlockName:g,groupingBlockName:m,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(u.isEmpty)(t.category))return e;if(Object(u.find)(e,["slug",t.slug]))return Object(u.map)(e,(function(e){return e.slug===t.slug?Object(c.a)({},e,t.category):e}))}return e}}),_=r(36),v=function(e,t){return"string"==typeof t?w(e,t):t},k=Object(_.a)((function(e){return Object.values(e.blockTypes)}),(function(e){return[e.blockTypes]}));function w(e,t){return e.blockTypes[t]}function y(e,t){return e.blockStyles[t]}function j(e){return e.categories}function O(e){return e.defaultBlockName}function T(e){return e.freeformFallbackBlockName}function x(e){return e.unregisteredFallbackBlockName}function C(e){return e.groupingBlockName}var A=Object(_.a)((function(e,t){return Object(u.map)(Object(u.filter)(e.blockTypes,(function(e){return Object(u.includes)(e.parent,t)})),(function(e){return e.name}))}),(function(e){return[e.blockTypes]})),S=function(e,t,r,n){var a=v(e,t);return Object(u.get)(a,["supports",r],n)};function E(e,t,r,n){return!!S(e,t,r,n)}function P(e,t,r){var n=v(e,t),a=Object(u.flow)([u.deburr,function(e){return e.toLowerCase()},function(e){return e.trim()}]),i=a(r),o=Object(u.flow)([a,function(e){return Object(u.includes)(e,i)}]);return o(n.title)||Object(u.some)(n.keywords,o)||o(n.category)}var N=function(e,t){return A(e,t).length>0},B=function(e,t){return Object(u.some)(A(e,t),(function(t){return E(e,t,"inserter",!0)}))};function M(e){return{type:"ADD_BLOCK_TYPES",blockTypes:Object(u.castArray)(e)}}function L(e){return{type:"REMOVE_BLOCK_TYPES",names:Object(u.castArray)(e)}}function z(e,t){return{type:"ADD_BLOCK_STYLES",styles:Object(u.castArray)(t),blockName:e}}function H(e,t){return{type:"REMOVE_BLOCK_STYLES",styleNames:Object(u.castArray)(t),blockName:e}}function I(e){return{type:"SET_DEFAULT_BLOCK_NAME",name:e}}function D(e){return{type:"SET_FREEFORM_FALLBACK_BLOCK_NAME",name:e}}function V(e){return{type:"SET_UNREGISTERED_FALLBACK_BLOCK_NAME",name:e}}function R(e){return{type:"SET_GROUPING_BLOCK_NAME",name:e}}function F(e){return{type:"SET_CATEGORIES",categories:e}}function $(e,t){return{type:"UPDATE_CATEGORY",slug:e,category:t}}Object(i.registerStore)("core/blocks",{reducer:b,selectors:n,actions:a});var q=r(67),U=r.n(q),G=r(27),W=r(48),K=r.n(W),Y=r(0),Z=["#191e23","#f8f9f9"];function Q(e){var t=pe();if(e.name!==t)return!1;Q.block&&Q.block.name===t||(Q.block=Te(t));var r=Q.block,n=ge(t);return Object(u.every)(n.attributes,(function(t,n){return r.attributes[n]===e.attributes[n]}))}function X(e){return!!e&&(Object(u.isString)(e)||Object(Y.isValidElement)(e)||Object(u.isFunction)(e)||e instanceof Y.Component)}function J(e){if(X(e))return{src:e};if(Object(u.has)(e,["background"])){var t=K()(e.background);return Object(c.a)({},e,{foreground:e.foreground?e.foreground:Object(W.mostReadable)(t,Z,{includeFallbackColors:!0,level:"AA",size:"large"}).toHexString(),shadowColor:t.setAlpha(.3).toRgbString()})}return e}function ee(e){return Object(u.isString)(e)?ge(e):e}var te=["attributes","supports","save","migrate","isEligible"],re={icon:"block-default",attributes:{},keywords:[],save:function(){return null}},ne={};function ae(e){ne=Object(c.a)({},ne,e)}function ie(e,t){if(t=Object(c.a)({name:e},re,Object(u.get)(ne,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{var r=Object(c.a)({},t);if((t=Object(G.applyFilters)("blocks.registerBlockType",t,e)).deprecated&&(t.deprecated=t.deprecated.map((function(t){return Object(u.pick)(Object(G.applyFilters)("blocks.registerBlockType",Object(c.a)({},Object(u.omit)(r,te),t),e),te)}))),Object(u.isPlainObject)(t))if(Object(u.isFunction)(t.save))if("edit"in t&&!Object(u.isFunction)(t.edit))console.error('The "edit" property must be a valid function.');else if("category"in t)if("category"in t&&!Object(u.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=J(t.icon),X(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://developer.wordpress.org/block-editor/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 a valid function.');else console.error("Block settings must be a valid object.")}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 oe(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 se(e){Object(i.dispatch)("core/blocks").setFreeformFallbackBlockName(e)}function ce(){return Object(i.select)("core/blocks").getFreeformFallbackBlockName()}function ue(){return Object(i.select)("core/blocks").getGroupingBlockName()}function le(e){Object(i.dispatch)("core/blocks").setUnregisteredFallbackBlockName(e)}function de(){return Object(i.select)("core/blocks").getUnregisteredFallbackBlockName()}function fe(e){Object(i.dispatch)("core/blocks").setDefaultBlockName(e)}function he(e){Object(i.dispatch)("core/blocks").setGroupingBlockName(e)}function pe(){return Object(i.select)("core/blocks").getDefaultBlockName()}function ge(e){return Object(i.select)("core/blocks").getBlockType(e)}function me(){return Object(i.select)("core/blocks").getBlockTypes()}function be(e,t,r){return Object(i.select)("core/blocks").getBlockSupport(e,t,r)}function _e(e,t,r){return Object(i.select)("core/blocks").hasBlockSupport(e,t,r)}function ve(e){return"core/block"===e.name}var ke=function(e){return Object(i.select)("core/blocks").getChildBlockNames(e)},we=function(e){return Object(i.select)("core/blocks").hasChildBlocks(e)},ye=function(e){return Object(i.select)("core/blocks").hasChildBlocksWithInserterSupport(e)},je=function(e,t){Object(i.dispatch)("core/blocks").addBlockStyles(e,t)},Oe=function(e,t){Object(i.dispatch)("core/blocks").removeBlockStyles(e,t)};function Te(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=ge(e),a=Object(u.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:U()(),name:e,isValid:!0,attributes:a,innerBlocks:r}}function xe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=U()();return Object(c.a)({},e,{clientId:n,attributes:Object(c.a)({},e.attributes,t),innerBlocks:r||e.innerBlocks.map((function(e){return xe(e)}))})}var Ce=function(e,t,r){if(Object(u.isEmpty)(r))return!1;var n=r.length>1,a=Object(u.first)(r).name;if(!(Ee(e)||!n||e.isMultiBlock))return!1;if(!Ee(e)&&!Object(u.every)(r,{name:a}))return!1;if(!("block"===e.type))return!1;var i=Object(u.first)(r);if(!("from"!==t||-1!==e.blocks.indexOf(i.name)||Ee(e)))return!1;if(!n&&Pe(i.name)&&Pe(e.blockName))return!1;if(Object(u.isFunction)(e.isMatch)){var o=e.isMultiBlock?r.map((function(e){return e.attributes})):i.attributes;if(!e.isMatch(o))return!1}return!0},Ae=function(e){if(Object(u.isEmpty)(e))return[];var t=me();return Object(u.filter)(t,(function(t){return!!Me(Le("from",t.name),(function(t){return Ce(t,"from",e)}))}))},Se=function(e){if(Object(u.isEmpty)(e))return[];var t=Le("to",ge(Object(u.first)(e).name).name),r=Object(u.filter)(t,(function(t){return t&&Ce(t,"to",e)}));return Object(u.flatMap)(r,(function(e){return e.blocks})).map((function(e){return ge(e)}))},Ee=function(e){return e&&"block"===e.type&&Array.isArray(e.blocks)&&e.blocks.includes("*")},Pe=function(e){return e===ue()},Ne=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!e.length)return!1;var t=e[0].name;return Object(u.every)(e,["name",t])};function Be(e){if(Object(u.isEmpty)(e))return[];var t=Ae(e),r=Se(e);return Object(u.uniq)([].concat(Object(s.a)(t),Object(s.a)(r)))}function Me(e,t){for(var r=Object(G.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(!Pe(t)&&n&&!Ne(r))return null;var o,s=Le("from",t),l=Me(Le("to",i),(function(e){return"block"===e.type&&(Ee(e)||-1!==e.blocks.indexOf(t))&&(!n||e.isMultiBlock)}))||Me(s,(function(e){return"block"===e.type&&(Ee(e)||-1!==e.blocks.indexOf(i))&&(!n||e.isMultiBlock)}));if(!l)return null;if(o=l.isMultiBlock?Object(u.has)(l,"__experimentalConvert")?l.__experimentalConvert(r):l.transform(r.map((function(e){return e.attributes})),r.map((function(e){return e.innerBlocks}))):Object(u.has)(l,"__experimentalConvert")?l.__experimentalConvert(a):l.transform(a.attributes,a.innerBlocks),!Object(u.isObjectLike)(o))return null;if((o=Object(u.castArray)(o)).some((function(e){return!ge(e.name)})))return null;var d=Object(u.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(G.applyFilters)("blocks.switchToBlockType.transformedBlock",n,e)}))}var He=function e(t,r){return Te(t,r.attributes,Object(u.map)(r.innerBlocks,(function(t){return e(t.name,t)})))},Ie=r(23);var De,Ve=function(){return De||(De=document.implementation.createHTMLDocument("")),De};function Re(e,t){if(t){if("string"==typeof e){var r=Ve();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]=Re(e,t[n]),r}),{})}}function Fe(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 $e=r(69),qe=r(222),Ue=r(38),Ge=r(30),We=r(39);var Ke=r(12),Ye=r(11),Ze=/^#[xX]([A-Fa-f0-9]+)$/,Qe=/^#([0-9]+)$/,Xe=/^([A-Za-z0-9]+)$/,Je=(function(){function e(e){this.named=e}e.prototype.parse=function(e){if(e){var t=e.match(Ze);return t?String.fromCharCode(parseInt(t[1],16)):(t=e.match(Qe))?String.fromCharCode(parseInt(t[1],10)):(t=e.match(Xe))?this.named[t[1]]:void 0}}}(),/[\t\n\f ]/),et=/[A-Za-z]/,tt=/\r\n?/g;function rt(e){return Je.test(e)}function nt(e){return et.test(e)}var at=function(){function e(e,t){this.delegate=e,this.entityParser=t,this.state="beforeData",this.line=-1,this.column=-1,this.input="",this.index=-1,this.tagNameBuffer="",this.states={beforeData:function(){var e=this.peek();if("<"!==e||this.isIgnoredEndTag()){if("\n"===e){var t=this.tagNameBuffer.toLowerCase();"pre"!==t&&"textarea"!==t||this.consume()}this.transitionTo("data"),this.delegate.beginData()}else this.transitionTo("tagOpen"),this.markTagStart(),this.consume()},data:function(){var e=this.peek(),t=this.tagNameBuffer.toLowerCase();"<"!==e||this.isIgnoredEndTag()?"&"===e&&"script"!==t&&"style"!==t?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(e)):(this.delegate.finishData(),this.transitionTo("tagOpen"),this.markTagStart(),this.consume())},tagOpen:function(){var e=this.consume();"!"===e?this.transitionTo("markupDeclarationOpen"):"/"===e?this.transitionTo("endTagOpen"):("@"===e||":"===e||nt(e))&&(this.transitionTo("tagName"),this.tagNameBuffer="",this.delegate.beginStartTag(),this.appendToTagName(e))},markupDeclarationOpen:function(){"-"===this.consume()&&"-"===this.peek()&&(this.consume(),this.transitionTo("commentStart"),this.delegate.beginComment())},commentStart:function(){var e=this.consume();"-"===e?this.transitionTo("commentStartDash"):">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData(e),this.transitionTo("comment"))},commentStartDash:function(){var e=this.consume();"-"===e?this.transitionTo("commentEnd"):">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("-"),this.transitionTo("comment"))},comment:function(){var e=this.consume();"-"===e?this.transitionTo("commentEndDash"):this.delegate.appendToCommentData(e)},commentEndDash:function(){var e=this.consume();"-"===e?this.transitionTo("commentEnd"):(this.delegate.appendToCommentData("-"+e),this.transitionTo("comment"))},commentEnd:function(){var e=this.consume();">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("--"+e),this.transitionTo("comment"))},tagName:function(){var e=this.consume();rt(e)?this.transitionTo("beforeAttributeName"):"/"===e?this.transitionTo("selfClosingStartTag"):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(e)},endTagName:function(){var e=this.consume();rt(e)?(this.transitionTo("beforeAttributeName"),this.tagNameBuffer=""):"/"===e?(this.transitionTo("selfClosingStartTag"),this.tagNameBuffer=""):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData"),this.tagNameBuffer=""):this.appendToTagName(e)},beforeAttributeName:function(){var e=this.peek();rt(e)?this.consume():"/"===e?(this.transitionTo("selfClosingStartTag"),this.consume()):">"===e?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):"="===e?(this.delegate.reportSyntaxError("attribute name cannot start with equals sign"),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e)):(this.transitionTo("attributeName"),this.delegate.beginAttribute())},attributeName:function(){var e=this.peek();rt(e)?(this.transitionTo("afterAttributeName"),this.consume()):"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"="===e?(this.transitionTo("beforeAttributeValue"),this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("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();rt(e)?this.consume():"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"="===e?(this.consume(),this.transitionTo("beforeAttributeValue")):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e))},beforeAttributeValue:function(){var e=this.peek();rt(e)?this.consume():'"'===e?(this.transitionTo("attributeValueDoubleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):"'"===e?(this.transitionTo("attributeValueSingleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.transitionTo("attributeValueUnquoted"),this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(e))},attributeValueDoubleQuoted:function(){var e=this.consume();'"'===e?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(e)},attributeValueSingleQuoted:function(){var e=this.consume();"'"===e?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(e)},attributeValueUnquoted:function(){var e=this.peek();rt(e)?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("beforeAttributeName")):"/"===e?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"&"===e?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef()||"&")):">"===e?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.consume(),this.delegate.appendToAttributeValue(e))},afterAttributeValueQuoted:function(){var e=this.peek();rt(e)?(this.consume(),this.transitionTo("beforeAttributeName")):"/"===e?(this.consume(),this.transitionTo("selfClosingStartTag")):">"===e?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},selfClosingStartTag:function(){">"===this.peek()?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},endTagOpen:function(){var e=this.consume();("@"===e||":"===e||nt(e))&&(this.transitionTo("endTagName"),this.tagNameBuffer="",this.delegate.beginEndTag(),this.appendToTagName(e))}},this.reset()}return e.prototype.reset=function(){this.transitionTo("beforeData"),this.input="",this.tagNameBuffer="",this.index=0,this.line=1,this.column=0,this.delegate.reset()},e.prototype.transitionTo=function(e){this.state=e},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(tt,"\n")}(e);this.index"!==this.input.substring(this.index,this.index+8)||"style"===e&&""!==this.input.substring(this.index,this.index+8)||"script"===e&&"<\/script>"!==this.input.substring(this.index,this.index+9)},e}(),it=function(){function e(e,t){void 0===t&&(t={}),this.options=t,this.token=null,this.startLine=1,this.startColumn=0,this.tokens=[],this.tokenizer=new at(this,e),this._currentAttribute=void 0}return e.prototype.tokenize=function(e){return this.tokens=[],this.tokenizer.tokenize(e),this.tokens},e.prototype.tokenizePart=function(e){return this.tokens=[],this.tokenizer.tokenizePart(e),this.tokens},e.prototype.tokenizeEOF=function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},e.prototype.reset=function(){this.token=null,this.startLine=1,this.startColumn=0},e.prototype.current=function(){var e=this.token;if(null===e)throw new Error("token was unexpectedly null");if(0===arguments.length)return e;for(var t=0;t1?r-1:0),a=1;a2&&void 0!==arguments[2]?arguments[2]:[],n=ee(e),a=n.save;if(a.prototype instanceof Y.Component){var i=new a({attributes:t});a=i.render.bind(i)}var o=a({attributes:t,innerBlocks:r});if(Object(u.isObject)(o)&&Object(G.hasFilter)("blocks.getSaveContent.extraProps")){var s=Object(G.applyFilters)("blocks.getSaveContent.extraProps",Object(c.a)({},o.props),n,t);ut()(s,o.props)||(o=Object(Y.cloneElement)(o,s))}return o=Object(G.applyFilters)("blocks.getSaveElement",o,n,t),Object(Y.createElement)(mt,{innerBlocks:r},o)}function kt(e,t,r){var n=ee(e);return Object(Y.renderToString)(vt(n,t,r))}function wt(e){var t=e.originalContent;if(e.isValid||e.innerBlocks.length)try{t=kt(e.name,e.attributes,e.innerBlocks)}catch(e){}return t}function yt(e,t,r){var n=Object(u.isEmpty)(t)?"":function(e){return JSON.stringify(e).replace(/--/g,"\\u002d\\u002d").replace(//g,"\\u003e").replace(/&/g,"\\u0026").replace(/\\"/g,"\\u0022")}(t)+" ",a=Object(u.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 jt(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).isInnerBlocks,r=void 0!==t&&t,n=e.name,a=wt(e);return n===de()||!r&&n===ce()?a:yt(n,function(e,t){return Object(u.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)}),{})}(ge(n),e.attributes),a)}function Ot(e,t){return Object(u.castArray)(e).map((function(e){return jt(e,t)})).join("\n\n")}var Tt=/[\t\n\r\v\f ]+/g,xt=/^[\t\n\r\v\f ]*$/,Ct=/^url\s*\(['"\s]*(.*?)['"\s]*\)$/,At=["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"],St=[].concat(At,["autocapitalize","autocomplete","charset","contenteditable","crossorigin","decoding","dir","draggable","enctype","formenctype","formmethod","http-equiv","inputmode","kind","method","preload","scope","shape","spellcheck","translate","type","wrap"]),Et=[u.identity,function(e){return Lt(e).join(" ")}],Pt=/^[\da-z]+$/i,Nt=/^#\d+$/,Bt=/^#x[\da-f]+$/i;var Mt=function(){function e(){Object(Ke.a)(this,e)}return Object(Ye.a)(e,[{key:"parse",value:function(e){if(t=e,Pt.test(t)||Nt.test(t)||Bt.test(t))return Object(ot.decodeEntities)("&"+e+";");var t}}]),e}();function Lt(e){return e.trim().split(Tt)}function zt(e){return e.attributes.filter((function(e){var t=Object(Ie.a)(e,2),r=t[0];return t[1]||0===r.indexOf("data-")||Object(u.includes)(St,r)}))}function Ht(e,t){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:st(),n=e.chars,a=t.chars,i=0;i2&&void 0!==arguments[2]?arguments[2]:st();if(e.length!==t.length)return r.warning("Expected attributes %o, instead saw %o.",t,e),!1;var n=[e,t].map(u.fromPairs),a=Object(Ie.a)(n,2),i=a[0],o=a[1];for(var s in i){if(!o.hasOwnProperty(s))return r.warning("Encountered unexpected attribute `%s`.",s),!1;var c=i[s],l=o[s],d=Vt[s];if(d){if(!d(c,l))return r.warning("Expected attribute `%s` of value `%s`, saw `%s`.",s,l,c),!1}else if(c!==l)return r.warning("Expected attribute `%s` of value `%s`, saw `%s`.",s,l,c),!1}return!0}var Ft={StartTag:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:st();return e.tagName!==t.tagName?(r.warning("Expected tag name `%s`, instead saw `%s`.",t.tagName,e.tagName),!1):Rt.apply(void 0,Object(s.a)([e,t].map(zt)).concat([r]))},Chars:Ht,Comment:Ht};function $t(e){for(var t;t=e.shift();){if("Chars"!==t.type)return t;if(!xt.test(t.chars))return t}}function qt(e,t){return!!e.selfClosing&&!(!t||t.tagName!==e.tagName||"EndTag"!==t.type)}function Ut(e,t){var r,n,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:st(),i=[e,t].map((function(e){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:st();try{return new it(new Mt).tokenize(e)}catch(r){t.warning("Malformed HTML detected: %s",e)}return null}(e,a)})),o=Object(Ie.a)(i,2),s=o[0],c=o[1];if(!s||!c)return!1;for(;r=$t(s);){if(!(n=$t(c)))return a.warning("Expected end of content, instead saw %o.",r),!1;if(r.type!==n.type)return a.warning("Expected token of type `%s` (%o), instead saw `%s` (%o).",n.type,n,r.type,r),!1;var u=Ft[r.type];if(u&&!u(r,n,a))return!1;qt(r,c[0])?$t(c):qt(n,s[0])&&$t(s)}return!(n=$t(c))||(a.warning("Expected %o, instead saw end of content.",n),!1)}function Gt(e,t,r){var n,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){var e=[],t=st();return{error:function(){for(var r=arguments.length,n=new Array(r),a=0;a2&&void 0!==arguments[2]?arguments[2]:{},n=ee(e),a=Object(u.mapValues)(n.attributes,(function(e,n){return ur(n,e,t,r)}));return Object(G.applyFilters)("blocks.getBlockAttributes",a,n,t,r)}function dr(e){var t=e.blockName,r=e.attrs,n=e.innerBlocks,a=void 0===n?[]:n,i=e.innerHTML,o=e.innerContent,l=ce(),d=de()||l;r=r||{},i=i.trim();var f=t||l;"core/cover-image"===f&&(f="core/cover"),"core/text"!==f&&"core/cover-text"!==f||(f="core/paragraph"),f===l&&(i=Object($e.autop)(i).trim());var h=ge(f);if(!h){var p={attrs:r,blockName:t,innerBlocks:a,innerContent:o},g=fr(p,{isCommentDelimited:!1}),m=fr(p,{isCommentDelimited:!0});f&&(i=m),r={originalName:t,originalContent:m,originalUndelimitedContent:g},h=ge(f=d)}a=(a=a.map(dr)).filter((function(e){return e}));var b=f===l||f===d;if(h&&(i||!b)){var _=Te(f,lr(h,i,r),a);if(!b){var v=Gt(h,_.attributes,i),k=v.isValid,w=v.validationIssues;_.isValid=k,_.validationIssues=w}return _.originalContent=_.originalContent||i,(_=function(e,t){var r=ge(e.name),n=r.deprecated;if(!n||!n.length)return e;for(var a=e,i=a.originalContent,o=a.innerBlocks,l=0;l0&&(_.isValid?console.info("Block successfully updated for `%s` (%o).\n\nNew content generated by `save` function:\n\n%s\n\nContent retrieved from post body:\n\n%s",h.name,h,kt(h,_.attributes),_.originalContent):_.validationIssues.forEach((function(e){var t=e.log,r=e.args;return t.apply(void 0,Object(s.a)(r))}))),_}}function fr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.isCommentDelimited,n=void 0===r||r,a=e.blockName,i=e.attrs,o=void 0===i?{}:i,s=e.innerBlocks,c=void 0===s?[]:s,u=e.innerContent,l=0,d=(void 0===u?[]:u).map((function(e){return null!==e?e:fr(c[l++],t)})).join("\n").replace(/\n+/g,"\n").trim();return n?yt(a,o,d):d}var hr,pr=(hr=qe.parse,function(e){return hr(e).reduce((function(e,t){var r=dr(t);return r&&e.push(r),e}),[])}),gr=pr,mr=r(25),br={strong:{},em:{},s:{},del:{},ins:{},a:{attributes:["href","target","rel"]},code:{},abbr:{attributes:["title"]},sub:{},sup:{},br:{},"#text":{}};function _r(){return br}function vr(e){var t=e.nodeName.toLowerCase();return _r().hasOwnProperty(t)||"span"===t}["strong","em","s","del","ins","a","code","abbr","sub","sup"].forEach((function(e){br[e].children=Object(u.omit)(br,e)}));var kr=window.Node,wr=kr.ELEMENT_NODE,yr=kr.TEXT_NODE;function jr(e){var t=e.map((function(e){var t=e.isMatch,r=e.blockName,n=e.schema,a=_e(r,"anchor");return a||t?Object(u.mapValues)(n,(function(e){var r=e.attributes||[];return a&&(r=[].concat(Object(s.a)(r),["id"])),Object(c.a)({},e,{attributes:r,isMatch:t||void 0})})):n}));return u.mergeWith.apply(void 0,[{}].concat(Object(s.a)(t),[function(e,t,r){switch(r){case"children":return"*"===e||"*"===t?"*":Object(c.a)({},e,t);case"attributes":case"require":return[].concat(Object(s.a)(e||[]),Object(s.a)(t||[]));case"isMatch":if(!e||!t)return;return function(){return e.apply(void 0,arguments)||t.apply(void 0,arguments)}}}]))}function Or(e){return!e.hasChildNodes()||Array.from(e.childNodes).every((function(e){return e.nodeType===yr?!e.nodeValue.trim():e.nodeType!==wr||("BR"===e.nodeName||!e.hasAttributes()&&Or(e))}))}function Tr(e){var t=arguments.length>1&&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 xr(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&&!vr(t)&&t.nextElementSibling&&Object(mr.insertAfter)(r.createElement("br"),t),Object(mr.unwrap)(t);else if(t.nodeType===wr){var o=n[i],s=o.attributes,c=void 0===s?[]:s,l=o.classes,d=void 0===l?[]:l,f=o.children,h=o.require,p=void 0===h?[]:h,g=o.allowEmpty;if(f&&!g&&Or(t))return void Object(mr.remove)(t);if(t.hasAttributes()&&(Array.from(t.attributes).forEach((function(e){var r=e.name;"class"===r||Object(u.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)}:u.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(mr.unwrap)(t)):"BODY"===t.parentNode.nodeName&&vr(t)?(e(t.childNodes,r,n,a),Array.from(t.childNodes).some((function(e){return!vr(e)}))&&Object(mr.unwrap)(t)):e(t.childNodes,r,f,a);else for(;t.firstChild;)Object(mr.remove)(t.firstChild)}}}))}(n.body.childNodes,n,t,r),n.body.innerHTML}var Cr=window.Node,Ar=Cr.ELEMENT_NODE,Sr=Cr.TEXT_NODE,Er=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===Sr?i.nodeValue.trim()?(a.lastChild&&"P"===a.lastChild.nodeName||a.appendChild(r.createElement("P")),a.lastChild.appendChild(i)):n.removeChild(i):i.nodeType===Ar?"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?Or(i)?n.removeChild(i):a.appendChild(i):vr(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,Nr=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(mr.remove)(n);break}Object(mr.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(mr.replace)(e,function(e){var t=e.createElement("wp-block");return t.dataset.block="core/nextpage",t}(t))};function Br(e){return"OL"===e.nodeName||"UL"===e.nodeName}var Mr=function(e){if(Br(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&&Br(a)){var u=e.previousElementSibling;u?u.appendChild(e):Object(mr.unwrap)(e)}}},Lr=function(e){"BLOCKQUOTE"===e.nodeName&&(e.innerHTML=Er(e.innerHTML))};var zr=function(e,t,r){if(function(e,t){var r=e.nodeName.toLowerCase();return"figcaption"!==r&&!vr(e)&&Object(u.has)(t,["figure","children",r])}(e,r)){var n=e,a=e.parentNode;(function(e,t){var r=e.nodeName.toLowerCase();return Object(u.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)}},Hr=r(144);var Ir=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=Me(Le("from"),(function(e){return"shortcode"===e.type&&Object(u.some)(Object(u.castArray)(e.tag),(function(e){return Object(Hr.regexp)(e).test(t)}))}));if(!n)return[t];var a,i=Object(u.castArray)(n.tag),o=Object(u.first)(i);if(a=Object(Hr.next)(o,t,r)){var l=t.substr(0,a.index);if(r=a.index+a.content.length,!Object(u.includes)(a.shortcode.content||"","<")&&!/(\n|

    )\s*$/.test(l))return e(t,r);var d=Object(u.mapValues)(Object(u.pickBy)(n.attributes,(function(e){return e.shortcode})),(function(e){return e.shortcode(a.shortcode.attrs,a)}));return[l,Te(n.blockName,lr(Object(c.a)({},ge(n.blockName),{attributes:n.attributes}),a.shortcode.content,d))].concat(Object(s.a)(e(t.substr(r))))}return[t]},Dr=window.Node.COMMENT_NODE,Vr=function(e){e.nodeType===Dr&&Object(mr.remove)(e)};function Rr(e,t){return e.every((function(e){return function(e,t){if(vr(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(u.difference)([r,t],e).length}))}(e,t)&&Rr(Array.from(e.children),t)}))}function Fr(e){return"BR"===e.nodeName&&e.previousSibling&&"BR"===e.previousSibling.nodeName}var $r=function(e,t){var r=document.implementation.createHTMLDocument("");r.body.innerHTML=e;var n=Array.from(r.body.children);return!n.some(Fr)&&Rr(n,t)},qr=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(mr.wrap)(t.createElement("strong"),e),"italic"===a&&Object(mr.wrap)(t.createElement("em"),e),"line-through"===i&&Object(mr.wrap)(t.createElement("s"),e),"super"===o?Object(mr.wrap)(t.createElement("sup"),e):"sub"===o&&Object(mr.wrap)(t.createElement("sub"),e)}else"B"===e.nodeName?e=Object(mr.replaceTag)(e,"strong"):"I"===e.nodeName?e=Object(mr.replaceTag)(e,"em"):"A"===e.nodeName&&(e.target&&"_blank"===e.target.toLowerCase()?e.rel="noreferrer noopener":(e.removeAttribute("target"),e.removeAttribute("rel")))},Ur=function(e){"SCRIPT"!==e.nodeName&&"NOSCRIPT"!==e.nodeName&&"TEMPLATE"!==e.nodeName&&"STYLE"!==e.nodeName||e.parentNode.removeChild(e)},Gr=window.parseInt;function Wr(e){return"OL"===e.nodeName||"UL"===e.nodeName}var Kr=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=Gr(n[1],10)-1||0,i=e.previousElementSibling;if(!i||!Wr(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 u=e.previousElementSibling,l=u.nodeName,d=t.createElement("li"),f=u;for(e.removeChild(e.firstElementChild);e.firstChild;)d.appendChild(e.firstChild);for(;a--;)Wr(f=f.lastElementChild||f)&&(f=f.lastElementChild||f);Wr(f)||(f=f.appendChild(t.createElement(l))),f.appendChild(d),e.parentNode.removeChild(e)}}}},Yr=r(35),Zr=window,Qr=Zr.atob,Xr=Zr.File,Jr=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(Ie.a)(r,2),a=n[0],i=n[1],o=a.slice(5).split(";"),s=Object(Ie.a)(o,1)[0];if(!i||!s)return void(e.src="");try{t=Qr(i)}catch(t){return void(e.src="")}for(var c=new Uint8Array(t.length),u=0;u]+>/,""),"INLINE"!==o){var f=r||a;if(-1!==f.indexOf("\x3c!-- wp:"))return pr(f)}if(String.prototype.normalize&&(r=r.normalize()),!a||r&&!function(e){return!/<(?!br[ />])/i.test(e)}(r)||(r=rn(a),"AUTO"===o&&-1===a.indexOf("\n")&&0!==a.indexOf("

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

    ")&&(o="INLINE")),"INLINE"===o)return sn(r);var h=Ir(r),p=h.length>1;if("AUTO"===o&&!p&&$r(r,s))return sn(r);var g=Object(u.filter)(Le("from"),{type:"raw"}).map((function(e){return e.isMatch?e:Object(c.a)({},e,{isMatch:function(t){return e.selector&&t.matches(e.selector)}})})),m=_r(),b=jr(g),_=Object(u.compact)(Object(u.flatMap)(h,(function(e){if("string"!=typeof e)return e;var t=[an,Kr,Ur,Mr,Jr,qr,Nr,Vr,zr,Lr];d||t.unshift(nn);var r=Object(c.a)({},b,m);return e=xr(e=Tr(e,t,b),r),e=Er(e),on.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=Me(r,(function(t){return(0,t.isMatch)(e)}));if(!t)return Te("core/html",lr("core/html",e.outerHTML));var n=t.transform,a=t.blockName;return n?n(e):Te(a,lr(a,e.outerHTML))}))}({html:e,rawTransforms:g})})));if("AUTO"===o&&1===_.length){var v=a.trim();if(""!==v&&-1===v.indexOf("\n"))return xr(wt(_[0]),m)}return _}function un(e){var t=e.HTML,r=void 0===t?"":t;if(-1!==r.indexOf("\x3c!-- wp:"))return pr(r);var n=Ir(r),a=Object(u.filter)(Le("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=jr(a);return Object(u.compact)(Object(u.flatMap)(n,(function(e){return"string"!=typeof e?e:(e=Tr(e,[Mr,Nr,zr,Lr],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=Me(r,(function(t){return(0,t.isMatch)(e)}));if(!t)return Te("core/html",lr("core/html",e.outerHTML));var n=t.transform,a=t.blockName;return n?n(e):Te(a,lr(a,e.outerHTML))}))}({html:e=Er(e),rawTransforms:a}))})))}function ln(){return Object(i.select)("core/blocks").getCategories()}function dn(e){Object(i.dispatch)("core/blocks").setCategories(e)}function fn(e,t){Object(i.dispatch)("core/blocks").updateCategory(e,t)}function hn(){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(u.every)(t,(function(t,r){var n=Object(Ie.a)(t,3),a=n[0],i=n[2],o=e[r];return a===o.name&&hn(o.innerBlocks,i)}))}function pn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return t?Object(u.map)(t,(function(t,r){var n=Object(Ie.a)(t,3),a=n[0],i=n[1],o=n[2],s=e[r];if(s&&s.name===a){var l=pn(s.innerBlocks,o);return Object(c.a)({},s,{innerBlocks:l})}var d=ge(a),f=function(e,t){return Object(u.mapValues)(t,(function(t,r){return h(e[r],t)}))},h=function(e,t){return r=e,"html"===Object(u.get)(r,["source"])&&Object(u.isArray)(t)?Object(Y.renderToString)(t):function(e){return"query"===Object(u.get)(e,["source"])}(e)&&t?t.map((function(t){return f(e.query,t)})):t;var r};return Te(a,f(Object(u.get)(d,["attributes"],{}),i),pn([],o))})):e}r.d(t,"createBlock",(function(){return Te})),r.d(t,"cloneBlock",(function(){return xe})),r.d(t,"getPossibleBlockTransformations",(function(){return Be})),r.d(t,"switchToBlockType",(function(){return ze})),r.d(t,"getBlockTransforms",(function(){return Le})),r.d(t,"findTransform",(function(){return Me})),r.d(t,"getBlockFromExample",(function(){return He})),r.d(t,"parse",(function(){return gr})),r.d(t,"getBlockAttributes",(function(){return lr})),r.d(t,"parseWithAttributeSchema",(function(){return cr})),r.d(t,"pasteHandler",(function(){return cn})),r.d(t,"rawHandler",(function(){return un})),r.d(t,"getPhrasingContentSchema",(function(){return _r})),r.d(t,"serialize",(function(){return Ot})),r.d(t,"getBlockContent",(function(){return wt})),r.d(t,"getBlockDefaultClassName",(function(){return bt})),r.d(t,"getBlockMenuDefaultClassName",(function(){return _t})),r.d(t,"getSaveElement",(function(){return vt})),r.d(t,"getSaveContent",(function(){return kt})),r.d(t,"isValidBlockContent",(function(){return Wt})),r.d(t,"getCategories",(function(){return ln})),r.d(t,"setCategories",(function(){return dn})),r.d(t,"updateCategory",(function(){return fn})),r.d(t,"registerBlockType",(function(){return ie})),r.d(t,"unregisterBlockType",(function(){return oe})),r.d(t,"setFreeformContentHandlerName",(function(){return se})),r.d(t,"getFreeformContentHandlerName",(function(){return ce})),r.d(t,"setUnregisteredTypeHandlerName",(function(){return le})),r.d(t,"getUnregisteredTypeHandlerName",(function(){return de})),r.d(t,"setDefaultBlockName",(function(){return fe})),r.d(t,"getDefaultBlockName",(function(){return pe})),r.d(t,"setGroupingBlockName",(function(){return he})),r.d(t,"getGroupingBlockName",(function(){return ue})),r.d(t,"getBlockType",(function(){return ge})),r.d(t,"getBlockTypes",(function(){return me})),r.d(t,"getBlockSupport",(function(){return be})),r.d(t,"hasBlockSupport",(function(){return _e})),r.d(t,"isReusableBlock",(function(){return ve})),r.d(t,"getChildBlockNames",(function(){return ke})),r.d(t,"hasChildBlocks",(function(){return we})),r.d(t,"hasChildBlocksWithInserterSupport",(function(){return ye})),r.d(t,"unstable__bootstrapServerSideBlockDefinitions",(function(){return ae})),r.d(t,"registerBlockStyle",(function(){return je})),r.d(t,"unregisterBlockStyle",(function(){return Oe})),r.d(t,"isUnmodifiedDefaultBlock",(function(){return Q})),r.d(t,"normalizeIconObject",(function(){return J})),r.d(t,"isValidIcon",(function(){return X})),r.d(t,"doBlocksMatchTemplate",(function(){return hn})),r.d(t,"synchronizeBlocksWithTemplate",(function(){return pn})),r.d(t,"children",(function(){return Qt})),r.d(t,"node",(function(){return ar})),r.d(t,"withBlockContentContext",(function(){return gt}))},35:function(e,t){!function(){e.exports=this.wp.blob}()},36: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;n1&&(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=B(e,360),t=B(t,100),r=B(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=N(r),{ok:d,format:e.format||f,r:u(255,l(t.r,0)),g:u(255,l(t.g,0)),b:u(255,l(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=B(e,255),t=B(t,255),r=B(r,255);var n,a,i=l(e,t,r),o=u(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 S(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=N(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(I(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*B(this._r,255))+"%",g:c(100*B(this._g,255))+"%",b:c(100*B(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+c(100*B(this._r,255))+"%, "+c(100*B(this._g,255))+"%, "+c(100*B(this._b,255))+"%)":"rgba("+c(100*B(this._r,255))+"%, "+c(100*B(this._g,255))+"%, "+c(100*B(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(k,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(v,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(A,arguments)},complement:function(){return this._applyCombination(O,arguments)},monochromatic:function(){return this._applyCombination(S,arguments)},splitcomplement:function(){return this._applyCombination(C,arguments)},triad:function(){return this._applyCombination(T,arguments)},tetrad:function(){return this._applyCombination(x,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 u=0;uc&&(c=n,s=f(t[u]));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 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 r=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=u(t,l(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),a.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function M(e){return u(1,l(0,e))}function L(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 I(e){return a.round(255*parseFloat(e)).toString(16)}function D(e){return L(e)/255}var V,R,F,$=(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 q(e){return!!$.CSS_UNIT.exec(e)}e.exports?e.exports=f:void 0===(n=function(){return f}.call(t,r,t,e))||(e.exports=n)}(Math)},52:function(e,t){!function(){e.exports=this.wp.htmlEntities}()},67:function(e,t,r){var n=r(85),a=r(86);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)}},69: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(10);function a(e){for(var t=1;t>>((3&t)<<3)&255;return a}}},86: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("")}}}); \ No newline at end of file diff --git a/wp-includes/js/dist/components.js b/wp-includes/js/dist/components.js index ba4e6bb00d..dce21ef754 100644 --- a/wp-includes/js/dist/components.js +++ b/wp-includes/js/dist/components.js @@ -1443,8 +1443,7 @@ try { /***/ }), -/* 48 */, -/* 49 */ +/* 48 */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_RESULT__;// TinyColor v1.4.1 @@ -2644,7 +2643,7 @@ else {} /***/ }), -/* 50 */ +/* 49 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -2668,7 +2667,7 @@ module.exports = polyfill; /***/ }), -/* 51 */ +/* 50 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -2887,6 +2886,7 @@ var CalendarDayPhrases = exports.CalendarDayPhrases = { }; /***/ }), +/* 51 */, /* 52 */, /* 53 */, /* 54 */ @@ -2900,7 +2900,7 @@ Object.defineProperty(exports, "__esModule", { }); exports['default'] = getPhrasePropTypes; -var _object = __webpack_require__(50); +var _object = __webpack_require__(49); var _object2 = _interopRequireDefault(_object); @@ -3001,7 +3001,7 @@ var _createClass = function () { function defineProperties(target, props) { for exports.withStyles = withStyles; -var _object = __webpack_require__(50); +var _object = __webpack_require__(49); var _object2 = _interopRequireDefault(_object); @@ -7925,7 +7925,7 @@ 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__(50); +var _object = __webpack_require__(49); var _object2 = _interopRequireDefault(_object); @@ -7953,7 +7953,7 @@ var _moment = __webpack_require__(29); var _moment2 = _interopRequireDefault(_moment); -var _defaultPhrases = __webpack_require__(51); +var _defaultPhrases = __webpack_require__(50); var _getPhrasePropTypes = __webpack_require__(54); @@ -8788,7 +8788,7 @@ 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__(50); +var _object = __webpack_require__(49); var _object2 = _interopRequireDefault(_object); @@ -8824,7 +8824,7 @@ var _reactOutsideClickHandler = __webpack_require__(134); var _reactOutsideClickHandler2 = _interopRequireDefault(_reactOutsideClickHandler); -var _defaultPhrases = __webpack_require__(51); +var _defaultPhrases = __webpack_require__(50); var _getPhrasePropTypes = __webpack_require__(54); @@ -11378,7 +11378,7 @@ 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__(50); +var _object = __webpack_require__(49); var _object2 = _interopRequireDefault(_object); @@ -11406,7 +11406,7 @@ var _moment = __webpack_require__(29); var _moment2 = _interopRequireDefault(_moment); -var _defaultPhrases = __webpack_require__(51); +var _defaultPhrases = __webpack_require__(50); var _getPhrasePropTypes = __webpack_require__(54); @@ -11827,7 +11827,7 @@ 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__(50); +var _object = __webpack_require__(49); var _object2 = _interopRequireDefault(_object); @@ -11857,7 +11857,7 @@ var _moment2 = _interopRequireDefault(_moment); var _consolidatedEvents = __webpack_require__(105); -var _defaultPhrases = __webpack_require__(51); +var _defaultPhrases = __webpack_require__(50); var _getPhrasePropTypes = __webpack_require__(54); @@ -12644,7 +12644,7 @@ var _reactMomentProptypes2 = _interopRequireDefault(_reactMomentProptypes); var _airbnbPropTypes = __webpack_require__(46); -var _defaultPhrases = __webpack_require__(51); +var _defaultPhrases = __webpack_require__(50); var _getPhrasePropTypes = __webpack_require__(54); @@ -13027,7 +13027,7 @@ var _OpenDirectionShape = __webpack_require__(81); var _OpenDirectionShape2 = _interopRequireDefault(_OpenDirectionShape); -var _defaultPhrases = __webpack_require__(51); +var _defaultPhrases = __webpack_require__(50); var _getPhrasePropTypes = __webpack_require__(54); @@ -13490,7 +13490,7 @@ 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__(50); +var _object = __webpack_require__(49); var _object2 = _interopRequireDefault(_object); @@ -13506,7 +13506,7 @@ var _airbnbPropTypes = __webpack_require__(46); var _reactWithStyles = __webpack_require__(56); -var _defaultPhrases = __webpack_require__(51); +var _defaultPhrases = __webpack_require__(50); var _getPhrasePropTypes = __webpack_require__(54); @@ -13948,7 +13948,7 @@ 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__(50); +var _object = __webpack_require__(49); var _object2 = _interopRequireDefault(_object); @@ -14638,7 +14638,7 @@ 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__(50); +var _object = __webpack_require__(49); var _object2 = _interopRequireDefault(_object); @@ -14668,7 +14668,7 @@ var _isTouchDevice = __webpack_require__(80); var _isTouchDevice2 = _interopRequireDefault(_isTouchDevice); -var _defaultPhrases = __webpack_require__(51); +var _defaultPhrases = __webpack_require__(50); var _getPhrasePropTypes = __webpack_require__(54); @@ -16246,7 +16246,7 @@ 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__(50); +var _object = __webpack_require__(49); var _object2 = _interopRequireDefault(_object); @@ -16276,7 +16276,7 @@ var _isTouchDevice = __webpack_require__(80); var _isTouchDevice2 = _interopRequireDefault(_isTouchDevice); -var _defaultPhrases = __webpack_require__(51); +var _defaultPhrases = __webpack_require__(50); var _getPhrasePropTypes = __webpack_require__(54); @@ -17300,7 +17300,7 @@ var _reactMomentProptypes2 = _interopRequireDefault(_reactMomentProptypes); var _airbnbPropTypes = __webpack_require__(46); -var _defaultPhrases = __webpack_require__(51); +var _defaultPhrases = __webpack_require__(50); var _getPhrasePropTypes = __webpack_require__(54); @@ -17421,7 +17421,7 @@ 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__(50); +var _object = __webpack_require__(49); var _object2 = _interopRequireDefault(_object); @@ -17437,7 +17437,7 @@ var _airbnbPropTypes = __webpack_require__(46); var _reactWithStyles = __webpack_require__(56); -var _defaultPhrases = __webpack_require__(51); +var _defaultPhrases = __webpack_require__(50); var _getPhrasePropTypes = __webpack_require__(54); @@ -25096,7 +25096,7 @@ 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__(50); +var _object = __webpack_require__(49); var _object2 = _interopRequireDefault(_object); @@ -25124,7 +25124,7 @@ var _moment = __webpack_require__(29); var _moment2 = _interopRequireDefault(_moment); -var _defaultPhrases = __webpack_require__(51); +var _defaultPhrases = __webpack_require__(50); var _getPhrasePropTypes = __webpack_require__(54); @@ -25759,7 +25759,7 @@ 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__(50); +var _object = __webpack_require__(49); var _object2 = _interopRequireDefault(_object); @@ -25795,7 +25795,7 @@ var _DateRangePickerShape = __webpack_require__(188); var _DateRangePickerShape2 = _interopRequireDefault(_DateRangePickerShape); -var _defaultPhrases = __webpack_require__(51); +var _defaultPhrases = __webpack_require__(50); var _getResponsiveContainerStyles = __webpack_require__(192); @@ -28506,7 +28506,7 @@ 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__(50); +var _object = __webpack_require__(49); var _object2 = _interopRequireDefault(_object); @@ -28522,7 +28522,7 @@ var _airbnbPropTypes = __webpack_require__(46); var _reactWithStyles = __webpack_require__(56); -var _defaultPhrases = __webpack_require__(51); +var _defaultPhrases = __webpack_require__(50); var _getPhrasePropTypes = __webpack_require__(54); @@ -28890,7 +28890,7 @@ 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__(50); +var _object = __webpack_require__(49); var _object2 = _interopRequireDefault(_object); @@ -28906,7 +28906,7 @@ var _airbnbPropTypes = __webpack_require__(46); var _reactWithStyles = __webpack_require__(56); -var _defaultPhrases = __webpack_require__(51); +var _defaultPhrases = __webpack_require__(50); var _getPhrasePropTypes = __webpack_require__(54); @@ -29396,7 +29396,7 @@ 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__(50); +var _object = __webpack_require__(49); var _object2 = _interopRequireDefault(_object); @@ -29560,7 +29560,7 @@ 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__(50); +var _object = __webpack_require__(49); var _object2 = _interopRequireDefault(_object); @@ -29592,7 +29592,7 @@ var _SingleDatePickerShape = __webpack_require__(208); var _SingleDatePickerShape2 = _interopRequireDefault(_SingleDatePickerShape); -var _defaultPhrases = __webpack_require__(51); +var _defaultPhrases = __webpack_require__(50); var _toMomentObject = __webpack_require__(78); @@ -35435,7 +35435,7 @@ function (_Component) { /* harmony default export */ var dropdown = (dropdown_Dropdown); // EXTERNAL MODULE: ./node_modules/tinycolor2/tinycolor.js -var tinycolor = __webpack_require__(49); +var tinycolor = __webpack_require__(48); var tinycolor_default = /*#__PURE__*/__webpack_require__.n(tinycolor); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/color-picker/utils.js diff --git a/wp-includes/js/dist/components.min.js b/wp-includes/js/dist/components.min.js index 0a3a5cd9eb..c2c8d1b921 100644 --- a/wp-includes/js/dist/components.min.js +++ b/wp-includes/js/dist/components.min.js @@ -3,7 +3,7 @@ this.wp=this.wp||{},this.wp.components=function(e){var t={};function n(r){if(t[r Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t=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.richText}()},function(e,t,n){"use strict";var r=n(38);var o=n(39);function a(e,t){return Object(r.a)(e)||function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.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.wp.dom}()},,function(e,t){!function(){e.exports=this.wp.hooks}()},function(e,t){!function(){e.exports=this.React}()},function(e,t){!function(){e.exports=this.moment}()},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,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,n){e.exports=n(87)()},,,,function(e,t){!function(){e.exports=this.wp.deprecated}()},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,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){"use strict";function r(e,t,n,r,o,a,i){try{var s=e[a](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,a){var i=e.apply(t,n);function s(e){r(i,o,a,s,c,"next",e)}function c(e){r(i,o,a,s,c,"throw",e)}s(void 0)}))}}n.d(t,"a",(function(){return o}))},,function(e,t){!function(){e.exports=this.wp.a11y}()},function(e,t,n){e.exports=n(271)},function(e,t,n){var r=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,n,r){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),i=new j(r||[]);return a._invoke=function(e,t,n){var r=u;return function(o,a){if(r===h)throw new Error("Generator is already running");if(r===f){if("throw"===o)throw a;return P()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var s=D(i,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===u)throw r=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var c=l(e,t,n);if("normal"===c.type){if(r=n.done?f:d,c.arg===p)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=f,n.method="throw",n.arg=c.arg)}}}(e,n,i),a}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u="suspendedStart",d="suspendedYield",h="executing",f="completed",p={};function b(){}function v(){}function y(){}var m={};m[a]=function(){return this};var g=Object.getPrototypeOf,O=g&&g(g(C([])));O&&O!==n&&r.call(O,a)&&(m=O);var k=y.prototype=b.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function _(e){var t;this._invoke=function(n,o){function a(){return new Promise((function(t,a){!function t(n,o,a,i){var s=l(e[n],e,o);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==typeof u&&r.call(u,"__await")?Promise.resolve(u.__await).then((function(e){t("next",e,a,i)}),(function(e){t("throw",e,a,i)})):Promise.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return t("throw",e,a,i)}))}i(s.arg)}(n,o,t,a)}))}return t=t?t.then(a,a):a()}}function D(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,D(e,n),"throw"===n.method))return p;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var o=l(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,p;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,p):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function S(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 M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(e){if(e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){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),M(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;M(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),p}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},,function(e,t,n){var r;!function(o){var a=/^\s+/,i=/\s+$/,s=0,c=o.round,l=o.min,u=o.max,d=o.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,r=null,s=null,c=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:N(t[1]),g:N(t[2]),b:N(t[3]),a:L(t[4]),format:n?"name":"hex8"};if(t=K.hex6.exec(e))return{r:N(t[1]),g:N(t[2]),b:N(t[3]),format:n?"name":"hex"};if(t=K.hex4.exec(e))return{r:N(t[1]+""+t[1]),g:N(t[2]+""+t[2]),b:N(t[3]+""+t[3]),a:L(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=K.hex3.exec(e))return{r:N(t[1]+""+t[1]),g:N(t[2]+""+t[2]),b:N(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)?(r=H(e.s),s=H(e.v),t=function(e,t,n){e=6*I(e,360),t=I(t,100),n=I(n,100);var r=o.floor(e),a=e-r,i=n*(1-t),s=n*(1-a*t),c=n*(1-(1-a)*t),l=r%6;return{r:255*[n,s,i,i,c,n][l],g:255*[c,n,n,s,i,i][l],b:255*[i,i,c,n,n,s][l]}}(e.h,r,s),d=!0,h="hsv"):W(e.h)&&W(e.s)&&W(e.l)&&(r=H(e.s),c=H(e.l),t=function(e,t,n){var r,o,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)r=o=a=n;else{var s=n<.5?n*(1+t):n+t-n*t,c=2*n-s;r=i(c,s,e+1/3),o=i(c,s,e),a=i(c,s,e-1/3)}return{r:255*r,g:255*o,b:255*a}}(e.h,r,c),d=!0,h="hsl"),e.hasOwnProperty("a")&&(n=e.a));var f,p,b;return n=z(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=c(100*this._a)/100,this._format=t.format||n.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=n.ok,this._tc_id=s++}function f(e,t,n){e=I(e,255),t=I(t,255),n=I(n,255);var r,o,a=u(e,t,n),i=l(e,t,n),s=(a+i)/2;if(a==i)r=o=0;else{var c=a-i;switch(o=s>.5?c/(2-a-i):c/(a+i),a){case e:r=(t-n)/c+(t>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(h(r));return a}function P(e,t){t=t||6;for(var n=h(e).toHsv(),r=n.h,o=n.s,a=n.v,i=[],s=1/t;t--;)i.push(h({h:r,s:o,v:a})),a=(a+s)%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,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=z(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),n=c(100*e.s),r=c(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+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=c(360*e.h),n=c(100*e.s),r=c(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+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,r,o){var a=[A(c(e).toString(16)),A(c(t).toString(16)),A(c(n).toString(16)),A(R(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: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*I(this._r,255))+"%",g:c(100*I(this._g,255))+"%",b:c(100*I(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+c(100*I(this._r,255))+"%, "+c(100*I(this._g,255))+"%, "+c(100*I(this._b,255))+"%)":"rgba("+c(100*I(this._r,255))+"%, "+c(100*I(this._g,255))+"%, "+c(100*I(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(T[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,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=h(e);n="#"+v(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 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(w,arguments)},desaturate:function(){return this._applyModification(y,arguments)},saturate:function(){return this._applyModification(m,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(C,arguments)},complement:function(){return this._applyCombination(D,arguments)},monochromatic:function(){return this._applyCombination(P,arguments)},splitcomplement:function(){return this._applyCombination(j,arguments)},triad:function(){return this._applyCombination(S,arguments)},tetrad:function(){return this._applyCombination(M,arguments)}},h.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:H(e[r]));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 r=h(e).toRgb(),o=h(t).toRgb(),a=n/100;return h({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})},h.readability=function(e,t){var n=h(e),r=h(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},h.isReadable=function(e,t,n){var r,o,a=h.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},h.mostReadable=function(e,t,n){var r,o,a,i,s=null,c=0;o=(n=n||{}).includeFallbackColors,a=n.level,i=n.size;for(var l=0;lc&&(c=r,s=h(t[l]));return h.isReadable(e,s,{level:a,size:i})||!o?s:(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"},T=h.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(E);function z(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),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function x(e){return l(1,u(0,e))}function N(e){return parseInt(e,16)}function A(e){return 1==e.length?"0"+e:""+e}function H(e){return e<=1&&(e=100*e+"%"),e}function R(e){return o.round(255*parseFloat(e)).toString(16)}function L(e){return N(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===(r=function(){return h}.call(t,n,t,e))||(e.exports=r)}(Math)},function(e,t,n){"use strict";var r=n(55),o=n(170),a=n(171),i=n(267),s=a();r(s,{getPolyfill:a,implementation:o,shim:i}),e.exports=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="Interact with the calendar and add the check-in date for your trip.",o="Move backward to switch to the previous month.",a="Move forward to switch to the next month.",i="page up and page down keys",s="Home and end keys",c="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},y=function(e){var t=e.date;return"Not available. "+String(t)},m=function(e){var t=e.date;return"Selected. "+String(t)};t.default={calendarLabel:"Calendar",closeDatePicker:"Close",focusStartDate:r,clearDate:"Clear Date",clearDates:"Clear Dates",jumpToPrevMonth:o,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:s,escape:c,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:y,dateIsSelected:m};t.DateRangePickerPhrases={calendarLabel:"Calendar",closeDatePicker:"Close",clearDates:"Clear Dates",focusStartDate:r,jumpToPrevMonth:o,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:s,escape:c,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:y,dateIsSelected:m},t.DateRangePickerInputPhrases={focusStartDate:r,clearDates:"Clear Dates",keyboardNavigationInstructions:f},t.SingleDatePickerPhrases={calendarLabel:"Calendar",closeDatePicker:"Close",clearDate:"Clear Date",jumpToPrevMonth:o,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:s,escape:c,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:y,dateIsSelected:m},t.SingleDatePickerInputPhrases={clearDate:"Clear Date",keyboardNavigationInstructions:f},t.DayPickerPhrases={calendarLabel:"Calendar",jumpToPrevMonth:o,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:s,escape:c,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:y,dateIsSelected:m},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:s,escape:c,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:o,jumpToNextMonth:a},t.CalendarDayPhrases={chooseAvailableDate:v,dateIsUnavailable:y,dateIsSelected:m}},,,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,r.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,o.default.oneOfType([o.default.string,o.default.func,o.default.node])))}),{})};var r=a(n(50)),o=a(n(33));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";var r=n(90),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),a=Object.prototype.toString,i=Array.prototype.concat,s=Object.defineProperty,c=s&&function(){var e={};try{for(var t in s(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(e){return!1}}(),l=function(e,t,n,r){var o;t in e&&("function"!=typeof(o=r)||"[object Function]"!==a.call(o)||!r())||(c?s(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=r(t);o&&(a=i.call(a,Object.getOwnPropertySymbols(t)));for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{},n=t.stylesPropName,s=void 0===n?"styles":n,u=t.themePropName,h=void 0===u?"theme":u,p=t.cssPropName,m=void 0===p?"css":p,g=t.flushBefore,O=void 0!==g&&g,k=t.pureComponent,w=void 0!==k&&k,_=void 0,D=void 0,S=void 0,M=void 0,j=function(e){if(e){if(!i.default.PureComponent)throw new ReferenceError("withStyles() pureComponent option requires React 15.3.0 or later");return i.default.PureComponent}return i.default.Component}(w);function C(e){return e===l.DIRECTIONS.LTR?d.default.resolveLTR:d.default.resolveRTL}function P(t,n){var r=function(e){return e===l.DIRECTIONS.LTR?S:M}(t),o=t===l.DIRECTIONS.LTR?_:D,a=d.default.get();return o&&r===a?o:(t===l.DIRECTIONS.RTL?(D=e?d.default.createRTL(e):b,M=a,o=D):(_=e?d.default.createLTR(e):b,S=a,o=_),o)}function E(e,t){return{resolveMethod:C(e),styleDef:P(e)}}return function(e){var t=e.displayName||e.name||"Component",n=function(t){function n(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var r=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,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t)),o=r.context[l.CHANNEL]?r.context[l.CHANNEL].getState():y;return r.state=E(o),r}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)}(n,t),o(n,[{key:"componentDidMount",value:function(){var e=this;this.context[l.CHANNEL]&&(this.channelUnsubscribe=this.context[l.CHANNEL].subscribe((function(t){e.setState(E(t))})))}},{key:"componentWillUnmount",value:function(){this.channelUnsubscribe&&this.channelUnsubscribe()}},{key:"render",value:function(){var t;O&&d.default.flush();var n=this.state,o=n.resolveMethod,a=n.styleDef;return i.default.createElement(e,r({},this.props,(f(t={},h,d.default.get()),f(t,s,a()),f(t,m,o),t)))}}]),n}(j);return n.WrappedComponent=e,n.displayName="withStyles("+String(t)+")",n.contextTypes=v,e.propTypes&&(n.propTypes=(0,a.default)({},e.propTypes),delete n.propTypes[s],delete n.propTypes[h],delete n.propTypes[m]),e.defaultProps&&(n.defaultProps=(0,a.default)({},e.defaultProps)),(0,c.default)(n,e)}};var a=h(n(50)),i=h(n(28)),s=h(n(33)),c=h(n(272)),l=n(275),u=h(n(276)),d=h(n(168));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:s.default.object.isRequired,theme:s.default.object.isRequired,css:s.default.func.isRequired};var p={},b=function(){return p};var v=f({},l.CHANNEL,u.default),y=l.DIRECTIONS.LTR},function(e,t){!function(){e.exports=this.ReactDOM}()},,function(e,t,n){"use strict";var r=n(244);e.exports=Function.prototype.bind||r},function(e,t,n){"use strict";var r=TypeError,o=Object.getOwnPropertyDescriptor?function(){return Object.getOwnPropertyDescriptor(arguments,"callee").get}():function(){throw new r},a=n(100)(),i=Object.getPrototypeOf||function(e){return e.__proto__},s=void 0,c="undefined"==typeof Uint8Array?void 0:i(Uint8Array),l={"$ %Array%":Array,"$ %ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"$ %ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer.prototype,"$ %ArrayIteratorPrototype%":a?i([][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%":s&&a&&Symbol.asyncIterator?s[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%":a?i(i([][Symbol.iterator]())):void 0,"$ %JSON%":JSON,"$ %JSONParse%":JSON.parse,"$ %Map%":"undefined"==typeof Map?void 0:Map,"$ %MapIteratorPrototype%":"undefined"!=typeof Map&&a?i((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&&a?i((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%":a?i(""[Symbol.iterator]()):void 0,"$ %StringPrototype%":String.prototype,"$ %Symbol%":a?Symbol:void 0,"$ %SymbolPrototype%":a?Symbol.prototype:void 0,"$ %SyntaxError%":SyntaxError,"$ %SyntaxErrorPrototype%":SyntaxError.prototype,"$ %ThrowTypeError%":o,"$ %TypedArray%":c,"$ %TypedArrayPrototype%":c?c.prototype:void 0,"$ %TypeError%":r,"$ %TypeErrorPrototype%":r.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},u=n(59).call(Function.call,String.prototype.replace),d=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,h=/\\(\\)?/g,f=function(e){var t=[];return u(e,d,(function(e,n,r,o){t[t.length]=r?u(o,h,"$1"):n||e})),t},p=function(e,t){var n="$ "+e;if(!(n in l))throw new SyntaxError("intrinsic "+e+" does not exist!");if(void 0===l[n]&&!t)throw new r("intrinsic "+e+" exists, but is not available. Please file an issue!");return l[n]};e.exports=function(e,t){if(arguments.length>1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');var n=f(e);if(0===n.length)return p(e,t);for(var r=p("%"+n[0]+"%",t),o=1;o1?t-1:0),r=1;r=n.length)break;a=n[o++]}else{if((o=n.next()).done)break;a=o.value}for(var i=a,s=!1,c=0;c=f.startTime+l.duration;else if(l.decay)v=p+g/(1-.998)*(1-Math.exp(-(1-.998)*(t-f.startTime))),(u=Math.abs(f.lastPosition-v)<.1)&&(b=v);else{d=void 0!==f.lastTime?f.lastTime:t,g=void 0!==f.lastVelocity?f.lastVelocity:l.initialVelocity,t>d+64&&(d=t);for(var O=Math.floor(t-d),k=0;kb:v=e);++n);return n-1}(e,a);return function(e,t,n,r,o,a,i,s,c){var l=c?c(e):e;if(ln){if("identity"===s)return l;"clamp"===s&&(l=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?l=-l:n===1/0?l-=t:l=(l-t)/(n-t);l=a(l),r===-1/0?l=-l:o===1/0?l+=r:l=l*(o-r)+r;return l}(e,a[t],a[t+1],o[t],o[t+1],c,i,s,r.map)}}var F=function(e){function t(n,r,o,a){var i;return(i=e.call(this)||this).calc=void 0,i.payload=n instanceof g&&!(n instanceof t)?n.getPayload():Array.isArray(n)?n:[n],i.calc=L(r,o,a),i}c(t,e);var n=t.prototype;return n.getValue=function(){return this.calc.apply(this,this.payload.map((function(e){return e.getValue()})))},n.updateConfig=function(e,t,n){this.calc=L(e,t,n)},n.interpolate=function(e,n,r){return new t(this,e,n,r)},t}(g);var V=function(e){function t(t){var n;return(n=e.call(this)||this).animatedStyles=new Set,n.value=void 0,n.startPosition=void 0,n.lastPosition=void 0,n.lastVelocity=void 0,n.startTime=void 0,n.lastTime=void 0,n.done=!1,n.setValue=function(e,t){void 0===t&&(t=!0),n.value=e,t&&n.flush()},n.value=t,n.startPosition=t,n.lastPosition=t,n}c(t,e);var n=t.prototype;return n.flush=function(){0===this.animatedStyles.size&&function e(t,n){"update"in t?n.add(t):t.getChildren().forEach((function(t){return e(t,n)}))}(this,this.animatedStyles),this.animatedStyles.forEach((function(e){return e.update()}))},n.clearStyles=function(){this.animatedStyles.clear()},n.getValue=function(){return this.value},n.interpolate=function(e,t,n){return new F(this,e,t,n)},t}(m),B=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map((function(e){return new V(e)})),n}c(t,e);var n=t.prototype;return n.setValue=function(e,t){var n=this;void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((function(e,r){return n.payload[r].setValue(e,t)})):this.payload.forEach((function(n){return n.setValue(e,t)}))},n.getValue=function(){return this.payload.map((function(e){return e.getValue()}))},n.interpolate=function(e,t){return new F(this,e,t)},t}(g),K=0,W=function(){function e(){var e=this;this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=function(){return e.interpolations},this.id=K++}var t=e.prototype;return t.update=function(e){if(!e)return this;var t=b(e),n=t.delay,r=void 0===n?0:n,i=t.to,s=a(t,["delay","to"]);if(u.arr(i)||u.fun(i))this.queue.push(o({},s,{delay:r,to:i}));else if(i){var c={};Object.entries(i).forEach((function(e){var t,n=e[0],a=e[1],i=o({to:(t={},t[n]=a,t),delay:p(r,n)},s),l=c[i.delay]&&c[i.delay].to;c[i.delay]=o({},c[i.delay],i,{to:o({},l,i.to)})})),this.queue=Object.values(c)}return this.queue=this.queue.sort((function(e,t){return e.delay-t.delay})),this.diff(s),this},t.start=function(e){var t,n=this;if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((function(e){var t=e.from,r=void 0===t?{}:t,a=e.to,i=void 0===a?{}:a;u.obj(r)&&(n.merged=o({},r,n.merged)),u.obj(i)&&(n.merged=o({},n.merged,i))}));var r=this.local=++this.guid,i=this.localQueue=this.queue;this.queue=[],i.forEach((function(t,o){var s=t.delay,c=a(t,["delay"]),l=function(t){o===i.length-1&&r===n.guid&&t&&(n.idle=!0,n.props.onRest&&n.props.onRest(n.merged)),e&&e()},d=u.arr(c.to)||u.fun(c.to);s?setTimeout((function(){r===n.guid&&(d?n.runAsync(c,l):n.diff(c).start(l))}),s):d?n.runAsync(c,l):n.diff(c).start(l)}))}else u.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,H.has(t)||H.add(t),A||(A=!0,D(T||R));return this},t.stop=function(e){return this.listeners.forEach((function(t){return t(e)})),this.listeners=[],this},t.pause=function(e){var t;return this.stop(!0),e&&(t=this,H.has(t)&&H.delete(t)),this},t.runAsync=function(e,t){var n=this,r=(e.delay,a(e,["delay"])),i=this.local,s=Promise.resolve(void 0);if(u.arr(r.to))for(var c=function(e){var t=e,a=o({},r,b(r.to[t]));u.arr(a.config)&&(a.config=a.config[t]),s=s.then((function(){if(i===n.guid)return new Promise((function(e){return n.diff(a).start(e)}))}))},l=0;l=r.length)return"break";i=r[a++]}else{if((a=r.next()).done)return"break";i=a.value}var n=i.key,s=function(e){return e.key!==n};(u.und(t)||t===n)&&(e.current.instances.delete(n),e.current.transitions=e.current.transitions.filter(s),e.current.deleted=e.current.deleted.filter(s))},r=e.current.deleted,o=Array.isArray(r),a=0;for(r=o?r:r[Symbol.iterator]();;){var i;if("break"===n())break}e.current.forceUpdate()}var J=function(e){function t(t){var n;return void 0===t&&(t={}),n=e.call(this)||this,!t.transform||t.transform instanceof m||(t=v.transform(t)),n.payload=t,n}return c(t,e),t}(O),ee={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},te="[-+]?\\d*\\.?\\d+",ne=te+"%";function re(){for(var e=arguments.length,t=new Array(e),n=0;n1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function fe(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,a=he(o,r,e+1/3),i=he(o,r,e),s=he(o,r,e-1/3);return Math.round(255*a)<<24|Math.round(255*i)<<16|Math.round(255*s)<<8}function pe(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function be(e){return(parseFloat(e)%360+360)%360/360}function ve(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function ye(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function me(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=ue.exec(t))?parseInt(n[1]+"ff",16)>>>0:ee.hasOwnProperty(t)?ee[t]:(n=oe.exec(t))?(pe(n[1])<<24|pe(n[2])<<16|pe(n[3])<<8|255)>>>0:(n=ae.exec(t))?(pe(n[1])<<24|pe(n[2])<<16|pe(n[3])<<8|ve(n[4]))>>>0:(n=ce.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=de.exec(t))?parseInt(n[1],16)>>>0:(n=le.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=ie.exec(t))?(255|fe(be(n[1]),ye(n[2]),ye(n[3])))>>>0:(n=se.exec(t))?(fe(be(n[1]),ye(n[2]),ye(n[3]))|ve(n[4]))>>>0:null;return null===r?e:"rgba("+((4278190080&(r=r||0))>>>24)+", "+((16711680&r)>>>16)+", "+((65280&r)>>>8)+", "+(255&r)/255+")"}var ge=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Oe=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,ke=new RegExp("("+Object.keys(ee).join("|")+")","g"),we={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,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},_e=["Webkit","Ms","Moz","O"];function De(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||we.hasOwnProperty(e)&&we[e]?(""+t).trim():t+"px"}we=Object.keys(we).reduce((function(e,t){return _e.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),we);var Se={};I((function(e){return new J(e)})),P("div"),M((function(e){var t=e.output.map((function(e){return e.replace(Oe,me)})).map((function(e){return e.replace(ke,me)})),n=t[0].match(ge).map((function(){return[]}));t.forEach((function(e){e.match(ge).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(ge).map((function(t,r){return L(o({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(ge,(function(){return r[n++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,n,r,o){return"rgba("+Math.round(t)+", "+Math.round(n)+", "+Math.round(r)+", "+o+")"}))}})),w(ee),k((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,r=t.children,o=t.scrollTop,i=t.scrollLeft,s=a(t,["style","children","scrollTop","scrollLeft"]),c="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var l in void 0!==o&&(e.scrollTop=o),void 0!==i&&(e.scrollLeft=i),void 0!==r&&(e.textContent=r),n)if(n.hasOwnProperty(l)){var u=0===l.indexOf("--"),d=De(l,n[l],u);"float"===l&&(l="cssFloat"),u?e.style.setProperty(l,d):e.style[l]=d}for(var h in s){var f=c?h:Se[h]||(Se[h]=h.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(f)&&e.setAttribute(f,s[h])}}),(function(e){return e}));var Me,je,Ce=(Me=function(e){return i.forwardRef((function(t,n){var r=d(),c=i.useRef(!0),l=i.useRef(null),h=i.useRef(null),f=i.useCallback((function(e){var t=l.current;l.current=new N(e,(function(){var e=!1;h.current&&(e=v.fn(h.current,l.current.getAnimatedValue())),h.current&&!1!==e||r()})),t&&t.detach()}),[]);i.useEffect((function(){return function(){c.current=!1,l.current&&l.current.detach()}}),[]),i.useImperativeHandle(n,(function(){return z(h,c,r)})),f(t);var p,b=l.current.getValue(),y=(b.scrollTop,b.scrollLeft,a(b,["scrollTop","scrollLeft"])),m=(p=e,!u.fun(p)||p.prototype instanceof s.Component?function(e){return h.current=function(e,t){return t&&(u.fun(t)?t(e):u.obj(t)&&(t.current=e)),e}(e,n)}:void 0);return s.createElement(e,o({},y,{ref:m}))}))},void 0===(je=!1)&&(je=!0),function(e){return(u.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=je?t[0].toLowerCase()+t.substring(1):t;return e[n]=Me(n),e}),Me)}),Pe=Ce(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]);t.apply=Ce,t.config={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},t.update=R,t.animated=Pe,t.a=Pe,t.interpolate=function(e,t,n){return e&&new F(e,t,n)},t.Globals=x,t.useSpring=function(e){var t=u.fun(e),n=$(1,t?e:[e]),r=n[0],o=n[1],a=n[2];return t?[r[0],o,a]:r},t.useTrail=function(e,t){var n=i.useRef(!1),r=u.fun(t),a=p(t),s=i.useRef(),c=$(e,(function(e,t){return 0===e&&(s.current=[]),s.current.push(t),o({},a,{config:p(a.config,e),attach:e>0&&function(){return s.current[e-1]}})})),l=c[0],d=c[1],h=c[2],f=i.useMemo((function(){return function(e){return d((function(t,n){e.reverse;var r=e.reverse?t+1:t-1,i=s.current[r];return o({},e,{config:p(e.config||a.config,t),attach:i&&function(){return i}})}))}}),[e,a.reverse]);return i.useEffect((function(){n.current&&!r&&f(t)})),i.useEffect((function(){n.current=!0}),[]),r?[l,f,h]:l},t.useTransition=function(e,t,n){var r=o({items:e,keys:t||function(e){return e}},n),s=X(r),c=s.lazy,l=void 0!==c&&c,u=(s.unique,s.reset),h=void 0!==u&&u,f=(s.enter,s.leave,s.update,s.onDestroyed),b=(s.keys,s.items,s.onFrame),v=s.onRest,y=s.onStart,m=s.ref,g=a(s,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),O=d(),k=i.useRef(!1),w=i.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!k.current&&new Map,forceUpdate:O});return i.useImperativeHandle(r.ref,(function(){return{start:function(){return Promise.all(Array.from(w.current.instances).map((function(e){var t=e[1];return new Promise((function(e){return t.start(e)}))})))},stop:function(e){return Array.from(w.current.instances).forEach((function(t){return t[1].stop(e)}))},get controllers(){return Array.from(w.current.instances).map((function(e){return e[1]}))}}})),w.current=function(e,t){var n=e.first,r=e.prevProps,i=a(e,["first","prevProps"]),s=X(t),c=s.items,l=s.keys,u=s.initial,d=s.from,h=s.enter,f=s.leave,b=s.update,v=s.trail,y=void 0===v?0:v,m=s.unique,g=s.config,O=s.order,k=void 0===O?[G,q,Y]:O,w=X(r),_=w.keys,D=w.items,S=o({},i.current),M=[].concat(i.deleted),j=Object.keys(S),C=new Set(j),P=new Set(l),E=l.filter((function(e){return!C.has(e)})),T=i.transitions.filter((function(e){return!e.destroyed&&!P.has(e.originalKey)})).map((function(e){return e.originalKey})),z=l.filter((function(e){return C.has(e)})),I=-y;for(;k.length;){switch(k.shift()){case G:E.forEach((function(e,t){m&&M.find((function(t){return t.originalKey===e}))&&(M=M.filter((function(t){return t.originalKey!==e})));var r=l.indexOf(e),o=c[r],a=n&&void 0!==u?"initial":G;S[e]={slot:a,originalKey:e,key:m?String(e):U++,item:o,trail:I+=y,config:p(g,o,a),from:p(n&&void 0!==u?u||{}:d,o),to:p(h,o)}}));break;case q:T.forEach((function(e){var t=_.indexOf(e),n=D[t],r=q;M.unshift(o({},S[e],{slot:r,destroyed:!0,left:_[Math.max(0,t-1)],right:_[Math.min(_.length,t+1)],trail:I+=y,config:p(g,n,r),to:p(f,n)})),delete S[e]}));break;case Y:z.forEach((function(e){var t=l.indexOf(e),n=c[t],r=Y;S[e]=o({},S[e],{item:n,slot:r,trail:I+=y,config:p(g,n,r),to:p(b,n)})}))}}var x=l.map((function(e){return S[e]}));return M.forEach((function(e){var t,n=e.left,r=(e.right,a(e,["left","right"]));-1!==(t=x.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),x=[].concat(x.slice(0,t),[r],x.slice(t))})),o({},i,{changed:E.length||T.length||z.length,first:n&&0===E.length,transitions:x,current:S,deleted:M,prevProps:t})}(w.current,r),w.current.changed&&w.current.transitions.forEach((function(e){var t=e.slot,n=e.from,r=e.to,a=e.config,i=e.trail,s=e.key,c=e.item;w.current.instances.has(s)||w.current.instances.set(s,new W);var u=w.current.instances.get(s),d=o({},g,{to:r,from:n,config:a,ref:m,onRest:function(n){w.current.mounted&&(e.destroyed&&(m||l||Q(w,s),f&&f(c)),!Array.from(w.current.instances).some((function(e){return!e[1].idle}))&&(m||l)&&w.current.deleted.length>0&&Q(w),v&&v(c,t,n))},onStart:y&&function(){return y(c,t)},onFrame:b&&function(e){return b(c,t,e)},delay:i,reset:h&&t===G});u.update(d),w.current.paused||u.start()})),i.useEffect((function(){return w.current.mounted=k.current=!0,function(){w.current.mounted=k.current=!1,Array.from(w.current.instances).map((function(e){return e[1].destroy()})),w.current.instances.clear()}}),[]),w.current.transitions.map((function(e){var t=e.item,n=e.slot,r=e.key;return{item:t,key:r,state:n,props:w.current.instances.get(r).getValues()}}))},t.useChain=function(e,t,n){void 0===n&&(n=1e3);var r=i.useRef();i.useEffect((function(){u.equ(e,r.current)?e.forEach((function(e){var t=e.current;return t&&t.start()})):t?e.forEach((function(e,r){var a=e.current;if(a){var i=a.controllers;if(i.length){var s=n*t[r];i.forEach((function(e){e.queue=e.queue.map((function(e){return o({},e,{delay:e.delay+s})})),e.start()}))}}})):e.reduce((function(e,t,n){var r=t.current;return e.then((function(){return r.start()}))}),Promise.resolve()),r.current=e}))},t.useSprings=$},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 r=n(29),o=n(269),a=n(270);e.exports={momentObj:a.createMomentChecker("object",(function(e){return"object"==typeof e}),(function(e){return o.isValidMoment(e)}),"Moment"),momentString:a.createMomentChecker("string",(function(e){return"string"==typeof e}),(function(e){return o.isValidMoment(r(e))}),"Moment"),momentDurationObj:a.createMomentChecker("object",(function(e){return"object"==typeof e}),(function(e){return r.isDuration(e)}),"Duration")}},function(e,t,n){var r=n(85),o=n(86);e.exports=function(e,t,n){var a=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||r)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var s=0;s<16;++s)t[a+s]=i[s];return t||o(i)}},function(e,t,n){"use strict";e.exports=n(113)},,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(33),a=(r=o)&&r.__esModule?r:{default:r},i=n(40);t.default=a.default.oneOf(i.WEEKDAYS)},,function(e,t,n){"use strict";var r=n(60),o=n(102),a=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&a(e,".prototype.")?o(n):n}},function(e,t,n){"use strict";var r=n(268);e.exports=function(e,t,n){return!r(e.props,t)||!r(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 r,o=n(29),a=(r=o)&&r.__esModule?r:{default:r}},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],r=(0,a.default)(e,n,!0);return r.isValid()?r.hour(12):null};var r,o=n(29),a=(r=o)&&r.__esModule?r:{default:r},i=n(40)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(33),a=(r=o)&&r.__esModule?r:{default:r},i=n(40);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 r,o=n(33),a=(r=o)&&r.__esModule?r:{default:r},i=n(40);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 r=new Uint8Array(16);e.exports=function(){return n(r),r}}else{var o=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}},function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0,o=n;return[o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]]].join("")}},function(e,t,n){"use strict";var r=n(88);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},,function(e,t,n){"use strict";var r=Array.prototype.slice,o=n(147),a=Object.keys,i=a?function(e){return a(e)}:n(243),s=Object.keys;i.shim=function(){Object.keys?function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)||(Object.keys=function(e){return o(e)?s(r.call(e)):s(e)}):Object.keys=i;return Object.keys||i},e.exports=i},function(e,t,n){"use strict";var r=n(60),o=n(63),a=r("%Object%").assign;e.exports=function(e,t){if(a)return a(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});var r,o=n(33),a=(r=o)&&r.__esModule?r:{default:r},i=n(40);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 r,o=n(33),a=(r=o)&&r.__esModule?r:{default:r},i=n(40);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!(!r.default.isMoment(e)||!r.default.isMoment(t))&&!(0,o.default)(e,t)};var r=a(n(29)),o=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(),r=e.month(),o=t.year(),i=t.month(),s=n===o,c=r===i;return s&&c?e.date()2?n-2:0),o=2;o0?!0===i?r.scrollTop(t,g.top+O.top):!1===i?r.scrollTop(t,g.top+k.top):O.top<0?r.scrollTop(t,g.top+O.top):r.scrollTop(t,g.top+k.top):a||((i=void 0===i||!!i)?r.scrollTop(t,g.top+O.top):r.scrollTop(t,g.top+k.top)),o&&(O.left<0||k.left>0?!0===s?r.scrollLeft(t,g.left+O.left):!1===s?r.scrollLeft(t,g.left+k.left):O.left<0?r.scrollLeft(t,g.left+O.left):r.scrollLeft(t,g.left+k.left):a||((s=void 0===s||!!s)?r.scrollLeft(t,g.left+O.left):r.scrollLeft(t,g.left+k.left)))}},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},,,,,,,function(e,t,n){var r="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,a=r&&o&&"function"==typeof o.get?o.get:null,i=r&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=s&&c&&"function"==typeof c.get?c.get:null,u=s&&Set.prototype.forEach,d=Boolean.prototype.valueOf,h=Object.prototype.toString,f="function"==typeof BigInt?BigInt.prototype.valueOf:null,p=n(250).custom,b=p&&g(p)?p:null;function v(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function y(e){return String(e).replace(/"/g,""")}function m(e){return"[object Array]"===w(e)}function g(e){return"[object Symbol]"===w(e)}e.exports=function e(t,n,r,o){if(n||(n={}),k(n,"quoteStyle")&&"single"!==n.quoteStyle&&"double"!==n.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function(e,t){return v(e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,_),"single",t)}(t,n);if("number"==typeof t)return 0===t?1/0/t>0?"0":"-0":String(t);if("bigint"==typeof t)return String(t)+"n";var s=void 0===n.depth?5:n.depth;if(void 0===r&&(r=0),r>=s&&s>0&&"object"==typeof t)return"[Object]";if(void 0===o)o=[];else if(function(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n=0)return"[Circular]";function c(t,a){return a&&(o=o.slice()).push(a),e(t,n,r+1,o)}if("function"==typeof t){var h=function(e){if(e.name)return e.name;var t=String(e).match(/^function\s*([\w$]+)/);if(t)return t[1]}(t);return"[Function"+(h?": "+h:"")+"]"}if(g(t)){var p=Symbol.prototype.toString.call(t);return"object"==typeof t?D(p):p}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var O="<"+String(t.nodeName).toLowerCase(),j=t.attributes||[],C=0;C"}if(m(t))return 0===t.length?"[]":"[ "+M(t,c).join(", ")+" ]";if(function(e){return"[object Error]"===w(e)}(t))return 0===(P=M(t,c)).length?"["+String(t)+"]":"{ ["+String(t)+"] "+P.join(", ")+" }";if("object"==typeof t){if(b&&"function"==typeof t[b])return t[b]();if("function"==typeof t.inspect)return t.inspect()}if(function(e){if(!a)return!1;try{a.call(e);try{l.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var P=[];return i.call(t,(function(e,n){P.push(c(n,t)+" => "+c(e,t))})),S("Map",a.call(t),P)}if(function(e){if(!l)return!1;try{l.call(e);try{a.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){P=[];return u.call(t,(function(e){P.push(c(e,t))})),S("Set",l.call(t),P)}if(function(e){return"[object Number]"===w(e)}(t))return D(c(Number(t)));if(function(e){return"[object BigInt]"===w(e)}(t))return D(c(f.call(t)));if(function(e){return"[object Boolean]"===w(e)}(t))return D(d.call(t));if(function(e){return"[object String]"===w(e)}(t))return D(c(String(t)));if(!function(e){return"[object Date]"===w(e)}(t)&&!function(e){return"[object RegExp]"===w(e)}(t)){var E=M(t,c);return 0===E.length?"{}":"{ "+E.join(", ")+" }"}return String(t)};var O=Object.prototype.hasOwnProperty||function(e){return e in this};function k(e,t){return O.call(e,t)}function w(e){return h.call(e)}function _(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+t.toString(16)}function D(e){return"Object("+e+")"}function S(e,t,n){return e+" ("+t+") {"+n.join(", ")+"}"}function M(e,t){var n=m(e),r=[];if(n){r.length=e.length;for(var o=0;o1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');var n="$ "+e;if(!(n in c))throw new SyntaxError("intrinsic "+e+" does not exist!");if(void 0===c[n]&&!t)throw new TypeError("intrinsic "+e+" exists, but is not available. Please file an issue!");return c[n]}},function(e,t,n){"use strict";function r(e,t,n){var r="number"==typeof t,o="number"==typeof n,a="number"==typeof e;return r&&o?t+n:r&&a?t+e:r?t:o&&a?n+e:o?n:a?2*e:0}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e.font.input,o=n.lineHeight,a=n.lineHeight_small,i=e.spacing,s=i.inputPadding,c=i.displayTextPaddingVertical,l=i.displayTextPaddingTop,u=i.displayTextPaddingBottom,d=i.displayTextPaddingVertical_small,h=i.displayTextPaddingTop_small,f=i.displayTextPaddingBottom_small,p=t?a:o,b=t?r(d,h,f):r(c,l,u);return parseInt(p,10)+2*s+b}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=r.default.isMoment(e)?e:(0,o.default)(e,t);return n?n.format(a.DISPLAY_FORMAT):null};var r=i(n(29)),o=i(n(78)),a=n(40);function i(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){var i=t.clone().startOf("month");a&&(i=i.startOf("week"));if((0,r.default)(e,i))return!1;var s=t.clone().add(n-1,"months").endOf("month");a&&(s=s.endOf("week"));return!(0,o.default)(e,s)};var r=a(n(95)),o=a(n(108));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PureDayPicker=t.defaultProps=void 0;var r=Object.assign||function(e){for(var t=1;t=0&&"[object Function]"===r.call(e.callee)),n}},function(e,t,n){"use strict";var r=n(245);e.exports=function(){var e=r.ToObject(this),t=r.ToLength(r.Get(e,"length")),n=1;arguments.length>0&&void 0!==arguments[0]&&(n=r.ToInteger(arguments[0]));var o=r.ArraySpeciesCreate(e,0);return r.FlattenIntoArray(o,e,t,0,n),o}},function(e,t,n){"use strict";var r=n(59).call(Function.call,String.prototype.replace),o=/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]*/;e.exports=function(){return r(this,o,"")}},function(e,t,n){"use strict";var r=n(149);e.exports=function(){if(!String.prototype.trimLeft)return r;return"​"!=="​".trimLeft()?r:String.prototype.trimLeft}},function(e,t,n){"use strict";var r=n(59).call(Function.call,String.prototype.replace),o=/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]*$/;e.exports=function(){return r(this,o,"")}},function(e,t,n){"use strict";var r=n(151);e.exports=function(){if(!String.prototype.trimRight)return r;return"​"!=="​".trimRight()?r:String.prototype.trimRight}},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 r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},function(e,t,n){"use strict";e.exports=n(255)},function(e,t){e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},function(e,t,n){"use strict";var r=Object.prototype.toString;if(n(100)()){var o=Symbol.prototype.toString,a=/^Symbol\(.*\)$/;e.exports=function(e){if("symbol"==typeof e)return!0;if("[object Symbol]"!==r.call(e))return!1;try{return function(e){return"symbol"==typeof e.valueOf()&&a.test(o.call(e))}(e)}catch(e){return!1}}}else e.exports=function(e){return!1}},function(e,t,n){"use strict";var r=n(60),o=r("%TypeError%"),a=r("%SyntaxError%"),i=n(63),s={"Property Descriptor":function(e,t){if("Object"!==e.Type(t))return!1;var n={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var r in t)if(i(t,r)&&!n[r])return!1;var a=i(t,"[[Value]]"),s=i(t,"[[Get]]")||i(t,"[[Set]]");if(a&&s)throw new o("Property Descriptors may not be both accessor and data descriptors");return!0}};e.exports=function(e,t,n,r){var i=s[t];if("function"!=typeof i)throw new a("unknown record type: "+t);if(!i(e,r))throw new o(n+" must be a "+t)}},function(e,t,n){"use strict";var r=Number.isNaN||function(e){return e!=e};e.exports=Number.isFinite||function(e){return"number"==typeof e&&!r(e)&&e!==1/0&&e!==-1/0}},function(e,t,n){"use strict";var r=n(60),o=r("%Math%"),a=r("%Number%");e.exports=a.MAX_SAFE_INTEGER||o.pow(2,53)-1},function(e,t,n){"use strict";e.exports=function(e){return e>=0?1:-1}},function(e,t,n){"use strict";e.exports=function(e,t){var n=e%t;return Math.floor(n>=0?n:n+t)}},function(e,t,n){"use strict";var r=n(60),o=n(63),a=r("%TypeError%");e.exports=function(e,t){if("Object"!==e.Type(t))return!1;var n={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var r in t)if(o(t,r)&&!n[r])return!1;if(e.IsDataDescriptor(t)&&e.IsAccessorDescriptor(t))throw new a("Property Descriptors may not be both accessor and data descriptors");return!0}},function(e,t,n){"use strict";var r=n(60)("RegExp.prototype.test"),o=n(102);e.exports=function(e){return o(r,e)}},function(e,t,n){"use strict";var r=n(75)("String.prototype.slice");e.exports=function(e,t){return e===t||!(e.length>t.length)&&r(t,0,e.length)===e}},function(e,t,n){"use strict";var r=Object.prototype.toString,o=n(155),a=n(101),i=function(e){var t;if((t=arguments.length>1?arguments[1]:"[object Date]"===r.call(e)?String:Number)===String||t===Number){var n,i,s=t===String?["toString","valueOf"]:["valueOf","toString"];for(i=0;i1?i(e,arguments[1]):i(e)}},function(e,t,n){"use strict";var r=n(63),o=RegExp.prototype.exec,a=Object.getOwnPropertyDescriptor,i=Object.prototype.toString,s="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!s)return"[object RegExp]"===i.call(e);var t=a(e,"lastIndex");return!(!t||!r(t,"value"))&&function(e){try{var t=e.lastIndex;return e.lastIndex=0,o.call(e),!0}catch(e){return!1}finally{e.lastIndex=t}}(e)}},function(e,t,n){"use strict";var r=n(148);e.exports=function(){return Array.prototype.flat||r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=void 0,o=void 0;function a(e,t){var n=t(e(o));return function(){return n}}function i(e){return a(e,r.createLTR||r.create)}function s(){for(var e=arguments.length,t=Array(e),n=0;n2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e)return 0;var o="width"===t?"Left":"Top",a="width"===t?"Right":"Bottom",i=!n||r?window.getComputedStyle(e):null,s=e.offsetWidth,c=e.offsetHeight,l="width"===t?s:c;n||(l-=parseFloat(i["padding"+o])+parseFloat(i["padding"+a])+parseFloat(i["border"+o+"Width"])+parseFloat(i["border"+a+"Width"]));r&&(l+=parseFloat(i["margin"+o])+parseFloat(i["margin"+a]));return l}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=o&&a=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 r=n(178);e.exports=function(){return"function"==typeof Object.values?Object.values:r}},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 r=n(186);e.exports=function(){if("undefined"!=typeof document){if(document.contains)return document.contains;if(document.body&&document.body.contains)return document.body.contains}return r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=v(n(33)),o=v(n(66)),a=n(46),i=n(51),s=v(n(54)),c=v(n(189)),l=v(n(92)),u=v(n(190)),d=v(n(107)),h=v(n(191)),f=v(n(81)),p=v(n(73)),b=v(n(93));function v(e){return e&&e.__esModule?e:{default:e}}t.default={startDate:o.default.momentObj,endDate:o.default.momentObj,onDatesChange:r.default.func.isRequired,focusedInput:c.default,onFocusChange:r.default.func.isRequired,onClose:r.default.func,startDateId:r.default.string.isRequired,startDatePlaceholderText:r.default.string,endDateId:r.default.string.isRequired,endDatePlaceholderText:r.default.string,disabled:d.default,required:r.default.bool,readOnly:r.default.bool,screenReaderInputMessage:r.default.string,showClearDates:r.default.bool,showDefaultInputIcon:r.default.bool,inputIconPosition:l.default,customInputIcon:r.default.node,customArrowIcon:r.default.node,customCloseIcon:r.default.node,noBorder:r.default.bool,block:r.default.bool,small:r.default.bool,regular:r.default.bool,keepFocusOnInput:r.default.bool,renderMonthText:(0,a.mutuallyExclusiveProps)(r.default.func,"renderMonthText","renderMonthElement"),renderMonthElement:(0,a.mutuallyExclusiveProps)(r.default.func,"renderMonthText","renderMonthElement"),orientation:u.default,anchorDirection:h.default,openDirection:f.default,horizontalMargin:r.default.number,withPortal:r.default.bool,withFullScreenPortal:r.default.bool,appendToBody:r.default.bool,disableScroll:r.default.bool,daySize:a.nonNegativeInteger,isRTL:r.default.bool,firstDayOfWeek:p.default,initialVisibleMonth:r.default.func,numberOfMonths:r.default.number,keepOpenOnDateSelect:r.default.bool,reopenPickerOnClearDates:r.default.bool,renderCalendarInfo:r.default.func,calendarInfoPosition:b.default,hideKeyboardShortcutsPanel:r.default.bool,verticalHeight:a.nonNegativeInteger,transitionDuration:a.nonNegativeInteger,verticalSpacing:a.nonNegativeInteger,navPrev:r.default.node,navNext:r.default.node,onPrevMonthClick:r.default.func,onNextMonthClick:r.default.func,renderCalendarDay:r.default.func,renderDayContents:r.default.func,minimumNights:r.default.number,enableOutsideDays:r.default.bool,isDayBlocked:r.default.func,isOutsideRange:r.default.func,isDayHighlighted:r.default.func,displayFormat:r.default.oneOfType([r.default.string,r.default.func]),monthFormat:r.default.string,weekDayFormat:r.default.string,phrases:r.default.shape((0,s.default)(i.DateRangePickerPhrases)),dayAriaLabelFormat:r.default.string}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(33),a=(r=o)&&r.__esModule?r:{default:r},i=n(40);t.default=a.default.oneOf([i.START_DATE,i.END_DATE])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(33),a=(r=o)&&r.__esModule?r:{default:r},i=n(40);t.default=a.default.oneOf([i.HORIZONTAL_ORIENTATION,i.VERTICAL_ORIENTATION])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(33),a=(r=o)&&r.__esModule?r:{default:r},i=n(40);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,o){var a="undefined"!=typeof window?window.innerWidth:0,i=e===r.ANCHOR_LEFT?a-n:n,s=o||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-s,0))};var r=n(40)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var o=n.getBoundingClientRect(),a=o.left,i=o.top;e===r.OPEN_UP&&(i=-(window.innerHeight-o.bottom));t===r.ANCHOR_RIGHT&&(a=-(window.innerWidth-o.right));return{transform:"translate3d("+String(Math.round(a))+"px, "+String(Math.round(i))+"px, 0)"}};var r=n(40)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getScrollParent=o,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 r=function(){return document.scrollingElement||document.documentElement};function o(e){var t=e.parentElement;if(null==t)return r();var n=window.getComputedStyle(t).overflowY;return"visible"!==n&&"hidden"!==n&&t.scrollHeight>t.clientHeight?t:o(t)}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map,n=r(),i=o(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 r=function(){function e(e,t){for(var n=0;n0&&(R||N||i!==k)){var U=m||this.today;V=this.deleteModifierFromRange(V,U,U.clone().add(k,"days"),"blocked-minimum-nights"),V=this.deleteModifierFromRange(V,U,U.clone().add(k,"days"),"blocked")}(R||x)&&(0,d.default)(P).forEach((function(e){Object.keys(e).forEach((function(e){var n=(0,u.default)(e),r=!1;(R||T)&&(s(n)?(V=t.addModifier(V,n,"blocked-out-of-range"),r=!0):V=t.deleteModifier(V,n,"blocked-out-of-range")),(R||z)&&(c(n)?(V=t.addModifier(V,n,"blocked-calendar"),r=!0):V=t.deleteModifier(V,n,"blocked-calendar")),V=r?t.addModifier(V,n,"blocked"):t.deleteModifier(V,n,"blocked"),(R||I)&&(V=l(n)?t.addModifier(V,n,"highlighted-calendar"):t.deleteModifier(V,n,"highlighted-calendar"))}))})),i>0&&n&&o===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 G=(0,u.default)();if((0,y.default)(this.today,G)||(V=this.deleteModifier(V,this.today,"today"),V=this.addModifier(V,G,"today"),this.today=G),Object.keys(V).length>0&&this.setState({visibleDays:(0,a.default)({},P,V)}),R||h!==S){var q=A(h,o);this.setState({phrases:(0,a.default)({},h,{chooseAvailableDate:q})})}}},{key:"onDayClick",value:function(e,t){var n=this.props,r=n.keepOpenOnDateSelect,o=n.minimumNights,a=n.onBlur,i=n.focusedInput,s=n.onFocusChange,c=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,w.default)(u,e),v=(0,w.default)(d,e),r||(s(null),c({startDate:p,endDate:v}));else if(i===E.START_DATE){var y=v&&v.clone().subtract(o,"days"),O=(0,g.default)(y,e)||(0,m.default)(p,v),k=h===E.END_DATE;k&&O||(p=e,O&&(v=null)),k&&!O?(s(null),c({startDate:p,endDate:v})):k||s(E.END_DATE)}else if(i===E.END_DATE){var _=p&&p.clone().add(o,"days");p?(0,b.default)(e,_)?(v=e,r||(s(null),c({startDate:p,endDate:v}))):h!==E.START_DATE&&(p=e,v=null):(v=e,s(E.START_DATE))}l({startDate:p,endDate:v}),a()}}},{key:"onDayMouseEnter",value:function(e){if(!this.isTouchDevice){var t=this.props,n=t.startDate,r=t.endDate,o=t.focusedInput,i=t.minimumNights,s=t.startDateOffset,c=t.endDateOffset,l=this.state,u=l.hoverDate,d=l.visibleDays,h=null;if(o){var f=s||c,p={};if(f){var b=(0,w.default)(s,e),v=(0,w.default)(c,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&&!r&&o===E.END_DATE){if((0,m.default)(u,n)){var O=u.clone().add(1,"day");p=this.deleteModifierFromRange(p,n,O,"hovered-span")}if(!this.isBlocked(e)&&(0,m.default)(e,n)){var k=e.clone().add(1,"day");p=this.addModifierToRange(p,n,k,"hovered-span")}}if(!n&&r&&o===E.START_DATE&&((0,g.default)(u,r)&&(p=this.deleteModifierFromRange(p,u,r,"hovered-span")),!this.isBlocked(e)&&(0,g.default)(e,r)&&(p=this.addModifierToRange(p,e,r,"hovered-span"))),n){var _=n.clone().add(1,"day"),D=n.clone().add(i+1,"days");if(p=this.deleteModifierFromRange(p,_,D,"after-hovered-start"),(0,y.default)(e,n)){var S=n.clone().add(1,"day"),M=n.clone().add(i+1,"days");p=this.addModifierToRange(p,S,M,"after-hovered-start")}}}this.setState({hoverDate:e,dateOffset:h,visibleDays:(0,a.default)({},d,p)})}}}},{key:"onDayMouseLeave",value:function(e){var t=this.props,n=t.startDate,r=t.endDate,o=t.minimumNights,i=this.state,s=i.hoverDate,c=i.visibleDays,l=i.dateOffset;if(!this.isTouchDevice&&s){var u={};if(u=this.deleteModifier(u,s,"hovered"),l&&(u=this.deleteModifierFromRange(u,this.state.dateOffset.start,this.state.dateOffset.end,"hovered-offset")),n&&!r&&(0,m.default)(s,n)){var d=s.clone().add(1,"day");u=this.deleteModifierFromRange(u,n,d,"hovered-span")}if(!n&&r&&(0,m.default)(r,s)&&(u=this.deleteModifierFromRange(u,s,r,"hovered-span")),n&&(0,y.default)(e,n)){var h=n.clone().add(1,"day"),f=n.clone().add(o+1,"days");u=this.deleteModifierFromRange(u,h,f,"after-hovered-start")}this.setState({hoverDate:null,visibleDays:(0,a.default)({},c,u)})}}},{key:"onPrevMonthClick",value:function(){var e=this.props,t=e.onPrevMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,i=o.currentMonth,s=o.visibleDays,c={};Object.keys(s).sort().slice(0,n+1).forEach((function(e){c[e]=s[e]}));var l=i.clone().subtract(2,"months"),u=(0,O.default)(l,1,r,!0),d=i.clone().subtract(1,"month");this.setState({currentMonth:d,visibleDays:(0,a.default)({},c,this.getModifiers(u))},(function(){t(d.clone())}))}},{key:"onNextMonthClick",value:function(){var e=this.props,t=e.onNextMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,i=o.currentMonth,s=o.visibleDays,c={};Object.keys(s).sort().slice(1).forEach((function(e){c[e]=s[e]}));var l=i.clone().add(n+1,"month"),u=(0,O.default)(l,1,r,!0),d=i.clone().add(1,"month");this.setState({currentMonth:d,visibleDays:(0,a.default)({},c,this.getModifiers(u))},(function(){t(d.clone())}))}},{key:"onMonthChange",value:function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===E.VERTICAL_SCROLLABLE,a=(0,O.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(a)})}},{key:"onYearChange",value:function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===E.VERTICAL_SCROLLABLE,a=(0,O.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(a)})}},{key:"onMultiplyScrollableMonths",value:function(){var e=this.props,t=e.numberOfMonths,n=e.enableOutsideDays,r=this.state,o=r.currentMonth,i=r.visibleDays,s=Object.keys(i).length,c=o.clone().add(s,"month"),l=(0,O.default)(c,t,n,!0);this.setState({visibleDays:(0,a.default)({},i,this.getModifiers(l))})}},{key:"getFirstFocusableDay",value:function(e){var t=this,n=this.props,o=n.startDate,a=n.endDate,i=n.focusedInput,s=n.minimumNights,c=n.numberOfMonths,l=e.clone().startOf("month");if(i===E.START_DATE&&o?l=o.clone():i===E.END_DATE&&!a&&o?l=o.clone().add(s,"days"):i===E.END_DATE&&a&&(l=a.clone()),this.isBlocked(l)){for(var u=[],d=e.clone().add(c-1,"months").endOf("month"),h=l.clone();!(0,m.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=r(f,1)[0])}return l}},{key:"getModifiers",value:function(e){var t=this,n={};return Object.keys(e).forEach((function(r){n[r]={},e[r].forEach((function(e){n[r][(0,_.default)(e)]=t.getModifiersForDay(e)}))})),n}},{key:"getModifiersForDay",value:function(e){var t=this;return new Set(Object.keys(this.modifiers).filter((function(n){return t.modifiers[n](e)})))}},{key:"getStateForNewMonth",value:function(e){var t=this,n=e.initialVisibleMonth,r=e.numberOfMonths,o=e.enableOutsideDays,a=e.orientation,i=e.startDate,s=(n||(i?function(){return i}:function(){return t.today}))(),c=a===E.VERTICAL_SCROLLABLE;return{currentMonth:s,visibleDays:this.getModifiers((0,O.default)(s,r,o,c))}}},{key:"addModifier",value:function(e,t,n){var r=this.props,o=r.numberOfMonths,i=r.enableOutsideDays,s=r.orientation,c=this.state,l=c.currentMonth,u=c.visibleDays,d=l,h=o;if(s===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,_.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,r){var o=e[r]||u[r],i=new Set(o[f]);return i.add(n),(0,a.default)({},t,I({},r,(0,a.default)({},o,I({},f,i))))}),p);else{var b=(0,D.default)(t),v=e[b]||u[b],y=new Set(v[f]);y.add(n),p=(0,a.default)({},p,I({},b,(0,a.default)({},v,I({},f,y))))}return p}},{key:"addModifierToRange",value:function(e,t,n,r){for(var o=e,a=t.clone();(0,g.default)(a,n);)o=this.addModifier(o,a,r),a=a.clone().add(1,"day");return o}},{key:"deleteModifier",value:function(e,t,n){var r=this.props,o=r.numberOfMonths,i=r.enableOutsideDays,s=r.orientation,c=this.state,l=c.currentMonth,u=c.visibleDays,d=l,h=o;if(s===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,_.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,r){var o=e[r]||u[r],i=new Set(o[f]);return i.delete(n),(0,a.default)({},t,I({},r,(0,a.default)({},o,I({},f,i))))}),p);else{var b=(0,D.default)(t),v=e[b]||u[b],y=new Set(v[f]);y.delete(n),p=(0,a.default)({},p,I({},b,(0,a.default)({},v,I({},f,y))))}return p}},{key:"deleteModifierFromRange",value:function(e,t,n,r){for(var o=e,a=t.clone();(0,g.default)(a,n);)o=this.deleteModifier(o,a,r),a=a.clone().add(1,"day");return o}},{key:"doesNotMeetMinimumNights",value:function(e){var t=this.props,n=t.startDate,r=t.isOutsideRange,o=t.focusedInput,a=t.minimumNights;if(o!==E.END_DATE)return!1;if(n){var i=e.diff(n.clone().startOf("day").hour(12),"days");return i=0}return r((0,u.default)(e).subtract(a,"days"))}},{key:"isDayAfterHoveredStartDate",value:function(e){var t=this.props,n=t.startDate,r=t.endDate,o=t.minimumNights,a=(this.state||{}).hoverDate;return!!n&&!r&&!this.isBlocked(e)&&(0,v.default)(a,e)&&o>0&&(0,y.default)(a,n)}},{key:"isEndDate",value:function(e){var t=this.props.endDate;return(0,y.default)(e,t)}},{key:"isHovered",value:function(e){var t=(this.state||{}).hoverDate;return!!this.props.focusedInput&&(0,y.default)(e,t)}},{key:"isInHoveredSpan",value:function(e){var t=this.props,n=t.startDate,r=t.endDate,o=(this.state||{}).hoverDate,a=!!n&&!r&&(e.isBetween(n,o)||(0,y.default)(o,e)),i=!!r&&!n&&(e.isBetween(o,r)||(0,y.default)(o,e)),s=o&&!this.isBlocked(o);return(a||i)&&s}},{key:"isInSelectedSpan",value:function(e){var t=this.props,n=t.startDate,r=t.endDate;return e.isBetween(n,r)}},{key:"isLastInRange",value:function(e){var t=this.props.endDate;return this.isInSelectedSpan(e)&&(0,v.default)(e,t)}},{key:"isStartDate",value:function(e){var t=this.props.startDate;return(0,y.default)(e,t)}},{key:"isBlocked",value:function(e){var t=this.props,n=t.isDayBlocked,r=t.isOutsideRange;return n(e)||r(e)||this.doesNotMeetMinimumNights(e)}},{key:"isToday",value:function(e){return(0,y.default)(e,this.today)}},{key:"isFirstDayOfWeek",value:function(e){var t=this.props.firstDayOfWeek;return e.day()===(t||u.default.localeData().firstDayOfWeek())}},{key:"isLastDayOfWeek",value:function(e){var t=this.props.firstDayOfWeek;return e.day()===((t||u.default.localeData().firstDayOfWeek())+6)%7}},{key:"render",value:function(){var e=this.props,t=e.numberOfMonths,n=e.orientation,r=e.monthFormat,o=e.renderMonthText,a=e.navPrev,s=e.navNext,c=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,y=e.renderDayContents,m=e.renderCalendarInfo,g=e.renderMonthElement,O=e.calendarInfoPosition,k=e.onBlur,w=e.isFocused,_=e.showKeyboardShortcuts,D=e.isRTL,S=e.weekDayFormat,M=e.dayAriaLabelFormat,j=e.verticalHeight,C=e.noBorder,P=e.transitionDuration,E=e.verticalBorderSpacing,z=e.horizontalMonthPadding,I=this.state,x=I.currentMonth,N=I.phrases,A=I.visibleDays;return i.default.createElement(T.default,{orientation:n,enableOutsideDays:d,modifiers:A,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:r,renderMonthText:o,withPortal:u,hidden:!b,initialVisibleMonth:function(){return x},daySize:p,onOutsideClick:l,navPrev:a,navNext:s,noNavButtons:c,renderCalendarDay:v,renderDayContents:y,renderCalendarInfo:m,renderMonthElement:g,calendarInfoPosition:O,firstDayOfWeek:h,hideKeyboardShortcutsPanel:f,isFocused:w,getFirstFocusableDay:this.getFirstFocusableDay,onBlur:k,showKeyboardShortcuts:_,phrases:N,isRTL:D,weekDayFormat:S,dayAriaLabelFormat:M,verticalHeight:j,verticalBorderSpacing:E,noBorder:C,transitionDuration:P,horizontalMonthPadding:z})}}]),t}(i.default.Component);t.default=H,H.propTypes=x,H.defaultProps=N},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!r.default.isMoment(e)||!r.default.isMoment(t))return!1;var n=(0,r.default)(e).add(1,"day");return(0,o.default)(n,t)};var r=a(n(29)),o=a(n(77));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(!r.default.isMoment(e))return{};for(var i={},s=a?e.clone():e.clone().subtract(1,"month"),c=0;c<(a?t:t+2);c+=1){var l=[],u=s.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)({},_,T)})}},{key:"componentWillUpdate",value:function(){this.today=(0,u.default)()}},{key:"onDayClick",value:function(e,t){if(t&&t.preventDefault(),!this.isBlocked(e)){var n=this.props,r=n.onDateChange,o=n.keepOpenOnDateSelect,a=n.onFocusChange,i=n.onClose;r(e),o||(a({focused:!1}),i({date:e}))}}},{key:"onDayMouseEnter",value:function(e){if(!this.isTouchDevice){var t=this.state,n=t.hoverDate,r=t.visibleDays,o=this.deleteModifier({},n,"hovered");o=this.addModifier(o,e,"hovered"),this.setState({hoverDate:e,visibleDays:(0,a.default)({},r,o)})}}},{key:"onDayMouseLeave",value:function(){var e=this.state,t=e.hoverDate,n=e.visibleDays;if(!this.isTouchDevice&&t){var r=this.deleteModifier({},t,"hovered");this.setState({hoverDate:null,visibleDays:(0,a.default)({},n,r)})}}},{key:"onPrevMonthClick",value:function(){var e=this.props,t=e.onPrevMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,i=o.currentMonth,s=o.visibleDays,c={};Object.keys(s).sort().slice(0,n+1).forEach((function(e){c[e]=s[e]}));var l=i.clone().subtract(1,"month"),u=(0,y.default)(l,1,r);this.setState({currentMonth:l,visibleDays:(0,a.default)({},c,this.getModifiers(u))},(function(){t(l.clone())}))}},{key:"onNextMonthClick",value:function(){var e=this.props,t=e.onNextMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,i=o.currentMonth,s=o.visibleDays,c={};Object.keys(s).sort().slice(1).forEach((function(e){c[e]=s[e]}));var l=i.clone().add(n,"month"),u=(0,y.default)(l,1,r),d=i.clone().add(1,"month");this.setState({currentMonth:d,visibleDays:(0,a.default)({},c,this.getModifiers(u))},(function(){t(d.clone())}))}},{key:"onMonthChange",value:function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===D.VERTICAL_SCROLLABLE,a=(0,y.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(a)})}},{key:"onYearChange",value:function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===D.VERTICAL_SCROLLABLE,a=(0,y.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(a)})}},{key:"getFirstFocusableDay",value:function(e){var t=this,n=this.props,o=n.date,a=n.numberOfMonths,i=e.clone().startOf("month");if(o&&(i=o.clone()),this.isBlocked(i)){for(var s=[],c=e.clone().add(a-1,"months").endOf("month"),l=i.clone();!(0,v.default)(l,c);)l=l.clone().add(1,"day"),s.push(l);var u=s.filter((function(e){return!t.isBlocked(e)&&(0,v.default)(e,i)}));if(u.length>0){var d=r(u,1);i=d[0]}}return i}},{key:"getModifiers",value:function(e){var t=this,n={};return Object.keys(e).forEach((function(r){n[r]={},e[r].forEach((function(e){n[r][(0,g.default)(e)]=t.getModifiersForDay(e)}))})),n}},{key:"getModifiersForDay",value:function(e){var t=this;return new Set(Object.keys(this.modifiers).filter((function(n){return t.modifiers[n](e)})))}},{key:"getStateForNewMonth",value:function(e){var t=this,n=e.initialVisibleMonth,r=e.date,o=e.numberOfMonths,a=e.enableOutsideDays,i=(n||(r?function(){return r}:function(){return t.today}))();return{currentMonth:i,visibleDays:this.getModifiers((0,y.default)(i,o,a))}}},{key:"addModifier",value:function(e,t,n){var r=this.props,o=r.numberOfMonths,i=r.enableOutsideDays,s=r.orientation,c=this.state,l=c.currentMonth,u=c.visibleDays,d=l,h=o;if(s===D.VERTICAL_SCROLLABLE?h=Object.keys(u).length:(d=d.clone().subtract(1,"month"),h+=2),!t||!(0,m.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,r){var o=e[r]||u[r],i=new Set(o[f]);return i.add(n),(0,a.default)({},t,j({},r,(0,a.default)({},o,j({},f,i))))}),p);else{var b=(0,O.default)(t),v=e[b]||u[b],y=new Set(v[f]);y.add(n),p=(0,a.default)({},p,j({},b,(0,a.default)({},v,j({},f,y))))}return p}},{key:"deleteModifier",value:function(e,t,n){var r=this.props,o=r.numberOfMonths,i=r.enableOutsideDays,s=r.orientation,c=this.state,l=c.currentMonth,u=c.visibleDays,d=l,h=o;if(s===D.VERTICAL_SCROLLABLE?h=Object.keys(u).length:(d=d.clone().subtract(1,"month"),h+=2),!t||!(0,m.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,r){var o=e[r]||u[r],i=new Set(o[f]);return i.delete(n),(0,a.default)({},t,j({},r,(0,a.default)({},o,j({},f,i))))}),p);else{var b=(0,O.default)(t),v=e[b]||u[b],y=new Set(v[f]);y.delete(n),p=(0,a.default)({},p,j({},b,(0,a.default)({},v,j({},f,y))))}return p}},{key:"isBlocked",value:function(e){var t=this.props,n=t.isDayBlocked,r=t.isOutsideRange;return n(e)||r(e)}},{key:"isHovered",value:function(e){var t=(this.state||{}).hoverDate;return(0,b.default)(e,t)}},{key:"isSelected",value:function(e){var t=this.props.date;return(0,b.default)(e,t)}},{key:"isToday",value:function(e){return(0,b.default)(e,this.today)}},{key:"isFirstDayOfWeek",value:function(e){var t=this.props.firstDayOfWeek;return e.day()===(t||u.default.localeData().firstDayOfWeek())}},{key:"isLastDayOfWeek",value:function(e){var t=this.props.firstDayOfWeek;return e.day()===((t||u.default.localeData().firstDayOfWeek())+6)%7}},{key:"render",value:function(){var e=this.props,t=e.numberOfMonths,n=e.orientation,r=e.monthFormat,o=e.renderMonthText,a=e.navPrev,s=e.navNext,c=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,y=e.renderCalendarInfo,m=e.renderMonthElement,g=e.calendarInfoPosition,O=e.isFocused,k=e.isRTL,w=e.phrases,_=e.dayAriaLabelFormat,D=e.onBlur,M=e.showKeyboardShortcuts,j=e.weekDayFormat,C=e.verticalHeight,P=e.noBorder,E=e.transitionDuration,T=e.verticalBorderSpacing,z=e.horizontalMonthPadding,I=this.state,x=I.currentMonth,N=I.visibleDays;return i.default.createElement(S.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,monthFormat:r,withPortal:l,hidden:!u,hideKeyboardShortcutsPanel:h,initialVisibleMonth:function(){return x},firstDayOfWeek:p,onOutsideClick:c,navPrev:a,navNext:s,renderMonthText:o,renderCalendarDay:b,renderDayContents:v,renderCalendarInfo:y,renderMonthElement:m,calendarInfoPosition:g,isFocused:O,getFirstFocusableDay:this.getFirstFocusableDay,onBlur:D,phrases:w,daySize:f,isRTL:k,showKeyboardShortcuts:M,weekDayFormat:j,dayAriaLabelFormat:_,verticalHeight:C,noBorder:P,transitionDuration:E,verticalBorderSpacing:T,horizontalMonthPadding:z})}}]),t}(i.default.Component);t.default=E,E.propTypes=C,E.defaultProps=P},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=p(n(33)),o=p(n(66)),a=n(46),i=n(51),s=p(n(54)),c=p(n(92)),l=p(n(190)),u=p(n(191)),d=p(n(81)),h=p(n(73)),f=p(n(93));function p(e){return e&&e.__esModule?e:{default:e}}t.default={date:o.default.momentObj,onDateChange:r.default.func.isRequired,focused:r.default.bool,onFocusChange:r.default.func.isRequired,id:r.default.string.isRequired,placeholder:r.default.string,disabled:r.default.bool,required:r.default.bool,readOnly:r.default.bool,screenReaderInputMessage:r.default.string,showClearDate:r.default.bool,customCloseIcon:r.default.node,showDefaultInputIcon:r.default.bool,inputIconPosition:c.default,customInputIcon:r.default.node,noBorder:r.default.bool,block:r.default.bool,small:r.default.bool,regular:r.default.bool,verticalSpacing:a.nonNegativeInteger,keepFocusOnInput:r.default.bool,renderMonthText:(0,a.mutuallyExclusiveProps)(r.default.func,"renderMonthText","renderMonthElement"),renderMonthElement:(0,a.mutuallyExclusiveProps)(r.default.func,"renderMonthText","renderMonthElement"),orientation:l.default,anchorDirection:u.default,openDirection:d.default,horizontalMargin:r.default.number,withPortal:r.default.bool,withFullScreenPortal:r.default.bool,appendToBody:r.default.bool,disableScroll:r.default.bool,initialVisibleMonth:r.default.func,firstDayOfWeek:h.default,numberOfMonths:r.default.number,keepOpenOnDateSelect:r.default.bool,reopenPickerOnClearDate:r.default.bool,renderCalendarInfo:r.default.func,calendarInfoPosition:f.default,hideKeyboardShortcutsPanel:r.default.bool,daySize:a.nonNegativeInteger,isRTL:r.default.bool,verticalHeight:a.nonNegativeInteger,transitionDuration:a.nonNegativeInteger,horizontalMonthPadding:a.nonNegativeInteger,navPrev:r.default.node,navNext:r.default.node,onPrevMonthClick:r.default.func,onNextMonthClick:r.default.func,onClose:r.default.func,renderCalendarDay:r.default.func,renderDayContents:r.default.func,enableOutsideDays:r.default.bool,isDayBlocked:r.default.func,isOutsideRange:r.default.func,isDayHighlighted:r.default.func,displayFormat:r.default.oneOfType([r.default.string,r.default.func]),monthFormat:r.default.string,weekDayFormat:r.default.string,phrases:r.default.shape((0,s.default)(i.SingleDatePickerPhrases)),dayAriaLabelFormat:r.default.string}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=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.richText}()},function(e,t,n){"use strict";var r=n(38);var o=n(39);function a(e,t){return Object(r.a)(e)||function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.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.wp.dom}()},,function(e,t){!function(){e.exports=this.wp.hooks}()},function(e,t){!function(){e.exports=this.React}()},function(e,t){!function(){e.exports=this.moment}()},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,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,n){e.exports=n(87)()},,,,function(e,t){!function(){e.exports=this.wp.deprecated}()},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,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){"use strict";function r(e,t,n,r,o,a,i){try{var s=e[a](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,a){var i=e.apply(t,n);function s(e){r(i,o,a,s,c,"next",e)}function c(e){r(i,o,a,s,c,"throw",e)}s(void 0)}))}}n.d(t,"a",(function(){return o}))},,function(e,t){!function(){e.exports=this.wp.a11y}()},function(e,t,n){e.exports=n(271)},function(e,t,n){var r=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,n,r){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),i=new j(r||[]);return a._invoke=function(e,t,n){var r=u;return function(o,a){if(r===h)throw new Error("Generator is already running");if(r===f){if("throw"===o)throw a;return P()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var s=D(i,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===u)throw r=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var c=l(e,t,n);if("normal"===c.type){if(r=n.done?f:d,c.arg===p)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=f,n.method="throw",n.arg=c.arg)}}}(e,n,i),a}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u="suspendedStart",d="suspendedYield",h="executing",f="completed",p={};function b(){}function v(){}function y(){}var m={};m[a]=function(){return this};var g=Object.getPrototypeOf,O=g&&g(g(C([])));O&&O!==n&&r.call(O,a)&&(m=O);var k=y.prototype=b.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function _(e){var t;this._invoke=function(n,o){function a(){return new Promise((function(t,a){!function t(n,o,a,i){var s=l(e[n],e,o);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==typeof u&&r.call(u,"__await")?Promise.resolve(u.__await).then((function(e){t("next",e,a,i)}),(function(e){t("throw",e,a,i)})):Promise.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return t("throw",e,a,i)}))}i(s.arg)}(n,o,t,a)}))}return t=t?t.then(a,a):a()}}function D(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,D(e,n),"throw"===n.method))return p;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var o=l(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,p;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,p):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function S(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 M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(e){if(e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){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),M(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;M(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),p}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){var r;!function(o){var a=/^\s+/,i=/\s+$/,s=0,c=o.round,l=o.min,u=o.max,d=o.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,r=null,s=null,c=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:N(t[1]),g:N(t[2]),b:N(t[3]),a:L(t[4]),format:n?"name":"hex8"};if(t=K.hex6.exec(e))return{r:N(t[1]),g:N(t[2]),b:N(t[3]),format:n?"name":"hex"};if(t=K.hex4.exec(e))return{r:N(t[1]+""+t[1]),g:N(t[2]+""+t[2]),b:N(t[3]+""+t[3]),a:L(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=K.hex3.exec(e))return{r:N(t[1]+""+t[1]),g:N(t[2]+""+t[2]),b:N(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)?(r=H(e.s),s=H(e.v),t=function(e,t,n){e=6*I(e,360),t=I(t,100),n=I(n,100);var r=o.floor(e),a=e-r,i=n*(1-t),s=n*(1-a*t),c=n*(1-(1-a)*t),l=r%6;return{r:255*[n,s,i,i,c,n][l],g:255*[c,n,n,s,i,i][l],b:255*[i,i,c,n,n,s][l]}}(e.h,r,s),d=!0,h="hsv"):W(e.h)&&W(e.s)&&W(e.l)&&(r=H(e.s),c=H(e.l),t=function(e,t,n){var r,o,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)r=o=a=n;else{var s=n<.5?n*(1+t):n+t-n*t,c=2*n-s;r=i(c,s,e+1/3),o=i(c,s,e),a=i(c,s,e-1/3)}return{r:255*r,g:255*o,b:255*a}}(e.h,r,c),d=!0,h="hsl"),e.hasOwnProperty("a")&&(n=e.a));var f,p,b;return n=z(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=c(100*this._a)/100,this._format=t.format||n.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=n.ok,this._tc_id=s++}function f(e,t,n){e=I(e,255),t=I(t,255),n=I(n,255);var r,o,a=u(e,t,n),i=l(e,t,n),s=(a+i)/2;if(a==i)r=o=0;else{var c=a-i;switch(o=s>.5?c/(2-a-i):c/(a+i),a){case e:r=(t-n)/c+(t>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(h(r));return a}function P(e,t){t=t||6;for(var n=h(e).toHsv(),r=n.h,o=n.s,a=n.v,i=[],s=1/t;t--;)i.push(h({h:r,s:o,v:a})),a=(a+s)%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,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=z(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),n=c(100*e.s),r=c(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+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=c(360*e.h),n=c(100*e.s),r=c(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+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,r,o){var a=[A(c(e).toString(16)),A(c(t).toString(16)),A(c(n).toString(16)),A(R(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: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*I(this._r,255))+"%",g:c(100*I(this._g,255))+"%",b:c(100*I(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+c(100*I(this._r,255))+"%, "+c(100*I(this._g,255))+"%, "+c(100*I(this._b,255))+"%)":"rgba("+c(100*I(this._r,255))+"%, "+c(100*I(this._g,255))+"%, "+c(100*I(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(T[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,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=h(e);n="#"+v(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 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(w,arguments)},desaturate:function(){return this._applyModification(y,arguments)},saturate:function(){return this._applyModification(m,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(C,arguments)},complement:function(){return this._applyCombination(D,arguments)},monochromatic:function(){return this._applyCombination(P,arguments)},splitcomplement:function(){return this._applyCombination(j,arguments)},triad:function(){return this._applyCombination(S,arguments)},tetrad:function(){return this._applyCombination(M,arguments)}},h.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:H(e[r]));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 r=h(e).toRgb(),o=h(t).toRgb(),a=n/100;return h({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})},h.readability=function(e,t){var n=h(e),r=h(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},h.isReadable=function(e,t,n){var r,o,a=h.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},h.mostReadable=function(e,t,n){var r,o,a,i,s=null,c=0;o=(n=n||{}).includeFallbackColors,a=n.level,i=n.size;for(var l=0;lc&&(c=r,s=h(t[l]));return h.isReadable(e,s,{level:a,size:i})||!o?s:(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"},T=h.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(E);function z(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),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function x(e){return l(1,u(0,e))}function N(e){return parseInt(e,16)}function A(e){return 1==e.length?"0"+e:""+e}function H(e){return e<=1&&(e=100*e+"%"),e}function R(e){return o.round(255*parseFloat(e)).toString(16)}function L(e){return N(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===(r=function(){return h}.call(t,n,t,e))||(e.exports=r)}(Math)},function(e,t,n){"use strict";var r=n(55),o=n(170),a=n(171),i=n(267),s=a();r(s,{getPolyfill:a,implementation:o,shim:i}),e.exports=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="Interact with the calendar and add the check-in date for your trip.",o="Move backward to switch to the previous month.",a="Move forward to switch to the next month.",i="page up and page down keys",s="Home and end keys",c="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},y=function(e){var t=e.date;return"Not available. "+String(t)},m=function(e){var t=e.date;return"Selected. "+String(t)};t.default={calendarLabel:"Calendar",closeDatePicker:"Close",focusStartDate:r,clearDate:"Clear Date",clearDates:"Clear Dates",jumpToPrevMonth:o,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:s,escape:c,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:y,dateIsSelected:m};t.DateRangePickerPhrases={calendarLabel:"Calendar",closeDatePicker:"Close",clearDates:"Clear Dates",focusStartDate:r,jumpToPrevMonth:o,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:s,escape:c,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:y,dateIsSelected:m},t.DateRangePickerInputPhrases={focusStartDate:r,clearDates:"Clear Dates",keyboardNavigationInstructions:f},t.SingleDatePickerPhrases={calendarLabel:"Calendar",closeDatePicker:"Close",clearDate:"Clear Date",jumpToPrevMonth:o,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:s,escape:c,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:y,dateIsSelected:m},t.SingleDatePickerInputPhrases={clearDate:"Clear Date",keyboardNavigationInstructions:f},t.DayPickerPhrases={calendarLabel:"Calendar",jumpToPrevMonth:o,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:s,escape:c,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:y,dateIsSelected:m},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:s,escape:c,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:o,jumpToNextMonth:a},t.CalendarDayPhrases={chooseAvailableDate:v,dateIsUnavailable:y,dateIsSelected:m}},,,,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,r.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,o.default.oneOfType([o.default.string,o.default.func,o.default.node])))}),{})};var r=a(n(49)),o=a(n(33));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";var r=n(90),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),a=Object.prototype.toString,i=Array.prototype.concat,s=Object.defineProperty,c=s&&function(){var e={};try{for(var t in s(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(e){return!1}}(),l=function(e,t,n,r){var o;t in e&&("function"!=typeof(o=r)||"[object Function]"!==a.call(o)||!r())||(c?s(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=r(t);o&&(a=i.call(a,Object.getOwnPropertySymbols(t)));for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{},n=t.stylesPropName,s=void 0===n?"styles":n,u=t.themePropName,h=void 0===u?"theme":u,p=t.cssPropName,m=void 0===p?"css":p,g=t.flushBefore,O=void 0!==g&&g,k=t.pureComponent,w=void 0!==k&&k,_=void 0,D=void 0,S=void 0,M=void 0,j=function(e){if(e){if(!i.default.PureComponent)throw new ReferenceError("withStyles() pureComponent option requires React 15.3.0 or later");return i.default.PureComponent}return i.default.Component}(w);function C(e){return e===l.DIRECTIONS.LTR?d.default.resolveLTR:d.default.resolveRTL}function P(t,n){var r=function(e){return e===l.DIRECTIONS.LTR?S:M}(t),o=t===l.DIRECTIONS.LTR?_:D,a=d.default.get();return o&&r===a?o:(t===l.DIRECTIONS.RTL?(D=e?d.default.createRTL(e):b,M=a,o=D):(_=e?d.default.createLTR(e):b,S=a,o=_),o)}function E(e,t){return{resolveMethod:C(e),styleDef:P(e)}}return function(e){var t=e.displayName||e.name||"Component",n=function(t){function n(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var r=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,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t)),o=r.context[l.CHANNEL]?r.context[l.CHANNEL].getState():y;return r.state=E(o),r}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)}(n,t),o(n,[{key:"componentDidMount",value:function(){var e=this;this.context[l.CHANNEL]&&(this.channelUnsubscribe=this.context[l.CHANNEL].subscribe((function(t){e.setState(E(t))})))}},{key:"componentWillUnmount",value:function(){this.channelUnsubscribe&&this.channelUnsubscribe()}},{key:"render",value:function(){var t;O&&d.default.flush();var n=this.state,o=n.resolveMethod,a=n.styleDef;return i.default.createElement(e,r({},this.props,(f(t={},h,d.default.get()),f(t,s,a()),f(t,m,o),t)))}}]),n}(j);return n.WrappedComponent=e,n.displayName="withStyles("+String(t)+")",n.contextTypes=v,e.propTypes&&(n.propTypes=(0,a.default)({},e.propTypes),delete n.propTypes[s],delete n.propTypes[h],delete n.propTypes[m]),e.defaultProps&&(n.defaultProps=(0,a.default)({},e.defaultProps)),(0,c.default)(n,e)}};var a=h(n(49)),i=h(n(28)),s=h(n(33)),c=h(n(272)),l=n(275),u=h(n(276)),d=h(n(168));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:s.default.object.isRequired,theme:s.default.object.isRequired,css:s.default.func.isRequired};var p={},b=function(){return p};var v=f({},l.CHANNEL,u.default),y=l.DIRECTIONS.LTR},function(e,t){!function(){e.exports=this.ReactDOM}()},,function(e,t,n){"use strict";var r=n(244);e.exports=Function.prototype.bind||r},function(e,t,n){"use strict";var r=TypeError,o=Object.getOwnPropertyDescriptor?function(){return Object.getOwnPropertyDescriptor(arguments,"callee").get}():function(){throw new r},a=n(100)(),i=Object.getPrototypeOf||function(e){return e.__proto__},s=void 0,c="undefined"==typeof Uint8Array?void 0:i(Uint8Array),l={"$ %Array%":Array,"$ %ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"$ %ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer.prototype,"$ %ArrayIteratorPrototype%":a?i([][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%":s&&a&&Symbol.asyncIterator?s[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%":a?i(i([][Symbol.iterator]())):void 0,"$ %JSON%":JSON,"$ %JSONParse%":JSON.parse,"$ %Map%":"undefined"==typeof Map?void 0:Map,"$ %MapIteratorPrototype%":"undefined"!=typeof Map&&a?i((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&&a?i((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%":a?i(""[Symbol.iterator]()):void 0,"$ %StringPrototype%":String.prototype,"$ %Symbol%":a?Symbol:void 0,"$ %SymbolPrototype%":a?Symbol.prototype:void 0,"$ %SyntaxError%":SyntaxError,"$ %SyntaxErrorPrototype%":SyntaxError.prototype,"$ %ThrowTypeError%":o,"$ %TypedArray%":c,"$ %TypedArrayPrototype%":c?c.prototype:void 0,"$ %TypeError%":r,"$ %TypeErrorPrototype%":r.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},u=n(59).call(Function.call,String.prototype.replace),d=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,h=/\\(\\)?/g,f=function(e){var t=[];return u(e,d,(function(e,n,r,o){t[t.length]=r?u(o,h,"$1"):n||e})),t},p=function(e,t){var n="$ "+e;if(!(n in l))throw new SyntaxError("intrinsic "+e+" does not exist!");if(void 0===l[n]&&!t)throw new r("intrinsic "+e+" exists, but is not available. Please file an issue!");return l[n]};e.exports=function(e,t){if(arguments.length>1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');var n=f(e);if(0===n.length)return p(e,t);for(var r=p("%"+n[0]+"%",t),o=1;o1?t-1:0),r=1;r=n.length)break;a=n[o++]}else{if((o=n.next()).done)break;a=o.value}for(var i=a,s=!1,c=0;c=f.startTime+l.duration;else if(l.decay)v=p+g/(1-.998)*(1-Math.exp(-(1-.998)*(t-f.startTime))),(u=Math.abs(f.lastPosition-v)<.1)&&(b=v);else{d=void 0!==f.lastTime?f.lastTime:t,g=void 0!==f.lastVelocity?f.lastVelocity:l.initialVelocity,t>d+64&&(d=t);for(var O=Math.floor(t-d),k=0;kb:v=e);++n);return n-1}(e,a);return function(e,t,n,r,o,a,i,s,c){var l=c?c(e):e;if(ln){if("identity"===s)return l;"clamp"===s&&(l=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?l=-l:n===1/0?l-=t:l=(l-t)/(n-t);l=a(l),r===-1/0?l=-l:o===1/0?l+=r:l=l*(o-r)+r;return l}(e,a[t],a[t+1],o[t],o[t+1],c,i,s,r.map)}}var F=function(e){function t(n,r,o,a){var i;return(i=e.call(this)||this).calc=void 0,i.payload=n instanceof g&&!(n instanceof t)?n.getPayload():Array.isArray(n)?n:[n],i.calc=L(r,o,a),i}c(t,e);var n=t.prototype;return n.getValue=function(){return this.calc.apply(this,this.payload.map((function(e){return e.getValue()})))},n.updateConfig=function(e,t,n){this.calc=L(e,t,n)},n.interpolate=function(e,n,r){return new t(this,e,n,r)},t}(g);var V=function(e){function t(t){var n;return(n=e.call(this)||this).animatedStyles=new Set,n.value=void 0,n.startPosition=void 0,n.lastPosition=void 0,n.lastVelocity=void 0,n.startTime=void 0,n.lastTime=void 0,n.done=!1,n.setValue=function(e,t){void 0===t&&(t=!0),n.value=e,t&&n.flush()},n.value=t,n.startPosition=t,n.lastPosition=t,n}c(t,e);var n=t.prototype;return n.flush=function(){0===this.animatedStyles.size&&function e(t,n){"update"in t?n.add(t):t.getChildren().forEach((function(t){return e(t,n)}))}(this,this.animatedStyles),this.animatedStyles.forEach((function(e){return e.update()}))},n.clearStyles=function(){this.animatedStyles.clear()},n.getValue=function(){return this.value},n.interpolate=function(e,t,n){return new F(this,e,t,n)},t}(m),B=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map((function(e){return new V(e)})),n}c(t,e);var n=t.prototype;return n.setValue=function(e,t){var n=this;void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((function(e,r){return n.payload[r].setValue(e,t)})):this.payload.forEach((function(n){return n.setValue(e,t)}))},n.getValue=function(){return this.payload.map((function(e){return e.getValue()}))},n.interpolate=function(e,t){return new F(this,e,t)},t}(g),K=0,W=function(){function e(){var e=this;this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=function(){return e.interpolations},this.id=K++}var t=e.prototype;return t.update=function(e){if(!e)return this;var t=b(e),n=t.delay,r=void 0===n?0:n,i=t.to,s=a(t,["delay","to"]);if(u.arr(i)||u.fun(i))this.queue.push(o({},s,{delay:r,to:i}));else if(i){var c={};Object.entries(i).forEach((function(e){var t,n=e[0],a=e[1],i=o({to:(t={},t[n]=a,t),delay:p(r,n)},s),l=c[i.delay]&&c[i.delay].to;c[i.delay]=o({},c[i.delay],i,{to:o({},l,i.to)})})),this.queue=Object.values(c)}return this.queue=this.queue.sort((function(e,t){return e.delay-t.delay})),this.diff(s),this},t.start=function(e){var t,n=this;if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((function(e){var t=e.from,r=void 0===t?{}:t,a=e.to,i=void 0===a?{}:a;u.obj(r)&&(n.merged=o({},r,n.merged)),u.obj(i)&&(n.merged=o({},n.merged,i))}));var r=this.local=++this.guid,i=this.localQueue=this.queue;this.queue=[],i.forEach((function(t,o){var s=t.delay,c=a(t,["delay"]),l=function(t){o===i.length-1&&r===n.guid&&t&&(n.idle=!0,n.props.onRest&&n.props.onRest(n.merged)),e&&e()},d=u.arr(c.to)||u.fun(c.to);s?setTimeout((function(){r===n.guid&&(d?n.runAsync(c,l):n.diff(c).start(l))}),s):d?n.runAsync(c,l):n.diff(c).start(l)}))}else u.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,H.has(t)||H.add(t),A||(A=!0,D(T||R));return this},t.stop=function(e){return this.listeners.forEach((function(t){return t(e)})),this.listeners=[],this},t.pause=function(e){var t;return this.stop(!0),e&&(t=this,H.has(t)&&H.delete(t)),this},t.runAsync=function(e,t){var n=this,r=(e.delay,a(e,["delay"])),i=this.local,s=Promise.resolve(void 0);if(u.arr(r.to))for(var c=function(e){var t=e,a=o({},r,b(r.to[t]));u.arr(a.config)&&(a.config=a.config[t]),s=s.then((function(){if(i===n.guid)return new Promise((function(e){return n.diff(a).start(e)}))}))},l=0;l=r.length)return"break";i=r[a++]}else{if((a=r.next()).done)return"break";i=a.value}var n=i.key,s=function(e){return e.key!==n};(u.und(t)||t===n)&&(e.current.instances.delete(n),e.current.transitions=e.current.transitions.filter(s),e.current.deleted=e.current.deleted.filter(s))},r=e.current.deleted,o=Array.isArray(r),a=0;for(r=o?r:r[Symbol.iterator]();;){var i;if("break"===n())break}e.current.forceUpdate()}var J=function(e){function t(t){var n;return void 0===t&&(t={}),n=e.call(this)||this,!t.transform||t.transform instanceof m||(t=v.transform(t)),n.payload=t,n}return c(t,e),t}(O),ee={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},te="[-+]?\\d*\\.?\\d+",ne=te+"%";function re(){for(var e=arguments.length,t=new Array(e),n=0;n1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function fe(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,a=he(o,r,e+1/3),i=he(o,r,e),s=he(o,r,e-1/3);return Math.round(255*a)<<24|Math.round(255*i)<<16|Math.round(255*s)<<8}function pe(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function be(e){return(parseFloat(e)%360+360)%360/360}function ve(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function ye(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function me(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=ue.exec(t))?parseInt(n[1]+"ff",16)>>>0:ee.hasOwnProperty(t)?ee[t]:(n=oe.exec(t))?(pe(n[1])<<24|pe(n[2])<<16|pe(n[3])<<8|255)>>>0:(n=ae.exec(t))?(pe(n[1])<<24|pe(n[2])<<16|pe(n[3])<<8|ve(n[4]))>>>0:(n=ce.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=de.exec(t))?parseInt(n[1],16)>>>0:(n=le.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=ie.exec(t))?(255|fe(be(n[1]),ye(n[2]),ye(n[3])))>>>0:(n=se.exec(t))?(fe(be(n[1]),ye(n[2]),ye(n[3]))|ve(n[4]))>>>0:null;return null===r?e:"rgba("+((4278190080&(r=r||0))>>>24)+", "+((16711680&r)>>>16)+", "+((65280&r)>>>8)+", "+(255&r)/255+")"}var ge=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Oe=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,ke=new RegExp("("+Object.keys(ee).join("|")+")","g"),we={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,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},_e=["Webkit","Ms","Moz","O"];function De(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||we.hasOwnProperty(e)&&we[e]?(""+t).trim():t+"px"}we=Object.keys(we).reduce((function(e,t){return _e.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),we);var Se={};I((function(e){return new J(e)})),P("div"),M((function(e){var t=e.output.map((function(e){return e.replace(Oe,me)})).map((function(e){return e.replace(ke,me)})),n=t[0].match(ge).map((function(){return[]}));t.forEach((function(e){e.match(ge).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(ge).map((function(t,r){return L(o({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(ge,(function(){return r[n++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,n,r,o){return"rgba("+Math.round(t)+", "+Math.round(n)+", "+Math.round(r)+", "+o+")"}))}})),w(ee),k((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,r=t.children,o=t.scrollTop,i=t.scrollLeft,s=a(t,["style","children","scrollTop","scrollLeft"]),c="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var l in void 0!==o&&(e.scrollTop=o),void 0!==i&&(e.scrollLeft=i),void 0!==r&&(e.textContent=r),n)if(n.hasOwnProperty(l)){var u=0===l.indexOf("--"),d=De(l,n[l],u);"float"===l&&(l="cssFloat"),u?e.style.setProperty(l,d):e.style[l]=d}for(var h in s){var f=c?h:Se[h]||(Se[h]=h.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(f)&&e.setAttribute(f,s[h])}}),(function(e){return e}));var Me,je,Ce=(Me=function(e){return i.forwardRef((function(t,n){var r=d(),c=i.useRef(!0),l=i.useRef(null),h=i.useRef(null),f=i.useCallback((function(e){var t=l.current;l.current=new N(e,(function(){var e=!1;h.current&&(e=v.fn(h.current,l.current.getAnimatedValue())),h.current&&!1!==e||r()})),t&&t.detach()}),[]);i.useEffect((function(){return function(){c.current=!1,l.current&&l.current.detach()}}),[]),i.useImperativeHandle(n,(function(){return z(h,c,r)})),f(t);var p,b=l.current.getValue(),y=(b.scrollTop,b.scrollLeft,a(b,["scrollTop","scrollLeft"])),m=(p=e,!u.fun(p)||p.prototype instanceof s.Component?function(e){return h.current=function(e,t){return t&&(u.fun(t)?t(e):u.obj(t)&&(t.current=e)),e}(e,n)}:void 0);return s.createElement(e,o({},y,{ref:m}))}))},void 0===(je=!1)&&(je=!0),function(e){return(u.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=je?t[0].toLowerCase()+t.substring(1):t;return e[n]=Me(n),e}),Me)}),Pe=Ce(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]);t.apply=Ce,t.config={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},t.update=R,t.animated=Pe,t.a=Pe,t.interpolate=function(e,t,n){return e&&new F(e,t,n)},t.Globals=x,t.useSpring=function(e){var t=u.fun(e),n=$(1,t?e:[e]),r=n[0],o=n[1],a=n[2];return t?[r[0],o,a]:r},t.useTrail=function(e,t){var n=i.useRef(!1),r=u.fun(t),a=p(t),s=i.useRef(),c=$(e,(function(e,t){return 0===e&&(s.current=[]),s.current.push(t),o({},a,{config:p(a.config,e),attach:e>0&&function(){return s.current[e-1]}})})),l=c[0],d=c[1],h=c[2],f=i.useMemo((function(){return function(e){return d((function(t,n){e.reverse;var r=e.reverse?t+1:t-1,i=s.current[r];return o({},e,{config:p(e.config||a.config,t),attach:i&&function(){return i}})}))}}),[e,a.reverse]);return i.useEffect((function(){n.current&&!r&&f(t)})),i.useEffect((function(){n.current=!0}),[]),r?[l,f,h]:l},t.useTransition=function(e,t,n){var r=o({items:e,keys:t||function(e){return e}},n),s=X(r),c=s.lazy,l=void 0!==c&&c,u=(s.unique,s.reset),h=void 0!==u&&u,f=(s.enter,s.leave,s.update,s.onDestroyed),b=(s.keys,s.items,s.onFrame),v=s.onRest,y=s.onStart,m=s.ref,g=a(s,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),O=d(),k=i.useRef(!1),w=i.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!k.current&&new Map,forceUpdate:O});return i.useImperativeHandle(r.ref,(function(){return{start:function(){return Promise.all(Array.from(w.current.instances).map((function(e){var t=e[1];return new Promise((function(e){return t.start(e)}))})))},stop:function(e){return Array.from(w.current.instances).forEach((function(t){return t[1].stop(e)}))},get controllers(){return Array.from(w.current.instances).map((function(e){return e[1]}))}}})),w.current=function(e,t){var n=e.first,r=e.prevProps,i=a(e,["first","prevProps"]),s=X(t),c=s.items,l=s.keys,u=s.initial,d=s.from,h=s.enter,f=s.leave,b=s.update,v=s.trail,y=void 0===v?0:v,m=s.unique,g=s.config,O=s.order,k=void 0===O?[G,q,Y]:O,w=X(r),_=w.keys,D=w.items,S=o({},i.current),M=[].concat(i.deleted),j=Object.keys(S),C=new Set(j),P=new Set(l),E=l.filter((function(e){return!C.has(e)})),T=i.transitions.filter((function(e){return!e.destroyed&&!P.has(e.originalKey)})).map((function(e){return e.originalKey})),z=l.filter((function(e){return C.has(e)})),I=-y;for(;k.length;){switch(k.shift()){case G:E.forEach((function(e,t){m&&M.find((function(t){return t.originalKey===e}))&&(M=M.filter((function(t){return t.originalKey!==e})));var r=l.indexOf(e),o=c[r],a=n&&void 0!==u?"initial":G;S[e]={slot:a,originalKey:e,key:m?String(e):U++,item:o,trail:I+=y,config:p(g,o,a),from:p(n&&void 0!==u?u||{}:d,o),to:p(h,o)}}));break;case q:T.forEach((function(e){var t=_.indexOf(e),n=D[t],r=q;M.unshift(o({},S[e],{slot:r,destroyed:!0,left:_[Math.max(0,t-1)],right:_[Math.min(_.length,t+1)],trail:I+=y,config:p(g,n,r),to:p(f,n)})),delete S[e]}));break;case Y:z.forEach((function(e){var t=l.indexOf(e),n=c[t],r=Y;S[e]=o({},S[e],{item:n,slot:r,trail:I+=y,config:p(g,n,r),to:p(b,n)})}))}}var x=l.map((function(e){return S[e]}));return M.forEach((function(e){var t,n=e.left,r=(e.right,a(e,["left","right"]));-1!==(t=x.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),x=[].concat(x.slice(0,t),[r],x.slice(t))})),o({},i,{changed:E.length||T.length||z.length,first:n&&0===E.length,transitions:x,current:S,deleted:M,prevProps:t})}(w.current,r),w.current.changed&&w.current.transitions.forEach((function(e){var t=e.slot,n=e.from,r=e.to,a=e.config,i=e.trail,s=e.key,c=e.item;w.current.instances.has(s)||w.current.instances.set(s,new W);var u=w.current.instances.get(s),d=o({},g,{to:r,from:n,config:a,ref:m,onRest:function(n){w.current.mounted&&(e.destroyed&&(m||l||Q(w,s),f&&f(c)),!Array.from(w.current.instances).some((function(e){return!e[1].idle}))&&(m||l)&&w.current.deleted.length>0&&Q(w),v&&v(c,t,n))},onStart:y&&function(){return y(c,t)},onFrame:b&&function(e){return b(c,t,e)},delay:i,reset:h&&t===G});u.update(d),w.current.paused||u.start()})),i.useEffect((function(){return w.current.mounted=k.current=!0,function(){w.current.mounted=k.current=!1,Array.from(w.current.instances).map((function(e){return e[1].destroy()})),w.current.instances.clear()}}),[]),w.current.transitions.map((function(e){var t=e.item,n=e.slot,r=e.key;return{item:t,key:r,state:n,props:w.current.instances.get(r).getValues()}}))},t.useChain=function(e,t,n){void 0===n&&(n=1e3);var r=i.useRef();i.useEffect((function(){u.equ(e,r.current)?e.forEach((function(e){var t=e.current;return t&&t.start()})):t?e.forEach((function(e,r){var a=e.current;if(a){var i=a.controllers;if(i.length){var s=n*t[r];i.forEach((function(e){e.queue=e.queue.map((function(e){return o({},e,{delay:e.delay+s})})),e.start()}))}}})):e.reduce((function(e,t,n){var r=t.current;return e.then((function(){return r.start()}))}),Promise.resolve()),r.current=e}))},t.useSprings=$},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 r=n(29),o=n(269),a=n(270);e.exports={momentObj:a.createMomentChecker("object",(function(e){return"object"==typeof e}),(function(e){return o.isValidMoment(e)}),"Moment"),momentString:a.createMomentChecker("string",(function(e){return"string"==typeof e}),(function(e){return o.isValidMoment(r(e))}),"Moment"),momentDurationObj:a.createMomentChecker("object",(function(e){return"object"==typeof e}),(function(e){return r.isDuration(e)}),"Duration")}},function(e,t,n){var r=n(85),o=n(86);e.exports=function(e,t,n){var a=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||r)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var s=0;s<16;++s)t[a+s]=i[s];return t||o(i)}},function(e,t,n){"use strict";e.exports=n(113)},,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(33),a=(r=o)&&r.__esModule?r:{default:r},i=n(40);t.default=a.default.oneOf(i.WEEKDAYS)},,function(e,t,n){"use strict";var r=n(60),o=n(102),a=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&a(e,".prototype.")?o(n):n}},function(e,t,n){"use strict";var r=n(268);e.exports=function(e,t,n){return!r(e.props,t)||!r(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 r,o=n(29),a=(r=o)&&r.__esModule?r:{default:r}},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],r=(0,a.default)(e,n,!0);return r.isValid()?r.hour(12):null};var r,o=n(29),a=(r=o)&&r.__esModule?r:{default:r},i=n(40)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(33),a=(r=o)&&r.__esModule?r:{default:r},i=n(40);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 r,o=n(33),a=(r=o)&&r.__esModule?r:{default:r},i=n(40);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 r=new Uint8Array(16);e.exports=function(){return n(r),r}}else{var o=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}},function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0,o=n;return[o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]]].join("")}},function(e,t,n){"use strict";var r=n(88);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},,function(e,t,n){"use strict";var r=Array.prototype.slice,o=n(147),a=Object.keys,i=a?function(e){return a(e)}:n(243),s=Object.keys;i.shim=function(){Object.keys?function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)||(Object.keys=function(e){return o(e)?s(r.call(e)):s(e)}):Object.keys=i;return Object.keys||i},e.exports=i},function(e,t,n){"use strict";var r=n(60),o=n(63),a=r("%Object%").assign;e.exports=function(e,t){if(a)return a(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});var r,o=n(33),a=(r=o)&&r.__esModule?r:{default:r},i=n(40);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 r,o=n(33),a=(r=o)&&r.__esModule?r:{default:r},i=n(40);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!(!r.default.isMoment(e)||!r.default.isMoment(t))&&!(0,o.default)(e,t)};var r=a(n(29)),o=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(),r=e.month(),o=t.year(),i=t.month(),s=n===o,c=r===i;return s&&c?e.date()2?n-2:0),o=2;o0?!0===i?r.scrollTop(t,g.top+O.top):!1===i?r.scrollTop(t,g.top+k.top):O.top<0?r.scrollTop(t,g.top+O.top):r.scrollTop(t,g.top+k.top):a||((i=void 0===i||!!i)?r.scrollTop(t,g.top+O.top):r.scrollTop(t,g.top+k.top)),o&&(O.left<0||k.left>0?!0===s?r.scrollLeft(t,g.left+O.left):!1===s?r.scrollLeft(t,g.left+k.left):O.left<0?r.scrollLeft(t,g.left+O.left):r.scrollLeft(t,g.left+k.left):a||((s=void 0===s||!!s)?r.scrollLeft(t,g.left+O.left):r.scrollLeft(t,g.left+k.left)))}},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},,,,,,,function(e,t,n){var r="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,a=r&&o&&"function"==typeof o.get?o.get:null,i=r&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=s&&c&&"function"==typeof c.get?c.get:null,u=s&&Set.prototype.forEach,d=Boolean.prototype.valueOf,h=Object.prototype.toString,f="function"==typeof BigInt?BigInt.prototype.valueOf:null,p=n(250).custom,b=p&&g(p)?p:null;function v(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function y(e){return String(e).replace(/"/g,""")}function m(e){return"[object Array]"===w(e)}function g(e){return"[object Symbol]"===w(e)}e.exports=function e(t,n,r,o){if(n||(n={}),k(n,"quoteStyle")&&"single"!==n.quoteStyle&&"double"!==n.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function(e,t){return v(e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,_),"single",t)}(t,n);if("number"==typeof t)return 0===t?1/0/t>0?"0":"-0":String(t);if("bigint"==typeof t)return String(t)+"n";var s=void 0===n.depth?5:n.depth;if(void 0===r&&(r=0),r>=s&&s>0&&"object"==typeof t)return"[Object]";if(void 0===o)o=[];else if(function(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n=0)return"[Circular]";function c(t,a){return a&&(o=o.slice()).push(a),e(t,n,r+1,o)}if("function"==typeof t){var h=function(e){if(e.name)return e.name;var t=String(e).match(/^function\s*([\w$]+)/);if(t)return t[1]}(t);return"[Function"+(h?": "+h:"")+"]"}if(g(t)){var p=Symbol.prototype.toString.call(t);return"object"==typeof t?D(p):p}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var O="<"+String(t.nodeName).toLowerCase(),j=t.attributes||[],C=0;C"}if(m(t))return 0===t.length?"[]":"[ "+M(t,c).join(", ")+" ]";if(function(e){return"[object Error]"===w(e)}(t))return 0===(P=M(t,c)).length?"["+String(t)+"]":"{ ["+String(t)+"] "+P.join(", ")+" }";if("object"==typeof t){if(b&&"function"==typeof t[b])return t[b]();if("function"==typeof t.inspect)return t.inspect()}if(function(e){if(!a)return!1;try{a.call(e);try{l.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var P=[];return i.call(t,(function(e,n){P.push(c(n,t)+" => "+c(e,t))})),S("Map",a.call(t),P)}if(function(e){if(!l)return!1;try{l.call(e);try{a.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){P=[];return u.call(t,(function(e){P.push(c(e,t))})),S("Set",l.call(t),P)}if(function(e){return"[object Number]"===w(e)}(t))return D(c(Number(t)));if(function(e){return"[object BigInt]"===w(e)}(t))return D(c(f.call(t)));if(function(e){return"[object Boolean]"===w(e)}(t))return D(d.call(t));if(function(e){return"[object String]"===w(e)}(t))return D(c(String(t)));if(!function(e){return"[object Date]"===w(e)}(t)&&!function(e){return"[object RegExp]"===w(e)}(t)){var E=M(t,c);return 0===E.length?"{}":"{ "+E.join(", ")+" }"}return String(t)};var O=Object.prototype.hasOwnProperty||function(e){return e in this};function k(e,t){return O.call(e,t)}function w(e){return h.call(e)}function _(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+t.toString(16)}function D(e){return"Object("+e+")"}function S(e,t,n){return e+" ("+t+") {"+n.join(", ")+"}"}function M(e,t){var n=m(e),r=[];if(n){r.length=e.length;for(var o=0;o1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');var n="$ "+e;if(!(n in c))throw new SyntaxError("intrinsic "+e+" does not exist!");if(void 0===c[n]&&!t)throw new TypeError("intrinsic "+e+" exists, but is not available. Please file an issue!");return c[n]}},function(e,t,n){"use strict";function r(e,t,n){var r="number"==typeof t,o="number"==typeof n,a="number"==typeof e;return r&&o?t+n:r&&a?t+e:r?t:o&&a?n+e:o?n:a?2*e:0}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e.font.input,o=n.lineHeight,a=n.lineHeight_small,i=e.spacing,s=i.inputPadding,c=i.displayTextPaddingVertical,l=i.displayTextPaddingTop,u=i.displayTextPaddingBottom,d=i.displayTextPaddingVertical_small,h=i.displayTextPaddingTop_small,f=i.displayTextPaddingBottom_small,p=t?a:o,b=t?r(d,h,f):r(c,l,u);return parseInt(p,10)+2*s+b}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=r.default.isMoment(e)?e:(0,o.default)(e,t);return n?n.format(a.DISPLAY_FORMAT):null};var r=i(n(29)),o=i(n(78)),a=n(40);function i(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){var i=t.clone().startOf("month");a&&(i=i.startOf("week"));if((0,r.default)(e,i))return!1;var s=t.clone().add(n-1,"months").endOf("month");a&&(s=s.endOf("week"));return!(0,o.default)(e,s)};var r=a(n(95)),o=a(n(108));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PureDayPicker=t.defaultProps=void 0;var r=Object.assign||function(e){for(var t=1;t=0&&"[object Function]"===r.call(e.callee)),n}},function(e,t,n){"use strict";var r=n(245);e.exports=function(){var e=r.ToObject(this),t=r.ToLength(r.Get(e,"length")),n=1;arguments.length>0&&void 0!==arguments[0]&&(n=r.ToInteger(arguments[0]));var o=r.ArraySpeciesCreate(e,0);return r.FlattenIntoArray(o,e,t,0,n),o}},function(e,t,n){"use strict";var r=n(59).call(Function.call,String.prototype.replace),o=/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]*/;e.exports=function(){return r(this,o,"")}},function(e,t,n){"use strict";var r=n(149);e.exports=function(){if(!String.prototype.trimLeft)return r;return"​"!=="​".trimLeft()?r:String.prototype.trimLeft}},function(e,t,n){"use strict";var r=n(59).call(Function.call,String.prototype.replace),o=/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]*$/;e.exports=function(){return r(this,o,"")}},function(e,t,n){"use strict";var r=n(151);e.exports=function(){if(!String.prototype.trimRight)return r;return"​"!=="​".trimRight()?r:String.prototype.trimRight}},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 r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},function(e,t,n){"use strict";e.exports=n(255)},function(e,t){e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},function(e,t,n){"use strict";var r=Object.prototype.toString;if(n(100)()){var o=Symbol.prototype.toString,a=/^Symbol\(.*\)$/;e.exports=function(e){if("symbol"==typeof e)return!0;if("[object Symbol]"!==r.call(e))return!1;try{return function(e){return"symbol"==typeof e.valueOf()&&a.test(o.call(e))}(e)}catch(e){return!1}}}else e.exports=function(e){return!1}},function(e,t,n){"use strict";var r=n(60),o=r("%TypeError%"),a=r("%SyntaxError%"),i=n(63),s={"Property Descriptor":function(e,t){if("Object"!==e.Type(t))return!1;var n={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var r in t)if(i(t,r)&&!n[r])return!1;var a=i(t,"[[Value]]"),s=i(t,"[[Get]]")||i(t,"[[Set]]");if(a&&s)throw new o("Property Descriptors may not be both accessor and data descriptors");return!0}};e.exports=function(e,t,n,r){var i=s[t];if("function"!=typeof i)throw new a("unknown record type: "+t);if(!i(e,r))throw new o(n+" must be a "+t)}},function(e,t,n){"use strict";var r=Number.isNaN||function(e){return e!=e};e.exports=Number.isFinite||function(e){return"number"==typeof e&&!r(e)&&e!==1/0&&e!==-1/0}},function(e,t,n){"use strict";var r=n(60),o=r("%Math%"),a=r("%Number%");e.exports=a.MAX_SAFE_INTEGER||o.pow(2,53)-1},function(e,t,n){"use strict";e.exports=function(e){return e>=0?1:-1}},function(e,t,n){"use strict";e.exports=function(e,t){var n=e%t;return Math.floor(n>=0?n:n+t)}},function(e,t,n){"use strict";var r=n(60),o=n(63),a=r("%TypeError%");e.exports=function(e,t){if("Object"!==e.Type(t))return!1;var n={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var r in t)if(o(t,r)&&!n[r])return!1;if(e.IsDataDescriptor(t)&&e.IsAccessorDescriptor(t))throw new a("Property Descriptors may not be both accessor and data descriptors");return!0}},function(e,t,n){"use strict";var r=n(60)("RegExp.prototype.test"),o=n(102);e.exports=function(e){return o(r,e)}},function(e,t,n){"use strict";var r=n(75)("String.prototype.slice");e.exports=function(e,t){return e===t||!(e.length>t.length)&&r(t,0,e.length)===e}},function(e,t,n){"use strict";var r=Object.prototype.toString,o=n(155),a=n(101),i=function(e){var t;if((t=arguments.length>1?arguments[1]:"[object Date]"===r.call(e)?String:Number)===String||t===Number){var n,i,s=t===String?["toString","valueOf"]:["valueOf","toString"];for(i=0;i1?i(e,arguments[1]):i(e)}},function(e,t,n){"use strict";var r=n(63),o=RegExp.prototype.exec,a=Object.getOwnPropertyDescriptor,i=Object.prototype.toString,s="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!s)return"[object RegExp]"===i.call(e);var t=a(e,"lastIndex");return!(!t||!r(t,"value"))&&function(e){try{var t=e.lastIndex;return e.lastIndex=0,o.call(e),!0}catch(e){return!1}finally{e.lastIndex=t}}(e)}},function(e,t,n){"use strict";var r=n(148);e.exports=function(){return Array.prototype.flat||r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=void 0,o=void 0;function a(e,t){var n=t(e(o));return function(){return n}}function i(e){return a(e,r.createLTR||r.create)}function s(){for(var e=arguments.length,t=Array(e),n=0;n2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e)return 0;var o="width"===t?"Left":"Top",a="width"===t?"Right":"Bottom",i=!n||r?window.getComputedStyle(e):null,s=e.offsetWidth,c=e.offsetHeight,l="width"===t?s:c;n||(l-=parseFloat(i["padding"+o])+parseFloat(i["padding"+a])+parseFloat(i["border"+o+"Width"])+parseFloat(i["border"+a+"Width"]));r&&(l+=parseFloat(i["margin"+o])+parseFloat(i["margin"+a]));return l}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=o&&a=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 r=n(178);e.exports=function(){return"function"==typeof Object.values?Object.values:r}},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 r=n(186);e.exports=function(){if("undefined"!=typeof document){if(document.contains)return document.contains;if(document.body&&document.body.contains)return document.body.contains}return r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=v(n(33)),o=v(n(66)),a=n(46),i=n(50),s=v(n(54)),c=v(n(189)),l=v(n(92)),u=v(n(190)),d=v(n(107)),h=v(n(191)),f=v(n(81)),p=v(n(73)),b=v(n(93));function v(e){return e&&e.__esModule?e:{default:e}}t.default={startDate:o.default.momentObj,endDate:o.default.momentObj,onDatesChange:r.default.func.isRequired,focusedInput:c.default,onFocusChange:r.default.func.isRequired,onClose:r.default.func,startDateId:r.default.string.isRequired,startDatePlaceholderText:r.default.string,endDateId:r.default.string.isRequired,endDatePlaceholderText:r.default.string,disabled:d.default,required:r.default.bool,readOnly:r.default.bool,screenReaderInputMessage:r.default.string,showClearDates:r.default.bool,showDefaultInputIcon:r.default.bool,inputIconPosition:l.default,customInputIcon:r.default.node,customArrowIcon:r.default.node,customCloseIcon:r.default.node,noBorder:r.default.bool,block:r.default.bool,small:r.default.bool,regular:r.default.bool,keepFocusOnInput:r.default.bool,renderMonthText:(0,a.mutuallyExclusiveProps)(r.default.func,"renderMonthText","renderMonthElement"),renderMonthElement:(0,a.mutuallyExclusiveProps)(r.default.func,"renderMonthText","renderMonthElement"),orientation:u.default,anchorDirection:h.default,openDirection:f.default,horizontalMargin:r.default.number,withPortal:r.default.bool,withFullScreenPortal:r.default.bool,appendToBody:r.default.bool,disableScroll:r.default.bool,daySize:a.nonNegativeInteger,isRTL:r.default.bool,firstDayOfWeek:p.default,initialVisibleMonth:r.default.func,numberOfMonths:r.default.number,keepOpenOnDateSelect:r.default.bool,reopenPickerOnClearDates:r.default.bool,renderCalendarInfo:r.default.func,calendarInfoPosition:b.default,hideKeyboardShortcutsPanel:r.default.bool,verticalHeight:a.nonNegativeInteger,transitionDuration:a.nonNegativeInteger,verticalSpacing:a.nonNegativeInteger,navPrev:r.default.node,navNext:r.default.node,onPrevMonthClick:r.default.func,onNextMonthClick:r.default.func,renderCalendarDay:r.default.func,renderDayContents:r.default.func,minimumNights:r.default.number,enableOutsideDays:r.default.bool,isDayBlocked:r.default.func,isOutsideRange:r.default.func,isDayHighlighted:r.default.func,displayFormat:r.default.oneOfType([r.default.string,r.default.func]),monthFormat:r.default.string,weekDayFormat:r.default.string,phrases:r.default.shape((0,s.default)(i.DateRangePickerPhrases)),dayAriaLabelFormat:r.default.string}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(33),a=(r=o)&&r.__esModule?r:{default:r},i=n(40);t.default=a.default.oneOf([i.START_DATE,i.END_DATE])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(33),a=(r=o)&&r.__esModule?r:{default:r},i=n(40);t.default=a.default.oneOf([i.HORIZONTAL_ORIENTATION,i.VERTICAL_ORIENTATION])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(33),a=(r=o)&&r.__esModule?r:{default:r},i=n(40);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,o){var a="undefined"!=typeof window?window.innerWidth:0,i=e===r.ANCHOR_LEFT?a-n:n,s=o||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-s,0))};var r=n(40)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var o=n.getBoundingClientRect(),a=o.left,i=o.top;e===r.OPEN_UP&&(i=-(window.innerHeight-o.bottom));t===r.ANCHOR_RIGHT&&(a=-(window.innerWidth-o.right));return{transform:"translate3d("+String(Math.round(a))+"px, "+String(Math.round(i))+"px, 0)"}};var r=n(40)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getScrollParent=o,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 r=function(){return document.scrollingElement||document.documentElement};function o(e){var t=e.parentElement;if(null==t)return r();var n=window.getComputedStyle(t).overflowY;return"visible"!==n&&"hidden"!==n&&t.scrollHeight>t.clientHeight?t:o(t)}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map,n=r(),i=o(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 r=function(){function e(e,t){for(var n=0;n0&&(R||N||i!==k)){var U=m||this.today;V=this.deleteModifierFromRange(V,U,U.clone().add(k,"days"),"blocked-minimum-nights"),V=this.deleteModifierFromRange(V,U,U.clone().add(k,"days"),"blocked")}(R||x)&&(0,d.default)(P).forEach((function(e){Object.keys(e).forEach((function(e){var n=(0,u.default)(e),r=!1;(R||T)&&(s(n)?(V=t.addModifier(V,n,"blocked-out-of-range"),r=!0):V=t.deleteModifier(V,n,"blocked-out-of-range")),(R||z)&&(c(n)?(V=t.addModifier(V,n,"blocked-calendar"),r=!0):V=t.deleteModifier(V,n,"blocked-calendar")),V=r?t.addModifier(V,n,"blocked"):t.deleteModifier(V,n,"blocked"),(R||I)&&(V=l(n)?t.addModifier(V,n,"highlighted-calendar"):t.deleteModifier(V,n,"highlighted-calendar"))}))})),i>0&&n&&o===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 G=(0,u.default)();if((0,y.default)(this.today,G)||(V=this.deleteModifier(V,this.today,"today"),V=this.addModifier(V,G,"today"),this.today=G),Object.keys(V).length>0&&this.setState({visibleDays:(0,a.default)({},P,V)}),R||h!==S){var q=A(h,o);this.setState({phrases:(0,a.default)({},h,{chooseAvailableDate:q})})}}},{key:"onDayClick",value:function(e,t){var n=this.props,r=n.keepOpenOnDateSelect,o=n.minimumNights,a=n.onBlur,i=n.focusedInput,s=n.onFocusChange,c=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,w.default)(u,e),v=(0,w.default)(d,e),r||(s(null),c({startDate:p,endDate:v}));else if(i===E.START_DATE){var y=v&&v.clone().subtract(o,"days"),O=(0,g.default)(y,e)||(0,m.default)(p,v),k=h===E.END_DATE;k&&O||(p=e,O&&(v=null)),k&&!O?(s(null),c({startDate:p,endDate:v})):k||s(E.END_DATE)}else if(i===E.END_DATE){var _=p&&p.clone().add(o,"days");p?(0,b.default)(e,_)?(v=e,r||(s(null),c({startDate:p,endDate:v}))):h!==E.START_DATE&&(p=e,v=null):(v=e,s(E.START_DATE))}l({startDate:p,endDate:v}),a()}}},{key:"onDayMouseEnter",value:function(e){if(!this.isTouchDevice){var t=this.props,n=t.startDate,r=t.endDate,o=t.focusedInput,i=t.minimumNights,s=t.startDateOffset,c=t.endDateOffset,l=this.state,u=l.hoverDate,d=l.visibleDays,h=null;if(o){var f=s||c,p={};if(f){var b=(0,w.default)(s,e),v=(0,w.default)(c,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&&!r&&o===E.END_DATE){if((0,m.default)(u,n)){var O=u.clone().add(1,"day");p=this.deleteModifierFromRange(p,n,O,"hovered-span")}if(!this.isBlocked(e)&&(0,m.default)(e,n)){var k=e.clone().add(1,"day");p=this.addModifierToRange(p,n,k,"hovered-span")}}if(!n&&r&&o===E.START_DATE&&((0,g.default)(u,r)&&(p=this.deleteModifierFromRange(p,u,r,"hovered-span")),!this.isBlocked(e)&&(0,g.default)(e,r)&&(p=this.addModifierToRange(p,e,r,"hovered-span"))),n){var _=n.clone().add(1,"day"),D=n.clone().add(i+1,"days");if(p=this.deleteModifierFromRange(p,_,D,"after-hovered-start"),(0,y.default)(e,n)){var S=n.clone().add(1,"day"),M=n.clone().add(i+1,"days");p=this.addModifierToRange(p,S,M,"after-hovered-start")}}}this.setState({hoverDate:e,dateOffset:h,visibleDays:(0,a.default)({},d,p)})}}}},{key:"onDayMouseLeave",value:function(e){var t=this.props,n=t.startDate,r=t.endDate,o=t.minimumNights,i=this.state,s=i.hoverDate,c=i.visibleDays,l=i.dateOffset;if(!this.isTouchDevice&&s){var u={};if(u=this.deleteModifier(u,s,"hovered"),l&&(u=this.deleteModifierFromRange(u,this.state.dateOffset.start,this.state.dateOffset.end,"hovered-offset")),n&&!r&&(0,m.default)(s,n)){var d=s.clone().add(1,"day");u=this.deleteModifierFromRange(u,n,d,"hovered-span")}if(!n&&r&&(0,m.default)(r,s)&&(u=this.deleteModifierFromRange(u,s,r,"hovered-span")),n&&(0,y.default)(e,n)){var h=n.clone().add(1,"day"),f=n.clone().add(o+1,"days");u=this.deleteModifierFromRange(u,h,f,"after-hovered-start")}this.setState({hoverDate:null,visibleDays:(0,a.default)({},c,u)})}}},{key:"onPrevMonthClick",value:function(){var e=this.props,t=e.onPrevMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,i=o.currentMonth,s=o.visibleDays,c={};Object.keys(s).sort().slice(0,n+1).forEach((function(e){c[e]=s[e]}));var l=i.clone().subtract(2,"months"),u=(0,O.default)(l,1,r,!0),d=i.clone().subtract(1,"month");this.setState({currentMonth:d,visibleDays:(0,a.default)({},c,this.getModifiers(u))},(function(){t(d.clone())}))}},{key:"onNextMonthClick",value:function(){var e=this.props,t=e.onNextMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,i=o.currentMonth,s=o.visibleDays,c={};Object.keys(s).sort().slice(1).forEach((function(e){c[e]=s[e]}));var l=i.clone().add(n+1,"month"),u=(0,O.default)(l,1,r,!0),d=i.clone().add(1,"month");this.setState({currentMonth:d,visibleDays:(0,a.default)({},c,this.getModifiers(u))},(function(){t(d.clone())}))}},{key:"onMonthChange",value:function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===E.VERTICAL_SCROLLABLE,a=(0,O.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(a)})}},{key:"onYearChange",value:function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===E.VERTICAL_SCROLLABLE,a=(0,O.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(a)})}},{key:"onMultiplyScrollableMonths",value:function(){var e=this.props,t=e.numberOfMonths,n=e.enableOutsideDays,r=this.state,o=r.currentMonth,i=r.visibleDays,s=Object.keys(i).length,c=o.clone().add(s,"month"),l=(0,O.default)(c,t,n,!0);this.setState({visibleDays:(0,a.default)({},i,this.getModifiers(l))})}},{key:"getFirstFocusableDay",value:function(e){var t=this,n=this.props,o=n.startDate,a=n.endDate,i=n.focusedInput,s=n.minimumNights,c=n.numberOfMonths,l=e.clone().startOf("month");if(i===E.START_DATE&&o?l=o.clone():i===E.END_DATE&&!a&&o?l=o.clone().add(s,"days"):i===E.END_DATE&&a&&(l=a.clone()),this.isBlocked(l)){for(var u=[],d=e.clone().add(c-1,"months").endOf("month"),h=l.clone();!(0,m.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=r(f,1)[0])}return l}},{key:"getModifiers",value:function(e){var t=this,n={};return Object.keys(e).forEach((function(r){n[r]={},e[r].forEach((function(e){n[r][(0,_.default)(e)]=t.getModifiersForDay(e)}))})),n}},{key:"getModifiersForDay",value:function(e){var t=this;return new Set(Object.keys(this.modifiers).filter((function(n){return t.modifiers[n](e)})))}},{key:"getStateForNewMonth",value:function(e){var t=this,n=e.initialVisibleMonth,r=e.numberOfMonths,o=e.enableOutsideDays,a=e.orientation,i=e.startDate,s=(n||(i?function(){return i}:function(){return t.today}))(),c=a===E.VERTICAL_SCROLLABLE;return{currentMonth:s,visibleDays:this.getModifiers((0,O.default)(s,r,o,c))}}},{key:"addModifier",value:function(e,t,n){var r=this.props,o=r.numberOfMonths,i=r.enableOutsideDays,s=r.orientation,c=this.state,l=c.currentMonth,u=c.visibleDays,d=l,h=o;if(s===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,_.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,r){var o=e[r]||u[r],i=new Set(o[f]);return i.add(n),(0,a.default)({},t,I({},r,(0,a.default)({},o,I({},f,i))))}),p);else{var b=(0,D.default)(t),v=e[b]||u[b],y=new Set(v[f]);y.add(n),p=(0,a.default)({},p,I({},b,(0,a.default)({},v,I({},f,y))))}return p}},{key:"addModifierToRange",value:function(e,t,n,r){for(var o=e,a=t.clone();(0,g.default)(a,n);)o=this.addModifier(o,a,r),a=a.clone().add(1,"day");return o}},{key:"deleteModifier",value:function(e,t,n){var r=this.props,o=r.numberOfMonths,i=r.enableOutsideDays,s=r.orientation,c=this.state,l=c.currentMonth,u=c.visibleDays,d=l,h=o;if(s===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,_.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,r){var o=e[r]||u[r],i=new Set(o[f]);return i.delete(n),(0,a.default)({},t,I({},r,(0,a.default)({},o,I({},f,i))))}),p);else{var b=(0,D.default)(t),v=e[b]||u[b],y=new Set(v[f]);y.delete(n),p=(0,a.default)({},p,I({},b,(0,a.default)({},v,I({},f,y))))}return p}},{key:"deleteModifierFromRange",value:function(e,t,n,r){for(var o=e,a=t.clone();(0,g.default)(a,n);)o=this.deleteModifier(o,a,r),a=a.clone().add(1,"day");return o}},{key:"doesNotMeetMinimumNights",value:function(e){var t=this.props,n=t.startDate,r=t.isOutsideRange,o=t.focusedInput,a=t.minimumNights;if(o!==E.END_DATE)return!1;if(n){var i=e.diff(n.clone().startOf("day").hour(12),"days");return i=0}return r((0,u.default)(e).subtract(a,"days"))}},{key:"isDayAfterHoveredStartDate",value:function(e){var t=this.props,n=t.startDate,r=t.endDate,o=t.minimumNights,a=(this.state||{}).hoverDate;return!!n&&!r&&!this.isBlocked(e)&&(0,v.default)(a,e)&&o>0&&(0,y.default)(a,n)}},{key:"isEndDate",value:function(e){var t=this.props.endDate;return(0,y.default)(e,t)}},{key:"isHovered",value:function(e){var t=(this.state||{}).hoverDate;return!!this.props.focusedInput&&(0,y.default)(e,t)}},{key:"isInHoveredSpan",value:function(e){var t=this.props,n=t.startDate,r=t.endDate,o=(this.state||{}).hoverDate,a=!!n&&!r&&(e.isBetween(n,o)||(0,y.default)(o,e)),i=!!r&&!n&&(e.isBetween(o,r)||(0,y.default)(o,e)),s=o&&!this.isBlocked(o);return(a||i)&&s}},{key:"isInSelectedSpan",value:function(e){var t=this.props,n=t.startDate,r=t.endDate;return e.isBetween(n,r)}},{key:"isLastInRange",value:function(e){var t=this.props.endDate;return this.isInSelectedSpan(e)&&(0,v.default)(e,t)}},{key:"isStartDate",value:function(e){var t=this.props.startDate;return(0,y.default)(e,t)}},{key:"isBlocked",value:function(e){var t=this.props,n=t.isDayBlocked,r=t.isOutsideRange;return n(e)||r(e)||this.doesNotMeetMinimumNights(e)}},{key:"isToday",value:function(e){return(0,y.default)(e,this.today)}},{key:"isFirstDayOfWeek",value:function(e){var t=this.props.firstDayOfWeek;return e.day()===(t||u.default.localeData().firstDayOfWeek())}},{key:"isLastDayOfWeek",value:function(e){var t=this.props.firstDayOfWeek;return e.day()===((t||u.default.localeData().firstDayOfWeek())+6)%7}},{key:"render",value:function(){var e=this.props,t=e.numberOfMonths,n=e.orientation,r=e.monthFormat,o=e.renderMonthText,a=e.navPrev,s=e.navNext,c=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,y=e.renderDayContents,m=e.renderCalendarInfo,g=e.renderMonthElement,O=e.calendarInfoPosition,k=e.onBlur,w=e.isFocused,_=e.showKeyboardShortcuts,D=e.isRTL,S=e.weekDayFormat,M=e.dayAriaLabelFormat,j=e.verticalHeight,C=e.noBorder,P=e.transitionDuration,E=e.verticalBorderSpacing,z=e.horizontalMonthPadding,I=this.state,x=I.currentMonth,N=I.phrases,A=I.visibleDays;return i.default.createElement(T.default,{orientation:n,enableOutsideDays:d,modifiers:A,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:r,renderMonthText:o,withPortal:u,hidden:!b,initialVisibleMonth:function(){return x},daySize:p,onOutsideClick:l,navPrev:a,navNext:s,noNavButtons:c,renderCalendarDay:v,renderDayContents:y,renderCalendarInfo:m,renderMonthElement:g,calendarInfoPosition:O,firstDayOfWeek:h,hideKeyboardShortcutsPanel:f,isFocused:w,getFirstFocusableDay:this.getFirstFocusableDay,onBlur:k,showKeyboardShortcuts:_,phrases:N,isRTL:D,weekDayFormat:S,dayAriaLabelFormat:M,verticalHeight:j,verticalBorderSpacing:E,noBorder:C,transitionDuration:P,horizontalMonthPadding:z})}}]),t}(i.default.Component);t.default=H,H.propTypes=x,H.defaultProps=N},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!r.default.isMoment(e)||!r.default.isMoment(t))return!1;var n=(0,r.default)(e).add(1,"day");return(0,o.default)(n,t)};var r=a(n(29)),o=a(n(77));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(!r.default.isMoment(e))return{};for(var i={},s=a?e.clone():e.clone().subtract(1,"month"),c=0;c<(a?t:t+2);c+=1){var l=[],u=s.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)({},_,T)})}},{key:"componentWillUpdate",value:function(){this.today=(0,u.default)()}},{key:"onDayClick",value:function(e,t){if(t&&t.preventDefault(),!this.isBlocked(e)){var n=this.props,r=n.onDateChange,o=n.keepOpenOnDateSelect,a=n.onFocusChange,i=n.onClose;r(e),o||(a({focused:!1}),i({date:e}))}}},{key:"onDayMouseEnter",value:function(e){if(!this.isTouchDevice){var t=this.state,n=t.hoverDate,r=t.visibleDays,o=this.deleteModifier({},n,"hovered");o=this.addModifier(o,e,"hovered"),this.setState({hoverDate:e,visibleDays:(0,a.default)({},r,o)})}}},{key:"onDayMouseLeave",value:function(){var e=this.state,t=e.hoverDate,n=e.visibleDays;if(!this.isTouchDevice&&t){var r=this.deleteModifier({},t,"hovered");this.setState({hoverDate:null,visibleDays:(0,a.default)({},n,r)})}}},{key:"onPrevMonthClick",value:function(){var e=this.props,t=e.onPrevMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,i=o.currentMonth,s=o.visibleDays,c={};Object.keys(s).sort().slice(0,n+1).forEach((function(e){c[e]=s[e]}));var l=i.clone().subtract(1,"month"),u=(0,y.default)(l,1,r);this.setState({currentMonth:l,visibleDays:(0,a.default)({},c,this.getModifiers(u))},(function(){t(l.clone())}))}},{key:"onNextMonthClick",value:function(){var e=this.props,t=e.onNextMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,i=o.currentMonth,s=o.visibleDays,c={};Object.keys(s).sort().slice(1).forEach((function(e){c[e]=s[e]}));var l=i.clone().add(n,"month"),u=(0,y.default)(l,1,r),d=i.clone().add(1,"month");this.setState({currentMonth:d,visibleDays:(0,a.default)({},c,this.getModifiers(u))},(function(){t(d.clone())}))}},{key:"onMonthChange",value:function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===D.VERTICAL_SCROLLABLE,a=(0,y.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(a)})}},{key:"onYearChange",value:function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===D.VERTICAL_SCROLLABLE,a=(0,y.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(a)})}},{key:"getFirstFocusableDay",value:function(e){var t=this,n=this.props,o=n.date,a=n.numberOfMonths,i=e.clone().startOf("month");if(o&&(i=o.clone()),this.isBlocked(i)){for(var s=[],c=e.clone().add(a-1,"months").endOf("month"),l=i.clone();!(0,v.default)(l,c);)l=l.clone().add(1,"day"),s.push(l);var u=s.filter((function(e){return!t.isBlocked(e)&&(0,v.default)(e,i)}));if(u.length>0){var d=r(u,1);i=d[0]}}return i}},{key:"getModifiers",value:function(e){var t=this,n={};return Object.keys(e).forEach((function(r){n[r]={},e[r].forEach((function(e){n[r][(0,g.default)(e)]=t.getModifiersForDay(e)}))})),n}},{key:"getModifiersForDay",value:function(e){var t=this;return new Set(Object.keys(this.modifiers).filter((function(n){return t.modifiers[n](e)})))}},{key:"getStateForNewMonth",value:function(e){var t=this,n=e.initialVisibleMonth,r=e.date,o=e.numberOfMonths,a=e.enableOutsideDays,i=(n||(r?function(){return r}:function(){return t.today}))();return{currentMonth:i,visibleDays:this.getModifiers((0,y.default)(i,o,a))}}},{key:"addModifier",value:function(e,t,n){var r=this.props,o=r.numberOfMonths,i=r.enableOutsideDays,s=r.orientation,c=this.state,l=c.currentMonth,u=c.visibleDays,d=l,h=o;if(s===D.VERTICAL_SCROLLABLE?h=Object.keys(u).length:(d=d.clone().subtract(1,"month"),h+=2),!t||!(0,m.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,r){var o=e[r]||u[r],i=new Set(o[f]);return i.add(n),(0,a.default)({},t,j({},r,(0,a.default)({},o,j({},f,i))))}),p);else{var b=(0,O.default)(t),v=e[b]||u[b],y=new Set(v[f]);y.add(n),p=(0,a.default)({},p,j({},b,(0,a.default)({},v,j({},f,y))))}return p}},{key:"deleteModifier",value:function(e,t,n){var r=this.props,o=r.numberOfMonths,i=r.enableOutsideDays,s=r.orientation,c=this.state,l=c.currentMonth,u=c.visibleDays,d=l,h=o;if(s===D.VERTICAL_SCROLLABLE?h=Object.keys(u).length:(d=d.clone().subtract(1,"month"),h+=2),!t||!(0,m.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,r){var o=e[r]||u[r],i=new Set(o[f]);return i.delete(n),(0,a.default)({},t,j({},r,(0,a.default)({},o,j({},f,i))))}),p);else{var b=(0,O.default)(t),v=e[b]||u[b],y=new Set(v[f]);y.delete(n),p=(0,a.default)({},p,j({},b,(0,a.default)({},v,j({},f,y))))}return p}},{key:"isBlocked",value:function(e){var t=this.props,n=t.isDayBlocked,r=t.isOutsideRange;return n(e)||r(e)}},{key:"isHovered",value:function(e){var t=(this.state||{}).hoverDate;return(0,b.default)(e,t)}},{key:"isSelected",value:function(e){var t=this.props.date;return(0,b.default)(e,t)}},{key:"isToday",value:function(e){return(0,b.default)(e,this.today)}},{key:"isFirstDayOfWeek",value:function(e){var t=this.props.firstDayOfWeek;return e.day()===(t||u.default.localeData().firstDayOfWeek())}},{key:"isLastDayOfWeek",value:function(e){var t=this.props.firstDayOfWeek;return e.day()===((t||u.default.localeData().firstDayOfWeek())+6)%7}},{key:"render",value:function(){var e=this.props,t=e.numberOfMonths,n=e.orientation,r=e.monthFormat,o=e.renderMonthText,a=e.navPrev,s=e.navNext,c=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,y=e.renderCalendarInfo,m=e.renderMonthElement,g=e.calendarInfoPosition,O=e.isFocused,k=e.isRTL,w=e.phrases,_=e.dayAriaLabelFormat,D=e.onBlur,M=e.showKeyboardShortcuts,j=e.weekDayFormat,C=e.verticalHeight,P=e.noBorder,E=e.transitionDuration,T=e.verticalBorderSpacing,z=e.horizontalMonthPadding,I=this.state,x=I.currentMonth,N=I.visibleDays;return i.default.createElement(S.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,monthFormat:r,withPortal:l,hidden:!u,hideKeyboardShortcutsPanel:h,initialVisibleMonth:function(){return x},firstDayOfWeek:p,onOutsideClick:c,navPrev:a,navNext:s,renderMonthText:o,renderCalendarDay:b,renderDayContents:v,renderCalendarInfo:y,renderMonthElement:m,calendarInfoPosition:g,isFocused:O,getFirstFocusableDay:this.getFirstFocusableDay,onBlur:D,phrases:w,daySize:f,isRTL:k,showKeyboardShortcuts:M,weekDayFormat:j,dayAriaLabelFormat:_,verticalHeight:C,noBorder:P,transitionDuration:E,verticalBorderSpacing:T,horizontalMonthPadding:z})}}]),t}(i.default.Component);t.default=E,E.propTypes=C,E.defaultProps=P},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=p(n(33)),o=p(n(66)),a=n(46),i=n(50),s=p(n(54)),c=p(n(92)),l=p(n(190)),u=p(n(191)),d=p(n(81)),h=p(n(73)),f=p(n(93));function p(e){return e&&e.__esModule?e:{default:e}}t.default={date:o.default.momentObj,onDateChange:r.default.func.isRequired,focused:r.default.bool,onFocusChange:r.default.func.isRequired,id:r.default.string.isRequired,placeholder:r.default.string,disabled:r.default.bool,required:r.default.bool,readOnly:r.default.bool,screenReaderInputMessage:r.default.string,showClearDate:r.default.bool,customCloseIcon:r.default.node,showDefaultInputIcon:r.default.bool,inputIconPosition:c.default,customInputIcon:r.default.node,noBorder:r.default.bool,block:r.default.bool,small:r.default.bool,regular:r.default.bool,verticalSpacing:a.nonNegativeInteger,keepFocusOnInput:r.default.bool,renderMonthText:(0,a.mutuallyExclusiveProps)(r.default.func,"renderMonthText","renderMonthElement"),renderMonthElement:(0,a.mutuallyExclusiveProps)(r.default.func,"renderMonthText","renderMonthElement"),orientation:l.default,anchorDirection:u.default,openDirection:d.default,horizontalMargin:r.default.number,withPortal:r.default.bool,withFullScreenPortal:r.default.bool,appendToBody:r.default.bool,disableScroll:r.default.bool,initialVisibleMonth:r.default.func,firstDayOfWeek:h.default,numberOfMonths:r.default.number,keepOpenOnDateSelect:r.default.bool,reopenPickerOnClearDate:r.default.bool,renderCalendarInfo:r.default.func,calendarInfoPosition:f.default,hideKeyboardShortcutsPanel:r.default.bool,daySize:a.nonNegativeInteger,isRTL:r.default.bool,verticalHeight:a.nonNegativeInteger,transitionDuration:a.nonNegativeInteger,horizontalMonthPadding:a.nonNegativeInteger,navPrev:r.default.node,navNext:r.default.node,onPrevMonthClick:r.default.func,onNextMonthClick:r.default.func,onClose:r.default.func,renderCalendarDay:r.default.func,renderDayContents:r.default.func,enableOutsideDays:r.default.bool,isDayBlocked:r.default.func,isOutsideRange:r.default.func,isDayHighlighted:r.default.func,displayFormat:r.default.oneOfType([r.default.string,r.default.func]),monthFormat:r.default.string,weekDayFormat:r.default.string,phrases:r.default.shape((0,s.default)(i.SingleDatePickerPhrases)),dayAriaLabelFormat:r.default.string}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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 r=e.clone().startOf("month").hour(12),o=e.clone().endOf("month").hour(12),s=(r.day()+7-n)%7,c=(n+6-o.day())%7,l=r.clone().subtract(s,"day"),u=o.clone().add(c,"day").diff(l,"days")+1,d=l.clone(),h=[],f=0;f=s&&f2?arguments[2]:[];if(!this.IsCallable(e))throw new s(e+" is not a function");return e.apply(t,n)},ToPrimitive:o,ToNumber:function(e){var t=_(e)?e:o(e,h);if("symbol"==typeof t)throw new s("Cannot convert a Symbol value to a number");if("string"==typeof t){if(C(t))return this.ToNumber(D(j(t,2),2));if(P(t))return this.ToNumber(D(j(t,2),8));if(z(t)||I(t))return NaN;var n=function(e){return q(e,G,"")}(t);if(n!==t)return this.ToNumber(n)}return h(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(y(t)||0===t||!m(t))return 0;var n=k(t)*F(V(t));return w(n,256)},ToUint8Clamp:function(e){var t=this.ToNumber(e);if(y(t)||t<=0)return 0;if(t>=255)return 255;var n=F(e);return n+.5g?g:t},CanonicalNumericIndexString:function(e){if("[object String]"!==N(e))throw new s("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:Y.CheckObjectCoercible,IsArray:l.isArray||function(e){return"[object Array]"===N(e)},IsConstructor:function(e){return"function"==typeof e&&!!e.prototype},IsExtensible:Object.preventExtensions?function(e){return!_(e)&&W(e)}:function(e){return!0},IsInteger:function(e){if("number"!=typeof e||y(e)||!m(e))return!1;var t=V(e);return F(t)===t},IsPropertyKey:function(e){return"string"==typeof e||"symbol"==typeof e},IsRegExp:function(e){if(!e||"object"!=typeof e)return!1;if(b){var t=e[f.match];if(void 0!==t)return Y.ToBoolean(t)}return Z(e)},SameValueZero:function(e,t){return e===t||y(e)&&y(t)},GetV:function(e,t){if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");return this.ToObject(e)[t]},GetMethod:function(e,t){if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");var n=this.GetV(e,t);if(null!=n){if(!this.IsCallable(n))throw new s(t+"is not a function");return n}},Get:function(e,t){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");return e[t]},Type:function(e){return"symbol"==typeof e?"Symbol":Y.Type(e)},SpeciesConstructor:function(e,t){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");var n=e.constructor;if(void 0===n)return t;if("Object"!==this.Type(n))throw new s("O.constructor is not an Object");var r=b&&f.species?n[f.species]:void 0;if(null==r)return t;if(this.IsConstructor(r))return r;throw new s("no constructor found")},CompletePropertyDescriptor:function(e){return v(this,"Property Descriptor","Desc",e),this.IsGenericDescriptor(e)||this.IsDataDescriptor(e)?(r(e,"[[Value]]")||(e["[[Value]]"]=void 0),r(e,"[[Writable]]")||(e["[[Writable]]"]=!1)):(r(e,"[[Get]]")||(e["[[Get]]"]=void 0),r(e,"[[Set]]")||(e["[[Set]]"]=void 0)),r(e,"[[Enumerable]]")||(e["[[Enumerable]]"]=!1),r(e,"[[Configurable]]")||(e["[[Configurable]]"]=!1),e},Set:function(e,t,n,r){if("Object"!==this.Type(e))throw new s("O must be an Object");if(!this.IsPropertyKey(t))throw new s("P must be a Property Key");if("Boolean"!==this.Type(r))throw new s("Throw must be a Boolean");if(r)return e[t]=n,!0;try{e[t]=n}catch(e){return!1}},HasOwnProperty:function(e,t){if("Object"!==this.Type(e))throw new s("O must be an Object");if(!this.IsPropertyKey(t))throw new s("P must be a Property Key");return r(e,t)},HasProperty:function(e,t){if("Object"!==this.Type(e))throw new s("O must be an Object");if(!this.IsPropertyKey(t))throw new s("P must be a Property Key");return t in e},IsConcatSpreadable:function(e){if("Object"!==this.Type(e))return!1;if(b&&"symbol"==typeof f.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 s("P must be a Property Key");var n=M(arguments,2),r=this.GetV(e,t);return this.Call(r,e,n)},GetIterator:function(e,t){if(!b)throw new SyntaxError("ES.GetIterator depends on native iterator support.");var n=t;arguments.length<2&&(n=this.GetMethod(e,f.iterator));var r=this.Call(n,e);if("Object"!==this.Type(r))throw new s("iterator must return an object");return r},IteratorNext:function(e,t){var n=this.Invoke(e,"next",arguments.length<2?[]:[t]);if("Object"!==this.Type(n))throw new s("iterator next must return an object");return n},IteratorComplete:function(e){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(iterResult) is not Object");return this.ToBoolean(this.Get(e,"done"))},IteratorValue:function(e){if("Object"!==this.Type(e))throw new s("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 s("Assertion failed: Type(iterator) is not Object");if(!this.IsCallable(t))throw new s("Assertion failed: completion is not a thunk for a Completion Record");var n,r=t,o=this.GetMethod(e,"return");if(void 0===o)return r();try{var a=this.Call(o,e,[])}catch(e){throw n=r(),r=null,e}if(n=r(),r=null,"Object"!==this.Type(a))throw new s("iterator .return must return an object");return n},CreateIterResultObject:function(e,t){if("Boolean"!==this.Type(t))throw new s("Assertion failed: Type(done) is not Boolean");return{value:e,done:t}},RegExpExec:function(e,t){if("Object"!==this.Type(e))throw new s("R must be an Object");if("String"!==this.Type(t))throw new s("S must be a String");var n=this.Get(e,"exec");if(this.IsCallable(n)){var r=this.Call(n,e,[t]);if(null===r||"Object"===this.Type(r))return r;throw new s('"exec" method must return `null` or an Object')}return E(e,t)},ArraySpeciesCreate:function(e,t){if(!this.IsInteger(t)||t<0)throw new s("Assertion failed: length must be an integer >= 0");var n,r=0===t?0:t;if(this.IsArray(e)&&(n=this.Get(e,"constructor"),"Object"===this.Type(n)&&b&&f.species&&null===(n=this.Get(n,f.species))&&(n=void 0)),void 0===n)return l(r);if(!this.IsConstructor(n))throw new s("C must be a constructor");return new n(r)},CreateDataProperty:function(e,t,n){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");var r=K(e,t),o=r||"function"!=typeof W||W(e);return!(!(!r||r.writable&&r.configurable)||!o)&&($(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}),!0)},CreateDataPropertyOrThrow:function(e,t,n){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");var r=this.CreateDataProperty(e,t,n);if(!r)throw new s("unable to create data property");return r},ObjectCreate:function(e,t){if(null!==e&&"Object"!==this.Type(e))throw new s("Assertion failed: proto must be null or an object");var n=arguments.length<2?[]:t;if(n.length>0)throw new c("es-abstract does not yet support internal slots");if(null===e&&!B)throw new c("native Object.create support is required to create null objects");return B(e)},AdvanceStringIndex:function(e,t,n){if("String"!==this.Type(e))throw new s("S must be a String");if(!this.IsInteger(t)||t<0||t>g)throw new s("Assertion failed: length must be an integer >= 0 and <= 2**53");if("Boolean"!==this.Type(n))throw new s("Assertion failed: unicode must be a Boolean");if(!n)return t+1;if(t+1>=e.length)return t+1;var r=x(e,t);if(r<55296||r>56319)return t+1;var o=x(e,t+1);return o<56320||o>57343?t+1:t+2},CreateMethodProperty:function(e,t,n){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");return!!$(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0})},DefinePropertyOrThrow:function(e,t,n){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");return!!$(e,t,n)},DeletePropertyOrThrow:function(e,t){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");var n=delete e[t];if(!n)throw new TypeError("Attempt to delete property failed.");return n},EnumerableOwnNames:function(e){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");return a(e)},thisNumberValue:function(e){return"Number"===this.Type(e)?e:A(e)},thisBooleanValue:function(e){return"Boolean"===this.Type(e)?e:H(e)},thisStringValue:function(e){return"String"===this.Type(e)?e:R(e)},thisTimeValue:function(e){return L(e)}});delete X.CheckObjectCoercible,e.exports=X},function(e,t){e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},function(e,t,n){"use strict";var r=n(136),o=r("%Object%"),a=r("%TypeError%"),i=r("%String%"),s=n(179),c=n(180),l=n(181),u=n(183),d=n(184),h=n(101),f=n(165),p=n(63),b={ToPrimitive:f,ToBoolean:function(e){return!!e},ToNumber:function(e){return+e},ToInteger:function(e){var t=this.ToNumber(e);return c(t)?0:0!==t&&l(t)?u(t)*Math.floor(Math.abs(t)):t},ToInt32:function(e){return this.ToNumber(e)>>0},ToUint32:function(e){return this.ToNumber(e)>>>0},ToUint16:function(e){var t=this.ToNumber(e);if(c(t)||0===t||!l(t))return 0;var n=u(t)*Math.floor(Math.abs(t));return d(n,65536)},ToString:function(e){return i(e)},ToObject:function(e){return this.CheckObjectCoercible(e),o(e)},CheckObjectCoercible:function(e,t){if(null==e)throw new a(t||"Cannot call method on "+e);return e},IsCallable:h,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(p(e,n)&&!t[n])return!1;var r=p(e,"[[Value]]"),o=p(e,"[[Get]]")||p(e,"[[Set]]");if(r&&o)throw new a("Property Descriptors may not be both accessor and data descriptors");return!0},IsAccessorDescriptor:function(e){return void 0!==e&&(s(this,"Property Descriptor","Desc",e),!(!p(e,"[[Get]]")&&!p(e,"[[Set]]")))},IsDataDescriptor:function(e){return void 0!==e&&(s(this,"Property Descriptor","Desc",e),!(!p(e,"[[Value]]")&&!p(e,"[[Writable]]")))},IsGenericDescriptor:function(e){return void 0!==e&&(s(this,"Property Descriptor","Desc",e),!this.IsAccessorDescriptor(e)&&!this.IsDataDescriptor(e))},FromPropertyDescriptor:function(e){if(void 0===e)return e;if(s(this,"Property Descriptor","Desc",e),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(p(e,"enumerable")&&(t["[[Enumerable]]"]=this.ToBoolean(e.enumerable)),p(e,"configurable")&&(t["[[Configurable]]"]=this.ToBoolean(e.configurable)),p(e,"value")&&(t["[[Value]]"]=e.value),p(e,"writable")&&(t["[[Writable]]"]=this.ToBoolean(e.writable)),p(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(p(e,"set")){var r=e.set;if(void 0!==r&&!this.IsCallable(r))throw new a("setter must be a function");t["[[Set]]"]=r}if((p(t,"[[Get]]")||p(t,"[[Set]]"))&&(p(t,"[[Value]]")||p(t,"[[Writable]]")))throw new a("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}};e.exports=b},function(e,t,n){"use strict";var r=n(185),o=n(55);e.exports=function(){var e=r();return o(Object,{values:e},{values:function(){return Object.values!==e}}),e}},function(e,t,n){"use strict";var r=n(55),o=n(186),a=n(187),i=a(),s=function(e,t){return i.apply(e,[t])};r(s,{getPolyfill:a,implementation:o,shim:n(294)}),e.exports=s},function(e,t,n){"use strict";var r=n(55),o=n(187);e.exports=function(){var e=o();return"undefined"!=typeof document&&(r(document,{contains:e},{contains:function(){return document.contains!==e}}),"undefined"!=typeof Element&&r(Element.prototype,{contains:e},{contains:function(){return Element.prototype.contains!==e}})),e}},function(e,t,n){var r=n(138),o=n(296),a=n(298),i="Expected a function",s=Math.max,c=Math.min;e.exports=function(e,t,n){var l,u,d,h,f,p,b=0,v=!1,y=!1,m=!0;if("function"!=typeof e)throw new TypeError(i);function g(t){var n=l,r=u;return l=u=void 0,b=t,h=e.apply(r,n)}function O(e){var n=e-p;return void 0===p||n>=t||n<0||y&&e-b>=d}function k(){var e=o();if(O(e))return w(e);f=setTimeout(k,function(e){var n=t-(e-p);return y?c(n,d-(e-b)):n}(e))}function w(e){return f=void 0,m&&l?g(e):(l=u=void 0,h)}function _(){var e=o(),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(y)return clearTimeout(f),f=setTimeout(k,t),g(p)}return void 0===f&&(f=setTimeout(k,t)),h}return t=a(t)||0,r(n)&&(v=!!n.leading,d=(y="maxWait"in n)?s(a(n.maxWait)||0,t):d,m="trailing"in n?!!n.trailing:m),_.cancel=function(){void 0!==f&&clearTimeout(f),b=0,l=p=u=f=void 0},_.flush=function(){return void 0===f?h:w(o())},_}},function(e,t,n){var r=n(199);e.exports=function(){return r.Date.now()}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(65))},function(e,t,n){var r=n(138),o=n(299),a=NaN,i=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return a;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=c.test(e);return n||l.test(e)?u(e.slice(2),n?2:8):s.test(e)?a:+e}},function(e,t,n){var r=n(300),o=n(303),a="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||o(e)&&r(e)==a}},function(e,t,n){var r=n(200),o=n(301),a=n(302),i="[object Null]",s="[object Undefined]",c=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:i:c&&c in Object(e)?o(e):a(e)}},function(e,t,n){var r=n(200),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=i.call(e);return r&&(t?e[s]=n:delete e[s]),o}},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]:r;return e?n(e(t.clone())):t};var r=function(e){return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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 r,o=n(29),a=(r=o)&&r.__esModule?r:{default:r}},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 r=Object.assign||function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:"top",o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=n.split(" "),i=Object(h.a)(a,2),s=i[0],c=i[1],l=void 0===c?"center":c,u=function(e,t,n){var r,o=t.height,a=e.top+e.height/2,i={popoverTop:a,contentHeight:(a-o/2>0?o/2:a)+(a+o/2>window.innerHeight?window.innerHeight-a:o/2)},s={popoverTop:e.top,contentHeight:e.top-A-o>0?o:e.top-A},c={popoverTop:e.bottom,contentHeight:e.bottom+A+o>window.innerHeight?window.innerHeight-A-e.bottom:o},l=null;if("middle"===n&&i.contentHeight===o)r="middle";else if("top"===n&&s.contentHeight===o)r="top";else if("bottom"===n&&c.contentHeight===o)r="bottom";else{var u="top"===(r=s.contentHeight>c.contentHeight?"top":"bottom")?s.contentHeight:c.contentHeight;l=u!==o?u:null}return{yAxis:r,popoverTop:"middle"===r?i.popoverTop:"top"===r?s.popoverTop:c.popoverTop,contentHeight:l}}(e,t,s),d=function(e,t,n,r){var o=t.width;"left"===n&&R()?n="right":"right"===n&&R()&&(n="left");var a,i=Math.round(e.left+e.width/2),s={popoverLeft:i,contentWidth:(i-o/2>0?o/2:i)+(i+o/2>window.innerWidth?window.innerWidth-i:o/2)},c="middle"===r?e.left:i,l={popoverLeft:c,contentWidth:c-o>0?o:c},u="middle"===r?e.right:i,d={popoverLeft:u,contentWidth:u+o>window.innerWidth?window.innerWidth-u:o},h=null;if("center"===n&&s.contentWidth===o)a="center";else if("left"===n&&l.contentWidth===o)a="left";else if("right"===n&&d.contentWidth===o)a="right";else{var f="left"===(a=l.contentWidth>d.contentWidth?"left":"right")?l.contentWidth:d.contentWidth;h=f!==o?f:null}return{xAxis:a,popoverLeft:"center"===a?s.popoverLeft:"left"===a?l.popoverLeft:d.popoverLeft,contentWidth:h}}(e,t,l,u.yAxis);return Object(r.a)({isMobile:H()&&o},d,u)}var F=Object(o.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(y.a)(this,Object(m.a)(t).apply(this,arguments))).onFocus=e.onFocus.bind(Object(g.a)(e)),e.state={focusHistory:[]},e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"onFocus",value:function(e){var t=this.state.focusHistory,n=Object(_.uniq)([].concat(Object(w.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(o.createElement)(V,{value:this.state},Object(o.createElement)("div",{onFocus:this.onFocus,className:n},t))}}]),t}(o.Component);var W=Object(M.createHigherOrderComponent)((function e(t){if((r=t)instanceof o.Component||"function"==typeof r){var n=t;return e({})(n)}var r,a=t.onFocusReturn,i=void 0===a?_.stubTrue:a;return function(e){var t=function(t){function n(){var e;return Object(v.a)(this,n),(e=Object(y.a)(this,Object(m.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(k.a)(n,t),Object(O.a)(n,[{key:"componentWillUnmount",value:function(){var e=this.activeElementOnMount,t=this.isFocused,n=this.ownFocusedElements;if(t&&!1!==i())for(var r,o=[].concat(Object(w.a)(_.without.apply(void 0,[this.props.focus.focusHistory].concat(Object(w.a)(n)))),[e]);r=o.pop();)if(document.body.contains(r))return void r.focus()}},{key:"render",value:function(){return Object(o.createElement)("div",{onFocus:this.setIsFocusedTrue,onBlur:this.setIsFocusedFalse},Object(o.createElement)(e,this.props.childProps))}}]),n}(o.Component);return function(e){return Object(o.createElement)(B,null,(function(n){return Object(o.createElement)(t,{childProps:e,focus:n})}))}}}),"withFocusReturn"),$=Object(M.createHigherOrderComponent)((function(e){return function(t){function n(){var e;return Object(v.a)(this,n),(e=Object(y.a)(this,Object(m.a)(n).apply(this,arguments))).focusContainRef=Object(o.createRef)(),e.handleTabBehaviour=e.handleTabBehaviour.bind(Object(g.a)(e)),e}return Object(k.a)(n,t),Object(O.a)(n,[{key:"handleTabBehaviour",value:function(e){if(e.keyCode===D.TAB){var t=C.focus.tabbable.find(this.focusContainRef.current);if(t.length){var n=t[0],r=t[t.length-1];e.shiftKey&&e.target===n?(e.preventDefault(),r.focus()):(e.shiftKey||e.target!==r)&&t.includes(e.target)||(e.preventDefault(),n.focus())}}}},{key:"render",value:function(){return Object(o.createElement)("div",{onKeyDown:this.handleTabBehaviour,ref:this.focusContainRef,tabIndex:"-1"},Object(o.createElement)(e,this.props))}}]),n}(o.Component)}),"withConstrainedTabbing"),U=["button","submit"];var G=Object(M.createHigherOrderComponent)((function(e){return function(t){function n(){var e;return Object(v.a)(this,n),(e=Object(y.a)(this,Object(m.a)(n).apply(this,arguments))).bindNode=e.bindNode.bind(Object(g.a)(e)),e.cancelBlurCheck=e.cancelBlurCheck.bind(Object(g.a)(e)),e.queueBlurCheck=e.queueBlurCheck.bind(Object(g.a)(e)),e.normalizeButtonFocus=e.normalizeButtonFocus.bind(Object(g.a)(e)),e}return Object(k.a)(n,t),Object(O.a)(n,[{key:"componentWillUnmount",value:function(){this.cancelBlurCheck()}},{key:"bindNode",value:function(e){e?this.node=e:(delete this.node,this.cancelBlurCheck())}},{key:"queueBlurCheck",value:function(e){var t=this;e.persist(),this.preventBlurCheck||(this.blurCheckTimeout=setTimeout((function(){document.hasFocus()?"function"==typeof t.node.handleFocusOutside&&t.node.handleFocusOutside(e):e.preventDefault()}),0))}},{key:"cancelBlurCheck",value:function(){clearTimeout(this.blurCheckTimeout)}},{key:"normalizeButtonFocus",value:function(e){var t=e.type,n=e.target;Object(_.includes)(["mouseup","touchend"],t)?this.preventBlurCheck=!1:function(e){switch(e.nodeName){case"A":case"BUTTON":return!0;case"INPUT":return Object(_.includes)(U,e.type)}return!1}(n)&&(this.preventBlurCheck=!0)}},{key:"render",value:function(){return Object(o.createElement)("div",{onFocus:this.cancelBlurCheck,onMouseDown:this.normalizeButtonFocus,onMouseUp:this.normalizeButtonFocus,onTouchStart:this.normalizeButtonFocus,onTouchEnd:this.normalizeButtonFocus,onBlur:this.queueBlurCheck},Object(o.createElement)(e,Object(T.a)({ref:this.bindNode},this.props)))}}]),n}(o.Component)}),"withFocusOutside"),q=function(e){function t(){return Object(v.a)(this,t),Object(y.a)(this,Object(m.a)(t).apply(this,arguments))}return Object(k.a)(t,e),Object(O.a)(t,[{key:"handleFocusOutside",value:function(e){this.props.onFocusOutside(e)}},{key:"render",value:function(){return this.props.children}}]),t}(o.Component),Y=G(q);var Z=function(e){var t,n,r=e.shortcut,a=e.className;return r?(Object(_.isString)(r)&&(t=r),Object(_.isObject)(r)&&(t=r.display,n=r.ariaLabel),Object(o.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(y.a)(this,Object(m.a)(t).apply(this,arguments))).delayedSetIsOver=Object(_.debounce)((function(t){return e.setState({isOver:t})}),X),e.cancelIsMouseDown=e.createSetIsMouseDown(!1),e.isInMouseDown=!1,e.state={isOver:!1},e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentWillUnmount",value:function(){this.delayedSetIsOver.cancel(),document.removeEventListener("mouseup",this.cancelIsMouseDown)}},{key:"emitToChild",value:function(e,t){var n=this.props.children;if(1===o.Children.count(n)){var r=o.Children.only(n);"function"==typeof r.props[e]&&r.props[e](t)}}},{key:"createToggleIsOver",value:function(e,t){var n=this;return function(r){if(n.emitToChild(e,r),!(r.currentTarget.disabled||"focus"===r.type&&n.isInMouseDown)){n.delayedSetIsOver.cancel();var o=Object(_.includes)(["focus","mouseenter"],r.type);o!==n.state.isOver&&(t?n.delayedSetIsOver(o):n.setState({isOver:o}))}}}},{key:"createSetIsMouseDown",value:function(e){var t=this;return function(n){t.emitToChild(e?"onMouseDown":"onMouseUp",n),document[e?"addEventListener":"removeEventListener"]("mouseup",t.cancelIsMouseDown),t.isInMouseDown=e}}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.position,r=e.text,a=e.shortcut;if(1!==o.Children.count(t))return t;var i=o.Children.only(t),s=this.state.isOver;return Object(o.cloneElement)(i,{onMouseEnter:this.createToggleIsOver("onMouseEnter",!0),onMouseLeave:this.createToggleIsOver("onMouseLeave"),onClick:this.createToggleIsOver("onClick"),onFocus:this.createToggleIsOver("onFocus"),onBlur:this.createToggleIsOver("onBlur"),onMouseDown:this.createSetIsMouseDown(!0),children:Object(o.concatChildren)(i.props.children,s&&Object(o.createElement)(ge,{focusOnMount:!1,position:n,className:"components-tooltip","aria-hidden":"true",animate:!1},r,Object(o.createElement)(Z,{className:"components-tooltip__shortcut",shortcut:a})))})}}]),t}(o.Component),J=function(e){function t(){return Object(v.a)(this,t),Object(y.a)(this,Object(m.a)(t).apply(this,arguments))}return Object(k.a)(t,e),Object(O.a)(t,[{key:"render",value:function(){var e,t=this.props,n=t.icon,r=t.size,a=void 0===r?20:r,i=t.className,c=(t.ariaPressed,Object(P.a)(t,["icon","size","className","ariaPressed"]));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 l=function(e,t){return["dashicon","dashicons-"+e,t].filter(Boolean).join(" ")}(n,i);return Object(o.createElement)(u,Object(T.a)({"aria-hidden":!0,role:"img",focusable:"false",className:l,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 20 20"},c),Object(o.createElement)(s,{d:e}))}}]),t}(o.Component);var ee=function(e){var t,n=e.icon,a=void 0===n?null:n,i=e.size,s=Object(P.a)(e,["icon","size"]);if("string"==typeof a)return t=i||20,Object(o.createElement)(J,Object(T.a)({icon:a,size:t},s));if(t=i||24,"function"==typeof a)return a.prototype instanceof o.Component?Object(o.createElement)(a,Object(r.a)({size:t},s)):a(Object(r.a)({size:t},s));if(a&&("svg"===a.type||a.type===u)){var c=Object(r.a)({width:t,height:t},a.props,s);return Object(o.createElement)(u,c)}return Object(o.isValidElement)(a)?Object(o.cloneElement)(a,Object(r.a)({size:t},s)):a};var te=Object(o.forwardRef)((function(e,t){var n=e.icon,r=e.children,a=e.label,i=e.className,s=e.tooltip,c=e.shortcut,l=e.labelPosition,u=Object(P.a)(e,["icon","children","label","className","tooltip","shortcut","labelPosition"]),d=p()("components-icon-button",i,{"has-text":r}),h=s||a,f=!u.disabled&&(s||c||!!a&&(!r||Object(_.isArray)(r)&&!r.length)&&!1!==s),b=Object(o.createElement)(E,Object(T.a)({"aria-label":a},u,{className:d,ref:t}),Object(_.isString)(n)?Object(o.createElement)(ee,{icon:n}):n,r);return f&&(b=Object(o.createElement)(Q,{text:h,shortcut:c,position:l},b)),b}));var ne=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.htmlDocument,n=void 0===t?document:t,r=e.className,a=void 0===r?"lockscroll":r,i=0,s=0;function c(e){var t=n.scrollingElement||n.body;e&&(s=t.scrollTop);var r=e?"add":"remove";t.classList[r](a),n.documentElement.classList[r](a),e||(t.scrollTop=s)}return function(e){function t(){return Object(v.a)(this,t),Object(y.a)(this,Object(m.a)(t).apply(this,arguments))}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentDidMount",value:function(){0===i&&c(!0),++i}},{key:"componentWillUnmount",value:function(){1===i&&c(!1),--i}},{key:"render",value:function(){return null}}]),t}(o.Component)}(),re=function(e){function t(e){var n;return Object(v.a)(this,t),(n=Object(y.a)(this,Object(m.a)(t).call(this,e))).stopEventPropagationOutsideContainer=n.stopEventPropagationOutsideContainer.bind(Object(g.a)(n)),n}return Object(k.a)(t,e),Object(O.a)(t,[{key:"stopEventPropagationOutsideContainer",value:function(e){e.stopPropagation()}},{key:"render",value:function(){var e=this.props,t=e.children,n=Object(P.a)(e,["children"]);return Object(o.createElement)("div",Object(T.a)({},n,{onMouseDown:this.stopEventPropagationOutsideContainer}),t)}}]),t}(o.Component),oe=Object(o.createContext)({registerSlot:function(){},unregisterSlot:function(){},registerFill:function(){},unregisterFill:function(){},getSlot:function(){},getFills:function(){},subscribe:function(){}}),ae=oe.Provider,ie=oe.Consumer,se=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(y.a)(this,Object(m.a)(t).apply(this,arguments))).registerSlot=e.registerSlot.bind(Object(g.a)(e)),e.registerFill=e.registerFill.bind(Object(g.a)(e)),e.unregisterSlot=e.unregisterSlot.bind(Object(g.a)(e)),e.unregisterFill=e.unregisterFill.bind(Object(g.a)(e)),e.getSlot=e.getSlot.bind(Object(g.a)(e)),e.getFills=e.getFills.bind(Object(g.a)(e)),e.subscribe=e.subscribe.bind(Object(g.a)(e)),e.slots={},e.fills={},e.listeners=[],e.contextValue={registerSlot:e.registerSlot,unregisterSlot:e.unregisterSlot,registerFill:e.registerFill,unregisterFill:e.unregisterFill,getSlot:e.getSlot,getFills:e.getFills,subscribe:e.subscribe},e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"registerSlot",value:function(e,t){var n=this.slots[e];this.slots[e]=t,this.triggerListeners(),this.forceUpdateSlot(e),n&&n.forceUpdate()}},{key:"registerFill",value:function(e,t){this.fills[e]=[].concat(Object(w.a)(this.fills[e]||[]),[t]),this.forceUpdateSlot(e)}},{key:"unregisterSlot",value:function(e,t){this.slots[e]===t&&(delete this.slots[e],this.triggerListeners())}},{key:"unregisterFill",value:function(e,t){this.fills[e]=Object(_.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(_.sortBy)(this.fills[e],"occurrence")}},{key:"resetFillOccurrence",value:function(e){Object(_.forEach)(this.fills[e],(function(e){e.occurrence=void 0}))}},{key:"forceUpdateSlot",value:function(e){var t=this.getSlot(e);t&&t.forceUpdate()}},{key:"triggerListeners",value:function(){this.listeners.forEach((function(e){return e()}))}},{key:"subscribe",value:function(e){var t=this;return this.listeners.push(e),function(){t.listeners=Object(_.without)(t.listeners,e)}}},{key:"render",value:function(){return Object(o.createElement)(ae,{value:this.contextValue},this.props.children)}}]),t}(o.Component),ce=function(e){var t=Object(o.useContext)(oe),n=t.getSlot,r=t.subscribe,a=Object(o.useState)(n(e)),i=Object(h.a)(a,2),s=i[0],c=i[1];return Object(o.useEffect)((function(){return c(n(e)),r((function(){c(n(e))}))}),[e]),s},le=se,ue=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(y.a)(this,Object(m.a)(t).apply(this,arguments))).bindNode=e.bindNode.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.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,r=t.unregisterSlot,o=t.registerSlot;e.name!==n&&(r(e.name),o(n,this))}},{key:"bindNode",value:function(e){this.node=e}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.name,r=e.bubblesVirtually,a=void 0!==r&&r,i=e.fillProps,s=void 0===i?{}:i,c=e.getFills,l=e.className;if(a)return Object(o.createElement)("div",{ref:this.bindNode,className:l});var u=Object(_.map)(c(n,this),(function(e){var t=e.occurrence,n=Object(_.isFunction)(e.children)?e.children(s):e.children;return o.Children.map(n,(function(e,n){if(!e||Object(_.isString)(e))return e;var r="".concat(t,"---").concat(e.key||n);return Object(o.cloneElement)(e,{key:r})}))})).filter(Object(_.negate)(o.isEmptyElement));return Object(o.createElement)(o.Fragment,null,Object(_.isFunction)(t)?t(u):u)}}]),t}(o.Component),de=function(e){return Object(o.createElement)(ie,null,(function(t){var n=t.registerSlot,r=t.unregisterSlot,a=t.getFills;return Object(o.createElement)(ue,Object(T.a)({},e,{registerSlot:n,unregisterSlot:r,getFills:a}))}))},he=0;function fe(e){var t=e.name,n=e.children,r=e.registerFill,a=e.unregisterFill,i=ce(t),s=Object(o.useRef)({name:t,children:n});return s.current.occurrence||(s.current.occurrence=++he),Object(o.useLayoutEffect)((function(){return r(t,s.current),function(){return a(t,s.current)}}),[]),Object(o.useLayoutEffect)((function(){s.current.children=n,i&&!i.props.bubblesVirtually&&i.forceUpdate()}),[n]),Object(o.useLayoutEffect)((function(){t!==s.current.name&&(a(s.current.name,s.current),s.current.name=t,r(t,s.current))}),[t]),i&&i.node&&i.props.bubblesVirtually?(Object(_.isFunction)(n)&&(n=n(i.props.fillProps)),Object(o.createPortal)(n,i.node)):null}var pe=function(e){return Object(o.createElement)(ie,null,(function(t){var n=t.registerFill,r=t.unregisterFill;return Object(o.createElement)(fe,Object(T.a)({},e,{registerFill:n,unregisterFill:r}))}))};function be(e){var t=function(t){return Object(o.createElement)(pe,Object(T.a)({name:e},t))};t.displayName=e+"Fill";var n=function(t){return Object(o.createElement)(de,Object(T.a)({name:e},t))};return n.displayName=e+"Slot",{Fill:t,Slot:n}}var ve=$(W((function(e){return e.children})));function ye(e,t){Object(o.useEffect)((function(){var n,r=function(r){window.cancelAnimationFrame(n),t&&r&&"scroll"===r.type&&t.current.contains(r.target)||(n=window.requestAnimationFrame(e))};return window.addEventListener("resize",r),window.addEventListener("scroll",r,!0),function(){window.removeEventListener("resize",r),window.removeEventListener("scroll",r,!0)}}),[])}var me=function(e){var t=e.headerTitle,n=e.onClose,r=e.onKeyDown,a=e.children,i=e.className,s=e.noArrow,c=void 0!==s&&s,l=e.position,u=void 0===l?"top":l,d=(e.range,e.focusOnMount),f=void 0===d?"firstElement":d,v=e.anchorRect,y=e.getAnchorRect,m=e.expandOnMobile,g=e.animate,O=void 0===g||g,k=e.onClickOutside,w=e.onFocusOutside,_=Object(P.a)(e,["headerTitle","onClose","onKeyDown","children","className","noArrow","position","range","focusOnMount","anchorRect","getAnchorRect","expandOnMobile","animate","onClickOutside","onFocusOutside"]),S=Object(o.useRef)(null),M=Object(o.useRef)(null),j=Object(o.useState)(!1),E=Object(h.a)(j,2),z=E[0],x=E[1],A=function(e,t,n,r){var a=Object(o.useState)(null),i=Object(h.a)(a,2),s=i[0],c=i[1],l=function(){if(e.current){var t;if(n)t=n;else if(r)t=r(e.current);else{var o=e.current.parentNode.getBoundingClientRect(),a=window.getComputedStyle(e.current.parentNode),i=a.paddingTop,l=a.paddingBottom,u=parseInt(i,10),d=parseInt(l,10);t={x:o.left,y:o.top+u,width:o.width,height:o.height-u-d,left:o.left,right:o.right,top:o.top+u,bottom:o.bottom-d}}!I()(t,s)&&c(t)}};return Object(o.useEffect)(l,[n,r]),Object(o.useEffect)((function(){if(!n){var e=setInterval(l,500);return function(){return clearInterval(e)}}}),[n]),ye(l,t),s}(S,M,v,y),H=function(e){var t=Object(o.useState)(null),n=Object(h.a)(t,2),r=n[0],a=n[1];return Object(o.useEffect)((function(){var t=e.current.getBoundingClientRect();a({width:t.width,height:t.height})}),[]),r}(M);Object(o.useEffect)((function(){H&&x(!0)}),[H]);var R=function(e,t,n,r,a){var i=Object(o.useState)({popoverLeft:null,popoverTop:null,yAxis:"top",xAxis:"center",contentHeight:null,contentWidth:null,isMobile:!1}),s=Object(h.a)(i,2),c=s[0],l=s[1],u=function(){if(e&&t){var o=L(e,t,n,r);c.yAxis===o.yAxis&&c.xAxis===o.xAxis&&c.popoverLeft===o.popoverLeft&&c.popoverTop===o.popoverTop&&c.contentHeight===o.contentHeight&&c.contentWidth===o.contentWidth&&c.isMobile===o.isMobile||l(o)}};return Object(o.useEffect)(u,[e,t]),ye(u,a),c}(A,H,u,m,M);!function(e,t){Object(o.useEffect)((function(){var n=setTimeout((function(){if(e&&t.current)if("firstElement"!==e)"container"===e&&t.current.focus();else{var n=C.focus.tabbable.find(t.current)[0];n?n.focus():t.current.focus()}}),0);return function(){return clearTimeout(n)}}),[])}(f,M);var F=function(e){e.keyCode===D.ESCAPE&&n&&(e.stopPropagation(),n()),r&&r(e)};var V={top:"bottom",bottom:"top"}[R.yAxis]||"middle",B={left:"right",right:"left"}[R.xAxis]||"center",K=p()("components-popover",i,"is-"+R.yAxis,"is-"+R.xAxis,{"is-mobile":R.isMobile,"is-without-arrow":c||"center"===R.xAxis&&"middle"===R.yAxis}),W=Object(o.createElement)(Y,{onFocusOutside:function(e){if(w)w(e);else if(k){var t;try{t=new window.MouseEvent("click")}catch(e){(t=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null)}Object.defineProperty(t,"target",{get:function(){return e.relatedTarget}}),N()("Popover onClickOutside prop",{alternative:"onFocusOutside"}),k(t)}else n&&n()}},Object(o.createElement)(b,{type:O&&z?"appear":null,options:{origin:V+" "+B}},(function(e){var r=e.className;return Object(o.createElement)(re,Object(T.a)({className:p()(K,r),style:{top:!R.isMobile&&R.popoverTop?R.popoverTop+"px":void 0,left:!R.isMobile&&R.popoverLeft?R.popoverLeft+"px":void 0,visibility:H?void 0:"hidden"}},_,{onKeyDown:F}),R.isMobile&&Object(o.createElement)("div",{className:"components-popover__header"},Object(o.createElement)("span",{className:"components-popover__header-title"},t),Object(o.createElement)(te,{className:"components-popover__close",icon:"no-alt",onClick:n})),Object(o.createElement)("div",{ref:M,className:"components-popover__content",style:{maxHeight:!R.isMobile&&R.contentHeight?R.contentHeight+"px":void 0,maxWidth:!R.isMobile&&R.contentWidth?R.contentWidth+"px":void 0},tabIndex:"-1"},a))})));return f&&(W=Object(o.createElement)(ve,null,W)),Object(o.createElement)(ie,null,(function(e){var t=e.getSlot;return t&&t("Popover")&&(W=Object(o.createElement)(pe,{name:"Popover"},W)),Object(o.createElement)("span",{ref:S},W,R.isMobile&&m&&Object(o.createElement)(ne,null))}))};me.Slot=function(){return Object(o.createElement)(de,{bubblesVirtually:!0,name:"Popover"})};var ge=me,Oe=n(45),ke=Object(M.createHigherOrderComponent)((function(e){return function(t){function n(){var e;return Object(v.a)(this,n),(e=Object(y.a)(this,Object(m.a)(n).apply(this,arguments))).debouncedSpeak=Object(_.debounce)(e.speak.bind(Object(g.a)(e)),500),e}return Object(k.a)(n,t),Object(O.a)(n,[{key:"speak",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"polite";Object(Oe.speak)(e,t)}},{key:"componentWillUnmount",value:function(){this.debouncedSpeak.cancel()}},{key:"render",value:function(){return Object(o.createElement)(e,Object(T.a)({},this.props,{speak:this.speak,debouncedSpeak:this.debouncedSpeak}))}}]),n}(o.Component)}),"withSpokenMessages");function we(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r=[],o=0;o0,y=v?"components-autocomplete-listbox-".concat(r):null,m=v?"components-autocomplete-item-".concat(r,"-").concat(h):null;return Object(o.createElement)(o.Fragment,null,n({isExpanded:v,listBoxId:y,activeId:m,onKeyDown:this.handleKeyDown}),v&&a&&Object(o.createElement)(ge,{focusOnMount:!1,onClose:this.reset,position:"top right",className:"components-autocomplete__popover",getAnchorRect:_e},Object(o.createElement)("div",{id:y,role:"listbox",className:"components-autocomplete__results"},v&&Object(_.map)(u,(function(t,n){return Object(o.createElement)(E,{key:t.key,id:"components-autocomplete-item-".concat(r,"-").concat(t.key),role:"option","aria-selected":n===l,disabled:t.isDisabled,className:p()("components-autocomplete__result",b,{"is-selected":n===l}),onClick:function(){return e.select(t)}},t.label)})))))}}]),t}(o.Component),Se=Object(M.compose)([ke,M.withInstanceId])(De);function Me(e){var t=e.id,n=e.label,r=e.hideLabelFromVision,a=e.help,i=e.className,s=e.children;return Object(o.createElement)("div",{className:p()("components-base-control",i)},Object(o.createElement)("div",{className:"components-base-control__field"},n&&t&&Object(o.createElement)("label",{className:p()("components-base-control__label",{"screen-reader-text":r}),htmlFor:t},n),n&&!t&&Object(o.createElement)(Me.VisualLabel,null,n),s),!!a&&Object(o.createElement)("p",{id:t+"__help",className:"components-base-control__help"},a))}Me.VisualLabel=function(e){var t=e.className,n=e.children;return t=p()("components-base-control__label",t),Object(o.createElement)("span",{className:t},n)};var je=Me;var Ce=function(e){var t=e.className,n=Object(P.a)(e,["className"]),r=p()("components-button-group",t);return Object(o.createElement)("div",Object(T.a)({},n,{className:r,role:"group"}))};var Pe=Object(M.withInstanceId)((function(e){var t=e.label,n=e.className,r=e.heading,a=e.checked,i=e.help,s=e.instanceId,c=e.onChange,l=Object(P.a)(e,["label","className","heading","checked","help","instanceId","onChange"]),u="inspector-checkbox-control-".concat(s);return Object(o.createElement)(je,{label:r,id:u,help:i,className:n},Object(o.createElement)("span",{className:"components-checkbox-control__input-container"},Object(o.createElement)("input",Object(T.a)({id:u,className:"components-checkbox-control__input",type:"checkbox",value:"1",onChange:function(e){return c(e.target.checked)},checked:a,"aria-describedby":i?u+"__help":void 0},l)),a?Object(o.createElement)(J,{icon:"yes",className:"components-checkbox-control__checked",role:"presentation"}):null),Object(o.createElement)("label",{className:"components-checkbox-control__label",htmlFor:u},t))})),Ee=n(224),Te=n.n(Ee),ze=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(y.a)(this,Object(m.a)(t).apply(this,arguments))).bindContainer=e.bindContainer.bind(Object(g.a)(e)),e.onCopy=e.onCopy.bind(Object(g.a)(e)),e.getText=e.getText.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentDidMount",value:function(){var e=this.container,t=this.getText,n=this.onCopy,r=e.firstChild;this.clipboard=new Te.a(r,{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,r=t.onFinishCopy;n&&(n(),r&&(clearTimeout(this.onCopyTimeout),this.onCopyTimeout=setTimeout(r,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,r=(e.onCopy,e.onFinishCopy,e.text,Object(P.a)(e,["className","children","onCopy","onFinishCopy","text"])),a=r.icon,i=p()("components-clipboard-button",t),s=a?te:E;return Object(o.createElement)("span",{ref:this.bindContainer,onCopy:function(e){e.target.focus()}},Object(o.createElement)(s,Object(T.a)({},r,{className:i}),n))}}]),t}(o.Component),Ie=function(e){var t=e.className,n=e.colorValue,r=Object(P.a)(e,["className","colorValue"]);return Object(o.createElement)("span",Object(T.a)({className:p()("component-color-indicator",t),style:{background:n}},r))},xe=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(y.a)(this,Object(m.a)(t).apply(this,arguments))).toggle=e.toggle.bind(Object(g.a)(e)),e.close=e.close.bind(Object(g.a)(e)),e.closeIfFocusOutside=e.closeIfFocusOutside.bind(Object(g.a)(e)),e.containerRef=Object(o.createRef)(),e.state={isOpen:!1},e}return Object(k.a)(t,e),Object(O.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,r=this.props.onToggle;t.isOpen!==n&&r&&r(n)}},{key:"toggle",value:function(){this.setState((function(e){return{isOpen:!e.isOpen}}))}},{key:"closeIfFocusOutside",value:function(){this.containerRef.current.contains(document.activeElement)||document.activeElement.closest('[role="dialog"]')||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,r=t.renderToggle,a=t.position,i=void 0===a?"bottom":a,s=t.className,c=t.contentClassName,l=t.expandOnMobile,u=t.headerTitle,d=t.focusOnMount,h=t.popoverProps,f={isOpen:e,onToggle:this.toggle,onClose:this.close};return Object(o.createElement)("div",{className:s,ref:this.containerRef},r(f),e&&Object(o.createElement)(ge,Object(T.a)({className:c,position:i,onClose:this.close,onFocusOutside:this.closeIfFocusOutside,expandOnMobile:l,headerTitle:u,focusOnMount:d},h),n(f)))}}]),t}(o.Component),Ne=n(49),Ae=n.n(Ne);function He(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.hex?Ae()(e.hex):Ae()(e),r=n.toHsl();r.h=Math.round(r.h),r.s=Math.round(100*r.s),r.l=Math.round(100*r.l);var o=n.toHsv();o.h=Math.round(o.h),o.s=Math.round(100*o.s),o.v=Math.round(100*o.v);var a=n.toRgb(),i=n.toHex();return 0===r.s&&(r.h=t||0,o.h=t||0),{color:n,hex:"000000"===i&&0===a.a?"transparent":"#".concat(i),hsl:r,hsv:o,oldHue:e.h||t||r.h,rgb:a,source:e.source}}function Re(e,t){e.preventDefault();var n=t.getBoundingClientRect(),r=n.left,o=n.top,a=n.width,i=n.height,s="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,c="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,l=s-(r+window.pageXOffset),u=c-(o+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}}function Le(e){var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&Ae()(e).isValid()}var Fe=n(225),Ve=n.n(Fe);n(236);var Be=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(y.a)(this,Object(m.a)(t).apply(this,arguments))).bindKeyTarget=e.bindKeyTarget.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.keyTarget,n=void 0===t?document:t;this.mousetrap=new Ve.a(n),Object(_.forEach)(this.props.shortcuts,(function(t,n){var r=e.props,o=r.bindGlobal,a=r.eventName,i=o?"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 o.Children.count(e)?Object(o.createElement)("div",{ref:this.bindKeyTarget},e):null}}]),t}(o.Component),Ke=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(y.a)(this,Object(m.a)(t).apply(this,arguments))).container=Object(o.createRef)(),e.increase=e.increase.bind(Object(g.a)(e)),e.decrease=e.decrease.bind(Object(g.a)(e)),e.handleChange=e.handleChange.bind(Object(g.a)(e)),e.handleMouseDown=e.handleMouseDown.bind(Object(g.a)(e)),e.handleMouseUp=e.handleMouseUp.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.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,r=t.onChange,o=void 0===r?_.noop:r;e=parseInt(100*e,10);var a={h:n.h,s:n.s,l:n.l,a:(parseInt(100*n.a,10)+e)/100,source:"rgb"};o(a)}},{key:"decrease",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01,t=this.props,n=t.hsl,r=t.onChange,o=void 0===r?_.noop:r,a=parseInt(100*n.a,10)-parseInt(100*e,10),i={h:n.h,s:n.s,l:n.l,a:n.a<=e?0:a/100,source:"rgb"};o(i)}},{key:"handleChange",value:function(e){var t=this.props.onChange,n=void 0===t?_.noop:t,r=function(e,t,n){var r=Re(e,n),o=r.left,a=r.width,i=o<0?0:Math.round(100*o/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);r&&n(r,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!==D.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),r={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(o.createElement)(Be,{shortcuts:i},Object(o.createElement)("div",{className:"components-color-picker__alpha"},Object(o.createElement)("div",{className:"components-color-picker__alpha-gradient",style:r}),Object(o.createElement)("div",{className:"components-color-picker__alpha-bar",ref:this.container,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},Object(o.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}(o.Component),We=Object(M.pure)(Ke),$e=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(y.a)(this,Object(m.a)(t).apply(this,arguments))).container=Object(o.createRef)(),e.increase=e.increase.bind(Object(g.a)(e)),e.decrease=e.decrease.bind(Object(g.a)(e)),e.handleChange=e.handleChange.bind(Object(g.a)(e)),e.handleMouseDown=e.handleMouseDown.bind(Object(g.a)(e)),e.handleMouseUp=e.handleMouseUp.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.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,r=t.onChange,o=void 0===r?_.noop:r,a={h:n.h+e>=359?359:n.h+e,s:n.s,l:n.l,a:n.a,source:"rgb"};o(a)}},{key:"decrease",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=this.props,n=t.hsl,r=t.onChange,o=void 0===r?_.noop:r,a={h:n.h<=e?0:n.h-e,s:n.s,l:n.l,a:n.a,source:"rgb"};o(a)}},{key:"handleChange",value:function(e){var t=this.props.onChange,n=void 0===t?_.noop:t,r=function(e,t,n){var r=Re(e,n),o=r.left,a=r.width,i=o>=a?359:360*(100*o/a)/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);r&&n(r,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!==D.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,r=void 0===n?{}:n,a=t.instanceId,i={left:"".concat(100*r.h/360,"%")},s={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(o.createElement)(Be,{shortcuts:s},Object(o.createElement)("div",{className:"components-color-picker__hue"},Object(o.createElement)("div",{className:"components-color-picker__hue-gradient"}),Object(o.createElement)("div",{className:"components-color-picker__hue-bar",ref:this.container,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},Object(o.createElement)("div",{tabIndex:"0",role:"slider","aria-valuemax":"1","aria-valuemin":"359","aria-valuenow":r.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(o.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}(o.Component),Ue=Object(M.compose)(M.pure,M.withInstanceId)($e);var Ge=Object(M.withInstanceId)((function(e){var t=e.label,n=e.hideLabelFromVision,r=e.value,a=e.help,i=e.className,s=e.instanceId,c=e.onChange,l=e.type,u=void 0===l?"text":l,d=Object(P.a)(e,["label","hideLabelFromVision","value","help","className","instanceId","onChange","type"]),h="inspector-text-control-".concat(s);return Object(o.createElement)(je,{label:t,hideLabelFromVision:n,id:h,help:a,className:i},Object(o.createElement)("input",Object(T.a)({className:"components-text-control__input",type:u,id:h,value:r,onChange:function(e){return c(e.target.value)},"aria-describedby":a?h+"__help":void 0},d)))})),qe=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(y.a)(this,Object(m.a)(t).apply(this,arguments))).handleBlur=e.handleBlur.bind(Object(g.a)(e)),e.handleChange=e.handleChange.bind(Object(g.a)(e)),e.handleKeyDown=e.handleKeyDown.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"handleBlur",value:function(){var e=this.props,t=e.value,n=e.valueKey;(0,e.onChange)({source:e.source,state:"commit",value:t,valueKey:n})}},{key:"handleChange",value:function(e){var t=this.props,n=t.valueKey,r=t.onChange,o=t.source;e.length>4&&Le(e)?r({source:o,state:"commit",value:e,valueKey:n}):r({source:o,state:"draft",value:e,valueKey:n})}},{key:"handleKeyDown",value:function(e){var t=e.keyCode;if(t===D.ENTER||t===D.UP||t===D.DOWN){var n=this.props,r=n.value,o=n.valueKey;(0,n.onChange)({source:n.source,state:"commit",value:r,valueKey:o})}}},{key:"render",value:function(){var e=this,t=this.props,n=t.label,r=t.value,a=Object(P.a)(t,["label","value"]);return Object(o.createElement)(Ge,Object(T.a)({className:"components-color-picker__inputs-field",label:n,value:r,onChange:function(t){return e.handleChange(t)},onBlur:this.handleBlur,onKeyDown:this.handleKeyDown},Object(_.omit)(a,["onChange","valueKey","source"])))}}]),t}(o.Component),Ye=Object(M.pure)(te),Ze=function(e){function t(e){var n,r=e.hsl;Object(v.a)(this,t),n=Object(y.a)(this,Object(m.a)(t).apply(this,arguments));var o=1===r.a?"hex":"rgb";return n.state={view:o},n.toggleViews=n.toggleViews.bind(Object(g.a)(n)),n.resetDraftValues=n.resetDraftValues.bind(Object(g.a)(n)),n.handleChange=n.handleChange.bind(Object(g.a)(n)),n.normalizeValue=n.normalizeValue.bind(Object(g.a)(n)),n}return Object(k.a)(t,e),Object(O.a)(t,[{key:"toggleViews",value:function(){"hex"===this.state.view?(this.setState({view:"rgb"},this.resetDraftValues),Object(Oe.speak)(Object(S.__)("RGB mode active"))):"rgb"===this.state.view?(this.setState({view:"hsl"},this.resetDraftValues),Object(Oe.speak)(Object(S.__)("Hue/saturation/lightness mode active"))):"hsl"===this.state.view&&(1===this.props.hsl.a?(this.setState({view:"hex"},this.resetDraftValues),Object(Oe.speak)(Object(S.__)("Hex color mode active"))):(this.setState({view:"rgb"},this.resetDraftValues),Object(Oe.speak)(Object(S.__)("RGB mode active"))))}},{key:"resetDraftValues",value:function(){return this.props.onChange({state:"reset"})}},{key:"normalizeValue",value:function(e,t){return"a"!==e?t:t>0?0:t>1?1:Math.round(100*t)/100}},{key:"handleChange",value:function(e){var t=e.source,n=e.state,r=e.value,o=e.valueKey;this.props.onChange({source:t,state:n,valueKey:o,value:this.normalizeValue(o,r)})}},{key:"renderFields",value:function(){var e=this.props.disableAlpha,t=void 0!==e&&e;return"hex"===this.state.view?Object(o.createElement)("div",{className:"components-color-picker__inputs-fields"},Object(o.createElement)(qe,{source:this.state.view,label:Object(S.__)("Color value in hexadecimal"),valueKey:"hex",value:this.props.hex,onChange:this.handleChange})):"rgb"===this.state.view?Object(o.createElement)("fieldset",null,Object(o.createElement)("legend",{className:"screen-reader-text"},Object(S.__)("Color value in RGB")),Object(o.createElement)("div",{className:"components-color-picker__inputs-fields"},Object(o.createElement)(qe,{source:this.state.view,label:"r",valueKey:"r",value:this.props.rgb.r,onChange:this.handleChange,type:"number",min:"0",max:"255"}),Object(o.createElement)(qe,{source:this.state.view,label:"g",valueKey:"g",value:this.props.rgb.g,onChange:this.handleChange,type:"number",min:"0",max:"255"}),Object(o.createElement)(qe,{source:this.state.view,label:"b",valueKey:"b",value:this.props.rgb.b,onChange:this.handleChange,type:"number",min:"0",max:"255"}),t?null:Object(o.createElement)(qe,{source:this.state.view,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(o.createElement)("fieldset",null,Object(o.createElement)("legend",{className:"screen-reader-text"},Object(S.__)("Color value in HSL")),Object(o.createElement)("div",{className:"components-color-picker__inputs-fields"},Object(o.createElement)(qe,{source:this.state.view,label:"h",valueKey:"h",value:this.props.hsl.h,onChange:this.handleChange,type:"number",min:"0",max:"359"}),Object(o.createElement)(qe,{source:this.state.view,label:"s",valueKey:"s",value:this.props.hsl.s,onChange:this.handleChange,type:"number",min:"0",max:"100"}),Object(o.createElement)(qe,{source:this.state.view,label:"l",valueKey:"l",value:this.props.hsl.l,onChange:this.handleChange,type:"number",min:"0",max:"100"}),t?null:Object(o.createElement)(qe,{source:this.state.view,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(o.createElement)("div",{className:"components-color-picker__inputs-wrapper"},this.renderFields(),Object(o.createElement)("div",{className:"components-color-picker__inputs-toggle"},Object(o.createElement)(Ye,{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}(o.Component),Xe=function(e){function t(e){var n;return Object(v.a)(this,t),(n=Object(y.a)(this,Object(m.a)(t).call(this,e))).throttle=Object(_.throttle)((function(e,t,n){e(t,n)}),50),n.container=Object(o.createRef)(),n.saturate=n.saturate.bind(Object(g.a)(n)),n.brighten=n.brighten.bind(Object(g.a)(n)),n.handleChange=n.handleChange.bind(Object(g.a)(n)),n.handleMouseDown=n.handleMouseDown.bind(Object(g.a)(n)),n.handleMouseUp=n.handleMouseUp.bind(Object(g.a)(n)),n}return Object(k.a)(t,e),Object(O.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,r=t.onChange,o=void 0===r?_.noop:r,a=Object(_.clamp)(n.s+Math.round(100*e),0,100),i={h:n.h,s:a,v:n.v,a:n.a,source:"rgb"};o(i)}},{key:"brighten",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01,t=this.props,n=t.hsv,r=t.onChange,o=void 0===r?_.noop:r,a=Object(_.clamp)(n.v+Math.round(100*e),0,100),i={h:n.h,s:n.s,v:a,a:n.a,source:"rgb"};o(i)}},{key:"handleChange",value:function(e){var t=this.props.onChange,n=void 0===t?_.noop:t,r=function(e,t,n){var r=Re(e,n),o=r.top,a=r.left,i=r.width,s=r.height,c=a<0?0:100*a/i,l=o>=s?0:-100*o/s+100;return l<1&&(l=0),{h:t.hsl.h,s:c,v:l,a:t.hsl.a,source:"rgb"}}(e,this.props,this.container.current);this.throttle(n,r,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!==D.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,r=t.hsl,a=t.instanceId,i={top:"".concat(100-n.v,"%"),left:"".concat(n.s,"%")},s={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(o.createElement)(Be,{shortcuts:s},Object(o.createElement)("div",{style:{background:"hsl(".concat(r.h,",100%, 50%)")},className:"components-color-picker__saturation-color",ref:this.container,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange,role:"application"},Object(o.createElement)("div",{className:"components-color-picker__saturation-white"}),Object(o.createElement)("div",{className:"components-color-picker__saturation-black"}),Object(o.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(o.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}(o.Component),Qe=Object(M.compose)(M.pure,M.withInstanceId)(Xe),Je=function(e){return String(e).toLowerCase()},et=function(e){return e.hex?Le(e.hex):(t=e,n=0,r=0,Object(_.each)(["r","g","b","a","h","s","l","v"],(function(e){t[e]&&(n+=1,isNaN(t[e])||(r+=1))})),n===r&&t);var t,n,r},tt=function(e,t){var n=t.source,o=t.valueKey,a=t.value;return"hex"===n?Object(d.a)({source:n},n,a):Object(r.a)({source:n},Object(r.a)({},e[n],Object(d.a)({},o,a)))},nt=function(e){function t(e){var n,o=e.color,a=void 0===o?"0071a1":o;Object(v.a)(this,t),n=Object(y.a)(this,Object(m.a)(t).apply(this,arguments));var i=He(a);return n.state=Object(r.a)({},i,{draftHex:Je(i.hex),draftRgb:i.rgb,draftHsl:i.hsl}),n.commitValues=n.commitValues.bind(Object(g.a)(n)),n.setDraftValues=n.setDraftValues.bind(Object(g.a)(n)),n.resetDraftValues=n.resetDraftValues.bind(Object(g.a)(n)),n.handleInputChange=n.handleInputChange.bind(Object(g.a)(n)),n}return Object(k.a)(t,e),Object(O.a)(t,[{key:"commitValues",value:function(e){var t=this.props,n=t.oldHue,o=t.onChangeComplete,a=void 0===o?_.noop:o;if(et(e)){var i=He(e,e.h||n);this.setState(Object(r.a)({},i,{draftHex:Je(i.hex),draftHsl:i.hsl,draftRgb:i.rgb}),Object(_.debounce)(Object(_.partial)(a,i),100))}}},{key:"resetDraftValues",value:function(){this.setState({draftHex:this.state.hex,draftHsl:this.state.hsl,draftRgb:this.state.rgb})}},{key:"setDraftValues",value:function(e){switch(e.source){case"hex":this.setState({draftHex:Je(e.hex)});break;case"rgb":this.setState({draftRgb:e});break;case"hsl":this.setState({draftHsl:e})}}},{key:"handleInputChange",value:function(e){switch(e.state){case"reset":this.resetDraftValues();break;case"commit":var t=tt(this.state,e);(function(e){return"hex"===e.source&&!e.hex||(!("hsl"!==e.source||e.h&&e.s&&e.l)||!("rgb"!==e.source||e.r&&e.g&&e.b||e.h&&e.s&&e.v&&e.a||e.h&&e.s&&e.l&&e.a))})(t)||this.commitValues(t);break;case"draft":this.setDraftValues(tt(this.state,e))}}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.disableAlpha,r=this.state,a=r.color,i=r.hsl,s=r.hsv,c=r.rgb,l=r.draftHex,u=r.draftHsl,d=r.draftRgb,h=p()(t,{"components-color-picker":!0,"is-alpha-disabled":n,"is-alpha-enabled":!n});return Object(o.createElement)("div",{className:h},Object(o.createElement)("div",{className:"components-color-picker__saturation"},Object(o.createElement)(Qe,{hsl:i,hsv:s,onChange:this.commitValues})),Object(o.createElement)("div",{className:"components-color-picker__body"},Object(o.createElement)("div",{className:"components-color-picker__controls"},Object(o.createElement)("div",{className:"components-color-picker__swatch"},Object(o.createElement)("div",{className:"components-color-picker__active",style:{backgroundColor:a&&a.toRgbString()}})),Object(o.createElement)("div",{className:"components-color-picker__toggles"},Object(o.createElement)(Ue,{hsl:i,onChange:this.commitValues}),n?null:Object(o.createElement)(We,{rgb:c,hsl:i,onChange:this.commitValues}))),Object(o.createElement)(Ze,{rgb:d,hsl:u,hex:l,onChange:this.handleInputChange,disableAlpha:n})))}}]),t}(o.Component);function rt(e){var t=e.colors,n=e.disableCustomColors,r=void 0!==n&&n,a=e.value,i=e.onChange,s=e.className,c=e.clearable,l=void 0===c||c;function u(e){return function(){return i(a===e?void 0:e)}}var d=Object(S.__)("Custom color picker"),h=p()("components-color-palette",s);return Object(o.createElement)("div",{className:h},Object(_.map)(t,(function(e){var t=e.color,n=e.name,r={color:t},i=p()("components-color-palette__item",{"is-active":a===t});return Object(o.createElement)("div",{key:t,className:"components-color-palette__item-wrapper"},Object(o.createElement)(Q,{text:n||Object(S.sprintf)(Object(S.__)("Color code: %s"),t)},Object(o.createElement)("button",{type:"button",className:i,style:r,onClick:u(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(o.createElement)(J,{icon:"saved"}))})),Object(o.createElement)("div",{className:"components-color-palette__custom-clear-wrapper"},!r&&Object(o.createElement)(xe,{className:"components-color-palette__custom-color",contentClassName:"components-color-palette__picker",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(o.createElement)(E,{"aria-expanded":t,onClick:n,"aria-label":d,isLink:!0},Object(S.__)("Custom Color"))},renderContent:function(){return Object(o.createElement)(nt,{color:a,onChangeComplete:function(e){return i(e.hex)},disableAlpha:!0})}}),!!l&&Object(o.createElement)(E,{className:"components-color-palette__clear",type:"button",onClick:function(){return i(void 0)},isSmall:!0,isDefault:!0},Object(S.__)("Clear"))))}n(237);var ot=n(29),at=n.n(ot),it=n(226),st=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(y.a)(this,Object(m.a)(t).apply(this,arguments))).onChangeMoment=e.onChangeMoment.bind(Object(g.a)(e)),e.nodeRef=Object(o.createRef)(),e.keepFocusInside=e.keepFocusInside.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"keepFocusInside",value:function(){if(this.nodeRef.current&&(!document.activeElement||!this.nodeRef.current.contains(document.activeElement))){var e=this.nodeRef.current.querySelector(".DayPicker_focusRegion");if(!e)return;e.focus()}}},{key:"onChangeMoment",value:function(e){var t=this.props,n=t.currentDate,r=t.onChange,o=n?at()(n):at()(),a={hours:o.hours(),minutes:o.minutes(),seconds:0};r(e.set(a).format("YYYY-MM-DDTHH:mm:ss"))}},{key:"getMomentDate",value:function(e){return null===e?null:e?at()(e):at()()}},{key:"render",value:function(){var e=this.props,t=e.currentDate,n=e.isInvalidDate,r=this.getMomentDate(t);return Object(o.createElement)("div",{className:"components-datetime__date",ref:this.nodeRef},Object(o.createElement)(it.DayPickerSingleDateController,{date:r,daySize:30,focused:!0,hideKeyboardShortcutsPanel:!0,key:"datepicker-controller-".concat(r?r.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())},onPrevMonthClick:this.keepFocusInside,onNextMonthClick:this.keepFocusInside}))}}]),t}(o.Component),ct=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(y.a)(this,Object(m.a)(t).apply(this,arguments))).state={day:"",month:"",year:"",hours:"",minutes:"",am:!0,date:null},e.changeDate=e.changeDate.bind(Object(g.a)(e)),e.updateMonth=e.updateMonth.bind(Object(g.a)(e)),e.onChangeMonth=e.onChangeMonth.bind(Object(g.a)(e)),e.updateDay=e.updateDay.bind(Object(g.a)(e)),e.onChangeDay=e.onChangeDay.bind(Object(g.a)(e)),e.updateYear=e.updateYear.bind(Object(g.a)(e)),e.onChangeYear=e.onChangeYear.bind(Object(g.a)(e)),e.updateHours=e.updateHours.bind(Object(g.a)(e)),e.updateMinutes=e.updateMinutes.bind(Object(g.a)(e)),e.onChangeHours=e.onChangeHours.bind(Object(g.a)(e)),e.onChangeMinutes=e.onChangeMinutes.bind(Object(g.a)(e)),e.renderMonth=e.renderMonth.bind(Object(g.a)(e)),e.renderDay=e.renderDay.bind(Object(g.a)(e)),e.renderDayMonthFormat=e.renderDayMonthFormat.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentDidMount",value:function(){this.syncState(this.props)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.currentTime,r=t.is12Hour;n===e.currentTime&&r===e.is12Hour||this.syncState(this.props)}},{key:"changeDate",value:function(e){var t=e.clone().startOf("minute");this.setState({date:t}),this.props.onChange(e.format("YYYY-MM-DDTHH:mm:ss"))}},{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,r=t?at()(t):at()(),o=r.format("DD"),a=r.format("MM"),i=r.format("YYYY"),s=r.format("mm"),c=r.format("A"),l=r.format(n?"hh":"HH"),u=t?at()(t):at()();this.setState({day:o,month:a,year:i,minutes:s,hours:l,am:c,date:u})}},{key:"updateHours",value:function(){var e=this.props.is12Hour,t=this.state,n=t.am,r=t.hours,o=t.date,a=parseInt(r,10);if(!Object(_.isInteger)(a)||e&&(a<1||a>12)||!e&&(a<0||a>23))this.syncState(this.props);else{var i=e?o.clone().hours("AM"===n?a%12:(a%12+12)%24):o.clone().hours(a);this.changeDate(i)}}},{key:"updateMinutes",value:function(){var e=this.state,t=e.minutes,n=e.date,r=parseInt(t,10);if(!Object(_.isInteger)(r)||r<0||r>59)this.syncState(this.props);else{var o=n.clone().minutes(r);this.changeDate(o)}}},{key:"updateDay",value:function(){var e=this.state,t=e.day,n=e.date,r=parseInt(t,10);if(!Object(_.isInteger)(r)||r<1||r>31)this.syncState(this.props);else{var o=n.clone().date(r);this.changeDate(o)}}},{key:"updateMonth",value:function(){var e=this.state,t=e.month,n=e.date,r=parseInt(t,10);if(!Object(_.isInteger)(r)||r<1||r>12)this.syncState(this.props);else{var o=n.clone().month(r-1);this.changeDate(o)}}},{key:"updateYear",value:function(){var e=this.state,t=e.year,n=e.date,r=parseInt(t,10);if(!Object(_.isInteger)(r)||r<0||r>9999)this.syncState(this.props);else{var o=n.clone().year(r);this.changeDate(o)}}},{key:"updateAmPm",value:function(e){var t=this;return function(){var n,r=t.state,o=r.am,a=r.date,i=r.hours;o!==e&&(n="PM"===e?a.clone().hours((parseInt(i,10)%12+12)%24):a.clone().hours(parseInt(i,10)%12),t.changeDate(n))}}},{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){var t=e.target.value;this.setState({minutes:""===t?"":("0"+t).slice(-2)})}},{key:"renderMonth",value:function(e){return Object(o.createElement)("div",{key:"render-month",className:"components-datetime__time-field components-datetime__time-field-month"},Object(o.createElement)("select",{"aria-label":Object(S.__)("Month"),className:"components-datetime__time-field-month-select",value:e,onChange:this.onChangeMonth,onBlur:this.updateMonth},Object(o.createElement)("option",{value:"01"},Object(S.__)("January")),Object(o.createElement)("option",{value:"02"},Object(S.__)("February")),Object(o.createElement)("option",{value:"03"},Object(S.__)("March")),Object(o.createElement)("option",{value:"04"},Object(S.__)("April")),Object(o.createElement)("option",{value:"05"},Object(S.__)("May")),Object(o.createElement)("option",{value:"06"},Object(S.__)("June")),Object(o.createElement)("option",{value:"07"},Object(S.__)("July")),Object(o.createElement)("option",{value:"08"},Object(S.__)("August")),Object(o.createElement)("option",{value:"09"},Object(S.__)("September")),Object(o.createElement)("option",{value:"10"},Object(S.__)("October")),Object(o.createElement)("option",{value:"11"},Object(S.__)("November")),Object(o.createElement)("option",{value:"12"},Object(S.__)("December"))))}},{key:"renderDay",value:function(e){return Object(o.createElement)("div",{key:"render-day",className:"components-datetime__time-field components-datetime__time-field-day"},Object(o.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,r=t.month,o=[this.renderDay(n),this.renderMonth(r)];return e?o:o.reverse()}},{key:"render",value:function(){var e=this.props.is12Hour,t=this.state,n=t.year,r=t.minutes,a=t.hours,i=t.am;return Object(o.createElement)("div",{className:p()("components-datetime__time")},Object(o.createElement)("fieldset",null,Object(o.createElement)("legend",{className:"components-datetime__time-legend invisible"},Object(S.__)("Date")),Object(o.createElement)("div",{className:"components-datetime__time-wrapper"},this.renderDayMonthFormat(e),Object(o.createElement)("div",{className:"components-datetime__time-field components-datetime__time-field-year"},Object(o.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(o.createElement)("fieldset",null,Object(o.createElement)("legend",{className:"components-datetime__time-legend invisible"},Object(S.__)("Time")),Object(o.createElement)("div",{className:"components-datetime__time-wrapper"},Object(o.createElement)("div",{className:"components-datetime__time-field components-datetime__time-field-time"},Object(o.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(o.createElement)("span",{className:"components-datetime__time-separator","aria-hidden":"true"},":"),Object(o.createElement)("input",{"aria-label":Object(S.__)("Minutes"),className:"components-datetime__time-field-minutes-input",type:"number",min:0,max:59,value:r,onChange:this.onChangeMinutes,onBlur:this.updateMinutes})),e&&Object(o.createElement)("div",{className:"components-datetime__time-field components-datetime__time-field-am-pm"},Object(o.createElement)(E,{"aria-pressed":"AM"===i,isDefault:!0,className:"components-datetime__time-am-button",isToggled:"AM"===i,onClick:this.updateAmPm("AM")},Object(S.__)("AM")),Object(o.createElement)(E,{"aria-pressed":"PM"===i,isDefault:!0,className:"components-datetime__time-pm-button",isToggled:"PM"===i,onClick:this.updateAmPm("PM")},Object(S.__)("PM"))))))}}]),t}(o.Component),lt=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(y.a)(this,Object(m.a)(t).apply(this,arguments))).state={calendarHelpIsVisible:!1},e.onClickDescriptionToggle=e.onClickDescriptionToggle.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.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,r=e.onChange;return Object(o.createElement)("div",{className:"components-datetime"},!this.state.calendarHelpIsVisible&&Object(o.createElement)(o.Fragment,null,Object(o.createElement)(ct,{currentTime:t,onChange:r,is12Hour:n}),Object(o.createElement)(st,{currentDate:t,onChange:r})),this.state.calendarHelpIsVisible&&Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{className:"components-datetime__calendar-help"},Object(o.createElement)("h4",null,Object(S.__)("Click to Select")),Object(o.createElement)("ul",null,Object(o.createElement)("li",null,Object(S.__)("Click the right or left arrows to select other months in the past or the future.")),Object(o.createElement)("li",null,Object(S.__)("Click the desired day to select it."))),Object(o.createElement)("h4",null,Object(S.__)("Navigating with a keyboard")),Object(o.createElement)("ul",null,Object(o.createElement)("li",null,Object(o.createElement)("abbr",{"aria-label":Object(S._x)("Enter","keyboard button")},"↵")," ",Object(o.createElement)("span",null,Object(S.__)("Select the date in focus."))),Object(o.createElement)("li",null,Object(o.createElement)("abbr",{"aria-label":Object(S.__)("Left and Right Arrows")},"←/→")," ",Object(S.__)("Move backward (left) or forward (right) by one day.")),Object(o.createElement)("li",null,Object(o.createElement)("abbr",{"aria-label":Object(S.__)("Up and Down Arrows")},"↑/↓")," ",Object(S.__)("Move backward (up) or forward (down) by one week.")),Object(o.createElement)("li",null,Object(o.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(o.createElement)("li",null,Object(o.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(o.createElement)(E,{isSmall:!0,onClick:this.onClickDescriptionToggle},Object(S.__)("Close")))),!this.state.calendarHelpIsVisible&&Object(o.createElement)(E,{className:"components-datetime__date-help-button",isLink:!0,onClick:this.onClickDescriptionToggle},Object(S.__)("Calendar Help")))}}]),t}(o.Component),ut=Object(o.createContext)(!1),dt=ut.Consumer,ht=ut.Provider,ft=["BUTTON","FIELDSET","INPUT","OPTGROUP","OPTION","SELECT","TEXTAREA"],pt=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(y.a)(this,Object(m.a)(t).apply(this,arguments))).bindNode=e.bindNode.bind(Object(g.a)(e)),e.disable=e.disable.bind(Object(g.a)(e)),e.debouncedDisable=Object(_.debounce)(e.disable,{leading:!0}),e}return Object(k.a)(t,e),Object(O.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(_.includes)(ft,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(P.a)(e,["className"]);return Object(o.createElement)(ht,{value:!0},Object(o.createElement)("div",Object(T.a)({ref:this.bindNode,className:p()(t,"components-disabled")},n),this.props.children))}}]),t}(o.Component);pt.Consumer=dt;var bt=pt,vt=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(y.a)(this,Object(m.a)(t).apply(this,arguments))).onDragStart=e.onDragStart.bind(Object(g.a)(e)),e.onDragOver=e.onDragOver.bind(Object(g.a)(e)),e.onDragEnd=e.onDragEnd.bind(Object(g.a)(e)),e.resetDragState=e.resetDragState.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentWillUnmount",value:function(){this.resetDragState()}},{key:"onDragEnd",value:function(e){var t=this.props.onDragEnd,n=void 0===t?_.noop:t;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:"onDragStart",value:function(e){var t=this.props,n=t.elementId,r=t.transferData,o=t.onDragStart,a=void 0===o?_.noop:o,i=document.getElementById(n);if(i){if("function"==typeof e.dataTransfer.setDragImage){var s=document.createElement("div");s.id="drag-image-".concat(n),s.classList.add("components-draggable__invisible-drag-image"),document.body.appendChild(s),e.dataTransfer.setDragImage(s,0,0),this.props.setTimeout((function(){document.body.removeChild(s)}))}e.dataTransfer.setData("text",JSON.stringify(r));var c=i.getBoundingClientRect(),l=i.parentNode,u=parseInt(c.top,10),d=parseInt(c.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(c.width+40,"px"),c.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(w.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),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),document.body.classList.remove("is-dragging-components-draggable")}},{key:"render",value:function(){return(0,this.props.children)({onDraggableStart:this.onDragStart,onDraggableEnd:this.onDragEnd})}}]),t}(o.Component),yt=Object(M.withSafeTimeout)(vt),mt=Object(o.createContext)({addDropZone:function(){},removeDropZone:function(){}}),gt=mt.Provider,Ot=mt.Consumer,kt=function(e){var t=e.dataTransfer;if(t){if(Object(_.includes)(t.types,"Files"))return"file";if(Object(_.includes)(t.types,"text/html"))return"html"}return"default"},wt=function(e,t){return"file"===e&&t.onFilesDrop||"html"===e&&t.onHTMLDrop||"default"===e&&t.onDrop},_t=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(y.a)(this,Object(m.a)(t).apply(this,arguments))).onDragOver=e.onDragOver.bind(Object(g.a)(e)),e.onDrop=e.onDrop.bind(Object(g.a)(e)),e.addDropZone=e.addDropZone.bind(Object(g.a)(e)),e.removeDropZone=e.removeDropZone.bind(Object(g.a)(e)),e.resetDragState=e.resetDragState.bind(Object(g.a)(e)),e.toggleDraggingOverDocument=Object(_.throttle)(e.toggleDraggingOverDocument.bind(Object(g.a)(e)),200),e.dropZones=[],e.dropZoneCallbacks={addDropZone:e.addDropZone,removeDropZone:e.removeDropZone},e.state={hoveredDropZone:-1,isDraggingOverDocument:!1,position:null},e}return Object(k.a)(t,e),Object(O.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(_.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,position: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,r=window.CustomEvent&&e instanceof window.CustomEvent?e.detail:e,o=Object(_.filter)(this.dropZones,(function(e){return wt(t,e)&&function(e,t,n){var r=e.getBoundingClientRect();return r.bottom!==r.top&&r.left!==r.right&&(t>=r.left&&t<=r.right&&n>=r.top&&n<=r.bottom)}(e.element,r.clientX,r.clientY)})),a=Object(_.find)(o,(function(e){return!Object(_.some)(o,(function(t){return t!==e&&e.element.parentElement.contains(t.element)}))})),i=this.dropZones.indexOf(a),s=null;if(a){var c=a.element.getBoundingClientRect();s={x:r.clientX-c.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,r=n.cycle,o=void 0===r||r,a=n.eventToOffset,i=n.onNavigate,s=void 0===i?_.noop:i,c=n.stopNavigationEvents,l=a(e);if(void 0!==l&&c&&(e.stopImmediatePropagation(),"menuitem"===e.target.getAttribute("role")&&e.preventDefault()),l){var u=t(document.activeElement);if(u){var d=u.index,h=u.focusables,f=o?function(e,t,n){var r=e+n;return r<0?t+r:r>=t?r-t:r}(d,h.length,l):d+l;f>=0&&f0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object(r.a)({},e,t);return t.className&&e.className&&(n.className=p()(t.className,e.className)),n}var zt=function(e){var t,n=e.children,r=e.className,a=e.controls,i=e.hasArrowIndicator,s=void 0!==i&&i,c=e.icon,l=void 0===c?"menu":c,u=e.label,d=e.popoverProps,h=e.toggleProps,f=e.menuProps,b=e.menuLabel,v=e.position;if(b&&N()("`menuLabel` prop in `DropdownComponent`",{alternative:"`menuProps` object and its `aria-label` property",plugin:"Gutenberg"}),v&&N()("`position` prop in `DropdownComponent`",{alternative:"`popoverProps` object and its `position` property",plugin:"Gutenberg"}),Object(_.isEmpty)(a)&&!Object(_.isFunction)(n))return null;Object(_.isEmpty)(a)||(t=a,Array.isArray(t[0])||(t=[t]));var y=Tt({className:"components-dropdown-menu__popover",position:v},d);return Object(o.createElement)(xe,{className:p()("components-dropdown-menu",r),popoverProps:y,renderToggle:function(e){var t=e.isOpen,n=e.onToggle,r=Tt({className:p()("components-dropdown-menu__toggle",{"is-opened":t}),tooltip:u},h);return Object(o.createElement)(te,Object(T.a)({},r,{icon:l,onClick:n,onKeyDown:function(e){t||e.keyCode!==D.DOWN||(e.preventDefault(),e.stopPropagation(),n())},"aria-haspopup":"true","aria-expanded":t,label:u}),(!l||s)&&Object(o.createElement)("span",{className:"components-dropdown-menu__indicator"}))},renderContent:function(e){var r=Tt({"aria-label":b||u,className:"components-dropdown-menu__menu"},f);return Object(o.createElement)(Pt,Object(T.a)({},r,{role:"menu"}),Object(_.isFunction)(n)?n(e):null,Object(_.flatMap)(t,(function(t,n){return t.map((function(t,r){return Object(o.createElement)(te,{key:[n,r].join(),onClick:function(n){n.stopPropagation(),e.onClose(),t.onClick&&t.onClick()},className:p()("components-dropdown-menu__menu-item",{"has-separator":n>0&&0===r,"is-active":t.isActive}),icon:t.icon,role:"menuitem",disabled:t.isDisabled},t.title)}))})))}})};var It=Object(o.forwardRef)((function(e,t){var n=e.href,r=e.children,a=e.className,i=e.rel,s=void 0===i?"":i,c=Object(P.a)(e,["href","children","className","rel"]);s=Object(_.uniq)(Object(_.compact)([].concat(Object(w.a)(s.split(" ")),["external","noreferrer","noopener"]))).join(" ");var l=p()("components-external-link",a);return(Object(o.createElement)("a",Object(T.a)({},c,{className:l,href:n,target:"_blank",rel:s,ref:t}),r,Object(o.createElement)("span",{className:"screen-reader-text"},Object(S.__)("(opens in a new tab)")),Object(o.createElement)(J,{icon:"external",className:"components-external-link__icon"})))})),xt=function(e){function t(e){var n;return Object(v.a)(this,t),(n=Object(y.a)(this,Object(m.a)(t).call(this,e))).onMouseMove=n.onMouseMove.bind(Object(g.a)(n)),n.state={isDragging:!1,bounds:{},percentages:e.value},n.containerRef=Object(o.createRef)(),n.imageRef=Object(o.createRef)(),n.horizontalPositionChanged=n.horizontalPositionChanged.bind(Object(g.a)(n)),n.verticalPositionChanged=n.verticalPositionChanged.bind(Object(g.a)(n)),n.onLoad=n.onLoad.bind(Object(g.a)(n)),n}return Object(k.a)(t,e),Object(O.a)(t,[{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,r=this.pickerDimensions(),o=r.width/t,a=r.height/n;return a>=o?(e.width=e.right=r.width,e.height=n*o,e.top=(r.height-e.height)/2,e.bottom=e.top+e.height):(e.height=e.bottom=r.height,e.width=t*a,e.left=(r.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,r=t.bounds,o=this.props.onChange;if(n){var a=this.pickerDimensions(),i={left:e.pageX-a.left,top:e.pageY-a.top},s=Math.max(r.left,Math.min(i.left,r.right)),c=Math.max(r.top,Math.min(i.top,r.bottom)),l={x:(s-r.left)/(a.width-2*r.left),y:(c-r.top)/(a.height-2*r.top)};this.setState({percentages:l},(function(){o({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,r=this.state.percentages,o=Math.max(Math.min(parseInt(t),100),0);r[e]=o?o/100:0,this.setState({percentages:r},(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,r=t.url,a=t.value,i=t.label,c=t.help,l=t.className,d=this.state,h=d.bounds,f=d.isDragging,b=d.percentages,v=this.pickerDimensions(),y={left:a.x*(v.width-2*h.left)+h.left,top:a.y*(v.height-2*h.top)+h.top},m={left:"".concat(y.left,"px"),top:"".concat(y.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),w="inspector-focal-point-picker-control-vertical-position-".concat(n);return Object(o.createElement)(je,{label:i,id:O,help:c,className:l},Object(o.createElement)("div",{className:"components-focal-point-picker-wrapper"},Object(o.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(o.createElement)("img",{alt:"Dimensions helper",onLoad:this.onLoad,ref:this.imageRef,src:r,draggable:"false"}),Object(o.createElement)("div",{className:g,style:m},Object(o.createElement)(u,{className:"components-focal-point-picker__icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30"},Object(o.createElement)(s,{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(o.createElement)(s,{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(o.createElement)("div",{className:"components-focal-point-picker_position-display-container"},Object(o.createElement)(je,{label:Object(S.__)("Horizontal Pos."),id:k},Object(o.createElement)("input",{className:"components-text-control__input",id:k,max:100,min:0,onChange:this.horizontalPositionChanged,type:"number",value:this.fractionToPercentage(b.x)}),Object(o.createElement)("span",null,"%")),Object(o.createElement)(je,{label:Object(S.__)("Vertical Pos."),id:w},Object(o.createElement)("input",{className:"components-text-control__input",id:w,max:100,min:0,onChange:this.verticalPositionChanged,type:"number",value:this.fractionToPercentage(b.y)}),Object(o.createElement)("span",null,"%"))))}}]),t}(o.Component);xt.defaultProps={url:null,value:{x:.5,y:.5},onChange:function(){}};var Nt=Object(M.compose)([M.withInstanceId,G])(xt),At=window.FocusEvent,Ht=function(e){function t(e){var n;return Object(v.a)(this,t),(n=Object(y.a)(this,Object(m.a)(t).apply(this,arguments))).checkFocus=n.checkFocus.bind(Object(g.a)(n)),n.node=e.iframeRef||Object(o.createRef)(),n}return Object(k.a)(t,e),Object(O.a)(t,[{key:"checkFocus",value:function(){var e=this.node.current;if(document.activeElement===e){var t=new At("focus",{bubbles:!0});e.dispatchEvent(t);var n=this.props.onFocus;n&&n(t)}}},{key:"render",value:function(){return Object(o.createElement)("iframe",Object(T.a)({ref:this.node},Object(_.omit)(this.props,["iframeRef","onFocus"])))}}]),t}(o.Component),Rt=Object(M.withGlobalEvents)({blur:"checkFocus"})(Ht);var Lt=Object(M.compose)([M.withInstanceId,Object(M.withState)({currentInput:null})])((function(e){var t=e.className,n=e.currentInput,r=e.label,a=e.value,i=e.instanceId,s=e.onChange,c=e.beforeIcon,l=e.afterIcon,u=e.help,d=e.allowReset,h=e.initialPosition,f=e.min,b=e.max,v=e.setState,y=Object(P.a)(e,["className","currentInput","label","value","instanceId","onChange","beforeIcon","afterIcon","help","allowReset","initialPosition","min","max","setState"]),m="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(),s(""===t?void 0:parseFloat(t))):v({currentInput:t})},w=Object(_.isFinite)(g)?g:h||"";return Object(o.createElement)(je,{label:r,id:m,help:u,className:p()("components-range-control",t)},c&&Object(o.createElement)(J,{icon:c}),Object(o.createElement)("input",Object(T.a)({className:"components-range-control__slider",id:m,type:"range",value:w,onChange:k,"aria-describedby":u?m+"__help":void 0,min:f,max:b},y)),l&&Object(o.createElement)(J,{icon:l}),Object(o.createElement)("input",Object(T.a)({className:"components-range-control__number",type:"number",onChange:k,"aria-label":r,value:g,min:f,max:b,onBlur:O},y)),d&&Object(o.createElement)(E,{onClick:function(){O(),s()},disabled:void 0===a,isSmall:!0,isDefault:!0,className:"components-range-control__reset"},Object(S.__)("Reset")))}));var Ft=Object(M.withInstanceId)((function(e){var t=e.help,n=e.instanceId,r=e.label,a=e.multiple,i=void 0!==a&&a,s=e.onChange,c=e.options,l=void 0===c?[]:c,u=e.className,d=e.hideLabelFromVision,h=Object(P.a)(e,["help","instanceId","label","multiple","onChange","options","className","hideLabelFromVision"]),f="inspector-select-control-".concat(n);return!Object(_.isEmpty)(l)&&Object(o.createElement)(je,{label:r,hideLabelFromVision:d,id:f,help:t,className:u},Object(o.createElement)("select",Object(T.a)({id:f,className:"components-select-control__input",onChange:function(e){if(i){var t=Object(w.a)(e.target.options).filter((function(e){return e.selected})).map((function(e){return e.value}));s(t)}else s(e.target.value)},"aria-describedby":t?"".concat(f,"__help"):void 0,multiple:i},h),l.map((function(e,t){return Object(o.createElement)("option",{key:"".concat(e.label,"-").concat(e.value,"-").concat(t),value:e.value,disabled:e.disabled},e.label)}))))}));function Vt(e,t){if(t){var n=e.find((function(e){return e.size===t}));return n?n.slug:"custom"}return"normal"}var Bt=function(e){var t,n=e.fallbackFontSize,r=e.fontSizes,a=void 0===r?[]:r,i=e.disableCustomFontSizes,s=void 0!==i&&i,c=e.onChange,l=e.value,u=e.withSlider,d=void 0!==u&&u,f=Object(o.useState)(Vt(a,l)),p=Object(h.a)(f,2),b=p[0],v=p[1];return s&&!a.length?null:Object(o.createElement)("fieldset",null,Object(o.createElement)("legend",null,Object(S.__)("Font Size")),Object(o.createElement)("div",{className:"components-font-size-picker__controls"},a.length>0&&Object(o.createElement)(Ft,{className:"components-font-size-picker__select",label:"Choose preset",hideLabelFromVision:!0,value:b,onChange:function(e){v(e);var t=a.find((function(t){return t.slug===e}));t&&c(t.size)},options:(t=a,[].concat(Object(w.a)(t.map((function(e){return{value:e.slug,label:e.name}}))),[{value:"custom",label:Object(S.__)("Custom")}]))}),!d&&!s&&Object(o.createElement)("input",{className:"components-range-control__number",type:"number",onChange:function(e){var t=e.target.value;v(Vt(a,Number(t))),c(""!==t?Number(t):void 0)},"aria-label":Object(S.__)("Custom"),value:l||""}),Object(o.createElement)(E,{className:"components-color-palette__clear",type:"button",disabled:void 0===l,onClick:function(){c(void 0),v(Vt(a,void 0))},isSmall:!0,isDefault:!0},Object(S.__)("Reset"))),d&&Object(o.createElement)(Lt,{className:"components-font-size-picker__custom-input",label:Object(S.__)("Custom Size"),value:l||"",initialPosition:n,onChange:c,min:12,max:100,beforeIcon:"editor-textcolor",afterIcon:"editor-textcolor"}))},Kt=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(y.a)(this,Object(m.a)(t).apply(this,arguments))).openFileDialog=e.openFileDialog.bind(Object(g.a)(e)),e.bindInput=e.bindInput.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.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.accept,n=e.children,r=e.icon,a=void 0===r?"upload":r,i=e.multiple,s=void 0!==i&&i,c=e.onChange,l=e.render,u=Object(P.a)(e,["accept","children","icon","multiple","onChange","render"]),d=l?l({openFileDialog:this.openFileDialog}):Object(o.createElement)(te,Object(T.a)({icon:a,onClick:this.openFileDialog},u),n);return Object(o.createElement)("div",{className:"components-form-file-upload"},d,Object(o.createElement)("input",{type:"file",ref:this.bindInput,multiple:s,style:{display:"none"},accept:t,onChange:c}))}}]),t}(o.Component);var Wt=function(e){var t=e.className,n=e.checked,r=e.id,a=e.onChange,i=void 0===a?_.noop:a,c=Object(P.a)(e,["className","checked","id","onChange"]),l=p()("components-form-toggle",t,{"is-checked":n});return Object(o.createElement)("span",{className:l},Object(o.createElement)("input",Object(T.a)({className:"components-form-toggle__input",id:r,type:"checkbox",checked:n,onChange:i},c)),Object(o.createElement)("span",{className:"components-form-toggle__track"}),Object(o.createElement)("span",{className:"components-form-toggle__thumb"}),n?Object(o.createElement)(u,{className:"components-form-toggle__on",width:"2",height:"6",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2 6"},Object(o.createElement)(s,{d:"M0 0h2v6H0z"})):Object(o.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(o.createElement)(s,{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"})))},$t=n(31);var Ut=Object(M.withInstanceId)((function(e){var t=e.value,n=e.status,r=e.title,a=e.displayTransform,i=e.isBorderless,s=void 0!==i&&i,c=e.disabled,l=void 0!==c&&c,u=e.onClickRemove,d=void 0===u?_.noop:u,h=e.onMouseEnter,f=e.onMouseLeave,b=e.messages,v=e.termPosition,y=e.termsCount,m=e.instanceId,g=p()("components-form-token-field__token",{"is-error":"error"===n,"is-success":"success"===n,"is-validating":"validating"===n,"is-borderless":s,"is-disabled":l}),O=a(t),k=Object(S.sprintf)(Object(S.__)("%1$s (%2$s of %3$s)"),O,v,y);return Object(o.createElement)("span",{className:g,onMouseEnter:h,onMouseLeave:f,title:r},Object(o.createElement)("span",{className:"components-form-token-field__token-text",id:"components-form-token-field__token-text-".concat(m)},Object(o.createElement)("span",{className:"screen-reader-text"},k),Object(o.createElement)("span",{"aria-hidden":"true"},O)),Object(o.createElement)(te,{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(m)}))})),Gt=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(y.a)(this,Object(m.a)(t).apply(this,arguments))).onChange=e.onChange.bind(Object(g.a)(e)),e.bindInput=e.bindInput.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.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,r=e.instanceId,a=e.selectedSuggestionIndex,i=Object(P.a)(e,["value","isExpanded","instanceId","selectedSuggestionIndex"]),s=t.length+1;return Object(o.createElement)("input",Object(T.a)({ref:this.bindInput,id:"components-form-token-input-".concat(r),type:"text"},i,{value:t,onChange:this.onChange,size:s,className:"components-form-token-field__input",role:"combobox","aria-expanded":n,"aria-autocomplete":"list","aria-owns":n?"components-form-token-suggestions-".concat(r):void 0,"aria-activedescendant":-1!==a?"components-form-token-suggestions-".concat(r,"-").concat(a):void 0,"aria-describedby":"components-form-token-suggestions-howto-".concat(r)}))}}]),t}(o.Component),qt=n(68),Yt=n.n(qt),Zt=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(y.a)(this,Object(m.a)(t).apply(this,arguments))).handleMouseDown=e.handleMouseDown.bind(Object(g.a)(e)),e.bindList=e.bindList.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentDidUpdate",value:function(){var e=this;this.props.selectedIndex>-1&&this.props.scrollIntoView&&(this.scrollingIntoView=!0,Yt()(this.list.children[this.props.selectedIndex],this.list,{onlyScrollIfNeeded:!0}),this.props.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(o.createElement)("ul",{ref:this.bindList,className:"components-form-token-field__suggestions-list",id:"components-form-token-suggestions-".concat(this.props.instanceId),role:"listbox"},Object(_.map)(this.props.suggestions,(function(t,n){var r=e.computeSuggestionMatch(t),a=p()("components-form-token-field__suggestion",{"is-selected":n===e.props.selectedIndex});return Object(o.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},r?Object(o.createElement)("span",{"aria-label":e.props.displayTransform(t)},r.suggestionBeforeMatch,Object(o.createElement)("strong",{className:"components-form-token-field__suggestion-match"},r.suggestionMatch),r.suggestionAfterMatch):e.props.displayTransform(t))})))}}]),t}(o.Component);Zt.defaultProps={match:"",onHover:function(){},onSelect:function(){},suggestions:Object.freeze([])};var Xt=Object(M.withSafeTimeout)(Zt),Qt={incompleteTokenValue:"",inputOffsetFromEnd:0,isActive:!1,isExpanded:!1,selectedSuggestionIndex:-1,selectedSuggestionScroll:!1},Jt=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(y.a)(this,Object(m.a)(t).apply(this,arguments))).state=Qt,e.onKeyDown=e.onKeyDown.bind(Object(g.a)(e)),e.onKeyPress=e.onKeyPress.bind(Object(g.a)(e)),e.onFocus=e.onFocus.bind(Object(g.a)(e)),e.onBlur=e.onBlur.bind(Object(g.a)(e)),e.deleteTokenBeforeInput=e.deleteTokenBeforeInput.bind(Object(g.a)(e)),e.deleteTokenAfterInput=e.deleteTokenAfterInput.bind(Object(g.a)(e)),e.addCurrentToken=e.addCurrentToken.bind(Object(g.a)(e)),e.onContainerTouched=e.onContainerTouched.bind(Object(g.a)(e)),e.renderToken=e.renderToken.bind(Object(g.a)(e)),e.onTokenClickRemove=e.onTokenClickRemove.bind(Object(g.a)(e)),e.onSuggestionHovered=e.onSuggestionHovered.bind(Object(g.a)(e)),e.onSuggestionSelected=e.onSuggestionSelected.bind(Object(g.a)(e)),e.onInputChange=e.onInputChange.bind(Object(g.a)(e)),e.bindInput=e.bindInput.bind(Object(g.a)(e)),e.bindTokensAndInput=e.bindTokensAndInput.bind(Object(g.a)(e)),e.updateSuggestions=e.updateSuggestions.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentDidUpdate",value:function(e){this.state.isActive&&!this.input.hasFocus()&&this.input.focus();var t=this.props,n=t.suggestions,r=t.value,o=!I()(n,e.suggestions);(o||r!==e.value)&&this.updateSuggestions(o)}},{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(Qt)}},{key:"onKeyDown",value:function(e){var t=!1;switch(e.keyCode){case D.BACKSPACE:t=this.handleDeleteKey(this.deleteTokenBeforeInput);break;case D.ENTER:t=this.addCurrentToken();break;case D.LEFT:t=this.handleLeftArrowKey();break;case D.UP:t=this.handleUpArrowKey();break;case D.RIGHT:t=this.handleRightArrowKey();break;case D.DOWN:t=this.handleDownArrowKey();break;case D.DELETE:t=this.handleDeleteKey(this.deleteTokenAfterInput);break;case D.SPACE:this.props.tokenizeOnSpace&&(t=this.addCurrentToken());break;case D.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]+/,r=t.split(n),o=Object(_.last)(r)||"";r.length>1&&this.addNewTokens(r.slice(0,-1)),this.setState({incompleteTokenValue:o},this.updateSuggestions),this.props.onInputChange(o)}},{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 r=Object(_.clone)(this.props.value);r.splice.apply(r,[this.getIndexOfInput(),0].concat(n)),this.props.onChange(r)}}},{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($t.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,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.props.maxSuggestions,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.props.saveTransform,a=o(e),i=[],s=[];return 0===a.length?t=Object(_.difference)(t,n):(a=a.toLocaleLowerCase(),Object(_.each)(t,(function(e){var t=e.toLocaleLowerCase().indexOf(a);-1===n.indexOf(e)&&(0===t?i.push(e):t>0&&s.push(e))})),t=i.concat(s)),Object(_.take)(t,r)}},{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(_.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:"updateSuggestions",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.state.incompleteTokenValue,n=t.trim().length>1,r=this.getMatchingSuggestions(t),o=r.length>0,a={isExpanded:n&&o};if(e&&(a.selectedSuggestionIndex=-1,a.selectedSuggestionScroll=!1),this.setState(a),n){var i=this.props.debouncedSpeak,s=o?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.",r.length),r.length):Object(S.__)("No results.");i(s,"assertive")}}},{key:"renderTokensAndInput",value:function(){var e=Object(_.map)(this.props.value,this.renderToken);return e.splice(this.getIndexOfInput(),0,this.renderInput()),e}},{key:"renderToken",value:function(e,t,n){var r=this.getTokenValue(e),a=e.status?e.status:void 0,i=t+1,s=n.length;return Object(o.createElement)(Ut,{key:"token-"+r,value:r,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:s,termPosition:i})}},{key:"renderInput",value:function(){var e=this.props,t=e.autoCapitalize,n=e.autoComplete,a=e.maxLength,i=e.value,s={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||(s=Object(r.a)({},s,{onChange:this.onInputChange})),Object(o.createElement)(Gt,s)}},{key:"render",value:function(){var e=this.props,t=e.disabled,n=e.label,r=void 0===n?Object(S.__)("Add item"):n,a=e.instanceId,i=e.className,s=this.state.isExpanded,c=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(o.createElement)("div",l,Object(o.createElement)("label",{htmlFor:"components-form-token-input-".concat(a),className:"components-form-token-field__label"},r),Object(o.createElement)("div",{ref:this.bindTokensAndInput,className:c,tabIndex:"-1",onMouseDown:this.onContainerTouched,onTouchStart:this.onContainerTouched},this.renderTokensAndInput(),s&&Object(o.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(o.createElement)("p",{id:"components-form-token-suggestions-howto-".concat(a),className:"components-form-token-field__help"},this.props.tokenizeOnSpace?Object(S.__)("Separate with commas, spaces, or the Enter key."):Object(S.__)("Separate with commas or the Enter key.")))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.disabled&&t.isActive?{isActive:!1,incompleteTokenValue:""}:null}}]),t}(o.Component);Jt.defaultProps={suggestions:Object.freeze([]),maxSuggestions:100,value:Object.freeze([]),displayTransform:_.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 en=ke(Object(M.withInstanceId)(Jt));var tn=Object(M.withInstanceId)((function(e){var t=e.children,n=e.className,r=void 0===n?"":n,a=e.instanceId,i=e.label;if(!o.Children.count(t))return null;var s="components-menu-group-label-".concat(a),c=p()(r,"components-menu-group");return Object(o.createElement)("div",{className:c},i&&Object(o.createElement)("div",{className:"components-menu-group__label",id:s,"aria-hidden":"true"},i),Object(o.createElement)("div",{role:"group","aria-labelledby":i?s:null},t))}));var nn=function(e){var t=e.children,n=e.info,r=e.className,a=e.icon,i=e.shortcut,s=e.isSelected,c=e.role,l=void 0===c?"menuitem":c,u=Object(P.a)(e,["children","info","className","icon","shortcut","isSelected","role"]);return r=p()("components-menu-item__button",r,{"has-icon":a}),n&&(t=Object(o.createElement)("span",{className:"components-menu-item__info-wrapper"},t,Object(o.createElement)("span",{className:"components-menu-item__info"},n))),a&&!Object(_.isString)(a)&&(a=Object(o.cloneElement)(a,{className:"components-menu-items__item-icon",height:20,width:20})),Object(o.createElement)(te,Object(T.a)({icon:a,"aria-checked":"menuitemcheckbox"===l||"menuitemradio"===l?s:void 0,role:l,className:r},u),t,Object(o.createElement)(Z,{className:"components-menu-item__shortcut",shortcut:i}))};function rn(e){var t=e.choices,n=void 0===t?[]:t,r=e.onSelect,a=e.value;return n.map((function(e){var t=a===e.value;return Object(o.createElement)(nn,{key:e.value,role:"menuitemradio",icon:t&&"yes",isSelected:t,shortcut:e.shortcut,onClick:function(){t||r(e.value)}},e.label)}))}var on=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(y.a)(this,Object(m.a)(t).apply(this,arguments))).containerRef=Object(o.createRef)(),e.handleKeyDown=e.handleKeyDown.bind(Object(g.a)(e)),e.handleFocusOutside=e.handleFocusOutside.bind(Object(g.a)(e)),e.focusFirstTabbable=e.focusFirstTabbable.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.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:"handleFocusOutside",value:function(e){this.props.shouldCloseOnClickOutside&&this.onRequestClose(e)}},{key:"handleKeyDown",value:function(e){e.keyCode===D.ESCAPE&&this.handleEscapeKeyDown(e)}},{key:"handleEscapeKeyDown",value:function(e){this.props.shouldCloseOnEsc&&(e.stopPropagation(),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.overlayClassName,n=e.contentLabel,r=e.aria,a=r.describedby,i=r.labelledby,s=e.children,c=e.className,l=e.role,u=e.style;return Object(o.createElement)(re,{className:p()("components-modal__screen-overlay",t),onKeyDown:this.handleKeyDown},Object(o.createElement)("div",{className:p()("components-modal__frame",c),style:u,ref:this.containerRef,role:l,"aria-label":n,"aria-labelledby":n?null:i,"aria-describedby":a,tabIndex:"-1"},s))}}]),t}(o.Component),an=Object(M.compose)([W,$,G])(on),sn=function(e){var t=e.icon,n=e.title,r=e.onClose,a=e.closeLabel,i=e.headingId,s=e.isDismissable,c=a||Object(S.__)("Close dialog");return Object(o.createElement)("div",{className:"components-modal__header"},Object(o.createElement)("div",{className:"components-modal__header-heading-container"},t&&Object(o.createElement)("span",{className:"components-modal__icon-container","aria-hidden":!0},t),n&&Object(o.createElement)("h1",{id:i,className:"components-modal__header-heading"},n)),s&&Object(o.createElement)(te,{onClick:r,icon:"no-alt",label:c}))},cn=new Set(["alert","status","log","marquee","timer"]),ln=[],un=!1;function dn(e){if(!un){var t=document.body.children;Object(_.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")||cn.has(t))}(t)&&(t.setAttribute("aria-hidden","true"),ln.push(t))})),un=!0}}var hn,fn=0,pn=function(e){function t(e){var n;return Object(v.a)(this,t),(n=Object(y.a)(this,Object(m.a)(t).call(this,e))).prepareDOM(),n}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentDidMount",value:function(){1===++fn&&this.openFirstModal()}},{key:"componentWillUnmount",value:function(){0===--fn&&this.closeLastModal(),this.cleanDOM()}},{key:"prepareDOM",value:function(){hn||(hn=document.createElement("div"),document.body.appendChild(hn)),this.node=document.createElement("div"),hn.appendChild(this.node)}},{key:"cleanDOM",value:function(){hn.removeChild(this.node)}},{key:"openFirstModal",value:function(){dn(hn),document.body.classList.add(this.props.bodyOpenClassName)}},{key:"closeLastModal",value:function(){document.body.classList.remove(this.props.bodyOpenClassName),un&&(Object(_.forEach)(ln,(function(e){e.removeAttribute("aria-hidden")})),ln=[],un=!1)}},{key:"render",value:function(){var e=this.props,t=e.onRequestClose,n=e.title,r=e.icon,a=e.closeButtonLabel,i=e.children,s=e.aria,c=e.instanceId,l=e.isDismissable,u=Object(P.a)(e,["onRequestClose","title","icon","closeButtonLabel","children","aria","instanceId","isDismissable"]),d=s.labelledby||"components-modal-header-".concat(c);return Object(o.createPortal)(Object(o.createElement)(an,Object(T.a)({onRequestClose:t,aria:{labelledby:n?d:null,describedby:s.describedby}},u),Object(o.createElement)("div",{className:"components-modal__content",tabIndex:"0"},Object(o.createElement)(sn,{closeLabel:a,headingId:d,icon:r,isDismissable:l,onClose:t,title:n}),i)),this.node)}}]),t}(o.Component);pn.defaultProps={bodyOpenClassName:"modal-open",role:"dialog",title:null,focusOnMount:!0,shouldCloseOnEsc:!0,shouldCloseOnClickOutside:!0,isDismissable:!0,aria:{labelledby:null,describedby:null}};var bn=Object(M.withInstanceId)(pn);var vn=function(e){var t=e.className,n=e.status,r=e.children,a=e.onRemove,i=void 0===a?_.noop:a,s=e.isDismissible,c=void 0===s||s,l=e.actions,u=void 0===l?[]:l,d=e.__unstableHTML,h=p()(t,"components-notice","is-"+n,{"is-dismissible":c});return d&&(r=Object(o.createElement)(o.RawHTML,null,r)),Object(o.createElement)("div",{className:h},Object(o.createElement)("div",{className:"components-notice__content"},r,u.map((function(e,t){var n=e.className,r=e.label,a=e.noDefaultClasses,i=void 0!==a&&a,s=e.onClick,c=e.url;return Object(o.createElement)(E,{key:t,href:c,isDefault:!i&&!c,isLink:!i&&!!c,onClick:c?void 0:s,className:p()("components-notice__action",n)},r)}))),c&&Object(o.createElement)(te,{className:"components-notice__dismiss",icon:"no-alt",label:Object(S.__)("Dismiss this notice"),onClick:i,tooltip:!1}))};var yn=function(e){var t=e.notices,n=e.onRemove,r=void 0===n?_.noop:n,a=e.className,i=e.children;return a=p()("components-notice-list",a),Object(o.createElement)("div",{className:a},i,Object(w.a)(t).reverse().map((function(e){return Object(o.createElement)(vn,Object(T.a)({},Object(_.omit)(e,["content"]),{key:e.id,onRemove:(t=e.id,function(){return r(t)})}),e.content);var t})))};var mn=function(e){var t=e.label,n=e.children;return Object(o.createElement)("div",{className:"components-panel__header"},t&&Object(o.createElement)("h2",null,t),n)};var gn=function(e){var t=e.header,n=e.className,r=e.children,a=p()(n,"components-panel");return Object(o.createElement)("div",{className:a},t&&Object(o.createElement)(mn,{label:t}),r)},On=function(e){function t(e){var n;return Object(v.a)(this,t),(n=Object(y.a)(this,Object(m.a)(t).apply(this,arguments))).state={opened:void 0===e.initialOpen||e.initialOpen},n.toggle=n.toggle.bind(Object(g.a)(n)),n}return Object(k.a)(t,e),Object(O.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,r=e.opened,a=e.className,c=e.icon,l=e.forwardedRef,d=void 0===r?this.state.opened:r,h=p()("components-panel__body",a,{"is-opened":d});return Object(o.createElement)("div",{className:h,ref:l},!!t&&Object(o.createElement)("h2",{className:"components-panel__body-title"},Object(o.createElement)(E,{className:"components-panel__body-toggle",onClick:this.toggle,"aria-expanded":d},Object(o.createElement)("span",{"aria-hidden":"true"},d?Object(o.createElement)(u,{className:"components-panel__arrow",width:"24px",height:"24px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(i,null,Object(o.createElement)(s,{fill:"none",d:"M0,0h24v24H0V0z"})),Object(o.createElement)(i,null,Object(o.createElement)(s,{d:"M12,8l-6,6l1.41,1.41L12,10.83l4.59,4.58L18,14L12,8z"}))):Object(o.createElement)(u,{className:"components-panel__arrow",width:"24px",height:"24px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(i,null,Object(o.createElement)(s,{fill:"none",d:"M0,0h24v24H0V0z"})),Object(o.createElement)(i,null,Object(o.createElement)(s,{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z"})))),t,c&&Object(o.createElement)(ee,{icon:c,className:"components-panel__icon",size:20}))),d&&n)}}]),t}(o.Component),kn=function(e,t){return Object(o.createElement)(On,Object(T.a)({},e,{forwardedRef:t}))};kn.displayName="PanelBody";var wn=Object(o.forwardRef)(kn);var _n=function(e){var t=e.className,n=e.children,r=p()("components-panel__row",t);return Object(o.createElement)("div",{className:r},n)};var Dn=function(e){var t=e.icon,n=e.children,r=e.label,a=e.instructions,i=e.className,s=e.notices,c=e.preview,l=e.isColumnLayout,u=Object(P.a)(e,["icon","children","label","instructions","className","notices","preview","isColumnLayout"]),d=p()("components-placeholder",i),h=p()("components-placeholder__fieldset",{"is-column-layout":l});return Object(o.createElement)("div",Object(T.a)({},u,{className:d}),s,c&&Object(o.createElement)("div",{className:"components-placeholder__preview"},c),Object(o.createElement)("div",{className:"components-placeholder__label"},Object(_.isString)(t)?Object(o.createElement)(J,{icon:t}):t,r),!!a&&Object(o.createElement)("div",{className:"components-placeholder__instructions"},a),Object(o.createElement)("div",{className:h},n))};function Sn(e){var t=e.label,n=e.noOptionLabel,r=e.onChange,a=e.selectedId,i=e.tree,s=Object(P.a)(e,["label","noOptionLabel","onChange","selectedId","tree"]),c=Object(_.compact)([n&&{value:"",label:n}].concat(Object(w.a)(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object(_.flatMap)(t,(function(t){return[{value:t.id,label:Object(_.repeat)(" ",3*n)+Object(_.unescape)(t.name)}].concat(Object(w.a)(e(t.children||[],n+1)))}))}(i))));return Object(o.createElement)(Ft,Object(T.a)({label:t,options:c,onChange:r},{value:a},s))}function Mn(e){var t,n,a=e.label,i=e.noOptionLabel,s=e.categoriesList,c=e.selectedCategoryId,l=e.onChange,u=(t=s.map((function(e){return Object(r.a)({children:[],parent:null},e)})),(n=Object(_.groupBy)(t,"parent")).null&&n.null.length?t:function e(t){return t.map((function(t){var o=n[t.id];return Object(r.a)({},t,{children:o&&o.length?e(o):[]})}))}(n[0]||[]));return Object(o.createElement)(Sn,Object(T.a)({label:a,noOptionLabel:i,onChange:l},{tree:u,selectedId:c}))}var jn=1,Cn=100;function Pn(e){var t=e.categoriesList,n=e.selectedCategoryId,r=e.numberOfItems,a=e.order,i=e.orderBy,s=e.maxItems,c=void 0===s?Cn:s,l=e.minItems,u=void 0===l?jn:l,d=e.onCategoryChange,f=e.onNumberOfItemsChange,p=e.onOrderChange,b=e.onOrderByChange;return[p&&b&&Object(o.createElement)(Ft,{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),r=n[0],o=n[1];o!==a&&p(o),r!==i&&b(r)}}),d&&Object(o.createElement)(Mn,{key:"query-controls-category-select",categoriesList:t,label:Object(S.__)("Category"),noOptionLabel:Object(S.__)("All"),selectedCategoryId:n,onChange:d}),f&&Object(o.createElement)(Lt,{key:"query-controls-range-control",label:Object(S.__)("Number of items"),value:r,onChange:f,min:u,max:c,required:!0})]}var En=Object(M.withInstanceId)((function(e){var t=e.label,n=e.className,r=e.selected,a=e.help,i=e.instanceId,s=e.onChange,c=e.options,l=void 0===c?[]:c,u="inspector-radio-control-".concat(i),d=function(e){return s(e.target.value)};return!Object(_.isEmpty)(l)&&Object(o.createElement)(je,{label:t,id:u,help:a,className:p()(n,"components-radio-control")},l.map((function(e,t){return Object(o.createElement)("div",{key:"".concat(u,"-").concat(t),className:"components-radio-control__option"},Object(o.createElement)("input",{id:"".concat(u,"-").concat(t),className:"components-radio-control__input",type:"radio",name:u,value:e.value,onChange:d,checked:e.value===r,"aria-describedby":a?"".concat(u,"__help"):void 0}),Object(o.createElement)("label",{htmlFor:"".concat(u,"-").concat(t)},e.label))})))})),Tn=n(227);var zn=function(e){var t=e.className,n=Object(P.a)(e,["className"]),r={width:null,height:null,top:null,right:null,bottom:null,left:null},a="components-resizable-box__handle",i="components-resizable-box__side-handle",s="components-resizable-box__corner-handle";return Object(o.createElement)(Tn.Resizable,Object(T.a)({className:p()("components-resizable-box__container",t),handleClasses:{top:p()(a,i,"components-resizable-box__handle-top"),right:p()(a,i,"components-resizable-box__handle-right"),bottom:p()(a,i,"components-resizable-box__handle-bottom"),left:p()(a,i,"components-resizable-box__handle-left"),topLeft:p()(a,s,"components-resizable-box__handle-top","components-resizable-box__handle-left"),topRight:p()(a,s,"components-resizable-box__handle-top","components-resizable-box__handle-right"),bottomRight:p()(a,s,"components-resizable-box__handle-bottom","components-resizable-box__handle-right"),bottomLeft:p()(a,s,"components-resizable-box__handle-bottom","components-resizable-box__handle-left")},handleStyles:{top:r,right:r,bottom:r,left:r,topLeft:r,topRight:r,bottomRight:r,bottomLeft:r}},n))};var In=function(e){var t=e.naturalWidth,n=e.naturalHeight,r=e.children,a=e.isInline,i=void 0!==a&&a;if(1!==o.Children.count(r))return null;var s={paddingBottom:n/t*100+"%"},c=i?"span":"div";return Object(o.createElement)(c,{className:"components-responsive-wrapper"},Object(o.createElement)(c,{style:s}),Object(o.cloneElement)(r,{className:p()("components-responsive-wrapper__content",r.props.className)}))},xn=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(y.a)(this,Object(m.a)(t).apply(this,arguments))).trySandbox=e.trySandbox.bind(Object(g.a)(e)),e.checkMessageForResize=e.checkMessageForResize.bind(Object(g.a)(e)),e.iframe=Object(o.createRef)(),e.state={width:0,height:0},e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentDidMount",value:function(){this.trySandbox()}},{key:"componentDidUpdate",value:function(){this.trySandbox()}},{key:"isFrameAccessible",value:function(){try{return!!this.iframe.current.contentDocument.body}catch(e){return!1}}},{key:"checkMessageForResize",value:function(e){var t=this.iframe.current,n=e.data||{};if("string"==typeof n)try{n=JSON.parse(n)}catch(e){}if(t&&t.contentWindow===e.source){var r=n,o=r.action,a=r.width,i=r.height,s=this.state,c=s.width,l=s.height;"resize"!==o||c===a&&l===i||this.setState({width:a,height:i})}}},{key:"trySandbox",value:function(){if(this.isFrameAccessible()&&null===this.iframe.current.contentDocument.body.getAttribute("data-resizable-iframe-connected")){var e=Object(o.createElement)("html",{lang:document.documentElement.lang,className:this.props.type},Object(o.createElement)("head",null,Object(o.createElement)("title",null,this.props.title),Object(o.createElement)("style",{dangerouslySetInnerHTML:{__html:"\n\t\t\tbody {\n\t\t\t\tmargin: 0;\n\t\t\t}\n\t\t\thtml,\n\t\t\tbody,\n\t\t\tbody > 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(o.createElement)("style",{key:t,dangerouslySetInnerHTML:{__html:e}})}))),Object(o.createElement)("body",{"data-resizable-iframe-connected":"data-resizable-iframe-connected",className:this.props.type},Object(o.createElement)("div",{dangerouslySetInnerHTML:{__html:this.props.html}}),Object(o.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(o.createElement)("script",{key:e,src:e})})))),t=this.iframe.current.contentWindow.document;t.open(),t.write(""+Object(o.renderToString)(e)),t.close()}}},{key:"render",value:function(){var e=this.props,t=e.title,n=e.onFocus;return Object(o.createElement)(Rt,{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}(o.Component),Nn=xn=Object(M.withGlobalEvents)({message:"checkMessageForResize"})(xn),An=1e4;var Hn=Object(o.forwardRef)((function(e,t){var n=e.className,r=e.children,a=e.actions,i=void 0===a?[]:a,s=e.onRemove,c=void 0===s?_.noop:s;Object(o.useEffect)((function(){var e=setTimeout((function(){c()}),An);return function(){return clearTimeout(e)}}),[]);var l=p()(n,"components-snackbar");return i&&i.length>1&&(console.warn("Snackbar can only have 1 action, use Notice if your message require many messages"),i=[i[0]]),Object(o.createElement)("div",{ref:t,className:l,onClick:c,tabIndex:"0",role:"button",onKeyPress:c,label:Object(S.__)("Dismiss this notice")},Object(o.createElement)("div",{className:"components-snackbar__content"},r,i.map((function(e,t){var n=e.label,r=e.onClick,a=e.url;return Object(o.createElement)(E,{key:t,href:a,isTertiary:!0,onClick:function(e){e.stopPropagation(),r&&r(e)},className:"components-snackbar__action"},n)}))))})),Rn=n(20),Ln=n.n(Rn),Fn=n(43),Vn=n(64);var Bn=function(e){var t=e.notices,n=e.className,r=e.children,a=e.onRemove,i=void 0===a?_.noop:a,s=Object(M.useReducedMotion)(),c=Object(o.useState)((function(){return new WeakMap})),l=Object(h.a)(c,1)[0],u=Object(Vn.useTransition)(t,(function(e){return e.id}),{from:{opacity:0,height:0},enter:function(e){return function(){var t=Object(Fn.a)(Ln.a.mark((function t(n){return Ln.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n({opacity:1,height:l.get(e).offsetHeight});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},leave:function(){return function(){var e=Object(Fn.a)(Ln.a.mark((function e(t){return Ln.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t({opacity:0});case 2:return e.next=4,t({height:0});case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},immediate:s});n=p()("components-snackbar-list",n);var d=function(e){return function(){return i(e.id)}};return Object(o.createElement)("div",{className:n},r,u.map((function(e){var t=e.item,n=e.key,r=e.props;return Object(o.createElement)(Vn.animated.div,{key:n,style:r},Object(o.createElement)("div",{className:"components-snackbar-list__notice-container",ref:function(e){return e&&l.set(t,e)}},Object(o.createElement)(Hn,Object(T.a)({},Object(_.omit)(t,["content"]),{onRemove:d(t)}),t.content)))})))};function Kn(){return Object(o.createElement)("span",{className:"components-spinner"})}var Wn=function(e){var t=e.tabId,n=e.onClick,r=e.children,a=e.selected,i=Object(P.a)(e,["tabId","onClick","children","selected"]);return Object(o.createElement)(E,Object(T.a)({role:"tab",tabIndex:a?null:-1,"aria-selected":a,id:t,onClick:n},i),r)},$n=function(e){function t(){var e;Object(v.a)(this,t);var n=(e=Object(y.a)(this,Object(m.a)(t).apply(this,arguments))).props,r=n.tabs,o=n.initialTabName;return e.handleClick=e.handleClick.bind(Object(g.a)(e)),e.onNavigate=e.onNavigate.bind(Object(g.a)(e)),e.state={selected:o||(r.length>0?r[0].name:null)},e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"handleClick",value:function(e){var t=this.props.onSelect,n=void 0===t?_.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,r=n.activeClass,a=void 0===r?"is-active":r,i=n.className,s=n.instanceId,c=n.orientation,l=void 0===c?"horizontal":c,u=n.tabs,h=Object(_.find)(u,{name:t}),f=s+"-"+h.name;return Object(o.createElement)("div",{className:i},Object(o.createElement)(Pt,{role:"tablist",orientation:l,onNavigate:this.onNavigate,className:"components-tab-panel__tabs"},u.map((function(n){return Object(o.createElement)(Wn,{className:p()(n.className,Object(d.a)({},a,n.name===t)),tabId:s+"-"+n.name,"aria-controls":s+"-"+n.name+"-view",selected:n.name===t,key:n.name,onClick:Object(_.partial)(e.handleClick,n.name)},n.title)}))),h&&Object(o.createElement)("div",{"aria-labelledby":f,role:"tabpanel",id:f+"-view",className:"components-tab-panel__tab-content",tabIndex:"0"},this.props.children(h)))}}]),t}(o.Component),Un=Object(M.withInstanceId)($n);var Gn=Object(M.withInstanceId)((function(e){var t=e.label,n=e.hideLabelFromVision,r=e.value,a=e.help,i=e.instanceId,s=e.onChange,c=e.rows,l=void 0===c?4:c,u=e.className,d=Object(P.a)(e,["label","hideLabelFromVision","value","help","instanceId","onChange","rows","className"]),h="inspector-textarea-control-".concat(i);return Object(o.createElement)(je,{label:t,hideLabelFromVision:n,id:h,help:a,className:u},Object(o.createElement)("textarea",Object(T.a)({className:"components-textarea-control__input",id:h,rows:l,onChange:function(e){return s(e.target.value)},"aria-describedby":a?h+"__help":void 0,value:r},d)))}));var qn=function(e){return Object(o.createElement)("div",{className:"components-tip"},Object(o.createElement)(u,{width:"24",height:"24",viewBox:"0 0 24 24"},Object(o.createElement)(s,{d:"M20.45 4.91L19.04 3.5l-1.79 1.8 1.41 1.41 1.79-1.8zM13 4h-2V1h2v3zm10 9h-3v-2h3v2zm-12 6.95v-3.96l-1-.58c-1.24-.72-2-2.04-2-3.46 0-2.21 1.79-4 4-4s4 1.79 4 4c0 1.42-.77 2.74-2 3.46l-1 .58v3.96h-2zm-2 2h6v-4.81c1.79-1.04 3-2.97 3-5.19 0-3.31-2.69-6-6-6s-6 2.69-6 6c0 2.22 1.21 4.15 3 5.19v4.81zM4 13H1v-2h3v2zm2.76-7.71l-1.79-1.8L3.56 4.9l1.8 1.79 1.4-1.4z"})),Object(o.createElement)("p",null,e.children))},Yn=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(y.a)(this,Object(m.a)(t).apply(this,arguments))).onChange=e.onChange.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.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,r=n.label,a=n.checked,i=n.help,s=n.instanceId,c=n.className,l="inspector-toggle-control-".concat(s);return i&&(e=l+"__help",t=Object(_.isFunction)(i)?i(a):i),Object(o.createElement)(je,{id:l,help:t,className:p()("components-toggle-control",c)},Object(o.createElement)(Wt,{id:l,checked:a,onChange:this.onChange,"aria-describedby":e}),Object(o.createElement)("label",{htmlFor:l,className:"components-toggle-control__label"},r))}}]),t}(o.Component),Zn=Object(M.withInstanceId)(Yn),Xn=function(e){return Object(o.createElement)("div",{className:e.className},e.children)};var Qn=function(e){var t=e.containerClassName,n=e.icon,r=e.title,a=e.shortcut,i=e.subscript,s=e.onClick,c=e.className,l=e.isActive,u=e.isDisabled,d=e.extraProps,h=e.children;return Object(o.createElement)(Xn,{className:t},Object(o.createElement)(te,Object(T.a)({icon:n,label:r,shortcut:a,"data-subscript":i,onClick:function(e){e.stopPropagation(),s()},className:p()("components-toolbar__control",c,{"is-active":l}),"aria-pressed":l,disabled:u},d)),h)},Jn=function(e){return Object(o.createElement)("div",{className:e.className},e.children)};var er=function(e){var t=e.controls,n=void 0===t?[]:t,r=e.children,a=e.className,i=e.isCollapsed,s=e.icon,c=e.label,l=Object(P.a)(e,["controls","children","className","isCollapsed","icon","label"]);if(!(n&&n.length||r))return null;var u=n;return Array.isArray(u[0])||(u=[u]),i?Object(o.createElement)(zt,{hasArrowIndicator:!0,icon:s,label:c,controls:u,className:p()("components-toolbar",a)}):Object(o.createElement)(Jn,Object(T.a)({className:p()("components-toolbar",a)},l),Object(_.flatMap)(u,(function(e,t){return e.map((function(e,n){return Object(o.createElement)(Qn,Object(T.a)({key:[t,n].join(),containerClassName:t>0&&0===n?"has-left-divider":null},e))}))})),r)},tr=Object(M.createHigherOrderComponent)((function(e){return function(t){function n(){var e;return Object(v.a)(this,n),(e=Object(y.a)(this,Object(m.a)(n).apply(this,arguments))).bindContainer=e.bindContainer.bind(Object(g.a)(e)),e.focusNextRegion=e.focusRegion.bind(Object(g.a)(e),1),e.focusPreviousRegion=e.focusRegion.bind(Object(g.a)(e),-1),e.onClick=e.onClick.bind(Object(g.a)(e)),e.state={isFocusingRegions:!1},e}return Object(k.a)(n,t),Object(O.a)(n,[{key:"bindContainer",value:function(e){this.container=e}},{key:"focusRegion",value:function(e){var t=Object(w.a)(this.container.querySelectorAll('[role="region"]'));if(t.length){var n=t[0],r=t.indexOf(document.activeElement);if(-1!==r){var o=r+e;n=t[o=(o=-1===o?t.length-1:o)===t.length?0:o]}n.focus(),this.setState({isFocusingRegions:!0})}}},{key:"onClick",value:function(){this.setState({isFocusingRegions:!1})}},{key:"render",value:function(){var t,n=p()("components-navigate-regions",{"is-focusing-regions":this.state.isFocusingRegions});return Object(o.createElement)("div",{ref:this.bindContainer,className:n,onClick:this.onClick},Object(o.createElement)(Be,{bindGlobal:!0,shortcuts:(t={"ctrl+`":this.focusNextRegion},Object(d.a)(t,D.rawShortcut.access("n"),this.focusNextRegion),Object(d.a)(t,"ctrl+shift+`",this.focusPreviousRegion),Object(d.a)(t,D.rawShortcut.access("p"),this.focusPreviousRegion),t)}),Object(o.createElement)(e,this.props))}}]),n}(o.Component)}),"navigateRegions"),nr=function(e){return Object(M.createHigherOrderComponent)((function(t){return function(n){function r(){var e;return Object(v.a)(this,r),(e=Object(y.a)(this,Object(m.a)(r).apply(this,arguments))).nodeRef=e.props.node,e.state={fallbackStyles:void 0,grabStylesCompleted:!1},e.bindRef=e.bindRef.bind(Object(g.a)(e)),e}return Object(k.a)(r,n),Object(O.a)(r,[{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,r=t.fallbackStyles;if(this.nodeRef&&!n){var o=e(this.nodeRef,this.props);Object(_.isEqual)(o,r)||this.setState({fallbackStyles:o,grabStylesCompleted:!!Object(_.every)(o)})}}},{key:"render",value:function(){var e=Object(o.createElement)(t,Object(T.a)({},this.props,this.state.fallbackStyles));return this.props.node?e:Object(o.createElement)("div",{ref:this.bindRef}," ",e," ")}}]),r}(o.Component)}),"withFallbackStyles")},rr=n(27),or=16;function ar(e){return Object(M.createHigherOrderComponent)((function(t){var n,r="core/with-filters/"+e;var a=function(a){function i(){var r;return Object(v.a)(this,i),r=Object(y.a)(this,Object(m.a)(i).apply(this,arguments)),void 0===n&&(n=Object(rr.applyFilters)(e,t)),r}return Object(k.a)(i,a),Object(O.a)(i,[{key:"componentDidMount",value:function(){i.instances.push(this),1===i.instances.length&&(Object(rr.addAction)("hookRemoved",r,s),Object(rr.addAction)("hookAdded",r,s))}},{key:"componentWillUnmount",value:function(){i.instances=Object(_.without)(i.instances,this),0===i.instances.length&&(Object(rr.removeAction)("hookRemoved",r),Object(rr.removeAction)("hookAdded",r))}},{key:"render",value:function(){return Object(o.createElement)(n,this.props)}}]),i}(o.Component);a.instances=[];var i=Object(_.debounce)((function(){n=Object(rr.applyFilters)(e,t),a.instances.forEach((function(e){e.forceUpdate()}))}),or);function s(t){t===e&&i()}return a}),"withFilters")}var ir=n(67),sr=n.n(ir),cr=Object(M.createHigherOrderComponent)((function(e){return function(t){function n(){var e;return Object(v.a)(this,n),(e=Object(y.a)(this,Object(m.a)(n).apply(this,arguments))).createNotice=e.createNotice.bind(Object(g.a)(e)),e.createErrorNotice=e.createErrorNotice.bind(Object(g.a)(e)),e.removeNotice=e.removeNotice.bind(Object(g.a)(e)),e.removeAllNotices=e.removeAllNotices.bind(Object(g.a)(e)),e.state={noticeList:[]},e.noticeOperations={createNotice:e.createNotice,createErrorNotice:e.createErrorNotice,removeAllNotices:e.removeAllNotices,removeNotice:e.removeNotice},e}return Object(k.a)(n,t),Object(O.a)(n,[{key:"createNotice",value:function(e){var t=e.id?e:Object(r.a)({},e,{id:sr()()});this.setState((function(e){return{noticeList:[].concat(Object(w.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(o.createElement)(e,Object(T.a)({noticeList:this.state.noticeList,noticeOperations:this.noticeOperations,noticeUI:this.state.noticeList.length>0&&Object(o.createElement)(yn,{className:"components-with-notices-ui",notices:this.state.noticeList,onRemove:this.removeNotice})},this.props))}}]),n}(o.Component)}));n.d(t,"Circle",(function(){return a})),n.d(t,"G",(function(){return i})),n.d(t,"Path",(function(){return s})),n.d(t,"Polygon",(function(){return c})),n.d(t,"Rect",(function(){return l})),n.d(t,"SVG",(function(){return u})),n.d(t,"HorizontalRule",(function(){return"hr"})),n.d(t,"BlockQuotation",(function(){return"blockquote"})),n.d(t,"Animate",(function(){return b})),n.d(t,"Autocomplete",(function(){return Se})),n.d(t,"BaseControl",(function(){return je})),n.d(t,"Button",(function(){return E})),n.d(t,"ButtonGroup",(function(){return Ce})),n.d(t,"CheckboxControl",(function(){return Pe})),n.d(t,"ClipboardButton",(function(){return ze})),n.d(t,"ColorIndicator",(function(){return Ie})),n.d(t,"ColorPalette",(function(){return rt})),n.d(t,"ColorPicker",(function(){return nt})),n.d(t,"Dashicon",(function(){return J})),n.d(t,"DateTimePicker",(function(){return lt})),n.d(t,"DatePicker",(function(){return st})),n.d(t,"TimePicker",(function(){return ct})),n.d(t,"Disabled",(function(){return bt})),n.d(t,"Draggable",(function(){return yt})),n.d(t,"DropZone",(function(){return St})),n.d(t,"DropZoneProvider",(function(){return _t})),n.d(t,"Dropdown",(function(){return xe})),n.d(t,"DropdownMenu",(function(){return zt})),n.d(t,"ExternalLink",(function(){return It})),n.d(t,"FocalPointPicker",(function(){return Nt})),n.d(t,"FocusableIframe",(function(){return Rt})),n.d(t,"FontSizePicker",(function(){return Bt})),n.d(t,"FormFileUpload",(function(){return Kt})),n.d(t,"FormToggle",(function(){return Wt})),n.d(t,"FormTokenField",(function(){return en})),n.d(t,"Icon",(function(){return ee})),n.d(t,"IconButton",(function(){return te})),n.d(t,"KeyboardShortcuts",(function(){return Be})),n.d(t,"MenuGroup",(function(){return tn})),n.d(t,"MenuItem",(function(){return nn})),n.d(t,"MenuItemsChoice",(function(){return rn})),n.d(t,"Modal",(function(){return bn})),n.d(t,"ScrollLock",(function(){return ne})),n.d(t,"NavigableMenu",(function(){return Pt})),n.d(t,"TabbableContainer",(function(){return Et})),n.d(t,"Notice",(function(){return vn})),n.d(t,"NoticeList",(function(){return yn})),n.d(t,"Panel",(function(){return gn})),n.d(t,"PanelBody",(function(){return wn})),n.d(t,"PanelHeader",(function(){return mn})),n.d(t,"PanelRow",(function(){return _n})),n.d(t,"Placeholder",(function(){return Dn})),n.d(t,"Popover",(function(){return ge})),n.d(t,"QueryControls",(function(){return Pn})),n.d(t,"RadioControl",(function(){return En})),n.d(t,"RangeControl",(function(){return Lt})),n.d(t,"ResizableBox",(function(){return zn})),n.d(t,"ResponsiveWrapper",(function(){return In})),n.d(t,"SandBox",(function(){return Nn})),n.d(t,"SelectControl",(function(){return Ft})),n.d(t,"Snackbar",(function(){return Hn})),n.d(t,"SnackbarList",(function(){return Bn})),n.d(t,"Spinner",(function(){return Kn})),n.d(t,"TabPanel",(function(){return Un})),n.d(t,"TextControl",(function(){return Ge})),n.d(t,"TextareaControl",(function(){return Gn})),n.d(t,"Tip",(function(){return qn})),n.d(t,"ToggleControl",(function(){return Zn})),n.d(t,"Toolbar",(function(){return er})),n.d(t,"ToolbarButton",(function(){return Qn})),n.d(t,"Tooltip",(function(){return Q})),n.d(t,"TreeSelect",(function(){return Sn})),n.d(t,"IsolatedEventContainer",(function(){return re})),n.d(t,"createSlotFill",(function(){return be})),n.d(t,"Slot",(function(){return de})),n.d(t,"Fill",(function(){return pe})),n.d(t,"SlotFillProvider",(function(){return le})),n.d(t,"navigateRegions",(function(){return tr})),n.d(t,"withConstrainedTabbing",(function(){return $})),n.d(t,"withFallbackStyles",(function(){return nr})),n.d(t,"withFilters",(function(){return ar})),n.d(t,"withFocusOutside",(function(){return G})),n.d(t,"withFocusReturn",(function(){return W})),n.d(t,"FocusReturnProvider",(function(){return K})),n.d(t,"withNotices",(function(){return cr})),n.d(t,"withSpokenMessages",(function(){return ke}))}]); \ No newline at end of file + */Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,a=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,h=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,b=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116;function y(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case d:case h:case i:case c:case s:case p:return e;default:switch(e=e&&e.$$typeof){case u:case f:case l:return e;default:return t}}case v:case b:case a:return t}}}function m(e){return y(e)===h}t.typeOf=y,t.AsyncMode=d,t.ConcurrentMode=h,t.ContextConsumer=u,t.ContextProvider=l,t.Element=o,t.ForwardRef=f,t.Fragment=i,t.Lazy=v,t.Memo=b,t.Portal=a,t.Profiler=c,t.StrictMode=s,t.Suspense=p,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===h||e===c||e===s||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===b||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f)},t.isAsyncMode=function(e){return m(e)||y(e)===d},t.isConcurrentMode=m,t.isContextConsumer=function(e){return y(e)===u},t.isContextProvider=function(e){return y(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return y(e)===f},t.isFragment=function(e){return y(e)===i},t.isLazy=function(e){return y(e)===v},t.isMemo=function(e){return y(e)===b},t.isPortal=function(e){return y(e)===a},t.isProfiler=function(e){return y(e)===c},t.isStrictMode=function(e){return y(e)===s},t.isSuspense=function(e){return y(e)===p}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.CHANNEL="__direction__",t.DIRECTIONS={LTR:"ltr",RTL:"rtl"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(33),a=(r=o)&&r.__esModule?r:{default:r};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 r=s(n(28)),o=n(46),a=s(n(133)),i=s(n(279));function s(e){return e&&e.__esModule?e:{default:e}}var c=(0,o.forbidExtraProps)({children:(0,o.or)([(0,o.childrenOfType)(a.default),(0,o.childrenOfType)(i.default)]).isRequired});function l(e){var t=e.children;return r.default.createElement("tr",null,t)}l.propTypes=c},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 r=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 r=e.clone().startOf("month").hour(12),o=e.clone().endOf("month").hour(12),s=(r.day()+7-n)%7,c=(n+6-o.day())%7,l=r.clone().subtract(s,"day"),u=o.clone().add(c,"day").diff(l,"days")+1,d=l.clone(),h=[],f=0;f=s&&f2?arguments[2]:[];if(!this.IsCallable(e))throw new s(e+" is not a function");return e.apply(t,n)},ToPrimitive:o,ToNumber:function(e){var t=_(e)?e:o(e,h);if("symbol"==typeof t)throw new s("Cannot convert a Symbol value to a number");if("string"==typeof t){if(C(t))return this.ToNumber(D(j(t,2),2));if(P(t))return this.ToNumber(D(j(t,2),8));if(z(t)||I(t))return NaN;var n=function(e){return q(e,G,"")}(t);if(n!==t)return this.ToNumber(n)}return h(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(y(t)||0===t||!m(t))return 0;var n=k(t)*F(V(t));return w(n,256)},ToUint8Clamp:function(e){var t=this.ToNumber(e);if(y(t)||t<=0)return 0;if(t>=255)return 255;var n=F(e);return n+.5g?g:t},CanonicalNumericIndexString:function(e){if("[object String]"!==N(e))throw new s("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:Y.CheckObjectCoercible,IsArray:l.isArray||function(e){return"[object Array]"===N(e)},IsConstructor:function(e){return"function"==typeof e&&!!e.prototype},IsExtensible:Object.preventExtensions?function(e){return!_(e)&&W(e)}:function(e){return!0},IsInteger:function(e){if("number"!=typeof e||y(e)||!m(e))return!1;var t=V(e);return F(t)===t},IsPropertyKey:function(e){return"string"==typeof e||"symbol"==typeof e},IsRegExp:function(e){if(!e||"object"!=typeof e)return!1;if(b){var t=e[f.match];if(void 0!==t)return Y.ToBoolean(t)}return Z(e)},SameValueZero:function(e,t){return e===t||y(e)&&y(t)},GetV:function(e,t){if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");return this.ToObject(e)[t]},GetMethod:function(e,t){if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");var n=this.GetV(e,t);if(null!=n){if(!this.IsCallable(n))throw new s(t+"is not a function");return n}},Get:function(e,t){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");return e[t]},Type:function(e){return"symbol"==typeof e?"Symbol":Y.Type(e)},SpeciesConstructor:function(e,t){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");var n=e.constructor;if(void 0===n)return t;if("Object"!==this.Type(n))throw new s("O.constructor is not an Object");var r=b&&f.species?n[f.species]:void 0;if(null==r)return t;if(this.IsConstructor(r))return r;throw new s("no constructor found")},CompletePropertyDescriptor:function(e){return v(this,"Property Descriptor","Desc",e),this.IsGenericDescriptor(e)||this.IsDataDescriptor(e)?(r(e,"[[Value]]")||(e["[[Value]]"]=void 0),r(e,"[[Writable]]")||(e["[[Writable]]"]=!1)):(r(e,"[[Get]]")||(e["[[Get]]"]=void 0),r(e,"[[Set]]")||(e["[[Set]]"]=void 0)),r(e,"[[Enumerable]]")||(e["[[Enumerable]]"]=!1),r(e,"[[Configurable]]")||(e["[[Configurable]]"]=!1),e},Set:function(e,t,n,r){if("Object"!==this.Type(e))throw new s("O must be an Object");if(!this.IsPropertyKey(t))throw new s("P must be a Property Key");if("Boolean"!==this.Type(r))throw new s("Throw must be a Boolean");if(r)return e[t]=n,!0;try{e[t]=n}catch(e){return!1}},HasOwnProperty:function(e,t){if("Object"!==this.Type(e))throw new s("O must be an Object");if(!this.IsPropertyKey(t))throw new s("P must be a Property Key");return r(e,t)},HasProperty:function(e,t){if("Object"!==this.Type(e))throw new s("O must be an Object");if(!this.IsPropertyKey(t))throw new s("P must be a Property Key");return t in e},IsConcatSpreadable:function(e){if("Object"!==this.Type(e))return!1;if(b&&"symbol"==typeof f.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 s("P must be a Property Key");var n=M(arguments,2),r=this.GetV(e,t);return this.Call(r,e,n)},GetIterator:function(e,t){if(!b)throw new SyntaxError("ES.GetIterator depends on native iterator support.");var n=t;arguments.length<2&&(n=this.GetMethod(e,f.iterator));var r=this.Call(n,e);if("Object"!==this.Type(r))throw new s("iterator must return an object");return r},IteratorNext:function(e,t){var n=this.Invoke(e,"next",arguments.length<2?[]:[t]);if("Object"!==this.Type(n))throw new s("iterator next must return an object");return n},IteratorComplete:function(e){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(iterResult) is not Object");return this.ToBoolean(this.Get(e,"done"))},IteratorValue:function(e){if("Object"!==this.Type(e))throw new s("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 s("Assertion failed: Type(iterator) is not Object");if(!this.IsCallable(t))throw new s("Assertion failed: completion is not a thunk for a Completion Record");var n,r=t,o=this.GetMethod(e,"return");if(void 0===o)return r();try{var a=this.Call(o,e,[])}catch(e){throw n=r(),r=null,e}if(n=r(),r=null,"Object"!==this.Type(a))throw new s("iterator .return must return an object");return n},CreateIterResultObject:function(e,t){if("Boolean"!==this.Type(t))throw new s("Assertion failed: Type(done) is not Boolean");return{value:e,done:t}},RegExpExec:function(e,t){if("Object"!==this.Type(e))throw new s("R must be an Object");if("String"!==this.Type(t))throw new s("S must be a String");var n=this.Get(e,"exec");if(this.IsCallable(n)){var r=this.Call(n,e,[t]);if(null===r||"Object"===this.Type(r))return r;throw new s('"exec" method must return `null` or an Object')}return E(e,t)},ArraySpeciesCreate:function(e,t){if(!this.IsInteger(t)||t<0)throw new s("Assertion failed: length must be an integer >= 0");var n,r=0===t?0:t;if(this.IsArray(e)&&(n=this.Get(e,"constructor"),"Object"===this.Type(n)&&b&&f.species&&null===(n=this.Get(n,f.species))&&(n=void 0)),void 0===n)return l(r);if(!this.IsConstructor(n))throw new s("C must be a constructor");return new n(r)},CreateDataProperty:function(e,t,n){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");var r=K(e,t),o=r||"function"!=typeof W||W(e);return!(!(!r||r.writable&&r.configurable)||!o)&&($(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}),!0)},CreateDataPropertyOrThrow:function(e,t,n){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");var r=this.CreateDataProperty(e,t,n);if(!r)throw new s("unable to create data property");return r},ObjectCreate:function(e,t){if(null!==e&&"Object"!==this.Type(e))throw new s("Assertion failed: proto must be null or an object");var n=arguments.length<2?[]:t;if(n.length>0)throw new c("es-abstract does not yet support internal slots");if(null===e&&!B)throw new c("native Object.create support is required to create null objects");return B(e)},AdvanceStringIndex:function(e,t,n){if("String"!==this.Type(e))throw new s("S must be a String");if(!this.IsInteger(t)||t<0||t>g)throw new s("Assertion failed: length must be an integer >= 0 and <= 2**53");if("Boolean"!==this.Type(n))throw new s("Assertion failed: unicode must be a Boolean");if(!n)return t+1;if(t+1>=e.length)return t+1;var r=x(e,t);if(r<55296||r>56319)return t+1;var o=x(e,t+1);return o<56320||o>57343?t+1:t+2},CreateMethodProperty:function(e,t,n){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");return!!$(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0})},DefinePropertyOrThrow:function(e,t,n){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");return!!$(e,t,n)},DeletePropertyOrThrow:function(e,t){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");var n=delete e[t];if(!n)throw new TypeError("Attempt to delete property failed.");return n},EnumerableOwnNames:function(e){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");return a(e)},thisNumberValue:function(e){return"Number"===this.Type(e)?e:A(e)},thisBooleanValue:function(e){return"Boolean"===this.Type(e)?e:H(e)},thisStringValue:function(e){return"String"===this.Type(e)?e:R(e)},thisTimeValue:function(e){return L(e)}});delete X.CheckObjectCoercible,e.exports=X},function(e,t){e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},function(e,t,n){"use strict";var r=n(136),o=r("%Object%"),a=r("%TypeError%"),i=r("%String%"),s=n(179),c=n(180),l=n(181),u=n(183),d=n(184),h=n(101),f=n(165),p=n(63),b={ToPrimitive:f,ToBoolean:function(e){return!!e},ToNumber:function(e){return+e},ToInteger:function(e){var t=this.ToNumber(e);return c(t)?0:0!==t&&l(t)?u(t)*Math.floor(Math.abs(t)):t},ToInt32:function(e){return this.ToNumber(e)>>0},ToUint32:function(e){return this.ToNumber(e)>>>0},ToUint16:function(e){var t=this.ToNumber(e);if(c(t)||0===t||!l(t))return 0;var n=u(t)*Math.floor(Math.abs(t));return d(n,65536)},ToString:function(e){return i(e)},ToObject:function(e){return this.CheckObjectCoercible(e),o(e)},CheckObjectCoercible:function(e,t){if(null==e)throw new a(t||"Cannot call method on "+e);return e},IsCallable:h,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(p(e,n)&&!t[n])return!1;var r=p(e,"[[Value]]"),o=p(e,"[[Get]]")||p(e,"[[Set]]");if(r&&o)throw new a("Property Descriptors may not be both accessor and data descriptors");return!0},IsAccessorDescriptor:function(e){return void 0!==e&&(s(this,"Property Descriptor","Desc",e),!(!p(e,"[[Get]]")&&!p(e,"[[Set]]")))},IsDataDescriptor:function(e){return void 0!==e&&(s(this,"Property Descriptor","Desc",e),!(!p(e,"[[Value]]")&&!p(e,"[[Writable]]")))},IsGenericDescriptor:function(e){return void 0!==e&&(s(this,"Property Descriptor","Desc",e),!this.IsAccessorDescriptor(e)&&!this.IsDataDescriptor(e))},FromPropertyDescriptor:function(e){if(void 0===e)return e;if(s(this,"Property Descriptor","Desc",e),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(p(e,"enumerable")&&(t["[[Enumerable]]"]=this.ToBoolean(e.enumerable)),p(e,"configurable")&&(t["[[Configurable]]"]=this.ToBoolean(e.configurable)),p(e,"value")&&(t["[[Value]]"]=e.value),p(e,"writable")&&(t["[[Writable]]"]=this.ToBoolean(e.writable)),p(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(p(e,"set")){var r=e.set;if(void 0!==r&&!this.IsCallable(r))throw new a("setter must be a function");t["[[Set]]"]=r}if((p(t,"[[Get]]")||p(t,"[[Set]]"))&&(p(t,"[[Value]]")||p(t,"[[Writable]]")))throw new a("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}};e.exports=b},function(e,t,n){"use strict";var r=n(185),o=n(55);e.exports=function(){var e=r();return o(Object,{values:e},{values:function(){return Object.values!==e}}),e}},function(e,t,n){"use strict";var r=n(55),o=n(186),a=n(187),i=a(),s=function(e,t){return i.apply(e,[t])};r(s,{getPolyfill:a,implementation:o,shim:n(294)}),e.exports=s},function(e,t,n){"use strict";var r=n(55),o=n(187);e.exports=function(){var e=o();return"undefined"!=typeof document&&(r(document,{contains:e},{contains:function(){return document.contains!==e}}),"undefined"!=typeof Element&&r(Element.prototype,{contains:e},{contains:function(){return Element.prototype.contains!==e}})),e}},function(e,t,n){var r=n(138),o=n(296),a=n(298),i="Expected a function",s=Math.max,c=Math.min;e.exports=function(e,t,n){var l,u,d,h,f,p,b=0,v=!1,y=!1,m=!0;if("function"!=typeof e)throw new TypeError(i);function g(t){var n=l,r=u;return l=u=void 0,b=t,h=e.apply(r,n)}function O(e){var n=e-p;return void 0===p||n>=t||n<0||y&&e-b>=d}function k(){var e=o();if(O(e))return w(e);f=setTimeout(k,function(e){var n=t-(e-p);return y?c(n,d-(e-b)):n}(e))}function w(e){return f=void 0,m&&l?g(e):(l=u=void 0,h)}function _(){var e=o(),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(y)return clearTimeout(f),f=setTimeout(k,t),g(p)}return void 0===f&&(f=setTimeout(k,t)),h}return t=a(t)||0,r(n)&&(v=!!n.leading,d=(y="maxWait"in n)?s(a(n.maxWait)||0,t):d,m="trailing"in n?!!n.trailing:m),_.cancel=function(){void 0!==f&&clearTimeout(f),b=0,l=p=u=f=void 0},_.flush=function(){return void 0===f?h:w(o())},_}},function(e,t,n){var r=n(199);e.exports=function(){return r.Date.now()}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(65))},function(e,t,n){var r=n(138),o=n(299),a=NaN,i=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return a;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=c.test(e);return n||l.test(e)?u(e.slice(2),n?2:8):s.test(e)?a:+e}},function(e,t,n){var r=n(300),o=n(303),a="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||o(e)&&r(e)==a}},function(e,t,n){var r=n(200),o=n(301),a=n(302),i="[object Null]",s="[object Undefined]",c=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:i:c&&c in Object(e)?o(e):a(e)}},function(e,t,n){var r=n(200),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=i.call(e);return r&&(t?e[s]=n:delete e[s]),o}},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]:r;return e?n(e(t.clone())):t};var r=function(e){return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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 r,o=n(29),a=(r=o)&&r.__esModule?r:{default:r}},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 r=Object.assign||function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:"top",o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=n.split(" "),i=Object(h.a)(a,2),s=i[0],c=i[1],l=void 0===c?"center":c,u=function(e,t,n){var r,o=t.height,a=e.top+e.height/2,i={popoverTop:a,contentHeight:(a-o/2>0?o/2:a)+(a+o/2>window.innerHeight?window.innerHeight-a:o/2)},s={popoverTop:e.top,contentHeight:e.top-A-o>0?o:e.top-A},c={popoverTop:e.bottom,contentHeight:e.bottom+A+o>window.innerHeight?window.innerHeight-A-e.bottom:o},l=null;if("middle"===n&&i.contentHeight===o)r="middle";else if("top"===n&&s.contentHeight===o)r="top";else if("bottom"===n&&c.contentHeight===o)r="bottom";else{var u="top"===(r=s.contentHeight>c.contentHeight?"top":"bottom")?s.contentHeight:c.contentHeight;l=u!==o?u:null}return{yAxis:r,popoverTop:"middle"===r?i.popoverTop:"top"===r?s.popoverTop:c.popoverTop,contentHeight:l}}(e,t,s),d=function(e,t,n,r){var o=t.width;"left"===n&&R()?n="right":"right"===n&&R()&&(n="left");var a,i=Math.round(e.left+e.width/2),s={popoverLeft:i,contentWidth:(i-o/2>0?o/2:i)+(i+o/2>window.innerWidth?window.innerWidth-i:o/2)},c="middle"===r?e.left:i,l={popoverLeft:c,contentWidth:c-o>0?o:c},u="middle"===r?e.right:i,d={popoverLeft:u,contentWidth:u+o>window.innerWidth?window.innerWidth-u:o},h=null;if("center"===n&&s.contentWidth===o)a="center";else if("left"===n&&l.contentWidth===o)a="left";else if("right"===n&&d.contentWidth===o)a="right";else{var f="left"===(a=l.contentWidth>d.contentWidth?"left":"right")?l.contentWidth:d.contentWidth;h=f!==o?f:null}return{xAxis:a,popoverLeft:"center"===a?s.popoverLeft:"left"===a?l.popoverLeft:d.popoverLeft,contentWidth:h}}(e,t,l,u.yAxis);return Object(r.a)({isMobile:H()&&o},d,u)}var F=Object(o.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(y.a)(this,Object(m.a)(t).apply(this,arguments))).onFocus=e.onFocus.bind(Object(g.a)(e)),e.state={focusHistory:[]},e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"onFocus",value:function(e){var t=this.state.focusHistory,n=Object(_.uniq)([].concat(Object(w.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(o.createElement)(V,{value:this.state},Object(o.createElement)("div",{onFocus:this.onFocus,className:n},t))}}]),t}(o.Component);var W=Object(M.createHigherOrderComponent)((function e(t){if((r=t)instanceof o.Component||"function"==typeof r){var n=t;return e({})(n)}var r,a=t.onFocusReturn,i=void 0===a?_.stubTrue:a;return function(e){var t=function(t){function n(){var e;return Object(v.a)(this,n),(e=Object(y.a)(this,Object(m.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(k.a)(n,t),Object(O.a)(n,[{key:"componentWillUnmount",value:function(){var e=this.activeElementOnMount,t=this.isFocused,n=this.ownFocusedElements;if(t&&!1!==i())for(var r,o=[].concat(Object(w.a)(_.without.apply(void 0,[this.props.focus.focusHistory].concat(Object(w.a)(n)))),[e]);r=o.pop();)if(document.body.contains(r))return void r.focus()}},{key:"render",value:function(){return Object(o.createElement)("div",{onFocus:this.setIsFocusedTrue,onBlur:this.setIsFocusedFalse},Object(o.createElement)(e,this.props.childProps))}}]),n}(o.Component);return function(e){return Object(o.createElement)(B,null,(function(n){return Object(o.createElement)(t,{childProps:e,focus:n})}))}}}),"withFocusReturn"),$=Object(M.createHigherOrderComponent)((function(e){return function(t){function n(){var e;return Object(v.a)(this,n),(e=Object(y.a)(this,Object(m.a)(n).apply(this,arguments))).focusContainRef=Object(o.createRef)(),e.handleTabBehaviour=e.handleTabBehaviour.bind(Object(g.a)(e)),e}return Object(k.a)(n,t),Object(O.a)(n,[{key:"handleTabBehaviour",value:function(e){if(e.keyCode===D.TAB){var t=C.focus.tabbable.find(this.focusContainRef.current);if(t.length){var n=t[0],r=t[t.length-1];e.shiftKey&&e.target===n?(e.preventDefault(),r.focus()):(e.shiftKey||e.target!==r)&&t.includes(e.target)||(e.preventDefault(),n.focus())}}}},{key:"render",value:function(){return Object(o.createElement)("div",{onKeyDown:this.handleTabBehaviour,ref:this.focusContainRef,tabIndex:"-1"},Object(o.createElement)(e,this.props))}}]),n}(o.Component)}),"withConstrainedTabbing"),U=["button","submit"];var G=Object(M.createHigherOrderComponent)((function(e){return function(t){function n(){var e;return Object(v.a)(this,n),(e=Object(y.a)(this,Object(m.a)(n).apply(this,arguments))).bindNode=e.bindNode.bind(Object(g.a)(e)),e.cancelBlurCheck=e.cancelBlurCheck.bind(Object(g.a)(e)),e.queueBlurCheck=e.queueBlurCheck.bind(Object(g.a)(e)),e.normalizeButtonFocus=e.normalizeButtonFocus.bind(Object(g.a)(e)),e}return Object(k.a)(n,t),Object(O.a)(n,[{key:"componentWillUnmount",value:function(){this.cancelBlurCheck()}},{key:"bindNode",value:function(e){e?this.node=e:(delete this.node,this.cancelBlurCheck())}},{key:"queueBlurCheck",value:function(e){var t=this;e.persist(),this.preventBlurCheck||(this.blurCheckTimeout=setTimeout((function(){document.hasFocus()?"function"==typeof t.node.handleFocusOutside&&t.node.handleFocusOutside(e):e.preventDefault()}),0))}},{key:"cancelBlurCheck",value:function(){clearTimeout(this.blurCheckTimeout)}},{key:"normalizeButtonFocus",value:function(e){var t=e.type,n=e.target;Object(_.includes)(["mouseup","touchend"],t)?this.preventBlurCheck=!1:function(e){switch(e.nodeName){case"A":case"BUTTON":return!0;case"INPUT":return Object(_.includes)(U,e.type)}return!1}(n)&&(this.preventBlurCheck=!0)}},{key:"render",value:function(){return Object(o.createElement)("div",{onFocus:this.cancelBlurCheck,onMouseDown:this.normalizeButtonFocus,onMouseUp:this.normalizeButtonFocus,onTouchStart:this.normalizeButtonFocus,onTouchEnd:this.normalizeButtonFocus,onBlur:this.queueBlurCheck},Object(o.createElement)(e,Object(T.a)({ref:this.bindNode},this.props)))}}]),n}(o.Component)}),"withFocusOutside"),q=function(e){function t(){return Object(v.a)(this,t),Object(y.a)(this,Object(m.a)(t).apply(this,arguments))}return Object(k.a)(t,e),Object(O.a)(t,[{key:"handleFocusOutside",value:function(e){this.props.onFocusOutside(e)}},{key:"render",value:function(){return this.props.children}}]),t}(o.Component),Y=G(q);var Z=function(e){var t,n,r=e.shortcut,a=e.className;return r?(Object(_.isString)(r)&&(t=r),Object(_.isObject)(r)&&(t=r.display,n=r.ariaLabel),Object(o.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(y.a)(this,Object(m.a)(t).apply(this,arguments))).delayedSetIsOver=Object(_.debounce)((function(t){return e.setState({isOver:t})}),X),e.cancelIsMouseDown=e.createSetIsMouseDown(!1),e.isInMouseDown=!1,e.state={isOver:!1},e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentWillUnmount",value:function(){this.delayedSetIsOver.cancel(),document.removeEventListener("mouseup",this.cancelIsMouseDown)}},{key:"emitToChild",value:function(e,t){var n=this.props.children;if(1===o.Children.count(n)){var r=o.Children.only(n);"function"==typeof r.props[e]&&r.props[e](t)}}},{key:"createToggleIsOver",value:function(e,t){var n=this;return function(r){if(n.emitToChild(e,r),!(r.currentTarget.disabled||"focus"===r.type&&n.isInMouseDown)){n.delayedSetIsOver.cancel();var o=Object(_.includes)(["focus","mouseenter"],r.type);o!==n.state.isOver&&(t?n.delayedSetIsOver(o):n.setState({isOver:o}))}}}},{key:"createSetIsMouseDown",value:function(e){var t=this;return function(n){t.emitToChild(e?"onMouseDown":"onMouseUp",n),document[e?"addEventListener":"removeEventListener"]("mouseup",t.cancelIsMouseDown),t.isInMouseDown=e}}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.position,r=e.text,a=e.shortcut;if(1!==o.Children.count(t))return t;var i=o.Children.only(t),s=this.state.isOver;return Object(o.cloneElement)(i,{onMouseEnter:this.createToggleIsOver("onMouseEnter",!0),onMouseLeave:this.createToggleIsOver("onMouseLeave"),onClick:this.createToggleIsOver("onClick"),onFocus:this.createToggleIsOver("onFocus"),onBlur:this.createToggleIsOver("onBlur"),onMouseDown:this.createSetIsMouseDown(!0),children:Object(o.concatChildren)(i.props.children,s&&Object(o.createElement)(ge,{focusOnMount:!1,position:n,className:"components-tooltip","aria-hidden":"true",animate:!1},r,Object(o.createElement)(Z,{className:"components-tooltip__shortcut",shortcut:a})))})}}]),t}(o.Component),J=function(e){function t(){return Object(v.a)(this,t),Object(y.a)(this,Object(m.a)(t).apply(this,arguments))}return Object(k.a)(t,e),Object(O.a)(t,[{key:"render",value:function(){var e,t=this.props,n=t.icon,r=t.size,a=void 0===r?20:r,i=t.className,c=(t.ariaPressed,Object(P.a)(t,["icon","size","className","ariaPressed"]));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 l=function(e,t){return["dashicon","dashicons-"+e,t].filter(Boolean).join(" ")}(n,i);return Object(o.createElement)(u,Object(T.a)({"aria-hidden":!0,role:"img",focusable:"false",className:l,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 20 20"},c),Object(o.createElement)(s,{d:e}))}}]),t}(o.Component);var ee=function(e){var t,n=e.icon,a=void 0===n?null:n,i=e.size,s=Object(P.a)(e,["icon","size"]);if("string"==typeof a)return t=i||20,Object(o.createElement)(J,Object(T.a)({icon:a,size:t},s));if(t=i||24,"function"==typeof a)return a.prototype instanceof o.Component?Object(o.createElement)(a,Object(r.a)({size:t},s)):a(Object(r.a)({size:t},s));if(a&&("svg"===a.type||a.type===u)){var c=Object(r.a)({width:t,height:t},a.props,s);return Object(o.createElement)(u,c)}return Object(o.isValidElement)(a)?Object(o.cloneElement)(a,Object(r.a)({size:t},s)):a};var te=Object(o.forwardRef)((function(e,t){var n=e.icon,r=e.children,a=e.label,i=e.className,s=e.tooltip,c=e.shortcut,l=e.labelPosition,u=Object(P.a)(e,["icon","children","label","className","tooltip","shortcut","labelPosition"]),d=p()("components-icon-button",i,{"has-text":r}),h=s||a,f=!u.disabled&&(s||c||!!a&&(!r||Object(_.isArray)(r)&&!r.length)&&!1!==s),b=Object(o.createElement)(E,Object(T.a)({"aria-label":a},u,{className:d,ref:t}),Object(_.isString)(n)?Object(o.createElement)(ee,{icon:n}):n,r);return f&&(b=Object(o.createElement)(Q,{text:h,shortcut:c,position:l},b)),b}));var ne=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.htmlDocument,n=void 0===t?document:t,r=e.className,a=void 0===r?"lockscroll":r,i=0,s=0;function c(e){var t=n.scrollingElement||n.body;e&&(s=t.scrollTop);var r=e?"add":"remove";t.classList[r](a),n.documentElement.classList[r](a),e||(t.scrollTop=s)}return function(e){function t(){return Object(v.a)(this,t),Object(y.a)(this,Object(m.a)(t).apply(this,arguments))}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentDidMount",value:function(){0===i&&c(!0),++i}},{key:"componentWillUnmount",value:function(){1===i&&c(!1),--i}},{key:"render",value:function(){return null}}]),t}(o.Component)}(),re=function(e){function t(e){var n;return Object(v.a)(this,t),(n=Object(y.a)(this,Object(m.a)(t).call(this,e))).stopEventPropagationOutsideContainer=n.stopEventPropagationOutsideContainer.bind(Object(g.a)(n)),n}return Object(k.a)(t,e),Object(O.a)(t,[{key:"stopEventPropagationOutsideContainer",value:function(e){e.stopPropagation()}},{key:"render",value:function(){var e=this.props,t=e.children,n=Object(P.a)(e,["children"]);return Object(o.createElement)("div",Object(T.a)({},n,{onMouseDown:this.stopEventPropagationOutsideContainer}),t)}}]),t}(o.Component),oe=Object(o.createContext)({registerSlot:function(){},unregisterSlot:function(){},registerFill:function(){},unregisterFill:function(){},getSlot:function(){},getFills:function(){},subscribe:function(){}}),ae=oe.Provider,ie=oe.Consumer,se=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(y.a)(this,Object(m.a)(t).apply(this,arguments))).registerSlot=e.registerSlot.bind(Object(g.a)(e)),e.registerFill=e.registerFill.bind(Object(g.a)(e)),e.unregisterSlot=e.unregisterSlot.bind(Object(g.a)(e)),e.unregisterFill=e.unregisterFill.bind(Object(g.a)(e)),e.getSlot=e.getSlot.bind(Object(g.a)(e)),e.getFills=e.getFills.bind(Object(g.a)(e)),e.subscribe=e.subscribe.bind(Object(g.a)(e)),e.slots={},e.fills={},e.listeners=[],e.contextValue={registerSlot:e.registerSlot,unregisterSlot:e.unregisterSlot,registerFill:e.registerFill,unregisterFill:e.unregisterFill,getSlot:e.getSlot,getFills:e.getFills,subscribe:e.subscribe},e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"registerSlot",value:function(e,t){var n=this.slots[e];this.slots[e]=t,this.triggerListeners(),this.forceUpdateSlot(e),n&&n.forceUpdate()}},{key:"registerFill",value:function(e,t){this.fills[e]=[].concat(Object(w.a)(this.fills[e]||[]),[t]),this.forceUpdateSlot(e)}},{key:"unregisterSlot",value:function(e,t){this.slots[e]===t&&(delete this.slots[e],this.triggerListeners())}},{key:"unregisterFill",value:function(e,t){this.fills[e]=Object(_.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(_.sortBy)(this.fills[e],"occurrence")}},{key:"resetFillOccurrence",value:function(e){Object(_.forEach)(this.fills[e],(function(e){e.occurrence=void 0}))}},{key:"forceUpdateSlot",value:function(e){var t=this.getSlot(e);t&&t.forceUpdate()}},{key:"triggerListeners",value:function(){this.listeners.forEach((function(e){return e()}))}},{key:"subscribe",value:function(e){var t=this;return this.listeners.push(e),function(){t.listeners=Object(_.without)(t.listeners,e)}}},{key:"render",value:function(){return Object(o.createElement)(ae,{value:this.contextValue},this.props.children)}}]),t}(o.Component),ce=function(e){var t=Object(o.useContext)(oe),n=t.getSlot,r=t.subscribe,a=Object(o.useState)(n(e)),i=Object(h.a)(a,2),s=i[0],c=i[1];return Object(o.useEffect)((function(){return c(n(e)),r((function(){c(n(e))}))}),[e]),s},le=se,ue=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(y.a)(this,Object(m.a)(t).apply(this,arguments))).bindNode=e.bindNode.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.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,r=t.unregisterSlot,o=t.registerSlot;e.name!==n&&(r(e.name),o(n,this))}},{key:"bindNode",value:function(e){this.node=e}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.name,r=e.bubblesVirtually,a=void 0!==r&&r,i=e.fillProps,s=void 0===i?{}:i,c=e.getFills,l=e.className;if(a)return Object(o.createElement)("div",{ref:this.bindNode,className:l});var u=Object(_.map)(c(n,this),(function(e){var t=e.occurrence,n=Object(_.isFunction)(e.children)?e.children(s):e.children;return o.Children.map(n,(function(e,n){if(!e||Object(_.isString)(e))return e;var r="".concat(t,"---").concat(e.key||n);return Object(o.cloneElement)(e,{key:r})}))})).filter(Object(_.negate)(o.isEmptyElement));return Object(o.createElement)(o.Fragment,null,Object(_.isFunction)(t)?t(u):u)}}]),t}(o.Component),de=function(e){return Object(o.createElement)(ie,null,(function(t){var n=t.registerSlot,r=t.unregisterSlot,a=t.getFills;return Object(o.createElement)(ue,Object(T.a)({},e,{registerSlot:n,unregisterSlot:r,getFills:a}))}))},he=0;function fe(e){var t=e.name,n=e.children,r=e.registerFill,a=e.unregisterFill,i=ce(t),s=Object(o.useRef)({name:t,children:n});return s.current.occurrence||(s.current.occurrence=++he),Object(o.useLayoutEffect)((function(){return r(t,s.current),function(){return a(t,s.current)}}),[]),Object(o.useLayoutEffect)((function(){s.current.children=n,i&&!i.props.bubblesVirtually&&i.forceUpdate()}),[n]),Object(o.useLayoutEffect)((function(){t!==s.current.name&&(a(s.current.name,s.current),s.current.name=t,r(t,s.current))}),[t]),i&&i.node&&i.props.bubblesVirtually?(Object(_.isFunction)(n)&&(n=n(i.props.fillProps)),Object(o.createPortal)(n,i.node)):null}var pe=function(e){return Object(o.createElement)(ie,null,(function(t){var n=t.registerFill,r=t.unregisterFill;return Object(o.createElement)(fe,Object(T.a)({},e,{registerFill:n,unregisterFill:r}))}))};function be(e){var t=function(t){return Object(o.createElement)(pe,Object(T.a)({name:e},t))};t.displayName=e+"Fill";var n=function(t){return Object(o.createElement)(de,Object(T.a)({name:e},t))};return n.displayName=e+"Slot",{Fill:t,Slot:n}}var ve=$(W((function(e){return e.children})));function ye(e,t){Object(o.useEffect)((function(){var n,r=function(r){window.cancelAnimationFrame(n),t&&r&&"scroll"===r.type&&t.current.contains(r.target)||(n=window.requestAnimationFrame(e))};return window.addEventListener("resize",r),window.addEventListener("scroll",r,!0),function(){window.removeEventListener("resize",r),window.removeEventListener("scroll",r,!0)}}),[])}var me=function(e){var t=e.headerTitle,n=e.onClose,r=e.onKeyDown,a=e.children,i=e.className,s=e.noArrow,c=void 0!==s&&s,l=e.position,u=void 0===l?"top":l,d=(e.range,e.focusOnMount),f=void 0===d?"firstElement":d,v=e.anchorRect,y=e.getAnchorRect,m=e.expandOnMobile,g=e.animate,O=void 0===g||g,k=e.onClickOutside,w=e.onFocusOutside,_=Object(P.a)(e,["headerTitle","onClose","onKeyDown","children","className","noArrow","position","range","focusOnMount","anchorRect","getAnchorRect","expandOnMobile","animate","onClickOutside","onFocusOutside"]),S=Object(o.useRef)(null),M=Object(o.useRef)(null),j=Object(o.useState)(!1),E=Object(h.a)(j,2),z=E[0],x=E[1],A=function(e,t,n,r){var a=Object(o.useState)(null),i=Object(h.a)(a,2),s=i[0],c=i[1],l=function(){if(e.current){var t;if(n)t=n;else if(r)t=r(e.current);else{var o=e.current.parentNode.getBoundingClientRect(),a=window.getComputedStyle(e.current.parentNode),i=a.paddingTop,l=a.paddingBottom,u=parseInt(i,10),d=parseInt(l,10);t={x:o.left,y:o.top+u,width:o.width,height:o.height-u-d,left:o.left,right:o.right,top:o.top+u,bottom:o.bottom-d}}!I()(t,s)&&c(t)}};return Object(o.useEffect)(l,[n,r]),Object(o.useEffect)((function(){if(!n){var e=setInterval(l,500);return function(){return clearInterval(e)}}}),[n]),ye(l,t),s}(S,M,v,y),H=function(e){var t=Object(o.useState)(null),n=Object(h.a)(t,2),r=n[0],a=n[1];return Object(o.useEffect)((function(){var t=e.current.getBoundingClientRect();a({width:t.width,height:t.height})}),[]),r}(M);Object(o.useEffect)((function(){H&&x(!0)}),[H]);var R=function(e,t,n,r,a){var i=Object(o.useState)({popoverLeft:null,popoverTop:null,yAxis:"top",xAxis:"center",contentHeight:null,contentWidth:null,isMobile:!1}),s=Object(h.a)(i,2),c=s[0],l=s[1],u=function(){if(e&&t){var o=L(e,t,n,r);c.yAxis===o.yAxis&&c.xAxis===o.xAxis&&c.popoverLeft===o.popoverLeft&&c.popoverTop===o.popoverTop&&c.contentHeight===o.contentHeight&&c.contentWidth===o.contentWidth&&c.isMobile===o.isMobile||l(o)}};return Object(o.useEffect)(u,[e,t]),ye(u,a),c}(A,H,u,m,M);!function(e,t){Object(o.useEffect)((function(){var n=setTimeout((function(){if(e&&t.current)if("firstElement"!==e)"container"===e&&t.current.focus();else{var n=C.focus.tabbable.find(t.current)[0];n?n.focus():t.current.focus()}}),0);return function(){return clearTimeout(n)}}),[])}(f,M);var F=function(e){e.keyCode===D.ESCAPE&&n&&(e.stopPropagation(),n()),r&&r(e)};var V={top:"bottom",bottom:"top"}[R.yAxis]||"middle",B={left:"right",right:"left"}[R.xAxis]||"center",K=p()("components-popover",i,"is-"+R.yAxis,"is-"+R.xAxis,{"is-mobile":R.isMobile,"is-without-arrow":c||"center"===R.xAxis&&"middle"===R.yAxis}),W=Object(o.createElement)(Y,{onFocusOutside:function(e){if(w)w(e);else if(k){var t;try{t=new window.MouseEvent("click")}catch(e){(t=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null)}Object.defineProperty(t,"target",{get:function(){return e.relatedTarget}}),N()("Popover onClickOutside prop",{alternative:"onFocusOutside"}),k(t)}else n&&n()}},Object(o.createElement)(b,{type:O&&z?"appear":null,options:{origin:V+" "+B}},(function(e){var r=e.className;return Object(o.createElement)(re,Object(T.a)({className:p()(K,r),style:{top:!R.isMobile&&R.popoverTop?R.popoverTop+"px":void 0,left:!R.isMobile&&R.popoverLeft?R.popoverLeft+"px":void 0,visibility:H?void 0:"hidden"}},_,{onKeyDown:F}),R.isMobile&&Object(o.createElement)("div",{className:"components-popover__header"},Object(o.createElement)("span",{className:"components-popover__header-title"},t),Object(o.createElement)(te,{className:"components-popover__close",icon:"no-alt",onClick:n})),Object(o.createElement)("div",{ref:M,className:"components-popover__content",style:{maxHeight:!R.isMobile&&R.contentHeight?R.contentHeight+"px":void 0,maxWidth:!R.isMobile&&R.contentWidth?R.contentWidth+"px":void 0},tabIndex:"-1"},a))})));return f&&(W=Object(o.createElement)(ve,null,W)),Object(o.createElement)(ie,null,(function(e){var t=e.getSlot;return t&&t("Popover")&&(W=Object(o.createElement)(pe,{name:"Popover"},W)),Object(o.createElement)("span",{ref:S},W,R.isMobile&&m&&Object(o.createElement)(ne,null))}))};me.Slot=function(){return Object(o.createElement)(de,{bubblesVirtually:!0,name:"Popover"})};var ge=me,Oe=n(45),ke=Object(M.createHigherOrderComponent)((function(e){return function(t){function n(){var e;return Object(v.a)(this,n),(e=Object(y.a)(this,Object(m.a)(n).apply(this,arguments))).debouncedSpeak=Object(_.debounce)(e.speak.bind(Object(g.a)(e)),500),e}return Object(k.a)(n,t),Object(O.a)(n,[{key:"speak",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"polite";Object(Oe.speak)(e,t)}},{key:"componentWillUnmount",value:function(){this.debouncedSpeak.cancel()}},{key:"render",value:function(){return Object(o.createElement)(e,Object(T.a)({},this.props,{speak:this.speak,debouncedSpeak:this.debouncedSpeak}))}}]),n}(o.Component)}),"withSpokenMessages");function we(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r=[],o=0;o0,y=v?"components-autocomplete-listbox-".concat(r):null,m=v?"components-autocomplete-item-".concat(r,"-").concat(h):null;return Object(o.createElement)(o.Fragment,null,n({isExpanded:v,listBoxId:y,activeId:m,onKeyDown:this.handleKeyDown}),v&&a&&Object(o.createElement)(ge,{focusOnMount:!1,onClose:this.reset,position:"top right",className:"components-autocomplete__popover",getAnchorRect:_e},Object(o.createElement)("div",{id:y,role:"listbox",className:"components-autocomplete__results"},v&&Object(_.map)(u,(function(t,n){return Object(o.createElement)(E,{key:t.key,id:"components-autocomplete-item-".concat(r,"-").concat(t.key),role:"option","aria-selected":n===l,disabled:t.isDisabled,className:p()("components-autocomplete__result",b,{"is-selected":n===l}),onClick:function(){return e.select(t)}},t.label)})))))}}]),t}(o.Component),Se=Object(M.compose)([ke,M.withInstanceId])(De);function Me(e){var t=e.id,n=e.label,r=e.hideLabelFromVision,a=e.help,i=e.className,s=e.children;return Object(o.createElement)("div",{className:p()("components-base-control",i)},Object(o.createElement)("div",{className:"components-base-control__field"},n&&t&&Object(o.createElement)("label",{className:p()("components-base-control__label",{"screen-reader-text":r}),htmlFor:t},n),n&&!t&&Object(o.createElement)(Me.VisualLabel,null,n),s),!!a&&Object(o.createElement)("p",{id:t+"__help",className:"components-base-control__help"},a))}Me.VisualLabel=function(e){var t=e.className,n=e.children;return t=p()("components-base-control__label",t),Object(o.createElement)("span",{className:t},n)};var je=Me;var Ce=function(e){var t=e.className,n=Object(P.a)(e,["className"]),r=p()("components-button-group",t);return Object(o.createElement)("div",Object(T.a)({},n,{className:r,role:"group"}))};var Pe=Object(M.withInstanceId)((function(e){var t=e.label,n=e.className,r=e.heading,a=e.checked,i=e.help,s=e.instanceId,c=e.onChange,l=Object(P.a)(e,["label","className","heading","checked","help","instanceId","onChange"]),u="inspector-checkbox-control-".concat(s);return Object(o.createElement)(je,{label:r,id:u,help:i,className:n},Object(o.createElement)("span",{className:"components-checkbox-control__input-container"},Object(o.createElement)("input",Object(T.a)({id:u,className:"components-checkbox-control__input",type:"checkbox",value:"1",onChange:function(e){return c(e.target.checked)},checked:a,"aria-describedby":i?u+"__help":void 0},l)),a?Object(o.createElement)(J,{icon:"yes",className:"components-checkbox-control__checked",role:"presentation"}):null),Object(o.createElement)("label",{className:"components-checkbox-control__label",htmlFor:u},t))})),Ee=n(224),Te=n.n(Ee),ze=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(y.a)(this,Object(m.a)(t).apply(this,arguments))).bindContainer=e.bindContainer.bind(Object(g.a)(e)),e.onCopy=e.onCopy.bind(Object(g.a)(e)),e.getText=e.getText.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentDidMount",value:function(){var e=this.container,t=this.getText,n=this.onCopy,r=e.firstChild;this.clipboard=new Te.a(r,{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,r=t.onFinishCopy;n&&(n(),r&&(clearTimeout(this.onCopyTimeout),this.onCopyTimeout=setTimeout(r,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,r=(e.onCopy,e.onFinishCopy,e.text,Object(P.a)(e,["className","children","onCopy","onFinishCopy","text"])),a=r.icon,i=p()("components-clipboard-button",t),s=a?te:E;return Object(o.createElement)("span",{ref:this.bindContainer,onCopy:function(e){e.target.focus()}},Object(o.createElement)(s,Object(T.a)({},r,{className:i}),n))}}]),t}(o.Component),Ie=function(e){var t=e.className,n=e.colorValue,r=Object(P.a)(e,["className","colorValue"]);return Object(o.createElement)("span",Object(T.a)({className:p()("component-color-indicator",t),style:{background:n}},r))},xe=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(y.a)(this,Object(m.a)(t).apply(this,arguments))).toggle=e.toggle.bind(Object(g.a)(e)),e.close=e.close.bind(Object(g.a)(e)),e.closeIfFocusOutside=e.closeIfFocusOutside.bind(Object(g.a)(e)),e.containerRef=Object(o.createRef)(),e.state={isOpen:!1},e}return Object(k.a)(t,e),Object(O.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,r=this.props.onToggle;t.isOpen!==n&&r&&r(n)}},{key:"toggle",value:function(){this.setState((function(e){return{isOpen:!e.isOpen}}))}},{key:"closeIfFocusOutside",value:function(){this.containerRef.current.contains(document.activeElement)||document.activeElement.closest('[role="dialog"]')||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,r=t.renderToggle,a=t.position,i=void 0===a?"bottom":a,s=t.className,c=t.contentClassName,l=t.expandOnMobile,u=t.headerTitle,d=t.focusOnMount,h=t.popoverProps,f={isOpen:e,onToggle:this.toggle,onClose:this.close};return Object(o.createElement)("div",{className:s,ref:this.containerRef},r(f),e&&Object(o.createElement)(ge,Object(T.a)({className:c,position:i,onClose:this.close,onFocusOutside:this.closeIfFocusOutside,expandOnMobile:l,headerTitle:u,focusOnMount:d},h),n(f)))}}]),t}(o.Component),Ne=n(48),Ae=n.n(Ne);function He(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.hex?Ae()(e.hex):Ae()(e),r=n.toHsl();r.h=Math.round(r.h),r.s=Math.round(100*r.s),r.l=Math.round(100*r.l);var o=n.toHsv();o.h=Math.round(o.h),o.s=Math.round(100*o.s),o.v=Math.round(100*o.v);var a=n.toRgb(),i=n.toHex();return 0===r.s&&(r.h=t||0,o.h=t||0),{color:n,hex:"000000"===i&&0===a.a?"transparent":"#".concat(i),hsl:r,hsv:o,oldHue:e.h||t||r.h,rgb:a,source:e.source}}function Re(e,t){e.preventDefault();var n=t.getBoundingClientRect(),r=n.left,o=n.top,a=n.width,i=n.height,s="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,c="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,l=s-(r+window.pageXOffset),u=c-(o+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}}function Le(e){var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&Ae()(e).isValid()}var Fe=n(225),Ve=n.n(Fe);n(236);var Be=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(y.a)(this,Object(m.a)(t).apply(this,arguments))).bindKeyTarget=e.bindKeyTarget.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.keyTarget,n=void 0===t?document:t;this.mousetrap=new Ve.a(n),Object(_.forEach)(this.props.shortcuts,(function(t,n){var r=e.props,o=r.bindGlobal,a=r.eventName,i=o?"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 o.Children.count(e)?Object(o.createElement)("div",{ref:this.bindKeyTarget},e):null}}]),t}(o.Component),Ke=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(y.a)(this,Object(m.a)(t).apply(this,arguments))).container=Object(o.createRef)(),e.increase=e.increase.bind(Object(g.a)(e)),e.decrease=e.decrease.bind(Object(g.a)(e)),e.handleChange=e.handleChange.bind(Object(g.a)(e)),e.handleMouseDown=e.handleMouseDown.bind(Object(g.a)(e)),e.handleMouseUp=e.handleMouseUp.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.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,r=t.onChange,o=void 0===r?_.noop:r;e=parseInt(100*e,10);var a={h:n.h,s:n.s,l:n.l,a:(parseInt(100*n.a,10)+e)/100,source:"rgb"};o(a)}},{key:"decrease",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01,t=this.props,n=t.hsl,r=t.onChange,o=void 0===r?_.noop:r,a=parseInt(100*n.a,10)-parseInt(100*e,10),i={h:n.h,s:n.s,l:n.l,a:n.a<=e?0:a/100,source:"rgb"};o(i)}},{key:"handleChange",value:function(e){var t=this.props.onChange,n=void 0===t?_.noop:t,r=function(e,t,n){var r=Re(e,n),o=r.left,a=r.width,i=o<0?0:Math.round(100*o/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);r&&n(r,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!==D.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),r={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(o.createElement)(Be,{shortcuts:i},Object(o.createElement)("div",{className:"components-color-picker__alpha"},Object(o.createElement)("div",{className:"components-color-picker__alpha-gradient",style:r}),Object(o.createElement)("div",{className:"components-color-picker__alpha-bar",ref:this.container,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},Object(o.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}(o.Component),We=Object(M.pure)(Ke),$e=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(y.a)(this,Object(m.a)(t).apply(this,arguments))).container=Object(o.createRef)(),e.increase=e.increase.bind(Object(g.a)(e)),e.decrease=e.decrease.bind(Object(g.a)(e)),e.handleChange=e.handleChange.bind(Object(g.a)(e)),e.handleMouseDown=e.handleMouseDown.bind(Object(g.a)(e)),e.handleMouseUp=e.handleMouseUp.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.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,r=t.onChange,o=void 0===r?_.noop:r,a={h:n.h+e>=359?359:n.h+e,s:n.s,l:n.l,a:n.a,source:"rgb"};o(a)}},{key:"decrease",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=this.props,n=t.hsl,r=t.onChange,o=void 0===r?_.noop:r,a={h:n.h<=e?0:n.h-e,s:n.s,l:n.l,a:n.a,source:"rgb"};o(a)}},{key:"handleChange",value:function(e){var t=this.props.onChange,n=void 0===t?_.noop:t,r=function(e,t,n){var r=Re(e,n),o=r.left,a=r.width,i=o>=a?359:360*(100*o/a)/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);r&&n(r,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!==D.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,r=void 0===n?{}:n,a=t.instanceId,i={left:"".concat(100*r.h/360,"%")},s={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(o.createElement)(Be,{shortcuts:s},Object(o.createElement)("div",{className:"components-color-picker__hue"},Object(o.createElement)("div",{className:"components-color-picker__hue-gradient"}),Object(o.createElement)("div",{className:"components-color-picker__hue-bar",ref:this.container,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},Object(o.createElement)("div",{tabIndex:"0",role:"slider","aria-valuemax":"1","aria-valuemin":"359","aria-valuenow":r.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(o.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}(o.Component),Ue=Object(M.compose)(M.pure,M.withInstanceId)($e);var Ge=Object(M.withInstanceId)((function(e){var t=e.label,n=e.hideLabelFromVision,r=e.value,a=e.help,i=e.className,s=e.instanceId,c=e.onChange,l=e.type,u=void 0===l?"text":l,d=Object(P.a)(e,["label","hideLabelFromVision","value","help","className","instanceId","onChange","type"]),h="inspector-text-control-".concat(s);return Object(o.createElement)(je,{label:t,hideLabelFromVision:n,id:h,help:a,className:i},Object(o.createElement)("input",Object(T.a)({className:"components-text-control__input",type:u,id:h,value:r,onChange:function(e){return c(e.target.value)},"aria-describedby":a?h+"__help":void 0},d)))})),qe=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(y.a)(this,Object(m.a)(t).apply(this,arguments))).handleBlur=e.handleBlur.bind(Object(g.a)(e)),e.handleChange=e.handleChange.bind(Object(g.a)(e)),e.handleKeyDown=e.handleKeyDown.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"handleBlur",value:function(){var e=this.props,t=e.value,n=e.valueKey;(0,e.onChange)({source:e.source,state:"commit",value:t,valueKey:n})}},{key:"handleChange",value:function(e){var t=this.props,n=t.valueKey,r=t.onChange,o=t.source;e.length>4&&Le(e)?r({source:o,state:"commit",value:e,valueKey:n}):r({source:o,state:"draft",value:e,valueKey:n})}},{key:"handleKeyDown",value:function(e){var t=e.keyCode;if(t===D.ENTER||t===D.UP||t===D.DOWN){var n=this.props,r=n.value,o=n.valueKey;(0,n.onChange)({source:n.source,state:"commit",value:r,valueKey:o})}}},{key:"render",value:function(){var e=this,t=this.props,n=t.label,r=t.value,a=Object(P.a)(t,["label","value"]);return Object(o.createElement)(Ge,Object(T.a)({className:"components-color-picker__inputs-field",label:n,value:r,onChange:function(t){return e.handleChange(t)},onBlur:this.handleBlur,onKeyDown:this.handleKeyDown},Object(_.omit)(a,["onChange","valueKey","source"])))}}]),t}(o.Component),Ye=Object(M.pure)(te),Ze=function(e){function t(e){var n,r=e.hsl;Object(v.a)(this,t),n=Object(y.a)(this,Object(m.a)(t).apply(this,arguments));var o=1===r.a?"hex":"rgb";return n.state={view:o},n.toggleViews=n.toggleViews.bind(Object(g.a)(n)),n.resetDraftValues=n.resetDraftValues.bind(Object(g.a)(n)),n.handleChange=n.handleChange.bind(Object(g.a)(n)),n.normalizeValue=n.normalizeValue.bind(Object(g.a)(n)),n}return Object(k.a)(t,e),Object(O.a)(t,[{key:"toggleViews",value:function(){"hex"===this.state.view?(this.setState({view:"rgb"},this.resetDraftValues),Object(Oe.speak)(Object(S.__)("RGB mode active"))):"rgb"===this.state.view?(this.setState({view:"hsl"},this.resetDraftValues),Object(Oe.speak)(Object(S.__)("Hue/saturation/lightness mode active"))):"hsl"===this.state.view&&(1===this.props.hsl.a?(this.setState({view:"hex"},this.resetDraftValues),Object(Oe.speak)(Object(S.__)("Hex color mode active"))):(this.setState({view:"rgb"},this.resetDraftValues),Object(Oe.speak)(Object(S.__)("RGB mode active"))))}},{key:"resetDraftValues",value:function(){return this.props.onChange({state:"reset"})}},{key:"normalizeValue",value:function(e,t){return"a"!==e?t:t>0?0:t>1?1:Math.round(100*t)/100}},{key:"handleChange",value:function(e){var t=e.source,n=e.state,r=e.value,o=e.valueKey;this.props.onChange({source:t,state:n,valueKey:o,value:this.normalizeValue(o,r)})}},{key:"renderFields",value:function(){var e=this.props.disableAlpha,t=void 0!==e&&e;return"hex"===this.state.view?Object(o.createElement)("div",{className:"components-color-picker__inputs-fields"},Object(o.createElement)(qe,{source:this.state.view,label:Object(S.__)("Color value in hexadecimal"),valueKey:"hex",value:this.props.hex,onChange:this.handleChange})):"rgb"===this.state.view?Object(o.createElement)("fieldset",null,Object(o.createElement)("legend",{className:"screen-reader-text"},Object(S.__)("Color value in RGB")),Object(o.createElement)("div",{className:"components-color-picker__inputs-fields"},Object(o.createElement)(qe,{source:this.state.view,label:"r",valueKey:"r",value:this.props.rgb.r,onChange:this.handleChange,type:"number",min:"0",max:"255"}),Object(o.createElement)(qe,{source:this.state.view,label:"g",valueKey:"g",value:this.props.rgb.g,onChange:this.handleChange,type:"number",min:"0",max:"255"}),Object(o.createElement)(qe,{source:this.state.view,label:"b",valueKey:"b",value:this.props.rgb.b,onChange:this.handleChange,type:"number",min:"0",max:"255"}),t?null:Object(o.createElement)(qe,{source:this.state.view,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(o.createElement)("fieldset",null,Object(o.createElement)("legend",{className:"screen-reader-text"},Object(S.__)("Color value in HSL")),Object(o.createElement)("div",{className:"components-color-picker__inputs-fields"},Object(o.createElement)(qe,{source:this.state.view,label:"h",valueKey:"h",value:this.props.hsl.h,onChange:this.handleChange,type:"number",min:"0",max:"359"}),Object(o.createElement)(qe,{source:this.state.view,label:"s",valueKey:"s",value:this.props.hsl.s,onChange:this.handleChange,type:"number",min:"0",max:"100"}),Object(o.createElement)(qe,{source:this.state.view,label:"l",valueKey:"l",value:this.props.hsl.l,onChange:this.handleChange,type:"number",min:"0",max:"100"}),t?null:Object(o.createElement)(qe,{source:this.state.view,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(o.createElement)("div",{className:"components-color-picker__inputs-wrapper"},this.renderFields(),Object(o.createElement)("div",{className:"components-color-picker__inputs-toggle"},Object(o.createElement)(Ye,{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}(o.Component),Xe=function(e){function t(e){var n;return Object(v.a)(this,t),(n=Object(y.a)(this,Object(m.a)(t).call(this,e))).throttle=Object(_.throttle)((function(e,t,n){e(t,n)}),50),n.container=Object(o.createRef)(),n.saturate=n.saturate.bind(Object(g.a)(n)),n.brighten=n.brighten.bind(Object(g.a)(n)),n.handleChange=n.handleChange.bind(Object(g.a)(n)),n.handleMouseDown=n.handleMouseDown.bind(Object(g.a)(n)),n.handleMouseUp=n.handleMouseUp.bind(Object(g.a)(n)),n}return Object(k.a)(t,e),Object(O.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,r=t.onChange,o=void 0===r?_.noop:r,a=Object(_.clamp)(n.s+Math.round(100*e),0,100),i={h:n.h,s:a,v:n.v,a:n.a,source:"rgb"};o(i)}},{key:"brighten",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01,t=this.props,n=t.hsv,r=t.onChange,o=void 0===r?_.noop:r,a=Object(_.clamp)(n.v+Math.round(100*e),0,100),i={h:n.h,s:n.s,v:a,a:n.a,source:"rgb"};o(i)}},{key:"handleChange",value:function(e){var t=this.props.onChange,n=void 0===t?_.noop:t,r=function(e,t,n){var r=Re(e,n),o=r.top,a=r.left,i=r.width,s=r.height,c=a<0?0:100*a/i,l=o>=s?0:-100*o/s+100;return l<1&&(l=0),{h:t.hsl.h,s:c,v:l,a:t.hsl.a,source:"rgb"}}(e,this.props,this.container.current);this.throttle(n,r,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!==D.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,r=t.hsl,a=t.instanceId,i={top:"".concat(100-n.v,"%"),left:"".concat(n.s,"%")},s={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(o.createElement)(Be,{shortcuts:s},Object(o.createElement)("div",{style:{background:"hsl(".concat(r.h,",100%, 50%)")},className:"components-color-picker__saturation-color",ref:this.container,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange,role:"application"},Object(o.createElement)("div",{className:"components-color-picker__saturation-white"}),Object(o.createElement)("div",{className:"components-color-picker__saturation-black"}),Object(o.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(o.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}(o.Component),Qe=Object(M.compose)(M.pure,M.withInstanceId)(Xe),Je=function(e){return String(e).toLowerCase()},et=function(e){return e.hex?Le(e.hex):(t=e,n=0,r=0,Object(_.each)(["r","g","b","a","h","s","l","v"],(function(e){t[e]&&(n+=1,isNaN(t[e])||(r+=1))})),n===r&&t);var t,n,r},tt=function(e,t){var n=t.source,o=t.valueKey,a=t.value;return"hex"===n?Object(d.a)({source:n},n,a):Object(r.a)({source:n},Object(r.a)({},e[n],Object(d.a)({},o,a)))},nt=function(e){function t(e){var n,o=e.color,a=void 0===o?"0071a1":o;Object(v.a)(this,t),n=Object(y.a)(this,Object(m.a)(t).apply(this,arguments));var i=He(a);return n.state=Object(r.a)({},i,{draftHex:Je(i.hex),draftRgb:i.rgb,draftHsl:i.hsl}),n.commitValues=n.commitValues.bind(Object(g.a)(n)),n.setDraftValues=n.setDraftValues.bind(Object(g.a)(n)),n.resetDraftValues=n.resetDraftValues.bind(Object(g.a)(n)),n.handleInputChange=n.handleInputChange.bind(Object(g.a)(n)),n}return Object(k.a)(t,e),Object(O.a)(t,[{key:"commitValues",value:function(e){var t=this.props,n=t.oldHue,o=t.onChangeComplete,a=void 0===o?_.noop:o;if(et(e)){var i=He(e,e.h||n);this.setState(Object(r.a)({},i,{draftHex:Je(i.hex),draftHsl:i.hsl,draftRgb:i.rgb}),Object(_.debounce)(Object(_.partial)(a,i),100))}}},{key:"resetDraftValues",value:function(){this.setState({draftHex:this.state.hex,draftHsl:this.state.hsl,draftRgb:this.state.rgb})}},{key:"setDraftValues",value:function(e){switch(e.source){case"hex":this.setState({draftHex:Je(e.hex)});break;case"rgb":this.setState({draftRgb:e});break;case"hsl":this.setState({draftHsl:e})}}},{key:"handleInputChange",value:function(e){switch(e.state){case"reset":this.resetDraftValues();break;case"commit":var t=tt(this.state,e);(function(e){return"hex"===e.source&&!e.hex||(!("hsl"!==e.source||e.h&&e.s&&e.l)||!("rgb"!==e.source||e.r&&e.g&&e.b||e.h&&e.s&&e.v&&e.a||e.h&&e.s&&e.l&&e.a))})(t)||this.commitValues(t);break;case"draft":this.setDraftValues(tt(this.state,e))}}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.disableAlpha,r=this.state,a=r.color,i=r.hsl,s=r.hsv,c=r.rgb,l=r.draftHex,u=r.draftHsl,d=r.draftRgb,h=p()(t,{"components-color-picker":!0,"is-alpha-disabled":n,"is-alpha-enabled":!n});return Object(o.createElement)("div",{className:h},Object(o.createElement)("div",{className:"components-color-picker__saturation"},Object(o.createElement)(Qe,{hsl:i,hsv:s,onChange:this.commitValues})),Object(o.createElement)("div",{className:"components-color-picker__body"},Object(o.createElement)("div",{className:"components-color-picker__controls"},Object(o.createElement)("div",{className:"components-color-picker__swatch"},Object(o.createElement)("div",{className:"components-color-picker__active",style:{backgroundColor:a&&a.toRgbString()}})),Object(o.createElement)("div",{className:"components-color-picker__toggles"},Object(o.createElement)(Ue,{hsl:i,onChange:this.commitValues}),n?null:Object(o.createElement)(We,{rgb:c,hsl:i,onChange:this.commitValues}))),Object(o.createElement)(Ze,{rgb:d,hsl:u,hex:l,onChange:this.handleInputChange,disableAlpha:n})))}}]),t}(o.Component);function rt(e){var t=e.colors,n=e.disableCustomColors,r=void 0!==n&&n,a=e.value,i=e.onChange,s=e.className,c=e.clearable,l=void 0===c||c;function u(e){return function(){return i(a===e?void 0:e)}}var d=Object(S.__)("Custom color picker"),h=p()("components-color-palette",s);return Object(o.createElement)("div",{className:h},Object(_.map)(t,(function(e){var t=e.color,n=e.name,r={color:t},i=p()("components-color-palette__item",{"is-active":a===t});return Object(o.createElement)("div",{key:t,className:"components-color-palette__item-wrapper"},Object(o.createElement)(Q,{text:n||Object(S.sprintf)(Object(S.__)("Color code: %s"),t)},Object(o.createElement)("button",{type:"button",className:i,style:r,onClick:u(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(o.createElement)(J,{icon:"saved"}))})),Object(o.createElement)("div",{className:"components-color-palette__custom-clear-wrapper"},!r&&Object(o.createElement)(xe,{className:"components-color-palette__custom-color",contentClassName:"components-color-palette__picker",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(o.createElement)(E,{"aria-expanded":t,onClick:n,"aria-label":d,isLink:!0},Object(S.__)("Custom Color"))},renderContent:function(){return Object(o.createElement)(nt,{color:a,onChangeComplete:function(e){return i(e.hex)},disableAlpha:!0})}}),!!l&&Object(o.createElement)(E,{className:"components-color-palette__clear",type:"button",onClick:function(){return i(void 0)},isSmall:!0,isDefault:!0},Object(S.__)("Clear"))))}n(237);var ot=n(29),at=n.n(ot),it=n(226),st=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(y.a)(this,Object(m.a)(t).apply(this,arguments))).onChangeMoment=e.onChangeMoment.bind(Object(g.a)(e)),e.nodeRef=Object(o.createRef)(),e.keepFocusInside=e.keepFocusInside.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"keepFocusInside",value:function(){if(this.nodeRef.current&&(!document.activeElement||!this.nodeRef.current.contains(document.activeElement))){var e=this.nodeRef.current.querySelector(".DayPicker_focusRegion");if(!e)return;e.focus()}}},{key:"onChangeMoment",value:function(e){var t=this.props,n=t.currentDate,r=t.onChange,o=n?at()(n):at()(),a={hours:o.hours(),minutes:o.minutes(),seconds:0};r(e.set(a).format("YYYY-MM-DDTHH:mm:ss"))}},{key:"getMomentDate",value:function(e){return null===e?null:e?at()(e):at()()}},{key:"render",value:function(){var e=this.props,t=e.currentDate,n=e.isInvalidDate,r=this.getMomentDate(t);return Object(o.createElement)("div",{className:"components-datetime__date",ref:this.nodeRef},Object(o.createElement)(it.DayPickerSingleDateController,{date:r,daySize:30,focused:!0,hideKeyboardShortcutsPanel:!0,key:"datepicker-controller-".concat(r?r.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())},onPrevMonthClick:this.keepFocusInside,onNextMonthClick:this.keepFocusInside}))}}]),t}(o.Component),ct=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(y.a)(this,Object(m.a)(t).apply(this,arguments))).state={day:"",month:"",year:"",hours:"",minutes:"",am:!0,date:null},e.changeDate=e.changeDate.bind(Object(g.a)(e)),e.updateMonth=e.updateMonth.bind(Object(g.a)(e)),e.onChangeMonth=e.onChangeMonth.bind(Object(g.a)(e)),e.updateDay=e.updateDay.bind(Object(g.a)(e)),e.onChangeDay=e.onChangeDay.bind(Object(g.a)(e)),e.updateYear=e.updateYear.bind(Object(g.a)(e)),e.onChangeYear=e.onChangeYear.bind(Object(g.a)(e)),e.updateHours=e.updateHours.bind(Object(g.a)(e)),e.updateMinutes=e.updateMinutes.bind(Object(g.a)(e)),e.onChangeHours=e.onChangeHours.bind(Object(g.a)(e)),e.onChangeMinutes=e.onChangeMinutes.bind(Object(g.a)(e)),e.renderMonth=e.renderMonth.bind(Object(g.a)(e)),e.renderDay=e.renderDay.bind(Object(g.a)(e)),e.renderDayMonthFormat=e.renderDayMonthFormat.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentDidMount",value:function(){this.syncState(this.props)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.currentTime,r=t.is12Hour;n===e.currentTime&&r===e.is12Hour||this.syncState(this.props)}},{key:"changeDate",value:function(e){var t=e.clone().startOf("minute");this.setState({date:t}),this.props.onChange(e.format("YYYY-MM-DDTHH:mm:ss"))}},{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,r=t?at()(t):at()(),o=r.format("DD"),a=r.format("MM"),i=r.format("YYYY"),s=r.format("mm"),c=r.format("A"),l=r.format(n?"hh":"HH"),u=t?at()(t):at()();this.setState({day:o,month:a,year:i,minutes:s,hours:l,am:c,date:u})}},{key:"updateHours",value:function(){var e=this.props.is12Hour,t=this.state,n=t.am,r=t.hours,o=t.date,a=parseInt(r,10);if(!Object(_.isInteger)(a)||e&&(a<1||a>12)||!e&&(a<0||a>23))this.syncState(this.props);else{var i=e?o.clone().hours("AM"===n?a%12:(a%12+12)%24):o.clone().hours(a);this.changeDate(i)}}},{key:"updateMinutes",value:function(){var e=this.state,t=e.minutes,n=e.date,r=parseInt(t,10);if(!Object(_.isInteger)(r)||r<0||r>59)this.syncState(this.props);else{var o=n.clone().minutes(r);this.changeDate(o)}}},{key:"updateDay",value:function(){var e=this.state,t=e.day,n=e.date,r=parseInt(t,10);if(!Object(_.isInteger)(r)||r<1||r>31)this.syncState(this.props);else{var o=n.clone().date(r);this.changeDate(o)}}},{key:"updateMonth",value:function(){var e=this.state,t=e.month,n=e.date,r=parseInt(t,10);if(!Object(_.isInteger)(r)||r<1||r>12)this.syncState(this.props);else{var o=n.clone().month(r-1);this.changeDate(o)}}},{key:"updateYear",value:function(){var e=this.state,t=e.year,n=e.date,r=parseInt(t,10);if(!Object(_.isInteger)(r)||r<0||r>9999)this.syncState(this.props);else{var o=n.clone().year(r);this.changeDate(o)}}},{key:"updateAmPm",value:function(e){var t=this;return function(){var n,r=t.state,o=r.am,a=r.date,i=r.hours;o!==e&&(n="PM"===e?a.clone().hours((parseInt(i,10)%12+12)%24):a.clone().hours(parseInt(i,10)%12),t.changeDate(n))}}},{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){var t=e.target.value;this.setState({minutes:""===t?"":("0"+t).slice(-2)})}},{key:"renderMonth",value:function(e){return Object(o.createElement)("div",{key:"render-month",className:"components-datetime__time-field components-datetime__time-field-month"},Object(o.createElement)("select",{"aria-label":Object(S.__)("Month"),className:"components-datetime__time-field-month-select",value:e,onChange:this.onChangeMonth,onBlur:this.updateMonth},Object(o.createElement)("option",{value:"01"},Object(S.__)("January")),Object(o.createElement)("option",{value:"02"},Object(S.__)("February")),Object(o.createElement)("option",{value:"03"},Object(S.__)("March")),Object(o.createElement)("option",{value:"04"},Object(S.__)("April")),Object(o.createElement)("option",{value:"05"},Object(S.__)("May")),Object(o.createElement)("option",{value:"06"},Object(S.__)("June")),Object(o.createElement)("option",{value:"07"},Object(S.__)("July")),Object(o.createElement)("option",{value:"08"},Object(S.__)("August")),Object(o.createElement)("option",{value:"09"},Object(S.__)("September")),Object(o.createElement)("option",{value:"10"},Object(S.__)("October")),Object(o.createElement)("option",{value:"11"},Object(S.__)("November")),Object(o.createElement)("option",{value:"12"},Object(S.__)("December"))))}},{key:"renderDay",value:function(e){return Object(o.createElement)("div",{key:"render-day",className:"components-datetime__time-field components-datetime__time-field-day"},Object(o.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,r=t.month,o=[this.renderDay(n),this.renderMonth(r)];return e?o:o.reverse()}},{key:"render",value:function(){var e=this.props.is12Hour,t=this.state,n=t.year,r=t.minutes,a=t.hours,i=t.am;return Object(o.createElement)("div",{className:p()("components-datetime__time")},Object(o.createElement)("fieldset",null,Object(o.createElement)("legend",{className:"components-datetime__time-legend invisible"},Object(S.__)("Date")),Object(o.createElement)("div",{className:"components-datetime__time-wrapper"},this.renderDayMonthFormat(e),Object(o.createElement)("div",{className:"components-datetime__time-field components-datetime__time-field-year"},Object(o.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(o.createElement)("fieldset",null,Object(o.createElement)("legend",{className:"components-datetime__time-legend invisible"},Object(S.__)("Time")),Object(o.createElement)("div",{className:"components-datetime__time-wrapper"},Object(o.createElement)("div",{className:"components-datetime__time-field components-datetime__time-field-time"},Object(o.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(o.createElement)("span",{className:"components-datetime__time-separator","aria-hidden":"true"},":"),Object(o.createElement)("input",{"aria-label":Object(S.__)("Minutes"),className:"components-datetime__time-field-minutes-input",type:"number",min:0,max:59,value:r,onChange:this.onChangeMinutes,onBlur:this.updateMinutes})),e&&Object(o.createElement)("div",{className:"components-datetime__time-field components-datetime__time-field-am-pm"},Object(o.createElement)(E,{"aria-pressed":"AM"===i,isDefault:!0,className:"components-datetime__time-am-button",isToggled:"AM"===i,onClick:this.updateAmPm("AM")},Object(S.__)("AM")),Object(o.createElement)(E,{"aria-pressed":"PM"===i,isDefault:!0,className:"components-datetime__time-pm-button",isToggled:"PM"===i,onClick:this.updateAmPm("PM")},Object(S.__)("PM"))))))}}]),t}(o.Component),lt=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(y.a)(this,Object(m.a)(t).apply(this,arguments))).state={calendarHelpIsVisible:!1},e.onClickDescriptionToggle=e.onClickDescriptionToggle.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.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,r=e.onChange;return Object(o.createElement)("div",{className:"components-datetime"},!this.state.calendarHelpIsVisible&&Object(o.createElement)(o.Fragment,null,Object(o.createElement)(ct,{currentTime:t,onChange:r,is12Hour:n}),Object(o.createElement)(st,{currentDate:t,onChange:r})),this.state.calendarHelpIsVisible&&Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{className:"components-datetime__calendar-help"},Object(o.createElement)("h4",null,Object(S.__)("Click to Select")),Object(o.createElement)("ul",null,Object(o.createElement)("li",null,Object(S.__)("Click the right or left arrows to select other months in the past or the future.")),Object(o.createElement)("li",null,Object(S.__)("Click the desired day to select it."))),Object(o.createElement)("h4",null,Object(S.__)("Navigating with a keyboard")),Object(o.createElement)("ul",null,Object(o.createElement)("li",null,Object(o.createElement)("abbr",{"aria-label":Object(S._x)("Enter","keyboard button")},"↵")," ",Object(o.createElement)("span",null,Object(S.__)("Select the date in focus."))),Object(o.createElement)("li",null,Object(o.createElement)("abbr",{"aria-label":Object(S.__)("Left and Right Arrows")},"←/→")," ",Object(S.__)("Move backward (left) or forward (right) by one day.")),Object(o.createElement)("li",null,Object(o.createElement)("abbr",{"aria-label":Object(S.__)("Up and Down Arrows")},"↑/↓")," ",Object(S.__)("Move backward (up) or forward (down) by one week.")),Object(o.createElement)("li",null,Object(o.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(o.createElement)("li",null,Object(o.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(o.createElement)(E,{isSmall:!0,onClick:this.onClickDescriptionToggle},Object(S.__)("Close")))),!this.state.calendarHelpIsVisible&&Object(o.createElement)(E,{className:"components-datetime__date-help-button",isLink:!0,onClick:this.onClickDescriptionToggle},Object(S.__)("Calendar Help")))}}]),t}(o.Component),ut=Object(o.createContext)(!1),dt=ut.Consumer,ht=ut.Provider,ft=["BUTTON","FIELDSET","INPUT","OPTGROUP","OPTION","SELECT","TEXTAREA"],pt=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(y.a)(this,Object(m.a)(t).apply(this,arguments))).bindNode=e.bindNode.bind(Object(g.a)(e)),e.disable=e.disable.bind(Object(g.a)(e)),e.debouncedDisable=Object(_.debounce)(e.disable,{leading:!0}),e}return Object(k.a)(t,e),Object(O.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(_.includes)(ft,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(P.a)(e,["className"]);return Object(o.createElement)(ht,{value:!0},Object(o.createElement)("div",Object(T.a)({ref:this.bindNode,className:p()(t,"components-disabled")},n),this.props.children))}}]),t}(o.Component);pt.Consumer=dt;var bt=pt,vt=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(y.a)(this,Object(m.a)(t).apply(this,arguments))).onDragStart=e.onDragStart.bind(Object(g.a)(e)),e.onDragOver=e.onDragOver.bind(Object(g.a)(e)),e.onDragEnd=e.onDragEnd.bind(Object(g.a)(e)),e.resetDragState=e.resetDragState.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentWillUnmount",value:function(){this.resetDragState()}},{key:"onDragEnd",value:function(e){var t=this.props.onDragEnd,n=void 0===t?_.noop:t;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:"onDragStart",value:function(e){var t=this.props,n=t.elementId,r=t.transferData,o=t.onDragStart,a=void 0===o?_.noop:o,i=document.getElementById(n);if(i){if("function"==typeof e.dataTransfer.setDragImage){var s=document.createElement("div");s.id="drag-image-".concat(n),s.classList.add("components-draggable__invisible-drag-image"),document.body.appendChild(s),e.dataTransfer.setDragImage(s,0,0),this.props.setTimeout((function(){document.body.removeChild(s)}))}e.dataTransfer.setData("text",JSON.stringify(r));var c=i.getBoundingClientRect(),l=i.parentNode,u=parseInt(c.top,10),d=parseInt(c.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(c.width+40,"px"),c.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(w.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),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),document.body.classList.remove("is-dragging-components-draggable")}},{key:"render",value:function(){return(0,this.props.children)({onDraggableStart:this.onDragStart,onDraggableEnd:this.onDragEnd})}}]),t}(o.Component),yt=Object(M.withSafeTimeout)(vt),mt=Object(o.createContext)({addDropZone:function(){},removeDropZone:function(){}}),gt=mt.Provider,Ot=mt.Consumer,kt=function(e){var t=e.dataTransfer;if(t){if(Object(_.includes)(t.types,"Files"))return"file";if(Object(_.includes)(t.types,"text/html"))return"html"}return"default"},wt=function(e,t){return"file"===e&&t.onFilesDrop||"html"===e&&t.onHTMLDrop||"default"===e&&t.onDrop},_t=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(y.a)(this,Object(m.a)(t).apply(this,arguments))).onDragOver=e.onDragOver.bind(Object(g.a)(e)),e.onDrop=e.onDrop.bind(Object(g.a)(e)),e.addDropZone=e.addDropZone.bind(Object(g.a)(e)),e.removeDropZone=e.removeDropZone.bind(Object(g.a)(e)),e.resetDragState=e.resetDragState.bind(Object(g.a)(e)),e.toggleDraggingOverDocument=Object(_.throttle)(e.toggleDraggingOverDocument.bind(Object(g.a)(e)),200),e.dropZones=[],e.dropZoneCallbacks={addDropZone:e.addDropZone,removeDropZone:e.removeDropZone},e.state={hoveredDropZone:-1,isDraggingOverDocument:!1,position:null},e}return Object(k.a)(t,e),Object(O.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(_.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,position: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,r=window.CustomEvent&&e instanceof window.CustomEvent?e.detail:e,o=Object(_.filter)(this.dropZones,(function(e){return wt(t,e)&&function(e,t,n){var r=e.getBoundingClientRect();return r.bottom!==r.top&&r.left!==r.right&&(t>=r.left&&t<=r.right&&n>=r.top&&n<=r.bottom)}(e.element,r.clientX,r.clientY)})),a=Object(_.find)(o,(function(e){return!Object(_.some)(o,(function(t){return t!==e&&e.element.parentElement.contains(t.element)}))})),i=this.dropZones.indexOf(a),s=null;if(a){var c=a.element.getBoundingClientRect();s={x:r.clientX-c.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,r=n.cycle,o=void 0===r||r,a=n.eventToOffset,i=n.onNavigate,s=void 0===i?_.noop:i,c=n.stopNavigationEvents,l=a(e);if(void 0!==l&&c&&(e.stopImmediatePropagation(),"menuitem"===e.target.getAttribute("role")&&e.preventDefault()),l){var u=t(document.activeElement);if(u){var d=u.index,h=u.focusables,f=o?function(e,t,n){var r=e+n;return r<0?t+r:r>=t?r-t:r}(d,h.length,l):d+l;f>=0&&f0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object(r.a)({},e,t);return t.className&&e.className&&(n.className=p()(t.className,e.className)),n}var zt=function(e){var t,n=e.children,r=e.className,a=e.controls,i=e.hasArrowIndicator,s=void 0!==i&&i,c=e.icon,l=void 0===c?"menu":c,u=e.label,d=e.popoverProps,h=e.toggleProps,f=e.menuProps,b=e.menuLabel,v=e.position;if(b&&N()("`menuLabel` prop in `DropdownComponent`",{alternative:"`menuProps` object and its `aria-label` property",plugin:"Gutenberg"}),v&&N()("`position` prop in `DropdownComponent`",{alternative:"`popoverProps` object and its `position` property",plugin:"Gutenberg"}),Object(_.isEmpty)(a)&&!Object(_.isFunction)(n))return null;Object(_.isEmpty)(a)||(t=a,Array.isArray(t[0])||(t=[t]));var y=Tt({className:"components-dropdown-menu__popover",position:v},d);return Object(o.createElement)(xe,{className:p()("components-dropdown-menu",r),popoverProps:y,renderToggle:function(e){var t=e.isOpen,n=e.onToggle,r=Tt({className:p()("components-dropdown-menu__toggle",{"is-opened":t}),tooltip:u},h);return Object(o.createElement)(te,Object(T.a)({},r,{icon:l,onClick:n,onKeyDown:function(e){t||e.keyCode!==D.DOWN||(e.preventDefault(),e.stopPropagation(),n())},"aria-haspopup":"true","aria-expanded":t,label:u}),(!l||s)&&Object(o.createElement)("span",{className:"components-dropdown-menu__indicator"}))},renderContent:function(e){var r=Tt({"aria-label":b||u,className:"components-dropdown-menu__menu"},f);return Object(o.createElement)(Pt,Object(T.a)({},r,{role:"menu"}),Object(_.isFunction)(n)?n(e):null,Object(_.flatMap)(t,(function(t,n){return t.map((function(t,r){return Object(o.createElement)(te,{key:[n,r].join(),onClick:function(n){n.stopPropagation(),e.onClose(),t.onClick&&t.onClick()},className:p()("components-dropdown-menu__menu-item",{"has-separator":n>0&&0===r,"is-active":t.isActive}),icon:t.icon,role:"menuitem",disabled:t.isDisabled},t.title)}))})))}})};var It=Object(o.forwardRef)((function(e,t){var n=e.href,r=e.children,a=e.className,i=e.rel,s=void 0===i?"":i,c=Object(P.a)(e,["href","children","className","rel"]);s=Object(_.uniq)(Object(_.compact)([].concat(Object(w.a)(s.split(" ")),["external","noreferrer","noopener"]))).join(" ");var l=p()("components-external-link",a);return(Object(o.createElement)("a",Object(T.a)({},c,{className:l,href:n,target:"_blank",rel:s,ref:t}),r,Object(o.createElement)("span",{className:"screen-reader-text"},Object(S.__)("(opens in a new tab)")),Object(o.createElement)(J,{icon:"external",className:"components-external-link__icon"})))})),xt=function(e){function t(e){var n;return Object(v.a)(this,t),(n=Object(y.a)(this,Object(m.a)(t).call(this,e))).onMouseMove=n.onMouseMove.bind(Object(g.a)(n)),n.state={isDragging:!1,bounds:{},percentages:e.value},n.containerRef=Object(o.createRef)(),n.imageRef=Object(o.createRef)(),n.horizontalPositionChanged=n.horizontalPositionChanged.bind(Object(g.a)(n)),n.verticalPositionChanged=n.verticalPositionChanged.bind(Object(g.a)(n)),n.onLoad=n.onLoad.bind(Object(g.a)(n)),n}return Object(k.a)(t,e),Object(O.a)(t,[{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,r=this.pickerDimensions(),o=r.width/t,a=r.height/n;return a>=o?(e.width=e.right=r.width,e.height=n*o,e.top=(r.height-e.height)/2,e.bottom=e.top+e.height):(e.height=e.bottom=r.height,e.width=t*a,e.left=(r.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,r=t.bounds,o=this.props.onChange;if(n){var a=this.pickerDimensions(),i={left:e.pageX-a.left,top:e.pageY-a.top},s=Math.max(r.left,Math.min(i.left,r.right)),c=Math.max(r.top,Math.min(i.top,r.bottom)),l={x:(s-r.left)/(a.width-2*r.left),y:(c-r.top)/(a.height-2*r.top)};this.setState({percentages:l},(function(){o({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,r=this.state.percentages,o=Math.max(Math.min(parseInt(t),100),0);r[e]=o?o/100:0,this.setState({percentages:r},(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,r=t.url,a=t.value,i=t.label,c=t.help,l=t.className,d=this.state,h=d.bounds,f=d.isDragging,b=d.percentages,v=this.pickerDimensions(),y={left:a.x*(v.width-2*h.left)+h.left,top:a.y*(v.height-2*h.top)+h.top},m={left:"".concat(y.left,"px"),top:"".concat(y.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),w="inspector-focal-point-picker-control-vertical-position-".concat(n);return Object(o.createElement)(je,{label:i,id:O,help:c,className:l},Object(o.createElement)("div",{className:"components-focal-point-picker-wrapper"},Object(o.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(o.createElement)("img",{alt:"Dimensions helper",onLoad:this.onLoad,ref:this.imageRef,src:r,draggable:"false"}),Object(o.createElement)("div",{className:g,style:m},Object(o.createElement)(u,{className:"components-focal-point-picker__icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30"},Object(o.createElement)(s,{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(o.createElement)(s,{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(o.createElement)("div",{className:"components-focal-point-picker_position-display-container"},Object(o.createElement)(je,{label:Object(S.__)("Horizontal Pos."),id:k},Object(o.createElement)("input",{className:"components-text-control__input",id:k,max:100,min:0,onChange:this.horizontalPositionChanged,type:"number",value:this.fractionToPercentage(b.x)}),Object(o.createElement)("span",null,"%")),Object(o.createElement)(je,{label:Object(S.__)("Vertical Pos."),id:w},Object(o.createElement)("input",{className:"components-text-control__input",id:w,max:100,min:0,onChange:this.verticalPositionChanged,type:"number",value:this.fractionToPercentage(b.y)}),Object(o.createElement)("span",null,"%"))))}}]),t}(o.Component);xt.defaultProps={url:null,value:{x:.5,y:.5},onChange:function(){}};var Nt=Object(M.compose)([M.withInstanceId,G])(xt),At=window.FocusEvent,Ht=function(e){function t(e){var n;return Object(v.a)(this,t),(n=Object(y.a)(this,Object(m.a)(t).apply(this,arguments))).checkFocus=n.checkFocus.bind(Object(g.a)(n)),n.node=e.iframeRef||Object(o.createRef)(),n}return Object(k.a)(t,e),Object(O.a)(t,[{key:"checkFocus",value:function(){var e=this.node.current;if(document.activeElement===e){var t=new At("focus",{bubbles:!0});e.dispatchEvent(t);var n=this.props.onFocus;n&&n(t)}}},{key:"render",value:function(){return Object(o.createElement)("iframe",Object(T.a)({ref:this.node},Object(_.omit)(this.props,["iframeRef","onFocus"])))}}]),t}(o.Component),Rt=Object(M.withGlobalEvents)({blur:"checkFocus"})(Ht);var Lt=Object(M.compose)([M.withInstanceId,Object(M.withState)({currentInput:null})])((function(e){var t=e.className,n=e.currentInput,r=e.label,a=e.value,i=e.instanceId,s=e.onChange,c=e.beforeIcon,l=e.afterIcon,u=e.help,d=e.allowReset,h=e.initialPosition,f=e.min,b=e.max,v=e.setState,y=Object(P.a)(e,["className","currentInput","label","value","instanceId","onChange","beforeIcon","afterIcon","help","allowReset","initialPosition","min","max","setState"]),m="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(),s(""===t?void 0:parseFloat(t))):v({currentInput:t})},w=Object(_.isFinite)(g)?g:h||"";return Object(o.createElement)(je,{label:r,id:m,help:u,className:p()("components-range-control",t)},c&&Object(o.createElement)(J,{icon:c}),Object(o.createElement)("input",Object(T.a)({className:"components-range-control__slider",id:m,type:"range",value:w,onChange:k,"aria-describedby":u?m+"__help":void 0,min:f,max:b},y)),l&&Object(o.createElement)(J,{icon:l}),Object(o.createElement)("input",Object(T.a)({className:"components-range-control__number",type:"number",onChange:k,"aria-label":r,value:g,min:f,max:b,onBlur:O},y)),d&&Object(o.createElement)(E,{onClick:function(){O(),s()},disabled:void 0===a,isSmall:!0,isDefault:!0,className:"components-range-control__reset"},Object(S.__)("Reset")))}));var Ft=Object(M.withInstanceId)((function(e){var t=e.help,n=e.instanceId,r=e.label,a=e.multiple,i=void 0!==a&&a,s=e.onChange,c=e.options,l=void 0===c?[]:c,u=e.className,d=e.hideLabelFromVision,h=Object(P.a)(e,["help","instanceId","label","multiple","onChange","options","className","hideLabelFromVision"]),f="inspector-select-control-".concat(n);return!Object(_.isEmpty)(l)&&Object(o.createElement)(je,{label:r,hideLabelFromVision:d,id:f,help:t,className:u},Object(o.createElement)("select",Object(T.a)({id:f,className:"components-select-control__input",onChange:function(e){if(i){var t=Object(w.a)(e.target.options).filter((function(e){return e.selected})).map((function(e){return e.value}));s(t)}else s(e.target.value)},"aria-describedby":t?"".concat(f,"__help"):void 0,multiple:i},h),l.map((function(e,t){return Object(o.createElement)("option",{key:"".concat(e.label,"-").concat(e.value,"-").concat(t),value:e.value,disabled:e.disabled},e.label)}))))}));function Vt(e,t){if(t){var n=e.find((function(e){return e.size===t}));return n?n.slug:"custom"}return"normal"}var Bt=function(e){var t,n=e.fallbackFontSize,r=e.fontSizes,a=void 0===r?[]:r,i=e.disableCustomFontSizes,s=void 0!==i&&i,c=e.onChange,l=e.value,u=e.withSlider,d=void 0!==u&&u,f=Object(o.useState)(Vt(a,l)),p=Object(h.a)(f,2),b=p[0],v=p[1];return s&&!a.length?null:Object(o.createElement)("fieldset",null,Object(o.createElement)("legend",null,Object(S.__)("Font Size")),Object(o.createElement)("div",{className:"components-font-size-picker__controls"},a.length>0&&Object(o.createElement)(Ft,{className:"components-font-size-picker__select",label:"Choose preset",hideLabelFromVision:!0,value:b,onChange:function(e){v(e);var t=a.find((function(t){return t.slug===e}));t&&c(t.size)},options:(t=a,[].concat(Object(w.a)(t.map((function(e){return{value:e.slug,label:e.name}}))),[{value:"custom",label:Object(S.__)("Custom")}]))}),!d&&!s&&Object(o.createElement)("input",{className:"components-range-control__number",type:"number",onChange:function(e){var t=e.target.value;v(Vt(a,Number(t))),c(""!==t?Number(t):void 0)},"aria-label":Object(S.__)("Custom"),value:l||""}),Object(o.createElement)(E,{className:"components-color-palette__clear",type:"button",disabled:void 0===l,onClick:function(){c(void 0),v(Vt(a,void 0))},isSmall:!0,isDefault:!0},Object(S.__)("Reset"))),d&&Object(o.createElement)(Lt,{className:"components-font-size-picker__custom-input",label:Object(S.__)("Custom Size"),value:l||"",initialPosition:n,onChange:c,min:12,max:100,beforeIcon:"editor-textcolor",afterIcon:"editor-textcolor"}))},Kt=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(y.a)(this,Object(m.a)(t).apply(this,arguments))).openFileDialog=e.openFileDialog.bind(Object(g.a)(e)),e.bindInput=e.bindInput.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.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.accept,n=e.children,r=e.icon,a=void 0===r?"upload":r,i=e.multiple,s=void 0!==i&&i,c=e.onChange,l=e.render,u=Object(P.a)(e,["accept","children","icon","multiple","onChange","render"]),d=l?l({openFileDialog:this.openFileDialog}):Object(o.createElement)(te,Object(T.a)({icon:a,onClick:this.openFileDialog},u),n);return Object(o.createElement)("div",{className:"components-form-file-upload"},d,Object(o.createElement)("input",{type:"file",ref:this.bindInput,multiple:s,style:{display:"none"},accept:t,onChange:c}))}}]),t}(o.Component);var Wt=function(e){var t=e.className,n=e.checked,r=e.id,a=e.onChange,i=void 0===a?_.noop:a,c=Object(P.a)(e,["className","checked","id","onChange"]),l=p()("components-form-toggle",t,{"is-checked":n});return Object(o.createElement)("span",{className:l},Object(o.createElement)("input",Object(T.a)({className:"components-form-toggle__input",id:r,type:"checkbox",checked:n,onChange:i},c)),Object(o.createElement)("span",{className:"components-form-toggle__track"}),Object(o.createElement)("span",{className:"components-form-toggle__thumb"}),n?Object(o.createElement)(u,{className:"components-form-toggle__on",width:"2",height:"6",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2 6"},Object(o.createElement)(s,{d:"M0 0h2v6H0z"})):Object(o.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(o.createElement)(s,{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"})))},$t=n(31);var Ut=Object(M.withInstanceId)((function(e){var t=e.value,n=e.status,r=e.title,a=e.displayTransform,i=e.isBorderless,s=void 0!==i&&i,c=e.disabled,l=void 0!==c&&c,u=e.onClickRemove,d=void 0===u?_.noop:u,h=e.onMouseEnter,f=e.onMouseLeave,b=e.messages,v=e.termPosition,y=e.termsCount,m=e.instanceId,g=p()("components-form-token-field__token",{"is-error":"error"===n,"is-success":"success"===n,"is-validating":"validating"===n,"is-borderless":s,"is-disabled":l}),O=a(t),k=Object(S.sprintf)(Object(S.__)("%1$s (%2$s of %3$s)"),O,v,y);return Object(o.createElement)("span",{className:g,onMouseEnter:h,onMouseLeave:f,title:r},Object(o.createElement)("span",{className:"components-form-token-field__token-text",id:"components-form-token-field__token-text-".concat(m)},Object(o.createElement)("span",{className:"screen-reader-text"},k),Object(o.createElement)("span",{"aria-hidden":"true"},O)),Object(o.createElement)(te,{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(m)}))})),Gt=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(y.a)(this,Object(m.a)(t).apply(this,arguments))).onChange=e.onChange.bind(Object(g.a)(e)),e.bindInput=e.bindInput.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.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,r=e.instanceId,a=e.selectedSuggestionIndex,i=Object(P.a)(e,["value","isExpanded","instanceId","selectedSuggestionIndex"]),s=t.length+1;return Object(o.createElement)("input",Object(T.a)({ref:this.bindInput,id:"components-form-token-input-".concat(r),type:"text"},i,{value:t,onChange:this.onChange,size:s,className:"components-form-token-field__input",role:"combobox","aria-expanded":n,"aria-autocomplete":"list","aria-owns":n?"components-form-token-suggestions-".concat(r):void 0,"aria-activedescendant":-1!==a?"components-form-token-suggestions-".concat(r,"-").concat(a):void 0,"aria-describedby":"components-form-token-suggestions-howto-".concat(r)}))}}]),t}(o.Component),qt=n(68),Yt=n.n(qt),Zt=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(y.a)(this,Object(m.a)(t).apply(this,arguments))).handleMouseDown=e.handleMouseDown.bind(Object(g.a)(e)),e.bindList=e.bindList.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentDidUpdate",value:function(){var e=this;this.props.selectedIndex>-1&&this.props.scrollIntoView&&(this.scrollingIntoView=!0,Yt()(this.list.children[this.props.selectedIndex],this.list,{onlyScrollIfNeeded:!0}),this.props.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(o.createElement)("ul",{ref:this.bindList,className:"components-form-token-field__suggestions-list",id:"components-form-token-suggestions-".concat(this.props.instanceId),role:"listbox"},Object(_.map)(this.props.suggestions,(function(t,n){var r=e.computeSuggestionMatch(t),a=p()("components-form-token-field__suggestion",{"is-selected":n===e.props.selectedIndex});return Object(o.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},r?Object(o.createElement)("span",{"aria-label":e.props.displayTransform(t)},r.suggestionBeforeMatch,Object(o.createElement)("strong",{className:"components-form-token-field__suggestion-match"},r.suggestionMatch),r.suggestionAfterMatch):e.props.displayTransform(t))})))}}]),t}(o.Component);Zt.defaultProps={match:"",onHover:function(){},onSelect:function(){},suggestions:Object.freeze([])};var Xt=Object(M.withSafeTimeout)(Zt),Qt={incompleteTokenValue:"",inputOffsetFromEnd:0,isActive:!1,isExpanded:!1,selectedSuggestionIndex:-1,selectedSuggestionScroll:!1},Jt=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(y.a)(this,Object(m.a)(t).apply(this,arguments))).state=Qt,e.onKeyDown=e.onKeyDown.bind(Object(g.a)(e)),e.onKeyPress=e.onKeyPress.bind(Object(g.a)(e)),e.onFocus=e.onFocus.bind(Object(g.a)(e)),e.onBlur=e.onBlur.bind(Object(g.a)(e)),e.deleteTokenBeforeInput=e.deleteTokenBeforeInput.bind(Object(g.a)(e)),e.deleteTokenAfterInput=e.deleteTokenAfterInput.bind(Object(g.a)(e)),e.addCurrentToken=e.addCurrentToken.bind(Object(g.a)(e)),e.onContainerTouched=e.onContainerTouched.bind(Object(g.a)(e)),e.renderToken=e.renderToken.bind(Object(g.a)(e)),e.onTokenClickRemove=e.onTokenClickRemove.bind(Object(g.a)(e)),e.onSuggestionHovered=e.onSuggestionHovered.bind(Object(g.a)(e)),e.onSuggestionSelected=e.onSuggestionSelected.bind(Object(g.a)(e)),e.onInputChange=e.onInputChange.bind(Object(g.a)(e)),e.bindInput=e.bindInput.bind(Object(g.a)(e)),e.bindTokensAndInput=e.bindTokensAndInput.bind(Object(g.a)(e)),e.updateSuggestions=e.updateSuggestions.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentDidUpdate",value:function(e){this.state.isActive&&!this.input.hasFocus()&&this.input.focus();var t=this.props,n=t.suggestions,r=t.value,o=!I()(n,e.suggestions);(o||r!==e.value)&&this.updateSuggestions(o)}},{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(Qt)}},{key:"onKeyDown",value:function(e){var t=!1;switch(e.keyCode){case D.BACKSPACE:t=this.handleDeleteKey(this.deleteTokenBeforeInput);break;case D.ENTER:t=this.addCurrentToken();break;case D.LEFT:t=this.handleLeftArrowKey();break;case D.UP:t=this.handleUpArrowKey();break;case D.RIGHT:t=this.handleRightArrowKey();break;case D.DOWN:t=this.handleDownArrowKey();break;case D.DELETE:t=this.handleDeleteKey(this.deleteTokenAfterInput);break;case D.SPACE:this.props.tokenizeOnSpace&&(t=this.addCurrentToken());break;case D.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]+/,r=t.split(n),o=Object(_.last)(r)||"";r.length>1&&this.addNewTokens(r.slice(0,-1)),this.setState({incompleteTokenValue:o},this.updateSuggestions),this.props.onInputChange(o)}},{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 r=Object(_.clone)(this.props.value);r.splice.apply(r,[this.getIndexOfInput(),0].concat(n)),this.props.onChange(r)}}},{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($t.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,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.props.maxSuggestions,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.props.saveTransform,a=o(e),i=[],s=[];return 0===a.length?t=Object(_.difference)(t,n):(a=a.toLocaleLowerCase(),Object(_.each)(t,(function(e){var t=e.toLocaleLowerCase().indexOf(a);-1===n.indexOf(e)&&(0===t?i.push(e):t>0&&s.push(e))})),t=i.concat(s)),Object(_.take)(t,r)}},{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(_.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:"updateSuggestions",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.state.incompleteTokenValue,n=t.trim().length>1,r=this.getMatchingSuggestions(t),o=r.length>0,a={isExpanded:n&&o};if(e&&(a.selectedSuggestionIndex=-1,a.selectedSuggestionScroll=!1),this.setState(a),n){var i=this.props.debouncedSpeak,s=o?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.",r.length),r.length):Object(S.__)("No results.");i(s,"assertive")}}},{key:"renderTokensAndInput",value:function(){var e=Object(_.map)(this.props.value,this.renderToken);return e.splice(this.getIndexOfInput(),0,this.renderInput()),e}},{key:"renderToken",value:function(e,t,n){var r=this.getTokenValue(e),a=e.status?e.status:void 0,i=t+1,s=n.length;return Object(o.createElement)(Ut,{key:"token-"+r,value:r,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:s,termPosition:i})}},{key:"renderInput",value:function(){var e=this.props,t=e.autoCapitalize,n=e.autoComplete,a=e.maxLength,i=e.value,s={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||(s=Object(r.a)({},s,{onChange:this.onInputChange})),Object(o.createElement)(Gt,s)}},{key:"render",value:function(){var e=this.props,t=e.disabled,n=e.label,r=void 0===n?Object(S.__)("Add item"):n,a=e.instanceId,i=e.className,s=this.state.isExpanded,c=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(o.createElement)("div",l,Object(o.createElement)("label",{htmlFor:"components-form-token-input-".concat(a),className:"components-form-token-field__label"},r),Object(o.createElement)("div",{ref:this.bindTokensAndInput,className:c,tabIndex:"-1",onMouseDown:this.onContainerTouched,onTouchStart:this.onContainerTouched},this.renderTokensAndInput(),s&&Object(o.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(o.createElement)("p",{id:"components-form-token-suggestions-howto-".concat(a),className:"components-form-token-field__help"},this.props.tokenizeOnSpace?Object(S.__)("Separate with commas, spaces, or the Enter key."):Object(S.__)("Separate with commas or the Enter key.")))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.disabled&&t.isActive?{isActive:!1,incompleteTokenValue:""}:null}}]),t}(o.Component);Jt.defaultProps={suggestions:Object.freeze([]),maxSuggestions:100,value:Object.freeze([]),displayTransform:_.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 en=ke(Object(M.withInstanceId)(Jt));var tn=Object(M.withInstanceId)((function(e){var t=e.children,n=e.className,r=void 0===n?"":n,a=e.instanceId,i=e.label;if(!o.Children.count(t))return null;var s="components-menu-group-label-".concat(a),c=p()(r,"components-menu-group");return Object(o.createElement)("div",{className:c},i&&Object(o.createElement)("div",{className:"components-menu-group__label",id:s,"aria-hidden":"true"},i),Object(o.createElement)("div",{role:"group","aria-labelledby":i?s:null},t))}));var nn=function(e){var t=e.children,n=e.info,r=e.className,a=e.icon,i=e.shortcut,s=e.isSelected,c=e.role,l=void 0===c?"menuitem":c,u=Object(P.a)(e,["children","info","className","icon","shortcut","isSelected","role"]);return r=p()("components-menu-item__button",r,{"has-icon":a}),n&&(t=Object(o.createElement)("span",{className:"components-menu-item__info-wrapper"},t,Object(o.createElement)("span",{className:"components-menu-item__info"},n))),a&&!Object(_.isString)(a)&&(a=Object(o.cloneElement)(a,{className:"components-menu-items__item-icon",height:20,width:20})),Object(o.createElement)(te,Object(T.a)({icon:a,"aria-checked":"menuitemcheckbox"===l||"menuitemradio"===l?s:void 0,role:l,className:r},u),t,Object(o.createElement)(Z,{className:"components-menu-item__shortcut",shortcut:i}))};function rn(e){var t=e.choices,n=void 0===t?[]:t,r=e.onSelect,a=e.value;return n.map((function(e){var t=a===e.value;return Object(o.createElement)(nn,{key:e.value,role:"menuitemradio",icon:t&&"yes",isSelected:t,shortcut:e.shortcut,onClick:function(){t||r(e.value)}},e.label)}))}var on=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(y.a)(this,Object(m.a)(t).apply(this,arguments))).containerRef=Object(o.createRef)(),e.handleKeyDown=e.handleKeyDown.bind(Object(g.a)(e)),e.handleFocusOutside=e.handleFocusOutside.bind(Object(g.a)(e)),e.focusFirstTabbable=e.focusFirstTabbable.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.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:"handleFocusOutside",value:function(e){this.props.shouldCloseOnClickOutside&&this.onRequestClose(e)}},{key:"handleKeyDown",value:function(e){e.keyCode===D.ESCAPE&&this.handleEscapeKeyDown(e)}},{key:"handleEscapeKeyDown",value:function(e){this.props.shouldCloseOnEsc&&(e.stopPropagation(),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.overlayClassName,n=e.contentLabel,r=e.aria,a=r.describedby,i=r.labelledby,s=e.children,c=e.className,l=e.role,u=e.style;return Object(o.createElement)(re,{className:p()("components-modal__screen-overlay",t),onKeyDown:this.handleKeyDown},Object(o.createElement)("div",{className:p()("components-modal__frame",c),style:u,ref:this.containerRef,role:l,"aria-label":n,"aria-labelledby":n?null:i,"aria-describedby":a,tabIndex:"-1"},s))}}]),t}(o.Component),an=Object(M.compose)([W,$,G])(on),sn=function(e){var t=e.icon,n=e.title,r=e.onClose,a=e.closeLabel,i=e.headingId,s=e.isDismissable,c=a||Object(S.__)("Close dialog");return Object(o.createElement)("div",{className:"components-modal__header"},Object(o.createElement)("div",{className:"components-modal__header-heading-container"},t&&Object(o.createElement)("span",{className:"components-modal__icon-container","aria-hidden":!0},t),n&&Object(o.createElement)("h1",{id:i,className:"components-modal__header-heading"},n)),s&&Object(o.createElement)(te,{onClick:r,icon:"no-alt",label:c}))},cn=new Set(["alert","status","log","marquee","timer"]),ln=[],un=!1;function dn(e){if(!un){var t=document.body.children;Object(_.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")||cn.has(t))}(t)&&(t.setAttribute("aria-hidden","true"),ln.push(t))})),un=!0}}var hn,fn=0,pn=function(e){function t(e){var n;return Object(v.a)(this,t),(n=Object(y.a)(this,Object(m.a)(t).call(this,e))).prepareDOM(),n}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentDidMount",value:function(){1===++fn&&this.openFirstModal()}},{key:"componentWillUnmount",value:function(){0===--fn&&this.closeLastModal(),this.cleanDOM()}},{key:"prepareDOM",value:function(){hn||(hn=document.createElement("div"),document.body.appendChild(hn)),this.node=document.createElement("div"),hn.appendChild(this.node)}},{key:"cleanDOM",value:function(){hn.removeChild(this.node)}},{key:"openFirstModal",value:function(){dn(hn),document.body.classList.add(this.props.bodyOpenClassName)}},{key:"closeLastModal",value:function(){document.body.classList.remove(this.props.bodyOpenClassName),un&&(Object(_.forEach)(ln,(function(e){e.removeAttribute("aria-hidden")})),ln=[],un=!1)}},{key:"render",value:function(){var e=this.props,t=e.onRequestClose,n=e.title,r=e.icon,a=e.closeButtonLabel,i=e.children,s=e.aria,c=e.instanceId,l=e.isDismissable,u=Object(P.a)(e,["onRequestClose","title","icon","closeButtonLabel","children","aria","instanceId","isDismissable"]),d=s.labelledby||"components-modal-header-".concat(c);return Object(o.createPortal)(Object(o.createElement)(an,Object(T.a)({onRequestClose:t,aria:{labelledby:n?d:null,describedby:s.describedby}},u),Object(o.createElement)("div",{className:"components-modal__content",tabIndex:"0"},Object(o.createElement)(sn,{closeLabel:a,headingId:d,icon:r,isDismissable:l,onClose:t,title:n}),i)),this.node)}}]),t}(o.Component);pn.defaultProps={bodyOpenClassName:"modal-open",role:"dialog",title:null,focusOnMount:!0,shouldCloseOnEsc:!0,shouldCloseOnClickOutside:!0,isDismissable:!0,aria:{labelledby:null,describedby:null}};var bn=Object(M.withInstanceId)(pn);var vn=function(e){var t=e.className,n=e.status,r=e.children,a=e.onRemove,i=void 0===a?_.noop:a,s=e.isDismissible,c=void 0===s||s,l=e.actions,u=void 0===l?[]:l,d=e.__unstableHTML,h=p()(t,"components-notice","is-"+n,{"is-dismissible":c});return d&&(r=Object(o.createElement)(o.RawHTML,null,r)),Object(o.createElement)("div",{className:h},Object(o.createElement)("div",{className:"components-notice__content"},r,u.map((function(e,t){var n=e.className,r=e.label,a=e.noDefaultClasses,i=void 0!==a&&a,s=e.onClick,c=e.url;return Object(o.createElement)(E,{key:t,href:c,isDefault:!i&&!c,isLink:!i&&!!c,onClick:c?void 0:s,className:p()("components-notice__action",n)},r)}))),c&&Object(o.createElement)(te,{className:"components-notice__dismiss",icon:"no-alt",label:Object(S.__)("Dismiss this notice"),onClick:i,tooltip:!1}))};var yn=function(e){var t=e.notices,n=e.onRemove,r=void 0===n?_.noop:n,a=e.className,i=e.children;return a=p()("components-notice-list",a),Object(o.createElement)("div",{className:a},i,Object(w.a)(t).reverse().map((function(e){return Object(o.createElement)(vn,Object(T.a)({},Object(_.omit)(e,["content"]),{key:e.id,onRemove:(t=e.id,function(){return r(t)})}),e.content);var t})))};var mn=function(e){var t=e.label,n=e.children;return Object(o.createElement)("div",{className:"components-panel__header"},t&&Object(o.createElement)("h2",null,t),n)};var gn=function(e){var t=e.header,n=e.className,r=e.children,a=p()(n,"components-panel");return Object(o.createElement)("div",{className:a},t&&Object(o.createElement)(mn,{label:t}),r)},On=function(e){function t(e){var n;return Object(v.a)(this,t),(n=Object(y.a)(this,Object(m.a)(t).apply(this,arguments))).state={opened:void 0===e.initialOpen||e.initialOpen},n.toggle=n.toggle.bind(Object(g.a)(n)),n}return Object(k.a)(t,e),Object(O.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,r=e.opened,a=e.className,c=e.icon,l=e.forwardedRef,d=void 0===r?this.state.opened:r,h=p()("components-panel__body",a,{"is-opened":d});return Object(o.createElement)("div",{className:h,ref:l},!!t&&Object(o.createElement)("h2",{className:"components-panel__body-title"},Object(o.createElement)(E,{className:"components-panel__body-toggle",onClick:this.toggle,"aria-expanded":d},Object(o.createElement)("span",{"aria-hidden":"true"},d?Object(o.createElement)(u,{className:"components-panel__arrow",width:"24px",height:"24px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(i,null,Object(o.createElement)(s,{fill:"none",d:"M0,0h24v24H0V0z"})),Object(o.createElement)(i,null,Object(o.createElement)(s,{d:"M12,8l-6,6l1.41,1.41L12,10.83l4.59,4.58L18,14L12,8z"}))):Object(o.createElement)(u,{className:"components-panel__arrow",width:"24px",height:"24px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(i,null,Object(o.createElement)(s,{fill:"none",d:"M0,0h24v24H0V0z"})),Object(o.createElement)(i,null,Object(o.createElement)(s,{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z"})))),t,c&&Object(o.createElement)(ee,{icon:c,className:"components-panel__icon",size:20}))),d&&n)}}]),t}(o.Component),kn=function(e,t){return Object(o.createElement)(On,Object(T.a)({},e,{forwardedRef:t}))};kn.displayName="PanelBody";var wn=Object(o.forwardRef)(kn);var _n=function(e){var t=e.className,n=e.children,r=p()("components-panel__row",t);return Object(o.createElement)("div",{className:r},n)};var Dn=function(e){var t=e.icon,n=e.children,r=e.label,a=e.instructions,i=e.className,s=e.notices,c=e.preview,l=e.isColumnLayout,u=Object(P.a)(e,["icon","children","label","instructions","className","notices","preview","isColumnLayout"]),d=p()("components-placeholder",i),h=p()("components-placeholder__fieldset",{"is-column-layout":l});return Object(o.createElement)("div",Object(T.a)({},u,{className:d}),s,c&&Object(o.createElement)("div",{className:"components-placeholder__preview"},c),Object(o.createElement)("div",{className:"components-placeholder__label"},Object(_.isString)(t)?Object(o.createElement)(J,{icon:t}):t,r),!!a&&Object(o.createElement)("div",{className:"components-placeholder__instructions"},a),Object(o.createElement)("div",{className:h},n))};function Sn(e){var t=e.label,n=e.noOptionLabel,r=e.onChange,a=e.selectedId,i=e.tree,s=Object(P.a)(e,["label","noOptionLabel","onChange","selectedId","tree"]),c=Object(_.compact)([n&&{value:"",label:n}].concat(Object(w.a)(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object(_.flatMap)(t,(function(t){return[{value:t.id,label:Object(_.repeat)(" ",3*n)+Object(_.unescape)(t.name)}].concat(Object(w.a)(e(t.children||[],n+1)))}))}(i))));return Object(o.createElement)(Ft,Object(T.a)({label:t,options:c,onChange:r},{value:a},s))}function Mn(e){var t,n,a=e.label,i=e.noOptionLabel,s=e.categoriesList,c=e.selectedCategoryId,l=e.onChange,u=(t=s.map((function(e){return Object(r.a)({children:[],parent:null},e)})),(n=Object(_.groupBy)(t,"parent")).null&&n.null.length?t:function e(t){return t.map((function(t){var o=n[t.id];return Object(r.a)({},t,{children:o&&o.length?e(o):[]})}))}(n[0]||[]));return Object(o.createElement)(Sn,Object(T.a)({label:a,noOptionLabel:i,onChange:l},{tree:u,selectedId:c}))}var jn=1,Cn=100;function Pn(e){var t=e.categoriesList,n=e.selectedCategoryId,r=e.numberOfItems,a=e.order,i=e.orderBy,s=e.maxItems,c=void 0===s?Cn:s,l=e.minItems,u=void 0===l?jn:l,d=e.onCategoryChange,f=e.onNumberOfItemsChange,p=e.onOrderChange,b=e.onOrderByChange;return[p&&b&&Object(o.createElement)(Ft,{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),r=n[0],o=n[1];o!==a&&p(o),r!==i&&b(r)}}),d&&Object(o.createElement)(Mn,{key:"query-controls-category-select",categoriesList:t,label:Object(S.__)("Category"),noOptionLabel:Object(S.__)("All"),selectedCategoryId:n,onChange:d}),f&&Object(o.createElement)(Lt,{key:"query-controls-range-control",label:Object(S.__)("Number of items"),value:r,onChange:f,min:u,max:c,required:!0})]}var En=Object(M.withInstanceId)((function(e){var t=e.label,n=e.className,r=e.selected,a=e.help,i=e.instanceId,s=e.onChange,c=e.options,l=void 0===c?[]:c,u="inspector-radio-control-".concat(i),d=function(e){return s(e.target.value)};return!Object(_.isEmpty)(l)&&Object(o.createElement)(je,{label:t,id:u,help:a,className:p()(n,"components-radio-control")},l.map((function(e,t){return Object(o.createElement)("div",{key:"".concat(u,"-").concat(t),className:"components-radio-control__option"},Object(o.createElement)("input",{id:"".concat(u,"-").concat(t),className:"components-radio-control__input",type:"radio",name:u,value:e.value,onChange:d,checked:e.value===r,"aria-describedby":a?"".concat(u,"__help"):void 0}),Object(o.createElement)("label",{htmlFor:"".concat(u,"-").concat(t)},e.label))})))})),Tn=n(227);var zn=function(e){var t=e.className,n=Object(P.a)(e,["className"]),r={width:null,height:null,top:null,right:null,bottom:null,left:null},a="components-resizable-box__handle",i="components-resizable-box__side-handle",s="components-resizable-box__corner-handle";return Object(o.createElement)(Tn.Resizable,Object(T.a)({className:p()("components-resizable-box__container",t),handleClasses:{top:p()(a,i,"components-resizable-box__handle-top"),right:p()(a,i,"components-resizable-box__handle-right"),bottom:p()(a,i,"components-resizable-box__handle-bottom"),left:p()(a,i,"components-resizable-box__handle-left"),topLeft:p()(a,s,"components-resizable-box__handle-top","components-resizable-box__handle-left"),topRight:p()(a,s,"components-resizable-box__handle-top","components-resizable-box__handle-right"),bottomRight:p()(a,s,"components-resizable-box__handle-bottom","components-resizable-box__handle-right"),bottomLeft:p()(a,s,"components-resizable-box__handle-bottom","components-resizable-box__handle-left")},handleStyles:{top:r,right:r,bottom:r,left:r,topLeft:r,topRight:r,bottomRight:r,bottomLeft:r}},n))};var In=function(e){var t=e.naturalWidth,n=e.naturalHeight,r=e.children,a=e.isInline,i=void 0!==a&&a;if(1!==o.Children.count(r))return null;var s={paddingBottom:n/t*100+"%"},c=i?"span":"div";return Object(o.createElement)(c,{className:"components-responsive-wrapper"},Object(o.createElement)(c,{style:s}),Object(o.cloneElement)(r,{className:p()("components-responsive-wrapper__content",r.props.className)}))},xn=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(y.a)(this,Object(m.a)(t).apply(this,arguments))).trySandbox=e.trySandbox.bind(Object(g.a)(e)),e.checkMessageForResize=e.checkMessageForResize.bind(Object(g.a)(e)),e.iframe=Object(o.createRef)(),e.state={width:0,height:0},e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentDidMount",value:function(){this.trySandbox()}},{key:"componentDidUpdate",value:function(){this.trySandbox()}},{key:"isFrameAccessible",value:function(){try{return!!this.iframe.current.contentDocument.body}catch(e){return!1}}},{key:"checkMessageForResize",value:function(e){var t=this.iframe.current,n=e.data||{};if("string"==typeof n)try{n=JSON.parse(n)}catch(e){}if(t&&t.contentWindow===e.source){var r=n,o=r.action,a=r.width,i=r.height,s=this.state,c=s.width,l=s.height;"resize"!==o||c===a&&l===i||this.setState({width:a,height:i})}}},{key:"trySandbox",value:function(){if(this.isFrameAccessible()&&null===this.iframe.current.contentDocument.body.getAttribute("data-resizable-iframe-connected")){var e=Object(o.createElement)("html",{lang:document.documentElement.lang,className:this.props.type},Object(o.createElement)("head",null,Object(o.createElement)("title",null,this.props.title),Object(o.createElement)("style",{dangerouslySetInnerHTML:{__html:"\n\t\t\tbody {\n\t\t\t\tmargin: 0;\n\t\t\t}\n\t\t\thtml,\n\t\t\tbody,\n\t\t\tbody > 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(o.createElement)("style",{key:t,dangerouslySetInnerHTML:{__html:e}})}))),Object(o.createElement)("body",{"data-resizable-iframe-connected":"data-resizable-iframe-connected",className:this.props.type},Object(o.createElement)("div",{dangerouslySetInnerHTML:{__html:this.props.html}}),Object(o.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(o.createElement)("script",{key:e,src:e})})))),t=this.iframe.current.contentWindow.document;t.open(),t.write(""+Object(o.renderToString)(e)),t.close()}}},{key:"render",value:function(){var e=this.props,t=e.title,n=e.onFocus;return Object(o.createElement)(Rt,{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}(o.Component),Nn=xn=Object(M.withGlobalEvents)({message:"checkMessageForResize"})(xn),An=1e4;var Hn=Object(o.forwardRef)((function(e,t){var n=e.className,r=e.children,a=e.actions,i=void 0===a?[]:a,s=e.onRemove,c=void 0===s?_.noop:s;Object(o.useEffect)((function(){var e=setTimeout((function(){c()}),An);return function(){return clearTimeout(e)}}),[]);var l=p()(n,"components-snackbar");return i&&i.length>1&&(console.warn("Snackbar can only have 1 action, use Notice if your message require many messages"),i=[i[0]]),Object(o.createElement)("div",{ref:t,className:l,onClick:c,tabIndex:"0",role:"button",onKeyPress:c,label:Object(S.__)("Dismiss this notice")},Object(o.createElement)("div",{className:"components-snackbar__content"},r,i.map((function(e,t){var n=e.label,r=e.onClick,a=e.url;return Object(o.createElement)(E,{key:t,href:a,isTertiary:!0,onClick:function(e){e.stopPropagation(),r&&r(e)},className:"components-snackbar__action"},n)}))))})),Rn=n(20),Ln=n.n(Rn),Fn=n(43),Vn=n(64);var Bn=function(e){var t=e.notices,n=e.className,r=e.children,a=e.onRemove,i=void 0===a?_.noop:a,s=Object(M.useReducedMotion)(),c=Object(o.useState)((function(){return new WeakMap})),l=Object(h.a)(c,1)[0],u=Object(Vn.useTransition)(t,(function(e){return e.id}),{from:{opacity:0,height:0},enter:function(e){return function(){var t=Object(Fn.a)(Ln.a.mark((function t(n){return Ln.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n({opacity:1,height:l.get(e).offsetHeight});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},leave:function(){return function(){var e=Object(Fn.a)(Ln.a.mark((function e(t){return Ln.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t({opacity:0});case 2:return e.next=4,t({height:0});case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},immediate:s});n=p()("components-snackbar-list",n);var d=function(e){return function(){return i(e.id)}};return Object(o.createElement)("div",{className:n},r,u.map((function(e){var t=e.item,n=e.key,r=e.props;return Object(o.createElement)(Vn.animated.div,{key:n,style:r},Object(o.createElement)("div",{className:"components-snackbar-list__notice-container",ref:function(e){return e&&l.set(t,e)}},Object(o.createElement)(Hn,Object(T.a)({},Object(_.omit)(t,["content"]),{onRemove:d(t)}),t.content)))})))};function Kn(){return Object(o.createElement)("span",{className:"components-spinner"})}var Wn=function(e){var t=e.tabId,n=e.onClick,r=e.children,a=e.selected,i=Object(P.a)(e,["tabId","onClick","children","selected"]);return Object(o.createElement)(E,Object(T.a)({role:"tab",tabIndex:a?null:-1,"aria-selected":a,id:t,onClick:n},i),r)},$n=function(e){function t(){var e;Object(v.a)(this,t);var n=(e=Object(y.a)(this,Object(m.a)(t).apply(this,arguments))).props,r=n.tabs,o=n.initialTabName;return e.handleClick=e.handleClick.bind(Object(g.a)(e)),e.onNavigate=e.onNavigate.bind(Object(g.a)(e)),e.state={selected:o||(r.length>0?r[0].name:null)},e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"handleClick",value:function(e){var t=this.props.onSelect,n=void 0===t?_.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,r=n.activeClass,a=void 0===r?"is-active":r,i=n.className,s=n.instanceId,c=n.orientation,l=void 0===c?"horizontal":c,u=n.tabs,h=Object(_.find)(u,{name:t}),f=s+"-"+h.name;return Object(o.createElement)("div",{className:i},Object(o.createElement)(Pt,{role:"tablist",orientation:l,onNavigate:this.onNavigate,className:"components-tab-panel__tabs"},u.map((function(n){return Object(o.createElement)(Wn,{className:p()(n.className,Object(d.a)({},a,n.name===t)),tabId:s+"-"+n.name,"aria-controls":s+"-"+n.name+"-view",selected:n.name===t,key:n.name,onClick:Object(_.partial)(e.handleClick,n.name)},n.title)}))),h&&Object(o.createElement)("div",{"aria-labelledby":f,role:"tabpanel",id:f+"-view",className:"components-tab-panel__tab-content",tabIndex:"0"},this.props.children(h)))}}]),t}(o.Component),Un=Object(M.withInstanceId)($n);var Gn=Object(M.withInstanceId)((function(e){var t=e.label,n=e.hideLabelFromVision,r=e.value,a=e.help,i=e.instanceId,s=e.onChange,c=e.rows,l=void 0===c?4:c,u=e.className,d=Object(P.a)(e,["label","hideLabelFromVision","value","help","instanceId","onChange","rows","className"]),h="inspector-textarea-control-".concat(i);return Object(o.createElement)(je,{label:t,hideLabelFromVision:n,id:h,help:a,className:u},Object(o.createElement)("textarea",Object(T.a)({className:"components-textarea-control__input",id:h,rows:l,onChange:function(e){return s(e.target.value)},"aria-describedby":a?h+"__help":void 0,value:r},d)))}));var qn=function(e){return Object(o.createElement)("div",{className:"components-tip"},Object(o.createElement)(u,{width:"24",height:"24",viewBox:"0 0 24 24"},Object(o.createElement)(s,{d:"M20.45 4.91L19.04 3.5l-1.79 1.8 1.41 1.41 1.79-1.8zM13 4h-2V1h2v3zm10 9h-3v-2h3v2zm-12 6.95v-3.96l-1-.58c-1.24-.72-2-2.04-2-3.46 0-2.21 1.79-4 4-4s4 1.79 4 4c0 1.42-.77 2.74-2 3.46l-1 .58v3.96h-2zm-2 2h6v-4.81c1.79-1.04 3-2.97 3-5.19 0-3.31-2.69-6-6-6s-6 2.69-6 6c0 2.22 1.21 4.15 3 5.19v4.81zM4 13H1v-2h3v2zm2.76-7.71l-1.79-1.8L3.56 4.9l1.8 1.79 1.4-1.4z"})),Object(o.createElement)("p",null,e.children))},Yn=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(y.a)(this,Object(m.a)(t).apply(this,arguments))).onChange=e.onChange.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.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,r=n.label,a=n.checked,i=n.help,s=n.instanceId,c=n.className,l="inspector-toggle-control-".concat(s);return i&&(e=l+"__help",t=Object(_.isFunction)(i)?i(a):i),Object(o.createElement)(je,{id:l,help:t,className:p()("components-toggle-control",c)},Object(o.createElement)(Wt,{id:l,checked:a,onChange:this.onChange,"aria-describedby":e}),Object(o.createElement)("label",{htmlFor:l,className:"components-toggle-control__label"},r))}}]),t}(o.Component),Zn=Object(M.withInstanceId)(Yn),Xn=function(e){return Object(o.createElement)("div",{className:e.className},e.children)};var Qn=function(e){var t=e.containerClassName,n=e.icon,r=e.title,a=e.shortcut,i=e.subscript,s=e.onClick,c=e.className,l=e.isActive,u=e.isDisabled,d=e.extraProps,h=e.children;return Object(o.createElement)(Xn,{className:t},Object(o.createElement)(te,Object(T.a)({icon:n,label:r,shortcut:a,"data-subscript":i,onClick:function(e){e.stopPropagation(),s()},className:p()("components-toolbar__control",c,{"is-active":l}),"aria-pressed":l,disabled:u},d)),h)},Jn=function(e){return Object(o.createElement)("div",{className:e.className},e.children)};var er=function(e){var t=e.controls,n=void 0===t?[]:t,r=e.children,a=e.className,i=e.isCollapsed,s=e.icon,c=e.label,l=Object(P.a)(e,["controls","children","className","isCollapsed","icon","label"]);if(!(n&&n.length||r))return null;var u=n;return Array.isArray(u[0])||(u=[u]),i?Object(o.createElement)(zt,{hasArrowIndicator:!0,icon:s,label:c,controls:u,className:p()("components-toolbar",a)}):Object(o.createElement)(Jn,Object(T.a)({className:p()("components-toolbar",a)},l),Object(_.flatMap)(u,(function(e,t){return e.map((function(e,n){return Object(o.createElement)(Qn,Object(T.a)({key:[t,n].join(),containerClassName:t>0&&0===n?"has-left-divider":null},e))}))})),r)},tr=Object(M.createHigherOrderComponent)((function(e){return function(t){function n(){var e;return Object(v.a)(this,n),(e=Object(y.a)(this,Object(m.a)(n).apply(this,arguments))).bindContainer=e.bindContainer.bind(Object(g.a)(e)),e.focusNextRegion=e.focusRegion.bind(Object(g.a)(e),1),e.focusPreviousRegion=e.focusRegion.bind(Object(g.a)(e),-1),e.onClick=e.onClick.bind(Object(g.a)(e)),e.state={isFocusingRegions:!1},e}return Object(k.a)(n,t),Object(O.a)(n,[{key:"bindContainer",value:function(e){this.container=e}},{key:"focusRegion",value:function(e){var t=Object(w.a)(this.container.querySelectorAll('[role="region"]'));if(t.length){var n=t[0],r=t.indexOf(document.activeElement);if(-1!==r){var o=r+e;n=t[o=(o=-1===o?t.length-1:o)===t.length?0:o]}n.focus(),this.setState({isFocusingRegions:!0})}}},{key:"onClick",value:function(){this.setState({isFocusingRegions:!1})}},{key:"render",value:function(){var t,n=p()("components-navigate-regions",{"is-focusing-regions":this.state.isFocusingRegions});return Object(o.createElement)("div",{ref:this.bindContainer,className:n,onClick:this.onClick},Object(o.createElement)(Be,{bindGlobal:!0,shortcuts:(t={"ctrl+`":this.focusNextRegion},Object(d.a)(t,D.rawShortcut.access("n"),this.focusNextRegion),Object(d.a)(t,"ctrl+shift+`",this.focusPreviousRegion),Object(d.a)(t,D.rawShortcut.access("p"),this.focusPreviousRegion),t)}),Object(o.createElement)(e,this.props))}}]),n}(o.Component)}),"navigateRegions"),nr=function(e){return Object(M.createHigherOrderComponent)((function(t){return function(n){function r(){var e;return Object(v.a)(this,r),(e=Object(y.a)(this,Object(m.a)(r).apply(this,arguments))).nodeRef=e.props.node,e.state={fallbackStyles:void 0,grabStylesCompleted:!1},e.bindRef=e.bindRef.bind(Object(g.a)(e)),e}return Object(k.a)(r,n),Object(O.a)(r,[{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,r=t.fallbackStyles;if(this.nodeRef&&!n){var o=e(this.nodeRef,this.props);Object(_.isEqual)(o,r)||this.setState({fallbackStyles:o,grabStylesCompleted:!!Object(_.every)(o)})}}},{key:"render",value:function(){var e=Object(o.createElement)(t,Object(T.a)({},this.props,this.state.fallbackStyles));return this.props.node?e:Object(o.createElement)("div",{ref:this.bindRef}," ",e," ")}}]),r}(o.Component)}),"withFallbackStyles")},rr=n(27),or=16;function ar(e){return Object(M.createHigherOrderComponent)((function(t){var n,r="core/with-filters/"+e;var a=function(a){function i(){var r;return Object(v.a)(this,i),r=Object(y.a)(this,Object(m.a)(i).apply(this,arguments)),void 0===n&&(n=Object(rr.applyFilters)(e,t)),r}return Object(k.a)(i,a),Object(O.a)(i,[{key:"componentDidMount",value:function(){i.instances.push(this),1===i.instances.length&&(Object(rr.addAction)("hookRemoved",r,s),Object(rr.addAction)("hookAdded",r,s))}},{key:"componentWillUnmount",value:function(){i.instances=Object(_.without)(i.instances,this),0===i.instances.length&&(Object(rr.removeAction)("hookRemoved",r),Object(rr.removeAction)("hookAdded",r))}},{key:"render",value:function(){return Object(o.createElement)(n,this.props)}}]),i}(o.Component);a.instances=[];var i=Object(_.debounce)((function(){n=Object(rr.applyFilters)(e,t),a.instances.forEach((function(e){e.forceUpdate()}))}),or);function s(t){t===e&&i()}return a}),"withFilters")}var ir=n(67),sr=n.n(ir),cr=Object(M.createHigherOrderComponent)((function(e){return function(t){function n(){var e;return Object(v.a)(this,n),(e=Object(y.a)(this,Object(m.a)(n).apply(this,arguments))).createNotice=e.createNotice.bind(Object(g.a)(e)),e.createErrorNotice=e.createErrorNotice.bind(Object(g.a)(e)),e.removeNotice=e.removeNotice.bind(Object(g.a)(e)),e.removeAllNotices=e.removeAllNotices.bind(Object(g.a)(e)),e.state={noticeList:[]},e.noticeOperations={createNotice:e.createNotice,createErrorNotice:e.createErrorNotice,removeAllNotices:e.removeAllNotices,removeNotice:e.removeNotice},e}return Object(k.a)(n,t),Object(O.a)(n,[{key:"createNotice",value:function(e){var t=e.id?e:Object(r.a)({},e,{id:sr()()});this.setState((function(e){return{noticeList:[].concat(Object(w.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(o.createElement)(e,Object(T.a)({noticeList:this.state.noticeList,noticeOperations:this.noticeOperations,noticeUI:this.state.noticeList.length>0&&Object(o.createElement)(yn,{className:"components-with-notices-ui",notices:this.state.noticeList,onRemove:this.removeNotice})},this.props))}}]),n}(o.Component)}));n.d(t,"Circle",(function(){return a})),n.d(t,"G",(function(){return i})),n.d(t,"Path",(function(){return s})),n.d(t,"Polygon",(function(){return c})),n.d(t,"Rect",(function(){return l})),n.d(t,"SVG",(function(){return u})),n.d(t,"HorizontalRule",(function(){return"hr"})),n.d(t,"BlockQuotation",(function(){return"blockquote"})),n.d(t,"Animate",(function(){return b})),n.d(t,"Autocomplete",(function(){return Se})),n.d(t,"BaseControl",(function(){return je})),n.d(t,"Button",(function(){return E})),n.d(t,"ButtonGroup",(function(){return Ce})),n.d(t,"CheckboxControl",(function(){return Pe})),n.d(t,"ClipboardButton",(function(){return ze})),n.d(t,"ColorIndicator",(function(){return Ie})),n.d(t,"ColorPalette",(function(){return rt})),n.d(t,"ColorPicker",(function(){return nt})),n.d(t,"Dashicon",(function(){return J})),n.d(t,"DateTimePicker",(function(){return lt})),n.d(t,"DatePicker",(function(){return st})),n.d(t,"TimePicker",(function(){return ct})),n.d(t,"Disabled",(function(){return bt})),n.d(t,"Draggable",(function(){return yt})),n.d(t,"DropZone",(function(){return St})),n.d(t,"DropZoneProvider",(function(){return _t})),n.d(t,"Dropdown",(function(){return xe})),n.d(t,"DropdownMenu",(function(){return zt})),n.d(t,"ExternalLink",(function(){return It})),n.d(t,"FocalPointPicker",(function(){return Nt})),n.d(t,"FocusableIframe",(function(){return Rt})),n.d(t,"FontSizePicker",(function(){return Bt})),n.d(t,"FormFileUpload",(function(){return Kt})),n.d(t,"FormToggle",(function(){return Wt})),n.d(t,"FormTokenField",(function(){return en})),n.d(t,"Icon",(function(){return ee})),n.d(t,"IconButton",(function(){return te})),n.d(t,"KeyboardShortcuts",(function(){return Be})),n.d(t,"MenuGroup",(function(){return tn})),n.d(t,"MenuItem",(function(){return nn})),n.d(t,"MenuItemsChoice",(function(){return rn})),n.d(t,"Modal",(function(){return bn})),n.d(t,"ScrollLock",(function(){return ne})),n.d(t,"NavigableMenu",(function(){return Pt})),n.d(t,"TabbableContainer",(function(){return Et})),n.d(t,"Notice",(function(){return vn})),n.d(t,"NoticeList",(function(){return yn})),n.d(t,"Panel",(function(){return gn})),n.d(t,"PanelBody",(function(){return wn})),n.d(t,"PanelHeader",(function(){return mn})),n.d(t,"PanelRow",(function(){return _n})),n.d(t,"Placeholder",(function(){return Dn})),n.d(t,"Popover",(function(){return ge})),n.d(t,"QueryControls",(function(){return Pn})),n.d(t,"RadioControl",(function(){return En})),n.d(t,"RangeControl",(function(){return Lt})),n.d(t,"ResizableBox",(function(){return zn})),n.d(t,"ResponsiveWrapper",(function(){return In})),n.d(t,"SandBox",(function(){return Nn})),n.d(t,"SelectControl",(function(){return Ft})),n.d(t,"Snackbar",(function(){return Hn})),n.d(t,"SnackbarList",(function(){return Bn})),n.d(t,"Spinner",(function(){return Kn})),n.d(t,"TabPanel",(function(){return Un})),n.d(t,"TextControl",(function(){return Ge})),n.d(t,"TextareaControl",(function(){return Gn})),n.d(t,"Tip",(function(){return qn})),n.d(t,"ToggleControl",(function(){return Zn})),n.d(t,"Toolbar",(function(){return er})),n.d(t,"ToolbarButton",(function(){return Qn})),n.d(t,"Tooltip",(function(){return Q})),n.d(t,"TreeSelect",(function(){return Sn})),n.d(t,"IsolatedEventContainer",(function(){return re})),n.d(t,"createSlotFill",(function(){return be})),n.d(t,"Slot",(function(){return de})),n.d(t,"Fill",(function(){return pe})),n.d(t,"SlotFillProvider",(function(){return le})),n.d(t,"navigateRegions",(function(){return tr})),n.d(t,"withConstrainedTabbing",(function(){return $})),n.d(t,"withFallbackStyles",(function(){return nr})),n.d(t,"withFilters",(function(){return ar})),n.d(t,"withFocusOutside",(function(){return G})),n.d(t,"withFocusReturn",(function(){return W})),n.d(t,"FocusReturnProvider",(function(){return K})),n.d(t,"withNotices",(function(){return cr})),n.d(t,"withSpokenMessages",(function(){return ke}))}]); \ 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 988347ad96..7f8669fefa 100644 --- a/wp-includes/js/dist/edit-post.js +++ b/wp-includes/js/dist/edit-post.js @@ -783,7 +783,7 @@ Object(external_this_wp_hooks_["addFilter"])('editor.BlockEdit', 'core/edit-post // EXTERNAL MODULE: external {"this":["wp","plugins"]} -var external_this_wp_plugins_ = __webpack_require__(48); +var external_this_wp_plugins_ = __webpack_require__(51); // EXTERNAL MODULE: external {"this":["wp","url"]} var external_this_wp_url_ = __webpack_require__(26); @@ -7289,13 +7289,6 @@ module.exports = function memize( fn, options ) { /***/ }), -/***/ 48: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["plugins"]; }()); - -/***/ }), - /***/ 5: /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -7311,6 +7304,13 @@ function _assertThisInitialized(self) { /***/ }), +/***/ 51: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["plugins"]; }()); + +/***/ }), + /***/ 6: /***/ (function(module, exports) { diff --git a/wp-includes/js/dist/edit-post.min.js b/wp-includes/js/dist/edit-post.min.js index 02932d8b49..b27d08b707 100644 --- a/wp-includes/js/dist/edit-post.min.js +++ b/wp-includes/js/dist/edit-post.min.js @@ -3,4 +3,4 @@ this.wp=this.wp||{},this.wp.editPost=function(e){var t={};function n(o){if(t[o]) Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=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,n){"use strict";var o=n(38);var r=n(39);function c(e,t){return Object(o.a)(e)||function(e,t){var n=[],o=!0,r=!1,c=void 0;try{for(var i,a=e[Symbol.iterator]();!(o=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);o=!0);}catch(e){r=!0,c=e}finally{try{o||null==a.return||a.return()}finally{if(r)throw c}}return n}(e,t)||Object(r.a)()}n.d(t,"a",(function(){return c}))},231:function(e,t){!function(){e.exports=this.wp.blockLibrary}()},24:function(e,t){!function(){e.exports=this.wp.editor}()},26:function(e,t){!function(){e.exports=this.wp.url}()},27:function(e,t){!function(){e.exports=this.wp.hooks}()},3:function(e,t){!function(){e.exports=this.wp.components}()},30: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}))},31: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}))},34:function(e,t){!function(){e.exports=this.wp.apiFetch}()},345:function(e,t,n){"use strict";n.r(t);var o={};n.r(o),n.d(o,"openGeneralSidebar",(function(){return Q})),n.d(o,"closeGeneralSidebar",(function(){return X})),n.d(o,"openModal",(function(){return z})),n.d(o,"closeModal",(function(){return Y})),n.d(o,"openPublishSidebar",(function(){return $})),n.d(o,"closePublishSidebar",(function(){return Z})),n.d(o,"togglePublishSidebar",(function(){return J})),n.d(o,"toggleEditorPanelEnabled",(function(){return ee})),n.d(o,"toggleEditorPanelOpened",(function(){return te})),n.d(o,"removeEditorPanel",(function(){return ne})),n.d(o,"toggleFeature",(function(){return oe})),n.d(o,"switchEditorMode",(function(){return re})),n.d(o,"togglePinnedPluginItem",(function(){return ce})),n.d(o,"hideBlockTypes",(function(){return ie})),n.d(o,"updatePreferredStyleVariations",(function(){return ae})),n.d(o,"__experimentalUpdateLocalAutosaveInterval",(function(){return le})),n.d(o,"showBlockTypes",(function(){return se})),n.d(o,"setAvailableMetaBoxesPerLocation",(function(){return ue})),n.d(o,"requestMetaBoxUpdates",(function(){return de})),n.d(o,"metaBoxUpdatesSuccess",(function(){return be}));var r={};n.r(r),n.d(r,"getEditorMode",(function(){return me})),n.d(r,"isEditorSidebarOpened",(function(){return Oe})),n.d(r,"isPluginSidebarOpened",(function(){return fe})),n.d(r,"getActiveGeneralSidebarName",(function(){return je})),n.d(r,"getPreferences",(function(){return he})),n.d(r,"getPreference",(function(){return Ee})),n.d(r,"isPublishSidebarOpened",(function(){return ge})),n.d(r,"isEditorPanelRemoved",(function(){return ve})),n.d(r,"isEditorPanelEnabled",(function(){return _e})),n.d(r,"isEditorPanelOpened",(function(){return ye})),n.d(r,"isModalActive",(function(){return Se})),n.d(r,"isFeatureActive",(function(){return ke})),n.d(r,"isPluginItemPinned",(function(){return Pe})),n.d(r,"getActiveMetaBoxLocations",(function(){return we})),n.d(r,"isMetaBoxLocationVisible",(function(){return Ce})),n.d(r,"isMetaBoxLocationActive",(function(){return Te})),n.d(r,"getMetaBoxesPerLocation",(function(){return xe})),n.d(r,"getAllMetaBoxes",(function(){return Ne})),n.d(r,"hasMetaBoxes",(function(){return Ae})),n.d(r,"isSavingMetaBoxes",(function(){return Me}));var c=n(0),i=(n(89),n(6)),a=n(24),l=n(61),s=n(42),u=(n(142),n(231)),d=n(27),b=n(99);Object(d.addFilter)("editor.MediaUpload","core/edit-post/replace-media-upload",(function(){return b.MediaUpload}));var p=n(18),m=n(21),O=n(2),f=n(9),j=n(3),h=n(4),E=n(1),g=n(8),v=Object(g.compose)(Object(h.withSelect)((function(e,t){if(Object(f.hasBlockSupport)(t.name,"multiple",!0))return{};var n=e("core/block-editor").getBlocks(),o=Object(O.find)(n,(function(e){var n=e.name;return t.name===n}));return{originalBlockClientId:o&&o.clientId!==t.clientId&&o.clientId}})),Object(h.withDispatch)((function(e,t){var n=t.originalBlockClientId;return{selectFirst:function(){return e("core/block-editor").selectBlock(n)}}}))),_=Object(g.createHigherOrderComponent)((function(e){return v((function(t){var n=t.originalBlockClientId,o=t.selectFirst,r=Object(m.a)(t,["originalBlockClientId","selectFirst"]);if(!n)return Object(c.createElement)(e,r);var a=Object(f.getBlockType)(r.name),l=function(e){var t=Object(f.findTransform)(Object(f.getBlockTransforms)("to",e),(function(e){var t=e.type,n=e.blocks;return"block"===t&&1===n.length}));if(!t)return null;return Object(f.getBlockType)(t.blocks[0])}(r.name);return[Object(c.createElement)("div",{key:"invalid-preview",style:{minHeight:"60px"}},Object(c.createElement)(e,Object(p.a)({key:"block-edit"},r))),Object(c.createElement)(i.Warning,{key:"multiple-use-warning",actions:[Object(c.createElement)(j.Button,{key:"find-original",isLarge:!0,onClick:o},Object(E.__)("Find original")),Object(c.createElement)(j.Button,{key:"remove",isLarge:!0,onClick:function(){return r.onReplace([])}},Object(E.__)("Remove")),l&&Object(c.createElement)(j.Button,{key:"transform",isLarge:!0,onClick:function(){return r.onReplace(Object(f.createBlock)(l.name,r.attributes))}},Object(E.__)("Transform into:")," ",l.title)]},Object(c.createElement)("strong",null,a.title,": "),Object(E.__)("This block can only be used once."))]}))}),"withMultipleValidation");Object(d.addFilter)("editor.BlockEdit","core/edit-post/validate-multiple-use/with-multiple-validation",_);var y=n(48),S=n(26);var k=Object(g.compose)(Object(h.withSelect)((function(e){return{editedPostContent:e("core/editor").getEditedPostAttribute("content")}})),Object(h.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice}})),Object(g.withState)({hasCopied:!1}))((function(e){var t=e.createNotice,n=e.editedPostContent,o=e.hasCopied,r=e.setState;return n.length>0&&Object(c.createElement)(j.ClipboardButton,{text:n,role:"menuitem",className:"components-menu-item__button",onCopy:function(){r({hasCopied:!0}),t("info",Object(E.__)("All content copied."),{isDismissible:!0,type:"snackbar"})},onFinishCopy:function(){return r({hasCopied:!1})}},o?Object(E.__)("Copied!"):Object(E.__)("Copy All Content"))}));var P=Object(h.withDispatch)((function(e){return{openModal:e("core/edit-post").openModal}}))((function(e){var t=e.openModal;return Object(c.createElement)(j.MenuItem,{onClick:function(){t("edit-post/manage-blocks")}},Object(E.__)("Block Manager"))})),w=n(19);var C=Object(h.withDispatch)((function(e){return{openModal:e("core/edit-post").openModal}}))((function(e){var t=e.openModal;return Object(c.createElement)(j.MenuItem,{onClick:function(){t("edit-post/keyboard-shortcut-help")},shortcut:w.displayShortcut.access("h")},Object(E.__)("Keyboard Shortcuts"))})),T=Object(j.createSlotFill)("ToolsMoreMenuGroup"),x=T.Fill,N=T.Slot;x.Slot=function(e){var t=e.fillProps;return Object(c.createElement)(N,{fillProps:t},(function(e){return!Object(O.isEmpty)(e)&&Object(c.createElement)(j.MenuGroup,{label:Object(E.__)("Tools")},e)}))};var A=x;Object(y.registerPlugin)("edit-post",{render:function(){return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(A,null,(function(e){var t=e.onClose;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(P,{onSelect:t}),Object(c.createElement)(j.MenuItem,{role:"menuitem",href:Object(S.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(E.__)("Manage All Reusable Blocks")),Object(c.createElement)(C,{onSelect:t}),Object(c.createElement)(k,null))})))}});var M,B=n(17),I=n(10),D=n(7),L="edit-post/document",F=Object(O.flow)([h.combineReducers,(M={editorMode:"visual",isGeneralSidebarDismissed:!1,panels:{"post-status":{opened:!0}},features:{fixedToolbar:!1,showInserterHelpPanel:!0},pinnedPluginItems:{},hiddenBlockTypes:[],preferredStyleVariations:{},localAutosaveInterval:15},function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:M,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(D.a)({},e,Object(I.a)({},n,Object(D.a)({},e[n],{enabled:!Object(O.get)(e,[n,"enabled"],!0)})));case"TOGGLE_PANEL_OPENED":var o=t.panelName,r=!0===e[o]||Object(O.get)(e,[o,"opened"],!1);return Object(D.a)({},e,Object(I.a)({},o,Object(D.a)({},e[o],{opened:!r})))}return e},features:function(e,t){return"TOGGLE_FEATURE"===t.type?Object(D.a)({},e,Object(I.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(D.a)({},e,Object(I.a)({},t.pluginName,!Object(O.get)(e,[t.pluginName],!0))):e},hiddenBlockTypes:function(e,t){switch(t.type){case"SHOW_BLOCK_TYPES":return O.without.apply(void 0,[e].concat(Object(B.a)(t.blockNames)));case"HIDE_BLOCK_TYPES":return Object(O.union)(e,t.blockNames)}return e},preferredStyleVariations:function(e,t){switch(t.type){case"UPDATE_PREFERRED_STYLE_VARIATIONS":return t.blockName?t.blockStyle?Object(D.a)({},e,Object(I.a)({},t.blockName,t.blockStyle)):Object(O.omit)(e,[t.blockName]):e}return e},localAutosaveInterval:function(e,t){switch(t.type){case"UPDATE_LOCAL_AUTOSAVE_INTERVAL":return t.interval}return e}});var R=Object(h.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}}),G=Object(h.combineReducers)({activeGeneralSidebar:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L,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:R,preferences:F,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(O.includes)(e,t.panelName))return[].concat(Object(B.a)(e),[t.panelName])}return e}}),V=n(72),U=n.n(V),H=n(23),W=n(45),q=n(34),K=n.n(q);function Q(e){return{type:"OPEN_GENERAL_SIDEBAR",name:e}}function X(){return{type:"CLOSE_GENERAL_SIDEBAR"}}function z(e){return{type:"OPEN_MODAL",name:e}}function Y(){return{type:"CLOSE_MODAL"}}function $(){return{type:"OPEN_PUBLISH_SIDEBAR"}}function Z(){return{type:"CLOSE_PUBLISH_SIDEBAR"}}function J(){return{type:"TOGGLE_PUBLISH_SIDEBAR"}}function ee(e){return{type:"TOGGLE_PANEL_ENABLED",panelName:e}}function te(e){return{type:"TOGGLE_PANEL_OPENED",panelName:e}}function ne(e){return{type:"REMOVE_PANEL",panelName:e}}function oe(e){return{type:"TOGGLE_FEATURE",feature:e}}function re(e){return{type:"SWITCH_MODE",mode:e}}function ce(e){return{type:"TOGGLE_PINNED_PLUGIN_ITEM",pluginName:e}}function ie(e){return{type:"HIDE_BLOCK_TYPES",blockNames:Object(O.castArray)(e)}}function ae(e,t){return{type:"UPDATE_PREFERRED_STYLE_VARIATIONS",blockName:e,blockStyle:t}}function le(e){return{type:"UPDATE_LOCAL_AUTOSAVE_INTERVAL",interval:e}}function se(e){return{type:"SHOW_BLOCK_TYPES",blockNames:Object(O.castArray)(e)}}function ue(e){return{type:"SET_META_BOXES_PER_LOCATIONS",metaBoxesPerLocation:e}}function de(){return{type:"REQUEST_META_BOX_UPDATES"}}function be(){return{type:"META_BOX_UPDATES_SUCCESS"}}var pe=n(36);function me(e){return Ee(e,"editorMode","visual")}function Oe(e){var t=je(e);return Object(O.includes)(["edit-post/document","edit-post/block"],t)}function fe(e){return!!je(e)&&!Oe(e)}function je(e){return Ee(e,"isGeneralSidebarDismissed",!1)?null:e.activeGeneralSidebar}function he(e){return e.preferences}function Ee(e,t,n){var o=he(e)[t];return void 0===o?n:o}function ge(e){return e.publishSidebarActive}function ve(e,t){return Object(O.includes)(e.removedPanels,t)}function _e(e,t){var n=Ee(e,"panels");return!ve(e,t)&&Object(O.get)(n,[t,"enabled"],!0)}function ye(e,t){var n=Ee(e,"panels");return!0===Object(O.get)(n,[t])||!0===Object(O.get)(n,[t,"opened"])}function Se(e,t){return e.activeModal===t}function ke(e,t){return Object(O.get)(e.preferences.features,[t],!1)}function Pe(e,t){var n=Ee(e,"pinnedPluginItems",{});return Object(O.get)(n,[t],!0)}var we=Object(pe.a)((function(e){return Object.keys(e.metaBoxes.locations).filter((function(t){return Te(e,t)}))}),(function(e){return[e.metaBoxes.locations]}));function Ce(e,t){return Te(e,t)&&Object(O.some)(xe(e,t),(function(t){var n=t.id;return _e(e,"meta-box-".concat(n))}))}function Te(e,t){var n=xe(e,t);return!!n&&0!==n.length}function xe(e,t){return e.metaBoxes.locations[t]}var Ne=Object(pe.a)((function(e){return Object(O.flatten)(Object(O.values)(e.metaBoxes.locations))}),(function(e){return[e.metaBoxes.locations]}));function Ae(e){return we(e).length>0}function Me(e){return e.metaBoxes.isSaving}var Be,Ie={SET_META_BOXES_PER_LOCATIONS:function(e,t){setTimeout((function(){var e=Object(h.select)("core/editor").getCurrentPostType();window.postboxes.page!==e&&window.postboxes.add_postbox_toggles(e)}));var n=Object(h.select)("core/editor").isSavingPost(),o=Object(h.select)("core/editor").isAutosavingPost(),r=Object(h.select)("core/edit-post").hasMetaBoxes();Be&&Be(),Be=Object(h.subscribe)((function(){var e=Object(h.select)("core/editor").isSavingPost(),c=Object(h.select)("core/editor").isAutosavingPost(),i=r&&n&&!e&&!o;n=e,o=c,i&&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(h.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],!!o.author&&["post_author",o.author]].filter(Boolean),c=[new window.FormData(document.querySelector(".metabox-base-form"))].concat(Object(B.a)(we(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))})))),i=Object(O.reduce)(c,(function(e,t){var n=!0,o=!1,r=void 0;try{for(var c,i=t[Symbol.iterator]();!(n=(c=i.next()).done);n=!0){var a=Object(H.a)(c.value,2),l=a[0],s=a[1];e.append(l,s)}}catch(e){o=!0,r=e}finally{try{n||null==i.return||i.return()}finally{if(o)throw r}}return e}),new window.FormData);r.forEach((function(e){var t=Object(H.a)(e,2),n=t[0],o=t[1];return i.append(n,o)})),K()({url:window._wpMetaBoxUrl,method:"POST",body:i,parse:!1}).then((function(){return t.dispatch({type:"META_BOX_UPDATES_SUCCESS"})}))},SWITCH_MODE:function(e){"visual"!==e.mode&&Object(h.dispatch)("core/block-editor").clearSelectedBlock();var t="visual"===e.mode?Object(E.__)("Visual editor selected"):Object(E.__)("Code editor selected");Object(W.speak)(t,"assertive")}};var De=function(e){var t,n=[U()(Ie)],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=O.flowRight.apply(void 0,Object(B.a)(t))(e.dispatch),e.dispatch=o,e};var Le={SELECT:Object(h.createRegistryControl)((function(e){return function(t){var n,o=t.storeName,r=t.selectorName,c=t.args;return(n=e.select(o))[r].apply(n,Object(B.a)(c))}}))},Fe="core/edit-post",Re=Object(h.registerStore)(Fe,{reducer:G,actions:o,selectors:r,controls:Le,persist:["preferences"]});De(Re);var Ge=n(12),Ve=n(11),Ue=n(13),He=n(14),We=n(15),qe=n(44),Ke=n.n(qe),Qe={"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:"🐡🐢🦀🐤🦋🐘🐧🐹🦁🦄🦍🐼🐿🎃🐴🐝🐆🦕🦔🌱🍇π🍌🐉💧🥨🌌🍂🍠🥦🥚🥝🎟🥥🥒🛵🥖🍒🍯🎾🎲🐺🐚🐮⌛️"})))}},Xe=n(16),ze=n.n(Xe);var Ye=function(e){function t(){var e;return Object(Ge.a)(this,t),(e=Object(Ue.a)(this,Object(He.a)(t).apply(this,arguments))).state={historyId:null},e}return Object(We.a)(t,e),Object(Ve.a)(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.postId,o=t.postStatus,r=t.postType,c=t.isSavingPost,i=this.state.historyId;"trash"!==o||c?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(S.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(S.addQueryArgs)("post.php",{post:e,action:"edit"})}(e)),this.setState((function(){return{historyId:e}}))}},{key:"render",value:function(){return null}}]),t}(c.Component),$e=Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,o=t.isSavingPost,r=n();return{postId:r.id,postStatus:r.status,postType:r.type,isSavingPost:o()}}))(Ye);var Ze=Object(h.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(c.createElement)(j.Toolbar,{className:"edit-post-fullscreen-mode-close__toolbar"},Object(c.createElement)(j.IconButton,{icon:"arrow-left-alt2",href:Object(S.addQueryArgs)("edit.php",{post_type:n.slug}),label:Object(O.get)(n,["labels","view_items"],Object(E.__)("Back"))})):null}));var Je=Object(g.compose)([Object(h.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(c.createElement)(i.NavigableToolbar,{className:"edit-post-header-toolbar","aria-label":s},Object(c.createElement)("div",null,Object(c.createElement)(i.Inserter,{disabled:!o,position:"bottom right",showInserterHelpPanel:!0}),Object(c.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(c.createElement)(a.EditorHistoryUndo,null),Object(c.createElement)(a.EditorHistoryRedo,null),Object(c.createElement)(a.TableOfContents,{hasOutlineItemsDisabled:r}),Object(c.createElement)(i.BlockNavigationDropdown,{isDisabled:r}),t&&n&&Object(c.createElement)("div",{className:"edit-post-header-toolbar__block-toolbar"},Object(c.createElement)(i.BlockToolbar,null)))})),et={toggleEditorMode:{raw:w.rawShortcut.secondary("m"),display:w.displayShortcut.secondary("m")},toggleSidebar:{raw:w.rawShortcut.primaryShift(","),display:w.displayShortcut.primaryShift(","),ariaLabel:w.shortcutAriaLabel.primaryShift(",")}},tt=[{value:"visual",label:Object(E.__)("Visual Editor")},{value:"text",label:Object(E.__)("Code Editor")}];var nt=Object(g.compose)([Object(h.withSelect)((function(e){return{isRichEditingEnabled:e("core/editor").getEditorSettings().richEditingEnabled,isCodeEditingEnabled:e("core/editor").getEditorSettings().codeEditingEnabled,mode:e("core/edit-post").getEditorMode()}})),Object(g.ifCondition)((function(e){var t=e.isRichEditingEnabled,n=e.isCodeEditingEnabled;return t&&n})),Object(h.withDispatch)((function(e){return{onSwitch:function(t){e("core/edit-post").switchEditorMode(t)}}}))])((function(e){var t=e.onSwitch,n=e.mode,o=tt.map((function(e){return e.value!==n?Object(D.a)({},e,{shortcut:et.toggleEditorMode.display}):e}));return Object(c.createElement)(j.MenuGroup,{label:Object(E.__)("Editor")},Object(c.createElement)(j.MenuItemsChoice,{choices:o,value:n,onSelect:t}))})),ot=Object(j.createSlotFill)("PluginsMoreMenuGroup"),rt=ot.Fill,ct=ot.Slot;rt.Slot=function(e){var t=e.fillProps;return Object(c.createElement)(ct,{fillProps:t},(function(e){return!Object(O.isEmpty)(e)&&Object(c.createElement)(j.MenuGroup,{label:Object(E.__)("Plugins")},e)}))};var it=rt;var at=Object(h.withDispatch)((function(e){return{openModal:e("core/edit-post").openModal}}))((function(e){var t=e.openModal;return Object(c.createElement)(j.MenuItem,{onClick:function(){t("edit-post/options")}},Object(E.__)("Options"))}));var lt=Object(g.compose)([Object(h.withSelect)((function(e,t){var n=t.feature;return{isActive:e("core/edit-post").isFeatureActive(n)}})),Object(h.withDispatch)((function(e,t){return{onToggle:function(){e("core/edit-post").toggleFeature(t.feature)}}})),j.withSpokenMessages])((function(e){var t=e.onToggle,n=e.isActive,o=e.label,r=e.info,i=e.messageActivated,a=e.messageDeactivated,l=e.speak;return Object(c.createElement)(j.MenuItem,{icon:n&&"yes",isSelected:n,onClick:Object(O.flow)(t,(function(){l(n?a||Object(E.__)("Feature deactivated"):i||Object(E.__)("Feature activated"))})),role:"menuitemcheckbox",info:r},o)}));var st=Object(s.ifViewportMatches)("medium")((function(){return Object(c.createElement)(j.MenuGroup,{label:Object(E._x)("View","noun")},Object(c.createElement)(lt,{feature:"fixedToolbar",label:Object(E.__)("Top Toolbar"),info:Object(E.__)("Access all block and document tools in a single place"),messageActivated:Object(E.__)("Top toolbar activated"),messageDeactivated:Object(E.__)("Top toolbar deactivated")}),Object(c.createElement)(lt,{feature:"focusMode",label:Object(E.__)("Spotlight Mode"),info:Object(E.__)("Focus on one block at a time"),messageActivated:Object(E.__)("Spotlight mode activated"),messageDeactivated:Object(E.__)("Spotlight mode deactivated")}),Object(c.createElement)(lt,{feature:"fullscreenMode",label:Object(E.__)("Fullscreen Mode"),info:Object(E.__)("Work without distraction"),messageActivated:Object(E.__)("Fullscreen mode activated"),messageDeactivated:Object(E.__)("Fullscreen mode deactivated")}))})),ut={className:"edit-post-more-menu__content",position:"bottom left"},dt={labelPosition:"bottom"},bt=function(){return Object(c.createElement)(j.DropdownMenu,{className:"edit-post-more-menu",icon:"ellipsis",label:Object(E.__)("More tools & options"),popoverProps:ut,toggleProps:dt},(function(e){var t=e.onClose;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(st,null),Object(c.createElement)(nt,null),Object(c.createElement)(it.Slot,{fillProps:{onClose:t}}),Object(c.createElement)(A.Slot,{fillProps:{onClose:t}}),Object(c.createElement)(j.MenuGroup,null,Object(c.createElement)(at,null)))}))},pt=Object(j.createSlotFill)("PinnedPlugins"),mt=pt.Fill,Ot=pt.Slot;mt.Slot=function(e){return Object(c.createElement)(Ot,e,(function(e){return!Object(O.isEmpty)(e)&&Object(c.createElement)("div",{className:"edit-post-pinned-plugins"},e)}))};var ft=mt;var jt=Object(g.compose)(Object(h.withSelect)((function(e){return{hasPublishAction:Object(O.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(h.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,i=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&&i||s&&!r&&!l?"button":l?"toggle":d?"toggle":"button",Object(c.createElement)(a.PostPublishButton,{forceIsDirty:n,forceIsSaving:o,isOpen:b,isToggle:"toggle"===t,onToggle:m})}));var ht=Object(g.compose)(Object(h.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(h.withDispatch)((function(e,t,n){var o=(0,n.select)("core/block-editor").getBlockSelectionStart,r=e("core/edit-post"),c=r.openGeneralSidebar;return{openGeneralSidebar:function(){return c(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,i=e.isSaving,s=e.openGeneralSidebar,u=o?t:s;return Object(c.createElement)("div",{role:"region","aria-label":Object(E.__)("Editor top bar"),className:"edit-post-header",tabIndex:"-1"},Object(c.createElement)("div",{className:"edit-post-header__toolbar"},Object(c.createElement)(Ze,null),Object(c.createElement)(Je,null)),Object(c.createElement)("div",{className:"edit-post-header__settings"},!r&&Object(c.createElement)(a.PostSavedState,{forceIsDirty:n,forceIsSaving:i}),Object(c.createElement)(a.PostPreviewButton,{forceIsAutosaveable:n,forcePreviewLink:i?null:void 0}),Object(c.createElement)(jt,{forceIsDirty:n,forceIsSaving:i}),Object(c.createElement)("div",null,Object(c.createElement)(j.IconButton,{icon:"admin-generic",label:Object(E.__)("Settings"),onClick:u,isToggled:o,"aria-expanded":o,shortcut:et.toggleSidebar}),Object(c.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(c.createElement)(ft.Slot,null),Object(c.createElement)(bt,null)))}));var Et=Object(g.compose)(Object(h.withSelect)((function(e){return{isRichEditingEnabled:e("core/editor").getEditorSettings().richEditingEnabled}})),Object(h.withDispatch)((function(e){return{onExit:function(){e("core/edit-post").switchEditorMode("visual")}}})))((function(e){var t=e.onExit,n=e.isRichEditingEnabled;return Object(c.createElement)("div",{className:"edit-post-text-editor"},n&&Object(c.createElement)("div",{className:"edit-post-text-editor__toolbar"},Object(c.createElement)("h2",null,Object(E.__)("Editing Code")),Object(c.createElement)(j.IconButton,{onClick:t,icon:"no-alt",shortcut:w.displayShortcut.secondary("m")},Object(E.__)("Exit Code Editor")),Object(c.createElement)(a.TextEditorGlobalKeyboardShortcuts,null)),Object(c.createElement)("div",{className:"edit-post-text-editor__body"},Object(c.createElement)(a.PostTitle,null),Object(c.createElement)(a.PostTextEditor,null)))}));var gt=Object(g.compose)(Object(h.withSelect)((function(e){return{areAdvancedSettingsOpened:"edit-post/block"===e("core/edit-post").getActiveGeneralSidebarName()}})),Object(h.withDispatch)((function(e){return{openEditorSidebar:function(){return e("core/edit-post").openGeneralSidebar("edit-post/block")},closeSidebar:e("core/edit-post").closeGeneralSidebar}})),j.withSpokenMessages)((function(e){var t=e.areAdvancedSettingsOpened,n=e.closeSidebar,o=e.openEditorSidebar,r=e.onClick,i=void 0===r?O.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(c.createElement)(j.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:Object(O.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"))}),i),icon:"admin-generic",shortcut:et.toggleSidebar},!l&&u)})),vt=Object(j.createSlotFill)("PluginBlockSettingsMenuGroup"),_t=vt.Fill,yt=vt.Slot;_t.Slot=Object(h.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(O.map)(n,(function(e){return e.name})),Object(c.createElement)(yt,{fillProps:Object(D.a)({},t,{selectedBlocks:n})},(function(e){return!Object(O.isEmpty)(e)&&Object(c.createElement)(c.Fragment,null,Object(c.createElement)("div",{className:"editor-block-settings-menu__separator block-editor-block-settings-menu__separator"}),e)}))}));var St=_t;var kt=function(){return Object(c.createElement)(i.BlockSelectionClearer,{className:"edit-post-visual-editor editor-styles-wrapper"},Object(c.createElement)(a.VisualEditorGlobalKeyboardShortcuts,null),Object(c.createElement)(i.MultiSelectScrollIntoView,null),Object(c.createElement)(i.Typewriter,null,Object(c.createElement)(i.WritingFlow,null,Object(c.createElement)(i.ObserveTyping,null,Object(c.createElement)(i.CopyHandler,null,Object(c.createElement)(a.PostTitle,null),Object(c.createElement)(i.BlockList,null))))),Object(c.createElement)(i.__experimentalBlockSettingsMenuFirstItem,null,(function(e){var t=e.onClose;return Object(c.createElement)(gt,{onClick:t})})),Object(c.createElement)(i.__experimentalBlockSettingsMenuPluginsExtension,null,(function(e){var t=e.clientIds,n=e.onClose;return Object(c.createElement)(St.Slot,{fillProps:{clientIds:t,onClose:n}})})))},Pt=n(5),wt=function(e){function t(){var e;return Object(Ge.a)(this,t),(e=Object(Ue.a)(this,Object(He.a)(t).apply(this,arguments))).toggleMode=e.toggleMode.bind(Object(Pt.a)(e)),e.toggleSidebar=e.toggleSidebar.bind(Object(Pt.a)(e)),e}return Object(We.a)(t,e),Object(Ve.a)(t,[{key:"toggleMode",value:function(){var e=this.props,t=e.mode,n=e.switchMode;e.isModeSwitchEnabled&&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(c.createElement)(j.KeyboardShortcuts,{bindGlobal:!0,shortcuts:(e={},Object(I.a)(e,et.toggleEditorMode.raw,this.toggleMode),Object(I.a)(e,et.toggleSidebar.raw,this.toggleSidebar),e)})}}]),t}(c.Component),Ct=Object(g.compose)([Object(h.withSelect)((function(e){var t=e("core/editor").getEditorSettings(),n=t.richEditingEnabled,o=t.codeEditingEnabled;return{isModeSwitchEnabled:n&&o,mode:e("core/edit-post").getEditorMode(),isEditorSidebarOpen:e("core/edit-post").isEditorSidebarOpened()}})),Object(h.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}}))])(wt),Tt=w.displayShortcutList.primary,xt=w.displayShortcutList.primaryShift,Nt=w.displayShortcutList.primaryAlt,At=w.displayShortcutList.secondary,Mt=w.displayShortcutList.access,Bt=w.displayShortcutList.ctrl,It=w.displayShortcutList.alt,Dt=w.displayShortcutList.ctrlShift,Lt=[{className:"edit-post-keyboard-shortcut-help__main-shortcuts",shortcuts:[{keyCombination:Mt("h"),description:Object(E.__)("Display these keyboard shortcuts.")}]},{title:Object(E.__)("Global shortcuts"),shortcuts:[{keyCombination:Tt("s"),description:Object(E.__)("Save your changes.")},{keyCombination:Tt("z"),description:Object(E.__)("Undo your last changes.")},{keyCombination:xt("z"),description:Object(E.__)("Redo your last undo.")},{keyCombination:xt(","),description:Object(E.__)("Show or hide the settings sidebar."),ariaLabel:w.shortcutAriaLabel.primaryShift(",")},{keyCombination:Mt("o"),description:Object(E.__)("Open the block navigation menu.")},{keyCombination:Bt("`"),description:Object(E.__)("Navigate to the next part of the editor."),ariaLabel:w.shortcutAriaLabel.ctrl("`")},{keyCombination:Dt("`"),description:Object(E.__)("Navigate to the previous part of the editor."),ariaLabel:w.shortcutAriaLabel.ctrlShift("`")},{keyCombination:Mt("n"),description:Object(E.__)("Navigate to the next part of the editor (alternative).")},{keyCombination:Mt("p"),description:Object(E.__)("Navigate to the previous part of the editor (alternative).")},{keyCombination:It("F10"),description:Object(E.__)("Navigate to the nearest toolbar.")},{keyCombination:At("m"),description:Object(E.__)("Switch between Visual Editor and Code Editor.")}]},{title:Object(E.__)("Selection shortcuts"),shortcuts:[{keyCombination:Tt("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:xt("d"),description:Object(E.__)("Duplicate the selected block(s).")},{keyCombination:Mt("z"),description:Object(E.__)("Remove the selected block(s).")},{keyCombination:Nt("t"),description:Object(E.__)("Insert a new block before the selected block(s).")},{keyCombination:Nt("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:Tt("b"),description:Object(E.__)("Make the selected text bold.")},{keyCombination:Tt("i"),description:Object(E.__)("Make the selected text italic.")},{keyCombination:Tt("k"),description:Object(E.__)("Convert the selected text into a link.")},{keyCombination:xt("k"),description:Object(E.__)("Remove a link.")},{keyCombination:Tt("u"),description:Object(E.__)("Underline the selected text.")}]}],Ft="edit-post/keyboard-shortcut-help",Rt=function(e){var t=e.shortcuts;return(Object(c.createElement)("ul",{className:"edit-post-keyboard-shortcut-help__shortcut-list",role:"list"},t.map((function(e,t){var n=e.keyCombination,o=e.description,r=e.ariaLabel;return Object(c.createElement)("li",{className:"edit-post-keyboard-shortcut-help__shortcut",key:t},Object(c.createElement)("div",{className:"edit-post-keyboard-shortcut-help__shortcut-description"},o),Object(c.createElement)("div",{className:"edit-post-keyboard-shortcut-help__shortcut-term"},Object(c.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(c.createElement)(c.Fragment,{key:t},e):Object(c.createElement)("kbd",{key:t,className:"edit-post-keyboard-shortcut-help__shortcut-key"},e)}))}(Object(O.castArray)(n)))))}))))},Gt=function(e){var t=e.title,n=e.shortcuts,o=e.className;return Object(c.createElement)("section",{className:ze()("edit-post-keyboard-shortcut-help__section",o)},!!t&&Object(c.createElement)("h2",{className:"edit-post-keyboard-shortcut-help__section-title"},t),Object(c.createElement)(Rt,{shortcuts:n}))};var Vt=Object(g.compose)([Object(h.withSelect)((function(e){return{isModalActive:e("core/edit-post").isModalActive(Ft)}})),Object(h.withDispatch)((function(e,t){var n=t.isModalActive,o=e("core/edit-post"),r=o.openModal,c=o.closeModal;return{toggleModal:function(){return n?c():r(Ft)}}}))])((function(e){var t=e.isModalActive,n=e.toggleModal;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(j.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(I.a)({},w.rawShortcut.access("h"),n)}),t&&Object(c.createElement)(j.Modal,{className:"edit-post-keyboard-shortcut-help",title:Object(E.__)("Keyboard Shortcuts"),closeLabel:Object(E.__)("Close"),onRequestClose:n},Lt.map((function(e,t){return Object(c.createElement)(Gt,Object(p.a)({key:t},e))}))))}));var Ut=function(e){var t=e.blockTypes,n=e.value,o=e.onItemChange;return Object(c.createElement)("ul",{className:"edit-post-manage-blocks-modal__checklist"},t.map((function(e){return Object(c.createElement)("li",{key:e.name,className:"edit-post-manage-blocks-modal__checklist-item"},Object(c.createElement)(j.CheckboxControl,{label:Object(c.createElement)(c.Fragment,null,e.title,Object(c.createElement)(i.BlockIcon,{icon:e.icon})),checked:n.includes(e.name),onChange:Object(O.partial)(o,e.name)}))})))},Ht=Object(c.createContext)({});var Wt=Object(g.compose)([g.withInstanceId,Object(h.withSelect)((function(e){return{hiddenBlockTypes:(0,e("core/edit-post").getPreference)("hiddenBlockTypes")}})),Object(h.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(O.map)(t.blockTypes,"name");e?o(n):r(n)}}}))])((function(e){var t=e.instanceId,n=e.category,o=e.blockTypes,r=e.hiddenBlockTypes,i=e.toggleVisible,a=e.toggleAllVisible,l=Object(c.useContext)(Ht).allowedBlockTypes,s=Object(c.useMemo)((function(){return!0===l?o:o.filter((function(e){var t=e.name;return Object(O.includes)(l||[],t)}))}),[l,o]);if(!s.length)return null;var u,d=O.without.apply(void 0,[Object(O.map)(s,"name")].concat(Object(B.a)(r))),b="edit-post-manage-blocks-modal__category-title-"+t,p=d.length===s.length;return u=p?"true":d.length>0?"mixed":"false",Object(c.createElement)("div",{role:"group","aria-labelledby":b,className:"edit-post-manage-blocks-modal__category"},Object(c.createElement)(j.CheckboxControl,{checked:p,onChange:a,className:"edit-post-manage-blocks-modal__category-title","aria-checked":u,label:Object(c.createElement)("span",{id:b},n.title)}),Object(c.createElement)(Ut,{blockTypes:s,value:d,onItemChange:i}))}));var qt=Object(g.compose)([Object(g.withState)({search:""}),Object(h.withSelect)((function(e){var t=e("core/blocks"),n=t.getBlockTypes,o=t.getCategories,r=t.hasBlockSupport,c=t.isMatchingSearchTerm,i=(0,e("core/edit-post").getPreference)("hiddenBlockTypes"),a=Object(O.isArray)(i)&&i.length;return{blockTypes:n(),categories:o(),hasBlockSupport:r,isMatchingSearchTerm:c,numberOfHiddenBlocks:a}}))])((function(e){var t=e.search,n=e.setState,o=e.blockTypes,r=e.categories,i=e.hasBlockSupport,a=e.isMatchingSearchTerm,l=e.numberOfHiddenBlocks;return o=o.filter((function(e){return i(e,"inserter",!0)&&(!t||a(e,t))&&!e.parent})),Object(c.createElement)("div",{className:"edit-post-manage-blocks-modal__content"},Object(c.createElement)(j.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"}),!!l&&Object(c.createElement)("div",{className:"edit-post-manage-blocks-modal__disabled-blocks-count"},Object(E.sprintf)(Object(E._n)("%1$d block is disabled.","%1$d blocks are disabled.",l),l)),Object(c.createElement)("div",{tabIndex:"0",role:"region","aria-label":Object(E.__)("Available block types"),className:"edit-post-manage-blocks-modal__results"},0===o.length&&Object(c.createElement)("p",{className:"edit-post-manage-blocks-modal__no-results"},Object(E.__)("No blocks found.")),r.map((function(e){return Object(c.createElement)(Wt,{key:e.slug,category:e,blockTypes:Object(O.filter)(o,{category:e.slug})})}))))}));var Kt=Object(g.compose)([Object(h.withSelect)((function(e){return{isActive:(0,e("core/edit-post").isModalActive)("edit-post/manage-blocks")}})),Object(h.withDispatch)((function(e){return{closeModal:e("core/edit-post").closeModal}}))])((function(e){var t=e.isActive,n=e.closeModal;return t?Object(c.createElement)(j.Modal,{className:"edit-post-manage-blocks-modal",title:Object(E.__)("Block Manager"),closeLabel:Object(E.__)("Close"),onRequestClose:n},Object(c.createElement)(qt,null)):null})),Qt=function(e){var t=e.title,n=e.children;return Object(c.createElement)("section",{className:"edit-post-options-modal__section"},Object(c.createElement)("h2",{className:"edit-post-options-modal__section-title"},t),n)};var Xt=function(e){var t=e.label,n=e.isChecked,o=e.onChange,r=e.children;return Object(c.createElement)("div",{className:"edit-post-options-modal__option"},Object(c.createElement)(j.CheckboxControl,{label:t,checked:n,onChange:o}),r)};function zt(e){var t=e.willEnable,n=Object(c.useState)(!1),o=Object(H.a)(n,2),r=o[0],i=o[1];return Object(c.createElement)(c.Fragment,null,Object(c.createElement)("p",{className:"edit-post-options-modal__custom-fields-confirmation-message"},Object(E.__)("A page reload is required for this change. Make sure your content is saved before reloading.")),Object(c.createElement)(j.Button,{className:"edit-post-options-modal__custom-fields-confirmation-button",isDefault:!0,isBusy:r,disabled:r,onClick:function(){i(!0),document.getElementById("toggle-custom-fields-form").submit()}},t?Object(E.__)("Enable & Reload"):Object(E.__)("Disable & Reload")))}var Yt=Object(h.withSelect)((function(e){return{areCustomFieldsEnabled:!!e("core/editor").getEditorSettings().enableCustomFields}}))((function(e){var t=e.label,n=e.areCustomFieldsEnabled,o=Object(c.useState)(n),r=Object(H.a)(o,2),i=r[0],a=r[1];return Object(c.createElement)(Xt,{label:t,isChecked:i,onChange:a},i!==n&&Object(c.createElement)(zt,{willEnable:i}))})),$t=Object(g.compose)(Object(h.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(g.ifCondition)((function(e){return!e.isRemoved})),Object(h.withDispatch)((function(e,t){var n=t.panelName;return{onChange:function(){return e("core/edit-post").toggleEditorPanelEnabled(n)}}})))(Xt),Zt=Object(j.createSlotFill)("EnablePluginDocumentSettingPanelOption"),Jt=Zt.Fill,en=Zt.Slot,tn=function(e){var t=e.label,n=e.panelName;return Object(c.createElement)(Jt,null,Object(c.createElement)($t,{label:t,panelName:n}))};tn.Slot=en;var nn=tn,on=Object(g.compose)(Object(h.withSelect)((function(e){return{isChecked:e("core/editor").isPublishSidebarEnabled()}})),Object(h.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"))(Xt),rn=function(e){function t(e){var n,o=e.isChecked;return Object(Ge.a)(this,t),(n=Object(Ue.a)(this,Object(He.a)(t).apply(this,arguments))).state={isChecked:o},n}return Object(We.a)(t,e),Object(Ve.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(c.createElement)(Xt,{label:this.props.label,isChecked:this.state.isChecked,onChange:function(t){return e.setState({isChecked:t})}})}}]),t}(c.Component),cn=Object(g.compose)(Object(h.withSelect)((function(e){return{isChecked:e("core/nux").areTipsEnabled()}})),Object(h.withDispatch)((function(e){var t=e("core/nux"),n=t.enableTips,o=t.disableTips;return{onChange:function(e){return e?n():o()}}})))(rn),an=Object(g.compose)(Object(h.withSelect)((function(e,t){var n=t.feature;return{isChecked:e("core/edit-post").isFeatureActive(n)}})),Object(h.withDispatch)((function(e,t){var n=t.feature,o=e("core/edit-post").toggleFeature;return{onChange:function(){o(n)}}})))(Xt);var ln=Object(h.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(m.a)(e,["areCustomFieldsRegistered","metaBoxes"]),r=Object(O.filter)(n,(function(e){return"postcustom"!==e.id}));return t||0!==r.length?Object(c.createElement)(Qt,o,t&&Object(c.createElement)(Yt,{label:Object(E.__)("Custom Fields")}),Object(O.map)(r,(function(e){var t=e.id,n=e.title;return Object(c.createElement)($t,{key:t,label:n,panelName:"meta-box-".concat(t)})}))):null}));var sn=Object(g.compose)(Object(h.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(O.get)(n,["viewable"],!1)}})),Object(h.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(c.createElement)(j.Modal,{className:"edit-post-options-modal",title:Object(E.__)("Options"),closeLabel:Object(E.__)("Close"),onRequestClose:o},Object(c.createElement)(Qt,{title:Object(E.__)("General")},Object(c.createElement)(on,{label:Object(E.__)("Pre-publish Checks")}),Object(c.createElement)(cn,{label:Object(E.__)("Tips")}),Object(c.createElement)(an,{feature:"showInserterHelpPanel",label:Object(E.__)("Inserter Help Panel")})),Object(c.createElement)(Qt,{title:Object(E.__)("Document Panels")},Object(c.createElement)(nn.Slot,null),n&&Object(c.createElement)($t,{label:Object(E.__)("Permalink"),panelName:"post-link"}),Object(c.createElement)(a.PostTaxonomies,{taxonomyWrapper:function(e,t){return Object(c.createElement)($t,{label:Object(O.get)(t,["labels","menu_name"]),panelName:"taxonomy-panel-".concat(t.slug)})}}),Object(c.createElement)(a.PostFeaturedImageCheck,null,Object(c.createElement)($t,{label:Object(E.__)("Featured Image"),panelName:"featured-image"})),Object(c.createElement)(a.PostExcerptCheck,null,Object(c.createElement)($t,{label:Object(E.__)("Excerpt"),panelName:"post-excerpt"})),Object(c.createElement)(a.PostTypeSupportCheck,{supportKeys:["comments","trackbacks"]},Object(c.createElement)($t,{label:Object(E.__)("Discussion"),panelName:"discussion-panel"})),Object(c.createElement)(a.PageAttributesCheck,null,Object(c.createElement)($t,{label:Object(E.__)("Page Attributes"),panelName:"page-attributes"}))),Object(c.createElement)(ln,{title:Object(E.__)("Advanced Panels")})):null})),un=function(e){function t(){var e;return Object(Ge.a)(this,t),(e=Object(Ue.a)(this,Object(He.a)(t).apply(this,arguments))).bindContainerNode=e.bindContainerNode.bind(Object(Pt.a)(e)),e}return Object(We.a)(t,e),Object(Ve.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=ze()("edit-post-meta-boxes-area","is-".concat(t),{"is-loading":n});return Object(c.createElement)("div",{className:o},n&&Object(c.createElement)(j.Spinner,null),Object(c.createElement)("div",{className:"edit-post-meta-boxes-area__container",ref:this.bindContainerNode}),Object(c.createElement)("div",{className:"edit-post-meta-boxes-area__clear"}))}}]),t}(c.Component),dn=Object(h.withSelect)((function(e){return{isSaving:e("core/edit-post").isSavingMetaBoxes()}}))(un),bn=function(e){function t(){return Object(Ge.a)(this,t),Object(Ue.a)(this,Object(He.a)(t).apply(this,arguments))}return Object(We.a)(t,e),Object(Ve.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}(c.Component),pn=Object(h.withSelect)((function(e,t){var n=t.id;return{isVisible:e("core/edit-post").isEditorPanelEnabled("meta-box-".concat(n))}}))(bn);var mn=Object(h.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(c.createElement)(c.Fragment,null,Object(O.map)(o,(function(e){var t=e.id;return Object(c.createElement)(pn,{key:t,id:t})})),n&&Object(c.createElement)(dn,{location:t}))})),On=Object(j.createSlotFill)("Sidebar"),fn=On.Fill,jn=On.Slot;function hn(e){var t=e.children,n=e.label,o=e.className;return Object(c.createElement)("div",{className:ze()("edit-post-sidebar",o),role:"region","aria-label":n,tabIndex:"-1"},t)}hn=Object(j.withFocusReturn)({onFocusReturn:function(){var e=document.querySelector('.edit-post-header__settings [aria-label="Settings"]');if(e)return e.focus(),!1}})(hn);var En=Object(g.compose)(Object(h.withSelect)((function(e,t){var n=t.name;return{isActive:e("core/edit-post").getActiveGeneralSidebarName()===n}})),Object(g.ifCondition)((function(e){return e.isActive})))((function(e){return Object(c.createElement)(fn,null,Object(c.createElement)(j.Animate,{type:"slide-in",options:{origin:"left"}},(function(){return Object(c.createElement)(hn,e)})))}));En.Slot=jn;var gn=En,vn=Object(g.compose)(Object(h.withSelect)((function(e){return{title:e("core/editor").getEditedPostAttribute("title")}})),Object(h.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,i=e.title;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)("div",{className:"components-panel__header edit-post-sidebar-header__small"},Object(c.createElement)("span",{className:"edit-post-sidebar-header__title"},i||Object(E.__)("(no title)")),Object(c.createElement)(j.IconButton,{onClick:r,icon:"no-alt",label:o})),Object(c.createElement)("div",{className:ze()("components-panel__header edit-post-sidebar-header",n)},t,Object(c.createElement)(j.IconButton,{onClick:r,icon:"no-alt",label:o,shortcut:et.toggleSidebar})))})),_n=Object(h.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"),i="edit-post/document"===o?[Object(E.__)("Document (selected)"),"is-active"]:[Object(E.__)("Document"),""],a=Object(H.a)(i,2),l=a[0],s=a[1],u="edit-post/block"===o?[Object(E.__)("Block (selected)"),"is-active"]:[Object(E.__)("Block"),""],d=Object(H.a)(u,2),b=d[0],p=d[1];return Object(c.createElement)(vn,{className:"edit-post-sidebar__panel-tabs",closeLabel:Object(E.__)("Close settings")},Object(c.createElement)("ul",null,Object(c.createElement)("li",null,Object(c.createElement)("button",{onClick:t,className:"edit-post-sidebar__panel-tab ".concat(s),"aria-label":l,"data-label":Object(E.__)("Document")},Object(E.__)("Document"))),Object(c.createElement)("li",null,Object(c.createElement)("button",{onClick:n,className:"edit-post-sidebar__panel-tab ".concat(p),"aria-label":b,"data-label":r},r))))}));var yn=function(){return Object(c.createElement)(a.PostVisibilityCheck,{render:function(e){var t=e.canEdit;return Object(c.createElement)(j.PanelRow,{className:"edit-post-post-visibility"},Object(c.createElement)("span",null,Object(E.__)("Visibility")),!t&&Object(c.createElement)("span",null,Object(c.createElement)(a.PostVisibilityLabel,null)),t&&Object(c.createElement)(j.Dropdown,{position:"bottom left",contentClassName:"edit-post-post-visibility__dialog",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(c.createElement)(j.Button,{type:"button","aria-expanded":t,className:"edit-post-post-visibility__toggle",onClick:n,isLink:!0},Object(c.createElement)(a.PostVisibilityLabel,null))},renderContent:function(){return Object(c.createElement)(a.PostVisibility,null)}}))}})};function Sn(){return Object(c.createElement)(a.PostTrashCheck,null,Object(c.createElement)(j.PanelRow,null,Object(c.createElement)(a.PostTrash,null)))}var kn=function(){return Object(c.createElement)(a.PostScheduleCheck,null,Object(c.createElement)(j.PanelRow,{className:"edit-post-post-schedule"},Object(c.createElement)("span",null,Object(E.__)("Publish")),Object(c.createElement)(j.Dropdown,{position:"bottom left",contentClassName:"edit-post-post-schedule__dialog",renderToggle:function(e){var t=e.onToggle,n=e.isOpen;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(j.Button,{type:"button",className:"edit-post-post-schedule__toggle",onClick:t,"aria-expanded":n,isLink:!0},Object(c.createElement)(a.PostScheduleLabel,null)))},renderContent:function(){return Object(c.createElement)(a.PostSchedule,null)}})))};var Pn=function(){return Object(c.createElement)(a.PostStickyCheck,null,Object(c.createElement)(j.PanelRow,null,Object(c.createElement)(a.PostSticky,null)))};var wn=function(){return Object(c.createElement)(a.PostAuthorCheck,null,Object(c.createElement)(j.PanelRow,null,Object(c.createElement)(a.PostAuthor,null)))};var Cn=function(){return Object(c.createElement)(a.PostFormatCheck,null,Object(c.createElement)(j.PanelRow,null,Object(c.createElement)(a.PostFormat,null)))};var Tn=function(){return Object(c.createElement)(a.PostPendingStatusCheck,null,Object(c.createElement)(j.PanelRow,null,Object(c.createElement)(a.PostPendingStatus,null)))},xn=Object(j.createSlotFill)("PluginPostStatusInfo"),Nn=xn.Fill,An=xn.Slot,Mn=function(e){var t=e.children,n=e.className;return Object(c.createElement)(Nn,null,Object(c.createElement)(j.PanelRow,{className:n},t))};Mn.Slot=An;var Bn=Mn;var In=Object(g.compose)([Object(h.withSelect)((function(e){var t=e("core/edit-post"),n=t.isEditorPanelRemoved,o=t.isEditorPanelOpened;return{isRemoved:n("post-status"),isOpened:o("post-status")}})),Object(g.ifCondition)((function(e){return!e.isRemoved})),Object(h.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(c.createElement)(j.PanelBody,{className:"edit-post-post-status",title:Object(E.__)("Status & Visibility"),opened:t,onToggle:n},Object(c.createElement)(Bn.Slot,null,(function(e){return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(yn,null),Object(c.createElement)(kn,null),Object(c.createElement)(Cn,null),Object(c.createElement)(Pn,null),Object(c.createElement)(Tn,null),Object(c.createElement)(wn,null),e,Object(c.createElement)(Sn,null))})))}));var Dn=function(){return Object(c.createElement)(a.PostLastRevisionCheck,null,Object(c.createElement)(j.PanelBody,{className:"edit-post-last-revision__panel"},Object(c.createElement)(a.PostLastRevision,null)))};var Ln=Object(g.compose)(Object(h.withSelect)((function(e,t){var n=Object(O.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(h.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,i=e.children;if(!t)return null;var a=Object(O.get)(n,["labels","menu_name"]);return a?Object(c.createElement)(j.PanelBody,{title:a,opened:o,onToggle:r},i):null}));var Fn=function(){return Object(c.createElement)(a.PostTaxonomiesCheck,null,Object(c.createElement)(a.PostTaxonomies,{taxonomyWrapper:function(e,t){return Object(c.createElement)(Ln,{taxonomy:t},e)}}))};var Rn=Object(h.withSelect)((function(e){var t=e("core/editor").getEditedPostAttribute,n=e("core").getPostType,o=e("core/edit-post"),r=o.isEditorPanelEnabled,c=o.isEditorPanelOpened;return{postType:n(t("type")),isEnabled:r("featured-image"),isOpened:c("featured-image")}})),Gn=Object(h.withDispatch)((function(e){var t=e("core/edit-post").toggleEditorPanelOpened;return{onTogglePanel:Object(O.partial)(t,"featured-image")}})),Vn=Object(g.compose)(Rn,Gn)((function(e){var t=e.isEnabled,n=e.isOpened,o=e.postType,r=e.onTogglePanel;return t?Object(c.createElement)(a.PostFeaturedImageCheck,null,Object(c.createElement)(j.PanelBody,{title:Object(O.get)(o,["labels","featured_image"],Object(E.__)("Featured Image")),opened:n,onToggle:r},Object(c.createElement)(a.PostFeaturedImage,null))):null}));var Un=Object(g.compose)([Object(h.withSelect)((function(e){return{isEnabled:e("core/edit-post").isEditorPanelEnabled("post-excerpt"),isOpened:e("core/edit-post").isEditorPanelOpened("post-excerpt")}})),Object(h.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(c.createElement)(a.PostExcerptCheck,null,Object(c.createElement)(j.PanelBody,{title:Object(E.__)("Excerpt"),opened:n,onToggle:o},Object(c.createElement)(a.PostExcerpt,null))):null}));var Hn=Object(g.compose)([Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.isEditedPostNew,o=t.isPermalinkEditable,r=t.getCurrentPost,c=t.isCurrentPostPublished,i=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,f=d(a("type"));return{isNew:n(),postLink:p,isEditable:o(),isPublished:c(),isOpened:u("post-link"),permalinkParts:i(),isEnabled:s("post-link"),isViewable:Object(O.get)(f,["viewable"],!1),postTitle:a("title"),postSlug:a("slug"),postID:m,postTypeLabel:Object(O.get)(f,["labels","view_item"])}})),Object(g.ifCondition)((function(e){var t=e.isEnabled,n=e.isNew,o=e.postLink,r=e.isViewable,c=e.permalinkParts;return t&&!n&&o&&r&&c})),Object(h.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(g.withState)({forceEmptyField:!1})])((function(e){var t,n,o,r=e.isOpened,i=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,h=e.postTypeLabel,g=u.prefix,v=u.suffix,_=Object(S.safeDecodeURIComponent)(O)||Object(a.cleanForSlug)(m)||f;return l&&(t=g&&Object(c.createElement)("span",{className:"edit-post-post-link__link-prefix"},g),n=_&&Object(c.createElement)("span",{className:"edit-post-post-link__link-post-name"},_),o=v&&Object(c.createElement)("span",{className:"edit-post-post-link__link-suffix"},v)),Object(c.createElement)(j.PanelBody,{title:Object(E.__)("Permalink"),opened:r,onToggle:i},l&&Object(c.createElement)("div",{className:"editor-post-link"},Object(c.createElement)(j.TextControl,{label:Object(E.__)("URL Slug"),value:b?"":_,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(c.createElement)("p",null,Object(E.__)("The last part of the URL.")," ",Object(c.createElement)(j.ExternalLink,{href:"https://wordpress.org/support/article/writing-posts/#post-field-descriptions"},Object(E.__)("Read about permalinks")))),Object(c.createElement)("p",{className:"edit-post-post-link__preview-label"},h||Object(E.__)("View Post")),Object(c.createElement)("div",{className:"edit-post-post-link__preview-link-container"},Object(c.createElement)(j.ExternalLink,{className:"edit-post-post-link__link",href:s,target:"_blank"},l?Object(c.createElement)(c.Fragment,null,t,n,o):s)))}));var Wn=Object(g.compose)([Object(h.withSelect)((function(e){return{isEnabled:e("core/edit-post").isEditorPanelEnabled("discussion-panel"),isOpened:e("core/edit-post").isEditorPanelOpened("discussion-panel")}})),Object(h.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(c.createElement)(a.PostTypeSupportCheck,{supportKeys:["comments","trackbacks"]},Object(c.createElement)(j.PanelBody,{title:Object(E.__)("Discussion"),opened:n,onToggle:o},Object(c.createElement)(a.PostTypeSupportCheck,{supportKeys:"comments"},Object(c.createElement)(j.PanelRow,null,Object(c.createElement)(a.PostComments,null))),Object(c.createElement)(a.PostTypeSupportCheck,{supportKeys:"trackbacks"},Object(c.createElement)(j.PanelRow,null,Object(c.createElement)(a.PostPingbacks,null))))):null}));var qn=Object(h.withSelect)((function(e){var t=e("core/editor").getEditedPostAttribute,n=e("core/edit-post"),o=n.isEditorPanelEnabled,r=n.isEditorPanelOpened,c=e("core").getPostType;return{isEnabled:o("page-attributes"),isOpened:r("page-attributes"),postType:c(t("type"))}})),Kn=Object(h.withDispatch)((function(e){var t=e("core/edit-post").toggleEditorPanelOpened;return{onTogglePanel:Object(O.partial)(t,"page-attributes")}})),Qn=Object(g.compose)(qn,Kn)((function(e){var t=e.isEnabled,n=e.isOpened,o=e.onTogglePanel,r=e.postType;return t&&r?Object(c.createElement)(a.PageAttributesCheck,null,Object(c.createElement)(j.PanelBody,{title:Object(O.get)(r,["labels","attributes"],Object(E.__)("Page Attributes")),opened:n,onToggle:o},Object(c.createElement)(a.PageTemplate,null),Object(c.createElement)(a.PageAttributesParent,null),Object(c.createElement)(j.PanelRow,null,Object(c.createElement)(a.PageAttributesOrder,null)))):null})),Xn=Object(j.createSlotFill)("PluginDocumentSettingPanel"),zn=Xn.Fill,Yn=Xn.Slot,$n=Object(g.compose)(Object(y.withPluginContext)((function(e,t){return{icon:t.icon||e.icon,panelName:"".concat(e.name,"/").concat(t.name)}})),Object(h.withSelect)((function(e,t){var n=t.panelName;return{opened:e("core/edit-post").isEditorPanelOpened(n),isEnabled:e("core/edit-post").isEditorPanelEnabled(n)}})),Object(h.withDispatch)((function(e,t){var n=t.panelName;return{onToggle:function(){return e("core/edit-post").toggleEditorPanelOpened(n)}}})))((function(e){var t=e.isEnabled,n=e.panelName,o=e.opened,r=e.onToggle,i=e.className,a=e.title,l=e.icon,s=e.children;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(nn,{label:a,panelName:n}),Object(c.createElement)(zn,null,t&&Object(c.createElement)(j.PanelBody,{className:i,title:a,icon:l,opened:o,onToggle:r},s)))}));$n.Slot=Yn;var Zn=$n,Jn=Object(g.compose)(Object(h.withSelect)((function(e){var t=e("core/edit-post"),n=t.getActiveGeneralSidebarName;return{isEditorSidebarOpened:(0,t.isEditorSidebarOpened)(),sidebarName:n()}})),Object(g.ifCondition)((function(e){return e.isEditorSidebarOpened})))((function(e){var t=e.sidebarName;return Object(c.createElement)(gn,{name:t,label:Object(E.__)("Editor settings")},Object(c.createElement)(_n,{sidebarName:t}),Object(c.createElement)(j.Panel,null,"edit-post/document"===t&&Object(c.createElement)(c.Fragment,null,Object(c.createElement)(In,null),Object(c.createElement)(Zn.Slot,null),Object(c.createElement)(Dn,null),Object(c.createElement)(Hn,null),Object(c.createElement)(Fn,null),Object(c.createElement)(Vn,null),Object(c.createElement)(Un,null),Object(c.createElement)(Wn,null),Object(c.createElement)(Qn,null),Object(c.createElement)(mn,{location:"side"})),"edit-post/block"===t&&Object(c.createElement)(j.PanelBody,{className:"edit-post-settings-sidebar__panel-block"},Object(c.createElement)(i.BlockInspector,null))))})),eo=Object(j.createSlotFill)("PluginPostPublishPanel"),to=eo.Fill,no=eo.Slot,oo=Object(g.compose)(Object(y.withPluginContext)((function(e,t){return{icon:t.icon||e.icon}})))((function(e){var t=e.children,n=e.className,o=e.title,r=e.initialOpen,i=void 0!==r&&r,a=e.icon;return Object(c.createElement)(to,null,Object(c.createElement)(j.PanelBody,{className:n,initialOpen:i||!o,title:o,icon:a},t))}));oo.Slot=no;var ro=oo,co=Object(j.createSlotFill)("PluginPrePublishPanel"),io=co.Fill,ao=co.Slot,lo=Object(g.compose)(Object(y.withPluginContext)((function(e,t){return{icon:t.icon||e.icon}})))((function(e){var t=e.children,n=e.className,o=e.title,r=e.initialOpen,i=void 0!==r&&r,a=e.icon;return Object(c.createElement)(io,null,Object(c.createElement)(j.PanelBody,{className:n,initialOpen:i||!o,title:o,icon:a},t))}));lo.Slot=ao;var so=lo,uo=function(e){function t(){return Object(Ge.a)(this,t),Object(Ue.a)(this,Object(He.a)(t).apply(this,arguments))}return Object(We.a)(t,e),Object(Ve.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}(c.Component),bo=Object(h.withSelect)((function(e){return{isActive:e("core/edit-post").isFeatureActive("fullscreenMode")}}))(uo);var po=Object(g.compose)(Object(h.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(h.withDispatch)((function(e){var t=e("core/edit-post");return{closePublishSidebar:t.closePublishSidebar,togglePublishSidebar:t.togglePublishSidebar}})),j.navigateRegions,Object(s.withViewportMatch)({isMobileViewport:"< small"}))((function(e){var t=e.mode,n=e.editorSidebarOpened,o=e.pluginSidebarOpened,r=e.publishSidebarOpened,i=e.hasFixedToolbar,l=e.closePublishSidebar,s=e.togglePublishSidebar,u=e.hasActiveMetaboxes,d=e.isSaving,b=e.isMobileViewport,m=e.isRichEditingEnabled,O=n||o||r,f=ze()("edit-post-layout",{"is-sidebar-opened":O,"has-fixed-toolbar":i,"has-metaboxes":u}),h={role:"region","aria-label":Object(E.__)("Editor publish"),tabIndex:-1};return Object(c.createElement)(j.FocusReturnProvider,{className:f},Object(c.createElement)(bo,null),Object(c.createElement)($e,null),Object(c.createElement)(a.UnsavedChangesWarning,null),Object(c.createElement)(a.AutosaveMonitor,null),Object(c.createElement)(a.LocalAutosaveMonitor,null),Object(c.createElement)(ht,null),Object(c.createElement)("div",{className:"edit-post-layout__content",role:"region","aria-label":Object(E.__)("Editor content"),tabIndex:"-1"},Object(c.createElement)(a.EditorNotices,null),Object(c.createElement)(Ct,null),Object(c.createElement)(Vt,null),Object(c.createElement)(Kt,null),Object(c.createElement)(sn,null),("text"===t||!m)&&Object(c.createElement)(Et,null),m&&"visual"===t&&Object(c.createElement)(kt,null),Object(c.createElement)("div",{className:"edit-post-layout__metaboxes"},Object(c.createElement)(mn,{location:"normal"})),Object(c.createElement)("div",{className:"edit-post-layout__metaboxes"},Object(c.createElement)(mn,{location:"advanced"}))),r?Object(c.createElement)(a.PostPublishPanel,Object(p.a)({},h,{onClose:l,forceIsDirty:u,forceIsSaving:d,PrePublishExtension:so.Slot,PostPublishExtension:ro.Slot})):Object(c.createElement)(c.Fragment,null,Object(c.createElement)("div",Object(p.a)({className:"edit-post-toggle-publish-panel"},h),Object(c.createElement)(j.Button,{isDefault:!0,type:"button",className:"edit-post-toggle-publish-panel__button",onClick:s,"aria-expanded":!1},Object(E.__)("Open publish panel"))),Object(c.createElement)(Jn,null),Object(c.createElement)(gn.Slot,null),b&&O&&Object(c.createElement)(j.ScrollLock,null)),Object(c.createElement)(j.Popover.Slot,null),Object(c.createElement)(y.PluginArea,null))})),mo=function(e){var t=e.postId;!function(e){var t=Object(h.useSelect)((function(e){return{hasBlockSelection:!!e("core/block-editor").getBlockSelectionStart(),isEditorSidebarOpened:e(Fe).isEditorSidebarOpened()}}),[e]),n=t.hasBlockSelection,o=t.isEditorSidebarOpened,r=Object(h.useDispatch)(Fe).openGeneralSidebar;Object(c.useEffect)((function(){o&&r(n?"edit-post/block":"edit-post/document")}),[n,o])}(t),function(e){var t=Object(h.useSelect)((function(e){return{isSmall:e("core/viewport").isViewportMatch("< medium"),activeGeneralSidebarName:e(Fe).getActiveGeneralSidebarName()}}),[e]),n=t.isSmall,o=t.activeGeneralSidebarName,r=Object(h.useDispatch)(Fe),i=r.openGeneralSidebar,a=r.closeGeneralSidebar,l=Object(c.useRef)(null),s=Object(c.useRef)(null);Object(c.useEffect)((function(){l.current!==n&&(l.current=n,n?(s.current=o,o&&a()):s.current&&!o&&(i(s.current),s.current=null))}),[n,o])}(t),function(e){var t=Object(h.useSelect)((function(e){return{newPermalink:e("core/editor").getCurrentPost().link}}),[e]).newPermalink,n=Object(c.useRef)();Object(c.useEffect)((function(){n.current=document.querySelector("#wp-admin-bar-preview a")||document.querySelector("#wp-admin-bar-view a")}),[e]),Object(c.useEffect)((function(){t&&n.current&&n.current.setAttribute("href",t)}),[t])}(t);var n=Object(h.useDispatch)("core/nux").triggerGuide;return Object(c.useEffect)((function(){n(["core/editor.inserter","core/editor.settings","core/editor.preview","core/editor.publish"])}),[n]),null},Oo=function(e){function t(){var e;return Object(Ge.a)(this,t),(e=Object(Ue.a)(this,Object(He.a)(t).apply(this,arguments))).getEditorSettings=Ke()(e.getEditorSettings,{maxSize:1}),e}return Object(We.a)(t,e),Object(Ve.a)(t,[{key:"getEditorSettings",value:function(e,t,n,o,r,c,i,a,l){if(e=Object(D.a)({},e,{__experimentalPreferredStyleVariations:{value:i,onChange:l},hasFixedToolbar:t,focusMode:o,showInserterHelpPanel:n,__experimentalLocalAutosaveInterval:a}),Object(O.size)(r)>0){var s=!0===e.allowedBlockTypes?Object(O.map)(c,"name"):e.allowedBlockTypes||[];e.allowedBlockTypes=O.without.apply(void 0,[s].concat(Object(B.a)(r)))}return e}},{key:"render",value:function(){var e=this.props,t=e.settings,n=e.hasFixedToolbar,o=e.focusMode,r=e.post,i=e.postId,l=e.initialEdits,s=e.onError,u=e.hiddenBlockTypes,d=e.blockTypes,b=e.preferredStyleVariations,O=e.__experimentalLocalAutosaveInterval,f=e.showInserterHelpPanel,h=e.updatePreferredStyleVariations,E=Object(m.a)(e,["settings","hasFixedToolbar","focusMode","post","postId","initialEdits","onError","hiddenBlockTypes","blockTypes","preferredStyleVariations","__experimentalLocalAutosaveInterval","showInserterHelpPanel","updatePreferredStyleVariations"]);if(!r)return null;var g=this.getEditorSettings(t,n,f,o,u,d,b,O,h);return Object(c.createElement)(c.StrictMode,null,Object(c.createElement)(Ht.Provider,{value:t},Object(c.createElement)(j.SlotFillProvider,null,Object(c.createElement)(j.DropZoneProvider,null,Object(c.createElement)(a.EditorProvider,Object(p.a)({settings:g,post:r,initialEdits:l,useSubRegistry:!1},E),Object(c.createElement)(a.ErrorBoundary,{onError:s},Object(c.createElement)(mo,{postId:i}),Object(c.createElement)(po,null),Object(c.createElement)(j.KeyboardShortcuts,{shortcuts:Qe})),Object(c.createElement)(a.PostLockedModal,null))))))}}]),t}(c.Component),fo=Object(g.compose)([Object(h.withSelect)((function(e,t){var n=t.postId,o=t.postType,r=e("core/edit-post"),c=r.isFeatureActive,i=r.getPreference,a=e("core").getEntityRecord,l=e("core/blocks").getBlockTypes;return{showInserterHelpPanel:c("showInserterHelpPanel"),hasFixedToolbar:c("fixedToolbar"),focusMode:c("focusMode"),post:a("postType",o,n),preferredStyleVariations:i("preferredStyleVariations"),hiddenBlockTypes:i("hiddenBlockTypes"),blockTypes:l(),__experimentalLocalAutosaveInterval:i("localAutosaveInterval")}})),Object(h.withDispatch)((function(e){return{updatePreferredStyleVariations:e("core/edit-post").updatePreferredStyleVariations}}))])(Oo),jo=function(e,t){return!Array.isArray(t)||(n=e,o=t,0===Object(O.difference)(n,o).length);var n,o},ho=function(e){var t=e.allowedBlocks,n=e.icon,o=e.label,r=e.onClick,i=e.small,a=e.role;return Object(c.createElement)(St,null,(function(e){var l=e.selectedBlocks,s=e.onClose;return jo(l,t)?Object(c.createElement)(j.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:Object(g.compose)(r,s),icon:n||"admin-plugins",label:i?o:void 0,role:a},!i&&o):null}))},Eo=Object(g.compose)(Object(y.withPluginContext)((function(e,t){return{icon:t.icon||e.icon}})))((function(e){var t=e.onClick,n=void 0===t?O.noop:t,o=Object(m.a)(e,["onClick"]);return Object(c.createElement)(it,null,(function(e){return Object(c.createElement)(j.MenuItem,Object(p.a)({},o,{onClick:Object(g.compose)(n,e.onClose)}))}))}));var go=Object(g.compose)(Object(y.withPluginContext)((function(e,t){return{icon:t.icon||e.icon,sidebarName:"".concat(e.name,"/").concat(t.name)}})),Object(h.withSelect)((function(e,t){var n=t.sidebarName,o=e("core/edit-post"),r=o.getActiveGeneralSidebarName,c=o.isPluginItemPinned;return{isActive:r()===n,isPinned:c(n)}})),Object(h.withDispatch)((function(e,t){var n=t.isActive,o=t.sidebarName,r=e("core/edit-post"),c=r.closeGeneralSidebar,i=r.openGeneralSidebar,a=r.togglePinnedPluginItem;return{togglePin:function(){a(o)},toggleSidebar:function(){n?c():i(o)}}})))((function(e){var t=e.children,n=e.className,o=e.icon,r=e.isActive,i=e.isPinnable,a=void 0===i||i,l=e.isPinned,s=e.sidebarName,u=e.title,d=e.togglePin,b=e.toggleSidebar;return Object(c.createElement)(c.Fragment,null,a&&Object(c.createElement)(ft,null,l&&Object(c.createElement)(j.IconButton,{icon:o,label:u,onClick:b,isToggled:r,"aria-expanded":r})),Object(c.createElement)(gn,{name:s,label:Object(E.__)("Editor plugins")},Object(c.createElement)(vn,{closeLabel:Object(E.__)("Close plugin")},Object(c.createElement)("strong",null,u),a&&Object(c.createElement)(j.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(c.createElement)(j.Panel,{className:n},t)))})),vo=Object(g.compose)(Object(y.withPluginContext)((function(e,t){return{icon:t.icon||e.icon,sidebarName:"".concat(e.name,"/").concat(t.target)}})),Object(h.withSelect)((function(e,t){var n=t.sidebarName;return{isSelected:(0,e("core/edit-post").getActiveGeneralSidebarName)()===n}})),Object(h.withDispatch)((function(e,t){var n=t.isSelected,o=t.sidebarName,r=e("core/edit-post"),c=r.closeGeneralSidebar,i=r.openGeneralSidebar;return{onClick:n?c:function(){return i(o)}}})))((function(e){var t=e.children,n=e.icon,o=e.isSelected,r=e.onClick;return Object(c.createElement)(Eo,{icon:o?"yes":n,isSelected:o,role:"menuitemcheckbox",onClick:r},t)}));function _o(e,t,n,o,r){Object(c.unmountComponentAtNode)(n);var i=_o.bind(null,e,t,n,o,r);Object(c.render)(Object(c.createElement)(fo,{settings:o,onError:i,postId:t,postType:e,initialEdits:r,recovery:!0}),n)}function yo(e,t,n,o,r){var i=document.getElementById(e),a=_o.bind(null,t,n,i,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(c.render)(Object(c.createElement)(fo,{settings:o,onError:a,postId:n,postType:t,initialEdits:r}),i)}n.d(t,"reinitializeEditor",(function(){return _o})),n.d(t,"initializeEditor",(function(){return yo})),n.d(t,"PluginBlockSettingsMenuItem",(function(){return ho})),n.d(t,"PluginDocumentSettingPanel",(function(){return Zn})),n.d(t,"PluginMoreMenuItem",(function(){return Eo})),n.d(t,"PluginPostPublishPanel",(function(){return ro})),n.d(t,"PluginPostStatusInfo",(function(){return Bn})),n.d(t,"PluginPrePublishPanel",(function(){return so})),n.d(t,"PluginSidebar",(function(){return go})),n.d(t,"PluginSidebarMoreMenuItem",(function(){return vo}))},36:function(e,t,n){"use strict";var o,r;function c(e){return[e]}function i(){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;o=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=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,n){"use strict";var o=n(38);var r=n(39);function c(e,t){return Object(o.a)(e)||function(e,t){var n=[],o=!0,r=!1,c=void 0;try{for(var i,a=e[Symbol.iterator]();!(o=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);o=!0);}catch(e){r=!0,c=e}finally{try{o||null==a.return||a.return()}finally{if(r)throw c}}return n}(e,t)||Object(r.a)()}n.d(t,"a",(function(){return c}))},231:function(e,t){!function(){e.exports=this.wp.blockLibrary}()},24:function(e,t){!function(){e.exports=this.wp.editor}()},26:function(e,t){!function(){e.exports=this.wp.url}()},27:function(e,t){!function(){e.exports=this.wp.hooks}()},3:function(e,t){!function(){e.exports=this.wp.components}()},30: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}))},31: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}))},34:function(e,t){!function(){e.exports=this.wp.apiFetch}()},345:function(e,t,n){"use strict";n.r(t);var o={};n.r(o),n.d(o,"openGeneralSidebar",(function(){return Q})),n.d(o,"closeGeneralSidebar",(function(){return X})),n.d(o,"openModal",(function(){return z})),n.d(o,"closeModal",(function(){return Y})),n.d(o,"openPublishSidebar",(function(){return $})),n.d(o,"closePublishSidebar",(function(){return Z})),n.d(o,"togglePublishSidebar",(function(){return J})),n.d(o,"toggleEditorPanelEnabled",(function(){return ee})),n.d(o,"toggleEditorPanelOpened",(function(){return te})),n.d(o,"removeEditorPanel",(function(){return ne})),n.d(o,"toggleFeature",(function(){return oe})),n.d(o,"switchEditorMode",(function(){return re})),n.d(o,"togglePinnedPluginItem",(function(){return ce})),n.d(o,"hideBlockTypes",(function(){return ie})),n.d(o,"updatePreferredStyleVariations",(function(){return ae})),n.d(o,"__experimentalUpdateLocalAutosaveInterval",(function(){return le})),n.d(o,"showBlockTypes",(function(){return se})),n.d(o,"setAvailableMetaBoxesPerLocation",(function(){return ue})),n.d(o,"requestMetaBoxUpdates",(function(){return de})),n.d(o,"metaBoxUpdatesSuccess",(function(){return be}));var r={};n.r(r),n.d(r,"getEditorMode",(function(){return me})),n.d(r,"isEditorSidebarOpened",(function(){return Oe})),n.d(r,"isPluginSidebarOpened",(function(){return fe})),n.d(r,"getActiveGeneralSidebarName",(function(){return je})),n.d(r,"getPreferences",(function(){return he})),n.d(r,"getPreference",(function(){return Ee})),n.d(r,"isPublishSidebarOpened",(function(){return ge})),n.d(r,"isEditorPanelRemoved",(function(){return ve})),n.d(r,"isEditorPanelEnabled",(function(){return _e})),n.d(r,"isEditorPanelOpened",(function(){return ye})),n.d(r,"isModalActive",(function(){return Se})),n.d(r,"isFeatureActive",(function(){return ke})),n.d(r,"isPluginItemPinned",(function(){return Pe})),n.d(r,"getActiveMetaBoxLocations",(function(){return we})),n.d(r,"isMetaBoxLocationVisible",(function(){return Ce})),n.d(r,"isMetaBoxLocationActive",(function(){return Te})),n.d(r,"getMetaBoxesPerLocation",(function(){return xe})),n.d(r,"getAllMetaBoxes",(function(){return Ne})),n.d(r,"hasMetaBoxes",(function(){return Ae})),n.d(r,"isSavingMetaBoxes",(function(){return Me}));var c=n(0),i=(n(89),n(6)),a=n(24),l=n(61),s=n(42),u=(n(142),n(231)),d=n(27),b=n(99);Object(d.addFilter)("editor.MediaUpload","core/edit-post/replace-media-upload",(function(){return b.MediaUpload}));var p=n(18),m=n(21),O=n(2),f=n(9),j=n(3),h=n(4),E=n(1),g=n(8),v=Object(g.compose)(Object(h.withSelect)((function(e,t){if(Object(f.hasBlockSupport)(t.name,"multiple",!0))return{};var n=e("core/block-editor").getBlocks(),o=Object(O.find)(n,(function(e){var n=e.name;return t.name===n}));return{originalBlockClientId:o&&o.clientId!==t.clientId&&o.clientId}})),Object(h.withDispatch)((function(e,t){var n=t.originalBlockClientId;return{selectFirst:function(){return e("core/block-editor").selectBlock(n)}}}))),_=Object(g.createHigherOrderComponent)((function(e){return v((function(t){var n=t.originalBlockClientId,o=t.selectFirst,r=Object(m.a)(t,["originalBlockClientId","selectFirst"]);if(!n)return Object(c.createElement)(e,r);var a=Object(f.getBlockType)(r.name),l=function(e){var t=Object(f.findTransform)(Object(f.getBlockTransforms)("to",e),(function(e){var t=e.type,n=e.blocks;return"block"===t&&1===n.length}));if(!t)return null;return Object(f.getBlockType)(t.blocks[0])}(r.name);return[Object(c.createElement)("div",{key:"invalid-preview",style:{minHeight:"60px"}},Object(c.createElement)(e,Object(p.a)({key:"block-edit"},r))),Object(c.createElement)(i.Warning,{key:"multiple-use-warning",actions:[Object(c.createElement)(j.Button,{key:"find-original",isLarge:!0,onClick:o},Object(E.__)("Find original")),Object(c.createElement)(j.Button,{key:"remove",isLarge:!0,onClick:function(){return r.onReplace([])}},Object(E.__)("Remove")),l&&Object(c.createElement)(j.Button,{key:"transform",isLarge:!0,onClick:function(){return r.onReplace(Object(f.createBlock)(l.name,r.attributes))}},Object(E.__)("Transform into:")," ",l.title)]},Object(c.createElement)("strong",null,a.title,": "),Object(E.__)("This block can only be used once."))]}))}),"withMultipleValidation");Object(d.addFilter)("editor.BlockEdit","core/edit-post/validate-multiple-use/with-multiple-validation",_);var y=n(51),S=n(26);var k=Object(g.compose)(Object(h.withSelect)((function(e){return{editedPostContent:e("core/editor").getEditedPostAttribute("content")}})),Object(h.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice}})),Object(g.withState)({hasCopied:!1}))((function(e){var t=e.createNotice,n=e.editedPostContent,o=e.hasCopied,r=e.setState;return n.length>0&&Object(c.createElement)(j.ClipboardButton,{text:n,role:"menuitem",className:"components-menu-item__button",onCopy:function(){r({hasCopied:!0}),t("info",Object(E.__)("All content copied."),{isDismissible:!0,type:"snackbar"})},onFinishCopy:function(){return r({hasCopied:!1})}},o?Object(E.__)("Copied!"):Object(E.__)("Copy All Content"))}));var P=Object(h.withDispatch)((function(e){return{openModal:e("core/edit-post").openModal}}))((function(e){var t=e.openModal;return Object(c.createElement)(j.MenuItem,{onClick:function(){t("edit-post/manage-blocks")}},Object(E.__)("Block Manager"))})),w=n(19);var C=Object(h.withDispatch)((function(e){return{openModal:e("core/edit-post").openModal}}))((function(e){var t=e.openModal;return Object(c.createElement)(j.MenuItem,{onClick:function(){t("edit-post/keyboard-shortcut-help")},shortcut:w.displayShortcut.access("h")},Object(E.__)("Keyboard Shortcuts"))})),T=Object(j.createSlotFill)("ToolsMoreMenuGroup"),x=T.Fill,N=T.Slot;x.Slot=function(e){var t=e.fillProps;return Object(c.createElement)(N,{fillProps:t},(function(e){return!Object(O.isEmpty)(e)&&Object(c.createElement)(j.MenuGroup,{label:Object(E.__)("Tools")},e)}))};var A=x;Object(y.registerPlugin)("edit-post",{render:function(){return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(A,null,(function(e){var t=e.onClose;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(P,{onSelect:t}),Object(c.createElement)(j.MenuItem,{role:"menuitem",href:Object(S.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(E.__)("Manage All Reusable Blocks")),Object(c.createElement)(C,{onSelect:t}),Object(c.createElement)(k,null))})))}});var M,B=n(17),I=n(10),D=n(7),L="edit-post/document",F=Object(O.flow)([h.combineReducers,(M={editorMode:"visual",isGeneralSidebarDismissed:!1,panels:{"post-status":{opened:!0}},features:{fixedToolbar:!1,showInserterHelpPanel:!0},pinnedPluginItems:{},hiddenBlockTypes:[],preferredStyleVariations:{},localAutosaveInterval:15},function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:M,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(D.a)({},e,Object(I.a)({},n,Object(D.a)({},e[n],{enabled:!Object(O.get)(e,[n,"enabled"],!0)})));case"TOGGLE_PANEL_OPENED":var o=t.panelName,r=!0===e[o]||Object(O.get)(e,[o,"opened"],!1);return Object(D.a)({},e,Object(I.a)({},o,Object(D.a)({},e[o],{opened:!r})))}return e},features:function(e,t){return"TOGGLE_FEATURE"===t.type?Object(D.a)({},e,Object(I.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(D.a)({},e,Object(I.a)({},t.pluginName,!Object(O.get)(e,[t.pluginName],!0))):e},hiddenBlockTypes:function(e,t){switch(t.type){case"SHOW_BLOCK_TYPES":return O.without.apply(void 0,[e].concat(Object(B.a)(t.blockNames)));case"HIDE_BLOCK_TYPES":return Object(O.union)(e,t.blockNames)}return e},preferredStyleVariations:function(e,t){switch(t.type){case"UPDATE_PREFERRED_STYLE_VARIATIONS":return t.blockName?t.blockStyle?Object(D.a)({},e,Object(I.a)({},t.blockName,t.blockStyle)):Object(O.omit)(e,[t.blockName]):e}return e},localAutosaveInterval:function(e,t){switch(t.type){case"UPDATE_LOCAL_AUTOSAVE_INTERVAL":return t.interval}return e}});var R=Object(h.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}}),G=Object(h.combineReducers)({activeGeneralSidebar:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L,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:R,preferences:F,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(O.includes)(e,t.panelName))return[].concat(Object(B.a)(e),[t.panelName])}return e}}),V=n(72),U=n.n(V),H=n(23),W=n(45),q=n(34),K=n.n(q);function Q(e){return{type:"OPEN_GENERAL_SIDEBAR",name:e}}function X(){return{type:"CLOSE_GENERAL_SIDEBAR"}}function z(e){return{type:"OPEN_MODAL",name:e}}function Y(){return{type:"CLOSE_MODAL"}}function $(){return{type:"OPEN_PUBLISH_SIDEBAR"}}function Z(){return{type:"CLOSE_PUBLISH_SIDEBAR"}}function J(){return{type:"TOGGLE_PUBLISH_SIDEBAR"}}function ee(e){return{type:"TOGGLE_PANEL_ENABLED",panelName:e}}function te(e){return{type:"TOGGLE_PANEL_OPENED",panelName:e}}function ne(e){return{type:"REMOVE_PANEL",panelName:e}}function oe(e){return{type:"TOGGLE_FEATURE",feature:e}}function re(e){return{type:"SWITCH_MODE",mode:e}}function ce(e){return{type:"TOGGLE_PINNED_PLUGIN_ITEM",pluginName:e}}function ie(e){return{type:"HIDE_BLOCK_TYPES",blockNames:Object(O.castArray)(e)}}function ae(e,t){return{type:"UPDATE_PREFERRED_STYLE_VARIATIONS",blockName:e,blockStyle:t}}function le(e){return{type:"UPDATE_LOCAL_AUTOSAVE_INTERVAL",interval:e}}function se(e){return{type:"SHOW_BLOCK_TYPES",blockNames:Object(O.castArray)(e)}}function ue(e){return{type:"SET_META_BOXES_PER_LOCATIONS",metaBoxesPerLocation:e}}function de(){return{type:"REQUEST_META_BOX_UPDATES"}}function be(){return{type:"META_BOX_UPDATES_SUCCESS"}}var pe=n(36);function me(e){return Ee(e,"editorMode","visual")}function Oe(e){var t=je(e);return Object(O.includes)(["edit-post/document","edit-post/block"],t)}function fe(e){return!!je(e)&&!Oe(e)}function je(e){return Ee(e,"isGeneralSidebarDismissed",!1)?null:e.activeGeneralSidebar}function he(e){return e.preferences}function Ee(e,t,n){var o=he(e)[t];return void 0===o?n:o}function ge(e){return e.publishSidebarActive}function ve(e,t){return Object(O.includes)(e.removedPanels,t)}function _e(e,t){var n=Ee(e,"panels");return!ve(e,t)&&Object(O.get)(n,[t,"enabled"],!0)}function ye(e,t){var n=Ee(e,"panels");return!0===Object(O.get)(n,[t])||!0===Object(O.get)(n,[t,"opened"])}function Se(e,t){return e.activeModal===t}function ke(e,t){return Object(O.get)(e.preferences.features,[t],!1)}function Pe(e,t){var n=Ee(e,"pinnedPluginItems",{});return Object(O.get)(n,[t],!0)}var we=Object(pe.a)((function(e){return Object.keys(e.metaBoxes.locations).filter((function(t){return Te(e,t)}))}),(function(e){return[e.metaBoxes.locations]}));function Ce(e,t){return Te(e,t)&&Object(O.some)(xe(e,t),(function(t){var n=t.id;return _e(e,"meta-box-".concat(n))}))}function Te(e,t){var n=xe(e,t);return!!n&&0!==n.length}function xe(e,t){return e.metaBoxes.locations[t]}var Ne=Object(pe.a)((function(e){return Object(O.flatten)(Object(O.values)(e.metaBoxes.locations))}),(function(e){return[e.metaBoxes.locations]}));function Ae(e){return we(e).length>0}function Me(e){return e.metaBoxes.isSaving}var Be,Ie={SET_META_BOXES_PER_LOCATIONS:function(e,t){setTimeout((function(){var e=Object(h.select)("core/editor").getCurrentPostType();window.postboxes.page!==e&&window.postboxes.add_postbox_toggles(e)}));var n=Object(h.select)("core/editor").isSavingPost(),o=Object(h.select)("core/editor").isAutosavingPost(),r=Object(h.select)("core/edit-post").hasMetaBoxes();Be&&Be(),Be=Object(h.subscribe)((function(){var e=Object(h.select)("core/editor").isSavingPost(),c=Object(h.select)("core/editor").isAutosavingPost(),i=r&&n&&!e&&!o;n=e,o=c,i&&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(h.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],!!o.author&&["post_author",o.author]].filter(Boolean),c=[new window.FormData(document.querySelector(".metabox-base-form"))].concat(Object(B.a)(we(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))})))),i=Object(O.reduce)(c,(function(e,t){var n=!0,o=!1,r=void 0;try{for(var c,i=t[Symbol.iterator]();!(n=(c=i.next()).done);n=!0){var a=Object(H.a)(c.value,2),l=a[0],s=a[1];e.append(l,s)}}catch(e){o=!0,r=e}finally{try{n||null==i.return||i.return()}finally{if(o)throw r}}return e}),new window.FormData);r.forEach((function(e){var t=Object(H.a)(e,2),n=t[0],o=t[1];return i.append(n,o)})),K()({url:window._wpMetaBoxUrl,method:"POST",body:i,parse:!1}).then((function(){return t.dispatch({type:"META_BOX_UPDATES_SUCCESS"})}))},SWITCH_MODE:function(e){"visual"!==e.mode&&Object(h.dispatch)("core/block-editor").clearSelectedBlock();var t="visual"===e.mode?Object(E.__)("Visual editor selected"):Object(E.__)("Code editor selected");Object(W.speak)(t,"assertive")}};var De=function(e){var t,n=[U()(Ie)],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=O.flowRight.apply(void 0,Object(B.a)(t))(e.dispatch),e.dispatch=o,e};var Le={SELECT:Object(h.createRegistryControl)((function(e){return function(t){var n,o=t.storeName,r=t.selectorName,c=t.args;return(n=e.select(o))[r].apply(n,Object(B.a)(c))}}))},Fe="core/edit-post",Re=Object(h.registerStore)(Fe,{reducer:G,actions:o,selectors:r,controls:Le,persist:["preferences"]});De(Re);var Ge=n(12),Ve=n(11),Ue=n(13),He=n(14),We=n(15),qe=n(44),Ke=n.n(qe),Qe={"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:"🐡🐢🦀🐤🦋🐘🐧🐹🦁🦄🦍🐼🐿🎃🐴🐝🐆🦕🦔🌱🍇π🍌🐉💧🥨🌌🍂🍠🥦🥚🥝🎟🥥🥒🛵🥖🍒🍯🎾🎲🐺🐚🐮⌛️"})))}},Xe=n(16),ze=n.n(Xe);var Ye=function(e){function t(){var e;return Object(Ge.a)(this,t),(e=Object(Ue.a)(this,Object(He.a)(t).apply(this,arguments))).state={historyId:null},e}return Object(We.a)(t,e),Object(Ve.a)(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.postId,o=t.postStatus,r=t.postType,c=t.isSavingPost,i=this.state.historyId;"trash"!==o||c?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(S.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(S.addQueryArgs)("post.php",{post:e,action:"edit"})}(e)),this.setState((function(){return{historyId:e}}))}},{key:"render",value:function(){return null}}]),t}(c.Component),$e=Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,o=t.isSavingPost,r=n();return{postId:r.id,postStatus:r.status,postType:r.type,isSavingPost:o()}}))(Ye);var Ze=Object(h.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(c.createElement)(j.Toolbar,{className:"edit-post-fullscreen-mode-close__toolbar"},Object(c.createElement)(j.IconButton,{icon:"arrow-left-alt2",href:Object(S.addQueryArgs)("edit.php",{post_type:n.slug}),label:Object(O.get)(n,["labels","view_items"],Object(E.__)("Back"))})):null}));var Je=Object(g.compose)([Object(h.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(c.createElement)(i.NavigableToolbar,{className:"edit-post-header-toolbar","aria-label":s},Object(c.createElement)("div",null,Object(c.createElement)(i.Inserter,{disabled:!o,position:"bottom right",showInserterHelpPanel:!0}),Object(c.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(c.createElement)(a.EditorHistoryUndo,null),Object(c.createElement)(a.EditorHistoryRedo,null),Object(c.createElement)(a.TableOfContents,{hasOutlineItemsDisabled:r}),Object(c.createElement)(i.BlockNavigationDropdown,{isDisabled:r}),t&&n&&Object(c.createElement)("div",{className:"edit-post-header-toolbar__block-toolbar"},Object(c.createElement)(i.BlockToolbar,null)))})),et={toggleEditorMode:{raw:w.rawShortcut.secondary("m"),display:w.displayShortcut.secondary("m")},toggleSidebar:{raw:w.rawShortcut.primaryShift(","),display:w.displayShortcut.primaryShift(","),ariaLabel:w.shortcutAriaLabel.primaryShift(",")}},tt=[{value:"visual",label:Object(E.__)("Visual Editor")},{value:"text",label:Object(E.__)("Code Editor")}];var nt=Object(g.compose)([Object(h.withSelect)((function(e){return{isRichEditingEnabled:e("core/editor").getEditorSettings().richEditingEnabled,isCodeEditingEnabled:e("core/editor").getEditorSettings().codeEditingEnabled,mode:e("core/edit-post").getEditorMode()}})),Object(g.ifCondition)((function(e){var t=e.isRichEditingEnabled,n=e.isCodeEditingEnabled;return t&&n})),Object(h.withDispatch)((function(e){return{onSwitch:function(t){e("core/edit-post").switchEditorMode(t)}}}))])((function(e){var t=e.onSwitch,n=e.mode,o=tt.map((function(e){return e.value!==n?Object(D.a)({},e,{shortcut:et.toggleEditorMode.display}):e}));return Object(c.createElement)(j.MenuGroup,{label:Object(E.__)("Editor")},Object(c.createElement)(j.MenuItemsChoice,{choices:o,value:n,onSelect:t}))})),ot=Object(j.createSlotFill)("PluginsMoreMenuGroup"),rt=ot.Fill,ct=ot.Slot;rt.Slot=function(e){var t=e.fillProps;return Object(c.createElement)(ct,{fillProps:t},(function(e){return!Object(O.isEmpty)(e)&&Object(c.createElement)(j.MenuGroup,{label:Object(E.__)("Plugins")},e)}))};var it=rt;var at=Object(h.withDispatch)((function(e){return{openModal:e("core/edit-post").openModal}}))((function(e){var t=e.openModal;return Object(c.createElement)(j.MenuItem,{onClick:function(){t("edit-post/options")}},Object(E.__)("Options"))}));var lt=Object(g.compose)([Object(h.withSelect)((function(e,t){var n=t.feature;return{isActive:e("core/edit-post").isFeatureActive(n)}})),Object(h.withDispatch)((function(e,t){return{onToggle:function(){e("core/edit-post").toggleFeature(t.feature)}}})),j.withSpokenMessages])((function(e){var t=e.onToggle,n=e.isActive,o=e.label,r=e.info,i=e.messageActivated,a=e.messageDeactivated,l=e.speak;return Object(c.createElement)(j.MenuItem,{icon:n&&"yes",isSelected:n,onClick:Object(O.flow)(t,(function(){l(n?a||Object(E.__)("Feature deactivated"):i||Object(E.__)("Feature activated"))})),role:"menuitemcheckbox",info:r},o)}));var st=Object(s.ifViewportMatches)("medium")((function(){return Object(c.createElement)(j.MenuGroup,{label:Object(E._x)("View","noun")},Object(c.createElement)(lt,{feature:"fixedToolbar",label:Object(E.__)("Top Toolbar"),info:Object(E.__)("Access all block and document tools in a single place"),messageActivated:Object(E.__)("Top toolbar activated"),messageDeactivated:Object(E.__)("Top toolbar deactivated")}),Object(c.createElement)(lt,{feature:"focusMode",label:Object(E.__)("Spotlight Mode"),info:Object(E.__)("Focus on one block at a time"),messageActivated:Object(E.__)("Spotlight mode activated"),messageDeactivated:Object(E.__)("Spotlight mode deactivated")}),Object(c.createElement)(lt,{feature:"fullscreenMode",label:Object(E.__)("Fullscreen Mode"),info:Object(E.__)("Work without distraction"),messageActivated:Object(E.__)("Fullscreen mode activated"),messageDeactivated:Object(E.__)("Fullscreen mode deactivated")}))})),ut={className:"edit-post-more-menu__content",position:"bottom left"},dt={labelPosition:"bottom"},bt=function(){return Object(c.createElement)(j.DropdownMenu,{className:"edit-post-more-menu",icon:"ellipsis",label:Object(E.__)("More tools & options"),popoverProps:ut,toggleProps:dt},(function(e){var t=e.onClose;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(st,null),Object(c.createElement)(nt,null),Object(c.createElement)(it.Slot,{fillProps:{onClose:t}}),Object(c.createElement)(A.Slot,{fillProps:{onClose:t}}),Object(c.createElement)(j.MenuGroup,null,Object(c.createElement)(at,null)))}))},pt=Object(j.createSlotFill)("PinnedPlugins"),mt=pt.Fill,Ot=pt.Slot;mt.Slot=function(e){return Object(c.createElement)(Ot,e,(function(e){return!Object(O.isEmpty)(e)&&Object(c.createElement)("div",{className:"edit-post-pinned-plugins"},e)}))};var ft=mt;var jt=Object(g.compose)(Object(h.withSelect)((function(e){return{hasPublishAction:Object(O.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(h.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,i=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&&i||s&&!r&&!l?"button":l?"toggle":d?"toggle":"button",Object(c.createElement)(a.PostPublishButton,{forceIsDirty:n,forceIsSaving:o,isOpen:b,isToggle:"toggle"===t,onToggle:m})}));var ht=Object(g.compose)(Object(h.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(h.withDispatch)((function(e,t,n){var o=(0,n.select)("core/block-editor").getBlockSelectionStart,r=e("core/edit-post"),c=r.openGeneralSidebar;return{openGeneralSidebar:function(){return c(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,i=e.isSaving,s=e.openGeneralSidebar,u=o?t:s;return Object(c.createElement)("div",{role:"region","aria-label":Object(E.__)("Editor top bar"),className:"edit-post-header",tabIndex:"-1"},Object(c.createElement)("div",{className:"edit-post-header__toolbar"},Object(c.createElement)(Ze,null),Object(c.createElement)(Je,null)),Object(c.createElement)("div",{className:"edit-post-header__settings"},!r&&Object(c.createElement)(a.PostSavedState,{forceIsDirty:n,forceIsSaving:i}),Object(c.createElement)(a.PostPreviewButton,{forceIsAutosaveable:n,forcePreviewLink:i?null:void 0}),Object(c.createElement)(jt,{forceIsDirty:n,forceIsSaving:i}),Object(c.createElement)("div",null,Object(c.createElement)(j.IconButton,{icon:"admin-generic",label:Object(E.__)("Settings"),onClick:u,isToggled:o,"aria-expanded":o,shortcut:et.toggleSidebar}),Object(c.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(c.createElement)(ft.Slot,null),Object(c.createElement)(bt,null)))}));var Et=Object(g.compose)(Object(h.withSelect)((function(e){return{isRichEditingEnabled:e("core/editor").getEditorSettings().richEditingEnabled}})),Object(h.withDispatch)((function(e){return{onExit:function(){e("core/edit-post").switchEditorMode("visual")}}})))((function(e){var t=e.onExit,n=e.isRichEditingEnabled;return Object(c.createElement)("div",{className:"edit-post-text-editor"},n&&Object(c.createElement)("div",{className:"edit-post-text-editor__toolbar"},Object(c.createElement)("h2",null,Object(E.__)("Editing Code")),Object(c.createElement)(j.IconButton,{onClick:t,icon:"no-alt",shortcut:w.displayShortcut.secondary("m")},Object(E.__)("Exit Code Editor")),Object(c.createElement)(a.TextEditorGlobalKeyboardShortcuts,null)),Object(c.createElement)("div",{className:"edit-post-text-editor__body"},Object(c.createElement)(a.PostTitle,null),Object(c.createElement)(a.PostTextEditor,null)))}));var gt=Object(g.compose)(Object(h.withSelect)((function(e){return{areAdvancedSettingsOpened:"edit-post/block"===e("core/edit-post").getActiveGeneralSidebarName()}})),Object(h.withDispatch)((function(e){return{openEditorSidebar:function(){return e("core/edit-post").openGeneralSidebar("edit-post/block")},closeSidebar:e("core/edit-post").closeGeneralSidebar}})),j.withSpokenMessages)((function(e){var t=e.areAdvancedSettingsOpened,n=e.closeSidebar,o=e.openEditorSidebar,r=e.onClick,i=void 0===r?O.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(c.createElement)(j.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:Object(O.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"))}),i),icon:"admin-generic",shortcut:et.toggleSidebar},!l&&u)})),vt=Object(j.createSlotFill)("PluginBlockSettingsMenuGroup"),_t=vt.Fill,yt=vt.Slot;_t.Slot=Object(h.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(O.map)(n,(function(e){return e.name})),Object(c.createElement)(yt,{fillProps:Object(D.a)({},t,{selectedBlocks:n})},(function(e){return!Object(O.isEmpty)(e)&&Object(c.createElement)(c.Fragment,null,Object(c.createElement)("div",{className:"editor-block-settings-menu__separator block-editor-block-settings-menu__separator"}),e)}))}));var St=_t;var kt=function(){return Object(c.createElement)(i.BlockSelectionClearer,{className:"edit-post-visual-editor editor-styles-wrapper"},Object(c.createElement)(a.VisualEditorGlobalKeyboardShortcuts,null),Object(c.createElement)(i.MultiSelectScrollIntoView,null),Object(c.createElement)(i.Typewriter,null,Object(c.createElement)(i.WritingFlow,null,Object(c.createElement)(i.ObserveTyping,null,Object(c.createElement)(i.CopyHandler,null,Object(c.createElement)(a.PostTitle,null),Object(c.createElement)(i.BlockList,null))))),Object(c.createElement)(i.__experimentalBlockSettingsMenuFirstItem,null,(function(e){var t=e.onClose;return Object(c.createElement)(gt,{onClick:t})})),Object(c.createElement)(i.__experimentalBlockSettingsMenuPluginsExtension,null,(function(e){var t=e.clientIds,n=e.onClose;return Object(c.createElement)(St.Slot,{fillProps:{clientIds:t,onClose:n}})})))},Pt=n(5),wt=function(e){function t(){var e;return Object(Ge.a)(this,t),(e=Object(Ue.a)(this,Object(He.a)(t).apply(this,arguments))).toggleMode=e.toggleMode.bind(Object(Pt.a)(e)),e.toggleSidebar=e.toggleSidebar.bind(Object(Pt.a)(e)),e}return Object(We.a)(t,e),Object(Ve.a)(t,[{key:"toggleMode",value:function(){var e=this.props,t=e.mode,n=e.switchMode;e.isModeSwitchEnabled&&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(c.createElement)(j.KeyboardShortcuts,{bindGlobal:!0,shortcuts:(e={},Object(I.a)(e,et.toggleEditorMode.raw,this.toggleMode),Object(I.a)(e,et.toggleSidebar.raw,this.toggleSidebar),e)})}}]),t}(c.Component),Ct=Object(g.compose)([Object(h.withSelect)((function(e){var t=e("core/editor").getEditorSettings(),n=t.richEditingEnabled,o=t.codeEditingEnabled;return{isModeSwitchEnabled:n&&o,mode:e("core/edit-post").getEditorMode(),isEditorSidebarOpen:e("core/edit-post").isEditorSidebarOpened()}})),Object(h.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}}))])(wt),Tt=w.displayShortcutList.primary,xt=w.displayShortcutList.primaryShift,Nt=w.displayShortcutList.primaryAlt,At=w.displayShortcutList.secondary,Mt=w.displayShortcutList.access,Bt=w.displayShortcutList.ctrl,It=w.displayShortcutList.alt,Dt=w.displayShortcutList.ctrlShift,Lt=[{className:"edit-post-keyboard-shortcut-help__main-shortcuts",shortcuts:[{keyCombination:Mt("h"),description:Object(E.__)("Display these keyboard shortcuts.")}]},{title:Object(E.__)("Global shortcuts"),shortcuts:[{keyCombination:Tt("s"),description:Object(E.__)("Save your changes.")},{keyCombination:Tt("z"),description:Object(E.__)("Undo your last changes.")},{keyCombination:xt("z"),description:Object(E.__)("Redo your last undo.")},{keyCombination:xt(","),description:Object(E.__)("Show or hide the settings sidebar."),ariaLabel:w.shortcutAriaLabel.primaryShift(",")},{keyCombination:Mt("o"),description:Object(E.__)("Open the block navigation menu.")},{keyCombination:Bt("`"),description:Object(E.__)("Navigate to the next part of the editor."),ariaLabel:w.shortcutAriaLabel.ctrl("`")},{keyCombination:Dt("`"),description:Object(E.__)("Navigate to the previous part of the editor."),ariaLabel:w.shortcutAriaLabel.ctrlShift("`")},{keyCombination:Mt("n"),description:Object(E.__)("Navigate to the next part of the editor (alternative).")},{keyCombination:Mt("p"),description:Object(E.__)("Navigate to the previous part of the editor (alternative).")},{keyCombination:It("F10"),description:Object(E.__)("Navigate to the nearest toolbar.")},{keyCombination:At("m"),description:Object(E.__)("Switch between Visual Editor and Code Editor.")}]},{title:Object(E.__)("Selection shortcuts"),shortcuts:[{keyCombination:Tt("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:xt("d"),description:Object(E.__)("Duplicate the selected block(s).")},{keyCombination:Mt("z"),description:Object(E.__)("Remove the selected block(s).")},{keyCombination:Nt("t"),description:Object(E.__)("Insert a new block before the selected block(s).")},{keyCombination:Nt("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:Tt("b"),description:Object(E.__)("Make the selected text bold.")},{keyCombination:Tt("i"),description:Object(E.__)("Make the selected text italic.")},{keyCombination:Tt("k"),description:Object(E.__)("Convert the selected text into a link.")},{keyCombination:xt("k"),description:Object(E.__)("Remove a link.")},{keyCombination:Tt("u"),description:Object(E.__)("Underline the selected text.")}]}],Ft="edit-post/keyboard-shortcut-help",Rt=function(e){var t=e.shortcuts;return(Object(c.createElement)("ul",{className:"edit-post-keyboard-shortcut-help__shortcut-list",role:"list"},t.map((function(e,t){var n=e.keyCombination,o=e.description,r=e.ariaLabel;return Object(c.createElement)("li",{className:"edit-post-keyboard-shortcut-help__shortcut",key:t},Object(c.createElement)("div",{className:"edit-post-keyboard-shortcut-help__shortcut-description"},o),Object(c.createElement)("div",{className:"edit-post-keyboard-shortcut-help__shortcut-term"},Object(c.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(c.createElement)(c.Fragment,{key:t},e):Object(c.createElement)("kbd",{key:t,className:"edit-post-keyboard-shortcut-help__shortcut-key"},e)}))}(Object(O.castArray)(n)))))}))))},Gt=function(e){var t=e.title,n=e.shortcuts,o=e.className;return Object(c.createElement)("section",{className:ze()("edit-post-keyboard-shortcut-help__section",o)},!!t&&Object(c.createElement)("h2",{className:"edit-post-keyboard-shortcut-help__section-title"},t),Object(c.createElement)(Rt,{shortcuts:n}))};var Vt=Object(g.compose)([Object(h.withSelect)((function(e){return{isModalActive:e("core/edit-post").isModalActive(Ft)}})),Object(h.withDispatch)((function(e,t){var n=t.isModalActive,o=e("core/edit-post"),r=o.openModal,c=o.closeModal;return{toggleModal:function(){return n?c():r(Ft)}}}))])((function(e){var t=e.isModalActive,n=e.toggleModal;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(j.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(I.a)({},w.rawShortcut.access("h"),n)}),t&&Object(c.createElement)(j.Modal,{className:"edit-post-keyboard-shortcut-help",title:Object(E.__)("Keyboard Shortcuts"),closeLabel:Object(E.__)("Close"),onRequestClose:n},Lt.map((function(e,t){return Object(c.createElement)(Gt,Object(p.a)({key:t},e))}))))}));var Ut=function(e){var t=e.blockTypes,n=e.value,o=e.onItemChange;return Object(c.createElement)("ul",{className:"edit-post-manage-blocks-modal__checklist"},t.map((function(e){return Object(c.createElement)("li",{key:e.name,className:"edit-post-manage-blocks-modal__checklist-item"},Object(c.createElement)(j.CheckboxControl,{label:Object(c.createElement)(c.Fragment,null,e.title,Object(c.createElement)(i.BlockIcon,{icon:e.icon})),checked:n.includes(e.name),onChange:Object(O.partial)(o,e.name)}))})))},Ht=Object(c.createContext)({});var Wt=Object(g.compose)([g.withInstanceId,Object(h.withSelect)((function(e){return{hiddenBlockTypes:(0,e("core/edit-post").getPreference)("hiddenBlockTypes")}})),Object(h.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(O.map)(t.blockTypes,"name");e?o(n):r(n)}}}))])((function(e){var t=e.instanceId,n=e.category,o=e.blockTypes,r=e.hiddenBlockTypes,i=e.toggleVisible,a=e.toggleAllVisible,l=Object(c.useContext)(Ht).allowedBlockTypes,s=Object(c.useMemo)((function(){return!0===l?o:o.filter((function(e){var t=e.name;return Object(O.includes)(l||[],t)}))}),[l,o]);if(!s.length)return null;var u,d=O.without.apply(void 0,[Object(O.map)(s,"name")].concat(Object(B.a)(r))),b="edit-post-manage-blocks-modal__category-title-"+t,p=d.length===s.length;return u=p?"true":d.length>0?"mixed":"false",Object(c.createElement)("div",{role:"group","aria-labelledby":b,className:"edit-post-manage-blocks-modal__category"},Object(c.createElement)(j.CheckboxControl,{checked:p,onChange:a,className:"edit-post-manage-blocks-modal__category-title","aria-checked":u,label:Object(c.createElement)("span",{id:b},n.title)}),Object(c.createElement)(Ut,{blockTypes:s,value:d,onItemChange:i}))}));var qt=Object(g.compose)([Object(g.withState)({search:""}),Object(h.withSelect)((function(e){var t=e("core/blocks"),n=t.getBlockTypes,o=t.getCategories,r=t.hasBlockSupport,c=t.isMatchingSearchTerm,i=(0,e("core/edit-post").getPreference)("hiddenBlockTypes"),a=Object(O.isArray)(i)&&i.length;return{blockTypes:n(),categories:o(),hasBlockSupport:r,isMatchingSearchTerm:c,numberOfHiddenBlocks:a}}))])((function(e){var t=e.search,n=e.setState,o=e.blockTypes,r=e.categories,i=e.hasBlockSupport,a=e.isMatchingSearchTerm,l=e.numberOfHiddenBlocks;return o=o.filter((function(e){return i(e,"inserter",!0)&&(!t||a(e,t))&&!e.parent})),Object(c.createElement)("div",{className:"edit-post-manage-blocks-modal__content"},Object(c.createElement)(j.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"}),!!l&&Object(c.createElement)("div",{className:"edit-post-manage-blocks-modal__disabled-blocks-count"},Object(E.sprintf)(Object(E._n)("%1$d block is disabled.","%1$d blocks are disabled.",l),l)),Object(c.createElement)("div",{tabIndex:"0",role:"region","aria-label":Object(E.__)("Available block types"),className:"edit-post-manage-blocks-modal__results"},0===o.length&&Object(c.createElement)("p",{className:"edit-post-manage-blocks-modal__no-results"},Object(E.__)("No blocks found.")),r.map((function(e){return Object(c.createElement)(Wt,{key:e.slug,category:e,blockTypes:Object(O.filter)(o,{category:e.slug})})}))))}));var Kt=Object(g.compose)([Object(h.withSelect)((function(e){return{isActive:(0,e("core/edit-post").isModalActive)("edit-post/manage-blocks")}})),Object(h.withDispatch)((function(e){return{closeModal:e("core/edit-post").closeModal}}))])((function(e){var t=e.isActive,n=e.closeModal;return t?Object(c.createElement)(j.Modal,{className:"edit-post-manage-blocks-modal",title:Object(E.__)("Block Manager"),closeLabel:Object(E.__)("Close"),onRequestClose:n},Object(c.createElement)(qt,null)):null})),Qt=function(e){var t=e.title,n=e.children;return Object(c.createElement)("section",{className:"edit-post-options-modal__section"},Object(c.createElement)("h2",{className:"edit-post-options-modal__section-title"},t),n)};var Xt=function(e){var t=e.label,n=e.isChecked,o=e.onChange,r=e.children;return Object(c.createElement)("div",{className:"edit-post-options-modal__option"},Object(c.createElement)(j.CheckboxControl,{label:t,checked:n,onChange:o}),r)};function zt(e){var t=e.willEnable,n=Object(c.useState)(!1),o=Object(H.a)(n,2),r=o[0],i=o[1];return Object(c.createElement)(c.Fragment,null,Object(c.createElement)("p",{className:"edit-post-options-modal__custom-fields-confirmation-message"},Object(E.__)("A page reload is required for this change. Make sure your content is saved before reloading.")),Object(c.createElement)(j.Button,{className:"edit-post-options-modal__custom-fields-confirmation-button",isDefault:!0,isBusy:r,disabled:r,onClick:function(){i(!0),document.getElementById("toggle-custom-fields-form").submit()}},t?Object(E.__)("Enable & Reload"):Object(E.__)("Disable & Reload")))}var Yt=Object(h.withSelect)((function(e){return{areCustomFieldsEnabled:!!e("core/editor").getEditorSettings().enableCustomFields}}))((function(e){var t=e.label,n=e.areCustomFieldsEnabled,o=Object(c.useState)(n),r=Object(H.a)(o,2),i=r[0],a=r[1];return Object(c.createElement)(Xt,{label:t,isChecked:i,onChange:a},i!==n&&Object(c.createElement)(zt,{willEnable:i}))})),$t=Object(g.compose)(Object(h.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(g.ifCondition)((function(e){return!e.isRemoved})),Object(h.withDispatch)((function(e,t){var n=t.panelName;return{onChange:function(){return e("core/edit-post").toggleEditorPanelEnabled(n)}}})))(Xt),Zt=Object(j.createSlotFill)("EnablePluginDocumentSettingPanelOption"),Jt=Zt.Fill,en=Zt.Slot,tn=function(e){var t=e.label,n=e.panelName;return Object(c.createElement)(Jt,null,Object(c.createElement)($t,{label:t,panelName:n}))};tn.Slot=en;var nn=tn,on=Object(g.compose)(Object(h.withSelect)((function(e){return{isChecked:e("core/editor").isPublishSidebarEnabled()}})),Object(h.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"))(Xt),rn=function(e){function t(e){var n,o=e.isChecked;return Object(Ge.a)(this,t),(n=Object(Ue.a)(this,Object(He.a)(t).apply(this,arguments))).state={isChecked:o},n}return Object(We.a)(t,e),Object(Ve.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(c.createElement)(Xt,{label:this.props.label,isChecked:this.state.isChecked,onChange:function(t){return e.setState({isChecked:t})}})}}]),t}(c.Component),cn=Object(g.compose)(Object(h.withSelect)((function(e){return{isChecked:e("core/nux").areTipsEnabled()}})),Object(h.withDispatch)((function(e){var t=e("core/nux"),n=t.enableTips,o=t.disableTips;return{onChange:function(e){return e?n():o()}}})))(rn),an=Object(g.compose)(Object(h.withSelect)((function(e,t){var n=t.feature;return{isChecked:e("core/edit-post").isFeatureActive(n)}})),Object(h.withDispatch)((function(e,t){var n=t.feature,o=e("core/edit-post").toggleFeature;return{onChange:function(){o(n)}}})))(Xt);var ln=Object(h.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(m.a)(e,["areCustomFieldsRegistered","metaBoxes"]),r=Object(O.filter)(n,(function(e){return"postcustom"!==e.id}));return t||0!==r.length?Object(c.createElement)(Qt,o,t&&Object(c.createElement)(Yt,{label:Object(E.__)("Custom Fields")}),Object(O.map)(r,(function(e){var t=e.id,n=e.title;return Object(c.createElement)($t,{key:t,label:n,panelName:"meta-box-".concat(t)})}))):null}));var sn=Object(g.compose)(Object(h.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(O.get)(n,["viewable"],!1)}})),Object(h.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(c.createElement)(j.Modal,{className:"edit-post-options-modal",title:Object(E.__)("Options"),closeLabel:Object(E.__)("Close"),onRequestClose:o},Object(c.createElement)(Qt,{title:Object(E.__)("General")},Object(c.createElement)(on,{label:Object(E.__)("Pre-publish Checks")}),Object(c.createElement)(cn,{label:Object(E.__)("Tips")}),Object(c.createElement)(an,{feature:"showInserterHelpPanel",label:Object(E.__)("Inserter Help Panel")})),Object(c.createElement)(Qt,{title:Object(E.__)("Document Panels")},Object(c.createElement)(nn.Slot,null),n&&Object(c.createElement)($t,{label:Object(E.__)("Permalink"),panelName:"post-link"}),Object(c.createElement)(a.PostTaxonomies,{taxonomyWrapper:function(e,t){return Object(c.createElement)($t,{label:Object(O.get)(t,["labels","menu_name"]),panelName:"taxonomy-panel-".concat(t.slug)})}}),Object(c.createElement)(a.PostFeaturedImageCheck,null,Object(c.createElement)($t,{label:Object(E.__)("Featured Image"),panelName:"featured-image"})),Object(c.createElement)(a.PostExcerptCheck,null,Object(c.createElement)($t,{label:Object(E.__)("Excerpt"),panelName:"post-excerpt"})),Object(c.createElement)(a.PostTypeSupportCheck,{supportKeys:["comments","trackbacks"]},Object(c.createElement)($t,{label:Object(E.__)("Discussion"),panelName:"discussion-panel"})),Object(c.createElement)(a.PageAttributesCheck,null,Object(c.createElement)($t,{label:Object(E.__)("Page Attributes"),panelName:"page-attributes"}))),Object(c.createElement)(ln,{title:Object(E.__)("Advanced Panels")})):null})),un=function(e){function t(){var e;return Object(Ge.a)(this,t),(e=Object(Ue.a)(this,Object(He.a)(t).apply(this,arguments))).bindContainerNode=e.bindContainerNode.bind(Object(Pt.a)(e)),e}return Object(We.a)(t,e),Object(Ve.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=ze()("edit-post-meta-boxes-area","is-".concat(t),{"is-loading":n});return Object(c.createElement)("div",{className:o},n&&Object(c.createElement)(j.Spinner,null),Object(c.createElement)("div",{className:"edit-post-meta-boxes-area__container",ref:this.bindContainerNode}),Object(c.createElement)("div",{className:"edit-post-meta-boxes-area__clear"}))}}]),t}(c.Component),dn=Object(h.withSelect)((function(e){return{isSaving:e("core/edit-post").isSavingMetaBoxes()}}))(un),bn=function(e){function t(){return Object(Ge.a)(this,t),Object(Ue.a)(this,Object(He.a)(t).apply(this,arguments))}return Object(We.a)(t,e),Object(Ve.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}(c.Component),pn=Object(h.withSelect)((function(e,t){var n=t.id;return{isVisible:e("core/edit-post").isEditorPanelEnabled("meta-box-".concat(n))}}))(bn);var mn=Object(h.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(c.createElement)(c.Fragment,null,Object(O.map)(o,(function(e){var t=e.id;return Object(c.createElement)(pn,{key:t,id:t})})),n&&Object(c.createElement)(dn,{location:t}))})),On=Object(j.createSlotFill)("Sidebar"),fn=On.Fill,jn=On.Slot;function hn(e){var t=e.children,n=e.label,o=e.className;return Object(c.createElement)("div",{className:ze()("edit-post-sidebar",o),role:"region","aria-label":n,tabIndex:"-1"},t)}hn=Object(j.withFocusReturn)({onFocusReturn:function(){var e=document.querySelector('.edit-post-header__settings [aria-label="Settings"]');if(e)return e.focus(),!1}})(hn);var En=Object(g.compose)(Object(h.withSelect)((function(e,t){var n=t.name;return{isActive:e("core/edit-post").getActiveGeneralSidebarName()===n}})),Object(g.ifCondition)((function(e){return e.isActive})))((function(e){return Object(c.createElement)(fn,null,Object(c.createElement)(j.Animate,{type:"slide-in",options:{origin:"left"}},(function(){return Object(c.createElement)(hn,e)})))}));En.Slot=jn;var gn=En,vn=Object(g.compose)(Object(h.withSelect)((function(e){return{title:e("core/editor").getEditedPostAttribute("title")}})),Object(h.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,i=e.title;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)("div",{className:"components-panel__header edit-post-sidebar-header__small"},Object(c.createElement)("span",{className:"edit-post-sidebar-header__title"},i||Object(E.__)("(no title)")),Object(c.createElement)(j.IconButton,{onClick:r,icon:"no-alt",label:o})),Object(c.createElement)("div",{className:ze()("components-panel__header edit-post-sidebar-header",n)},t,Object(c.createElement)(j.IconButton,{onClick:r,icon:"no-alt",label:o,shortcut:et.toggleSidebar})))})),_n=Object(h.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"),i="edit-post/document"===o?[Object(E.__)("Document (selected)"),"is-active"]:[Object(E.__)("Document"),""],a=Object(H.a)(i,2),l=a[0],s=a[1],u="edit-post/block"===o?[Object(E.__)("Block (selected)"),"is-active"]:[Object(E.__)("Block"),""],d=Object(H.a)(u,2),b=d[0],p=d[1];return Object(c.createElement)(vn,{className:"edit-post-sidebar__panel-tabs",closeLabel:Object(E.__)("Close settings")},Object(c.createElement)("ul",null,Object(c.createElement)("li",null,Object(c.createElement)("button",{onClick:t,className:"edit-post-sidebar__panel-tab ".concat(s),"aria-label":l,"data-label":Object(E.__)("Document")},Object(E.__)("Document"))),Object(c.createElement)("li",null,Object(c.createElement)("button",{onClick:n,className:"edit-post-sidebar__panel-tab ".concat(p),"aria-label":b,"data-label":r},r))))}));var yn=function(){return Object(c.createElement)(a.PostVisibilityCheck,{render:function(e){var t=e.canEdit;return Object(c.createElement)(j.PanelRow,{className:"edit-post-post-visibility"},Object(c.createElement)("span",null,Object(E.__)("Visibility")),!t&&Object(c.createElement)("span",null,Object(c.createElement)(a.PostVisibilityLabel,null)),t&&Object(c.createElement)(j.Dropdown,{position:"bottom left",contentClassName:"edit-post-post-visibility__dialog",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(c.createElement)(j.Button,{type:"button","aria-expanded":t,className:"edit-post-post-visibility__toggle",onClick:n,isLink:!0},Object(c.createElement)(a.PostVisibilityLabel,null))},renderContent:function(){return Object(c.createElement)(a.PostVisibility,null)}}))}})};function Sn(){return Object(c.createElement)(a.PostTrashCheck,null,Object(c.createElement)(j.PanelRow,null,Object(c.createElement)(a.PostTrash,null)))}var kn=function(){return Object(c.createElement)(a.PostScheduleCheck,null,Object(c.createElement)(j.PanelRow,{className:"edit-post-post-schedule"},Object(c.createElement)("span",null,Object(E.__)("Publish")),Object(c.createElement)(j.Dropdown,{position:"bottom left",contentClassName:"edit-post-post-schedule__dialog",renderToggle:function(e){var t=e.onToggle,n=e.isOpen;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(j.Button,{type:"button",className:"edit-post-post-schedule__toggle",onClick:t,"aria-expanded":n,isLink:!0},Object(c.createElement)(a.PostScheduleLabel,null)))},renderContent:function(){return Object(c.createElement)(a.PostSchedule,null)}})))};var Pn=function(){return Object(c.createElement)(a.PostStickyCheck,null,Object(c.createElement)(j.PanelRow,null,Object(c.createElement)(a.PostSticky,null)))};var wn=function(){return Object(c.createElement)(a.PostAuthorCheck,null,Object(c.createElement)(j.PanelRow,null,Object(c.createElement)(a.PostAuthor,null)))};var Cn=function(){return Object(c.createElement)(a.PostFormatCheck,null,Object(c.createElement)(j.PanelRow,null,Object(c.createElement)(a.PostFormat,null)))};var Tn=function(){return Object(c.createElement)(a.PostPendingStatusCheck,null,Object(c.createElement)(j.PanelRow,null,Object(c.createElement)(a.PostPendingStatus,null)))},xn=Object(j.createSlotFill)("PluginPostStatusInfo"),Nn=xn.Fill,An=xn.Slot,Mn=function(e){var t=e.children,n=e.className;return Object(c.createElement)(Nn,null,Object(c.createElement)(j.PanelRow,{className:n},t))};Mn.Slot=An;var Bn=Mn;var In=Object(g.compose)([Object(h.withSelect)((function(e){var t=e("core/edit-post"),n=t.isEditorPanelRemoved,o=t.isEditorPanelOpened;return{isRemoved:n("post-status"),isOpened:o("post-status")}})),Object(g.ifCondition)((function(e){return!e.isRemoved})),Object(h.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(c.createElement)(j.PanelBody,{className:"edit-post-post-status",title:Object(E.__)("Status & Visibility"),opened:t,onToggle:n},Object(c.createElement)(Bn.Slot,null,(function(e){return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(yn,null),Object(c.createElement)(kn,null),Object(c.createElement)(Cn,null),Object(c.createElement)(Pn,null),Object(c.createElement)(Tn,null),Object(c.createElement)(wn,null),e,Object(c.createElement)(Sn,null))})))}));var Dn=function(){return Object(c.createElement)(a.PostLastRevisionCheck,null,Object(c.createElement)(j.PanelBody,{className:"edit-post-last-revision__panel"},Object(c.createElement)(a.PostLastRevision,null)))};var Ln=Object(g.compose)(Object(h.withSelect)((function(e,t){var n=Object(O.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(h.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,i=e.children;if(!t)return null;var a=Object(O.get)(n,["labels","menu_name"]);return a?Object(c.createElement)(j.PanelBody,{title:a,opened:o,onToggle:r},i):null}));var Fn=function(){return Object(c.createElement)(a.PostTaxonomiesCheck,null,Object(c.createElement)(a.PostTaxonomies,{taxonomyWrapper:function(e,t){return Object(c.createElement)(Ln,{taxonomy:t},e)}}))};var Rn=Object(h.withSelect)((function(e){var t=e("core/editor").getEditedPostAttribute,n=e("core").getPostType,o=e("core/edit-post"),r=o.isEditorPanelEnabled,c=o.isEditorPanelOpened;return{postType:n(t("type")),isEnabled:r("featured-image"),isOpened:c("featured-image")}})),Gn=Object(h.withDispatch)((function(e){var t=e("core/edit-post").toggleEditorPanelOpened;return{onTogglePanel:Object(O.partial)(t,"featured-image")}})),Vn=Object(g.compose)(Rn,Gn)((function(e){var t=e.isEnabled,n=e.isOpened,o=e.postType,r=e.onTogglePanel;return t?Object(c.createElement)(a.PostFeaturedImageCheck,null,Object(c.createElement)(j.PanelBody,{title:Object(O.get)(o,["labels","featured_image"],Object(E.__)("Featured Image")),opened:n,onToggle:r},Object(c.createElement)(a.PostFeaturedImage,null))):null}));var Un=Object(g.compose)([Object(h.withSelect)((function(e){return{isEnabled:e("core/edit-post").isEditorPanelEnabled("post-excerpt"),isOpened:e("core/edit-post").isEditorPanelOpened("post-excerpt")}})),Object(h.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(c.createElement)(a.PostExcerptCheck,null,Object(c.createElement)(j.PanelBody,{title:Object(E.__)("Excerpt"),opened:n,onToggle:o},Object(c.createElement)(a.PostExcerpt,null))):null}));var Hn=Object(g.compose)([Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.isEditedPostNew,o=t.isPermalinkEditable,r=t.getCurrentPost,c=t.isCurrentPostPublished,i=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,f=d(a("type"));return{isNew:n(),postLink:p,isEditable:o(),isPublished:c(),isOpened:u("post-link"),permalinkParts:i(),isEnabled:s("post-link"),isViewable:Object(O.get)(f,["viewable"],!1),postTitle:a("title"),postSlug:a("slug"),postID:m,postTypeLabel:Object(O.get)(f,["labels","view_item"])}})),Object(g.ifCondition)((function(e){var t=e.isEnabled,n=e.isNew,o=e.postLink,r=e.isViewable,c=e.permalinkParts;return t&&!n&&o&&r&&c})),Object(h.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(g.withState)({forceEmptyField:!1})])((function(e){var t,n,o,r=e.isOpened,i=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,h=e.postTypeLabel,g=u.prefix,v=u.suffix,_=Object(S.safeDecodeURIComponent)(O)||Object(a.cleanForSlug)(m)||f;return l&&(t=g&&Object(c.createElement)("span",{className:"edit-post-post-link__link-prefix"},g),n=_&&Object(c.createElement)("span",{className:"edit-post-post-link__link-post-name"},_),o=v&&Object(c.createElement)("span",{className:"edit-post-post-link__link-suffix"},v)),Object(c.createElement)(j.PanelBody,{title:Object(E.__)("Permalink"),opened:r,onToggle:i},l&&Object(c.createElement)("div",{className:"editor-post-link"},Object(c.createElement)(j.TextControl,{label:Object(E.__)("URL Slug"),value:b?"":_,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(c.createElement)("p",null,Object(E.__)("The last part of the URL.")," ",Object(c.createElement)(j.ExternalLink,{href:"https://wordpress.org/support/article/writing-posts/#post-field-descriptions"},Object(E.__)("Read about permalinks")))),Object(c.createElement)("p",{className:"edit-post-post-link__preview-label"},h||Object(E.__)("View Post")),Object(c.createElement)("div",{className:"edit-post-post-link__preview-link-container"},Object(c.createElement)(j.ExternalLink,{className:"edit-post-post-link__link",href:s,target:"_blank"},l?Object(c.createElement)(c.Fragment,null,t,n,o):s)))}));var Wn=Object(g.compose)([Object(h.withSelect)((function(e){return{isEnabled:e("core/edit-post").isEditorPanelEnabled("discussion-panel"),isOpened:e("core/edit-post").isEditorPanelOpened("discussion-panel")}})),Object(h.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(c.createElement)(a.PostTypeSupportCheck,{supportKeys:["comments","trackbacks"]},Object(c.createElement)(j.PanelBody,{title:Object(E.__)("Discussion"),opened:n,onToggle:o},Object(c.createElement)(a.PostTypeSupportCheck,{supportKeys:"comments"},Object(c.createElement)(j.PanelRow,null,Object(c.createElement)(a.PostComments,null))),Object(c.createElement)(a.PostTypeSupportCheck,{supportKeys:"trackbacks"},Object(c.createElement)(j.PanelRow,null,Object(c.createElement)(a.PostPingbacks,null))))):null}));var qn=Object(h.withSelect)((function(e){var t=e("core/editor").getEditedPostAttribute,n=e("core/edit-post"),o=n.isEditorPanelEnabled,r=n.isEditorPanelOpened,c=e("core").getPostType;return{isEnabled:o("page-attributes"),isOpened:r("page-attributes"),postType:c(t("type"))}})),Kn=Object(h.withDispatch)((function(e){var t=e("core/edit-post").toggleEditorPanelOpened;return{onTogglePanel:Object(O.partial)(t,"page-attributes")}})),Qn=Object(g.compose)(qn,Kn)((function(e){var t=e.isEnabled,n=e.isOpened,o=e.onTogglePanel,r=e.postType;return t&&r?Object(c.createElement)(a.PageAttributesCheck,null,Object(c.createElement)(j.PanelBody,{title:Object(O.get)(r,["labels","attributes"],Object(E.__)("Page Attributes")),opened:n,onToggle:o},Object(c.createElement)(a.PageTemplate,null),Object(c.createElement)(a.PageAttributesParent,null),Object(c.createElement)(j.PanelRow,null,Object(c.createElement)(a.PageAttributesOrder,null)))):null})),Xn=Object(j.createSlotFill)("PluginDocumentSettingPanel"),zn=Xn.Fill,Yn=Xn.Slot,$n=Object(g.compose)(Object(y.withPluginContext)((function(e,t){return{icon:t.icon||e.icon,panelName:"".concat(e.name,"/").concat(t.name)}})),Object(h.withSelect)((function(e,t){var n=t.panelName;return{opened:e("core/edit-post").isEditorPanelOpened(n),isEnabled:e("core/edit-post").isEditorPanelEnabled(n)}})),Object(h.withDispatch)((function(e,t){var n=t.panelName;return{onToggle:function(){return e("core/edit-post").toggleEditorPanelOpened(n)}}})))((function(e){var t=e.isEnabled,n=e.panelName,o=e.opened,r=e.onToggle,i=e.className,a=e.title,l=e.icon,s=e.children;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(nn,{label:a,panelName:n}),Object(c.createElement)(zn,null,t&&Object(c.createElement)(j.PanelBody,{className:i,title:a,icon:l,opened:o,onToggle:r},s)))}));$n.Slot=Yn;var Zn=$n,Jn=Object(g.compose)(Object(h.withSelect)((function(e){var t=e("core/edit-post"),n=t.getActiveGeneralSidebarName;return{isEditorSidebarOpened:(0,t.isEditorSidebarOpened)(),sidebarName:n()}})),Object(g.ifCondition)((function(e){return e.isEditorSidebarOpened})))((function(e){var t=e.sidebarName;return Object(c.createElement)(gn,{name:t,label:Object(E.__)("Editor settings")},Object(c.createElement)(_n,{sidebarName:t}),Object(c.createElement)(j.Panel,null,"edit-post/document"===t&&Object(c.createElement)(c.Fragment,null,Object(c.createElement)(In,null),Object(c.createElement)(Zn.Slot,null),Object(c.createElement)(Dn,null),Object(c.createElement)(Hn,null),Object(c.createElement)(Fn,null),Object(c.createElement)(Vn,null),Object(c.createElement)(Un,null),Object(c.createElement)(Wn,null),Object(c.createElement)(Qn,null),Object(c.createElement)(mn,{location:"side"})),"edit-post/block"===t&&Object(c.createElement)(j.PanelBody,{className:"edit-post-settings-sidebar__panel-block"},Object(c.createElement)(i.BlockInspector,null))))})),eo=Object(j.createSlotFill)("PluginPostPublishPanel"),to=eo.Fill,no=eo.Slot,oo=Object(g.compose)(Object(y.withPluginContext)((function(e,t){return{icon:t.icon||e.icon}})))((function(e){var t=e.children,n=e.className,o=e.title,r=e.initialOpen,i=void 0!==r&&r,a=e.icon;return Object(c.createElement)(to,null,Object(c.createElement)(j.PanelBody,{className:n,initialOpen:i||!o,title:o,icon:a},t))}));oo.Slot=no;var ro=oo,co=Object(j.createSlotFill)("PluginPrePublishPanel"),io=co.Fill,ao=co.Slot,lo=Object(g.compose)(Object(y.withPluginContext)((function(e,t){return{icon:t.icon||e.icon}})))((function(e){var t=e.children,n=e.className,o=e.title,r=e.initialOpen,i=void 0!==r&&r,a=e.icon;return Object(c.createElement)(io,null,Object(c.createElement)(j.PanelBody,{className:n,initialOpen:i||!o,title:o,icon:a},t))}));lo.Slot=ao;var so=lo,uo=function(e){function t(){return Object(Ge.a)(this,t),Object(Ue.a)(this,Object(He.a)(t).apply(this,arguments))}return Object(We.a)(t,e),Object(Ve.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}(c.Component),bo=Object(h.withSelect)((function(e){return{isActive:e("core/edit-post").isFeatureActive("fullscreenMode")}}))(uo);var po=Object(g.compose)(Object(h.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(h.withDispatch)((function(e){var t=e("core/edit-post");return{closePublishSidebar:t.closePublishSidebar,togglePublishSidebar:t.togglePublishSidebar}})),j.navigateRegions,Object(s.withViewportMatch)({isMobileViewport:"< small"}))((function(e){var t=e.mode,n=e.editorSidebarOpened,o=e.pluginSidebarOpened,r=e.publishSidebarOpened,i=e.hasFixedToolbar,l=e.closePublishSidebar,s=e.togglePublishSidebar,u=e.hasActiveMetaboxes,d=e.isSaving,b=e.isMobileViewport,m=e.isRichEditingEnabled,O=n||o||r,f=ze()("edit-post-layout",{"is-sidebar-opened":O,"has-fixed-toolbar":i,"has-metaboxes":u}),h={role:"region","aria-label":Object(E.__)("Editor publish"),tabIndex:-1};return Object(c.createElement)(j.FocusReturnProvider,{className:f},Object(c.createElement)(bo,null),Object(c.createElement)($e,null),Object(c.createElement)(a.UnsavedChangesWarning,null),Object(c.createElement)(a.AutosaveMonitor,null),Object(c.createElement)(a.LocalAutosaveMonitor,null),Object(c.createElement)(ht,null),Object(c.createElement)("div",{className:"edit-post-layout__content",role:"region","aria-label":Object(E.__)("Editor content"),tabIndex:"-1"},Object(c.createElement)(a.EditorNotices,null),Object(c.createElement)(Ct,null),Object(c.createElement)(Vt,null),Object(c.createElement)(Kt,null),Object(c.createElement)(sn,null),("text"===t||!m)&&Object(c.createElement)(Et,null),m&&"visual"===t&&Object(c.createElement)(kt,null),Object(c.createElement)("div",{className:"edit-post-layout__metaboxes"},Object(c.createElement)(mn,{location:"normal"})),Object(c.createElement)("div",{className:"edit-post-layout__metaboxes"},Object(c.createElement)(mn,{location:"advanced"}))),r?Object(c.createElement)(a.PostPublishPanel,Object(p.a)({},h,{onClose:l,forceIsDirty:u,forceIsSaving:d,PrePublishExtension:so.Slot,PostPublishExtension:ro.Slot})):Object(c.createElement)(c.Fragment,null,Object(c.createElement)("div",Object(p.a)({className:"edit-post-toggle-publish-panel"},h),Object(c.createElement)(j.Button,{isDefault:!0,type:"button",className:"edit-post-toggle-publish-panel__button",onClick:s,"aria-expanded":!1},Object(E.__)("Open publish panel"))),Object(c.createElement)(Jn,null),Object(c.createElement)(gn.Slot,null),b&&O&&Object(c.createElement)(j.ScrollLock,null)),Object(c.createElement)(j.Popover.Slot,null),Object(c.createElement)(y.PluginArea,null))})),mo=function(e){var t=e.postId;!function(e){var t=Object(h.useSelect)((function(e){return{hasBlockSelection:!!e("core/block-editor").getBlockSelectionStart(),isEditorSidebarOpened:e(Fe).isEditorSidebarOpened()}}),[e]),n=t.hasBlockSelection,o=t.isEditorSidebarOpened,r=Object(h.useDispatch)(Fe).openGeneralSidebar;Object(c.useEffect)((function(){o&&r(n?"edit-post/block":"edit-post/document")}),[n,o])}(t),function(e){var t=Object(h.useSelect)((function(e){return{isSmall:e("core/viewport").isViewportMatch("< medium"),activeGeneralSidebarName:e(Fe).getActiveGeneralSidebarName()}}),[e]),n=t.isSmall,o=t.activeGeneralSidebarName,r=Object(h.useDispatch)(Fe),i=r.openGeneralSidebar,a=r.closeGeneralSidebar,l=Object(c.useRef)(null),s=Object(c.useRef)(null);Object(c.useEffect)((function(){l.current!==n&&(l.current=n,n?(s.current=o,o&&a()):s.current&&!o&&(i(s.current),s.current=null))}),[n,o])}(t),function(e){var t=Object(h.useSelect)((function(e){return{newPermalink:e("core/editor").getCurrentPost().link}}),[e]).newPermalink,n=Object(c.useRef)();Object(c.useEffect)((function(){n.current=document.querySelector("#wp-admin-bar-preview a")||document.querySelector("#wp-admin-bar-view a")}),[e]),Object(c.useEffect)((function(){t&&n.current&&n.current.setAttribute("href",t)}),[t])}(t);var n=Object(h.useDispatch)("core/nux").triggerGuide;return Object(c.useEffect)((function(){n(["core/editor.inserter","core/editor.settings","core/editor.preview","core/editor.publish"])}),[n]),null},Oo=function(e){function t(){var e;return Object(Ge.a)(this,t),(e=Object(Ue.a)(this,Object(He.a)(t).apply(this,arguments))).getEditorSettings=Ke()(e.getEditorSettings,{maxSize:1}),e}return Object(We.a)(t,e),Object(Ve.a)(t,[{key:"getEditorSettings",value:function(e,t,n,o,r,c,i,a,l){if(e=Object(D.a)({},e,{__experimentalPreferredStyleVariations:{value:i,onChange:l},hasFixedToolbar:t,focusMode:o,showInserterHelpPanel:n,__experimentalLocalAutosaveInterval:a}),Object(O.size)(r)>0){var s=!0===e.allowedBlockTypes?Object(O.map)(c,"name"):e.allowedBlockTypes||[];e.allowedBlockTypes=O.without.apply(void 0,[s].concat(Object(B.a)(r)))}return e}},{key:"render",value:function(){var e=this.props,t=e.settings,n=e.hasFixedToolbar,o=e.focusMode,r=e.post,i=e.postId,l=e.initialEdits,s=e.onError,u=e.hiddenBlockTypes,d=e.blockTypes,b=e.preferredStyleVariations,O=e.__experimentalLocalAutosaveInterval,f=e.showInserterHelpPanel,h=e.updatePreferredStyleVariations,E=Object(m.a)(e,["settings","hasFixedToolbar","focusMode","post","postId","initialEdits","onError","hiddenBlockTypes","blockTypes","preferredStyleVariations","__experimentalLocalAutosaveInterval","showInserterHelpPanel","updatePreferredStyleVariations"]);if(!r)return null;var g=this.getEditorSettings(t,n,f,o,u,d,b,O,h);return Object(c.createElement)(c.StrictMode,null,Object(c.createElement)(Ht.Provider,{value:t},Object(c.createElement)(j.SlotFillProvider,null,Object(c.createElement)(j.DropZoneProvider,null,Object(c.createElement)(a.EditorProvider,Object(p.a)({settings:g,post:r,initialEdits:l,useSubRegistry:!1},E),Object(c.createElement)(a.ErrorBoundary,{onError:s},Object(c.createElement)(mo,{postId:i}),Object(c.createElement)(po,null),Object(c.createElement)(j.KeyboardShortcuts,{shortcuts:Qe})),Object(c.createElement)(a.PostLockedModal,null))))))}}]),t}(c.Component),fo=Object(g.compose)([Object(h.withSelect)((function(e,t){var n=t.postId,o=t.postType,r=e("core/edit-post"),c=r.isFeatureActive,i=r.getPreference,a=e("core").getEntityRecord,l=e("core/blocks").getBlockTypes;return{showInserterHelpPanel:c("showInserterHelpPanel"),hasFixedToolbar:c("fixedToolbar"),focusMode:c("focusMode"),post:a("postType",o,n),preferredStyleVariations:i("preferredStyleVariations"),hiddenBlockTypes:i("hiddenBlockTypes"),blockTypes:l(),__experimentalLocalAutosaveInterval:i("localAutosaveInterval")}})),Object(h.withDispatch)((function(e){return{updatePreferredStyleVariations:e("core/edit-post").updatePreferredStyleVariations}}))])(Oo),jo=function(e,t){return!Array.isArray(t)||(n=e,o=t,0===Object(O.difference)(n,o).length);var n,o},ho=function(e){var t=e.allowedBlocks,n=e.icon,o=e.label,r=e.onClick,i=e.small,a=e.role;return Object(c.createElement)(St,null,(function(e){var l=e.selectedBlocks,s=e.onClose;return jo(l,t)?Object(c.createElement)(j.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:Object(g.compose)(r,s),icon:n||"admin-plugins",label:i?o:void 0,role:a},!i&&o):null}))},Eo=Object(g.compose)(Object(y.withPluginContext)((function(e,t){return{icon:t.icon||e.icon}})))((function(e){var t=e.onClick,n=void 0===t?O.noop:t,o=Object(m.a)(e,["onClick"]);return Object(c.createElement)(it,null,(function(e){return Object(c.createElement)(j.MenuItem,Object(p.a)({},o,{onClick:Object(g.compose)(n,e.onClose)}))}))}));var go=Object(g.compose)(Object(y.withPluginContext)((function(e,t){return{icon:t.icon||e.icon,sidebarName:"".concat(e.name,"/").concat(t.name)}})),Object(h.withSelect)((function(e,t){var n=t.sidebarName,o=e("core/edit-post"),r=o.getActiveGeneralSidebarName,c=o.isPluginItemPinned;return{isActive:r()===n,isPinned:c(n)}})),Object(h.withDispatch)((function(e,t){var n=t.isActive,o=t.sidebarName,r=e("core/edit-post"),c=r.closeGeneralSidebar,i=r.openGeneralSidebar,a=r.togglePinnedPluginItem;return{togglePin:function(){a(o)},toggleSidebar:function(){n?c():i(o)}}})))((function(e){var t=e.children,n=e.className,o=e.icon,r=e.isActive,i=e.isPinnable,a=void 0===i||i,l=e.isPinned,s=e.sidebarName,u=e.title,d=e.togglePin,b=e.toggleSidebar;return Object(c.createElement)(c.Fragment,null,a&&Object(c.createElement)(ft,null,l&&Object(c.createElement)(j.IconButton,{icon:o,label:u,onClick:b,isToggled:r,"aria-expanded":r})),Object(c.createElement)(gn,{name:s,label:Object(E.__)("Editor plugins")},Object(c.createElement)(vn,{closeLabel:Object(E.__)("Close plugin")},Object(c.createElement)("strong",null,u),a&&Object(c.createElement)(j.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(c.createElement)(j.Panel,{className:n},t)))})),vo=Object(g.compose)(Object(y.withPluginContext)((function(e,t){return{icon:t.icon||e.icon,sidebarName:"".concat(e.name,"/").concat(t.target)}})),Object(h.withSelect)((function(e,t){var n=t.sidebarName;return{isSelected:(0,e("core/edit-post").getActiveGeneralSidebarName)()===n}})),Object(h.withDispatch)((function(e,t){var n=t.isSelected,o=t.sidebarName,r=e("core/edit-post"),c=r.closeGeneralSidebar,i=r.openGeneralSidebar;return{onClick:n?c:function(){return i(o)}}})))((function(e){var t=e.children,n=e.icon,o=e.isSelected,r=e.onClick;return Object(c.createElement)(Eo,{icon:o?"yes":n,isSelected:o,role:"menuitemcheckbox",onClick:r},t)}));function _o(e,t,n,o,r){Object(c.unmountComponentAtNode)(n);var i=_o.bind(null,e,t,n,o,r);Object(c.render)(Object(c.createElement)(fo,{settings:o,onError:i,postId:t,postType:e,initialEdits:r,recovery:!0}),n)}function yo(e,t,n,o,r){var i=document.getElementById(e),a=_o.bind(null,t,n,i,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(c.render)(Object(c.createElement)(fo,{settings:o,onError:a,postId:n,postType:t,initialEdits:r}),i)}n.d(t,"reinitializeEditor",(function(){return _o})),n.d(t,"initializeEditor",(function(){return yo})),n.d(t,"PluginBlockSettingsMenuItem",(function(){return ho})),n.d(t,"PluginDocumentSettingPanel",(function(){return Zn})),n.d(t,"PluginMoreMenuItem",(function(){return Eo})),n.d(t,"PluginPostPublishPanel",(function(){return ro})),n.d(t,"PluginPostStatusInfo",(function(){return Bn})),n.d(t,"PluginPrePublishPanel",(function(){return so})),n.d(t,"PluginSidebar",(function(){return go})),n.d(t,"PluginSidebarMoreMenuItem",(function(){return vo}))},36:function(e,t,n){"use strict";var o,r;function c(e){return[e]}function i(){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;o=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}))},22:function(e,t){!function(){e.exports=this.wp.richText}()},23:function(e,t,n){"use strict";var r=n(38);var o=n(39);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}))},26:function(e,t){!function(){e.exports=this.wp.url}()},27:function(e,t){!function(){e.exports=this.wp.hooks}()},28:function(e,t){!function(){e.exports=this.React}()},3:function(e,t){!function(){e.exports=this.wp.components}()},30: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}))},31: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}))},32:function(e,t){!function(){e.exports=this.wp.dataControls}()},325:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t=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}])),u(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=l(t),i=o.optimist,c=o.innerState;return i=i.concat([{beforeState:c,action:n}]),u(c=e(c,n),n),r({optimist:i},c)}(n,a);case i:return function(e,n){var r=l(e),o=r.optimist,i=r.innerState,c=[],a=!1,u=!1;return o.forEach((function(e){a?e.beforeState&&s(e.action,n.optimist.id)?(u=!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)&&(u=!0)})),u||console.error('Cannot commit transaction with id "'+n.optimist.id+'" because it does not exist'),t(o=c,i,n)}(n,a);case c:return function(n,r){var o=l(n),i=o.optimist,c=o.innerState,a=[],d=!1,p=!1,b=c;return 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),u(c,r)))})),p||console.error('Cannot revert transaction with id "'+r.optimist.id+'" because it does not exist'),t(i=a,b,r)}(n,a)}var d=l(n),p=d.optimist,b=d.innerState;if(n&&!p.length){var f=e(b,a);return f===b?n:(u(f,a),r({optimist:p},f))}return t(p,b,a)}},e.exports.BEGIN=o,e.exports.COMMIT=i,e.exports.REVERT=c},33:function(e,t,n){e.exports=n(87)()},34:function(e,t){!function(){e.exports=this.wp.apiFetch}()},343:function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"getDependencies",(function(){return ce})),n.d(r,"apply",(function(){return ae})),n.d(r,"update",(function(){return se}));var o={};n.r(o),n.d(o,"meta",(function(){return r}));var i={};n.r(i),n.d(i,"setupEditor",(function(){return Se})),n.d(i,"__experimentalTearDownEditor",(function(){return Pe})),n.d(i,"__experimentalSubscribeSources",(function(){return Ce})),n.d(i,"resetPost",(function(){return Te})),n.d(i,"resetAutosave",(function(){return xe})),n.d(i,"__experimentalRequestPostUpdateStart",(function(){return Be})),n.d(i,"__experimentalRequestPostUpdateFinish",(function(){return Ie})),n.d(i,"updatePost",(function(){return Ae})),n.d(i,"setupEditorState",(function(){return Le})),n.d(i,"editPost",(function(){return Re})),n.d(i,"__experimentalOptimisticUpdatePost",(function(){return Ne})),n.d(i,"savePost",(function(){return De})),n.d(i,"refreshPost",(function(){return Ue})),n.d(i,"trashPost",(function(){return Fe})),n.d(i,"autosave",(function(){return Me})),n.d(i,"__experimentalLocalAutosave",(function(){return Ve})),n.d(i,"redo",(function(){return He})),n.d(i,"undo",(function(){return We})),n.d(i,"createUndoLevel",(function(){return ze})),n.d(i,"updatePostLock",(function(){return Ke})),n.d(i,"__experimentalFetchReusableBlocks",(function(){return Ge})),n.d(i,"__experimentalReceiveReusableBlocks",(function(){return qe})),n.d(i,"__experimentalSaveReusableBlock",(function(){return Ye})),n.d(i,"__experimentalDeleteReusableBlock",(function(){return Qe})),n.d(i,"__experimentalUpdateReusableBlock",(function(){return Xe})),n.d(i,"__experimentalConvertBlockToStatic",(function(){return $e})),n.d(i,"__experimentalConvertBlockToReusable",(function(){return Ze})),n.d(i,"enablePublishSidebar",(function(){return Je})),n.d(i,"disablePublishSidebar",(function(){return et})),n.d(i,"lockPostSaving",(function(){return tt})),n.d(i,"unlockPostSaving",(function(){return nt})),n.d(i,"resetEditorBlocks",(function(){return rt})),n.d(i,"updateEditorSettings",(function(){return ot})),n.d(i,"resetBlocks",(function(){return ct})),n.d(i,"receiveBlocks",(function(){return at})),n.d(i,"updateBlock",(function(){return st})),n.d(i,"updateBlockAttributes",(function(){return ut})),n.d(i,"selectBlock",(function(){return lt})),n.d(i,"startMultiSelect",(function(){return dt})),n.d(i,"stopMultiSelect",(function(){return pt})),n.d(i,"multiSelect",(function(){return bt})),n.d(i,"clearSelectedBlock",(function(){return ft})),n.d(i,"toggleSelection",(function(){return ht})),n.d(i,"replaceBlocks",(function(){return mt})),n.d(i,"replaceBlock",(function(){return vt})),n.d(i,"moveBlocksDown",(function(){return Ot})),n.d(i,"moveBlocksUp",(function(){return gt})),n.d(i,"moveBlockToPosition",(function(){return jt})),n.d(i,"insertBlock",(function(){return yt})),n.d(i,"insertBlocks",(function(){return _t})),n.d(i,"showInsertionPoint",(function(){return kt})),n.d(i,"hideInsertionPoint",(function(){return Et})),n.d(i,"setTemplateValidity",(function(){return wt})),n.d(i,"synchronizeTemplate",(function(){return St})),n.d(i,"mergeBlocks",(function(){return Pt})),n.d(i,"removeBlocks",(function(){return Ct})),n.d(i,"removeBlock",(function(){return Tt})),n.d(i,"toggleBlockMode",(function(){return xt})),n.d(i,"startTyping",(function(){return Bt})),n.d(i,"stopTyping",(function(){return It})),n.d(i,"enterFormattedText",(function(){return At})),n.d(i,"exitFormattedText",(function(){return Lt})),n.d(i,"insertDefaultBlock",(function(){return Rt})),n.d(i,"updateBlockListSettings",(function(){return Nt}));var c={};n.r(c),n.d(c,"hasEditorUndo",(function(){return Ht})),n.d(c,"hasEditorRedo",(function(){return Wt})),n.d(c,"isEditedPostNew",(function(){return zt})),n.d(c,"hasChangedContent",(function(){return Kt})),n.d(c,"isEditedPostDirty",(function(){return Gt})),n.d(c,"isCleanNewPost",(function(){return qt})),n.d(c,"getCurrentPost",(function(){return Yt})),n.d(c,"getCurrentPostType",(function(){return Qt})),n.d(c,"getCurrentPostId",(function(){return Xt})),n.d(c,"getCurrentPostRevisionsCount",(function(){return $t})),n.d(c,"getCurrentPostLastRevisionId",(function(){return Zt})),n.d(c,"getPostEdits",(function(){return Jt})),n.d(c,"getCurrentPostAttribute",(function(){return en})),n.d(c,"getEditedPostAttribute",(function(){return nn})),n.d(c,"getAutosaveAttribute",(function(){return rn})),n.d(c,"getEditedPostVisibility",(function(){return on})),n.d(c,"isCurrentPostPending",(function(){return cn})),n.d(c,"isCurrentPostPublished",(function(){return an})),n.d(c,"isCurrentPostScheduled",(function(){return sn})),n.d(c,"isEditedPostPublishable",(function(){return un})),n.d(c,"isEditedPostSaveable",(function(){return ln})),n.d(c,"isEditedPostEmpty",(function(){return dn})),n.d(c,"isEditedPostAutosaveable",(function(){return pn})),n.d(c,"getAutosave",(function(){return bn})),n.d(c,"hasAutosave",(function(){return fn})),n.d(c,"isEditedPostBeingScheduled",(function(){return hn})),n.d(c,"isEditedPostDateFloating",(function(){return mn})),n.d(c,"isSavingPost",(function(){return vn})),n.d(c,"didPostSaveRequestSucceed",(function(){return On})),n.d(c,"didPostSaveRequestFail",(function(){return gn})),n.d(c,"isAutosavingPost",(function(){return jn})),n.d(c,"isPreviewingPost",(function(){return yn})),n.d(c,"getEditedPostPreviewLink",(function(){return _n})),n.d(c,"getSuggestedPostFormat",(function(){return kn})),n.d(c,"getBlocksForSerialization",(function(){return En})),n.d(c,"getEditedPostContent",(function(){return wn})),n.d(c,"__experimentalGetReusableBlock",(function(){return Sn})),n.d(c,"__experimentalIsSavingReusableBlock",(function(){return Pn})),n.d(c,"__experimentalIsFetchingReusableBlock",(function(){return Cn})),n.d(c,"__experimentalGetReusableBlocks",(function(){return Tn})),n.d(c,"getStateBeforeOptimisticTransaction",(function(){return xn})),n.d(c,"isPublishingPost",(function(){return Bn})),n.d(c,"isPermalinkEditable",(function(){return In})),n.d(c,"getPermalink",(function(){return An})),n.d(c,"getPermalinkParts",(function(){return Ln})),n.d(c,"inSomeHistory",(function(){return Rn})),n.d(c,"isPostLocked",(function(){return Nn})),n.d(c,"isPostSavingLocked",(function(){return Dn})),n.d(c,"isPostAutosavingLocked",(function(){return Un})),n.d(c,"isPostLockTakeover",(function(){return Fn})),n.d(c,"getPostLockUser",(function(){return Mn})),n.d(c,"getActivePostLock",(function(){return Vn})),n.d(c,"canUserUseUnfilteredHTML",(function(){return Hn})),n.d(c,"isPublishSidebarEnabled",(function(){return Wn})),n.d(c,"getEditorBlocks",(function(){return zn})),n.d(c,"__unstableIsEditorReady",(function(){return Kn})),n.d(c,"getEditorSettings",(function(){return Gn})),n.d(c,"getBlockName",(function(){return Yn})),n.d(c,"isBlockValid",(function(){return Qn})),n.d(c,"getBlockAttributes",(function(){return Xn})),n.d(c,"getBlock",(function(){return $n})),n.d(c,"getBlocks",(function(){return Zn})),n.d(c,"__unstableGetBlockWithoutInnerBlocks",(function(){return Jn})),n.d(c,"getClientIdsOfDescendants",(function(){return er})),n.d(c,"getClientIdsWithDescendants",(function(){return tr})),n.d(c,"getGlobalBlockCount",(function(){return nr})),n.d(c,"getBlocksByClientId",(function(){return rr})),n.d(c,"getBlockCount",(function(){return or})),n.d(c,"getBlockSelectionStart",(function(){return ir})),n.d(c,"getBlockSelectionEnd",(function(){return cr})),n.d(c,"getSelectedBlockCount",(function(){return ar})),n.d(c,"hasSelectedBlock",(function(){return sr})),n.d(c,"getSelectedBlockClientId",(function(){return ur})),n.d(c,"getSelectedBlock",(function(){return lr})),n.d(c,"getBlockRootClientId",(function(){return dr})),n.d(c,"getBlockHierarchyRootClientId",(function(){return pr})),n.d(c,"getAdjacentBlockClientId",(function(){return br})),n.d(c,"getPreviousBlockClientId",(function(){return fr})),n.d(c,"getNextBlockClientId",(function(){return hr})),n.d(c,"getSelectedBlocksInitialCaretPosition",(function(){return mr})),n.d(c,"getMultiSelectedBlockClientIds",(function(){return vr})),n.d(c,"getMultiSelectedBlocks",(function(){return Or})),n.d(c,"getFirstMultiSelectedBlockClientId",(function(){return gr})),n.d(c,"getLastMultiSelectedBlockClientId",(function(){return jr})),n.d(c,"isFirstMultiSelectedBlock",(function(){return yr})),n.d(c,"isBlockMultiSelected",(function(){return _r})),n.d(c,"isAncestorMultiSelected",(function(){return kr})),n.d(c,"getMultiSelectedBlocksStartClientId",(function(){return Er})),n.d(c,"getMultiSelectedBlocksEndClientId",(function(){return wr})),n.d(c,"getBlockOrder",(function(){return Sr})),n.d(c,"getBlockIndex",(function(){return Pr})),n.d(c,"isBlockSelected",(function(){return Cr})),n.d(c,"hasSelectedInnerBlock",(function(){return Tr})),n.d(c,"isBlockWithinSelection",(function(){return xr})),n.d(c,"hasMultiSelection",(function(){return Br})),n.d(c,"isMultiSelecting",(function(){return Ir})),n.d(c,"isSelectionEnabled",(function(){return Ar})),n.d(c,"getBlockMode",(function(){return Lr})),n.d(c,"isTyping",(function(){return Rr})),n.d(c,"isCaretWithinFormattedText",(function(){return Nr})),n.d(c,"getBlockInsertionPoint",(function(){return Dr})),n.d(c,"isBlockInsertionPointVisible",(function(){return Ur})),n.d(c,"isValidTemplate",(function(){return Fr})),n.d(c,"getTemplate",(function(){return Mr})),n.d(c,"getTemplateLock",(function(){return Vr})),n.d(c,"canInsertBlockType",(function(){return Hr})),n.d(c,"getInserterItems",(function(){return Wr})),n.d(c,"hasInserterItems",(function(){return zr})),n.d(c,"getBlockListSettings",(function(){return Kr}));var a={};n.r(a),n.d(a,"isRequestingDownloadableBlocks",(function(){return Qc})),n.d(a,"getDownloadableBlocks",(function(){return Xc})),n.d(a,"hasInstallBlocksPermission",(function(){return $c})),n.d(a,"getInstalledBlockTypes",(function(){return Zc}));var s={};n.r(s),n.d(s,"fetchDownloadableBlocks",(function(){return sa})),n.d(s,"receiveDownloadableBlocks",(function(){return ua})),n.d(s,"setInstallBlocksPermission",(function(){return la})),n.d(s,"downloadBlock",(function(){return da})),n.d(s,"installBlock",(function(){return pa})),n.d(s,"uninstallBlock",(function(){return ba})),n.d(s,"addInstalledBlockType",(function(){return fa})),n.d(s,"removeInstalledBlockType",(function(){return ha}));var u=n(6),l=n(9),d=(n(89),n(142),n(61)),p=n(22),b=n(42),f=n(7),h=n(4),m=n(32),v=n(10),O=n(31),g=n(83),j=n.n(g),y=n(2),_={insertUsage:{},isPublishSidebarEnabled:!0},k=Object(f.a)({},u.SETTINGS_DEFAULTS,{richEditingEnabled:!0,codeEditingEnabled:!0,enableCustomFields:!1});function E(e){return e&&"object"===Object(O.a)(e)&&"raw"in e?e.raw:e}var w=Object(h.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(f.a)({},e,Object(y.keyBy)(t.results,"id"));case"UPDATE_REUSABLE_BLOCK":var n=t.id,r=t.changes;return Object(f.a)({},e,Object(v.a)({},n,Object(f.a)({},e[n],r)));case"SAVE_REUSABLE_BLOCK_SUCCESS":var o=t.id,i=t.updatedId;if(o===i)return e;var c=e[o];return Object(f.a)({},Object(y.omit)(e,o),Object(v.a)({},i,Object(f.a)({},c,{id:i})));case"REMOVE_REUSABLE_BLOCK":var a=t.id;return Object(y.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(f.a)({},e,Object(v.a)({},n,!0)):e;case"FETCH_REUSABLE_BLOCKS_SUCCESS":case"FETCH_REUSABLE_BLOCKS_FAILURE":var r=t.id;return Object(y.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(f.a)({},e,Object(v.a)({},t.id,!0));case"SAVE_REUSABLE_BLOCK_SUCCESS":case"SAVE_REUSABLE_BLOCK_FAILURE":var n=t.id;return Object(y.omit)(e,n)}return e}});var S=j()(Object(h.combineReducers)({postId: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"SETUP_EDITOR_STATE":case"RESET_POST":case"UPDATE_POST":return t.post.id}return e},postType: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"SETUP_EDITOR_STATE":case"RESET_POST":case"UPDATE_POST":return t.post.type}return e},preferences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_;switch((arguments.length>1?arguments[1]:void 0).type){case"ENABLE_PUBLISH_SIDEBAR":return Object(f.a)({},e,{isPublishSidebarEnabled:!0});case"DISABLE_PUBLISH_SIDEBAR":return Object(f.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":case"REQUEST_POST_UPDATE_FINISH":return{pending:"REQUEST_POST_UPDATE_START"===t.type,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:w,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(f.a)({},e,{isValid:t.isValid})}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(f.a)({},e,Object(v.a)({},t.lockName,!0));case"UNLOCK_POST_SAVING":return Object(y.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;case"TEAR_DOWN_EDITOR":return!1}return e},editorSettings: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"UPDATE_EDITOR_SETTINGS":return Object(f.a)({},e,t.settings)}return e},postAutosavingLock: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_AUTOSAVING":return Object(f.a)({},e,Object(v.a)({},t.lockName,!0));case"UNLOCK_POST_AUTOSAVING":return Object(y.omit)(e,t.lockName)}return e}})),P=n(72),C=n.n(P),T=n(20),x=n.n(T),B=n(43),I=n(34),A=n.n(I),L=n(1),R=n(23),N=n(17),D=n(37),U=n.n(D),F=n(41),M=n.n(F),V=new Set(["meta"]),H="core/editor",W="post-update",z="SAVE_POST_NOTICE_ID",K="TRASH_POST_NOTICE_ID",G=/%(?:postname|pagename)%/,q=6e4,Y=["title","excerpt","content"];function Q(e){var t=e.previousPost,n=e.post,r=e.postType;if(Object(y.get)(e.options,["isAutosave"]))return[];var o,i=["publish","private","future"],c=Object(y.includes)(i,t.status),a=Object(y.includes)(i,n.status),s=Object(y.get)(r,["viewable"],!1);if(c||a?c&&!a?(o=r.labels.item_reverted_to_draft,s=!1):o=!c&&a?{publish:r.labels.item_published,private:r.labels.item_published_privately,future:r.labels.item_scheduled}[n.status]:r.labels.item_updated:o=null,o){var u=[];return s&&u.push({label:r.labels.view_item,url:n.link}),[o,{id:z,type:"snackbar",actions:u}]}return[]}function X(e){var t=e.post,n=e.edits,r=e.error;if(r&&"rest_autosave_no_changes"===r.code)return[];var o=["publish","private","future"],i=-1!==o.indexOf(t.status),c={publish:Object(L.__)("Publishing failed."),private:Object(L.__)("Publishing failed."),future:Object(L.__)("Scheduling failed.")},a=i||-1===o.indexOf(n.status)?Object(L.__)("Updating failed."):c[n.status];return r.message&&!/<\/?[^>]*>/.test(r.message)&&(a=Object(L.sprintf)(Object(L.__)("%1$s Error message: %2$s"),a,r.message)),[a,{id:z}]}var $=n(44),Z=n.n($),J=n(69),ee=Z()((function(e){1===e.length&&Object(l.isUnmodifiedDefaultBlock)(e[0])&&(e=[]);var t=Object(l.serialize)(e);return 1===e.length&&e[0].name===Object(l.getFreeformContentHandlerName)()&&(t=Object(J.removep)(t)),t}),{maxSize:1});function te(e){return"wp-autosave-block-editor-post-".concat(e)}function ne(e){window.sessionStorage.removeItem(te(e))}var re={AWAIT_NEXT_STATE_CHANGE:Object(h.createRegistryControl)((function(e){return function(){return new Promise((function(t){var n=e.subscribe((function(){n(),t()}))}))}})),GET_REGISTRY:Object(h.createRegistryControl)((function(e){return function(){return e}})),LOCAL_AUTOSAVE_SET:function(e){!function(e,t,n,r){window.sessionStorage.setItem(te(e),JSON.stringify({post_title:t,content:n,excerpt:r}))}(e.postId,e.title,e.content,e.excerpt)}},oe=x.a.mark(ce),ie=x.a.mark(se);function ce(){return x.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(m.select)("core/editor","getEditedPostAttribute","meta");case 2:return e.t0=e.sent,e.abrupt("return",{meta:e.t0});case 4:case"end":return e.stop()}}),oe)}function ae(e,t){return t.meta[e.meta]}function se(e,t){return x.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Re({meta:Object(v.a)({},e.meta,t)});case 2:case"end":return n.stop()}}),ie)}var ue=x.a.mark(Ee),le=x.a.mark(we),de=x.a.mark(Se),pe=x.a.mark(Ce),be=x.a.mark(xe),fe=x.a.mark(Re),he=x.a.mark(De),me=x.a.mark(Ue),ve=x.a.mark(Fe),Oe=x.a.mark(Me),ge=x.a.mark(Ve),je=x.a.mark(He),ye=x.a.mark(We),_e=x.a.mark(rt),ke=new WeakMap;function Ee(e){var t,n,r,i,c,a,s,u,l,d,p,b,h,O;return x.a.wrap((function(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,{type:"GET_REGISTRY"};case 2:if(t=g.sent,ke.has(t)){g.next=5;break}return g.abrupt("return",e);case 5:n=ke.get(t),r=e,i=0;case 8:if(!(i0&&void 0!==d[0]?d[0]:Object.values(o)).length){p.next=3;break}return p.abrupt("return");case 3:return p.next=5,{type:"GET_REGISTRY"};case 5:t=p.sent,ke.has(t)||ke.set(t,new WeakMap),n=ke.get(t),r=!0,i=!1,c=void 0,p.prev=11,a=e[Symbol.iterator]();case 13:if(r=(s=a.next()).done){p.next=21;break}return u=s.value,p.delegateYield(u.getDependencies(),"t0",16);case 16:l=p.t0,n.set(u,l);case 18:r=!0,p.next=13;break;case 21:p.next=27;break;case 23:p.prev=23,p.t1=p.catch(11),i=!0,c=p.t1;case 27:p.prev=27,p.prev=28,r||null==a.return||a.return();case 30:if(p.prev=30,!i){p.next=33;break}throw c;case 33:return p.finish(30);case 34:return p.finish(27);case 35:case"end":return p.stop()}}),le,null,[[11,23,27,35],[28,,30,34]])}function Se(e,t,n){var r,o;return x.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return r=Object(y.has)(t,["content"])?t.content:e.content.raw,o=Object(l.parse)(r),"auto-draft"===e.status&&n&&(o=Object(l.synchronizeBlocksWithTemplate)(o,n)),i.next=6,Te(e);case 6:return i.delegateYield(we(),"t0",7);case 7:return i.next=9,{type:"SETUP_EDITOR",post:e,edits:t,template:n};case 9:return i.next=11,rt(o,{__unstableShouldCreateUndoLevel:!1});case 11:return i.next=13,Le(e);case 13:if(!t||!Object.keys(t).some((function(n){return t[n]!==(Object(y.has)(e,[n,"raw"])?e[n].raw:e[n])}))){i.next=16;break}return i.next=16,Re(t);case 16:return i.delegateYield(Ce(),"t1",17);case 17:case"end":return i.stop()}}),de)}function Pe(){return{type:"TEAR_DOWN_EDITOR"}}function Ce(){var e,t,n,r,i,c,a,s;return x.a.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=3,{type:"AWAIT_NEXT_STATE_CHANGE"};case 3:return u.next=5,Object(m.select)(H,"__unstableIsEditorReady");case 5:if(u.sent){u.next=8;break}return u.abrupt("break",36);case 8:return u.next=10,{type:"GET_REGISTRY"};case 10:e=u.sent,t=!1,n=0,r=Object.values(o);case 13:if(!(n0&&void 0!==arguments[0]?arguments[0]:{}}}function Ie(){return{type:"REQUEST_POST_UPDATE_FINISH",options:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}}}function Ae(e){return{type:"UPDATE_POST",edits:e}}function Le(e){return{type:"SETUP_EDITOR_STATE",post:e}}function Re(e,t){var n,r,o;return x.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,Object(m.select)(H,"getCurrentPost");case 2:return n=i.sent,r=n.id,o=n.type,i.next=7,Object(m.dispatch)("core","editEntityRecord","postType",o,r,e,t);case 7:case"end":return i.stop()}}),fe)}function Ne(e){return Object(f.a)({},Ae(e),{optimist:{id:W}})}function De(){var e,t,n,r,o,i,c,a=arguments;return x.a.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return e=a.length>0&&void 0!==a[0]?a[0]:{},s.next=3,Object(m.select)(H,"isEditedPostSaveable");case 3:if(s.sent){s.next=5;break}return s.abrupt("return");case 5:return s.next=7,Object(m.select)(H,"getEditedPostContent");case 7:if(s.t0=s.sent,t={content:s.t0},e.isAutosave){s.next=12;break}return s.next=12,Object(m.dispatch)(H,"editPost",t,{undoIgnore:!0});case 12:return s.next=14,Be(e);case 14:return s.next=16,Object(m.select)(H,"getCurrentPost");case 16:return n=s.sent,s.t1=f.a,s.t2={id:n.id},s.next=21,Object(m.select)("core","getEntityRecordNonTransientEdits","postType",n.type,n.id);case 21:return s.t3=s.sent,s.t4=t,t=(0,s.t1)(s.t2,s.t3,s.t4),s.next=26,Object(m.dispatch)("core","saveEntityRecord","postType",n.type,t,e);case 26:return s.next=28,Ie(e);case 28:return s.next=30,Object(m.select)("core","getLastEntitySaveError","postType",n.type,n.id);case 30:if(!(r=s.sent)){s.next=38;break}if(!(o=X({post:n,edits:t,error:r})).length){s.next=36;break}return s.next=36,m.dispatch.apply(void 0,["core/notices","createErrorNotice"].concat(Object(N.a)(o)));case 36:s.next=56;break;case 38:return s.next=40,Object(m.select)(H,"getCurrentPost");case 40:return i=s.sent,s.t5=Q,s.t6=n,s.t7=i,s.next=46,Object(m.select)("core","getPostType",i.type);case 46:if(s.t8=s.sent,s.t9=e,s.t10={previousPost:s.t6,post:s.t7,postType:s.t8,options:s.t9},!(c=(0,s.t5)(s.t10)).length){s.next=53;break}return s.next=53,m.dispatch.apply(void 0,["core/notices","createSuccessNotice"].concat(Object(N.a)(c)));case 53:if(e.isAutosave){s.next=56;break}return s.next=56,Object(m.dispatch)("core/block-editor","__unstableMarkLastChangeAsPersistent");case 56:case"end":return s.stop()}}),he)}function Ue(){var e,t,n,r;return x.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,Object(m.select)(H,"getCurrentPost");case 2:return e=o.sent,o.next=5,Object(m.select)(H,"getCurrentPostType");case 5:return t=o.sent,o.next=8,Object(m.select)("core","getPostType",t);case 8:return n=o.sent,o.next=11,Object(m.apiFetch)({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,Object(m.dispatch)(H,"resetPost",r);case 14:case"end":return o.stop()}}),me)}function Fe(){var e,t,n;return x.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Object(m.select)(H,"getCurrentPostType");case 2:return e=r.sent,r.next=5,Object(m.select)("core","getPostType",e);case 5:return t=r.sent,r.next=8,Object(m.dispatch)("core/notices","removeNotice",K);case 8:return r.prev=8,r.next=11,Object(m.select)(H,"getCurrentPost");case 11:return n=r.sent,r.next=14,Object(m.apiFetch)({path:"/wp/v2/".concat(t.rest_base,"/").concat(n.id),method:"DELETE"});case 14:return r.next=16,Object(m.dispatch)(H,"savePost");case 16:r.next=22;break;case 18:return r.prev=18,r.t0=r.catch(8),r.next=22,m.dispatch.apply(void 0,["core/notices","createErrorNotice"].concat(Object(N.a)([(o={error:r.t0}).error.message&&"unknown_error"!==o.error.code?o.error.message:Object(L.__)("Trashing failed"),{id:K}])));case 22:case"end":return r.stop()}var o}),ve,null,[[8,18]])}function Me(e){return x.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(m.dispatch)(H,"savePost",Object(f.a)({isAutosave:!0},e));case 2:case"end":return t.stop()}}),Oe)}function Ve(){var e,t,n,r;return x.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,Object(m.select)(H,"getCurrentPost");case 2:return e=o.sent,o.next=5,Object(m.select)(H,"getEditedPostAttribute","title");case 5:return t=o.sent,o.next=8,Object(m.select)(H,"getEditedPostAttribute","content");case 8:return n=o.sent,o.next=11,Object(m.select)(H,"getEditedPostAttribute","excerpt");case 11:return r=o.sent,o.next=14,{type:"LOCAL_AUTOSAVE_SET",postId:e.id,title:t,content:n,excerpt:r};case 14:case"end":return o.stop()}}),ge)}function He(){return x.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(m.dispatch)("core","redo");case 2:case"end":return e.stop()}}),je)}function We(){return x.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(m.dispatch)("core","undo");case 2:case"end":return e.stop()}}),ye)}function ze(){return{type:"CREATE_UNDO_LEVEL"}}function Ke(e){return{type:"UPDATE_POST_LOCK",lock:e}}function Ge(e){return{type:"FETCH_REUSABLE_BLOCKS",id:e}}function qe(e){return{type:"RECEIVE_REUSABLE_BLOCKS",results:e}}function Ye(e){return{type:"SAVE_REUSABLE_BLOCK",id:e}}function Qe(e){return{type:"DELETE_REUSABLE_BLOCK",id:e}}function Xe(e,t){return{type:"UPDATE_REUSABLE_BLOCK",id:e,changes:t}}function $e(e){return{type:"CONVERT_BLOCK_TO_STATIC",clientId:e}}function Ze(e){return{type:"CONVERT_BLOCK_TO_REUSABLE",clientIds:Object(y.castArray)(e)}}function Je(){return{type:"ENABLE_PUBLISH_SIDEBAR"}}function et(){return{type:"DISABLE_PUBLISH_SIDEBAR"}}function tt(e){return{type:"LOCK_POST_SAVING",lockName:e}}function nt(e){return{type:"UNLOCK_POST_SAVING",lockName:e}}function rt(e){var t,n,r,i,c,a,s,u,l,d,p,b,f,h,v,O,g,j,y,_,k,E,w=arguments;return x.a.wrap((function(S){for(;;)switch(S.prev=S.next){case 0:return t=w.length>1&&void 0!==w[1]?w[1]:{},S.next=3,Object(m.select)("core/block-editor","__experimentalGetLastBlockAttributeChanges");case 3:if(!(n=S.sent)){S.next=36;break}r=new Set,i=new Set,c=0,a=Object.entries(n);case 8:if(!(c1)return!1;var n=t[0].name;if(n!==Object(l.getDefaultBlockName)()&&n!==Object(l.getFreeformContentHandlerName)())return!1}return!wn(e)}var pn=Object(h.createRegistrySelector)((function(e){return function(t){if(!ln(t))return!1;if(Un(t))return!1;var n=Qt(t),r=Xt(t),o=e("core").hasFetchedAutosaves(n,r),i=Object(y.get)(e("core").getCurrentUser(),["id"]),c=e("core").getAutosave(n,r,i);return!!o&&(!c||(!!Kt(t)||["title","excerpt"].some((function(e){return E(c[e])!==nn(t,e)}))))}})),bn=Object(h.createRegistrySelector)((function(e){return function(t){U()("`wp.data.select( 'core/editor' ).getAutosave()`",{alternative:"`wp.data.select( 'core' ).getAutosave( postType, postId, userId )`",plugin:"Gutenberg"});var n=Qt(t),r=Xt(t),o=Object(y.get)(e("core").getCurrentUser(),["id"]),i=e("core").getAutosave(n,r,o);return Object(y.mapValues)(Object(y.pick)(i,Y),E)}})),fn=Object(h.createRegistrySelector)((function(e){return function(t){U()("`wp.data.select( 'core/editor' ).hasAutosave()`",{alternative:"`!! wp.data.select( 'core' ).getAutosave( postType, postId, userId )`",plugin:"Gutenberg"});var n=Qt(t),r=Xt(t),o=Object(y.get)(e("core").getCurrentUser(),["id"]);return!!e("core").getAutosave(n,r,o)}}));function hn(e){var t=nn(e,"date"),n=new Date(Number(Object(Ut.getDate)(t))-q);return Object(Ut.isInTheFuture)(n)}function mn(e){var t=nn(e,"date"),n=nn(e,"modified"),r=nn(e,"status");return("draft"===r||"auto-draft"===r||"pending"===r)&&t===n}var vn=Object(h.createRegistrySelector)((function(e){return function(t){var n=Qt(t),r=Xt(t);return e("core").isSavingEntityRecord("postType",n,r)}})),On=Object(h.createRegistrySelector)((function(e){return function(t){var n=Qt(t),r=Xt(t);return!e("core").getLastEntitySaveError("postType",n,r)}})),gn=Object(h.createRegistrySelector)((function(e){return function(t){var n=Qt(t),r=Xt(t);return!!e("core").getLastEntitySaveError("postType",n,r)}}));function jn(e){return!!vn(e)&&!!Object(y.get)(e.saving,["options","isAutosave"])}function yn(e){return!!vn(e)&&!!e.saving.options.isPreview}function _n(e){if(!e.saving.pending&&!vn(e)){var t=rn(e,"preview_link");t||(t=nn(e,"link"))&&(t=Object(Ft.addQueryArgs)(t,{preview:!0}));var n=nn(e,"featured_media");return t&&n?Object(Ft.addQueryArgs)(t,{_thumbnail_id:n}):t}}function kn(e){var t,n=zn(e);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 En(e){U()("`core/editor` getBlocksForSerialization selector",{plugin:"Gutenberg",alternative:"getEditorBlocks",hint:"Blocks serialization pre-processing occurs at save time"});var t=e.editor.present.blocks.value;return 1===t.length&&Object(l.isUnmodifiedDefaultBlock)(t[0])?[]:t}var wn=Object(h.createRegistrySelector)((function(e){return function(t){var n=Xt(t),r=Qt(t),o=e("core").getEditedEntityRecord("postType",r,n);if(o){if("function"==typeof o.content)return o.content(o);if(o.blocks)return ee(o.blocks);if(o.content)return o.content}return""}})),Sn=Object(Dt.a)((function(e,t){var n=e.reusableBlocks.data[t];if(!n)return null;var r=isNaN(parseInt(t));return Object(f.a)({},n,{id:r?t:+t,isTemporary:r})}),(function(e,t){return[e.reusableBlocks.data[t]]}));function Pn(e,t){return e.reusableBlocks.isSaving[t]||!1}function Cn(e,t){return!!e.reusableBlocks.isFetching[t]}var Tn=Object(Dt.a)((function(e){return Object(y.map)(e.reusableBlocks.data,(function(t,n){return Sn(e,n)}))}),(function(e){return[e.reusableBlocks.data]}));function xn(e,t){var n=Object(y.find)(e.optimist,(function(e){return e.beforeState&&Object(y.get)(e.action,["optimist","id"])===t}));return n?n.beforeState:null}function Bn(e){if(!vn(e))return!1;if(!an(e))return!1;var t=xn(e,W);return!!t&&!an(null,t.currentPost)}function In(e){var t=nn(e,"permalink_template");return G.test(t)}function An(e){var t=Ln(e);if(!t)return null;var n=t.prefix,r=t.postName,o=t.suffix;return In(e)?n+r+o:n}function Ln(e){var t=nn(e,"permalink_template");if(!t)return null;var n=nn(e,"slug")||nn(e,"generated_slug"),r=t.split(G),o=Object(R.a)(r,2);return{prefix:o[0],postName:n,suffix:o[1]}}function Rn(e,t){var n=e.optimist;return!!n&&n.some((function(e){var n=e.beforeState;return n&&t(n)}))}function Nn(e){return e.postLock.isLocked}function Dn(e){return Object.keys(e.postSavingLock).length>0}function Un(e){return Object.keys(e.postAutosavingLock).length>0}function Fn(e){return e.postLock.isTakeover}function Mn(e){return e.postLock.user}function Vn(e){return e.postLock.activePostLock}function Hn(e){return Object(y.has)(Yt(e),["_links","wp:action-unfiltered-html"])}function Wn(e){return e.preferences.hasOwnProperty("isPublishSidebarEnabled")?e.preferences.isPublishSidebarEnabled:_.isPublishSidebarEnabled}function zn(e){return nn(e,"blocks")||Vt}function Kn(e){return e.isReady}function Gn(e){return e.editorSettings}function qn(e){return Object(h.createRegistrySelector)((function(t){return function(n){var r;U()("`wp.data.select( 'core/editor' )."+e+"`",{alternative:"`wp.data.select( 'core/block-editor' )."+e+"`"});for(var 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?to:t,r=e.getInserterItems,o=void 0===r?no:r,i=e.getSelectedBlockName,c=void 0===i?ro:i;return{name:"blocks",className:"editor-autocompleters__block",triggerPrefix:"/",options:function(){oo();var e=c();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(N.a)(r),[t])},getOptionLabel:function(e){var t=e.icon,n=e.title;return[Object(eo.createElement)(u.BlockIcon,{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(l.createBlock)(t,n)}},isOptionDisabled:function(e){return e.isDisabled}}}(),co={name:"users",className:"editor-autocompleters__user",triggerPrefix:"@",options:function(e){var t="";return e&&(t="?search="+encodeURIComponent(e)),A()({path:"/wp/v2/users"+t})},isDebounced:!0,getOptionKeywords:function(e){return[e.slug,e.name]},getOptionLabel:function(e){return[Object(eo.createElement)("img",{key:"avatar",className:"editor-autocompleters__user-avatar",alt:"",src:e.avatar_urls[24]}),Object(eo.createElement)("span",{key:"name",className:"editor-autocompleters__user-name"},e.name),Object(eo.createElement)("span",{key:"slug",className:"editor-autocompleters__user-slug"},e.slug)]},getOptionCompletion:function(e){return"@".concat(e.slug)}},ao=n(12),so=n(11),uo=n(13),lo=n(14),po=n(15),bo=n(8),fo=function(e){function t(){return Object(ao.a)(this,t),Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))}return Object(po.a)(t,e),Object(so.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,n=this.props,r=n.interval,o=n.shouldThrottle,i=void 0!==o&&o;!i&&this.pendingSave&&(clearTimeout(this.pendingSave),delete this.pendingSave),!e||i&&this.pendingSave||(this.pendingSave=setTimeout((function(){t.props.autosave(),delete t.pendingSave}),1e3*r))}},{key:"render",value:function(){return null}}]),t}(eo.Component),ho=Object(bo.compose)([Object(h.withSelect)((function(e,t){var n=e("core").getReferenceByDistinctEdits,r=e("core/editor"),o=r.isEditedPostDirty,i=r.isEditedPostAutosaveable,c=r.isAutosavingPost,a=r.getEditorSettings,s=t.interval,u=void 0===s?a().autosaveInterval:s;return{isDirty:o(),isAutosaveable:i(),editsReference:n(),isAutosaving:c(),interval:u}})),Object(h.withDispatch)((function(e,t){return{autosave:function(){var n=t.autosave,r=void 0===n?e("core/editor").autosave:n;r()}}}))])(fo),mo=n(16),vo=n.n(mo),Oo=function(e){var t=e.children,n=e.isValid,r=e.level,o=e.path,i=void 0===o?[]:o,c=e.href,a=e.onSelect;return Object(eo.createElement)("li",{className:vo()("document-outline__item","is-".concat(r.toLowerCase()),{"is-invalid":!n})},Object(eo.createElement)("a",{href:c,className:"document-outline__button",onClick:a},Object(eo.createElement)("span",{className:"document-outline__emdash","aria-hidden":"true"}),i.map((function(e,t){var n=e.clientId;return Object(eo.createElement)("strong",{key:t,className:"document-outline__level"},Object(eo.createElement)(u.BlockTitle,{clientId:n}))})),Object(eo.createElement)("strong",{className:"document-outline__level"},r),Object(eo.createElement)("span",{className:"document-outline__item-content"},t)))},go=Object(eo.createElement)("em",null,Object(L.__)("(Empty heading)")),jo=[Object(eo.createElement)("br",{key:"incorrect-break"}),Object(eo.createElement)("em",{key:"incorrect-message"},Object(L.__)("(Incorrect heading level)"))],yo=[Object(eo.createElement)("br",{key:"incorrect-break-h1"}),Object(eo.createElement)("em",{key:"incorrect-message-h1"},Object(L.__)("(Your theme may already use a H1 for the post title)"))],_o=[Object(eo.createElement)("br",{key:"incorrect-break-multiple-h1"}),Object(eo.createElement)("em",{key:"incorrect-message-multiple-h1"},Object(L.__)("(Multiple H1 headings are not recommended)"))],ko=function(e){return!e.attributes.content||0===e.attributes.content.length},Eo=Object(bo.compose)(Object(h.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(y.get)(r,["supports","title"],!1)}})))((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(y.flatMap)(t,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"core/heading"===t.name?Object(f.a)({},t,{path:n,level:t.attributes.level,isEmpty:ko(t)}):e(t.innerBlocks,[].concat(Object(N.a)(n),[t]))}))}(n);if(a.length<1)return null;var s=1,u=document.querySelector(".editor-post-title__input"),l=i&&r&&u,d=Object(y.countBy)(a,"level")[1]>1;return Object(eo.createElement)("div",{className:"document-outline"},Object(eo.createElement)("ul",null,l&&Object(eo.createElement)(Oo,{level:Object(L.__)("Title"),isValid:!0,onSelect:o,href:"#".concat(u.id),isDisabled:c},r),a.map((function(e,t){var n=e.level>s+1,r=!(e.isEmpty||n||!e.level||1===e.level&&(d||l));return s=e.level,Object(eo.createElement)(Oo,{key:t,level:"H".concat(e.level),isValid:r,path:e.path,isDisabled:c,href:"#block-".concat(e.clientId),onSelect:o},e.isEmpty?go:Object(p.getTextContent)(Object(p.create)({html:e.attributes.content})),n&&jo,1===e.level&&d&&_o,l&&1===e.level&&!d&&yo)}))))}));var wo=Object(h.withSelect)((function(e){return{blocks:e("core/block-editor").getBlocks()}}))((function(e){var t=e.blocks,n=e.children;return Object(y.filter)(t,(function(e){return"core/heading"===e.name})).length<1?null:n})),So=n(5),Po=n(3),Co=n(19);var To=Object(bo.compose)([Object(h.withSelect)((function(e){return{isDirty:(0,e("core/editor").isEditedPostDirty)()}})),Object(h.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(eo.createElement)(Po.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(v.a)({},Co.rawShortcut.primary("s"),(function(e){e.preventDefault(),t()}))})})),xo=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).undoOrRedo=e.undoOrRedo.bind(Object(So.a)(e)),e}return Object(po.a)(t,e),Object(so.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(eo.createElement)(eo.Fragment,null,Object(eo.createElement)(u.BlockEditorKeyboardShortcuts,null),Object(eo.createElement)(Po.KeyboardShortcuts,{shortcuts:(e={},Object(v.a)(e,Co.rawShortcut.primary("z"),this.undoOrRedo),Object(v.a)(e,Co.rawShortcut.primaryShift("z"),this.undoOrRedo),e)}),Object(eo.createElement)(To,null))}}]),t}(eo.Component),Bo=Object(h.withDispatch)((function(e){var t=e("core/editor");return{onRedo:t.redo,onUndo:t.undo}}))(xo),Io=Bo;function Ao(){return U()("EditorGlobalKeyboardShortcuts",{alternative:"VisualEditorGlobalKeyboardShortcuts",plugin:"Gutenberg"}),Object(eo.createElement)(Bo,null)}function Lo(){return Object(eo.createElement)(To,null)}var Ro=Object(bo.compose)([Object(h.withSelect)((function(e){return{hasRedo:e("core/editor").hasEditorRedo()}})),Object(h.withDispatch)((function(e){return{redo:e("core/editor").redo}}))])((function(e){var t=e.hasRedo,n=e.redo;return Object(eo.createElement)(Po.IconButton,{icon:"redo",label:Object(L.__)("Redo"),shortcut:Co.displayShortcut.primaryShift("z"),"aria-disabled":!t,onClick:t?n:void 0,className:"editor-history__redo"})}));var No=Object(bo.compose)([Object(h.withSelect)((function(e){return{hasUndo:e("core/editor").hasEditorUndo()}})),Object(h.withDispatch)((function(e){return{undo:e("core/editor").undo}}))])((function(e){var t=e.hasUndo,n=e.undo;return Object(eo.createElement)(Po.IconButton,{icon:"undo",label:Object(L.__)("Undo"),shortcut:Co.displayShortcut.primary("z"),"aria-disabled":!t,onClick:t?n:void 0,className:"editor-history__undo"})})),Do=n(21);var Uo=Object(bo.compose)([Object(h.withSelect)((function(e){return{isValid:e("core/block-editor").isValidTemplate()}})),Object(h.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(Do.a)(e,["isValid"]);return t?null:Object(eo.createElement)(Po.Notice,{className:"editor-template-validation-notice",isDismissible:!1,status:"warning"},Object(eo.createElement)("p",null,Object(L.__)("The content of your post doesn’t match the template assigned to your post type.")),Object(eo.createElement)("div",null,Object(eo.createElement)(Po.Button,{isDefault:!0,onClick:n.resetTemplateValidity},Object(L.__)("Keep it as is")),Object(eo.createElement)(Po.Button,{onClick:function(){window.confirm(Object(L.__)("Resetting the template may result in loss of content, do you want to continue?"))&&n.synchronizeTemplate()},isPrimary:!0},Object(L.__)("Reset the template"))))}));var Fo=Object(bo.compose)([Object(h.withSelect)((function(e){return{notices:e("core/notices").getNotices()}})),Object(h.withDispatch)((function(e){return{onRemove:e("core/notices").removeNotice}}))])((function(e){var t=e.notices,n=e.onRemove,r=Object(y.filter)(t,{isDismissible:!0,type:"default"}),o=Object(y.filter)(t,{isDismissible:!1,type:"default"}),i=Object(y.filter)(t,{type:"snackbar"});return Object(eo.createElement)(eo.Fragment,null,Object(eo.createElement)(Po.NoticeList,{notices:o,className:"components-editor-notices__pinned"}),Object(eo.createElement)(Po.NoticeList,{notices:r,className:"components-editor-notices__dismissible",onRemove:n},Object(eo.createElement)(Uo,null)),Object(eo.createElement)(Po.SnackbarList,{notices:i,className:"components-editor-notices__snackbar",onRemove:n}))})),Mo=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).reboot=e.reboot.bind(Object(So.a)(e)),e.getContent=e.getContent.bind(Object(So.a)(e)),e.state={error:null},e}return Object(po.a)(t,e),Object(so.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(h.select)("core/editor").getEditedPostContent()}catch(e){}}},{key:"render",value:function(){var e=this.state.error;return e?Object(eo.createElement)(u.Warning,{className:"editor-error-boundary",actions:[Object(eo.createElement)(Po.Button,{key:"recovery",onClick:this.reboot,isLarge:!0},Object(L.__)("Attempt Recovery")),Object(eo.createElement)(Po.ClipboardButton,{key:"copy-post",text:this.getContent,isLarge:!0},Object(L.__)("Copy Post Text")),Object(eo.createElement)(Po.ClipboardButton,{key:"copy-error",text:e.stack,isLarge:!0},Object(L.__)("Copy Error"))]},Object(L.__)("The editor has encountered an unexpected error.")):this.props.children}}]),t}(eo.Component),Vo=window.requestIdleCallback?window.requestIdleCallback:window.requestAnimationFrame,Ho=Object(y.once)((function(){try{return window.sessionStorage.setItem("__wpEditorTestSessionStorage",""),window.sessionStorage.removeItem("__wpEditorTestSessionStorage"),!0}catch(e){return!1}}));function Wo(){var e=Object(h.useSelect)((function(e){var t=e("core/editor").getCurrentPostId(),n=e("core/editor").getCurrentPostType(),r=e("core").getCurrentUser();return{postId:t,getEditedPostAttribute:e("core/editor").getEditedPostAttribute,remoteAutosave:e("core").getAutosave(n,t,r.id),hasFetchedAutosave:e("core").hasFetchedAutosaves(n,t)&&r.id}})),t=e.postId,n=e.getEditedPostAttribute,r=e.remoteAutosave,o=e.hasFetchedAutosave,i=Object(h.useDispatch)("core/notices"),c=i.createWarningNotice,a=i.removeNotice,s=Object(h.useDispatch)("core/editor"),u=s.editPost,d=s.resetEditorBlocks;Object(eo.useEffect)((function(){if(o){var e=function(e){return window.sessionStorage.getItem(te(e))}(t);if(e){try{e=JSON.parse(e)}catch(e){return}var i=e,s={title:i.post_title,content:i.content,excerpt:i.excerpt};if(Object.keys(s).some((function(e){return s[e]!==n(e)}))){if(!r){var p=Object(y.uniqueId)("wpEditorAutosaveRestore");c(Object(L.__)("The backup of this post in your browser is different from the version below."),{id:p,actions:[{label:Object(L.__)("Restore the backup"),onClick:function(){u(Object(y.omit)(s,["content"])),d(Object(l.parse)(s.content)),a(p)}}]})}}else ne(t)}}}),[t,o])}var zo=Object(bo.ifCondition)(Ho)((function(){var e,t,n,r,o,i,c,a=Object(h.useDispatch)("core/editor").__experimentalLocalAutosave,s=Object(eo.useCallback)((function(){Vo(a)}),[]);Wo(),e=Object(h.useSelect)((function(e){return{postId:e("core/editor").getCurrentPostId(),postType:e("core/editor").getCurrentPostType(),isDirty:e("core/editor").isEditedPostDirty(),isAutosaving:e("core/editor").isAutosavingPost(),didError:e("core/editor").didPostSaveRequestFail()}})),t=e.postId,n=e.isDirty,r=e.isAutosaving,o=e.didError,i=Object(eo.useRef)(n),c=Object(eo.useRef)(r),Object(eo.useEffect)((function(){!o&&(c.current&&!r||i.current&&!n)&&ne(t),i.current=n,c.current=r}),[n,r,o]);var u=Object(h.useSelect)((function(e){return{localAutosaveInterval:e("core/editor").getEditorSettings().__experimentalLocalAutosaveInterval}})).localAutosaveInterval;return Object(eo.createElement)(ho,{interval:u,autosave:s,shouldThrottle:!0})}));var Ko=Object(h.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(y.get)(n,["supports","page-attributes"],!1)&&Object(y.isEmpty)(t)?null:r}));var Go=Object(h.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(y.some)(Object(y.castArray)(r),(function(e){return!!t.supports[e]}))),o?n:null})),qo=Object(bo.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(eo.createElement)(Po.TextControl,{className:"editor-page-attributes__order",type:"number",label:Object(L.__)("Order"),value:c,onChange:function(e){i({orderInput:e});var n=Number(e);Number.isInteger(n)&&""!==Object(y.invoke)(e,["trim"])&&t(Number(e))},size:6,onBlur:function(){i({orderInput:null})}})}));var Yo=Object(bo.compose)([Object(h.withSelect)((function(e){return{order:e("core/editor").getEditedPostAttribute("menu_order")}})),Object(h.withDispatch)((function(e){return{onUpdateOrder:function(t){e("core/editor").editPost({menu_order:t})}}}))])((function(e){return Object(eo.createElement)(Go,{supportKeys:"page-attributes"},Object(eo.createElement)(qo,e))}));function Qo(e){var t=e.map((function(e){return Object(f.a)({children:[],parent:null},e)})),n=Object(y.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(f.a)({},t,{children:r&&r.length?e(r):[]})}))}(n[0]||[])}var Xo=Object(h.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),u=i(),l=Object(y.get)(s,["hierarchical"],!1),d={per_page:-1,exclude:u,parent_exclude:u,orderby:"menu_order",order:"asc"};return{parent:c("parent"),items:l?r("postType",a,d):[],postType:s}})),$o=Object(h.withDispatch)((function(e){var t=e("core/editor").editPost;return{onUpdateParent:function(e){t({parent:e||0})}}})),Zo=Object(bo.compose)([Xo,$o])((function(e){var t=e.parent,n=e.postType,r=e.items,o=e.onUpdateParent,i=Object(y.get)(n,["hierarchical"],!1),c=Object(y.get)(n,["labels","parent_item_colon"]),a=r||[];if(!i||!c||!a.length)return null;var s=Qo(a.map((function(e){return{id:e.id,parent:e.parent,name:e.title.raw?e.title.raw:"#".concat(e.id," (").concat(Object(L.__)("no title"),")")}})));return Object(eo.createElement)(Po.TreeSelect,{className:"editor-page-attributes__parent",label:c,noOptionLabel:"(".concat(Object(L.__)("no parent"),")"),tree:s,selectedId:t,onChange:o})}));var Jo=Object(bo.compose)(Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=(0,t.getEditorSettings)().availableTemplates;return{selectedTemplate:n("template"),availableTemplates:r}})),Object(h.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(y.isEmpty)(t)?null:Object(eo.createElement)(Po.SelectControl,{label:Object(L.__)("Template:"),value:n,onChange:r,className:"editor-page-attributes__template",options:Object(y.map)(t,(function(e,t){return{value:t,label:e}}))})})),ei=n(52);var ti=Object(bo.compose)([Object(h.withSelect)((function(e){var t=e("core/editor").getCurrentPost();return{hasAssignAuthorAction:Object(y.get)(t,["_links","wp:action-assign-author"],!1),postType:e("core/editor").getCurrentPostType(),authors:e("core").getAuthors()}})),bo.withInstanceId])((function(e){var t=e.hasAssignAuthorAction,n=e.authors,r=e.children;return!t||n.length<2?null:Object(eo.createElement)(Go,{supportKeys:"author"},r)})),ni=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).setAuthorId=e.setAuthorId.bind(Object(So.a)(e)),e}return Object(po.a)(t,e),Object(so.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(eo.createElement)(ti,null,Object(eo.createElement)("label",{htmlFor:o},Object(L.__)("Author")),Object(eo.createElement)("select",{id:o,value:t,onChange:this.setAuthorId,className:"editor-post-author__select"},r.map((function(e){return Object(eo.createElement)("option",{key:e.id,value:e.id},Object(ei.decodeEntities)(e.name))}))))}}]),t}(eo.Component),ri=Object(bo.compose)([Object(h.withSelect)((function(e){return{postAuthor:e("core/editor").getEditedPostAttribute("author"),authors:e("core").getAuthors()}})),Object(h.withDispatch)((function(e){return{onUpdateAuthor:function(t){e("core/editor").editPost({author:t})}}})),bo.withInstanceId])(ni);var oi=Object(bo.compose)([Object(h.withSelect)((function(e){return{commentStatus:e("core/editor").getEditedPostAttribute("comment_status")}})),Object(h.withDispatch)((function(e){return{editPost:e("core/editor").editPost}}))])((function(e){var t=e.commentStatus,n=void 0===t?"open":t,r=Object(Do.a)(e,["commentStatus"]);return Object(eo.createElement)(Po.CheckboxControl,{label:Object(L.__)("Allow Comments"),checked:"open"===n,onChange:function(){return r.editPost({comment_status:"open"===n?"closed":"open"})}})}));var ii=Object(bo.compose)([Object(h.withSelect)((function(e){return{excerpt:e("core/editor").getEditedPostAttribute("excerpt")}})),Object(h.withDispatch)((function(e){return{onUpdateExcerpt:function(t){e("core/editor").editPost({excerpt:t})}}}))])((function(e){var t=e.excerpt,n=e.onUpdateExcerpt;return Object(eo.createElement)("div",{className:"editor-post-excerpt"},Object(eo.createElement)(Po.TextareaControl,{label:Object(L.__)("Write an excerpt (optional)"),className:"editor-post-excerpt__textarea",onChange:function(e){return n(e)},value:t}),Object(eo.createElement)(Po.ExternalLink,{href:Object(L.__)("https://codex.wordpress.org/Excerpt")},Object(L.__)("Learn more about manual excerpts")))})),ci=n(18);var ai=function(e){return Object(eo.createElement)(Go,Object(ci.a)({},e,{supportKeys:"excerpt"}))};var si=Object(h.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(y.some)(Object(y.castArray)(o),(function(e){var n=Object(y.get)(t,[e],!1);return"post-thumbnails"===e&&Object(y.isArray)(n)?Object(y.includes)(n,r):n}))?n:null}));var ui=function(e){return Object(eo.createElement)(si,{supportKeys:"post-thumbnails"},Object(eo.createElement)(Go,Object(ci.a)({},e,{supportKeys:"thumbnail"})))},li=["image"],di=Object(L.__)("Featured Image"),pi=Object(L.__)("Set Featured Image"),bi=Object(L.__)("Remove Image");var fi=Object(h.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}})),hi=Object(h.withDispatch)((function(e){var t=e("core/editor").editPost;return{onUpdateImage:function(e){t({featured_media:e.id})},onRemoveImage:function(){t({featured_media:0})}}})),mi=Object(bo.compose)(fi,hi,Object(Po.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,d=Object(y.get)(l,["labels"],{}),p=Object(eo.createElement)("p",null,Object(L.__)("To edit the featured image, you need permission to upload media."));if(s){var b=Object(Jr.applyFilters)("editor.PostFeaturedImage.imageSize","post-thumbnail",s.id,o);Object(y.has)(s,["media_details","sizes",b])?(t=s.media_details.sizes[b].width,n=s.media_details.sizes[b].height,r=s.media_details.sizes[b].source_url):(t=s.media_details.width,n=s.media_details.height,r=s.source_url)}return Object(eo.createElement)(ui,null,Object(eo.createElement)("div",{className:"editor-post-featured-image"},Object(eo.createElement)(u.MediaUploadCheck,{fallback:p},Object(eo.createElement)(u.MediaUpload,{title:d.featured_image||di,onSelect:c,unstableFeaturedImageFlow:!0,allowedTypes:li,modalClass:"editor-post-featured-image__media-modal",render:function(e){var o=e.open;return Object(eo.createElement)(Po.Button,{className:i?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:o,"aria-label":i?Object(L.__)("Edit or update the image"):null},!!i&&s&&Object(eo.createElement)(Po.ResponsiveWrapper,{naturalWidth:t,naturalHeight:n,isInline:!0},Object(eo.createElement)("img",{src:r,alt:""})),!!i&&!s&&Object(eo.createElement)(Po.Spinner,null),!i&&(d.set_featured_image||pi))},value:i})),!!i&&s&&!s.isLoading&&Object(eo.createElement)(u.MediaUploadCheck,null,Object(eo.createElement)(u.MediaUpload,{title:d.featured_image||di,onSelect:c,unstableFeaturedImageFlow:!0,allowedTypes:li,modalClass:"editor-post-featured-image__media-modal",render:function(e){var t=e.open;return Object(eo.createElement)(Po.Button,{onClick:t,isDefault:!0,isLarge:!0},Object(L.__)("Replace Image"))}})),!!i&&Object(eo.createElement)(u.MediaUploadCheck,null,Object(eo.createElement)(Po.Button,{onClick:a,isLink:!0,isDestructive:!0},d.remove_featured_image||bi))))}));var vi=Object(h.withSelect)((function(e){return{disablePostFormats:e("core/editor").getEditorSettings().disablePostFormats}}))((function(e){var t=e.disablePostFormats,n=Object(Do.a)(e,["disablePostFormats"]);return!t&&Object(eo.createElement)(Go,Object(ci.a)({},n,{supportKeys:"post-formats"}))})),Oi=[{id:"aside",caption:Object(L.__)("Aside")},{id:"gallery",caption:Object(L.__)("Gallery")},{id:"link",caption:Object(L.__)("Link")},{id:"image",caption:Object(L.__)("Image")},{id:"quote",caption:Object(L.__)("Quote")},{id:"standard",caption:Object(L.__)("Standard")},{id:"status",caption:Object(L.__)("Status")},{id:"video",caption:Object(L.__)("Video")},{id:"audio",caption:Object(L.__)("Audio")},{id:"chat",caption:Object(L.__)("Chat")}];var gi=Object(bo.compose)([Object(h.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(y.union)([o],Object(y.get)(i,["formats"],[])),suggestedFormat:r()}})),Object(h.withDispatch)((function(e){return{onUpdatePostFormat:function(t){e("core/editor").editPost({format:t})}}})),bo.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=Oi.filter((function(e){return Object(y.includes)(o,e.id)})),s=Object(y.find)(a,(function(e){return e.id===i}));return Object(eo.createElement)(vi,null,Object(eo.createElement)("div",{className:"editor-post-format"},Object(eo.createElement)("div",{className:"editor-post-format__content"},Object(eo.createElement)("label",{htmlFor:c},Object(L.__)("Post Format")),Object(eo.createElement)(Po.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(eo.createElement)("div",{className:"editor-post-format__suggestion"},Object(L.__)("Suggestion:")," ",Object(eo.createElement)(Po.Button,{isLink:!0,onClick:function(){return t(s.id)}},s.caption))))}));var ji=Object(h.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(eo.createElement)(Go,{supportKeys:"revisions"},r)}));function yi(e,t){return Object(Ft.addQueryArgs)(e,t)}function _i(e){return e?Object(y.toLower)(Object(y.deburr)(Object(y.trim)(e.replace(/[\s\./_]+/g,"-"),"-"))):""}var ki=Object(h.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(eo.createElement)(ji,null,Object(eo.createElement)(Po.IconButton,{href:yi("revision.php",{revision:t,gutenberg:!0}),className:"editor-post-last-revision__title",icon:"backup"},Object(L.sprintf)(Object(L._n)("%d Revision","%d Revisions",n),n)))}));var Ei=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).openPreviewWindow=e.openPreviewWindow.bind(Object(So.a)(e)),e}return Object(po.a)(t,e),Object(so.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(eo.renderToString)(Object(eo.createElement)("div",{className:"editor-post-preview-button__interstitial-message"},Object(eo.createElement)(Po.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 96 96"},Object(eo.createElement)(Po.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(eo.createElement)(Po.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(eo.createElement)("p",null,Object(L.__)("Generating preview…")))),n+='\n\t\t\n\t',n=Object(Jr.applyFilters)("editor.PostPreview.interstitialMarkup",n),t.write(n),t.title=Object(L.__)("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(eo.createElement)(Po.Button,{isLarge:!0,className:"editor-post-preview",href:o,target:this.getWindowTarget(),disabled:!r,onClick:this.openPreviewWindow},Object(L._x)("Preview","imperative verb"),Object(eo.createElement)("span",{className:"screen-reader-text"},Object(L.__)("(opens in a new tab)")),Object(eo.createElement)(d.DotTip,{tipId:"core/editor.preview"},Object(L.__)("Click “Preview” to load a preview of this page, so you can make sure you’re happy with your blocks.")))}}]),t}(eo.Component),wi=Object(bo.compose)([Object(h.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,u=o.isEditedPostAutosaveable,l=o.getEditedPostPreviewLink,d=e("core").getPostType,p=l(),b=d(a("type"));return{postId:i(),currentPostLink:c("link"),previewLink:void 0!==n?n:p,isSaveable:s(),isAutosaveable:r||u(),isViewable:Object(y.get)(b,["viewable"],!1),isDraft:-1!==["draft","auto-draft"].indexOf(a("status"))}})),Object(h.withDispatch)((function(e){return{autosave:e("core/editor").autosave,savePost:e("core/editor").savePost}})),Object(bo.ifCondition)((function(e){return e.isViewable}))])(Ei),Si=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).sendPostLock=e.sendPostLock.bind(Object(So.a)(e)),e.receivePostLock=e.receivePostLock.bind(Object(So.a)(e)),e.releasePostLock=e.releasePostLock.bind(Object(So.a)(e)),e}return Object(po.a)(t,e),Object(so.a)(t,[{key:"componentDidMount",value:function(){var e=this.getHookName();Object(Jr.addAction)("heartbeat.send",e,this.sendPostLock),Object(Jr.addAction)("heartbeat.tick",e,this.receivePostLock)}},{key:"componentWillUnmount",value:function(){var e=this.getHookName();Object(Jr.removeAction)("heartbeat.send",e),Object(Jr.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;if(i.append("action","wp-remove-post-lock"),i.append("_wpnonce",r.unlockNonce),i.append("post_ID",o),i.append("active_post_lock",n),window.navigator.sendBeacon)window.navigator.sendBeacon(r.ajaxUrl,i);else{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,u=Object(Ft.addQueryArgs)("post.php",{"get-post-lock":"1",lockKey:!0,post:n,action:"edit",_wpnonce:i.nonce}),l=yi("edit.php",{post_type:Object(y.get)(c,["slug"])}),d=Object(L.__)("Exit the Editor");return Object(eo.createElement)(Po.Modal,{title:o?Object(L.__)("Someone else has taken over this post."):Object(L.__)("This post is already being edited."),focusOnMount:!0,shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,isDismissable:!1,className:"editor-post-locked-modal"},!!s&&Object(eo.createElement)("img",{src:s,alt:Object(L.__)("Avatar"),className:"editor-post-locked-modal__avatar"}),!!o&&Object(eo.createElement)("div",null,Object(eo.createElement)("div",null,a?Object(L.sprintf)(Object(L.__)("%s now has editing control of this post. Don’t worry, your changes up to this moment have been saved."),a):Object(L.__)("Another user now has editing control of this post. Don’t worry, your changes up to this moment have been saved.")),Object(eo.createElement)("div",{className:"editor-post-locked-modal__buttons"},Object(eo.createElement)(Po.Button,{isPrimary:!0,isLarge:!0,href:l},d))),!o&&Object(eo.createElement)("div",null,Object(eo.createElement)("div",null,a?Object(L.sprintf)(Object(L.__)("%s is currently working on this post, which means you cannot make changes, unless you take over."),a):Object(L.__)("Another user is currently working on this post, which means you cannot make changes, unless you take over.")),Object(eo.createElement)("div",{className:"editor-post-locked-modal__buttons"},Object(eo.createElement)(Po.Button,{isDefault:!0,isLarge:!0,href:l},d),Object(eo.createElement)(wi,null),Object(eo.createElement)(Po.Button,{isPrimary:!0,isLarge:!0,href:u},Object(L.__)("Take Over")))))}}]),t}(eo.Component),Pi=Object(bo.compose)(Object(h.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,u=e("core").getPostType;return{isLocked:n(),isTakeover:r(),user:o(),postId:i(),postLockUtils:s().postLockUtils,activePostLock:c(),postType:u(a("type"))}})),Object(h.withDispatch)((function(e){var t=e("core/editor");return{autosave:t.autosave,updatePostLock:t.updatePostLock}})),bo.withInstanceId,Object(bo.withGlobalEvents)({beforeunload:"releasePostLock"}))(Si);var Ci=Object(bo.compose)(Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.isCurrentPostPublished,r=t.getCurrentPostType,o=t.getCurrentPost;return{hasPublishAction:Object(y.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 Ti=Object(bo.compose)(Object(h.withSelect)((function(e){return{status:e("core/editor").getEditedPostAttribute("status")}})),Object(h.withDispatch)((function(e){return{onUpdateStatus:function(t){e("core/editor").editPost({status:t})}}})))((function(e){var t=e.status,n=e.onUpdateStatus;return Object(eo.createElement)(Ci,null,Object(eo.createElement)(Po.CheckboxControl,{label:Object(L.__)("Pending Review"),checked:"pending"===t,onChange:function(){n("pending"===t?"draft":"pending")}}))}));var xi=Object(bo.compose)([Object(h.withSelect)((function(e){return{pingStatus:e("core/editor").getEditedPostAttribute("ping_status")}})),Object(h.withDispatch)((function(e){return{editPost:e("core/editor").editPost}}))])((function(e){var t=e.pingStatus,n=void 0===t?"open":t,r=Object(Do.a)(e,["pingStatus"]);return Object(eo.createElement)(Po.CheckboxControl,{label:Object(L.__)("Allow Pingbacks & Trackbacks"),checked:"open"===n,onChange:function(){return r.editPost({ping_status:"open"===n?"closed":"open"})}})}));var Bi=Object(bo.compose)([Object(h.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,u=r.getCurrentPostType,l=r.isAutosavingPost;return{isPublished:o(),isBeingScheduled:i(),isSaving:n||c(),isPublishing:a(),hasPublishAction:Object(y.get)(s(),["_links","wp:action-publish"],!1),postType:u(),isAutosaving:l()}}))])((function(e){var t=e.isPublished,n=e.isBeingScheduled,r=e.isSaving,o=e.isPublishing,i=e.hasPublishAction,c=e.isAutosaving;return o?Object(L.__)("Publishing…"):t&&r&&!c?Object(L.__)("Updating…"):n&&r&&!c?Object(L.__)("Scheduling…"):i?t?Object(L.__)("Update"):n?Object(L.__)("Schedule"):Object(L.__)("Publish"):Object(L.__)("Submit for Review")})),Ii=function(e){function t(e){var n;return Object(ao.a)(this,t),(n=Object(uo.a)(this,Object(lo.a)(t).call(this,e))).buttonNode=Object(eo.createRef)(),n}return Object(po.a)(t,e),Object(so.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,a=t.isPostSavingLocked,s=t.isPublishable,u=t.isPublished,l=t.isSaveable,p=t.isSaving,b=t.isToggle,f=t.onSave,h=t.onStatusChange,m=t.onSubmit,v=void 0===m?y.noop:m,O=t.onToggle,g=t.visibility,j=p||r||!l||a||!s&&!n,_=u||p||r||!l||!s&&!n;e=o?i?"future":"private"===g?"private":"publish":"pending";var k={"aria-disabled":j,className:"editor-post-publish-button",isBusy:p&&u,isPrimary:!0,onClick:function(){j||(v(),h(e),f())}},E={"aria-disabled":_,"aria-expanded":c,className:"editor-post-publish-panel__toggle",isBusy:p&&u,isPrimary:!0,onClick:function(){_||O()}},w=i?Object(L.__)("Schedule…"):Object(L.__)("Publish…"),S=Object(eo.createElement)(Bi,{forceIsSaving:r}),P=b?E:k,C=b?w:S;return Object(eo.createElement)("div",null,Object(eo.createElement)(Po.Button,Object(ci.a)({ref:this.buttonNode},P),C),Object(eo.createElement)(d.DotTip,{tipId:"core/editor.publish"},Object(L.__)("Finished writing? That’s great, let’s get this published right now. Just click “Publish” and you’re good to go.")))}}]),t}(eo.Component),Ai=Object(bo.compose)([Object(h.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,u=t.getCurrentPost,l=t.getCurrentPostType;return{isSaving:n(),isBeingScheduled:r(),visibility:o(),isSaveable:c(),isPostSavingLocked:s(),isPublishable:a(),isPublished:i(),hasPublishAction:Object(y.get)(u(),["_links","wp:action-publish"],!1),postType:l()}})),Object(h.withDispatch)((function(e){var t=e("core/editor"),n=t.editPost;return{onStatusChange:function(e){return n({status:e},{undoIgnore:!0})},onSave:t.savePost}}))])(Ii),Li=[{value:"public",label:Object(L.__)("Public"),info:Object(L.__)("Visible to everyone.")},{value:"private",label:Object(L.__)("Private"),info:Object(L.__)("Only visible to site admins and editors.")},{value:"password",label:Object(L.__)("Password Protected"),info:Object(L.__)("Protected with a password you choose. Only those with the password can view this post.")}],Ri=function(e){function t(e){var n;return Object(ao.a)(this,t),(n=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).setPublic=n.setPublic.bind(Object(So.a)(n)),n.setPrivate=n.setPrivate.bind(Object(So.a)(n)),n.setPasswordProtected=n.setPasswordProtected.bind(Object(So.a)(n)),n.updatePassword=n.updatePassword.bind(Object(So.a)(n)),n.state={hasPassword:!!e.password},n}return Object(po.a)(t,e),Object(so.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(L.__)("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(eo.createElement)("fieldset",{key:"visibility-selector",className:"editor-post-visibility__dialog-fieldset"},Object(eo.createElement)("legend",{className:"editor-post-visibility__dialog-legend"},Object(L.__)("Post Visibility")),Li.map((function(e){var t=e.value,n=e.label,i=e.info;return Object(eo.createElement)("div",{key:t,className:"editor-post-visibility__choice"},Object(eo.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(eo.createElement)("label",{htmlFor:"editor-post-".concat(t,"-").concat(r),className:"editor-post-visibility__dialog-label"},n),Object(eo.createElement)("p",{id:"editor-post-".concat(t,"-").concat(r,"-description"),className:"editor-post-visibility__dialog-info"},i))}))),this.state.hasPassword&&Object(eo.createElement)("div",{className:"editor-post-visibility__dialog-password",key:"password-selector"},Object(eo.createElement)("label",{htmlFor:"editor-post-visibility__dialog-password-input-".concat(r),className:"screen-reader-text"},Object(L.__)("Create password")),Object(eo.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(L.__)("Use a secure password")}))]}}]),t}(eo.Component),Ni=Object(bo.compose)([Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getEditedPostVisibility;return{status:n("status"),visibility:r(),password:n("password")}})),Object(h.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]:"";r({status:e,password:t})}}})),bo.withInstanceId])(Ri);var Di=Object(h.withSelect)((function(e){return{visibility:e("core/editor").getEditedPostVisibility()}}))((function(e){var t=e.visibility;return Object(y.find)(Li,{value:t}).label}));var Ui=Object(bo.compose)([Object(h.withSelect)((function(e){return{date:e("core/editor").getEditedPostAttribute("date")}})),Object(h.withDispatch)((function(e){return{onUpdateDate:function(t){e("core/editor").editPost({date:t})}}}))])((function(e){var t=e.date,n=e.onUpdateDate,r=Object(Ut.__experimentalGetSettings)(),o=/a(?!\\)/i.test(r.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join(""));return Object(eo.createElement)(Po.DateTimePicker,{key:"date-time-picker",currentDate:t,onChange:n,is12Hour:o})}));var Fi=Object(h.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(Ut.__experimentalGetSettings)();return t&&!n?Object(Ut.dateI18n)("".concat(r.formats.date," ").concat(r.formats.time),t):Object(L.__)("Immediately")})),Mi={per_page:-1,orderby:"count",order:"desc",_fields:"id,name"},Vi=function(e,t){return e.toLowerCase()===t.toLowerCase()},Hi=function(e){return Object(f.a)({},e,{name:Object(y.unescape)(e.name)})},Wi=function(e){return Object(y.map)(e,Hi)},zi=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).onChange=e.onChange.bind(Object(So.a)(e)),e.searchTerms=Object(y.throttle)(e.searchTerms.bind(Object(So.a)(e)),500),e.findOrCreateTerm=e.findOrCreateTerm.bind(Object(So.a)(e)),e.state={loading:!Object(y.isEmpty)(e.props.terms),availableTerms:[],selectedTerms:[]},e}return Object(po.a)(t,e),Object(so.a)(t,[{key:"componentDidMount",value:function(){var e=this;Object(y.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(y.invoke)(this.initRequest,["abort"]),Object(y.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(f.a)({},Mi,t),o=A()({path:Object(Ft.addQueryArgs)("/wp/v2/".concat(n.rest_base),r)});return o.then(Wi).then((function(t){e.setState((function(e){return{availableTerms:e.availableTerms.concat(t.filter((function(t){return!Object(y.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]:[],n=t.reduce((function(t,n){var r=Object(y.find)(e.state.availableTerms,(function(e){return e.id===n}));return r&&t.push(r.name),t}),[]);this.setState({selectedTerms:n})}},{key:"findOrCreateTerm",value:function(e){var t=this,n=this.props.taxonomy,r=Object(y.escape)(e);return A()({path:"/wp/v2/".concat(n.rest_base),method:"POST",data:{name:r}}).catch((function(o){return"term_exists"===o.code?(t.addRequest=A()({path:Object(Ft.addQueryArgs)("/wp/v2/".concat(n.rest_base),Object(f.a)({},Mi,{search:r}))}).then(Wi),t.addRequest.then((function(t){return Object(y.find)(t,(function(t){return Vi(t.name,e)}))}))):Promise.reject(o)})).then(Hi)}},{key:"onChange",value:function(e){var t=this,n=Object(y.uniqBy)(e,(function(e){return e.toLowerCase()}));this.setState({selectedTerms:n});var r=n.filter((function(e){return!Object(y.find)(t.state.availableTerms,(function(t){return Vi(t.name,e)}))})),o=function(e,t){return e.map((function(e){return Object(y.find)(t,(function(t){return Vi(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(y.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(y.get)(n,["labels","add_new_item"],"post_tag"===t?Object(L.__)("Add New Tag"):Object(L.__)("Add New Term")),u=Object(y.get)(n,["labels","singular_name"],"post_tag"===t?Object(L.__)("Tag"):Object(L.__)("Term")),l=Object(L.sprintf)(Object(L._x)("%s added","term"),u),d=Object(L.sprintf)(Object(L._x)("%s removed","term"),u),p=Object(L.sprintf)(Object(L._x)("Remove %s","term"),u);return Object(eo.createElement)(Po.FormTokenField,{value:c,suggestions:a,onChange:this.onChange,onInputChange:this.searchTerms,maxSuggestions:20,disabled:o,label:s,messages:{added:l,removed:d,remove:p}})}}]),t}(eo.Component),Ki=Object(bo.compose)(Object(h.withSelect)((function(e,t){var n=t.slug,r=e("core/editor").getCurrentPost,o=(0,e("core").getTaxonomy)(n);return{hasCreateAction:!!o&&Object(y.get)(r(),["_links","wp:action-create-"+o.rest_base],!1),hasAssignAction:!!o&&Object(y.get)(r(),["_links","wp:action-assign-"+o.rest_base],!1),terms:o?e("core/editor").getEditedPostAttribute(o.rest_base):[],taxonomy:o}})),Object(h.withDispatch)((function(e){return{onUpdateTerms:function(t,n){e("core/editor").editPost(Object(v.a)({},n,t))}}})),Object(Po.withFilters)("editor.PostTaxonomyType"))(zi),Gi=function(){var e=[Object(L.__)("Suggestion:"),Object(eo.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(L.__)("Add tags"))];return Object(eo.createElement)(Po.PanelBody,{initialOpen:!1,title:e},Object(eo.createElement)("p",null,Object(L.__)("Tags help users and search engines navigate your site and find your content. Add a few keywords to describe your post.")),Object(eo.createElement)(Ki,{slug:"post_tag"}))},qi=function(e){function t(e){var n;return Object(ao.a)(this,t),(n=Object(uo.a)(this,Object(lo.a)(t).call(this,e))).state={hadTagsWhenOpeningThePanel:e.hasTags},n}return Object(po.a)(t,e),Object(so.a)(t,[{key:"render",value:function(){return this.state.hadTagsWhenOpeningThePanel?null:Object(eo.createElement)(Gi,null)}}]),t}(eo.Component),Yi=Object(bo.compose)(Object(h.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(y.some)(n.types,(function(e){return e===t})),hasTags:r&&r.length}})),Object(bo.ifCondition)((function(e){var t=e.areTagsFetched;return e.isPostTypeSupported&&t})))(qi),Qi=function(e){var t=e.suggestedPostFormat,n=e.suggestionText,r=e.onUpdatePostFormat;return Object(eo.createElement)(Po.Button,{isLink:!0,onClick:function(){return r(t)}},n)},Xi=function(e,t){var n=Oi.filter((function(t){return Object(y.includes)(e,t.id)}));return Object(y.find)(n,(function(e){return e.id===t}))},$i=Object(bo.compose)(Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getSuggestedPostFormat,o=Object(y.get)(e("core").getThemeSupports(),["formats"],[]);return{currentPostFormat:n("format"),suggestion:Xi(o,r())}})),Object(h.withDispatch)((function(e){return{onUpdatePostFormat:function(t){e("core/editor").editPost({format:t})}}})),Object(bo.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(L.__)("Suggestion:"),Object(eo.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(L.__)("Use a post format"))];return Object(eo.createElement)(Po.PanelBody,{initialOpen:!1,title:r},Object(eo.createElement)("p",null,Object(L.__)("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(eo.createElement)("p",null,Object(eo.createElement)(Qi,{onUpdatePostFormat:n,suggestedPostFormat:t.id,suggestionText:Object(L.sprintf)(Object(L.__)('Apply the "%1$s" format.'),t.caption)})))}));var Zi=Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.isEditedPostBeingScheduled;return{hasPublishAction:Object(y.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(L.__)("Are you ready to schedule?"),n=Object(L.__)("Your work will be published at the specified date and time.")):(t=Object(L.__)("Are you ready to publish?"),n=Object(L.__)("Double-check your settings before publishing.")):(t=Object(L.__)("Are you ready to submit for review?"),n=Object(L.__)("When you’re ready, submit your work for review, and an Editor will be able to approve it for you.")),Object(eo.createElement)("div",{className:"editor-post-publish-panel__prepublish"},Object(eo.createElement)("div",null,Object(eo.createElement)("strong",null,t)),Object(eo.createElement)("p",null,n),r&&Object(eo.createElement)(eo.Fragment,null,Object(eo.createElement)(Po.PanelBody,{initialOpen:!1,title:[Object(L.__)("Visibility:"),Object(eo.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(eo.createElement)(Di,null))]},Object(eo.createElement)(Ni,null)),Object(eo.createElement)(Po.PanelBody,{initialOpen:!1,title:[Object(L.__)("Publish:"),Object(eo.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(eo.createElement)(Fi,null))]},Object(eo.createElement)(Ui,null))),Object(eo.createElement)($i,null),Object(eo.createElement)(Yi,null),i)})),Ji=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).state={showCopyConfirmation:!1},e.onCopy=e.onCopy.bind(Object(So.a)(e)),e.onSelectInput=e.onSelectInput.bind(Object(So.a)(e)),e.postLink=Object(eo.createRef)(),e}return Object(po.a)(t,e),Object(so.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(y.get)(o,["labels","singular_name"]),c=Object(y.get)(o,["labels","view_item"]),a=n?Object(eo.createElement)(eo.Fragment,null,Object(L.__)("is now scheduled. It will go live on")," ",Object(eo.createElement)(Fi,null),"."):Object(L.__)("is now live.");return Object(eo.createElement)("div",{className:"post-publish-panel__postpublish"},Object(eo.createElement)(Po.PanelBody,{className:"post-publish-panel__postpublish-header"},Object(eo.createElement)("a",{ref:this.postLink,href:r.link},r.title||Object(L.__)("(no title)"))," ",a),Object(eo.createElement)(Po.PanelBody,null,Object(eo.createElement)("p",{className:"post-publish-panel__postpublish-subheader"},Object(eo.createElement)("strong",null,Object(L.__)("What’s next?"))),Object(eo.createElement)(Po.TextControl,{className:"post-publish-panel__postpublish-post-address",readOnly:!0,label:Object(L.sprintf)(Object(L.__)("%s address"),i),value:Object(Ft.safeDecodeURIComponent)(r.link),onFocus:this.onSelectInput}),Object(eo.createElement)("div",{className:"post-publish-panel__postpublish-buttons"},!n&&Object(eo.createElement)(Po.Button,{isDefault:!0,href:r.link},c),Object(eo.createElement)(Po.ClipboardButton,{isDefault:!0,text:r.link,onCopy:this.onCopy},this.state.showCopyConfirmation?Object(L.__)("Copied!"):Object(L.__)("Copy Link")))),t)}}]),t}(eo.Component),ec=Object(h.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()}}))(Ji),tc=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).onSubmit=e.onSubmit.bind(Object(So.a)(e)),e}return Object(po.a)(t,e),Object(so.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,u=e.onTogglePublishSidebar,l=e.PostPublishExtension,d=e.PrePublishExtension,p=Object(Do.a)(e,["forceIsDirty","forceIsSaving","isBeingScheduled","isPublished","isPublishSidebarEnabled","isScheduled","isSaving","onClose","onTogglePublishSidebar","PostPublishExtension","PrePublishExtension"]),b=Object(y.omit)(p,["hasPublishAction","isDirty","isPostTypeViewable"]),f=o||c&&r,h=!f&&!a,m=f&&!a;return Object(eo.createElement)("div",Object(ci.a)({className:"editor-post-publish-panel"},b),Object(eo.createElement)("div",{className:"editor-post-publish-panel__header"},m?Object(eo.createElement)("div",{className:"editor-post-publish-panel__header-published"},c?Object(L.__)("Scheduled"):Object(L.__)("Published")):Object(eo.createElement)("div",{className:"editor-post-publish-panel__header-publish-button"},Object(eo.createElement)(Ai,{focusOnMount:!0,onSubmit:this.onSubmit,forceIsDirty:t,forceIsSaving:n}),Object(eo.createElement)("span",{className:"editor-post-publish-panel__spacer"})),Object(eo.createElement)(Po.IconButton,{"aria-expanded":!0,onClick:s,icon:"no-alt",label:Object(L.__)("Close panel")})),Object(eo.createElement)("div",{className:"editor-post-publish-panel__content"},h&&Object(eo.createElement)(Zi,null,d&&Object(eo.createElement)(d,null)),m&&Object(eo.createElement)(ec,{focusOnMount:!0},l&&Object(eo.createElement)(l,null)),a&&Object(eo.createElement)(Po.Spinner,null)),Object(eo.createElement)("div",{className:"editor-post-publish-panel__footer"},Object(eo.createElement)(Po.CheckboxControl,{label:Object(L.__)("Always show pre-publish checks."),checked:i,onChange:u})))}}]),t}(eo.Component),nc=Object(bo.compose)([Object(h.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,u=n.isSavingPost,l=e("core/editor").isPublishSidebarEnabled,d=t(o("type"));return{hasPublishAction:Object(y.get)(r(),["_links","wp:action-publish"],!1),isPostTypeViewable:Object(y.get)(d,["viewable"],!1),isBeingScheduled:a(),isDirty:s(),isPublished:i(),isPublishSidebarEnabled:l(),isSaving:u(),isScheduled:c()}})),Object(h.withDispatch)((function(e,t){var n=t.isPublishSidebarEnabled,r=e("core/editor"),o=r.disablePublishSidebar,i=r.enablePublishSidebar;return{onTogglePublishSidebar:function(){n?o():i()}}})),Po.withFocusReturn,Po.withConstrainedTabbing])(tc);var rc=Object(bo.compose)([Object(h.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(h.withDispatch)((function(e){var t=e("core/editor"),n=t.editPost,r=t.savePost;return{onClick:function(){n({status:"draft"}),r()}}})),Object(b.withViewportMatch)({isMobileViewport:"< small"})])((function(e){var t=e.isSaving,n=e.isPublished,r=e.isScheduled,o=e.onClick,i=e.isMobileViewport;return n||r?Object(eo.createElement)(Po.Button,{className:"editor-post-switch-to-draft",onClick:function(){var e;n?e=Object(L.__)("Are you sure you want to unpublish this post?"):r&&(e=Object(L.__)("Are you sure you want to unschedule this post?")),window.confirm(e)&&o()},disabled:t,isTertiary:!0},i?Object(L.__)("Draft"):Object(L.__)("Switch to Draft")):null})),oc=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).state={forceSavedMessage:!1},e}return Object(po.a)(t,e),Object(so.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,u=e.isAutosaving,l=e.isPending,d=e.isLargeViewport,p=this.state.forceSavedMessage;if(c){var b=vo()("editor-post-saved-state","is-saving",{"is-autosaving":u});return Object(eo.createElement)(Po.Animate,{type:"loading"},(function(e){var t=e.className;return Object(eo.createElement)("span",{className:vo()(b,t)},Object(eo.createElement)(Po.Dashicon,{icon:"cloud"}),u?Object(L.__)("Autosaving"):Object(L.__)("Saving"))}))}if(o||r)return Object(eo.createElement)(rc,null);if(!a)return null;if(p||!n&&!i)return Object(eo.createElement)("span",{className:"editor-post-saved-state is-saved"},Object(eo.createElement)(Po.Dashicon,{icon:"saved"}),Object(L.__)("Saved"));if(!Object(y.get)(t,["_links","wp:action-publish"],!1)&&l)return null;var f=l?Object(L.__)("Save as Pending"):Object(L.__)("Save Draft");return d?Object(eo.createElement)(Po.Button,{className:"editor-post-save-draft",onClick:function(){return s()},shortcut:Co.displayShortcut.primary("s"),isTertiary:!0},f):Object(eo.createElement)(Po.IconButton,{className:"editor-post-save-draft",label:f,onClick:function(){return s()},shortcut:Co.displayShortcut.primary("s"),icon:"cloud-upload"})}}]),t}(eo.Component),ic=Object(bo.compose)([Object(h.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,u=o.isSavingPost,l=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||u(),isSaveable:l(),isAutosaving:p(),isPending:"pending"===b("status")}})),Object(h.withDispatch)((function(e){return{onSave:e("core/editor").savePost}})),bo.withSafeTimeout,Object(b.withViewportMatch)({isLargeViewport:"small"})])(oc);var cc=Object(bo.compose)([Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.getCurrentPostType;return{hasPublishAction:Object(y.get)(n(),["_links","wp:action-publish"],!1),postType:r()}}))])((function(e){var t=e.hasPublishAction,n=e.children;return t?n:null}));var ac=Object(bo.compose)([Object(h.withSelect)((function(e){var t=e("core/editor").getCurrentPost();return{hasStickyAction:Object(y.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 sc=Object(bo.compose)([Object(h.withSelect)((function(e){return{postSticky:e("core/editor").getEditedPostAttribute("sticky")}})),Object(h.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(eo.createElement)(ac,null,Object(eo.createElement)(Po.CheckboxControl,{label:Object(L.__)("Stick to the top of the blog"),checked:r,onChange:function(){return t(!r)}}))})),uc={per_page:-1,orderby:"name",order:"asc",_fields:"id,name,parent"},lc=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).findTerm=e.findTerm.bind(Object(So.a)(e)),e.onChange=e.onChange.bind(Object(So.a)(e)),e.onChangeFormName=e.onChangeFormName.bind(Object(So.a)(e)),e.onChangeFormParent=e.onChangeFormParent.bind(Object(So.a)(e)),e.onAddTerm=e.onAddTerm.bind(Object(So.a)(e)),e.onToggleForm=e.onToggleForm.bind(Object(So.a)(e)),e.setFilterValue=e.setFilterValue.bind(Object(So.a)(e)),e.sortBySelected=e.sortBySelected.bind(Object(So.a)(e)),e.state={loading:!0,availableTermsTree:[],availableTerms:[],adding:!1,formName:"",formParent:"",showForm:!1,filterValue:"",filteredTermsTree:[]},e}return Object(po.a)(t,e),Object(so.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;n(-1!==o.indexOf(e)?Object(y.without)(o,e):[].concat(Object(N.a)(o),[e]),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(y.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,u=a.formParent,l=a.adding,d=a.availableTerms;if(""!==s&&!l){var p=this.findTerm(d,u,s);if(p)return Object(y.some)(i,(function(e){return e===p.id}))||r([].concat(Object(N.a)(i),[p.id]),o.rest_base),void this.setState({formName:"",formParent:""});this.setState({adding:!0}),this.addRequest=A()({path:"/wp/v2/".concat(o.rest_base),method:"POST",data:{name:s,parent:u||void 0}}),this.addRequest.catch((function(e){return"term_exists"===e.code?(t.addRequest=A()({path:Object(Ft.addQueryArgs)("/wp/v2/".concat(o.rest_base),Object(f.a)({},uc,{parent:u||0,search:s}))}),t.addRequest.then((function(e){return t.findTerm(e,u,s)}))):Promise.reject(e)})).then((function(e){var n=!!Object(y.find)(t.state.availableTerms,(function(t){return t.id===e.id}))?t.state.availableTerms:[e].concat(Object(N.a)(t.state.availableTerms)),a=Object(L.sprintf)(Object(L._x)("%s added","term"),Object(y.get)(t.props.taxonomy,["labels","singular_name"],"category"===c?Object(L.__)("Category"):Object(L.__)("Term")));t.props.speak(a,"assertive"),t.addRequest=null,t.setState({adding:!1,formName:"",formParent:"",availableTerms:n,availableTermsTree:t.sortBySelected(Qo(n))}),r([].concat(Object(N.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(y.invoke)(this.fetchRequest,["abort"]),Object(y.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=A()({path:Object(Ft.addQueryArgs)("/wp/v2/".concat(t.rest_base),uc)}),this.fetchRequest.then((function(t){var n=e.sortBySelected(Qo(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.toLowerCase())||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){return Object(eo.createElement)("div",{key:e.id,className:"editor-post-taxonomies__hierarchical-terms-choice"},Object(eo.createElement)(Po.CheckboxControl,{checked:-1!==r.indexOf(e.id),onChange:function(){var n=parseInt(e.id,10);t.onChange(n)},label:Object(y.unescape)(e.name)}),!!e.children.length&&Object(eo.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,u=i.formName,l=i.formParent,d=i.loading,p=i.showForm,b=i.filterValue,f=function(e,r,o){return Object(y.get)(n,["labels",e],"category"===t?r:o)},h=f("add_new_item",Object(L.__)("Add new category"),Object(L.__)("Add new term")),m=f("new_item_name",Object(L.__)("Add new category"),Object(L.__)("Add new term")),v=f("parent_item",Object(L.__)("Parent Category"),Object(L.__)("Parent Term")),O="— ".concat(v," —"),g=h,j="editor-post-taxonomies__hierarchical-terms-input-".concat(r),_="editor-post-taxonomies__hierarchical-terms-filter-".concat(r),k=Object(y.get)(this.props.taxonomy,["labels","search_items"],Object(L.__)("Search Terms")),E=Object(y.get)(this.props.taxonomy,["name"],Object(L.__)("Terms")),w=a.length>=8;return[w&&Object(eo.createElement)("label",{key:"filter-label",htmlFor:_},k),w&&Object(eo.createElement)("input",{type:"search",id:_,value:b,onChange:this.setFilterValue,className:"editor-post-taxonomies__hierarchical-terms-filter",key:"term-filter-input"}),Object(eo.createElement)("div",{className:"editor-post-taxonomies__hierarchical-terms-list",key:"term-list",tabIndex:"0",role:"group","aria-label":E},this.renderTerms(""!==b?s:c)),!d&&o&&Object(eo.createElement)(Po.Button,{key:"term-add-button",onClick:this.onToggleForm,className:"editor-post-taxonomies__hierarchical-terms-add","aria-expanded":p,isLink:!0},h),p&&Object(eo.createElement)("form",{onSubmit:this.onAddTerm,key:"hierarchical-terms-form"},Object(eo.createElement)("label",{htmlFor:j,className:"editor-post-taxonomies__hierarchical-terms-label"},m),Object(eo.createElement)("input",{type:"text",id:j,className:"editor-post-taxonomies__hierarchical-terms-input",value:u,onChange:this.onChangeFormName,required:!0}),!!a.length&&Object(eo.createElement)(Po.TreeSelect,{label:v,noOptionLabel:O,onChange:this.onChangeFormParent,selectedId:l,tree:c}),Object(eo.createElement)(Po.Button,{isDefault:!0,type:"submit",className:"editor-post-taxonomies__hierarchical-terms-submit"},g))]}}]),t}(eo.Component),dc=Object(bo.compose)([Object(h.withSelect)((function(e,t){var n=t.slug,r=e("core/editor").getCurrentPost,o=(0,e("core").getTaxonomy)(n);return{hasCreateAction:!!o&&Object(y.get)(r(),["_links","wp:action-create-"+o.rest_base],!1),hasAssignAction:!!o&&Object(y.get)(r(),["_links","wp:action-assign-"+o.rest_base],!1),terms:o?e("core/editor").getEditedPostAttribute(o.rest_base):[],taxonomy:o}})),Object(h.withDispatch)((function(e){return{onUpdateTerms:function(t,n){e("core/editor").editPost(Object(v.a)({},n,t))}}})),Po.withSpokenMessages,bo.withInstanceId,Object(Po.withFilters)("editor.PostTaxonomyType")])(lc);var pc=Object(bo.compose)([Object(h.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?y.identity:r,i=Object(y.filter)(n,(function(e){return Object(y.includes)(e.types,t)}));return Object(y.filter)(i,(function(e){return e.visibility.show_ui})).map((function(e){var t=e.hierarchical?dc:Ki;return Object(eo.createElement)(eo.Fragment,{key:"taxonomy-".concat(e.slug)},o(Object(eo.createElement)(t,{slug:e.slug}),e))}))}));var bc=Object(bo.compose)([Object(h.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(y.some)(n,(function(e){return Object(y.includes)(e.types,t)}))?r:null})),fc=n(62),hc=n.n(fc),mc=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).edit=e.edit.bind(Object(So.a)(e)),e.stopEditing=e.stopEditing.bind(Object(So.a)(e)),e.state={},e}return Object(po.a)(t,e),Object(so.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(eo.createElement)(eo.Fragment,null,Object(eo.createElement)("label",{htmlFor:"post-content-".concat(t),className:"screen-reader-text"},Object(L.__)("Type text or HTML")),Object(eo.createElement)(hc.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(L.__)("Start writing with text or HTML")}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return t.isDirty?null:{value:e.value,isDirty:!1}}}]),t}(eo.Component),vc=Object(bo.compose)([Object(h.withSelect)((function(e){return{value:(0,e("core/editor").getEditedPostContent)()}})),Object(h.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(l.parse)(e);r(t)}}})),bo.withInstanceId])(mc),Oc=function(e){function t(e){var n,r=e.permalinkParts,o=e.slug;return Object(ao.a)(this,t),(n=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).state={editedPostName:o||r.postName},n.onSavePermalink=n.onSavePermalink.bind(Object(So.a)(n)),n}return Object(po.a)(t,e),Object(so.a)(t,[{key:"onSavePermalink",value:function(e){var t=_i(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(eo.createElement)("form",{className:"editor-post-permalink-editor",onSubmit:this.onSavePermalink},Object(eo.createElement)("span",{className:"editor-post-permalink__editor-container"},Object(eo.createElement)("span",{className:"editor-post-permalink-editor__prefix"},n),Object(eo.createElement)("input",{className:"editor-post-permalink-editor__edit","aria-label":Object(L.__)("Edit post permalink"),value:o,onChange:function(t){return e.setState({editedPostName:t.target.value})},type:"text",autoFocus:!0}),Object(eo.createElement)("span",{className:"editor-post-permalink-editor__suffix"},r),"‎"),Object(eo.createElement)(Po.Button,{className:"editor-post-permalink-editor__save",isLarge:!0,onClick:this.onSavePermalink},Object(L.__)("Save")))}}]),t}(eo.Component),gc=Object(bo.compose)([Object(h.withSelect)((function(e){return{permalinkParts:(0,e("core/editor").getPermalinkParts)()}})),Object(h.withDispatch)((function(e){return{editPost:e("core/editor").editPost}}))])(Oc),jc=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).addVisibilityCheck=e.addVisibilityCheck.bind(Object(So.a)(e)),e.onVisibilityChange=e.onVisibilityChange.bind(Object(So.a)(e)),e.state={isCopied:!1,isEditingPermalink:!1},e}return Object(po.a)(t,e),Object(so.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,u=t.postID,l=t.postTitle;if(r||!i||!c||!a)return null;var d=this.state,p=d.isCopied,b=d.isEditingPermalink,f=p?Object(L.__)("Permalink copied"):Object(L.__)("Copy the permalink"),h=c.prefix,m=c.suffix,v=Object(Ft.safeDecodeURIComponent)(s)||_i(l)||u,O=n?h+v+m:h;return Object(eo.createElement)("div",{className:"editor-post-permalink"},Object(eo.createElement)(Po.ClipboardButton,{className:vo()("editor-post-permalink__copy",{"is-copied":p}),text:O,label:f,onCopy:function(){return e.setState({isCopied:!0})},"aria-disabled":p,icon:"admin-links"}),Object(eo.createElement)("span",{className:"editor-post-permalink__label"},Object(L.__)("Permalink:")),!b&&Object(eo.createElement)(Po.ExternalLink,{className:"editor-post-permalink__link",href:o?O:a,target:"_blank",ref:function(t){return e.linkElement=t}},Object(Ft.safeDecodeURI)(O),"‎"),b&&Object(eo.createElement)(gc,{slug:v,onSave:function(){return e.setState({isEditingPermalink:!1})}}),n&&!b&&Object(eo.createElement)(Po.Button,{className:"editor-post-permalink__edit",isLarge:!0,onClick:function(){return e.setState({isEditingPermalink:!0})}},Object(L.__)("Edit")))}}]),t}(eo.Component),yc=Object(bo.compose)([Object(h.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,u=o(),l=u.id,d=u.link,p=s(c("type"));return{isNew:n(),postLink:d,permalinkParts:i(),postSlug:c("slug"),isEditable:r(),isPublished:a(),postTitle:c("title"),postID:l,isViewable:Object(y.get)(p,["viewable"],!1)}})),Object(h.withDispatch)((function(e){return{refreshPost:e("core/editor").refreshPost}}))])(jc),_c=/[\r\n]+/g,kc=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).onChange=e.onChange.bind(Object(So.a)(e)),e.onSelect=e.onSelect.bind(Object(So.a)(e)),e.onUnselect=e.onUnselect.bind(Object(So.a)(e)),e.onKeyDown=e.onKeyDown.bind(Object(So.a)(e)),e.redirectHistory=e.redirectHistory.bind(Object(So.a)(e)),e.state={isSelected:!1},e}return Object(po.a)(t,e),Object(so.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(_c," ");this.props.onUpdate(t)}},{key:"onKeyDown",value:function(e){e.keyCode===Co.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,u=vo()("wp-block editor-post-title__block",{"is-selected":s,"is-focus-mode":r,"has-fixed-toolbar":t}),l=Object(ei.decodeEntities)(c);return Object(eo.createElement)(Go,{supportKeys:"title"},Object(eo.createElement)("div",{className:"editor-post-title"},Object(eo.createElement)("div",{className:u},Object(eo.createElement)(Po.KeyboardShortcuts,{shortcuts:{"mod+z":this.redirectHistory,"mod+shift+z":this.redirectHistory}},Object(eo.createElement)("label",{htmlFor:"post-title-".concat(i),className:"screen-reader-text"},l||Object(L.__)("Add title")),Object(eo.createElement)(hc.a,{id:"post-title-".concat(i),className:"editor-post-title__input",value:a,onChange:this.onChange,placeholder:l||Object(L.__)("Add title"),onFocus:this.onSelect,onKeyDown:this.onKeyDown,onKeyPress:this.onUnselect,autoFocus:document.body===document.activeElement&&n})),s&&o&&Object(eo.createElement)(yc,null))))}}]),t}(eo.Component),Ec=Object(h.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,u=c.hasFixedToolbar;return{isCleanNewPost:r(),title:n("title"),isPostTypeViewable:Object(y.get)(i,["viewable"],!1),placeholder:a,isFocusMode:s,hasFixedToolbar:u}})),wc=Object(h.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}})),Sc=Object(bo.compose)(Ec,wc,bo.withInstanceId,Po.withFocusOutside)(kc);var Pc=Object(bo.compose)([Object(h.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(h.withDispatch)((function(e){return{trashPost:e("core/editor").trashPost}}))])((function(e){var t=e.isNew,n=e.postId,r=e.postType,o=Object(Do.a)(e,["isNew","postId","postType"]);return t||!n?null:Object(eo.createElement)(Po.Button,{className:"editor-post-trash button-link-delete",onClick:function(){return o.trashPost(n,r)},isDefault:!0,isLarge:!0},Object(L.__)("Move to Trash"))}));var Cc=Object(h.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 Tc=Object(bo.compose)([Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.getCurrentPostType;return{hasPublishAction:Object(y.get)(n(),["_links","wp:action-publish"],!1),postType:r()}}))])((function(e){var t=e.hasPublishAction;return(0,e.render)({canEdit:t})})),xc=n(97);var Bc=Object(h.withSelect)((function(e){return{content:e("core/editor").getEditedPostAttribute("content")}}))((function(e){var t=e.content,n=Object(L._x)("words","Word count type. Do not translate!");return Object(eo.createElement)("span",{className:"word-count"},Object(xc.count)(t,n))}));var Ic=Object(h.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,i=e.onRequestClose;return(Object(eo.createElement)(eo.Fragment,null,Object(eo.createElement)("div",{className:"table-of-contents__wrapper",role:"note","aria-label":Object(L.__)("Document Statistics"),tabIndex:"0"},Object(eo.createElement)("ul",{role:"list",className:"table-of-contents__counts"},Object(eo.createElement)("li",{className:"table-of-contents__count"},Object(L.__)("Words"),Object(eo.createElement)(Bc,null)),Object(eo.createElement)("li",{className:"table-of-contents__count"},Object(L.__)("Headings"),Object(eo.createElement)("span",{className:"table-of-contents__number"},t)),Object(eo.createElement)("li",{className:"table-of-contents__count"},Object(L.__)("Paragraphs"),Object(eo.createElement)("span",{className:"table-of-contents__number"},n)),Object(eo.createElement)("li",{className:"table-of-contents__count"},Object(L.__)("Blocks"),Object(eo.createElement)("span",{className:"table-of-contents__number"},r)))),t>0&&Object(eo.createElement)(eo.Fragment,null,Object(eo.createElement)("hr",null),Object(eo.createElement)("h2",{className:"table-of-contents__title"},Object(L.__)("Document Outline")),Object(eo.createElement)(Eo,{onSelect:i,hasOutlineItemsDisabled:o}))))}));var Ac=Object(h.withSelect)((function(e){return{hasBlocks:!!e("core/block-editor").getBlockCount()}}))((function(e){var t=e.hasBlocks,n=e.hasOutlineItemsDisabled;return Object(eo.createElement)(Po.Dropdown,{position:"bottom",className:"table-of-contents",contentClassName:"table-of-contents__popover",renderToggle:function(e){var n=e.isOpen,r=e.onToggle;return Object(eo.createElement)(Po.IconButton,{onClick:t?r:void 0,icon:"info-outline","aria-expanded":n,label:Object(L.__)("Content structure"),labelPosition:"bottom","aria-disabled":!t})},renderContent:function(e){var t=e.onClose;return Object(eo.createElement)(Ic,{onRequestClose:t,hasOutlineItemsDisabled:n})}})})),Lc=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).warnIfUnsavedChanges=e.warnIfUnsavedChanges.bind(Object(So.a)(e)),e}return Object(po.a)(t,e),Object(so.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((0,this.props.isEditedPostDirty)())return e.returnValue=Object(L.__)("You have unsaved changes. If you proceed, they will be lost."),e.returnValue}},{key:"render",value:function(){return null}}]),t}(eo.Component),Rc=Object(h.withSelect)((function(e){return{isEditedPostDirty:e("core/editor").isEditedPostDirty}}))(Lc),Nc=Object(bo.createHigherOrderComponent)((function(e){return Object(h.withRegistry)((function(t){var n=t.useSubRegistry,r=void 0===n||n,o=t.registry,i=Object(Do.a)(t,["useSubRegistry","registry"]);if(!r)return Object(eo.createElement)(e,i);var c=Object(eo.useState)(null),a=Object(R.a)(c,2),s=a[0],l=a[1];return Object(eo.useEffect)((function(){var e=Object(h.createRegistry)({"core/block-editor":u.storeConfig},o),t=e.registerStore("core/editor",$r);Xr(t),l(e)}),[o]),s?Object(eo.createElement)(h.RegistryProvider,{value:s},Object(eo.createElement)(e,i)):null}))}),"withRegistryProvider"),Dc=n(99),Uc=function(e){var t=e.additionalData,n=void 0===t?{}:t,r=e.allowedTypes,o=e.filesList,i=e.maxUploadFileSize,c=e.onError,a=void 0===c?y.noop:c,s=e.onFileChange,u=Object(h.select)("core/editor"),l=u.getCurrentPostId,d=u.getEditorSettings,p=d().allowedMimeTypes;i=i||d().maxUploadFileSize,Object(Dc.uploadMedia)({allowedTypes:r,filesList:o,onFileChange:s,additionalData:Object(f.a)({post:l()},n),maxUploadFileSize:i,onError:function(e){var t=e.message;return a(t)},wpAllowedMimeTypes:p})};var Fc=Object(bo.compose)([Object(h.withSelect)((function(e,t){var n=t.clientIds,r=e("core/block-editor"),o=r.getBlocksByClientId,i=r.canInsertBlockType,c=e("core/editor").__experimentalGetReusableBlock,a=e("core").canUser,s=o(n),u=1===s.length&&s[0]&&Object(l.isReusableBlock)(s[0])&&!!c(s[0].attributes.ref);return{isReusable:u,isVisible:u||i("core/block")&&Object(y.every)(s,(function(e){return!!e&&e.isValid&&Object(l.hasBlockSupport)(e.name,"reusable",!0)}))&&!!a("create","blocks")}})),Object(h.withDispatch)((function(e,t){var n=t.clientIds,r=t.onToggle,o=void 0===r?y.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(eo.createElement)(eo.Fragment,null,!n&&Object(eo.createElement)(Po.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",icon:"controls-repeat",onClick:o},Object(L.__)("Add to Reusable Blocks")),n&&Object(eo.createElement)(Po.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",icon:"controls-repeat",onClick:r},Object(L.__)("Convert to Regular Block"))):null}));var Mc=Object(bo.compose)([Object(h.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock,o=e("core").canUser,i=e("core/editor").__experimentalGetReusableBlock,c=r(n),a=c&&Object(l.isReusableBlock)(c)?i(c.attributes.ref):null;return{isVisible:!!a&&!!o("delete","blocks",a.id),isDisabled:a&&a.isTemporary}})),Object(h.withDispatch)((function(e,t,n){var r=t.clientId,o=t.onToggle,i=void 0===o?y.noop:o,c=n.select,a=e("core/editor").__experimentalDeleteReusableBlock,s=c("core/block-editor").getBlock;return{onDelete:function(){if(window.confirm(Object(L.__)("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(eo.createElement)(Po.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",icon:"no",disabled:n,onClick:function(){return r()}},Object(L.__)("Remove from Reusable Blocks")):null}));var Vc=Object(h.withSelect)((function(e){return{clientIds:(0,e("core/block-editor").getSelectedBlockClientIds)()}}))((function(e){var t=e.clientIds;return Object(eo.createElement)(u.__experimentalBlockSettingsMenuPluginsExtension,null,(function(e){var n=e.onClose;return Object(eo.createElement)(eo.Fragment,null,Object(eo.createElement)(Fc,{clientIds:t,onToggle:n}),1===t.length&&Object(eo.createElement)(Mc,{clientId:t[0],onToggle:n}))}))})),Hc=Object(eo.createElement)(Po.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},Object(eo.createElement)(Po.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M8 5a1 1 0 0 0-1 1v3H6a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-3h1a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1H8zm3 6H7v2h4v-2zM9 9V7h4v2H9z"}),Object(eo.createElement)(Po.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M1 3a2 2 0 0 0 1 1.732v10.536A2 2 0 1 0 4.732 18h10.536A2 2 0 1 0 18 15.268V4.732A2 2 0 1 0 15.268 2H4.732A2 2 0 0 0 1 3zm14.268 1H4.732A2.01 2.01 0 0 1 4 4.732v10.536c.304.175.557.428.732.732h10.536a2.01 2.01 0 0 1 .732-.732V4.732A2.01 2.01 0 0 1 15.268 4z"})),Wc=Object(eo.createElement)(Po.Icon,{icon:Hc}),zc=Object(eo.createElement)(Po.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},Object(eo.createElement)(Po.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M9 2H15C16.1 2 17 2.9 17 4V7C17 8.1 16.1 9 15 9H9C7.9 9 7 8.1 7 7V4C7 2.9 7.9 2 9 2ZM9 7H15V4H9V7Z"}),Object(eo.createElement)(Po.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5 11H11C12.1 11 13 11.9 13 13V16C13 17.1 12.1 18 11 18H5C3.9 18 3 17.1 3 16V13C3 11.9 3.9 11 5 11ZM5 16H11V13H5V16Z"})),Kc=Object(eo.createElement)(Po.Icon,{icon:zc});var Gc=Object(bo.compose)([Object(h.withSelect)((function(e,t){var n=t.clientIds,r=e("core/block-editor"),o=r.getBlockRootClientId,i=r.getBlocksByClientId,c=r.canInsertBlockType,a=(0,e("core/blocks").getGroupingBlockName)(),s=c(a,n&&n.length>0?o(n[0]):void 0),u=i(n),l=1===u.length&&u[0]&&u[0].name===a;return{isGroupable:s&&u.length&&!l,isUngroupable:l&&!!u[0].innerBlocks.length,blocksSelection:u,groupingBlockName:a}})),Object(h.withDispatch)((function(e,t){var n=t.clientIds,r=t.onToggle,o=void 0===r?y.noop:r,i=t.blocksSelection,c=void 0===i?[]:i,a=t.groupingBlockName,s=e("core/block-editor").replaceBlocks;return{onConvertToGroup:function(){if(c.length){var e=Object(l.switchToBlockType)(c,a);e&&s(n,e),o()}},onConvertFromGroup:function(){if(c.length){var e=c[0].innerBlocks;e.length&&(s(n,e),o())}}}}))])((function(e){var t=e.onConvertToGroup,n=e.onConvertFromGroup,r=e.isGroupable,o=void 0!==r&&r,i=e.isUngroupable,c=void 0!==i&&i;return Object(eo.createElement)(eo.Fragment,null,o&&Object(eo.createElement)(Po.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",icon:Wc,onClick:t},Object(L._x)("Group","verb")),c&&Object(eo.createElement)(Po.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",icon:Kc,onClick:n},Object(L._x)("Ungroup","Ungrouping blocks from within a Group block back into individual blocks within the Editor ")))}));var qc=Object(h.withSelect)((function(e){return{clientIds:(0,e("core/block-editor").getSelectedBlockClientIds)()}}))((function(e){var t=e.clientIds;return Object(eo.createElement)(u.__experimentalBlockSettingsMenuPluginsExtension,null,(function(e){var n=e.onClose;return Object(eo.createElement)(eo.Fragment,null,Object(eo.createElement)(Gc,{clientIds:t,onToggle:n}))}))})),Yc=Object(h.combineReducers)({downloadableBlocks:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{results:{},hasPermission:!0,filterValue:void 0,isRequestingDownloadableBlocks:!0,installedBlockTypes:[]},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_DOWNLOADABLE_BLOCKS":return Object(f.a)({},e,{isRequestingDownloadableBlocks:!0});case"RECEIVE_DOWNLOADABLE_BLOCKS":return Object(f.a)({},e,{results:Object.assign({},e.results,Object(v.a)({},t.filterValue,t.downloadableBlocks)),hasPermission:!0,isRequestingDownloadableBlocks:!1});case"SET_INSTALL_BLOCKS_PERMISSION":return Object(f.a)({},e,{items:t.hasPermission?e.items:[],hasPermission:t.hasPermission});case"ADD_INSTALLED_BLOCK_TYPE":return Object(f.a)({},e,{installedBlockTypes:[].concat(Object(N.a)(e.installedBlockTypes),[t.item])});case"REMOVE_INSTALLED_BLOCK_TYPE":return Object(f.a)({},e,{installedBlockTypes:e.installedBlockTypes.filter((function(e){return e.name!==t.item.name}))})}return e}});function Qc(e){return e.downloadableBlocks.isRequestingDownloadableBlocks}function Xc(e,t){return e.downloadableBlocks.results[t]?e.downloadableBlocks.results[t]:[]}function $c(e){return e.downloadableBlocks.hasPermission}function Zc(e){return Object(y.get)(e,["downloadableBlocks","installedBlockTypes"],[])}var Jc=x.a.mark(ra);function ea(e){return{type:"API_FETCH",request:e}}var ta=function(e,t,n){if(e){var r=document.querySelector('script[src="'.concat(e.src,'"]'));r&&r.parentNode.removeChild(r);var o=document.createElement("script");o.src="string"==typeof e?e:e.src,o.onload=t,o.onerror=n,document.body.appendChild(o)}},na=function(e){if(e){var t=document.createElement("link");t.rel="stylesheet",t.href="string"==typeof e?e:e.src,document.body.appendChild(t)}};function ra(e){return x.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{type:"LOAD_ASSETS",assets:e});case 1:case"end":return t.stop()}}),Jc)}var oa={SELECT:Object(h.createRegistryControl)((function(e){return function(t){var n,r=t.storeName,o=t.selectorName,i=t.args;return(n=e.select(r))[o].apply(n,Object(N.a)(i))}})),DISPATCH:Object(h.createRegistryControl)((function(e){return function(t){var n,r=t.storeName,o=t.dispatcherName,i=t.args;return(n=e.dispatch(r))[o].apply(n,Object(N.a)(i))}})),API_FETCH:function(e){var t=e.request;return A()(Object(f.a)({},t))},LOAD_ASSETS:function(e){var t=e.assets;return new Promise((function(e,n){if(Array.isArray(t)){var r=0;Object(y.forEach)(t,(function(t){null!==t.match(/\.js$/)?(r++,ta(t,(function(){if(0===--r)return e(r)}),n)):na(t)}))}else ta(t.editor_script,(function(){return e(0)}),n),na(t.style)}))}},ia=x.a.mark(da),ca=x.a.mark(pa),aa=x.a.mark(ba);function sa(){return{type:"FETCH_DOWNLOADABLE_BLOCKS"}}function ua(e,t){return{type:"RECEIVE_DOWNLOADABLE_BLOCKS",downloadableBlocks:e,filterValue:t}}function la(e){return{type:"SET_INSTALL_BLOCKS_PERMISSION",hasPermission:e}}function da(e,t,n){return x.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(r.prev=0,e.assets.length){r.next=3;break}throw new Error("Block has no assets");case 3:return r.next=5,ra(e.assets);case 5:if(!Object(l.getBlockTypes)().length){r.next=10;break}t(e),r.next=11;break;case 10:throw new Error("Unable to get block types");case 11:r.next=17;break;case 13:return r.prev=13,r.t0=r.catch(0),r.next=17,n(r.t0);case 17:case"end":return r.stop()}}),ia,null,[[0,13]])}function pa(e,t,n){var r,o,i;return x.a.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return r=e.id,o=e.name,c.prev=1,c.next=4,ea({path:"__experimental/block-directory/install",data:{slug:r},method:"POST"});case 4:if(!1!==(i=c.sent).success){c.next=7;break}throw new Error(i.errorMessage);case 7:return c.next=9,fa({id:r,name:o});case 9:t(),c.next=15;break;case 12:c.prev=12,c.t0=c.catch(1),n(c.t0);case 15:case"end":return c.stop()}}),ca,null,[[1,12]])}function ba(e,t,n){var r,o,i;return x.a.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return r=e.id,o=e.name,c.prev=1,c.next=4,ea({path:"__experimental/block-directory/uninstall",data:{slug:r},method:"DELETE"});case 4:if(!1!==(i=c.sent).success){c.next=7;break}throw new Error(i.errorMessage);case 7:return c.next=9,ha({id:r,name:o});case 9:t(),c.next=15;break;case 12:c.prev=12,c.t0=c.catch(1),n(c.t0);case 15:case"end":return c.stop()}}),aa,null,[[1,12]])}function fa(e){return{type:"ADD_INSTALLED_BLOCK_TYPE",item:e}}function ha(e){return{type:"REMOVE_INSTALLED_BLOCK_TYPE",item:e}}var ma={reducer:Yc,selectors:a,actions:s,controls:oa,resolvers:{getDownloadableBlocks:x.a.mark((function e(t){var n,r;return x.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,{type:"FETCH_DOWNLOADABLE_BLOCKS"};case 5:return e.next=7,ea({path:"__experimental/block-directory/search?term=".concat(t)});case 7:return n=e.sent,r=n.map((function(e){return Object(y.mapKeys)(e,(function(e,t){return Object(y.camelCase)(t)}))})),e.next=11,ua(r,t);case 11:e.next=18;break;case 13:if(e.prev=13,e.t0=e.catch(2),"rest_user_cannot_view"!==e.t0.code){e.next=18;break}return e.next=18,la(!1);case 18:case"end":return e.stop()}}),e,null,[[2,13]])})),hasInstallBlocksPermission:x.a.mark((function e(){return x.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,ea({path:"__experimental/block-directory/search?term="});case 3:return e.next=5,la(!0);case 5:e.next=12;break;case 7:if(e.prev=7,e.t0=e.catch(0),"rest_user_cannot_view"!==e.t0.code){e.next=12;break}return e.next=12,la(!1);case 12:case"end":return e.stop()}}),e,null,[[0,7]])}))}},va=(Object(h.registerStore)("core/block-directory",ma),n(48));var Oa=function(e){var t=e.rating,n=.5*Math.round(t/.5),r=Math.floor(t),o=Math.ceil(t-r),i=5-(r+o);return Object(eo.createElement)("div",{"aria-label":Object(L.sprintf)(Object(L.__)("%s out of 5 stars"),n)},Object(y.times)(r,(function(e){return Object(eo.createElement)(Po.Icon,{key:"full_stars_".concat(e),icon:"star-filled",size:16})})),Object(y.times)(o,(function(e){return Object(eo.createElement)(Po.Icon,{key:"half_stars_".concat(e),icon:"star-half",size:16})})),Object(y.times)(i,(function(e){return Object(eo.createElement)(Po.Icon,{key:"empty_stars_".concat(e),icon:"star-empty",size:16})})))},ga=function(e){var t=e.rating,n=e.ratingCount;return Object(eo.createElement)("div",{className:"block-directory-block-ratings"},Object(eo.createElement)(Oa,{rating:t}),Object(eo.createElement)("span",{className:"block-directory-block-ratings__rating-count","aria-label":Object(L.sprintf)(Object(L._n)("%d total rating","%d total ratings",n),n)},"(",n,")"))};var ja=function(e){var t=e.icon,n=e.title,r=e.rating,o=e.ratingCount,i=e.onClick;return Object(eo.createElement)("div",{className:"block-directory-downloadable-block-header__row"},null!==t.match(/\.(jpeg|jpg|gif|png)$/)?Object(eo.createElement)("img",{src:t,alt:"block icon"}):Object(eo.createElement)("span",null,Object(eo.createElement)(u.BlockIcon,{icon:t,showColors:!0})),Object(eo.createElement)("div",{className:"block-directory-downloadable-block-header__column"},Object(eo.createElement)("span",{role:"heading",className:"block-directory-downloadable-block-header__title"},n),Object(eo.createElement)(ga,{rating:r,ratingCount:o})),Object(eo.createElement)(Po.Button,{isDefault:!0,onClick:function(e){e.preventDefault(),i()}},Object(L.__)("Add")))};var ya=function(e){var t=e.author,n=e.authorBlockCount,r=e.authorBlockRating;return Object(eo.createElement)(eo.Fragment,null,Object(eo.createElement)("span",{className:"block-directory-downloadable-block-author-info__content-author"},Object(L.sprintf)(Object(L.__)("Authored by %s"),t)),Object(eo.createElement)("span",{className:"block-directory-downloadable-block-author-info__content"},Object(L.sprintf)(Object(L._n)("This author has %d block, with an average rating of %d.","This author has %d blocks, with an average rating of %d.",n),n,r)))};var _a=function(e){var t=e.description,n=e.activeInstalls,r=e.humanizedUpdated;return Object(eo.createElement)(eo.Fragment,null,Object(eo.createElement)("p",{className:"block-directory-downloadable-block-info__content"},t),Object(eo.createElement)("div",{className:"block-directory-downloadable-block-info__row"},Object(eo.createElement)("div",{className:"block-directory-downloadable-block-info__column"},Object(eo.createElement)(Po.Icon,{icon:"chart-line"}),Object(L.sprintf)(Object(L._n)("%d active installation","%d active installations",n),n)),Object(eo.createElement)("div",{className:"block-directory-downloadable-block-info__column"},Object(eo.createElement)(Po.Icon,{icon:"update"}),Object(eo.createElement)("span",{"aria-label":Object(L.sprintf)(Object(L.__)("Updated %s"),r)},r))))};var ka=function(e){var t=e.item,n=e.onClick,r=t.icon,o=t.title,i=t.description,c=t.rating,a=t.activeInstalls,s=t.ratingCount,u=t.author,l=t.humanizedUpdated,d=t.authorBlockCount,p=t.authorBlockRating;return Object(eo.createElement)("li",{className:"block-directory-downloadable-block-list-item"},Object(eo.createElement)("article",{className:"block-directory-downloadable-block-list-item__panel"},Object(eo.createElement)("header",{className:"block-directory-downloadable-block-list-item__header"},Object(eo.createElement)(ja,{icon:r,onClick:n,title:o,rating:c,ratingCount:s})),Object(eo.createElement)("section",{className:"block-directory-downloadable-block-list-item__body"},Object(eo.createElement)(_a,{activeInstalls:a,description:i,humanizedUpdated:l})),Object(eo.createElement)("footer",{className:"block-directory-downloadable-block-list-item__footer"},Object(eo.createElement)(ya,{author:u,authorBlockCount:d,authorBlockRating:p}))))};var Ea=Object(bo.compose)(Object(h.withDispatch)((function(e,t){var n=e("core/block-directory"),r=n.installBlock,o=n.downloadBlock,i=e("core/notices"),c=i.createErrorNotice,a=i.removeNotice,s=e("core/block-editor").removeBlocks,u=t.onSelect;return{downloadAndInstallBlock:function(e){var t=function(){var t=u(e);r(e,y.noop,(function n(){c(Object(L.__)("Block previews can't install."),{id:"block-install-error",actions:[{label:Object(L.__)("Retry"),onClick:function(){a("block-install-error"),r(e,y.noop,n)}},{label:Object(L.__)("Remove"),onClick:function(){a("block-install-error"),s(t.clientId),Object(l.unregisterBlockType)(e.name)}}]})}))};o(e,t,(function n(){c(Object(L.__)("Block previews can’t load."),{id:"block-download-error",actions:[{label:Object(L.__)("Retry"),onClick:function(){a("block-download-error"),o(e,t,n)}}]})}))}}})))((function(e){var t=e.items,n=e.onHover,r=void 0===n?y.noop:n,o=e.children,i=e.downloadAndInstallBlock;return(Object(eo.createElement)("ul",{role:"list",className:"block-directory-downloadable-blocks-list"},t&&t.map((function(e){return Object(eo.createElement)(ka,{key:e.id,className:Object(l.getBlockMenuDefaultClassName)(e.id),icons:e.icons,onClick:function(){i(e),r(null)},onFocus:function(){return r(e)},onMouseEnter:function(){return r(e)},onMouseLeave:function(){return r(null)},onBlur:function(){return r(null)},item:e})})),o))}));var wa=Object(bo.compose)([Po.withSpokenMessages,Object(h.withSelect)((function(e,t){var n=t.filterValue,r=e("core/block-directory"),o=r.getDownloadableBlocks,i=r.hasInstallBlocksPermission,c=r.isRequestingDownloadableBlocks,a=i();return{downloadableItems:a?o(n):[],hasPermission:a,isLoading:c()}}))])((function(e){var t=e.downloadableItems,n=e.onSelect,r=e.onHover,o=e.hasPermission,i=e.isLoading,c=e.isWaiting,a=e.debouncedSpeak;return o?i||c?Object(eo.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description has-no-results"},Object(eo.createElement)(Po.Spinner,null)):t.length?(a(Object(L.sprintf)(Object(L._n)("No blocks found in your library. We did find %d block available for download.","No blocks found in your library. We did find %d blocks available for download.",t.length),t.length)),Object(eo.createElement)(eo.Fragment,null,Object(eo.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description"},Object(L.__)("No blocks found in your library. These blocks can be downloaded and installed:")),Object(eo.createElement)(Ea,{items:t,onSelect:n,onHover:r}))):Object(eo.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description has-no-results"},Object(L.__)("No blocks found in your library.")):(a(Object(L.__)("No blocks found in your library. Please contact your site administrator to install new blocks.")),Object(eo.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description has-no-results"},Object(L.__)("No blocks found in your library."),Object(eo.createElement)("br",null),Object(L.__)("Please contact your site administrator to install new blocks.")))}));var Sa=function(){var e=Object(eo.useState)(""),t=Object(R.a)(e,2),n=t[0],r=t[1],o=Object(y.debounce)(r,400);return Object(eo.createElement)(u.__experimentalInserterMenuExtension,null,(function(e){var t=e.onSelect,r=e.onHover,i=e.filterValue;return e.hasItems||!i?null:(n!==i&&o(i),Object(eo.createElement)(wa,{onSelect:t,onHover:r,filterValue:n,isWaiting:i!==n}))}))};Object(va.registerPlugin)("block-directory",{render:function(){return Object(eo.createElement)(Sa,null)}});var Pa=function(){var e=Object(eo.useState)(""),t=Object(R.a)(e,2),n=t[0],r=t[1],o=Object(y.debounce)(r,400);return Object(eo.createElement)(u.__experimentalInserterMenuExtension,null,(function(e){var t=e.onSelect,r=e.onHover,i=e.filterValue;return e.hasItems||!i?null:(n!==i&&o(i),Object(eo.createElement)(void 0,{onSelect:t,onHover:r,filterValue:n,isWaiting:i!==n}))}))},Ca=function(){var e=Object(B.a)(x.a.mark((function e(t){var n;return x.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,A()({path:Object(Ft.addQueryArgs)("/wp/v2/search",{search:t,per_page:20,type:"post"})});case 2:return n=e.sent,e.abrupt("return",Object(y.map)(n,(function(e){return{id:e.id,url:e.url,title:Object(ei.decodeEntities)(e.title)||Object(L.__)("(no title)")}})));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ta=function(e){function t(e){var n;return Object(ao.a)(this,t),(n=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).getBlockEditorSettings=Z()(n.getBlockEditorSettings,{maxSize:1}),e.recovery?Object(uo.a)(n):(e.updatePostLock(e.settings.postLock),e.setupEditor(e.post,e.initialEdits,e.settings.template),e.settings.autosave&&e.createWarningNotice(Object(L.__)("There is an autosave of this post that is more recent than the version below."),{id:"autosave-exists",actions:[{label:Object(L.__)("View the autosave"),url:e.settings.autosave.editLink}]}),n)}return Object(po.a)(t,e),Object(so.a)(t,[{key:"getBlockEditorSettings",value:function(e,t,n,r){return Object(f.a)({},Object(y.pick)(e,["alignWide","allowedBlockTypes","__experimentalPreferredStyleVariations","availableLegacyWidgets","bodyPlaceholder","codeEditingEnabled","colors","disableCustomColors","disableCustomFontSizes","focusMode","fontSizes","hasFixedToolbar","hasPermissionsToManageWidgets","imageSizes","isRTL","maxWidth","styles","template","templateLock","titlePlaceholder","onUpdateDefaultBlockStyles","__experimentalEnableLegacyWidgetBlock","__experimentalEnableMenuBlock","__experimentalBlockDirectory","showInserterHelpPanel"]),{__experimentalReusableBlocks:t,__experimentalMediaUpload:n?Uc:void 0,__experimentalFetchLinkSuggestions:Ca,__experimentalCanUserUseUnfilteredHTML:r})}},{key:"componentDidMount",value:function(){if(this.props.updateEditorSettings(this.props.settings),this.props.settings.styles){var e=Object(u.transformStyles)(this.props.settings.styles,".editor-styles-wrapper");Object(y.map)(e,(function(e){if(e){var t=document.createElement("style");t.innerHTML=e,document.body.appendChild(t)}}))}}},{key:"componentDidUpdate",value:function(e){var t=this;this.props.settings!==e.settings&&this.props.updateEditorSettings(this.props.settings),Object(y.isEqual)(this.props.downloadableBlocksToUninstall,e.downloadableBlocksToUninstall)||this.props.downloadableBlocksToUninstall.forEach((function(e){t.props.uninstallBlock(e,y.noop,(function(){t.props.createWarningNotice(Object(L.__)("Block previews can't uninstall."),{id:"block-uninstall-error"})})),Object(l.unregisterBlockType)(e.name)}))}},{key:"componentWillUnmount",value:function(){this.props.tearDownEditor()}},{key:"render",value:function(){var e=this.props,t=e.canUserUseUnfilteredHTML,n=e.children,r=e.blocks,o=e.resetEditorBlocks,i=e.isReady,c=e.settings,a=e.reusableBlocks,s=e.resetEditorBlocksWithoutUndoLevel,l=e.hasUploadPermissions;if(!i)return null;var d=this.getBlockEditorSettings(c,a,l,t);return Object(eo.createElement)(u.BlockEditorProvider,{value:r,onInput:s,onChange:o,settings:d,useSubRegistry:!1},n,Object(eo.createElement)(Vc,null),Object(eo.createElement)(qc,null),d.__experimentalBlockDirectory&&Object(eo.createElement)(Pa,null))}}]),t}(eo.Component),xa=Object(bo.compose)([Nc,Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.canUserUseUnfilteredHTML,r=t.__unstableIsEditorReady,o=t.getEditorBlocks,i=t.__experimentalGetReusableBlocks,c=e("core").canUser,a=e("core/block-directory").getInstalledBlockTypes,s=e("core/block-editor").getBlocks,u=Object(y.differenceBy)(a(),s(),"name");return{canUserUseUnfilteredHTML:n(),isReady:r(),blocks:o(),reusableBlocks:i(),hasUploadPermissions:Object(y.defaultTo)(c("create","media"),!0),downloadableBlocksToUninstall:u}})),Object(h.withDispatch)((function(e){var t=e("core/editor"),n=t.setupEditor,r=t.updatePostLock,o=t.resetEditorBlocks,i=t.updateEditorSettings,c=t.__experimentalTearDownEditor,a=e("core/notices").createWarningNotice,s=e("core/block-directory").uninstallBlock;return{setupEditor:n,updatePostLock:r,createWarningNotice:a,resetEditorBlocks:o,updateEditorSettings:i,resetEditorBlocksWithoutUndoLevel:function(e){o(e,{__unstableShouldCreateUndoLevel:!1})},tearDownEditor:c,uninstallBlock:s}}))])(Ta),Ba=n(58),Ia=n.n(Ba);function Aa(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=Object(eo.forwardRef)((function(n,r){return U()("wp.editor."+e,{alternative:"wp.blockEditor."+e}),Object(eo.createElement)(t,Object(ci.a)({ref:r},n))}));return n.forEach((function(n){r[n]=Aa(e+"."+n,t[n])})),r}function La(e,t){return function(){return U()("wp.editor."+e,{alternative:"wp.blockEditor."+e}),t.apply(void 0,arguments)}}var Ra=Aa("RichText",u.RichText,["Content"]);Ra.isEmpty=La("RichText.isEmpty",u.RichText.isEmpty);var Na=Aa("Autocomplete",u.Autocomplete),Da=Aa("AlignmentToolbar",u.AlignmentToolbar),Ua=Aa("BlockAlignmentToolbar",u.BlockAlignmentToolbar),Fa=Aa("BlockControls",u.BlockControls,["Slot"]),Ma=Aa("BlockEdit",u.BlockEdit),Va=Aa("BlockEditorKeyboardShortcuts",u.BlockEditorKeyboardShortcuts),Ha=Aa("BlockFormatControls",u.BlockFormatControls,["Slot"]),Wa=Aa("BlockIcon",u.BlockIcon),za=Aa("BlockInspector",u.BlockInspector),Ka=Aa("BlockList",u.BlockList),Ga=Aa("BlockMover",u.BlockMover),qa=Aa("BlockNavigationDropdown",u.BlockNavigationDropdown),Ya=Aa("BlockSelectionClearer",u.BlockSelectionClearer),Qa=Aa("BlockSettingsMenu",u.BlockSettingsMenu),Xa=Aa("BlockTitle",u.BlockTitle),$a=Aa("BlockToolbar",u.BlockToolbar),Za=Aa("ColorPalette",u.ColorPalette),Ja=Aa("ContrastChecker",u.ContrastChecker),es=Aa("CopyHandler",u.CopyHandler),ts=Aa("DefaultBlockAppender",u.DefaultBlockAppender),ns=Aa("FontSizePicker",u.FontSizePicker),rs=Aa("Inserter",u.Inserter),os=Aa("InnerBlocks",u.InnerBlocks,["ButtonBlockAppender","DefaultBlockAppender","Content"]),is=Aa("InspectorAdvancedControls",u.InspectorAdvancedControls,["Slot"]),cs=Aa("InspectorControls",u.InspectorControls,["Slot"]),as=Aa("PanelColorSettings",u.PanelColorSettings),ss=Aa("PlainText",u.PlainText),us=Aa("RichTextShortcut",u.RichTextShortcut),ls=Aa("RichTextToolbarButton",u.RichTextToolbarButton),ds=Aa("__unstableRichTextInputEvent",u.__unstableRichTextInputEvent),ps=Aa("MediaPlaceholder",u.MediaPlaceholder),bs=Aa("MediaUpload",u.MediaUpload),fs=Aa("MediaUploadCheck",u.MediaUploadCheck),hs=Aa("MultiBlocksSwitcher",u.MultiBlocksSwitcher),ms=Aa("MultiSelectScrollIntoView",u.MultiSelectScrollIntoView),vs=Aa("NavigableToolbar",u.NavigableToolbar),Os=Aa("ObserveTyping",u.ObserveTyping),gs=Aa("PreserveScrollInReorder",u.PreserveScrollInReorder),js=Aa("SkipToSelectedBlock",u.SkipToSelectedBlock),ys=Aa("URLInput",u.URLInput),_s=Aa("URLInputButton",u.URLInputButton),ks=Aa("URLPopover",u.URLPopover),Es=Aa("Warning",u.Warning),ws=Aa("WritingFlow",u.WritingFlow),Ss=La("createCustomColorsHOC",u.createCustomColorsHOC),Ps=La("getColorClassName",u.getColorClassName),Cs=La("getColorObjectByAttributeValues",u.getColorObjectByAttributeValues),Ts=La("getColorObjectByColorValue",u.getColorObjectByColorValue),xs=La("getFontSize",u.getFontSize),Bs=La("getFontSizeClass",u.getFontSizeClass),Is=La("withColorContext",u.withColorContext),As=La("withColors",u.withColors),Ls=La("withFontSizes",u.withFontSizes);Object(Jr.addFilter)("editor.Autocomplete.completers","editor/autocompleters/set-default-completers",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return e.push(Object(y.clone)(co)),t===Object(l.getDefaultBlockName)()&&e.push(Object(y.clone)(io)),e})),n.d(t,"AutosaveMonitor",(function(){return ho})),n.d(t,"DocumentOutline",(function(){return Eo})),n.d(t,"DocumentOutlineCheck",(function(){return wo})),n.d(t,"VisualEditorGlobalKeyboardShortcuts",(function(){return Io})),n.d(t,"EditorGlobalKeyboardShortcuts",(function(){return Ao})),n.d(t,"TextEditorGlobalKeyboardShortcuts",(function(){return Lo})),n.d(t,"EditorHistoryRedo",(function(){return Ro})),n.d(t,"EditorHistoryUndo",(function(){return No})),n.d(t,"EditorNotices",(function(){return Fo})),n.d(t,"ErrorBoundary",(function(){return Mo})),n.d(t,"LocalAutosaveMonitor",(function(){return zo})),n.d(t,"PageAttributesCheck",(function(){return Ko})),n.d(t,"PageAttributesOrder",(function(){return Yo})),n.d(t,"PageAttributesParent",(function(){return Zo})),n.d(t,"PageTemplate",(function(){return Jo})),n.d(t,"PostAuthor",(function(){return ri})),n.d(t,"PostAuthorCheck",(function(){return ti})),n.d(t,"PostComments",(function(){return oi})),n.d(t,"PostExcerpt",(function(){return ii})),n.d(t,"PostExcerptCheck",(function(){return ai})),n.d(t,"PostFeaturedImage",(function(){return mi})),n.d(t,"PostFeaturedImageCheck",(function(){return ui})),n.d(t,"PostFormat",(function(){return gi})),n.d(t,"PostFormatCheck",(function(){return vi})),n.d(t,"PostLastRevision",(function(){return ki})),n.d(t,"PostLastRevisionCheck",(function(){return ji})),n.d(t,"PostLockedModal",(function(){return Pi})),n.d(t,"PostPendingStatus",(function(){return Ti})),n.d(t,"PostPendingStatusCheck",(function(){return Ci})),n.d(t,"PostPingbacks",(function(){return xi})),n.d(t,"PostPreviewButton",(function(){return wi})),n.d(t,"PostPublishButton",(function(){return Ai})),n.d(t,"PostPublishButtonLabel",(function(){return Bi})),n.d(t,"PostPublishPanel",(function(){return nc})),n.d(t,"PostSavedState",(function(){return ic})),n.d(t,"PostSchedule",(function(){return Ui})),n.d(t,"PostScheduleCheck",(function(){return cc})),n.d(t,"PostScheduleLabel",(function(){return Fi})),n.d(t,"PostSticky",(function(){return sc})),n.d(t,"PostStickyCheck",(function(){return ac})),n.d(t,"PostSwitchToDraftButton",(function(){return rc})),n.d(t,"PostTaxonomies",(function(){return pc})),n.d(t,"PostTaxonomiesCheck",(function(){return bc})),n.d(t,"PostTextEditor",(function(){return vc})),n.d(t,"PostTitle",(function(){return Sc})),n.d(t,"PostTrash",(function(){return Pc})),n.d(t,"PostTrashCheck",(function(){return Cc})),n.d(t,"PostTypeSupportCheck",(function(){return Go})),n.d(t,"PostVisibility",(function(){return Ni})),n.d(t,"PostVisibilityLabel",(function(){return Di})),n.d(t,"PostVisibilityCheck",(function(){return Tc})),n.d(t,"TableOfContents",(function(){return Ac})),n.d(t,"UnsavedChangesWarning",(function(){return Rc})),n.d(t,"WordCount",(function(){return Bc})),n.d(t,"EditorProvider",(function(){return xa})),n.d(t,"blockAutocompleter",(function(){return io})),n.d(t,"userAutocompleter",(function(){return co})),n.d(t,"ServerSideRender",(function(){return Ia.a})),n.d(t,"RichText",(function(){return Ra})),n.d(t,"Autocomplete",(function(){return Na})),n.d(t,"AlignmentToolbar",(function(){return Da})),n.d(t,"BlockAlignmentToolbar",(function(){return Ua})),n.d(t,"BlockControls",(function(){return Fa})),n.d(t,"BlockEdit",(function(){return Ma})),n.d(t,"BlockEditorKeyboardShortcuts",(function(){return Va})),n.d(t,"BlockFormatControls",(function(){return Ha})),n.d(t,"BlockIcon",(function(){return Wa})),n.d(t,"BlockInspector",(function(){return za})),n.d(t,"BlockList",(function(){return Ka})),n.d(t,"BlockMover",(function(){return Ga})),n.d(t,"BlockNavigationDropdown",(function(){return qa})),n.d(t,"BlockSelectionClearer",(function(){return Ya})),n.d(t,"BlockSettingsMenu",(function(){return Qa})),n.d(t,"BlockTitle",(function(){return Xa})),n.d(t,"BlockToolbar",(function(){return $a})),n.d(t,"ColorPalette",(function(){return Za})),n.d(t,"ContrastChecker",(function(){return Ja})),n.d(t,"CopyHandler",(function(){return es})),n.d(t,"DefaultBlockAppender",(function(){return ts})),n.d(t,"FontSizePicker",(function(){return ns})),n.d(t,"Inserter",(function(){return rs})),n.d(t,"InnerBlocks",(function(){return os})),n.d(t,"InspectorAdvancedControls",(function(){return is})),n.d(t,"InspectorControls",(function(){return cs})),n.d(t,"PanelColorSettings",(function(){return as})),n.d(t,"PlainText",(function(){return ss})),n.d(t,"RichTextShortcut",(function(){return us})),n.d(t,"RichTextToolbarButton",(function(){return ls})),n.d(t,"__unstableRichTextInputEvent",(function(){return ds})),n.d(t,"MediaPlaceholder",(function(){return ps})),n.d(t,"MediaUpload",(function(){return bs})),n.d(t,"MediaUploadCheck",(function(){return fs})),n.d(t,"MultiBlocksSwitcher",(function(){return hs})),n.d(t,"MultiSelectScrollIntoView",(function(){return ms})),n.d(t,"NavigableToolbar",(function(){return vs})),n.d(t,"ObserveTyping",(function(){return Os})),n.d(t,"PreserveScrollInReorder",(function(){return gs})),n.d(t,"SkipToSelectedBlock",(function(){return js})),n.d(t,"URLInput",(function(){return ys})),n.d(t,"URLInputButton",(function(){return _s})),n.d(t,"URLPopover",(function(){return ks})),n.d(t,"Warning",(function(){return Es})),n.d(t,"WritingFlow",(function(){return ws})),n.d(t,"createCustomColorsHOC",(function(){return Ss})),n.d(t,"getColorClassName",(function(){return Ps})),n.d(t,"getColorObjectByAttributeValues",(function(){return Cs})),n.d(t,"getColorObjectByColorValue",(function(){return Ts})),n.d(t,"getFontSize",(function(){return xs})),n.d(t,"getFontSizeClass",(function(){return Bs})),n.d(t,"withColorContext",(function(){return Is})),n.d(t,"withColors",(function(){return As})),n.d(t,"withFontSizes",(function(){return Ls})),n.d(t,"mediaUpload",(function(){return Uc})),n.d(t,"cleanForSlug",(function(){return _i})),n.d(t,"storeConfig",(function(){return $r})),n.d(t,"transformStyles",(function(){return u.transformStyles}))},36: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;r=0;--i){var c=this.tryEntries[i],a=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var s=r.call(c,"catchLoc"),u=r.call(c,"finallyLoc");if(s&&u){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),S(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),f}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},48:function(e,t){!function(){e.exports=this.wp.plugins}()},5: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}))},52:function(e,t){!function(){e.exports=this.wp.htmlEntities}()},53:function(e,t){!function(){e.exports=this.wp.date}()},58:function(e,t){!function(){e.exports=this.wp.serverSideRender}()},6:function(e,t){!function(){e.exports=this.wp.blockEditor}()},61:function(e,t){!function(){e.exports=this.wp.nux}()},62:function(e,t,n){"use strict";t.__esModule=!0;var r=n(115);t.default=r.default},69:function(e,t){!function(){e.exports=this.wp.autop}()},7:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(10);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}))},22:function(e,t){!function(){e.exports=this.wp.richText}()},23:function(e,t,n){"use strict";var r=n(38);var o=n(39);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}))},26:function(e,t){!function(){e.exports=this.wp.url}()},27:function(e,t){!function(){e.exports=this.wp.hooks}()},28:function(e,t){!function(){e.exports=this.React}()},3:function(e,t){!function(){e.exports=this.wp.components}()},30: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}))},31: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}))},32:function(e,t){!function(){e.exports=this.wp.dataControls}()},325:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t=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}])),u(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=l(t),i=o.optimist,c=o.innerState;return i=i.concat([{beforeState:c,action:n}]),u(c=e(c,n),n),r({optimist:i},c)}(n,a);case i:return function(e,n){var r=l(e),o=r.optimist,i=r.innerState,c=[],a=!1,u=!1;return o.forEach((function(e){a?e.beforeState&&s(e.action,n.optimist.id)?(u=!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)&&(u=!0)})),u||console.error('Cannot commit transaction with id "'+n.optimist.id+'" because it does not exist'),t(o=c,i,n)}(n,a);case c:return function(n,r){var o=l(n),i=o.optimist,c=o.innerState,a=[],d=!1,p=!1,b=c;return 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),u(c,r)))})),p||console.error('Cannot revert transaction with id "'+r.optimist.id+'" because it does not exist'),t(i=a,b,r)}(n,a)}var d=l(n),p=d.optimist,b=d.innerState;if(n&&!p.length){var f=e(b,a);return f===b?n:(u(f,a),r({optimist:p},f))}return t(p,b,a)}},e.exports.BEGIN=o,e.exports.COMMIT=i,e.exports.REVERT=c},33:function(e,t,n){e.exports=n(87)()},34:function(e,t){!function(){e.exports=this.wp.apiFetch}()},343:function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"getDependencies",(function(){return ce})),n.d(r,"apply",(function(){return ae})),n.d(r,"update",(function(){return se}));var o={};n.r(o),n.d(o,"meta",(function(){return r}));var i={};n.r(i),n.d(i,"setupEditor",(function(){return Se})),n.d(i,"__experimentalTearDownEditor",(function(){return Pe})),n.d(i,"__experimentalSubscribeSources",(function(){return Ce})),n.d(i,"resetPost",(function(){return Te})),n.d(i,"resetAutosave",(function(){return xe})),n.d(i,"__experimentalRequestPostUpdateStart",(function(){return Be})),n.d(i,"__experimentalRequestPostUpdateFinish",(function(){return Ie})),n.d(i,"updatePost",(function(){return Ae})),n.d(i,"setupEditorState",(function(){return Le})),n.d(i,"editPost",(function(){return Re})),n.d(i,"__experimentalOptimisticUpdatePost",(function(){return Ne})),n.d(i,"savePost",(function(){return De})),n.d(i,"refreshPost",(function(){return Ue})),n.d(i,"trashPost",(function(){return Fe})),n.d(i,"autosave",(function(){return Me})),n.d(i,"__experimentalLocalAutosave",(function(){return Ve})),n.d(i,"redo",(function(){return He})),n.d(i,"undo",(function(){return We})),n.d(i,"createUndoLevel",(function(){return ze})),n.d(i,"updatePostLock",(function(){return Ke})),n.d(i,"__experimentalFetchReusableBlocks",(function(){return Ge})),n.d(i,"__experimentalReceiveReusableBlocks",(function(){return qe})),n.d(i,"__experimentalSaveReusableBlock",(function(){return Ye})),n.d(i,"__experimentalDeleteReusableBlock",(function(){return Qe})),n.d(i,"__experimentalUpdateReusableBlock",(function(){return Xe})),n.d(i,"__experimentalConvertBlockToStatic",(function(){return $e})),n.d(i,"__experimentalConvertBlockToReusable",(function(){return Ze})),n.d(i,"enablePublishSidebar",(function(){return Je})),n.d(i,"disablePublishSidebar",(function(){return et})),n.d(i,"lockPostSaving",(function(){return tt})),n.d(i,"unlockPostSaving",(function(){return nt})),n.d(i,"resetEditorBlocks",(function(){return rt})),n.d(i,"updateEditorSettings",(function(){return ot})),n.d(i,"resetBlocks",(function(){return ct})),n.d(i,"receiveBlocks",(function(){return at})),n.d(i,"updateBlock",(function(){return st})),n.d(i,"updateBlockAttributes",(function(){return ut})),n.d(i,"selectBlock",(function(){return lt})),n.d(i,"startMultiSelect",(function(){return dt})),n.d(i,"stopMultiSelect",(function(){return pt})),n.d(i,"multiSelect",(function(){return bt})),n.d(i,"clearSelectedBlock",(function(){return ft})),n.d(i,"toggleSelection",(function(){return ht})),n.d(i,"replaceBlocks",(function(){return mt})),n.d(i,"replaceBlock",(function(){return vt})),n.d(i,"moveBlocksDown",(function(){return Ot})),n.d(i,"moveBlocksUp",(function(){return gt})),n.d(i,"moveBlockToPosition",(function(){return jt})),n.d(i,"insertBlock",(function(){return yt})),n.d(i,"insertBlocks",(function(){return _t})),n.d(i,"showInsertionPoint",(function(){return kt})),n.d(i,"hideInsertionPoint",(function(){return Et})),n.d(i,"setTemplateValidity",(function(){return wt})),n.d(i,"synchronizeTemplate",(function(){return St})),n.d(i,"mergeBlocks",(function(){return Pt})),n.d(i,"removeBlocks",(function(){return Ct})),n.d(i,"removeBlock",(function(){return Tt})),n.d(i,"toggleBlockMode",(function(){return xt})),n.d(i,"startTyping",(function(){return Bt})),n.d(i,"stopTyping",(function(){return It})),n.d(i,"enterFormattedText",(function(){return At})),n.d(i,"exitFormattedText",(function(){return Lt})),n.d(i,"insertDefaultBlock",(function(){return Rt})),n.d(i,"updateBlockListSettings",(function(){return Nt}));var c={};n.r(c),n.d(c,"hasEditorUndo",(function(){return Ht})),n.d(c,"hasEditorRedo",(function(){return Wt})),n.d(c,"isEditedPostNew",(function(){return zt})),n.d(c,"hasChangedContent",(function(){return Kt})),n.d(c,"isEditedPostDirty",(function(){return Gt})),n.d(c,"isCleanNewPost",(function(){return qt})),n.d(c,"getCurrentPost",(function(){return Yt})),n.d(c,"getCurrentPostType",(function(){return Qt})),n.d(c,"getCurrentPostId",(function(){return Xt})),n.d(c,"getCurrentPostRevisionsCount",(function(){return $t})),n.d(c,"getCurrentPostLastRevisionId",(function(){return Zt})),n.d(c,"getPostEdits",(function(){return Jt})),n.d(c,"getCurrentPostAttribute",(function(){return en})),n.d(c,"getEditedPostAttribute",(function(){return nn})),n.d(c,"getAutosaveAttribute",(function(){return rn})),n.d(c,"getEditedPostVisibility",(function(){return on})),n.d(c,"isCurrentPostPending",(function(){return cn})),n.d(c,"isCurrentPostPublished",(function(){return an})),n.d(c,"isCurrentPostScheduled",(function(){return sn})),n.d(c,"isEditedPostPublishable",(function(){return un})),n.d(c,"isEditedPostSaveable",(function(){return ln})),n.d(c,"isEditedPostEmpty",(function(){return dn})),n.d(c,"isEditedPostAutosaveable",(function(){return pn})),n.d(c,"getAutosave",(function(){return bn})),n.d(c,"hasAutosave",(function(){return fn})),n.d(c,"isEditedPostBeingScheduled",(function(){return hn})),n.d(c,"isEditedPostDateFloating",(function(){return mn})),n.d(c,"isSavingPost",(function(){return vn})),n.d(c,"didPostSaveRequestSucceed",(function(){return On})),n.d(c,"didPostSaveRequestFail",(function(){return gn})),n.d(c,"isAutosavingPost",(function(){return jn})),n.d(c,"isPreviewingPost",(function(){return yn})),n.d(c,"getEditedPostPreviewLink",(function(){return _n})),n.d(c,"getSuggestedPostFormat",(function(){return kn})),n.d(c,"getBlocksForSerialization",(function(){return En})),n.d(c,"getEditedPostContent",(function(){return wn})),n.d(c,"__experimentalGetReusableBlock",(function(){return Sn})),n.d(c,"__experimentalIsSavingReusableBlock",(function(){return Pn})),n.d(c,"__experimentalIsFetchingReusableBlock",(function(){return Cn})),n.d(c,"__experimentalGetReusableBlocks",(function(){return Tn})),n.d(c,"getStateBeforeOptimisticTransaction",(function(){return xn})),n.d(c,"isPublishingPost",(function(){return Bn})),n.d(c,"isPermalinkEditable",(function(){return In})),n.d(c,"getPermalink",(function(){return An})),n.d(c,"getPermalinkParts",(function(){return Ln})),n.d(c,"inSomeHistory",(function(){return Rn})),n.d(c,"isPostLocked",(function(){return Nn})),n.d(c,"isPostSavingLocked",(function(){return Dn})),n.d(c,"isPostAutosavingLocked",(function(){return Un})),n.d(c,"isPostLockTakeover",(function(){return Fn})),n.d(c,"getPostLockUser",(function(){return Mn})),n.d(c,"getActivePostLock",(function(){return Vn})),n.d(c,"canUserUseUnfilteredHTML",(function(){return Hn})),n.d(c,"isPublishSidebarEnabled",(function(){return Wn})),n.d(c,"getEditorBlocks",(function(){return zn})),n.d(c,"__unstableIsEditorReady",(function(){return Kn})),n.d(c,"getEditorSettings",(function(){return Gn})),n.d(c,"getBlockName",(function(){return Yn})),n.d(c,"isBlockValid",(function(){return Qn})),n.d(c,"getBlockAttributes",(function(){return Xn})),n.d(c,"getBlock",(function(){return $n})),n.d(c,"getBlocks",(function(){return Zn})),n.d(c,"__unstableGetBlockWithoutInnerBlocks",(function(){return Jn})),n.d(c,"getClientIdsOfDescendants",(function(){return er})),n.d(c,"getClientIdsWithDescendants",(function(){return tr})),n.d(c,"getGlobalBlockCount",(function(){return nr})),n.d(c,"getBlocksByClientId",(function(){return rr})),n.d(c,"getBlockCount",(function(){return or})),n.d(c,"getBlockSelectionStart",(function(){return ir})),n.d(c,"getBlockSelectionEnd",(function(){return cr})),n.d(c,"getSelectedBlockCount",(function(){return ar})),n.d(c,"hasSelectedBlock",(function(){return sr})),n.d(c,"getSelectedBlockClientId",(function(){return ur})),n.d(c,"getSelectedBlock",(function(){return lr})),n.d(c,"getBlockRootClientId",(function(){return dr})),n.d(c,"getBlockHierarchyRootClientId",(function(){return pr})),n.d(c,"getAdjacentBlockClientId",(function(){return br})),n.d(c,"getPreviousBlockClientId",(function(){return fr})),n.d(c,"getNextBlockClientId",(function(){return hr})),n.d(c,"getSelectedBlocksInitialCaretPosition",(function(){return mr})),n.d(c,"getMultiSelectedBlockClientIds",(function(){return vr})),n.d(c,"getMultiSelectedBlocks",(function(){return Or})),n.d(c,"getFirstMultiSelectedBlockClientId",(function(){return gr})),n.d(c,"getLastMultiSelectedBlockClientId",(function(){return jr})),n.d(c,"isFirstMultiSelectedBlock",(function(){return yr})),n.d(c,"isBlockMultiSelected",(function(){return _r})),n.d(c,"isAncestorMultiSelected",(function(){return kr})),n.d(c,"getMultiSelectedBlocksStartClientId",(function(){return Er})),n.d(c,"getMultiSelectedBlocksEndClientId",(function(){return wr})),n.d(c,"getBlockOrder",(function(){return Sr})),n.d(c,"getBlockIndex",(function(){return Pr})),n.d(c,"isBlockSelected",(function(){return Cr})),n.d(c,"hasSelectedInnerBlock",(function(){return Tr})),n.d(c,"isBlockWithinSelection",(function(){return xr})),n.d(c,"hasMultiSelection",(function(){return Br})),n.d(c,"isMultiSelecting",(function(){return Ir})),n.d(c,"isSelectionEnabled",(function(){return Ar})),n.d(c,"getBlockMode",(function(){return Lr})),n.d(c,"isTyping",(function(){return Rr})),n.d(c,"isCaretWithinFormattedText",(function(){return Nr})),n.d(c,"getBlockInsertionPoint",(function(){return Dr})),n.d(c,"isBlockInsertionPointVisible",(function(){return Ur})),n.d(c,"isValidTemplate",(function(){return Fr})),n.d(c,"getTemplate",(function(){return Mr})),n.d(c,"getTemplateLock",(function(){return Vr})),n.d(c,"canInsertBlockType",(function(){return Hr})),n.d(c,"getInserterItems",(function(){return Wr})),n.d(c,"hasInserterItems",(function(){return zr})),n.d(c,"getBlockListSettings",(function(){return Kr}));var a={};n.r(a),n.d(a,"isRequestingDownloadableBlocks",(function(){return Qc})),n.d(a,"getDownloadableBlocks",(function(){return Xc})),n.d(a,"hasInstallBlocksPermission",(function(){return $c})),n.d(a,"getInstalledBlockTypes",(function(){return Zc}));var s={};n.r(s),n.d(s,"fetchDownloadableBlocks",(function(){return sa})),n.d(s,"receiveDownloadableBlocks",(function(){return ua})),n.d(s,"setInstallBlocksPermission",(function(){return la})),n.d(s,"downloadBlock",(function(){return da})),n.d(s,"installBlock",(function(){return pa})),n.d(s,"uninstallBlock",(function(){return ba})),n.d(s,"addInstalledBlockType",(function(){return fa})),n.d(s,"removeInstalledBlockType",(function(){return ha}));var u=n(6),l=n(9),d=(n(89),n(142),n(61)),p=n(22),b=n(42),f=n(7),h=n(4),m=n(32),v=n(10),O=n(31),g=n(83),j=n.n(g),y=n(2),_={insertUsage:{},isPublishSidebarEnabled:!0},k=Object(f.a)({},u.SETTINGS_DEFAULTS,{richEditingEnabled:!0,codeEditingEnabled:!0,enableCustomFields:!1});function E(e){return e&&"object"===Object(O.a)(e)&&"raw"in e?e.raw:e}var w=Object(h.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(f.a)({},e,Object(y.keyBy)(t.results,"id"));case"UPDATE_REUSABLE_BLOCK":var n=t.id,r=t.changes;return Object(f.a)({},e,Object(v.a)({},n,Object(f.a)({},e[n],r)));case"SAVE_REUSABLE_BLOCK_SUCCESS":var o=t.id,i=t.updatedId;if(o===i)return e;var c=e[o];return Object(f.a)({},Object(y.omit)(e,o),Object(v.a)({},i,Object(f.a)({},c,{id:i})));case"REMOVE_REUSABLE_BLOCK":var a=t.id;return Object(y.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(f.a)({},e,Object(v.a)({},n,!0)):e;case"FETCH_REUSABLE_BLOCKS_SUCCESS":case"FETCH_REUSABLE_BLOCKS_FAILURE":var r=t.id;return Object(y.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(f.a)({},e,Object(v.a)({},t.id,!0));case"SAVE_REUSABLE_BLOCK_SUCCESS":case"SAVE_REUSABLE_BLOCK_FAILURE":var n=t.id;return Object(y.omit)(e,n)}return e}});var S=j()(Object(h.combineReducers)({postId: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"SETUP_EDITOR_STATE":case"RESET_POST":case"UPDATE_POST":return t.post.id}return e},postType: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"SETUP_EDITOR_STATE":case"RESET_POST":case"UPDATE_POST":return t.post.type}return e},preferences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_;switch((arguments.length>1?arguments[1]:void 0).type){case"ENABLE_PUBLISH_SIDEBAR":return Object(f.a)({},e,{isPublishSidebarEnabled:!0});case"DISABLE_PUBLISH_SIDEBAR":return Object(f.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":case"REQUEST_POST_UPDATE_FINISH":return{pending:"REQUEST_POST_UPDATE_START"===t.type,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:w,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(f.a)({},e,{isValid:t.isValid})}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(f.a)({},e,Object(v.a)({},t.lockName,!0));case"UNLOCK_POST_SAVING":return Object(y.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;case"TEAR_DOWN_EDITOR":return!1}return e},editorSettings: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"UPDATE_EDITOR_SETTINGS":return Object(f.a)({},e,t.settings)}return e},postAutosavingLock: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_AUTOSAVING":return Object(f.a)({},e,Object(v.a)({},t.lockName,!0));case"UNLOCK_POST_AUTOSAVING":return Object(y.omit)(e,t.lockName)}return e}})),P=n(72),C=n.n(P),T=n(20),x=n.n(T),B=n(43),I=n(34),A=n.n(I),L=n(1),R=n(23),N=n(17),D=n(37),U=n.n(D),F=n(41),M=n.n(F),V=new Set(["meta"]),H="core/editor",W="post-update",z="SAVE_POST_NOTICE_ID",K="TRASH_POST_NOTICE_ID",G=/%(?:postname|pagename)%/,q=6e4,Y=["title","excerpt","content"];function Q(e){var t=e.previousPost,n=e.post,r=e.postType;if(Object(y.get)(e.options,["isAutosave"]))return[];var o,i=["publish","private","future"],c=Object(y.includes)(i,t.status),a=Object(y.includes)(i,n.status),s=Object(y.get)(r,["viewable"],!1);if(c||a?c&&!a?(o=r.labels.item_reverted_to_draft,s=!1):o=!c&&a?{publish:r.labels.item_published,private:r.labels.item_published_privately,future:r.labels.item_scheduled}[n.status]:r.labels.item_updated:o=null,o){var u=[];return s&&u.push({label:r.labels.view_item,url:n.link}),[o,{id:z,type:"snackbar",actions:u}]}return[]}function X(e){var t=e.post,n=e.edits,r=e.error;if(r&&"rest_autosave_no_changes"===r.code)return[];var o=["publish","private","future"],i=-1!==o.indexOf(t.status),c={publish:Object(L.__)("Publishing failed."),private:Object(L.__)("Publishing failed."),future:Object(L.__)("Scheduling failed.")},a=i||-1===o.indexOf(n.status)?Object(L.__)("Updating failed."):c[n.status];return r.message&&!/<\/?[^>]*>/.test(r.message)&&(a=Object(L.sprintf)(Object(L.__)("%1$s Error message: %2$s"),a,r.message)),[a,{id:z}]}var $=n(44),Z=n.n($),J=n(69),ee=Z()((function(e){1===e.length&&Object(l.isUnmodifiedDefaultBlock)(e[0])&&(e=[]);var t=Object(l.serialize)(e);return 1===e.length&&e[0].name===Object(l.getFreeformContentHandlerName)()&&(t=Object(J.removep)(t)),t}),{maxSize:1});function te(e){return"wp-autosave-block-editor-post-".concat(e)}function ne(e){window.sessionStorage.removeItem(te(e))}var re={AWAIT_NEXT_STATE_CHANGE:Object(h.createRegistryControl)((function(e){return function(){return new Promise((function(t){var n=e.subscribe((function(){n(),t()}))}))}})),GET_REGISTRY:Object(h.createRegistryControl)((function(e){return function(){return e}})),LOCAL_AUTOSAVE_SET:function(e){!function(e,t,n,r){window.sessionStorage.setItem(te(e),JSON.stringify({post_title:t,content:n,excerpt:r}))}(e.postId,e.title,e.content,e.excerpt)}},oe=x.a.mark(ce),ie=x.a.mark(se);function ce(){return x.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(m.select)("core/editor","getEditedPostAttribute","meta");case 2:return e.t0=e.sent,e.abrupt("return",{meta:e.t0});case 4:case"end":return e.stop()}}),oe)}function ae(e,t){return t.meta[e.meta]}function se(e,t){return x.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Re({meta:Object(v.a)({},e.meta,t)});case 2:case"end":return n.stop()}}),ie)}var ue=x.a.mark(Ee),le=x.a.mark(we),de=x.a.mark(Se),pe=x.a.mark(Ce),be=x.a.mark(xe),fe=x.a.mark(Re),he=x.a.mark(De),me=x.a.mark(Ue),ve=x.a.mark(Fe),Oe=x.a.mark(Me),ge=x.a.mark(Ve),je=x.a.mark(He),ye=x.a.mark(We),_e=x.a.mark(rt),ke=new WeakMap;function Ee(e){var t,n,r,i,c,a,s,u,l,d,p,b,h,O;return x.a.wrap((function(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,{type:"GET_REGISTRY"};case 2:if(t=g.sent,ke.has(t)){g.next=5;break}return g.abrupt("return",e);case 5:n=ke.get(t),r=e,i=0;case 8:if(!(i0&&void 0!==d[0]?d[0]:Object.values(o)).length){p.next=3;break}return p.abrupt("return");case 3:return p.next=5,{type:"GET_REGISTRY"};case 5:t=p.sent,ke.has(t)||ke.set(t,new WeakMap),n=ke.get(t),r=!0,i=!1,c=void 0,p.prev=11,a=e[Symbol.iterator]();case 13:if(r=(s=a.next()).done){p.next=21;break}return u=s.value,p.delegateYield(u.getDependencies(),"t0",16);case 16:l=p.t0,n.set(u,l);case 18:r=!0,p.next=13;break;case 21:p.next=27;break;case 23:p.prev=23,p.t1=p.catch(11),i=!0,c=p.t1;case 27:p.prev=27,p.prev=28,r||null==a.return||a.return();case 30:if(p.prev=30,!i){p.next=33;break}throw c;case 33:return p.finish(30);case 34:return p.finish(27);case 35:case"end":return p.stop()}}),le,null,[[11,23,27,35],[28,,30,34]])}function Se(e,t,n){var r,o;return x.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return r=Object(y.has)(t,["content"])?t.content:e.content.raw,o=Object(l.parse)(r),"auto-draft"===e.status&&n&&(o=Object(l.synchronizeBlocksWithTemplate)(o,n)),i.next=6,Te(e);case 6:return i.delegateYield(we(),"t0",7);case 7:return i.next=9,{type:"SETUP_EDITOR",post:e,edits:t,template:n};case 9:return i.next=11,rt(o,{__unstableShouldCreateUndoLevel:!1});case 11:return i.next=13,Le(e);case 13:if(!t||!Object.keys(t).some((function(n){return t[n]!==(Object(y.has)(e,[n,"raw"])?e[n].raw:e[n])}))){i.next=16;break}return i.next=16,Re(t);case 16:return i.delegateYield(Ce(),"t1",17);case 17:case"end":return i.stop()}}),de)}function Pe(){return{type:"TEAR_DOWN_EDITOR"}}function Ce(){var e,t,n,r,i,c,a,s;return x.a.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=3,{type:"AWAIT_NEXT_STATE_CHANGE"};case 3:return u.next=5,Object(m.select)(H,"__unstableIsEditorReady");case 5:if(u.sent){u.next=8;break}return u.abrupt("break",36);case 8:return u.next=10,{type:"GET_REGISTRY"};case 10:e=u.sent,t=!1,n=0,r=Object.values(o);case 13:if(!(n0&&void 0!==arguments[0]?arguments[0]:{}}}function Ie(){return{type:"REQUEST_POST_UPDATE_FINISH",options:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}}}function Ae(e){return{type:"UPDATE_POST",edits:e}}function Le(e){return{type:"SETUP_EDITOR_STATE",post:e}}function Re(e,t){var n,r,o;return x.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,Object(m.select)(H,"getCurrentPost");case 2:return n=i.sent,r=n.id,o=n.type,i.next=7,Object(m.dispatch)("core","editEntityRecord","postType",o,r,e,t);case 7:case"end":return i.stop()}}),fe)}function Ne(e){return Object(f.a)({},Ae(e),{optimist:{id:W}})}function De(){var e,t,n,r,o,i,c,a=arguments;return x.a.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return e=a.length>0&&void 0!==a[0]?a[0]:{},s.next=3,Object(m.select)(H,"isEditedPostSaveable");case 3:if(s.sent){s.next=5;break}return s.abrupt("return");case 5:return s.next=7,Object(m.select)(H,"getEditedPostContent");case 7:if(s.t0=s.sent,t={content:s.t0},e.isAutosave){s.next=12;break}return s.next=12,Object(m.dispatch)(H,"editPost",t,{undoIgnore:!0});case 12:return s.next=14,Be(e);case 14:return s.next=16,Object(m.select)(H,"getCurrentPost");case 16:return n=s.sent,s.t1=f.a,s.t2={id:n.id},s.next=21,Object(m.select)("core","getEntityRecordNonTransientEdits","postType",n.type,n.id);case 21:return s.t3=s.sent,s.t4=t,t=(0,s.t1)(s.t2,s.t3,s.t4),s.next=26,Object(m.dispatch)("core","saveEntityRecord","postType",n.type,t,e);case 26:return s.next=28,Ie(e);case 28:return s.next=30,Object(m.select)("core","getLastEntitySaveError","postType",n.type,n.id);case 30:if(!(r=s.sent)){s.next=38;break}if(!(o=X({post:n,edits:t,error:r})).length){s.next=36;break}return s.next=36,m.dispatch.apply(void 0,["core/notices","createErrorNotice"].concat(Object(N.a)(o)));case 36:s.next=56;break;case 38:return s.next=40,Object(m.select)(H,"getCurrentPost");case 40:return i=s.sent,s.t5=Q,s.t6=n,s.t7=i,s.next=46,Object(m.select)("core","getPostType",i.type);case 46:if(s.t8=s.sent,s.t9=e,s.t10={previousPost:s.t6,post:s.t7,postType:s.t8,options:s.t9},!(c=(0,s.t5)(s.t10)).length){s.next=53;break}return s.next=53,m.dispatch.apply(void 0,["core/notices","createSuccessNotice"].concat(Object(N.a)(c)));case 53:if(e.isAutosave){s.next=56;break}return s.next=56,Object(m.dispatch)("core/block-editor","__unstableMarkLastChangeAsPersistent");case 56:case"end":return s.stop()}}),he)}function Ue(){var e,t,n,r;return x.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,Object(m.select)(H,"getCurrentPost");case 2:return e=o.sent,o.next=5,Object(m.select)(H,"getCurrentPostType");case 5:return t=o.sent,o.next=8,Object(m.select)("core","getPostType",t);case 8:return n=o.sent,o.next=11,Object(m.apiFetch)({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,Object(m.dispatch)(H,"resetPost",r);case 14:case"end":return o.stop()}}),me)}function Fe(){var e,t,n;return x.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Object(m.select)(H,"getCurrentPostType");case 2:return e=r.sent,r.next=5,Object(m.select)("core","getPostType",e);case 5:return t=r.sent,r.next=8,Object(m.dispatch)("core/notices","removeNotice",K);case 8:return r.prev=8,r.next=11,Object(m.select)(H,"getCurrentPost");case 11:return n=r.sent,r.next=14,Object(m.apiFetch)({path:"/wp/v2/".concat(t.rest_base,"/").concat(n.id),method:"DELETE"});case 14:return r.next=16,Object(m.dispatch)(H,"savePost");case 16:r.next=22;break;case 18:return r.prev=18,r.t0=r.catch(8),r.next=22,m.dispatch.apply(void 0,["core/notices","createErrorNotice"].concat(Object(N.a)([(o={error:r.t0}).error.message&&"unknown_error"!==o.error.code?o.error.message:Object(L.__)("Trashing failed"),{id:K}])));case 22:case"end":return r.stop()}var o}),ve,null,[[8,18]])}function Me(e){return x.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(m.dispatch)(H,"savePost",Object(f.a)({isAutosave:!0},e));case 2:case"end":return t.stop()}}),Oe)}function Ve(){var e,t,n,r;return x.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,Object(m.select)(H,"getCurrentPost");case 2:return e=o.sent,o.next=5,Object(m.select)(H,"getEditedPostAttribute","title");case 5:return t=o.sent,o.next=8,Object(m.select)(H,"getEditedPostAttribute","content");case 8:return n=o.sent,o.next=11,Object(m.select)(H,"getEditedPostAttribute","excerpt");case 11:return r=o.sent,o.next=14,{type:"LOCAL_AUTOSAVE_SET",postId:e.id,title:t,content:n,excerpt:r};case 14:case"end":return o.stop()}}),ge)}function He(){return x.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(m.dispatch)("core","redo");case 2:case"end":return e.stop()}}),je)}function We(){return x.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(m.dispatch)("core","undo");case 2:case"end":return e.stop()}}),ye)}function ze(){return{type:"CREATE_UNDO_LEVEL"}}function Ke(e){return{type:"UPDATE_POST_LOCK",lock:e}}function Ge(e){return{type:"FETCH_REUSABLE_BLOCKS",id:e}}function qe(e){return{type:"RECEIVE_REUSABLE_BLOCKS",results:e}}function Ye(e){return{type:"SAVE_REUSABLE_BLOCK",id:e}}function Qe(e){return{type:"DELETE_REUSABLE_BLOCK",id:e}}function Xe(e,t){return{type:"UPDATE_REUSABLE_BLOCK",id:e,changes:t}}function $e(e){return{type:"CONVERT_BLOCK_TO_STATIC",clientId:e}}function Ze(e){return{type:"CONVERT_BLOCK_TO_REUSABLE",clientIds:Object(y.castArray)(e)}}function Je(){return{type:"ENABLE_PUBLISH_SIDEBAR"}}function et(){return{type:"DISABLE_PUBLISH_SIDEBAR"}}function tt(e){return{type:"LOCK_POST_SAVING",lockName:e}}function nt(e){return{type:"UNLOCK_POST_SAVING",lockName:e}}function rt(e){var t,n,r,i,c,a,s,u,l,d,p,b,f,h,v,O,g,j,y,_,k,E,w=arguments;return x.a.wrap((function(S){for(;;)switch(S.prev=S.next){case 0:return t=w.length>1&&void 0!==w[1]?w[1]:{},S.next=3,Object(m.select)("core/block-editor","__experimentalGetLastBlockAttributeChanges");case 3:if(!(n=S.sent)){S.next=36;break}r=new Set,i=new Set,c=0,a=Object.entries(n);case 8:if(!(c1)return!1;var n=t[0].name;if(n!==Object(l.getDefaultBlockName)()&&n!==Object(l.getFreeformContentHandlerName)())return!1}return!wn(e)}var pn=Object(h.createRegistrySelector)((function(e){return function(t){if(!ln(t))return!1;if(Un(t))return!1;var n=Qt(t),r=Xt(t),o=e("core").hasFetchedAutosaves(n,r),i=Object(y.get)(e("core").getCurrentUser(),["id"]),c=e("core").getAutosave(n,r,i);return!!o&&(!c||(!!Kt(t)||["title","excerpt"].some((function(e){return E(c[e])!==nn(t,e)}))))}})),bn=Object(h.createRegistrySelector)((function(e){return function(t){U()("`wp.data.select( 'core/editor' ).getAutosave()`",{alternative:"`wp.data.select( 'core' ).getAutosave( postType, postId, userId )`",plugin:"Gutenberg"});var n=Qt(t),r=Xt(t),o=Object(y.get)(e("core").getCurrentUser(),["id"]),i=e("core").getAutosave(n,r,o);return Object(y.mapValues)(Object(y.pick)(i,Y),E)}})),fn=Object(h.createRegistrySelector)((function(e){return function(t){U()("`wp.data.select( 'core/editor' ).hasAutosave()`",{alternative:"`!! wp.data.select( 'core' ).getAutosave( postType, postId, userId )`",plugin:"Gutenberg"});var n=Qt(t),r=Xt(t),o=Object(y.get)(e("core").getCurrentUser(),["id"]);return!!e("core").getAutosave(n,r,o)}}));function hn(e){var t=nn(e,"date"),n=new Date(Number(Object(Ut.getDate)(t))-q);return Object(Ut.isInTheFuture)(n)}function mn(e){var t=nn(e,"date"),n=nn(e,"modified"),r=nn(e,"status");return("draft"===r||"auto-draft"===r||"pending"===r)&&t===n}var vn=Object(h.createRegistrySelector)((function(e){return function(t){var n=Qt(t),r=Xt(t);return e("core").isSavingEntityRecord("postType",n,r)}})),On=Object(h.createRegistrySelector)((function(e){return function(t){var n=Qt(t),r=Xt(t);return!e("core").getLastEntitySaveError("postType",n,r)}})),gn=Object(h.createRegistrySelector)((function(e){return function(t){var n=Qt(t),r=Xt(t);return!!e("core").getLastEntitySaveError("postType",n,r)}}));function jn(e){return!!vn(e)&&!!Object(y.get)(e.saving,["options","isAutosave"])}function yn(e){return!!vn(e)&&!!e.saving.options.isPreview}function _n(e){if(!e.saving.pending&&!vn(e)){var t=rn(e,"preview_link");t||(t=nn(e,"link"))&&(t=Object(Ft.addQueryArgs)(t,{preview:!0}));var n=nn(e,"featured_media");return t&&n?Object(Ft.addQueryArgs)(t,{_thumbnail_id:n}):t}}function kn(e){var t,n=zn(e);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 En(e){U()("`core/editor` getBlocksForSerialization selector",{plugin:"Gutenberg",alternative:"getEditorBlocks",hint:"Blocks serialization pre-processing occurs at save time"});var t=e.editor.present.blocks.value;return 1===t.length&&Object(l.isUnmodifiedDefaultBlock)(t[0])?[]:t}var wn=Object(h.createRegistrySelector)((function(e){return function(t){var n=Xt(t),r=Qt(t),o=e("core").getEditedEntityRecord("postType",r,n);if(o){if("function"==typeof o.content)return o.content(o);if(o.blocks)return ee(o.blocks);if(o.content)return o.content}return""}})),Sn=Object(Dt.a)((function(e,t){var n=e.reusableBlocks.data[t];if(!n)return null;var r=isNaN(parseInt(t));return Object(f.a)({},n,{id:r?t:+t,isTemporary:r})}),(function(e,t){return[e.reusableBlocks.data[t]]}));function Pn(e,t){return e.reusableBlocks.isSaving[t]||!1}function Cn(e,t){return!!e.reusableBlocks.isFetching[t]}var Tn=Object(Dt.a)((function(e){return Object(y.map)(e.reusableBlocks.data,(function(t,n){return Sn(e,n)}))}),(function(e){return[e.reusableBlocks.data]}));function xn(e,t){var n=Object(y.find)(e.optimist,(function(e){return e.beforeState&&Object(y.get)(e.action,["optimist","id"])===t}));return n?n.beforeState:null}function Bn(e){if(!vn(e))return!1;if(!an(e))return!1;var t=xn(e,W);return!!t&&!an(null,t.currentPost)}function In(e){var t=nn(e,"permalink_template");return G.test(t)}function An(e){var t=Ln(e);if(!t)return null;var n=t.prefix,r=t.postName,o=t.suffix;return In(e)?n+r+o:n}function Ln(e){var t=nn(e,"permalink_template");if(!t)return null;var n=nn(e,"slug")||nn(e,"generated_slug"),r=t.split(G),o=Object(R.a)(r,2);return{prefix:o[0],postName:n,suffix:o[1]}}function Rn(e,t){var n=e.optimist;return!!n&&n.some((function(e){var n=e.beforeState;return n&&t(n)}))}function Nn(e){return e.postLock.isLocked}function Dn(e){return Object.keys(e.postSavingLock).length>0}function Un(e){return Object.keys(e.postAutosavingLock).length>0}function Fn(e){return e.postLock.isTakeover}function Mn(e){return e.postLock.user}function Vn(e){return e.postLock.activePostLock}function Hn(e){return Object(y.has)(Yt(e),["_links","wp:action-unfiltered-html"])}function Wn(e){return e.preferences.hasOwnProperty("isPublishSidebarEnabled")?e.preferences.isPublishSidebarEnabled:_.isPublishSidebarEnabled}function zn(e){return nn(e,"blocks")||Vt}function Kn(e){return e.isReady}function Gn(e){return e.editorSettings}function qn(e){return Object(h.createRegistrySelector)((function(t){return function(n){var r;U()("`wp.data.select( 'core/editor' )."+e+"`",{alternative:"`wp.data.select( 'core/block-editor' )."+e+"`"});for(var 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?to:t,r=e.getInserterItems,o=void 0===r?no:r,i=e.getSelectedBlockName,c=void 0===i?ro:i;return{name:"blocks",className:"editor-autocompleters__block",triggerPrefix:"/",options:function(){oo();var e=c();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(N.a)(r),[t])},getOptionLabel:function(e){var t=e.icon,n=e.title;return[Object(eo.createElement)(u.BlockIcon,{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(l.createBlock)(t,n)}},isOptionDisabled:function(e){return e.isDisabled}}}(),co={name:"users",className:"editor-autocompleters__user",triggerPrefix:"@",options:function(e){var t="";return e&&(t="?search="+encodeURIComponent(e)),A()({path:"/wp/v2/users"+t})},isDebounced:!0,getOptionKeywords:function(e){return[e.slug,e.name]},getOptionLabel:function(e){return[Object(eo.createElement)("img",{key:"avatar",className:"editor-autocompleters__user-avatar",alt:"",src:e.avatar_urls[24]}),Object(eo.createElement)("span",{key:"name",className:"editor-autocompleters__user-name"},e.name),Object(eo.createElement)("span",{key:"slug",className:"editor-autocompleters__user-slug"},e.slug)]},getOptionCompletion:function(e){return"@".concat(e.slug)}},ao=n(12),so=n(11),uo=n(13),lo=n(14),po=n(15),bo=n(8),fo=function(e){function t(){return Object(ao.a)(this,t),Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))}return Object(po.a)(t,e),Object(so.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,n=this.props,r=n.interval,o=n.shouldThrottle,i=void 0!==o&&o;!i&&this.pendingSave&&(clearTimeout(this.pendingSave),delete this.pendingSave),!e||i&&this.pendingSave||(this.pendingSave=setTimeout((function(){t.props.autosave(),delete t.pendingSave}),1e3*r))}},{key:"render",value:function(){return null}}]),t}(eo.Component),ho=Object(bo.compose)([Object(h.withSelect)((function(e,t){var n=e("core").getReferenceByDistinctEdits,r=e("core/editor"),o=r.isEditedPostDirty,i=r.isEditedPostAutosaveable,c=r.isAutosavingPost,a=r.getEditorSettings,s=t.interval,u=void 0===s?a().autosaveInterval:s;return{isDirty:o(),isAutosaveable:i(),editsReference:n(),isAutosaving:c(),interval:u}})),Object(h.withDispatch)((function(e,t){return{autosave:function(){var n=t.autosave,r=void 0===n?e("core/editor").autosave:n;r()}}}))])(fo),mo=n(16),vo=n.n(mo),Oo=function(e){var t=e.children,n=e.isValid,r=e.level,o=e.path,i=void 0===o?[]:o,c=e.href,a=e.onSelect;return Object(eo.createElement)("li",{className:vo()("document-outline__item","is-".concat(r.toLowerCase()),{"is-invalid":!n})},Object(eo.createElement)("a",{href:c,className:"document-outline__button",onClick:a},Object(eo.createElement)("span",{className:"document-outline__emdash","aria-hidden":"true"}),i.map((function(e,t){var n=e.clientId;return Object(eo.createElement)("strong",{key:t,className:"document-outline__level"},Object(eo.createElement)(u.BlockTitle,{clientId:n}))})),Object(eo.createElement)("strong",{className:"document-outline__level"},r),Object(eo.createElement)("span",{className:"document-outline__item-content"},t)))},go=Object(eo.createElement)("em",null,Object(L.__)("(Empty heading)")),jo=[Object(eo.createElement)("br",{key:"incorrect-break"}),Object(eo.createElement)("em",{key:"incorrect-message"},Object(L.__)("(Incorrect heading level)"))],yo=[Object(eo.createElement)("br",{key:"incorrect-break-h1"}),Object(eo.createElement)("em",{key:"incorrect-message-h1"},Object(L.__)("(Your theme may already use a H1 for the post title)"))],_o=[Object(eo.createElement)("br",{key:"incorrect-break-multiple-h1"}),Object(eo.createElement)("em",{key:"incorrect-message-multiple-h1"},Object(L.__)("(Multiple H1 headings are not recommended)"))],ko=function(e){return!e.attributes.content||0===e.attributes.content.length},Eo=Object(bo.compose)(Object(h.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(y.get)(r,["supports","title"],!1)}})))((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(y.flatMap)(t,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"core/heading"===t.name?Object(f.a)({},t,{path:n,level:t.attributes.level,isEmpty:ko(t)}):e(t.innerBlocks,[].concat(Object(N.a)(n),[t]))}))}(n);if(a.length<1)return null;var s=1,u=document.querySelector(".editor-post-title__input"),l=i&&r&&u,d=Object(y.countBy)(a,"level")[1]>1;return Object(eo.createElement)("div",{className:"document-outline"},Object(eo.createElement)("ul",null,l&&Object(eo.createElement)(Oo,{level:Object(L.__)("Title"),isValid:!0,onSelect:o,href:"#".concat(u.id),isDisabled:c},r),a.map((function(e,t){var n=e.level>s+1,r=!(e.isEmpty||n||!e.level||1===e.level&&(d||l));return s=e.level,Object(eo.createElement)(Oo,{key:t,level:"H".concat(e.level),isValid:r,path:e.path,isDisabled:c,href:"#block-".concat(e.clientId),onSelect:o},e.isEmpty?go:Object(p.getTextContent)(Object(p.create)({html:e.attributes.content})),n&&jo,1===e.level&&d&&_o,l&&1===e.level&&!d&&yo)}))))}));var wo=Object(h.withSelect)((function(e){return{blocks:e("core/block-editor").getBlocks()}}))((function(e){var t=e.blocks,n=e.children;return Object(y.filter)(t,(function(e){return"core/heading"===e.name})).length<1?null:n})),So=n(5),Po=n(3),Co=n(19);var To=Object(bo.compose)([Object(h.withSelect)((function(e){return{isDirty:(0,e("core/editor").isEditedPostDirty)()}})),Object(h.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(eo.createElement)(Po.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(v.a)({},Co.rawShortcut.primary("s"),(function(e){e.preventDefault(),t()}))})})),xo=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).undoOrRedo=e.undoOrRedo.bind(Object(So.a)(e)),e}return Object(po.a)(t,e),Object(so.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(eo.createElement)(eo.Fragment,null,Object(eo.createElement)(u.BlockEditorKeyboardShortcuts,null),Object(eo.createElement)(Po.KeyboardShortcuts,{shortcuts:(e={},Object(v.a)(e,Co.rawShortcut.primary("z"),this.undoOrRedo),Object(v.a)(e,Co.rawShortcut.primaryShift("z"),this.undoOrRedo),e)}),Object(eo.createElement)(To,null))}}]),t}(eo.Component),Bo=Object(h.withDispatch)((function(e){var t=e("core/editor");return{onRedo:t.redo,onUndo:t.undo}}))(xo),Io=Bo;function Ao(){return U()("EditorGlobalKeyboardShortcuts",{alternative:"VisualEditorGlobalKeyboardShortcuts",plugin:"Gutenberg"}),Object(eo.createElement)(Bo,null)}function Lo(){return Object(eo.createElement)(To,null)}var Ro=Object(bo.compose)([Object(h.withSelect)((function(e){return{hasRedo:e("core/editor").hasEditorRedo()}})),Object(h.withDispatch)((function(e){return{redo:e("core/editor").redo}}))])((function(e){var t=e.hasRedo,n=e.redo;return Object(eo.createElement)(Po.IconButton,{icon:"redo",label:Object(L.__)("Redo"),shortcut:Co.displayShortcut.primaryShift("z"),"aria-disabled":!t,onClick:t?n:void 0,className:"editor-history__redo"})}));var No=Object(bo.compose)([Object(h.withSelect)((function(e){return{hasUndo:e("core/editor").hasEditorUndo()}})),Object(h.withDispatch)((function(e){return{undo:e("core/editor").undo}}))])((function(e){var t=e.hasUndo,n=e.undo;return Object(eo.createElement)(Po.IconButton,{icon:"undo",label:Object(L.__)("Undo"),shortcut:Co.displayShortcut.primary("z"),"aria-disabled":!t,onClick:t?n:void 0,className:"editor-history__undo"})})),Do=n(21);var Uo=Object(bo.compose)([Object(h.withSelect)((function(e){return{isValid:e("core/block-editor").isValidTemplate()}})),Object(h.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(Do.a)(e,["isValid"]);return t?null:Object(eo.createElement)(Po.Notice,{className:"editor-template-validation-notice",isDismissible:!1,status:"warning"},Object(eo.createElement)("p",null,Object(L.__)("The content of your post doesn’t match the template assigned to your post type.")),Object(eo.createElement)("div",null,Object(eo.createElement)(Po.Button,{isDefault:!0,onClick:n.resetTemplateValidity},Object(L.__)("Keep it as is")),Object(eo.createElement)(Po.Button,{onClick:function(){window.confirm(Object(L.__)("Resetting the template may result in loss of content, do you want to continue?"))&&n.synchronizeTemplate()},isPrimary:!0},Object(L.__)("Reset the template"))))}));var Fo=Object(bo.compose)([Object(h.withSelect)((function(e){return{notices:e("core/notices").getNotices()}})),Object(h.withDispatch)((function(e){return{onRemove:e("core/notices").removeNotice}}))])((function(e){var t=e.notices,n=e.onRemove,r=Object(y.filter)(t,{isDismissible:!0,type:"default"}),o=Object(y.filter)(t,{isDismissible:!1,type:"default"}),i=Object(y.filter)(t,{type:"snackbar"});return Object(eo.createElement)(eo.Fragment,null,Object(eo.createElement)(Po.NoticeList,{notices:o,className:"components-editor-notices__pinned"}),Object(eo.createElement)(Po.NoticeList,{notices:r,className:"components-editor-notices__dismissible",onRemove:n},Object(eo.createElement)(Uo,null)),Object(eo.createElement)(Po.SnackbarList,{notices:i,className:"components-editor-notices__snackbar",onRemove:n}))})),Mo=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).reboot=e.reboot.bind(Object(So.a)(e)),e.getContent=e.getContent.bind(Object(So.a)(e)),e.state={error:null},e}return Object(po.a)(t,e),Object(so.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(h.select)("core/editor").getEditedPostContent()}catch(e){}}},{key:"render",value:function(){var e=this.state.error;return e?Object(eo.createElement)(u.Warning,{className:"editor-error-boundary",actions:[Object(eo.createElement)(Po.Button,{key:"recovery",onClick:this.reboot,isLarge:!0},Object(L.__)("Attempt Recovery")),Object(eo.createElement)(Po.ClipboardButton,{key:"copy-post",text:this.getContent,isLarge:!0},Object(L.__)("Copy Post Text")),Object(eo.createElement)(Po.ClipboardButton,{key:"copy-error",text:e.stack,isLarge:!0},Object(L.__)("Copy Error"))]},Object(L.__)("The editor has encountered an unexpected error.")):this.props.children}}]),t}(eo.Component),Vo=window.requestIdleCallback?window.requestIdleCallback:window.requestAnimationFrame,Ho=Object(y.once)((function(){try{return window.sessionStorage.setItem("__wpEditorTestSessionStorage",""),window.sessionStorage.removeItem("__wpEditorTestSessionStorage"),!0}catch(e){return!1}}));function Wo(){var e=Object(h.useSelect)((function(e){var t=e("core/editor").getCurrentPostId(),n=e("core/editor").getCurrentPostType(),r=e("core").getCurrentUser();return{postId:t,getEditedPostAttribute:e("core/editor").getEditedPostAttribute,remoteAutosave:e("core").getAutosave(n,t,r.id),hasFetchedAutosave:e("core").hasFetchedAutosaves(n,t)&&r.id}})),t=e.postId,n=e.getEditedPostAttribute,r=e.remoteAutosave,o=e.hasFetchedAutosave,i=Object(h.useDispatch)("core/notices"),c=i.createWarningNotice,a=i.removeNotice,s=Object(h.useDispatch)("core/editor"),u=s.editPost,d=s.resetEditorBlocks;Object(eo.useEffect)((function(){if(o){var e=function(e){return window.sessionStorage.getItem(te(e))}(t);if(e){try{e=JSON.parse(e)}catch(e){return}var i=e,s={title:i.post_title,content:i.content,excerpt:i.excerpt};if(Object.keys(s).some((function(e){return s[e]!==n(e)}))){if(!r){var p=Object(y.uniqueId)("wpEditorAutosaveRestore");c(Object(L.__)("The backup of this post in your browser is different from the version below."),{id:p,actions:[{label:Object(L.__)("Restore the backup"),onClick:function(){u(Object(y.omit)(s,["content"])),d(Object(l.parse)(s.content)),a(p)}}]})}}else ne(t)}}}),[t,o])}var zo=Object(bo.ifCondition)(Ho)((function(){var e,t,n,r,o,i,c,a=Object(h.useDispatch)("core/editor").__experimentalLocalAutosave,s=Object(eo.useCallback)((function(){Vo(a)}),[]);Wo(),e=Object(h.useSelect)((function(e){return{postId:e("core/editor").getCurrentPostId(),postType:e("core/editor").getCurrentPostType(),isDirty:e("core/editor").isEditedPostDirty(),isAutosaving:e("core/editor").isAutosavingPost(),didError:e("core/editor").didPostSaveRequestFail()}})),t=e.postId,n=e.isDirty,r=e.isAutosaving,o=e.didError,i=Object(eo.useRef)(n),c=Object(eo.useRef)(r),Object(eo.useEffect)((function(){!o&&(c.current&&!r||i.current&&!n)&&ne(t),i.current=n,c.current=r}),[n,r,o]);var u=Object(h.useSelect)((function(e){return{localAutosaveInterval:e("core/editor").getEditorSettings().__experimentalLocalAutosaveInterval}})).localAutosaveInterval;return Object(eo.createElement)(ho,{interval:u,autosave:s,shouldThrottle:!0})}));var Ko=Object(h.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(y.get)(n,["supports","page-attributes"],!1)&&Object(y.isEmpty)(t)?null:r}));var Go=Object(h.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(y.some)(Object(y.castArray)(r),(function(e){return!!t.supports[e]}))),o?n:null})),qo=Object(bo.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(eo.createElement)(Po.TextControl,{className:"editor-page-attributes__order",type:"number",label:Object(L.__)("Order"),value:c,onChange:function(e){i({orderInput:e});var n=Number(e);Number.isInteger(n)&&""!==Object(y.invoke)(e,["trim"])&&t(Number(e))},size:6,onBlur:function(){i({orderInput:null})}})}));var Yo=Object(bo.compose)([Object(h.withSelect)((function(e){return{order:e("core/editor").getEditedPostAttribute("menu_order")}})),Object(h.withDispatch)((function(e){return{onUpdateOrder:function(t){e("core/editor").editPost({menu_order:t})}}}))])((function(e){return Object(eo.createElement)(Go,{supportKeys:"page-attributes"},Object(eo.createElement)(qo,e))}));function Qo(e){var t=e.map((function(e){return Object(f.a)({children:[],parent:null},e)})),n=Object(y.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(f.a)({},t,{children:r&&r.length?e(r):[]})}))}(n[0]||[])}var Xo=Object(h.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),u=i(),l=Object(y.get)(s,["hierarchical"],!1),d={per_page:-1,exclude:u,parent_exclude:u,orderby:"menu_order",order:"asc"};return{parent:c("parent"),items:l?r("postType",a,d):[],postType:s}})),$o=Object(h.withDispatch)((function(e){var t=e("core/editor").editPost;return{onUpdateParent:function(e){t({parent:e||0})}}})),Zo=Object(bo.compose)([Xo,$o])((function(e){var t=e.parent,n=e.postType,r=e.items,o=e.onUpdateParent,i=Object(y.get)(n,["hierarchical"],!1),c=Object(y.get)(n,["labels","parent_item_colon"]),a=r||[];if(!i||!c||!a.length)return null;var s=Qo(a.map((function(e){return{id:e.id,parent:e.parent,name:e.title.raw?e.title.raw:"#".concat(e.id," (").concat(Object(L.__)("no title"),")")}})));return Object(eo.createElement)(Po.TreeSelect,{className:"editor-page-attributes__parent",label:c,noOptionLabel:"(".concat(Object(L.__)("no parent"),")"),tree:s,selectedId:t,onChange:o})}));var Jo=Object(bo.compose)(Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=(0,t.getEditorSettings)().availableTemplates;return{selectedTemplate:n("template"),availableTemplates:r}})),Object(h.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(y.isEmpty)(t)?null:Object(eo.createElement)(Po.SelectControl,{label:Object(L.__)("Template:"),value:n,onChange:r,className:"editor-page-attributes__template",options:Object(y.map)(t,(function(e,t){return{value:t,label:e}}))})})),ei=n(52);var ti=Object(bo.compose)([Object(h.withSelect)((function(e){var t=e("core/editor").getCurrentPost();return{hasAssignAuthorAction:Object(y.get)(t,["_links","wp:action-assign-author"],!1),postType:e("core/editor").getCurrentPostType(),authors:e("core").getAuthors()}})),bo.withInstanceId])((function(e){var t=e.hasAssignAuthorAction,n=e.authors,r=e.children;return!t||n.length<2?null:Object(eo.createElement)(Go,{supportKeys:"author"},r)})),ni=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).setAuthorId=e.setAuthorId.bind(Object(So.a)(e)),e}return Object(po.a)(t,e),Object(so.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(eo.createElement)(ti,null,Object(eo.createElement)("label",{htmlFor:o},Object(L.__)("Author")),Object(eo.createElement)("select",{id:o,value:t,onChange:this.setAuthorId,className:"editor-post-author__select"},r.map((function(e){return Object(eo.createElement)("option",{key:e.id,value:e.id},Object(ei.decodeEntities)(e.name))}))))}}]),t}(eo.Component),ri=Object(bo.compose)([Object(h.withSelect)((function(e){return{postAuthor:e("core/editor").getEditedPostAttribute("author"),authors:e("core").getAuthors()}})),Object(h.withDispatch)((function(e){return{onUpdateAuthor:function(t){e("core/editor").editPost({author:t})}}})),bo.withInstanceId])(ni);var oi=Object(bo.compose)([Object(h.withSelect)((function(e){return{commentStatus:e("core/editor").getEditedPostAttribute("comment_status")}})),Object(h.withDispatch)((function(e){return{editPost:e("core/editor").editPost}}))])((function(e){var t=e.commentStatus,n=void 0===t?"open":t,r=Object(Do.a)(e,["commentStatus"]);return Object(eo.createElement)(Po.CheckboxControl,{label:Object(L.__)("Allow Comments"),checked:"open"===n,onChange:function(){return r.editPost({comment_status:"open"===n?"closed":"open"})}})}));var ii=Object(bo.compose)([Object(h.withSelect)((function(e){return{excerpt:e("core/editor").getEditedPostAttribute("excerpt")}})),Object(h.withDispatch)((function(e){return{onUpdateExcerpt:function(t){e("core/editor").editPost({excerpt:t})}}}))])((function(e){var t=e.excerpt,n=e.onUpdateExcerpt;return Object(eo.createElement)("div",{className:"editor-post-excerpt"},Object(eo.createElement)(Po.TextareaControl,{label:Object(L.__)("Write an excerpt (optional)"),className:"editor-post-excerpt__textarea",onChange:function(e){return n(e)},value:t}),Object(eo.createElement)(Po.ExternalLink,{href:Object(L.__)("https://codex.wordpress.org/Excerpt")},Object(L.__)("Learn more about manual excerpts")))})),ci=n(18);var ai=function(e){return Object(eo.createElement)(Go,Object(ci.a)({},e,{supportKeys:"excerpt"}))};var si=Object(h.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(y.some)(Object(y.castArray)(o),(function(e){var n=Object(y.get)(t,[e],!1);return"post-thumbnails"===e&&Object(y.isArray)(n)?Object(y.includes)(n,r):n}))?n:null}));var ui=function(e){return Object(eo.createElement)(si,{supportKeys:"post-thumbnails"},Object(eo.createElement)(Go,Object(ci.a)({},e,{supportKeys:"thumbnail"})))},li=["image"],di=Object(L.__)("Featured Image"),pi=Object(L.__)("Set Featured Image"),bi=Object(L.__)("Remove Image");var fi=Object(h.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}})),hi=Object(h.withDispatch)((function(e){var t=e("core/editor").editPost;return{onUpdateImage:function(e){t({featured_media:e.id})},onRemoveImage:function(){t({featured_media:0})}}})),mi=Object(bo.compose)(fi,hi,Object(Po.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,d=Object(y.get)(l,["labels"],{}),p=Object(eo.createElement)("p",null,Object(L.__)("To edit the featured image, you need permission to upload media."));if(s){var b=Object(Jr.applyFilters)("editor.PostFeaturedImage.imageSize","post-thumbnail",s.id,o);Object(y.has)(s,["media_details","sizes",b])?(t=s.media_details.sizes[b].width,n=s.media_details.sizes[b].height,r=s.media_details.sizes[b].source_url):(t=s.media_details.width,n=s.media_details.height,r=s.source_url)}return Object(eo.createElement)(ui,null,Object(eo.createElement)("div",{className:"editor-post-featured-image"},Object(eo.createElement)(u.MediaUploadCheck,{fallback:p},Object(eo.createElement)(u.MediaUpload,{title:d.featured_image||di,onSelect:c,unstableFeaturedImageFlow:!0,allowedTypes:li,modalClass:"editor-post-featured-image__media-modal",render:function(e){var o=e.open;return Object(eo.createElement)(Po.Button,{className:i?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:o,"aria-label":i?Object(L.__)("Edit or update the image"):null},!!i&&s&&Object(eo.createElement)(Po.ResponsiveWrapper,{naturalWidth:t,naturalHeight:n,isInline:!0},Object(eo.createElement)("img",{src:r,alt:""})),!!i&&!s&&Object(eo.createElement)(Po.Spinner,null),!i&&(d.set_featured_image||pi))},value:i})),!!i&&s&&!s.isLoading&&Object(eo.createElement)(u.MediaUploadCheck,null,Object(eo.createElement)(u.MediaUpload,{title:d.featured_image||di,onSelect:c,unstableFeaturedImageFlow:!0,allowedTypes:li,modalClass:"editor-post-featured-image__media-modal",render:function(e){var t=e.open;return Object(eo.createElement)(Po.Button,{onClick:t,isDefault:!0,isLarge:!0},Object(L.__)("Replace Image"))}})),!!i&&Object(eo.createElement)(u.MediaUploadCheck,null,Object(eo.createElement)(Po.Button,{onClick:a,isLink:!0,isDestructive:!0},d.remove_featured_image||bi))))}));var vi=Object(h.withSelect)((function(e){return{disablePostFormats:e("core/editor").getEditorSettings().disablePostFormats}}))((function(e){var t=e.disablePostFormats,n=Object(Do.a)(e,["disablePostFormats"]);return!t&&Object(eo.createElement)(Go,Object(ci.a)({},n,{supportKeys:"post-formats"}))})),Oi=[{id:"aside",caption:Object(L.__)("Aside")},{id:"gallery",caption:Object(L.__)("Gallery")},{id:"link",caption:Object(L.__)("Link")},{id:"image",caption:Object(L.__)("Image")},{id:"quote",caption:Object(L.__)("Quote")},{id:"standard",caption:Object(L.__)("Standard")},{id:"status",caption:Object(L.__)("Status")},{id:"video",caption:Object(L.__)("Video")},{id:"audio",caption:Object(L.__)("Audio")},{id:"chat",caption:Object(L.__)("Chat")}];var gi=Object(bo.compose)([Object(h.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(y.union)([o],Object(y.get)(i,["formats"],[])),suggestedFormat:r()}})),Object(h.withDispatch)((function(e){return{onUpdatePostFormat:function(t){e("core/editor").editPost({format:t})}}})),bo.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=Oi.filter((function(e){return Object(y.includes)(o,e.id)})),s=Object(y.find)(a,(function(e){return e.id===i}));return Object(eo.createElement)(vi,null,Object(eo.createElement)("div",{className:"editor-post-format"},Object(eo.createElement)("div",{className:"editor-post-format__content"},Object(eo.createElement)("label",{htmlFor:c},Object(L.__)("Post Format")),Object(eo.createElement)(Po.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(eo.createElement)("div",{className:"editor-post-format__suggestion"},Object(L.__)("Suggestion:")," ",Object(eo.createElement)(Po.Button,{isLink:!0,onClick:function(){return t(s.id)}},s.caption))))}));var ji=Object(h.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(eo.createElement)(Go,{supportKeys:"revisions"},r)}));function yi(e,t){return Object(Ft.addQueryArgs)(e,t)}function _i(e){return e?Object(y.toLower)(Object(y.deburr)(Object(y.trim)(e.replace(/[\s\./_]+/g,"-"),"-"))):""}var ki=Object(h.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(eo.createElement)(ji,null,Object(eo.createElement)(Po.IconButton,{href:yi("revision.php",{revision:t,gutenberg:!0}),className:"editor-post-last-revision__title",icon:"backup"},Object(L.sprintf)(Object(L._n)("%d Revision","%d Revisions",n),n)))}));var Ei=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).openPreviewWindow=e.openPreviewWindow.bind(Object(So.a)(e)),e}return Object(po.a)(t,e),Object(so.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(eo.renderToString)(Object(eo.createElement)("div",{className:"editor-post-preview-button__interstitial-message"},Object(eo.createElement)(Po.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 96 96"},Object(eo.createElement)(Po.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(eo.createElement)(Po.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(eo.createElement)("p",null,Object(L.__)("Generating preview…")))),n+='\n\t\t\n\t',n=Object(Jr.applyFilters)("editor.PostPreview.interstitialMarkup",n),t.write(n),t.title=Object(L.__)("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(eo.createElement)(Po.Button,{isLarge:!0,className:"editor-post-preview",href:o,target:this.getWindowTarget(),disabled:!r,onClick:this.openPreviewWindow},Object(L._x)("Preview","imperative verb"),Object(eo.createElement)("span",{className:"screen-reader-text"},Object(L.__)("(opens in a new tab)")),Object(eo.createElement)(d.DotTip,{tipId:"core/editor.preview"},Object(L.__)("Click “Preview” to load a preview of this page, so you can make sure you’re happy with your blocks.")))}}]),t}(eo.Component),wi=Object(bo.compose)([Object(h.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,u=o.isEditedPostAutosaveable,l=o.getEditedPostPreviewLink,d=e("core").getPostType,p=l(),b=d(a("type"));return{postId:i(),currentPostLink:c("link"),previewLink:void 0!==n?n:p,isSaveable:s(),isAutosaveable:r||u(),isViewable:Object(y.get)(b,["viewable"],!1),isDraft:-1!==["draft","auto-draft"].indexOf(a("status"))}})),Object(h.withDispatch)((function(e){return{autosave:e("core/editor").autosave,savePost:e("core/editor").savePost}})),Object(bo.ifCondition)((function(e){return e.isViewable}))])(Ei),Si=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).sendPostLock=e.sendPostLock.bind(Object(So.a)(e)),e.receivePostLock=e.receivePostLock.bind(Object(So.a)(e)),e.releasePostLock=e.releasePostLock.bind(Object(So.a)(e)),e}return Object(po.a)(t,e),Object(so.a)(t,[{key:"componentDidMount",value:function(){var e=this.getHookName();Object(Jr.addAction)("heartbeat.send",e,this.sendPostLock),Object(Jr.addAction)("heartbeat.tick",e,this.receivePostLock)}},{key:"componentWillUnmount",value:function(){var e=this.getHookName();Object(Jr.removeAction)("heartbeat.send",e),Object(Jr.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;if(i.append("action","wp-remove-post-lock"),i.append("_wpnonce",r.unlockNonce),i.append("post_ID",o),i.append("active_post_lock",n),window.navigator.sendBeacon)window.navigator.sendBeacon(r.ajaxUrl,i);else{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,u=Object(Ft.addQueryArgs)("post.php",{"get-post-lock":"1",lockKey:!0,post:n,action:"edit",_wpnonce:i.nonce}),l=yi("edit.php",{post_type:Object(y.get)(c,["slug"])}),d=Object(L.__)("Exit the Editor");return Object(eo.createElement)(Po.Modal,{title:o?Object(L.__)("Someone else has taken over this post."):Object(L.__)("This post is already being edited."),focusOnMount:!0,shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,isDismissable:!1,className:"editor-post-locked-modal"},!!s&&Object(eo.createElement)("img",{src:s,alt:Object(L.__)("Avatar"),className:"editor-post-locked-modal__avatar"}),!!o&&Object(eo.createElement)("div",null,Object(eo.createElement)("div",null,a?Object(L.sprintf)(Object(L.__)("%s now has editing control of this post. Don’t worry, your changes up to this moment have been saved."),a):Object(L.__)("Another user now has editing control of this post. Don’t worry, your changes up to this moment have been saved.")),Object(eo.createElement)("div",{className:"editor-post-locked-modal__buttons"},Object(eo.createElement)(Po.Button,{isPrimary:!0,isLarge:!0,href:l},d))),!o&&Object(eo.createElement)("div",null,Object(eo.createElement)("div",null,a?Object(L.sprintf)(Object(L.__)("%s is currently working on this post, which means you cannot make changes, unless you take over."),a):Object(L.__)("Another user is currently working on this post, which means you cannot make changes, unless you take over.")),Object(eo.createElement)("div",{className:"editor-post-locked-modal__buttons"},Object(eo.createElement)(Po.Button,{isDefault:!0,isLarge:!0,href:l},d),Object(eo.createElement)(wi,null),Object(eo.createElement)(Po.Button,{isPrimary:!0,isLarge:!0,href:u},Object(L.__)("Take Over")))))}}]),t}(eo.Component),Pi=Object(bo.compose)(Object(h.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,u=e("core").getPostType;return{isLocked:n(),isTakeover:r(),user:o(),postId:i(),postLockUtils:s().postLockUtils,activePostLock:c(),postType:u(a("type"))}})),Object(h.withDispatch)((function(e){var t=e("core/editor");return{autosave:t.autosave,updatePostLock:t.updatePostLock}})),bo.withInstanceId,Object(bo.withGlobalEvents)({beforeunload:"releasePostLock"}))(Si);var Ci=Object(bo.compose)(Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.isCurrentPostPublished,r=t.getCurrentPostType,o=t.getCurrentPost;return{hasPublishAction:Object(y.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 Ti=Object(bo.compose)(Object(h.withSelect)((function(e){return{status:e("core/editor").getEditedPostAttribute("status")}})),Object(h.withDispatch)((function(e){return{onUpdateStatus:function(t){e("core/editor").editPost({status:t})}}})))((function(e){var t=e.status,n=e.onUpdateStatus;return Object(eo.createElement)(Ci,null,Object(eo.createElement)(Po.CheckboxControl,{label:Object(L.__)("Pending Review"),checked:"pending"===t,onChange:function(){n("pending"===t?"draft":"pending")}}))}));var xi=Object(bo.compose)([Object(h.withSelect)((function(e){return{pingStatus:e("core/editor").getEditedPostAttribute("ping_status")}})),Object(h.withDispatch)((function(e){return{editPost:e("core/editor").editPost}}))])((function(e){var t=e.pingStatus,n=void 0===t?"open":t,r=Object(Do.a)(e,["pingStatus"]);return Object(eo.createElement)(Po.CheckboxControl,{label:Object(L.__)("Allow Pingbacks & Trackbacks"),checked:"open"===n,onChange:function(){return r.editPost({ping_status:"open"===n?"closed":"open"})}})}));var Bi=Object(bo.compose)([Object(h.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,u=r.getCurrentPostType,l=r.isAutosavingPost;return{isPublished:o(),isBeingScheduled:i(),isSaving:n||c(),isPublishing:a(),hasPublishAction:Object(y.get)(s(),["_links","wp:action-publish"],!1),postType:u(),isAutosaving:l()}}))])((function(e){var t=e.isPublished,n=e.isBeingScheduled,r=e.isSaving,o=e.isPublishing,i=e.hasPublishAction,c=e.isAutosaving;return o?Object(L.__)("Publishing…"):t&&r&&!c?Object(L.__)("Updating…"):n&&r&&!c?Object(L.__)("Scheduling…"):i?t?Object(L.__)("Update"):n?Object(L.__)("Schedule"):Object(L.__)("Publish"):Object(L.__)("Submit for Review")})),Ii=function(e){function t(e){var n;return Object(ao.a)(this,t),(n=Object(uo.a)(this,Object(lo.a)(t).call(this,e))).buttonNode=Object(eo.createRef)(),n}return Object(po.a)(t,e),Object(so.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,a=t.isPostSavingLocked,s=t.isPublishable,u=t.isPublished,l=t.isSaveable,p=t.isSaving,b=t.isToggle,f=t.onSave,h=t.onStatusChange,m=t.onSubmit,v=void 0===m?y.noop:m,O=t.onToggle,g=t.visibility,j=p||r||!l||a||!s&&!n,_=u||p||r||!l||!s&&!n;e=o?i?"future":"private"===g?"private":"publish":"pending";var k={"aria-disabled":j,className:"editor-post-publish-button",isBusy:p&&u,isPrimary:!0,onClick:function(){j||(v(),h(e),f())}},E={"aria-disabled":_,"aria-expanded":c,className:"editor-post-publish-panel__toggle",isBusy:p&&u,isPrimary:!0,onClick:function(){_||O()}},w=i?Object(L.__)("Schedule…"):Object(L.__)("Publish…"),S=Object(eo.createElement)(Bi,{forceIsSaving:r}),P=b?E:k,C=b?w:S;return Object(eo.createElement)("div",null,Object(eo.createElement)(Po.Button,Object(ci.a)({ref:this.buttonNode},P),C),Object(eo.createElement)(d.DotTip,{tipId:"core/editor.publish"},Object(L.__)("Finished writing? That’s great, let’s get this published right now. Just click “Publish” and you’re good to go.")))}}]),t}(eo.Component),Ai=Object(bo.compose)([Object(h.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,u=t.getCurrentPost,l=t.getCurrentPostType;return{isSaving:n(),isBeingScheduled:r(),visibility:o(),isSaveable:c(),isPostSavingLocked:s(),isPublishable:a(),isPublished:i(),hasPublishAction:Object(y.get)(u(),["_links","wp:action-publish"],!1),postType:l()}})),Object(h.withDispatch)((function(e){var t=e("core/editor"),n=t.editPost;return{onStatusChange:function(e){return n({status:e},{undoIgnore:!0})},onSave:t.savePost}}))])(Ii),Li=[{value:"public",label:Object(L.__)("Public"),info:Object(L.__)("Visible to everyone.")},{value:"private",label:Object(L.__)("Private"),info:Object(L.__)("Only visible to site admins and editors.")},{value:"password",label:Object(L.__)("Password Protected"),info:Object(L.__)("Protected with a password you choose. Only those with the password can view this post.")}],Ri=function(e){function t(e){var n;return Object(ao.a)(this,t),(n=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).setPublic=n.setPublic.bind(Object(So.a)(n)),n.setPrivate=n.setPrivate.bind(Object(So.a)(n)),n.setPasswordProtected=n.setPasswordProtected.bind(Object(So.a)(n)),n.updatePassword=n.updatePassword.bind(Object(So.a)(n)),n.state={hasPassword:!!e.password},n}return Object(po.a)(t,e),Object(so.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(L.__)("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(eo.createElement)("fieldset",{key:"visibility-selector",className:"editor-post-visibility__dialog-fieldset"},Object(eo.createElement)("legend",{className:"editor-post-visibility__dialog-legend"},Object(L.__)("Post Visibility")),Li.map((function(e){var t=e.value,n=e.label,i=e.info;return Object(eo.createElement)("div",{key:t,className:"editor-post-visibility__choice"},Object(eo.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(eo.createElement)("label",{htmlFor:"editor-post-".concat(t,"-").concat(r),className:"editor-post-visibility__dialog-label"},n),Object(eo.createElement)("p",{id:"editor-post-".concat(t,"-").concat(r,"-description"),className:"editor-post-visibility__dialog-info"},i))}))),this.state.hasPassword&&Object(eo.createElement)("div",{className:"editor-post-visibility__dialog-password",key:"password-selector"},Object(eo.createElement)("label",{htmlFor:"editor-post-visibility__dialog-password-input-".concat(r),className:"screen-reader-text"},Object(L.__)("Create password")),Object(eo.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(L.__)("Use a secure password")}))]}}]),t}(eo.Component),Ni=Object(bo.compose)([Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getEditedPostVisibility;return{status:n("status"),visibility:r(),password:n("password")}})),Object(h.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]:"";r({status:e,password:t})}}})),bo.withInstanceId])(Ri);var Di=Object(h.withSelect)((function(e){return{visibility:e("core/editor").getEditedPostVisibility()}}))((function(e){var t=e.visibility;return Object(y.find)(Li,{value:t}).label}));var Ui=Object(bo.compose)([Object(h.withSelect)((function(e){return{date:e("core/editor").getEditedPostAttribute("date")}})),Object(h.withDispatch)((function(e){return{onUpdateDate:function(t){e("core/editor").editPost({date:t})}}}))])((function(e){var t=e.date,n=e.onUpdateDate,r=Object(Ut.__experimentalGetSettings)(),o=/a(?!\\)/i.test(r.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join(""));return Object(eo.createElement)(Po.DateTimePicker,{key:"date-time-picker",currentDate:t,onChange:n,is12Hour:o})}));var Fi=Object(h.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(Ut.__experimentalGetSettings)();return t&&!n?Object(Ut.dateI18n)("".concat(r.formats.date," ").concat(r.formats.time),t):Object(L.__)("Immediately")})),Mi={per_page:-1,orderby:"count",order:"desc",_fields:"id,name"},Vi=function(e,t){return e.toLowerCase()===t.toLowerCase()},Hi=function(e){return Object(f.a)({},e,{name:Object(y.unescape)(e.name)})},Wi=function(e){return Object(y.map)(e,Hi)},zi=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).onChange=e.onChange.bind(Object(So.a)(e)),e.searchTerms=Object(y.throttle)(e.searchTerms.bind(Object(So.a)(e)),500),e.findOrCreateTerm=e.findOrCreateTerm.bind(Object(So.a)(e)),e.state={loading:!Object(y.isEmpty)(e.props.terms),availableTerms:[],selectedTerms:[]},e}return Object(po.a)(t,e),Object(so.a)(t,[{key:"componentDidMount",value:function(){var e=this;Object(y.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(y.invoke)(this.initRequest,["abort"]),Object(y.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(f.a)({},Mi,t),o=A()({path:Object(Ft.addQueryArgs)("/wp/v2/".concat(n.rest_base),r)});return o.then(Wi).then((function(t){e.setState((function(e){return{availableTerms:e.availableTerms.concat(t.filter((function(t){return!Object(y.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]:[],n=t.reduce((function(t,n){var r=Object(y.find)(e.state.availableTerms,(function(e){return e.id===n}));return r&&t.push(r.name),t}),[]);this.setState({selectedTerms:n})}},{key:"findOrCreateTerm",value:function(e){var t=this,n=this.props.taxonomy,r=Object(y.escape)(e);return A()({path:"/wp/v2/".concat(n.rest_base),method:"POST",data:{name:r}}).catch((function(o){return"term_exists"===o.code?(t.addRequest=A()({path:Object(Ft.addQueryArgs)("/wp/v2/".concat(n.rest_base),Object(f.a)({},Mi,{search:r}))}).then(Wi),t.addRequest.then((function(t){return Object(y.find)(t,(function(t){return Vi(t.name,e)}))}))):Promise.reject(o)})).then(Hi)}},{key:"onChange",value:function(e){var t=this,n=Object(y.uniqBy)(e,(function(e){return e.toLowerCase()}));this.setState({selectedTerms:n});var r=n.filter((function(e){return!Object(y.find)(t.state.availableTerms,(function(t){return Vi(t.name,e)}))})),o=function(e,t){return e.map((function(e){return Object(y.find)(t,(function(t){return Vi(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(y.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(y.get)(n,["labels","add_new_item"],"post_tag"===t?Object(L.__)("Add New Tag"):Object(L.__)("Add New Term")),u=Object(y.get)(n,["labels","singular_name"],"post_tag"===t?Object(L.__)("Tag"):Object(L.__)("Term")),l=Object(L.sprintf)(Object(L._x)("%s added","term"),u),d=Object(L.sprintf)(Object(L._x)("%s removed","term"),u),p=Object(L.sprintf)(Object(L._x)("Remove %s","term"),u);return Object(eo.createElement)(Po.FormTokenField,{value:c,suggestions:a,onChange:this.onChange,onInputChange:this.searchTerms,maxSuggestions:20,disabled:o,label:s,messages:{added:l,removed:d,remove:p}})}}]),t}(eo.Component),Ki=Object(bo.compose)(Object(h.withSelect)((function(e,t){var n=t.slug,r=e("core/editor").getCurrentPost,o=(0,e("core").getTaxonomy)(n);return{hasCreateAction:!!o&&Object(y.get)(r(),["_links","wp:action-create-"+o.rest_base],!1),hasAssignAction:!!o&&Object(y.get)(r(),["_links","wp:action-assign-"+o.rest_base],!1),terms:o?e("core/editor").getEditedPostAttribute(o.rest_base):[],taxonomy:o}})),Object(h.withDispatch)((function(e){return{onUpdateTerms:function(t,n){e("core/editor").editPost(Object(v.a)({},n,t))}}})),Object(Po.withFilters)("editor.PostTaxonomyType"))(zi),Gi=function(){var e=[Object(L.__)("Suggestion:"),Object(eo.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(L.__)("Add tags"))];return Object(eo.createElement)(Po.PanelBody,{initialOpen:!1,title:e},Object(eo.createElement)("p",null,Object(L.__)("Tags help users and search engines navigate your site and find your content. Add a few keywords to describe your post.")),Object(eo.createElement)(Ki,{slug:"post_tag"}))},qi=function(e){function t(e){var n;return Object(ao.a)(this,t),(n=Object(uo.a)(this,Object(lo.a)(t).call(this,e))).state={hadTagsWhenOpeningThePanel:e.hasTags},n}return Object(po.a)(t,e),Object(so.a)(t,[{key:"render",value:function(){return this.state.hadTagsWhenOpeningThePanel?null:Object(eo.createElement)(Gi,null)}}]),t}(eo.Component),Yi=Object(bo.compose)(Object(h.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(y.some)(n.types,(function(e){return e===t})),hasTags:r&&r.length}})),Object(bo.ifCondition)((function(e){var t=e.areTagsFetched;return e.isPostTypeSupported&&t})))(qi),Qi=function(e){var t=e.suggestedPostFormat,n=e.suggestionText,r=e.onUpdatePostFormat;return Object(eo.createElement)(Po.Button,{isLink:!0,onClick:function(){return r(t)}},n)},Xi=function(e,t){var n=Oi.filter((function(t){return Object(y.includes)(e,t.id)}));return Object(y.find)(n,(function(e){return e.id===t}))},$i=Object(bo.compose)(Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getSuggestedPostFormat,o=Object(y.get)(e("core").getThemeSupports(),["formats"],[]);return{currentPostFormat:n("format"),suggestion:Xi(o,r())}})),Object(h.withDispatch)((function(e){return{onUpdatePostFormat:function(t){e("core/editor").editPost({format:t})}}})),Object(bo.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(L.__)("Suggestion:"),Object(eo.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(L.__)("Use a post format"))];return Object(eo.createElement)(Po.PanelBody,{initialOpen:!1,title:r},Object(eo.createElement)("p",null,Object(L.__)("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(eo.createElement)("p",null,Object(eo.createElement)(Qi,{onUpdatePostFormat:n,suggestedPostFormat:t.id,suggestionText:Object(L.sprintf)(Object(L.__)('Apply the "%1$s" format.'),t.caption)})))}));var Zi=Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.isEditedPostBeingScheduled;return{hasPublishAction:Object(y.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(L.__)("Are you ready to schedule?"),n=Object(L.__)("Your work will be published at the specified date and time.")):(t=Object(L.__)("Are you ready to publish?"),n=Object(L.__)("Double-check your settings before publishing.")):(t=Object(L.__)("Are you ready to submit for review?"),n=Object(L.__)("When you’re ready, submit your work for review, and an Editor will be able to approve it for you.")),Object(eo.createElement)("div",{className:"editor-post-publish-panel__prepublish"},Object(eo.createElement)("div",null,Object(eo.createElement)("strong",null,t)),Object(eo.createElement)("p",null,n),r&&Object(eo.createElement)(eo.Fragment,null,Object(eo.createElement)(Po.PanelBody,{initialOpen:!1,title:[Object(L.__)("Visibility:"),Object(eo.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(eo.createElement)(Di,null))]},Object(eo.createElement)(Ni,null)),Object(eo.createElement)(Po.PanelBody,{initialOpen:!1,title:[Object(L.__)("Publish:"),Object(eo.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(eo.createElement)(Fi,null))]},Object(eo.createElement)(Ui,null))),Object(eo.createElement)($i,null),Object(eo.createElement)(Yi,null),i)})),Ji=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).state={showCopyConfirmation:!1},e.onCopy=e.onCopy.bind(Object(So.a)(e)),e.onSelectInput=e.onSelectInput.bind(Object(So.a)(e)),e.postLink=Object(eo.createRef)(),e}return Object(po.a)(t,e),Object(so.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(y.get)(o,["labels","singular_name"]),c=Object(y.get)(o,["labels","view_item"]),a=n?Object(eo.createElement)(eo.Fragment,null,Object(L.__)("is now scheduled. It will go live on")," ",Object(eo.createElement)(Fi,null),"."):Object(L.__)("is now live.");return Object(eo.createElement)("div",{className:"post-publish-panel__postpublish"},Object(eo.createElement)(Po.PanelBody,{className:"post-publish-panel__postpublish-header"},Object(eo.createElement)("a",{ref:this.postLink,href:r.link},r.title||Object(L.__)("(no title)"))," ",a),Object(eo.createElement)(Po.PanelBody,null,Object(eo.createElement)("p",{className:"post-publish-panel__postpublish-subheader"},Object(eo.createElement)("strong",null,Object(L.__)("What’s next?"))),Object(eo.createElement)(Po.TextControl,{className:"post-publish-panel__postpublish-post-address",readOnly:!0,label:Object(L.sprintf)(Object(L.__)("%s address"),i),value:Object(Ft.safeDecodeURIComponent)(r.link),onFocus:this.onSelectInput}),Object(eo.createElement)("div",{className:"post-publish-panel__postpublish-buttons"},!n&&Object(eo.createElement)(Po.Button,{isDefault:!0,href:r.link},c),Object(eo.createElement)(Po.ClipboardButton,{isDefault:!0,text:r.link,onCopy:this.onCopy},this.state.showCopyConfirmation?Object(L.__)("Copied!"):Object(L.__)("Copy Link")))),t)}}]),t}(eo.Component),ec=Object(h.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()}}))(Ji),tc=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).onSubmit=e.onSubmit.bind(Object(So.a)(e)),e}return Object(po.a)(t,e),Object(so.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,u=e.onTogglePublishSidebar,l=e.PostPublishExtension,d=e.PrePublishExtension,p=Object(Do.a)(e,["forceIsDirty","forceIsSaving","isBeingScheduled","isPublished","isPublishSidebarEnabled","isScheduled","isSaving","onClose","onTogglePublishSidebar","PostPublishExtension","PrePublishExtension"]),b=Object(y.omit)(p,["hasPublishAction","isDirty","isPostTypeViewable"]),f=o||c&&r,h=!f&&!a,m=f&&!a;return Object(eo.createElement)("div",Object(ci.a)({className:"editor-post-publish-panel"},b),Object(eo.createElement)("div",{className:"editor-post-publish-panel__header"},m?Object(eo.createElement)("div",{className:"editor-post-publish-panel__header-published"},c?Object(L.__)("Scheduled"):Object(L.__)("Published")):Object(eo.createElement)("div",{className:"editor-post-publish-panel__header-publish-button"},Object(eo.createElement)(Ai,{focusOnMount:!0,onSubmit:this.onSubmit,forceIsDirty:t,forceIsSaving:n}),Object(eo.createElement)("span",{className:"editor-post-publish-panel__spacer"})),Object(eo.createElement)(Po.IconButton,{"aria-expanded":!0,onClick:s,icon:"no-alt",label:Object(L.__)("Close panel")})),Object(eo.createElement)("div",{className:"editor-post-publish-panel__content"},h&&Object(eo.createElement)(Zi,null,d&&Object(eo.createElement)(d,null)),m&&Object(eo.createElement)(ec,{focusOnMount:!0},l&&Object(eo.createElement)(l,null)),a&&Object(eo.createElement)(Po.Spinner,null)),Object(eo.createElement)("div",{className:"editor-post-publish-panel__footer"},Object(eo.createElement)(Po.CheckboxControl,{label:Object(L.__)("Always show pre-publish checks."),checked:i,onChange:u})))}}]),t}(eo.Component),nc=Object(bo.compose)([Object(h.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,u=n.isSavingPost,l=e("core/editor").isPublishSidebarEnabled,d=t(o("type"));return{hasPublishAction:Object(y.get)(r(),["_links","wp:action-publish"],!1),isPostTypeViewable:Object(y.get)(d,["viewable"],!1),isBeingScheduled:a(),isDirty:s(),isPublished:i(),isPublishSidebarEnabled:l(),isSaving:u(),isScheduled:c()}})),Object(h.withDispatch)((function(e,t){var n=t.isPublishSidebarEnabled,r=e("core/editor"),o=r.disablePublishSidebar,i=r.enablePublishSidebar;return{onTogglePublishSidebar:function(){n?o():i()}}})),Po.withFocusReturn,Po.withConstrainedTabbing])(tc);var rc=Object(bo.compose)([Object(h.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(h.withDispatch)((function(e){var t=e("core/editor"),n=t.editPost,r=t.savePost;return{onClick:function(){n({status:"draft"}),r()}}})),Object(b.withViewportMatch)({isMobileViewport:"< small"})])((function(e){var t=e.isSaving,n=e.isPublished,r=e.isScheduled,o=e.onClick,i=e.isMobileViewport;return n||r?Object(eo.createElement)(Po.Button,{className:"editor-post-switch-to-draft",onClick:function(){var e;n?e=Object(L.__)("Are you sure you want to unpublish this post?"):r&&(e=Object(L.__)("Are you sure you want to unschedule this post?")),window.confirm(e)&&o()},disabled:t,isTertiary:!0},i?Object(L.__)("Draft"):Object(L.__)("Switch to Draft")):null})),oc=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).state={forceSavedMessage:!1},e}return Object(po.a)(t,e),Object(so.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,u=e.isAutosaving,l=e.isPending,d=e.isLargeViewport,p=this.state.forceSavedMessage;if(c){var b=vo()("editor-post-saved-state","is-saving",{"is-autosaving":u});return Object(eo.createElement)(Po.Animate,{type:"loading"},(function(e){var t=e.className;return Object(eo.createElement)("span",{className:vo()(b,t)},Object(eo.createElement)(Po.Dashicon,{icon:"cloud"}),u?Object(L.__)("Autosaving"):Object(L.__)("Saving"))}))}if(o||r)return Object(eo.createElement)(rc,null);if(!a)return null;if(p||!n&&!i)return Object(eo.createElement)("span",{className:"editor-post-saved-state is-saved"},Object(eo.createElement)(Po.Dashicon,{icon:"saved"}),Object(L.__)("Saved"));if(!Object(y.get)(t,["_links","wp:action-publish"],!1)&&l)return null;var f=l?Object(L.__)("Save as Pending"):Object(L.__)("Save Draft");return d?Object(eo.createElement)(Po.Button,{className:"editor-post-save-draft",onClick:function(){return s()},shortcut:Co.displayShortcut.primary("s"),isTertiary:!0},f):Object(eo.createElement)(Po.IconButton,{className:"editor-post-save-draft",label:f,onClick:function(){return s()},shortcut:Co.displayShortcut.primary("s"),icon:"cloud-upload"})}}]),t}(eo.Component),ic=Object(bo.compose)([Object(h.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,u=o.isSavingPost,l=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||u(),isSaveable:l(),isAutosaving:p(),isPending:"pending"===b("status")}})),Object(h.withDispatch)((function(e){return{onSave:e("core/editor").savePost}})),bo.withSafeTimeout,Object(b.withViewportMatch)({isLargeViewport:"small"})])(oc);var cc=Object(bo.compose)([Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.getCurrentPostType;return{hasPublishAction:Object(y.get)(n(),["_links","wp:action-publish"],!1),postType:r()}}))])((function(e){var t=e.hasPublishAction,n=e.children;return t?n:null}));var ac=Object(bo.compose)([Object(h.withSelect)((function(e){var t=e("core/editor").getCurrentPost();return{hasStickyAction:Object(y.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 sc=Object(bo.compose)([Object(h.withSelect)((function(e){return{postSticky:e("core/editor").getEditedPostAttribute("sticky")}})),Object(h.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(eo.createElement)(ac,null,Object(eo.createElement)(Po.CheckboxControl,{label:Object(L.__)("Stick to the top of the blog"),checked:r,onChange:function(){return t(!r)}}))})),uc={per_page:-1,orderby:"name",order:"asc",_fields:"id,name,parent"},lc=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).findTerm=e.findTerm.bind(Object(So.a)(e)),e.onChange=e.onChange.bind(Object(So.a)(e)),e.onChangeFormName=e.onChangeFormName.bind(Object(So.a)(e)),e.onChangeFormParent=e.onChangeFormParent.bind(Object(So.a)(e)),e.onAddTerm=e.onAddTerm.bind(Object(So.a)(e)),e.onToggleForm=e.onToggleForm.bind(Object(So.a)(e)),e.setFilterValue=e.setFilterValue.bind(Object(So.a)(e)),e.sortBySelected=e.sortBySelected.bind(Object(So.a)(e)),e.state={loading:!0,availableTermsTree:[],availableTerms:[],adding:!1,formName:"",formParent:"",showForm:!1,filterValue:"",filteredTermsTree:[]},e}return Object(po.a)(t,e),Object(so.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;n(-1!==o.indexOf(e)?Object(y.without)(o,e):[].concat(Object(N.a)(o),[e]),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(y.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,u=a.formParent,l=a.adding,d=a.availableTerms;if(""!==s&&!l){var p=this.findTerm(d,u,s);if(p)return Object(y.some)(i,(function(e){return e===p.id}))||r([].concat(Object(N.a)(i),[p.id]),o.rest_base),void this.setState({formName:"",formParent:""});this.setState({adding:!0}),this.addRequest=A()({path:"/wp/v2/".concat(o.rest_base),method:"POST",data:{name:s,parent:u||void 0}}),this.addRequest.catch((function(e){return"term_exists"===e.code?(t.addRequest=A()({path:Object(Ft.addQueryArgs)("/wp/v2/".concat(o.rest_base),Object(f.a)({},uc,{parent:u||0,search:s}))}),t.addRequest.then((function(e){return t.findTerm(e,u,s)}))):Promise.reject(e)})).then((function(e){var n=!!Object(y.find)(t.state.availableTerms,(function(t){return t.id===e.id}))?t.state.availableTerms:[e].concat(Object(N.a)(t.state.availableTerms)),a=Object(L.sprintf)(Object(L._x)("%s added","term"),Object(y.get)(t.props.taxonomy,["labels","singular_name"],"category"===c?Object(L.__)("Category"):Object(L.__)("Term")));t.props.speak(a,"assertive"),t.addRequest=null,t.setState({adding:!1,formName:"",formParent:"",availableTerms:n,availableTermsTree:t.sortBySelected(Qo(n))}),r([].concat(Object(N.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(y.invoke)(this.fetchRequest,["abort"]),Object(y.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=A()({path:Object(Ft.addQueryArgs)("/wp/v2/".concat(t.rest_base),uc)}),this.fetchRequest.then((function(t){var n=e.sortBySelected(Qo(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.toLowerCase())||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){return Object(eo.createElement)("div",{key:e.id,className:"editor-post-taxonomies__hierarchical-terms-choice"},Object(eo.createElement)(Po.CheckboxControl,{checked:-1!==r.indexOf(e.id),onChange:function(){var n=parseInt(e.id,10);t.onChange(n)},label:Object(y.unescape)(e.name)}),!!e.children.length&&Object(eo.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,u=i.formName,l=i.formParent,d=i.loading,p=i.showForm,b=i.filterValue,f=function(e,r,o){return Object(y.get)(n,["labels",e],"category"===t?r:o)},h=f("add_new_item",Object(L.__)("Add new category"),Object(L.__)("Add new term")),m=f("new_item_name",Object(L.__)("Add new category"),Object(L.__)("Add new term")),v=f("parent_item",Object(L.__)("Parent Category"),Object(L.__)("Parent Term")),O="— ".concat(v," —"),g=h,j="editor-post-taxonomies__hierarchical-terms-input-".concat(r),_="editor-post-taxonomies__hierarchical-terms-filter-".concat(r),k=Object(y.get)(this.props.taxonomy,["labels","search_items"],Object(L.__)("Search Terms")),E=Object(y.get)(this.props.taxonomy,["name"],Object(L.__)("Terms")),w=a.length>=8;return[w&&Object(eo.createElement)("label",{key:"filter-label",htmlFor:_},k),w&&Object(eo.createElement)("input",{type:"search",id:_,value:b,onChange:this.setFilterValue,className:"editor-post-taxonomies__hierarchical-terms-filter",key:"term-filter-input"}),Object(eo.createElement)("div",{className:"editor-post-taxonomies__hierarchical-terms-list",key:"term-list",tabIndex:"0",role:"group","aria-label":E},this.renderTerms(""!==b?s:c)),!d&&o&&Object(eo.createElement)(Po.Button,{key:"term-add-button",onClick:this.onToggleForm,className:"editor-post-taxonomies__hierarchical-terms-add","aria-expanded":p,isLink:!0},h),p&&Object(eo.createElement)("form",{onSubmit:this.onAddTerm,key:"hierarchical-terms-form"},Object(eo.createElement)("label",{htmlFor:j,className:"editor-post-taxonomies__hierarchical-terms-label"},m),Object(eo.createElement)("input",{type:"text",id:j,className:"editor-post-taxonomies__hierarchical-terms-input",value:u,onChange:this.onChangeFormName,required:!0}),!!a.length&&Object(eo.createElement)(Po.TreeSelect,{label:v,noOptionLabel:O,onChange:this.onChangeFormParent,selectedId:l,tree:c}),Object(eo.createElement)(Po.Button,{isDefault:!0,type:"submit",className:"editor-post-taxonomies__hierarchical-terms-submit"},g))]}}]),t}(eo.Component),dc=Object(bo.compose)([Object(h.withSelect)((function(e,t){var n=t.slug,r=e("core/editor").getCurrentPost,o=(0,e("core").getTaxonomy)(n);return{hasCreateAction:!!o&&Object(y.get)(r(),["_links","wp:action-create-"+o.rest_base],!1),hasAssignAction:!!o&&Object(y.get)(r(),["_links","wp:action-assign-"+o.rest_base],!1),terms:o?e("core/editor").getEditedPostAttribute(o.rest_base):[],taxonomy:o}})),Object(h.withDispatch)((function(e){return{onUpdateTerms:function(t,n){e("core/editor").editPost(Object(v.a)({},n,t))}}})),Po.withSpokenMessages,bo.withInstanceId,Object(Po.withFilters)("editor.PostTaxonomyType")])(lc);var pc=Object(bo.compose)([Object(h.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?y.identity:r,i=Object(y.filter)(n,(function(e){return Object(y.includes)(e.types,t)}));return Object(y.filter)(i,(function(e){return e.visibility.show_ui})).map((function(e){var t=e.hierarchical?dc:Ki;return Object(eo.createElement)(eo.Fragment,{key:"taxonomy-".concat(e.slug)},o(Object(eo.createElement)(t,{slug:e.slug}),e))}))}));var bc=Object(bo.compose)([Object(h.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(y.some)(n,(function(e){return Object(y.includes)(e.types,t)}))?r:null})),fc=n(62),hc=n.n(fc),mc=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).edit=e.edit.bind(Object(So.a)(e)),e.stopEditing=e.stopEditing.bind(Object(So.a)(e)),e.state={},e}return Object(po.a)(t,e),Object(so.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(eo.createElement)(eo.Fragment,null,Object(eo.createElement)("label",{htmlFor:"post-content-".concat(t),className:"screen-reader-text"},Object(L.__)("Type text or HTML")),Object(eo.createElement)(hc.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(L.__)("Start writing with text or HTML")}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return t.isDirty?null:{value:e.value,isDirty:!1}}}]),t}(eo.Component),vc=Object(bo.compose)([Object(h.withSelect)((function(e){return{value:(0,e("core/editor").getEditedPostContent)()}})),Object(h.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(l.parse)(e);r(t)}}})),bo.withInstanceId])(mc),Oc=function(e){function t(e){var n,r=e.permalinkParts,o=e.slug;return Object(ao.a)(this,t),(n=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).state={editedPostName:o||r.postName},n.onSavePermalink=n.onSavePermalink.bind(Object(So.a)(n)),n}return Object(po.a)(t,e),Object(so.a)(t,[{key:"onSavePermalink",value:function(e){var t=_i(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(eo.createElement)("form",{className:"editor-post-permalink-editor",onSubmit:this.onSavePermalink},Object(eo.createElement)("span",{className:"editor-post-permalink__editor-container"},Object(eo.createElement)("span",{className:"editor-post-permalink-editor__prefix"},n),Object(eo.createElement)("input",{className:"editor-post-permalink-editor__edit","aria-label":Object(L.__)("Edit post permalink"),value:o,onChange:function(t){return e.setState({editedPostName:t.target.value})},type:"text",autoFocus:!0}),Object(eo.createElement)("span",{className:"editor-post-permalink-editor__suffix"},r),"‎"),Object(eo.createElement)(Po.Button,{className:"editor-post-permalink-editor__save",isLarge:!0,onClick:this.onSavePermalink},Object(L.__)("Save")))}}]),t}(eo.Component),gc=Object(bo.compose)([Object(h.withSelect)((function(e){return{permalinkParts:(0,e("core/editor").getPermalinkParts)()}})),Object(h.withDispatch)((function(e){return{editPost:e("core/editor").editPost}}))])(Oc),jc=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).addVisibilityCheck=e.addVisibilityCheck.bind(Object(So.a)(e)),e.onVisibilityChange=e.onVisibilityChange.bind(Object(So.a)(e)),e.state={isCopied:!1,isEditingPermalink:!1},e}return Object(po.a)(t,e),Object(so.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,u=t.postID,l=t.postTitle;if(r||!i||!c||!a)return null;var d=this.state,p=d.isCopied,b=d.isEditingPermalink,f=p?Object(L.__)("Permalink copied"):Object(L.__)("Copy the permalink"),h=c.prefix,m=c.suffix,v=Object(Ft.safeDecodeURIComponent)(s)||_i(l)||u,O=n?h+v+m:h;return Object(eo.createElement)("div",{className:"editor-post-permalink"},Object(eo.createElement)(Po.ClipboardButton,{className:vo()("editor-post-permalink__copy",{"is-copied":p}),text:O,label:f,onCopy:function(){return e.setState({isCopied:!0})},"aria-disabled":p,icon:"admin-links"}),Object(eo.createElement)("span",{className:"editor-post-permalink__label"},Object(L.__)("Permalink:")),!b&&Object(eo.createElement)(Po.ExternalLink,{className:"editor-post-permalink__link",href:o?O:a,target:"_blank",ref:function(t){return e.linkElement=t}},Object(Ft.safeDecodeURI)(O),"‎"),b&&Object(eo.createElement)(gc,{slug:v,onSave:function(){return e.setState({isEditingPermalink:!1})}}),n&&!b&&Object(eo.createElement)(Po.Button,{className:"editor-post-permalink__edit",isLarge:!0,onClick:function(){return e.setState({isEditingPermalink:!0})}},Object(L.__)("Edit")))}}]),t}(eo.Component),yc=Object(bo.compose)([Object(h.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,u=o(),l=u.id,d=u.link,p=s(c("type"));return{isNew:n(),postLink:d,permalinkParts:i(),postSlug:c("slug"),isEditable:r(),isPublished:a(),postTitle:c("title"),postID:l,isViewable:Object(y.get)(p,["viewable"],!1)}})),Object(h.withDispatch)((function(e){return{refreshPost:e("core/editor").refreshPost}}))])(jc),_c=/[\r\n]+/g,kc=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).onChange=e.onChange.bind(Object(So.a)(e)),e.onSelect=e.onSelect.bind(Object(So.a)(e)),e.onUnselect=e.onUnselect.bind(Object(So.a)(e)),e.onKeyDown=e.onKeyDown.bind(Object(So.a)(e)),e.redirectHistory=e.redirectHistory.bind(Object(So.a)(e)),e.state={isSelected:!1},e}return Object(po.a)(t,e),Object(so.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(_c," ");this.props.onUpdate(t)}},{key:"onKeyDown",value:function(e){e.keyCode===Co.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,u=vo()("wp-block editor-post-title__block",{"is-selected":s,"is-focus-mode":r,"has-fixed-toolbar":t}),l=Object(ei.decodeEntities)(c);return Object(eo.createElement)(Go,{supportKeys:"title"},Object(eo.createElement)("div",{className:"editor-post-title"},Object(eo.createElement)("div",{className:u},Object(eo.createElement)(Po.KeyboardShortcuts,{shortcuts:{"mod+z":this.redirectHistory,"mod+shift+z":this.redirectHistory}},Object(eo.createElement)("label",{htmlFor:"post-title-".concat(i),className:"screen-reader-text"},l||Object(L.__)("Add title")),Object(eo.createElement)(hc.a,{id:"post-title-".concat(i),className:"editor-post-title__input",value:a,onChange:this.onChange,placeholder:l||Object(L.__)("Add title"),onFocus:this.onSelect,onKeyDown:this.onKeyDown,onKeyPress:this.onUnselect,autoFocus:document.body===document.activeElement&&n})),s&&o&&Object(eo.createElement)(yc,null))))}}]),t}(eo.Component),Ec=Object(h.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,u=c.hasFixedToolbar;return{isCleanNewPost:r(),title:n("title"),isPostTypeViewable:Object(y.get)(i,["viewable"],!1),placeholder:a,isFocusMode:s,hasFixedToolbar:u}})),wc=Object(h.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}})),Sc=Object(bo.compose)(Ec,wc,bo.withInstanceId,Po.withFocusOutside)(kc);var Pc=Object(bo.compose)([Object(h.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(h.withDispatch)((function(e){return{trashPost:e("core/editor").trashPost}}))])((function(e){var t=e.isNew,n=e.postId,r=e.postType,o=Object(Do.a)(e,["isNew","postId","postType"]);return t||!n?null:Object(eo.createElement)(Po.Button,{className:"editor-post-trash button-link-delete",onClick:function(){return o.trashPost(n,r)},isDefault:!0,isLarge:!0},Object(L.__)("Move to Trash"))}));var Cc=Object(h.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 Tc=Object(bo.compose)([Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.getCurrentPostType;return{hasPublishAction:Object(y.get)(n(),["_links","wp:action-publish"],!1),postType:r()}}))])((function(e){var t=e.hasPublishAction;return(0,e.render)({canEdit:t})})),xc=n(97);var Bc=Object(h.withSelect)((function(e){return{content:e("core/editor").getEditedPostAttribute("content")}}))((function(e){var t=e.content,n=Object(L._x)("words","Word count type. Do not translate!");return Object(eo.createElement)("span",{className:"word-count"},Object(xc.count)(t,n))}));var Ic=Object(h.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,i=e.onRequestClose;return(Object(eo.createElement)(eo.Fragment,null,Object(eo.createElement)("div",{className:"table-of-contents__wrapper",role:"note","aria-label":Object(L.__)("Document Statistics"),tabIndex:"0"},Object(eo.createElement)("ul",{role:"list",className:"table-of-contents__counts"},Object(eo.createElement)("li",{className:"table-of-contents__count"},Object(L.__)("Words"),Object(eo.createElement)(Bc,null)),Object(eo.createElement)("li",{className:"table-of-contents__count"},Object(L.__)("Headings"),Object(eo.createElement)("span",{className:"table-of-contents__number"},t)),Object(eo.createElement)("li",{className:"table-of-contents__count"},Object(L.__)("Paragraphs"),Object(eo.createElement)("span",{className:"table-of-contents__number"},n)),Object(eo.createElement)("li",{className:"table-of-contents__count"},Object(L.__)("Blocks"),Object(eo.createElement)("span",{className:"table-of-contents__number"},r)))),t>0&&Object(eo.createElement)(eo.Fragment,null,Object(eo.createElement)("hr",null),Object(eo.createElement)("h2",{className:"table-of-contents__title"},Object(L.__)("Document Outline")),Object(eo.createElement)(Eo,{onSelect:i,hasOutlineItemsDisabled:o}))))}));var Ac=Object(h.withSelect)((function(e){return{hasBlocks:!!e("core/block-editor").getBlockCount()}}))((function(e){var t=e.hasBlocks,n=e.hasOutlineItemsDisabled;return Object(eo.createElement)(Po.Dropdown,{position:"bottom",className:"table-of-contents",contentClassName:"table-of-contents__popover",renderToggle:function(e){var n=e.isOpen,r=e.onToggle;return Object(eo.createElement)(Po.IconButton,{onClick:t?r:void 0,icon:"info-outline","aria-expanded":n,label:Object(L.__)("Content structure"),labelPosition:"bottom","aria-disabled":!t})},renderContent:function(e){var t=e.onClose;return Object(eo.createElement)(Ic,{onRequestClose:t,hasOutlineItemsDisabled:n})}})})),Lc=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).warnIfUnsavedChanges=e.warnIfUnsavedChanges.bind(Object(So.a)(e)),e}return Object(po.a)(t,e),Object(so.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((0,this.props.isEditedPostDirty)())return e.returnValue=Object(L.__)("You have unsaved changes. If you proceed, they will be lost."),e.returnValue}},{key:"render",value:function(){return null}}]),t}(eo.Component),Rc=Object(h.withSelect)((function(e){return{isEditedPostDirty:e("core/editor").isEditedPostDirty}}))(Lc),Nc=Object(bo.createHigherOrderComponent)((function(e){return Object(h.withRegistry)((function(t){var n=t.useSubRegistry,r=void 0===n||n,o=t.registry,i=Object(Do.a)(t,["useSubRegistry","registry"]);if(!r)return Object(eo.createElement)(e,i);var c=Object(eo.useState)(null),a=Object(R.a)(c,2),s=a[0],l=a[1];return Object(eo.useEffect)((function(){var e=Object(h.createRegistry)({"core/block-editor":u.storeConfig},o),t=e.registerStore("core/editor",$r);Xr(t),l(e)}),[o]),s?Object(eo.createElement)(h.RegistryProvider,{value:s},Object(eo.createElement)(e,i)):null}))}),"withRegistryProvider"),Dc=n(99),Uc=function(e){var t=e.additionalData,n=void 0===t?{}:t,r=e.allowedTypes,o=e.filesList,i=e.maxUploadFileSize,c=e.onError,a=void 0===c?y.noop:c,s=e.onFileChange,u=Object(h.select)("core/editor"),l=u.getCurrentPostId,d=u.getEditorSettings,p=d().allowedMimeTypes;i=i||d().maxUploadFileSize,Object(Dc.uploadMedia)({allowedTypes:r,filesList:o,onFileChange:s,additionalData:Object(f.a)({post:l()},n),maxUploadFileSize:i,onError:function(e){var t=e.message;return a(t)},wpAllowedMimeTypes:p})};var Fc=Object(bo.compose)([Object(h.withSelect)((function(e,t){var n=t.clientIds,r=e("core/block-editor"),o=r.getBlocksByClientId,i=r.canInsertBlockType,c=e("core/editor").__experimentalGetReusableBlock,a=e("core").canUser,s=o(n),u=1===s.length&&s[0]&&Object(l.isReusableBlock)(s[0])&&!!c(s[0].attributes.ref);return{isReusable:u,isVisible:u||i("core/block")&&Object(y.every)(s,(function(e){return!!e&&e.isValid&&Object(l.hasBlockSupport)(e.name,"reusable",!0)}))&&!!a("create","blocks")}})),Object(h.withDispatch)((function(e,t){var n=t.clientIds,r=t.onToggle,o=void 0===r?y.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(eo.createElement)(eo.Fragment,null,!n&&Object(eo.createElement)(Po.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",icon:"controls-repeat",onClick:o},Object(L.__)("Add to Reusable Blocks")),n&&Object(eo.createElement)(Po.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",icon:"controls-repeat",onClick:r},Object(L.__)("Convert to Regular Block"))):null}));var Mc=Object(bo.compose)([Object(h.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock,o=e("core").canUser,i=e("core/editor").__experimentalGetReusableBlock,c=r(n),a=c&&Object(l.isReusableBlock)(c)?i(c.attributes.ref):null;return{isVisible:!!a&&!!o("delete","blocks",a.id),isDisabled:a&&a.isTemporary}})),Object(h.withDispatch)((function(e,t,n){var r=t.clientId,o=t.onToggle,i=void 0===o?y.noop:o,c=n.select,a=e("core/editor").__experimentalDeleteReusableBlock,s=c("core/block-editor").getBlock;return{onDelete:function(){if(window.confirm(Object(L.__)("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(eo.createElement)(Po.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",icon:"no",disabled:n,onClick:function(){return r()}},Object(L.__)("Remove from Reusable Blocks")):null}));var Vc=Object(h.withSelect)((function(e){return{clientIds:(0,e("core/block-editor").getSelectedBlockClientIds)()}}))((function(e){var t=e.clientIds;return Object(eo.createElement)(u.__experimentalBlockSettingsMenuPluginsExtension,null,(function(e){var n=e.onClose;return Object(eo.createElement)(eo.Fragment,null,Object(eo.createElement)(Fc,{clientIds:t,onToggle:n}),1===t.length&&Object(eo.createElement)(Mc,{clientId:t[0],onToggle:n}))}))})),Hc=Object(eo.createElement)(Po.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},Object(eo.createElement)(Po.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M8 5a1 1 0 0 0-1 1v3H6a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-3h1a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1H8zm3 6H7v2h4v-2zM9 9V7h4v2H9z"}),Object(eo.createElement)(Po.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M1 3a2 2 0 0 0 1 1.732v10.536A2 2 0 1 0 4.732 18h10.536A2 2 0 1 0 18 15.268V4.732A2 2 0 1 0 15.268 2H4.732A2 2 0 0 0 1 3zm14.268 1H4.732A2.01 2.01 0 0 1 4 4.732v10.536c.304.175.557.428.732.732h10.536a2.01 2.01 0 0 1 .732-.732V4.732A2.01 2.01 0 0 1 15.268 4z"})),Wc=Object(eo.createElement)(Po.Icon,{icon:Hc}),zc=Object(eo.createElement)(Po.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},Object(eo.createElement)(Po.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M9 2H15C16.1 2 17 2.9 17 4V7C17 8.1 16.1 9 15 9H9C7.9 9 7 8.1 7 7V4C7 2.9 7.9 2 9 2ZM9 7H15V4H9V7Z"}),Object(eo.createElement)(Po.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5 11H11C12.1 11 13 11.9 13 13V16C13 17.1 12.1 18 11 18H5C3.9 18 3 17.1 3 16V13C3 11.9 3.9 11 5 11ZM5 16H11V13H5V16Z"})),Kc=Object(eo.createElement)(Po.Icon,{icon:zc});var Gc=Object(bo.compose)([Object(h.withSelect)((function(e,t){var n=t.clientIds,r=e("core/block-editor"),o=r.getBlockRootClientId,i=r.getBlocksByClientId,c=r.canInsertBlockType,a=(0,e("core/blocks").getGroupingBlockName)(),s=c(a,n&&n.length>0?o(n[0]):void 0),u=i(n),l=1===u.length&&u[0]&&u[0].name===a;return{isGroupable:s&&u.length&&!l,isUngroupable:l&&!!u[0].innerBlocks.length,blocksSelection:u,groupingBlockName:a}})),Object(h.withDispatch)((function(e,t){var n=t.clientIds,r=t.onToggle,o=void 0===r?y.noop:r,i=t.blocksSelection,c=void 0===i?[]:i,a=t.groupingBlockName,s=e("core/block-editor").replaceBlocks;return{onConvertToGroup:function(){if(c.length){var e=Object(l.switchToBlockType)(c,a);e&&s(n,e),o()}},onConvertFromGroup:function(){if(c.length){var e=c[0].innerBlocks;e.length&&(s(n,e),o())}}}}))])((function(e){var t=e.onConvertToGroup,n=e.onConvertFromGroup,r=e.isGroupable,o=void 0!==r&&r,i=e.isUngroupable,c=void 0!==i&&i;return Object(eo.createElement)(eo.Fragment,null,o&&Object(eo.createElement)(Po.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",icon:Wc,onClick:t},Object(L._x)("Group","verb")),c&&Object(eo.createElement)(Po.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",icon:Kc,onClick:n},Object(L._x)("Ungroup","Ungrouping blocks from within a Group block back into individual blocks within the Editor ")))}));var qc=Object(h.withSelect)((function(e){return{clientIds:(0,e("core/block-editor").getSelectedBlockClientIds)()}}))((function(e){var t=e.clientIds;return Object(eo.createElement)(u.__experimentalBlockSettingsMenuPluginsExtension,null,(function(e){var n=e.onClose;return Object(eo.createElement)(eo.Fragment,null,Object(eo.createElement)(Gc,{clientIds:t,onToggle:n}))}))})),Yc=Object(h.combineReducers)({downloadableBlocks:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{results:{},hasPermission:!0,filterValue:void 0,isRequestingDownloadableBlocks:!0,installedBlockTypes:[]},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_DOWNLOADABLE_BLOCKS":return Object(f.a)({},e,{isRequestingDownloadableBlocks:!0});case"RECEIVE_DOWNLOADABLE_BLOCKS":return Object(f.a)({},e,{results:Object.assign({},e.results,Object(v.a)({},t.filterValue,t.downloadableBlocks)),hasPermission:!0,isRequestingDownloadableBlocks:!1});case"SET_INSTALL_BLOCKS_PERMISSION":return Object(f.a)({},e,{items:t.hasPermission?e.items:[],hasPermission:t.hasPermission});case"ADD_INSTALLED_BLOCK_TYPE":return Object(f.a)({},e,{installedBlockTypes:[].concat(Object(N.a)(e.installedBlockTypes),[t.item])});case"REMOVE_INSTALLED_BLOCK_TYPE":return Object(f.a)({},e,{installedBlockTypes:e.installedBlockTypes.filter((function(e){return e.name!==t.item.name}))})}return e}});function Qc(e){return e.downloadableBlocks.isRequestingDownloadableBlocks}function Xc(e,t){return e.downloadableBlocks.results[t]?e.downloadableBlocks.results[t]:[]}function $c(e){return e.downloadableBlocks.hasPermission}function Zc(e){return Object(y.get)(e,["downloadableBlocks","installedBlockTypes"],[])}var Jc=x.a.mark(ra);function ea(e){return{type:"API_FETCH",request:e}}var ta=function(e,t,n){if(e){var r=document.querySelector('script[src="'.concat(e.src,'"]'));r&&r.parentNode.removeChild(r);var o=document.createElement("script");o.src="string"==typeof e?e:e.src,o.onload=t,o.onerror=n,document.body.appendChild(o)}},na=function(e){if(e){var t=document.createElement("link");t.rel="stylesheet",t.href="string"==typeof e?e:e.src,document.body.appendChild(t)}};function ra(e){return x.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{type:"LOAD_ASSETS",assets:e});case 1:case"end":return t.stop()}}),Jc)}var oa={SELECT:Object(h.createRegistryControl)((function(e){return function(t){var n,r=t.storeName,o=t.selectorName,i=t.args;return(n=e.select(r))[o].apply(n,Object(N.a)(i))}})),DISPATCH:Object(h.createRegistryControl)((function(e){return function(t){var n,r=t.storeName,o=t.dispatcherName,i=t.args;return(n=e.dispatch(r))[o].apply(n,Object(N.a)(i))}})),API_FETCH:function(e){var t=e.request;return A()(Object(f.a)({},t))},LOAD_ASSETS:function(e){var t=e.assets;return new Promise((function(e,n){if(Array.isArray(t)){var r=0;Object(y.forEach)(t,(function(t){null!==t.match(/\.js$/)?(r++,ta(t,(function(){if(0===--r)return e(r)}),n)):na(t)}))}else ta(t.editor_script,(function(){return e(0)}),n),na(t.style)}))}},ia=x.a.mark(da),ca=x.a.mark(pa),aa=x.a.mark(ba);function sa(){return{type:"FETCH_DOWNLOADABLE_BLOCKS"}}function ua(e,t){return{type:"RECEIVE_DOWNLOADABLE_BLOCKS",downloadableBlocks:e,filterValue:t}}function la(e){return{type:"SET_INSTALL_BLOCKS_PERMISSION",hasPermission:e}}function da(e,t,n){return x.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(r.prev=0,e.assets.length){r.next=3;break}throw new Error("Block has no assets");case 3:return r.next=5,ra(e.assets);case 5:if(!Object(l.getBlockTypes)().length){r.next=10;break}t(e),r.next=11;break;case 10:throw new Error("Unable to get block types");case 11:r.next=17;break;case 13:return r.prev=13,r.t0=r.catch(0),r.next=17,n(r.t0);case 17:case"end":return r.stop()}}),ia,null,[[0,13]])}function pa(e,t,n){var r,o,i;return x.a.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return r=e.id,o=e.name,c.prev=1,c.next=4,ea({path:"__experimental/block-directory/install",data:{slug:r},method:"POST"});case 4:if(!1!==(i=c.sent).success){c.next=7;break}throw new Error(i.errorMessage);case 7:return c.next=9,fa({id:r,name:o});case 9:t(),c.next=15;break;case 12:c.prev=12,c.t0=c.catch(1),n(c.t0);case 15:case"end":return c.stop()}}),ca,null,[[1,12]])}function ba(e,t,n){var r,o,i;return x.a.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return r=e.id,o=e.name,c.prev=1,c.next=4,ea({path:"__experimental/block-directory/uninstall",data:{slug:r},method:"DELETE"});case 4:if(!1!==(i=c.sent).success){c.next=7;break}throw new Error(i.errorMessage);case 7:return c.next=9,ha({id:r,name:o});case 9:t(),c.next=15;break;case 12:c.prev=12,c.t0=c.catch(1),n(c.t0);case 15:case"end":return c.stop()}}),aa,null,[[1,12]])}function fa(e){return{type:"ADD_INSTALLED_BLOCK_TYPE",item:e}}function ha(e){return{type:"REMOVE_INSTALLED_BLOCK_TYPE",item:e}}var ma={reducer:Yc,selectors:a,actions:s,controls:oa,resolvers:{getDownloadableBlocks:x.a.mark((function e(t){var n,r;return x.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,{type:"FETCH_DOWNLOADABLE_BLOCKS"};case 5:return e.next=7,ea({path:"__experimental/block-directory/search?term=".concat(t)});case 7:return n=e.sent,r=n.map((function(e){return Object(y.mapKeys)(e,(function(e,t){return Object(y.camelCase)(t)}))})),e.next=11,ua(r,t);case 11:e.next=18;break;case 13:if(e.prev=13,e.t0=e.catch(2),"rest_user_cannot_view"!==e.t0.code){e.next=18;break}return e.next=18,la(!1);case 18:case"end":return e.stop()}}),e,null,[[2,13]])})),hasInstallBlocksPermission:x.a.mark((function e(){return x.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,ea({path:"__experimental/block-directory/search?term="});case 3:return e.next=5,la(!0);case 5:e.next=12;break;case 7:if(e.prev=7,e.t0=e.catch(0),"rest_user_cannot_view"!==e.t0.code){e.next=12;break}return e.next=12,la(!1);case 12:case"end":return e.stop()}}),e,null,[[0,7]])}))}};Object(h.registerStore)("core/block-directory",ma);var va=function(e){var t=e.rating,n=.5*Math.round(t/.5),r=Math.floor(t),o=Math.ceil(t-r),i=5-(r+o);return Object(eo.createElement)("div",{"aria-label":Object(L.sprintf)(Object(L.__)("%s out of 5 stars"),n)},Object(y.times)(r,(function(e){return Object(eo.createElement)(Po.Icon,{key:"full_stars_".concat(e),icon:"star-filled",size:16})})),Object(y.times)(o,(function(e){return Object(eo.createElement)(Po.Icon,{key:"half_stars_".concat(e),icon:"star-half",size:16})})),Object(y.times)(i,(function(e){return Object(eo.createElement)(Po.Icon,{key:"empty_stars_".concat(e),icon:"star-empty",size:16})})))},Oa=function(e){var t=e.rating,n=e.ratingCount;return Object(eo.createElement)("div",{className:"block-directory-block-ratings"},Object(eo.createElement)(va,{rating:t}),Object(eo.createElement)("span",{className:"block-directory-block-ratings__rating-count","aria-label":Object(L.sprintf)(Object(L._n)("%d total rating","%d total ratings",n),n)},"(",n,")"))};var ga=function(e){var t=e.icon,n=e.title,r=e.rating,o=e.ratingCount,i=e.onClick;return Object(eo.createElement)("div",{className:"block-directory-downloadable-block-header__row"},null!==t.match(/\.(jpeg|jpg|gif|png)$/)?Object(eo.createElement)("img",{src:t,alt:"block icon"}):Object(eo.createElement)("span",null,Object(eo.createElement)(u.BlockIcon,{icon:t,showColors:!0})),Object(eo.createElement)("div",{className:"block-directory-downloadable-block-header__column"},Object(eo.createElement)("span",{role:"heading",className:"block-directory-downloadable-block-header__title"},n),Object(eo.createElement)(Oa,{rating:r,ratingCount:o})),Object(eo.createElement)(Po.Button,{isDefault:!0,onClick:function(e){e.preventDefault(),i()}},Object(L.__)("Add")))};var ja=function(e){var t=e.author,n=e.authorBlockCount,r=e.authorBlockRating;return Object(eo.createElement)(eo.Fragment,null,Object(eo.createElement)("span",{className:"block-directory-downloadable-block-author-info__content-author"},Object(L.sprintf)(Object(L.__)("Authored by %s"),t)),Object(eo.createElement)("span",{className:"block-directory-downloadable-block-author-info__content"},Object(L.sprintf)(Object(L._n)("This author has %d block, with an average rating of %d.","This author has %d blocks, with an average rating of %d.",n),n,r)))};var ya=function(e){var t=e.description,n=e.activeInstalls,r=e.humanizedUpdated;return Object(eo.createElement)(eo.Fragment,null,Object(eo.createElement)("p",{className:"block-directory-downloadable-block-info__content"},t),Object(eo.createElement)("div",{className:"block-directory-downloadable-block-info__row"},Object(eo.createElement)("div",{className:"block-directory-downloadable-block-info__column"},Object(eo.createElement)(Po.Icon,{icon:"chart-line"}),Object(L.sprintf)(Object(L._n)("%d active installation","%d active installations",n),n)),Object(eo.createElement)("div",{className:"block-directory-downloadable-block-info__column"},Object(eo.createElement)(Po.Icon,{icon:"update"}),Object(eo.createElement)("span",{"aria-label":Object(L.sprintf)(Object(L.__)("Updated %s"),r)},r))))};var _a=function(e){var t=e.item,n=e.onClick,r=t.icon,o=t.title,i=t.description,c=t.rating,a=t.activeInstalls,s=t.ratingCount,u=t.author,l=t.humanizedUpdated,d=t.authorBlockCount,p=t.authorBlockRating;return Object(eo.createElement)("li",{className:"block-directory-downloadable-block-list-item"},Object(eo.createElement)("article",{className:"block-directory-downloadable-block-list-item__panel"},Object(eo.createElement)("header",{className:"block-directory-downloadable-block-list-item__header"},Object(eo.createElement)(ga,{icon:r,onClick:n,title:o,rating:c,ratingCount:s})),Object(eo.createElement)("section",{className:"block-directory-downloadable-block-list-item__body"},Object(eo.createElement)(ya,{activeInstalls:a,description:i,humanizedUpdated:l})),Object(eo.createElement)("footer",{className:"block-directory-downloadable-block-list-item__footer"},Object(eo.createElement)(ja,{author:u,authorBlockCount:d,authorBlockRating:p}))))};var ka=Object(bo.compose)(Object(h.withDispatch)((function(e,t){var n=e("core/block-directory"),r=n.installBlock,o=n.downloadBlock,i=e("core/notices"),c=i.createErrorNotice,a=i.removeNotice,s=e("core/block-editor").removeBlocks,u=t.onSelect;return{downloadAndInstallBlock:function(e){var t=function(){var t=u(e);r(e,y.noop,(function n(){c(Object(L.__)("Block previews can't install."),{id:"block-install-error",actions:[{label:Object(L.__)("Retry"),onClick:function(){a("block-install-error"),r(e,y.noop,n)}},{label:Object(L.__)("Remove"),onClick:function(){a("block-install-error"),s(t.clientId),Object(l.unregisterBlockType)(e.name)}}]})}))};o(e,t,(function n(){c(Object(L.__)("Block previews can’t load."),{id:"block-download-error",actions:[{label:Object(L.__)("Retry"),onClick:function(){a("block-download-error"),o(e,t,n)}}]})}))}}})))((function(e){var t=e.items,n=e.onHover,r=void 0===n?y.noop:n,o=e.children,i=e.downloadAndInstallBlock;return(Object(eo.createElement)("ul",{role:"list",className:"block-directory-downloadable-blocks-list"},t&&t.map((function(e){return Object(eo.createElement)(_a,{key:e.id,className:Object(l.getBlockMenuDefaultClassName)(e.id),icons:e.icons,onClick:function(){i(e),r(null)},onFocus:function(){return r(e)},onMouseEnter:function(){return r(e)},onMouseLeave:function(){return r(null)},onBlur:function(){return r(null)},item:e})})),o))}));var Ea=Object(bo.compose)([Po.withSpokenMessages,Object(h.withSelect)((function(e,t){var n=t.filterValue,r=e("core/block-directory"),o=r.getDownloadableBlocks,i=r.hasInstallBlocksPermission,c=r.isRequestingDownloadableBlocks,a=i();return{downloadableItems:a?o(n):[],hasPermission:a,isLoading:c()}}))])((function(e){var t=e.downloadableItems,n=e.onSelect,r=e.onHover,o=e.hasPermission,i=e.isLoading,c=e.isWaiting,a=e.debouncedSpeak;return o?i||c?Object(eo.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description has-no-results"},Object(eo.createElement)(Po.Spinner,null)):t.length?(a(Object(L.sprintf)(Object(L._n)("No blocks found in your library. We did find %d block available for download.","No blocks found in your library. We did find %d blocks available for download.",t.length),t.length)),Object(eo.createElement)(eo.Fragment,null,Object(eo.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description"},Object(L.__)("No blocks found in your library. These blocks can be downloaded and installed:")),Object(eo.createElement)(ka,{items:t,onSelect:n,onHover:r}))):Object(eo.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description has-no-results"},Object(L.__)("No blocks found in your library.")):(a(Object(L.__)("No blocks found in your library. Please contact your site administrator to install new blocks.")),Object(eo.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description has-no-results"},Object(L.__)("No blocks found in your library."),Object(eo.createElement)("br",null),Object(L.__)("Please contact your site administrator to install new blocks.")))}));var wa=function(){var e=Object(eo.useState)(""),t=Object(R.a)(e,2),n=t[0],r=t[1],o=Object(y.debounce)(r,400);return Object(eo.createElement)(u.__experimentalInserterMenuExtension,null,(function(e){var t=e.onSelect,r=e.onHover,i=e.filterValue;return e.hasItems||!i?null:(n!==i&&o(i),Object(eo.createElement)(Ea,{onSelect:t,onHover:r,filterValue:n,isWaiting:i!==n}))}))},Sa=function(){var e=Object(B.a)(x.a.mark((function e(t){var n;return x.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,A()({path:Object(Ft.addQueryArgs)("/wp/v2/search",{search:t,per_page:20,type:"post"})});case 2:return n=e.sent,e.abrupt("return",Object(y.map)(n,(function(e){return{id:e.id,url:e.url,title:Object(ei.decodeEntities)(e.title)||Object(L.__)("(no title)")}})));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Pa=function(e){function t(e){var n;return Object(ao.a)(this,t),(n=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).getBlockEditorSettings=Z()(n.getBlockEditorSettings,{maxSize:1}),e.recovery?Object(uo.a)(n):(e.updatePostLock(e.settings.postLock),e.setupEditor(e.post,e.initialEdits,e.settings.template),e.settings.autosave&&e.createWarningNotice(Object(L.__)("There is an autosave of this post that is more recent than the version below."),{id:"autosave-exists",actions:[{label:Object(L.__)("View the autosave"),url:e.settings.autosave.editLink}]}),n)}return Object(po.a)(t,e),Object(so.a)(t,[{key:"getBlockEditorSettings",value:function(e,t,n,r){return Object(f.a)({},Object(y.pick)(e,["alignWide","allowedBlockTypes","__experimentalPreferredStyleVariations","availableLegacyWidgets","bodyPlaceholder","codeEditingEnabled","colors","disableCustomColors","disableCustomFontSizes","focusMode","fontSizes","hasFixedToolbar","hasPermissionsToManageWidgets","imageSizes","isRTL","maxWidth","styles","template","templateLock","titlePlaceholder","onUpdateDefaultBlockStyles","__experimentalEnableLegacyWidgetBlock","__experimentalEnableMenuBlock","__experimentalBlockDirectory","showInserterHelpPanel"]),{__experimentalReusableBlocks:t,__experimentalMediaUpload:n?Uc:void 0,__experimentalFetchLinkSuggestions:Sa,__experimentalCanUserUseUnfilteredHTML:r})}},{key:"componentDidMount",value:function(){if(this.props.updateEditorSettings(this.props.settings),this.props.settings.styles){var e=Object(u.transformStyles)(this.props.settings.styles,".editor-styles-wrapper");Object(y.map)(e,(function(e){if(e){var t=document.createElement("style");t.innerHTML=e,document.body.appendChild(t)}}))}}},{key:"componentDidUpdate",value:function(e){var t=this;this.props.settings!==e.settings&&this.props.updateEditorSettings(this.props.settings),Object(y.isEqual)(this.props.downloadableBlocksToUninstall,e.downloadableBlocksToUninstall)||this.props.downloadableBlocksToUninstall.forEach((function(e){t.props.uninstallBlock(e,y.noop,(function(){t.props.createWarningNotice(Object(L.__)("Block previews can't uninstall."),{id:"block-uninstall-error"})})),Object(l.unregisterBlockType)(e.name)}))}},{key:"componentWillUnmount",value:function(){this.props.tearDownEditor()}},{key:"render",value:function(){var e=this.props,t=e.canUserUseUnfilteredHTML,n=e.children,r=e.blocks,o=e.resetEditorBlocks,i=e.isReady,c=e.settings,a=e.reusableBlocks,s=e.resetEditorBlocksWithoutUndoLevel,l=e.hasUploadPermissions;if(!i)return null;var d=this.getBlockEditorSettings(c,a,l,t);return Object(eo.createElement)(u.BlockEditorProvider,{value:r,onInput:s,onChange:o,settings:d,useSubRegistry:!1},n,Object(eo.createElement)(Vc,null),Object(eo.createElement)(qc,null),d.__experimentalBlockDirectory&&Object(eo.createElement)(wa,null))}}]),t}(eo.Component),Ca=Object(bo.compose)([Nc,Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.canUserUseUnfilteredHTML,r=t.__unstableIsEditorReady,o=t.getEditorBlocks,i=t.__experimentalGetReusableBlocks,c=e("core").canUser,a=e("core/block-directory").getInstalledBlockTypes,s=e("core/block-editor").getBlocks,u=Object(y.differenceBy)(a(),s(),"name");return{canUserUseUnfilteredHTML:n(),isReady:r(),blocks:o(),reusableBlocks:i(),hasUploadPermissions:Object(y.defaultTo)(c("create","media"),!0),downloadableBlocksToUninstall:u}})),Object(h.withDispatch)((function(e){var t=e("core/editor"),n=t.setupEditor,r=t.updatePostLock,o=t.resetEditorBlocks,i=t.updateEditorSettings,c=t.__experimentalTearDownEditor,a=e("core/notices").createWarningNotice,s=e("core/block-directory").uninstallBlock;return{setupEditor:n,updatePostLock:r,createWarningNotice:a,resetEditorBlocks:o,updateEditorSettings:i,resetEditorBlocksWithoutUndoLevel:function(e){o(e,{__unstableShouldCreateUndoLevel:!1})},tearDownEditor:c,uninstallBlock:s}}))])(Pa),Ta=n(58),xa=n.n(Ta);function Ba(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=Object(eo.forwardRef)((function(n,r){return U()("wp.editor."+e,{alternative:"wp.blockEditor."+e}),Object(eo.createElement)(t,Object(ci.a)({ref:r},n))}));return n.forEach((function(n){r[n]=Ba(e+"."+n,t[n])})),r}function Ia(e,t){return function(){return U()("wp.editor."+e,{alternative:"wp.blockEditor."+e}),t.apply(void 0,arguments)}}var Aa=Ba("RichText",u.RichText,["Content"]);Aa.isEmpty=Ia("RichText.isEmpty",u.RichText.isEmpty);var La=Ba("Autocomplete",u.Autocomplete),Ra=Ba("AlignmentToolbar",u.AlignmentToolbar),Na=Ba("BlockAlignmentToolbar",u.BlockAlignmentToolbar),Da=Ba("BlockControls",u.BlockControls,["Slot"]),Ua=Ba("BlockEdit",u.BlockEdit),Fa=Ba("BlockEditorKeyboardShortcuts",u.BlockEditorKeyboardShortcuts),Ma=Ba("BlockFormatControls",u.BlockFormatControls,["Slot"]),Va=Ba("BlockIcon",u.BlockIcon),Ha=Ba("BlockInspector",u.BlockInspector),Wa=Ba("BlockList",u.BlockList),za=Ba("BlockMover",u.BlockMover),Ka=Ba("BlockNavigationDropdown",u.BlockNavigationDropdown),Ga=Ba("BlockSelectionClearer",u.BlockSelectionClearer),qa=Ba("BlockSettingsMenu",u.BlockSettingsMenu),Ya=Ba("BlockTitle",u.BlockTitle),Qa=Ba("BlockToolbar",u.BlockToolbar),Xa=Ba("ColorPalette",u.ColorPalette),$a=Ba("ContrastChecker",u.ContrastChecker),Za=Ba("CopyHandler",u.CopyHandler),Ja=Ba("DefaultBlockAppender",u.DefaultBlockAppender),es=Ba("FontSizePicker",u.FontSizePicker),ts=Ba("Inserter",u.Inserter),ns=Ba("InnerBlocks",u.InnerBlocks,["ButtonBlockAppender","DefaultBlockAppender","Content"]),rs=Ba("InspectorAdvancedControls",u.InspectorAdvancedControls,["Slot"]),os=Ba("InspectorControls",u.InspectorControls,["Slot"]),is=Ba("PanelColorSettings",u.PanelColorSettings),cs=Ba("PlainText",u.PlainText),as=Ba("RichTextShortcut",u.RichTextShortcut),ss=Ba("RichTextToolbarButton",u.RichTextToolbarButton),us=Ba("__unstableRichTextInputEvent",u.__unstableRichTextInputEvent),ls=Ba("MediaPlaceholder",u.MediaPlaceholder),ds=Ba("MediaUpload",u.MediaUpload),ps=Ba("MediaUploadCheck",u.MediaUploadCheck),bs=Ba("MultiBlocksSwitcher",u.MultiBlocksSwitcher),fs=Ba("MultiSelectScrollIntoView",u.MultiSelectScrollIntoView),hs=Ba("NavigableToolbar",u.NavigableToolbar),ms=Ba("ObserveTyping",u.ObserveTyping),vs=Ba("PreserveScrollInReorder",u.PreserveScrollInReorder),Os=Ba("SkipToSelectedBlock",u.SkipToSelectedBlock),gs=Ba("URLInput",u.URLInput),js=Ba("URLInputButton",u.URLInputButton),ys=Ba("URLPopover",u.URLPopover),_s=Ba("Warning",u.Warning),ks=Ba("WritingFlow",u.WritingFlow),Es=Ia("createCustomColorsHOC",u.createCustomColorsHOC),ws=Ia("getColorClassName",u.getColorClassName),Ss=Ia("getColorObjectByAttributeValues",u.getColorObjectByAttributeValues),Ps=Ia("getColorObjectByColorValue",u.getColorObjectByColorValue),Cs=Ia("getFontSize",u.getFontSize),Ts=Ia("getFontSizeClass",u.getFontSizeClass),xs=Ia("withColorContext",u.withColorContext),Bs=Ia("withColors",u.withColors),Is=Ia("withFontSizes",u.withFontSizes);Object(Jr.addFilter)("editor.Autocomplete.completers","editor/autocompleters/set-default-completers",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return e.push(Object(y.clone)(co)),t===Object(l.getDefaultBlockName)()&&e.push(Object(y.clone)(io)),e})),n.d(t,"AutosaveMonitor",(function(){return ho})),n.d(t,"DocumentOutline",(function(){return Eo})),n.d(t,"DocumentOutlineCheck",(function(){return wo})),n.d(t,"VisualEditorGlobalKeyboardShortcuts",(function(){return Io})),n.d(t,"EditorGlobalKeyboardShortcuts",(function(){return Ao})),n.d(t,"TextEditorGlobalKeyboardShortcuts",(function(){return Lo})),n.d(t,"EditorHistoryRedo",(function(){return Ro})),n.d(t,"EditorHistoryUndo",(function(){return No})),n.d(t,"EditorNotices",(function(){return Fo})),n.d(t,"ErrorBoundary",(function(){return Mo})),n.d(t,"LocalAutosaveMonitor",(function(){return zo})),n.d(t,"PageAttributesCheck",(function(){return Ko})),n.d(t,"PageAttributesOrder",(function(){return Yo})),n.d(t,"PageAttributesParent",(function(){return Zo})),n.d(t,"PageTemplate",(function(){return Jo})),n.d(t,"PostAuthor",(function(){return ri})),n.d(t,"PostAuthorCheck",(function(){return ti})),n.d(t,"PostComments",(function(){return oi})),n.d(t,"PostExcerpt",(function(){return ii})),n.d(t,"PostExcerptCheck",(function(){return ai})),n.d(t,"PostFeaturedImage",(function(){return mi})),n.d(t,"PostFeaturedImageCheck",(function(){return ui})),n.d(t,"PostFormat",(function(){return gi})),n.d(t,"PostFormatCheck",(function(){return vi})),n.d(t,"PostLastRevision",(function(){return ki})),n.d(t,"PostLastRevisionCheck",(function(){return ji})),n.d(t,"PostLockedModal",(function(){return Pi})),n.d(t,"PostPendingStatus",(function(){return Ti})),n.d(t,"PostPendingStatusCheck",(function(){return Ci})),n.d(t,"PostPingbacks",(function(){return xi})),n.d(t,"PostPreviewButton",(function(){return wi})),n.d(t,"PostPublishButton",(function(){return Ai})),n.d(t,"PostPublishButtonLabel",(function(){return Bi})),n.d(t,"PostPublishPanel",(function(){return nc})),n.d(t,"PostSavedState",(function(){return ic})),n.d(t,"PostSchedule",(function(){return Ui})),n.d(t,"PostScheduleCheck",(function(){return cc})),n.d(t,"PostScheduleLabel",(function(){return Fi})),n.d(t,"PostSticky",(function(){return sc})),n.d(t,"PostStickyCheck",(function(){return ac})),n.d(t,"PostSwitchToDraftButton",(function(){return rc})),n.d(t,"PostTaxonomies",(function(){return pc})),n.d(t,"PostTaxonomiesCheck",(function(){return bc})),n.d(t,"PostTextEditor",(function(){return vc})),n.d(t,"PostTitle",(function(){return Sc})),n.d(t,"PostTrash",(function(){return Pc})),n.d(t,"PostTrashCheck",(function(){return Cc})),n.d(t,"PostTypeSupportCheck",(function(){return Go})),n.d(t,"PostVisibility",(function(){return Ni})),n.d(t,"PostVisibilityLabel",(function(){return Di})),n.d(t,"PostVisibilityCheck",(function(){return Tc})),n.d(t,"TableOfContents",(function(){return Ac})),n.d(t,"UnsavedChangesWarning",(function(){return Rc})),n.d(t,"WordCount",(function(){return Bc})),n.d(t,"EditorProvider",(function(){return Ca})),n.d(t,"blockAutocompleter",(function(){return io})),n.d(t,"userAutocompleter",(function(){return co})),n.d(t,"ServerSideRender",(function(){return xa.a})),n.d(t,"RichText",(function(){return Aa})),n.d(t,"Autocomplete",(function(){return La})),n.d(t,"AlignmentToolbar",(function(){return Ra})),n.d(t,"BlockAlignmentToolbar",(function(){return Na})),n.d(t,"BlockControls",(function(){return Da})),n.d(t,"BlockEdit",(function(){return Ua})),n.d(t,"BlockEditorKeyboardShortcuts",(function(){return Fa})),n.d(t,"BlockFormatControls",(function(){return Ma})),n.d(t,"BlockIcon",(function(){return Va})),n.d(t,"BlockInspector",(function(){return Ha})),n.d(t,"BlockList",(function(){return Wa})),n.d(t,"BlockMover",(function(){return za})),n.d(t,"BlockNavigationDropdown",(function(){return Ka})),n.d(t,"BlockSelectionClearer",(function(){return Ga})),n.d(t,"BlockSettingsMenu",(function(){return qa})),n.d(t,"BlockTitle",(function(){return Ya})),n.d(t,"BlockToolbar",(function(){return Qa})),n.d(t,"ColorPalette",(function(){return Xa})),n.d(t,"ContrastChecker",(function(){return $a})),n.d(t,"CopyHandler",(function(){return Za})),n.d(t,"DefaultBlockAppender",(function(){return Ja})),n.d(t,"FontSizePicker",(function(){return es})),n.d(t,"Inserter",(function(){return ts})),n.d(t,"InnerBlocks",(function(){return ns})),n.d(t,"InspectorAdvancedControls",(function(){return rs})),n.d(t,"InspectorControls",(function(){return os})),n.d(t,"PanelColorSettings",(function(){return is})),n.d(t,"PlainText",(function(){return cs})),n.d(t,"RichTextShortcut",(function(){return as})),n.d(t,"RichTextToolbarButton",(function(){return ss})),n.d(t,"__unstableRichTextInputEvent",(function(){return us})),n.d(t,"MediaPlaceholder",(function(){return ls})),n.d(t,"MediaUpload",(function(){return ds})),n.d(t,"MediaUploadCheck",(function(){return ps})),n.d(t,"MultiBlocksSwitcher",(function(){return bs})),n.d(t,"MultiSelectScrollIntoView",(function(){return fs})),n.d(t,"NavigableToolbar",(function(){return hs})),n.d(t,"ObserveTyping",(function(){return ms})),n.d(t,"PreserveScrollInReorder",(function(){return vs})),n.d(t,"SkipToSelectedBlock",(function(){return Os})),n.d(t,"URLInput",(function(){return gs})),n.d(t,"URLInputButton",(function(){return js})),n.d(t,"URLPopover",(function(){return ys})),n.d(t,"Warning",(function(){return _s})),n.d(t,"WritingFlow",(function(){return ks})),n.d(t,"createCustomColorsHOC",(function(){return Es})),n.d(t,"getColorClassName",(function(){return ws})),n.d(t,"getColorObjectByAttributeValues",(function(){return Ss})),n.d(t,"getColorObjectByColorValue",(function(){return Ps})),n.d(t,"getFontSize",(function(){return Cs})),n.d(t,"getFontSizeClass",(function(){return Ts})),n.d(t,"withColorContext",(function(){return xs})),n.d(t,"withColors",(function(){return Bs})),n.d(t,"withFontSizes",(function(){return Is})),n.d(t,"mediaUpload",(function(){return Uc})),n.d(t,"cleanForSlug",(function(){return _i})),n.d(t,"storeConfig",(function(){return $r})),n.d(t,"transformStyles",(function(){return u.transformStyles}))},36: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;r=0;--i){var c=this.tryEntries[i],a=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var s=r.call(c,"catchLoc"),u=r.call(c,"finallyLoc");if(s&&u){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),S(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),f}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},5: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}))},52:function(e,t){!function(){e.exports=this.wp.htmlEntities}()},53:function(e,t){!function(){e.exports=this.wp.date}()},58:function(e,t){!function(){e.exports=this.wp.serverSideRender}()},6:function(e,t){!function(){e.exports=this.wp.blockEditor}()},61:function(e,t){!function(){e.exports=this.wp.nux}()},62:function(e,t,n){"use strict";t.__esModule=!0;var r=n(115);t.default=r.default},69:function(e,t){!function(){e.exports=this.wp.autop}()},7:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(10);function o(e){for(var t=1;t