WordPress/wp-includes/js/dist/block-library.min.js
desrosj 5a4b00a618 Grouped merges for 5.2.12.
- Update `lodash` to the latest version `4.17.21`.
- Disable some attributes for rich text.
- Use hashed/deterministic moduleIDs in webpack config.

Props ellatrix, peterwilsoncc, get_dave, mcsf, talldanwp, youknowriad, desrosj, nerrad, gziolo.
Merges [50940-50941,50984-50985,51426] to the 5.2 branch.
Built from https://develop.svn.wordpress.org/branches/5.2@51756


git-svn-id: http://core.svn.wordpress.org/branches/5.2@51363 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-09-08 21:22:54 +00:00

13 lines
260 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

this.wp=this.wp||{},this.wp.blockLibrary=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="K51g")}({"1CF3":function(e,t){!function(){e.exports=this.wp.dom}()},"1OyB":function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},"1ZqX":function(e,t){!function(){e.exports=this.wp.data}()},"25BE":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}))},"2BaN":function(e,t,n){"use strict";n.r(t),n.d(t,"name",(function(){return i})),n.d(t,"settings",(function(){return c}));var r=n("l3Sj"),o=n("GRId"),a=n("axFQ");var i="core/search",c={title:Object(r.__)("Search"),description:Object(r.__)("Help visitors find your content."),icon:"search",category:"widgets",keywords:[Object(r.__)("find")],edit:function(e){var t=e.className,n=e.attributes,i=e.setAttributes,c=n.label,l=n.placeholder,s=n.buttonText;return Object(o.createElement)("div",{className:t},Object(o.createElement)(a.RichText,{wrapperClassName:"wp-block-search__label","aria-label":Object(r.__)("Label text"),placeholder:Object(r.__)("Add label…"),keepPlaceholderOnFocus:!0,formattingControls:[],value:c,onChange:function(e){return i({label:e})}}),Object(o.createElement)("input",{className:"wp-block-search__input","aria-label":Object(r.__)("Optional placeholder text"),placeholder:l?void 0:Object(r.__)("Optional placeholder…"),value:l,onChange:function(e){return i({placeholder:e.target.value})}}),Object(o.createElement)(a.RichText,{wrapperClassName:"wp-block-search__button",className:"wp-block-search__button-rich-text","aria-label":Object(r.__)("Button text"),placeholder:Object(r.__)("Add button text…"),keepPlaceholderOnFocus:!0,formattingControls:[],value:s,onChange:function(e){return i({buttonText:e})}}))},save:function(){return null}}},"4JlD":function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,c){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?a(i(e),(function(i){var c=encodeURIComponent(r(i))+n;return o(e[i])?a(e[i],(function(e){return c+encodeURIComponent(r(e))})).join(t):c+encodeURIComponent(r(e[i]))})).join(t):c?encodeURIComponent(r(c))+n+encodeURIComponent(r(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function a(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var i=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},"4eJC":function(e,t,n){e.exports=function(e,t){var n,r,o,a=0;function i(){var t,i,c=r,l=arguments.length;e:for(;c;){if(c.args.length===arguments.length){for(i=0;i<l;i++)if(c.args[i]!==arguments[i]){c=c.next;continue e}return c!==r&&(c===o&&(o=c.prev),c.prev.next=c.next,c.next&&(c.next.prev=c.prev),c.next=r,c.prev=null,r.prev=c,r=c),c.val}c=c.next}for(t=new Array(l),i=0;i<l;i++)t[i]=arguments[i];return c={args:t,val:e.apply(null,t)},r?(r.prev=c,c.next=r):o=c,a===n?(o=o.prev).next=null:a++,r=c,c.val}return t&&t.maxSize&&(n=t.maxSize),i.clear=function(){r=null,o=null,a=0},i}},"5ou0":function(e,t,n){"use strict";n.r(t),n.d(t,"name",(function(){return s})),n.d(t,"settings",(function(){return u}));var r=n("GRId"),o=n("UuzZ"),a=n("l3Sj"),i=n("tI+e"),c=n("axFQ"),l=n("K9lf"),s="core/shortcode",u={title:Object(a.__)("Shortcode"),description:Object(a.__)("Insert additional custom elements with a WordPress shortcode."),icon:Object(r.createElement)(i.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(i.Path,{d:"M8.5,21.4l1.9,0.5l5.2-19.3l-1.9-0.5L8.5,21.4z M3,19h4v-2H5V7h2V5H3V19z M17,5v2h2v10h-2v2h4V5H17z"})),category:"widgets",attributes:{text:{type:"string",source:"html"}},transforms:{from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:function(e,t){var n=t.content;return Object(o.removep)(Object(o.autop)(n))}}},priority:20}]},supports:{customClassName:!1,className:!1,html:!1},edit:Object(l.withInstanceId)((function(e){var t=e.attributes,n=e.setAttributes,o=e.instanceId,l="blocks-shortcode-input-".concat(o);return Object(r.createElement)("div",{className:"wp-block-shortcode"},Object(r.createElement)("label",{htmlFor:l},Object(r.createElement)(i.Dashicon,{icon:"shortcode"}),Object(a.__)("Shortcode")),Object(r.createElement)(c.PlainText,{className:"input-control",id:l,value:t.text,placeholder:Object(a.__)("Write shortcode here…"),onChange:function(e){return n({text:e})}}))})),save:function(e){var t=e.attributes;return Object(r.createElement)(r.RawHTML,null,t.text)}}},"7mGV":function(e,t,n){"use strict";n.r(t),n.d(t,"name",(function(){return k})),n.d(t,"settings",(function(){return E}));var r=n("vpQ4"),o=n("rePB"),a=n("GRId"),i=n("TSYQ"),c=n.n(i),l=n("YLtl"),s=n("l3Sj"),u=n("axFQ"),b=n("1ZqX"),d=n("tI+e"),m=n("wx14"),h=n("1OyB"),p=n("vuIU"),g=n("md7G"),f=n("foSv"),O=n("Ji7U"),v=n("JX7q"),j="is-style-".concat("solid-color"),y=function(e){function t(e){var n;return Object(h.a)(this,t),(n=Object(g.a)(this,Object(f.a)(t).call(this,e))).wasTextColorAutomaticallyComputed=!1,n.pullQuoteMainColorSetter=n.pullQuoteMainColorSetter.bind(Object(v.a)(Object(v.a)(n))),n.pullQuoteTextColorSetter=n.pullQuoteTextColorSetter.bind(Object(v.a)(Object(v.a)(n))),n}return Object(O.a)(t,e),Object(p.a)(t,[{key:"pullQuoteMainColorSetter",value:function(e){var t=this.props,n=t.colorUtils,r=t.textColor,o=t.setTextColor,a=t.setMainColor,i=t.className,c=Object(l.includes)(i,j),s=!r.color||this.wasTextColorAutomaticallyComputed,u=c&&s&&e;a(e),u&&(this.wasTextColorAutomaticallyComputed=!0,o(n.getMostReadableColor(e)))}},{key:"pullQuoteTextColorSetter",value:function(e){(0,this.props.setTextColor)(e),this.wasTextColorAutomaticallyComputed=!1}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.mainColor,r=e.textColor,i=e.setAttributes,b=e.isSelected,d=e.className,h=t.value,p=t.citation,g=Object(l.includes)(d,j),f=g?{backgroundColor:n.color}:{borderColor:n.color},O={color:r.color},v=r.color?c()("has-text-color",Object(o.a)({},r.class,r.class)):void 0;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)("figure",{style:f,className:c()(d,Object(o.a)({},n.class,g&&n.class))},Object(a.createElement)("blockquote",{style:O,className:v},Object(a.createElement)(u.RichText,{multiline:!0,value:h,onChange:function(e){return i({value:e})},placeholder:Object(s.__)("Write quote…"),wrapperClassName:"block-library-pullquote__content"}),(!u.RichText.isEmpty(p)||b)&&Object(a.createElement)(u.RichText,{value:p,placeholder:Object(s.__)("Write citation…"),onChange:function(e){return i({citation:e})},className:"wp-block-pullquote__citation"}))),Object(a.createElement)(u.InspectorControls,null,Object(a.createElement)(u.PanelColorSettings,{title:Object(s.__)("Color Settings"),colorSettings:[{value:n.color,onChange:this.pullQuoteMainColorSetter,label:Object(s.__)("Main Color")},{value:r.color,onChange:this.pullQuoteTextColorSetter,label:Object(s.__)("Text Color")}]},g&&Object(a.createElement)(u.ContrastChecker,Object(m.a)({textColor:r.color,backgroundColor:n.color},{isLargeText:!1})))))}}]),t}(a.Component),w=Object(u.withColors)({mainColor:"background-color",textColor:"color"})(y),_={value:{type:"string",source:"html",selector:"blockquote",multiline:"p"},citation:{type:"string",source:"html",selector:"cite",default:""},mainColor:{type:"string"},customMainColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},k="core/pullquote",E={title:Object(s.__)("Pullquote"),description:Object(s.__)("Give special visual emphasis to a quote from your text."),icon:Object(a.createElement)(d.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(d.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(a.createElement)(d.Polygon,{points:"21 18 2 18 2 20 21 20"}),Object(a.createElement)(d.Path,{d:"m19 10v4h-15v-4h15m1-2h-17c-0.55 0-1 0.45-1 1v6c0 0.55 0.45 1 1 1h17c0.55 0 1-0.45 1-1v-6c0-0.55-0.45-1-1-1z"}),Object(a.createElement)(d.Polygon,{points:"21 4 2 4 2 6 21 6"})),category:"formatting",attributes:_,styles:[{name:"default",label:Object(s._x)("Default","block style"),isDefault:!0},{name:"solid-color",label:Object(s.__)("Solid Color")}],supports:{align:["left","right","wide","full"]},edit:w,save:function(e){var t,n,r=e.attributes,i=r.mainColor,s=r.customMainColor,d=r.textColor,m=r.customTextColor,h=r.value,p=r.citation,g=r.className;if(Object(l.includes)(g,j))(t=Object(u.getColorClassName)("background-color",i))||(n={backgroundColor:s});else if(s)n={borderColor:s};else if(i){var f=Object(l.get)(Object(b.select)("core/block-editor").getSettings(),["colors"],[]);n={borderColor:Object(u.getColorObjectByAttributeValues)(f,i).color}}var O=Object(u.getColorClassName)("color",d),v=d||m?c()("has-text-color",Object(o.a)({},O,O)):void 0,y=O?void 0:{color:m};return Object(a.createElement)("figure",{className:t,style:n},Object(a.createElement)("blockquote",{className:v,style:y},Object(a.createElement)(u.RichText.Content,{value:h,multiline:!0}),!u.RichText.isEmpty(p)&&Object(a.createElement)(u.RichText.Content,{tagName:"cite",value:p})))},deprecated:[{attributes:Object(r.a)({},_),save:function(e){var t=e.attributes,n=t.value,r=t.citation;return Object(a.createElement)("blockquote",null,Object(a.createElement)(u.RichText.Content,{value:n,multiline:!0}),!u.RichText.isEmpty(r)&&Object(a.createElement)(u.RichText.Content,{tagName:"cite",value:r}))}},{attributes:Object(r.a)({},_,{citation:{type:"string",source:"html",selector:"footer"},align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,n=t.value,r=t.citation,o=t.align;return Object(a.createElement)("blockquote",{className:"align".concat(o)},Object(a.createElement)(u.RichText.Content,{value:n,multiline:!0}),!u.RichText.isEmpty(r)&&Object(a.createElement)(u.RichText.Content,{tagName:"footer",value:r}))}}]}},"80sk":function(e,t,n){"use strict";n.r(t),n.d(t,"name",(function(){return P})),n.d(t,"settings",(function(){return L}));var r=n("rePB"),o=n("vpQ4"),a=n("GRId"),i=n("YLtl"),c=n("TSYQ"),l=n.n(c),s=n("HSyU"),u=n("axFQ"),b=n("l3Sj"),d=n("tI+e"),m=Object(a.createElement)(d.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)(d.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(a.createElement)(d.Path,{d:"M0 0h24v24H0z",fill:"none"})),h=n("1OyB"),p=n("vuIU"),g=n("md7G"),f=n("foSv"),O=n("Ji7U"),v=n("JX7q"),j=n("FEKF"),y=n.n(j),w=n("Zss7"),_=n.n(w),k=n("K9lf"),E=n("jSdM"),C=["image","video"],S=[["core/paragraph",{align:"center",fontSize:"large",placeholder:Object(b.__)("Write title…")}]],x=["core/button","core/heading","core/paragraph"];function T(){return T.fastAverageColor||(T.fastAverageColor=new y.a),T.fastAverageColor}function R(e){return e?{backgroundImage:"url(".concat(e,")")}:{}}function I(e){return 0===e||50===e?null:"has-background-dim-"+10*Math.round(e/10)}var A=function(e){function t(){var e;return Object(h.a)(this,t),(e=Object(g.a)(this,Object(f.a)(t).apply(this,arguments))).state={isDark:!1},e.imageRef=Object(a.createRef)(),e.videoRef=Object(a.createRef)(),e.changeIsDarkIfRequired=e.changeIsDarkIfRequired.bind(Object(v.a)(Object(v.a)(e))),e}return Object(O.a)(t,e),Object(p.a)(t,[{key:"componentDidMount",value:function(){this.handleBackgroundMode()}},{key:"componentDidUpdate",value:function(e){this.handleBackgroundMode(e)}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=e.className,i=e.noticeOperations,c=e.noticeUI,s=e.overlayColor,u=e.setOverlayColor,h=t.backgroundType,p=t.dimRatio,g=t.focalPoint,f=t.hasParallax,O=t.id,v=t.url,j=function(e){if(e&&e.url){var t;if(e.media_type)t="image"===e.media_type?"image":"video";else{if("image"!==e.type&&"video"!==e.type)return;t=e.type}n({url:e.url,id:e.id,backgroundType:t})}else n({url:void 0,id:void 0})},y=Object(o.a)({},"image"===h?R(v):{},{backgroundColor:s.color});g&&(y.backgroundPosition="".concat(100*g.x,"% ").concat(100*g.y,"%"));var w=Object(a.createElement)(a.Fragment,null,Object(a.createElement)(E.BlockControls,null,!!v&&Object(a.createElement)(a.Fragment,null,Object(a.createElement)(E.MediaUploadCheck,null,Object(a.createElement)(d.Toolbar,null,Object(a.createElement)(E.MediaUpload,{onSelect:j,allowedTypes:C,value:O,render:function(e){var t=e.open;return Object(a.createElement)(d.IconButton,{className:"components-toolbar__control",label:Object(b.__)("Edit media"),icon:"edit",onClick:t})}}))))),!!v&&Object(a.createElement)(E.InspectorControls,null,Object(a.createElement)(d.PanelBody,{title:Object(b.__)("Cover Settings")},"image"===h&&Object(a.createElement)(d.ToggleControl,{label:Object(b.__)("Fixed Background"),checked:f,onChange:function(){return n({hasParallax:!f})}}),"image"===h&&!f&&Object(a.createElement)(d.FocalPointPicker,{label:Object(b.__)("Focal Point Picker"),url:v,value:g,onChange:function(e){return n({focalPoint:e})}}),Object(a.createElement)(E.PanelColorSettings,{title:Object(b.__)("Overlay"),initialOpen:!0,colorSettings:[{value:s.color,onChange:u,label:Object(b.__)("Overlay Color")}]},Object(a.createElement)(d.RangeControl,{label:Object(b.__)("Background Opacity"),value:p,onChange:function(e){return n({dimRatio:e})},min:0,max:100,step:10,required:!0})))));if(!v){var _=Object(a.createElement)(E.BlockIcon,{icon:m}),k=Object(b.__)("Cover");return Object(a.createElement)(a.Fragment,null,w,Object(a.createElement)(E.MediaPlaceholder,{icon:_,className:r,labels:{title:k,instructions:Object(b.__)("Drag an image or a video, upload a new one or select a file from your library.")},onSelect:j,accept:"image/*,video/*",allowedTypes:C,notices:c,onError:i.createErrorNotice}))}var T=l()(r,I(p),{"is-dark-theme":this.state.isDark,"has-background-dim":0!==p,"has-parallax":f});return Object(a.createElement)(a.Fragment,null,w,Object(a.createElement)("div",{"data-url":v,style:y,className:T},"image"===h&&Object(a.createElement)("img",{ref:this.imageRef,"aria-hidden":!0,alt:"",style:{display:"none"},src:v}),"video"===h&&Object(a.createElement)("video",{ref:this.videoRef,className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:v}),Object(a.createElement)("div",{className:"wp-block-cover__inner-container"},Object(a.createElement)(E.InnerBlocks,{template:S,allowedBlocks:x}))))}},{key:"handleBackgroundMode",value:function(e){var t=this,n=this.props,r=n.attributes,o=n.overlayColor,a=r.dimRatio,i=r.url;if(a>50){if(e&&e.attributes.dimRatio>50&&e.overlayColor.color===o.color)return;return o.color?void this.changeIsDarkIfRequired(_()(o.color).isDark()):void this.changeIsDarkIfRequired(!0)}if(!(e&&e.attributes.dimRatio<=50&&e.attributes.url===i)){var c;switch(r.backgroundType){case"image":c=this.imageRef.current;break;case"video":c=this.videoRef.current}c&&T().getColorAsync(c,(function(e){t.changeIsDarkIfRequired(e.isDark)}))}}},{key:"changeIsDarkIfRequired",value:function(e){this.state.isDark!==e&&this.setState({isDark:e})}}]),t}(a.Component),N=Object(k.compose)([Object(E.withColors)({overlayColor:"background-color"}),d.withNotices])(A),B={url:{type:"string"},id:{type:"number"},hasParallax:{type:"boolean",default:!1},dimRatio:{type:"number",default:50},overlayColor:{type:"string"},customOverlayColor:{type:"string"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"}},P="core/cover",L={title:Object(b.__)("Cover"),description:Object(b.__)("Add an image or video with a text overlay — great for headers."),icon:m,category:"common",attributes:B,supports:{align:!0},transforms:{from:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.caption,n=e.url,r=e.align,o=e.id;return Object(s.createBlock)("core/cover",{title:t,url:n,align:r,id:o})}},{type:"block",blocks:["core/video"],transform:function(e){var t=e.caption,n=e.src,r=e.align,o=e.id;return Object(s.createBlock)("core/cover",{title:t,url:n,align:r,id:o,backgroundType:"video"})}}],to:[{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.backgroundType;return!e.url||"image"===t},transform:function(e){var t=e.title,n=e.url,r=e.align,o=e.id;return Object(s.createBlock)("core/image",{caption:t,url:n,align:r,id:o})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.backgroundType;return!e.url||"video"===t},transform:function(e){var t=e.title,n=e.url,r=e.align,o=e.id;return Object(s.createBlock)("core/video",{caption:t,src:n,id:o,align:r})}}]},save:function(e){var t=e.attributes,n=t.backgroundType,r=t.customOverlayColor,o=t.dimRatio,i=t.focalPoint,c=t.hasParallax,s=t.overlayColor,b=t.url,d=Object(u.getColorClassName)("background-color",s),m="image"===n?R(b):{};d||(m.backgroundColor=r),i&&!c&&(m.backgroundPosition="".concat(100*i.x,"% ").concat(100*i.y,"%"));var h=l()(I(o),d,{"has-background-dim":0!==o,"has-parallax":c});return Object(a.createElement)("div",{className:h,style:m},"video"===n&&b&&Object(a.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:b}),Object(a.createElement)("div",{className:"wp-block-cover__inner-container"},Object(a.createElement)(u.InnerBlocks.Content,null)))},edit:N,deprecated:[{attributes:Object(o.a)({},B,{title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"}}),supports:{align:!0},save:function(e){var t=e.attributes,n=t.backgroundType,o=t.contentAlign,i=t.customOverlayColor,c=t.dimRatio,s=t.focalPoint,b=t.hasParallax,d=t.overlayColor,m=t.title,h=t.url,p=Object(u.getColorClassName)("background-color",d),g="image"===n?R(h):{};p||(g.backgroundColor=i),s&&!b&&(g.backgroundPosition="".concat(100*s.x,"% ").concat(100*s.y,"%"));var f=l()(I(c),p,Object(r.a)({"has-background-dim":0!==c,"has-parallax":b},"has-".concat(o,"-content"),"center"!==o));return Object(a.createElement)("div",{className:f,style:g},"video"===n&&h&&Object(a.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:h}),!u.RichText.isEmpty(m)&&Object(a.createElement)(u.RichText.Content,{tagName:"p",className:"wp-block-cover-text",value:m}))},migrate:function(e){return[Object(i.omit)(e,["title","contentAlign"]),[Object(s.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(b.__)("Write title…")})]]}},{attributes:Object(o.a)({},B,{title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},align:{type:"string"}}),supports:{className:!1},save:function(e){var t=e.attributes,n=t.url,o=t.title,i=t.hasParallax,c=t.dimRatio,s=t.align,b=t.contentAlign,d=t.overlayColor,m=t.customOverlayColor,h=Object(u.getColorClassName)("background-color",d),p=R(n);h||(p.backgroundColor=m);var g=l()("wp-block-cover-image",I(c),h,Object(r.a)({"has-background-dim":0!==c,"has-parallax":i},"has-".concat(b,"-content"),"center"!==b),s?"align".concat(s):null);return Object(a.createElement)("div",{className:g,style:p},!u.RichText.isEmpty(o)&&Object(a.createElement)(u.RichText.Content,{tagName:"p",className:"wp-block-cover-image-text",value:o}))}},{attributes:Object(o.a)({},B,{align:{type:"string"},title:{type:"string",source:"html",selector:"h2"},contentAlign:{type:"string",default:"center"}}),save:function(e){var t=e.attributes,n=t.url,r=t.title,o=t.hasParallax,i=t.dimRatio,c=t.align,s=R(n),b=l()(I(i),{"has-background-dim":0!==i,"has-parallax":o},c?"align".concat(c):null);return Object(a.createElement)("section",{className:b,style:s},Object(a.createElement)(u.RichText.Content,{tagName:"h2",value:r}))}}]}},"8oxB":function(e,t){var n,r,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var l,s=[],u=!1,b=-1;function d(){u&&l&&(u=!1,l.length?s=l.concat(s):b=-1,s.length&&m())}function m(){if(!u){var e=c(d);u=!0;for(var t=s.length;t;){for(l=s,s=[];++b<t;)l&&l[b].run();b=-1,t=s.length}l=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function p(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new h(e,t)),1!==s.length||u||c(m)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=p,o.addListener=p,o.once=p,o.off=p,o.removeListener=p,o.removeAllListeners=p,o.emit=p,o.prependListener=p,o.prependOnceListener=p,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},"A/WM":function(e,t,n){var r;
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/!function(){"use strict";var n=function(){function e(){}function t(e,t){for(var n=t.length,r=0;r<n;++r)o(e,t[r])}e.prototype=Object.create(null);var n={}.hasOwnProperty;var r=/\s+/;function o(e,o){if(o){var a=typeof o;"string"===a?function(e,t){for(var n=t.split(r),o=n.length,a=0;a<o;++a)e[n[a]]=!0}(e,o):Array.isArray(o)?t(e,o):"object"===a?function(e,t){if(t.toString===Object.prototype.toString)for(var r in t)n.call(t,r)&&(e[r]=!!t[r]);else e[t.toString()]=!0}(e,o):"number"===a&&function(e,t){e[t]=!0}(e,o)}}return function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];var a=new e;t(a,r);var i=[];for(var c in a)a[c]&&i.push(c);return i.join(" ")}}();e.exports?(n.default=n,e.exports=n):void 0===(r=function(){return n}.apply(t,[]))||(e.exports=r)}()},AyZW:function(e,t,n){"use strict";n.r(t),n.d(t,"name",(function(){return u})),n.d(t,"settings",(function(){return b}));var r=n("GRId"),o=n("NMb1"),a=n.n(o),i=n("l3Sj"),c=n("HSyU"),l=n("axFQ"),s=n("tI+e"),u="core/subhead",b={title:Object(i.__)("Subheading (deprecated)"),description:Object(i.__)("This block is deprecated. Please use the Paragraph block instead."),icon:Object(r.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(s.Path,{d:"M7.1 6l-.5 3h4.5L9.4 19h3l1.8-10h4.5l.5-3H7.1z"})),category:"common",supports:{inserter:!1,multiple:!1},attributes:{content:{type:"string",source:"html",selector:"p"},align:{type:"string"}},transforms:{to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(c.createBlock)("core/paragraph",e)}}]},edit:function(e){var t=e.attributes,n=e.setAttributes,o=e.className,c=t.align,s=t.content,u=t.placeholder;return a()("The Subheading block",{alternative:"the Paragraph block",plugin:"Gutenberg"}),Object(r.createElement)(r.Fragment,null,Object(r.createElement)(l.BlockControls,null,Object(r.createElement)(l.AlignmentToolbar,{value:c,onChange:function(e){n({align:e})}})),Object(r.createElement)(l.RichText,{tagName:"p",value:s,onChange:function(e){n({content:e})},style:{textAlign:c},className:o,placeholder:u||Object(i.__)("Write subheading…")}))},save:function(e){var t=e.attributes,n=t.align,o=t.content;return Object(r.createElement)(l.RichText.Content,{tagName:"p",style:{textAlign:n},value:o})}}},CxY0:function(e,t,n){"use strict";var r=n("GYWy"),o=n("Nehr");function a(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=v,t.resolve=function(e,t){return v(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?v(e,!1,!0).resolveObject(t):t},t.format=function(e){o.isString(e)&&(e=v(e));return e instanceof a?e.format():a.prototype.format.call(e)},t.Url=a;var i=/^([a-z0-9.+-]+:)/i,c=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,s=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(s),b=["%","/","?",";","#"].concat(u),d=["/","?","#"],m=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,p={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},f={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},O=n("s4NR");function v(e,t,n){if(e&&o.isObject(e)&&e instanceof a)return e;var r=new a;return r.parse(e,t,n),r}a.prototype.parse=function(e,t,n){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var a=e.indexOf("?"),c=-1!==a&&a<e.indexOf("#")?"?":"#",s=e.split(c);s[0]=s[0].replace(/\\/g,"/");var v=e=s.join(c);if(v=v.trim(),!n&&1===e.split("#").length){var j=l.exec(v);if(j)return this.path=v,this.href=v,this.pathname=j[1],j[2]?(this.search=j[2],this.query=t?O.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var y=i.exec(v);if(y){var w=(y=y[0]).toLowerCase();this.protocol=w,v=v.substr(y.length)}if(n||y||v.match(/^\/\/[^@\/]+@[^@\/]+/)){var _="//"===v.substr(0,2);!_||y&&g[y]||(v=v.substr(2),this.slashes=!0)}if(!g[y]&&(_||y&&!f[y])){for(var k,E,C=-1,S=0;S<d.length;S++){-1!==(x=v.indexOf(d[S]))&&(-1===C||x<C)&&(C=x)}-1!==(E=-1===C?v.lastIndexOf("@"):v.lastIndexOf("@",C))&&(k=v.slice(0,E),v=v.slice(E+1),this.auth=decodeURIComponent(k)),C=-1;for(S=0;S<b.length;S++){var x;-1!==(x=v.indexOf(b[S]))&&(-1===C||x<C)&&(C=x)}-1===C&&(C=v.length),this.host=v.slice(0,C),v=v.slice(C),this.parseHost(),this.hostname=this.hostname||"";var T="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!T)for(var R=this.hostname.split(/\./),I=(S=0,R.length);S<I;S++){var A=R[S];if(A&&!A.match(m)){for(var N="",B=0,P=A.length;B<P;B++)A.charCodeAt(B)>127?N+="x":N+=A[B];if(!N.match(m)){var L=R.slice(0,S),M=R.slice(S+1),H=A.match(h);H&&(L.push(H[1]),M.unshift(H[2])),M.length&&(v="/"+M.join(".")+v),this.hostname=L.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),T||(this.hostname=r.toASCII(this.hostname));var z=this.port?":"+this.port:"",U=this.hostname||"";this.host=U+z,this.href+=this.host,T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==v[0]&&(v="/"+v))}if(!p[w])for(S=0,I=u.length;S<I;S++){var F=u[S];if(-1!==v.indexOf(F)){var D=encodeURIComponent(F);D===F&&(D=escape(F)),v=v.split(F).join(D)}}var V=v.indexOf("#");-1!==V&&(this.hash=v.substr(V),v=v.slice(0,V));var G=v.indexOf("?");if(-1!==G?(this.search=v.substr(G),this.query=v.substr(G+1),t&&(this.query=O.parse(this.query)),v=v.slice(0,G)):t&&(this.search="",this.query={}),v&&(this.pathname=v),f[w]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){z=this.pathname||"";var q=this.search||"";this.path=z+q}return this.href=this.format(),this},a.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",a=!1,i="";this.host?a=e+this.host:this.hostname&&(a=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(a+=":"+this.port)),this.query&&o.isObject(this.query)&&Object.keys(this.query).length&&(i=O.stringify(this.query));var c=this.search||i&&"?"+i||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||f[t])&&!1!==a?(a="//"+(a||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):a||(a=""),r&&"#"!==r.charAt(0)&&(r="#"+r),c&&"?"!==c.charAt(0)&&(c="?"+c),t+a+(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(c=c.replace("#","%23"))+r},a.prototype.resolve=function(e){return this.resolveObject(v(e,!1,!0)).format()},a.prototype.resolveObject=function(e){if(o.isString(e)){var t=new a;t.parse(e,!1,!0),e=t}for(var n=new a,r=Object.keys(this),i=0;i<r.length;i++){var c=r[i];n[c]=this[c]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var l=Object.keys(e),s=0;s<l.length;s++){var u=l[s];"protocol"!==u&&(n[u]=e[u])}return f[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!f[e.protocol]){for(var b=Object.keys(e),d=0;d<b.length;d++){var m=b[d];n[m]=e[m]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||g[e.protocol])n.pathname=e.pathname;else{for(var h=(e.pathname||"").split("/");h.length&&!(e.host=h.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==h[0]&&h.unshift(""),h.length<2&&h.unshift(""),n.pathname=h.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var p=n.pathname||"",O=n.search||"";n.path=p+O}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var v=n.pathname&&"/"===n.pathname.charAt(0),j=e.host||e.pathname&&"/"===e.pathname.charAt(0),y=j||v||n.host&&e.pathname,w=y,_=n.pathname&&n.pathname.split("/")||[],k=(h=e.pathname&&e.pathname.split("/")||[],n.protocol&&!f[n.protocol]);if(k&&(n.hostname="",n.port=null,n.host&&(""===_[0]?_[0]=n.host:_.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===h[0]?h[0]=e.host:h.unshift(e.host)),e.host=null),y=y&&(""===h[0]||""===_[0])),j)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,_=h;else if(h.length)_||(_=[]),_.pop(),_=_.concat(h),n.search=e.search,n.query=e.query;else if(!o.isNullOrUndefined(e.search)){if(k)n.hostname=n.host=_.shift(),(T=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=T.shift(),n.host=n.hostname=T.shift());return n.search=e.search,n.query=e.query,o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!_.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var E=_.slice(-1)[0],C=(n.host||e.host||_.length>1)&&("."===E||".."===E)||""===E,S=0,x=_.length;x>=0;x--)"."===(E=_[x])?_.splice(x,1):".."===E?(_.splice(x,1),S++):S&&(_.splice(x,1),S--);if(!y&&!w)for(;S--;S)_.unshift("..");!y||""===_[0]||_[0]&&"/"===_[0].charAt(0)||_.unshift(""),C&&"/"!==_.join("/").substr(-1)&&_.push("");var T,R=""===_[0]||_[0]&&"/"===_[0].charAt(0);k&&(n.hostname=n.host=R?"":_.length?_.shift():"",(T=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=T.shift(),n.host=n.hostname=T.shift()));return(y=y||n.host&&_.length)&&!R&&_.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},a.prototype.parseHost=function(){var e=this.host,t=c.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},DSFK:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},FEKF: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;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}return function(){function n(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n)}var r,o,a;return r=n,(o=[{key:"getColorAsync",value:function(e,t,n){e.complete?t.call(e,this.getColor(e,n),n&&n.data):this._bindImageEvents(e,t,n)}},{key:"getColor",value:function(e,t){t=t||{};var n=this._getDefaultColor(t),r=this._getOriginalSize(e),o=this._prepareSizeAndPosition(r,t),a=null,i=n;if(!(o.srcWidth&&o.srcHeight&&o.destWidth&&o.destHeight))return this._prepareResult(n,new Error("FastAverageColor: Incorrect sizes."));if(!this._ctx&&(this._canvas=this._makeCanvas(),this._ctx=this._canvas.getContext&&this._canvas.getContext("2d"),!this._ctx))return this._prepareResult(n,new Error("FastAverageColor: Canvas Context 2D is not supported in this browser."));this._canvas.width=o.destWidth,this._canvas.height=o.destHeight;try{this._ctx.clearRect(0,0,o.destWidth,o.destHeight),this._ctx.drawImage(e,o.srcLeft,o.srcTop,o.srcWidth,o.srcHeight,0,0,o.destWidth,o.destHeight);var c=this._ctx.getImageData(0,0,o.destWidth,o.destHeight).data;i=this.getColorFromArray4(c,t)}catch(e){a=e}return this._prepareResult(i,a)}},{key:"getColorFromArray4",value:function(e,t){t=t||{};var n=e.length;if(n<4)return this._getDefaultColor(t);var r=n-n%4,o=4*(t.step||1),a="_"+(t.algorithm||"sqrt")+"Algorithm";if("function"!=typeof this[a])throw new Error("FastAverageColor: ".concat(t.algorithm," is unknown algorithm."));return this[a](e,r,o)}},{key:"destroy",value:function(){delete this._canvas,delete this._ctx}},{key:"_getDefaultColor",value:function(e){return this._getOption(e,"defaultColor",[255,255,255,255])}},{key:"_getOption",value:function(e,t,n){return void 0===e[t]?n:e[t]}},{key:"_prepareSizeAndPosition",value:function(e,t){var n,r=this._getOption(t,"left",0),o=this._getOption(t,"top",0),a=this._getOption(t,"width",e.width),i=this._getOption(t,"height",e.height),c=a,l=i;return"precision"===t.mode||(a>i?(n=a/i,c=100,l=Math.round(c/n)):(n=i/a,l=100,c=Math.round(l/n)),(c>a||l>i||c<10||l<10)&&(c=a,l=i)),{srcLeft:r,srcTop:o,srcWidth:a,srcHeight:i,destWidth:c,destHeight:l}}},{key:"_simpleAlgorithm",value:function(e,t,n){for(var r=0,o=0,a=0,i=0,c=0,l=0;l<t;l+=n){var s=e[l+3];r+=e[l]*s,o+=e[l+1]*s,a+=e[l+2]*s,i+=s,c++}return i?[Math.round(r/i),Math.round(o/i),Math.round(a/i),Math.round(i/c)]:[0,0,0,0]}},{key:"_sqrtAlgorithm",value:function(e,t,n){for(var r=0,o=0,a=0,i=0,c=0,l=0;l<t;l+=n){var s=e[l],u=e[l+1],b=e[l+2],d=e[l+3];r+=s*s*d,o+=u*u*d,a+=b*b*d,i+=d,c++}return i?[Math.round(Math.sqrt(r/i)),Math.round(Math.sqrt(o/i)),Math.round(Math.sqrt(a/i)),Math.round(i/c)]:[0,0,0,0]}},{key:"_dominantAlgorithm",value:function(e,n,r){for(var o={},a=0;a<n;a+=r){var i=e[a],c=e[a+1],l=e[a+2],s=e[a+3],u=Math.round(i/24)+","+Math.round(c/24)+","+Math.round(l/24);o[u]?o[u]=[o[u][0]+i*s,o[u][1]+c*s,o[u][2]+l*s,o[u][3]+s,o[u][4]+1]:o[u]=[i*s,c*s,l*s,s,1]}var b=t(Object.keys(o).map((function(e){return o[e]})).sort((function(e,t){var n=e[4],r=t[4];return n>r?-1:n===r?0:1}))[0],5),d=b[0],m=b[1],h=b[2],p=b[3],g=b[4];return p?[Math.round(d/p),Math.round(m/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),i=function(){s(),t.call(e,r.getColor(e,n),o)},c=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",i),e.removeEventListener("error",c),e.removeEventListener("abort",l)};e.addEventListener("load",i),e.addEventListener("error",c),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}()}()},Ff2n:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,"a",(function(){return r}))},FqII:function(e,t){!function(){e.exports=this.wp.date}()},GRId:function(e,t){!function(){e.exports=this.wp.element}()},GRPF:function(e,t,n){"use strict";n.r(t),n.d(t,"name",(function(){return g})),n.d(t,"settings",(function(){return f}));var r=n("GRId"),o=n("YLtl"),a=n("TSYQ"),i=n.n(a),c=n("4eJC"),l=n.n(c),s=n("l3Sj"),u=n("tI+e"),b=n("HSyU"),d=n("axFQ"),m=["core/column"],h=l()((function(e){return Object(o.times)(e,(function(){return["core/column"]}))}));function p(e){var t,n=p.doc;n||(n=document.implementation.createHTMLDocument(""),p.doc=n),n.body.innerHTML=e;var r=!0,o=!1,a=void 0;try{for(var i,c=n.body.firstChild.classList[Symbol.iterator]();!(r=(i=c.next()).done);r=!0){if(t=i.value.match(/^layout-column-(\d+)$/))return Number(t[1])-1}}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}}var g="core/columns",f={title:Object(s.__)("Columns"),icon:Object(r.createElement)(u.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(u.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)(u.G,null,Object(r.createElement)(u.Path,{d:"M4,4H20a2,2,0,0,1,2,2V18a2,2,0,0,1-2,2H4a2,2,0,0,1-2-2V6A2,2,0,0,1,4,4ZM4 6V18H8V6Zm6 0V18h4V6Zm6 0V18h4V6Z"}))),category:"layout",attributes:{columns:{type:"number",default:2}},description:Object(s.__)("Add a block that displays content in multiple columns, then add whatever content blocks youd like."),supports:{align:["wide","full"],html:!1},deprecated:[{attributes:{columns:{type:"number",default:2}},isEligible:function(e,t){return!!t.some((function(e){return/layout-column-\d+/.test(e.originalContent)}))&&t.some((function(e){return void 0!==p(e.originalContent)}))},migrate:function(e,t){return[e,t.reduce((function(e,t){var n=p(t.originalContent);return void 0===n&&(n=0),e[n]||(e[n]=[]),e[n].push(t),e}),[]).map((function(e){return Object(b.createBlock)("core/column",{},e)}))]},save:function(e){var t=e.attributes.columns;return Object(r.createElement)("div",{className:"has-".concat(t,"-columns")},Object(r.createElement)(d.InnerBlocks.Content,null))}}],edit:function(e){var t=e.attributes,n=e.setAttributes,o=e.className,a=t.columns,c=i()(o,"has-".concat(a,"-columns"));return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(d.InspectorControls,null,Object(r.createElement)(u.PanelBody,null,Object(r.createElement)(u.RangeControl,{label:Object(s.__)("Columns"),value:a,onChange:function(e){n({columns:e})},min:2,max:6,required:!0}))),Object(r.createElement)("div",{className:c},Object(r.createElement)(d.InnerBlocks,{template:h(a),templateLock:"all",allowedBlocks:m})))},save:function(e){var t=e.attributes.columns;return Object(r.createElement)("div",{className:"has-".concat(t,"-columns")},Object(r.createElement)(d.InnerBlocks.Content,null))}}},GYWy:function(e,t,n){(function(e,r){var o;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(a){t&&t.nodeType,e&&e.nodeType;var i="object"==typeof r&&r;i.global!==i&&i.window!==i&&i.self;var c,l=2147483647,s=/^xn--/,u=/[^\x20-\x7E]/,b=/[\x2E\u3002\uFF0E\uFF61]/g,d={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},m=Math.floor,h=String.fromCharCode;function p(e){throw new RangeError(d[e])}function g(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function f(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+g((e=e.replace(b,".")).split("."),t).join(".")}function O(e){for(var t,n,r=[],o=0,a=e.length;o<a;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<a?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function v(e){return g(e,(function(e){var t="";return e>65535&&(t+=h((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=h(e)})).join("")}function j(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function y(e,t,n){var r=0;for(e=n?m(e/700):e>>1,e+=m(e/t);e>455;r+=36)e=m(e/35);return m(r+36*e/(e+38))}function w(e){var t,n,r,o,a,i,c,s,u,b,d,h=[],g=e.length,f=0,O=128,j=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&p("not-basic"),h.push(e.charCodeAt(r));for(o=n>0?n+1:0;o<g;){for(a=f,i=1,c=36;o>=g&&p("invalid-input"),((s=(d=e.charCodeAt(o++))-48<10?d-22:d-65<26?d-65:d-97<26?d-97:36)>=36||s>m((l-f)/i))&&p("overflow"),f+=s*i,!(s<(u=c<=j?1:c>=j+26?26:c-j));c+=36)i>m(l/(b=36-u))&&p("overflow"),i*=b;j=y(f-a,t=h.length+1,0==a),m(f/t)>l-O&&p("overflow"),O+=m(f/t),f%=t,h.splice(f++,0,O)}return v(h)}function _(e){var t,n,r,o,a,i,c,s,u,b,d,g,f,v,w,_=[];for(g=(e=O(e)).length,t=128,n=0,a=72,i=0;i<g;++i)(d=e[i])<128&&_.push(h(d));for(r=o=_.length,o&&_.push("-");r<g;){for(c=l,i=0;i<g;++i)(d=e[i])>=t&&d<c&&(c=d);for(c-t>m((l-n)/(f=r+1))&&p("overflow"),n+=(c-t)*f,t=c,i=0;i<g;++i)if((d=e[i])<t&&++n>l&&p("overflow"),d==t){for(s=n,u=36;!(s<(b=u<=a?1:u>=a+26?26:u-a));u+=36)w=s-b,v=36-b,_.push(h(j(b+w%v,0))),s=m(w/v);_.push(h(j(s,0))),a=y(n,f,r==o),n=0,++r}++n,++t}return _.join("")}c={version:"1.4.1",ucs2:{decode:O,encode:v},decode:w,encode:_,toASCII:function(e){return f(e,(function(e){return u.test(e)?"xn--"+_(e):e}))},toUnicode:function(e){return f(e,(function(e){return s.test(e)?w(e.slice(4).toLowerCase()):e}))}},void 0===(o=function(){return c}.call(t,n,t,e))||(e.exports=o)}()}).call(this,n("YuTi")(e),n("yLpj"))},GtuL:function(e,t,n){"use strict";n.r(t),n.d(t,"name",(function(){return c})),n.d(t,"settings",(function(){return l}));var r=n("GRId"),o=n("l3Sj"),a=n("HSyU"),i=n("tI+e"),c="core/separator",l={title:Object(o.__)("Separator"),description:Object(o.__)("Create a break between ideas or sections with a horizontal separator."),icon:Object(r.createElement)(i.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(i.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)(i.Path,{d:"M19 13H5v-2h14v2z"})),category:"layout",keywords:[Object(o.__)("horizontal-line"),"hr",Object(o.__)("divider")],styles:[{name:"default",label:Object(o.__)("Default"),isDefault:!0},{name:"wide",label:Object(o.__)("Wide Line")},{name:"dots",label:Object(o.__)("Dots")}],transforms:{from:[{type:"enter",regExp:/^-{3,}$/,transform:function(){return Object(a.createBlock)("core/separator")}},{type:"raw",selector:"hr",schema:{hr:{}}}]},edit:function(e){var t=e.className;return Object(r.createElement)("hr",{className:t})},save:function(){return Object(r.createElement)("hr",null)}}},HSyU:function(e,t){!function(){e.exports=this.wp.blocks}()},HVG3:function(e,t,n){"use strict";n.r(t),n.d(t,"name",(function(){return b})),n.d(t,"settings",(function(){return d}));var r=n("ODXe"),o=n("GRId"),a=n("TSYQ"),i=n.n(a),c=n("l3Sj"),l=n("axFQ"),s=n("tI+e"),u=n("K9lf"),b="core/spacer",d={title:Object(c.__)("Spacer"),description:Object(c.__)("Add white space between blocks and customize its height."),icon:Object(o.createElement)(s.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(s.G,null,Object(o.createElement)(s.Path,{d:"M13 4v2h3.59L6 16.59V13H4v7h7v-2H7.41L18 7.41V11h2V4h-7"}))),category:"layout",attributes:{height:{type:"number",default:100}},edit:Object(u.withInstanceId)((function(e){var t=e.attributes,n=e.isSelected,a=e.setAttributes,u=e.toggleSelection,b=e.instanceId,d=t.height,m="block-spacer-height-input-".concat(b),h=Object(o.useState)(d),p=Object(r.a)(h,2),g=p[0],f=p[1];return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(s.ResizableBox,{className:i()("block-library-spacer__resize-container",{"is-selected":n}),size:{height:d},minHeight:"20",enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStop:function(e,t,n,r){var o=parseInt(d+r.height,10);a({height:o}),f(o),u(!0)},onResizeStart:function(){u(!1)}}),Object(o.createElement)(l.InspectorControls,null,Object(o.createElement)(s.PanelBody,{title:Object(c.__)("Spacer Settings")},Object(o.createElement)(s.BaseControl,{label:Object(c.__)("Height in pixels"),id:m},Object(o.createElement)("input",{type:"number",id:m,onChange:function(e){var t=parseInt(e.target.value,10);f(t),isNaN(t)?(f(""),t=100):t<20&&(t=20),a({height:t})},value:g,min:"20",step:"10"})))))})),save:function(e){var t=e.attributes;return Object(o.createElement)("div",{style:{height:t.height},"aria-hidden":!0})}}},JX7q: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}))},Ji7U:function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}n.d(t,"a",(function(){return o}))},K51g:function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"registerCoreBlocks",(function(){return W}));var r=n("KQm4"),o=(n("jZUy"),n("axFQ"),n("jSdM"),n("HSyU")),a=n("hJeJ"),i=n("nwuf"),c=n("pQaA"),l=n("hl1S"),s=n("bXcj"),u=n("h1Oh"),b=n("MNGw"),d=n("ru0n"),m=n("cJch"),h=n("r7Un"),p=n("lA3c"),g=n("GRPF"),f=n("LZ3j"),O=n("80sk"),v=n("SJeG"),j=n("mK5E"),y=n("SiUe"),w=n("XORA"),_=n("mTvW"),k=n("asvH"),E=n("s3sy"),C=n("dAQi"),S=n("W/Ky"),x=n("UOoR"),T=n("ax6o"),R=n("nAq4"),I=n("7mGV"),A=n("uz31"),N=n("Ljc7"),B=n("2BaN"),P=n("GtuL"),L=n("5ou0"),M=n("HVG3"),H=n("AyZW"),z=n("efOa"),U=n("pr1q"),F=n("MAsO"),D=n("bBb9"),V=n("cq/3"),G=n("tTef"),q=n("aaBf"),W=function(){[a,i,c,s,C,l,L,u,b,d,m,h,p,g,f,O,v].concat(Object(r.a)(v.common),Object(r.a)(v.others),[j,window.wp&&window.wp.oldEditor?q:null,y,w,_,k,2===e.env.GUTENBERG_PHASE?E:null,S,x,T,R,I,N,B,P,A,M,H,z,G,U,F,D,V]).forEach((function(e){if(e){var t=e.name,n=e.settings;Object(o.registerBlockType)(t,n)}})),Object(o.setDefaultBlockName)(a.name),window.wp&&window.wp.oldEditor&&Object(o.setFreeformContentHandlerName)(q.name),Object(o.setUnregisteredTypeHandlerName)(S.name)}}.call(this,n("8oxB"))},K9lf:function(e,t){!function(){e.exports=this.wp.compose}()},KEfo:function(e,t){!function(){e.exports=this.wp.viewport}()},KQm4:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("25BE");function o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||Object(r.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}},LZ3j:function(e,t,n){"use strict";n.r(t),n.d(t,"name",(function(){return c})),n.d(t,"settings",(function(){return l}));var r=n("GRId"),o=n("tI+e"),a=n("l3Sj"),i=n("axFQ"),c="core/column",l={title:Object(a.__)("Column"),parent:["core/columns"],icon:Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)(o.Path,{d:"M11.99 18.54l-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27L12 16zm0-11.47L17.74 9 12 13.47 6.26 9 12 4.53z"})),description:Object(a.__)("A single column within a columns block."),category:"common",supports:{inserter:!1,reusable:!1,html:!1},edit:function(){return Object(r.createElement)(i.InnerBlocks,{templateLock:!1})},save:function(){return Object(r.createElement)("div",null,Object(r.createElement)(i.InnerBlocks.Content,null))}}},Ljc7:function(e,t,n){"use strict";n.r(t),n.d(t,"name",(function(){return p})),n.d(t,"settings",(function(){return g}));var r=n("l3Sj"),o=n("rePB"),a=n("1OyB"),i=n("vuIU"),c=n("md7G"),l=n("foSv"),s=n("Ji7U"),u=n("JX7q"),b=n("GRId"),d=n("tI+e"),m=n("axFQ"),h=function(e){function t(){var e;return Object(a.a)(this,t),(e=Object(c.a)(this,Object(l.a)(t).apply(this,arguments))).state={editing:!e.props.attributes.feedURL},e.toggleAttribute=e.toggleAttribute.bind(Object(u.a)(Object(u.a)(e))),e.onSubmitURL=e.onSubmitURL.bind(Object(u.a)(Object(u.a)(e))),e}return Object(s.a)(t,e),Object(i.a)(t,[{key:"toggleAttribute",value:function(e){var t=this;return function(){var n=t.props.attributes[e];(0,t.props.setAttributes)(Object(o.a)({},e,!n))}}},{key:"onSubmitURL",value:function(e){e.preventDefault(),this.props.attributes.feedURL&&this.setState({editing:!1})}},{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.blockLayout,o=t.columns,a=t.displayAuthor,i=t.displayExcerpt,c=t.displayDate,l=t.excerptLength,s=t.feedURL,u=t.itemsToShow,h=this.props.setAttributes;if(this.state.editing)return Object(b.createElement)(d.Placeholder,{icon:"rss",label:"RSS"},Object(b.createElement)("form",{onSubmit:this.onSubmitURL},Object(b.createElement)(d.TextControl,{placeholder:Object(r.__)("Enter URL here…"),value:s,onChange:function(e){return h({feedURL:e})},className:"components-placeholder__input"}),Object(b.createElement)(d.Button,{isLarge:!0,type:"submit"},Object(r.__)("Use URL"))));var p=[{icon:"edit",title:Object(r.__)("Edit RSS URL"),onClick:function(){return e.setState({editing:!0})}},{icon:"list-view",title:Object(r.__)("List View"),onClick:function(){return h({blockLayout:"list"})},isActive:"list"===n},{icon:"grid-view",title:Object(r.__)("Grid View"),onClick:function(){return h({blockLayout:"grid"})},isActive:"grid"===n}];return Object(b.createElement)(b.Fragment,null,Object(b.createElement)(m.BlockControls,null,Object(b.createElement)(d.Toolbar,{controls:p})),Object(b.createElement)(m.InspectorControls,null,Object(b.createElement)(d.PanelBody,{title:Object(r.__)("RSS Settings")},Object(b.createElement)(d.RangeControl,{label:Object(r.__)("Number of items"),value:u,onChange:function(e){return h({itemsToShow:e})},min:1,max:10,required:!0}),Object(b.createElement)(d.ToggleControl,{label:Object(r.__)("Display author"),checked:a,onChange:this.toggleAttribute("displayAuthor")}),Object(b.createElement)(d.ToggleControl,{label:Object(r.__)("Display date"),checked:c,onChange:this.toggleAttribute("displayDate")}),Object(b.createElement)(d.ToggleControl,{label:Object(r.__)("Display excerpt"),checked:i,onChange:this.toggleAttribute("displayExcerpt")}),i&&Object(b.createElement)(d.RangeControl,{label:Object(r.__)("Max number of words in excerpt"),value:l,onChange:function(e){return h({excerptLength:e})},min:10,max:100,required:!0}),"grid"===n&&Object(b.createElement)(d.RangeControl,{label:Object(r.__)("Columns"),value:o,onChange:function(e){return h({columns:e})},min:2,max:6,required:!0}))),Object(b.createElement)(d.Disabled,null,Object(b.createElement)(d.ServerSideRender,{block:"core/rss",attributes:this.props.attributes})))}}]),t}(b.Component),p="core/rss",g={title:Object(r.__)("RSS"),description:Object(r.__)("Display entries from any RSS or Atom feed."),icon:"rss",category:"widgets",keywords:[Object(r.__)("atom"),Object(r.__)("feed")],supports:{html:!1},edit:h,save:function(){return null}}},MAsO:function(e,t,n){"use strict";n.r(t),n.d(t,"name",(function(){return d})),n.d(t,"settings",(function(){return m}));var r=n("KQm4"),o=n("GRId"),a=n("YLtl"),i=n("HSyU"),c=n("l3Sj"),l=n("tI+e"),s=n("axFQ"),u=n("NMb1"),b=n.n(u),d="core/text-columns",m={supports:{inserter:!1},title:Object(c.__)("Text Columns (deprecated)"),description:Object(c.__)("This block is deprecated. Please use the Columns block instead."),icon:"columns",category:"layout",attributes:{content:{type:"array",source:"query",selector:"p",query:{children:{type:"string",source:"html"}},default:[{},{}]},columns:{type:"number",default:2},width:{type:"string"}},transforms:{to:[{type:"block",blocks:["core/columns"],transform:function(e){var t=e.className,n=e.columns,r=e.content,o=e.width;return Object(i.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(i.createBlock)("core/column",{},[Object(i.createBlock)("core/paragraph",{content:t})])})))}}]},getEditWrapperProps:function(e){var t=e.width;if("wide"===t||"full"===t)return{"data-align":t}},edit:function(e){var t=e.attributes,n=e.setAttributes,i=e.className,u=t.width,d=t.content,m=t.columns;return b()("The Text Columns block",{alternative:"the Columns block",plugin:"Gutenberg"}),Object(o.createElement)(o.Fragment,null,Object(o.createElement)(s.BlockControls,null,Object(o.createElement)(s.BlockAlignmentToolbar,{value:u,onChange:function(e){return n({width:e})},controls:["center","wide","full"]})),Object(o.createElement)(s.InspectorControls,null,Object(o.createElement)(l.PanelBody,null,Object(o.createElement)(l.RangeControl,{label:Object(c.__)("Columns"),value:m,onChange:function(e){return n({columns:e})},min:2,max:4,required:!0}))),Object(o.createElement)("div",{className:"".concat(i," align").concat(u," columns-").concat(m)},Object(a.times)(m,(function(e){return Object(o.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object(o.createElement)(s.RichText,{tagName:"p",value:Object(a.get)(d,[e,"children"]),onChange:function(t){n({content:[].concat(Object(r.a)(d.slice(0,e)),[{children:t}],Object(r.a)(d.slice(e+1)))})},placeholder:Object(c.__)("New Column")}))}))))},save:function(e){var t=e.attributes,n=t.width,r=t.content,i=t.columns;return Object(o.createElement)("div",{className:"align".concat(n," columns-").concat(i)},Object(a.times)(i,(function(e){return Object(o.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object(o.createElement)(s.RichText.Content,{tagName:"p",value:Object(a.get)(r,[e,"children"])}))})))}}},MNGw:function(e,t,n){"use strict";n.r(t),n.d(t,"name",(function(){return _})),n.d(t,"settings",(function(){return k}));var r=n("GRId"),o=n("xTGt"),a=n("HSyU"),i=n("axFQ"),c=n("l3Sj"),l=n("rePB"),s=n("ODXe"),u=n("1OyB"),b=n("vuIU"),d=n("md7G"),m=n("foSv"),h=n("Ji7U"),p=n("JX7q"),g=n("tI+e"),f=n("jSdM"),O=Object(r.createElement)(g.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(g.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(r.createElement)(g.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"})),v=n("a75g"),j=["audio"],y=function(e){function t(){var e;return Object(u.a)(this,t),(e=Object(d.a)(this,Object(m.a)(t).apply(this,arguments))).state={editing:!e.props.attributes.src},e.toggleAttribute=e.toggleAttribute.bind(Object(p.a)(Object(p.a)(e))),e.onSelectURL=e.onSelectURL.bind(Object(p.a)(Object(p.a)(e))),e}return Object(h.a)(t,e),Object(b.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.noticeOperations,a=t.setAttributes,i=n.id,c=n.src,l=void 0===c?"":c;if(!i&&Object(o.isBlobURL)(l)){var u=Object(o.getBlobByURL)(l);u&&Object(f.mediaUpload)({filesList:[u],onFileChange:function(e){var t=Object(s.a)(e,1)[0],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}),r.createErrorNotice(t)},allowedTypes:j})}}},{key:"toggleAttribute",value:function(e){var t=this;return function(n){t.props.setAttributes(Object(l.a)({},e,n))}}},{key:"onSelectURL",value:function(e){var t=this.props,n=t.attributes,r=t.setAttributes;if(e!==n.src){var o=Object(v.a)({attributes:{url:e}});if(void 0!==o)return void this.props.onReplace(o);r({src:e,id:void 0})}this.setState({editing:!1})}},{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.autoplay,o=t.caption,a=t.loop,l=t.preload,s=t.src,u=this.props,b=u.setAttributes,d=u.isSelected,m=u.className,h=u.noticeOperations,p=u.noticeUI,f=this.state.editing,v=function(){e.setState({editing:!0})};return f?Object(r.createElement)(i.MediaPlaceholder,{icon:Object(r.createElement)(i.BlockIcon,{icon:O}),className:m,onSelect:function(t){if(!t||!t.url)return b({src:void 0,id:void 0}),void v();b({src:t.url,id:t.id}),e.setState({src:t.url,editing:!1})},onSelectURL:this.onSelectURL,accept:"audio/*",allowedTypes:j,value:this.props.attributes,notices:p,onError:h.createErrorNotice}):Object(r.createElement)(r.Fragment,null,Object(r.createElement)(i.BlockControls,null,Object(r.createElement)(g.Toolbar,null,Object(r.createElement)(g.IconButton,{className:"components-icon-button components-toolbar__control",label:Object(c.__)("Edit audio"),onClick:v,icon:"edit"}))),Object(r.createElement)(i.InspectorControls,null,Object(r.createElement)(g.PanelBody,{title:Object(c.__)("Audio Settings")},Object(r.createElement)(g.ToggleControl,{label:Object(c.__)("Autoplay"),onChange:this.toggleAttribute("autoplay"),checked:n}),Object(r.createElement)(g.ToggleControl,{label:Object(c.__)("Loop"),onChange:this.toggleAttribute("loop"),checked:a}),Object(r.createElement)(g.SelectControl,{label:Object(c.__)("Preload"),value:void 0!==l?l:"none",onChange:function(e){return b({preload:"none"!==e?e:void 0})},options:[{value:"auto",label:Object(c.__)("Auto")},{value:"metadata",label:Object(c.__)("Metadata")},{value:"none",label:Object(c.__)("None")}]}))),Object(r.createElement)("figure",{className:m},Object(r.createElement)(g.Disabled,null,Object(r.createElement)("audio",{controls:"controls",src:s})),(!i.RichText.isEmpty(o)||d)&&Object(r.createElement)(i.RichText,{tagName:"figcaption",placeholder:Object(c.__)("Write caption…"),value:o,onChange:function(e){return b({caption:e})},inlineToolbar:!0})))}}]),t}(r.Component),w=Object(g.withNotices)(y),_="core/audio",k={title:Object(c.__)("Audio"),description:Object(c.__)("Embed a simple audio player."),icon:O,category:"common",attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src"},caption:{type:"string",source:"html",selector:"figcaption"},id:{type:"number"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},transforms:{from:[{type:"files",isMatch:function(e){return 1===e.length&&0===e[0].type.indexOf("audio/")},transform:function(e){var t=e[0];return Object(a.createBlock)("core/audio",{src:Object(o.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:"srting",shortcode:function(e){return e.named.autoplay}},preload:{type:"string",shortcode:function(e){return e.named.preload}}}}]},supports:{align:!0},edit:w,save:function(e){var t=e.attributes,n=t.autoplay,o=t.caption,a=t.loop,c=t.preload,l=t.src;return Object(r.createElement)("figure",null,Object(r.createElement)("audio",{controls:"controls",src:l,autoPlay:n,loop:a,preload:c}),!i.RichText.isEmpty(o)&&Object(r.createElement)(i.RichText.Content,{tagName:"figcaption",value:o}))}}},Mmq9:function(e,t){!function(){e.exports=this.wp.url}()},NMb1:function(e,t){!function(){e.exports=this.wp.deprecated}()},Nehr:function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},ODXe:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("DSFK");var o=n("PYwp");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,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}(e,t)||Object(o.a)()}},PYwp: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}))},RxS6:function(e,t){!function(){e.exports=this.wp.keycodes}()},SJeG:function(e,t,n){"use strict";n.r(t),n.d(t,"name",(function(){return P})),n.d(t,"settings",(function(){return L})),n.d(t,"common",(function(){return M})),n.d(t,"others",(function(){return H}));var r=n("vpQ4"),o=n("UUIm"),a=n("YciB"),i=n("rePB"),c=n("GRId"),l=n("1OyB"),s=n("vuIU"),u=n("md7G"),b=n("foSv"),d=n("Ji7U"),m=n("JX7q"),h=n("a75g"),p=n("l3Sj"),g=n("tI+e"),f=n("axFQ"),O=function(e){var t=e.blockSupportsResponsive,n=e.showEditButton,r=e.themeSupportsResponsive,o=e.allowResponsive,a=e.getResponsiveHelp,i=e.toggleResponsive,l=e.switchBackToURLInput;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(f.BlockControls,null,Object(c.createElement)(g.Toolbar,null,n&&Object(c.createElement)(g.IconButton,{className:"components-toolbar__control",label:Object(p.__)("Edit URL"),icon:"edit",onClick:l}))),r&&t&&Object(c.createElement)(f.InspectorControls,null,Object(c.createElement)(g.PanelBody,{title:Object(p.__)("Media Settings"),className:"blocks-responsive"},Object(c.createElement)(g.ToggleControl,{label:Object(p.__)("Resize for smaller devices"),checked:o,help:a,onChange:i}))))},v=function(){return Object(c.createElement)("div",{className:"wp-block-embed is-loading"},Object(c.createElement)(g.Spinner,null),Object(c.createElement)("p",null,Object(p.__)("Embedding…")))},j=function(e){var t=e.icon,n=e.label,r=e.value,o=e.onSubmit,a=e.onChange,i=e.cannotEmbed,l=e.fallback,s=e.tryAgain;return Object(c.createElement)(g.Placeholder,{icon:Object(c.createElement)(f.BlockIcon,{icon:t,showColors:!0}),label:n,className:"wp-block-embed"},Object(c.createElement)("form",{onSubmit:o},Object(c.createElement)("input",{type:"url",value:r||"",className:"components-placeholder__input","aria-label":n,placeholder:Object(p.__)("Enter URL to embed here…"),onChange:a}),Object(c.createElement)(g.Button,{isLarge:!0,type:"submit"},Object(p._x)("Embed","button label")),i&&Object(c.createElement)("p",{className:"components-placeholder__error"},Object(p.__)("Sorry, this content could not be embedded."),Object(c.createElement)("br",null),Object(c.createElement)(g.Button,{isLarge:!0,onClick:s},Object(p._x)("Try again","button label"))," ",Object(c.createElement)(g.Button,{isLarge:!0,onClick:l},Object(p._x)("Convert to link","button label")))))},y=n("du8i"),w=n("CxY0"),_=n("YLtl"),k=n("A/WM"),E=n.n(k),C=n("K9lf"),S=window.FocusEvent,x=function(e){function t(){var e;return Object(l.a)(this,t),(e=Object(u.a)(this,Object(b.a)(t).apply(this,arguments))).checkFocus=e.checkFocus.bind(Object(m.a)(Object(m.a)(e))),e.node=Object(c.createRef)(),e}return Object(d.a)(t,e),Object(s.a)(t,[{key:"checkFocus",value:function(){var e=document.activeElement;if("IFRAME"===e.tagName&&e.parentNode===this.node.current){var t=new S("focus",{bubbles:!0});e.dispatchEvent(t)}}},{key:"render",value:function(){var e=this.props.html;return Object(c.createElement)("div",{ref:this.node,className:"wp-block-embed__wrapper",dangerouslySetInnerHTML:{__html:e}})}}]),t}(c.Component),T=Object(C.withGlobalEvents)({blur:"checkFocus"})(x),R=function(e){function t(){var e;return Object(l.a)(this,t),(e=Object(u.a)(this,Object(b.a)(t).apply(this,arguments))).hideOverlay=e.hideOverlay.bind(Object(m.a)(Object(m.a)(e))),e.state={interactive:!1},e}return Object(d.a)(t,e),Object(s.a)(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"render",value:function(){var e=this.props,t=e.preview,n=e.url,r=e.type,o=e.caption,a=e.onCaptionChange,i=e.isSelected,l=e.className,s=e.icon,u=e.label,b=t.scripts,d=this.state.interactive,m="photo"===r?Object(h.d)(t):t.html,O=Object(w.parse)(n).host.split("."),v=O.splice(O.length-2,O.length-1).join("."),j=Object(_.includes)(y.c,v),k=Object(p.sprintf)(Object(p.__)("Embedded content from %s"),v),C=E()(r,l,"wp-block-embed__wrapper"),S="wp-embed"===r?Object(c.createElement)(T,{html:m}):Object(c.createElement)("div",{className:"wp-block-embed__wrapper"},Object(c.createElement)(g.SandBox,{html:m,scripts:b,title:k,type:C,onFocus:this.hideOverlay}),!d&&Object(c.createElement)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}));return Object(c.createElement)("figure",{className:E()(l,"wp-block-embed",{"is-type-video":"video"===r})},j?Object(c.createElement)(g.Placeholder,{icon:Object(c.createElement)(f.BlockIcon,{icon:s,showColors:!0}),label:u},Object(c.createElement)("p",{className:"components-placeholder__error"},Object(c.createElement)("a",{href:n},n)),Object(c.createElement)("p",{className:"components-placeholder__error"},Object(p.sprintf)(Object(p.__)("Embedded content from %s can't be previewed in the editor."),v))):S,(!f.RichText.isEmpty(o)||i)&&Object(c.createElement)(f.RichText,{tagName:"figcaption",placeholder:Object(p.__)("Write caption…"),value:o,onChange:a,inlineToolbar:!0}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(c.Component);var I=n("1ZqX"),A={url:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption"},type:{type:"string"},providerNameSlug:{type:"string"},allowResponsive:{type:"boolean",default:!0}};function N(e){var t=e.title,n=e.description,o=e.icon,a=e.category,g=void 0===a?"embed":a,y=e.transforms,w=e.keywords,k=void 0===w?[]:w,S=e.supports,x=void 0===S?{}:S,T=e.responsive,N=void 0===T||T,B=n||Object(p.__)("Add a block that displays content pulled from other sites, like Twitter, Instagram or YouTube."),P=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(r){function o(){var e;return Object(l.a)(this,o),(e=Object(u.a)(this,Object(b.a)(o).apply(this,arguments))).switchBackToURLInput=e.switchBackToURLInput.bind(Object(m.a)(Object(m.a)(e))),e.setUrl=e.setUrl.bind(Object(m.a)(Object(m.a)(e))),e.getAttributesFromPreview=e.getAttributesFromPreview.bind(Object(m.a)(Object(m.a)(e))),e.setAttributesFromPreview=e.setAttributesFromPreview.bind(Object(m.a)(Object(m.a)(e))),e.getResponsiveHelp=e.getResponsiveHelp.bind(Object(m.a)(Object(m.a)(e))),e.toggleResponsive=e.toggleResponsive.bind(Object(m.a)(Object(m.a)(e))),e.handleIncomingPreview=e.handleIncomingPreview.bind(Object(m.a)(Object(m.a)(e))),e.state={editingURL:!1,url:e.props.attributes.url},e.props.preview&&e.handleIncomingPreview(),e}return Object(d.a)(o,r),Object(s.a)(o,[{key:"handleIncomingPreview",value:function(){var e=this.props.attributes.allowResponsive;this.setAttributesFromPreview();var t=Object(h.a)(this.props,this.getAttributesFromPreview(this.props.preview,e));t&&this.props.onReplace(t)}},{key:"componentDidUpdate",value:function(e){var t=void 0!==this.props.preview,n=void 0!==e.preview,r=e.preview&&this.props.preview&&this.props.preview.html!==e.preview.html||t&&!n,o=this.props.attributes.url!==e.attributes.url;if(r||o){if(this.props.cannotEmbed)return 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:"getAttributesFromPreview",value:function(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o={},a=t.type,i=void 0===a?"rich":a,c=t.html,l=t.provider_name,s=Object(_.kebabCase)(Object(_.toLower)(""!==l?l:e));return Object(h.e)(c)&&(i="wp-embed"),(c||"photo"===i)&&(o.type=i,o.providerNameSlug=s),o.className=Object(h.c)(c,this.props.attributes.className,n&&r),o}},{key:"setAttributesFromPreview",value:function(){var e=this.props,t=e.setAttributes,n=e.preview,r=this.props.attributes.allowResponsive;t(this.getAttributesFromPreview(n,r))}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"getResponsiveHelp",value:function(e){return e?Object(p.__)("This embed will preserve its aspect ratio when the browser is resized."):Object(p.__)("This embed may not preserve its aspect ratio when the browser is resized.")}},{key:"toggleResponsive",value:function(){var e=this.props.attributes,t=e.allowResponsive,r=e.className,o=this.props.preview.html,a=!t;this.props.setAttributes({allowResponsive:a,className:Object(h.c)(o,r,n&&a)})}},{key:"render",value:function(){var r=this,o=this.state,a=o.url,i=o.editingURL,l=this.props.attributes,s=l.caption,u=l.type,b=l.allowResponsive,d=this.props,m=d.fetching,g=d.setAttributes,f=d.isSelected,y=d.className,w=d.preview,_=d.cannotEmbed,k=d.themeSupportsResponsive,E=d.tryAgain;if(m)return Object(c.createElement)(v,null);var C=Object(p.sprintf)(Object(p.__)("%s URL"),e);return!w||_||i?Object(c.createElement)(j,{icon:t,label:C,onSubmit:this.setUrl,value:a,cannotEmbed:_,onChange:function(e){return r.setState({url:e.target.value})},fallback:function(){return Object(h.b)(a,r.props.onReplace)},tryAgain:E}):Object(c.createElement)(c.Fragment,null,Object(c.createElement)(O,{showEditButton:w&&!_,themeSupportsResponsive:k,blockSupportsResponsive:n,allowResponsive:b,getResponsiveHelp:this.getResponsiveHelp,toggleResponsive:this.toggleResponsive,switchBackToURLInput:this.switchBackToURLInput}),Object(c.createElement)(R,{preview:w,className:y,url:a,type:u,caption:s,onCaptionChange:function(e){return g({caption:e})},isSelected:f,icon:t,label:C}))}}]),o}(c.Component)}(t,o,N);return{title:t,description:B,icon:o,category:g,keywords:k,attributes:A,supports:Object(r.a)({align:!0},x),transforms:y,edit:Object(C.compose)(Object(I.withSelect)((function(e,t){var n=t.attributes.url,r=e("core"),o=r.getEmbedPreview,a=r.isPreviewEmbedFallback,i=r.isRequestingEmbedPreview,c=r.getThemeSupports,l=void 0!==n&&o(n),s=void 0!==n&&a(n),u=void 0!==n&&i(n),b=c(),d=!!l&&void 0===l.type&&!1===l.html,m=!!l&&l.data&&404===l.data.status,h=!!l&&!d&&!m,p=void 0!==n&&(!h||s);return{preview:h?l:void 0,fetching:u,themeSupportsResponsive:b["responsive-embeds"],cannotEmbed:p}})),Object(I.withDispatch)((function(e,t){var n=t.attributes.url,r=e("core/data");return{tryAgain:function(){r.invalidateResolution("core","getEmbedPreview",[n])}}})))(P),save:function(e){var t,n=e.attributes,r=n.url,o=n.caption,a=n.type,l=n.providerNameSlug;if(!r)return null;var s=E()("wp-block-embed",(t={},Object(i.a)(t,"is-type-".concat(a),a),Object(i.a)(t,"is-provider-".concat(l),l),t));return Object(c.createElement)("figure",{className:s},Object(c.createElement)("div",{className:"wp-block-embed__wrapper"},"\n".concat(r,"\n")),!f.RichText.isEmpty(o)&&Object(c.createElement)(f.RichText.Content,{tagName:"figcaption",value:o}))},deprecated:[{attributes:A,save:function(e){var t,n=e.attributes,r=n.url,o=n.caption,a=n.type,l=n.providerNameSlug;if(!r)return null;var s=E()("wp-block-embed",(t={},Object(i.a)(t,"is-type-".concat(a),a),Object(i.a)(t,"is-provider-".concat(l),l),t));return Object(c.createElement)("figure",{className:s},"\n".concat(r,"\n"),!f.RichText.isEmpty(o)&&Object(c.createElement)(f.RichText.Content,{tagName:"figcaption",value:o}))}}]}}var B=n("HSyU"),P="core/embed",L=N({title:Object(p._x)("Embed","block title"),description:Object(p.__)("Embed videos, images, tweets, audio, and other content from external sources."),icon:a.c,responsive:!1,transforms:{from:[{type:"raw",isMatch:function(e){return"P"===e.nodeName&&/^\s*(https?:\/\/\S+)\s*$/i.test(e.textContent)},transform:function(e){return Object(B.createBlock)("core/embed",{url:e.textContent.trim()})}}]}}),M=o.a.map((function(e){return Object(r.a)({},e,{settings:N(e.settings)})})),H=o.b.map((function(e){return Object(r.a)({},e,{settings:N(e.settings)})}))},SiUe:function(e,t,n){"use strict";n.r(t),n.d(t,"name",(function(){return v})),n.d(t,"settings",(function(){return j}));var r=n("GRId"),o=n("l3Sj"),a=n("tI+e"),i=n("HSyU"),c=n("KQm4"),l=n("1OyB"),s=n("vuIU"),u=n("md7G"),b=n("foSv"),d=n("Ji7U"),m=n("JX7q"),h=n("axFQ"),p=n("jSdM"),g=n("1ZqX"),f=function(e){function t(){var e;return Object(l.a)(this,t),(e=Object(u.a)(this,Object(b.a)(t).apply(this,arguments))).state={isPreview:!1,styles:[]},e.switchToHTML=e.switchToHTML.bind(Object(m.a)(Object(m.a)(e))),e.switchToPreview=e.switchToPreview.bind(Object(m.a)(Object(m.a)(e))),e}return Object(d.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=this.props.styles;this.setState({styles:["\n\t\t\thtml,body,:root {\n\t\t\t\tmargin: 0 !important;\n\t\t\t\tpadding: 0 !important;\n\t\t\t\toverflow: visible !important;\n\t\t\t\tmin-height: auto !important;\n\t\t\t}\n\t\t"].concat(Object(c.a)(Object(p.transformStyles)(e)))})}},{key:"switchToPreview",value:function(){this.setState({isPreview:!0})}},{key:"switchToHTML",value:function(){this.setState({isPreview:!1})}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,i=this.state,c=i.isPreview,l=i.styles;return Object(r.createElement)("div",{className:"wp-block-html"},Object(r.createElement)(h.BlockControls,null,Object(r.createElement)("div",{className:"components-toolbar"},Object(r.createElement)("button",{className:"components-tab-button ".concat(c?"":"is-active"),onClick:this.switchToHTML},Object(r.createElement)("span",null,"HTML")),Object(r.createElement)("button",{className:"components-tab-button ".concat(c?"is-active":""),onClick:this.switchToPreview},Object(r.createElement)("span",null,Object(o.__)("Preview"))))),Object(r.createElement)(a.Disabled.Consumer,null,(function(e){return c||e?Object(r.createElement)(a.SandBox,{html:t.content,styles:l}):Object(r.createElement)(h.PlainText,{value:t.content,onChange:function(e){return n({content:e})},placeholder:Object(o.__)("Write HTML…"),"aria-label":Object(o.__)("HTML")})})))}}]),t}(r.Component),O=Object(g.withSelect)((function(e){return{styles:(0,e("core/block-editor").getSettings)().styles}}))(f),v="core/html",j={title:Object(o.__)("Custom HTML"),description:Object(o.__)("Add custom HTML code and preview it as you edit."),icon:Object(r.createElement)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(a.Path,{d:"M4.5,11h-2V9H1v6h1.5v-2.5h2V15H6V9H4.5V11z M7,10.5h1.5V15H10v-4.5h1.5V9H7V10.5z M14.5,10l-1-1H12v6h1.5v-3.9 l1,1l1-1V15H17V9h-1.5L14.5,10z M19.5,13.5V9H18v6h5v-1.5H19.5z"})),category:"formatting",keywords:[Object(o.__)("embed")],supports:{customClassName:!1,className:!1,html:!1},attributes:{content:{type:"string",source:"html"}},transforms:{from:[{type:"raw",isMatch:function(e){return"FIGURE"===e.nodeName&&!!e.querySelector("iframe")},schema:{figure:{require:["iframe"],children:{iframe:{attributes:["src","allowfullscreen","height","width"]},figcaption:{children:Object(i.getPhrasingContentSchema)()}}}}}]},edit:O,save:function(e){var t=e.attributes;return Object(r.createElement)(r.RawHTML,null,t.content)}}},TSYQ:function(e,t,n){var r;
/*!
Copyright (c) 2018 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<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)){if(r.length){var i=o.apply(null,r);i&&e.push(i)}}else if("object"===a)if(r.toString===Object.prototype.toString)for(var c in r)n.call(r,c)&&r[c]&&e.push(c);else e.push(r.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},U8pU: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}))},UOoR:function(e,t,n){"use strict";n.r(t),n.d(t,"name",(function(){return f})),n.d(t,"settings",(function(){return O}));var r=n("GRId"),o=n("YLtl"),a=n("l3Sj"),i=n("HSyU"),c=n("tI+e"),l=n("1OyB"),s=n("vuIU"),u=n("md7G"),b=n("foSv"),d=n("Ji7U"),m=n("JX7q"),h=n("axFQ"),p=n("RxS6"),g=function(e){function t(){var e;return Object(l.a)(this,t),(e=Object(u.a)(this,Object(b.a)(t).apply(this,arguments))).onChangeInput=e.onChangeInput.bind(Object(m.a)(Object(m.a)(e))),e.onKeyDown=e.onKeyDown.bind(Object(m.a)(Object(m.a)(e))),e.state={defaultText:Object(a.__)("Read more")},e}return Object(d.a)(t,e),Object(s.a)(t,[{key:"onChangeInput",value:function(e){this.setState({defaultText:""});var t=0===e.target.value.length?void 0:e.target.value;this.props.setAttributes({customText:t})}},{key:"onKeyDown",value:function(e){var t=e.keyCode,n=this.props.insertBlocksAfter;t===p.ENTER&&n([Object(i.createBlock)(Object(i.getDefaultBlockName)())])}},{key:"getHideExcerptHelp",value:function(e){return e?Object(a.__)("The excerpt is hidden."):Object(a.__)("The excerpt is visible.")}},{key:"render",value:function(){var e=this.props.attributes,t=e.customText,n=e.noTeaser,o=this.props.setAttributes,i=this.state.defaultText,l=void 0!==t?t:i,s=l.length+1;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(h.InspectorControls,null,Object(r.createElement)(c.PanelBody,null,Object(r.createElement)(c.ToggleControl,{label:Object(a.__)("Hide the excerpt on the full content page"),checked:!!n,onChange:function(){return o({noTeaser:!n})},help:this.getHideExcerptHelp}))),Object(r.createElement)("div",{className:"wp-block-more"},Object(r.createElement)("input",{type:"text",value:l,size:s,onChange:this.onChangeInput,onKeyDown:this.onKeyDown})))}}]),t}(r.Component),f="core/more",O={title:Object(a._x)("More","block name"),description:Object(a.__)("Content before this block will be shown in the excerpt on your archives page."),icon:Object(r.createElement)(c.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(c.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)(c.G,null,Object(r.createElement)(c.Path,{d:"M2 9v2h19V9H2zm0 6h5v-2H2v2zm7 0h5v-2H9v2zm7 0h5v-2h-5v2z"}))),category:"layout",supports:{customClassName:!1,className:!1,html:!1,multiple:!1},attributes:{customText:{type:"string"},noTeaser:{type:"boolean",default:!1}},transforms:{from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:function(e){return e.dataset&&"core/more"===e.dataset.block},transform:function(e){var t=e.dataset,n=t.customText,r=t.noTeaser,o={};return n&&(o.customText=n),""===r&&(o.noTeaser=!0),Object(i.createBlock)("core/more",o)}}]},edit:g,save:function(e){var t=e.attributes,n=t.customText,a=t.noTeaser,i=n?"\x3c!--more ".concat(n,"--\x3e"):"\x3c!--more--\x3e",c=a?"\x3c!--noteaser--\x3e":"";return Object(r.createElement)(r.RawHTML,null,Object(o.compact)([i,c]).join("\n"))}}},UUIm:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return c}));var r=n("YciB"),o=n("l3Sj"),a=n("HSyU"),i=[{name:"core-embed/twitter",settings:{title:"Twitter",icon:r.k,keywords:["tweet"],description:Object(o.__)("Embed a tweet.")},patterns:[/^https?:\/\/(www\.)?twitter\.com\/.+/i]},{name:"core-embed/youtube",settings:{title:"YouTube",icon:r.o,keywords:[Object(o.__)("music"),Object(o.__)("video")],description:Object(o.__)("Embed a YouTube video.")},patterns:[/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i,/^https?:\/\/youtu\.be\/.+/i]},{name:"core-embed/facebook",settings:{title:"Facebook",icon:r.d,description:Object(o.__)("Embed a Facebook post.")},patterns:[/^https?:\/\/www\.facebook.com\/.+/i]},{name:"core-embed/instagram",settings:{title:"Instagram",icon:r.f,keywords:[Object(o.__)("image")],description:Object(o.__)("Embed an Instagram post.")},patterns:[/^https?:\/\/(www\.)?instagr(\.am|am\.com)\/.+/i]},{name:"core-embed/wordpress",settings:{title:"WordPress",icon:r.n,keywords:[Object(o.__)("post"),Object(o.__)("blog")],responsive:!1,description:Object(o.__)("Embed a WordPress post.")}},{name:"core-embed/soundcloud",settings:{title:"SoundCloud",icon:r.b,keywords:[Object(o.__)("music"),Object(o.__)("audio")],description:Object(o.__)("Embed SoundCloud content.")},patterns:[/^https?:\/\/(www\.)?soundcloud\.com\/.+/i]},{name:"core-embed/spotify",settings:{title:"Spotify",icon:r.i,keywords:[Object(o.__)("music"),Object(o.__)("audio")],description:Object(o.__)("Embed Spotify content.")},patterns:[/^https?:\/\/(open|play)\.spotify\.com\/.+/i]},{name:"core-embed/flickr",settings:{title:"Flickr",icon:r.e,keywords:[Object(o.__)("image")],description:Object(o.__)("Embed Flickr content.")},patterns:[/^https?:\/\/(www\.)?flickr\.com\/.+/i,/^https?:\/\/flic\.kr\/.+/i]},{name:"core-embed/vimeo",settings:{title:"Vimeo",icon:r.m,keywords:[Object(o.__)("video")],description:Object(o.__)("Embed a Vimeo video.")},patterns:[/^https?:\/\/(www\.)?vimeo\.com\/.+/i]}],c=[{name:"core-embed/animoto",settings:{title:"Animoto",icon:r.l,description:Object(o.__)("Embed an Animoto video.")},patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i]},{name:"core-embed/cloudup",settings:{title:"Cloudup",icon:r.c,description:Object(o.__)("Embed Cloudup content.")},patterns:[/^https?:\/\/cloudup\.com\/.+/i]},{name:"core-embed/collegehumor",settings:{title:"CollegeHumor",icon:r.l,description:Object(o.__)("Embed CollegeHumor content.")},patterns:[/^https?:\/\/(www\.)?collegehumor\.com\/.+/i]},{name:"core-embed/crowdsignal",settings:{title:"Crowdsignal",icon:r.c,keywords:["polldaddy"],transform:[{type:"block",blocks:["core-embed/polldaddy"],transform:function(e){return Object(a.createBlock)("core-embed/crowdsignal",{content:e})}}],description:Object(o.__)("Embed Crowdsignal (formerly Polldaddy) content.")},patterns:[/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.survey\.fm)\/.+/i]},{name:"core-embed/dailymotion",settings:{title:"Dailymotion",icon:r.l,description:Object(o.__)("Embed a Dailymotion video.")},patterns:[/^https?:\/\/(www\.)?dailymotion\.com\/.+/i]},{name:"core-embed/hulu",settings:{title:"Hulu",icon:r.l,description:Object(o.__)("Embed Hulu content.")},patterns:[/^https?:\/\/(www\.)?hulu\.com\/.+/i]},{name:"core-embed/imgur",settings:{title:"Imgur",icon:r.g,description:Object(o.__)("Embed Imgur content.")},patterns:[/^https?:\/\/(.+\.)?imgur\.com\/.+/i]},{name:"core-embed/issuu",settings:{title:"Issuu",icon:r.c,description:Object(o.__)("Embed Issuu content.")},patterns:[/^https?:\/\/(www\.)?issuu\.com\/.+/i]},{name:"core-embed/kickstarter",settings:{title:"Kickstarter",icon:r.c,description:Object(o.__)("Embed Kickstarter content.")},patterns:[/^https?:\/\/(www\.)?kickstarter\.com\/.+/i,/^https?:\/\/kck\.st\/.+/i]},{name:"core-embed/meetup-com",settings:{title:"Meetup.com",icon:r.c,description:Object(o.__)("Embed Meetup.com content.")},patterns:[/^https?:\/\/(www\.)?meetu(\.ps|p\.com)\/.+/i]},{name:"core-embed/mixcloud",settings:{title:"Mixcloud",icon:r.b,keywords:[Object(o.__)("music"),Object(o.__)("audio")],description:Object(o.__)("Embed Mixcloud content.")},patterns:[/^https?:\/\/(www\.)?mixcloud\.com\/.+/i]},{name:"core-embed/polldaddy",settings:{title:"Polldaddy",icon:r.c,description:Object(o.__)("Embed Polldaddy content."),supports:{inserter:!1}},patterns:[]},{name:"core-embed/reddit",settings:{title:"Reddit",icon:r.h,description:Object(o.__)("Embed a Reddit thread.")},patterns:[/^https?:\/\/(www\.)?reddit\.com\/.+/i]},{name:"core-embed/reverbnation",settings:{title:"ReverbNation",icon:r.b,description:Object(o.__)("Embed ReverbNation content.")},patterns:[/^https?:\/\/(www\.)?reverbnation\.com\/.+/i]},{name:"core-embed/screencast",settings:{title:"Screencast",icon:r.l,description:Object(o.__)("Embed Screencast content.")},patterns:[/^https?:\/\/(www\.)?screencast\.com\/.+/i]},{name:"core-embed/scribd",settings:{title:"Scribd",icon:r.c,description:Object(o.__)("Embed Scribd content.")},patterns:[/^https?:\/\/(www\.)?scribd\.com\/.+/i]},{name:"core-embed/slideshare",settings:{title:"Slideshare",icon:r.c,description:Object(o.__)("Embed Slideshare content.")},patterns:[/^https?:\/\/(.+?\.)?slideshare\.net\/.+/i]},{name:"core-embed/smugmug",settings:{title:"SmugMug",icon:r.g,description:Object(o.__)("Embed SmugMug content.")},patterns:[/^https?:\/\/(www\.)?smugmug\.com\/.+/i]},{name:"core-embed/speaker",settings:{title:"Speaker",icon:r.b,supports:{inserter:!1}},patterns:[]},{name:"core-embed/speaker-deck",settings:{title:"Speaker Deck",icon:r.c,transform:[{type:"block",blocks:["core-embed/speaker"],transform:function(e){return Object(a.createBlock)("core-embed/speaker-deck",{content:e})}}],description:Object(o.__)("Embed Speaker Deck content.")},patterns:[/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i]},{name:"core-embed/ted",settings:{title:"TED",icon:r.l,description:Object(o.__)("Embed a TED video.")},patterns:[/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i]},{name:"core-embed/tumblr",settings:{title:"Tumblr",icon:r.j,description:Object(o.__)("Embed a Tumblr post.")},patterns:[/^https?:\/\/(www\.)?tumblr\.com\/.+/i]},{name:"core-embed/videopress",settings:{title:"VideoPress",icon:r.l,keywords:[Object(o.__)("video")],description:Object(o.__)("Embed a VideoPress video.")},patterns:[/^https?:\/\/videopress\.com\/.+/i]},{name:"core-embed/wordpress-tv",settings:{title:"WordPress.tv",icon:r.l,description:Object(o.__)("Embed a WordPress.tv video.")},patterns:[/^https?:\/\/wordpress\.tv\/.+/i]},{name:"core-embed/amazon-kindle",settings:{title:"Amazon Kindle",icon:r.a,keywords:[Object(o.__)("ebook")],responsive:!1,description:Object(o.__)("Embed Amazon Kindle content.")},patterns:[/^https?:\/\/([a-z0-9-]+\.)?(amazon|amzn)(\.[a-z]{2,4})+\/.+/i,/^https?:\/\/(www\.)?(a\.co|z\.cn)\/.+/i]}]},UuzZ:function(e,t){!function(){e.exports=this.wp.autop}()},"W/Ky":function(e,t,n){"use strict";n.r(t),n.d(t,"name",(function(){return b})),n.d(t,"settings",(function(){return d}));var r=n("GRId"),o=n("l3Sj"),a=n("tI+e"),i=n("HSyU"),c=n("1ZqX"),l=n("axFQ"),s=n("1CF3");var u=Object(c.withDispatch)((function(e,t){var n=t.clientId,r=t.attributes,o=e("core/block-editor").replaceBlock;return{convertToHTML:function(){o(n,Object(i.createBlock)("core/html",{content:r.originalUndelimitedContent}))}}}))((function(e){var t,n=e.attributes,c=e.convertToHTML,u=n.originalName,b=n.originalUndelimitedContent,d=!!b,m=Object(i.getBlockType)("core/html"),h=[];return d&&m?(t=Object(o.sprintf)(Object(o.__)('Your site doesnt include support for the "%s" block. You can leave this block intact, convert its content to a Custom HTML block, or remove it entirely.'),u),h.push(Object(r.createElement)(a.Button,{key:"convert",onClick:c,isLarge:!0,isPrimary:!0},Object(o.__)("Keep as HTML")))):t=Object(o.sprintf)(Object(o.__)('Your site doesnt include support for the "%s" block. You can leave this block intact or remove it entirely.'),u),Object(r.createElement)(r.Fragment,null,Object(r.createElement)(l.Warning,{actions:h},t),Object(r.createElement)(r.RawHTML,null,Object(s.safeHTML)(b)))})),b="core/missing",d={name:b,category:"common",title:Object(o.__)("Unrecognized Block"),description:Object(o.__)("Your site doesnt include support for this block."),supports:{className:!1,customClassName:!1,inserter:!1,html:!1,reusable:!1},attributes:{originalName:{type:"string"},originalUndelimitedContent:{type:"string"},originalContent:{type:"string",source:"html"}},edit:u,save:function(e){var t=e.attributes;return Object(r.createElement)(r.RawHTML,null,t.originalContent)}}},XORA:function(e,t,n){"use strict";n.r(t),n.d(t,"name",(function(){return S})),n.d(t,"settings",(function(){return T}));var r=n("rePB"),o=n("GRId"),a=n("TSYQ"),i=n.n(a),c=n("YLtl"),l=n("HSyU"),s=n("axFQ"),u=n("l3Sj"),b=n("wx14"),d=n("1OyB"),m=n("vuIU"),h=n("md7G"),p=n("foSv"),g=n("Ji7U"),f=n("JX7q"),O=n("tI+e"),v=Object(o.createElement)(O.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(O.Path,{d:"M18 2l2 4h-2l-2-4h-3l2 4h-2l-2-4h-1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V2zm2 12H10V4.4L11.8 8H20z"}),Object(o.createElement)(O.Path,{d:"M14 20H4V10h3V8H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3h-2z"}),Object(o.createElement)(O.Path,{d:"M5 19h8l-1.59-2H9.24l-.84 1.1L7 16.3 5 19z"})),j=["image","video"],y=function(e){function t(){return Object(d.a)(this,t),Object(h.a)(this,Object(p.a)(t).apply(this,arguments))}return Object(g.a)(t,e),Object(m.a)(t,[{key:"renderToolbarEditButton",value:function(){var e=this.props,t=e.mediaId,n=e.onSelectMedia;return Object(o.createElement)(s.BlockControls,null,Object(o.createElement)(O.Toolbar,null,Object(o.createElement)(s.MediaUpload,{onSelect:n,allowedTypes:j,value:t,render:function(e){var t=e.open;return Object(o.createElement)(O.IconButton,{className:"components-toolbar__control",label:Object(u.__)("Edit media"),icon:"edit",onClick:t})}})))}},{key:"renderImage",value:function(){var e=this.props,t=e.mediaAlt,n=e.mediaUrl,r=e.className;return Object(o.createElement)(o.Fragment,null,this.renderToolbarEditButton(),Object(o.createElement)("figure",{className:r},Object(o.createElement)("img",{src:n,alt:t})))}},{key:"renderVideo",value:function(){var e=this.props,t=e.mediaUrl,n=e.className;return Object(o.createElement)(o.Fragment,null,this.renderToolbarEditButton(),Object(o.createElement)("figure",{className:n},Object(o.createElement)("video",{controls:!0,src:t})))}},{key:"renderPlaceholder",value:function(){var e=this.props,t=e.onSelectMedia,n=e.className;return Object(o.createElement)(s.MediaPlaceholder,{icon:Object(o.createElement)(s.BlockIcon,{icon:v}),labels:{title:Object(u.__)("Media area")},className:n,onSelect:t,accept:"image/*,video/*",allowedTypes:j})}},{key:"render",value:function(){var e=this.props,t=e.mediaPosition,n=e.mediaUrl,r=e.mediaType,a=e.mediaWidth,i=e.commitWidthChange,c=e.onWidthChange;if(r&&n){var l={right:"left"===t,left:"right"===t},s=null;switch(r){case"image":s=this.renderImage();break;case"video":s=this.renderVideo()}return Object(o.createElement)(O.ResizableBox,{className:"editor-media-container__resizer",size:{width:a+"%"},minWidth:"10%",maxWidth:"100%",enable:l,onResize:function(e,t,n){c(parseInt(n.style.width))},onResizeStop:function(e,t,n){i(parseInt(n.style.width))},axis:"x"},s)}return this.renderPlaceholder()}}]),t}(o.Component),w=["core/button","core/paragraph","core/heading","core/list"],_=[["core/paragraph",{fontSize:"large",placeholder:Object(u._x)("Content…","content placeholder")}]],k=function(e){function t(){var e;return Object(d.a)(this,t),(e=Object(h.a)(this,Object(p.a)(t).apply(this,arguments))).onSelectMedia=e.onSelectMedia.bind(Object(f.a)(Object(f.a)(e))),e.onWidthChange=e.onWidthChange.bind(Object(f.a)(Object(f.a)(e))),e.commitWidthChange=e.commitWidthChange.bind(Object(f.a)(Object(f.a)(e))),e.state={mediaWidth:null},e}return Object(g.a)(t,e),Object(m.a)(t,[{key:"onSelectMedia",value:function(e){var t,n,r=this.props.setAttributes;"image"===(t=e.media_type?"image"===e.media_type?"image":"video":e.type)&&(n=Object(c.get)(e,["sizes","large","url"])||Object(c.get)(e,["media_details","sizes","large","source_url"])),r({mediaAlt:e.alt,mediaId:e.id,mediaType:t,mediaUrl:n||e.url})}},{key:"onWidthChange",value:function(e){this.setState({mediaWidth:e})}},{key:"commitWidthChange",value:function(e){(0,this.props.setAttributes)({mediaWidth:e}),this.setState({mediaWidth:null})}},{key:"renderMediaArea",value:function(){var e=this.props.attributes,t=e.mediaAlt,n=e.mediaId,r=e.mediaPosition,a=e.mediaType,i=e.mediaUrl,c=e.mediaWidth;return Object(o.createElement)(y,Object(b.a)({className:"block-library-media-text__media-container",onSelectMedia:this.onSelectMedia,onWidthChange:this.onWidthChange,commitWidthChange:this.commitWidthChange},{mediaAlt:t,mediaId:n,mediaType:a,mediaUrl:i,mediaPosition:r,mediaWidth:c}))}},{key:"render",value:function(){var e,t=this.props,n=t.attributes,a=t.className,c=t.backgroundColor,l=t.isSelected,b=t.setAttributes,d=t.setBackgroundColor,m=n.isStackedOnMobile,h=n.mediaAlt,p=n.mediaPosition,g=n.mediaType,f=n.mediaWidth,v=this.state.mediaWidth,j=i()(a,(e={"has-media-on-the-right":"right"===p,"is-selected":l},Object(r.a)(e,c.class,c.class),Object(r.a)(e,"is-stacked-on-mobile",m),e)),y="".concat(v||f,"%"),k={gridTemplateColumns:"right"===p?"auto ".concat(y):"".concat(y," auto"),backgroundColor:c.color},E=[{value:c.color,onChange:d,label:Object(u.__)("Background Color")}],C=[{icon:"align-pull-left",title:Object(u.__)("Show media on left"),isActive:"left"===p,onClick:function(){return b({mediaPosition:"left"})}},{icon:"align-pull-right",title:Object(u.__)("Show media on right"),isActive:"right"===p,onClick:function(){return b({mediaPosition:"right"})}}],S=Object(o.createElement)(O.PanelBody,{title:Object(u.__)("Media & Text Settings")},Object(o.createElement)(O.ToggleControl,{label:Object(u.__)("Stack on mobile"),checked:m,onChange:function(){return b({isStackedOnMobile:!m})}}),"image"===g&&Object(o.createElement)(O.TextareaControl,{label:Object(u.__)("Alt Text (Alternative Text)"),value:h,onChange:function(e){b({mediaAlt:e})},help:Object(u.__)("Alternative text describes your image to people who cant see it. Add a short description with its key details.")}));return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(s.InspectorControls,null,S,Object(o.createElement)(s.PanelColorSettings,{title:Object(u.__)("Color Settings"),initialOpen:!1,colorSettings:E})),Object(o.createElement)(s.BlockControls,null,Object(o.createElement)(O.Toolbar,{controls:C})),Object(o.createElement)("div",{className:j,style:k},this.renderMediaArea(),Object(o.createElement)(s.InnerBlocks,{allowedBlocks:w,template:_,templateInsertUpdatesSelection:!1})))}}]),t}(o.Component),E=Object(s.withColors)("backgroundColor")(k),C=Object(o.createElement)(O.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(O.Path,{d:"M13 17h8v-2h-8v2zM3 19h8V5H3v14zM13 9h8V7h-8v2zm0 4h8v-2h-8v2z"})),S="core/media-text",x={align:{type:"string",default:"wide"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},mediaPosition:{type:"string",default:"left"},mediaId:{type:"number"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"},mediaType:{type:"string"},mediaWidth:{type:"number",default:50},isStackedOnMobile:{type:"boolean",default:!1}},T={title:Object(u.__)("Media & Text"),description:Object(u.__)("Set media and words side-by-side for a richer layout."),icon:C,category:"layout",keywords:[Object(u.__)("image"),Object(u.__)("video")],attributes:x,supports:{align:["wide","full"],html:!1},transforms:{from:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.alt,n=e.url,r=e.id;return Object(l.createBlock)("core/media-text",{mediaAlt:t,mediaId:r,mediaUrl:n,mediaType:"image"})}},{type:"block",blocks:["core/video"],transform:function(e){var t=e.src,n=e.id;return Object(l.createBlock)("core/media-text",{mediaId:n,mediaUrl:t,mediaType:"video"})}}],to:[{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.mediaType;return!e.mediaUrl||"image"===t},transform:function(e){var t=e.mediaAlt,n=e.mediaId,r=e.mediaUrl;return Object(l.createBlock)("core/image",{alt:t,id:n,url:r})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.mediaType;return!e.mediaUrl||"video"===t},transform:function(e){var t=e.mediaId,n=e.mediaUrl;return Object(l.createBlock)("core/video",{id:t,src:n})}}]},edit:E,save:function(e){var t,n,a=e.attributes,l=a.backgroundColor,u=a.customBackgroundColor,b=a.isStackedOnMobile,d=a.mediaAlt,m=a.mediaPosition,h=a.mediaType,p=a.mediaUrl,g=a.mediaWidth,f=a.mediaId,O={image:function(){return Object(o.createElement)("img",{src:p,alt:d,className:f&&"image"===h?"wp-image-".concat(f):null})},video:function(){return Object(o.createElement)("video",{controls:!0,src:p})}},v=Object(s.getColorClassName)("background-color",l),j=i()((t={"has-media-on-the-right":"right"===m},Object(r.a)(t,v,v),Object(r.a)(t,"is-stacked-on-mobile",b),t));50!==g&&(n="right"===m?"auto ".concat(g,"%"):"".concat(g,"% auto"));var y={backgroundColor:v?void 0:u,gridTemplateColumns:n};return Object(o.createElement)("div",{className:j,style:y},Object(o.createElement)("figure",{className:"wp-block-media-text__media"},(O[h]||c.noop)()),Object(o.createElement)("div",{className:"wp-block-media-text__content"},Object(o.createElement)(s.InnerBlocks.Content,null)))},deprecated:[{attributes:x,save:function(e){var t,n,a=e.attributes,l=a.backgroundColor,u=a.customBackgroundColor,b=a.isStackedOnMobile,d=a.mediaAlt,m=a.mediaPosition,h=a.mediaType,p=a.mediaUrl,g=a.mediaWidth,f={image:function(){return Object(o.createElement)("img",{src:p,alt:d})},video:function(){return Object(o.createElement)("video",{controls:!0,src:p})}},O=Object(s.getColorClassName)("background-color",l),v=i()((t={"has-media-on-the-right":"right"===m},Object(r.a)(t,O,O),Object(r.a)(t,"is-stacked-on-mobile",b),t));50!==g&&(n="right"===m?"auto ".concat(g,"%"):"".concat(g,"% auto"));var j={backgroundColor:O?void 0:u,gridTemplateColumns:n};return Object(o.createElement)("div",{className:v,style:j},Object(o.createElement)("figure",{className:"wp-block-media-text__media"},(f[h]||c.noop)()),Object(o.createElement)("div",{className:"wp-block-media-text__content"},Object(o.createElement)(s.InnerBlocks.Content,null)))}}]}},YLtl:function(e,t){!function(){e.exports=this.lodash}()},YciB:function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return i})),n.d(t,"g",(function(){return c})),n.d(t,"l",(function(){return l})),n.d(t,"k",(function(){return s})),n.d(t,"o",(function(){return u})),n.d(t,"d",(function(){return b})),n.d(t,"f",(function(){return d})),n.d(t,"n",(function(){return m})),n.d(t,"i",(function(){return h})),n.d(t,"e",(function(){return p})),n.d(t,"m",(function(){return g})),n.d(t,"h",(function(){return f})),n.d(t,"j",(function(){return O})),n.d(t,"a",(function(){return v}));var r=n("GRId"),o=n("tI+e"),a=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(r.createElement)(o.Path,{d:"M19,4H5C3.89,4,3,4.9,3,6v12c0,1.1,0.89,2,2,2h14c1.1,0,2-0.9,2-2V6C21,4.9,20.11,4,19,4z M19,18H5V8h14V18z"})),i=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)(o.Path,{d:"M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14zM8 15c0-1.66 1.34-3 3-3 .35 0 .69.07 1 .18V6h5v2h-3v7.03c-.02 1.64-1.35 2.97-3 2.97-1.66 0-3-1.34-3-3z"})),c=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(r.createElement)(o.Path,{d:"M21,4H3C1.9,4,1,4.9,1,6v12c0,1.1,0.9,2,2,2h18c1.1,0,2-0.9,2-2V6C23,4.9,22.1,4,21,4z M21,18H3V6h18V18z"}),Object(r.createElement)(o.Polygon,{points:"14.5 11 11 15.51 8.5 12.5 5 17 19 17"})),l=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(r.createElement)(o.Path,{d:"m10 8v8l5-4-5-4zm9-5h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2zm0 16h-14v-14h14v14z"})),s={foreground:"#1da1f2",src:Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.G,null,Object(r.createElement)(o.Path,{d:"M22.23 5.924c-.736.326-1.527.547-2.357.646.847-.508 1.498-1.312 1.804-2.27-.793.47-1.67.812-2.606.996C18.325 4.498 17.258 4 16.078 4c-2.266 0-4.103 1.837-4.103 4.103 0 .322.036.635.106.935-3.41-.17-6.433-1.804-8.457-4.287-.353.607-.556 1.312-.556 2.064 0 1.424.724 2.68 1.825 3.415-.673-.022-1.305-.207-1.86-.514v.052c0 1.988 1.415 3.647 3.293 4.023-.344.095-.707.145-1.08.145-.265 0-.522-.026-.773-.074.522 1.63 2.038 2.817 3.833 2.85-1.404 1.1-3.174 1.757-5.096 1.757-.332 0-.66-.02-.98-.057 1.816 1.164 3.973 1.843 6.29 1.843 7.547 0 11.675-6.252 11.675-11.675 0-.178-.004-.355-.012-.53.802-.578 1.497-1.3 2.047-2.124z"})))},u={foreground:"#ff0000",src:Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M21.8 8s-.195-1.377-.795-1.984c-.76-.797-1.613-.8-2.004-.847-2.798-.203-6.996-.203-6.996-.203h-.01s-4.197 0-6.996.202c-.39.046-1.242.05-2.003.846C2.395 6.623 2.2 8 2.2 8S2 9.62 2 11.24v1.517c0 1.618.2 3.237.2 3.237s.195 1.378.795 1.985c.76.797 1.76.77 2.205.855 1.6.153 6.8.2 6.8.2s4.203-.005 7-.208c.392-.047 1.244-.05 2.005-.847.6-.607.795-1.985.795-1.985s.2-1.618.2-3.237v-1.517C22 9.62 21.8 8 21.8 8zM9.935 14.595v-5.62l5.403 2.82-5.403 2.8z"}))},b={foreground:"#3b5998",src:Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M20 3H4c-.6 0-1 .4-1 1v16c0 .5.4 1 1 1h8.6v-7h-2.3v-2.7h2.3v-2c0-2.3 1.4-3.6 3.5-3.6 1 0 1.8.1 2.1.1v2.4h-1.4c-1.1 0-1.3.5-1.3 1.3v1.7h2.7l-.4 2.8h-2.3v7H20c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1z"}))},d=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24"},Object(r.createElement)(o.G,null,Object(r.createElement)(o.Path,{d:"M12 4.622c2.403 0 2.688.01 3.637.052.877.04 1.354.187 1.67.31.42.163.72.358 1.036.673.315.315.51.615.673 1.035.123.317.27.794.31 1.67.043.95.052 1.235.052 3.638s-.01 2.688-.052 3.637c-.04.877-.187 1.354-.31 1.67-.163.42-.358.72-.673 1.036-.315.315-.615.51-1.035.673-.317.123-.794.27-1.67.31-.95.043-1.234.052-3.638.052s-2.688-.01-3.637-.052c-.877-.04-1.354-.187-1.67-.31-.42-.163-.72-.358-1.036-.673-.315-.315-.51-.615-.673-1.035-.123-.317-.27-.794-.31-1.67-.043-.95-.052-1.235-.052-3.638s.01-2.688.052-3.637c.04-.877.187-1.354.31-1.67.163-.42.358-.72.673-1.036.315-.315.615-.51 1.035-.673.317-.123.794-.27 1.67-.31.95-.043 1.235-.052 3.638-.052M12 3c-2.444 0-2.75.01-3.71.054s-1.613.196-2.185.418c-.592.23-1.094.538-1.594 1.04-.5.5-.807 1-1.037 1.593-.223.572-.375 1.226-.42 2.184C3.01 9.25 3 9.555 3 12s.01 2.75.054 3.71.196 1.613.418 2.186c.23.592.538 1.094 1.038 1.594s1.002.808 1.594 1.038c.572.222 1.227.375 2.185.418.96.044 1.266.054 3.71.054s2.75-.01 3.71-.054 1.613-.196 2.186-.418c.592-.23 1.094-.538 1.594-1.038s.808-1.002 1.038-1.594c.222-.572.375-1.227.418-2.185.044-.96.054-1.266.054-3.71s-.01-2.75-.054-3.71-.196-1.613-.418-2.186c-.23-.592-.538-1.094-1.038-1.594s-1.002-.808-1.594-1.038c-.572-.222-1.227-.375-2.185-.418C14.75 3.01 14.445 3 12 3zm0 4.378c-2.552 0-4.622 2.07-4.622 4.622s2.07 4.622 4.622 4.622 4.622-2.07 4.622-4.622S14.552 7.378 12 7.378zM12 15c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3zm4.804-8.884c-.596 0-1.08.484-1.08 1.08s.484 1.08 1.08 1.08c.596 0 1.08-.484 1.08-1.08s-.483-1.08-1.08-1.08z"}))),m={foreground:"#0073AA",src:Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24"},Object(r.createElement)(o.G,null,Object(r.createElement)(o.Path,{d:"M12.158 12.786l-2.698 7.84c.806.236 1.657.365 2.54.365 1.047 0 2.05-.18 2.986-.51-.024-.037-.046-.078-.065-.123l-2.762-7.57zM3.008 12c0 3.56 2.07 6.634 5.068 8.092L3.788 8.342c-.5 1.117-.78 2.354-.78 3.658zm15.06-.454c0-1.112-.398-1.88-.74-2.48-.456-.74-.883-1.368-.883-2.11 0-.825.627-1.595 1.51-1.595.04 0 .078.006.116.008-1.598-1.464-3.73-2.36-6.07-2.36-3.14 0-5.904 1.613-7.512 4.053.21.008.41.012.58.012.94 0 2.395-.114 2.395-.114.484-.028.54.684.057.74 0 0-.487.058-1.03.086l3.275 9.74 1.968-5.902-1.4-3.838c-.485-.028-.944-.085-.944-.085-.486-.03-.43-.77.056-.742 0 0 1.484.114 2.368.114.94 0 2.397-.114 2.397-.114.486-.028.543.684.058.74 0 0-.488.058-1.03.086l3.25 9.665.897-2.997c.456-1.17.684-2.137.684-2.907zm1.82-3.86c.04.286.06.593.06.924 0 .912-.17 1.938-.683 3.22l-2.746 7.94c2.672-1.558 4.47-4.454 4.47-7.77 0-1.564-.4-3.033-1.1-4.314zM12 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10z"})))},h={foreground:"#1db954",src:Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m4.586 14.424c-.18.295-.563.387-.857.207-2.35-1.434-5.305-1.76-8.786-.963-.335.077-.67-.133-.746-.47-.077-.334.132-.67.47-.745 3.808-.87 7.076-.496 9.712 1.115.293.18.386.563.206.857M17.81 13.7c-.226.367-.706.482-1.072.257-2.687-1.652-6.785-2.13-9.965-1.166-.413.127-.848-.106-.973-.517-.125-.413.108-.848.52-.973 3.632-1.102 8.147-.568 11.234 1.328.366.226.48.707.256 1.072m.105-2.835C14.692 8.95 9.375 8.775 6.297 9.71c-.493.15-1.016-.13-1.166-.624-.148-.495.13-1.017.625-1.167 3.532-1.073 9.404-.866 13.115 1.337.445.264.59.838.327 1.282-.264.443-.838.59-1.282.325"}))},p=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"m6.5 7c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5zm11 0c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5z"})),g={foreground:"#1ab7ea",src:Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.G,null,Object(r.createElement)(o.Path,{d:"M22.396 7.164c-.093 2.026-1.507 4.8-4.245 8.32C15.323 19.16 12.93 21 10.97 21c-1.214 0-2.24-1.12-3.08-3.36-.56-2.052-1.118-4.105-1.68-6.158-.622-2.24-1.29-3.36-2.004-3.36-.156 0-.7.328-1.634.98l-.978-1.26c1.027-.903 2.04-1.806 3.037-2.71C6 3.95 7.03 3.328 7.716 3.265c1.62-.156 2.616.95 2.99 3.32.404 2.558.685 4.148.84 4.77.468 2.12.982 3.18 1.543 3.18.435 0 1.09-.687 1.963-2.064.872-1.376 1.34-2.422 1.402-3.142.125-1.187-.343-1.782-1.4-1.782-.5 0-1.013.115-1.542.34 1.023-3.35 2.977-4.976 5.862-4.883 2.14.063 3.148 1.45 3.024 4.16z"})))},f=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M22 11.816c0-1.256-1.02-2.277-2.277-2.277-.593 0-1.122.24-1.526.613-1.48-.965-3.455-1.594-5.647-1.69l1.17-3.702 3.18.75c.01 1.027.847 1.86 1.877 1.86 1.035 0 1.877-.84 1.877-1.877 0-1.035-.842-1.877-1.877-1.877-.77 0-1.43.466-1.72 1.13L13.55 3.92c-.204-.047-.4.067-.46.26l-1.35 4.27c-2.317.037-4.412.67-5.97 1.67-.402-.355-.917-.58-1.493-.58C3.02 9.54 2 10.56 2 11.815c0 .814.433 1.523 1.078 1.925-.037.222-.06.445-.06.673 0 3.292 4.01 5.97 8.94 5.97s8.94-2.678 8.94-5.97c0-.214-.02-.424-.052-.632.687-.39 1.154-1.12 1.154-1.964zm-3.224-7.422c.606 0 1.1.493 1.1 1.1s-.493 1.1-1.1 1.1-1.1-.494-1.1-1.1.493-1.1 1.1-1.1zm-16 7.422c0-.827.673-1.5 1.5-1.5.313 0 .598.103.838.27-.85.675-1.477 1.478-1.812 2.36-.32-.274-.525-.676-.525-1.13zm9.183 7.79c-4.502 0-8.165-2.33-8.165-5.193S7.457 9.22 11.96 9.22s8.163 2.33 8.163 5.193-3.663 5.193-8.164 5.193zM20.635 13c-.326-.89-.948-1.7-1.797-2.383.247-.186.55-.3.882-.3.827 0 1.5.672 1.5 1.5 0 .482-.23.91-.586 1.184zm-11.64 1.704c-.76 0-1.397-.616-1.397-1.376 0-.76.636-1.397 1.396-1.397.76 0 1.376.638 1.376 1.398 0 .76-.616 1.376-1.376 1.376zm7.405-1.376c0 .76-.615 1.376-1.375 1.376s-1.4-.616-1.4-1.376c0-.76.64-1.397 1.4-1.397.76 0 1.376.638 1.376 1.398zm-1.17 3.38c.15.152.15.398 0 .55-.675.674-1.728 1.002-3.22 1.002l-.01-.002-.012.002c-1.492 0-2.544-.328-3.218-1.002-.152-.152-.152-.398 0-.55.152-.152.4-.15.55 0 .52.52 1.394.775 2.67.775l.01.002.01-.002c1.276 0 2.15-.253 2.67-.775.15-.152.398-.152.55 0z"})),O={foreground:"#35465c",src:Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zm-5.57 14.265c-2.445.042-3.37-1.742-3.37-2.998V10.6H8.922V9.15c1.703-.615 2.113-2.15 2.21-3.026.006-.06.053-.084.08-.084h1.645V8.9h2.246v1.7H12.85v3.495c.008.476.182 1.13 1.08 1.107.3-.008.698-.094.907-.194l.54 1.6c-.205.297-1.12.642-1.946.657z"}))},v=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.42 14.58c-.51-.66-1.05-1.23-1.05-2.5V7.87c0-1.8.15-3.45-1.2-4.68-1.05-1.02-2.79-1.35-4.14-1.35-2.6 0-5.52.96-6.12 4.14-.06.36.18.54.4.57l2.66.3c.24-.03.42-.27.48-.5.24-1.12 1.17-1.63 2.2-1.63.56 0 1.22.21 1.55.7.4.56.33 1.31.33 1.97v.36c-1.59.18-3.66.27-5.16.93a4.63 4.63 0 0 0-2.93 4.44c0 2.82 1.8 4.23 4.1 4.23 1.95 0 3.03-.45 4.53-1.98.51.72.66 1.08 1.59 1.83.18.09.45.09.63-.1v.04l2.1-1.8c.24-.21.2-.48.03-.75zm-5.4-1.2c-.45.75-1.14 1.23-1.92 1.23-1.05 0-1.65-.81-1.65-1.98 0-2.31 2.1-2.73 4.08-2.73v.6c0 1.05.03 1.92-.5 2.88z"}),Object(r.createElement)(o.Path,{d:"M21.69 19.2a17.62 17.62 0 0 1-21.6-1.57c-.23-.2 0-.5.28-.33a23.88 23.88 0 0 0 20.93 1.3c.45-.19.84.3.39.6z"}),Object(r.createElement)(o.Path,{d:"M22.8 17.96c-.36-.45-2.22-.2-3.1-.12-.23.03-.3-.18-.05-.36 1.5-1.05 3.96-.75 4.26-.39.3.36-.1 2.82-1.5 4.02-.21.18-.42.1-.3-.15.3-.8 1.02-2.58.69-3z"}))},YuTi:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},Zss7:function(e,t,n){var r;!function(o){var a=/^\s+/,i=/\s+$/,c=0,l=o.round,s=o.min,u=o.max,b=o.random;function d(e,t){if(t=t||{},(e=e||"")instanceof d)return e;if(!(this instanceof d))return new d(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,c=null,l=null,b=!1,d=!1;"string"==typeof e&&(e=function(e){e=e.replace(a,"").replace(i,"").toLowerCase();var t,n=!1;if(R[e])e=R[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=V.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=V.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=V.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=V.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=V.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=V.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=V.hex8.exec(e))return{r:P(t[1]),g:P(t[2]),b:P(t[3]),a:z(t[4]),format:n?"name":"hex8"};if(t=V.hex6.exec(e))return{r:P(t[1]),g:P(t[2]),b:P(t[3]),format:n?"name":"hex"};if(t=V.hex4.exec(e))return{r:P(t[1]+""+t[1]),g:P(t[2]+""+t[2]),b:P(t[3]+""+t[3]),a:z(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=V.hex3.exec(e))return{r:P(t[1]+""+t[1]),g:P(t[2]+""+t[2]),b:P(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(G(e.r)&&G(e.g)&&G(e.b)?(m=e.r,h=e.g,p=e.b,t={r:255*N(m,255),g:255*N(h,255),b:255*N(p,255)},b=!0,d="%"===String(e.r).substr(-1)?"prgb":"rgb"):G(e.h)&&G(e.s)&&G(e.v)?(r=M(e.s),c=M(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),a=e-r,i=n*(1-t),c=n*(1-a*t),l=n*(1-(1-a)*t),s=r%6;return{r:255*[n,c,i,i,l,n][s],g:255*[l,n,n,c,i,i][s],b:255*[i,i,l,n,n,c][s]}}(e.h,r,c),b=!0,d="hsv"):G(e.h)&&G(e.s)&&G(e.l)&&(r=M(e.s),l=M(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=N(e,360),t=N(t,100),n=N(n,100),0===t)r=o=a=n;else{var c=n<.5?n*(1+t):n+t-n*t,l=2*n-c;r=i(l,c,e+1/3),o=i(l,c,e),a=i(l,c,e-1/3)}return{r:255*r,g:255*o,b:255*a}}(e.h,r,l),b=!0,d="hsl"),e.hasOwnProperty("a")&&(n=e.a));var m,h,p;return n=A(n),{ok:b,format:e.format||d,r:s(255,u(t.r,0)),g:s(255,u(t.g,0)),b:s(255,u(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=l(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=n.ok,this._tc_id=c++}function m(e,t,n){e=N(e,255),t=N(t,255),n=N(n,255);var r,o,a=u(e,t,n),i=s(e,t,n),c=(a+i)/2;if(a==i)r=o=0;else{var l=a-i;switch(o=c>.5?l/(2-a-i):l/(a+i),a){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:o,l:c}}function h(e,t,n){e=N(e,255),t=N(t,255),n=N(n,255);var r,o,a=u(e,t,n),i=s(e,t,n),c=a,l=a-i;if(o=0===a?0:l/a,a==i)r=0;else{switch(a){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:o,v:c}}function p(e,t,n,r){var o=[L(l(e).toString(16)),L(l(t).toString(16)),L(l(n).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function g(e,t,n,r){return[L(H(r)),L(l(e).toString(16)),L(l(t).toString(16)),L(l(n).toString(16))].join("")}function f(e,t){t=0===t?0:t||10;var n=d(e).toHsl();return n.s-=t/100,n.s=B(n.s),d(n)}function O(e,t){t=0===t?0:t||10;var n=d(e).toHsl();return n.s+=t/100,n.s=B(n.s),d(n)}function v(e){return d(e).desaturate(100)}function j(e,t){t=0===t?0:t||10;var n=d(e).toHsl();return n.l+=t/100,n.l=B(n.l),d(n)}function y(e,t){t=0===t?0:t||10;var n=d(e).toRgb();return n.r=u(0,s(255,n.r-l(-t/100*255))),n.g=u(0,s(255,n.g-l(-t/100*255))),n.b=u(0,s(255,n.b-l(-t/100*255))),d(n)}function w(e,t){t=0===t?0:t||10;var n=d(e).toHsl();return n.l-=t/100,n.l=B(n.l),d(n)}function _(e,t){var n=d(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,d(n)}function k(e){var t=d(e).toHsl();return t.h=(t.h+180)%360,d(t)}function E(e){var t=d(e).toHsl(),n=t.h;return[d(e),d({h:(n+120)%360,s:t.s,l:t.l}),d({h:(n+240)%360,s:t.s,l:t.l})]}function C(e){var t=d(e).toHsl(),n=t.h;return[d(e),d({h:(n+90)%360,s:t.s,l:t.l}),d({h:(n+180)%360,s:t.s,l:t.l}),d({h:(n+270)%360,s:t.s,l:t.l})]}function S(e){var t=d(e).toHsl(),n=t.h;return[d(e),d({h:(n+72)%360,s:t.s,l:t.l}),d({h:(n+216)%360,s:t.s,l:t.l})]}function x(e,t,n){t=t||6,n=n||30;var r=d(e).toHsl(),o=360/n,a=[d(e)];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(d(r));return a}function T(e,t){t=t||6;for(var n=d(e).toHsv(),r=n.h,o=n.s,a=n.v,i=[],c=1/t;t--;)i.push(d({h:r,s:o,v:a})),a=(a+c)%1;return i}d.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=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=m(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=m(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return p(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var a=[L(l(e).toString(16)),L(l(t).toString(16)),L(l(n).toString(16)),L(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*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)&&(I[p(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+g(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=d(e);n="#"+g(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return d(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(j,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(w,arguments)},desaturate:function(){return this._applyModification(f,arguments)},saturate:function(){return this._applyModification(O,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(_,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(x,arguments)},complement:function(){return this._applyCombination(k,arguments)},monochromatic:function(){return this._applyCombination(T,arguments)},splitcomplement:function(){return this._applyCombination(S,arguments)},triad:function(){return this._applyCombination(E,arguments)},tetrad:function(){return this._applyCombination(C,arguments)}},d.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:M(e[r]));e=n}return d(e,t)},d.equals=function(e,t){return!(!e||!t)&&d(e).toRgbString()==d(t).toRgbString()},d.random=function(){return d.fromRatio({r:b(),g:b(),b:b()})},d.mix=function(e,t,n){n=0===n?0:n||50;var r=d(e).toRgb(),o=d(t).toRgb(),a=n/100;return d({r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a})},d.readability=function(e,t){var n=d(e),r=d(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},d.isReadable=function(e,t,n){var r,o,a=d.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=a>=4.5;break;case"AAlarge":o=a>=3;break;case"AAAsmall":o=a>=7}return o},d.mostReadable=function(e,t,n){var r,o,a,i,c=null,l=0;o=(n=n||{}).includeFallbackColors,a=n.level,i=n.size;for(var s=0;s<t.length;s++)(r=d.readability(e,t[s]))>l&&(l=r,c=d(t[s]));return d.isReadable(e,c,{level:a,size:i})||!o?c:(n.includeFallbackColors=!1,d.mostReadable(e,["#fff","#000"],n))};var R=d.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},I=d.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(R);function A(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 B(e){return s(1,u(0,e))}function P(e){return parseInt(e,16)}function L(e){return 1==e.length?"0"+e:""+e}function M(e){return e<=1&&(e=100*e+"%"),e}function H(e){return o.round(255*parseFloat(e)).toString(16)}function z(e){return P(e)/255}var U,F,D,V=(F="[\\s|\\(]+("+(U="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+U+")[,|\\s]+("+U+")\\s*\\)?",D="[\\s|\\(]+("+U+")[,|\\s]+("+U+")[,|\\s]+("+U+")[,|\\s]+("+U+")\\s*\\)?",{CSS_UNIT:new RegExp(U),rgb:new RegExp("rgb"+F),rgba:new RegExp("rgba"+D),hsl:new RegExp("hsl"+F),hsla:new RegExp("hsla"+D),hsv:new RegExp("hsv"+F),hsva:new RegExp("hsva"+D),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 G(e){return!!V.CSS_UNIT.exec(e)}e.exports?e.exports=d:void 0===(r=function(){return d}.call(t,n,t,e))||(e.exports=r)}(Math)},a75g:function(e,t,n){"use strict";n.d(t,"e",(function(){return h})),n.d(t,"d",(function(){return p})),n.d(t,"a",(function(){return g})),n.d(t,"c",(function(){return f})),n.d(t,"b",(function(){return O}));var r=n("rePB"),o=n("vpQ4"),a=n("KQm4"),i=n("GRId"),c=n("UUIm"),l=n("du8i"),s=n("YLtl"),u=n("A/WM"),b=n.n(u),d=n("HSyU"),m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.some((function(t){return e.match(t)}))},h=function(e){return Object(s.includes)(e,'class="wp-embedded-content"')},p=function(e){var t=e.thumbnail_url?e.thumbnail_url:e.url,n=Object(i.createElement)("p",null,Object(i.createElement)("img",{src:t,alt:e.title,width:"100%"}));return Object(i.renderToString)(n)},g=function(e,t){var n=e.preview,r=e.name,i=e.attributes.url;if(i){var s=function(e){for(var t=[].concat(Object(a.a)(c.a),Object(a.a)(c.b)),n=0;n<t.length;n++){var r=t[n];if(m(e,r.patterns))return r.name}return l.b}(i);if(l.d!==r&&l.b!==s&&r!==s)return Object(d.createBlock)(s,{url:i});if(n){var u=n.html;if(h(u)&&l.d!==r)return Object(d.createBlock)(l.d,Object(o.a)({url:i},t))}}};function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!n){for(var o={"wp-has-aspect-ratio":!1},a=0;a<l.a.length;a++){var i=l.a[a];o[i.className]=!1}return b()(t,o)}var c=document.implementation.createHTMLDocument("");c.body.innerHTML=e;var s=c.body.querySelector("iframe");if(s&&s.height&&s.width)for(var u=(s.width/s.height).toFixed(2),d=0;d<l.a.length;d++){var m,h=l.a[d];if(u>=h.ratio)return b()(t,(m={},Object(r.a)(m,h.className,n),Object(r.a)(m,"wp-has-aspect-ratio",n),m))}return t}function O(e,t){var n=Object(i.createElement)("a",{href:e},e);t(Object(d.createBlock)("core/paragraph",{content:Object(i.renderToString)(n)}))}},aaBf:function(e,t,n){"use strict";n.r(t),n.d(t,"name",(function(){return g})),n.d(t,"settings",(function(){return f}));var r=n("GRId"),o=n("l3Sj"),a=n("tI+e"),i=n("vpQ4"),c=n("1OyB"),l=n("vuIU"),s=n("md7G"),u=n("foSv"),b=n("Ji7U"),d=n("JX7q"),m=n("RxS6"),h=window.wp;var p=function(e){function t(e){var n;return Object(c.a)(this,t),(n=Object(s.a)(this,Object(u.a)(t).call(this,e))).initialize=n.initialize.bind(Object(d.a)(Object(d.a)(n))),n.onSetup=n.onSetup.bind(Object(d.a)(Object(d.a)(n))),n.focus=n.focus.bind(Object(d.a)(Object(d.a)(n))),n}return Object(b.a)(t,e),Object(l.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),h.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;h.oldEditor.initialize("editor-".concat(e),{tinymce:Object(i.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,a=r.attributes.content,i=r.setAttributes,c=this.ref;this.editor=e,a&&e.on("loadContent",(function(){return e.setContent(a)})),e.on("blur",(function(){return t=e.selection.getBookmark(2,!0),i({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!==m.BACKSPACE&&t.keyCode!==m.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===m.F10&&t.stopPropagation()})),e.addButton("kitchensink",{tooltip:Object(o._x)("More","button to expand options"),icon:"dashicon dashicons-editor-kitchensink",onClick:function(){var t=!this.active();this.active(t),e.dom.toggleClass(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(o.__)("Insert Media"),icon:"dashicon dashicons-admin-media",cmd:"WP_Medialib"}),e.on("init",(function(){var e=n.editor.getBody();document.activeElement===e&&(e.blur(),n.editor.focus())}))}},{key:"focus",value:function(){this.editor&&this.editor.focus()}},{key:"onToolbarKeyDown",value:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}},{key:"render",value:function(){var e=this,t=this.props.clientId;return[Object(r.createElement)("div",{key:"toolbar",id:"toolbar-".concat(t),ref:function(t){return e.ref=t},className:"block-library-classic__toolbar",onClick:this.focus,"data-placeholder":Object(o.__)("Classic"),onKeyDown:this.onToolbarKeyDown}),Object(r.createElement)("div",{key:"editor",id:"editor-".concat(t),className:"wp-block-freeform block-library-rich-text__tinymce"})]}}]),t}(r.Component),g="core/freeform",f={title:Object(o._x)("Classic","block title"),description:Object(o.__)("Use the classic WordPress editor."),icon:Object(r.createElement)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(a.Path,{d:"M0,0h24v24H0V0z M0,0h24v24H0V0z",fill:"none"}),Object(r.createElement)(a.Path,{d:"m20 7v10h-16v-10h16m0-2h-16c-1.1 0-1.99 0.9-1.99 2l-0.01 10c0 1.1 0.9 2 2 2h16c1.1 0 2-0.9 2-2v-10c0-1.1-0.9-2-2-2z"}),Object(r.createElement)(a.Rect,{x:"11",y:"8",width:"2",height:"2"}),Object(r.createElement)(a.Rect,{x:"11",y:"11",width:"2",height:"2"}),Object(r.createElement)(a.Rect,{x:"8",y:"8",width:"2",height:"2"}),Object(r.createElement)(a.Rect,{x:"8",y:"11",width:"2",height:"2"}),Object(r.createElement)(a.Rect,{x:"5",y:"11",width:"2",height:"2"}),Object(r.createElement)(a.Rect,{x:"5",y:"8",width:"2",height:"2"}),Object(r.createElement)(a.Rect,{x:"8",y:"14",width:"8",height:"2"}),Object(r.createElement)(a.Rect,{x:"14",y:"11",width:"2",height:"2"}),Object(r.createElement)(a.Rect,{x:"14",y:"8",width:"2",height:"2"}),Object(r.createElement)(a.Rect,{x:"17",y:"11",width:"2",height:"2"}),Object(r.createElement)(a.Rect,{x:"17",y:"8",width:"2",height:"2"})),category:"formatting",attributes:{content:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,reusable:!1},edit:p,save:function(e){var t=e.attributes.content;return Object(r.createElement)(r.RawHTML,null,t)}}},asvH:function(e,t,n){"use strict";n.r(t),n.d(t,"name",(function(){return C})),n.d(t,"settings",(function(){return S}));var r=n("GRId"),o=n("l3Sj"),a=n("tI+e"),i=n("rePB"),c=n("wx14"),l=n("1OyB"),s=n("vuIU"),u=n("md7G"),b=n("foSv"),d=n("Ji7U"),m=n("JX7q"),h=n("YLtl"),p=n("TSYQ"),g=n.n(p),f=n("ywyh"),O=n.n(f),v=n("Mmq9"),j=n("FqII"),y=n("axFQ"),w=n("1ZqX"),_={per_page:-1},k=function(e){function t(){var e;return Object(l.a)(this,t),(e=Object(u.a)(this,Object(b.a)(t).apply(this,arguments))).state={categoriesList:[]},e.toggleDisplayPostDate=e.toggleDisplayPostDate.bind(Object(m.a)(Object(m.a)(e))),e}return Object(d.a)(t,e),Object(s.a)(t,[{key:"componentWillMount",value:function(){var e=this;this.isStillMounted=!0,this.fetchRequest=O()({path:Object(v.addQueryArgs)("/wp/v2/categories",_)}).then((function(t){e.isStillMounted&&e.setState({categoriesList:t})})).catch((function(){e.isStillMounted&&e.setState({categoriesList:[]})}))}},{key:"componentWillUnmount",value:function(){this.isStillMounted=!1}},{key:"toggleDisplayPostDate",value:function(){var e=this.props.attributes.displayPostDate;(0,this.props.setAttributes)({displayPostDate:!e})}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,l=e.latestPosts,s=this.state.categoriesList,u=t.displayPostDate,b=t.align,d=t.postLayout,m=t.columns,h=t.order,p=t.orderBy,f=t.categories,O=t.postsToShow,v=Object(r.createElement)(y.InspectorControls,null,Object(r.createElement)(a.PanelBody,{title:Object(o.__)("Latest Posts Settings")},Object(r.createElement)(a.QueryControls,Object(c.a)({order:h,orderBy:p},{numberOfItems:O,categoriesList:s,selectedCategoryId:f,onOrderChange:function(e){return n({order:e})},onOrderByChange:function(e){return n({orderBy:e})},onCategoryChange:function(e){return n({categories:""!==e?e:void 0})},onNumberOfItemsChange:function(e){return n({postsToShow:e})}})),Object(r.createElement)(a.ToggleControl,{label:Object(o.__)("Display post date"),checked:u,onChange:this.toggleDisplayPostDate}),"grid"===d&&Object(r.createElement)(a.RangeControl,{label:Object(o.__)("Columns"),value:m,onChange:function(e){return n({columns:e})},min:2,max:w?Math.min(6,l.length):6,required:!0}))),w=Array.isArray(l)&&l.length;if(!w)return Object(r.createElement)(r.Fragment,null,v,Object(r.createElement)(a.Placeholder,{icon:"admin-post",label:Object(o.__)("Latest Posts")},Array.isArray(l)?Object(o.__)("No posts found."):Object(r.createElement)(a.Spinner,null)));var _=l.length>O?l.slice(0,O):l,k=[{icon:"list-view",title:Object(o.__)("List View"),onClick:function(){return n({postLayout:"list"})},isActive:"list"===d},{icon:"grid-view",title:Object(o.__)("Grid View"),onClick:function(){return n({postLayout:"grid"})},isActive:"grid"===d}],E=Object(j.__experimentalGetSettings)().formats.date;return Object(r.createElement)(r.Fragment,null,v,Object(r.createElement)(y.BlockControls,null,Object(r.createElement)(y.BlockAlignmentToolbar,{value:b,onChange:function(e){n({align:e})}}),Object(r.createElement)(a.Toolbar,{controls:k})),Object(r.createElement)("ul",{className:g()(this.props.className,Object(i.a)({"is-grid":"grid"===d,"has-dates":u},"columns-".concat(m),"grid"===d))},_.map((function(e,t){var n=e.title.rendered.trim();return Object(r.createElement)("li",{key:t},Object(r.createElement)("a",{href:e.link,target:"_blank",rel:"noreferrer noopener"},n?Object(r.createElement)(r.RawHTML,null,n):Object(o.__)("(Untitled)")),u&&e.date_gmt&&Object(r.createElement)("time",{dateTime:Object(j.format)("c",e.date_gmt),className:"wp-block-latest-posts__post-date"},Object(j.dateI18n)(E,e.date_gmt)))}))))}}]),t}(r.Component),E=Object(w.withSelect)((function(e,t){var n=t.attributes,r=n.postsToShow,o=n.order,a=n.orderBy,i=n.categories;return{latestPosts:(0,e("core").getEntityRecords)("postType","post",Object(h.pickBy)({categories:i,order:o,orderby:a,per_page:r},(function(e){return!Object(h.isUndefined)(e)})))}}))(k),C="core/latest-posts",S={title:Object(o.__)("Latest Posts"),description:Object(o.__)("Display a list of your most recent posts."),icon:Object(r.createElement)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(a.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(r.createElement)(a.Rect,{x:"11",y:"7",width:"6",height:"2"}),Object(r.createElement)(a.Rect,{x:"11",y:"11",width:"6",height:"2"}),Object(r.createElement)(a.Rect,{x:"11",y:"15",width:"6",height:"2"}),Object(r.createElement)(a.Rect,{x:"7",y:"7",width:"2",height:"2"}),Object(r.createElement)(a.Rect,{x:"7",y:"11",width:"2",height:"2"}),Object(r.createElement)(a.Rect,{x:"7",y:"15",width:"2",height:"2"}),Object(r.createElement)(a.Path,{d:"M20.1,3H3.9C3.4,3,3,3.4,3,3.9v16.2C3,20.5,3.4,21,3.9,21h16.2c0.4,0,0.9-0.5,0.9-0.9V3.9C21,3.4,20.5,3,20.1,3z M19,19H5V5h14V19z"})),category:"widgets",keywords:[Object(o.__)("recent posts")],supports:{html:!1},getEditWrapperProps:function(e){var t=e.align;if(["left","center","right","wide","full"].includes(t))return{"data-align":t}},edit:E,save:function(){return null}}},ax6o:function(e,t,n){"use strict";n.r(t),n.d(t,"name",(function(){return c})),n.d(t,"settings",(function(){return l}));var r=n("GRId"),o=n("l3Sj"),a=n("HSyU"),i=n("tI+e");var c="core/nextpage",l={title:Object(o.__)("Page Break"),description:Object(o.__)("Separate your content into a multi-page experience."),icon:Object(r.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(i.G,null,Object(r.createElement)(i.Path,{d:"M9 12h6v-2H9zm-7 0h5v-2H2zm15 0h5v-2h-5zm3 2v2l-6 6H6a2 2 0 0 1-2-2v-6h2v6h6v-4a2 2 0 0 1 2-2h6zM4 8V4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4h-2V4H6v4z"}))),category:"layout",keywords:[Object(o.__)("next page"),Object(o.__)("pagination")],supports:{customClassName:!1,className:!1,html:!1},attributes:{},transforms:{from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:function(e){return e.dataset&&"core/nextpage"===e.dataset.block},transform:function(){return Object(a.createBlock)("core/nextpage",{})}}]},edit:function(){return Object(r.createElement)("div",{className:"wp-block-nextpage"},Object(r.createElement)("span",null,Object(o.__)("Page break")))},save:function(){return Object(r.createElement)(r.RawHTML,null,"\x3c!--nextpage--\x3e")}}},axFQ:function(e,t){!function(){e.exports=this.wp.blockEditor}()},bBb9:function(e,t,n){"use strict";n.r(t),n.d(t,"name",(function(){return l})),n.d(t,"settings",(function(){return s}));var r=n("GRId"),o=n("l3Sj"),a=n("HSyU"),i=n("axFQ"),c=n("tI+e"),l="core/verse",s={title:Object(o.__)("Verse"),description:Object(o.__)("Insert poetry. Use special spacing formats. Or quote song lyrics."),icon:Object(r.createElement)(c.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(c.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)(c.Path,{d:"M3 17v4h4l11-11-4-4L3 17zm3 2H5v-1l9-9 1 1-9 9zM21 6l-3-3h-1l-2 2 4 4 2-2V6z"})),category:"formatting",keywords:[Object(o.__)("poetry")],attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}},transforms:{from:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(a.createBlock)("core/verse",e)}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(a.createBlock)("core/paragraph",e)}}]},edit:function(e){var t=e.attributes,n=e.setAttributes,a=e.className,c=e.mergeBlocks,l=t.textAlign,s=t.content;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(i.BlockControls,null,Object(r.createElement)(i.AlignmentToolbar,{value:l,onChange:function(e){n({textAlign:e})}})),Object(r.createElement)(i.RichText,{tagName:"pre",value:s,onChange:function(e){n({content:e})},style:{textAlign:l},placeholder:Object(o.__)("Write…"),wrapperClassName:a,onMerge:c}))},save:function(e){var t=e.attributes,n=t.textAlign,o=t.content;return Object(r.createElement)(i.RichText.Content,{tagName:"pre",style:{textAlign:n},value:o})},merge:function(e,t){return{content:e.content+t.content}}}},bXcj:function(e,t,n){"use strict";n.r(t),n.d(t,"name",(function(){return B})),n.d(t,"settings",(function(){return L}));var r=n("vpQ4"),o=n("GRId"),a=n("YLtl"),i=n("l3Sj"),c=n("HSyU"),l=n("axFQ"),s=n("jSdM"),u=n("xTGt"),b=n("rePB"),d=n("KQm4"),m=n("1OyB"),h=n("vuIU"),p=n("md7G"),g=n("foSv"),f=n("Ji7U"),O=n("JX7q"),v=n("TSYQ"),j=n.n(v),y=n("tI+e"),w=n("RxS6"),_=n("1ZqX"),k=function(e){function t(){var e;return Object(m.a)(this,t),(e=Object(p.a)(this,Object(g.a)(t).apply(this,arguments))).onSelectImage=e.onSelectImage.bind(Object(O.a)(Object(O.a)(e))),e.onSelectCaption=e.onSelectCaption.bind(Object(O.a)(Object(O.a)(e))),e.onRemoveImage=e.onRemoveImage.bind(Object(O.a)(Object(O.a)(e))),e.bindContainer=e.bindContainer.bind(Object(O.a)(Object(O.a)(e))),e.state={captionSelected:!1},e}return Object(f.a)(t,e),Object(h.a)(t,[{key:"bindContainer",value:function(e){this.container=e}},{key:"onSelectCaption",value:function(){this.state.captionSelected||this.setState({captionSelected:!0}),this.props.isSelected||this.props.onSelect()}},{key:"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!==[w.BACKSPACE,w.DELETE].indexOf(e.keyCode)&&(e.stopPropagation(),e.preventDefault(),this.props.onRemove())}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isSelected,r=t.image,o=t.url;r&&!o&&this.props.setAttributes({url:r.source_url,alt:r.alt_text}),this.state.captionSelected&&!n&&e.isSelected&&this.setState({captionSelected:!1})}},{key:"render",value:function(){var e,t=this.props,n=t.url,r=t.alt,a=t.id,c=t.linkTo,s=t.link,b=t.isSelected,d=t.caption,m=t.onRemove,h=t.setAttributes,p=t["aria-label"];switch(c){case"media":e=n;break;case"attachment":e=s}var g=Object(o.createElement)(o.Fragment,null,Object(o.createElement)("img",{src:n,alt:r,"data-id":a,onClick:this.onSelectImage,onFocus:this.onSelectImage,onKeyDown:this.onRemoveImage,tabIndex:"0","aria-label":p,ref:this.bindContainer}),Object(u.isBlobURL)(n)&&Object(o.createElement)(y.Spinner,null)),f=j()({"is-selected":b,"is-transient":Object(u.isBlobURL)(n)});return Object(o.createElement)("figure",{className:f},b&&Object(o.createElement)("div",{className:"block-library-gallery-item__inline-menu"},Object(o.createElement)(y.IconButton,{icon:"no-alt",onClick:m,className:"blocks-gallery-item__remove",label:Object(i.__)("Remove Image")})),e?Object(o.createElement)("a",{href:e},g):g,!l.RichText.isEmpty(d)||b?Object(o.createElement)(l.RichText,{tagName:"figcaption",placeholder:Object(i.__)("Write caption…"),value:d,isSelected:this.state.captionSelected,onChange:function(e){return h({caption:e})},unstableOnFocus:this.onSelectCaption,inlineToolbar:!0}):null)}}]),t}(o.Component),E=Object(_.withSelect)((function(e,t){var n=e("core").getMedia,r=t.id;return{image:r?n(r):null}}))(k),C=Object(o.createElement)(y.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(y.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(o.createElement)(y.G,null,Object(o.createElement)(y.Path,{d:"M20 4v12H8V4h12m0-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8.5 9.67l1.69 2.26 2.48-3.1L19 15H9zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"}))),S=[{value:"attachment",label:Object(i.__)("Attachment Page")},{value:"media",label:Object(i.__)("Media File")},{value:"none",label:Object(i.__)("None")}],x=["image"];function T(e){return Math.min(3,e.images.length)}var R=function(e){var t=Object(a.pick)(e,["alt","id","link","caption"]);return t.url=Object(a.get)(e,["sizes","large","url"])||Object(a.get)(e,["media_details","sizes","large","source_url"])||e.url,t},I=function(e){function t(){var e;return Object(m.a)(this,t),(e=Object(p.a)(this,Object(g.a)(t).apply(this,arguments))).onSelectImage=e.onSelectImage.bind(Object(O.a)(Object(O.a)(e))),e.onSelectImages=e.onSelectImages.bind(Object(O.a)(Object(O.a)(e))),e.setLinkTo=e.setLinkTo.bind(Object(O.a)(Object(O.a)(e))),e.setColumnsNumber=e.setColumnsNumber.bind(Object(O.a)(Object(O.a)(e))),e.toggleImageCrop=e.toggleImageCrop.bind(Object(O.a)(Object(O.a)(e))),e.onRemoveImage=e.onRemoveImage.bind(Object(O.a)(Object(O.a)(e))),e.setImageAttributes=e.setImageAttributes.bind(Object(O.a)(Object(O.a)(e))),e.addFiles=e.addFiles.bind(Object(O.a)(Object(O.a)(e))),e.uploadFromFiles=e.uploadFromFiles.bind(Object(O.a)(Object(O.a)(e))),e.setAttributes=e.setAttributes.bind(Object(O.a)(Object(O.a)(e))),e.state={selectedImage:null},e}return Object(f.a)(t,e),Object(h.a)(t,[{key:"setAttributes",value:function(e){if(e.ids)throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes');e.images&&(e=Object(r.a)({},e,{ids:Object(a.map)(e.images,"id")})),this.props.setAttributes(e)}},{key:"onSelectImage",value:function(e){var t=this;return function(){t.state.selectedImage!==e&&t.setState({selectedImage:e})}}},{key:"onRemoveImage",value:function(e){var t=this;return function(){var n=Object(a.filter)(t.props.attributes.images,(function(t,n){return e!==n})),r=t.props.attributes.columns;t.setState({selectedImage:null}),t.setAttributes({images:n,columns:r?Math.min(n.length,r):r})}}},{key:"onSelectImages",value:function(e){var t=this.props.attributes.columns;this.setAttributes({images:e.map((function(e){return R(e)})),columns:t?Math.min(e.length,t):t})}},{key:"setLinkTo",value:function(e){this.setAttributes({linkTo:e})}},{key:"setColumnsNumber",value:function(e){this.setAttributes({columns:e})}},{key:"toggleImageCrop",value:function(){this.setAttributes({imageCrop:!this.props.attributes.imageCrop})}},{key:"getImageCropHelp",value:function(e){return e?Object(i.__)("Thumbnails are cropped to align."):Object(i.__)("Thumbnails are not cropped.")}},{key:"setImageAttributes",value:function(e,t){var n=this.props.attributes.images,o=this.setAttributes;n[e]&&o({images:[].concat(Object(d.a)(n.slice(0,e)),[Object(r.a)({},n[e],t)],Object(d.a)(n.slice(e+1)))})}},{key:"uploadFromFiles",value:function(e){this.addFiles(e.target.files)}},{key:"addFiles",value:function(e){var t=this.props.attributes.images||[],n=this.props.noticeOperations,r=this.setAttributes;Object(s.mediaUpload)({allowedTypes:x,filesList:e,onFileChange:function(e){var n=e.map((function(e){return R(e)}));r({images:t.concat(n)})},onError:n.createErrorNotice})}},{key:"componentDidUpdate",value:function(e){!this.props.isSelected&&e.isSelected&&this.setState({selectedImage:null,captionSelected:!1})}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.attributes,a=n.isSelected,c=n.className,s=n.noticeOperations,u=n.noticeUI,d=r.images,m=r.columns,h=void 0===m?T(r):m,p=r.align,g=r.imageCrop,f=r.linkTo,O=Object(o.createElement)(y.DropZone,{onFilesDrop:this.addFiles}),v=Object(o.createElement)(l.BlockControls,null,!!d.length&&Object(o.createElement)(y.Toolbar,null,Object(o.createElement)(l.MediaUpload,{onSelect:this.onSelectImages,allowedTypes:x,multiple:!0,gallery:!0,value:d.map((function(e){return e.id})),render:function(e){var t=e.open;return Object(o.createElement)(y.IconButton,{className:"components-toolbar__control",label:Object(i.__)("Edit gallery"),icon:"edit",onClick:t})}})));return 0===d.length?Object(o.createElement)(o.Fragment,null,v,Object(o.createElement)(l.MediaPlaceholder,{icon:Object(o.createElement)(l.BlockIcon,{icon:C}),className:c,labels:{title:Object(i.__)("Gallery"),instructions:Object(i.__)("Drag images, upload new ones or select files from your library.")},onSelect:this.onSelectImages,accept:"image/*",allowedTypes:x,multiple:!0,notices:u,onError:s.createErrorNotice})):Object(o.createElement)(o.Fragment,null,v,Object(o.createElement)(l.InspectorControls,null,Object(o.createElement)(y.PanelBody,{title:Object(i.__)("Gallery Settings")},d.length>1&&Object(o.createElement)(y.RangeControl,{label:Object(i.__)("Columns"),value:h,onChange:this.setColumnsNumber,min:1,max:Math.min(8,d.length),required:!0}),Object(o.createElement)(y.ToggleControl,{label:Object(i.__)("Crop Images"),checked:!!g,onChange:this.toggleImageCrop,help:this.getImageCropHelp}),Object(o.createElement)(y.SelectControl,{label:Object(i.__)("Link To"),value:f,onChange:this.setLinkTo,options:S}))),u,Object(o.createElement)("ul",{className:j()(c,(e={},Object(b.a)(e,"align".concat(p),p),Object(b.a)(e,"columns-".concat(h),h),Object(b.a)(e,"is-cropped",g),e))},O,d.map((function(e,n){var r=Object(i.sprintf)(Object(i.__)("image %1$d of %2$d in gallery"),n+1,d.length);return Object(o.createElement)("li",{className:"blocks-gallery-item",key:e.id||e.url},Object(o.createElement)(E,{url:e.url,alt:e.alt,id:e.id,isSelected:a&&t.state.selectedImage===n,onRemove:t.onRemoveImage(n),onSelect:t.onSelectImage(n),setAttributes:function(e){return t.setImageAttributes(n,e)},caption:e.caption,"aria-label":r}))})),a&&Object(o.createElement)("li",{className:"blocks-gallery-item has-add-item-button"},Object(o.createElement)(y.FormFileUpload,{multiple:!0,isLarge:!0,className:"block-library-gallery-add-item-button",onChange:this.uploadFromFiles,accept:"image/*",icon:"insert"},Object(i.__)("Upload an image")))))}}]),t}(o.Component),A=Object(y.withNotices)(I),N={images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},link:{source:"attribute",selector:"img",attribute:"data-link"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:"figcaption"}}},ids:{type:"array",default:[]},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},B="core/gallery",P=function(e){return e?e.split(",").map((function(e){return parseInt(e,10)})):[]},L={title:Object(i.__)("Gallery"),description:Object(i.__)("Display multiple images in a rich gallery."),icon:C,category:"common",keywords:[Object(i.__)("images"),Object(i.__)("photos")],attributes:N,supports:{align:!0},transforms:{from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:function(e){var t=e[0].align;t=Object(a.every)(e,["align",t])?t:void 0;var n=Object(a.filter)(e,(function(e){var t=e.id,n=e.url;return t&&n}));return Object(c.createBlock)("core/gallery",{images:n.map((function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}})),ids:n.map((function(e){return e.id})),align:t})}},{type:"shortcode",tag:"gallery",attributes:{images:{type:"array",shortcode:function(e){var t=e.named.ids;return P(t).map((function(e){return{id:e}}))}},ids:{type:"array",shortcode:function(e){var t=e.named.ids;return P(t)}},columns:{type:"number",shortcode:function(e){var t=e.named.columns;return parseInt(void 0===t?"3":t,10)}},linkTo:{type:"string",shortcode:function(e){var t=e.named.link,n=void 0===t?"attachment":t;return"file"===n?"media":n}}}},{type:"files",isMatch:function(e){return 1!==e.length&&Object(a.every)(e,(function(e){return 0===e.type.indexOf("image/")}))},transform:function(e,t){var n=Object(c.createBlock)("core/gallery",{images:e.map((function(e){return R({url:Object(u.createBlobURL)(e)})}))});return Object(s.mediaUpload)({filesList:e,onFileChange:function(e){var r=e.map(R);t(n.clientId,{ids:Object(a.map)(r,"id"),images:r})},allowedTypes:["image"]}),n}}],to:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.images,n=e.align;return t.length>0?t.map((function(e){var t=e.id,r=e.url,o=e.alt,a=e.caption;return Object(c.createBlock)("core/image",{id:t,url:r,alt:o,caption:a,align:n})})):Object(c.createBlock)("core/image",{align:n})}}]},edit:A,save:function(e){var t=e.attributes,n=t.images,r=t.columns,a=void 0===r?T(t):r,i=t.imageCrop,c=t.linkTo;return Object(o.createElement)("ul",{className:"columns-".concat(a," ").concat(i?"is-cropped":"")},n.map((function(e){var t;switch(c){case"media":t=e.url;break;case"attachment":t=e.link}var n=Object(o.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object(o.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(o.createElement)("figure",null,t?Object(o.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&Object(o.createElement)(l.RichText.Content,{tagName:"figcaption",value:e.caption})))})))},deprecated:[{attributes:N,isEligible:function(e){var t=e.images,n=e.ids;return t&&t.length>0&&(!n&&t||n&&t&&n.length!==t.length||Object(a.some)(t,(function(e,t){return!e&&null!==n[t]||parseInt(e,10)!==n[t]})))},migrate:function(e){return Object(r.a)({},e,{ids:Object(a.map)(e.images,(function(e){var t=e.id;return t?parseInt(t,10):null}))})},save:function(e){var t=e.attributes,n=t.images,r=t.columns,a=void 0===r?T(t):r,i=t.imageCrop,c=t.linkTo;return Object(o.createElement)("ul",{className:"columns-".concat(a," ").concat(i?"is-cropped":"")},n.map((function(e){var t;switch(c){case"media":t=e.url;break;case"attachment":t=e.link}var n=Object(o.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object(o.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(o.createElement)("figure",null,t?Object(o.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&Object(o.createElement)(l.RichText.Content,{tagName:"figcaption",value:e.caption})))})))}},{attributes:N,save:function(e){var t=e.attributes,n=t.images,r=t.columns,a=void 0===r?T(t):r,i=t.imageCrop,c=t.linkTo;return Object(o.createElement)("ul",{className:"columns-".concat(a," ").concat(i?"is-cropped":"")},n.map((function(e){var t;switch(c){case"media":t=e.url;break;case"attachment":t=e.link}var n=Object(o.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link});return Object(o.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(o.createElement)("figure",null,t?Object(o.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&Object(o.createElement)(l.RichText.Content,{tagName:"figcaption",value:e.caption})))})))}},{attributes:Object(r.a)({},N,{images:Object(r.a)({},N.images,{selector:"div.wp-block-gallery figure.blocks-gallery-image img"}),align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,n=t.images,r=t.columns,a=void 0===r?T(t):r,i=t.align,c=t.imageCrop,l=t.linkTo;return Object(o.createElement)("div",{className:"align".concat(i," columns-").concat(a," ").concat(c?"is-cropped":"")},n.map((function(e){var t;switch(l){case"media":t=e.url;break;case"attachment":t=e.link}var n=Object(o.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id});return Object(o.createElement)("figure",{key:e.id||e.url,className:"blocks-gallery-image"},t?Object(o.createElement)("a",{href:t},n):n)})))}}]}},cJch:function(e,t,n){"use strict";n.r(t),n.d(t,"name",(function(){return j})),n.d(t,"settings",(function(){return y}));var r=n("l3Sj"),o=n("vpQ4"),a=n("1OyB"),i=n("vuIU"),c=n("md7G"),l=n("foSv"),s=n("Ji7U"),u=n("JX7q"),b=n("GRId"),d=n("wy2R"),m=n.n(d),h=n("4eJC"),p=n.n(h),g=n("tI+e"),f=n("1ZqX"),O=function(e){function t(){var e;return Object(a.a)(this,t),(e=Object(c.a)(this,Object(l.a)(t).apply(this,arguments))).getYearMonth=p()(e.getYearMonth.bind(Object(u.a)(Object(u.a)(e))),{maxSize:1}),e.getServerSideAttributes=p()(e.getServerSideAttributes.bind(Object(u.a)(Object(u.a)(e))),{maxSize:1}),e}return Object(s.a)(t,e),Object(i.a)(t,[{key:"getYearMonth",value:function(e){if(!e)return{};var t=m()(e);return{year:t.year(),month:t.month()+1}}},{key:"getServerSideAttributes",value:function(e,t){return Object(o.a)({},e,this.getYearMonth(t))}},{key:"render",value:function(){return Object(b.createElement)(g.Disabled,null,Object(b.createElement)(g.ServerSideRender,{block:"core/calendar",attributes:this.getServerSideAttributes(this.props.attributes,this.props.date)}))}}]),t}(b.Component),v=Object(f.withSelect)((function(e){var t=e("core/editor").getEditedPostAttribute;return{date:"post"===t("type")?t("date"):void 0}}))(O),j="core/calendar",y={title:Object(r.__)("Calendar"),description:Object(r.__)("A calendar of your sites posts."),icon:"calendar",category:"widgets",keywords:[Object(r.__)("posts"),Object(r.__)("archive")],supports:{align:!0},edit:v,save:function(){return null}}},"cq/3":function(e,t,n){"use strict";n.r(t),n.d(t,"name",(function(){return k})),n.d(t,"settings",(function(){return E}));var r=n("GRId"),o=n("xTGt"),a=n("HSyU"),i=n("axFQ"),c=n("l3Sj"),l=n("rePB"),s=n("ODXe"),u=n("1OyB"),b=n("vuIU"),d=n("md7G"),m=n("foSv"),h=n("Ji7U"),p=n("JX7q"),g=n("tI+e"),f=n("jSdM"),O=n("a75g"),v=Object(r.createElement)(g.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(g.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)(g.Path,{d:"M4 6.47L5.76 10H20v8H4V6.47M22 4h-4l2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4z"})),j=["video"],y=["image"],w=function(e){function t(){var e;return Object(u.a)(this,t),(e=Object(d.a)(this,Object(m.a)(t).apply(this,arguments))).state={editing:!e.props.attributes.src},e.videoPlayer=Object(r.createRef)(),e.posterImageButton=Object(r.createRef)(),e.toggleAttribute=e.toggleAttribute.bind(Object(p.a)(Object(p.a)(e))),e.onSelectURL=e.onSelectURL.bind(Object(p.a)(Object(p.a)(e))),e.onSelectPoster=e.onSelectPoster.bind(Object(p.a)(Object(p.a)(e))),e.onRemovePoster=e.onRemovePoster.bind(Object(p.a)(Object(p.a)(e))),e}return Object(h.a)(t,e),Object(b.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.noticeOperations,a=t.setAttributes,i=n.id,c=n.src,l=void 0===c?"":c;if(!i&&Object(o.isBlobURL)(l)){var u=Object(o.getBlobByURL)(l);u&&Object(f.mediaUpload)({filesList:[u],onFileChange:function(e){var t=Object(s.a)(e,1)[0].url;a({src:t})},onError:function(t){e.setState({editing:!0}),r.createErrorNotice(t)},allowedTypes:j})}}},{key:"componentDidUpdate",value:function(e){this.props.attributes.poster!==e.attributes.poster&&this.videoPlayer.current.load()}},{key:"toggleAttribute",value:function(e){var t=this;return function(n){t.props.setAttributes(Object(l.a)({},e,n))}}},{key:"onSelectURL",value:function(e){var t=this.props,n=t.attributes,r=t.setAttributes;if(e!==n.src){var o=Object(O.a)({attributes:{url:e}});if(void 0!==o)return void this.props.onReplace(o);r({src:e,id:void 0})}this.setState({editing:!1})}},{key:"onSelectPoster",value:function(e){(0,this.props.setAttributes)({poster:e.url})}},{key:"onRemovePoster",value:function(){(0,this.props.setAttributes)({poster:""}),this.posterImageButton.current.focus()}},{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.autoplay,o=t.caption,a=t.controls,l=t.loop,s=t.muted,u=t.poster,b=t.preload,d=t.src,m=this.props,h=m.setAttributes,p=m.isSelected,f=m.className,O=m.noticeOperations,w=m.noticeUI,_=this.state.editing,k=function(){e.setState({editing:!0})};return _?Object(r.createElement)(i.MediaPlaceholder,{icon:Object(r.createElement)(i.BlockIcon,{icon:v}),className:f,onSelect:function(t){if(!t||!t.url)return h({src:void 0,id:void 0}),void k();h({src:t.url,id:t.id}),e.setState({src:t.url,editing:!1})},onSelectURL:this.onSelectURL,accept:"video/*",allowedTypes:j,value:this.props.attributes,notices:w,onError:O.createErrorNotice}):Object(r.createElement)(r.Fragment,null,Object(r.createElement)(i.BlockControls,null,Object(r.createElement)(g.Toolbar,null,Object(r.createElement)(g.IconButton,{className:"components-icon-button components-toolbar__control",label:Object(c.__)("Edit video"),onClick:k,icon:"edit"}))),Object(r.createElement)(i.InspectorControls,null,Object(r.createElement)(g.PanelBody,{title:Object(c.__)("Video Settings")},Object(r.createElement)(g.ToggleControl,{label:Object(c.__)("Autoplay"),onChange:this.toggleAttribute("autoplay"),checked:n}),Object(r.createElement)(g.ToggleControl,{label:Object(c.__)("Loop"),onChange:this.toggleAttribute("loop"),checked:l}),Object(r.createElement)(g.ToggleControl,{label:Object(c.__)("Muted"),onChange:this.toggleAttribute("muted"),checked:s}),Object(r.createElement)(g.ToggleControl,{label:Object(c.__)("Playback Controls"),onChange:this.toggleAttribute("controls"),checked:a}),Object(r.createElement)(g.SelectControl,{label:Object(c.__)("Preload"),value:b,onChange:function(e){return h({preload:e})},options:[{value:"auto",label:Object(c.__)("Auto")},{value:"metadata",label:Object(c.__)("Metadata")},{value:"none",label:Object(c.__)("None")}]}),Object(r.createElement)(i.MediaUploadCheck,null,Object(r.createElement)(g.BaseControl,{className:"editor-video-poster-control",label:Object(c.__)("Poster Image")},Object(r.createElement)(i.MediaUpload,{title:Object(c.__)("Select Poster Image"),onSelect:this.onSelectPoster,allowedTypes:y,render:function(t){var n=t.open;return Object(r.createElement)(g.Button,{isDefault:!0,onClick:n,ref:e.posterImageButton},e.props.attributes.poster?Object(c.__)("Replace image"):Object(c.__)("Select Poster Image"))}}),!!this.props.attributes.poster&&Object(r.createElement)(g.Button,{onClick:this.onRemovePoster,isLink:!0,isDestructive:!0},Object(c.__)("Remove Poster Image")))))),Object(r.createElement)("figure",{className:f},Object(r.createElement)(g.Disabled,null,Object(r.createElement)("video",{controls:a,poster:u,src:d,ref:this.videoPlayer})),(!i.RichText.isEmpty(o)||p)&&Object(r.createElement)(i.RichText,{tagName:"figcaption",placeholder:Object(c.__)("Write caption…"),value:o,onChange:function(e){return h({caption:e})},inlineToolbar:!0})))}}]),t}(r.Component),_=Object(g.withNotices)(w),k="core/video",E={title:Object(c.__)("Video"),description:Object(c.__)("Embed a video from your media library or upload a new one."),icon:v,keywords:[Object(c.__)("movie")],category:"common",attributes:{autoplay:{type:"boolean",source:"attribute",selector:"video",attribute:"autoplay"},caption:{type:"string",source:"html",selector:"figcaption"},controls:{type:"boolean",source:"attribute",selector:"video",attribute:"controls",default:!0},id:{type:"number"},loop:{type:"boolean",source:"attribute",selector:"video",attribute:"loop"},muted:{type:"boolean",source:"attribute",selector:"video",attribute:"muted"},poster:{type:"string",source:"attribute",selector:"video",attribute:"poster"},preload:{type:"string",source:"attribute",selector:"video",attribute:"preload",default:"metadata"},src:{type:"string",source:"attribute",selector:"video",attribute:"src"}},transforms:{from:[{type:"files",isMatch:function(e){return 1===e.length&&0===e[0].type.indexOf("video/")},transform:function(e){var t=e[0];return Object(a.createBlock)("core/video",{src:Object(o.createBlobURL)(t)})}},{type:"shortcode",tag:"video",attributes:{src:{type:"string",shortcode:function(e){return e.named.src}},poster:{type:"string",shortcode:function(e){return e.named.poster}},loop:{type:"string",shortcode:function(e){return e.named.loop}},autoplay:{type:"string",shortcode:function(e){return e.named.autoplay}},preload:{type:"string",shortcode:function(e){return e.named.preload}}}}]},supports:{align:!0},edit:_,save:function(e){var t=e.attributes,n=t.autoplay,o=t.caption,a=t.controls,c=t.loop,l=t.muted,s=t.poster,u=t.preload,b=t.src;return Object(r.createElement)("figure",null,b&&Object(r.createElement)("video",{autoPlay:n,controls:a,loop:c,muted:l,poster:s,preload:"metadata"!==u?u:void 0,src:b}),!i.RichText.isEmpty(o)&&Object(r.createElement)(i.RichText.Content,{tagName:"figcaption",value:o}))}}},dAQi:function(e,t,n){"use strict";n.r(t),n.d(t,"name",(function(){return g})),n.d(t,"settings",(function(){return f}));var r=n("Ff2n"),o=n("KQm4"),a=n("vpQ4"),i=n("GRId"),c=n("YLtl"),l=n("l3Sj"),s=n("HSyU"),u=n("axFQ"),b=n("qRz9"),d=n("tI+e"),m=Object(a.a)({},Object(s.getPhrasingContentSchema)(),{ul:{},ol:{attributes:["type"]}});["ul","ol"].forEach((function(e){m[e].children={li:{children:m}}}));var h={className:!1},p={ordered:{type:"boolean",default:!1},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",default:""}},g="core/list",f={title:Object(l.__)("List"),description:Object(l.__)("Create a bulleted or numbered list."),icon:Object(i.createElement)(d.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(i.createElement)(d.G,null,Object(i.createElement)(d.Path,{d:"M9 19h12v-2H9v2zm0-6h12v-2H9v2zm0-8v2h12V5H9zm-4-.5c-.828 0-1.5.672-1.5 1.5S4.172 7.5 5 7.5 6.5 6.828 6.5 6 5.828 4.5 5 4.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5z"}))),category:"common",keywords:[Object(l.__)("bullet list"),Object(l.__)("ordered list"),Object(l.__)("numbered list")],attributes:p,supports:h,transforms:{from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:function(e){return Object(s.createBlock)("core/list",{values:Object(b.toHTMLString)({value:Object(b.join)(e.map((function(t){var n=t.content,r=Object(b.create)({html:n});return e.length>1?r:Object(b.replace)(r,/\n/g,b.LINE_SEPARATOR)})),b.LINE_SEPARATOR),multilineTag:"li"})})}},{type:"block",blocks:["core/quote"],transform:function(e){var t=e.value;return Object(s.createBlock)("core/list",{values:Object(b.toHTMLString)({value:Object(b.create)({html:t,multilineTag:"p"}),multilineTag:"li"})})}},{type:"raw",selector:"ol,ul",schema:{ol:m.ol,ul:m.ul},transform:function(e){return Object(s.createBlock)("core/list",Object(a.a)({},Object(s.getBlockAttributes)("core/list",e.outerHTML),{ordered:"OL"===e.nodeName}))}}].concat(Object(o.a)(["*","-"].map((function(e){return{type:"prefix",prefix:e,transform:function(e){return Object(s.createBlock)("core/list",{values:"<li>".concat(e,"</li>")})}}}))),Object(o.a)(["1.","1)"].map((function(e){return{type:"prefix",prefix:e,transform:function(e){return Object(s.createBlock)("core/list",{ordered:!0,values:"<li>".concat(e,"</li>")})}}})))),to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.values;return Object(b.split)(Object(b.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),b.LINE_SEPARATOR).map((function(e){return Object(s.createBlock)("core/paragraph",{content:Object(b.toHTMLString)({value:e})})}))}},{type:"block",blocks:["core/quote"],transform:function(e){var t=e.values;return Object(s.createBlock)("core/quote",{value:Object(b.toHTMLString)({value:Object(b.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),multilineTag:"p"})})}}]},deprecated:[{supports:h,attributes:Object(a.a)({},Object(c.omit)(p,["ordered"]),{nodeName:{type:"string",source:"property",selector:"ol,ul",property:"nodeName",default:"UL"}}),migrate:function(e){var t=e.nodeName,n=Object(r.a)(e,["nodeName"]);return Object(a.a)({},n,{ordered:"OL"===t})},save:function(e){var t=e.attributes,n=t.nodeName,r=t.values;return Object(i.createElement)(u.RichText.Content,{tagName:n.toLowerCase(),value:r})}}],merge:function(e,t){var n=t.values;return n&&"<li></li>"!==n?Object(a.a)({},e,{values:e.values+n}):e},edit:function(e){var t=e.attributes,n=e.insertBlocksAfter,r=e.setAttributes,o=e.mergeBlocks,a=e.onReplace,c=e.className,b=t.ordered,d=t.values;return Object(i.createElement)(u.RichText,{identifier:"values",multiline:"li",tagName:b?"ol":"ul",onChange:function(e){return r({values:e})},value:d,wrapperClassName:"block-library-list",className:c,placeholder:Object(l.__)("Write list…"),onMerge:o,unstableOnSplit:n?function(e,t){for(var o=arguments.length,a=new Array(o>2?o-2:0),i=2;i<o;i++)a[i-2]=arguments[i];a.length||a.push(Object(s.createBlock)("core/paragraph")),"<li></li>"!==t&&a.push(Object(s.createBlock)("core/list",{ordered:b,values:t})),r({values:e}),n(a)}:void 0,onRemove:function(){return a([])},onTagNameChange:function(e){return r({ordered:"ol"===e})}})},save:function(e){var t=e.attributes,n=t.ordered,r=t.values,o=n?"ol":"ul";return Object(i.createElement)(u.RichText.Content,{tagName:o,value:r,multiline:"li"})}}},du8i:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"d",(function(){return i}));var r=["facebook.com","smugmug.com"],o=[{ratio:"2.33",className:"wp-embed-aspect-21-9"},{ratio:"2.00",className:"wp-embed-aspect-18-9"},{ratio:"1.78",className:"wp-embed-aspect-16-9"},{ratio:"1.33",className:"wp-embed-aspect-4-3"},{ratio:"1.00",className:"wp-embed-aspect-1-1"},{ratio:"0.56",className:"wp-embed-aspect-9-16"},{ratio:"0.50",className:"wp-embed-aspect-1-2"}],a="core/embed",i="core-embed/wordpress"},efOa:function(e,t,n){"use strict";n.r(t),n.d(t,"name",(function(){return x})),n.d(t,"settings",(function(){return T}));var r=n("GRId"),o=n("TSYQ"),a=n.n(o),i=n("l3Sj"),c=n("HSyU"),l=n("tI+e"),s=n("axFQ"),u=n("1OyB"),b=n("vuIU"),d=n("md7G"),m=n("foSv"),h=n("Ji7U"),p=n("JX7q"),g=n("KQm4"),f=n("rePB"),O=n("vpQ4"),v=n("YLtl");function j(e,t){var n=t.section,r=t.columnIndex;return Object(f.a)({},n,e[n].map((function(e){return{cells:[].concat(Object(g.a)(e.cells.slice(0,r)),[{content:"",tag:"td"}],Object(g.a)(e.cells.slice(r)))}})))}var y=[{color:"#f3f4f5",name:"Subtle light gray",slug:"subtle-light-gray"},{color:"#e9fbe5",name:"Subtle pale green",slug:"subtle-pale-green"},{color:"#e7f5fe",name:"Subtle pale blue",slug:"subtle-pale-blue"},{color:"#fcf0ef",name:"Subtle pale pink",slug:"subtle-pale-pink"}],w=Object(s.createCustomColorsHOC)(y),_=function(e){function t(){var e;return Object(u.a)(this,t),(e=Object(d.a)(this,Object(m.a)(t).apply(this,arguments))).onCreateTable=e.onCreateTable.bind(Object(p.a)(Object(p.a)(e))),e.onChangeFixedLayout=e.onChangeFixedLayout.bind(Object(p.a)(Object(p.a)(e))),e.onChange=e.onChange.bind(Object(p.a)(Object(p.a)(e))),e.onChangeInitialColumnCount=e.onChangeInitialColumnCount.bind(Object(p.a)(Object(p.a)(e))),e.onChangeInitialRowCount=e.onChangeInitialRowCount.bind(Object(p.a)(Object(p.a)(e))),e.renderSection=e.renderSection.bind(Object(p.a)(Object(p.a)(e))),e.getTableControls=e.getTableControls.bind(Object(p.a)(Object(p.a)(e))),e.onInsertRow=e.onInsertRow.bind(Object(p.a)(Object(p.a)(e))),e.onInsertRowBefore=e.onInsertRowBefore.bind(Object(p.a)(Object(p.a)(e))),e.onInsertRowAfter=e.onInsertRowAfter.bind(Object(p.a)(Object(p.a)(e))),e.onDeleteRow=e.onDeleteRow.bind(Object(p.a)(Object(p.a)(e))),e.onInsertColumn=e.onInsertColumn.bind(Object(p.a)(Object(p.a)(e))),e.onInsertColumnBefore=e.onInsertColumnBefore.bind(Object(p.a)(Object(p.a)(e))),e.onInsertColumnAfter=e.onInsertColumnAfter.bind(Object(p.a)(Object(p.a)(e))),e.onDeleteColumn=e.onDeleteColumn.bind(Object(p.a)(Object(p.a)(e))),e.state={initialRowCount:2,initialColumnCount:2,selectedCell:null},e}return Object(h.a)(t,e),Object(b.a)(t,[{key:"onChangeInitialColumnCount",value:function(e){this.setState({initialColumnCount:e})}},{key:"onChangeInitialRowCount",value:function(e){this.setState({initialRowCount:e})}},{key:"onCreateTable",value:function(e){e.preventDefault();var t,n,r,o=this.props.setAttributes,a=this.state,i=a.initialRowCount,c=a.initialColumnCount;i=parseInt(i,10)||2,c=parseInt(c,10)||2,o((n=(t={rowCount:i,columnCount:c}).rowCount,r=t.columnCount,{body:Object(v.times)(n,(function(){return{cells:Object(v.times)(r,(function(){return{content:"",tag:"td"}}))}}))}))}},{key:"onChangeFixedLayout",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({hasFixedLayout:!t.hasFixedLayout})}},{key:"onChange",value:function(e){var t=this.state.selectedCell;if(t){var n=this.props,r=n.attributes;(0,n.setAttributes)(function(e,t){var n=t.section,r=t.rowIndex,o=t.columnIndex,a=t.content;return Object(f.a)({},n,e[n].map((function(e,t){return t!==r?e:{cells:e.cells.map((function(e,t){return t!==o?e:Object(O.a)({},e,{content:a})}))}})))}(r,{section:t.section,rowIndex:t.rowIndex,columnIndex:t.columnIndex,content:e}))}}},{key:"onInsertRow",value:function(e){var t=this.state.selectedCell;if(t){var n=this.props,r=n.attributes,o=n.setAttributes,a=t.section,i=t.rowIndex;this.setState({selectedCell:null}),o(function(e,t){var n=t.section,r=t.rowIndex,o=e[n][0].cells.length;return Object(f.a)({},n,[].concat(Object(g.a)(e[n].slice(0,r)),[{cells:Object(v.times)(o,(function(){return{content:"",tag:"td"}}))}],Object(g.a)(e[n].slice(r))))}(r,{section:a,rowIndex:i+e}))}}},{key:"onInsertRowBefore",value:function(){this.onInsertRow(0)}},{key:"onInsertRowAfter",value:function(){this.onInsertRow(1)}},{key:"onDeleteRow",value:function(){var e=this.state.selectedCell;if(e){var t=this.props,n=t.attributes,r=t.setAttributes,o=e.section,a=e.rowIndex;this.setState({selectedCell:null}),r(function(e,t){var n=t.section,r=t.rowIndex;return Object(f.a)({},n,e[n].filter((function(e,t){return t!==r})))}(n,{section:o,rowIndex:a}))}}},{key:"onInsertColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.state.selectedCell;if(t){var n=this.props,r=n.attributes,o=n.setAttributes,a=t.section,i=t.columnIndex;this.setState({selectedCell:null}),o(j(r,{section:a,columnIndex:i+e}))}}},{key:"onInsertColumnBefore",value:function(){this.onInsertColumn(0)}},{key:"onInsertColumnAfter",value:function(){this.onInsertColumn(1)}},{key:"onDeleteColumn",value:function(){var e=this.state.selectedCell;if(e){var t=this.props,n=t.attributes,r=t.setAttributes,o=e.section,a=e.columnIndex;this.setState({selectedCell:null}),r(function(e,t){var n=t.section,r=t.columnIndex;return Object(f.a)({},n,e[n].map((function(e){return{cells:e.cells.filter((function(e,t){return t!==r}))}})).filter((function(e){return e.cells.length})))}(n,{section:o,columnIndex:a}))}}},{key:"createOnFocus",value:function(e){var t=this;return function(){t.setState({selectedCell:e})}}},{key:"getTableControls",value:function(){var e=this.state.selectedCell;return[{icon:"table-row-before",title:Object(i.__)("Add Row Before"),isDisabled:!e,onClick:this.onInsertRowBefore},{icon:"table-row-after",title:Object(i.__)("Add Row After"),isDisabled:!e,onClick:this.onInsertRowAfter},{icon:"table-row-delete",title:Object(i.__)("Delete Row"),isDisabled:!e,onClick:this.onDeleteRow},{icon:"table-col-before",title:Object(i.__)("Add Column Before"),isDisabled:!e,onClick:this.onInsertColumnBefore},{icon:"table-col-after",title:Object(i.__)("Add Column After"),isDisabled:!e,onClick:this.onInsertColumnAfter},{icon:"table-col-delete",title:Object(i.__)("Delete Column"),isDisabled:!e,onClick:this.onDeleteColumn}]}},{key:"renderSection",value:function(e){var t=this,n=e.type,o=e.rows;if(!o.length)return null;var i="t".concat(n),c=this.state.selectedCell;return Object(r.createElement)(i,null,o.map((function(e,o){var i=e.cells;return Object(r.createElement)("tr",{key:o},i.map((function(e,i){var l=e.content,u=e.tag,b=c&&n===c.section&&o===c.rowIndex&&i===c.columnIndex,d={section:n,rowIndex:o,columnIndex:i},m=a()({"is-selected":b});return Object(r.createElement)(u,{key:i,className:m},Object(r.createElement)(s.RichText,{className:"wp-block-table__cell-content",value:l,onChange:t.onChange,unstableOnFocus:t.createOnFocus(d)}))})))})))}},{key:"componentDidUpdate",value:function(){var e=this.props.isSelected,t=this.state.selectedCell;!e&&t&&this.setState({selectedCell:null})}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.className,o=e.backgroundColor,c=e.setBackgroundColor,u=this.state,b=u.initialRowCount,d=u.initialColumnCount,m=t.hasFixedLayout,h=t.head,p=t.body,g=t.foot,f=!h.length&&!p.length&&!g.length,O=this.renderSection;if(f)return Object(r.createElement)("form",{onSubmit:this.onCreateTable},Object(r.createElement)(l.TextControl,{type:"number",label:Object(i.__)("Column Count"),value:d,onChange:this.onChangeInitialColumnCount,min:"1"}),Object(r.createElement)(l.TextControl,{type:"number",label:Object(i.__)("Row Count"),value:b,onChange:this.onChangeInitialRowCount,min:"1"}),Object(r.createElement)(l.Button,{isPrimary:!0,type:"submit"},Object(i.__)("Create")));var v=a()(n,o.class,{"has-fixed-layout":m,"has-background":!!o.color});return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(s.BlockControls,null,Object(r.createElement)(l.Toolbar,null,Object(r.createElement)(l.DropdownMenu,{icon:"editor-table",label:Object(i.__)("Edit table"),controls:this.getTableControls()}))),Object(r.createElement)(s.InspectorControls,null,Object(r.createElement)(l.PanelBody,{title:Object(i.__)("Table Settings"),className:"blocks-table-settings"},Object(r.createElement)(l.ToggleControl,{label:Object(i.__)("Fixed width table cells"),checked:!!m,onChange:this.onChangeFixedLayout})),Object(r.createElement)(s.PanelColorSettings,{title:Object(i.__)("Color Settings"),initialOpen:!1,colorSettings:[{value:o.color,onChange:c,label:Object(i.__)("Background Color"),disableCustomColors:!0,colors:y}]})),Object(r.createElement)("table",{className:v},Object(r.createElement)(O,{type:"head",rows:h}),Object(r.createElement)(O,{type:"body",rows:p}),Object(r.createElement)(O,{type:"foot",rows:g})))}}]),t}(r.Component),k=w("backgroundColor")(_),E={tr:{allowEmpty:!0,children:{th:{allowEmpty:!0,children:Object(c.getPhrasingContentSchema)()},td:{allowEmpty:!0,children:Object(c.getPhrasingContentSchema)()}}}},C={table:{children:{thead:{allowEmpty:!0,children:E},tfoot:{allowEmpty:!0,children:E},tbody:{allowEmpty:!0,children:E}}}};function S(e){return{type:"array",default:[],source:"query",selector:"t".concat(e," tr"),query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"}}}}}}var x="core/table",T={title:Object(i.__)("Table"),description:Object(i.__)("Insert a table — perfect for sharing charts and data."),icon:Object(r.createElement)(l.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(l.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)(l.G,null,Object(r.createElement)(l.Path,{d:"M20 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 2v3H5V5h15zm-5 14h-5v-9h5v9zM5 10h3v9H5v-9zm12 9v-9h3v9h-3z"}))),category:"formatting",attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},head:S("head"),body:S("body"),foot:S("foot")},styles:[{name:"regular",label:Object(i._x)("Default","block style"),isDefault:!0},{name:"stripes",label:Object(i.__)("Stripes")}],supports:{align:!0},transforms:{from:[{type:"raw",selector:"table",schema:C}]},edit:k,save:function(e){var t=e.attributes,n=t.hasFixedLayout,o=t.head,i=t.body,c=t.foot,l=t.backgroundColor;if(!o.length&&!i.length&&!c.length)return null;var u=Object(s.getColorClassName)("background-color",l),b=a()(u,{"has-fixed-layout":n,"has-background":!!u}),d=function(e){var t=e.type,n=e.rows;if(!n.length)return null;var o="t".concat(t);return Object(r.createElement)(o,null,n.map((function(e,t){var n=e.cells;return Object(r.createElement)("tr",{key:t},n.map((function(e,t){var n=e.content,o=e.tag;return Object(r.createElement)(s.RichText.Content,{tagName:o,value:n,key:t})})))})))};return Object(r.createElement)("table",{className:b},Object(r.createElement)(d,{type:"head",rows:o}),Object(r.createElement)(d,{type:"body",rows:i}),Object(r.createElement)(d,{type:"foot",rows:c}))}}},foSv:function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return r}))},h1Oh:function(e,t,n){"use strict";n.r(t),n.d(t,"name",(function(){return l})),n.d(t,"settings",(function(){return s}));var r=n("GRId"),o=n("l3Sj"),a=n("tI+e"),i=n("axFQ"),c=n("jSdM");var l="core/archives",s={title:Object(o.__)("Archives"),description:Object(o.__)("Display a monthly archive of your posts."),icon:Object(r.createElement)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(a.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)(a.G,null,Object(r.createElement)(a.Path,{d:"M7 11h2v2H7v-2zm14-5v14c0 1.1-.9 2-2 2H5c-1.11 0-2-.9-2-2l.01-14c0-1.1.88-2 1.99-2h1V2h2v2h8V2h2v2h1c1.1 0 2 .9 2 2zM5 8h14V6H5v2zm14 12V10H5v10h14zm-4-7h2v-2h-2v2zm-4 0h2v-2h-2v2z"}))),category:"widgets",supports:{html:!1},getEditWrapperProps:function(e){var t=e.align;if(["left","center","right"].includes(t))return{"data-align":t}},edit:function(e){var t=e.attributes,n=e.setAttributes,l=t.align,s=t.showPostCounts,u=t.displayAsDropdown;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(i.InspectorControls,null,Object(r.createElement)(a.PanelBody,{title:Object(o.__)("Archives Settings")},Object(r.createElement)(a.ToggleControl,{label:Object(o.__)("Display as Dropdown"),checked:u,onChange:function(){return n({displayAsDropdown:!u})}}),Object(r.createElement)(a.ToggleControl,{label:Object(o.__)("Show Post Counts"),checked:s,onChange:function(){return n({showPostCounts:!s})}}))),Object(r.createElement)(i.BlockControls,null,Object(r.createElement)(i.BlockAlignmentToolbar,{value:l,onChange:function(e){n({align:e})},controls:["left","center","right"]})),Object(r.createElement)(a.Disabled,null,Object(r.createElement)(c.ServerSideRender,{block:"core/archives",attributes:t})))},save:function(){return null}}},hJeJ:function(e,t,n){"use strict";n.r(t),n.d(t,"name",(function(){return x})),n.d(t,"settings",(function(){return T}));var r=n("rePB"),o=n("vpQ4"),a=n("GRId"),i=n("TSYQ"),c=n.n(i),l=n("YLtl"),s=n("l3Sj"),u=n("axFQ"),b=n("HSyU"),d=n("tI+e"),m=n("wx14"),h=n("1OyB"),p=n("vuIU"),g=n("md7G"),f=n("foSv"),O=n("Ji7U"),v=n("JX7q"),j=n("K9lf"),y=n("1ZqX"),w=window.getComputedStyle,_=Object(d.withFallbackStyles)((function(e,t){var n=t.attributes,r=n.textColor,o=n.backgroundColor,a=n.fontSize,i=n.customFontSize,c=e.querySelector('[contenteditable="true"]'),l=c?w(c):null;return{fallbackBackgroundColor:o||!l?void 0:l.backgroundColor,fallbackTextColor:r||!l?void 0:l.color,fallbackFontSize:a||i||!l?void 0:parseInt(l.fontSize)||void 0}})),k=function(e){function t(){var e;return Object(h.a)(this,t),(e=Object(g.a)(this,Object(f.a)(t).apply(this,arguments))).onReplace=e.onReplace.bind(Object(v.a)(Object(v.a)(e))),e.toggleDropCap=e.toggleDropCap.bind(Object(v.a)(Object(v.a)(e))),e.splitBlock=e.splitBlock.bind(Object(v.a)(Object(v.a)(e))),e}return Object(O.a)(t,e),Object(p.a)(t,[{key:"onReplace",value:function(e){var t=this.props,n=t.attributes,r=t.onReplace;r(e.map((function(e,t){return 0===t&&"core/paragraph"===e.name?Object(o.a)({},e,{attributes:Object(o.a)({},n,e.attributes)}):e})))}},{key:"toggleDropCap",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({dropCap:!t.dropCap})}},{key:"getDropCapHelp",value:function(e){return e?Object(s.__)("Showing large initial letter."):Object(s.__)("Toggle to show a large initial letter.")}},{key:"splitBlock",value:function(e,t){for(var n=this.props,r=n.attributes,o=n.insertBlocksAfter,a=n.setAttributes,i=n.onReplace,c=arguments.length,l=new Array(c>2?c-2:0),s=2;s<c;s++)l[s-2]=arguments[s];null!==t&&l.push(Object(b.createBlock)("core/paragraph",{content:t})),l.length&&o&&o(l);var u=r.content;null===e?i([]):u!==e&&a({content:e})}},{key:"render",value:function(){var e,t=this.props,n=t.attributes,o=t.setAttributes,i=t.mergeBlocks,l=t.onReplace,b=t.className,h=t.backgroundColor,p=t.textColor,g=t.setBackgroundColor,f=t.setTextColor,O=t.fallbackBackgroundColor,v=t.fallbackTextColor,j=t.fallbackFontSize,y=t.fontSize,w=t.setFontSize,_=t.isRTL,k=n.align,E=n.content,C=n.dropCap,S=n.placeholder,x=n.direction;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(u.BlockControls,null,Object(a.createElement)(u.AlignmentToolbar,{value:k,onChange:function(e){o({align:e})}}),_&&Object(a.createElement)(d.Toolbar,{controls:[{icon:"editor-ltr",title:Object(s._x)("Left to right","editor button"),isActive:"ltr"===x,onClick:function(){o({direction:"ltr"===x?void 0:"ltr"})}}]})),Object(a.createElement)(u.InspectorControls,null,Object(a.createElement)(d.PanelBody,{title:Object(s.__)("Text Settings"),className:"blocks-font-size"},Object(a.createElement)(u.FontSizePicker,{fallbackFontSize:j,value:y.size,onChange:w}),Object(a.createElement)(d.ToggleControl,{label:Object(s.__)("Drop Cap"),checked:!!C,onChange:this.toggleDropCap,help:this.getDropCapHelp})),Object(a.createElement)(u.PanelColorSettings,{title:Object(s.__)("Color Settings"),initialOpen:!1,colorSettings:[{value:h.color,onChange:g,label:Object(s.__)("Background Color")},{value:p.color,onChange:f,label:Object(s.__)("Text Color")}]},Object(a.createElement)(u.ContrastChecker,Object(m.a)({textColor:p.color,backgroundColor:h.color,fallbackTextColor:v,fallbackBackgroundColor:O},{fontSize:y.size})))),Object(a.createElement)(u.RichText,{identifier:"content",tagName:"p",className:c()("wp-block-paragraph",b,(e={"has-text-color":p.color,"has-background":h.color,"has-drop-cap":C},Object(r.a)(e,h.class,h.class),Object(r.a)(e,p.class,p.class),Object(r.a)(e,y.class,y.class),e)),style:{backgroundColor:h.color,color:p.color,fontSize:y.size?y.size+"px":void 0,textAlign:k,direction:x},value:E,onChange:function(e){o({content:e})},unstableOnSplit:this.splitBlock,onMerge:i,onReplace:this.onReplace,onRemove:function(){return l([])},"aria-label":E?Object(s.__)("Paragraph block"):Object(s.__)("Empty block; start writing or type forward slash to choose a block"),placeholder:S||Object(s.__)("Start writing or type / to choose a block")}))}}]),t}(a.Component),E=Object(j.compose)([Object(u.withColors)("backgroundColor",{textColor:"color"}),Object(u.withFontSizes)("fontSize"),_,Object(y.withSelect)((function(e){return{isRTL:(0,e("core/block-editor").getSettings)().isRTL}}))])(k),C={className:!1},S={content:{type:"string",source:"html",selector:"p",default:""},align:{type:"string"},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"]}},x="core/paragraph",T={title:Object(s.__)("Paragraph"),description:Object(s.__)("Start with the building block of all narrative."),icon:Object(a.createElement)(d.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)(d.Path,{d:"M11 5v7H9.5C7.6 12 6 10.4 6 8.5S7.6 5 9.5 5H11m8-2H9.5C6.5 3 4 5.5 4 8.5S6.5 14 9.5 14H11v7h2V5h2v16h2V5h2V3z"})),category:"common",keywords:[Object(s.__)("text")],supports:C,attributes:S,transforms:{from:[{type:"raw",priority:20,selector:"p",schema:{p:{children:Object(b.getPhrasingContentSchema)()}}}]},deprecated:[{supports:C,attributes:Object(o.a)({},S,{width:{type:"string"}}),save:function(e){var t,n=e.attributes,o=n.width,i=n.align,l=n.content,s=n.dropCap,b=n.backgroundColor,d=n.textColor,m=n.customBackgroundColor,h=n.customTextColor,p=n.fontSize,g=n.customFontSize,f=Object(u.getColorClassName)("color",d),O=Object(u.getColorClassName)("background-color",b),v=p&&"is-".concat(p,"-text"),j=c()((t={},Object(r.a)(t,"align".concat(o),o),Object(r.a)(t,"has-background",b||m),Object(r.a)(t,"has-drop-cap",s),Object(r.a)(t,v,v),Object(r.a)(t,f,f),Object(r.a)(t,O,O),t)),y={backgroundColor:O?void 0:m,color:f?void 0:h,fontSize:v?void 0:g,textAlign:i};return Object(a.createElement)(u.RichText.Content,{tagName:"p",style:y,className:j||void 0,value:l})}},{supports:C,attributes:Object(l.omit)(Object(o.a)({},S,{fontSize:{type:"number"}}),"customFontSize","customTextColor","customBackgroundColor"),save:function(e){var t,n=e.attributes,o=n.width,i=n.align,l=n.content,s=n.dropCap,u=n.backgroundColor,b=n.textColor,d=n.fontSize,m=c()((t={},Object(r.a)(t,"align".concat(o),o),Object(r.a)(t,"has-background",u),Object(r.a)(t,"has-drop-cap",s),t)),h={backgroundColor:u,color:b,fontSize:d,textAlign:i};return Object(a.createElement)("p",{style:h,className:m||void 0},l)},migrate:function(e){return Object(l.omit)(Object(o.a)({},e,{customFontSize:Object(l.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:C,attributes:Object(o.a)({},S,{content:{type:"string",source:"html",default:""}}),save:function(e){var t=e.attributes;return Object(a.createElement)(a.RawHTML,null,t.content)},migrate:function(e){return e}}],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:E,save:function(e){var t,n=e.attributes,o=n.align,i=n.content,l=n.dropCap,s=n.backgroundColor,b=n.textColor,d=n.customBackgroundColor,m=n.customTextColor,h=n.fontSize,p=n.customFontSize,g=n.direction,f=Object(u.getColorClassName)("color",b),O=Object(u.getColorClassName)("background-color",s),v=Object(u.getFontSizeClass)(h),j=c()((t={"has-text-color":b||m,"has-background":s||d,"has-drop-cap":l},Object(r.a)(t,v,v),Object(r.a)(t,f,f),Object(r.a)(t,O,O),t)),y={backgroundColor:O?void 0:d,color:f?void 0:m,fontSize:v?void 0:p,textAlign:o};return Object(a.createElement)(u.RichText.Content,{tagName:"p",style:y,className:j||void 0,value:i,dir:g})}}},hl1S:function(e,t,n){"use strict";n.r(t),n.d(t,"name",(function(){return g})),n.d(t,"settings",(function(){return f}));var r,o=n("vpQ4"),a=n("Ff2n"),i=n("KQm4"),c=n("rePB"),l=n("GRId"),s=n("YLtl"),u=n("l3Sj"),b=n("HSyU"),d=n("axFQ"),m=n("qRz9"),h=n("tI+e"),p=(r={},Object(c.a)(r,"value",{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""}),Object(c.a)(r,"citation",{type:"string",source:"html",selector:"cite",default:""}),Object(c.a)(r,"align",{type:"string"}),r),g="core/quote",f={title:Object(u.__)("Quote"),description:Object(u.__)('Give quoted text visual emphasis. "In quoting others, we cite ourselves." — Julio Cortázar'),icon:Object(l.createElement)(h.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)(h.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(l.createElement)(h.Path,{d:"M18.62 18h-5.24l2-4H13V6h8v7.24L18.62 18zm-2-2h.76L19 12.76V8h-4v4h3.62l-2 4zm-8 2H3.38l2-4H3V6h8v7.24L8.62 18zm-2-2h.76L9 12.76V8H5v4h3.62l-2 4z"})),category:"common",keywords:[Object(u.__)("blockquote")],attributes:p,styles:[{name:"default",label:Object(u._x)("Default","block style"),isDefault:!0},{name:"large",label:Object(u._x)("Large","block style")}],transforms:{from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:function(e){return Object(b.createBlock)("core/quote",{value:Object(m.toHTMLString)({value:Object(m.join)(e.map((function(e){var t=e.content;return Object(m.create)({html:t})})),"\u2028"),multilineTag:"p"})})}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content;return Object(b.createBlock)("core/quote",{value:"<p>".concat(t,"</p>")})}},{type:"block",blocks:["core/pullquote"],transform:function(e){var t=e.value,n=e.citation;return Object(b.createBlock)("core/quote",{value:t,citation:n})}},{type:"prefix",prefix:">",transform:function(e){return Object(b.createBlock)("core/quote",{value:"<p>".concat(e,"</p>")})}},{type:"raw",isMatch:function(e){var t,n=(t=!1,function(e){return"P"===e.nodeName||(t||"CITE"!==e.nodeName?void 0:(t=!0,!0))});return"BLOCKQUOTE"===e.nodeName&&Array.from(e.childNodes).every(n)},schema:{blockquote:{children:{p:{children:Object(b.getPhrasingContentSchema)()},cite:{children:Object(b.getPhrasingContentSchema)()}}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.value,n=e.citation,r=[];return t&&"<p></p>"!==t&&r.push.apply(r,Object(i.a)(Object(m.split)(Object(m.create)({html:t,multilineTag:"p"}),"\u2028").map((function(e){return Object(b.createBlock)("core/paragraph",{content:Object(m.toHTMLString)({value:e})})})))),n&&"<p></p>"!==n&&r.push(Object(b.createBlock)("core/paragraph",{content:n})),0===r.length?Object(b.createBlock)("core/paragraph",{content:""}):r}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.value,n=e.citation,r=Object(a.a)(e,["value","citation"]);if("<p></p>"===t)return Object(b.createBlock)("core/heading",{content:n});var i=Object(m.split)(Object(m.create)({html:t,multilineTag:"p"}),"\u2028"),c=Object(b.createBlock)("core/heading",{content:Object(m.toHTMLString)({value:i[0]})});if(!n&&1===i.length)return c;var l=i.slice(1);return[c,Object(b.createBlock)("core/quote",Object(o.a)({},r,{citation:n,value:Object(m.toHTMLString)({value:l.length?Object(m.join)(i.slice(1),"\u2028"):Object(m.create)(),multilineTag:"p"})}))]}},{type:"block",blocks:["core/pullquote"],transform:function(e){var t=e.value,n=e.citation;return Object(b.createBlock)("core/pullquote",{value:t,citation:n})}}]},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.isSelected,o=e.mergeBlocks,a=e.onReplace,i=e.className,c=t.align,s=t.value,b=t.citation;return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(d.BlockControls,null,Object(l.createElement)(d.AlignmentToolbar,{value:c,onChange:function(e){n({align:e})}})),Object(l.createElement)("blockquote",{className:i,style:{textAlign:c}},Object(l.createElement)(d.RichText,{identifier:"value",multiline:!0,value:s,onChange:function(e){return n({value:e})},onMerge:o,onRemove:function(e){var t=!b||0===b.length;!e&&t&&a([])},placeholder:Object(u.__)("Write quote…")}),(!d.RichText.isEmpty(b)||r)&&Object(l.createElement)(d.RichText,{identifier:"citation",value:b,onChange:function(e){return n({citation:e})},placeholder:Object(u.__)("Write citation…"),className:"wp-block-quote__citation"})))},save:function(e){var t=e.attributes,n=t.align,r=t.value,o=t.citation;return Object(l.createElement)("blockquote",{style:{textAlign:n||null}},Object(l.createElement)(d.RichText.Content,{multiline:!0,value:r}),!d.RichText.isEmpty(o)&&Object(l.createElement)(d.RichText.Content,{tagName:"cite",value:o}))},merge:function(e,t){var n=t.value,r=t.citation;return n&&"<p></p>"!==n?Object(o.a)({},e,{value:e.value+n,citation:e.citation+r}):Object(o.a)({},e,{citation:e.citation+r})},deprecated:[{attributes:Object(o.a)({},p,{style:{type:"number",default:1}}),migrate:function(e){return 2===e.style?Object(o.a)({},Object(s.omit)(e,["style"]),{className:e.className?e.className+" is-style-large":"is-style-large"}):e},save:function(e){var t=e.attributes,n=t.align,r=t.value,o=t.citation,a=t.style;return Object(l.createElement)("blockquote",{className:2===a?"is-large":"",style:{textAlign:n||null}},Object(l.createElement)(d.RichText.Content,{multiline:!0,value:r}),!d.RichText.isEmpty(o)&&Object(l.createElement)(d.RichText.Content,{tagName:"cite",value:o}))}},{attributes:Object(o.a)({},p,{citation:{type:"string",source:"html",selector:"footer",default:""},style:{type:"number",default:1}}),save:function(e){var t=e.attributes,n=t.align,r=t.value,o=t.citation,a=t.style;return Object(l.createElement)("blockquote",{className:"blocks-quote-style-".concat(a),style:{textAlign:n||null}},Object(l.createElement)(d.RichText.Content,{multiline:!0,value:r}),!d.RichText.isEmpty(o)&&Object(l.createElement)(d.RichText.Content,{tagName:"footer",value:o}))}}]}},jSdM:function(e,t){!function(){e.exports=this.wp.editor}()},jZUy:function(e,t){!function(){e.exports=this.wp.coreData}()},kd2E:function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,a){t=t||"&",n=n||"=";var i={};if("string"!=typeof e||0===e.length)return i;var c=/\+/g;e=e.split(t);var l=1e3;a&&"number"==typeof a.maxKeys&&(l=a.maxKeys);var s=e.length;l>0&&s>l&&(s=l);for(var u=0;u<s;++u){var b,d,m,h,p=e[u].replace(c,"%20"),g=p.indexOf(n);g>=0?(b=p.substr(0,g),d=p.substr(g+1)):(b=p,d=""),m=decodeURIComponent(b),h=decodeURIComponent(d),r(i,m)?o(i[m])?i[m].push(h):i[m]=[i[m],h]:i[m]=h}return i};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},l3Sj:function(e,t){!function(){e.exports=this.wp.i18n}()},lA3c:function(e,t,n){"use strict";n.r(t),n.d(t,"name",(function(){return l})),n.d(t,"settings",(function(){return s}));var r=n("GRId"),o=n("l3Sj"),a=n("HSyU"),i=n("tI+e"),c=n("axFQ");var l="core/code",s={title:Object(o.__)("Code"),description:Object(o.__)("Display code snippets that respect your spacing and tabs."),icon:Object(r.createElement)(i.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(i.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(r.createElement)(i.Path,{d:"M9.4,16.6L4.8,12l4.6-4.6L8,6l-6,6l6,6L9.4,16.6z M14.6,16.6l4.6-4.6l-4.6-4.6L16,6l6,6l-6,6L14.6,16.6z"})),category:"formatting",attributes:{content:{type:"string",source:"text",selector:"code"}},supports:{html:!1},transforms:{from:[{type:"enter",regExp:/^```$/,transform:function(){return Object(a.createBlock)("core/code")}},{type:"raw",isMatch:function(e){return"PRE"===e.nodeName&&1===e.children.length&&"CODE"===e.firstChild.nodeName},schema:{pre:{children:{code:{children:{"#text":{}}}}}}}]},edit:function(e){var t=e.attributes,n=e.setAttributes,a=e.className;return Object(r.createElement)("div",{className:a},Object(r.createElement)(c.PlainText,{value:t.content,onChange:function(e){return n({content:e})},placeholder:Object(o.__)("Write code…"),"aria-label":Object(o.__)("Code")}))},save:function(e){var t=e.attributes;return Object(r.createElement)("pre",null,Object(r.createElement)("code",null,t.content))}}},mK5E:function(e,t,n){"use strict";n.r(t),n.d(t,"name",(function(){return S})),n.d(t,"settings",(function(){return x}));var r=n("GRId"),o=n("YLtl"),a=n("l3Sj"),i=n("xTGt"),c=n("HSyU"),l=n("1ZqX"),s=n("axFQ"),u=n("wx14"),b=n("ODXe"),d=n("1OyB"),m=n("vuIU"),h=n("md7G"),p=n("foSv"),g=n("Ji7U"),f=n("JX7q"),O=n("TSYQ"),v=n.n(O),j=n("tI+e"),y=n("K9lf"),w=n("jSdM"),_=Object(r.createElement)(j.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(j.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)(j.Path,{d:"M9.17 6l2 2H20v10H4V6h5.17M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"}));function k(e){var t=e.hrefs,n=e.openInNewWindow,o=e.showDownloadButton,i=e.changeLinkDestinationOption,c=e.changeOpenInNewWindow,l=e.changeShowDownloadButton,u=t.href,b=t.textLinkHref,d=t.attachmentPage,m=[{value:u,label:Object(a.__)("URL")}];return d&&(m=[{value:u,label:Object(a.__)("Media File")},{value:d,label:Object(a.__)("Attachment Page")}]),Object(r.createElement)(r.Fragment,null,Object(r.createElement)(s.InspectorControls,null,Object(r.createElement)(j.PanelBody,{title:Object(a.__)("Text Link Settings")},Object(r.createElement)(j.SelectControl,{label:Object(a.__)("Link To"),value:b,options:m,onChange:i}),Object(r.createElement)(j.ToggleControl,{label:Object(a.__)("Open in New Tab"),checked:n,onChange:c})),Object(r.createElement)(j.PanelBody,{title:Object(a.__)("Download Button Settings")},Object(r.createElement)(j.ToggleControl,{label:Object(a.__)("Show Download Button"),checked:o,onChange:l}))))}var E=function(e){function t(){var e;return Object(d.a)(this,t),(e=Object(h.a)(this,Object(p.a)(t).apply(this,arguments))).onSelectFile=e.onSelectFile.bind(Object(f.a)(Object(f.a)(e))),e.confirmCopyURL=e.confirmCopyURL.bind(Object(f.a)(Object(f.a)(e))),e.resetCopyConfirmation=e.resetCopyConfirmation.bind(Object(f.a)(Object(f.a)(e))),e.changeLinkDestinationOption=e.changeLinkDestinationOption.bind(Object(f.a)(Object(f.a)(e))),e.changeOpenInNewWindow=e.changeOpenInNewWindow.bind(Object(f.a)(Object(f.a)(e))),e.changeShowDownloadButton=e.changeShowDownloadButton.bind(Object(f.a)(Object(f.a)(e))),e.state={hasError:!1,showCopyConfirmation:!1},e}return Object(g.a)(t,e),Object(m.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.noticeOperations,o=n.href;if(Object(i.isBlobURL)(o)){var a=Object(i.getBlobByURL)(o);Object(w.mediaUpload)({filesList:[a],onFileChange:function(t){var n=Object(b.a)(t,1)[0];return e.onSelectFile(n)},onError:function(t){e.setState({hasError:!0}),r.createErrorNotice(t)}}),Object(i.revokeBlobURL)(o)}}},{key:"componentDidUpdate",value:function(e){e.isSelected&&!this.props.isSelected&&this.setState({showCopyConfirmation:!1})}},{key:"onSelectFile",value:function(e){e&&e.url&&(this.setState({hasError:!1}),this.props.setAttributes({href:e.url,fileName:e.title,textLinkHref:e.url,id:e.id}))}},{key:"confirmCopyURL",value:function(){this.setState({showCopyConfirmation:!0})}},{key:"resetCopyConfirmation",value:function(){this.setState({showCopyConfirmation:!1})}},{key:"changeLinkDestinationOption",value:function(e){this.props.setAttributes({textLinkHref:e})}},{key:"changeOpenInNewWindow",value:function(e){this.props.setAttributes({textLinkTarget:!!e&&"_blank"})}},{key:"changeShowDownloadButton",value:function(e){this.props.setAttributes({showDownloadButton:e})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.isSelected,o=e.attributes,c=e.setAttributes,l=e.noticeUI,b=e.noticeOperations,d=e.media,m=o.fileName,h=o.href,p=o.textLinkHref,g=o.textLinkTarget,f=o.showDownloadButton,O=o.downloadButtonText,y=o.id,w=this.state,E=w.hasError,C=w.showCopyConfirmation,S=d&&d.link;if(!h||E)return Object(r.createElement)(s.MediaPlaceholder,{icon:Object(r.createElement)(s.BlockIcon,{icon:_}),labels:{title:Object(a.__)("File"),instructions:Object(a.__)("Drag a file, upload a new one or select a file from your library.")},onSelect:this.onSelectFile,notices:l,onError:b.createErrorNotice,accept:"*"});var x=v()(t,{"is-transient":Object(i.isBlobURL)(h)});return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(k,Object(u.a)({hrefs:{href:h,textLinkHref:p,attachmentPage:S}},{openInNewWindow:!!g,showDownloadButton:f,changeLinkDestinationOption:this.changeLinkDestinationOption,changeOpenInNewWindow:this.changeOpenInNewWindow,changeShowDownloadButton:this.changeShowDownloadButton})),Object(r.createElement)(s.BlockControls,null,Object(r.createElement)(s.MediaUploadCheck,null,Object(r.createElement)(j.Toolbar,null,Object(r.createElement)(s.MediaUpload,{onSelect:this.onSelectFile,value:y,render:function(e){var t=e.open;return Object(r.createElement)(j.IconButton,{className:"components-toolbar__control",label:Object(a.__)("Edit file"),onClick:t,icon:"edit"})}})))),Object(r.createElement)("div",{className:x},Object(r.createElement)("div",{className:"wp-block-file__content-wrapper"},Object(r.createElement)(s.RichText,{wrapperClassName:"wp-block-file__textlink",tagName:"div",value:m,placeholder:Object(a.__)("Write file name…"),keepPlaceholderOnFocus:!0,formattingControls:[],onChange:function(e){return c({fileName:e})}}),f&&Object(r.createElement)("div",{className:"wp-block-file__button-richtext-wrapper"},Object(r.createElement)(s.RichText,{tagName:"div",className:"wp-block-file__button",value:O,formattingControls:[],placeholder:Object(a.__)("Add text…"),keepPlaceholderOnFocus:!0,onChange:function(e){return c({downloadButtonText:e})}}))),n&&Object(r.createElement)(j.ClipboardButton,{isDefault:!0,text:h,className:"wp-block-file__copy-url-button",onCopy:this.confirmCopyURL,onFinishCopy:this.resetCopyConfirmation,disabled:Object(i.isBlobURL)(h)},C?Object(a.__)("Copied!"):Object(a.__)("Copy URL"))))}}]),t}(r.Component),C=Object(y.compose)([Object(l.withSelect)((function(e,t){var n=e("core").getMedia,r=t.attributes.id;return{media:void 0===r?void 0:n(r)}})),j.withNotices])(E),S="core/file",x={title:Object(a.__)("File"),description:Object(a.__)("Add a link to a downloadable file."),icon:_,category:"common",keywords:[Object(a.__)("document"),Object(a.__)("pdf")],attributes:{id:{type:"number"},href:{type:"string"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]",default:Object(a._x)("Download","button label")}},supports:{align:!0},transforms:{from:[{type:"files",isMatch:function(e){return e.length>0},priority:15,transform:function(e){var t=[];return e.forEach((function(e){var n=Object(i.createBlobURL)(e);t.push(Object(c.createBlock)("core/file",{href:n,fileName:e.name,textLinkHref:n}))})),t}},{type:"block",blocks:["core/audio"],transform:function(e){return Object(c.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(c.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(c.createBlock)("core/file",{href:e.url,fileName:e.caption,textLinkHref:e.url,id:e.id})}}],to:[{type:"block",blocks:["core/audio"],isMatch:function(e){var t=e.id;if(!t)return!1;var n=(0,Object(l.select)("core").getMedia)(t);return!!n&&Object(o.includes)(n.mime_type,"audio")},transform:function(e){return Object(c.createBlock)("core/audio",{src:e.href,caption:e.fileName,id:e.id})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.id;if(!t)return!1;var n=(0,Object(l.select)("core").getMedia)(t);return!!n&&Object(o.includes)(n.mime_type,"video")},transform:function(e){return Object(c.createBlock)("core/video",{src:e.href,caption:e.fileName,id:e.id})}},{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.id;if(!t)return!1;var n=(0,Object(l.select)("core").getMedia)(t);return!!n&&Object(o.includes)(n.mime_type,"image")},transform:function(e){return Object(c.createBlock)("core/image",{url:e.href,caption:e.fileName,id:e.id})}}]},edit:C,save:function(e){var t=e.attributes,n=t.href,o=t.fileName,a=t.textLinkHref,i=t.textLinkTarget,c=t.showDownloadButton,l=t.downloadButtonText;return n&&Object(r.createElement)("div",null,!s.RichText.isEmpty(o)&&Object(r.createElement)("a",{href:a,target:i,rel:!!i&&"noreferrer noopener"},Object(r.createElement)(s.RichText.Content,{value:o})),c&&Object(r.createElement)("a",{href:n,className:"wp-block-file__button",download:!0},Object(r.createElement)(s.RichText.Content,{value:l})))}}},mTvW:function(e,t,n){"use strict";n.r(t),n.d(t,"name",(function(){return g})),n.d(t,"settings",(function(){return f}));var r=n("GRId"),o=n("tI+e"),a=n("l3Sj"),i=n("rePB"),c=n("1OyB"),l=n("vuIU"),s=n("md7G"),u=n("foSv"),b=n("Ji7U"),d=n("JX7q"),m=n("axFQ"),h=n("jSdM"),p=function(e){function t(){var e;return Object(c.a)(this,t),(e=Object(s.a)(this,Object(u.a)(t).apply(this,arguments))).setCommentsToShow=e.setCommentsToShow.bind(Object(d.a)(Object(d.a)(e))),e.toggleDisplayAvatar=e.createToggleAttribute("displayAvatar"),e.toggleDisplayDate=e.createToggleAttribute("displayDate"),e.toggleDisplayExcerpt=e.createToggleAttribute("displayExcerpt"),e}return Object(b.a)(t,e),Object(l.a)(t,[{key:"createToggleAttribute",value:function(e){var t=this;return function(){var n=t.props.attributes[e];(0,t.props.setAttributes)(Object(i.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,i=e.displayDate,c=e.displayExcerpt;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(m.InspectorControls,null,Object(r.createElement)(o.PanelBody,{title:Object(a.__)("Latest Comments Settings")},Object(r.createElement)(o.ToggleControl,{label:Object(a.__)("Display Avatar"),checked:n,onChange:this.toggleDisplayAvatar}),Object(r.createElement)(o.ToggleControl,{label:Object(a.__)("Display Date"),checked:i,onChange:this.toggleDisplayDate}),Object(r.createElement)(o.ToggleControl,{label:Object(a.__)("Display Excerpt"),checked:c,onChange:this.toggleDisplayExcerpt}),Object(r.createElement)(o.RangeControl,{label:Object(a.__)("Number of Comments"),value:t,onChange:this.setCommentsToShow,min:1,max:100,required:!0}))),Object(r.createElement)(o.Disabled,null,Object(r.createElement)(h.ServerSideRender,{block:"core/latest-comments",attributes:this.props.attributes})))}}]),t}(r.Component),g="core/latest-comments",f={title:Object(a.__)("Latest Comments"),description:Object(a.__)("Display a list of your most recent comments."),icon:Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)(o.G,null,Object(r.createElement)(o.Path,{d:"M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18zM20 4v13.17L18.83 16H4V4h16zM6 12h12v2H6zm0-3h12v2H6zm0-3h12v2H6z"}))),category:"widgets",keywords:[Object(a.__)("recent comments")],supports:{align:!0,html:!1},edit:p,save:function(){return null}}},md7G:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("U8pU"),o=n("JX7q");function a(e,t){return!t||"object"!==Object(r.a)(t)&&"function"!=typeof t?Object(o.a)(e):t}},nAq4:function(e,t,n){"use strict";n.r(t),n.d(t,"name",(function(){return l})),n.d(t,"settings",(function(){return s}));var r=n("GRId"),o=n("l3Sj"),a=n("HSyU"),i=n("axFQ"),c=n("tI+e"),l="core/preformatted",s={title:Object(o.__)("Preformatted"),description:Object(o.__)("Add text that respects your spacing and tabs, and also allows styling."),icon:Object(r.createElement)(c.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(c.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(r.createElement)(c.Path,{d:"M20,4H4C2.9,4,2,4.9,2,6v12c0,1.1,0.9,2,2,2h16c1.1,0,2-0.9,2-2V6C22,4.9,21.1,4,20,4z M20,18H4V6h16V18z"}),Object(r.createElement)(c.Rect,{x:"6",y:"10",width:"2",height:"2"}),Object(r.createElement)(c.Rect,{x:"6",y:"14",width:"8",height:"2"}),Object(r.createElement)(c.Rect,{x:"16",y:"14",width:"2",height:"2"}),Object(r.createElement)(c.Rect,{x:"10",y:"10",width:"8",height:"2"})),category:"formatting",attributes:{content:{type:"string",source:"html",selector:"pre",default:""}},transforms:{from:[{type:"block",blocks:["core/code","core/paragraph"],transform:function(e){var t=e.content;return Object(a.createBlock)("core/preformatted",{content:t})}},{type:"raw",isMatch:function(e){return"PRE"===e.nodeName&&!(1===e.children.length&&"CODE"===e.firstChild.nodeName)},schema:{pre:{children:Object(a.getPhrasingContentSchema)()}}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(a.createBlock)("core/paragraph",e)}}]},edit:function(e){var t=e.attributes,n=e.mergeBlocks,a=e.setAttributes,c=e.className,l=t.content;return Object(r.createElement)(i.RichText,{tagName:"pre",value:l.replace(/\n/g,"<br>"),onChange:function(e){a({content:e.replace(/<br ?\/?>/g,"\n")})},placeholder:Object(o.__)("Write preformatted text…"),wrapperClassName:c,onMerge:n})},save:function(e){var t=e.attributes.content;return Object(r.createElement)(i.RichText.Content,{tagName:"pre",value:t})},merge:function(e,t){return{content:e.content+t.content}}}},nwuf:function(e,t,n){"use strict";n.r(t),n.d(t,"name",(function(){return L})),n.d(t,"stripFirstImage",(function(){return F})),n.d(t,"settings",(function(){return D}));var r=n("wx14"),o=n("rePB"),a=n("vpQ4"),i=n("GRId"),c=n("TSYQ"),l=n.n(c),s=n("xTGt"),u=n("HSyU"),b=n("axFQ"),d=n("l3Sj"),m=n("ODXe"),h=n("1OyB"),p=n("vuIU"),g=n("md7G"),f=n("foSv"),O=n("Ji7U"),v=n("JX7q"),j=n("YLtl"),y=n("tI+e"),w=n("K9lf"),_=n("1ZqX"),k=n("jSdM"),E=n("Mmq9"),C=n("KEfo"),S=n("a75g"),x=Object(i.createElement)(y.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(i.createElement)(y.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(i.createElement)(y.Path,{d:"m19 5v14h-14v-14h14m0-2h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2z"}),Object(i.createElement)(y.Path,{d:"m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z"}));var T=function(e){function t(){var e;return Object(h.a)(this,t),(e=Object(g.a)(this,Object(f.a)(t).apply(this,arguments))).state={width:void 0,height:void 0},e.bindContainer=e.bindContainer.bind(Object(v.a)(Object(v.a)(e))),e.calculateSize=e.calculateSize.bind(Object(v.a)(Object(v.a)(e))),e}return Object(O.a)(t,e),Object(p.a)(t,[{key:"bindContainer",value:function(e){this.container=e}},{key:"componentDidUpdate",value:function(e){this.props.src!==e.src&&(this.setState({width:void 0,height:void 0}),this.fetchImageSize()),this.props.dirtynessTrigger!==e.dirtynessTrigger&&this.calculateSize()}},{key:"componentDidMount",value:function(){this.fetchImageSize()}},{key:"componentWillUnmount",value:function(){this.image&&(this.image.onload=j.noop)}},{key:"fetchImageSize",value:function(){this.image=new window.Image,this.image.onload=this.calculateSize,this.image.src=this.props.src}},{key:"calculateSize",value:function(){var e,t,n,r,o,a=(e=this.image,t=this.container,n=t.clientWidth,r=e.width>n,o=e.height/e.width,{width:r?n:e.width,height:r?n*o:e.height}),i=a.width,c=a.height;this.setState({width:i,height:c})}},{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(i.createElement)("div",{ref:this.bindContainer},this.props.children(e))}}]),t}(i.Component),R=Object(w.withGlobalEvents)({resize:"calculateSize"})(T),I=["image"],A=function(e){var t=Object(j.pick)(e,["alt","id","link","caption"]);return t.url=Object(j.get)(e,["sizes","large","url"])||Object(j.get)(e,["media_details","sizes","large","source_url"])||e.url,t},N=function(e,t){return!e&&Object(s.isBlobURL)(t)},B=function(e){function t(e){var n,r=e.attributes;return Object(h.a)(this,t),(n=Object(g.a)(this,Object(f.a)(t).apply(this,arguments))).updateAlt=n.updateAlt.bind(Object(v.a)(Object(v.a)(n))),n.updateAlignment=n.updateAlignment.bind(Object(v.a)(Object(v.a)(n))),n.onFocusCaption=n.onFocusCaption.bind(Object(v.a)(Object(v.a)(n))),n.onImageClick=n.onImageClick.bind(Object(v.a)(Object(v.a)(n))),n.onSelectImage=n.onSelectImage.bind(Object(v.a)(Object(v.a)(n))),n.onSelectURL=n.onSelectURL.bind(Object(v.a)(Object(v.a)(n))),n.updateImageURL=n.updateImageURL.bind(Object(v.a)(Object(v.a)(n))),n.updateWidth=n.updateWidth.bind(Object(v.a)(Object(v.a)(n))),n.updateHeight=n.updateHeight.bind(Object(v.a)(Object(v.a)(n))),n.updateDimensions=n.updateDimensions.bind(Object(v.a)(Object(v.a)(n))),n.onSetCustomHref=n.onSetCustomHref.bind(Object(v.a)(Object(v.a)(n))),n.onSetLinkClass=n.onSetLinkClass.bind(Object(v.a)(Object(v.a)(n))),n.onSetLinkRel=n.onSetLinkRel.bind(Object(v.a)(Object(v.a)(n))),n.onSetLinkDestination=n.onSetLinkDestination.bind(Object(v.a)(Object(v.a)(n))),n.onSetNewTab=n.onSetNewTab.bind(Object(v.a)(Object(v.a)(n))),n.getFilename=n.getFilename.bind(Object(v.a)(Object(v.a)(n))),n.toggleIsEditing=n.toggleIsEditing.bind(Object(v.a)(Object(v.a)(n))),n.onUploadError=n.onUploadError.bind(Object(v.a)(Object(v.a)(n))),n.onImageError=n.onImageError.bind(Object(v.a)(Object(v.a)(n))),n.state={captionFocused:!1,isEditing:!r.url},n}return Object(O.a)(t,e),Object(p.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.setAttributes,o=t.noticeOperations,a=n.id,i=n.url,c=void 0===i?"":i;if(N(a,c)){var l=Object(s.getBlobByURL)(c);l&&Object(k.mediaUpload)({filesList:[l],onFileChange:function(e){var t=Object(m.a)(e,1)[0];r(A(t))},allowedTypes:I,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,i=a.id,c=a.url,l=void 0===c?"":c;N(n,o)&&!N(i,l)&&Object(s.revokeBlobURL)(l),!this.props.isSelected&&e.isSelected&&this.state.captionFocused&&this.setState({captionFocused:!1})}},{key:"onUploadError",value:function(e){this.props.noticeOperations.createErrorNotice(e),this.setState({isEditing:!0})}},{key:"onSelectImage",value:function(e){e&&e.url?(this.setState({isEditing:!1}),this.props.setAttributes(Object(a.a)({},A(e),{width:void 0,height:void 0}))):this.props.setAttributes({url:void 0,alt:void 0,id:void 0,caption:void 0})}},{key:"onSetLinkDestination",value:function(e){var t;t="none"===e?void 0:"media"===e?this.props.image&&this.props.image.source_url||this.props.attributes.url:"attachment"===e?this.props.image&&this.props.image.link:this.props.attributes.href,this.props.setAttributes({linkDestination:e,href:t})}},{key:"onSelectURL",value:function(e){e!==this.props.attributes.url&&this.props.setAttributes({url:e,id:void 0}),this.setState({isEditing:!1})}},{key:"onImageError",value:function(e){var t=Object(S.a)({attributes:{url:e}});void 0!==t&&this.props.onReplace(t)}},{key:"onSetCustomHref",value:function(e){this.props.setAttributes({href:e})}},{key:"onSetLinkClass",value:function(e){this.props.setAttributes({linkClass:e})}},{key:"onSetLinkRel",value:function(e){this.props.setAttributes({rel:e})}},{key:"onSetNewTab",value:function(e){var t=this.props.attributes.rel,n=e?"_blank":void 0,r=t;n&&!t?r="noreferrer noopener":n||"noreferrer noopener"!==t||(r=void 0),this.props.setAttributes({linkTarget:n,rel:r})}},{key:"onFocusCaption",value:function(){this.state.captionFocused||this.setState({captionFocused:!0})}},{key:"onImageClick",value:function(){this.state.captionFocused&&this.setState({captionFocused:!1})}},{key:"updateAlt",value:function(e){this.props.setAttributes({alt:e})}},{key:"updateAlignment",value:function(e){var t=-1!==["wide","full"].indexOf(e)?{width:void 0,height:void 0}:{};this.props.setAttributes(Object(a.a)({},t,{align:e}))}},{key:"updateImageURL",value:function(e){this.props.setAttributes({url:e,width:void 0,height:void 0})}},{key:"updateWidth",value:function(e){this.props.setAttributes({width:parseInt(e,10)})}},{key:"updateHeight",value:function(e){this.props.setAttributes({height:parseInt(e,10)})}},{key:"updateDimensions",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return function(){e.props.setAttributes({width:t,height:n})}}},{key:"getFilename",value:function(e){var t=Object(E.getPath)(e);if(t)return Object(j.last)(t.split("/"))}},{key:"getLinkDestinationOptions",value:function(){return[{value:"none",label:Object(d.__)("None")},{value:"media",label:Object(d.__)("Media File")},{value:"attachment",label:Object(d.__)("Attachment Page")},{value:"custom",label:Object(d.__)("Custom URL")}]}},{key:"toggleIsEditing",value:function(){this.setState({isEditing:!this.state.isEditing})}},{key:"getImageSizeOptions",value:function(){var e=this.props,t=e.imageSizes,n=e.image;return Object(j.compact)(Object(j.map)(t,(function(e){var t=e.name,r=e.slug,o=Object(j.get)(n,["media_details","sizes",r,"source_url"]);return o?{value:o,label:t}:null})))}},{key:"render",value:function(){var e,t=this,n=this.state.isEditing,r=this.props,o=r.attributes,a=r.setAttributes,c=r.isLargeViewport,u=r.isSelected,m=r.className,h=r.maxWidth,p=r.noticeUI,g=r.toggleSelection,f=r.isRTL,O=o.url,v=o.alt,w=o.caption,_=o.align,k=o.id,E=o.href,C=o.rel,S=o.linkClass,T=o.linkDestination,A=o.width,N=o.height,B=o.linkTarget,P=function(e,t){return t&&!e&&!Object(s.isBlobURL)(t)}(k,O);O&&(e=P?Object(i.createElement)(y.Toolbar,null,Object(i.createElement)(y.IconButton,{className:"components-icon-button components-toolbar__control",label:Object(d.__)("Edit image"),onClick:this.toggleIsEditing,icon:"edit"})):Object(i.createElement)(b.MediaUploadCheck,null,Object(i.createElement)(y.Toolbar,null,Object(i.createElement)(b.MediaUpload,{onSelect:this.onSelectImage,allowedTypes:I,value:k,render:function(e){var t=e.open;return Object(i.createElement)(y.IconButton,{className:"components-toolbar__control",label:Object(d.__)("Edit image"),icon:"edit",onClick:t})}}))));var L=Object(i.createElement)(b.BlockControls,null,Object(i.createElement)(b.BlockAlignmentToolbar,{value:_,onChange:this.updateAlignment}),e);if(n||!O){var M=P?O:void 0;return Object(i.createElement)(i.Fragment,null,L,Object(i.createElement)(b.MediaPlaceholder,{icon:Object(i.createElement)(b.BlockIcon,{icon:x}),className:m,onSelect:this.onSelectImage,onSelectURL:this.onSelectURL,notices:p,onError:this.onUploadError,accept:"image/*",allowedTypes:I,value:{id:k,src:M}}))}var H=l()(m,{"is-transient":Object(s.isBlobURL)(O),"is-resized":!!A||!!N,"is-focused":u}),z=-1===["wide","full"].indexOf(_)&&c,U="custom"!==T,F=this.getImageSizeOptions(),D=function(e,n){return Object(i.createElement)(b.InspectorControls,null,Object(i.createElement)(y.PanelBody,{title:Object(d.__)("Image Settings")},Object(i.createElement)(y.TextareaControl,{label:Object(d.__)("Alt Text (Alternative Text)"),value:v,onChange:t.updateAlt,help:Object(d.__)("Alternative text describes your image to people who cant see it. Add a short description with its key details.")}),!Object(j.isEmpty)(F)&&Object(i.createElement)(y.SelectControl,{label:Object(d.__)("Image Size"),value:O,options:F,onChange:t.updateImageURL}),z&&Object(i.createElement)("div",{className:"block-library-image__dimensions"},Object(i.createElement)("p",{className:"block-library-image__dimensions__row"},Object(d.__)("Image Dimensions")),Object(i.createElement)("div",{className:"block-library-image__dimensions__row"},Object(i.createElement)(y.TextControl,{type:"number",className:"block-library-image__dimensions__width",label:Object(d.__)("Width"),value:void 0!==A?A:e,min:1,onChange:t.updateWidth}),Object(i.createElement)(y.TextControl,{type:"number",className:"block-library-image__dimensions__height",label:Object(d.__)("Height"),value:void 0!==N?N:n,min:1,onChange:t.updateHeight})),Object(i.createElement)("div",{className:"block-library-image__dimensions__row"},Object(i.createElement)(y.ButtonGroup,{"aria-label":Object(d.__)("Image Size")},[25,50,75,100].map((function(r){var o=Math.round(e*(r/100)),a=Math.round(n*(r/100)),c=A===o&&N===a;return Object(i.createElement)(y.Button,{key:r,isSmall:!0,isPrimary:c,"aria-pressed":c,onClick:t.updateDimensions(o,a)},r,"%")}))),Object(i.createElement)(y.Button,{isSmall:!0,onClick:t.updateDimensions()},Object(d.__)("Reset"))))),Object(i.createElement)(y.PanelBody,{title:Object(d.__)("Link Settings")},Object(i.createElement)(y.SelectControl,{label:Object(d.__)("Link To"),value:T,options:t.getLinkDestinationOptions(),onChange:t.onSetLinkDestination}),"none"!==T&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)(y.TextControl,{label:Object(d.__)("Link URL"),value:E||"",onChange:t.onSetCustomHref,placeholder:U?void 0:"https://",readOnly:U}),Object(i.createElement)(y.ToggleControl,{label:Object(d.__)("Open in New Tab"),onChange:t.onSetNewTab,checked:"_blank"===B}),Object(i.createElement)(y.TextControl,{label:Object(d.__)("Link CSS Class"),value:S||"",onChange:t.onSetLinkClass}),Object(i.createElement)(y.TextControl,{label:Object(d.__)("Link Rel"),value:C||"",onChange:t.onSetLinkRel}))))};return Object(i.createElement)(i.Fragment,null,L,Object(i.createElement)("figure",{className:H},Object(i.createElement)(R,{src:O,dirtynessTrigger:_},(function(e){var n,r=e.imageWidthWithinContainer,o=e.imageHeightWithinContainer,c=e.imageWidth,l=e.imageHeight,u=t.getFilename(O);n=v||(u?Object(d.sprintf)(Object(d.__)("This image has an empty alt attribute; its file name is %s"),u):Object(d.__)("This image has an empty alt attribute"));var b=Object(i.createElement)(i.Fragment,null,Object(i.createElement)("img",{src:O,alt:n,onClick:t.onImageClick,onError:function(){return t.onImageError(O)}}),Object(s.isBlobURL)(O)&&Object(i.createElement)(y.Spinner,null));if(!z||!r)return Object(i.createElement)(i.Fragment,null,D(c,l),Object(i.createElement)("div",{style:{width:A,height:N}},b));var m=A||r,p=N||o,j=c/l,w=c<l?20:20*j,k=l<c?20:20/j,E=2.5*h,C=!1,S=!1;return"center"===_?(C=!0,S=!0):f?"left"===_?C=!0:S=!0:"right"===_?S=!0:C=!0,Object(i.createElement)(i.Fragment,null,D(c,l),Object(i.createElement)(y.ResizableBox,{size:A&&N?{width:A,height:N}:void 0,minWidth:w,maxWidth:E,minHeight:k,maxHeight:E/j,lockAspectRatio:!0,enable:{top:!1,right:C,bottom:!0,left:S},onResizeStart:function(){g(!1)},onResizeStop:function(e,t,n,r){a({width:parseInt(m+r.width,10),height:parseInt(p+r.height,10)}),g(!0)}},b))})),(!b.RichText.isEmpty(w)||u)&&Object(i.createElement)(b.RichText,{tagName:"figcaption",placeholder:Object(d.__)("Write caption…"),value:w,unstableOnFocus:this.onFocusCaption,onChange:function(e){return a({caption:e})},isSelected:this.state.captionFocused,inlineToolbar:!0})))}}]),t}(i.Component),P=Object(w.compose)([Object(_.withSelect)((function(e,t){var n=e("core").getMedia,r=e("core/block-editor").getSettings,o=t.attributes.id,a=r(),i=a.maxWidth,c=a.isRTL,l=a.imageSizes;return{image:o?n(o):null,maxWidth:i,isRTL:c,imageSizes:l}})),Object(C.withViewportMatch)({isLargeViewport:"medium"}),y.withNotices])(B),L="core/image",M={url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},align:{type:"string"},width:{type:"number"},height:{type:"number"},linkDestination:{type:"string",default:"none"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},H={img:{attributes:["src","alt"],classes:["alignleft","aligncenter","alignright","alignnone",/^wp-image-\d+$/]}},z={figure:{require:["img"],children:Object(a.a)({},H,{a:{attributes:["href","rel","target"],children:H},figcaption:{children:Object(u.getPhrasingContentSchema)()}})}};function U(e,t){var n=document.implementation.createHTMLDocument("").body;n.innerHTML=e;var r=n.firstElementChild;if(r&&"A"===r.nodeName)return r.getAttribute(t)||void 0}function F(e,t){var n=t.shortcode,r=document.implementation.createHTMLDocument("").body;r.innerHTML=n.content;for(var o=r.querySelector("img");o&&o.parentNode&&o.parentNode!==r;)o=o.parentNode;return o&&o.parentNode.removeChild(o),r.innerHTML.trim()}var D={title:Object(d.__)("Image"),description:Object(d.__)("Insert an image to make a visual statement."),icon:x,category:"common",keywords:["img",Object(d.__)("photo")],attributes:M,transforms:{from:[{type:"raw",isMatch:function(e){return"FIGURE"===e.nodeName&&!!e.querySelector("img")},schema:z,transform:function(e){var t=e.className+" "+e.querySelector("img").className,n=/(?:^|\s)align(left|center|right)(?:$|\s)/.exec(t),r=n?n[1]:void 0,o=/(?:^|\s)wp-image-(\d+)(?:$|\s)/.exec(t),a=o?Number(o[1]):void 0,i=e.querySelector("a"),c=i&&i.href?"custom":void 0,l=i&&i.href?i.href:void 0,s=i&&i.rel?i.rel:void 0,b=i&&i.className?i.className:void 0,d=Object(u.getBlockAttributes)("core/image",e.outerHTML,{align:r,id:a,linkDestination:c,href:l,rel:s,linkClass:b});return Object(u.createBlock)("core/image",d)}},{type:"files",isMatch:function(e){return 1===e.length&&0===e[0].type.indexOf("image/")},transform:function(e){var t=e[0];return Object(u.createBlock)("core/image",{url:Object(s.createBlobURL)(t)})}},{type:"shortcode",tag:"caption",attributes:{url:{type:"string",source:"attribute",attribute:"src",selector:"img"},alt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},caption:{shortcode:F},href:{shortcode:function(e,t){return U(t.shortcode.content,"href")}},rel:{shortcode:function(e,t){return U(t.shortcode.content,"rel")}},linkClass:{shortcode:function(e,t){return U(t.shortcode.content,"class")}},id:{type:"number",shortcode:function(e){var t=e.named.id;if(t)return parseInt(t.replace("attachment_",""),10)}},align:{type:"string",shortcode:function(e){var t=e.named.align;return(void 0===t?"alignnone":t).replace("align","")}}}}]},getEditWrapperProps:function(e){var t=e.align,n=e.width;if("left"===t||"center"===t||"right"===t||"wide"===t||"full"===t)return{"data-align":t,"data-resized":!!n}},edit:P,save:function(e){var t,n=e.attributes,r=n.url,a=n.alt,c=n.caption,s=n.align,u=n.href,d=n.rel,m=n.linkClass,h=n.width,p=n.height,g=n.id,f=n.linkTarget,O=l()((t={},Object(o.a)(t,"align".concat(s),s),Object(o.a)(t,"is-resized",h||p),t)),v=Object(i.createElement)("img",{src:r,alt:a,className:g?"wp-image-".concat(g):null,width:h,height:p}),j=Object(i.createElement)(i.Fragment,null,u?Object(i.createElement)("a",{className:m,href:u,target:f,rel:d},v):v,!b.RichText.isEmpty(c)&&Object(i.createElement)(b.RichText.Content,{tagName:"figcaption",value:c}));return"left"===s||"right"===s||"center"===s?Object(i.createElement)("div",null,Object(i.createElement)("figure",{className:O},j)):Object(i.createElement)("figure",{className:O},j)},deprecated:[{attributes:M,save:function(e){var t,n=e.attributes,r=n.url,a=n.alt,c=n.caption,s=n.align,u=n.href,d=n.width,m=n.height,h=n.id,p=l()((t={},Object(o.a)(t,"align".concat(s),s),Object(o.a)(t,"is-resized",d||m),t)),g=Object(i.createElement)("img",{src:r,alt:a,className:h?"wp-image-".concat(h):null,width:d,height:m});return Object(i.createElement)("figure",{className:p},u?Object(i.createElement)("a",{href:u},g):g,!b.RichText.isEmpty(c)&&Object(i.createElement)(b.RichText.Content,{tagName:"figcaption",value:c}))}},{attributes:M,save:function(e){var t=e.attributes,n=t.url,r=t.alt,o=t.caption,a=t.align,c=t.href,l=t.width,s=t.height,u=t.id,d=Object(i.createElement)("img",{src:n,alt:r,className:u?"wp-image-".concat(u):null,width:l,height:s});return Object(i.createElement)("figure",{className:a?"align".concat(a):null},c?Object(i.createElement)("a",{href:c},d):d,!b.RichText.isEmpty(o)&&Object(i.createElement)(b.RichText.Content,{tagName:"figcaption",value:o}))}},{attributes:M,save:function(e){var t=e.attributes,n=t.url,o=t.alt,a=t.caption,c=t.align,l=t.href,s=t.width,u=t.height,d=s||u?{width:s,height:u}:{},m=Object(i.createElement)("img",Object(r.a)({src:n,alt:o},d)),h={};return s?h={width:s}:"left"!==c&&"right"!==c||(h={maxWidth:"50%"}),Object(i.createElement)("figure",{className:c?"align".concat(c):null,style:h},l?Object(i.createElement)("a",{href:l},m):m,!b.RichText.isEmpty(a)&&Object(i.createElement)(b.RichText.Content,{tagName:"figcaption",value:a}))}}]}},pQaA:function(e,t,n){"use strict";n.r(t),n.d(t,"getLevelFromHeadingNodeName",(function(){return O})),n.d(t,"name",(function(){return y})),n.d(t,"settings",(function(){return w}));var r=n("Ff2n"),o=n("vpQ4"),a=n("KQm4"),i=n("GRId"),c=n("YLtl"),l=n("l3Sj"),s=n("HSyU"),u=n("axFQ"),b=n("tI+e"),d=n("1OyB"),m=n("vuIU"),h=n("md7G"),p=n("foSv"),g=n("Ji7U"),f=function(e){function t(){return Object(d.a)(this,t),Object(h.a)(this,Object(p.a)(t).apply(this,arguments))}return Object(g.a)(t,e),Object(m.a)(t,[{key:"createLevelControl",value:function(e,t,n){return{icon:"heading",title:Object(l.sprintf)(Object(l.__)("Heading %d"),e),isActive:e===t,onClick:function(){return n(e)},subscript:String(e)}}},{key:"render",value:function(){var e=this,t=this.props,n=t.minLevel,r=t.maxLevel,o=t.selectedLevel,a=t.onChange;return Object(i.createElement)(b.Toolbar,{controls:Object(c.range)(n,r).map((function(t){return e.createLevelControl(t,o,a)}))})}}]),t}(i.Component);function O(e){return Number(e.substr(1))}var v={className:!1,anchor:!0},j={content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},level:{type:"number",default:2},align:{type:"string"},placeholder:{type:"string"}},y="core/heading",w={title:Object(l.__)("Heading"),description:Object(l.__)("Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content."),icon:Object(i.createElement)(b.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(b.Path,{d:"M5 4v3h5.5v12h3V7H19V4z"}),Object(i.createElement)(b.Path,{fill:"none",d:"M0 0h24v24H0V0z"})),category:"common",keywords:[Object(l.__)("title"),Object(l.__)("subtitle")],supports:v,attributes:j,transforms:{from:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return Object(s.createBlock)("core/heading",{content:t})}},{type:"raw",selector:"h1,h2,h3,h4,h5,h6",schema:{h1:{children:Object(s.getPhrasingContentSchema)()},h2:{children:Object(s.getPhrasingContentSchema)()},h3:{children:Object(s.getPhrasingContentSchema)()},h4:{children:Object(s.getPhrasingContentSchema)()},h5:{children:Object(s.getPhrasingContentSchema)()},h6:{children:Object(s.getPhrasingContentSchema)()}},transform:function(e){return Object(s.createBlock)("core/heading",Object(o.a)({},Object(s.getBlockAttributes)("core/heading",e.outerHTML),{level:O(e.nodeName)}))}}].concat(Object(a.a)([2,3,4,5,6].map((function(e){return{type:"prefix",prefix:Array(e+1).join("#"),transform:function(t){return Object(s.createBlock)("core/heading",{level:e,content:t})}}})))),to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return Object(s.createBlock)("core/paragraph",{content:t})}}]},deprecated:[{supports:v,attributes:Object(o.a)({},Object(c.omit)(j,["level"]),{nodeName:{type:"string",source:"property",selector:"h1,h2,h3,h4,h5,h6",property:"nodeName",default:"H2"}}),migrate:function(e){var t=e.nodeName,n=Object(r.a)(e,["nodeName"]);return Object(o.a)({},n,{level:O(t)})},save:function(e){var t=e.attributes,n=t.align,r=t.nodeName,o=t.content;return Object(i.createElement)(u.RichText.Content,{tagName:r.toLowerCase(),style:{textAlign:n},value:o})}}],merge:function(e,t){return{content:(e.content||"")+(t.content||"")}},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.mergeBlocks,o=e.insertBlocksAfter,a=e.onReplace,c=e.className,d=t.align,m=t.content,h=t.level,p=t.placeholder,g="h"+h;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(u.BlockControls,null,Object(i.createElement)(f,{minLevel:2,maxLevel:5,selectedLevel:h,onChange:function(e){return n({level:e})}})),Object(i.createElement)(u.InspectorControls,null,Object(i.createElement)(b.PanelBody,{title:Object(l.__)("Heading Settings")},Object(i.createElement)("p",null,Object(l.__)("Level")),Object(i.createElement)(f,{minLevel:1,maxLevel:7,selectedLevel:h,onChange:function(e){return n({level:e})}}),Object(i.createElement)("p",null,Object(l.__)("Text Alignment")),Object(i.createElement)(u.AlignmentToolbar,{value:d,onChange:function(e){n({align:e})}}))),Object(i.createElement)(u.RichText,{identifier:"content",wrapperClassName:"wp-block-heading",tagName:g,value:m,onChange:function(e){return n({content:e})},onMerge:r,unstableOnSplit:o?function(e,t){n({content:e});for(var r=arguments.length,a=new Array(r>2?r-2:0),i=2;i<r;i++)a[i-2]=arguments[i];o([].concat(a,[Object(s.createBlock)("core/paragraph",{content:t})]))}:void 0,onRemove:function(){return a([])},style:{textAlign:d},className:c,placeholder:p||Object(l.__)("Write heading…")}))},save:function(e){var t=e.attributes,n=t.align,r=t.level,o=t.content,a="h"+r;return Object(i.createElement)(u.RichText.Content,{tagName:a,style:{textAlign:n},value:o})}}},pr1q:function(e,t,n){"use strict";n.r(t),n.d(t,"name",(function(){return c})),n.d(t,"settings",(function(){return l}));var r=n("GRId"),o=n("l3Sj"),a=n("axFQ"),i=n("tI+e"),c="core/template",l={title:Object(o.__)("Reusable Template"),category:"reusable",description:Object(o.__)("Template block used as a container."),icon:Object(r.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(i.Rect,{x:"0",fill:"none",width:"24",height:"24"}),Object(r.createElement)(i.G,null,Object(r.createElement)(i.Path,{d:"M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zM6 6h5v5H6V6zm4.5 13C9.12 19 8 17.88 8 16.5S9.12 14 10.5 14s2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5zm3-6l3-5 3 5h-6z"}))),supports:{customClassName:!1,html:!1,inserter:!1},edit:function(){return Object(r.createElement)(a.InnerBlocks,null)},save:function(){return Object(r.createElement)(a.InnerBlocks.Content,null)}}},qRz9:function(e,t){!function(){e.exports=this.wp.richText}()},r7Un:function(e,t,n){"use strict";n.r(t),n.d(t,"name",(function(){return O})),n.d(t,"settings",(function(){return v}));var r=n("GRId"),o=n("l3Sj"),a=n("tI+e"),i=n("1OyB"),c=n("vuIU"),l=n("md7G"),s=n("foSv"),u=n("Ji7U"),b=n("JX7q"),d=n("YLtl"),m=n("K9lf"),h=n("1ZqX"),p=n("axFQ"),g=function(e){function t(){var e;return Object(i.a)(this,t),(e=Object(l.a)(this,Object(s.a)(t).apply(this,arguments))).toggleDisplayAsDropdown=e.toggleDisplayAsDropdown.bind(Object(b.a)(Object(b.a)(e))),e.toggleShowPostCounts=e.toggleShowPostCounts.bind(Object(b.a)(Object(b.a)(e))),e.toggleShowHierarchy=e.toggleShowHierarchy.bind(Object(b.a)(Object(b.a)(e))),e}return Object(u.a)(t,e),Object(c.a)(t,[{key:"toggleDisplayAsDropdown",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({displayAsDropdown:!t.displayAsDropdown})}},{key:"toggleShowPostCounts",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({showPostCounts:!t.showPostCounts})}},{key:"toggleShowHierarchy",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({showHierarchy:!t.showHierarchy})}},{key:"getCategories",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.props.categories;return t&&t.length?null===e?t:t.filter((function(t){return t.parent===e})):[]}},{key:"getCategoryListClassName",value:function(e){return"wp-block-categories__list wp-block-categories__list-level-".concat(e)}},{key:"renderCategoryName",value:function(e){return e.name?Object(d.unescape)(e.name).trim():Object(o.__)("(Untitled)")}},{key:"renderCategoryList",value:function(){var e=this,t=this.props.attributes.showHierarchy?0:null,n=this.getCategories(t);return Object(r.createElement)("ul",{className:this.getCategoryListClassName(0)},n.map((function(t){return e.renderCategoryListItem(t,0)})))}},{key:"renderCategoryListItem",value:function(e,t){var n=this,o=this.props.attributes,a=o.showHierarchy,i=o.showPostCounts,c=this.getCategories(e.id);return Object(r.createElement)("li",{key:e.id},Object(r.createElement)("a",{href:e.link,target:"_blank",rel:"noreferrer noopener"},this.renderCategoryName(e)),i&&Object(r.createElement)("span",{className:"wp-block-categories__post-count"}," ","(",e.count,")"),a&&!!c.length&&Object(r.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,a=this.getCategories(n),i="blocks-category-select-".concat(t);return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("label",{htmlFor:i,className:"screen-reader-text"},Object(o.__)("Categories")),Object(r.createElement)("select",{id:i,className:"wp-block-categories__dropdown"},a.map((function(t){return e.renderCategoryDropdownItem(t,0)}))))}},{key:"renderCategoryDropdownItem",value:function(e,t){var n=this,o=this.props.attributes,a=o.showHierarchy,i=o.showPostCounts,c=this.getCategories(e.id);return[Object(r.createElement)("option",{key:e.id},Object(d.times)(3*t,(function(){return" "})),this.renderCategoryName(e),i?" (".concat(e.count,")"):""),a&&!!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,i=t.displayAsDropdown,c=t.showHierarchy,l=t.showPostCounts,s=Object(r.createElement)(p.InspectorControls,null,Object(r.createElement)(a.PanelBody,{title:Object(o.__)("Categories Settings")},Object(r.createElement)(a.ToggleControl,{label:Object(o.__)("Display as Dropdown"),checked:i,onChange:this.toggleDisplayAsDropdown}),Object(r.createElement)(a.ToggleControl,{label:Object(o.__)("Show Hierarchy"),checked:c,onChange:this.toggleShowHierarchy}),Object(r.createElement)(a.ToggleControl,{label:Object(o.__)("Show Post Counts"),checked:l,onChange:this.toggleShowPostCounts})));return n?Object(r.createElement)(r.Fragment,null,s,Object(r.createElement)(a.Placeholder,{icon:"admin-post",label:Object(o.__)("Categories")},Object(r.createElement)(a.Spinner,null))):Object(r.createElement)(r.Fragment,null,s,Object(r.createElement)("div",{className:this.props.className},i?this.renderCategoryDropdown():this.renderCategoryList()))}}]),t}(r.Component),f=Object(m.compose)(Object(h.withSelect)((function(e){var t=e("core").getEntityRecords,n=e("core/data").isResolving,r={per_page:-1,hide_empty:!0};return{categories:t("taxonomy","category",r),isRequesting:n("core","getEntityRecords",["taxonomy","category",r])}})),m.withInstanceId)(g),O="core/categories",v={title:Object(o.__)("Categories"),description:Object(o.__)("Display a list of all categories."),icon:Object(r.createElement)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(a.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(r.createElement)(a.Path,{d:"M12,2l-5.5,9h11L12,2z M12,5.84L13.93,9h-3.87L12,5.84z"}),Object(r.createElement)(a.Path,{d:"m17.5 13c-2.49 0-4.5 2.01-4.5 4.5s2.01 4.5 4.5 4.5 4.5-2.01 4.5-4.5-2.01-4.5-4.5-4.5zm0 7c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"}),Object(r.createElement)(a.Path,{d:"m3 21.5h8v-8h-8v8zm2-6h4v4h-4v-4z"})),category:"widgets",attributes:{displayAsDropdown:{type:"boolean",default:!1},showHierarchy:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1}},supports:{align:!0,alignWide:!1,html:!1},edit:f,save:function(){return null}}},rePB:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},rl8x:function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},ru0n:function(e,t,n){"use strict";n.r(t),n.d(t,"name",(function(){return k})),n.d(t,"settings",(function(){return C}));var r=n("rePB"),o=n("vpQ4"),a=n("GRId"),i=n("TSYQ"),c=n.n(i),l=n("YLtl"),s=n("tI+e"),u=n("l3Sj"),b=n("axFQ"),d=n("1OyB"),m=n("vuIU"),h=n("md7G"),p=n("foSv"),g=n("Ji7U"),f=n("JX7q"),O=n("K9lf"),v=window.getComputedStyle,j=Object(s.withFallbackStyles)((function(e,t){var n=t.textColor,r=t.backgroundColor,o=r&&r.color,a=n&&n.color,i=!a&&e?e.querySelector('[contenteditable="true"]'):null;return{fallbackBackgroundColor:o||!e?void 0:v(e).backgroundColor,fallbackTextColor:a||!i?void 0:v(i).color}})),y=function(e){function t(){var e;return Object(d.a)(this,t),(e=Object(h.a)(this,Object(p.a)(t).apply(this,arguments))).nodeRef=null,e.bindRef=e.bindRef.bind(Object(f.a)(Object(f.a)(e))),e}return Object(g.a)(t,e),Object(m.a)(t,[{key:"bindRef",value:function(e){e&&(this.nodeRef=e)}},{key:"render",value:function(){var e,t=this.props,n=t.attributes,o=t.backgroundColor,i=t.textColor,l=t.setBackgroundColor,d=t.setTextColor,m=t.fallbackBackgroundColor,h=t.fallbackTextColor,p=t.setAttributes,g=t.isSelected,f=t.className,O=n.text,v=n.url,j=n.title;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)("div",{className:f,title:j,ref:this.bindRef},Object(a.createElement)(b.RichText,{placeholder:Object(u.__)("Add text…"),value:O,onChange:function(e){return p({text:e})},formattingControls:["bold","italic","strikethrough"],className:c()("wp-block-button__link",(e={"has-background":o.color},Object(r.a)(e,o.class,o.class),Object(r.a)(e,"has-text-color",i.color),Object(r.a)(e,i.class,i.class),e)),style:{backgroundColor:o.color,color:i.color},keepPlaceholderOnFocus:!0}),Object(a.createElement)(b.InspectorControls,null,Object(a.createElement)(b.PanelColorSettings,{title:Object(u.__)("Color Settings"),colorSettings:[{value:o.color,onChange:l,label:Object(u.__)("Background Color")},{value:i.color,onChange:d,label:Object(u.__)("Text Color")}]},Object(a.createElement)(b.ContrastChecker,{isLargeText:!1,textColor:i.color,backgroundColor:o.color,fallbackBackgroundColor:m,fallbackTextColor:h})))),g&&Object(a.createElement)("form",{className:"block-library-button__inline-link",onSubmit:function(e){return e.preventDefault()}},Object(a.createElement)(s.Dashicon,{icon:"admin-links"}),Object(a.createElement)(b.URLInput,{value:v,onChange:function(e){return p({url:e})}}),Object(a.createElement)(s.IconButton,{icon:"editor-break",label:Object(u.__)("Apply"),type:"submit"})))}}]),t}(a.Component),w=Object(O.compose)([Object(b.withColors)("backgroundColor",{textColor:"color"}),j])(y),_={url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}},k="core/button",E=function(e){return Object(l.omit)(Object(o.a)({},e,{customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.color&&"#"===e.color[0]?e.color:void 0}),["color","textColor"])},C={title:Object(u.__)("Button"),description:Object(u.__)("Prompt visitors to take action with a button-style link."),icon:Object(a.createElement)(s.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(s.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(a.createElement)(s.G,null,Object(a.createElement)(s.Path,{d:"M19 6H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H5V8h14v8z"}))),category:"layout",keywords:[Object(u.__)("link")],attributes:_,supports:{align:!0,alignWide:!1},styles:[{name:"default",label:Object(u._x)("Default","block style"),isDefault:!0},{name:"outline",label:Object(u.__)("Outline")},{name:"squared",label:Object(u._x)("Squared","block style")}],edit:w,save:function(e){var t,n=e.attributes,o=n.url,i=n.text,l=n.title,s=n.backgroundColor,u=n.textColor,d=n.customBackgroundColor,m=n.customTextColor,h=Object(b.getColorClassName)("color",u),p=Object(b.getColorClassName)("background-color",s),g=c()("wp-block-button__link",(t={"has-text-color":u||m},Object(r.a)(t,h,h),Object(r.a)(t,"has-background",s||d),Object(r.a)(t,p,p),t)),f={backgroundColor:p?void 0:d,color:h?void 0:m};return Object(a.createElement)("div",null,Object(a.createElement)(b.RichText.Content,{tagName:"a",className:g,href:o,title:l,style:f,value:i}))},deprecated:[{attributes:Object(o.a)({},Object(l.pick)(_,["url","title","text"]),{color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,n=t.url,r=t.text,o=t.title,i=t.align,c={backgroundColor:t.color,color:t.textColor};return Object(a.createElement)("div",{className:"align".concat(i)},Object(a.createElement)(b.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:n,title:o,style:c,value:r}))},migrate:E},{attributes:Object(o.a)({},Object(l.pick)(_,["url","title","text"]),{color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,n=t.url,r=t.text,o=t.title,i=t.align,c=t.color,l=t.textColor;return Object(a.createElement)("div",{className:"align".concat(i),style:{backgroundColor:c}},Object(a.createElement)(b.RichText.Content,{tagName:"a",href:n,title:o,style:{color:l},value:r}))},migrate:E}]}},s3sy:function(e,t,n){"use strict";n.r(t),n.d(t,"name",(function(){return E})),n.d(t,"settings",(function(){return C}));var r=n("GRId"),o=n("l3Sj"),a=n("tI+e"),i=n("1OyB"),c=n("vuIU"),l=n("md7G"),s=n("foSv"),u=n("Ji7U"),b=n("JX7q"),d=n("YLtl"),m=n("1ZqX"),h=n("jSdM"),p=n("ywyh"),g=n.n(p),f=n("K9lf"),O=n("rl8x"),v=n.n(O),j=function(e){function t(){var e;return Object(i.a)(this,t),(e=Object(l.a)(this,Object(s.a)(t).apply(this,arguments))).containerRef=Object(r.createRef)(),e.formRef=Object(r.createRef)(),e.widgetContentRef=Object(r.createRef)(),e.triggerWidgetEvent=e.triggerWidgetEvent.bind(Object(b.a)(Object(b.a)(e))),e}return Object(u.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){this.triggerWidgetEvent("widget-added"),this.previousFormData=new window.FormData(this.formRef.current)}},{key:"shouldComponentUpdate",value:function(e){e.form!==this.props.form&&this.widgetContentRef.current&&(this.widgetContentRef.current.innerHTML=e.form,this.triggerWidgetEvent("widget-updated"),this.previousFormData=new window.FormData(this.formRef.current));return!1}},{key:"render",value:function(){var e=this,t=this.props,n=t.id,o=t.idBase,a=t.widgetNumber,i=t.form;return Object(r.createElement)("div",{className:"widget open",ref:this.containerRef},Object(r.createElement)("div",{className:"widget-inside"},Object(r.createElement)("form",{ref:this.formRef,method:"post",onBlur:function(){e.shouldTriggerInstanceUpdate()&&e.props.onInstanceChange(e.retrieveUpdatedInstance())}},Object(r.createElement)("div",{ref:this.widgetContentRef,className:"widget-content",dangerouslySetInnerHTML:{__html:i}}),Object(r.createElement)("input",{type:"hidden",name:"widget-id",className:"widget-id",value:n}),Object(r.createElement)("input",{type:"hidden",name:"id_base",className:"id_base",value:o}),Object(r.createElement)("input",{type:"hidden",name:"widget_number",className:"widget_number",value:a}),Object(r.createElement)("input",{type:"hidden",name:"multi_number",className:"multi_number",value:""}),Object(r.createElement)("input",{type:"hidden",name:"add_new",className:"add_new",value:""}))))}},{key:"shouldTriggerInstanceUpdate",value:function(){if(!this.formRef.current)return!1;if(!this.previousFormData)return!0;var e=new window.FormData(this.formRef.current),t=Array.from(e.keys()),n=Array.from(this.previousFormData.keys());if(t.length!==n.length)return!0;for(var r=0;r<t.length;r++){var o=t[r];if(!v()(e.getAll(o),this.previousFormData.getAll(o)))return this.previousFormData=e,!0}return!1}},{key:"triggerWidgetEvent",value:function(e){window.$(window.document).trigger(e,[window.$(this.containerRef.current)])}},{key:"retrieveUpdatedInstance",value:function(){if(this.formRef.current){var e=this.props,t=e.idBase,n=e.widgetNumber,r=this.formRef.current,o=new window.FormData(r),a={},i="widget-".concat(t,"[").concat(n,"][").length,c="]".length,l=!0,s=!1,u=void 0;try{for(var b,m=o.keys()[Symbol.iterator]();!(l=(b=m.next()).done);l=!0){var h=b.value;if(!Object(d.includes)(["widget-id","id_base","widget_number","multi_number","add_new"],h)){var p=h.substring(i,h.length-c),g=o.getAll(h);g.length>1?a[p]=g:a[p]=g[0]}}}catch(e){s=!0,u=e}finally{try{l||null==m.return||m.return()}finally{if(s)throw u}}return a}}}]),t}(r.Component),y=function(e){function t(){var e;return Object(i.a)(this,t),(e=Object(l.a)(this,Object(s.a)(t).apply(this,arguments))).state={form:null,idBase:null},e.instanceUpdating=null,e.onInstanceChange=e.onInstanceChange.bind(Object(b.a)(Object(b.a)(e))),e.requestWidgetUpdater=e.requestWidgetUpdater.bind(Object(b.a)(Object(b.a)(e))),e}return Object(u.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){this.isStillMounted=!0,this.requestWidgetUpdater()}},{key:"componentDidUpdate",value:function(e){e.instance!==this.props.instance&&this.instanceUpdating!==this.props.instance&&this.requestWidgetUpdater(),this.instanceUpdating===this.props.instance&&(this.instanceUpdating=null)}},{key:"componentWillUnmount",value:function(){this.isStillMounted=!1}},{key:"render",value:function(){var e=this,t=this.props,n=t.instanceId,a=t.identifier,i=this.state,c=i.id,l=i.idBase,s=i.form;return a?s?Object(r.createElement)("div",{className:"wp-block-legacy-widget__edit-container",style:{display:this.props.isVisible?"block":"none"}},Object(r.createElement)(j,{ref:function(t){e.widgetEditDomManagerRef=t},onInstanceChange:this.onInstanceChange,widgetNumber:-1*n,id:c,idBase:l,form:s})):null:Object(o.__)("Not a valid widget.")}},{key:"onInstanceChange",value:function(e){var t=this;this.requestWidgetUpdater(e,(function(e){t.instanceUpdating=e.instance,t.props.onInstanceChange(e.instance)}))}},{key:"requestWidgetUpdater",value:function(e,t){var n=this,r=this.props,o=r.identifier,a=r.instanceId,i=r.instance;o&&g()({path:"/wp/v2/widgets/".concat(o,"/"),data:{identifier:o,instance:i,id_to_use:-1*a,instance_changes:e},method:"POST"}).then((function(e){n.isStillMounted&&(n.setState({form:e.form,idBase:e.id_base,id:e.id}),t&&t(e))}))}}]),t}(r.Component),w=Object(f.withInstanceId)(y),_=function(e){function t(){var e;return Object(i.a)(this,t),(e=Object(l.a)(this,Object(s.a)(t).apply(this,arguments))).state={isPreview:!1},e.switchToEdit=e.switchToEdit.bind(Object(b.a)(Object(b.a)(e))),e.switchToPreview=e.switchToPreview.bind(Object(b.a)(Object(b.a)(e))),e.changeWidget=e.changeWidget.bind(Object(b.a)(Object(b.a)(e))),e}return Object(u.a)(t,e),Object(c.a)(t,[{key:"render",value:function(){var e,t=this,n=this.props,i=n.attributes,c=n.availableLegacyWidgets,l=n.hasPermissionsToManageWidgets,s=n.setAttributes,u=this.state.isPreview,b=i.identifier,m=i.isCallbackWidget,p=b&&c[b];if(!p)return e=l?0===c.length?Object(o.__)("There are no widgets available."):Object(r.createElement)(a.SelectControl,{label:Object(o.__)("Select a legacy widget to display:"),value:b||"none",onChange:function(e){return s({instance:{},identifier:e,isCallbackWidget:c[e].isCallbackWidget})},options:[{value:"none",label:"Select widget"}].concat(Object(d.map)(c,(function(e,t){return{value:t,label:e.name}})))}):Object(o.__)("You don't have permissions to use widgets on this site."),Object(r.createElement)(a.Placeholder,{icon:Object(r.createElement)(h.BlockIcon,{icon:"admin-customizer"}),label:Object(o.__)("Legacy Widget")},e);var g=Object(r.createElement)(h.InspectorControls,null,Object(r.createElement)(a.PanelBody,{title:p.name},p.description));return l?Object(r.createElement)(r.Fragment,null,Object(r.createElement)(h.BlockControls,null,Object(r.createElement)(a.Toolbar,null,Object(r.createElement)(a.IconButton,{onClick:this.changeWidget,label:Object(o.__)("Change widget"),icon:"update"}),!m&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(a.Button,{className:"components-tab-button ".concat(u?"":"is-active"),onClick:this.switchToEdit},Object(r.createElement)("span",null,Object(o.__)("Edit"))),Object(r.createElement)(a.Button,{className:"components-tab-button ".concat(u?"is-active":""),onClick:this.switchToPreview},Object(r.createElement)("span",null,Object(o.__)("Preview")))))),g,!m&&Object(r.createElement)(w,{isVisible:!u,identifier:i.identifier,instance:i.instance,onInstanceChange:function(e){t.props.setAttributes({instance:e})}}),(u||m)&&this.renderWidgetPreview()):Object(r.createElement)(r.Fragment,null,g,this.renderWidgetPreview())}},{key:"changeWidget",value:function(){this.switchToEdit(),this.props.setAttributes({instance:{},identifier:void 0})}},{key:"switchToEdit",value:function(){this.setState({isPreview:!1})}},{key:"switchToPreview",value:function(){this.setState({isPreview:!0})}},{key:"renderWidgetPreview",value:function(){var e=this.props.attributes;return Object(r.createElement)(h.ServerSideRender,{className:"wp-block-legacy-widget__preview",block:"core/legacy-widget",attributes:e})}}]),t}(r.Component),k=Object(m.withSelect)((function(e){var t=e("core/block-editor").getSettings(),n=t.availableLegacyWidgets;return{hasPermissionsToManageWidgets:t.hasPermissionsToManageWidgets,availableLegacyWidgets:n}}))(_),E="core/legacy-widget",C={title:Object(o.__)("Legacy Widget (Experimental)"),description:Object(o.__)("Display a legacy widget."),icon:Object(r.createElement)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(a.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)(a.G,null,Object(r.createElement)(a.Path,{d:"M7 11h2v2H7v-2zm14-5v14l-2 2H5l-2-2V6l2-2h1V2h2v2h8V2h2v2h1l2 2zM5 8h14V6H5v2zm14 12V10H5v10h14zm-4-7h2v-2h-2v2zm-4 0h2v-2h-2v2z"}))),category:"widgets",supports:{html:!1},edit:k,save:function(){return null}}},s4NR:function(e,t,n){"use strict";t.decode=t.parse=n("kd2E"),t.encode=t.stringify=n("4JlD")},"tI+e":function(e,t){!function(){e.exports=this.wp.components}()},tTef:function(e,t,n){"use strict";n.r(t),n.d(t,"name",(function(){return O})),n.d(t,"settings",(function(){return v}));var r=n("l3Sj"),o=n("KQm4"),a=n("1OyB"),i=n("vuIU"),c=n("md7G"),l=n("foSv"),s=n("Ji7U"),u=n("JX7q"),b=n("GRId"),d=n("YLtl"),m=n("tI+e"),h=n("1ZqX"),p=n("axFQ"),g=function(e){function t(){var e;return Object(a.a)(this,t),(e=Object(c.a)(this,Object(l.a)(t).apply(this,arguments))).state={editing:!e.props.attributes.taxonomy},e.setTaxonomy=e.setTaxonomy.bind(Object(u.a)(Object(u.a)(e))),e.toggleShowTagCounts=e.toggleShowTagCounts.bind(Object(u.a)(Object(u.a)(e))),e}return Object(s.a)(t,e),Object(i.a)(t,[{key:"getTaxonomyOptions",value:function(){var e=Object(d.filter)(this.props.taxonomies,"show_cloud"),t={label:Object(r.__)("- Select -"),value:""},n=Object(d.map)(e,(function(e){return{value:e.slug,label:e.name}}));return[t].concat(Object(o.a)(n))}},{key:"setTaxonomy",value:function(e){(0,this.props.setAttributes)({taxonomy:e})}},{key:"toggleShowTagCounts",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({showTagCounts:!t.showTagCounts})}},{key:"render",value:function(){var e=this.props.attributes,t=e.taxonomy,n=e.showTagCounts,o=this.getTaxonomyOptions(),a=Object(b.createElement)(p.InspectorControls,null,Object(b.createElement)(m.PanelBody,{title:Object(r.__)("Tag Cloud Settings")},Object(b.createElement)(m.SelectControl,{label:Object(r.__)("Taxonomy"),options:o,value:t,onChange:this.setTaxonomy}),Object(b.createElement)(m.ToggleControl,{label:Object(r.__)("Show post counts"),checked:n,onChange:this.toggleShowTagCounts})));return Object(b.createElement)(b.Fragment,null,a,Object(b.createElement)(m.ServerSideRender,{key:"tag-cloud",block:"core/tag-cloud",attributes:e}))}}]),t}(b.Component),f=Object(h.withSelect)((function(e){return{taxonomies:e("core").getTaxonomies()}}))(g),O="core/tag-cloud",v={title:Object(r.__)("Tag Cloud"),description:Object(r.__)("A cloud of your most used tags."),icon:"tag",category:"widgets",supports:{html:!1,align:!0},edit:f,save:function(){return null}}},uz31:function(e,t,n){"use strict";n.r(t),n.d(t,"name",(function(){return k})),n.d(t,"settings",(function(){return E}));var r=n("l3Sj"),o=n("wx14"),a=n("vpQ4"),i=n("1OyB"),c=n("vuIU"),l=n("md7G"),s=n("foSv"),u=n("Ji7U"),b=n("JX7q"),d=n("GRId"),m=n("YLtl"),h=n("tI+e"),p=n("1ZqX"),g=n("axFQ"),f=n("K9lf"),O=n("RxS6"),v=function(e){function t(){var e;return Object(i.a)(this,t),(e=Object(l.a)(this,Object(s.a)(t).apply(this,arguments))).titleField=Object(d.createRef)(),e.editButton=Object(d.createRef)(),e.handleFormSubmit=e.handleFormSubmit.bind(Object(b.a)(Object(b.a)(e))),e.handleTitleChange=e.handleTitleChange.bind(Object(b.a)(Object(b.a)(e))),e.handleTitleKeyDown=e.handleTitleKeyDown.bind(Object(b.a)(Object(b.a)(e))),e}return Object(u.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){this.props.isEditing&&this.titleField.current&&this.titleField.current.select()}},{key:"componentDidUpdate",value:function(e){!e.isEditing&&this.props.isEditing&&this.titleField.current.select(),!e.isEditing&&!e.isSaving||this.props.isEditing||this.props.isSaving||this.editButton.current.focus()}},{key:"handleFormSubmit",value:function(e){e.preventDefault(),this.props.onSave()}},{key:"handleTitleChange",value:function(e){this.props.onChangeTitle(e.target.value)}},{key:"handleTitleKeyDown",value:function(e){e.keyCode===O.ESCAPE&&(e.stopPropagation(),this.props.onCancel())}},{key:"render",value:function(){var e=this.props,t=e.isEditing,n=e.title,o=e.isSaving,a=e.isEditDisabled,i=e.onEdit,c=e.instanceId;return Object(d.createElement)(d.Fragment,null,!t&&!o&&Object(d.createElement)("div",{className:"reusable-block-edit-panel"},Object(d.createElement)("b",{className:"reusable-block-edit-panel__info"},n),Object(d.createElement)(h.Button,{ref:this.editButton,isLarge:!0,className:"reusable-block-edit-panel__button",disabled:a,onClick:i},Object(r.__)("Edit"))),(t||o)&&Object(d.createElement)("form",{className:"reusable-block-edit-panel",onSubmit:this.handleFormSubmit},Object(d.createElement)("label",{htmlFor:"reusable-block-edit-panel__title-".concat(c),className:"reusable-block-edit-panel__label"},Object(r.__)("Name:")),Object(d.createElement)("input",{ref:this.titleField,type:"text",disabled:o,className:"reusable-block-edit-panel__title",value:n,onChange:this.handleTitleChange,onKeyDown:this.handleTitleKeyDown,id:"reusable-block-edit-panel__title-".concat(c)}),Object(d.createElement)(h.Button,{type:"submit",isLarge:!0,isBusy:o,disabled:!n||o,className:"reusable-block-edit-panel__button"},Object(r.__)("Save"))))}}]),t}(d.Component),j=Object(f.withInstanceId)(v);var y=function(e){var t=e.title,n=Object(r.sprintf)(Object(r.__)("Reusable Block: %s"),t);return Object(d.createElement)(h.Tooltip,{text:n},Object(d.createElement)("span",{className:"reusable-block-indicator"},Object(d.createElement)(h.Dashicon,{icon:"controls-repeat"})))},w=function(e){function t(e){var n,r=e.reusableBlock;return Object(i.a)(this,t),(n=Object(l.a)(this,Object(s.a)(t).apply(this,arguments))).startEditing=n.startEditing.bind(Object(b.a)(Object(b.a)(n))),n.stopEditing=n.stopEditing.bind(Object(b.a)(Object(b.a)(n))),n.setAttributes=n.setAttributes.bind(Object(b.a)(Object(b.a)(n))),n.setTitle=n.setTitle.bind(Object(b.a)(Object(b.a)(n))),n.save=n.save.bind(Object(b.a)(Object(b.a)(n))),r&&r.isTemporary?n.state={isEditing:!0,title:r.title,changedAttributes:{}}:n.state={isEditing:!1,title:null,changedAttributes:null},n}return Object(u.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){this.props.reusableBlock||this.props.fetchReusableBlock()}},{key:"startEditing",value:function(){var e=this.props.reusableBlock;this.setState({isEditing:!0,title:e.title,changedAttributes:{}})}},{key:"stopEditing",value:function(){this.setState({isEditing:!1,title:null,changedAttributes:null})}},{key:"setAttributes",value:function(e){this.setState((function(t){if(null!==t.changedAttributes)return{changedAttributes:Object(a.a)({},t.changedAttributes,e)}}))}},{key:"setTitle",value:function(e){this.setState({title:e})}},{key:"save",value:function(){var e=this.props,t=e.reusableBlock,n=e.onUpdateTitle,r=e.updateAttributes,o=e.block,a=e.onSave,i=this.state,c=i.title,l=i.changedAttributes;c!==t.title&&n(c),r(o.clientId,l),a(),this.stopEditing()}},{key:"render",value:function(){var e=this.props,t=e.isSelected,n=e.reusableBlock,i=e.block,c=e.isFetching,l=e.isSaving,s=e.canUpdateBlock,u=this.state,b=u.isEditing,p=u.title,f=u.changedAttributes;if(!n&&c)return Object(d.createElement)(h.Placeholder,null,Object(d.createElement)(h.Spinner,null));if(!n||!i)return Object(d.createElement)(h.Placeholder,null,Object(r.__)("Block has been deleted or is unavailable."));var O=Object(d.createElement)(g.BlockEdit,Object(o.a)({},this.props,{isSelected:b&&t,clientId:i.clientId,name:i.name,attributes:Object(a.a)({},i.attributes,f),setAttributes:b?this.setAttributes:m.noop}));return b||(O=Object(d.createElement)(h.Disabled,null,O)),Object(d.createElement)(d.Fragment,null,(t||b)&&Object(d.createElement)(j,{isEditing:b,title:null!==p?p:n.title,isSaving:l&&!n.isTemporary,isEditDisabled:!s,onEdit:this.startEditing,onChangeTitle:this.setTitle,onSave:this.save,onCancel:this.stopEditing}),!t&&!b&&Object(d.createElement)(y,{title:n.title}),O)}}]),t}(d.Component),_=Object(f.compose)([Object(p.withSelect)((function(e,t){var n=e("core/editor"),r=n.__experimentalGetReusableBlock,o=n.__experimentalIsFetchingReusableBlock,a=n.__experimentalIsSavingReusableBlock,i=e("core").canUser,c=e("core/block-editor").getBlock,l=t.attributes.ref,s=r(l);return{reusableBlock:s,isFetching:o(l),isSaving:a(l),block:s?c(s.clientId):null,canUpdateBlock:!!s&&!s.isTemporary&&!!i("update","blocks",l)}})),Object(p.withDispatch)((function(e,t){var n=e("core/editor"),r=n.__experimentalFetchReusableBlocks,o=n.__experimentalUpdateReusableBlockTitle,a=n.__experimentalSaveReusableBlock,i=e("core/block-editor").updateBlockAttributes,c=t.attributes.ref;return{fetchReusableBlock:Object(m.partial)(r,c),updateAttributes:i,onUpdateTitle:Object(m.partial)(o,c),onSave:Object(m.partial)(a,c)}}))])(w),k="core/block",E={title:Object(r.__)("Reusable Block"),category:"reusable",description:Object(r.__)("Create content, and save it for you and other contributors to reuse across your site. Update the block, and the changes apply everywhere its used."),attributes:{ref:{type:"number"}},supports:{customClassName:!1,html:!1,inserter:!1},edit:_,save:function(){return null}}},vpQ4:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("rePB");function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){Object(r.a)(e,t,n[t])}))}return e}},vuIU:function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,"a",(function(){return o}))},wx14:function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))},wy2R:function(e,t){!function(){e.exports=this.moment}()},xTGt:function(e,t){!function(){e.exports=this.wp.blob}()},yLpj: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},ywyh:function(e,t){!function(){e.exports=this.wp.apiFetch}()}});