sirius-press/wordpress/wp-includes/js/dist/block-editor.min.js

279 lines
1.3 MiB
JavaScript
Raw Normal View History

/*! This file is auto-generated */
(function() {
"use strict";var wp;(wp||={}).blockEditor=(()=>{var WIe=Object.create;var J1=Object.defineProperty;var $Ie=Object.getOwnPropertyDescriptor;var KIe=Object.getOwnPropertyNames;var YIe=Object.getPrototypeOf,qIe=Object.prototype.hasOwnProperty;var Se=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Or=(e,t)=>{for(var o in t)J1(e,o,{get:t[o],enumerable:!0})},BY=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of KIe(t))!qIe.call(e,n)&&n!==o&&J1(e,n,{get:()=>t[n],enumerable:!(r=$Ie(t,n))||r.enumerable});return e};var c=(e,t,o)=>(o=e!=null?WIe(YIe(e)):{},BY(t||!e||!e.__esModule?J1(o,"default",{value:e,enumerable:!0}):o,e)),ZIe=e=>BY(J1({},"__esModule",{value:!0}),e);var ue=Se((ttt,IY)=>{IY.exports=window.wp.blocks});var F=Se((ott,OY)=>{OY.exports=window.wp.element});var Q=Se((rtt,AY)=>{AY.exports=window.wp.data});var fe=Se((ntt,LY)=>{LY.exports=window.wp.compose});var go=Se((itt,MY)=>{MY.exports=window.wp.hooks});var U=Se((utt,$Y)=>{$Y.exports=window.wp.components});var Ix=Se((dtt,KY)=>{KY.exports=window.wp.privateApis});var Rt=Se((ytt,QY)=>{QY.exports=window.wp.deprecated});var E=Se((vtt,JY)=>{JY.exports=window.ReactJSXRuntime});var Fs=Se((ktt,tq)=>{tq.exports=window.wp.url});var G=Se((Ott,lq)=>{lq.exports=window.wp.i18n});var Xh=Se((Att,cq)=>{"use strict";cq.exports=function e(t,o){if(t===o)return!0;if(t&&o&&typeof t=="object"&&typeof o=="object"){if(t.constructor!==o.constructor)return!1;var r,n,i;if(Array.isArray(t)){if(r=t.length,r!=o.length)return!1;for(n=r;n--!==0;)if(!e(t[n],o[n]))return!1;return!0}if(t instanceof Map&&o instanceof Map){if(t.size!==o.size)return!1;for(n of t.entries())if(!o.has(n[0]))return!1;for(n of t.entries())if(!e(n[1],o.get(n[0])))return!1;return!0}if(t instanceof Set&&o instanceof Set){if(t.size!==o.size)return!1;for(n of t.entries())if(!o.has(n[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(o)){if(r=t.length,r!=o.length)return!1;for(n=r;n--!==0;)if(t[n]!==o[n])return!1;return!0}if(t.constructor===RegExp)return t.source===o.source&&t.flags===o.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===o.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===o.toString();if(i=Object.keys(t),r=i.length,r!==Object.keys(o).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(o,i[n]))return!1;for(n=r;n--!==0;){var s=i[n];if(!e(t[s],o[s]))return!1}return!0}return t!==t&&o!==o}});var pe=Se((Utt,_q)=>{_q.exports=window.wp.primitives});var Ko=Se((ust,xq)=>{xq.exports=window.wp.richText});var Cq=Se((dst,wq)=>{wq.exports=window.wp.blockSerializationDefaultParser});var rv=Se((mst,Tq)=>{Tq.exports=window.wp.styleEngine});var bB=Se((kst,Mq)=>{"use strict";var SAe=function(t){return kAe(t)&&!_Ae(t)};function kAe(e){return!!e&&typeof e=="object"}function _Ae(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||CAe(e)}var xAe=typeof Symbol=="function"&&Symbol.for,wAe=xAe?Symbol.for("react.element"):60103;function CAe(e){return e.$$typeof===wAe}function EAe(e){return Array.isArray(e)?[]:{}}function bw(e,t){return t.clone!==!1&&t.isMergeableObject(e)?nv(EAe(e),e,t):e}function TAe(e,t,o){return e.concat(t).map(function(r){return bw(r,o)})}function RAe(e,t){if(!t.customMerge)return nv;var o=t.customMerge(e);return typeof o=="function"?o:nv}function BAe(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Aq(e){return Object.keys(e).concat(BAe(e))}function Lq(e,t){try{return t in e}catch{return!1}}function PAe(e,t){return Lq(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function IAe(e,t,o){var r={};return o.isMergeableObject(e)&&Aq(e).forEach(function(n){r[n]=bw(e[n],o)}),Aq(t).forEach(function(n){PAe(e,n)||(Lq(e,n)&&o.isMergeableObject(t[n])?r[n]=RAe(n,o)(e[n],t[n],o):r[n]=bw(t[n],o))}),r}function nv(e,t,o){o=o||{},o.arrayMerge=o.arrayMerge||TAe,o.isMergeableObject=o.isMergeableObject||SAe,o.cloneUnlessOtherwiseSpecified=bw;var r=Array.isArray(t),n=Array.
`+k+n("^")}let m=r(h.replace(/\d/g," "))+d.slice(0,this.column-1).replace(/[^\t]/g," ");return n(">")+r(h)+i(d)+`
`+m+n("^")}return" "+r(h)+i(d)}).join(`
`)}toString(){let t=this.showSourceCode();return t&&(t=`
`+t+`
`),this.name+": "+this.message+t}};hue.exports=gC;gC.default=gC});var iU=Se((jLt,bue)=>{"use strict";var P8e=/(<)(\/?style\b)/gi,I8e=/(<)(!--)/g;function lm(e){return typeof e!="string"||!e.includes("<")?e:e.replace(P8e,"\\3c $2").replace(I8e,"\\3c $2")}var gue={after:`
`,beforeClose:`
`,beforeComment:`
`,beforeDecl:`
`,beforeOpen:" ",beforeRule:`
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function O8e(e){return e[0].toUpperCase()+e.slice(1)}var bC=class{constructor(t){this.builder=t}atrule(t,o){let r=t.raws,n="@"+t.name,i=t.params?this.rawValue(t,"params"):"";if(typeof r.afterName<"u"?n+=r.afterName:i&&(n+=" "),t.nodes)this.block(t,n+i);else{let s=(r.between||"")+(o?";":"");this.builder(lm(n+i+s),t)}}beforeAfter(t,o){let r;t.type==="decl"?r=this.raw(t,null,"beforeDecl"):t.type==="comment"?r=this.raw(t,null,"beforeComment"):o==="before"?r=this.raw(t,null,"beforeRule"):r=this.raw(t,null,"beforeClose");let n=t.parent,i=0;for(;n&&n.type!=="root";)i+=1,n=n.parent;if(r.includes(`
`)){let s=this.raw(t,null,"indent");if(s.length)for(let a=0;a<i;a++)r+=s}return r}block(t,o){let r=this.raw(t,"between","beforeOpen");this.builder(lm(o+r)+"{",t,"start");let n;t.nodes&&t.nodes.length?(this.body(t),n=this.raw(t,"after")):n=this.raw(t,"after","emptyBody"),n&&this.builder(lm(n)),this.builder("}",t,"end")}body(t){let o=t.nodes,r=o.length-1;for(;r>0&&o[r].type==="comment";)r-=1;let n=this.raw(t,"semicolon"),i=t.type==="document";for(let s=0;s<o.length;s++){let a=o[s],l=this.raw(a,"before");l&&this.builder(i?l:lm(l)),this.stringify(a,r!==s||n)}}comment(t){let o=this.raw(t,"left","commentLeft"),r=this.raw(t,"right","commentRight");this.builder(lm("/*"+o+t.text+r+"*/"),t)}decl(t,o){let r=t.raws,n=this.raw(t,"between","colon"),i=t.prop+n+this.rawValue(t,"value");t.important&&(i+=r.important||" !important"),o&&(i+=";"),this.builder(lm(i),t)}document(t){this.body(t)}raw(t,o,r){let n;if(r||(r=o),o&&(n=t.raws[o],typeof n<"u"))return n;let i=t.parent;if(r==="before"&&(!i||i.type==="root"&&i.first===t||i&&i.type==="document"))return"";if(!i)return gue[r];let s=t.root(),a=s.rawCache||(s.rawCache={});if(typeof a[r]<"u")return a[r];if(r==="before"||r==="after")return this.beforeAfter(t,r);{let l="raw"+O8e(r);this[l]?n=this[l](s,t):s.walk(u=>{if(n=u.raws[o],typeof n<"u")return!1})}return typeof n>"u"&&(n=gue[r]),a[r]=n,n}rawBeforeClose(t){let o;return t.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after<"u")return o=r.raws.after,o.includes(`
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawBeforeComment(t,o){let r;return t.walkComments(n=>{if(typeof n.raws.before<"u")return r=n.raws.before,r.includes(`
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(o,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(t,o){let r;return t.walkDecls(n=>{if(typeof n.raws.before<"u")return r=n.raws.before,r.includes(`
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(o,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(t){let o;return t.walk(r=>{if(r.type!=="decl"&&(o=r.raws.between,typeof o<"u"))return!1}),o}rawBeforeRule(t){let o;return t.walk(r=>{if(r.nodes&&(r.parent!==t||t.first!==r)&&typeof r.raws.before<"u")return o=r.raws.before,o.includes(`
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawColon(t){let o;return t.walkDecls(r=>{if(typeof r.raws.between<"u")return o=r.raws.between.replace(/[^\s:]/g,""),!1}),o}rawEmptyBody(t){let o;return t.walk(r=>{if(r.nodes&&r.nodes.length===0&&(o=r.raws.after,typeof o<"u"))return!1}),o}rawIndent(t){if(t.raws.indent)return t.raws.indent;let o;return t.walk(r=>{let n=r.parent;if(n&&n!==t&&n.parent&&n.parent===t&&typeof r.raws.before<"u"){let i=r.raws.before.split(`
`);return o=i[i.length-1],o=o.replace(/\S/g,""),!1}}),o}rawSemicolon(t){let o;return t.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(o=r.raws.semicolon,typeof o<"u"))return!1}),o}rawValue(t,o){let r=t[o],n=t.raws[o];return n&&n.value===r?n.raw:r}root(t){if(this.body(t),t.raws.after){let o=t.raws.after,r=t.parent&&t.parent.type==="document";this.builder(r?o:lm(o))}}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(lm(t.raws.ownSemicolon),t,"end")}stringify(t,o){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,o)}};bue.exports=bC;bC.default=bC});var LA=Se((HLt,yue)=>{"use strict";var A8e=iU();function sU(e,t){new A8e(t).stringify(e)}yue.exports=sU;sU.default=sU});var MA=Se((ULt,aU)=>{"use strict";aU.exports.isClean=Symbol("isClean");aU.exports.my=Symbol("my")});var NA=Se((GLt,vue)=>{"use strict";var L8e=AA(),M8e=iU(),N8e=LA(),{isClean:yC,my:D8e}=MA();function lU(e,t){let o=new e.constructor;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r)||r==="proxyCache")continue;let n=e[r],i=typeof n;r==="parent"&&i==="object"?t&&(o[r]=t):r==="source"?o[r]=n:Array.isArray(n)?o[r]=n.map(s=>lU(s,o)):(i==="object"&&n!==null&&(n=lU(n)),o[r]=n)}return o}function pu(e,t){if(t&&typeof t.offset<"u")return t.offset;let o=1,r=1,n=0;for(let i=0;i<e.length;i++){if(r===t.line&&o===t.column){n=i;break}e[i]===`
`?(o=1,r+=1):o+=1}return n}var vC=class{get proxyOf(){return this}constructor(t={}){this.raws={},this[yC]=!1,this[D8e]=!0;for(let o in t)if(o==="nodes"){this.nodes=[];for(let r of t[o])typeof r.clone=="function"&&r.parent?this.append(r.clone()):this.append(r)}else this[o]=t[o]}addToError(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){let o=this.source;t.stack=t.stack.replace(/\n\s{4}at /,`$&${o.input.from}:${o.start.line}:${o.start.column}$&`)}return t}after(t){return this.parent.insertAfter(this,t),this}assign(t={}){for(let o in t)this[o]=t[o];return this}before(t){return this.parent.insertBefore(this,t),this}cleanRaws(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between}clone(t={}){let o=lU(this);for(let r in t)o[r]=t[r];return o}cloneAfter(t={}){let o=this.clone(t);return this.parent.insertAfter(this,o),o}cloneBefore(t={}){let o=this.clone(t);return this.parent.insertBefore(this,o),o}error(t,o={}){if(this.source){let{end:r,start:n}=this.rangeBy(o);return this.source.input.error(t,{column:n.column,line:n.line},{column:r.column,line:r.line},o)}return new L8e(t)}getProxyProcessor(){return{get(t,o){return o==="proxyOf"?t:o==="root"?()=>t.root().toProxy():t[o]},set(t,o,r){return t[o]===r||(t[o]=r,(o==="prop"||o==="value"||o==="name"||o==="params"||o==="important"||o==="text")&&t.markDirty()),!0}}}markClean(){this[yC]=!0}markDirty(){if(this[yC]){this[yC]=!1;let t=this;for(;t=t.parent;)t[yC]=!1}}next(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t+1]}positionBy(t={}){let o="document"in this.source.input?this.source.input.document:this.source.input.css,r={column:this.source.start.column,line:this.source.start.line,offset:pu(o,this.source.start)};if(t.index)r=this.positionInside(t.index);else if(t.word){let i=o.slice(pu(o,this.source.start),pu(o,this.source.end)).indexOf(t.word);i!==-1&&(r=this.positionInside(i))}return r}positionInside(t){let o=this.source.start.column,r=this.source.start.line,n="document"in this.source.input?this.source.input.document:this.source.input.css,i=pu(n,this.source.start),s=i+t;for(let a=i;a<s;a++)n[a]===`
`?(o=1,r+=1):o+=1;return{column:o,line:r,offset:s}}prev(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t-1]}rangeBy(t={}){let o="document"in this.source.input?this.source.input.document:this.source.input.css,r={column:this.source.start.column,line:this.source.start.line,offset:pu(o,this.source.start)},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:pu(o,this.source.end)+1}:{column:r.column+1,line:r.line,offset:r.offset+1};if(t.word){let s=o.slice(pu(o,this.source.start),pu(o,this.source.end)).indexOf(t.word);s!==-1&&(r=this.positionInside(s),n=this.positionInside(s+t.word.length))}else t.start?r={column:t.start.column,line:t.start.line,offset:pu(o,t.start)}:typeof t.index=="number"&&(r=this.positionInside(t.index)),t.end?n={column:t.end.column,line:t.end.line,offset:pu(o,t.end)}:typeof t.endIndex=="number"?n=this.positionInside(t.endIndex):typeof t.index=="number"&&(n=this.positionInside(t.index+1));return(n.line<r.line||n.line===r.line&&n.column<=r.column)&&(n={column:r.column+1,line:r.line,offset:r.offset+1}),{end:n,start:r}}raw(t,o){return new M8e().raw(this,t,o)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...t){if(this.parent){let o=this,r=!1;for(let n of t)n===this?r=!0:r?(this.parent.insertAfter(o,n),o=n):this.parent.insertBefore(o,n);r||this.remove()}return this}root(){let t=this;for(;t.parent&&t.parent.type!=="document";)t=t.parent;return t}toJSON(t,o){let r={},n=o==null;o=o||new Map;let i=0;for(let s in this){if(!Object.prototype.hasOwnProperty.call(this,s)||s==="parent"||s==="proxyCache")continue;let a=this[s];if(Array.isArray(a))r[s]=a.map(l=>typeof l=="object"&&l.toJSON?l.toJSON(null,o):l);else if(typeof a=="object"&&a.toJSON)r[s]=a.toJSON(null,o);else if(s==="source"){if(a==null)continue;let l=o.get(a.input);l==null&&(l=i,o.set(a.input,i),i++),r[s]={end:a.end,inputId:l,start:a.start}}else r[s]=a}return n&&(r.inputs=[...o.keys()].map(s=>s.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(t=N8e){t.stringify&&(t=t.stringify);let o="";return t(this,r=>{o+=r}),o}warn(t,o,r={}){let n={node:this};for(let i in r)n[i]=r[i];return t.warn(o,n)}};vue.exports=vC;vC.default=vC});var cU=Se((WLt,Sue)=>{"use strict";var V8e=NA(),SC=class extends V8e{constructor(t){super(t),this.type="comment"}};Sue.exports=SC;SC.default=SC});var uU=Se(($Lt,kue)=>{"use strict";var F8e=NA(),kC=class extends F8e{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(t){t&&typeof t.value<"u"&&typeof t.value!="string"&&(t={...t,value:String(t.value)}),super(t),this.type="decl"}};kue.exports=kC;kC.default=kC});var cb=Se((KLt,Pue)=>{"use strict";var _ue=cU(),xue=uU(),z8e=NA(),{isClean:wue,my:Cue}=MA(),dU,Eue,Tue,fU;function Rue(e){return e.map(t=>(t.nodes&&(t.nodes=Rue(t.nodes)),delete t.source,t))}function Bue(e){if(e[wue]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)Bue(t)}var sc=class e extends z8e{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...t){for(let o of t){let r=this.normalize(o,this.last);for(let n of r)this.proxyOf.nodes.push(n)}return this.markDirty(),this}cleanRaws(t){if(super.cleanRaws(t),this.nodes)for(let o of this.nodes)o.cleanRaws(t)}each(t){if(!this.proxyOf.nodes)return;let o=this.getIterator(),r,n;for(;this.indexes[o]<this.proxyOf.nodes.length&&(r=this.indexes[o],n=t(this.proxyOf.nodes[r],r),n!==!1);)this.indexes[o]+=1;return delete this.indexes[o],n}every(t){return this.nodes.every(t)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let t=this.lastEach;return this.indexes[t]=0,t}getProxyProcessor(){return{get(t,o){return o==="proxyOf"?t:t[o]?o==="each"||typeof o=="string"&&o.startsWith("walk")?(...r)=>t[o](...r.map(n=>typeof n=="function"?(i,s)=>n(i.toProxy(),s):n)):o==="every"||o
`),o=new Array(t.length),r=0;for(let n=0,i=t.length;n<i;n++)o[n]=r,r+=t[n].length+1;return e[bU]=o,o}var MS=class{get from(){return this.file||this.id}constructor(t,o={}){if(t===null||typeof t>"u"||typeof t=="object"&&!t.toString)throw new Error(`PostCSS received ${t} instead of CSS string`);if(this.css=t.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,o.document&&(this.document=o.document.toString()),o.from&&(!Uue||/^\w+:\/\//.test(o.from)||yU(o.from)?this.file=o.from:this.file=vU(o.from)),Uue&&J8e){let r=new Q8e(this.css,o);if(r.text){this.map=r;let n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+q8e(6)+">"),this.map&&(this.map.file=this.from)}error(t,o,r,n={}){let i,s,a,l,u;if(o&&typeof o=="object"){let f=o,p=r;if(typeof f.offset=="number"){l=f.offset;let h=this.fromOffset(l);o=h.line,r=h.col}else o=f.line,r=f.column,l=this.fromLineAndColumn(o,r);if(typeof p.offset=="number"){a=p.offset;let h=this.fromOffset(a);s=h.line,i=h.col}else s=p.line,i=p.column,a=this.fromLineAndColumn(p.line,p.column)}else if(r)l=this.fromLineAndColumn(o,r);else{l=o;let f=this.fromOffset(l);o=f.line,r=f.col}let d=this.origin(o,r,s,i);return d?u=new Hue(t,d.endLine===void 0?d.line:{column:d.column,line:d.line},d.endLine===void 0?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,n.plugin):u=new Hue(t,s===void 0?o:{column:r,line:o},s===void 0?r:{column:i,line:s},this.css,this.file,n.plugin),u.input={column:r,endColumn:i,endLine:s,endOffset:a,line:o,offset:l,source:this.css},this.file&&(FA&&(u.input.url=FA(this.file).toString()),u.input.file=this.file),u}fromLineAndColumn(t,o){return Gue(this)[t-1]+o-1}fromOffset(t){let o=Gue(this),r=o[o.length-1],n=0;if(t>=r)n=o.length-1;else{let i=o.length-2,s;for(;n<i;)if(s=n+(i-n>>1),t<o[s])i=s-1;else if(t>=o[s+1])n=s+1;else{n=s;break}}return{col:t-o[n]+1,line:n+1}}mapResolve(t){return/^\w+:\/\//.test(t)?t:vU(this.map.consumer().sourceRoot||this.map.root||".",t)}origin(t,o,r,n){if(!this.map)return!1;let i=this.map.consumer(),s=i.originalPositionFor({column:o-1,line:t});if(!s.source)return!1;let a;typeof r=="number"&&(a=i.originalPositionFor({column:n-1,line:r}));let l;yU(s.source)?l=FA(s.source):l=new URL(s.source,this.map.consumer().sourceRoot||FA(this.map.mapFile));let u={column:s.column+1,endColumn:a&&a.column+1,endLine:a&&a.line,line:s.line,url:l.toString()};if(l.protocol==="file:")if(jue)u.file=jue(l);else throw new Error("file: protocol is not available in this PostCSS build");let d=i.sourceContentFor(s.source);return d&&(u.source=d),u}toJSON(){let t={};for(let o of["hasBOM","css","file","id"])this[o]!=null&&(t[o]=this[o]);return this.map&&(t.map={...this.map},t.map.consumerCache&&(t.map.consumerCache=void 0)),t}};Wue.exports=MS;MS.default=MS;gU&&gU.registerInput&&gU.registerInput(MS)});var _U=Se((sMt,Xue)=>{"use strict";var{dirname:zA,relative:Kue,resolve:Yue,sep:que}=DA(),{SourceMapConsumer:Zue,SourceMapGenerator:jA}=VA(),{pathToFileURL:$ue}=mU(),eHe=SU(),tHe=!!(Zue&&jA),oHe=!!(zA&&Yue&&Kue&&que),kU=class{constructor(t,o,r,n){this.stringify=t,this.mapOpts=r.map||{},this.root=o,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let t;this.isInline()?t="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?t=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?t=this.mapOpts.annotation(this.opts.to,this.root):t=this.outputFile()+".map";let o=`
`;this.css.includes(`\r
`)&&(o=`\r
`),this.css+=o+"/*# sourceMappingURL="+t+" */"}applyPrevMaps(){for(let t of this.previous()){let o=this.toUrl(this.path(t.file)),r=t.root||zA(t.file),n;this.mapOpts.sourcesContent===!1?(n=new Zue(t.text),n.sourcesContent&&(n.sourcesContent=null)):n=t.consumer(),this.map.applySourceMap(n,o,this.toUrl(this.path(r)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1){if(this.root){let t;for(let o=this.root.nodes.length-1;o>=0;o--)t=this.root.nodes[o],t.type==="comment"&&t.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(o)}else if(this.css){let t;for(;(t=this.css.lastIndexOf("/*#"))!==-1;){let o=this.css.indexOf("*/",t+3);if(o===-1)break;for(;t>0&&this.css[t-1]===`
`;)t--;this.css=this.css.slice(0,t)+this.css.slice(o+2)}}}}generate(){if(this.clearAnnotation(),oHe&&tHe&&this.isMap())return this.generateMap();{let t="";return this.stringify(this.root,o=>{t+=o}),[t]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=jA.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new jA({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new jA({file:this.outputFile(),ignoreInvalidMapping:!0});let t=1,o=1,r="<no source>",n={generated:{column:0,line:0},original:{column:0,line:0},source:""},i,s;this.stringify(this.root,(a,l,u)=>{if(this.css+=a,l&&u!=="end"&&(n.generated.line=t,n.generated.column=o-1,l.source&&l.source.start?(n.source=this.sourcePath(l),n.original.line=l.source.start.line,n.original.column=l.source.start.column-1,this.map.addMapping(n)):(n.source=r,n.original.line=1,n.original.column=0,this.map.addMapping(n))),s=a.match(/\n/g),s?(t+=s.length,i=a.lastIndexOf(`
`),o=a.length-i):o+=a.length,l&&u!=="start"){let d=l.parent||{raws:{}};(!(l.type==="decl"||l.type==="atrule"&&!l.nodes)||l!==d.last||d.raws.semicolon)&&(l.source&&l.source.end?(n.source=this.sourcePath(l),n.original.line=l.source.end.line,n.original.column=l.source.end.column-1,n.generated.line=t,n.generated.column=o-2,this.map.addMapping(n)):(n.source=r,n.original.line=1,n.original.column=0,n.generated.line=t,n.generated.column=o-1,this.map.addMapping(n)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(t=>t.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let t=this.mapOpts.annotation;return typeof t<"u"&&t!==!0?!1:this.previous().length?this.previous().some(o=>o.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(t=>t.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(t){if(this.mapOpts.absolute||t.charCodeAt(0)===60||/^\w+:\/\//.test(t))return t;let o=this.memoizedPaths.get(t);if(o)return o;let r=this.opts.to?zA(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=zA(Yue(r,this.mapOpts.annotation)));let n=Kue(r,t);return this.memoizedPaths.set(t,n),n}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(t=>{if(t.source&&t.source.input.map){let o=t.source.input.map;this.previousMaps.includes(o)||this.previousMaps.push(o)}});else{let t=new eHe(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}setSourcesContent(){let t={};if(this.root)this.root.walk(o=>{if(o.source){let r=o.source.input.from;if(r&&!t[r]){t[r]=!0;let n=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(n,o.source.input.css)}}});else if(this.css){let o=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(o,this.css)}}sourcePath(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))}toBase64(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))}toFileUrl(t){let o=this.memoizedFileURLs.get(t);if(o)return o;if($ue){let r=$ue(t).toString();return this.memoizedFileURLs.set(t,r),r}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(t){let o=this.memoizedURLs.get(t);if(o)return o;que==="\\"&&(t=t.replace(/\\/g,"/"));let r=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,r),r}};Xue.exports=kU});var ede=Se((aMt,Jue)=>{"use strict";var Que=cb(),NS=class extends Que{constructor(t){super(t),this.type="atrule"}append(...t){return this.proxyOf.nodes||(this.nodes=[]),super.append(...t)}prepend(...t){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...t)}};Jue.exports=NS;NS.default=NS;Que.registerAtRule(NS)});var HA=Se((lMt,nde)=>{"use strict";var tde=cb(),ode,rde,cm=class extends tde{constructor(t){super(t),this.type="root",this.nodes||(this.nodes=[])}normalize(t,o,r){let n=super.normalize(t);if(o){if(r==="prepend")this.nodes.length>1?o.raws.before=this.nodes[1].raws.before:delete o.raws.before;else if(this.first!==o)for(let i of n)i.raws.before=o.raws.before}return n}removeChild(t,o){let r=this.index(t);return!o&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(t)}toResult(t={}){return new ode(new rde,this,t).stringify()}};cm.registerLazyResult=e=>{ode=e};cm.registerProcessor=e=>{rde=e};nde.exports=cm;cm.default=cm;tde.registerRoot(cm)});var sde=Se((cMt,ide)=>{"use strict";var xC={comma(e){return xC.split(e,[","],!0)},space(e){let t=[" ",`
`," "];return xC.split(e,t)},split(e,t,o){let r=[],n="",i=!1,s=0,a=!1,l="",u=!1;for(let d of e)u?u=!1:d==="\\"?u=!0:a?d===l&&(a=!1):d==='"'||d==="'"?(a=!0,l=d):d==="("?s+=1:d===")"?s>0&&(s-=1):s===0&&t.includes(d)&&(i=!0),i?(n!==""&&r.push(n.trim()),n="",i=!1):n+=d;return(o||n!=="")&&r.push(n.trim()),r}};ide.exports=xC;xC.default=xC});var cde=Se((uMt,lde)=>{"use strict";var ade=cb(),rHe=sde(),DS=class extends ade{get selectors(){return rHe.comma(this.selector)}set selectors(t){let o=this.selector?this.selector.match(/,\s*/):null,r=o?o[0]:","+this.raw("between","beforeOpen");this.selector=t.join(r)}constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}};lde.exports=DS;DS.default=DS;ade.registerRule(DS)});var fde=Se((dMt,dde)=>{"use strict";var UA=/[\t\n\f\r "#'()/;[\\\]{}]/g,GA=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,nHe=/.[\r\n"'(/\\]/,ude=/[\da-f]/i;dde.exports=function(t,o={}){let r=t.css.valueOf(),n=o.ignoreErrors,i,s,a,l,u,d,f,p,h,m,g=r.length,b=0,v=[],y=[],k=-1;function S(){return b}function _(B){throw t.error("Unclosed "+B,b)}function x(){return y.length===0&&b>=g}function w(B){if(y.length)return y.pop();if(b>=g)return;let R=B?B.ignoreUnclosed:!1;switch(i=r.charCodeAt(b),i){case 10:case 32:case 9:case 13:case 12:{l=b;do l+=1,i=r.charCodeAt(l);while(i===32||i===10||i===9||i===13||i===12);d=["space",r.slice(b,l)],b=l-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let I=String.fromCharCode(i);d=[I,I,b];break}case 40:{if(m=v.length?v.pop()[1]:"",h=r.charCodeAt(b+1),m==="url"&&h!==39&&h!==34&&h!==32&&h!==10&&h!==9&&h!==12&&h!==13){l=b;do{if(f=!1,l=r.indexOf(")",l+1),l===-1)if(n||R){l=b;break}else _("bracket");for(p=l;r.charCodeAt(p-1)===92;)p-=1,f=!f}while(f);d=["brackets",r.slice(b,l+1),b,l],b=l}else b<=k?d=["(","(",b]:(l=r.indexOf(")",b+1),s=r.slice(b,l+1),l===-1||nHe.test(s)?(k=l===-1?g:l,d=["(","(",b]):(d=["brackets",s,b,l],b=l));break}case 39:case 34:{u=i===39?"'":'"',l=b;do{if(f=!1,l=r.indexOf(u,l+1),l===-1)if(n||R){l=b+1;break}else _("string");for(p=l;r.charCodeAt(p-1)===92;)p-=1,f=!f}while(f);d=["string",r.slice(b,l+1),b,l],b=l;break}case 64:{UA.lastIndex=b+1,UA.test(r),UA.lastIndex===0?l=r.length-1:l=UA.lastIndex-2,d=["at-word",r.slice(b,l+1),b,l],b=l;break}case 92:{for(l=b,a=!0;r.charCodeAt(l+1)===92;)l+=1,a=!a;if(i=r.charCodeAt(l+1),a&&i!==47&&i!==32&&i!==10&&i!==9&&i!==13&&i!==12&&(l+=1,ude.test(r.charAt(l)))){for(;ude.test(r.charAt(l+1));)l+=1;r.charCodeAt(l+1)===32&&(l+=1)}d=["word",r.slice(b,l+1),b,l],b=l;break}default:{i===47&&r.charCodeAt(b+1)===42?(l=r.indexOf("*/",b+2)+1,l===0&&(n||R?l=r.length:_("comment")),d=["comment",r.slice(b,l+1),b,l],b=l):(GA.lastIndex=b+1,GA.test(r),GA.lastIndex===0?l=r.length-1:l=GA.lastIndex-2,d=["word",r.slice(b,l+1),b,l],v.push(d),b=l);break}}return b++,d}function T(B){y.push(B)}return{back:T,endOfFile:x,nextToken:w,position:S}}});var gde=Se((fMt,hde)=>{"use strict";var iHe=ede(),sHe=cU(),aHe=uU(),lHe=HA(),pde=cde(),cHe=fde(),mde={empty:!0,space:!0};function uHe(e){for(let t=e.length-1;t>=0;t--){let o=e[t],r=o[3]||o[2];if(r)return r}}function xU(e,t,o){let r="";for(let n=t;n<o;n++)r+=e[n][1];return r}var wU=class{constructor(t){this.input=t,this.root=new lHe,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let o=new iHe;o.name=t[1].slice(1),o.name===""&&this.unnamedAtrule(o,t),this.init(o,t[2]);let r,n,i,s=!1,a=!1,l=[],u=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),r=t[0],r==="("||r==="["?u.push(r==="("?")":"]"):r==="{"&&u.length>0?u.push("}"):r===u[u.length-1]&&u.pop(),u.length===0)if(r===";"){o.source.end=this.getPosition(t[2]),o.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){a=!0;break}else if(r==="}"){if(l.length>0){for(i=l.length-1,n=l[i];n&&n[0]==="space";)n=l[--i];n&&(o.source.end=this.getPosition(n[3]||n[2]),o.source.end.offset++)}this.end(t);break}else l.push(t);else l.push(t);if(this.tokenizer.endOfFile()){s=!0;break}}o.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(o.raws.afterName
.has-global-padding { padding-right: var(--wp--style--root--padding-right); padding-left: var(--wp--style--root--padding-left); }
.has-global-padding > .alignfull { margin-right: calc(var(--wp--style--root--padding-right) * -1); margin-left: calc(var(--wp--style--root--padding-left) * -1); }
.has-global-padding :where(:not(.alignfull.is-layout-flow) > .has-global-padding:not(.wp-block-block, .alignfull)) { padding-right: 0; padding-left: 0; }
.has-global-padding :where(:not(.alignfull.is-layout-flow) > .has-global-padding:not(.wp-block-block, .alignfull)) > .alignfull { margin-left: 0; margin-right: 0;
`),g+="}"),a.blockStyles){let b=yw(e);u.forEach(v=>{if(v.isStyleVariation&&!a.variationStyles)return;let y=KAe(v,b);[v,...y,...Gq(v),...y.flatMap(Gq)].forEach(k=>{g+=ZAe(k,{tree:l,useRootPaddingAlign:f,disableLayoutStyles:n,hasBlockGapSupport:o,hasFallbackGapSupport:r,disableRootPadding:i})})})}if(a.layoutStyles&&(g=g+".wp-site-blocks > .alignleft { float: left; margin-right: 2em; }",g=g+".wp-site-blocks > .alignright { float: right; margin-left: 2em; }",g=g+".wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }"),a.blockGap&&o){let b=j6(l?.styles?.spacing?.blockGap)||"0.5em";g=g+`:root :where(.wp-site-blocks) > * { margin-block-start: ${b}; margin-block-end: 0; }`,g=g+":root :where(.wp-site-blocks) > :first-child { margin-block-start: 0; }",g=g+":root :where(.wp-site-blocks) > :last-child { margin-block-end: 0; }"}return a.presets&&d.forEach(({selector:b,presets:v})=>{(Wc===b||gw===b)&&(b="");let y=jAe(b,v);y.length>0&&(g+=y)}),g};var XAe=(e,t)=>{if(e?.selectors&&Object.keys(e.selectors).length>0)return e.selectors;let o={root:t};return Object.entries(FAe).forEach(([r,n])=>{let i=js(e,r);i&&(o[n]=i)}),o},_B=(e,t)=>{let{getBlockStyles:o}=(0,Wq.select)(Ri.store),r={};return e.forEach(n=>{let i=n.name,s=js(n);if(!s)return;let a=js(n,"filter.duotone");if(!a){let h=js(n),m=(0,Ri.getBlockSupport)(n,"color.__experimentalDuotone",!1);typeof m=="string"&&h&&(a=Fl(h,m))}let l=!!n?.supports?.layout||!!n?.supports?.__experimentalLayout,u=n?.supports?.spacing?.blockGap?.__experimentalDefault,d=o(i),f={};d?.forEach(h=>{let m=t?`-${t}`:"",g=`${h.name}${m}`,b=F6(g,s);f[g]=b});let p=XAe(n,s);r[i]={duotoneSelector:a??void 0,fallbackGapValue:u,featureSelectors:Object.keys(p).length?p:void 0,hasLayoutSupport:l,name:i,selector:s,styleVariationSelectors:d?.length?f:void 0}}),r};function xB(e,t){let o="";return!e||e.trim()===""||e.split("&").forEach(n=>{if(!n||n.trim()==="")return;if(!n.includes("{"))o+=`:root :where(${t}){${n.trim()}}`;else{let s=n.replace("}","").split("{");if(s.length!==2)return;let[a,l]=s,u=a.match(/([>+~\s]*::[a-zA-Z-]+)/),d=u?u[1]:"",f=u?a.replace(d,"").trim():a.trim(),p;f===""?p=t:p=a.startsWith(" ")?Fl(t,f):gB(t,f),o+=`:root :where(${p})${d}{${l.trim()}}`}}),o}function wB(e,t,o,{resolveRefs:r=!0}={}){if(!e?.styles?.blocks?.[t]?.variations?.[o])return;let n=s=>{Object.keys(s).forEach(a=>{let l=s[a];if(typeof l=="object"&&l!==null)if(l.ref!==void 0)if(typeof l.ref!="string"||l.ref.trim()==="")delete s[a];else{let u=Mo(e,l.ref);u!=null?s[a]=u:delete s[a]}else n(l),Object.keys(l).length===0&&delete s[a]})},i=JSON.parse(JSON.stringify(e.styles.blocks[t].variations[o]));return r&&n(i),i}var K6="default";function Xq(e){let t=e?.viewport,o=e?.pseudoState;return(!t||t===K6)&&(!o||o===K6)}function QAe(e){return Xq(e)?[]:[e.viewport,e.pseudoState].filter(t=>!!t&&t!==K6)}function JAe(e,t){let o=QAe(t);return o.length?Mo(e,o):e}var e2e=new Set(["blocks","variations","css"]),W6=Object.freeze({value:{},sources:{}}),t2e={root:{layer:"root"},element:{layer:"element"},block:{layer:"block"},blockVariation:{layer:"blockVariation"}};function lp(e){let t=t2e[e];return t?{...t}:null}function cp(e,t){return!e||!t?null:{styles:e,source:t}}function o2e(e){return e.join(".")}function r2e(e){return{...e}}function Qq(e){return e===""||e===null||typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===0}function $6(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&typeof e.ref=="string"}function up(e){if(!e||typeof e!="object"||Array.isArray(e))return null;let t={};for(let o of Object.keys(e))if(!e2e.has(o)){if(o==="elements"){e.elements&&typeof e.elements=="object"&&(t.elements=e.elements);continue}Qq(e[o])||(t[o]=e[o])}return Object.keys(t).length===0?null:t}var Yq=new Set(["backgroundImage"]);function Jq(e,t,o,r,n,i=[]){if(!t||typeof t!="object"||Array.isArray(t))return e;for(let s of Object.keys(t)){let a=t[s];if(Qq(a))continue;if($6(a)){if(a.ref.trim()==="")continue;let u=Mo(o,a.ref);if(u==null||$6(u))continue;a=u}let l=[...i,s];if(!Yq.has(s)&&a!==null&&typeof a=="object"&&!Arra
${_.join("; ")};
}`),s&&g&&m&&(S+=xp(t,l,"flex",m)),S},getOrientation(e){let{orientation:t="horizontal"}=e;return t},getAlignments(){return[]}};function tQ({orientation:e="horizontal"}={}){return e==="horizontal"?XX.horizontal:XX.vertical}function rVe(e,t){if(!(t==="horizontal"&&e==="space-between"||t==="vertical"&&e==="stretch"))return e}function nVe(e){return e==="horizontal"?["top","center","bottom","stretch"]:["top","center","bottom","space-between"]}function QX({layout:e,onChange:t,isToolbar:o=!1}){let{orientation:r="horizontal"}=e,{verticalAlignment:n=tQ(e)}=e,i=a=>{t({...e,verticalAlignment:a})},s=nVe(r);return o?(0,yo.jsx)(lP,{onChange:i,value:n,controls:s}):(0,yo.jsx)(wn.__experimentalToggleGroupControl,{label:(0,ar.__)("Alignment"),onChange:i,value:n,className:"block-editor-hooks__flex-layout-alignment-controls",children:s.map(a=>{let{icon:l,label:u}=tVe[a];return(0,yo.jsx)(wn.__experimentalToggleGroupControlOptionIcon,{value:a,icon:l,label:u},a)})})}var iVe={placement:"bottom-start"};function JX({layout:e,onChange:t,isToolbar:o=!1}){let{justifyContent:r="left",orientation:n="horizontal"}=e,i=l=>{t({...e,justifyContent:l})},s=["left","center","right"];if(n==="horizontal"?s.push("space-between"):s.push("stretch"),o)return(0,yo.jsx)(_v,{allowedControls:s,value:r,onChange:i,popoverProps:iVe});let a=[{value:"left",icon:ip,label:(0,ar.__)("Justify items left")},{value:"center",icon:np,label:(0,ar.__)("Justify items center")},{value:"right",icon:sp,label:(0,ar.__)("Justify items right")}];return n==="horizontal"?a.push({value:"space-between",icon:Zy,label:(0,ar.__)("Space between items")}):a.push({value:"stretch",icon:Xy,label:(0,ar.__)("Stretch items")}),(0,yo.jsx)(wn.__experimentalToggleGroupControl,{label:(0,ar.__)("Justification"),value:r,onChange:i,className:"block-editor-hooks__flex-layout-justification-controls",children:a.map(({value:l,icon:u,label:d})=>(0,yo.jsx)(wn.__experimentalToggleGroupControlOptionIcon,{value:l,icon:u,label:d},l))})}function sVe({layout:e,onChange:t}){let{flexWrap:o="wrap"}=e;return(0,yo.jsx)(wn.ToggleControl,{label:(0,ar.__)("Allow to wrap to multiple lines"),onChange:r=>{t({...e,flexWrap:r?"wrap":"nowrap"})},checked:o==="wrap"})}function aVe({layout:e,onChange:t}){let{orientation:o="horizontal",verticalAlignment:r,justifyContent:n}=e;return(0,yo.jsxs)(wn.__experimentalToggleGroupControl,{className:"block-editor-hooks__flex-layout-orientation-controls",label:(0,ar.__)("Orientation"),value:o,onChange:i=>{let s=r,a=n;return i==="horizontal"?(r==="space-between"&&(s="center"),n==="stretch"&&(a="left")):(r==="stretch"&&(s="top"),n==="space-between"&&(a="left")),t({...e,orientation:i,verticalAlignment:s,justifyContent:a})},children:[(0,yo.jsx)(wn.__experimentalToggleGroupControlOptionIcon,{icon:Fx,value:"horizontal",label:(0,ar.__)("Horizontal")}),(0,yo.jsx)(wn.__experimentalToggleGroupControlOptionIcon,{icon:zF,value:"vertical",label:(0,ar.__)("Vertical")})]})}var oQ=c(G(),1);var rQ={name:"default",label:(0,oQ.__)("Flow"),inspectorControls:function(){return null},toolBarControls:function(){return null},getLayoutStyle:function({selector:t,style:o,blockName:r,hasBlockGapSupport:n,layoutDefinitions:i=Gs}){let s=Pi(o?.spacing?.blockGap),a="";$t(r,"spacing","blockGap")||(s?.top?a=Pi(s?.top):typeof s=="string"&&(a=Pi(s)));let l="";return n&&a&&(l+=xp(t,i,"default",a)),l},getOrientation(){return"vertical"},getAlignments(e,t){let o=iP(e);if(e.alignments!==void 0)return e.alignments.includes("none")||e.alignments.unshift("none"),e.alignments.map(n=>({name:n,info:o[n]}));let r=[{name:"left"},{name:"center"},{name:"right"}];if(!t){let{contentSize:n,wideSize:i}=e;n&&r.unshift({name:"full"}),i&&r.unshift({name:"wide",info:o.wide})}return r.unshift({name:"none",info:o.none}),r}};var ni=c(U(),1),Ra=c(G(),1);var nQ=c(rv(),1);var kr=c(E(),1),lVe="var(--wp--style--global--content-size, none)",cVe="var(--wp--style--global--wide-size, none)",iQ={name:"constrained",label:(0,Ra.__)("Constrained"),inspectorControls:function({layout:t,onChange:o,layoutBlockSupport:r={},resetLayout:n={},clientId:i}){let{wideSize:s,contentSize
${ls(t,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")} {
${I.join("; ")};
}
${ls(t,"> .alignwide")} {
max-width: ${R};
}
${ls(t,"> .alignfull")} {
max-width: none;
}
`:"";return S&&!w?A+=`${ls(t,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")}
{ margin-left: ${y}; margin-right: ${k}; }`:l||(h==="left"?A+=`${ls(t,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")}
{ margin-left: ${y}; }`:h==="right"&&(A+=`${ls(t,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")}
{ margin-right: ${k}; }`)),b&&n?.spacing?.padding&&(0,nQ.getCSSRules)(n).forEach(O=>{if(O.key==="paddingRight"){let N=O.value==="0"?"0px":O.value;A+=`
${ls(t,"> .alignfull")} {
margin-right: calc(${N} * -1);
}
`}else if(O.key==="paddingLeft"){let N=O.value==="0"?"0px":O.value;A+=`
${ls(t,"> .alignfull")} {
margin-left: calc(${N} * -1);
}
`}}),s&&g&&v&&(A+=xp(t,a,"constrained",v)),A},getOrientation(){return"vertical"},getAlignments(e){let t=iP(e);if(e.alignments!==void 0)return e.alignments.includes("none")||e.alignments.unshift("none"),e.alignments.map(i=>({name:i,info:t[i]}));let{contentSize:o,wideSize:r}=e,n=[{name:"left"},{name:"center"},{name:"right"}];return o&&n.unshift({name:"full"}),r&&n.unshift({name:"wide",info:t.wide}),n.unshift({name:"none",info:t.none}),n}},uVe={placement:"bottom-start"};function dVe({layout:e,onChange:t}){let{justifyContent:o="center"}=e;return(0,kr.jsx)(_v,{allowedControls:["left","center","right"],value:o,onChange:i=>{t({...e,justifyContent:i})},popoverProps:uVe})}var Lr=c(G(),1),Mt=c(U(),1),cP=c(F(),1);var Pt=c(E(),1),fVe={px:600,"%":100,vw:100,vh:100,em:38,rem:38,svw:100,lvw:100,dvw:100,svh:100,lvh:100,dvh:100,vi:100,svi:100,lvi:100,dvi:100,vb:100,svb:100,lvb:100,dvb:100,vmin:100,svmin:100,lvmin:100,dvmin:100,vmax:100,svmax:100,lvmax:100,dvmax:100},pVe=[{value:"px",label:"px",default:0},{value:"rem",label:"rem",default:0},{value:"em",label:"em",default:0}],sQ={name:"grid",label:(0,Lr.__)("Grid"),inspectorControls:function({layout:t={},onChange:o,layoutBlockSupport:r={},resetLayout:n={},clientId:i}){let{allowSizingOnChildren:s=!1}=r,a=!0,l=!t?.isManualPlacement||window.__experimentalEnableGridInteractivity,u=!t?.isManualPlacement,d=t.isManualPlacement?3:void 0,f=(S,_)=>(t?.[S]??_)!==(n?.[S]??_),p=()=>f("isManualPlacement",!1),h=()=>f("columnCount",d)||f("rowCount"),m=()=>f("minimumColumnWidth"),g=()=>f("autoFit",!1),b=()=>o(Ge({...t,isManualPlacement:n?.isManualPlacement,rowCount:n?.rowCount,minimumColumnWidth:n?.minimumColumnWidth})),v=()=>o(Ge({...t,columnCount:n?.columnCount??d,rowCount:n?.rowCount})),y=()=>o(Ge({...t,minimumColumnWidth:n?.minimumColumnWidth})),k=()=>o(Ge({...t,autoFit:n?.autoFit}));return(0,Pt.jsxs)(Pt.Fragment,{children:[window.__experimentalEnableGridInteractivity&&(0,Pt.jsx)(Mt.__experimentalToolsPanelItem,{label:(0,Lr.__)("Grid item position"),hasValue:p,onDeselect:b,isShownByDefault:!0,panelId:i,children:(0,Pt.jsx)(bVe,{layout:t,onChange:o})}),a&&(0,Pt.jsx)(Mt.__experimentalToolsPanelItem,{label:(0,Lr.__)("Columns and rows"),hasValue:h,onDeselect:v,isShownByDefault:!0,panelId:i,children:(0,Pt.jsx)(hVe,{layout:t,onChange:o,allowSizingOnChildren:s})}),l&&(0,Pt.jsx)(Mt.__experimentalToolsPanelItem,{label:(0,Lr.__)("Min. column width"),hasValue:m,onDeselect:y,isShownByDefault:!0,panelId:i,children:(0,Pt.jsx)(mVe,{layout:t,onChange:o})}),u&&(0,Pt.jsx)(Mt.__experimentalToolsPanelItem,{label:(0,Lr.__)("Fill available space"),hasValue:g,onDeselect:k,panelId:i,children:(0,Pt.jsx)(gVe,{layout:t,onChange:o})})]})},toolBarControls:function(){return null},getLayoutStyle:function({selector:t,layout:o={},viewportOverrides:r,style:n,blockName:i,hasBlockGapSupport:s,globalBlockGapValue:a,layoutDefinitions:l=Gs}){let u=r!==void 0,d=u?{...o,...r}:o,f=T=>Object.hasOwn(r||{},T),{minimumColumnWidth:p=null,columnCount:h=null,rowCount:m=null,autoFit:g=!1}=d,b=g?"auto-fit":"auto-fill",v="1.2rem";if(a){let T=Vw(a);v=Hl(T?.left)||Hl(T?.top)||"1.2rem"}let y=n?.spacing?.blockGap&&!$t(i,"spacing","blockGap")?Pi(n?.spacing?.blockGap,v):void 0,k=!u||Object.hasOwn(n?.spacing||{},"blockGap"),S="",_=[],x=!u||f("minimumColumnWidth")||f("columnCount")||f("autoFit")||k&&p&&h>0,w=(!u||f("rowCount"))&&h&&m;if(x&&p&&h>0){let T=y||v;(T==="0"||T===0)&&(T="0px");let B=`max(min( ${p}, 100%), ( 100% - (${T}*${h-1}) ) / ${h})`;_.push(`grid-template-columns: repeat(${b}, minmax(${B}, 1fr))`)}else x&&h?_.push(`grid-template-columns: repeat(${h}, minmax(0, 1fr))`):x&&_.push(`grid-template-columns: repeat(${b}, minmax(min(${p||"12rem"}, 100%), 1fr))`);if(x){let T=!o?.columnCount||o?.columnCount&&o?.minimumColumnWidth;(!h||p)&&(!u||!T)&&_.push("container-type: inline-size")}return w&&_.push(`grid-template-rows: repeat(${m}, minmax(1rem, auto))`),_.length&&(S=`${ls(t)} { ${_.join("; ")}; }`),s&&k&&y&&(S+=xp(t,l,"grid",y)),S},getOrientation(){return"horizontal"},getAlignments(){return[]}};function mVe({layout:e,onChange:t}){let{minimumColumnW
`))):I&&(A=[I],w.setCustomValidity(I))):N&&(tie(w,g),P.customError=!1,w.validationMessage?(O=w.validationMessage,A=[w.validationMessage]):w.validity.valid&&!P.valid&&(P.valid=!0))}let z={value:_,state:P,error:O??(Array.isArray(I)?I[0]:I??""),errors:A,initialValue:n.initialValue};B(z),o(z)}),k=me(_=>{h.clear();let x=u();x&&_!==""&&i?(b.current+=1,h.start(i,()=>{y(_)})):y(_,!x)}),S=tm.useCallback((_,x={})=>Ut(p(x),l.valid===!1&&!l.disabled&&!_?{"aria-invalid":!0}:Qt),[p,l.disabled,l.valid]);return tm.useMemo(()=>({getValidationProps:S,inputRef:m,registerInput:v,commit:y,change:k}),[S,v,y,k])}var IO=c(ce(),1);function rie(e){let{commit:t,invalid:o,markedDirtyRef:r,name:n,setRegisteredFieldName:i,setRegisteredFieldId:s,setValidityData:a,validityData:l}=e,{formRef:u}=za(),d=IO.useRef(null),f=IO.useRef(null),p=IO.useRef(null),h=me(()=>{let S=f.current;if(S)return S.getValue?S.getValue():S.value});function m(S){return S.value===void 0?h():S.value}let g=me(()=>{let S=f.current;if(r.current=!0,!S){t(l.value);return}t(m(S))});function b(){let S=f.current;!S||!S.id||u.current.fields.set(S.id,{getValue:h,name:n??S.name,controlRef:S.controlRef??p,validityData:eb(l,o),validate:g})}function v(S=f.current?.id){S&&u.current.fields.delete(S)}function y(){let S=f.current;if(!S)return;let _=m(S);l.initialValue===null&&_!==null&&a(x=>({...x,initialValue:_}))}le(()=>{let S=f.current;!S||!S.id||(i(n?void 0:S.name),u.current.fields.set(S.id,{getValue:h,name:n??S.name,controlRef:S.controlRef??p,validityData:eb(l,o),validate:g}))},[u,h,o,n,i,g,l]),le(()=>{let S=u.current.fields;return()=>{let _=f.current?.id;_&&S.delete(_)}},[u]);let k=me((S,_)=>{if(!_){d.current===S&&(d.current=null,v(),f.current=null,i(void 0),s(void 0));return}let x=f.current?.id;d.current=S,f.current=_,n||i(_.name),s(_.id),x&&x!==_.id&&v(x),y(),b()});return[g,k]}var OO=c(E(),1),$6e=Fr.forwardRef(function(t,o){let{errors:r,validationMode:n,submitAttemptedRef:i}=za(),{render:s,className:a,validate:l,validationDebounceTime:u=0,validationMode:d=n,name:f,disabled:p=!1,invalid:h,dirty:m,touched:g,actionsRef:b,style:v,...y}=t,k=Jne(!0)?.disabled,S=me(l||(()=>null)),_=k||p,[x,w]=Fr.useState(!1),[T,B]=Fr.useState(!1),[R,I]=Fr.useState(!1),[A,P]=Fr.useState(!1),O=m??T,N=g??x,z=Fr.useRef(O),V=Fr.useRef(void 0),[M,D]=Fr.useState(),L=f??M;le(()=>{m!==void 0&&(z.current=m)},[m]);let j=Fr.useCallback(()=>V.current,[]),q=Fr.useCallback(be=>{V.current=be},[]),J=me(be=>{m===void 0&&(be&&(z.current=!0),B(be))}),te=me(be=>{g===void 0&&w(be)}),ee=me(()=>d==="onChange"||d==="onSubmit"&&i.current),$=L&&Object.hasOwn(r,L)?r[L]:null,W=!!(Array.isArray($)?$.length:$),Y=h===!0||W,[Z,oe]=Fr.useState({state:Qg,error:"",errors:[],value:null,initialValue:null}),ne=_?null:!Y&&Z.state.valid,X=Fr.useMemo(()=>({disabled:_,touched:N,dirty:O,valid:ne,filled:R,focused:A}),[_,N,O,ne,R,A]),re=oie({setValidityData:oe,validate:S,validityData:Z,validationDebounceTime:u,invalid:Y,markedDirtyRef:z,state:X,shouldValidateOnChange:ee,getRegisteredFieldId:j}),[ae,ve]=rie({commit:re.commit,invalid:Y,markedDirtyRef:z,name:f,setRegisteredFieldName:D,setRegisteredFieldId:q,setValidityData:oe,validityData:Z});Fr.useImperativeHandle(b,()=>({validate:ae}),[ae]);let xe=Fr.useMemo(()=>({invalid:Y,name:L,validityData:Z,setValidityData:oe,disabled:_,touched:N,setTouched:te,dirty:O,setDirty:J,filled:R,setFilled:I,focused:A,setFocused:P,validate:S,validationMode:d,validationDebounceTime:u,shouldValidateOnChange:ee,state:X,markedDirtyRef:z,registerFieldControl:ve,validation:re}),[Y,L,Z,_,N,te,O,J,R,I,A,P,S,d,u,ee,X,ve,re]),ge=We("div",t,{ref:o,state:X,props:y,stateAttributesMapping:fi});return(0,OO.jsx)(bH.Provider,{value:xe,children:ge})}),nie=Fr.forwardRef(function(t,o){return(0,OO.jsx)(BO,{children:(0,OO.jsx)($6e,{...t,ref:o})})});var Z0=c(ce(),1);var iie=Z0.forwardRef(function(t,o){let{render:r,className:n,style:i,id:s,nativeLabel:a=!0,...l}=t,u=tn(!1),d=vO(),{labelId:f}=En(),p={...u.state,disabled:u.disabled||d.disabled},h=Z0.useRef(null),m=_O({id:f??s,native:a});return We("label",t,{ref:[o,h],state:p,props:[m,l],stateAttributesMap
`),(0,yce.__unstableStripHTML)(e).trim().replace(/\n\n+/g,`
`)}function ur(e,t,{focus:o=!0}={}){return e.contentEditable===String(t)?t:(e.contentEditable=t,t?e.isContentEditable?(e.setAttribute("role","textbox"),e.setAttribute("aria-multiline","true"),e.setAttribute("aria-label",(0,bce.__)("Editor canvas")),o&&e.focus({preventScroll:!0}),!0):(e.removeAttribute("contenteditable"),!1):(e.removeAttribute("role"),e.removeAttribute("aria-multiline"),e.removeAttribute("aria-label"),!1))}function kce(){let e=(0,vA.useRegistry)(),t=(0,vA.useSelect)(o=>{let{getSelectedBlockClientId:r,canHostEditableRoot:n,isZoomOut:i}=H(o(C));return!i()&&n(r())},[]);return(0,Sce.useRefEffect)(o=>{if(!t)return;let{getSelectedBlockClientId:r,hasMultiSelection:n,isMultiSelecting:i}=e.select(C);if(!ur(o,!0,{focus:!1}))return;let{activeElement:s}=o.ownerDocument,a=o.ownerDocument.defaultView.getSelection();return s!==o&&s?.isContentEditable&&o.contains(s)&&qo(s)===r()&&a.anchorNode&&s.contains(a.anchorNode)&&o.focus(),()=>{if(!(n()||i())&&(ur(o,!1),o.ownerDocument.activeElement===o)){let l=La(o.ownerDocument.defaultView.getSelection(),o);l&&qo(l)===r()&&l.focus()}}},[t,e])}var uC=c(io(),1),_ce=c(Q(),1),xce=c(fe(),1);function wce(){let{hasMultiSelection:e}=(0,_ce.useSelect)(C);return(0,xce.useRefEffect)(t=>{function o(r){if(r.defaultPrevented||r.keyCode!==uC.HOME&&r.keyCode!==uC.END||r.metaKey||r.ctrlKey||r.altKey||!r.target.isContentEditable||e())return;let n=t.ownerDocument.defaultView.getSelection();La(n,t)&&(r.preventDefault(),n.modify(r.shiftKey?"extend":"move",r.keyCode===uC.HOME?"backward":"forward","lineboundary"))}return t.addEventListener("keydown",o),()=>{t.removeEventListener("keydown",o)}},[])}var Cce=c(fe(),1),Ece=c(Q(),1);function u8e(e){let{isMultiSelecting:t,getMultiSelectedBlockClientIds:o,hasMultiSelection:r,getSelectedBlockClientId:n,getSelectedBlocksInitialCaretPosition:i,__unstableIsFullySelected:s}=e(C);return{isMultiSelecting:t(),multiSelectedBlockClientIds:o(),hasMultiSelection:r(),selectedBlockClientId:n(),initialPosition:i(),isFullSelection:s()}}function Tce(){let{initialPosition:e,isMultiSelecting:t,multiSelectedBlockClientIds:o,hasMultiSelection:r,selectedBlockClientId:n,isFullSelection:i}=(0,Ece.useSelect)(u8e,[]);return(0,Cce.useRefEffect)(s=>{let{ownerDocument:a}=s,{defaultView:l}=a;if(e==null||!r||t)return;let{length:u}=o;u<2||i&&(ur(s,!0),l.getSelection().removeAllRanges())},[r,t,o,n,e,i])}var RS=c(Tt(),1),Z7=c(io(),1),SA=c(Q(),1),kA=c(fe(),1),dC=c(F(),1);var X7=c(E(),1);function Rce(){let e=(0,dC.useRef)(),t=(0,dC.useRef)(),o=(0,dC.useRef)(),{hasMultiSelection:r,getSelectedBlockClientId:n,getBlockCount:i,getBlockOrder:s,getLastFocus:a,getSectionRootClientId:l,isZoomOut:u}=H((0,SA.useSelect)(C)),{setLastFocus:d}=H((0,SA.useDispatch)(C)),f=(0,dC.useRef)();function p(v){let y=e.current.ownerDocument===v.target.ownerDocument?e.current:e.current.ownerDocument.defaultView.frameElement;if(f.current)f.current=null;else if(r())e.current.focus();else if(n())a()?.current?a().current.focus():e.current.querySelector(`[data-block="${n()}"]`).focus();else if(u()){let k=l(),S=s(k);S.length?e.current.querySelector(`[data-block="${S[0]}"]`).focus():k?e.current.querySelector(`[data-block="${k}"]`).focus():y.focus()}else{let k=v.target.compareDocumentPosition(y)&v.target.DOCUMENT_POSITION_FOLLOWING,S=RS.focus.tabbable.find(e.current);S.length&&(k?S[0]:S[S.length-1]).focus()}}let h=(0,X7.jsx)("div",{ref:t,tabIndex:"0",onFocus:p}),m=(0,X7.jsx)("div",{ref:o,tabIndex:"0",onFocus:p}),g=(0,kA.useRefEffect)(v=>{function y(w){if(w.defaultPrevented||w.keyCode!==Z7.TAB||!o.current||!t.current)return;let{target:T,shiftKey:B}=w,R=B?"findPrevious":"findNext",I=RS.focus.tabbable[R](T),A=T.closest("[data-block]"),P=A&&I&&(Eee(A,I)||Jc(A,I));if((0,RS.isFormElement)(I)&&P)return;let O=B?t:o;f.current=!0,O.current.focus({preventScroll:!0})}function k(w){d({...a(),current:w.target});let{ownerDocument:T}=v;!w.relatedTarget&&w.target.hasAttribute("data-block")&&T.activeElement===T.body&&i()===0&&v.focus()}function S(w){if(w.keyCode!==Z7.TAB||w.target?.getAttribute("role")==="region"||e.current===w.target)return;let
<html>
<head>
<meta charset="utf-8">
<base href="${window.location.href}">
<style>
html{
height: auto !important;
min-height: 100%;
}
/* Lowest specificity to not override global styles */
:where(body) {
margin: 0;
/* Default background color in case zoom out mode background
colors the html element */
background-color: white;
}
</style>
${e.styles??""}
${e.scripts??""}
</head>
${o}
</html>`;return t=URL.createObjectURL(new Blob([r],{type:"text/html"})),iue.set(e,t),v8e?.register(e,t),t}function k8e({contentRef:e,children:t,tabIndex:o=0,scale:r=1,frameSize:n=0,readonly:i,forwardedRef:s,title:a=(0,aue.__)("Editor canvas"),...l}){let{resolvedAssets:u,isPreviewMode:d}=(0,tU.useSelect)(P=>{let O=P(C).getSettings();return{resolvedAssets:O.__unstableResolvedAssets,isPreviewMode:O.isPreviewMode}},[]),[f,p]=(0,lb.useState)(),[h,m]=(0,lb.useState)([]),[g,b,v]=eU(),y=(0,Ad.useRefEffect)(P=>{let O;function N(D){D.preventDefault()}function z(D){D.target.tagName==="A"&&D.target.getAttribute("href")?.startsWith("#")&&(D.preventDefault(),O.defaultView.location.hash=D.target.getAttribute("href").slice(1))}let{ownerDocument:V}=P;m(Array.from(V.body.classList).filter(D=>D.startsWith("admin-color-")||D.startsWith("post-type-")||D==="wp-embed-responsive"));function M(){let{contentDocument:D}=P,{documentElement:L}=D;O=D,p(D),L.classList.add("block-editor-iframe__html"),D.dir=V.dir;for(let j of oue())D.getElementById(j.id)||(D.head.appendChild(j.cloneNode(!0)),d||console.warn(`${j.id} was added to the iframe incorrectly. Please use block.json or enqueue_block_assets to add styles to the iframe.`,j));O.addEventListener("dragover",N,!1),O.addEventListener("drop",N,!1),O.addEventListener("click",z)}return P.addEventListener("load",M),()=>{p(void 0),P.removeEventListener("load",M),O?.removeEventListener("dragover",N),O?.removeEventListener("drop",N),O?.removeEventListener("click",z)}},[]),{contentResizeListener:k,containerResizeListener:S,isZoomedOut:_,scaleContainerWidth:x}=nue({scale:r,frameSize:parseInt(n),iframeDocument:f}),w=(0,Ad.useDisabled)({isDisabled:!i}),T=(0,Ad.useMergeRefs)([y8e(f),e,b,w]),B=(0,Ad.useRefEffect)(P=>P.ownerDocument.defaultView?(T(P),()=>T(null)):()=>{},[T]),R=S8e(u),I=o>=0&&!d,A=(0,ic.jsxs)(ic.Fragment,{children:[I&&g,(0,ic.jsx)("iframe",{...l,style:{...l.style,height:l.style?.height,border:0},ref:(0,Ad.useMergeRefs)([s,y]),tabIndex:o,src:R,title:a,onKeyDown:P=>{if(l.onKeyDown&&l.onKeyDown(P),P.currentTarget.ownerDocument!==P.target.ownerDocument){let{stopPropagation:O}=P.nativeEvent;P.nativeEvent.stopPropagation=()=>{},P.stopPropagation(),P.nativeEvent.stopPropagation=O,cue(P,window.KeyboardEvent,P.currentTarget)}},children:f&&(0,lb.createPortal)((0,ic.jsxs)("body",{ref:B,className:K("block-editor-iframe__body","editor-styles-wrapper",...h),children:[k,(0,ic.jsx)(lue.__experimentalStyleProvider,{document:f,children:t})]}),f.documentElement)}),I&&v]});return(0,ic.jsxs)("div",{className:"block-editor-iframe__container",children:[S,(0,ic.jsx)("div",{className:K("block-editor-iframe__scale-container",_&&"is-zoomed-out"),style:{"--wp-block-editor-iframe-zoom-out-scale-container-width":_&&`${x}px`},children:A})]})}function _8e(e,t){return(0,tU.useSelect)(r=>r(C).getSettings().__internalIsInitialized,[])?(0,ic.jsx)(k8e,{...e,forwardedRef:t}):null}var LS=(0,lb.forwardRef)(_8e);var rfe=c(U(),1),jS=c(F(),1),nfe=c(Q(),1);var OA={attribute:/\[\s*(?:(?<namespace>\*|[-\w\P{ASCII}]*)\|)?(?<name>[-\w\P{ASCII}]+)\s*(?:(?<operator>\W?=)\s*(?<value>.+?)\s*(\s(?<caseSensitive>[iIsS]))?\s*)?\]/gu,id:/#(?<name>[-\w\P{ASCII}]+)/gu,class:/\.(?<name>[-\w\P{ASCII}]+)/gu,comma:/\s*,\s*/g,combinator:/\s*[\s>+~]\s*/g,"pseudo-element":/::(?<name>[-\w\P{ASCII}]+)(?:\((?<argument>*)\))?/gu,"pseudo-class":/:(?<name>[-\w\P{ASCII}]+)(?:\((?<argument>*)\))?/gu,universal:/(?:(?<namespace>\*|[-\w\P{ASCII}]*)\|)?\*/gu,type:/(?:(?<namespace>\*|[-\w\P{ASCII}]*)\|)?(?<name>[-\w\P{ASCII}]+)/gu},x8e=new Set(["combinator","comma"]);var w8e=e=>{switch(e){case"pseudo-element":case"pseudo-class":return new RegExp(OA[e].source.replace("(?<argument>\xB6*)","(?<argument>.*)"),"gu");default:return OA[e]}};function C8e(e,t){let o=0,r="";for(;t<e.length;t++){let n=e[t];switch(n){case"(":++o;break;case")":--o;break}if(r+=n,o===0)return r}return r}function E8e(e,t=OA){if(!e)return[];let o=[e];for(let[n,i]of Object.entries(t))for(let s=0;s<o.length;s++){let a=o[s];if(typeof a!="string")continue;i.lastIndex=0;let l=i.exec(a);if(!l)continue;let u=l.
`+i.showSourceCode(!1)):console.warn("wp.blockEditor.transformStyles Failed to transform CSS.",i),null}}var GHe=(e,t="",o)=>{let r=Xde.get(t);return r||(r=new WeakMap,Xde.set(t,r)),e.map(n=>{let i=r.get(n);return i||(i=UHe(n,t,o),r.set(n,i)),i})},zS=GHe;var fm=c(E(),1);Yf([qf,jy]);function WHe(e,t){return(0,jS.useCallback)(o=>{if(!o)return;let{ownerDocument:r}=o,{defaultView:n,body:i}=r,s=t?r.querySelector(t):i,a;if(s)a=n?.getComputedStyle(s,null).getPropertyValue("background-color");else{let u=r.createElement("div");u.classList.add("editor-styles-wrapper"),i.appendChild(u),a=n?.getComputedStyle(u,null).getPropertyValue("background-color"),i.removeChild(u)}let l=Lo(a);l.luminance()>.5||l.alpha()===0?i.classList.remove("is-dark-theme"):i.classList.add("is-dark-theme")},[e,t])}function $He({styles:e,scope:t,transformOptions:o}){let r=(0,nfe.useSelect)(s=>H(s(C)).getStyleOverrides(),[]),[n,i]=(0,jS.useMemo)(()=>{let s=Object.values(e??[]),a=[...r.filter(([,l])=>l?.__unstableType!=="custom-css"),...r.filter(([,l])=>l?.__unstableType==="custom-css")];for(let[l,u]of a){let d=s.findIndex(({id:p})=>l===p),f={...u,id:l};d===-1?s.push(f):s[d]=f}return[zS(s.filter(l=>l?.css),t,o),s.filter(l=>l.__unstableType==="svgs").map(l=>l.assets).join("")]},[e,r,t,o]);return(0,fm.jsxs)(fm.Fragment,{children:[(0,fm.jsx)("style",{ref:WHe(n,t)}),n.map((s,a)=>(0,fm.jsx)("style",{children:s},a)),(0,fm.jsx)(rfe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 0 0",width:"0",height:"0",role:"none",style:{visibility:"hidden",position:"absolute",left:"-9999px",overflow:"hidden"},dangerouslySetInnerHTML:{__html:i}})]})}var Ld=(0,jS.memo)($He);var Ka=c(E(),1),KHe=(0,ZA.memo)(HS),VU=2e3,YHe=[];function qHe({viewportWidth:e,containerWidth:t,minHeight:o,additionalStyles:r=YHe}){e||(e=t);let[n,{height:i}]=(0,RC.useResizeObserver)(),{styles:s}=(0,ife.useSelect)(d=>({styles:d(C).getSettings().styles}),[]),a=(0,ZA.useMemo)(()=>s&&[...s,{css:"body{height:auto;overflow:hidden;border:none;padding:0;}",__unstableType:"presets"},...r],[s,r]),l=t/e,u=i?t/(i*l):0;return(0,Ka.jsx)(sfe.Disabled,{className:"block-editor-block-preview__content",style:{transform:`scale(${l})`,aspectRatio:u,maxHeight:i>VU?VU*l:void 0,minHeight:o},children:(0,Ka.jsxs)(LS,{contentRef:(0,RC.useRefEffect)(d=>{let{ownerDocument:{documentElement:f}}=d;f.classList.add("block-editor-block-preview__content-iframe"),f.style.position="absolute",f.style.width="100%",d.style.boxSizing="border-box",d.style.position="absolute",d.style.width="100%"},[]),"aria-hidden":!0,tabIndex:-1,style:{position:"absolute",width:e,height:i,pointerEvents:"none",maxHeight:VU,minHeight:l!==0&&l<1&&o?o/l:o},children:[(0,Ka.jsx)(Ld,{styles:a}),n,(0,Ka.jsx)(KHe,{renderAppender:!1})]})})}function afe(e){let[t,{width:o}]=(0,RC.useResizeObserver)();return(0,Ka.jsxs)(Ka.Fragment,{children:[(0,Ka.jsx)("div",{style:{position:"relative",width:"100%",height:0},children:t}),(0,Ka.jsx)("div",{className:"block-editor-block-preview__container",children:!!o&&(0,Ka.jsx)(qHe,{...e,containerWidth:o})})]})}var US=c(F(),1),dfe=c(cfe(),1),ufe=(0,dfe.createQueue)();function ffe({children:e,placeholder:t}){let[o,r]=(0,US.useState)(!1);return(0,US.useEffect)(()=>{let n={};return ufe.add(n,()=>{(0,US.flushSync)(()=>{r(!0)})}),()=>{ufe.cancel(n)}},[]),o?e:t}var pb=c(E(),1),ZHe=[];function XHe({blocks:e,viewportWidth:t=1200,minHeight:o,additionalStyles:r=ZHe,__experimentalMinHeight:n,__experimentalPadding:i}){n&&(o=n,(0,FU.default)("The __experimentalMinHeight prop",{since:"6.2",version:"6.4",alternative:"minHeight"})),i&&(r=[...r,{css:`body { padding: ${i}px; }`}],(0,FU.default)("The __experimentalPadding prop of BlockPreview",{since:"6.2",version:"6.4",alternative:"additionalStyles"}));let s=(0,zU.useSelect)(u=>u(C).getSettings(),[]),a=(0,fb.useMemo)(()=>({...s,focusMode:!1,isPreviewMode:!0}),[s]),l=(0,fb.useMemo)(()=>Array.isArray(e)?e:[e],[e]);return!e||e.length===0?null:(0,pb.jsx)(ES,{value:l,settings:a,children:(0,pb.jsx)(afe,{viewportWidth:t,minHeight:o,additionalStyles:r})})}var pfe=(0,fb.memo)(XHe);pfe.Async=ffe;var bs=pfe;function mfe({
body {
padding: 24px;
min-height:${Math.round(h)}px;
display:flex;
align-items:center;
}
.is-root-container { width: 100%; }
`}]})}):(0,pm.jsx)("div",{className:"block-editor-inserter__preview-content-missing",children:(0,gfe.__)("No preview available.")})}),!a&&(0,pm.jsx)(cC,{title:o,icon:r,description:n})]})}var bfe=QHe;var XS=c(G(),1),Dd=c(F(),1),KU=c(fe(),1);var Ife=c(ue(),1),Ofe=c(fe(),1);var ZS=c(F(),1),mm=c(ue(),1),Bfe=c(U(),1),PC=c(io(),1);var Cfe=c(U(),1),Efe=c(F(),1);var WS=c(F(),1),yfe=c(G(),1),vfe=c(Qr(),1),Sfe=c(E(),1);function JHe(e,t){let[o,r]=(0,WS.useState)(!1);return(0,WS.useEffect)(()=>{o&&(0,vfe.speak)((0,yfe.__)("Use left and right arrow keys to move through blocks"))},[o]),(0,Sfe.jsx)("div",{ref:t,role:"listbox","aria-orientation":"horizontal",onFocus:()=>{r(!0)},onBlur:n=>{!n.currentTarget.contains(n.relatedTarget)&&r(!1)},...e})}var jU=(0,WS.forwardRef)(JHe);var kfe=c(F(),1),_fe=c(U(),1),xfe=c(E(),1);function e7e(e,t){return(0,xfe.jsx)(_fe.Composite.Group,{role:"presentation",ref:t,...e})}var HU=(0,kfe.forwardRef)(e7e);var JA=c(U(),1),wfe=c(F(),1),QA=c(E(),1);function t7e({isFirst:e,as:t,children:o,...r},n){return(0,QA.jsx)(JA.Composite.Item,{ref:n,role:"option",accessibleWhenDisabled:!0,...r,render:i=>{let s={...i,tabIndex:e?0:i.tabIndex};return t?(0,QA.jsx)(t,{...s,children:o}):typeof o=="function"?o(s):(0,QA.jsx)(JA.Button,{__next40pxDefaultSize:!0,...s,children:o})}})}var UU=(0,wfe.forwardRef)(t7e);var GU=c(E(),1);function o7e({key:e,children:t}){return(0,GU.jsx)(Efe.Fragment,{children:t},e)}function r7e({children:e}){return(0,GU.jsx)(Cfe.Composite,{focusShift:!0,focusWrap:"horizontal",render:o7e,children:e})}var $S=r7e;var Tfe=c(U(),1),t2=c(ue(),1),o2=c(Q(),1),Rfe=c(F(),1);var YS=c(G(),1),KS=c(U(),1);var ac=c(E(),1);function e2({count:e,icon:t,isPattern:o,fadeWhenDisabled:r}){let n=o&&(0,YS.__)("Pattern");return(0,ac.jsx)("div",{className:"block-editor-block-draggable-chip-wrapper",children:(0,ac.jsx)("div",{className:"block-editor-block-draggable-chip","data-testid":"block-draggable-chip",children:(0,ac.jsxs)(KS.Flex,{justify:"center",className:"block-editor-block-draggable-chip__content",children:[(0,ac.jsx)(KS.FlexItem,{children:t?(0,ac.jsx)(Et,{icon:t}):n||(0,YS.sprintf)((0,YS._n)("%d block","%d blocks",e),e)}),(0,ac.jsx)(KS.FlexItem,{children:(0,ac.jsx)(Et,{icon:Hx})}),r&&(0,ac.jsx)(KS.FlexItem,{className:"block-editor-block-draggable-chip__disabled",children:(0,ac.jsx)("span",{className:"block-editor-block-draggable-chip__disabled-icon"})})]})})})}var WU=c(E(),1),n7e=({isEnabled:e,blocks:t,icon:o,children:r,pattern:n})=>{let i=t.length===1?t[0].name:void 0,s=(0,o2.useSelect)(f=>i&&f(t2.store).getBlockType(i)?.icon,[i]),{startDragging:a,stopDragging:l}=H((0,o2.useDispatch)(C)),u=(0,Rfe.useMemo)(()=>n?.type===Yo.user&&n?.syncStatus!=="unsynced"?[(0,t2.createBlock)("core/block",{ref:n.id})]:void 0,[n?.type,n?.syncStatus,n?.id]);if(!e)return r({draggable:!1,onDragStart:void 0,onDragEnd:void 0});let d=u??t;return(0,WU.jsx)(Tfe.Draggable,{__experimentalTransferDataType:"wp-blocks",transferData:{type:"inserter",blocks:d},onDragStart:f=>{a();let p=new Set;for(let h of d){let m=`wp-block:${h.name}`;p.has(m)||(f.dataTransfer.items.add("",m),p.add(m))}},onDragEnd:()=>{l()},__experimentalDragComponent:(0,WU.jsx)(e2,{count:t.length,icon:o||!n&&s,isPattern:!!n}),children:({onDraggableStart:f,onDraggableEnd:p})=>r({draggable:!0,onDragStart:f,onDragEnd:p})})},qS=n7e;var Md=c(E(),1);function i7e({className:e,isFirst:t,item:o,onSelect:r,onHover:n,isDraggable:i,...s}){let a=(0,ZS.useRef)(!1),l=o.icon?{backgroundColor:o.icon.background,color:o.icon.foreground}:{},u=(0,ZS.useMemo)(()=>[(0,mm.createBlock)(o.name,o.initialAttributes,(0,mm.createBlocksFromInnerBlocksTemplate)(o.innerBlocks),o.innerContent)],[o.name,o.initialAttributes,o.innerBlocks,o.innerContent]),d=(0,mm.isReusableBlock)(o)&&o.syncStatus!=="unsynced"||(0,mm.isTemplatePart)(o);return(0,Md.jsx)(qS,{isEnabled:i&&!o.isDisabled,blocks:u,icon:o.icon,children:({draggable:f,onDragStart:p,onDragEnd:h})=>(0,Md.jsx)("div",{className:K("block-editor-block-types-list__list-item",{"is-synced":d}),draggable:f,onDragStart:m=>{a.current=!0,p&&(n(null),p(m))},onDragEnd:m=
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
overflow: hidden;
user-select: none;
touch-action: none;
cursor: move;
display: flex;
justify-content: center;
align-items: center;
}
.reactEasyCrop_Image,
.reactEasyCrop_Video {
will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */
}
.reactEasyCrop_Contain {
max-width: 100%;
max-height: 100%;
margin: auto;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
.reactEasyCrop_Cover_Horizontal {
width: 100%;
height: auto;
}
.reactEasyCrop_Cover_Vertical {
width: auto;
height: 100%;
}
.reactEasyCrop_CropArea {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
border: 1px solid rgba(255, 255, 255, 0.5);
box-sizing: border-box;
box-shadow: 0 0 0 9999em;
color: rgba(0, 0, 0, 0.5);
overflow: hidden;
}
.reactEasyCrop_CropAreaRound {
border-radius: 50%;
}
.reactEasyCrop_CropAreaGrid::before {
content: ' ';
box-sizing: border-box;
position: absolute;
border: 1px solid rgba(255, 255, 255, 0.5);
top: 0;
bottom: 0;
left: 33.33%;
right: 33.33%;
border-top: 0;
border-bottom: 0;
}
.reactEasyCrop_CropAreaGrid::after {
content: ' ';
box-sizing: border-box;
position: absolute;
border: 1px solid rgba(255, 255, 255, 0.5);
top: 33.33%;
bottom: 33.33%;
left: 0;
right: 0;
border-left: 0;
border-right: 0;
}
`,c$e=1,u$e=3,d$e=1,Rke=(function(e){IX(t,e);function t(){var o=e!==null&&e.apply(this,arguments)||this;return o.cropperRef=fl.createRef(),o.imageRef=fl.createRef(),o.videoRef=fl.createRef(),o.containerPosition={x:0,y:0},o.containerRef=null,o.styleRef=null,o.containerRect=null,o.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},o.dragStartPosition={x:0,y:0},o.dragStartCrop={x:0,y:0},o.gestureZoomStart=0,o.gestureRotationStart=0,o.isTouching=!1,o.lastPinchDistance=0,o.lastPinchRotation=0,o.rafDragTimeout=null,o.rafPinchTimeout=null,o.wheelTimer=null,o.currentDoc=typeof document<"u"?document:null,o.currentWindow=typeof window<"u"?window:null,o.resizeObserver=null,o.previousCropSize=null,o.isInitialized=!1,o.state={cropSize:null,hasWheelJustStarted:!1,mediaObjectFit:void 0},o.initResizeObserver=function(){if(!(typeof window.ResizeObserver>"u"||!o.containerRef)){var r=!0;o.resizeObserver=new window.ResizeObserver(function(n){if(r){r=!1;return}o.computeSizes()}),o.resizeObserver.observe(o.containerRef)}},o.preventZoomSafari=function(r){return r.preventDefault()},o.cleanEvents=function(){o.currentDoc&&(o.currentDoc.removeEventListener("mousemove",o.onMouseMove),o.currentDoc.removeEventListener("mouseup",o.onDragStopped),o.currentDoc.removeEventListener("touchmove",o.onTouchMove),o.currentDoc.removeEventListener("touchend",o.onDragStopped),o.currentDoc.removeEventListener("gesturechange",o.onGestureChange),o.currentDoc.removeEventListener("gestureend",o.onGestureEnd),o.currentDoc.removeEventListener("scroll",o.onScroll))},o.clearScrollEvent=function(){o.containerRef&&o.containerRef.removeEventListener("wheel",o.onWheel),o.wheelTimer&&clearTimeout(o.wheelTimer)},o.onMediaLoad=function(){var r=o.computeSizes();r&&(o.previousCropSize=r,o.emitCropData(),o.setInitialCrop(r),o.isInitialized=!0),o.props.onMediaLoaded&&o.props.onMediaLoaded(o.mediaSize)},o.setInitialCrop=function(r){if(o.props.initialCroppedAreaPercentages){var n=n$e(o.props.initialCroppedAreaPercentages,o.mediaSize,o.props.rotation,r,o.props.minZoom,o.props.maxZoom),i=n.crop,s=n.zoom;o.props.onCropChange(i),o.props.onZoomChange&&o.props.onZoomChange(s)}else if(o.props.initialCroppedAreaPixels){var a=s$e(o.props.initialCroppedAreaPixels,o.mediaSize,o.props.rotation,r,o.props.minZoom,o.props.maxZoom),i=a.crop,s=a.zoom;o.props.onCropChange(i),o.props.onZoomChange&&o.props.onZoomChange(s)}},o.computeSizes=function(){var r,n,i,s,a,l,u=o.imageRef.current||o.videoRef.current;if(u&&o.containerRef){o.containerRect=o.containerRef.getBoundingClientRect(),o.saveContainerPosition();var d=o.containerRect.width/o.containerRect.height,f=((r=o.imageRef.current)===null||r===void 0?void 0:r.naturalWidth)||((n=o.videoRef.current)===null||n===void 0?void 0:n.videoWidth)||0,p=((i=o.imageRef.current)===null||i===void 0?void 0:i.naturalHeight)||((s=o.videoRef.current)===null||s===void 0?void 0:s.videoHeight)||0,h=u.offsetWidth<f||u.offsetHeight<p,m=f/p,g=void 0;if(h)switch(o.state.mediaObjectFit){default:case"contain":g=d>m?{width:o.containerRect.height*m,height:o.containerRect.height}:{width:o.containerRect.width,height:o.containerRect.width/m};break;case"horizontal-cover":g={width:o.containerRect.width,height:o.containerRect.width/m};break;case"vertical-cover":g={width:o.containerRect.height*m,height:o.containerRect.height};break}else g={width:u.offsetWidth,height:u.offsetHeight};o.mediaSize=fn(fn({},g),{naturalWidth:f,naturalHeight:p}),o.props.setMediaSize&&o.props.setMediaSize(o.mediaSize);var b=o.props.cropSize?o.props.cropSize:JWe(o.mediaSize.width,o.mediaSize.height,o.containerRect.width,o.containerRect.height,o.props.aspect,o.props.rotation);return(((a=o.state.cropSize)===null||a===void 0?void 0:a.height)!==b.height||((l=o.state.cropSize)===null||l===void 0?void 0:l.width)!==b.width)&&o.props.onCropSizeChange&&o.props.onCropSizeChange(b),o.setState({cropSize:b},o.recomputeCropPosition),o.props.setCropSize&&o.props.setCropSize(b),b}},o.saveContainerPosition=function(){if(o.containerRef){var r=o.containerRef.getBoundingClientRect();o.containerPosition={x:r.left,y:r.top}}},o.
`,b),window.console.log(`Received plain text (RichText):
`,g),i){s((0,hl.insert)(a,g));return}let v=n.clipboardData.getData("rich-text")==="true";function y(x){let w=l.reduce((T,{__unstablePasteRule:B})=>(B&&T===a&&(T=B(a,{html:b,plainText:g})),T),a);if(w!==a)s(w);else{let T=(0,hl.create)({html:x});owe(T,a.activeFormats),s((0,hl.insert)(a,T))}}if(v){y(b);return}if(h){s((0,hl.insert)(a,(0,hl.create)({text:g})));return}let k="INLINE",S=g.trim();f&&(0,hl.isEmpty)(a)&&(0,nwe.isURL)(S)&&/^https?:/.test(S)&&(k="BLOCKS");let _=(0,rwe.pasteHandler)({HTML:b,plainText:g,mode:k,tagName:u,preserveWhiteSpace:p});if(typeof _=="string"){y(_);return}!_.length||!d||!(0,hl.isEmpty)(a)||(k==="BLOCKS"&&(y(b),m.dispatch(C).__unstableMarkLastChangeAsPersistent()),d(_,_.length-1,-1))}let{defaultView:r}=t.ownerDocument;return dKe(r,"paste",o)};var zE=c(io(),1),__=c(Ko(),1);var{subscribeOwnedListener:pKe}=H(__.privateApis),awe=e=>t=>{function o(r){let{keyCode:n}=r;if(r.defaultPrevented)return;let{value:i,onMerge:s,onRemove:a}=e.current;if(n===zE.DELETE||n===zE.BACKSPACE){let{start:l,end:u,text:d}=i,f=n===zE.BACKSPACE,p=i.activeFormats&&!!i.activeFormats.length;if(!(0,__.isCollapsed)(i)||p||f&&l!==0||!f&&u!==d.length)return;s?s(!f):a&&(0,__.isEmpty)(i)&&f&&a(!f),r.preventDefault()}}return pKe(t,"keydown",o)};var TW=c(io(),1),cy=c(Ko(),1),lwe=c(fe(),1);var{subscribeOwnedListener:mKe,ownsSelection:hKe}=H(cy.privateApis),{subscribeDelegatedListener:gKe}=H(lwe.privateApis),cwe=e=>t=>{function o(a){if(a.keyCode!==TW.ENTER)return;let{onReplace:l,onSplit:u}=e.current;l&&u&&(a.__deprecatedOnSplit=!0)}function r(a){if(a.defaultPrevented||a.target!==t&&!hKe(t)||a.keyCode!==TW.ENTER)return;let{value:l,onChange:u,disableLineBreaks:d,onSplitAtEnd:f,onSplitAtDoubleLineEnd:p,registry:h}=e.current;a.preventDefault();let{text:m,start:g,end:b}=l;a.shiftKey?d||u((0,cy.insert)(l,`
`)):f&&g===b&&b===m.length?f():p&&g===b&&b===m.length&&m.slice(-2)===`
`?h.batch(()=>{let v={...l};v.start=v.end-2,u((0,cy.remove)(v)),p()}):d||u((0,cy.insert)(l,`
`))}let{defaultView:n}=t.ownerDocument,i=gKe(n,"keydown",r),s=mKe(t,"keydown",o,!0);return()=>{i(),s()}};var uwe=e=>t=>{function o(){let{registry:r}=e.current;if(!r.select(C).isMultiSelecting())return;let n=t.parentElement.closest('[contenteditable="true"]');n&&n.focus()}return t.addEventListener("focus",o),()=>{t.removeEventListener("focus",o)}};var bKe=[zxe,Wxe,Kxe,qxe,Xxe,Jxe,twe,swe,awe,cwe,uwe];function jN(e){let t=(0,x_.useRef)(e);(0,x_.useInsertionEffect)(()=>{t.current=e});let o=(0,x_.useMemo)(()=>bKe.map(r=>r(t)),[t]);return(0,dwe.useRefEffect)(r=>{if(!e.isSelected)return;let n=o.map(i=>i(r));return()=>{n.forEach(i=>i())}},[o,e.isSelected])}var HN=c(Ko(),1),UN=c(F(),1);var fwe=c(E(),1),pwe=c(ce(),1),yKe={},RW=Symbol("usesContext");function vKe({onChange:e,onFocus:t,value:o,forwardedRef:r,settings:n,isVisible:i}){let{name:s,edit:a,[RW]:l}=n,u=(0,UN.useContext)(_n),d=(0,UN.useMemo)(()=>l?Object.fromEntries(Object.entries(u).filter(([g])=>l.includes(g))):yKe,[l,u]);if(!a)return null;let f=(0,HN.getActiveFormat)(o,s),p=f!==void 0,h=(0,HN.getActiveObject)(o),m=h!==void 0&&h.type===s;return(0,fwe.jsx)(a,{isActive:p,isVisible:i,activeAttributes:p?f.attributes||{}:{},isObjectActive:m,activeObjectAttributes:m?h.attributes||{}:{},value:o,onChange:e,onFocus:t,contentRef:r,context:d},s)}function GN({formatTypes:e,...t}){return e.map(o=>(0,pwe.createElement)(vKe,{settings:o,...t,key:o.name}))}var mwe=c(F(),1),hwe=c(ue(),1),gwe=c(Rt(),1);var BW=c(E(),1);function PW(e,t){if(w_.isEmpty(e)){let o=zN(t);return o?`<${o}></${o}>`:""}return Array.isArray(e)?((0,gwe.default)("wp.blockEditor.RichText value prop as children type",{since:"6.1",version:"6.3",alternative:"value prop as string",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"}),hwe.children.toHTML(e)):typeof e=="string"?e:e.toHTMLString()}function jE({value:e,tagName:t,multiline:o,format:r,...n}){return e=(0,BW.jsx)(mwe.RawHTML,{children:PW(e,o)}),t?(0,BW.jsx)(t,{...n,children:e}):e}var kwe=c(F(),1),OW=c(ue(),1),_we=c(Ko(),1),xwe=c(Rt(),1);var bwe=c(F(),1),ywe=c(Rt(),1),WN=c(Q(),1),vwe=c(io(),1),C_=c(Ko(),1);var IW=c(E(),1);function SKe({children:e,identifier:t,tagName:o="div",value:r="",onChange:n,multiline:i,...s},a){(0,ywe.default)("wp.blockEditor.RichText multiline prop",{since:"6.1",version:"6.3",alternative:"nested blocks (InnerBlocks)",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/nested-blocks-inner-blocks/"});let{clientId:l}=ht(),{getSelectionStart:u,getSelectionEnd:d}=(0,WN.useSelect)(C),{selectionChange:f}=(0,WN.useDispatch)(C),p=zN(i);r=r||`<${p}></${p}>`;let m=`</${p}>${r}<${p}>`.split(`</${p}><${p}>`);m.shift(),m.pop();function g(b){n(`<${p}>${b.join(`</${p}><${p}>`)}</${p}>`)}return(0,IW.jsx)(o,{ref:a,children:m.map((b,v)=>(0,IW.jsx)($N,{identifier:`${t}-${v}`,tagName:p,value:b,onChange:y=>{let k=m.slice();k[v]=y,g(k)},isSelected:void 0,onKeyDown:y=>{if(y.keyCode!==vwe.ENTER)return;y.preventDefault();let{offset:k}=u(),{offset:S}=d();if(typeof k!="number"||typeof S!="number")return;let _=(0,C_.create)({html:b});_.start=k,_.end=S;let x=(0,C_.split)(_).map(T=>(0,C_.toHTMLString)({value:T})),w=m.slice();w.splice(v,1,...x),g(w),f(l,`${t}-${v+1}`,0,0)},onMerge:y=>{let k=m.slice(),S=0;if(y){if(!k[v+1])return;k.splice(v,2,k[v]+k[v+1]),S=k[v].length-1}else{if(!k[v-1])return;k.splice(v-1,2,k[v-1]+k[v]),S=k[v-1].length-1}g(k),f(l,`${t}-${v-(y?0:1)}`,S,S)},...s},v))})}var Swe=(0,bwe.forwardRef)(SKe);var wwe=c(E(),1);function Cwe(e){return(0,kwe.forwardRef)((t,o)=>{let r=t.value,n=t.onChange;Array.isArray(r)&&((0,xwe.default)("wp.blockEditor.RichText value prop as children type",{since:"6.1",version:"6.3",alternative:"value prop as string",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"}),r=OW.children.toHTML(t.value),n=s=>t.onChange(OW.children.fromDOM((0,_we.__unstableCreateElement)(document,s).childNodes)));let i=t.multiline?Swe:e;return(0,wwe.jsx)(i,{...t,value:r,onChange:n,ref:o})}
`,X.start??X.text.length,X.end??X.text.length))});return W.addEventListener("keydown",Y),()=>W.removeEventListener("keydown",Y)},[v,u]),q=(0,Ih.useRefEffect)(W=>{if(!x)return;let Y=KXe(D)(W),Z=YXe(D)(W);function oe(ne){if(ne.inputType!=="insertText"&&ne.type!=="compositionend")return;let{formatTypes:X,getValue:re,onChange:ae}=L.current,ve=re(),xe=X.reduce((ge,{__unstableInputRule:be})=>be?be(ge):ge,ve);xe!==ve&&ae({...xe,activeFormats:ve.activeFormats})}return W.addEventListener("input",oe),W.addEventListener("compositionend",oe),()=>{Y(),Z(),W.removeEventListener("input",oe),W.removeEventListener("compositionend",oe)}},[x]),{ref:J,...te}=(0,cx.__unstableUseAutocompleteProps)({completers:k,record:P,onChange:O,onReplace:()=>{}}),ee=(0,Ih.useRefEffect)(W=>{y&&!u&&W.focus()},[y,u]),$=(0,Ih.useMergeRefs)([N,T,q,j,ee,J]);return(0,Ph.jsx)("div",{...I,onFocus:W=>{w(!0),I.onFocus(W)},children:(0,Ph.jsxs)(cx.SlotFillProvider,{children:[(0,Ph.jsx)(HXe,{label:e,id:n,className:K("dataviews-controls__richtext",s),placeholder:r,hideLabelFromVision:a,help:l,disabled:u,required:d,markWhenOptional:f,customValidity:p,value:P.text,"aria-multiline":!v,...te,ref:$}),x&&!u&&(0,Ph.jsx)(WXe.Provider,{value:R,children:(0,Ph.jsx)($Xe.Provider,{value:B,children:(0,Ph.jsx)(pRe,{value:P,onChange:O,onFocus:M,formatTypes:z,forwardedRef:T,isVisible:!0})})})]})})}var gRe=c(E(),1);function bRe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,config:i,validity:s}){let{className:a,clientId:l,allowedFormats:u,disableFormats:d,withoutInteractiveFormatting:f,preserveWhiteSpace:p,disableLineBreaks:h}=i||{},m=t.isDisabled({item:e,field:t}),{label:g,placeholder:b,description:v,id:y,setValue:k,isValid:S}=t,_=t.getValue({item:e})??"",x=(0,hRe.useCallback)(w=>o(k({item:e,value:w})),[e,o,k]);return(0,gRe.jsx)(mRe,{label:g,value:_,onChange:x,placeholder:b,id:y,hideLabelFromVision:r,help:v,disabled:m,required:!!S.required,markWhenOptional:n,customValidity:ao(S,s),className:a,clientId:l,allowedFormats:u,disableFormats:d,withoutInteractiveFormatting:f,preserveWhiteSpace:p,disableLineBreaks:h})}var ux=c(U(),1),yRe=c(F(),1);var o5=c(E(),1),{ValidatedToggleGroupControl:ZXe}=so(ux.privateApis);function vRe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let{getValue:s,setValue:a,isValid:l}=t,u=t.isDisabled({item:e,field:t}),d=s({item:e}),f=(0,yRe.useCallback)(g=>o(a({item:e,value:g})),[e,o,a]),{elements:p,isLoading:h}=Os({elements:t.elements,getElements:t.getElements});if(h)return(0,o5.jsx)(ux.Spinner,{});if(p.length===0)return null;let m=p.find(g=>g.value===d);return(0,o5.jsx)(ZXe,{required:!!t.isValid?.required,markWhenOptional:n,customValidity:ao(l,i),isBlock:!0,label:t.label,help:m?.description||t.description,onChange:f,value:d,hideLabelFromVision:r,children:p.map(g=>(0,o5.jsx)(ux.__experimentalToggleGroupControlOption,{label:g.label,value:g.value,disabled:u},g.value))})}var r5=c(U(),1),n5=c(F(),1);var E1=c(E(),1),{ValidatedFormTokenField:XXe}=so(r5.privateApis);function SRe({data:e,field:t,onChange:o,hideLabelFromVision:r,markWhenOptional:n,validity:i}){let{label:s,placeholder:a,description:l,getValue:u,setValue:d,isValid:f}=t,p=u({item:e}),h=t.isDisabled({item:e,field:t}),{elements:m,isLoading:g}=Os({elements:t.elements,getElements:t.getElements}),b=(0,n5.useMemo)(()=>Array.isArray(p)?p.map(y=>m?.find(S=>S.value===y)||{value:y,label:y}):[],[p,m]),v=(0,n5.useCallback)(y=>{let k=y.map(S=>typeof S=="object"&&"value"in S?S.value:S);o(d({item:e,value:k}))},[o,d,e]);return g?(0,E1.jsx)(r5.Spinner,{}):(0,E1.jsx)(XXe,{required:!!f?.required,markWhenOptional:n,customValidity:ao(f,i),label:r?void 0:s,value:b,onChange:v,placeholder:a,suggestions:m?.map(y=>y.value),disabled:h,__experimentalValidateInput:y=>t.isValid?.elements&&m?m.some(k=>k.value===y||k.label===y):!0,__experimentalExpandOnFocus:m&&m.length>0,help:l??(t.isValid?.elements?"":void 0),displayTransform:y=>typeof y=="object"&&"label"in y?y.label:typeof y=="string"&&m&&m.find(S=>S.value===y)?.label||y,__experimentalRenderItem:({item:y})=>{if(typeof y=="string"&&m){let
`)}function M5(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function GK(e={},t={}){let o={...e};return Object.entries(t).forEach(([r,n])=>{o[r]=M5(n)&&M5(o[r])?GK(o[r],n):n}),o}function L5(e,t,o){let r=t||"",n=e.get(r)||{selector:t,style:{}};e.set(r,{selector:t,style:GK(n.style,o)})}function TJe(e,t){let o=(0,Lc.getBlockType)(t)?.selectors||{},r=new Map;return Object.entries(e||{}).forEach(([n,i])=>{let s=o[n];if(typeof s=="string"){L5(r,s,{[n]:i});return}if(M5(s)&&M5(i)){let a={...i};Object.entries(s).forEach(([l,u])=>{l==="root"||typeof u!="string"||!Object.hasOwn(i,l)||(L5(r,u,{[n]:{[l]:i[l]}}),delete a[l])}),Object.keys(a).length&&L5(r,s.root||o.root,{[n]:a});return}L5(r,o.root,{[n]:i})}),Array.from(r.values())}function WK(e,t){let{name:o,baseSelector:r,state:n=""}=t,i=TJe(e,o).map(({selector:s,style:a})=>EJe(a,hPe(r,s,n))).filter(Boolean);return i.length?i.join(`
`):void 0}function RJe(e,t){if(!e)return e;let o={...e};return t.forEach(r=>{delete o[r]}),o}function SPe(e,t,o){let r=gV[t];if(!r)return[];let n=[];return r.forEach(i=>{let s=e?.[i];if(s){let a=WK(s,{name:t,baseSelector:o,state:i});a&&n.push(a)}}),n}function BJe(e,t,o,r){let n=[],s=["elements",...gV[t]??[]],a=vJe(r);return Object.entries(a).forEach(([l,u])=>{let d=To(e,{viewport:l,pseudo:Js.pseudo});if(!d)return;let f=[],p=WK(RJe(d,s),{name:t,baseSelector:o});p&&f.push(p);let h=xPe(d.elements,t,o);h&&f.push(h),f.push(...SPe(d,t,o)),f.length&&n.push(`${u}{${f.join("")}}`)}),n}function gPe(e,t){let o=To(e,t);if(!Hi(t))return o;let r={...t,viewport:Js.viewport},n=To(e,r);return n&&o?yB(n,o):o||n}function PJe(e){return!UK(e)&&!(0,Lc.hasBlockSupport)(e,"customCSS",!0)||e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e}var kPe={[`${yy}.__experimentalSkipSerialization`]:["border"],[`${Mn}.__experimentalSkipSerialization`]:[Mn],[`${wl}.__experimentalSkipSerialization`]:[wl],[`${Ju}.__experimentalSkipSerialization`]:[Ju],[`${M1}.__experimentalSkipSerialization`]:[M1],[`${d1}.__experimentalSkipSerialization`]:[d1]},IJe={...kPe,[`${Ju}.aspectRatio`]:[`${Ju}.aspectRatio`],[`${Sy}`]:[Sy]},OJe={[`${Ju}.aspectRatio`]:!0,[`${Sy}`]:!0},AJe={gradients:"gradient"};function jK(e,t,o=!1){if(!e)return e;let r=e;return o||(r=JSON.parse(JSON.stringify(e))),Array.isArray(t)||(t=[t]),t.forEach(n=>{if(Array.isArray(n)||(n=n.split(".")),n.length>1){let[i,...s]=n;jK(r[i],[s],!0)}else n.length===1&&delete r[n[0]]}),r}function _Pe(e,t,o,r=IJe){if(!UK(t))return e;let{style:n}=o;return Object.entries(r).forEach(([i,s])=>{let a=OJe[i]||(0,Lc.getBlockSupport)(t,i);a===!0&&(n=jK(n,s)),Array.isArray(a)&&a.forEach(l=>{let u=AJe[l]||l;n=jK(n,[[...s,u]])})}),e.style={...ga(n),...e.style},e}function LJe({clientId:e,name:t,setAttributes:o,style:r,__unstableParentLayout:n}){let i=xl(t,n),s=Er(),{globalBlockStyles:a,selectedState:l,showStateOnCanvas:u}=(0,yPe.useSelect)(m=>{let g=m(C),{getSelectedBlockStyleState:b,isSelectedBlockStyleStateShownOnCanvas:v}=H(g);return{globalBlockStyles:g.getSettings()?.[rs]?.blocks?.[t],selectedState:b(e),showStateOnCanvas:v(e)}},[e,t]),d=ea(l),f=(0,HK.useMemo)(()=>{if(!u||!d)return;let m=gPe(a,l),g=gPe(r,l),b;if(m&&g)b=yB(m,g);else if(g)b=g;else if(m)b=m;else return;return WK(b,{name:t,baseSelector:`[data-block="${e}"]`})},[u,d,a,r,l,e,t]);if(el({css:f}),s!=="default")return null;let p={...i,typography:{...i.typography,textAlign:!1}},h={clientId:e,name:t,setAttributes:o,settings:p};return(0,Vh.jsxs)(q2,{value:l,children:[(0,Vh.jsx)(eV,{...h}),(0,Vh.jsx)(ZD,{...h}),(0,Vh.jsx)(lV,{...h}),(0,Vh.jsx)(oEe,{...h}),(0,Vh.jsx)(fPe,{...h})]})}var N5={edit:LJe,hasSupport:UK,addSaveProps:_Pe,attributeKeys:["style"],useBlockProps:DJe},MJe=[{elementType:"button"},{elementType:"link",pseudo:[":hover"]},{elementType:"heading",elements:["h1","h2","h3","h4","h5","h6"]}],NJe={};function xPe(e,t,o){if(!e)return;let r=[];return MJe.forEach(({elementType:n,pseudo:i,elements:s})=>{if($t(t,Mn,n))return;let l=e?.[n];if(l){let u=yk(o,Lc.__EXPERIMENTAL_ELEMENTS[n]);r.push((0,ed.compileCSS)(l,{selector:u})),i&&i.forEach(d=>{l[d]&&r.push((0,ed.compileCSS)(l[d],{selector:yk(o,`${Lc.__EXPERIMENTAL_ELEMENTS[n]}${d}`)}))})}s&&s.forEach(u=>{e[u]&&r.push((0,ed.compileCSS)(e[u],{selector:yk(o,Lc.__EXPERIMENTAL_ELEMENTS[u])}))})}),r.length>0?r.join(""):void 0}function DJe({name:e,style:t}){let o=(0,vPe.useInstanceId)(NJe,"wp-elements"),r=`.${o}`,n=t?.elements,[i]=Le("viewport"),s=(0,HK.useMemo)(()=>{let a=[],l=xPe(n,e,r);return l&&a.push(l),a.push(...SPe(t,e,r)),a.push(...BJe(t,e,r,i)),a.length>0?a.join(""):void 0},[r,n,e,t,i]);return el({css:s}),_Pe({className:o},e,{style:t},kPe)}(0,bPe.addFilter)("blocks.registerBlockType","core/style/addAttribute",PJe);var wPe=c(go(),1),CPe=c(ue(),1),VJe=e=>(0,CPe.hasBlockSupport)(e,"__experimentalSettings",!1);function FJe(e){return VJe(e)&&(e?.attributes?.settings||(e.attributes={...e.attributes,settings:{type:"object"}})),e}(0,wPe.addFilter)("blocks.registerBlockType","core/settings/addAttribute",FJe)
<svg
xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox="0 0 0 0"
width="0"
height="0"
focusable="false"
role="none"
aria-hidden="true"
style="visibility: hidden; position: absolute; left: -9999px; overflow: hidden;"
>
<defs>
<filter id="${e}">
<!--
Use sRGB instead of linearRGB so transparency looks correct.
Use perceptual brightness to convert to grayscale.
-->
<feColorMatrix color-interpolation-filters="sRGB" type="matrix" values=" .299 .587 .114 0 0 .299 .587 .114 0 0 .299 .587 .114 0 0 .299 .587 .114 0 0 "></feColorMatrix>
<!-- Use sRGB instead of linearRGB to be consistent with how CSS gradients work. -->
<feComponentTransfer color-interpolation-filters="sRGB">
<feFuncR type="table" tableValues="${o.r.join(" ")}"></feFuncR>
<feFuncG type="table" tableValues="${o.g.join(" ")}"></feFuncG>
<feFuncB type="table" tableValues="${o.b.join(" ")}"></feFuncB>
<feFuncA type="table" tableValues="${o.a.join(" ")}"></feFuncA>
</feComponentTransfer>
<!-- Re-mask the image with the original transparency since the feColorMatrix above loses that information. -->
<feComposite in2="SourceGraphic" operator="in"></feComposite>
</filter>
</defs>
</svg>`}var jf=c(E(),1),$K=[],jJe=window?.navigator.userAgent&&window.navigator.userAgent.includes("Safari")&&!window.navigator.userAgent.includes("Chrome")&&!window.navigator.userAgent.includes("Chromium");Yf([qf]);function KK({presetSetting:e,defaultSetting:t}){let[o,r,n,i]=Le(t,`${e}.custom`,`${e}.theme`,`${e}.default`);return(0,N1.useMemo)(()=>[...r||$K,...n||$K,...o&&i||$K],[o,r,n,i])}function IPe(e,t){if(!e)return;let o=t?.find(({slug:r})=>e===`var:preset|duotone|${r}`);return o?o.colors:void 0}function HJe(e,t){if(!e||!Array.isArray(e))return;let o=t?.find(r=>r?.colors?.every((n,i)=>n===e[i]));return o?`var:preset|duotone|${o.slug}`:void 0}function UJe({style:e,setAttributes:t,name:o,clientId:r}){let n=e?.color?.duotone,i=xl(o),s=Er(),a=(0,PPe.useSelect)(b=>r?b(C).getBlockAttributes(r)?.className:void 0,[r]),{value:l}=_l(o,a),u=KK({presetSetting:"color.duotone",defaultSetting:"color.defaultDuotone"}),d=KK({presetSetting:"color.palette",defaultSetting:"color.defaultPalette"}),[f,p]=Le("color.custom","color.customDuotone"),h=!f,m=!p||d?.length===0&&h;if(u?.length===0&&m||s!=="default")return null;let g=n==="unset"||Array.isArray(n)?n:IPe(n,u);return(0,jf.jsxs)(jf.Fragment,{children:[(0,jf.jsx)(Oe,{group:"filter",children:(0,jf.jsx)(AD,{value:{filter:{duotone:g}},onChange:b=>{let v={...e,color:{...b?.filter}};t({style:Ge(v)})},settings:i,inheritedValue:l})}),(0,jf.jsx)(No,{group:"block",__experimentalShareWithChildBlocks:!0,children:(0,jf.jsx)(HM,{duotonePalette:u,colorPalette:d,disableCustomDuotone:m,disableCustomColors:h,value:g,onChange:b=>{let v=HJe(b,u),y={...e,color:{...e?.color,duotone:v??b}};t({style:Ge(y)})},settings:i})})]})}var YK={shareWithChildBlocks:!0,edit:UJe,useBlockProps:KJe,attributeKeys:["style"],hasSupport(e){return(0,Fh.hasBlockSupport)(e,"filter.duotone")}};function GJe(e){return(0,Fh.hasBlockSupport)(e,"filter.duotone")&&(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}})),e}function WJe({clientId:e,id:t,selector:o,attribute:r}){let n=KK({presetSetting:"color.duotone",defaultSetting:"color.defaultDuotone"}),i=Array.isArray(r),s=i?void 0:IPe(r,n),a=typeof r=="string"&&s,l=typeof r=="string"&&!a,u=null;a?u=s:(l||i)&&(u=r);let p=o.split(",").map(g=>`.${t}${g.trim()}`).join(", "),h=Array.isArray(u)||u==="unset";Rc(h?{css:u!=="unset"?TPe(p,t):EPe(p),__unstableType:"presets"}:void 0),Rc(h?{assets:u!=="unset"?D5(t,u):"",__unstableType:"svgs"}:void 0);let m=Nt(e);(0,N1.useEffect)(()=>{if(h&&m&&jJe){let g=m.style.display;m.style.setProperty("display","inline-block"),m.offsetHeight,m.style.setProperty("display",g)}},[h,m,u])}var $Je={};function KJe({clientId:e,name:t,style:o}){let r=(0,RPe.useInstanceId)($Je),n=(0,N1.useMemo)(()=>{let l=(0,Fh.getBlockType)(t);if(l){if(!(0,Fh.getBlockSupport)(l,"filter.duotone",!1))return null;let d=(0,Fh.getBlockSupport)(l,"color.__experimentalDuotone",!1);if(d){let f=js(l);return typeof d=="string"?yk(f,d):f}return js(l,"filter.duotone",{fallback:!0})}},[t]),i=o?.color?.duotone,s=`wp-duotone-${r}`,a=n&&i;return WJe({clientId:e,id:s,selector:n,attribute:i}),{className:a?s:""}}(0,BPe.addFilter)("blocks.registerBlockType","core/editor/duotone/add-attributes",GJe);var F5=c(F(),1),D1=c(Q(),1),OPe=c(fe(),1),V1=c(ue(),1),F1=c(G(),1);var APe=c(as(),1);var V5=c(E(),1),YJe={},qJe={};function ZJe({blockName:e,setAttributes:t,style:o}){if(Er()!=="default")return null;let n=(0,V1.getBlockType)(e);function i(a){let l=a?.css?.trim()?a.css:void 0;t({style:Ge({...a,css:l})})}let s=(0,F1.sprintf)((0,F1.__)("Add your own CSS to customize the appearance of the %s block. You do not need to include a CSS selector, just add the property and value, e.g. color: red;."),n?.title);return(0,V5.jsx)(Oe,{group:"advanced",children:(0,V5.jsx)(ND,{value:o,onChange:i,inheritedValue:o,help:s})})}var XJe="custom-css-edit-warning";function QJe({clientId:e,name:t,setAttributes:o}){let{style:r,canEditCSS:n}=(0,D1.useSelect)(i=>{let{getBlockAttributes:s,getSettings:a}=i(C);return{style:s(e)?.style||qJe,canEditCSS:a().canEditCSS}},[e]);return n?(0,V5.jsx)(ZJe,{blockName:t,setAttributes:o
calc(${a} + ${r})
calc(${l} + ${n})
calc(${u} + ${i})
calc(${d} + ${s})
`}}}var ba=c(E(),1);function H1({clientId:e,contentRef:t,parentLayout:o,childGridClientId:r}){let n=(0,zh.useSelect)(a=>a(C).getSettings().isDistractionFree,[]),i=Nt(e);if(n||!i)return null;let s=o?.isManualPlacement&&window.__experimentalEnableGridInteractivity;return(0,ba.jsx)(met,{gridClientId:e,gridElement:i,isManualGrid:s,ref:t,childGridClientId:r})}var met=(0,Pl.forwardRef)(({gridClientId:e,gridElement:t,isManualGrid:o,childGridClientId:r},n)=>{let[i,s]=(0,Pl.useState)(()=>eY(t)),[a,l]=(0,Pl.useState)(!1),u=Nt(r),d=(0,Pl.useMemo)(()=>u?DPe(u):null,[u]);return(0,Pl.useEffect)(()=>{let f=()=>s(eY(t)),p=new window.ResizeObserver(f);p.observe(t,{box:"border-box"});let h=new window.ResizeObserver(f);h.observe(t);for(let m of t.children)h.observe(m);return()=>{p.disconnect(),h.disconnect()}},[t]),(0,Pl.useEffect)(()=>{function f(){l(!0)}function p(){l(!1)}return document.addEventListener("drag",f),document.addEventListener("dragend",p),()=>{document.removeEventListener("drag",f),document.removeEventListener("dragend",p)}},[]),(0,ba.jsx)(Xa,{className:K("block-editor-grid-visualizer",{"is-dropping-allowed":a}),clientId:e,__unstablePopoverSlot:"__unstable-block-tools-after",children:(0,ba.jsx)("div",{ref:n,className:"block-editor-grid-visualizer__grid",style:i.style,children:o?(0,ba.jsx)(get,{gridClientId:e,gridInfo:i,childGridRect:d}):(0,ba.jsx)(het,{gridInfo:i,childGridRect:d})})})});function het({gridInfo:e,childGridRect:t}){return j1(1,e.numRows).map(o=>j1(1,e.numColumns).map(r=>{let n=e.currentColor;return t?.contains(r,o)&&(n="transparent"),(0,ba.jsx)(FPe,{color:n},`${o}-${r}`)}))}function get({gridClientId:e,gridInfo:t,childGridRect:o}){let[r,n]=(0,Pl.useState)(null),i=(0,zh.useSelect)(a=>{let{getBlockOrder:l,getBlockStyles:u}=H(a(C)),d=l(e);return u(d)},[e]),s=(0,Pl.useMemo)(()=>{let a=[];for(let l of Object.values(i)){let{columnStart:u,rowStart:d,columnSpan:f=1,rowSpan:p=1}=l?.layout??{};!u||!d||a.push(new Dc({columnStart:u,rowStart:d,columnSpan:f,rowSpan:p}))}return a},[i]);return j1(1,t.numRows).map(a=>j1(1,t.numColumns).map(l=>{let u=o?.contains(l,a),d=t.currentColor;u&&(d="transparent");let f=s.some(h=>h.contains(l,a)),p=r?.contains(l,a)??!1;return(0,ba.jsx)(FPe,{color:d,className:p&&"is-highlighted",children:f&&!u?(0,ba.jsx)(bet,{column:l,row:a,gridClientId:e,gridInfo:t,setHighlightedRect:n}):(0,ba.jsx)(yet,{column:l,row:a,gridClientId:e,gridInfo:t,setHighlightedRect:n})},`${a}-${l}`)}))}function FPe({color:e,children:t,className:o}){return(0,ba.jsx)("div",{className:K("block-editor-grid-visualizer__cell",o),style:{boxShadow:`inset 0 0 0 1px color-mix(in srgb, ${e} 20%, #0000)`,color:e},children:t})}function zPe(e,t,o,r,n){let{getBlockAttributes:i,getBlockRootClientId:s,canInsertBlockType:a,getBlockName:l}=(0,zh.useSelect)(C),{updateBlockAttributes:u,moveBlocksToPosition:d,__unstableMarkNextChangeAsNotPersistent:f}=(0,zh.useDispatch)(C),p=py(o,r.numColumns);return vet({validateDrag(h){let m=l(h);if(!a(m,o))return!1;let g=i(h),b=new Dc({columnStart:e,rowStart:t,columnSpan:g.style?.layout?.columnSpan,rowSpan:g.style?.layout?.rowSpan});return new Dc({columnSpan:r.numColumns,rowSpan:r.numRows}).containsRect(b)},onDragEnter(h){let m=i(h);n(new Dc({columnStart:e,rowStart:t,columnSpan:m.style?.layout?.columnSpan,rowSpan:m.style?.layout?.rowSpan}))},onDragLeave(){n(h=>h?.columnStart===e&&h?.rowStart===t?null:h)},onDrop(h){n(null);let m=i(h);u(h,{style:{...m.style,layout:{...m.style?.layout,columnStart:e,rowStart:t}}}),f(),d([h],s(h),o,p(e,t))}})}function bet({column:e,row:t,gridClientId:o,gridInfo:r,setHighlightedRect:n}){return(0,ba.jsx)("div",{className:"block-editor-grid-visualizer__drop-zone",ref:zPe(e,t,o,r,n)})}function yet({column:e,row:t,gridClientId:o,gridInfo:r,setHighlightedRect:n}){let{updateBlockAttributes:i,moveBlocksToPosition:s,__unstableMarkNextChangeAsNotPersistent:a}=(0,zh.useDispatch)(C),l=py(o,r.numColumns);return(0,ba.jsx)(Sm,{rootClientId:o,className:"block-editor-grid-visualizer__appender",ref:zPe(e,t,o,r,n),style:{color:r.currentColor},onSelect:u=>{u&&(i(u.clientId,{style:{layout:{columnS
${Object.entries(t).map(([o,r])=>`${o}: ${r}`).join("; ")};
}`}function YPe({selector:e,layout:t={},viewportOverrides:o,parentLayout:r={},includeContainerQuery:n=!0}){let i=o!==void 0,s=i?{...t,...o}:t,a=k=>Object.hasOwn(o||{},k),{selfStretch:l,flexSize:u,columnStart:d,rowStart:f,columnSpan:p,rowSpan:h}=s,m=t.selfStretch,{columnCount:g,minimumColumnWidth:b}=r,v=[],y={};if((!i||a("selfStretch")||a("flexSize"))&&(i&&(l===jh.fit||l===jh.grow)&&GPe(m)&&t.flexSize&&(y["flex-basis"]="unset",m===jh.fixed&&(y["flex-shrink"]="unset")),GPe(l)&&u?(y["flex-basis"]=u,l===jh.fixed?y["flex-shrink"]="0":i&&m===jh.fixed&&(y["flex-shrink"]="unset"),y["box-sizing"]="border-box"):l===jh.grow&&(y["flex-grow"]="1")),(!i||a("columnStart")||a("columnSpan"))&&(d&&p?y["grid-column"]=`${d} / span ${p}`:d?y["grid-column"]=`${d}`:p&&(y["grid-column"]=`span ${p}`)),(!i||a("rowStart")||a("rowSpan"))&&(f&&h?y["grid-row"]=`${f} / span ${h}`:f?y["grid-row"]=`${f}`:h&&(y["grid-row"]=`span ${h}`)),Object.keys(y).length&&v.push({selector:e,declarations:y}),n&&!i&&(p||d)&&(b||!g)){let k=parseFloat(b);isNaN(k)&&(k=12);let S=b?.replace(k,"");["px","rem","em"].includes(S)||(S="rem");let _=2;p&&d?_=p+d-1:p?_=p:_=d;let x=S==="px"?24:1.5,w=_*k+(_-1)*x,T=k*2+x-1,B=p&&p>1?"1/-1":"auto";v.push({rulesGroup:`@container (max-width: ${Math.max(w,T)}${S})`,selector:e,declarations:{"grid-column":B,"grid-row":"auto"}})}return v}function Eet({selector:e,layout:t={},parentLayout:o={},includeContainerQuery:r=!0}){return YPe({selector:e,layout:t,parentLayout:o,includeContainerQuery:r}).map(n=>{let i=KPe(n);return n.rulesGroup?`${n.rulesGroup} {
${i}
}`:i}).join("")}function Tet({style:e={},selector:t,parentLayout:o={},viewportSettings:r}){let n=e?.layout??{};return Object.entries(xet(r)).map(([i,s])=>{let a=To(e,{viewport:i,pseudo:Js.pseudo})?.layout;if(!a||!Object.keys(a).length)return"";let u=YPe({selector:t,layout:n,viewportOverrides:a,parentLayout:o,includeContainerQuery:!1}).map(KPe).join("");return u?`${s}{${u}}`:""}).filter(Boolean).join("")}function Ret({style:e}){let{shouldRenderChildLayoutStyles:t,viewportSettings:o}=(0,q5.useSelect)(p=>{let h=p(C).getSettings();return{shouldRenderChildLayoutStyles:!h.disableLayoutStyles,viewportSettings:h?.__experimentalFeatures?.viewport}}),r=e?.layout??{},{columnStart:n,rowStart:i,columnSpan:s,rowSpan:a}=r,l=vg()||{},u=(0,WPe.useInstanceId)(wet),d=`.wp-container-content-${u}`,f="";if(t&&(f=[Eet({selector:d,layout:r,parentLayout:l}),Tet({style:e,selector:d,parentLayout:l,viewportSettings:o})].join("")),el({css:f}),!!f)return{className:`wp-container-content-${u}`}}function Bet({clientId:e,style:t,setAttributes:o}){let r=vg()||{},{type:n="default",allowSizingOnChildren:i=!1,isManualPlacement:s}=r;return n!=="grid"?null:(0,Uf.jsx)(Pet,{clientId:e,style:t,setAttributes:o,allowSizingOnChildren:i,isManualPlacement:s,parentLayout:r})}function Pet({clientId:e,style:t,setAttributes:o,allowSizingOnChildren:r,isManualPlacement:n,parentLayout:i}){let{rootClientId:s,isVisible:a,parentBlockVisibility:l,blockBlockVisibility:u,deviceType:d,viewportSettings:f,isChildBlockAGrid:p}=(0,q5.useSelect)(B=>{let{getBlockRootClientId:R,getBlockEditingMode:I,getTemplateLock:A,getBlockAttributes:P,getSettings:O}=B(C),N=R(e);if(A(N)||I(N)!=="default")return{rootClientId:N,isVisible:!1};let z=P(N),V=P(e),M=O(),D=M?.[wa]?.toLowerCase()||no.desktop.key;return{rootClientId:N,isVisible:!0,parentBlockVisibility:z?.metadata?.blockVisibility,blockBlockVisibility:V?.metadata?.blockVisibility,deviceType:D,viewportSettings:M?.__experimentalFeatures?.viewport,isChildBlockAGrid:V?.layout?.type==="grid"}},[e]),m=Nt(e)?.ownerDocument?.defaultView,g=m===null?void 0:m,{isBlockCurrentlyHidden:b,currentViewport:v}=Ma({blockVisibility:l,deviceType:d,view:g,viewportSettings:f}),y=(0,q5.useSelect)(B=>{if(!s)return!1;let{isBlockParentHiddenAtViewport:R}=H(B(C));return R(s,v)},[s,v]),{isBlockCurrentlyHidden:k}=Ma({blockVisibility:u,deviceType:d,view:g,viewportSettings:f}),[S,_]=(0,$Pe.useState)(),x=p?e:void 0;if(!a||b||y)return null;let w=r&&!k;function T(B){o({style:{...t,layout:{...t?.layout,...B}}})}return(0,Uf.jsxs)(Uf.Fragment,{children:[(0,Uf.jsx)(H1,{clientId:s,contentRef:_,parentLayout:i,childGridClientId:x}),w&&(0,Uf.jsx)(tY,{clientId:e,bounds:S,onChange:T,parentLayout:i}),n&&window.__experimentalEnableGridInteractivity&&(0,Uf.jsx)(oY,{layout:t?.layout,parentLayout:i,onChange:T,gridClientId:s,blockClientId:e})]})}var nY={useBlockProps:Ret,edit:Bet,attributeKeys:["style"],hasSupport(){return!0}};var sY=c(go(),1),iY=c(ue(),1),qPe="metadata";function Iet(e){return e?.attributes?.[qPe]?.type||(e.attributes={...e.attributes,[qPe]:{type:"object"}}),e}function Oet(e,t,o,r){if(r.length===1&&e.innerBlocks.length===t.length||r.length===1&&t.length>1||r.length>1&&t.length===1||r.length>1&&t.length>1&&r.length!==t.length)return e;let n=t[o]?.attributes?.metadata;if(!n)return e;let i={};return n.noteId&&!e.attributes?.metadata?.noteId&&(i.noteId=n.noteId),n.name&&!e.attributes?.metadata?.name&&(0,iY.hasBlockSupport)(e.name,"renaming",!0)&&(i.name=n.name),n.blockVisibility!==void 0&&!e.attributes?.metadata?.blockVisibility&&(0,iY.hasBlockSupport)(e.name,"visibility",!0)&&(i.blockVisibility=n.blockVisibility),Object.keys(i).length>0?{...e,attributes:{...e.attributes,metadata:{...e.attributes.metadata,...i}}}:e}(0,sY.addFilter)("blocks.registerBlockType","core/metadata/addMetaAttribute",Iet);(0,sY.addFilter)("blocks.switchToBlockType.transformedBlock","core/metadata/addTransforms",Oet);var aY=c(G(),1),Z5=c(F(),1),X5=c(U(),1),Q5=c(ue(),1),vx=c(Q(),1);var Hh=c(E(),1),Aet={};function Let({name:e,clientId:t,metadata:{ignoredHookedBlocks:o=[]}={}}){let r=(0,vx.useSelect)(h=>h(Q5.s
/*! Bundled license information:
autosize/dist/autosize.js:
(*!
autosize 4.0.2
license: MIT
http://www.jacklmoore.com/autosize
*)
use-sync-external-store/cjs/use-sync-external-store-shim.production.js:
(**
* @license React
* use-sync-external-store-shim.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js:
(**
* @license React
* use-sync-external-store-shim/with-selector.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
normalize-wheel/src/isEventSupported.js:
(**
* Checks if an event is supported in the current execution environment.
*
* NOTE: This will not work correctly for non-generic events such as `change`,
* `reset`, `load`, `error`, and `select`.
*
* Borrows from Modernizr.
*
* @param {string} eventNameSuffix Event name, e.g. "click".
* @param {?boolean} capture Check if the capture phase is supported.
* @return {boolean} True if the event is supported.
* @internal
* @license Modernizr 3.0.0pre (Custom Build) | MIT
*)
is-plain-object/dist/is-plain-object.mjs:
(*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*)
*/
(window.wp ||= {}).blockEditor = wp.blockEditor;
})();