[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/js/dist/ -> block-editor.min.js (source)

   1  /*! This file is auto-generated */
   2  this.wp=this.wp||{},this.wp.blockEditor=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=450)}({0:function(e,t){e.exports=window.wp.element},1:function(e,t){e.exports=window.wp.i18n},10:function(e,t,n){var r;
   3  /*!
   4    Copyright (c) 2018 Jed Watson.
   5    Licensed under the MIT License (MIT), see
   6    http://jedwatson.github.io/classnames
   7  */!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var c=typeof r;if("string"===c||"number"===c)e.push(r);else if(Array.isArray(r)){if(r.length){var i=o.apply(null,r);i&&e.push(i)}}else if("object"===c)if(r.toString===Object.prototype.toString)for(var a in r)n.call(r,a)&&r[a]&&e.push(a);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)}()},11:function(e,t){e.exports=window.wp.compose},117:function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(191)),c=r(n(192)),i=n(13),a=r(i),l=r(n(163)),s=r(n(194)),u={arr:Array.isArray,obj:function(e){return"[object Object]"===Object.prototype.toString.call(e)},fun:function(e){return"function"==typeof e},str:function(e){return"string"==typeof e},num:function(e){return"number"==typeof e},und:function(e){return void 0===e},nul:function(e){return null===e},set:function(e){return e instanceof Set},map:function(e){return e instanceof Map},equ:function(e,t){if(typeof e!=typeof t)return!1;if(u.str(e)||u.num(e))return e===t;if(u.obj(e)&&u.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;var n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!u.und(n)||e===t}};function d(){var e=i.useState(!1)[1];return i.useCallback((function(){return e((function(e){return!e}))}),[])}function b(e,t){return u.und(e)||u.nul(e)?t:e}function f(e){return u.und(e)?[]:u.arr(e)?e:[e]}function p(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return u.fun(e)?e.apply(void 0,n):e}function m(e){var t=function(e){return e.to,e.from,e.config,e.onStart,e.onRest,e.onFrame,e.children,e.reset,e.reverse,e.force,e.immediate,e.delay,e.attach,e.destroyed,e.interpolateTo,e.ref,e.lazy,c(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);if(u.und(t))return o({to:t},e);var n=Object.keys(e).reduce((function(n,r){var c;return u.und(t[r])?o({},n,((c={})[r]=e[r],c)):n}),{});return o({to:t},n)}var v,O,g=function(){function e(){this.payload=void 0,this.children=[]}var t=e.prototype;return t.getAnimatedValue=function(){return this.getValue()},t.getPayload=function(){return this.payload||this},t.attach=function(){},t.detach=function(){},t.getChildren=function(){return this.children},t.addChild=function(e){0===this.children.length&&this.attach(),this.children.push(e)},t.removeChild=function(e){var t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()},e}(),h=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).payload=[],t.attach=function(){return t.payload.forEach((function(e){return e instanceof g&&e.addChild(s(t))}))},t.detach=function(){return t.payload.forEach((function(e){return e instanceof g&&e.removeChild(s(t))}))},t}return l(t,e),t}(g),j=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).payload={},t.attach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof g&&e.addChild(s(t))}))},t.detach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof g&&e.removeChild(s(t))}))},t}l(t,e);var n=t.prototype;return n.getValue=function(e){void 0===e&&(e=!1);var t={};for(var n in this.payload){var r=this.payload[n];(!e||r instanceof g)&&(t[n]=r instanceof g?r[e?"getAnimatedValue":"getValue"]():r)}return t},n.getAnimatedValue=function(){return this.getValue(!0)},t}(g);function y(e,t){v={fn:e,transform:t}}function k(e){O=e}var _,E=function(e){return"undefined"!=typeof window?window.requestAnimationFrame(e):-1},w=function(e){"undefined"!=typeof window&&window.cancelAnimationFrame(e)};function S(e){_=e}var C,B=function(){return Date.now()};function I(e){C=e}var x,P,T=function(e){return e.current};function N(e){x=e}var D=Object.freeze({get applyAnimatedValues(){return v},injectApplyAnimatedValues:y,get colorNames(){return O},injectColorNames:k,get requestFrame(){return E},get cancelFrame(){return w},injectFrame:function(e,t){E=e,w=t},get interpolation(){return _},injectStringInterpolator:S,get now(){return B},injectNow:function(e){B=e},get defaultElement(){return C},injectDefaultElement:I,get animatedApi(){return T},injectAnimatedApi:function(e){T=e},get createAnimatedStyle(){return x},injectCreateAnimatedStyle:N,get manualFrameloop(){return P},injectManualFrameloop:function(e){P=e}}),A=function(e){function t(t,n){var r;return(r=e.call(this)||this).update=void 0,r.payload=t.style?o({},t,{style:x(t.style)}):t,r.update=n,r.attach(),r}return l(t,e),t}(j),L=!1,R=new Set,M=function e(){if(!L)return!1;var t=B(),n=R,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var c;if(r){if(o>=n.length)break;c=n[o++]}else{if((o=n.next()).done)break;c=o.value}for(var i=c,a=!1,l=0;l<i.configs.length;l++){for(var s=i.configs[l],u=void 0,d=void 0,b=0;b<s.animatedValues.length;b++){var f=s.animatedValues[b];if(!f.done){var p=s.fromValues[b],m=s.toValues[b],v=f.lastPosition,O=m instanceof g,h=Array.isArray(s.initialVelocity)?s.initialVelocity[b]:s.initialVelocity;if(O&&(m=m.getValue()),s.immediate)f.setValue(m),f.done=!0;else if("string"!=typeof p&&"string"!=typeof m){if(void 0!==s.duration)v=p+s.easing((t-f.startTime)/s.duration)*(m-p),u=t>=f.startTime+s.duration;else if(s.decay)v=p+h/(1-.998)*(1-Math.exp(-(1-.998)*(t-f.startTime))),(u=Math.abs(f.lastPosition-v)<.1)&&(m=v);else{d=void 0!==f.lastTime?f.lastTime:t,h=void 0!==f.lastVelocity?f.lastVelocity:s.initialVelocity,t>d+64&&(d=t);for(var j=Math.floor(t-d),y=0;y<j;++y){v+=1*(h+=1*((-s.tension*(v-m)+-s.friction*h)/s.mass)/1e3)/1e3}var k=!(!s.clamp||0===s.tension)&&(p<m?v>m:v<m),_=Math.abs(h)<=s.precision,w=0===s.tension||Math.abs(m-v)<=s.precision;u=k||_&&w,f.lastVelocity=h,f.lastTime=t}O&&!s.toValues[b].done&&(u=!1),u?(f.value!==m&&(v=m),f.done=!0):a=!0,f.setValue(v),f.lastPosition=v}else f.setValue(m),f.done=!0}}i.props.onFrame&&(i.values[s.name]=s.interpolation.getValue())}i.props.onFrame&&i.props.onFrame(i.values),a||(R.delete(i),i.stop(!0))}return R.size?P?P():E(e):L=!1,L};function F(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return F({range:e,output:t,extrapolate:n});if(_&&"string"==typeof e.output[0])return _(e);var r=e,o=r.output,c=r.range||[0,1],i=r.extrapolateLeft||r.extrapolate||"extend",a=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||function(e){return e};return function(e){var t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,c);return function(e,t,n,r,o,c,i,a,l){var s=l?l(e):e;if(s<t){if("identity"===i)return s;"clamp"===i&&(s=t)}if(s>n){if("identity"===a)return s;"clamp"===a&&(s=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?s=-s:n===1/0?s-=t:s=(s-t)/(n-t);s=c(s),r===-1/0?s=-s:o===1/0?s+=r:s=s*(o-r)+r;return s}(e,c[t],c[t+1],o[t],o[t+1],l,i,a,r.map)}}var V=function(e){function t(n,r,o,c){var i;return(i=e.call(this)||this).calc=void 0,i.payload=n instanceof h&&!(n instanceof t)?n.getPayload():Array.isArray(n)?n:[n],i.calc=F(r,o,c),i}l(t,e);var n=t.prototype;return n.getValue=function(){return this.calc.apply(this,this.payload.map((function(e){return e.getValue()})))},n.updateConfig=function(e,t,n){this.calc=F(e,t,n)},n.interpolate=function(e,n,r){return new t(this,e,n,r)},t}(h);var H=function(e){function t(t){var n;return(n=e.call(this)||this).animatedStyles=new Set,n.value=void 0,n.startPosition=void 0,n.lastPosition=void 0,n.lastVelocity=void 0,n.startTime=void 0,n.lastTime=void 0,n.done=!1,n.setValue=function(e,t){void 0===t&&(t=!0),n.value=e,t&&n.flush()},n.value=t,n.startPosition=t,n.lastPosition=t,n}l(t,e);var n=t.prototype;return n.flush=function(){0===this.animatedStyles.size&&function e(t,n){"update"in t?n.add(t):t.getChildren().forEach((function(t){return e(t,n)}))}(this,this.animatedStyles),this.animatedStyles.forEach((function(e){return e.update()}))},n.clearStyles=function(){this.animatedStyles.clear()},n.getValue=function(){return this.value},n.interpolate=function(e,t,n){return new V(this,e,t,n)},t}(g),z=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map((function(e){return new H(e)})),n}l(t,e);var n=t.prototype;return n.setValue=function(e,t){var n=this;void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((function(e,r){return n.payload[r].setValue(e,t)})):this.payload.forEach((function(n){return n.setValue(e,t)}))},n.getValue=function(){return this.payload.map((function(e){return e.getValue()}))},n.interpolate=function(e,t){return new V(this,e,t)},t}(h),G=0,U=function(){function e(){var e=this;this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=function(){return e.interpolations},this.id=G++}var t=e.prototype;return t.update=function(e){if(!e)return this;var t=m(e),n=t.delay,r=void 0===n?0:n,i=t.to,a=c(t,["delay","to"]);if(u.arr(i)||u.fun(i))this.queue.push(o({},a,{delay:r,to:i}));else if(i){var l={};Object.entries(i).forEach((function(e){var t,n=e[0],c=e[1],i=o({to:(t={},t[n]=c,t),delay:p(r,n)},a),s=l[i.delay]&&l[i.delay].to;l[i.delay]=o({},l[i.delay],i,{to:o({},s,i.to)})})),this.queue=Object.values(l)}return this.queue=this.queue.sort((function(e,t){return e.delay-t.delay})),this.diff(a),this},t.start=function(e){var t,n=this;if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((function(e){var t=e.from,r=void 0===t?{}:t,c=e.to,i=void 0===c?{}:c;u.obj(r)&&(n.merged=o({},r,n.merged)),u.obj(i)&&(n.merged=o({},n.merged,i))}));var r=this.local=++this.guid,i=this.localQueue=this.queue;this.queue=[],i.forEach((function(t,o){var a=t.delay,l=c(t,["delay"]),s=function(t){o===i.length-1&&r===n.guid&&t&&(n.idle=!0,n.props.onRest&&n.props.onRest(n.merged)),e&&e()},d=u.arr(l.to)||u.fun(l.to);a?setTimeout((function(){r===n.guid&&(d?n.runAsync(l,s):n.diff(l).start(s))}),a):d?n.runAsync(l,s):n.diff(l).start(s)}))}else u.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,R.has(t)||R.add(t),L||(L=!0,E(P||M));return this},t.stop=function(e){return this.listeners.forEach((function(t){return t(e)})),this.listeners=[],this},t.pause=function(e){var t;return this.stop(!0),e&&(t=this,R.has(t)&&R.delete(t)),this},t.runAsync=function(e,t){var n=this,r=(e.delay,c(e,["delay"])),i=this.local,a=Promise.resolve(void 0);if(u.arr(r.to))for(var l=function(e){var t=e,c=o({},r,m(r.to[t]));u.arr(c.config)&&(c.config=c.config[t]),a=a.then((function(){if(i===n.guid)return new Promise((function(e){return n.diff(c).start(e)}))}))},s=0;s<r.to.length;s++)l(s);else if(u.fun(r.to)){var d,b=0;a=a.then((function(){return r.to((function(e){var t=o({},r,m(e));if(u.arr(t.config)&&(t.config=t.config[b]),b++,i===n.guid)return d=new Promise((function(e){return n.diff(t).start(e)}))}),(function(e){return void 0===e&&(e=!0),n.stop(e)})).then((function(){return d}))}))}a.then(t)},t.diff=function(e){var t=this;this.props=o({},this.props,e);var n=this.props,r=n.from,c=void 0===r?{}:r,i=n.to,a=void 0===i?{}:i,l=n.config,s=void 0===l?{}:l,d=n.reverse,m=n.attach,v=n.reset,g=n.immediate;if(d){var h=[a,c];c=h[0],a=h[1]}this.merged=o({},c,this.merged,a),this.hasChanged=!1;var j=m&&m(this);if(this.animations=Object.entries(this.merged).reduce((function(e,n){var r=n[0],i=n[1],a=e[r]||{},l=u.num(i),d=u.str(i)&&!i.startsWith("#")&&!/\d/.test(i)&&!O[i],m=u.arr(i),h=!l&&!m&&!d,y=u.und(c[r])?i:c[r],k=l||m||d?i:1,E=p(s,r);j&&(k=j.animations[r].parent);var w,S=a.parent,C=a.interpolation,I=f(j?k.getPayload():k),x=i;h&&(x=_({range:[0,1],output:[i,i]})(1));var P,T=C&&C.getValue(),N=!u.und(S)&&a.animatedValues.some((function(e){return!e.done})),D=!u.equ(x,T),A=!u.equ(x,a.previous),L=!u.equ(E,a.config);if(v||A&&D||L){var R;if(l||d)S=C=a.parent||new H(y);else if(m)S=C=a.parent||new z(y);else if(h){var M=a.interpolation&&a.interpolation.calc(a.parent.value);M=void 0===M||v?y:M,a.parent?(S=a.parent).setValue(0,!1):S=new H(0);var F={output:[M,i]};a.interpolation?(C=a.interpolation,a.interpolation.updateConfig(F)):C=S.interpolate(F)}return I=f(j?k.getPayload():k),w=f(S.getPayload()),v&&!h&&S.setValue(y,!1),t.hasChanged=!0,w.forEach((function(e){e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=N?e.lastVelocity:void 0,e.lastTime=N?e.lastTime:void 0,e.startTime=B(),e.done=!1,e.animatedStyles.clear()})),p(g,r)&&S.setValue(h?k:i,!1),o({},e,((R={})[r]=o({},a,{name:r,parent:S,interpolation:C,animatedValues:w,toValues:I,previous:x,config:E,fromValues:f(S.getValue()),immediate:p(g,r),initialVelocity:b(E.velocity,0),clamp:b(E.clamp,!1),precision:b(E.precision,.01),tension:b(E.tension,170),friction:b(E.friction,26),mass:b(E.mass,1),duration:E.duration,easing:b(E.easing,(function(e){return e})),decay:E.decay}),R))}return D?e:(h&&(S.setValue(1,!1),C.updateConfig({output:[x,x]})),S.done=!0,t.hasChanged=!0,o({},e,((P={})[r]=o({},e[r],{previous:x}),P)))}),this.animations),this.hasChanged)for(var y in this.configs=Object.values(this.animations),this.values={},this.interpolations={},this.animations)this.interpolations[y]=this.animations[y].interpolation,this.values[y]=this.animations[y].interpolation.getValue();return this},t.destroy=function(){this.stop(),this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.local=0},e}(),W=function(e,t){var n=i.useRef(!1),r=i.useRef(),o=u.fun(t),c=i.useMemo((function(){var n;return r.current&&(r.current.map((function(e){return e.destroy()})),r.current=void 0),[new Array(e).fill().map((function(e,r){var c=new U,i=o?p(t,r,c):t[r];return 0===r&&(n=i.ref),c.update(i),n||c.start(),c})),n]}),[e]),a=c[0],l=c[1];r.current=a;i.useImperativeHandle(l,(function(){return{start:function(){return Promise.all(r.current.map((function(e){return new Promise((function(t){return e.start(t)}))})))},stop:function(e){return r.current.forEach((function(t){return t.stop(e)}))},get controllers(){return r.current}}}));var s=i.useMemo((function(){return function(e){return r.current.map((function(t,n){t.update(o?p(e,n,t):e[n]),l||t.start()}))}}),[e]);i.useEffect((function(){n.current?o||s(t):l||r.current.forEach((function(e){return e.start()}))})),i.useEffect((function(){return n.current=!0,function(){return r.current.forEach((function(e){return e.destroy()}))}}),[]);var d=r.current.map((function(e){return e.getValues()}));return o?[d,s,function(e){return r.current.forEach((function(t){return t.pause(e)}))}]:d},K=0,q=function(e,t){return("function"==typeof t?e.map(t):f(t)).map(String)},$=function(e){var t=e.items,n=e.keys,r=void 0===n?function(e){return e}:n,i=c(e,["items","keys"]);return t=f(void 0!==t?t:null),o({items:t,keys:q(t,r)},i)};function Y(e,t){var n=function(){if(o){if(c>=r.length)return"break";i=r[c++]}else{if((c=r.next()).done)return"break";i=c.value}var n=i.key,a=function(e){return e.key!==n};(u.und(t)||t===n)&&(e.current.instances.delete(n),e.current.transitions=e.current.transitions.filter(a),e.current.deleted=e.current.deleted.filter(a))},r=e.current.deleted,o=Array.isArray(r),c=0;for(r=o?r:r[Symbol.iterator]();;){var i;if("break"===n())break}e.current.forceUpdate()}var X=function(e){function t(t){var n;return void 0===t&&(t={}),n=e.call(this)||this,!t.transform||t.transform instanceof g||(t=v.transform(t)),n.payload=t,n}return l(t,e),t}(j),Q={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Z="[-+]?\\d*\\.?\\d+";function J(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var ee=new RegExp("rgb"+J(Z,Z,Z)),te=new RegExp("rgba"+J(Z,Z,Z,Z)),ne=new RegExp("hsl"+J(Z,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),re=new RegExp("hsla"+J(Z,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",Z)),oe=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ce=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ie=/^#([0-9a-fA-F]{6})$/,ae=/^#([0-9a-fA-F]{8})$/;function le(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}function se(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,c=le(o,r,e+1/3),i=le(o,r,e),a=le(o,r,e-1/3);return Math.round(255*c)<<24|Math.round(255*i)<<16|Math.round(255*a)<<8}function ue(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function de(e){return(parseFloat(e)%360+360)%360/360}function be(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function fe(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function pe(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=ie.exec(t))?parseInt(n[1]+"ff",16)>>>0:Q.hasOwnProperty(t)?Q[t]:(n=ee.exec(t))?(ue(n[1])<<24|ue(n[2])<<16|ue(n[3])<<8|255)>>>0:(n=te.exec(t))?(ue(n[1])<<24|ue(n[2])<<16|ue(n[3])<<8|be(n[4]))>>>0:(n=oe.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=ae.exec(t))?parseInt(n[1],16)>>>0:(n=ce.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=ne.exec(t))?(255|se(de(n[1]),fe(n[2]),fe(n[3])))>>>0:(n=re.exec(t))?(se(de(n[1]),fe(n[2]),fe(n[3]))|be(n[4]))>>>0:null;return null===r?e:"rgba("+((4278190080&(r=r||0))>>>24)+", "+((16711680&r)>>>16)+", "+((65280&r)>>>8)+", "+(255&r)/255+")"}var me=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ve=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Oe=new RegExp("("+Object.keys(Q).join("|")+")","g"),ge={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","Ms","Moz","O"];function je(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ge.hasOwnProperty(e)&&ge[e]?(""+t).trim():t+"px"}ge=Object.keys(ge).reduce((function(e,t){return he.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),ge);var ye={};N((function(e){return new X(e)})),I("div"),S((function(e){var t=e.output.map((function(e){return e.replace(ve,pe)})).map((function(e){return e.replace(Oe,pe)})),n=t[0].match(me).map((function(){return[]}));t.forEach((function(e){e.match(me).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(me).map((function(t,r){return F(o({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(me,(function(){return r[n++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,n,r,o){return"rgba("+Math.round(t)+", "+Math.round(n)+", "+Math.round(r)+", "+o+")"}))}})),k(Q),y((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,r=t.children,o=t.scrollTop,i=t.scrollLeft,a=c(t,["style","children","scrollTop","scrollLeft"]),l="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var s in void 0!==o&&(e.scrollTop=o),void 0!==i&&(e.scrollLeft=i),void 0!==r&&(e.textContent=r),n)if(n.hasOwnProperty(s)){var u=0===s.indexOf("--"),d=je(s,n[s],u);"float"===s&&(s="cssFloat"),u?e.style.setProperty(s,d):e.style[s]=d}for(var b in a){var f=l?b:ye[b]||(ye[b]=b.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(f)&&e.setAttribute(f,a[b])}}),(function(e){return e}));var ke,_e,Ee=(ke=function(e){return i.forwardRef((function(t,n){var r=d(),l=i.useRef(!0),s=i.useRef(null),b=i.useRef(null),f=i.useCallback((function(e){var t=s.current;s.current=new A(e,(function(){var e=!1;b.current&&(e=v.fn(b.current,s.current.getAnimatedValue())),b.current&&!1!==e||r()})),t&&t.detach()}),[]);i.useEffect((function(){return function(){l.current=!1,s.current&&s.current.detach()}}),[]),i.useImperativeHandle(n,(function(){return T(b,l,r)})),f(t);var p,m=s.current.getValue(),O=(m.scrollTop,m.scrollLeft,c(m,["scrollTop","scrollLeft"])),g=(p=e,!u.fun(p)||p.prototype instanceof a.Component?function(e){return b.current=function(e,t){return t&&(u.fun(t)?t(e):u.obj(t)&&(t.current=e)),e}(e,n)}:void 0);return a.createElement(e,o({},O,{ref:g}))}))},void 0===(_e=!1)&&(_e=!0),function(e){return(u.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=_e?t[0].toLowerCase()+t.substring(1):t;return e[n]=ke(n),e}),ke)}),we=Ee(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]);t.apply=Ee,t.config={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},t.update=M,t.animated=we,t.a=we,t.interpolate=function(e,t,n){return e&&new V(e,t,n)},t.Globals=D,t.useSpring=function(e){var t=u.fun(e),n=W(1,t?e:[e]),r=n[0],o=n[1],c=n[2];return t?[r[0],o,c]:r},t.useTrail=function(e,t){var n=i.useRef(!1),r=u.fun(t),c=p(t),a=i.useRef(),l=W(e,(function(e,t){return 0===e&&(a.current=[]),a.current.push(t),o({},c,{config:p(c.config,e),attach:e>0&&function(){return a.current[e-1]}})})),s=l[0],d=l[1],b=l[2],f=i.useMemo((function(){return function(e){return d((function(t,n){e.reverse;var r=e.reverse?t+1:t-1,i=a.current[r];return o({},e,{config:p(e.config||c.config,t),attach:i&&function(){return i}})}))}}),[e,c.reverse]);return i.useEffect((function(){n.current&&!r&&f(t)})),i.useEffect((function(){n.current=!0}),[]),r?[s,f,b]:s},t.useTransition=function(e,t,n){var r=o({items:e,keys:t||function(e){return e}},n),a=$(r),l=a.lazy,s=void 0!==l&&l,u=(a.unique,a.reset),b=void 0!==u&&u,f=(a.enter,a.leave,a.update,a.onDestroyed),m=(a.keys,a.items,a.onFrame),v=a.onRest,O=a.onStart,g=a.ref,h=c(a,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),j=d(),y=i.useRef(!1),k=i.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!y.current&&new Map,forceUpdate:j});return i.useImperativeHandle(r.ref,(function(){return{start:function(){return Promise.all(Array.from(k.current.instances).map((function(e){var t=e[1];return new Promise((function(e){return t.start(e)}))})))},stop:function(e){return Array.from(k.current.instances).forEach((function(t){return t[1].stop(e)}))},get controllers(){return Array.from(k.current.instances).map((function(e){return e[1]}))}}})),k.current=function(e,t){var n=e.first,r=e.prevProps,i=c(e,["first","prevProps"]),a=$(t),l=a.items,s=a.keys,u=a.initial,d=a.from,b=a.enter,f=a.leave,m=a.update,v=a.trail,O=void 0===v?0:v,g=a.unique,h=a.config,j=a.order,y=void 0===j?["enter","leave","update"]:j,k=$(r),_=k.keys,E=k.items,w=o({},i.current),S=[].concat(i.deleted),C=Object.keys(w),B=new Set(C),I=new Set(s),x=s.filter((function(e){return!B.has(e)})),P=i.transitions.filter((function(e){return!e.destroyed&&!I.has(e.originalKey)})).map((function(e){return e.originalKey})),T=s.filter((function(e){return B.has(e)})),N=-O;for(;y.length;){switch(y.shift()){case"enter":x.forEach((function(e,t){g&&S.find((function(t){return t.originalKey===e}))&&(S=S.filter((function(t){return t.originalKey!==e})));var r=s.indexOf(e),o=l[r],c=n&&void 0!==u?"initial":"enter";w[e]={slot:c,originalKey:e,key:g?String(e):K++,item:o,trail:N+=O,config:p(h,o,c),from:p(n&&void 0!==u?u||{}:d,o),to:p(b,o)}}));break;case"leave":P.forEach((function(e){var t=_.indexOf(e),n=E[t];S.unshift(o({},w[e],{slot:"leave",destroyed:!0,left:_[Math.max(0,t-1)],right:_[Math.min(_.length,t+1)],trail:N+=O,config:p(h,n,"leave"),to:p(f,n)})),delete w[e]}));break;case"update":T.forEach((function(e){var t=s.indexOf(e),n=l[t];w[e]=o({},w[e],{item:n,slot:"update",trail:N+=O,config:p(h,n,"update"),to:p(m,n)})}))}}var D=s.map((function(e){return w[e]}));return S.forEach((function(e){var t,n=e.left,r=(e.right,c(e,["left","right"]));-1!==(t=D.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),D=[].concat(D.slice(0,t),[r],D.slice(t))})),o({},i,{changed:x.length||P.length||T.length,first:n&&0===x.length,transitions:D,current:w,deleted:S,prevProps:t})}(k.current,r),k.current.changed&&k.current.transitions.forEach((function(e){var t=e.slot,n=e.from,r=e.to,c=e.config,i=e.trail,a=e.key,l=e.item;k.current.instances.has(a)||k.current.instances.set(a,new U);var u=k.current.instances.get(a),d=o({},h,{to:r,from:n,config:c,ref:g,onRest:function(n){k.current.mounted&&(e.destroyed&&(g||s||Y(k,a),f&&f(l)),!Array.from(k.current.instances).some((function(e){return!e[1].idle}))&&(g||s)&&k.current.deleted.length>0&&Y(k),v&&v(l,t,n))},onStart:O&&function(){return O(l,t)},onFrame:m&&function(e){return m(l,t,e)},delay:i,reset:b&&"enter"===t});u.update(d),k.current.paused||u.start()})),i.useEffect((function(){return k.current.mounted=y.current=!0,function(){k.current.mounted=y.current=!1,Array.from(k.current.instances).map((function(e){return e[1].destroy()})),k.current.instances.clear()}}),[]),k.current.transitions.map((function(e){var t=e.item,n=e.slot,r=e.key;return{item:t,key:r,state:n,props:k.current.instances.get(r).getValues()}}))},t.useChain=function(e,t,n){void 0===n&&(n=1e3);var r=i.useRef();i.useEffect((function(){u.equ(e,r.current)?e.forEach((function(e){var t=e.current;return t&&t.start()})):t?e.forEach((function(e,r){var c=e.current;if(c){var i=c.controllers;if(i.length){var a=n*t[r];i.forEach((function(e){e.queue=e.queue.map((function(e){return o({},e,{delay:e.delay+a})})),e.start()}))}}})):e.reduce((function(e,t,n){var r=t.current;return e.then((function(){return r.start()}))}),Promise.resolve()),r.current=e}))},t.useSprings=W},12:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(38);var o=n(28),c=n(39);function i(e,t){return Object(r.a)(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var r,o,c=[],i=!0,a=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(c.push(r.value),!t||c.length!==t);i=!0);}catch(e){a=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(a)throw o}}return c}}(e,t)||Object(o.a)(e,t)||Object(c.a)()}},127:function(e,t,n){"use strict";e.exports=n(195)},128:function(e,t){e.exports=window.wp.wordcount},13:function(e,t){e.exports=window.React},131:function(e,t){e.exports=window.wp.shortcode},133:function(e,t,n){"use strict";var r=n(5),o=n(14),c=n(0);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.a=function(e){var t=e.icon,n=e.size,a=void 0===n?24:n,l=Object(o.a)(e,["icon","size"]);return Object(c.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:a,height:a},l))}},14:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(45);function o(e,t){if(null==e)return{};var n,o,c=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(c[n]=e[n])}return c}},141:function(e,t,n){"use strict";var r=n(142);function o(){}function c(){}c.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,c,i){if(i!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:c,resetWarningCache:o};return n.PropTypes=n,n}},142:function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},15:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(24);var o=n(42),c=n(28);function i(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(o.a)(e)||Object(c.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},16:function(e,t){e.exports=window.regeneratorRuntime},160:function(e,t){e.exports=window.wp.tokenList},163:function(e,t,n){var r=n(193);e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)},e.exports.default=e.exports,e.exports.__esModule=!0},164:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}));t.a=c},165:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));t.a=c},166:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.3 5.6L9.9 16.9l-4.6-3.4-.9 1.2 5.8 4.3 9.3-12.6z"}));t.a=c},17:function(e,t){e.exports=window.wp.keycodes},18: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}))},181:function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},19:function(e,t){e.exports=window.wp.richText},191:function(e,t){function n(){return e.exports=n=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},e.exports.default=e.exports,e.exports.__esModule=!0,n.apply(this,arguments)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},192:function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(o[n]=e[n]);return o},e.exports.default=e.exports,e.exports.__esModule=!0},193:function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.default=e.exports,e.exports.__esModule=!0,n(t,r)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},194:function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.default=e.exports,e.exports.__esModule=!0},195:function(e,t,n){"use strict";var r=n(196);e.exports=function(e,t,n){n=n||{},9===t.nodeType&&(t=r.getWindow(t));var o=n.allowHorizontalScroll,c=n.onlyScrollIfNeeded,i=n.alignWithTop,a=n.alignWithLeft,l=n.offsetTop||0,s=n.offsetLeft||0,u=n.offsetBottom||0,d=n.offsetRight||0;o=void 0===o||o;var b=r.isWindow(t),f=r.offset(e),p=r.outerHeight(e),m=r.outerWidth(e),v=void 0,O=void 0,g=void 0,h=void 0,j=void 0,y=void 0,k=void 0,_=void 0,E=void 0,w=void 0;b?(k=t,w=r.height(k),E=r.width(k),_={left:r.scrollLeft(k),top:r.scrollTop(k)},j={left:f.left-_.left-s,top:f.top-_.top-l},y={left:f.left+m-(_.left+E)+d,top:f.top+p-(_.top+w)+u},h=_):(v=r.offset(t),O=t.clientHeight,g=t.clientWidth,h={left:t.scrollLeft,top:t.scrollTop},j={left:f.left-(v.left+(parseFloat(r.css(t,"borderLeftWidth"))||0))-s,top:f.top-(v.top+(parseFloat(r.css(t,"borderTopWidth"))||0))-l},y={left:f.left+m-(v.left+g+(parseFloat(r.css(t,"borderRightWidth"))||0))+d,top:f.top+p-(v.top+O+(parseFloat(r.css(t,"borderBottomWidth"))||0))+u}),j.top<0||y.top>0?!0===i?r.scrollTop(t,h.top+j.top):!1===i?r.scrollTop(t,h.top+y.top):j.top<0?r.scrollTop(t,h.top+j.top):r.scrollTop(t,h.top+y.top):c||((i=void 0===i||!!i)?r.scrollTop(t,h.top+j.top):r.scrollTop(t,h.top+y.top)),o&&(j.left<0||y.left>0?!0===a?r.scrollLeft(t,h.left+j.left):!1===a?r.scrollLeft(t,h.left+y.left):j.left<0?r.scrollLeft(t,h.left+j.left):r.scrollLeft(t,h.left+y.left):c||((a=void 0===a||!!a)?r.scrollLeft(t,h.left+j.left):r.scrollLeft(t,h.left+y.left)))}},196:function(e,t,n){"use strict";var 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},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function c(e,t){var n=e["page"+(t?"Y":"X")+"Offset"],r="scroll"+(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}function i(e){return c(e)}function a(e){return c(e,!0)}function l(e){var t=function(e){var t,n=void 0,r=void 0,o=e.ownerDocument,c=o.body,i=o&&o.documentElement;return n=(t=e.getBoundingClientRect()).left,r=t.top,{left:n-=i.clientLeft||c.clientLeft||0,top:r-=i.clientTop||c.clientTop||0}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=i(r),t.top+=a(r),t}var s=new RegExp("^("+/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source+")(?!px)[a-z%]+$","i"),u=/^(top|right|bottom|left)$/,d="left";var b=void 0;function f(e,t){for(var n=0;n<e.length;n++)t(e[n])}function p(e){return"border-box"===b(e,"boxSizing")}"undefined"!=typeof window&&(b=window.getComputedStyle?function(e,t,n){var r="",o=e.ownerDocument,c=n||o.defaultView.getComputedStyle(e,null);return c&&(r=c.getPropertyValue(t)||c[t]),r}:function(e,t){var n=e.currentStyle&&e.currentStyle[t];if(s.test(n)&&!u.test(t)){var r=e.style,o=r[d],c=e.runtimeStyle[d];e.runtimeStyle[d]=e.currentStyle[d],r[d]="fontSize"===t?"1em":n||0,n=r.pixelLeft+"px",r[d]=o,e.runtimeStyle[d]=c}return""===n?"auto":n});var m=["margin","border","padding"];function v(e,t,n){var r={},o=e.style,c=void 0;for(c in t)t.hasOwnProperty(c)&&(r[c]=o[c],o[c]=t[c]);for(c in n.call(e),t)t.hasOwnProperty(c)&&(o[c]=r[c])}function O(e,t,n){var r=0,o=void 0,c=void 0,i=void 0;for(c=0;c<t.length;c++)if(o=t[c])for(i=0;i<n.length;i++){var a=void 0;a="border"===o?o+n[i]+"Width":o+n[i],r+=parseFloat(b(e,a))||0}return r}function g(e){return null!=e&&e==e.window}var h={};function j(e,t,n){if(g(e))return"width"===t?h.viewportWidth(e):h.viewportHeight(e);if(9===e.nodeType)return"width"===t?h.docWidth(e):h.docHeight(e);var r="width"===t?["Left","Right"]:["Top","Bottom"],o="width"===t?e.offsetWidth:e.offsetHeight,c=(b(e),p(e)),i=0;(null==o||o<=0)&&(o=void 0,(null==(i=b(e,t))||Number(i)<0)&&(i=e.style[t]||0),i=parseFloat(i)||0),void 0===n&&(n=c?1:-1);var a=void 0!==o||c,l=o||i;if(-1===n)return a?l-O(e,["border","padding"],r):i;if(a){var s=2===n?-O(e,["border"],r):O(e,["margin"],r);return l+(1===n?0:s)}return i+O(e,m.slice(n),r)}f(["Width","Height"],(function(e){h["doc"+e]=function(t){var n=t.document;return Math.max(n.documentElement["scroll"+e],n.body["scroll"+e],h["viewport"+e](n))},h["viewport"+e]=function(t){var n="client"+e,r=t.document,o=r.body,c=r.documentElement[n];return"CSS1Compat"===r.compatMode&&c||o&&o[n]||c}}));var y={position:"absolute",visibility:"hidden",display:"block"};function k(e){var t=void 0,n=arguments;return 0!==e.offsetWidth?t=j.apply(void 0,n):v(e,y,(function(){t=j.apply(void 0,n)})),t}function _(e,t,n){var r=n;if("object"!==(void 0===t?"undefined":o(t)))return void 0!==r?("number"==typeof r&&(r+="px"),void(e.style[t]=r)):b(e,t);for(var c in t)t.hasOwnProperty(c)&&_(e,c,t[c])}f(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);h["outer"+t]=function(t,n){return t&&k(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];h[e]=function(t,r){if(void 0===r)return t&&k(t,e,-1);if(t){b(t);return p(t)&&(r+=O(t,["padding","border"],n)),_(t,e,r)}}})),e.exports=r({getWindow:function(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},offset:function(e,t){if(void 0===t)return l(e);!function(e,t){"static"===_(e,"position")&&(e.style.position="relative");var n=l(e),r={},o=void 0,c=void 0;for(c in t)t.hasOwnProperty(c)&&(o=parseFloat(_(e,c))||0,r[c]=o+t[c]-n[c]);_(e,r)}(e,t)},isWindow:g,each:f,css:_,clone:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);if(e.overflow)for(var n in e)e.hasOwnProperty(n)&&(t.overflow[n]=e.overflow[n]);return t},scrollLeft:function(e,t){if(g(e)){if(void 0===t)return i(e);window.scrollTo(t,a(e))}else{if(void 0===t)return e.scrollLeft;e.scrollLeft=t}},scrollTop:function(e,t){if(g(e)){if(void 0===t)return a(e);window.scrollTo(i(e),t)}else{if(void 0===t)return e.scrollTop;e.scrollTop=t}},viewportWidth:0,viewportHeight:0},h)},197:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};t.__esModule=!0;var a=n(13),l=n(32),s=n(198),u=n(199),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={lineHeight:null},t.textarea=null,t.onResize=function(e){t.props.onResize&&t.props.onResize(e)},t.updateLineHeight=function(){t.textarea&&t.setState({lineHeight:u(t.textarea)})},t.onChange=function(e){var n=t.props.onChange;t.currentValue=e.currentTarget.value,n&&n(e)},t}return o(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.maxRows,r=t.async;"number"==typeof n&&this.updateLineHeight(),"number"==typeof n||r?setTimeout((function(){return e.textarea&&s(e.textarea)})):this.textarea&&s(this.textarea),this.textarea&&this.textarea.addEventListener("autosize:resized",this.onResize)},t.prototype.componentWillUnmount=function(){this.textarea&&(this.textarea.removeEventListener("autosize:resized",this.onResize),s.destroy(this.textarea))},t.prototype.render=function(){var e=this,t=this.props,n=(t.onResize,t.maxRows),r=(t.onChange,t.style),o=(t.innerRef,t.children),l=i(t,["onResize","maxRows","onChange","style","innerRef","children"]),s=this.state.lineHeight,u=n&&s?s*n:null;return a.createElement("textarea",c({},l,{onChange:this.onChange,style:u?c({},r,{maxHeight:u}):r,ref:function(t){e.textarea=t,"function"==typeof e.props.innerRef?e.props.innerRef(t):e.props.innerRef&&(e.props.innerRef.current=t)}}),o)},t.prototype.componentDidUpdate=function(){this.textarea&&s.update(this.textarea)},t.defaultProps={rows:1,async:!1},t.propTypes={rows:l.number,maxRows:l.number,onResize:l.func,innerRef:l.any,async:l.bool},t}(a.Component);t.TextareaAutosize=a.forwardRef((function(e,t){return a.createElement(d,c({},e,{innerRef:t}))}))},198:function(e,t,n){var r,o,c;
   8  /*!
   9      autosize 4.0.2
  10      license: MIT
  11      http://www.jacklmoore.com/autosize
  12  */o=[e,t],void 0===(c="function"==typeof(r=function(e,t){"use strict";var n,r,o="function"==typeof Map?new Map:(n=[],r=[],{has:function(e){return n.indexOf(e)>-1},get:function(e){return r[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),r.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),r.splice(t,1))}}),c=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){c=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function i(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!o.has(e)){var t,n=null,r=null,i=null,a=function(){e.clientWidth!==r&&d()},l=function(t){window.removeEventListener("resize",a,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",l,!1),e.removeEventListener("autosize:update",d,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),o.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",l,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",a,!1),e.addEventListener("input",d,!1),e.addEventListener("autosize:update",d,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",o.set(e,{destroy:l,update:d}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),d()}function s(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function u(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),o=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",r=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),o&&(document.documentElement.scrollTop=o)}}function d(){u();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(r<t?"hidden"===n.overflowY&&(s("scroll"),u(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(s("hidden"),u(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),i!==r){i=r;var o=c("autosize:resized");try{e.dispatchEvent(o)}catch(e){}}}}function a(e){var t=o.get(e);t&&t.destroy()}function l(e){var t=o.get(e);t&&t.update()}var s=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((s=function(e){return e}).destroy=function(e){return e},s.update=function(e){return e}):((s=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return i(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],a),e},s.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],l),e}),t.default=s,e.exports=t.default})?r.apply(t,o):r)||(e.exports=c)},199:function(e,t,n){var r=n(200);e.exports=function(e){var t=r(e,"line-height"),n=parseFloat(t,10);if(t===n+""){var o=e.style.lineHeight;e.style.lineHeight=t+"em",t=r(e,"line-height"),n=parseFloat(t,10),o?e.style.lineHeight=o:delete e.style.lineHeight}if(-1!==t.indexOf("pt")?(n*=4,n/=3):-1!==t.indexOf("mm")?(n*=96,n/=25.4):-1!==t.indexOf("cm")?(n*=96,n/=2.54):-1!==t.indexOf("in")?n*=96:-1!==t.indexOf("pc")&&(n*=16),n=Math.round(n),"normal"===t){var c=e.nodeName,i=document.createElement(c);i.innerHTML="&nbsp;","TEXTAREA"===c.toUpperCase()&&i.setAttribute("rows","1");var a=r(e,"font-size");i.style.fontSize=a,i.style.padding="0px",i.style.border="0px";var l=document.body;l.appendChild(i),n=i.offsetHeight,l.removeChild(i)}return n}},2:function(e,t){e.exports=window.lodash},200:function(e,t){e.exports=function(e,t,n){return((n=window.getComputedStyle)?n(e):e.currentStyle)[t.replace(/-(\w)/gi,(function(e,t){return t.toUpperCase()}))]}},201:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"}));t.a=c},217:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"}));t.a=c},218:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));t.a=c},219:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"}));t.a=c},22: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}))},220:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));t.a=c},221:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));t.a=c},222:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));t.a=c},223:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(o.Path,{d:"M6.734 16.106l2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.157 1.093-1.027-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734z"}));t.a=c},224:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"}));t.a=c},24:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},25: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}))},26: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}))},27:function(e,t){e.exports=window.wp.dom},277:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"}));t.a=c},28:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(24);function o(e,t){if(e){if("string"==typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},280:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.diffChars=function(e,t,n){return o.diff(e,t,n)},t.characterDiff=void 0;var o=new(((r=n(310))&&r.__esModule?r:{default:r}).default);t.characterDiff=o},281:function(e,t,n){"use strict";t.match=function(e,t){return l(e).some((function(e){var n=e.inverse,r="all"===e.type||t.type===e.type;if(r&&n||!r&&!n)return!1;var o=e.expressions.every((function(e){var n=e.feature,r=e.modifier,o=e.value,c=t[n];if(!c)return!1;switch(n){case"orientation":case"scan":return c.toLowerCase()===o.toLowerCase();case"width":case"height":case"device-width":case"device-height":o=d(o),c=d(c);break;case"resolution":o=u(o),c=u(c);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":o=s(o),c=s(c);break;case"grid":case"color":case"color-index":case"monochrome":o=parseInt(o,10)||1,c=parseInt(c,10)||0}switch(r){case"min":return c>=o;case"max":return c<=o;default:return c===o}}));return o&&!n||!o&&n}))},t.parse=l;var r=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,o=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,c=/^(?:(min|max)-)?(.+)/,i=/(em|rem|px|cm|mm|in|pt|pc)?$/,a=/(dpi|dpcm|dppx)?$/;function l(e){return e.split(",").map((function(e){var t=(e=e.trim()).match(r),n=t[1],i=t[2],a=t[3]||"",l={};return l.inverse=!!n&&"not"===n.toLowerCase(),l.type=i?i.toLowerCase():"all",a=a.match(/\([^\)]+\)/g)||[],l.expressions=a.map((function(e){var t=e.match(o),n=t[1].toLowerCase().match(c);return{modifier:n[1],feature:n[2],value:t[2]}})),l}))}function s(e){var t,n=Number(e);return n||(n=(t=e.match(/^(\d+)\s*\/\s*(\d+)$/))[1]/t[2]),n}function u(e){var t=parseFloat(e);switch(String(e).match(a)[1]){case"dpcm":return t/2.54;case"dppx":return 96*t;default:return t}}function d(e){var t=parseFloat(e);switch(String(e).match(i)[1]){case"em":case"rem":return 16*t;case"cm":return 96*t/2.54;case"mm":return 96*t/2.54/10;case"in":return 96*t;case"pt":return 72*t;case"pc":return 72*t/12;default:return t}}},282:function(e,t){var n=e.exports=function(e){return new r(e)};function r(e){this.value=e}function o(e,t,n){var r=[],o=[],a=!0;return function e(d){var b=n?c(d):d,f={},p=!0,m={node:b,node_:d,path:[].concat(r),parent:o[o.length-1],parents:o,key:r.slice(-1)[0],isRoot:0===r.length,level:r.length,circular:null,update:function(e,t){m.isRoot||(m.parent.node[m.key]=e),m.node=e,t&&(p=!1)},delete:function(e){delete m.parent.node[m.key],e&&(p=!1)},remove:function(e){l(m.parent.node)?m.parent.node.splice(m.key,1):delete m.parent.node[m.key],e&&(p=!1)},keys:null,before:function(e){f.before=e},after:function(e){f.after=e},pre:function(e){f.pre=e},post:function(e){f.post=e},stop:function(){a=!1},block:function(){p=!1}};if(!a)return m;function v(){if("object"==typeof m.node&&null!==m.node){m.keys&&m.node_===m.node||(m.keys=i(m.node)),m.isLeaf=0==m.keys.length;for(var e=0;e<o.length;e++)if(o[e].node_===d){m.circular=o[e];break}}else m.isLeaf=!0,m.keys=null;m.notLeaf=!m.isLeaf,m.notRoot=!m.isRoot}v();var O=t.call(m,m.node);return void 0!==O&&m.update&&m.update(O),f.before&&f.before.call(m,m.node),p?("object"!=typeof m.node||null===m.node||m.circular||(o.push(m),v(),s(m.keys,(function(t,o){r.push(t),f.pre&&f.pre.call(m,m.node[t],t);var c=e(m.node[t]);n&&u.call(m.node,t)&&(m.node[t]=c.node),c.isLast=o==m.keys.length-1,c.isFirst=0==o,f.post&&f.post.call(m,c),r.pop()})),o.pop()),f.after&&f.after.call(m,m.node),m):m}(e).node}function c(e){if("object"==typeof e&&null!==e){var t;if(l(e))t=[];else if("[object Date]"===a(e))t=new Date(e.getTime?e.getTime():e);else if(function(e){return"[object RegExp]"===a(e)}(e))t=new RegExp(e);else if(function(e){return"[object Error]"===a(e)}(e))t={message:e.message};else if(function(e){return"[object Boolean]"===a(e)}(e))t=new Boolean(e);else if(function(e){return"[object Number]"===a(e)}(e))t=new Number(e);else if(function(e){return"[object String]"===a(e)}(e))t=new String(e);else if(Object.create&&Object.getPrototypeOf)t=Object.create(Object.getPrototypeOf(e));else if(e.constructor===Object)t={};else{var n=e.constructor&&e.constructor.prototype||e.__proto__||{},r=function(){};r.prototype=n,t=new r}return s(i(e),(function(n){t[n]=e[n]})),t}return e}r.prototype.get=function(e){for(var t=this.value,n=0;n<e.length;n++){var r=e[n];if(!t||!u.call(t,r)){t=void 0;break}t=t[r]}return t},r.prototype.has=function(e){for(var t=this.value,n=0;n<e.length;n++){var r=e[n];if(!t||!u.call(t,r))return!1;t=t[r]}return!0},r.prototype.set=function(e,t){for(var n=this.value,r=0;r<e.length-1;r++){var o=e[r];u.call(n,o)||(n[o]={}),n=n[o]}return n[e[r]]=t,t},r.prototype.map=function(e){return o(this.value,e,!0)},r.prototype.forEach=function(e){return this.value=o(this.value,e,!1),this.value},r.prototype.reduce=function(e,t){var n=1===arguments.length,r=n?this.value:t;return this.forEach((function(t){this.isRoot&&n||(r=e.call(this,r,t))})),r},r.prototype.paths=function(){var e=[];return this.forEach((function(t){e.push(this.path)})),e},r.prototype.nodes=function(){var e=[];return this.forEach((function(t){e.push(this.node)})),e},r.prototype.clone=function(){var e=[],t=[];return function n(r){for(var o=0;o<e.length;o++)if(e[o]===r)return t[o];if("object"==typeof r&&null!==r){var a=c(r);return e.push(r),t.push(a),s(i(r),(function(e){a[e]=n(r[e])})),e.pop(),t.pop(),a}return r}(this.value)};var i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};function a(e){return Object.prototype.toString.call(e)}var l=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},s=function(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n<e.length;n++)t(e[n],n,e)};s(i(r.prototype),(function(e){n[e]=function(t){var n=[].slice.call(arguments,1),o=new r(t);return o[e].apply(o,n)}}));var u=Object.hasOwnProperty||function(e,t){return t in e}},29:function(e,t){e.exports=window.wp.url},3:function(e,t){e.exports=window.wp.components},30:function(e,t){e.exports=window.wp.hooks},303:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M9.1 9v-.5c0-.6.2-1.1.7-1.4.5-.3 1.2-.5 2-.5.7 0 1.4.1 2.1.3.7.2 1.4.5 2.1.9l.2-1.9c-.6-.3-1.2-.5-1.9-.7-.8-.1-1.6-.2-2.4-.2-1.5 0-2.7.3-3.6 1-.8.7-1.2 1.5-1.2 2.6V9h2zM20 12H4v1h8.3c.3.1.6.2.8.3.5.2.9.5 1.1.8.3.3.4.7.4 1.2 0 .7-.2 1.1-.8 1.5-.5.3-1.2.5-2.1.5-.8 0-1.6-.1-2.4-.3-.8-.2-1.5-.5-2.2-.8L7 18.1c.5.2 1.2.4 2 .6.8.2 1.6.3 2.4.3 1.7 0 3-.3 3.9-1 .9-.7 1.3-1.6 1.3-2.8 0-.9-.2-1.7-.7-2.2H20v-1z"}));t.a=c},304:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M4 19.8h8.9v-1.5H4v1.5zm8.9-15.6H4v1.5h8.9V4.2zm-8.9 7v1.5h16v-1.5H4z"}));t.a=c},305:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M16.4 4.2H7.6v1.5h8.9V4.2zM4 11.2v1.5h16v-1.5H4zm3.6 8.6h8.9v-1.5H7.6v1.5z"}));t.a=c},306:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M11.1 19.8H20v-1.5h-8.9v1.5zm0-15.6v1.5H20V4.2h-8.9zM4 12.8h16v-1.5H4v1.5z"}));t.a=c},307:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}));t.a=c},308:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));t.a=c},309:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));t.a=c},310:function(e,t,n){"use strict";function r(){}function o(e,t,n,r,o){for(var c=0,i=t.length,a=0,l=0;c<i;c++){var s=t[c];if(s.removed){if(s.value=e.join(r.slice(l,l+s.count)),l+=s.count,c&&t[c-1].added){var u=t[c-1];t[c-1]=t[c],t[c]=u}}else{if(!s.added&&o){var d=n.slice(a,a+s.count);d=d.map((function(e,t){var n=r[l+t];return n.length>e.length?n:e})),s.value=e.join(d)}else s.value=e.join(n.slice(a,a+s.count));a+=s.count,s.added||(l+=s.count)}}var b=t[i-1];return i>1&&"string"==typeof b.value&&(b.added||b.removed)&&e.equals("",b.value)&&(t[i-2].value+=b.value,t.pop()),t}function c(e){return{newPos:e.newPos,components:e.components.slice(0)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,r.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.callback;"function"==typeof n&&(r=n,n={}),this.options=n;var i=this;function a(e){return r?(setTimeout((function(){r(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var l=(t=this.removeEmpty(this.tokenize(t))).length,s=e.length,u=1,d=l+s,b=[{newPos:-1,components:[]}],f=this.extractCommon(b[0],t,e,0);if(b[0].newPos+1>=l&&f+1>=s)return a([{value:this.join(t),count:t.length}]);function p(){for(var n=-1*u;n<=u;n+=2){var r=void 0,d=b[n-1],f=b[n+1],p=(f?f.newPos:0)-n;d&&(b[n-1]=void 0);var m=d&&d.newPos+1<l,v=f&&0<=p&&p<s;if(m||v){if(!m||v&&d.newPos<f.newPos?(r=c(f),i.pushComponent(r.components,void 0,!0)):((r=d).newPos++,i.pushComponent(r.components,!0,void 0)),p=i.extractCommon(r,t,e,n),r.newPos+1>=l&&p+1>=s)return a(o(i,r.components,t,e,i.useLongestToken));b[n]=r}else b[n]=void 0}u++}if(r)!function e(){setTimeout((function(){if(u>d)return r();p()||e()}),0)}();else for(;u<=d;){var m=p();if(m)return m}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){for(var o=t.length,c=n.length,i=e.newPos,a=i-r,l=0;i+1<o&&a+1<c&&this.equals(t[i+1],n[a+1]);)i++,a++,l++;return l&&e.components.push({count:l}),e.newPos=i,a},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}}},311:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"}));t.a=c},312:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M9.737 18.011L3.98 12.255l5.734-6.28 1.107 1.012-4.103 4.494h13.3v1.5H6.828l3.97 3.97-1.06 1.06z"}));t.a=c},32:function(e,t,n){e.exports=n(141)()},33:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(55);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&&Object(r.a)(e,t)}},34:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(59),o=n.n(r),c=n(18);function i(e,t){return!t||"object"!==o()(t)&&"function"!=typeof t?Object(c.a)(e):t}},35:function(e,t){e.exports=window.wp.deprecated},38:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},39:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,"a",(function(){return r}))},4:function(e,t){e.exports=window.wp.data},40:function(e,t,n){"use strict";var r,o;function c(e){return[e]}function i(){var e={clear:function(){e.head=null}};return e}function a(e,t,n){var r;if(e.length!==t.length)return!1;for(r=n;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}r={},o="undefined"!=typeof WeakMap,t.a=function(e,t){var n,l;function s(){n=o?new WeakMap:i()}function u(){var n,r,o,c,i,s=arguments.length;for(c=new Array(s),o=0;o<s;o++)c[o]=arguments[o];for(i=t.apply(null,c),(n=l(i)).isUniqueByDependants||(n.lastDependants&&!a(i,n.lastDependants,0)&&n.clear(),n.lastDependants=i),r=n.head;r;){if(a(r.args,c,1))return r!==n.head&&(r.prev.next=r.next,r.next&&(r.next.prev=r.prev),r.next=n.head,r.prev=null,n.head.prev=r,n.head=r),r.val;r=r.next}return r={val:e.apply(null,c)},c[0]=null,r.args=c,n.head&&(n.head.prev=r,r.next=n.head),n.head=r,r.val}return t||(t=c),l=o?function(e){var t,o,c,a,l,s=n,u=!0;for(t=0;t<e.length;t++){if(o=e[t],!(l=o)||"object"!=typeof l){u=!1;break}s.has(o)?s=s.get(o):(c=new WeakMap,s.set(o,c),s=c)}return s.has(r)||((a=i()).isUniqueByDependants=u,s.set(r,a)),s.get(r)}:function(){return n},u.getDependants=t,u.clear=s,s(),u}},42:function(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,"a",(function(){return r}))},43:function(e,t){e.exports=window.wp.blob},45:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},450:function(e,t,n){"use strict";n.r(t),n.d(t,"__experimentalGetColorClassesAndStyles",(function(){return da})),n.d(t,"__experimentalUseColorProps",(function(){return ba})),n.d(t,"getColorClassName",(function(){return xo})),n.d(t,"getColorObjectByAttributeValues",(function(){return Bo})),n.d(t,"getColorObjectByColorValue",(function(){return Io})),n.d(t,"createCustomColorsHOC",(function(){return Sa})),n.d(t,"withColors",(function(){return Ca})),n.d(t,"__experimentalUseColors",(function(){return Ga})),n.d(t,"__experimentalGetGradientClass",(function(){return To})),n.d(t,"getGradientValueBySlug",(function(){return No})),n.d(t,"__experimentalGetGradientObjectByGradientValue",(function(){return Do})),n.d(t,"getGradientSlugByValue",(function(){return Ao})),n.d(t,"__experimentalUseGradient",(function(){return Lo})),n.d(t,"getFontSize",(function(){return Ii})),n.d(t,"getFontSizeClass",(function(){return Pi})),n.d(t,"getFontSizeObjectByValue",(function(){return xi})),n.d(t,"FontSizePicker",(function(){return Ti})),n.d(t,"withFontSizes",(function(){return $a})),n.d(t,"AlignmentControl",(function(){return rl})),n.d(t,"AlignmentToolbar",(function(){return ol})),n.d(t,"Autocomplete",(function(){return kl})),n.d(t,"BlockAlignmentControl",(function(){return $r})),n.d(t,"BlockAlignmentToolbar",(function(){return Yr})),n.d(t,"__experimentalBlockFullHeightAligmentControl",(function(){return El})),n.d(t,"__experimentalBlockAlignmentMatrixControl",(function(){return wl})),n.d(t,"BlockBreadcrumb",(function(){return Bl})),n.d(t,"BlockContextProvider",(function(){return Tl})),n.d(t,"BlockControls",(function(){return Cr})),n.d(t,"BlockFormatControls",(function(){return Sr})),n.d(t,"BlockColorsStyleSelector",(function(){return Ll})),n.d(t,"BlockEdit",(function(){return Fl})),n.d(t,"useBlockEditContext",(function(){return h})),n.d(t,"BlockIcon",(function(){return hl})),n.d(t,"BlockNavigationDropdown",(function(){return Of})),n.d(t,"__experimentalBlockNavigationBlockFill",(function(){return tf})),n.d(t,"__experimentalBlockNavigationEditor",(function(){return Nf})),n.d(t,"__experimentalBlockNavigationTree",(function(){return pf})),n.d(t,"__experimentalBlockVariationPicker",(function(){return Af})),n.d(t,"__experimentalBlockVariationTransforms",(function(){return Mf})),n.d(t,"BlockVerticalAlignmentToolbar",(function(){return $f})),n.d(t,"BlockVerticalAlignmentControl",(function(){return qf})),n.d(t,"__experimentalBorderStyleControl",(function(){return oc})),n.d(t,"ButtonBlockerAppender",(function(){return Xu})),n.d(t,"ColorPalette",(function(){return Zf})),n.d(t,"ColorPaletteControl",(function(){return Jf})),n.d(t,"ContrastChecker",(function(){return wc})),n.d(t,"__experimentalGradientPicker",(function(){return np})),n.d(t,"__experimentalGradientPickerControl",(function(){return rp})),n.d(t,"__experimentalGradientPickerPanel",(function(){return op})),n.d(t,"__experimentalFontAppearanceControl",(function(){return mi})),n.d(t,"__experimentalFontFamilyControl",(function(){return ki})),n.d(t,"__experimentalColorGradientControl",(function(){return Wo})),n.d(t,"__experimentalPanelColorGradientSettings",(function(){return _c})),n.d(t,"__experimentalImageSizeControl",(function(){return ip})),n.d(t,"InnerBlocks",(function(){return hp})),n.d(t,"__experimentalUseInnerBlocksProps",(function(){return gp})),n.d(t,"InspectorAdvancedControls",(function(){return ao})),n.d(t,"InspectorControls",(function(){return fo})),n.d(t,"JustifyToolbar",(function(){return Cp})),n.d(t,"JustifyContentControl",(function(){return Sp})),n.d(t,"__experimentalLinkControl",(function(){return rm})),n.d(t,"__experimentalLinkControlSearchInput",(function(){return Xp})),n.d(t,"__experimentalLinkControlSearchResults",(function(){return Fp})),n.d(t,"__experimentalLinkControlSearchItem",(function(){return Mp})),n.d(t,"LineHeightControl",(function(){return li})),n.d(t,"MediaReplaceFlow",(function(){return lm})),n.d(t,"MediaPlaceholder",(function(){return pm})),n.d(t,"MediaUpload",(function(){return im})),n.d(t,"MediaUploadCheck",(function(){return am})),n.d(t,"PanelColorSettings",(function(){return Ta})),n.d(t,"PlainText",(function(){return Om})),n.d(t,"__experimentalResponsiveBlockControl",(function(){return hm})),n.d(t,"RichText",(function(){return Tf})),n.d(t,"RichTextShortcut",(function(){return jm})),n.d(t,"RichTextToolbarButton",(function(){return ym})),n.d(t,"__unstableRichTextInputEvent",(function(){return _m})),n.d(t,"ToolSelector",(function(){return wm})),n.d(t,"__experimentalUnitControl",(function(){return zi})),n.d(t,"URLInput",(function(){return Ap})),n.d(t,"URLInputButton",(function(){return Im})),n.d(t,"URLPopover",(function(){return bm})),n.d(t,"__experimentalImageURLInputUI",(function(){return Nm})),n.d(t,"withColorContext",(function(){return Qf})),n.d(t,"__experimentalBlockSettingsMenuFirstItem",(function(){return cb})),n.d(t,"__experimentalInserterMenuExtension",(function(){return Lu})),n.d(t,"__experimentalPreviewOptions",(function(){return Am})),n.d(t,"__experimentalUseResizeCanvas",(function(){return zm})),n.d(t,"BlockInspector",(function(){return Ym})),n.d(t,"BlockList",(function(){return Bb})),n.d(t,"useBlockProps",(function(){return Fb})),n.d(t,"__experimentalBlock",(function(){return ev})),n.d(t,"__experimentalLayoutStyle",(function(){return Fr})),n.d(t,"BlockMover",(function(){return bd})),n.d(t,"BlockPreview",(function(){return tu})),n.d(t,"BlockSelectionClearer",(function(){return nv})),n.d(t,"__unstableUseBlockSelectionClearer",(function(){return tv})),n.d(t,"BlockSettingsMenu",(function(){return Ob})),n.d(t,"BlockSettingsMenuControls",(function(){return fb})),n.d(t,"BlockTitle",(function(){return Cl})),n.d(t,"BlockToolbar",(function(){return gb})),n.d(t,"CopyHandler",(function(){return Zd})),n.d(t,"__unstableUseClipboardHandler",(function(){return Qd})),n.d(t,"DefaultBlockAppender",(function(){return Yu})),n.d(t,"__unstableEditorStyles",(function(){return Bv})),n.d(t,"Inserter",(function(){return $u})),n.d(t,"__experimentalLibrary",(function(){return Iv})),n.d(t,"__experimentalSearchForm",(function(){return qs})),n.d(t,"BlockEditorKeyboardShortcuts",(function(){return Pv})),n.d(t,"MultiSelectScrollIntoView",(function(){return Tv})),n.d(t,"NavigableToolbar",(function(){return dd})),n.d(t,"ObserveTyping",(function(){return Lv})),n.d(t,"__unstableUseTypingObserver",(function(){return Av})),n.d(t,"__unstableUseMouseMoveTypingReset",(function(){return Dv})),n.d(t,"PreserveScrollInReorder",(function(){return Rv})),n.d(t,"SkipToSelectedBlock",(function(){return Gm})),n.d(t,"Typewriter",(function(){return Hv})),n.d(t,"__unstableUseTypewriter",(function(){return Vv})),n.d(t,"Warning",(function(){return us})),n.d(t,"WritingFlow",(function(){return Ms})),n.d(t,"__unstableUseCanvasClickRedirect",(function(){return Gv})),n.d(t,"useBlockDisplayInformation",(function(){return Sl})),n.d(t,"__unstableIframe",(function(){return qv})),n.d(t,"__experimentalUseNoRecursiveRenders",(function(){return Qv})),n.d(t,"BlockEditorProvider",(function(){return Qs})),n.d(t,"__experimentalUseSimulatedMediaQuery",(function(){return Hm})),n.d(t,"__experimentalUseEditorFeature",(function(){return Eo})),n.d(t,"transformStyles",(function(){return Sv})),n.d(t,"validateThemeColors",(function(){return Zv})),n.d(t,"validateThemeGradients",(function(){return Jv})),n.d(t,"__experimentalGetMatchingVariation",(function(){return Lf})),n.d(t,"storeConfig",(function(){return hr})),n.d(t,"store",(function(){return jr})),n.d(t,"SETTINGS_DEFAULTS",(function(){return E}));var r={};n.r(r),n.d(r,"getBlockName",(function(){return Y})),n.d(r,"isBlockValid",(function(){return X})),n.d(r,"getBlockAttributes",(function(){return Q})),n.d(r,"getBlock",(function(){return Z})),n.d(r,"__unstableGetBlockWithoutInnerBlocks",(function(){return J})),n.d(r,"getBlocks",(function(){return ee})),n.d(r,"__unstableGetBlockWithBlockTree",(function(){return te})),n.d(r,"__unstableGetBlockTree",(function(){return ne})),n.d(r,"__unstableGetClientIdWithClientIdsTree",(function(){return re})),n.d(r,"__unstableGetClientIdsTree",(function(){return oe})),n.d(r,"getClientIdsOfDescendants",(function(){return ce})),n.d(r,"getClientIdsWithDescendants",(function(){return ie})),n.d(r,"getGlobalBlockCount",(function(){return ae})),n.d(r,"getBlocksByClientId",(function(){return le})),n.d(r,"getBlockCount",(function(){return se})),n.d(r,"getSelectionStart",(function(){return ue})),n.d(r,"getSelectionEnd",(function(){return de})),n.d(r,"getBlockSelectionStart",(function(){return be})),n.d(r,"getBlockSelectionEnd",(function(){return fe})),n.d(r,"getSelectedBlockCount",(function(){return pe})),n.d(r,"hasSelectedBlock",(function(){return me})),n.d(r,"getSelectedBlockClientId",(function(){return ve})),n.d(r,"getSelectedBlock",(function(){return Oe})),n.d(r,"getBlockRootClientId",(function(){return ge})),n.d(r,"getBlockParents",(function(){return he})),n.d(r,"getBlockParentsByBlockName",(function(){return je})),n.d(r,"getBlockHierarchyRootClientId",(function(){return ye})),n.d(r,"getLowestCommonAncestorWithSelectedBlock",(function(){return ke})),n.d(r,"getAdjacentBlockClientId",(function(){return _e})),n.d(r,"getPreviousBlockClientId",(function(){return Ee})),n.d(r,"getNextBlockClientId",(function(){return we})),n.d(r,"getSelectedBlocksInitialCaretPosition",(function(){return Se})),n.d(r,"getSelectedBlockClientIds",(function(){return Ce})),n.d(r,"getMultiSelectedBlockClientIds",(function(){return Be})),n.d(r,"getMultiSelectedBlocks",(function(){return Ie})),n.d(r,"getFirstMultiSelectedBlockClientId",(function(){return xe})),n.d(r,"getLastMultiSelectedBlockClientId",(function(){return Pe})),n.d(r,"isFirstMultiSelectedBlock",(function(){return Te})),n.d(r,"isBlockMultiSelected",(function(){return Ne})),n.d(r,"isAncestorMultiSelected",(function(){return De})),n.d(r,"getMultiSelectedBlocksStartClientId",(function(){return Ae})),n.d(r,"getMultiSelectedBlocksEndClientId",(function(){return Le})),n.d(r,"getBlockOrder",(function(){return Re})),n.d(r,"getBlockIndex",(function(){return Me})),n.d(r,"isBlockSelected",(function(){return Fe})),n.d(r,"hasSelectedInnerBlock",(function(){return Ve})),n.d(r,"isBlockWithinSelection",(function(){return He})),n.d(r,"hasMultiSelection",(function(){return ze})),n.d(r,"isMultiSelecting",(function(){return Ge})),n.d(r,"isSelectionEnabled",(function(){return Ue})),n.d(r,"getBlockMode",(function(){return We})),n.d(r,"isTyping",(function(){return Ke})),n.d(r,"isDraggingBlocks",(function(){return qe})),n.d(r,"getDraggedBlockClientIds",(function(){return $e})),n.d(r,"isBlockBeingDragged",(function(){return Ye})),n.d(r,"isAncestorBeingDragged",(function(){return Xe})),n.d(r,"isCaretWithinFormattedText",(function(){return Qe})),n.d(r,"getBlockInsertionPoint",(function(){return Ze})),n.d(r,"isBlockInsertionPointVisible",(function(){return Je})),n.d(r,"isValidTemplate",(function(){return et})),n.d(r,"getTemplate",(function(){return tt})),n.d(r,"getTemplateLock",(function(){return nt})),n.d(r,"canInsertBlockType",(function(){return ot})),n.d(r,"canInsertBlocks",(function(){return ct})),n.d(r,"getInserterItems",(function(){return dt})),n.d(r,"getBlockTransformItems",(function(){return bt})),n.d(r,"hasInserterItems",(function(){return ft})),n.d(r,"__experimentalGetAllowedBlocks",(function(){return pt})),n.d(r,"__experimentalGetParsedPattern",(function(){return mt})),n.d(r,"__experimentalGetAllowedPatterns",(function(){return vt})),n.d(r,"__experimentalGetPatternsByBlockTypes",(function(){return Ot})),n.d(r,"__experimentalGetPatternTransformItems",(function(){return gt})),n.d(r,"getBlockListSettings",(function(){return ht})),n.d(r,"getSettings",(function(){return jt})),n.d(r,"isLastBlockChangePersistent",(function(){return yt})),n.d(r,"__experimentalGetBlockListSettingsForBlocks",(function(){return kt})),n.d(r,"__experimentalGetParsedReusableBlock",(function(){return _t})),n.d(r,"__experimentalGetReusableBlockTitle",(function(){return Et})),n.d(r,"__unstableIsLastBlockChangeIgnored",(function(){return wt})),n.d(r,"__experimentalGetLastBlockAttributeChanges",(function(){return St})),n.d(r,"isNavigationMode",(function(){return Bt})),n.d(r,"hasBlockMovingClientId",(function(){return It})),n.d(r,"didAutomaticChange",(function(){return xt})),n.d(r,"isBlockHighlighted",(function(){return Pt})),n.d(r,"areInnerBlocksControlled",(function(){return Tt})),n.d(r,"__experimentalGetActiveBlockIdByBlockNames",(function(){return Nt})),n.d(r,"wasBlockJustInserted",(function(){return Dt}));var o={};n.r(o),n.d(o,"resetBlocks",(function(){return pn})),n.d(o,"validateBlocksToTemplate",(function(){return mn})),n.d(o,"resetSelection",(function(){return vn})),n.d(o,"receiveBlocks",(function(){return On})),n.d(o,"updateBlockAttributes",(function(){return gn})),n.d(o,"updateBlock",(function(){return hn})),n.d(o,"selectBlock",(function(){return jn})),n.d(o,"selectPreviousBlock",(function(){return yn})),n.d(o,"selectNextBlock",(function(){return kn})),n.d(o,"startMultiSelect",(function(){return _n})),n.d(o,"stopMultiSelect",(function(){return En})),n.d(o,"multiSelect",(function(){return wn})),n.d(o,"clearSelectedBlock",(function(){return Sn})),n.d(o,"toggleSelection",(function(){return Cn})),n.d(o,"replaceBlocks",(function(){return In})),n.d(o,"replaceBlock",(function(){return xn})),n.d(o,"moveBlocksDown",(function(){return Tn})),n.d(o,"moveBlocksUp",(function(){return Nn})),n.d(o,"moveBlocksToPosition",(function(){return Dn})),n.d(o,"moveBlockToPosition",(function(){return An})),n.d(o,"insertBlock",(function(){return Ln})),n.d(o,"insertBlocks",(function(){return Rn})),n.d(o,"__unstableSetInsertionPoint",(function(){return Mn})),n.d(o,"showInsertionPoint",(function(){return Fn})),n.d(o,"hideInsertionPoint",(function(){return Vn})),n.d(o,"setTemplateValidity",(function(){return Hn})),n.d(o,"synchronizeTemplate",(function(){return zn})),n.d(o,"mergeBlocks",(function(){return Gn})),n.d(o,"removeBlocks",(function(){return Un})),n.d(o,"removeBlock",(function(){return Wn})),n.d(o,"replaceInnerBlocks",(function(){return Kn})),n.d(o,"toggleBlockMode",(function(){return qn})),n.d(o,"startTyping",(function(){return $n})),n.d(o,"stopTyping",(function(){return Yn})),n.d(o,"startDraggingBlocks",(function(){return Xn})),n.d(o,"stopDraggingBlocks",(function(){return Qn})),n.d(o,"enterFormattedText",(function(){return Zn})),n.d(o,"exitFormattedText",(function(){return Jn})),n.d(o,"selectionChange",(function(){return er})),n.d(o,"insertDefaultBlock",(function(){return tr})),n.d(o,"updateBlockListSettings",(function(){return nr})),n.d(o,"updateSettings",(function(){return rr})),n.d(o,"__unstableSaveReusableBlock",(function(){return or})),n.d(o,"__unstableMarkLastChangeAsPersistent",(function(){return cr})),n.d(o,"__unstableMarkNextChangeAsNotPersistent",(function(){return ir})),n.d(o,"__unstableMarkAutomaticChange",(function(){return ar})),n.d(o,"__unstableMarkAutomaticChangeFinal",(function(){return lr})),n.d(o,"setNavigationMode",(function(){return sr})),n.d(o,"setBlockMovingClientId",(function(){return ur})),n.d(o,"duplicateBlocks",(function(){return dr})),n.d(o,"insertBeforeBlock",(function(){return br})),n.d(o,"insertAfterBlock",(function(){return fr})),n.d(o,"toggleBlockHighlight",(function(){return pr})),n.d(o,"flashBlock",(function(){return mr})),n.d(o,"setHasControlledInnerBlocks",(function(){return vr}));var c=n(19),i=n(8),a=n(5),l=n(0),s=n(10),u=n.n(s),d=n(2),b=n(11),f=n(30),p=n(9),m=n(3),v=n(4),O=Object(l.createContext)({name:"",isSelected:!1,clientId:null}),g=O.Provider;function h(){return Object(l.useContext)(O)}var j=n(14),y=n(15),k=n(1),_={insertUsage:{}},E={alignWide:!1,supportsLayout:!0,colors:[{name:Object(k.__)("Black"),slug:"black",color:"#000000"},{name:Object(k.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:Object(k.__)("White"),slug:"white",color:"#ffffff"},{name:Object(k.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:Object(k.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:Object(k.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:Object(k.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:Object(k.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:Object(k.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:Object(k.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:Object(k.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:Object(k.__)("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:Object(k._x)("Small","font size name"),size:13,slug:"small"},{name:Object(k._x)("Normal","font size name"),size:16,slug:"normal"},{name:Object(k._x)("Medium","font size name"),size:20,slug:"medium"},{name:Object(k._x)("Large","font size name"),size:36,slug:"large"},{name:Object(k._x)("Huge","font size name"),size:42,slug:"huge"}],imageDefaultSize:"large",imageSizes:[{slug:"thumbnail",name:Object(k.__)("Thumbnail")},{slug:"medium",name:Object(k.__)("Medium")},{slug:"large",name:Object(k.__)("Large")},{slug:"full",name:Object(k.__)("Full Size")}],imageEditing:!0,maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,__experimentalCanUserUseUnfilteredHTML:!1,__experimentalBlockDirectory:!1,__mobileEnablePageTemplates:!1,__experimentalBlockPatterns:[],__experimentalBlockPatternCategories:[],__experimentalSpotlightEntityBlocks:[],gradients:[{name:Object(k.__)("Vivid cyan blue to vivid purple"),gradient:"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)",slug:"vivid-cyan-blue-to-vivid-purple"},{name:Object(k.__)("Light green cyan to vivid green cyan"),gradient:"linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)",slug:"light-green-cyan-to-vivid-green-cyan"},{name:Object(k.__)("Luminous vivid amber to luminous vivid orange"),gradient:"linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%)",slug:"luminous-vivid-amber-to-luminous-vivid-orange"},{name:Object(k.__)("Luminous vivid orange to vivid red"),gradient:"linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%)",slug:"luminous-vivid-orange-to-vivid-red"},{name:Object(k.__)("Very light gray to cyan bluish gray"),gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)",slug:"very-light-gray-to-cyan-bluish-gray"},{name:Object(k.__)("Cool to warm spectrum"),gradient:"linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%)",slug:"cool-to-warm-spectrum"},{name:Object(k.__)("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:Object(k.__)("Blush bordeaux"),gradient:"linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%)",slug:"blush-bordeaux"},{name:Object(k.__)("Luminous dusk"),gradient:"linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%)",slug:"luminous-dusk"},{name:Object(k.__)("Pale ocean"),gradient:"linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%)",slug:"pale-ocean"},{name:Object(k.__)("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:Object(k.__)("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}]};function w(e,t,n){return[].concat(Object(y.a)(e.slice(0,n)),Object(y.a)(Object(d.castArray)(t)),Object(y.a)(e.slice(n)))}function S(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=Object(y.a)(e);return o.splice(t,r),w(o,e.slice(t,t+r),n)}function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function I(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Object(a.a)({},t,[]);return e.forEach((function(e){var r=e.clientId,o=e.innerBlocks;n[t].push(r),Object.assign(n,I(o,r))})),n}function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.reduce((function(e,n){return Object.assign(e,Object(a.a)({},n.clientId,t),x(n.innerBlocks,n.clientId))}),{})}function P(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.identity,n={},r=Object(y.a)(e);r.length;){var o=r.shift(),c=o.innerBlocks,i=Object(j.a)(o,["innerBlocks"]);r.push.apply(r,Object(y.a)(c)),n[i.clientId]=t(i)}return n}function T(e){return P(e,(function(e){return Object(d.omit)(e,"attributes")}))}function N(e){return P(e,(function(e){return e.attributes}))}function D(e,t){return e===t?B({},e):t}function A(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&Object(d.isEqual)(e.clientIds,t.clientIds)&&(n=e.attributes,r=t.attributes,Object(d.isEqual)(Object(d.keys)(n),Object(d.keys)(r)));var n,r}var L=function(e){return e.reduce((function(e,t){return e[t]={},e}),{})};var R=Object(d.flow)(v.combineReducers,(function(e){return function(t,n){if(t&&"SAVE_REUSABLE_BLOCK_SUCCESS"===n.type){var r=n.id,o=n.updatedId;if(r===o)return t;(t=B({},t)).attributes=Object(d.mapValues)(t.attributes,(function(e,n){return"core/block"===t.byClientId[n].name&&e.ref===r?B(B({},e),{},{ref:o}):e}))}return e(t,n)}}),(function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=e(t,n);if(r===t)return t;r.cache=t.cache?t.cache:{};var o=function(e){return e.reduce((function(e,n){var r=n;do{e.push(r),r=t.parents[r]}while(r&&!t.controlledInnerBlocks[r]);return e}),[])};switch(n.type){case"RESET_BLOCKS":r.cache=Object(d.mapValues)(P(n.blocks),(function(){return{}}));break;case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":var c=Object(d.keys)(P(n.blocks));n.rootClientId&&!t.controlledInnerBlocks[n.rootClientId]&&c.push(n.rootClientId),r.cache=B(B({},r.cache),L(o(c)));break;case"UPDATE_BLOCK":r.cache=B(B({},r.cache),L(o([n.clientId])));break;case"UPDATE_BLOCK_ATTRIBUTES":r.cache=B(B({},r.cache),L(o(n.clientIds)));break;case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var i=L(o(n.replacedClientIds));r.cache=B(B(B({},Object(d.omit)(r.cache,n.replacedClientIds)),Object(d.omit)(i,n.replacedClientIds)),L(Object(d.keys)(P(n.blocks))));break;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":r.cache=B(B({},Object(d.omit)(r.cache,n.removedClientIds)),L(Object(d.difference)(o(n.clientIds),n.clientIds)));break;case"MOVE_BLOCKS_TO_POSITION":var a=Object(y.a)(n.clientIds);n.fromRootClientId&&a.push(n.fromRootClientId),n.toRootClientId&&a.push(n.toRootClientId),r.cache=B(B({},r.cache),L(o(a)));break;case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":var l=[];n.rootClientId&&l.push(n.rootClientId),r.cache=B(B({},r.cache),L(o(l)));break;case"SAVE_REUSABLE_BLOCK_SUCCESS":var s=Object(d.keys)(Object(d.omitBy)(r.attributes,(function(e,t){return"core/block"!==r.byClientId[t].name||e.ref!==n.updatedId})));r.cache=B(B({},r.cache),L(o(s)))}return r}}),(function(e){return function(t,n){var r=function(e){for(var r=e,o=0;o<r.length;o++){var c;!t.order[r[o]]||n.keepControlledInnerBlocks&&n.keepControlledInnerBlocks[r[o]]||(r===e&&(r=Object(y.a)(r)),(c=r).push.apply(c,Object(y.a)(t.order[r[o]])))}return r};if(t)switch(n.type){case"REMOVE_BLOCKS":n=B(B({},n),{},{type:"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN",removedClientIds:r(n.clientIds)});break;case"REPLACE_BLOCKS":n=B(B({},n),{},{type:"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN",replacedClientIds:r(n.clientIds)})}return e(t,n)}}),(function(e){return function(t,n){if("REPLACE_INNER_BLOCKS"!==n.type)return e(t,n);var r={};if(Object.keys(t.controlledInnerBlocks).length)for(var o=Object(y.a)(n.blocks);o.length;){var c=o.shift(),i=c.innerBlocks,a=Object(j.a)(c,["innerBlocks"]);o.push.apply(o,Object(y.a)(i)),t.controlledInnerBlocks[a.clientId]&&(r[a.clientId]=!0)}var l=t;t.order[n.rootClientId]&&(l=e(l,{type:"REMOVE_BLOCKS",keepControlledInnerBlocks:r,clientIds:t.order[n.rootClientId]}));var s=l;return n.blocks.length&&((s=e(s,B(B({},n),{},{type:"INSERT_BLOCKS",index:0}))).order=B(B({},s.order),Object(d.reduce)(r,(function(e,n,r){return t.order[r]&&(e[r]=t.order[r]),e}),{}))),s}}),(function(e){return function(t,n){if(t&&"RESET_BLOCKS"===n.type){var r=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object(d.reduce)(t[n],(function(n,o){return r[o]?n:[].concat(Object(y.a)(n),[o],Object(y.a)(e(t,o)))}),[])}(t.order,"",t.controlledInnerBlocks),o=Object.keys(Object(d.pickBy)(t.controlledInnerBlocks));return B(B({},t),{},{byClientId:B(B({},Object(d.omit)(t.byClientId,r)),T(n.blocks)),attributes:B(B({},Object(d.omit)(t.attributes,r)),N(n.blocks)),order:B(B({},Object(d.omit)(t.order,r)),Object(d.omit)(I(n.blocks),o)),parents:B(B({},Object(d.omit)(t.parents,r)),x(n.blocks)),cache:B(B({},Object(d.omit)(t.cache,r)),Object(d.omit)(Object(d.mapValues)(P(n.blocks),(function(){return{}})),o))})}return e(t,n)}}),(function(e){var t,n=!1;return function(r,o){var c=e(r,o),i="MARK_LAST_CHANGE_AS_PERSISTENT"===o.type||n;if(r===c&&!i){var a;n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===o.type;var l=null===(a=null==r?void 0:r.isPersistentChange)||void 0===a||a;return r.isPersistentChange===l?r:B(B({},c),{},{isPersistentChange:l})}return c=B(B({},c),{},{isPersistentChange:i?!n:!A(o,t)}),t=o,n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===o.type,c}}),(function(e){var t=new Set(["RECEIVE_BLOCKS"]);return function(n,r){var o=e(n,r);return o!==n&&(o.isIgnoredChange=t.has(r.type)),o}}))({byClientId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return T(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return B(B({},e),T(t.blocks));case"UPDATE_BLOCK":if(!e[t.clientId])return e;var n=Object(d.omit)(t.updates,"attributes");return Object(d.isEmpty)(n)?e:B(B({},e),{},Object(a.a)({},t.clientId,B(B({},e[t.clientId]),n)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?B(B({},Object(d.omit)(e,t.replacedClientIds)),T(t.blocks)):e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(d.omit)(e,t.removedClientIds)}return e},attributes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return N(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return B(B({},e),N(t.blocks));case"UPDATE_BLOCK":return e[t.clientId]&&t.updates.attributes?B(B({},e),{},Object(a.a)({},t.clientId,B(B({},e[t.clientId]),t.updates.attributes))):e;case"UPDATE_BLOCK_ATTRIBUTES":if(t.clientIds.every((function(t){return!e[t]})))return e;var n=t.clientIds.reduce((function(n,r){return B(B({},n),{},Object(a.a)({},r,Object(d.reduce)(t.uniqueByBlock?t.attributes[r]:t.attributes,(function(t,n,o){return n!==t[o]&&((t=D(e[r],t))[o]=n),t}),e[r])))}),{});return t.clientIds.every((function(t){return n[t]===e[t]}))?e:B(B({},e),n);case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?B(B({},Object(d.omit)(e,t.replacedClientIds)),N(t.blocks)):e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(d.omit)(e,t.removedClientIds)}return e},order:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return I(t.blocks);case"RECEIVE_BLOCKS":return B(B({},e),Object(d.omit)(I(t.blocks),""));case"INSERT_BLOCKS":var n=t.rootClientId,r=void 0===n?"":n,o=e[r]||[],c=I(t.blocks,r),i=t.index,l=void 0===i?o.length:i;return B(B(B({},e),c),{},Object(a.a)({},r,w(o,c[r],l)));case"MOVE_BLOCKS_TO_POSITION":var s,u=t.fromRootClientId,b=void 0===u?"":u,f=t.toRootClientId,p=void 0===f?"":f,m=t.clientIds,v=t.index,O=void 0===v?e[p].length:v;if(b===p){var g=e[p],h=g.indexOf(m[0]);return B(B({},e),{},Object(a.a)({},p,S(e[p],h,O,m.length)))}return B(B({},e),{},(s={},Object(a.a)(s,b,d.without.apply(void 0,[e[b]].concat(Object(y.a)(m)))),Object(a.a)(s,p,w(e[p],m,O)),s));case"MOVE_BLOCKS_UP":var j=t.clientIds,k=t.rootClientId,_=void 0===k?"":k,E=Object(d.first)(j),C=e[_];if(!C.length||E===Object(d.first)(C))return e;var x=C.indexOf(E);return B(B({},e),{},Object(a.a)({},_,S(C,x,x-1,j.length)));case"MOVE_BLOCKS_DOWN":var P=t.clientIds,T=t.rootClientId,N=void 0===T?"":T,D=Object(d.first)(P),A=Object(d.last)(P),L=e[N];if(!L.length||A===Object(d.last)(L))return e;var R=L.indexOf(D);return B(B({},e),{},Object(a.a)({},N,S(L,R,R+1,P.length)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var M=t.clientIds;if(!t.blocks)return e;var F=I(t.blocks);return Object(d.flow)([function(e){return Object(d.omit)(e,t.replacedClientIds)},function(e){return B(B({},e),Object(d.omit)(F,""))},function(e){return Object(d.mapValues)(e,(function(e){return Object(d.reduce)(e,(function(e,t){return t===M[0]?[].concat(Object(y.a)(e),Object(y.a)(F[""])):(-1===M.indexOf(t)&&e.push(t),e)}),[])}))}])(e);case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(d.flow)([function(e){return Object(d.omit)(e,t.removedClientIds)},function(e){return Object(d.mapValues)(e,(function(e){return d.without.apply(void 0,[e].concat(Object(y.a)(t.removedClientIds)))}))}])(e)}return e},parents:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return x(t.blocks);case"RECEIVE_BLOCKS":return B(B({},e),x(t.blocks));case"INSERT_BLOCKS":return B(B({},e),x(t.blocks,t.rootClientId||""));case"MOVE_BLOCKS_TO_POSITION":return B(B({},e),t.clientIds.reduce((function(e,n){return e[n]=t.toRootClientId||"",e}),{}));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return B(B({},Object(d.omit)(e,t.replacedClientIds)),x(t.blocks,e[t.clientIds[0]]));case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(d.omit)(e,t.removedClientIds)}return e},controlledInnerBlocks:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.clientId,o=t.hasControlledInnerBlocks;return"SET_HAS_CONTROLLED_INNER_BLOCKS"===n?B(B({},e),{},Object(a.a)({},r,o)):e}});function M(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"CLEAR_SELECTED_BLOCK":return e.clientId?{}:e;case"SELECT_BLOCK":return t.clientId===e.clientId?e:{clientId:t.clientId};case"REPLACE_INNER_BLOCKS":case"INSERT_BLOCKS":return t.updateSelection&&t.blocks.length?{clientId:t.blocks[0].clientId}:e;case"REMOVE_BLOCKS":return t.clientIds&&t.clientIds.length&&-1!==t.clientIds.indexOf(e.clientId)?{}:e;case"REPLACE_BLOCKS":if(-1===t.clientIds.indexOf(e.clientId))return e;var n=t.indexToSelect||t.blocks.length-1,r=t.blocks[n];return r?r.clientId===e.clientId?e:{clientId:r.clientId}:{}}return e}function F(e,t,n){switch(t.type){case"CLEAR_SELECTED_BLOCK":case"SELECT_BLOCK":case"SELECTION_CHANGE":case"REPLACE_INNER_BLOCKS":case"INSERT_BLOCKS":case"REMOVE_BLOCKS":case"REPLACE_BLOCKS":return n}return e}var V=Object(v.combineReducers)({blocks:R,isTyping:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e},draggedBlocks:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_DRAGGING_BLOCKS":return t.clientIds;case"STOP_DRAGGING_BLOCKS":return[]}return e},isCaretWithinFormattedText:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ENTER_FORMATTED_TEXT":return!0;case"EXIT_FORMATTED_TEXT":return!1}return e},selection:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;switch(r.type){case"SELECTION_CHANGE":return{selectionStart:{clientId:r.clientId,attributeKey:r.attributeKey,offset:r.startOffset},selectionEnd:{clientId:r.clientId,attributeKey:r.attributeKey,offset:r.endOffset}};case"RESET_SELECTION":var o=r.selectionStart,c=r.selectionEnd;return{selectionStart:o,selectionEnd:c};case"MULTI_SELECT":var i=r.start,a=r.end;return{selectionStart:{clientId:i},selectionEnd:{clientId:a}};case"RESET_BLOCKS":var l=null==n||null===(e=n.selectionStart)||void 0===e?void 0:e.clientId,s=null==n||null===(t=n.selectionEnd)||void 0===t?void 0:t.clientId;if(!l&&!s)return n;if(!r.blocks.some((function(e){return e.clientId===l})))return{selectionStart:{},selectionEnd:{}};if(!r.blocks.some((function(e){return e.clientId===s})))return B(B({},n),{},{selectionEnd:n.selectionStart})}return{selectionStart:M(n.selectionStart,r),selectionEnd:M(n.selectionEnd,r)}},isMultiSelecting:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_MULTI_SELECT":return!0;case"STOP_MULTI_SELECT":return!1}return e},isSelectionEnabled:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"TOGGLE_SELECTION":return t.isSelectionEnabled}return e},initialPosition:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return"REPLACE_BLOCKS"===t.type&&void 0!==t.initialPosition||["SELECT_BLOCK","RESET_SELECTION","INSERT_BLOCKS","REPLACE_INNER_BLOCKS"].includes(t.type)?t.initialPosition:e},blocksMode:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("TOGGLE_BLOCK_MODE"===t.type){var n=t.clientId;return B(B({},e),{},Object(a.a)({},n,e[n]&&"html"===e[n]?"visual":"html"))}return e},blockListSettings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REPLACE_BLOCKS":case"REMOVE_BLOCKS":return Object(d.omit)(e,t.clientIds);case"UPDATE_BLOCK_LIST_SETTINGS":var n=t.clientId;return t.settings?Object(d.isEqual)(e[n],t.settings)?e:B(B({},e),{},Object(a.a)({},n,t.settings)):e.hasOwnProperty(n)?Object(d.omit)(e,n):e}return e},insertionPoint:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_INSERTION_POINT":case"SHOW_INSERTION_POINT":var n=t.rootClientId,r=t.index;return{rootClientId:n,index:r}}return F(e,t,null)},insertionPointVisibility:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SHOW_INSERTION_POINT":return!0;case"HIDE_INSERTION_POINT":return!1}return F(e,t,!1)},template:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isValid:!0},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_TEMPLATE_VALIDITY":return B(B({},e),{},{isValid:t.isValid})}return e},settings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:E,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_SETTINGS":return B(B({},e),t.settings)}return e},preferences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":return t.blocks.reduce((function(e,n){var r=n.attributes,o=n.name,c=Object(p.getBlockVariations)(o),i=null==c?void 0:c.find((function(e){var t;return null===(t=e.isActive)||void 0===t?void 0:t.call(e,r,e.attributes)})),l=null!=i&&i.name?"".concat(o,"/").concat(i.name):o,s={name:l};return"core/block"===o&&(s.ref=r.ref,l+="/"+r.ref),B(B({},e),{},{insertUsage:B(B({},e.insertUsage),{},Object(a.a)({},l,{time:t.time,count:e.insertUsage[l]?e.insertUsage[l].count+1:1,insert:s}))})}),e)}return e},lastBlockAttributesChange:function(e,t){switch(t.type){case"UPDATE_BLOCK":if(!t.updates.attributes)break;return Object(a.a)({},t.clientId,t.updates.attributes);case"UPDATE_BLOCK_ATTRIBUTES":return t.clientIds.reduce((function(e,n){return B(B({},e),{},Object(a.a)({},n,t.uniqueByBlock?t.attributes[n]:t.attributes))}),{})}return null},isNavigationMode:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"INSERT_BLOCKS"!==t.type&&("SET_NAVIGATION_MODE"===t.type?t.isNavigationMode:e)},hasBlockMovingClientId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return"SET_BLOCK_MOVING_MODE"===t.type?t.hasBlockMovingClientId:"SET_NAVIGATION_MODE"===t.type?null:e},automaticChangeStatus:function(e,t){switch(t.type){case"MARK_AUTOMATIC_CHANGE":return"pending";case"MARK_AUTOMATIC_CHANGE_FINAL":return"pending"===e?"final":void 0;case"SELECTION_CHANGE":return"final"!==e?e:void 0;case"START_TYPING":case"STOP_TYPING":return e}},highlightedBlock:function(e,t){switch(t.type){case"TOGGLE_BLOCK_HIGHLIGHT":var n=t.clientId;return t.isHighlighted?n:e===n?null:e;case"SELECT_BLOCK":if(t.clientId!==e)return null}return e},lastBlockInserted:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case"INSERT_BLOCKS":if(!n.blocks.length)return t;var r=n.blocks[0].clientId,o=null===(e=n.meta)||void 0===e?void 0:e.source;return{clientId:r,source:o};case"RESET_BLOCKS":return{}}return t}}),H=n(56),z=n(40);function G(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return U(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return U(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function K(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var q=Object(l.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(m.Rect,{x:"0",fill:"none",width:"24",height:"24"}),Object(l.createElement)(m.G,null,Object(l.createElement)(m.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"}))),$=[];function Y(e,t){var n=e.blocks.byClientId[t];if("web"!==l.Platform.OS&&"core/social-link"===(null==n?void 0:n.name)){var r=e.blocks.attributes[t].service;return r?"".concat("core/social-link","-").concat(r):"core/social-link"}return n?n.name:null}function X(e,t){var n=e.blocks.byClientId[t];return!!n&&n.isValid}function Q(e,t){return e.blocks.byClientId[t]?e.blocks.attributes[t]:null}var Z=Object(z.a)((function(e,t){var n=e.blocks.byClientId[t];return n?K(K({},n),{},{attributes:Q(e,t),innerBlocks:Tt(e,t)?$:ee(e,t)}):null}),(function(e,t){return[e.blocks.cache[t]]})),J=Object(z.a)((function(e,t){var n=e.blocks.byClientId[t];return n?K(K({},n),{},{attributes:Q(e,t)}):null}),(function(e,t){return[e.blocks.byClientId[t],e.blocks.attributes[t]]})),ee=Object(z.a)((function(e,t){return Object(d.map)(Re(e,t),(function(t){return Z(e,t)}))}),(function(e,t){return Object(d.map)(e.blocks.order[t||""],(function(t){return e.blocks.cache[t]}))})),te=Object(z.a)((function(e,t){var n=e.blocks.byClientId[t];return n?K(K({},n),{},{attributes:Q(e,t),innerBlocks:ne(e,t)}):null}),(function(e){return[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]})),ne=Object(z.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(d.map)(Re(e,t),(function(t){return te(e,t)}))}),(function(e){return[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]})),re=Object(z.a)((function(e,t){return{clientId:t,innerBlocks:oe(e,t)}}),(function(e){return[e.blocks.order]})),oe=Object(z.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(d.map)(Re(e,t),(function(t){return re(e,t)}))}),(function(e){return[e.blocks.order]})),ce=function e(t,n){return Object(d.flatMap)(n,(function(n){var r=Re(t,n);return[].concat(Object(y.a)(r),Object(y.a)(e(t,r)))}))},ie=Object(z.a)((function(e){var t=Re(e);return[].concat(Object(y.a)(t),Object(y.a)(ce(e,t)))}),(function(e){return[e.blocks.order]})),ae=Object(z.a)((function(e,t){var n=ie(e);return t?Object(d.reduce)(n,(function(n,r){return e.blocks.byClientId[r].name===t?n+1:n}),0):n.length}),(function(e){return[e.blocks.order,e.blocks.byClientId]})),le=Object(z.a)((function(e,t){return Object(d.map)(Object(d.castArray)(t),(function(t){return Z(e,t)}))}),(function(e){return[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]}));function se(e,t){return Re(e,t).length}function ue(e){return e.selection.selectionStart}function de(e){return e.selection.selectionEnd}function be(e){return e.selection.selectionStart.clientId}function fe(e){return e.selection.selectionEnd.clientId}function pe(e){var t=Be(e).length;return t||(e.selection.selectionStart.clientId?1:0)}function me(e){var t=e.selection,n=t.selectionStart,r=t.selectionEnd;return!!n.clientId&&n.clientId===r.clientId}function ve(e){var t=e.selection,n=t.selectionStart,r=t.selectionEnd,o=n.clientId;return o&&o===r.clientId?o:null}function Oe(e){var t=ve(e);return t?Z(e,t):null}function ge(e,t){return void 0!==e.blocks.parents[t]?e.blocks.parents[t]:null}var he=Object(z.a)((function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=[],o=t;e.blocks.parents[o];)o=e.blocks.parents[o],r.push(o);return n?r:r.reverse()}),(function(e){return[e.blocks.parents]})),je=Object(z.a)((function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=he(e,t,r);return Object(d.map)(Object(d.filter)(Object(d.map)(o,(function(t){return{id:t,name:Y(e,t)}})),(function(e){var t=e.name;return Array.isArray(n)?n.includes(t):t===n})),(function(e){return e.id}))}),(function(e){return[e.blocks.parents]}));function ye(e,t){var n,r=t;do{n=r,r=e.blocks.parents[r]}while(r);return n}function ke(e,t){for(var n,r=ve(e),o=[].concat(Object(y.a)(he(e,t)),[t]),c=[].concat(Object(y.a)(he(e,r)),[r]),i=Math.min(o.length,c.length),a=0;a<i&&o[a]===c[a];a++)n=o[a];return n}function _e(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(void 0===t&&(t=ve(e)),void 0===t&&(t=n<0?xe(e):Pe(e)),!t)return null;var r=ge(e,t);if(null===r)return null;var o=e.blocks.order,c=o[r],i=c.indexOf(t),a=i+1*n;return a<0||a===c.length?null:c[a]}function Ee(e,t){return _e(e,t,-1)}function we(e,t){return _e(e,t,1)}function Se(e){return e.initialPosition}var Ce=Object(z.a)((function(e){var t=e.selection,n=t.selectionStart,r=t.selectionEnd;if(void 0===n.clientId||void 0===r.clientId)return $;if(n.clientId===r.clientId)return[n.clientId];var o=ge(e,n.clientId);if(null===o)return $;var c=Re(e,o),i=c.indexOf(n.clientId),a=c.indexOf(r.clientId);return i>a?c.slice(a,i+1):c.slice(i,a+1)}),(function(e){return[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]}));function Be(e){var t=e.selection,n=t.selectionStart,r=t.selectionEnd;return n.clientId===r.clientId?$:Ce(e)}var Ie=Object(z.a)((function(e){var t=Be(e);return t.length?t.map((function(t){return Z(e,t)})):$}),(function(e){return[].concat(Object(y.a)(Ce.getDependants(e)),[e.blocks.byClientId,e.blocks.order,e.blocks.attributes])}));function xe(e){return Object(d.first)(Be(e))||null}function Pe(e){return Object(d.last)(Be(e))||null}function Te(e,t){return xe(e)===t}function Ne(e,t){return-1!==Be(e).indexOf(t)}var De=Object(z.a)((function(e,t){for(var n=t,r=!1;n&&!r;)r=Ne(e,n=ge(e,n));return r}),(function(e){return[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]}));function Ae(e){var t=e.selection,n=t.selectionStart,r=t.selectionEnd;return n.clientId===r.clientId?null:n.clientId||null}function Le(e){var t=e.selection,n=t.selectionStart,r=t.selectionEnd;return n.clientId===r.clientId?null:r.clientId||null}function Re(e,t){return e.blocks.order[t||""]||$}function Me(e,t,n){return Re(e,n).indexOf(t)}function Fe(e,t){var n=e.selection,r=n.selectionStart,o=n.selectionEnd;return r.clientId===o.clientId&&r.clientId===t}function Ve(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Object(d.some)(Re(e,t),(function(t){return Fe(e,t)||Ne(e,t)||n&&Ve(e,t,n)}))}function He(e,t){if(!t)return!1;var n=Be(e),r=n.indexOf(t);return r>-1&&r<n.length-1}function ze(e){var t=e.selection,n=t.selectionStart,r=t.selectionEnd;return n.clientId!==r.clientId}function Ge(e){return e.isMultiSelecting}function Ue(e){return e.isSelectionEnabled}function We(e,t){return e.blocksMode[t]||"visual"}function Ke(e){return e.isTyping}function qe(e){return!!e.draggedBlocks.length}function $e(e){return e.draggedBlocks}function Ye(e,t){return e.draggedBlocks.includes(t)}function Xe(e,t){if(!qe(e))return!1;var n=he(e,t);return Object(d.some)(n,(function(t){return Ye(e,t)}))}function Qe(e){return e.isCaretWithinFormattedText}function Ze(e){var t,n,r=e.insertionPoint,o=e.selection.selectionEnd;if(null!==r)return r;var c=o.clientId;return c?(t=ge(e,c)||void 0,n=Me(e,o.clientId,t)+1):n=Re(e).length,{rootClientId:t,index:n}}function Je(e){return e.insertionPointVisibility}function et(e){return e.template.isValid}function tt(e){return e.settings.template}function nt(e,t){if(!t)return e.settings.templateLock;var n=ht(e,t);return n?n.templateLock:null}var rt=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Object(d.isBoolean)(e)?e:Object(d.isArray)(e)?!(!e.includes("core/post-content")||null!==t)||e.includes(t):n};if(t&&"object"===Object(H.a)(t)?t=(n=t).name:n=Object(p.getBlockType)(t),!n)return!1;var c=jt(e),i=c.allowedBlockTypes,a=o(i,t,!0);if(!a)return!1;var l=!!nt(e,r);if(l)return!1;var s=ht(e,r);if(r&&void 0===s)return!1;var u=null==s?void 0:s.allowedBlocks,b=o(u,t),f=n.parent,m=Y(e,r),v=o(f,m);return null!==b&&null!==v?b||v:null!==b?b:null===v||v},ot=Object(z.a)(rt,(function(e,t,n){return[e.blockListSettings[n],e.blocks.byClientId[n],e.settings.allowedBlockTypes,e.settings.templateLock]}));function ct(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t.every((function(t){return ot(e,Y(e,t),n)}))}function it(e,t){var n,r;return null!==(n=null===(r=e.preferences.insertUsage)||void 0===r?void 0:r[t])&&void 0!==n?n:null}var at=function(e,t,n){return!!Object(p.hasBlockSupport)(t,"inserter",!0)&&rt(e,t.name,n)},lt=function(e,t){return function(n){var r="".concat(t.id,"/").concat(n.name),o=it(e,r)||{},c=o.time,i=o.count,a=void 0===i?0:i;return K(K({},t),{},{id:r,icon:n.icon||t.icon,title:n.title||t.title,description:n.description||t.description,category:n.category||t.category,example:n.hasOwnProperty("example")?n.example:t.example,initialAttributes:K(K({},t.initialAttributes),n.attributes),innerBlocks:n.innerBlocks,keywords:n.keywords||t.keywords,frecency:st(c,a)})}},st=function(e,t){if(!e)return t;var n=Date.now()-e;switch(!0){case n<36e5:return 4*t;case n<864e5:return 2*t;case n<6048e5:return t/2;default:return t/4}},ut=function(e,t){var n=t.buildScope,r=void 0===n?"inserter":n;return function(t){var n=t.name,o=!1;Object(p.hasBlockSupport)(t.name,"multiple",!0)||(o=Object(d.some)(le(e,ie(e)),{name:t.name}));var c=it(e,n)||{},i=c.time,a=c.count,l=void 0===a?0:a,s={id:n,name:t.name,title:t.title,icon:t.icon,isDisabled:o,frecency:st(i,l)};if("transform"===r)return s;var u=t.variations.filter((function(e){var t=e.scope;return!t||t.includes("inserter")}));return K(K({},s),{},{initialAttributes:{},description:t.description,category:t.category,keywords:t.keywords,variations:u,example:t.example,utility:1})}},dt=Object(z.a)((function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=ut(e,{buildScope:"inserter"}),o=function(t){var n,r="core/block/".concat(t.id),o=_t(e,t.id);1===o.length&&(n=Object(p.getBlockType)(o[0].name));var c=it(e,r)||{},i=c.time,a=c.count,l=st(i,void 0===a?0:a);return{id:r,name:"core/block",initialAttributes:{ref:t.id},title:t.title.raw,icon:n?n.icon:q,category:"reusable",keywords:[],isDisabled:!1,utility:1,frecency:l}},c=Object(p.getBlockTypes)().filter((function(t){return at(e,t,n)})).map(r),i=rt(e,"core/block",n)?Ct(e).map(o):[],a=c.filter((function(e){var t=e.variations;return!(void 0===t?[]:t).some((function(e){return e.isDefault}))})),l=[],s=G(c);try{for(s.s();!(t=s.n()).done;){var u=t.value,d=u.variations,b=void 0===d?[]:d;if(b.length){var f=lt(e,u);l.push.apply(l,Object(y.a)(b.map(f)))}}}catch(e){s.e(e)}finally{s.f()}var m=function(e,t){var n=e.name.startsWith("core/"),r=t.name.startsWith("core/");return n&&r?0:n&&!r?-1:1},v=[].concat(Object(y.a)(a),l).sort(m);return[].concat(Object(y.a)(v),Object(y.a)(i))}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.blocks.order,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,Ct(e),Object(p.getBlockTypes)()]})),bt=Object(z.a)((function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=ut(e,{buildScope:"transform"}),o=Object(p.getBlockTypes)().filter((function(t){return at(e,t,n)})).map(r),c=Object(d.mapKeys)(o,(function(e){return e.name})),i=Object(p.getPossibleBlockTransformations)(t).reduce((function(e,t){return c[null==t?void 0:t.name]&&e.push(c[t.name]),e}),[]),a=Object(d.orderBy)(i,(function(e){return c[e.name].frecency}),"desc");return a}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,Object(p.getBlockTypes)()]})),ft=Object(z.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Object(d.some)(Object(p.getBlockTypes)(),(function(n){return at(e,n,t)}));if(n)return!0;var r=rt(e,"core/block",t)&&Ct(e).length>0;return r}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Ct(e),Object(p.getBlockTypes)()]})),pt=Object(z.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t)return Object(d.filter)(Object(p.getBlockTypes)(),(function(n){return at(e,n,t)}))}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Object(p.getBlockTypes)()]})),mt=Object(z.a)((function(e,t){var n=e.settings.__experimentalBlockPatterns.find((function(e){return e.name===t}));return n?K(K({},n),{},{blocks:Object(p.parse)(n.content)}):null}),(function(e){return[e.settings.__experimentalBlockPatterns]})),vt=Object(z.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=e.settings.__experimentalBlockPatterns,r=n.map((function(t){var n=t.name;return mt(e,n)})),o=Object(d.filter)(r,(function(n){return n.blocks.every((function(n){var r=n.name;return ot(e,r,t)}))}));return o}),(function(e,t){return[e.settings.__experimentalBlockPatterns,e.settings.allowedBlockTypes,e.settings.templateLock,e.blockListSettings[t],e.blocks.byClientId[t]]})),Ot=Object(z.a)((function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!t)return $;var r=vt(e,n),o=Array.isArray(t)?t:[t];return r.filter((function(e){var t,n;return null==e||null===(t=e.blockTypes)||void 0===t||null===(n=t.some)||void 0===n?void 0:n.call(t,(function(e){return o.includes(e)}))}))}),(function(e,t){return Object(y.a)(vt.getDependants(e,t))})),gt=Object(z.a)((function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!t)return $;if(t.some((function(t){var n=t.clientId;return t.innerBlocks.length||Tt(e,n)})))return $;var r=Array.from(new Set(t.map((function(e){return e.name}))));return Ot(e,r,n)}),(function(e,t){return Object(y.a)(Ot.getDependants(e,t))}));function ht(e,t){return e.blockListSettings[t]}function jt(e){return e.settings}function yt(e){return e.blocks.isPersistentChange}var kt=Object(z.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.reduce((function(t,n){return e.blockListSettings[n]?K(K({},t),{},Object(a.a)({},n,e.blockListSettings[n])):t}),{})}),(function(e){return[e.blockListSettings]})),_t=Object(z.a)((function(e,t){var n=Object(d.find)(Ct(e),(function(e){return e.id===t}));return n?Object(p.parse)("string"==typeof n.content.raw?n.content.raw:n.content):null}),(function(e){return[Ct(e)]})),Et=Object(z.a)((function(e,t){var n,r=Object(d.find)(Ct(e),(function(e){return e.id===t}));return r?null===(n=r.title)||void 0===n?void 0:n.raw:null}),(function(e){return[Ct(e)]}));function wt(e){return e.blocks.isIgnoredChange}function St(e){return e.lastBlockAttributesChange}function Ct(e){var t,n;return null!==(t=null==e||null===(n=e.settings)||void 0===n?void 0:n.__experimentalReusableBlocks)&&void 0!==t?t:$}function Bt(e){return e.isNavigationMode}function It(e){return e.hasBlockMovingClientId}function xt(e){return!!e.automaticChangeStatus}function Pt(e,t){return e.highlightedBlock===t}function Tt(e,t){return!!e.blocks.controlledInnerBlocks[t]}var Nt=Object(z.a)((function(e,t){if(!t.length)return null;var n=ve(e);if(t.includes(Y(e,n)))return n;var r=Be(e),o=je(e,n||r[0],t);return o?Object(d.last)(o):null}),(function(e,t){return[e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId,t]}));function Dt(e,t,n){var r=e.lastBlockInserted;return r.clientId===t&&r.source===n}var At=n(16),Lt=n.n(At),Rt=n(46),Mt=n(35),Ft=n.n(Mt),Vt={SLEEP:function(e){var t=e.duration;return new Promise((function(e){setTimeout(e,t)}))},MARK_AUTOMATIC_CHANGE_FINAL_CONTROL:Object(v.createRegistryControl)((function(e){return function(){var t=window.requestIdleCallback;(void 0===t?function(e){return setTimeout(e,100)}:t)((function(){return e.dispatch(jr).__unstableMarkAutomaticChangeFinal()}))}}))},Ht="core/block-editor";function zt(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Gt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gt(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function Gt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ut(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ut(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ut(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Kt=Lt.a.mark(fn),qt=Lt.a.mark(pn),$t=Lt.a.mark(mn),Yt=Lt.a.mark(yn),Xt=Lt.a.mark(kn),Qt=Lt.a.mark(wn),Zt=Lt.a.mark(In),Jt=Lt.a.mark(Dn),en=Lt.a.mark(An),tn=Lt.a.mark(Rn),nn=Lt.a.mark(zn),rn=Lt.a.mark(Gn),on=Lt.a.mark(Un),cn=Lt.a.mark(ar),an=Lt.a.mark(sr),ln=Lt.a.mark(ur),sn=Lt.a.mark(dr),un=Lt.a.mark(br),dn=Lt.a.mark(fr),bn=Lt.a.mark(mr);function fn(){return Lt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v.controls.select(Ht,"getBlockCount");case 2:if(0!==e.sent){e.next=7;break}return e.next=6,tr();case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),Kt)}function pn(e){return Lt.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,{type:"RESET_BLOCKS",blocks:e};case 2:return t.delegateYield(mn(e),"t0",3);case 3:return t.abrupt("return",t.t0);case 4:case"end":return t.stop()}}),qt)}function mn(e){var t,n,r,o;return Lt.a.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,v.controls.select(Ht,"getTemplate");case 2:return t=c.sent,c.next=5,v.controls.select(Ht,"getTemplateLock");case 5:return n=c.sent,r=!t||"all"!==n||Object(p.doBlocksMatchTemplate)(e,t),c.next=9,v.controls.select(Ht,"isValidTemplate");case 9:if(o=c.sent,r===o){c.next=14;break}return c.next=13,Hn(r);case 13:return c.abrupt("return",r);case 14:case"end":return c.stop()}}),$t)}function vn(e,t,n){return{type:"RESET_SELECTION",selectionStart:e,selectionEnd:t,initialPosition:n}}function On(e){return{type:"RECEIVE_BLOCKS",blocks:e}}function gn(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:"UPDATE_BLOCK_ATTRIBUTES",clientIds:Object(d.castArray)(e),attributes:t,uniqueByBlock:n}}function hn(e,t){return{type:"UPDATE_BLOCK",clientId:e,updates:t}}function jn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}function yn(e){var t;return Lt.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,v.controls.select(Ht,"getPreviousBlockClientId",e);case 2:if(!(t=n.sent)){n.next=7;break}return n.next=6,jn(t,-1);case 6:return n.abrupt("return",[t]);case 7:case"end":return n.stop()}}),Yt)}function kn(e){var t;return Lt.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,v.controls.select(Ht,"getNextBlockClientId",e);case 2:if(!(t=n.sent)){n.next=7;break}return n.next=6,jn(t);case 6:return n.abrupt("return",[t]);case 7:case"end":return n.stop()}}),Xt)}function _n(){return{type:"START_MULTI_SELECT"}}function En(){return{type:"STOP_MULTI_SELECT"}}function wn(e,t){var n;return Lt.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,{type:"MULTI_SELECT",start:e,end:t};case 2:return r.next=4,v.controls.select(Ht,"getSelectedBlockCount");case 4:n=r.sent,Object(Rt.speak)(Object(k.sprintf)(Object(k._n)("%s block selected.","%s blocks selected.",n),n),"assertive");case 6:case"end":return r.stop()}}),Qt)}function Sn(){return{type:"CLEAR_SELECTED_BLOCK"}}function Cn(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}function Bn(e,t){var n,r,o=null!==(n=null==t||null===(r=t.__experimentalPreferredStyleVariations)||void 0===r?void 0:r.value)&&void 0!==n?n:{};return e.map((function(e){var t,n=e.name;if(!Object(p.hasBlockSupport)(n,"defaultStylePicker",!0))return e;if(!o[n])return e;var r=null===(t=e.attributes)||void 0===t?void 0:t.className;if(null!=r&&r.includes("is-style-"))return e;var c=e.attributes,i=void 0===c?{}:c,a=o[n];return Wt(Wt({},e),{},{attributes:Wt(Wt({},i),{},{className:"".concat(r||""," is-style-").concat(a).trim()})})}))}function In(e,t,n){var r,o,c,i,a,l=arguments;return Lt.a.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return r=l.length>3&&void 0!==l[3]?l[3]:0,o=l.length>4?l[4]:void 0,e=Object(d.castArray)(e),s.t0=Bn,s.t1=Object(d.castArray)(t),s.next=7,v.controls.select(Ht,"getSettings");case 7:return s.t2=s.sent,t=(0,s.t0)(s.t1,s.t2),s.next=11,v.controls.select(Ht,"getBlockRootClientId",Object(d.first)(e));case 11:c=s.sent,i=0;case 13:if(!(i<t.length)){s.next=23;break}return a=t[i],s.next=17,v.controls.select(Ht,"canInsertBlockType",a.name,c);case 17:if(s.sent){s.next=20;break}return s.abrupt("return");case 20:i++,s.next=13;break;case 23:return s.next=25,{type:"REPLACE_BLOCKS",clientIds:e,blocks:t,time:Date.now(),indexToSelect:n,initialPosition:r,meta:o};case 25:return s.delegateYield(fn(),"t3",26);case 26:case"end":return s.stop()}}),Zt)}function xn(e,t){return In(e,t)}function Pn(e){return function(t,n){return{clientIds:Object(d.castArray)(t),type:e,rootClientId:n}}}var Tn=Pn("MOVE_BLOCKS_DOWN"),Nn=Pn("MOVE_BLOCKS_UP");function Dn(e){var t,n,r,o,c,i=arguments;return Lt.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=i.length>1&&void 0!==i[1]?i[1]:"",n=i.length>2&&void 0!==i[2]?i[2]:"",r=i.length>3?i[3]:void 0,a.next=5,v.controls.select(Ht,"getTemplateLock",t);case 5:if("all"!==(o=a.sent)){a.next=8;break}return a.abrupt("return");case 8:if(c={type:"MOVE_BLOCKS_TO_POSITION",fromRootClientId:t,toRootClientId:n,clientIds:e,index:r},t!==n){a.next=13;break}return a.next=12,c;case 12:return a.abrupt("return");case 13:if("insert"!==o){a.next=15;break}return a.abrupt("return");case 15:return a.next=17,v.controls.select(Ht,"canInsertBlocks",e,n);case 17:if(!a.sent){a.next=21;break}return a.next=21,c;case 21:case"end":return a.stop()}}),Jt)}function An(e){var t,n,r,o=arguments;return Lt.a.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return t=o.length>1&&void 0!==o[1]?o[1]:"",n=o.length>2&&void 0!==o[2]?o[2]:"",r=o.length>3?o[3]:void 0,c.next=5,Dn([e],t,n,r);case 5:case"end":return c.stop()}}),en)}function Ln(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4?arguments[4]:void 0;return Rn([e],t,n,r,0,o)}function Rn(e,t,n){var r,o,c,i,a,l,s,u=arguments;return Lt.a.wrap((function(b){for(;;)switch(b.prev=b.next){case 0:return r=!(u.length>3&&void 0!==u[3])||u[3],o=u.length>4&&void 0!==u[4]?u[4]:0,c=u.length>5?u[5]:void 0,Object(d.isObject)(o)&&(c=o,o=0,Ft()("meta argument in wp.data.dispatch('core/block-editor')",{since:"10.1",plugin:"Gutenberg",hint:"The meta argument is now the 6th argument of the function"})),b.t0=Bn,b.t1=Object(d.castArray)(e),b.next=8,v.controls.select(Ht,"getSettings");case 8:b.t2=b.sent,e=(0,b.t0)(b.t1,b.t2),i=[],a=zt(e),b.prev=12,a.s();case 14:if((l=a.n()).done){b.next=22;break}return s=l.value,b.next=18,v.controls.select(Ht,"canInsertBlockType",s.name,n);case 18:b.sent&&i.push(s);case 20:b.next=14;break;case 22:b.next=27;break;case 24:b.prev=24,b.t3=b.catch(12),a.e(b.t3);case 27:return b.prev=27,a.f(),b.finish(27);case 30:if(!i.length){b.next=32;break}return b.abrupt("return",{type:"INSERT_BLOCKS",blocks:i,index:t,rootClientId:n,time:Date.now(),updateSelection:r,initialPosition:r?o:null,meta:c});case 32:case"end":return b.stop()}}),tn,null,[[12,24,27,30]])}function Mn(e,t){return{type:"SET_INSERTION_POINT",rootClientId:e,index:t}}function Fn(e,t){return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t}}function Vn(){return{type:"HIDE_INSERTION_POINT"}}function Hn(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}function zn(){var e,t,n;return Lt.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,{type:"SYNCHRONIZE_TEMPLATE"};case 2:return r.next=4,v.controls.select(Ht,"getBlocks");case 4:return e=r.sent,r.next=7,v.controls.select(Ht,"getTemplate");case 7:return t=r.sent,n=Object(p.synchronizeBlocksWithTemplate)(e,t),r.next=11,pn(n);case 11:return r.abrupt("return",r.sent);case 12:case"end":return r.stop()}}),nn)}function Gn(e,t){var n,r,o,i,a,l,s,u,b,f,m,O,g,h,j,k,_,E,w,S,C,B,I,x,P,T,N,D,A,L,R,M,F,V;return Lt.a.wrap((function(z){for(;;)switch(z.prev=z.next){case 0:return n=[e,t],z.next=3,{type:"MERGE_BLOCKS",blocks:n};case 3:return r=n[0],o=n[1],z.next=6,v.controls.select(Ht,"getBlock",r);case 6:if(i=z.sent,(a=Object(p.getBlockType)(i.name)).merge){z.next=12;break}return z.next=11,jn(i.clientId);case 11:return z.abrupt("return");case 12:return z.next=14,v.controls.select(Ht,"getBlock",o);case 14:return l=z.sent,s=Object(p.getBlockType)(l.name),z.next=18,v.controls.select(Ht,"getSelectionStart");case 18:if(u=z.sent,b=u.clientId,f=u.attributeKey,m=u.offset,O=(b===r?a:s).attributes[f],g=(b===r||b===o)&&void 0!==f&&void 0!==m&&!!O,O||("number"==typeof f?window.console.error("RichText needs an identifier prop that is the block attribute key of the attribute it controls. Its type is expected to be a string, but was ".concat(Object(H.a)(f))):window.console.error("The RichText identifier prop does not match any attributes defined by the block.")),h="†",j=Object(p.cloneBlock)(i),k=Object(p.cloneBlock)(l),g&&(E=(_=b===r?j:k).attributes[f],w=O.multiline,S=O.__unstableMultilineWrapperTags,C=O.__unstablePreserveWhiteSpace,B=Object(c.insert)(Object(c.create)({html:E,multilineTag:w,multilineWrapperTags:S,preserveWhiteSpace:C}),h,m,m),_.attributes[f]=Object(c.toHTMLString)({value:B,multilineTag:w,preserveWhiteSpace:C})),(I=i.name===l.name?[k]:Object(p.switchToBlockType)(k,i.name))&&I.length){z.next=33;break}return z.abrupt("return");case 33:if(x=a.merge(j.attributes,I[0].attributes),!g){z.next=45;break}return P=Object(d.findKey)(x,(function(e){return"string"==typeof e&&-1!==e.indexOf(h)})),T=x[P],N=a.attributes[P],D=N.multiline,A=N.__unstableMultilineWrapperTags,L=N.__unstablePreserveWhiteSpace,R=Object(c.create)({html:T,multilineTag:D,multilineWrapperTags:A,preserveWhiteSpace:L}),M=R.text.indexOf(h),F=Object(c.remove)(R,M,M+1),V=Object(c.toHTMLString)({value:F,multilineTag:D,preserveWhiteSpace:L}),x[P]=V,z.next=45,er(i.clientId,P,M,M);case 45:return z.delegateYield(In([i.clientId,l.clientId],[Wt(Wt({},i),{},{attributes:Wt(Wt({},i.attributes),x)})].concat(Object(y.a)(I.slice(1)))),"t0",46);case 46:case"end":return z.stop()}}),rn)}function Un(e){var t,n,r,o,c=arguments;return Lt.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(t=!(c.length>1&&void 0!==c[1])||c[1],e&&e.length){i.next=3;break}return i.abrupt("return");case 3:return e=Object(d.castArray)(e),i.next=6,v.controls.select(Ht,"getBlockRootClientId",e[0]);case 6:return n=i.sent,i.next=9,v.controls.select(Ht,"getTemplateLock",n);case 9:if(!i.sent){i.next=12;break}return i.abrupt("return");case 12:if(!t){i.next=18;break}return i.next=15,yn(e[0]);case 15:r=i.sent,i.next=21;break;case 18:return i.next=20,v.controls.select(Ht,"getPreviousBlockClientId",e[0]);case 20:r=i.sent;case 21:return i.next=23,{type:"REMOVE_BLOCKS",clientIds:e};case 23:return i.delegateYield(fn(),"t0",24);case 24:return o=i.t0,i.abrupt("return",[r||o]);case 26:case"end":return i.stop()}}),on)}function Wn(e,t){return Un([e],t)}function Kn(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return{type:"REPLACE_INNER_BLOCKS",rootClientId:e,blocks:t,updateSelection:n,initialPosition:n?r:null,time:Date.now()}}function qn(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function $n(){return{type:"START_TYPING"}}function Yn(){return{type:"STOP_TYPING"}}function Xn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:"START_DRAGGING_BLOCKS",clientIds:e}}function Qn(){return{type:"STOP_DRAGGING_BLOCKS"}}function Zn(){return{type:"ENTER_FORMATTED_TEXT"}}function Jn(){return{type:"EXIT_FORMATTED_TEXT"}}function er(e,t,n,r){return{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:r}}function tr(e,t,n){var r=Object(p.getDefaultBlockName)();if(r)return Ln(Object(p.createBlock)(r,e),n,t)}function nr(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function rr(e){return{type:"UPDATE_SETTINGS",settings:e}}function or(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function cr(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function ir(){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"}}function ar(){return Lt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{type:"MARK_AUTOMATIC_CHANGE"};case 2:return e.next=4,{type:"MARK_AUTOMATIC_CHANGE_FINAL_CONTROL"};case 4:case"end":return e.stop()}}),cn)}function lr(){return{type:"MARK_AUTOMATIC_CHANGE_FINAL"}}function sr(){var e,t=arguments;return Lt.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=!(t.length>0&&void 0!==t[0])||t[0],n.next=3,{type:"SET_NAVIGATION_MODE",isNavigationMode:e};case 3:e?Object(Rt.speak)(Object(k.__)("You are currently in navigation mode. Navigate blocks using the Tab key and Arrow keys. Use Left and Right Arrow keys to move between nesting levels. To exit navigation mode and edit the selected block, press Enter.")):Object(Rt.speak)(Object(k.__)("You are currently in edit mode. To return to the navigation mode, press Escape."));case 4:case"end":return n.stop()}}),an)}function ur(){var e,t=arguments;return Lt.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=t.length>0&&void 0!==t[0]?t[0]:null,n.next=3,{type:"SET_BLOCK_MOVING_MODE",hasBlockMovingClientId:e};case 3:e&&Object(Rt.speak)(Object(k.__)("Use the Tab key and Arrow keys to choose new block location. Use Left and Right Arrow keys to move between nesting levels. Once location is selected press Enter or Space to move the block."));case 4:case"end":return n.stop()}}),ln)}function dr(e){var t,n,r,o,c,i,a=arguments;return Lt.a.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:if(t=!(a.length>1&&void 0!==a[1])||a[1],e||e.length){l.next=3;break}return l.abrupt("return");case 3:return l.next=5,v.controls.select(Ht,"getBlocksByClientId",e);case 5:return n=l.sent,l.next=8,v.controls.select(Ht,"getBlockRootClientId",e[0]);case 8:if(r=l.sent,!Object(d.some)(n,(function(e){return!e}))){l.next=11;break}return l.abrupt("return");case 11:if(o=n.map((function(e){return e.name})),!Object(d.some)(o,(function(e){return!Object(p.hasBlockSupport)(e,"multiple",!0)}))){l.next=14;break}return l.abrupt("return");case 14:return l.next=16,v.controls.select(Ht,"getBlockIndex",Object(d.last)(Object(d.castArray)(e)),r);case 16:return c=l.sent,i=n.map((function(e){return Object(p.__experimentalCloneSanitizedBlock)(e)})),l.next=20,Rn(i,c+1,r,t);case 20:if(!(i.length>1&&t)){l.next=23;break}return l.next=23,wn(Object(d.first)(i).clientId,Object(d.last)(i).clientId);case 23:return l.abrupt("return",i.map((function(e){return e.clientId})));case 24:case"end":return l.stop()}}),sn)}function br(e){var t,n;return Lt.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,v.controls.select(Ht,"getBlockRootClientId",e);case 4:return t=r.sent,r.next=7,v.controls.select(Ht,"getTemplateLock",t);case 7:if(!r.sent){r.next=10;break}return r.abrupt("return");case 10:return r.next=12,v.controls.select(Ht,"getBlockIndex",e,t);case 12:return n=r.sent,r.next=15,tr({},t,n);case 15:return r.abrupt("return",r.sent);case 16:case"end":return r.stop()}}),un)}function fr(e){var t,n;return Lt.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,v.controls.select(Ht,"getBlockRootClientId",e);case 4:return t=r.sent,r.next=7,v.controls.select(Ht,"getTemplateLock",t);case 7:if(!r.sent){r.next=10;break}return r.abrupt("return");case 10:return r.next=12,v.controls.select(Ht,"getBlockIndex",e,t);case 12:return n=r.sent,r.next=15,tr({},t,n+1);case 15:return r.abrupt("return",r.sent);case 16:case"end":return r.stop()}}),dn)}function pr(e,t){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId:e,isHighlighted:t}}function mr(e){return Lt.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,pr(e,!0);case 2:return t.next=4,{type:"SLEEP",duration:150};case 4:return t.next=6,pr(e,!1);case 6:case"end":return t.stop()}}),bn)}function vr(e,t){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks:t,clientId:e}}function Or(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Or(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Or(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var hr={reducer:V,selectors:r,actions:o,controls:Vt},jr=Object(v.createReduxStore)(Ht,gr(gr({},hr),{},{persist:["preferences"]}));function yr(){var e=h(),t=e.isSelected,n=e.clientId,r=e.name,o=Object(v.useSelect)((function(e){if(!t){var o=e(jr),c=o.getBlockName,i=o.isFirstMultiSelectedBlock,a=o.getMultiSelectedBlockClientIds;return!!i(n)&&a().every((function(e){return c(e)===r}))}}),[n,t,r]);return t||o}Object(v.registerStore)(Ht,gr(gr({},hr),{},{persist:["preferences"]}));var kr={default:Object(m.createSlotFill)("BlockControls"),block:Object(m.createSlotFill)("BlockControlsBlock"),inline:Object(m.createSlotFill)("BlockFormatControls"),other:Object(m.createSlotFill)("BlockControlsOther")};function _r(e){var t=e.group,n=void 0===t?"default":t,r=e.controls,o=e.children;if(!yr())return null;var c=kr[n].Fill;return Object(l.createElement)(m.__experimentalStyleProvider,{document:document},Object(l.createElement)(c,null,(function(e){var t=Object(d.isEmpty)(e)?null:e;return Object(l.createElement)(m.__experimentalToolbarContext.Provider,{value:t},"default"===n&&Object(l.createElement)(m.ToolbarGroup,{controls:r}),o)})))}function Er(e){var t=e.group,n=void 0===t?"default":t,r=Object(j.a)(e,["group"]),o=Object(l.useContext)(m.__experimentalToolbarContext),c=kr[n].Slot,a=Object(m.__experimentalUseSlot)(c.__unstableName);return Boolean(a.fills&&a.fills.length)?"default"===n?Object(l.createElement)(c,Object(i.a)({},r,{bubblesVirtually:!0,fillProps:o})):Object(l.createElement)(m.ToolbarGroup,null,Object(l.createElement)(c,Object(i.a)({},r,{bubblesVirtually:!0,fillProps:o}))):null}var wr=_r;wr.Slot=Er;var Sr=function(e){return Object(l.createElement)(_r,Object(i.a)({group:"inline"},e))};Sr.Slot=function(e){return Object(l.createElement)(Er,Object(i.a)({group:"inline"},e))};var Cr=wr,Br=n(7),Ir=Object(l.createElement)(Br.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Br.Path,{d:"M4 9v6h14V9H4zm8-4.8H4v1.5h8V4.2zM4 19.8h8v-1.5H4v1.5z"})),xr=Object(l.createElement)(Br.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Br.Path,{d:"M5 15h14V9H5v6zm0 4.8h14v-1.5H5v1.5zM5 4.2v1.5h14V4.2H5z"})),Pr=Object(l.createElement)(Br.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Br.Path,{d:"M6 15h14V9H6v6zm6-10.8v1.5h8V4.2h-8zm0 15.6h8v-1.5h-8v1.5z"})),Tr=Object(l.createElement)(Br.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Br.Path,{d:"M5 9v6h14V9H5zm11-4.8H8v1.5h8V4.2zM8 19.8h8v-1.5H8v1.5z"})),Nr=Object(l.createElement)(Br.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Br.Path,{d:"M5 4v11h14V4H5zm3 15.8h8v-1.5H8v1.5z"})),Dr={type:"default"},Ar=Object(l.createContext)(Dr);function Lr(e,t){return e.split(",").map((function(e){return".editor-styles-wrapper ".concat(e," ").concat(t)})).join(",")}var Rr=Ar.Provider;function Mr(){return Object(l.useContext)(Ar)}function Fr(e){var t=e.selector,n=e.layout,r=void 0===n?{}:n,o=r.contentSize,c=r.wideSize,i=o||c?"\n\t\t\t\t".concat(Lr(t,"> *")," {\n\t\t\t\t\tmax-width: ").concat(null!=o?o:c,";\n\t\t\t\t\tmargin-left: auto;\n\t\t\t\t\tmargin-right: auto;\n\t\t\t\t}\n\n\t\t\t\t").concat(Lr(t,'> [data-align="wide"]'),"  {\n\t\t\t\t\tmax-width: ").concat(null!=c?c:o,";\n\t\t\t\t}\n\n\t\t\t\t").concat(Lr(t,'> [data-align="full"]')," {\n\t\t\t\t\tmax-width: none;\n\t\t\t\t}\n\t\t\t"):"";return i+="\n\t\t".concat(Lr(t,'> [data-align="left"]')," {\n\t\t\tfloat: left;\n\t\t\tmargin-right: 2em;\n\t\t}\n\n\t\t").concat(Lr(t,'> [data-align="right"]')," {\n\t\t\tfloat: right;\n\t\t\tmargin-left: 2em;\n\t\t}\n\t"),Object(l.createElement)("style",null,i)}var Vr=["left","center","right","wide","full"],Hr=["wide","full"];function zr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Vr,t=Object(v.useSelect)((function(e){return{wideControlsEnabled:(0,e(jr).getSettings)().alignWide}}),[]),n=t.wideControlsEnabled,r=void 0!==n&&n,o=Mr(),c="default"===o.type;if(!c)return[];var i=o.alignments,a=void 0===i?Vr:i,l=e.filter((function(e){return(o.alignments||r||!Hr.includes(e))&&a.includes(e)}));return l}function Gr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ur(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gr(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Wr={left:{icon:Ir,title:Object(k.__)("Align left")},center:{icon:xr,title:Object(k.__)("Align center")},right:{icon:Pr,title:Object(k.__)("Align right")},wide:{icon:Tr,title:Object(k.__)("Wide width")},full:{icon:Nr,title:Object(k.__)("Full width")}},Kr={isAlternate:!0};var qr=function(e){var t=e.value,n=e.onChange,r=e.controls,o=e.isToolbar,c=e.isCollapsed,a=void 0===c||c,s=e.isToolbarButton,u=void 0===s||s,d=zr(r);if(0===d.length)return null;var b=Wr[t],f=Wr.center,p=o?m.ToolbarGroup:m.DropdownMenu,v=o?{isCollapsed:a}:{isToolbarButton:u};return Object(l.createElement)(p,Object(i.a)({popoverProps:Kr,icon:b?b.icon:f.icon,label:Object(k.__)("Align"),toggleProps:{describedBy:Object(k.__)("Change alignment")},controls:d.map((function(e){return Ur(Ur({},Wr[e]),{},{isActive:t===e,role:a?"menuitemradio":void 0,onClick:(r=e,function(){return n(t===r?void 0:r)})});var r}))},v))};function $r(e){return Object(l.createElement)(qr,Object(i.a)({},e,{isToolbar:!1}))}function Yr(e){return Object(l.createElement)(qr,Object(i.a)({},e,{isToolbar:!0}))}function Xr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xr(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Zr=["left","center","right","wide","full"],Jr=["wide","full"];function eo(e){var t,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t=Array.isArray(e)?Zr.filter((function(t){return e.includes(t)})):!0===e?Zr:[],!r||!0===e&&!n?d.without.apply(void 0,[t].concat(Jr)):t}var to=Object(b.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=zr(eo(Object(p.getBlockSupport)(n,"align"),Object(p.hasBlockSupport)(n,"alignWide",!0)));return[r.length>0&&t.isSelected&&Object(l.createElement)(Cr,{key:"align-controls",group:"block"},Object(l.createElement)($r,{value:t.attributes.align,onChange:function(e){var n,r;e||(null===(n=Object(p.getBlockType)(t.name).attributes)||void 0===n||null===(r=n.align)||void 0===r?void 0:r.default)&&(e="");t.setAttributes({align:e})},controls:r})),Object(l.createElement)(e,Object(i.a)({key:"edit"},t))]}}),"withToolbarControls"),no=Object(b.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=t.attributes.align,o=zr(eo(Object(p.getBlockSupport)(n,"align"),Object(p.hasBlockSupport)(n,"alignWide",!0)));if(void 0===r)return Object(l.createElement)(e,t);var c=t.wrapperProps;return o.includes(r)&&(c=Qr(Qr({},c),{},{"data-align":r})),Object(l.createElement)(e,Object(i.a)({},t,{wrapperProps:c}))}}));Object(f.addFilter)("blocks.registerBlockType","core/align/addAttribute",(function(e){return Object(d.has)(e.attributes,["align","type"])||Object(p.hasBlockSupport)(e,"align")&&(e.attributes=Qr(Qr({},e.attributes),{},{align:{type:"string",enum:[].concat(Zr,[""])}})),e})),Object(f.addFilter)("editor.BlockListBlock","core/editor/align/with-data-align",no),Object(f.addFilter)("editor.BlockEdit","core/editor/align/with-toolbar-controls",to),Object(f.addFilter)("blocks.getSaveContent.extraProps","core/align/addAssignedAlign",(function(e,t,n){var r=n.align;return eo(Object(p.getBlockSupport)(t,"align"),Object(p.hasBlockSupport)(t,"alignWide",!0)).includes(r)&&(e.className=u()("align".concat(r),e.className)),e}));var ro=Object(m.createSlotFill)("InspectorAdvancedControls"),oo=ro.Fill,co=ro.Slot;function io(e){var t=e.children;return h().isSelected?Object(l.createElement)(m.__experimentalStyleProvider,{document:document},Object(l.createElement)(oo,null,t)):null}io.slotName="InspectorAdvancedControls",io.Slot=co;var ao=io,lo=Object(m.createSlotFill)("InspectorControls"),so=lo.Fill,uo=lo.Slot;function bo(e){var t=e.children;return yr()?Object(l.createElement)(m.__experimentalStyleProvider,{document:document},Object(l.createElement)(so,null,t)):null}bo.Slot=uo;var fo=bo;function po(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?po(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):po(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var vo=/[\s#]/g;var Oo=Object(b.createHigherOrderComponent)((function(e){return function(t){if(Object(p.hasBlockSupport)(t.name,"anchor")&&t.isSelected){var n="web"===l.Platform.OS,r=Object(l.createElement)(m.TextControl,{className:"html-anchor-control",label:Object(k.__)("HTML anchor"),help:Object(l.createElement)(l.Fragment,null,Object(k.__)("Enter a word or two — without spaces — to make a unique web address just for this block, called an “anchor.” Then, you’ll be able to link directly to this section of your page."),Object(l.createElement)(m.ExternalLink,{href:"https://wordpress.org/support/article/page-jumps/"},Object(k.__)("Learn more about anchors"))),value:t.attributes.anchor||"",placeholder:n?null:Object(k.__)("Add an anchor"),onChange:function(e){e=e.replace(vo,"-"),t.setAttributes({anchor:e})},autoCapitalize:"none",autoComplete:"off"});return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(e,t),n&&Object(l.createElement)(ao,null,r),!n&&"core/heading"===t.name&&Object(l.createElement)(fo,null,Object(l.createElement)(m.PanelBody,{title:Object(k.__)("Heading settings")},r)))}return Object(l.createElement)(e,t)}}),"withInspectorControl");function go(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ho(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?go(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):go(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Object(f.addFilter)("blocks.registerBlockType","core/anchor/attribute",(function(e){return Object(d.has)(e.attributes,["anchor","type"])||Object(p.hasBlockSupport)(e,"anchor")&&(e.attributes=mo(mo({},e.attributes),{},{anchor:{type:"string",source:"attribute",attribute:"id",selector:"*"}})),e})),Object(f.addFilter)("editor.BlockEdit","core/editor/anchor/with-inspector-control",Oo),Object(f.addFilter)("blocks.getSaveContent.extraProps","core/anchor/save-props",(function(e,t,n){return Object(p.hasBlockSupport)(t,"anchor")&&(e.id=""===n.anchor?null:n.anchor),e}));var jo=Object(b.createHigherOrderComponent)((function(e){return function(t){return Object(p.hasBlockSupport)(t.name,"customClassName",!0)&&t.isSelected?Object(l.createElement)(l.Fragment,null,Object(l.createElement)(e,t),Object(l.createElement)(ao,null,Object(l.createElement)(m.TextControl,{autoComplete:"off",label:Object(k.__)("Additional CSS class(es)"),value:t.attributes.className||"",onChange:function(e){t.setAttributes({className:""!==e?e:void 0})},help:Object(k.__)("Separate multiple classes with spaces.")}))):Object(l.createElement)(e,t)}}),"withInspectorControl");function yo(e){e="<div data-custom-class-name>".concat(e,"</div>");var t=Object(p.parseWithAttributeSchema)(e,{type:"string",source:"attribute",selector:"[data-custom-class-name] > *",attribute:"class"});return t?t.trim().split(/\s+/):[]}Object(f.addFilter)("blocks.registerBlockType","core/custom-class-name/attribute",(function(e){return Object(p.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes=ho(ho({},e.attributes),{},{className:{type:"string"}})),e})),Object(f.addFilter)("editor.BlockEdit","core/editor/custom-class-name/with-inspector-control",jo),Object(f.addFilter)("blocks.getSaveContent.extraProps","core/custom-class-name/save-props",(function(e,t,n){return Object(p.hasBlockSupport)(t,"customClassName",!0)&&n.className&&(e.className=u()(e.className,n.className)),e})),Object(f.addFilter)("blocks.getBlockAttributes","core/custom-class-name/addParsedDifference",(function(e,t,n){if(Object(p.hasBlockSupport)(t,"customClassName",!0)){var r=Object(d.omit)(e,["className"]),o=Object(p.getSaveContent)(t,r),c=yo(o),i=yo(n),a=Object(d.difference)(i,c);a.length?e.className=a.join(" "):o&&delete e.className}return e})),Object(f.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",(function(e,t){return Object(p.hasBlockSupport)(t,"className",!0)&&("string"==typeof e.className?e.className=Object(d.uniq)([Object(p.getBlockDefaultClassName)(t.name)].concat(Object(y.a)(e.className.split(" ")))).join(" ").trim():e.className=Object(p.getBlockDefaultClassName)(t.name)),e}));var ko={"color.palette":function(e){return void 0===e.colors?void 0:e.colors},"color.gradients":function(e){return void 0===e.gradients?void 0:e.gradients},"color.custom":function(e){return void 0===e.disableCustomColors?void 0:!e.disableCustomColors},"color.customGradient":function(e){return void 0===e.disableCustomGradients?void 0:!e.disableCustomGradients},"typography.fontSizes":function(e){return void 0===e.fontSizes?void 0:e.fontSizes},"typography.customFontSize":function(e){return void 0===e.disableCustomFontSizes?void 0:!e.disableCustomFontSizes},"typography.customLineHeight":function(e){return e.enableCustomLineHeight},"spacing.units":function(e){if(void 0!==e.enableCustomUnits)return!0===e.enableCustomUnits?["px","em","rem","vh","vw"]:e.enableCustomUnits},"spacing.customPadding":function(e){return e.enableCustomSpacing}};function _o(e,t){for(var n in t)if(t[n]!==e[n])return!1;return!0}function Eo(e){var t=h(),n=t.name,r=t.clientId;return Object(v.useSelect)((function(t){var o,c=t(jr),i=c.getBlockAttributes,a=(0,c.getSettings)(),l=t(p.store).getBlockType(n),s=n,u=Object(d.get)(l,["supports","__experimentalSelector"]);if(r&&Object(d.isObject)(u)){var b=i(r)||{};for(var f in u){if(_o(b,u[f].attributes)){s=f;break}}}var m="__experimentalFeatures.defaults.".concat(e),v="__experimentalFeatures.".concat(s,".").concat(e),O=null!==(o=Object(d.get)(a,v))&&void 0!==o?o:Object(d.get)(a,m);if(void 0!==O)return O;var g=ko[e]?ko[e](a):void 0;return void 0!==g?g:"typography.dropCap"===e||void 0}),[n,r,e])}var wo=n(12),So=n(62),Co=n.n(So),Bo=function(e,t,n){if(t){var r=Object(d.find)(e,{slug:t});if(r)return r}return{color:n}},Io=function(e,t){return Object(d.find)(e,{color:t})};function xo(e,t){if(e&&t)return"has-".concat(Object(d.kebabCase)(t),"-").concat(e)}var Po=[];function To(e){if(e)return"has-".concat(e,"-gradient-background")}function No(e,t){var n=Object(d.find)(e,["slug",t]);return n&&n.gradient}function Do(e,t){return Object(d.find)(e,["gradient",t])}function Ao(e,t){var n=Do(e,t);return n&&n.slug}function Lo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.gradientAttribute,n=void 0===t?"gradient":t,r=e.customGradientAttribute,o=void 0===r?"customGradient":r,c=h(),i=c.clientId,s=Eo("color.gradients")||Po,u=Object(v.useSelect)((function(e){var t=(0,e(jr).getBlockAttributes)(i)||{};return{customGradient:t[o],gradient:t[n]}}),[i,n,o]),d=u.gradient,b=u.customGradient,f=Object(v.useDispatch)(jr),p=f.updateBlockAttributes,m=Object(l.useCallback)((function(e){var t,r,c=Ao(s,e);c?p(i,(r={},Object(a.a)(r,n,c),Object(a.a)(r,o,void 0),r)):p(i,(t={},Object(a.a)(t,n,void 0),Object(a.a)(t,o,e),t))}),[s,i,p]),O=To(d);return{gradientClass:O,gradientValue:d?No(s,d):b,setGradient:m}}function Ro(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ro(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ro(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Fo=Object(k.__)("(Color: %s)"),Vo=Object(k.__)("(Gradient: %s)"),Ho=["colors","disableCustomColors","gradients","disableCustomGradients"];function zo(e){var t,n,r=e.colors,o=e.gradients,c=e.label,i=e.currentTab,a=e.colorValue,s=e.gradientValue;if("color"===i){if(a){var u=Io(r,t=a),d=u&&u.name;n=Object(k.sprintf)(Fo,d||t)}}else if("gradient"===i&&s){var b=Do(o,t=s),f=b&&b.name;n=Object(k.sprintf)(Vo,f||t)}return Object(l.createElement)(l.Fragment,null,c,!!t&&Object(l.createElement)(m.ColorIndicator,{colorValue:t,"aria-label":n}))}function Go(e){var t=e.colors,n=e.gradients,r=e.disableCustomColors,o=e.disableCustomGradients,c=e.className,i=e.label,a=e.onColorChange,s=e.onGradientChange,b=e.colorValue,f=e.gradientValue,p=e.clearable,v=a&&(!Object(d.isEmpty)(t)||!r),O=s&&(!Object(d.isEmpty)(n)||!o),g=Object(l.useState)(f?"gradient":!!v&&"color"),h=Object(wo.a)(g,2),j=h[0],y=h[1];return v||O?Object(l.createElement)(m.BaseControl,{className:u()("block-editor-color-gradient-control",c)},Object(l.createElement)("fieldset",null,Object(l.createElement)("legend",null,Object(l.createElement)("div",{className:"block-editor-color-gradient-control__color-indicator"},Object(l.createElement)(m.BaseControl.VisualLabel,null,Object(l.createElement)(zo,{currentTab:j,label:i,colorValue:b,gradientValue:f})))),v&&O&&Object(l.createElement)(m.ButtonGroup,{className:"block-editor-color-gradient-control__button-tabs"},Object(l.createElement)(m.Button,{isSmall:!0,isPressed:"color"===j,onClick:function(){return y("color")}},Object(k.__)("Solid")),Object(l.createElement)(m.Button,{isSmall:!0,isPressed:"gradient"===j,onClick:function(){return y("gradient")}},Object(k.__)("Gradient"))),("color"===j||!O)&&Object(l.createElement)(m.ColorPalette,{value:b,onChange:O?function(e){a(e),s()}:a,colors:t,disableCustomColors:r,clearable:p}),("gradient"===j||!v)&&Object(l.createElement)(m.__experimentalGradientPicker,{value:f,onChange:v?function(e){s(e),a()}:s,gradients:n,disableCustomGradients:o,clearable:p}))):null}function Uo(e){var t={};return t.colors=Eo("color.palette"),t.gradients=Eo("color.gradients"),t.disableCustomColors=!Eo("color.custom"),t.disableCustomGradients=!Eo("color.customGradient"),Object(l.createElement)(Go,Mo(Mo({},t),e))}var Wo=function(e){return Object(d.every)(Ho,(function(t){return e.hasOwnProperty(t)}))?Object(l.createElement)(Go,e):Object(l.createElement)(Uo,e)},Ko=function e(t){if(!Object(d.isObject)(t))return t;var n=Object(d.pickBy)(Object(d.mapValues)(t,e),d.identity);return Object(d.isEqual)(n,{})?void 0:n};function qo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qo(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Yo=[];function Xo(e){var t,n=e.attributes,r=n.borderColor,o=n.style,c=e.setAttributes,i=Eo("color.palette")||Yo,a=!Eo("color.custom"),s=!Eo("color.customGradient");return Object(l.createElement)(Wo,{label:Object(k.__)("Border color"),value:r||(null==o||null===(t=o.border)||void 0===t?void 0:t.color),colors:i,gradients:void 0,disableCustomColors:a,disableCustomGradients:s,onColorChange:function(e){var t=Io(i,e),n=$o($o({},o),{},{border:$o($o({},null==o?void 0:o.border),{},{color:null!=t&&t.slug?void 0:e})}),r=null!=t&&t.slug?t.slug:void 0;c({style:Ko(n),borderColor:r})}})}function Qo(e,t,n){var r;if(!bc(t,"color")||fc(t))return e;var o=n.borderColor,c=n.style,i=xo("border-color",o),l=u()(e.className,Object(a.a)({"has-border-color":o||(null==c||null===(r=c.border)||void 0===r?void 0:r.color)},i,!!i));return e.className=l||void 0,e}var Zo=Object(b.createHigherOrderComponent)((function(e){return function(t){var n,r,o=t.name,c=t.attributes.borderColor,a=Eo("color.palette")||Yo;if(!bc(o,"color")||fc(o))return Object(l.createElement)(e,t);var s={borderColor:c?null===(n=Bo(a,c))||void 0===n?void 0:n.color:void 0},u=t.wrapperProps;return u=$o($o({},t.wrapperProps),{},{style:$o($o({},s),null===(r=t.wrapperProps)||void 0===r?void 0:r.style)}),Object(l.createElement)(e,Object(i.a)({},t,{wrapperProps:u}))}}));function Jo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ec(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jo(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Object(f.addFilter)("blocks.registerBlockType","core/border/addAttributes",(function(e){return bc(e,"color")?e.attributes.borderColor?e:$o($o({},e),{},{attributes:$o($o({},e.attributes),{},{borderColor:{type:"string"}})}):e})),Object(f.addFilter)("blocks.getSaveContent.extraProps","core/border/addSaveProps",Qo),Object(f.addFilter)("blocks.registerBlockType","core/border/addEditProps",(function(e){if(!bc(e,"color")||fc(e))return e;var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),Qo(r,e,n)},e})),Object(f.addFilter)("editor.BlockListBlock","core/border/with-border-color-palette-styles",Zo);function tc(e){var t,n=e.attributes.style,r=e.setAttributes;return Object(l.createElement)(m.RangeControl,{value:null==n||null===(t=n.border)||void 0===t?void 0:t.radius,label:Object(k.__)("Border radius"),min:0,max:50,initialPosition:0,allowReset:!0,onChange:function(e){var t=ec(ec({},n),{},{border:ec(ec({},null==n?void 0:n.border),{},{radius:e})});void 0===e&&(t=Ko(t)),r({style:t})}})}var nc={key:"default",name:Object(k.__)("Default"),style:{borderStyle:void 0}},rc=[nc,{key:"none",name:Object(k.__)("None"),style:{borderStyle:"none"}},{key:"solid",name:Object(k.__)("Solid"),style:{borderStyle:"solid"}},{key:"dashed",name:Object(k.__)("Dashed"),style:{borderStyle:"dashed"}},{key:"dotted",name:Object(k.__)("Dotted"),style:{borderStyle:"dotted"}}];function oc(e){var t=e.onChange,n=e.value,r=rc.find((function(e){return e.key===n}));return Object(l.createElement)("fieldset",{className:"components-border-style-control"},Object(l.createElement)(m.CustomSelectControl,{className:"components-border-style-control__select",label:Object(k.__)("Border style"),options:rc,value:r||nc,onChange:function(e){var n=e.selectedItem;return"default"===n.key?t(void 0):t(n.key)}}))}function cc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ic(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cc(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ac=function(e){var t,n=e.attributes.style,r=e.setAttributes;return Object(l.createElement)(oc,{value:null==n||null===(t=n.border)||void 0===t?void 0:t.style,onChange:function(e){var t=ic(ic({},n),{},{border:ic(ic({},null==n?void 0:n.border),{},{style:e})});r({style:Ko(t)})}})};function lc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lc(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var uc=function(e){var t,n=e.attributes.style,r=e.setAttributes;return Object(l.createElement)(m.RangeControl,{value:null==n||null===(t=n.border)||void 0===t?void 0:t.width,label:Object(k.__)("Border width"),min:0,max:50,initialPosition:0,allowReset:!0,onChange:function(e){var t=sc(sc({},n),{},{border:sc(sc({},null==n?void 0:n.border),{},{width:e})});r({style:Ko(t)})}})};function dc(e){var t=pc(e),n=bc(e.name),r=Eo("border.customColor")&&bc(e.name,"color"),o=Eo("border.customRadius")&&bc(e.name,"radius"),c=Eo("border.customStyle")&&bc(e.name,"style"),i=Eo("border.customWidth")&&bc(e.name,"width");return t||!n?null:Object(l.createElement)(fo,null,Object(l.createElement)(m.PanelBody,{title:Object(k.__)("Border settings"),initialOpen:!1},c&&Object(l.createElement)(ac,e),i&&Object(l.createElement)(uc,e),o&&Object(l.createElement)(tc,e),r&&Object(l.createElement)(Xo,e)))}function bc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"any";if("web"!==l.Platform.OS)return!1;var n=Object(p.getBlockSupport)(e,"__experimentalBorder");return!0===n||("any"===t?!!(null!=n&&n.color||null!=n&&n.radius||null!=n&&n.width||null!=n&&n.style):!(null==n||!n[t]))}function fc(e){var t=Object(p.getBlockSupport)(e,"__experimentalBorder");return null==t?void 0:t.__experimentalSkipSerialization}var pc=function(){return[!Eo("border.customColor"),!Eo("border.customRadius"),!Eo("border.customStyle"),!Eo("border.customWidth")].every(Boolean)};function mc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mc(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Oc=Object(k.__)("(%s: color %s)"),gc=Object(k.__)("(%s: gradient %s)"),hc=["colors","disableCustomColors","gradients","disableCustomGradients"],jc=function(e){var t=e.colors,n=e.gradients;return e.settings.map((function(e,r){var o,c=e.colorValue,i=e.gradientValue,a=e.label,s=e.colors,u=e.gradients;if(!c&&!i)return null;if(c){var d=Io(s||t,c);o=Object(k.sprintf)(Oc,a.toLowerCase(),d&&d.name||c)}else{var b=Do(u||n,c);o=Object(k.sprintf)(gc,a.toLowerCase(),b&&b.name||i)}return Object(l.createElement)(m.ColorIndicator,{key:r,colorValue:c||i,"aria-label":o})}))},yc=function(e){var t=e.className,n=e.colors,r=e.gradients,o=e.disableCustomColors,c=e.disableCustomGradients,a=e.children,s=e.settings,b=e.title,f=Object(j.a)(e,["className","colors","gradients","disableCustomColors","disableCustomGradients","children","settings","title"]);if(Object(d.isEmpty)(n)&&Object(d.isEmpty)(r)&&o&&c&&Object(d.every)(s,(function(e){return Object(d.isEmpty)(e.colors)&&Object(d.isEmpty)(e.gradients)&&(void 0===e.disableCustomColors||e.disableCustomColors)&&(void 0===e.disableCustomGradients||e.disableCustomGradients)})))return null;var p=Object(l.createElement)("span",{className:"block-editor-panel-color-gradient-settings__panel-title"},b,Object(l.createElement)(jc,{colors:n,gradients:r,settings:s}));return Object(l.createElement)(m.PanelBody,Object(i.a)({className:u()("block-editor-panel-color-gradient-settings",t),title:p},f),s.map((function(e,t){return Object(l.createElement)(Wo,Object(i.a)({key:t},vc({colors:n,gradients:r,disableCustomColors:o,disableCustomGradients:c},e)))})),a)},kc=function(e){var t={};return t.colors=Eo("color.palette"),t.gradients=Eo("color.gradients"),t.disableCustomColors=!Eo("color.custom"),t.disableCustomGradients=!Eo("color.customGradient"),Object(l.createElement)(yc,vc(vc({},t),e))},_c=function(e){return Object(d.every)(hc,(function(t){return e.hasOwnProperty(t)}))?Object(l.createElement)(yc,e):Object(l.createElement)(kc,e)};function Ec(e){var t=e.tinyBackgroundColor,n=e.tinyTextColor,r=e.backgroundColor,o=e.textColor,c=t.getBrightness()<n.getBrightness()?Object(k.__)("This color combination may be hard for people to read. Try using a darker background color and/or a brighter text color."):Object(k.__)("This color combination may be hard for people to read. Try using a brighter background color and/or a darker text color.");return Object(l.useEffect)((function(){Object(Rt.speak)(Object(k.__)("This color combination may be hard for people to read."))}),[r,o]),Object(l.createElement)("div",{className:"block-editor-contrast-checker"},Object(l.createElement)(m.Notice,{spokenMessage:null,status:"warning",isDismissible:!1},c))}var wc=function(e){var t=e.backgroundColor,n=e.fallbackBackgroundColor,r=e.fallbackTextColor,o=e.fontSize,c=e.isLargeText,i=e.textColor;if(!t&&!n||!i&&!r)return null;var a=Co()(t||n),s=Co()(i||r);return 1!==a.getAlpha()||1!==s.getAlpha()||Co.a.isReadable(a,s,{level:"AA",size:c||!1!==c&&o>=24?"large":"small"})?null:Object(l.createElement)(Ec,{backgroundColor:t,textColor:i,tinyBackgroundColor:a,tinyTextColor:s})};function Sc(e,t){return t.getElementById("block-"+e)}function Cc(e,t){return t.closest(".block-editor-block-list__block")===e}function Bc(e){for(;e&&e.nodeType!==e.ELEMENT_NODE;)e=e.parentNode;if(e){var t=e.closest(".block-editor-block-list__block");if(t)return t.id.slice("block-".length)}}function Ic(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function xc(e){var t=e.settings,n=e.clientId,r=e.enableContrastChecking,o=void 0===r||r,c=Object(l.useState)(),i=Object(wo.a)(c,2),a=i[0],s=i[1],u=Object(l.useState)(),d=Object(wo.a)(u,2),b=d[0],f=d[1];return Object(l.useEffect)((function(){if(o){var e=Sc(n,document);if(e){f(Ic(e).color);for(var t=e,r=Ic(t).backgroundColor;"rgba(0, 0, 0, 0)"===r&&t.parentNode&&t.parentNode.nodeType===t.parentNode.ELEMENT_NODE;)r=Ic(t=t.parentNode).backgroundColor;s(r)}}})),Object(l.createElement)(fo,null,Object(l.createElement)(_c,{title:Object(k.__)("Color"),initialOpen:!1,settings:t},o&&Object(l.createElement)(wc,{backgroundColor:a,textColor:b})))}function Pc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pc(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Nc=[],Dc=function(e){var t=Object(p.getBlockSupport)(e,"color");return t&&(!0===t.link||!0===t.gradient||!1!==t.background||!1!==t.text)},Ac=function(e){var t=Object(p.getBlockSupport)(e,"color");return null==t?void 0:t.__experimentalSkipSerialization},Lc=function(e){if("web"!==l.Platform.OS)return!1;var t=Object(p.getBlockSupport)(e,"color");return Object(d.isObject)(t)&&!!t.link},Rc=function(e){if("web"!==l.Platform.OS)return!1;var t=Object(p.getBlockSupport)(e,"color");return Object(d.isObject)(t)&&!!t.gradients},Mc=function(e){var t=Object(p.getBlockSupport)(e,"color");return t&&!1!==t.text};function Fc(e,t,n){var r,o,c,i,l,s;if(!Dc(t)||Ac(t))return e;var d=Rc(t),b=n.backgroundColor,f=n.textColor,p=n.gradient,m=n.style,v=xo("background-color",b),O=To(p),g=xo("color",f),h=u()(e.className,g,O,(s={},Object(a.a)(s,v,!(d&&null!=m&&null!==(r=m.color)&&void 0!==r&&r.gradient||!v)),Object(a.a)(s,"has-text-color",f||(null==m||null===(o=m.color)||void 0===o?void 0:o.text)),Object(a.a)(s,"has-background",b||(null==m||null===(c=m.color)||void 0===c?void 0:c.background)||d&&(p||(null==m||null===(i=m.color)||void 0===i?void 0:i.gradient))),Object(a.a)(s,"has-link-color",null==m||null===(l=m.color)||void 0===l?void 0:l.link),s));return e.className=h||void 0,e}var Vc=function(e,t){var n=/var:preset\|color\|(.+)/.exec(t);return n&&n[1]?Bo(e,n[1]).color:t};function Hc(e){var t,n,r,o,c,i,s=e.name,u=e.attributes,d=Eo("color.link"),b=Eo("color.palette")||Nc,f=Eo("color.gradients")||Nc,m=Object(l.useRef)(u);if(Object(l.useEffect)((function(){m.current=u}),[u]),!Dc(s)||"web"!==l.Platform.OS)return null;var v,O,g,h=(v=s,(O=Object(p.getBlockSupport)(v,"color"))&&!1!==O.background),j=Rc(s),_=u.style,E=u.textColor,w=u.backgroundColor,S=u.gradient;if(j&&S)g=No(f,S);else if(j){var C;g=null==_||null===(C=_.color)||void 0===C?void 0:C.gradient}var B=function(t){return function(n){var r,o,c=Io(b,n),i=t+"Color",l=Tc(Tc({},m.current.style),{},{color:Tc(Tc({},null===(r=m.current)||void 0===r||null===(o=r.style)||void 0===o?void 0:o.color),{},Object(a.a)({},t,null!=c&&c.slug?void 0:n))}),s=null!=c&&c.slug?c.slug:void 0,u=Object(a.a)({style:Ko(l)},i,s);e.setAttributes(u),m.current=Tc(Tc({},m.current),u)}};return Object(l.createElement)(xc,{enableContrastChecking:!("web"!==l.Platform.OS||S||null!=_&&null!==(t=_.color)&&void 0!==t&&t.gradient),clientId:e.clientId,settings:[].concat(Object(y.a)(Mc(s)?[{label:Object(k.__)("Text color"),onColorChange:B("text"),colorValue:Bo(b,E,null==_||null===(n=_.color)||void 0===n?void 0:n.text).color}]:[]),Object(y.a)(h||j?[{label:Object(k.__)("Background color"),onColorChange:h?B("background"):void 0,colorValue:Bo(b,w,null==_||null===(r=_.color)||void 0===r?void 0:r.background).color,gradientValue:g,onGradientChange:j?function(t){var n,r=Ao(f,t);if(r){var o,c,i,a=Tc(Tc({},null===(o=m.current)||void 0===o?void 0:o.style),{},{color:Tc(Tc({},null===(c=m.current)||void 0===c||null===(i=c.style)||void 0===i?void 0:i.color),{},{gradient:void 0})});n={style:Ko(a),gradient:r}}else{var l,s,u,d=Tc(Tc({},null===(l=m.current)||void 0===l?void 0:l.style),{},{color:Tc(Tc({},null===(s=m.current)||void 0===s||null===(u=s.style)||void 0===u?void 0:u.color),{},{gradient:t})});n={style:Ko(d),gradient:void 0}}e.setAttributes(n),m.current=Tc(Tc({},m.current),n)}:void 0}]:[]),Object(y.a)(d&&Lc(s)?[{label:Object(k.__)("Link Color"),onColorChange:function(t){var n,r=Io(b,t);e.setAttributes({style:Tc(Tc({},e.attributes.style),{},{color:Tc(Tc({},null===(n=e.attributes.style)||void 0===n?void 0:n.color),{},{link:null!=r&&r.slug?"var:preset|color|".concat(r.slug):t})})})},colorValue:Vc(b,null==_||null===(o=_.color)||void 0===o?void 0:o.link),clearable:!(null===(c=e.attributes.style)||void 0===c||null===(i=c.color)||void 0===i||!i.link)}]:[]))})}var zc=Object(b.createHigherOrderComponent)((function(e){return function(t){var n,r,o,c=t.name,a=t.attributes,s=a.backgroundColor,u=a.textColor,d=Eo("color.palette")||Nc;if(!Dc(c)||Ac(c))return Object(l.createElement)(e,t);var b={color:u?null===(n=Bo(d,u))||void 0===n?void 0:n.color:void 0,backgroundColor:s?null===(r=Bo(d,s))||void 0===r?void 0:r.color:void 0},f=t.wrapperProps;return f=Tc(Tc({},t.wrapperProps),{},{style:Tc(Tc({},b),null===(o=t.wrapperProps)||void 0===o?void 0:o.style)}),Object(l.createElement)(e,Object(i.a)({},t,{wrapperProps:f}))}}));Object(f.addFilter)("blocks.registerBlockType","core/color/addAttribute",(function(e){return Dc(e)?(e.attributes.backgroundColor||Object.assign(e.attributes,{backgroundColor:{type:"string"}}),e.attributes.textColor||Object.assign(e.attributes,{textColor:{type:"string"}}),Rc(e)&&!e.attributes.gradient&&Object.assign(e.attributes,{gradient:{type:"string"}}),e):e})),Object(f.addFilter)("blocks.getSaveContent.extraProps","core/color/addSaveProps",Fc),Object(f.addFilter)("blocks.registerBlockType","core/color/addEditProps",(function(e){if(!Dc(e)||Ac(e))return e;var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),Fc(r,e,n)},e})),Object(f.addFilter)("editor.BlockListBlock","core/color/with-color-palette-styles",zc);var Gc=Object(l.createElement)(Br.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Br.Path,{d:"M7 18v1h10v-1H7zm5-2c1.5 0 2.6-.4 3.4-1.2.8-.8 1.1-2 1.1-3.5V5H15v5.8c0 1.2-.2 2.1-.6 2.8-.4.7-1.2 1-2.4 1s-2-.3-2.4-1c-.4-.7-.6-1.6-.6-2.8V5H7.5v6.2c0 1.5.4 2.7 1.1 3.5.8.9 1.9 1.3 3.4 1.3z"})),Uc=n(303),Wc=[{name:Object(k.__)("Underline"),value:"underline",icon:Gc},{name:Object(k.__)("Strikethrough"),value:"line-through",icon:Uc.a}];function Kc(e){var t=e.value,n=e.onChange;return Object(l.createElement)("fieldset",{className:"block-editor-text-decoration-control"},Object(l.createElement)("legend",null,Object(k.__)("Decoration")),Object(l.createElement)("div",{className:"block-editor-text-decoration-control__buttons"},Wc.map((function(e){return Object(l.createElement)(m.Button,{key:e.value,icon:e.icon,isSmall:!0,isPressed:e.value===t,onClick:function(){return n(e.value===t?void 0:e.value)},"aria-label":e.name})}))))}function qc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qc(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Yc(e){var t,n=e.attributes.style,r=e.setAttributes;if(Xc(e))return null;return Object(l.createElement)(Kc,{value:null==n||null===(t=n.typography)||void 0===t?void 0:t.textDecoration,onChange:function(e){r({style:Ko($c($c({},n),{},{typography:$c($c({},null==n?void 0:n.typography),{},{textDecoration:e})}))})}})}function Xc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=!Object(p.hasBlockSupport)(t,"__experimentalTextDecoration"),r=Eo("typography.customTextDecorations");return n||!r}var Qc=Object(l.createElement)(Br.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Br.Path,{d:"M6.1 6.8L2.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H6.1zm-.8 6.8L7 8.9l1.7 4.7H5.3zm15.1-.7c-.4-.5-.9-.8-1.6-1 .4-.2.7-.5.8-.9.2-.4.3-.9.3-1.4 0-.9-.3-1.6-.8-2-.6-.5-1.3-.7-2.4-.7h-3.5V18h4.2c1.1 0 2-.3 2.6-.8.6-.6 1-1.4 1-2.4-.1-.8-.3-1.4-.6-1.9zm-5.7-4.7h1.8c.6 0 1.1.1 1.4.4.3.2.5.7.5 1.3 0 .6-.2 1.1-.5 1.3-.3.2-.8.4-1.4.4h-1.8V8.2zm4 8c-.4.3-.9.5-1.5.5h-2.6v-3.8h2.6c1.4 0 2 .6 2 1.9.1.6-.1 1-.5 1.4z"})),Zc=Object(l.createElement)(Br.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Br.Path,{d:"M11 16.8c-.1-.1-.2-.3-.3-.5v-2.6c0-.9-.1-1.7-.3-2.2-.2-.5-.5-.9-.9-1.2-.4-.2-.9-.3-1.6-.3-.5 0-1 .1-1.5.2s-.9.3-1.2.6l.2 1.2c.4-.3.7-.4 1.1-.5.3-.1.7-.2 1-.2.6 0 1 .1 1.3.4.3.2.4.7.4 1.4-1.2 0-2.3.2-3.3.7s-1.4 1.1-1.4 2.1c0 .7.2 1.2.7 1.6.4.4 1 .6 1.8.6.9 0 1.7-.4 2.4-1.2.1.3.2.5.4.7.1.2.3.3.6.4.3.1.6.1 1.1.1h.1l.2-1.2h-.1c-.4.1-.6 0-.7-.1zM9.2 16c-.2.3-.5.6-.9.8-.3.1-.7.2-1.1.2-.4 0-.7-.1-.9-.3-.2-.2-.3-.5-.3-.9 0-.6.2-1 .7-1.3.5-.3 1.3-.4 2.5-.5v2zm10.6-3.9c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2s-.2 1.4-.6 2z"})),Jc=Object(l.createElement)(Br.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Br.Path,{d:"M7.1 6.8L3.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H7.1zm-.8 6.8L8 8.9l1.7 4.7H6.3zm14.5-1.5c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2 .1.8-.2 1.4-.6 2z"})),ei=[{name:Object(k.__)("Uppercase"),value:"uppercase",icon:Qc},{name:Object(k.__)("Lowercase"),value:"lowercase",icon:Zc},{name:Object(k.__)("Capitalize"),value:"capitalize",icon:Jc}];function ti(e){var t=e.value,n=e.onChange;return Object(l.createElement)("fieldset",{className:"block-editor-text-transform-control"},Object(l.createElement)("legend",null,Object(k.__)("Letter case")),Object(l.createElement)("div",{className:"block-editor-text-transform-control__buttons"},ei.map((function(e){return Object(l.createElement)(m.Button,{key:e.value,icon:e.icon,isSmall:!0,isPressed:t===e.value,"aria-label":e.name,onClick:function(){return n(t===e.value?void 0:e.value)}})}))))}function ni(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ri(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ni(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ni(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oi(e){var t,n=e.attributes.style,r=e.setAttributes;if(ci(e))return null;return Object(l.createElement)(ti,{value:null==n||null===(t=n.typography)||void 0===t?void 0:t.textTransform,onChange:function(e){r({style:Ko(ri(ri({},n),{},{typography:ri(ri({},null==n?void 0:n.typography),{},{textTransform:e})}))})}})}function ci(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=!Object(p.hasBlockSupport)(t,"__experimentalTextTransform"),r=Eo("typography.customTextTransforms");return n||!r}function ii(e){var t=!Xc(e),n=!ci(e);return t||n?Object(l.createElement)("div",{className:"block-editor-text-decoration-and-transform"},t&&Object(l.createElement)(Yc,e),n&&Object(l.createElement)(oi,e)):null}var ai=n(17);function li(e){var t=e.value,n=e.onChange,r=function(e){return void 0!==e&&""!==e}(t),o=r?t:"";return Object(l.createElement)("div",{className:"block-editor-line-height-control"},Object(l.createElement)(m.TextControl,{autoComplete:"off",onKeyDown:function(e){e.keyCode!==ai.ZERO||r||(e.preventDefault(),n("0"))},onChange:function(e){if(r)n(e);else{var t=e;switch(e){case"".concat(.1):t=1.6;break;case"0":t=1.4}n(t)}},label:Object(k.__)("Line height"),placeholder:1.5,step:.1,type:"number",value:o,min:0}))}function si(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ui(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?si(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):si(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function di(e){var t,n=e.attributes.style;if(bi(e))return null;return Object(l.createElement)(li,{value:null==n||null===(t=n.typography)||void 0===t?void 0:t.lineHeight,onChange:function(t){var r=ui(ui({},n),{},{typography:ui(ui({},null==n?void 0:n.typography),{},{lineHeight:t})});e.setAttributes({style:Ko(r)})}})}function bi(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=!Eo("typography.customLineHeight");return!Object(p.hasBlockSupport)(t,"lineHeight")||n}var fi=[{name:Object(k.__)("Regular"),value:"normal"},{name:Object(k.__)("Italic"),value:"italic"}],pi=[{name:Object(k.__)("Thin"),value:"100"},{name:Object(k.__)("Extra Light"),value:"200"},{name:Object(k.__)("Light"),value:"300"},{name:Object(k.__)("Regular"),value:"400"},{name:Object(k.__)("Medium"),value:"500"},{name:Object(k.__)("Semi Bold"),value:"600"},{name:Object(k.__)("Bold"),value:"700"},{name:Object(k.__)("Extra Bold"),value:"800"},{name:Object(k.__)("Black"),value:"900"}];function mi(e){var t=e.onChange,n=e.hasFontStyles,r=void 0===n||n,o=e.hasFontWeights,c=void 0===o||o,i=e.value,a=i.fontStyle,s=i.fontWeight,u=r||c,d={key:"default",name:Object(k.__)("Default"),style:{fontStyle:void 0,fontWeight:void 0}},b=Object(l.useMemo)((function(){return r&&c?(e=[d],fi.forEach((function(t){var n=t.name,r=t.value;pi.forEach((function(t){var o=t.name,c=t.value,i="normal"===r?o:Object(k.sprintf)(Object(k.__)("%1$s %2$s"),o,n);e.push({key:"".concat(r,"-").concat(c),name:i,style:{fontStyle:r,fontWeight:c}})}))})),e):r?function(){var e=[d];return fi.forEach((function(t){var n=t.name,r=t.value;e.push({key:r,name:n,style:{fontStyle:r,fontWeight:void 0}})})),e}():function(){var e=[d];return pi.forEach((function(t){var n=t.name,r=t.value;e.push({key:r,name:n,style:{fontStyle:void 0,fontWeight:r}})})),e}();var e}),[e.options]),f=b.find((function(e){return e.style.fontStyle===a&&e.style.fontWeight===s}));return Object(l.createElement)("fieldset",{className:"components-font-appearance-control"},u&&Object(l.createElement)(m.CustomSelectControl,{className:"components-font-appearance-control__select",label:r?c?Object(k.__)("Appearance"):Object(k.__)("Font style"):Object(k.__)("Font weight"),options:b,value:f,onChange:function(e){var n=e.selectedItem;return t(n.style)}}))}function vi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Oi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vi(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gi(e){var t,n,r=e.attributes.style,o=e.setAttributes,c=!hi(e),i=!ji(e);if(!c&&!i)return null;var a=null==r||null===(t=r.typography)||void 0===t?void 0:t.fontStyle,s=null==r||null===(n=r.typography)||void 0===n?void 0:n.fontWeight;return Object(l.createElement)(mi,{onChange:function(e){o({style:Ko(Oi(Oi({},r),{},{typography:Oi(Oi({},null==r?void 0:r.typography),{},{fontStyle:e.fontStyle,fontWeight:e.fontWeight})}))})},hasFontStyles:c,hasFontWeights:i,value:{fontStyle:a,fontWeight:s}})}function hi(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=Object(p.hasBlockSupport)(t,"__experimentalFontStyle"),r=Eo("typography.customFontStyle");return!n||!r}function ji(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=Object(p.hasBlockSupport)(t,"__experimentalFontWeight"),r=Eo("typography.customFontWeight");return!n||!r}function yi(e){var t=hi(e),n=ji(e);return t&&n}function ki(e){var t=e.value,n=void 0===t?"":t,r=e.onChange,o=e.fontFamilies,c=Object(j.a)(e,["value","onChange","fontFamilies"]),a=Eo("typography.fontFamilies");if(o||(o=a),Object(d.isEmpty)(o))return null;var s=[{value:"",label:Object(k.__)("Default")}].concat(Object(y.a)(o.map((function(e){var t=e.fontFamily;return{value:t,label:e.name||t}}))));return Object(l.createElement)(m.SelectControl,Object(i.a)({label:Object(k.__)("Font family"),options:s,value:n,onChange:r,labelPosition:"top"},c))}function _i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ei(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_i(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wi(e){var t,n=e.name,r=e.setAttributes,o=e.attributes.style,c=void 0===o?{}:o,i=Eo("typography.fontFamilies");if(Si({name:n}))return null;var a=function(e,t){var n=/var:preset\|font-family\|(.+)/.exec(t);if(n&&n[1]){var r=Object(d.find)(e,(function(e){return e.slug===n[1]}));if(r)return r.fontFamily}return t}(i,null===(t=c.typography)||void 0===t?void 0:t.fontFamily);return Object(l.createElement)(ki,{className:"block-editor-hooks-font-family-control",fontFamilies:i,value:a,onChange:function(e){var t=Object(d.find)(i,(function(t){return t.fontFamily===e}));r({style:Ko(Ei(Ei({},c),{},{typography:Ei(Ei({},c.typography||{}),{},{fontFamily:t?"var:preset|font-family|".concat(t.slug):e||void 0})}))})}})}function Si(e){var t=e.name,n=Eo("typography.fontFamilies");return!n||0===n.length||!Object(p.hasBlockSupport)(t,"__experimentalFontFamily")}var Ci=n(160),Bi=n.n(Ci),Ii=function(e,t,n){if(t){var r=Object(d.find)(e,{slug:t});if(r)return r}return{size:n}};function xi(e,t){var n=Object(d.find)(e,{size:t});return n||{size:t}}function Pi(e){if(e)return"has-".concat(Object(d.kebabCase)(e),"-font-size")}var Ti=function(e){var t=Eo("typography.fontSizes"),n=!Eo("typography.customFontSize");return Object(l.createElement)(m.FontSizePicker,Object(i.a)({},e,{fontSizes:t,disableCustomFontSizes:n}))};function Ni(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Di(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ni(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ni(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ai(e,t,n){if(!Object(p.hasBlockSupport)(t,"fontSize"))return e;var r=new Bi.a(e.className);r.add(Pi(n.fontSize));var o=r.value;return e.className=o||void 0,e}function Li(e){var t,n,r=e.attributes,o=r.fontSize,c=r.style,i=e.setAttributes,a=Ri(e),s=Eo("typography.fontSizes");if(a)return null;var u=Ii(s,o,null==c||null===(t=c.typography)||void 0===t?void 0:t.fontSize),d=(null==u?void 0:u.size)||(null==c||null===(n=c.typography)||void 0===n?void 0:n.fontSize)||o;return Object(l.createElement)(Ti,{onChange:function(e){var t=xi(s,e).slug;i({style:Ko(Di(Di({},c),{},{typography:Di(Di({},null==c?void 0:c.typography),{},{fontSize:t?void 0:e})})),fontSize:t})},value:d})}function Ri(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=Eo("typography.fontSizes"),r=!(null==n||!n.length);return!Object(p.hasBlockSupport)(t,"fontSize")||!r}var Mi=Object(b.createHigherOrderComponent)((function(e){return function(t){var n,r=Eo("typography.fontSizes"),o=t.name,c=t.attributes,i=c.fontSize,a=c.style,s=t.wrapperProps,u=Di({},t);if(Object(p.hasBlockSupport)(o,"fontSize")&&i&&(null==a||null===(n=a.typography)||void 0===n||!n.fontSize)){var d,b=Ii(r,i,null==a||null===(d=a.typography)||void 0===d?void 0:d.fontSize).size;u.wrapperProps=Di(Di({},s),{},{style:Di({fontSize:b},null==s?void 0:s.style)})}return Object(l.createElement)(e,u)}}),"withFontSizeInlineStyles");Object(f.addFilter)("blocks.registerBlockType","core/font/addAttribute",(function(e){return Object(p.hasBlockSupport)(e,"fontSize")?(e.attributes.fontSize||Object.assign(e.attributes,{fontSize:{type:"string"}}),e):e})),Object(f.addFilter)("blocks.getSaveContent.extraProps","core/font/addSaveProps",Ai),Object(f.addFilter)("blocks.registerBlockType","core/font/addEditProps",(function(e){if(!Object(p.hasBlockSupport)(e,"fontSize"))return e;var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),Ai(r,e,n)},e})),Object(f.addFilter)("editor.BlockListBlock","core/font-size/with-font-size-inline-styles",Mi);var Fi=["lineHeight","fontSize","__experimentalFontStyle","__experimentalFontWeight","__experimentalFontFamily","__experimentalTextDecoration","__experimentalTextTransform"];function Vi(e){var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=[yi(e),Ri(e),bi(e),Si(e),Xc(e),ci(e)];return t.filter(Boolean).length===t.length}(e),n=Hi(e.name);return t||!n?null:Object(l.createElement)(fo,null,Object(l.createElement)(m.PanelBody,{title:Object(k.__)("Typography")},Object(l.createElement)(m.__unstableComponentSystemProvider,{__unstableNextInclude:["WPComponentsFontSizePicker"]},Object(l.createElement)(wi,e),Object(l.createElement)(Li,e),Object(l.createElement)(gi,e),Object(l.createElement)(di,e),Object(l.createElement)(ii,e))))}var Hi=function(e){return"web"===l.Platform.OS&&Fi.some((function(t){return Object(p.hasBlockSupport)(e,t)}))};function zi(e){var t=e.units,n=Object(j.a)(e,["units"]),r=Gi(t);return Object(l.createElement)(m.__experimentalUnitControl,Object(i.a)({units:r},n))}function Gi(e){var t=Eo("spacing.units"),n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.filter((function(t){return e.includes(t.value)}))}(t||[],e);return 0!==n.length&&n}function Ui(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ui(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ui(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ki(e){var t,n=e.name,r=e.attributes.style,o=e.setAttributes,c=Gi();if(!function(e){var t=Object(p.getBlockSupport)(e,"spacing");return t&&!1!==t.padding}(n))return null;return l.Platform.select({web:Object(l.createElement)(l.Fragment,null,Object(l.createElement)(m.__experimentalBoxControl,{values:null==r||null===(t=r.spacing)||void 0===t?void 0:t.padding,onChange:function(e){var t=Wi(Wi({},r),{},{spacing:{padding:e}});o({style:Ko(t)})},onChangeShowVisualizer:function(e){var t=Wi(Wi({},r),{},{visualizers:{padding:e}});o({style:Ko(t)})},label:Object(k.__)("Padding"),units:c})),native:null})}function qi(e){var t=e.children,n=Object(j.a)(e,["children"]);return Eo("spacing.customPadding")?Object(l.createElement)(fo,n,Object(l.createElement)(m.PanelBody,{title:Object(k.__)("Spacing")},t)):null}function $i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$i(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Xi=[].concat(Object(y.a)(Fi),["__experimentalBorder","color","spacing"]),Qi=function(e){return Xi.some((function(t){return Object(p.hasBlockSupport)(e,t)}))};function Zi(e){if(Object(d.startsWith)(e,"var:")){var t=e.slice("var:".length).split("|").join("--");return"var(--wp--".concat(t,")")}return e}function Ji(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};return Object.keys(p.__EXPERIMENTAL_STYLE_PROPERTY).forEach((function(n){var r=p.__EXPERIMENTAL_STYLE_PROPERTY[n].value,o=p.__EXPERIMENTAL_STYLE_PROPERTY[n].properties;Object(d.has)(e,r)&&(o?o.forEach((function(o){t[n+Object(d.capitalize)(o)]=Zi(Object(d.get)(e,[].concat(Object(y.a)(r),[o])))})):t[n]=Zi(Object(d.get)(e,r)))})),t}function ea(e,t,n){if(!Qi(t))return e;var r=function(e,t){return Object(d.omitBy)(e,(function(e,n){var r;return!(null===(r=t[n])||void 0===r||!r.__experimentalSkipSerialization)}))}(n.style,Object(a.a)({border:Object(p.getBlockSupport)(t,"__experimentalBorder")},"color",Object(p.getBlockSupport)(t,"color")));return e.style=Yi(Yi({},Ji(r)),e.style),e}var ta=Object(b.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=Object(p.hasBlockSupport)(n,"spacing");return[Object(l.createElement)(Vi,Object(i.a)({key:"typography"},t)),Object(l.createElement)(dc,Object(i.a)({key:"border"},t)),Object(l.createElement)(Hc,Object(i.a)({key:"colors"},t)),Object(l.createElement)(e,Object(i.a)({key:"edit"},t)),r&&Object(l.createElement)(qi,{key:"spacing"},Object(l.createElement)(Ki,t))]}}),"withToolbarControls");Object(f.addFilter)("blocks.registerBlockType","core/style/addAttribute",(function(e){return Qi(e)?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e})),Object(f.addFilter)("blocks.getSaveContent.extraProps","core/style/addSaveProps",ea),Object(f.addFilter)("blocks.registerBlockType","core/style/addEditProps",(function(e){if(!Qi(e))return e;var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),ea(r,e,n)},e})),Object(f.addFilter)("editor.BlockEdit","core/style/with-block-controls",ta);var na=n(133);function ra(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ra(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ra(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ca="web"===l.Platform.OS,ia=[{value:"%",label:ca?"%":Object(k.__)("Percentage (%)"),default:""},{value:"px",label:ca?"px":Object(k.__)("Pixels (px)"),default:""},{value:"em",label:ca?"em":Object(k.__)("Relative to parent font size (em)"),default:""},{value:"rem",label:ca?"rem":Object(k.__)("Relative to root font size (rem)"),default:""},{value:"vw",label:ca?"vw":Object(k.__)("Viewport width (vw)"),default:""}];function aa(e){var t=e.setAttributes,n=e.attributes.layout,r=void 0===n?{}:n,o=r.wideSize,c=r.contentSize,i=r.inherit,a=void 0!==i&&i,s=Eo("layout");return Object(v.useSelect)((function(e){return(0,e(jr).getSettings)().supportsLayout}),[])?Object(l.createElement)(fo,null,Object(l.createElement)(m.PanelBody,{title:Object(k.__)("Layout")},!!s&&Object(l.createElement)(m.ToggleControl,{label:Object(k.__)("Inherit default layout"),checked:!!a,onChange:function(){return t({layout:{inherit:!a}})}}),!a&&Object(l.createElement)("div",{className:"block-editor-hooks__layout-controls"},Object(l.createElement)("div",{className:"block-editor-hooks__layout-controls-unit"},Object(l.createElement)(m.__experimentalUnitControl,{label:Object(k.__)("Content"),labelPosition:"top",__unstableInputWidth:"80px",value:c||o||"",onChange:function(e){e=0>parseFloat(e)?"0":e,t({layout:oa(oa({},r),{},{contentSize:e})})},units:ia}),Object(l.createElement)(na.a,{icon:xr})),Object(l.createElement)("div",{className:"block-editor-hooks__layout-controls-unit"},Object(l.createElement)(m.__experimentalUnitControl,{label:Object(k.__)("Wide"),labelPosition:"top",__unstableInputWidth:"80px",value:o||c||"",onChange:function(e){e=0>parseFloat(e)?"0":e,t({layout:oa(oa({},r),{},{wideSize:e})})},units:ia}),Object(l.createElement)(na.a,{icon:Tr}))),Object(l.createElement)("p",{className:"block-editor-hooks__layout-controls-helptext"},Object(k.__)("Customize the width for all elements that are assigned to the center or wide columns.")))):null}var la=Object(b.createHigherOrderComponent)((function(e){return function(t){var n=t.name;return[Object(p.hasBlockSupport)(n,"__experimentalLayout")&&Object(l.createElement)(aa,Object(i.a)({key:"layout"},t)),Object(l.createElement)(e,Object(i.a)({key:"edit"},t))]}}),"withInspectorControls"),sa=Object(b.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=t.attributes,o=Object(p.hasBlockSupport)(n,"__experimentalLayout"),c=Object(b.useInstanceId)(e),a=Eo("layout")||{};if(!o)return Object(l.createElement)(e,t);var s=r.layout,d=void 0===s?{}:s,f=d&&d.inherit?a:d,m=u()(null==t?void 0:t.className,"wp-container-".concat(c));return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Fr,{selector:".wp-container-".concat(c),layout:f}),Object(l.createElement)(e,Object(i.a)({},t,{className:m})))}}));Object(f.addFilter)("blocks.registerBlockType","core/layout/addAttribute",(function(e){return Object(d.has)(e.attributes,["layout","type"])||Object(p.hasBlockSupport)(e,"__experimentalLayout")&&(e.attributes=oa(oa({},e.attributes),{},{layout:{type:"object"}})),e})),Object(f.addFilter)("editor.BlockListBlock","core/editor/layout/with-layout-styles",sa),Object(f.addFilter)("editor.BlockEdit","core/editor/layout/with-inspector-controls",la);var ua=[];function da(e){var t,n,r,o,c,i,l=e.backgroundColor,s=e.textColor,d=e.gradient,b=e.style,f=xo("background-color",l),p=xo("color",s),m=To(d),v=m||(null==b||null===(t=b.color)||void 0===t?void 0:t.gradient);return{className:u()(p,m,(i={},Object(a.a)(i,f,!v&&!!f),Object(a.a)(i,"has-text-color",s||(null==b||null===(n=b.color)||void 0===n?void 0:n.text)),Object(a.a)(i,"has-background",l||(null==b||null===(r=b.color)||void 0===r?void 0:r.background)||d||(null==b||null===(o=b.color)||void 0===o?void 0:o.gradient)),Object(a.a)(i,"has-link-color",null==b||null===(c=b.color)||void 0===c?void 0:c.link),i))||void 0,style:Ji({color:(null==b?void 0:b.color)||{}})}}function ba(e){var t=e.backgroundColor,n=e.textColor,r=e.gradient,o=Eo("color.palette")||ua,c=Eo("color.gradients")||ua,i=da(e);if(t){var a=Bo(o,t);i.style.backgroundColor=a.color}if(r&&(i.style.background=No(c,r)),n){var l=Bo(o,n);i.style.color=l.color}return i}var fa=n(25),pa=n(26),ma=n(18),va=n(33),Oa=n(34),ga=n(22);function ha(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ga.a)(e);if(t){var o=Object(ga.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Oa.a)(this,n)}}function ja(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ya(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ja(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ja(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ka=[],_a=function(e){return Object(b.createHigherOrderComponent)((function(t){return function(n){return Object(l.createElement)(t,Object(i.a)({},n,{colors:e}))}}),"withCustomColorPalette")},Ea=function(){return Object(b.createHigherOrderComponent)((function(e){return function(t){var n=Eo("color.palette")||ka;return Object(l.createElement)(e,Object(i.a)({},t,{colors:n}))}}),"withEditorColorPalette")};function wa(e,t){var n=Object(d.reduce)(e,(function(e,t){return ya(ya({},e),Object(d.isString)(t)?Object(a.a)({},t,Object(d.kebabCase)(t)):t)}),{});return Object(b.compose)([t,function(e){return function(t){Object(va.a)(o,t);var r=ha(o);function o(e){var t;return Object(fa.a)(this,o),(t=r.call(this,e)).setters=t.createSetters(),t.colorUtils={getMostReadableColor:t.getMostReadableColor.bind(Object(ma.a)(t))},t.state={},t}return Object(pa.a)(o,[{key:"getMostReadableColor",value:function(e){return function(e,t){return Co.a.mostReadable(t,Object(d.map)(e,"color")).toHexString()}(this.props.colors,e)}},{key:"createSetters",value:function(){var e=this;return Object(d.reduce)(n,(function(t,n,r){var o=Object(d.upperFirst)(r),c="custom".concat(o);return t["set".concat(o)]=e.createSetColor(r,c),t}),{})}},{key:"createSetColor",value:function(e,t){var n=this;return function(r){var o,c=Io(n.props.colors,r);n.props.setAttributes((o={},Object(a.a)(o,e,c&&c.slug?c.slug:void 0),Object(a.a)(o,t,c&&c.slug?void 0:r),o))}}},{key:"render",value:function(){return Object(l.createElement)(e,ya(ya(ya(ya({},this.props),{},{colors:void 0},this.state),this.setters),{},{colorUtils:this.colorUtils}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=e.attributes,o=e.colors;return Object(d.reduce)(n,(function(e,n,c){var i=Bo(o,r[c],r["custom".concat(Object(d.upperFirst)(c))]),a=t[c];return(null==a?void 0:a.color)===i.color&&a?e[c]=a:e[c]=ya(ya({},i),{},{class:xo(n,i.slug)}),e}),{})}}]),o}(l.Component)}])}function Sa(e){return function(){for(var t=_a(e),n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Object(b.createHigherOrderComponent)(wa(r,t),"withCustomColors")}}function Ca(){for(var e=Ea(),t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Object(b.createHigherOrderComponent)(wa(n,e),"withColors")}var Ba=n(68),Ia=n.n(Ba);function xa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xa(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ta=function(e){var t=e.colorSettings,n=Object(j.a)(e,["colorSettings"]),r=t.map((function(e){var t=e.value,n=e.onChange;return Pa(Pa({},Object(j.a)(e,["value","onChange"])),{},{colorValue:t,onColorChange:n})}));return Object(l.createElement)(_c,Object(i.a)({settings:r,gradients:[],disableCustomGradients:!0},n))},Na=function(e,t,n){return"function"==typeof e?e(t):!0===e?n:e};function Da(e){var t=e.title,n=e.colorSettings,r=e.colorPanelProps,o=e.contrastCheckers,c=e.detectedBackgroundColor,a=e.detectedColor,s=e.panelChildren,u=e.initialOpen;return Object(l.createElement)(Ta,Object(i.a)({title:t,initialOpen:u,colorSettings:Object.values(n)},r),o&&(Array.isArray(o)?o.map((function(e){var t=e.backgroundColor,r=e.textColor,o=Object(j.a)(e,["backgroundColor","textColor"]);return t=Na(t,n,c),r=Na(r,n,a),Object(l.createElement)(wc,Object(i.a)({key:"".concat(t,"-").concat(r),backgroundColor:t,textColor:r},o))})):Object(d.map)(n,(function(e){var t=e.value,r=o.backgroundColor,s=o.textColor;return r=Na(r||t,n,c),s=Na(s||t,n,a),Object(l.createElement)(wc,Object(i.a)({},o,{key:"".concat(r,"-").concat(s),backgroundColor:r,textColor:s}))}))),"function"==typeof s?s(n):s)}function Aa(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return La(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return La(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function La(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ra(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ma(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ra(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ra(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fa(e){return e.ownerDocument.defaultView.getComputedStyle(e)}var Va=[],Ha={textColor:Object(k.__)("Text color"),backgroundColor:Object(k.__)("Background color")},za=function(e){return Object(l.createElement)(fo,null,Object(l.createElement)(Da,e))};function Ga(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{panelTitle:Object(k.__)("Color")},n=t.panelTitle,r=void 0===n?Object(k.__)("Color"):n,o=t.colorPanelProps,c=t.contrastCheckers,i=t.panelChildren,s=t.colorDetector,b=(s=void 0===s?{}:s).targetRef,f=s.backgroundColorTargetRef,p=void 0===f?b:f,m=s.textColorTargetRef,O=void 0===m?b:m,g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],j=h(),_=j.clientId,E=Eo("color.palette")||Va,w=Object(v.useSelect)((function(e){return{attributes:(0,e(jr).getBlockAttributes)(_)}}),[_]),S=w.attributes,C=Object(v.useDispatch)(jr),B=C.updateBlockAttributes,I=Object(l.useCallback)((function(e){return B(_,e)}),[B,_]),x=Object(l.useMemo)((function(){return Ia()((function(e,t,n,r,o,c){return function(i){var s,b=i.children,f=i.className,p=void 0===f?"":f,m=i.style,v=void 0===m?{}:m,O={};r?O=Object(a.a)({},t,o):c&&(O=Object(a.a)({},t,c));var g={className:u()(p,(s={},Object(a.a)(s,"has-".concat(Object(d.kebabCase)(r),"-").concat(Object(d.kebabCase)(t)),r),Object(a.a)(s,n||"has-".concat(Object(d.kebabCase)(e)),r||c),s)),style:Ma(Ma({},O),v)};return Object(d.isFunction)(b)?b(g):l.Children.map(b,(function(e){return Object(l.cloneElement)(e,{className:u()(e.props.className,g.className),style:Ma(Ma({},g.style),e.props.style||{})})}))}}),{maxSize:e.length})}),[e.length]),P=Object(l.useMemo)((function(){return Ia()((function(e,t){return function(n){var r=t.find((function(e){return e.color===n}));I(Object(a.a)({},r?Object(d.camelCase)("custom ".concat(e)):e,void 0)),I(Object(a.a)({},r?e:Object(d.camelCase)("custom ".concat(e)),r?r.slug:n))}}),{maxSize:e.length})}),[I,e.length]),T=Object(l.useState)(),N=Object(wo.a)(T,2),D=N[0],A=N[1],L=Object(l.useState)(),R=Object(wo.a)(L,2),M=R[0],F=R[1];return Object(l.useEffect)((function(){if(c){var e,t=!1,n=!1,r=Aa(Object(d.castArray)(c));try{for(r.s();!(e=r.n()).done;){var o=e.value,i=o.backgroundColor,a=o.textColor;if(t||(t=!0===i),n||(n=!0===a),t&&n)break}}catch(e){r.e(e)}finally{r.f()}if(n&&F(Fa(O.current).color),t){for(var l=p.current,s=Fa(l).backgroundColor;"rgba(0, 0, 0, 0)"===s&&l.parentNode&&l.parentNode.nodeType===l.parentNode.ELEMENT_NODE;)s=Fa(l=l.parentNode).backgroundColor;A(s)}}}),[e.reduce((function(e,t){return"".concat(e," | ").concat(S[t.name]," | ").concat(S[Object(d.camelCase)("custom ".concat(t.name))])}),"")].concat(Object(y.a)(g))),Object(l.useMemo)((function(){var t={},n=e.reduce((function(e,n){"string"==typeof n&&(n={name:n});var r=Ma(Ma({},n),{},{color:S[n.name]}),o=r.name,c=r.property,i=void 0===c?o:c,a=r.className,l=r.panelLabel,s=void 0===l?n.label||Ha[o]||Object(d.startCase)(o):l,u=r.componentName,b=void 0===u?Object(d.startCase)(o).replace(/\s/g,""):u,f=r.color,p=void 0===f?n.color:f,m=r.colors,v=void 0===m?E:m,O=S[Object(d.camelCase)("custom ".concat(o))],g=O?void 0:v.find((function(e){return e.slug===p}));return e[b]=x(o,i,a,p,g&&g.color,O),e[b].displayName=b,e[b].color=O||g&&g.color,e[b].slug=p,e[b].setColor=P(o,v),t[b]={value:g?g.color:S[Object(d.camelCase)("custom ".concat(o))],onChange:e[b].setColor,label:s,colors:v},v||delete t[b].colors,e}),{}),a={title:r,initialOpen:!1,colorSettings:t,colorPanelProps:o,contrastCheckers:c,detectedBackgroundColor:D,detectedColor:M,panelChildren:i};return Ma(Ma({},n),{},{ColorPanel:Object(l.createElement)(Da,a),InspectorControlsColorPanel:Object(l.createElement)(za,a)})}),[S,I,M,D].concat(Object(y.a)(g)))}function Ua(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ua(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ua(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ka(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ga.a)(e);if(t){var o=Object(ga.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Oa.a)(this,n)}}var qa=[],$a=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Object(d.reduce)(t,(function(e,t){return e[t]="custom".concat(Object(d.upperFirst)(t)),e}),{});return Object(b.createHigherOrderComponent)(Object(b.compose)([Object(b.createHigherOrderComponent)((function(e){return function(t){var n=Eo("typography.fontSizes")||qa;return Object(l.createElement)(e,Object(i.a)({},t,{fontSizes:n}))}}),"withFontSizes"),function(e){return function(t){Object(va.a)(o,t);var n=Ka(o);function o(e){var t;return Object(fa.a)(this,o),(t=n.call(this,e)).setters=t.createSetters(),t.state={},t}return Object(pa.a)(o,[{key:"createSetters",value:function(){var e=this;return Object(d.reduce)(r,(function(t,n,r){var o=Object(d.upperFirst)(r);return t["set".concat(o)]=e.createSetFontSize(r,n),t}),{})}},{key:"createSetFontSize",value:function(e,t){var n=this;return function(r){var o,c=Object(d.find)(n.props.fontSizes,{size:Number(r)});n.props.setAttributes((o={},Object(a.a)(o,e,c&&c.slug?c.slug:void 0),Object(a.a)(o,t,c&&c.slug?void 0:r),o))}}},{key:"render",value:function(){return Object(l.createElement)(e,Wa(Wa(Wa({},this.props),{},{fontSizes:void 0},this.state),this.setters))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.attributes,o=e.fontSizes,c=function(e,r){return!t[r]||(n[r]?n[r]!==t[r].slug:t[r].size!==n[e])};if(!Object(d.some)(r,c))return null;var i=Object(d.reduce)(Object(d.pickBy)(r,c),(function(e,t,r){var c=n[r],i=Ii(o,c,n[t]);return e[r]=Wa(Wa({},i),{},{class:Pi(c)}),e}),{});return Wa(Wa({},t),i)}}]),o}(l.Component)}]),"withFontSizes")},Ya=n(304),Xa=n(305),Qa=n(306);function Za(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ja(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Za(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Za(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var el=[{icon:Ya.a,title:Object(k.__)("Align text left"),align:"left"},{icon:Xa.a,title:Object(k.__)("Align text center"),align:"center"},{icon:Qa.a,title:Object(k.__)("Align text right"),align:"right"}],tl={position:"bottom right",isAlternate:!0};var nl=function(e){var t=e.value,n=e.onChange,r=e.alignmentControls,o=void 0===r?el:r,c=e.label,a=void 0===c?Object(k.__)("Align"):c,s=e.describedBy,u=void 0===s?Object(k.__)("Change text alignment"):s,b=e.isCollapsed,f=void 0===b||b,p=e.isToolbar,v=e.isToolbarButton,O=void 0===v||v;function g(e){return function(){return n(t===e?void 0:e)}}var h=Object(d.find)(o,(function(e){return e.align===t})),j=p?m.ToolbarGroup:m.DropdownMenu,y=p?{isCollapsed:f}:{isToolbarButton:O};return Object(l.createElement)(j,Object(i.a)({icon:h?h.icon:Object(k.isRTL)()?Qa.a:Ya.a,label:a,toggleProps:{describedBy:u},popoverProps:tl,controls:o.map((function(e){var n=e.align,r=t===n;return Ja(Ja({},e),{},{isActive:r,role:f?"menuitemradio":void 0,onClick:g(n)})}))},y))};function rl(e){return Object(l.createElement)(nl,Object(i.a)({},e,{isToolbar:!1}))}function ol(e){return Object(l.createElement)(nl,Object(i.a)({},e,{isToolbar:!0}))}var cl=function(e){return e.name||""},il=function(e){return e.title},al=function(e){return e.description||""},ll=function(e){return e.keywords||[]},sl=function(e){return e.category},ul=function(){return null};function dl(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e=(e=(e=Object(d.deburr)(e)).replace(/^\//,"")).toLowerCase()}var bl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Object(d.words)(dl(e))},fl=function(e,t){return Object(d.differenceWith)(e,bl(t),(function(e,t){return t.includes(e)}))},pl=function(e,t,n,r){return 0===bl(r).length?e:ml(e,r,{getCategory:function(e){var n;return null===(n=Object(d.find)(t,{slug:e.category}))||void 0===n?void 0:n.title},getCollection:function(e){var t;return null===(t=n[e.name.split("/")[0]])||void 0===t?void 0:t.title}})},ml=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=bl(t);if(0===r.length)return e;var o=e.map((function(e){return[e,vl(e,t,n)]})).filter((function(e){return Object(wo.a)(e,2)[1]>0}));return o.sort((function(e,t){var n=Object(wo.a)(e,2)[1];return Object(wo.a)(t,2)[1]-n})),o.map((function(e){return Object(wo.a)(e,1)[0]}))};function vl(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.getName,o=void 0===r?cl:r,c=n.getTitle,i=void 0===c?il:c,a=n.getDescription,l=void 0===a?al:a,s=n.getKeywords,u=void 0===s?ll:s,b=n.getCategory,f=void 0===b?sl:b,p=n.getCollection,m=void 0===p?ul:p,v=o(e),O=i(e),g=l(e),h=u(e),j=f(e),k=m(e),_=dl(t),E=dl(O),w=0;if(_===E)w+=30;else if(E.startsWith(_))w+=20;else{var S=[v,O,g].concat(Object(y.a)(h),[j,k]).join(" "),C=Object(d.words)(_),B=fl(C,S);0===B.length&&(w+=10)}return 0!==w&&v.startsWith("core/")&&w++,w}var Ol=function(e,t){var n=Object(v.useSelect)((function(t){var n=t(jr).getInserterItems,r=t(p.store),o=r.getCategories,c=r.getCollections;return{categories:o(),collections:c(),items:n(e)}}),[e]),r=n.categories,o=n.collections;return[n.items,r,o,Object(l.useCallback)((function(e,n){var r=e.name,o=e.initialAttributes,c=e.innerBlocks,i=Object(p.createBlock)(r,o,Object(p.createBlocksFromInnerBlocksTemplate)(c));t(i,void 0,n)}),[t])]},gl=n(217);function hl(e){var t,n=e.icon,r=e.showColors,o=void 0!==r&&r,c=e.className;"block-default"===(null===(t=n)||void 0===t?void 0:t.src)&&(n={src:gl.a});var i=Object(l.createElement)(m.Icon,{icon:n&&n.src?n.src:n}),a=o?{backgroundColor:n&&n.background,color:n&&n.foreground}:{};return Object(l.createElement)("span",{style:a,className:u()("block-editor-block-icon",c,{"has-colors":o})},i)}var jl={name:"blocks",className:"block-editor-autocompleters__block",triggerPrefix:"/",useItems:function(e){var t=Object(v.useSelect)((function(e){var t=e(jr),n=t.getSelectedBlockClientId,r=t.getBlockName,o=t.getBlockInsertionPoint,c=n();return{selectedBlockName:c?r(c):null,rootClientId:o().rootClientId}}),[]),n=t.rootClientId,r=t.selectedBlockName,o=Ol(n,d.noop),c=Object(wo.a)(o,3),i=c[0],a=c[1],s=c[2],u=Object(l.useMemo)((function(){return(e.trim()?pl(i,a,s,e):Object(d.orderBy)(i,["frecency"],["desc"])).filter((function(e){return e.name!==r})).slice(0,9)}),[e,r,i,a,s]);return[Object(l.useMemo)((function(){return u.map((function(e){var t=e.title,n=e.icon,r=e.isDisabled;return{key:"block-".concat(e.id),value:e,label:Object(l.createElement)(l.Fragment,null,Object(l.createElement)(hl,{key:"icon",icon:n,showColors:!0}),t),isDisabled:r}}))}),[u])]},allowContext:function(e,t){return!(/\S/.test(e)||/\S/.test(t))},getOptionCompletion:function(e){var t=e.name,n=e.initialAttributes,r=e.innerBlocks;return{action:"replace",value:Object(p.createBlock)(t,n,Object(p.createBlocksFromInnerBlocksTemplate)(r))}}},yl=[];var kl=function(e){var t=h().name,n=e.completers,r=void 0===n?yl:n;return r=Object(l.useMemo)((function(){var e=r;return t===Object(p.getDefaultBlockName)()&&(e=e.concat([jl])),Object(f.hasFilter)("editor.Autocomplete.completers")&&(e===r&&(e=e.map(d.clone)),e=Object(f.applyFilters)("editor.Autocomplete.completers",e,t)),e}),[r,t]),Object(l.createElement)(m.Autocomplete,Object(i.a)({},e,{completers:r}))},_l=Object(l.createElement)(Br.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Br.Path,{d:"M4.2 9h1.5V5.8H9V4.2H4.2V9zm14 9.2H15v1.5h4.8V15h-1.5v3.2zM15 4.2v1.5h3.2V9h1.5V4.2H15zM5.8 15H4.2v4.8H9v-1.5H5.8V15z"}));var El=function(e){var t=e.isActive,n=e.label,r=void 0===n?Object(k.__)("Toggle full height"):n,o=e.onToggle,c=e.isDisabled;return Object(l.createElement)(m.ToolbarButton,{isActive:t,icon:_l,label:r,onClick:function(){return o(!t)},disabled:c})};var wl=function(e){var t=e.label,n=void 0===t?Object(k.__)("Change matrix alignment"):t,r=e.onChange,o=void 0===r?d.noop:r,c=e.value,i=void 0===c?"center":c,a=e.isDisabled,s=Object(l.createElement)(m.__experimentalAlignmentMatrixControl.Icon,{value:i}),u="block-editor-block-alignment-matrix-control",b="".concat(u,"__popover");return Object(l.createElement)(m.Dropdown,{position:"bottom right",className:u,popoverProps:{className:b,isAlternate:!0},renderToggle:function(e){var t=e.onToggle,r=e.isOpen;return Object(l.createElement)(m.ToolbarButton,{onClick:t,"aria-haspopup":"true","aria-expanded":r,onKeyDown:function(e){r||e.keyCode!==ai.DOWN||(e.preventDefault(),e.stopPropagation(),t())},label:n,icon:s,showTooltip:!0,disabled:a})},renderContent:function(){return Object(l.createElement)(m.__experimentalAlignmentMatrixControl,{hasFocusBorder:!1,onChange:o,value:i})}})};function Sl(e){return Object(v.useSelect)((function(t){if(!e)return null;var n=t(jr),r=n.getBlockName,o=n.getBlockAttributes,c=t(p.store),i=c.getBlockType,a=c.getBlockVariations,l=r(e),s=i(l);if(!s)return null;var u=a(l),d={title:s.title,icon:s.icon,description:s.description};if(null==u||!u.length)return d;var b=o(e),f=u.find((function(e){var t;return null===(t=e.isActive)||void 0===t?void 0:t.call(e,b,e.attributes)}));return f?{title:f.title||s.title,icon:f.icon||s.icon,description:f.description||s.description}:d}),[e])}function Cl(e){var t=e.clientId,n=Object(v.useSelect)((function(e){if(!t)return{};var n=e(jr),r=n.getBlockName,o=n.getBlockAttributes,c=n.__experimentalGetReusableBlockTitle,i=r(t);if(!i)return{};var a=Object(p.isReusableBlock)(Object(p.getBlockType)(i));return{attributes:o(t),name:i,reusableBlockTitle:a&&c(o(t).ref)}}),[t]),r=n.attributes,o=n.name,c=n.reusableBlockTitle,i=Sl(t);if(!o||!i)return null;var a=Object(p.getBlockType)(o),l=c||Object(p.__experimentalGetBlockLabel)(a,r);return l!==a.title?Object(d.truncate)(l,{length:35}):i.title}var Bl=function(){var e=Object(v.useDispatch)(jr),t=e.selectBlock,n=e.clearSelectedBlock,r=Object(v.useSelect)((function(e){var t=e(jr),n=t.getSelectionStart,r=t.getSelectedBlockClientId,o=t.getBlockParents,c=r();return{parents:o(c),clientId:c,hasSelection:!!n().clientId}}),[]),o=r.clientId,c=r.parents,i=r.hasSelection;return Object(l.createElement)("ul",{className:"block-editor-block-breadcrumb",role:"list","aria-label":Object(k.__)("Block breadcrumb")},Object(l.createElement)("li",{className:i?void 0:"block-editor-block-breadcrumb__current","aria-current":i?void 0:"true"},i&&Object(l.createElement)(m.Button,{className:"block-editor-block-breadcrumb__button",isTertiary:!0,onClick:n},Object(k.__)("Document")),!i&&Object(k.__)("Document")),c.map((function(e){return Object(l.createElement)("li",{key:e},Object(l.createElement)(m.Button,{className:"block-editor-block-breadcrumb__button",isTertiary:!0,onClick:function(){return t(e)}},Object(l.createElement)(Cl,{clientId:e})))})),!!o&&Object(l.createElement)("li",{className:"block-editor-block-breadcrumb__current","aria-current":"true"},Object(l.createElement)(Cl,{clientId:o})))};function Il(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Il(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Il(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Pl=Object(l.createContext)({});function Tl(e){var t=e.value,n=e.children,r=Object(l.useContext)(Pl),o=Object(l.useMemo)((function(){return xl(xl({},r),t)}),[r,t]);return Object(l.createElement)(Pl.Provider,{value:o,children:n})}var Nl=Pl,Dl=function(){return Object(l.createElement)(m.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 20 20"},Object(l.createElement)(m.Path,{d:"M7.434 5l3.18 9.16H8.538l-.692-2.184H4.628l-.705 2.184H2L5.18 5h2.254zm-1.13 1.904h-.115l-1.148 3.593H7.44L6.304 6.904zM14.348 7.006c1.853 0 2.9.876 2.9 2.374v4.78h-1.79v-.914h-.114c-.362.64-1.123 1.022-2.031 1.022-1.346 0-2.292-.826-2.292-2.108 0-1.27.972-2.006 2.71-2.107l1.696-.102V9.38c0-.584-.42-.914-1.18-.914-.667 0-1.112.228-1.264.647h-1.701c.12-1.295 1.307-2.107 3.066-2.107zm1.079 4.1l-1.416.09c-.793.056-1.18.342-1.18.844 0 .52.45.837 1.091.837.857 0 1.505-.545 1.505-1.256v-.515z"}))},Al=function(e){var t=e.style,n=e.className;return Object(l.createElement)("div",{className:"block-library-colors-selector__icon-container"},Object(l.createElement)("div",{className:"".concat(n," block-library-colors-selector__state-selection"),style:t},Object(l.createElement)(Dl,null)))},Ll=function(e){var t,n,r,o=e.children,c=Object(j.a)(e,["children"]);return Object(l.createElement)(m.Dropdown,{position:"bottom right",className:"block-library-colors-selector",contentClassName:"block-library-colors-selector__popover",renderToggle:(t=c,n=t.TextColor,r=t.BackgroundColor,function(e){var t=e.onToggle,o=e.isOpen;return Object(l.createElement)(m.ToolbarGroup,null,Object(l.createElement)(m.ToolbarButton,{className:"components-toolbar__control block-library-colors-selector__toggle",label:Object(k.__)("Open Colors Selector"),onClick:t,onKeyDown:function(e){o||e.keyCode!==ai.DOWN||(e.preventDefault(),e.stopPropagation(),t())},icon:Object(l.createElement)(r,null,Object(l.createElement)(n,null,Object(l.createElement)(Al,null)))}))}),renderContent:function(){return o}})},Rl={},Ml=Object(m.withFilters)("editor.BlockEdit")((function(e){var t=e.attributes,n=void 0===t?{}:t,r=e.name,o=Object(p.getBlockType)(r),c=Object(l.useContext)(Nl),a=Object(l.useMemo)((function(){return o&&o.usesContext?Object(d.pick)(c,o.usesContext):Rl}),[o,c]);if(!o)return null;var s=o.edit||o.save;if(o.apiVersion>1||Object(p.hasBlockSupport)(o,"lightBlockWrapper",!1))return Object(l.createElement)(s,Object(i.a)({},e,{context:a}));var b=Object(p.hasBlockSupport)(o,"className",!0)?Object(p.getBlockDefaultClassName)(r):null,f=u()(b,n.className);return Object(l.createElement)(s,Object(i.a)({},e,{context:a,className:f}))}));function Fl(e){var t={name:e.name,isSelected:e.isSelected,clientId:e.clientId};return Object(l.createElement)(g,{value:Object(l.useMemo)((function(){return t}),Object.values(t))},Object(l.createElement)(Ml,e))}var Vl=n(47),Hl=Object(l.createElement)(Br.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)(Br.Path,{d:"M13.8 5.2H3v1.5h10.8V5.2zm-3.6 12v1.5H21v-1.5H10.2zm7.2-6H6.6v1.5h10.8v-1.5z"})),zl=n(48),Gl=n(309),Ul=n(117),Wl=n(27),Kl=function(e){return e+1},ql=function(e){return{top:e.offsetTop,left:e.offsetLeft}};var $l=function(e){var t=e.isSelected,n=e.adjustScrolling,r=e.enableAnimation,o=e.triggerAnimationOnChange,c=Object(l.useRef)(),i=Object(b.useReducedMotion)()||!r,a=Object(l.useReducer)(Kl,0),s=Object(wo.a)(a,2),u=s[0],d=s[1],f=Object(l.useReducer)(Kl,0),p=Object(wo.a)(f,2),m=p[0],v=p[1],O=Object(l.useState)({x:0,y:0}),g=Object(wo.a)(O,2),h=g[0],j=g[1],y=Object(l.useMemo)((function(){return c.current?ql(c.current):null}),[o]),k=Object(l.useMemo)((function(){if(!n||!c.current)return function(){};var e=Object(Wl.getScrollContainer)(c.current);if(!e)return function(){};var t=c.current.getBoundingClientRect();return function(){var n=c.current.getBoundingClientRect().top-t.top;n&&(e.scrollTop+=n)}}),[o,n]);function _(e){var n=e.x,r=e.y;n=Math.round(n),r=Math.round(r),n===_.x&&r===_.y||(!function(e){var n=e.x,r=e.y;if(c.current){var o=0===n&&0===r;c.current.style.transformOrigin=o?"":"center",c.current.style.transform=o?"":"translate3d(".concat(n,"px,").concat(r,"px,0)"),c.current.style.zIndex=!t||o?"":"1",k()}}({x:n,y:r}),_.x=n,_.y=r)}return Object(l.useLayoutEffect)((function(){u&&v()}),[u]),Object(l.useLayoutEffect)((function(){if(y)if(i)k();else{c.current.style.transform="";var e=ql(c.current);d(),j({x:Math.round(y.left-e.left),y:Math.round(y.top-e.top)})}}),[o]),_.x=0,_.y=0,Object(Ul.useSpring)({from:{x:h.x,y:h.y},to:{x:0,y:0},reset:u!==m,config:{mass:5,tension:2e3,friction:200},immediate:i,onFrame:_}),c},Yl=Object(Ul.animated)(m.__experimentalTreeGridRow);function Xl(e){var t=e.isSelected,n=e.position,r=e.level,o=e.rowCount,c=e.children,a=e.className,s=e.path,d=Object(j.a)(e,["isSelected","position","level","rowCount","children","className","path"]),b=$l({isSelected:t,adjustScrolling:!1,enableAnimation:!0,triggerAnimationOnChange:s.join("_")});return Object(l.createElement)(Yl,Object(i.a)({ref:b,className:u()("block-editor-block-navigation-leaf",a),level:r,positionInSet:n,setSize:o},d),c)}var Ql=n(220),Zl=n(221),Jl=n(307),es=n(308);function ts(e,t,n,r,o,c,i){var a=n+1,l=function(e){return"up"===e?"horizontal"===i?Object(k.isRTL)()?"right":"left":"up":"down"===e?"horizontal"===i?Object(k.isRTL)()?"left":"right":"down":null};if(e>1)return function(e,t,n,r,o){var c=t+1;if(o<0&&n)return Object(k.__)("Blocks cannot be moved up as they are already at the top");if(o>0&&r)return Object(k.__)("Blocks cannot be moved down as they are already at the bottom");if(o<0&&!n)return Object(k.sprintf)(Object(k._n)("Move %1$d block from position %2$d up by one place","Move %1$d blocks from position %2$d up by one place",e),e,c);if(o>0&&!r)return Object(k.sprintf)(Object(k._n)("Move %1$d block from position %2$d down by one place","Move %1$d blocks from position %2$d down by one place",e),e,c)}(e,n,r,o,c);if(r&&o)return Object(k.sprintf)(Object(k.__)("Block %s is the only block, and cannot be moved"),t);if(c>0&&!o){var s=l("down");if("down"===s)return Object(k.sprintf)(Object(k.__)("Move %1$s block from position %2$d down to position %3$d"),t,a,a+1);if("left"===s)return Object(k.sprintf)(Object(k.__)("Move %1$s block from position %2$d left to position %3$d"),t,a,a+1);if("right"===s)return Object(k.sprintf)(Object(k.__)("Move %1$s block from position %2$d right to position %3$d"),t,a,a+1)}if(c>0&&o){var u=l("down");if("down"===u)return Object(k.sprintf)(Object(k.__)("Block %1$s is at the end of the content and can’t be moved down"),t);if("left"===u)return Object(k.sprintf)(Object(k.__)("Block %1$s is at the end of the content and can’t be moved left"),t);if("right"===u)return Object(k.sprintf)(Object(k.__)("Block %1$s is at the end of the content and can’t be moved right"),t)}if(c<0&&!r){var d=l("up");if("up"===d)return Object(k.sprintf)(Object(k.__)("Move %1$s block from position %2$d up to position %3$d"),t,a,a-1);if("left"===d)return Object(k.sprintf)(Object(k.__)("Move %1$s block from position %2$d left to position %3$d"),t,a,a-1);if("right"===d)return Object(k.sprintf)(Object(k.__)("Move %1$s block from position %2$d right to position %3$d"),t,a,a-1)}if(c<0&&r){var b=l("up");if("up"===b)return Object(k.sprintf)(Object(k.__)("Block %1$s is at the beginning of the content and can’t be moved up"),t);if("left"===b)return Object(k.sprintf)(Object(k.__)("Block %1$s is at the beginning of the content and can’t be moved left"),t);if("right"===b)return Object(k.sprintf)(Object(k.__)("Block %1$s is at the beginning of the content and can’t be moved right"),t)}}var ns=function(e,t){return"up"===e?"horizontal"===t?Object(k.isRTL)()?Ql.a:Zl.a:Jl.a:"down"===e?"horizontal"===t?Object(k.isRTL)()?Zl.a:Ql.a:es.a:null},rs=function(e,t){return"up"===e?"horizontal"===t?Object(k.isRTL)()?Object(k.__)("Move right"):Object(k.__)("Move left"):Object(k.__)("Move up"):"down"===e?"horizontal"===t?Object(k.isRTL)()?Object(k.__)("Move left"):Object(k.__)("Move right"):Object(k.__)("Move down"):null},os=Object(l.forwardRef)((function(e,t){var n=e.clientIds,r=e.direction,o=e.orientation,c=Object(j.a)(e,["clientIds","direction","orientation"]),a=Object(b.useInstanceId)(os),s=Object(d.castArray)(n).length,f=Object(v.useSelect)((function(e){var t=e(jr),c=t.getBlockIndex,i=t.getBlockRootClientId,a=t.getBlockOrder,l=t.getBlock,s=t.getBlockListSettings,u=Object(d.castArray)(n),b=Object(d.first)(u),f=i(b),m=c(b,f),v=c(Object(d.last)(u),f),O=a(f),g=l(b),h=0===m,j=v===O.length-1,y=(s(f)||{}).orientation;return{blockType:g?Object(p.getBlockType)(g.name):null,isDisabled:"up"===r?h:j,rootClientId:f,firstIndex:m,isFirst:h,isLast:j,orientation:o||y}}),[n,r]),O=f.blockType,g=f.isDisabled,h=f.rootClientId,y=f.isFirst,k=f.isLast,_=f.firstIndex,E=f.orientation,w=void 0===E?"vertical":E,S=Object(v.useDispatch)(jr),C=S.moveBlocksDown,B=S.moveBlocksUp,I="up"===r?B:C,x="block-editor-block-mover-button__description-".concat(a);return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(m.Button,Object(i.a)({ref:t,className:u()("block-editor-block-mover-button","is-".concat(r,"-button")),icon:ns(r,w),label:rs(r,w),"aria-describedby":x},c,{onClick:g?null:function(e){I(n,h),c.onClick&&c.onClick(e)},"aria-disabled":g})),Object(l.createElement)("span",{id:x,className:"block-editor-block-mover-button__description"},ts(s,O&&O.title,_,y,k,"up"===r?-1:1,w)))})),cs=Object(l.forwardRef)((function(e,t){return Object(l.createElement)(os,Object(i.a)({direction:"up",ref:t},e))})),is=Object(l.forwardRef)((function(e,t){return Object(l.createElement)(os,Object(i.a)({direction:"down",ref:t},e))})),as=Object(l.createContext)({__experimentalFeatures:!1,__experimentalPersistentListViewFeatures:!1}),ls=function(){return Object(l.useContext)(as)},ss=Object(l.createElement)(Br.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Br.Path,{d:"M11 13h2v-2h-2v2zm-6 0h2v-2H5v2zm12-2v2h2v-2h-2z"}));var us=function(e){var t=e.className,n=e.actions,r=e.children,o=e.secondaryActions;return Object(l.createElement)("div",{className:u()(t,"block-editor-warning")},Object(l.createElement)("div",{className:"block-editor-warning__contents"},Object(l.createElement)("p",{className:"block-editor-warning__message"},r),(l.Children.count(n)>0||o)&&Object(l.createElement)("div",{className:"block-editor-warning__actions"},l.Children.count(n)>0&&l.Children.map(n,(function(e,t){return Object(l.createElement)("span",{key:t,className:"block-editor-warning__action"},e)})),o&&Object(l.createElement)(m.DropdownMenu,{className:"block-editor-warning__secondary",icon:ss,label:Object(k.__)("More options"),popoverProps:{position:"bottom left",className:"block-editor-warning__dropdown"},noIcons:!0},(function(){return Object(l.createElement)(m.MenuGroup,null,o.map((function(e,t){return Object(l.createElement)(m.MenuItem,{onClick:e.onClick,key:t},e.title)})))})))))},ds=n(280),bs=function(e){var t=e.title,n=e.rawContent,r=e.renderedContent,o=e.action,c=e.actionText,i=e.className;return Object(l.createElement)("div",{className:i},Object(l.createElement)("div",{className:"block-editor-block-compare__content"},Object(l.createElement)("h2",{className:"block-editor-block-compare__heading"},t),Object(l.createElement)("div",{className:"block-editor-block-compare__html"},n),Object(l.createElement)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor"},r)),Object(l.createElement)("div",{className:"block-editor-block-compare__action"},Object(l.createElement)(m.Button,{isSecondary:!0,tabIndex:"0",onClick:o},c)))};var fs=function(e){var t,n,r,o,c=e.block,i=e.onKeep,a=e.onConvert,s=e.convertor,b=e.convertButtonText,f={rawContent:c.originalContent,renderedContent:Object(p.getSaveElement)(c.name,c.attributes)},m=(t=s(c),n=Object(d.castArray)(t),r=n.map((function(e){return Object(p.getSaveContent)(e.name,e.attributes,e.innerBlocks)})),o=n.map((function(e){return Object(p.getSaveElement)(e.name,e.attributes,e.innerBlocks)})),{rawContent:r.join(""),renderedContent:o}),v=function(e,t){return Object(ds.diffChars)(e,t).map((function(e,t){var n=u()({"block-editor-block-compare__added":e.added,"block-editor-block-compare__removed":e.removed});return Object(l.createElement)("span",{key:t,className:n},e.value)}))}(f.rawContent,m.rawContent);return Object(l.createElement)("div",{className:"block-editor-block-compare__wrapper"},Object(l.createElement)(bs,{title:Object(k.__)("Current"),className:"block-editor-block-compare__current",action:i,actionText:Object(k.__)("Convert to HTML"),rawContent:f.rawContent,renderedContent:f.renderedContent}),Object(l.createElement)(bs,{title:Object(k.__)("After Conversion"),className:"block-editor-block-compare__converted",action:a,actionText:b,rawContent:v,renderedContent:m.renderedContent}))};var ps=function(e){return Object(p.rawHandler)({HTML:e.originalContent})},ms=Object(b.compose)([Object(v.withSelect)((function(e,t){var n=t.clientId;return{block:e(jr).getBlock(n)}})),Object(v.withDispatch)((function(e,t){var n=t.block,r=e(jr).replaceBlock;return{convertToClassic:function(){r(n.clientId,function(e){return Object(p.createBlock)("core/freeform",{content:e.originalContent})}(n))},convertToHTML:function(){r(n.clientId,function(e){return Object(p.createBlock)("core/html",{content:e.originalContent})}(n))},convertToBlocks:function(){r(n.clientId,ps(n))},attemptBlockRecovery:function(){var e,t,o,c;r(n.clientId,(t=(e=n).name,o=e.attributes,c=e.innerBlocks,Object(p.createBlock)(t,o,c)))}}}))])((function(e){var t=e.convertToHTML,n=e.convertToBlocks,r=e.convertToClassic,o=e.attemptBlockRecovery,c=e.block,i=!!Object(p.getBlockType)("core/html"),a=Object(l.useState)(!1),s=Object(wo.a)(a,2),u=s[0],d=s[1],b=Object(l.useCallback)((function(){return d(!0)}),[]),f=Object(l.useCallback)((function(){return d(!1)}),[]),v=Object(l.useMemo)((function(){return[{title:Object(k._x)("Resolve","imperative verb"),onClick:b},i&&{title:Object(k.__)("Convert to HTML"),onClick:t},{title:Object(k.__)("Convert to Classic Block"),onClick:r}].filter(Boolean)}),[b,t,r]);return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(us,{actions:[Object(l.createElement)(m.Button,{key:"recover",onClick:o,isPrimary:!0},Object(k.__)("Attempt Block Recovery"))],secondaryActions:v},Object(k.__)("This block contains unexpected or invalid content.")),u&&Object(l.createElement)(m.Modal,{title:Object(k.__)("Resolve Block"),onRequestClose:f,className:"block-editor-block-compare"},Object(l.createElement)(fs,{block:c,onKeep:t,onConvert:n,convertor:ps,convertButtonText:Object(k.__)("Convert to Blocks")})))})),vs=Object(l.createElement)(us,{className:"block-editor-block-list__block-crash-warning"},Object(k.__)("This block has encountered an error and cannot be previewed.")),Os=function(){return vs};function gs(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ga.a)(e);if(t){var o=Object(ga.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Oa.a)(this,n)}}var hs=function(e){Object(va.a)(n,e);var t=gs(n);function n(){var e;return Object(fa.a)(this,n),(e=t.apply(this,arguments)).state={hasError:!1},e}return Object(pa.a)(n,[{key:"componentDidCatch",value:function(){this.setState({hasError:!0})}},{key:"render",value:function(){return this.state.hasError?this.props.fallback:this.props.children}}]),n}(l.Component),js=n(92),ys=n.n(js);var ks=function(e){var t=e.clientId,n=Object(l.useState)(""),r=Object(wo.a)(n,2),o=r[0],c=r[1],i=Object(v.useSelect)((function(e){return e(jr).getBlock(t)}),[t]),a=Object(v.useDispatch)(jr).updateBlock;return Object(l.useEffect)((function(){c(Object(p.getBlockContent)(i))}),[i]),Object(l.createElement)(ys.a,{className:"block-editor-block-list__block-html-textarea",value:o,onBlur:function(){var e=Object(p.getBlockType)(i.name),n=Object(p.getBlockAttributes)(e,o,i.attributes),r=o||Object(p.getSaveContent)(e,n),l=!o||Object(p.isValidBlockContent)(e,n,r);a(t,{attributes:n,originalContent:r,isValid:l}),o||c({content:r})},onChange:function(e){return c(e.target.value)}})};function _s(e){var t=Object(l.useRef)(),n=function(e){return Object(v.useSelect)((function(t){var n=t(jr),r=n.getSelectedBlocksInitialCaretPosition,o=n.isMultiSelecting,c=n.isNavigationMode;if((0,n.isBlockSelected)(e)&&!o()&&!c())return r()}),[e])}(e);return Object(l.useEffect)((function(){if(null!=n&&t.current){var e=t.current.ownerDocument;if(!t.current.contains(e.activeElement)){var r=Wl.focus.tabbable.find(t.current).filter((function(e){return Object(Wl.isTextField)(e)})),o=-1===n,c=(o?d.last:d.first)(r)||t.current;Cc(t.current,c)&&!c.closest(".block-list-appender")?Object(Wl.placeCaretAtHorizontalEdge)(c,o):t.current.focus()}}}),[n]),t}function Es(e){if(!e.defaultPrevented){var t="mouseover"===e.type?"add":"remove";e.preventDefault(),e.currentTarget.classList[t]("is-hovered")}}function ws(){var e=Object(v.useSelect)((function(e){var t=e(jr),n=t.isNavigationMode,r=t.getSettings;return n()||r().outlineMode}),[]);return Object(b.useRefEffect)((function(t){if(e)return t.addEventListener("mouseout",Es),t.addEventListener("mouseover",Es),function(){t.removeEventListener("mouseout",Es),t.removeEventListener("mouseover",Es),t.classList.remove("is-hovered")}}),[e])}function Ss(e){return Object(v.useSelect)((function(t){var n=t(jr),r=n.isBlockBeingDragged,o=n.isBlockHighlighted,c=n.isBlockSelected,i=n.isBlockMultiSelected,a=n.getBlockName,l=n.getSettings,s=n.hasSelectedInnerBlock,d=n.__experimentalGetActiveBlockIdByBlockNames,b=l().__experimentalSpotlightEntityBlocks,f=r(e),m=c(e),v=a(e),O=s(e,!0),g=d(b);return u()("block-editor-block-list__block",{"is-selected":m,"is-highlighted":o(e),"is-multi-selected":i(e),"is-reusable":Object(p.isReusableBlock)(Object(p.getBlockType)(v)),"is-dragging":f,"has-child-selected":O,"has-active-entity":g,"is-active-entity":g===e})}),[e])}function Cs(e){return Object(v.useSelect)((function(t){var n=t(jr).getBlockName(e),r=Object(p.getBlockType)(n);if(r.apiVersion>1||Object(p.hasBlockSupport)(r,"lightBlockWrapper",!1))return Object(p.getBlockDefaultClassName)(n)}),[e])}function Bs(e){return Object(v.useSelect)((function(t){var n=t(jr),r=n.getBlockName,o=(0,n.getBlockAttributes)(e).className;if(o){var c=Object(p.getBlockType)(r(e));if(c.apiVersion>1||Object(p.hasBlockSupport)(c,"lightBlockWrapper",!1))return o}}),[e])}function Is(e){return Object(v.useSelect)((function(t){var n=t(jr),r=n.hasBlockMovingClientId,o=n.canInsertBlockType,c=n.getBlockName,i=n.getBlockRootClientId;if((0,n.isBlockSelected)(e)){var a=r();if(a)return u()("is-block-moving-mode",{"can-insert-moving-block":o(c(a),i(e))})}}),[e])}function xs(e,t){for(var n="start"===t?"firstChild":"lastChild",r="start"===t?"nextSibling":"previousSibling";e[n];)for(e=e[n];e.nodeType===e.TEXT_NODE&&/^[ \t\n]*$/.test(e.data)&&e[r];)e=e[r];return e}function Ps(e){var t=e(jr),n=t.isSelectionEnabled,r=t.isMultiSelecting,o=t.getMultiSelectedBlockClientIds,c=t.hasMultiSelection,i=t.getSelectedBlockClientId;return{isSelectionEnabled:n(),isMultiSelecting:r(),multiSelectedBlockClientIds:o(),hasMultiSelection:c(),selectedBlockClientId:i()}}function Ts(e,t){Array.from(e.querySelectorAll(".rich-text")).forEach((function(e){t?e.setAttribute("contenteditable",!0):e.removeAttribute("contenteditable")}))}var Ns=Object(l.createContext)(),Ds={position:"fixed"};function As(e){var t=e.tagName;return"INPUT"===t||"BUTTON"===t||"SELECT"===t||"TEXTAREA"===t}function Ls(e,t,n,r){var o,c=Wl.focus.focusable.find(n);return t&&(c=Object(d.reverse)(c)),c=c.slice(c.indexOf(e)+1),r&&(o=e.getBoundingClientRect()),Object(d.find)(c,(function(e){if(!Wl.focus.tabbable.isTabbableIndex(e))return!1;if(e.isContentEditable&&"true"!==e.contentEditable)return!1;if(r){var t=e.getBoundingClientRect();if(t.left>=o.right||t.right<=o.left)return!1}return!0}))}function Rs(e){var t=e(jr),n=t.getSelectedBlockClientId,r=t.getMultiSelectedBlocksStartClientId,o=t.getMultiSelectedBlocksEndClientId,c=t.getPreviousBlockClientId,i=t.getNextBlockClientId,a=t.getFirstMultiSelectedBlockClientId,l=t.getLastMultiSelectedBlockClientId,s=t.hasMultiSelection,u=t.getBlockOrder,b=t.isSelectionEnabled,f=t.getBlockSelectionStart,p=t.isMultiSelecting,m=t.getSettings,v=t.isNavigationMode,O=n(),g=r(),h=o(),j=u();return{selectedBlockClientId:O,selectionStartClientId:g,selectionBeforeEndClientId:c(h||O),selectionAfterEndClientId:i(h||O),selectedFirstClientId:a(),selectedLastClientId:l(),hasMultiSelection:s(),firstBlock:Object(d.first)(j),lastBlock:Object(d.last)(j),isSelectionEnabled:b(),blockSelectionStart:f(),isMultiSelecting:p(),keepCaretInsideBlock:m().keepCaretInsideBlock,isNavigationMode:v()}}function Ms(e){var t=e.children,n=Object(l.useRef)(),r=Object(l.useRef)(),o=Object(l.useRef)(),c=Object(l.useRef)(),i=Object(l.useRef)(),a=Object(l.useRef)(),s=Object(l.useRef)(),u=Object(v.useSelect)(Rs,[]),d=u.selectedBlockClientId,b=u.selectionStartClientId,f=u.selectionBeforeEndClientId,p=u.selectionAfterEndClientId,m=u.selectedFirstClientId,O=u.selectedLastClientId,g=u.hasMultiSelection,h=u.firstBlock,j=u.lastBlock,_=u.isSelectionEnabled,E=u.blockSelectionStart,w=u.isMultiSelecting,S=u.keepCaretInsideBlock,C=u.isNavigationMode,B=Object(v.useDispatch)(jr),I=B.multiSelect,x=B.selectBlock,P=B.setNavigationMode;function T(e){var t=e?f:p;t&&I(b||d,t)}function N(e){var t=e?m:O;t&&x(t)}Object(l.useEffect)((function(){g&&!w&&c.current.focus()}),[g,w]);var D=function(e){var t=Object(v.useSelect)(Ps,[]),n=t.isSelectionEnabled,r=t.isMultiSelecting,o=t.multiSelectedBlockClientIds,c=t.hasMultiSelection,i=t.selectedBlockClientId,a=Object(v.useSelect)(jr).getBlockParents,s=Object(v.useDispatch)(jr),u=s.startMultiSelect,d=s.stopMultiSelect,b=s.multiSelect,f=s.selectBlock,p=Object(l.useRef)(),m=Object(l.useRef)(),O=Object(l.useRef)();Object(l.useEffect)((function(){var t=e.current.ownerDocument,n=t.defaultView;if(c&&!r){var a=o.length;if(!(a<2)){var l=o[0],s=o[a-1],u=Sc(l,t),d=Sc(s,t),b=n.getSelection(),f=t.createRange();u=xs(u,"start"),d=xs(d,"end"),f.setStartBefore(u),f.setEndAfter(d),b.removeAllRanges(),b.addRange(f)}}else{if(!i||r)return;var p=n.getSelection();if(p.rangeCount&&!p.isCollapsed){var m=Sc(i,t),v=p.getRangeAt(0),O=v.startContainer,g=v.endContainer;!m||m.contains(O)&&m.contains(g)||p.removeAllRanges()}}}),[c,r,o,f,i]);var g=Object(l.useCallback)((function(t){var n=t.isSelectionEnd,r=e.current.ownerDocument.defaultView.getSelection();if(r.rangeCount&&!r.isCollapsed){var o=Bc(r.focusNode);if(m.current===o){if(f(o),n&&(Ts(e.current,!0),r.rangeCount)){var c=r.getRangeAt(0).commonAncestorContainer;O.current.contains(c)&&O.current.focus()}}else{var i=[].concat(Object(y.a)(a(m.current)),[m.current]),l=[].concat(Object(y.a)(a(o)),[o]),s=Math.min(i.length,l.length)-1;b(i[s],l[s])}}else Ts(e.current,!0)}),[f,a,b]),h=Object(l.useCallback)((function(){var t=e.current.ownerDocument,n=t.defaultView;t.removeEventListener("selectionchange",g),n.removeEventListener("mouseup",h),p.current=n.requestAnimationFrame((function(){g({isSelectionEnd:!0}),d()}))}),[g,d]);return Object(l.useEffect)((function(){var t=e.current.ownerDocument,n=t.defaultView;return function(){t.removeEventListener("selectionchange",g),n.removeEventListener("mouseup",h),n.cancelAnimationFrame(p.current)}}),[g,h]),Object(l.useCallback)((function(t){if(n){var r=e.current.ownerDocument,o=r.defaultView;m.current=t,O.current=r.activeElement,u(),r.addEventListener("selectionchange",g),o.addEventListener("mouseup",h),Ts(e.current,!1)}}),[n,u,h])}(n),A=Object(l.useRef)();function L(e){if(a.current)a.current=null;else if(g)c.current.focus();else if(d)A.current.focus();else{P(!0);var t=e.target.compareDocumentPosition(n.current)&e.target.DOCUMENT_POSITION_FOLLOWING?"findNext":"findPrevious";Wl.focus.tabbable[t](e.target).focus()}}Object(l.useEffect)((function(){function e(e){A.current=e.target}return n.current.addEventListener("focusout",e),function(){n.current.removeEventListener("focusout",e)}}),[]);var R=C?void 0:"0";return Object(l.createElement)(Ns.Provider,{value:D},Object(l.createElement)("div",{ref:r,tabIndex:R,onFocus:L,style:Ds}),Object(l.createElement)("div",{ref:c,tabIndex:g?"0":void 0,"aria-label":g?Object(k.__)("Multiple selected blocks"):void 0,style:Ds,onKeyDown:function(e){var t=e.keyCode,n=e.shiftKey,c=t===ai.UP,i=t===ai.DOWN,l=t===ai.LEFT,s=t===ai.RIGHT,u=c||l,d=l||s||(c||i);if(t===ai.TAB)a.current=!0,n?r.current.focus():o.current.focus();else if(d){(n?T:N)(u),e.preventDefault()}}}),Object(l.createElement)("div",{ref:n,className:"block-editor-writing-flow",onKeyDown:function(e){var t=e.keyCode,c=e.target;if(n.current.contains(c)){var l=t===ai.UP,u=t===ai.DOWN,b=t===ai.LEFT,m=t===ai.RIGHT,v=t===ai.TAB,O=t===ai.ESCAPE,g=l||b,y=b||m,k=l||u,_=y||k,E=e.shiftKey,w=E||e.ctrlKey||e.altKey||e.metaKey,C=k?Wl.isVerticalEdge:Wl.isHorizontalEdge,B=n.current.ownerDocument.defaultView;if(d){if(v){var x=E?"findPrevious":"findNext";if(As(c)&&As(Wl.focus.tabbable[x](c)))return;var N=E?r:o;return a.current=!0,void N.current.focus()}O&&P(!0)}if(k?s.current||(s.current=Object(Wl.computeCaretRect)(B)):s.current=null,!_)return ai.isKeyboardEvent.primary(e)&&(i.current=Object(Wl.isEntirelySelected)(c)),void(ai.isKeyboardEvent.primary(e,"a")&&((c.isContentEditable?i.current:Object(Wl.isEntirelySelected)(c))&&(I(h,j),e.preventDefault()),i.current=!0));if(!e.nativeEvent.defaultPrevented&&function(e,t,n){if((t===ai.UP||t===ai.DOWN)&&!n)return!0;var r=e.tagName;return"INPUT"!==r&&"TEXTAREA"!==r}(c,t,w)){var D,A="rtl"===(D=c).ownerDocument.defaultView.getComputedStyle(D).direction?!g:g;if(E)(g&&f||!g&&p)&&function(e,t){var r,o,c=Ls(e,t,n.current);return!(c&&(r=e,o=c,r.closest(".block-editor-block-list__block")===o.closest(".block-editor-block-list__block")))}(c,g)&&C(c,g)&&(T(g),e.preventDefault());else if(k&&Object(Wl.isVerticalEdge)(c,g)&&!S){var L=Ls(c,g,n.current,!0);L&&(Object(Wl.placeCaretAtVerticalEdge)(L,g,s.current),e.preventDefault())}else if(y&&B.getSelection().isCollapsed&&Object(Wl.isHorizontalEdge)(c,A)&&!S){var R=Ls(c,A,n.current);Object(Wl.placeCaretAtHorizontalEdge)(R,A),e.preventDefault()}}}},onMouseDown:function(e){if(s.current=null,_&&0===e.button){var t=Bc(e.target);t&&(e.shiftKey?E!==t&&(I(E,t),e.preventDefault()):g&&x(t))}}},t),Object(l.createElement)("div",{ref:o,tabIndex:R,onFocus:L,style:Ds}))}function Fs(e){var t=Object(l.useContext)(Ns),n=Object(v.useSelect)((function(t){var n=t(jr),r=n.isBlockSelected,o=n.getBlockRootClientId,c=n.getBlockIndex;return{isSelected:r(e),rootClientId:o(e),index:c(e)}}),[e]),r=n.isSelected,o=n.rootClientId,c=n.index,i=Object(v.useDispatch)(jr),a=i.insertDefaultBlock,s=i.removeBlock,u=i.selectBlock;return Object(b.useRefEffect)((function(n){if(!r){function i(t){Cc(n,t.target)&&u(e)}return n.addEventListener("focusin",i),function(){n.removeEventListener("focusin",i)}}function l(t){var r=t.keyCode,i=t.target;r!==ai.ENTER&&r!==ai.BACKSPACE&&r!==ai.DELETE||i!==n||Object(Wl.isTextField)(i)||(t.preventDefault(),r===ai.ENTER?a({},o,c+1):s(e))}function d(n){1===n.buttons&&t(e)}function b(e){e.preventDefault()}return n.addEventListener("keydown",l),n.addEventListener("mouseleave",d),n.addEventListener("dragstart",b),function(){n.removeEventListener("mouseleave",d),n.removeEventListener("keydown",l),n.removeEventListener("dragstart",b)}}),[r,o,c,t,a,s,u])}function Vs(e){var t=Object(v.useSelect)(jr),n=t.isNavigationMode,r=t.isBlockSelected,o=Object(v.useDispatch)(jr),c=o.setNavigationMode,i=o.selectBlock;return Object(b.useRefEffect)((function(t){function o(t){n()&&!t.defaultPrevented&&(t.preventDefault(),r(e)?c(!1):i(e))}return t.addEventListener("mousedown",o),function(){t.addEventListener("mousedown",o)}}),[e,n,r,c])}var Hs=n(57),zs=n(218),Gs=[Object(l.createInterpolateElement)(Object(k.__)("While writing, you can press <kbd>/</kbd> to quickly insert new blocks."),{kbd:Object(l.createElement)("kbd",null)}),Object(l.createInterpolateElement)(Object(k.__)("Indent a list by pressing <kbd>space</kbd> at the beginning of a line."),{kbd:Object(l.createElement)("kbd",null)}),Object(l.createInterpolateElement)(Object(k.__)("Outdent a list by pressing <kbd>backspace</kbd> at the beginning of a line."),{kbd:Object(l.createElement)("kbd",null)}),Object(k.__)("Drag files into the editor to automatically insert media blocks."),Object(k.__)("Change a block's type by pressing the block icon on the toolbar.")];var Us=function(){var e=Object(l.useState)(Math.floor(Math.random()*Gs.length)),t=Object(wo.a)(e,1)[0];return Object(l.createElement)(m.Tip,null,Gs[t])},Ws=n(164),Ks=n(219);var qs=function e(t){var n=t.className,r=t.onChange,o=t.value,c=t.label,i=t.placeholder,a=Object(b.useInstanceId)(e),s=Object(l.useRef)();return Object(l.createElement)("div",{className:u()("block-editor-inserter__search",n)},Object(l.createElement)(m.VisuallyHidden,{as:"label",htmlFor:"block-editor-inserter__search-".concat(a)},c||i),Object(l.createElement)("input",{ref:s,className:"block-editor-inserter__search-input",id:"block-editor-inserter__search-".concat(a),type:"search",placeholder:i,onChange:function(e){return r(e.target.value)},autoComplete:"off",value:o||""}),Object(l.createElement)("div",{className:"block-editor-inserter__search-icon"},!!o&&Object(l.createElement)(m.Button,{icon:Ws.a,label:Object(k.__)("Reset search"),onClick:function(){r(""),s.current.focus()}}),!o&&Object(l.createElement)(na.a,{icon:Ks.a})))};var $s=function(e){var t=e.title,n=e.icon,r=e.description,o=e.blockType;return o&&(Ft()("`blockType` property in `BlockCard component`",{since:"5.7",alternative:"`title, icon and description` properties"}),t=o.title,n=o.icon,r=o.description),Object(l.createElement)("div",{className:"block-editor-block-card"},Object(l.createElement)(hl,{icon:n,showColors:!0}),Object(l.createElement)("div",{className:"block-editor-block-card__content"},Object(l.createElement)("h2",{className:"block-editor-block-card__title"},t),Object(l.createElement)("span",{className:"block-editor-block-card__description"},r)))};function Ys(e){var t=e.clientId,n=void 0===t?null:t,r=e.value,o=e.selection,c=e.onChange,i=void 0===c?d.noop:c,a=e.onInput,s=void 0===a?d.noop:a,u=Object(v.useRegistry)(),b=u.dispatch(jr),f=b.resetBlocks,m=b.resetSelection,O=b.replaceInnerBlocks,g=b.setHasControlledInnerBlocks,h=b.__unstableMarkNextChangeAsNotPersistent,j=u.select(jr),y=j.getBlockName,k=j.getBlocks,_=Object(l.useRef)({incoming:null,outgoing:[]}),E=Object(l.useRef)(!1),w=Object(l.useRef)(s),S=Object(l.useRef)(i);Object(l.useEffect)((function(){w.current=s,S.current=i}),[s,i]),Object(l.useEffect)((function(){_.current.outgoing.includes(r)?Object(d.last)(_.current.outgoing)===r&&(_.current.outgoing=[]):k(n)!==r&&(_.current.outgoing=[],function(){if(r)if(h(),n){g(n,!0),h();var e=r.map((function(e){return Object(p.cloneBlock)(e)}));E.current&&(_.current.incoming=e),O(n,e)}else E.current&&(_.current.incoming=r),f(r)}(),o&&m(o.selectionStart,o.selectionEnd,o.initialPosition))}),[r,n]),Object(l.useEffect)((function(){var e=u.select(jr),t=e.getSelectionStart,r=e.getSelectionEnd,o=e.getSelectedBlocksInitialCaretPosition,c=e.isLastBlockChangePersistent,i=e.__unstableIsLastBlockChangeIgnored,a=k(n),l=c(),s=!1;E.current=!0;var d=u.subscribe((function(){if(null===n||null!==y(n)){var e=c(),u=k(n),d=u!==a;if(a=u,d&&(_.current.incoming||i()))return _.current.incoming=null,void(l=e);if(d||s&&!d&&e&&!l)l=e,_.current.outgoing.push(a),(l?S.current:w.current)(a,{selection:{selectionStart:t(),selectionEnd:r(),initialPosition:o()}});s=d}}));return function(){return d()}}),[u,n])}var Xs,Qs=Object(b.createHigherOrderComponent)((function(e){return Object(v.withRegistry)((function(t){var n=t.useSubRegistry,r=void 0===n||n,o=t.registry,c=Object(j.a)(t,["useSubRegistry","registry"]);if(!r)return Object(l.createElement)(e,Object(i.a)({registry:o},c));var a=Object(l.useState)(null),s=Object(wo.a)(a,2),u=s[0],d=s[1];return Object(l.useEffect)((function(){var e=Object(v.createRegistry)({},o);e.registerStore(Ht,hr),d(e)}),[o]),u?Object(l.createElement)(v.RegistryProvider,{value:u},Object(l.createElement)(e,Object(i.a)({registry:u},c))):null}))}),"withRegistryProvider")((function(e){var t=e.children,n=e.settings,r=Object(v.useDispatch)(jr).updateSettings;return Object(l.useEffect)((function(){r(n)}),[n]),Ys(e),t}));function Zs(e){var t=e.onClick;return Object(l.createElement)("div",{tabIndex:0,role:"button",onClick:t,onKeyPress:t},Object(l.createElement)(m.Disabled,null,Object(l.createElement)(Bb,null)))}var Js=function(e){var t=e.viewportWidth,n=e.__experimentalPadding,r=Object(b.useResizeObserver)(),o=Object(wo.a)(r,2),c=o[0],i=o[1].width,a=Object(b.useResizeObserver)(),s=Object(wo.a)(a,2),u=s[0],d=s[1].height;Xs=Xs||Object(b.pure)(Bb);var f=(i-2*n)/t;return Object(l.createElement)("div",{className:"block-editor-block-preview__container editor-styles-wrapper","aria-hidden":!0,style:{height:d*f+2*n}},c,Object(l.createElement)(m.Disabled,{style:{transform:"scale(".concat(f,")"),width:t,left:n,right:n,top:n},className:"block-editor-block-preview__content"},u,Object(l.createElement)(Xs,null)))};function eu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var tu=Object(l.memo)((function(e){var t=e.blocks,n=e.__experimentalPadding,r=void 0===n?0:n,o=e.viewportWidth,c=void 0===o?1200:o,i=e.__experimentalLive,s=void 0!==i&&i,u=e.__experimentalOnClick,b=Object(v.useSelect)((function(e){return e(jr).getSettings()}),[]),f=Object(l.useMemo)((function(){var e=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eu(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},b);return e.__experimentalBlockPatterns=[],e}),[b]),p=Object(l.useMemo)((function(){return Object(d.castArray)(t)}),[t]);return t&&0!==t.length?Object(l.createElement)(Qs,{value:p,settings:f},s?Object(l.createElement)(Zs,{onClick:u}):Object(l.createElement)(Js,{viewportWidth:c,__experimentalPadding:r})):null}));function nu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ru(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nu(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ou=function(e){var t,n,r=e.item,o=r.name,c=r.title,i=r.icon,a=r.description,s=r.initialAttributes,u=Object(p.getBlockType)(o),d=Object(p.isReusableBlock)(r);return Object(l.createElement)("div",{className:"block-editor-inserter__preview-container"},Object(l.createElement)("div",{className:"block-editor-inserter__preview"},d||u.example?Object(l.createElement)("div",{className:"block-editor-inserter__preview-content"},Object(l.createElement)(tu,{__experimentalPadding:16,viewportWidth:null!==(t=null===(n=u.example)||void 0===n?void 0:n.viewportWidth)&&void 0!==t?t:500,blocks:u.example?Object(p.getBlockFromExample)(r.name,{attributes:ru(ru({},u.example.attributes),s),innerBlocks:u.example.innerBlocks}):Object(p.createBlock)(o,s)})):Object(l.createElement)("div",{className:"block-editor-inserter__preview-content-missing"},Object(k.__)("No Preview Available."))),!d&&Object(l.createElement)($s,{title:c,icon:i,description:a}))},cu=Object(l.createContext)();function iu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function au(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iu(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var lu=Object(l.forwardRef)((function(e,t){var n=e.isFirst,r=e.as,o=e.children,c=Object(j.a)(e,["isFirst","as","children"]),a=Object(l.useContext)(cu);return Object(l.createElement)(m.__unstableCompositeItem,Object(i.a)({ref:t,state:a,role:"option",focusable:!0},c),(function(e){var t=au(au({},e),{},{tabIndex:n?0:e.tabIndex});return r?Object(l.createElement)(r,t,o):"function"==typeof o?o(t):Object(l.createElement)(m.Button,t,o)}))})),su=Object(l.createElement)(Br.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(l.createElement)(Br.Path,{d:"M5 4h2V2H5v2zm6-2v2h2V2h-2zm-6 8h2V8H5v2zm6 0h2V8h-2v2zm-6 6h2v-2H5v2zm6 0h2v-2h-2v2z"}));function uu(e){var t=e.count,n=e.icon;return Object(l.createElement)("div",{className:"block-editor-block-draggable-chip-wrapper"},Object(l.createElement)("div",{className:"block-editor-block-draggable-chip"},Object(l.createElement)(m.Flex,{justify:"center",className:"block-editor-block-draggable-chip__content"},Object(l.createElement)(m.FlexItem,null,n?Object(l.createElement)(hl,{icon:n}):Object(k.sprintf)(Object(k._n)("%d block","%d blocks",t),t)),Object(l.createElement)(m.FlexItem,null,Object(l.createElement)(hl,{icon:su})))))}var du=function(e){var t=e.isEnabled,n=e.blocks,r=e.icon,o=e.children,c={type:"inserter",blocks:n};return Object(l.createElement)(m.Draggable,{__experimentalTransferDataType:"wp-blocks",transferData:c,__experimentalDragComponent:Object(l.createElement)(uu,{count:n.length,icon:r})},(function(e){var n=e.onDraggableStart,r=e.onDraggableEnd;return o({draggable:t,onDragStart:t?n:void 0,onDragEnd:t?r:void 0})}))};function bu(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=e.navigator.platform;return-1!==t.indexOf("Mac")||["iPad","iPhone"].includes(t)}var fu=Object(l.memo)((function(e){var t=e.className,n=e.isFirst,r=e.item,o=e.onSelect,c=e.onHover,a=e.isDraggable,s=Object(j.a)(e,["className","isFirst","item","onSelect","onHover","isDraggable"]),d=Object(l.useRef)(!1),b=r.icon?{backgroundColor:r.icon.background,color:r.icon.foreground}:{},f=Object(l.useMemo)((function(){return[Object(p.createBlock)(r.name,r.initialAttributes,Object(p.createBlocksFromInnerBlocksTemplate)(r.innerBlocks))]}),[r.name,r.initialAttributes,r.initialAttributes]);return Object(l.createElement)(du,{isEnabled:a&&!r.disabled,blocks:f,icon:r.icon},(function(e){var a=e.draggable,f=e.onDragStart,p=e.onDragEnd;return Object(l.createElement)("div",{className:"block-editor-block-types-list__list-item",draggable:a,onDragStart:function(e){d.current=!0,f&&(c(null),f(e))},onDragEnd:function(e){d.current=!1,p&&p(e)}},Object(l.createElement)(lu,Object(i.a)({isFirst:n,className:u()("block-editor-block-types-list__item",t),disabled:r.isDisabled,onClick:function(e){e.preventDefault(),o(r,bu()?e.metaKey:e.ctrlKey),c(null)},onKeyDown:function(e){e.keyCode===ai.ENTER&&(e.preventDefault(),o(r,bu()?e.metaKey:e.ctrlKey),c(null))},onFocus:function(){d.current||c(r)},onMouseEnter:function(){d.current||c(r)},onMouseLeave:function(){return c(null)},onBlur:function(){return c(null)}},s),Object(l.createElement)("span",{className:"block-editor-block-types-list__item-icon",style:b},Object(l.createElement)(hl,{icon:r.icon,showColors:!0})),Object(l.createElement)("span",{className:"block-editor-block-types-list__item-title"},r.title)))}))}));var pu=Object(l.forwardRef)((function(e,t){var n=Object(l.useState)(!1),r=Object(wo.a)(n,2),o=r[0],c=r[1];return Object(l.useEffect)((function(){o&&Object(Rt.speak)(Object(k.__)("Use left and right arrow keys to move through blocks"))}),[o]),Object(l.createElement)("div",Object(i.a)({ref:t,role:"listbox","aria-orientation":"horizontal",onFocus:function(){c(!0)},onBlur:function(e){!e.currentTarget.contains(e.relatedTarget)&&c(!1)}},e))}));var mu=Object(l.forwardRef)((function(e,t){var n=Object(l.useContext)(cu);return Object(l.createElement)(m.__unstableCompositeGroup,Object(i.a)({state:n,role:"presentation",ref:t},e))}));var vu=function(e){var t=e.items,n=void 0===t?[]:t,r=e.onSelect,o=e.onHover,c=void 0===o?function(){}:o,i=e.children,a=e.label,s=e.isDraggable,u=void 0===s||s;return Object(l.createElement)(pu,{className:"block-editor-block-types-list","aria-label":a},function(e,t){for(var n=[],r=0,o=e.length;r<o;r+=t)n.push(e.slice(r,r+t));return n}(n,3).map((function(e,t){return Object(l.createElement)(mu,{key:t},e.map((function(e,n){return Object(l.createElement)(fu,{key:e.id,item:e,className:Object(p.getBlockMenuDefaultClassName)(e.id),onSelect:r,onHover:c,isDraggable:u,isFirst:0===t&&0===n})})))})),i)};var Ou=function(e){var t=e.title,n=e.icon,r=e.children;return Object(l.createElement)(l.Fragment,null,Object(l.createElement)("div",{className:"block-editor-inserter__panel-header"},Object(l.createElement)("h2",{className:"block-editor-inserter__panel-title"},t),Object(l.createElement)(m.Icon,{icon:n})),Object(l.createElement)("div",{className:"block-editor-inserter__panel-content"},r))};var gu=function(e){var t=e.children,n=Object(m.__unstableUseCompositeState)({shift:!0,wrap:"horizontal"});return Object(l.createElement)(cu.Provider,{value:n},t)};function hu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var ju=function(e){var t=e.rootClientId,n=e.onInsert,r=e.onHover,o=e.showMostUsedBlocks,c=Ol(t,n),i=Object(wo.a)(c,4),s=i[0],u=i[1],b=i[2],f=i[3],p=Object(l.useMemo)((function(){return Object(d.orderBy)(s,["frecency"],["desc"]).slice(0,6)}),[s]),m=Object(l.useMemo)((function(){return s.filter((function(e){return!e.category}))}),[s]),v=Object(l.useMemo)((function(){return Object(d.flow)((function(e){return e.filter((function(e){return e.category&&"reusable"!==e.category}))}),(function(e){return Object(d.groupBy)(e,"category")}))(s)}),[s]),O=Object(l.useMemo)((function(){var e=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hu(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},b);return Object.keys(b).forEach((function(t){e[t]=s.filter((function(e){return function(e){return e.name.split("/")[0]}(e)===t})),0===e[t].length&&delete e[t]})),e}),[s,b]);return Object(l.useEffect)((function(){return function(){return r(null)}}),[]),Object(l.createElement)(gu,null,Object(l.createElement)("div",null,o&&!!p.length&&Object(l.createElement)(Ou,{title:Object(k._x)("Most used","blocks")},Object(l.createElement)(vu,{items:p,onSelect:f,onHover:r,label:Object(k._x)("Most used","blocks")})),Object(d.map)(u,(function(e){var t=v[e.slug];return t&&t.length?Object(l.createElement)(Ou,{key:e.slug,title:e.title,icon:e.icon},Object(l.createElement)(vu,{items:t,onSelect:f,onHover:r,label:e.title})):null})),m.length>0&&Object(l.createElement)(Ou,{className:"block-editor-inserter__uncategorized-blocks-panel",title:Object(k.__)("Uncategorized")},Object(l.createElement)(vu,{items:m,onSelect:f,onHover:r,label:Object(k.__)("Uncategorized")})),Object(d.map)(b,(function(e,t){var n=O[t];return n&&n.length?Object(l.createElement)(Ou,{key:t,title:e.title,icon:e.icon},Object(l.createElement)(vu,{items:n,onSelect:f,onHover:r,label:e.title})):null}))))};var yu=function(e){var t,n=e.selectedCategory,r=e.patternCategories,o=e.onClickCategory,c=e.children;return Object(l.createElement)(l.Fragment,null,Object(l.createElement)("div",{className:u()("block-editor-inserter__panel-header","block-editor-inserter__panel-header-patterns")},Object(l.createElement)(m.SelectControl,{className:"block-editor-inserter__panel-dropdown",label:Object(k.__)("Filter patterns"),hideLabelFromVision:!0,value:n.name,onChange:function(e){o(r.find((function(t){return e===t.name})))},onBlur:function(e){null!=e&&e.relatedTarget||e.stopPropagation()},options:(t=[],r.map((function(e){return t.push({value:e.name,label:e.label})})),t)})),Object(l.createElement)("div",{className:"block-editor-inserter__panel-content"},c))},ku=n(51),_u=function(e,t){var n=Object(v.useSelect)((function(e){var n=e(jr),r=n.__experimentalGetAllowedPatterns,o=n.getSettings;return{patterns:r(t),patternCategories:o().__experimentalBlockPatternCategories}}),[t]),r=n.patternCategories,o=n.patterns,c=Object(v.useDispatch)(ku.store).createSuccessNotice;return[o,r,Object(l.useCallback)((function(t,n){e(Object(d.map)(n,(function(e){return Object(p.cloneBlock)(e)})),t.name),c(Object(k.sprintf)(Object(k.__)('Block pattern "%s" inserted.'),t.title),{type:"snackbar"})}),[])]};function Eu(e){var t=e.isDraggable,n=e.pattern,r=e.onClick,o=e.composite,c=n.name,a=n.viewportWidth,s=Object(v.useSelect)((function(e){return e(jr).__experimentalGetParsedPattern(c)}),[c]).blocks,u=Object(b.useInstanceId)(Eu),d="block-editor-block-patterns-list__item-description-".concat(u);return Object(l.createElement)(du,{isEnabled:t,blocks:s},(function(e){var t=e.draggable,c=e.onDragStart,u=e.onDragEnd;return Object(l.createElement)("div",{className:"block-editor-block-patterns-list__list-item","aria-label":n.title,"aria-describedby":n.description?d:void 0,draggable:t,onDragStart:c,onDragEnd:u},Object(l.createElement)(m.__unstableCompositeItem,Object(i.a)({role:"option",as:"div"},o,{className:"block-editor-block-patterns-list__item",onClick:function(){return r(n,s)}}),Object(l.createElement)(tu,{blocks:s,viewportWidth:a}),Object(l.createElement)("div",{className:"block-editor-block-patterns-list__item-title"},n.title),!!n.description&&Object(l.createElement)(m.VisuallyHidden,{id:d},n.description)))}))}function wu(){return Object(l.createElement)("div",{className:"block-editor-block-patterns-list__item is-placeholder"})}var Su=function(e){var t=e.isDraggable,n=e.blockPatterns,r=e.shownPatterns,o=e.onClickPattern,c=e.orientation,a=e.label,s=void 0===a?Object(k.__)("Block Patterns"):a,u=Object(m.__unstableUseCompositeState)({orientation:c});return Object(l.createElement)(m.__unstableComposite,Object(i.a)({},u,{role:"listbox",className:"block-editor-block-patterns-list","aria-label":s}),n.map((function(e){return r.includes(e)?Object(l.createElement)(Eu,{key:e.name,pattern:e,onClick:o,isDraggable:t,composite:u}):Object(l.createElement)(wu,{key:e.name})})))};function Cu(e){var t=e.rootClientId,n=e.onInsert,r=e.selectedCategory,o=e.onClickCategory,c=_u(n,t),i=Object(wo.a)(c,3),a=i[0],s=i[1],u=i[2],f=Object(l.useMemo)((function(){return s.filter((function(e){return a.some((function(t){var n;return null===(n=t.categories)||void 0===n?void 0:n.includes(e.name)}))}))}),[a,s]),p=r||f[0];Object(l.useEffect)((function(){a.some((function(e){return m(e)===1/0}))&&!f.find((function(e){return"uncategorized"===e.name}))&&f.push({name:"uncategorized",label:Object(k._x)("Uncategorized")})}),[f,a]);var m=Object(l.useCallback)((function(e){if(!e.categories||!e.categories.length)return 1/0;var t=Object(d.fromPairs)(f.map((function(e,t){return[e.name,t]})));return Math.min.apply(Math,Object(y.a)(e.categories.map((function(e){return void 0!==t[e]?t[e]:1/0}))))}),[f]),v=Object(l.useMemo)((function(){return a.filter((function(e){return"uncategorized"===p.name?m(e)===1/0:e.categories&&e.categories.includes(p.name)}))}),[a,p]),O=Object(l.useMemo)((function(){return v.sort((function(e,t){return m(e)-m(t)}))}),[v,m]),g=Object(b.useAsyncList)(O);return Object(l.createElement)(l.Fragment,null,!!v.length&&Object(l.createElement)(yu,{selectedCategory:p,patternCategories:f,onClickCategory:o},Object(l.createElement)(Su,{shownPatterns:g,blockPatterns:v,onClickPattern:u,label:p.label,orientation:"vertical",isDraggable:!0})))}var Bu=function(e){var t=e.rootClientId,n=e.onInsert,r=e.onClickCategory,o=e.selectedCategory;return Object(l.createElement)(Cu,{rootClientId:t,selectedCategory:o,onInsert:n,onClickCategory:r})},Iu=n(29);var xu=function(){return Object(l.createElement)("div",{className:"block-editor-inserter__no-results"},Object(l.createElement)(na.a,{className:"block-editor-inserter__no-results-icon",icon:gl.a}),Object(l.createElement)("p",null,Object(k.__)("No results found.")))};function Pu(e){var t=e.onHover,n=e.onInsert,r=e.rootClientId,o=Ol(r,n),c=Object(wo.a)(o,4),i=c[0],a=c[3],s=Object(l.useMemo)((function(){return i.filter((function(e){return"reusable"===e.category}))}),[i]);return 0===s.length?Object(l.createElement)(xu,null):Object(l.createElement)(Ou,{title:Object(k.__)("Reusable blocks")},Object(l.createElement)(vu,{items:s,onSelect:a,onHover:t,label:Object(k.__)("Reusable blocks")}))}var Tu=function(e){var t=e.rootClientId,n=e.onInsert,r=e.onHover;return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Pu,{onHover:r,onInsert:n,rootClientId:t}),Object(l.createElement)("div",{className:"block-editor-inserter__manage-reusable-blocks-container"},Object(l.createElement)("a",{className:"block-editor-inserter__manage-reusable-blocks",href:Object(Iu.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(k.__)("Manage Reusable blocks"))))},Nu=Object(m.createSlotFill)("__experimentalInserterMenuExtension"),Du=Nu.Fill,Au=Nu.Slot;Du.Slot=Au;var Lu=Du;var Ru=function(e){var t=e.rootClientId,n=e.insertionIndex,r=e.clientId,o=e.isAppender,c=e.onSelect,i=e.shouldFocusBlock,a=void 0===i||i,s=Object(v.useSelect)(jr).getSelectedBlock,u=Object(v.useSelect)((function(e){var c,i,a=e(jr),l=a.getBlockIndex,s=a.getBlockOrder,u=a.getBlockInsertionPoint;if(t||n||r||o)c=t,i=n||(r?l(r,c):s(c).length);else{var d=u();c=d.rootClientId,i=d.index}return{destinationRootClientId:c,destinationIndex:i}}),[t,n,r,o]),b=u.destinationRootClientId,f=u.destinationIndex,m=Object(v.useDispatch)(jr),O=m.replaceBlocks,g=m.insertBlocks,h=m.showInsertionPoint,j=m.hideInsertionPoint,y=Object(l.useCallback)((function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=s();!o&&r&&Object(p.isUnmodifiedDefaultBlock)(r)?O(r.clientId,e,null,a||n?0:null,t):g(e,f,b,!0,a||n?0:null,t);var i=Object(k.sprintf)(Object(k._n)("%d block added.","%d blocks added.",Object(d.castArray)(e).length),Object(d.castArray)(e).length);Object(Rt.speak)(i),c&&c()}),[o,s,O,g,b,f,c,a]),_=Object(l.useCallback)((function(e){e?h(b,f):j()}),[h,j,b,f]);return[b,y,_]};var Mu=function(e){var t=e.filterValue,n=e.onSelect,r=e.onHover,o=e.rootClientId,c=e.clientId,i=e.isAppender,a=e.maxBlockPatterns,s=e.maxBlockTypes,u=e.showBlockDirectory,f=void 0!==u&&u,p=e.isDraggable,v=void 0===p||p,O=e.shouldFocusBlock,g=void 0===O||O,h=Object(b.useDebounce)(Rt.speak,500),j=Ru({onSelect:n,rootClientId:o,clientId:c,isAppender:i,shouldFocusBlock:g}),y=Object(wo.a)(j,2),_=y[0],E=y[1],w=Ol(_,E),S=Object(wo.a)(w,4),C=S[0],B=S[1],I=S[2],x=S[3],P=_u(E,_),T=Object(wo.a)(P,3),N=T[0],D=T[2],A=Object(l.useMemo)((function(){var e=pl(Object(d.orderBy)(C,["frecency"],["desc"]),B,I,t);return void 0!==s?e.slice(0,s):e}),[t,C,B,I,s]),L=Object(l.useMemo)((function(){var e=ml(N,t);return void 0!==a?e.slice(0,a):e}),[t,N,a]);Object(l.useEffect)((function(){if(t){var e=A.length+L.length,n=Object(k.sprintf)(Object(k._n)("%d result found.","%d results found.",e),e);h(n)}}),[t,h]);var R=Object(b.useAsyncList)(L),M=!Object(d.isEmpty)(A)||!Object(d.isEmpty)(L);return Object(l.createElement)(gu,null,!f&&!M&&Object(l.createElement)(xu,null),!!A.length&&Object(l.createElement)(Ou,{title:Object(l.createElement)(m.VisuallyHidden,null,Object(k.__)("Blocks"))},Object(l.createElement)(vu,{items:A,onSelect:x,onHover:r,label:Object(k.__)("Blocks"),isDraggable:v})),!!A.length&&!!L.length&&Object(l.createElement)("div",{className:"block-editor-inserter__quick-inserter-separator"}),!!L.length&&Object(l.createElement)(Ou,{title:Object(l.createElement)(m.VisuallyHidden,null,Object(k.__)("Block Patterns"))},Object(l.createElement)("div",{className:"block-editor-inserter__quick-inserter-patterns"},Object(l.createElement)(Su,{shownPatterns:R,blockPatterns:L,onClickPattern:D,isDraggable:v}))),f&&Object(l.createElement)(Lu.Slot,{fillProps:{onSelect:x,onHover:r,filterValue:t,hasItems:M,rootClientId:_}},(function(e){return e.length?e:M?null:Object(l.createElement)(xu,null)})))},Fu={name:"blocks",title:Object(k.__)("Blocks")},Vu={name:"patterns",title:Object(k.__)("Patterns")},Hu={name:"reusable",title:Object(k.__)("Reusable")};var zu=function(e){var t=e.children,n=e.showPatterns,r=void 0!==n&&n,o=e.showReusableBlocks,c=void 0!==o&&o,i=e.onSelect,a=Object(l.useMemo)((function(){var e=[Fu];return r&&e.push(Vu),c&&e.push(Hu),e}),[Fu,r,Vu,c,Hu]);return Object(l.createElement)(m.TabPanel,{className:"block-editor-inserter__tabs",tabs:a,onSelect:i},t)};var Gu=function(e){var t=e.rootClientId,n=e.clientId,r=e.isAppender,o=e.__experimentalInsertionIndex,c=e.onSelect,i=e.showInserterHelpPanel,a=e.showMostUsedBlocks,s=e.shouldFocusBlock,u=void 0===s||s,d=Object(l.useState)(""),b=Object(wo.a)(d,2),f=b[0],p=b[1],O=Object(l.useState)(null),g=Object(wo.a)(O,2),h=g[0],j=g[1],y=Object(l.useState)(null),_=Object(wo.a)(y,2),E=_[0],w=_[1],S=Ru({rootClientId:t,clientId:n,isAppender:r,insertionIndex:o,shouldFocusBlock:u}),C=Object(wo.a)(S,3),B=C[0],I=C[1],x=C[2],P=Object(v.useSelect)((function(e){var t,n=e(jr),r=n.__experimentalGetAllowedPatterns,o=n.getSettings;return{showPatterns:!B||!!r(B).length,hasReusableBlocks:!(null===(t=o().__experimentalReusableBlocks)||void 0===t||!t.length)}}),[B]),T=P.showPatterns,N=P.hasReusableBlocks,D=Object(l.useCallback)((function(e,t,n){I(e,t,n),c()}),[I,c]),A=Object(l.useCallback)((function(e,t){I(e,{patternName:t}),c()}),[I,c]),L=Object(l.useCallback)((function(e){x(!!e),j(e)}),[x,j]),R=Object(l.useCallback)((function(e){w(e)}),[w]),M=Object(l.useMemo)((function(){return Object(l.createElement)(l.Fragment,null,Object(l.createElement)("div",{className:"block-editor-inserter__block-list"},Object(l.createElement)(ju,{rootClientId:B,onInsert:D,onHover:L,showMostUsedBlocks:a})),i&&Object(l.createElement)("div",{className:"block-editor-inserter__tips"},Object(l.createElement)(m.VisuallyHidden,{as:"h2"},Object(k.__)("A tip for using the block editor")),Object(l.createElement)(Us,null)))}),[B,D,L,f,a,i]),F=Object(l.useMemo)((function(){return Object(l.createElement)(Bu,{rootClientId:B,onInsert:A,onClickCategory:R,selectedCategory:E})}),[B,A,R,E]),V=Object(l.useMemo)((function(){return Object(l.createElement)(Tu,{rootClientId:B,onInsert:D,onHover:L})}),[B,D,L]),H=Object(l.useCallback)((function(e){return"blocks"===e.name?M:"patterns"===e.name?F:V}),[M,F,V]);return Object(l.createElement)("div",{className:"block-editor-inserter__menu"},Object(l.createElement)("div",{className:"block-editor-inserter__main-area"},Object(l.createElement)("div",{className:"block-editor-inserter__content"},Object(l.createElement)(qs,{onChange:function(e){h&&j(null),p(e)},value:f,label:Object(k.__)("Search for blocks and patterns"),placeholder:Object(k.__)("Search")}),!!f&&Object(l.createElement)(Mu,{filterValue:f,onSelect:c,onHover:L,rootClientId:t,clientId:n,isAppender:r,showBlockDirectory:!0,shouldFocusBlock:u}),!f&&(T||N)&&Object(l.createElement)(zu,{showPatterns:T,showReusableBlocks:N},H),!f&&!T&&!N&&M)),i&&h&&Object(l.createElement)(ou,{item:h}))};function Uu(e){var t=e.onSelect,n=e.rootClientId,r=e.clientId,o=e.isAppender,c=Object(l.useState)(""),i=Object(wo.a)(c,2),a=i[0],s=i[1],d=Ru({onSelect:t,rootClientId:n,clientId:r,isAppender:o}),b=Object(wo.a)(d,2),f=b[0],p=b[1],O=Ol(f,p),g=Object(wo.a)(O,1)[0],h=_u(p,f),j=Object(wo.a)(h,1)[0],y=j.length&&!!a,_=y&&j.length>6||g.length>6,E=Object(v.useSelect)((function(e){var t=e(jr),o=t.getSettings,c=t.getBlockIndex;return{setInserterIsOpened:o().__experimentalSetIsInserterOpened,blockIndex:c(r,n)}}),[r,n]),w=E.setInserterIsOpened,S=E.blockIndex;Object(l.useEffect)((function(){w&&w(!1)}),[w]);var C=Object(v.useDispatch)(jr).__unstableSetInsertionPoint;return Object(l.createElement)("div",{className:u()("block-editor-inserter__quick-inserter",{"has-search":_,"has-expand":w})},_&&Object(l.createElement)(qs,{value:a,onChange:function(e){s(e)},label:Object(k.__)("Search for blocks and patterns"),placeholder:Object(k.__)("Search")}),Object(l.createElement)("div",{className:"block-editor-inserter__quick-inserter-results"},Object(l.createElement)(Mu,{filterValue:a,onSelect:t,rootClientId:n,clientId:r,isAppender:o,maxBlockPatterns:y?2:0,maxBlockTypes:6,isDraggable:!1})),w&&Object(l.createElement)(m.Button,{className:"block-editor-inserter__quick-inserter-expand",onClick:function(){C(n,S),w(!0)},"aria-label":Object(k.__)("Browse all. This will open the main inserter panel in the editor toolbar.")},Object(k.__)("Browse all")))}function Wu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ga.a)(e);if(t){var o=Object(ga.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Oa.a)(this,n)}}var Ku=function(e){var t,n=e.onToggle,r=e.disabled,o=e.isOpen,c=e.blockTitle,a=e.hasSingleBlockType,s=e.toggleProps,u=void 0===s?{}:s;t=a?Object(k.sprintf)(Object(k._x)("Add %s","directly add the only allowed block"),c):Object(k._x)("Add block","Generic label for block inserter button");var d=u.onClick,b=Object(j.a)(u,["onClick"]);return Object(l.createElement)(m.Button,Object(i.a)({icon:zs.a,label:t,tooltipPosition:"bottom",onClick:function(e){n&&n(e),d&&d(e)},className:"block-editor-inserter__toggle","aria-haspopup":!a&&"true","aria-expanded":!a&&o,disabled:r},b))},qu=function(e){Object(va.a)(n,e);var t=Wu(n);function n(){var e;return Object(fa.a)(this,n),(e=t.apply(this,arguments)).onToggle=e.onToggle.bind(Object(ma.a)(e)),e.renderToggle=e.renderToggle.bind(Object(ma.a)(e)),e.renderContent=e.renderContent.bind(Object(ma.a)(e)),e}return Object(pa.a)(n,[{key:"onToggle",value:function(e){var t=this.props.onToggle;t&&t(e)}},{key:"renderToggle",value:function(e){var t=e.onToggle,n=e.isOpen,r=this.props,o=r.disabled,c=r.blockTitle,i=r.hasSingleBlockType,a=r.toggleProps,l=r.hasItems,s=r.renderToggle,u=void 0===s?Ku:s;return u({onToggle:t,isOpen:n,disabled:o||!l,blockTitle:c,hasSingleBlockType:i,toggleProps:a})}},{key:"renderContent",value:function(e){var t=e.onClose,n=this.props,r=n.rootClientId,o=n.clientId,c=n.isAppender,i=n.showInserterHelpPanel;return n.__experimentalIsQuick?Object(l.createElement)(Uu,{onSelect:function(){t()},rootClientId:r,clientId:o,isAppender:c}):Object(l.createElement)(Gu,{onSelect:function(){t()},rootClientId:r,clientId:o,isAppender:c,showInserterHelpPanel:i})}},{key:"render",value:function(){var e=this.props,t=e.position,n=e.hasSingleBlockType,r=e.insertOnlyAllowedBlock,o=e.__experimentalIsQuick,c=e.onSelectOrClose;return n?this.renderToggle({onToggle:r}):Object(l.createElement)(m.Dropdown,{className:"block-editor-inserter",contentClassName:u()("block-editor-inserter__popover",{"is-quick":o}),position:t,onToggle:this.onToggle,expandOnMobile:!0,headerTitle:Object(k.__)("Add a block"),renderToggle:this.renderToggle,renderContent:this.renderContent,onClose:c})}}]),n}(l.Component),$u=Object(b.compose)([Object(v.withSelect)((function(e,t){var n=t.clientId,r=t.rootClientId,o=e(jr),c=o.getBlockRootClientId,i=o.hasInserterItems,a=o.__experimentalGetAllowedBlocks,l=e(p.store).getBlockVariations,s=a(r=r||c(n)||void 0),u=1===Object(d.size)(s)&&0===Object(d.size)(l(s[0].name,"inserter")),b=!1;return u&&(b=s[0]),{hasItems:i(r),hasSingleBlockType:u,blockTitle:b?b.title:"",allowedBlockType:b,rootClientId:r}})),Object(v.withDispatch)((function(e,t,n){var r=n.select;return{insertOnlyAllowedBlock:function(){var n=t.rootClientId,o=t.clientId,c=t.isAppender,i=t.hasSingleBlockType,a=t.allowedBlockType,l=t.onSelectOrClose;if(i){(0,e(jr).insertBlock)(Object(p.createBlock)(a.name),function(){var e=r(jr),t=e.getBlockIndex,i=e.getBlockSelectionEnd,a=e.getBlockOrder,l=e.getBlockRootClientId;if(o)return t(o,n);var s=i();return!c&&s&&l(s)===n?t(s,n)+1:a(n).length}(),n),l&&l();var s=Object(k.sprintf)(Object(k.__)("%s block added"),a.title);Object(Rt.speak)(s)}}}})),Object(b.ifCondition)((function(e){var t=e.hasItems,n=e.isAppender,r=e.rootClientId,o=e.clientId;return t||!n&&!r&&!o}))])(qu);var Yu=Object(b.compose)(Object(v.withSelect)((function(e,t){var n=e(jr),r=n.getBlockCount,o=n.getBlockName,c=n.isBlockValid,i=n.getSettings,a=n.getTemplateLock,l=!r(t.rootClientId),s=o(t.lastBlockClientId)===Object(p.getDefaultBlockName)(),u=c(t.lastBlockClientId),d=i().bodyPlaceholder;return{isVisible:l||!s||!u,showPrompt:l,isLocked:!!a(t.rootClientId),placeholder:d}})),Object(v.withDispatch)((function(e,t){var n=e(jr),r=n.insertDefaultBlock,o=n.startTyping;return{onAppend:function(){var e=t.rootClientId;r(void 0,e),o()}}})))((function(e){var t=e.isLocked,n=e.isVisible,r=e.onAppend,o=e.showPrompt,c=e.placeholder,i=e.rootClientId;if(t||!n)return null;var a=Object(Hs.decodeEntities)(c)||Object(k.__)("Type / to choose a block");return Object(l.createElement)("div",{"data-root-client-id":i||"",className:"wp-block block-editor-default-block-appender"},Object(l.createElement)(ys.a,{role:"button","aria-label":Object(k.__)("Add block"),className:"block-editor-default-block-appender__content",readOnly:!0,onFocus:r,value:o?a:""}),Object(l.createElement)($u,{rootClientId:i,position:"bottom right",isAppender:!0,__experimentalIsQuick:!0}))}));var Xu=Object(l.forwardRef)((function(e,t){var n=e.rootClientId,r=e.className,o=e.onFocus,c=e.tabIndex;return Object(l.createElement)($u,{position:"bottom center",rootClientId:n,__experimentalIsQuick:!0,renderToggle:function(e){var n,i=e.onToggle,a=e.disabled,s=e.isOpen,d=e.blockTitle,b=e.hasSingleBlockType;n=b?Object(k.sprintf)(Object(k._x)("Add %s","directly add the only allowed block"),d):Object(k._x)("Add block","Generic label for block inserter button");var f=!b,p=Object(l.createElement)(m.Button,{ref:t,onFocus:o,tabIndex:c,className:u()(r,"block-editor-button-block-appender"),onClick:i,"aria-haspopup":f?"true":void 0,"aria-expanded":f?s:void 0,disabled:a,label:n},!b&&Object(l.createElement)(m.VisuallyHidden,{as:"span"},n),Object(l.createElement)(na.a,{icon:zs.a}));return(f||b)&&(p=Object(l.createElement)(m.Tooltip,{text:n},p)),p},isAppender:!0})}));Object(l.createContext)();function Qu(e){e.stopPropagation()}var Zu=Object(v.withSelect)((function(e,t){var n=t.rootClientId,r=e(jr),o=r.getBlockOrder,c=r.canInsertBlockType,i=r.getTemplateLock,a=r.getSelectedBlockClientId;return{isLocked:!!i(n),blockClientIds:o(n),canInsertDefaultBlock:c(Object(p.getDefaultBlockName)(),n),selectedBlockClientId:a()}}))((function(e){var t,n=e.blockClientIds,r=e.rootClientId,o=e.canInsertDefaultBlock,c=e.isLocked,i=e.renderAppender,a=e.className,s=e.selectedBlockClientId,b=e.tagName,f=void 0===b?"div":b;if(c||!1===i)return null;if(i)t=Object(l.createElement)(i,null);else{var p=!r,m=s===r,v=s&&!n.includes(s);if(!p&&!m&&(!s||v))return null;t=o?Object(l.createElement)(Yu,{rootClientId:r,lastBlockClientId:Object(d.last)(n)}):Object(l.createElement)(Xu,{rootClientId:r,className:"block-list-appender__toggle"})}return Object(l.createElement)(f,{tabIndex:-1,onFocus:Qu,className:u()("block-list-appender","wp-block",a)},t)}));function Ju(e,t,n,r,o,c,i){return function(a){var l=function(e){var t={srcRootClientId:null,srcClientIds:null,srcIndex:null,type:null,blocks:null};if(!e.dataTransfer)return t;try{t=Object.assign(t,JSON.parse(e.dataTransfer.getData("wp-blocks")))}catch(e){return t}return t}(a),s=l.srcRootClientId,u=l.srcClientIds,d=l.type,b=l.blocks;if("inserter"===d&&(i(),c(b,t,e,!0,null)),"block"===d){var f=n(u[0],s);if(s===e&&f===t)return;if(u.includes(e)||r(u).some((function(t){return t===e})))return;var p=s===e,m=u.length;o(u,s,e,p&&f<t?t-m:t)}}}function ed(e,t){var n=Object(v.useSelect)((function(e){return e(jr).getSettings().mediaUpload}),[]),r=Object(v.useSelect)(jr),o=r.canInsertBlockType,c=r.getBlockIndex,i=r.getClientIdsOfDescendants,a=Object(v.useDispatch)(jr),l=a.insertBlocks,s=a.moveBlocksToPosition,u=a.updateBlockAttributes,d=Ju(e,t,c,i,s,l,a.clearSelectedBlock),b=function(e,t,n,r,o,c){return function(i){if(n){var a=Object(p.findTransform)(Object(p.getBlockTransforms)("from"),(function(t){return"files"===t.type&&o(t.blockName,e)&&t.isMatch(i)}));if(a){var l=a.transform(i,r);c(l,t,e)}}}}(e,t,n,u,o,l),f=function(e,t,n){return function(r){var o=Object(p.pasteHandler)({HTML:r,mode:"BLOCKS"});o.length&&n(o,t,e)}}(e,t,l);return function(e){var t=Object(Wl.getFilesFromDataTransfer)(e.dataTransfer),n=e.dataTransfer.getData("text/html");t.length?b(t):n?f(n):d(e)}}function td(e,t,n){var r,o="top"===n||"bottom"===n,c=e.x,i=e.y,a=o?c:i,l=o?i:c,s=o?t.left:t.top,u=o?t.right:t.bottom,d=t[n];return r=a>=s&&a<=u?a:a<u?s:u,Math.sqrt(Math.pow(a-r,2)+Math.pow(l-d,2))}function nd(e,t){var n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["top","bottom","left","right"];return o.forEach((function(o){var c=td(e,t,o);(void 0===n||c<n)&&(n=c,r=o)})),[n,r]}function rd(e,t,n){var r,o,c="horizontal"===n?["left","right"]:["top","bottom"];return e.forEach((function(n,i){if(n.classList.contains("wp-block")){var a=n.getBoundingClientRect(),l=nd(t,a,c),s=Object(wo.a)(l,2),u=s[0],d=s[1];if(void 0===o||u<o){var b="bottom"===d||"right"===d,f=b?1:0,p=b&&e[i+1]&&e[i+1].classList.contains("is-dragging");o=u,r=i+(f+=p?1:0)}}})),r}function od(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.rootClientId,n=void 0===t?"":t,r=Object(l.useState)(null),o=Object(wo.a)(r,2),c=o[0],i=o[1],a=Object(v.useSelect)((function(e){var t,r=e(jr),o=r.getBlockListSettings;return{isLockedAll:"all"===(0,r.getTemplateLock)(n),orientation:null===(t=o(n))||void 0===t?void 0:t.orientation}}),[n]),s=a.isLockedAll,u=a.orientation,d=Object(v.useDispatch)("core/block-editor"),f=d.showInsertionPoint,p=d.hideInsertionPoint,m=ed(n,c),O=Object(b.useThrottle)(Object(l.useCallback)((function(e,t){var r=rd(Array.from(t.children),{x:e.clientX,y:e.clientY},u);i(void 0===r?0:r),null!==r&&f(n,r)}),[]),200);return Object(b.__experimentalUseDropZone)({isDisabled:s,onDrop:m,onDragOver:function(e){O(e,e.currentTarget)},onDragEnd:function(){O.cancel(),p(),i(null)}})}function cd(e){var t=e.clientId,n=e.rootClientId,r=e.setIsInserterForced;return Object(l.createElement)("div",{className:u()("block-editor-block-list__insertion-point-inserter")},Object(l.createElement)($u,{position:"bottom center",clientId:t,rootClientId:n,__experimentalIsQuick:!0,onToggle:r,onSelectOrClose:function(){return r(!1)}}))}function id(e){var t=e.clientId,n=e.selectedRootClientId,r=e.isInserterShown,o=e.isInserterForced,c=e.setIsInserterForced,i=e.containerRef,a=e.showInsertionPoint,s=Object(v.useDispatch)(jr).selectBlock,d=Object(l.useRef)(),b=Object(v.useSelect)((function(e){var r,o=e(jr),c=o.getBlockOrder,a=o.getBlockRootClientId,l=o.getBlockListSettings,s=o.getMultiSelectedBlockClientIds,u=o.getSelectedBlockClientId,d=o.hasMultiSelection,b=o.getSettings,f=i.current.ownerDocument,p=t?a(t):n,m=c(p);if(!m.length)return{};var v=t||m[m.length-1],O=v===m[m.length-1]?null:m[m.indexOf(v)+1],g=b().hasReducedUI,h=s(),j=u(),y=(null===(r=l(p))||void 0===r?void 0:r.orientation)||"vertical";return{previousElement:Sc(v,f),nextElement:Sc(O,f),nextClientId:O,isHidden:g||(d()?O&&h.includes(O):O&&"vertical"===y&&O===j),orientation:y,rootClientId:p}}),[t,n]),f=b.previousElement,p=b.nextElement,O=b.orientation,g=b.isHidden,h=b.nextClientId,j=b.rootClientId,y=Object(l.useMemo)((function(){if(!f)return{};var e=f.getBoundingClientRect(),t=p?p.getBoundingClientRect():null;if("vertical"===O)return{width:f.offsetWidth,height:t?t.top-e.bottom:0};var n=0;return p&&(n=Object(k.isRTL)()?e.left-t.right:t.left-e.right),{width:n,height:f.offsetHeight}}),[f,p]),_=Object(l.useCallback)((function(){var e=f.getBoundingClientRect(),t=p?p.getBoundingClientRect():null;return"vertical"===O?Object(k.isRTL)()?{top:e.bottom,left:e.right,right:e.left,bottom:t?t.top:e.bottom}:{top:e.bottom,left:e.left,right:e.right,bottom:t?t.top:e.bottom}:Object(k.isRTL)()?{top:e.top,left:t?t.right:e.left,right:e.left,bottom:e.bottom}:{top:e.top,left:e.right,right:t?t.left:e.right,bottom:e.bottom}}),[f,p]);if(!f)return null;var E=u()("block-editor-block-list__insertion-point","is-"+O);var w=!g&&p&&(r||o),S=w||!g&&a;return Object(l.createElement)(m.Popover,{noArrow:!0,animate:!1,getAnchorRect:_,focusOnMount:!1,className:"block-editor-block-list__insertion-point-popover",__unstableSlotName:"block-toolbar"},Object(l.createElement)("div",{ref:d,tabIndex:-1,onClick:function(e){e.target===d.current&&h&&s(h,-1)},onFocus:function(e){e.target!==d.current&&c(!0)},className:u()(E,{"is-with-inserter":w}),style:y},S&&Object(l.createElement)("div",{className:"block-editor-block-list__insertion-point-indicator"}),w&&Object(l.createElement)(cd,{rootClientId:j,clientId:h,setIsInserterForced:c})))}var ad=function(e){var t,n,r,o,c=e.children,i=e.clientIds,a=e.cloneClassname,s=e.onDragStart,u=e.onDragEnd,d=e.elementId,b=Object(v.useSelect)((function(e){var t,n=e(jr),r=n.getBlockRootClientId,o=n.getTemplateLock,c=n.getBlockName,a=r(i[0]),l=a?o(a):null,s=c(i[0]);return{srcRootClientId:a,isDraggable:"all"!==l,icon:null===(t=Object(p.getBlockType)(s))||void 0===t?void 0:t.icon}}),[i]),f=b.srcRootClientId,O=b.isDraggable,g=b.icon,h=Object(l.useRef)(!1),j=(t=Object(l.useRef)(null),n=Object(l.useRef)(null),r=Object(l.useRef)(null),o=Object(l.useRef)(null),Object(l.useEffect)((function(){return function(){o.current&&(clearInterval(o.current),o.current=null)}}),[]),[Object(l.useCallback)((function(e){t.current=e.clientY,r.current=Object(Wl.getScrollContainer)(e.target),o.current=setInterval((function(){if(r.current&&n.current){var e=r.current.scrollTop+n.current;r.current.scroll({top:e})}}),25)}),[]),Object(l.useCallback)((function(e){if(r.current){var o=r.current.offsetHeight,c=t.current-r.current.offsetTop,i=e.clientY-r.current.offsetTop;if(e.clientY>c){var a=Math.max(o-c-50,0),l=Math.max(i-c-50,0)/a;n.current=25*l}else if(e.clientY<c){var s=Math.max(c-50,0),u=Math.max(c-i-50,0)/s;n.current=-25*u}else n.current=0}}),[]),function(){t.current=null,r.current=null,o.current&&(clearInterval(o.current),o.current=null)}]),y=Object(wo.a)(j,3),k=y[0],_=y[1],E=y[2],w=Object(v.useDispatch)(jr),S=w.startDraggingBlocks,C=w.stopDraggingBlocks;if(Object(l.useEffect)((function(){return function(){h.current&&C()}}),[]),!O)return c({isDraggable:!1});var B={type:"block",srcClientIds:i,srcRootClientId:f};return Object(l.createElement)(m.Draggable,{cloneClassname:a,elementId:d,__experimentalTransferDataType:"wp-blocks",transferData:B,onDragStart:function(e){S(i),h.current=!0,k(e),s&&s()},onDragOver:_,onDragEnd:function(){C(),h.current=!1,E(),u&&u()},__experimentalDragComponent:Object(l.createElement)(uu,{count:i.length,icon:g})},(function(e){var t=e.onDraggableStart,n=e.onDraggableEnd;return c({draggable:!0,onDragStart:t,onDragEnd:n})}))};var ld=function(e){var t=e.clientId,n=e.rootClientId,r=e.blockElement,o=Sl(t),c=Object(v.useSelect)((function(e){var r,o=e(jr),c=o.__unstableGetBlockWithoutInnerBlocks,i=o.getBlockIndex,a=o.hasBlockMovingClientId,l=o.getBlockListSettings,s=i(t,n),u=c(t);return{index:s,name:u.name,attributes:u.attributes,blockMovingMode:a(),orientation:null===(r=l(n))||void 0===r?void 0:r.orientation}}),[t,n]),a=c.index,s=c.name,d=c.attributes,b=c.blockMovingMode,f=c.orientation,O=Object(v.useDispatch)(jr),g=O.setNavigationMode,h=O.removeBlock,j=Object(l.useRef)();Object(l.useEffect)((function(){j.current.focus(),window.navigator.platform.indexOf("Win")>-1&&Object(Rt.speak)(R)}),[]);var y=Object(v.useSelect)(jr),_=y.hasBlockMovingClientId,E=y.getBlockIndex,w=y.getBlockRootClientId,S=y.getClientIdsOfDescendants,C=y.getSelectedBlockClientId,B=y.getMultiSelectedBlocksEndClientId,I=y.getPreviousBlockClientId,x=y.getNextBlockClientId,P=Object(v.useDispatch)(jr),T=P.selectBlock,N=P.clearSelectedBlock,D=P.setBlockMovingClientId,A=P.moveBlockToPosition,L=Object(p.getBlockType)(s),R=Object(p.__experimentalGetAccessibleBlockLabel)(L,d,a+1,f),M=u()("block-editor-block-list__block-selection-button",{"is-block-moving-mode":!!b}),F=Object(k.__)("Drag");return Object(l.createElement)("div",{className:M},Object(l.createElement)(m.Flex,{justify:"center",className:"block-editor-block-list__block-selection-button__content"},Object(l.createElement)(m.FlexItem,null,Object(l.createElement)(hl,{icon:null==o?void 0:o.icon,showColors:!0})),Object(l.createElement)(m.FlexItem,null,Object(l.createElement)(ad,{clientIds:[t]},(function(e){return Object(l.createElement)(m.Button,Object(i.a)({icon:su,className:"block-selection-button_drag-handle","aria-hidden":"true",label:F,tabIndex:"-1"},e))}))),Object(l.createElement)(m.FlexItem,null,Object(l.createElement)(m.Button,{ref:j,onClick:function(){return g(!1)},onKeyDown:function(e){var n=e.keyCode,o=n===ai.UP,c=n===ai.DOWN,i=n===ai.LEFT,a=n===ai.RIGHT,l=n===ai.TAB,s=n===ai.ESCAPE,u=n===ai.ENTER,d=n===ai.SPACE,b=e.shiftKey;if(n===ai.BACKSPACE||n===ai.DELETE)return h(t),void e.preventDefault();var f,p=C(),m=B(),v=I(m||p),O=x(m||p),g=l&&b||o,j=l&&!b||c,y=i,k=a;if(g)f=v;else if(j)f=O;else if(y){var P;f=null!==(P=w(p))&&void 0!==P?P:p}else if(k){var L;f=null!==(L=S([p])[0])&&void 0!==L?L:p}var R=_();if(s&&R&&D(null),(u||d)&&R){var M=w(R),F=w(p),V=E(R,M),H=E(p,F);V<H&&M===F&&(H-=1),A(R,M,F,H),T(R),D(null)}if(j||g||y||k)if(f)e.preventDefault(),T(f);else if(l&&p){var z;j?(z=Wl.focus.tabbable.findNext(r))||(z=r.ownerDocument.defaultView.frameElement,z=Wl.focus.tabbable.findNext(z)):z=Wl.focus.tabbable.findPrevious(r),z&&(e.preventDefault(),z.focus(),N())}},label:R,className:"block-selection-button_select-button"},Object(l.createElement)(Cl,{clientId:t})))))};function sd(e){return Array.from(e.querySelectorAll("[data-toolbar-item]"))}function ud(e,t,n,r,o){var c=Object(l.useState)(t),i=Object(wo.a)(c,1)[0],a=Object(l.useState)(r),s=Object(wo.a)(a,1)[0],u=Object(l.useCallback)((function(){var t,n,r;t=e.current,n=Wl.focus.tabbable.find(t),(r=Object(wo.a)(n,1)[0])&&r.focus()}),[]);Object(Vl.useShortcut)("core/block-editor/focus-toolbar",u,{bindGlobal:!0,eventName:"keydown"}),Object(l.useEffect)((function(){i&&u()}),[n,i,u]),Object(l.useEffect)((function(){var t=0;return s&&!i&&(t=window.requestAnimationFrame((function(){var t,n=sd(e.current),r=s||0;n[r]&&(t=e.current).contains(t.ownerDocument.activeElement)&&n[r].focus()}))),function(){if(window.cancelAnimationFrame(t),o){var n=sd(e.current).findIndex((function(e){return 0===e.tabIndex}));o(n)}}}),[s,i])}var dd=function(e){var t=e.children,n=e.focusOnMount,r=e.__experimentalInitialIndex,o=e.__experimentalOnIndexChange,c=Object(j.a)(e,["children","focusOnMount","__experimentalInitialIndex","__experimentalOnIndexChange"]),a=Object(l.useRef)(),s=function(e){var t=Object(l.useState)(!0),n=Object(wo.a)(t,2),r=n[0],o=n[1],c=Object(l.useCallback)((function(){var t=Wl.focus.tabbable.find(e.current),n=!t.some((function(e){return!("toolbarItem"in e.dataset)}));n||Ft()("Using custom components as toolbar controls",{since:"5.6",alternative:"ToolbarItem or ToolbarButton components",link:"https://developer.wordpress.org/block-editor/components/toolbar-button/#inside-blockcontrols"}),o(n)}),[]);return Object(l.useLayoutEffect)((function(){var t=new window.MutationObserver(c);return t.observe(e.current,{childList:!0,subtree:!0}),function(){return t.disconnect()}}),[r]),r}(a);return ud(a,n,s,r,o),s?Object(l.createElement)(m.Toolbar,Object(i.a)({label:c["aria-label"],ref:a},c),t):Object(l.createElement)(m.NavigableMenu,Object(i.a)({orientation:"horizontal",role:"toolbar",ref:a},c),t)};var bd=Object(v.withSelect)((function(e,t){var n,r=t.clientIds,o=e(jr),c=o.getBlock,i=o.getBlockIndex,a=o.getBlockListSettings,l=o.getTemplateLock,s=o.getBlockOrder,u=o.getBlockRootClientId,b=Object(d.castArray)(r),f=Object(d.first)(b),m=c(f),v=u(Object(d.first)(b)),O=i(f,v),g=0===O,h=i(Object(d.last)(b),v)===s(v).length-1;return{blockType:m?Object(p.getBlockType)(m.name):null,isLocked:"all"===l(v),rootClientId:v,firstIndex:O,isFirst:g,isLast:h,orientation:null===(n=a(v))||void 0===n?void 0:n.orientation}}))((function(e){var t=e.isFirst,n=e.isLast,r=e.clientIds,o=e.isLocked,c=e.isHidden,a=e.rootClientId,s=e.orientation,d=e.hideDragHandle,b=Object(l.useState)(!1),f=Object(wo.a)(b,2),p=f[0],v=f[1],O=function(){return v(!0)},g=function(){return v(!1)};if(o||t&&n&&!a)return null;var h=Object(k.__)("Drag");return Object(l.createElement)("div",{className:u()("block-editor-block-mover",{"is-visible":p||!c,"is-horizontal":"horizontal"===s})},!d&&Object(l.createElement)(ad,{clientIds:r,cloneClassname:"block-editor-block-mover__drag-clone"},(function(e){return Object(l.createElement)(m.Button,Object(i.a)({icon:su,className:"block-editor-block-mover__drag-handle","aria-hidden":"true",label:h,tabIndex:"-1"},e))})),Object(l.createElement)(m.ToolbarGroup,{className:"block-editor-block-mover__move-button-container"},Object(l.createElement)(m.ToolbarItem,{onFocus:O,onBlur:g},(function(e){return Object(l.createElement)(cs,Object(i.a)({clientIds:r},e))})),Object(l.createElement)(m.ToolbarItem,{onFocus:O,onBlur:g},(function(e){return Object(l.createElement)(is,Object(i.a)({clientIds:r},e))}))))})),fd=window,pd=fd.clearTimeout,md=fd.setTimeout;function vd(e){var t=e.ref,n=e.isFocused,r=e.debounceTimeout,o=void 0===r?200:r,c=e.onChange,i=void 0===c?d.noop:c,a=Object(l.useState)(!1),s=Object(wo.a)(a,2),u=s[0],b=s[1],f=Object(l.useRef)(),p=function(e){null!=t&&t.current&&b(e),i(e)},m=function(){var e=(null==t?void 0:t.current)&&t.current.matches(":hover");return!n&&!e},v=function(){var e=f.current;e&&pd&&pd(e)};return Object(l.useEffect)((function(){return function(){return v()}}),[]),{showMovers:u,debouncedShowMovers:function(e){e&&e.stopPropagation(),v(),u||p(!0)},debouncedHideMovers:function(e){e&&e.stopPropagation(),v(),f.current=md((function(){m()&&p(!1)}),o)}}}function Od(e){var t=e.ref,n=e.debounceTimeout,r=void 0===n?200:n,o=e.onChange,c=void 0===o?d.noop:o,i=Object(l.useState)(!1),a=Object(wo.a)(i,2),s=a[0],u=a[1],b=vd({ref:t,debounceTimeout:r,isFocused:s,onChange:c}),f=b.showMovers,p=b.debouncedShowMovers,m=b.debouncedHideMovers,v=Object(l.useRef)(!1),O=function(){return(null==t?void 0:t.current)&&t.current.contains(t.current.ownerDocument.activeElement)};return Object(l.useEffect)((function(){var e=t.current,n=function(){O()&&(u(!0),p())},r=function(){O()||(u(!1),m())};return e&&!v.current&&(e.addEventListener("focus",n,!0),e.addEventListener("blur",r,!0),v.current=!0),function(){e&&(e.removeEventListener("focus",n),e.removeEventListener("blur",r))}}),[t,v,u,p,m]),{showMovers:f,gestures:{onMouseMove:p,onMouseLeave:m}}}function gd(){var e=Object(v.useDispatch)(jr),t=e.selectBlock,n=e.toggleBlockHighlight,r=Object(v.useSelect)((function(e){var t=e(jr),n=t.getBlockName,r=t.getBlockParents,o=t.getSelectedBlockClientId,c=t.getSettings,i=e(p.store).hasBlockSupport,a=r(o()),l=a[a.length-1],s=n(l),u=Object(p.getBlockType)(s),d=c();return{firstParentClientId:l,shouldHide:!i(u,"__experimentalParentSelector",!0),hasReducedUI:d.hasReducedUI}}),[]),o=r.firstParentClientId,c=r.shouldHide,a=r.hasReducedUI,s=Sl(o),u=Object(l.useRef)(),d=Od({ref:u,onChange:function(e){e&&a||n(o,e)}}).gestures;return c||void 0===o?null:Object(l.createElement)("div",Object(i.a)({className:"block-editor-block-parent-selector",key:o,ref:u},d),Object(l.createElement)(m.ToolbarButton,{className:"block-editor-block-parent-selector__button",onClick:function(){return t(o)},label:Object(k.sprintf)(Object(k.__)("Select %s"),s.title),showTooltip:!0,icon:Object(l.createElement)(hl,{icon:s.icon})}))}var hd=Object(l.createElement)(Br.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Br.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zm-13.5 0V4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1v11.8c0 .1-.1.1-.1.1H4.6l-.1-.1z"}));function jd(e){var t=e.blocks;return Object(l.createElement)("div",{className:"block-editor-block-switcher__popover__preview__parent"},Object(l.createElement)("div",{className:"block-editor-block-switcher__popover__preview__container"},Object(l.createElement)(m.Popover,{className:"block-editor-block-switcher__preview__popover",position:"bottom right",focusOnMount:!1},Object(l.createElement)("div",{className:"block-editor-block-switcher__preview"},Object(l.createElement)("div",{className:"block-editor-block-switcher__preview-title"},Object(k.__)("Preview")),Object(l.createElement)(tu,{viewportWidth:500,blocks:t})))))}var yd=function(e){var t=e.className,n=e.possibleBlockTransformations,r=e.onSelect,o=e.blocks,c=Object(l.useState)(),i=Object(wo.a)(c,2),a=i[0],s=i[1];return Object(l.createElement)(m.MenuGroup,{label:Object(k.__)("Transform to"),className:t},a&&Object(l.createElement)(jd,{blocks:Object(p.switchToBlockType)(o,a)}),n.map((function(e){var t=e.name,n=e.icon,o=e.title,c=e.isDisabled;return Object(l.createElement)(m.MenuItem,{key:t,className:Object(p.getBlockMenuDefaultClassName)(t),onClick:function(e){e.preventDefault(),r(t)},disabled:c,onMouseLeave:function(){return s(null)},onMouseEnter:function(){return s(t)}},Object(l.createElement)(hl,{icon:n,showColors:!0}),o)})))};function kd(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return _d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _d(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function _d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ed(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ed(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ed(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Sd={};function Cd(e){var t=e.genericPreviewBlock,n=e.style,r=e.isActive,o=e.onBlur,c=e.onHover,i=e.onSelect,a=e.styleClassName,s=e.itemRole,d=Object(l.useMemo)((function(){return wd(wd({},t),{},{attributes:wd(wd({},t.attributes),{},{className:a})})}),[t,a]);return Object(l.createElement)("div",{key:n.name,className:u()("block-editor-block-styles__item",{"is-active":r}),onClick:function(){return i()},onKeyDown:function(e){ai.ENTER!==e.keyCode&&ai.SPACE!==e.keyCode||(e.preventDefault(),i())},onMouseEnter:c,onMouseLeave:o,role:s||"button",tabIndex:"0","aria-label":n.label||n.name},Object(l.createElement)("div",{className:"block-editor-block-styles__item-preview"},Object(l.createElement)(tu,{viewportWidth:500,blocks:d})),Object(l.createElement)("div",{className:"block-editor-block-styles__item-label"},n.label||n.name))}var Bd=function(e){var t=e.clientId,n=e.onSwitch,r=void 0===n?d.noop:n,o=e.onHoverClassName,c=void 0===o?d.noop:o,i=e.itemRole,a=Object(v.useSelect)((function(e){var n=(0,e(jr).getBlock)(t);return n?{block:n,type:Object(p.getBlockType)(n.name),styles:(0,e(p.store).getBlockStyles)(n.name),className:n.attributes.className||""}:Sd}),[t]),s=a.styles,u=a.block,b=a.type,f=a.className,m=Object(v.useDispatch)(jr).updateBlockAttributes,O=function(e,t){return Object(l.useMemo)((function(){var n=null==t?void 0:t.example,r=null==t?void 0:t.name;return n&&r?Object(p.getBlockFromExample)(r,{attributes:n.attributes,innerBlocks:n.innerBlocks}):e?Object(p.cloneBlock)(e):void 0}),[null!=t&&t.example?null==e?void 0:e.name:e,t])}(u,b);if(!s||0===s.length)return null;var g=Object(d.find)(s,"isDefault")?s:[{name:"default",label:Object(k._x)("Default","block style"),isDefault:!0}].concat(Object(y.a)(s)),h=function(e,t){var n,r=kd(new Bi.a(t).values());try{for(r.s();!(n=r.n()).done;){var o=n.value;if(-1!==o.indexOf("is-style-")){var c=o.substring(9),i=Object(d.find)(e,{name:c});if(i)return i}}}catch(e){r.e(e)}finally{r.f()}return Object(d.find)(e,"isDefault")}(g,f);return Object(l.createElement)("div",{className:"block-editor-block-styles"},g.map((function(e){var n=function(e,t,n){var r=new Bi.a(e);return t&&r.remove("is-style-"+t.name),r.add("is-style-"+n.name),r.value}(f,h,e);return Object(l.createElement)(Cd,{genericPreviewBlock:O,className:f,isActive:h===e,key:e.name,onSelect:function(){m(t,{className:n}),c(null),r()},onBlur:function(){return c(null)},onHover:function(){return c(n)},style:e,styleClassName:n,itemRole:i})})))};function Id(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Id(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Id(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pd(e){var t=e.hoveredBlock,n=e.onSwitch,r=t.name,o=t.clientId,c=Object(l.useState)(),i=Object(wo.a)(c,2),a=i[0],s=i[1],u=Object(v.useSelect)((function(e){return e(p.store).getBlockType(r)}),[r]);return Object(l.createElement)(m.MenuGroup,{label:Object(k.__)("Styles"),className:"block-editor-block-switcher__styles__menugroup"},a&&Object(l.createElement)(jd,{blocks:u.example?Object(p.getBlockFromExample)(u.name,{attributes:xd(xd({},u.example.attributes),{},{className:a}),innerBlocks:u.example.innerBlocks}):Object(p.cloneBlock)(t,{className:a})}),Object(l.createElement)(Bd,{clientId:o,onSwitch:n,onHoverClassName:s,itemRole:"menuitem"}))}function Td(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Nd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Nd(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function Nd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Dd=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Set,o=t.clientId,c=t.name,i=t.innerBlocks,a=void 0===i?[]:i;if(!r.has(o)){if(c===n)return t;var l,s=Td(a);try{for(s.s();!(l=s.n()).done;){var u=l.value,d=e(u,n,r);if(d)return d}}catch(e){s.e(e)}finally{s.f()}}};function Ad(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Ld(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ld(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function Ld(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Rd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Md(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rd(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Fd=function(e,t){var n,r,o,c=(n=t.name,r=t.attributes,null!=(o=Object(p.__experimentalGetBlockAttributesNamesByRole)(n,"content"))&&o.length?o.reduce((function(e,t){return r[t]&&(e[t]=r[t]),e}),{}):r);e.attributes=Md(Md({},e.attributes),c)},Vd=function(e,t){return Object(l.useMemo)((function(){return e.reduce((function(e,n){var r=function(e,t){var n,r=t.map((function(e){return Object(p.cloneBlock)(e)})),o=new Set,c=Ad(e);try{for(c.s();!(n=c.n()).done;){var i,a=n.value,l=!1,s=Ad(r);try{for(s.s();!(i=s.n()).done;){var u=i.value,d=Dd(u,a.name,o);if(d){l=!0,o.add(d.clientId),Fd(d,a);break}}}catch(e){s.e(e)}finally{s.f()}if(!l)return}}catch(e){c.e(e)}finally{c.f()}return r}(t,n.blocks);return r&&e.push(Md(Md({},n),{},{transformedBlocks:r})),e}),[])}),[e,t])};function Hd(e){var t=e.patterns,n=e.onSelect;return Object(l.createElement)("div",{className:"block-editor-block-switcher__popover__preview__parent"},Object(l.createElement)("div",{className:"block-editor-block-switcher__popover__preview__container"},Object(l.createElement)(m.Popover,{className:"block-editor-block-switcher__preview__popover",position:"bottom right"},Object(l.createElement)("div",{className:"block-editor-block-switcher__preview"},Object(l.createElement)("div",{className:"block-editor-block-switcher__preview-title"},Object(k.__)("Preview")),Object(l.createElement)(zd,{patterns:t,onSelect:n})))))}function zd(e){var t=e.patterns,n=e.onSelect,r=Object(m.__unstableUseCompositeState)();return Object(l.createElement)(m.__unstableComposite,Object(i.a)({},r,{role:"listbox",className:"block-editor-block-switcher__preview-patterns-container","aria-label":Object(k.__)("Patterns list")}),t.map((function(e){return Object(l.createElement)(Gd,{key:e.name,pattern:e,onSelect:n,composite:r})})))}function Gd(e){var t=e.pattern,n=e.onSelect,r=e.composite,o="block-editor-block-switcher__preview-patterns-container",c=Object(b.useInstanceId)(Gd,"".concat(o,"-list__item-description"));return Object(l.createElement)("div",{className:"".concat(o,"-list__list-item"),"aria-label":t.title,"aria-describedby":t.description?c:void 0},Object(l.createElement)(m.__unstableCompositeItem,Object(i.a)({role:"option",as:"div"},r,{className:"".concat(o,"-list__item"),onClick:function(){return n(t.transformedBlocks)}}),Object(l.createElement)(tu,{blocks:t.transformedBlocks,viewportWidth:t.viewportWidth||500}),Object(l.createElement)("div",{className:"".concat(o,"-list__item-title")},t.title)),!!t.description&&Object(l.createElement)(m.VisuallyHidden,{id:c},t.description))}var Ud=function(e){var t=e.blocks,n=e.patterns,r=e.onSelect,o=Object(l.useState)(!1),c=Object(wo.a)(o,2),i=c[0],a=c[1],s=Vd(n,t);return s.length?Object(l.createElement)(m.MenuGroup,{className:"block-editor-block-switcher__pattern__transforms__menugroup"},i&&Object(l.createElement)(Hd,{patterns:s,onSelect:r}),Object(l.createElement)(m.MenuItem,{onClick:function(e){e.preventDefault(),a(!i)},icon:Ql.a},Object(k.__)("Patterns"))):null};function Wd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wd(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var qd=function(e){var t=e.clientIds,n=e.blocks,r=Object(v.useDispatch)(jr).replaceBlocks,o=Sl(n[0].clientId),c=Object(v.useSelect)((function(e){var r,c,i=e(jr),a=i.getBlockRootClientId,l=i.getBlockTransformItems,s=i.__experimentalGetPatternTransformItems,u=e(p.store),b=u.getBlockStyles,f=u.getBlockType,m=a(Object(d.castArray)(t)[0]),v=Object(wo.a)(n,1)[0].name,O=1===n.length,g=O&&b(v);O?r=null==o?void 0:o.icon:r=1===Object(d.uniq)(n.map((function(e){return e.name}))).length?null===(c=f(v))||void 0===c?void 0:c.icon:hd;return{possibleBlockTransformations:l(n,m),hasBlockStyles:!(null==g||!g.length),icon:r,blockTitle:f(v).title,patterns:s(n,m)}}),[t,n,null==o?void 0:o.icon]),i=c.possibleBlockTransformations,a=c.hasBlockStyles,s=c.icon,u=c.blockTitle,b=c.patterns,f=1===n.length&&Object(p.isReusableBlock)(n[0]),O=1===n.length&&Object(p.isTemplatePart)(n[0]),g=!!i.length,h=!(null==b||!b.length);if(!a&&!g)return Object(l.createElement)(m.ToolbarGroup,null,Object(l.createElement)(m.ToolbarButton,{disabled:!0,className:"block-editor-block-switcher__no-switcher-icon",title:u,icon:Object(l.createElement)(hl,{icon:s,showColors:!0})}));var j=u,y=1===n.length?Object(k.sprintf)(Object(k.__)("%s: Change block type or style"),u):Object(k.sprintf)(Object(k._n)("Change type of %d block","Change type of %d blocks",n.length),n.length),_=a||g||h;return Object(l.createElement)(m.ToolbarGroup,null,Object(l.createElement)(m.ToolbarItem,null,(function(e){return Object(l.createElement)(m.DropdownMenu,{className:"block-editor-block-switcher",label:j,popoverProps:{position:"bottom right",isAlternate:!0,className:"block-editor-block-switcher__popover"},icon:Object(l.createElement)(l.Fragment,null,Object(l.createElement)(hl,{icon:s,className:"block-editor-block-switcher__toggle",showColors:!0}),(f||O)&&Object(l.createElement)("span",{className:"block-editor-block-switcher__toggle-text"},Object(l.createElement)(Cl,{clientId:t}))),toggleProps:Kd({describedBy:y},e),menuProps:{orientation:"both"}},(function(e){var o=e.onClose;return _&&Object(l.createElement)("div",{className:"block-editor-block-switcher__container"},h&&Object(l.createElement)(Ud,{blocks:n,patterns:b,onSelect:function(e){!function(e){r(t,e)}(e),o()}}),g&&Object(l.createElement)(yd,{className:"block-editor-block-switcher__transforms__menugroup",possibleBlockTransformations:i,blocks:n,onSelect:function(e){!function(e){r(t,Object(p.switchToBlockType)(n,e))}(e),o()}}),a&&Object(l.createElement)(Pd,{hoveredBlock:n[0],onSwitch:o}))}))})))},$d=function(e){var t=e.clientIds,n=Object(v.useSelect)((function(e){return e(jr).getBlocksByClientId(t)}),[t]);return!n.length||n.some((function(e){return!e}))?null:Object(l.createElement)(qd,{clientIds:t,blocks:n})},Yd=n(43);function Xd(){var e=Object(v.useSelect)(jr).getBlockName,t=Object(v.useSelect)(p.store).getBlockType,n=Object(v.useDispatch)(ku.store).createSuccessNotice;return Object(l.useCallback)((function(r,o){var c="";if(1===o.length){var i=o[0],a=t(e(i)).title;c="copy"===r?Object(k.sprintf)(Object(k.__)('Copied "%s" to clipboard.'),a):Object(k.sprintf)(Object(k.__)('Moved "%s" to clipboard.'),a)}else c="copy"===r?Object(k.sprintf)(Object(k._n)("Copied %d block to clipboard.","Copied %d blocks to clipboard.",o.length),o.length):Object(k.sprintf)(Object(k._n)("Moved %d block to clipboard.","Moved %d blocks to clipboard.",o.length),o.length);n(c,{type:"snackbar"})}),[])}function Qd(){var e=Object(v.useSelect)(jr),t=e.getBlocksByClientId,n=e.getSelectedBlockClientIds,r=e.hasMultiSelection,o=e.getSettings,c=Object(v.useDispatch)(jr),i=c.flashBlock,a=c.removeBlocks,l=c.replaceBlocks,s=Xd();return Object(b.useRefEffect)((function(e){function c(c){var u=n();if(0!==u.length){if(!r()){var d=c.target.ownerDocument;if("copy"===c.type||"cut"===c.type?Object(Wl.documentHasUncollapsedSelection)(d):Object(Wl.documentHasSelection)(d))return}if(e.contains(c.target.ownerDocument.activeElement)){if(c.preventDefault(),"copy"===c.type||"cut"===c.type){1===u.length&&i(u[0]),s(c.type,u);var b=t(u),f=Object(p.serialize)(b);c.clipboardData.setData("text/plain",f),c.clipboardData.setData("text/html",f)}if("cut"===c.type)a(u);else if("paste"===c.type){var m=o().__experimentalCanUserUseUnfilteredHTML,v=function(e){var t=e.clipboardData,n="",r="";try{n=t.getData("text/plain"),r=t.getData("text/html")}catch(e){try{r=t.getData("Text")}catch(e){return}}var o=Object(Wl.getFilesFromDataTransfer)(t).filter((function(e){var t=e.type;return/^image\/(?:jpe?g|png|gif)$/.test(t)}));return o.length&&!r&&(r=o.map((function(e){return'<img src="'.concat(Object(Yd.createBlobURL)(e),'">')})).join(""),n=""),{html:r,plainText:n}}(c),O=v.plainText,g=v.html,h=Object(p.pasteHandler)({HTML:g,plainText:O,mode:"BLOCKS",canUserUseUnfilteredHTML:m});l(u,h,h.length-1,-1)}}}}return e.ownerDocument.addEventListener("copy",c),e.ownerDocument.addEventListener("cut",c),e.ownerDocument.addEventListener("paste",c),function(){e.ownerDocument.removeEventListener("copy",c),e.ownerDocument.removeEventListener("cut",c),e.ownerDocument.removeEventListener("paste",c)}}),[])}var Zd=function(e){var t=e.children;return Object(l.createElement)("div",{ref:Qd()},t)};function Jd(e){var t=e.clientIds,n=e.children,r=e.__experimentalUpdateSelection,o=Object(v.useSelect)((function(e){return e(jr)}),[]),c=o.canInsertBlockType,i=o.getBlockRootClientId,a=o.getBlocksByClientId,l=o.getTemplateLock,s=Object(v.useSelect)((function(e){return e(p.store)}),[]),u=s.getDefaultBlockName,b=s.getGroupingBlockName,f=a(t),m=i(t[0]),O=Object(d.every)(f,(function(e){return!!e&&Object(p.hasBlockSupport)(e.name,"multiple",!0)&&c(e.name,m)})),g=c(u(),m),h=Object(v.useDispatch)(jr),j=h.removeBlocks,y=h.replaceBlocks,k=h.duplicateBlocks,_=h.insertAfterBlock,E=h.insertBeforeBlock,w=h.flashBlock,S=h.setBlockMovingClientId,C=h.setNavigationMode,B=h.selectBlock,I=Xd();return n({canDuplicate:O,canInsertDefaultBlock:g,isLocked:!!l(m),rootClientId:m,blocks:f,onDuplicate:function(){return k(t,r)},onRemove:function(){return j(t,r)},onInsertBefore:function(){E(Object(d.first)(Object(d.castArray)(t)))},onInsertAfter:function(){_(Object(d.last)(Object(d.castArray)(t)))},onMoveTo:function(){C(!0),B(t[0]),S(t[0])},onGroup:function(){if(f.length){var e=b(),n=Object(p.switchToBlockType)(f,e);n&&y(t,n)}},onUngroup:function(){if(f.length){var e=f[0].innerBlocks;e.length&&y(t,e)}},onCopy:function(){var e=f.map((function(e){return e.clientId}));1===f.length&&w(e[0]),I("copy",e)}})}var eb=Object(b.compose)([Object(v.withSelect)((function(e,t){var n=t.clientId,r=e(jr),o=r.getBlock,c=r.getBlockMode,i=r.getSettings,a=o(n),l=i().codeEditingEnabled;return{mode:c(n),blockType:a?Object(p.getBlockType)(a.name):null,isCodeEditingEnabled:l}})),Object(v.withDispatch)((function(e,t){var n=t.onToggle,r=void 0===n?d.noop:n,o=t.clientId;return{onToggleMode:function(){e(jr).toggleBlockMode(o),r()}}}))])((function(e){var t=e.blockType,n=e.mode,r=e.onToggleMode,o=e.small,c=void 0!==o&&o,i=e.isCodeEditingEnabled,a=void 0===i||i;if(!Object(p.hasBlockSupport)(t,"html",!0)||!a)return null;var s="visual"===n?Object(k.__)("Edit as HTML"):Object(k.__)("Edit visually");return Object(l.createElement)(m.MenuItem,{onClick:r},!c&&s)}));var tb=Object(b.compose)(Object(v.withSelect)((function(e,t){var n=t.clientId,r=e(jr).getBlock(n);return{block:r,shouldRender:r&&"core/html"===r.name}})),Object(v.withDispatch)((function(e,t){var n=t.block;return{onClick:function(){return e(jr).replaceBlocks(n.clientId,Object(p.rawHandler)({HTML:Object(p.getBlockContent)(n)}))}}})))((function(e){var t=e.shouldRender,n=e.onClick,r=e.small;if(!t)return null;var o=Object(k.__)("Convert to Blocks");return Object(l.createElement)(m.MenuItem,{onClick:n},!r&&o)})),nb=Object(m.createSlotFill)("__experimentalBlockSettingsMenuFirstItem"),rb=nb.Fill,ob=nb.Slot;rb.Slot=ob;var cb=rb;function ib(e){var t=e.clientIds,n=e.isGroupable,r=e.isUngroupable,o=e.blocksSelection,c=e.groupingBlockName,i=e.onClose,a=void 0===i?function(){}:i,s=Object(v.useDispatch)(jr).replaceBlocks;return n||r?Object(l.createElement)(l.Fragment,null,n&&Object(l.createElement)(m.MenuItem,{onClick:function(){var e;(e=Object(p.switchToBlockType)(o,c))&&s(t,e),a()}},Object(k._x)("Group","verb")),r&&Object(l.createElement)(m.MenuItem,{onClick:function(){var e;(e=o[0].innerBlocks).length&&s(t,e),a()}},Object(k._x)("Ungroup","Ungrouping blocks from within a Group block back into individual blocks within the Editor "))):null}function ab(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ab(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ab(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var sb=Object(m.createSlotFill)("BlockSettingsMenuControls"),ub=sb.Fill,db=sb.Slot;function bb(e){var t=Object(i.a)({},e);return Object(l.createElement)(m.__experimentalStyleProvider,{document:document},Object(l.createElement)(ub,t))}bb.Slot=function(e){var t,n=e.fillProps,r=e.clientIds,o=void 0===r?null:r,c=Object(v.useSelect)((function(e){var t=e(jr),n=t.getBlocksByClientId,r=t.getSelectedBlockClientIds,c=null!==o?o:r();return Object(d.map)(Object(d.compact)(n(c)),(function(e){return e.name}))}),[o]),a={clientIds:(t=Object(v.useSelect)((function(e){var t,n=e(jr),r=n.getBlockRootClientId,o=n.getBlocksByClientId,c=n.canInsertBlockType,i=n.getSelectedBlockClientIds,a=e(p.store).getGroupingBlockName,l=i(),s=a(),u=c(s,null!=l&&l.length?r(l[0]):void 0),d=o(l),b=1===d.length&&(null===(t=d[0])||void 0===t?void 0:t.name)===s;return{clientIds:l,isGroupable:u&&d.length&&!b,isUngroupable:b&&!!d[0].innerBlocks.length,blocksSelection:d,groupingBlockName:s}}),[])).clientIds,isGroupable:t.isGroupable,isUngroupable:t.isUngroupable,blocksSelection:t.blocksSelection,groupingBlockName:t.groupingBlockName},s=a.isGroupable||a.isUngroupable;return Object(l.createElement)(db,{fillProps:lb(lb({},n),{},{selectedBlocks:c})},(function(e){if((null==e?void 0:e.length)>0||s)return Object(l.createElement)(m.MenuGroup,null,e,Object(l.createElement)(ib,Object(i.a)({},a,{onClose:null==n?void 0:n.onClose})))}))};var fb=bb,pb={className:"block-editor-block-settings-menu__popover",position:"bottom right",isAlternate:!0};function mb(e){var t=e.blocks,n=e.onCopy,r=Object(b.useCopyToClipboard)((function(){return Object(p.serialize)(t)}),n);return Object(l.createElement)(m.MenuItem,{ref:r},Object(k.__)("Copy"))}var vb=function(e){var t=e.clientIds,n=e.__experimentalSelectBlock,r=e.children,o=Object(j.a)(e,["clientIds","__experimentalSelectBlock","children"]),c=Object(d.castArray)(t),a=c.length,s=c[0],u=Object(v.useSelect)((function(e){var t=e(Vl.store).getShortcutRepresentation;return{duplicate:t("core/block-editor/duplicate"),remove:t("core/block-editor/remove"),insertAfter:t("core/block-editor/insert-after"),insertBefore:t("core/block-editor/insert-before")}}),[]),b=Object(l.useCallback)(n?function(){var e=Object(zl.a)(Lt.a.mark((function e(t){var r;return Lt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t;case 2:(r=e.sent)&&r[0]&&n(r[0]);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}():d.noop,[n]),f=1===a?Object(k.__)("Remove block"):Object(k.__)("Remove blocks");return Object(l.createElement)(Jd,{clientIds:t,__experimentalUpdateSelection:!n},(function(e){var n=e.canDuplicate,c=e.canInsertDefaultBlock,p=e.isLocked,v=e.onDuplicate,O=e.onInsertAfter,g=e.onInsertBefore,h=e.onRemove,j=e.onCopy,y=e.onMoveTo,_=e.blocks;return Object(l.createElement)(m.DropdownMenu,Object(i.a)({icon:Gl.a,label:Object(k.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:pb,noIcons:!0},o),(function(e){var o=e.onClose;return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(m.MenuGroup,null,Object(l.createElement)(cb.Slot,{fillProps:{onClose:o}}),1===a&&Object(l.createElement)(tb,{clientId:s}),Object(l.createElement)(mb,{blocks:_,onCopy:j}),n&&Object(l.createElement)(m.MenuItem,{onClick:Object(d.flow)(o,v,b),shortcut:u.duplicate},Object(k.__)("Duplicate")),c&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(m.MenuItem,{onClick:Object(d.flow)(o,g),shortcut:u.insertBefore},Object(k.__)("Insert before")),Object(l.createElement)(m.MenuItem,{onClick:Object(d.flow)(o,O),shortcut:u.insertAfter},Object(k.__)("Insert after"))),!p&&Object(l.createElement)(m.MenuItem,{onClick:Object(d.flow)(o,y)},Object(k.__)("Move to")),1===a&&Object(l.createElement)(eb,{clientId:s,onToggle:o})),Object(l.createElement)(fb.Slot,{fillProps:{onClose:o},clientIds:t}),"function"==typeof r?r({onClose:o}):l.Children.map((function(e){return Object(l.cloneElement)(e,{onClose:o})})),Object(l.createElement)(m.MenuGroup,null,!p&&Object(l.createElement)(m.MenuItem,{onClick:Object(d.flow)(o,h,b),shortcut:u.remove},f)))}))}))};var Ob=function(e){var t=e.clientIds,n=Object(j.a)(e,["clientIds"]);return Object(l.createElement)(m.ToolbarGroup,null,Object(l.createElement)(m.ToolbarItem,null,(function(e){return Object(l.createElement)(vb,Object(i.a)({clientIds:t,toggleProps:e},n))})))};function gb(e){var t=e.hideDragHandle,n=Object(v.useSelect)((function(e){var t=e(jr),n=t.getBlockName,r=t.getBlockMode,o=t.getSelectedBlockClientIds,c=t.isBlockValid,i=t.getBlockRootClientId,a=t.getSettings,l=o(),s=l[0],u=i(s),d=a();return{blockClientIds:l,blockClientId:s,blockType:s&&Object(p.getBlockType)(n(s)),hasFixedToolbar:d.hasFixedToolbar,hasReducedUI:d.hasReducedUI,rootClientId:u,isValid:l.every((function(e){return c(e)})),isVisual:l.every((function(e){return"visual"===r(e)}))}}),[]),r=n.blockClientIds,o=n.blockClientId,c=n.blockType,a=n.hasFixedToolbar,s=n.hasReducedUI,d=n.isValid,f=n.isVisual,O=Object(v.useDispatch)(jr).toggleBlockHighlight,g=Object(l.useRef)(),h=Od({ref:g,onChange:function(e){e&&s||O(o,e)}}),j=h.showMovers,y=h.gestures,k=Object(b.useViewportMatch)("medium","<")||a;if(c&&!Object(p.hasBlockSupport)(c,"__experimentalToolbar",!0))return null;var _=k||j;if(0===r.length)return null;var E=d&&f,w=r.length>1,S=u()("block-editor-block-toolbar",_&&"is-showing-movers");return Object(l.createElement)("div",{className:S},!w&&!k&&Object(l.createElement)(gd,{clientIds:r}),Object(l.createElement)("div",Object(i.a)({ref:g},y),(E||w)&&Object(l.createElement)(m.ToolbarGroup,{className:"block-editor-block-toolbar__block-controls"},Object(l.createElement)($d,{clientIds:r}),Object(l.createElement)(bd,{clientIds:r,hideDragHandle:t||s}))),E&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Cr.Slot,{group:"block",className:"block-editor-block-toolbar__slot"}),Object(l.createElement)(Cr.Slot,{className:"block-editor-block-toolbar__slot"}),Object(l.createElement)(Cr.Slot,{group:"inline",className:"block-editor-block-toolbar__slot"}),Object(l.createElement)(Cr.Slot,{group:"other",className:"block-editor-block-toolbar__slot"})),Object(l.createElement)(Ob,{clientIds:r}))}var hb=function(e){var t=e.focusOnMount,n=Object(j.a)(e,["focusOnMount"]),r=Object(v.useSelect)((function(e){var t=e(jr),n=t.getBlockName,r=t.getBlockParents,o=t.getSelectedBlockClientIds,c=e(p.store).getBlockType,i=o()[0];return{blockType:i&&c(n(i)),hasParents:r(i).length}}),[]),o=r.blockType,c=r.hasParents;if(o&&!Object(p.hasBlockSupport)(o,"__experimentalToolbar",!0))return null;var a=u()("block-editor-block-contextual-toolbar",{"has-parent":c});return Object(l.createElement)("div",{className:"block-editor-block-contextual-toolbar-wrapper"},Object(l.createElement)(dd,Object(i.a)({focusOnMount:t,className:a,"aria-label":Object(k.__)("Block tools")},n),Object(l.createElement)(gb,null)))};function jb(e){var t=e(jr),n=t.isNavigationMode,r=t.isMultiSelecting,o=t.hasMultiSelection,c=t.isTyping,i=t.isCaretWithinFormattedText,a=t.getSettings,l=t.getLastMultiSelectedBlockClientId;return{isNavigationMode:n(),isMultiSelecting:r(),isTyping:c(),isCaretWithinFormattedText:i(),hasMultiSelection:o(),hasFixedToolbar:a().hasFixedToolbar,lastClientId:l()}}function yb(e){var t=e.clientId,n=e.rootClientId,r=e.isValid,o=e.isEmptyDefaultBlock,c=e.capturingClientId,i=Object(v.useSelect)(jb,[]),a=i.isNavigationMode,s=i.isMultiSelecting,d=i.isTyping,f=i.isCaretWithinFormattedText,p=i.hasMultiSelection,O=i.hasFixedToolbar,g=i.lastClientId,h=Object(b.useViewportMatch)("medium"),j=Object(l.useState)(!1),y=Object(wo.a)(j,2),k=y[0],_=y[1],E=Object(l.useState)(!1),w=Object(wo.a)(E,2),S=w[0],C=w[1],B=Object(l.useContext)(Sb),I=Object(v.useDispatch)(jr).stopTyping,x=!d&&!a&&o&&r,P=a,T=!a&&!O&&h&&!x&&!s&&(!d||f),N=!(a||T||O||o);Object(Vl.useShortcut)("core/block-editor/focus-toolbar",Object(l.useCallback)((function(){_(!0),I(!0)}),[]),{bindGlobal:!0,eventName:"keydown",isDisabled:!N}),Object(l.useEffect)((function(){T||_(!1)}),[T]);var D=Object(l.useRef)();if(Object(l.useEffect)((function(){D.current=void 0}),[t]),!(P||T||k||x))return null;var A=B[t];if(!A)return null;var L=A.ownerDocument;c&&(A=Sc(c,L));var R=A;if(p){var M=B[g];if(!M)return null;R={top:A,bottom:M}}var F=x?"top left right":"top right left",V=x?void 0:L.defaultView.frameElement||Object(Wl.getScrollContainer)(A)||L.body;return Object(l.createElement)(m.Popover,{noArrow:!0,animate:!1,position:F,focusOnMount:!1,anchorRef:R,className:"block-editor-block-list__block-popover",__unstableStickyBoundaryElement:V,__unstableSlotName:"block-toolbar",__unstableBoundaryParent:!0,__unstableObserveElement:A,shouldAnchorIncludePadding:!0},(T||k)&&Object(l.createElement)("div",{onFocus:function(){C(!0)},onBlur:function(){C(!1)},tabIndex:-1,className: