/*! This file is auto-generated */ this.wp=this.wp||{},this.wp.formatLibrary=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s="./node_modules/@wordpress/format-library/build-module/index.js")}({"./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js":function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(c[r]=e[r])}return c}},"./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js":function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,o={},c=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}r.d(t,"a",(function(){return n}))},"./node_modules/@babel/runtime/helpers/esm/slicedToArray.js":function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r("./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js");var o=r("./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js"),c=r("./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js");function i(e,t){return Object(n.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,c=void 0;try{for(var i,a=e[Symbol.iterator]();!(n=(i=a.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,c=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw c}}return r}}(e,t)||Object(o.a)(e,t)||Object(c.a)()}},"./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js":function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r("./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js");function o(e,t){if(e){if("string"==typeof e)return Object(n.a)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Object(n.a)(e,t):void 0}}},"./node_modules/@wordpress/format-library/build-module/index.js":function(e,t,r){"use strict";r.r(t);var n=r("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),o=r("@wordpress/rich-text"),c=r("@wordpress/element"),i=r("@wordpress/i18n"),a=r("@wordpress/block-editor"),l=r("@wordpress/primitives"),s=Object(c.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(l.Path,{d:"M14.7 11.3c1-.6 1.5-1.6 1.5-3 0-2.3-1.3-3.4-4-3.4H7v14h5.8c1.4 0 2.5-.3 3.3-1 .8-.7 1.2-1.7 1.2-2.9.1-1.9-.8-3.1-2.6-3.7zm-5.1-4h2.3c.6 0 1.1.1 1.4.4.3.3.5.7.5 1.2s-.2 1-.5 1.2c-.3.3-.8.4-1.4.4H9.6V7.3zm4.6 9c-.4.3-1 .4-1.7.4H9.6v-3.9h2.9c.7 0 1.3.2 1.7.5.4.3.6.8.6 1.5s-.2 1.2-.6 1.5z"})),u=Object(i.__)("Bold"),b={name:"core/bold",title:u,tagName:"strong",className:null,edit:function(e){var t=e.isActive,r=e.value,n=e.onChange,i=e.onFocus;function l(){n(Object(o.toggleFormat)(r,{type:"core/bold"}))}return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(a.RichTextShortcut,{type:"primary",character:"b",onUse:l}),Object(c.createElement)(a.RichTextToolbarButton,{name:"bold",icon:s,title:u,onClick:function(){l(),i()},isActive:t,shortcutType:"primary",shortcutCharacter:"b"}),Object(c.createElement)(a.__unstableRichTextInputEvent,{inputType:"formatBold",onInput:l}))}},m=r("./node_modules/@wordpress/icons/build-module/library/code.js"),d=Object(i.__)("Inline code"),p={name:"core/code",title:d,tagName:"code",className:null,__unstableInputRule:function(e){var t=e,r=t.start,n=t.text;if("`"!==n.slice(r-1,r))return e;var c=n.slice(0,r-1).lastIndexOf("`");if(-1===c)return e;var i=c,a=r-2;return i===a?e:(e=Object(o.remove)(e,i,i+1),e=Object(o.remove)(e,a,a+1),e=Object(o.applyFormat)(e,{type:"core/code"},i,a))},edit:function(e){var t=e.value,r=e.onChange,n=e.onFocus,i=e.isActive;return Object(c.createElement)(a.RichTextToolbarButton,{icon:m.a,title:d,onClick:function(){r(Object(o.toggleFormat)(t,{type:"core/code"})),n()},isActive:i})}},j=r("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),O=r("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),f=r("@wordpress/components"),v=r("./node_modules/@wordpress/icons/build-module/library/keyboard-return.js");function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function w(e){for(var t=1;t]+>/g,"").trim();return Object(C.isURL)(c)?(window.console.log("Created link:\n\n",c),Object(o.applyFormat)(e,{type:"core/link",attributes:{url:Object(T.decodeEntities)(c)}})):e},edit:function(e){var t=e.isActive,r=e.activeAttributes,n=e.value,l=e.onChange,s=e.onFocus,u=e.contentRef,b=Object(c.useState)(!1),m=Object(O.a)(b,2),d=m[0],p=m[1];function j(){var e=Object(o.getTextContent)(Object(o.slice)(n));e&&Object(C.isURL)(e)?l(Object(o.applyFormat)(n,{type:"core/link",attributes:{url:e}})):e&&Object(C.isEmail)(e)?l(Object(o.applyFormat)(n,{type:"core/link",attributes:{url:"mailto:".concat(e)}})):p(!0)}function f(){l(Object(o.removeFormat)(n,"core/link")),Object(R.speak)(Object(i.__)("Link removed."),"assertive")}return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(a.RichTextShortcut,{type:"primary",character:"k",onUse:j}),Object(c.createElement)(a.RichTextShortcut,{type:"primaryShift",character:"k",onUse:f}),t&&Object(c.createElement)(a.RichTextToolbarButton,{name:"link",icon:S.a,title:Object(i.__)("Unlink"),onClick:f,isActive:t,shortcutType:"primaryShift",shortcutCharacter:"k"}),!t&&Object(c.createElement)(a.RichTextToolbarButton,{name:"link",icon:A.a,title:z,onClick:j,isActive:t,shortcutType:"primary",shortcutCharacter:"k"}),(d||t)&&Object(c.createElement)(V,{addingLink:d,stopAddingLink:function(){p(!1),s()},isActive:t,activeAttributes:r,value:n,onChange:l,contentRef:u}))}},B=r("./node_modules/@wordpress/icons/build-module/library/format-strikethrough.js"),L=Object(i.__)("Strikethrough"),I={name:"core/strikethrough",title:L,tagName:"s",className:null,edit:function(e){var t=e.isActive,r=e.value,n=e.onChange,i=e.onFocus;return Object(c.createElement)(a.RichTextToolbarButton,{icon:B.a,title:L,onClick:function(){n(Object(o.toggleFormat)(r,{type:"core/strikethrough"})),i()},isActive:t})}},U={name:"core/underline",title:Object(i.__)("Underline"),tagName:"span",className:null,attributes:{style:"style"},edit:function(e){var t=e.value,r=e.onChange,n=function(){r(Object(o.toggleFormat)(t,{type:"core/underline",attributes:{style:"text-decoration: underline;"}}))};return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(a.RichTextShortcut,{type:"primary",character:"u",onUse:n}),Object(c.createElement)(a.__unstableRichTextInputEvent,{inputType:"formatUnderline",onInput:n}))}},D=r("./node_modules/@wordpress/icons/build-module/icon/index.js"),W=r("./node_modules/@wordpress/icons/build-module/library/text-color.js"),G=r("@wordpress/data");function Q(e,t,r){var n=Object(o.getActiveFormat)(t,e);if(n){var c=n.attributes.style;if(c)return c.replace(new RegExp("^color:\\s*"),"");var i=n.attributes.class;if(i){var l=i.replace(/.*has-([^\s]*)-color.*/,"$1");return Object(a.getColorObjectByAttributeValues)(r,l).color}}}var $=function(e){var t=e.name,r=e.value,n=e.onChange,i=Object(G.useSelect)((function(e){var t=e("core/block-editor").getSettings;return Object(F.get)(t(),["colors"],[])})),l=Object(c.useCallback)((function(e){if(e){var c=Object(a.getColorObjectByColorValue)(i,e);n(Object(o.applyFormat)(r,{type:t,attributes:c?{class:Object(a.getColorClassName)("color",c.slug)}:{style:"color:".concat(e)}}))}else n(Object(o.removeFormat)(r,t))}),[i,n]),s=Object(c.useMemo)((function(){return Q(t,r,i)}),[t,r,i]);return Object(c.createElement)(a.ColorPalette,{value:s,onChange:l})};function K(e){var t=e.name,r=e.value,n=e.onChange,i=e.onClose,l=e.contentRef,s=Object(o.useAnchorRef)({ref:l,value:r,settings:X});return Object(c.createElement)(a.URLPopover,{value:r,onClose:i,className:"components-inline-color-popover",anchorRef:s},Object(c.createElement)($,{name:t,value:r,onChange:n}))}var q=Object(i.__)("Text color"),J=[];var X={name:"core/text-color",title:q,tagName:"span",className:"has-inline-color",attributes:{style:"style",class:"class"},edit:function(e){var t=e.value,r=e.onChange,n=e.isActive,i=e.activeAttributes,l=e.contentRef,s=Object(a.__experimentalUseEditorFeature)("color.custom"),u=Object(a.__experimentalUseEditorFeature)("color.palette")||J,b=Object(c.useState)(!1),m=Object(O.a)(b,2),d=m[0],p=m[1],j=Object(c.useCallback)((function(){return p(!0)}),[p]),f=Object(c.useCallback)((function(){return p(!1)}),[p]),v=Object(c.useMemo)((function(){var e=Q("core/text-color",t,u);if(e)return{backgroundColor:e}}),[t,u]),h=!Object(F.isEmpty)(u)||!s;return h||n?Object(c.createElement)(c.Fragment,null,Object(c.createElement)(a.RichTextToolbarButton,{key:n?"text-color":"text-color-not-active",className:"format-library-text-color-button",name:n?"text-color":void 0,icon:Object(c.createElement)(c.Fragment,null,Object(c.createElement)(D.a,{icon:W.a}),n&&Object(c.createElement)("span",{className:"format-library-text-color-button__indicator",style:v})),title:q,onClick:h?j:function(){return r(Object(o.removeFormat)(t,"core/text-color"))}}),d&&Object(c.createElement)(K,{name:"core/text-color",onClose:f,activeAttributes:i,value:t,onChange:function(){r.apply(void 0,arguments),f()},contentRef:l})):null}},Y=Object(c.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(l.Path,{d:"M16.9 18.3l.8-1.2c.4-.6.7-1.2.9-1.6.2-.4.3-.8.3-1.2 0-.3-.1-.7-.2-1-.1-.3-.4-.5-.6-.7-.3-.2-.6-.3-1-.3s-.8.1-1.1.2c-.3.1-.7.3-1 .6l.2 1.3c.3-.3.5-.5.8-.6s.6-.2.9-.2c.3 0 .5.1.7.2.2.2.2.4.2.7 0 .3-.1.5-.2.8-.1.3-.4.7-.8 1.3L15 19.4h4.3v-1.2h-2.4zM14.1 7.2h-2L9.5 11 6.9 7.2h-2l3.6 5.3L4.7 18h2l2.7-4 2.7 4h2l-3.8-5.5 3.8-5.3z"})),Z=Object(i.__)("Subscript"),ee={name:"core/subscript",title:Z,tagName:"sub",className:null,edit:function(e){var t=e.isActive,r=e.value,n=e.onChange,i=e.onFocus;return Object(c.createElement)(a.RichTextToolbarButton,{icon:Y,title:Z,onClick:function(){n(Object(o.toggleFormat)(r,{type:"core/subscript"})),i()},isActive:t})}},te=Object(c.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(l.Path,{d:"M16.9 10.3l.8-1.3c.4-.6.7-1.2.9-1.6.2-.4.3-.8.3-1.2 0-.3-.1-.7-.2-1-.2-.2-.4-.4-.7-.6-.3-.2-.6-.3-1-.3s-.8.1-1.1.2c-.3.1-.7.3-1 .6l.1 1.3c.3-.3.5-.5.8-.6s.6-.2.9-.2c.3 0 .5.1.7.2.2.2.2.4.2.7 0 .3-.1.5-.2.8-.1.3-.4.7-.8 1.3l-1.8 2.8h4.3v-1.2h-2.2zm-2.8-3.1h-2L9.5 11 6.9 7.2h-2l3.6 5.3L4.7 18h2l2.7-4 2.7 4h2l-3.8-5.5 3.8-5.3z"})),re=Object(i.__)("Superscript"),ne={name:"core/superscript",title:re,tagName:"sup",className:null,edit:function(e){var t=e.isActive,r=e.value,n=e.onChange,i=e.onFocus;return Object(c.createElement)(a.RichTextToolbarButton,{icon:te,title:re,onClick:function(){n(Object(o.toggleFormat)(r,{type:"core/superscript"})),i()},isActive:t})}},oe=r("./node_modules/@wordpress/icons/build-module/library/button.js"),ce=Object(i.__)("Keyboard input");[b,p,_,P,H,I,U,X,ee,ne,{name:"core/keyboard",title:ce,tagName:"kbd",className:null,edit:function(e){var t=e.isActive,r=e.value,n=e.onChange,i=e.onFocus;return Object(c.createElement)(a.RichTextToolbarButton,{icon:oe.a,title:ce,onClick:function(){n(Object(o.toggleFormat)(r,{type:"core/keyboard"})),i()},isActive:t})}}].forEach((function(e){var t=e.name,r=Object(n.a)(e,["name"]);return Object(o.registerFormatType)(t,r)}))},"./node_modules/@wordpress/icons/build-module/icon/index.js":function(e,t,r){"use strict";var n=r("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),o=r("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),c=r("@wordpress/element");function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}t.a=function(e){var t=e.icon,r=e.size,a=void 0===r?24:r,l=Object(o.a)(e,["icon","size"]);return Object(c.cloneElement)(t,function(e){for(var t=1;t