/*! 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 c=t[n]={i:n,l:!1,exports:{}};return e[n].call(c.exports,c,c.exports,r),c.l=!0,c.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 c in e)r.d(n,c,function(t){return e[t]}.bind(null,c));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="t1DA")}({"1Yn1":function(e,t,r){"use strict";var n=r("GRId"),c=r("Tqx9"),o=Object(n.createElement)(c.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(n.createElement)(c.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"}));t.a=o},"1ZqX":function(e,t){e.exports=window.wp.data},Bpkj:function(e,t,r){"use strict";var n=r("GRId"),c=r("Tqx9"),o=Object(n.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(c.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"}));t.a=o},BsWD:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r("a3WO");function c(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}}},Crq9:function(e,t,r){"use strict";var n=r("GRId"),c=r("Tqx9"),o=Object(n.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(c.Path,{d:"M9.1 9v-.5c0-.6.2-1.1.7-1.4.5-.3 1.2-.5 2-.5.7 0 1.4.1 2.1.3.7.2 1.4.5 2.1.9l.2-1.9c-.6-.3-1.2-.5-1.9-.7-.8-.1-1.6-.2-2.4-.2-1.5 0-2.7.3-3.6 1-.8.7-1.2 1.5-1.2 2.6V9h2zM20 12H4v1h8.3c.3.1.6.2.8.3.5.2.9.5 1.1.8.3.3.4.7.4 1.2 0 .7-.2 1.1-.8 1.5-.5.3-1.2.5-2.1.5-.8 0-1.6-.1-2.4-.3-.8-.2-1.5-.5-2.2-.8L7 18.1c.5.2 1.2.4 2 .6.8.2 1.6.3 2.4.3 1.7 0 3-.3 3.9-1 .9-.7 1.3-1.6 1.3-2.8 0-.9-.2-1.7-.7-2.2H20v-1z"}));t.a=o},DSFK:function(e,t,r){"use strict";function n(e){if(Array.isArray(e))return e}r.d(t,"a",(function(){return n}))},Ff2n:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r("zLVn");function c(e,t){if(null==e)return{};var r,c,o=Object(n.a)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(c=0;c=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}},GRId:function(e,t){e.exports=window.wp.element},Mmq9:function(e,t){e.exports=window.wp.url},Mp0b:function(e,t,r){"use strict";var n=r("GRId"),c=r("Tqx9"),o=Object(n.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(c.Path,{d:"M15.6 7.3h-.7l1.6-3.5-.9-.4-3.9 8.5H9v1.5h2l-1.3 2.8H8.4c-2 0-3.7-1.7-3.7-3.7s1.7-3.7 3.7-3.7H10V7.3H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H9l-1.4 3.2.9.4 5.7-12.5h1.4c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.9 0 5.2-2.3 5.2-5.2 0-2.9-2.4-5.2-5.2-5.2z"}));t.a=o},ODXe:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r("DSFK");var c=r("BsWD"),o=r("PYwp");function a(e,t){return Object(n.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,c=!1,o=void 0;try{for(var a,i=e[Symbol.iterator]();!(n=(a=i.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){c=!0,o=e}finally{try{n||null==i.return||i.return()}finally{if(c)throw o}}return r}}(e,t)||Object(c.a)(e,t)||Object(o.a)()}},PYwp:function(e,t,r){"use strict";function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(t,"a",(function(){return n}))},Tqx9:function(e,t){e.exports=window.wp.primitives},YLtl:function(e,t){e.exports=window.lodash},a3WO: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]+>/g,"").trim();return Object(T.isURL)(o)?(window.console.log("Created link:\n\n",o),Object(c.applyFormat)(e,{type:"core/link",attributes:{url:Object(S.decodeEntities)(o)}})):e},edit:function(e){var t=e.isActive,r=e.activeAttributes,n=e.value,l=e.onChange,u=e.onFocus,s=e.contentRef,b=Object(o.useState)(!1),m=Object(j.a)(b,2),p=m[0],O=m[1];function f(){var e=Object(c.getTextContent)(Object(c.slice)(n));e&&Object(T.isURL)(e)?l(Object(c.applyFormat)(n,{type:"core/link",attributes:{url:e}})):e&&Object(T.isEmail)(e)?l(Object(c.applyFormat)(n,{type:"core/link",attributes:{url:"mailto:".concat(e)}})):O(!0)}function v(){l(Object(c.removeFormat)(n,"core/link")),Object(F.speak)(Object(a.__)("Link removed."),"assertive")}return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(i.RichTextShortcut,{type:"primary",character:"k",onUse:f}),Object(o.createElement)(i.RichTextShortcut,{type:"primaryShift",character:"k",onUse:v}),t&&Object(o.createElement)(i.RichTextToolbarButton,{name:"link",icon:P.a,title:Object(a.__)("Unlink"),onClick:v,isActive:t,shortcutType:"primaryShift",shortcutCharacter:"k"}),!t&&Object(o.createElement)(i.RichTextToolbarButton,{name:"link",icon:R.a,title:B,onClick:f,isActive:t,shortcutType:"primary",shortcutCharacter:"k"}),(p||t)&&Object(o.createElement)(N,{addingLink:p,stopAddingLink:function(){O(!1),u()},isActive:t,activeAttributes:r,value:n,onChange:l,contentRef:s}))}},V=r("Crq9"),H=Object(a.__)("Strikethrough"),L={name:"core/strikethrough",title:H,tagName:"s",className:null,edit:function(e){var t=e.isActive,r=e.value,n=e.onChange,a=e.onFocus;return Object(o.createElement)(i.RichTextToolbarButton,{icon:V.a,title:H,onClick:function(){n(Object(c.toggleFormat)(r,{type:"core/strikethrough"})),a()},isActive:t})}},G={name:"core/underline",title:Object(a.__)("Underline"),tagName:"span",className:null,attributes:{style:"style"},edit:function(e){var t=e.value,r=e.onChange,n=function(){r(Object(c.toggleFormat)(t,{type:"core/underline",attributes:{style:"text-decoration: underline;"}}))};return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(i.RichTextShortcut,{type:"primary",character:"u",onUse:n}),Object(o.createElement)(i.__unstableRichTextInputEvent,{inputType:"formatUnderline",onInput:n}))}},D=r("iClF"),q=r("uGfJ"),U=r("1ZqX");function W(e,t,r){var n=Object(c.getActiveFormat)(t,e);if(n){var o=n.attributes.style;if(o)return o.replace(new RegExp("^color:\\s*"),"");var a=n.attributes.class;if(a){var l=a.replace(/.*has-([^\s]*)-color.*/,"$1");return Object(i.getColorObjectByAttributeValues)(r,l).color}}}var Y=function(e){var t=e.name,r=e.value,n=e.onChange,a=Object(U.useSelect)((function(e){var t=e("core/block-editor").getSettings;return Object(A.get)(t(),["colors"],[])})),l=Object(o.useCallback)((function(e){if(e){var o=Object(i.getColorObjectByColorValue)(a,e);n(Object(c.applyFormat)(r,{type:t,attributes:o?{class:Object(i.getColorClassName)("color",o.slug)}:{style:"color:".concat(e)}}))}else n(Object(c.removeFormat)(r,t))}),[a,n]),u=Object(o.useMemo)((function(){return W(t,r,a)}),[t,r,a]);return Object(o.createElement)(i.ColorPalette,{value:u,onChange:l})};function Q(e){var t=e.name,r=e.value,n=e.onChange,a=e.onClose,l=e.contentRef,u=Object(c.useAnchorRef)({ref:l,value:r,settings:J});return Object(o.createElement)(i.URLPopover,{value:r,onClose:a,className:"components-inline-color-popover",anchorRef:u},Object(o.createElement)(Y,{name:t,value:r,onChange:n}))}var X=Object(a.__)("Text color"),K=[];var J={name:"core/text-color",title:X,tagName:"span",className:"has-inline-color",attributes:{style:"style",class:"class"},edit:function(e){var t=e.value,r=e.onChange,n=e.isActive,a=e.activeAttributes,l=e.contentRef,u=Object(i.__experimentalUseEditorFeature)("color.custom"),s=Object(i.__experimentalUseEditorFeature)("color.palette")||K,b=Object(o.useState)(!1),m=Object(j.a)(b,2),p=m[0],O=m[1],f=Object(o.useCallback)((function(){return O(!0)}),[O]),v=Object(o.useCallback)((function(){return O(!1)}),[O]),h=Object(o.useMemo)((function(){var e=W("core/text-color",t,s);if(e)return{backgroundColor:e}}),[t,s]),d=!Object(A.isEmpty)(s)||!u;return d||n?Object(o.createElement)(o.Fragment,null,Object(o.createElement)(i.RichTextToolbarButton,{key:n?"text-color":"text-color-not-active",className:"format-library-text-color-button",name:n?"text-color":void 0,icon:Object(o.createElement)(o.Fragment,null,Object(o.createElement)(D.a,{icon:q.a}),n&&Object(o.createElement)("span",{className:"format-library-text-color-button__indicator",style:h})),title:X,onClick:d?f:function(){return r(Object(c.removeFormat)(t,"core/text-color"))}}),p&&Object(o.createElement)(Q,{name:"core/text-color",onClose:v,activeAttributes:a,value:t,onChange:function(){r.apply(void 0,arguments),v()},contentRef:l})):null}},Z=Object(o.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.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"})),$=Object(a.__)("Subscript"),ee={name:"core/subscript",title:$,tagName:"sub",className:null,edit:function(e){var t=e.isActive,r=e.value,n=e.onChange,a=e.onFocus;return Object(o.createElement)(i.RichTextToolbarButton,{icon:Z,title:$,onClick:function(){n(Object(c.toggleFormat)(r,{type:"core/subscript"})),a()},isActive:t})}},te=Object(o.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.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(a.__)("Superscript"),ne={name:"core/superscript",title:re,tagName:"sup",className:null,edit:function(e){var t=e.isActive,r=e.value,n=e.onChange,a=e.onFocus;return Object(o.createElement)(i.RichTextToolbarButton,{icon:te,title:re,onClick:function(){n(Object(c.toggleFormat)(r,{type:"core/superscript"})),a()},isActive:t})}},ce=r("oMoS"),oe=Object(a.__)("Keyboard input");[b,O,x,C,z,L,G,J,ee,ne,{name:"core/keyboard",title:oe,tagName:"kbd",className:null,edit:function(e){var t=e.isActive,r=e.value,n=e.onChange,a=e.onFocus;return Object(o.createElement)(i.RichTextToolbarButton,{icon:ce.a,title:oe,onClick:function(){n(Object(c.toggleFormat)(r,{type:"core/keyboard"})),a()},isActive:t})}}].forEach((function(e){var t=e.name,r=Object(n.a)(e,["name"]);return Object(c.registerFormatType)(t,r)}))},"tI+e":function(e,t){e.exports=window.wp.components},uGfJ:function(e,t,r){"use strict";var n=r("GRId"),c=r("Tqx9"),o=Object(n.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(n.createElement)(c.Path,{d:"M13.23 15h1.9L11 4H9L5 15h1.88l1.07-3h4.18zm-1.53-4.54H8.51L10 5.6z"}));t.a=o},zLVn:function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,c={},o=Object.keys(e);for(n=0;n=0||(c[r]=e[r]);return c}r.d(t,"a",(function(){return n}))}});