4 lines
827 KiB
JavaScript
4 lines
827 KiB
JavaScript
/*! This file is auto-generated */
|
||
(()=>{var e={2321:e=>{e.exports=function(e){return e&&"__experimental"in e&&!1!==e.__experimental}},7734:e=>{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var a,o,r;if(Array.isArray(t)){if((a=t.length)!=n.length)return!1;for(o=a;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(o of t.entries())if(!n.has(o[0]))return!1;for(o of t.entries())if(!e(o[1],n.get(o[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(o of t.entries())if(!n.has(o[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if((a=t.length)!=n.length)return!1;for(o=a;0!=o--;)if(t[o]!==n[o])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((a=(r=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=a;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,r[o]))return!1;for(o=a;0!=o--;){var l=r[o];if(!e(t[l],n[l]))return!1}return!0}return t!=t&&n!=n}},9681:e=>{var t={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ả:"A",Ạ:"A",Ẩ:"A",Ẫ:"A",Ậ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ẻ:"E",Ẽ:"E",Ẹ:"E",Ể:"E",Ễ:"E",Ệ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ỉ:"I",Ị:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ỏ:"O",Ọ:"O",Ổ:"O",Ỗ:"O",Ộ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ớ:"O",Ợ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ủ:"U",Ụ:"U",Ử:"U",Ữ:"U",Ự:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ả:"a",ạ:"a",ẩ:"a",ẫ:"a",ậ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ẻ:"e",ẽ:"e",ẹ:"e",ể:"e",ễ:"e",ệ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ỉ:"i",ị:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ỏ:"o",ọ:"o",ổ:"o",ỗ:"o",ộ:"o",ờ:"o",ở:"o",ỡ:"o",ớ:"o",ợ:"o",ù:"u",ú:"u",û:"u",ü:"u",ủ:"u",ụ:"u",ử:"u",ữ:"u",ự:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z",й:"и",Й:"И",ё:"е",Ё:"Е"},n=Object.keys(t).join("|"),a=new RegExp(n,"g"),o=new RegExp(n,"");function r(e){return t[e]}var l=function(e){return e.replace(a,r)};e.exports=l,e.exports.has=function(e){return!!e.match(o)},e.exports.remove=l}},t={};function n(a){var o=t[a];if(void 0!==o)return o.exports;var r=t[a]={exports:{}};return e[a](r,r.exports,n),r.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};(()=>{"use strict";n.r(a),n.d(a,{__experimentalGetCoreBlocks:()=>SB,__experimentalRegisterExperimentalCoreBlocks:()=>NB,privateApis:()=>CB,registerCoreBlocks:()=>BB});var e={};n.r(e),n.d(e,{init:()=>st,metadata:()=>rt,name:()=>lt,settings:()=>it});var t={};n.r(t),n.d(t,{init:()=>Bt,metadata:()=>Et,name:()=>Ct,settings:()=>St});var o={};n.r(o),n.d(o,{init:()=>nn,metadata:()=>Xt,name:()=>en,settings:()=>tn});var r={};n.r(r),n.d(r,{init:()=>Nn,metadata:()=>Cn,name:()=>Sn,settings:()=>Bn});var l={};n.r(l),n.d(l,{init:()=>Gn,metadata:()=>Fn,name:()=>Vn,settings:()=>$n});var i={};n.r(i),n.d(i,{init:()=>Qn,metadata:()=>jn,name:()=>Wn,settings:()=>Zn});var s={};n.r(s),n.d(s,{init:()=>na,metadata:()=>Xn,name:()=>ea,settings:()=>ta});var c={};n.r(c),n.d(c,{init:()=>ga,metadata:()=>ua,name:()=>pa,settings:()=>da});var m={};n.r(m),n.d(m,{init:()=>wa,metadata:()=>fa,name:()=>ka,settings:()=>xa});var u={};n.r(u),n.d(u,{init:()=>Ma,metadata:()=>Ta,name:()=>Ia,settings:()=>Pa});var p={};n.r(p),n.d(p,{init:()=>Ya,metadata:()=>Za,name:()=>Qa,settings:()=>Ka});var d={};n.r(d),n.d(d,{init:()=>co,metadata:()=>lo,name:()=>io,settings:()=>so});var g={};n.r(g),n.d(g,{init:()=>go,metadata:()=>mo,name:()=>uo,settings:()=>po});var h={};n.r(h),n.d(h,{init:()=>ko,metadata:()=>yo,name:()=>vo,settings:()=>fo});var b={};n.r(b),n.d(b,{init:()=>So,metadata:()=>wo,name:()=>Eo,settings:()=>Co});var _={};n.r(_),n.d(_,{init:()=>Ro,metadata:()=>Po,name:()=>Mo,settings:()=>zo});var y={};n.r(y),n.d(y,{init:()=>Fo,metadata:()=>Lo,name:()=>Ho,settings:()=>Do});var v={};n.r(v),n.d(v,{init:()=>qo,metadata:()=>Go,name:()=>Oo,settings:()=>Uo});var f={};n.r(f),n.d(f,{init:()=>ar,metadata:()=>er,name:()=>tr,settings:()=>nr});var k={};n.r(k),n.d(k,{init:()=>cr,metadata:()=>lr,name:()=>ir,settings:()=>sr});var x={};n.r(x),n.d(x,{init:()=>br,metadata:()=>dr,name:()=>gr,settings:()=>hr});var w={};n.r(w),n.d(w,{init:()=>xr,metadata:()=>vr,name:()=>fr,settings:()=>kr});var E={};n.r(E),n.d(E,{init:()=>Nr,metadata:()=>Cr,name:()=>Sr,settings:()=>Br});var C={};n.r(C),n.d(C,{init:()=>Lr,metadata:()=>zr,name:()=>Rr,settings:()=>Ar});var S={};n.r(S),n.d(S,{init:()=>Mi,metadata:()=>Ti,name:()=>Ii,settings:()=>Pi});var B={};n.r(B),n.d(B,{init:()=>Fi,metadata:()=>Li,name:()=>Hi,settings:()=>Di});var N={};n.r(N),n.d(N,{init:()=>Ts,metadata:()=>Ss,name:()=>Bs,settings:()=>Ns});var T={};n.r(T),n.d(T,{init:()=>js,metadata:()=>Os,name:()=>Us,settings:()=>qs});var I={};n.r(I),n.d(I,{init:()=>ac,metadata:()=>ec,name:()=>tc,settings:()=>nc});var P={};n.r(P),n.d(P,{init:()=>hc,metadata:()=>pc,name:()=>dc,settings:()=>gc});var M={};n.r(M),n.d(M,{init:()=>xc,metadata:()=>vc,name:()=>fc,settings:()=>kc});var z={};n.r(z),n.d(z,{init:()=>Pc,metadata:()=>Nc,name:()=>Tc,settings:()=>Ic});var R={};n.r(R),n.d(R,{init:()=>jm,metadata:()=>Om,name:()=>Um,settings:()=>qm});var A={};n.r(A),n.d(A,{init:()=>cu,metadata:()=>lu,name:()=>iu,settings:()=>su});var L={};n.r(L),n.d(L,{init:()=>Mu,metadata:()=>Tu,name:()=>Iu,settings:()=>Pu});var H={};n.r(H),n.d(H,{init:()=>Du,metadata:()=>Au,name:()=>Lu,settings:()=>Hu});var D={};n.r(D),n.d(D,{init:()=>Wu,metadata:()=>Uu,name:()=>qu,settings:()=>ju});var F={};n.r(F),n.d(F,{init:()=>wp,metadata:()=>fp,name:()=>kp,settings:()=>xp});var V={};n.r(V),n.d(V,{init:()=>Np,metadata:()=>Cp,name:()=>Sp,settings:()=>Bp});var $={};n.r($),n.d($,{init:()=>Dp,metadata:()=>Ap,name:()=>Lp,settings:()=>Hp});var G={};n.r(G),n.d(G,{init:()=>pd,metadata:()=>cd,name:()=>md,settings:()=>ud});var O={};n.r(O),n.d(O,{init:()=>Cd,metadata:()=>xd,name:()=>wd,settings:()=>Ed});var U={};n.r(U),n.d(U,{init:()=>Id,metadata:()=>Bd,name:()=>Nd,settings:()=>Td});var q={};n.r(q),n.d(q,{init:()=>bg,metadata:()=>dg,name:()=>gg,settings:()=>hg});var j={};n.r(j),n.d(j,{init:()=>xg,metadata:()=>vg,name:()=>fg,settings:()=>kg});var W={};n.r(W),n.d(W,{init:()=>Tg,metadata:()=>Sg,name:()=>Bg,settings:()=>Ng});var Z={};n.r(Z),n.d(Z,{init:()=>lb,metadata:()=>ab,name:()=>ob,settings:()=>rb});var Q={};n.r(Q),n.d(Q,{init:()=>fb,metadata:()=>_b,name:()=>yb,settings:()=>vb});var K={};n.r(K),n.d(K,{init:()=>Ib,metadata:()=>Bb,name:()=>Nb,settings:()=>Tb});var Y={};n.r(Y),n.d(Y,{init:()=>Lb,metadata:()=>zb,name:()=>Rb,settings:()=>Ab});var J={};n.r(J),n.d(J,{init:()=>jb,metadata:()=>Ob,name:()=>Ub,settings:()=>qb});var X={};n.r(X),n.d(X,{init:()=>o_,metadata:()=>t_,name:()=>n_,settings:()=>a_});var ee={};n.r(ee),n.d(ee,{init:()=>c_,metadata:()=>l_,name:()=>i_,settings:()=>s_});var te={};n.r(te),n.d(te,{init:()=>I_,metadata:()=>B_,name:()=>N_,settings:()=>T_});var ne={};n.r(ne),n.d(ne,{init:()=>H_,metadata:()=>R_,name:()=>A_,settings:()=>L_});var ae={};n.r(ae),n.d(ae,{init:()=>O_,metadata:()=>V_,name:()=>$_,settings:()=>G_});var oe={};n.r(oe),n.d(oe,{init:()=>Z_,metadata:()=>q_,name:()=>j_,settings:()=>W_});var re={};n.r(re),n.d(re,{init:()=>ey,metadata:()=>Y_,name:()=>J_,settings:()=>X_});var le={};n.r(le),n.d(le,{init:()=>ry,metadata:()=>ny,name:()=>ay,settings:()=>oy});var ie={};n.r(ie),n.d(ie,{init:()=>my,metadata:()=>iy,name:()=>sy,settings:()=>cy});var se={};n.r(se),n.d(se,{init:()=>hy,metadata:()=>py,name:()=>dy,settings:()=>gy});var ce={};n.r(ce),n.d(ce,{init:()=>Cy,metadata:()=>xy,name:()=>wy,settings:()=>Ey});var me={};n.r(me),n.d(me,{init:()=>Ry,metadata:()=>Py,name:()=>My,settings:()=>zy});var ue={};n.r(ue),n.d(ue,{init:()=>Vy,metadata:()=>Hy,name:()=>Dy,settings:()=>Fy});var pe={};n.r(pe),n.d(pe,{init:()=>Xy,metadata:()=>Ky,name:()=>Yy,settings:()=>Jy});var de={};n.r(de),n.d(de,{init:()=>iv,metadata:()=>ov,name:()=>rv,settings:()=>lv});var ge={};n.r(ge),n.d(ge,{init:()=>gv,metadata:()=>uv,name:()=>pv,settings:()=>dv});var he={};n.r(he),n.d(he,{init:()=>Ev,metadata:()=>kv,name:()=>xv,settings:()=>wv});var be={};n.r(be),n.d(be,{init:()=>Pv,metadata:()=>Nv,name:()=>Tv,settings:()=>Iv});var _e={};n.r(_e),n.d(_e,{init:()=>Hv,metadata:()=>Rv,name:()=>Av,settings:()=>Lv});var ye={};n.r(ye),n.d(ye,{init:()=>Uv,metadata:()=>$v,name:()=>Gv,settings:()=>Ov});var ve={};n.r(ve),n.d(ve,{init:()=>uf,metadata:()=>sf,name:()=>cf,settings:()=>mf});var fe={};n.r(fe),n.d(fe,{init:()=>kk,metadata:()=>yk,name:()=>vk,settings:()=>fk});var ke={};n.r(ke),n.d(ke,{init:()=>Sk,metadata:()=>wk,name:()=>Ek,settings:()=>Ck});var xe={};n.r(xe),n.d(xe,{init:()=>Rk,metadata:()=>Pk,name:()=>Mk,settings:()=>zk});var we={};n.r(we),n.d(we,{init:()=>Fk,metadata:()=>Lk,name:()=>Hk,settings:()=>Dk});var Ee={};n.r(Ee),n.d(Ee,{init:()=>Uk,metadata:()=>$k,name:()=>Gk,settings:()=>Ok});var Ce={};n.r(Ce),n.d(Ce,{init:()=>Qk,metadata:()=>jk,name:()=>Wk,settings:()=>Zk});var Se={};n.r(Se),n.d(Se,{init:()=>ox,metadata:()=>tx,name:()=>nx,settings:()=>ax});var Be={};n.r(Be),n.d(Be,{init:()=>wx,metadata:()=>fx,name:()=>kx,settings:()=>xx});var Ne={};n.r(Ne),n.d(Ne,{init:()=>$x,metadata:()=>Dx,name:()=>Fx,settings:()=>Vx});var Te={};n.r(Te),n.d(Te,{init:()=>qx,metadata:()=>Gx,name:()=>Ox,settings:()=>Ux});var Ie={};n.r(Ie),n.d(Ie,{init:()=>Kx,metadata:()=>Wx,name:()=>Zx,settings:()=>Qx});var Pe={};n.r(Pe),n.d(Pe,{init:()=>cw,metadata:()=>lw,name:()=>iw,settings:()=>sw});var Me={};n.r(Me),n.d(Me,{init:()=>_w,metadata:()=>gw,name:()=>hw,settings:()=>bw});var ze={};n.r(ze),n.d(ze,{init:()=>Ew,metadata:()=>kw,name:()=>xw,settings:()=>ww});var Re={};n.r(Re),n.d(Re,{init:()=>Aw,metadata:()=>Mw,name:()=>zw,settings:()=>Rw});var Ae={};n.r(Ae),n.d(Ae,{init:()=>Ow,metadata:()=>Vw,name:()=>$w,settings:()=>Gw});var Le={};n.r(Le),n.d(Le,{init:()=>Jw,metadata:()=>Qw,name:()=>Kw,settings:()=>Yw});var He={};n.r(He),n.d(He,{init:()=>cE,metadata:()=>lE,name:()=>iE,settings:()=>sE});var De={};n.r(De),n.d(De,{init:()=>yE,metadata:()=>hE,name:()=>bE,settings:()=>_E});var Fe={};n.r(Fe),n.d(Fe,{init:()=>IE,metadata:()=>BE,name:()=>NE,settings:()=>TE});var Ve={};n.r(Ve),n.d(Ve,{init:()=>bC,metadata:()=>dC,name:()=>gC,settings:()=>hC});var $e={};n.r($e),n.d($e,{init:()=>BC,metadata:()=>EC,name:()=>CC,settings:()=>SC});var Ge={};n.r(Ge),n.d(Ge,{init:()=>zC,metadata:()=>IC,name:()=>PC,settings:()=>MC});var Oe={};n.r(Oe),n.d(Oe,{init:()=>bS,metadata:()=>dS,name:()=>gS,settings:()=>hS});var Ue={};n.r(Ue),n.d(Ue,{init:()=>kS,metadata:()=>yS,name:()=>vS,settings:()=>fS});var qe={};n.r(qe),n.d(qe,{init:()=>BS,metadata:()=>ES,name:()=>CS,settings:()=>SS});var je={};n.r(je),n.d(je,{init:()=>LS,metadata:()=>zS,name:()=>RS,settings:()=>AS});var We={};n.r(We),n.d(We,{init:()=>rB,metadata:()=>nB,name:()=>aB,settings:()=>oB});var Ze={};n.r(Ze),n.d(Ze,{init:()=>fB,metadata:()=>_B,name:()=>yB,settings:()=>vB});const Qe=window.wp.blocks,Ke=window.React,Ye=window.wp.primitives,Je=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M11.934 7.406a1 1 0 0 0 .914.594H19a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5h5.764a.5.5 0 0 1 .447.276l.723 1.63Zm1.064-1.216a.5.5 0 0 0 .462.31H19a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h5.764a2 2 0 0 1 1.789 1.106l.445 1.084ZM8.5 10.5h7V12h-7v-1.5Zm7 3.5h-7v1.5h7V14Z"}));function Xe(e){if(!e)return;const{metadata:t,settings:n,name:a}=e;return(0,Qe.registerBlockType)({name:a,...t},n)}const et=window.wp.components,tt=window.wp.i18n,nt=window.wp.blockEditor,at=window.wp.serverSideRender;var ot=n.n(at);const rt={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/archives",title:"Archives",category:"widgets",description:"Display a date archive of your posts.",textdomain:"default",attributes:{displayAsDropdown:{type:"boolean",default:!1},showLabel:{type:"boolean",default:!0},showPostCounts:{type:"boolean",default:!1},type:{type:"string",default:"monthly"}},supports:{align:!0,html:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-archives-editor"},{name:lt}=rt,it={icon:Je,example:{},edit:function({attributes:e,setAttributes:t}){const{showLabel:n,showPostCounts:a,displayAsDropdown:o,type:r}=e;return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Display as dropdown"),checked:o,onChange:()=>t({displayAsDropdown:!o})}),o&&(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show label"),checked:n,onChange:()=>t({showLabel:!n})}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show post counts"),checked:a,onChange:()=>t({showPostCounts:!a})}),(0,Ke.createElement)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Group by:"),options:[{label:(0,tt.__)("Year"),value:"yearly"},{label:(0,tt.__)("Month"),value:"monthly"},{label:(0,tt.__)("Week"),value:"weekly"},{label:(0,tt.__)("Day"),value:"daily"}],value:r,onChange:e=>t({type:e})}))),(0,Ke.createElement)("div",{...(0,nt.useBlockProps)()},(0,Ke.createElement)(et.Disabled,null,(0,Ke.createElement)(ot(),{block:"core/archives",skipBlockSupportAttributes:!0,attributes:e}))))}},st=()=>Xe({name:lt,metadata:rt,settings:it}),ct=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{fillRule:"evenodd",d:"M7.25 16.437a6.5 6.5 0 1 1 9.5 0V16A2.75 2.75 0 0 0 14 13.25h-4A2.75 2.75 0 0 0 7.25 16v.437Zm1.5 1.193a6.47 6.47 0 0 0 3.25.87 6.47 6.47 0 0 0 3.25-.87V16c0-.69-.56-1.25-1.25-1.25h-4c-.69 0-1.25.56-1.25 1.25v1.63ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm10-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z",clipRule:"evenodd"}));function mt(e){var t,n,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=mt(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}const ut=function(){for(var e,t,n=0,a="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=mt(e))&&(a&&(a+=" "),a+=t);return a},pt=window.wp.url,dt=window.wp.coreData,gt=window.wp.data;function ht(e){const t=e?e[0]:24,n=e?e[e.length-1]:96;return{minSize:t,maxSize:Math.floor(2.5*n)}}function bt(){const{avatarURL:e}=(0,gt.useSelect)((e=>{const{getSettings:t}=e(nt.store),{__experimentalDiscussionSettings:n}=t();return n}));return e}const _t=window.wp.element,yt={who:"authors",per_page:-1,_fields:"id,name",context:"view"};const vt=function({value:e,onChange:t}){const[n,a]=(0,_t.useState)(),o=(0,gt.useSelect)((e=>{const{getUsers:t}=e(dt.store);return t(yt)}),[]);if(!o)return null;const r=o.map((e=>({label:e.name,value:e.id})));return(0,Ke.createElement)(et.ComboboxControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("User"),help:(0,tt.__)("Select the avatar user to display, if it is blank it will use the post/page author."),value:e,onChange:t,options:n||r,onFilterValueChange:e=>a(r.filter((t=>t.label.toLowerCase().startsWith(e.toLowerCase()))))})},ft=({setAttributes:e,avatar:t,attributes:n,selectUser:a})=>(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Image size"),onChange:t=>e({size:t}),min:t.minSize,max:t.maxSize,initialPosition:n?.size,value:n?.size}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Link to user profile"),onChange:()=>e({isLink:!n.isLink}),checked:n.isLink}),n.isLink&&(0,Ke.createElement)(et.ToggleControl,{label:(0,tt.__)("Open in new tab"),onChange:t=>e({linkTarget:t?"_blank":"_self"}),checked:"_blank"===n.linkTarget}),a&&(0,Ke.createElement)(vt,{value:n?.userId,onChange:t=>{e({userId:t})}}))),kt=({setAttributes:e,attributes:t,avatar:n,blockProps:a,isSelected:o})=>{const r=(0,nt.__experimentalUseBorderProps)(t),l=(0,pt.addQueryArgs)((0,pt.removeQueryArgs)(n?.src,["s"]),{s:2*t?.size});return(0,Ke.createElement)("div",{...a},(0,Ke.createElement)(et.ResizableBox,{size:{width:t.size,height:t.size},showHandle:o,onResizeStop:(n,a,o,r)=>{e({size:parseInt(t.size+(r.height||r.width),10)})},lockAspectRatio:!0,enable:{top:!1,right:!(0,tt.isRTL)(),bottom:!0,left:(0,tt.isRTL)()},minWidth:n.minSize,maxWidth:n.maxSize},(0,Ke.createElement)("img",{src:l,alt:n.alt,className:ut("avatar","avatar-"+t.size,"photo","wp-block-avatar__image",r.className),style:r.style})))},xt=({attributes:e,context:t,setAttributes:n,isSelected:a})=>{const{commentId:o}=t,r=(0,nt.useBlockProps)(),l=function({commentId:e}){const[t]=(0,dt.useEntityProp)("root","comment","author_avatar_urls",e),[n]=(0,dt.useEntityProp)("root","comment","author_name",e),a=t?Object.values(t):null,o=t?Object.keys(t):null,{minSize:r,maxSize:l}=ht(o),i=bt();return{src:a?a[a.length-1]:i,minSize:r,maxSize:l,alt:n?(0,tt.sprintf)((0,tt.__)("%s Avatar"),n):(0,tt.__)("Default Avatar")}}({commentId:o});return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(ft,{avatar:l,setAttributes:n,attributes:e,selectUser:!1}),e.isLink?(0,Ke.createElement)("a",{href:"#avatar-pseudo-link",className:"wp-block-avatar__link",onClick:e=>e.preventDefault()},(0,Ke.createElement)(kt,{attributes:e,avatar:l,blockProps:r,isSelected:a,setAttributes:n})):(0,Ke.createElement)(kt,{attributes:e,avatar:l,blockProps:r,isSelected:a,setAttributes:n}))},wt=({attributes:e,context:t,setAttributes:n,isSelected:a})=>{const{postId:o,postType:r}=t,l=function({userId:e,postId:t,postType:n}){const{authorDetails:a}=(0,gt.useSelect)((a=>{const{getEditedEntityRecord:o,getUser:r}=a(dt.store);if(e)return{authorDetails:r(e)};const l=o("postType",n,t)?.author;return{authorDetails:l?r(l):null}}),[n,t,e]),o=a?.avatar_urls?Object.values(a.avatar_urls):null,r=a?.avatar_urls?Object.keys(a.avatar_urls):null,{minSize:l,maxSize:i}=ht(r),s=bt();return{src:o?o[o.length-1]:s,minSize:l,maxSize:i,alt:a?(0,tt.sprintf)((0,tt.__)("%s Avatar"),a?.name):(0,tt.__)("Default Avatar")}}({userId:e?.userId,postId:o,postType:r}),i=(0,nt.useBlockProps)();return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(ft,{selectUser:!0,attributes:e,avatar:l,setAttributes:n}),e.isLink?(0,Ke.createElement)("a",{href:"#avatar-pseudo-link",className:"wp-block-avatar__link",onClick:e=>e.preventDefault()},(0,Ke.createElement)(kt,{attributes:e,avatar:l,blockProps:i,isSelected:a,setAttributes:n})):(0,Ke.createElement)(kt,{attributes:e,avatar:l,blockProps:i,isSelected:a,setAttributes:n}))};const Et={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/avatar",title:"Avatar",category:"theme",description:"Add a user’s avatar.",textdomain:"default",attributes:{userId:{type:"number"},size:{type:"number",default:96},isLink:{type:"boolean",default:!1},linkTarget:{type:"string",default:"_self"}},usesContext:["postType","postId","commentId"],supports:{html:!1,align:!0,alignWide:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__experimentalBorder:{__experimentalSkipSerialization:!0,radius:!0,width:!0,color:!0,style:!0,__experimentalDefaultControls:{radius:!0}},color:{text:!1,background:!1,__experimentalDuotone:"img"},interactivity:{clientNavigation:!0}},selectors:{border:".wp-block-avatar img"},editorStyle:"wp-block-avatar-editor",style:"wp-block-avatar"},{name:Ct}=Et,St={icon:ct,edit:function(e){return e?.context?.commentId||null===e?.context?.commentId?(0,Ke.createElement)(xt,{...e}):(0,Ke.createElement)(wt,{...e})}},Bt=()=>Xe({name:Ct,metadata:Et,settings:St}),Nt=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M17.7 4.3c-1.2 0-2.8 0-3.8 1-.6.6-.9 1.5-.9 2.6V14c-.6-.6-1.5-1-2.5-1C8.6 13 7 14.6 7 16.5S8.6 20 10.5 20c1.5 0 2.8-1 3.3-2.3.5-.8.7-1.8.7-2.5V7.9c0-.7.2-1.2.5-1.6.6-.6 1.8-.6 2.8-.6h.3V4.3h-.4z"})),Tt=[{attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src"},caption:{type:"string",source:"html",selector:"figcaption"},id:{type:"number"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{align:!0},save({attributes:e}){const{autoplay:t,caption:n,loop:a,preload:o,src:r}=e;return(0,Ke.createElement)("figure",null,(0,Ke.createElement)("audio",{controls:"controls",src:r,autoPlay:t,loop:a,preload:o}),!nt.RichText.isEmpty(n)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",value:n}))}}],It=window.wp.blob,Pt=window.wp.notices;function Mt(e,t){var n,a,o=0;function r(){var r,l,i=n,s=arguments.length;e:for(;i;){if(i.args.length===arguments.length){for(l=0;l<s;l++)if(i.args[l]!==arguments[l]){i=i.next;continue e}return i!==n&&(i===a&&(a=i.prev),i.prev.next=i.next,i.next&&(i.next.prev=i.prev),i.next=n,i.prev=null,n.prev=i,n=i),i.val}i=i.next}for(r=new Array(s),l=0;l<s;l++)r[l]=arguments[l];return i={args:r,val:e.apply(null,r)},n?(n.prev=i,i.next=n):a=i,o===t.maxSize?(a=a.prev).next=null:o++,n=i,i.val}return t=t||{},r.clear=function(){n=null,a=null,o=0},r}const zt=[{ratio:"2.33",className:"wp-embed-aspect-21-9"},{ratio:"2.00",className:"wp-embed-aspect-18-9"},{ratio:"1.78",className:"wp-embed-aspect-16-9"},{ratio:"1.33",className:"wp-embed-aspect-4-3"},{ratio:"1.00",className:"wp-embed-aspect-1-1"},{ratio:"0.56",className:"wp-embed-aspect-9-16"},{ratio:"0.50",className:"wp-embed-aspect-1-2"}],Rt="wp-embed",At=window.wp.privateApis,{lock:Lt,unlock:Ht}=(0,At.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.","@wordpress/block-library"),{name:Dt}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter or YouTube.",textdomain:"default",attributes:{url:{type:"string",__experimentalRole:"content"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",__experimentalRole:"content"},type:{type:"string",__experimentalRole:"content"},providerNameSlug:{type:"string",__experimentalRole:"content"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1,__experimentalRole:"content"},previewable:{type:"boolean",default:!0,__experimentalRole:"content"}},supports:{align:!0,spacing:{margin:!0},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"},Ft=e=>e&&e.includes('class="wp-embedded-content"'),Vt=(e,t={})=>{const{preview:n,attributes:a={}}=e,{url:o,providerNameSlug:r,type:l,...i}=a;if(!o||!(0,Qe.getBlockType)(Dt))return;const s=(e=>(0,Qe.getBlockVariations)(Dt)?.find((({patterns:t})=>((e,t=[])=>t.some((t=>e.match(t))))(e,t))))(o),c="wordpress"===r||l===Rt;if(!c&&s&&(s.attributes.providerNameSlug!==r||!r))return(0,Qe.createBlock)(Dt,{url:o,...i,...s.attributes});const m=(0,Qe.getBlockVariations)(Dt)?.find((({name:e})=>"wordpress"===e));return m&&n&&Ft(n.html)&&!c?(0,Qe.createBlock)(Dt,{url:o,...m.attributes,...t}):void 0},$t=e=>{if(!e)return e;const t=zt.reduce(((e,{className:t})=>(e.push(t),e)),["wp-has-aspect-ratio"]);let n=e;for(const e of t)n=n.replace(e,"");return n.trim()};function Gt(e,t,n=!0){if(!n)return $t(t);const a=document.implementation.createHTMLDocument("");a.body.innerHTML=e;const o=a.body.querySelector("iframe");if(o&&o.height&&o.width){const e=(o.width/o.height).toFixed(2);for(let n=0;n<zt.length;n++){const a=zt[n];if(e>=a.ratio){return e-a.ratio>.1?$t(t):ut($t(t),a.className,"wp-has-aspect-ratio")}}}return t}const Ot=Mt(((e,t,n,a,o=!0)=>{if(!e)return{};const r={};let{type:l="rich"}=e;const{html:i,provider_name:s}=e,{kebabCase:c}=Ht(et.privateApis),m=c((s||t).toLowerCase());return Ft(i)&&(l=Rt),(i||"photo"===l)&&(r.type=l,r.providerNameSlug=m),(u=n)&&zt.some((({className:e})=>u.includes(e)))||(r.className=Gt(i,n,a&&o)),r;var u}));function Ut(e,t,n){return(0,gt.useSelect)((a=>a(dt.store).canUserEditEntityRecord(e,t,n)),[e,t,n])}function qt(e={}){const t=(0,_t.useRef)(e),{getSettings:n}=(0,gt.useSelect)(nt.store);(0,_t.useLayoutEffect)((()=>{t.current=e})),(0,_t.useEffect)((()=>{if(!t.current.url||!(0,It.isBlobURL)(t.current.url))return;const e=(0,It.getBlobByURL)(t.current.url);if(!e)return;const{url:a,allowedTypes:o,onChange:r,onError:l}=t.current,{mediaUpload:i}=n();i({filesList:[e],allowedTypes:o,onFileChange:([e])=>{(0,It.isBlobURL)(e?.url)||((0,It.revokeBlobURL)(a),r(e))},onError:e=>{(0,It.revokeBlobURL)(a),l(e)}})}),[n])}const jt=window.wp.compose,Wt=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6 5.5h12a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5ZM4 6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6Zm4 10h2v-1.5H8V16Zm5 0h-2v-1.5h2V16Zm1 0h2v-1.5h-2V16Z"}));function Zt({attributeKey:e="caption",attributes:t,setAttributes:n,isSelected:a,insertBlocksAfter:o,placeholder:r=(0,tt.__)("Add caption"),label:l=(0,tt.__)("Caption text"),showToolbarButton:i=!0,className:s,readOnly:c,tagName:m="figcaption",addLabel:u=(0,tt.__)("Add caption"),removeLabel:p=(0,tt.__)("Remove caption"),icon:d=Wt,...g}){const h=t[e],b=(0,jt.usePrevious)(h),{PrivateRichText:_}=Ht(nt.privateApis),y=_.isEmpty(h),v=_.isEmpty(b),[f,k]=(0,_t.useState)(!y);(0,_t.useEffect)((()=>{!y&&v&&k(!0)}),[y,v]),(0,_t.useEffect)((()=>{!a&&y&&k(!1)}),[a,y]);const x=(0,_t.useCallback)((e=>{e&&y&&e.focus()}),[y]);return(0,Ke.createElement)(Ke.Fragment,null,i&&(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(et.ToolbarButton,{onClick:()=>{k(!f),f&&h&&n({[e]:void 0})},icon:d,isPressed:f,label:f?p:u})),f&&(!_.isEmpty(h)||a)&&(0,Ke.createElement)(_,{identifier:e,tagName:m,className:ut(s,(0,nt.__experimentalGetElementClassName)("caption")),ref:x,"aria-label":l,placeholder:r,value:h,onChange:t=>n({[e]:t}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>o((0,Qe.createBlock)((0,Qe.getDefaultBlockName)())),readOnly:c,...g}))}const Qt=["audio"];const Kt=function({attributes:e,className:t,setAttributes:n,onReplace:a,isSelected:o,insertBlocksAfter:r}){const{id:l,autoplay:i,loop:s,preload:c,src:m}=e,u=!l&&(0,It.isBlobURL)(m);function p(e){return t=>{n({[e]:t})}}function d(e){if(e!==m){const t=Vt({attributes:{url:e}});if(void 0!==t&&a)return void a(t);n({src:e,id:void 0})}}qt({url:m,allowedTypes:Qt,onChange:b,onError:h});const{createErrorNotice:g}=(0,gt.useDispatch)(Pt.store);function h(e){g(e,{type:"snackbar"})}function b(e){e&&e.url?n({src:e.url,id:e.id,caption:e.caption}):n({src:void 0,id:void 0,caption:void 0})}const _=ut(t,{"is-transient":u}),y=(0,nt.useBlockProps)({className:_});return m?(0,Ke.createElement)(Ke.Fragment,null,o&&(0,Ke.createElement)(nt.BlockControls,{group:"other"},(0,Ke.createElement)(nt.MediaReplaceFlow,{mediaId:l,mediaURL:m,allowedTypes:Qt,accept:"audio/*",onSelect:b,onSelectURL:d,onError:h})),(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Autoplay"),onChange:p("autoplay"),checked:i,help:function(e){return e?(0,tt.__)("Autoplay may cause usability issues for some users."):null}}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Loop"),onChange:p("loop"),checked:s}),(0,Ke.createElement)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt._x)("Preload","noun; Audio block parameter"),value:c||"",onChange:e=>n({preload:e||void 0}),options:[{value:"",label:(0,tt.__)("Browser default")},{value:"auto",label:(0,tt.__)("Auto")},{value:"metadata",label:(0,tt.__)("Metadata")},{value:"none",label:(0,tt._x)("None","Preload value")}]}))),(0,Ke.createElement)("figure",{...y},(0,Ke.createElement)(et.Disabled,{isDisabled:!o},(0,Ke.createElement)("audio",{controls:"controls",src:m})),u&&(0,Ke.createElement)(et.Spinner,null),(0,Ke.createElement)(Zt,{attributes:e,setAttributes:n,isSelected:o,insertBlocksAfter:r,label:(0,tt.__)("Audio caption text"),showToolbarButton:o}))):(0,Ke.createElement)("div",{...y},(0,Ke.createElement)(nt.MediaPlaceholder,{icon:(0,Ke.createElement)(nt.BlockIcon,{icon:Nt}),onSelect:b,onSelectURL:d,accept:"audio/*",allowedTypes:Qt,value:e,onError:h}))};const Yt={from:[{type:"files",isMatch:e=>1===e.length&&0===e[0].type.indexOf("audio/"),transform(e){const t=e[0];return(0,Qe.createBlock)("core/audio",{src:(0,It.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:({named:{src:e,mp3:t,m4a:n,ogg:a,wav:o,wma:r}})=>e||t||n||a||o||r},loop:{type:"string",shortcode:({named:{loop:e}})=>e},autoplay:{type:"string",shortcode:({named:{autoplay:e}})=>e},preload:{type:"string",shortcode:({named:{preload:e}})=>e}}}]},Jt=Yt,Xt={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/audio",title:"Audio",category:"media",description:"Embed a simple audio player.",keywords:["music","sound","podcast","recording"],textdomain:"default",attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src",__experimentalRole:"content"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",__experimentalRole:"content"},id:{type:"number",__experimentalRole:"content"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{anchor:!0,align:!0,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-audio-editor",style:"wp-block-audio"},{name:en}=Xt,tn={icon:Nt,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg"},viewportWidth:350},transforms:Jt,deprecated:Tt,edit:Kt,save:function({attributes:e}){const{autoplay:t,caption:n,loop:a,preload:o,src:r}=e;return r&&(0,Ke.createElement)("figure",{...nt.useBlockProps.save()},(0,Ke.createElement)("audio",{controls:"controls",src:r,autoPlay:t,loop:a,preload:o}),!nt.RichText.isEmpty(n)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",value:n,className:(0,nt.__experimentalGetElementClassName)("caption")}))}},nn=()=>Xe({name:en,metadata:Xt,settings:tn}),an=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M8 12.5h8V11H8v1.5Z M19 6.5H5a2 2 0 0 0-2 2V15a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a2 2 0 0 0-2-2ZM5 8h14a.5.5 0 0 1 .5.5V15a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V8.5A.5.5 0 0 1 5 8Z"})),{cleanEmptyObject:on}=Ht(nt.privateApis);function rn(e){if(!e?.style?.typography?.fontFamily)return e;const{fontFamily:t,...n}=e.style.typography;return{...e,style:on({...e.style,typography:n}),fontFamily:t.split("|").pop()}}const ln=e=>{const{borderRadius:t,...n}=e,a=[t,n.style?.border?.radius].find((e=>"number"==typeof e&&0!==e));return a?{...n,style:{...n.style,border:{...n.style?.border,radius:`${a}px`}}}:n};const sn=e=>{if(!e.customTextColor&&!e.customBackgroundColor&&!e.customGradient)return e;const t={color:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customGradient&&(t.color.gradient=e.customGradient);const{customTextColor:n,customBackgroundColor:a,customGradient:o,...r}=e;return{...r,style:t}},cn=e=>{const{color:t,textColor:n,...a}={...e,customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.color&&"#"===e.color[0]?e.color:void 0};return sn(a)},mn={url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"}},un={attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,__experimentalFontFamily:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}},__experimentalSelector:".wp-block-button__link"},save({attributes:e,className:t}){const{fontSize:n,linkTarget:a,rel:o,style:r,text:l,title:i,url:s,width:c}=e;if(!l)return null;const m=(0,nt.__experimentalGetBorderClassesAndStyles)(e),u=(0,nt.__experimentalGetColorClassesAndStyles)(e),p=(0,nt.__experimentalGetSpacingClassesAndStyles)(e),d=ut("wp-block-button__link",u.className,m.className,{"no-border-radius":0===r?.border?.radius}),g={...m.style,...u.style,...p.style},h=ut(t,{[`has-custom-width wp-block-button__width-${c}`]:c,"has-custom-font-size":n||r?.typography?.fontSize});return(0,Ke.createElement)("div",{...nt.useBlockProps.save({className:h})},(0,Ke.createElement)(nt.RichText.Content,{tagName:"a",className:d,href:s,title:i,style:g,value:l,target:a,rel:o}))}},pn={attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},reusable:!1,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0},__experimentalSelector:".wp-block-button__link"},save({attributes:e,className:t}){const{fontSize:n,linkTarget:a,rel:o,style:r,text:l,title:i,url:s,width:c}=e;if(!l)return null;const m=(0,nt.__experimentalGetBorderClassesAndStyles)(e),u=(0,nt.__experimentalGetColorClassesAndStyles)(e),p=(0,nt.__experimentalGetSpacingClassesAndStyles)(e),d=ut("wp-block-button__link",u.className,m.className,{"no-border-radius":0===r?.border?.radius}),g={...m.style,...u.style,...p.style},h=ut(t,{[`has-custom-width wp-block-button__width-${c}`]:c,"has-custom-font-size":n||r?.typography?.fontSize});return(0,Ke.createElement)("div",{...nt.useBlockProps.save({className:h})},(0,Ke.createElement)(nt.RichText.Content,{tagName:"a",className:d,href:s,title:i,style:g,value:l,target:a,rel:o}))},migrate:rn,isEligible:({style:e})=>e?.typography?.fontFamily},dn=[un,pn,{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...mn,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},isEligible:({style:e})=>"number"==typeof e?.border?.radius,save({attributes:e,className:t}){const{fontSize:n,linkTarget:a,rel:o,style:r,text:l,title:i,url:s,width:c}=e;if(!l)return null;const m=r?.border?.radius,u=(0,nt.__experimentalGetColorClassesAndStyles)(e),p=ut("wp-block-button__link",u.className,{"no-border-radius":0===r?.border?.radius}),d={borderRadius:m||void 0,...u.style},g=ut(t,{[`has-custom-width wp-block-button__width-${c}`]:c,"has-custom-font-size":n||r?.typography?.fontSize});return(0,Ke.createElement)("div",{...nt.useBlockProps.save({className:g})},(0,Ke.createElement)(nt.RichText.Content,{tagName:"a",className:p,href:s,title:i,style:d,value:l,target:a,rel:o}))},migrate:(0,jt.compose)(rn,ln)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...mn,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},width:{type:"number"}},save({attributes:e,className:t}){const{borderRadius:n,linkTarget:a,rel:o,text:r,title:l,url:i,width:s}=e,c=(0,nt.__experimentalGetColorClassesAndStyles)(e),m=ut("wp-block-button__link",c.className,{"no-border-radius":0===n}),u={borderRadius:n?n+"px":void 0,...c.style},p=ut(t,{[`has-custom-width wp-block-button__width-${s}`]:s});return(0,Ke.createElement)("div",{...nt.useBlockProps.save({className:p})},(0,Ke.createElement)(nt.RichText.Content,{tagName:"a",className:m,href:i,title:l,style:u,value:r,target:a,rel:o}))},migrate:(0,jt.compose)(rn,ln)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...mn,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},width:{type:"number"}},save({attributes:e,className:t}){const{borderRadius:n,linkTarget:a,rel:o,text:r,title:l,url:i,width:s}=e,c=(0,nt.__experimentalGetColorClassesAndStyles)(e),m=ut("wp-block-button__link",c.className,{"no-border-radius":0===n}),u={borderRadius:n?n+"px":void 0,...c.style},p=ut(t,{[`has-custom-width wp-block-button__width-${s}`]:s});return(0,Ke.createElement)("div",{...nt.useBlockProps.save({className:p})},(0,Ke.createElement)(nt.RichText.Content,{tagName:"a",className:m,href:i,title:l,style:u,value:r,target:a,rel:o}))},migrate:(0,jt.compose)(rn,ln)},{supports:{align:!0,alignWide:!1,color:{gradients:!0}},attributes:{...mn,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"}},save({attributes:e}){const{borderRadius:t,linkTarget:n,rel:a,text:o,title:r,url:l}=e,i=ut("wp-block-button__link",{"no-border-radius":0===t}),s={borderRadius:t?t+"px":void 0};return(0,Ke.createElement)(nt.RichText.Content,{tagName:"a",className:i,href:l,title:r,style:s,value:o,target:n,rel:a})},migrate:ln},{supports:{align:!0,alignWide:!1},attributes:{...mn,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},customGradient:{type:"string"},gradient:{type:"string"}},isEligible:e=>!!(e.customTextColor||e.customBackgroundColor||e.customGradient||e.align),migrate:(0,jt.compose)(ln,sn,(function(e){if(!e.align)return e;const{align:t,...n}=e;return{...n,className:ut(n.className,`align${e.align}`)}})),save({attributes:e}){const{backgroundColor:t,borderRadius:n,customBackgroundColor:a,customTextColor:o,customGradient:r,linkTarget:l,gradient:i,rel:s,text:c,textColor:m,title:u,url:p}=e,d=(0,nt.getColorClassName)("color",m),g=!r&&(0,nt.getColorClassName)("background-color",t),h=(0,nt.__experimentalGetGradientClass)(i),b=ut("wp-block-button__link",{"has-text-color":m||o,[d]:d,"has-background":t||a||r||i,[g]:g,"no-border-radius":0===n,[h]:h}),_={background:r||void 0,backgroundColor:g||r||i?void 0:a,color:d?void 0:o,borderRadius:n?n+"px":void 0};return(0,Ke.createElement)("div",null,(0,Ke.createElement)(nt.RichText.Content,{tagName:"a",className:b,href:p,title:u,style:_,value:c,target:l,rel:s}))}},{attributes:{...mn,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"}},isEligible:e=>e.className&&e.className.includes("is-style-squared"),migrate(e){let t=e.className;return t&&(t=t.replace(/is-style-squared[\s]?/,"").trim()),ln(sn({...e,className:t||void 0,borderRadius:0}))},save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n,customTextColor:a,linkTarget:o,rel:r,text:l,textColor:i,title:s,url:c}=e,m=(0,nt.getColorClassName)("color",i),u=(0,nt.getColorClassName)("background-color",t),p=ut("wp-block-button__link",{"has-text-color":i||a,[m]:m,"has-background":t||n,[u]:u}),d={backgroundColor:u?void 0:n,color:m?void 0:a};return(0,Ke.createElement)("div",null,(0,Ke.createElement)(nt.RichText.Content,{tagName:"a",className:p,href:c,title:s,style:d,value:l,target:o,rel:r}))}},{attributes:{...mn,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}},migrate:cn,save({attributes:e}){const{url:t,text:n,title:a,backgroundColor:o,textColor:r,customBackgroundColor:l,customTextColor:i}=e,s=(0,nt.getColorClassName)("color",r),c=(0,nt.getColorClassName)("background-color",o),m=ut("wp-block-button__link",{"has-text-color":r||i,[s]:s,"has-background":o||l,[c]:c}),u={backgroundColor:c?void 0:l,color:s?void 0:i};return(0,Ke.createElement)("div",null,(0,Ke.createElement)(nt.RichText.Content,{tagName:"a",className:m,href:t,title:a,style:u,value:n}))}},{attributes:{...mn,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){const{url:t,text:n,title:a,align:o,color:r,textColor:l}=e,i={backgroundColor:r,color:l};return(0,Ke.createElement)("div",{className:`align${o}`},(0,Ke.createElement)(nt.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:t,title:a,style:i,value:n}))},migrate:cn},{attributes:{...mn,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){const{url:t,text:n,title:a,align:o,color:r,textColor:l}=e;return(0,Ke.createElement)("div",{className:`align${o}`,style:{backgroundColor:r}},(0,Ke.createElement)(nt.RichText.Content,{tagName:"a",href:t,title:a,style:{color:l},value:n}))},migrate:cn}],gn=dn,hn="noreferrer noopener",bn="_blank",_n="nofollow";function yn(e){return e.toString().replace(/<\/?a[^>]*>/g,"")}const vn=window.wp.keycodes,fn=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"})),kn=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"})),xn=[...nt.__experimentalLinkControl.DEFAULT_LINK_SETTINGS,{id:"nofollow",title:(0,tt.__)("Mark as nofollow")}];function wn({selectedWidth:e,setAttributes:t}){return(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.ButtonGroup,{"aria-label":(0,tt.__)("Button width")},[25,50,75,100].map((n=>(0,Ke.createElement)(et.Button,{key:n,size:"small",variant:n===e?"primary":void 0,onClick:()=>{var a;t({width:e===(a=n)?void 0:a})}},n,"%")))))}const En=function(e){const{attributes:t,setAttributes:n,className:a,isSelected:o,onReplace:r,mergeBlocks:l,clientId:i}=e,{tagName:s,textAlign:c,linkTarget:m,placeholder:u,rel:p,style:d,text:g,url:h,width:b,metadata:_}=t,y=s||"a",[v,f]=(0,_t.useState)(null),k=(0,nt.__experimentalUseBorderProps)(t),x=(0,nt.__experimentalUseColorProps)(t),w=(0,nt.__experimentalGetSpacingClassesAndStyles)(t),E=(0,nt.__experimentalGetShadowClassesAndStyles)(t),C=(0,_t.useRef)(),S=(0,_t.useRef)(),B=(0,nt.useBlockProps)({ref:(0,jt.useMergeRefs)([f,C]),onKeyDown:function(e){vn.isKeyboardEvent.primary(e,"k")?A(e):vn.isKeyboardEvent.primaryShift(e,"k")&&(L(),S.current?.focus())}}),N=(0,nt.useBlockEditingMode)(),[T,I]=(0,_t.useState)(!1),P=!!h,M=m===bn,z=!!p?.includes(_n),R="a"===y;function A(e){e.preventDefault(),I(!0)}function L(){n({url:void 0,linkTarget:void 0,rel:void 0}),I(!1)}(0,_t.useEffect)((()=>{o||I(!1)}),[o]);const H=(0,_t.useMemo)((()=>({url:h,opensInNewTab:M,nofollow:z})),[h,M,z]),D=function(e){const{replaceBlocks:t,selectionChange:n}=(0,gt.useDispatch)(nt.store),{getBlock:a,getBlockRootClientId:o,getBlockIndex:r}=(0,gt.useSelect)(nt.store),l=(0,_t.useRef)(e);return l.current=e,(0,jt.useRefEffect)((e=>{function i(e){if(e.defaultPrevented||e.keyCode!==vn.ENTER)return;const{content:i,clientId:s}=l.current;if(i.length)return;e.preventDefault();const c=a(o(s)),m=r(s),u=(0,Qe.cloneBlock)({...c,innerBlocks:c.innerBlocks.slice(0,m)}),p=(0,Qe.createBlock)((0,Qe.getDefaultBlockName)()),d=c.innerBlocks.slice(m+1),g=d.length?[(0,Qe.cloneBlock)({...c,innerBlocks:d})]:[];t(c.clientId,[u,p,...g],1),n(p.clientId)}return e.addEventListener("keydown",i),()=>{e.removeEventListener("keydown",i)}}),[])}({content:g,clientId:i}),F=(0,jt.useMergeRefs)([D,S]),{lockUrlControls:V=!1}=(0,gt.useSelect)((e=>{if(!o)return{};const t=Ht(e(Qe.store)).getBlockBindingsSource(_?.bindings?.url?.source);return{lockUrlControls:!!_?.bindings?.url&&(!t||t?.lockAttributesEditing)}}),[o]);return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)("div",{...B,className:ut(B.className,{[`has-custom-width wp-block-button__width-${b}`]:b,"has-custom-font-size":B.style.fontSize})},(0,Ke.createElement)(nt.RichText,{ref:F,"aria-label":(0,tt.__)("Button text"),placeholder:u||(0,tt.__)("Add text…"),value:g,onChange:e=>n({text:yn(e)}),withoutInteractiveFormatting:!0,className:ut(a,"wp-block-button__link",x.className,k.className,{[`has-text-align-${c}`]:c,"no-border-radius":0===d?.border?.radius},(0,nt.__experimentalGetElementClassName)("button")),style:{...k.style,...x.style,...w.style,...E.style},onReplace:r,onMerge:l,identifier:"text"})),(0,Ke.createElement)(nt.BlockControls,{group:"block"},"default"===N&&(0,Ke.createElement)(nt.AlignmentControl,{value:c,onChange:e=>{n({textAlign:e})}}),!P&&R&&!V&&(0,Ke.createElement)(et.ToolbarButton,{name:"link",icon:fn,title:(0,tt.__)("Link"),shortcut:vn.displayShortcut.primary("k"),onClick:A}),P&&R&&!V&&(0,Ke.createElement)(et.ToolbarButton,{name:"link",icon:kn,title:(0,tt.__)("Unlink"),shortcut:vn.displayShortcut.primaryShift("k"),onClick:L,isActive:!0})),R&&o&&(T||P)&&!V&&(0,Ke.createElement)(et.Popover,{placement:"bottom",onClose:()=>{I(!1),S.current?.focus()},anchor:v,focusOnMount:!!T&&"firstElement",__unstableSlotName:"__unstable-block-tools-after",shift:!0},(0,Ke.createElement)(nt.__experimentalLinkControl,{value:H,onChange:({url:e,opensInNewTab:t,nofollow:a})=>n(function({rel:e="",url:t="",opensInNewTab:n,nofollow:a}){let o,r=e;if(n)o=bn,r=r?.includes(hn)?r:r+` ${hn}`;else{const e=new RegExp(`\\b${hn}\\s*`,"g");r=r?.replace(e,"").trim()}if(a)r=r?.includes(_n)?r:r+` ${_n}`;else{const e=new RegExp(`\\b${_n}\\s*`,"g");r=r?.replace(e,"").trim()}return{url:(0,pt.prependHTTP)(t),linkTarget:o,rel:r||void 0}}({rel:p,url:e,opensInNewTab:t,nofollow:a})),onRemove:()=>{L(),S.current?.focus()},forceIsEditingLink:T,settings:xn})),(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(wn,{selectedWidth:b,setAttributes:n})),(0,Ke.createElement)(nt.InspectorControls,{group:"advanced"},R&&(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Link rel"),value:p||"",onChange:e=>n({rel:e})})))};const Cn={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/button",title:"Button",category:"design",parent:["core/buttons"],description:"Prompt visitors to take action with a button-style link.",keywords:["link"],textdomain:"default",attributes:{tagName:{type:"string",enum:["a","button"],default:"a"},type:{type:"string",default:"button"},textAlign:{type:"string"},url:{type:"string",source:"attribute",selector:"a",attribute:"href",__experimentalRole:"content"},title:{type:"string",source:"attribute",selector:"a,button",attribute:"title",__experimentalRole:"content"},text:{type:"rich-text",source:"rich-text",selector:"a,button",__experimentalRole:"content"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target",__experimentalRole:"content"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel",__experimentalRole:"content"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,splitting:!0,align:!1,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,shadow:{__experimentalSkipSerialization:!0},spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},__experimentalSelector:".wp-block-button .wp-block-button__link",interactivity:{clientNavigation:!0}},styles:[{name:"fill",label:"Fill",isDefault:!0},{name:"outline",label:"Outline"}],editorStyle:"wp-block-button-editor",style:"wp-block-button"},{name:Sn}=Cn,Bn={icon:an,example:{attributes:{className:"is-style-fill",text:(0,tt.__)("Call to Action")}},edit:En,save:function({attributes:e,className:t}){const{tagName:n,type:a,textAlign:o,fontSize:r,linkTarget:l,rel:i,style:s,text:c,title:m,url:u,width:p}=e;if(nt.RichText.isEmpty(c))return null;const d=n||"a",g="button"===d,h=a||"button",b=(0,nt.__experimentalGetBorderClassesAndStyles)(e),_=(0,nt.__experimentalGetColorClassesAndStyles)(e),y=(0,nt.__experimentalGetSpacingClassesAndStyles)(e),v=(0,nt.__experimentalGetShadowClassesAndStyles)(e),f=ut("wp-block-button__link",_.className,b.className,{[`has-text-align-${o}`]:o,"no-border-radius":0===s?.border?.radius},(0,nt.__experimentalGetElementClassName)("button")),k={...b.style,..._.style,...y.style,...v.style},x=ut(t,{[`has-custom-width wp-block-button__width-${p}`]:p,"has-custom-font-size":r||s?.typography?.fontSize});return(0,Ke.createElement)("div",{...nt.useBlockProps.save({className:x})},(0,Ke.createElement)(nt.RichText.Content,{tagName:d,type:g?h:null,className:f,href:g?null:u,title:m,style:k,value:c,target:g?null:l,rel:g?null:i}))},deprecated:gn,merge:(e,{text:t=""})=>({...e,text:(e.text||"")+t})},Nn=()=>Xe({name:Sn,metadata:Cn,settings:Bn}),Tn=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M14.5 17.5H9.5V16H14.5V17.5Z M14.5 8H9.5V6.5H14.5V8Z M7 3.5H17C18.1046 3.5 19 4.39543 19 5.5V9C19 10.1046 18.1046 11 17 11H7C5.89543 11 5 10.1046 5 9V5.5C5 4.39543 5.89543 3.5 7 3.5ZM17 5H7C6.72386 5 6.5 5.22386 6.5 5.5V9C6.5 9.27614 6.72386 9.5 7 9.5H17C17.2761 9.5 17.5 9.27614 17.5 9V5.5C17.5 5.22386 17.2761 5 17 5Z M7 13H17C18.1046 13 19 13.8954 19 15V18.5C19 19.6046 18.1046 20.5 17 20.5H7C5.89543 20.5 5 19.6046 5 18.5V15C5 13.8954 5.89543 13 7 13ZM17 14.5H7C6.72386 14.5 6.5 14.7239 6.5 15V18.5C6.5 18.7761 6.72386 19 7 19H17C17.2761 19 17.5 18.7761 17.5 18.5V15C17.5 14.7239 17.2761 14.5 17 14.5Z"})),In=e=>{if(e.layout)return e;const{contentJustification:t,orientation:n,...a}=e;return(t||n)&&Object.assign(a,{layout:{type:"flex",...t&&{justifyContent:t},...n&&{orientation:n}}}),a},Pn=[{attributes:{contentJustification:{type:"string"},orientation:{type:"string",default:"horizontal"}},supports:{anchor:!0,align:["wide","full"],__experimentalExposeControlsToChildren:!0,spacing:{blockGap:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}}},isEligible:({contentJustification:e,orientation:t})=>!!e||!!t,migrate:In,save:({attributes:{contentJustification:e,orientation:t}})=>(0,Ke.createElement)("div",{...nt.useBlockProps.save({className:ut({[`is-content-justification-${e}`]:e,"is-vertical":"vertical"===t})})},(0,Ke.createElement)(nt.InnerBlocks.Content,null))},{supports:{align:["center","left","right"],anchor:!0},save:()=>(0,Ke.createElement)("div",null,(0,Ke.createElement)(nt.InnerBlocks.Content,null)),isEligible:({align:e})=>e&&["center","left","right"].includes(e),migrate:e=>In({...e,align:void 0,contentJustification:e.align})}],Mn=Pn,zn=window.wp.richText;function Rn(e,t,n){if(!e)return;const{supports:a}=(0,Qe.getBlockType)(t),o=[];if(["core/paragraph","core/heading","core/image","core/button"].includes(t)&&n&&o.push("id","bindings"),!1!==a.renaming&&o.push("name"),!o.length)return;const r=Object.entries(e).reduce(((e,[t,a])=>o.includes(t)?(e[t]="bindings"===t?n(a):a,e):e),{});return Object.keys(r).length?r:void 0}const An={from:[{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:e=>(0,Qe.createBlock)("core/buttons",{},e.map((e=>(0,Qe.createBlock)("core/button",e))))},{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>(0,Qe.createBlock)("core/buttons",{},e.map((e=>{const{content:t,metadata:n}=e,a=(0,zn.__unstableCreateElement)(document,t),o=a.innerText||"",r=a.querySelector("a"),l=r?.getAttribute("href");return(0,Qe.createBlock)("core/button",{text:o,url:l,metadata:Rn(n,"core/button",(({content:e})=>({text:e})))})}))),isMatch:e=>e.every((e=>{const t=(0,zn.__unstableCreateElement)(document,e.content),n=t.innerText||"",a=t.querySelectorAll("a");return n.length<=30&&a.length<=1}))}]},Ln=An,Hn={name:"core/button",attributesToCopy:["backgroundColor","border","className","fontFamily","fontSize","gradient","style","textColor","width"]};const Dn=function({attributes:e,className:t}){var n;const{fontSize:a,layout:o,style:r}=e,l=(0,nt.useBlockProps)({className:ut(t,{"has-custom-font-size":a||r?.typography?.fontSize})}),{hasButtonVariations:i}=(0,gt.useSelect)((e=>({hasButtonVariations:e(Qe.store).getBlockVariations("core/button","inserter").length>0})),[]),s=(0,nt.useInnerBlocksProps)(l,{defaultBlock:Hn,directInsert:!i,template:[["core/button"]],templateInsertUpdatesSelection:!0,orientation:null!==(n=o?.orientation)&&void 0!==n?n:"horizontal"});return(0,Ke.createElement)("div",{...s})};const Fn={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/buttons",title:"Buttons",category:"design",allowedBlocks:["core/button"],description:"Prompt visitors to take action with a group of button-style links.",keywords:["link"],textdomain:"default",supports:{anchor:!0,align:["wide","full"],html:!1,__experimentalExposeControlsToChildren:!0,spacing:{blockGap:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-buttons-editor",style:"wp-block-buttons"},{name:Vn}=Fn,$n={icon:Tn,example:{innerBlocks:[{name:"core/button",attributes:{text:(0,tt.__)("Find out more")}},{name:"core/button",attributes:{text:(0,tt.__)("Contact us")}}]},deprecated:Mn,transforms:Ln,edit:Dn,save:function({attributes:e,className:t}){const{fontSize:n,style:a}=e,o=nt.useBlockProps.save({className:ut(t,{"has-custom-font-size":n||a?.typography?.fontSize})}),r=nt.useInnerBlocksProps.save(o);return(0,Ke.createElement)("div",{...r})}},Gn=()=>Xe({name:Vn,metadata:Fn,settings:$n}),On=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7h15v12zM9 10H7v2h2v-2zm0 4H7v2h2v-2zm4-4h-2v2h2v-2zm4 0h-2v2h2v-2zm-4 4h-2v2h2v-2zm4 0h-2v2h2v-2z"})),Un=Mt((e=>{if(!e)return{};const t=new Date(e);return{year:t.getFullYear(),month:t.getMonth()+1}}));const qn={from:[{type:"block",blocks:["core/archives"],transform:()=>(0,Qe.createBlock)("core/calendar")}],to:[{type:"block",blocks:["core/archives"],transform:()=>(0,Qe.createBlock)("core/archives")}]},jn={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/calendar",title:"Calendar",category:"widgets",description:"A calendar of your site’s posts.",keywords:["posts","archive"],textdomain:"default",attributes:{month:{type:"integer"},year:{type:"integer"}},supports:{align:!0,color:{link:!0,__experimentalSkipSerialization:["text","background"],__experimentalDefaultControls:{background:!0,text:!0},__experimentalSelector:"table, th"},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-calendar"},{name:Wn}=jn,Zn={icon:On,example:{},edit:function({attributes:e}){const t=(0,nt.useBlockProps)(),{date:n,hasPosts:a,hasPostsResolved:o}=(0,gt.useSelect)((e=>{const{getEntityRecords:t,hasFinishedResolution:n}=e(dt.store),a={status:"publish",per_page:1},o=t("postType","post",a),r=n("getEntityRecords",["postType","post",a]);let l;const i=e("core/editor");if(i){"post"===i.getEditedPostAttribute("type")&&(l=i.getEditedPostAttribute("date"))}return{date:l,hasPostsResolved:r,hasPosts:r&&1===o?.length}}),[]);return a?(0,Ke.createElement)("div",{...t},(0,Ke.createElement)(et.Disabled,null,(0,Ke.createElement)(ot(),{block:"core/calendar",attributes:{...e,...Un(n)}}))):(0,Ke.createElement)("div",{...t},(0,Ke.createElement)(et.Placeholder,{icon:On,label:(0,tt.__)("Calendar")},o?(0,tt.__)("No published posts found."):(0,Ke.createElement)(et.Spinner,null)))},transforms:qn},Qn=()=>Xe({name:Wn,metadata:jn,settings:Zn}),Kn=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z",fillRule:"evenodd",clipRule:"evenodd"})),Yn=window.wp.htmlEntities,Jn=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"m21.5 9.1-6.6-6.6-4.2 5.6c-1.2-.1-2.4.1-3.6.7-.1 0-.1.1-.2.1-.5.3-.9.6-1.2.9l3.7 3.7-5.7 5.7v1.1h1.1l5.7-5.7 3.7 3.7c.4-.4.7-.8.9-1.2.1-.1.1-.2.2-.3.6-1.1.8-2.4.6-3.6l5.6-4.1zm-7.3 3.5.1.9c.1.9 0 1.8-.4 2.6l-6-6c.8-.4 1.7-.5 2.6-.4l.9.1L15 4.9 19.1 9l-4.9 3.6z"}));const Xn={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/categories",title:"Categories List",category:"widgets",description:"Display a list of all categories.",textdomain:"default",attributes:{displayAsDropdown:{type:"boolean",default:!1},showHierarchy:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1},showOnlyTopLevel:{type:"boolean",default:!1},showEmpty:{type:"boolean",default:!1}},supports:{align:!0,html:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-categories-editor",style:"wp-block-categories"},{name:ea}=Xn,ta={icon:Kn,example:{},edit:function e({attributes:{displayAsDropdown:t,showHierarchy:n,showPostCounts:a,showOnlyTopLevel:o,showEmpty:r},setAttributes:l,className:i}){const s=(0,jt.useInstanceId)(e,"blocks-category-select"),c={per_page:-1,hide_empty:!r,context:"view"};o&&(c.parent=0);const{records:m,isResolving:u}=(0,dt.useEntityRecords)("taxonomy","category",c),p=e=>m?.length?null===e?m:m.filter((({parent:t})=>t===e)):[],d=e=>t=>l({[e]:t}),g=e=>e?(0,Yn.decodeEntities)(e).trim():(0,tt.__)("(Untitled)"),h=e=>{const t=p(e.id),{id:o,link:r,count:l,name:i}=e;return(0,Ke.createElement)("li",{key:o,className:`cat-item cat-item-${o}`},(0,Ke.createElement)("a",{href:r,target:"_blank",rel:"noreferrer noopener"},g(i)),a&&` (${l})`,n&&!!t.length&&(0,Ke.createElement)("ul",{className:"children"},t.map((e=>h(e)))))},b=(e,t)=>{const{id:o,count:r,name:l}=e,i=p(o);return[(0,Ke.createElement)("option",{key:o,className:`level-${t}`},Array.from({length:3*t}).map((()=>" ")),g(l),a&&` (${r})`),n&&!!i.length&&i.map((e=>b(e,t+1)))]},_=!m?.length||t||u?"div":"ul",y=ut(i,{"wp-block-categories-list":!!m?.length&&!t&&!u,"wp-block-categories-dropdown":!!m?.length&&t&&!u}),v=(0,nt.useBlockProps)({className:y});return(0,Ke.createElement)(_,{...v},(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Display as dropdown"),checked:t,onChange:d("displayAsDropdown")}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show post counts"),checked:a,onChange:d("showPostCounts")}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show only top level categories"),checked:o,onChange:d("showOnlyTopLevel")}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show empty categories"),checked:r,onChange:d("showEmpty")}),!o&&(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show hierarchy"),checked:n,onChange:d("showHierarchy")}))),u&&(0,Ke.createElement)(et.Placeholder,{icon:Jn,label:(0,tt.__)("Categories")},(0,Ke.createElement)(et.Spinner,null)),!u&&0===m?.length&&(0,Ke.createElement)("p",null,(0,tt.__)("Your site does not have any posts, so there is nothing to display here at the moment.")),!u&&m?.length>0&&(t?(()=>{const e=p(n?0:null);return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.VisuallyHidden,{as:"label",htmlFor:s},(0,tt.__)("Categories")),(0,Ke.createElement)("select",{id:s},(0,Ke.createElement)("option",null,(0,tt.__)("Select Category")),e.map((e=>b(e,0)))))})():p(n?0:null).map((e=>h(e)))))}},na=()=>Xe({name:ea,metadata:Xn,settings:ta}),aa=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M20 6H4c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H4c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h16c.3 0 .5.2.5.5v9zM10 10H8v2h2v-2zm-5 2h2v-2H5v2zm8-2h-2v2h2v-2zm-5 6h8v-2H8v2zm6-4h2v-2h-2v2zm3 0h2v-2h-2v2zm0 4h2v-2h-2v2zM5 16h2v-2H5v2z"})),oa=({clientId:e})=>{const{replaceBlocks:t}=(0,gt.useDispatch)(nt.store),n=(0,gt.useSelect)((t=>t(nt.store).getBlock(e)),[e]);return(0,Ke.createElement)(et.ToolbarButton,{onClick:()=>t(n.clientId,(0,Qe.rawHandler)({HTML:(0,Qe.serialize)(n)}))},(0,tt.__)("Convert to blocks"))},ra=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M6 4a2 2 0 0 0-2 2v3h1.5V6a.5.5 0 0 1 .5-.5h3V4H6Zm3 14.5H6a.5.5 0 0 1-.5-.5v-3H4v3a2 2 0 0 0 2 2h3v-1.5Zm6 1.5v-1.5h3a.5.5 0 0 0 .5-.5v-3H20v3a2 2 0 0 1-2 2h-3Zm3-16a2 2 0 0 1 2 2v3h-1.5V6a.5.5 0 0 0-.5-.5h-3V4h3Z"}));function la({onClick:e,isModalFullScreen:t}){return(0,jt.useViewportMatch)("small","<")?null:(0,Ke.createElement)(et.Button,{onClick:e,icon:ra,isPressed:t,label:t?(0,tt.__)("Exit fullscreen"):(0,tt.__)("Enter fullscreen")})}function ia(e){const t=(0,gt.useSelect)((e=>e(nt.store).getSettings().styles));return(0,_t.useEffect)((()=>{const{baseURL:n,suffix:a,settings:o}=window.wpEditorL10n.tinymce;return window.tinymce.EditorManager.overrideDefaults({base_url:n,suffix:a}),window.wp.oldEditor.initialize(e.id,{tinymce:{...o,setup(e){e.on("init",(()=>{const n=e.getDoc();t.forEach((({css:e})=>{const t=n.createElement("style");t.innerHTML=e,n.head.appendChild(t)}))}))}}}),()=>{window.wp.oldEditor.remove(e.id)}}),[]),(0,Ke.createElement)("textarea",{...e})}function sa(e){const{clientId:t,attributes:{content:n},setAttributes:a,onReplace:o}=e,[r,l]=(0,_t.useState)(!1),[i,s]=(0,_t.useState)(!1),c=`editor-${t}`,m=()=>n?l(!1):o([]);return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,null,(0,Ke.createElement)(et.ToolbarGroup,null,(0,Ke.createElement)(et.ToolbarButton,{onClick:()=>l(!0)},(0,tt.__)("Edit")))),n&&(0,Ke.createElement)(_t.RawHTML,null,n),(r||!n)&&(0,Ke.createElement)(et.Modal,{title:(0,tt.__)("Classic Editor"),onRequestClose:m,shouldCloseOnClickOutside:!1,overlayClassName:"block-editor-freeform-modal",isFullScreen:i,className:"block-editor-freeform-modal__content",headerActions:(0,Ke.createElement)(la,{onClick:()=>s(!i),isModalFullScreen:i})},(0,Ke.createElement)(ia,{id:c,defaultValue:n}),(0,Ke.createElement)(et.Flex,{className:"block-editor-freeform-modal__actions",justify:"flex-end",expanded:!1},(0,Ke.createElement)(et.FlexItem,null,(0,Ke.createElement)(et.Button,{variant:"tertiary",onClick:m},(0,tt.__)("Cancel"))),(0,Ke.createElement)(et.FlexItem,null,(0,Ke.createElement)(et.Button,{variant:"primary",onClick:()=>{a({content:window.wp.oldEditor.getContent(c)}),l(!1)}},(0,tt.__)("Save"))))))}const{wp:ca}=window;function ma({clientId:e,attributes:{content:t},setAttributes:n,onReplace:a}){const{getMultiSelectedBlockClientIds:o}=(0,gt.useSelect)(nt.store),r=(0,_t.useRef)(!1);return(0,_t.useEffect)((()=>{if(!r.current)return;const n=window.tinymce.get(`editor-${e}`),a=n?.getContent();a!==t&&n.setContent(t||"")}),[t]),(0,_t.useEffect)((()=>{const{baseURL:l,suffix:i}=window.wpEditorL10n.tinymce;function s(e){let r;t&&e.on("loadContent",(()=>e.setContent(t))),e.on("blur",(()=>{r=e.selection.getBookmark(2,!0);const t=document.querySelector(".interface-interface-skeleton__content"),a=t.scrollTop;return o()?.length||n({content:e.getContent()}),e.once("focus",(()=>{r&&(e.selection.moveToBookmark(r),t.scrollTop!==a&&(t.scrollTop=a))})),!1})),e.on("mousedown touchstart",(()=>{r=null}));const l=(0,jt.debounce)((()=>{const t=e.getContent();t!==e._lastChange&&(e._lastChange=t,n({content:t}))}),250);e.on("Paste Change input Undo Redo",l),e.on("remove",l.cancel),e.on("keydown",(t=>{vn.isKeyboardEvent.primary(t,"z")&&t.stopPropagation(),t.keyCode!==vn.BACKSPACE&&t.keyCode!==vn.DELETE||!function(e){const t=e.getBody();return!(t.childNodes.length>1)&&(0===t.childNodes.length||!(t.childNodes[0].childNodes.length>1)&&/^\n?$/.test(t.innerText||t.textContent))}(e)||(a([]),t.preventDefault(),t.stopImmediatePropagation());const{altKey:n}=t;n&&t.keyCode===vn.F10&&t.stopPropagation()})),e.on("init",(()=>{const t=e.getBody();t.ownerDocument.activeElement===t&&(t.blur(),e.focus())}))}function c(){const{settings:t}=window.wpEditorL10n.tinymce;ca.oldEditor.initialize(`editor-${e}`,{tinymce:{...t,inline:!0,content_css:!1,fixed_toolbar_container:`#toolbar-${e}`,setup:s}})}function m(){"complete"===document.readyState&&c()}return r.current=!0,window.tinymce.EditorManager.overrideDefaults({base_url:l,suffix:i}),"complete"===document.readyState?c():document.addEventListener("readystatechange",m),()=>{document.removeEventListener("readystatechange",m),ca.oldEditor.remove(`editor-${e}`)}}),[]),(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)("div",{key:"toolbar",id:`toolbar-${e}`,className:"block-library-classic__toolbar",onClick:function(){const t=window.tinymce.get(`editor-${e}`);t&&t.focus()},"data-placeholder":(0,tt.__)("Classic"),onKeyDown:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}}),(0,Ke.createElement)("div",{key:"editor",id:`editor-${e}`,className:"wp-block-freeform block-library-rich-text__tinymce"}))}const ua={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/freeform",title:"Classic",category:"text",description:"Use the classic WordPress editor.",textdomain:"default",attributes:{content:{type:"string",source:"raw"}},supports:{className:!1,customClassName:!1,reusable:!1},editorStyle:"wp-block-freeform-editor"},{name:pa}=ua,da={icon:aa,edit:function(e){const{clientId:t}=e,n=(0,gt.useSelect)((e=>e(nt.store).canRemoveBlock(t)),[t]),[a,o]=(0,_t.useState)(!1),r=(0,jt.useRefEffect)((e=>{o(e.ownerDocument!==document)}),[]);return(0,Ke.createElement)(Ke.Fragment,null,n&&(0,Ke.createElement)(nt.BlockControls,null,(0,Ke.createElement)(et.ToolbarGroup,null,(0,Ke.createElement)(oa,{clientId:t}))),(0,Ke.createElement)("div",{...(0,nt.useBlockProps)({ref:r})},a?(0,Ke.createElement)(sa,{...e}):(0,Ke.createElement)(ma,{...e})))},save:function({attributes:e}){const{content:t}=e;return(0,Ke.createElement)(_t.RawHTML,null,t)}},ga=()=>Xe({name:pa,metadata:ua,settings:da}),ha=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"}));function ba(e){return e.replace(/\[/g,"[")}function _a(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1//$2")}const ya={from:[{type:"enter",regExp:/^```$/,transform:()=>(0,Qe.createBlock)("core/code")},{type:"block",blocks:["core/paragraph"],transform:({content:e,metadata:t})=>(0,Qe.createBlock)("core/code",{content:e,metadata:Rn(t,"core/code")})},{type:"block",blocks:["core/html"],transform:({content:e,metadata:t})=>(0,Qe.createBlock)("core/code",{content:(0,zn.toHTMLString)({value:(0,zn.create)({text:e})}),metadata:Rn(t,"core/code")})},{type:"raw",isMatch:e=>"PRE"===e.nodeName&&1===e.children.length&&"CODE"===e.firstChild.nodeName,schema:{pre:{children:{code:{children:{"#text":{}}}}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:({content:e,metadata:t})=>(0,Qe.createBlock)("core/paragraph",{content:e,metadata:Rn(t,"core/paragraph")})}]},va=ya,fa={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/code",title:"Code",category:"text",description:"Display code snippets that respect your spacing and tabs.",textdomain:"default",attributes:{content:{type:"rich-text",source:"rich-text",selector:"code",__unstablePreserveWhiteSpace:!0}},supports:{align:["wide"],anchor:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{margin:["top","bottom"],padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{width:!0,color:!0}},color:{text:!0,background:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-code"},{name:ka}=fa,xa={icon:ha,example:{attributes:{content:(0,tt.__)("// A “block” is the abstract term used\n// to describe units of markup that\n// when composed together, form the\n// content or layout of a page.\nregisterBlockType( name, settings );")}},merge:(e,t)=>({content:e.content+"\n\n"+t.content}),transforms:va,edit:function({attributes:e,setAttributes:t,onRemove:n,insertBlocksAfter:a,mergeBlocks:o}){const r=(0,nt.useBlockProps)();return(0,Ke.createElement)("pre",{...r},(0,Ke.createElement)(nt.RichText,{tagName:"code",identifier:"content",value:e.content,onChange:e=>t({content:e}),onRemove:n,onMerge:o,placeholder:(0,tt.__)("Write code…"),"aria-label":(0,tt.__)("Code"),preserveWhiteSpace:!0,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:()=>a((0,Qe.createBlock)((0,Qe.getDefaultBlockName)()))}))},save:function({attributes:e}){return(0,Ke.createElement)("pre",{...nt.useBlockProps.save()},(0,Ke.createElement)(nt.RichText.Content,{tagName:"code",value:(t="string"==typeof e.content?e.content:e.content.toHTMLString({preserveWhiteSpace:!0}),(0,jt.pipe)(ba,_a)(t||""))}));var t}},wa=()=>Xe({name:ka,metadata:fa,settings:xa}),Ea=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zM6 17.5c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h3v10H6zm13.5-.5c0 .3-.2.5-.5.5h-3v-10h3c.3 0 .5.2.5.5v9z"})),Ca=[{attributes:{verticalAlignment:{type:"string"},width:{type:"number",min:0,max:100}},isEligible:({width:e})=>isFinite(e),migrate:e=>({...e,width:`${e.width}%`}),save({attributes:e}){const{verticalAlignment:t,width:n}=e,a=ut({[`is-vertically-aligned-${t}`]:t}),o={flexBasis:n+"%"};return(0,Ke.createElement)("div",{className:a,style:o},(0,Ke.createElement)(nt.InnerBlocks.Content,null))}}],Sa=Ca;function Ba({width:e,setAttributes:t}){const[n]=(0,nt.useSettings)("spacing.units"),a=(0,et.__experimentalUseCustomUnits)({availableUnits:n||["%","px","em","rem","vw"]});return(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.__experimentalUnitControl,{label:(0,tt.__)("Width"),labelPosition:"edge",__unstableInputWidth:"80px",value:e||"",onChange:e=>{e=0>parseFloat(e)?"0":e,t({width:e})},units:a}))}const Na=function({attributes:{verticalAlignment:e,width:t,templateLock:n,allowedBlocks:a},setAttributes:o,clientId:r}){const l=ut("block-core-columns",{[`is-vertically-aligned-${e}`]:e}),{columnsIds:i,hasChildBlocks:s,rootClientId:c}=(0,gt.useSelect)((e=>{const{getBlockOrder:t,getBlockRootClientId:n}=e(nt.store),a=n(r);return{hasChildBlocks:t(r).length>0,rootClientId:a,columnsIds:t(a)}}),[r]),{updateBlockAttributes:m}=(0,gt.useDispatch)(nt.store),u=Number.isFinite(t)?t+"%":t,p=(0,nt.useBlockProps)({className:l,style:u?{flexBasis:u}:void 0}),d=i.length,g=i.indexOf(r)+1,h=(0,tt.sprintf)((0,tt.__)("%1$s (%2$d of %3$d)"),p["aria-label"],g,d),b=(0,nt.useInnerBlocksProps)({...p,"aria-label":h},{templateLock:n,allowedBlocks:a,renderAppender:s?void 0:nt.InnerBlocks.ButtonBlockAppender});return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,null,(0,Ke.createElement)(nt.BlockVerticalAlignmentToolbar,{onChange:e=>{o({verticalAlignment:e}),m(c,{verticalAlignment:null})},value:e,controls:["top","center","bottom","stretch"]})),(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(Ba,{width:t,setAttributes:o})),(0,Ke.createElement)("div",{...b}))};const Ta={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/column",title:"Column",category:"design",parent:["core/columns"],description:"A single column within a columns block.",textdomain:"default",attributes:{verticalAlignment:{type:"string"},width:{type:"string"},allowedBlocks:{type:"array"},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},supports:{__experimentalOnEnter:!0,anchor:!0,reusable:!1,html:!1,color:{gradients:!0,heading:!0,button:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},shadow:!0,spacing:{blockGap:!0,padding:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,style:!0,width:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:!0,interactivity:{clientNavigation:!0}}},{name:Ia}=Ta,Pa={icon:Ea,edit:Na,save:function({attributes:e}){const{verticalAlignment:t,width:n}=e,a=ut({[`is-vertically-aligned-${t}`]:t});let o;if(n&&/\d/.test(n)){let e=Number.isFinite(n)?n+"%":n;if(!Number.isFinite(n)&&n?.endsWith("%")){const t=1e12;e=Math.round(Number.parseFloat(n)*t)/t+"%"}o={flexBasis:e}}const r=nt.useBlockProps.save({className:a,style:o}),l=nt.useInnerBlocksProps.save(r);return(0,Ke.createElement)("div",{...l})},deprecated:Sa},Ma=()=>Xe({name:Ia,metadata:Ta,settings:Pa}),za=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 7.5h-5v10h5v-10Zm1.5 0v10H19a.5.5 0 0 0 .5-.5V8a.5.5 0 0 0-.5-.5h-2.5ZM6 7.5h2.5v10H6a.5.5 0 0 1-.5-.5V8a.5.5 0 0 1 .5-.5ZM6 6h13a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2Z"}));function Ra(e){let t,{doc:n}=Ra;n||(n=document.implementation.createHTMLDocument(""),Ra.doc=n),n.body.innerHTML=e;for(const e of n.body.firstChild.classList)if(t=e.match(/^layout-column-(\d+)$/))return Number(t[1])-1}const Aa=[{attributes:{verticalAlignment:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>{if(!e.customTextColor&&!e.customBackgroundColor)return e;const t={color:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor);const{customTextColor:n,customBackgroundColor:a,...o}=e;return{...o,style:t,isStackedOnMobile:!0}},save({attributes:e}){const{verticalAlignment:t,backgroundColor:n,customBackgroundColor:a,textColor:o,customTextColor:r}=e,l=(0,nt.getColorClassName)("background-color",n),i=(0,nt.getColorClassName)("color",o),s=ut({"has-background":n||a,"has-text-color":o||r,[l]:l,[i]:i,[`are-vertically-aligned-${t}`]:t}),c={backgroundColor:l?void 0:a,color:i?void 0:r};return(0,Ke.createElement)("div",{className:s||void 0,style:c},(0,Ke.createElement)(nt.InnerBlocks.Content,null))}},{attributes:{columns:{type:"number",default:2}},isEligible:(e,t)=>!!t.some((e=>/layout-column-\d+/.test(e.originalContent)))&&t.some((e=>void 0!==Ra(e.originalContent))),migrate(e,t){const n=t.reduce(((e,t)=>{const{originalContent:n}=t;let a=Ra(n);return void 0===a&&(a=0),e[a]||(e[a]=[]),e[a].push(t),e}),[]).map((e=>(0,Qe.createBlock)("core/column",{},e))),{columns:a,...o}=e;return[{...o,isStackedOnMobile:!0},n]},save({attributes:e}){const{columns:t}=e;return(0,Ke.createElement)("div",{className:`has-${t}-columns`},(0,Ke.createElement)(nt.InnerBlocks.Content,null))}},{attributes:{columns:{type:"number",default:2}},migrate(e,t){const{columns:n,...a}=e;return[e={...a,isStackedOnMobile:!0},t]},save({attributes:e}){const{verticalAlignment:t,columns:n}=e,a=ut(`has-${n}-columns`,{[`are-vertically-aligned-${t}`]:t});return(0,Ke.createElement)("div",{className:a},(0,Ke.createElement)(nt.InnerBlocks.Content,null))}}],La=e=>{const t=parseFloat(e);return Number.isFinite(t)?parseFloat(t.toFixed(2)):void 0};function Ha(e,t){const{width:n=100/t}=e.attributes;return La(n)}function Da(e,t,n=e.length){const a=function(e,t=e.length){return e.reduce(((e,n)=>e+Ha(n,t)),0)}(e,n);return Object.fromEntries(Object.entries(function(e,t=e.length){return e.reduce(((e,n)=>{const a=Ha(n,t);return Object.assign(e,{[n.clientId]:a})}),{})}(e,n)).map((([e,n])=>[e,La(t*n/a)])))}function Fa(e,t){return e.map((e=>({...e,attributes:{...e.attributes,width:`${t[e.clientId]}%`}})))}const Va={name:"core/column"};function $a({clientId:e,setAttributes:t,isStackedOnMobile:n}){const{count:a,canInsertColumnBlock:o,minCount:r}=(0,gt.useSelect)((t=>{const{canInsertBlockType:n,canRemoveBlock:a,getBlocks:o,getBlockCount:r}=t(nt.store),l=o(e).reduce(((e,t,n)=>(a(t.clientId)||e.push(n),e)),[]);return{count:r(e),canInsertColumnBlock:n("core/column",e),minCount:Math.max(...l)+1}}),[e]),{getBlocks:l}=(0,gt.useSelect)(nt.store),{replaceInnerBlocks:i}=(0,gt.useDispatch)(nt.store);function s(t,n){let a=l(e);const o=a.every((e=>{const t=e.attributes.width;return Number.isFinite(t?.endsWith?.("%")?parseFloat(t):t)}));const r=n>t;if(r&&o){const e=La(100/n),o=n-t;a=[...Fa(a,Da(a,100-e*o)),...Array.from({length:o}).map((()=>(0,Qe.createBlock)("core/column",{width:`${e}%`})))]}else if(r)a=[...a,...Array.from({length:n-t}).map((()=>(0,Qe.createBlock)("core/column")))];else if(n<t&&(a=a.slice(0,-(t-n)),o)){a=Fa(a,Da(a,100))}i(e,a)}return(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},o&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Columns"),value:a,onChange:e=>s(a,Math.max(r,e)),min:Math.max(1,r),max:Math.max(6,a)}),a>6&&(0,Ke.createElement)(et.Notice,{status:"warning",isDismissible:!1},(0,tt.__)("This column count exceeds the recommended amount and may cause visual breakage."))),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Stack on mobile"),checked:n,onChange:()=>t({isStackedOnMobile:!n})}))}function Ga({attributes:e,setAttributes:t,clientId:n}){const{isStackedOnMobile:a,verticalAlignment:o,templateLock:r}=e,l=(0,gt.useRegistry)(),{getBlockOrder:i}=(0,gt.useSelect)(nt.store),{updateBlockAttributes:s}=(0,gt.useDispatch)(nt.store),c=ut({[`are-vertically-aligned-${o}`]:o,"is-not-stacked-on-mobile":!a}),m=(0,nt.useBlockProps)({className:c}),u=(0,nt.useInnerBlocksProps)(m,{defaultBlock:Va,directInsert:!0,orientation:"horizontal",renderAppender:!1,templateLock:r});return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,null,(0,Ke.createElement)(nt.BlockVerticalAlignmentToolbar,{onChange:function(e){const a=i(n);l.batch((()=>{t({verticalAlignment:e}),s(a,{verticalAlignment:e})}))},value:o})),(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)($a,{clientId:n,setAttributes:t,isStackedOnMobile:a})),(0,Ke.createElement)("div",{...u}))}function Oa({clientId:e,name:t,setAttributes:n}){const{blockType:a,defaultVariation:o,variations:r}=(0,gt.useSelect)((e=>{const{getBlockVariations:n,getBlockType:a,getDefaultBlockVariation:o}=e(Qe.store);return{blockType:a(t),defaultVariation:o(t,"block"),variations:n(t,"block")}}),[t]),{replaceInnerBlocks:l}=(0,gt.useDispatch)(nt.store),i=(0,nt.useBlockProps)();return(0,Ke.createElement)("div",{...i},(0,Ke.createElement)(nt.__experimentalBlockVariationPicker,{icon:a?.icon?.src,label:a?.title,variations:r,instructions:(0,tt.__)("Divide into columns. Select a layout:"),onSelect:(t=o)=>{t.attributes&&n(t.attributes),t.innerBlocks&&l(e,(0,Qe.createBlocksFromInnerBlocksTemplate)(t.innerBlocks),!0)},allowSkip:!0}))}const Ua=e=>{const{clientId:t}=e,n=(0,gt.useSelect)((e=>e(nt.store).getBlocks(t).length>0),[t])?Ga:Oa;return(0,Ke.createElement)(n,{...e})};const qa=[{name:"one-column-full",title:(0,tt.__)("100"),description:(0,tt.__)("One column"),icon:(0,Ke.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48"},(0,Ke.createElement)(et.Path,{d:"M0 10a2 2 0 0 1 2-2h44a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Z"})),innerBlocks:[["core/column"]],scope:["block"]},{name:"two-columns-equal",title:(0,tt.__)("50 / 50"),description:(0,tt.__)("Two columns; equal split"),icon:(0,Ke.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48"},(0,Ke.createElement)(et.Path,{d:"M0 10a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm25 0a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H27a2 2 0 0 1-2-2V10Z"})),isDefault:!0,innerBlocks:[["core/column"],["core/column"]],scope:["block"]},{name:"two-columns-one-third-two-thirds",title:(0,tt.__)("33 / 66"),description:(0,tt.__)("Two columns; one-third, two-thirds split"),icon:(0,Ke.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48"},(0,Ke.createElement)(et.Path,{d:"M0 10a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm17 0a2 2 0 0 1 2-2h27a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H19a2 2 0 0 1-2-2V10Z"})),innerBlocks:[["core/column",{width:"33.33%"}],["core/column",{width:"66.66%"}]],scope:["block"]},{name:"two-columns-two-thirds-one-third",title:(0,tt.__)("66 / 33"),description:(0,tt.__)("Two columns; two-thirds, one-third split"),icon:(0,Ke.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48"},(0,Ke.createElement)(et.Path,{d:"M0 10a2 2 0 0 1 2-2h27a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm33 0a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H35a2 2 0 0 1-2-2V10Z"})),innerBlocks:[["core/column",{width:"66.66%"}],["core/column",{width:"33.33%"}]],scope:["block"]},{name:"three-columns-equal",title:(0,tt.__)("33 / 33 / 33"),description:(0,tt.__)("Three columns; equal split"),icon:(0,Ke.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48"},(0,Ke.createElement)(et.Path,{d:"M0 10a2 2 0 0 1 2-2h10.531c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H2a2 2 0 0 1-2-2V10Zm16.5 0c0-1.105.864-2 1.969-2H29.53c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H18.47c-1.105 0-1.969-.895-1.969-2V10Zm17 0c0-1.105.864-2 1.969-2H46a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H35.469c-1.105 0-1.969-.895-1.969-2V10Z"})),innerBlocks:[["core/column"],["core/column"],["core/column"]],scope:["block"]},{name:"three-columns-wider-center",title:(0,tt.__)("25 / 50 / 25"),description:(0,tt.__)("Three columns; wide center column"),icon:(0,Ke.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48"},(0,Ke.createElement)(et.Path,{d:"M0 10a2 2 0 0 1 2-2h7.531c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H2a2 2 0 0 1-2-2V10Zm13.5 0c0-1.105.864-2 1.969-2H32.53c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H15.47c-1.105 0-1.969-.895-1.969-2V10Zm23 0c0-1.105.864-2 1.969-2H46a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2h-7.531c-1.105 0-1.969-.895-1.969-2V10Z"})),innerBlocks:[["core/column",{width:"25%"}],["core/column",{width:"50%"}],["core/column",{width:"25%"}]],scope:["block"]}],ja={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:e=>{const t=+(100/e.length).toFixed(2),n=e.map((({name:e,attributes:n,innerBlocks:a})=>["core/column",{width:`${t}%`},[[e,{...n},a]]]));return(0,Qe.createBlock)("core/columns",{},(0,Qe.createBlocksFromInnerBlocksTemplate)(n))},isMatch:({length:e},t)=>(1!==t.length||"core/columns"!==t[0].name)&&(e&&e<=6)},{type:"block",blocks:["core/media-text"],priority:1,transform:(e,t)=>{const{align:n,backgroundColor:a,textColor:o,style:r,mediaAlt:l,mediaId:i,mediaPosition:s,mediaSizeSlug:c,mediaType:m,mediaUrl:u,mediaWidth:p,verticalAlignment:d}=e;let g;if("image"!==m&&m)g=["core/video",{id:i,src:u}];else{g=["core/image",{...{id:i,alt:l,url:u,sizeSlug:c},...{href:e.href,linkClass:e.linkClass,linkDestination:e.linkDestination,linkTarget:e.linkTarget,rel:e.rel}}]}const h=[["core/column",{width:`${p}%`},[g]],["core/column",{width:100-p+"%"},t]];return"right"===s&&h.reverse(),(0,Qe.createBlock)("core/columns",{align:n,backgroundColor:a,textColor:o,style:r,verticalAlignment:d},(0,Qe.createBlocksFromInnerBlocksTemplate)(h))}}],ungroup:(e,t)=>t.flatMap((e=>e.innerBlocks))},Wa=ja,Za={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/columns",title:"Columns",category:"design",allowedBlocks:["core/column"],description:"Display content in multiple columns, with blocks added to each column.",textdomain:"default",attributes:{verticalAlignment:{type:"string"},isStackedOnMobile:{type:"boolean",default:!0},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0,heading:!0,button:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{blockGap:{__experimentalDefault:"2em",sides:["horizontal","vertical"]},margin:["top","bottom"],padding:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},layout:{allowSwitching:!1,allowInheriting:!1,allowEditing:!1,default:{type:"flex",flexWrap:"nowrap"}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},shadow:!0},editorStyle:"wp-block-columns-editor",style:"wp-block-columns"},{name:Qa}=Za,Ka={icon:za,variations:qa,example:{viewportWidth:600,innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,tt.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et eros eu felis.")}},{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"}},{name:"core/paragraph",attributes:{content:(0,tt.__)("Suspendisse commodo neque lacus, a dictum orci interdum et.")}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,tt.__)("Etiam et egestas lorem. Vivamus sagittis sit amet dolor quis lobortis. Integer sed fermentum arcu, id vulputate lacus. Etiam fermentum sem eu quam hendrerit.")}},{name:"core/paragraph",attributes:{content:(0,tt.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:Aa,edit:Ua,save:function({attributes:e}){const{isStackedOnMobile:t,verticalAlignment:n}=e,a=ut({[`are-vertically-aligned-${n}`]:n,"is-not-stacked-on-mobile":!t}),o=nt.useBlockProps.save({className:a}),r=nt.useInnerBlocksProps.save(o);return(0,Ke.createElement)("div",{...r})},transforms:Wa},Ya=()=>Xe({name:Qa,metadata:Za,settings:Ka}),Ja=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M14 10.1V4c0-.6-.4-1-1-1H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1zm-1.5-.5H6.7l-1.2 1.2V4.5h7v5.1zM19 12h-8c-.6 0-1 .4-1 1v6.1c0 .6.4 1 1 1h5.7l1.8 1.8c.1.2.4.3.6.3.1 0 .2 0 .3-.1.4-.1.6-.5.6-.8V13c0-.6-.4-1-1-1zm-.5 7.8l-1.2-1.2h-5.8v-5.1h7v6.3z"})),Xa=[{attributes:{tagName:{type:"string",default:"div"}},apiVersion:3,supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}}},save({attributes:{tagName:e}}){const t=nt.useBlockProps.save(),{className:n}=t,a=n?.split(" ")||[],o=a?.filter((e=>"wp-block-comments"!==e)),r={...t,className:o.join(" ")};return(0,Ke.createElement)(e,{...r},(0,Ke.createElement)(nt.InnerBlocks.Content,null))}}];function eo({attributes:{tagName:e},setAttributes:t}){const n={section:(0,tt.__)("The <section> element should represent a standalone portion of the document that can't be better represented by another element."),aside:(0,tt.__)("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content.")};return(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(nt.InspectorControls,{group:"advanced"},(0,Ke.createElement)(et.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("HTML element"),options:[{label:(0,tt.__)("Default (<div>)"),value:"div"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}],value:e,onChange:e=>t({tagName:e}),help:n[e]})))}const to=()=>{const e=(0,jt.useInstanceId)(to);return(0,Ke.createElement)("div",{className:"comment-respond"},(0,Ke.createElement)("h3",{className:"comment-reply-title"},(0,tt.__)("Leave a Reply")),(0,Ke.createElement)("form",{noValidate:!0,className:"comment-form",onSubmit:e=>e.preventDefault()},(0,Ke.createElement)("p",null,(0,Ke.createElement)("label",{htmlFor:`comment-${e}`},(0,tt.__)("Comment")),(0,Ke.createElement)("textarea",{id:`comment-${e}`,name:"comment",cols:"45",rows:"8",readOnly:!0})),(0,Ke.createElement)("p",{className:"form-submit wp-block-button"},(0,Ke.createElement)("input",{name:"submit",type:"submit",className:ut("wp-block-button__link",(0,nt.__experimentalGetElementClassName)("button")),label:(0,tt.__)("Post Comment"),value:(0,tt.__)("Post Comment"),"aria-disabled":"true"}))))},no=({postId:e,postType:t})=>{const[n,a]=(0,dt.useEntityProp)("postType",t,"comment_status",e),o=void 0===t||void 0===e,{defaultCommentStatus:r}=(0,gt.useSelect)((e=>e(nt.store).getSettings().__experimentalDiscussionSettings)),l=(0,gt.useSelect)((e=>!!t&&!!e(dt.store).getPostType(t)?.supports.comments));if(!o&&"open"!==n){if("closed"===n){const e=[(0,Ke.createElement)(et.Button,{key:"enableComments",onClick:()=>a("open"),variant:"primary"},(0,tt._x)("Enable comments","action that affects the current post"))];return(0,Ke.createElement)(nt.Warning,{actions:e},(0,tt.__)("Post Comments Form block: Comments are not enabled for this item."))}if(!l)return(0,Ke.createElement)(nt.Warning,null,(0,tt.sprintf)((0,tt.__)("Post Comments Form block: Comments are not enabled for this post type (%s)."),t));if("open"!==r)return(0,Ke.createElement)(nt.Warning,null,(0,tt.__)("Post Comments Form block: Comments are not enabled."))}return(0,Ke.createElement)(to,null)};function ao({postType:e,postId:t}){let[n]=(0,dt.useEntityProp)("postType",e,"title",t);n=n||(0,tt.__)("Post Title");const{avatarURL:a}=(0,gt.useSelect)((e=>e(nt.store).getSettings().__experimentalDiscussionSettings));return(0,Ke.createElement)("div",{className:"wp-block-comments__legacy-placeholder",inert:"true"},(0,Ke.createElement)("h3",null,(0,tt.sprintf)((0,tt.__)("One response to %s"),n)),(0,Ke.createElement)("div",{className:"navigation"},(0,Ke.createElement)("div",{className:"alignleft"},(0,Ke.createElement)("a",{href:"#top"},"« ",(0,tt.__)("Older Comments"))),(0,Ke.createElement)("div",{className:"alignright"},(0,Ke.createElement)("a",{href:"#top"},(0,tt.__)("Newer Comments")," »"))),(0,Ke.createElement)("ol",{className:"commentlist"},(0,Ke.createElement)("li",{className:"comment even thread-even depth-1"},(0,Ke.createElement)("article",{className:"comment-body"},(0,Ke.createElement)("footer",{className:"comment-meta"},(0,Ke.createElement)("div",{className:"comment-author vcard"},(0,Ke.createElement)("img",{alt:(0,tt.__)("Commenter Avatar"),src:a,className:"avatar avatar-32 photo",height:"32",width:"32",loading:"lazy"}),(0,Ke.createElement)("b",{className:"fn"},(0,Ke.createElement)("a",{href:"#top",className:"url"},(0,tt.__)("A WordPress Commenter")))," ",(0,Ke.createElement)("span",{className:"says"},(0,tt.__)("says"),":")),(0,Ke.createElement)("div",{className:"comment-metadata"},(0,Ke.createElement)("a",{href:"#top"},(0,Ke.createElement)("time",{dateTime:"2000-01-01T00:00:00+00:00"},(0,tt.__)("January 1, 2000 at 00:00 am")))," ",(0,Ke.createElement)("span",{className:"edit-link"},(0,Ke.createElement)("a",{className:"comment-edit-link",href:"#top"},(0,tt.__)("Edit"))))),(0,Ke.createElement)("div",{className:"comment-content"},(0,Ke.createElement)("p",null,(0,tt.__)("Hi, this is a comment."),(0,Ke.createElement)("br",null),(0,tt.__)("To get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard."),(0,Ke.createElement)("br",null),(0,_t.createInterpolateElement)((0,tt.__)("Commenter avatars come from <a>Gravatar</a>."),{a:(0,Ke.createElement)("a",{href:"https://gravatar.com/"})}))),(0,Ke.createElement)("div",{className:"reply"},(0,Ke.createElement)("a",{className:"comment-reply-link",href:"#top","aria-label":(0,tt.__)("Reply to A WordPress Commenter")},(0,tt.__)("Reply")))))),(0,Ke.createElement)("div",{className:"navigation"},(0,Ke.createElement)("div",{className:"alignleft"},(0,Ke.createElement)("a",{href:"#top"},"« ",(0,tt.__)("Older Comments"))),(0,Ke.createElement)("div",{className:"alignright"},(0,Ke.createElement)("a",{href:"#top"},(0,tt.__)("Newer Comments")," »"))),(0,Ke.createElement)(no,{postId:t,postType:e}))}function oo({attributes:e,setAttributes:t,context:{postType:n,postId:a}}){const{textAlign:o}=e,r=[(0,Ke.createElement)(et.Button,{key:"convert",onClick:()=>{t({legacy:!1})},variant:"primary"},(0,tt.__)("Switch to editable mode"))],l=(0,nt.useBlockProps)({className:ut({[`has-text-align-${o}`]:o})});return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(nt.AlignmentControl,{value:o,onChange:e=>{t({textAlign:e})}})),(0,Ke.createElement)("div",{...l},(0,Ke.createElement)(nt.Warning,{actions:r},(0,tt.__)("Comments block: You’re currently using the legacy version of the block. The following is just a placeholder - the final styling will likely look different. For a better representation and more customization options, switch the block to its editable mode.")),(0,Ke.createElement)(ao,{postId:a,postType:n})))}const ro=[["core/comments-title"],["core/comment-template",{},[["core/columns",{},[["core/column",{width:"40px"},[["core/avatar",{size:40,style:{border:{radius:"20px"}}}]]],["core/column",{},[["core/comment-author-name",{fontSize:"small"}],["core/group",{layout:{type:"flex"},style:{spacing:{margin:{top:"0px",bottom:"0px"}}}},[["core/comment-date",{fontSize:"small"}],["core/comment-edit-link",{fontSize:"small"}]]],["core/comment-content"],["core/comment-reply-link",{fontSize:"small"}]]]]]]],["core/comments-pagination"],["core/post-comments-form"]];const lo={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments",title:"Comments",category:"theme",description:"An advanced block that allows displaying post comments using different visual configurations.",textdomain:"default",attributes:{tagName:{type:"string",default:"div"},legacy:{type:"boolean",default:!1}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-comments-editor",usesContext:["postId","postType"]},{name:io}=lo,so={icon:Ja,edit:function(e){const{attributes:t,setAttributes:n}=e,{tagName:a,legacy:o}=t,r=(0,nt.useBlockProps)(),l=(0,nt.useInnerBlocksProps)(r,{template:ro});return o?(0,Ke.createElement)(oo,{...e}):(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(eo,{attributes:t,setAttributes:n}),(0,Ke.createElement)(a,{...l}))},save:function({attributes:{tagName:e,legacy:t}}){const n=nt.useBlockProps.save(),a=nt.useInnerBlocksProps.save(n);return t?null:(0,Ke.createElement)(e,{...a})},deprecated:Xa},co=()=>Xe({name:io,metadata:lo,settings:so});const mo={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:"fse",name:"core/comment-author-avatar",title:"Comment Author Avatar (deprecated)",category:"theme",ancestor:["core/comment-template"],description:"This block is deprecated. Please use the Avatar block instead.",textdomain:"default",attributes:{width:{type:"number",default:96},height:{type:"number",default:96}},usesContext:["commentId"],supports:{html:!1,inserter:!1,__experimentalBorder:{radius:!0,width:!0,color:!0,style:!0},color:{background:!0,text:!1,__experimentalDefaultControls:{background:!0}},spacing:{__experimentalSkipSerialization:!0,margin:!0,padding:!0},interactivity:{clientNavigation:!0}}},{name:uo}=mo,po={icon:ct,edit:function({attributes:e,context:{commentId:t},setAttributes:n,isSelected:a}){const{height:o,width:r}=e,[l]=(0,dt.useEntityProp)("root","comment","author_avatar_urls",t),[i]=(0,dt.useEntityProp)("root","comment","author_name",t),s=l?Object.values(l):null,c=l?Object.keys(l):null,m=c?c[0]:24,u=c?c[c.length-1]:96,p=(0,nt.useBlockProps)(),d=(0,nt.__experimentalGetSpacingClassesAndStyles)(e),g=Math.floor(2.5*u),{avatarURL:h}=(0,gt.useSelect)((e=>{const{getSettings:t}=e(nt.store),{__experimentalDiscussionSettings:n}=t();return n})),b=(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Image size"),onChange:e=>n({width:e,height:e}),min:m,max:g,initialPosition:r,value:r}))),_=(0,Ke.createElement)(et.ResizableBox,{size:{width:r,height:o},showHandle:a,onResizeStop:(e,t,a,l)=>{n({height:parseInt(o+l.height,10),width:parseInt(r+l.width,10)})},lockAspectRatio:!0,enable:{top:!1,right:!(0,tt.isRTL)(),bottom:!0,left:(0,tt.isRTL)()},minWidth:m,maxWidth:g},(0,Ke.createElement)("img",{src:s?s[s.length-1]:h,alt:`${i} ${(0,tt.__)("Avatar")}`,...p}));return(0,Ke.createElement)(Ke.Fragment,null,b,(0,Ke.createElement)("div",{...d},_))}},go=()=>Xe({name:uo,metadata:mo,settings:po}),ho=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12.9c0 .6.5 1.1 1.1 1.1.3 0 .5-.1.8-.3L8.5 17H18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H7.9l-2.4 2.4V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v9z",fillRule:"evenodd",clipRule:"evenodd"}),(0,Ke.createElement)(Ye.Path,{d:"M15 15V15C15 13.8954 14.1046 13 13 13L11 13C9.89543 13 9 13.8954 9 15V15",fillRule:"evenodd",clipRule:"evenodd"}),(0,Ke.createElement)(Ye.Circle,{cx:"12",cy:"9",r:"2",fillRule:"evenodd",clipRule:"evenodd"}));const bo={attributes:{isLink:{type:"boolean",default:!1},linkTarget:{type:"string",default:"_self"}},supports:{html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0}},save:()=>null,migrate:rn,isEligible:({style:e})=>e?.typography?.fontFamily},_o=[bo],yo={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-author-name",title:"Comment Author Name",category:"theme",ancestor:["core/comment-template"],description:"Displays the name of the author of the comment.",textdomain:"default",attributes:{isLink:{type:"boolean",default:!0},linkTarget:{type:"string",default:"_self"},textAlign:{type:"string"}},usesContext:["commentId"],supports:{html:!1,spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:vo}=yo,fo={icon:ho,edit:function({attributes:{isLink:e,linkTarget:t,textAlign:n},context:{commentId:a},setAttributes:o}){const r=(0,nt.useBlockProps)({className:ut({[`has-text-align-${n}`]:n})});let l=(0,gt.useSelect)((e=>{const{getEntityRecord:t}=e(dt.store),n=t("root","comment",a),o=n?.author_name;if(n&&!o){var r;const e=t("root","user",n.author);return null!==(r=e?.name)&&void 0!==r?r:(0,tt.__)("Anonymous")}return null!=o?o:""}),[a]);const i=(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(nt.AlignmentControl,{value:n,onChange:e=>o({textAlign:e})})),s=(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Link to authors URL"),onChange:()=>o({isLink:!e}),checked:e}),e&&(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Open in new tab"),onChange:e=>o({linkTarget:e?"_blank":"_self"}),checked:"_blank"===t})));a&&l||(l=(0,tt._x)("Comment Author","block title"));const c=e?(0,Ke.createElement)("a",{href:"#comment-author-pseudo-link",onClick:e=>e.preventDefault()},l):l;return(0,Ke.createElement)(Ke.Fragment,null,s,i,(0,Ke.createElement)("div",{...r},c))},deprecated:_o},ko=()=>Xe({name:vo,metadata:yo,settings:fo}),xo=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6.68822 16.625L5.5 17.8145L5.5 5.5L18.5 5.5L18.5 16.625L6.68822 16.625ZM7.31 18.125L19 18.125C19.5523 18.125 20 17.6773 20 17.125L20 5C20 4.44772 19.5523 4 19 4H5C4.44772 4 4 4.44772 4 5V19.5247C4 19.8173 4.16123 20.086 4.41935 20.2237C4.72711 20.3878 5.10601 20.3313 5.35252 20.0845L7.31 18.125ZM16 9.99997H8V8.49997H16V9.99997ZM8 14H13V12.5H8V14Z"}));const wo={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-content",title:"Comment Content",category:"theme",ancestor:["core/comment-template"],description:"Displays the contents of a comment.",textdomain:"default",usesContext:["commentId"],attributes:{textAlign:{type:"string"}},supports:{color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},html:!1}},{name:Eo}=wo,Co={icon:xo,edit:function({setAttributes:e,attributes:{textAlign:t},context:{commentId:n}}){const a=(0,nt.useBlockProps)({className:ut({[`has-text-align-${t}`]:t})}),[o]=(0,dt.useEntityProp)("root","comment","content",n),r=(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(nt.AlignmentControl,{value:t,onChange:t=>e({textAlign:t})}));return n&&o?(0,Ke.createElement)(Ke.Fragment,null,r,(0,Ke.createElement)("div",{...a},(0,Ke.createElement)(et.Disabled,null,(0,Ke.createElement)(_t.RawHTML,{key:"html"},o.rendered)))):(0,Ke.createElement)(Ke.Fragment,null,r,(0,Ke.createElement)("div",{...a},(0,Ke.createElement)("p",null,(0,tt._x)("Comment Content","block title"))))}},So=()=>Xe({name:Eo,metadata:wo,settings:Co}),Bo=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M11.696 13.972c.356-.546.599-.958.728-1.235a1.79 1.79 0 00.203-.783c0-.264-.077-.47-.23-.618-.148-.153-.354-.23-.618-.23-.295 0-.569.07-.82.212a3.413 3.413 0 00-.738.571l-.147-1.188c.289-.234.59-.41.903-.526.313-.117.66-.175 1.041-.175.375 0 .695.08.959.24.264.153.46.362.59.626.135.265.203.556.203.876 0 .362-.08.734-.24 1.115-.154.381-.427.87-.82 1.466l-.756 1.152H14v1.106h-4l1.696-2.609z"}),(0,Ke.createElement)(Ye.Path,{d:"M19.5 7h-15v12a.5.5 0 00.5.5h14a.5.5 0 00.5-.5V7zM3 7V5a2 2 0 012-2h14a2 2 0 012 2v14a2 2 0 01-2 2H5a2 2 0 01-2-2V7z"})),No=window.wp.date;const To={attributes:{format:{type:"string"},isLink:{type:"boolean",default:!1}},supports:{html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0}},save:()=>null,migrate:rn,isEligible:({style:e})=>e?.typography?.fontFamily},Io=[To],Po={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-date",title:"Comment Date",category:"theme",ancestor:["core/comment-template"],description:"Displays the date on which the comment was posted.",textdomain:"default",attributes:{format:{type:"string"},isLink:{type:"boolean",default:!0}},usesContext:["commentId"],supports:{html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:Mo}=Po,zo={icon:Bo,edit:function({attributes:{format:e,isLink:t},context:{commentId:n},setAttributes:a}){const o=(0,nt.useBlockProps)();let[r]=(0,dt.useEntityProp)("root","comment","date",n);const[l=(0,No.getSettings)().formats.date]=(0,dt.useEntityProp)("root","site","date_format"),i=(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(nt.__experimentalDateFormatPicker,{format:e,defaultFormat:l,onChange:e=>a({format:e})}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Link to comment"),onChange:()=>a({isLink:!t}),checked:t})));n&&r||(r=(0,tt._x)("Comment Date","block title"));let s=r instanceof Date?(0,Ke.createElement)("time",{dateTime:(0,No.dateI18n)("c",r)},(0,No.dateI18n)(e||l,r)):(0,Ke.createElement)("time",null,r);return t&&(s=(0,Ke.createElement)("a",{href:"#comment-date-pseudo-link",onClick:e=>e.preventDefault()},s)),(0,Ke.createElement)(Ke.Fragment,null,i,(0,Ke.createElement)("div",{...o},s))},deprecated:Io},Ro=()=>Xe({name:Mo,metadata:Po,settings:zo}),Ao=(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"m6.249 11.065.44-.44h3.186l-1.5 1.5H7.31l-1.957 1.96A.792.792 0 0 1 4 13.524V5a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v1.5L12.5 8V5.5h-7v6.315l.749-.75ZM20 19.75H7v-1.5h13v1.5Zm0-12.653-8.967 9.064L8 17l.867-2.935L17.833 5 20 7.097Z"}));const Lo={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-edit-link",title:"Comment Edit Link",category:"theme",ancestor:["core/comment-template"],description:"Displays a link to edit the comment in the WordPress Dashboard. This link is only visible to users with the edit comment capability.",textdomain:"default",usesContext:["commentId"],attributes:{linkTarget:{type:"string",default:"_self"},textAlign:{type:"string"}},supports:{html:!1,color:{link:!0,gradients:!0,text:!1,__experimentalDefaultControls:{background:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:Ho}=Lo,Do={icon:Ao,edit:function({attributes:{linkTarget:e,textAlign:t},setAttributes:n}){const a=(0,nt.useBlockProps)({className:ut({[`has-text-align-${t}`]:t})}),o=(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(nt.AlignmentControl,{value:t,onChange:e=>n({textAlign:e})})),r=(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Open in new tab"),onChange:e=>n({linkTarget:e?"_blank":"_self"}),checked:"_blank"===e})));return(0,Ke.createElement)(Ke.Fragment,null,o,r,(0,Ke.createElement)("div",{...a},(0,Ke.createElement)("a",{href:"#edit-comment-pseudo-link",onClick:e=>e.preventDefault()},(0,tt.__)("Edit"))))}},Fo=()=>Xe({name:Ho,metadata:Lo,settings:Do}),Vo=(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M6.68822 10.625L6.24878 11.0649L5.5 11.8145L5.5 5.5L12.5 5.5V8L14 6.5V5C14 4.44772 13.5523 4 13 4H5C4.44772 4 4 4.44771 4 5V13.5247C4 13.8173 4.16123 14.086 4.41935 14.2237C4.72711 14.3878 5.10601 14.3313 5.35252 14.0845L7.31 12.125H8.375L9.875 10.625H7.31H6.68822ZM14.5605 10.4983L11.6701 13.75H16.9975C17.9963 13.75 18.7796 14.1104 19.3553 14.7048C19.9095 15.2771 20.2299 16.0224 20.4224 16.7443C20.7645 18.0276 20.7543 19.4618 20.7487 20.2544C20.7481 20.345 20.7475 20.4272 20.7475 20.4999L19.2475 20.5001C19.2475 20.4191 19.248 20.3319 19.2484 20.2394V20.2394C19.2526 19.4274 19.259 18.2035 18.973 17.1307C18.8156 16.5401 18.586 16.0666 18.2778 15.7483C17.9909 15.4521 17.5991 15.25 16.9975 15.25H11.8106L14.5303 17.9697L13.4696 19.0303L8.96956 14.5303L13.4394 9.50171L14.5605 10.4983Z"}));const $o=function({setAttributes:e,attributes:{textAlign:t}}){const n=(0,nt.useBlockProps)({className:ut({[`has-text-align-${t}`]:t})}),a=(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(nt.AlignmentControl,{value:t,onChange:t=>e({textAlign:t})}));return(0,Ke.createElement)(Ke.Fragment,null,a,(0,Ke.createElement)("div",{...n},(0,Ke.createElement)("a",{href:"#comment-reply-pseudo-link",onClick:e=>e.preventDefault()},(0,tt.__)("Reply"))))},Go={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-reply-link",title:"Comment Reply Link",category:"theme",ancestor:["core/comment-template"],description:"Displays a link to reply to a comment.",textdomain:"default",usesContext:["commentId"],attributes:{textAlign:{type:"string"}},supports:{color:{gradients:!0,link:!0,text:!1,__experimentalDefaultControls:{background:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},html:!1}},{name:Oo}=Go,Uo={edit:$o,icon:Vo},qo=()=>Xe({name:Oo,metadata:Go,settings:Uo}),jo=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})),Wo=window.wp.apiFetch;var Zo=n.n(Wo);const Qo=({defaultPage:e,postId:t,perPage:n,queryArgs:a})=>{const[o,r]=(0,_t.useState)({}),l=`${t}_${n}`,i=o[l]||0;return(0,_t.useEffect)((()=>{i||"newest"!==e||Zo()({path:(0,pt.addQueryArgs)("/wp/v2/comments",{...a,post:t,per_page:n,_fields:"id"}),method:"HEAD",parse:!1}).then((e=>{const t=parseInt(e.headers.get("X-WP-TotalPages"));r({...o,[l]:t<=1?1:t})}))}),[e,t,n,r]),"newest"===e?i:1},Ko=[["core/avatar"],["core/comment-author-name"],["core/comment-date"],["core/comment-content"],["core/comment-reply-link"],["core/comment-edit-link"]];function Yo({comment:e,activeCommentId:t,setActiveCommentId:n,firstCommentId:a,blocks:o}){const{children:r,...l}=(0,nt.useInnerBlocksProps)({},{template:Ko});return(0,Ke.createElement)("li",{...l},e.commentId===(t||a)?r:null,(0,Ke.createElement)(Jo,{blocks:o,commentId:e.commentId,setActiveCommentId:n,isHidden:e.commentId===(t||a)}),e?.children?.length>0?(0,Ke.createElement)(Xo,{comments:e.children,activeCommentId:t,setActiveCommentId:n,blocks:o,firstCommentId:a}):null)}const Jo=(0,_t.memo)((({blocks:e,commentId:t,setActiveCommentId:n,isHidden:a})=>{const o=(0,nt.__experimentalUseBlockPreview)({blocks:e}),r=()=>{n(t)},l={display:a?"none":void 0};return(0,Ke.createElement)("div",{...o,tabIndex:0,role:"button",style:l,onClick:r,onKeyPress:r})})),Xo=({comments:e,blockProps:t,activeCommentId:n,setActiveCommentId:a,blocks:o,firstCommentId:r})=>(0,Ke.createElement)("ol",{...t},e&&e.map((({commentId:e,...t},l)=>(0,Ke.createElement)(nt.BlockContextProvider,{key:t.commentId||l,value:{commentId:e<0?null:e}},(0,Ke.createElement)(Yo,{comment:{commentId:e,...t},activeCommentId:n,setActiveCommentId:a,blocks:o,firstCommentId:r})))));const er={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-template",title:"Comment Template",category:"design",parent:["core/comments"],description:"Contains the block elements used to display a comment, like the title, date, author, avatar and more.",textdomain:"default",usesContext:["postId"],supports:{align:!0,html:!1,reusable:!1,spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-comment-template"},{name:tr}=er,nr={icon:jo,edit:function({clientId:e,context:{postId:t}}){const n=(0,nt.useBlockProps)(),[a,o]=(0,_t.useState)(),{commentOrder:r,threadCommentsDepth:l,threadComments:i,commentsPerPage:s,pageComments:c}=(0,gt.useSelect)((e=>{const{getSettings:t}=e(nt.store);return t().__experimentalDiscussionSettings})),m=(({postId:e})=>{const t={status:"approve",order:"asc",context:"embed",parent:0,_embed:"children"},{pageComments:n,commentsPerPage:a,defaultCommentsPage:o}=(0,gt.useSelect)((e=>{const{getSettings:t}=e(nt.store),{__experimentalDiscussionSettings:n}=t();return n})),r=n?Math.min(a,100):100,l=Qo({defaultPage:o,postId:e,perPage:r,queryArgs:t});return(0,_t.useMemo)((()=>l?{...t,post:e,per_page:r,page:l}:null),[e,r,l])})({postId:t}),{topLevelComments:u,blocks:p}=(0,gt.useSelect)((t=>{const{getEntityRecords:n}=t(dt.store),{getBlocks:a}=t(nt.store);return{topLevelComments:m?n("root","comment",m):null,blocks:a(e)}}),[e,m]);let d=(e=>(0,_t.useMemo)((()=>e?.map((({id:e,_embedded:t})=>{const[n]=t?.children||[[]];return{commentId:e,children:n.map((e=>({commentId:e.id})))}}))),[e]))("desc"===r&&u?[...u].reverse():u);return u?(t||(d=(({perPage:e,pageComments:t,threadComments:n,threadCommentsDepth:a})=>{const o=n?Math.min(a,3):1,r=e=>e<o?[{commentId:-(e+3),children:r(e+1)}]:[],l=[{commentId:-1,children:r(1)}];return(!t||e>=2)&&o<3&&l.push({commentId:-2,children:[]}),(!t||e>=3)&&o<2&&l.push({commentId:-3,children:[]}),l})({perPage:s,pageComments:c,threadComments:i,threadCommentsDepth:l})),d.length?(0,Ke.createElement)(Xo,{comments:d,blockProps:n,blocks:p,activeCommentId:a,setActiveCommentId:o,firstCommentId:d[0]?.commentId}):(0,Ke.createElement)("p",{...n},(0,tt.__)("No results found."))):(0,Ke.createElement)("p",{...n},(0,Ke.createElement)(et.Spinner,null))},save:function(){return(0,Ke.createElement)(nt.InnerBlocks.Content,null)}},ar=()=>Xe({name:tr,metadata:er,settings:nr}),or=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M16 10.5v3h3v-3h-3zm-5 3h3v-3h-3v3zM7 9l-3 3 3 3 1-1-2-2 2-2-1-1z"})),rr={none:"",arrow:"←",chevron:"«"};const lr={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-pagination-previous",title:"Comments Previous Page",category:"theme",parent:["core/comments-pagination"],description:"Displays the previous comment's page link.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["postId","comments/paginationArrow"],supports:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:ir}=lr,sr={icon:or,edit:function({attributes:{label:e},setAttributes:t,context:{"comments/paginationArrow":n}}){const a=rr[n];return(0,Ke.createElement)("a",{href:"#comments-pagination-previous-pseudo-link",onClick:e=>e.preventDefault(),...(0,nt.useBlockProps)()},a&&(0,Ke.createElement)("span",{className:`wp-block-comments-pagination-previous-arrow is-arrow-${n}`},a),(0,Ke.createElement)(nt.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,tt.__)("Older comments page link"),placeholder:(0,tt.__)("Older Comments"),value:e,onChange:e=>t({label:e})}))}},cr=()=>Xe({name:ir,metadata:lr,settings:sr}),mr=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M4 13.5h6v-3H4v3zm8 0h3v-3h-3v3zm5-3v3h3v-3h-3z"}));function ur({value:e,onChange:t}){return(0,Ke.createElement)(et.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Arrow"),value:e,onChange:t,help:(0,tt.__)("A decorative arrow appended to the next and previous comments link."),isBlock:!0},(0,Ke.createElement)(et.__experimentalToggleGroupControlOption,{value:"none",label:(0,tt._x)("None","Arrow option for Comments Pagination Next/Previous blocks")}),(0,Ke.createElement)(et.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,tt._x)("Arrow","Arrow option for Comments Pagination Next/Previous blocks")}),(0,Ke.createElement)(et.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,tt._x)("Chevron","Arrow option for Comments Pagination Next/Previous blocks")}))}const pr=[["core/comments-pagination-previous"],["core/comments-pagination-numbers"],["core/comments-pagination-next"]];const dr={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-pagination",title:"Comments Pagination",category:"theme",parent:["core/comments"],allowedBlocks:["core/comments-pagination-previous","core/comments-pagination-numbers","core/comments-pagination-next"],description:"Displays a paginated navigation to next/previous set of comments, when applicable.",textdomain:"default",attributes:{paginationArrow:{type:"string",default:"none"}},providesContext:{"comments/paginationArrow":"paginationArrow"},supports:{align:!0,reusable:!1,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-comments-pagination-editor",style:"wp-block-comments-pagination"},{name:gr}=dr,hr={icon:mr,edit:function({attributes:{paginationArrow:e},setAttributes:t,clientId:n}){const a=(0,gt.useSelect)((e=>{const{getBlocks:t}=e(nt.store),a=t(n);return a?.find((e=>["core/comments-pagination-previous","core/comments-pagination-next"].includes(e.name)))}),[]),o=(0,nt.useBlockProps)(),r=(0,nt.useInnerBlocksProps)(o,{template:pr});return(0,gt.useSelect)((e=>{const{getSettings:t}=e(nt.store),{__experimentalDiscussionSettings:n}=t();return n?.pageComments}),[])?(0,Ke.createElement)(Ke.Fragment,null,a&&(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(ur,{value:e,onChange:e=>{t({paginationArrow:e})}}))),(0,Ke.createElement)("div",{...r})):(0,Ke.createElement)(nt.Warning,null,(0,tt.__)("Comments Pagination block: paging comments is disabled in the Discussion Settings"))},save:function(){return(0,Ke.createElement)(nt.InnerBlocks.Content,null)}},br=()=>Xe({name:gr,metadata:dr,settings:hr}),_r=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M5 13.5h3v-3H5v3zm5 0h3v-3h-3v3zM17 9l-1 1 2 2-2 2 1 1 3-3-3-3z"})),yr={none:"",arrow:"→",chevron:"»"};const vr={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-pagination-next",title:"Comments Next Page",category:"theme",parent:["core/comments-pagination"],description:"Displays the next comment's page link.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["postId","comments/paginationArrow"],supports:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:fr}=vr,kr={icon:_r,edit:function({attributes:{label:e},setAttributes:t,context:{"comments/paginationArrow":n}}){const a=yr[n];return(0,Ke.createElement)("a",{href:"#comments-pagination-next-pseudo-link",onClick:e=>e.preventDefault(),...(0,nt.useBlockProps)()},(0,Ke.createElement)(nt.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,tt.__)("Newer comments page link"),placeholder:(0,tt.__)("Newer Comments"),value:e,onChange:e=>t({label:e})}),a&&(0,Ke.createElement)("span",{className:`wp-block-comments-pagination-next-arrow is-arrow-${n}`},a))}},xr=()=>Xe({name:fr,metadata:vr,settings:kr}),wr=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M4 13.5h6v-3H4v3zm8.2-2.5.8-.3V14h1V9.3l-2.2.7.4 1zm7.1-1.2c-.5-.6-1.2-.5-1.7-.4-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5h2.7v-1h-.9c.3-.6.8-1.4.9-2.1 0-.3-.1-.8-.3-1.1z"})),Er=({content:e,tag:t="a",extraClass:n=""})=>"a"===t?(0,Ke.createElement)(t,{className:`page-numbers ${n}`,href:"#comments-pagination-numbers-pseudo-link",onClick:e=>e.preventDefault()},e):(0,Ke.createElement)(t,{className:`page-numbers ${n}`},e);const Cr={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-pagination-numbers",title:"Comments Page Numbers",category:"theme",parent:["core/comments-pagination"],description:"Displays a list of page numbers for comments pagination.",textdomain:"default",usesContext:["postId"],supports:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:Sr}=Cr,Br={icon:wr,edit:function(){return(0,Ke.createElement)("div",{...(0,nt.useBlockProps)()},(0,Ke.createElement)(Er,{content:"1"}),(0,Ke.createElement)(Er,{content:"2"}),(0,Ke.createElement)(Er,{content:"3",tag:"span",extraClass:"current"}),(0,Ke.createElement)(Er,{content:"4"}),(0,Ke.createElement)(Er,{content:"5"}),(0,Ke.createElement)(Er,{content:"...",tag:"span",extraClass:"dots"}),(0,Ke.createElement)(Er,{content:"8"}))}},Nr=()=>Xe({name:Sr,metadata:Cr,settings:Br}),Tr=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"m4 5.5h2v6.5h1.5v-6.5h2v-1.5h-5.5zm16 10.5h-16v-1.5h16zm-7 4h-9v-1.5h9z"}));const{attributes:Ir,supports:Pr}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-title",title:"Comments Title",category:"theme",ancestor:["core/comments"],description:"Displays a title with the number of comments.",textdomain:"default",usesContext:["postId","postType"],attributes:{textAlign:{type:"string"},showPostTitle:{type:"boolean",default:!0},showCommentsCount:{type:"boolean",default:!0},level:{type:"number",default:2}},supports:{anchor:!1,align:!0,html:!1,__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0}},interactivity:{clientNavigation:!0}}},Mr=[{attributes:{...Ir,singleCommentLabel:{type:"string"},multipleCommentsLabel:{type:"string"}},supports:Pr,migrate:e=>{const{singleCommentLabel:t,multipleCommentsLabel:n,...a}=e;return a},isEligible:({multipleCommentsLabel:e,singleCommentLabel:t})=>e||t,save:()=>null}],zr={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-title",title:"Comments Title",category:"theme",ancestor:["core/comments"],description:"Displays a title with the number of comments.",textdomain:"default",usesContext:["postId","postType"],attributes:{textAlign:{type:"string"},showPostTitle:{type:"boolean",default:!0},showCommentsCount:{type:"boolean",default:!0},level:{type:"number",default:2}},supports:{anchor:!1,align:!0,html:!1,__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0}},interactivity:{clientNavigation:!0}}},{name:Rr}=zr,Ar={icon:Tr,edit:function({attributes:{textAlign:e,showPostTitle:t,showCommentsCount:n,level:a},setAttributes:o,context:{postType:r,postId:l}}){const i="h"+a,[s,c]=(0,_t.useState)(),[m]=(0,dt.useEntityProp)("postType",r,"title",l),u=void 0===l,p=(0,nt.useBlockProps)({className:ut({[`has-text-align-${e}`]:e})}),{threadCommentsDepth:d,threadComments:g,commentsPerPage:h,pageComments:b}=(0,gt.useSelect)((e=>{const{getSettings:t}=e(nt.store);return t().__experimentalDiscussionSettings}));(0,_t.useEffect)((()=>{if(u){const e=g?Math.min(d,3)-1:0,t=b?h:3,n=parseInt(e)+parseInt(t);return void c(Math.min(n,3))}const e=l;Zo()({path:(0,pt.addQueryArgs)("/wp/v2/comments",{post:l,_fields:"id"}),method:"HEAD",parse:!1}).then((t=>{e===l&&c(parseInt(t.headers.get("X-WP-Total")))})).catch((()=>{c(0)}))}),[l]);const _=(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(nt.AlignmentControl,{value:e,onChange:e=>o({textAlign:e})}),(0,Ke.createElement)(nt.HeadingLevelDropdown,{value:a,onChange:e=>o({level:e})})),y=(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show post title"),checked:t,onChange:e=>o({showPostTitle:e})}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show comments count"),checked:n,onChange:e=>o({showCommentsCount:e})}))),v=u?(0,tt.__)("“Post Title”"):`"${m}"`;let f;return f=n&&void 0!==s?t?1===s?(0,tt.sprintf)((0,tt.__)("One response to %s"),v):(0,tt.sprintf)((0,tt._n)("%1$s response to %2$s","%1$s responses to %2$s",s),s,v):1===s?(0,tt.__)("One response"):(0,tt.sprintf)((0,tt._n)("%s response","%s responses",s),s):t?1===s?(0,tt.sprintf)((0,tt.__)("Response to %s"),v):(0,tt.sprintf)((0,tt.__)("Responses to %s"),v):1===s?(0,tt.__)("Response"):(0,tt.__)("Responses"),(0,Ke.createElement)(Ke.Fragment,null,_,y,(0,Ke.createElement)(i,{...p},f))},deprecated:Mr},Lr=()=>Xe({name:Rr,metadata:zr,settings:Ar}),Hr=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h6.2v8.9l2.5-3.1 2.5 3.1V4.5h2.2c.4 0 .8.4.8.8v13.4z"})),Dr={"top left":"is-position-top-left","top center":"is-position-top-center","top right":"is-position-top-right","center left":"is-position-center-left","center center":"is-position-center-center",center:"is-position-center-center","center right":"is-position-center-right","bottom left":"is-position-bottom-left","bottom center":"is-position-bottom-center","bottom right":"is-position-bottom-right"},Fr="image",Vr="video",$r=50,Gr={x:.5,y:.5},Or=["image","video"];function Ur({x:e,y:t}=Gr){return`${Math.round(100*e)}% ${Math.round(100*t)}%`}function qr(e){return 50===e||void 0===e?null:"has-background-dim-"+10*Math.round(e/10)}function jr(e){return!e||"center center"===e||"center"===e}function Wr(e){return jr(e)?"":Dr[e]}function Zr(e){return e?{backgroundImage:`url(${e})`}:{}}function Qr(e){return 0!==e&&50!==e&&e?"has-background-dim-"+10*Math.round(e/10):null}function Kr(e){return{...e,dimRatio:e.url?e.dimRatio:100}}function Yr(e){return e.tagName||(e={...e,tagName:"div"}),{...e}}const Jr={url:{type:"string"},id:{type:"number"},hasParallax:{type:"boolean",default:!1},dimRatio:{type:"number",default:50},overlayColor:{type:"string"},customOverlayColor:{type:"string"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"}},Xr={url:{type:"string"},id:{type:"number"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},hasParallax:{type:"boolean",default:!1},isRepeated:{type:"boolean",default:!1},dimRatio:{type:"number",default:100},overlayColor:{type:"string"},customOverlayColor:{type:"string"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"},isDark:{type:"boolean",default:!0},allowedBlocks:{type:"array"},templateLock:{type:["string","boolean"],enum:["all","insert",!1]}},el={...Xr,useFeaturedImage:{type:"boolean",default:!1},tagName:{type:"string",default:"div"}},tl={anchor:!0,align:!0,html:!1,spacing:{padding:!0,__experimentalDefaultControls:{padding:!0}},color:{__experimentalDuotone:"> .wp-block-cover__image-background, > .wp-block-cover__video-background",text:!1,background:!1}},nl={...tl,spacing:{padding:!0,margin:["top","bottom"],blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},color:{__experimentalDuotone:"> .wp-block-cover__image-background, > .wp-block-cover__video-background",heading:!0,text:!0,background:!1,__experimentalSkipSerialization:["gradients"],enableContrastChecker:!1},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowJustification:!1}},al={attributes:el,supports:nl,save({attributes:e}){const{backgroundType:t,gradient:n,contentPosition:a,customGradient:o,customOverlayColor:r,dimRatio:l,focalPoint:i,useFeaturedImage:s,hasParallax:c,isDark:m,isRepeated:u,overlayColor:p,url:d,alt:g,id:h,minHeight:b,minHeightUnit:_,tagName:y}=e,v=(0,nt.getColorClassName)("background-color",p),f=(0,nt.__experimentalGetGradientClass)(n),k=Fr===t,x=Vr===t,w=!(c||u),E={minHeight:(b&&_?`${b}${_}`:b)||void 0},C={backgroundColor:v?void 0:r,background:o||void 0},S=i&&w?Ur(i):void 0,B=d?`url(${d})`:void 0,N=Ur(i),T=ut({"is-light":!m,"has-parallax":c,"is-repeated":u,"has-custom-content-position":!jr(a)},Wr(a)),I=ut("wp-block-cover__image-background",h?`wp-image-${h}`:null,{"has-parallax":c,"is-repeated":u}),P=n||o;return(0,Ke.createElement)(y,{...nt.useBlockProps.save({className:T,style:E})},(0,Ke.createElement)("span",{"aria-hidden":"true",className:ut("wp-block-cover__background",v,qr(l),{"has-background-dim":void 0!==l,"wp-block-cover__gradient-background":d&&P&&0!==l,"has-background-gradient":P,[f]:f}),style:C}),!s&&k&&d&&(w?(0,Ke.createElement)("img",{className:I,alt:g,src:d,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}):(0,Ke.createElement)("div",{role:"img",className:I,style:{backgroundPosition:N,backgroundImage:B}})),x&&d&&(0,Ke.createElement)("video",{className:ut("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}),(0,Ke.createElement)("div",{...nt.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})}))}},ol={attributes:el,supports:nl,isEligible:e=>void 0!==e.customOverlayColor||void 0!==e.overlayColor,migrate:e=>({...e,isUserOverlayColor:!0}),save({attributes:e}){const{backgroundType:t,gradient:n,contentPosition:a,customGradient:o,customOverlayColor:r,dimRatio:l,focalPoint:i,useFeaturedImage:s,hasParallax:c,isDark:m,isRepeated:u,overlayColor:p,url:d,alt:g,id:h,minHeight:b,minHeightUnit:_,tagName:y}=e,v=(0,nt.getColorClassName)("background-color",p),f=(0,nt.__experimentalGetGradientClass)(n),k=Fr===t,x=Vr===t,w=!(c||u),E={minHeight:(b&&_?`${b}${_}`:b)||void 0},C={backgroundColor:v?void 0:r,background:o||void 0},S=i&&w?Ur(i):void 0,B=d?`url(${d})`:void 0,N=Ur(i),T=ut({"is-light":!m,"has-parallax":c,"is-repeated":u,"has-custom-content-position":!jr(a)},Wr(a)),I=ut("wp-block-cover__image-background",h?`wp-image-${h}`:null,{"has-parallax":c,"is-repeated":u}),P=n||o;return(0,Ke.createElement)(y,{...nt.useBlockProps.save({className:T,style:E})},(0,Ke.createElement)("span",{"aria-hidden":"true",className:ut("wp-block-cover__background",v,qr(l),{"has-background-dim":void 0!==l,"wp-block-cover__gradient-background":d&&P&&0!==l,"has-background-gradient":P,[f]:f}),style:C}),!s&&k&&d&&(w?(0,Ke.createElement)("img",{className:I,alt:g,src:d,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}):(0,Ke.createElement)("div",{role:"img",className:I,style:{backgroundPosition:N,backgroundImage:B}})),x&&d&&(0,Ke.createElement)("video",{className:ut("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}),(0,Ke.createElement)("div",{...nt.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})}))}},rl={attributes:Xr,supports:tl,save({attributes:e}){const{backgroundType:t,gradient:n,contentPosition:a,customGradient:o,customOverlayColor:r,dimRatio:l,focalPoint:i,useFeaturedImage:s,hasParallax:c,isDark:m,isRepeated:u,overlayColor:p,url:d,alt:g,id:h,minHeight:b,minHeightUnit:_}=e,y=(0,nt.getColorClassName)("background-color",p),v=(0,nt.__experimentalGetGradientClass)(n),f=Fr===t,k=Vr===t,x=!(c||u),w={minHeight:(b&&_?`${b}${_}`:b)||void 0},E={backgroundColor:y?void 0:r,background:o||void 0},C=i&&x?Ur(i):void 0,S=d?`url(${d})`:void 0,B=Ur(i),N=ut({"is-light":!m,"has-parallax":c,"is-repeated":u,"has-custom-content-position":!jr(a)},Wr(a)),T=ut("wp-block-cover__image-background",h?`wp-image-${h}`:null,{"has-parallax":c,"is-repeated":u}),I=n||o;return(0,Ke.createElement)("div",{...nt.useBlockProps.save({className:N,style:w})},(0,Ke.createElement)("span",{"aria-hidden":"true",className:ut("wp-block-cover__background",y,qr(l),{"has-background-dim":void 0!==l,"wp-block-cover__gradient-background":d&&I&&0!==l,"has-background-gradient":I,[v]:v}),style:E}),!s&&f&&d&&(x?(0,Ke.createElement)("img",{className:T,alt:g,src:d,style:{objectPosition:C},"data-object-fit":"cover","data-object-position":C}):(0,Ke.createElement)("div",{role:"img",className:T,style:{backgroundPosition:B,backgroundImage:S}})),k&&d&&(0,Ke.createElement)("video",{className:ut("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:{objectPosition:C},"data-object-fit":"cover","data-object-position":C}),(0,Ke.createElement)("div",{...nt.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})}))},migrate:Yr},ll={attributes:Xr,supports:tl,save({attributes:e}){const{backgroundType:t,gradient:n,contentPosition:a,customGradient:o,customOverlayColor:r,dimRatio:l,focalPoint:i,useFeaturedImage:s,hasParallax:c,isDark:m,isRepeated:u,overlayColor:p,url:d,alt:g,id:h,minHeight:b,minHeightUnit:_}=e,y=(0,nt.getColorClassName)("background-color",p),v=(0,nt.__experimentalGetGradientClass)(n),f=b&&_?`${b}${_}`:b,k=Fr===t,x=Vr===t,w=!(c||u),E={...!k||w||s?{}:Zr(d),minHeight:f||void 0},C={backgroundColor:y?void 0:r,background:o||void 0},S=i&&w?`${Math.round(100*i.x)}% ${Math.round(100*i.y)}%`:void 0,B=ut({"is-light":!m,"has-parallax":c,"is-repeated":u,"has-custom-content-position":!jr(a)},Wr(a)),N=n||o;return(0,Ke.createElement)("div",{...nt.useBlockProps.save({className:B,style:E})},(0,Ke.createElement)("span",{"aria-hidden":"true",className:ut("wp-block-cover__background",y,qr(l),{"has-background-dim":void 0!==l,"wp-block-cover__gradient-background":d&&N&&0!==l,"has-background-gradient":N,[v]:v}),style:C}),!s&&k&&w&&d&&(0,Ke.createElement)("img",{className:ut("wp-block-cover__image-background",h?`wp-image-${h}`:null),alt:g,src:d,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}),x&&d&&(0,Ke.createElement)("video",{className:ut("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}),(0,Ke.createElement)("div",{...nt.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})}))},migrate:Yr},il={attributes:Xr,supports:tl,save({attributes:e}){const{backgroundType:t,gradient:n,contentPosition:a,customGradient:o,customOverlayColor:r,dimRatio:l,focalPoint:i,hasParallax:s,isDark:c,isRepeated:m,overlayColor:u,url:p,alt:d,id:g,minHeight:h,minHeightUnit:b}=e,_=(0,nt.getColorClassName)("background-color",u),y=(0,nt.__experimentalGetGradientClass)(n),v=b?`${h}${b}`:h,f=Fr===t,k=Vr===t,x=!(s||m),w={...f&&!x?Zr(p):{},minHeight:v||void 0},E={backgroundColor:_?void 0:r,background:o||void 0},C=i&&x?`${Math.round(100*i.x)}% ${Math.round(100*i.y)}%`:void 0,S=ut({"is-light":!c,"has-parallax":s,"is-repeated":m,"has-custom-content-position":!jr(a)},Wr(a)),B=n||o;return(0,Ke.createElement)("div",{...nt.useBlockProps.save({className:S,style:w})},(0,Ke.createElement)("span",{"aria-hidden":"true",className:ut("wp-block-cover__background",_,qr(l),{"has-background-dim":void 0!==l,"wp-block-cover__gradient-background":p&&B&&0!==l,"has-background-gradient":B,[y]:y}),style:E}),f&&x&&p&&(0,Ke.createElement)("img",{className:ut("wp-block-cover__image-background",g?`wp-image-${g}`:null),alt:d,src:p,style:{objectPosition:C},"data-object-fit":"cover","data-object-position":C}),k&&p&&(0,Ke.createElement)("video",{className:ut("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:p,style:{objectPosition:C},"data-object-fit":"cover","data-object-position":C}),(0,Ke.createElement)("div",{...nt.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})}))},migrate:Yr},sl={attributes:Xr,supports:tl,save({attributes:e}){const{backgroundType:t,gradient:n,contentPosition:a,customGradient:o,customOverlayColor:r,dimRatio:l,focalPoint:i,hasParallax:s,isDark:c,isRepeated:m,overlayColor:u,url:p,alt:d,id:g,minHeight:h,minHeightUnit:b}=e,_=(0,nt.getColorClassName)("background-color",u),y=(0,nt.__experimentalGetGradientClass)(n),v=b?`${h}${b}`:h,f=Fr===t,k=Vr===t,x=!(s||m),w={...f&&!x?Zr(p):{},minHeight:v||void 0},E={backgroundColor:_?void 0:r,background:o||void 0},C=i&&x?`${Math.round(100*i.x)}% ${Math.round(100*i.y)}%`:void 0,S=ut({"is-light":!c,"has-parallax":s,"is-repeated":m,"has-custom-content-position":!jr(a)},Wr(a));return(0,Ke.createElement)("div",{...nt.useBlockProps.save({className:S,style:w})},(0,Ke.createElement)("span",{"aria-hidden":"true",className:ut(_,qr(l),"wp-block-cover__gradient-background",y,{"has-background-dim":void 0!==l,"has-background-gradient":n||o,[y]:!p&&y}),style:E}),f&&x&&p&&(0,Ke.createElement)("img",{className:ut("wp-block-cover__image-background",g?`wp-image-${g}`:null),alt:d,src:p,style:{objectPosition:C},"data-object-fit":"cover","data-object-position":C}),k&&p&&(0,Ke.createElement)("video",{className:ut("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:p,style:{objectPosition:C},"data-object-fit":"cover","data-object-position":C}),(0,Ke.createElement)("div",{...nt.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})}))},migrate:Yr},cl={attributes:{...Jr,isRepeated:{type:"boolean",default:!1},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""}},supports:tl,save({attributes:e}){const{backgroundType:t,gradient:n,contentPosition:a,customGradient:o,customOverlayColor:r,dimRatio:l,focalPoint:i,hasParallax:s,isRepeated:c,overlayColor:m,url:u,alt:p,id:d,minHeight:g,minHeightUnit:h}=e,b=(0,nt.getColorClassName)("background-color",m),_=(0,nt.__experimentalGetGradientClass)(n),y=h?`${g}${h}`:g,v=Fr===t,f=Vr===t,k=!(s||c),x={...v&&!k?Zr(u):{},backgroundColor:b?void 0:r,background:o&&!u?o:void 0,minHeight:y||void 0},w=i&&k?`${Math.round(100*i.x)}% ${Math.round(100*i.y)}%`:void 0,E=ut(Qr(l),b,{"has-background-dim":0!==l,"has-parallax":s,"is-repeated":c,"has-background-gradient":n||o,[_]:!u&&_,"has-custom-content-position":!jr(a)},Wr(a));return(0,Ke.createElement)("div",{...nt.useBlockProps.save({className:E,style:x})},u&&(n||o)&&0!==l&&(0,Ke.createElement)("span",{"aria-hidden":"true",className:ut("wp-block-cover__gradient-background",_),style:o?{background:o}:void 0}),v&&k&&u&&(0,Ke.createElement)("img",{className:ut("wp-block-cover__image-background",d?`wp-image-${d}`:null),alt:p,src:u,style:{objectPosition:w},"data-object-fit":"cover","data-object-position":w}),f&&u&&(0,Ke.createElement)("video",{className:ut("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:u,style:{objectPosition:w},"data-object-fit":"cover","data-object-position":w}),(0,Ke.createElement)("div",{className:"wp-block-cover__inner-container"},(0,Ke.createElement)(nt.InnerBlocks.Content,null)))},migrate:(0,jt.compose)(Kr,Yr)},ml={attributes:{...Jr,isRepeated:{type:"boolean",default:!1},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"}},supports:{align:!0},save({attributes:e}){const{backgroundType:t,gradient:n,contentPosition:a,customGradient:o,customOverlayColor:r,dimRatio:l,focalPoint:i,hasParallax:s,isRepeated:c,overlayColor:m,url:u,minHeight:p,minHeightUnit:d}=e,g=(0,nt.getColorClassName)("background-color",m),h=(0,nt.__experimentalGetGradientClass)(n),b=d?`${p}${d}`:p,_=Fr===t,y=Vr===t,v=_?Zr(u):{},f={};let k;g||(v.backgroundColor=r),o&&!u&&(v.background=o),v.minHeight=b||void 0,i&&(k=`${Math.round(100*i.x)}% ${Math.round(100*i.y)}%`,_&&!s&&(v.backgroundPosition=k),y&&(f.objectPosition=k));const x=ut(Qr(l),g,{"has-background-dim":0!==l,"has-parallax":s,"is-repeated":c,"has-background-gradient":n||o,[h]:!u&&h,"has-custom-content-position":!jr(a)},Wr(a));return(0,Ke.createElement)("div",{...nt.useBlockProps.save({className:x,style:v})},u&&(n||o)&&0!==l&&(0,Ke.createElement)("span",{"aria-hidden":"true",className:ut("wp-block-cover__gradient-background",h),style:o?{background:o}:void 0}),y&&u&&(0,Ke.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:u,style:f}),(0,Ke.createElement)("div",{className:"wp-block-cover__inner-container"},(0,Ke.createElement)(nt.InnerBlocks.Content,null)))},migrate:(0,jt.compose)(Kr,Yr)},ul={attributes:{...Jr,minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},supports:{align:!0},save({attributes:e}){const{backgroundType:t,gradient:n,customGradient:a,customOverlayColor:o,dimRatio:r,focalPoint:l,hasParallax:i,overlayColor:s,url:c,minHeight:m}=e,u=(0,nt.getColorClassName)("background-color",s),p=(0,nt.__experimentalGetGradientClass)(n),d=t===Fr?Zr(c):{};u||(d.backgroundColor=o),l&&!i&&(d.backgroundPosition=`${Math.round(100*l.x)}% ${Math.round(100*l.y)}%`),a&&!c&&(d.background=a),d.minHeight=m||void 0;const g=ut(Qr(r),u,{"has-background-dim":0!==r,"has-parallax":i,"has-background-gradient":a,[p]:!c&&p});return(0,Ke.createElement)("div",{className:g,style:d},c&&(n||a)&&0!==r&&(0,Ke.createElement)("span",{"aria-hidden":"true",className:ut("wp-block-cover__gradient-background",p),style:a?{background:a}:void 0}),Vr===t&&c&&(0,Ke.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:c}),(0,Ke.createElement)("div",{className:"wp-block-cover__inner-container"},(0,Ke.createElement)(nt.InnerBlocks.Content,null)))},migrate:(0,jt.compose)(Kr,Yr)},pl={attributes:{...Jr,minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},supports:{align:!0},save({attributes:e}){const{backgroundType:t,gradient:n,customGradient:a,customOverlayColor:o,dimRatio:r,focalPoint:l,hasParallax:i,overlayColor:s,url:c,minHeight:m}=e,u=(0,nt.getColorClassName)("background-color",s),p=(0,nt.__experimentalGetGradientClass)(n),d=t===Fr?Zr(c):{};u||(d.backgroundColor=o),l&&!i&&(d.backgroundPosition=`${100*l.x}% ${100*l.y}%`),a&&!c&&(d.background=a),d.minHeight=m||void 0;const g=ut(Qr(r),u,{"has-background-dim":0!==r,"has-parallax":i,"has-background-gradient":a,[p]:!c&&p});return(0,Ke.createElement)("div",{className:g,style:d},c&&(n||a)&&0!==r&&(0,Ke.createElement)("span",{"aria-hidden":"true",className:ut("wp-block-cover__gradient-background",p),style:a?{background:a}:void 0}),Vr===t&&c&&(0,Ke.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:c}),(0,Ke.createElement)("div",{className:"wp-block-cover__inner-container"},(0,Ke.createElement)(nt.InnerBlocks.Content,null)))},migrate:(0,jt.compose)(Kr,Yr)},dl={attributes:{...Jr,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"}},supports:{align:!0},save({attributes:e}){const{backgroundType:t,contentAlign:n,customOverlayColor:a,dimRatio:o,focalPoint:r,hasParallax:l,overlayColor:i,title:s,url:c}=e,m=(0,nt.getColorClassName)("background-color",i),u=t===Fr?Zr(c):{};m||(u.backgroundColor=a),r&&!l&&(u.backgroundPosition=`${100*r.x}% ${100*r.y}%`);const p=ut(Qr(o),m,{"has-background-dim":0!==o,"has-parallax":l,[`has-${n}-content`]:"center"!==n});return(0,Ke.createElement)("div",{className:p,style:u},Vr===t&&c&&(0,Ke.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:c}),!nt.RichText.isEmpty(s)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"p",className:"wp-block-cover-text",value:s}))},migrate(e){const t={...e,dimRatio:e.url?e.dimRatio:100,tagName:e.tagName?e.tagName:"div"},{title:n,contentAlign:a,...o}=t;return[o,[(0,Qe.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:(0,tt.__)("Write title…")})]]}},gl={attributes:{...Jr,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},align:{type:"string"}},supports:{className:!1},save({attributes:e}){const{url:t,title:n,hasParallax:a,dimRatio:o,align:r,contentAlign:l,overlayColor:i,customOverlayColor:s}=e,c=(0,nt.getColorClassName)("background-color",i),m=Zr(t);c||(m.backgroundColor=s);const u=ut("wp-block-cover-image",Qr(o),c,{"has-background-dim":0!==o,"has-parallax":a,[`has-${l}-content`]:"center"!==l},r?`align${r}`:null);return(0,Ke.createElement)("div",{className:u,style:m},!nt.RichText.isEmpty(n)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"p",className:"wp-block-cover-image-text",value:n}))},migrate(e){const t={...e,dimRatio:e.url?e.dimRatio:100,tagName:e.tagName?e.tagName:"div"},{title:n,contentAlign:a,align:o,...r}=t;return[r,[(0,Qe.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:(0,tt.__)("Write title…")})]]}},hl={attributes:{...Jr,title:{type:"string",source:"html",selector:"h2"},align:{type:"string"},contentAlign:{type:"string",default:"center"}},supports:{className:!1},save({attributes:e}){const{url:t,title:n,hasParallax:a,dimRatio:o,align:r}=e,l=Zr(t),i=ut("wp-block-cover-image",Qr(o),{"has-background-dim":0!==o,"has-parallax":a},r?`align${r}`:null);return(0,Ke.createElement)("section",{className:i,style:l},(0,Ke.createElement)(nt.RichText.Content,{tagName:"h2",value:n}))},migrate(e){const t={...e,dimRatio:e.url?e.dimRatio:100,tagName:e.tagName?e.tagName:"div"},{title:n,contentAlign:a,align:o,...r}=t;return[r,[(0,Qe.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:(0,tt.__)("Write title…")})]]}},bl=[al,ol,rl,ll,il,sl,cl,ml,ul,pl,dl,gl,hl],{cleanEmptyObject:_l}=Ht(nt.privateApis);function yl({onChange:e,onUnitChange:t,unit:n="px",value:a=""}){const o=`block-cover-height-input-${(0,jt.useInstanceId)(et.__experimentalUnitControl)}`,r="px"===n,[l]=(0,nt.useSettings)("spacing.units"),i=(0,et.__experimentalUseCustomUnits)({availableUnits:l||["px","em","rem","vw","vh"],defaultValues:{px:430,"%":20,em:20,rem:20,vw:20,vh:50}}),s=(0,_t.useMemo)((()=>{const[e]=(0,et.__experimentalParseQuantityAndUnitFromRawValue)(a);return[e,n].join("")}),[n,a]),c=r?$r:0;return(0,Ke.createElement)(et.__experimentalUnitControl,{label:(0,tt.__)("Minimum height of cover"),id:o,isResetValueOnUnitChange:!0,min:c,onChange:t=>{const n=""!==t?parseFloat(t):void 0;isNaN(n)&&void 0!==n||e(n)},onUnitChange:t,__unstableInputWidth:"80px",units:i,value:s})}function vl({attributes:e,setAttributes:t,clientId:n,setOverlayColor:a,coverRef:o,currentSettings:r,updateDimRatio:l,onClearMedia:i}){const{useFeaturedImage:s,dimRatio:c,focalPoint:m,hasParallax:u,isRepeated:p,minHeight:d,minHeightUnit:g,alt:h,tagName:b}=e,{isVideoBackground:_,isImageBackground:y,mediaElement:v,url:f,overlayColor:k}=r,{gradientValue:x,setGradient:w}=(0,nt.__experimentalUseGradient)(),E=_||y&&(!u||p),C=e=>{const[t,n]=v.current?[v.current.style,"objectPosition"]:[o.current.style,"backgroundPosition"];t[n]=Ur(e)},S=(0,nt.__experimentalUseMultipleOriginColorsAndGradients)(),B={header:(0,tt.__)("The <header> element should represent introductory content, typically a group of introductory or navigational aids."),main:(0,tt.__)("The <main> element should be used for the primary content of your document only."),section:(0,tt.__)("The <section> element should represent a standalone portion of the document that can't be better represented by another element."),article:(0,tt.__)("The <article> element should represent a self-contained, syndicatable portion of the document."),aside:(0,tt.__)("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content."),footer:(0,tt.__)("The <footer> element should represent a footer for its nearest sectioning element (e.g.: <section>, <article>, <main> etc.).")};return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.InspectorControls,null,!!f&&(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},y&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Fixed background"),checked:u,onChange:()=>{t({hasParallax:!u,...u?{}:{focalPoint:void 0}})}}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Repeated background"),checked:p,onChange:()=>{t({isRepeated:!p})}})),E&&(0,Ke.createElement)(et.FocalPointPicker,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Focal point"),url:f,value:m,onDragStart:C,onDrag:C,onChange:e=>t({focalPoint:e})}),!s&&f&&!_&&(0,Ke.createElement)(et.TextareaControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Alternative text"),value:h,onChange:e=>t({alt:e}),help:(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},(0,tt.__)("Describe the purpose of the image.")),(0,Ke.createElement)("br",null),(0,tt.__)("Leave empty if decorative."))}),(0,Ke.createElement)(et.PanelRow,null,(0,Ke.createElement)(et.Button,{variant:"secondary",size:"small",className:"block-library-cover__reset-button",onClick:i},(0,tt.__)("Clear Media"))))),S.hasColorsOrGradients&&(0,Ke.createElement)(nt.InspectorControls,{group:"color"},(0,Ke.createElement)(nt.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:k.color,gradientValue:x,label:(0,tt.__)("Overlay"),onColorChange:a,onGradientChange:w,isShownByDefault:!0,resetAllFilter:()=>({overlayColor:void 0,customOverlayColor:void 0,gradient:void 0,customGradient:void 0})}],panelId:n,...S}),(0,Ke.createElement)(et.__experimentalToolsPanelItem,{hasValue:()=>void 0!==c&&c!==(f?50:100),label:(0,tt.__)("Overlay opacity"),onDeselect:()=>l(f?50:100),resetAllFilter:()=>({dimRatio:f?50:100}),isShownByDefault:!0,panelId:n},(0,Ke.createElement)(et.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Overlay opacity"),value:c,onChange:e=>l(e),min:0,max:100,step:10,required:!0,__next40pxDefaultSize:!0}))),(0,Ke.createElement)(nt.InspectorControls,{group:"dimensions"},(0,Ke.createElement)(et.__experimentalToolsPanelItem,{hasValue:()=>!!d,label:(0,tt.__)("Minimum height"),onDeselect:()=>t({minHeight:void 0,minHeightUnit:void 0}),resetAllFilter:()=>({minHeight:void 0,minHeightUnit:void 0}),isShownByDefault:!0,panelId:n},(0,Ke.createElement)(yl,{value:e?.style?.dimensions?.aspectRatio?"":d,unit:g,onChange:n=>t({minHeight:n,style:_l({...e?.style,dimensions:{...e?.style?.dimensions,aspectRatio:void 0}})}),onUnitChange:e=>t({minHeightUnit:e})}))),(0,Ke.createElement)(nt.InspectorControls,{group:"advanced"},(0,Ke.createElement)(et.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("HTML element"),options:[{label:(0,tt.__)("Default (<div>)"),value:"div"},{label:"<header>",value:"header"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"},{label:"<aside>",value:"aside"},{label:"<footer>",value:"footer"}],value:b,onChange:e=>t({tagName:e}),help:B[b]})))}const{cleanEmptyObject:fl}=Ht(nt.privateApis);function kl({attributes:e,setAttributes:t,onSelectMedia:n,currentSettings:a,toggleUseFeaturedImage:o}){const{contentPosition:r,id:l,useFeaturedImage:i,minHeight:s,minHeightUnit:c}=e,{hasInnerBlocks:m,url:u}=a,[p,d]=(0,_t.useState)(s),[g,h]=(0,_t.useState)(c),b="vh"===c&&100===s&&!e?.style?.dimensions?.aspectRatio;return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(nt.__experimentalBlockAlignmentMatrixControl,{label:(0,tt.__)("Change content position"),value:r,onChange:e=>t({contentPosition:e}),isDisabled:!m}),(0,Ke.createElement)(nt.__experimentalBlockFullHeightAligmentControl,{isActive:b,onToggle:()=>b?t("vh"===g&&100===p?{minHeight:void 0,minHeightUnit:void 0}:{minHeight:p,minHeightUnit:g}):(d(s),h(c),t({minHeight:100,minHeightUnit:"vh",style:fl({...e?.style,dimensions:{...e?.style?.dimensions,aspectRatio:void 0}})})),isDisabled:!m})),(0,Ke.createElement)(nt.BlockControls,{group:"other"},(0,Ke.createElement)(nt.MediaReplaceFlow,{mediaId:l,mediaURL:u,allowedTypes:Or,accept:"image/*,video/*",onSelect:n,onToggleFeaturedImage:o,useFeaturedImage:i,name:u?(0,tt.__)("Replace"):(0,tt.__)("Add Media")})))}function xl({disableMediaButtons:e=!1,children:t,onSelectMedia:n,onError:a,style:o,toggleUseFeaturedImage:r}){return(0,Ke.createElement)(nt.MediaPlaceholder,{icon:(0,Ke.createElement)(nt.BlockIcon,{icon:Hr}),labels:{title:(0,tt.__)("Cover"),instructions:(0,tt.__)("Drag and drop onto this block, upload, or select existing media from your library.")},onSelect:n,accept:"image/*,video/*",allowedTypes:Or,disableMediaButtons:e,onToggleFeaturedImage:r,onError:a,style:o},t)}const wl={top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},{ResizableBoxPopover:El}=Ht(nt.privateApis);function Cl({className:e,height:t,minHeight:n,onResize:a,onResizeStart:o,onResizeStop:r,showHandle:l,size:i,width:s,...c}){const[m,u]=(0,_t.useState)(!1),p={className:ut(e,{"is-resizing":m}),enable:wl,onResizeStart:(e,t,n)=>{o(n.clientHeight),a(n.clientHeight)},onResize:(e,t,n)=>{a(n.clientHeight),m||u(!0)},onResizeStop:(e,t,n)=>{r(n.clientHeight),u(!1)},showHandle:l,size:i,__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:"y",position:"bottom",isVisible:m}};return(0,Ke.createElement)(El,{className:"block-library-cover__resizable-box-popover",resizableBoxProps:p,...c})}var Sl={grad:.9,turn:360,rad:360/(2*Math.PI)},Bl=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},Nl=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},Tl=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},Il=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Pl=function(e){return{r:Tl(e.r,0,255),g:Tl(e.g,0,255),b:Tl(e.b,0,255),a:Tl(e.a)}},Ml=function(e){return{r:Nl(e.r),g:Nl(e.g),b:Nl(e.b),a:Nl(e.a,3)}},zl=/^#([0-9a-f]{3,8})$/i,Rl=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Al=function(e){var t=e.r,n=e.g,a=e.b,o=e.a,r=Math.max(t,n,a),l=r-Math.min(t,n,a),i=l?r===t?(n-a)/l:r===n?2+(a-t)/l:4+(t-n)/l:0;return{h:60*(i<0?i+6:i),s:r?l/r*100:0,v:r/255*100,a:o}},Ll=function(e){var t=e.h,n=e.s,a=e.v,o=e.a;t=t/360*6,n/=100,a/=100;var r=Math.floor(t),l=a*(1-n),i=a*(1-(t-r)*n),s=a*(1-(1-t+r)*n),c=r%6;return{r:255*[a,i,l,l,s,a][c],g:255*[s,a,a,i,l,l][c],b:255*[l,l,s,a,a,i][c],a:o}},Hl=function(e){return{h:Il(e.h),s:Tl(e.s,0,100),l:Tl(e.l,0,100),a:Tl(e.a)}},Dl=function(e){return{h:Nl(e.h),s:Nl(e.s),l:Nl(e.l),a:Nl(e.a,3)}},Fl=function(e){return Ll((n=(t=e).s,{h:t.h,s:(n*=((a=t.l)<50?a:100-a)/100)>0?2*n/(a+n)*100:0,v:a+n,a:t.a}));var t,n,a},Vl=function(e){return{h:(t=Al(e)).h,s:(o=(200-(n=t.s))*(a=t.v)/100)>0&&o<200?n*a/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,a,o},$l=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Gl=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ol=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ul=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ql={string:[[function(e){var t=zl.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?Nl(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?Nl(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=Ol.exec(e)||Ul.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Pl({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=$l.exec(e)||Gl.exec(e);if(!t)return null;var n,a,o=Hl({h:(n=t[1],a=t[2],void 0===a&&(a="deg"),Number(n)*(Sl[a]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return Fl(o)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,a=e.b,o=e.a,r=void 0===o?1:o;return Bl(t)&&Bl(n)&&Bl(a)?Pl({r:Number(t),g:Number(n),b:Number(a),a:Number(r)}):null},"rgb"],[function(e){var t=e.h,n=e.s,a=e.l,o=e.a,r=void 0===o?1:o;if(!Bl(t)||!Bl(n)||!Bl(a))return null;var l=Hl({h:Number(t),s:Number(n),l:Number(a),a:Number(r)});return Fl(l)},"hsl"],[function(e){var t=e.h,n=e.s,a=e.v,o=e.a,r=void 0===o?1:o;if(!Bl(t)||!Bl(n)||!Bl(a))return null;var l=function(e){return{h:Il(e.h),s:Tl(e.s,0,100),v:Tl(e.v,0,100),a:Tl(e.a)}}({h:Number(t),s:Number(n),v:Number(a),a:Number(r)});return Ll(l)},"hsv"]]},jl=function(e,t){for(var n=0;n<t.length;n++){var a=t[n][0](e);if(a)return[a,t[n][1]]}return[null,void 0]},Wl=function(e){return"string"==typeof e?jl(e.trim(),ql.string):"object"==typeof e&&null!==e?jl(e,ql.object):[null,void 0]},Zl=function(e,t){var n=Vl(e);return{h:n.h,s:Tl(n.s+100*t,0,100),l:n.l,a:n.a}},Ql=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},Kl=function(e,t){var n=Vl(e);return{h:n.h,s:n.s,l:Tl(n.l+100*t,0,100),a:n.a}},Yl=function(){function e(e){this.parsed=Wl(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return Nl(Ql(this.rgba),2)},e.prototype.isDark=function(){return Ql(this.rgba)<.5},e.prototype.isLight=function(){return Ql(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=Ml(this.rgba)).r,n=e.g,a=e.b,r=(o=e.a)<1?Rl(Nl(255*o)):"","#"+Rl(t)+Rl(n)+Rl(a)+r;var e,t,n,a,o,r},e.prototype.toRgb=function(){return Ml(this.rgba)},e.prototype.toRgbString=function(){return t=(e=Ml(this.rgba)).r,n=e.g,a=e.b,(o=e.a)<1?"rgba("+t+", "+n+", "+a+", "+o+")":"rgb("+t+", "+n+", "+a+")";var e,t,n,a,o},e.prototype.toHsl=function(){return Dl(Vl(this.rgba))},e.prototype.toHslString=function(){return t=(e=Dl(Vl(this.rgba))).h,n=e.s,a=e.l,(o=e.a)<1?"hsla("+t+", "+n+"%, "+a+"%, "+o+")":"hsl("+t+", "+n+"%, "+a+"%)";var e,t,n,a,o},e.prototype.toHsv=function(){return e=Al(this.rgba),{h:Nl(e.h),s:Nl(e.s),v:Nl(e.v),a:Nl(e.a,3)};var e},e.prototype.invert=function(){return Jl({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),Jl(Zl(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),Jl(Zl(this.rgba,-e))},e.prototype.grayscale=function(){return Jl(Zl(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),Jl(Kl(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),Jl(Kl(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?Jl({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):Nl(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=Vl(this.rgba);return"number"==typeof e?Jl({h:e,s:t.s,l:t.l,a:t.a}):Nl(t.h)},e.prototype.isEqual=function(e){return this.toHex()===Jl(e).toHex()},e}(),Jl=function(e){return e instanceof Yl?e:new Yl(e)},Xl=[];
|
||
/*! Fast Average Color | © 2022 Denis Seleznev | MIT License | https://github.com/fast-average-color/fast-average-color */
|
||
function ei(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function ti(e){return"#"+e.map(ei).join("")}function ni(e){return e?(t=e,Array.isArray(t[0])?e:[e]):[];var t}function ai(e,t,n){for(var a=0;a<n.length;a++)if(oi(e,t,n[a]))return!0;return!1}function oi(e,t,n){switch(n.length){case 3:if(function(e,t,n){if(255!==e[t+3])return!0;if(e[t]===n[0]&&e[t+1]===n[1]&&e[t+2]===n[2])return!0;return!1}(e,t,n))return!0;break;case 4:if(function(e,t,n){if(e[t+3]&&n[3])return e[t]===n[0]&&e[t+1]===n[1]&&e[t+2]===n[2]&&e[t+3]===n[3];return e[t+3]===n[3]}(e,t,n))return!0;break;case 5:if(function(e,t,n){var a=n[0],o=n[1],r=n[2],l=n[3],i=n[4],s=e[t+3],c=ri(s,l,i);if(!l)return c;if(!s&&c)return!0;if(ri(e[t],a,i)&&ri(e[t+1],o,i)&&ri(e[t+2],r,i)&&c)return!0;return!1}(e,t,n))return!0;break;default:return!1}}function ri(e,t,n){return e>=t-n&&e<=t+n}function li(e,t,n){for(var a={},o=n.ignoredColor,r=n.step,l=[0,0,0,0,0],i=0;i<t;i+=r){var s=e[i],c=e[i+1],m=e[i+2],u=e[i+3];if(!o||!ai(e,i,o)){var p=Math.round(s/24)+","+Math.round(c/24)+","+Math.round(m/24);a[p]?a[p]=[a[p][0]+s*u,a[p][1]+c*u,a[p][2]+m*u,a[p][3]+u,a[p][4]+1]:a[p]=[s*u,c*u,m*u,u,1],l[4]<a[p][4]&&(l=a[p])}}var d=l[0],g=l[1],h=l[2],b=l[3],_=l[4];return b?[Math.round(d/b),Math.round(g/b),Math.round(h/b),Math.round(b/_)]:n.defaultColor}function ii(e,t,n){for(var a=0,o=0,r=0,l=0,i=0,s=n.ignoredColor,c=n.step,m=0;m<t;m+=c){var u=e[m+3],p=e[m]*u,d=e[m+1]*u,g=e[m+2]*u;s&&ai(e,m,s)||(a+=p,o+=d,r+=g,l+=u,i++)}return l?[Math.round(a/l),Math.round(o/l),Math.round(r/l),Math.round(l/i)]:n.defaultColor}function si(e,t,n){for(var a=0,o=0,r=0,l=0,i=0,s=n.ignoredColor,c=n.step,m=0;m<t;m+=c){var u=e[m],p=e[m+1],d=e[m+2],g=e[m+3];s&&ai(e,m,s)||(a+=u*u*g,o+=p*p*g,r+=d*d*g,l+=g,i++)}return l?[Math.round(Math.sqrt(a/l)),Math.round(Math.sqrt(o/l)),Math.round(Math.sqrt(r/l)),Math.round(l/i)]:n.defaultColor}function ci(e){return mi(e,"defaultColor",[0,0,0,0])}function mi(e,t,n){return void 0===e[t]?n:e[t]}function ui(e){if(di(e)){var t=e.naturalWidth,n=e.naturalHeight;return e.naturalWidth||-1===e.src.search(/\.svg(\?|$)/i)||(t=n=100),{width:t,height:n}}return function(e){return"undefined"!=typeof HTMLVideoElement&&e instanceof HTMLVideoElement}(e)?{width:e.videoWidth,height:e.videoHeight}:{width:e.width,height:e.height}}function pi(e){return function(e){return"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement}(e)?"canvas":function(e){return gi&&e instanceof OffscreenCanvas}(e)?"offscreencanvas":function(e){return"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap}(e)?"imagebitmap":e.src}function di(e){return"undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement}var gi="undefined"!=typeof OffscreenCanvas;var hi="undefined"==typeof window;function bi(e){return Error("FastAverageColor: "+e)}function _i(e,t){t||console.error(e)}var yi=function(){function e(){this.canvas=null,this.ctx=null}return e.prototype.getColorAsync=function(e,t){if(!e)return Promise.reject(bi("call .getColorAsync() without resource."));if("string"==typeof e){if("undefined"==typeof Image)return Promise.reject(bi("resource as string is not supported in this environment"));var n=new Image;return n.crossOrigin=t&&t.crossOrigin||"",n.src=e,this.bindImageEvents(n,t)}if(di(e)&&!e.complete)return this.bindImageEvents(e,t);var a=this.getColor(e,t);return a.error?Promise.reject(a.error):Promise.resolve(a)},e.prototype.getColor=function(e,t){var n=ci(t=t||{});if(!e)return _i(r=bi("call .getColor(null) without resource"),t.silent),this.prepareResult(n,r);var a=function(e,t){var n,a=mi(t,"left",0),o=mi(t,"top",0),r=mi(t,"width",e.width),l=mi(t,"height",e.height),i=r,s=l;return"precision"===t.mode||(r>l?(n=r/l,i=100,s=Math.round(i/n)):(n=l/r,s=100,i=Math.round(s/n)),(i>r||s>l||i<10||s<10)&&(i=r,s=l)),{srcLeft:a,srcTop:o,srcWidth:r,srcHeight:l,destWidth:i,destHeight:s}}(ui(e),t);if(!(a.srcWidth&&a.srcHeight&&a.destWidth&&a.destHeight))return _i(r=bi('incorrect sizes for resource "'.concat(pi(e),'"')),t.silent),this.prepareResult(n,r);if(!this.canvas&&(this.canvas=hi?gi?new OffscreenCanvas(1,1):null:document.createElement("canvas"),!this.canvas))return _i(r=bi("OffscreenCanvas is not supported in this browser"),t.silent),this.prepareResult(n,r);if(!this.ctx){if(this.ctx=this.canvas.getContext("2d",{willReadFrequently:!0}),!this.ctx)return _i(r=bi("Canvas Context 2D is not supported in this browser"),t.silent),this.prepareResult(n);this.ctx.imageSmoothingEnabled=!1}this.canvas.width=a.destWidth,this.canvas.height=a.destHeight;try{this.ctx.clearRect(0,0,a.destWidth,a.destHeight),this.ctx.drawImage(e,a.srcLeft,a.srcTop,a.srcWidth,a.srcHeight,0,0,a.destWidth,a.destHeight);var o=this.ctx.getImageData(0,0,a.destWidth,a.destHeight).data;return this.prepareResult(this.getColorFromArray4(o,t))}catch(a){var r;return _i(r=bi("security error (CORS) for resource ".concat(pi(e),".\nDetails: https://developer.mozilla.org/en/docs/Web/HTML/CORS_enabled_image")),t.silent),!t.silent&&console.error(a),this.prepareResult(n,r)}},e.prototype.getColorFromArray4=function(e,t){t=t||{};var n=e.length,a=ci(t);if(n<4)return a;var o,r=n-n%4,l=4*(t.step||1);switch(t.algorithm||"sqrt"){case"simple":o=ii;break;case"sqrt":o=si;break;case"dominant":o=li;break;default:throw bi("".concat(t.algorithm," is unknown algorithm"))}return o(e,r,{defaultColor:a,ignoredColor:ni(t.ignoredColor),step:l})},e.prototype.prepareResult=function(e,t){var n,a=e.slice(0,3),o=[e[0],e[1],e[2],e[3]/255],r=(299*(n=e)[0]+587*n[1]+114*n[2])/1e3<128;return{value:[e[0],e[1],e[2],e[3]],rgb:"rgb("+a.join(",")+")",rgba:"rgba("+o.join(",")+")",hex:ti(a),hexa:ti(e),isDark:r,isLight:!r,error:t}},e.prototype.destroy=function(){this.canvas&&(this.canvas.width=1,this.canvas.height=1,this.canvas=null),this.ctx=null},e.prototype.bindImageEvents=function(e,t){var n=this;return new Promise((function(a,o){var r=function(){s();var r=n.getColor(e,t);r.error?o(r.error):a(r)},l=function(){s(),o(bi('Error loading image "'.concat(e.src,'".')))},i=function(){s(),o(bi('Image "'.concat(e.src,'" loading aborted')))},s=function(){e.removeEventListener("load",r),e.removeEventListener("error",l),e.removeEventListener("abort",i)};e.addEventListener("load",r),e.addEventListener("error",l),e.addEventListener("abort",i)}))},e}();const vi=window.wp.hooks;!function(e){e.forEach((function(e){Xl.indexOf(e)<0&&(e(Yl,ql),Xl.push(e))}))}([function(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},a={};for(var o in n)a[n[o]]=o;var r={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var o,l,i=a[this.toHex()];if(i)return i;if(null==t?void 0:t.closest){var s=this.toRgb(),c=1/0,m="black";if(!r.length)for(var u in n)r[u]=new e(n[u]).toRgb();for(var p in n){var d=(o=s,l=r[p],Math.pow(o.r-l.r,2)+Math.pow(o.g-l.g,2)+Math.pow(o.b-l.b,2));d<c&&(c=d,m=p)}return m}},t.string.push([function(t){var a=t.toLowerCase(),o="transparent"===a?"#0000":n[a];return o?new e(o).toRgb():null},"name"])}]);const fi="#FFF";function ki(){return ki.fastAverageColor||(ki.fastAverageColor=new yi),ki.fastAverageColor}const xi=Mt((async e=>{if(!e)return fi;const{r:t,g:n,b:a,a:o}=Jl(fi).toRgb();try{const r=(0,vi.applyFilters)("media.crossOrigin",void 0,e);return(await ki().getColorAsync(e,{defaultColor:[t,n,a,255*o],silent:!0,crossOrigin:r})).hex}catch(e){return fi}}));function wi(e,t,n){if(t===n||100===e)return Jl(t).isDark();const a=Jl(t).alpha(e/100).toRgb(),o=Jl(n).toRgb(),r=(i=o,{r:(l=a).r*l.a+i.r*i.a*(1-l.a),g:l.g*l.a+i.g*i.a*(1-l.a),b:l.b*l.a+i.b*i.a*(1-l.a),a:l.a+i.a*(1-l.a)});var l,i;return Jl(r).isDark()}const Ei=(0,jt.compose)([(0,nt.withColors)({overlayColor:"background-color"})])((function({attributes:e,clientId:t,isSelected:n,overlayColor:a,setAttributes:o,setOverlayColor:r,toggleSelection:l,context:{postId:i,postType:s}}){const{contentPosition:c,id:m,url:u,backgroundType:p,useFeaturedImage:d,dimRatio:g,focalPoint:h,hasParallax:b,isDark:_,isRepeated:y,minHeight:v,minHeightUnit:f,alt:k,allowedBlocks:x,templateLock:w,tagName:E="div",isUserOverlayColor:C}=e,[S]=(0,dt.useEntityProp)("postType",s,"featured_media",i),{__unstableMarkNextChangeAsNotPersistent:B}=(0,gt.useDispatch)(nt.store),N=(0,gt.useSelect)((e=>S&&e(dt.store).getMedia(S,{context:"view"})),[S]),T=N?.source_url;(0,_t.useEffect)((()=>{(async()=>{if(!d)return;const e=await xi(T);let t=a.color;C||(t=e,B(),r(t));const n=wi(g,t,e);B(),o({isDark:n})})()}),[T]);const I=d?T:u?.replaceAll("&","&"),P=d?Fr:p,{createErrorNotice:M}=(0,gt.useDispatch)(Pt.store),{gradientClass:z,gradientValue:R}=(0,nt.__experimentalUseGradient)(),A=async e=>{const t=function(e){if(!e||!e.url)return{url:void 0,id:void 0};let t;if((0,It.isBlobURL)(e.url)&&(e.type=(0,It.getBlobTypeByURL)(e.url)),e.media_type)t=e.media_type===Fr?Fr:Vr;else{if(e.type!==Fr&&e.type!==Vr)return;t=e.type}return{url:e.url,id:e.id,alt:e?.alt,backgroundType:t,...t===Vr?{hasParallax:void 0}:{}}}(e),n=[e?.type,e?.media_type].includes(Fr),l=await xi(n?e?.url:void 0);let i=a.color;C||(i=l,r(i),B());const s=void 0===u&&100===g?50:g,c=wi(s,i,l);o({...t,focalPoint:void 0,useFeaturedImage:void 0,dimRatio:s,isDark:c})},L=async e=>{const t=await xi(I),n=wi(g,e,t);r(e),B(),o({isUserOverlayColor:!0,isDark:n})},H=e=>{M(e,{type:"snackbar"})},D=((e,t)=>!e&&(0,It.isBlobURL)(t))(m,I),F=Fr===P,V=Vr===P,[$,{height:G,width:O}]=(0,jt.useResizeObserver)(),U=(0,_t.useMemo)((()=>({height:"px"===f?v:"auto",width:"auto"})),[v,f]),q=v&&f?`${v}${f}`:v,j=!(b||y),W={minHeight:q||void 0},Z=I?`url(${I})`:void 0,Q=Ur(h),K={backgroundColor:a.color},Y={objectPosition:h&&j?Ur(h):void 0},J=!!(I||a.color||R),X=(0,gt.useSelect)((e=>e(nt.store).getBlock(t).innerBlocks.length>0),[t]),ee=(0,_t.useRef)(),te=(0,nt.useBlockProps)({ref:ee}),[ne]=(0,nt.useSettings)("typography.fontSizes"),ae=function(e){return[["core/paragraph",{align:"center",placeholder:(0,tt.__)("Write title…"),...e}]]}({fontSize:ne?.length>0?"large":void 0}),oe=(0,nt.useInnerBlocksProps)({className:"wp-block-cover__inner-container"},{template:X?void 0:ae,templateInsertUpdatesSelection:!0,allowedBlocks:x,templateLock:w,dropZoneElement:ee.current}),re=(0,_t.useRef)(),le={isVideoBackground:V,isImageBackground:F,mediaElement:re,hasInnerBlocks:X,url:I,isImgElement:j,overlayColor:a},ie=async()=>{const e=!d,t=e?await xi(T):fi,n=C?a.color:t;C||(r(e?n:void 0),B());const l=100===g?50:g,i=wi(l,n,t);o({id:void 0,url:void 0,useFeaturedImage:e,dimRatio:l,backgroundType:d?Fr:void 0,isDark:i})},se=(0,Ke.createElement)(kl,{attributes:e,setAttributes:o,onSelectMedia:A,currentSettings:le,toggleUseFeaturedImage:ie}),ce=(0,Ke.createElement)(vl,{attributes:e,setAttributes:o,clientId:t,setOverlayColor:L,coverRef:ee,currentSettings:le,toggleUseFeaturedImage:ie,updateDimRatio:async e=>{const t=await xi(I),n=wi(e,a.color,t);o({dimRatio:e,isDark:n})},onClearMedia:()=>{let e=a.color;C||(e="#000",r(void 0),B());const t=wi(g,e,fi);o({url:void 0,id:void 0,backgroundType:void 0,focalPoint:void 0,hasParallax:void 0,isRepeated:void 0,useFeaturedImage:void 0,isDark:t})}}),me={className:"block-library-cover__resize-container",clientId:t,height:G,minHeight:q,onResizeStart:()=>{o({minHeightUnit:"px"}),l(!1)},onResize:e=>{o({minHeight:e})},onResizeStop:e=>{l(!0),o({minHeight:e})},showHandle:!e.style?.dimensions?.aspectRatio,size:U,width:O};if(!d&&!X&&!J)return(0,Ke.createElement)(Ke.Fragment,null,se,ce,n&&(0,Ke.createElement)(Cl,{...me}),(0,Ke.createElement)(E,{...te,className:ut("is-placeholder",te.className),style:{...te.style,minHeight:q||void 0}},$,(0,Ke.createElement)(xl,{onSelectMedia:A,onError:H,toggleUseFeaturedImage:ie},(0,Ke.createElement)("div",{className:"wp-block-cover__placeholder-background-options"},(0,Ke.createElement)(nt.ColorPalette,{disableCustomColors:!0,value:a.color,onChange:L,clearable:!1})))));const ue=ut({"is-dark-theme":_,"is-light":!_,"is-transient":D,"has-parallax":b,"is-repeated":y,"has-custom-content-position":!jr(c)},Wr(c)),pe=I||!d||d&&!I;return(0,Ke.createElement)(Ke.Fragment,null,se,ce,(0,Ke.createElement)(E,{...te,className:ut(ue,te.className),style:{...W,...te.style},"data-url":I},$,pe&&(0,Ke.createElement)("span",{"aria-hidden":"true",className:ut("wp-block-cover__background",qr(g),{[a.class]:a.class,"has-background-dim":void 0!==g,"wp-block-cover__gradient-background":I&&R&&0!==g,"has-background-gradient":R,[z]:z}),style:{backgroundImage:R,...K}}),!I&&d&&(0,Ke.createElement)(et.Placeholder,{className:"wp-block-cover__image--placeholder-image",withIllustration:!0}),I&&F&&(j?(0,Ke.createElement)("img",{ref:re,className:"wp-block-cover__image-background",alt:k,src:I,style:Y}):(0,Ke.createElement)("div",{ref:re,role:k?"img":void 0,"aria-label":k||void 0,className:ut(ue,"wp-block-cover__image-background"),style:{backgroundImage:Z,backgroundPosition:Q}})),I&&V&&(0,Ke.createElement)("video",{ref:re,className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:I,style:Y}),D&&(0,Ke.createElement)(et.Spinner,null),(0,Ke.createElement)(xl,{disableMediaButtons:!0,onSelectMedia:A,onError:H,toggleUseFeaturedImage:ie}),(0,Ke.createElement)("div",{...oe})),n&&(0,Ke.createElement)(Cl,{...me}))}));const{cleanEmptyObject:Ci}=Ht(nt.privateApis),Si={from:[{type:"block",blocks:["core/image"],transform:({caption:e,url:t,alt:n,align:a,id:o,anchor:r,style:l})=>(0,Qe.createBlock)("core/cover",{dimRatio:50,url:t,alt:n,align:a,id:o,anchor:r,style:{color:{duotone:l?.color?.duotone}}},[(0,Qe.createBlock)("core/paragraph",{content:e,fontSize:"large",align:"center"})])},{type:"block",blocks:["core/video"],transform:({caption:e,src:t,align:n,id:a,anchor:o})=>(0,Qe.createBlock)("core/cover",{dimRatio:50,url:t,align:n,id:a,backgroundType:Vr,anchor:o},[(0,Qe.createBlock)("core/paragraph",{content:e,fontSize:"large",align:"center"})])},{type:"block",blocks:["core/group"],transform:(e,t)=>{const{align:n,anchor:a,backgroundColor:o,gradient:r,style:l}=e;if(1===t?.length&&"core/cover"===t[0]?.name)return(0,Qe.createBlock)("core/cover",t[0].attributes,t[0].innerBlocks);const i={align:n,anchor:a,dimRatio:o||r||l?.color?.background||l?.color?.gradient?void 0:50,overlayColor:o,customOverlayColor:l?.color?.background,gradient:r,customGradient:l?.color?.gradient},s={...e,backgroundColor:void 0,gradient:void 0,style:Ci({...e?.style,color:l?.color?{...l?.color,background:void 0,gradient:void 0}:void 0})};return(0,Qe.createBlock)("core/cover",i,[(0,Qe.createBlock)("core/group",s,t)])}}],to:[{type:"block",blocks:["core/image"],isMatch:({backgroundType:e,url:t,overlayColor:n,customOverlayColor:a,gradient:o,customGradient:r})=>t?e===Fr:!(n||a||o||r),transform:({title:e,url:t,alt:n,align:a,id:o,anchor:r,style:l})=>(0,Qe.createBlock)("core/image",{caption:e,url:t,alt:n,align:a,id:o,anchor:r,style:{color:{duotone:l?.color?.duotone}}})},{type:"block",blocks:["core/video"],isMatch:({backgroundType:e,url:t,overlayColor:n,customOverlayColor:a,gradient:o,customGradient:r})=>t?e===Vr:!(n||a||o||r),transform:({title:e,url:t,align:n,id:a,anchor:o})=>(0,Qe.createBlock)("core/video",{caption:e,src:t,id:a,align:n,anchor:o})},{type:"block",blocks:["core/group"],isMatch:({url:e,useFeaturedImage:t})=>!e&&!t,transform:(e,t)=>{const n={backgroundColor:e?.overlayColor,gradient:e?.gradient,style:Ci({...e?.style,color:e?.customOverlayColor||e?.customGradient||e?.style?.color?{background:e?.customOverlayColor,gradient:e?.customGradient,...e?.style?.color}:void 0})};if(1===t?.length&&"core/group"===t[0]?.name){const e=Ci(t[0].attributes||{});return e?.backgroundColor||e?.gradient||e?.style?.color?.background||e?.style?.color?.gradient?(0,Qe.createBlock)("core/group",e,t[0]?.innerBlocks):(0,Qe.createBlock)("core/group",{...n,...e,style:Ci({...e?.style,color:n?.style?.color||e?.style?.color?{...n?.style?.color,...e?.style?.color}:void 0})},t[0]?.innerBlocks)}return(0,Qe.createBlock)("core/group",{...e,...n},t)}}]},Bi=Si,Ni=[{name:"cover",title:(0,tt.__)("Cover"),description:(0,tt.__)("Add an image or video with a text overlay."),attributes:{layout:{type:"constrained"}},isDefault:!0,icon:Hr}],Ti={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/cover",title:"Cover",category:"media",description:"Add an image or video with a text overlay.",textdomain:"default",attributes:{url:{type:"string"},useFeaturedImage:{type:"boolean",default:!1},id:{type:"number"},alt:{type:"string",default:""},hasParallax:{type:"boolean",default:!1},isRepeated:{type:"boolean",default:!1},dimRatio:{type:"number",default:100},overlayColor:{type:"string"},customOverlayColor:{type:"string"},isUserOverlayColor:{type:"boolean"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"},isDark:{type:"boolean",default:!0},allowedBlocks:{type:"array"},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]},tagName:{type:"string",default:"div"}},usesContext:["postId","postType"],supports:{anchor:!0,align:!0,html:!1,spacing:{padding:!0,margin:["top","bottom"],blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},color:{__experimentalDuotone:"> .wp-block-cover__image-background, > .wp-block-cover__video-background",heading:!0,text:!0,background:!1,__experimentalSkipSerialization:["gradients"],enableContrastChecker:!1},dimensions:{aspectRatio:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowJustification:!1},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-cover-editor",style:"wp-block-cover"},{name:Ii}=Ti,Pi={icon:Hr,example:{attributes:{customOverlayColor:"#065174",dimRatio:40,url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,tt.__)("<strong>Snow Patrol</strong>"),align:"center",style:{typography:{fontSize:48},color:{text:"white"}}}}]},transforms:Bi,save:function({attributes:e}){const{backgroundType:t,gradient:n,contentPosition:a,customGradient:o,customOverlayColor:r,dimRatio:l,focalPoint:i,useFeaturedImage:s,hasParallax:c,isDark:m,isRepeated:u,overlayColor:p,url:d,alt:g,id:h,minHeight:b,minHeightUnit:_,tagName:y}=e,v=(0,nt.getColorClassName)("background-color",p),f=(0,nt.__experimentalGetGradientClass)(n),k=Fr===t,x=Vr===t,w=!(c||u),E={minHeight:(b&&_?`${b}${_}`:b)||void 0},C={backgroundColor:v?void 0:r,background:o||void 0},S=i&&w?Ur(i):void 0,B=d?`url(${d})`:void 0,N=Ur(i),T=ut({"is-light":!m,"has-parallax":c,"is-repeated":u,"has-custom-content-position":!jr(a)},Wr(a)),I=ut("wp-block-cover__image-background",h?`wp-image-${h}`:null,{"has-parallax":c,"is-repeated":u}),P=n||o;return(0,Ke.createElement)(y,{...nt.useBlockProps.save({className:T,style:E})},(0,Ke.createElement)("span",{"aria-hidden":"true",className:ut("wp-block-cover__background",v,qr(l),{"has-background-dim":void 0!==l,"wp-block-cover__gradient-background":d&&P&&0!==l,"has-background-gradient":P,[f]:f}),style:C}),!s&&k&&d&&(w?(0,Ke.createElement)("img",{className:I,alt:g,src:d,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}):(0,Ke.createElement)("div",{role:g?"img":void 0,"aria-label":g||void 0,className:I,style:{backgroundPosition:N,backgroundImage:B}})),x&&d&&(0,Ke.createElement)("video",{className:ut("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}),(0,Ke.createElement)("div",{...nt.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})}))},edit:Ei,deprecated:bl,variations:Ni},Mi=()=>Xe({name:Ii,metadata:Ti,settings:Pi}),zi=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M4 16h10v1.5H4V16Zm0-4.5h16V13H4v-1.5ZM10 7h10v1.5H10V7Z",fillRule:"evenodd",clipRule:"evenodd"}),(0,Ke.createElement)(Ye.Path,{d:"m4 5.25 4 2.5-4 2.5v-5Z"})),Ri=[["core/paragraph",{placeholder:(0,tt.__)("Type / to add a hidden block")}]];const Ai=function({attributes:e,setAttributes:t,clientId:n}){const{showContent:a,summary:o}=e,r=(0,nt.useBlockProps)(),l=(0,nt.useInnerBlocksProps)(r,{template:Ri,__experimentalCaptureToolbars:!0}),i=(0,gt.useSelect)((e=>{const{isBlockSelected:t,hasSelectedInnerBlock:a}=e(nt.store);return a(n,!0)||t(n)}),[n]);return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.ToggleControl,{label:(0,tt.__)("Open by default"),checked:a,onChange:()=>t({showContent:!a})}))),(0,Ke.createElement)("details",{...l,open:i||a},(0,Ke.createElement)("summary",{onClick:e=>e.preventDefault()},(0,Ke.createElement)(nt.RichText,{identifier:"summary","aria-label":(0,tt.__)("Write summary"),placeholder:(0,tt.__)("Write summary…"),allowedFormats:[],withoutInteractiveFormatting:!0,value:o,onChange:e=>t({summary:e})})),l.children))};const Li={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/details",title:"Details",category:"text",description:"Hide and show additional content.",keywords:["accordion","summary","toggle","disclosure"],textdomain:"default",attributes:{showContent:{type:"boolean",default:!1},summary:{type:"rich-text",source:"rich-text",selector:"summary"}},supports:{__experimentalOnEnter:!0,align:["wide","full"],color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},__experimentalBorder:{color:!0,width:!0,style:!0},html:!1,spacing:{margin:!0,padding:!0,blockGap:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowEditing:!1},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-details-editor",style:"wp-block-details"},{name:Hi}=Li,Di={icon:zi,example:{attributes:{summary:"La Mancha",showContent:!0},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,tt.__)("In a village of La Mancha, the name of which I have no desire to call to mind, there lived not long since one of those gentlemen that keep a lance in the lance-rack, an old buckler, a lean hack, and a greyhound for coursing.")}}]},save:function({attributes:e}){const{showContent:t}=e,n=e.summary?e.summary:"Details",a=nt.useBlockProps.save();return(0,Ke.createElement)("details",{...a,open:t},(0,Ke.createElement)("summary",null,(0,Ke.createElement)(nt.RichText.Content,{value:n})),(0,Ke.createElement)(nt.InnerBlocks.Content,null))},edit:Ai},Fi=()=>Xe({name:Hi,metadata:Li,settings:Di}),Vi=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"}));function $i(e){return e?(0,tt.__)("This embed will preserve its aspect ratio when the browser is resized."):(0,tt.__)("This embed may not preserve its aspect ratio when the browser is resized.")}const Gi=({blockSupportsResponsive:e,showEditButton:t,themeSupportsResponsive:n,allowResponsive:a,toggleResponsive:o,switchBackToURLInput:r})=>(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,null,(0,Ke.createElement)(et.ToolbarGroup,null,t&&(0,Ke.createElement)(et.ToolbarButton,{className:"components-toolbar__control",label:(0,tt.__)("Edit URL"),icon:Vi,onClick:r}))),n&&e&&(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Media settings"),className:"blocks-responsive"},(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Resize for smaller devices"),checked:a,help:$i,onChange:o})))),Oi=(0,Ke.createElement)(et.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(et.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zm-6-9.5L16 12l-2.5 2.8 1.1 1L18 12l-3.5-3.5-1 1zm-3 0l-1-1L6 12l3.5 3.8 1.1-1L8 12l2.5-2.5z"})),Ui=(0,Ke.createElement)(et.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(et.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM13.2 7.7c-.4.4-.7 1.1-.7 1.9v3.7c-.4-.3-.8-.4-1.3-.4-1.2 0-2.2 1-2.2 2.2 0 1.2 1 2.2 2.2 2.2.5 0 1-.2 1.4-.5.9-.6 1.4-1.6 1.4-2.6V9.6c0-.4.1-.6.2-.8.3-.3 1-.3 1.6-.3h.2V7h-.2c-.7 0-1.8 0-2.6.7z"})),qi=(0,Ke.createElement)(et.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(et.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9.2 4.5H19c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V9.8l4.6-5.3zm9.8 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})),ji=(0,Ke.createElement)(et.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(et.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM10 15l5-3-5-3v6z"})),Wi={foreground:"#1da1f2",src:(0,Ke.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(et.G,null,(0,Ke.createElement)(et.Path,{d:"M22.23 5.924c-.736.326-1.527.547-2.357.646.847-.508 1.498-1.312 1.804-2.27-.793.47-1.67.812-2.606.996C18.325 4.498 17.258 4 16.078 4c-2.266 0-4.103 1.837-4.103 4.103 0 .322.036.635.106.935-3.41-.17-6.433-1.804-8.457-4.287-.353.607-.556 1.312-.556 2.064 0 1.424.724 2.68 1.825 3.415-.673-.022-1.305-.207-1.86-.514v.052c0 1.988 1.415 3.647 3.293 4.023-.344.095-.707.145-1.08.145-.265 0-.522-.026-.773-.074.522 1.63 2.038 2.817 3.833 2.85-1.404 1.1-3.174 1.757-5.096 1.757-.332 0-.66-.02-.98-.057 1.816 1.164 3.973 1.843 6.29 1.843 7.547 0 11.675-6.252 11.675-11.675 0-.178-.004-.355-.012-.53.802-.578 1.497-1.3 2.047-2.124z"})))},Zi={foreground:"#ff0000",src:(0,Ke.createElement)(et.SVG,{viewBox:"0 0 24 24"},(0,Ke.createElement)(et.Path,{d:"M21.8 8s-.195-1.377-.795-1.984c-.76-.797-1.613-.8-2.004-.847-2.798-.203-6.996-.203-6.996-.203h-.01s-4.197 0-6.996.202c-.39.046-1.242.05-2.003.846C2.395 6.623 2.2 8 2.2 8S2 9.62 2 11.24v1.517c0 1.618.2 3.237.2 3.237s.195 1.378.795 1.985c.76.797 1.76.77 2.205.855 1.6.153 6.8.2 6.8.2s4.203-.005 7-.208c.392-.047 1.244-.05 2.005-.847.6-.607.795-1.985.795-1.985s.2-1.618.2-3.237v-1.517C22 9.62 21.8 8 21.8 8zM9.935 14.595v-5.62l5.403 2.82-5.403 2.8z"}))},Qi={foreground:"#3b5998",src:(0,Ke.createElement)(et.SVG,{viewBox:"0 0 24 24"},(0,Ke.createElement)(et.Path,{d:"M20 3H4c-.6 0-1 .4-1 1v16c0 .5.4 1 1 1h8.6v-7h-2.3v-2.7h2.3v-2c0-2.3 1.4-3.6 3.5-3.6 1 0 1.8.1 2.1.1v2.4h-1.4c-1.1 0-1.3.5-1.3 1.3v1.7h2.7l-.4 2.8h-2.3v7H20c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1z"}))},Ki=(0,Ke.createElement)(et.SVG,{viewBox:"0 0 24 24"},(0,Ke.createElement)(et.G,null,(0,Ke.createElement)(et.Path,{d:"M12 4.622c2.403 0 2.688.01 3.637.052.877.04 1.354.187 1.67.31.42.163.72.358 1.036.673.315.315.51.615.673 1.035.123.317.27.794.31 1.67.043.95.052 1.235.052 3.638s-.01 2.688-.052 3.637c-.04.877-.187 1.354-.31 1.67-.163.42-.358.72-.673 1.036-.315.315-.615.51-1.035.673-.317.123-.794.27-1.67.31-.95.043-1.234.052-3.638.052s-2.688-.01-3.637-.052c-.877-.04-1.354-.187-1.67-.31-.42-.163-.72-.358-1.036-.673-.315-.315-.51-.615-.673-1.035-.123-.317-.27-.794-.31-1.67-.043-.95-.052-1.235-.052-3.638s.01-2.688.052-3.637c.04-.877.187-1.354.31-1.67.163-.42.358-.72.673-1.036.315-.315.615-.51 1.035-.673.317-.123.794-.27 1.67-.31.95-.043 1.235-.052 3.638-.052M12 3c-2.444 0-2.75.01-3.71.054s-1.613.196-2.185.418c-.592.23-1.094.538-1.594 1.04-.5.5-.807 1-1.037 1.593-.223.572-.375 1.226-.42 2.184C3.01 9.25 3 9.555 3 12s.01 2.75.054 3.71.196 1.613.418 2.186c.23.592.538 1.094 1.038 1.594s1.002.808 1.594 1.038c.572.222 1.227.375 2.185.418.96.044 1.266.054 3.71.054s2.75-.01 3.71-.054 1.613-.196 2.186-.418c.592-.23 1.094-.538 1.594-1.038s.808-1.002 1.038-1.594c.222-.572.375-1.227.418-2.185.044-.96.054-1.266.054-3.71s-.01-2.75-.054-3.71-.196-1.613-.418-2.186c-.23-.592-.538-1.094-1.038-1.594s-1.002-.808-1.594-1.038c-.572-.222-1.227-.375-2.185-.418C14.75 3.01 14.445 3 12 3zm0 4.378c-2.552 0-4.622 2.07-4.622 4.622s2.07 4.622 4.622 4.622 4.622-2.07 4.622-4.622S14.552 7.378 12 7.378zM12 15c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3zm4.804-8.884c-.596 0-1.08.484-1.08 1.08s.484 1.08 1.08 1.08c.596 0 1.08-.484 1.08-1.08s-.483-1.08-1.08-1.08z"}))),Yi={foreground:"#0073AA",src:(0,Ke.createElement)(et.SVG,{viewBox:"0 0 24 24"},(0,Ke.createElement)(et.G,null,(0,Ke.createElement)(et.Path,{d:"M12.158 12.786l-2.698 7.84c.806.236 1.657.365 2.54.365 1.047 0 2.05-.18 2.986-.51-.024-.037-.046-.078-.065-.123l-2.762-7.57zM3.008 12c0 3.56 2.07 6.634 5.068 8.092L3.788 8.342c-.5 1.117-.78 2.354-.78 3.658zm15.06-.454c0-1.112-.398-1.88-.74-2.48-.456-.74-.883-1.368-.883-2.11 0-.825.627-1.595 1.51-1.595.04 0 .078.006.116.008-1.598-1.464-3.73-2.36-6.07-2.36-3.14 0-5.904 1.613-7.512 4.053.21.008.41.012.58.012.94 0 2.395-.114 2.395-.114.484-.028.54.684.057.74 0 0-.487.058-1.03.086l3.275 9.74 1.968-5.902-1.4-3.838c-.485-.028-.944-.085-.944-.085-.486-.03-.43-.77.056-.742 0 0 1.484.114 2.368.114.94 0 2.397-.114 2.397-.114.486-.028.543.684.058.74 0 0-.488.058-1.03.086l3.25 9.665.897-2.997c.456-1.17.684-2.137.684-2.907zm1.82-3.86c.04.286.06.593.06.924 0 .912-.17 1.938-.683 3.22l-2.746 7.94c2.672-1.558 4.47-4.454 4.47-7.77 0-1.564-.4-3.033-1.1-4.314zM12 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10z"})))},Ji={foreground:"#1db954",src:(0,Ke.createElement)(et.SVG,{viewBox:"0 0 24 24"},(0,Ke.createElement)(et.Path,{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m4.586 14.424c-.18.295-.563.387-.857.207-2.35-1.434-5.305-1.76-8.786-.963-.335.077-.67-.133-.746-.47-.077-.334.132-.67.47-.745 3.808-.87 7.076-.496 9.712 1.115.293.18.386.563.206.857M17.81 13.7c-.226.367-.706.482-1.072.257-2.687-1.652-6.785-2.13-9.965-1.166-.413.127-.848-.106-.973-.517-.125-.413.108-.848.52-.973 3.632-1.102 8.147-.568 11.234 1.328.366.226.48.707.256 1.072m.105-2.835C14.692 8.95 9.375 8.775 6.297 9.71c-.493.15-1.016-.13-1.166-.624-.148-.495.13-1.017.625-1.167 3.532-1.073 9.404-.866 13.115 1.337.445.264.59.838.327 1.282-.264.443-.838.59-1.282.325"}))},Xi=(0,Ke.createElement)(et.SVG,{viewBox:"0 0 24 24"},(0,Ke.createElement)(et.Path,{d:"m6.5 7c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5zm11 0c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5z"})),es={foreground:"#1ab7ea",src:(0,Ke.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(et.G,null,(0,Ke.createElement)(et.Path,{d:"M22.396 7.164c-.093 2.026-1.507 4.8-4.245 8.32C15.323 19.16 12.93 21 10.97 21c-1.214 0-2.24-1.12-3.08-3.36-.56-2.052-1.118-4.105-1.68-6.158-.622-2.24-1.29-3.36-2.004-3.36-.156 0-.7.328-1.634.98l-.978-1.26c1.027-.903 2.04-1.806 3.037-2.71C6 3.95 7.03 3.328 7.716 3.265c1.62-.156 2.616.95 2.99 3.32.404 2.558.685 4.148.84 4.77.468 2.12.982 3.18 1.543 3.18.435 0 1.09-.687 1.963-2.064.872-1.376 1.34-2.422 1.402-3.142.125-1.187-.343-1.782-1.4-1.782-.5 0-1.013.115-1.542.34 1.023-3.35 2.977-4.976 5.862-4.883 2.14.063 3.148 1.45 3.024 4.16z"})))},ts=(0,Ke.createElement)(et.SVG,{viewBox:"0 0 24 24"},(0,Ke.createElement)(et.Path,{d:"M22 12.068a2.184 2.184 0 0 0-2.186-2.186c-.592 0-1.13.233-1.524.609-1.505-1.075-3.566-1.774-5.86-1.864l1.004-4.695 3.261.699A1.56 1.56 0 1 0 18.255 3c-.61-.001-1.147.357-1.398.877l-3.638-.77a.382.382 0 0 0-.287.053.348.348 0 0 0-.161.251l-1.112 5.233c-2.33.072-4.426.77-5.95 1.864a2.201 2.201 0 0 0-1.523-.61 2.184 2.184 0 0 0-.896 4.176c-.036.215-.053.43-.053.663 0 3.37 3.924 6.111 8.763 6.111s8.763-2.724 8.763-6.11c0-.216-.017-.449-.053-.664A2.207 2.207 0 0 0 22 12.068Zm-15.018 1.56a1.56 1.56 0 0 1 3.118 0c0 .86-.699 1.558-1.559 1.558-.86.018-1.559-.699-1.559-1.559Zm8.728 4.139c-1.076 1.075-3.119 1.147-3.71 1.147-.61 0-2.652-.09-3.71-1.147a.4.4 0 0 1 0-.573.4.4 0 0 1 .574 0c.68.68 2.114.914 3.136.914 1.022 0 2.473-.233 3.136-.914a.4.4 0 0 1 .574 0 .436.436 0 0 1 0 .573Zm-.287-2.563a1.56 1.56 0 0 1 0-3.118c.86 0 1.56.699 1.56 1.56 0 .841-.7 1.558-1.56 1.558Z"})),ns={foreground:"#35465c",src:(0,Ke.createElement)(et.SVG,{viewBox:"0 0 24 24"},(0,Ke.createElement)(et.Path,{d:"M19 3H5a2 2 0 00-2 2v14c0 1.1.9 2 2 2h14a2 2 0 002-2V5a2 2 0 00-2-2zm-5.69 14.66c-2.72 0-3.1-1.9-3.1-3.16v-3.56H8.49V8.99c1.7-.62 2.54-1.99 2.64-2.87 0-.06.06-.41.06-.58h1.9v3.1h2.17v2.3h-2.18v3.1c0 .47.13 1.3 1.2 1.26h1.1v2.36c-1.01.02-2.07 0-2.07 0z"}))},as=(0,Ke.createElement)(et.SVG,{viewBox:"0 0 24 24"},(0,Ke.createElement)(et.Path,{d:"M18.42 14.58c-.51-.66-1.05-1.23-1.05-2.5V7.87c0-1.8.15-3.45-1.2-4.68-1.05-1.02-2.79-1.35-4.14-1.35-2.6 0-5.52.96-6.12 4.14-.06.36.18.54.4.57l2.66.3c.24-.03.42-.27.48-.5.24-1.12 1.17-1.63 2.2-1.63.56 0 1.22.21 1.55.7.4.56.33 1.31.33 1.97v.36c-1.59.18-3.66.27-5.16.93a4.63 4.63 0 0 0-2.93 4.44c0 2.82 1.8 4.23 4.1 4.23 1.95 0 3.03-.45 4.53-1.98.51.72.66 1.08 1.59 1.83.18.09.45.09.63-.1v.04l2.1-1.8c.24-.21.2-.48.03-.75zm-5.4-1.2c-.45.75-1.14 1.23-1.92 1.23-1.05 0-1.65-.81-1.65-1.98 0-2.31 2.1-2.73 4.08-2.73v.6c0 1.05.03 1.92-.5 2.88z"}),(0,Ke.createElement)(et.Path,{d:"M21.69 19.2a17.62 17.62 0 0 1-21.6-1.57c-.23-.2 0-.5.28-.33a23.88 23.88 0 0 0 20.93 1.3c.45-.19.84.3.39.6z"}),(0,Ke.createElement)(et.Path,{d:"M22.8 17.96c-.36-.45-2.22-.2-3.1-.12-.23.03-.3-.18-.05-.36 1.5-1.05 3.96-.75 4.26-.39.3.36-.1 2.82-1.5 4.02-.21.18-.42.1-.3-.15.3-.8 1.02-2.58.69-3z"})),os=(0,Ke.createElement)(et.SVG,{viewBox:"0 0 24 24"},(0,Ke.createElement)(et.Path,{d:"m.0206909 21 19.8160091-13.07806 3.5831 6.20826z",fill:"#4bc7ee"}),(0,Ke.createElement)(et.Path,{d:"m23.7254 19.0205-10.1074-17.18468c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418h22.5655c1.279 0 1.8019-.8905 1.1599-1.9795z",fill:"#d4cdcb"}),(0,Ke.createElement)(et.Path,{d:"m.0206909 21 15.2439091-16.38571 4.3029 7.32271z",fill:"#c3d82e"}),(0,Ke.createElement)(et.Path,{d:"m13.618 1.83582c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418 15.2646-16.38573z",fill:"#e4ecb0"}),(0,Ke.createElement)(et.Path,{d:"m.0206909 21 19.5468091-9.063 1.6621 2.8344z",fill:"#209dbd"}),(0,Ke.createElement)(et.Path,{d:"m.0206909 21 17.9209091-11.82623 1.6259 2.76323z",fill:"#7cb3c9"})),rs=(0,Ke.createElement)(et.SVG,{viewBox:"0 0 24 24"},(0,Ke.createElement)(et.Path,{d:"M11.903 16.568c-1.82 0-3.124-1.281-3.124-2.967a2.987 2.987 0 0 1 2.989-2.989c1.663 0 2.944 1.304 2.944 3.034 0 1.663-1.281 2.922-2.81 2.922ZM17.997 3l-3.308.73v5.107c-.809-1.034-2.045-1.37-3.505-1.37-1.529 0-2.9.561-4.023 1.662-1.259 1.214-1.933 2.764-1.933 4.495 0 1.888.72 3.506 2.113 4.742 1.056.944 2.314 1.415 3.775 1.415 1.438 0 2.517-.382 3.573-1.415v1.415h3.308V3Z",fill:"#333436"})),ls=(0,Ke.createElement)(et.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(et.Path,{d:"M12.289,2C6.617,2,3.606,5.648,3.606,9.622c0,1.846,1.025,4.146,2.666,4.878c0.25,0.111,0.381,0.063,0.439-0.169 c0.044-0.175,0.267-1.029,0.365-1.428c0.032-0.128,0.017-0.237-0.091-0.362C6.445,11.911,6.01,10.75,6.01,9.668 c0-2.777,2.194-5.464,5.933-5.464c3.23,0,5.49,2.108,5.49,5.122c0,3.407-1.794,5.768-4.13,5.768c-1.291,0-2.257-1.021-1.948-2.277 c0.372-1.495,1.089-3.112,1.089-4.191c0-0.967-0.542-1.775-1.663-1.775c-1.319,0-2.379,1.309-2.379,3.059 c0,1.115,0.394,1.869,0.394,1.869s-1.302,5.279-1.54,6.261c-0.405,1.666,0.053,4.368,0.094,4.604 c0.021,0.126,0.167,0.169,0.25,0.063c0.129-0.165,1.699-2.419,2.142-4.051c0.158-0.59,0.817-2.995,0.817-2.995 c0.43,0.784,1.681,1.446,3.013,1.446c3.963,0,6.822-3.494,6.822-7.833C20.394,5.112,16.849,2,12.289,2"})),is=(0,Ke.createElement)(et.SVG,{viewBox:"0 0 44 44"},(0,Ke.createElement)(et.Path,{d:"M32.59521,22.001l4.31885-4.84473-6.34131-1.38379.646-6.459-5.94336,2.61035L22,6.31934l-3.27344,5.60351L12.78418,9.3125l.645,6.458L7.08643,17.15234,11.40479,21.999,7.08594,26.84375l6.34131,1.38379-.64551,6.458,5.94287-2.60938L22,37.68066l3.27344-5.60351,5.94287,2.61035-.64551-6.458,6.34277-1.38183Zm.44385,2.75244L30.772,23.97827l-1.59558-2.07391,1.97888.735Zm-8.82147,6.1579L22.75,33.424V30.88977l1.52228-2.22168ZM18.56226,13.48816,19.819,15.09534l-2.49219-.88642L15.94037,12.337Zm6.87719.00116,2.62043-1.15027-1.38654,1.86981L24.183,15.0946Zm3.59357,2.6029-1.22546,1.7381.07525-2.73486,1.44507-1.94867ZM22,29.33008l-2.16406-3.15686L22,23.23688l2.16406,2.93634Zm-4.25458-9.582-.10528-3.836,3.60986,1.284v3.73242Zm5.00458-2.552,3.60986-1.284-.10528,3.836L22.75,20.92853Zm-7.78174-1.10559-.29352-2.94263,1.44245,1.94739.07519,2.73321Zm2.30982,5.08319,3.50817,1.18164-2.16247,2.9342-3.678-1.08447Zm2.4486,7.49285L21.25,30.88977v2.53485L19.78052,30.91Zm3.48707-6.31121,3.50817-1.18164,2.33228,3.03137-3.678,1.08447Zm10.87219-4.28113-2.714,3.04529L28.16418,19.928l1.92176-2.72565ZM24.06036,12.81769l-2.06012,2.6322-2.059-2.63318L22,9.292ZM9.91455,18.07227l4.00079-.87195,1.921,2.72735-3.20794,1.19019Zm2.93024,4.565,1.9801-.73462L13.228,23.97827l-2.26838.77429Zm-1.55591,3.58819L13.701,25.4021l2.64935.78058-2.14447.67853Zm3.64868,1.977L18.19,27.17334l.08313,3.46332L14.52979,32.2793Zm10.7876,2.43549.08447-3.464,3.25165,1.03052.407,4.07684Zm4.06824-3.77478-2.14545-.68,2.65063-.781,2.41266.825Z"})),ss={foreground:"#f43e37",src:(0,Ke.createElement)(et.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(et.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M24,12A12,12,0,1,1,12,0,12,12,0,0,1,24,12Z"}),(0,Ke.createElement)(et.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M2.67,12a9.33,9.33,0,0,1,18.66,0H19a7,7,0,1,0-7,7v2.33A9.33,9.33,0,0,1,2.67,12ZM12,17.6A5.6,5.6,0,1,1,17.6,12h-2A3.56,3.56,0,1,0,12,15.56Z",fill:"#fff"}))},cs=(0,Ke.createElement)(et.SVG,{viewBox:"0 0 24 24"},(0,Ke.createElement)(et.Path,{fill:"#0a7aff",d:"M6.3,4.2c2.3,1.7,4.8,5.3,5.7,7.2.9-1.9,3.4-5.4,5.7-7.2,1.7-1.3,4.3-2.2,4.3.9s-.4,5.2-.6,5.9c-.7,2.6-3.3,3.2-5.6,2.8,4,.7,5.1,3,2.9,5.3-5,5.2-6.7-2.8-6.7-2.8,0,0-1.7,8-6.7,2.8-2.2-2.3-1.2-4.6,2.9-5.3-2.3.4-4.9-.3-5.6-2.8-.2-.7-.6-5.3-.6-5.9,0-3.1,2.7-2.1,4.3-.9h0Z"})),ms=()=>(0,Ke.createElement)("div",{className:"wp-block-embed is-loading"},(0,Ke.createElement)(et.Spinner,null)),us=({icon:e,label:t,value:n,onSubmit:a,onChange:o,cannotEmbed:r,fallback:l,tryAgain:i})=>(0,Ke.createElement)(et.Placeholder,{icon:(0,Ke.createElement)(nt.BlockIcon,{icon:e,showColors:!0}),label:t,className:"wp-block-embed",instructions:(0,tt.__)("Paste a link to the content you want to display on your site.")},(0,Ke.createElement)("form",{onSubmit:a},(0,Ke.createElement)("input",{type:"url",value:n||"",className:"components-placeholder__input","aria-label":t,placeholder:(0,tt.__)("Enter URL to embed here…"),onChange:o}),(0,Ke.createElement)(et.Button,{variant:"primary",type:"submit"},(0,tt._x)("Embed","button label"))),(0,Ke.createElement)("div",{className:"wp-block-embed__learn-more"},(0,Ke.createElement)(et.ExternalLink,{href:(0,tt.__)("https://wordpress.org/documentation/article/embeds/")},(0,tt.__)("Learn more about embeds"))),r&&(0,Ke.createElement)(et.__experimentalVStack,{spacing:3,className:"components-placeholder__error"},(0,Ke.createElement)("div",{className:"components-placeholder__instructions"},(0,tt.__)("Sorry, this content could not be embedded.")),(0,Ke.createElement)(et.__experimentalHStack,{expanded:!1,spacing:3,justify:"flex-start"},(0,Ke.createElement)(et.Button,{variant:"secondary",onClick:i},(0,tt._x)("Try again","button label"))," ",(0,Ke.createElement)(et.Button,{variant:"secondary",onClick:l},(0,tt._x)("Convert to link","button label"))))),ps={class:"className",frameborder:"frameBorder",marginheight:"marginHeight",marginwidth:"marginWidth"};function ds({html:e}){const t=(0,_t.useRef)(),n=(0,_t.useMemo)((()=>{const t=(new window.DOMParser).parseFromString(e,"text/html").querySelector("iframe"),n={};return t?(Array.from(t.attributes).forEach((({name:e,value:t})=>{"style"!==e&&(n[ps[e]||e]=t)})),n):n}),[e]);return(0,_t.useEffect)((()=>{const{ownerDocument:e}=t.current,{defaultView:a}=e;function o({data:{secret:e,message:a,value:o}={}}){"height"===a&&e===n["data-secret"]&&(t.current.height=o)}return a.addEventListener("message",o),()=>{a.removeEventListener("message",o)}}),[]),(0,Ke.createElement)("div",{className:"wp-block-embed__wrapper"},(0,Ke.createElement)("iframe",{ref:(0,jt.useMergeRefs)([t,(0,jt.useFocusableIframe)()]),title:n.title,...n}))}class gs extends _t.Component{constructor(){super(...arguments),this.hideOverlay=this.hideOverlay.bind(this),this.state={interactive:!1}}static getDerivedStateFromProps(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}hideOverlay(){this.setState({interactive:!0})}render(){const{preview:e,previewable:t,url:n,type:a,caption:o,onCaptionChange:r,isSelected:l,className:i,icon:s,label:c,insertBlocksAfter:m}=this.props,{scripts:u}=e,{interactive:p}=this.state,d="photo"===a?(e=>{const t=e.url||e.thumbnail_url,n=(0,Ke.createElement)("p",null,(0,Ke.createElement)("img",{src:t,alt:e.title,width:"100%"}));return(0,_t.renderToString)(n)})(e):e.html,g=new URL(n).host.split("."),h=g.splice(g.length-2,g.length-1).join("."),b=(0,tt.sprintf)((0,tt.__)("Embedded content from %s"),h),_=ut(a,i,"wp-block-embed__wrapper"),y="wp-embed"===a?(0,Ke.createElement)(ds,{html:d}):(0,Ke.createElement)("div",{className:"wp-block-embed__wrapper"},(0,Ke.createElement)(et.SandBox,{html:d,scripts:u,title:b,type:_,onFocus:this.hideOverlay}),!p&&(0,Ke.createElement)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}));return(0,Ke.createElement)("figure",{className:ut(i,"wp-block-embed",{"is-type-video":"video"===a})},t?y:(0,Ke.createElement)(et.Placeholder,{icon:(0,Ke.createElement)(nt.BlockIcon,{icon:s,showColors:!0}),label:c},(0,Ke.createElement)("p",{className:"components-placeholder__error"},(0,Ke.createElement)("a",{href:n},n)),(0,Ke.createElement)("p",{className:"components-placeholder__error"},(0,tt.sprintf)((0,tt.__)("Embedded content from %s can't be previewed in the editor."),h))),(!nt.RichText.isEmpty(o)||l)&&(0,Ke.createElement)(nt.RichText,{identifier:"caption",tagName:"figcaption",className:(0,nt.__experimentalGetElementClassName)("caption"),placeholder:(0,tt.__)("Add caption"),value:o,onChange:r,inlineToolbar:!0,__unstableOnSplitAtEnd:()=>m((0,Qe.createBlock)((0,Qe.getDefaultBlockName)()))}))}}const hs=gs,bs=e=>{const{attributes:{providerNameSlug:t,previewable:n,responsive:a,url:o},attributes:r,isSelected:l,onReplace:i,setAttributes:s,insertBlocksAfter:c,onFocus:m}=e,u={title:(0,tt._x)("Embed","block title"),icon:Oi},{icon:p,title:d}=(g=t,(0,Qe.getBlockVariations)(Dt)?.find((({name:e})=>e===g))||u);var g;const[h,b]=(0,_t.useState)(o),[_,y]=(0,_t.useState)(!1),{invalidateResolution:v}=(0,gt.useDispatch)(dt.store),{preview:f,fetching:k,themeSupportsResponsive:x,cannotEmbed:w,hasResolved:E}=(0,gt.useSelect)((e=>{const{getEmbedPreview:t,isPreviewEmbedFallback:n,isRequestingEmbedPreview:a,getThemeSupports:r,hasFinishedResolution:l}=e(dt.store);if(!o)return{fetching:!1,cannotEmbed:!1};const i=t(o),s=n(o),c=!!i&&!(!1===i?.html&&void 0===i?.type)&&!(404===i?.data?.status);return{preview:c?i:void 0,fetching:a(o),themeSupportsResponsive:r()["responsive-embeds"],cannotEmbed:!c||s,hasResolved:l("getEmbedPreview",[o])}}),[o]),C=()=>((e,t,n,a)=>{const{allowResponsive:o,className:r}=e;return{...e,...Ot(t,n,r,a,o)}})(r,f,d,a);(0,_t.useEffect)((()=>{if(f?.html||!w||!E)return;const e=o.replace(/\/$/,"");b(e),y(!1),s({url:e})}),[f?.html,o,w,E,s]),(0,_t.useEffect)((()=>{if(w&&!k&&h&&"x.com"===(0,pt.getAuthority)(h)){const e=new URL(h);e.host="twitter.com",s({url:e.toString()})}}),[h,w,k,s]),(0,_t.useEffect)((()=>{if(f&&!_){const t=C();if(s(t),i){const n=Vt(e,t);n&&i(n)}}}),[f,_]);const S=(0,nt.useBlockProps)();if(k)return(0,Ke.createElement)(Ye.View,{...S},(0,Ke.createElement)(ms,null));const B=(0,tt.sprintf)((0,tt.__)("%s URL"),d);if(!f||w||_)return(0,Ke.createElement)(Ye.View,{...S},(0,Ke.createElement)(us,{icon:p,label:B,onFocus:m,onSubmit:e=>{e&&e.preventDefault();const t=$t(r.className);y(!1),s({url:h,className:t})},value:h,cannotEmbed:w,onChange:e=>b(e.target.value),fallback:()=>function(e,t){const n=(0,Ke.createElement)("a",{href:e},e);t((0,Qe.createBlock)("core/paragraph",{content:(0,_t.renderToString)(n)}))}(h,i),tryAgain:()=>{v("getEmbedPreview",[h])}}));const{caption:N,type:T,allowResponsive:I,className:P}=C(),M=ut(P,e.className);return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(Gi,{showEditButton:f&&!w,themeSupportsResponsive:x,blockSupportsResponsive:a,allowResponsive:I,toggleResponsive:()=>{const{allowResponsive:e,className:t}=r,{html:n}=f,o=!e;s({allowResponsive:o,className:Gt(n,t,a&&o)})},switchBackToURLInput:()=>y(!0)}),(0,Ke.createElement)(Ye.View,{...S},(0,Ke.createElement)(hs,{preview:f,previewable:n,className:M,url:h,type:T,caption:N,onCaptionChange:e=>s({caption:e}),isSelected:l,icon:p,label:B,insertBlocksAfter:c})))};const{name:_s}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter or YouTube.",textdomain:"default",attributes:{url:{type:"string",__experimentalRole:"content"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",__experimentalRole:"content"},type:{type:"string",__experimentalRole:"content"},providerNameSlug:{type:"string",__experimentalRole:"content"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1,__experimentalRole:"content"},previewable:{type:"boolean",default:!0,__experimentalRole:"content"}},supports:{align:!0,spacing:{margin:!0},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"},ys={from:[{type:"raw",isMatch:e=>"P"===e.nodeName&&/^\s*(https?:\/\/\S+)\s*$/i.test(e.textContent)&&1===e.textContent?.match(/https/gi)?.length,transform:e=>(0,Qe.createBlock)(_s,{url:e.textContent.trim()})}],to:[{type:"block",blocks:["core/paragraph"],isMatch:({url:e})=>!!e,transform:({url:e,caption:t})=>{let n=`<a href="${e}">${e}</a>`;return t?.trim()&&(n+=`<br />${t}`),(0,Qe.createBlock)("core/paragraph",{content:n})}}]},vs=ys,fs=[{name:"twitter",title:"Twitter",icon:Wi,keywords:["tweet",(0,tt.__)("social")],description:(0,tt.__)("Embed a tweet."),patterns:[/^https?:\/\/(www\.)?twitter\.com\/.+/i],attributes:{providerNameSlug:"twitter",responsive:!0}},{name:"youtube",title:"YouTube",icon:Zi,keywords:[(0,tt.__)("music"),(0,tt.__)("video")],description:(0,tt.__)("Embed a YouTube video."),patterns:[/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i,/^https?:\/\/youtu\.be\/.+/i],attributes:{providerNameSlug:"youtube",responsive:!0}},{name:"facebook",title:"Facebook",icon:Qi,keywords:[(0,tt.__)("social")],description:(0,tt.__)("Embed a Facebook post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"facebook",previewable:!1,responsive:!0}},{name:"instagram",title:"Instagram",icon:Ki,keywords:[(0,tt.__)("image"),(0,tt.__)("social")],description:(0,tt.__)("Embed an Instagram post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"instagram",responsive:!0}},{name:"wordpress",title:"WordPress",icon:Yi,keywords:[(0,tt.__)("post"),(0,tt.__)("blog")],description:(0,tt.__)("Embed a WordPress post."),attributes:{providerNameSlug:"wordpress"}},{name:"soundcloud",title:"SoundCloud",icon:Ui,keywords:[(0,tt.__)("music"),(0,tt.__)("audio")],description:(0,tt.__)("Embed SoundCloud content."),patterns:[/^https?:\/\/(www\.)?soundcloud\.com\/.+/i],attributes:{providerNameSlug:"soundcloud",responsive:!0}},{name:"spotify",title:"Spotify",icon:Ji,keywords:[(0,tt.__)("music"),(0,tt.__)("audio")],description:(0,tt.__)("Embed Spotify content."),patterns:[/^https?:\/\/(open|play)\.spotify\.com\/.+/i],attributes:{providerNameSlug:"spotify",responsive:!0}},{name:"flickr",title:"Flickr",icon:Xi,keywords:[(0,tt.__)("image")],description:(0,tt.__)("Embed Flickr content."),patterns:[/^https?:\/\/(www\.)?flickr\.com\/.+/i,/^https?:\/\/flic\.kr\/.+/i],attributes:{providerNameSlug:"flickr",responsive:!0}},{name:"vimeo",title:"Vimeo",icon:es,keywords:[(0,tt.__)("video")],description:(0,tt.__)("Embed a Vimeo video."),patterns:[/^https?:\/\/(www\.)?vimeo\.com\/.+/i],attributes:{providerNameSlug:"vimeo",responsive:!0}},{name:"animoto",title:"Animoto",icon:os,description:(0,tt.__)("Embed an Animoto video."),patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i],attributes:{providerNameSlug:"animoto",responsive:!0}},{name:"cloudup",title:"Cloudup",icon:Oi,description:(0,tt.__)("Embed Cloudup content."),patterns:[/^https?:\/\/cloudup\.com\/.+/i],attributes:{providerNameSlug:"cloudup",responsive:!0}},{name:"collegehumor",title:"CollegeHumor",icon:ji,description:(0,tt.__)("Embed CollegeHumor content."),scope:["block"],patterns:[],attributes:{providerNameSlug:"collegehumor",responsive:!0}},{name:"crowdsignal",title:"Crowdsignal",icon:Oi,keywords:["polldaddy",(0,tt.__)("survey")],description:(0,tt.__)("Embed Crowdsignal (formerly Polldaddy) content."),patterns:[/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.crowdsignal\.net|.+\.survey\.fm)\/.+/i],attributes:{providerNameSlug:"crowdsignal",responsive:!0}},{name:"dailymotion",title:"Dailymotion",icon:rs,keywords:[(0,tt.__)("video")],description:(0,tt.__)("Embed a Dailymotion video."),patterns:[/^https?:\/\/(www\.)?dailymotion\.com\/.+/i],attributes:{providerNameSlug:"dailymotion",responsive:!0}},{name:"imgur",title:"Imgur",icon:qi,description:(0,tt.__)("Embed Imgur content."),patterns:[/^https?:\/\/(.+\.)?imgur\.com\/.+/i],attributes:{providerNameSlug:"imgur",responsive:!0}},{name:"issuu",title:"Issuu",icon:Oi,description:(0,tt.__)("Embed Issuu content."),patterns:[/^https?:\/\/(www\.)?issuu\.com\/.+/i],attributes:{providerNameSlug:"issuu",responsive:!0}},{name:"kickstarter",title:"Kickstarter",icon:Oi,description:(0,tt.__)("Embed Kickstarter content."),patterns:[/^https?:\/\/(www\.)?kickstarter\.com\/.+/i,/^https?:\/\/kck\.st\/.+/i],attributes:{providerNameSlug:"kickstarter",responsive:!0}},{name:"mixcloud",title:"Mixcloud",icon:Ui,keywords:[(0,tt.__)("music"),(0,tt.__)("audio")],description:(0,tt.__)("Embed Mixcloud content."),patterns:[/^https?:\/\/(www\.)?mixcloud\.com\/.+/i],attributes:{providerNameSlug:"mixcloud",responsive:!0}},{name:"pocket-casts",title:"Pocket Casts",icon:ss,keywords:[(0,tt.__)("podcast"),(0,tt.__)("audio")],description:(0,tt.__)("Embed a podcast player from Pocket Casts."),patterns:[/^https:\/\/pca.st\/\w+/i],attributes:{providerNameSlug:"pocket-casts",responsive:!0}},{name:"reddit",title:"Reddit",icon:ts,description:(0,tt.__)("Embed a Reddit thread."),patterns:[/^https?:\/\/(www\.)?reddit\.com\/.+/i],attributes:{providerNameSlug:"reddit",responsive:!0}},{name:"reverbnation",title:"ReverbNation",icon:Ui,description:(0,tt.__)("Embed ReverbNation content."),patterns:[/^https?:\/\/(www\.)?reverbnation\.com\/.+/i],attributes:{providerNameSlug:"reverbnation",responsive:!0}},{name:"screencast",title:"Screencast",icon:ji,description:(0,tt.__)("Embed Screencast content."),patterns:[/^https?:\/\/(www\.)?screencast\.com\/.+/i],attributes:{providerNameSlug:"screencast",responsive:!0}},{name:"scribd",title:"Scribd",icon:Oi,description:(0,tt.__)("Embed Scribd content."),patterns:[/^https?:\/\/(www\.)?scribd\.com\/.+/i],attributes:{providerNameSlug:"scribd",responsive:!0}},{name:"slideshare",title:"Slideshare",icon:Oi,description:(0,tt.__)("Embed Slideshare content."),patterns:[/^https?:\/\/(.+?\.)?slideshare\.net\/.+/i],attributes:{providerNameSlug:"slideshare",responsive:!0}},{name:"smugmug",title:"SmugMug",icon:qi,description:(0,tt.__)("Embed SmugMug content."),patterns:[/^https?:\/\/(.+\.)?smugmug\.com\/.*/i],attributes:{providerNameSlug:"smugmug",previewable:!1,responsive:!0}},{name:"speaker-deck",title:"Speaker Deck",icon:Oi,description:(0,tt.__)("Embed Speaker Deck content."),patterns:[/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i],attributes:{providerNameSlug:"speaker-deck",responsive:!0}},{name:"tiktok",title:"TikTok",icon:ji,keywords:[(0,tt.__)("video")],description:(0,tt.__)("Embed a TikTok video."),patterns:[/^https?:\/\/(www\.)?tiktok\.com\/.+/i],attributes:{providerNameSlug:"tiktok",responsive:!0}},{name:"ted",title:"TED",icon:ji,description:(0,tt.__)("Embed a TED video."),patterns:[/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i],attributes:{providerNameSlug:"ted",responsive:!0}},{name:"tumblr",title:"Tumblr",icon:ns,keywords:[(0,tt.__)("social")],description:(0,tt.__)("Embed a Tumblr post."),patterns:[/^https?:\/\/(.+)\.tumblr\.com\/.+/i],attributes:{providerNameSlug:"tumblr",responsive:!0}},{name:"videopress",title:"VideoPress",icon:ji,keywords:[(0,tt.__)("video")],description:(0,tt.__)("Embed a VideoPress video."),patterns:[/^https?:\/\/videopress\.com\/.+/i],attributes:{providerNameSlug:"videopress",responsive:!0}},{name:"wordpress-tv",title:"WordPress.tv",icon:ji,description:(0,tt.__)("Embed a WordPress.tv video."),patterns:[/^https?:\/\/wordpress\.tv\/.+/i],attributes:{providerNameSlug:"wordpress-tv",responsive:!0}},{name:"amazon-kindle",title:"Amazon Kindle",icon:as,keywords:[(0,tt.__)("ebook")],description:(0,tt.__)("Embed Amazon Kindle content."),patterns:[/^https?:\/\/([a-z0-9-]+\.)?(amazon|amzn)(\.[a-z]{2,4})+\/.+/i,/^https?:\/\/(www\.)?(a\.co|z\.cn)\/.+/i],attributes:{providerNameSlug:"amazon-kindle"}},{name:"pinterest",title:"Pinterest",icon:ls,keywords:[(0,tt.__)("social"),(0,tt.__)("bookmark")],description:(0,tt.__)("Embed Pinterest pins, boards, and profiles."),patterns:[/^https?:\/\/([a-z]{2}|www)\.pinterest\.com(\.(au|mx))?\/.*/i],attributes:{providerNameSlug:"pinterest"}},{name:"wolfram-cloud",title:"Wolfram",icon:is,description:(0,tt.__)("Embed Wolfram notebook content."),patterns:[/^https?:\/\/(www\.)?wolframcloud\.com\/obj\/.+/i],attributes:{providerNameSlug:"wolfram-cloud",responsive:!0}},{name:"bluesky",title:"Bluesky",icon:cs,description:(0,tt.__)("Embed a Bluesky post."),patterns:[/^https?:\/\/bsky\.app\/profile\/.+\/post\/.+/i],attributes:{providerNameSlug:"bluesky"}}];fs.forEach((e=>{e.isActive||(e.isActive=(e,t)=>e.providerNameSlug===t.providerNameSlug)}));const ks=fs,{attributes:xs}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter or YouTube.",textdomain:"default",attributes:{url:{type:"string",__experimentalRole:"content"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",__experimentalRole:"content"},type:{type:"string",__experimentalRole:"content"},providerNameSlug:{type:"string",__experimentalRole:"content"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1,__experimentalRole:"content"},previewable:{type:"boolean",default:!0,__experimentalRole:"content"}},supports:{align:!0,spacing:{margin:!0},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"},ws={attributes:xs,save({attributes:e}){const{url:t,caption:n,type:a,providerNameSlug:o}=e;if(!t)return null;const r=ut("wp-block-embed",{[`is-type-${a}`]:a,[`is-provider-${o}`]:o,[`wp-block-embed-${o}`]:o});return(0,Ke.createElement)("figure",{...nt.useBlockProps.save({className:r})},(0,Ke.createElement)("div",{className:"wp-block-embed__wrapper"},`\n${t}\n`),!nt.RichText.isEmpty(n)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",value:n}))}},Es={attributes:xs,save({attributes:{url:e,caption:t,type:n,providerNameSlug:a}}){if(!e)return null;const o=ut("wp-block-embed",{[`is-type-${n}`]:n,[`is-provider-${a}`]:a});return(0,Ke.createElement)("figure",{className:o},`\n${e}\n`,!nt.RichText.isEmpty(t)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",value:t}))}},Cs=[ws,Es],Ss={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter or YouTube.",textdomain:"default",attributes:{url:{type:"string",__experimentalRole:"content"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",__experimentalRole:"content"},type:{type:"string",__experimentalRole:"content"},providerNameSlug:{type:"string",__experimentalRole:"content"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1,__experimentalRole:"content"},previewable:{type:"boolean",default:!0,__experimentalRole:"content"}},supports:{align:!0,spacing:{margin:!0},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"},{name:Bs}=Ss,Ns={icon:Oi,edit:bs,save:function({attributes:e}){const{url:t,caption:n,type:a,providerNameSlug:o}=e;if(!t)return null;const r=ut("wp-block-embed",{[`is-type-${a}`]:a,[`is-provider-${o}`]:o,[`wp-block-embed-${o}`]:o});return(0,Ke.createElement)("figure",{...nt.useBlockProps.save({className:r})},(0,Ke.createElement)("div",{className:"wp-block-embed__wrapper"},`\n${t}\n`),!nt.RichText.isEmpty(n)&&(0,Ke.createElement)(nt.RichText.Content,{className:(0,nt.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:n}))},transforms:vs,variations:ks,deprecated:Cs},Ts=()=>Xe({name:Bs,metadata:Ss,settings:Ns}),Is=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12.848 8a1 1 0 0 1-.914-.594l-.723-1.63a.5.5 0 0 0-.447-.276H5a.5.5 0 0 0-.5.5v11.5a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-9A.5.5 0 0 0 19 8h-6.152Zm.612-1.5a.5.5 0 0 1-.462-.31l-.445-1.084A2 2 0 0 0 10.763 4H5a2 2 0 0 0-2 2v11.5a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2h-5.54Z"})),Ps={attributes:{id:{type:"number"},href:{type:"string"},fileId:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"id"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0},save({attributes:e}){const{href:t,fileId:n,fileName:a,textLinkHref:o,textLinkTarget:r,showDownloadButton:l,downloadButtonText:i,displayPreview:s,previewHeight:c}=e,m=nt.RichText.isEmpty(a)?(0,tt.__)("PDF embed"):(0,tt.sprintf)((0,tt.__)("Embed of %s."),a),u=!nt.RichText.isEmpty(a),p=u?n:void 0;return t&&(0,Ke.createElement)("div",{...nt.useBlockProps.save()},s&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${c}px`},"aria-label":m})),u&&(0,Ke.createElement)("a",{id:p,href:o,target:r,rel:r?"noreferrer noopener":void 0},(0,Ke.createElement)(nt.RichText.Content,{value:a})),l&&(0,Ke.createElement)("a",{href:t,className:ut("wp-block-file__button",(0,nt.__experimentalGetElementClassName)("button")),download:!0,"aria-describedby":p},(0,Ke.createElement)(nt.RichText.Content,{value:i})))}},Ms={attributes:{id:{type:"number"},href:{type:"string"},fileId:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"id"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0},save({attributes:e}){const{href:t,fileId:n,fileName:a,textLinkHref:o,textLinkTarget:r,showDownloadButton:l,downloadButtonText:i,displayPreview:s,previewHeight:c}=e,m=nt.RichText.isEmpty(a)?(0,tt.__)("PDF embed"):(0,tt.sprintf)((0,tt.__)("Embed of %s."),a),u=!nt.RichText.isEmpty(a),p=u?n:void 0;return t&&(0,Ke.createElement)("div",{...nt.useBlockProps.save()},s&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${c}px`},"aria-label":m})),u&&(0,Ke.createElement)("a",{id:p,href:o,target:r,rel:r?"noreferrer noopener":void 0},(0,Ke.createElement)(nt.RichText.Content,{value:a})),l&&(0,Ke.createElement)("a",{href:t,className:"wp-block-file__button",download:!0,"aria-describedby":p},(0,Ke.createElement)(nt.RichText.Content,{value:i})))}},zs={attributes:{id:{type:"number"},href:{type:"string"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0},save({attributes:e}){const{href:t,fileName:n,textLinkHref:a,textLinkTarget:o,showDownloadButton:r,downloadButtonText:l,displayPreview:i,previewHeight:s}=e,c=nt.RichText.isEmpty(n)?(0,tt.__)("PDF embed"):(0,tt.sprintf)((0,tt.__)("Embed of %s."),n);return t&&(0,Ke.createElement)("div",{...nt.useBlockProps.save()},i&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${s}px`},"aria-label":c})),!nt.RichText.isEmpty(n)&&(0,Ke.createElement)("a",{href:a,target:o,rel:o?"noreferrer noopener":void 0},(0,Ke.createElement)(nt.RichText.Content,{value:n})),r&&(0,Ke.createElement)("a",{href:t,className:"wp-block-file__button",download:!0},(0,Ke.createElement)(nt.RichText.Content,{value:l})))}},Rs=[Ps,Ms,zs];function As({hrefs:e,openInNewWindow:t,showDownloadButton:n,changeLinkDestinationOption:a,changeOpenInNewWindow:o,changeShowDownloadButton:r,displayPreview:l,changeDisplayPreview:i,previewHeight:s,changePreviewHeight:c}){const{href:m,textLinkHref:u,attachmentPage:p}=e;let d=[{value:m,label:(0,tt.__)("URL")}];return p&&(d=[{value:m,label:(0,tt.__)("Media file")},{value:p,label:(0,tt.__)("Attachment page")}]),(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.InspectorControls,null,m.endsWith(".pdf")&&(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("PDF settings")},(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show inline embed"),help:l?(0,tt.__)("Note: Most phone and tablet browsers won't display embedded PDFs."):null,checked:!!l,onChange:i}),l&&(0,Ke.createElement)(et.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Height in pixels"),min:Hs,max:Math.max(Ds,s),value:s,onChange:c})),(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Link to"),value:u,options:d,onChange:a}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Open in new tab"),checked:t,onChange:o}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show download button"),checked:n,onChange:r}))))}const Ls=e=>{let t;try{t=new window.ActiveXObject(e)}catch(e){t=void 0}return t},Hs=200,Ds=2e3;function Fs({text:e,disabled:t}){const{createNotice:n}=(0,gt.useDispatch)(Pt.store),a=(0,jt.useCopyToClipboard)(e,(()=>{n("info",(0,tt.__)("Copied URL to clipboard."),{isDismissible:!0,type:"snackbar"})}));return(0,Ke.createElement)(et.ToolbarButton,{className:"components-clipboard-toolbar-button",ref:a,disabled:t},(0,tt.__)("Copy URL"))}const Vs=function({attributes:e,isSelected:t,setAttributes:n,clientId:a}){const{id:o,fileName:r,href:l,textLinkHref:i,textLinkTarget:s,showDownloadButton:c,downloadButtonText:m,displayPreview:u,previewHeight:p}=e,{media:d}=(0,gt.useSelect)((e=>({media:void 0===o?void 0:e(dt.store).getMedia(o)})),[o]),{createErrorNotice:g}=(0,gt.useDispatch)(Pt.store),{toggleSelection:h,__unstableMarkNextChangeAsNotPersistent:b}=(0,gt.useDispatch)(nt.store);function _(e){if(!e||!e.url)return;const t=e.url.endsWith(".pdf");n({href:e.url,fileName:e.title,textLinkHref:e.url,id:e.id,displayPreview:!!t||void 0,previewHeight:t?600:void 0,fileId:`wp-block-file--media-${a}`})}function y(e){n({href:void 0}),g(e,{type:"snackbar"})}qt({url:l,onChange:_,onError:y}),(0,_t.useEffect)((()=>{nt.RichText.isEmpty(m)&&(b(),n({downloadButtonText:(0,tt._x)("Download","button label")}))}),[]);const v=d&&d.link,f=(0,nt.useBlockProps)({className:ut((0,It.isBlobURL)(l)&&(0,et.__unstableGetAnimateClassName)({type:"loading"}),{"is-transient":(0,It.isBlobURL)(l)})}),k=!(window.navigator.userAgent.indexOf("Mobi")>-1||window.navigator.userAgent.indexOf("Android")>-1||window.navigator.userAgent.indexOf("Macintosh")>-1&&window.navigator.maxTouchPoints&&window.navigator.maxTouchPoints>2||(window.ActiveXObject||"ActiveXObject"in window)&&!Ls("AcroPDF.PDF")&&!Ls("PDF.PdfCtrl"))&&u;return l?(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(As,{hrefs:{href:l,textLinkHref:i,attachmentPage:v},openInNewWindow:!!s,showDownloadButton:c,changeLinkDestinationOption:function(e){n({textLinkHref:e})},changeOpenInNewWindow:function(e){n({textLinkTarget:!!e&&"_blank"})},changeShowDownloadButton:function(e){n({showDownloadButton:e})},displayPreview:u,changeDisplayPreview:function(e){n({displayPreview:e})},previewHeight:p,changePreviewHeight:function(e){const t=Math.max(parseInt(e,10),Hs);n({previewHeight:t})}}),(0,Ke.createElement)(nt.BlockControls,{group:"other"},(0,Ke.createElement)(nt.MediaReplaceFlow,{mediaId:o,mediaURL:l,accept:"*",onSelect:_,onError:y}),(0,Ke.createElement)(Fs,{text:l,disabled:(0,It.isBlobURL)(l)})),(0,Ke.createElement)("div",{...f},k&&(0,Ke.createElement)(et.ResizableBox,{size:{height:p},minHeight:Hs,maxHeight:Ds,minWidth:"100%",grid:[10,10],enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:()=>h(!1),onResizeStop:function(e,t,a,o){h(!0);const r=parseInt(p+o.height,10);n({previewHeight:r})},showHandle:t},(0,Ke.createElement)("object",{className:"wp-block-file__preview",data:l,type:"application/pdf","aria-label":(0,tt.__)("Embed of the selected PDF file.")}),!t&&(0,Ke.createElement)("div",{className:"wp-block-file__preview-overlay"})),(0,Ke.createElement)("div",{className:"wp-block-file__content-wrapper"},(0,Ke.createElement)(nt.RichText,{identifier:"fileName",tagName:"a",value:r,placeholder:(0,tt.__)("Write file name…"),withoutInteractiveFormatting:!0,onChange:e=>n({fileName:yn(e)}),href:i}),c&&(0,Ke.createElement)("div",{className:"wp-block-file__button-richtext-wrapper"},(0,Ke.createElement)(nt.RichText,{identifier:"downloadButtonText",tagName:"div","aria-label":(0,tt.__)("Download button text"),className:ut("wp-block-file__button",(0,nt.__experimentalGetElementClassName)("button")),value:m,withoutInteractiveFormatting:!0,placeholder:(0,tt.__)("Add text…"),onChange:e=>n({downloadButtonText:yn(e)})}))))):(0,Ke.createElement)("div",{...f},(0,Ke.createElement)(nt.MediaPlaceholder,{icon:(0,Ke.createElement)(nt.BlockIcon,{icon:Is}),labels:{title:(0,tt.__)("File"),instructions:(0,tt.__)("Upload a file or pick one from your media library.")},onSelect:_,onError:y,accept:"*"}))};const $s={from:[{type:"files",isMatch:e=>e.length>0,priority:15,transform:e=>{const t=[];return e.forEach((e=>{const n=(0,It.createBlobURL)(e);t.push((0,Qe.createBlock)("core/file",{href:n,fileName:e.name,textLinkHref:n}))})),t}},{type:"block",blocks:["core/audio"],transform:e=>(0,Qe.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/video"],transform:e=>(0,Qe.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/image"],transform:e=>(0,Qe.createBlock)("core/file",{href:e.url,fileName:e.caption||(0,pt.getFilename)(e.url),textLinkHref:e.url,id:e.id,anchor:e.anchor})}],to:[{type:"block",blocks:["core/audio"],isMatch:({id:e})=>{if(!e)return!1;const{getMedia:t}=(0,gt.select)(dt.store),n=t(e);return!!n&&n.mime_type.includes("audio")},transform:e=>(0,Qe.createBlock)("core/audio",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/video"],isMatch:({id:e})=>{if(!e)return!1;const{getMedia:t}=(0,gt.select)(dt.store),n=t(e);return!!n&&n.mime_type.includes("video")},transform:e=>(0,Qe.createBlock)("core/video",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/image"],isMatch:({id:e})=>{if(!e)return!1;const{getMedia:t}=(0,gt.select)(dt.store),n=t(e);return!!n&&n.mime_type.includes("image")},transform:e=>(0,Qe.createBlock)("core/image",{url:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})}]},Gs=$s,Os={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/file",title:"File",category:"media",description:"Add a link to a downloadable file.",keywords:["document","pdf","download"],textdomain:"default",attributes:{id:{type:"number"},href:{type:"string"},fileId:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"id"},fileName:{type:"rich-text",source:"rich-text",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"rich-text",source:"rich-text",selector:"a[download]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0,spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0,text:!1,__experimentalDefaultControls:{background:!0,link:!0}},interactivity:!0},editorStyle:"wp-block-file-editor",style:"wp-block-file"},{name:Us}=Os,qs={icon:Is,example:{attributes:{href:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg",fileName:(0,tt._x)("Armstrong_Small_Step","Name of the file")}},transforms:Gs,deprecated:Rs,edit:Vs,save:function({attributes:e}){const{href:t,fileId:n,fileName:a,textLinkHref:o,textLinkTarget:r,showDownloadButton:l,downloadButtonText:i,displayPreview:s,previewHeight:c}=e,m=nt.RichText.isEmpty(a)?"PDF embed":a.toString(),u=!nt.RichText.isEmpty(a),p=u?n:void 0;return t&&(0,Ke.createElement)("div",{...nt.useBlockProps.save()},s&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${c}px`},"aria-label":m})),u&&(0,Ke.createElement)("a",{id:p,href:o,target:r,rel:r?"noreferrer noopener":void 0},(0,Ke.createElement)(nt.RichText.Content,{value:a})),l&&(0,Ke.createElement)("a",{href:t,className:ut("wp-block-file__button",(0,nt.__experimentalGetElementClassName)("button")),download:!0,"aria-describedby":p},(0,Ke.createElement)(nt.RichText.Content,{value:i})))}},js=()=>Xe({name:Us,metadata:Os,settings:qs}),Ws=["core/form-submission-notification",{type:"success"},[["core/paragraph",{content:'<mark style="background-color:rgba(0, 0, 0, 0);color:#345C00" class="has-inline-color">'+(0,tt.__)("Your form has been submitted successfully")+"</mark>"}]]],Zs=["core/form-submission-notification",{type:"error"},[["core/paragraph",{content:'<mark style="background-color:rgba(0, 0, 0, 0);color:#CF2E2E" class="has-inline-color">'+(0,tt.__)("There was an error submitting your form.")+"</mark>"}]]],Qs=[Ws,Zs,["core/form-input",{type:"text",label:(0,tt.__)("Name"),required:!0}],["core/form-input",{type:"email",label:(0,tt.__)("Email"),required:!0}],["core/form-input",{type:"textarea",label:(0,tt.__)("Comment"),required:!0}],["core/form-submit-button",{}]],Ks=({attributes:e,setAttributes:t,clientId:n})=>{const{action:a,method:o,email:r,submissionMethod:l}=e,i=(0,nt.useBlockProps)(),{hasInnerBlocks:s}=(0,gt.useSelect)((e=>{const{getBlock:t}=e(nt.store),a=t(n);return{hasInnerBlocks:!(!a||!a.innerBlocks.length)}}),[n]),c=(0,nt.useInnerBlocksProps)(i,{template:Qs,renderAppender:s?void 0:nt.InnerBlocks.ButtonBlockAppender});return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.SelectControl,{label:(0,tt.__)("Submissions method"),options:[{label:(0,tt.__)("Send email"),value:"email"},{label:(0,tt.__)("- Custom -"),value:"custom"}],value:l,onChange:e=>t({submissionMethod:e}),help:"custom"===l?(0,tt.__)('Select the method to use for form submissions. Additional options for the "custom" mode can be found in the "Advanced" section.'):(0,tt.__)("Select the method to use for form submissions.")}),"email"===l&&(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,autoComplete:"off",label:(0,tt.__)("Email for form submissions"),value:r,required:!0,onChange:e=>{t({email:e}),t({action:`mailto:${e}`}),t({method:"post"})},help:(0,tt.__)("The email address where form submissions will be sent. Separate multiple email addresses with a comma.")}))),"email"!==l&&(0,Ke.createElement)(nt.InspectorControls,{group:"advanced"},(0,Ke.createElement)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Method"),options:[{label:"Get",value:"get"},{label:"Post",value:"post"}],value:o,onChange:e=>t({method:e}),help:(0,tt.__)("Select the method to use for form submissions.")}),(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,autoComplete:"off",label:(0,tt.__)("Form action"),value:a,onChange:e=>{t({action:e})},help:(0,tt.__)("The URL where the form should be submitted.")})),(0,Ke.createElement)("form",{...c,className:"wp-block-form",encType:"email"===l?"text/plain":null}))},Ys=({attributes:e})=>{const t=nt.useBlockProps.save(),{submissionMethod:n}=e;return(0,Ke.createElement)("form",{...t,className:"wp-block-form",encType:"email"===n?"text/plain":null},(0,Ke.createElement)(nt.InnerBlocks.Content,null))},Js=[{name:"comment-form",title:(0,tt.__)("Experimental Comment form"),description:(0,tt.__)("A comment form for posts and pages."),attributes:{submissionMethod:"custom",action:"{SITE_URL}/wp-comments-post.php",method:"post",anchor:"comment-form"},isDefault:!1,innerBlocks:[["core/form-input",{type:"text",name:"author",label:(0,tt.__)("Name"),required:!0,visibilityPermissions:"logged-out"}],["core/form-input",{type:"email",name:"email",label:(0,tt.__)("Email"),required:!0,visibilityPermissions:"logged-out"}],["core/form-input",{type:"textarea",name:"comment",label:(0,tt.__)("Comment"),required:!0,visibilityPermissions:"all"}],["core/form-submit-button",{}]],scope:["inserter","transform"],isActive:e=>!e?.type||"text"===e?.type},{name:"wp-privacy-form",title:(0,tt.__)("Experimental privacy request form"),keywords:["GDPR"],description:(0,tt.__)("A form to request data exports and/or deletion."),attributes:{submissionMethod:"custom",action:"",method:"post",anchor:"gdpr-form"},isDefault:!1,innerBlocks:[Ws,Zs,["core/paragraph",{content:(0,tt.__)("To request an export or deletion of your personal data on this site, please fill-in the form below. You can define the type of request you wish to perform, and your email address. Once the form is submitted, you will receive a confirmation email with instructions on the next steps.")}],["core/form-input",{type:"email",name:"email",label:(0,tt.__)("Enter your email address."),required:!0,visibilityPermissions:"all"}],["core/form-input",{type:"checkbox",name:"export_personal_data",label:(0,tt.__)("Request data export"),required:!1,visibilityPermissions:"all"}],["core/form-input",{type:"checkbox",name:"remove_personal_data",label:(0,tt.__)("Request data deletion"),required:!1,visibilityPermissions:"all"}],["core/form-submit-button",{}],["core/form-input",{type:"hidden",name:"wp-action",value:"wp_privacy_send_request"}],["core/form-input",{type:"hidden",name:"wp-privacy-request",value:"1"}]],scope:["inserter","transform"],isActive:e=>!e?.type||"text"===e?.type}],Xs=Js,ec={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/form",title:"Form",category:"common",allowedBlocks:["core/paragraph","core/heading","core/form-input","core/form-submit-button","core/form-submission-notification","core/group","core/columns"],description:"A form.",keywords:["container","wrapper","row","section"],textdomain:"default",icon:"feedback",attributes:{submissionMethod:{type:"string",default:"email"},method:{type:"string",default:"post"},action:{type:"string"},email:{type:"string"}},supports:{anchor:!0,className:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalSelector:"form"},viewScript:"file:./view.min.js"},{name:tc}=ec,nc={edit:Ks,save:Ys,variations:Xs},ac=()=>{const e=["core/form"];return(0,vi.addFilter)("blockEditor.__unstableCanInsertBlockType","core/block-library/preventInsertingFormIntoAnotherForm",((t,n,a,{getBlock:o,getBlockParentsByBlockName:r})=>{if("core/form"!==n.name)return t;for(const t of e){if(o(a)?.name===t||r(a,t).length)return!1}return!0})),Xe({name:tc,metadata:ec,settings:nc})};var oc=n(9681),rc=n.n(oc);const lc=window.wp.dom,ic={attributes:{type:{type:"string",default:"text"},name:{type:"string"},label:{type:"string",default:"Label",selector:".wp-block-form-input__label-content",source:"html",__experimentalRole:"content"},inlineLabel:{type:"boolean",default:!1},required:{type:"boolean",default:!1,selector:".wp-block-form-input__input",source:"attribute",attribute:"required"},placeholder:{type:"string",selector:".wp-block-form-input__input",source:"attribute",attribute:"placeholder",__experimentalRole:"content"},value:{type:"string",default:"",selector:"input",source:"attribute",attribute:"value"},visibilityPermissions:{type:"string",default:"all"}},supports:{className:!1,anchor:!0,reusable:!1,spacing:{margin:["top","bottom"]},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}}},save({attributes:e}){const{type:t,name:n,label:a,inlineLabel:o,required:r,placeholder:l,value:i}=e,s=(0,nt.__experimentalGetBorderClassesAndStyles)(e),c=(0,nt.__experimentalGetColorClassesAndStyles)(e),m={...s.style,...c.style},u=ut("wp-block-form-input__input",c.className,s.className),p="textarea"===t?"textarea":"input";return"hidden"===t?(0,Ke.createElement)("input",{type:t,name:n,value:i}):(0,Ke.createElement)("label",{className:ut("wp-block-form-input__label",{"is-label-inline":o})},(0,Ke.createElement)("span",{className:"wp-block-form-input__label-content"},(0,Ke.createElement)(nt.RichText.Content,{value:a})),(0,Ke.createElement)(p,{className:u,type:"textarea"===t?void 0:t,name:n||(d=a,rc()((0,lc.__unstableStripHTML)(d)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase().replace(/(^-+)|(-+$)/g,"")),required:r,"aria-required":r,placeholder:l||void 0,style:m}));var d}},sc=[ic];const cc=function({attributes:e,setAttributes:t,className:n}){const{type:a,name:o,label:r,inlineLabel:l,required:i,placeholder:s,value:c}=e,m=(0,nt.useBlockProps)(),u=(0,_t.useRef)(),p="textarea"===a?"textarea":"input",d=(0,nt.__experimentalUseBorderProps)(e),g=(0,nt.__experimentalUseColorProps)(e);u.current&&u.current.focus();const h=(0,Ke.createElement)(Ke.Fragment,null,"hidden"!==a&&(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},"checkbox"!==a&&(0,Ke.createElement)(et.CheckboxControl,{label:(0,tt.__)("Inline label"),checked:l,onChange:e=>{t({inlineLabel:e})}}),(0,Ke.createElement)(et.CheckboxControl,{label:(0,tt.__)("Required"),checked:i,onChange:e=>{t({required:e})}}))),(0,Ke.createElement)(nt.InspectorControls,{group:"advanced"},(0,Ke.createElement)(et.TextControl,{autoComplete:"off",label:(0,tt.__)("Name"),value:o,onChange:e=>{t({name:e})},help:(0,tt.__)('Affects the "name" atribute of the input element, and is used as a name for the form submission results.')})));return"hidden"===a?(0,Ke.createElement)(Ke.Fragment,null,h,(0,Ke.createElement)("input",{type:"hidden",className:ut(n,"wp-block-form-input__input",g.className,d.className),"aria-label":(0,tt.__)("Value"),value:c,onChange:e=>t({value:e.target.value})})):(0,Ke.createElement)("div",{...m},h,(0,Ke.createElement)("span",{className:ut("wp-block-form-input__label",{"is-label-inline":l||"checkbox"===a})},(0,Ke.createElement)(nt.RichText,{tagName:"span",className:"wp-block-form-input__label-content",value:r,onChange:e=>t({label:e}),"aria-label":r?(0,tt.__)("Label"):(0,tt.__)("Empty label"),"data-empty":!r,placeholder:(0,tt.__)("Type the label for this input")}),(0,Ke.createElement)(p,{type:"textarea"===a?void 0:a,className:ut(n,"wp-block-form-input__input",g.className,d.className),"aria-label":(0,tt.__)("Optional placeholder text"),placeholder:s?void 0:(0,tt.__)("Optional placeholder…"),value:s,onChange:e=>t({placeholder:e.target.value}),"aria-required":i,style:{...d.style,...g.style}})))};const mc=[{name:"text",title:(0,tt.__)("Text Input"),icon:"edit-page",description:(0,tt.__)("A generic text input."),attributes:{type:"text"},isDefault:!0,scope:["inserter","transform"],isActive:e=>!e?.type||"text"===e?.type},{name:"textarea",title:(0,tt.__)("Textarea Input"),icon:"testimonial",description:(0,tt.__)("A textarea input to allow entering multiple lines of text."),attributes:{type:"textarea"},isDefault:!0,scope:["inserter","transform"],isActive:e=>"textarea"===e?.type},{name:"checkbox",title:(0,tt.__)("Checkbox Input"),description:(0,tt.__)("A simple checkbox input."),icon:"forms",attributes:{type:"checkbox",inlineLabel:!0},isDefault:!0,scope:["inserter","transform"],isActive:e=>"checkbox"===e?.type},{name:"email",title:(0,tt.__)("Email Input"),icon:"email",description:(0,tt.__)("Used for email addresses."),attributes:{type:"email"},isDefault:!0,scope:["inserter","transform"],isActive:e=>"email"===e?.type},{name:"url",title:(0,tt.__)("URL Input"),icon:"admin-site",description:(0,tt.__)("Used for URLs."),attributes:{type:"url"},isDefault:!0,scope:["inserter","transform"],isActive:e=>"url"===e?.type},{name:"tel",title:(0,tt.__)("Telephone Input"),icon:"phone",description:(0,tt.__)("Used for phone numbers."),attributes:{type:"tel"},isDefault:!0,scope:["inserter","transform"],isActive:e=>"tel"===e?.type},{name:"number",title:(0,tt.__)("Number Input"),icon:"edit-page",description:(0,tt.__)("A numeric input."),attributes:{type:"number"},isDefault:!0,scope:["inserter","transform"],isActive:e=>"number"===e?.type}],uc=mc,pc={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/form-input",title:"Input Field",category:"common",ancestor:["core/form"],description:"The basic building block for forms.",keywords:["input","form"],textdomain:"default",icon:"forms",attributes:{type:{type:"string",default:"text"},name:{type:"string"},label:{type:"rich-text",default:"Label",selector:".wp-block-form-input__label-content",source:"rich-text",__experimentalRole:"content"},inlineLabel:{type:"boolean",default:!1},required:{type:"boolean",default:!1,selector:".wp-block-form-input__input",source:"attribute",attribute:"required"},placeholder:{type:"string",selector:".wp-block-form-input__input",source:"attribute",attribute:"placeholder",__experimentalRole:"content"},value:{type:"string",default:"",selector:"input",source:"attribute",attribute:"value"},visibilityPermissions:{type:"string",default:"all"}},supports:{anchor:!0,reusable:!1,spacing:{margin:["top","bottom"]},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}}},style:["wp-block-form-input"]},{name:dc}=pc,gc={deprecated:sc,edit:cc,save:function({attributes:e}){const{type:t,name:n,label:a,inlineLabel:o,required:r,placeholder:l,value:i}=e,s=(0,nt.__experimentalGetBorderClassesAndStyles)(e),c=(0,nt.__experimentalGetColorClassesAndStyles)(e),m={...s.style,...c.style},u=ut("wp-block-form-input__input",c.className,s.className),p="textarea"===t?"textarea":"input",d=nt.useBlockProps.save();return"hidden"===t?(0,Ke.createElement)("input",{type:t,name:n,value:i}):(0,Ke.createElement)("div",{...d},(0,Ke.createElement)("label",{className:ut("wp-block-form-input__label",{"is-label-inline":o})},(0,Ke.createElement)("span",{className:"wp-block-form-input__label-content"},(0,Ke.createElement)(nt.RichText.Content,{value:a})),(0,Ke.createElement)(p,{className:u,type:"textarea"===t?void 0:t,name:n||(g=a,rc()((0,lc.__unstableStripHTML)(g)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase().replace(/(^-+)|(-+$)/g,"")),required:r,"aria-required":r,placeholder:l||void 0,style:m})));var g},variations:uc},hc=()=>Xe({name:dc,metadata:pc,settings:gc}),bc=[["core/buttons",{},[["core/button",{text:(0,tt.__)("Submit"),tagName:"button",type:"submit"}]]]],_c=()=>{const e=(0,nt.useBlockProps)(),t=(0,nt.useInnerBlocksProps)(e,{template:bc,templateLock:"all"});return(0,Ke.createElement)("div",{className:"wp-block-form-submit-wrapper",...t})},yc=()=>{const e=nt.useBlockProps.save();return(0,Ke.createElement)("div",{className:"wp-block-form-submit-wrapper",...e},(0,Ke.createElement)(nt.InnerBlocks.Content,null))},vc={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/form-submit-button",title:"Form Submit Button",category:"common",icon:"button",ancestor:["core/form"],allowedBlocks:["core/buttons","core/button"],description:"A submission button for forms.",keywords:["submit","button","form"],textdomain:"default",style:["wp-block-form-submit-button"]},{name:fc}=vc,kc={edit:_c,save:yc},xc=()=>Xe({name:fc,metadata:vc,settings:kc}),wc=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v3H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-3h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h3V13c0 1.1.9 2 2 2h2.5v3zm0-4.5H11c-.3 0-.5-.2-.5-.5v-2.5H13c.3 0 .5.2.5.5v2.5zm5-.5c0 .3-.2.5-.5.5h-3V11c0-1.1-.9-2-2-2h-2.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7z"})),Ec=[["core/paragraph",{content:(0,tt.__)("Enter the message you wish displayed for form submission error/success, and select the type of the message (success/error) from the block's options.")}]],Cc=({attributes:e,clientId:t})=>{const{type:n}=e,a=(0,nt.useBlockProps)({className:ut("wp-block-form-submission-notification",{[`form-notification-type-${n}`]:n})}),{hasInnerBlocks:o}=(0,gt.useSelect)((e=>{const{getBlock:n}=e(nt.store),a=n(t);return{hasInnerBlocks:!(!a||!a.innerBlocks.length)}}),[t]),r=(0,nt.useInnerBlocksProps)(a,{template:Ec,renderAppender:o?void 0:nt.InnerBlocks.ButtonBlockAppender});return(0,Ke.createElement)("div",{...r,"data-message-success":(0,tt.__)("Submission success notification"),"data-message-error":(0,tt.__)("Submission error notification")})};const Sc=[{name:"form-submission-success",title:(0,tt.__)("Form Submission Success"),description:(0,tt.__)("Success message for form submissions."),attributes:{type:"success"},isDefault:!0,innerBlocks:[["core/paragraph",{content:(0,tt.__)("Your form has been submitted successfully."),backgroundColor:"#00D084",textColor:"#000000",style:{elements:{link:{color:{text:"#000000"}}}}}]],scope:["inserter","transform"],isActive:e=>!e?.type||"success"===e?.type},{name:"form-submission-error",title:(0,tt.__)("Form Submission Error"),description:(0,tt.__)("Error/failure message for form submissions."),attributes:{type:"error"},isDefault:!1,innerBlocks:[["core/paragraph",{content:(0,tt.__)("There was an error submitting your form."),backgroundColor:"#CF2E2E",textColor:"#FFFFFF",style:{elements:{link:{color:{text:"#FFFFFF"}}}}}]],scope:["inserter","transform"],isActive:e=>!e?.type||"error"===e?.type}],Bc=Sc,Nc={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/form-submission-notification",title:"Form Submission Notification",category:"common",ancestor:["core/form"],description:"Provide a notification message after the form has been submitted.",keywords:["form","feedback","notification","message"],textdomain:"default",icon:"feedback",attributes:{type:{type:"string",default:"success"}}},{name:Tc}=Nc,Ic={icon:wc,edit:Cc,save:function({attributes:e}){const{type:t}=e;return(0,Ke.createElement)("div",{...nt.useInnerBlocksProps.save(nt.useBlockProps.save({className:ut("wp-block-form-submission-notification",{[`form-notification-type-${t}`]:t})}))})},variations:Bc},Pc=()=>Xe({name:Tc,metadata:Nc,settings:Ic}),Mc=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M16.375 4.5H4.625a.125.125 0 0 0-.125.125v8.254l2.859-1.54a.75.75 0 0 1 .68-.016l2.384 1.142 2.89-2.074a.75.75 0 0 1 .874 0l2.313 1.66V4.625a.125.125 0 0 0-.125-.125Zm.125 9.398-2.75-1.975-2.813 2.02a.75.75 0 0 1-.76.067l-2.444-1.17L4.5 14.583v1.792c0 .069.056.125.125.125h11.75a.125.125 0 0 0 .125-.125v-2.477ZM4.625 3C3.728 3 3 3.728 3 4.625v11.75C3 17.273 3.728 18 4.625 18h11.75c.898 0 1.625-.727 1.625-1.625V4.625C18 3.728 17.273 3 16.375 3H4.625ZM20 8v11c0 .69-.31 1-.999 1H6v1.5h13.001c1.52 0 2.499-.982 2.499-2.5V8H20Z",fillRule:"evenodd",clipRule:"evenodd"})),zc="none",Rc="media",Ac="attachment",Lc="file",Hc="post";const Dc=(e,t="large")=>{const n=Object.fromEntries(Object.entries(null!=e?e:{}).filter((([e])=>["alt","id","link"].includes(e))));n.url=e?.sizes?.[t]?.url||e?.media_details?.sizes?.[t]?.source_url||e?.url||e?.source_url;const a=e?.sizes?.full?.url||e?.media_details?.sizes?.full?.source_url;return a&&(n.fullUrl=a),n};function Fc(){return!_t.Platform.isNative||function(){if(!window.wp||"boolean"!=typeof window.wp.galleryBlockV2Enabled)throw"window.wp.galleryBlockV2Enabled is not defined";return window.wp.galleryBlockV2Enabled}()}const Vc="file",$c="post";function Gc(e){return Math.min(3,e?.images?.length)}function Oc(e,t){switch(t){case Vc:return{href:e?.source_url||e?.url,linkDestination:Rc};case $c:return{href:e?.link,linkDestination:Ac};case Rc:return{href:e?.source_url||e?.url,linkDestination:Rc};case Ac:return{href:e?.link,linkDestination:Ac};case zc:return{href:void 0,linkDestination:zc}}return{}}function Uc(e){let t=e.linkTo?e.linkTo:"none";"post"===t?t="attachment":"file"===t&&(t="media");const n=e.images.map((n=>function(e,t,n){return(0,Qe.createBlock)("core/image",{...e.id&&{id:parseInt(e.id)},url:e.url,alt:e.alt,caption:e.caption,sizeSlug:t,...Oc(e,n)})}(n,e.sizeSlug,t))),{images:a,ids:o,...r}=e;return[{...r,linkTo:t,allowResize:!1},n]}const qc={attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},shortCodeTransforms:{type:"array",default:[],items:{type:"object"}},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},fixedHeight:{type:"boolean",default:!0},linkTarget:{type:"string"},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"},allowResize:{type:"boolean",default:!1}},save({attributes:e}){const{caption:t,columns:n,imageCrop:a}=e,o=ut("has-nested-images",{[`columns-${n}`]:void 0!==n,"columns-default":void 0===n,"is-cropped":a}),r=nt.useBlockProps.save({className:o}),l=nt.useInnerBlocksProps.save(r);return(0,Ke.createElement)("figure",{...l},l.children,!nt.RichText.isEmpty(t)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:t}))}},jc={attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},fixedHeight:{type:"boolean",default:!0},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"}},supports:{anchor:!0,align:!0},save({attributes:e}){const{images:t,columns:n=Gc(e),imageCrop:a,caption:o,linkTo:r}=e,l=`columns-${n} ${a?"is-cropped":""}`;return(0,Ke.createElement)("figure",{...nt.useBlockProps.save({className:l})},(0,Ke.createElement)("ul",{className:"blocks-gallery-grid"},t.map((e=>{let t;switch(r){case Vc:t=e.fullUrl||e.url;break;case $c:t=e.link}const n=(0,Ke.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?`wp-image-${e.id}`:null});return(0,Ke.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},(0,Ke.createElement)("figure",null,t?(0,Ke.createElement)("a",{href:t},n):n,!nt.RichText.isEmpty(e.caption)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!nt.RichText.isEmpty(o)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:o}))},migrate:e=>Fc()?Uc(e):e},Wc={attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},sizeSlug:{type:"string",default:"large"}},supports:{align:!0},isEligible:({linkTo:e})=>!e||"attachment"===e||"media"===e,migrate(e){if(Fc())return Uc(e);let t=e.linkTo;return e.linkTo?"attachment"===e.linkTo?t="post":"media"===e.linkTo&&(t="file"):t="none",{...e,linkTo:t}},save({attributes:e}){const{images:t,columns:n=Gc(e),imageCrop:a,caption:o,linkTo:r}=e;return(0,Ke.createElement)("figure",{className:`columns-${n} ${a?"is-cropped":""}`},(0,Ke.createElement)("ul",{className:"blocks-gallery-grid"},t.map((e=>{let t;switch(r){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}const n=(0,Ke.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?`wp-image-${e.id}`:null});return(0,Ke.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},(0,Ke.createElement)("figure",null,t?(0,Ke.createElement)("a",{href:t},n):n,!nt.RichText.isEmpty(e.caption)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!nt.RichText.isEmpty(o)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:o}))}},Zc={attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},fullUrl:{source:"attribute",selector:"img",attribute:"data-full-url"},link:{source:"attribute",selector:"img",attribute:"data-link"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",default:[]},columns:{type:"number"},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},supports:{align:!0},isEligible:({ids:e})=>e&&e.some((e=>"string"==typeof e)),migrate(e){var t;return Fc()?Uc(e):{...e,ids:(null!==(t=e.ids)&&void 0!==t?t:[]).map((e=>{const t=parseInt(e,10);return Number.isInteger(t)?t:null}))}},save({attributes:e}){const{images:t,columns:n=Gc(e),imageCrop:a,caption:o,linkTo:r}=e;return(0,Ke.createElement)("figure",{className:`columns-${n} ${a?"is-cropped":""}`},(0,Ke.createElement)("ul",{className:"blocks-gallery-grid"},t.map((e=>{let t;switch(r){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}const n=(0,Ke.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?`wp-image-${e.id}`:null});return(0,Ke.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},(0,Ke.createElement)("figure",null,t?(0,Ke.createElement)("a",{href:t},n):n,!nt.RichText.isEmpty(e.caption)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!nt.RichText.isEmpty(o)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:o}))}},Qc={attributes:{images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},fullUrl:{source:"attribute",selector:"img",attribute:"data-full-url"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},link:{source:"attribute",selector:"img",attribute:"data-link"},caption:{type:"string",source:"html",selector:"figcaption"}}},ids:{type:"array",default:[]},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},supports:{align:!0},save({attributes:e}){const{images:t,columns:n=Gc(e),imageCrop:a,linkTo:o}=e;return(0,Ke.createElement)("ul",{className:`columns-${n} ${a?"is-cropped":""}`},t.map((e=>{let t;switch(o){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}const n=(0,Ke.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?`wp-image-${e.id}`:null});return(0,Ke.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},(0,Ke.createElement)("figure",null,t?(0,Ke.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",value:e.caption})))})))},migrate:e=>Fc()?Uc(e):e},Kc={attributes:{images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},link:{source:"attribute",selector:"img",attribute:"data-link"},caption:{type:"string",source:"html",selector:"figcaption"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},isEligible:({images:e,ids:t})=>e&&e.length>0&&(!t&&e||t&&e&&t.length!==e.length||e.some(((e,n)=>!e&&null!==t[n]||parseInt(e,10)!==t[n]))),migrate(e){var t;return Fc()?Uc(e):{...e,ids:(null!==(t=e.images)&&void 0!==t?t:[]).map((({id:e})=>e?parseInt(e,10):null))}},supports:{align:!0},save({attributes:e}){const{images:t,columns:n=Gc(e),imageCrop:a,linkTo:o}=e;return(0,Ke.createElement)("ul",{className:`columns-${n} ${a?"is-cropped":""}`},t.map((e=>{let t;switch(o){case"media":t=e.url;break;case"attachment":t=e.link}const n=(0,Ke.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link,className:e.id?`wp-image-${e.id}`:null});return(0,Ke.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},(0,Ke.createElement)("figure",null,t?(0,Ke.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",value:e.caption})))})))}},Yc={attributes:{images:{type:"array",default:[],source:"query",selector:"div.wp-block-gallery figure.blocks-gallery-image img",query:{url:{source:"attribute",attribute:"src"},alt:{source:"attribute",attribute:"alt",default:""},id:{source:"attribute",attribute:"data-id"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},align:{type:"string",default:"none"}},supports:{align:!0},save({attributes:e}){const{images:t,columns:n=Gc(e),align:a,imageCrop:o,linkTo:r}=e,l=ut(`columns-${n}`,{alignnone:"none"===a,"is-cropped":o});return(0,Ke.createElement)("div",{className:l},t.map((e=>{let t;switch(r){case"media":t=e.url;break;case"attachment":t=e.link}const n=(0,Ke.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id});return(0,Ke.createElement)("figure",{key:e.id||e.url,className:"blocks-gallery-image"},t?(0,Ke.createElement)("a",{href:t},n):n)})))},migrate:e=>Fc()?Uc(e):e},Jc=[qc,jc,Wc,Zc,Qc,Kc,Yc],Xc=window.wp.viewport,em=(0,Ke.createElement)(nt.BlockIcon,{icon:Mc}),tm=20,nm="none",am="media",om="attachment",rm="custom",lm=["noreferrer","noopener"],im=["image"];function sm(e,t,n){switch(n||t){case Lc:case Rc:return{href:e?.source_url||e?.url,linkDestination:am};case Hc:case Ac:return{href:e?.link,linkDestination:om};case zc:return{href:void 0,linkDestination:nm}}return{}}function cm(e,{rel:t}){const n=e?"_blank":void 0;let a;return a=n||t?function(e){let t=e;return void 0!==e&&t&&(lm.forEach((e=>{const n=new RegExp("\\b"+e+"\\b","gi");t=t.replace(n,"")})),t!==e&&(t=t.trim()),t||(t=void 0)),t}(t):void 0,{linkTarget:n,rel:a}}function mm(e){const{attributes:t,isSelected:n,setAttributes:a,mediaPlaceholder:o,insertBlocksAfter:r,blockProps:l,__unstableLayoutClassNames:i,isContentLocked:s,multiGallerySelection:c}=e,{align:m,columns:u,imageCrop:p}=t;return(0,Ke.createElement)("figure",{...l,className:ut(l.className,i,"blocks-gallery-grid",{[`align${m}`]:m,[`columns-${u}`]:void 0!==u,"columns-default":void 0===u,"is-cropped":p})},l.children,n&&!l.children&&(0,Ke.createElement)(Ye.View,{className:"blocks-gallery-media-placeholder-wrapper"},o),(0,Ke.createElement)(Zt,{attributes:t,setAttributes:a,isSelected:n,insertBlocksAfter:r,showToolbarButton:!c&&!s,className:"blocks-gallery-caption",label:(0,tt.__)("Gallery caption text"),placeholder:(0,tt.__)("Add gallery caption")}))}function um(e,t,n){return(0,_t.useMemo)((()=>function(){if(!e||0===e.length)return;const{imageSizes:a}=n();let o={};t&&(o=e.reduce(((e,t)=>{if(!t.id)return e;const n=a.reduce(((e,n)=>{const a=t.sizes?.[n.slug]?.url,o=t.media_details?.sizes?.[n.slug]?.source_url;return{...e,[n.slug]:a||o}}),{});return{...e,[parseInt(t.id,10)]:n}}),{}));const r=Object.values(o);return a.filter((({slug:e})=>r.some((t=>t[e])))).map((({name:e,slug:t})=>({value:t,label:e})))}()),[e,t])}function pm(e,t){const[n,a]=(0,_t.useState)([]);return(0,_t.useMemo)((()=>function(){let o=!1;const r=n.filter((t=>e.find((e=>t.clientId===e.clientId))));r.length<n.length&&(o=!0);e.forEach((e=>{e.fromSavedContent&&!r.find((t=>t.id===e.id))&&(o=!0,r.push(e))}));const l=e.filter((e=>!r.find((t=>e.clientId&&t.clientId===e.clientId))&&t?.find((t=>t.id===e.id))&&!e.fromSavedConent));(o||l?.length>0)&&a([...r,...l]);return l.length>0?l:null}()),[e,t])}const dm=[];const{useStyleOverride:gm}=Ht(nt.privateApis);function hm({blockGap:e,clientId:t}){const n="var( --wp--style--gallery-gap-default, var( --gallery-block--gutter-size, var( --wp--style--block-gap, 0.5em ) ) )";let a,o=n,r=n;e&&(a="string"==typeof e?(0,nt.__experimentalGetGapCSSValue)(e):(0,nt.__experimentalGetGapCSSValue)(e?.top)||n,r="string"==typeof e?(0,nt.__experimentalGetGapCSSValue)(e):(0,nt.__experimentalGetGapCSSValue)(e?.left)||n,o=a===r?a:`${a} ${r}`);return gm({css:`#block-${t} {\n\t\t--wp--style--unstable-gallery-gap: ${"0"===r?"0px":r};\n\t\tgap: ${o}\n\t}`}),null}const bm=[{value:Ac,label:(0,tt.__)("Attachment Page")},{value:Rc,label:(0,tt.__)("Media File")},{value:zc,label:(0,tt._x)("None","Media item link option")}],_m=["image"],ym=_t.Platform.isNative?(0,tt.__)("Add media"):(0,tt.__)("Drag images, upload new ones or select files from your library."),vm=_t.Platform.isNative?{type:"stepper"}:{},fm={name:"core/image"},km=[];const xm=(0,jt.compose)([(0,Xc.withViewportMatch)({isNarrow:"< small"})])((function(e){const{setAttributes:t,attributes:n,className:a,clientId:o,isSelected:r,insertBlocksAfter:l,isContentLocked:i,onFocus:s}=e,{columns:c,imageCrop:m,randomOrder:u,linkTarget:p,linkTo:d,sizeSlug:g}=n,{__unstableMarkNextChangeAsNotPersistent:h,replaceInnerBlocks:b,updateBlockAttributes:_,selectBlock:y}=(0,gt.useDispatch)(nt.store),{createSuccessNotice:v,createErrorNotice:f}=(0,gt.useDispatch)(Pt.store),{getBlock:k,getSettings:x,innerBlockImages:w,blockWasJustInserted:E,multiGallerySelection:C}=(0,gt.useSelect)((e=>{var t;const{getBlockName:n,getMultiSelectedBlockClientIds:a,getSettings:r,getBlock:l,wasBlockJustInserted:i}=e(nt.store),s=a();return{getBlock:l,getSettings:r,innerBlockImages:null!==(t=l(o)?.innerBlocks)&&void 0!==t?t:km,blockWasJustInserted:i(o,"inserter_menu"),multiGallerySelection:s.length&&s.every((e=>"core/gallery"===n(e)))}}),[o]),S=(0,_t.useMemo)((()=>w?.map((e=>({clientId:e.clientId,id:e.attributes.id,url:e.attributes.url,attributes:e.attributes,fromSavedContent:Boolean(e.originalContent)})))),[w]),B=function(e){return(0,gt.useSelect)((t=>{var n;const a=e.map((e=>e.attributes.id)).filter((e=>void 0!==e));return 0===a.length?dm:null!==(n=t(dt.store).getMediaItems({include:a.join(","),per_page:-1,orderby:"include"}))&&void 0!==n?n:dm}),[e])}(w),N=pm(S,B);(0,_t.useEffect)((()=>{N?.forEach((e=>{h(),_(e.clientId,{...I(e.attributes),id:e.id,align:void 0})}))}),[N]);const T=um(B,r,x);function I(e){const t=e.id?B.find((({id:t})=>t===e.id)):null;let a,o;return e.className&&""!==e.className&&(a=e.className),o=e.linkTarget||e.rel?{linkTarget:e.linkTarget,rel:e.rel}:cm(p,n),{...Dc(t,g),...sm(t,d,e?.linkDestination),...o,className:a,sizeSlug:g,caption:e.caption||t.caption?.raw,alt:e.alt||t.alt_text}}function P(e){const t=_t.Platform.isNative&&e.id?B.find((({id:t})=>t===e.id)):null,n=t?t?.media_type:e.type;return _m.some((e=>0===n?.indexOf(e)))||0===e.url?.indexOf("blob:")}function M(e){const t="[object FileList]"===Object.prototype.toString.call(e),n=t?Array.from(e).map((e=>e.url?e:Dc({url:(0,It.createBlobURL)(e)}))):e;n.every(P)||f((0,tt.__)("If uploading to a gallery all files need to be image formats"),{id:"gallery-upload-invalid-file",type:"snackbar"});const a=n.filter((e=>e.url||P(e))).map((e=>e.url?e:Dc({url:(0,It.createBlobURL)(e)}))),r=a.reduce(((e,t,n)=>(e[t.id]=n,e)),{}),l=t?w:w.filter((e=>a.find((t=>t.id===e.attributes.id)))),i=a.filter((e=>!l.find((t=>e.id===t.attributes.id)))).map((e=>(0,Qe.createBlock)("core/image",{id:e.id,url:e.url,caption:e.caption,alt:e.alt})));b(o,l.concat(i).sort(((e,t)=>r[e.attributes.id]-r[t.attributes.id]))),i?.length>0&&y(i[0].clientId)}(0,_t.useEffect)((()=>{d||(h(),t({linkTo:window?.wp?.media?.view?.settings?.defaultProps?.link||zc}))}),[d]);const z=!!S.length,R=z&&S.some((e=>!!e.id)),A=S.some((e=>_t.Platform.isNative?0===e.url?.indexOf("file:"):!e.id&&0===e.url?.indexOf("blob:"))),L=_t.Platform.select({web:{addToGallery:!1,disableMediaButtons:A,value:{}},native:{addToGallery:R,isAppender:z,disableMediaButtons:z&&!r||A,value:R?S:{},autoOpenMediaUpload:!z&&r&&E,onFocus:s}}),H=(0,Ke.createElement)(nt.MediaPlaceholder,{handleUpload:!1,icon:em,labels:{title:(0,tt.__)("Gallery"),instructions:ym},onSelect:M,accept:"image/*",allowedTypes:_m,multiple:!0,onError:function(e){f(e,{type:"snackbar"})},...L}),D=(0,nt.useBlockProps)({className:ut(a,"has-nested-images")}),F=_t.Platform.isNative&&{marginHorizontal:0,marginVertical:0},V=(0,nt.useInnerBlocksProps)(D,{defaultBlock:fm,directInsert:!0,orientation:"horizontal",renderAppender:!1,...F});if(!z)return(0,Ke.createElement)(Ye.View,{...V},V.children,H);const $=d&&"none"!==d;return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},S.length>1&&(0,Ke.createElement)(et.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Columns"),value:c||(G=S.length,G?Math.min(3,G):3),onChange:function(e){t({columns:e})},min:1,max:Math.min(8,S.length),...vm,required:!0,__next40pxDefaultSize:!0}),T?.length>0&&(0,Ke.createElement)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Resolution"),help:(0,tt.__)("Select the size of the source images."),value:g,options:T,onChange:function(e){t({sizeSlug:e});const n={},a=[];k(o).innerBlocks.forEach((t=>{a.push(t.clientId);const o=t.attributes.id?B.find((({id:e})=>e===t.attributes.id)):null;n[t.clientId]=function(e,t){const n=e?.media_details?.sizes?.[t]?.source_url;return n?{url:n,width:void 0,height:void 0,sizeSlug:t}:{}}(o,e)})),_(a,n,!0);const r=T.find((t=>t.value===e));v((0,tt.sprintf)((0,tt.__)("All gallery image sizes updated to: %s"),r.label),{id:"gallery-attributes-sizeSlug",type:"snackbar"})},hideCancelButton:!0,size:"__unstable-large"}),(0,Ke.createElement)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Link to"),value:d,onChange:function(e){t({linkTo:e});const n={},a=[];k(o).innerBlocks.forEach((t=>{a.push(t.clientId);const o=t.attributes.id?B.find((({id:e})=>e===t.attributes.id)):null;n[t.clientId]=sm(o,e)})),_(a,n,!0);const r=[...bm].find((t=>t.value===e));v((0,tt.sprintf)((0,tt.__)("All gallery image links updated to: %s"),r.label),{id:"gallery-attributes-linkTo",type:"snackbar"})},options:bm,hideCancelButton:!0,size:"__unstable-large"}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Crop images to fit"),checked:!!m,onChange:function(){t({imageCrop:!m})}}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Randomize order"),checked:!!u,onChange:function(){t({randomOrder:!u})}}),$&&(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Open images in new tab"),checked:"_blank"===p,onChange:function(e){const n=e?"_blank":void 0;t({linkTarget:n});const a={},r=[];k(o).innerBlocks.forEach((e=>{r.push(e.clientId),a[e.clientId]=cm(n,e.attributes)})),_(r,a,!0);const l=e?(0,tt.__)("All gallery images updated to open in new tab"):(0,tt.__)("All gallery images updated to not open in new tab");v(l,{id:"gallery-attributes-openInNewTab",type:"snackbar"})}}),_t.Platform.isWeb&&!T&&R&&(0,Ke.createElement)(et.BaseControl,{className:"gallery-image-sizes"},(0,Ke.createElement)(et.BaseControl.VisualLabel,null,(0,tt.__)("Resolution")),(0,Ke.createElement)(Ye.View,{className:"gallery-image-sizes__loading"},(0,Ke.createElement)(et.Spinner,null),(0,tt.__)("Loading options…"))))),_t.Platform.isWeb&&(0,Ke.createElement)(Ke.Fragment,null,!C&&(0,Ke.createElement)(nt.BlockControls,{group:"other"},(0,Ke.createElement)(nt.MediaReplaceFlow,{allowedTypes:_m,accept:"image/*",handleUpload:!1,onSelect:M,name:(0,tt.__)("Add"),multiple:!0,mediaIds:S.filter((e=>e.id)).map((e=>e.id)),addToGallery:R})),(0,Ke.createElement)(hm,{blockGap:n.style?.spacing?.blockGap,clientId:o})),(0,Ke.createElement)(mm,{...e,isContentLocked:i,images:S,mediaPlaceholder:!z||_t.Platform.isNative?H:void 0,blockProps:V,insertBlocksAfter:l,multiGallerySelection:C}));var G})),wm=(e,t="large")=>{const n=Object.fromEntries(Object.entries(null!=e?e:{}).filter((([e])=>["alt","id","link","caption"].includes(e))));n.url=e?.sizes?.[t]?.url||e?.media_details?.sizes?.[t]?.source_url||e?.url;const a=e?.sizes?.full?.url||e?.media_details?.sizes?.full?.source_url;return a&&(n.fullUrl=a),n},Em=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V5c-.1-.3.1-.5.4-.5zm14 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})),Cm=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})),Sm=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})),Bm=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})),Nm="none",Tm="file",Im="post";class Pm extends _t.Component{constructor(){super(...arguments),this.onSelectImage=this.onSelectImage.bind(this),this.onRemoveImage=this.onRemoveImage.bind(this),this.bindContainer=this.bindContainer.bind(this),this.onEdit=this.onEdit.bind(this),this.onSelectImageFromLibrary=this.onSelectImageFromLibrary.bind(this),this.onSelectCustomURL=this.onSelectCustomURL.bind(this),this.state={isEditing:!1}}bindContainer(e){this.container=e}onSelectImage(){this.props.isSelected||this.props.onSelect()}onRemoveImage(e){this.container===this.container.ownerDocument.activeElement&&this.props.isSelected&&-1!==[vn.BACKSPACE,vn.DELETE].indexOf(e.keyCode)&&(e.preventDefault(),this.props.onRemove())}onEdit(){this.setState({isEditing:!0})}componentDidUpdate(){const{image:e,url:t,__unstableMarkNextChangeAsNotPersistent:n}=this.props;e&&!t&&(n(),this.props.setAttributes({url:e.source_url,alt:e.alt_text}))}deselectOnBlur(){this.props.onDeselect()}onSelectImageFromLibrary(e){const{setAttributes:t,id:n,url:a,alt:o,caption:r,sizeSlug:l}=this.props;if(!e||!e.url)return;let i=wm(e,l);if(((e,t)=>!e&&(0,It.isBlobURL)(t))(n,a)&&o){const{alt:e,...t}=i;i=t}if(r&&!i.caption){const{caption:e,...t}=i;i=t}t(i),this.setState({isEditing:!1})}onSelectCustomURL(e){const{setAttributes:t,url:n}=this.props;e!==n&&(t({url:e,id:void 0}),this.setState({isEditing:!1}))}render(){const{url:e,alt:t,id:n,linkTo:a,link:o,isFirstItem:r,isLastItem:l,isSelected:i,caption:s,onRemove:c,onMoveForward:m,onMoveBackward:u,setAttributes:p,"aria-label":d}=this.props,{isEditing:g}=this.state;let h;switch(a){case Tm:h=e;break;case Im:h=o}const b=(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)("img",{src:e,alt:t,"data-id":n,onKeyDown:this.onRemoveImage,tabIndex:"0","aria-label":d,ref:this.bindContainer}),(0,It.isBlobURL)(e)&&(0,Ke.createElement)(et.Spinner,null)),_=ut({"is-selected":i,"is-transient":(0,It.isBlobURL)(e)});return(0,Ke.createElement)("figure",{className:_,onClick:this.onSelectImage,onFocus:this.onSelectImage},!g&&(h?(0,Ke.createElement)("a",{href:h},b):b),g&&(0,Ke.createElement)(nt.MediaPlaceholder,{labels:{title:(0,tt.__)("Edit gallery image")},icon:Em,onSelect:this.onSelectImageFromLibrary,onSelectURL:this.onSelectCustomURL,accept:"image/*",allowedTypes:["image"],value:{id:n,src:e}}),(0,Ke.createElement)(et.ButtonGroup,{className:"block-library-gallery-item__inline-menu is-left"},(0,Ke.createElement)(et.Button,{icon:Cm,onClick:r?void 0:u,label:(0,tt.__)("Move image backward"),"aria-disabled":r,disabled:!i}),(0,Ke.createElement)(et.Button,{icon:Sm,onClick:l?void 0:m,label:(0,tt.__)("Move image forward"),"aria-disabled":l,disabled:!i})),(0,Ke.createElement)(et.ButtonGroup,{className:"block-library-gallery-item__inline-menu is-right"},(0,Ke.createElement)(et.Button,{icon:Vi,onClick:this.onEdit,label:(0,tt.__)("Replace image"),disabled:!i}),(0,Ke.createElement)(et.Button,{icon:Bm,onClick:c,label:(0,tt.__)("Remove image"),disabled:!i})),!g&&(i||s)&&(0,Ke.createElement)(nt.RichText,{tagName:"figcaption",className:(0,nt.__experimentalGetElementClassName)("caption"),"aria-label":(0,tt.__)("Image caption text"),placeholder:i?(0,tt.__)("Add caption"):null,value:s,onChange:e=>p({caption:e}),inlineToolbar:!0}))}}const Mm=(0,jt.compose)([(0,gt.withSelect)(((e,t)=>{const{getMedia:n}=e(dt.store),{id:a}=t;return{image:a?n(parseInt(a,10)):null}})),(0,gt.withDispatch)((e=>{const{__unstableMarkNextChangeAsNotPersistent:t}=e(nt.store);return{__unstableMarkNextChangeAsNotPersistent:t}}))])(Pm);function zm({isHidden:e,...t}){return e?(0,Ke.createElement)(et.VisuallyHidden,{as:nt.RichText,...t}):(0,Ke.createElement)(nt.RichText,{...t})}const Rm=e=>{const{attributes:t,isSelected:n,setAttributes:a,selectedImage:o,mediaPlaceholder:r,onMoveBackward:l,onMoveForward:i,onRemoveImage:s,onSelectImage:c,onDeselectImage:m,onSetImageAttributes:u,insertBlocksAfter:p,blockProps:d}=e,{align:g,columns:h=Gc(t),caption:b,imageCrop:_,images:y}=t;return(0,Ke.createElement)("figure",{...d,className:ut(d.className,{[`align${g}`]:g,[`columns-${h}`]:h,"is-cropped":_})},(0,Ke.createElement)("ul",{className:"blocks-gallery-grid"},y.map(((e,a)=>{const r=(0,tt.sprintf)((0,tt.__)("image %1$d of %2$d in gallery"),a+1,y.length);return(0,Ke.createElement)("li",{className:"blocks-gallery-item",key:e.id?`${e.id}-${a}`:e.url},(0,Ke.createElement)(Mm,{url:e.url,alt:e.alt,id:e.id,isFirstItem:0===a,isLastItem:a+1===y.length,isSelected:n&&o===a,onMoveBackward:l(a),onMoveForward:i(a),onRemove:s(a),onSelect:c(a),onDeselect:m(a),setAttributes:e=>u(a,e),caption:e.caption,"aria-label":r,sizeSlug:t.sizeSlug}))}))),r,(0,Ke.createElement)(zm,{isHidden:!n&&nt.RichText.isEmpty(b),tagName:"figcaption",className:ut("blocks-gallery-caption",(0,nt.__experimentalGetElementClassName)("caption")),"aria-label":(0,tt.__)("Gallery caption text"),placeholder:(0,tt.__)("Write gallery caption…"),value:b,onChange:e=>a({caption:e}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>p((0,Qe.createBlock)((0,Qe.getDefaultBlockName)()))}))},Am=[{value:Im,label:(0,tt.__)("Attachment Page")},{value:Tm,label:(0,tt.__)("Media File")},{value:Nm,label:(0,tt.__)("None")}],Lm=["image"],Hm=_t.Platform.select({web:(0,tt.__)("Drag images, upload new ones or select files from your library."),native:(0,tt.__)("ADD MEDIA")}),Dm=_t.Platform.select({web:{},native:{type:"stepper"}});const Fm=(0,jt.compose)([et.withNotices,(0,Xc.withViewportMatch)({isNarrow:"< small"})])((function(e){const{attributes:t,clientId:n,isSelected:a,noticeUI:o,noticeOperations:r,onFocus:l}=e,{columns:i=Gc(t),imageCrop:s,images:c,linkTo:m,sizeSlug:u}=t,[p,d]=(0,_t.useState)(),[g,h]=(0,_t.useState)(),{__unstableMarkNextChangeAsNotPersistent:b}=(0,gt.useDispatch)(nt.store),{imageSizes:_,mediaUpload:y,getMedia:v,wasBlockJustInserted:f}=(0,gt.useSelect)((e=>{const t=e(nt.store).getSettings();return{imageSizes:t.imageSizes,mediaUpload:t.mediaUpload,getMedia:e(dt.store).getMedia,wasBlockJustInserted:e(nt.store).wasBlockJustInserted(n,"inserter_menu")}})),k=(0,_t.useMemo)((()=>{var e;return a?(null!==(e=t.ids)&&void 0!==e?e:[]).reduce(((e,t)=>{if(!t)return e;const n=v(t),a=_.reduce(((e,t)=>{const a=n?.sizes?.[t.slug]?.url,o=n?.media_details?.sizes?.[t.slug]?.source_url;return{...e,[t.slug]:a||o}}),{});return{...e,[parseInt(t,10)]:a}}),{}):{}}),[a,t.ids,_]);function x(t){if(t.ids)throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes');t.images&&(t={...t,ids:t.images.map((({id:e})=>parseInt(e,10)))}),e.setAttributes(t)}function w(e,t){const n=[...c];n.splice(t,1,c[e]),n.splice(e,1,c[t]),d(t),x({images:n})}function E(e){const t=e.id.toString(),n=c.find((({id:e})=>e===t)),a=n?n.caption:e.caption;if(!g)return a;const o=g.find((({id:e})=>e===t));return o&&o.caption!==e.caption?e.caption:a}function C(e){h(e.map((e=>({id:e.id.toString(),caption:e.caption})))),x({images:e.map((e=>({...wm(e,u),caption:E(e),id:e.id.toString()}))),columns:t.columns?Math.min(e.length,t.columns):t.columns})}(0,_t.useEffect)((()=>{if("web"===_t.Platform.OS&&c&&c.length>0&&c.every((({url:e})=>(0,It.isBlobURL)(e)))){const e=c.map((({url:e})=>(0,It.getBlobByURL)(e)));c.forEach((({url:e})=>(0,It.revokeBlobURL)(e))),y({filesList:e,onFileChange:C,allowedTypes:["image"]})}}),[]),(0,_t.useEffect)((()=>{a||d()}),[a]),(0,_t.useEffect)((()=>{m||(b(),x({linkTo:window?.wp?.media?.view?.settings?.defaultProps?.link||Nm}))}),[m]);const S=!!c.length,B=S&&c.some((e=>!!e.id)),N=(0,Ke.createElement)(nt.MediaPlaceholder,{addToGallery:B,isAppender:S,disableMediaButtons:S&&!a,icon:!S&&em,labels:{title:!S&&(0,tt.__)("Gallery"),instructions:!S&&Hm},onSelect:C,accept:"image/*",allowedTypes:Lm,multiple:!0,value:B?c:{},onError:function(e){r.removeAllNotices(),r.createErrorNotice(e)},notices:S?void 0:o,onFocus:l,autoOpenMediaUpload:!S&&a&&f}),T=(0,nt.useBlockProps)();if(!S)return(0,Ke.createElement)(Ye.View,{...T},N);const I=function(){const e=Object.values(k);return _.filter((({slug:t})=>e.some((e=>e[t])))).map((({name:e,slug:t})=>({value:t,label:e})))}(),P=S&&I.length>0;return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},c.length>1&&(0,Ke.createElement)(et.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Columns"),value:i,onChange:function(e){x({columns:e})},min:1,max:Math.min(8,c.length),...Dm,required:!0}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Crop images"),checked:!!s,onChange:function(){x({imageCrop:!s})},help:function(e){return e?(0,tt.__)("Thumbnails are cropped to align."):(0,tt.__)("Thumbnails are not cropped.")}}),(0,Ke.createElement)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Link to"),value:m,onChange:function(e){x({linkTo:e})},options:Am,hideCancelButton:!0}),P&&(0,Ke.createElement)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Image size"),value:u,options:I,onChange:function(e){x({images:(null!=c?c:[]).map((t=>{if(!t.id)return t;const n=k[parseInt(t.id,10)]?.[e];return{...t,...n&&{url:n}}})),sizeSlug:e})},hideCancelButton:!0}))),o,(0,Ke.createElement)(Rm,{...e,selectedImage:p,mediaPlaceholder:N,onMoveBackward:function(e){return()=>{0!==e&&w(e,e-1)}},onMoveForward:function(e){return()=>{e!==c.length-1&&w(e,e+1)}},onRemoveImage:function(e){return()=>{const n=c.filter(((t,n)=>e!==n));d(),x({images:n,columns:t.columns?Math.min(n.length,t.columns):t.columns})}},onSelectImage:function(e){return()=>{d(e)}},onDeselectImage:function(){return()=>{d()}},onSetImageAttributes:function(e,t){c[e]&&x({images:[...c.slice(0,e),{...c[e],...t},...c.slice(e+1)]})},blockProps:T,onFocusGalleryCaption:function(){d()}}))}));const Vm=(0,jt.compose)([et.withNotices])((function(e){return Fc()?(0,Ke.createElement)(xm,{...e}):(0,Ke.createElement)(Fm,{...e})}));(0,vi.addFilter)("blocks.switchToBlockType.transformedBlock","core/gallery/update-third-party-transform-to",(function(e){if(Fc()&&"core/gallery"===e.name&&e.attributes?.images.length>0){const t=e.attributes.images.map((({url:t,id:n,alt:a})=>(0,Qe.createBlock)("core/image",{url:t,id:n?parseInt(n,10):null,alt:a,sizeSlug:e.attributes.sizeSlug,linkDestination:e.attributes.linkDestination})));delete e.attributes.ids,delete e.attributes.images,e.innerBlocks=t}return e})),(0,vi.addFilter)("blocks.switchToBlockType.transformedBlock","core/gallery/update-third-party-transform-from",(function(e,t){const n=(Array.isArray(t)?t:[t]).find((t=>"core/gallery"===t.name&&t.innerBlocks.length>0&&!t.attributes.images?.length>0&&!e.name.includes("core/")));if(n){const e=n.innerBlocks.map((({attributes:{url:e,id:t,alt:n}})=>({url:e,id:t?parseInt(t,10):null,alt:n}))),t=e.map((({id:e})=>e));n.attributes.images=e,n.attributes.ids=t}return e}));const $m={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:e=>{let{align:t,sizeSlug:n}=e[0];t=e.every((e=>e.align===t))?t:void 0,n=e.every((e=>e.sizeSlug===n))?n:void 0;const a=e.filter((({url:e})=>e));if(Fc()){const e=a.map((e=>(e.width=void 0,e.height=void 0,(0,Qe.createBlock)("core/image",e))));return(0,Qe.createBlock)("core/gallery",{align:t,sizeSlug:n},e)}return(0,Qe.createBlock)("core/gallery",{images:a.map((({id:e,url:t,alt:n,caption:a})=>({id:e.toString(),url:t,alt:n,caption:a}))),ids:a.map((({id:e})=>parseInt(e,10))),align:t,sizeSlug:n})}},{type:"shortcode",tag:"gallery",transform({named:{ids:e,columns:t=3,link:n,orderby:a}}){const o=(e=>e?e.split(",").map((e=>parseInt(e,10))):[])(e).map((e=>parseInt(e,10)));let r=zc;"post"===n?r=Ac:"file"===n&&(r=Rc);return(0,Qe.createBlock)("core/gallery",{columns:parseInt(t,10),linkTo:r,randomOrder:"rand"===a},o.map((e=>(0,Qe.createBlock)("core/image",{id:e}))))},isMatch:({named:e})=>void 0!==e.ids},{type:"files",priority:1,isMatch:e=>1!==e.length&&e.every((e=>0===e.type.indexOf("image/"))),transform(e){if(Fc()){const t=e.map((e=>(0,Qe.createBlock)("core/image",{url:(0,It.createBlobURL)(e)})));return(0,Qe.createBlock)("core/gallery",{},t)}const t=(0,Qe.createBlock)("core/gallery",{images:e.map((e=>Dc({url:(0,It.createBlobURL)(e)})))});return t}}],to:[{type:"block",blocks:["core/image"],transform:({align:e,images:t,ids:n,sizeSlug:a},o)=>Fc()?o.length>0?o.map((({attributes:{url:t,alt:n,caption:a,title:o,href:r,rel:l,linkClass:i,id:s,sizeSlug:c,linkDestination:m,linkTarget:u,anchor:p,className:d}})=>(0,Qe.createBlock)("core/image",{align:e,url:t,alt:n,caption:a,title:o,href:r,rel:l,linkClass:i,id:s,sizeSlug:c,linkDestination:m,linkTarget:u,anchor:p,className:d}))):(0,Qe.createBlock)("core/image",{align:e}):t.length>0?t.map((({url:t,alt:o,caption:r},l)=>(0,Qe.createBlock)("core/image",{id:n[l],url:t,alt:o,caption:r,align:e,sizeSlug:a}))):(0,Qe.createBlock)("core/image",{align:e})}]},Gm=$m,Om={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/gallery",title:"Gallery",category:"media",allowedBlocks:["core/image"],description:"Display multiple images in a rich gallery.",keywords:["images","photos"],textdomain:"default",attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"rich-text",source:"rich-text",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},shortCodeTransforms:{type:"array",items:{type:"object"},default:[]},columns:{type:"number",minimum:1,maximum:8},caption:{type:"rich-text",source:"rich-text",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},randomOrder:{type:"boolean",default:!1},fixedHeight:{type:"boolean",default:!0},linkTarget:{type:"string"},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"},allowResize:{type:"boolean",default:!1}},providesContext:{allowResize:"allowResize",imageCrop:"imageCrop",fixedHeight:"fixedHeight"},supports:{anchor:!0,align:!0,html:!1,units:["px","em","rem","vh","vw"],spacing:{margin:!0,padding:!0,blockGap:["horizontal","vertical"],__experimentalSkipSerialization:["blockGap"],__experimentalDefaultControls:{blockGap:!0,margin:!1,padding:!1}},color:{text:!1,background:!0,gradients:!0},layout:{allowSwitching:!1,allowInheriting:!1,allowEditing:!1,default:{type:"flex"}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-gallery-editor",style:"wp-block-gallery"},{name:Um}=Om,qm={icon:Mc,example:{attributes:{columns:2},innerBlocks:[{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Glacial_lakes%2C_Bhutan.jpg"}},{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Sediment_off_the_Yucatan_Peninsula.jpg"}}]},transforms:Gm,edit:Vm,save:function({attributes:e}){if(!Fc())return function({attributes:e}){const{images:t,columns:n=Gc(e),imageCrop:a,caption:o,linkTo:r}=e,l=`columns-${n} ${a?"is-cropped":""}`;return(0,Ke.createElement)("figure",{...nt.useBlockProps.save({className:l})},(0,Ke.createElement)("ul",{className:"blocks-gallery-grid"},t.map((e=>{let t;switch(r){case Tm:t=e.fullUrl||e.url;break;case Im:t=e.link}const n=(0,Ke.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?`wp-image-${e.id}`:null});return(0,Ke.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},(0,Ke.createElement)("figure",null,t?(0,Ke.createElement)("a",{href:t},n):n,!nt.RichText.isEmpty(e.caption)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",className:ut("blocks-gallery-item__caption",(0,nt.__experimentalGetElementClassName)("caption")),value:e.caption})))}))),!nt.RichText.isEmpty(o)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",className:ut("blocks-gallery-caption",(0,nt.__experimentalGetElementClassName)("caption")),value:o}))}({attributes:e});const{caption:t,columns:n,imageCrop:a}=e,o=ut("has-nested-images",{[`columns-${n}`]:void 0!==n,"columns-default":void 0===n,"is-cropped":a}),r=nt.useBlockProps.save({className:o}),l=nt.useInnerBlocksProps.save(r);return(0,Ke.createElement)("figure",{...l},l.children,!nt.RichText.isEmpty(t)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",className:ut("blocks-gallery-caption",(0,nt.__experimentalGetElementClassName)("caption")),value:t}))},deprecated:Jc},jm=()=>Xe({name:Um,metadata:Om,settings:qm}),Wm=e=>{if(e.tagName||(e={...e,tagName:"div"}),!e.customTextColor&&!e.customBackgroundColor)return e;const t={color:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor);const{customTextColor:n,customBackgroundColor:a,...o}=e;return{...o,style:t}},Zm=[{attributes:{tagName:{type:"string",default:"div"},templateLock:{type:["string","boolean"],enum:["all","insert",!1]}},supports:{__experimentalOnEnter:!0,__experimentalSettings:!0,align:["wide","full"],anchor:!0,ariaLabel:!0,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:["top","bottom"],padding:!0,blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},layout:!0},save:({attributes:{tagName:e}})=>(0,Ke.createElement)(e,{...nt.useInnerBlocksProps.save(nt.useBlockProps.save())}),isEligible:({layout:e})=>!e||e.inherit||e.contentSize&&"constrained"!==e.type,migrate:e=>{const{layout:t=null}=e;return t?t.inherit||t.contentSize?{...e,layout:{...t,type:"constrained"}}:void 0:e}},{attributes:{tagName:{type:"string",default:"div"},templateLock:{type:["string","boolean"],enum:["all","insert",!1]}},supports:{align:["wide","full"],anchor:!0,color:{gradients:!0,link:!0},spacing:{padding:!0},__experimentalBorder:{radius:!0}},save({attributes:e}){const{tagName:t}=e;return(0,Ke.createElement)(t,{...nt.useBlockProps.save()},(0,Ke.createElement)("div",{className:"wp-block-group__inner-container"},(0,Ke.createElement)(nt.InnerBlocks.Content,null)))}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:Wm,save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n,textColor:a,customTextColor:o}=e,r=(0,nt.getColorClassName)("background-color",t),l=(0,nt.getColorClassName)("color",a),i=ut(r,l,{"has-text-color":a||o,"has-background":t||n}),s={backgroundColor:r?void 0:n,color:l?void 0:o};return(0,Ke.createElement)("div",{className:i,style:s},(0,Ke.createElement)("div",{className:"wp-block-group__inner-container"},(0,Ke.createElement)(nt.InnerBlocks.Content,null)))}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},migrate:Wm,supports:{align:["wide","full"],anchor:!0,html:!1},save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n,textColor:a,customTextColor:o}=e,r=(0,nt.getColorClassName)("background-color",t),l=(0,nt.getColorClassName)("color",a),i=ut(r,{"has-text-color":a||o,"has-background":t||n}),s={backgroundColor:r?void 0:n,color:l?void 0:o};return(0,Ke.createElement)("div",{className:i,style:s},(0,Ke.createElement)("div",{className:"wp-block-group__inner-container"},(0,Ke.createElement)(nt.InnerBlocks.Content,null)))}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:Wm,save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n}=e,a=(0,nt.getColorClassName)("background-color",t),o=ut(a,{"has-background":t||n}),r={backgroundColor:a?void 0:n};return(0,Ke.createElement)("div",{className:o,style:r},(0,Ke.createElement)(nt.InnerBlocks.Content,null))}}],Qm=Zm,Km=(e="group")=>{const t={group:(0,Ke.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48"},(0,Ke.createElement)(et.Path,{d:"M0 10a2 2 0 0 1 2-2h44a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Z"})),"group-row":(0,Ke.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48"},(0,Ke.createElement)(et.Path,{d:"M0 10a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm25 0a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H27a2 2 0 0 1-2-2V10Z"})),"group-stack":(0,Ke.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48"},(0,Ke.createElement)(et.Path,{d:"M0 10a2 2 0 0 1 2-2h44a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm0 17a2 2 0 0 1 2-2h44a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V27Z"})),"group-grid":(0,Ke.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48"},(0,Ke.createElement)(et.Path,{d:"M0 10a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm25 0a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H27a2 2 0 0 1-2-2V10ZM0 27a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V27Zm25 0a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H27a2 2 0 0 1-2-2V27Z"}))};return t?.[e]};const Ym=function({name:e,onSelect:t}){const n=(0,gt.useSelect)((t=>t(Qe.store).getBlockVariations(e,"block")),[e]),a=(0,nt.useBlockProps)({className:"wp-block-group__placeholder"});return(0,Ke.createElement)("div",{...a},(0,Ke.createElement)(et.Placeholder,{instructions:(0,tt.__)("Group blocks together. Select a layout:")},(0,Ke.createElement)("ul",{role:"list",className:"wp-block-group-placeholder__variations","aria-label":(0,tt.__)("Block variations")},n.map((e=>(0,Ke.createElement)("li",{key:e.name},(0,Ke.createElement)(et.Button,{__next40pxDefaultSize:!0,variant:"tertiary",icon:Km(e.name),iconSize:48,onClick:()=>t(e),className:"wp-block-group-placeholder__variation-button",label:`${e.title}: ${e.description}`})))))))};function Jm({tagName:e,onSelectTagName:t}){const n={header:(0,tt.__)("The <header> element should represent introductory content, typically a group of introductory or navigational aids."),main:(0,tt.__)("The <main> element should be used for the primary content of your document only. "),section:(0,tt.__)("The <section> element should represent a standalone portion of the document that can't be better represented by another element."),article:(0,tt.__)("The <article> element should represent a self-contained, syndicatable portion of the document."),aside:(0,tt.__)("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content."),footer:(0,tt.__)("The <footer> element should represent a footer for its nearest sectioning element (e.g.: <section>, <article>, <main> etc.).")};return(0,Ke.createElement)(nt.InspectorControls,{group:"advanced"},(0,Ke.createElement)(et.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("HTML element"),options:[{label:(0,tt.__)("Default (<div>)"),value:"div"},{label:"<header>",value:"header"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"},{label:"<aside>",value:"aside"},{label:"<footer>",value:"footer"}],value:e,onChange:t,help:n[e]}))}const Xm=function({attributes:e,name:t,setAttributes:n,clientId:a}){const{hasInnerBlocks:o,themeSupportsLayout:r}=(0,gt.useSelect)((e=>{const{getBlock:t,getSettings:n}=e(nt.store),o=t(a);return{hasInnerBlocks:!(!o||!o.innerBlocks.length),themeSupportsLayout:n()?.supportsLayout}}),[a]),{tagName:l="div",templateLock:i,allowedBlocks:s,layout:c={}}=e,{type:m="default"}=c,u=r||"flex"===m||"grid"===m,p=(0,_t.useRef)(),d=(0,nt.useBlockProps)({ref:p}),[g,h]=function({attributes:e={style:void 0,backgroundColor:void 0,textColor:void 0,fontSize:void 0},usedLayoutType:t="",hasInnerBlocks:n=!1}){const{style:a,backgroundColor:o,textColor:r,fontSize:l}=e,[i,s]=(0,_t.useState)(!(n||o||l||r||a||"flex"===t||"grid"===t));return(0,_t.useEffect)((()=>{(n||o||l||r||a||"flex"===t)&&s(!1)}),[o,l,r,a,t,n]),[i,s]}({attributes:e,usedLayoutType:m,hasInnerBlocks:o});let b;g?b=!1:o||(b=nt.InnerBlocks.ButtonBlockAppender);const _=(0,nt.useInnerBlocksProps)(u?d:{className:"wp-block-group__inner-container"},{dropZoneElement:p.current,templateLock:i,allowedBlocks:s,renderAppender:b}),{selectBlock:y}=(0,gt.useDispatch)(nt.store);return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(Jm,{tagName:l,onSelectTagName:e=>n({tagName:e})}),g&&(0,Ke.createElement)(Ye.View,null,_.children,(0,Ke.createElement)(Ym,{name:t,onSelect:e=>{n(e.attributes),y(a,-1),h(!1)}})),u&&!g&&(0,Ke.createElement)(l,{..._}),!u&&!g&&(0,Ke.createElement)(l,{...d},(0,Ke.createElement)("div",{..._})))};const eu={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert(e){const t=["wide","full"],n=e.reduce(((e,n)=>{const{align:a}=n.attributes;return t.indexOf(a)>t.indexOf(e)?a:e}),void 0),a=e.map((e=>(0,Qe.createBlock)(e.name,e.attributes,e.innerBlocks)));return(0,Qe.createBlock)("core/group",{align:n,layout:{type:"constrained"}},a)}}]},tu=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M4 6.5h5a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H4V16h5a.5.5 0 0 0 .5-.5v-7A.5.5 0 0 0 9 8H4V6.5Zm16 0h-5a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h5V16h-5a.5.5 0 0 1-.5-.5v-7A.5.5 0 0 1 15 8h5V6.5Z"})),nu=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M17.5 4v5a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V4H8v5a.5.5 0 0 0 .5.5h7A.5.5 0 0 0 16 9V4h1.5Zm0 16v-5a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v5H8v-5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v5h1.5Z"})),au=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"m3 5c0-1.10457.89543-2 2-2h13.5c1.1046 0 2 .89543 2 2v13.5c0 1.1046-.8954 2-2 2h-13.5c-1.10457 0-2-.8954-2-2zm2-.5h6v6.5h-6.5v-6c0-.27614.22386-.5.5-.5zm-.5 8v6c0 .2761.22386.5.5.5h6v-6.5zm8 0v6.5h6c.2761 0 .5-.2239.5-.5v-6zm0-8v6.5h6.5v-6c0-.27614-.2239-.5-.5-.5z",fillRule:"evenodd",clipRule:"evenodd"})),ou=[{name:"group",title:(0,tt.__)("Group"),description:(0,tt.__)("Gather blocks in a container."),attributes:{layout:{type:"constrained"}},isDefault:!0,scope:["block","inserter","transform"],isActive:e=>!e.layout||!e.layout?.type||"default"===e.layout?.type||"constrained"===e.layout?.type,icon:wc},{name:"group-row",title:(0,tt._x)("Row","single horizontal line"),description:(0,tt.__)("Arrange blocks horizontally."),attributes:{layout:{type:"flex",flexWrap:"nowrap"}},scope:["block","inserter","transform"],isActive:e=>"flex"===e.layout?.type&&(!e.layout?.orientation||"horizontal"===e.layout?.orientation),icon:tu},{name:"group-stack",title:(0,tt.__)("Stack"),description:(0,tt.__)("Arrange blocks vertically."),attributes:{layout:{type:"flex",orientation:"vertical"}},scope:["block","inserter","transform"],isActive:e=>"flex"===e.layout?.type&&"vertical"===e.layout?.orientation,icon:nu},{name:"group-grid",title:(0,tt.__)("Grid"),description:(0,tt.__)("Arrange blocks in a grid."),attributes:{layout:{type:"grid"}},scope:["block","inserter","transform"],isActive:e=>"grid"===e.layout?.type,icon:au}],ru=ou,lu={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/group",title:"Group",category:"design",description:"Gather blocks in a layout container.",keywords:["container","wrapper","row","section"],textdomain:"default",attributes:{tagName:{type:"string",default:"div"},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]},allowedBlocks:{type:"array"}},supports:{__experimentalOnEnter:!0,__experimentalOnMerge:!0,__experimentalSettings:!0,align:["wide","full"],anchor:!0,ariaLabel:!0,html:!1,background:{backgroundImage:!0,backgroundSize:!0,__experimentalDefaultControls:{backgroundImage:!0}},color:{gradients:!0,heading:!0,button:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:["top","bottom"],padding:!0,blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},dimensions:{minHeight:!0},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},position:{sticky:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowSizingOnChildren:!0},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-group-editor",style:"wp-block-group"},{name:iu}=lu,su={icon:wc,example:{innerBlocks:[{name:"core/paragraph",attributes:{customTextColor:"#cf2e2e",fontSize:"large",content:(0,tt.__)("One.")}},{name:"core/paragraph",attributes:{customTextColor:"#ff6900",fontSize:"large",content:(0,tt.__)("Two.")}},{name:"core/paragraph",attributes:{customTextColor:"#fcb900",fontSize:"large",content:(0,tt.__)("Three.")}},{name:"core/paragraph",attributes:{customTextColor:"#00d084",fontSize:"large",content:(0,tt.__)("Four.")}},{name:"core/paragraph",attributes:{customTextColor:"#0693e3",fontSize:"large",content:(0,tt.__)("Five.")}},{name:"core/paragraph",attributes:{customTextColor:"#9b51e0",fontSize:"large",content:(0,tt.__)("Six.")}}]},transforms:eu,edit:Xm,save:function({attributes:{tagName:e}}){return(0,Ke.createElement)(e,{...nt.useInnerBlocksProps.save(nt.useBlockProps.save())})},deprecated:Qm,variations:ru},cu=()=>Xe({name:iu,metadata:lu,settings:su}),mu=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M6 5V18.5911L12 13.8473L18 18.5911V5H6Z"})),uu={className:!1,anchor:!0},pu={align:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},level:{type:"number",default:2},placeholder:{type:"string"}},du=e=>{if(!e.customTextColor)return e;const t={color:{text:e.customTextColor}},{customTextColor:n,...a}=e;return{...a,style:t}},gu=["left","right","center"],hu=e=>{const{align:t,...n}=e;return gu.includes(t)?{...n,textAlign:t}:e},bu={supports:uu,attributes:{...pu,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>du(hu(e)),save({attributes:e}){const{align:t,level:n,content:a,textColor:o,customTextColor:r}=e,l="h"+n,i=(0,nt.getColorClassName)("color",o),s=ut({[i]:i});return(0,Ke.createElement)(nt.RichText.Content,{className:s||void 0,tagName:l,style:{textAlign:t,color:i?void 0:r},value:a})}},_u={attributes:{...pu,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>du(hu(e)),save({attributes:e}){const{align:t,content:n,customTextColor:a,level:o,textColor:r}=e,l="h"+o,i=(0,nt.getColorClassName)("color",r),s=ut({[i]:i,[`has-text-align-${t}`]:t});return(0,Ke.createElement)(nt.RichText.Content,{className:s||void 0,tagName:l,style:{color:i?void 0:a},value:n})},supports:uu},yu={supports:uu,attributes:{...pu,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>du(hu(e)),save({attributes:e}){const{align:t,content:n,customTextColor:a,level:o,textColor:r}=e,l="h"+o,i=(0,nt.getColorClassName)("color",r),s=ut({[i]:i,"has-text-color":r||a,[`has-text-align-${t}`]:t});return(0,Ke.createElement)(nt.RichText.Content,{className:s||void 0,tagName:l,style:{color:i?void 0:a},value:n})}},vu={supports:{align:["wide","full"],anchor:!0,className:!1,color:{link:!0},fontSize:!0,lineHeight:!0,__experimentalSelector:{"core/heading/h1":"h1","core/heading/h2":"h2","core/heading/h3":"h3","core/heading/h4":"h4","core/heading/h5":"h5","core/heading/h6":"h6"},__unstablePasteTextInline:!0},attributes:pu,isEligible:({align:e})=>gu.includes(e),migrate:hu,save({attributes:e}){const{align:t,content:n,level:a}=e,o="h"+a,r=ut({[`has-text-align-${t}`]:t});return(0,Ke.createElement)(o,{...nt.useBlockProps.save({className:r})},(0,Ke.createElement)(nt.RichText.Content,{value:n}))}},fu={supports:{align:["wide","full"],anchor:!0,className:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0,textTransform:!0}},__experimentalSelector:"h1,h2,h3,h4,h5,h6",__unstablePasteTextInline:!0,__experimentalSlashInserter:!0},attributes:{textAlign:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:"",__experimentalRole:"content"},level:{type:"number",default:2},placeholder:{type:"string"}},save({attributes:e}){const{textAlign:t,content:n,level:a}=e,o="h"+a,r=ut({[`has-text-align-${t}`]:t});return(0,Ke.createElement)(o,{...nt.useBlockProps.save({className:r})},(0,Ke.createElement)(nt.RichText.Content,{value:n}))}},ku=[fu,vu,yu,_u,bu],xu={},wu=e=>rc()((e=>{const t=document.createElement("div");return t.innerHTML=e,t.innerText})(e)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase().replace(/(^-+)|(-+$)/g,""),Eu=(e,t)=>{const n=wu(t);if(""===n)return null;delete xu[e];let a=n,o=0;for(;Object.values(xu).includes(a);)o+=1,a=n+"-"+o;return a},Cu=(e,t)=>{xu[e]=t};const Su=function({attributes:e,setAttributes:t,mergeBlocks:n,onReplace:a,style:o,clientId:r}){const{textAlign:l,content:i,level:s,placeholder:c,anchor:m}=e,u="h"+s,p=(0,nt.useBlockProps)({className:ut({[`has-text-align-${l}`]:l}),style:o}),d=(0,nt.useBlockEditingMode)(),{canGenerateAnchors:g}=(0,gt.useSelect)((e=>{const{getGlobalBlockCount:t,getSettings:n}=e(nt.store);return{canGenerateAnchors:!!n().generateAnchors||t("core/table-of-contents")>0}}),[]),{__unstableMarkNextChangeAsNotPersistent:h}=(0,gt.useDispatch)(nt.store);return(0,_t.useEffect)((()=>{if(g)return!m&&i&&(h(),t({anchor:Eu(r,i)})),Cu(r,m),()=>Cu(r,null)}),[m,i,r,g]),(0,Ke.createElement)(Ke.Fragment,null,"default"===d&&(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(nt.HeadingLevelDropdown,{value:s,onChange:e=>t({level:e})}),(0,Ke.createElement)(nt.AlignmentControl,{value:l,onChange:e=>{t({textAlign:e})}})),(0,Ke.createElement)(nt.RichText,{identifier:"content",tagName:u,value:i,onChange:e=>{const n={content:e};!g||m&&e&&Eu(r,i)!==m||(n.anchor=Eu(r,e)),t(n)},onMerge:n,onReplace:a,onRemove:()=>a([]),placeholder:c||(0,tt.__)("Heading"),textAlign:l,..._t.Platform.isNative&&{deleteEnter:!0},...p}))};const Bu={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map((({content:e,anchor:t,align:n,metadata:a})=>(0,Qe.createBlock)("core/heading",{content:e,anchor:t,textAlign:n,metadata:Rn(a,"core/heading",(({content:e})=>({content:e})))})))},{type:"raw",selector:"h1,h2,h3,h4,h5,h6",schema:({phrasingContentSchema:e,isPaste:t})=>{const n={children:e,attributes:t?[]:["style","id"]};return{h1:n,h2:n,h3:n,h4:n,h5:n,h6:n}},transform(e){const t=(0,Qe.getBlockAttributes)("core/heading",e.outerHTML),{textAlign:n}=e.style||{};var a;return t.level=(a=e.nodeName,Number(a.substr(1))),"left"!==n&&"center"!==n&&"right"!==n||(t.align=n),(0,Qe.createBlock)("core/heading",t)}},...[1,2,3,4,5,6].map((e=>({type:"prefix",prefix:Array(e+1).join("#"),transform:t=>(0,Qe.createBlock)("core/heading",{level:e,content:t})}))),...[1,2,3,4,5,6].map((e=>({type:"enter",regExp:new RegExp(`^/(h|H)${e}$`),transform:()=>(0,Qe.createBlock)("core/heading",{level:e})})))],to:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map((({content:e,textAlign:t,metadata:n})=>(0,Qe.createBlock)("core/paragraph",{content:e,align:t,metadata:Rn(n,"core/paragraph",(({content:e})=>({content:e})))})))}]},Nu=Bu,Tu={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/heading",title:"Heading",category:"text",description:"Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content.",keywords:["title","subtitle"],textdomain:"default",attributes:{textAlign:{type:"string"},content:{type:"rich-text",source:"rich-text",selector:"h1,h2,h3,h4,h5,h6",__experimentalRole:"content"},level:{type:"number",default:2},placeholder:{type:"string"}},supports:{align:["wide","full"],anchor:!0,className:!0,splitting:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},__unstablePasteTextInline:!0,__experimentalSlashInserter:!0,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-heading-editor",style:"wp-block-heading"},{name:Iu}=Tu,Pu={icon:mu,example:{attributes:{content:(0,tt.__)("Code is Poetry"),level:2}},__experimentalLabel(e,{context:t}){const{content:n,level:a}=e,o=e?.metadata?.name,r=n?.trim().length>0;return"list-view"===t&&(o||r)?o||n:"accessibility"===t?r?(0,tt.sprintf)((0,tt.__)("Level %1$s. %2$s"),a,n):(0,tt.sprintf)((0,tt.__)("Level %s. Empty."),a):void 0},transforms:Nu,deprecated:ku,merge:(e,t)=>({content:(e.content||"")+(t.content||"")}),edit:Su,save:function({attributes:e}){const{textAlign:t,content:n,level:a}=e,o="h"+a,r=ut({[`has-text-align-${t}`]:t});return(0,Ke.createElement)(o,{...nt.useBlockProps.save({className:r})},(0,Ke.createElement)(nt.RichText.Content,{value:n}))}},Mu=()=>Xe({name:Iu,metadata:Tu,settings:Pu}),zu=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"})),Ru=e=>e.preventDefault();const Au={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/home-link",category:"design",parent:["core/navigation"],title:"Home Link",description:"Create a link that always points to the homepage of the site. Usually not necessary if there is already a site title link present in the header.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","fontSize","customFontSize","style"],supports:{reusable:!1,html:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-home-link-editor",style:"wp-block-home-link"},{name:Lu}=Au,Hu={icon:zu,edit:function({attributes:e,setAttributes:t,context:n}){const{homeUrl:a}=(0,gt.useSelect)((e=>{const{getUnstableBase:t}=e(dt.store);return{homeUrl:t()?.home}}),[]),{__unstableMarkNextChangeAsNotPersistent:o}=(0,gt.useDispatch)(nt.store),{textColor:r,backgroundColor:l,style:i}=n,s=(0,nt.useBlockProps)({className:ut("wp-block-navigation-item",{"has-text-color":!!r||!!i?.color?.text,[`has-${r}-color`]:!!r,"has-background":!!l||!!i?.color?.background,[`has-${l}-background-color`]:!!l}),style:{color:i?.color?.text,backgroundColor:i?.color?.background}}),{label:c}=e;return(0,_t.useEffect)((()=>{void 0===c&&(o(),t({label:(0,tt.__)("Home")}))}),[c]),(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)("div",{...s},(0,Ke.createElement)("a",{className:"wp-block-home-link__content wp-block-navigation-item__content",href:a,onClick:Ru},(0,Ke.createElement)(nt.RichText,{identifier:"label",className:"wp-block-home-link__label",value:c,onChange:e=>{t({label:e})},"aria-label":(0,tt.__)("Home link text"),placeholder:(0,tt.__)("Add home link"),withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/image","core/strikethrough"]}))))},save:function(){return(0,Ke.createElement)(nt.InnerBlocks.Content,null)},example:{attributes:{label:(0,tt._x)("Home Link","block example")}}},Du=()=>Xe({name:Lu,metadata:Au,settings:Hu}),Fu=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M4.8 11.4H2.1V9H1v6h1.1v-2.6h2.7V15h1.1V9H4.8v2.4zm1.9-1.3h1.7V15h1.1v-4.9h1.7V9H6.7v1.1zM16.2 9l-1.5 2.7L13.3 9h-.9l-.8 6h1.1l.5-4 1.5 2.8 1.5-2.8.5 4h1.1L17 9h-.8zm3.8 5V9h-1.1v6h3.6v-1H20z"})),Vu="\n\thtml,body,:root {\n\t\tmargin: 0 !important;\n\t\tpadding: 0 !important;\n\t\toverflow: visible !important;\n\t\tmin-height: auto !important;\n\t}\n";function $u({content:e,isSelected:t}){const n=(0,gt.useSelect)((e=>e(nt.store).getSettings().styles)),a=(0,_t.useMemo)((()=>[Vu,...(0,nt.transformStyles)(n.filter((e=>e.css)))]),[n]);return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.SandBox,{html:e,styles:a,title:(0,tt.__)("Custom HTML Preview"),tabIndex:-1}),!t&&(0,Ke.createElement)("div",{className:"block-library-html__preview-overlay"}))}const Gu={from:[{type:"block",blocks:["core/code"],transform:({content:e})=>(0,Qe.createBlock)("core/html",{content:(0,zn.create)({html:e}).text})}]},Ou=Gu,Uu={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/html",title:"Custom HTML",category:"widgets",description:"Add custom HTML code and preview it as you edit.",keywords:["embed"],textdomain:"default",attributes:{content:{type:"string",source:"raw"}},supports:{customClassName:!1,className:!1,html:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-html-editor"},{name:qu}=Uu,ju={icon:Fu,example:{attributes:{content:"<marquee>"+(0,tt.__)("Welcome to the wonderful world of blocks…")+"</marquee>"}},edit:function e({attributes:t,setAttributes:n,isSelected:a}){const[o,r]=(0,_t.useState)(),l=(0,_t.useContext)(et.Disabled.Context),i=(0,jt.useInstanceId)(e,"html-edit-desc"),s=(0,nt.useBlockProps)({className:"block-library-html__edit","aria-describedby":o?i:void 0});return(0,Ke.createElement)("div",{...s},(0,Ke.createElement)(nt.BlockControls,null,(0,Ke.createElement)(et.ToolbarGroup,null,(0,Ke.createElement)(et.ToolbarButton,{isPressed:!o,onClick:function(){r(!1)}},"HTML"),(0,Ke.createElement)(et.ToolbarButton,{isPressed:o,onClick:function(){r(!0)}},(0,tt.__)("Preview")))),o||l?(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)($u,{content:t.content,isSelected:a}),(0,Ke.createElement)(et.VisuallyHidden,{id:i},(0,tt.__)("HTML preview is not yet fully accessible. Please switch screen reader to virtualized mode to navigate the below iFrame."))):(0,Ke.createElement)(nt.PlainText,{value:t.content,onChange:e=>n({content:e}),placeholder:(0,tt.__)("Write HTML…"),"aria-label":(0,tt.__)("HTML")}))},save:function({attributes:e}){return(0,Ke.createElement)(_t.RawHTML,null,e.content)},transforms:Ou},Wu=()=>Xe({name:qu,metadata:Uu,settings:ju}),Zu={attributes:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"array",source:"children",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"a",attribute:"href"},id:{type:"number"},align:{type:"string"},width:{type:"number"},height:{type:"number"}},save({attributes:e}){const{url:t,alt:n,caption:a,align:o,href:r,width:l,height:i}=e,s=l||i?{width:l,height:i}:{},c=(0,Ke.createElement)("img",{src:t,alt:n,...s});let m={};return l?m={width:l}:"left"!==o&&"right"!==o||(m={maxWidth:"50%"}),(0,Ke.createElement)("figure",{className:o?`align${o}`:null,style:m},r?(0,Ke.createElement)("a",{href:r},c):c,!nt.RichText.isEmpty(a)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",value:a}))}},Qu={attributes:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"array",source:"children",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"a",attribute:"href"},id:{type:"number"},align:{type:"string"},width:{type:"number"},height:{type:"number"}},save({attributes:e}){const{url:t,alt:n,caption:a,align:o,href:r,width:l,height:i,id:s}=e,c=(0,Ke.createElement)("img",{src:t,alt:n,className:s?`wp-image-${s}`:null,width:l,height:i});return(0,Ke.createElement)("figure",{className:o?`align${o}`:null},r?(0,Ke.createElement)("a",{href:r},c):c,!nt.RichText.isEmpty(a)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",value:a}))}},Ku={attributes:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"array",source:"children",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href"},id:{type:"number"},align:{type:"string"},width:{type:"number"},height:{type:"number"},linkDestination:{type:"string",default:"none"}},save({attributes:e}){const{url:t,alt:n,caption:a,align:o,href:r,width:l,height:i,id:s}=e,c=ut({[`align${o}`]:o,"is-resized":l||i}),m=(0,Ke.createElement)("img",{src:t,alt:n,className:s?`wp-image-${s}`:null,width:l,height:i});return(0,Ke.createElement)("figure",{className:c},r?(0,Ke.createElement)("a",{href:r},m):m,!nt.RichText.isEmpty(a)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",value:a}))}},Yu={attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption"},title:{type:"string",source:"attribute",selector:"img",attribute:"title"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0},save({attributes:e}){const{url:t,alt:n,caption:a,align:o,href:r,rel:l,linkClass:i,width:s,height:c,id:m,linkTarget:u,sizeSlug:p,title:d}=e,g=l||void 0,h=ut({[`align${o}`]:o,[`size-${p}`]:p,"is-resized":s||c}),b=(0,Ke.createElement)("img",{src:t,alt:n,className:m?`wp-image-${m}`:null,width:s,height:c,title:d}),_=(0,Ke.createElement)(Ke.Fragment,null,r?(0,Ke.createElement)("a",{className:i,href:r,target:u,rel:g},b):b,!nt.RichText.isEmpty(a)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",value:a}));return"left"===o||"right"===o||"center"===o?(0,Ke.createElement)("div",{...nt.useBlockProps.save()},(0,Ke.createElement)("figure",{className:h},_)):(0,Ke.createElement)("figure",{...nt.useBlockProps.save({className:h})},_)}},Ju={attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption"},title:{type:"string",source:"attribute",selector:"img",attribute:"title"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,color:{__experimentalDuotone:"img",text:!1,background:!1},__experimentalBorder:{radius:!0,__experimentalDefaultControls:{radius:!0}},__experimentalStyle:{spacing:{margin:"0 0 1em 0"}}},save({attributes:e}){const{url:t,alt:n,caption:a,align:o,href:r,rel:l,linkClass:i,width:s,height:c,id:m,linkTarget:u,sizeSlug:p,title:d}=e,g=l||void 0,h=ut({[`align${o}`]:o,[`size-${p}`]:p,"is-resized":s||c}),b=(0,Ke.createElement)("img",{src:t,alt:n,className:m?`wp-image-${m}`:null,width:s,height:c,title:d}),_=(0,Ke.createElement)(Ke.Fragment,null,r?(0,Ke.createElement)("a",{className:i,href:r,target:u,rel:g},b):b,!nt.RichText.isEmpty(a)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",value:a}));return(0,Ke.createElement)("figure",{...nt.useBlockProps.save({className:h})},_)}},Xu={attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src",__experimentalRole:"content"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:"",__experimentalRole:"content"},caption:{type:"string",source:"html",selector:"figcaption",__experimentalRole:"content"},title:{type:"string",source:"attribute",selector:"img",attribute:"title",__experimentalRole:"content"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href",__experimentalRole:"content"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number",__experimentalRole:"content"},width:{type:"number"},height:{type:"number"},aspectRatio:{type:"string"},scale:{type:"string"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,color:{text:!1,background:!1},filter:{duotone:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}}},migrate(e){const{height:t,width:n}=e;return{...e,width:"number"==typeof n?`${n}px`:n,height:"number"==typeof t?`${t}px`:t}},save({attributes:e}){const{url:t,alt:n,caption:a,align:o,href:r,rel:l,linkClass:i,width:s,height:c,aspectRatio:m,scale:u,id:p,linkTarget:d,sizeSlug:g,title:h}=e,b=l||void 0,_=(0,nt.__experimentalGetBorderClassesAndStyles)(e),y=ut({[`align${o}`]:o,[`size-${g}`]:g,"is-resized":s||c,"has-custom-border":!!_.className||_.style&&Object.keys(_.style).length>0}),v=ut(_.className,{[`wp-image-${p}`]:!!p}),f=(0,Ke.createElement)("img",{src:t,alt:n,className:v||void 0,style:{..._.style,aspectRatio:m,objectFit:u},width:s,height:c,title:h}),k=(0,Ke.createElement)(Ke.Fragment,null,r?(0,Ke.createElement)("a",{className:i,href:r,target:d,rel:b},f):f,!nt.RichText.isEmpty(a)&&(0,Ke.createElement)(nt.RichText.Content,{className:(0,nt.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:a}));return(0,Ke.createElement)("figure",{...nt.useBlockProps.save({className:y})},k)}},ep={attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src",__experimentalRole:"content"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:"",__experimentalRole:"content"},caption:{type:"string",source:"html",selector:"figcaption",__experimentalRole:"content"},title:{type:"string",source:"attribute",selector:"img",attribute:"title",__experimentalRole:"content"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href",__experimentalRole:"content"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number",__experimentalRole:"content"},width:{type:"number"},height:{type:"number"},aspectRatio:{type:"string"},scale:{type:"string"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,color:{text:!1,background:!1},filter:{duotone:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}}},migrate:({width:e,height:t,...n})=>({...n,width:`${e}px`,height:`${t}px`}),save({attributes:e}){const{url:t,alt:n,caption:a,align:o,href:r,rel:l,linkClass:i,width:s,height:c,aspectRatio:m,scale:u,id:p,linkTarget:d,sizeSlug:g,title:h}=e,b=l||void 0,_=(0,nt.__experimentalGetBorderClassesAndStyles)(e),y=ut({[`align${o}`]:o,[`size-${g}`]:g,"is-resized":s||c,"has-custom-border":!!_.className||_.style&&Object.keys(_.style).length>0}),v=ut(_.className,{[`wp-image-${p}`]:!!p}),f=(0,Ke.createElement)("img",{src:t,alt:n,className:v||void 0,style:{..._.style,aspectRatio:m,objectFit:u,width:s,height:c},width:s,height:c,title:h}),k=(0,Ke.createElement)(Ke.Fragment,null,r?(0,Ke.createElement)("a",{className:i,href:r,target:d,rel:b},f):f,!nt.RichText.isEmpty(a)&&(0,Ke.createElement)(nt.RichText.Content,{className:(0,nt.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:a}));return(0,Ke.createElement)("figure",{...nt.useBlockProps.save({className:y})},k)}},tp={attributes:{align:{type:"string"},behaviors:{type:"object"},url:{type:"string",source:"attribute",selector:"img",attribute:"src",__experimentalRole:"content"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:"",__experimentalRole:"content"},caption:{type:"string",source:"html",selector:"figcaption",__experimentalRole:"content"},title:{type:"string",source:"attribute",selector:"img",attribute:"title",__experimentalRole:"content"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href",__experimentalRole:"content"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number",__experimentalRole:"content"},width:{type:"string"},height:{type:"string"},aspectRatio:{type:"string"},scale:{type:"string"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,color:{text:!1,background:!1},filter:{duotone:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}}},migrate({width:e,height:t,...n}){if(!n.behaviors?.lightbox)return n;const{behaviors:{lightbox:{enabled:a}}}=n,o={...n,lightbox:{enabled:a}};return delete o.behaviors,o},isEligible:e=>!!e.behaviors,save({attributes:e}){const{url:t,alt:n,caption:a,align:o,href:r,rel:l,linkClass:i,width:s,height:c,aspectRatio:m,scale:u,id:p,linkTarget:d,sizeSlug:g,title:h}=e,b=l||void 0,_=(0,nt.__experimentalGetBorderClassesAndStyles)(e),y=ut({[`align${o}`]:o,[`size-${g}`]:g,"is-resized":s||c,"has-custom-border":!!_.className||_.style&&Object.keys(_.style).length>0}),v=ut(_.className,{[`wp-image-${p}`]:!!p}),f=(0,Ke.createElement)("img",{src:t,alt:n,className:v||void 0,style:{..._.style,aspectRatio:m,objectFit:u,width:s,height:c},title:h}),k=(0,Ke.createElement)(Ke.Fragment,null,r?(0,Ke.createElement)("a",{className:i,href:r,target:d,rel:b},f):f,!nt.RichText.isEmpty(a)&&(0,Ke.createElement)(nt.RichText.Content,{className:(0,nt.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:a}));return(0,Ke.createElement)("figure",{...nt.useBlockProps.save({className:y})},k)}},np=[tp,ep,Xu,Ju,Yu,Ku,Qu,Zu],ap=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z"})),op=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M18 20v-2h2v-1.5H7.75a.25.25 0 0 1-.25-.25V4H6v2H4v1.5h2v8.75c0 .966.784 1.75 1.75 1.75h8.75v2H18ZM9.273 7.5h6.977a.25.25 0 0 1 .25.25v6.977H18V7.75A1.75 1.75 0 0 0 16.25 6H9.273v1.5Z"})),rp=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12-9.8c.4 0 .8-.3.9-.7l1.1-3h3.6l.5 1.7h1.9L13 9h-2.2l-3.4 9.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12H20V6c0-1.1-.9-2-2-2zm-6 7l1.4 3.9h-2.7L12 11z"})),lp=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"})),ip={popoverProps:{placement:"left-start",offset:259}},{DimensionsTool:sp,ResolutionTool:cp}=Ht(nt.privateApis),mp=[{value:"cover",label:(0,tt._x)("Cover","Scale option for dimensions control"),help:(0,tt.__)("Image covers the space evenly.")},{value:"contain",label:(0,tt._x)("Contain","Scale option for dimensions control"),help:(0,tt.__)("Image is contained without distortion.")}],up=({href:e,children:t})=>e?(0,Ke.createElement)("a",{href:e,onClick:e=>e.preventDefault(),"aria-disabled":!0,style:{pointerEvents:"none",cursor:"default",display:"inline"}},t):t;function pp({temporaryURL:e,attributes:t,setAttributes:n,isSingleSelected:a,insertBlocksAfter:o,onReplace:r,onSelectImage:l,onSelectURL:i,onUploadError:s,context:c,clientId:m,blockEditingMode:u,parentLayoutType:p}){const{url:d="",alt:g,align:h,id:b,href:_,rel:y,linkClass:v,linkDestination:f,title:k,width:x,height:w,aspectRatio:E,scale:C,linkTarget:S,sizeSlug:B,lightbox:N,metadata:T}=t,I=x?parseInt(x,10):void 0,P=w?parseInt(w,10):void 0,M=(0,_t.useRef)(),{allowResize:z=!0}=c,{getBlock:R,getSettings:A}=(0,gt.useSelect)(nt.store),L=(0,gt.useSelect)((e=>b&&a?e(dt.store).getMedia(b,{context:"view"}):null),[b,a]),{canInsertCover:H,imageEditing:D,imageSizes:F,maxWidth:V}=(0,gt.useSelect)((e=>{const{getBlockRootClientId:t,canInsertBlockType:n}=e(nt.store),a=t(m),o=A();return{imageEditing:o.imageEditing,imageSizes:o.imageSizes,maxWidth:o.maxWidth,canInsertCover:n("core/cover",a)}}),[m]),{replaceBlocks:$,toggleSelection:G}=(0,gt.useDispatch)(nt.store),{createErrorNotice:O,createSuccessNotice:U}=(0,gt.useDispatch)(Pt.store),q=(0,jt.useViewportMatch)("medium"),j=["wide","full"].includes(h),[{loadedNaturalWidth:W,loadedNaturalHeight:Z},Q]=(0,_t.useState)({}),[K,Y]=(0,_t.useState)(!1),[J,X]=(0,_t.useState)(),ee="default"===u,te="contentOnly"===u,ne=z&&ee&&!j&&q&&"grid"!==p,ae=F.filter((({slug:e})=>L?.media_details?.sizes?.[e]?.source_url)).map((({name:e,slug:t})=>({value:t,label:e})));(0,_t.useEffect)((()=>{dp(b,d)&&a&&A().mediaUpload?J||window.fetch(d.includes("?")?d:d+"?").then((e=>e.blob())).then((e=>X(e))).catch((()=>{})):X()}),[b,d,a,J]);const{naturalWidth:oe,naturalHeight:re}=(0,_t.useMemo)((()=>({naturalWidth:M.current?.naturalWidth||W||void 0,naturalHeight:M.current?.naturalHeight||Z||void 0})),[W,Z,M.current?.complete]);function le(e){n({title:e})}function ie(e){n({alt:e})}(0,_t.useEffect)((()=>{a||Y(!1)}),[a]);const se=b&&oe&&re&&D,ce=a&&se&&!K;const me=(0,et.__experimentalUseCustomUnits)({availableUnits:["px"]}),[ue]=(0,nt.useSettings)("lightbox"),pe=!!N&&N?.enabled!==ue?.enabled||ue?.allowEditing,de=!!N?.enabled||!N&&!!ue?.enabled,ge=(0,Ke.createElement)(sp,{value:{width:x,height:w,scale:C,aspectRatio:E},onChange:({width:e,height:t,scale:a,aspectRatio:o})=>{n({width:!e&&t?"auto":e,height:t,scale:a,aspectRatio:o})},defaultScale:"cover",defaultAspectRatio:"auto",scaleOptions:mp,unitsOptions:me}),he=()=>{n({alt:void 0,width:void 0,height:void 0,scale:void 0,aspectRatio:void 0,lightbox:void 0})},be=(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.__experimentalToolsPanel,{label:(0,tt.__)("Settings"),resetAll:he,dropdownMenuProps:ip},ne&&ge)),{lockUrlControls:_e=!1,lockHrefControls:ye=!1,lockAltControls:ve=!1,lockAltControlsMessage:fe,lockTitleControls:ke=!1,lockTitleControlsMessage:xe,lockCaption:we=!1}=(0,gt.useSelect)((e=>{if(!a)return{};const{getBlockBindingsSource:t}=Ht(e(Qe.store)),{getBlockParentsByBlockName:n}=Ht(e(nt.store)),{url:o,alt:r,title:l}=T?.bindings||{},i=n(m,"core/block").length>0,s=t(o?.source),c=t(r?.source),u=t(l?.source);return{lockUrlControls:!!o&&(!s||s?.lockAttributesEditing),lockHrefControls:i,lockCaption:i,lockAltControls:!!r&&(!c||c?.lockAttributesEditing),lockAltControlsMessage:c?.label?(0,tt.sprintf)((0,tt.__)("Connected to %s"),c.label):(0,tt.__)("Connected to dynamic data"),lockTitleControls:!!l&&(!u||u?.lockAttributesEditing),lockTitleControlsMessage:u?.label?(0,tt.sprintf)((0,tt.__)("Connected to %s"),u.label):(0,tt.__)("Connected to dynamic data")}}),[m,a,T?.bindings]),Ee=(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,{group:"block"},a&&!K&&!ye&&!_e&&(0,Ke.createElement)(nt.__experimentalImageURLInputUI,{url:_||"",onChangeUrl:function(e){n(e)},linkDestination:f,mediaUrl:L&&L.source_url||d,mediaLink:L&&L.link,linkTarget:S,linkClass:v,rel:y,showLightboxSetting:pe,lightboxEnabled:de,onSetLightbox:function(e){n(e&&!ue?.enabled?{lightbox:{enabled:!0}}:!e&&ue?.enabled?{lightbox:{enabled:!1}}:{lightbox:void 0})},resetLightbox:function(){n(ue?.enabled&&ue?.allowEditing?{lightbox:{enabled:!1}}:{lightbox:void 0})}}),ce&&(0,Ke.createElement)(et.ToolbarButton,{onClick:()=>Y(!0),icon:op,label:(0,tt.__)("Crop")}),a&&H&&(0,Ke.createElement)(et.ToolbarButton,{icon:rp,label:(0,tt.__)("Add text over image"),onClick:function(){$(m,(0,Qe.switchToBlockType)(R(m),"core/cover"))}})),a&&!K&&!_e&&(0,Ke.createElement)(nt.BlockControls,{group:"other"},(0,Ke.createElement)(nt.MediaReplaceFlow,{mediaId:b,mediaURL:d,allowedTypes:im,accept:"image/*",onSelect:l,onSelectURL:i,onError:s})),a&&J&&(0,Ke.createElement)(nt.BlockControls,null,(0,Ke.createElement)(et.ToolbarGroup,null,(0,Ke.createElement)(et.ToolbarButton,{onClick:function(){const{mediaUpload:e}=A();e&&e({filesList:[J],onFileChange([e]){l(e),(0,It.isBlobURL)(e.url)||(X(),U((0,tt.__)("Image uploaded."),{type:"snackbar"}))},allowedTypes:im,onError(e){O(e,{type:"snackbar"})}})},icon:lp,label:(0,tt.__)("Upload to Media Library")}))),te&&(0,Ke.createElement)(nt.BlockControls,{group:"other"},(0,Ke.createElement)(et.Dropdown,{popoverProps:{position:"bottom right"},renderToggle:({isOpen:e,onToggle:t})=>(0,Ke.createElement)(et.ToolbarButton,{onClick:t,"aria-haspopup":"true","aria-expanded":e,onKeyDown:n=>{e||n.keyCode!==vn.DOWN||(n.preventDefault(),t())}},(0,tt._x)("Alt","Alternative text for an image. Block toolbar label, a low character count is preferred.")),renderContent:()=>(0,Ke.createElement)(et.TextareaControl,{className:"wp-block-image__toolbar_content_textarea",label:(0,tt.__)("Alternative text"),value:g||"",onChange:ie,disabled:ve,help:ve?(0,Ke.createElement)(Ke.Fragment,null,fe):(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},(0,tt.__)("Describe the purpose of the image.")),(0,Ke.createElement)("br",null),(0,tt.__)("Leave empty if decorative.")),__nextHasNoMarginBottom:!0})}),(0,Ke.createElement)(et.Dropdown,{popoverProps:{position:"bottom right"},renderToggle:({isOpen:e,onToggle:t})=>(0,Ke.createElement)(et.ToolbarButton,{onClick:t,"aria-haspopup":"true","aria-expanded":e,onKeyDown:n=>{e||n.keyCode!==vn.DOWN||(n.preventDefault(),t())}},(0,tt.__)("Title")),renderContent:()=>(0,Ke.createElement)(et.TextControl,{className:"wp-block-image__toolbar_content_textarea",__nextHasNoMarginBottom:!0,label:(0,tt.__)("Title attribute"),value:k||"",onChange:le,disabled:ke,help:ke?(0,Ke.createElement)(Ke.Fragment,null,xe):(0,Ke.createElement)(Ke.Fragment,null,(0,tt.__)("Describe the role of this image on the page."),(0,Ke.createElement)(et.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute"},(0,tt.__)("(Note: many devices and browsers do not display this text.)")))})})),(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.__experimentalToolsPanel,{label:(0,tt.__)("Settings"),resetAll:he,dropdownMenuProps:ip},a&&(0,Ke.createElement)(et.__experimentalToolsPanelItem,{label:(0,tt.__)("Alternative text"),isShownByDefault:!0,hasValue:()=>!!g,onDeselect:()=>n({alt:void 0})},(0,Ke.createElement)(et.TextareaControl,{label:(0,tt.__)("Alternative text"),value:g||"",onChange:ie,readOnly:ve,help:ve?(0,Ke.createElement)(Ke.Fragment,null,fe):(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},(0,tt.__)("Describe the purpose of the image.")),(0,Ke.createElement)("br",null),(0,tt.__)("Leave empty if decorative.")),__nextHasNoMarginBottom:!0})),ne&&ge,!!ae.length&&(0,Ke.createElement)(cp,{value:B,onChange:function(e){const t=L?.media_details?.sizes?.[e]?.source_url;if(!t)return null;n({url:t,sizeSlug:e})},options:ae}))),(0,Ke.createElement)(nt.InspectorControls,{group:"advanced"},(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Title attribute"),value:k||"",onChange:le,readOnly:ke,help:ke?(0,Ke.createElement)(Ke.Fragment,null,xe):(0,Ke.createElement)(Ke.Fragment,null,(0,tt.__)("Describe the role of this image on the page."),(0,Ke.createElement)(et.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute"},(0,tt.__)("(Note: many devices and browsers do not display this text.)")))}))),Ce=(0,pt.getFilename)(d);let Se;Se=g||(Ce?(0,tt.sprintf)((0,tt.__)("This image has an empty alt attribute; its file name is %s"),Ce):(0,tt.__)("This image has an empty alt attribute"));const Be=(0,nt.__experimentalUseBorderProps)(t),Ne=(0,nt.__experimentalGetShadowClassesAndStyles)(t),Te=t.className?.includes("is-style-rounded");let Ie=(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)("img",{src:e||d,alt:Se,onError:()=>function(){const e=Vt({attributes:{url:d}});void 0!==e&&r(e)}(),onLoad:e=>{Q({loadedNaturalWidth:e.target?.naturalWidth,loadedNaturalHeight:e.target?.naturalHeight})},ref:M,className:Be.className,style:{width:x&&w||E?"100%":void 0,height:x&&w||E?"100%":void 0,objectFit:C,...Be.style,...Ne.style}}),e&&(0,Ke.createElement)(et.Spinner,null));if(se&&K)Ie=(0,Ke.createElement)(up,{href:_},(0,Ke.createElement)(nt.__experimentalImageEditor,{id:b,url:d,width:I,height:P,naturalHeight:re,naturalWidth:oe,onSaveImage:e=>n(e),onFinishEditing:()=>{Y(!1)},borderProps:Te?void 0:Be}));else if(ne){const e=E&&function(e){const[t,n=1]=e.split("/").map(Number),a=t/n;return a===1/0||0===a?NaN:a}(E),t=oe/re,o=e||I/P||t||1,r=!I&&P?P*o:I,l=!P&&I?I/o:P,i=oe<re?tm:tm*o,s=re<oe?tm:tm/o,c=2.5*V;let m=!1,u=!1;"center"===h?(m=!0,u=!0):(0,tt.isRTL)()?"left"===h?m=!0:u=!0:"right"===h?u=!0:m=!0,Ie=(0,Ke.createElement)(et.ResizableBox,{style:{display:"block",objectFit:C,aspectRatio:x||w||!E?void 0:E},size:{width:null!=r?r:"auto",height:null!=l?l:"auto"},showHandle:a,minWidth:i,maxWidth:c,minHeight:s,maxHeight:c/o,lockAspectRatio:o,enable:{top:!1,right:m,bottom:!0,left:u},onResizeStart:function(){G(!1)},onResizeStop:(e,a,r)=>{G(!0),n({width:`${r.offsetWidth}px`,height:"auto",aspectRatio:o===t?void 0:String(o)})},resizeRatio:"center"===h?2:1},(0,Ke.createElement)(up,{href:_},Ie))}else Ie=(0,Ke.createElement)("div",{style:{width:x,height:w,aspectRatio:E}},(0,Ke.createElement)(up,{href:_},Ie));return d||e?(0,Ke.createElement)(Ke.Fragment,null,Ee,Ie,(0,Ke.createElement)(Zt,{attributes:t,setAttributes:n,isSelected:a,insertBlocksAfter:o,label:(0,tt.__)("Image caption text"),showToolbarButton:a&&ee,readOnly:we})):T?.bindings?Ee:be}const dp=(e,t)=>t&&!e&&!(0,It.isBlobURL)(t);function gp(e,t){var n,a;return"url"in(null!==(n=e?.sizes?.[t])&&void 0!==n?n:{})||"source_url"in(null!==(a=e?.media_details?.sizes?.[t])&&void 0!==a?a:{})}const hp=function({attributes:e,setAttributes:t,isSelected:n,className:a,insertBlocksAfter:o,onReplace:r,context:l,clientId:i,__unstableParentLayout:s}){const{url:c="",alt:m,caption:u,id:p,width:d,height:g,sizeSlug:h,aspectRatio:b,scale:_,align:y,metadata:v}=e,[f,k]=(0,_t.useState)((()=>((e,t)=>!e&&(0,It.isBlobURL)(t))(p,c)?c:void 0)),x=(0,_t.useRef)();(0,_t.useEffect)((()=>{x.current=m}),[m]);const w=(0,_t.useRef)();(0,_t.useEffect)((()=>{w.current=u}),[u]);const{__unstableMarkNextChangeAsNotPersistent:E}=(0,gt.useDispatch)(nt.store);(0,_t.useEffect)((()=>{["wide","full"].includes(y)&&(E(),t({width:void 0,height:void 0,aspectRatio:void 0,scale:void 0}))}),[y]);const{getSettings:C}=(0,gt.useSelect)(nt.store),S=(0,nt.useBlockEditingMode)(),{createErrorNotice:B}=(0,gt.useDispatch)(Pt.store);function N(e){B(e,{type:"snackbar"}),t({src:void 0,id:void 0,url:void 0}),k(void 0)}function T(n){if(!n||!n.url)return void t({url:void 0,alt:void 0,id:void 0,title:void 0,caption:void 0});if((0,It.isBlobURL)(n.url))return void k(n.url);k();const{imageDefaultSize:a}=C();let o="full";h&&gp(n,h)?o=h:gp(n,a)&&(o=a);let r,l=((e,t)=>{const n=Object.fromEntries(Object.entries(null!=e?e:{}).filter((([e])=>["alt","id","link","caption"].includes(e))));return n.url=e?.sizes?.[t]?.url||e?.media_details?.sizes?.[t]?.source_url||e.url,n})(n,o);if(w.current&&!l.caption){const{caption:e,...t}=l;l=t}r=n.id&&n.id===p?{url:c}:{sizeSlug:o};let i,s=e.linkDestination;if(!s)switch(window?.wp?.media?.view?.settings?.defaultProps?.link||nm){case"file":case am:s=am;break;case"post":case om:s=om;break;case rm:s=rm;break;case nm:s=nm}switch(s){case am:i=n.url;break;case om:i=n.link}l.href=i,t({...l,...r,linkDestination:s})}function I(e){e!==c&&t({url:e,id:void 0,sizeSlug:C().imageDefaultSize})}qt({url:c,allowedTypes:im,onChange:T,onError:N});const P=dp(p,c)?c:void 0,M=!!c&&(0,Ke.createElement)("img",{alt:(0,tt.__)("Edit image"),title:(0,tt.__)("Edit image"),className:"edit-image-preview",src:c}),z=(0,nt.__experimentalUseBorderProps)(e),R=(0,nt.__experimentalGetShadowClassesAndStyles)(e),A=ut(a,{"is-transient":f,"is-resized":!!d||!!g,[`size-${h}`]:h,"has-custom-border":!!z.className||z.style&&Object.keys(z.style).length>0}),L=(0,nt.useBlockProps)({className:A}),{lockUrlControls:H=!1,lockUrlControlsMessage:D}=(0,gt.useSelect)((e=>{if(!n)return{};const t=Ht(e(Qe.store)).getBlockBindingsSource(v?.bindings?.url?.source);return{lockUrlControls:!!v?.bindings?.url&&(!t||t?.lockAttributesEditing),lockUrlControlsMessage:t?.label?(0,tt.sprintf)((0,tt.__)("Connected to %s"),t.label):(0,tt.__)("Connected to dynamic data")}}),[n]);return(0,Ke.createElement)("figure",{...L},(0,Ke.createElement)(pp,{temporaryURL:f,attributes:e,setAttributes:t,isSingleSelected:n,insertBlocksAfter:o,onReplace:r,onSelectImage:T,onSelectURL:I,onUploadError:N,context:l,clientId:i,blockEditingMode:S,parentLayoutType:s?.type}),(0,Ke.createElement)(nt.MediaPlaceholder,{icon:(0,Ke.createElement)(nt.BlockIcon,{icon:Em}),onSelect:T,onSelectURL:I,onError:N,placeholder:e=>(0,Ke.createElement)(et.Placeholder,{className:ut("block-editor-media-placeholder",{[z.className]:!!z.className&&!n}),withIllustration:!0,icon:H?ap:Em,label:(0,tt.__)("Image"),instructions:!H&&(0,tt.__)("Upload an image file, pick one from your media library, or add one with a URL."),style:{aspectRatio:d&&g||!b?void 0:b,width:g&&b?"100%":d,height:d&&b?"100%":g,objectFit:_,...z.style,...R.style}},H?(0,Ke.createElement)("span",{className:"block-bindings-media-placeholder-message"},D):e),accept:"image/*",allowedTypes:im,value:{id:p,src:P},mediaPreview:M,disableMediaButtons:f||c}))};function bp(e,t){const{body:n}=document.implementation.createHTMLDocument("");n.innerHTML=e;const{firstElementChild:a}=n;if(a&&"A"===a.nodeName)return a.getAttribute(t)||void 0}const _p={img:{attributes:["src","alt","title"],classes:["alignleft","aligncenter","alignright","alignnone",/^wp-image-\d+$/]}},yp={from:[{type:"raw",isMatch:e=>"FIGURE"===e.nodeName&&!!e.querySelector("img"),schema:({phrasingContentSchema:e})=>({figure:{require:["img"],children:{..._p,a:{attributes:["href","rel","target"],children:_p},figcaption:{children:e}}}}),transform:e=>{const t=e.className+" "+e.querySelector("img").className,n=/(?:^|\s)align(left|center|right)(?:$|\s)/.exec(t),a=""===e.id?void 0:e.id,o=n?n[1]:void 0,r=/(?:^|\s)wp-image-(\d+)(?:$|\s)/.exec(t),l=r?Number(r[1]):void 0,i=e.querySelector("a"),s=i&&i.href?"custom":void 0,c=i&&i.href?i.href:void 0,m=i&&i.rel?i.rel:void 0,u=i&&i.className?i.className:void 0,p=(0,Qe.getBlockAttributes)("core/image",e.outerHTML,{align:o,id:l,linkDestination:s,href:c,rel:m,linkClass:u,anchor:a});return(0,Qe.createBlock)("core/image",p)}},{type:"files",isMatch(e){if(e.some((e=>0===e.type.indexOf("image/")))&&e.some((e=>0!==e.type.indexOf("image/")))){const{createErrorNotice:e}=(0,gt.dispatch)(Pt.store);e((0,tt.__)("If uploading to a gallery all files need to be image formats"),{id:"gallery-transform-invalid-file",type:"snackbar"})}return e.every((e=>0===e.type.indexOf("image/")))},transform(e){const t=e.map((e=>(0,Qe.createBlock)("core/image",{url:(0,It.createBlobURL)(e)})));return t}},{type:"shortcode",tag:"caption",attributes:{url:{type:"string",source:"attribute",attribute:"src",selector:"img"},alt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},caption:{shortcode:function(e,{shortcode:t}){const{body:n}=document.implementation.createHTMLDocument("");n.innerHTML=t.content;let a=n.querySelector("img");for(;a&&a.parentNode&&a.parentNode!==n;)a=a.parentNode;return a&&a.parentNode.removeChild(a),n.innerHTML.trim()}},href:{shortcode:(e,{shortcode:t})=>bp(t.content,"href")},rel:{shortcode:(e,{shortcode:t})=>bp(t.content,"rel")},linkClass:{shortcode:(e,{shortcode:t})=>bp(t.content,"class")},id:{type:"number",shortcode:({named:{id:e}})=>{if(e)return parseInt(e.replace("attachment_",""),10)}},align:{type:"string",shortcode:({named:{align:e="alignnone"}})=>e.replace("align","")}}}]},vp=yp,fp={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/image",title:"Image",category:"media",usesContext:["allowResize","imageCrop","fixedHeight"],description:"Insert an image to make a visual statement.",keywords:["img","photo","picture"],textdomain:"default",attributes:{url:{type:"string",source:"attribute",selector:"img",attribute:"src",__experimentalRole:"content"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:"",__experimentalRole:"content"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",__experimentalRole:"content"},lightbox:{type:"object",enabled:{type:"boolean"}},title:{type:"string",source:"attribute",selector:"img",attribute:"title",__experimentalRole:"content"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href",__experimentalRole:"content"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number",__experimentalRole:"content"},width:{type:"string"},height:{type:"string"},aspectRatio:{type:"string"},scale:{type:"string"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{interactivity:!0,align:["left","center","right","wide","full"],anchor:!0,color:{text:!1,background:!1},filter:{duotone:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}},shadow:{__experimentalSkipSerialization:!0}},selectors:{border:".wp-block-image img, .wp-block-image .wp-block-image__crop-area, .wp-block-image .components-placeholder",shadow:".wp-block-image img, .wp-block-image .wp-block-image__crop-area, .wp-block-image .components-placeholder",filter:{duotone:".wp-block-image img, .wp-block-image .components-placeholder"}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"rounded",label:"Rounded"}],editorStyle:"wp-block-image-editor",style:"wp-block-image"},{name:kp}=fp,xp={icon:Em,example:{attributes:{sizeSlug:"large",url:"https://s.w.org/images/core/5.3/MtBlanc1.jpg",caption:(0,tt.__)("Mont Blanc appears—still, snowy, and serene.")}},__experimentalLabel(e,{context:t}){const n=e?.metadata?.name;if("list-view"===t&&n)return n;if("accessibility"===t){const{caption:t,alt:n,url:a}=e;return a?n?n+(t?". "+t:""):t||"":(0,tt.__)("Empty")}},getEditWrapperProps:e=>({"data-align":e.align}),transforms:vp,edit:hp,save:function({attributes:e}){const{url:t,alt:n,caption:a,align:o,href:r,rel:l,linkClass:i,width:s,height:c,aspectRatio:m,scale:u,id:p,linkTarget:d,sizeSlug:g,title:h}=e,b=l||void 0,_=(0,nt.__experimentalGetBorderClassesAndStyles)(e),y=(0,nt.__experimentalGetShadowClassesAndStyles)(e),v=ut({alignnone:"none"===o,[`size-${g}`]:g,"is-resized":s||c,"has-custom-border":!!_.className||_.style&&Object.keys(_.style).length>0}),f=ut(_.className,{[`wp-image-${p}`]:!!p}),k=(0,Ke.createElement)("img",{src:t,alt:n,className:f||void 0,style:{..._.style,...y.style,aspectRatio:m,objectFit:u,width:s,height:c},title:h}),x=(0,Ke.createElement)(Ke.Fragment,null,r?(0,Ke.createElement)("a",{className:i,href:r,target:d,rel:b},k):k,!nt.RichText.isEmpty(a)&&(0,Ke.createElement)(nt.RichText.Content,{className:(0,nt.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:a}));return(0,Ke.createElement)("figure",{...nt.useBlockProps.save({className:v})},x)},deprecated:np},wp=()=>Xe({name:kp,metadata:fp,settings:xp}),Ep=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12.9c0 .6.5 1.1 1.1 1.1.3 0 .5-.1.8-.3L8.5 17H18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H7.9l-2.4 2.4V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v9z"}));const Cp={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/latest-comments",title:"Latest Comments",category:"widgets",description:"Display a list of your most recent comments.",keywords:["recent comments"],textdomain:"default",attributes:{commentsToShow:{type:"number",default:5,minimum:1,maximum:100},displayAvatar:{type:"boolean",default:!0},displayDate:{type:"boolean",default:!0},displayExcerpt:{type:"boolean",default:!0}},supports:{align:!0,html:!1,spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-latest-comments-editor",style:"wp-block-latest-comments"},{name:Sp}=Cp,Bp={icon:Ep,example:{},edit:function({attributes:e,setAttributes:t}){const{commentsToShow:n,displayAvatar:a,displayDate:o,displayExcerpt:r}=e,l={...e,style:{...e?.style,spacing:void 0}};return(0,Ke.createElement)("div",{...(0,nt.useBlockProps)()},(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Display avatar"),checked:a,onChange:()=>t({displayAvatar:!a})}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Display date"),checked:o,onChange:()=>t({displayDate:!o})}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Display excerpt"),checked:r,onChange:()=>t({displayExcerpt:!r})}),(0,Ke.createElement)(et.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Number of comments"),value:n,onChange:e=>t({commentsToShow:e}),min:1,max:100,required:!0}))),(0,Ke.createElement)(et.Disabled,null,(0,Ke.createElement)(ot(),{block:"core/latest-comments",attributes:l,urlQueryArgs:{_locale:"site"}})))}},Np=()=>Xe({name:Sp,metadata:Cp,settings:Bp}),Tp=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M18 5.5H6a.5.5 0 0 0-.5.5v12a.5.5 0 0 0 .5.5h12a.5.5 0 0 0 .5-.5V6a.5.5 0 0 0-.5-.5ZM6 4h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm1 5h1.5v1.5H7V9Zm1.5 4.5H7V15h1.5v-1.5ZM10 9h7v1.5h-7V9Zm7 4.5h-7V15h7v-1.5Z"})),{attributes:Ip}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/latest-posts",title:"Latest Posts",category:"widgets",description:"Display a list of your most recent posts.",keywords:["recent posts"],textdomain:"default",attributes:{categories:{type:"array",items:{type:"object"}},selectedAuthor:{type:"number"},postsToShow:{type:"number",default:5},displayPostContent:{type:"boolean",default:!1},displayPostContentRadio:{type:"string",default:"excerpt"},excerptLength:{type:"number",default:55},displayAuthor:{type:"boolean",default:!1},displayPostDate:{type:"boolean",default:!1},postLayout:{type:"string",default:"list"},columns:{type:"number",default:3},order:{type:"string",default:"desc"},orderBy:{type:"string",default:"date"},displayFeaturedImage:{type:"boolean",default:!1},featuredImageAlign:{type:"string",enum:["left","center","right"]},featuredImageSizeSlug:{type:"string",default:"thumbnail"},featuredImageSizeWidth:{type:"number",default:null},featuredImageSizeHeight:{type:"number",default:null},addLinkToFeaturedImage:{type:"boolean",default:!1}},supports:{align:!0,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-latest-posts-editor",style:"wp-block-latest-posts"},Pp=[{attributes:{...Ip,categories:{type:"string"}},supports:{align:!0,html:!1},migrate:e=>({...e,categories:[{id:Number(e.categories)}]}),isEligible:({categories:e})=>e&&"string"==typeof e,save:()=>null}],Mp=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M4 4v1.5h16V4H4zm8 8.5h8V11h-8v1.5zM4 20h16v-1.5H4V20zm4-8c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2z"})),zp={per_page:-1,context:"view"},Rp={per_page:-1,has_published_posts:["post"],context:"view"};const Ap={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/latest-posts",title:"Latest Posts",category:"widgets",description:"Display a list of your most recent posts.",keywords:["recent posts"],textdomain:"default",attributes:{categories:{type:"array",items:{type:"object"}},selectedAuthor:{type:"number"},postsToShow:{type:"number",default:5},displayPostContent:{type:"boolean",default:!1},displayPostContentRadio:{type:"string",default:"excerpt"},excerptLength:{type:"number",default:55},displayAuthor:{type:"boolean",default:!1},displayPostDate:{type:"boolean",default:!1},postLayout:{type:"string",default:"list"},columns:{type:"number",default:3},order:{type:"string",default:"desc"},orderBy:{type:"string",default:"date"},displayFeaturedImage:{type:"boolean",default:!1},featuredImageAlign:{type:"string",enum:["left","center","right"]},featuredImageSizeSlug:{type:"string",default:"thumbnail"},featuredImageSizeWidth:{type:"number",default:null},featuredImageSizeHeight:{type:"number",default:null},addLinkToFeaturedImage:{type:"boolean",default:!1}},supports:{align:!0,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-latest-posts-editor",style:"wp-block-latest-posts"},{name:Lp}=Ap,Hp={icon:Tp,example:{},edit:function e({attributes:t,setAttributes:n}){var a;const o=(0,jt.useInstanceId)(e),{postsToShow:r,order:l,orderBy:i,categories:s,selectedAuthor:c,displayFeaturedImage:m,displayPostContentRadio:u,displayPostContent:p,displayPostDate:d,displayAuthor:g,postLayout:h,columns:b,excerptLength:_,featuredImageAlign:y,featuredImageSizeSlug:v,featuredImageSizeWidth:f,featuredImageSizeHeight:k,addLinkToFeaturedImage:x}=t,{imageSizes:w,latestPosts:E,defaultImageWidth:C,defaultImageHeight:S,categoriesList:B,authorList:N}=(0,gt.useSelect)((e=>{var t,n;const{getEntityRecords:a,getUsers:o}=e(dt.store),m=e(nt.store).getSettings(),u=s&&s.length>0?s.map((e=>e.id)):[],p=Object.fromEntries(Object.entries({categories:u,author:c,order:l,orderby:i,per_page:r,_embed:"wp:featuredmedia"}).filter((([,e])=>void 0!==e)));return{defaultImageWidth:null!==(t=m.imageDimensions?.[v]?.width)&&void 0!==t?t:0,defaultImageHeight:null!==(n=m.imageDimensions?.[v]?.height)&&void 0!==n?n:0,imageSizes:m.imageSizes,latestPosts:a("postType","post",p),categoriesList:a("taxonomy","category",zp),authorList:o(Rp)}}),[v,r,l,i,s,c]),{createWarningNotice:T,removeNotice:I}=(0,gt.useDispatch)(Pt.store);let P;const M=e=>{e.preventDefault(),I(P),P=`block-library/core/latest-posts/redirection-prevented/${o}`,T((0,tt.__)("Links are disabled in the editor."),{id:P,type:"snackbar"})},z=w.filter((({slug:e})=>"full"!==e)).map((({name:e,slug:t})=>({value:t,label:e}))),R=null!==(a=B?.reduce(((e,t)=>({...e,[t.name]:t})),{}))&&void 0!==a?a:{},A=!!E?.length,L=(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Post content")},(0,Ke.createElement)(et.ToggleControl,{label:(0,tt.__)("Post content"),checked:p,onChange:e=>n({displayPostContent:e})}),p&&(0,Ke.createElement)(et.RadioControl,{label:(0,tt.__)("Show:"),selected:u,options:[{label:(0,tt.__)("Excerpt"),value:"excerpt"},{label:(0,tt.__)("Full post"),value:"full_post"}],onChange:e=>n({displayPostContentRadio:e})}),p&&"excerpt"===u&&(0,Ke.createElement)(et.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Max number of words"),value:_,onChange:e=>n({excerptLength:e}),min:10,max:100})),(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Post meta")},(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Display author name"),checked:g,onChange:e=>n({displayAuthor:e})}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Display post date"),checked:d,onChange:e=>n({displayPostDate:e})})),(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Featured image")},(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Display featured image"),checked:m,onChange:e=>n({displayFeaturedImage:e})}),m&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.__experimentalImageSizeControl,{onChange:e=>{const t={};e.hasOwnProperty("width")&&(t.featuredImageSizeWidth=e.width),e.hasOwnProperty("height")&&(t.featuredImageSizeHeight=e.height),n(t)},slug:v,width:f,height:k,imageWidth:C,imageHeight:S,imageSizeOptions:z,imageSizeHelp:(0,tt.__)("Select the size of the source image."),onChangeImage:e=>n({featuredImageSizeSlug:e,featuredImageSizeWidth:void 0,featuredImageSizeHeight:void 0})}),(0,Ke.createElement)(et.BaseControl,{className:"editor-latest-posts-image-alignment-control"},(0,Ke.createElement)(et.BaseControl.VisualLabel,null,(0,tt.__)("Image alignment")),(0,Ke.createElement)(nt.BlockAlignmentToolbar,{value:y,onChange:e=>n({featuredImageAlign:e}),controls:["left","center","right"],isCollapsed:!1})),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Add link to featured image"),checked:x,onChange:e=>n({addLinkToFeaturedImage:e})}))),(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Sorting and filtering")},(0,Ke.createElement)(et.QueryControls,{order:l,orderBy:i,numberOfItems:r,onOrderChange:e=>n({order:e}),onOrderByChange:e=>n({orderBy:e}),onNumberOfItemsChange:e=>n({postsToShow:e}),categorySuggestions:R,onCategoryChange:e=>{if(e.some((e=>"string"==typeof e&&!R[e])))return;const t=e.map((e=>"string"==typeof e?R[e]:e));if(t.includes(null))return!1;n({categories:t})},selectedCategories:s,onAuthorChange:e=>n({selectedAuthor:""!==e?Number(e):void 0}),authorList:null!=N?N:[],selectedAuthorId:c}),"grid"===h&&(0,Ke.createElement)(et.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Columns"),value:b,onChange:e=>n({columns:e}),min:2,max:A?Math.min(6,E.length):6,required:!0}))),H=(0,nt.useBlockProps)({className:ut({"wp-block-latest-posts__list":!0,"is-grid":"grid"===h,"has-dates":d,"has-author":g,[`columns-${b}`]:"grid"===h})});if(!A)return(0,Ke.createElement)("div",{...H},L,(0,Ke.createElement)(et.Placeholder,{icon:Jn,label:(0,tt.__)("Latest Posts")},Array.isArray(E)?(0,tt.__)("No posts found."):(0,Ke.createElement)(et.Spinner,null)));const D=E.length>r?E.slice(0,r):E,F=[{icon:Mp,title:(0,tt._x)("List view","Latest posts block display setting"),onClick:()=>n({postLayout:"list"}),isActive:"list"===h},{icon:au,title:(0,tt._x)("Grid view","Latest posts block display setting"),onClick:()=>n({postLayout:"grid"}),isActive:"grid"===h}],V=(0,No.getSettings)().formats.date;return(0,Ke.createElement)(Ke.Fragment,null,L,(0,Ke.createElement)(nt.BlockControls,null,(0,Ke.createElement)(et.ToolbarGroup,{controls:F})),(0,Ke.createElement)("ul",{...H},D.map((e=>{const t=e.title.rendered.trim();let n=e.excerpt.rendered;const a=N?.find((t=>t.id===e.author)),o=document.createElement("div");o.innerHTML=n,n=o.textContent||o.innerText||"";const{url:r,alt:l}=function(e,t){var n;const a=e._embedded?.["wp:featuredmedia"]?.[0];return{url:null!==(n=a?.media_details?.sizes?.[t]?.source_url)&&void 0!==n?n:a?.source_url,alt:a?.alt_text}}(e,v),i=ut({"wp-block-latest-posts__featured-image":!0,[`align${y}`]:!!y}),s=m&&r,c=s&&(0,Ke.createElement)("img",{src:r,alt:l,style:{maxWidth:f,maxHeight:k}}),h=_<n.trim().split(" ").length&&""===e.excerpt.raw?(0,Ke.createElement)(Ke.Fragment,null,n.trim().split(" ",_).join(" "),(0,_t.createInterpolateElement)((0,tt.sprintf)((0,tt.__)("… <a>Read more<span>: %1$s</span></a>"),t||(0,tt.__)("(no title)")),{a:(0,Ke.createElement)("a",{className:"wp-block-latest-posts__read-more",href:e.link,rel:"noopener noreferrer",onClick:M}),span:(0,Ke.createElement)("span",{className:"screen-reader-text"})})):n;return(0,Ke.createElement)("li",{key:e.id},s&&(0,Ke.createElement)("div",{className:i},x?(0,Ke.createElement)("a",{href:e.link,rel:"noreferrer noopener",onClick:M},c):c),(0,Ke.createElement)("a",{className:"wp-block-latest-posts__post-title",href:e.link,rel:"noreferrer noopener",dangerouslySetInnerHTML:t?{__html:t}:void 0,onClick:M},t?null:(0,tt.__)("(no title)")),g&&a&&(0,Ke.createElement)("div",{className:"wp-block-latest-posts__post-author"},(0,tt.sprintf)((0,tt.__)("by %s"),a.name)),d&&e.date_gmt&&(0,Ke.createElement)("time",{dateTime:(0,No.format)("c",e.date_gmt),className:"wp-block-latest-posts__post-date"},(0,No.dateI18n)(V,e.date_gmt)),p&&"excerpt"===u&&(0,Ke.createElement)("div",{className:"wp-block-latest-posts__post-excerpt"},h),p&&"full_post"===u&&(0,Ke.createElement)("div",{className:"wp-block-latest-posts__post-full-content",dangerouslySetInnerHTML:{__html:e.content.raw.trim()}}))}))))},deprecated:Pp},Dp=()=>Xe({name:Lp,metadata:Ap,settings:Hp}),Fp={A:"upper-alpha",a:"lower-alpha",I:"upper-roman",i:"lower-roman"};function Vp(e){const{values:t,start:n,reversed:a,ordered:o,type:r,...l}=e,i=document.createElement(o?"ol":"ul");i.innerHTML=t,n&&i.setAttribute("start",n),a&&i.setAttribute("reversed",!0),r&&i.setAttribute("type",r);const[s]=(0,Qe.rawHandler)({HTML:i.outerHTML});return[{...l,...s.attributes},s.innerBlocks]}const $p={attributes:{ordered:{type:"boolean",default:!1,__experimentalRole:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",__experimentalRole:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,__experimentalFontFamily:!0},color:{gradients:!0,link:!0},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},save({attributes:e}){const{ordered:t,values:n,type:a,reversed:o,start:r}=e,l=t?"ol":"ul";return(0,Ke.createElement)(l,{...nt.useBlockProps.save({type:a,reversed:o,start:r})},(0,Ke.createElement)(nt.RichText.Content,{value:n,multiline:"li"}))},migrate:rn,isEligible:({style:e})=>e?.typography?.fontFamily},Gp={attributes:{ordered:{type:"boolean",default:!1,__experimentalRole:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",__experimentalRole:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,__experimentalFontFamily:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},save({attributes:e}){const{ordered:t,values:n,type:a,reversed:o,start:r}=e,l=t?"ol":"ul";return(0,Ke.createElement)(l,{...nt.useBlockProps.save({type:a,reversed:o,start:r})},(0,Ke.createElement)(nt.RichText.Content,{value:n,multiline:"li"}))},migrate:Vp},Op={attributes:{ordered:{type:"boolean",default:!1,__experimentalRole:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",__experimentalRole:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},isEligible:({type:e})=>!!e,save({attributes:e}){const{ordered:t,type:n,reversed:a,start:o}=e,r=t?"ol":"ul";return(0,Ke.createElement)(r,{...nt.useBlockProps.save({type:n,reversed:a,start:o})},(0,Ke.createElement)(nt.InnerBlocks.Content,null))},migrate:function(e){const{type:t}=e;return t&&Fp[t]?{...e,type:Fp[t]}:e}},Up={attributes:{ordered:{type:"boolean",default:!1,__experimentalRole:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",__experimentalRole:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalOnMerge:"true",__experimentalSlashInserter:!0},save({attributes:e}){const{ordered:t,type:n,reversed:a,start:o}=e,r=t?"ol":"ul";return(0,Ke.createElement)(r,{...nt.useBlockProps.save({reversed:a,start:o,style:{listStyleType:t&&"decimal"!==n?n:void 0}})},(0,Ke.createElement)(nt.InnerBlocks.Content,null))}},qp=[Up,Op,Gp,$p],jp=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM15.4697 14.9697L18.4393 12L15.4697 9.03033L16.5303 7.96967L20.0303 11.4697L20.5607 12L20.0303 12.5303L16.5303 16.0303L15.4697 14.9697Z"})),Wp=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-4-4.6l-4 4 4 4 1-1-3-3 3-3-1-1z"})),Zp=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M4 8.8h8.9V7.2H4v1.6zm0 7h8.9v-1.5H4v1.5zM18 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"})),Qp=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM6 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-7c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})),Kp=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M3.8 15.8h8.9v-1.5H3.8v1.5zm0-7h8.9V7.2H3.8v1.6zm14.7-2.1V10h1V5.3l-2.2.7.3 1 .9-.3zm1.2 6.1c-.5-.6-1.2-.5-1.7-.4-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5H20v-1h-.9c.3-.6.8-1.4.9-2.1 0-.3 0-.8-.3-1.1z"})),Yp=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM5 6.7V10h1V5.3L3.8 6l.4 1 .8-.3zm-.4 5.7c-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5h2.7v-1h-1c.3-.6.8-1.4.9-2.1.1-.3 0-.8-.2-1.1-.5-.6-1.3-.5-1.7-.4z"})),Jp=window.wp.deprecated;var Xp=n.n(Jp);const ed=({setAttributes:e,reversed:t,start:n,type:a})=>(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Start value"),type:"number",onChange:t=>{const n=parseInt(t,10);e({start:isNaN(n)?void 0:n})},value:Number.isInteger(n)?n.toString(10):"",step:"1"}),(0,Ke.createElement)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Numbering style"),options:[{label:(0,tt.__)("Numbers"),value:"decimal"},{label:(0,tt.__)("Uppercase letters"),value:"upper-alpha"},{label:(0,tt.__)("Lowercase letters"),value:"lower-alpha"},{label:(0,tt.__)("Uppercase Roman numerals"),value:"upper-roman"},{label:(0,tt.__)("Lowercase Roman numerals"),value:"lower-roman"}],value:a,onChange:t=>e({type:t})}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Reverse list numbering"),checked:t||!1,onChange:t=>{e({reversed:t||void 0})}})));const td=(0,_t.forwardRef)((function(e,t){const{ordered:n,...a}=e,o=n?"ol":"ul";return(0,Ke.createElement)(o,{ref:t,...a})})),nd={name:"core/list-item"},ad=[["core/list-item"]];function od({clientId:e}){const t=function(e){const{replaceBlocks:t,selectionChange:n}=(0,gt.useDispatch)(nt.store),{getBlockRootClientId:a,getBlockAttributes:o,getBlock:r}=(0,gt.useSelect)(nt.store);return(0,_t.useCallback)((()=>{const l=a(e),i=o(l),s=(0,Qe.createBlock)("core/list-item",i),{innerBlocks:c}=r(e);t([l],[s,...c]),n(c[c.length-1].clientId)}),[e])}(e),n=(0,gt.useSelect)((t=>{const{getBlockRootClientId:n,getBlockName:a}=t(nt.store);return"core/list-item"===a(n(e))}),[e]);return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.ToolbarButton,{icon:(0,tt.isRTL)()?jp:Wp,title:(0,tt.__)("Outdent"),describedBy:(0,tt.__)("Outdent list item"),disabled:!n,onClick:t}))}function rd({phrasingContentSchema:e}){const t={...e,ul:{},ol:{attributes:["type","start","reversed"]}};return["ul","ol"].forEach((e=>{t[e].children={li:{children:t}}})),t}function ld(e){return e.flatMap((({name:e,attributes:t,innerBlocks:n=[]})=>"core/list-item"===e?[t.content,...ld(n)]:ld(n)))}const id={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph","core/heading"],transform:e=>{let t=[];if(e.length>1)t=e.map((({content:e})=>(0,Qe.createBlock)("core/list-item",{content:e})));else if(1===e.length){const n=(0,zn.create)({html:e[0].content});t=(0,zn.split)(n,"\n").map((e=>(0,Qe.createBlock)("core/list-item",{content:(0,zn.toHTMLString)({value:e})})))}return(0,Qe.createBlock)("core/list",{anchor:e.anchor},t)}},{type:"raw",selector:"ol,ul",schema:e=>({ol:rd(e).ol,ul:rd(e).ul}),transform:function e(t){const n=t.getAttribute("type"),a={ordered:"OL"===t.tagName,anchor:""===t.id?void 0:t.id,start:t.getAttribute("start")?parseInt(t.getAttribute("start"),10):void 0,reversed:!!t.hasAttribute("reversed")||void 0,type:n&&Fp[n]?Fp[n]:void 0},o=Array.from(t.children).map((t=>{const n=Array.from(t.childNodes).filter((e=>e.nodeType!==e.TEXT_NODE||0!==e.textContent.trim().length));n.reverse();const[a,...o]=n;if(!("UL"===a?.tagName||"OL"===a?.tagName))return(0,Qe.createBlock)("core/list-item",{content:t.innerHTML});const r=o.map((e=>e.nodeType===e.TEXT_NODE?e.textContent:e.outerHTML));r.reverse();const l={content:r.join("").trim()},i=[e(a)];return(0,Qe.createBlock)("core/list-item",l,i)}));return(0,Qe.createBlock)("core/list",a,o)}},...["*","-"].map((e=>({type:"prefix",prefix:e,transform:e=>(0,Qe.createBlock)("core/list",{},[(0,Qe.createBlock)("core/list-item",{content:e})])}))),...["1.","1)"].map((e=>({type:"prefix",prefix:e,transform:e=>(0,Qe.createBlock)("core/list",{ordered:!0},[(0,Qe.createBlock)("core/list-item",{content:e})])})))],to:[...["core/paragraph","core/heading"].map((e=>({type:"block",blocks:[e],transform:(t,n)=>ld(n).map((t=>(0,Qe.createBlock)(e,{content:t})))})))]},sd=id,cd={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/list",title:"List",category:"text",allowedBlocks:["core/list-item"],description:"Create a bulleted or numbered list.",keywords:["bullet list","ordered list","numbered list"],textdomain:"default",attributes:{ordered:{type:"boolean",default:!1,__experimentalRole:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",__experimentalRole:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,html:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__unstablePasteTextInline:!0,__experimentalOnMerge:!0,__experimentalSlashInserter:!0,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-list-editor",style:"wp-block-list"},{name:md}=cd,ud={icon:Mp,example:{innerBlocks:[{name:"core/list-item",attributes:{content:(0,tt.__)("Alice.")}},{name:"core/list-item",attributes:{content:(0,tt.__)("The White Rabbit.")}},{name:"core/list-item",attributes:{content:(0,tt.__)("The Cheshire Cat.")}},{name:"core/list-item",attributes:{content:(0,tt.__)("The Mad Hatter.")}},{name:"core/list-item",attributes:{content:(0,tt.__)("The Queen of Hearts.")}}]},transforms:sd,edit:function({attributes:e,setAttributes:t,clientId:n,style:a}){const{ordered:o,type:r,reversed:l,start:i}=e,s=(0,nt.useBlockProps)({style:{..._t.Platform.isNative&&a,listStyleType:o&&"decimal"!==r?r:void 0}}),c=(0,nt.useInnerBlocksProps)(s,{defaultBlock:nd,directInsert:!0,template:ad,templateLock:!1,templateInsertUpdatesSelection:!0,..._t.Platform.isNative&&{marginVertical:8,marginHorizontal:8,renderAppender:!1},__experimentalCaptureToolbars:!0});!function(e,t){const n=(0,gt.useRegistry)(),{updateBlockAttributes:a,replaceInnerBlocks:o}=(0,gt.useDispatch)(nt.store);(0,_t.useEffect)((()=>{if(!e.values)return;const[r,l]=Vp(e);Xp()("Value attribute on the list block",{since:"6.0",version:"6.5",alternative:"inner blocks"}),n.batch((()=>{a(t,r),o(t,l)}))}),[e.values])}(e,n);const m=(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(et.ToolbarButton,{icon:(0,tt.isRTL)()?Zp:Qp,title:(0,tt.__)("Unordered"),describedBy:(0,tt.__)("Convert to unordered list"),isActive:!1===o,onClick:()=>{t({ordered:!1})}}),(0,Ke.createElement)(et.ToolbarButton,{icon:(0,tt.isRTL)()?Kp:Yp,title:(0,tt.__)("Ordered"),describedBy:(0,tt.__)("Convert to ordered list"),isActive:!0===o,onClick:()=>{t({ordered:!0})}}),(0,Ke.createElement)(od,{clientId:n}));return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(td,{ordered:o,reversed:l,start:i,...c}),m,o&&(0,Ke.createElement)(ed,{setAttributes:t,reversed:l,start:i,type:r}))},save:function({attributes:e}){const{ordered:t,type:n,reversed:a,start:o}=e,r=t?"ol":"ul";return(0,Ke.createElement)(r,{...nt.useBlockProps.save({reversed:a,start:o,style:{listStyleType:t&&"decimal"!==n?n:void 0}})},(0,Ke.createElement)(nt.InnerBlocks.Content,null))},deprecated:qp},pd=()=>Xe({name:md,metadata:cd,settings:ud}),dd=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M12 11v1.5h8V11h-8zm-6-1c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})),gd=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM20.0303 9.03033L17.0607 12L20.0303 14.9697L18.9697 16.0303L15.4697 12.5303L14.9393 12L15.4697 11.4697L18.9697 7.96967L20.0303 9.03033Z"})),hd=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-8-3.5l3 3-3 3 1 1 4-4-4-4-1 1z"}));function bd(e){const{replaceBlocks:t,selectionChange:n,multiSelect:a}=(0,gt.useDispatch)(nt.store),{getBlock:o,getPreviousBlockClientId:r,getSelectionStart:l,getSelectionEnd:i,hasMultiSelection:s,getMultiSelectedBlockClientIds:c}=(0,gt.useSelect)(nt.store);return(0,_t.useCallback)((()=>{const m=s(),u=m?c():[e],p=u.map((e=>(0,Qe.cloneBlock)(o(e)))),d=r(e),g=(0,Qe.cloneBlock)(o(d));g.innerBlocks?.length||(g.innerBlocks=[(0,Qe.createBlock)("core/list")]),g.innerBlocks[g.innerBlocks.length-1].innerBlocks.push(...p);const h=l(),b=i();return t([d,...u],[g]),m?a(p[0].clientId,p[p.length-1].clientId):n(p[0].clientId,b.attributeKey,b.clientId===h.clientId?h.offset:b.offset,b.offset),!0}),[e])}function _d(){const e=(0,gt.useRegistry)(),{moveBlocksToPosition:t,removeBlock:n,insertBlock:a,updateBlockListSettings:o}=(0,gt.useDispatch)(nt.store),{getBlockRootClientId:r,getBlockName:l,getBlockOrder:i,getBlockIndex:s,getSelectedBlockClientIds:c,getBlock:m,getBlockListSettings:u}=(0,gt.useSelect)(nt.store);return(0,_t.useCallback)(((p=c())=>{if(Array.isArray(p)||(p=[p]),!p.length)return;const d=p[0];if("core/list-item"!==l(d))return;const g=function(e){const t=r(e),n=r(t);if(n&&"core/list-item"===l(n))return n}(d);if(!g)return;const h=r(d),b=p[p.length-1],_=i(h).slice(s(b)+1);return e.batch((()=>{if(_.length){let e=i(d)[0];if(!e){const t=(0,Qe.cloneBlock)(m(h),{},[]);e=t.clientId,a(t,0,d,!1),o(e,u(h))}t(_,h,e)}if(t(p,h,r(g),s(g)+1),!i(h).length){n(h,!1)}})),!0}),[])}function yd(e,t){const n=(0,gt.useRegistry)(),{getPreviousBlockClientId:a,getNextBlockClientId:o,getBlockOrder:r,getBlockRootClientId:l,getBlockName:i}=(0,gt.useSelect)(nt.store),{mergeBlocks:s,moveBlocksToPosition:c}=(0,gt.useDispatch)(nt.store),m=_d();function u(e){const t=r(e);return t.length?u(t[t.length-1]):e}function p(e){const t=l(e),n=l(t);if(n&&"core/list-item"===i(n))return n}function d(e){const t=o(e);if(t)return t;const n=p(e);return n?d(n):void 0}function g(e){const t=r(e);return t.length?r(t[0])[0]:d(e)}return o=>{function i(e,t){n.batch((()=>{const[n]=r(t);n&&c(r(n),n,l(e)),s(e,t)}))}if(o){const n=g(e);if(!n)return void t(o);p(n)?m(n):i(e,n)}else{const n=a(e);if(p(e))m(e);else if(n){i(u(n),e)}else t(o)}}}function vd({clientId:e}){const t=bd(e),n=_d(),{canIndent:a,canOutdent:o}=(0,gt.useSelect)((t=>{const{getBlockIndex:n,getBlockRootClientId:a,getBlockName:o}=t(nt.store);return{canIndent:n(e)>0,canOutdent:"core/list-item"===o(a(a(e)))}}),[e]);return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.ToolbarButton,{icon:(0,tt.isRTL)()?jp:Wp,title:(0,tt.__)("Outdent"),describedBy:(0,tt.__)("Outdent list item"),disabled:!o,onClick:()=>n()}),(0,Ke.createElement)(et.ToolbarButton,{icon:(0,tt.isRTL)()?gd:hd,title:(0,tt.__)("Indent"),describedBy:(0,tt.__)("Indent list item"),isDisabled:!a,onClick:()=>t()}))}const fd={to:[{type:"block",blocks:["core/paragraph"],transform:(e,t=[])=>[(0,Qe.createBlock)("core/paragraph",e),...t.map((e=>(0,Qe.cloneBlock)(e)))]}]},kd=fd,xd={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/list-item",title:"List item",category:"text",parent:["core/list"],allowedBlocks:["core/list"],description:"Create a list item.",textdomain:"default",attributes:{placeholder:{type:"string"},content:{type:"rich-text",source:"rich-text",selector:"li",__experimentalRole:"content"}},supports:{className:!1,__experimentalSelector:".wp-block-list > li",splitting:!0,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:wd}=xd,Ed={icon:dd,edit:function({attributes:e,setAttributes:t,clientId:n,mergeBlocks:a}){const{placeholder:o,content:r}=e,l=(0,nt.useBlockProps)(),i=(0,nt.useInnerBlocksProps)(l,{renderAppender:!1,__unstableDisableDropZone:!0}),s=function(e){const{replaceBlocks:t,selectionChange:n}=(0,gt.useDispatch)(nt.store),{getBlock:a,getBlockRootClientId:o,getBlockIndex:r,getBlockName:l}=(0,gt.useSelect)(nt.store),i=(0,_t.useRef)(e);i.current=e;const s=_d();return(0,jt.useRefEffect)((e=>{function c(e){if(e.defaultPrevented||e.keyCode!==vn.ENTER)return;const{content:c,clientId:m}=i.current;if(c.length)return;if(e.preventDefault(),"core/list-item"===l(o(o(i.current.clientId))))return void s();const u=a(o(m)),p=r(m),d=(0,Qe.cloneBlock)({...u,innerBlocks:u.innerBlocks.slice(0,p)}),g=(0,Qe.createBlock)((0,Qe.getDefaultBlockName)()),h=[...u.innerBlocks[p].innerBlocks[0]?.innerBlocks||[],...u.innerBlocks.slice(p+1)],b=h.length?[(0,Qe.cloneBlock)({...u,innerBlocks:h})]:[];t(u.clientId,[d,g,...b],1),n(g.clientId)}return e.addEventListener("keydown",c),()=>{e.removeEventListener("keydown",c)}}),[])}({content:r,clientId:n}),c=function(e){const{getSelectionStart:t,getSelectionEnd:n,getBlockIndex:a}=(0,gt.useSelect)(nt.store),o=bd(e),r=_d();return(0,jt.useRefEffect)((l=>{function i(l){const{keyCode:i,shiftKey:s,altKey:c,metaKey:m,ctrlKey:u}=l;if(l.defaultPrevented||i!==vn.SPACE&&i!==vn.TAB||c||m||u)return;const p=t(),d=n();0===p.offset&&0===d.offset&&(s?i===vn.TAB&&r()&&l.preventDefault():0!==a(e)&&o()&&l.preventDefault())}return l.addEventListener("keydown",i),()=>{l.removeEventListener("keydown",i)}}),[e,o])}(n),m=yd(n,a);return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)("li",{...i},(0,Ke.createElement)(nt.RichText,{ref:(0,jt.useMergeRefs)([s,c]),identifier:"content",tagName:"div",onChange:e=>t({content:e}),value:r,"aria-label":(0,tt.__)("List text"),placeholder:o||(0,tt.__)("List"),onMerge:m}),i.children),(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(vd,{clientId:n})))},save:function({attributes:e}){return(0,Ke.createElement)("li",{...nt.useBlockProps.save()},(0,Ke.createElement)(nt.RichText.Content,{value:e.content}),(0,Ke.createElement)(nt.InnerBlocks.Content,null))},merge:(e,t)=>({...e,content:e.content+t.content}),transforms:kd,[Ht(nt.privateApis).requiresWrapperOnCopy]:!0},Cd=()=>Xe({name:wd,metadata:xd,settings:Ed}),Sd=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M11 14.5l1.1 1.1 3-3 .5-.5-.6-.6-3-3-1 1 1.7 1.7H5v1.5h7.7L11 14.5zM16.8 5h-7c-1.1 0-2 .9-2 2v1.5h1.5V7c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v10c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5v-1.5H7.8V17c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2z"}));const Bd={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/loginout",title:"Login/out",category:"theme",description:"Show login & logout links.",keywords:["login","logout","form"],textdomain:"default",attributes:{displayLoginAsForm:{type:"boolean",default:!1},redirectToCurrent:{type:"boolean",default:!0}},supports:{className:!0,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:Nd}=Bd,Td={icon:Sd,edit:function({attributes:e,setAttributes:t}){const{displayLoginAsForm:n,redirectToCurrent:a}=e;return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Display login as form"),checked:n,onChange:()=>t({displayLoginAsForm:!n})}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Redirect to current URL"),checked:a,onChange:()=>t({redirectToCurrent:!a})}))),(0,Ke.createElement)("div",{...(0,nt.useBlockProps)({className:"logged-in"})},(0,Ke.createElement)("a",{href:"#login-pseudo-link"},(0,tt.__)("Log out"))))}},Id=()=>Xe({name:Nd,metadata:Bd,settings:Td}),Pd=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M3 6v11.5h8V6H3Zm11 3h7V7.5h-7V9Zm7 3.5h-7V11h7v1.5ZM14 16h7v-1.5h-7V16Z"})),Md="full",zd="media",Rd="attachment",Ad=[["core/paragraph",{placeholder:(0,tt._x)("Content…","content placeholder")}]],Ld=(e,t)=>e?{backgroundImage:`url(${e})`,backgroundPosition:t?`${100*t.x}% ${100*t.y}%`:"50% 50%"}:{},Hd=50,Dd=()=>{},Fd=e=>{if(!e.customBackgroundColor)return e;const t={color:{background:e.customBackgroundColor}},{customBackgroundColor:n,...a}=e;return{...a,style:t}},Vd=e=>e.align?e:{...e,align:"wide"},$d={align:{type:"string",default:"wide"},mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},mediaPosition:{type:"string",default:"left"},mediaId:{type:"number"},mediaType:{type:"string"},mediaWidth:{type:"number",default:50},isStackedOnMobile:{type:"boolean",default:!1}},Gd={...$d,isStackedOnMobile:{type:"boolean",default:!0},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"},mediaLink:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure a",attribute:"target"},href:{type:"string",source:"attribute",selector:"figure a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure a",attribute:"class"},mediaSizeSlug:{type:"string"},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}},Od={anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0}},Ud={attributes:{...Gd,mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:"",__experimentalRole:"content"},mediaId:{type:"number",__experimentalRole:"content"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src",__experimentalRole:"content"},href:{type:"string",source:"attribute",selector:"figure a",attribute:"href",__experimentalRole:"content"},mediaType:{type:"string",__experimentalRole:"content"}},supports:{...Od,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},save({attributes:e}){const{isStackedOnMobile:t,mediaAlt:n,mediaPosition:a,mediaType:o,mediaUrl:r,mediaWidth:l,mediaId:i,verticalAlignment:s,imageFill:c,focalPoint:m,linkClass:u,href:p,linkTarget:d,rel:g}=e,h=e.mediaSizeSlug||Md,b=g||void 0,_=ut({[`wp-image-${i}`]:i&&"image"===o,[`size-${h}`]:i&&"image"===o});let y=(0,Ke.createElement)("img",{src:r,alt:n,className:_||null});p&&(y=(0,Ke.createElement)("a",{className:u,href:p,target:d,rel:b},y));const v={image:()=>y,video:()=>(0,Ke.createElement)("video",{controls:!0,src:r})},f=ut({"has-media-on-the-right":"right"===a,"is-stacked-on-mobile":t,[`is-vertically-aligned-${s}`]:s,"is-image-fill":c}),k=c?((e,t)=>e?{backgroundImage:`url(${e})`,backgroundPosition:t?`${Math.round(100*t.x)}% ${Math.round(100*t.y)}%`:"50% 50%"}:{})(r,m):{};let x;l!==Hd&&(x="right"===a?`auto ${l}%`:`${l}% auto`);const w={gridTemplateColumns:x};return"right"===a?(0,Ke.createElement)("div",{...nt.useBlockProps.save({className:f,style:w})},(0,Ke.createElement)("div",{...nt.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,Ke.createElement)("figure",{className:"wp-block-media-text__media",style:k},(v[o]||Dd)())):(0,Ke.createElement)("div",{...nt.useBlockProps.save({className:f,style:w})},(0,Ke.createElement)("figure",{className:"wp-block-media-text__media",style:k},(v[o]||Dd)()),(0,Ke.createElement)("div",{...nt.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}))},migrate:Vd,isEligible(e,t,{block:n}){const{attributes:a}=n;return void 0===e.align&&!!a.className?.includes("alignwide")}},qd={attributes:Gd,supports:Od,save({attributes:e}){const{isStackedOnMobile:t,mediaAlt:n,mediaPosition:a,mediaType:o,mediaUrl:r,mediaWidth:l,mediaId:i,verticalAlignment:s,imageFill:c,focalPoint:m,linkClass:u,href:p,linkTarget:d,rel:g}=e,h=e.mediaSizeSlug||Md,b=g||void 0,_=ut({[`wp-image-${i}`]:i&&"image"===o,[`size-${h}`]:i&&"image"===o});let y=(0,Ke.createElement)("img",{src:r,alt:n,className:_||null});p&&(y=(0,Ke.createElement)("a",{className:u,href:p,target:d,rel:b},y));const v={image:()=>y,video:()=>(0,Ke.createElement)("video",{controls:!0,src:r})},f=ut({"has-media-on-the-right":"right"===a,"is-stacked-on-mobile":t,[`is-vertically-aligned-${s}`]:s,"is-image-fill":c}),k=c?Ld(r,m):{};let x;l!==Hd&&(x="right"===a?`auto ${l}%`:`${l}% auto`);const w={gridTemplateColumns:x};return"right"===a?(0,Ke.createElement)("div",{...nt.useBlockProps.save({className:f,style:w})},(0,Ke.createElement)("div",{...nt.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,Ke.createElement)("figure",{className:"wp-block-media-text__media",style:k},(v[o]||Dd)())):(0,Ke.createElement)("div",{...nt.useBlockProps.save({className:f,style:w})},(0,Ke.createElement)("figure",{className:"wp-block-media-text__media",style:k},(v[o]||Dd)()),(0,Ke.createElement)("div",{...nt.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}))},migrate:Vd},jd={attributes:Gd,supports:Od,save({attributes:e}){const{isStackedOnMobile:t,mediaAlt:n,mediaPosition:a,mediaType:o,mediaUrl:r,mediaWidth:l,mediaId:i,verticalAlignment:s,imageFill:c,focalPoint:m,linkClass:u,href:p,linkTarget:d,rel:g}=e,h=e.mediaSizeSlug||Md,b=g||void 0,_=ut({[`wp-image-${i}`]:i&&"image"===o,[`size-${h}`]:i&&"image"===o});let y=(0,Ke.createElement)("img",{src:r,alt:n,className:_||null});p&&(y=(0,Ke.createElement)("a",{className:u,href:p,target:d,rel:b},y));const v={image:()=>y,video:()=>(0,Ke.createElement)("video",{controls:!0,src:r})},f=ut({"has-media-on-the-right":"right"===a,"is-stacked-on-mobile":t,[`is-vertically-aligned-${s}`]:s,"is-image-fill":c}),k=c?Ld(r,m):{};let x;l!==Hd&&(x="right"===a?`auto ${l}%`:`${l}% auto`);const w={gridTemplateColumns:x};return(0,Ke.createElement)("div",{...nt.useBlockProps.save({className:f,style:w})},(0,Ke.createElement)("figure",{className:"wp-block-media-text__media",style:k},(v[o]||Dd)()),(0,Ke.createElement)("div",{...nt.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}))},migrate:Vd},Wd={attributes:{...$d,isStackedOnMobile:{type:"boolean",default:!0},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaLink:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure a",attribute:"target"},href:{type:"string",source:"attribute",selector:"figure a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure a",attribute:"class"},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}},migrate:(0,jt.compose)(Fd,Vd),save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n,isStackedOnMobile:a,mediaAlt:o,mediaPosition:r,mediaType:l,mediaUrl:i,mediaWidth:s,mediaId:c,verticalAlignment:m,imageFill:u,focalPoint:p,linkClass:d,href:g,linkTarget:h,rel:b}=e,_=b||void 0;let y=(0,Ke.createElement)("img",{src:i,alt:o,className:c&&"image"===l?`wp-image-${c}`:null});g&&(y=(0,Ke.createElement)("a",{className:d,href:g,target:h,rel:_},y));const v={image:()=>y,video:()=>(0,Ke.createElement)("video",{controls:!0,src:i})},f=(0,nt.getColorClassName)("background-color",t),k=ut({"has-media-on-the-right":"right"===r,"has-background":f||n,[f]:f,"is-stacked-on-mobile":a,[`is-vertically-aligned-${m}`]:m,"is-image-fill":u}),x=u?Ld(i,p):{};let w;s!==Hd&&(w="right"===r?`auto ${s}%`:`${s}% auto`);const E={backgroundColor:f?void 0:n,gridTemplateColumns:w};return(0,Ke.createElement)("div",{className:k,style:E},(0,Ke.createElement)("figure",{className:"wp-block-media-text__media",style:x},(v[l]||Dd)()),(0,Ke.createElement)("div",{className:"wp-block-media-text__content"},(0,Ke.createElement)(nt.InnerBlocks.Content,null)))}},Zd={attributes:{...$d,backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}},migrate:(0,jt.compose)(Fd,Vd),save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n,isStackedOnMobile:a,mediaAlt:o,mediaPosition:r,mediaType:l,mediaUrl:i,mediaWidth:s,mediaId:c,verticalAlignment:m,imageFill:u,focalPoint:p}=e,d={image:()=>(0,Ke.createElement)("img",{src:i,alt:o,className:c&&"image"===l?`wp-image-${c}`:null}),video:()=>(0,Ke.createElement)("video",{controls:!0,src:i})},g=(0,nt.getColorClassName)("background-color",t),h=ut({"has-media-on-the-right":"right"===r,[g]:g,"is-stacked-on-mobile":a,[`is-vertically-aligned-${m}`]:m,"is-image-fill":u}),b=u?Ld(i,p):{};let _;s!==Hd&&(_="right"===r?`auto ${s}%`:`${s}% auto`);const y={backgroundColor:g?void 0:n,gridTemplateColumns:_};return(0,Ke.createElement)("div",{className:h,style:y},(0,Ke.createElement)("figure",{className:"wp-block-media-text__media",style:b},(d[l]||Dd)()),(0,Ke.createElement)("div",{className:"wp-block-media-text__content"},(0,Ke.createElement)(nt.InnerBlocks.Content,null)))}},Qd={attributes:{...$d,backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"}},migrate:Vd,save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n,isStackedOnMobile:a,mediaAlt:o,mediaPosition:r,mediaType:l,mediaUrl:i,mediaWidth:s}=e,c={image:()=>(0,Ke.createElement)("img",{src:i,alt:o}),video:()=>(0,Ke.createElement)("video",{controls:!0,src:i})},m=(0,nt.getColorClassName)("background-color",t),u=ut({"has-media-on-the-right":"right"===r,[m]:m,"is-stacked-on-mobile":a});let p;s!==Hd&&(p="right"===r?`auto ${s}%`:`${s}% auto`);const d={backgroundColor:m?void 0:n,gridTemplateColumns:p};return(0,Ke.createElement)("div",{className:u,style:d},(0,Ke.createElement)("figure",{className:"wp-block-media-text__media"},(c[l]||Dd)()),(0,Ke.createElement)("div",{className:"wp-block-media-text__content"},(0,Ke.createElement)(nt.InnerBlocks.Content,null)))}},Kd=[Ud,qd,jd,Wd,Zd,Qd],Yd=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M4 18h6V6H4v12zm9-9.5V10h7V8.5h-7zm0 7h7V14h-7v1.5z"})),Jd=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M14 6v12h6V6h-6zM4 10h7V8.5H4V10zm0 5.5h7V14H4v1.5z"})),Xd=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"m7 6.5 4 2.5-4 2.5z"}),(0,Ke.createElement)(Ye.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m5 3c-1.10457 0-2 .89543-2 2v14c0 1.1046.89543 2 2 2h14c1.1046 0 2-.8954 2-2v-14c0-1.10457-.8954-2-2-2zm14 1.5h-14c-.27614 0-.5.22386-.5.5v10.7072l3.62953-2.6465c.25108-.1831.58905-.1924.84981-.0234l2.92666 1.8969 3.5712-3.4719c.2911-.2831.7545-.2831 1.0456 0l2.9772 2.8945v-9.3568c0-.27614-.2239-.5-.5-.5zm-14.5 14.5v-1.4364l4.09643-2.987 2.99567 1.9417c.2936.1903.6798.1523.9307-.0917l3.4772-3.3806 3.4772 3.3806.0228-.0234v2.5968c0 .2761-.2239.5-.5.5h-14c-.27614 0-.5-.2239-.5-.5z"})),eg=["image","video"],tg=()=>{};function ng(e,t){return e?{backgroundImage:`url(${e})`,backgroundPosition:t?`${Math.round(100*t.x)}% ${Math.round(100*t.y)}%`:"50% 50%"}:{}}const ag=(0,_t.forwardRef)((({isSelected:e,isStackedOnMobile:t,...n},a)=>{const o=(0,jt.useViewportMatch)("small","<");return(0,Ke.createElement)(et.ResizableBox,{ref:a,showHandle:e&&(!o||!t),...n})}));function og({mediaId:e,mediaUrl:t,onSelectMedia:n,toggleUseFeaturedImage:a,useFeaturedImage:o,featuredImageURL:r}){return(0,Ke.createElement)(nt.BlockControls,{group:"other"},(0,Ke.createElement)(nt.MediaReplaceFlow,{mediaId:e,mediaUrl:o&&r?r:t,allowedTypes:eg,accept:"image/*,video/*",onSelect:n,onToggleFeaturedImage:a,useFeaturedImage:o}))}function rg({className:e,mediaUrl:t,onSelectMedia:n,toggleUseFeaturedImage:a}){const{createErrorNotice:o}=(0,gt.useDispatch)(Pt.store);return(0,Ke.createElement)(nt.MediaPlaceholder,{icon:(0,Ke.createElement)(nt.BlockIcon,{icon:Xd}),labels:{title:(0,tt.__)("Media area")},className:e,onSelect:n,accept:"image/*,video/*",onToggleFeaturedImage:a,allowedTypes:eg,onError:e=>{o(e,{type:"snackbar"})},disableMediaButtons:t})}const lg=(0,_t.forwardRef)((function(e,t){const{className:n,commitWidthChange:a,focalPoint:o,imageFill:r,isSelected:l,isStackedOnMobile:i,mediaAlt:s,mediaId:c,mediaPosition:m,mediaType:u,mediaUrl:p,mediaWidth:d,onSelectMedia:g,onWidthChange:h,enableResize:b,toggleUseFeaturedImage:_,useFeaturedImage:y,featuredImageURL:v,featuredImageAlt:f}=e,k=!c&&(0,It.isBlobURL)(p),{toggleSelection:x}=(0,gt.useDispatch)(nt.store);if(p||v||y){const w=()=>{x(!1)},E=(e,t,n)=>{h(parseInt(n.style.width))},C=(e,t,n)=>{x(!0),a(parseInt(n.style.width))},S={right:b&&"left"===m,left:b&&"right"===m},B="image"===u&&r?ng(p||v,o):{},N={image:()=>y&&v?(0,Ke.createElement)("img",{src:v,alt:f}):p&&(0,Ke.createElement)("img",{src:p,alt:s}),video:()=>(0,Ke.createElement)("video",{controls:!0,src:p})};return(0,Ke.createElement)(ag,{as:"figure",className:ut(n,"editor-media-container__resizer",{"is-transient":k}),style:B,size:{width:d+"%"},minWidth:"10%",maxWidth:"100%",enable:S,onResizeStart:w,onResize:E,onResizeStop:C,axis:"x",isSelected:l,isStackedOnMobile:i,ref:t},(0,Ke.createElement)(og,{onSelectMedia:g,mediaUrl:y&&v?v:p,mediaId:c,toggleUseFeaturedImage:_,useFeaturedImage:y}),(N[u]||tg)(),k&&(0,Ke.createElement)(et.Spinner,null),!y&&(0,Ke.createElement)(rg,{...e}),!v&&y&&(0,Ke.createElement)(et.Placeholder,{className:"wp-block-media-text--placeholder-image",withIllustration:!0}))}return(0,Ke.createElement)(rg,{...e})})),ig=e=>Math.max(15,Math.min(e,85));function sg(e,t){return e?.media_details?.sizes?.[t]?.source_url}const cg=function({attributes:e,isSelected:t,setAttributes:n,context:{postId:a,postType:o}}){const{focalPoint:r,href:l,imageFill:i,isStackedOnMobile:s,linkClass:c,linkDestination:m,linkTarget:u,mediaAlt:p,mediaId:d,mediaPosition:g,mediaType:h,mediaUrl:b,mediaWidth:_,rel:y,verticalAlignment:v,allowedBlocks:f,useFeaturedImage:k}=e,x=e.mediaSizeSlug||Md,[w]=(0,dt.useEntityProp)("postType",o,"featured_media",a),E=(0,gt.useSelect)((e=>w&&e(dt.store).getMedia(w,{context:"view"})),[w]),C=k?E?.source_url:"",S=k?E?.alt_text:"",{imageSizes:B,image:N}=(0,gt.useSelect)((e=>{const{getSettings:n}=e(nt.store);return{image:d&&t?e(dt.store).getMedia(d,{context:"view"}):null,imageSizes:n()?.imageSizes}}),[t,d]),T=(0,_t.useRef)(),I=e=>{const{style:t}=T.current.resizable,{x:n,y:a}=e;t.backgroundPosition=`${100*n}% ${100*a}%`},[P,M]=(0,_t.useState)(null),z=function({attributes:{linkDestination:e,href:t},setAttributes:n}){return a=>{if(!a||!a.url)return void n({mediaAlt:void 0,mediaId:void 0,mediaType:void 0,mediaUrl:void 0,mediaLink:void 0,href:void 0,focalPoint:void 0});let o,r;(0,It.isBlobURL)(a.url)&&(a.type=(0,It.getBlobTypeByURL)(a.url)),o=a.media_type?"image"===a.media_type?"image":"video":a.type,"image"===o&&(r=a.sizes?.large?.url||a.media_details?.sizes?.large?.source_url);let l=t;e===zd&&(l=a.url),e===Rd&&(l=a.link),n({mediaAlt:a.alt,mediaId:a.id,mediaType:o,mediaUrl:r||a.url,mediaLink:a.link||void 0,href:l,focalPoint:void 0})}}({attributes:e,setAttributes:n}),R=e=>{n({mediaWidth:ig(e)}),M(null)},A=ut({"has-media-on-the-right":"right"===g,"is-selected":t,"is-stacked-on-mobile":s,[`is-vertically-aligned-${v}`]:v,"is-image-fill":i}),L=`${P||_}%`,H="right"===g?`1fr ${L}`:`${L} 1fr`,D={gridTemplateColumns:H,msGridColumns:H},F=B.filter((({slug:e})=>sg(N,e))).map((({name:e,slug:t})=>({value:t,label:e}))),V=(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Media width"),value:P||_,onChange:R,min:15,max:85}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Stack on mobile"),checked:s,onChange:()=>n({isStackedOnMobile:!s})}),"image"===h&&(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Crop image to fill"),checked:!!i,onChange:()=>n({imageFill:!i})}),i&&(b||C)&&"image"===h&&(0,Ke.createElement)(et.FocalPointPicker,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Focal point"),url:k&&C?C:b,value:r,onChange:e=>n({focalPoint:e}),onDragStart:I,onDrag:I}),"image"===h&&b&&!k&&(0,Ke.createElement)(et.TextareaControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Alternative text"),value:p,onChange:e=>{n({mediaAlt:e})},help:(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},(0,tt.__)("Describe the purpose of the image.")),(0,Ke.createElement)("br",null),(0,tt.__)("Leave empty if decorative."))}),"image"===h&&(0,Ke.createElement)(nt.__experimentalImageSizeControl,{onChangeImage:e=>{const t=sg(N,e);if(!t)return null;n({mediaUrl:t,mediaSizeSlug:e})},slug:x,imageSizeOptions:F,isResizable:!1,imageSizeHelp:(0,tt.__)("Select the size of the source image.")})),$=(0,nt.useBlockProps)({className:A,style:D}),G=(0,nt.useInnerBlocksProps)({className:"wp-block-media-text__content"},{template:Ad,allowedBlocks:f}),O=(0,nt.useBlockEditingMode)();return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.InspectorControls,null,V),(0,Ke.createElement)(nt.BlockControls,{group:"block"},"default"===O&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockVerticalAlignmentControl,{onChange:e=>{n({verticalAlignment:e})},value:v}),(0,Ke.createElement)(et.ToolbarButton,{icon:Yd,title:(0,tt.__)("Show media on left"),isActive:"left"===g,onClick:()=>n({mediaPosition:"left"})}),(0,Ke.createElement)(et.ToolbarButton,{icon:Jd,title:(0,tt.__)("Show media on right"),isActive:"right"===g,onClick:()=>n({mediaPosition:"right"})})),"image"===h&&(0,Ke.createElement)(nt.__experimentalImageURLInputUI,{url:l||"",onChangeUrl:e=>{n(e)},linkDestination:m,mediaType:h,mediaUrl:k&&C?C:N&&N.source_url,mediaLink:N&&N.link,linkTarget:u,linkClass:c,rel:y})),(0,Ke.createElement)("div",{...$},"right"===g&&(0,Ke.createElement)("div",{...G}),(0,Ke.createElement)(lg,{className:"wp-block-media-text__media",onSelectMedia:z,onWidthChange:e=>{M(ig(e))},commitWidthChange:R,ref:T,enableResize:"default"===O,toggleUseFeaturedImage:()=>{n({imageFill:!1,mediaType:"image",mediaId:void 0,mediaUrl:void 0,mediaAlt:void 0,useFeaturedImage:!k})},focalPoint:r,imageFill:i,isSelected:t,isStackedOnMobile:s,mediaAlt:p,mediaId:d,mediaPosition:g,mediaType:h,mediaUrl:b,mediaWidth:_,useFeaturedImage:k,featuredImageURL:C,featuredImageAlt:S}),"right"!==g&&(0,Ke.createElement)("div",{...G})))},mg=()=>{};const ug={from:[{type:"block",blocks:["core/image"],transform:({alt:e,url:t,id:n,anchor:a})=>(0,Qe.createBlock)("core/media-text",{mediaAlt:e,mediaId:n,mediaUrl:t,mediaType:"image",anchor:a})},{type:"block",blocks:["core/video"],transform:({src:e,id:t,anchor:n})=>(0,Qe.createBlock)("core/media-text",{mediaId:t,mediaUrl:e,mediaType:"video",anchor:n})},{type:"block",blocks:["core/cover"],transform:({align:e,alt:t,anchor:n,backgroundType:a,customGradient:o,customOverlayColor:r,gradient:l,id:i,overlayColor:s,style:c,textColor:m,url:u},p)=>{let d={};return o?d={style:{color:{gradient:o}}}:r&&(d={style:{color:{background:r}}}),c?.color?.text&&(d.style={color:{...d.style?.color,text:c.color.text}}),(0,Qe.createBlock)("core/media-text",{align:e,anchor:n,backgroundColor:s,gradient:l,mediaAlt:t,mediaId:i,mediaType:a,mediaUrl:u,textColor:m,...d},p)}}],to:[{type:"block",blocks:["core/image"],isMatch:({mediaType:e,mediaUrl:t})=>!t||"image"===e,transform:({mediaAlt:e,mediaId:t,mediaUrl:n,anchor:a})=>(0,Qe.createBlock)("core/image",{alt:e,id:t,url:n,anchor:a})},{type:"block",blocks:["core/video"],isMatch:({mediaType:e,mediaUrl:t})=>!t||"video"===e,transform:({mediaId:e,mediaUrl:t,anchor:n})=>(0,Qe.createBlock)("core/video",{id:e,src:t,anchor:n})},{type:"block",blocks:["core/cover"],transform:({align:e,anchor:t,backgroundColor:n,focalPoint:a,gradient:o,mediaAlt:r,mediaId:l,mediaType:i,mediaUrl:s,style:c,textColor:m},u)=>{const p={};c?.color?.gradient?p.customGradient=c.color.gradient:c?.color?.background&&(p.customOverlayColor=c.color.background),c?.color?.text&&(p.style={color:{text:c.color.text}});const d={align:e,alt:r,anchor:t,backgroundType:i,dimRatio:s?50:100,focalPoint:a,gradient:o,id:l,overlayColor:n,textColor:m,url:s,...p};return(0,Qe.createBlock)("core/cover",d,u)}}]},pg=ug,dg={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/media-text",title:"Media & Text",category:"media",description:"Set media and words side-by-side for a richer layout.",keywords:["image","video"],textdomain:"default",attributes:{align:{type:"string",default:"none"},mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:"",__experimentalRole:"content"},mediaPosition:{type:"string",default:"left"},mediaId:{type:"number",__experimentalRole:"content"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src",__experimentalRole:"content"},mediaLink:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure a",attribute:"target"},href:{type:"string",source:"attribute",selector:"figure a",attribute:"href",__experimentalRole:"content"},rel:{type:"string",source:"attribute",selector:"figure a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure a",attribute:"class"},mediaType:{type:"string",__experimentalRole:"content"},mediaWidth:{type:"number",default:50},mediaSizeSlug:{type:"string"},isStackedOnMobile:{type:"boolean",default:!0},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"},allowedBlocks:{type:"array"},useFeaturedImage:{type:"boolean",default:!1}},usesContext:["postId","postType"],supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-media-text-editor",style:"wp-block-media-text"},{name:gg}=dg,hg={icon:Pd,example:{viewportWidth:601,attributes:{mediaType:"image",mediaUrl:"https://s.w.org/images/core/5.3/Biologia_Centrali-Americana_-_Cantorchilus_semibadius_1902.jpg"},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,tt.__)("The wren<br>Earns his living<br>Noiselessly.")}},{name:"core/paragraph",attributes:{content:(0,tt.__)("— Kobayashi Issa (一茶)")}}]},transforms:pg,edit:cg,save:function({attributes:e}){const{isStackedOnMobile:t,mediaAlt:n,mediaPosition:a,mediaType:o,mediaUrl:r,mediaWidth:l,mediaId:i,verticalAlignment:s,imageFill:c,focalPoint:m,linkClass:u,href:p,linkTarget:d,rel:g}=e,h=e.mediaSizeSlug||Md,b=g||void 0,_=ut({[`wp-image-${i}`]:i&&"image"===o,[`size-${h}`]:i&&"image"===o});let y=r?(0,Ke.createElement)("img",{src:r,alt:n,className:_||null}):null;p&&(y=(0,Ke.createElement)("a",{className:u,href:p,target:d,rel:b},y));const v={image:()=>y,video:()=>(0,Ke.createElement)("video",{controls:!0,src:r})},f=ut({"has-media-on-the-right":"right"===a,"is-stacked-on-mobile":t,[`is-vertically-aligned-${s}`]:s,"is-image-fill":c}),k=c?ng(r,m):{};let x;50!==l&&(x="right"===a?`auto ${l}%`:`${l}% auto`);const w={gridTemplateColumns:x};return"right"===a?(0,Ke.createElement)("div",{...nt.useBlockProps.save({className:f,style:w})},(0,Ke.createElement)("div",{...nt.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,Ke.createElement)("figure",{className:"wp-block-media-text__media",style:k},(v[o]||mg)())):(0,Ke.createElement)("div",{...nt.useBlockProps.save({className:f,style:w})},(0,Ke.createElement)("figure",{className:"wp-block-media-text__media",style:k},(v[o]||mg)()),(0,Ke.createElement)("div",{...nt.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}))},deprecated:Kd},bg=()=>Xe({name:gg,metadata:dg,settings:hg});const _g=(0,gt.withDispatch)(((e,{clientId:t,attributes:n})=>{const{replaceBlock:a}=e(nt.store);return{convertToHTML(){a(t,(0,Qe.createBlock)("core/html",{content:n.originalUndelimitedContent}))}}}))((function({attributes:e,convertToHTML:t,clientId:n}){const{originalName:a,originalUndelimitedContent:o}=e,r=!!o,{hasFreeformBlock:l,hasHTMLBlock:i}=(0,gt.useSelect)((e=>{const{canInsertBlockType:t,getBlockRootClientId:a}=e(nt.store);return{hasFreeformBlock:t("core/freeform",a(n)),hasHTMLBlock:t("core/html",a(n))}}),[n]),s=[];let c;const m=(0,Ke.createElement)(et.Button,{key:"convert",onClick:t,variant:"primary"},(0,tt.__)("Keep as HTML"));return!r||l||a?r&&i?(c=(0,tt.sprintf)((0,tt.__)('Your site doesn’t include support for the "%s" block. You can leave this block intact, convert its content to a Custom HTML block, or remove it entirely.'),a),s.push(m)):c=(0,tt.sprintf)((0,tt.__)('Your site doesn’t include support for the "%s" block. You can leave this block intact or remove it entirely.'),a):i?(c=(0,tt.__)("It appears you are trying to use the deprecated Classic block. You can leave this block intact, convert its content to a Custom HTML block, or remove it entirely. Alternatively, you can refresh the page to use the Classic block."),s.push(m)):c=(0,tt.__)("It appears you are trying to use the deprecated Classic block. You can leave this block intact, or remove it entirely. Alternatively, you can refresh the page to use the Classic block."),(0,Ke.createElement)("div",{...(0,nt.useBlockProps)({className:"has-warning"})},(0,Ke.createElement)(nt.Warning,{actions:s},c),(0,Ke.createElement)(_t.RawHTML,null,(0,lc.safeHTML)(o)))})),yg=_g;const vg={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/missing",title:"Unsupported",category:"text",description:"Your site doesn’t include support for this block.",textdomain:"default",attributes:{originalName:{type:"string"},originalUndelimitedContent:{type:"string"},originalContent:{type:"string",source:"raw"}},supports:{className:!1,customClassName:!1,inserter:!1,html:!1,reusable:!1,interactivity:{clientNavigation:!0}}},{name:fg}=vg,kg={name:fg,__experimentalLabel(e,{context:t}){if("accessibility"===t){const{originalName:t}=e,n=t?(0,Qe.getBlockType)(t):void 0;return n?n.settings.title||t:""}},edit:yg,save:function({attributes:e}){return(0,Ke.createElement)(_t.RawHTML,null,e.originalContent)}},xg=()=>Xe({name:fg,metadata:vg,settings:kg}),wg=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M4 9v1.5h16V9H4zm12 5.5h4V13h-4v1.5zm-6 0h4V13h-4v1.5zm-6 0h4V13H4v1.5z"})),Eg=(0,tt.__)("Read more");const Cg={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:e=>e.dataset&&"core/more"===e.dataset.block,transform(e){const{customText:t,noTeaser:n}=e.dataset,a={};return t&&(a.customText=t),""===n&&(a.noTeaser=!0),(0,Qe.createBlock)("core/more",a)}}]},Sg={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/more",title:"More",category:"design",description:"Content before this block will be shown in the excerpt on your archives page.",keywords:["read more"],textdomain:"default",attributes:{customText:{type:"string"},noTeaser:{type:"boolean",default:!1}},supports:{customClassName:!1,className:!1,html:!1,multiple:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-more-editor"},{name:Bg}=Sg,Ng={icon:wg,example:{},__experimentalLabel(e,{context:t}){const n=e?.metadata?.name;return"list-view"===t&&n?n:"accessibility"===t?e.customText:void 0},transforms:Cg,edit:function({attributes:{customText:e,noTeaser:t},insertBlocksAfter:n,setAttributes:a}){const o={width:`${(e||Eg).length+1.2}em`};return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,null,(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Hide the excerpt on the full content page"),checked:!!t,onChange:()=>a({noTeaser:!t}),help:e=>e?(0,tt.__)("The excerpt is hidden."):(0,tt.__)("The excerpt is visible.")}))),(0,Ke.createElement)("div",{...(0,nt.useBlockProps)()},(0,Ke.createElement)("input",{"aria-label":(0,tt.__)("“Read more” link text"),type:"text",value:e,placeholder:Eg,onChange:e=>{a({customText:""!==e.target.value?e.target.value:void 0})},onKeyDown:({keyCode:e})=>{e===vn.ENTER&&n([(0,Qe.createBlock)((0,Qe.getDefaultBlockName)())])},style:o})))},save:function({attributes:{customText:e,noTeaser:t}}){const n=e?`\x3c!--more ${e}--\x3e`:"\x3c!--more--\x3e",a=t?"\x3c!--noteaser--\x3e":"";return(0,Ke.createElement)(_t.RawHTML,null,[n,a].filter(Boolean).join("\n"))}},Tg=()=>Xe({name:Bg,metadata:Sg,settings:Ng}),Ig=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 14.5c-3.6 0-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5zM9 16l4.5-3L15 8.4l-4.5 3L9 16z"})),Pg=window.wp.a11y;const Mg=(0,_t.forwardRef)((function({icon:e,size:t=24,...n},a){return(0,_t.cloneElement)(e,{width:t,height:t,...n,ref:a})})),zg=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})),Rg={name:"core/navigation-link"},Ag=["core/navigation-link/page","core/navigation-link"],Lg={per_page:100,status:["publish","draft"],order:"desc",orderby:"date"},Hg=["postType","wp_navigation",Lg];function Dg(e){const t=(0,dt.useResourcePermissions)("navigation",e),{navigationMenu:n,isNavigationMenuResolved:a,isNavigationMenuMissing:o}=(0,gt.useSelect)((t=>function(e,t){if(!t)return{isNavigationMenuResolved:!1,isNavigationMenuMissing:!0};const{getEntityRecord:n,getEditedEntityRecord:a,hasFinishedResolution:o}=e(dt.store),r=["postType","wp_navigation",t],l=n(...r),i=a(...r),s=o("getEditedEntityRecord",r),c="publish"===i.status||"draft"===i.status;return{isNavigationMenuResolved:s,isNavigationMenuMissing:s&&(!l||!c),navigationMenu:c?i:null}}(t,e)),[e]),{canCreate:r,canUpdate:l,canDelete:i,isResolving:s,hasResolved:c}=t,{records:m,isResolving:u,hasResolved:p}=(0,dt.useEntityRecords)("postType","wp_navigation",Lg);return{navigationMenu:n,isNavigationMenuResolved:a,isNavigationMenuMissing:o,navigationMenus:m,isResolvingNavigationMenus:u,hasResolvedNavigationMenus:p,canSwitchNavigationMenu:e?m?.length>1:m?.length>0,canUserCreateNavigationMenus:r,isResolvingCanUserCreateNavigationMenus:s,hasResolvedCanUserCreateNavigationMenus:c,canUserUpdateNavigationMenu:l,hasResolvedCanUserUpdateNavigationMenu:e?c:void 0,canUserDeleteNavigationMenu:i,hasResolvedCanUserDeleteNavigationMenu:e?c:void 0}}function Fg(e){const{records:t,isResolving:n,hasResolved:a}=(0,dt.useEntityRecords)("root","menu",{per_page:-1,context:"view"}),{records:o,isResolving:r,hasResolved:l}=(0,dt.useEntityRecords)("postType","page",{parent:0,order:"asc",orderby:"id",per_page:-1,context:"view"}),{records:i,hasResolved:s}=(0,dt.useEntityRecords)("root","menuItem",{menus:e,per_page:-1,context:"view"},{enabled:!!e});return{pages:o,isResolvingPages:r,hasResolvedPages:l,hasPages:!(!l||!o?.length),menus:t,isResolvingMenus:n,hasResolvedMenus:a,hasMenus:!(!a||!t?.length),menuItems:i,hasResolvedMenuItems:s}}const Vg=({isVisible:e=!0})=>(0,Ke.createElement)("div",{"aria-hidden":!e||void 0,className:"wp-block-navigation-placeholder__preview"},(0,Ke.createElement)("div",{className:"wp-block-navigation-placeholder__actions__indicator"},(0,Ke.createElement)(Mg,{icon:Ig}),(0,tt.__)("Navigation"))),$g=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));const Gg=function({currentMenuId:e,onSelectNavigationMenu:t,onSelectClassicMenu:n,onCreateNew:a,actionLabel:o,createNavigationMenuIsSuccess:r,createNavigationMenuIsError:l}){const i=(0,tt.__)("Create from '%s'"),[s,c]=(0,_t.useState)(!1);o=o||i;const{menus:m}=Fg(),{navigationMenus:u,isResolvingNavigationMenus:p,hasResolvedNavigationMenus:d,canUserCreateNavigationMenus:g,canSwitchNavigationMenu:h}=Dg(),[b]=(0,dt.useEntityProp)("postType","wp_navigation","title"),_=(0,_t.useMemo)((()=>u?.map((({id:e,title:t,status:n},a)=>{const r=function(e,t,n){return e?"publish"===n?(0,Yn.decodeEntities)(e):(0,tt.sprintf)((0,tt.__)("%1$s (%2$s)"),(0,Yn.decodeEntities)(e),n):(0,tt.sprintf)((0,tt.__)("(no title %s)"),t)}(t?.rendered,a+1,n);return{value:e,label:r,ariaLabel:(0,tt.sprintf)(o,r),disabled:s||p||!d}}))||[]),[u,o,p,d,s]),y=!!u?.length,v=!!m?.length,f=!!h,k=!!g,x=y&&!e,w=!y&&d,E=d&&null===e;let C="";C=p?(0,tt.__)("Loading…"):x||w||E?(0,tt.__)("Choose or create a Navigation Menu"):b,(0,_t.useEffect)((()=>{s&&(r||l)&&c(!1)}),[d,r,g,l,s,E,w,x]);const S=(0,Ke.createElement)(et.DropdownMenu,{label:C,icon:$g,toggleProps:{size:"small"}},(({onClose:o})=>(0,Ke.createElement)(Ke.Fragment,null,f&&y&&(0,Ke.createElement)(et.MenuGroup,{label:(0,tt.__)("Menus")},(0,Ke.createElement)(et.MenuItemsChoice,{value:e,onSelect:e=>{t(e),o()},choices:_})),k&&v&&(0,Ke.createElement)(et.MenuGroup,{label:(0,tt.__)("Import Classic Menus")},m?.map((e=>{const t=(0,Yn.decodeEntities)(e.name);return(0,Ke.createElement)(et.MenuItem,{onClick:async()=>{c(!0),await n(e),c(!1),o()},key:e.id,"aria-label":(0,tt.sprintf)(i,t),disabled:s||p||!d},t)}))),g&&(0,Ke.createElement)(et.MenuGroup,{label:(0,tt.__)("Tools")},(0,Ke.createElement)(et.MenuItem,{onClick:async()=>{c(!0),await a(),c(!1),o()},disabled:s||p||!d},(0,tt.__)("Create new Menu"))))));return S};function Og({isSelected:e,currentMenuId:t,clientId:n,canUserCreateNavigationMenus:a=!1,isResolvingCanUserCreateNavigationMenus:o,onSelectNavigationMenu:r,onSelectClassicMenu:l,onCreateEmpty:i}){const{isResolvingMenus:s,hasResolvedMenus:c}=Fg();(0,_t.useEffect)((()=>{e&&(s&&(0,Pg.speak)((0,tt.__)("Loading navigation block setup options…")),c&&(0,Pg.speak)((0,tt.__)("Navigation block setup options ready.")))}),[c,s,e]);const m=s&&o;return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.Placeholder,{className:"wp-block-navigation-placeholder"},(0,Ke.createElement)(Vg,{isVisible:!e}),(0,Ke.createElement)("div",{"aria-hidden":!e||void 0,className:"wp-block-navigation-placeholder__controls"},(0,Ke.createElement)("div",{className:"wp-block-navigation-placeholder__actions"},(0,Ke.createElement)("div",{className:"wp-block-navigation-placeholder__actions__indicator"},(0,Ke.createElement)(Mg,{icon:Ig})," ",(0,tt.__)("Navigation")),(0,Ke.createElement)("hr",null),m&&(0,Ke.createElement)(et.Spinner,null),(0,Ke.createElement)(Gg,{currentMenuId:t,clientId:n,onSelectNavigationMenu:r,onSelectClassicMenu:l}),(0,Ke.createElement)("hr",null),a&&(0,Ke.createElement)(et.Button,{variant:"tertiary",onClick:i},(0,tt.__)("Start empty"))))))}const Ug=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M5 5v1.5h14V5H5zm0 7.8h14v-1.5H5v1.5zM5 19h14v-1.5H5V19z"}));function qg({icon:e}){return"menu"===e?(0,Ke.createElement)(Mg,{icon:Ug}):(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false"},(0,Ke.createElement)(Ye.Rect,{x:"4",y:"7.5",width:"16",height:"1.5"}),(0,Ke.createElement)(Ye.Rect,{x:"4",y:"15",width:"16",height:"1.5"}))}function jg({children:e,id:t,isOpen:n,isResponsive:a,onToggle:o,isHiddenByDefault:r,overlayBackgroundColor:l,overlayTextColor:i,hasIcon:s,icon:c}){if(!a)return e;const m=ut("wp-block-navigation__responsive-container",{"has-text-color":!!i.color||!!i?.class,[(0,nt.getColorClassName)("color",i?.slug)]:!!i?.slug,"has-background":!!l.color||l?.class,[(0,nt.getColorClassName)("background-color",l?.slug)]:!!l?.slug,"is-menu-open":n,"hidden-by-default":r}),u={color:!i?.slug&&i?.color,backgroundColor:!l?.slug&&l?.color&&l.color},p=ut("wp-block-navigation__responsive-container-open",{"always-shown":r}),d=`${t}-modal`,g={className:"wp-block-navigation__responsive-dialog",...n&&{role:"dialog","aria-modal":!0,"aria-label":(0,tt.__)("Menu")}};return(0,Ke.createElement)(Ke.Fragment,null,!n&&(0,Ke.createElement)(et.Button,{"aria-haspopup":"true","aria-label":s&&(0,tt.__)("Open menu"),className:p,onClick:()=>o(!0)},s&&(0,Ke.createElement)(qg,{icon:c}),!s&&(0,tt.__)("Menu")),(0,Ke.createElement)("div",{className:m,style:u,id:d},(0,Ke.createElement)("div",{className:"wp-block-navigation__responsive-close",tabIndex:"-1"},(0,Ke.createElement)("div",{...g},(0,Ke.createElement)(et.Button,{className:"wp-block-navigation__responsive-container-close","aria-label":s&&(0,tt.__)("Close menu"),onClick:()=>o(!1)},s&&(0,Ke.createElement)(Mg,{icon:zg}),!s&&(0,tt.__)("Close")),(0,Ke.createElement)("div",{className:"wp-block-navigation__responsive-container-content",id:`${d}-content`},e)))))}function Wg({clientId:e,hasCustomPlaceholder:t,orientation:n,templateLock:a}){const{isImmediateParentOfSelectedBlock:o,selectedBlockHasChildren:r,isSelected:l}=(0,gt.useSelect)((t=>{const{getBlockCount:n,hasSelectedInnerBlock:a,getSelectedBlockClientId:o}=t(nt.store),r=o();return{isImmediateParentOfSelectedBlock:a(e,!1),selectedBlockHasChildren:!!n(r),isSelected:r===e}}),[e]),[i,s,c]=(0,dt.useEntityBlockEditor)("postType","wp_navigation"),m=l||o&&!r,u=(0,_t.useMemo)((()=>(0,Ke.createElement)(Vg,null)),[]),p=!t&&!!!i?.length&&!l,d=(0,nt.useInnerBlocksProps)({className:"wp-block-navigation__container"},{value:i,onInput:s,onChange:c,prioritizedInserterBlocks:Ag,defaultBlock:Rg,directInsert:!0,orientation:n,templateLock:a,renderAppender:!!(l||o&&!r||m)&&nt.InnerBlocks.ButtonBlockAppender,placeholder:p?u:void 0,__experimentalCaptureToolbars:!0,__unstableDisableLayoutClassNames:!0});return(0,Ke.createElement)("div",{...d})}function Zg(){const[e,t]=(0,dt.useEntityProp)("postType","wp_navigation","title");return(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Menu name"),value:e,onChange:t})}const Qg=(e,t,n)=>{if(e===t)return!0;if("object"==typeof e&&null!=e&&"object"==typeof t&&null!=t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const a in e){if(!t.hasOwnProperty(a))return!1;if(n&&n(a,e))return!0;if(!Qg(e[a],t[a],n))return!1}return!0}return!1},Kg={};function Yg({blocks:e,createNavigationMenu:t,hasSelection:n}){const a=(0,_t.useRef)();(0,_t.useEffect)((()=>{a?.current||(a.current=e)}),[e]);const o=function(e,t){return!Qg(e,t,((e,t)=>{if("core/page-list"===t?.name&&"innerBlocks"===e)return!0}))}(a?.current,e),r=(0,_t.useContext)(et.Disabled.Context),l=(0,nt.useInnerBlocksProps)({className:"wp-block-navigation__container"},{renderAppender:!!n&&void 0,defaultBlock:Rg,directInsert:!0}),{isSaving:i,hasResolvedAllNavigationMenus:s}=(0,gt.useSelect)((e=>{if(r)return Kg;const{hasFinishedResolution:t,isSavingEntityRecord:n}=e(dt.store);return{isSaving:n("postType","wp_navigation"),hasResolvedAllNavigationMenus:t("getEntityRecords",Hg)}}),[r]);(0,_t.useEffect)((()=>{!r&&!i&&s&&n&&o&&t(null,e)}),[e,t,r,i,s,o,n]);const c=i?et.Disabled:"div";return(0,Ke.createElement)(c,{...l})}function Jg({onDelete:e}){const[t,n]=(0,_t.useState)(!1),a=(0,dt.useEntityId)("postType","wp_navigation"),{deleteEntityRecord:o}=(0,gt.useDispatch)(dt.store);return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.Button,{className:"wp-block-navigation-delete-menu-button",variant:"secondary",isDestructive:!0,onClick:()=>{n(!0)}},(0,tt.__)("Delete menu")),t&&(0,Ke.createElement)(et.__experimentalConfirmDialog,{isOpen:!0,onConfirm:()=>{o("postType","wp_navigation",a,{force:!0}),e()},onCancel:()=>{n(!1)},confirmButtonText:(0,tt.__)("Delete")},(0,tt.__)("Are you sure you want to delete this Navigation Menu?")))}const Xg=function({name:e,message:t=""}={}){const n=(0,_t.useRef)(),{createWarningNotice:a,removeNotice:o}=(0,gt.useDispatch)(Pt.store);return[(0,_t.useCallback)((o=>{n.current||(n.current=e,a(o||t,{id:n.current,type:"snackbar"}))}),[n,a,t,e]),(0,_t.useCallback)((()=>{n.current&&(o(n.current),n.current=null)}),[n,o])]};function eh({setAttributes:e,hasIcon:t,icon:n}){return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show icon button"),help:(0,tt.__)("Configure the visual appearance of the button that toggles the overlay menu."),onChange:t=>e({hasIcon:t}),checked:t}),(0,Ke.createElement)(et.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Icon"),value:n,onChange:t=>e({icon:t}),isBlock:!0},(0,Ke.createElement)(et.__experimentalToggleGroupControlOption,{value:"handle","aria-label":(0,tt.__)("handle"),label:(0,Ke.createElement)(qg,{icon:"handle"})}),(0,Ke.createElement)(et.__experimentalToggleGroupControlOption,{value:"menu","aria-label":(0,tt.__)("menu"),label:(0,Ke.createElement)(qg,{icon:"menu"})})))}function th(e){if(!e)return null;const t=nh(function(e,t="id",n="parent"){const a=Object.create(null),o=[];for(const r of e)a[r[t]]={...r,children:[]},r[n]?(a[r[n]]=a[r[n]]||{},a[r[n]].children=a[r[n]].children||[],a[r[n]].children.push(a[r[t]])):o.push(a[r[t]]);return o}(e));return(0,vi.applyFilters)("blocks.navigation.__unstableMenuItemsToBlocks",t,e)}function nh(e,t=0){let n={};const a=[...e].sort(((e,t)=>e.menu_order-t.menu_order)),o=a.map((e=>{if("block"===e.type){const[t]=(0,Qe.parse)(e.content.raw);return t||(0,Qe.createBlock)("core/freeform",{content:e.content})}const a=e.children?.length?"core/navigation-submenu":"core/navigation-link",o=function({title:e,xfn:t,classes:n,attr_title:a,object:o,object_id:r,description:l,url:i,type:s,target:c},m,u){o&&"post_tag"===o&&(o="tag");return{label:e?.rendered||"",...o?.length&&{type:o},kind:s?.replace("_","-")||"custom",url:i||"",...t?.length&&t.join(" ").trim()&&{rel:t.join(" ").trim()},...n?.length&&n.join(" ").trim()&&{className:n.join(" ").trim()},...a?.length&&{title:a},...r&&"custom"!==o&&{id:r},...l?.length&&{description:l},..."_blank"===c&&{opensInNewTab:!0},..."core/navigation-submenu"===m&&{isTopLevelItem:0===u},..."core/navigation-link"===m&&{isTopLevelLink:0===u}}}(e,a,t),{innerBlocks:r=[],mapping:l={}}=e.children?.length?nh(e.children,t+1):{};n={...n,...l};const i=(0,Qe.createBlock)(a,o,r);return n[e.id]=i.clientId,i}));return{innerBlocks:o,mapping:n}}const ah="success",oh="error",rh="pending";let lh=null;const ih=function(e,{throwOnError:t=!1}={}){const n=(0,gt.useRegistry)(),{editEntityRecord:a}=(0,gt.useDispatch)(dt.store),[o,r]=(0,_t.useState)("idle"),[l,i]=(0,_t.useState)(null),s=(0,_t.useCallback)((async(t,o,r="publish")=>{let l,i;try{i=await n.resolveSelect(dt.store).getMenuItems({menus:t,per_page:-1,context:"view"})}catch(e){throw new Error((0,tt.sprintf)((0,tt.__)('Unable to fetch classic menu "%s" from API.'),o),{cause:e})}if(null===i)throw new Error((0,tt.sprintf)((0,tt.__)('Unable to fetch classic menu "%s" from API.'),o));const{innerBlocks:s}=th(i);try{l=await e(o,s,r),await a("postType","wp_navigation",l.id,{status:"publish"},{throwOnError:!0})}catch(e){throw new Error((0,tt.sprintf)((0,tt.__)('Unable to create Navigation Menu "%s".'),o),{cause:e})}return l}),[e,a,n]);return{convert:(0,_t.useCallback)((async(e,n,a)=>{if(lh!==e)return lh=e,e&&n?(r(rh),i(null),await s(e,n,a).then((e=>(r(ah),lh=null,e))).catch((e=>{if(i(e?.message),r(oh),lh=null,t)throw new Error((0,tt.sprintf)((0,tt.__)('Unable to create Navigation Menu "%s".'),n),{cause:e})}))):(i("Unable to convert menu. Missing menu details."),void r(oh))}),[s,t]),status:o,error:l}};function sh(e,t){return e&&t?e+"//"+t:null}const ch=["postType","wp_navigation",{status:"draft",per_page:-1}],mh=["postType","wp_navigation",{per_page:-1,status:"publish"}];function uh(e){const t=(0,_t.useContext)(et.Disabled.Context),n=function(e){return(0,gt.useSelect)((t=>{if(!e)return;const{getBlock:n,getBlockParentsByBlockName:a}=t(nt.store),o=a(e,"core/template-part",!0);if(!o?.length)return;const r=t("core/editor").__experimentalGetDefaultTemplatePartAreas(),{getCurrentTheme:l,getEditedEntityRecord:i}=t(dt.store);for(const e of o){const t=n(e),{theme:a=l()?.stylesheet,slug:o}=t.attributes,s=i("postType","wp_template_part",sh(a,o));if(s?.area)return r.find((e=>"uncategorized"!==e.area&&e.area===s.area))?.label}}),[e])}(t?void 0:e),a=(0,gt.useRegistry)();return(0,_t.useCallback)((async()=>{if(t)return"";const{getEntityRecords:e}=a.resolveSelect(dt.store),[o,r]=await Promise.all([e(...ch),e(...mh)]),l=n?(0,tt.sprintf)((0,tt.__)("%s navigation"),n):(0,tt.__)("Navigation"),i=[...o,...r].reduce(((e,t)=>t?.title?.raw?.startsWith(l)?e+1:e),0);return(i>0?`${l} ${i+1}`:l)||""}),[t,n,a])}const ph="success",dh="error",gh="pending",hh="idle";const bh=[];function _h(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function yh(e,t,n){if(!e)return;t(_h(e).color);let a=e,o=_h(a).backgroundColor;for(;"rgba(0, 0, 0, 0)"===o&&a.parentNode&&a.parentNode.nodeType===a.parentNode.ELEMENT_NODE;)a=a.parentNode,o=_h(a).backgroundColor;n(o)}function vh(e,t){const{textColor:n,customTextColor:a,backgroundColor:o,customBackgroundColor:r,overlayTextColor:l,customOverlayTextColor:i,overlayBackgroundColor:s,customOverlayBackgroundColor:c,style:m}=e,u={};return t&&i?u.customTextColor=i:t&&l?u.textColor=l:a?u.customTextColor=a:n?u.textColor=n:m?.color?.text&&(u.customTextColor=m.color.text),t&&c?u.customBackgroundColor=c:t&&s?u.backgroundColor=s:r?u.customBackgroundColor=r:o?u.backgroundColor=o:m?.color?.background&&(u.customTextColor=m.color.background),u}function fh(e){return{className:ut("wp-block-navigation__submenu-container",{"has-text-color":!(!e.textColor&&!e.customTextColor),[`has-${e.textColor}-color`]:!!e.textColor,"has-background":!(!e.backgroundColor&&!e.customBackgroundColor),[`has-${e.backgroundColor}-background-color`]:!!e.backgroundColor}),style:{color:e.customTextColor,backgroundColor:e.customBackgroundColor}}}const kh=({className:e="",disabled:t,isMenuItem:n=!1})=>{let a=et.Button;return n&&(a=et.MenuItem),(0,Ke.createElement)(a,{variant:"link",disabled:t,className:e,href:(0,pt.addQueryArgs)("edit.php",{post_type:"wp_navigation"})},(0,tt.__)("Manage menus"))};const xh=function({onCreateNew:e}){return(0,Ke.createElement)(nt.Warning,null,(0,_t.createInterpolateElement)((0,tt.__)("Navigation Menu has been deleted or is unavailable. <button>Create a new Menu?</button>"),{button:(0,Ke.createElement)(et.Button,{onClick:e,variant:"link"})}))},wh=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M2 12c0 3.6 2.4 5.5 6 5.5h.5V19l3-2.5-3-2.5v2H8c-2.5 0-4.5-1.5-4.5-4s2-4.5 4.5-4.5h3.5V6H8c-3.6 0-6 2.4-6 6zm19.5-1h-8v1.5h8V11zm0 5h-8v1.5h8V16zm0-10h-8v1.5h8V6z"})),Eh=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})),Ch=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})),Sh={className:"block-editor-block-settings-menu__popover",placement:"bottom-start"},Bh=["core/navigation-link","core/navigation-submenu"];function Nh({block:e,onClose:t,expandedState:n,expand:a,setInsertedBlock:o}){const{insertBlock:r,replaceBlock:l,replaceInnerBlocks:i}=(0,gt.useDispatch)(nt.store),s=e.clientId,c=!Bh.includes(e.name);return(0,Ke.createElement)(et.MenuItem,{icon:wh,disabled:c,onClick:()=>{const c=(0,Qe.createBlock)("core/navigation-link");if("core/navigation-submenu"===e.name)r(c,e.innerBlocks.length,s,false);else{const t=(0,Qe.createBlock)("core/navigation-submenu",e.attributes,e.innerBlocks);l(s,t),i(t.clientId,[c],false)}o(c),n[e.clientId]||a(e.clientId),t()}},(0,tt.__)("Add submenu link"))}function Th(e){const{block:t}=e,{clientId:n}=t,{moveBlocksDown:a,moveBlocksUp:o,removeBlocks:r}=(0,gt.useDispatch)(nt.store),l=(0,tt.sprintf)((0,tt.__)("Remove %s"),(0,nt.BlockTitle)({clientId:n,maximumLength:25})),i=(0,gt.useSelect)((e=>{const{getBlockRootClientId:t}=e(nt.store);return t(n)}),[n]);return(0,Ke.createElement)(et.DropdownMenu,{icon:$g,label:(0,tt.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:Sh,noIcons:!0,...e},(({onClose:s})=>(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.MenuGroup,null,(0,Ke.createElement)(et.MenuItem,{icon:Eh,onClick:()=>{o([n],i),s()}},(0,tt.__)("Move up")),(0,Ke.createElement)(et.MenuItem,{icon:Ch,onClick:()=>{a([n],i),s()}},(0,tt.__)("Move down")),(0,Ke.createElement)(Nh,{block:t,onClose:s,expanded:!0,expandedState:e.expandedState,expand:e.expand,setInsertedBlock:e.setInsertedBlock})),(0,Ke.createElement)(et.MenuGroup,null,(0,Ke.createElement)(et.MenuItem,{onClick:()=>{r([n],!1),s()}},l)))))}const Ih=window.wp.escapeHtml,Ph=(e={},t,n={})=>{const{label:a="",kind:o="",type:r=""}=n,{title:l="",url:i="",opensInNewTab:s,id:c,kind:m=o,type:u=r}=e,p=l.replace(/http(s?):\/\//gi,""),d=i.replace(/http(s?):\/\//gi,""),g=l&&l!==a&&p!==d?(0,Ih.escapeHTML)(l):a||(0,Ih.escapeHTML)(d),h="post_tag"===u?"tag":u.replace("-","_"),b=["post","page","tag","category"].indexOf(h)>-1,_=!m&&!b||"custom"===m?"custom":m;t({...i&&{url:encodeURI((0,pt.safeDecodeURI)(i))},...g&&{label:g},...void 0!==s&&{opensInNewTab:s},...c&&Number.isInteger(c)&&{id:c},..._&&{kind:_},...h&&"URL"!==h&&{type:h}})},Mh=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"})),zh=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})),{PrivateQuickInserter:Rh}=Ht(nt.privateApis);function Ah(e,t){switch(e){case"post":case"page":return{type:"post",subtype:e};case"category":return{type:"term",subtype:"category"};case"tag":return{type:"term",subtype:"post_tag"};case"post_format":return{type:"post-format"};default:return"taxonomy"===t?{type:"term",subtype:e}:"post-type"===t?{type:"post",subtype:e}:{initialSuggestionsSearchOptions:{type:"post",subtype:"page",perPage:20}}}}function Lh({clientId:e,onBack:t,onSelectBlock:n}){const{rootBlockClientId:a}=(0,gt.useSelect)((t=>{const{getBlockRootClientId:n}=t(nt.store);return{rootBlockClientId:n(e)}}),[e]),o=(0,jt.useFocusOnMount)("firstElement"),r=(0,jt.useInstanceId)(nt.__experimentalLinkControl,"link-ui-block-inserter__title"),l=(0,jt.useInstanceId)(nt.__experimentalLinkControl,"link-ui-block-inserter__description");return e?(0,Ke.createElement)("div",{className:"link-ui-block-inserter",role:"dialog","aria-labelledby":r,"aria-describedby":l,ref:o},(0,Ke.createElement)(et.VisuallyHidden,null,(0,Ke.createElement)("h2",{id:r},(0,tt.__)("Add block")),(0,Ke.createElement)("p",{id:l},(0,tt.__)("Choose a block to add to your Navigation."))),(0,Ke.createElement)(et.Button,{className:"link-ui-block-inserter__back",icon:Mh,onClick:e=>{e.preventDefault(),t()},size:"small"},(0,tt.__)("Back")),(0,Ke.createElement)(Rh,{rootClientId:a,clientId:e,isAppender:!1,prioritizePatterns:!1,selectBlockOnInsert:!0,hasSearch:!1,onSelect:n})):null}function Hh(e){const[t,n]=(0,_t.useState)(!1),[a,o]=(0,_t.useState)(!1),{saveEntityRecord:r}=(0,gt.useDispatch)(dt.store),l=(0,dt.useResourcePermissions)("pages"),i=(0,dt.useResourcePermissions)("posts");const{label:s,url:c,opensInNewTab:m,type:u,kind:p}=e.link;let d=!1;u&&"page"!==u?"post"===u&&(d=i.canCreate):d=l.canCreate;const g=(0,_t.useMemo)((()=>({url:c,opensInNewTab:m,title:s&&(0,lc.__unstableStripHTML)(s)})),[s,m,c]),h=(0,jt.useInstanceId)(Hh,"link-ui-link-control__title"),b=(0,jt.useInstanceId)(Hh,"link-ui-link-control__description"),{onClose:_}=e;return(0,Ke.createElement)(et.Popover,{placement:"bottom",onClose:e.onClose,anchor:e.anchor,shift:!0},!t&&(0,Ke.createElement)("div",{role:"dialog","aria-labelledby":h,"aria-describedby":b},(0,Ke.createElement)(et.VisuallyHidden,null,(0,Ke.createElement)("h2",{id:h},(0,tt.__)("Add link")),(0,Ke.createElement)("p",{id:b},(0,tt.__)("Search for and add a link to your Navigation."))),(0,Ke.createElement)(nt.__experimentalLinkControl,{hasTextControl:!0,hasRichPreviews:!0,value:g,showInitialSuggestions:!0,withCreateSuggestion:d,createSuggestion:async function(t){const n=e.link.type||"page",a=await r("postType",n,{title:t,status:"draft"});return{id:a.id,type:n,title:(0,Yn.decodeEntities)(a.title.rendered),url:a.link,kind:"post-type"}},createSuggestionButtonText:e=>{let t;return t="post"===u?(0,tt.__)("Create draft post: <mark>%s</mark>"):(0,tt.__)("Create draft page: <mark>%s</mark>"),(0,_t.createInterpolateElement)((0,tt.sprintf)(t,e),{mark:(0,Ke.createElement)("mark",null)})},noDirectEntry:!!u,noURLSuggestion:!!u,suggestionsQuery:Ah(u,p),onChange:e.onChange,onRemove:e.onRemove,onCancel:e.onCancel,renderControlBottom:()=>!g?.url?.length&&(0,Ke.createElement)(Dh,{focusAddBlockButton:a,setAddingBlock:()=>{n(!0),o(!1)}})})),t&&(0,Ke.createElement)(Lh,{clientId:e.clientId,onBack:()=>{n(!1),o(!0)},onSelectBlock:_}))}const Dh=({setAddingBlock:e,focusAddBlockButton:t})=>{const n=(0,_t.useRef)();return(0,_t.useEffect)((()=>{t&&n.current?.focus()}),[t]),(0,Ke.createElement)(et.__experimentalVStack,{className:"link-ui-tools"},(0,Ke.createElement)(et.Button,{ref:n,icon:zh,onClick:t=>{t.preventDefault(),e(!0)},"aria-haspopup":"listbox"},(0,tt.__)("Add block")))},Fh=(0,tt.__)("Switch to '%s'"),Vh=["core/navigation-link","core/navigation-submenu"],{PrivateListView:$h}=Ht(nt.privateApis);function Gh({block:e,insertedBlock:t,setInsertedBlock:n}){const{updateBlockAttributes:a}=(0,gt.useDispatch)(nt.store),o=Vh?.includes(t?.name),r=t?.clientId===e.clientId;if(!(o&&r))return null;return(0,Ke.createElement)(Hh,{clientId:t?.clientId,link:t?.attributes,onClose:()=>{n(null)},onChange:e=>{var o;Ph(e,(o=t?.clientId,e=>{o&&a(o,e)}),t?.attributes),n(null)},onCancel:()=>{n(null)}})}const Oh=({clientId:e,currentMenuId:t,isLoading:n,isNavigationMenuMissing:a,onCreateNew:o})=>{const r=(0,gt.useSelect)((t=>!!t(nt.store).getBlockCount(e)),[e]),{navigationMenu:l}=Dg(t);if(t&&a)return(0,Ke.createElement)(xh,{onCreateNew:o});if(n)return(0,Ke.createElement)(et.Spinner,null);const i=l?(0,tt.sprintf)((0,tt.__)("Structure for Navigation Menu: %s"),l?.title||(0,tt.__)("Untitled menu")):(0,tt.__)("You have not yet created any menus. Displaying a list of your Pages");return(0,Ke.createElement)("div",{className:"wp-block-navigation__menu-inspector-controls"},!r&&(0,Ke.createElement)("p",{className:"wp-block-navigation__menu-inspector-controls__empty-message"},(0,tt.__)("This Navigation Menu is empty.")),(0,Ke.createElement)($h,{rootClientId:e,isExpanded:!0,description:i,showAppender:!0,blockSettingsMenu:Th,additionalBlockContent:Gh}))},Uh=e=>{const{createNavigationMenuIsSuccess:t,createNavigationMenuIsError:n,currentMenuId:a=null,onCreateNew:o,onSelectClassicMenu:r,onSelectNavigationMenu:l,isManageMenusButtonDisabled:i,blockEditingMode:s}=e;return(0,Ke.createElement)(nt.InspectorControls,{group:"list"},(0,Ke.createElement)(et.PanelBody,{title:null},(0,Ke.createElement)(et.__experimentalHStack,{className:"wp-block-navigation-off-canvas-editor__header"},(0,Ke.createElement)(et.__experimentalHeading,{className:"wp-block-navigation-off-canvas-editor__title",level:2},(0,tt.__)("Menu")),"default"===s&&(0,Ke.createElement)(Gg,{currentMenuId:a,onSelectClassicMenu:r,onSelectNavigationMenu:l,onCreateNew:o,createNavigationMenuIsSuccess:t,createNavigationMenuIsError:n,actionLabel:Fh,isManageMenusButtonDisabled:i})),(0,Ke.createElement)(Oh,{...e})))};function qh({id:e,children:t}){return(0,Ke.createElement)(et.VisuallyHidden,null,(0,Ke.createElement)("div",{id:e,className:"wp-block-navigation__description"},t))}function jh({id:e}){const[t]=(0,dt.useEntityProp)("postType","wp_navigation","title"),n=(0,tt.sprintf)((0,tt.__)('Navigation Menu: "%s"'),t);return(0,Ke.createElement)(qh,{id:e},n)}function Wh({textColor:e,setTextColor:t,backgroundColor:n,setBackgroundColor:a,overlayTextColor:o,setOverlayTextColor:r,overlayBackgroundColor:l,setOverlayBackgroundColor:i,clientId:s,navRef:c}){const[m,u]=(0,_t.useState)(),[p,d]=(0,_t.useState)(),[g,h]=(0,_t.useState)(),[b,_]=(0,_t.useState)(),y="web"===_t.Platform.OS;(0,_t.useEffect)((()=>{if(!y)return;yh(c.current,d,u);const e=c.current?.querySelector('[data-type="core/navigation-submenu"] [data-type="core/navigation-link"]');e&&(o.color||l.color)&&yh(e,_,h)}),[y,o.color,l.color,c]);const v=(0,nt.__experimentalUseMultipleOriginColorsAndGradients)();return v.hasColorsOrGradients?(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:e.color,label:(0,tt.__)("Text"),onColorChange:t,resetAllFilter:()=>t()},{colorValue:n.color,label:(0,tt.__)("Background"),onColorChange:a,resetAllFilter:()=>a()},{colorValue:o.color,label:(0,tt.__)("Submenu & overlay text"),onColorChange:r,resetAllFilter:()=>r()},{colorValue:l.color,label:(0,tt.__)("Submenu & overlay background"),onColorChange:i,resetAllFilter:()=>i()}],panelId:s,...v,gradients:[],disableCustomGradients:!0}),y&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.ContrastChecker,{backgroundColor:m,textColor:p}),(0,Ke.createElement)(nt.ContrastChecker,{backgroundColor:g,textColor:b}))):null}const Zh=(0,nt.withColors)({textColor:"color"},{backgroundColor:"color"},{overlayBackgroundColor:"color"},{overlayTextColor:"color"})((function({attributes:e,setAttributes:t,clientId:n,isSelected:a,className:o,backgroundColor:r,setBackgroundColor:l,textColor:i,setTextColor:s,overlayBackgroundColor:c,setOverlayBackgroundColor:m,overlayTextColor:u,setOverlayTextColor:p,hasSubmenuIndicatorSetting:d=!0,customPlaceholder:g=null,__unstableLayoutClassNames:h}){const{openSubmenusOnClick:b,overlayMenu:_,showSubmenuIcon:y,templateLock:v,layout:{justifyContent:f,orientation:k="horizontal",flexWrap:x="wrap"}={},hasIcon:w,icon:E="handle"}=e,C=e.ref,S=(0,_t.useCallback)((e=>{t({ref:e})}),[t]),B=`navigationMenu/${C}`,N=(0,nt.useHasRecursion)(B),T=(0,nt.useBlockEditingMode)(),{menus:I}=Fg(),[P,M]=Xg({name:"block-library/core/navigation/status"}),[z,R]=Xg({name:"block-library/core/navigation/classic-menu-conversion"}),[A,L]=Xg({name:"block-library/core/navigation/permissions/update"}),{create:H,status:D,error:F,value:V,isPending:$,isSuccess:G,isError:O}=function(e){const[t,n]=(0,_t.useState)(hh),[a,o]=(0,_t.useState)(null),[r,l]=(0,_t.useState)(null),{saveEntityRecord:i,editEntityRecord:s}=(0,gt.useDispatch)(dt.store),c=uh(e),m=(0,_t.useCallback)((async(e=null,t=[],a)=>{if(e&&"string"!=typeof e)throw l("Invalid title supplied when creating Navigation Menu."),n(dh),new Error("Value of supplied title argument was not a string.");n(gh),o(null),l(null),e||(e=await c().catch((e=>{throw l(e?.message),n(dh),new Error("Failed to create title when saving new Navigation Menu.",{cause:e})})));const r={title:e,content:(0,Qe.serialize)(t),status:a};return i("postType","wp_navigation",r).then((e=>(o(e),n(ph),"publish"!==a&&s("postType","wp_navigation",e.id,{status:"publish"}),e))).catch((e=>{throw l(e?.message),n(dh),new Error("Unable to save new Navigation Menu",{cause:e})}))}),[i,s,c]);return{create:m,status:t,value:a,error:r,isIdle:t===hh,isPending:t===gh,isSuccess:t===ph,isError:t===dh}}(n),U=async()=>{await H("")},{hasUncontrolledInnerBlocks:q,uncontrolledInnerBlocks:j,isInnerBlockSelected:W,innerBlocks:Z}=function(e){return(0,gt.useSelect)((t=>{const{getBlock:n,getBlocks:a,hasSelectedInnerBlock:o}=t(nt.store),r=n(e).innerBlocks,l=!!r?.length,i=l?bh:a(e);return{innerBlocks:l?r:i,hasUncontrolledInnerBlocks:l,uncontrolledInnerBlocks:r,controlledInnerBlocks:i,isInnerBlockSelected:o(e,!0)}}),[e])}(n),Q=!!Z.find((e=>"core/navigation-submenu"===e.name)),{replaceInnerBlocks:K,selectBlock:Y,__unstableMarkNextChangeAsNotPersistent:J}=(0,gt.useDispatch)(nt.store),[X,ee]=(0,_t.useState)(!1),[te,ne]=(0,_t.useState)(!1),{hasResolvedNavigationMenus:ae,isNavigationMenuResolved:oe,isNavigationMenuMissing:re,canUserUpdateNavigationMenu:le,hasResolvedCanUserUpdateNavigationMenu:ie,canUserDeleteNavigationMenu:se,hasResolvedCanUserDeleteNavigationMenu:ce,canUserCreateNavigationMenus:me,isResolvingCanUserCreateNavigationMenus:ue,hasResolvedCanUserCreateNavigationMenus:pe}=Dg(C),de=ae&&re,{convert:ge,status:he,error:be}=ih(H),_e=he===rh,ye=(0,_t.useCallback)(((e,t={focusNavigationBlock:!1})=>{const{focusNavigationBlock:a}=t;S(e),a&&Y(n)}),[Y,n,S]),ve=!re&&oe,fe=q&&!ve,{getNavigationFallbackId:ke}=Ht((0,gt.useSelect)(dt.store)),xe=C||fe?null:ke();(0,_t.useEffect)((()=>{C||fe||!xe||(J(),S(xe))}),[C,S,fe,xe,J]);const we=(0,_t.useRef)(),Ee="nav",Ce=!C&&!$&&!_e&&ae&&0===I?.length&&!q,Se=!ae||$||_e||!(!C||ve||_e),Be=e.style?.typography?.textDecoration,Ne=(0,gt.useSelect)((e=>e(nt.store).__unstableHasActiveBlockOverlayActive(n)),[n]),Te="never"!==_,Ie=(0,nt.useBlockProps)({ref:we,className:ut(o,{"items-justified-right":"right"===f,"items-justified-space-between":"space-between"===f,"items-justified-left":"left"===f,"items-justified-center":"center"===f,"is-vertical":"vertical"===k,"no-wrap":"nowrap"===x,"is-responsive":Te,"has-text-color":!!i.color||!!i?.class,[(0,nt.getColorClassName)("color",i?.slug)]:!!i?.slug,"has-background":!!r.color||r.class,[(0,nt.getColorClassName)("background-color",r?.slug)]:!!r?.slug,[`has-text-decoration-${Be}`]:Be,"block-editor-block-content-overlay":Ne},h),style:{color:!i?.slug&&i?.color,backgroundColor:!r?.slug&&r?.color}}),Pe=async e=>ge(e.id,e.name,"draft"),Me=e=>{ye(e)};(0,_t.useEffect)((()=>{M(),$&&(0,Pg.speak)((0,tt.__)("Creating Navigation Menu.")),G&&(ye(V?.id,{focusNavigationBlock:!0}),P((0,tt.__)("Navigation Menu successfully created."))),O&&P((0,tt.__)("Failed to create Navigation Menu."))}),[D,F,V?.id,O,G,$,ye,M,P]),(0,_t.useEffect)((()=>{R(),he===rh&&(0,Pg.speak)((0,tt.__)("Classic menu importing.")),he===ah&&(z((0,tt.__)("Classic menu imported successfully.")),ye(V?.id,{focusNavigationBlock:!0})),he===oh&&z((0,tt.__)("Classic menu import failed."))}),[he,be,R,z,V?.id,ye]),(0,_t.useEffect)((()=>{a||W||L(),(a||W)&&(C&&!de&&ie&&!le&&A((0,tt.__)("You do not have permission to edit this Menu. Any changes made will not be saved.")),C||!pe||me||A((0,tt.__)("You do not have permission to create Navigation Menus.")))}),[a,W,le,ie,me,pe,C,L,A,de]);const ze=me||le,Re=ut("wp-block-navigation__overlay-menu-preview",{open:te}),Ae=y||b?"":(0,tt.__)('The current menu options offer reduced accessibility for users and are not recommended. Enabling either "Open on Click" or "Show arrow" offers enhanced accessibility by allowing keyboard users to browse submenus selectively.'),Le=(0,_t.useRef)(!0);(0,_t.useEffect)((()=>{!Le.current&&Ae&&(0,Pg.speak)(Ae),Le.current=!1}),[Ae]);const He=(0,jt.useInstanceId)(eh,"overlay-menu-preview"),De=(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.InspectorControls,null,d&&(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Display")},Te&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.Button,{className:Re,onClick:()=>{ne(!te)},"aria-label":(0,tt.__)("Overlay menu controls"),"aria-controls":He,"aria-expanded":te},w&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(qg,{icon:E}),(0,Ke.createElement)(Mg,{icon:zg})),!w&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)("span",null,(0,tt.__)("Menu")),(0,Ke.createElement)("span",null,(0,tt.__)("Close")))),(0,Ke.createElement)("div",{id:He},te&&(0,Ke.createElement)(eh,{setAttributes:t,hasIcon:w,icon:E,hidden:!te}))),(0,Ke.createElement)("h3",null,(0,tt.__)("Overlay Menu")),(0,Ke.createElement)(et.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Configure overlay menu"),value:_,help:(0,tt.__)("Collapses the navigation options in a menu icon opening an overlay."),onChange:e=>t({overlayMenu:e}),isBlock:!0,hideLabelFromVision:!0},(0,Ke.createElement)(et.__experimentalToggleGroupControlOption,{value:"never",label:(0,tt.__)("Off")}),(0,Ke.createElement)(et.__experimentalToggleGroupControlOption,{value:"mobile",label:(0,tt.__)("Mobile")}),(0,Ke.createElement)(et.__experimentalToggleGroupControlOption,{value:"always",label:(0,tt.__)("Always")})),Q&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)("h3",null,(0,tt.__)("Submenus")),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,checked:b,onChange:e=>{t({openSubmenusOnClick:e,...e&&{showSubmenuIcon:!0}})},label:(0,tt.__)("Open on click")}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,checked:y,onChange:e=>{t({showSubmenuIcon:e})},disabled:e.openSubmenusOnClick,label:(0,tt.__)("Show arrow")}),Ae&&(0,Ke.createElement)("div",null,(0,Ke.createElement)(et.Notice,{spokenMessage:null,status:"warning",isDismissible:!1},Ae))))),(0,Ke.createElement)(nt.InspectorControls,{group:"color"},(0,Ke.createElement)(Wh,{textColor:i,setTextColor:s,backgroundColor:r,setBackgroundColor:l,overlayTextColor:u,setOverlayTextColor:p,overlayBackgroundColor:c,setOverlayBackgroundColor:m,clientId:n,navRef:we}))),Fe=`${n}-desc`,Ve=!ze||!ae;if(fe&&!$)return(0,Ke.createElement)(Ee,{...Ie,"aria-describedby":Ce?void 0:Fe},(0,Ke.createElement)(qh,{id:Fe},(0,tt.__)("Unsaved Navigation Menu.")),(0,Ke.createElement)(Uh,{clientId:n,createNavigationMenuIsSuccess:G,createNavigationMenuIsError:O,currentMenuId:C,isNavigationMenuMissing:re,isManageMenusButtonDisabled:Ve,onCreateNew:U,onSelectClassicMenu:Pe,onSelectNavigationMenu:Me,isLoading:Se,blockEditingMode:T}),"default"===T&&De,(0,Ke.createElement)(jg,{id:n,onToggle:ee,isOpen:X,hasIcon:w,icon:E,isResponsive:Te,isHiddenByDefault:"always"===_,overlayBackgroundColor:c,overlayTextColor:u},(0,Ke.createElement)(Yg,{createNavigationMenu:H,blocks:j,hasSelection:a||W})));if(C&&re)return(0,Ke.createElement)(Ee,{...Ie},(0,Ke.createElement)(Uh,{clientId:n,createNavigationMenuIsSuccess:G,createNavigationMenuIsError:O,currentMenuId:C,isNavigationMenuMissing:re,isManageMenusButtonDisabled:Ve,onCreateNew:U,onSelectClassicMenu:Pe,onSelectNavigationMenu:Me,isLoading:Se,blockEditingMode:T}),(0,Ke.createElement)(xh,{onCreateNew:U}));if(ve&&N)return(0,Ke.createElement)("div",{...Ie},(0,Ke.createElement)(nt.Warning,null,(0,tt.__)("Block cannot be rendered inside itself.")));const $e=g||Og;return Ce&&g?(0,Ke.createElement)(Ee,{...Ie},(0,Ke.createElement)($e,{isSelected:a,currentMenuId:C,clientId:n,canUserCreateNavigationMenus:me,isResolvingCanUserCreateNavigationMenus:ue,onSelectNavigationMenu:Me,onSelectClassicMenu:Pe,onCreateEmpty:U})):(0,Ke.createElement)(dt.EntityProvider,{kind:"postType",type:"wp_navigation",id:C},(0,Ke.createElement)(nt.RecursionProvider,{uniqueId:B},(0,Ke.createElement)(Uh,{clientId:n,createNavigationMenuIsSuccess:G,createNavigationMenuIsError:O,currentMenuId:C,isNavigationMenuMissing:re,isManageMenusButtonDisabled:Ve,onCreateNew:U,onSelectClassicMenu:Pe,onSelectNavigationMenu:Me,isLoading:Se,blockEditingMode:T}),"default"===T&&De,"default"===T&&ve&&(0,Ke.createElement)(nt.InspectorControls,{group:"advanced"},ie&&le&&(0,Ke.createElement)(Zg,null),ce&&se&&(0,Ke.createElement)(Jg,{onDelete:()=>{K(n,[]),P((0,tt.__)("Navigation Menu successfully deleted."))}}),(0,Ke.createElement)(kh,{disabled:Ve,className:"wp-block-navigation-manage-menus-button"})),(0,Ke.createElement)(Ee,{...Ie,"aria-describedby":Ce||Se?void 0:Fe},Se&&(0,Ke.createElement)("div",{className:"wp-block-navigation__loading-indicator-container"},(0,Ke.createElement)(et.Spinner,{className:"wp-block-navigation__loading-indicator"})),!Se&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(jh,{id:Fe}),(0,Ke.createElement)(jg,{id:n,onToggle:ee,hasIcon:w,icon:E,isOpen:X,isResponsive:Te,isHiddenByDefault:"always"===_,overlayBackgroundColor:c,overlayTextColor:u},ve&&(0,Ke.createElement)(Wg,{clientId:n,hasCustomPlaceholder:!!g,templateLock:v,orientation:k}))))))}));const Qh={fontStyle:"var:preset|font-style|",fontWeight:"var:preset|font-weight|",textDecoration:"var:preset|text-decoration|",textTransform:"var:preset|text-transform|"},Kh=({navigationMenuId:e,...t})=>({...t,ref:e}),Yh=e=>{if(e.layout)return e;const{itemsJustification:t,orientation:n,...a}=e;return(t||n)&&Object.assign(a,{layout:{type:"flex",...t&&{justifyContent:t},...n&&{orientation:n}}}),a},Jh={attributes:{navigationMenuId:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},overlayMenu:{type:"string",default:"mobile"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}}},save:()=>(0,Ke.createElement)(nt.InnerBlocks.Content,null),isEligible:({navigationMenuId:e})=>!!e,migrate:Kh},Xh={attributes:{navigationMenuId:{type:"number"},orientation:{type:"string",default:"horizontal"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},overlayMenu:{type:"string",default:"never"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}}},save:()=>(0,Ke.createElement)(nt.InnerBlocks.Content,null),isEligible:({itemsJustification:e,orientation:t})=>!!e||!!t,migrate:(0,jt.compose)(Kh,Yh)},eb={attributes:{orientation:{type:"string",default:"horizontal"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},overlayMenu:{type:"string",default:"never"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}}},save:()=>(0,Ke.createElement)(nt.InnerBlocks.Content,null),migrate:(0,jt.compose)(Kh,Yh,rn),isEligible:({style:e})=>e?.typography?.fontFamily},tb=[Jh,Xh,eb,{attributes:{orientation:{type:"string",default:"horizontal"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},isResponsive:{type:"boolean",default:"false"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0}},isEligible:e=>e.isResponsive,migrate:(0,jt.compose)(Kh,Yh,rn,(function(e){return delete e.isResponsive,{...e,overlayMenu:"mobile"}})),save:()=>(0,Ke.createElement)(nt.InnerBlocks.Content,null)},{attributes:{orientation:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,fontSize:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,color:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0},save:()=>(0,Ke.createElement)(nt.InnerBlocks.Content,null),isEligible(e){if(!e.style||!e.style.typography)return!1;for(const t in Qh){const n=e.style.typography[t];if(n&&n.startsWith(Qh[t]))return!0}return!1},migrate:(0,jt.compose)(Kh,Yh,rn,(function(e){var t;return{...e,style:{...e.style,typography:Object.fromEntries(Object.entries(null!==(t=e.style.typography)&&void 0!==t?t:{}).map((([e,t])=>{const n=Qh[e];if(n&&t.startsWith(n)){const a=t.slice(n.length);return"textDecoration"===e&&"strikethrough"===a?[e,"line-through"]:[e,a]}return[e,t]})))}}}))},{attributes:{className:{type:"string"},textColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean"}},isEligible:e=>e.rgbTextColor||e.rgbBackgroundColor,supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0},migrate:(0,jt.compose)(Kh,(e=>{const{rgbTextColor:t,rgbBackgroundColor:n,...a}=e;return{...a,customTextColor:e.textColor?void 0:e.rgbTextColor,customBackgroundColor:e.backgroundColor?void 0:e.rgbBackgroundColor}})),save:()=>(0,Ke.createElement)(nt.InnerBlocks.Content,null)}],nb=tb,ab={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/navigation",title:"Navigation",category:"theme",allowedBlocks:["core/navigation-link","core/search","core/social-links","core/page-list","core/spacer","core/home-link","core/site-title","core/site-logo","core/navigation-submenu","core/loginout","core/buttons"],description:"A collection of blocks that allow visitors to get around your site.",keywords:["menu","navigation","links"],textdomain:"default",attributes:{ref:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},overlayMenu:{type:"string",default:"mobile"},icon:{type:"string",default:"handle"},hasIcon:{type:"boolean",default:!0},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"},maxNestingLevel:{type:"number",default:5},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},providesContext:{textColor:"textColor",customTextColor:"customTextColor",backgroundColor:"backgroundColor",customBackgroundColor:"customBackgroundColor",overlayTextColor:"overlayTextColor",customOverlayTextColor:"customOverlayTextColor",overlayBackgroundColor:"overlayBackgroundColor",customOverlayBackgroundColor:"customOverlayBackgroundColor",fontSize:"fontSize",customFontSize:"customFontSize",showSubmenuIcon:"showSubmenuIcon",openSubmenusOnClick:"openSubmenusOnClick",style:"style",maxNestingLevel:"maxNestingLevel"},supports:{align:["wide","full"],ariaLabel:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalLetterSpacing:!0,__experimentalTextDecoration:!0,__experimentalSkipSerialization:["textDecoration"],__experimentalDefaultControls:{fontSize:!0}},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}},layout:{allowSwitching:!1,allowInheriting:!1,allowVerticalAlignment:!1,allowSizingOnChildren:!0,default:{type:"flex"}},interactivity:!0,renaming:!1},editorStyle:"wp-block-navigation-editor",style:"wp-block-navigation"},{name:ob}=ab,rb={icon:Ig,example:{attributes:{overlayMenu:"never"},innerBlocks:[{name:"core/navigation-link",attributes:{label:(0,tt.__)("Home"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{label:(0,tt.__)("About"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{label:(0,tt.__)("Contact"),url:"https://make.wordpress.org/"}}]},edit:Zh,save:function({attributes:e}){if(!e.ref)return(0,Ke.createElement)(nt.InnerBlocks.Content,null)},deprecated:nb},lb=()=>Xe({name:ob,metadata:ab,settings:rb}),ib=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M12.5 14.5h-1V16h1c2.2 0 4-1.8 4-4s-1.8-4-4-4h-1v1.5h1c1.4 0 2.5 1.1 2.5 2.5s-1.1 2.5-2.5 2.5zm-4 1.5v-1.5h-1C6.1 14.5 5 13.4 5 12s1.1-2.5 2.5-2.5h1V8h-1c-2.2 0-4 1.8-4 4s1.8 4 4 4h1zm-1-3.2h5v-1.5h-5v1.5zM18 4H9c-1.1 0-2 .9-2 2v.5h1.5V6c0-.3.2-.5.5-.5h9c.3 0 .5.2.5.5v12c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5v-.5H7v.5c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2z"})),sb={name:"core/navigation-link"};function cb({attributes:e,setAttributes:t,setIsLabelFieldFocused:n}){const{label:a,url:o,description:r,title:l,rel:i}=e;return(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,value:a?(0,lc.__unstableStripHTML)(a):"",onChange:e=>{t({label:e})},label:(0,tt.__)("Text"),autoComplete:"off",onFocus:()=>n(!0),onBlur:()=>n(!1)}),(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,value:o?(0,pt.safeDecodeURI)(o):"",onChange:n=>{Ph({url:n},t,e)},label:(0,tt.__)("Link"),autoComplete:"off"}),(0,Ke.createElement)(et.TextareaControl,{__nextHasNoMarginBottom:!0,value:r||"",onChange:e=>{t({description:e})},label:(0,tt.__)("Description"),help:(0,tt.__)("The description will be displayed in the menu if the current theme supports it.")}),(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,value:l||"",onChange:e=>{t({title:e})},label:(0,tt.__)("Title attribute"),autoComplete:"off",help:(0,tt.__)("Additional information to help clarify the purpose of the link.")}),(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,value:i||"",onChange:e=>{t({rel:e})},label:(0,tt.__)("Rel attribute"),autoComplete:"off",help:(0,tt.__)("The relationship of the linked URL as space-separated link types.")}))}const mb=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"}),(0,Ke.createElement)(Ye.Path,{d:"M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z"})),ub=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M4.75 4a.75.75 0 0 0-.75.75v7.826c0 .2.08.39.22.53l6.72 6.716a2.313 2.313 0 0 0 3.276-.001l5.61-5.611-.531-.53.532.528a2.315 2.315 0 0 0 0-3.264L13.104 4.22a.75.75 0 0 0-.53-.22H4.75ZM19 12.576a.815.815 0 0 1-.236.574l-5.61 5.611a.814.814 0 0 1-1.153 0L5.5 12.264V5.5h6.763l6.5 6.502a.816.816 0 0 1 .237.574ZM8.75 9.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"})),pb=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4zm.8-4l.7.7 2-2V12h1V9.2l2 2 .7-.7-2-2H12v-1H9.2l2-2-.7-.7-2 2V4h-1v2.8l-2-2-.7.7 2 2H4v1h2.8l-2 2z"}));function db(e){switch(e){case"post":return Tp;case"page":return mb;case"tag":return ub;case"category":return Kn;default:return pb}}function gb(e,t){if("core/navigation-link"!==t)return e;if(e.variations){const t=(e,t)=>e.type===t.type,n=e.variations.map((e=>({...e,...!e.icon&&{icon:db(e.name)},...!e.isActive&&{isActive:t}})));return{...e,variations:n}}return e}const hb={from:[{type:"block",blocks:["core/site-logo"],transform:()=>(0,Qe.createBlock)("core/navigation-link")},{type:"block",blocks:["core/spacer"],transform:()=>(0,Qe.createBlock)("core/navigation-link")},{type:"block",blocks:["core/home-link"],transform:()=>(0,Qe.createBlock)("core/navigation-link")},{type:"block",blocks:["core/social-links"],transform:()=>(0,Qe.createBlock)("core/navigation-link")},{type:"block",blocks:["core/search"],transform:()=>(0,Qe.createBlock)("core/navigation-link")},{type:"block",blocks:["core/page-list"],transform:()=>(0,Qe.createBlock)("core/navigation-link")},{type:"block",blocks:["core/buttons"],transform:()=>(0,Qe.createBlock)("core/navigation-link")}],to:[{type:"block",blocks:["core/navigation-submenu"],transform:(e,t)=>(0,Qe.createBlock)("core/navigation-submenu",e,t)},{type:"block",blocks:["core/spacer"],transform:()=>(0,Qe.createBlock)("core/spacer")},{type:"block",blocks:["core/site-logo"],transform:()=>(0,Qe.createBlock)("core/site-logo")},{type:"block",blocks:["core/home-link"],transform:()=>(0,Qe.createBlock)("core/home-link")},{type:"block",blocks:["core/social-links"],transform:()=>(0,Qe.createBlock)("core/social-links")},{type:"block",blocks:["core/search"],transform:()=>(0,Qe.createBlock)("core/search",{showLabel:!1,buttonUseIcon:!0,buttonPosition:"button-inside"})},{type:"block",blocks:["core/page-list"],transform:()=>(0,Qe.createBlock)("core/page-list")},{type:"block",blocks:["core/buttons"],transform:({label:e,url:t,rel:n,title:a,opensInNewTab:o})=>(0,Qe.createBlock)("core/buttons",{},[(0,Qe.createBlock)("core/button",{text:e,url:t,rel:n,title:a,linkTarget:o?"_blank":void 0})])}]},bb=hb,_b={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/navigation-link",title:"Custom Link",category:"design",parent:["core/navigation"],allowedBlocks:["core/navigation-link","core/navigation-submenu","core/page-list"],description:"Add a page, link, or another item to your navigation.",textdomain:"default",attributes:{label:{type:"string"},type:{type:"string"},description:{type:"string"},rel:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string"},title:{type:"string"},kind:{type:"string"},isTopLevelLink:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","maxNestingLevel","style"],supports:{reusable:!1,html:!1,__experimentalSlashInserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},renaming:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-navigation-link-editor",style:"wp-block-navigation-link"},{name:yb}=_b,vb={icon:ib,__experimentalLabel:({label:e})=>e,merge:(e,{label:t=""})=>({...e,label:e.label+t}),edit:function({attributes:e,isSelected:t,setAttributes:n,insertBlocksAfter:a,mergeBlocks:o,onReplace:r,context:l,clientId:i}){const{id:s,label:c,type:m,url:u,description:p,kind:d}=e,[g,h]=((e,t,n)=>{const a="post-type"===e||"post"===t||"page"===t,o=Number.isInteger(n),r=(0,gt.useSelect)((e=>{if(!a)return null;const{getEntityRecord:o}=e(dt.store);return o("postType",t,n)?.status}),[a,t,n]);return[a&&o&&r&&"trash"===r,"draft"===r]})(d,m,s),{maxNestingLevel:b}=l,{replaceBlock:_,__unstableMarkNextChangeAsNotPersistent:y,selectBlock:v,selectPreviousBlock:f}=(0,gt.useDispatch)(nt.store),[k,x]=(0,_t.useState)(t&&!u),[w,E]=(0,_t.useState)(null),[C,S]=(0,_t.useState)(null),B=(0,_t.useRef)(null),N=(e=>{const[t,n]=(0,_t.useState)(!1);return(0,_t.useEffect)((()=>{const{ownerDocument:t}=e.current;function a(e){r(e)}function o(){n(!1)}function r(t){e.current.contains(t.target)?n(!0):n(!1)}return t.addEventListener("dragstart",a),t.addEventListener("dragend",o),t.addEventListener("dragenter",r),()=>{t.removeEventListener("dragstart",a),t.removeEventListener("dragend",o),t.removeEventListener("dragenter",r)}}),[e]),t})(B),T=(0,tt.__)("Add label…"),I=(0,_t.useRef)(),P=(0,jt.usePrevious)(u),[M,z]=(0,_t.useState)(!1),{isAtMaxNesting:R,isTopLevelLink:A,isParentOfSelectedBlock:L,hasChildren:H}=(0,gt.useSelect)((e=>{const{getBlockCount:t,getBlockName:n,getBlockRootClientId:a,hasSelectedInnerBlock:o,getBlockParentsByBlockName:r}=e(nt.store);return{isAtMaxNesting:r(i,["core/navigation-link","core/navigation-submenu"]).length>=b,isTopLevelLink:"core/navigation"===n(a(i)),isParentOfSelectedBlock:o(i,!0),hasChildren:!!t(i)}}),[i,b]),{getBlocks:D}=(0,gt.useSelect)(nt.store),F=()=>{let t=D(i);0===t.length&&(t=[(0,Qe.createBlock)("core/navigation-link")],v(t[0].clientId));const n=(0,Qe.createBlock)("core/navigation-submenu",e,t);_(i,n)};(0,_t.useEffect)((()=>{H&&(y(),F())}),[H]),(0,_t.useEffect)((()=>{!P&&u&&k&&(0,pt.isURL)((0,pt.prependHTTP)(c))&&/^.+\.[a-z]+/.test(c)&&function(){I.current.focus();const{ownerDocument:e}=I.current,{defaultView:t}=e,n=t.getSelection(),a=e.createRange();a.selectNodeContents(I.current),n.removeAllRanges(),n.addRange(a)}()}),[P,u,k,c]);const{textColor:V,customTextColor:$,backgroundColor:G,customBackgroundColor:O}=vh(l,!A),U=(0,nt.useBlockProps)({ref:(0,jt.useMergeRefs)([S,B]),className:ut("wp-block-navigation-item",{"is-editing":t||L,"is-dragging-within":N,"has-link":!!u,"has-child":H,"has-text-color":!!V||!!$,[(0,nt.getColorClassName)("color",V)]:!!V,"has-background":!!G||O,[(0,nt.getColorClassName)("background-color",G)]:!!G}),style:{color:!V&&$,backgroundColor:!G&&O},onKeyDown:function(e){vn.isKeyboardEvent.primary(e,"k")&&(e.preventDefault(),e.stopPropagation(),x(!0),E(I.current))}}),q=(0,nt.useInnerBlocksProps)({...U,className:"remove-outline"},{defaultBlock:sb,directInsert:!0,renderAppender:!1});(!u||g||h)&&(U.onClick=()=>{x(!0),E(I.current)});const j=ut("wp-block-navigation-item__content",{"wp-block-navigation-link__placeholder":!u||g||h}),W=function(e){let t="";switch(e){case"post":t=(0,tt.__)("Select post");break;case"page":t=(0,tt.__)("Select page");break;case"category":t=(0,tt.__)("Select category");break;case"tag":t=(0,tt.__)("Select tag");break;default:t=(0,tt.__)("Add link")}return t}(m),Z=`(${g?(0,tt.__)("Invalid"):(0,tt.__)("Draft")})`,Q=g||h?(0,tt.__)("This item has been deleted, or is a draft"):(0,tt.__)("This item is missing a link");return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,null,(0,Ke.createElement)(et.ToolbarGroup,null,(0,Ke.createElement)(et.ToolbarButton,{name:"link",icon:fn,title:(0,tt.__)("Link"),shortcut:vn.displayShortcut.primary("k"),onClick:e=>{x(!0),E(e.currentTarget)}}),!R&&(0,Ke.createElement)(et.ToolbarButton,{name:"submenu",icon:wh,title:(0,tt.__)("Add submenu"),onClick:F}))),(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(cb,{attributes:e,setAttributes:n,setIsLabelFieldFocused:z})),(0,Ke.createElement)("div",{...U},(0,Ke.createElement)("a",{className:j},u?(0,Ke.createElement)(Ke.Fragment,null,!g&&!h&&!M&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.RichText,{ref:I,identifier:"label",className:"wp-block-navigation-item__label",value:c,onChange:e=>n({label:e}),onMerge:o,onReplace:r,__unstableOnSplitAtEnd:()=>a((0,Qe.createBlock)("core/navigation-link")),"aria-label":(0,tt.__)("Navigation link text"),placeholder:T,withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/image","core/strikethrough"]}),p&&(0,Ke.createElement)("span",{className:"wp-block-navigation-item__description"},p)),(g||h||M)&&(0,Ke.createElement)("div",{className:"wp-block-navigation-link__placeholder-text wp-block-navigation-link__label"},(0,Ke.createElement)(et.Tooltip,{text:Q},(0,Ke.createElement)("span",{"aria-label":(0,tt.__)("Navigation link text")},`${(0,Yn.decodeEntities)(c)} ${g||h?Z:""}`.trim())))):(0,Ke.createElement)("div",{className:"wp-block-navigation-link__placeholder-text"},(0,Ke.createElement)(et.Tooltip,{text:Q},(0,Ke.createElement)("span",null,W))),k&&(0,Ke.createElement)(Hh,{clientId:i,link:e,onClose:()=>{if(!u)return f(i,!0),void r([]);x(!1),w?(w.focus(),E(null)):I.current?I.current.focus():f(i,!0)},anchor:C,onRemove:function(){n({url:void 0,label:void 0,id:void 0,kind:void 0,type:void 0,opensInNewTab:!1}),x(!1)},onChange:t=>{Ph(t,n,e)}})),(0,Ke.createElement)("div",{...q})))},save:function(){return(0,Ke.createElement)(nt.InnerBlocks.Content,null)},example:{attributes:{label:(0,tt._x)("Example Link","navigation link preview example"),url:"https://example.com"}},deprecated:[{isEligible:e=>e.nofollow,attributes:{label:{type:"string"},type:{type:"string"},nofollow:{type:"boolean"},description:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string"}},migrate:({nofollow:e,...t})=>({rel:e?"nofollow":"",...t}),save:()=>(0,Ke.createElement)(nt.InnerBlocks.Content,null)}],transforms:bb},fb=()=>((0,vi.addFilter)("blocks.registerBlockType","core/navigation-link",gb),Xe({name:yb,metadata:_b,settings:vb})),kb=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m13.955 20.748 8-17.5-.91-.416L19.597 6H13.5v1.5h5.411l-1.6 3.5H13.5v1.5h3.126l-1.6 3.5H13.5l.028 1.5h.812l-1.295 2.832.91.416ZM17.675 16l-.686 1.5h4.539L21.5 16h-3.825Zm2.286-5-.686 1.5H21.5V11h-1.54ZM2 12c0 3.58 2.42 5.5 6 5.5h.5V19l3-2.5-3-2.5v2H8c-2.48 0-4.5-1.52-4.5-4S5.52 7.5 8 7.5h3.5V6H8c-3.58 0-6 2.42-6 6Z"})),xb=()=>(0,Ke.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},(0,Ke.createElement)(et.Path,{d:"M1.50002 4L6.00002 8L10.5 4",strokeWidth:"1.5"})),wb=["core/navigation-link","core/navigation-submenu","core/page-list"],Eb={name:"core/navigation-link"};const Cb={to:[{type:"block",blocks:["core/navigation-link"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:e=>(0,Qe.createBlock)("core/navigation-link",e)},{type:"block",blocks:["core/spacer"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:()=>(0,Qe.createBlock)("core/spacer")},{type:"block",blocks:["core/site-logo"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:()=>(0,Qe.createBlock)("core/site-logo")},{type:"block",blocks:["core/home-link"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:()=>(0,Qe.createBlock)("core/home-link")},{type:"block",blocks:["core/social-links"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:()=>(0,Qe.createBlock)("core/social-links")},{type:"block",blocks:["core/search"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:()=>(0,Qe.createBlock)("core/search")}]},Sb=Cb,Bb={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/navigation-submenu",title:"Submenu",category:"design",parent:["core/navigation"],description:"Add a submenu to your navigation.",textdomain:"default",attributes:{label:{type:"string"},type:{type:"string"},description:{type:"string"},rel:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string"},title:{type:"string"},kind:{type:"string"},isTopLevelItem:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","maxNestingLevel","openSubmenusOnClick","style"],supports:{reusable:!1,html:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-navigation-submenu-editor",style:"wp-block-navigation-submenu"},{name:Nb}=Bb,Tb={icon:({context:e})=>"list-view"===e?mb:wh,__experimentalLabel(e,{context:t}){const{label:n}=e,a=e?.metadata?.name;return"list-view"===t&&(a||n)&&e?.metadata?.name||n},edit:function({attributes:e,isSelected:t,setAttributes:n,mergeBlocks:a,onReplace:o,context:r,clientId:l}){const{label:i,type:s,url:c,description:m,rel:u,title:p}=e,{showSubmenuIcon:d,maxNestingLevel:g,openSubmenusOnClick:h}=r,{__unstableMarkNextChangeAsNotPersistent:b,replaceBlock:_,selectBlock:y}=(0,gt.useDispatch)(nt.store),[v,f]=(0,_t.useState)(!1),[k,x]=(0,_t.useState)(null),[w,E]=(0,_t.useState)(null),C=(0,_t.useRef)(null),S=(e=>{const[t,n]=(0,_t.useState)(!1);return(0,_t.useEffect)((()=>{const{ownerDocument:t}=e.current;function a(e){r(e)}function o(){n(!1)}function r(t){e.current.contains(t.target)?n(!0):n(!1)}return t.addEventListener("dragstart",a),t.addEventListener("dragend",o),t.addEventListener("dragenter",r),()=>{t.removeEventListener("dragstart",a),t.removeEventListener("dragend",o),t.removeEventListener("dragenter",r)}}),[]),t})(C),B=(0,tt.__)("Add text…"),N=(0,_t.useRef)(),T=(0,dt.useResourcePermissions)("pages"),I=(0,dt.useResourcePermissions)("posts"),{parentCount:P,isParentOfSelectedBlock:M,isImmediateParentOfSelectedBlock:z,hasChildren:R,selectedBlockHasChildren:A,onlyDescendantIsEmptyLink:L}=(0,gt.useSelect)((e=>{const{hasSelectedInnerBlock:t,getSelectedBlockClientId:n,getBlockParentsByBlockName:a,getBlock:o,getBlockCount:r,getBlockOrder:i}=e(nt.store);let s;const c=i(n());if(1===c?.length){const e=o(c[0]);s="core/navigation-link"===e?.name&&!e?.attributes?.label}return{parentCount:a(l,"core/navigation-submenu").length,isParentOfSelectedBlock:t(l,!0),isImmediateParentOfSelectedBlock:t(l,!1),hasChildren:!!r(l),selectedBlockHasChildren:!!c?.length,onlyDescendantIsEmptyLink:s}}),[l]),H=(0,jt.usePrevious)(R);(0,_t.useEffect)((()=>{h||c||f(!0)}),[]),(0,_t.useEffect)((()=>{t||f(!1)}),[t]),(0,_t.useEffect)((()=>{v&&c&&(0,pt.isURL)((0,pt.prependHTTP)(i))&&/^.+\.[a-z]+/.test(i)&&function(){N.current.focus();const{ownerDocument:e}=N.current,{defaultView:t}=e,n=t.getSelection(),a=e.createRange();a.selectNodeContents(N.current),n.removeAllRanges(),n.addRange(a)}()}),[c]);let D=!1;s&&"page"!==s?"post"===s&&(D=I.canCreate):D=T.canCreate;const{textColor:F,customTextColor:V,backgroundColor:$,customBackgroundColor:G}=vh(r,P>0),O=(0,nt.useBlockProps)({ref:(0,jt.useMergeRefs)([E,C]),className:ut("wp-block-navigation-item",{"is-editing":t||M,"is-dragging-within":S,"has-link":!!c,"has-child":R,"has-text-color":!!F||!!V,[(0,nt.getColorClassName)("color",F)]:!!F,"has-background":!!$||G,[(0,nt.getColorClassName)("background-color",$)]:!!$,"open-on-click":h}),style:{color:!F&&V,backgroundColor:!$&&G},onKeyDown:function(e){vn.isKeyboardEvent.primary(e,"k")&&(e.preventDefault(),e.stopPropagation(),f(!0),x(N.current))}}),U=vh(r,!0),q=P>=g?wb.filter((e=>"core/navigation-submenu"!==e)):wb,j=fh(U),W=(0,nt.useInnerBlocksProps)(j,{allowedBlocks:q,defaultBlock:Eb,directInsert:!0,__experimentalCaptureToolbars:!0,renderAppender:!!(t||z&&!A||R)&&nt.InnerBlocks.ButtonBlockAppender}),Z=h?"button":"a";function Q(){const t=(0,Qe.createBlock)("core/navigation-link",e);_(l,t)}(0,_t.useEffect)((()=>{!R&&H&&(b(),Q())}),[R,H]);const K=!A||L;return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,null,(0,Ke.createElement)(et.ToolbarGroup,null,!h&&(0,Ke.createElement)(et.ToolbarButton,{name:"link",icon:fn,title:(0,tt.__)("Link"),shortcut:vn.displayShortcut.primary("k"),onClick:e=>{f(!0),x(e.currentTarget)}}),(0,Ke.createElement)(et.ToolbarButton,{name:"revert",icon:kb,title:(0,tt.__)("Convert to Link"),onClick:Q,className:"wp-block-navigation__submenu__revert",isDisabled:!K}))),(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,value:i||"",onChange:e=>{n({label:e})},label:(0,tt.__)("Text"),autoComplete:"off"}),(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,value:c||"",onChange:e=>{n({url:e})},label:(0,tt.__)("Link"),autoComplete:"off"}),(0,Ke.createElement)(et.TextareaControl,{__nextHasNoMarginBottom:!0,value:m||"",onChange:e=>{n({description:e})},label:(0,tt.__)("Description"),help:(0,tt.__)("The description will be displayed in the menu if the current theme supports it.")}),(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,value:p||"",onChange:e=>{n({title:e})},label:(0,tt.__)("Title attribute"),autoComplete:"off",help:(0,tt.__)("Additional information to help clarify the purpose of the link.")}),(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,value:u||"",onChange:e=>{n({rel:e})},label:(0,tt.__)("Rel attribute"),autoComplete:"off",help:(0,tt.__)("The relationship of the linked URL as space-separated link types.")}))),(0,Ke.createElement)("div",{...O},(0,Ke.createElement)(Z,{className:"wp-block-navigation-item__content"},(0,Ke.createElement)(nt.RichText,{ref:N,identifier:"label",className:"wp-block-navigation-item__label",value:i,onChange:e=>n({label:e}),onMerge:a,onReplace:o,"aria-label":(0,tt.__)("Navigation link text"),placeholder:B,withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/image","core/strikethrough"],onClick:()=>{h||c||(f(!0),x(N.current))}}),!h&&v&&(0,Ke.createElement)(Hh,{clientId:l,link:e,onClose:()=>{f(!1),k?(k.focus(),x(null)):y(l)},anchor:w,hasCreateSuggestion:D,onRemove:()=>{n({url:""}),(0,Pg.speak)((0,tt.__)("Link removed."),"assertive")},onChange:t=>{Ph(t,n,e)}})),(d||h)&&(0,Ke.createElement)("span",{className:"wp-block-navigation__submenu-icon"},(0,Ke.createElement)(xb,null)),(0,Ke.createElement)("div",{...W})))},save:function(){return(0,Ke.createElement)(nt.InnerBlocks.Content,null)},transforms:Sb},Ib=()=>Xe({name:Nb,metadata:Bb,settings:Tb}),Pb=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M17.5 9V6a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v3H8V6a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v3h1.5Zm0 6.5V18a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2v-2.5H8V18a.5.5 0 0 0 .5.5h7a.5.5 0 0 0 .5-.5v-2.5h1.5ZM4 13h16v-1.5H4V13Z"}));const Mb={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:e=>e.dataset&&"core/nextpage"===e.dataset.block,transform:()=>(0,Qe.createBlock)("core/nextpage",{})}]},zb={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/nextpage",title:"Page Break",category:"design",description:"Separate your content into a multi-page experience.",keywords:["next page","pagination"],parent:["core/post-content"],textdomain:"default",supports:{customClassName:!1,className:!1,html:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-nextpage-editor"},{name:Rb}=zb,Ab={icon:Pb,example:{},transforms:Mb,edit:function(){return(0,Ke.createElement)("div",{...(0,nt.useBlockProps)()},(0,Ke.createElement)("span",null,(0,tt.__)("Page break")))},save:function(){return(0,Ke.createElement)(_t.RawHTML,null,"\x3c!--nextpage--\x3e")}},Lb=()=>Xe({name:Rb,metadata:zb,settings:Ab}),Hb=new WeakMap;function Db(){const e=(0,gt.useRegistry)();if(!Hb.has(e)){const t=new Map;Hb.set(e,Fb.bind(null,t))}return Hb.get(e)}function Fb(e,{name:t,blocks:n}){const a=[...n];for(;a.length;){const n=a.shift();for(const e of null!==(o=n.innerBlocks)&&void 0!==o?o:[]){var o;a.unshift(e)}"core/pattern"===n.name&&Vb(e,t,n.attributes.slug)}}function Vb(e,t,n){if(e.has(t)||e.set(t,new Set),e.get(t).add(n),$b(e,t))throw new TypeError(`Pattern ${t} has a circular dependency and cannot be rendered.`)}function $b(e,t,n=new Set,a=new Set){var o;n.add(t),a.add(t);const r=null!==(o=e.get(t))&&void 0!==o?o:new Set;for(const t of r)if(n.has(t)){if(a.has(t))return!0}else if($b(e,t,n,a))return!0;return a.delete(t),!1}const Gb=({attributes:e,clientId:t})=>{const n=(0,gt.useRegistry)(),a=(0,gt.useSelect)((t=>t(nt.store).__experimentalGetParsedPattern(e.slug)),[e.slug]),o=(0,gt.useSelect)((e=>e(dt.store).getCurrentTheme()?.stylesheet),[]),{replaceBlocks:r,setBlockEditingMode:l,__unstableMarkNextChangeAsNotPersistent:i}=(0,gt.useDispatch)(nt.store),{getBlockRootClientId:s,getBlockEditingMode:c}=(0,gt.useSelect)(nt.store),[m,u]=(0,_t.useState)(!1),p=Db();(0,_t.useEffect)((()=>{if(!m&&a?.blocks){try{p(a)}catch(e){return void u(!0)}window.queueMicrotask((()=>{const e=s(t),m=a.blocks.map((e=>(0,Qe.cloneBlock)(function(e){return e.innerBlocks.find((e=>"core/template-part"===e.name))&&(e.innerBlocks=e.innerBlocks.map((e=>("core/template-part"===e.name&&void 0===e.attributes.theme&&(e.attributes.theme=o),e)))),"core/template-part"===e.name&&void 0===e.attributes.theme&&(e.attributes.theme=o),e}(e))));1===m.length&&a.categories?.length>0&&(m[0].attributes={...m[0].attributes,metadata:{...m[0].attributes.metadata,categories:a.categories,patternName:a.name,name:m[0].attributes.metadata.name||a.title}});const u=c(e);n.batch((()=>{i(),l(e,"default"),i(),r(t,m),i(),l(e,u)}))}))}}),[t,m,a,i,r,c,l,s]);const d=(0,nt.useBlockProps)();return m?(0,Ke.createElement)("div",{...d},(0,Ke.createElement)(nt.Warning,null,(0,tt.sprintf)((0,tt.__)('Pattern "%s" cannot be rendered inside itself.'),a?.name))):(0,Ke.createElement)("div",{...d})},Ob={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/pattern",title:"Pattern placeholder",category:"theme",description:"Show a block pattern.",supports:{html:!1,inserter:!1,renaming:!1,interactivity:{clientNavigation:!0}},textdomain:"default",attributes:{slug:{type:"string"}}},{name:Ub}=Ob,qb={edit:Gb},jb=()=>Xe({name:Ub,metadata:Ob,settings:qb}),Wb=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M14.5 5.5h-7V7h7V5.5ZM7.5 9h7v1.5h-7V9Zm7 3.5h-7V14h7v-1.5Z"}),(0,Ke.createElement)(Ye.Path,{d:"M16 2H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2ZM6 3.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V4a.5.5 0 0 1 .5-.5Z"}),(0,Ke.createElement)(Ye.Path,{d:"M20 8v11c0 .69-.31 1-.999 1H6v1.5h13.001c1.52 0 2.499-.982 2.499-2.5V8H20Z"}));function Zb(e,t){for(const n of e){if(n.attributes.id===t)return n;if(n.innerBlocks&&n.innerBlocks.length){const e=Zb(n.innerBlocks,t);if(e)return e}}return null}function Qb(e=[],t=null){let n=function(e=[]){const t={},n=[];return e.forEach((({id:e,title:a,link:o,type:r,parent:l})=>{var i;const s=null!==(i=t[e]?.innerBlocks)&&void 0!==i?i:[];t[e]=(0,Qe.createBlock)("core/navigation-link",{id:e,label:a.rendered,url:o,type:r,kind:"post-type"},s),l?(t[l]||(t[l]={innerBlocks:[]}),t[l].innerBlocks.push(t[e])):n.push(t[e])})),n}(e);if(t){const e=Zb(n,t);e&&e.innerBlocks&&(n=e.innerBlocks)}const a=e=>{e.forEach(((e,t,n)=>{const{attributes:o,innerBlocks:r}=e;if(0!==r.length){a(r);const e=(0,Qe.createBlock)("core/navigation-submenu",o,r);n[t]=e}}))};return a(n),n}function Kb({clientId:e,pages:t,parentClientId:n,parentPageID:a}){const{replaceBlock:o,selectBlock:r}=(0,gt.useDispatch)(nt.store);return()=>{const l=Qb(t,a);o(e,l),r(n)}}const Yb=(0,tt.__)("This Navigation Menu displays your website's pages. Editing it will enable you to add, delete, or reorder pages. However, new pages will no longer be added automatically.");function Jb({onClick:e,onClose:t,disabled:n}){return(0,Ke.createElement)(et.Modal,{onRequestClose:t,title:(0,tt.__)("Edit Page List"),className:"wp-block-page-list-modal",aria:{describedby:"wp-block-page-list-modal__description"}},(0,Ke.createElement)("p",{id:"wp-block-page-list-modal__description"},Yb),(0,Ke.createElement)("div",{className:"wp-block-page-list-modal-buttons"},(0,Ke.createElement)(et.Button,{variant:"tertiary",onClick:t},(0,tt.__)("Cancel")),(0,Ke.createElement)(et.Button,{variant:"primary",disabled:n,onClick:e},(0,tt.__)("Edit"))))}const Xb=()=>{};function e_({blockProps:e,innerBlocksProps:t,hasResolvedPages:n,blockList:a,pages:o,parentPageID:r}){if(!n)return(0,Ke.createElement)("div",{...e},(0,Ke.createElement)("div",{className:"wp-block-page-list__loading-indicator-container"},(0,Ke.createElement)(et.Spinner,{className:"wp-block-page-list__loading-indicator"})));if(null===o)return(0,Ke.createElement)("div",{...e},(0,Ke.createElement)(et.Notice,{status:"warning",isDismissible:!1},(0,tt.__)("Page List: Cannot retrieve Pages.")));if(0===o.length)return(0,Ke.createElement)("div",{...e},(0,Ke.createElement)(et.Notice,{status:"info",isDismissible:!1},(0,tt.__)("Page List: Cannot retrieve Pages.")));if(0===a.length){const t=o.find((e=>e.id===r));return t?.title?.rendered?(0,Ke.createElement)("div",{...e},(0,Ke.createElement)(nt.Warning,null,(0,tt.sprintf)((0,tt.__)('Page List: "%s" page has no children.'),t.title.rendered))):(0,Ke.createElement)("div",{...e},(0,Ke.createElement)(et.Notice,{status:"warning",isDismissible:!1},(0,tt.__)("Page List: Cannot retrieve Pages.")))}return o.length>0?(0,Ke.createElement)("ul",{...t}):void 0}const t_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/page-list",title:"Page List",category:"widgets",allowedBlocks:["core/page-list-item"],description:"Display a list of all pages.",keywords:["menu","navigation"],textdomain:"default",attributes:{parentPageID:{type:"integer",default:0},isNested:{type:"boolean",default:!1}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","style","openSubmenusOnClick"],supports:{reusable:!1,html:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-page-list-editor",style:"wp-block-page-list"},{name:n_}=t_,a_={icon:Wb,example:{},edit:function({context:e,clientId:t,attributes:n,setAttributes:a}){const{parentPageID:o}=n,[r,l]=(0,_t.useState)(!1),i=(0,_t.useCallback)((()=>l(!0)),[]),{records:s,hasResolved:c}=(0,dt.useEntityRecords)("postType","page",{per_page:100,_fields:["id","link","menu_order","parent","title","type"],orderby:"menu_order",order:"asc"}),m="showSubmenuIcon"in e&&s?.length>0&&s?.length<=100,u=(0,_t.useMemo)((()=>{if(null===s)return new Map;const e=s.sort(((e,t)=>e.menu_order===t.menu_order?e.title.rendered.localeCompare(t.title.rendered):e.menu_order-t.menu_order));return e.reduce(((e,t)=>{const{parent:n}=t;return e.has(n)?e.get(n).push(t):e.set(n,[t]),e}),new Map)}),[s]),p=(0,nt.useBlockProps)({className:ut("wp-block-page-list",{"has-text-color":!!e.textColor,[(0,nt.getColorClassName)("color",e.textColor)]:!!e.textColor,"has-background":!!e.backgroundColor,[(0,nt.getColorClassName)("background-color",e.backgroundColor)]:!!e.backgroundColor}),style:{...e.style?.color}}),d=(0,_t.useMemo)((function e(t=0,n=0){const a=u.get(t);return a?.length?a.reduce(((t,a)=>{const o=u.has(a.id),r={value:a.id,label:"— ".repeat(n)+a.title.rendered,rawName:a.title.rendered};return t.push(r),o&&t.push(...e(a.id,n+1)),t}),[]):[]}),[u]),g=(0,_t.useMemo)((function e(t=o){const n=u.get(t);return n?.length?n.reduce(((t,n)=>{const a=u.has(n.id),o={id:n.id,label:""!==n.title?.rendered?.trim()?n.title?.rendered:(0,tt.__)("(no title)"),title:n.title?.rendered,link:n.url,hasChildren:a};let r=null;const l=e(n.id);return r=(0,Qe.createBlock)("core/page-list-item",o,l),t.push(r),t}),[]):[]}),[u,o]),{isNested:h,hasSelectedChild:b,parentClientId:_,hasDraggedChild:y,isChildOfNavigation:v}=(0,gt.useSelect)((e=>{const{getBlockParentsByBlockName:n,hasSelectedInnerBlock:a,hasDraggedInnerBlock:o}=e(nt.store),r=n(t,"core/navigation-submenu",!0),l=n(t,"core/navigation",!0);return{isNested:r.length>0,isChildOfNavigation:l.length>0,hasSelectedChild:a(t,!0),hasDraggedChild:o(t,!0),parentClientId:l[0]}}),[t]),f=Kb({clientId:t,pages:s,parentClientId:_,parentPageID:o}),k=(0,nt.useInnerBlocksProps)(p,{renderAppender:!1,__unstableDisableDropZone:!0,templateLock:!v&&"all",onInput:Xb,onChange:Xb,value:g}),{selectBlock:x}=(0,gt.useDispatch)(nt.store);return(0,_t.useEffect)((()=>{(b||y)&&(i(),x(_))}),[b,y,_,x,i]),(0,_t.useEffect)((()=>{a({isNested:h})}),[h,a]),(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.InspectorControls,null,d.length>0&&(0,Ke.createElement)(et.PanelBody,null,(0,Ke.createElement)(et.ComboboxControl,{__next40pxDefaultSize:!0,className:"editor-page-attributes__parent",label:(0,tt.__)("Parent"),value:o,options:d,onChange:e=>a({parentPageID:null!=e?e:0}),help:(0,tt.__)("Choose a page to show only its subpages.")})),m&&(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Edit this menu")},(0,Ke.createElement)("p",null,Yb),(0,Ke.createElement)(et.Button,{variant:"primary",disabled:!c,onClick:f},(0,tt.__)("Edit")))),m&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,{group:"other"},(0,Ke.createElement)(et.ToolbarButton,{title:(0,tt.__)("Edit"),onClick:i},(0,tt.__)("Edit"))),r&&(0,Ke.createElement)(Jb,{onClick:f,onClose:()=>l(!1),disabled:!c})),(0,Ke.createElement)(e_,{blockProps:p,innerBlocksProps:k,hasResolvedPages:c,blockList:g,pages:s,parentPageID:o}))}},o_=()=>Xe({name:n_,metadata:t_,settings:a_}),r_=()=>(0,Ke.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},(0,Ke.createElement)(et.Path,{d:"M1.50002 4L6.00002 8L10.5 4",strokeWidth:"1.5"}));const l_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/page-list-item",title:"Page List Item",category:"widgets",parent:["core/page-list"],description:"Displays a page inside a list of all pages.",keywords:["page","menu","navigation"],textdomain:"default",attributes:{id:{type:"number"},label:{type:"string"},title:{type:"string"},link:{type:"string"},hasChildren:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","style","openSubmenusOnClick"],supports:{reusable:!1,html:!1,lock:!1,inserter:!1,__experimentalToolbar:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-page-list-editor",style:"wp-block-page-list"},{name:i_}=l_,s_={__experimentalLabel:({label:e})=>e,icon:mb,example:{},edit:function({context:e,attributes:t}){const{id:n,label:a,link:o,hasChildren:r,title:l}=t,i="showSubmenuIcon"in e,s=(0,gt.useSelect)((e=>{if(!e(dt.store).canUser("read","settings"))return;const t=e(dt.store).getEntityRecord("root","site");return"page"===t?.show_on_front&&t?.page_on_front}),[]),c=fh(vh(e,!0)),m=(0,nt.useBlockProps)(c,{className:"wp-block-pages-list__item"}),u=(0,nt.useInnerBlocksProps)(m);return(0,Ke.createElement)("li",{key:n,className:ut("wp-block-pages-list__item",{"has-child":r,"wp-block-navigation-item":i,"open-on-click":e.openSubmenusOnClick,"open-on-hover-click":!e.openSubmenusOnClick&&e.showSubmenuIcon,"menu-item-home":n===s})},r&&e.openSubmenusOnClick?(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)("button",{type:"button",className:"wp-block-navigation-item__content wp-block-navigation-submenu__toggle","aria-expanded":"false"},(0,Yn.decodeEntities)(a)),(0,Ke.createElement)("span",{className:"wp-block-page-list__submenu-icon wp-block-navigation__submenu-icon"},(0,Ke.createElement)(r_,null))):(0,Ke.createElement)("a",{className:ut("wp-block-pages-list__item__link",{"wp-block-navigation-item__content":i}),href:o},(0,Yn.decodeEntities)(l)),r&&(0,Ke.createElement)(Ke.Fragment,null,!e.openSubmenusOnClick&&e.showSubmenuIcon&&(0,Ke.createElement)("button",{className:"wp-block-navigation-item__content wp-block-navigation-submenu__toggle wp-block-page-list__submenu-icon wp-block-navigation__submenu-icon","aria-expanded":"false",type:"button"},(0,Ke.createElement)(r_,null)),(0,Ke.createElement)("ul",{...u})))}},c_=()=>Xe({name:i_,metadata:l_,settings:s_}),m_=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"m9.99609 14v-.2251l.00391.0001v6.225h1.5v-14.5h2.5v14.5h1.5v-14.5h3v-1.5h-8.50391c-2.76142 0-5 2.23858-5 5 0 2.7614 2.23858 5 5 5z"})),u_={className:!1},p_={align:{type:"string"},content:{type:"string",source:"html",selector:"p",default:""},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},textColor:{type:"string"},backgroundColor:{type:"string"},fontSize:{type:"string"},direction:{type:"string",enum:["ltr","rtl"]},style:{type:"object"}},d_=e=>{if(!e.customTextColor&&!e.customBackgroundColor&&!e.customFontSize)return e;const t={};(e.customTextColor||e.customBackgroundColor)&&(t.color={}),e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customFontSize&&(t.typography={fontSize:e.customFontSize});const{customTextColor:n,customBackgroundColor:a,customFontSize:o,...r}=e;return{...r,style:t}},{style:g_,...h_}=p_,b_=[{supports:u_,attributes:{...h_,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},save({attributes:e}){const{align:t,content:n,dropCap:a,direction:o}=e,r=ut({"has-drop-cap":t!==((0,tt.isRTL)()?"left":"right")&&"center"!==t&&a,[`has-text-align-${t}`]:t});return(0,Ke.createElement)("p",{...nt.useBlockProps.save({className:r,dir:o})},(0,Ke.createElement)(nt.RichText.Content,{value:n}))}},{supports:u_,attributes:{...h_,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate:d_,save({attributes:e}){const{align:t,content:n,dropCap:a,backgroundColor:o,textColor:r,customBackgroundColor:l,customTextColor:i,fontSize:s,customFontSize:c,direction:m}=e,u=(0,nt.getColorClassName)("color",r),p=(0,nt.getColorClassName)("background-color",o),d=(0,nt.getFontSizeClass)(s),g=ut({"has-text-color":r||i,"has-background":o||l,"has-drop-cap":a,[`has-text-align-${t}`]:t,[d]:d,[u]:u,[p]:p}),h={backgroundColor:p?void 0:l,color:u?void 0:i,fontSize:d?void 0:c};return(0,Ke.createElement)(nt.RichText.Content,{tagName:"p",style:h,className:g||void 0,value:n,dir:m})}},{supports:u_,attributes:{...h_,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate:d_,save({attributes:e}){const{align:t,content:n,dropCap:a,backgroundColor:o,textColor:r,customBackgroundColor:l,customTextColor:i,fontSize:s,customFontSize:c,direction:m}=e,u=(0,nt.getColorClassName)("color",r),p=(0,nt.getColorClassName)("background-color",o),d=(0,nt.getFontSizeClass)(s),g=ut({"has-text-color":r||i,"has-background":o||l,"has-drop-cap":a,[d]:d,[u]:u,[p]:p}),h={backgroundColor:p?void 0:l,color:u?void 0:i,fontSize:d?void 0:c,textAlign:t};return(0,Ke.createElement)(nt.RichText.Content,{tagName:"p",style:h,className:g||void 0,value:n,dir:m})}},{supports:u_,attributes:{...h_,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"},width:{type:"string"}},migrate:d_,save({attributes:e}){const{width:t,align:n,content:a,dropCap:o,backgroundColor:r,textColor:l,customBackgroundColor:i,customTextColor:s,fontSize:c,customFontSize:m}=e,u=(0,nt.getColorClassName)("color",l),p=(0,nt.getColorClassName)("background-color",r),d=c&&`is-${c}-text`,g=ut({[`align${t}`]:t,"has-background":r||i,"has-drop-cap":o,[d]:d,[u]:u,[p]:p}),h={backgroundColor:p?void 0:i,color:u?void 0:s,fontSize:d?void 0:m,textAlign:n};return(0,Ke.createElement)(nt.RichText.Content,{tagName:"p",style:h,className:g||void 0,value:a})}},{supports:u_,attributes:{...h_,fontSize:{type:"number"}},save({attributes:e}){const{width:t,align:n,content:a,dropCap:o,backgroundColor:r,textColor:l,fontSize:i}=e,s=ut({[`align${t}`]:t,"has-background":r,"has-drop-cap":o}),c={backgroundColor:r,color:l,fontSize:i,textAlign:n};return(0,Ke.createElement)("p",{style:c,className:s||void 0},a)},migrate:e=>d_({...e,customFontSize:Number.isFinite(e.fontSize)?e.fontSize:void 0,customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.backgroundColor&&"#"===e.backgroundColor[0]?e.backgroundColor:void 0})},{supports:u_,attributes:{...p_,content:{type:"string",source:"html",default:""}},save:({attributes:e})=>(0,Ke.createElement)(_t.RawHTML,null,e.content),migrate:e=>e}],__=b_,y_=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M5.52 2h7.43c.55 0 1 .45 1 1s-.45 1-1 1h-1v13c0 .55-.45 1-1 1s-1-.45-1-1V5c0-.55-.45-1-1-1s-1 .45-1 1v12c0 .55-.45 1-1 1s-1-.45-1-1v-5.96h-.43C3.02 11.04 1 9.02 1 6.52S3.02 2 5.52 2zM14 14l5-4-5-4v8z"}));function v_(e){const{batch:t}=(0,gt.useRegistry)(),{moveBlocksToPosition:n,replaceInnerBlocks:a,duplicateBlocks:o,insertBlock:r}=(0,gt.useDispatch)(nt.store),{getBlockRootClientId:l,getBlockIndex:i,getBlockOrder:s,getBlockName:c,getBlock:m,getNextBlockClientId:u,canInsertBlockType:p}=(0,gt.useSelect)(nt.store),d=(0,_t.useRef)(e);return d.current=e,(0,jt.useRefEffect)((e=>{function g(e){if(e.defaultPrevented)return;if(e.keyCode!==vn.ENTER)return;const{content:g,clientId:h}=d.current;if(g.length)return;const b=l(h);if(!(0,Qe.hasBlockSupport)(c(b),"__experimentalOnEnter",!1))return;const _=s(b),y=_.indexOf(h);if(y===_.length-1){let t=b;for(;!p(c(h),l(t));)t=l(t);return void("string"==typeof t&&(e.preventDefault(),n([h],b,l(t),i(t)+1)))}const v=(0,Qe.getDefaultBlockName)();if(!p(v,l(b)))return;e.preventDefault();const f=m(b);t((()=>{o([b]);const e=i(b);a(b,f.innerBlocks.slice(0,y)),a(u(b),f.innerBlocks.slice(y+1)),r((0,Qe.createBlock)(v),e+1,l(b),!0)}))}return e.addEventListener("keydown",g),()=>{e.removeEventListener("keydown",g)}}),[])}function f_({direction:e,setDirection:t}){return(0,tt.isRTL)()&&(0,Ke.createElement)(et.ToolbarButton,{icon:y_,title:(0,tt._x)("Left to right","editor button"),isActive:"ltr"===e,onClick:()=>{t("ltr"===e?void 0:"ltr")}})}function k_(e){return e===((0,tt.isRTL)()?"left":"right")||"center"===e}function x_({clientId:e,attributes:t,setAttributes:n}){const[a]=(0,nt.useSettings)("typography.dropCap");if(!a)return null;const{align:o,dropCap:r}=t;let l;return l=k_(o)?(0,tt.__)("Not available for aligned text."):r?(0,tt.__)("Showing large initial letter."):(0,tt.__)("Toggle to show a large initial letter."),(0,Ke.createElement)(et.__experimentalToolsPanelItem,{hasValue:()=>!!r,label:(0,tt.__)("Drop cap"),onDeselect:()=>n({dropCap:void 0}),resetAllFilter:()=>({dropCap:void 0}),panelId:e},(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Drop cap"),checked:!!r,onChange:()=>n({dropCap:!r}),help:l,disabled:!!k_(o)}))}const w_=function({attributes:e,mergeBlocks:t,onReplace:n,onRemove:a,setAttributes:o,clientId:r}){const{align:l,content:i,direction:s,dropCap:c,placeholder:m}=e,u=(0,nt.useBlockProps)({ref:v_({clientId:r,content:i}),className:ut({"has-drop-cap":!k_(l)&&c,[`has-text-align-${l}`]:l}),style:{direction:s}}),p=(0,nt.useBlockEditingMode)();return(0,Ke.createElement)(Ke.Fragment,null,"default"===p&&(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(nt.AlignmentControl,{value:l,onChange:e=>o({align:e,dropCap:!k_(e)&&c})}),(0,Ke.createElement)(f_,{direction:s,setDirection:e=>o({direction:e})})),(0,Ke.createElement)(nt.InspectorControls,{group:"typography"},(0,Ke.createElement)(x_,{clientId:r,attributes:e,setAttributes:o})),(0,Ke.createElement)(nt.RichText,{identifier:"content",tagName:"p",...u,value:i,onChange:e=>o({content:e}),onMerge:t,onReplace:n,onRemove:a,"aria-label":nt.RichText.isEmpty(i)?(0,tt.__)("Empty block; start writing or type forward slash to choose a block"):(0,tt.__)("Block: Paragraph"),"data-empty":nt.RichText.isEmpty(i),placeholder:m||(0,tt.__)("Type / to choose a block"),"data-custom-placeholder":!!m||void 0,__unstableEmbedURLOnPaste:!0,__unstableAllowPrefixTransformations:!0}))};const{name:E_}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/paragraph",title:"Paragraph",category:"text",description:"Start with the basic building block of all narrative.",keywords:["text"],textdomain:"default",attributes:{align:{type:"string"},content:{type:"rich-text",source:"rich-text",selector:"p",__experimentalRole:"content"},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},direction:{type:"string",enum:["ltr","rtl"]}},supports:{splitting:!0,anchor:!0,className:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalSelector:"p",__unstablePasteTextInline:!0,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-paragraph-editor",style:"wp-block-paragraph"},C_={from:[{type:"raw",priority:20,selector:"p",schema:({phrasingContentSchema:e,isPaste:t})=>({p:{children:e,attributes:t?[]:["style","id"]}}),transform(e){const t=(0,Qe.getBlockAttributes)(E_,e.outerHTML),{textAlign:n}=e.style||{};return"left"!==n&&"center"!==n&&"right"!==n||(t.align=n),(0,Qe.createBlock)(E_,t)}}]},S_=C_,B_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/paragraph",title:"Paragraph",category:"text",description:"Start with the basic building block of all narrative.",keywords:["text"],textdomain:"default",attributes:{align:{type:"string"},content:{type:"rich-text",source:"rich-text",selector:"p",__experimentalRole:"content"},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},direction:{type:"string",enum:["ltr","rtl"]}},supports:{splitting:!0,anchor:!0,className:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalSelector:"p",__unstablePasteTextInline:!0,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-paragraph-editor",style:"wp-block-paragraph"},{name:N_}=B_,T_={icon:m_,example:{attributes:{content:(0,tt.__)("In a village of La Mancha, the name of which I have no desire to call to mind, there lived not long since one of those gentlemen that keep a lance in the lance-rack, an old buckler, a lean hack, and a greyhound for coursing.")}},__experimentalLabel(e,{context:t}){const n=e?.metadata?.name;if("list-view"===t&&n)return n;if("accessibility"===t){if(n)return n;const{content:t}=e;return t&&0!==t.length?t:(0,tt.__)("Empty")}},transforms:S_,deprecated:__,merge:(e,t)=>({content:(e.content||"")+(t.content||"")}),edit:w_,save:function({attributes:e}){const{align:t,content:n,dropCap:a,direction:o}=e,r=ut({"has-drop-cap":t!==((0,tt.isRTL)()?"left":"right")&&"center"!==t&&a,[`has-text-align-${t}`]:t});return(0,Ke.createElement)("p",{...nt.useBlockProps.save({className:r,dir:o})},(0,Ke.createElement)(nt.RichText.Content,{value:n}))}},I_=()=>Xe({name:N_,metadata:B_,settings:T_}),P_=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M10 4.5a1 1 0 11-2 0 1 1 0 012 0zm1.5 0a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0zm2.25 7.5v-1A2.75 2.75 0 0011 8.25H7A2.75 2.75 0 004.25 11v1h1.5v-1c0-.69.56-1.25 1.25-1.25h4c.69 0 1.25.56 1.25 1.25v1h1.5zM4 20h9v-1.5H4V20zm16-4H4v-1.5h16V16z",fillRule:"evenodd",clipRule:"evenodd"})),M_={who:"authors",per_page:100};const z_=function({isSelected:e,context:{postType:t,postId:n,queryId:a},attributes:o,setAttributes:r}){const l=Number.isFinite(a),{authorId:i,authorDetails:s,authors:c}=(0,gt.useSelect)((e=>{const{getEditedEntityRecord:a,getUser:o,getUsers:r}=e(dt.store),l=a("postType",t,n)?.author;return{authorId:l,authorDetails:l?o(l):null,authors:r(M_)}}),[t,n]),{editEntityRecord:m}=(0,gt.useDispatch)(dt.store),{textAlign:u,showAvatar:p,showBio:d,byline:g,isLink:h,linkTarget:b}=o,_=[],y=s?.name||(0,tt.__)("Post Author");s?.avatar_urls&&Object.keys(s.avatar_urls).forEach((e=>{_.push({value:e,label:`${e} x ${e}`})}));const v=(0,nt.useBlockProps)({className:ut({[`has-text-align-${u}`]:u})}),f=c?.length?c.map((({id:e,name:t})=>({value:e,label:t}))):[],k=e=>{m("postType",t,n,{author:e})},x=f.length>=25,w=!!n&&!l&&f.length>0;return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},w&&(x&&(0,Ke.createElement)(et.ComboboxControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Author"),options:f,value:i,onChange:k,allowReset:!1})||(0,Ke.createElement)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Author"),value:i,options:f,onChange:k})),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show avatar"),checked:p,onChange:()=>r({showAvatar:!p})}),p&&(0,Ke.createElement)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Avatar size"),value:o.avatarSize,options:_,onChange:e=>{r({avatarSize:Number(e)})}}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show bio"),checked:d,onChange:()=>r({showBio:!d})}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Link author name to author page"),checked:h,onChange:()=>r({isLink:!h})}),h&&(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Open in new tab"),onChange:e=>r({linkTarget:e?"_blank":"_self"}),checked:"_blank"===b}))),(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(nt.AlignmentControl,{value:u,onChange:e=>{r({textAlign:e})}})),(0,Ke.createElement)("div",{...v},p&&s?.avatar_urls&&(0,Ke.createElement)("div",{className:"wp-block-post-author__avatar"},(0,Ke.createElement)("img",{width:o.avatarSize,src:s.avatar_urls[o.avatarSize],alt:s.name})),(0,Ke.createElement)("div",{className:"wp-block-post-author__content"},(!nt.RichText.isEmpty(g)||e)&&(0,Ke.createElement)(nt.RichText,{identifier:"byline",className:"wp-block-post-author__byline","aria-label":(0,tt.__)("Post author byline text"),placeholder:(0,tt.__)("Write byline…"),value:g,onChange:e=>r({byline:e})}),(0,Ke.createElement)("p",{className:"wp-block-post-author__name"},h?(0,Ke.createElement)("a",{href:"#post-author-pseudo-link",onClick:e=>e.preventDefault()},y):y),d&&(0,Ke.createElement)("p",{className:"wp-block-post-author__bio",dangerouslySetInnerHTML:{__html:s?.description}}))))},R_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-author",title:"Author",category:"theme",description:"Display post author details such as name, avatar, and bio.",textdomain:"default",attributes:{textAlign:{type:"string"},avatarSize:{type:"number",default:48},showAvatar:{type:"boolean",default:!0},showBio:{type:"boolean"},byline:{type:"string"},isLink:{type:"boolean",default:!1},linkTarget:{type:"string",default:"_self"}},usesContext:["postType","postId","queryId"],supports:{html:!1,spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDuotone:".wp-block-post-author__avatar img",__experimentalDefaultControls:{background:!0,text:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-post-author"},{name:A_}=R_,L_={icon:P_,edit:z_},H_=()=>Xe({name:A_,metadata:R_,settings:L_});const D_=function({context:{postType:e,postId:t},attributes:{textAlign:n,isLink:a,linkTarget:o},setAttributes:r}){const{authorName:l}=(0,gt.useSelect)((n=>{const{getEditedEntityRecord:a,getUser:o}=n(dt.store),r=a("postType",e,t)?.author;return{authorName:r?o(r):null}}),[e,t]),i=(0,nt.useBlockProps)({className:ut({[`has-text-align-${n}`]:n})}),s=l?.name||(0,tt.__)("Author Name"),c=a?(0,Ke.createElement)("a",{href:"#author-pseudo-link",onClick:e=>e.preventDefault(),className:"wp-block-post-author-name__link"},s):s;return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(nt.AlignmentControl,{value:n,onChange:e=>{r({textAlign:e})}})),(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Link to author archive"),onChange:()=>r({isLink:!a}),checked:a}),a&&(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Open in new tab"),onChange:e=>r({linkTarget:e?"_blank":"_self"}),checked:"_blank"===o}))),(0,Ke.createElement)("div",{...i}," ",c," "))},F_={from:[{type:"block",blocks:["core/post-author"],transform:({textAlign:e})=>(0,Qe.createBlock)("core/post-author-name",{textAlign:e})}],to:[{type:"block",blocks:["core/post-author"],transform:({textAlign:e})=>(0,Qe.createBlock)("core/post-author",{textAlign:e})}]},V_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-author-name",title:"Author Name",category:"theme",description:"The author name.",textdomain:"default",attributes:{textAlign:{type:"string"},isLink:{type:"boolean",default:!1},linkTarget:{type:"string",default:"_self"}},usesContext:["postType","postId"],supports:{html:!1,spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:$_}=V_,G_={icon:P_,transforms:F_,edit:D_},O_=()=>Xe({name:$_,metadata:V_,settings:G_});const U_=function({context:{postType:e,postId:t},attributes:{textAlign:n},setAttributes:a}){const{authorDetails:o}=(0,gt.useSelect)((n=>{const{getEditedEntityRecord:a,getUser:o}=n(dt.store),r=a("postType",e,t)?.author;return{authorDetails:r?o(r):null}}),[e,t]),r=(0,nt.useBlockProps)({className:ut({[`has-text-align-${n}`]:n})}),l=o?.description||(0,tt.__)("Author Biography");return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(nt.AlignmentControl,{value:n,onChange:e=>{a({textAlign:e})}})),(0,Ke.createElement)("div",{...r,dangerouslySetInnerHTML:{__html:l}}))},q_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-author-biography",title:"Author Biography",category:"theme",description:"The author biography.",textdomain:"default",attributes:{textAlign:{type:"string"}},usesContext:["postType","postId"],supports:{spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:j_}=q_,W_={icon:P_,edit:U_},Z_=()=>Xe({name:j_,metadata:q_,settings:W_}),Q_=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"})),K_=[["core/avatar"],["core/comment-author-name"],["core/comment-date"],["core/comment-content"],["core/comment-reply-link"],["core/comment-edit-link"]];const Y_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:"fse",name:"core/post-comment",title:"Comment (deprecated)",category:"theme",allowedBlocks:["core/avatar","core/comment-author-name","core/comment-content","core/comment-date","core/comment-edit-link","core/comment-reply-link"],description:"This block is deprecated. Please use the Comments block instead.",textdomain:"default",attributes:{commentId:{type:"number"}},providesContext:{commentId:"commentId"},supports:{html:!1,inserter:!1,interactivity:{clientNavigation:!0}}},{name:J_}=Y_,X_={icon:Ep,edit:function({attributes:{commentId:e},setAttributes:t}){const[n,a]=(0,_t.useState)(e),o=(0,nt.useBlockProps)(),r=(0,nt.useInnerBlocksProps)(o,{template:K_});return e?(0,Ke.createElement)("div",{...r}):(0,Ke.createElement)("div",{...o},(0,Ke.createElement)(et.Placeholder,{icon:Q_,label:(0,tt._x)("Post Comment","block title"),instructions:(0,tt.__)("To show a comment, input the comment ID.")},(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,value:e,onChange:e=>a(parseInt(e))}),(0,Ke.createElement)(et.Button,{variant:"primary",onClick:()=>{t({commentId:n})}},(0,tt.__)("Save"))))},save:function(){const e=nt.useBlockProps.save(),t=nt.useInnerBlocksProps.save(e);return(0,Ke.createElement)("div",{...t})}},ey=()=>Xe({name:J_,metadata:Y_,settings:X_}),ty=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M13 8H4v1.5h9V8zM4 4v1.5h16V4H4zm9 8H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1V13c0-.6-.4-1-1-1zm-2.2 6.6H7l1.6-2.2c.3-.4.5-.7.6-.9.1-.2.2-.4.2-.5 0-.2-.1-.3-.1-.4-.1-.1-.2-.1-.4-.1s-.4 0-.6.1c-.3.1-.5.3-.7.4l-.2.2-.2-1.2.1-.1c.3-.2.5-.3.8-.4.3-.1.6-.1.9-.1.3 0 .6.1.9.2.2.1.4.3.6.5.1.2.2.5.2.7 0 .3-.1.6-.2.9-.1.3-.4.7-.7 1.1l-.5.6h1.6v1.2z"}));const ny={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:"fse",name:"core/post-comments-count",title:"Comments Count",category:"theme",description:"Display a post's comments count.",textdomain:"default",attributes:{textAlign:{type:"string"}},usesContext:["postId"],supports:{html:!1,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:ay}=ny,oy={icon:ty,edit:function({attributes:e,context:t,setAttributes:n}){const{textAlign:a}=e,{postId:o}=t,[r,l]=(0,_t.useState)(),i=(0,nt.useBlockProps)({className:ut({[`has-text-align-${a}`]:a})});(0,_t.useEffect)((()=>{if(!o)return;const e=o;Zo()({path:(0,pt.addQueryArgs)("/wp/v2/comments",{post:o}),parse:!1}).then((t=>{e===o&&l(t.headers.get("X-WP-Total"))}))}),[o]);const s=o&&void 0!==r,c={...i.style,textDecoration:s?i.style?.textDecoration:void 0};return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(nt.AlignmentControl,{value:a,onChange:e=>{n({textAlign:e})}})),(0,Ke.createElement)("div",{...i,style:c},s?r:(0,Ke.createElement)(nt.Warning,null,(0,tt.__)("Post Comments Count block: post not found."))))}},ry=()=>Xe({name:ay,metadata:ny,settings:oy}),ly=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M13 8H4v1.5h9V8zM4 4v1.5h16V4H4zm9 8H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1V13c0-.6-.4-1-1-1zm-.5 6.6H6.7l-1.2 1.2v-6.3h7v5.1z"}));const iy={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-comments-form",title:"Comments Form",category:"theme",description:"Display a post's comments form.",textdomain:"default",attributes:{textAlign:{type:"string"}},usesContext:["postId","postType"],supports:{html:!1,color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-post-comments-form-editor",style:["wp-block-post-comments-form","wp-block-buttons","wp-block-button"]},{name:sy}=iy,cy={icon:ly,edit:function e({attributes:t,context:n,setAttributes:a}){const{textAlign:o}=t,{postId:r,postType:l}=n,i=(0,jt.useInstanceId)(e),s=(0,tt.sprintf)("comments-form-edit-%d-desc",i),c=(0,nt.useBlockProps)({className:ut({[`has-text-align-${o}`]:o}),"aria-describedby":s});return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(nt.AlignmentControl,{value:o,onChange:e=>{a({textAlign:e})}})),(0,Ke.createElement)("div",{...c},(0,Ke.createElement)(no,{postId:r,postType:l}),(0,Ke.createElement)(et.VisuallyHidden,{id:s},(0,tt.__)("Comments form disabled in editor."))))}},my=()=>Xe({name:sy,metadata:iy,settings:cy});const uy=function({context:e,attributes:t,setAttributes:n}){const{textAlign:a}=t,{postType:o,postId:r}=e,[l,i]=(0,_t.useState)(),s=(0,nt.useBlockProps)({className:ut({[`has-text-align-${a}`]:a})});(0,_t.useEffect)((()=>{if(!r)return;const e=r;Zo()({path:(0,pt.addQueryArgs)("/wp/v2/comments",{post:r}),parse:!1}).then((t=>{e===r&&i(t.headers.get("X-WP-Total"))}))}),[r]);const c=(0,gt.useSelect)((e=>e(dt.store).getEditedEntityRecord("postType",o,r)),[o,r]);if(!c)return null;const{link:m}=c;let u;if(void 0!==l){const e=parseInt(l);u=0===e?(0,tt.__)("No comments"):(0,tt.sprintf)((0,tt._n)("%s comment","%s comments",e),e.toLocaleString())}return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(nt.AlignmentControl,{value:a,onChange:e=>{n({textAlign:e})}})),(0,Ke.createElement)("div",{...s},m&&void 0!==u?(0,Ke.createElement)("a",{href:m+"#comments",onClick:e=>e.preventDefault()},u):(0,Ke.createElement)(nt.Warning,null,(0,tt.__)("Post Comments Link block: post not found."))))},py={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:"fse",name:"core/post-comments-link",title:"Comments Link",category:"theme",description:"Displays the link to the current post comments.",textdomain:"default",usesContext:["postType","postId"],attributes:{textAlign:{type:"string"}},supports:{html:!1,color:{link:!0,text:!1,__experimentalDefaultControls:{background:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:dy}=py,gy={edit:uy,icon:ty},hy=()=>Xe({name:dy,metadata:py,settings:gy}),by=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M4 6h12V4.5H4V6Zm16 4.5H4V9h16v1.5ZM4 15h16v-1.5H4V15Zm0 4.5h16V18H4v1.5Z"}));function _y({layoutClassNames:e,userCanEdit:t,postType:n,postId:a}){const[,,o]=(0,dt.useEntityProp)("postType",n,"content",a),r=(0,nt.useBlockProps)({className:e});return o?.protected&&!t?(0,Ke.createElement)("div",{...r},(0,Ke.createElement)(nt.Warning,null,(0,tt.__)("This content is password protected."))):(0,Ke.createElement)("div",{...r,dangerouslySetInnerHTML:{__html:o?.rendered}})}function yy({context:e={}}){const{postType:t,postId:n}=e,[a,o,r]=(0,dt.useEntityBlockEditor)("postType",t,{id:n}),l=(0,gt.useSelect)((e=>e(dt.store).getEntityRecord("postType",t,n)),[t,n]),i=!!l?.content?.raw||a?.length,s=(0,nt.useInnerBlocksProps)((0,nt.useBlockProps)({className:"entry-content"}),{value:a,onInput:o,onChange:r,template:i?void 0:[["core/paragraph"]]});return(0,Ke.createElement)("div",{...s})}function vy(e){const{context:{queryId:t,postType:n,postId:a}={},layoutClassNames:o}=e,r=Ut("postType",n,a);if(void 0===r)return null;const l=Number.isFinite(t);return r&&!l?(0,Ke.createElement)(yy,{...e}):(0,Ke.createElement)(_y,{layoutClassNames:o,userCanEdit:r,postType:n,postId:a})}function fy({layoutClassNames:e}){const t=(0,nt.useBlockProps)({className:e});return(0,Ke.createElement)("div",{...t},(0,Ke.createElement)("p",null,(0,tt.__)("This is the Content block, it will display all the blocks in any single post or page.")),(0,Ke.createElement)("p",null,(0,tt.__)("That might be a simple arrangement like consecutive paragraphs in a blog post, or a more elaborate composition that includes image galleries, videos, tables, columns, and any other block types.")),(0,Ke.createElement)("p",null,(0,tt.__)("If there are any Custom Post Types registered at your site, the Content block can display the contents of those entries as well.")))}function ky(){const e=(0,nt.useBlockProps)();return(0,Ke.createElement)("div",{...e},(0,Ke.createElement)(nt.Warning,null,(0,tt.__)("Block cannot be rendered inside itself.")))}const xy={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-content",title:"Content",category:"theme",description:"Displays the contents of a post or page.",textdomain:"default",usesContext:["postId","postType","queryId"],supports:{align:["wide","full"],html:!1,layout:!0,dimensions:{minHeight:!0},spacing:{blockGap:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!1,text:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-post-content-editor"},{name:wy}=xy,Ey={icon:by,edit:function({context:e,__unstableLayoutClassNames:t}){const{postId:n,postType:a}=e,o=(0,nt.useHasRecursion)(n);return n&&a&&o?(0,Ke.createElement)(ky,null):(0,Ke.createElement)(nt.RecursionProvider,{uniqueId:n},n&&a?(0,Ke.createElement)(vy,{context:e,layoutClassNames:t}):(0,Ke.createElement)(fy,{layoutClassNames:t}))}},Cy=()=>Xe({name:wy,metadata:xy,settings:Ey});function Sy(e){return/(?:^|[^\\])[aAgh]/.test(e)}const By={attributes:{textAlign:{type:"string"},format:{type:"string"},isLink:{type:"boolean",default:!1}},supports:{html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0}},save:()=>null,migrate:rn,isEligible:({style:e})=>e?.typography?.fontFamily},Ny=[By],Ty=[{name:"post-date-modified",title:(0,tt.__)("Modified Date"),description:(0,tt.__)("Display a post's last updated date."),attributes:{displayType:"modified"},scope:["block","inserter"],isActive:e=>"modified"===e.displayType,icon:Bo}],Iy=Ty,Py={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-date",title:"Date",category:"theme",description:"Display the publish date for an entry such as a post or page.",textdomain:"default",attributes:{textAlign:{type:"string"},format:{type:"string"},isLink:{type:"boolean",default:!1},displayType:{type:"string",default:"date"}},usesContext:["postId","postType","queryId"],supports:{html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:My}=Py,zy={icon:Bo,edit:function({attributes:{textAlign:e,format:t,isLink:n,displayType:a},context:{postId:o,postType:r,queryId:l},setAttributes:i}){const s=(0,nt.useBlockProps)({className:ut({[`has-text-align-${e}`]:e,"wp-block-post-date__modified-date":"modified"===a})}),[c,m]=(0,_t.useState)(null),u=(0,_t.useMemo)((()=>({anchor:c})),[c]),p=Number.isFinite(l),d=(0,No.getSettings)(),[g=d.formats.date]=(0,dt.useEntityProp)("root","site","date_format"),[h=d.formats.time]=(0,dt.useEntityProp)("root","site","time_format"),[b,_]=(0,dt.useEntityProp)("postType",r,a,o),y=(0,gt.useSelect)((e=>r?e(dt.store).getPostType(r):null),[r]),v="date"===a?(0,tt.__)("Post Date"):(0,tt.__)("Post Modified Date");let f=b?(0,Ke.createElement)("time",{dateTime:(0,No.dateI18n)("c",b),ref:m},(0,No.dateI18n)(t||g,b)):v;return n&&b&&(f=(0,Ke.createElement)("a",{href:"#post-date-pseudo-link",onClick:e=>e.preventDefault()},f)),(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(nt.AlignmentControl,{value:e,onChange:e=>{i({textAlign:e})}}),b&&"date"===a&&!p&&(0,Ke.createElement)(et.ToolbarGroup,null,(0,Ke.createElement)(et.Dropdown,{popoverProps:u,renderContent:({onClose:e})=>(0,Ke.createElement)(nt.__experimentalPublishDateTimePicker,{currentDate:b,onChange:_,is12Hour:Sy(h),onClose:e}),renderToggle:({isOpen:e,onToggle:t})=>(0,Ke.createElement)(et.ToolbarButton,{"aria-expanded":e,icon:Vi,title:(0,tt.__)("Change Date"),onClick:t,onKeyDown:n=>{e||n.keyCode!==vn.DOWN||(n.preventDefault(),t())}})}))),(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(nt.__experimentalDateFormatPicker,{format:t,defaultFormat:g,onChange:e=>i({format:e})}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:y?.labels.singular_name?(0,tt.sprintf)((0,tt.__)("Link to %s"),y.labels.singular_name.toLowerCase()):(0,tt.__)("Link to post"),onChange:()=>i({isLink:!n}),checked:n}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Display last modified date"),onChange:e=>i({displayType:e?"modified":"date"}),checked:"modified"===a,help:(0,tt.__)("Only shows if the post has been modified")}))),(0,Ke.createElement)("div",{...s},f))},deprecated:Ny,variations:Iy},Ry=()=>Xe({name:My,metadata:Py,settings:zy}),Ay=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M8.001 3.984V9.47c0 1.518-.98 2.5-2.499 2.5h-.5v-1.5h.5c.69 0 1-.31 1-1V6.984H4v-3h4.001ZM4 20h9v-1.5H4V20Zm16-4H4v-1.5h16V16ZM13.001 3.984V9.47c0 1.518-.98 2.5-2.499 2.5h-.5v-1.5h.5c.69 0 1-.31 1-1V6.984H9v-3h4.001Z"}));const Ly={from:[{type:"block",blocks:["core/post-content"],transform:()=>(0,Qe.createBlock)("core/post-excerpt")}],to:[{type:"block",blocks:["core/post-content"],transform:()=>(0,Qe.createBlock)("core/post-content")}]},Hy={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-excerpt",title:"Excerpt",category:"theme",description:"Display the excerpt.",textdomain:"default",attributes:{textAlign:{type:"string"},moreText:{type:"string"},showMoreOnNewLine:{type:"boolean",default:!0},excerptLength:{type:"number",default:55}},usesContext:["postId","postType","queryId"],supports:{html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-post-excerpt-editor",style:"wp-block-post-excerpt"},{name:Dy}=Hy,Fy={icon:Ay,transforms:Ly,edit:function({attributes:{textAlign:e,moreText:t,showMoreOnNewLine:n,excerptLength:a},setAttributes:o,isSelected:r,context:{postId:l,postType:i,queryId:s}}){const c=Number.isFinite(s),m=Ut("postType",i,l),[u,p,{rendered:d,protected:g}={}]=(0,dt.useEntityProp)("postType",i,"excerpt",l),h=(0,gt.useSelect)((e=>"page"===i||!!e(dt.store).getPostType(i)?.supports?.excerpt),[i]),b=m&&!c&&h,_=(0,nt.useBlockProps)({className:ut({[`has-text-align-${e}`]:e})}),y=(0,tt._x)("words","Word count type. Do not translate!"),v=(0,_t.useMemo)((()=>{if(!d)return"";const e=(new window.DOMParser).parseFromString(d,"text/html");return e.body.textContent||e.body.innerText||""}),[d]);if(!i||!l)return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,null,(0,Ke.createElement)(nt.AlignmentToolbar,{value:e,onChange:e=>o({textAlign:e})})),(0,Ke.createElement)("div",{..._},(0,Ke.createElement)("p",null,(0,tt.__)("This block will display the excerpt."))));if(g&&!m)return(0,Ke.createElement)("div",{..._},(0,Ke.createElement)(nt.Warning,null,(0,tt.__)("The content is currently protected and does not have the available excerpt.")));const f=(0,Ke.createElement)(nt.RichText,{identifier:"moreText",className:"wp-block-post-excerpt__more-link",tagName:"a","aria-label":(0,tt.__)("“Read more” link text"),placeholder:(0,tt.__)('Add "read more" link text'),value:t,onChange:e=>o({moreText:e}),withoutInteractiveFormatting:!0}),k=ut("wp-block-post-excerpt__excerpt",{"is-inline":!n}),x=(u||v).trim();let w="";if("words"===y)w=x.split(" ",a).join(" ");else if("characters_excluding_spaces"===y){const e=x.split("",a).join(""),t=e.length-e.replaceAll(" ","").length;w=x.split("",a+t).join("")}else"characters_including_spaces"===y&&(w=x.split("",a).join(""));const E=w!==x,C=b?(0,Ke.createElement)(nt.RichText,{className:k,"aria-label":(0,tt.__)("Excerpt text"),value:r?x:(E?w+"…":x)||(0,tt.__)("No excerpt found"),onChange:p,tagName:"p"}):(0,Ke.createElement)("p",{className:k},E?w+"…":x||(0,tt.__)("No excerpt found"));return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,null,(0,Ke.createElement)(nt.AlignmentToolbar,{value:e,onChange:e=>o({textAlign:e})})),(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show link on new line"),checked:n,onChange:e=>o({showMoreOnNewLine:e})}),(0,Ke.createElement)(et.RangeControl,{label:(0,tt.__)("Max number of words"),value:a,onChange:e=>{o({excerptLength:e})},min:"10",max:"100"}))),(0,Ke.createElement)("div",{..._},C,!n&&" ",n?(0,Ke.createElement)("p",{className:"wp-block-post-excerpt__more-text"},f):f))}},Vy=()=>Xe({name:Dy,metadata:Hy,settings:Fy}),$y=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M19 3H5c-.6 0-1 .4-1 1v7c0 .5.4 1 1 1h14c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1zM5.5 10.5v-.4l1.8-1.3 1.3.8c.3.2.7.2.9-.1L11 8.1l2.4 2.4H5.5zm13 0h-2.9l-4-4c-.3-.3-.8-.3-1.1 0L8.9 8l-1.2-.8c-.3-.2-.6-.2-.9 0l-1.3 1V4.5h13v6zM4 20h9v-1.5H4V20zm0-4h16v-1.5H4V16z"})),Gy=(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.__experimentalToggleGroupControlOption,{value:"cover",label:(0,tt._x)("Cover","Scale option for Image dimension control")}),(0,Ke.createElement)(et.__experimentalToggleGroupControlOption,{value:"contain",label:(0,tt._x)("Contain","Scale option for Image dimension control")}),(0,Ke.createElement)(et.__experimentalToggleGroupControlOption,{value:"fill",label:(0,tt._x)("Fill","Scale option for Image dimension control")})),Oy="cover",Uy={cover:(0,tt.__)("Image is scaled and cropped to fill the entire space without being distorted."),contain:(0,tt.__)("Image is scaled to fill the space without clipping nor distorting."),fill:(0,tt.__)("Image will be stretched and distorted to completely fill the space.")},qy=({clientId:e,attributes:{aspectRatio:t,width:n,height:a,scale:o,sizeSlug:r},setAttributes:l,media:i})=>{const[s,c,m,u]=(0,nt.useSettings)("spacing.units","dimensions.aspectRatios.default","dimensions.aspectRatios.theme","dimensions.defaultAspectRatios"),p=(0,et.__experimentalUseCustomUnits)({availableUnits:s||["px","%","vw","em","rem"]}),d=(0,gt.useSelect)((e=>e(nt.store).getSettings().imageSizes),[]).filter((({slug:e})=>i?.media_details?.sizes?.[e]?.source_url)).map((({name:e,slug:t})=>({value:t,label:e}))),g=(e,t)=>{const n=parseFloat(t);isNaN(n)&&t||l({[e]:n<0?"0":t})},h=(0,tt._x)("Scale","Image scaling options"),b=a||t&&"auto"!==t,_=m?.map((({name:e,ratio:t})=>({label:e,value:t}))),y=c?.map((({name:e,ratio:t})=>({label:e,value:t}))),v=[{label:(0,tt._x)("Original","Aspect ratio option for dimensions control"),value:"auto"},...u?y:[],..._||[]];return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.__experimentalToolsPanelItem,{hasValue:()=>!!t,label:(0,tt.__)("Aspect ratio"),onDeselect:()=>l({aspectRatio:void 0}),resetAllFilter:()=>({aspectRatio:void 0}),isShownByDefault:!0,panelId:e},(0,Ke.createElement)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Aspect ratio"),value:t,options:v,onChange:e=>l({aspectRatio:e})})),(0,Ke.createElement)(et.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>!!a,label:(0,tt.__)("Height"),onDeselect:()=>l({height:void 0}),resetAllFilter:()=>({height:void 0}),isShownByDefault:!0,panelId:e},(0,Ke.createElement)(et.__experimentalUnitControl,{label:(0,tt.__)("Height"),labelPosition:"top",value:a||"",min:0,onChange:e=>g("height",e),units:p})),(0,Ke.createElement)(et.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>!!n,label:(0,tt.__)("Width"),onDeselect:()=>l({width:void 0}),resetAllFilter:()=>({width:void 0}),isShownByDefault:!0,panelId:e},(0,Ke.createElement)(et.__experimentalUnitControl,{label:(0,tt.__)("Width"),labelPosition:"top",value:n||"",min:0,onChange:e=>g("width",e),units:p})),b&&(0,Ke.createElement)(et.__experimentalToolsPanelItem,{hasValue:()=>!!o&&o!==Oy,label:h,onDeselect:()=>l({scale:Oy}),resetAllFilter:()=>({scale:Oy}),isShownByDefault:!0,panelId:e},(0,Ke.createElement)(et.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:h,value:o,help:Uy[o],onChange:e=>l({scale:e}),isBlock:!0},Gy)),!!d.length&&(0,Ke.createElement)(et.__experimentalToolsPanelItem,{hasValue:()=>!!r,label:(0,tt.__)("Resolution"),onDeselect:()=>l({sizeSlug:void 0}),resetAllFilter:()=>({sizeSlug:void 0}),isShownByDefault:!1,panelId:e},(0,Ke.createElement)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Resolution"),value:r||"full",options:d,onChange:e=>l({sizeSlug:e}),help:(0,tt.__)("Select the size of the source image.")})))},jy=(0,jt.compose)([(0,nt.withColors)({overlayColor:"background-color"})])((({clientId:e,attributes:t,setAttributes:n,overlayColor:a,setOverlayColor:o})=>{const{dimRatio:r}=t,{gradientValue:l,setGradient:i}=(0,nt.__experimentalUseGradient)(),s=(0,nt.__experimentalUseMultipleOriginColorsAndGradients)();return s.hasColorsOrGradients?(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:a.color,gradientValue:l,label:(0,tt.__)("Overlay"),onColorChange:o,onGradientChange:i,isShownByDefault:!0,resetAllFilter:()=>({overlayColor:void 0,customOverlayColor:void 0,gradient:void 0,customGradient:void 0})}],panelId:e,...s}),(0,Ke.createElement)(et.__experimentalToolsPanelItem,{hasValue:()=>void 0!==r,label:(0,tt.__)("Overlay opacity"),onDeselect:()=>n({dimRatio:0}),resetAllFilter:()=>({dimRatio:0}),isShownByDefault:!0,panelId:e},(0,Ke.createElement)(et.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Overlay opacity"),value:r,onChange:e=>n({dimRatio:e}),min:0,max:100,step:10,required:!0,__next40pxDefaultSize:!0}))):null}));const Wy=(0,jt.compose)([(0,nt.withColors)({overlayColor:"background-color"})])((({attributes:e,overlayColor:t})=>{const{dimRatio:n}=e,{gradientClass:a,gradientValue:o}=(0,nt.__experimentalUseGradient)(),r=(0,nt.__experimentalUseMultipleOriginColorsAndGradients)(),l=(0,nt.__experimentalUseBorderProps)(e),i={backgroundColor:t.color,backgroundImage:o,...l.style};return r.hasColorsOrGradients&&n?(0,Ke.createElement)("span",{"aria-hidden":"true",className:ut("wp-block-post-featured-image__overlay",(s=n,void 0===s?null:"has-background-dim-"+10*Math.round(s/10)),{[t.class]:t.class,"has-background-dim":void 0!==n,"has-background-gradient":o,[a]:a},l.className),style:i}):null;var s})),Zy=["image"];const Qy={onClick:e=>e.preventDefault(),"aria-disabled":!0};const Ky={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-featured-image",title:"Featured Image",category:"theme",description:"Display a post's featured image.",textdomain:"default",attributes:{isLink:{type:"boolean",default:!1},aspectRatio:{type:"string"},width:{type:"string"},height:{type:"string"},scale:{type:"string",default:"cover"},sizeSlug:{type:"string"},rel:{type:"string",attribute:"rel",default:""},linkTarget:{type:"string",default:"_self"},overlayColor:{type:"string"},customOverlayColor:{type:"string"},dimRatio:{type:"number",default:0},gradient:{type:"string"},customGradient:{type:"string"},useFirstImageFromPost:{type:"boolean",default:!1}},usesContext:["postId","postType","queryId"],supports:{align:["left","right","center","wide","full"],color:{text:!1,background:!1},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}},filter:{duotone:!0},shadow:{__experimentalSkipSerialization:!0},html:!1,spacing:{margin:!0,padding:!0},interactivity:{clientNavigation:!0}},selectors:{border:".wp-block-post-featured-image img, .wp-block-post-featured-image .block-editor-media-placeholder, .wp-block-post-featured-image .wp-block-post-featured-image__overlay",shadow:".wp-block-post-featured-image img, .wp-block-post-featured-image .components-placeholder",filter:{duotone:".wp-block-post-featured-image img, .wp-block-post-featured-image .wp-block-post-featured-image__placeholder, .wp-block-post-featured-image .components-placeholder__illustration, .wp-block-post-featured-image .components-placeholder::before"}},editorStyle:"wp-block-post-featured-image-editor",style:"wp-block-post-featured-image"},{name:Yy}=Ky,Jy={icon:$y,edit:function({clientId:e,attributes:t,setAttributes:n,context:{postId:a,postType:o,queryId:r}}){const l=Number.isFinite(r),{isLink:i,aspectRatio:s,height:c,width:m,scale:u,sizeSlug:p,rel:d,linkTarget:g,useFirstImageFromPost:h}=t,[b,_]=(0,_t.useState)(),[y,v]=(0,dt.useEntityProp)("postType",o,"featured_media",a),[f]=(0,dt.useEntityProp)("postType",o,"content",a),k=(0,_t.useMemo)((()=>{if(y)return y;if(!h)return;const e=/<!--\s+wp:(?:core\/)?image\s+(?<attrs>{(?:(?:[^}]+|}+(?=})|(?!}\s+\/?-->).)*)?}\s+)?-->/.exec(f);return e?.groups?.attrs&&JSON.parse(e.groups.attrs)?.id}),[y,h,f]),{media:x,postType:w,postPermalink:E}=(0,gt.useSelect)((e=>{const{getMedia:t,getPostType:n,getEditedEntityRecord:r}=e(dt.store);return{media:k&&t(k,{context:"view"}),postType:o&&n(o),postPermalink:r("postType",o,a)?.link}}),[k,o,a]),C=function(e,t){return e?.media_details?.sizes?.[t]?.source_url||e?.source_url}(x,p),S=(0,nt.useBlockProps)({style:{width:m,height:c,aspectRatio:s},className:ut({"is-transient":b})}),B=(0,nt.__experimentalUseBorderProps)(t),N=(0,nt.__experimentalGetShadowClassesAndStyles)(t),T=(0,nt.useBlockEditingMode)(),I=e=>(0,Ke.createElement)(et.Placeholder,{className:ut("block-editor-media-placeholder",B.className),withIllustration:!0,style:{height:!!s&&"100%",width:!!s&&"100%",...B.style,...N.style}},e),P=e=>{e?.id&&v(e.id),e?.url&&(0,It.isBlobURL)(e.url)&&_(e.url)};(0,_t.useEffect)((()=>{C&&b&&_()}),[C,b]);const{createErrorNotice:M}=(0,gt.useDispatch)(Pt.store),z=e=>{M(e,{type:"snackbar"}),_()},R="default"===T&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.InspectorControls,{group:"color"},(0,Ke.createElement)(jy,{attributes:t,setAttributes:n,clientId:e})),(0,Ke.createElement)(nt.InspectorControls,{group:"dimensions"},(0,Ke.createElement)(qy,{clientId:e,attributes:t,setAttributes:n,media:x})),(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:w?.labels.singular_name?(0,tt.sprintf)((0,tt.__)("Link to %s"),w.labels.singular_name):(0,tt.__)("Link to post"),onChange:()=>n({isLink:!i}),checked:i}),i&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Open in new tab"),onChange:e=>n({linkTarget:e?"_blank":"_self"}),checked:"_blank"===g}),(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Link rel"),value:d,onChange:e=>n({rel:e})})))));let A;if(!k&&(l||!a))return(0,Ke.createElement)(Ke.Fragment,null,R,(0,Ke.createElement)("div",{...S},i?(0,Ke.createElement)("a",{href:E,target:g,...Qy},I()):I(),(0,Ke.createElement)(Wy,{attributes:t,setAttributes:n,clientId:e})));const L=(0,tt.__)("Add a featured image"),H={...B.style,...N.style,height:s?"100%":c,width:!!s&&"100%",objectFit:!(!c&&!s)&&u};return A=k||b?x||b?(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)("img",{className:B.className,src:b||C,alt:x&&x?.alt_text?(0,tt.sprintf)((0,tt.__)("Featured image: %s"),x.alt_text):(0,tt.__)("Featured image"),style:H}),b&&(0,Ke.createElement)(et.Spinner,null)):I():(0,Ke.createElement)(nt.MediaPlaceholder,{onSelect:P,accept:"image/*",allowedTypes:Zy,onError:z,placeholder:I,mediaLibraryButton:({open:e})=>(0,Ke.createElement)(et.Button,{icon:lp,variant:"primary",label:L,showTooltip:!0,tooltipPosition:"top center",onClick:()=>{e()}})}),(0,Ke.createElement)(Ke.Fragment,null,!b&&R,!!x&&!l&&(0,Ke.createElement)(nt.BlockControls,{group:"other"},(0,Ke.createElement)(nt.MediaReplaceFlow,{mediaId:k,mediaURL:C,allowedTypes:Zy,accept:"image/*",onSelect:P,onError:z},(0,Ke.createElement)(et.MenuItem,{onClick:()=>v(0)},(0,tt.__)("Reset")))),(0,Ke.createElement)("figure",{...S},i?(0,Ke.createElement)("a",{href:E,target:g,...Qy},A):A,(0,Ke.createElement)(Wy,{attributes:t,setAttributes:n,clientId:e})))}},Xy=()=>Xe({name:Yy,metadata:Ky,settings:Jy});const ev=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"})),tv=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M11.6 7l-1.1-1L5 12l5.5 6 1.1-1L7 12l4.6-5zm6 0l-1.1-1-5.5 6 5.5 6 1.1-1-4.6-5 4.6-5z"})),nv=[{isDefault:!0,name:"post-next",title:(0,tt.__)("Next post"),description:(0,tt.__)("Displays the post link that follows the current post."),icon:ev,attributes:{type:"next"},scope:["inserter","transform"]},{name:"post-previous",title:(0,tt.__)("Previous post"),description:(0,tt.__)("Displays the post link that precedes the current post."),icon:tv,attributes:{type:"previous"},scope:["inserter","transform"]}];nv.forEach((e=>{e.isActive||(e.isActive=(e,t)=>e.type===t.type)}));const av=nv,ov={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-navigation-link",title:"Post Navigation Link",category:"theme",description:"Displays the next or previous post link that is adjacent to the current post.",textdomain:"default",attributes:{textAlign:{type:"string"},type:{type:"string",default:"next"},label:{type:"string"},showTitle:{type:"boolean",default:!1},linkLabel:{type:"boolean",default:!1},arrow:{type:"string",default:"none"},taxonomy:{type:"string",default:""}},usesContext:["postType"],supports:{reusable:!1,html:!1,color:{link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-post-navigation-link"},{name:rv}=ov,lv={edit:function({context:{postType:e},attributes:{type:t,label:n,showTitle:a,textAlign:o,linkLabel:r,arrow:l,taxonomy:i},setAttributes:s}){const c="next"===t;let m=c?(0,tt.__)("Next"):(0,tt.__)("Previous");const u={none:"",arrow:c?"→":"←",chevron:c?"»":"«"}[l];a&&(m=c?(0,tt.__)("Next: "):(0,tt.__)("Previous: "));const p=c?(0,tt.__)("Next post"):(0,tt.__)("Previous post"),d=(0,nt.useBlockProps)({className:ut({[`has-text-align-${o}`]:o})}),g=(0,gt.useSelect)((t=>{const{getTaxonomies:n}=t(dt.store);return n({type:e,per_page:-1})}),[e]);return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,null,(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Display the title as a link"),help:(0,tt.__)("If you have entered a custom label, it will be prepended before the title."),checked:!!a,onChange:()=>s({showTitle:!a})}),a&&(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Include the label as part of the link"),checked:!!r,onChange:()=>s({linkLabel:!r})}),(0,Ke.createElement)(et.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Arrow"),value:l,onChange:e=>{s({arrow:e})},help:(0,tt.__)("A decorative arrow for the next and previous link."),isBlock:!0},(0,Ke.createElement)(et.__experimentalToggleGroupControlOption,{value:"none",label:(0,tt._x)("None","Arrow option for Next/Previous link")}),(0,Ke.createElement)(et.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,tt._x)("Arrow","Arrow option for Next/Previous link")}),(0,Ke.createElement)(et.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,tt._x)("Chevron","Arrow option for Next/Previous link")})))),(0,Ke.createElement)(nt.InspectorControls,{group:"advanced"},(0,Ke.createElement)(et.SelectControl,{label:(0,tt.__)("Filter by taxonomy"),value:i,options:[{label:(0,tt.__)("Unfiltered"),value:""},...(null!=g?g:[]).filter((({visibility:e})=>!!e?.publicly_queryable)).map((e=>({value:e.slug,label:e.name})))],onChange:e=>s({taxonomy:e}),help:(0,tt.__)("Only link to posts that have the same taxonomy terms as the current post. For example the same tags or categories.")})),(0,Ke.createElement)(nt.BlockControls,null,(0,Ke.createElement)(nt.AlignmentToolbar,{value:o,onChange:e=>{s({textAlign:e})}})),(0,Ke.createElement)("div",{...d},!c&&u&&(0,Ke.createElement)("span",{className:`wp-block-post-navigation-link__arrow-previous is-arrow-${l}`},u),(0,Ke.createElement)(nt.RichText,{tagName:"a",identifier:"label","aria-label":p,placeholder:m,value:n,allowedFormats:["core/bold","core/italic"],onChange:e=>s({label:e})}),a&&(0,Ke.createElement)("a",{href:"#post-navigation-pseudo-link",onClick:e=>e.preventDefault()},(0,tt.__)("An example title")),c&&u&&(0,Ke.createElement)("span",{className:`wp-block-post-navigation-link__arrow-next is-arrow-${l}`,"aria-hidden":!0},u)))},variations:av},iv=()=>Xe({name:rv,metadata:ov,settings:lv}),sv=[["core/post-title"],["core/post-date"],["core/post-excerpt"]];function cv({classList:e}){const t=(0,nt.useInnerBlocksProps)({className:ut("wp-block-post",e)},{template:sv,__unstableDisableLayoutClassNames:!0});return(0,Ke.createElement)("li",{...t})}const mv=(0,_t.memo)((function({blocks:e,blockContextId:t,classList:n,isHidden:a,setActiveBlockContextId:o}){const r=(0,nt.__experimentalUseBlockPreview)({blocks:e,props:{className:ut("wp-block-post",n)}}),l=()=>{o(t)},i={display:a?"none":void 0};return(0,Ke.createElement)("li",{...r,tabIndex:0,role:"button",onClick:l,onKeyPress:l,style:i})}));const uv={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-template",title:"Post Template",category:"theme",parent:["core/query"],description:"Contains the block elements used to render a post, like the title, date, featured image, content or excerpt, and more.",textdomain:"default",usesContext:["queryId","query","displayLayout","templateSlug","previewPostType","enhancedPagination"],supports:{reusable:!1,html:!1,align:["wide","full"],layout:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{blockGap:{__experimentalDefault:"1.25em"},__experimentalDefaultControls:{blockGap:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-post-template",editorStyle:"wp-block-post-template-editor"},{name:pv}=uv,dv={icon:jo,edit:function({setAttributes:e,clientId:t,context:{query:{perPage:n,offset:a=0,postType:o,order:r,orderBy:l,author:i,search:s,exclude:c,sticky:m,inherit:u,taxQuery:p,parents:d,pages:g,...h}={},templateSlug:b,previewPostType:_},attributes:{layout:y},__unstableLayoutClassNames:v}){const{type:f,columnCount:k=3}=y||{},[x,w]=(0,_t.useState)(),{posts:E,blocks:C}=(0,gt.useSelect)((e=>{const{getEntityRecords:g,getTaxonomies:y}=e(dt.store),{getBlocks:v}=e(nt.store),f=u&&b?.startsWith("category-")&&g("taxonomy","category",{context:"view",per_page:1,_fields:["id"],slug:b.replace("category-","")}),k={offset:a||0,order:r,orderby:l};if(p&&!u){const e=y({type:o,per_page:-1,context:"view"}),t=Object.entries(p).reduce(((t,[n,a])=>{const o=e?.find((({slug:e})=>e===n));return o?.rest_base&&(t[o?.rest_base]=a),t}),{});Object.keys(t).length&&Object.assign(k,t)}n&&(k.per_page=n),i&&(k.author=i),s&&(k.search=s),c?.length&&(k.exclude=c),d?.length&&(k.parent=d),m&&(k.sticky="only"===m),u&&(b?.startsWith("archive-")?(k.postType=b.replace("archive-",""),o=k.postType):f&&(k.categories=f[0]?.id));return{posts:g("postType",_||o,{...k,...h}),blocks:v(t)}}),[n,a,r,l,t,i,s,o,c,m,u,b,p,d,h,_]),S=(0,_t.useMemo)((()=>E?.map((e=>{var t;return{postType:e.type,postId:e.id,classList:null!==(t=e.class_list)&&void 0!==t?t:""}}))),[E]),B=(0,nt.useBlockProps)({className:ut(v,{[`columns-${k}`]:"grid"===f&&k})});if(!E)return(0,Ke.createElement)("p",{...B},(0,Ke.createElement)(et.Spinner,null));if(!E.length)return(0,Ke.createElement)("p",{...B}," ",(0,tt.__)("No results found."));const N=t=>e({layout:{...y,...t}}),T=[{icon:Mp,title:(0,tt._x)("List view","Post template block display setting"),onClick:()=>N({type:"default"}),isActive:"default"===f||"constrained"===f},{icon:au,title:(0,tt._x)("Grid view","Post template block display setting"),onClick:()=>N({type:"grid",columnCount:k}),isActive:"grid"===f}];return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,null,(0,Ke.createElement)(et.ToolbarGroup,{controls:T})),(0,Ke.createElement)("ul",{...B},S&&S.map((e=>(0,Ke.createElement)(nt.BlockContextProvider,{key:e.postId,value:e},e.postId===(x||S[0]?.postId)?(0,Ke.createElement)(cv,{classList:e.classList}):null,(0,Ke.createElement)(mv,{blocks:C,blockContextId:e.postId,classList:e.classList,setActiveBlockContextId:w,isHidden:e.postId===(x||S[0]?.postId)}))))))},save:function(){return(0,Ke.createElement)(nt.InnerBlocks.Content,null)}},gv=()=>Xe({name:pv,metadata:uv,settings:dv}),hv=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M20 4H4v1.5h16V4zm-2 9h-3c-1.1 0-2 .9-2 2v3c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2zm.5 5c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5v-3c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3zM4 9.5h9V8H4v1.5zM9 13H6c-1.1 0-2 .9-2 2v3c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2zm.5 5c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-3c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3z",fillRule:"evenodd",clipRule:"evenodd"})),bv=[];const _v=["core/bold","core/image","core/italic","core/link","core/strikethrough","core/text-color"];const yv=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M8.1 12.3c.1.1.3.3.5.3.2.1.4.1.6.1.2 0 .4 0 .6-.1.2-.1.4-.2.5-.3l3-3c.3-.3.5-.7.5-1.1 0-.4-.2-.8-.5-1.1L9.7 3.5c-.1-.2-.3-.3-.5-.3H5c-.4 0-.8.4-.8.8v4.2c0 .2.1.4.2.5l3.7 3.6zM5.8 4.8h3.1l3.4 3.4v.1l-3 3 .5.5-.7-.5-3.3-3.4V4.8zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"})),vv={category:hv,post_tag:yv};function fv(e,t){if("core/post-terms"!==t)return e;const n=e.variations.map((e=>{var t;return{...e,icon:null!==(t=vv[e.name])&&void 0!==t?t:hv}}));return{...e,variations:n}}const kv={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-terms",title:"Post Terms",category:"theme",description:"Post terms.",textdomain:"default",attributes:{term:{type:"string"},textAlign:{type:"string"},separator:{type:"string",default:", "},prefix:{type:"string",default:""},suffix:{type:"string",default:""}},usesContext:["postId","postType"],supports:{html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-post-terms"},{name:xv}=kv,wv={icon:hv,edit:function({attributes:e,clientId:t,context:n,isSelected:a,setAttributes:o,insertBlocksAfter:r}){const{term:l,textAlign:i,separator:s,prefix:c,suffix:m}=e,{postId:u,postType:p}=n,d=(0,gt.useSelect)((e=>{if(!l)return{};const{getTaxonomy:t}=e(dt.store),n=t(l);return n?.visibility?.publicly_queryable?n:{}}),[l]),{postTerms:g,hasPostTerms:h,isLoading:b}=function({postId:e,term:t}){const{slug:n}=t;return(0,gt.useSelect)((a=>{const o=t?.visibility?.publicly_queryable;if(!o)return{postTerms:bv,isLoading:!1,hasPostTerms:!1};const{getEntityRecords:r,isResolving:l}=a(dt.store),i=["taxonomy",n,{post:e,per_page:-1,context:"view"}],s=r(...i);return{postTerms:s,isLoading:l("getEntityRecords",i),hasPostTerms:!!s?.length}}),[e,t?.visibility?.publicly_queryable,n])}({postId:u,term:d}),_=u&&p,y=(0,nt.useBlockDisplayInformation)(t),v=(0,nt.useBlockProps)({className:ut({[`has-text-align-${i}`]:i,[`taxonomy-${l}`]:l})});return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,null,(0,Ke.createElement)(nt.AlignmentToolbar,{value:i,onChange:e=>{o({textAlign:e})}})),(0,Ke.createElement)(nt.InspectorControls,{group:"advanced"},(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,autoComplete:"off",label:(0,tt.__)("Separator"),value:s||"",onChange:e=>{o({separator:e})},help:(0,tt.__)("Enter character(s) used to separate terms.")})),(0,Ke.createElement)("div",{...v},b&&_&&(0,Ke.createElement)(et.Spinner,null),!b&&(a||c)&&(0,Ke.createElement)(nt.RichText,{identifier:"prefix",allowedFormats:_v,className:"wp-block-post-terms__prefix","aria-label":(0,tt.__)("Prefix"),placeholder:(0,tt.__)("Prefix")+" ",value:c,onChange:e=>o({prefix:e}),tagName:"span"}),(!_||!l)&&(0,Ke.createElement)("span",null,y.title),_&&!b&&h&&g.map((e=>(0,Ke.createElement)("a",{key:e.id,href:e.link,onClick:e=>e.preventDefault()},(0,Yn.decodeEntities)(e.name)))).reduce(((e,t)=>(0,Ke.createElement)(Ke.Fragment,null,e,(0,Ke.createElement)("span",{className:"wp-block-post-terms__separator"},s||" "),t))),_&&!b&&!h&&(d?.labels?.no_terms||(0,tt.__)("Term items not found.")),!b&&(a||m)&&(0,Ke.createElement)(nt.RichText,{identifier:"suffix",allowedFormats:_v,className:"wp-block-post-terms__suffix","aria-label":(0,tt.__)("Suffix"),placeholder:" "+(0,tt.__)("Suffix"),value:m,onChange:e=>o({suffix:e}),tagName:"span",__unstableOnSplitAtEnd:()=>r((0,Qe.createBlock)((0,Qe.getDefaultBlockName)()))})))}},Ev=()=>((0,vi.addFilter)("blocks.registerBlockType","core/template-part",fv),Xe({name:xv,metadata:kv,settings:wv})),Cv=window.wp.wordcount;const Sv=function({attributes:e,setAttributes:t,context:n}){const{textAlign:a}=e,{postId:o,postType:r}=n,[l]=(0,dt.useEntityProp)("postType",r,"content",o),[i]=(0,dt.useEntityBlockEditor)("postType",r,{id:o}),s=(0,_t.useMemo)((()=>{let e;e=l instanceof Function?l({blocks:i}):i?(0,Qe.__unstableSerializeAndClean)(i):l;const t=(0,tt._x)("words","Word count type. Do not translate!"),n=Math.max(1,Math.round((0,Cv.count)(e||"",t)/189));return(0,tt.sprintf)((0,tt._n)("%d minute","%d minutes",n),n)}),[l,i]),c=(0,nt.useBlockProps)({className:ut({[`has-text-align-${a}`]:a})});return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(nt.AlignmentControl,{value:a,onChange:e=>{t({textAlign:e})}})),(0,Ke.createElement)("div",{...c},s))},Bv=(0,Ke.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,Ke.createElement)(et.Path,{d:"M12 3c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16.5c-4.1 0-7.5-3.4-7.5-7.5S7.9 4.5 12 4.5s7.5 3.4 7.5 7.5-3.4 7.5-7.5 7.5zM12 7l-1 5c0 .3.2.6.4.8l4.2 2.8-2.7-4.1L12 7z"})),Nv={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/post-time-to-read",title:"Time To Read",category:"theme",description:"Show minutes required to finish reading the post.",textdomain:"default",usesContext:["postId","postType"],attributes:{textAlign:{type:"string"}},supports:{color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},html:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:Tv}=Nv,Iv={icon:Bv,edit:Sv},Pv=()=>Xe({name:Tv,metadata:Nv,settings:Iv});const Mv={attributes:{textAlign:{type:"string"},level:{type:"number",default:2},isLink:{type:"boolean",default:!1},rel:{type:"string",attribute:"rel",default:""},linkTarget:{type:"string",default:"_self"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0},spacing:{margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0}},save:()=>null,migrate:rn,isEligible:({style:e})=>e?.typography?.fontFamily},zv=[Mv],Rv={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-title",title:"Title",category:"theme",description:"Displays the title of a post, page, or any other content-type.",textdomain:"default",usesContext:["postId","postType","queryId"],attributes:{textAlign:{type:"string"},level:{type:"number",default:2},isLink:{type:"boolean",default:!1},rel:{type:"string",attribute:"rel",default:""},linkTarget:{type:"string",default:"_self"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-post-title"},{name:Av}=Rv,Lv={icon:Tr,edit:function({attributes:{level:e,textAlign:t,isLink:n,rel:a,linkTarget:o},setAttributes:r,context:{postType:l,postId:i,queryId:s},insertBlocksAfter:c}){const m=0===e?"p":`h${e}`,u=Number.isFinite(s),p=(0,gt.useSelect)((e=>!u&&e(dt.store).canUserEditEntityRecord("postType",l,i)),[u,l,i]),[d="",g,h]=(0,dt.useEntityProp)("postType",l,"title",i),[b]=(0,dt.useEntityProp)("postType",l,"link",i),_=()=>{c((0,Qe.createBlock)((0,Qe.getDefaultBlockName)()))},y=(0,nt.useBlockProps)({className:ut({[`has-text-align-${t}`]:t})}),v=(0,nt.useBlockEditingMode)();let f=(0,Ke.createElement)(m,{...y},(0,tt.__)("Title"));return l&&i&&(f=p?(0,Ke.createElement)(nt.PlainText,{tagName:m,placeholder:(0,tt.__)("No Title"),value:d,onChange:g,__experimentalVersion:2,__unstableOnSplitAtEnd:_,...y}):(0,Ke.createElement)(m,{...y,dangerouslySetInnerHTML:{__html:h?.rendered}})),n&&l&&i&&(f=p?(0,Ke.createElement)(m,{...y},(0,Ke.createElement)(nt.PlainText,{tagName:"a",href:b,target:o,rel:a,placeholder:d.length?null:(0,tt.__)("No Title"),value:d,onChange:g,__experimentalVersion:2,__unstableOnSplitAtEnd:_})):(0,Ke.createElement)(m,{...y},(0,Ke.createElement)("a",{href:b,target:o,rel:a,onClick:e=>e.preventDefault(),dangerouslySetInnerHTML:{__html:h?.rendered}}))),(0,Ke.createElement)(Ke.Fragment,null,"default"===v&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(nt.HeadingLevelDropdown,{value:e,onChange:e=>r({level:e})}),(0,Ke.createElement)(nt.AlignmentControl,{value:t,onChange:e=>{r({textAlign:e})}})),(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Make title a link"),onChange:()=>r({isLink:!n}),checked:n}),n&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Open in new tab"),onChange:e=>r({linkTarget:e?"_blank":"_self"}),checked:"_blank"===o}),(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Link rel"),value:a,onChange:e=>r({rel:e})}))))),f)},deprecated:zv},Hv=()=>Xe({name:Av,metadata:Rv,settings:Lv}),Dv=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 16.5h6V15H7v1.5zm4-4h6V11h-6v1.5zM9 11H7v1.5h2V11zm6 5.5h2V15h-2v1.5z"}));const Fv={from:[{type:"block",blocks:["core/code","core/paragraph"],transform:({content:e,anchor:t})=>(0,Qe.createBlock)("core/preformatted",{content:e,anchor:t})},{type:"raw",isMatch:e=>"PRE"===e.nodeName&&!(1===e.children.length&&"CODE"===e.firstChild.nodeName),schema:({phrasingContentSchema:e})=>({pre:{children:e}})}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,Qe.createBlock)("core/paragraph",e)},{type:"block",blocks:["core/code"],transform:e=>(0,Qe.createBlock)("core/code",e)}]},Vv=Fv,$v={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/preformatted",title:"Preformatted",category:"text",description:"Add text that respects your spacing and tabs, and also allows styling.",textdomain:"default",attributes:{content:{type:"rich-text",source:"rich-text",selector:"pre",__unstablePreserveWhiteSpace:!0,__experimentalRole:"content"}},supports:{anchor:!0,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{padding:!0,margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-preformatted"},{name:Gv}=$v,Ov={icon:Dv,example:{attributes:{content:(0,tt.__)("EXT. XANADU - FAINT DAWN - 1940 (MINIATURE)\nWindow, very small in the distance, illuminated.\nAll around this is an almost totally black screen. Now, as the camera moves slowly towards the window which is almost a postage stamp in the frame, other forms appear;")}},transforms:Vv,edit:function({attributes:e,mergeBlocks:t,setAttributes:n,onRemove:a,insertBlocksAfter:o,style:r}){const{content:l}=e,i=(0,nt.useBlockProps)({style:r});return(0,Ke.createElement)(nt.RichText,{tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:l,onChange:e=>{n({content:e})},onRemove:a,"aria-label":(0,tt.__)("Preformatted text"),placeholder:(0,tt.__)("Write preformatted text…"),onMerge:t,...i,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:()=>o((0,Qe.createBlock)((0,Qe.getDefaultBlockName)()))})},save:function({attributes:e}){const{content:t}=e;return(0,Ke.createElement)("pre",{...nt.useBlockProps.save()},(0,Ke.createElement)(nt.RichText.Content,{value:t}))},merge:(e,t)=>({content:e.content+"\n\n"+t.content})},Uv=()=>Xe({name:Gv,metadata:$v,settings:Ov}),qv=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M18 8H6c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v4zM4 4v1.5h16V4H4zm0 16h16v-1.5H4V20z"})),jv="is-style-solid-color",Wv={value:{type:"string",source:"html",selector:"blockquote",multiline:"p"},citation:{type:"string",source:"html",selector:"cite",default:""},mainColor:{type:"string"},customMainColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}};function Zv(e){if(!e)return;const t=e.match(/border-color:([^;]+)[;]?/);return t&&t[1]?t[1]:void 0}function Qv(e){const t=`</p>${e=e||"<p></p>"}<p>`.split("</p><p>");return t.shift(),t.pop(),t.join("<br>")}const Kv={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",__experimentalRole:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",__experimentalRole:"content"},textAlign:{type:"string"}},save({attributes:e}){const{textAlign:t,citation:n,value:a}=e,o=!nt.RichText.isEmpty(n);return(0,Ke.createElement)("figure",{...nt.useBlockProps.save({className:ut({[`has-text-align-${t}`]:t})})},(0,Ke.createElement)("blockquote",null,(0,Ke.createElement)(nt.RichText.Content,{value:a,multiline:!0}),o&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"cite",value:n})))},migrate:({value:e,...t})=>({value:Qv(e),...t})},Yv={attributes:{...Wv},save({attributes:e}){const{mainColor:t,customMainColor:n,customTextColor:a,textColor:o,value:r,citation:l,className:i}=e,s=i?.includes(jv);let c,m;if(s){const e=(0,nt.getColorClassName)("background-color",t);c=ut({"has-background":e||n,[e]:e}),m={backgroundColor:e?void 0:n}}else n&&(m={borderColor:n});const u=(0,nt.getColorClassName)("color",o),p=ut({"has-text-color":o||a,[u]:u}),d=u?void 0:{color:a};return(0,Ke.createElement)("figure",{...nt.useBlockProps.save({className:c,style:m})},(0,Ke.createElement)("blockquote",{className:p,style:d},(0,Ke.createElement)(nt.RichText.Content,{value:r,multiline:!0}),!nt.RichText.isEmpty(l)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"cite",value:l})))},migrate({value:e,className:t,mainColor:n,customMainColor:a,customTextColor:o,...r}){const l=t?.includes(jv);let i;return a&&(i=l?{color:{background:a}}:{border:{color:a}}),o&&i&&(i.color={...i.color,text:o}),{value:Qv(e),className:t,backgroundColor:l?n:void 0,borderColor:l?void 0:n,textAlign:l?"left":void 0,style:i,...r}}},Jv={attributes:{...Wv,figureStyle:{source:"attribute",selector:"figure",attribute:"style"}},save({attributes:e}){const{mainColor:t,customMainColor:n,textColor:a,customTextColor:o,value:r,citation:l,className:i,figureStyle:s}=e,c=i?.includes(jv);let m,u;if(c){const e=(0,nt.getColorClassName)("background-color",t);m=ut({"has-background":e||n,[e]:e}),u={backgroundColor:e?void 0:n}}else if(n)u={borderColor:n};else if(t){u={borderColor:Zv(s)}}const p=(0,nt.getColorClassName)("color",a),d=(a||o)&&ut("has-text-color",{[p]:p}),g=p?void 0:{color:o};return(0,Ke.createElement)("figure",{className:m,style:u},(0,Ke.createElement)("blockquote",{className:d,style:g},(0,Ke.createElement)(nt.RichText.Content,{value:r,multiline:!0}),!nt.RichText.isEmpty(l)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"cite",value:l})))},migrate({value:e,className:t,figureStyle:n,mainColor:a,customMainColor:o,customTextColor:r,...l}){const i=t?.includes(jv);let s;if(o&&(s=i?{color:{background:o}}:{border:{color:o}}),r&&s&&(s.color={...s.color,text:r}),!i&&a&&n){const a=Zv(n);if(a)return{value:Qv(e),...l,className:t,style:{border:{color:a}}}}return{value:Qv(e),className:t,backgroundColor:i?a:void 0,borderColor:i?void 0:a,textAlign:i?"left":void 0,style:s,...l}}},Xv={attributes:Wv,save({attributes:e}){const{mainColor:t,customMainColor:n,textColor:a,customTextColor:o,value:r,citation:l,className:i}=e,s=i?.includes(jv);let c,m;if(s)c=(0,nt.getColorClassName)("background-color",t),c||(m={backgroundColor:n});else if(n)m={borderColor:n};else if(t){var u;const e=null!==(u=(0,gt.select)(nt.store).getSettings().colors)&&void 0!==u?u:[];m={borderColor:(0,nt.getColorObjectByAttributeValues)(e,t).color}}const p=(0,nt.getColorClassName)("color",a),d=a||o?ut("has-text-color",{[p]:p}):void 0,g=p?void 0:{color:o};return(0,Ke.createElement)("figure",{className:c,style:m},(0,Ke.createElement)("blockquote",{className:d,style:g},(0,Ke.createElement)(nt.RichText.Content,{value:r,multiline:!0}),!nt.RichText.isEmpty(l)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"cite",value:l})))},migrate({value:e,className:t,mainColor:n,customMainColor:a,customTextColor:o,...r}){const l=t?.includes(jv);let i={};return a&&(i=l?{color:{background:a}}:{border:{color:a}}),o&&i&&(i.color={...i.color,text:o}),{value:Qv(e),className:t,backgroundColor:l?n:void 0,borderColor:l?void 0:n,textAlign:l?"left":void 0,style:i,...r}}},ef={attributes:{...Wv},save({attributes:e}){const{value:t,citation:n}=e;return(0,Ke.createElement)("blockquote",null,(0,Ke.createElement)(nt.RichText.Content,{value:t,multiline:!0}),!nt.RichText.isEmpty(n)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"cite",value:n}))},migrate:({value:e,...t})=>({value:Qv(e),...t})},tf={attributes:{...Wv,citation:{type:"string",source:"html",selector:"footer"},align:{type:"string",default:"none"}},save({attributes:e}){const{value:t,citation:n,align:a}=e;return(0,Ke.createElement)("blockquote",{className:`align${a}`},(0,Ke.createElement)(nt.RichText.Content,{value:t,multiline:!0}),!nt.RichText.isEmpty(n)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"footer",value:n}))},migrate:({value:e,...t})=>({value:Qv(e),...t})},nf=[Kv,Yv,Jv,Xv,ef,tf],af="web"===_t.Platform.OS;const of=function({attributes:e,setAttributes:t,isSelected:n,insertBlocksAfter:a}){const{textAlign:o,citation:r,value:l}=e,i=(0,nt.useBlockProps)({className:ut({[`has-text-align-${o}`]:o})}),s=!nt.RichText.isEmpty(r)||n;return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(nt.AlignmentControl,{value:o,onChange:e=>{t({textAlign:e})}})),(0,Ke.createElement)("figure",{...i},(0,Ke.createElement)("blockquote",null,(0,Ke.createElement)(nt.RichText,{identifier:"value",tagName:"p",value:l,onChange:e=>t({value:e}),"aria-label":(0,tt.__)("Pullquote text"),placeholder:(0,tt.__)("Add quote"),textAlign:"center"}),s&&(0,Ke.createElement)(nt.RichText,{identifier:"citation",tagName:af?"cite":void 0,style:{display:"block"},value:r,"aria-label":(0,tt.__)("Pullquote citation text"),placeholder:(0,tt.__)("Add citation"),onChange:e=>t({citation:e}),className:"wp-block-pullquote__citation",__unstableMobileNoFocusOnMount:!0,textAlign:"center",__unstableOnSplitAtEnd:()=>a((0,Qe.createBlock)((0,Qe.getDefaultBlockName)()))}))))};const rf={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>(0,Qe.createBlock)("core/pullquote",{value:(0,zn.toHTMLString)({value:(0,zn.join)(e.map((({content:e})=>(0,zn.create)({html:e}))),"\n")}),anchor:e.anchor})},{type:"block",blocks:["core/heading"],transform:({content:e,anchor:t})=>(0,Qe.createBlock)("core/pullquote",{value:e,anchor:t})}],to:[{type:"block",blocks:["core/paragraph"],transform:({value:e,citation:t})=>{const n=[];return e&&n.push((0,Qe.createBlock)("core/paragraph",{content:e})),t&&n.push((0,Qe.createBlock)("core/paragraph",{content:t})),0===n.length?(0,Qe.createBlock)("core/paragraph",{content:""}):n}},{type:"block",blocks:["core/heading"],transform:({value:e,citation:t})=>{if(!e)return(0,Qe.createBlock)("core/heading",{content:t});const n=(0,Qe.createBlock)("core/heading",{content:e});return t?[n,(0,Qe.createBlock)("core/heading",{content:t})]:n}}]},lf=rf,sf={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/pullquote",title:"Pullquote",category:"text",description:"Give special visual emphasis to a quote from your text.",textdomain:"default",attributes:{value:{type:"rich-text",source:"rich-text",selector:"p",__experimentalRole:"content"},citation:{type:"rich-text",source:"rich-text",selector:"cite",__experimentalRole:"content"},textAlign:{type:"string"}},supports:{anchor:!0,align:["left","right","wide","full"],color:{gradients:!0,background:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},__experimentalStyle:{typography:{fontSize:"1.5em",lineHeight:"1.6"}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-pullquote-editor",style:"wp-block-pullquote"},{name:cf}=sf,mf={icon:qv,example:{attributes:{value:(0,tt.__)("One of the hardest things to do in technology is disrupt yourself."),citation:(0,tt.__)("Matt Mullenweg")}},transforms:lf,edit:of,save:function({attributes:e}){const{textAlign:t,citation:n,value:a}=e,o=!nt.RichText.isEmpty(n);return(0,Ke.createElement)("figure",{...nt.useBlockProps.save({className:ut({[`has-text-align-${t}`]:t})})},(0,Ke.createElement)("blockquote",null,(0,Ke.createElement)(nt.RichText.Content,{tagName:"p",value:a}),o&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"cite",value:n})))},deprecated:nf},uf=()=>Xe({name:cf,metadata:sf,settings:mf}),pf=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M18.1823 11.6392C18.1823 13.0804 17.0139 14.2487 15.5727 14.2487C14.3579 14.2487 13.335 13.4179 13.0453 12.2922L13.0377 12.2625L13.0278 12.2335L12.3985 10.377L12.3942 10.3785C11.8571 8.64997 10.246 7.39405 8.33961 7.39405C5.99509 7.39405 4.09448 9.29465 4.09448 11.6392C4.09448 13.9837 5.99509 15.8843 8.33961 15.8843C8.88499 15.8843 9.40822 15.781 9.88943 15.5923L9.29212 14.0697C8.99812 14.185 8.67729 14.2487 8.33961 14.2487C6.89838 14.2487 5.73003 13.0804 5.73003 11.6392C5.73003 10.1979 6.89838 9.02959 8.33961 9.02959C9.55444 9.02959 10.5773 9.86046 10.867 10.9862L10.8772 10.9836L11.4695 12.7311C11.9515 14.546 13.6048 15.8843 15.5727 15.8843C17.9172 15.8843 19.8178 13.9837 19.8178 11.6392C19.8178 9.29465 17.9172 7.39404 15.5727 7.39404C15.0287 7.39404 14.5066 7.4968 14.0264 7.6847L14.6223 9.20781C14.9158 9.093 15.2358 9.02959 15.5727 9.02959C17.0139 9.02959 18.1823 10.1979 18.1823 11.6392Z"})),df=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"m19 7.5h-7.628c-.3089-.87389-1.1423-1.5-2.122-1.5-.97966 0-1.81309.62611-2.12197 1.5h-2.12803v1.5h2.12803c.30888.87389 1.14231 1.5 2.12197 1.5.9797 0 1.8131-.62611 2.122-1.5h7.628z"}),(0,Ke.createElement)(Ye.Path,{d:"m19 15h-2.128c-.3089-.8739-1.1423-1.5-2.122-1.5s-1.8131.6261-2.122 1.5h-7.628v1.5h7.628c.3089.8739 1.1423 1.5 2.122 1.5s1.8131-.6261 2.122-1.5h2.128z"})),gf=e=>{const t=e?.reduce(((e,t)=>{const{mapById:n,mapByName:a,names:o}=e;return n[t.id]=t,a[t.name]=t,o.push(t.name),e}),{mapById:{},mapByName:{},names:[]});return{entities:e,...t}},hf=(e,t)=>{const n=t.split(".");let a=e;return n.forEach((e=>{a=a?.[e]})),a},bf=(e,t)=>(e||[]).map((e=>({...e,name:(0,Yn.decodeEntities)(hf(e,t))}))),_f=()=>{const e=(0,gt.useSelect)((e=>{const{getPostTypes:t}=e(dt.store),n=["attachment"],a=t({per_page:-1})?.filter((({viewable:e,slug:t})=>e&&!n.includes(t)));return a}),[]);return{postTypesTaxonomiesMap:(0,_t.useMemo)((()=>{if(e?.length)return e.reduce(((e,t)=>(e[t.slug]=t.taxonomies,e)),{})}),[e]),postTypesSelectOptions:(0,_t.useMemo)((()=>(e||[]).map((({labels:e,slug:t})=>({label:e.singular_name,value:t})))),[e])}},yf=e=>{const t=(0,gt.useSelect)((t=>{const{getTaxonomies:n}=t(dt.store);return n({type:e,per_page:-1})}),[e]);return(0,_t.useMemo)((()=>t?.filter((({visibility:e})=>!!e?.publicly_queryable))),[t])};function vf(e,t){return!e||e.includes(t)}function ff(e,t){const n=(0,gt.useSelect)((e=>e(Qe.store).getActiveBlockVariation("core/query",t)?.name),[t]),a=`core/query/${n}`;return(0,gt.useSelect)((t=>{if(!n)return!1;const{getBlockRootClientId:o,getPatternsByBlockTypes:r}=t(nt.store),l=o(e);return r(a,l).length>0}),[e,n,a])?a:"core/query"}const kf=(e,t)=>(0,gt.useSelect)((n=>{const{getBlockRootClientId:a,getPatternsByBlockTypes:o}=n(nt.store),r=a(e);return o(t,r)}),[t,e]),xf=e=>(0,gt.useSelect)((t=>{const{getClientIdsOfDescendants:n,getBlockName:a}=t(nt.store),o={};return n(e).forEach((e=>{const t=a(e),n=Object.is((0,Qe.getBlockSupport)(t,"interactivity"),!0),r=(0,Qe.getBlockSupport)(t,"interactivity.clientNavigation");n||r?"core/post-content"===t&&(o.hasPostContentBlock=!0):o.hasBlocksFromPlugins=!0})),o.hasUnsupportedBlocks=o.hasBlocksFromPlugins||o.hasPostContentBlock,o}),[e]);function wf({attributes:{query:e},setQuery:t,openPatternSelectionModal:n,name:a,clientId:o}){const r=!!kf(o,a).length,l=(0,jt.useInstanceId)(wf,"blocks-query-pagination-max-page-input");return(0,Ke.createElement)(Ke.Fragment,null,!e.inherit&&(0,Ke.createElement)(et.ToolbarGroup,null,(0,Ke.createElement)(et.Dropdown,{contentClassName:"block-library-query-toolbar__popover",renderToggle:({onToggle:e})=>(0,Ke.createElement)(et.ToolbarButton,{icon:df,label:(0,tt.__)("Display settings"),onClick:e}),renderContent:()=>(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.BaseControl,null,(0,Ke.createElement)(et.__experimentalNumberControl,{__unstableInputWidth:"60px",label:(0,tt.__)("Items per Page"),labelPosition:"edge",min:1,max:100,onChange:e=>{isNaN(e)||e<1||e>100||t({perPage:e})},step:"1",value:e.perPage,isDragEnabled:!1})),(0,Ke.createElement)(et.BaseControl,null,(0,Ke.createElement)(et.__experimentalNumberControl,{__unstableInputWidth:"60px",label:(0,tt.__)("Offset"),labelPosition:"edge",min:0,max:100,onChange:e=>{isNaN(e)||e<0||e>100||t({offset:e})},step:"1",value:e.offset,isDragEnabled:!1})),(0,Ke.createElement)(et.BaseControl,{id:l,help:(0,tt.__)("Limit the pages you want to show, even if the query has more results. To show all pages use 0 (zero).")},(0,Ke.createElement)(et.__experimentalNumberControl,{id:l,__unstableInputWidth:"60px",label:(0,tt.__)("Max page to show"),labelPosition:"edge",min:0,onChange:e=>{isNaN(e)||e<0||t({pages:e})},step:"1",value:e.pages,isDragEnabled:!1})))})),r&&(0,Ke.createElement)(et.ToolbarGroup,{className:"wp-block-template-part__block-control-group"},(0,Ke.createElement)(et.ToolbarButton,{onClick:n},(0,tt.__)("Replace"))))}const Ef=[{label:(0,tt.__)("Newest to oldest"),value:"date/desc"},{label:(0,tt.__)("Oldest to newest"),value:"date/asc"},{label:(0,tt.__)("A → Z"),value:"title/asc"},{label:(0,tt.__)("Z → A"),value:"title/desc"}];const Cf=function({order:e,orderBy:t,onChange:n}){return(0,Ke.createElement)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Order by"),value:`${t}/${e}`,options:Ef,onChange:e=>{const[t,a]=e.split("/");n({order:a,orderBy:t})}})},Sf={who:"authors",per_page:-1,_fields:"id,name",context:"view"};const Bf=function({value:e,onChange:t}){const n=(0,gt.useSelect)((e=>{const{getUsers:t}=e(dt.store);return t(Sf)}),[]);if(!n)return null;const a=gf(n),o=(e?e.toString().split(","):[]).reduce(((e,t)=>{const n=a.mapById[t];return n&&e.push({id:t,value:n.name}),e}),[]);return(0,Ke.createElement)(et.FormTokenField,{label:(0,tt.__)("Authors"),value:o,suggestions:a.names,onChange:e=>{const n=Array.from(e.reduce(((e,t)=>{const n=((e,t)=>{const n=t?.id||e[t]?.id;if(n)return n})(a.mapByName,t);return n&&e.add(n),e}),new Set));t({author:n.join(",")})},__experimentalShowHowTo:!1})},Nf=[],Tf={order:"asc",_fields:"id,title",context:"view"};const If=function({parents:e,postType:t,onChange:n}){const[a,o]=(0,_t.useState)(""),[r,l]=(0,_t.useState)(Nf),[i,s]=(0,_t.useState)(Nf),c=(0,jt.useDebounce)(o,250),{searchResults:m,searchHasResolved:u}=(0,gt.useSelect)((n=>{if(!a)return{searchResults:Nf,searchHasResolved:!0};const{getEntityRecords:o,hasFinishedResolution:r}=n(dt.store),l=["postType",t,{...Tf,search:a,orderby:"relevance",exclude:e,per_page:20}];return{searchResults:o(...l),searchHasResolved:r("getEntityRecords",l)}}),[a,e]),p=(0,gt.useSelect)((n=>{if(!e?.length)return Nf;const{getEntityRecords:a}=n(dt.store);return a("postType",t,{...Tf,include:e,per_page:e.length})}),[e]);(0,_t.useEffect)((()=>{if(e?.length||l(Nf),!p?.length)return;const t=gf(bf(p,"title.rendered")),n=e.reduce(((e,n)=>{const a=t.mapById[n];return a&&e.push({id:n,value:a.name}),e}),[]);l(n)}),[e,p]);const d=(0,_t.useMemo)((()=>m?.length?gf(bf(m,"title.rendered")):Nf),[m]);return(0,_t.useEffect)((()=>{u&&s(d.names)}),[d.names,u]),(0,Ke.createElement)(et.FormTokenField,{label:(0,tt.__)("Parents"),value:r,onInputChange:c,suggestions:i,onChange:e=>{const t=Array.from(e.reduce(((e,t)=>{const n=((e,t)=>{const n=t?.id||e?.[t]?.id;if(n)return n})(d.mapByName,t);return n&&e.add(n),e}),new Set));s(Nf),n({parents:t})},__experimentalShowHowTo:!1})},Pf=[],Mf={order:"asc",_fields:"id,name",context:"view"},zf=(e,t)=>{const n=t?.id||e?.find((e=>e.name===t))?.id;if(n)return n;const a=t.toLocaleLowerCase();return e?.find((e=>e.name.toLocaleLowerCase()===a))?.id};function Rf({onChange:e,query:t}){const{postType:n,taxQuery:a}=t,o=yf(n);return o&&0!==o.length?(0,Ke.createElement)(Ke.Fragment,null,o.map((t=>{const n=a?.[t.slug]||[];return(0,Ke.createElement)(Af,{key:t.slug,taxonomy:t,termIds:n,onChange:n=>e({taxQuery:{...a,[t.slug]:n}})})}))):null}function Af({taxonomy:e,termIds:t,onChange:n}){const[a,o]=(0,_t.useState)(""),[r,l]=(0,_t.useState)(Pf),[i,s]=(0,_t.useState)(Pf),c=(0,jt.useDebounce)(o,250),{searchResults:m,searchHasResolved:u}=(0,gt.useSelect)((n=>{if(!a)return{searchResults:Pf,searchHasResolved:!0};const{getEntityRecords:o,hasFinishedResolution:r}=n(dt.store),l=["taxonomy",e.slug,{...Mf,search:a,orderby:"name",exclude:t,per_page:20}];return{searchResults:o(...l),searchHasResolved:r("getEntityRecords",l)}}),[a,t]),p=(0,gt.useSelect)((n=>{if(!t?.length)return Pf;const{getEntityRecords:a}=n(dt.store);return a("taxonomy",e.slug,{...Mf,include:t,per_page:t.length})}),[t]);(0,_t.useEffect)((()=>{if(t?.length||l(Pf),!p?.length)return;const e=t.reduce(((e,t)=>{const n=p.find((e=>e.id===t));return n&&e.push({id:t,value:n.name}),e}),[]);l(e)}),[t,p]),(0,_t.useEffect)((()=>{u&&s(m.map((e=>e.name)))}),[m,u]);return(0,Ke.createElement)("div",{className:"block-library-query-inspector__taxonomy-control"},(0,Ke.createElement)(et.FormTokenField,{label:e.name,value:r,onInputChange:c,suggestions:i,displayTransform:Yn.decodeEntities,onChange:e=>{const t=new Set;for(const n of e){const e=zf(m,n);e&&t.add(e)}s(Pf),n(Array.from(t))},__experimentalShowHowTo:!1}))}const Lf=[{label:(0,tt.__)("Include"),value:""},{label:(0,tt.__)("Exclude"),value:"exclude"},{label:(0,tt.__)("Only"),value:"only"}];function Hf({value:e,onChange:t}){return(0,Ke.createElement)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Sticky posts"),options:Lf,value:e,onChange:t,help:(0,tt.__)("Blog posts can be “stickied”, a feature that places them at the top of the front page of posts, keeping it there until new sticky posts are published.")})}function Df({enhancedPagination:e,setAttributes:t,clientId:n}){const{hasUnsupportedBlocks:a}=xf(n),o=window.__experimentalFullPageClientSideNavigation;let r=(0,tt.__)("Browsing between pages requires a full page reload.");return o?r=(0,tt.__)("Experimental full-page client-side navigation setting enabled."):e?r=(0,tt.__)("Browsing between pages won't require a full page reload, unless non-compatible blocks are detected."):a&&(r=(0,tt.__)("Force page reload can't be disabled because there are non-compatible blocks inside the Query block.")),(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.ToggleControl,{label:(0,tt.__)("Force page reload"),help:r,checked:!e&&!o,disabled:a||o,onChange:e=>{t({enhancedPagination:!e})}}))}const Ff=({attributes:{query:{postType:e}={}}={}})=>{if(!e)return null;const t=(0,pt.addQueryArgs)("post-new.php",{post_type:e});return(0,Ke.createElement)("div",{className:"wp-block-query__create-new-link"},(0,_t.createInterpolateElement)((0,tt.__)("<a>Add new post</a>"),{a:(0,Ke.createElement)("a",{href:t})}))},{BlockInfo:Vf}=Ht(nt.privateApis);function $f(e){const{attributes:t,setQuery:n,setDisplayLayout:a,setAttributes:o,clientId:r}=e,{query:l,displayLayout:i,enhancedPagination:s}=t,{order:c,orderBy:m,author:u,postType:p,sticky:d,inherit:g,taxQuery:h,parents:b}=l,_=function(e){return(0,gt.useSelect)((t=>t(Qe.store).getActiveBlockVariation("core/query",e)?.allowedControls),[e])}(t),[y,v]=(0,_t.useState)("post"===p),{postTypesTaxonomiesMap:f,postTypesSelectOptions:k}=_f(),x=yf(p),w=function(e){return(0,gt.useSelect)((t=>{const n=t(dt.store).getPostType(e);return n?.viewable&&n?.hierarchical}),[e])}(p);(0,_t.useEffect)((()=>{v("post"===p)}),[p]);const[E,C]=(0,_t.useState)(l.search),S=(0,_t.useCallback)((0,jt.debounce)((()=>{l.search!==E&&n({search:E})}),250),[E,l.search]);(0,_t.useEffect)((()=>(S(),S.cancel)),[E,S]);const B=vf(_,"inherit"),N=!g&&vf(_,"postType"),T=!g&&vf(_,"order"),I=!g&&y&&vf(_,"sticky"),P=B||N||T||I,M=!!x?.length&&vf(_,"taxQuery"),z=vf(_,"author"),R=vf(_,"search"),A=vf(_,"parents")&&w,L=M||z||R||A;return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(Vf,null,(0,Ke.createElement)(Ff,{...e})),P&&(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},B&&(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Inherit query from template"),help:(0,tt.__)("Toggle to use the global query context that is set with the current template, such as an archive or search. Disable to customize the settings independently."),checked:!!g,onChange:e=>n({inherit:!!e})}),N&&(0,Ke.createElement)(et.SelectControl,{__nextHasNoMarginBottom:!0,options:k,value:p,label:(0,tt.__)("Post type"),onChange:e=>{const t={postType:e},a=f[e],o=Object.entries(h||{}).reduce(((e,[t,n])=>(a.includes(t)&&(e[t]=n),e)),{});t.taxQuery=Object.keys(o).length?o:void 0,"post"!==e&&(t.sticky=""),t.parents=[],n(t)},help:(0,tt.__)("WordPress contains different types of content and they are divided into collections called “Post types”. By default there are a few different ones such as blog posts and pages, but plugins could add more.")}),false,T&&(0,Ke.createElement)(Cf,{order:c,orderBy:m,onChange:n}),I&&(0,Ke.createElement)(Hf,{value:d,onChange:e=>n({sticky:e})}),(0,Ke.createElement)(Df,{enhancedPagination:s,setAttributes:o,clientId:r})),!g&&L&&(0,Ke.createElement)(et.__experimentalToolsPanel,{className:"block-library-query-toolspanel__filters",label:(0,tt.__)("Filters"),resetAll:()=>{n({author:"",parents:[],search:"",taxQuery:null}),C("")},dropdownMenuProps:ip},M&&(0,Ke.createElement)(et.__experimentalToolsPanelItem,{label:(0,tt.__)("Taxonomies"),hasValue:()=>Object.values(h||{}).some((e=>!!e.length)),onDeselect:()=>n({taxQuery:null})},(0,Ke.createElement)(Rf,{onChange:n,query:l})),z&&(0,Ke.createElement)(et.__experimentalToolsPanelItem,{hasValue:()=>!!u,label:(0,tt.__)("Authors"),onDeselect:()=>n({author:""})},(0,Ke.createElement)(Bf,{value:u,onChange:n})),R&&(0,Ke.createElement)(et.__experimentalToolsPanelItem,{hasValue:()=>!!E,label:(0,tt.__)("Keyword"),onDeselect:()=>C("")},(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Keyword"),value:E,onChange:C})),A&&(0,Ke.createElement)(et.__experimentalToolsPanelItem,{hasValue:()=>!!b?.length,label:(0,tt.__)("Parents"),onDeselect:()=>n({parents:[]})},(0,Ke.createElement)(If,{parents:b,postType:p,onChange:n}))))}const Gf="wp-block-query-enhanced-pagination-modal__description";function Of({clientId:e,attributes:{enhancedPagination:t},setAttributes:n}){const[a,o]=(0,_t.useState)(!1),{hasBlocksFromPlugins:r,hasPostContentBlock:l,hasUnsupportedBlocks:i}=xf(e);(0,_t.useEffect)((()=>{t&&i&&!window.__experimentalFullPageClientSideNavigation&&(n({enhancedPagination:!1}),o(!0))}),[t,i,n]);const s=()=>{o(!1)};let c=(0,tt.__)('If you still want to prevent full page reloads, remove that block, then disable "Force page reload" again in the Query Block settings.');return r?c=(0,tt.__)("Currently, avoiding full page reloads is not possible when non-interactive or non-client Navigation compatible blocks from plugins are present inside the Query block.")+" "+c:l&&(c=(0,tt.__)("Currently, avoiding full page reloads is not possible when a Content block is present inside the Query block.")+" "+c),a&&(0,Ke.createElement)(et.Modal,{title:(0,tt.__)("Query block: Force page reload enabled"),className:"wp-block-query__enhanced-pagination-modal",aria:{describedby:Gf},role:"alertdialog",focusOnMount:"firstElement",isDismissible:!1,onRequestClose:s},(0,Ke.createElement)(et.__experimentalVStack,{alignment:"right",spacing:5},(0,Ke.createElement)("span",{id:Gf},c),(0,Ke.createElement)(et.Button,{variant:"primary",onClick:s},(0,tt.__)("OK"))))}const Uf=[["core/post-template"]];function qf({attributes:e,setAttributes:t,openPatternSelectionModal:n,name:a,clientId:o}){const{queryId:r,query:l,displayLayout:i,tagName:s="div",query:{inherit:c}={}}=e,{__unstableMarkNextChangeAsNotPersistent:m}=(0,gt.useDispatch)(nt.store),u=(0,jt.useInstanceId)(qf),p=(0,nt.useBlockProps)(),d=(0,nt.useInnerBlocksProps)(p,{template:Uf}),{postsPerPage:g}=(0,gt.useSelect)((e=>{const{getSettings:t}=e(nt.store),{getEntityRecord:n,canUser:a}=e(dt.store);return{postsPerPage:(a("read","settings")?+n("root","site")?.posts_per_page:+t().postsPerPage)||3}}),[]);(0,_t.useEffect)((()=>{const e={};(c&&l.perPage!==g||!l.perPage&&g)&&(e.perPage=g),Object.keys(e).length&&(m(),h(e))}),[l.perPage,g,c]),(0,_t.useEffect)((()=>{Number.isFinite(r)||(m(),t({queryId:u}))}),[r,u]);const h=e=>t({query:{...l,...e}}),b={main:(0,tt.__)("The <main> element should be used for the primary content of your document only. "),section:(0,tt.__)("The <section> element should represent a standalone portion of the document that can't be better represented by another element."),aside:(0,tt.__)("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content.")};return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(Of,{attributes:e,setAttributes:t,clientId:o}),(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)($f,{attributes:e,setQuery:h,setDisplayLayout:e=>t({displayLayout:{...i,...e}}),setAttributes:t,clientId:o})),(0,Ke.createElement)(nt.BlockControls,null,(0,Ke.createElement)(wf,{name:a,clientId:o,attributes:e,setQuery:h,openPatternSelectionModal:n})),(0,Ke.createElement)(nt.InspectorControls,{group:"advanced"},(0,Ke.createElement)(et.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("HTML element"),options:[{label:(0,tt.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}],value:s,onChange:e=>t({tagName:e}),help:b[s]})),(0,Ke.createElement)(s,{...d}))}function jf({attributes:e,clientId:t,name:n,openPatternSelectionModal:a,setAttributes:o}){const[r,l]=(0,_t.useState)(!1),i=(0,nt.useBlockProps)(),s=ff(t,e),{blockType:c,activeBlockVariation:m,hasPatterns:u}=(0,gt.useSelect)((a=>{const{getActiveBlockVariation:o,getBlockType:r}=a(Qe.store),{getBlockRootClientId:l,getPatternsByBlockTypes:i}=a(nt.store),c=l(t);return{blockType:r(n),activeBlockVariation:o(n,e),hasPatterns:!!i(s,c).length}}),[n,s,t,e]),p=m?.icon?.src||m?.icon||c?.icon?.src,d=m?.title||c?.title;return r?(0,Ke.createElement)(Wf,{clientId:t,attributes:e,setAttributes:o,icon:p,label:d}):(0,Ke.createElement)("div",{...i},(0,Ke.createElement)(et.Placeholder,{icon:p,label:d,instructions:(0,tt.__)("Choose a pattern for the query loop or start blank.")},!!u&&(0,Ke.createElement)(et.Button,{variant:"primary",onClick:a},(0,tt.__)("Choose")),(0,Ke.createElement)(et.Button,{variant:"secondary",onClick:()=>{l(!0)}},(0,tt.__)("Start blank"))))}function Wf({clientId:e,attributes:t,setAttributes:n,icon:a,label:o}){const r=function(e){const{activeVariationName:t,blockVariations:n}=(0,gt.useSelect)((t=>{const{getActiveBlockVariation:n,getBlockVariations:a}=t(Qe.store);return{activeVariationName:n("core/query",e)?.name,blockVariations:a("core/query","block")}}),[e]);return(0,_t.useMemo)((()=>{const e=e=>!e.attributes?.namespace;if(!t)return n.filter(e);const a=n.filter((e=>e.attributes?.namespace?.includes(t)));return a.length?a:n.filter(e)}),[t,n])}(t),{replaceInnerBlocks:l}=(0,gt.useDispatch)(nt.store),i=(0,nt.useBlockProps)();return(0,Ke.createElement)("div",{...i},(0,Ke.createElement)(nt.__experimentalBlockVariationPicker,{icon:a,label:o,variations:r,onSelect:a=>{a.attributes&&n({...a.attributes,query:{...a.attributes.query,postType:t.query.postType||a.attributes.query.postType},namespace:t.namespace}),a.innerBlocks&&l(e,(0,Qe.createBlocksFromInnerBlocksTemplate)(a.innerBlocks),!1)}}))}function Zf(e=""){return e=(e=rc()(e)).trim().toLowerCase()}function Qf(e,t){const n=Zf(t),a=Zf(e.title);let o=0;if(n===a)o+=30;else if(a.startsWith(n))o+=20;else{n.split(" ").every((e=>a.includes(e)))&&(o+=10)}return o}function Kf(e=[],t=""){if(!t)return e;const n=e.map((e=>[e,Qf(e,t)])).filter((([,e])=>e>0));return n.sort((([,e],[,t])=>t-e)),n.map((([e])=>e))}function Yf({clientId:e,attributes:t,setIsPatternSelectionModalOpen:n}){const[a,o]=(0,_t.useState)(""),{replaceBlock:r,selectBlock:l}=(0,gt.useDispatch)(nt.store),i=(0,_t.useMemo)((()=>({previewPostType:t.query.postType})),[t.query.postType]),s=ff(e,t),c=kf(e,s),m=(0,_t.useMemo)((()=>Kf(c,a)),[c,a]),u=(0,jt.useAsyncList)(m);return(0,Ke.createElement)(et.Modal,{overlayClassName:"block-library-query-pattern__selection-modal",title:(0,tt.__)("Choose a pattern"),onRequestClose:()=>n(!1),isFullScreen:!0},(0,Ke.createElement)("div",{className:"block-library-query-pattern__selection-content"},(0,Ke.createElement)("div",{className:"block-library-query-pattern__selection-search"},(0,Ke.createElement)(et.SearchControl,{__nextHasNoMarginBottom:!0,onChange:o,value:a,label:(0,tt.__)("Search for patterns"),placeholder:(0,tt.__)("Search")})),(0,Ke.createElement)(nt.BlockContextProvider,{value:i},(0,Ke.createElement)(nt.__experimentalBlockPatternsList,{blockPatterns:m,shownPatterns:u,onClickPattern:(n,a)=>{const{newBlocks:o,queryClientIds:i}=((e,t)=>{const{query:{postType:n,inherit:a}}=t,o=e.map((e=>(0,Qe.cloneBlock)(e))),r=[],l=[...o];for(;l.length>0;){const e=l.shift();"core/query"===e.name&&(e.attributes.query={...e.attributes.query,postType:n,inherit:a},r.push(e.clientId)),e.innerBlocks?.forEach((e=>{l.push(e)}))}return{newBlocks:o,queryClientIds:r}})(a,t);r(e,o),i[0]&&l(i[0])}}))))}const Jf=e=>{const{clientId:t,attributes:n}=e,[a,o]=(0,_t.useState)(!1),r=(0,gt.useSelect)((e=>!!e(nt.store).getBlocks(t).length),[t])?qf:jf;return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(r,{...e,openPatternSelectionModal:()=>o(!0)}),a&&(0,Ke.createElement)(Yf,{clientId:t,attributes:n,setIsPatternSelectionModalOpen:o}))};const Xf=(0,Ke.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},(0,Ke.createElement)(et.Path,{d:"M41 9H7v3h34V9zm-22 5H7v1h12v-1zM7 26h12v1H7v-1zm34-5H7v3h34v-3zM7 38h12v1H7v-1zm34-5H7v3h34v-3z"})),ek=(0,Ke.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},(0,Ke.createElement)(et.Path,{d:"M41 9H7v3h34V9zm-4 5H7v1h30v-1zm4 3H7v1h34v-1zM7 20h30v1H7v-1zm0 12h30v1H7v-1zm34 3H7v1h34v-1zM7 38h30v1H7v-1zm34-11H7v3h34v-3z"})),tk=(0,Ke.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},(0,Ke.createElement)(et.Path,{d:"M41 9H7v3h34V9zm-22 5H7v1h12v-1zm22 3H7v1h34v-1zM7 20h34v1H7v-1zm0 12h12v1H7v-1zm34 3H7v1h34v-1zM7 38h34v1H7v-1zm34-11H7v3h34v-3z"})),nk=(0,Ke.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},(0,Ke.createElement)(et.Path,{d:"M7 9h34v6H7V9zm12 8H7v1h12v-1zm18 3H7v1h30v-1zm0 18H7v1h30v-1zM7 35h12v1H7v-1zm34-8H7v6h34v-6z"})),ak={query:{perPage:3,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!1}},ok=[{name:"posts-list",title:(0,tt.__)("Posts List"),description:(0,tt.__)("Display a list of your most recent posts, excluding sticky posts."),icon:Tp,attributes:{namespace:"core/posts-list",query:{perPage:4,pages:1,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",sticky:"exclude",inherit:!1}},scope:["inserter"],isActive:({namespace:e,query:t})=>"core/posts-list"===e&&"post"===t.postType},{name:"title-date",title:(0,tt.__)("Title & Date"),icon:Xf,attributes:{...ak},innerBlocks:[["core/post-template",{},[["core/post-title"],["core/post-date"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"title-excerpt",title:(0,tt.__)("Title & Excerpt"),icon:ek,attributes:{...ak},innerBlocks:[["core/post-template",{},[["core/post-title"],["core/post-excerpt"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"title-date-excerpt",title:(0,tt.__)("Title, Date, & Excerpt"),icon:tk,attributes:{...ak},innerBlocks:[["core/post-template",{},[["core/post-title"],["core/post-date"],["core/post-excerpt"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"image-date-title",title:(0,tt.__)("Image, Date, & Title"),icon:nk,attributes:{...ak},innerBlocks:[["core/post-template",{},[["core/post-featured-image"],["core/post-date"],["core/post-title"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]}],{cleanEmptyObject:rk}=Ht(nt.privateApis),lk=e=>{const{query:t}=e,{categoryIds:n,tagIds:a,...o}=t;return(t.categoryIds?.length||t.tagIds?.length)&&(o.taxQuery={category:t.categoryIds?.length?t.categoryIds:void 0,post_tag:t.tagIds?.length?t.tagIds:void 0}),{...e,query:o}},ik=(e,t)=>{const{style:n,backgroundColor:a,gradient:o,textColor:r,...l}=e;if(!(a||o||r||n?.color||n?.elements?.link))return[e,t];if(n&&(l.style=rk({...n,color:void 0,elements:{...n.elements,link:void 0}})),sk(t)){const e=t[0],i=n?.color||n?.elements?.link||e.attributes.style?rk({...e.attributes.style,color:n?.color,elements:n?.elements?.link?{link:n?.elements?.link}:void 0}):void 0;return[l,[(0,Qe.createBlock)("core/group",{...e.attributes,backgroundColor:a,gradient:o,textColor:r,style:i},e.innerBlocks)]]}return[l,[(0,Qe.createBlock)("core/group",{backgroundColor:a,gradient:o,textColor:r,style:rk({color:n?.color,elements:n?.elements?.link?{link:n?.elements?.link}:void 0})},t)]]},sk=(e=[])=>1===e.length&&"core/group"===e[0].name,ck=e=>{const{layout:t=null}=e;if(!t)return e;const{inherit:n=null,contentSize:a=null,...o}=t;return n||a?{...e,layout:{...o,contentSize:a,type:"constrained"}}:e},mk=(e=[])=>{let t=null;for(const n of e){if("core/post-template"===n.name){t=n;break}n.innerBlocks.length&&(t=mk(n.innerBlocks))}return t},uk=(e=[],t)=>(e.forEach(((n,a)=>{"core/post-template"===n.name?e.splice(a,1,t):n.innerBlocks.length&&(n.innerBlocks=uk(n.innerBlocks,t))})),e),pk=(e,t)=>{const{displayLayout:n=null,...a}=e;if(!n)return[e,t];const o=mk(t);if(!o)return[e,t];const{type:r,columns:l}=n,i="flex"===r?"grid":"default",s=(0,Qe.createBlock)("core/post-template",{...o.attributes,layout:{type:i,...l&&{columnCount:l}}},o.innerBlocks);return[a,uk(t,s)]},dk={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",categoryIds:[],tagIds:[],order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0}},layout:{type:"object",default:{type:"list"}}},supports:{html:!1},migrate(e,t){const n=lk(e),{layout:a,...o}=n,r={...o,displayLayout:n.layout};return pk(r,t)},save:()=>(0,Ke.createElement)(nt.InnerBlocks.Content,null)},gk={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",categoryIds:[],tagIds:[],order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0},layout:!0},isEligible:({query:{categoryIds:e,tagIds:t}={}})=>e||t,migrate(e,t){const n=lk(e),[a,o]=ik(n,t),r=ck(a);return pk(r,o)},save({attributes:{tagName:e="div"}}){const t=nt.useBlockProps.save(),n=nt.useInnerBlocksProps.save(t);return(0,Ke.createElement)(e,{...n})}},hk={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[]}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}},namespace:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},layout:!0},isEligible(e){const{style:t,backgroundColor:n,gradient:a,textColor:o}=e;return n||a||o||t?.color||t?.elements?.link},migrate(e,t){const[n,a]=ik(e,t),o=ck(n);return pk(o,a)},save({attributes:{tagName:e="div"}}){const t=nt.useBlockProps.save(),n=nt.useInnerBlocksProps.save(t);return(0,Ke.createElement)(e,{...n})}},bk={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[]}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}},namespace:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},layout:!0},save({attributes:{tagName:e="div"}}){const t=nt.useBlockProps.save(),n=nt.useInnerBlocksProps.save(t);return(0,Ke.createElement)(e,{...n})},isEligible:({layout:e})=>e?.inherit||e?.contentSize&&"constrained"!==e?.type,migrate(e,t){const n=ck(e);return pk(n,t)}},_k=[{attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[]}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}},namespace:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,layout:!0},save({attributes:{tagName:e="div"}}){const t=nt.useBlockProps.save(),n=nt.useInnerBlocksProps.save(t);return(0,Ke.createElement)(e,{...n})},isEligible:({displayLayout:e})=>!!e,migrate:pk},bk,hk,gk,dk],yk={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query",title:"Query Loop",category:"theme",description:"An advanced block that allows displaying post types based on different query parameters and visual configurations.",textdomain:"default",attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[]}},tagName:{type:"string",default:"div"},namespace:{type:"string"},enhancedPagination:{type:"boolean",default:!1}},providesContext:{queryId:"queryId",query:"query",displayLayout:"displayLayout",enhancedPagination:"enhancedPagination"},supports:{align:["wide","full"],html:!1,layout:!0,interactivity:!0},editorStyle:"wp-block-query-editor"},{name:vk}=yk,fk={icon:pf,edit:Jf,save:function({attributes:{tagName:e="div"}}){const t=nt.useBlockProps.save(),n=nt.useInnerBlocksProps.save(t);return(0,Ke.createElement)(e,{...n})},variations:ok,deprecated:_k},kk=()=>Xe({name:vk,metadata:yk,settings:fk}),xk=[["core/paragraph",{placeholder:(0,tt.__)("Add text or blocks that will display when a query returns no results.")}]];const wk={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-no-results",title:"No results",category:"theme",description:"Contains the block elements used to render content when no query results are found.",parent:["core/query"],textdomain:"default",usesContext:["queryId","query"],supports:{align:!0,reusable:!1,html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:Ek}=wk,Ck={icon:pf,edit:function(){const e=(0,nt.useBlockProps)(),t=(0,nt.useInnerBlocksProps)(e,{template:xk});return(0,Ke.createElement)("div",{...t})},save:function(){return(0,Ke.createElement)(nt.InnerBlocks.Content,null)}},Sk=()=>Xe({name:Ek,metadata:wk,settings:Ck});function Bk({value:e,onChange:t}){return(0,Ke.createElement)(et.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Arrow"),value:e,onChange:t,help:(0,tt.__)("A decorative arrow appended to the next and previous page link."),isBlock:!0},(0,Ke.createElement)(et.__experimentalToggleGroupControlOption,{value:"none",label:(0,tt._x)("None","Arrow option for Query Pagination Next/Previous blocks")}),(0,Ke.createElement)(et.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,tt._x)("Arrow","Arrow option for Query Pagination Next/Previous blocks")}),(0,Ke.createElement)(et.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,tt._x)("Chevron","Arrow option for Query Pagination Next/Previous blocks")}))}function Nk({value:e,onChange:t}){return(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show label text"),help:(0,tt.__)('Toggle off to hide the label text, e.g. "Next Page".'),onChange:t,checked:!0===e})}const Tk=[["core/query-pagination-previous"],["core/query-pagination-numbers"],["core/query-pagination-next"]];const Ik=[{save:()=>(0,Ke.createElement)("div",{...nt.useBlockProps.save()},(0,Ke.createElement)(nt.InnerBlocks.Content,null))}],Pk={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-pagination",title:"Pagination",category:"theme",ancestor:["core/query"],allowedBlocks:["core/query-pagination-previous","core/query-pagination-numbers","core/query-pagination-next"],description:"Displays a paginated navigation to next/previous set of posts, when applicable.",textdomain:"default",attributes:{paginationArrow:{type:"string",default:"none"},showLabel:{type:"boolean",default:!0}},usesContext:["queryId","query"],providesContext:{paginationArrow:"paginationArrow",showLabel:"showLabel"},supports:{align:!0,reusable:!1,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-query-pagination-editor",style:"wp-block-query-pagination"},{name:Mk}=Pk,zk={icon:mr,edit:function({attributes:{paginationArrow:e,showLabel:t},setAttributes:n,clientId:a}){const o=(0,gt.useSelect)((e=>{const{getBlocks:t}=e(nt.store),n=t(a);return n?.find((e=>["core/query-pagination-next","core/query-pagination-previous"].includes(e.name)))}),[a]),r=(0,nt.useBlockProps)(),l=(0,nt.useInnerBlocksProps)(r,{template:Tk});return(0,_t.useEffect)((()=>{"none"!==e||t||n({showLabel:!0})}),[e,n,t]),(0,Ke.createElement)(Ke.Fragment,null,o&&(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(Bk,{value:e,onChange:e=>{n({paginationArrow:e})}}),"none"!==e&&(0,Ke.createElement)(Nk,{value:t,onChange:e=>{n({showLabel:e})}}))),(0,Ke.createElement)("nav",{...l}))},save:function(){return(0,Ke.createElement)(nt.InnerBlocks.Content,null)},deprecated:Ik},Rk=()=>Xe({name:Mk,metadata:Pk,settings:zk}),Ak={none:"",arrow:"→",chevron:"»"};const Lk={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-pagination-next",title:"Next Page",category:"theme",parent:["core/query-pagination"],description:"Displays the next posts page link.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["queryId","query","paginationArrow","showLabel","enhancedPagination"],supports:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:Hk}=Lk,Dk={icon:_r,edit:function({attributes:{label:e},setAttributes:t,context:{paginationArrow:n,showLabel:a}}){const o=Ak[n];return(0,Ke.createElement)("a",{href:"#pagination-next-pseudo-link",onClick:e=>e.preventDefault(),...(0,nt.useBlockProps)()},a&&(0,Ke.createElement)(nt.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,tt.__)("Next page link"),placeholder:(0,tt.__)("Next Page"),value:e,onChange:e=>t({label:e})}),o&&(0,Ke.createElement)("span",{className:`wp-block-query-pagination-next-arrow is-arrow-${n}`,"aria-hidden":!0},o))}},Fk=()=>Xe({name:Hk,metadata:Lk,settings:Dk}),Vk=(e,t="a",n="")=>(0,Ke.createElement)(t,{key:e,className:`page-numbers ${n}`},e);const $k={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-pagination-numbers",title:"Page Numbers",category:"theme",parent:["core/query-pagination"],description:"Displays a list of page numbers for pagination.",textdomain:"default",attributes:{midSize:{type:"number",default:2}},usesContext:["queryId","query","enhancedPagination"],supports:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-query-pagination-numbers-editor"},{name:Gk}=$k,Ok={icon:wr,edit:function({attributes:e,setAttributes:t}){const{midSize:n}=e,a=(e=>{const t=[];for(let n=1;n<=e;n++)t.push(Vk(n));t.push(Vk(e+1,"span","current"));for(let n=1;n<=e;n++)t.push(Vk(e+1+n));return t.push(Vk("...","span","dots")),t.push(Vk(2*e+3)),(0,Ke.createElement)(Ke.Fragment,null,t)})(parseInt(n,10));return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.RangeControl,{label:(0,tt.__)("Number of links"),help:(0,tt.__)("Specify how many links can appear before and after the current page number. Links to the first, current and last page are always visible."),value:n,onChange:e=>{t({midSize:parseInt(e,10)})},min:0,max:5,withInputField:!1}))),(0,Ke.createElement)("div",{...(0,nt.useBlockProps)()},a))}},Uk=()=>Xe({name:Gk,metadata:$k,settings:Ok}),qk={none:"",arrow:"←",chevron:"«"};const jk={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-pagination-previous",title:"Previous Page",category:"theme",parent:["core/query-pagination"],description:"Displays the previous posts page link.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["queryId","query","paginationArrow","showLabel","enhancedPagination"],supports:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:Wk}=jk,Zk={icon:or,edit:function({attributes:{label:e},setAttributes:t,context:{paginationArrow:n,showLabel:a}}){const o=qk[n];return(0,Ke.createElement)("a",{href:"#pagination-previous-pseudo-link",onClick:e=>e.preventDefault(),...(0,nt.useBlockProps)()},o&&(0,Ke.createElement)("span",{className:`wp-block-query-pagination-previous-arrow is-arrow-${n}`,"aria-hidden":!0},o),a&&(0,Ke.createElement)(nt.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,tt.__)("Previous page link"),placeholder:(0,tt.__)("Previous Page"),value:e,onChange:e=>t({label:e})}))}},Qk=()=>Xe({name:Wk,metadata:jk,settings:Zk}),Kk=["archive","search"];const Yk=[{isDefault:!0,name:"archive-title",title:(0,tt.__)("Archive Title"),description:(0,tt.__)("Display the archive title based on the queried object."),icon:Tr,attributes:{type:"archive"},scope:["inserter"]},{isDefault:!1,name:"search-title",title:(0,tt.__)("Search Results Title"),description:(0,tt.__)("Display the search results title based on the queried object."),icon:Tr,attributes:{type:"search"},scope:["inserter"]}];Yk.forEach((e=>{e.isActive||(e.isActive=(e,t)=>e.type===t.type)}));const Jk=Yk,Xk={attributes:{type:{type:"string"},textAlign:{type:"string"},level:{type:"number",default:1}},supports:{align:["wide","full"],html:!1,color:{gradients:!0},spacing:{margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0}},save:()=>null,migrate:rn,isEligible:({style:e})=>e?.typography?.fontFamily},ex=[Xk],tx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-title",title:"Query Title",category:"theme",description:"Display the query title.",textdomain:"default",attributes:{type:{type:"string"},textAlign:{type:"string"},level:{type:"number",default:1},showPrefix:{type:"boolean",default:!0},showSearchTerm:{type:"boolean",default:!0}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-query-title"},{name:nx}=tx,ax={icon:Tr,edit:function({attributes:{type:e,level:t,textAlign:n,showPrefix:a,showSearchTerm:o},setAttributes:r}){const{archiveTypeTitle:l,archiveNameLabel:i}=(0,gt.useSelect)((e=>{const{getSettings:t}=e(nt.store),{__experimentalArchiveTitleNameLabel:n,__experimentalArchiveTitleTypeLabel:a}=t();return{archiveTypeTitle:a,archiveNameLabel:n}})),s=`h${t}`,c=(0,nt.useBlockProps)({className:ut("wp-block-query-title__placeholder",{[`has-text-align-${n}`]:n})});if(!Kk.includes(e))return(0,Ke.createElement)("div",{...c},(0,Ke.createElement)(nt.Warning,null,(0,tt.__)("Provided type is not supported.")));let m;if("archive"===e){let e;e=l?a?i?(0,tt.sprintf)((0,tt.__)("%1$s: %2$s"),l,i):(0,tt.sprintf)((0,tt.__)("%s: Name"),l):i||(0,tt.sprintf)((0,tt.__)("%s name"),l):a?(0,tt.__)("Archive type: Name"):(0,tt.__)("Archive title"),m=(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show archive type in title"),onChange:()=>r({showPrefix:!a}),checked:a}))),(0,Ke.createElement)(s,{...c},e))}return"search"===e&&(m=(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show search term in title"),onChange:()=>r({showSearchTerm:!o}),checked:o}))),(0,Ke.createElement)(s,{...c},o?(0,tt.__)("Search results for: “search term”"):(0,tt.__)("Search results")))),(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(nt.HeadingLevelDropdown,{value:t,onChange:e=>r({level:e})}),(0,Ke.createElement)(nt.AlignmentControl,{value:n,onChange:e=>{r({textAlign:e})}})),m)},variations:Jk,deprecated:ex},ox=()=>Xe({name:nx,metadata:tx,settings:ax}),rx=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M13 6v6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H13zm-9 6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H4v6z"})),lx=e=>{const{value:t,...n}=e;return[{...n},t?(0,Qe.parseWithAttributeSchema)(t,{type:"array",source:"query",selector:"p",query:{content:{type:"string",source:"html"}}}).map((({content:e})=>(0,Qe.createBlock)("core/paragraph",{content:e}))):(0,Qe.createBlock)("core/paragraph")]},ix=["left","right","center"],sx=(e,t)=>{const{align:n,...a}=e;return[ix.includes(n)?{...a,textAlign:n}:e,t]},cx={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:"",__experimentalRole:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",__experimentalRole:"content"},align:{type:"string"}},supports:{anchor:!0,html:!1,__experimentalOnEnter:!0,__experimentalOnMerge:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0}},color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}}},isEligible:({align:e})=>ix.includes(e),save({attributes:e}){const{align:t,citation:n}=e,a=ut({[`has-text-align-${t}`]:t});return(0,Ke.createElement)("blockquote",{...nt.useBlockProps.save({className:a})},(0,Ke.createElement)(nt.InnerBlocks.Content,null),!nt.RichText.isEmpty(n)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"cite",value:n}))},migrate:sx},mx={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:"",__experimentalRole:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",__experimentalRole:"content"},align:{type:"string"}},supports:{anchor:!0,__experimentalSlashInserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0}}},save({attributes:e}){const{align:t,value:n,citation:a}=e,o=ut({[`has-text-align-${t}`]:t});return(0,Ke.createElement)("blockquote",{...nt.useBlockProps.save({className:o})},(0,Ke.createElement)(nt.RichText.Content,{multiline:!0,value:n}),!nt.RichText.isEmpty(a)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"cite",value:a}))},migrate:e=>sx(...lx(e))},ux={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"}},migrate:e=>sx(...lx(e)),save({attributes:e}){const{align:t,value:n,citation:a}=e;return(0,Ke.createElement)("blockquote",{style:{textAlign:t||null}},(0,Ke.createElement)(nt.RichText.Content,{multiline:!0,value:n}),!nt.RichText.isEmpty(a)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"cite",value:a}))}},px={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"},style:{type:"number",default:1}},migrate(e){if(2===e.style){const{style:t,...n}=e;return sx(...((e,t)=>[{...e,className:e.className?e.className+" is-style-large":"is-style-large"},t])(...lx(n)))}return sx(...lx(e))},save({attributes:e}){const{align:t,value:n,citation:a,style:o}=e;return(0,Ke.createElement)("blockquote",{className:2===o?"is-large":"",style:{textAlign:t||null}},(0,Ke.createElement)(nt.RichText.Content,{multiline:!0,value:n}),!nt.RichText.isEmpty(a)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"cite",value:a}))}},dx={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"footer",default:""},align:{type:"string"},style:{type:"number",default:1}},migrate(e){if(!isNaN(parseInt(e.style))){const{style:t,...n}=e;return sx(...lx(n))}return sx(...lx(e))},save({attributes:e}){const{align:t,value:n,citation:a,style:o}=e;return(0,Ke.createElement)("blockquote",{className:`blocks-quote-style-${o}`,style:{textAlign:t||null}},(0,Ke.createElement)(nt.RichText.Content,{multiline:!0,value:n}),!nt.RichText.isEmpty(a)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"footer",value:a}))}},gx=[cx,mx,ux,px,dx],hx=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M17.8 2l-.9.3c-.1 0-3.6 1-5.2 2.1C10 5.5 9.3 6.5 8.9 7.1c-.6.9-1.7 4.7-1.7 6.3l-.9 2.3c-.2.4 0 .8.4 1 .1 0 .2.1.3.1.3 0 .6-.2.7-.5l.6-1.5c.3 0 .7-.1 1.2-.2.7-.1 1.4-.3 2.2-.5.8-.2 1.6-.5 2.4-.8.7-.3 1.4-.7 1.9-1.2s.8-1.2 1-1.9c.2-.7.3-1.6.4-2.4.1-.8.1-1.7.2-2.5 0-.8.1-1.5.2-2.1V2zm-1.9 5.6c-.1.8-.2 1.5-.3 2.1-.2.6-.4 1-.6 1.3-.3.3-.8.6-1.4.9-.7.3-1.4.5-2.2.8-.6.2-1.3.3-1.8.4L15 7.5c.3-.3.6-.7 1-1.1 0 .4 0 .8-.1 1.2zM6 20h8v-1.5H6V20z"})),bx="web"===_t.Platform.OS,_x=[["core/paragraph",{}]];const yx={from:[{type:"block",blocks:["core/pullquote"],transform:({value:e,citation:t,anchor:n,fontSize:a,style:o})=>(0,Qe.createBlock)("core/quote",{citation:t,anchor:n,fontSize:a,style:o},[(0,Qe.createBlock)("core/paragraph",{content:e})])},{type:"prefix",prefix:">",transform:e=>(0,Qe.createBlock)("core/quote",{},[(0,Qe.createBlock)("core/paragraph",{content:e})])},{type:"raw",schema:()=>({blockquote:{children:"*"}}),selector:"blockquote",transform:(e,t)=>(0,Qe.createBlock)("core/quote",{},t({HTML:e.innerHTML,mode:"BLOCKS"}))},{type:"block",isMultiBlock:!0,blocks:["*"],isMatch:({},e)=>1===e.length?["core/paragraph","core/heading","core/list","core/pullquote"].includes(e[0].name):!e.some((({name:e})=>"core/quote"===e)),__experimentalConvert:e=>(0,Qe.createBlock)("core/quote",{},e.map((e=>(0,Qe.createBlock)(e.name,e.attributes,e.innerBlocks))))}],to:[{type:"block",blocks:["core/pullquote"],isMatch:({},e)=>e.innerBlocks.every((({name:e})=>"core/paragraph"===e)),transform:({citation:e,anchor:t,fontSize:n,style:a},o)=>{const r=o.map((({attributes:e})=>`${e.content}`)).join("<br>");return(0,Qe.createBlock)("core/pullquote",{value:r,citation:e,anchor:t,fontSize:n,style:a})}},{type:"block",blocks:["core/paragraph"],transform:({citation:e},t)=>nt.RichText.isEmpty(e)?t:[...t,(0,Qe.createBlock)("core/paragraph",{content:e})]},{type:"block",blocks:["core/group"],transform:({citation:e,anchor:t},n)=>(0,Qe.createBlock)("core/group",{anchor:t},nt.RichText.isEmpty(e)?n:[...n,(0,Qe.createBlock)("core/paragraph",{content:e})])}],ungroup:({citation:e},t)=>nt.RichText.isEmpty(e)?t:[...t,(0,Qe.createBlock)("core/paragraph",{content:e})]},vx=yx,fx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/quote",title:"Quote",category:"text",description:'Give quoted text visual emphasis. "In quoting others, we cite ourselves." — Julio Cortázar',keywords:["blockquote","cite"],textdomain:"default",attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:"",__experimentalRole:"content"},citation:{type:"rich-text",source:"rich-text",selector:"cite",__experimentalRole:"content"},textAlign:{type:"string"}},supports:{anchor:!0,html:!1,__experimentalOnEnter:!0,__experimentalOnMerge:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},layout:{allowEditing:!1},spacing:{blockGap:!0},interactivity:{clientNavigation:!0}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"plain",label:"Plain"}],editorStyle:"wp-block-quote-editor",style:"wp-block-quote"},{name:kx}=fx,xx={icon:rx,example:{attributes:{citation:"Julio Cortázar"},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,tt.__)("In quoting others, we cite ourselves.")}}]},transforms:vx,edit:function({attributes:e,setAttributes:t,insertBlocksAfter:n,clientId:a,className:o,style:r,isSelected:l}){const{textAlign:i}=e;((e,t)=>{const n=(0,gt.useRegistry)(),{updateBlockAttributes:a,replaceInnerBlocks:o}=(0,gt.useDispatch)(nt.store);(0,_t.useEffect)((()=>{if(!e.value)return;const[r,l]=lx(e);Xp()("Value attribute on the quote block",{since:"6.0",version:"6.5",alternative:"inner blocks"}),n.batch((()=>{a(t,r),o(t,l)}))}),[e.value])})(e,a);const s=(0,nt.useBlockProps)({className:ut(o,{[`has-text-align-${i}`]:i}),...!bx&&{style:r}}),c=(0,nt.useInnerBlocksProps)(s,{template:_x,templateInsertUpdatesSelection:!0,__experimentalCaptureToolbars:!0,renderAppender:!1});return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(nt.AlignmentControl,{value:i,onChange:e=>{t({textAlign:e})}})),(0,Ke.createElement)(et.BlockQuotation,{...c},c.children,(0,Ke.createElement)(Zt,{attributeKey:"citation",tagName:bx?"cite":"p",style:bx&&{display:"block"},isSelected:l,attributes:e,setAttributes:t,__unstableMobileNoFocusOnMount:!0,icon:hx,label:(0,tt.__)("Quote citation"),placeholder:(0,tt.__)("Add citation"),addLabel:(0,tt.__)("Add citation"),removeLabel:(0,tt.__)("Remove citation"),className:"wp-block-quote__citation",insertBlocksAfter:n,...bx?{}:{textAlign:i}})))},save:function({attributes:e}){const{textAlign:t,citation:n}=e,a=ut({[`has-text-align-${t}`]:t});return(0,Ke.createElement)("blockquote",{...nt.useBlockProps.save({className:a})},(0,Ke.createElement)(nt.InnerBlocks.Content,null),!nt.RichText.isEmpty(n)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"cite",value:n}))},deprecated:gx},wx=()=>Xe({name:kx,metadata:fx,settings:xx}),Ex=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"})),Cx=window.wp.patterns,{useLayoutClasses:Sx}=Ht(nt.privateApis),{isOverridableBlock:Bx}=Ht(Cx.privateApis),Nx=["full","wide","left","right"],Tx=(e,t)=>{const n=(0,_t.useRef)();return(0,_t.useMemo)((()=>{if(!e?.length)return{};let a=n.current;if(void 0===a){const o="constrained"===t?.type,r=e.some((e=>Nx.includes(e.attributes.align)));a=o&&r?"full":null,n.current=a}return{alignment:a,layout:a?t:void 0}}),[e,t])};function Ix(e){return e.some((e=>!!Bx(e)||Ix(e.innerBlocks)))}function Px(e,t,n){t.forEach((t=>{const a=n||(Bx(t)?"contentOnly":"disabled");e(t.clientId,a),Px(e,t.innerBlocks,t.name===Fx?"disabled":n)}))}function Mx(){const e=(0,nt.useBlockProps)();return(0,Ke.createElement)("div",{...e},(0,Ke.createElement)(nt.Warning,null,(0,tt.__)("Block cannot be rendered inside itself.")))}const zx=()=>{};function Rx({name:e,attributes:{ref:t,content:n},__unstableParentLayout:a,clientId:o,setAttributes:r}){const{record:l,hasResolved:i}=(0,dt.useEntityRecord)("postType","wp_block",t),[s]=(0,dt.useEntityBlockEditor)("postType","wp_block",{id:t}),c=i&&!l,{setBlockEditingMode:m,__unstableMarkLastChangeAsPersistent:u}=(0,gt.useDispatch)(nt.store),{innerBlocks:p,userCanEdit:d,onNavigateToEntityRecord:g,editingMode:h,hasPatternOverridesSource:b}=(0,gt.useSelect)((e=>{const{canUser:n}=e(dt.store),{getBlocks:a,getSettings:r,getBlockEditingMode:l}=e(nt.store),{getBlockBindingsSource:i}=Ht(e(Qe.store)),s=n("update","blocks",t);return{innerBlocks:a(o),userCanEdit:s,getBlockEditingMode:l,onNavigateToEntityRecord:r().onNavigateToEntityRecord,editingMode:l(o),hasPatternOverridesSource:!!i("core/pattern-overrides")}}),[o,t]);(0,_t.useEffect)((()=>{Px(m,p,"disabled"!==h&&b?void 0:"disabled")}),[h,p,m,b]);const _=(0,_t.useMemo)((()=>b&&Ix(s)),[b,s]),{alignment:y,layout:v}=Tx(s,a),f=Sx({layout:v},e),k=(0,nt.useBlockProps)({className:ut("block-library-block__reusable-block-container",v&&f,{[`align${y}`]:y})}),x=(0,nt.useInnerBlocksProps)(k,{templateLock:"all",layout:v,value:p.length>0?p:s,onInput:zx,onChange:zx,renderAppender:s?.length?void 0:s.ButtonBlockAppender});let w=null;return c&&(w=(0,Ke.createElement)(nt.Warning,null,(0,tt.__)("Block has been deleted or is unavailable."))),i||(w=(0,Ke.createElement)(et.Placeholder,null,(0,Ke.createElement)(et.Spinner,null))),(0,Ke.createElement)(Ke.Fragment,null,d&&g&&(0,Ke.createElement)(nt.BlockControls,null,(0,Ke.createElement)(et.ToolbarGroup,null,(0,Ke.createElement)(et.ToolbarButton,{onClick:()=>{g({postId:t,postType:"wp_block"})}},(0,tt.__)("Edit original")))),_&&(0,Ke.createElement)(nt.BlockControls,null,(0,Ke.createElement)(et.ToolbarGroup,null,(0,Ke.createElement)(et.ToolbarButton,{onClick:()=>{n&&(u(),r({content:void 0}))},disabled:!n,__experimentalIsFocusable:!0},(0,tt.__)("Reset")))),null===w?(0,Ke.createElement)("div",{...x}):(0,Ke.createElement)("div",{...k},w))}const Ax={attributes:{ref:{type:"number"},content:{type:"object"}},supports:{customClassName:!1,html:!1,inserter:!1,renaming:!1},isEligible:({content:e})=>!!e&&Object.keys(e).every((t=>{return e[t].values&&("object"==typeof(n=e[t].values)&&!Array.isArray(n)&&null!==n);var n})),migrate(e){const{content:t,...n}=e;if(t&&Object.keys(t).length){const e={...t};for(const n in t)e[n]=t[n].values;return{...n,content:e}}return e}},Lx={attributes:{ref:{type:"number"},overrides:{type:"object"}},supports:{customClassName:!1,html:!1,inserter:!1,renaming:!1},isEligible:({overrides:e})=>!!e,migrate(e){const{overrides:t,...n}=e,a={};return Object.keys(t).forEach((e=>{a[e]=t[e]})),{...n,content:a}}},Hx=[Ax,Lx],Dx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/block",title:"Pattern",category:"reusable",description:"Reuse this design across your site.",keywords:["reusable"],textdomain:"default",attributes:{ref:{type:"number"},content:{type:"object"}},supports:{customClassName:!1,html:!1,inserter:!1,renaming:!1,interactivity:{clientNavigation:!0}}},{name:Fx}=Dx,Vx={deprecated:Hx,edit:function(e){const{ref:t}=e.attributes;return(0,nt.useHasRecursion)(t)?(0,Ke.createElement)(Mx,null):(0,Ke.createElement)(nt.RecursionProvider,{uniqueId:t},(0,Ke.createElement)(Rx,{...e}))},icon:Ex,__experimentalLabel:({ref:e})=>{if(!e)return;const t=(0,gt.select)(dt.store).getEditedEntityRecord("postType","wp_block",e);return t?.title?(0,Yn.decodeEntities)(t.title):void 0}},$x=()=>Xe({name:Fx,metadata:Dx,settings:Vx});const Gx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/read-more",title:"Read More",category:"theme",description:"Displays the link of a post, page, or any other content-type.",textdomain:"default",attributes:{content:{type:"string"},linkTarget:{type:"string",default:"_self"}},usesContext:["postId"],supports:{html:!1,color:{gradients:!0,text:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0,textDecoration:!0}},spacing:{margin:["top","bottom"],padding:!0,__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalDefaultControls:{width:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-read-more"},{name:Ox}=Gx,Ux={icon:fn,edit:function({attributes:{content:e,linkTarget:t},setAttributes:n,insertBlocksAfter:a}){const o=(0,nt.useBlockProps)();return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Open in new tab"),onChange:e=>n({linkTarget:e?"_blank":"_self"}),checked:"_blank"===t}))),(0,Ke.createElement)(nt.RichText,{identifier:"content",tagName:"a","aria-label":(0,tt.__)("“Read more” link text"),placeholder:(0,tt.__)("Read more"),value:e,onChange:e=>n({content:e}),__unstableOnSplitAtEnd:()=>a((0,Qe.createBlock)((0,Qe.getDefaultBlockName)())),withoutInteractiveFormatting:!0,...o}))}},qx=()=>Xe({name:Ox,metadata:Gx,settings:Ux}),jx=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M5 10.2h-.8v1.5H5c1.9 0 3.8.8 5.1 2.1 1.4 1.4 2.1 3.2 2.1 5.1v.8h1.5V19c0-2.3-.9-4.5-2.6-6.2-1.6-1.6-3.8-2.6-6.1-2.6zm10.4-1.6C12.6 5.8 8.9 4.2 5 4.2h-.8v1.5H5c3.5 0 6.9 1.4 9.4 3.9s3.9 5.8 3.9 9.4v.8h1.5V19c0-3.9-1.6-7.6-4.4-10.4zM4 20h3v-3H4v3z"}));const Wx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/rss",title:"RSS",category:"widgets",description:"Display entries from any RSS or Atom feed.",keywords:["atom","feed"],textdomain:"default",attributes:{columns:{type:"number",default:2},blockLayout:{type:"string",default:"list"},feedURL:{type:"string",default:""},itemsToShow:{type:"number",default:5},displayExcerpt:{type:"boolean",default:!1},displayAuthor:{type:"boolean",default:!1},displayDate:{type:"boolean",default:!1},excerptLength:{type:"number",default:55}},supports:{align:!0,html:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-rss-editor",style:"wp-block-rss"},{name:Zx}=Wx,Qx={icon:jx,example:{attributes:{feedURL:"https://wordpress.org"}},edit:function({attributes:e,setAttributes:t}){const[n,a]=(0,_t.useState)(!e.feedURL),{blockLayout:o,columns:r,displayAuthor:l,displayDate:i,displayExcerpt:s,excerptLength:c,feedURL:m,itemsToShow:u}=e;function p(n){return()=>{const a=e[n];t({[n]:!a})}}const d=(0,nt.useBlockProps)(),g=(0,tt.__)("RSS URL");if(n)return(0,Ke.createElement)("div",{...d},(0,Ke.createElement)(et.Placeholder,{icon:jx,label:g,instructions:(0,tt.__)("Display entries from any RSS or Atom feed.")},(0,Ke.createElement)("form",{onSubmit:function(e){e.preventDefault(),m&&(t({feedURL:(0,pt.prependHTTP)(m)}),a(!1))},className:"wp-block-rss__placeholder-form"},(0,Ke.createElement)(et.__experimentalInputControl,{__next40pxDefaultSize:!0,label:g,hideLabelFromVision:!0,placeholder:(0,tt.__)("Enter URL here…"),value:m,onChange:e=>t({feedURL:e}),className:"wp-block-rss__placeholder-input"}),(0,Ke.createElement)(et.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit"},(0,tt.__)("Apply")))));const h=[{icon:Vi,title:(0,tt.__)("Edit RSS URL"),onClick:()=>a(!0)},{icon:Mp,title:(0,tt._x)("List view","RSS block display setting"),onClick:()=>t({blockLayout:"list"}),isActive:"list"===o},{icon:au,title:(0,tt._x)("Grid view","RSS block display setting"),onClick:()=>t({blockLayout:"grid"}),isActive:"grid"===o}];return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,null,(0,Ke.createElement)(et.ToolbarGroup,{controls:h})),(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Number of items"),value:u,onChange:e=>t({itemsToShow:e}),min:1,max:20,required:!0}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Display author"),checked:l,onChange:p("displayAuthor")}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Display date"),checked:i,onChange:p("displayDate")}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Display excerpt"),checked:s,onChange:p("displayExcerpt")}),s&&(0,Ke.createElement)(et.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Max number of words in excerpt"),value:c,onChange:e=>t({excerptLength:e}),min:10,max:100,required:!0}),"grid"===o&&(0,Ke.createElement)(et.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Columns"),value:r,onChange:e=>t({columns:e}),min:2,max:6,required:!0}))),(0,Ke.createElement)("div",{...d},(0,Ke.createElement)(et.Disabled,null,(0,Ke.createElement)(ot(),{block:"core/rss",attributes:e}))))}},Kx=()=>Xe({name:Zx,metadata:Wx,settings:Qx}),Yx=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"})),Jx=(0,Ke.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(et.Rect,{x:"7",y:"10",width:"10",height:"4",rx:"1",fill:"currentColor"})),Xx=(0,Ke.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(et.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"9.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}),(0,Ke.createElement)(et.Rect,{x:"16",y:"10",width:"4",height:"4",rx:"1",fill:"currentColor"})),ew=(0,Ke.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(et.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"14.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}),(0,Ke.createElement)(et.Rect,{x:"14",y:"10",width:"4",height:"4",rx:"1",fill:"currentColor"})),tw=(0,Ke.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(et.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"14.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",fill:"none",strokeWidth:"1.5"})),nw=(0,Ke.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(et.Rect,{x:"4.75",y:"7.75",width:"14.5",height:"8.5",rx:"1.25",stroke:"currentColor",fill:"none",strokeWidth:"1.5"}),(0,Ke.createElement)(et.Rect,{x:"8",y:"11",width:"8",height:"2",fill:"currentColor"})),aw=(0,Ke.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(et.Rect,{x:"4.75",y:"17.25",width:"5.5",height:"14.5",transform:"rotate(-90 4.75 17.25)",stroke:"currentColor",fill:"none",strokeWidth:"1.5"}),(0,Ke.createElement)(et.Rect,{x:"4",y:"7",width:"10",height:"2",fill:"currentColor"}));function ow(e){return"%"===e}const rw=[{name:"default",isDefault:!0,attributes:{buttonText:(0,tt.__)("Search"),label:(0,tt.__)("Search")}}],lw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/search",title:"Search",category:"widgets",description:"Help visitors find your content.",keywords:["find"],textdomain:"default",attributes:{label:{type:"string",__experimentalRole:"content"},showLabel:{type:"boolean",default:!0},placeholder:{type:"string",default:"",__experimentalRole:"content"},width:{type:"number"},widthUnit:{type:"string"},buttonText:{type:"string",__experimentalRole:"content"},buttonPosition:{type:"string",default:"button-outside"},buttonUseIcon:{type:"boolean",default:!1},query:{type:"object",default:{}},isSearchFieldHidden:{type:"boolean",default:!1}},supports:{align:["left","center","right"],color:{gradients:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{background:!0,text:!0}},interactivity:!0,typography:{__experimentalSkipSerialization:!0,__experimentalSelector:".wp-block-search__label, .wp-block-search__input, .wp-block-search__button",fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}},html:!1},editorStyle:"wp-block-search-editor",style:"wp-block-search"},{name:iw}=lw,sw={icon:Yx,example:{attributes:{buttonText:(0,tt.__)("Search"),label:(0,tt.__)("Search")},viewportWidth:400},variations:rw,edit:function({className:e,attributes:t,setAttributes:n,toggleSelection:a,isSelected:o,clientId:r}){const{label:l,showLabel:i,placeholder:s,width:c,widthUnit:m,align:u,buttonText:p,buttonPosition:d,buttonUseIcon:g,isSearchFieldHidden:h,style:b}=t,_=(0,gt.useSelect)((e=>{const{getBlockParentsByBlockName:t,wasBlockJustInserted:n}=e(nt.store);return!!t(r,"core/navigation")?.length&&n(r)}),[r]),{__unstableMarkNextChangeAsNotPersistent:y}=(0,gt.useDispatch)(nt.store);(0,_t.useEffect)((()=>{_&&(y(),n({showLabel:!1,buttonUseIcon:!0,buttonPosition:"button-inside"}))}),[y,_,n]);const v=b?.border?.radius,f=(0,nt.__experimentalUseBorderProps)(t);"number"==typeof v&&(f.style.borderRadius=`${v}px`);const k=(0,nt.__experimentalUseColorProps)(t),[x,w]=(0,nt.useSettings)("typography.fluid","layout"),E=(0,nt.getTypographyClassesAndStyles)(t,{typography:{fluid:x},layout:{wideSize:w?.wideSize}}),C=`wp-block-search__width-${(0,jt.useInstanceId)(et.__experimentalUnitControl)}`,S="button-inside"===d,B="button-outside"===d,N="no-button"===d,T="button-only"===d,I=(0,_t.useRef)(),P=(0,_t.useRef)(),M=(0,et.__experimentalUseCustomUnits)({availableUnits:["%","px"],defaultValues:{"%":50,px:350}});(0,_t.useEffect)((()=>{T&&!o&&n({isSearchFieldHidden:!0})}),[T,o,n]),(0,_t.useEffect)((()=>{T&&o&&n({isSearchFieldHidden:!1})}),[T,o,n,c]);const z=[{role:"menuitemradio",title:(0,tt.__)("Button outside"),isActive:"button-outside"===d,icon:Xx,onClick:()=>{n({buttonPosition:"button-outside",isSearchFieldHidden:!1})}},{role:"menuitemradio",title:(0,tt.__)("Button inside"),isActive:"button-inside"===d,icon:ew,onClick:()=>{n({buttonPosition:"button-inside",isSearchFieldHidden:!1})}},{role:"menuitemradio",title:(0,tt.__)("No button"),isActive:"no-button"===d,icon:tw,onClick:()=>{n({buttonPosition:"no-button",isSearchFieldHidden:!1})}},{role:"menuitemradio",title:(0,tt.__)("Button only"),isActive:"button-only"===d,icon:Jx,onClick:()=>{n({buttonPosition:"button-only",isSearchFieldHidden:!0})}}],R=()=>{const e=ut("wp-block-search__input",S?void 0:f.className,E.className),t={...S?{borderRadius:v}:f.style,...E.style,textDecoration:void 0};return(0,Ke.createElement)("input",{type:"search",className:e,style:t,"aria-label":(0,tt.__)("Optional placeholder text"),placeholder:s?void 0:(0,tt.__)("Optional placeholder…"),value:s,onChange:e=>n({placeholder:e.target.value}),ref:I})},A=(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,null,(0,Ke.createElement)(et.ToolbarGroup,null,(0,Ke.createElement)(et.ToolbarButton,{title:(0,tt.__)("Toggle search label"),icon:aw,onClick:()=>{n({showLabel:!i})},className:i?"is-pressed":void 0}),(0,Ke.createElement)(et.ToolbarDropdownMenu,{icon:(()=>{switch(d){case"button-inside":return ew;case"button-outside":return Xx;case"no-button":return tw;case"button-only":return Jx}})(),label:(0,tt.__)("Change button position"),controls:z}),!N&&(0,Ke.createElement)(et.ToolbarButton,{title:(0,tt.__)("Use button with icon"),icon:nw,onClick:()=>{n({buttonUseIcon:!g})},className:g?"is-pressed":void 0}))),(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.BaseControl,{label:(0,tt.__)("Width"),id:C},(0,Ke.createElement)(et.__experimentalUnitControl,{id:C,min:ow(m)?0:220,max:ow(m)?100:void 0,step:1,onChange:e=>{const t="%"===m&&parseInt(e,10)>100?100:e;n({width:parseInt(t,10)})},onUnitChange:e=>{n({width:"%"===e?50:350,widthUnit:e})},__unstableInputWidth:"80px",value:`${c}${m}`,units:M}),(0,Ke.createElement)(et.ButtonGroup,{className:"wp-block-search__components-button-group","aria-label":(0,tt.__)("Percentage Width")},[25,50,75,100].map((e=>(0,Ke.createElement)(et.Button,{key:e,size:"small",variant:e===c&&"%"===m?"primary":void 0,onClick:()=>n({width:e,widthUnit:"%"})},e,"%")))))))),L=e=>e?`calc(${e} + 4px)`:void 0,H=(0,nt.useBlockProps)({className:ut(e,S?"wp-block-search__button-inside":void 0,B?"wp-block-search__button-outside":void 0,N?"wp-block-search__no-button":void 0,T?"wp-block-search__button-only":void 0,g||N?void 0:"wp-block-search__text-button",g&&!N?"wp-block-search__icon-button":void 0,T&&h?"wp-block-search__searchfield-hidden":void 0),style:{...E.style,textDecoration:void 0}}),D=ut("wp-block-search__label",E.className);return(0,Ke.createElement)("div",{...H},A,i&&(0,Ke.createElement)(nt.RichText,{identifier:"label",className:D,"aria-label":(0,tt.__)("Label text"),placeholder:(0,tt.__)("Add label…"),withoutInteractiveFormatting:!0,value:l,onChange:e=>n({label:e}),style:E.style}),(0,Ke.createElement)(et.ResizableBox,{size:{width:`${c}${m}`},className:ut("wp-block-search__inside-wrapper",S?f.className:void 0),style:(()=>{const e=S?f.style:{borderRadius:f.style?.borderRadius,borderTopLeftRadius:f.style?.borderTopLeftRadius,borderTopRightRadius:f.style?.borderTopRightRadius,borderBottomLeftRadius:f.style?.borderBottomLeftRadius,borderBottomRightRadius:f.style?.borderBottomRightRadius},t=void 0!==v&&0!==parseInt(v,10);if(S&&t){if("object"==typeof v){const{topLeft:t,topRight:n,bottomLeft:a,bottomRight:o}=v;return{...e,borderTopLeftRadius:L(t),borderTopRightRadius:L(n),borderBottomLeftRadius:L(a),borderBottomRightRadius:L(o)}}const t=Number.isInteger(v)?`${v}px`:v;e.borderRadius=`calc(${t} + 4px)`}return e})(),minWidth:220,enable:T?{}:{right:"right"!==u,left:"right"===u},onResizeStart:(e,t,o)=>{n({width:parseInt(o.offsetWidth,10),widthUnit:"px"}),a(!1)},onResizeStop:(e,t,o,r)=>{n({width:parseInt(c+r.width,10)}),a(!0)},showHandle:o},(S||B||T)&&(0,Ke.createElement)(Ke.Fragment,null,R(),(()=>{const e=ut("wp-block-search__button",k.className,E.className,S?void 0:f.className,g?"has-icon":void 0,(0,nt.__experimentalGetElementClassName)("button")),t={...k.style,...E.style,...S?{borderRadius:v}:f.style},a=()=>{T&&n({isSearchFieldHidden:!h})};return(0,Ke.createElement)(Ke.Fragment,null,g&&(0,Ke.createElement)("button",{type:"button",className:e,style:t,"aria-label":p?(0,lc.__unstableStripHTML)(p):(0,tt.__)("Search"),onClick:a,ref:P},(0,Ke.createElement)(Mg,{icon:Yx})),!g&&(0,Ke.createElement)(nt.RichText,{identifier:"buttonText",className:e,style:t,"aria-label":(0,tt.__)("Button text"),placeholder:(0,tt.__)("Add button text…"),withoutInteractiveFormatting:!0,value:p,onChange:e=>n({buttonText:e}),onClick:a}))})()),N&&R()))}},cw=()=>Xe({name:iw,metadata:lw,settings:sw}),mw=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M4.5 12.5v4H3V7h1.5v3.987h15V7H21v9.5h-1.5v-4h-15Z"}));const uw={from:[{type:"enter",regExp:/^-{3,}$/,transform:()=>(0,Qe.createBlock)("core/separator")},{type:"raw",selector:"hr",schema:{hr:{}}}]},pw={attributes:{color:{type:"string"},customColor:{type:"string"}},save({attributes:e}){const{color:t,customColor:n}=e,a=(0,nt.getColorClassName)("background-color",t),o=(0,nt.getColorClassName)("color",t),r=ut({"has-text-color has-background":t||n,[a]:a,[o]:o}),l={backgroundColor:a?void 0:n,color:o?void 0:n};return(0,Ke.createElement)("hr",{...nt.useBlockProps.save({className:r,style:l})})},migrate(e){const{color:t,customColor:n,...a}=e;return{...a,backgroundColor:t||void 0,opacity:"css",style:n?{color:{background:n}}:void 0}}},dw=[pw],gw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/separator",title:"Separator",category:"design",description:"Create a break between ideas or sections with a horizontal separator.",keywords:["horizontal-line","hr","divider"],textdomain:"default",attributes:{opacity:{type:"string",default:"alpha-channel"}},supports:{anchor:!0,align:["center","wide","full"],color:{enableContrastChecker:!1,__experimentalSkipSerialization:!0,gradients:!0,background:!0,text:!1,__experimentalDefaultControls:{background:!0}},spacing:{margin:["top","bottom"]},interactivity:{clientNavigation:!0}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"wide",label:"Wide Line"},{name:"dots",label:"Dots"}],editorStyle:"wp-block-separator-editor",style:"wp-block-separator"},{name:hw}=gw,bw={icon:mw,example:{attributes:{customColor:"#065174",className:"is-style-wide"}},transforms:uw,edit:function({attributes:e,setAttributes:t}){const{backgroundColor:n,opacity:a,style:o}=e,r=(0,nt.__experimentalUseColorProps)(e),l=r?.style?.backgroundColor,i=!!o?.color?.background;!function(e,t,n){const[a,o]=(0,_t.useState)(!1),r=(0,jt.usePrevious)(t);(0,_t.useEffect)((()=>{"css"!==e||t||r||o(!0)}),[t,r,e]),(0,_t.useEffect)((()=>{"css"===e&&(a&&t||r&&t!==r)&&(n({opacity:"alpha-channel"}),o(!1))}),[a,t,r])}(a,l,t);const s=(0,nt.getColorClassName)("color",n),c=ut({"has-text-color":n||l,[s]:s,"has-css-opacity":"css"===a,"has-alpha-channel-opacity":"alpha-channel"===a},r.className),m={color:l,backgroundColor:l};return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.HorizontalRule,{...(0,nt.useBlockProps)({className:c,style:i?m:void 0})}))},save:function({attributes:e}){const{backgroundColor:t,style:n,opacity:a}=e,o=n?.color?.background,r=(0,nt.__experimentalGetColorClassesAndStyles)(e),l=(0,nt.getColorClassName)("color",t),i=ut({"has-text-color":t||o,[l]:l,"has-css-opacity":"css"===a,"has-alpha-channel-opacity":"alpha-channel"===a},r.className),s={backgroundColor:r?.style?.backgroundColor,color:l?void 0:o};return(0,Ke.createElement)("hr",{...nt.useBlockProps.save({className:i,style:s})})},deprecated:dw},_w=()=>Xe({name:hw,metadata:gw,settings:bw}),yw=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M16 4.2v1.5h2.5v12.5H16v1.5h4V4.2h-4zM4.2 19.8h4v-1.5H5.8V5.8h2.5V4.2h-4l-.1 15.6zm5.1-3.1l1.4.6 4-10-1.4-.6-4 10z"}));const vw=window.wp.autop,fw={from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:(e,{content:t})=>(0,vw.removep)((0,vw.autop)(t))}},priority:20}]},kw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/shortcode",title:"Shortcode",category:"widgets",description:"Insert additional custom elements with a WordPress shortcode.",textdomain:"default",attributes:{text:{type:"string",source:"raw"}},supports:{className:!1,customClassName:!1,html:!1},editorStyle:"wp-block-shortcode-editor"},{name:xw}=kw,ww={icon:yw,transforms:fw,edit:function e({attributes:t,setAttributes:n}){const a=`blocks-shortcode-input-${(0,jt.useInstanceId)(e)}`;return(0,Ke.createElement)("div",{...(0,nt.useBlockProps)()},(0,Ke.createElement)(et.Placeholder,{icon:yw,label:(0,tt.__)("Shortcode")},(0,Ke.createElement)(nt.PlainText,{className:"blocks-shortcode__textarea",id:a,value:t.text,"aria-label":(0,tt.__)("Shortcode text"),placeholder:(0,tt.__)("Write shortcode here…"),onChange:e=>n({text:e})})))},save:function({attributes:e}){return(0,Ke.createElement)(_t.RawHTML,null,e.text)}},Ew=()=>Xe({name:xw,metadata:kw,settings:ww}),Cw=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M12 3c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 1.5c4.1 0 7.5 3.4 7.5 7.5v.1c-1.4-.8-3.3-1.7-3.4-1.8-.2-.1-.5-.1-.8.1l-2.9 2.1L9 11.3c-.2-.1-.4 0-.6.1l-3.7 2.2c-.1-.5-.2-1-.2-1.5 0-4.2 3.4-7.6 7.5-7.6zm0 15c-3.1 0-5.7-1.9-6.9-4.5l3.7-2.2 3.5 1.2c.2.1.5 0 .7-.1l2.9-2.1c.8.4 2.5 1.2 3.5 1.9-.9 3.3-3.9 5.8-7.4 5.8z"})),Sw=["image"],Bw="image/*",Nw=({alt:e,attributes:{align:t,width:n,height:a,isLink:o,linkTarget:r,shouldSyncIcon:l},isSelected:i,setAttributes:s,setLogo:c,logoUrl:m,siteUrl:u,logoId:p,iconId:d,setIcon:g,canUserEdit:h})=>{const b=(0,jt.useViewportMatch)("medium"),_=!["wide","full"].includes(t)&&b,[{naturalWidth:y,naturalHeight:v},f]=(0,_t.useState)({}),[k,x]=(0,_t.useState)(!1),{toggleSelection:w}=(0,gt.useDispatch)(nt.store),E=ut("custom-logo-link"),{imageEditing:C,maxWidth:S,title:B}=(0,gt.useSelect)((e=>{const t=e(nt.store).getSettings(),n=e(dt.store).getEntityRecord("root","__unstableBase");return{title:n?.name,imageEditing:t.imageEditing,maxWidth:t.maxWidth}}),[]);(0,_t.useEffect)((()=>{l&&p!==d&&s({shouldSyncIcon:!1})}),[]),(0,_t.useEffect)((()=>{i||x(!1)}),[i]);const N=(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)("img",{className:"custom-logo",src:m,alt:e,onLoad:e=>{f({naturalWidth:e.target.naturalWidth,naturalHeight:e.target.naturalHeight})}}),(0,It.isBlobURL)(m)&&(0,Ke.createElement)(et.Spinner,null));let T=N;if(o&&(T=(0,Ke.createElement)("a",{href:u,className:E,rel:"home",title:B,onClick:e=>e.preventDefault()},N)),!_||!y||!v)return(0,Ke.createElement)("div",{style:{width:n,height:a}},T);const I=n||120,P=y/v,M=I/P,z=y<v?tm:Math.ceil(tm*P),R=v<y?tm:Math.ceil(tm/P),A=2.5*S;let L=!1,H=!1;"center"===t?(L=!0,H=!0):(0,tt.isRTL)()?"left"===t?L=!0:H=!0:"right"===t?H=!0:L=!0;const D=p&&y&&v&&C,F=D&&k?(0,Ke.createElement)(nt.__experimentalImageEditor,{id:p,url:m,width:I,height:M,naturalHeight:v,naturalWidth:y,onSaveImage:e=>{c(e.id)},onFinishEditing:()=>{x(!1)}}):(0,Ke.createElement)(et.ResizableBox,{size:{width:I,height:M},showHandle:i,minWidth:z,maxWidth:A,minHeight:R,maxHeight:A/P,lockAspectRatio:!0,enable:{top:!1,right:L,bottom:!0,left:H},onResizeStart:function(){w(!1)},onResizeStop:(e,t,n,a)=>{w(!0),s({width:parseInt(I+a.width,10),height:parseInt(M+a.height,10)})}},T),V=!window?.__experimentalUseCustomizerSiteLogoUrl?u+"/wp-admin/options-general.php":u+"/wp-admin/customize.php?autofocus[section]=title_tagline",$=(0,_t.createInterpolateElement)((0,tt.__)("Site Icons are what you see in browser tabs, bookmark bars, and within the WordPress mobile apps. To use a custom icon that is different from your site logo, use the <a>Site Icon settings</a>."),{a:(0,Ke.createElement)("a",{href:V,target:"_blank",rel:"noopener noreferrer"})});return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Image width"),onChange:e=>s({width:e}),min:z,max:A,initialPosition:Math.min(120,A),value:n||"",disabled:!_}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Link image to home"),onChange:()=>s({isLink:!o}),checked:o}),o&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Open in new tab"),onChange:e=>s({linkTarget:e?"_blank":"_self"}),checked:"_blank"===r})),h&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Use as Site Icon"),onChange:e=>{s({shouldSyncIcon:e}),g(e?p:void 0)},checked:!!l,help:$})))),(0,Ke.createElement)(nt.BlockControls,{group:"block"},D&&!k&&(0,Ke.createElement)(et.ToolbarButton,{onClick:()=>x(!0),icon:op,label:(0,tt.__)("Crop")})),F)};function Tw({onRemoveLogo:e,...t}){return(0,Ke.createElement)(nt.MediaReplaceFlow,{...t,allowedTypes:Sw,accept:Bw},(0,Ke.createElement)(et.MenuItem,{onClick:e},(0,tt.__)("Reset")))}const Iw=({mediaItemData:e={},itemGroupProps:t})=>{const{alt_text:n,source_url:a,slug:o,media_details:r}=e,l=r?.sizes?.full?.file||o;return(0,Ke.createElement)(et.__experimentalItemGroup,{...t,as:"span"},(0,Ke.createElement)(et.__experimentalHStack,{justify:"flex-start",as:"span"},(0,Ke.createElement)("img",{src:a,alt:n}),(0,Ke.createElement)(et.FlexItem,{as:"span"},(0,Ke.createElement)(et.__experimentalTruncate,{numberOfLines:1,className:"block-library-site-logo__inspector-media-replace-title"},l))))};const Pw={to:[{type:"block",blocks:["core/site-title"],transform:({isLink:e,linkTarget:t})=>(0,Qe.createBlock)("core/site-title",{isLink:e,linkTarget:t})}]},Mw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/site-logo",title:"Site Logo",category:"theme",description:"Display an image to represent this site. Update this block and the changes apply everywhere.",textdomain:"default",attributes:{width:{type:"number"},isLink:{type:"boolean",default:!0},linkTarget:{type:"string",default:"_self"},shouldSyncIcon:{type:"boolean"}},example:{viewportWidth:500,attributes:{width:350,className:"block-editor-block-types-list__site-logo-example"}},supports:{html:!1,align:!0,alignWide:!1,color:{__experimentalDuotone:"img, .components-placeholder__illustration, .components-placeholder::before",text:!1,background:!1},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},interactivity:{clientNavigation:!0}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"rounded",label:"Rounded"}],editorStyle:"wp-block-site-logo-editor",style:"wp-block-site-logo"},{name:zw}=Mw,Rw={icon:Cw,example:{},edit:function({attributes:e,className:t,setAttributes:n,isSelected:a}){const{width:o,shouldSyncIcon:r}=e,{siteLogoId:l,canUserEdit:i,url:s,siteIconId:c,mediaItemData:m,isRequestingMediaItem:u}=(0,gt.useSelect)((e=>{const{canUser:t,getEntityRecord:n,getEditedEntityRecord:a}=e(dt.store),o=t("update","settings"),r=o?a("root","site"):void 0,l=n("root","__unstableBase"),i=o?r?.site_logo:l?.site_logo,s=r?.site_icon,c=i&&e(dt.store).getMedia(i,{context:"view"}),m=i&&!e(dt.store).hasFinishedResolution("getMedia",[i,{context:"view"}]);return{siteLogoId:i,canUserEdit:o,url:l?.home,mediaItemData:c,isRequestingMediaItem:m,siteIconId:s}}),[]),{getSettings:p}=(0,gt.useSelect)(nt.store),[d,g]=(0,_t.useState)(),{editEntityRecord:h}=(0,gt.useDispatch)(dt.store),b=(e,t=!1)=>{(r||t)&&_(e),h("root","site",void 0,{site_logo:e})},_=e=>h("root","site",void 0,{site_icon:null!=e?e:null}),{alt_text:y,source_url:v}=null!=m?m:{},f=e=>{if(void 0===r){const t=!c;return n({shouldSyncIcon:t}),void k(e,t)}k(e)},k=(e,t=!1)=>{if(e)return!e.id&&e.url?(g(e.url),void b(void 0)):void b(e.id,t)},{createErrorNotice:x}=(0,gt.useDispatch)(Pt.store),w=e=>{x(e,{type:"snackbar"}),g()},E=e=>{p().mediaUpload({allowedTypes:Sw,filesList:e,onFileChange([e]){(0,It.isBlobURL)(e?.url)?g(e.url):f(e)},onError:w})},C={mediaURL:v,onSelect:k,onError:w,onRemoveLogo:()=>{b(null),n({width:void 0})}},S=i&&v&&!d&&(0,Ke.createElement)(nt.BlockControls,{group:"other"},(0,Ke.createElement)(Tw,{...C}));let B;const N=void 0===l||u;N&&(B=(0,Ke.createElement)(et.Spinner,null)),(0,_t.useEffect)((()=>{v&&d&&g()}),[v,d]),(v||d)&&(B=(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(Nw,{alt:y,attributes:e,className:t,isSelected:a,setAttributes:n,logoUrl:d||v,setLogo:b,logoId:m?.id||l,siteUrl:s,setIcon:_,iconId:c,canUserEdit:i})));const T=ut(t,{"is-default-size":!o,"is-transient":d}),I=(0,nt.useBlockProps)({className:T}),P=(0,tt.__)("Add a site logo"),M=(i||v)&&(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Media")},(0,Ke.createElement)("div",{className:"block-library-site-logo__inspector-media-replace-container"},!i&&!!v&&(0,Ke.createElement)(Iw,{mediaItemData:m,itemGroupProps:{isBordered:!0,className:"block-library-site-logo__inspector-readonly-logo-preview"}}),i&&!!v&&(0,Ke.createElement)(Tw,{...C,name:(0,Ke.createElement)(Iw,{mediaItemData:m}),popoverProps:{}}),i&&!v&&(0,Ke.createElement)(nt.MediaUploadCheck,null,(0,Ke.createElement)(nt.MediaUpload,{onSelect:f,allowedTypes:Sw,render:({open:e})=>(0,Ke.createElement)("div",{className:"block-library-site-logo__inspector-upload-container"},(0,Ke.createElement)(et.Button,{onClick:e,variant:"secondary"},N?(0,Ke.createElement)(et.Spinner,null):(0,tt.__)("Add media")),(0,Ke.createElement)(et.DropZone,{onFilesDrop:E}))})))));return(0,Ke.createElement)("div",{...I},S,M,(!!v||!!d)&&B,!d&&!v&&!i&&(0,Ke.createElement)(et.Placeholder,{className:"site-logo_placeholder"},!!N&&(0,Ke.createElement)("span",{className:"components-placeholder__preview"},(0,Ke.createElement)(et.Spinner,null))),!d&&!v&&i&&(0,Ke.createElement)(nt.MediaPlaceholder,{onSelect:f,accept:Bw,allowedTypes:Sw,onError:w,placeholder:e=>{const n=ut("block-editor-media-placeholder",t);return(0,Ke.createElement)(et.Placeholder,{className:n,preview:B,withIllustration:!0,style:{width:o}},e)},mediaLibraryButton:({open:e})=>(0,Ke.createElement)(et.Button,{icon:lp,variant:"primary",label:P,showTooltip:!0,tooltipPosition:"top center",onClick:()=>{e()}})}))},transforms:Pw},Aw=()=>Xe({name:zw,metadata:Mw,settings:Rw}),Lw=[0,1,2,3,4,5,6];const Hw=(0,Ke.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},(0,Ke.createElement)(et.Path,{d:"M4 10.5h16V9H4v1.5ZM4 15h9v-1.5H4V15Z"})),Dw={attributes:{textAlign:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0}},save:()=>null,migrate:rn,isEligible:({style:e})=>e?.typography?.fontFamily},Fw=[Dw],Vw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/site-tagline",title:"Site Tagline",category:"theme",description:"Describe in a few words what the site is about. The tagline can be used in search results or when sharing on social networks even if it’s not displayed in the theme design.",keywords:["description"],textdomain:"default",attributes:{textAlign:{type:"string"},level:{type:"number",default:0}},example:{},supports:{align:["wide","full"],html:!1,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-site-tagline-editor"},{name:$w}=Vw,Gw={icon:Hw,edit:function({attributes:e,setAttributes:t,insertBlocksAfter:n}){const{textAlign:a,level:o}=e,{canUserEdit:r,tagline:l}=(0,gt.useSelect)((e=>{const{canUser:t,getEntityRecord:n,getEditedEntityRecord:a}=e(dt.store),o=t("update","settings"),r=o?a("root","site"):{},l=n("root","__unstableBase");return{canUserEdit:t("update","settings"),tagline:o?r?.description:l?.description}}),[]),i=0===o?"p":`h${o}`,{editEntityRecord:s}=(0,gt.useDispatch)(dt.store),c=(0,nt.useBlockProps)({className:ut({[`has-text-align-${a}`]:a,"wp-block-site-tagline__placeholder":!r&&!l})}),m=r?(0,Ke.createElement)(nt.RichText,{allowedFormats:[],onChange:function(e){s("root","site",void 0,{description:e})},"aria-label":(0,tt.__)("Site tagline text"),placeholder:(0,tt.__)("Write site tagline…"),tagName:i,value:l,disableLineBreaks:!0,__unstableOnSplitAtEnd:()=>n((0,Qe.createBlock)((0,Qe.getDefaultBlockName)())),...c}):(0,Ke.createElement)(i,{...c},l||(0,tt.__)("Site Tagline placeholder"));return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(nt.HeadingLevelDropdown,{options:Lw,value:o,onChange:e=>t({level:e})}),(0,Ke.createElement)(nt.AlignmentControl,{onChange:e=>t({textAlign:e}),value:a})),m)},deprecated:Fw},Ow=()=>Xe({name:$w,metadata:Vw,settings:Gw}),Uw=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M12 9c-.8 0-1.5.7-1.5 1.5S11.2 12 12 12s1.5-.7 1.5-1.5S12.8 9 12 9zm0-5c-3.6 0-6.5 2.8-6.5 6.2 0 .8.3 1.8.9 3.1.5 1.1 1.2 2.3 2 3.6.7 1 3 3.8 3.2 3.9l.4.5.4-.5c.2-.2 2.6-2.9 3.2-3.9.8-1.2 1.5-2.5 2-3.6.6-1.3.9-2.3.9-3.1C18.5 6.8 15.6 4 12 4zm4.3 8.7c-.5 1-1.1 2.2-1.9 3.4-.5.7-1.7 2.2-2.4 3-.7-.8-1.9-2.3-2.4-3-.8-1.2-1.4-2.3-1.9-3.3-.6-1.4-.7-2.2-.7-2.5 0-2.6 2.2-4.7 5-4.7s5 2.1 5 4.7c0 .2-.1 1-.7 2.4z"})),qw=[0,1,2,3,4,5,6];const jw={attributes:{level:{type:"number",default:1},textAlign:{type:"string"},isLink:{type:"boolean",default:!0},linkTarget:{type:"string",default:"_self"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0},spacing:{padding:!0,margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0}},save:()=>null,migrate:rn,isEligible:({style:e})=>e?.typography?.fontFamily},Ww=[jw],Zw={to:[{type:"block",blocks:["core/site-logo"],transform:({isLink:e,linkTarget:t})=>(0,Qe.createBlock)("core/site-logo",{isLink:e,linkTarget:t})}]},Qw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/site-title",title:"Site Title",category:"theme",description:"Displays the name of this site. Update the block, and the changes apply everywhere it’s used. This will also appear in the browser title bar and in search results.",textdomain:"default",attributes:{level:{type:"number",default:1},textAlign:{type:"string"},isLink:{type:"boolean",default:!0},linkTarget:{type:"string",default:"_self"}},example:{viewportWidth:500},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{padding:!0,margin:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-site-title-editor",style:"wp-block-site-title"},{name:Kw}=Qw,Yw={icon:Uw,example:{},edit:function({attributes:e,setAttributes:t,insertBlocksAfter:n}){const{level:a,textAlign:o,isLink:r,linkTarget:l}=e,{canUserEdit:i,title:s}=(0,gt.useSelect)((e=>{const{canUser:t,getEntityRecord:n,getEditedEntityRecord:a}=e(dt.store),o=t("update","settings"),r=o?a("root","site"):{},l=n("root","__unstableBase");return{canUserEdit:o,title:o?r?.title:l?.name}}),[]),{editEntityRecord:c}=(0,gt.useDispatch)(dt.store),m=0===a?"p":`h${a}`,u=(0,nt.useBlockProps)({className:ut({[`has-text-align-${o}`]:o,"wp-block-site-title__placeholder":!i&&!s})}),p=i?(0,Ke.createElement)(m,{...u},(0,Ke.createElement)(nt.RichText,{tagName:r?"a":"span",href:r?"#site-title-pseudo-link":void 0,"aria-label":(0,tt.__)("Site title text"),placeholder:(0,tt.__)("Write site title…"),value:s,onChange:function(e){c("root","site",void 0,{title:e})},allowedFormats:[],disableLineBreaks:!0,__unstableOnSplitAtEnd:()=>n((0,Qe.createBlock)((0,Qe.getDefaultBlockName)()))})):(0,Ke.createElement)(m,{...u},r?(0,Ke.createElement)("a",{href:"#site-title-pseudo-link",onClick:e=>e.preventDefault()},(0,Yn.decodeEntities)(s)||(0,tt.__)("Site Title placeholder")):(0,Ke.createElement)("span",null,(0,Yn.decodeEntities)(s)||(0,tt.__)("Site Title placeholder")));return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(nt.HeadingLevelDropdown,{options:qw,value:a,onChange:e=>t({level:e})}),(0,Ke.createElement)(nt.AlignmentControl,{value:o,onChange:e=>{t({textAlign:e})}})),(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Make title link to home"),onChange:()=>t({isLink:!r}),checked:r}),r&&(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Open in new tab"),onChange:e=>t({linkTarget:e?"_blank":"_self"}),checked:"_blank"===l}))),p)},transforms:Zw,deprecated:Ww},Jw=()=>Xe({name:Kw,metadata:Qw,settings:Yw}),Xw=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M9 11.8l6.1-4.5c.1.4.4.7.9.7h2c.6 0 1-.4 1-1V5c0-.6-.4-1-1-1h-2c-.6 0-1 .4-1 1v.4l-6.4 4.8c-.2-.1-.4-.2-.6-.2H6c-.6 0-1 .4-1 1v2c0 .6.4 1 1 1h2c.2 0 .4-.1.6-.2l6.4 4.8v.4c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-2c0-.6-.4-1-1-1h-2c-.5 0-.8.3-.9.7L9 12.2v-.4z"})),eE=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"m6.734 16.106 2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.158 1.093-1.028-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734Z"})),tE=()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"})),nE=[{isDefault:!0,name:"wordpress",attributes:{service:"wordpress"},title:"WordPress",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M12.158,12.786L9.46,20.625c0.806,0.237,1.657,0.366,2.54,0.366c1.047,0,2.051-0.181,2.986-0.51 c-0.024-0.038-0.046-0.079-0.065-0.124L12.158,12.786z M3.009,12c0,3.559,2.068,6.634,5.067,8.092L3.788,8.341 C3.289,9.459,3.009,10.696,3.009,12z M18.069,11.546c0-1.112-0.399-1.881-0.741-2.48c-0.456-0.741-0.883-1.368-0.883-2.109 c0-0.826,0.627-1.596,1.51-1.596c0.04,0,0.078,0.005,0.116,0.007C16.472,3.904,14.34,3.009,12,3.009 c-3.141,0-5.904,1.612-7.512,4.052c0.211,0.007,0.41,0.011,0.579,0.011c0.94,0,2.396-0.114,2.396-0.114 C7.947,6.93,8.004,7.642,7.52,7.699c0,0-0.487,0.057-1.029,0.085l3.274,9.739l1.968-5.901l-1.401-3.838 C9.848,7.756,9.389,7.699,9.389,7.699C8.904,7.67,8.961,6.93,9.446,6.958c0,0,1.484,0.114,2.368,0.114 c0.94,0,2.397-0.114,2.397-0.114c0.485-0.028,0.542,0.684,0.057,0.741c0,0-0.488,0.057-1.029,0.085l3.249,9.665l0.897-2.996 C17.841,13.284,18.069,12.316,18.069,11.546z M19.889,7.686c0.039,0.286,0.06,0.593,0.06,0.924c0,0.912-0.171,1.938-0.684,3.22 l-2.746,7.94c2.673-1.558,4.47-4.454,4.47-7.771C20.991,10.436,20.591,8.967,19.889,7.686z M12,22C6.486,22,2,17.514,2,12 C2,6.486,6.486,2,12,2c5.514,0,10,4.486,10,10C22,17.514,17.514,22,12,22z"}))},{name:"fivehundredpx",attributes:{service:"fivehundredpx"},title:"500px",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M6.94026,15.1412c.00437.01213.108.29862.168.44064a6.55008,6.55008,0,1,0,6.03191-9.09557,6.68654,6.68654,0,0,0-2.58357.51467A8.53914,8.53914,0,0,0,8.21268,8.61344L8.209,8.61725V3.22948l9.0504-.00008c.32934-.0036.32934-.46353.32934-.61466s0-.61091-.33035-.61467L7.47248,2a.43.43,0,0,0-.43131.42692v7.58355c0,.24466.30476.42131.58793.4819.553.11812.68074-.05864.81617-.2457l.018-.02481A10.52673,10.52673,0,0,1,9.32258,9.258a5.35268,5.35268,0,1,1,7.58985,7.54976,5.417,5.417,0,0,1-3.80867,1.56365,5.17483,5.17483,0,0,1-2.69822-.74478l.00342-4.61111a2.79372,2.79372,0,0,1,.71372-1.78792,2.61611,2.61611,0,0,1,1.98282-.89477,2.75683,2.75683,0,0,1,1.95525.79477,2.66867,2.66867,0,0,1,.79656,1.909,2.724,2.724,0,0,1-2.75849,2.748,4.94651,4.94651,0,0,1-.86254-.13719c-.31234-.093-.44519.34058-.48892.48349-.16811.54966.08453.65862.13687.67489a3.75751,3.75751,0,0,0,1.25234.18375,3.94634,3.94634,0,1,0-2.82444-6.742,3.67478,3.67478,0,0,0-1.13028,2.584l-.00041.02323c-.0035.11667-.00579,2.881-.00644,3.78811l-.00407-.00451a6.18521,6.18521,0,0,1-1.0851-1.86092c-.10544-.27856-.34358-.22925-.66857-.12917-.14192.04372-.57386.17677-.47833.489Zm4.65165-1.08338a.51346.51346,0,0,0,.19513.31818l.02276.022a.52945.52945,0,0,0,.3517.18416.24242.24242,0,0,0,.16577-.0611c.05473-.05082.67382-.67812.73287-.738l.69041.68819a.28978.28978,0,0,0,.21437.11032.53239.53239,0,0,0,.35708-.19486c.29792-.30419.14885-.46821.07676-.54751l-.69954-.69975.72952-.73469c.16-.17311.01874-.35708-.12218-.498-.20461-.20461-.402-.25742-.52855-.14083l-.7254.72665-.73354-.73375a.20128.20128,0,0,0-.14179-.05695.54135.54135,0,0,0-.34379.19648c-.22561.22555-.274.38149-.15656.5059l.73374.7315-.72942.73072A.26589.26589,0,0,0,11.59191,14.05782Zm1.59866-9.915A8.86081,8.86081,0,0,0,9.854,4.776a.26169.26169,0,0,0-.16938.22759.92978.92978,0,0,0,.08619.42094c.05682.14524.20779.531.50006.41955a8.40969,8.40969,0,0,1,2.91968-.55484,7.87875,7.87875,0,0,1,3.086.62286,8.61817,8.61817,0,0,1,2.30562,1.49315.2781.2781,0,0,0,.18318.07586c.15529,0,.30425-.15253.43167-.29551.21268-.23861.35873-.4369.1492-.63538a8.50425,8.50425,0,0,0-2.62312-1.694A9.0177,9.0177,0,0,0,13.19058,4.14283ZM19.50945,18.6236h0a.93171.93171,0,0,0-.36642-.25406.26589.26589,0,0,0-.27613.06613l-.06943.06929A7.90606,7.90606,0,0,1,7.60639,18.505a7.57284,7.57284,0,0,1-1.696-2.51537,8.58715,8.58715,0,0,1-.5147-1.77754l-.00871-.04864c-.04939-.25873-.28755-.27684-.62981-.22448-.14234.02178-.5755.088-.53426.39969l.001.00712a9.08807,9.08807,0,0,0,15.406,4.99094c.00193-.00192.04753-.04718.0725-.07436C19.79425,19.16234,19.87422,18.98728,19.50945,18.6236Z"}))},{name:"amazon",attributes:{service:"amazon"},title:"Amazon",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M13.582,8.182C11.934,8.367,9.78,8.49,8.238,9.166c-1.781,0.769-3.03,2.337-3.03,4.644 c0,2.953,1.86,4.429,4.253,4.429c2.02,0,3.125-0.477,4.685-2.065c0.516,0.747,0.685,1.109,1.629,1.894 c0.212,0.114,0.483,0.103,0.672-0.066l0.006,0.006c0.567-0.505,1.599-1.401,2.18-1.888c0.231-0.188,0.19-0.496,0.009-0.754 c-0.52-0.718-1.072-1.303-1.072-2.634V8.305c0-1.876,0.133-3.599-1.249-4.891C15.23,2.369,13.422,2,12.04,2 C9.336,2,6.318,3.01,5.686,6.351C5.618,6.706,5.877,6.893,6.109,6.945l2.754,0.298C9.121,7.23,9.308,6.977,9.357,6.72 c0.236-1.151,1.2-1.706,2.284-1.706c0.584,0,1.249,0.215,1.595,0.738c0.398,0.584,0.346,1.384,0.346,2.061V8.182z M13.049,14.088 c-0.451,0.8-1.169,1.291-1.967,1.291c-1.09,0-1.728-0.83-1.728-2.061c0-2.42,2.171-2.86,4.227-2.86v0.615 C13.582,12.181,13.608,13.104,13.049,14.088z M20.683,19.339C18.329,21.076,14.917,22,11.979,22c-4.118,0-7.826-1.522-10.632-4.057 c-0.22-0.199-0.024-0.471,0.241-0.317c3.027,1.762,6.771,2.823,10.639,2.823c2.608,0,5.476-0.541,8.115-1.66 C20.739,18.62,21.072,19.051,20.683,19.339z M21.336,21.043c-0.194,0.163-0.379,0.076-0.293-0.139 c0.284-0.71,0.92-2.298,0.619-2.684c-0.301-0.386-1.99-0.183-2.749-0.092c-0.23,0.027-0.266-0.173-0.059-0.319 c1.348-0.946,3.555-0.673,3.811-0.356C22.925,17.773,22.599,19.986,21.336,21.043z"}))},{name:"bandcamp",attributes:{service:"bandcamp"},title:"Bandcamp",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M15.27 17.289 3 17.289 8.73 6.711 21 6.711 15.27 17.289"}))},{name:"behance",attributes:{service:"behance"},title:"Behance",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M7.799,5.698c0.589,0,1.12,0.051,1.606,0.156c0.482,0.102,0.894,0.273,1.241,0.507c0.344,0.235,0.612,0.546,0.804,0.938 c0.188,0.387,0.281,0.871,0.281,1.443c0,0.619-0.141,1.137-0.421,1.551c-0.284,0.413-0.7,0.751-1.255,1.014 c0.756,0.218,1.317,0.601,1.689,1.146c0.374,0.549,0.557,1.205,0.557,1.975c0,0.623-0.12,1.161-0.359,1.612 c-0.241,0.457-0.569,0.828-0.973,1.114c-0.408,0.288-0.876,0.5-1.399,0.637C9.052,17.931,8.514,18,7.963,18H2V5.698H7.799 M7.449,10.668c0.481,0,0.878-0.114,1.192-0.345c0.311-0.228,0.463-0.603,0.463-1.119c0-0.286-0.051-0.523-0.152-0.707 C8.848,8.315,8.711,8.171,8.536,8.07C8.362,7.966,8.166,7.894,7.94,7.854c-0.224-0.044-0.457-0.06-0.697-0.06H4.709v2.874H7.449z M7.6,15.905c0.267,0,0.521-0.024,0.759-0.077c0.243-0.053,0.457-0.137,0.637-0.261c0.182-0.12,0.332-0.283,0.441-0.491 C9.547,14.87,9.6,14.602,9.6,14.278c0-0.633-0.18-1.084-0.533-1.357c-0.356-0.27-0.83-0.404-1.413-0.404H4.709v3.388L7.6,15.905z M16.162,15.864c0.367,0.358,0.897,0.538,1.583,0.538c0.493,0,0.92-0.125,1.277-0.374c0.354-0.248,0.571-0.514,0.654-0.79h2.155 c-0.347,1.072-0.872,1.838-1.589,2.299C19.534,18,18.67,18.23,17.662,18.23c-0.701,0-1.332-0.113-1.899-0.337 c-0.567-0.227-1.041-0.544-1.439-0.958c-0.389-0.415-0.689-0.907-0.904-1.484c-0.213-0.574-0.32-1.21-0.32-1.899 c0-0.666,0.11-1.288,0.329-1.863c0.222-0.577,0.529-1.075,0.933-1.492c0.406-0.42,0.885-0.751,1.444-0.994 c0.558-0.241,1.175-0.363,1.857-0.363c0.754,0,1.414,0.145,1.98,0.44c0.563,0.291,1.026,0.686,1.389,1.181 c0.363,0.493,0.622,1.057,0.783,1.69c0.16,0.632,0.217,1.292,0.171,1.983h-6.428C15.557,14.84,15.795,15.506,16.162,15.864 M18.973,11.184c-0.291-0.321-0.783-0.496-1.384-0.496c-0.39,0-0.714,0.066-0.973,0.2c-0.254,0.132-0.461,0.297-0.621,0.491 c-0.157,0.197-0.265,0.405-0.328,0.628c-0.063,0.217-0.101,0.413-0.111,0.587h3.98C19.478,11.969,19.265,11.509,18.973,11.184z M15.057,7.738h4.985V6.524h-4.985L15.057,7.738z"}))},{name:"chain",attributes:{service:"chain"},title:"Link",icon:tE},{name:"codepen",attributes:{service:"codepen"},title:"CodePen",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M22.016,8.84c-0.002-0.013-0.005-0.025-0.007-0.037c-0.005-0.025-0.008-0.048-0.015-0.072 c-0.003-0.015-0.01-0.028-0.013-0.042c-0.008-0.02-0.015-0.04-0.023-0.062c-0.007-0.015-0.013-0.028-0.02-0.042 c-0.008-0.02-0.018-0.037-0.03-0.057c-0.007-0.013-0.017-0.027-0.025-0.038c-0.012-0.018-0.023-0.035-0.035-0.052 c-0.01-0.013-0.02-0.025-0.03-0.037c-0.015-0.017-0.028-0.032-0.043-0.045c-0.01-0.012-0.022-0.023-0.035-0.035 c-0.015-0.015-0.032-0.028-0.048-0.04c-0.012-0.01-0.025-0.02-0.037-0.03c-0.005-0.003-0.01-0.008-0.015-0.012l-9.161-6.096 c-0.289-0.192-0.666-0.192-0.955,0L2.359,8.237C2.354,8.24,2.349,8.245,2.344,8.249L2.306,8.277 c-0.017,0.013-0.033,0.027-0.048,0.04C2.246,8.331,2.234,8.342,2.222,8.352c-0.015,0.015-0.028,0.03-0.042,0.047 c-0.012,0.013-0.022,0.023-0.03,0.037C2.139,8.453,2.125,8.471,2.115,8.488C2.107,8.501,2.099,8.514,2.09,8.526 C2.079,8.548,2.069,8.565,2.06,8.585C2.054,8.6,2.047,8.613,2.04,8.626C2.032,8.648,2.025,8.67,2.019,8.69 c-0.005,0.013-0.01,0.027-0.013,0.042C1.999,8.755,1.995,8.778,1.99,8.803C1.989,8.817,1.985,8.828,1.984,8.84 C1.978,8.879,1.975,8.915,1.975,8.954v6.093c0,0.037,0.003,0.075,0.008,0.112c0.002,0.012,0.005,0.025,0.007,0.038 c0.005,0.023,0.008,0.047,0.015,0.072c0.003,0.015,0.008,0.028,0.013,0.04c0.007,0.022,0.013,0.042,0.022,0.063 c0.007,0.015,0.013,0.028,0.02,0.04c0.008,0.02,0.018,0.038,0.03,0.058c0.007,0.013,0.015,0.027,0.025,0.038 c0.012,0.018,0.023,0.035,0.035,0.052c0.01,0.013,0.02,0.025,0.03,0.037c0.013,0.015,0.028,0.032,0.042,0.045 c0.012,0.012,0.023,0.023,0.035,0.035c0.015,0.013,0.032,0.028,0.048,0.04l0.038,0.03c0.005,0.003,0.01,0.007,0.013,0.01 l9.163,6.095C11.668,21.953,11.833,22,12,22c0.167,0,0.332-0.047,0.478-0.144l9.163-6.095l0.015-0.01 c0.013-0.01,0.027-0.02,0.037-0.03c0.018-0.013,0.035-0.028,0.048-0.04c0.013-0.012,0.025-0.023,0.035-0.035 c0.017-0.015,0.03-0.032,0.043-0.045c0.01-0.013,0.02-0.025,0.03-0.037c0.013-0.018,0.025-0.035,0.035-0.052 c0.008-0.013,0.018-0.027,0.025-0.038c0.012-0.02,0.022-0.038,0.03-0.058c0.007-0.013,0.013-0.027,0.02-0.04 c0.008-0.022,0.015-0.042,0.023-0.063c0.003-0.013,0.01-0.027,0.013-0.04c0.007-0.025,0.01-0.048,0.015-0.072 c0.002-0.013,0.005-0.027,0.007-0.037c0.003-0.042,0.007-0.079,0.007-0.117V8.954C22.025,8.915,22.022,8.879,22.016,8.84z M12.862,4.464l6.751,4.49l-3.016,2.013l-3.735-2.492V4.464z M11.138,4.464v4.009l-3.735,2.494L4.389,8.954L11.138,4.464z M3.699,10.562L5.853,12l-2.155,1.438V10.562z M11.138,19.536l-6.749-4.491l3.015-2.011l3.735,2.492V19.536z M12,14.035L8.953,12 L12,9.966L15.047,12L12,14.035z M12.862,19.536v-4.009l3.735-2.492l3.016,2.011L12.862,19.536z M20.303,13.438L18.147,12 l2.156-1.438L20.303,13.438z"}))},{name:"deviantart",attributes:{service:"deviantart"},title:"DeviantArt",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M 18.19 5.636 18.19 2 18.188 2 14.553 2 14.19 2.366 12.474 5.636 11.935 6 5.81 6 5.81 10.994 9.177 10.994 9.477 11.357 5.81 18.363 5.81 22 5.811 22 9.447 22 9.81 21.634 11.526 18.364 12.065 18 18.19 18 18.19 13.006 14.823 13.006 14.523 12.641 18.19 5.636z"}))},{name:"dribbble",attributes:{service:"dribbble"},title:"Dribbble",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M12,22C6.486,22,2,17.514,2,12S6.486,2,12,2c5.514,0,10,4.486,10,10S17.514,22,12,22z M20.434,13.369 c-0.292-0.092-2.644-0.794-5.32-0.365c1.117,3.07,1.572,5.57,1.659,6.09C18.689,17.798,20.053,15.745,20.434,13.369z M15.336,19.876c-0.127-0.749-0.623-3.361-1.822-6.477c-0.019,0.006-0.038,0.013-0.056,0.019c-4.818,1.679-6.547,5.02-6.701,5.334 c1.448,1.129,3.268,1.803,5.243,1.803C13.183,20.555,14.311,20.313,15.336,19.876z M5.654,17.724 c0.193-0.331,2.538-4.213,6.943-5.637c0.111-0.036,0.224-0.07,0.337-0.102c-0.214-0.485-0.448-0.971-0.692-1.45 c-4.266,1.277-8.405,1.223-8.778,1.216c-0.003,0.087-0.004,0.174-0.004,0.261C3.458,14.207,4.29,16.21,5.654,17.724z M3.639,10.264 c0.382,0.005,3.901,0.02,7.897-1.041c-1.415-2.516-2.942-4.631-3.167-4.94C5.979,5.41,4.193,7.613,3.639,10.264z M9.998,3.709 c0.236,0.316,1.787,2.429,3.187,5c3.037-1.138,4.323-2.867,4.477-3.085C16.154,4.286,14.17,3.471,12,3.471 C11.311,3.471,10.641,3.554,9.998,3.709z M18.612,6.612C18.432,6.855,17,8.69,13.842,9.979c0.199,0.407,0.389,0.821,0.567,1.237 c0.063,0.148,0.124,0.295,0.184,0.441c2.842-0.357,5.666,0.215,5.948,0.275C20.522,9.916,19.801,8.065,18.612,6.612z"}))},{name:"dropbox",attributes:{service:"dropbox"},title:"Dropbox",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M12,6.134L6.069,9.797L2,6.54l5.883-3.843L12,6.134z M2,13.054l5.883,3.843L12,13.459L6.069,9.797L2,13.054z M12,13.459 l4.116,3.439L22,13.054l-4.069-3.257L12,13.459z M22,6.54l-5.884-3.843L12,6.134l5.931,3.663L22,6.54z M12.011,14.2l-4.129,3.426 l-1.767-1.153v1.291l5.896,3.539l5.897-3.539v-1.291l-1.769,1.153L12.011,14.2z"}))},{name:"etsy",attributes:{service:"etsy"},title:"Etsy",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M9.16033,4.038c0-.27174.02717-.43478.48913-.43478h6.22283c1.087,0,1.68478.92391,2.11957,2.663l.35326,1.38587h1.05978C19.59511,3.712,19.75815,2,19.75815,2s-2.663.29891-4.23913.29891h-7.962L3.29076,2.163v1.1413L4.731,3.57609c1.00543.19022,1.25.40761,1.33152,1.33152,0,0,.08152,2.71739.08152,7.20109s-.08152,7.17391-.08152,7.17391c0,.81522-.32609,1.11413-1.33152,1.30435l-1.44022.27174V22l4.2663-.13587h7.11957c1.60326,0,5.32609.13587,5.32609.13587.08152-.97826.625-5.40761.70652-5.89674H19.7038L18.644,18.52174c-.84239,1.90217-2.06522,2.038-3.42391,2.038H11.1712c-1.3587,0-2.01087-.54348-2.01087-1.712V12.65217s3.0163,0,3.99457.08152c.76087.05435,1.22283.27174,1.46739,1.33152l.32609,1.413h1.16848l-.08152-3.55978.163-3.587H15.02989l-.38043,1.57609c-.24457,1.03261-.40761,1.22283-1.46739,1.33152-1.38587.13587-4.02174.1087-4.02174.1087Z"}))},{name:"facebook",attributes:{service:"facebook"},title:"Facebook",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M12 2C6.5 2 2 6.5 2 12c0 5 3.7 9.1 8.4 9.9v-7H7.9V12h2.5V9.8c0-2.5 1.5-3.9 3.8-3.9 1.1 0 2.2.2 2.2.2v2.5h-1.3c-1.2 0-1.6.8-1.6 1.6V12h2.8l-.4 2.9h-2.3v7C18.3 21.1 22 17 22 12c0-5.5-4.5-10-10-10z"}))},{name:"feed",attributes:{service:"feed"},title:"RSS Feed",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M2,8.667V12c5.515,0,10,4.485,10,10h3.333C15.333,14.637,9.363,8.667,2,8.667z M2,2v3.333 c9.19,0,16.667,7.477,16.667,16.667H22C22,10.955,13.045,2,2,2z M4.5,17C3.118,17,2,18.12,2,19.5S3.118,22,4.5,22S7,20.88,7,19.5 S5.882,17,4.5,17z"}))},{name:"flickr",attributes:{service:"flickr"},title:"Flickr",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M6.5,7c-2.75,0-5,2.25-5,5s2.25,5,5,5s5-2.25,5-5S9.25,7,6.5,7z M17.5,7c-2.75,0-5,2.25-5,5s2.25,5,5,5s5-2.25,5-5 S20.25,7,17.5,7z"}))},{name:"foursquare",attributes:{service:"foursquare"},title:"Foursquare",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M17.573,2c0,0-9.197,0-10.668,0S5,3.107,5,3.805s0,16.948,0,16.948c0,0.785,0.422,1.077,0.66,1.172 c0.238,0.097,0.892,0.177,1.285-0.275c0,0,5.035-5.843,5.122-5.93c0.132-0.132,0.132-0.132,0.262-0.132h3.26 c1.368,0,1.588-0.977,1.732-1.552c0.078-0.318,0.692-3.428,1.225-6.122l0.675-3.368C19.56,2.893,19.14,2,17.573,2z M16.495,7.22 c-0.053,0.252-0.372,0.518-0.665,0.518c-0.293,0-4.157,0-4.157,0c-0.467,0-0.802,0.318-0.802,0.787v0.508 c0,0.467,0.337,0.798,0.805,0.798c0,0,3.197,0,3.528,0s0.655,0.362,0.583,0.715c-0.072,0.353-0.407,2.102-0.448,2.295 c-0.04,0.193-0.262,0.523-0.655,0.523c-0.33,0-2.88,0-2.88,0c-0.523,0-0.683,0.068-1.033,0.503 c-0.35,0.437-3.505,4.223-3.505,4.223c-0.032,0.035-0.063,0.027-0.063-0.015V4.852c0-0.298,0.26-0.648,0.648-0.648 c0,0,8.228,0,8.562,0c0.315,0,0.61,0.297,0.528,0.683L16.495,7.22z"}))},{name:"goodreads",attributes:{service:"goodreads"},title:"Goodreads",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M17.3,17.5c-0.2,0.8-0.5,1.4-1,1.9c-0.4,0.5-1,0.9-1.7,1.2C13.9,20.9,13.1,21,12,21c-0.6,0-1.3-0.1-1.9-0.2 c-0.6-0.1-1.1-0.4-1.6-0.7c-0.5-0.3-0.9-0.7-1.2-1.2c-0.3-0.5-0.5-1.1-0.5-1.7h1.5c0.1,0.5,0.2,0.9,0.5,1.2 c0.2,0.3,0.5,0.6,0.9,0.8c0.3,0.2,0.7,0.3,1.1,0.4c0.4,0.1,0.8,0.1,1.2,0.1c1.4,0,2.5-0.4,3.1-1.2c0.6-0.8,1-2,1-3.5v-1.7h0 c-0.4,0.8-0.9,1.4-1.6,1.9c-0.7,0.5-1.5,0.7-2.4,0.7c-1,0-1.9-0.2-2.6-0.5C8.7,15,8.1,14.5,7.7,14c-0.5-0.6-0.8-1.3-1-2.1 c-0.2-0.8-0.3-1.6-0.3-2.5c0-0.9,0.1-1.7,0.4-2.5c0.3-0.8,0.6-1.5,1.1-2c0.5-0.6,1.1-1,1.8-1.4C10.3,3.2,11.1,3,12,3 c0.5,0,0.9,0.1,1.3,0.2c0.4,0.1,0.8,0.3,1.1,0.5c0.3,0.2,0.6,0.5,0.9,0.8c0.3,0.3,0.5,0.6,0.6,1h0V3.4h1.5V15 C17.6,15.9,17.5,16.7,17.3,17.5z M13.8,14.1c0.5-0.3,0.9-0.7,1.3-1.1c0.3-0.5,0.6-1,0.8-1.6c0.2-0.6,0.3-1.2,0.3-1.9 c0-0.6-0.1-1.2-0.2-1.9c-0.1-0.6-0.4-1.2-0.7-1.7c-0.3-0.5-0.7-0.9-1.3-1.2c-0.5-0.3-1.1-0.5-1.9-0.5s-1.4,0.2-1.9,0.5 c-0.5,0.3-1,0.7-1.3,1.2C8.5,6.4,8.3,7,8.1,7.6C8,8.2,7.9,8.9,7.9,9.5c0,0.6,0.1,1.3,0.2,1.9C8.3,12,8.6,12.5,8.9,13 c0.3,0.5,0.8,0.8,1.3,1.1c0.5,0.3,1.1,0.4,1.9,0.4C12.7,14.5,13.3,14.4,13.8,14.1z"}))},{name:"google",attributes:{service:"google"},title:"Google",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M12.02,10.18v3.72v0.01h5.51c-0.26,1.57-1.67,4.22-5.5,4.22c-3.31,0-6.01-2.75-6.01-6.12s2.7-6.12,6.01-6.12 c1.87,0,3.13,0.8,3.85,1.48l2.84-2.76C16.99,2.99,14.73,2,12.03,2c-5.52,0-10,4.48-10,10s4.48,10,10,10c5.77,0,9.6-4.06,9.6-9.77 c0-0.83-0.11-1.42-0.25-2.05H12.02z"}))},{name:"github",attributes:{service:"github"},title:"GitHub",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M12,2C6.477,2,2,6.477,2,12c0,4.419,2.865,8.166,6.839,9.489c0.5,0.09,0.682-0.218,0.682-0.484 c0-0.236-0.009-0.866-0.014-1.699c-2.782,0.602-3.369-1.34-3.369-1.34c-0.455-1.157-1.11-1.465-1.11-1.465 c-0.909-0.62,0.069-0.608,0.069-0.608c1.004,0.071,1.532,1.03,1.532,1.03c0.891,1.529,2.341,1.089,2.91,0.833 c0.091-0.647,0.349-1.086,0.635-1.337c-2.22-0.251-4.555-1.111-4.555-4.943c0-1.091,0.39-1.984,1.03-2.682 C6.546,8.54,6.202,7.524,6.746,6.148c0,0,0.84-0.269,2.75,1.025C10.295,6.95,11.15,6.84,12,6.836 c0.85,0.004,1.705,0.114,2.504,0.336c1.909-1.294,2.748-1.025,2.748-1.025c0.546,1.376,0.202,2.394,0.1,2.646 c0.64,0.699,1.026,1.591,1.026,2.682c0,3.841-2.337,4.687-4.565,4.935c0.359,0.307,0.679,0.917,0.679,1.852 c0,1.335-0.012,2.415-0.012,2.741c0,0.269,0.18,0.579,0.688,0.481C19.138,20.161,22,16.416,22,12C22,6.477,17.523,2,12,2z"}))},{name:"gravatar",attributes:{service:"gravatar"},title:"Gravatar",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M10.8001 4.69937V10.6494C10.8001 11.1001 10.9791 11.5323 11.2978 11.851C11.6165 12.1697 12.0487 12.3487 12.4994 12.3487C12.9501 12.3487 13.3824 12.1697 13.7011 11.851C14.0198 11.5323 14.1988 11.1001 14.1988 10.6494V6.69089C15.2418 7.05861 16.1371 7.75537 16.7496 8.67617C17.3622 9.59698 17.6589 10.6919 17.595 11.796C17.5311 12.9001 17.1101 13.9535 16.3954 14.7975C15.6807 15.6415 14.711 16.2303 13.6325 16.4753C12.5541 16.7202 11.4252 16.608 10.4161 16.1555C9.40691 15.703 8.57217 14.9348 8.03763 13.9667C7.50308 12.9985 7.29769 11.8828 7.45242 10.7877C7.60714 9.69266 8.11359 8.67755 8.89545 7.89537C9.20904 7.57521 9.38364 7.14426 9.38132 6.69611C9.37899 6.24797 9.19994 5.81884 8.88305 5.50195C8.56616 5.18506 8.13704 5.00601 7.68889 5.00369C7.24075 5.00137 6.80979 5.17597 6.48964 5.48956C5.09907 6.8801 4.23369 8.7098 4.04094 10.6669C3.84819 12.624 4.34 14.5873 5.43257 16.2224C6.52515 17.8575 8.15088 19.0632 10.0328 19.634C11.9146 20.2049 13.9362 20.1055 15.753 19.3529C17.5699 18.6003 19.0695 17.241 19.9965 15.5066C20.9234 13.7722 21.2203 11.7701 20.8366 9.84133C20.4528 7.91259 19.4122 6.17658 17.892 4.92911C16.3717 3.68163 14.466 2.99987 12.4994 3C12.0487 3 11.6165 3.17904 11.2978 3.49773C10.9791 3.81643 10.8001 4.24867 10.8001 4.69937Z"}))},{name:"instagram",attributes:{service:"instagram"},title:"Instagram",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M12,4.622c2.403,0,2.688,0.009,3.637,0.052c0.877,0.04,1.354,0.187,1.671,0.31c0.42,0.163,0.72,0.358,1.035,0.673 c0.315,0.315,0.51,0.615,0.673,1.035c0.123,0.317,0.27,0.794,0.31,1.671c0.043,0.949,0.052,1.234,0.052,3.637 s-0.009,2.688-0.052,3.637c-0.04,0.877-0.187,1.354-0.31,1.671c-0.163,0.42-0.358,0.72-0.673,1.035 c-0.315,0.315-0.615,0.51-1.035,0.673c-0.317,0.123-0.794,0.27-1.671,0.31c-0.949,0.043-1.233,0.052-3.637,0.052 s-2.688-0.009-3.637-0.052c-0.877-0.04-1.354-0.187-1.671-0.31c-0.42-0.163-0.72-0.358-1.035-0.673 c-0.315-0.315-0.51-0.615-0.673-1.035c-0.123-0.317-0.27-0.794-0.31-1.671C4.631,14.688,4.622,14.403,4.622,12 s0.009-2.688,0.052-3.637c0.04-0.877,0.187-1.354,0.31-1.671c0.163-0.42,0.358-0.72,0.673-1.035 c0.315-0.315,0.615-0.51,1.035-0.673c0.317-0.123,0.794-0.27,1.671-0.31C9.312,4.631,9.597,4.622,12,4.622 M12,3 C9.556,3,9.249,3.01,8.289,3.054C7.331,3.098,6.677,3.25,6.105,3.472C5.513,3.702,5.011,4.01,4.511,4.511 c-0.5,0.5-0.808,1.002-1.038,1.594C3.25,6.677,3.098,7.331,3.054,8.289C3.01,9.249,3,9.556,3,12c0,2.444,0.01,2.751,0.054,3.711 c0.044,0.958,0.196,1.612,0.418,2.185c0.23,0.592,0.538,1.094,1.038,1.594c0.5,0.5,1.002,0.808,1.594,1.038 c0.572,0.222,1.227,0.375,2.185,0.418C9.249,20.99,9.556,21,12,21s2.751-0.01,3.711-0.054c0.958-0.044,1.612-0.196,2.185-0.418 c0.592-0.23,1.094-0.538,1.594-1.038c0.5-0.5,0.808-1.002,1.038-1.594c0.222-0.572,0.375-1.227,0.418-2.185 C20.99,14.751,21,14.444,21,12s-0.01-2.751-0.054-3.711c-0.044-0.958-0.196-1.612-0.418-2.185c-0.23-0.592-0.538-1.094-1.038-1.594 c-0.5-0.5-1.002-0.808-1.594-1.038c-0.572-0.222-1.227-0.375-2.185-0.418C14.751,3.01,14.444,3,12,3L12,3z M12,7.378 c-2.552,0-4.622,2.069-4.622,4.622S9.448,16.622,12,16.622s4.622-2.069,4.622-4.622S14.552,7.378,12,7.378z M12,15 c-1.657,0-3-1.343-3-3s1.343-3,3-3s3,1.343,3,3S13.657,15,12,15z M16.804,6.116c-0.596,0-1.08,0.484-1.08,1.08 s0.484,1.08,1.08,1.08c0.596,0,1.08-0.484,1.08-1.08S17.401,6.116,16.804,6.116z"}))},{name:"lastfm",attributes:{service:"lastfm"},title:"Last.fm",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M 12.0002 1.5 C 6.2006 1.5 1.5 6.2011 1.5 11.9998 C 1.5 17.799 6.2006 22.5 12.0002 22.5 C 17.799 22.5 22.5 17.799 22.5 11.9998 C 22.5 6.2011 17.799 1.5 12.0002 1.5 Z M 16.1974 16.2204 C 14.8164 16.2152 13.9346 15.587 13.3345 14.1859 L 13.1816 13.8451 L 11.8541 10.8101 C 11.4271 9.7688 10.3526 9.0712 9.1801 9.0712 C 7.5695 9.0712 6.2593 10.3851 6.2593 12.001 C 6.2593 13.6165 7.5695 14.9303 9.1801 14.9303 C 10.272 14.9303 11.2651 14.3275 11.772 13.3567 C 11.7893 13.3235 11.8239 13.302 11.863 13.3038 C 11.9007 13.3054 11.9353 13.3288 11.9504 13.3632 L 12.4865 14.6046 C 12.5016 14.639 12.4956 14.6778 12.4723 14.7069 C 11.6605 15.6995 10.4602 16.2683 9.1801 16.2683 C 6.8331 16.2683 4.9234 14.3536 4.9234 12.001 C 4.9234 9.6468 6.833 7.732 9.1801 7.732 C 10.9572 7.732 12.3909 8.6907 13.1138 10.3636 C 13.1206 10.3802 13.8412 12.0708 14.4744 13.5191 C 14.8486 14.374 15.1462 14.896 16.1288 14.9292 C 17.0663 14.9613 17.7538 14.4122 17.7538 13.6485 C 17.7538 12.9691 17.3321 12.8004 16.3803 12.4822 C 14.7365 11.9398 13.845 11.3861 13.845 10.0182 C 13.845 8.6809 14.7667 7.8162 16.192 7.8162 C 17.1288 7.8162 17.8155 8.2287 18.2921 9.0768 C 18.305 9.1006 18.3079 9.1281 18.3004 9.1542 C 18.2929 9.1803 18.2748 9.2021 18.2507 9.2138 L 17.3614 9.669 C 17.3178 9.692 17.2643 9.6781 17.2356 9.6385 C 16.9329 9.2135 16.5956 9.0251 16.1423 9.0251 C 15.5512 9.0251 15.122 9.429 15.122 9.9865 C 15.122 10.6738 15.6529 10.8414 16.5339 11.1192 C 16.6491 11.1558 16.7696 11.194 16.8939 11.2343 C 18.2763 11.6865 19.0768 12.2311 19.0768 13.6836 C 19.0769 15.1297 17.8389 16.2204 16.1974 16.2204 Z"}))},{name:"linkedin",attributes:{service:"linkedin"},title:"LinkedIn",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M19.7,3H4.3C3.582,3,3,3.582,3,4.3v15.4C3,20.418,3.582,21,4.3,21h15.4c0.718,0,1.3-0.582,1.3-1.3V4.3 C21,3.582,20.418,3,19.7,3z M8.339,18.338H5.667v-8.59h2.672V18.338z M7.004,8.574c-0.857,0-1.549-0.694-1.549-1.548 c0-0.855,0.691-1.548,1.549-1.548c0.854,0,1.547,0.694,1.547,1.548C8.551,7.881,7.858,8.574,7.004,8.574z M18.339,18.338h-2.669 v-4.177c0-0.996-0.017-2.278-1.387-2.278c-1.389,0-1.601,1.086-1.601,2.206v4.249h-2.667v-8.59h2.559v1.174h0.037 c0.356-0.675,1.227-1.387,2.526-1.387c2.703,0,3.203,1.779,3.203,4.092V18.338z"}))},{name:"mail",attributes:{service:"mail"},title:"Mail",keywords:["email","e-mail"],icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M19 5H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm.5 12c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l7.5 5.6 7.5-5.6V17zm0-9.1L12 13.6 4.5 7.9V7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v.9z"}))},{name:"mastodon",attributes:{service:"mastodon"},title:"Mastodon",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M23.193 7.879c0-5.206-3.411-6.732-3.411-6.732C18.062.357 15.108.025 12.041 0h-.076c-3.068.025-6.02.357-7.74 1.147 0 0-3.411 1.526-3.411 6.732 0 1.192-.023 2.618.015 4.129.124 5.092.934 10.109 5.641 11.355 2.17.574 4.034.695 5.535.612 2.722-.15 4.25-.972 4.25-.972l-.09-1.975s-1.945.613-4.129.539c-2.165-.074-4.449-.233-4.799-2.891a5.499 5.499 0 0 1-.048-.745s2.125.52 4.817.643c1.646.075 3.19-.097 4.758-.283 3.007-.359 5.625-2.212 5.954-3.905.517-2.665.475-6.507.475-6.507zm-4.024 6.709h-2.497V8.469c0-1.29-.543-1.944-1.628-1.944-1.2 0-1.802.776-1.802 2.312v3.349h-2.483v-3.35c0-1.536-.602-2.312-1.802-2.312-1.085 0-1.628.655-1.628 1.944v6.119H4.832V8.284c0-1.289.328-2.313.987-3.07.68-.758 1.569-1.146 2.674-1.146 1.278 0 2.246.491 2.886 1.474L12 6.585l.622-1.043c.64-.983 1.608-1.474 2.886-1.474 1.104 0 1.994.388 2.674 1.146.658.757.986 1.781.986 3.07v6.304z"}))},{name:"meetup",attributes:{service:"meetup"},title:"Meetup",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M19.24775,14.722a3.57032,3.57032,0,0,1-2.94457,3.52073,3.61886,3.61886,0,0,1-.64652.05634c-.07314-.0008-.10187.02846-.12507.09547A2.38881,2.38881,0,0,1,13.49453,20.094a2.33092,2.33092,0,0,1-1.827-.50716.13635.13635,0,0,0-.19878-.00408,3.191,3.191,0,0,1-2.104.60248,3.26309,3.26309,0,0,1-3.00324-2.71993,2.19076,2.19076,0,0,1-.03512-.30865c-.00156-.08579-.03413-.1189-.11608-.13493a2.86421,2.86421,0,0,1-1.23189-.56111,2.945,2.945,0,0,1-1.166-2.05749,2.97484,2.97484,0,0,1,.87524-2.50774.112.112,0,0,0,.02091-.16107,2.7213,2.7213,0,0,1-.36648-1.48A2.81256,2.81256,0,0,1,6.57673,7.58838a.35764.35764,0,0,0,.28869-.22819,4.2208,4.2208,0,0,1,6.02892-1.90111.25161.25161,0,0,0,.22023.0243,3.65608,3.65608,0,0,1,3.76031.90678A3.57244,3.57244,0,0,1,17.95918,8.626a2.97339,2.97339,0,0,1,.01829.57356.10637.10637,0,0,0,.0853.12792,1.97669,1.97669,0,0,1,1.27939,1.33733,2.00266,2.00266,0,0,1-.57112,2.12652c-.05284.05166-.04168.08328-.01173.13489A3.51189,3.51189,0,0,1,19.24775,14.722Zm-6.35959-.27836a1.6984,1.6984,0,0,0,1.14556,1.61113,3.82039,3.82039,0,0,0,1.036.17935,1.46888,1.46888,0,0,0,.73509-.12255.44082.44082,0,0,0,.26057-.44274.45312.45312,0,0,0-.29211-.43375.97191.97191,0,0,0-.20678-.063c-.21326-.03806-.42754-.0701-.63973-.11215a.54787.54787,0,0,1-.50172-.60926,2.75864,2.75864,0,0,1,.1773-.901c.1763-.535.414-1.045.64183-1.55913A12.686,12.686,0,0,0,15.85,10.47863a1.58461,1.58461,0,0,0,.04861-.87208,1.04531,1.04531,0,0,0-.85432-.83981,1.60658,1.60658,0,0,0-1.23654.16594.27593.27593,0,0,1-.36286-.03413c-.085-.0747-.16594-.15379-.24918-.23055a.98682.98682,0,0,0-1.33577-.04933,6.1468,6.1468,0,0,1-.4989.41615.47762.47762,0,0,1-.51535.03566c-.17448-.09307-.35512-.175-.53531-.25665a1.74949,1.74949,0,0,0-.56476-.2016,1.69943,1.69943,0,0,0-1.61654.91787,8.05815,8.05815,0,0,0-.32952.80126c-.45471,1.2557-.82507,2.53825-1.20838,3.81639a1.24151,1.24151,0,0,0,.51532,1.44389,1.42659,1.42659,0,0,0,1.22008.17166,1.09728,1.09728,0,0,0,.66994-.69764c.44145-1.04111.839-2.09989,1.25981-3.14926.11581-.28876.22792-.57874.35078-.86438a.44548.44548,0,0,1,.69189-.19539.50521.50521,0,0,1,.15044.43836,1.75625,1.75625,0,0,1-.14731.50453c-.27379.69219-.55265,1.38236-.82766,2.074a2.0836,2.0836,0,0,0-.14038.42876.50719.50719,0,0,0,.27082.57722.87236.87236,0,0,0,.66145.02739.99137.99137,0,0,0,.53406-.532q.61571-1.20914,1.228-2.42031.28423-.55863.57585-1.1133a.87189.87189,0,0,1,.29055-.35253.34987.34987,0,0,1,.37634-.01265.30291.30291,0,0,1,.12434.31459.56716.56716,0,0,1-.04655.1915c-.05318.12739-.10286.25669-.16183.38156-.34118.71775-.68754,1.43273-1.02568,2.152A2.00213,2.00213,0,0,0,12.88816,14.44366Zm4.78568,5.28972a.88573.88573,0,0,0-1.77139.00465.8857.8857,0,0,0,1.77139-.00465Zm-14.83838-7.296a.84329.84329,0,1,0,.00827-1.68655.8433.8433,0,0,0-.00827,1.68655Zm10.366-9.43673a.83506.83506,0,1,0-.0091,1.67.83505.83505,0,0,0,.0091-1.67Zm6.85014,5.22a.71651.71651,0,0,0-1.433.0093.71656.71656,0,0,0,1.433-.0093ZM5.37528,6.17908A.63823.63823,0,1,0,6.015,5.54483.62292.62292,0,0,0,5.37528,6.17908Zm6.68214,14.80843a.54949.54949,0,1,0-.55052.541A.54556.54556,0,0,0,12.05742,20.98752Zm8.53235-8.49689a.54777.54777,0,0,0-.54027.54023.53327.53327,0,0,0,.532.52293.51548.51548,0,0,0,.53272-.5237A.53187.53187,0,0,0,20.58977,12.49063ZM7.82846,2.4715a.44927.44927,0,1,0,.44484.44766A.43821.43821,0,0,0,7.82846,2.4715Zm13.775,7.60492a.41186.41186,0,0,0-.40065.39623.40178.40178,0,0,0,.40168.40168A.38994.38994,0,0,0,22,10.48172.39946.39946,0,0,0,21.60349,10.07642ZM5.79193,17.96207a.40469.40469,0,0,0-.397-.39646.399.399,0,0,0-.396.405.39234.39234,0,0,0,.39939.389A.39857.39857,0,0,0,5.79193,17.96207Z"}))},{name:"medium",attributes:{service:"medium"},title:"Medium",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M13.2,12c0,3-2.4,5.4-5.3,5.4S2.6,15,2.6,12s2.4-5.4,5.3-5.4S13.2,9,13.2,12 M19.1,12c0,2.8-1.2,5-2.7,5s-2.7-2.3-2.7-5s1.2-5,2.7-5C17.9,7,19.1,9.2,19.1,12 M21.4,12c0,2.5-0.4,4.5-0.9,4.5c-0.5,0-0.9-2-0.9-4.5s0.4-4.5,0.9-4.5C21,7.5,21.4,9.5,21.4,12"}))},{name:"patreon",attributes:{service:"patreon"},title:"Patreon",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M20 8.40755C19.9969 6.10922 18.2543 4.22555 16.2097 3.54588C13.6708 2.70188 10.3222 2.82421 7.89775 3.99921C4.95932 5.42355 4.03626 8.54355 4.00186 11.6552C3.97363 14.2136 4.2222 20.9517 7.92225 20.9997C10.6715 21.0356 11.0809 17.3967 12.3529 15.6442C13.258 14.3974 14.4233 14.0452 15.8578 13.6806C18.3233 13.0537 20.0036 11.0551 20 8.40755Z"}))},{name:"pinterest",attributes:{service:"pinterest"},title:"Pinterest",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M12.289,2C6.617,2,3.606,5.648,3.606,9.622c0,1.846,1.025,4.146,2.666,4.878c0.25,0.111,0.381,0.063,0.439-0.169 c0.044-0.175,0.267-1.029,0.365-1.428c0.032-0.128,0.017-0.237-0.091-0.362C6.445,11.911,6.01,10.75,6.01,9.668 c0-2.777,2.194-5.464,5.933-5.464c3.23,0,5.49,2.108,5.49,5.122c0,3.407-1.794,5.768-4.13,5.768c-1.291,0-2.257-1.021-1.948-2.277 c0.372-1.495,1.089-3.112,1.089-4.191c0-0.967-0.542-1.775-1.663-1.775c-1.319,0-2.379,1.309-2.379,3.059 c0,1.115,0.394,1.869,0.394,1.869s-1.302,5.279-1.54,6.261c-0.405,1.666,0.053,4.368,0.094,4.604 c0.021,0.126,0.167,0.169,0.25,0.063c0.129-0.165,1.699-2.419,2.142-4.051c0.158-0.59,0.817-2.995,0.817-2.995 c0.43,0.784,1.681,1.446,3.013,1.446c3.963,0,6.822-3.494,6.822-7.833C20.394,5.112,16.849,2,12.289,2"}))},{name:"pocket",attributes:{service:"pocket"},title:"Pocket",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M21.927,4.194C21.667,3.48,20.982,3,20.222,3h-0.01h-1.721H3.839C3.092,3,2.411,3.47,2.145,4.17 C2.066,4.378,2.026,4.594,2.026,4.814v6.035l0.069,1.2c0.29,2.73,1.707,5.115,3.899,6.778c0.039,0.03,0.079,0.059,0.119,0.089 l0.025,0.018c1.175,0.859,2.491,1.441,3.91,1.727c0.655,0.132,1.325,0.2,1.991,0.2c0.615,0,1.232-0.057,1.839-0.17 c0.073-0.014,0.145-0.028,0.219-0.044c0.02-0.004,0.042-0.012,0.064-0.023c1.359-0.297,2.621-0.864,3.753-1.691l0.025-0.018 c0.04-0.029,0.08-0.058,0.119-0.089c2.192-1.664,3.609-4.049,3.898-6.778l0.069-1.2V4.814C22.026,4.605,22,4.398,21.927,4.194z M17.692,10.481l-4.704,4.512c-0.266,0.254-0.608,0.382-0.949,0.382c-0.342,0-0.684-0.128-0.949-0.382l-4.705-4.512 C5.838,9.957,5.82,9.089,6.344,8.542c0.524-0.547,1.392-0.565,1.939-0.04l3.756,3.601l3.755-3.601 c0.547-0.524,1.415-0.506,1.939,0.04C18.256,9.089,18.238,9.956,17.692,10.481z"}))},{name:"reddit",attributes:{service:"reddit"},title:"Reddit",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M5.27 9.221A2.775 2.775 0 0 0 2.498 11.993a2.785 2.785 0 0 0 1.6 2.511 5.337 5.337 0 0 0 2.374 4.11 9.386 9.386 0 0 0 5.539 1.7 9.386 9.386 0 0 0 5.541-1.7 5.331 5.331 0 0 0 2.372-4.114 2.787 2.787 0 0 0 1.583-2.5 2.775 2.775 0 0 0-2.772-2.772 2.742 2.742 0 0 0-1.688.574 9.482 9.482 0 0 0-4.637-1.348v-.008a2.349 2.349 0 0 1 2.011-2.316 1.97 1.97 0 0 0 1.926 1.521 1.98 1.98 0 0 0 1.978-1.978 1.98 1.98 0 0 0-1.978-1.978 1.985 1.985 0 0 0-1.938 1.578 3.183 3.183 0 0 0-2.849 3.172v.011a9.463 9.463 0 0 0-4.59 1.35 2.741 2.741 0 0 0-1.688-.574Zm6.736 9.1a3.162 3.162 0 0 1-2.921-1.944.215.215 0 0 1 .014-.2.219.219 0 0 1 .168-.106 27.327 27.327 0 0 1 2.74-.133 27.357 27.357 0 0 1 2.74.133.219.219 0 0 1 .168.106.215.215 0 0 1 .014.2 3.158 3.158 0 0 1-2.921 1.944Zm3.743-3.157a1.265 1.265 0 0 1-1.4-1.371 1.954 1.954 0 0 1 .482-1.442 1.15 1.15 0 0 1 .842-.379 1.7 1.7 0 0 1 1.49 1.777 1.323 1.323 0 0 1-.325 1.015 1.476 1.476 0 0 1-1.089.4Zm-7.485 0a1.476 1.476 0 0 1-1.086-.4 1.323 1.323 0 0 1-.325-1.016 1.7 1.7 0 0 1 1.49-1.777 1.151 1.151 0 0 1 .843.379 1.951 1.951 0 0 1 .481 1.441 1.276 1.276 0 0 1-1.403 1.373Z"}))},{name:"skype",attributes:{service:"skype"},title:"Skype",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M10.113,2.699c0.033-0.006,0.067-0.013,0.1-0.02c0.033,0.017,0.066,0.033,0.098,0.051L10.113,2.699z M2.72,10.223 c-0.006,0.034-0.011,0.069-0.017,0.103c0.018,0.032,0.033,0.064,0.051,0.095L2.72,10.223z M21.275,13.771 c0.007-0.035,0.011-0.071,0.018-0.106c-0.018-0.031-0.033-0.064-0.052-0.095L21.275,13.771z M13.563,21.199 c0.032,0.019,0.065,0.035,0.096,0.053c0.036-0.006,0.071-0.011,0.105-0.017L13.563,21.199z M22,16.386 c0,1.494-0.581,2.898-1.637,3.953c-1.056,1.057-2.459,1.637-3.953,1.637c-0.967,0-1.914-0.251-2.75-0.725 c0.036-0.006,0.071-0.011,0.105-0.017l-0.202-0.035c0.032,0.019,0.065,0.035,0.096,0.053c-0.543,0.096-1.099,0.147-1.654,0.147 c-1.275,0-2.512-0.25-3.676-0.743c-1.125-0.474-2.135-1.156-3.002-2.023c-0.867-0.867-1.548-1.877-2.023-3.002 c-0.493-1.164-0.743-2.401-0.743-3.676c0-0.546,0.049-1.093,0.142-1.628c0.018,0.032,0.033,0.064,0.051,0.095L2.72,10.223 c-0.006,0.034-0.011,0.069-0.017,0.103C2.244,9.5,2,8.566,2,7.615c0-1.493,0.582-2.898,1.637-3.953 c1.056-1.056,2.46-1.638,3.953-1.638c0.915,0,1.818,0.228,2.622,0.655c-0.033,0.007-0.067,0.013-0.1,0.02l0.199,0.031 c-0.032-0.018-0.066-0.034-0.098-0.051c0.002,0,0.003-0.001,0.004-0.001c0.586-0.112,1.187-0.169,1.788-0.169 c1.275,0,2.512,0.249,3.676,0.742c1.124,0.476,2.135,1.156,3.002,2.024c0.868,0.867,1.548,1.877,2.024,3.002 c0.493,1.164,0.743,2.401,0.743,3.676c0,0.575-0.054,1.15-0.157,1.712c-0.018-0.031-0.033-0.064-0.052-0.095l0.034,0.201 c0.007-0.035,0.011-0.071,0.018-0.106C21.754,14.494,22,15.432,22,16.386z M16.817,14.138c0-1.331-0.613-2.743-3.033-3.282 l-2.209-0.49c-0.84-0.192-1.807-0.444-1.807-1.237c0-0.794,0.679-1.348,1.903-1.348c2.468,0,2.243,1.696,3.468,1.696 c0.645,0,1.209-0.379,1.209-1.031c0-1.521-2.435-2.663-4.5-2.663c-2.242,0-4.63,0.952-4.63,3.488c0,1.221,0.436,2.521,2.839,3.123 l2.984,0.745c0.903,0.223,1.129,0.731,1.129,1.189c0,0.762-0.758,1.507-2.129,1.507c-2.679,0-2.307-2.062-3.743-2.062 c-0.645,0-1.113,0.444-1.113,1.078c0,1.236,1.501,2.886,4.856,2.886C15.236,17.737,16.817,16.199,16.817,14.138z"}))},{name:"snapchat",attributes:{service:"snapchat"},title:"Snapchat",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M12.065,2a5.526,5.526,0,0,1,3.132.892A5.854,5.854,0,0,1,17.326,5.4a5.821,5.821,0,0,1,.351,2.33q0,.612-.117,2.487a.809.809,0,0,0,.365.091,1.93,1.93,0,0,0,.664-.176,1.93,1.93,0,0,1,.664-.176,1.3,1.3,0,0,1,.729.234.7.7,0,0,1,.351.6.839.839,0,0,1-.41.7,2.732,2.732,0,0,1-.9.41,3.192,3.192,0,0,0-.9.378.728.728,0,0,0-.41.618,1.575,1.575,0,0,0,.156.56,6.9,6.9,0,0,0,1.334,1.953,5.6,5.6,0,0,0,1.881,1.315,5.875,5.875,0,0,0,1.042.3.42.42,0,0,1,.365.456q0,.911-2.852,1.341a1.379,1.379,0,0,0-.143.507,1.8,1.8,0,0,1-.182.605.451.451,0,0,1-.429.241,5.878,5.878,0,0,1-.807-.085,5.917,5.917,0,0,0-.833-.085,4.217,4.217,0,0,0-.807.065,2.42,2.42,0,0,0-.82.293,6.682,6.682,0,0,0-.755.5q-.351.267-.755.527a3.886,3.886,0,0,1-.989.436A4.471,4.471,0,0,1,11.831,22a4.307,4.307,0,0,1-1.256-.176,3.784,3.784,0,0,1-.976-.436q-.4-.26-.749-.527a6.682,6.682,0,0,0-.755-.5,2.422,2.422,0,0,0-.807-.293,4.432,4.432,0,0,0-.82-.065,5.089,5.089,0,0,0-.853.1,5,5,0,0,1-.762.1.474.474,0,0,1-.456-.241,1.819,1.819,0,0,1-.182-.618,1.411,1.411,0,0,0-.143-.521q-2.852-.429-2.852-1.341a.42.42,0,0,1,.365-.456,5.793,5.793,0,0,0,1.042-.3,5.524,5.524,0,0,0,1.881-1.315,6.789,6.789,0,0,0,1.334-1.953A1.575,1.575,0,0,0,6,12.9a.728.728,0,0,0-.41-.618,3.323,3.323,0,0,0-.9-.384,2.912,2.912,0,0,1-.9-.41.814.814,0,0,1-.41-.684.71.71,0,0,1,.338-.593,1.208,1.208,0,0,1,.716-.241,1.976,1.976,0,0,1,.625.169,2.008,2.008,0,0,0,.69.169.919.919,0,0,0,.416-.091q-.117-1.849-.117-2.474A5.861,5.861,0,0,1,6.385,5.4,5.516,5.516,0,0,1,8.625,2.819,7.075,7.075,0,0,1,12.062,2Z"}))},{name:"soundcloud",attributes:{service:"soundcloud"},title:"SoundCloud",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M8.9,16.1L9,14L8.9,9.5c0-0.1,0-0.1-0.1-0.1c0,0-0.1-0.1-0.1-0.1c-0.1,0-0.1,0-0.1,0.1c0,0-0.1,0.1-0.1,0.1L8.3,14l0.1,2.1 c0,0.1,0,0.1,0.1,0.1c0,0,0.1,0.1,0.1,0.1C8.8,16.3,8.9,16.3,8.9,16.1z M11.4,15.9l0.1-1.8L11.4,9c0-0.1,0-0.2-0.1-0.2 c0,0-0.1,0-0.1,0s-0.1,0-0.1,0c-0.1,0-0.1,0.1-0.1,0.2l0,0.1l-0.1,5c0,0,0,0.7,0.1,2v0c0,0.1,0,0.1,0.1,0.1c0.1,0.1,0.1,0.1,0.2,0.1 c0.1,0,0.1,0,0.2-0.1c0.1,0,0.1-0.1,0.1-0.2L11.4,15.9z M2.4,12.9L2.5,14l-0.2,1.1c0,0.1,0,0.1-0.1,0.1c0,0-0.1,0-0.1-0.1L2.1,14 l0.1-1.1C2.2,12.9,2.3,12.9,2.4,12.9C2.3,12.9,2.4,12.9,2.4,12.9z M3.1,12.2L3.3,14l-0.2,1.8c0,0.1,0,0.1-0.1,0.1 c-0.1,0-0.1,0-0.1-0.1L2.8,14L3,12.2C3,12.2,3,12.2,3.1,12.2C3.1,12.2,3.1,12.2,3.1,12.2z M3.9,11.9L4.1,14l-0.2,2.1 c0,0.1,0,0.1-0.1,0.1c-0.1,0-0.1,0-0.1-0.1L3.5,14l0.2-2.1c0-0.1,0-0.1,0.1-0.1C3.9,11.8,3.9,11.8,3.9,11.9z M4.7,11.9L4.9,14 l-0.2,2.1c0,0.1-0.1,0.1-0.1,0.1c-0.1,0-0.1,0-0.1-0.1L4.3,14l0.2-2.2c0-0.1,0-0.1,0.1-0.1C4.7,11.7,4.7,11.8,4.7,11.9z M5.6,12 l0.2,2l-0.2,2.1c0,0.1-0.1,0.1-0.1,0.1c0,0-0.1,0-0.1,0c0,0,0-0.1,0-0.1L5.1,14l0.2-2c0,0,0-0.1,0-0.1s0.1,0,0.1,0 C5.5,11.9,5.5,11.9,5.6,12L5.6,12z M6.4,10.7L6.6,14l-0.2,2.1c0,0,0,0.1,0,0.1c0,0-0.1,0-0.1,0c-0.1,0-0.1-0.1-0.2-0.2L5.9,14 l0.2-3.3c0-0.1,0.1-0.2,0.2-0.2c0,0,0.1,0,0.1,0C6.4,10.7,6.4,10.7,6.4,10.7z M7.2,10l0.2,4.1l-0.2,2.1c0,0,0,0.1,0,0.1 c0,0-0.1,0-0.1,0c-0.1,0-0.2-0.1-0.2-0.2l-0.1-2.1L6.8,10c0-0.1,0.1-0.2,0.2-0.2c0,0,0.1,0,0.1,0S7.2,9.9,7.2,10z M8,9.6L8.2,14 L8,16.1c0,0.1-0.1,0.2-0.2,0.2c-0.1,0-0.2-0.1-0.2-0.2L7.5,14l0.1-4.4c0-0.1,0-0.1,0.1-0.1c0,0,0.1-0.1,0.1-0.1c0.1,0,0.1,0,0.1,0.1 C8,9.6,8,9.6,8,9.6z M11.4,16.1L11.4,16.1L11.4,16.1z M9.7,9.6L9.8,14l-0.1,2.1c0,0.1,0,0.1-0.1,0.2s-0.1,0.1-0.2,0.1 c-0.1,0-0.1,0-0.1-0.1s-0.1-0.1-0.1-0.2L9.2,14l0.1-4.4c0-0.1,0-0.1,0.1-0.2s0.1-0.1,0.2-0.1c0.1,0,0.1,0,0.2,0.1S9.7,9.5,9.7,9.6 L9.7,9.6z M10.6,9.8l0.1,4.3l-0.1,2c0,0.1,0,0.1-0.1,0.2c0,0-0.1,0.1-0.2,0.1c-0.1,0-0.1,0-0.2-0.1c0,0-0.1-0.1-0.1-0.2L10,14 l0.1-4.3c0-0.1,0-0.1,0.1-0.2c0,0,0.1-0.1,0.2-0.1c0.1,0,0.1,0,0.2,0.1S10.6,9.7,10.6,9.8z M12.4,14l-0.1,2c0,0.1,0,0.1-0.1,0.2 c-0.1,0.1-0.1,0.1-0.2,0.1c-0.1,0-0.1,0-0.2-0.1c-0.1-0.1-0.1-0.1-0.1-0.2l-0.1-1l-0.1-1l0.1-5.5v0c0-0.1,0-0.2,0.1-0.2 c0.1,0,0.1-0.1,0.2-0.1c0,0,0.1,0,0.1,0c0.1,0,0.1,0.1,0.1,0.2L12.4,14z M22.1,13.9c0,0.7-0.2,1.3-0.7,1.7c-0.5,0.5-1.1,0.7-1.7,0.7 h-6.8c-0.1,0-0.1,0-0.2-0.1c-0.1-0.1-0.1-0.1-0.1-0.2V8.2c0-0.1,0.1-0.2,0.2-0.3c0.5-0.2,1-0.3,1.6-0.3c1.1,0,2.1,0.4,2.9,1.1 c0.8,0.8,1.3,1.7,1.4,2.8c0.3-0.1,0.6-0.2,1-0.2c0.7,0,1.3,0.2,1.7,0.7C21.8,12.6,22.1,13.2,22.1,13.9L22.1,13.9z"}))},{name:"spotify",attributes:{service:"spotify"},title:"Spotify",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M12,2C6.477,2,2,6.477,2,12c0,5.523,4.477,10,10,10c5.523,0,10-4.477,10-10C22,6.477,17.523,2,12,2 M16.586,16.424 c-0.18,0.295-0.563,0.387-0.857,0.207c-2.348-1.435-5.304-1.76-8.785-0.964c-0.335,0.077-0.67-0.133-0.746-0.469 c-0.077-0.335,0.132-0.67,0.469-0.746c3.809-0.871,7.077-0.496,9.713,1.115C16.673,15.746,16.766,16.13,16.586,16.424 M17.81,13.7 c-0.226,0.367-0.706,0.482-1.072,0.257c-2.687-1.652-6.785-2.131-9.965-1.166C6.36,12.917,5.925,12.684,5.8,12.273 C5.675,11.86,5.908,11.425,6.32,11.3c3.632-1.102,8.147-0.568,11.234,1.328C17.92,12.854,18.035,13.335,17.81,13.7 M17.915,10.865 c-3.223-1.914-8.54-2.09-11.618-1.156C5.804,9.859,5.281,9.58,5.131,9.086C4.982,8.591,5.26,8.069,5.755,7.919 c3.532-1.072,9.404-0.865,13.115,1.338c0.445,0.264,0.59,0.838,0.327,1.282C18.933,10.983,18.359,11.129,17.915,10.865"}))},{name:"telegram",attributes:{service:"telegram"},title:"Telegram",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 128 128",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M28.9700376,63.3244248 C47.6273373,55.1957357 60.0684594,49.8368063 66.2934036,47.2476366 C84.0668845,39.855031 87.7600616,38.5708563 90.1672227,38.528 C90.6966555,38.5191258 91.8804274,38.6503351 92.6472251,39.2725385 C93.294694,39.7979149 93.4728387,40.5076237 93.5580865,41.0057381 C93.6433345,41.5038525 93.7494885,42.63857 93.6651041,43.5252052 C92.7019529,53.6451182 88.5344133,78.2034783 86.4142057,89.5379542 C85.5170662,94.3339958 83.750571,95.9420841 82.0403991,96.0994568 C78.3237996,96.4414641 75.5015827,93.6432685 71.9018743,91.2836143 C66.2690414,87.5912212 63.0868492,85.2926952 57.6192095,81.6896017 C51.3004058,77.5256038 55.3966232,75.2369981 58.9976911,71.4967761 C59.9401076,70.5179421 76.3155302,55.6232293 76.6324771,54.2720454 C76.6721165,54.1030573 76.7089039,53.4731496 76.3346867,53.1405352 C75.9604695,52.8079208 75.4081573,52.921662 75.0095933,53.0121213 C74.444641,53.1403447 65.4461175,59.0880351 48.0140228,70.8551922 C45.4598218,72.6091037 43.1463059,73.4636682 41.0734751,73.4188859 C38.7883453,73.3695169 34.3926725,72.1268388 31.1249416,71.0646282 C27.1169366,69.7617838 23.931454,69.0729605 24.208838,66.8603276 C24.3533167,65.7078514 25.9403832,64.5292172 28.9700376,63.3244248 Z"}))},{name:"threads",attributes:{service:"threads"},title:"Threads",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M16.3 11.3c-.1 0-.2-.1-.2-.1-.1-2.6-1.5-4-3.9-4-1.4 0-2.6.6-3.3 1.7l1.3.9c.5-.8 1.4-1 2-1 .8 0 1.4.2 1.7.7.3.3.5.8.5 1.3-.7-.1-1.4-.2-2.2-.1-2.2.1-3.7 1.4-3.6 3.2 0 .9.5 1.7 1.3 2.2.7.4 1.5.6 2.4.6 1.2-.1 2.1-.5 2.7-1.3.5-.6.8-1.4.9-2.4.6.3 1 .8 1.2 1.3.4.9.4 2.4-.8 3.6-1.1 1.1-2.3 1.5-4.3 1.5-2.1 0-3.8-.7-4.8-2S5.7 14.3 5.7 12c0-2.3.5-4.1 1.5-5.4 1.1-1.3 2.7-2 4.8-2 2.2 0 3.8.7 4.9 2 .5.7.9 1.5 1.2 2.5l1.5-.4c-.3-1.2-.8-2.2-1.5-3.1-1.3-1.7-3.3-2.6-6-2.6-2.6 0-4.7.9-6 2.6C4.9 7.2 4.3 9.3 4.3 12s.6 4.8 1.9 6.4c1.4 1.7 3.4 2.6 6 2.6 2.3 0 4-.6 5.3-2 1.8-1.8 1.7-4 1.1-5.4-.4-.9-1.2-1.7-2.3-2.3zm-4 3.8c-1 .1-2-.4-2-1.3 0-.7.5-1.5 2.1-1.6h.5c.6 0 1.1.1 1.6.2-.2 2.3-1.3 2.7-2.2 2.7z"}))},{name:"tiktok",attributes:{service:"tiktok"},title:"TikTok",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 32 32",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M16.708 0.027c1.745-0.027 3.48-0.011 5.213-0.027 0.105 2.041 0.839 4.12 2.333 5.563 1.491 1.479 3.6 2.156 5.652 2.385v5.369c-1.923-0.063-3.855-0.463-5.6-1.291-0.76-0.344-1.468-0.787-2.161-1.24-0.009 3.896 0.016 7.787-0.025 11.667-0.104 1.864-0.719 3.719-1.803 5.255-1.744 2.557-4.771 4.224-7.88 4.276-1.907 0.109-3.812-0.411-5.437-1.369-2.693-1.588-4.588-4.495-4.864-7.615-0.032-0.667-0.043-1.333-0.016-1.984 0.24-2.537 1.495-4.964 3.443-6.615 2.208-1.923 5.301-2.839 8.197-2.297 0.027 1.975-0.052 3.948-0.052 5.923-1.323-0.428-2.869-0.308-4.025 0.495-0.844 0.547-1.485 1.385-1.819 2.333-0.276 0.676-0.197 1.427-0.181 2.145 0.317 2.188 2.421 4.027 4.667 3.828 1.489-0.016 2.916-0.88 3.692-2.145 0.251-0.443 0.532-0.896 0.547-1.417 0.131-2.385 0.079-4.76 0.095-7.145 0.011-5.375-0.016-10.735 0.025-16.093z"}))},{name:"tumblr",attributes:{service:"tumblr"},title:"Tumblr",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M17.04 21.28h-3.28c-2.84 0-4.94-1.37-4.94-5.02v-5.67H6.08V7.5c2.93-.73 4.11-3.3 4.3-5.48h3.01v4.93h3.47v3.65H13.4v4.93c0 1.47.73 2.01 1.92 2.01h1.73v3.75z"}))},{name:"twitch",attributes:{service:"twitch"},title:"Twitch",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M16.499,8.089h-1.636v4.91h1.636V8.089z M12,8.089h-1.637v4.91H12V8.089z M4.228,3.178L3,6.451v13.092h4.499V22h2.456 l2.454-2.456h3.681L21,14.636V3.178H4.228z M19.364,13.816l-2.864,2.865H12l-2.453,2.453V16.68H5.863V4.814h13.501V13.816z"}))},{name:"twitter",attributes:{service:"twitter"},title:"Twitter",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M22.23,5.924c-0.736,0.326-1.527,0.547-2.357,0.646c0.847-0.508,1.498-1.312,1.804-2.27 c-0.793,0.47-1.671,0.812-2.606,0.996C18.324,4.498,17.257,4,16.077,4c-2.266,0-4.103,1.837-4.103,4.103 c0,0.322,0.036,0.635,0.106,0.935C8.67,8.867,5.647,7.234,3.623,4.751C3.27,5.357,3.067,6.062,3.067,6.814 c0,1.424,0.724,2.679,1.825,3.415c-0.673-0.021-1.305-0.206-1.859-0.513c0,0.017,0,0.034,0,0.052c0,1.988,1.414,3.647,3.292,4.023 c-0.344,0.094-0.707,0.144-1.081,0.144c-0.264,0-0.521-0.026-0.772-0.074c0.522,1.63,2.038,2.816,3.833,2.85 c-1.404,1.1-3.174,1.756-5.096,1.756c-0.331,0-0.658-0.019-0.979-0.057c1.816,1.164,3.973,1.843,6.29,1.843 c7.547,0,11.675-6.252,11.675-11.675c0-0.178-0.004-0.355-0.012-0.531C20.985,7.47,21.68,6.747,22.23,5.924z"}))},{name:"vimeo",attributes:{service:"vimeo"},title:"Vimeo",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M22.396,7.164c-0.093,2.026-1.507,4.799-4.245,8.32C15.322,19.161,12.928,21,10.97,21c-1.214,0-2.24-1.119-3.079-3.359 c-0.56-2.053-1.119-4.106-1.68-6.159C5.588,9.243,4.921,8.122,4.206,8.122c-0.156,0-0.701,0.328-1.634,0.98L1.594,7.841 c1.027-0.902,2.04-1.805,3.037-2.708C6.001,3.95,7.03,3.327,7.715,3.264c1.619-0.156,2.616,0.951,2.99,3.321 c0.404,2.557,0.685,4.147,0.841,4.769c0.467,2.121,0.981,3.181,1.542,3.181c0.435,0,1.09-0.688,1.963-2.065 c0.871-1.376,1.338-2.422,1.401-3.142c0.125-1.187-0.343-1.782-1.401-1.782c-0.498,0-1.012,0.115-1.541,0.341 c1.023-3.35,2.977-4.977,5.862-4.884C21.511,3.066,22.52,4.453,22.396,7.164z"}))},{name:"vk",attributes:{service:"vk"},title:"VK",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M22,7.1c0.2,0.4-0.4,1.5-1.6,3.1c-0.2,0.2-0.4,0.5-0.7,0.9c-0.5,0.7-0.9,1.1-0.9,1.4c-0.1,0.3-0.1,0.6,0.1,0.8 c0.1,0.1,0.4,0.4,0.8,0.9h0l0,0c1,0.9,1.6,1.7,2,2.3c0,0,0,0.1,0.1,0.1c0,0.1,0,0.1,0.1,0.3c0,0.1,0,0.2,0,0.4 c0,0.1-0.1,0.2-0.3,0.3c-0.1,0.1-0.4,0.1-0.6,0.1l-2.7,0c-0.2,0-0.4,0-0.6-0.1c-0.2-0.1-0.4-0.1-0.5-0.2l-0.2-0.1 c-0.2-0.1-0.5-0.4-0.7-0.7s-0.5-0.6-0.7-0.8c-0.2-0.2-0.4-0.4-0.6-0.6C14.8,15,14.6,15,14.4,15c0,0,0,0-0.1,0c0,0-0.1,0.1-0.2,0.2 c-0.1,0.1-0.2,0.2-0.2,0.3c-0.1,0.1-0.1,0.3-0.2,0.5c-0.1,0.2-0.1,0.5-0.1,0.8c0,0.1,0,0.2,0,0.3c0,0.1-0.1,0.2-0.1,0.2l0,0.1 c-0.1,0.1-0.3,0.2-0.6,0.2h-1.2c-0.5,0-1,0-1.5-0.2c-0.5-0.1-1-0.3-1.4-0.6s-0.7-0.5-1.1-0.7s-0.6-0.4-0.7-0.6l-0.3-0.3 c-0.1-0.1-0.2-0.2-0.3-0.3s-0.4-0.5-0.7-0.9s-0.7-1-1.1-1.6c-0.4-0.6-0.8-1.3-1.3-2.2C2.9,9.4,2.5,8.5,2.1,7.5C2,7.4,2,7.3,2,7.2 c0-0.1,0-0.1,0-0.2l0-0.1c0.1-0.1,0.3-0.2,0.6-0.2l2.9,0c0.1,0,0.2,0,0.2,0.1S5.9,6.9,5.9,7L6,7c0.1,0.1,0.2,0.2,0.3,0.3 C6.4,7.7,6.5,8,6.7,8.4C6.9,8.8,7,9,7.1,9.2l0.2,0.3c0.2,0.4,0.4,0.8,0.6,1.1c0.2,0.3,0.4,0.5,0.5,0.7s0.3,0.3,0.4,0.4 c0.1,0.1,0.3,0.1,0.4,0.1c0.1,0,0.2,0,0.3-0.1c0,0,0,0,0.1-0.1c0,0,0.1-0.1,0.1-0.2c0.1-0.1,0.1-0.3,0.1-0.5c0-0.2,0.1-0.5,0.1-0.8 c0-0.4,0-0.8,0-1.3c0-0.3,0-0.5-0.1-0.8c0-0.2-0.1-0.4-0.1-0.5L9.6,7.6C9.4,7.3,9.1,7.2,8.7,7.1C8.6,7.1,8.6,7,8.7,6.9 C8.9,6.7,9,6.6,9.1,6.5c0.4-0.2,1.2-0.3,2.5-0.3c0.6,0,1,0.1,1.4,0.1c0.1,0,0.3,0.1,0.3,0.1c0.1,0.1,0.2,0.1,0.2,0.3 c0,0.1,0.1,0.2,0.1,0.3s0,0.3,0,0.5c0,0.2,0,0.4,0,0.6c0,0.2,0,0.4,0,0.7c0,0.3,0,0.6,0,0.9c0,0.1,0,0.2,0,0.4c0,0.2,0,0.4,0,0.5 c0,0.1,0,0.3,0,0.4s0.1,0.3,0.1,0.4c0.1,0.1,0.1,0.2,0.2,0.3c0.1,0,0.1,0,0.2,0c0.1,0,0.2,0,0.3-0.1c0.1-0.1,0.2-0.2,0.4-0.4 s0.3-0.4,0.5-0.7c0.2-0.3,0.5-0.7,0.7-1.1c0.4-0.7,0.8-1.5,1.1-2.3c0-0.1,0.1-0.1,0.1-0.2c0-0.1,0.1-0.1,0.1-0.1l0,0l0.1,0 c0,0,0,0,0.1,0s0.2,0,0.2,0l3,0c0.3,0,0.5,0,0.7,0S21.9,7,21.9,7L22,7.1z"}))},{name:"whatsapp",attributes:{service:"whatsapp"},title:"WhatsApp",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M 12.011719 2 C 6.5057187 2 2.0234844 6.478375 2.0214844 11.984375 C 2.0204844 13.744375 2.4814687 15.462563 3.3554688 16.976562 L 2 22 L 7.2324219 20.763672 C 8.6914219 21.559672 10.333859 21.977516 12.005859 21.978516 L 12.009766 21.978516 C 17.514766 21.978516 21.995047 17.499141 21.998047 11.994141 C 22.000047 9.3251406 20.962172 6.8157344 19.076172 4.9277344 C 17.190172 3.0407344 14.683719 2.001 12.011719 2 z M 12.009766 4 C 14.145766 4.001 16.153109 4.8337969 17.662109 6.3417969 C 19.171109 7.8517969 20.000047 9.8581875 19.998047 11.992188 C 19.996047 16.396187 16.413812 19.978516 12.007812 19.978516 C 10.674812 19.977516 9.3544062 19.642812 8.1914062 19.007812 L 7.5175781 18.640625 L 6.7734375 18.816406 L 4.8046875 19.28125 L 5.2851562 17.496094 L 5.5019531 16.695312 L 5.0878906 15.976562 C 4.3898906 14.768562 4.0204844 13.387375 4.0214844 11.984375 C 4.0234844 7.582375 7.6067656 4 12.009766 4 z M 8.4765625 7.375 C 8.3095625 7.375 8.0395469 7.4375 7.8105469 7.6875 C 7.5815469 7.9365 6.9355469 8.5395781 6.9355469 9.7675781 C 6.9355469 10.995578 7.8300781 12.182609 7.9550781 12.349609 C 8.0790781 12.515609 9.68175 15.115234 12.21875 16.115234 C 14.32675 16.946234 14.754891 16.782234 15.212891 16.740234 C 15.670891 16.699234 16.690438 16.137687 16.898438 15.554688 C 17.106437 14.971687 17.106922 14.470187 17.044922 14.367188 C 16.982922 14.263188 16.816406 14.201172 16.566406 14.076172 C 16.317406 13.951172 15.090328 13.348625 14.861328 13.265625 C 14.632328 13.182625 14.464828 13.140625 14.298828 13.390625 C 14.132828 13.640625 13.655766 14.201187 13.509766 14.367188 C 13.363766 14.534188 13.21875 14.556641 12.96875 14.431641 C 12.71875 14.305641 11.914938 14.041406 10.960938 13.191406 C 10.218937 12.530406 9.7182656 11.714844 9.5722656 11.464844 C 9.4272656 11.215844 9.5585938 11.079078 9.6835938 10.955078 C 9.7955938 10.843078 9.9316406 10.663578 10.056641 10.517578 C 10.180641 10.371578 10.223641 10.267562 10.306641 10.101562 C 10.389641 9.9355625 10.347156 9.7890625 10.285156 9.6640625 C 10.223156 9.5390625 9.737625 8.3065 9.515625 7.8125 C 9.328625 7.3975 9.131125 7.3878594 8.953125 7.3808594 C 8.808125 7.3748594 8.6425625 7.375 8.4765625 7.375 z"}))},{name:"x",attributes:{service:"x"},keywords:["twitter"],title:"X",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M13.982 10.622 20.54 3h-1.554l-5.693 6.618L8.745 3H3.5l6.876 10.007L3.5 21h1.554l6.012-6.989L15.868 21h5.245l-7.131-10.378Zm-2.128 2.474-.697-.997-5.543-7.93H8l4.474 6.4.697.996 5.815 8.318h-2.387l-4.745-6.787Z"}))},{name:"yelp",attributes:{service:"yelp"},title:"Yelp",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M12.271,16.718v1.417q-.011,3.257-.067,3.4a.707.707,0,0,1-.569.446,4.637,4.637,0,0,1-2.024-.424A4.609,4.609,0,0,1,7.8,20.565a.844.844,0,0,1-.19-.4.692.692,0,0,1,.044-.29,3.181,3.181,0,0,1,.379-.524q.335-.412,2.019-2.409.011,0,.669-.781a.757.757,0,0,1,.44-.274.965.965,0,0,1,.552.039.945.945,0,0,1,.418.324.732.732,0,0,1,.139.468Zm-1.662-2.8a.783.783,0,0,1-.58.781l-1.339.435q-3.067.981-3.257.981a.711.711,0,0,1-.6-.4,2.636,2.636,0,0,1-.19-.836,9.134,9.134,0,0,1,.011-1.857,3.559,3.559,0,0,1,.335-1.389.659.659,0,0,1,.625-.357,22.629,22.629,0,0,1,2.253.859q.781.324,1.283.524l.937.379a.771.771,0,0,1,.4.34A.982.982,0,0,1,10.609,13.917Zm9.213,3.313a4.467,4.467,0,0,1-1.021,1.8,4.559,4.559,0,0,1-1.512,1.417.671.671,0,0,1-.7-.078q-.156-.112-2.052-3.2l-.524-.859a.761.761,0,0,1-.128-.513.957.957,0,0,1,.217-.513.774.774,0,0,1,.926-.29q.011.011,1.327.446,2.264.736,2.7.887a2.082,2.082,0,0,1,.524.229.673.673,0,0,1,.245.68Zm-7.5-7.049q.056,1.137-.6,1.361-.647.19-1.272-.792L6.237,4.08a.7.7,0,0,1,.212-.691,5.788,5.788,0,0,1,2.314-1,5.928,5.928,0,0,1,2.5-.352.681.681,0,0,1,.547.5q.034.2.245,3.407T12.327,10.181Zm7.384,1.2a.679.679,0,0,1-.29.658q-.167.112-3.67.959-.747.167-1.015.257l.011-.022a.769.769,0,0,1-.513-.044.914.914,0,0,1-.413-.357.786.786,0,0,1,0-.971q.011-.011.836-1.137,1.394-1.908,1.673-2.275a2.423,2.423,0,0,1,.379-.435A.7.7,0,0,1,17.435,8a4.482,4.482,0,0,1,1.372,1.489,4.81,4.81,0,0,1,.9,1.868v.034Z"}))},{name:"youtube",attributes:{service:"youtube"},title:"YouTube",icon:()=>(0,Ke.createElement)(Ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Ke.createElement)(Ye.Path,{d:"M21.8,8.001c0,0-0.195-1.378-0.795-1.985c-0.76-0.797-1.613-0.801-2.004-0.847c-2.799-0.202-6.997-0.202-6.997-0.202 h-0.009c0,0-4.198,0-6.997,0.202C4.608,5.216,3.756,5.22,2.995,6.016C2.395,6.623,2.2,8.001,2.2,8.001S2,9.62,2,11.238v1.517 c0,1.618,0.2,3.237,0.2,3.237s0.195,1.378,0.795,1.985c0.761,0.797,1.76,0.771,2.205,0.855c1.6,0.153,6.8,0.201,6.8,0.201 s4.203-0.006,7.001-0.209c0.391-0.047,1.243-0.051,2.004-0.847c0.6-0.607,0.795-1.985,0.795-1.985s0.2-1.618,0.2-3.237v-1.517 C22,9.62,21.8,8.001,21.8,8.001z M9.935,14.594l-0.001-5.62l5.404,2.82L9.935,14.594z"}))}];nE.forEach((e=>{e.isActive||(e.isActive=(e,t)=>e.service===t.service)}));const aE=nE,oE=({url:e,setAttributes:t,setPopover:n,popoverAnchor:a,clientId:o})=>{const{removeBlock:r}=(0,gt.useDispatch)(nt.store);return(0,Ke.createElement)(nt.URLPopover,{anchor:a,onClose:()=>n(!1)},(0,Ke.createElement)("form",{className:"block-editor-url-popover__link-editor",onSubmit:e=>{e.preventDefault(),n(!1)}},(0,Ke.createElement)("div",{className:"block-editor-url-input"},(0,Ke.createElement)(nt.URLInput,{__nextHasNoMarginBottom:!0,value:e,onChange:e=>t({url:e}),placeholder:(0,tt.__)("Enter social link"),label:(0,tt.__)("Enter social link"),hideLabelFromVision:!0,disableSuggestions:!0,onKeyDown:t=>{e||t.defaultPrevented||![vn.BACKSPACE,vn.DELETE].includes(t.keyCode)||r(o)}})),(0,Ke.createElement)(et.Button,{icon:eE,label:(0,tt.__)("Apply"),type:"submit"})))},rE=({attributes:e,context:t,isSelected:n,setAttributes:a,clientId:o})=>{const{url:r,service:l,label:i="",rel:s}=e,{showLabels:c,iconColor:m,iconColorValue:u,iconBackgroundColor:p,iconBackgroundColorValue:d}=t,[g,h]=(0,_t.useState)(!1),b=ut("wp-social-link","wp-social-link-"+l,{"wp-social-link__is-incomplete":!r,[`has-${m}-color`]:m,[`has-${p}-background-color`]:p}),[_,y]=(0,_t.useState)(null),v=(e=>{const t=aE.find((t=>t.name===e));return t?t.icon:tE})(l),f=(e=>{const t=aE.find((t=>t.name===e));return t?t.title:(0,tt.__)("Social Icon")})(l),k=""===i.trim()?f:i,x=(0,nt.useBlockProps)({className:b,style:{color:u,backgroundColor:d}});return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.PanelRow,null,(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Link text"),help:(0,tt.__)("The link text is visible when enabled from the parent Social Icons block."),value:i,onChange:e=>a({label:e}),placeholder:f})))),(0,Ke.createElement)(nt.InspectorControls,{group:"advanced"},(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Link rel"),value:s||"",onChange:e=>a({rel:e})})),(0,Ke.createElement)("li",{...x},(0,Ke.createElement)("button",{className:"wp-block-social-link-anchor",ref:y,onClick:()=>h(!0)},(0,Ke.createElement)(v,null),(0,Ke.createElement)("span",{className:ut("wp-block-social-link-label",{"screen-reader-text":!c})},k)),n&&g&&(0,Ke.createElement)(oE,{url:r,setAttributes:a,setPopover:h,popoverAnchor:_,clientId:o})))},lE={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/social-link",title:"Social Icon",category:"widgets",parent:["core/social-links"],description:"Display an icon linking to a social profile or site.",textdomain:"default",attributes:{url:{type:"string"},service:{type:"string"},label:{type:"string"},rel:{type:"string"}},usesContext:["openInNewTab","showLabels","iconColor","iconColorValue","iconBackgroundColor","iconBackgroundColorValue"],supports:{reusable:!1,html:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-social-link-editor"},{name:iE}=lE,sE={icon:Xw,edit:rE,variations:aE},cE=()=>Xe({name:iE,metadata:lE,settings:sE}),mE=[{attributes:{iconColor:{type:"string"},customIconColor:{type:"string"},iconColorValue:{type:"string"},iconBackgroundColor:{type:"string"},customIconBackgroundColor:{type:"string"},iconBackgroundColorValue:{type:"string"},openInNewTab:{type:"boolean",default:!1},size:{type:"string"}},providesContext:{openInNewTab:"openInNewTab"},supports:{align:["left","center","right"],anchor:!0},migrate:e=>{if(e.layout)return e;const{className:t}=e,n="items-justified-",a=new RegExp(`\\b${n}[^ ]*[ ]?\\b`,"g"),o={...e,className:t?.replace(a,"").trim()},r=t?.match(a)?.[0]?.trim();return r&&Object.assign(o,{layout:{type:"flex",justifyContent:r.slice(16)}}),o},save:e=>{const{attributes:{iconBackgroundColorValue:t,iconColorValue:n,itemsJustification:a,size:o}}=e,r=ut(o,{"has-icon-color":n,"has-icon-background-color":t,[`items-justified-${a}`]:a}),l={"--wp--social-links--icon-color":n,"--wp--social-links--icon-background-color":t};return(0,Ke.createElement)("ul",{...nt.useBlockProps.save({className:r,style:l})},(0,Ke.createElement)(nt.InnerBlocks.Content,null))}}],uE=mE,pE=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})),dE=[{name:(0,tt.__)("Small"),value:"has-small-icon-size"},{name:(0,tt.__)("Normal"),value:"has-normal-icon-size"},{name:(0,tt.__)("Large"),value:"has-large-icon-size"},{name:(0,tt.__)("Huge"),value:"has-huge-icon-size"}];const gE=(0,nt.withColors)({iconColor:"icon-color",iconBackgroundColor:"icon-background-color"})((function(e){var t;const{clientId:n,attributes:a,iconBackgroundColor:o,iconColor:r,isSelected:l,setAttributes:i,setIconBackgroundColor:s,setIconColor:c}=e,{iconBackgroundColorValue:m,customIconBackgroundColor:u,iconColorValue:p,openInNewTab:d,showLabels:g,size:h}=a,b=a.className?.includes("is-style-logos-only"),_=(0,_t.useRef)({});(0,_t.useEffect)((()=>{b?(_.current={iconBackgroundColor:o,iconBackgroundColorValue:m,customIconBackgroundColor:u},i({iconBackgroundColor:void 0,customIconBackgroundColor:void 0,iconBackgroundColorValue:void 0})):i({..._.current})}),[b]);const y=(0,Ke.createElement)("li",{className:"wp-block-social-links__social-placeholder"},(0,Ke.createElement)("div",{className:"wp-block-social-links__social-placeholder-icons"},(0,Ke.createElement)("div",{className:"wp-social-link wp-social-link-twitter"}),(0,Ke.createElement)("div",{className:"wp-social-link wp-social-link-facebook"}),(0,Ke.createElement)("div",{className:"wp-social-link wp-social-link-instagram"}))),v=(0,Ke.createElement)("li",{className:"wp-block-social-links__social-prompt"},(0,tt.__)("Click plus to add")),f=ut(h,{"has-visible-labels":g,"has-icon-color":r.color||p,"has-icon-background-color":o.color||m}),k=(0,nt.useBlockProps)({className:f}),x=(0,nt.useInnerBlocksProps)(k,{placeholder:l?v:y,templateLock:!1,orientation:null!==(t=a.layout?.orientation)&&void 0!==t?t:"horizontal",__experimentalAppenderTagName:"li"}),w=[{value:r.color||p,onChange:e=>{c(e),i({iconColorValue:e})},label:(0,tt.__)("Icon color"),resetAllFilter:()=>{c(void 0),i({iconColorValue:void 0})}}];b||w.push({value:o.color||m,onChange:e=>{s(e),i({iconBackgroundColorValue:e})},label:(0,tt.__)("Icon background"),resetAllFilter:()=>{s(void 0),i({iconBackgroundColorValue:void 0})}});const E=(0,nt.__experimentalUseMultipleOriginColorsAndGradients)();return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,{group:"other"},(0,Ke.createElement)(et.ToolbarDropdownMenu,{label:(0,tt.__)("Size"),text:(0,tt.__)("Size"),icon:null,popoverProps:{position:"bottom right"}},(({onClose:e})=>(0,Ke.createElement)(et.MenuGroup,null,dE.map((t=>(0,Ke.createElement)(et.MenuItem,{icon:(h===t.value||!h&&"has-normal-icon-size"===t.value)&&pE,isSelected:h===t.value,key:t.value,onClick:()=>{i({size:t.value})},onClose:e,role:"menuitemradio"},t.name))))))),(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Open links in new tab"),checked:d,onChange:()=>i({openInNewTab:!d})}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show text"),checked:g,onChange:()=>i({showLabels:!g})}))),E.hasColorsOrGradients&&(0,Ke.createElement)(nt.InspectorControls,{group:"color"},w.map((({onChange:e,label:t,value:a,resetAllFilter:o})=>(0,Ke.createElement)(nt.__experimentalColorGradientSettingsDropdown,{key:`social-links-color-${t}`,__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:a,label:t,onColorChange:e,isShownByDefault:!0,resetAllFilter:o,enableAlpha:!0}],panelId:n,...E}))),!b&&(0,Ke.createElement)(nt.ContrastChecker,{textColor:p,backgroundColor:m,isLargeText:!1})),(0,Ke.createElement)("ul",{...x}))}));const hE={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/social-links",title:"Social Icons",category:"widgets",allowedBlocks:["core/social-link"],description:"Display icons linking to your social profiles or sites.",keywords:["links"],textdomain:"default",attributes:{iconColor:{type:"string"},customIconColor:{type:"string"},iconColorValue:{type:"string"},iconBackgroundColor:{type:"string"},customIconBackgroundColor:{type:"string"},iconBackgroundColorValue:{type:"string"},openInNewTab:{type:"boolean",default:!1},showLabels:{type:"boolean",default:!1},size:{type:"string"}},providesContext:{openInNewTab:"openInNewTab",showLabels:"showLabels",iconColor:"iconColor",iconColorValue:"iconColorValue",iconBackgroundColor:"iconBackgroundColor",iconBackgroundColorValue:"iconBackgroundColorValue"},supports:{align:["left","center","right"],anchor:!0,__experimentalExposeControlsToChildren:!0,layout:{allowSwitching:!1,allowInheriting:!1,allowVerticalAlignment:!1,default:{type:"flex"}},color:{enableContrastChecker:!1,background:!0,gradients:!0,text:!1,__experimentalDefaultControls:{background:!1}},spacing:{blockGap:["horizontal","vertical"],margin:!0,padding:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0,margin:!0,padding:!1}},interactivity:{clientNavigation:!0}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"logos-only",label:"Logos Only"},{name:"pill-shape",label:"Pill Shape"}],editorStyle:"wp-block-social-links-editor",style:"wp-block-social-links"},{name:bE}=hE,_E={example:{innerBlocks:[{name:"core/social-link",attributes:{service:"wordpress",url:"https://wordpress.org"}},{name:"core/social-link",attributes:{service:"facebook",url:"https://www.facebook.com/WordPress/"}},{name:"core/social-link",attributes:{service:"twitter",url:"https://twitter.com/WordPress"}}]},icon:Xw,edit:gE,save:function(e){const{attributes:{iconBackgroundColorValue:t,iconColorValue:n,showLabels:a,size:o}}=e,r=ut(o,{"has-visible-labels":a,"has-icon-color":n,"has-icon-background-color":t}),l=nt.useBlockProps.save({className:r}),i=nt.useInnerBlocksProps.save(l);return(0,Ke.createElement)("ul",{...i})},deprecated:uE},yE=()=>Xe({name:bE,metadata:hE,settings:_E}),vE=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M7 18h4.5v1.5h-7v-7H6V17L17 6h-4.5V4.5h7v7H18V7L7 18Z"})),fE=[{attributes:{height:{type:"number",default:100},width:{type:"number"}},migrate(e){const{height:t,width:n}=e;return{...e,width:void 0!==n?`${n}px`:void 0,height:void 0!==t?`${t}px`:void 0}},save:({attributes:e})=>(0,Ke.createElement)("div",{...nt.useBlockProps.save({style:{height:e.height,width:e.width},"aria-hidden":!0})})}],kE=fE,xE=0;function wE({label:e,onChange:t,isResizing:n,value:a=""}){const o=(0,jt.useInstanceId)(et.__experimentalUnitControl,"block-spacer-height-input"),[r,l]=(0,nt.useSettings)("spacing.spacingSizes","spacing.units"),i=l?l.filter((e=>"%"!==e)):["px","em","rem","vw","vh"],s=(0,et.__experimentalUseCustomUnits)({availableUnits:i,defaultValues:{px:100,em:10,rem:10,vw:10,vh:25}}),c=e=>{t(e.all)},[m,u]=(0,et.__experimentalParseQuantityAndUnitFromRawValue)(a),p=(0,nt.isValueSpacingPreset)(a)?a:[m,n?"px":u].join("");return(0,Ke.createElement)(Ke.Fragment,null,(!r||0===r?.length)&&(0,Ke.createElement)(et.BaseControl,{label:e,id:o},(0,Ke.createElement)(et.__experimentalUnitControl,{id:o,isResetValueOnUnitChange:!0,min:xE,onChange:c,style:{maxWidth:80},value:p,units:s})),r?.length>0&&(0,Ke.createElement)(Ye.View,{className:"tools-panel-item-spacing"},(0,Ke.createElement)(nt.__experimentalSpacingSizesControl,{values:{all:p},onChange:c,label:e,sides:["all"],units:s,allowReset:!1,splitOnAxis:!1,showSideInLabel:!1})))}function EE({setAttributes:e,orientation:t,height:n,width:a,isResizing:o}){return(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},"horizontal"===t&&(0,Ke.createElement)(wE,{label:(0,tt.__)("Width"),value:a,onChange:t=>e({width:t}),isResizing:o}),"horizontal"!==t&&(0,Ke.createElement)(wE,{label:(0,tt.__)("Height"),value:n,onChange:t=>e({height:t}),isResizing:o})))}const CE=({orientation:e,onResizeStart:t,onResize:n,onResizeStop:a,isSelected:o,isResizing:r,setIsResizing:l,...i})=>{const s=t=>"horizontal"===e?t.clientWidth:t.clientHeight,c=e=>`${s(e)}px`;return(0,Ke.createElement)(et.ResizableBox,{className:ut("block-library-spacer__resize-container",{"resize-horizontal":"horizontal"===e,"is-resizing":r,"is-selected":o}),onResizeStart:(e,a,o)=>{const r=c(o);t(r),n(r)},onResize:(e,t,a)=>{n(c(a)),r||l(!0)},onResizeStop:(e,t,n)=>{const o=s(n);a(`${o}px`),l(!1)},__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:"horizontal"===e?"x":"y",position:"corner",isVisible:r},showHandle:o,...i})},SE=({attributes:e,isSelected:t,setAttributes:n,toggleSelection:a,context:o,__unstableParentLayout:r,className:l})=>{const i=(0,gt.useSelect)((e=>{const t=e(nt.store).getSettings();return t?.disableCustomSpacingSizes})),{orientation:s}=o,{orientation:c,type:m,default:{type:u}={}}=r||{},p="flex"===m||!m&&"flex"===u,d=!c&&p?"horizontal":c||s,{height:g,width:h,style:b={}}=e,{layout:_={}}=b,{selfStretch:y,flexSize:v}=_,[f]=(0,nt.useSettings)("spacing.spacingSizes"),[k,x]=(0,_t.useState)(!1),[w,E]=(0,_t.useState)(null),[C,S]=(0,_t.useState)(null),B=()=>a(!1),N=()=>a(!0),T=e=>{N(),p&&n({style:{...b,layout:{..._,flexSize:e,selfStretch:"fixed"}}}),n({height:e}),E(null)},I=e=>{N(),p&&n({style:{...b,layout:{..._,flexSize:e,selfStretch:"fixed"}}}),n({width:e}),S(null)},P="horizontal"===d?C||v:w||v,M={height:"horizontal"===d?24:(()=>{if(!p)return w||(0,nt.getSpacingPresetCssVar)(g)||void 0})(),width:"horizontal"===d?(()=>{if(!p)return C||(0,nt.getSpacingPresetCssVar)(h)||void 0})():void 0,minWidth:"vertical"===d&&p?48:void 0,flexBasis:p?P:void 0,flexGrow:p&&k?0:void 0};return(0,_t.useEffect)((()=>{if(p&&"fill"!==y&&"fit"!==y&&!v)if("horizontal"===d){const e=(0,nt.getCustomValueFromPreset)(h,f)||(0,nt.getCustomValueFromPreset)(g,f)||"100px";n({width:"0px",style:{...b,layout:{..._,flexSize:e,selfStretch:"fixed"}}})}else{const e=(0,nt.getCustomValueFromPreset)(g,f)||(0,nt.getCustomValueFromPreset)(h,f)||"100px";n({height:"0px",style:{...b,layout:{..._,flexSize:e,selfStretch:"fixed"}}})}else!p||"fill"!==y&&"fit"!==y?p||!y&&!v||(n("horizontal"===d?{width:v}:{height:v}),n({style:{...b,layout:{..._,flexSize:void 0,selfStretch:void 0}}})):n("horizontal"===d?{width:void 0}:{height:void 0})}),[b,v,g,d,p,_,y,n,f,h]),(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(Ye.View,{...(0,nt.useBlockProps)({style:M,className:ut(l,{"custom-sizes-disabled":i})})},"horizontal"===(z=d)?(0,Ke.createElement)(CE,{minWidth:xE,enable:{top:!1,right:!0,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},orientation:z,onResizeStart:B,onResize:S,onResizeStop:I,isSelected:t,isResizing:k,setIsResizing:x}):(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(CE,{minHeight:xE,enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},orientation:z,onResizeStart:B,onResize:E,onResizeStop:T,isSelected:t,isResizing:k,setIsResizing:x}))),!p&&(0,Ke.createElement)(EE,{setAttributes:n,height:w||g,width:C||h,orientation:d,isResizing:k}));var z};const BE={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/spacer",title:"Spacer",category:"design",description:"Add white space between blocks and customize its height.",textdomain:"default",attributes:{height:{type:"string",default:"100px"},width:{type:"string"}},usesContext:["orientation"],supports:{anchor:!0,spacing:{margin:["top","bottom"],__experimentalDefaultControls:{margin:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-spacer-editor",style:"wp-block-spacer"},{name:NE}=BE,TE={icon:vE,edit:SE,save:function({attributes:e}){const{height:t,width:n,style:a}=e,{layout:{selfStretch:o}={}}=a||{},r="fill"===o||"fit"===o?void 0:t;return(0,Ke.createElement)("div",{...nt.useBlockProps.save({style:{height:(0,nt.getSpacingPresetCssVar)(r),width:(0,nt.getSpacingPresetCssVar)(n)},"aria-hidden":!0})})},deprecated:kE},IE=()=>Xe({name:NE,metadata:BE,settings:TE}),PE=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v3.5h-15V5c0-.3.2-.5.5-.5zm8 5.5h6.5v3.5H13V10zm-1.5 3.5h-7V10h7v3.5zm-7 5.5v-4h7v4.5H5c-.3 0-.5-.2-.5-.5zm14.5.5h-6V15h6.5v4c0 .3-.2.5-.5.5z"})),ME={"subtle-light-gray":"#f3f4f5","subtle-pale-green":"#e9fbe5","subtle-pale-blue":"#e7f5fe","subtle-pale-pink":"#fcf0ef"},zE={content:{type:"rich-text",source:"rich-text"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"},colspan:{type:"string",source:"attribute",attribute:"colspan"},rowspan:{type:"string",source:"attribute",attribute:"rowspan"}},RE={attributes:{hasFixedLayout:{type:"boolean",default:!1},caption:{type:"rich-text",source:"rich-text",selector:"figcaption"},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:zE}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:zE}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:zE}}}},supports:{anchor:!0,align:!0,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{__experimentalSkipSerialization:!0,color:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,style:!0,width:!0}},__experimentalSelector:".wp-block-table > table",interactivity:{clientNavigation:!0}},save({attributes:e}){const{hasFixedLayout:t,head:n,body:a,foot:o,caption:r}=e;if(!n.length&&!a.length&&!o.length)return null;const l=(0,nt.__experimentalGetColorClassesAndStyles)(e),i=(0,nt.__experimentalGetBorderClassesAndStyles)(e),s=ut(l.className,i.className,{"has-fixed-layout":t}),c=!nt.RichText.isEmpty(r),m=({type:e,rows:t})=>{if(!t.length)return null;const n=`t${e}`;return(0,Ke.createElement)(n,null,t.map((({cells:e},t)=>(0,Ke.createElement)("tr",{key:t},e.map((({content:e,tag:t,scope:n,align:a,colspan:o,rowspan:r},l)=>{const i=ut({[`has-text-align-${a}`]:a});return(0,Ke.createElement)(nt.RichText.Content,{className:i||void 0,"data-align":a,tagName:t,value:e,key:l,scope:"th"===t?n:void 0,colSpan:o,rowSpan:r})}))))))};return(0,Ke.createElement)("figure",{...nt.useBlockProps.save()},(0,Ke.createElement)("table",{className:""===s?void 0:s,style:{...l.style,...i.style}},(0,Ke.createElement)(m,{type:"head",rows:n}),(0,Ke.createElement)(m,{type:"body",rows:a}),(0,Ke.createElement)(m,{type:"foot",rows:o})),c&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",value:r,className:(0,nt.__experimentalGetElementClassName)("caption")}))}},AE={content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}},LE={attributes:{hasFixedLayout:{type:"boolean",default:!1},caption:{type:"string",source:"html",selector:"figcaption",default:""},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:AE}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:AE}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:AE}}}},supports:{anchor:!0,align:!0,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{__experimentalSkipSerialization:!0,color:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,style:!0,width:!0}},__experimentalSelector:".wp-block-table > table"},save({attributes:e}){const{hasFixedLayout:t,head:n,body:a,foot:o,caption:r}=e;if(!n.length&&!a.length&&!o.length)return null;const l=(0,nt.__experimentalGetColorClassesAndStyles)(e),i=(0,nt.__experimentalGetBorderClassesAndStyles)(e),s=ut(l.className,i.className,{"has-fixed-layout":t}),c=!nt.RichText.isEmpty(r),m=({type:e,rows:t})=>{if(!t.length)return null;const n=`t${e}`;return(0,Ke.createElement)(n,null,t.map((({cells:e},t)=>(0,Ke.createElement)("tr",{key:t},e.map((({content:e,tag:t,scope:n,align:a},o)=>{const r=ut({[`has-text-align-${a}`]:a});return(0,Ke.createElement)(nt.RichText.Content,{className:r||void 0,"data-align":a,tagName:t,value:e,key:o,scope:"th"===t?n:void 0})}))))))};return(0,Ke.createElement)("figure",{...nt.useBlockProps.save()},(0,Ke.createElement)("table",{className:""===s?void 0:s,style:{...l.style,...i.style}},(0,Ke.createElement)(m,{type:"head",rows:n}),(0,Ke.createElement)(m,{type:"body",rows:a}),(0,Ke.createElement)(m,{type:"foot",rows:o})),c&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",value:r}))}},HE={content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}},DE={attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption",default:""},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:HE}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:HE}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:HE}}}},supports:{anchor:!0,align:!0,__experimentalSelector:".wp-block-table > table"},save:({attributes:e})=>{const{hasFixedLayout:t,head:n,body:a,foot:o,backgroundColor:r,caption:l}=e;if(!n.length&&!a.length&&!o.length)return null;const i=(0,nt.getColorClassName)("background-color",r),s=ut(i,{"has-fixed-layout":t,"has-background":!!i}),c=!nt.RichText.isEmpty(l),m=({type:e,rows:t})=>{if(!t.length)return null;const n=`t${e}`;return(0,Ke.createElement)(n,null,t.map((({cells:e},t)=>(0,Ke.createElement)("tr",{key:t},e.map((({content:e,tag:t,scope:n,align:a},o)=>{const r=ut({[`has-text-align-${a}`]:a});return(0,Ke.createElement)(nt.RichText.Content,{className:r||void 0,"data-align":a,tagName:t,value:e,key:o,scope:"th"===t?n:void 0})}))))))};return(0,Ke.createElement)("figure",{...nt.useBlockProps.save()},(0,Ke.createElement)("table",{className:""===s?void 0:s},(0,Ke.createElement)(m,{type:"head",rows:n}),(0,Ke.createElement)(m,{type:"body",rows:a}),(0,Ke.createElement)(m,{type:"foot",rows:o})),c&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",value:l}))},isEligible:e=>e.backgroundColor&&e.backgroundColor in ME&&!e.style,migrate:e=>({...e,backgroundColor:void 0,style:{color:{background:ME[e.backgroundColor]}}})},FE={content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}},VE={attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:FE}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:FE}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:FE}}}},supports:{align:!0},save({attributes:e}){const{hasFixedLayout:t,head:n,body:a,foot:o,backgroundColor:r}=e;if(!n.length&&!a.length&&!o.length)return null;const l=(0,nt.getColorClassName)("background-color",r),i=ut(l,{"has-fixed-layout":t,"has-background":!!l}),s=({type:e,rows:t})=>{if(!t.length)return null;const n=`t${e}`;return(0,Ke.createElement)(n,null,t.map((({cells:e},t)=>(0,Ke.createElement)("tr",{key:t},e.map((({content:e,tag:t,scope:n},a)=>(0,Ke.createElement)(nt.RichText.Content,{tagName:t,value:e,key:a,scope:"th"===t?n:void 0})))))))};return(0,Ke.createElement)("table",{className:i},(0,Ke.createElement)(s,{type:"head",rows:n}),(0,Ke.createElement)(s,{type:"body",rows:a}),(0,Ke.createElement)(s,{type:"foot",rows:o}))}},$E=[RE,LE,DE,VE],GE=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z"})),OE=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"})),UE=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M11.111 5.5H20V4h-8.889v1.5ZM4 12.5h16V11H4v1.5Zm7.111 7H20V18h-8.889v1.5Z"})),qE=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M6.656 6.464h2.88v2.88h1.408v-2.88h2.88V5.12h-2.88V2.24H9.536v2.88h-2.88zM0 17.92V0h20.48v17.92H0zm7.68-2.56h5.12v-3.84H7.68v3.84zm-6.4 0H6.4v-3.84H1.28v3.84zM19.2 1.28H1.28v9.024H19.2V1.28zm0 10.24h-5.12v3.84h5.12v-3.84zM6.656 6.464h2.88v2.88h1.408v-2.88h2.88V5.12h-2.88V2.24H9.536v2.88h-2.88zM0 17.92V0h20.48v17.92H0zm7.68-2.56h5.12v-3.84H7.68v3.84zm-6.4 0H6.4v-3.84H1.28v3.84zM19.2 1.28H1.28v9.024H19.2V1.28zm0 10.24h-5.12v3.84h5.12v-3.84z"})),jE=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M13.824 10.176h-2.88v-2.88H9.536v2.88h-2.88v1.344h2.88v2.88h1.408v-2.88h2.88zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm6.4 0H7.68v3.84h5.12V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.056H1.28v9.024H19.2V6.336z"})),WE=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M17.728 11.456L14.592 8.32l3.2-3.2-1.536-1.536-3.2 3.2L9.92 3.648 8.384 5.12l3.2 3.2-3.264 3.264 1.536 1.536 3.264-3.264 3.136 3.136 1.472-1.536zM0 17.92V0h20.48v17.92H0zm19.2-6.4h-.448l-1.28-1.28H19.2V6.4h-1.792l1.28-1.28h.512V1.28H1.28v3.84h6.208l1.28 1.28H1.28v3.84h7.424l-1.28 1.28H1.28v3.84H19.2v-3.84z"})),ZE=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M6.4 3.776v3.648H2.752v1.792H6.4v3.648h1.728V9.216h3.712V7.424H8.128V3.776zM0 17.92V0h20.48v17.92H0zM12.8 1.28H1.28v14.08H12.8V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.12h-5.12v3.84h5.12V6.4zm0 5.12h-5.12v3.84h5.12v-3.84z"})),QE=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M14.08 12.864V9.216h3.648V7.424H14.08V3.776h-1.728v3.648H8.64v1.792h3.712v3.648zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm0 5.12H1.28v3.84H6.4V6.4zm0 5.12H1.28v3.84H6.4v-3.84zM19.2 1.28H7.68v14.08H19.2V1.28z"})),KE=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M6.4 9.98L7.68 8.7v-.256L6.4 7.164V9.98zm6.4-1.532l1.28-1.28V9.92L12.8 8.64v-.192zm7.68 9.472V0H0v17.92h20.48zm-1.28-2.56h-5.12v-1.024l-.256.256-1.024-1.024v1.792H7.68v-1.792l-1.024 1.024-.256-.256v1.024H1.28V1.28H6.4v2.368l.704-.704.576.576V1.216h5.12V3.52l.96-.96.32.32V1.216h5.12V15.36zm-5.76-2.112l-3.136-3.136-3.264 3.264-1.536-1.536 3.264-3.264L5.632 5.44l1.536-1.536 3.136 3.136 3.2-3.2 1.536 1.536-3.2 3.2 3.136 3.136-1.536 1.536z"})),YE=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M4 6v11.5h16V6H4zm1.5 1.5h6V11h-6V7.5zm0 8.5v-3.5h6V16h-6zm13 0H13v-3.5h5.5V16zM13 11V7.5h5.5V11H13z"})),JE=["align"];function XE(e,t,n){if(!t)return e;const a=Object.fromEntries(Object.entries(e).filter((([e])=>["head","body","foot"].includes(e)))),{sectionName:o,rowIndex:r}=t;return Object.fromEntries(Object.entries(a).map((([e,a])=>o&&o!==e?[e,a]:[e,a.map(((a,o)=>r&&r!==o?a:{cells:a.cells.map(((a,r)=>function(e,t){if(!e||!t)return!1;switch(t.type){case"column":return"column"===t.type&&e.columnIndex===t.columnIndex;case"cell":return"cell"===t.type&&e.sectionName===t.sectionName&&e.columnIndex===t.columnIndex&&e.rowIndex===t.rowIndex}}({sectionName:e,columnIndex:r,rowIndex:o},t)?n(a):a))}))])))}function eC(e,{sectionName:t,rowIndex:n,columnCount:a}){const o=function(e){return nC(e.head)?nC(e.body)?nC(e.foot)?void 0:e.foot[0]:e.body[0]:e.head[0]}(e),r=void 0===a?o?.cells?.length:a;return r?{[t]:[...e[t].slice(0,n),{cells:Array.from({length:r}).map(((e,n)=>{var a;const r=null!==(a=o?.cells?.[n])&&void 0!==a?a:{};return{...Object.fromEntries(Object.entries(r).filter((([e])=>JE.includes(e)))),content:"",tag:"head"===t?"th":"td"}}))},...e[t].slice(n)]}:e}function tC(e,t){var n;if(!nC(e[t]))return{[t]:[]};return eC(e,{sectionName:t,rowIndex:0,columnCount:null!==(n=e.body?.[0]?.cells?.length)&&void 0!==n?n:1})}function nC(e){return!e||!e.length||e.every(aC)}function aC(e){return!(e.cells&&e.cells.length)}const oC=[{icon:GE,title:(0,tt.__)("Align column left"),align:"left"},{icon:OE,title:(0,tt.__)("Align column center"),align:"center"},{icon:UE,title:(0,tt.__)("Align column right"),align:"right"}],rC={head:(0,tt.__)("Header cell text"),body:(0,tt.__)("Body cell text"),foot:(0,tt.__)("Footer cell text")},lC={head:(0,tt.__)("Header label"),foot:(0,tt.__)("Footer label")};function iC({name:e,...t}){const n=`t${e}`;return(0,Ke.createElement)(n,{...t})}const sC=function({attributes:e,setAttributes:t,insertBlocksAfter:n,isSelected:a}){const{hasFixedLayout:o,caption:r,head:l,foot:i}=e,[s,c]=(0,_t.useState)(2),[m,u]=(0,_t.useState)(2),[p,d]=(0,_t.useState)(),g=(0,nt.__experimentalUseColorProps)(e),h=(0,nt.__experimentalUseBorderProps)(e),b=(0,_t.useRef)(),[_,y]=(0,_t.useState)(!1);function v(n){p&&t(XE(e,p,(e=>({...e,content:n}))))}function f(n){if(!p)return;const{sectionName:a,rowIndex:o}=p,r=o+n;t(eC(e,{sectionName:a,rowIndex:r})),d({sectionName:a,rowIndex:r,columnIndex:0,type:"cell"})}function k(n=0){if(!p)return;const{columnIndex:a}=p,o=a+n;t(function(e,{columnIndex:t}){const n=Object.fromEntries(Object.entries(e).filter((([e])=>["head","body","foot"].includes(e))));return Object.fromEntries(Object.entries(n).map((([e,n])=>nC(n)?[e,n]:[e,n.map((n=>aC(n)||n.cells.length<t?n:{cells:[...n.cells.slice(0,t),{content:"",tag:"head"===e?"th":"td"},...n.cells.slice(t)]}))])))}(e,{columnIndex:o})),d({rowIndex:0,columnIndex:o,type:"cell"})}(0,_t.useEffect)((()=>{a||d()}),[a]),(0,_t.useEffect)((()=>{_&&(b?.current?.querySelector('td div[contentEditable="true"]')?.focus(),y(!1))}),[_]);const x=["head","body","foot"].filter((t=>!nC(e[t]))),w=[{icon:qE,title:(0,tt.__)("Insert row before"),isDisabled:!p,onClick:function(){f(0)}},{icon:jE,title:(0,tt.__)("Insert row after"),isDisabled:!p,onClick:function(){f(1)}},{icon:WE,title:(0,tt.__)("Delete row"),isDisabled:!p,onClick:function(){if(!p)return;const{sectionName:n,rowIndex:a}=p;d(),t(function(e,{sectionName:t,rowIndex:n}){return{[t]:e[t].filter(((e,t)=>t!==n))}}(e,{sectionName:n,rowIndex:a}))}},{icon:ZE,title:(0,tt.__)("Insert column before"),isDisabled:!p,onClick:function(){k(0)}},{icon:QE,title:(0,tt.__)("Insert column after"),isDisabled:!p,onClick:function(){k(1)}},{icon:KE,title:(0,tt.__)("Delete column"),isDisabled:!p,onClick:function(){if(!p)return;const{sectionName:n,columnIndex:a}=p;d(),t(function(e,{columnIndex:t}){const n=Object.fromEntries(Object.entries(e).filter((([e])=>["head","body","foot"].includes(e))));return Object.fromEntries(Object.entries(n).map((([e,n])=>nC(n)?[e,n]:[e,n.map((e=>({cells:e.cells.length>=t?e.cells.filter(((e,n)=>n!==t)):e.cells}))).filter((e=>e.cells.length))])))}(e,{sectionName:n,columnIndex:a}))}}],E=x.map((t=>(0,Ke.createElement)(iC,{name:t,key:t},e[t].map((({cells:e},n)=>(0,Ke.createElement)("tr",{key:n},e.map((({content:e,tag:a,scope:o,align:r,colspan:l,rowspan:i},s)=>(0,Ke.createElement)(a,{key:s,scope:"th"===a?o:void 0,colSpan:l,rowSpan:i,className:ut({[`has-text-align-${r}`]:r},"wp-block-table__cell-content")},(0,Ke.createElement)(nt.RichText,{value:e,onChange:v,onFocus:()=>{d({sectionName:t,rowIndex:n,columnIndex:s,type:"cell"})},"aria-label":rC[t],placeholder:lC[t]})))))))))),C=!x.length;return(0,Ke.createElement)("figure",{...(0,nt.useBlockProps)({ref:b})},!C&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(nt.AlignmentControl,{label:(0,tt.__)("Change column alignment"),alignmentControls:oC,value:function(){if(p)return function(e,t,n){const{sectionName:a,rowIndex:o,columnIndex:r}=t;return e[a]?.[o]?.cells?.[r]?.[n]}(e,p,"align")}(),onChange:n=>function(n){if(!p)return;const a={type:"column",columnIndex:p.columnIndex},o=XE(e,a,(e=>({...e,align:n})));t(o)}(n)})),(0,Ke.createElement)(nt.BlockControls,{group:"other"},(0,Ke.createElement)(et.ToolbarDropdownMenu,{hasArrowIndicator:!0,icon:YE,label:(0,tt.__)("Edit table"),controls:w}))),(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings"),className:"blocks-table-settings"},(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Fixed width table cells"),checked:!!o,onChange:function(){t({hasFixedLayout:!o})}}),!C&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Header section"),checked:!(!l||!l.length),onChange:function(){t(tC(e,"head"))}}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Footer section"),checked:!(!i||!i.length),onChange:function(){t(tC(e,"foot"))}})))),!C&&(0,Ke.createElement)("table",{className:ut(g.className,h.className,{"has-fixed-layout":o,"has-individual-borders":(0,et.__experimentalHasSplitBorders)(e?.style?.border)}),style:{...g.style,...h.style}},E),!C&&(0,Ke.createElement)(nt.RichText,{identifier:"caption",tagName:"figcaption",className:(0,nt.__experimentalGetElementClassName)("caption"),"aria-label":(0,tt.__)("Table caption text"),placeholder:(0,tt.__)("Add caption"),value:r,onChange:e=>t({caption:e}),onFocus:()=>d(),__unstableOnSplitAtEnd:()=>n((0,Qe.createBlock)((0,Qe.getDefaultBlockName)()))}),C&&(0,Ke.createElement)(et.Placeholder,{label:(0,tt.__)("Table"),icon:(0,Ke.createElement)(nt.BlockIcon,{icon:PE,showColors:!0}),instructions:(0,tt.__)("Insert a table for sharing data.")},(0,Ke.createElement)("form",{className:"blocks-table__placeholder-form",onSubmit:function(e){e.preventDefault(),t(function({rowCount:e,columnCount:t}){return{body:Array.from({length:e}).map((()=>({cells:Array.from({length:t}).map((()=>({content:"",tag:"td"})))})))}}({rowCount:parseInt(s,10)||2,columnCount:parseInt(m,10)||2})),y(!0)}},(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,type:"number",label:(0,tt.__)("Column count"),value:m,onChange:function(e){u(e)},min:"1",className:"blocks-table__placeholder-input"}),(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,type:"number",label:(0,tt.__)("Row count"),value:s,onChange:function(e){c(e)},min:"1",className:"blocks-table__placeholder-input"}),(0,Ke.createElement)(et.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit"},(0,tt.__)("Create Table")))))};function cC(e){const t=parseInt(e,10);if(Number.isInteger(t))return t<0||1===t?void 0:t.toString()}const mC=({phrasingContentSchema:e})=>({tr:{allowEmpty:!0,children:{th:{allowEmpty:!0,children:e,attributes:["scope","colspan","rowspan"]},td:{allowEmpty:!0,children:e,attributes:["colspan","rowspan"]}}}}),uC={from:[{type:"raw",selector:"table",schema:e=>({table:{children:{thead:{allowEmpty:!0,children:mC(e)},tfoot:{allowEmpty:!0,children:mC(e)},tbody:{allowEmpty:!0,children:mC(e)}}}}),transform:e=>{const t=Array.from(e.children).reduce(((e,t)=>{if(!t.children.length)return e;const n=t.nodeName.toLowerCase().slice(1),a=Array.from(t.children).reduce(((e,t)=>{if(!t.children.length)return e;const n=Array.from(t.children).reduce(((e,t)=>{const n=cC(t.getAttribute("rowspan")),a=cC(t.getAttribute("colspan"));return e.push({tag:t.nodeName.toLowerCase(),content:t.innerHTML,rowspan:n,colspan:a}),e}),[]);return e.push({cells:n}),e}),[]);return e[n]=a,e}),{});return(0,Qe.createBlock)("core/table",t)}}]},pC=uC,dC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/table",title:"Table",category:"text",description:"Create structured content in rows and columns to display information.",textdomain:"default",attributes:{hasFixedLayout:{type:"boolean",default:!0},caption:{type:"rich-text",source:"rich-text",selector:"figcaption"},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"rich-text",source:"rich-text"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"},colspan:{type:"string",source:"attribute",attribute:"colspan"},rowspan:{type:"string",source:"attribute",attribute:"rowspan"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"rich-text",source:"rich-text"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"},colspan:{type:"string",source:"attribute",attribute:"colspan"},rowspan:{type:"string",source:"attribute",attribute:"rowspan"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"rich-text",source:"rich-text"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"},colspan:{type:"string",source:"attribute",attribute:"colspan"},rowspan:{type:"string",source:"attribute",attribute:"rowspan"}}}}}},supports:{anchor:!0,align:!0,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{__experimentalSkipSerialization:!0,color:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,style:!0,width:!0}},__experimentalSelector:".wp-block-table > table",interactivity:{clientNavigation:!0}},styles:[{name:"regular",label:"Default",isDefault:!0},{name:"stripes",label:"Stripes"}],editorStyle:"wp-block-table-editor",style:"wp-block-table"},{name:gC}=dC,hC={icon:PE,example:{attributes:{head:[{cells:[{content:(0,tt.__)("Version"),tag:"th"},{content:(0,tt.__)("Jazz Musician"),tag:"th"},{content:(0,tt.__)("Release Date"),tag:"th"}]}],body:[{cells:[{content:"5.2",tag:"td"},{content:"Jaco Pastorius",tag:"td"},{content:(0,tt.__)("May 7, 2019"),tag:"td"}]},{cells:[{content:"5.1",tag:"td"},{content:"Betty Carter",tag:"td"},{content:(0,tt.__)("February 21, 2019"),tag:"td"}]},{cells:[{content:"5.0",tag:"td"},{content:"Bebo Valdés",tag:"td"},{content:(0,tt.__)("December 6, 2018"),tag:"td"}]}]},viewportWidth:450},transforms:pC,edit:sC,save:function({attributes:e}){const{hasFixedLayout:t,head:n,body:a,foot:o,caption:r}=e;if(!n.length&&!a.length&&!o.length)return null;const l=(0,nt.__experimentalGetColorClassesAndStyles)(e),i=(0,nt.__experimentalGetBorderClassesAndStyles)(e),s=ut(l.className,i.className,{"has-fixed-layout":t}),c=!nt.RichText.isEmpty(r),m=({type:e,rows:t})=>{if(!t.length)return null;const n=`t${e}`;return(0,Ke.createElement)(n,null,t.map((({cells:e},t)=>(0,Ke.createElement)("tr",{key:t},e.map((({content:e,tag:t,scope:n,align:a,colspan:o,rowspan:r},l)=>{const i=ut({[`has-text-align-${a}`]:a});return(0,Ke.createElement)(nt.RichText.Content,{className:i||void 0,"data-align":a,tagName:t,value:e,key:l,scope:"th"===t?n:void 0,colSpan:o,rowSpan:r})}))))))};return(0,Ke.createElement)("figure",{...nt.useBlockProps.save()},(0,Ke.createElement)("table",{className:""===s?void 0:s,style:{...l.style,...i.style}},(0,Ke.createElement)(m,{type:"head",rows:n}),(0,Ke.createElement)(m,{type:"body",rows:a}),(0,Ke.createElement)(m,{type:"foot",rows:o})),c&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",value:r,className:(0,nt.__experimentalGetElementClassName)("caption")}))},deprecated:$E},bC=()=>Xe({name:gC,metadata:dC,settings:hC}),_C=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M20 9.484h-8.889v-1.5H20v1.5Zm0 7h-4.889v-1.5H20v1.5Zm-14 .032a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0 1a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"}),(0,Ke.createElement)(Ye.Path,{d:"M13 15.516a2 2 0 1 1-4 0 2 2 0 0 1 4 0ZM8 8.484a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"})),yC="wp-block-table-of-contents__entry";function vC({nestedHeadingList:e,disableLinkActivation:t,onClick:n}){return(0,Ke.createElement)(Ke.Fragment,null,e.map(((e,a)=>{const{content:o,link:r}=e.heading,l=r?(0,Ke.createElement)("a",{className:yC,href:r,"aria-disabled":t||void 0,onClick:t&&"function"==typeof n?n:void 0},o):(0,Ke.createElement)("span",{className:yC},o);return(0,Ke.createElement)("li",{key:a},l,e.children?(0,Ke.createElement)("ol",null,(0,Ke.createElement)(vC,{nestedHeadingList:e.children,disableLinkActivation:t,onClick:t&&"function"==typeof n?n:void 0})):null)})))}function fC(e){const t=[];return e.forEach(((n,a)=>{if(""!==n.content&&n.level===e[0].level)if(e[a+1]?.level>n.level){let o=e.length;for(let t=a+1;t<e.length;t++)if(e[t].level===n.level){o=t;break}t.push({heading:n,children:fC(e.slice(a+1,o))})}else t.push({heading:n,children:null})})),t}var kC=n(7734),xC=n.n(kC);function wC(e,t,n){const{getBlockAttributes:a}=e(nt.store),{updateBlockAttributes:o,__unstableMarkNextChangeAsNotPersistent:r}=t(nt.store),l=a(n);if(null===l)return;const i=function(e,t){var n,a;const{getBlockAttributes:o,getBlockName:r,getClientIdsWithDescendants:l,getBlocksByName:i}=e(nt.store),s=null!==(n=e("core/editor").getPermalink())&&void 0!==n?n:null,c=0!==i("core/nextpage").length,{onlyIncludeCurrentPage:m}=null!==(a=o(t))&&void 0!==a?a:{},u=l();let p=1;if(c&&m){const e=u.indexOf(t);for(const[t,n]of u.entries()){if(t>=e)break;"core/nextpage"===r(n)&&p++}}const d=[];let g=1,h=null;"string"==typeof s&&(h=c?(0,pt.addQueryArgs)(s,{page:g}):s);for(const e of u){const t=r(e);if("core/nextpage"===t){if(g++,m&&g>p)break;"string"==typeof s&&(h=(0,pt.addQueryArgs)((0,pt.removeQueryArgs)(s,["page"]),{page:g}))}else if((!m||g===p)&&"core/heading"===t){const t=o(e),n="string"==typeof h&&"string"==typeof t.anchor&&""!==t.anchor;d.push({content:(0,lc.__unstableStripHTML)(t.content.replace(/(<br *\/?>)+/g," ")),level:t.level,link:n?`${h}#${t.anchor}`:null})}}return d}(e,n);xC()(i,l.headings)||(r(),o(n,{headings:i}))}const EC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/table-of-contents",title:"Table of Contents",category:"layout",description:"Summarize your post with a list of headings. Add HTML anchors to Heading blocks to link them here.",keywords:["document outline","summary"],textdomain:"default",attributes:{headings:{type:"array",items:{type:"object"},default:[]},onlyIncludeCurrentPage:{type:"boolean",default:!1}},supports:{html:!1,color:{text:!0,background:!0,gradients:!0,link:!0},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},example:{}},{name:CC}=EC,SC={icon:_C,edit:function e({attributes:{headings:t=[],onlyIncludeCurrentPage:n},clientId:a,setAttributes:o}){!function(e){const t=(0,gt.useRegistry)();(0,_t.useEffect)((()=>t.subscribe((()=>wC(t.select,t.dispatch,e)))),[t,e])}(a);const r=(0,nt.useBlockProps)(),l=(0,jt.useInstanceId)(e,"table-of-contents"),{createWarningNotice:i,removeNotice:s}=(0,gt.useDispatch)(Pt.store);let c;const m=(0,gt.useSelect)((e=>{const{getBlockRootClientId:t,canInsertBlockType:n}=e(nt.store);return n("core/list",t(a))}),[a]),{replaceBlocks:u}=(0,gt.useDispatch)(nt.store),p=fC(t),d=m&&(0,Ke.createElement)(nt.BlockControls,null,(0,Ke.createElement)(et.ToolbarGroup,null,(0,Ke.createElement)(et.ToolbarButton,{onClick:()=>u(a,(0,Qe.createBlock)("core/list",{ordered:!0,values:(0,_t.renderToString)((0,Ke.createElement)(vC,{nestedHeadingList:p}))}))},(0,tt.__)("Convert to static list")))),g=(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Only include current page"),checked:n,onChange:e=>o({onlyIncludeCurrentPage:e}),help:n?(0,tt.__)("Only including headings from the current page (if the post is paginated)."):(0,tt.__)("Toggle to only include headings from the current page (if the post is paginated).")})));return 0===t.length?(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)("div",{...r},(0,Ke.createElement)(et.Placeholder,{icon:(0,Ke.createElement)(nt.BlockIcon,{icon:_C}),label:(0,tt.__)("Table of Contents"),instructions:(0,tt.__)("Start adding Heading blocks to create a table of contents. Headings with HTML anchors will be linked here.")})),g):(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)("nav",{...r},(0,Ke.createElement)("ol",null,(0,Ke.createElement)(vC,{nestedHeadingList:p,disableLinkActivation:!0,onClick:e=>{e.preventDefault(),s(c),c=`block-library/core/table-of-contents/redirection-prevented/${l}`,i((0,tt.__)("Links are disabled in the editor."),{id:c,type:"snackbar"})}}))),d,g)},save:function({attributes:{headings:e=[]}}){return 0===e.length?null:(0,Ke.createElement)("nav",{...nt.useBlockProps.save()},(0,Ke.createElement)("ol",null,(0,Ke.createElement)(vC,{nestedHeadingList:fC(e)})))}},BC=()=>Xe({name:CC,metadata:EC,settings:SC}),NC={from:[{type:"block",blocks:["core/categories"],transform:()=>(0,Qe.createBlock)("core/tag-cloud")}],to:[{type:"block",blocks:["core/categories"],transform:()=>(0,Qe.createBlock)("core/categories")}]};const TC=function({attributes:e,setAttributes:t}){const{taxonomy:n,showTagCounts:a,numberOfTags:o,smallestFontSize:r,largestFontSize:l}=e,[i]=(0,nt.useSettings)("spacing.units"),s=(0,et.__experimentalUseCustomUnits)({availableUnits:i||["%","px","em","rem"]}),c=(0,gt.useSelect)((e=>e(dt.store).getTaxonomies({per_page:-1})),[]),m=(e,n)=>{const[a,o]=(0,et.__experimentalParseQuantityAndUnitFromRawValue)(n);if(!Number.isFinite(a))return;const i={[e]:n};Object.entries({smallestFontSize:r,largestFontSize:l}).forEach((([t,n])=>{const[a,r]=(0,et.__experimentalParseQuantityAndUnitFromRawValue)(n);t!==e&&r!==o&&(i[t]=`${a}${o}`)})),t(i)},u=(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Taxonomy"),options:[{label:(0,tt.__)("- Select -"),value:"",disabled:!0},...(null!=c?c:[]).filter((e=>!!e.show_cloud)).map((e=>({value:e.slug,label:e.name})))],value:n,onChange:e=>t({taxonomy:e})}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show post counts"),checked:a,onChange:()=>t({showTagCounts:!a})}),(0,Ke.createElement)(et.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Number of tags"),value:o,onChange:e=>t({numberOfTags:e}),min:1,max:100,required:!0}),(0,Ke.createElement)(et.Flex,null,(0,Ke.createElement)(et.FlexItem,{isBlock:!0},(0,Ke.createElement)(et.__experimentalUnitControl,{label:(0,tt.__)("Smallest size"),value:r,onChange:e=>{m("smallestFontSize",e)},units:s,min:.1,max:100})),(0,Ke.createElement)(et.FlexItem,{isBlock:!0},(0,Ke.createElement)(et.__experimentalUnitControl,{label:(0,tt.__)("Largest size"),value:l,onChange:e=>{m("largestFontSize",e)},units:s,min:.1,max:100})))));return(0,Ke.createElement)(Ke.Fragment,null,u,(0,Ke.createElement)("div",{...(0,nt.useBlockProps)()},(0,Ke.createElement)(et.Disabled,null,(0,Ke.createElement)(ot(),{skipBlockSupportAttributes:!0,block:"core/tag-cloud",attributes:e}))))},IC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/tag-cloud",title:"Tag Cloud",category:"widgets",description:"A cloud of your most used tags.",textdomain:"default",attributes:{numberOfTags:{type:"number",default:45,minimum:1,maximum:100},taxonomy:{type:"string",default:"post_tag"},showTagCounts:{type:"boolean",default:!1},smallestFontSize:{type:"string",default:"8pt"},largestFontSize:{type:"string",default:"22pt"}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"outline",label:"Outline"}],supports:{html:!1,align:!0,spacing:{margin:!0,padding:!0},typography:{lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-tag-cloud-editor"},{name:PC}=IC,MC={icon:ub,example:{},edit:TC,transforms:NC},zC=()=>Xe({name:PC,metadata:IC,settings:MC});var RC=function(){return RC=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},RC.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;function AC(e){return e.toLowerCase()}var LC=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],HC=/[^A-Z0-9]+/gi;function DC(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,a=void 0===n?LC:n,o=t.stripRegexp,r=void 0===o?HC:o,l=t.transform,i=void 0===l?AC:l,s=t.delimiter,c=void 0===s?" ":s,m=FC(FC(e,a,"$1\0$2"),r,"\0"),u=0,p=m.length;"\0"===m.charAt(u);)u++;for(;"\0"===m.charAt(p-1);)p--;return m.slice(u,p).split("\0").map(i).join(c)}function FC(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function VC(e){return function(e){return e.charAt(0).toUpperCase()+e.substr(1)}(e.toLowerCase())}const $C=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-17.6 1L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"}));function GC(e,t){return void 0===t&&(t={}),function(e,t){return void 0===t&&(t={}),DC(e,RC({delimiter:"."},t))}(e,RC({delimiter:"-"},t))}function OC(e,t){const{templateParts:n,isResolving:a}=(0,gt.useSelect)((e=>{const{getEntityRecords:t,isResolving:n}=e(dt.store),a={per_page:-1};return{templateParts:t("postType","wp_template_part",a),isResolving:n("getEntityRecords",["postType","wp_template_part",a])}}),[]);return{templateParts:(0,_t.useMemo)((()=>n&&n.filter((n=>sh(n.theme,n.slug)!==t&&(!e||"uncategorized"===e||n.area===e)))||[]),[n,e,t]),isResolving:a}}function UC(e,t){return(0,gt.useSelect)((n=>{const a=e?`core/template-part/${e}`:"core/template-part",{getBlockRootClientId:o,getPatternsByBlockTypes:r}=n(nt.store);return r(a,o(t))}),[e,t])}function qC(e,t){const{saveEntityRecord:n}=(0,gt.useDispatch)(dt.store);return async(a=[],o=(0,tt.__)("Untitled Template Part"))=>{const r={title:o,slug:GC(o).replace(/[^\w-]+/g,"")||"wp-custom-part",content:(0,Qe.serialize)(a),area:e},l=await n("postType","wp_template_part",r);t({slug:l.slug,theme:l.theme,area:void 0})}}function jC(e){return(0,gt.useSelect)((t=>{var n;const a=t("core/editor").__experimentalGetDefaultTemplatePartAreas(),o=a.find((t=>t.area===e)),r=a.find((e=>"uncategorized"===e.area));return{icon:o?.icon||r?.icon,label:o?.label||(0,tt.__)("Template Part"),tagName:null!==(n=o?.area_tag)&&void 0!==n?n:"div"}}),[e])}function WC({areaLabel:e,onClose:t,onSubmit:n}){const[a,o]=(0,_t.useState)((0,tt.__)("Untitled Template Part"));return(0,Ke.createElement)(et.Modal,{title:(0,tt.sprintf)((0,tt.__)("Name and create your new %s"),e.toLowerCase()),overlayClassName:"wp-block-template-part__placeholder-create-new__title-form",onRequestClose:t},(0,Ke.createElement)("form",{onSubmit:e=>{e.preventDefault(),n(a)}},(0,Ke.createElement)(et.__experimentalVStack,{spacing:"5"},(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Name"),value:a,onChange:o}),(0,Ke.createElement)(et.__experimentalHStack,{justify:"right"},(0,Ke.createElement)(et.Button,{variant:"primary",type:"submit",disabled:!a.length,"aria-disabled":!a.length},(0,tt.__)("Create"))))))}function ZC({area:e,clientId:t,templatePartId:n,onOpenSelectionModal:a,setAttributes:o}){const{templateParts:r,isResolving:l}=OC(e,n),i=UC(e,t),[s,c]=(0,_t.useState)(!1),m=jC(e),u=qC(e,o);return(0,Ke.createElement)(et.Placeholder,{icon:m.icon,label:m.label,instructions:(0,tt.sprintf)((0,tt.__)("Choose an existing %s or create a new one."),m.label.toLowerCase())},l&&(0,Ke.createElement)(et.Spinner,null),!l&&!(!r.length&&!i.length)&&(0,Ke.createElement)(et.Button,{variant:"primary",onClick:a},(0,tt.__)("Choose")),!l&&(0,Ke.createElement)(et.Button,{variant:"secondary",onClick:()=>{c(!0)}},(0,tt.__)("Start blank")),s&&(0,Ke.createElement)(WC,{areaLabel:m.label,onClose:()=>c(!1),onSubmit:e=>{u([],e)}}))}function QC({setAttributes:e,onClose:t,templatePartId:n=null,area:a,clientId:o}){const[r,l]=(0,_t.useState)(""),{templateParts:i}=OC(a,n),s=(0,_t.useMemo)((()=>Kf(i.map((e=>function(e){return{name:sh(e.theme,e.slug),title:e.title.rendered,blocks:(0,Qe.parse)(e.content.raw),templatePart:e}}(e))),r)),[i,r]),c=(0,jt.useAsyncList)(s),m=UC(a,o),u=(0,_t.useMemo)((()=>Kf(m,r)),[m,r]),{createSuccessNotice:p}=(0,gt.useDispatch)(Pt.store),d=!!s.length,g=!!u.length;return(0,Ke.createElement)("div",{className:"block-library-template-part__selection-content"},(0,Ke.createElement)("div",{className:"block-library-template-part__selection-search"},(0,Ke.createElement)(et.SearchControl,{__nextHasNoMarginBottom:!0,onChange:l,value:r,label:(0,tt.__)("Search for replacements"),placeholder:(0,tt.__)("Search")})),d&&(0,Ke.createElement)("div",null,(0,Ke.createElement)("h2",null,(0,tt.__)("Existing template parts")),(0,Ke.createElement)(nt.__experimentalBlockPatternsList,{blockPatterns:s,shownPatterns:c,onClickPattern:n=>{var a;a=n.templatePart,e({slug:a.slug,theme:a.theme,area:void 0}),p((0,tt.sprintf)((0,tt.__)('Template Part "%s" inserted.'),a.title?.rendered||a.slug),{type:"snackbar"}),t()}})),!d&&!g&&(0,Ke.createElement)(et.__experimentalHStack,{alignment:"center"},(0,Ke.createElement)("p",null,(0,tt.__)("No results found."))))}function KC(e){const t=(0,Qe.getPossibleBlockTransformations)([e]).filter((e=>{if(!e.transforms)return!0;const t=e.transforms?.from?.find((e=>e.blocks&&e.blocks.includes("*"))),n=e.transforms?.to?.find((e=>e.blocks&&e.blocks.includes("*")));return!t&&!n}));if(t.length)return(0,Qe.switchToBlockType)(e,t[0].name)}function YC(e=[]){return e.flatMap((e=>"core/legacy-widget"===e.name?KC(e):(0,Qe.createBlock)(e.name,e.attributes,YC(e.innerBlocks)))).filter((e=>!!e))}const JC={per_page:-1,_fields:"id,name,description,status,widgets"};function XC({area:e,setAttributes:t}){const[n,a]=(0,_t.useState)(""),[o,r]=(0,_t.useState)(!1),l=(0,gt.useRegistry)(),{sidebars:i,hasResolved:s}=(0,gt.useSelect)((e=>{const{getSidebars:t,hasFinishedResolution:n}=e(dt.store);return{sidebars:t(JC),hasResolved:n("getSidebars",[JC])}}),[]),{createErrorNotice:c}=(0,gt.useDispatch)(Pt.store),m=qC(e,t),u=(0,_t.useMemo)((()=>{const e=(null!=i?i:[]).filter((e=>"wp_inactive_widgets"!==e.id&&e.widgets.length>0)).map((e=>({value:e.id,label:e.name})));return e.length?[{value:"",label:(0,tt.__)("Select widget area")},...e]:[]}),[i]);if(!s)return(0,Ke.createElement)(et.__experimentalSpacer,{marginBottom:"0"});if(s&&!u.length)return null;return(0,Ke.createElement)(et.__experimentalSpacer,{marginBottom:"4"},(0,Ke.createElement)(et.__experimentalHStack,{as:"form",onSubmit:async function(e){if(e.preventDefault(),o||!n)return;r(!0);const t=u.find((({value:e})=>e===n)),{getWidgets:a}=l.resolveSelect(dt.store),i=await a({sidebar:t.value,_embed:"about"}),s=new Set,p=i.flatMap((e=>{const t=function(e){if("block"!==e.id_base){let t;return t=e._embedded.about[0].is_multi?{idBase:e.id_base,instance:e.instance}:{id:e.id},KC((0,Qe.createBlock)("core/legacy-widget",t))}const t=(0,Qe.parse)(e.instance.raw.content,{__unstableSkipAutop:!0});if(!t.length)return;const n=t[0];return"core/widget-group"===n.name?(0,Qe.createBlock)((0,Qe.getGroupingBlockName)(),void 0,YC(n.innerBlocks)):n.innerBlocks.length>0?(0,Qe.cloneBlock)(n,void 0,YC(n.innerBlocks)):n}(e);return t||(s.add(e.id_base),[])}));await m(p,(0,tt.sprintf)((0,tt.__)("Widget area: %s"),t.label)),s.size&&c((0,tt.sprintf)((0,tt.__)("Unable to import the following widgets: %s."),Array.from(s).join(", ")),{type:"snackbar"}),r(!1)}},(0,Ke.createElement)(et.FlexBlock,null,(0,Ke.createElement)(et.SelectControl,{label:(0,tt.__)("Import widget area"),value:n,options:u,onChange:e=>a(e),disabled:!u.length,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0})),(0,Ke.createElement)(et.FlexItem,{style:{marginBottom:"8px",marginTop:"auto"}},(0,Ke.createElement)(et.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",isBusy:o,"aria-disabled":o||!n},(0,tt._x)("Import","button label")))))}const eS={header:(0,tt.__)("The <header> element should represent introductory content, typically a group of introductory or navigational aids."),main:(0,tt.__)("The <main> element should be used for the primary content of your document only."),section:(0,tt.__)("The <section> element should represent a standalone portion of the document that can't be better represented by another element."),article:(0,tt.__)("The <article> element should represent a self-contained, syndicatable portion of the document."),aside:(0,tt.__)("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content."),footer:(0,tt.__)("The <footer> element should represent a footer for its nearest sectioning element (e.g.: <section>, <article>, <main> etc.).")};function tS({tagName:e,setAttributes:t,isEntityAvailable:n,templatePartId:a,defaultWrapper:o,hasInnerBlocks:r}){const[l,i]=(0,dt.useEntityProp)("postType","wp_template_part","area",a),[s,c]=(0,dt.useEntityProp)("postType","wp_template_part","title",a),m=(0,gt.useSelect)((e=>e("core/editor").__experimentalGetDefaultTemplatePartAreas()),[]).map((({label:e,area:t})=>({label:e,value:t})));return(0,Ke.createElement)(Ke.Fragment,null,n&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Title"),value:s,onChange:e=>{c(e)},onFocus:e=>e.target.select()}),(0,Ke.createElement)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Area"),labelPosition:"top",options:m,value:l,onChange:i})),(0,Ke.createElement)(et.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("HTML element"),options:[{label:(0,tt.sprintf)((0,tt.__)("Default based on area (%s)"),`<${o}>`),value:""},{label:"<header>",value:"header"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"},{label:"<aside>",value:"aside"},{label:"<footer>",value:"footer"},{label:"<div>",value:"div"}],value:e||"",onChange:e=>t({tagName:e}),help:eS[e]}),!r&&(0,Ke.createElement)(XC,{area:l,setAttributes:t}))}function nS(e){return"contentOnly"!==(0,nt.useBlockEditingMode)()&&(e?void 0:nt.InnerBlocks.ButtonBlockAppender)}function aS(e){const t=(0,gt.useSelect)((e=>{const{getSettings:t}=e(nt.store);return t()?.supportsLayout}),[]),[n]=(0,nt.useSettings)("layout");if(t)return e?.inherit?n||{}:e}function oS({postId:e,layout:t,tagName:n,blockProps:a}){(0,nt.useBlockEditingMode)("disabled");const{content:o,editedBlocks:r}=(0,gt.useSelect)((t=>{if(!e)return{};const{getEditedEntityRecord:n}=t(dt.store),a=n("postType","wp_template_part",e,{context:"view"});return{editedBlocks:a.blocks,content:a.content}}),[e]),l=(0,_t.useMemo)((()=>{if(e)return r||(o&&"string"==typeof o?(0,Qe.parse)(o):[])}),[e,r,o]),i=(0,nt.useInnerBlocksProps)(a,{value:l,onInput:()=>{},onChange:()=>{},renderAppender:!1,layout:aS(t)});return(0,Ke.createElement)(n,{...i})}function rS({postId:e,hasInnerBlocks:t,layout:n,tagName:a,blockProps:o}){const[r,l,i]=(0,dt.useEntityBlockEditor)("postType","wp_template_part",{id:e}),s=(0,nt.useInnerBlocksProps)(o,{value:r,onInput:l,onChange:i,renderAppender:nS(t),layout:aS(n)});return(0,Ke.createElement)(a,{...s})}function lS({postId:e,hasInnerBlocks:t,layout:n,tagName:a,blockProps:o}){const{canViewTemplatePart:r,canEditTemplatePart:l}=(0,gt.useSelect)((e=>{var t,n;return{canViewTemplatePart:null!==(t=e(dt.store).canUser("read","templates"))&&void 0!==t&&t,canEditTemplatePart:null!==(n=e(dt.store).canUser("create","templates"))&&void 0!==n&&n}}),[]);if(!r)return null;const i=l?rS:oS;return(0,Ke.createElement)(i,{postId:e,hasInnerBlocks:t,layout:n,tagName:a,blockProps:o})}function iS({isEntityAvailable:e,area:t,templatePartId:n,isTemplatePartSelectionOpen:a,setIsTemplatePartSelectionOpen:o}){const{templateParts:r}=OC(t,n),l=!!r.length;return e&&l&&("header"===t||"footer"===t)?(0,Ke.createElement)(et.MenuItem,{onClick:()=>{o(!0)},"aria-expanded":a,"aria-haspopup":"dialog"},(0,tt.__)("Replace")):null}function sS({area:e,clientId:t,isEntityAvailable:n,onSelect:a}){const o=UC(e,t),r=n&&!!o.length&&("header"===e||"footer"===e),l=(0,jt.useAsyncList)(o);return r?(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Design")},(0,Ke.createElement)(nt.__experimentalBlockPatternsList,{label:(0,tt.__)("Templates"),blockPatterns:o,shownPatterns:l,onClickPattern:a,showTitle:!1})):null}const cS=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M18.5 10.5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})),mS=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{fillRule:"evenodd",d:"M18 5.5h-8v8h8.5V6a.5.5 0 00-.5-.5zm-9.5 8h-3V6a.5.5 0 01.5-.5h2.5v8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})),uS=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));function pS(e,t){if("core/template-part"!==t)return e;if(e.variations){const t=(e,t)=>{const{area:n,theme:a,slug:o}=e;if(n)return n===t.area;if(!o)return!1;const{getCurrentTheme:r,getEntityRecord:l}=(0,gt.select)(dt.store),i=l("postType","wp_template_part",`${a||r()?.stylesheet}//${o}`);return i?.slug?i.slug===t.slug:i?.area===t.area},n=e.variations.map((e=>{return{...e,...!e.isActive&&{isActive:t},..."string"==typeof e.icon&&{icon:(n=e.icon,"header"===n?cS:"footer"===n?mS:"sidebar"===n?uS:$C)}};var n}));return{...e,variations:n}}return e}const dS={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/template-part",title:"Template Part",category:"theme",description:"Edit the different global regions of your site, like the header, footer, sidebar, or create your own.",textdomain:"default",attributes:{slug:{type:"string"},theme:{type:"string"},tagName:{type:"string"},area:{type:"string"}},supports:{align:!0,html:!1,reusable:!1,renaming:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-template-part-editor"},{name:gS}=dS,hS={icon:$C,__experimentalLabel:({slug:e,theme:t})=>{if(!e)return;const{getCurrentTheme:n,getEditedEntityRecord:a}=(0,gt.select)(dt.store),o=a("postType","wp_template_part",(t||n()?.stylesheet)+"//"+e);return o?(0,Yn.decodeEntities)(o.title)||function(e,t){return void 0===t&&(t={}),DC(e,RC({delimiter:" ",transform:VC},t))}(o.slug||""):void 0},edit:function({attributes:e,setAttributes:t,clientId:n}){const{createSuccessNotice:a}=(0,gt.useDispatch)(Pt.store),{editEntityRecord:o}=(0,gt.useDispatch)(dt.store),r=(0,gt.useSelect)((e=>e(dt.store).getCurrentTheme()?.stylesheet),[]),{slug:l,theme:i=r,tagName:s,layout:c={}}=e,m=sh(i,l),u=(0,nt.useHasRecursion)(m),[p,d]=(0,_t.useState)(!1),{isResolved:g,hasInnerBlocks:h,isMissing:b,area:_,onNavigateToEntityRecord:y,title:v,canEditTemplate:f}=(0,gt.useSelect)((t=>{var a;const{getEditedEntityRecord:o,hasFinishedResolution:r}=t(dt.store),{getBlockCount:l,getSettings:i}=t(nt.store),s=["postType","wp_template_part",m],c=m?o(...s):null,u=c?.area||e.area,p=!!m&&r("getEditedEntityRecord",s),d=null!==(a=t(dt.store).canUser("create","templates"))&&void 0!==a&&a;return{hasInnerBlocks:l(n)>0,isResolved:p,isMissing:p&&(!c||0===Object.keys(c).length),area:u,onNavigateToEntityRecord:i().onNavigateToEntityRecord,title:c?.title,canEditTemplate:d}}),[m,e.area,n]),k=jC(_),x=(0,nt.useBlockProps)(),w=!l,E=!w&&!b&&g,C=s||k.tagName;return!h&&(l&&!i||l&&b)?(0,Ke.createElement)(C,{...x},(0,Ke.createElement)(nt.Warning,null,(0,tt.sprintf)((0,tt.__)("Template part has been deleted or is unavailable: %s"),l))):E&&u?(0,Ke.createElement)(C,{...x},(0,Ke.createElement)(nt.Warning,null,(0,tt.__)("Block cannot be rendered inside itself."))):(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.RecursionProvider,{uniqueId:m},E&&y&&f&&(0,Ke.createElement)(nt.BlockControls,{group:"other"},(0,Ke.createElement)(et.ToolbarButton,{onClick:()=>y({postId:m,postType:"wp_template_part"})},(0,tt.__)("Edit"))),(0,Ke.createElement)(nt.InspectorControls,{group:"advanced"},(0,Ke.createElement)(tS,{tagName:s,setAttributes:t,isEntityAvailable:E,templatePartId:m,defaultWrapper:k.tagName,hasInnerBlocks:h})),w&&(0,Ke.createElement)(C,{...x},(0,Ke.createElement)(ZC,{area:e.area,templatePartId:m,clientId:n,setAttributes:t,onOpenSelectionModal:()=>d(!0)})),(0,Ke.createElement)(nt.BlockSettingsMenuControls,null,(({selectedClientIds:e})=>1!==e.length||n!==e[0]?null:(0,Ke.createElement)(iS,{isEntityAvailable:E,area:_,clientId:n,templatePartId:m,isTemplatePartSelectionOpen:p,setIsTemplatePartSelectionOpen:d}))),(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(sS,{area:_,clientId:n,isEntityAvailable:E,onSelect:e=>(async e=>{await o("postType","wp_template_part",m,{blocks:e.blocks,content:(0,Qe.serialize)(e.blocks)}),a((0,tt.sprintf)((0,tt.__)('Template Part "%s" updated.'),v||l),{type:"snackbar"})})(e)})),E&&(0,Ke.createElement)(lS,{tagName:C,blockProps:x,postId:m,hasInnerBlocks:h,layout:c}),!w&&!g&&(0,Ke.createElement)(C,{...x},(0,Ke.createElement)(et.Spinner,null))),p&&(0,Ke.createElement)(et.Modal,{overlayClassName:"block-editor-template-part__selection-modal",title:(0,tt.sprintf)((0,tt.__)("Choose a %s"),k.label.toLowerCase()),onRequestClose:()=>d(!1),isFullScreen:!0},(0,Ke.createElement)(QC,{templatePartId:m,clientId:n,area:_,setAttributes:t,onClose:()=>d(!1)})))}},bS=()=>{(0,vi.addFilter)("blocks.registerBlockType","core/template-part",pS);const e=["core/post-template","core/post-content"];return(0,vi.addFilter)("blockEditor.__unstableCanInsertBlockType","core/block-library/removeTemplatePartsFromPostTemplates",((t,n,a,{getBlock:o,getBlockParentsByBlockName:r})=>{if("core/template-part"!==n.name)return t;for(const t of e){if(o(a)?.name===t||r(a,t).length)return!1}return!0})),Xe({name:gS,metadata:dS,settings:hS})},_S=(0,Ke.createElement)(Ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ke.createElement)(Ye.Path,{d:"M6.08 10.103h2.914L9.657 12h1.417L8.23 4H6.846L4 12h1.417l.663-1.897Zm1.463-4.137.994 2.857h-2l1.006-2.857ZM11 16H4v-1.5h7V16Zm1 0h8v-1.5h-8V16Zm-4 4H4v-1.5h4V20Zm7-1.5V20H9v-1.5h6Z"}));const yS={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/term-description",title:"Term Description",category:"theme",description:"Display the description of categories, tags and custom taxonomies when viewing an archive.",textdomain:"default",attributes:{textAlign:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{padding:!0,margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}},{name:vS}=yS,fS={icon:_S,edit:function({attributes:e,setAttributes:t,mergedStyle:n}){const{textAlign:a}=e,o=(0,nt.useBlockProps)({className:ut({[`has-text-align-${a}`]:a}),style:n});return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,{group:"block"},(0,Ke.createElement)(nt.AlignmentControl,{value:a,onChange:e=>{t({textAlign:e})}})),(0,Ke.createElement)("div",{...o},(0,Ke.createElement)("div",{className:"wp-block-term-description__placeholder"},(0,Ke.createElement)("span",null,(0,tt.__)("Term Description")))))}},kS=()=>Xe({name:vS,metadata:yS,settings:fS});const xS={to:[{type:"block",blocks:["core/columns"],transform:({className:e,columns:t,content:n,width:a})=>(0,Qe.createBlock)("core/columns",{align:"wide"===a||"full"===a?a:void 0,className:e,columns:t},n.map((({children:e})=>(0,Qe.createBlock)("core/column",{},[(0,Qe.createBlock)("core/paragraph",{content:e})]))))}]},wS=xS,ES={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/text-columns",title:"Text Columns (deprecated)",icon:"columns",category:"design",description:"This block is deprecated. Please use the Columns block instead.",textdomain:"default",attributes:{content:{type:"array",source:"query",selector:"p",query:{children:{type:"string",source:"html"}},default:[{},{}]},columns:{type:"number",default:2},width:{type:"string"}},supports:{inserter:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-text-columns-editor",style:"wp-block-text-columns"},{name:CS}=ES,SS={transforms:wS,getEditWrapperProps(e){const{width:t}=e;if("wide"===t||"full"===t)return{"data-align":t}},edit:function({attributes:e,setAttributes:t}){const{width:n,content:a,columns:o}=e;return Xp()("The Text Columns block",{since:"5.3",alternative:"the Columns block"}),(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,null,(0,Ke.createElement)(nt.BlockAlignmentToolbar,{value:n,onChange:e=>t({width:e}),controls:["center","wide","full"]})),(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,null,(0,Ke.createElement)(et.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Columns"),value:o,onChange:e=>t({columns:e}),min:2,max:4,required:!0}))),(0,Ke.createElement)("div",{...(0,nt.useBlockProps)({className:`align${n} columns-${o}`})},Array.from({length:o}).map(((e,n)=>(0,Ke.createElement)("div",{className:"wp-block-column",key:`column-${n}`},(0,Ke.createElement)(nt.RichText,{tagName:"p",value:a?.[n]?.children,onChange:e=>{t({content:[...a.slice(0,n),{children:e},...a.slice(n+1)]})},"aria-label":(0,tt.sprintf)((0,tt.__)("Column %d text"),n+1),placeholder:(0,tt.__)("New Column")}))))))},save:function({attributes:e}){const{width:t,content:n,columns:a}=e;return(0,Ke.createElement)("div",{...nt.useBlockProps.save({className:`align${t} columns-${a}`})},Array.from({length:a}).map(((e,t)=>(0,Ke.createElement)("div",{className:"wp-block-column",key:`column-${t}`},(0,Ke.createElement)(nt.RichText.Content,{tagName:"p",value:n?.[t]?.children})))))}},BS=()=>Xe({name:CS,metadata:ES,settings:SS}),NS={attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}},save({attributes:e}){const{textAlign:t,content:n}=e;return(0,Ke.createElement)(nt.RichText.Content,{tagName:"pre",style:{textAlign:t},value:n})}},TS={attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0,__experimentalRole:"content"},textAlign:{type:"string"}},supports:{anchor:!0,color:{gradients:!0,link:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},spacing:{padding:!0}},save({attributes:e}){const{textAlign:t,content:n}=e,a=ut({[`has-text-align-${t}`]:t});return(0,Ke.createElement)("pre",{...nt.useBlockProps.save({className:a})},(0,Ke.createElement)(nt.RichText.Content,{value:n}))},migrate:rn,isEligible:({style:e})=>e?.typography?.fontFamily},IS=[TS,NS];const PS={from:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,Qe.createBlock)("core/verse",e)}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,Qe.createBlock)("core/paragraph",e)}]},MS=PS,zS={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/verse",title:"Verse",category:"text",description:"Insert poetry. Use special spacing formats. Or quote song lyrics.",keywords:["poetry","poem"],textdomain:"default",attributes:{content:{type:"rich-text",source:"rich-text",selector:"pre",__unstablePreserveWhiteSpace:!0,__experimentalRole:"content"},textAlign:{type:"string"}},supports:{anchor:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,__experimentalFontFamily:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__experimentalBorder:{radius:!0,width:!0,color:!0,style:!0},interactivity:{clientNavigation:!0}},style:"wp-block-verse",editorStyle:"wp-block-verse-editor"},{name:RS}=zS,AS={icon:hx,example:{attributes:{content:(0,tt.__)("WHAT was he doing, the great god Pan,\n\tDown in the reeds by the river?\nSpreading ruin and scattering ban,\nSplashing and paddling with hoofs of a goat,\nAnd breaking the golden lilies afloat\n With the dragon-fly on the river.")}},transforms:MS,deprecated:IS,merge:(e,t)=>({content:e.content+"\n\n"+t.content}),edit:function({attributes:e,setAttributes:t,mergeBlocks:n,onRemove:a,insertBlocksAfter:o,style:r}){const{textAlign:l,content:i}=e,s=(0,nt.useBlockProps)({className:ut({[`has-text-align-${l}`]:l}),style:r});return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,null,(0,Ke.createElement)(nt.AlignmentToolbar,{value:l,onChange:e=>{t({textAlign:e})}})),(0,Ke.createElement)(nt.RichText,{tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:i,onChange:e=>{t({content:e})},"aria-label":(0,tt.__)("Verse text"),placeholder:(0,tt.__)("Write verse…"),onRemove:a,onMerge:n,textAlign:l,...s,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:()=>o((0,Qe.createBlock)((0,Qe.getDefaultBlockName)()))}))},save:function({attributes:e}){const{textAlign:t,content:n}=e,a=ut({[`has-text-align-${t}`]:t});return(0,Ke.createElement)("pre",{...nt.useBlockProps.save({className:a})},(0,Ke.createElement)(nt.RichText.Content,{value:n}))}},LS=()=>Xe({name:RS,metadata:zS,settings:AS}),HS=(0,Ke.createElement)(Ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ke.createElement)(Ye.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"}));function DS({tracks:e=[]}){return e.map((e=>(0,Ke.createElement)("track",{key:e.src,...e})))}const{attributes:FS}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/video",title:"Video",category:"media",description:"Embed a video from your media library or upload a new one.",keywords:["movie"],textdomain:"default",attributes:{autoplay:{type:"boolean",source:"attribute",selector:"video",attribute:"autoplay"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",__experimentalRole:"content"},controls:{type:"boolean",source:"attribute",selector:"video",attribute:"controls",default:!0},id:{type:"number",__experimentalRole:"content"},loop:{type:"boolean",source:"attribute",selector:"video",attribute:"loop"},muted:{type:"boolean",source:"attribute",selector:"video",attribute:"muted"},poster:{type:"string",source:"attribute",selector:"video",attribute:"poster"},preload:{type:"string",source:"attribute",selector:"video",attribute:"preload",default:"metadata"},src:{type:"string",source:"attribute",selector:"video",attribute:"src",__experimentalRole:"content"},playsInline:{type:"boolean",source:"attribute",selector:"video",attribute:"playsinline"},tracks:{__experimentalRole:"content",type:"array",items:{type:"object"},default:[]}},supports:{anchor:!0,align:!0,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-video-editor",style:"wp-block-video"},VS={attributes:FS,save({attributes:e}){const{autoplay:t,caption:n,controls:a,loop:o,muted:r,poster:l,preload:i,src:s,playsInline:c,tracks:m}=e;return(0,Ke.createElement)("figure",{...nt.useBlockProps.save()},s&&(0,Ke.createElement)("video",{autoPlay:t,controls:a,loop:o,muted:r,poster:l,preload:"metadata"!==i?i:void 0,src:s,playsInline:c},(0,Ke.createElement)(DS,{tracks:m})),!nt.RichText.isEmpty(n)&&(0,Ke.createElement)(nt.RichText.Content,{tagName:"figcaption",value:n}))}},$S=[VS],GS=[{value:"auto",label:(0,tt.__)("Auto")},{value:"metadata",label:(0,tt.__)("Metadata")},{value:"none",label:(0,tt._x)("None","Preload value")}],OS=({setAttributes:e,attributes:t})=>{const{autoplay:n,controls:a,loop:o,muted:r,playsInline:l,preload:i}=t,s=(0,tt.__)("Autoplay may cause usability issues for some users."),c=_t.Platform.select({web:(0,_t.useCallback)((e=>e?s:null),[]),native:s}),m=(0,_t.useMemo)((()=>{const t=t=>n=>{e({[t]:n})};return{autoplay:t("autoplay"),loop:t("loop"),muted:t("muted"),controls:t("controls"),playsInline:t("playsInline")}}),[]),u=(0,_t.useCallback)((t=>{e({preload:t})}),[]);return(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Autoplay"),onChange:m.autoplay,checked:!!n,help:c}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Loop"),onChange:m.loop,checked:!!o}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Muted"),onChange:m.muted,checked:!!r}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Playback controls"),onChange:m.controls,checked:!!a}),(0,Ke.createElement)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Play inline"),onChange:m.playsInline,checked:!!l}),(0,Ke.createElement)(et.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Preload"),value:i,onChange:u,options:GS,hideCancelButton:!0}))},US=["text/vtt"],qS="subtitles",jS=[{label:(0,tt.__)("Subtitles"),value:"subtitles"},{label:(0,tt.__)("Captions"),value:"captions"},{label:(0,tt.__)("Descriptions"),value:"descriptions"},{label:(0,tt.__)("Chapters"),value:"chapters"},{label:(0,tt.__)("Metadata"),value:"metadata"}];function WS({tracks:e,onEditPress:t}){let n;return n=0===e.length?(0,Ke.createElement)("p",{className:"block-library-video-tracks-editor__tracks-informative-message"},(0,tt.__)("Tracks can be subtitles, captions, chapters, or descriptions. They help make your content more accessible to a wider range of users.")):e.map(((e,n)=>(0,Ke.createElement)(et.__experimentalHStack,{key:n,className:"block-library-video-tracks-editor__track-list-track"},(0,Ke.createElement)("span",null,e.label," "),(0,Ke.createElement)(et.Button,{variant:"tertiary",onClick:()=>t(n),"aria-label":(0,tt.sprintf)((0,tt.__)("Edit %s"),e.label)},(0,tt.__)("Edit"))))),(0,Ke.createElement)(et.MenuGroup,{label:(0,tt.__)("Text tracks"),className:"block-library-video-tracks-editor__track-list"},n)}function ZS({track:e,onChange:t,onClose:n,onRemove:a}){const{src:o="",label:r="",srcLang:l="",kind:i=qS}=e,s=o.startsWith("blob:")?"":(0,pt.getFilename)(o)||"";return(0,Ke.createElement)(et.NavigableMenu,null,(0,Ke.createElement)(et.__experimentalVStack,{className:"block-library-video-tracks-editor__single-track-editor",spacing:"4"},(0,Ke.createElement)("span",{className:"block-library-video-tracks-editor__single-track-editor-edit-track-label"},(0,tt.__)("Edit track")),(0,Ke.createElement)("span",null,(0,tt.__)("File"),": ",(0,Ke.createElement)("b",null,s)),(0,Ke.createElement)(et.__experimentalGrid,{columns:2,gap:4},(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,autoFocus:!0,onChange:n=>t({...e,label:n}),label:(0,tt.__)("Label"),value:r,help:(0,tt.__)("Title of track")}),(0,Ke.createElement)(et.TextControl,{__nextHasNoMarginBottom:!0,onChange:n=>t({...e,srcLang:n}),label:(0,tt.__)("Source language"),value:l,help:(0,tt.__)("Language tag (en, fr, etc.)")})),(0,Ke.createElement)(et.__experimentalVStack,{spacing:"8"},(0,Ke.createElement)(et.SelectControl,{__nextHasNoMarginBottom:!0,className:"block-library-video-tracks-editor__single-track-editor-kind-select",options:jS,value:i,label:(0,tt.__)("Kind"),onChange:n=>{t({...e,kind:n})}}),(0,Ke.createElement)(et.__experimentalHStack,{className:"block-library-video-tracks-editor__single-track-editor-buttons-container"},(0,Ke.createElement)(et.Button,{variant:"secondary",onClick:()=>{const a={};let o=!1;""===r&&(a.label=(0,tt.__)("English"),o=!0),""===l&&(a.srcLang="en",o=!0),void 0===e.kind&&(a.kind=qS,o=!0),o&&t({...e,...a}),n()}},(0,tt.__)("Close")),(0,Ke.createElement)(et.Button,{isDestructive:!0,variant:"link",onClick:a},(0,tt.__)("Remove track"))))))}function QS({tracks:e=[],onChange:t}){const n=(0,gt.useSelect)((e=>e(nt.store).getSettings().mediaUpload),[]),[a,o]=(0,_t.useState)(null);return n?(0,Ke.createElement)(et.Dropdown,{contentClassName:"block-library-video-tracks-editor",renderToggle:({isOpen:e,onToggle:t})=>(0,Ke.createElement)(et.ToolbarGroup,null,(0,Ke.createElement)(et.ToolbarButton,{label:(0,tt.__)("Text tracks"),showTooltip:!0,"aria-expanded":e,"aria-haspopup":"true",onClick:t},(0,tt.__)("Text tracks"))),renderContent:()=>null!==a?(0,Ke.createElement)(ZS,{track:e[a],onChange:n=>{const o=[...e];o[a]=n,t(o)},onClose:()=>o(null),onRemove:()=>{t(e.filter(((e,t)=>t!==a))),o(null)}}):(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(et.NavigableMenu,null,(0,Ke.createElement)(WS,{tracks:e,onEditPress:o}),(0,Ke.createElement)(et.MenuGroup,{className:"block-library-video-tracks-editor__add-tracks-container",label:(0,tt.__)("Add tracks")},(0,Ke.createElement)(nt.MediaUpload,{onSelect:({url:n})=>{const a=e.length;t([...e,{src:n}]),o(a)},allowedTypes:US,render:({open:e})=>(0,Ke.createElement)(et.MenuItem,{icon:Xd,onClick:e},(0,tt.__)("Open Media Library"))}),(0,Ke.createElement)(nt.MediaUploadCheck,null,(0,Ke.createElement)(et.FormFileUpload,{onChange:a=>{const r=a.target.files,l=e.length;n({allowedTypes:US,filesList:r,onFileChange:([{url:n}])=>{const a=[...e];a[l]||(a[l]={}),a[l]={...e[l],src:n},t(a),o(l)}})},accept:".vtt,text/vtt",render:({openFileDialog:e})=>(0,Ke.createElement)(et.MenuItem,{icon:lp,onClick:()=>{e()}},(0,tt.__)("Upload"))})))))}):null}const KS=e=>(0,Ke.createElement)(et.Placeholder,{className:"block-editor-media-placeholder",withIllustration:!0,icon:HS,label:(0,tt.__)("Video"),instructions:(0,tt.__)("Upload a video file, pick one from your media library, or add one with a URL.")},e),YS=["video"],JS=["image"];const XS=function e({isSelected:t,attributes:n,className:a,setAttributes:o,insertBlocksAfter:r,onReplace:l}){const i=(0,jt.useInstanceId)(e),s=(0,_t.useRef)(),c=(0,_t.useRef)(),{id:m,controls:u,poster:p,src:d,tracks:g}=n,h=!m&&(0,It.isBlobURL)(d);function b(e){e&&e.url?o({src:e.url,id:e.id,poster:e.image?.src!==e.icon?e.image?.src:void 0,caption:e.caption}):o({src:void 0,id:void 0,poster:void 0,caption:void 0})}function _(e){if(e!==d){const t=Vt({attributes:{url:e}});if(void 0!==t&&l)return void l(t);o({src:e,id:void 0,poster:void 0})}}qt({url:d,allowedTypes:YS,onChange:b,onError:v}),(0,_t.useEffect)((()=>{s.current&&s.current.load()}),[p]);const{createErrorNotice:y}=(0,gt.useDispatch)(Pt.store);function v(e){y(e,{type:"snackbar"})}const f=ut(a,{"is-transient":h}),k=(0,nt.useBlockProps)({className:f});if(!d)return(0,Ke.createElement)("div",{...k},(0,Ke.createElement)(nt.MediaPlaceholder,{icon:(0,Ke.createElement)(nt.BlockIcon,{icon:HS}),onSelect:b,onSelectURL:_,accept:"video/*",allowedTypes:YS,value:n,onError:v,placeholder:KS}));const x=`video-block__poster-image-description-${i}`;return(0,Ke.createElement)(Ke.Fragment,null,t&&(0,Ke.createElement)(Ke.Fragment,null,(0,Ke.createElement)(nt.BlockControls,null,(0,Ke.createElement)(QS,{tracks:g,onChange:e=>{o({tracks:e})}})),(0,Ke.createElement)(nt.BlockControls,{group:"other"},(0,Ke.createElement)(nt.MediaReplaceFlow,{mediaId:m,mediaURL:d,allowedTypes:YS,accept:"video/*",onSelect:b,onSelectURL:_,onError:v}))),(0,Ke.createElement)(nt.InspectorControls,null,(0,Ke.createElement)(et.PanelBody,{title:(0,tt.__)("Settings")},(0,Ke.createElement)(OS,{setAttributes:o,attributes:n}),(0,Ke.createElement)(nt.MediaUploadCheck,null,(0,Ke.createElement)(et.BaseControl,{className:"editor-video-poster-control"},(0,Ke.createElement)(et.BaseControl.VisualLabel,null,(0,tt.__)("Poster image")),(0,Ke.createElement)(nt.MediaUpload,{title:(0,tt.__)("Select poster image"),onSelect:function(e){o({poster:e.url})},allowedTypes:JS,render:({open:e})=>(0,Ke.createElement)(et.Button,{variant:"primary",onClick:e,ref:c,"aria-describedby":x},p?(0,tt.__)("Replace"):(0,tt.__)("Select"))}),(0,Ke.createElement)("p",{id:x,hidden:!0},p?(0,tt.sprintf)((0,tt.__)("The current poster image url is %s"),p):(0,tt.__)("There is no poster image currently selected")),!!p&&(0,Ke.createElement)(et.Button,{onClick:function(){o({poster:void 0}),c.current.focus()},variant:"tertiary"},(0,tt.__)("Remove")))))),(0,Ke.createElement)("figure",{...k},(0,Ke.createElement)(et.Disabled,{isDisabled:!t},(0,Ke.createElement)("video",{controls:u,poster:p,src:d,ref:s},(0,Ke.createElement)(DS,{tracks:g}))),h&&(0,Ke.createElement)(et.Spinner,null),(0,Ke.createElement)(Zt,{attributes:n,setAttributes:o,isSelected:t,insertBlocksAfter:r,label:(0,tt.__)("Video caption text"),showToolbarButton:t})))};const eB={from:[{type:"files",isMatch:e=>1===e.length&&0===e[0].type.indexOf("video/"),transform(e){const t=e[0];return(0,Qe.createBlock)("core/video",{src:(0,It.createBlobURL)(t)})}},{type:"shortcode",tag:"video",attributes:{src:{type:"string",shortcode:({named:{src:e,mp4:t,m4v:n,webm:a,ogv:o,flv:r}})=>e||t||n||a||o||r},poster:{type:"string",shortcode:({named:{poster:e}})=>e},loop:{type:"string",shortcode:({named:{loop:e}})=>e},autoplay:{type:"string",shortcode:({named:{autoplay:e}})=>e},preload:{type:"string",shortcode:({named:{preload:e}})=>e}}},{type:"raw",isMatch:e=>"P"===e.nodeName&&1===e.children.length&&"VIDEO"===e.firstChild.nodeName,transform:e=>{const t=e.firstChild,n={autoplay:!!t.hasAttribute("autoplay")||void 0,controls:!!t.hasAttribute("controls")&&void 0,loop:!!t.hasAttribute("loop")||void 0,muted:!!t.hasAttribute("muted")||void 0,preload:t.getAttribute("preload")||void 0,playsInline:!!t.hasAttribute("playsinline")||void 0,poster:t.getAttribute("poster")||void 0,src:t.getAttribute("src")||void 0};return(0,Qe.createBlock)("core/video",n)}}]},tB=eB,nB={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/video",title:"Video",category:"media",description:"Embed a video from your media library or upload a new one.",keywords:["movie"],textdomain:"default",attributes:{autoplay:{type:"boolean",source:"attribute",selector:"video",attribute:"autoplay"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",__experimentalRole:"content"},controls:{type:"boolean",source:"attribute",selector:"video",attribute:"controls",default:!0},id:{type:"number",__experimentalRole:"content"},loop:{type:"boolean",source:"attribute",selector:"video",attribute:"loop"},muted:{type:"boolean",source:"attribute",selector:"video",attribute:"muted"},poster:{type:"string",source:"attribute",selector:"video",attribute:"poster"},preload:{type:"string",source:"attribute",selector:"video",attribute:"preload",default:"metadata"},src:{type:"string",source:"attribute",selector:"video",attribute:"src",__experimentalRole:"content"},playsInline:{type:"boolean",source:"attribute",selector:"video",attribute:"playsinline"},tracks:{__experimentalRole:"content",type:"array",items:{type:"object"},default:[]}},supports:{anchor:!0,align:!0,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-video-editor",style:"wp-block-video"},{name:aB}=nB,oB={icon:HS,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/c/ca/Wood_thrush_in_Central_Park_switch_sides_%2816510%29.webm",caption:(0,tt.__)("Wood thrush singing in Central Park, NYC.")}},transforms:tB,deprecated:$S,edit:XS,save:function({attributes:e}){const{autoplay:t,caption:n,controls:a,loop:o,muted:r,poster:l,preload:i,src:s,playsInline:c,tracks:m}=e;return(0,Ke.createElement)("figure",{...nt.useBlockProps.save()},s&&(0,Ke.createElement)("video",{autoPlay:t,controls:a,loop:o,muted:r,poster:l,preload:"metadata"!==i?i:void 0,src:s,playsInline:c},(0,Ke.createElement)(DS,{tracks:m})),!nt.RichText.isEmpty(n)&&(0,Ke.createElement)(nt.RichText.Content,{className:(0,nt.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:n}))}},rB=()=>Xe({name:aB,metadata:nB,settings:oB});const lB={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let iB;const sB=new Uint8Array(16);function cB(){if(!iB&&(iB="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!iB))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return iB(sB)}const mB=[];for(let e=0;e<256;++e)mB.push((e+256).toString(16).slice(1));function uB(e,t=0){return mB[e[t+0]]+mB[e[t+1]]+mB[e[t+2]]+mB[e[t+3]]+"-"+mB[e[t+4]]+mB[e[t+5]]+"-"+mB[e[t+6]]+mB[e[t+7]]+"-"+mB[e[t+8]]+mB[e[t+9]]+"-"+mB[e[t+10]]+mB[e[t+11]]+mB[e[t+12]]+mB[e[t+13]]+mB[e[t+14]]+mB[e[t+15]]}const pB=function(e,t,n){if(lB.randomUUID&&!t&&!e)return lB.randomUUID();const a=(e=e||{}).random||(e.rng||cB)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=a[e];return t}return uB(a)},{usesContextKey:dB}=Ht(nt.privateApis),gB="core/footnote",hB="core/post-content",bB={title:(0,tt.__)("Footnote"),tagName:"sup",className:"fn",attributes:{"data-fn":"data-fn"},interactive:!0,contentEditable:!1,[dB]:["postType","postId"],edit:function({value:e,onChange:t,isObjectActive:n,context:{postType:a,postId:o}}){const r=(0,gt.useRegistry)(),{getSelectedBlockClientId:l,getBlocks:i,getBlockRootClientId:s,getBlockName:c,getBlockParentsByBlockName:m}=r.select(nt.store),u=(0,gt.useSelect)((e=>{if(!e(Qe.store).getBlockType("core/footnotes"))return!1;const t=e(nt.store).getSettings().allowedBlockTypes;if(!1===t||Array.isArray(t)&&!t.includes("core/footnotes"))return!1;const n=e(dt.store).getEntityRecord("postType",a,o);if("string"!=typeof n?.meta?.footnotes)return!1;const{getBlockParentsByBlockName:r,getSelectedBlockClientId:l}=e(nt.store),i=r(l(),"core/block");return!i||0===i.length}),[a,o]),{selectionChange:p,insertBlock:d}=(0,gt.useDispatch)(nt.store);if(!u)return null;return(0,Ke.createElement)(nt.RichTextToolbarButton,{icon:Yp,title:(0,tt.__)("Footnote"),onClick:function(){r.batch((()=>{let a;if(n){const t=e.replacements[e.start];a=t?.attributes?.["data-fn"]}else{a=pB();const n=(0,zn.insertObject)(e,{type:gB,attributes:{"data-fn":a},innerHTML:`<a href="#${a}" id="${a}-link">*</a>`},e.end,e.end);n.start=n.end-1,t(n)}const o=l(),r=m(o,hB);let u=null;{const e=[...r.length?i(r[0]):i()];for(;e.length;){const t=e.shift();if("core/footnotes"===t.name){u=t;break}e.push(...t.innerBlocks)}}if(!u){let e=s(o);for(;e&&c(e)!==hB;)e=s(e);u=(0,Qe.createBlock)("core/footnotes"),d(u,void 0,e)}p(u.clientId,a,0,0)}))},isActive:n})}},_B={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/footnotes",title:"Footnotes",category:"text",description:"Display footnotes added to the page.",keywords:["references"],textdomain:"default",usesContext:["postId","postType"],supports:{__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!1,color:!1,width:!1,style:!1}},color:{background:!0,link:!0,text:!0,__experimentalDefaultControls:{link:!0,text:!0}},html:!1,multiple:!1,reusable:!1,inserter:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-footnotes"},{name:yB}=_B,vB={icon:Yp,edit:function({context:{postType:e,postId:t}}){const[n,a]=(0,dt.useEntityProp)("postType",e,"meta",t),o="string"==typeof n?.footnotes,r=n?.footnotes?JSON.parse(n.footnotes):[],l=(0,nt.useBlockProps)();return o?r.length?(0,Ke.createElement)("ol",{...l},r.map((({id:e,content:t})=>(0,Ke.createElement)("li",{key:e,onMouseDown:e=>{e.target===e.currentTarget&&(e.target.firstElementChild.focus(),e.preventDefault())}},(0,Ke.createElement)(nt.RichText,{id:e,tagName:"span",value:t,identifier:e,onFocus:e=>{e.target.textContent.trim()||e.target.scrollIntoView()},onChange:t=>{a({...n,footnotes:JSON.stringify(r.map((n=>n.id===e?{content:t,id:e}:n)))})}})," ",(0,Ke.createElement)("a",{href:`#${e}-link`},"↩︎"))))):(0,Ke.createElement)("div",{...l},(0,Ke.createElement)(et.Placeholder,{icon:(0,Ke.createElement)(nt.BlockIcon,{icon:Yp}),label:(0,tt.__)("Footnotes"),instructions:(0,tt.__)("Footnotes found in blocks within this document will be displayed here.")})):(0,Ke.createElement)("div",{...l},(0,Ke.createElement)(et.Placeholder,{icon:(0,Ke.createElement)(nt.BlockIcon,{icon:Yp}),label:(0,tt.__)("Footnotes"),instructions:(0,tt.__)("Footnotes are not supported here. Add this block to post or page content.")}))}};(0,zn.registerFormatType)(gB,bB);const fB=()=>{Xe({name:yB,metadata:_B,settings:vB})};var kB=n(2321),xB=n.n(kB);const wB=window.wp.keyboardShortcuts;const EB=function(){const{registerShortcut:e}=(0,gt.useDispatch)(wB.store),{replaceBlocks:t}=(0,gt.useDispatch)(nt.store),{getBlockName:n,getSelectedBlockClientId:a,getBlockAttributes:o}=(0,gt.useSelect)(nt.store),r=(e,r)=>{e.preventDefault();const l=a();if(null===l)return;const i=n(l),s="core/paragraph"===i,c="core/heading"===i;if(!s&&!c)return;const m=0===r?"core/paragraph":"core/heading",u=o(l);if(s&&0===r||c&&u.level===r)return;const p="core/paragraph"===i?"align":"textAlign",d="core/paragraph"===m?"align":"textAlign";t(l,(0,Qe.createBlock)(m,{level:r,content:u.content,[d]:u[p]}))};return(0,_t.useEffect)((()=>{e({name:"core/block-editor/transform-heading-to-paragraph",category:"block-library",description:(0,tt.__)("Transform heading to paragraph."),keyCombination:{modifier:"access",character:"0"},aliases:[{modifier:"access",character:"7"}]}),[1,2,3,4,5,6].forEach((t=>{e({name:`core/block-editor/transform-paragraph-to-heading-${t}`,category:"block-library",description:(0,tt.__)("Transform paragraph to heading."),keyCombination:{modifier:"access",character:`${t}`}})}))}),[]),(0,wB.useShortcut)("core/block-editor/transform-heading-to-paragraph",(e=>r(e,0))),[1,2,3,4,5,6].forEach((e=>{(0,wB.useShortcut)(`core/block-editor/transform-paragraph-to-heading-${e}`,(t=>r(t,e)))})),null},CB={};Lt(CB,{BlockKeyboardShortcuts:EB});const SB=()=>(()=>{const n=[te,F,L,R,G,O,Be,e,o,r,l,i,s,m,u,p,g,S,B,N,T,A,D,V,$,q,j,W,Y,X,ee,J,ye,ve,Ne,Ie,Pe,Me,ze,He,De,Fe,Ve,Ge,qe,je,We,Ze,Z,Q,K,Re,Le,Ae,fe,Oe,t,_e,ue,pe,ce,ne,ae,re,le,se,me,he,de,ge,be,xe,we,Ee,Ce,ke,Te,d,h,b,_,y,v,f,C,x,w,E,k,ie,$e,H,U,Ue,Se,oe];return window?.__experimentalEnableFormBlocks&&(n.push(I),n.push(P),n.push(M),n.push(z)),window?.wp?.oldEditor&&(window?.wp?.needsClassicBlock||!window?.__experimentalDisableTinymce||new URLSearchParams(window?.location?.search).get("requiresTinymce"))&&n.push(c),n.filter(Boolean)})().filter((({metadata:e})=>!xB()(e))),BB=(e=SB())=>{e.forEach((({init:e})=>e())),(0,Qe.setDefaultBlockName)(N_),window.wp&&window.wp.oldEditor&&e.some((({name:e})=>e===pa))&&(0,Qe.setFreeformContentHandlerName)(pa),(0,Qe.setUnregisteredTypeHandlerName)(fg),(0,Qe.setGroupingBlockName)(iu)},NB=void 0})(),(window.wp=window.wp||{}).blockLibrary=a})(); |