1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/*! This file is auto-generated */
!function(){var e={2591:function(e){e.exports=function(){function e(t,n,s){function r(i,o){if(!n[i]){if(!t[i]){if(a)return a(i,!0);var l=new Error("Cannot find module '"+i+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[i]={exports:{}};t[i][0].call(c.exports,(function(e){return r(t[i][1][e]||e)}),c,c.exports,e,t,n,s)}return n[i].exports}for(var a=void 0,i=0;i<s.length;i++)r(s[i]);return r}return e}()({1:[function(e,t,n){"use strict";var s="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var s in n)r(n,s)&&(e[s]=n[s])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var a={arraySet:function(e,t,n,s,r){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+s),r);else for(var a=0;a<s;a++)e[r+a]=t[n+a]},flattenChunks:function(e){var t,n,s,r,a,i;for(s=0,t=0,n=e.length;t<n;t++)s+=e[t].length;for(i=new Uint8Array(s),r=0,t=0,n=e.length;t<n;t++)a=e[t],i.set(a,r),r+=a.length;return i}},i={arraySet:function(e,t,n,s,r){for(var a=0;a<s;a++)e[r+a]=t[n+a]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,a)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,i))},n.setTyped(s)},{}],2:[function(e,t,n){"use strict";var s=e("./common"),r=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch(e){r=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){a=!1}for(var i=new s.Buf8(256),o=0;o<256;o++)i[o]=o>=252?6:o>=248?5:o>=240?4:o>=224?3:o>=192?2:1;function l(e,t){if(t<65534&&(e.subarray&&a||!e.subarray&&r))return String.fromCharCode.apply(null,s.shrinkBuf(e,t));for(var n="",i=0;i<t;i++)n+=String.fromCharCode(e[i]);return n}i[254]=i[254]=1,n.string2buf=function(e){var t,n,r,a,i,o=e.length,l=0;for(a=0;a<o;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<o&&56320==(64512&(r=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(r-56320),a++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=new s.Buf8(l),i=0,a=0;i<l;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<o&&56320==(64512&(r=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(r-56320),a++),n<128?t[i++]=n:n<2048?(t[i++]=192|n>>>6,t[i++]=128|63&n):n<65536?(t[i++]=224|n>>>12,t[i++]=128|n>>>6&63,t[i++]=128|63&n):(t[i++]=240|n>>>18,t[i++]=128|n>>>12&63,t[i++]=128|n>>>6&63,t[i++]=128|63&n);return t},n.buf2binstring=function(e){return l(e,e.length)},n.binstring2buf=function(e){for(var t=new s.Buf8(e.length),n=0,r=t.length;n<r;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,s,r,a,o=t||e.length,c=new Array(2*o);for(s=0,n=0;n<o;)if((r=e[n++])<128)c[s++]=r;else if((a=i[r])>4)c[s++]=65533,n+=a-1;else{for(r&=2===a?31:3===a?15:7;a>1&&n<o;)r=r<<6|63&e[n++],a--;a>1?c[s++]=65533:r<65536?c[s++]=r:(r-=65536,c[s++]=55296|r>>10&1023,c[s++]=56320|1023&r)}return l(c,s)},n.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0||0===n?t:n+i[e[n]]>t?n:t}},{"./common":1}],3:[function(e,t,n){"use strict";function s(e,t,n,s){for(var r=65535&e|0,a=e>>>16&65535|0,i=0;0!==n;){n-=i=n>2e3?2e3:n;do{a=a+(r=r+t[s++]|0)|0}while(--i);r%=65521,a%=65521}return r|a<<16|0}t.exports=s},{}],4:[function(e,t,n){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],5:[function(e,t,n){"use strict";function s(){for(var e,t=[],n=0;n<256;n++){e=n;for(var s=0;s<8;s++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}var r=s();function a(e,t,n,s){var a=r,i=s+n;e^=-1;for(var o=s;o<i;o++)e=e>>>8^a[255&(e^t[o])];return-1^e}t.exports=a},{}],6:[function(e,t,n){"use strict";function s(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}t.exports=s},{}],7:[function(e,t,n){"use strict";var s=30,r=12;t.exports=function(e,t){var n,a,i,o,l,c,u,d,p,m,h,f,g,y,v,_,b,E,w,x,C,S,k,T,P;n=e.state,a=e.next_in,T=e.input,i=a+(e.avail_in-5),o=e.next_out,P=e.output,l=o-(t-e.avail_out),c=o+(e.avail_out-257),u=n.dmax,d=n.wsize,p=n.whave,m=n.wnext,h=n.window,f=n.hold,g=n.bits,y=n.lencode,v=n.distcode,_=(1<<n.lenbits)-1,b=(1<<n.distbits)-1;e:do{g<15&&(f+=T[a++]<<g,g+=8,f+=T[a++]<<g,g+=8),E=y[f&_];t:for(;;){if(f>>>=w=E>>>24,g-=w,0==(w=E>>>16&255))P[o++]=65535&E;else{if(!(16&w)){if(0==(64&w)){E=y[(65535&E)+(f&(1<<w)-1)];continue t}if(32&w){n.mode=r;break e}e.msg="invalid literal/length code",n.mode=s;break e}x=65535&E,(w&=15)&&(g<w&&(f+=T[a++]<<g,g+=8),x+=f&(1<<w)-1,f>>>=w,g-=w),g<15&&(f+=T[a++]<<g,g+=8,f+=T[a++]<<g,g+=8),E=v[f&b];n:for(;;){if(f>>>=w=E>>>24,g-=w,!(16&(w=E>>>16&255))){if(0==(64&w)){E=v[(65535&E)+(f&(1<<w)-1)];continue n}e.msg="invalid distance code",n.mode=s;break e}if(C=65535&E,g<(w&=15)&&(f+=T[a++]<<g,(g+=8)<w&&(f+=T[a++]<<g,g+=8)),(C+=f&(1<<w)-1)>u){e.msg="invalid distance too far back",n.mode=s;break e}if(f>>>=w,g-=w,C>(w=o-l)){if((w=C-w)>p&&n.sane){e.msg="invalid distance too far back",n.mode=s;break e}if(S=0,k=h,0===m){if(S+=d-w,w<x){x-=w;do{P[o++]=h[S++]}while(--w);S=o-C,k=P}}else if(m<w){if(S+=d+m-w,(w-=m)<x){x-=w;do{P[o++]=h[S++]}while(--w);if(S=0,m<x){x-=w=m;do{P[o++]=h[S++]}while(--w);S=o-C,k=P}}}else if(S+=m-w,w<x){x-=w;do{P[o++]=h[S++]}while(--w);S=o-C,k=P}for(;x>2;)P[o++]=k[S++],P[o++]=k[S++],P[o++]=k[S++],x-=3;x&&(P[o++]=k[S++],x>1&&(P[o++]=k[S++]))}else{S=o-C;do{P[o++]=P[S++],P[o++]=P[S++],P[o++]=P[S++],x-=3}while(x>2);x&&(P[o++]=P[S++],x>1&&(P[o++]=P[S++]))}break}}break}}while(a<i&&o<c);a-=x=g>>3,f&=(1<<(g-=x<<3))-1,e.next_in=a,e.next_out=o,e.avail_in=a<i?i-a+5:5-(a-i),e.avail_out=o<c?c-o+257:257-(o-c),n.hold=f,n.bits=g}},{}],8:[function(e,t,n){"use strict";var s=e("../utils/common"),r=e("./adler32"),a=e("./crc32"),i=e("./inffast"),o=e("./inftrees"),l=0,c=1,u=2,d=4,p=5,m=6,h=0,f=1,g=2,y=-2,v=-3,_=-4,b=-5,E=8,w=1,x=2,C=3,S=4,k=5,T=6,P=7,N=8,O=9,I=10,M=11,A=12,R=13,B=14,L=15,D=16,F=17,V=18,z=19,G=20,H=21,U=22,W=23,j=24,q=25,Y=26,Z=27,X=28,K=29,J=30,Q=31,$=852,ee=592,te=15;function ne(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function se(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new s.Buf16(320),this.work=new s.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function re(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=w,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new s.Buf32($),t.distcode=t.distdyn=new s.Buf32(ee),t.sane=1,t.back=-1,h):y}function ae(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,re(e)):y}function ie(e,t){var n,s;return e&&e.state?(s=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?y:(null!==s.window&&s.wbits!==t&&(s.window=null),s.wrap=n,s.wbits=t,ae(e))):y}function oe(e,t){var n,s;return e?(s=new se,e.state=s,s.window=null,(n=ie(e,t))!==h&&(e.state=null),n):y}function le(e){return oe(e,te)}var ce,ue,de=!0;function pe(e){if(de){var t;for(ce=new s.Buf32(512),ue=new s.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(o(c,e.lens,0,288,ce,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;o(u,e.lens,0,32,ue,0,e.work,{bits:5}),de=!1}e.lencode=ce,e.lenbits=9,e.distcode=ue,e.distbits=5}function me(e,t,n,r){var a,i=e.state;return null===i.window&&(i.wsize=1<<i.wbits,i.wnext=0,i.whave=0,i.window=new s.Buf8(i.wsize)),r>=i.wsize?(s.arraySet(i.window,t,n-i.wsize,i.wsize,0),i.wnext=0,i.whave=i.wsize):((a=i.wsize-i.wnext)>r&&(a=r),s.arraySet(i.window,t,n-r,a,i.wnext),(r-=a)?(s.arraySet(i.window,t,n-r,r,0),i.wnext=r,i.whave=i.wsize):(i.wnext+=a,i.wnext===i.wsize&&(i.wnext=0),i.whave<i.wsize&&(i.whave+=a))),0}function he(e,t){var n,$,ee,te,se,re,ae,ie,oe,le,ce,ue,de,he,fe,ge,ye,ve,_e,be,Ee,we,xe,Ce,Se=0,ke=new s.Buf8(4),Te=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return y;(n=e.state).mode===A&&(n.mode=R),se=e.next_out,ee=e.output,ae=e.avail_out,te=e.next_in,$=e.input,re=e.avail_in,ie=n.hold,oe=n.bits,le=re,ce=ae,we=h;e:for(;;)switch(n.mode){case w:if(0===n.wrap){n.mode=R;break}for(;oe<16;){if(0===re)break e;re--,ie+=$[te++]<<oe,oe+=8}if(2&n.wrap&&35615===ie){n.check=0,ke[0]=255&ie,ke[1]=ie>>>8&255,n.check=a(n.check,ke,2,0),ie=0,oe=0,n.mode=x;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&ie)<<8)+(ie>>8))%31){e.msg="incorrect header check",n.mode=J;break}if((15&ie)!==E){e.msg="unknown compression method",n.mode=J;break}if(oe-=4,Ee=8+(15&(ie>>>=4)),0===n.wbits)n.wbits=Ee;else if(Ee>n.wbits){e.msg="invalid window size",n.mode=J;break}n.dmax=1<<Ee,e.adler=n.check=1,n.mode=512&ie?I:A,ie=0,oe=0;break;case x:for(;oe<16;){if(0===re)break e;re--,ie+=$[te++]<<oe,oe+=8}if(n.flags=ie,(255&n.flags)!==E){e.msg="unknown compression method",n.mode=J;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=J;break}n.head&&(n.head.text=ie>>8&1),512&n.flags&&(ke[0]=255&ie,ke[1]=ie>>>8&255,n.check=a(n.check,ke,2,0)),ie=0,oe=0,n.mode=C;case C:for(;oe<32;){if(0===re)break e;re--,ie+=$[te++]<<oe,oe+=8}n.head&&(n.head.time=ie),512&n.flags&&(ke[0]=255&ie,ke[1]=ie>>>8&255,ke[2]=ie>>>16&255,ke[3]=ie>>>24&255,n.check=a(n.check,ke,4,0)),ie=0,oe=0,n.mode=S;case S:for(;oe<16;){if(0===re)break e;re--,ie+=$[te++]<<oe,oe+=8}n.head&&(n.head.xflags=255&ie,n.head.os=ie>>8),512&n.flags&&(ke[0]=255&ie,ke[1]=ie>>>8&255,n.check=a(n.check,ke,2,0)),ie=0,oe=0,n.mode=k;case k:if(1024&n.flags){for(;oe<16;){if(0===re)break e;re--,ie+=$[te++]<<oe,oe+=8}n.length=ie,n.head&&(n.head.extra_len=ie),512&n.flags&&(ke[0]=255&ie,ke[1]=ie>>>8&255,n.check=a(n.check,ke,2,0)),ie=0,oe=0}else n.head&&(n.head.extra=null);n.mode=T;case T:if(1024&n.flags&&((ue=n.length)>re&&(ue=re),ue&&(n.head&&(Ee=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),s.arraySet(n.head.extra,$,te,ue,Ee)),512&n.flags&&(n.check=a(n.check,$,ue,te)),re-=ue,te+=ue,n.length-=ue),n.length))break e;n.length=0,n.mode=P;case P:if(2048&n.flags){if(0===re)break e;ue=0;do{Ee=$[te+ue++],n.head&&Ee&&n.length<65536&&(n.head.name+=String.fromCharCode(Ee))}while(Ee&&ue<re);if(512&n.flags&&(n.check=a(n.check,$,ue,te)),re-=ue,te+=ue,Ee)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=N;case N:if(4096&n.flags){if(0===re)break e;ue=0;do{Ee=$[te+ue++],n.head&&Ee&&n.length<65536&&(n.head.comment+=String.fromCharCode(Ee))}while(Ee&&ue<re);if(512&n.flags&&(n.check=a(n.check,$,ue,te)),re-=ue,te+=ue,Ee)break e}else n.head&&(n.head.comment=null);n.mode=O;case O:if(512&n.flags){for(;oe<16;){if(0===re)break e;re--,ie+=$[te++]<<oe,oe+=8}if(ie!==(65535&n.check)){e.msg="header crc mismatch",n.mode=J;break}ie=0,oe=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=A;break;case I:for(;oe<32;){if(0===re)break e;re--,ie+=$[te++]<<oe,oe+=8}e.adler=n.check=ne(ie),ie=0,oe=0,n.mode=M;case M:if(0===n.havedict)return e.next_out=se,e.avail_out=ae,e.next_in=te,e.avail_in=re,n.hold=ie,n.bits=oe,g;e.adler=n.check=1,n.mode=A;case A:if(t===p||t===m)break e;case R:if(n.last){ie>>>=7&oe,oe-=7&oe,n.mode=Z;break}for(;oe<3;){if(0===re)break e;re--,ie+=$[te++]<<oe,oe+=8}switch(n.last=1&ie,oe-=1,3&(ie>>>=1)){case 0:n.mode=B;break;case 1:if(pe(n),n.mode=G,t===m){ie>>>=2,oe-=2;break e}break;case 2:n.mode=F;break;case 3:e.msg="invalid block type",n.mode=J}ie>>>=2,oe-=2;break;case B:for(ie>>>=7&oe,oe-=7&oe;oe<32;){if(0===re)break e;re--,ie+=$[te++]<<oe,oe+=8}if((65535&ie)!=(ie>>>16^65535)){e.msg="invalid stored block lengths",n.mode=J;break}if(n.length=65535&ie,ie=0,oe=0,n.mode=L,t===m)break e;case L:n.mode=D;case D:if(ue=n.length){if(ue>re&&(ue=re),ue>ae&&(ue=ae),0===ue)break e;s.arraySet(ee,$,te,ue,se),re-=ue,te+=ue,ae-=ue,se+=ue,n.length-=ue;break}n.mode=A;break;case F:for(;oe<14;){if(0===re)break e;re--,ie+=$[te++]<<oe,oe+=8}if(n.nlen=257+(31&ie),ie>>>=5,oe-=5,n.ndist=1+(31&ie),ie>>>=5,oe-=5,n.ncode=4+(15&ie),ie>>>=4,oe-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=J;break}n.have=0,n.mode=V;case V:for(;n.have<n.ncode;){for(;oe<3;){if(0===re)break e;re--,ie+=$[te++]<<oe,oe+=8}n.lens[Te[n.have++]]=7&ie,ie>>>=3,oe-=3}for(;n.have<19;)n.lens[Te[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,xe={bits:n.lenbits},we=o(l,n.lens,0,19,n.lencode,0,n.work,xe),n.lenbits=xe.bits,we){e.msg="invalid code lengths set",n.mode=J;break}n.have=0,n.mode=z;case z:for(;n.have<n.nlen+n.ndist;){for(;ge=(Se=n.lencode[ie&(1<<n.lenbits)-1])>>>16&255,ye=65535&Se,!((fe=Se>>>24)<=oe);){if(0===re)break e;re--,ie+=$[te++]<<oe,oe+=8}if(ye<16)ie>>>=fe,oe-=fe,n.lens[n.have++]=ye;else{if(16===ye){for(Ce=fe+2;oe<Ce;){if(0===re)break e;re--,ie+=$[te++]<<oe,oe+=8}if(ie>>>=fe,oe-=fe,0===n.have){e.msg="invalid bit length repeat",n.mode=J;break}Ee=n.lens[n.have-1],ue=3+(3&ie),ie>>>=2,oe-=2}else if(17===ye){for(Ce=fe+3;oe<Ce;){if(0===re)break e;re--,ie+=$[te++]<<oe,oe+=8}oe-=fe,Ee=0,ue=3+(7&(ie>>>=fe)),ie>>>=3,oe-=3}else{for(Ce=fe+7;oe<Ce;){if(0===re)break e;re--,ie+=$[te++]<<oe,oe+=8}oe-=fe,Ee=0,ue=11+(127&(ie>>>=fe)),ie>>>=7,oe-=7}if(n.have+ue>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=J;break}for(;ue--;)n.lens[n.have++]=Ee}}if(n.mode===J)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=J;break}if(n.lenbits=9,xe={bits:n.lenbits},we=o(c,n.lens,0,n.nlen,n.lencode,0,n.work,xe),n.lenbits=xe.bits,we){e.msg="invalid literal/lengths set",n.mode=J;break}if(n.distbits=6,n.distcode=n.distdyn,xe={bits:n.distbits},we=o(u,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,xe),n.distbits=xe.bits,we){e.msg="invalid distances set",n.mode=J;break}if(n.mode=G,t===m)break e;case G:n.mode=H;case H:if(re>=6&&ae>=258){e.next_out=se,e.avail_out=ae,e.next_in=te,e.avail_in=re,n.hold=ie,n.bits=oe,i(e,ce),se=e.next_out,ee=e.output,ae=e.avail_out,te=e.next_in,$=e.input,re=e.avail_in,ie=n.hold,oe=n.bits,n.mode===A&&(n.back=-1);break}for(n.back=0;ge=(Se=n.lencode[ie&(1<<n.lenbits)-1])>>>16&255,ye=65535&Se,!((fe=Se>>>24)<=oe);){if(0===re)break e;re--,ie+=$[te++]<<oe,oe+=8}if(ge&&0==(240&ge)){for(ve=fe,_e=ge,be=ye;ge=(Se=n.lencode[be+((ie&(1<<ve+_e)-1)>>ve)])>>>16&255,ye=65535&Se,!(ve+(fe=Se>>>24)<=oe);){if(0===re)break e;re--,ie+=$[te++]<<oe,oe+=8}ie>>>=ve,oe-=ve,n.back+=ve}if(ie>>>=fe,oe-=fe,n.back+=fe,n.length=ye,0===ge){n.mode=Y;break}if(32&ge){n.back=-1,n.mode=A;break}if(64&ge){e.msg="invalid literal/length code",n.mode=J;break}n.extra=15&ge,n.mode=U;case U:if(n.extra){for(Ce=n.extra;oe<Ce;){if(0===re)break e;re--,ie+=$[te++]<<oe,oe+=8}n.length+=ie&(1<<n.extra)-1,ie>>>=n.extra,oe-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=W;case W:for(;ge=(Se=n.distcode[ie&(1<<n.distbits)-1])>>>16&255,ye=65535&Se,!((fe=Se>>>24)<=oe);){if(0===re)break e;re--,ie+=$[te++]<<oe,oe+=8}if(0==(240&ge)){for(ve=fe,_e=ge,be=ye;ge=(Se=n.distcode[be+((ie&(1<<ve+_e)-1)>>ve)])>>>16&255,ye=65535&Se,!(ve+(fe=Se>>>24)<=oe);){if(0===re)break e;re--,ie+=$[te++]<<oe,oe+=8}ie>>>=ve,oe-=ve,n.back+=ve}if(ie>>>=fe,oe-=fe,n.back+=fe,64&ge){e.msg="invalid distance code",n.mode=J;break}n.offset=ye,n.extra=15&ge,n.mode=j;case j:if(n.extra){for(Ce=n.extra;oe<Ce;){if(0===re)break e;re--,ie+=$[te++]<<oe,oe+=8}n.offset+=ie&(1<<n.extra)-1,ie>>>=n.extra,oe-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=J;break}n.mode=q;case q:if(0===ae)break e;if(ue=ce-ae,n.offset>ue){if((ue=n.offset-ue)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=J;break}ue>n.wnext?(ue-=n.wnext,de=n.wsize-ue):de=n.wnext-ue,ue>n.length&&(ue=n.length),he=n.window}else he=ee,de=se-n.offset,ue=n.length;ue>ae&&(ue=ae),ae-=ue,n.length-=ue;do{ee[se++]=he[de++]}while(--ue);0===n.length&&(n.mode=H);break;case Y:if(0===ae)break e;ee[se++]=n.length,ae--,n.mode=H;break;case Z:if(n.wrap){for(;oe<32;){if(0===re)break e;re--,ie|=$[te++]<<oe,oe+=8}if(ce-=ae,e.total_out+=ce,n.total+=ce,ce&&(e.adler=n.check=n.flags?a(n.check,ee,ce,se-ce):r(n.check,ee,ce,se-ce)),ce=ae,(n.flags?ie:ne(ie))!==n.check){e.msg="incorrect data check",n.mode=J;break}ie=0,oe=0}n.mode=X;case X:if(n.wrap&&n.flags){for(;oe<32;){if(0===re)break e;re--,ie+=$[te++]<<oe,oe+=8}if(ie!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=J;break}ie=0,oe=0}n.mode=K;case K:we=f;break e;case J:we=v;break e;case Q:return _;default:return y}return e.next_out=se,e.avail_out=ae,e.next_in=te,e.avail_in=re,n.hold=ie,n.bits=oe,(n.wsize||ce!==e.avail_out&&n.mode<J&&(n.mode<Z||t!==d))&&me(e,e.output,e.next_out,ce-e.avail_out)?(n.mode=Q,_):(le-=e.avail_in,ce-=e.avail_out,e.total_in+=le,e.total_out+=ce,n.total+=ce,n.wrap&&ce&&(e.adler=n.check=n.flags?a(n.check,ee,ce,e.next_out-ce):r(n.check,ee,ce,e.next_out-ce)),e.data_type=n.bits+(n.last?64:0)+(n.mode===A?128:0)+(n.mode===G||n.mode===L?256:0),(0===le&&0===ce||t===d)&&we===h&&(we=b),we)}function fe(e){if(!e||!e.state)return y;var t=e.state;return t.window&&(t.window=null),e.state=null,h}function ge(e,t){var n;return e&&e.state?0==(2&(n=e.state).wrap)?y:(n.head=t,t.done=!1,h):y}function ye(e,t){var n,s=t.length;return e&&e.state?0!==(n=e.state).wrap&&n.mode!==M?y:n.mode===M&&r(1,t,s,0)!==n.check?v:me(e,t,s,s)?(n.mode=Q,_):(n.havedict=1,h):y}n.inflateReset=ae,n.inflateReset2=ie,n.inflateResetKeep=re,n.inflateInit=le,n.inflateInit2=oe,n.inflate=he,n.inflateEnd=fe,n.inflateGetHeader=ge,n.inflateSetDictionary=ye,n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":1,"./adler32":3,"./crc32":5,"./inffast":7,"./inftrees":9}],9:[function(e,t,n){"use strict";var s=e("../utils/common"),r=15,a=852,i=592,o=0,l=1,c=2,u=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],d=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],p=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],m=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,n,h,f,g,y,v){var _,b,E,w,x,C,S,k,T,P=v.bits,N=0,O=0,I=0,M=0,A=0,R=0,B=0,L=0,D=0,F=0,V=null,z=0,G=new s.Buf16(r+1),H=new s.Buf16(r+1),U=null,W=0;for(N=0;N<=r;N++)G[N]=0;for(O=0;O<h;O++)G[t[n+O]]++;for(A=P,M=r;M>=1&&0===G[M];M--);if(A>M&&(A=M),0===M)return f[g++]=20971520,f[g++]=20971520,v.bits=1,0;for(I=1;I<M&&0===G[I];I++);for(A<I&&(A=I),L=1,N=1;N<=r;N++)if(L<<=1,(L-=G[N])<0)return-1;if(L>0&&(e===o||1!==M))return-1;for(H[1]=0,N=1;N<r;N++)H[N+1]=H[N]+G[N];for(O=0;O<h;O++)0!==t[n+O]&&(y[H[t[n+O]]++]=O);if(e===o?(V=U=y,C=19):e===l?(V=u,z-=257,U=d,W-=257,C=256):(V=p,U=m,C=-1),F=0,O=0,N=I,x=g,R=A,B=0,E=-1,w=(D=1<<A)-1,e===l&&D>a||e===c&&D>i)return 1;for(;;){S=N-B,y[O]<C?(k=0,T=y[O]):y[O]>C?(k=U[W+y[O]],T=V[z+y[O]]):(k=96,T=0),_=1<<N-B,I=b=1<<R;do{f[x+(F>>B)+(b-=_)]=S<<24|k<<16|T|0}while(0!==b);for(_=1<<N-1;F&_;)_>>=1;if(0!==_?(F&=_-1,F+=_):F=0,O++,0==--G[N]){if(N===M)break;N=t[n+y[O]]}if(N>A&&(F&w)!==E){for(0===B&&(B=A),x+=I,L=1<<(R=N-B);R+B<M&&!((L-=G[R+B])<=0);)R++,L<<=1;if(D+=1<<R,e===l&&D>a||e===c&&D>i)return 1;f[E=F&w]=A<<24|R<<16|x-g|0}}return 0!==F&&(f[x+F]=N-B<<24|64<<16|0),v.bits=A,0}},{"../utils/common":1}],10:[function(e,t,n){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],11:[function(e,t,n){"use strict";function s(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}t.exports=s},{}],"/lib/inflate.js":[function(e,t,n){"use strict";var s=e("./zlib/inflate"),r=e("./utils/common"),a=e("./utils/strings"),i=e("./zlib/constants"),o=e("./zlib/messages"),l=e("./zlib/zstream"),c=e("./zlib/gzheader"),u=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(e);this.options=r.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var n=s.inflateInit2(this.strm,t.windowBits);if(n!==i.Z_OK)throw new Error(o[n]);if(this.header=new c,s.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=a.string2buf(t.dictionary):"[object ArrayBuffer]"===u.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=s.inflateSetDictionary(this.strm,t.dictionary))!==i.Z_OK))throw new Error(o[n])}function p(e,t){var n=new d(t);if(n.push(e,!0),n.err)throw n.msg||o[n.err];return n.result}function m(e,t){return(t=t||{}).raw=!0,p(e,t)}d.prototype.push=function(e,t){var n,o,l,c,d,p=this.strm,m=this.options.chunkSize,h=this.options.dictionary,f=!1;if(this.ended)return!1;o=t===~~t?t:!0===t?i.Z_FINISH:i.Z_NO_FLUSH,"string"==typeof e?p.input=a.binstring2buf(e):"[object ArrayBuffer]"===u.call(e)?p.input=new Uint8Array(e):p.input=e,p.next_in=0,p.avail_in=p.input.length;do{if(0===p.avail_out&&(p.output=new r.Buf8(m),p.next_out=0,p.avail_out=m),(n=s.inflate(p,i.Z_NO_FLUSH))===i.Z_NEED_DICT&&h&&(n=s.inflateSetDictionary(this.strm,h)),n===i.Z_BUF_ERROR&&!0===f&&(n=i.Z_OK,f=!1),n!==i.Z_STREAM_END&&n!==i.Z_OK)return this.onEnd(n),this.ended=!0,!1;p.next_out&&(0!==p.avail_out&&n!==i.Z_STREAM_END&&(0!==p.avail_in||o!==i.Z_FINISH&&o!==i.Z_SYNC_FLUSH)||("string"===this.options.to?(l=a.utf8border(p.output,p.next_out),c=p.next_out-l,d=a.buf2string(p.output,l),p.next_out=c,p.avail_out=m-c,c&&r.arraySet(p.output,p.output,l,c,0),this.onData(d)):this.onData(r.shrinkBuf(p.output,p.next_out)))),0===p.avail_in&&0===p.avail_out&&(f=!0)}while((p.avail_in>0||0===p.avail_out)&&n!==i.Z_STREAM_END);return n===i.Z_STREAM_END&&(o=i.Z_FINISH),o===i.Z_FINISH?(n=s.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===i.Z_OK):o!==i.Z_SYNC_FLUSH||(this.onEnd(i.Z_OK),p.avail_out=0,!0)},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===i.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=d,n.inflate=p,n.inflateRaw=m,n.ungzip=p},{"./utils/common":1,"./utils/strings":2,"./zlib/constants":4,"./zlib/gzheader":6,"./zlib/inflate":8,"./zlib/messages":10,"./zlib/zstream":11}]},{},[])("/lib/inflate.js")},5723:function(e){e.exports=function(){function e(t,n,s){function r(i,o){if(!n[i]){if(!t[i]){if(a)return a(i,!0);var l=new Error("Cannot find module '"+i+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[i]={exports:{}};t[i][0].call(c.exports,(function(e){return r(t[i][1][e]||e)}),c,c.exports,e,t,n,s)}return n[i].exports}for(var a=void 0,i=0;i<s.length;i++)r(s[i]);return r}return e}()({1:[function(e,t,n){var s=4096,r=2*s+32,a=2*s-1,i=new Uint32Array([0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215]);function o(e){this.buf_=new Uint8Array(r),this.input_=e,this.reset()}o.READ_SIZE=s,o.IBUF_MASK=a,o.prototype.reset=function(){this.buf_ptr_=0,this.val_=0,this.pos_=0,this.bit_pos_=0,this.bit_end_pos_=0,this.eos_=0,this.readMoreInput();for(var e=0;e<4;e++)this.val_|=this.buf_[this.pos_]<<8*e,++this.pos_;return this.bit_end_pos_>0},o.prototype.readMoreInput=function(){if(!(this.bit_end_pos_>256))if(this.eos_){if(this.bit_pos_>this.bit_end_pos_)throw new Error("Unexpected end of input "+this.bit_pos_+" "+this.bit_end_pos_)}else{var e=this.buf_ptr_,t=this.input_.read(this.buf_,e,s);if(t<0)throw new Error("Unexpected end of input");if(t<s){this.eos_=1;for(var n=0;n<32;n++)this.buf_[e+t+n]=0}if(0===e){for(n=0;n<32;n++)this.buf_[(s<<1)+n]=this.buf_[n];this.buf_ptr_=s}else this.buf_ptr_=0;this.bit_end_pos_+=t<<3}},o.prototype.fillBitWindow=function(){for(;this.bit_pos_>=8;)this.val_>>>=8,this.val_|=this.buf_[this.pos_&a]<<24,++this.pos_,this.bit_pos_=this.bit_pos_-8>>>0,this.bit_end_pos_=this.bit_end_pos_-8>>>0},o.prototype.readBits=function(e){32-this.bit_pos_<e&&this.fillBitWindow();var t=this.val_>>>this.bit_pos_&i[e];return this.bit_pos_+=e,t},t.exports=o},{}],2:[function(e,t,n){n.lookup=new Uint8Array([0,0,0,0,0,0,0,0,0,4,4,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,12,16,12,12,20,12,16,24,28,12,12,32,12,36,12,44,44,44,44,44,44,44,44,44,44,32,32,24,40,28,12,12,48,52,52,52,48,52,52,52,48,52,52,52,52,52,48,52,52,52,52,52,48,52,52,52,52,52,24,12,28,12,12,12,56,60,60,60,56,60,60,60,56,60,60,60,60,60,56,60,60,60,60,60,56,60,60,60,60,60,24,12,28,12,0,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,0,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,56,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,6,6,6,6,7,7,7,7,8,8,8,8,9,9,9,9,10,10,10,10,11,11,11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,22,22,22,22,23,23,23,23,24,24,24,24,25,25,25,25,26,26,26,26,27,27,27,27,28,28,28,28,29,29,29,29,30,30,30,30,31,31,31,31,32,32,32,32,33,33,33,33,34,34,34,34,35,35,35,35,36,36,36,36,37,37,37,37,38,38,38,38,39,39,39,39,40,40,40,40,41,41,41,41,42,42,42,42,43,43,43,43,44,44,44,44,45,45,45,45,46,46,46,46,47,47,47,47,48,48,48,48,49,49,49,49,50,50,50,50,51,51,51,51,52,52,52,52,53,53,53,53,54,54,54,54,55,55,55,55,56,56,56,56,57,57,57,57,58,58,58,58,59,59,59,59,60,60,60,60,61,61,61,61,62,62,62,62,63,63,63,63,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),n.lookupOffsets=new Uint16Array([1024,1536,1280,1536,0,256,768,512])},{}],3:[function(e,t,n){var s=e("./streams").BrotliInput,r=e("./streams").BrotliOutput,a=e("./bit_reader"),i=e("./dictionary"),o=e("./huffman").HuffmanCode,l=e("./huffman").BrotliBuildHuffmanTable,c=e("./context"),u=e("./prefix"),d=e("./transform"),p=8,m=16,h=256,f=704,g=26,y=6,v=2,_=8,b=255,E=1080,w=18,x=new Uint8Array([1,2,3,4,0,5,17,6,16,7,8,9,10,11,12,13,14,15]),C=16,S=new Uint8Array([3,2,1,0,3,3,3,3,3,3,2,2,2,2,2,2]),k=new Int8Array([0,0,0,0,-1,1,-2,2,-3,3,-1,1,-2,2,-3,3]),T=new Uint16Array([256,402,436,468,500,534,566,598,630,662,694,726,758,790,822,854,886,920,952,984,1016,1048,1080]);function P(e){var t;return 0===e.readBits(1)?16:(t=e.readBits(3))>0?17+t:(t=e.readBits(3))>0?8+t:17}function N(e){if(e.readBits(1)){var t=e.readBits(3);return 0===t?1:e.readBits(t)+(1<<t)}return 0}function O(){this.meta_block_length=0,this.input_end=0,this.is_uncompressed=0,this.is_metadata=!1}function I(e){var t,n,s,r=new O;if(r.input_end=e.readBits(1),r.input_end&&e.readBits(1))return r;if(7===(t=e.readBits(2)+4)){if(r.is_metadata=!0,0!==e.readBits(1))throw new Error("Invalid reserved bit");if(0===(n=e.readBits(2)))return r;for(s=0;s<n;s++){var a=e.readBits(8);if(s+1===n&&n>1&&0===a)throw new Error("Invalid size byte");r.meta_block_length|=a<<8*s}}else for(s=0;s<t;++s){var i=e.readBits(4);if(s+1===t&&t>4&&0===i)throw new Error("Invalid size nibble");r.meta_block_length|=i<<4*s}return++r.meta_block_length,r.input_end||r.is_metadata||(r.is_uncompressed=e.readBits(1)),r}function M(e,t,n){var s;return n.fillBitWindow(),(s=e[t+=n.val_>>>n.bit_pos_&b].bits-_)>0&&(n.bit_pos_+=_,t+=e[t].value,t+=n.val_>>>n.bit_pos_&(1<<s)-1),n.bit_pos_+=e[t].bits,e[t].value}function A(e,t,n,s){for(var r=0,a=p,i=0,c=0,u=32768,d=[],h=0;h<32;h++)d.push(new o(0,0));for(l(d,0,5,e,w);r<t&&u>0;){var f,g=0;if(s.readMoreInput(),s.fillBitWindow(),g+=s.val_>>>s.bit_pos_&31,s.bit_pos_+=d[g].bits,(f=255&d[g].value)<m)i=0,n[r++]=f,0!==f&&(a=f,u-=32768>>f);else{var y,v,_=f-14,b=0;if(f===m&&(b=a),c!==b&&(i=0,c=b),y=i,i>0&&(i-=2,i<<=_),r+(v=(i+=s.readBits(_)+3)-y)>t)throw new Error("[ReadHuffmanCodeLengths] symbol + repeat_delta > num_symbols");for(var E=0;E<v;E++)n[r+E]=c;r+=v,0!==c&&(u-=v<<15-c)}}if(0!==u)throw new Error("[ReadHuffmanCodeLengths] space = "+u);for(;r<t;r++)n[r]=0}function R(e,t,n,s){var r,a=0,i=new Uint8Array(e);if(s.readMoreInput(),1===(r=s.readBits(2))){for(var c=e-1,u=0,d=new Int32Array(4),p=s.readBits(2)+1;c;)c>>=1,++u;for(m=0;m<p;++m)d[m]=s.readBits(u)%e,i[d[m]]=2;switch(i[d[0]]=1,p){case 1:break;case 3:if(d[0]===d[1]||d[0]===d[2]||d[1]===d[2])throw new Error("[ReadHuffmanCode] invalid symbols");break;case 2:if(d[0]===d[1])throw new Error("[ReadHuffmanCode] invalid symbols");i[d[1]]=1;break;case 4:if(d[0]===d[1]||d[0]===d[2]||d[0]===d[3]||d[1]===d[2]||d[1]===d[3]||d[2]===d[3])throw new Error("[ReadHuffmanCode] invalid symbols");s.readBits(1)?(i[d[2]]=3,i[d[3]]=3):i[d[0]]=2}}else{var m,h=new Uint8Array(w),f=32,g=0,y=[new o(2,0),new o(2,4),new o(2,3),new o(3,2),new o(2,0),new o(2,4),new o(2,3),new o(4,1),new o(2,0),new o(2,4),new o(2,3),new o(3,2),new o(2,0),new o(2,4),new o(2,3),new o(4,5)];for(m=r;m<w&&f>0;++m){var v,b=x[m],E=0;s.fillBitWindow(),E+=s.val_>>>s.bit_pos_&15,s.bit_pos_+=y[E].bits,v=y[E].value,h[b]=v,0!==v&&(f-=32>>v,++g)}if(1!==g&&0!==f)throw new Error("[ReadHuffmanCode] invalid num_codes or space");A(h,e,i,s)}if(0===(a=l(t,n,_,i,e)))throw new Error("[ReadHuffmanCode] BuildHuffmanTable failed: ");return a}function B(e,t,n){var s,r;return s=M(e,t,n),r=u.kBlockLengthPrefixCode[s].nbits,u.kBlockLengthPrefixCode[s].offset+n.readBits(r)}function L(e,t,n){var s;return e<C?(n+=S[e],s=t[n&=3]+k[e]):s=e-C+1,s}function D(e,t){for(var n=e[t],s=t;s;--s)e[s]=e[s-1];e[0]=n}function F(e,t){var n,s=new Uint8Array(256);for(n=0;n<256;++n)s[n]=n;for(n=0;n<t;++n){var r=e[n];e[n]=s[r],r&&D(s,r)}}function V(e,t){this.alphabet_size=e,this.num_htrees=t,this.codes=new Array(t+t*T[e+31>>>5]),this.htrees=new Uint32Array(t)}function z(e,t){var n,s,r={num_htrees:null,context_map:null},a=0;t.readMoreInput();var i=r.num_htrees=N(t)+1,l=r.context_map=new Uint8Array(e);if(i<=1)return r;for(t.readBits(1)&&(a=t.readBits(4)+1),n=[],s=0;s<E;s++)n[s]=new o(0,0);for(R(i+a,n,0,t),s=0;s<e;){var c;if(t.readMoreInput(),0===(c=M(n,0,t)))l[s]=0,++s;else if(c<=a)for(var u=1+(1<<c)+t.readBits(c);--u;){if(s>=e)throw new Error("[DecodeContextMap] i >= context_map_size");l[s]=0,++s}else l[s]=c-a,++s}return t.readBits(1)&&F(l,e),r}function G(e,t,n,s,r,a,i){var o,l=2*n,c=n,u=M(t,n*E,i);(o=0===u?r[l+(1&a[c])]:1===u?r[l+(a[c]-1&1)]+1:u-2)>=e&&(o-=e),s[n]=o,r[l+(1&a[c])]=o,++a[c]}function H(e,t,n,s,r,i){var o,l=r+1,c=n&r,u=i.pos_&a.IBUF_MASK;if(t<8||i.bit_pos_+(t<<3)<i.bit_end_pos_)for(;t-- >0;)i.readMoreInput(),s[c++]=i.readBits(8),c===l&&(e.write(s,l),c=0);else{if(i.bit_end_pos_<32)throw new Error("[CopyUncompressedBlockToOutput] br.bit_end_pos_ < 32");for(;i.bit_pos_<32;)s[c]=i.val_>>>i.bit_pos_,i.bit_pos_+=8,++c,--t;if(u+(o=i.bit_end_pos_-i.bit_pos_>>3)>a.IBUF_MASK){for(var d=a.IBUF_MASK+1-u,p=0;p<d;p++)s[c+p]=i.buf_[u+p];o-=d,c+=d,t-=d,u=0}for(p=0;p<o;p++)s[c+p]=i.buf_[u+p];if(t-=o,(c+=o)>=l)for(e.write(s,l),c-=l,p=0;p<c;p++)s[p]=s[l+p];for(;c+t>=l;){if(o=l-c,i.input_.read(s,c,o)<o)throw new Error("[CopyUncompressedBlockToOutput] not enough bytes");e.write(s,l),t-=o,c=0}if(i.input_.read(s,c,t)<t)throw new Error("[CopyUncompressedBlockToOutput] not enough bytes");i.reset()}}function U(e){var t=e.bit_pos_+7&-8;return 0==e.readBits(t-e.bit_pos_)}function W(e){var t=new s(e),n=new a(t);return P(n),I(n).meta_block_length}function j(e,t){var n=new s(e);null==t&&(t=W(e));var a=new Uint8Array(t),i=new r(a);return q(n,i),i.pos<i.buffer.length&&(i.buffer=i.buffer.subarray(0,i.pos)),i.buffer}function q(e,t){var n,s,r,l,p,m,_,b,w,x=0,S=0,k=0,T=0,O=[16,15,11,4],A=0,D=0,F=0,W=[new V(0,0),new V(0,0),new V(0,0)],j=128+a.READ_SIZE;s=(1<<(k=P(w=new a(e))))-16,l=(r=1<<k)-1,p=new Uint8Array(r+j+i.maxDictionaryWordLength),m=r,_=[],b=[];for(var q=0;q<3*E;q++)_[q]=new o(0,0),b[q]=new o(0,0);for(;!S;){var Y,Z,X,K,J,Q,$,ee,te,ne=0,se=[1<<28,1<<28,1<<28],re=[0],ae=[1,1,1],ie=[0,1,0,1,0,1],oe=[0],le=null,ce=null,ue=null,de=null,pe=0,me=null,he=0,fe=0,ge=0;for(n=0;n<3;++n)W[n].codes=null,W[n].htrees=null;w.readMoreInput();var ye=I(w);if(x+(ne=ye.meta_block_length)>t.buffer.length){var ve=new Uint8Array(x+ne);ve.set(t.buffer),t.buffer=ve}if(S=ye.input_end,Y=ye.is_uncompressed,ye.is_metadata)for(U(w);ne>0;--ne)w.readMoreInput(),w.readBits(8);else if(0!==ne)if(Y)w.bit_pos_=w.bit_pos_+7&-8,H(t,ne,x,p,l,w),x+=ne;else{for(n=0;n<3;++n)ae[n]=N(w)+1,ae[n]>=2&&(R(ae[n]+2,_,n*E,w),R(g,b,n*E,w),se[n]=B(b,n*E,w),oe[n]=1);for(w.readMoreInput(),K=(1<<(Z=w.readBits(2)))-1,J=(X=C+(w.readBits(4)<<Z))+(48<<Z),ce=new Uint8Array(ae[0]),n=0;n<ae[0];++n)w.readMoreInput(),ce[n]=w.readBits(2)<<1;var _e=z(ae[0]<<y,w);Q=_e.num_htrees,le=_e.context_map;var be=z(ae[2]<<v,w);for($=be.num_htrees,ue=be.context_map,W[0]=new V(h,Q),W[1]=new V(f,ae[1]),W[2]=new V(J,$),n=0;n<3;++n)W[n].decode(w);for(de=0,me=0,ee=ce[re[0]],fe=c.lookupOffsets[ee],ge=c.lookupOffsets[ee+1],te=W[1].htrees[0];ne>0;){var Ee,we,xe,Ce,Se,ke,Te,Pe,Ne,Oe,Ie,Me;for(w.readMoreInput(),0===se[1]&&(G(ae[1],_,1,re,ie,oe,w),se[1]=B(b,E,w),te=W[1].htrees[re[1]]),--se[1],(we=(Ee=M(W[1].codes,te,w))>>6)>=2?(we-=2,Te=-1):Te=0,xe=u.kInsertRangeLut[we]+(Ee>>3&7),Ce=u.kCopyRangeLut[we]+(7&Ee),Se=u.kInsertLengthPrefixCode[xe].offset+w.readBits(u.kInsertLengthPrefixCode[xe].nbits),ke=u.kCopyLengthPrefixCode[Ce].offset+w.readBits(u.kCopyLengthPrefixCode[Ce].nbits),D=p[x-1&l],F=p[x-2&l],Ne=0;Ne<Se;++Ne)w.readMoreInput(),0===se[0]&&(G(ae[0],_,0,re,ie,oe,w),se[0]=B(b,0,w),de=re[0]<<y,ee=ce[re[0]],fe=c.lookupOffsets[ee],ge=c.lookupOffsets[ee+1]),pe=le[de+(c.lookup[fe+D]|c.lookup[ge+F])],--se[0],F=D,D=M(W[0].codes,W[0].htrees[pe],w),p[x&l]=D,(x&l)===l&&t.write(p,r),++x;if((ne-=Se)<=0)break;if(Te<0&&(w.readMoreInput(),0===se[2]&&(G(ae[2],_,2,re,ie,oe,w),se[2]=B(b,2*E,w),me=re[2]<<v),--se[2],he=ue[me+(255&(ke>4?3:ke-2))],(Te=M(W[2].codes,W[2].htrees[he],w))>=X&&(Me=(Te-=X)&K,Te=X+((Ae=(2+(1&(Te>>=Z))<<(Ie=1+(Te>>1)))-4)+w.readBits(Ie)<<Z)+Me)),(Pe=L(Te,O,A))<0)throw new Error("[BrotliDecompress] invalid distance");if(Oe=x&l,Pe>(T=x<s&&T!==s?x:s)){if(!(ke>=i.minDictionaryWordLength&&ke<=i.maxDictionaryWordLength))throw new Error("Invalid backward reference. pos: "+x+" distance: "+Pe+" len: "+ke+" bytes left: "+ne);var Ae=i.offsetsByLength[ke],Re=Pe-T-1,Be=i.sizeBitsByLength[ke],Le=Re>>Be;if(Ae+=(Re&(1<<Be)-1)*ke,!(Le<d.kNumTransforms))throw new Error("Invalid backward reference. pos: "+x+" distance: "+Pe+" len: "+ke+" bytes left: "+ne);var De=d.transformDictionaryWord(p,Oe,Ae,ke,Le);if(x+=De,ne-=De,(Oe+=De)>=m){t.write(p,r);for(var Fe=0;Fe<Oe-m;Fe++)p[Fe]=p[m+Fe]}}else{if(Te>0&&(O[3&A]=Pe,++A),ke>ne)throw new Error("Invalid backward reference. pos: "+x+" distance: "+Pe+" len: "+ke+" bytes left: "+ne);for(Ne=0;Ne<ke;++Ne)p[x&l]=p[x-Pe&l],(x&l)===l&&t.write(p,r),++x,--ne}D=p[x-1&l],F=p[x-2&l]}x&=1073741823}}t.write(p,x&l)}V.prototype.decode=function(e){var t,n=0;for(t=0;t<this.num_htrees;++t)this.htrees[t]=n,n+=R(this.alphabet_size,this.codes,n,e)},n.BrotliDecompressedSize=W,n.BrotliDecompressBuffer=j,n.BrotliDecompress=q,i.init()},{"./bit_reader":1,"./context":2,"./dictionary":6,"./huffman":7,"./prefix":9,"./streams":10,"./transform":11}],4:[function(e,t,n){var s=e("base64-js");n.init=function(){return(0,e("./decode").BrotliDecompressBuffer)(s.toByteArray(e("./dictionary.bin.js")))}},{"./decode":3,"./dictionary.bin.js":5,"base64-js":8}],5:[function(e,t,n){t.exports="W5/fcQLn5gKf2XUbAiQ1XULX+TZz6ADToDsgqk6qVfeC0e4m6OO2wcQ1J76ZBVRV1fRkEsdu//62zQsFEZWSTCnMhcsQKl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AGObT60pfTTlhEg9u/KKkhJqm5U1/+BEcSkpFDA5XeCqxwXmPac1jcuZ3JWQ+p0NdWzb/5v1ZvF8GtMTFFEdQjpLO0bwPb0BHNWnip3liDXI2fXf05jjvfJ0NpjLCUgfTh9CMFYVFKEd4Z/OG/2C+N435mnK+9t1gvCiVcaaH7rK4+PjCvpVNiz+t2QyqH1O8x3JKZVl6Q+Lp/XK8wMjVMslOq9FdSw5FtUs/CptXH9PW+wbWHgrV17R5jTVOtGtKFu3nb80T+E0tv9QkzW3J2dbaw/8ddAKZ0pxIaEqLjlPrji3VgJ3GvdFvlqD8075woxh4fVt0JZE0KVFsAvqhe0dqN9b35jtSpnYMXkU+vZq+IAHad3IHc2s/LYrnD1anfG46IFiMIr9oNbZDWvwthqYNqOigaKd/XlLU4XHfk/PXIjPsLy/9/kAtQ+/wKH+hI/IROWj5FPvTZAT9f7j4ZXQyG4M0TujMAFXYkKvEHv1xhySekgXGGqNxWeWKlf8dDAlLuB1cb/qOD+rk7cmwt+1yKpk9cudqBanTi6zTbXRtV8qylNtjyOVKy1HTz0GW9rjt6sSjAZcT5R+KdtyYb0zyqG9pSLuCw5WBwAn7fjBjKLLoxLXMI+52L9cLwIR2B6OllJZLHJ8vDxmWdtF+QJnmt1rsHPIWY20lftk8fYePkAIg6Hgn532QoIpegMxiWgAOfe5/U44APR8Ac0NeZrVh3gEhs12W+tVSiWiUQekf/YBECUy5fdYbA08dd7VzPAP9aiVcIB9k6tY7WdJ1wNV+bHeydNtmC6G5ICtFC1ZwmJU/j8hf0I8TRVKSiz5oYIa93EpUI78X8GYIAZabx47/n8LDAAJ0nNtP1rpROprqKMBRecShca6qXuTSI3jZBLOB3Vp381B5rCGhjSvh/NSVkYp2qIdP/Bg="},{}],6:[function(e,t,n){var s=e("./dictionary-browser");n.init=function(){n.dictionary=s.init()},n.offsetsByLength=new Uint32Array([0,0,0,0,0,4096,9216,21504,35840,44032,53248,63488,74752,87040,93696,100864,104704,106752,108928,113536,115968,118528,119872,121280,122016]),n.sizeBitsByLength=new Uint8Array([0,0,0,0,10,10,11,11,10,10,10,10,10,9,9,8,7,7,8,7,7,6,6,5,5]),n.minDictionaryWordLength=4,n.maxDictionaryWordLength=24},{"./dictionary-browser":4}],7:[function(e,t,n){function s(e,t){this.bits=e,this.value=t}n.HuffmanCode=s;var r=15;function a(e,t){for(var n=1<<t-1;e&n;)n>>=1;return(e&n-1)+n}function i(e,t,n,r,a){do{e[t+(r-=n)]=new s(a.bits,a.value)}while(r>0)}function o(e,t,n){for(var s=1<<t-n;t<r&&!((s-=e[t])<=0);)++t,s<<=1;return t-n}n.BrotliBuildHuffmanTable=function(e,t,n,l,c){var u,d,p,m,h,f,g,y,v,_,b=t,E=new Int32Array(r+1),w=new Int32Array(r+1);for(_=new Int32Array(c),d=0;d<c;d++)E[l[d]]++;for(w[1]=0,u=1;u<r;u++)w[u+1]=w[u]+E[u];for(d=0;d<c;d++)0!==l[d]&&(_[w[l[d]]++]=d);if(v=y=1<<(g=n),1===w[r]){for(p=0;p<v;++p)e[t+p]=new s(0,65535&_[0]);return v}for(p=0,d=0,u=1,m=2;u<=n;++u,m<<=1)for(;E[u]>0;--E[u])i(e,t+p,m,y,new s(255&u,65535&_[d++])),p=a(p,u);for(f=v-1,h=-1,u=n+1,m=2;u<=r;++u,m<<=1)for(;E[u]>0;--E[u])(p&f)!==h&&(t+=y,v+=y=1<<(g=o(E,u,n)),e[b+(h=p&f)]=new s(g+n&255,t-b-h&65535)),i(e,t+(p>>n),m,y,new s(u-n&255,65535&_[d++])),p=a(p,u);return v}},{}],8:[function(e,t,n){"use strict";n.byteLength=u,n.toByteArray=p,n.fromByteArray=f;for(var s=[],r=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,l=i.length;o<l;++o)s[o]=i[o],r[i.charCodeAt(o)]=o;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e){var t=c(e),n=t[0],s=t[1];return 3*(n+s)/4-s}function d(e,t,n){return 3*(t+n)/4-n}function p(e){for(var t,n=c(e),s=n[0],i=n[1],o=new a(d(e,s,i)),l=0,u=i>0?s-4:s,p=0;p<u;p+=4)t=r[e.charCodeAt(p)]<<18|r[e.charCodeAt(p+1)]<<12|r[e.charCodeAt(p+2)]<<6|r[e.charCodeAt(p+3)],o[l++]=t>>16&255,o[l++]=t>>8&255,o[l++]=255&t;return 2===i&&(t=r[e.charCodeAt(p)]<<2|r[e.charCodeAt(p+1)]>>4,o[l++]=255&t),1===i&&(t=r[e.charCodeAt(p)]<<10|r[e.charCodeAt(p+1)]<<4|r[e.charCodeAt(p+2)]>>2,o[l++]=t>>8&255,o[l++]=255&t),o}function m(e){return s[e>>18&63]+s[e>>12&63]+s[e>>6&63]+s[63&e]}function h(e,t,n){for(var s,r=[],a=t;a<n;a+=3)s=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),r.push(m(s));return r.join("")}function f(e){for(var t,n=e.length,r=n%3,a=[],i=16383,o=0,l=n-r;o<l;o+=i)a.push(h(e,o,o+i>l?l:o+i));return 1===r?(t=e[n-1],a.push(s[t>>2]+s[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],a.push(s[t>>10]+s[t>>4&63]+s[t<<2&63]+"=")),a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},{}],9:[function(e,t,n){function s(e,t){this.offset=e,this.nbits=t}n.kBlockLengthPrefixCode=[new s(1,2),new s(5,2),new s(9,2),new s(13,2),new s(17,3),new s(25,3),new s(33,3),new s(41,3),new s(49,4),new s(65,4),new s(81,4),new s(97,4),new s(113,5),new s(145,5),new s(177,5),new s(209,5),new s(241,6),new s(305,6),new s(369,7),new s(497,8),new s(753,9),new s(1265,10),new s(2289,11),new s(4337,12),new s(8433,13),new s(16625,24)],n.kInsertLengthPrefixCode=[new s(0,0),new s(1,0),new s(2,0),new s(3,0),new s(4,0),new s(5,0),new s(6,1),new s(8,1),new s(10,2),new s(14,2),new s(18,3),new s(26,3),new s(34,4),new s(50,4),new s(66,5),new s(98,5),new s(130,6),new s(194,7),new s(322,8),new s(578,9),new s(1090,10),new s(2114,12),new s(6210,14),new s(22594,24)],n.kCopyLengthPrefixCode=[new s(2,0),new s(3,0),new s(4,0),new s(5,0),new s(6,0),new s(7,0),new s(8,0),new s(9,0),new s(10,1),new s(12,1),new s(14,2),new s(18,2),new s(22,3),new s(30,3),new s(38,4),new s(54,4),new s(70,5),new s(102,5),new s(134,6),new s(198,7),new s(326,8),new s(582,9),new s(1094,10),new s(2118,24)],n.kInsertRangeLut=[0,0,8,8,0,16,8,16,16],n.kCopyRangeLut=[0,8,0,8,16,0,16,8,16]},{}],10:[function(e,t,n){function s(e){this.buffer=e,this.pos=0}function r(e){this.buffer=e,this.pos=0}s.prototype.read=function(e,t,n){this.pos+n>this.buffer.length&&(n=this.buffer.length-this.pos);for(var s=0;s<n;s++)e[t+s]=this.buffer[this.pos+s];return this.pos+=n,n},n.BrotliInput=s,r.prototype.write=function(e,t){if(this.pos+t>this.buffer.length)throw new Error("Output buffer is not large enough");return this.buffer.set(e.subarray(0,t),this.pos),this.pos+=t,t},n.BrotliOutput=r},{}],11:[function(e,t,n){var s=e("./dictionary"),r=0,a=1,i=2,o=3,l=4,c=5,u=6,d=7,p=8,m=9,h=10,f=11,g=12,y=13,v=14,_=15,b=16,E=17,w=18,x=20;function C(e,t,n){this.prefix=new Uint8Array(e.length),this.transform=t,this.suffix=new Uint8Array(n.length);for(var s=0;s<e.length;s++)this.prefix[s]=e.charCodeAt(s);for(s=0;s<n.length;s++)this.suffix[s]=n.charCodeAt(s)}var S=[new C("",r,""),new C("",r," "),new C(" ",r," "),new C("",g,""),new C("",h," "),new C("",r," the "),new C(" ",r,""),new C("s ",r," "),new C("",r," of "),new C("",h,""),new C("",r," and "),new C("",y,""),new C("",a,""),new C(", ",r," "),new C("",r,", "),new C(" ",h," "),new C("",r," in "),new C("",r," to "),new C("e ",r," "),new C("",r,'"'),new C("",r,"."),new C("",r,'">'),new C("",r,"\n"),new C("",o,""),new C("",r,"]"),new C("",r," for "),new C("",v,""),new C("",i,""),new C("",r," a "),new C("",r," that "),new C(" ",h,""),new C("",r,". "),new C(".",r,""),new C(" ",r,", "),new C("",_,""),new C("",r," with "),new C("",r,"'"),new C("",r," from "),new C("",r," by "),new C("",b,""),new C("",E,""),new C(" the ",r,""),new C("",l,""),new C("",r,". The "),new C("",f,""),new C("",r," on "),new C("",r," as "),new C("",r," is "),new C("",d,""),new C("",a,"ing "),new C("",r,"\n\t"),new C("",r,":"),new C(" ",r,". "),new C("",r,"ed "),new C("",x,""),new C("",w,""),new C("",u,""),new C("",r,"("),new C("",h,", "),new C("",p,""),new C("",r," at "),new C("",r,"ly "),new C(" the ",r," of "),new C("",c,""),new C("",m,""),new C(" ",h,", "),new C("",h,'"'),new C(".",r,"("),new C("",f," "),new C("",h,'">'),new C("",r,'="'),new C(" ",r,"."),new C(".com/",r,""),new C(" the ",r," of the "),new C("",h,"'"),new C("",r,". This "),new C("",r,","),new C(".",r," "),new C("",h,"("),new C("",h,"."),new C("",r," not "),new C(" ",r,'="'),new C("",r,"er "),new C(" ",f," "),new C("",r,"al "),new C(" ",f,""),new C("",r,"='"),new C("",f,'"'),new C("",h,". "),new C(" ",r,"("),new C("",r,"ful "),new C(" ",h,". "),new C("",r,"ive "),new C("",r,"less "),new C("",f,"'"),new C("",r,"est "),new C(" ",h,"."),new C("",f,'">'),new C(" ",r,"='"),new C("",h,","),new C("",r,"ize "),new C("",f,"."),new C("Â ",r,""),new C(" ",r,","),new C("",h,'="'),new C("",f,'="'),new C("",r,"ous "),new C("",f,", "),new C("",h,"='"),new C(" ",h,","),new C(" ",f,'="'),new C(" ",f,", "),new C("",f,","),new C("",f,"("),new C("",f,". "),new C(" ",f,"."),new C("",f,"='"),new C(" ",f,". "),new C(" ",h,'="'),new C(" ",f,"='"),new C(" ",h,"='")];function k(e,t){return e[t]<192?(e[t]>=97&&e[t]<=122&&(e[t]^=32),1):e[t]<224?(e[t+1]^=32,2):(e[t+2]^=5,3)}n.kTransforms=S,n.kNumTransforms=S.length,n.transformDictionaryWord=function(e,t,n,r,a){var i,o=S[a].prefix,l=S[a].suffix,c=S[a].transform,u=c<g?0:c-(g-1),d=0,p=t;u>r&&(u=r);for(var y=0;y<o.length;)e[t++]=o[y++];for(n+=u,r-=u,c<=m&&(r-=c),d=0;d<r;d++)e[t++]=s.dictionary[n+d];if(i=t-r,c===h)k(e,i);else if(c===f)for(;r>0;){var v=k(e,i);i+=v,r-=v}for(var _=0;_<l.length;)e[t++]=l[_++];return t-p}},{"./dictionary":6}],12:[function(e,t,n){t.exports=e("./dec/decode").BrotliDecompressBuffer},{"./dec/decode":3}]},{},[12])(12)},6411:function(e,t){var n,s,r;
/*!
autosize 4.0.4
license: MIT
http://www.jacklmoore.com/autosize
*/s=[e,t],n=function(e,t){"use strict";var n,s,r="function"==typeof Map?new Map:(n=[],s=[],{has:function(e){return n.indexOf(e)>-1},get:function(e){return s[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),s.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),s.splice(t,1))}}),a=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){a=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function i(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!r.has(e)){var t=null,n=null,s=null,i=function(){e.clientWidth!==n&&p()},o=function(t){window.removeEventListener("resize",i,!1),e.removeEventListener("input",p,!1),e.removeEventListener("keyup",p,!1),e.removeEventListener("autosize:destroy",o,!1),e.removeEventListener("autosize:update",p,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),r.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",o,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",p,!1),window.addEventListener("resize",i,!1),e.addEventListener("input",p,!1),e.addEventListener("autosize:update",p,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",r.set(e,{destroy:o,update:p}),l()}function l(){var n=window.getComputedStyle(e,null);"vertical"===n.resize?e.style.resize="none":"both"===n.resize&&(e.style.resize="horizontal"),t="content-box"===n.boxSizing?-(parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)):parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),isNaN(t)&&(t=0),p()}function c(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function u(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}function d(){if(0!==e.scrollHeight){var s=u(e),r=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+t+"px",n=e.clientWidth,s.forEach((function(e){e.node.scrollTop=e.scrollTop})),r&&(document.documentElement.scrollTop=r)}}function p(){d();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(r<t?"hidden"===n.overflowY&&(c("scroll"),d(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(c("hidden"),d(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),s!==r){s=r;var i=a("autosize:resized");try{e.dispatchEvent(i)}catch(e){}}}}function o(e){var t=r.get(e);t&&t.destroy()}function l(e){var t=r.get(e);t&&t.update()}var c=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((c=function(e){return e}).destroy=function(e){return e},c.update=function(e){return e}):((c=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return i(e,t)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],o),e},c.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],l),e}),t.default=c,e.exports=t.default},void 0===(r="function"==typeof n?n.apply(t,s):n)||(e.exports=r)},4403:function(e,t){var n;
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/!function(){"use strict";var s={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)){if(n.length){var i=r.apply(null,n);i&&e.push(i)}}else if("object"===a){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var o in n)s.call(n,o)&&n[o]&&e.push(o)}}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},4827:function(e){e.exports=function(e,t,n){return((n=window.getComputedStyle)?n(e):e.currentStyle)[t.replace(/-(\w)/gi,(function(e,t){return t.toUpperCase()}))]}},1919:function(e){"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)};var n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function s(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function r(e,t,n){return e.concat(t).map((function(e){return s(e,n)}))}function a(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function i(e,t){try{return t in e}catch(e){return!1}}function o(e,t,n){var r={};return n.isMergeableObject(e)&&a(e).forEach((function(t){r[t]=s(e[t],n)})),a(t).forEach((function(a){(function(e,t){return i(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,a)||(i(e,a)&&n.isMergeableObject(t[a])?r[a]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"==typeof n?n:l}(a,n)(e[a],t[a],n):r[a]=s(t[a],n))})),r}function l(e,n,a){(a=a||{}).arrayMerge=a.arrayMerge||r,a.isMergeableObject=a.isMergeableObject||t,a.cloneUnlessOtherwiseSpecified=s;var i=Array.isArray(n);return i===Array.isArray(e)?i?a.arrayMerge(e,n,a):o(e,n,a):s(n,a)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return l(e,n,t)}),{})};var c=l;e.exports=c},8981:function(e,t){var n,s,r;s=[],void 0===(r="function"==typeof(n=function(){return function e(t,n,s){var r,a,i=window,o="application/octet-stream",l=s||o,c=t,u=!n&&!s&&c,d=document.createElement("a"),p=function(e){return String(e)},m=i.Blob||i.MozBlob||i.WebKitBlob||p,h=n||"download";if(m=m.call?m.bind(i):Blob,"true"===String(this)&&(l=(c=[c,l])[0],c=c[1]),u&&u.length<2048&&(h=u.split("/").pop().split("?")[0],d.href=u,-1!==d.href.indexOf(u))){var f=new XMLHttpRequest;return f.open("GET",u,!0),f.responseType="blob",f.onload=function(t){e(t.target.response,h,o)},setTimeout((function(){f.send()}),0),f}if(/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(c)){if(!(c.length>2096103.424&&m!==p))return navigator.msSaveBlob?navigator.msSaveBlob(_(c),h):b(c);l=(c=_(c)).type||o}else if(/([\x80-\xff])/.test(c)){for(var g=0,y=new Uint8Array(c.length),v=y.length;g<v;++g)y[g]=c.charCodeAt(g);c=new m([y],{type:l})}function _(e){for(var t=e.split(/[:;,]/),n=t[1],s=("base64"==t[2]?atob:decodeURIComponent)(t.pop()),r=s.length,a=0,i=new Uint8Array(r);a<r;++a)i[a]=s.charCodeAt(a);return new m([i],{type:n})}function b(e,t){if("download"in d)return d.href=e,d.setAttribute("download",h),d.className="download-js-link",d.innerHTML="downloading...",d.style.display="none",document.body.appendChild(d),setTimeout((function(){d.click(),document.body.removeChild(d),!0===t&&setTimeout((function(){i.URL.revokeObjectURL(d.href)}),250)}),66),!0;if(/(Version)\/(\d+)\.(\d+)(?:\.(\d+))?.*Safari\//.test(navigator.userAgent))return/^data:/.test(e)&&(e="data:"+e.replace(/^data:([\w\/\-\+]+)/,o)),window.open(e)||confirm("Displaying New Document\n\nUse Save As... to download, then click back to return to this page.")&&(location.href=e),!0;var n=document.createElement("iframe");document.body.appendChild(n),!t&&/^data:/.test(e)&&(e="data:"+e.replace(/^data:([\w\/\-\+]+)/,o)),n.src=e,setTimeout((function(){document.body.removeChild(n)}),333)}if(r=c instanceof m?c:new m([c],{type:l}),navigator.msSaveBlob)return navigator.msSaveBlob(r,h);if(i.URL)b(i.URL.createObjectURL(r),!0);else{if("string"==typeof r||r.constructor===p)try{return b("data:"+l+";base64,"+i.btoa(r))}catch(e){return b("data:"+l+","+encodeURIComponent(r))}(a=new FileReader).onload=function(e){b(this.result)},a.readAsDataURL(r)}return!0}})?n.apply(t,s):n)||(e.exports=r)},9894:function(e,t,n){var s=n(4827);e.exports=function(e){var t=s(e,"line-height"),n=parseFloat(t,10);if(t===n+""){var r=e.style.lineHeight;e.style.lineHeight=t+"em",t=s(e,"line-height"),n=parseFloat(t,10),r?e.style.lineHeight=r:delete e.style.lineHeight}if(-1!==t.indexOf("pt")?(n*=4,n/=3):-1!==t.indexOf("mm")?(n*=96,n/=25.4):-1!==t.indexOf("cm")?(n*=96,n/=2.54):-1!==t.indexOf("in")?n*=96:-1!==t.indexOf("pc")&&(n*=16),n=Math.round(n),"normal"===t){var a=e.nodeName,i=document.createElement(a);i.innerHTML=" ","TEXTAREA"===a.toUpperCase()&&i.setAttribute("rows","1");var o=s(e,"font-size");i.style.fontSize=o,i.style.padding="0px",i.style.border="0px";var l=document.body;l.appendChild(i),n=i.offsetHeight,l.removeChild(i)}return n}},5372:function(e,t,n){"use strict";var s=n(9567);function r(){}function a(){}a.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,a,i){if(i!==s){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:r};return n.PropTypes=n,n}},2652:function(e,t,n){e.exports=n(5372)()},9567:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5438:function(e,t,n){"use strict";var s,r=this&&this.__extends||(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i=this&&this.__rest||function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(s=Object.getOwnPropertySymbols(e);r<s.length;r++)t.indexOf(s[r])<0&&(n[s[r]]=e[s[r]])}return n};t.__esModule=!0;var o=n(9196),l=n(2652),c=n(6411),u=n(9894),d="autosize:resized",p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={lineHeight:null},t.textarea=null,t.onResize=function(e){t.props.onResize&&t.props.onResize(e)},t.updateLineHeight=function(){t.textarea&&t.setState({lineHeight:u(t.textarea)})},t.onChange=function(e){var n=t.props.onChange;t.currentValue=e.currentTarget.value,n&&n(e)},t}return r(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.maxRows,s=t.async;"number"==typeof n&&this.updateLineHeight(),"number"==typeof n||s?setTimeout((function(){return e.textarea&&c(e.textarea)})):this.textarea&&c(this.textarea),this.textarea&&this.textarea.addEventListener(d,this.onResize)},t.prototype.componentWillUnmount=function(){this.textarea&&(this.textarea.removeEventListener(d,this.onResize),c.destroy(this.textarea))},t.prototype.render=function(){var e=this,t=this.props,n=(t.onResize,t.maxRows),s=(t.onChange,t.style),r=(t.innerRef,t.children),l=i(t,["onResize","maxRows","onChange","style","innerRef","children"]),c=this.state.lineHeight,u=n&&c?c*n:null;return o.createElement("textarea",a({},l,{onChange:this.onChange,style:u?a({},s,{maxHeight:u}):s,ref:function(t){e.textarea=t,"function"==typeof e.props.innerRef?e.props.innerRef(t):e.props.innerRef&&(e.props.innerRef.current=t)}}),r)},t.prototype.componentDidUpdate=function(){this.textarea&&c.update(this.textarea)},t.defaultProps={rows:1,async:!1},t.propTypes={rows:l.number,maxRows:l.number,onResize:l.func,innerRef:l.any,async:l.bool},t}(o.Component);t.TextareaAutosize=o.forwardRef((function(e,t){return o.createElement(p,a({},e,{innerRef:t}))}))},773:function(e,t,n){"use strict";var s=n(5438);t.Z=s.TextareaAutosize},4793:function(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("|"),s=new RegExp(n,"g"),r=new RegExp(n,"");function a(e){return t[e]}var i=function(e){return e.replace(s,a)};e.exports=i,e.exports.has=function(e){return!!e.match(r)},e.exports.remove=i},9196:function(e){"use strict";e.exports=window.React}},t={};function n(s){var r=t[s];if(void 0!==r)return r.exports;var a=t[s]={exports:{}};return e[s].call(a.exports,a,a.exports,n),a.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var s in t)n.o(t,s)&&!n.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};!function(){"use strict";n.r(s),n.d(s,{PluginMoreMenuItem:function(){return $y},PluginSidebar:function(){return Jy},PluginSidebarMoreMenuItem:function(){return Qy},PluginTemplateSettingPanel:function(){return bh},initializeEditor:function(){return ev},reinitializeEditor:function(){return tv},store:function(){return os}});var e={};n.r(e),n.d(e,{closeModal:function(){return D},disableComplementaryArea:function(){return O},enableComplementaryArea:function(){return N},openModal:function(){return L},pinItem:function(){return I},setDefaultComplementaryArea:function(){return P},setFeatureDefaults:function(){return B},setFeatureValue:function(){return R},toggleFeature:function(){return A},unpinItem:function(){return M}});var t={};n.r(t),n.d(t,{getActiveComplementaryArea:function(){return F},isComplementaryAreaLoading:function(){return V},isFeatureActive:function(){return G},isItemPinned:function(){return z},isModalActive:function(){return H}});var r={};n.r(r),n.d(r,{__experimentalSetPreviewDeviceType:function(){return nn},addTemplate:function(){return rn},closeGeneralSidebar:function(){return wn},openGeneralSidebar:function(){return En},openNavigationPanelToMenu:function(){return hn},removeTemplate:function(){return an},revertTemplate:function(){return bn},setEditedEntity:function(){return cn},setEditedPostContext:function(){return dn},setHasPageContentFocus:function(){return Cn},setHomeTemplateId:function(){return un},setIsInserterOpened:function(){return gn},setIsListViewOpened:function(){return vn},setIsNavigationPanelOpened:function(){return fn},setIsSaveViewOpened:function(){return _n},setNavigationMenu:function(){return ln},setNavigationPanelActiveMenu:function(){return mn},setPage:function(){return pn},setTemplate:function(){return sn},setTemplatePart:function(){return on},switchEditorMode:function(){return xn},toggleDistractionFree:function(){return Sn},toggleFeature:function(){return tn},updateSettings:function(){return yn}});var a={};n.r(a),n.d(a,{setCanvasMode:function(){return kn},setEditorCanvasContainerView:function(){return Tn},setPageContentFocusType:function(){return Pn}});var i={};n.r(i),n.d(i,{__experimentalGetInsertionPoint:function(){return Yn},__experimentalGetPreviewDeviceType:function(){return Dn},__unstableGetPreference:function(){return Bn},getCanUserCreateMedia:function(){return Fn},getCurrentTemplateNavigationPanelSubMenu:function(){return Qn},getCurrentTemplateTemplateParts:function(){return Kn},getEditedPostContext:function(){return Wn},getEditedPostId:function(){return Un},getEditedPostType:function(){return Hn},getEditorMode:function(){return Jn},getHomeTemplateId:function(){return Gn},getNavigationPanelActiveMenu:function(){return $n},getPage:function(){return jn},getReusableBlocks:function(){return Vn},getSettings:function(){return zn},hasPageContentFocus:function(){return ns},isFeatureActive:function(){return Ln},isInserterOpened:function(){return qn},isListViewOpened:function(){return Zn},isNavigationOpened:function(){return es},isPage:function(){return ts},isSaveViewOpened:function(){return Xn}});var o={};n.r(o),n.d(o,{getCanvasMode:function(){return ss},getEditorCanvasContainerView:function(){return rs},getPageContentFocusType:function(){return as}});var l=window.wp.element,c=window.wp.blocks,u=window.wp.blockLibrary,d=window.wp.data,m=window.wp.deprecated,h=n.n(m),f=window.wp.coreData,g=window.wp.editor,y=n(4403),v=n.n(y),_=window.wp.components,b=window.wp.i18n,E=window.wp.primitives;var w=(0,l.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(E.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));var x=(0,l.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(E.Path,{d:"M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z"}));var C=(0,l.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(E.Path,{fillRule:"evenodd",d:"M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z",clipRule:"evenodd"})),S=window.wp.viewport;var k=(0,l.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(E.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})),T=window.wp.preferences;const P=(e,t)=>({type:"SET_DEFAULT_COMPLEMENTARY_AREA",scope:e,area:t}),N=(e,t)=>({registry:n,dispatch:s})=>{if(!t)return;n.select(T.store).get(e,"isComplementaryAreaVisible")||n.dispatch(T.store).set(e,"isComplementaryAreaVisible",!0),s({type:"ENABLE_COMPLEMENTARY_AREA",scope:e,area:t})},O=e=>({registry:t})=>{t.select(T.store).get(e,"isComplementaryAreaVisible")&&t.dispatch(T.store).set(e,"isComplementaryAreaVisible",!1)},I=(e,t)=>({registry:n})=>{if(!t)return;const s=n.select(T.store).get(e,"pinnedItems");!0!==s?.[t]&&n.dispatch(T.store).set(e,"pinnedItems",{...s,[t]:!0})},M=(e,t)=>({registry:n})=>{if(!t)return;const s=n.select(T.store).get(e,"pinnedItems");n.dispatch(T.store).set(e,"pinnedItems",{...s,[t]:!1})};function A(e,t){return function({registry:n}){h()("dispatch( 'core/interface' ).toggleFeature",{since:"6.0",alternative:"dispatch( 'core/preferences' ).toggle"}),n.dispatch(T.store).toggle(e,t)}}function R(e,t,n){return function({registry:s}){h()("dispatch( 'core/interface' ).setFeatureValue",{since:"6.0",alternative:"dispatch( 'core/preferences' ).set"}),s.dispatch(T.store).set(e,t,!!n)}}function B(e,t){return function({registry:n}){h()("dispatch( 'core/interface' ).setFeatureDefaults",{since:"6.0",alternative:"dispatch( 'core/preferences' ).setDefaults"}),n.dispatch(T.store).setDefaults(e,t)}}function L(e){return{type:"OPEN_MODAL",name:e}}function D(){return{type:"CLOSE_MODAL"}}const F=(0,d.createRegistrySelector)((e=>(t,n)=>{const s=e(T.store).get(n,"isComplementaryAreaVisible");if(void 0!==s)return!1===s?null:t?.complementaryAreas?.[n]})),V=(0,d.createRegistrySelector)((e=>(t,n)=>{const s=e(T.store).get(n,"isComplementaryAreaVisible"),r=t?.complementaryAreas?.[n];return s&&void 0===r})),z=(0,d.createRegistrySelector)((e=>(t,n,s)=>{var r;const a=e(T.store).get(n,"pinnedItems");return null===(r=a?.[s])||void 0===r||r})),G=(0,d.createRegistrySelector)((e=>(t,n,s)=>(h()("select( 'core/interface' ).isFeatureActive( scope, featureName )",{since:"6.0",alternative:"select( 'core/preferences' ).get( scope, featureName )"}),!!e(T.store).get(n,s))));function H(e,t){return e.activeModal===t}var U=(0,d.combineReducers)({complementaryAreas:function(e={},t){switch(t.type){case"SET_DEFAULT_COMPLEMENTARY_AREA":{const{scope:n,area:s}=t;return e[n]?e:{...e,[n]:s}}case"ENABLE_COMPLEMENTARY_AREA":{const{scope:n,area:s}=t;return{...e,[n]:s}}}return e},activeModal:function(e=null,t){switch(t.type){case"OPEN_MODAL":return t.name;case"CLOSE_MODAL":return null}return e}});const W=(0,d.createReduxStore)("core/interface",{reducer:U,actions:e,selectors:t});(0,d.register)(W);var j=window.wp.plugins,q=(0,j.withPluginContext)(((e,t)=>({icon:t.icon||e.icon,identifier:t.identifier||`${e.name}/${t.name}`})));var Y=q((function({as:e=_.Button,scope:t,identifier:n,icon:s,selectedIcon:r,name:a,...i}){const o=e,c=(0,d.useSelect)((e=>e(W).getActiveComplementaryArea(t)===n),[n,t]),{enableComplementaryArea:u,disableComplementaryArea:p}=(0,d.useDispatch)(W);return(0,l.createElement)(o,{icon:r&&c?r:s,"aria-controls":n.replace("/",":"),onClick:()=>{c?p(t):u(t,n)},...i})}));var Z=({smallScreenTitle:e,children:t,className:n,toggleButtonProps:s})=>{const r=(0,l.createElement)(Y,{icon:k,...s});return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"components-panel__header interface-complementary-area-header__small"},e&&(0,l.createElement)("span",{className:"interface-complementary-area-header__small-title"},e),r),(0,l.createElement)("div",{className:v()("components-panel__header","interface-complementary-area-header",n),tabIndex:-1},t,r))};const X=()=>{};function K({name:e,as:t=_.Button,onClick:n,...s}){return(0,l.createElement)(_.Fill,{name:e},(({onClick:e})=>(0,l.createElement)(t,{onClick:n||e?(...t)=>{(n||X)(...t),(e||X)(...t)}:void 0,...s})))}K.Slot=function({name:e,as:t=_.ButtonGroup,fillProps:n={},bubblesVirtually:s,...r}){return(0,l.createElement)(_.Slot,{name:e,bubblesVirtually:s,fillProps:n},(e=>{if(!l.Children.toArray(e).length)return null;const n=[];l.Children.forEach(e,(({props:{__unstableExplicitMenuItem:e,__unstableTarget:t}})=>{t&&e&&n.push(t)}));const s=l.Children.map(e,(e=>!e.props.__unstableExplicitMenuItem&&n.includes(e.props.__unstableTarget)?null:e));return(0,l.createElement)(t,{...r},s)}))};var J=K;const Q=({__unstableExplicitMenuItem:e,__unstableTarget:t,...n})=>(0,l.createElement)(_.MenuItem,{...n});function $({scope:e,target:t,__unstableExplicitMenuItem:n,...s}){return(0,l.createElement)(Y,{as:s=>(0,l.createElement)(J,{__unstableExplicitMenuItem:n,__unstableTarget:`${e}/${t}`,as:Q,name:`${e}/plugin-more-menu`,...s}),role:"menuitemcheckbox",selectedIcon:w,name:t,scope:e,...s})}function ee({scope:e,...t}){return(0,l.createElement)(_.Fill,{name:`PinnedItems/${e}`,...t})}ee.Slot=function({scope:e,className:t,...n}){return(0,l.createElement)(_.Slot,{name:`PinnedItems/${e}`,...n},(e=>e?.length>0&&(0,l.createElement)("div",{className:v()(t,"interface-pinned-items")},e)))};var te=ee;function ne({scope:e,children:t,className:n,id:s}){return(0,l.createElement)(_.Fill,{name:`ComplementaryArea/${e}`},(0,l.createElement)("div",{id:s,className:n},t))}const se=q((function({children:e,className:t,closeLabel:n=(0,b.__)("Close plugin"),identifier:s,header:r,headerClassName:a,icon:i,isPinnable:o=!0,panelClassName:c,scope:u,name:p,smallScreenTitle:m,title:h,toggleShortcut:f,isActiveByDefault:g,showIconLabels:y=!1}){const{isLoading:E,isActive:k,isPinned:T,activeArea:P,isSmall:N,isLarge:O}=(0,d.useSelect)((e=>{const{getActiveComplementaryArea:t,isComplementaryAreaLoading:n,isItemPinned:r}=e(W),a=t(u);return{isLoading:n(u),isActive:a===s,isPinned:r(u,s),activeArea:a,isSmall:e(S.store).isViewportMatch("< medium"),isLarge:e(S.store).isViewportMatch("large")}}),[s,u]);!function(e,t,n,s,r){const a=(0,l.useRef)(!1),i=(0,l.useRef)(!1),{enableComplementaryArea:o,disableComplementaryArea:c}=(0,d.useDispatch)(W);(0,l.useEffect)((()=>{s&&r&&!a.current?(c(e),i.current=!0):i.current&&!r&&a.current?(i.current=!1,o(e,t)):i.current&&n&&n!==t&&(i.current=!1),r!==a.current&&(a.current=r)}),[s,r,e,t,n,c,o])}(u,s,P,k,N);const{enableComplementaryArea:I,disableComplementaryArea:M,pinItem:A,unpinItem:R}=(0,d.useDispatch)(W);return(0,l.useEffect)((()=>{g&&void 0===P&&!N?I(u,s):void 0===P&&N&&M(u,s)}),[P,g,u,s,N,I,M]),(0,l.createElement)(l.Fragment,null,o&&(0,l.createElement)(te,{scope:u},T&&(0,l.createElement)(Y,{scope:u,identifier:s,isPressed:k&&(!y||O),"aria-expanded":k,"aria-disabled":E,label:h,icon:y?w:i,showTooltip:!y,variant:y?"tertiary":void 0})),p&&o&&(0,l.createElement)($,{target:p,scope:u,icon:i},h),k&&(0,l.createElement)(ne,{className:v()("interface-complementary-area",t),scope:u,id:s.replace("/",":")},(0,l.createElement)(Z,{className:a,closeLabel:n,onClose:()=>M(u),smallScreenTitle:m,toggleButtonProps:{label:n,shortcut:f,scope:u,identifier:s}},r||(0,l.createElement)(l.Fragment,null,(0,l.createElement)("strong",null,h),o&&(0,l.createElement)(_.Button,{className:"interface-complementary-area__pin-unpin-item",icon:T?x:C,label:T?(0,b.__)("Unpin from toolbar"):(0,b.__)("Pin to toolbar"),onClick:()=>(T?R:A)(u,s),isPressed:T,"aria-expanded":T}))),(0,l.createElement)(_.Panel,{className:c},e)))}));se.Slot=function({scope:e,...t}){return(0,l.createElement)(_.Slot,{name:`ComplementaryArea/${e}`,...t})};var re=se,ae=window.wp.compose;function ie({children:e,className:t,ariaLabel:n,as:s="div",...r}){return(0,l.createElement)(s,{className:v()("interface-navigable-region",t),"aria-label":n,role:"region",tabIndex:"-1",...r},e)}const oe={hidden:{opacity:0},hover:{opacity:1,transition:{type:"tween",delay:.2,delayChildren:.2}},distractionFreeInactive:{opacity:1,transition:{delay:0}}};var le=(0,l.forwardRef)((function({isDistractionFree:e,footer:t,header:n,editorNotices:s,sidebar:r,secondarySidebar:a,notices:i,content:o,contentProps:c,actions:u,labels:d,className:p,enableRegionNavigation:m=!0,shortcuts:h},f){const g=(0,_.__unstableUseNavigateRegions)(h);!function(e){(0,l.useEffect)((()=>{const t=document&&document.querySelector(`html:not(.${e})`);if(t)return t.classList.toggle(e),()=>{t.classList.toggle(e)}}),[e])}("interface-interface-skeleton__html-container");const y={...{header:(0,b.__)("Header"),body:(0,b.__)("Content"),secondarySidebar:(0,b.__)("Block Library"),sidebar:(0,b.__)("Settings"),actions:(0,b.__)("Publish"),footer:(0,b.__)("Footer")},...d};return(0,l.createElement)("div",{...m?g:{},ref:(0,ae.useMergeRefs)([f,m?g.ref:void 0]),className:v()(p,"interface-interface-skeleton",g.className,!!t&&"has-footer")},(0,l.createElement)("div",{className:"interface-interface-skeleton__editor"},!!n&&(0,l.createElement)(ie,{as:_.__unstableMotion.div,className:"interface-interface-skeleton__header","aria-label":y.header,initial:e?"hidden":"distractionFreeInactive",whileHover:e?"hover":"distractionFreeInactive",animate:e?"hidden":"distractionFreeInactive",variants:oe,transition:e?{type:"tween",delay:.8}:void 0},n),e&&(0,l.createElement)("div",{className:"interface-interface-skeleton__header"},s),(0,l.createElement)("div",{className:"interface-interface-skeleton__body"},!!a&&(0,l.createElement)(ie,{className:"interface-interface-skeleton__secondary-sidebar",ariaLabel:y.secondarySidebar},a),!!i&&(0,l.createElement)("div",{className:"interface-interface-skeleton__notices"},i),(0,l.createElement)(ie,{className:"interface-interface-skeleton__content",ariaLabel:y.body,...c},o),!!r&&(0,l.createElement)(ie,{className:"interface-interface-skeleton__sidebar",ariaLabel:y.sidebar},r),!!u&&(0,l.createElement)(ie,{className:"interface-interface-skeleton__actions",ariaLabel:y.actions},u))),!!t&&(0,l.createElement)(ie,{className:"interface-interface-skeleton__footer",ariaLabel:y.footer},t))}));var ce=(0,l.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(E.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));function ue({as:e=_.DropdownMenu,className:t,label:n=(0,b.__)("Options"),popoverProps:s,toggleProps:r,children:a}){return(0,l.createElement)(e,{className:v()("interface-more-menu-dropdown",t),icon:ce,label:n,popoverProps:{placement:"bottom-end",...s,className:v()("interface-more-menu-dropdown__content",s?.className)},toggleProps:{tooltipPosition:"bottom",...r}},(e=>a(e)))}function de({closeModal:e,children:t}){return(0,l.createElement)(_.Modal,{className:"interface-preferences-modal",title:(0,b.__)("Preferences"),onRequestClose:e},t)}var pe=(0,l.forwardRef)((function({icon:e,size:t=24,...n},s){return(0,l.cloneElement)(e,{width:t,height:t,...n,ref:s})}));var me=(0,l.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(E.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));var he=(0,l.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(E.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));const fe="preferences-menu";function ge({sections:e}){const t=(0,ae.useViewportMatch)("medium"),[n,s]=(0,l.useState)(fe),{tabs:r,sectionsContentMap:a}=(0,l.useMemo)((()=>{let t={tabs:[],sectionsContentMap:{}};return e.length&&(t=e.reduce(((e,{name:t,tabLabel:n,content:s})=>(e.tabs.push({name:t,title:n}),e.sectionsContentMap[t]=s,e)),{tabs:[],sectionsContentMap:{}})),t}),[e]),i=(0,l.useCallback)((e=>a[e.name]||null),[a]);let o;return o=t?(0,l.createElement)(_.TabPanel,{className:"interface-preferences__tabs",tabs:r,initialTabName:n!==fe?n:void 0,onSelect:s,orientation:"vertical"},i):(0,l.createElement)(_.__experimentalNavigatorProvider,{initialPath:"/",className:"interface-preferences__provider"},(0,l.createElement)(_.__experimentalNavigatorScreen,{path:"/"},(0,l.createElement)(_.Card,{isBorderless:!0,size:"small"},(0,l.createElement)(_.CardBody,null,(0,l.createElement)(_.__experimentalItemGroup,null,r.map((e=>(0,l.createElement)(_.__experimentalNavigatorButton,{key:e.name,path:e.name,as:_.__experimentalItem,isAction:!0},(0,l.createElement)(_.__experimentalHStack,{justify:"space-between"},(0,l.createElement)(_.FlexItem,null,(0,l.createElement)(_.__experimentalTruncate,null,e.title)),(0,l.createElement)(_.FlexItem,null,(0,l.createElement)(pe,{icon:(0,b.isRTL)()?me:he})))))))))),e.length&&e.map((e=>(0,l.createElement)(_.__experimentalNavigatorScreen,{key:`${e.name}-menu`,path:e.name},(0,l.createElement)(_.Card,{isBorderless:!0,size:"large"},(0,l.createElement)(_.CardHeader,{isBorderless:!1,justify:"left",size:"small",gap:"6"},(0,l.createElement)(_.__experimentalNavigatorBackButton,{icon:(0,b.isRTL)()?he:me,"aria-label":(0,b.__)("Navigate to the previous view")}),(0,l.createElement)(_.__experimentalText,{size:"16"},e.tabLabel)),(0,l.createElement)(_.CardBody,null,e.content)))))),o}var ye=({description:e,title:t,children:n})=>(0,l.createElement)("fieldset",{className:"interface-preferences-modal__section"},(0,l.createElement)("legend",{className:"interface-preferences-modal__section-legend"},(0,l.createElement)("h2",{className:"interface-preferences-modal__section-title"},t),e&&(0,l.createElement)("p",{className:"interface-preferences-modal__section-description"},e)),n);var ve=function({help:e,label:t,isChecked:n,onChange:s,children:r}){return(0,l.createElement)("div",{className:"interface-preferences-modal__option"},(0,l.createElement)(_.ToggleControl,{__nextHasNoMarginBottom:!0,help:e,label:t,checked:n,onChange:s}),r)},_e=window.wp.widgets,be=window.wp.hooks,Ee=window.wp.mediaUtils;(0,be.addFilter)("editor.MediaUpload","core/edit-site/components/media-upload",(()=>Ee.MediaUpload));var we=window.wp.blockEditor,xe=window.wp.notices,Ce={grad:.9,turn:360,rad:360/(2*Math.PI)},Se=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},ke=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},Te=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},Pe=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Ne=function(e){return{r:Te(e.r,0,255),g:Te(e.g,0,255),b:Te(e.b,0,255),a:Te(e.a)}},Oe=function(e){return{r:ke(e.r),g:ke(e.g),b:ke(e.b),a:ke(e.a,3)}},Ie=/^#([0-9a-f]{3,8})$/i,Me=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Ae=function(e){var t=e.r,n=e.g,s=e.b,r=e.a,a=Math.max(t,n,s),i=a-Math.min(t,n,s),o=i?a===t?(n-s)/i:a===n?2+(s-t)/i:4+(t-n)/i:0;return{h:60*(o<0?o+6:o),s:a?i/a*100:0,v:a/255*100,a:r}},Re=function(e){var t=e.h,n=e.s,s=e.v,r=e.a;t=t/360*6,n/=100,s/=100;var a=Math.floor(t),i=s*(1-n),o=s*(1-(t-a)*n),l=s*(1-(1-t+a)*n),c=a%6;return{r:255*[s,o,i,i,l,s][c],g:255*[l,s,s,o,i,i][c],b:255*[i,i,l,s,s,o][c],a:r}},Be=function(e){return{h:Pe(e.h),s:Te(e.s,0,100),l:Te(e.l,0,100),a:Te(e.a)}},Le=function(e){return{h:ke(e.h),s:ke(e.s),l:ke(e.l),a:ke(e.a,3)}},De=function(e){return Re((n=(t=e).s,{h:t.h,s:(n*=((s=t.l)<50?s:100-s)/100)>0?2*n/(s+n)*100:0,v:s+n,a:t.a}));var t,n,s},Fe=function(e){return{h:(t=Ae(e)).h,s:(r=(200-(n=t.s))*(s=t.v)/100)>0&&r<200?n*s/100/(r<=100?r:200-r)*100:0,l:r/2,a:t.a};var t,n,s,r},Ve=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ze=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ge=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,He=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ue={string:[[function(e){var t=Ie.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?ke(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?ke(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=Ge.exec(e)||He.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Ne({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=Ve.exec(e)||ze.exec(e);if(!t)return null;var n,s,r=Be({h:(n=t[1],s=t[2],void 0===s&&(s="deg"),Number(n)*(Ce[s]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return De(r)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,s=e.b,r=e.a,a=void 0===r?1:r;return Se(t)&&Se(n)&&Se(s)?Ne({r:Number(t),g:Number(n),b:Number(s),a:Number(a)}):null},"rgb"],[function(e){var t=e.h,n=e.s,s=e.l,r=e.a,a=void 0===r?1:r;if(!Se(t)||!Se(n)||!Se(s))return null;var i=Be({h:Number(t),s:Number(n),l:Number(s),a:Number(a)});return De(i)},"hsl"],[function(e){var t=e.h,n=e.s,s=e.v,r=e.a,a=void 0===r?1:r;if(!Se(t)||!Se(n)||!Se(s))return null;var i=function(e){return{h:Pe(e.h),s:Te(e.s,0,100),v:Te(e.v,0,100),a:Te(e.a)}}({h:Number(t),s:Number(n),v:Number(s),a:Number(a)});return Re(i)},"hsv"]]},We=function(e,t){for(var n=0;n<t.length;n++){var s=t[n][0](e);if(s)return[s,t[n][1]]}return[null,void 0]},je=function(e){return"string"==typeof e?We(e.trim(),Ue.string):"object"==typeof e&&null!==e?We(e,Ue.object):[null,void 0]},qe=function(e,t){var n=Fe(e);return{h:n.h,s:Te(n.s+100*t,0,100),l:n.l,a:n.a}},Ye=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},Ze=function(e,t){var n=Fe(e);return{h:n.h,s:n.s,l:Te(n.l+100*t,0,100),a:n.a}},Xe=function(){function e(e){this.parsed=je(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 ke(Ye(this.rgba),2)},e.prototype.isDark=function(){return Ye(this.rgba)<.5},e.prototype.isLight=function(){return Ye(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=Oe(this.rgba)).r,n=e.g,s=e.b,a=(r=e.a)<1?Me(ke(255*r)):"","#"+Me(t)+Me(n)+Me(s)+a;var e,t,n,s,r,a},e.prototype.toRgb=function(){return Oe(this.rgba)},e.prototype.toRgbString=function(){return t=(e=Oe(this.rgba)).r,n=e.g,s=e.b,(r=e.a)<1?"rgba("+t+", "+n+", "+s+", "+r+")":"rgb("+t+", "+n+", "+s+")";var e,t,n,s,r},e.prototype.toHsl=function(){return Le(Fe(this.rgba))},e.prototype.toHslString=function(){return t=(e=Le(Fe(this.rgba))).h,n=e.s,s=e.l,(r=e.a)<1?"hsla("+t+", "+n+"%, "+s+"%, "+r+")":"hsl("+t+", "+n+"%, "+s+"%)";var e,t,n,s,r},e.prototype.toHsv=function(){return e=Ae(this.rgba),{h:ke(e.h),s:ke(e.s),v:ke(e.v),a:ke(e.a,3)};var e},e.prototype.invert=function(){return Ke({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),Ke(qe(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),Ke(qe(this.rgba,-e))},e.prototype.grayscale=function(){return Ke(qe(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),Ke(Ze(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),Ke(Ze(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?Ke({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):ke(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=Fe(this.rgba);return"number"==typeof e?Ke({h:e,s:t.s,l:t.l,a:t.a}):ke(t.h)},e.prototype.isEqual=function(e){return this.toHex()===Ke(e).toHex()},e}(),Ke=function(e){return e instanceof Xe?e:new Xe(e)},Je=[],Qe=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},$e=function(e){return.2126*Qe(e.r)+.7152*Qe(e.g)+.0722*Qe(e.b)};var et=window.wp.privateApis;const{lock:tt,unlock:nt}=(0,et.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.","@wordpress/edit-site"),{useGlobalSetting:st,useGlobalStyle:rt}=nt(we.privateApis);function at(){const[e="black"]=rt("color.text"),[t="white"]=rt("color.background"),[n=e]=rt("elements.h1.color.text"),[s]=st("color.palette.core"),[r]=st("color.palette.theme"),[a]=st("color.palette.custom"),i=(null!=r?r:[]).concat(null!=a?a:[]).concat(null!=s?s:[]),o=i.filter((({color:e})=>e!==t&&e!==n)).slice(0,2);return{paletteColors:i,highlightedColors:o}}!function(e){e.forEach((function(e){Je.indexOf(e)<0&&(e(Xe,Ue),Je.push(e))}))}([function(e){e.prototype.luminance=function(){return e=$e(this.rgba),void 0===(t=2)&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0;var e,t,n},e.prototype.contrast=function(t){void 0===t&&(t="#FFF");var n,s,r,a,i,o,l,c=t instanceof e?t:new e(t);return a=this.rgba,i=c.toRgb(),n=(o=$e(a))>(l=$e(i))?(o+.05)/(l+.05):(l+.05)/(o+.05),void 0===(s=2)&&(s=0),void 0===r&&(r=Math.pow(10,s)),Math.floor(r*n)/r+0},e.prototype.isReadable=function(e,t){return void 0===e&&(e="#FFF"),void 0===t&&(t={}),this.contrast(e)>=(i=void 0===(a=(n=t).size)?"normal":a,"AAA"===(r=void 0===(s=n.level)?"AA":s)&&"normal"===i?7:"AA"===r&&"large"===i?3:4.5);var n,s,r,a,i}}]);const{cleanEmptyObject:it,GlobalStylesContext:ot}=nt(we.privateApis),lt={...c.__EXPERIMENTAL_STYLE_PROPERTY,blockGap:{value:["spacing","blockGap"]}},ct={"border.color":"color","color.background":"color","color.text":"color","elements.link.color.text":"color","elements.link.:hover.color.text":"color","elements.link.typography.fontFamily":"font-family","elements.link.typography.fontSize":"font-size","elements.button.color.text":"color","elements.button.color.background":"color","elements.button.typography.fontFamily":"font-family","elements.button.typography.fontSize":"font-size","elements.caption.color.text":"color","elements.heading.color":"color","elements.heading.color.background":"color","elements.heading.typography.fontFamily":"font-family","elements.heading.gradient":"gradient","elements.heading.color.gradient":"gradient","elements.h1.color":"color","elements.h1.color.background":"color","elements.h1.typography.fontFamily":"font-family","elements.h1.color.gradient":"gradient","elements.h2.color":"color","elements.h2.color.background":"color","elements.h2.typography.fontFamily":"font-family","elements.h2.color.gradient":"gradient","elements.h3.color":"color","elements.h3.color.background":"color","elements.h3.typography.fontFamily":"font-family","elements.h3.color.gradient":"gradient","elements.h4.color":"color","elements.h4.color.background":"color","elements.h4.typography.fontFamily":"font-family","elements.h4.color.gradient":"gradient","elements.h5.color":"color","elements.h5.color.background":"color","elements.h5.typography.fontFamily":"font-family","elements.h5.color.gradient":"gradient","elements.h6.color":"color","elements.h6.color.background":"color","elements.h6.typography.fontFamily":"font-family","elements.h6.color.gradient":"gradient","color.gradient":"gradient",blockGap:"spacing","typography.fontSize":"font-size","typography.fontFamily":"font-family"},ut={"border.color":"borderColor","color.background":"backgroundColor","color.text":"textColor","color.gradient":"gradient","typography.fontSize":"fontSize","typography.fontFamily":"fontFamily"},dt=["border","color","spacing","typography"],pt=(e,t)=>{let n=e;return t.forEach((e=>{n=n?.[e]})),n},mt=["borderColor","borderWidth","borderStyle"],ht=["top","right","bottom","left"];function ft(e,t,n){if(!t?.[e]||n?.[e]?.style)return[];const{color:s,style:r,width:a}=t[e];return!(s||a)||r?[]:[{path:["border",e,"style"],value:"solid"}]}function gt(e,t,n){const s=function(e,t){const{supportedPanels:n}=(0,d.useSelect)((n=>({supportedPanels:nt(n(c.store)).getSupportedStyles(e,t)})),[e,t]);return n}(e),r=n?.styles?.blocks?.[e];return(0,l.useMemo)((()=>{const e=s.flatMap((e=>{if(!lt[e])return[];const{value:n}=lt[e],s=n.join("."),r=t[ut[s]],a=r?`var:preset|${ct[s]}|${r}`:pt(t.style,n);if("linkColor"===e){const e=a?[{path:n,value:a}]:[],s=["elements","link",":hover","color","text"],r=pt(t.style,s);return r&&e.push({path:s,value:r}),e}if(mt.includes(e)&&a){const e=[{path:n,value:a}];return ht.forEach((t=>{const s=[...n];s.splice(-1,0,t),e.push({path:s,value:a})})),e}return a?[{path:n,value:a}]:[]}));return function(e,t,n){if(!e&&!t)return[];const s=[...ft("top",e,n),...ft("right",e,n),...ft("bottom",e,n),...ft("left",e,n)],{color:r,style:a,width:i}=e||{};return(t||r||i)&&!a&&ht.forEach((e=>{n?.[e]?.style||s.push({path:["border",e,"style"],value:"solid"})})),s}(t.style?.border,t.borderColor,r?.border).forEach((t=>e.push(t))),e}),[s,t,r])}function yt(e,t,n){return e&&"object"==typeof e?(t.reduce(((e,s,r)=>(void 0===e[s]&&(Number.isInteger(t[r+1])?e[s]=[]:e[s]={}),r===t.length-1&&(e[s]=n),e[s])),e),e):e}function vt(e){return e?JSON.parse(JSON.stringify(e)):{}}function _t({name:e,attributes:t,setAttributes:n}){const{user:s,setUserConfig:r}=(0,l.useContext)(ot),a=gt(e,t,s),{__unstableMarkNextChangeAsNotPersistent:i}=(0,d.useDispatch)(we.store),{createSuccessNotice:o}=(0,d.useDispatch)(xe.store),u=(0,l.useCallback)((()=>{if(0!==a.length&&a.length>0){const{style:l}=t,u=vt(l),d=vt(s);for(const{path:t,value:n}of a)yt(u,t,void 0),yt(d,["styles","blocks",e,...t],n);const p={borderColor:void 0,backgroundColor:void 0,textColor:void 0,gradient:void 0,fontSize:void 0,fontFamily:void 0,style:it(u)};i(),n(p),r((()=>d),{undoIgnore:!0}),o((0,b.sprintf)((0,b.__)("%s styles applied."),(0,c.getBlockType)(e).title),{type:"snackbar",actions:[{label:(0,b.__)("Undo"),onClick(){i(),n(t),r((()=>s),{undoIgnore:!0})}}]})}}),[i,t,a,o,e,n,r,s]);return(0,l.createElement)(_.BaseControl,{className:"edit-site-push-changes-to-global-styles-control",help:(0,b.sprintf)((0,b.__)("Apply this block’s typography, spacing, dimensions, and color styles to all %s blocks."),(0,c.getBlockType)(e).title)},(0,l.createElement)(_.BaseControl.VisualLabel,null,(0,b.__)("Styles")),(0,l.createElement)(_.Button,{variant:"primary",disabled:0===a.length,onClick:u},(0,b.__)("Apply globally")))}const bt=(0,ae.createHigherOrderComponent)((e=>t=>{const n=(0,we.useBlockEditingMode)(),s=dt.some((e=>(0,c.hasBlockSupport)(t.name,e)));return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(e,{...t}),"default"===n&&s&&(0,l.createElement)(we.InspectorAdvancedControls,null,(0,l.createElement)(_t,{...t})))}));(0,be.addFilter)("editor.BlockEdit","core/edit-site/push-changes-to-global-styles",bt);var Et=window.wp.router,wt=window.wp.url;function xt(){return void 0!==(0,wt.getQueryArg)(window.location.href,"wp_theme_preview")}function Ct(){return xt()?(0,wt.getQueryArg)(window.location.href,"wp_theme_preview"):null}const{useHistory:St}=nt(Et.privateApis);function kt(e={},t,n=!1){const s=St();const r=(0,wt.getQueryArgs)(window.location.href),a=(0,wt.removeQueryArgs)(window.location.href,...Object.keys(r));xt()&&(e={...e,wp_theme_preview:Ct()});return{href:(0,wt.addQueryArgs)(a,e),onClick:function(r){r.preventDefault(),n?s.replace(e,t):s.push(e,t)}}}function Tt({params:e={},state:t,replace:n=!1,children:s,...r}){const{href:a,onClick:i}=kt(e,t,n);return(0,l.createElement)("a",{href:a,onClick:i,...r},s)}var Pt=window.wp.patterns;const Nt="wp_navigation",Ot="wp_template",It="wp_template_part",Mt={custom:"custom",theme:"theme",plugin:"plugin"},At="uncategorized",{PATTERN_TYPES:Rt,PATTERN_DEFAULT_CATEGORY:Bt,PATTERN_USER_CATEGORY:Lt,PATTERN_CORE_SOURCES:Dt,PATTERN_SYNC_TYPES:Ft}=nt(Pt.privateApis),Vt=[It,Nt,Rt.user],zt={"core/post-title":!0,"core/post-featured-image":!0,"core/post-content":!0},Gt={[Ot]:(0,b.__)("Template"),[It]:(0,b.__)("Template part"),[Rt.user]:(0,b.__)("Pattern"),[Nt]:(0,b.__)("Navigation")},{useLocation:Ht}=nt(Et.privateApis);function Ut({attributes:e}){const{theme:t,slug:n}=e,{params:s}=Ht(),r=(0,d.useSelect)((e=>e(f.store).getEntityRecord("postType",It,`${t}//${n}`)),[t,n]),a=kt({postId:r?.id,postType:r?.type,canvas:"edit"},{fromTemplateId:s.postId});return r?(0,l.createElement)(we.BlockControls,{group:"other"},(0,l.createElement)(_.ToolbarButton,{...a,onClick:e=>{a.onClick(e)}},(0,b.__)("Edit"))):null}const Wt=(0,ae.createHigherOrderComponent)((e=>t=>{const{attributes:n,name:s}=t,r="core/template-part"===s&&n.slug;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(e,{...t}),r&&(0,l.createElement)(Ut,{attributes:n}))}),"withEditBlockControls");(0,be.addFilter)("editor.BlockEdit","core/edit-site/template-part-edit-button",Wt);const{useLocation:jt}=nt(Et.privateApis);function qt({attributes:e}){const{ref:t}=e,{params:n}=jt(),s=(0,we.useBlockEditingMode)(),r=(0,d.useSelect)((e=>e(f.store).getEntityRecord("postType",Nt,t)),[t]),a=kt({postId:r?.id,postType:r?.type,canvas:"edit"},{fromTemplateId:n.postId});return r&&"default"===s?(0,l.createElement)(we.BlockControls,{group:"other"},(0,l.createElement)(_.ToolbarButton,{...a,onClick:e=>{a.onClick(e)}},(0,b.__)("Edit"))):null}const Yt=(0,ae.createHigherOrderComponent)((e=>t=>{const{attributes:n,name:s}=t,r="core/navigation"===s&&n.ref;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(e,{...t}),r&&(0,l.createElement)(qt,{attributes:n}))}),"withEditBlockControls");(0,be.addFilter)("editor.BlockEdit","core/edit-site/navigation-edit-button",Yt);var Zt=(0,d.combineReducers)({deviceType:function(e="Desktop",t){return"SET_PREVIEW_DEVICE_TYPE"===t.type?t.deviceType:e},settings:function(e={},t){return"UPDATE_SETTINGS"===t.type?{...e,...t.settings}:e},editedPost:function(e={},t){switch(t.type){case"SET_EDITED_POST":return{postType:t.postType,id:t.id,context:t.context};case"SET_EDITED_POST_CONTEXT":return{...e,context:t.context}}return e},blockInserterPanel:function(e=!1,t){switch(t.type){case"SET_IS_LIST_VIEW_OPENED":return!t.isOpen&&e;case"SET_IS_INSERTER_OPENED":return t.value;case"SET_CANVAS_MODE":return!1}return e},listViewPanel:function(e=!1,t){switch(t.type){case"SET_IS_INSERTER_OPENED":return!t.value&&e;case"SET_IS_LIST_VIEW_OPENED":return t.isOpen;case"SET_CANVAS_MODE":return!1}return e},saveViewPanel:function(e=!1,t){switch(t.type){case"SET_IS_SAVE_VIEW_OPENED":return t.isOpen;case"SET_CANVAS_MODE":return!1}return e},canvasMode:function(e="init",t){return"SET_CANVAS_MODE"===t.type?t.mode:e},editorCanvasContainerView:function(e=void 0,t){return"SET_EDITOR_CANVAS_CONTAINER_VIEW"===t.type?t.view:e},hasPageContentFocus:function(e=!1,t){switch(t.type){case"SET_EDITED_POST":return!!t.context?.postId;case"SET_HAS_PAGE_CONTENT_FOCUS":return t.hasPageContentFocus}return e},pageContentFocusType:function(e="disableTemplate",t){return"SET_PAGE_CONTENT_FOCUS_TYPE"===t.type?t.pageContentFocusType:e}}),Xt=window.wp.apiFetch,Kt=n.n(Xt),Jt=window.wp.a11y,Qt=window.wp.htmlEntities;const $t="core/edit-site";function en(e){return!!e&&(e?.source===Mt.custom&&e?.has_theme_file)}function tn(e){return function({registry:t}){h()("select( 'core/edit-site' ).toggleFeature( featureName )",{since:"6.0",alternative:"select( 'core/preferences').toggle( 'core/edit-site', featureName )"}),t.dispatch(T.store).toggle("core/edit-site",e)}}function nn(e){return{type:"SET_PREVIEW_DEVICE_TYPE",deviceType:e}}const sn=(e,t)=>async({dispatch:n,registry:s})=>{if(!t)try{const n=await s.resolveSelect(f.store).getEntityRecord("postType",Ot,e);t=n?.slug}catch(e){}n({type:"SET_EDITED_POST",postType:Ot,id:e,context:{templateSlug:t}})},rn=e=>async({dispatch:t,registry:n})=>{const s=await n.dispatch(f.store).saveEntityRecord("postType",Ot,e);e.content&&n.dispatch(f.store).editEntityRecord("postType",Ot,s.id,{blocks:(0,c.parse)(e.content)},{undoIgnore:!0}),t({type:"SET_EDITED_POST",postType:Ot,id:s.id,context:{templateSlug:s.slug}})},an=e=>async({registry:t})=>{try{await t.dispatch(f.store).deleteEntityRecord("postType",e.type,e.id,{force:!0});const n=t.select(f.store).getLastEntityDeleteError("postType",e.type,e.id);if(n)throw n;const s="string"==typeof e.title?e.title:e.title?.rendered;t.dispatch(xe.store).createSuccessNotice((0,b.sprintf)((0,b.__)('"%s" deleted.'),(0,Qt.decodeEntities)(s)),{type:"snackbar",id:"site-editor-template-deleted-success"})}catch(e){const n=e.message&&"unknown_error"!==e.code?e.message:(0,b.__)("An error occurred while deleting the template.");t.dispatch(xe.store).createErrorNotice(n,{type:"snackbar"})}};function on(e){return{type:"SET_EDITED_POST",postType:It,id:e}}function ln(e){return{type:"SET_EDITED_POST",postType:Nt,id:e}}function cn(e,t){return{type:"SET_EDITED_POST",postType:e,id:t}}function un(){return h()("dispatch( 'core/edit-site' ).setHomeTemplateId",{since:"6.2",version:"6.4"}),{type:"NOTHING"}}function dn(e){return{type:"SET_EDITED_POST_CONTEXT",context:e}}const pn=e=>async({dispatch:t,registry:n})=>{let s;const r=async e=>Kt()({path:(0,wt.addQueryArgs)("/wp/v2/templates/lookup",{slug:`page-${e}`})});if(e.path)s=await n.resolveSelect(f.store).__experimentalGetTemplateForLink(e.path);else{const t=await n.resolveSelect(f.store).getEditedEntityRecord("postType",e.context?.postType||"post",e.context?.postId),a=t?.template;if(a){const e=(await n.resolveSelect(f.store).getEntityRecords("postType",Ot,{per_page:-1}))?.find((({slug:e})=>e===a));s=e||await r(t?.slug)}else s=await r(t?.slug)}if(s)return t({type:"SET_EDITED_POST",postType:Ot,id:s.id,context:{...e.context,templateSlug:s.slug}}),s.id};function mn(){return h()("dispatch( 'core/edit-site' ).setNavigationPanelActiveMenu",{since:"6.2",version:"6.4"}),{type:"NOTHING"}}function hn(){return h()("dispatch( 'core/edit-site' ).openNavigationPanelToMenu",{since:"6.2",version:"6.4"}),{type:"NOTHING"}}function fn(){return h()("dispatch( 'core/edit-site' ).setIsNavigationPanelOpened",{since:"6.2",version:"6.4"}),{type:"NOTHING"}}function gn(e){return{type:"SET_IS_INSERTER_OPENED",value:e}}function yn(e){return{type:"UPDATE_SETTINGS",settings:e}}const vn=e=>({dispatch:t,registry:n})=>{n.select(T.store).get("core/edit-site","distractionFree")&&e&&t.toggleDistractionFree(),t({type:"SET_IS_LIST_VIEW_OPENED",isOpen:e})};function _n(e){return{type:"SET_IS_SAVE_VIEW_OPENED",isOpen:e}}const bn=(e,{allowUndo:t=!0}={})=>async({registry:n})=>{const s="edit-site-template-reverted";if(n.dispatch(xe.store).removeNotice(s),en(e))try{const r=n.select(f.store).getEntityConfig("postType",e.type);if(!r)return void n.dispatch(xe.store).createErrorNotice((0,b.__)("The editor has encountered an unexpected error. Please reload."),{type:"snackbar"});const a=(0,wt.addQueryArgs)(`${r.baseURL}/${e.id}`,{context:"edit",source:"theme"}),i=await Kt()({path:a});if(!i)return void n.dispatch(xe.store).createErrorNotice((0,b.__)("The editor has encountered an unexpected error. Please reload."),{type:"snackbar"});const o=({blocks:e=[]})=>(0,c.__unstableSerializeAndClean)(e),l=n.select(f.store).getEditedEntityRecord("postType",e.type,e.id);n.dispatch(f.store).editEntityRecord("postType",e.type,e.id,{content:o,blocks:l.blocks,source:"custom"},{undoIgnore:!0});const u=(0,c.parse)(i?.content?.raw);if(n.dispatch(f.store).editEntityRecord("postType",e.type,i.id,{content:o,blocks:u,source:"theme"}),t){const t=()=>{n.dispatch(f.store).editEntityRecord("postType",e.type,l.id,{content:o,blocks:l.blocks,source:"custom"})};n.dispatch(xe.store).createSuccessNotice((0,b.__)("Template reverted."),{type:"snackbar",id:s,actions:[{label:(0,b.__)("Undo"),onClick:t}]})}}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,b.__)("Template revert failed. Please reload.");n.dispatch(xe.store).createErrorNotice(t,{type:"snackbar"})}else n.dispatch(xe.store).createErrorNotice((0,b.__)("This template is not revertable."),{type:"snackbar"})},En=e=>({dispatch:t,registry:n})=>{n.select(T.store).get("core/edit-site","distractionFree")&&t.toggleDistractionFree(),n.dispatch(W).enableComplementaryArea($t,e)},wn=()=>({registry:e})=>{e.dispatch(W).disableComplementaryArea($t)},xn=e=>({dispatch:t,registry:n})=>{if(n.dispatch("core/preferences").set("core/edit-site","editorMode",e),"visual"!==e&&n.dispatch(we.store).clearSelectedBlock(),"visual"===e)(0,Jt.speak)((0,b.__)("Visual editor selected"),"assertive");else if("text"===e){n.select(T.store).get("core/edit-site","distractionFree")&&t.toggleDistractionFree(),(0,Jt.speak)((0,b.__)("Code editor selected"),"assertive")}},Cn=e=>({dispatch:t,registry:n})=>{e&&n.dispatch(we.store).clearSelectedBlock(),t({type:"SET_HAS_PAGE_CONTENT_FOCUS",hasPageContentFocus:e})},Sn=()=>({dispatch:e,registry:t})=>{const n=t.select(T.store).get("core/edit-site","distractionFree");n||t.batch((()=>{t.dispatch(T.store).set("core/edit-site","fixedToolbar",!1),e.setIsInserterOpened(!1),e.setIsListViewOpened(!1),e.closeGeneralSidebar()})),t.batch((()=>{t.dispatch(T.store).set("core/edit-site","distractionFree",!n),t.dispatch(xe.store).createInfoNotice(n?(0,b.__)("Distraction free off."):(0,b.__)("Distraction free on."),{id:"core/edit-site/distraction-free-mode/notice",type:"snackbar"})}))},kn=e=>({registry:t,dispatch:n,select:s})=>{t.dispatch(we.store).__unstableSetEditorMode("edit"),n({type:"SET_CANVAS_MODE",mode:e}),"edit"===e&&t.select(T.store).get("core/edit-site","showListViewByDefault")&&!t.select(T.store).get("core/edit-site","distractionFree")&&n.setIsListViewOpened(!0),"view"===e&&s.isPage()&&n.setHasPageContentFocus(!0)},Tn=e=>({dispatch:t})=>{t({type:"SET_EDITOR_CANVAS_CONTAINER_VIEW",view:e})},Pn=e=>({dispatch:t})=>{t({type:"SET_PAGE_CONTENT_FOCUS_TYPE",pageContentFocusType:e})};var Nn={};function On(e){return[e]}function In(e,t,n){var s;if(e.length!==t.length)return!1;for(s=n;s<e.length;s++)if(e[s]!==t[s])return!1;return!0}function Mn(e,t){var n,s=t||On;function r(){n=new WeakMap}function a(){var t,r,a,i,o,l=arguments.length;for(i=new Array(l),a=0;a<l;a++)i[a]=arguments[a];for(t=function(e){var t,s,r,a,i,o=n,l=!0;for(t=0;t<e.length;t++){if(!(i=s=e[t])||"object"!=typeof i){l=!1;break}o.has(s)?o=o.get(s):(r=new WeakMap,o.set(s,r),o=r)}return o.has(Nn)||((a=function(){var e={clear:function(){e.head=null}};return e}()).isUniqueByDependants=l,o.set(Nn,a)),o.get(Nn)}(o=s.apply(null,i)),t.isUniqueByDependants||(t.lastDependants&&!In(o,t.lastDependants,0)&&t.clear(),t.lastDependants=o),r=t.head;r;){if(In(r.args,i,1))return r!==t.head&&(r.prev.next=r.next,r.next&&(r.next.prev=r.prev),r.next=t.head,r.prev=null,t.head.prev=r,t.head=r),r.val;r=r.next}return r={val:e.apply(null,i)},i[0]=null,r.args=i,t.head&&(t.head.prev=r,r.next=t.head),t.head=r,r.val}return a.getDependants=s,a.clear=r,r(),a}const An=[];const Rn=function(e,t){var n,s,r=0;function a(){var a,i,o=n,l=arguments.length;e:for(;o;){if(o.args.length===arguments.length){for(i=0;i<l;i++)if(o.args[i]!==arguments[i]){o=o.next;continue e}return o!==n&&(o===s&&(s=o.prev),o.prev.next=o.next,o.next&&(o.next.prev=o.prev),o.next=n,o.prev=null,n.prev=o,n=o),o.val}o=o.next}for(a=new Array(l),i=0;i<l;i++)a[i]=arguments[i];return o={args:a,val:e.apply(null,a)},n?(n.prev=o,o.next=n):s=o,r===t.maxSize?(s=s.prev).next=null:r++,n=o,o.val}return t=t||{},a.clear=function(){n=null,s=null,r=0},a}((function(e=An,t){const n=t?t.reduce(((e,t)=>({...e,[t.id]:t})),{}):{},s=[],r=[...e];for(;r.length;){const{innerBlocks:e,...t}=r.shift();if(r.unshift(...e),(0,c.isTemplatePart)(t)){const{attributes:{theme:e,slug:r}}=t,a=n[`${e}//${r}`];a&&s.push({templatePart:a,block:t})}}return s})),Bn=(0,d.createRegistrySelector)((e=>(t,n)=>e(T.store).get("core/edit-site",n)));function Ln(e,t){return h()("select( 'core/edit-site' ).isFeatureActive",{since:"6.0",alternative:"select( 'core/preferences' ).get"}),!!Bn(e,t)}function Dn(e){return e.deviceType}const Fn=(0,d.createRegistrySelector)((e=>()=>e(f.store).canUser("create","media"))),Vn=(0,d.createRegistrySelector)((e=>()=>"web"===l.Platform.OS?e(f.store).getEntityRecords("postType","wp_block",{per_page:-1}):[])),zn=Mn(((e,t)=>{const n={...e.settings,outlineMode:!0,focusMode:!!Bn(e,"focusMode"),isDistractionFree:!!Bn(e,"distractionFree"),hasFixedToolbar:!!Bn(e,"fixedToolbar"),keepCaretInsideBlock:!!Bn(e,"keepCaretInsideBlock"),showIconLabels:!!Bn(e,"showIconLabels"),__experimentalSetIsInserterOpened:t,__experimentalReusableBlocks:Vn(e),__experimentalPreferPatternsOnRoot:Ot===Hn(e)};return Fn(e)?(n.mediaUpload=({onError:t,...n})=>{(0,Ee.uploadMedia)({wpAllowedMimeTypes:e.settings.allowedMimeTypes,onError:({message:e})=>t(e),...n})},n):n}),(e=>[Fn(e),e.settings,Bn(e,"focusMode"),Bn(e,"distractionFree"),Bn(e,"fixedToolbar"),Bn(e,"keepCaretInsideBlock"),Bn(e,"showIconLabels"),Vn(e),Hn(e)]));function Gn(){h()("select( 'core/edit-site' ).getHomeTemplateId",{since:"6.2",version:"6.4"})}function Hn(e){return e.editedPost.postType}function Un(e){return e.editedPost.id}function Wn(e){return e.editedPost.context}function jn(e){return{context:e.editedPost.context}}function qn(e){return!!e.blockInserterPanel}const Yn=(0,d.createRegistrySelector)((e=>t=>{if("object"==typeof t.blockInserterPanel){const{rootClientId:e,insertionIndex:n,filterValue:s}=t.blockInserterPanel;return{rootClientId:e,insertionIndex:n,filterValue:s}}if(ns(t)){const[t]=e(we.store).__experimentalGetGlobalBlocksByName("core/post-content");if(t)return{rootClientId:t,insertionIndex:void 0,filterValue:void 0}}return{rootClientId:void 0,insertionIndex:void 0,filterValue:void 0}}));function Zn(e){return e.listViewPanel}function Xn(e){return e.saveViewPanel}const Kn=(0,d.createRegistrySelector)((e=>()=>{const t=e(f.store).getEntityRecords("postType",It,{per_page:-1}),n=e(we.store).__experimentalGetGlobalBlocksByName("core/template-part"),s=e(we.store).getBlocksByClientId(n);return Rn(s,t)}));function Jn(e){return Bn(e,"editorMode")}function Qn(){h()("dispatch( 'core/edit-site' ).getCurrentTemplateNavigationPanelSubMenu",{since:"6.2",version:"6.4"})}function $n(){h()("dispatch( 'core/edit-site' ).getNavigationPanelActiveMenu",{since:"6.2",version:"6.4"})}function es(){h()("dispatch( 'core/edit-site' ).isNavigationOpened",{since:"6.2",version:"6.4"})}function ts(e){return!!e.editedPost.context?.postId}function ns(e){return!!ts(e)&&e.hasPageContentFocus}function ss(e){return e.canvasMode}function rs(e){return e.editorCanvasContainerView}function as(e){return ns(e)?e.pageContentFocusType:null}const is={reducer:Zt,actions:r,selectors:i},os=(0,d.createReduxStore)($t,is);(0,d.register)(os),nt(os).registerPrivateSelectors(o),nt(os).registerPrivateActions(a);var ls=window.wp.keyboardShortcuts,cs=window.wp.commands,us=window.wp.coreCommands;var ds=(0,l.createElement)(E.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(E.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"}));var ps=(0,l.createElement)(E.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(E.Path,{d:"M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z"}));var ms=(0,l.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(E.Path,{d:"M7 5.5h10a.5.5 0 01.5.5v12a.5.5 0 01-.5.5H7a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM17 4H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V6a2 2 0 00-2-2zm-1 3.75H8v1.5h8v-1.5zM8 11h8v1.5H8V11zm6 3.25H8v1.5h6v-1.5z"}));var hs=(0,l.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(E.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"}));var fs=(0,l.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(E.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"}));function gs(e){return(0,l.createElement)(_.Button,{...e,className:v()("edit-site-sidebar-button",e.className)})}const{useLocation:ys}=nt(Et.privateApis);function vs({isRoot:e,title:t,actions:n,meta:s,content:r,footer:a,description:i,backPath:o}){const{dashboardLink:c,dashboardLinkText:u}=(0,d.useSelect)((e=>{const{getSettings:t}=nt(e(os));return{dashboardLink:t().__experimentalDashboardLink,dashboardLinkText:t().__experimentalDashboardLinkText}}),[]),{getTheme:p}=(0,d.useSelect)(f.store),m=ys(),h=(0,_.__experimentalUseNavigator)(),g=p(Ct()),y=(0,b.isRTL)()?he:me;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(_.__experimentalVStack,{className:v()("edit-site-sidebar-navigation-screen__main",{"has-footer":!!a}),spacing:0,justify:"flex-start"},(0,l.createElement)(_.__experimentalHStack,{spacing:4,alignment:"flex-start",className:"edit-site-sidebar-navigation-screen__title-icon"},!e&&(0,l.createElement)(gs,{onClick:()=>{const e=null!=o?o:m.state?.backPath;e?h.goTo(e,{isBack:!0}):h.goToParent()},icon:y,label:(0,b.__)("Back"),showTooltip:!1}),e&&(0,l.createElement)(gs,{icon:y,label:u||(0,b.__)("Go to the Dashboard"),href:c||"index.php"}),(0,l.createElement)(_.__experimentalHeading,{className:"edit-site-sidebar-navigation-screen__title",color:"#e0e0e0",level:1,size:20},xt()?(0,b.sprintf)("Previewing %1$s: %2$s",g?.name?.rendered,t):t),n&&(0,l.createElement)("div",{className:"edit-site-sidebar-navigation-screen__actions"},n)),s&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"edit-site-sidebar-navigation-screen__meta"},s)),(0,l.createElement)("div",{className:"edit-site-sidebar-navigation-screen__content"},i&&(0,l.createElement)("p",{className:"edit-site-sidebar-navigation-screen__description"},i),r)),a&&(0,l.createElement)("footer",{className:"edit-site-sidebar-navigation-screen__footer"},a))}var _s=(0,l.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(E.Path,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"}));var bs=(0,l.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(E.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"}));function Es({className:e,icon:t,withChevron:n=!1,suffix:s,children:r,...a}){return(0,l.createElement)(_.__experimentalItem,{className:v()("edit-site-sidebar-navigation-item",{"with-suffix":!n&&s},e),...a},(0,l.createElement)(_.__experimentalHStack,{justify:"flex-start"},t&&(0,l.createElement)(pe,{style:{fill:"currentcolor"},icon:t,size:24}),(0,l.createElement)(_.FlexBlock,null,r),n&&(0,l.createElement)(pe,{icon:(0,b.isRTL)()?_s:bs,className:"edit-site-sidebar-navigation-item__drilldown-indicator",size:24}),!n&&s))}var ws=(0,l.createElement)(E.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(E.Path,{d:"M3.99961 13C4.67043 13.3354 4.6703 13.3357 4.67017 13.3359L4.67298 13.3305C4.67621 13.3242 4.68184 13.3135 4.68988 13.2985C4.70595 13.2686 4.7316 13.2218 4.76695 13.1608C4.8377 13.0385 4.94692 12.8592 5.09541 12.6419C5.39312 12.2062 5.84436 11.624 6.45435 11.0431C7.67308 9.88241 9.49719 8.75 11.9996 8.75C14.502 8.75 16.3261 9.88241 17.5449 11.0431C18.1549 11.624 18.6061 12.2062 18.9038 12.6419C19.0523 12.8592 19.1615 13.0385 19.2323 13.1608C19.2676 13.2218 19.2933 13.2686 19.3093 13.2985C19.3174 13.3135 19.323 13.3242 19.3262 13.3305L19.3291 13.3359C19.3289 13.3357 19.3288 13.3354 19.9996 13C20.6704 12.6646 20.6703 12.6643 20.6701 12.664L20.6697 12.6632L20.6688 12.6614L20.6662 12.6563L20.6583 12.6408C20.6517 12.6282 20.6427 12.6108 20.631 12.5892C20.6078 12.5459 20.5744 12.4852 20.5306 12.4096C20.4432 12.2584 20.3141 12.0471 20.1423 11.7956C19.7994 11.2938 19.2819 10.626 18.5794 9.9569C17.1731 8.61759 14.9972 7.25 11.9996 7.25C9.00203 7.25 6.82614 8.61759 5.41987 9.9569C4.71736 10.626 4.19984 11.2938 3.85694 11.7956C3.68511 12.0471 3.55605 12.2584 3.4686 12.4096C3.42484 12.4852 3.39142 12.5459 3.36818 12.5892C3.35656 12.6108 3.34748 12.6282 3.34092 12.6408L3.33297 12.6563L3.33041 12.6614L3.32948 12.6632L3.32911 12.664C3.32894 12.6643 3.32879 12.6646 3.99961 13ZM11.9996 16C13.9326 16 15.4996 14.433 15.4996 12.5C15.4996 10.567 13.9326 9 11.9996 9C10.0666 9 8.49961 10.567 8.49961 12.5C8.49961 14.433 10.0666 16 11.9996 16Z"}));var xs=(0,l.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(E.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})),Cs=xs,Ss=window.wp.keycodes,ks=n(1919),Ts=n.n(ks);
/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/
function Ps(e){return"[object Object]"===Object.prototype.toString.call(e)}function Ns(e){var t,n;return!1!==Ps(e)&&(void 0===(t=e.constructor)||!1!==Ps(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}const{GlobalStylesContext:Os,cleanEmptyObject:Is}=nt(we.privateApis);function Ms(e,t){return Ts()(e,t,{isMergeableObject:Ns})}function As(){const[e,t,n]=function(){const{globalStylesId:e,isReady:t,settings:n,styles:s}=(0,d.useSelect)((e=>{const{getEditedEntityRecord:t,hasFinishedResolution:n}=e(f.store),s=e(f.store).__experimentalGetCurrentGlobalStylesId(),r=s?t("root","globalStyles",s):void 0;let a=!1;return n("__experimentalGetCurrentGlobalStylesId")&&(a=!s||n("getEditedEntityRecord",["root","globalStyles",s])),{globalStylesId:s,isReady:a,settings:r?.settings,styles:r?.styles}}),[]),{getEditedEntityRecord:r}=(0,d.useSelect)(f.store),{editEntityRecord:a}=(0,d.useDispatch)(f.store);return[t,(0,l.useMemo)((()=>({settings:null!=n?n:{},styles:null!=s?s:{}})),[n,s]),(0,l.useCallback)(((t,n={})=>{var s,i;const o=r("root","globalStyles",e),l=t({styles:null!==(s=o?.styles)&&void 0!==s?s:{},settings:null!==(i=o?.settings)&&void 0!==i?i:{}});a("root","globalStyles",e,{styles:Is(l.styles)||{},settings:Is(l.settings)||{}},n)}),[e])]}(),[s,r]=function(){const e=(0,d.useSelect)((e=>e(f.store).__experimentalGetCurrentThemeBaseGlobalStyles()),[]);return[!!e,e]}(),a=(0,l.useMemo)((()=>r&&t?Ms(r,t):{}),[t,r]);return(0,l.useMemo)((()=>({isReady:e&&s,user:t,base:r,merged:a,setUserConfig:n})),[a,t,r,n,e,s])}function Rs({children:e}){const t=As();return t.isReady?(0,l.createElement)(Os.Provider,{value:t},e):null}const{useGlobalStyle:Bs,useGlobalStylesOutput:Ls}=nt(we.privateApis),Ds={start:{scale:1,opacity:1},hover:{scale:0,opacity:0}},Fs={hover:{opacity:1},start:{opacity:.5}},Vs={hover:{scale:1,opacity:1},start:{scale:0,opacity:0}};var zs=({label:e,isFocused:t,withHoverView:n})=>{const[s]=Bs("typography.fontWeight"),[r="serif"]=Bs("typography.fontFamily"),[a=r]=Bs("elements.h1.typography.fontFamily"),[i=s]=Bs("elements.h1.typography.fontWeight"),[o="black"]=Bs("color.text"),[c=o]=Bs("elements.h1.color.text"),[u="white"]=Bs("color.background"),[d]=Bs("color.gradient"),[p]=Ls(),m=(0,ae.useReducedMotion)(),[h,f]=(0,l.useState)(!1),[g,{width:y}]=(0,ae.useResizeObserver)(),v=y?y/248:1,{paletteColors:b,highlightedColors:E}=at(),w=(0,l.useMemo)((()=>p?[...p,{css:"html{overflow:hidden}body{min-width: 0;padding: 0;border: none;}",isGlobalStyles:!0}]:p),[p]),x=!!y;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{style:{position:"relative"}},g),x&&(0,l.createElement)(we.__unstableIframe,{className:"edit-site-global-styles-preview__iframe",style:{height:152*v},onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),tabIndex:-1},(0,l.createElement)(we.__unstableEditorStyles,{styles:w}),(0,l.createElement)(_.__unstableMotion.div,{style:{height:152*v,width:"100%",background:null!=d?d:u,cursor:n?"pointer":void 0},initial:"start",animate:(h||t)&&!m&&e?"hover":"start"},(0,l.createElement)(_.__unstableMotion.div,{variants:Ds,style:{height:"100%",overflow:"hidden"}},(0,l.createElement)(_.__experimentalHStack,{spacing:10*v,justify:"center",style:{height:"100%",overflow:"hidden"}},(0,l.createElement)(_.__unstableMotion.div,{style:{fontFamily:a,fontSize:65*v,color:c,fontWeight:i},animate:{scale:1,opacity:1},initial:{scale:.1,opacity:0},transition:{delay:.3,type:"tween"}},"Aa"),(0,l.createElement)(_.__experimentalVStack,{spacing:4*v},E.map((({slug:e,color:t},n)=>(0,l.createElement)(_.__unstableMotion.div,{key:e,style:{height:32*v,width:32*v,background:t,borderRadius:32*v/2},animate:{scale:1,opacity:1},initial:{scale:.1,opacity:0},transition:{delay:1===n?.2:.1}})))))),(0,l.createElement)(_.__unstableMotion.div,{variants:n&&Fs,style:{height:"100%",width:"100%",position:"absolute",top:0,overflow:"hidden",filter:"blur(60px)",opacity:.1}},(0,l.createElement)(_.__experimentalHStack,{spacing:0,justify:"flex-start",style:{height:"100%",overflow:"hidden"}},b.slice(0,4).map((({color:e},t)=>(0,l.createElement)("div",{key:t,style:{height:"100%",background:e,flexGrow:1}}))))),(0,l.createElement)(_.__unstableMotion.div,{variants:Vs,style:{height:"100%",width:"100%",overflow:"hidden",position:"absolute",top:0}},(0,l.createElement)(_.__experimentalVStack,{spacing:3*v,justify:"center",style:{height:"100%",overflow:"hidden",padding:10*v,boxSizing:"border-box"}},e&&(0,l.createElement)("div",{style:{fontSize:40*v,fontFamily:a,color:c,fontWeight:i,lineHeight:"1em",textAlign:"center"}},e))))))};const{GlobalStylesContext:Gs,areGlobalStyleConfigsEqual:Hs}=nt(we.privateApis);function Us({variation:e}){const[t,n]=(0,l.useState)(!1),{base:s,user:r,setUserConfig:a}=(0,l.useContext)(Gs),i=(0,l.useMemo)((()=>{var t,n;return{user:{settings:null!==(t=e.settings)&&void 0!==t?t:{},styles:null!==(n=e.styles)&&void 0!==n?n:{}},base:s,merged:Ms(s,e),setUserConfig:()=>{}}}),[e,s]),o=()=>{a((()=>({settings:e.settings,styles:e.styles})))},c=(0,l.useMemo)((()=>Hs(r,e)),[r,e]);let u=e?.title;return e?.description&&(u=(0,b.sprintf)((0,b.__)("%1$s (%2$s)"),e?.title,e?.description)),(0,l.createElement)(Gs.Provider,{value:i},(0,l.createElement)("div",{className:v()("edit-site-global-styles-variations_item",{"is-active":c}),role:"button",onClick:o,onKeyDown:e=>{e.keyCode===Ss.ENTER&&(e.preventDefault(),o())},tabIndex:"0","aria-label":u,"aria-current":c,onFocus:()=>n(!0),onBlur:()=>n(!1)},(0,l.createElement)("div",{className:"edit-site-global-styles-variations_item-preview"},(0,l.createElement)(zs,{label:e?.title,isFocused:t,withHoverView:!0}))))}function Ws(){const e=(0,d.useSelect)((e=>e(f.store).__experimentalGetCurrentThemeGlobalStylesVariations()),[]),t=(0,l.useMemo)((()=>[{title:(0,b.__)("Default"),settings:{},styles:{}},...(null!=e?e:[]).map((e=>{var t,n;return{...e,settings:null!==(t=e.settings)&&void 0!==t?t:{},styles:null!==(n=e.styles)&&void 0!==n?n:{}}}))]),[e]);return(0,l.createElement)(_.__experimentalGrid,{columns:2,className:"edit-site-global-styles-style-variations-container"},t.map(((e,t)=>(0,l.createElement)(Us,{key:t,variation:e}))))}const js=20;function qs({variation:e="default",direction:t,resizeWidthBy:n}){return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("button",{className:`resizable-editor__drag-handle is-${t} is-variation-${e}`,"aria-label":(0,b.__)("Drag to resize"),"aria-describedby":`resizable-editor__resize-help-${t}`,onKeyDown:function(e){const{keyCode:s}=e;"left"===t&&s===Ss.LEFT||"right"===t&&s===Ss.RIGHT?n(js):("left"===t&&s===Ss.RIGHT||"right"===t&&s===Ss.LEFT)&&n(-js)}}),(0,l.createElement)(_.VisuallyHidden,{id:`resizable-editor__resize-help-${t}`},(0,b.__)("Use left and right arrow keys to resize the canvas.")))}const Ys={position:void 0,userSelect:void 0,cursor:void 0,width:void 0,height:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0};var Zs=function({enableResizing:e,height:t,children:n}){const[s,r]=(0,l.useState)("100%"),a=(0,l.useRef)(),i=(0,l.useCallback)((e=>{a.current&&r(a.current.offsetWidth+e)}),[]);return(0,l.createElement)(_.ResizableBox,{ref:e=>{a.current=e?.resizable},size:{width:e?s:"100%",height:e&&t?t:"100%"},onResizeStop:(e,t,n)=>{r(n.style.width)},minWidth:300,maxWidth:"100%",maxHeight:"100%",enable:{right:e,left:e},showHandle:e,resizeRatio:2,handleComponent:{left:(0,l.createElement)(qs,{direction:"left",resizeWidthBy:i}),right:(0,l.createElement)(qs,{direction:"right",resizeWidthBy:i})},handleClasses:void 0,handleStyles:{left:Ys,right:Ys}},n)};function Xs(e){switch(e){case"style-book":return(0,b.__)("Style Book");case"global-styles-revisions":return(0,b.__)("Global styles revisions");default:return""}}const{createPrivateSlotFill:Ks}=nt(_.privateApis),{privateKey:Js,Slot:Qs,Fill:$s}=Ks("EditSiteEditorCanvasContainerSlot");function er({children:e,closeButtonLabel:t,onClose:n,enableResizing:s=!1}){const{editorCanvasContainerView:r,showListViewByDefault:a}=(0,d.useSelect)((e=>({editorCanvasContainerView:nt(e(os)).getEditorCanvasContainerView(),showListViewByDefault:e(T.store).get("core/edit-site","showListViewByDefault")})),[]),[i,o]=(0,l.useState)(!1),{setEditorCanvasContainerView:c}=nt((0,d.useDispatch)(os)),u=(0,ae.useFocusOnMount)("firstElement"),p=(0,ae.useFocusReturn)(),m=(0,l.useMemo)((()=>Xs(r)),[r]),{setIsListViewOpened:h}=(0,d.useDispatch)(os);function f(){"function"==typeof n&&n(),h(a),c(void 0),o(!0)}const g=Array.isArray(e)?l.Children.map(e,((e,t)=>0===t?(0,l.cloneElement)(e,{ref:p}):e)):(0,l.cloneElement)(e,{ref:p});if(i)return null;const y=n||t;return(0,l.createElement)($s,null,(0,l.createElement)(Zs,{enableResizing:s},(0,l.createElement)("section",{className:"edit-site-editor-canvas-container",ref:y?u:null,onKeyDown:function(e){e.keyCode!==Ss.ESCAPE||e.defaultPrevented||(e.preventDefault(),f())},"aria-label":m},y&&(0,l.createElement)(_.Button,{className:"edit-site-editor-canvas-container__close-button",icon:k,label:t||(0,b.__)("Close"),onClick:f,showTooltip:!1}),g)))}er.Slot=Qs;var tr=er;const{ExperimentalBlockEditorProvider:nr,useGlobalStyle:sr}=nt(we.privateApis);function rr(){return[{name:"core/heading",title:(0,b.__)("Headings"),category:"text",blocks:[(0,c.createBlock)("core/heading",{content:(0,b.__)("Code Is Poetry"),level:1}),(0,c.createBlock)("core/heading",{content:(0,b.__)("Code Is Poetry"),level:2}),(0,c.createBlock)("core/heading",{content:(0,b.__)("Code Is Poetry"),level:3}),(0,c.createBlock)("core/heading",{content:(0,b.__)("Code Is Poetry"),level:4}),(0,c.createBlock)("core/heading",{content:(0,b.__)("Code Is Poetry"),level:5})]},...(0,c.getBlockTypes)().filter((e=>{const{name:t,example:n,supports:s}=e;return"core/heading"!==t&&!!n&&!1!==s.inserter})).map((e=>({name:e.name,title:e.title,category:e.category,blocks:(0,c.getBlockFromExample)(e.name,e.example)})))]}const ar=({category:e,examples:t,isSelected:n,onClick:s,onSelect:r,settings:a,sizes:i,title:o})=>{const[c,u]=(0,l.useState)(!1),d={role:"button",onFocus:()=>u(!0),onBlur:()=>u(!1),onKeyDown:e=>{if(e.defaultPrevented)return;const{keyCode:t}=e;!s||t!==Ss.ENTER&&t!==Ss.SPACE||(e.preventDefault(),s(e))},onClick:e=>{e.defaultPrevented||s&&(e.preventDefault(),s(e))},readonly:!0},p=s?"body { cursor: pointer; } body * { pointer-events: none; }":"";return(0,l.createElement)(we.__unstableIframe,{className:v()("edit-site-style-book__iframe",{"is-focused":c&&!!s,"is-button":!!s}),name:"style-book-canvas",tabIndex:0,...s?d:{}},(0,l.createElement)(we.__unstableEditorStyles,{styles:a.styles}),(0,l.createElement)("style",null,'.is-root-container { display: flow-root; }\n\t\t\t\t\t\tbody { position: relative; padding: 32px !important; }\n\t.edit-site-style-book__examples {\n\t\tmax-width: 900px;\n\t\tmargin: 0 auto;\n\t}\n\n\t.edit-site-style-book__example {\n\t\tborder-radius: 2px;\n\t\tcursor: pointer;\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tgap: 40px;\n\t\tmargin-bottom: 40px;\n\t\tpadding: 16px;\n\t\twidth: 100%;\n\t\tbox-sizing: border-box;\n\t}\n\n\t.edit-site-style-book__example.is-selected {\n\t\tbox-shadow: 0 0 0 1px var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba));\n\t}\n\n\t.edit-site-style-book__example:focus:not(:disabled) {\n\t\tbox-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba));\n\t\toutline: 3px solid transparent;\n\t}\n\n\t.edit-site-style-book__examples.is-wide .edit-site-style-book__example {\n\t\tflex-direction: row;\n\t}\n\n\t.edit-site-style-book__example-title {\n\t\tfont-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;\n\t\tfont-size: 11px;\n\t\tfont-weight: 500;\n\t\tline-height: normal;\n\t\tmargin: 0;\n\t\ttext-align: left;\n\t\ttext-transform: uppercase;\n\t}\n\n\t.edit-site-style-book__examples.is-wide .edit-site-style-book__example-title {\n\t\ttext-align: right;\n\t\twidth: 120px;\n\t}\n\n\t.edit-site-style-book__example-preview {\n\t\twidth: 100%;\n\t}\n\n\t.edit-site-style-book__example-preview .block-editor-block-list__insertion-point,\n\t.edit-site-style-book__example-preview .block-list-appender {\n\t\tdisplay: none;\n\t}\n\n\t.edit-site-style-book__example-preview .is-root-container > .wp-block:first-child {\n\t\tmargin-top: 0;\n\t}\n\t.edit-site-style-book__example-preview .is-root-container > .wp-block:last-child {\n\t\tmargin-bottom: 0;\n\t}\n'+p),(0,l.createElement)(ir,{className:v()("edit-site-style-book__examples",{"is-wide":i.width>600}),examples:t,category:e,label:o?(0,b.sprintf)((0,b.__)("Examples of blocks in the %s category"),o):(0,b.__)("Examples of blocks"),isSelected:n,onSelect:r}))},ir=(0,l.memo)((({className:e,examples:t,category:n,label:s,isSelected:r,onSelect:a})=>{const i=(0,_.__unstableUseCompositeState)({orientation:"vertical"});return(0,l.createElement)(_.__unstableComposite,{...i,className:e,"aria-label":s},t.filter((e=>!n||e.category===n)).map((e=>(0,l.createElement)(or,{key:e.name,id:`example-${e.name}`,composite:i,title:e.title,blocks:e.blocks,isSelected:r(e.name),onClick:()=>{a?.(e.name)}}))))})),or=({composite:e,id:t,title:n,blocks:s,isSelected:r,onClick:a})=>{const i=(0,d.useSelect)((e=>e(we.store).getSettings()),[]),o=(0,l.useMemo)((()=>({...i,__unstableIsPreviewMode:!0})),[i]),c=(0,l.useMemo)((()=>Array.isArray(s)?s:[s]),[s]);return(0,l.createElement)(_.__unstableCompositeItem,{...e,className:v()("edit-site-style-book__example",{"is-selected":r}),id:t,"aria-label":(0,b.sprintf)((0,b.__)("Open %s styles in Styles panel"),n),onClick:a,role:"button",as:"div"},(0,l.createElement)("span",{className:"edit-site-style-book__example-title"},n),(0,l.createElement)("div",{className:"edit-site-style-book__example-preview","aria-hidden":!0},(0,l.createElement)(_.Disabled,{className:"edit-site-style-book__example-preview__content"},(0,l.createElement)(nr,{value:c,settings:o},(0,l.createElement)(we.BlockList,{renderAppender:!1})))))};var lr=function({enableResizing:e=!0,isSelected:t,onClick:n,onSelect:s,showCloseButton:r=!0,showTabs:a=!0}){const[i,o]=(0,ae.useResizeObserver)(),[u]=sr("color.text"),[p]=sr("color.background"),m=(0,l.useMemo)(rr,[]),h=(0,l.useMemo)((()=>(0,c.getCategories)().filter((e=>m.some((t=>t.category===e.slug)))).map((e=>({name:e.slug,title:e.title,icon:e.icon})))),[m]),f=(0,d.useSelect)((e=>e(we.store).getSettings()),[]),g=(0,l.useMemo)((()=>({...f,__unstableIsPreviewMode:!0})),[f]);return(0,l.createElement)(tr,{enableResizing:e,closeButtonLabel:r?(0,b.__)("Close Style Book"):null},(0,l.createElement)("div",{className:v()("edit-site-style-book",{"is-wide":o.width>600,"is-button":!!n}),style:{color:u,background:p}},i,a?(0,l.createElement)(_.TabPanel,{className:"edit-site-style-book__tab-panel",tabs:h},(e=>(0,l.createElement)(ar,{category:e.name,examples:m,isSelected:t,onSelect:s,settings:g,sizes:o,title:e.title}))):(0,l.createElement)(ar,{examples:m,isSelected:t,onClick:n,onSelect:s,settings:g,sizes:o})))};const cr={per_page:-1,_fields:"id,name,avatar_urls",context:"view",capabilities:["edit_theme_options"]},ur=[],{GlobalStylesContext:dr}=nt(we.privateApis);function pr(){const{user:e}=(0,l.useContext)(dr),{authors:t,currentUser:n,isDirty:s,revisions:r,isLoadingGlobalStylesRevisions:a}=(0,d.useSelect)((e=>{const{__experimentalGetDirtyEntityRecords:t,getCurrentUser:n,getUsers:s,getCurrentThemeGlobalStylesRevisions:r,isResolving:a}=e(f.store),i=t(),o=n(),l=i.length>0,c=r()||ur;return{authors:s(cr)||ur,currentUser:o,isDirty:l,revisions:c,isLoadingGlobalStylesRevisions:a("getCurrentThemeGlobalStylesRevisions")}}),[]);return(0,l.useMemo)((()=>{let i=[];if(!t.length||a)return{revisions:i,hasUnsavedChanges:s,isLoading:!0};if(i=r.map((e=>({...e,author:t.find((t=>t.id===e.author))}))),i.length){if("unsaved"!==i[0].id&&(i[0].isLatest=!0),s&&e&&Object.keys(e).length>0&&n){const t={id:"unsaved",styles:e?.styles,settings:e?.settings,author:{name:n?.name,avatar_urls:n?.avatar_urls},modified:new Date};i.unshift(t)}i.push({id:"parent",styles:{},settings:{}})}return{revisions:i,hasUnsavedChanges:s,isLoading:!1}}),[s,r,n,t,e,a])}var mr=window.wp.date;var hr=(0,l.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(E.Path,{d:"M5.5 12h1.75l-2.5 3-2.5-3H4a8 8 0 113.134 6.35l.907-1.194A6.5 6.5 0 105.5 12zm9.53 1.97l-2.28-2.28V8.5a.75.75 0 00-1.5 0V12a.747.747 0 00.218.529l1.282-.84-1.28.842 2.5 2.5a.75.75 0 101.06-1.061z"}));function fr({children:e}){return(0,l.createElement)(_.__experimentalText,{className:"edit-site-sidebar-navigation-details-screen-panel__label"},e)}function gr({label:e,children:t,className:n,...s}){return(0,l.createElement)(_.__experimentalHStack,{key:e,spacing:5,alignment:"left",className:v()("edit-site-sidebar-navigation-details-screen-panel__row",n),...s},t)}function yr({children:e}){return(0,l.createElement)(_.__experimentalText,{className:"edit-site-sidebar-navigation-details-screen-panel__value"},e)}function vr({title:e,children:t,spacing:n}){return(0,l.createElement)(_.__experimentalVStack,{className:"edit-site-sidebar-navigation-details-screen-panel",spacing:n},e&&(0,l.createElement)(_.__experimentalHeading,{className:"edit-site-sidebar-navigation-details-screen-panel__heading",level:2},e),t)}function _r({record:e,...t}){const n={};return e?._links?.["predecessor-version"]?.[0]?.id&&(n.href=(0,wt.addQueryArgs)("revision.php",{revision:e?._links["predecessor-version"][0].id}),n.as="a"),(0,l.createElement)(_.__experimentalItemGroup,{className:"edit-site-sidebar-navigation-screen-details-footer"},(0,l.createElement)(Es,{label:(0,b.__)("Revisions"),...n,...t},(0,l.createElement)(gr,{justify:"space-between"},(0,l.createElement)(fr,null,(0,b.__)("Last modified")),(0,l.createElement)(yr,null,(0,l.createInterpolateElement)((0,b.sprintf)((0,b.__)("<time>%s</time>"),(0,mr.humanTimeDiff)(e.modified)),{time:(0,l.createElement)("time",{dateTime:e.modified})})),(0,l.createElement)(_.Icon,{className:"edit-site-sidebar-navigation-screen-details-footer__icon",icon:hr}))))}const br=()=>{};function Er(e){const{openGeneralSidebar:t}=(0,d.useDispatch)(os),{setCanvasMode:n}=nt((0,d.useDispatch)(os));return(0,d.useSelect)((e=>!!e(f.store).__experimentalGetCurrentThemeGlobalStylesVariations()?.length),[])?(0,l.createElement)(_.__experimentalNavigatorButton,{...e,as:Es,path:"/wp_global_styles"}):(0,l.createElement)(Es,{...e,onClick:()=>{n("edit"),t("edit-site/global-styles")}})}function wr(){const{storedSettings:e}=(0,d.useSelect)((e=>{const{getSettings:t}=nt(e(os));return{storedSettings:t(!1)}}),[]);return(0,l.createElement)(we.BlockEditorProvider,{settings:e,onChange:br,onInput:br},(0,l.createElement)(Ws,null))}function xr(){const{revisions:e,isLoading:t}=pr(),{openGeneralSidebar:n,setIsListViewOpened:s}=(0,d.useDispatch)(os),r=(0,ae.useViewportMatch)("medium","<"),{setCanvasMode:a,setEditorCanvasContainerView:i}=nt((0,d.useDispatch)(os)),{isViewMode:o,isStyleBookOpened:c,revisionsCount:u}=(0,d.useSelect)((e=>{var t;const{getCanvasMode:n,getEditorCanvasContainerView:s}=nt(e(os)),{getEntityRecord:r,__experimentalGetCurrentGlobalStylesId:a}=e(f.store),i=a(),o=i?r("root","globalStyles",i):void 0;return{isViewMode:"view"===n(),isStyleBookOpened:"style-book"===s(),revisionsCount:null!==(t=o?._links?.["version-history"]?.[0]?.count)&&void 0!==t?t:0}}),[]),p=(0,l.useCallback)((async()=>Promise.all([a("edit"),n("edit-site/global-styles")])),[a,n]),m=(0,l.useCallback)((async()=>{await p(),i("style-book"),s(!1)}),[p,i,s]),h=(0,l.useCallback)((async()=>{await p(),i("global-styles-revisions")}),[p,i]),g=u>0,y=e?.[0]?.modified,v=g&&!t&&y;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(vs,{title:(0,b.__)("Styles"),description:(0,b.__)("Choose a different style combination for the theme styles."),content:(0,l.createElement)(wr,null),footer:v&&(0,l.createElement)(_r,{record:e?.[0],onClick:h}),actions:(0,l.createElement)(l.Fragment,null,!r&&(0,l.createElement)(gs,{icon:ws,label:(0,b.__)("Style Book"),onClick:()=>i(c?void 0:"style-book"),isPressed:c}),(0,l.createElement)(gs,{icon:Cs,label:(0,b.__)("Edit styles"),onClick:async()=>await p()}))}),c&&!r&&o&&(0,l.createElement)(lr,{enableResizing:!1,isSelected:()=>!1,onClick:m,onSelect:m,showCloseButton:!1,showTabs:!1}))}const Cr="isTemplatePartMoveHintVisible";function Sr(){const e=(0,d.useSelect)((e=>{var t;return null===(t=e(T.store).get("core",Cr))||void 0===t||t}),[]),{set:t}=(0,d.useDispatch)(T.store);return e?(0,l.createElement)(_.Notice,{politeness:"polite",className:"edit-site-sidebar__notice",onRemove:()=>{t("core",Cr,!1)}},(0,b.__)('Looking for template parts? Find them in "Patterns".')):null}function kr(){const{location:e}=(0,_.__experimentalUseNavigator)(),{setEditorCanvasContainerView:t}=nt((0,d.useDispatch)(os));return(0,l.useEffect)((()=>{"/"===e?.path&&t(void 0)}),[t,e?.path]),(0,l.createElement)(vs,{isRoot:!0,title:(0,b.__)("Design"),description:(0,b.__)("Customize the appearance of your website using the block editor."),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)(_.__experimentalItemGroup,null,(0,l.createElement)(_.__experimentalNavigatorButton,{as:Es,path:"/navigation",withChevron:!0,icon:ds},(0,b.__)("Navigation")),(0,l.createElement)(Er,{withChevron:!0,icon:ps},(0,b.__)("Styles")),(0,l.createElement)(_.__experimentalNavigatorButton,{as:Es,path:"/page",withChevron:!0,icon:ms},(0,b.__)("Pages")),(0,l.createElement)(_.__experimentalNavigatorButton,{as:Es,path:"/wp_template",withChevron:!0,icon:hs},(0,b.__)("Templates")),(0,l.createElement)(_.__experimentalNavigatorButton,{as:Es,path:"/patterns",withChevron:!0,icon:fs},(0,b.__)("Patterns"))),(0,l.createElement)(Sr,null))})}var Tr=(0,l.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(E.Path,{d:"M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"}));var Pr=(0,l.createElement)(E.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(E.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"}));var Nr=(0,l.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(E.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"}));var Or=(0,l.createElement)(E.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(E.Path,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5zM8 12.8h8v-1.5H8v1.5zm0 3h8v-1.5H8v1.5z"}));var Ir=(0,l.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(E.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"}));var Mr=(0,l.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(E.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-.5V7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v10zm-11-7.6h-.7l-3.1 4.3h2.8V15h1v-1.3h.7v-.8h-.7V9.4zm-.9 3.5H6.3l1.2-1.7v1.7zm5.6-3.2c-.4-.2-.8-.4-1.2-.4-.5 0-.9.1-1.2.4-.4.2-.6.6-.8 1-.2.4-.3.9-.3 1.5s.1 1.1.3 1.6c.2.4.5.8.8 1 .4.2.8.4 1.2.4.5 0 .9-.1 1.2-.4.4-.2.6-.6.8-1 .2-.4.3-1 .3-1.6 0-.6-.1-1.1-.3-1.5-.1-.5-.4-.8-.8-1zm0 3.6c-.1.3-.3.5-.5.7-.2.1-.4.2-.7.2-.3 0-.5-.1-.7-.2-.2-.1-.4-.4-.5-.7-.1-.3-.2-.7-.2-1.2 0-.7.1-1.2.4-1.5.3-.3.6-.5 1-.5s.7.2 1 .5c.3.3.4.8.4 1.5-.1.5-.1.9-.2 1.2zm5-3.9h-.7l-3.1 4.3h2.8V15h1v-1.3h.7v-.8h-.7V9.4zm-1 3.5H16l1.2-1.7v1.7z"}));var Ar=(0,l.createElement)(E.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(E.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"}));var Rr=(0,l.createElement)(E.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(E.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"}));var Br=(0,l.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(E.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"}));var Lr=(0,l.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(E.Path,{fillRule:"evenodd",d:"M8.95 11.25H4v1.5h4.95v4.5H13V18c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2h-3c-1.1 0-2 .9-2 2v.75h-2.55v-7.5H13V9c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3c-1.1 0-2 .9-2 2v.75H8.95v4.5ZM14.5 15v3c0 .3.2.5.5.5h3c.3 0 .5-.2.5-.5v-3c0-.3-.2-.5-.5-.5h-3c-.3 0-.5.2-.5.5Zm0-6V6c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5Z",clipRule:"evenodd"}));var Dr=(0,l.createElement)(E.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(E.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"}));var Fr=(0,l.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(E.Path,{d:"M20.1 11.2l-6.7-6.7c-.1-.1-.3-.2-.5-.2H5c-.4-.1-.8.3-.8.7v7.8c0 .2.1.4.2.5l6.7 6.7c.2.2.5.4.7.5s.6.2.9.2c.3 0 .6-.1.9-.2.3-.1.5-.3.8-.5l5.6-5.6c.4-.4.7-1 .7-1.6.1-.6-.2-1.2-.6-1.6zM19 13.4L13.4 19c-.1.1-.2.1-.3.2-.2.1-.4.1-.6 0-.1 0-.2-.1-.3-.2l-6.5-6.5V5.8h6.8l6.5 6.5c.2.2.2.4.2.6 0 .1 0 .3-.2.5zM9 8c-.6 0-1 .4-1 1s.4 1 1 1 1-.4 1-1-.4-1-1-1z"}));var Vr=(0,l.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(E.Path,{d:"m7 6.5 4 2.5-4 2.5z"}),(0,l.createElement)(E.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"}));var zr=(0,l.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(E.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));function Gr(e=""){const[t,n]=(0,l.useState)(e),[s,r]=(0,l.useState)(e),a=(0,ae.useDebounce)(r,250);return(0,l.useEffect)((()=>{a(t)}),[t]),[t,n,s]}var Hr=(0,l.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(E.Path,{d:"m7.3 9.7 1.4 1.4c.2-.2.3-.3.4-.5 0 0 0-.1.1-.1.3-.5.4-1.1.3-1.6L12 7 9 4 7.2 6.5c-.6-.1-1.1 0-1.6.3 0 0-.1 0-.1.1-.3.1-.4.2-.6.4l1.4 1.4L4 11v1h1l2.3-2.3zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"}));const Ur=(e,t)=>{let n=e;return t.split(".").forEach((e=>{n=n?.[e]})),n},Wr=(e,t)=>(e||[]).map((e=>({...e,name:(0,Qt.decodeEntities)(Ur(e,t))}))),jr=()=>(0,d.useSelect)((e=>e(f.store).getEntityRecords("postType",Ot,{per_page:-1})),[]),qr=()=>(0,d.useSelect)((e=>e(g.store).__experimentalGetDefaultTemplateTypes()),[]),Yr=()=>{const e=(0,d.useSelect)((e=>e(f.store).getPostTypes({per_page:-1})),[]);return(0,l.useMemo)((()=>{const t=["attachment"];return e?.filter((({viewable:e,slug:n})=>e&&!t.includes(n)))}),[e])};function Zr(e){const t=(0,l.useMemo)((()=>e?.reduce(((e,{labels:t})=>{const n=t.singular_name.toLowerCase();return e[n]=(e[n]||0)+1,e}),{})));return(0,l.useCallback)((({labels:e,slug:n})=>{const s=e.singular_name.toLowerCase();return t[s]>1&&s!==n}),[t])}function Xr(){const e=Yr(),t=(0,l.useMemo)((()=>e?.filter((e=>e.has_archive))),[e]),n=jr(),s=Zr(t);return(0,l.useMemo)((()=>t?.filter((e=>!(n||[]).some((t=>t.slug==="archive-"+e.slug)))).map((e=>{let t;return t=s(e)?(0,b.sprintf)((0,b.__)("Archive: %1$s (%2$s)"),e.labels.singular_name,e.slug):(0,b.sprintf)((0,b.__)("Archive: %s"),e.labels.singular_name),{slug:"archive-"+e.slug,description:(0,b.sprintf)((0,b.__)("Displays an archive with the latest posts of type: %s."),e.labels.singular_name),title:t,icon:e.icon?.startsWith("dashicons-")?e.icon.slice(10):Or,templatePrefix:"archive"}}))||[]),[t,n,s])}const Kr=e=>{const t=Yr(),n=jr(),s=qr(),r=Zr(t),a=(0,l.useMemo)((()=>t?.reduce(((e,{slug:t})=>{let n=t;return"page"!==t&&(n=`single-${n}`),e[t]=n,e}),{})),[t]),i=ta("postType",a),o=(n||[]).map((({slug:e})=>e)),c=(t||[]).reduce(((t,n)=>{const{slug:l,labels:c,icon:u}=n,d=a[l],p=s?.find((({slug:e})=>e===d)),m=o?.includes(d),h=r(n);let f=(0,b.sprintf)((0,b.__)("Single item: %s"),c.singular_name);h&&(f=(0,b.sprintf)((0,b.__)("Single item: %1$s (%2$s)"),c.singular_name,l));const g=p?{...p,templatePrefix:a[l]}:{slug:d,title:f,description:(0,b.sprintf)((0,b.__)("Displays a single item: %s."),c.singular_name),icon:u?.startsWith("dashicons-")?u.slice(10):Hr,templatePrefix:a[l]},y=i?.[l]?.hasEntities;return y&&(g.onClick=t=>{e({type:"postType",slug:l,config:{recordNamePath:"title.rendered",queryArgs:({search:e})=>({_fields:"id,title,slug,link",orderBy:e?"relevance":"modified",exclude:i[l].existingEntitiesIds}),getSpecificTemplate:e=>{const t=`${a[l]}-${e.slug}`;return{title:t,slug:t,templatePrefix:a[l]}}},labels:c,hasGeneralTemplate:m,template:t})}),m&&!y||t.push(g),t}),[]),u=(0,l.useMemo)((()=>c.reduce(((e,t)=>{const{slug:n}=t;let s="postTypesMenuItems";return"page"===n&&(s="defaultPostTypesMenuItems"),e[s].push(t),e}),{defaultPostTypesMenuItems:[],postTypesMenuItems:[]})),[c]);return u},Jr=e=>{const t=(()=>{const e=(0,d.useSelect)((e=>e(f.store).getTaxonomies({per_page:-1})),[]);return(0,l.useMemo)((()=>e?.filter((({visibility:e})=>e?.publicly_queryable))),[e])})(),n=jr(),s=qr(),r=(0,l.useMemo)((()=>t?.reduce(((e,{slug:t})=>{let n=t;return["category","post_tag"].includes(t)||(n=`taxonomy-${n}`),"post_tag"===t&&(n="tag"),e[t]=n,e}),{})),[t]),a=t?.reduce(((e,{labels:t})=>{const n=t.singular_name.toLowerCase();return e[n]=(e[n]||0)+1,e}),{}),i=ta("taxonomy",r),o=(n||[]).map((({slug:e})=>e)),c=(t||[]).reduce(((t,n)=>{const{slug:l,labels:c}=n,u=r[l],d=s?.find((({slug:e})=>e===u)),p=o?.includes(u),m=((e,t)=>{if(["category","post_tag"].includes(t))return!1;const n=e.singular_name.toLowerCase();return a[n]>1&&n!==t})(c,l);let h=c.singular_name;m&&(h=(0,b.sprintf)((0,b.__)("%1$s (%2$s)"),c.singular_name,l));const f=d?{...d,templatePrefix:r[l]}:{slug:u,title:h,description:(0,b.sprintf)((0,b.__)("Displays taxonomy: %s."),c.singular_name),icon:Lr,templatePrefix:r[l]},g=i?.[l]?.hasEntities;return g&&(f.onClick=t=>{e({type:"taxonomy",slug:l,config:{queryArgs:({search:e})=>({_fields:"id,name,slug,link",orderBy:e?"name":"count",exclude:i[l].existingEntitiesIds}),getSpecificTemplate:e=>{const t=`${r[l]}-${e.slug}`;return{title:t,slug:t,templatePrefix:r[l]}}},labels:c,hasGeneralTemplate:p,template:t})}),p&&!g||t.push(f),t}),[]);return(0,l.useMemo)((()=>c.reduce(((e,t)=>{const{slug:n}=t;let s="taxonomiesMenuItems";return["category","tag"].includes(n)&&(s="defaultTaxonomiesMenuItems"),e[s].push(t),e}),{defaultTaxonomiesMenuItems:[],taxonomiesMenuItems:[]})),[c])},Qr={user:"author"},$r={user:{who:"authors"}};const ea=(e,t,n={})=>{const s=(e=>{const t=jr();return(0,l.useMemo)((()=>Object.entries(e||{}).reduce(((e,[n,s])=>{const r=(t||[]).reduce(((e,t)=>{const n=`${s}-`;return t.slug.startsWith(n)&&e.push(t.slug.substring(n.length)),e}),[]);return r.length&&(e[n]=r),e}),{})),[e,t])})(t);return(0,d.useSelect)((t=>Object.entries(s||{}).reduce(((s,[r,a])=>{const i=t(f.store).getEntityRecords(e,r,{_fields:"id",context:"view",slug:a,...n[r]});return i?.length&&(s[r]=i),s}),{})),[s])},ta=(e,t,n={})=>{const s=ea(e,t,n);return(0,d.useSelect)((r=>Object.keys(t||{}).reduce(((t,a)=>{const i=s?.[a]?.map((({id:e})=>e))||[];return t[a]={hasEntities:!!r(f.store).getEntityRecords(e,a,{per_page:1,_fields:"id",context:"view",exclude:i,...n[a]})?.length,existingEntitiesIds:i},t}),{})),[t,s])},na=[];function sa({suggestion:e,search:t,onSelect:n,entityForSuggestions:s,composite:r}){const a="edit-site-custom-template-modal__suggestions_list__list-item";return(0,l.createElement)(_.__unstableCompositeItem,{role:"option",as:_.Button,...r,className:a,onClick:()=>n(s.config.getSpecificTemplate(e))},(0,l.createElement)(_.__experimentalText,{size:"body",lineHeight:1.53846153846,weight:500,className:`${a}__title`},(0,l.createElement)(_.TextHighlight,{text:(0,Qt.decodeEntities)(e.name),highlight:t})),e.link&&(0,l.createElement)(_.__experimentalText,{size:"body",lineHeight:1.53846153846,className:`${a}__info`},e.link))}function ra({entityForSuggestions:e,onSelect:t}){const n=(0,_.__unstableUseCompositeState)({orientation:"vertical"}),[s,r,a]=Gr(),i=function(e,t){const{config:n}=e,s=(0,l.useMemo)((()=>({order:"asc",context:"view",search:t,per_page:t?20:10,...n.queryArgs(t)})),[t,n]),{records:r,hasResolved:a}=(0,f.useEntityRecords)(e.type,e.slug,s),[i,o]=(0,l.useState)(na);return(0,l.useEffect)((()=>{if(!a)return;let e=na;r?.length&&(e=r,n.recordNamePath&&(e=Wr(e,n.recordNamePath))),o(e)}),[r,a]),i}(e,a),{labels:o}=e,[c,u]=(0,l.useState)(!1);return!c&&i?.length>9&&u(!0),(0,l.createElement)(l.Fragment,null,c&&(0,l.createElement)(_.SearchControl,{__nextHasNoMarginBottom:!0,onChange:r,value:s,label:o.search_items,placeholder:o.search_items}),!!i?.length&&(0,l.createElement)(_.__unstableComposite,{...n,role:"listbox",className:"edit-site-custom-template-modal__suggestions_list","aria-label":(0,b.__)("Suggestions list")},i.map((s=>(0,l.createElement)(sa,{key:s.slug,suggestion:s,search:a,onSelect:t,entityForSuggestions:e,composite:n})))),a&&!i?.length&&(0,l.createElement)(_.__experimentalText,{as:"p",className:"edit-site-custom-template-modal__no-results"},o.not_found))}var aa=function({onSelect:e,entityForSuggestions:t}){const[n,s]=(0,l.useState)(t.hasGeneralTemplate);return(0,l.createElement)(_.__experimentalVStack,{spacing:4,className:"edit-site-custom-template-modal__contents-wrapper",alignment:"left"},!n&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(_.__experimentalText,{as:"p"},(0,b.__)("Select whether to create a single template for all items or a specific one.")),(0,l.createElement)(_.Flex,{className:"edit-site-custom-template-modal__contents",gap:"4",align:"initial"},(0,l.createElement)(_.FlexItem,{isBlock:!0,as:_.Button,onClick:()=>{const{slug:n,title:s,description:r,templatePrefix:a}=t.template;e({slug:n,title:s,description:r,templatePrefix:a})}},(0,l.createElement)(_.__experimentalText,{as:"span",weight:500,lineHeight:1.53846153846},t.labels.all_items),(0,l.createElement)(_.__experimentalText,{as:"span",lineHeight:1.53846153846},(0,b.__)("For all items"))),(0,l.createElement)(_.FlexItem,{isBlock:!0,as:_.Button,onClick:()=>{s(!0)}},(0,l.createElement)(_.__experimentalText,{as:"span",weight:500,lineHeight:1.53846153846},t.labels.singular_name),(0,l.createElement)(_.__experimentalText,{as:"span",lineHeight:1.53846153846},(0,b.__)("For a specific item"))))),n&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(_.__experimentalText,{as:"p"},(0,b.__)("This template will be used only for the specific item chosen.")),(0,l.createElement)(ra,{entityForSuggestions:t,onSelect:e})))};var ia=function(){return ia=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ia.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;function oa(e){return e.toLowerCase()}var la=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],ca=/[^A-Z0-9]+/gi;function ua(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,s=void 0===n?la:n,r=t.stripRegexp,a=void 0===r?ca:r,i=t.transform,o=void 0===i?oa:i,l=t.delimiter,c=void 0===l?" ":l,u=da(da(e,s,"$1\0$2"),a,"\0"),d=0,p=u.length;"\0"===u.charAt(d);)d++;for(;"\0"===u.charAt(p-1);)p--;return u.slice(d,p).split("\0").map(o).join(c)}function da(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function pa(e,t){return void 0===t&&(t={}),function(e,t){return void 0===t&&(t={}),ua(e,ia({delimiter:"."},t))}(e,ia({delimiter:"-"},t))}var ma=function({onClose:e,createTemplate:t}){const[n,s]=(0,l.useState)(""),r=(0,b.__)("Custom Template"),[a,i]=(0,l.useState)(!1);return(0,l.createElement)("form",{onSubmit:async function(e){if(e.preventDefault(),!a){i(!0);try{await t({slug:"wp-custom-template-"+pa(n||r),title:n||r},!1)}finally{i(!1)}}}},(0,l.createElement)(_.__experimentalVStack,{spacing:6},(0,l.createElement)(_.TextControl,{__nextHasNoMarginBottom:!0,label:(0,b.__)("Name"),value:n,onChange:s,placeholder:r,disabled:a,help:(0,b.__)('Describe the template, e.g. "Post with sidebar". A custom template can be manually applied to any post or page.')}),(0,l.createElement)(_.__experimentalHStack,{className:"edit-site-custom-generic-template__modal-actions",justify:"right"},(0,l.createElement)(_.Button,{variant:"tertiary",onClick:()=>{e()}},(0,b.__)("Cancel")),(0,l.createElement)(_.Button,{variant:"primary",type:"submit",isBusy:a,"aria-disabled":a},(0,b.__)("Create")))))};function ha(){const e="edit-site-template-actions-loading-screen-modal";return(0,l.createElement)(_.Modal,{isFullScreen:!0,isDismissible:!1,shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,onRequestClose:()=>{},__experimentalHideHeader:!0,className:e},(0,l.createElement)("div",{className:`${e}__content`},(0,l.createElement)(_.Spinner,null)))}const{useHistory:fa}=nt(Et.privateApis),ga=["front-page","home","single","page","index","archive","author","category","date","tag","search","404"],ya={"front-page":Tr,home:Pr,single:Nr,page:ms,archive:Or,search:Ir,404:Mr,index:Ar,category:Rr,author:Br,taxonomy:Lr,date:Dr,tag:Fr,attachment:Vr};function va({title:e,direction:t,className:n,description:s,icon:r,onClick:a,children:i}){return(0,l.createElement)(_.Button,{className:n,onClick:a,label:s,showTooltip:!!s},(0,l.createElement)(_.Flex,{as:"span",spacing:2,align:"center",justify:"center",style:{width:"100%"},direction:t},(0,l.createElement)("div",{className:"edit-site-add-new-template__template-icon"},(0,l.createElement)(_.Icon,{icon:r})),(0,l.createElement)(_.__experimentalVStack,{className:"edit-site-add-new-template__template-name",alignment:"center",spacing:0},(0,l.createElement)(_.__experimentalText,{weight:500,lineHeight:1.53846153846},e),i)))}const _a={templatesList:1,customTemplate:2,customGenericTemplate:3};function ba({postType:e,toggleProps:t,showIcon:n=!0}){const[s,r]=(0,l.useState)(!1),[a,i]=(0,l.useState)(_a.templatesList),[o,c]=(0,l.useState)({}),[u,p]=(0,l.useState)(!1),m=fa(),{saveEntityRecord:h}=(0,d.useDispatch)(f.store),{createErrorNotice:g,createSuccessNotice:y}=(0,d.useDispatch)(xe.store),{setTemplate:E}=nt((0,d.useDispatch)(os)),{homeUrl:w}=(0,d.useSelect)((e=>{const{getUnstableBase:t}=e(f.store);return{homeUrl:t()?.home}}),[]),x={"front-page":w,date:(0,b.sprintf)((0,b.__)("E.g. %s"),w+"/"+(new Date).getFullYear())};async function C(e,t=!0){if(!u){p(!0);try{const{title:n,description:s,slug:r}=e,a=await h("postType",Ot,{description:s,slug:r.toString(),status:"publish",title:n,is_wp_suggestion:t},{throwOnError:!0});E(a.id,a.slug),m.push({postId:a.id,postType:a.type,canvas:"edit"}),y((0,b.sprintf)((0,b.__)('"%s" successfully created.'),(0,Qt.decodeEntities)(a.title?.rendered||n)),{type:"snackbar"})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,b.__)("An error occurred while creating the template.");g(t,{type:"snackbar"})}finally{p(!1)}}}const S=()=>{r(!1),i(_a.templatesList)},k=function(e,t){const n=jr(),s=qr(),r=(n||[]).map((({slug:e})=>e)),a=(s||[]).filter((e=>ga.includes(e.slug)&&!r.includes(e.slug))),i=n=>{t?.(),e(n)},o=[...a],{defaultTaxonomiesMenuItems:l,taxonomiesMenuItems:c}=Jr(i),{defaultPostTypesMenuItems:u,postTypesMenuItems:d}=Kr(i),p=function(e){const t=jr(),n=qr(),s=ta("root",Qr,$r);let r=n?.find((({slug:e})=>"author"===e));r||(r={description:(0,b.__)("Displays latest posts written by a single author."),slug:"author",title:"Author"});const a=!!t?.find((({slug:e})=>"author"===e));if(s.user?.hasEntities&&(r={...r,templatePrefix:"author"},r.onClick=t=>{e({type:"root",slug:"user",config:{queryArgs:({search:e})=>({_fields:"id,name,slug,link",orderBy:e?"name":"registered_date",exclude:s.user.existingEntitiesIds,who:"authors"}),getSpecificTemplate:e=>{const t=`author-${e.slug}`;return{title:t,slug:t,templatePrefix:"author"}}},labels:{singular_name:(0,b.__)("Author"),search_items:(0,b.__)("Search Authors"),not_found:(0,b.__)("No authors found."),all_items:(0,b.__)("All Authors")},hasGeneralTemplate:a,template:t})}),!a||s.user?.hasEntities)return r}(i);[...l,...u,p].forEach((e=>{if(!e)return;const t=o.findIndex((t=>t.slug===e.slug));t>-1?o[t]=e:o.push(e)})),o?.sort(((e,t)=>ga.indexOf(e.slug)-ga.indexOf(t.slug)));const m=[...o,...Xr(),...d,...c];return m}(c,(()=>i(_a.customTemplate)));if(!k.length)return null;const{as:T=_.Button,...P}=null!=t?t:{};let N=(0,b.__)("Add template");return a===_a.customTemplate?N=(0,b.sprintf)((0,b.__)("Add template: %s"),o.labels.singular_name):a===_a.customGenericTemplate&&(N=(0,b.__)("Create custom template")),(0,l.createElement)(l.Fragment,null,u&&(0,l.createElement)(ha,null),(0,l.createElement)(T,{...P,onClick:()=>r(!0),icon:n?zr:null,label:e.labels.add_new_item},n?null:e.labels.add_new_item),s&&(0,l.createElement)(_.Modal,{title:N,className:v()("edit-site-add-new-template__modal",{"edit-site-add-new-template__modal_template_list":a===_a.templatesList,"edit-site-custom-template-modal":a===_a.customTemplate}),onRequestClose:S,overlayClassName:a===_a.customGenericTemplate?"edit-site-custom-generic-template__modal":void 0},a===_a.templatesList&&(0,l.createElement)(_.__experimentalGrid,{columns:3,gap:4,align:"flex-start",justify:"center",className:"edit-site-add-new-template__template-list__contents"},(0,l.createElement)(_.Flex,{className:"edit-site-add-new-template__template-list__prompt"},(0,b.__)("Select what the new template should apply to:")),k.map((e=>{const{title:t,slug:n,onClick:s}=e;return(0,l.createElement)(va,{key:n,title:t,direction:"column",className:"edit-site-add-new-template__template-button",description:x[n],icon:ya[n]||hs,onClick:()=>s?s(e):C(e)})})),(0,l.createElement)(va,{title:(0,b.__)("Custom template"),direction:"row",className:"edit-site-add-new-template__custom-template-button",icon:Cs,onClick:()=>i(_a.customGenericTemplate)},(0,l.createElement)(_.__experimentalText,{lineHeight:1.53846153846},(0,b.__)("A custom template can be manually applied to any post or page.")))),a===_a.customTemplate&&(0,l.createElement)(aa,{onSelect:C,entityForSuggestions:o}),a===_a.customGenericTemplate&&(0,l.createElement)(ma,{onClose:S,createTemplate:C})))}function Ea({templateType:e=Ot,...t}){const n=(0,d.useSelect)((t=>t(f.store).getPostType(e)),[e]);return n&&e===Ot?(0,l.createElement)(ba,{...t,postType:n}):null}const wa=({postType:e,postId:t,...n})=>{const s=kt({postType:e,postId:t});return(0,l.createElement)(Es,{...s,...n})};function xa(){const e=(0,ae.useViewportMatch)("medium","<"),{records:t,isResolving:n}=(0,f.useEntityRecords)("postType",Ot,{per_page:-1}),s=t?[...t]:[];s.sort(((e,t)=>e.title.rendered.localeCompare(t.title.rendered)));const r=kt({path:"/wp_template/all"}),a=!e;return(0,l.createElement)(vs,{title:(0,b.__)("Templates"),description:(0,b.__)("Express the layout of your site with templates."),actions:a&&(0,l.createElement)(Ea,{templateType:Ot,toggleProps:{as:gs}}),content:(0,l.createElement)(l.Fragment,null,n&&(0,b.__)("Loading templates…"),!n&&(0,l.createElement)(_.__experimentalItemGroup,null,!t?.length&&(0,l.createElement)(_.__experimentalItem,null,(0,b.__)("No templates found")),s.map((e=>(0,l.createElement)(wa,{postType:Ot,postId:e.id,key:e.id,withChevron:!0},(0,Qt.decodeEntities)(e.title?.rendered||e.slug)))))),footer:!e&&(0,l.createElement)(Es,{withChevron:!0,...r},(0,b.__)("Manage all templates"))})}function Ca(e,t){const{record:n,title:s,description:r,isLoaded:a,icon:i}=(0,d.useSelect)((n=>{const{getEditedPostType:s,getEditedPostId:r}=n(os),{getEditedEntityRecord:a,hasFinishedResolution:i}=n(f.store),{__experimentalGetTemplateInfo:o}=n(g.store),l=null!=e?e:s(),c=null!=t?t:r(),u=a("postType",l,c),d=c&&i("getEditedEntityRecord",["postType",l,c]),p=o(u);return{record:u,title:p.title,description:p.description,isLoaded:d,icon:p.icon}}),[e,t]);return{isLoaded:a,icon:i,record:n,getTitle:()=>s?(0,Qt.decodeEntities)(s):null,getDescription:()=>r?(0,Qt.decodeEntities)(r):null}}var Sa=(0,l.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(E.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"}));var ka=(0,l.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(E.Path,{d:"M12 3.3c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8s-4-8.8-8.8-8.8zm6.5 5.5h-2.6C15.4 7.3 14.8 6 14 5c2 .6 3.6 2 4.5 3.8zm.7 3.2c0 .6-.1 1.2-.2 1.8h-2.9c.1-.6.1-1.2.1-1.8s-.1-1.2-.1-1.8H19c.2.6.2 1.2.2 1.8zM12 18.7c-1-.7-1.8-1.9-2.3-3.5h4.6c-.5 1.6-1.3 2.9-2.3 3.5zm-2.6-4.9c-.1-.6-.1-1.1-.1-1.8 0-.6.1-1.2.1-1.8h5.2c.1.6.1 1.1.1 1.8s-.1 1.2-.1 1.8H9.4zM4.8 12c0-.6.1-1.2.2-1.8h2.9c-.1.6-.1 1.2-.1 1.8 0 .6.1 1.2.1 1.8H5c-.2-.6-.2-1.2-.2-1.8zM12 5.3c1 .7 1.8 1.9 2.3 3.5H9.7c.5-1.6 1.3-2.9 2.3-3.5zM10 5c-.8 1-1.4 2.3-1.8 3.8H5.5C6.4 7 8 5.6 10 5zM5.5 15.3h2.6c.4 1.5 1 2.8 1.8 3.7-1.8-.6-3.5-2-4.4-3.7zM14 19c.8-1 1.4-2.2 1.8-3.7h2.6C17.6 17 16 18.4 14 19z"}));const Ta=[Ot,It];function Pa(e,t){return(0,d.useSelect)((n=>{const{getTheme:s,getPlugin:r,getEntityRecord:a,getMedia:i,getUser:o,getEditedEntityRecord:l}=n(f.store),c=l("postType",e,t);if(Ta.includes(c.type)){if(c.has_theme_file&&(c.origin===Mt.theme||!c.origin&&[Mt.theme,Mt.custom].includes(c.source)))return{type:"theme",icon:hs,text:s(c.theme)?.name?.rendered||c.theme,isCustomized:c.source===Mt.custom};if(c.has_theme_file&&c.origin===Mt.plugin)return{type:Mt.plugin,icon:Sa,text:r(c.theme)?.name||c.theme,isCustomized:c.source===Mt.custom};if(!c.has_theme_file&&c.source===Mt.custom&&!c.author){const e=a("root","__unstableBase");return{type:"site",icon:ka,imageUrl:e?.site_logo?i(e.site_logo)?.source_url:void 0,text:e?.name,isCustomized:!1}}}const u=o(c.author);return{type:"user",icon:Br,imageUrl:u?.avatar_urls?.[48],text:u?.nickname,isCustomized:!1}}),[e,t])}function Na({imageUrl:e}){const[t,n]=(0,l.useState)(!1);return(0,l.createElement)("div",{className:v()("edit-site-list-added-by__avatar",{"is-loaded":t})},(0,l.createElement)("img",{onLoad:()=>n(!0),alt:"",src:e}))}function Oa({postType:e,postId:t}){const{text:n,icon:s,imageUrl:r,isCustomized:a}=Pa(e,t);return(0,l.createElement)(_.__experimentalHStack,{alignment:"left"},r?(0,l.createElement)(Na,{imageUrl:r}):(0,l.createElement)("div",{className:"edit-site-list-added-by__icon"},(0,l.createElement)(_.Icon,{icon:s})),(0,l.createElement)("span",null,n,a&&(0,l.createElement)("span",{className:"edit-site-list-added-by__customized-info"},e===Ot?(0,b._x)("Customized","template"):(0,b._x)("Customized","template part"))))}function Ia(e){return!!e&&(e.source===Mt.custom&&!e.has_theme_file)}function Ma({template:e,onClose:t}){const n=(0,Qt.decodeEntities)(e.title.rendered),[s,r]=(0,l.useState)(n),[a,i]=(0,l.useState)(!1),{editEntityRecord:o,__experimentalSaveSpecifiedEntityEdits:c}=(0,d.useDispatch)(f.store),{createSuccessNotice:u,createErrorNotice:p}=(0,d.useDispatch)(xe.store);if(e.type===Ot&&!e.is_custom)return null;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(_.MenuItem,{onClick:()=>{i(!0),r(n)}},(0,b.__)("Rename")),a&&(0,l.createElement)(_.Modal,{title:(0,b.__)("Rename"),onRequestClose:()=>{i(!1)},overlayClassName:"edit-site-list__rename-modal"},(0,l.createElement)("form",{onSubmit:async function(n){n.preventDefault();try{await o("postType",e.type,e.id,{title:s}),r(""),i(!1),t(),await c("postType",e.type,e.id,["title"],{throwOnError:!0}),u(e.type===Ot?(0,b.__)("Template renamed."):(0,b.__)("Template part renamed."),{type:"snackbar"})}catch(t){const n=e.type===Ot?(0,b.__)("An error occurred while renaming the template."):(0,b.__)("An error occurred while renaming the template part."),s=t.message&&"unknown_error"!==t.code?t.message:n;p(s,{type:"snackbar"})}}},(0,l.createElement)(_.__experimentalVStack,{spacing:"5"},(0,l.createElement)(_.TextControl,{__nextHasNoMarginBottom:!0,label:(0,b.__)("Name"),value:s,onChange:r,required:!0}),(0,l.createElement)(_.__experimentalHStack,{justify:"right"},(0,l.createElement)(_.Button,{variant:"tertiary",onClick:()=>{i(!1)}},(0,b.__)("Cancel")),(0,l.createElement)(_.Button,{variant:"primary",type:"submit"},(0,b.__)("Save")))))))}function Aa({postType:e,postId:t,className:n,toggleProps:s,onRemove:r}){const a=(0,d.useSelect)((n=>n(f.store).getEntityRecord("postType",e,t)),[e,t]),{removeTemplate:i,revertTemplate:o}=(0,d.useDispatch)(os),{saveEditedEntityRecord:c}=(0,d.useDispatch)(f.store),{createSuccessNotice:u,createErrorNotice:p}=(0,d.useDispatch)(xe.store),m=Ia(a),h=en(a);if(!m&&!h)return null;return(0,l.createElement)(_.DropdownMenu,{icon:ce,label:(0,b.__)("Actions"),className:n,toggleProps:s},(({onClose:e})=>(0,l.createElement)(_.MenuGroup,null,m&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Ma,{template:a,onClose:e}),(0,l.createElement)(Ra,{onRemove:()=>{i(a),r?.(),e()},title:a.title.rendered})),h&&(0,l.createElement)(_.MenuItem,{info:(0,b.__)("Use the template as supplied by the theme."),onClick:()=>{!async function(){try{await o(a,{allowUndo:!1}),await c("postType",a.type,a.id),u((0,b.sprintf)((0,b.__)('"%s" reverted.'),(0,Qt.decodeEntities)(a.title.rendered)),{type:"snackbar",id:"edit-site-template-reverted"})}catch(e){const t=a.type===Ot?(0,b.__)("An error occurred while reverting the template."):(0,b.__)("An error occurred while reverting the template part."),n=e.message&&"unknown_error"!==e.code?e.message:t;p(n,{type:"snackbar"})}}(),e()}},(0,b.__)("Clear customizations")))))}function Ra({onRemove:e,title:t}){const[n,s]=(0,l.useState)(!1);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(_.MenuItem,{isDestructive:!0,onClick:()=>s(!0)},(0,b.__)("Delete")),(0,l.createElement)(_.__experimentalConfirmDialog,{isOpen:n,onConfirm:e,onCancel:()=>s(!1),confirmButtonText:(0,b.__)("Delete")},(0,b.sprintf)((0,b.__)('Are you sure you want to delete "%s"?'),(0,Qt.decodeEntities)(t))))}var Ba=(0,l.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(E.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"}));var La=(0,l.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(E.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"}));const Da={};function Fa({postId:e,icon:t,title:n}){var s;const r={header:Ba,footer:La},a=kt({postType:It,postId:e});return(0,l.createElement)(Es,{className:"edit-site-sidebar-navigation-screen-template__template-area-button",...a,icon:null!==(s=r[t])&&void 0!==s?s:hs,withChevron:!0},(0,l.createElement)(_.__experimentalTruncate,{limit:20,ellipsizeMode:"tail",numberOfLines:1,className:"edit-site-sidebar-navigation-screen-template__template-area-label-text"},(0,Qt.decodeEntities)(n)))}function Va(){const{editEntityRecord:e}=(0,d.useDispatch)(f.store),{allowCommentsOnNewPosts:t,templatePartAreas:n,postsPerPage:s,postsPageTitle:r,postsPageId:a,currentTemplateParts:i}=(0,d.useSelect)((e=>{const{getEntityRecord:t}=e(f.store),{getSettings:n,getCurrentTemplateTemplateParts:s}=nt(e(os)),r=t("root","site"),a=r?.page_for_posts?t("postType","page",r?.page_for_posts):Da;return{allowCommentsOnNewPosts:"open"===r?.default_comment_status,postsPageTitle:a?.title?.rendered,postsPageId:a?.id,postsPerPage:r?.posts_per_page,templatePartAreas:n()?.defaultTemplatePartAreas,currentTemplateParts:s()}}),[]),[o,c]=(0,l.useState)(""),[u,p]=(0,l.useState)(1),[m,h]=(0,l.useState)("");(0,l.useEffect)((()=>{c(t),h(r),p(s)}),[r,t,s]);const g=(0,l.useMemo)((()=>i.length&&n?i.map((({templatePart:e,block:t})=>({...n?.find((({area:t})=>t===e?.area)),...e,clientId:t.clientId}))):[]),[i,n]);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(vr,{spacing:6},a&&(0,l.createElement)(gr,null,(0,l.createElement)(_.__experimentalInputControl,{className:"edit-site-sidebar-navigation-screen__input-control",placeholder:(0,b.__)("No Title"),size:"__unstable-large",value:m,onChange:(0,ae.debounce)((t=>{h(t),e("postType","page",a,{title:t})}),300),label:(0,b.__)("Blog title"),help:(0,b.__)("Set the Posts Page title. Appears in search results, and when the page is shared on social media.")})),(0,l.createElement)(gr,null,(0,l.createElement)(_.__experimentalNumberControl,{className:"edit-site-sidebar-navigation-screen__input-control",placeholder:0,value:u,size:"__unstable-large",spinControls:"custom",step:"1",min:"1",onChange:t=>{p(t),e("root","site",void 0,{posts_per_page:t})},label:(0,b.__)("Posts per page"),help:(0,b.__)("Set the default number of posts to display on blog pages, including categories and tags. Some templates may override this setting.")}))),(0,l.createElement)(vr,{title:(0,b.__)("Discussion"),spacing:3},(0,l.createElement)(gr,null,(0,l.createElement)(_.CheckboxControl,{className:"edit-site-sidebar-navigation-screen__input-control",label:(0,b.__)("Allow comments on new posts"),help:(0,b.__)("Changes will apply to new posts only. Individual posts may override these settings."),checked:o,onChange:t=>{c(t),e("root","site",void 0,{default_comment_status:t?"open":null})}}))),(0,l.createElement)(vr,{title:(0,b.__)("Areas"),spacing:3},(0,l.createElement)(_.__experimentalItemGroup,null,g.map((({clientId:e,label:t,icon:n,theme:s,slug:r,title:a})=>(0,l.createElement)(gr,{key:e},(0,l.createElement)(Fa,{postId:`${s}//${r}`,title:a?.rendered||t,icon:n})))))))}function za(){const e=(0,_.__experimentalUseNavigator)(),{params:{postType:t,postId:n}}=e,{setCanvasMode:s}=nt((0,d.useDispatch)(os)),{title:r,content:a,description:i,footer:o}=function(e,t){const{getDescription:n,getTitle:s,record:r}=Ca(e,t),a=(0,d.useSelect)((e=>e(f.store).getCurrentTheme()),[]),i=Pa(e,t),o="theme"===i.type&&r.theme===a?.stylesheet,c=s();let u=n();!u&&i.text&&(u=(0,b.__)("This is a custom template that can be applied manually to any Post or Page."));const p="home"===r?.slug||"index"===r?.slug?(0,l.createElement)(Va,null):null,m=r?.modified?(0,l.createElement)(_r,{record:r}):null;return{title:c,description:(0,l.createElement)(l.Fragment,null,u,i.text&&!o&&(0,l.createElement)("span",{className:"edit-site-sidebar-navigation-screen-template__added-by-description"},(0,l.createElement)("span",{className:"edit-site-sidebar-navigation-screen-template__added-by-description-author"},(0,l.createElement)("span",{className:"edit-site-sidebar-navigation-screen-template__added-by-description-author-icon"},i.imageUrl?(0,l.createElement)("img",{src:i.imageUrl,alt:"",width:"24",height:"24"}):(0,l.createElement)(_.Icon,{icon:i.icon})),i.text),i.isCustomized&&(0,l.createElement)("span",{className:"edit-site-sidebar-navigation-screen-template__added-by-description-customized"},(0,b._x)("(Customized)","template")))),content:p,footer:m}}(t,n);return(0,l.createElement)(vs,{title:r,actions:(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Aa,{postType:t,postId:n,toggleProps:{as:gs},onRemove:()=>{e.goTo(`/${t}/all`)}}),(0,l.createElement)(gs,{onClick:()=>s("edit"),label:(0,b.__)("Edit"),icon:xs})),description:i,content:a,footer:o})}var Ga=(0,l.createElement)(E.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(E.Path,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5z"}));var Ha=(0,l.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(E.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"}));var Ua=(0,l.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(E.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"}));const Wa=()=>(0,d.useSelect)((e=>e(f.store).getEntityRecords("postType",It,{per_page:-1})),[]),ja=(e,t)=>{const n=e.toLowerCase(),s=t.map((e=>e.title.rendered.toLowerCase()));if(!s.includes(n))return e;let r=2;for(;s.includes(`${n} ${r}`);)r++;return`${e} ${r}`},qa=e=>pa(e).replace(/[^\w-]+/g,"")||"wp-custom-part";function Ya({closeModal:e,blocks:t=[],onCreate:n,onError:s}){const{createErrorNotice:r}=(0,d.useDispatch)(xe.store),{saveEntityRecord:a}=(0,d.useDispatch)(f.store),i=Wa(),[o,u]=(0,l.useState)(""),[p,m]=(0,l.useState)(At),[h,y]=(0,l.useState)(!1),v=(0,ae.useInstanceId)(Ya),E=(0,d.useSelect)((e=>e(g.store).__experimentalGetDefaultTemplatePartAreas()),[]);return(0,l.createElement)(_.Modal,{title:(0,b.__)("Create template part"),onRequestClose:e,overlayClassName:"edit-site-create-template-part-modal"},(0,l.createElement)("form",{onSubmit:async e=>{e.preventDefault(),await async function(){if(o&&!h)try{y(!0);const e=ja(o,i),s=qa(e),r=await a("postType",It,{slug:s,title:e,content:(0,c.serialize)(t),area:p},{throwOnError:!0});await n(r)}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,b.__)("An error occurred while creating the template part.");r(t,{type:"snackbar"}),s?.()}finally{y(!1)}}()}},(0,l.createElement)(_.__experimentalVStack,{spacing:"4"},(0,l.createElement)(_.TextControl,{__nextHasNoMarginBottom:!0,label:(0,b.__)("Name"),value:o,onChange:u,required:!0}),(0,l.createElement)(_.BaseControl,{label:(0,b.__)("Area"),id:`edit-site-create-template-part-modal__area-selection-${v}`,className:"edit-site-create-template-part-modal__area-base-control"},(0,l.createElement)(_.__experimentalRadioGroup,{label:(0,b.__)("Area"),className:"edit-site-create-template-part-modal__area-radio-group",id:`edit-site-create-template-part-modal__area-selection-${v}`,onChange:m,checked:p},E.map((({icon:e,label:t,area:n,description:s})=>(0,l.createElement)(_.__experimentalRadio,{key:t,value:n,className:"edit-site-create-template-part-modal__area-radio"},(0,l.createElement)(_.Flex,{align:"start",justify:"start"},(0,l.createElement)(_.FlexItem,null,(0,l.createElement)(_.Icon,{icon:e})),(0,l.createElement)(_.FlexBlock,{className:"edit-site-create-template-part-modal__option-label"},t,(0,l.createElement)("div",null,s)),(0,l.createElement)(_.FlexItem,{className:"edit-site-create-template-part-modal__checkbox"},p===n&&(0,l.createElement)(_.Icon,{icon:w})))))))),(0,l.createElement)(_.__experimentalHStack,{justify:"right"},(0,l.createElement)(_.Button,{variant:"tertiary",onClick:()=>{e()}},(0,b.__)("Cancel")),(0,l.createElement)(_.Button,{variant:"primary",type:"submit","aria-disabled":!o||h,isBusy:h},(0,b.__)("Create"))))))}const Za=(e,t,n)=>t===n.findIndex((t=>e.name===t.name));var Xa=n(4793),Ka=n.n(Xa);const Ja=e=>e.name||"",Qa=e=>e.title,$a=e=>e.description||"",ei=e=>e.keywords||[],ti=()=>!1;function ni(e=""){return ua(e,{splitRegexp:[/([\p{Ll}\p{Lo}\p{N}])([\p{Lu}\p{Lt}])/gu,/([\p{Lu}\p{Lt}])([\p{Lu}\p{Lt}][\p{Ll}\p{Lo}])/gu],stripRegexp:/(\p{C}|\p{P}|\p{S})+/giu}).split(" ").filter(Boolean)}function si(e=""){return e=(e=(e=Ka()(e)).replace(/^\//,"")).toLowerCase()}const ri=(e="")=>ni(si(e)),ai=(e=[],t="",n={})=>{const s=ri(t),r=n.categoryId!==Bt&&!s.length,a={...n,onlyFilterByCategory:r},i=r?0:1,o=e.map((e=>[e,ii(e,t,a)])).filter((([,e])=>e>i));return 0===s.length||o.sort((([,e],[,t])=>t-e)),o.map((([e])=>e))};function ii(e,t,n){const{categoryId:s,getName:r=Ja,getTitle:a=Qa,getDescription:i=$a,getKeywords:o=ei,hasCategory:l=ti,onlyFilterByCategory:c}=n;let u=s===Bt||s===Lt&&e.type===Rt.user||l(e,s)?1:0;if(!u||c)return u;const d=r(e),p=a(e),m=i(e),h=o(e),f=si(t),g=si(p);if(f===g)u+=30;else if(g.startsWith(f))u+=20;else{const e=[d,p,m,...h].join(" ");0===((e,t)=>e.filter((e=>!ri(t).some((t=>t.includes(e))))))(ni(f),e).length&&(u+=10)}return u}const oi=[],li=(e,t)=>e&&t?e+"//"+t:null,ci=Mn(((e,t,n="")=>{var s;const{getEntityRecords:r,getIsResolving:a}=e(f.store),{__experimentalGetDefaultTemplatePartAreas:i}=e(g.store),o={per_page:-1},l=(null!==(s=r("postType",It,o))&&void 0!==s?s:oi).map((e=>(e=>({blocks:(0,c.parse)(e.content.raw,{__unstableSkipMigrationLogs:!0}),categories:[e.area],description:e.description||"",isCustom:e.source===Mt.custom,keywords:e.keywords||[],id:li(e.theme,e.slug),name:li(e.theme,e.slug),title:(0,Qt.decodeEntities)(e.title.rendered),type:e.type,templatePart:e}))(e))),u=(i()||[]).map((e=>e.area)),d=a("getEntityRecords",["postType",It,o]),p=ai(l,n,{categoryId:t,hasCategory:(e,t)=>t!==At?e.templatePart.area===t:e.templatePart.area===t||!u.includes(e.templatePart.area)});return{patterns:p,isResolving:d}}),(e=>[e(f.store).getEntityRecords("postType",It,{per_page:-1}),e(f.store).getIsResolving("getEntityRecords",["postType",It,{per_page:-1}]),e(g.store).__experimentalGetDefaultTemplatePartAreas()])),ui=Mn((e=>{var t;const{getSettings:n}=nt(e(os)),s=n();return{patterns:[...(null!==(t=s.__experimentalAdditionalBlockPatterns)&&void 0!==t?t:s.__experimentalBlockPatterns)||[],...e(f.store).getBlockPatterns()||[]].filter((e=>!Dt.includes(e.source))).filter(Za).filter((e=>!1!==e.inserter)).map((e=>({...e,keywords:e.keywords||[],type:Rt.theme,blocks:(0,c.parse)(e.content,{__unstableSkipMigrationLogs:!0})}))),isResolving:!1}}),(e=>[e(f.store).getBlockPatterns(),nt(e(os)).getSettings()])),di=Mn(((e,t,n,s="")=>{const{patterns:r}=ui(e),{patterns:a}=pi(e);let i=[...r||[],...a||[]];return n&&(i=i.filter((e=>e.id?e.syncStatus===n:n===Ft.unsynced))),i=ai(i,s,t?{categoryId:t,hasCategory:(e,t)=>e.categories?.includes(t)}:{hasCategory:e=>!e.hasOwnProperty("categories")}),{patterns:i,isResolving:!1}}),(e=>[ui(e),pi(e)])),pi=Mn(((e,t,n="")=>{const{getEntityRecords:s,getIsResolving:r,getUserPatternCategories:a}=e(f.store),i={per_page:-1},o=s("postType",Rt.user,i),l=a(),u=new Map;l.forEach((e=>u.set(e.id,e)));let d=o?o.map((e=>((e,t)=>({blocks:(0,c.parse)(e.content.raw,{__unstableSkipMigrationLogs:!0}),...e.wp_pattern_category.length>0&&{categories:e.wp_pattern_category.map((e=>t&&t.get(e)?t.get(e).slug:e))},id:e.id,name:e.slug,syncStatus:e.wp_pattern_sync_status||Ft.full,title:e.title.raw,type:Rt.user,patternBlock:e}))(e,u))):oi;const p=r("getEntityRecords",["postType",Rt.user,i]);return t&&(d=d.filter((e=>e.syncStatus===t))),d=ai(d,n,{hasCategory:()=>!0}),{patterns:d,isResolving:p,categories:l}}),(e=>[e(f.store).getEntityRecords("postType",Rt.user,{per_page:-1}),e(f.store).getIsResolving("getEntityRecords",["postType",Rt.user,{per_page:-1}]),e(f.store).getUserPatternCategories()]));var mi=(e,t,{search:n="",syncStatus:s}={})=>(0,d.useSelect)((r=>e===It?ci(r,t,n):e===Rt.theme?di(r,t,s,n):e===Rt.user?pi(r,s,n):{patterns:oi,isResolving:!1}),[t,e,n,s]);function hi(){const e=function(){const e=(0,d.useSelect)((e=>{var t;const{getSettings:n}=nt(e(os)),s=n();return null!==(t=s.__experimentalAdditionalBlockPatternCategories)&&void 0!==t?t:s.__experimentalBlockPatternCategories}));return[...e||[],...(0,d.useSelect)((e=>e(f.store).getBlockPatternCategories()))||[]]}();e.push({name:At,label:(0,b.__)("Uncategorized")});const t=function(){const e=(0,d.useSelect)((e=>{var t;const{getSettings:n}=nt(e(os));return null!==(t=n().__experimentalAdditionalBlockPatterns)&&void 0!==t?t:n().__experimentalBlockPatterns})),t=(0,d.useSelect)((e=>e(f.store).getBlockPatterns()));return(0,l.useMemo)((()=>[...e||[],...t||[]].filter((e=>!Dt.includes(e.source))).filter(Za).filter((e=>!1!==e.inserter))),[e,t])}(),{patterns:n,categories:s}=mi(Rt.user),r=(0,l.useMemo)((()=>{const r={},a=[];e.forEach((e=>{r[e.name]||(r[e.name]={...e,count:0})})),s.forEach((e=>{r[e.name]||(r[e.name]={...e,count:0})})),t.forEach((e=>{e.categories?.forEach((e=>{r[e]&&(r[e].count+=1)})),e.categories?.length||(r.uncategorized.count+=1)})),n.forEach((e=>{e.categories?.forEach((e=>{r[e]&&(r[e].count+=1)})),e.categories?.length||(r.uncategorized.count+=1)})),[...e,...s].forEach((e=>{r[e.name].count&&!a.find((t=>t.name===e.name))&&a.push(r[e.name])}));const i=a.sort(((e,t)=>e.label.localeCompare(t.label)));return i.unshift({name:Lt,label:(0,b.__)("My patterns"),count:n.length}),i.unshift({name:Bt,label:(0,b.__)("All patterns"),description:(0,b.__)("A list of all patterns from all sources"),count:t.length+n.length}),i}),[e,t,s,n]);return{patternCategories:r,hasPatterns:!!r.length}}const{useHistory:fi,useLocation:gi}=nt(Et.privateApis),{CreatePatternModal:yi}=nt(Pt.privateApis);function vi(){const e=fi(),{params:t}=gi(),[n,s]=(0,l.useState)(!1),[r,a]=(0,l.useState)(!1),i=(0,d.useSelect)((e=>e(f.store).getCurrentTheme()?.is_block_theme),[]),{createPatternFromFile:o}=nt((0,d.useDispatch)(Pt.store)),{createSuccessNotice:c,createErrorNotice:u}=(0,d.useDispatch)(xe.store),p=(0,l.useRef)(),{patternCategories:m}=hi();function h(){s(!1),a(!1)}const g=[{icon:fs,onClick:()=>s(!0),title:(0,b.__)("Create pattern")}];return i&&g.push({icon:Ha,onClick:()=>a(!0),title:(0,b.__)("Create template part")}),g.push({icon:Ua,onClick:()=>{p.current.click()},title:(0,b.__)("Import pattern from JSON")}),(0,l.createElement)(l.Fragment,null,(0,l.createElement)(_.DropdownMenu,{controls:g,toggleProps:{as:gs},icon:zr,label:(0,b.__)("Create pattern")}),n&&(0,l.createElement)(yi,{onClose:()=>s(!1),onSuccess:function({pattern:t,categoryId:n}){s(!1),e.push({postId:t.id,postType:Rt.user,categoryType:Rt.theme,categoryId:n,canvas:"edit"})},onError:h}),r&&(0,l.createElement)(Ya,{closeModal:()=>a(!1),blocks:[],onCreate:function(t){a(!1),e.push({postId:t.id,postType:It,canvas:"edit"})},onError:h}),(0,l.createElement)("input",{type:"file",accept:".json",hidden:!0,ref:p,onChange:async n=>{const s=n.target.files?.[0];if(s)try{const n=t.categoryType!==It&&m.find((e=>e.name===t.categoryId))?.id,r=await o(s,n?[n]:void 0);n||e.push({path:"/patterns",categoryType:Rt.theme,categoryId:Bt}),c((0,b.sprintf)((0,b.__)('Imported "%s" from JSON.'),r.title.raw),{type:"snackbar",id:"import-pattern-success"})}catch(e){u(e.message,{type:"snackbar",id:"import-pattern-error"})}finally{n.target.value=""}}}))}function _i({count:e,icon:t,id:n,isActive:s,label:r,type:a}){const i=kt({path:"/patterns",categoryType:a,categoryId:n});if(e)return(0,l.createElement)(Es,{...i,icon:t,suffix:(0,l.createElement)("span",null,e),"aria-current":s?"true":void 0},r)}const bi=e=>{const t=e||[],n=(0,d.useSelect)((e=>e(g.store).__experimentalGetDefaultTemplatePartAreas()),[]),s={header:{},footer:{},sidebar:{},uncategorized:{}};n.forEach((e=>s[e.area]={...e,templateParts:[]}));return t.reduce(((e,t)=>(e[e[t.area]?t.area:At].templateParts.push(t),e)),s)};function Ei({areas:e,currentArea:t,currentType:n}){return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"edit-site-sidebar-navigation-screen-patterns__group-header"},(0,l.createElement)(_.__experimentalHeading,{level:2},(0,b.__)("Template parts"))),(0,l.createElement)(_.__experimentalItemGroup,{className:"edit-site-sidebar-navigation-screen-patterns__group"},Object.entries(e).map((([e,{label:s,templateParts:r}])=>(0,l.createElement)(_i,{key:e,count:r?.length,icon:(0,g.getTemplatePartIcon)(e),label:s,id:e,type:It,isActive:t===e&&n===It})))))}function wi({categories:e,currentCategory:t,currentType:n}){return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(_.__experimentalItemGroup,{className:"edit-site-sidebar-navigation-screen-patterns__group"},e.map((e=>(0,l.createElement)(_i,{key:e.name,count:e.count,label:e.label,icon:Ga,id:e.name,type:"pattern",isActive:t===`${e.name}`&&(n===Rt.theme||n===Rt.user)})))))}function xi(){const e=(0,ae.useViewportMatch)("medium","<"),{categoryType:t,categoryId:n}=(0,wt.getQueryArgs)(window.location.href),s=n||Bt,r=t||Rt.theme,{templatePartAreas:a,hasTemplateParts:i,isLoading:o}=function(){const{records:e,isResolving:t}=(0,f.useEntityRecords)("postType",It,{per_page:-1});return{hasTemplateParts:!!e&&!!e.length,isLoading:t,templatePartAreas:bi(e)}}(),{patternCategories:c,hasPatterns:u}=hi(),p=(0,d.useSelect)((e=>e(f.store).getCurrentTheme()?.is_block_theme),[]),m=(0,d.useSelect)((e=>!!e(os).getSettings().supportsTemplatePartsMode),[]),h=kt({path:"/wp_template_part/all",didAccessPatternsPage:!p&&m?1:void 0}),g=e?void 0:(0,l.createElement)(_.__experimentalItemGroup,null,(0,l.createElement)(Es,{as:"a",href:"edit.php?post_type=wp_block",withChevron:!0},(0,b.__)("Manage all of my patterns")),(p||m)&&(0,l.createElement)(Es,{withChevron:!0,...h},(0,b.__)("Manage all template parts")));return(0,l.createElement)(vs,{isRoot:!p,title:(0,b.__)("Patterns"),description:(0,b.__)("Manage what patterns are available when editing the site."),actions:(0,l.createElement)(vi,null),footer:g,content:(0,l.createElement)(l.Fragment,null,o&&(0,b.__)("Loading patterns…"),!o&&(0,l.createElement)(l.Fragment,null,!i&&!u&&(0,l.createElement)(_.__experimentalItemGroup,{className:"edit-site-sidebar-navigation-screen-patterns__group"},(0,l.createElement)(_.__experimentalItem,null,(0,b.__)("No template parts or patterns found"))),u&&(0,l.createElement)(wi,{categories:c,currentCategory:s,currentType:r}),i&&(0,l.createElement)(Ei,{areas:a,currentArea:s,currentType:r})))})}const{useLocation:Ci}=nt(Et.privateApis);function Si(){const{params:{postId:e,postType:t}={}}=Ci(),{isRequestingSite:n,homepageId:s,url:r}=(0,d.useSelect)((e=>{const{getSite:t,getUnstableBase:n}=e(f.store),s=t(),r=n();return{isRequestingSite:!r,homepageId:"page"===s?.show_on_front?s.page_on_front:null,url:r?.home}}),[]),{setEditedEntity:a,setTemplate:i,setTemplatePart:o,setPage:c,setNavigationMenu:u}=(0,d.useDispatch)(os);(0,l.useEffect)((()=>{if(t&&e)switch(t){case Ot:i(e);break;case It:o(e);break;case Nt:u(e);break;case Rt.user:a(t,e);break;default:c({context:{postType:t,postId:e}})}else s?c({context:{postType:"page",postId:s}}):n||c({path:r})}),[r,e,t,s,n,a,c,i,o,u])}function ki(e,t){var n=e.toLowerCase();return 0===t?function(e){return e.charAt(0).toUpperCase()+e.substr(1)}(n):n}var Ti=(0,l.createElement)(E.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(E.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}));var Pi=(0,l.createElement)(E.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(E.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));const{useLocation:Ni,useHistory:Oi}=nt(Et.privateApis);function Ii(e){var t;let n=null!==(t=e?.path)&&void 0!==t?t:"/";if(e?.postType&&e?.postId)switch(e.postType){case Rt.user:case Ot:case It:case"page":n=`/${encodeURIComponent(e.postType)}/${encodeURIComponent(e.postId)}`;break;default:n=`/navigation/${encodeURIComponent(e.postType)}/${encodeURIComponent(e.postId)}`}return n}function Mi(){const e=Oi(),{params:t}=Ni(),{location:n,params:s,goTo:r}=(0,_.__experimentalUseNavigator)(),a=(0,l.useRef)(!0);(0,l.useEffect)((()=>{function r(n){if(s=n,r=t,Object.entries(s).every((([e,t])=>r[e]===t)))return;var s,r;const a={...t,...n};e.push(a)}a.current?a.current=!1:s?.postType&&s?.postId?r({postType:s?.postType,postId:s?.postId,path:void 0}):n.path.startsWith("/page/")&&s?.postId?r({postType:"page",postId:s?.postId,path:void 0}):"/patterns"===n.path?r({postType:void 0,postId:void 0,canvas:void 0,path:n.path}):r({postType:void 0,postId:void 0,categoryType:void 0,categoryId:void 0,path:"/"===n.path?void 0:n.path})}),[n?.path,s]),(0,l.useEffect)((()=>{const e=Ii(t);n.path!==e&&r(e)}),[t])}const Ai={className:"block-editor-block-settings-menu__popover",placement:"bottom-start"},{useLocation:Ri,useHistory:Bi}=nt(Et.privateApis);function Li(e){const t=Ri(),n=Bi(),{block:s}=e,{clientId:r}=s,{moveBlocksDown:a,moveBlocksUp:i,removeBlocks:o}=(0,d.useDispatch)(we.store),c=(0,b.sprintf)((0,b.__)("Remove %s"),(0,we.BlockTitle)({clientId:r,maximumLength:25})),u=(0,b.sprintf)((0,b.__)("Go to %s"),(0,we.BlockTitle)({clientId:r,maximumLength:25})),p=(0,d.useSelect)((e=>{const{getBlockRootClientId:t}=e(we.store);return t(r)}),[r]),m=(0,l.useCallback)((e=>{const{attributes:s,name:r}=e;"post-type"===s.kind&&s.id&&s.type&&n&&n.push({postType:s.type,postId:s.id,...xt()&&{wp_theme_preview:Ct()}},{backPath:Ii(t.params)}),"core/page-list-item"===r&&s.id&&n&&n.push({postType:"page",postId:s.id,...xt()&&{wp_theme_preview:Ct()}},{backPath:Ii(t.params)})}),[n]);return(0,l.createElement)(_.DropdownMenu,{icon:ce,label:(0,b.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:Ai,noIcons:!0,...e},(({onClose:e})=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(_.MenuGroup,null,(0,l.createElement)(_.MenuItem,{icon:Ti,onClick:()=>{i([r],p),e()}},(0,b.__)("Move up")),(0,l.createElement)(_.MenuItem,{icon:Pi,onClick:()=>{a([r],p),e()}},(0,b.__)("Move down")),"page"===s.attributes?.type&&s.attributes?.id&&(0,l.createElement)(_.MenuItem,{onClick:()=>{m(s),e()}},u)),(0,l.createElement)(_.MenuGroup,null,(0,l.createElement)(_.MenuItem,{onClick:()=>{o([r],!1),e()}},c)))))}const{PrivateListView:Di}=nt(we.privateApis),Fi=["postType","page",{per_page:100,_fields:["id","link","menu_order","parent","title","type"],orderby:"menu_order",order:"asc"}];function Vi({rootClientId:e}){const{listViewRootClientId:t,isLoading:n}=(0,d.useSelect)((t=>{const{areInnerBlocksControlled:n,getBlockName:s,getBlockCount:r,getBlockOrder:a}=t(we.store),{isResolving:i}=t(f.store),o=a(e),l=1===o.length&&"core/page-list"===s(o[0])&&r(o[0])>0,c=i("getEntityRecords",Fi);return{listViewRootClientId:l?o[0]:e,isLoading:!n(e)||c}}),[e]),{replaceBlock:s,__unstableMarkNextChangeAsNotPersistent:r}=(0,d.useDispatch)(we.store),a=(0,l.useCallback)((e=>{"core/navigation-link"!==e.name||e.attributes.url||(r(),s(e.clientId,(0,c.createBlock)("core/navigation-link",e.attributes)))}),[r,s]);return(0,l.createElement)(l.Fragment,null,!n&&(0,l.createElement)(Di,{rootClientId:t,onSelect:a,blockSettingsMenu:Li,showAppender:!1}),(0,l.createElement)("div",{className:"edit-site-sidebar-navigation-screen-navigation-menus__helper-block-editor"},(0,l.createElement)(we.BlockList,null)))}const zi=()=>{};function Gi({navigationMenuId:e}){const{storedSettings:t}=(0,d.useSelect)((e=>{const{getSettings:t}=nt(e(os));return{storedSettings:t(!1)}}),[]),n=(0,l.useMemo)((()=>e?[(0,c.createBlock)("core/navigation",{ref:e})]:[]),[e]);return e&&n?.length?(0,l.createElement)(we.BlockEditorProvider,{settings:t,value:n,onChange:zi,onInput:zi},(0,l.createElement)("div",{className:"edit-site-sidebar-navigation-screen-navigation-menus__content"},(0,l.createElement)(Vi,{rootClientId:n[0].clientId}))):null}function Hi(e){return(0,d.useSelect)((t=>{if(!e)return;const n=t(f.store).getEditedEntityRecord("postType",Nt,e);return"trash"===n.status?void 0:n.title}),[e])}function Ui({id:e}){const t=Hi(e);return e&&void 0!==t?(0,l.createElement)(l.Fragment,null,(0,l.createElement)(_.__experimentalHeading,{className:"edit-site-sidebar-navigation-screen-template-part-navigation-menu__title",size:"11",upperCase:!0,weight:500},t||(0,b.__)("Navigation")),(0,l.createElement)(Gi,{navigationMenuId:e})):null}function Wi({id:e}){const t=Hi(e),n=kt({postId:e,postType:Nt});return e&&void 0!==t?(0,l.createElement)(Es,{withChevron:!0,...n},t||(0,b.__)("(no title)")):null}function ji({menus:e}){return(0,l.createElement)(_.__experimentalItemGroup,{className:"edit-site-sidebar-navigation-screen-template-part-navigation-menu-list"},e.map((e=>(0,l.createElement)(Wi,{key:e,id:e}))))}function qi({menus:e}){return e.length?1===e.length?(0,l.createElement)(Ui,{id:e[0]}):(0,l.createElement)(l.Fragment,null,(0,l.createElement)(_.__experimentalHeading,{className:"edit-site-sidebar-navigation-screen-template-part-navigation-menu__title",size:"11",upperCase:!0,weight:500},(0,b.__)("Navigation")),(0,l.createElement)(ji,{menus:e})):null}function Yi(e,t){const{record:n}=Ca(e,t);if(e!==It)return;const s=function(e){return e?.blocks?e?.blocks:e?.content&&"function"!=typeof e.content?(0,c.parse)(e.content):[]}(n),r=function(e,t){if(!e||!t?.length)return[];const n=t=>{if(!t)return[];const s=[];for(const r of t)if(r.name===e&&s.push(r),r?.innerBlocks){const e=n(r.innerBlocks);e.length&&s.push(...e)}return s};return n(t)}("core/navigation",s);if(!r.length)return;const a=r?.map((e=>e.attributes.ref)),i=[...new Set(a)].filter((e=>e));return i?.length?(0,l.createElement)(qi,{menus:i}):void 0}function Zi(e,t){const{getDescription:n,getTitle:s,record:r}=Ca(e,t),a=(0,d.useSelect)((e=>e(g.store).__experimentalGetDefaultTemplatePartAreas()),[]),{currentTheme:i,userPatternCategories:o}=(0,d.useSelect)((e=>{const{getCurrentTheme:t,getUserPatternCategories:n}=e(f.store);return{currentTheme:t(),userPatternCategories:n()}}),[]),c=Pa(e,t),u="theme"===c.type&&r.theme===i?.stylesheet,p=s();let m=n();!m&&c.text&&(m=e===Rt.user?(0,b.sprintf)((0,b.__)("This is the %s pattern."),s()):(0,b.sprintf)((0,b.__)("This is the %s template part."),s())),!m&&e===Rt.user&&r?.title&&(m=(0,b.sprintf)((0,b.__)("This is the %s pattern."),r.title));const h=r?.modified?(0,l.createElement)(_r,{record:r}):null,y=[];if((e===Rt.user||e===It)&&(y.push({label:(0,b.__)("Syncing"),value:r.wp_pattern_sync_status===Ft.unsynced?(0,b.__)("Not synced"):(0,b.__)("Fully synced")}),0===r.wp_pattern_category?.length&&y.push({label:(0,b.__)("Categories"),value:(0,b.__)("Uncategorized")}),r.wp_pattern_category?.length>0)){const e=new Map;o.forEach((t=>e.set(t.id,t)));const t=r.wp_pattern_category.filter((t=>e.get(t))).map((t=>e.get(t).label));y.push({label:(0,b.__)("Categories"),value:t.length>0?t.join(", "):""})}if(e===It){const e=a.find((e=>e.area===r.area));let t=e?.label;t||(t=r.area?(0,b.sprintf)((0,b.__)("%s (removed)"),(v=r.area,void 0===_&&(_={}),ua(v,ia({delimiter:" ",transform:ki},_)))):(0,b.__)("None")),y.push({label:(0,b.__)("Area"),value:t})}var v,_;e===It&&c.text&&!u&&y.push({label:(0,b.__)("Added by"),value:(0,l.createElement)("span",{className:"edit-site-sidebar-navigation-screen-pattern__added-by-description-author"},c.text)}),e!==It||!c.text||r.origin!==Mt.plugin&&!0!==r.has_theme_file||y.push({label:(0,b.__)("Customized"),value:(0,l.createElement)("span",{className:"edit-site-sidebar-navigation-screen-pattern__added-by-description-customized"},c.isCustomized?(0,b.__)("Yes"):(0,b.__)("No"))});return{title:p,description:m,content:(0,l.createElement)(l.Fragment,null,Yi(e,t),!!y.length&&(0,l.createElement)(vr,{spacing:5,title:(0,b.__)("Details")},y.map((({label:e,value:t})=>(0,l.createElement)(gr,{key:e},(0,l.createElement)(fr,null,e),(0,l.createElement)(yr,null,t)))))),footer:h}}function Xi(){const e=(0,_.__experimentalUseNavigator)(),{params:{postType:t,postId:n}}=e,{categoryType:s}=(0,wt.getQueryArgs)(window.location.href),{setCanvasMode:r}=nt((0,d.useDispatch)(os));Si();const a=Zi(t,n),i=s||t!==It?"/patterns":"/wp_template_part/all";return(0,l.createElement)(vs,{actions:(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Aa,{postType:t,postId:n,toggleProps:{as:gs},onRemove:()=>{e.goTo(i)}}),(0,l.createElement)(gs,{onClick:()=>r("edit"),label:(0,b.__)("Edit"),icon:xs})),backPath:i,...a})}const Ki={per_page:100,status:["publish","draft"],order:"desc",orderby:"date"},Ji=e=>e?.trim()?.length>0;function Qi({menuTitle:e,onClose:t,onSave:n}){const[s,r]=(0,l.useState)(e),a=s!==e&&Ji(s);return(0,l.createElement)(_.Modal,{title:(0,b.__)("Rename"),onRequestClose:t},(0,l.createElement)("form",{className:"sidebar-navigation__rename-modal-form"},(0,l.createElement)(_.__experimentalVStack,{spacing:"3"},(0,l.createElement)(_.TextControl,{__nextHasNoMarginBottom:!0,value:s,placeholder:(0,b.__)("Navigation title"),onChange:r}),(0,l.createElement)(_.__experimentalHStack,{justify:"right"},(0,l.createElement)(_.Button,{variant:"tertiary",onClick:t},(0,b.__)("Cancel")),(0,l.createElement)(_.Button,{disabled:!a,variant:"primary",type:"submit",onClick:e=>{e.preventDefault(),a&&(n({title:s}),t())}},(0,b.__)("Save"))))))}function $i({onClose:e,onConfirm:t}){return(0,l.createElement)(_.__experimentalConfirmDialog,{isOpen:!0,onConfirm:n=>{n.preventDefault(),t(),e()},onCancel:e,confirmButtonText:(0,b.__)("Delete")},(0,b.__)("Are you sure you want to delete this Navigation menu?"))}const eo={position:"bottom right"};function to(e){const{onDelete:t,onSave:n,onDuplicate:s,menuTitle:r}=e,[a,i]=(0,l.useState)(!1),[o,c]=(0,l.useState)(!1),u=()=>{i(!1),c(!1)};return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(_.DropdownMenu,{className:"sidebar-navigation__more-menu",label:(0,b.__)("Actions"),icon:ce,popoverProps:eo},(({onClose:e})=>(0,l.createElement)("div",null,(0,l.createElement)(_.MenuGroup,null,(0,l.createElement)(_.MenuItem,{onClick:()=>{i(!0),e()}},(0,b.__)("Rename")),(0,l.createElement)(_.MenuItem,{onClick:()=>{s(),e()}},(0,b.__)("Duplicate")),(0,l.createElement)(_.MenuItem,{isDestructive:!0,onClick:()=>{c(!0),e()}},(0,b.__)("Delete")))))),o&&(0,l.createElement)($i,{onClose:u,onConfirm:t}),a&&(0,l.createElement)(Qi,{onClose:u,menuTitle:r,onSave:n}))}function no(e,t,n){return e?.rendered?"publish"===n?(0,Qt.decodeEntities)(e?.rendered):(0,b.sprintf)((0,b.__)("%1$s (%2$s)"),(0,Qt.decodeEntities)(e?.rendered),n):(0,b.sprintf)((0,b.__)("(no title %s)"),t)}function so({postId:e}){const t=kt({postId:e,postType:Nt,canvas:"edit"});return(0,l.createElement)(gs,{...t,label:(0,b.__)("Edit"),icon:xs})}function ro({navigationMenu:e,handleDelete:t,handleDuplicate:n,handleSave:s}){const r=e?.title?.rendered;return(0,l.createElement)(ho,{actions:(0,l.createElement)(l.Fragment,null,(0,l.createElement)(to,{menuTitle:(0,Qt.decodeEntities)(r),onDelete:t,onSave:s,onDuplicate:n}),(0,l.createElement)(so,{postId:e?.id})),title:no(e?.title,e?.id,e?.status),description:(0,b.__)("Navigation menus are a curated collection of blocks that allow visitors to get around your site.")},(0,l.createElement)(Gi,{navigationMenuId:e?.id}))}const ao="wp_navigation";function io(){const{params:{postId:e}}=(0,_.__experimentalUseNavigator)(),{record:t,isResolving:n}=(0,f.useEntityRecord)("postType",ao,e),{isSaving:s,isDeleting:r}=(0,d.useSelect)((t=>{const{isSavingEntityRecord:n,isDeletingEntityRecord:s}=t(f.store);return{isSaving:n("postType",ao,e),isDeleting:s("postType",ao,e)}}),[e]),a=n||s||r,i=t?.title?.rendered||t?.slug,{handleSave:o,handleDelete:c,handleDuplicate:u}=uo(),p=()=>c(t),m=e=>o(t,e),h=()=>u(t);return a?(0,l.createElement)(ho,{description:(0,b.__)("Navigation menus are a curated collection of blocks that allow visitors to get around your site.")},(0,l.createElement)(_.Spinner,{className:"edit-site-sidebar-navigation-screen-navigation-menus__loading"})):a||t?t?.content?.raw?(0,l.createElement)(ro,{navigationMenu:t,handleDelete:p,handleSave:m,handleDuplicate:h}):(0,l.createElement)(ho,{actions:(0,l.createElement)(to,{menuTitle:(0,Qt.decodeEntities)(i),onDelete:p,onSave:m,onDuplicate:h}),title:no(t?.title,t?.id,t?.status),description:(0,b.__)("This Navigation Menu is empty.")}):(0,l.createElement)(ho,{description:(0,b.__)("Navigation Menu missing.")})}function oo(){const{goTo:e}=(0,_.__experimentalUseNavigator)(),{deleteEntityRecord:t}=(0,d.useDispatch)(f.store),{createSuccessNotice:n,createErrorNotice:s}=(0,d.useDispatch)(xe.store);return async r=>{const a=r?.id;try{await t("postType",ao,a,{force:!0},{throwOnError:!0}),n((0,b.__)("Deleted Navigation menu"),{type:"snackbar"}),e("/navigation")}catch(e){s((0,b.sprintf)((0,b.__)("Unable to delete Navigation menu (%s)."),e?.message),{type:"snackbar"})}}}function lo(){const{getEditedEntityRecord:e}=(0,d.useSelect)((e=>{const{getEditedEntityRecord:t}=e(f.store);return{getEditedEntityRecord:t}}),[]),{editEntityRecord:t,__experimentalSaveSpecifiedEntityEdits:n}=(0,d.useDispatch)(f.store),{createSuccessNotice:s,createErrorNotice:r}=(0,d.useDispatch)(xe.store);return async(a,i)=>{if(!i)return;const o=a?.id,l=e("postType",Nt,o);t("postType",ao,o,i);const c=Object.keys(i);try{await n("postType",ao,o,c,{throwOnError:!0}),s((0,b.__)("Renamed Navigation menu"),{type:"snackbar"})}catch(e){t("postType",ao,o,l),r((0,b.sprintf)((0,b.__)("Unable to rename Navigation menu (%s)."),e?.message),{type:"snackbar"})}}}function co(){const{goTo:e}=(0,_.__experimentalUseNavigator)(),{saveEntityRecord:t}=(0,d.useDispatch)(f.store),{createSuccessNotice:n,createErrorNotice:s}=(0,d.useDispatch)(xe.store);return async r=>{const a=r?.title?.rendered||r?.slug;try{const s=await t("postType",ao,{title:(0,b.sprintf)((0,b.__)("%s (Copy)"),a),content:r?.content?.raw,status:"publish"},{throwOnError:!0});s&&(n((0,b.__)("Duplicated Navigation menu"),{type:"snackbar"}),e(`/navigation/${ao}/${s.id}`))}catch(e){s((0,b.sprintf)((0,b.__)("Unable to duplicate Navigation menu (%s)."),e?.message),{type:"snackbar"})}}}function uo(){return{handleDelete:oo(),handleSave:lo(),handleDuplicate:co()}}let po=!1;function mo(){const{records:e,isResolving:t,hasResolved:n}=(0,f.useEntityRecords)("postType",Nt,Ki),s=t&&!n,{getNavigationFallbackId:r}=nt((0,d.useSelect)(f.store)),a=e?.[0];a&&(po=!0),a||t||!n||po||r();const{handleSave:i,handleDelete:o,handleDuplicate:c}=uo(),u=!!e?.length;return s?(0,l.createElement)(ho,null,(0,l.createElement)(_.Spinner,{className:"edit-site-sidebar-navigation-screen-navigation-menus__loading"})):s||u?1===e?.length?(0,l.createElement)(ro,{navigationMenu:a,handleDelete:()=>o(a),handleDuplicate:()=>c(a),handleSave:e=>i(a,e)}):(0,l.createElement)(ho,null,(0,l.createElement)(_.__experimentalItemGroup,null,e?.map((({id:e,title:t,status:n},s)=>(0,l.createElement)(fo,{postId:e,key:e,withChevron:!0,icon:ds},function(e,t,n){return e?"publish"===n?(0,Qt.decodeEntities)(e):(0,b.sprintf)((0,b.__)("%1$s (%2$s)"),(0,Qt.decodeEntities)(e),n):(0,b.sprintf)((0,b.__)("(no title %s)"),t)}(t?.rendered,s+1,n)))))):(0,l.createElement)(ho,{description:(0,b.__)("No Navigation Menus found.")})}function ho({children:e,actions:t,title:n,description:s}){return(0,l.createElement)(vs,{title:n||(0,b.__)("Navigation"),actions:t,description:s||(0,b.__)("Manage your Navigation menus."),content:e})}const fo=({postId:e,...t})=>{const n=kt({postId:e,postType:Nt});return(0,l.createElement)(Es,{...n,...t})},go={[Ot]:{title:(0,b.__)("All templates"),description:(0,b.__)("Create new templates, or reset any customizations made to the templates supplied by your theme.")},[It]:{title:(0,b.__)("All template parts"),description:(0,b.__)("Create new template parts, or reset any customizations made to the template parts supplied by your theme."),backPath:"/patterns"}},{useLocation:yo}=nt(Et.privateApis);function vo(){const{params:{postType:e}}=(0,_.__experimentalUseNavigator)(),{params:{didAccessPatternsPage:t}}=yo(),n=(0,d.useSelect)((e=>!!e(os).getSettings().supportsTemplatePartsMode),[]);return(0,l.createElement)(vs,{isRoot:n&&!t,title:go[e].title,description:go[e].description,backPath:go[e].backPath})}function _o({className:e="edit-site-save-button__button",variant:t="primary",showTooltip:n=!0,defaultLabel:s,icon:r,__next40pxDefaultSize:a=!1}){const{isDirty:i,isSaving:o,isSaveViewOpen:c}=(0,d.useSelect)((e=>{const{__experimentalGetDirtyEntityRecords:t,isSavingEntityRecord:n}=e(f.store),s=t(),{isSaveViewOpened:r}=e(os);return{isDirty:s.length>0,isSaving:s.some((e=>n(e.kind,e.name,e.key))),isSaveViewOpen:r()}}),[]),{setIsSaveViewOpened:u}=(0,d.useDispatch)(os),p=xt()||i,m=o||!p,h=xt()?o?(0,b.__)("Activating"):m?(0,b.__)("Saved"):i?(0,b.__)("Activate & Save"):(0,b.__)("Activate"):o?(0,b.__)("Saving"):m?(0,b.__)("Saved"):s||(0,b.__)("Save");return(0,l.createElement)(_.Button,{variant:t,className:e,"aria-disabled":m,"aria-expanded":c,isBusy:o,onClick:m?void 0:()=>u(!0),label:h,shortcut:m?void 0:Ss.displayShortcut.primary("s"),showTooltip:n,icon:r,__next40pxDefaultSize:a},h)}const{useLocation:bo}=nt(Et.privateApis),Eo=[{kind:"postType",name:Nt}];function wo(){const e="site-edit-save-notice",{params:t}=bo(),{__unstableMarkLastChangeAsPersistent:n}=(0,d.useDispatch)(we.store),{createSuccessNotice:s,createErrorNotice:r,removeNotice:a}=(0,d.useDispatch)(xe.store),{dirtyCurrentEntity:i,countUnsavedChanges:o,isDirty:c,isSaving:u}=(0,d.useSelect)((e=>{const{__experimentalGetDirtyEntityRecords:n,isSavingEntityRecord:s}=e(f.store),r=n();let a=null;return 1===r.length&&(t.path?.includes("wp_global_styles")?a=r.find((e=>"globalStyles"===e.name)):t.postId&&(a=r.find((e=>e.name===t.postType&&String(e.key)===t.postId)))),{dirtyCurrentEntity:a,isDirty:r.length>0,isSaving:r.some((e=>s(e.kind,e.name,e.key))),countUnsavedChanges:r.length}}),[t.path,t.postType,t.postId]),{editEntityRecord:p,saveEditedEntityRecord:m,__experimentalSaveSpecifiedEntityEdits:h}=(0,d.useDispatch)(f.store),g=u||!c&&!xt();let y=i?(0,b.__)("Save"):(0,b.sprintf)((0,b._n)("Review %d change…","Review %d changes…",o),o);u&&(y=(0,b.__)("Saving"));return(0,l.createElement)(_.__experimentalHStack,{className:"edit-site-save-hub",alignment:"right",spacing:4},i?(0,l.createElement)(_.Button,{variant:"primary",onClick:async()=>{if(!i)return;a(e);const{kind:t,name:o,key:l,property:c}=i;try{"root"===i.kind&&"site"===o?await h("root","site",void 0,[c]):(Eo.some((e=>e.kind===t&&e.name===o))&&p(t,o,l,{status:"publish"}),await m(t,o,l)),n(),s((0,b.__)("Site updated."),{type:"snackbar",id:e})}catch(e){r(`${(0,b.__)("Saving failed.")} ${e}`)}},isBusy:u,disabled:u,"aria-disabled":u,className:"edit-site-save-hub__button",__next40pxDefaultSize:!0},y):(0,l.createElement)(_o,{className:"edit-site-save-hub__button",variant:g?null:"primary",showTooltip:!1,icon:g&&!u?w:null,defaultLabel:y,__next40pxDefaultSize:!0}))}function xo({onSave:e,onClose:t}){const[n,s]=(0,l.useState)(!1),[r,a]=(0,l.useState)(""),{saveEntityRecord:i}=(0,d.useDispatch)(f.store),{createErrorNotice:o,createSuccessNotice:c}=(0,d.useDispatch)(xe.store);return(0,l.createElement)(_.Modal,{title:(0,b.__)("Draft a new page"),onRequestClose:t},(0,l.createElement)("form",{onSubmit:async function(t){if(t.preventDefault(),!n){s(!0);try{const t=await i("postType","page",{status:"draft",title:r,slug:r||(0,b.__)("No title")},{throwOnError:!0});e(t),c((0,b.sprintf)((0,b.__)('"%s" successfully created.'),t.title?.rendered||r),{type:"snackbar"})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,b.__)("An error occurred while creating the page.");o(t,{type:"snackbar"})}finally{s(!1)}}}},(0,l.createElement)(_.__experimentalVStack,{spacing:3},(0,l.createElement)(_.TextControl,{label:(0,b.__)("Page title"),onChange:a,placeholder:(0,b.__)("No title"),value:r}),(0,l.createElement)(_.__experimentalHStack,{spacing:2,justify:"end"},(0,l.createElement)(_.Button,{variant:"tertiary",onClick:t},(0,b.__)("Cancel")),(0,l.createElement)(_.Button,{variant:"primary",type:"submit",isBusy:n,"aria-disabled":n},(0,b.__)("Create draft"))))))}const{useHistory:Co}=nt(Et.privateApis),So=({postType:e="page",postId:t,...n})=>{const s=kt({postType:e,postId:t},{backPath:"/page"});return(0,l.createElement)(Es,{...s,...n})};function ko(){const{records:e,isResolving:t}=(0,f.useEntityRecords)("postType","page",{status:"any",per_page:-1}),{records:n,isResolving:s}=(0,f.useEntityRecords)("postType",Ot,{per_page:-1}),r=n?.filter((({slug:e})=>["404","search"].includes(e))),a=n?.find((e=>"front-page"===e.slug))||n?.find((e=>"home"===e.slug))||n?.find((e=>"index"===e.slug)),i=e?.concat(r,[a]),{frontPage:o,postsPage:c}=(0,d.useSelect)((e=>{const{getEntityRecord:t}=e(f.store),n=t("root","site");return{frontPage:n?.page_on_front,postsPage:n?.page_for_posts}}),[]),u=o===c,p=e&&[...e];if(!u&&p?.length){const e=p.findIndex((e=>e.id===o)),t=p.splice(e,1);p?.splice(0,0,...t);const n=p.findIndex((e=>e.id===c)),s=p.splice(n,1);p.splice(1,0,...s)}const[m,h]=(0,l.useState)(!1),g=Co(),y=e=>{let t=ms;const s=c&&c===e?(n?.find((e=>"home"===e.slug))||n?.find((e=>"index"===e.slug)))?.id:null;switch(e){case o:t=Tr;break;case c:t=Pr}return{icon:t,postType:s?Ot:"page",postId:s||e}};return(0,l.createElement)(l.Fragment,null,m&&(0,l.createElement)(xo,{onSave:({type:e,id:t})=>{g.push({postId:t,postType:e,canvas:"edit"}),h(!1)},onClose:()=>h(!1)}),(0,l.createElement)(vs,{title:(0,b.__)("Pages"),description:(0,b.__)("Browse and edit pages on your site."),actions:(0,l.createElement)(gs,{icon:zr,label:(0,b.__)("Draft a new page"),onClick:()=>h(!0)}),content:(0,l.createElement)(l.Fragment,null,(t||s)&&(0,l.createElement)(_.__experimentalItemGroup,null,(0,l.createElement)(_.__experimentalItem,null,(0,b.__)("Loading pages…"))),!(t||s)&&(0,l.createElement)(_.__experimentalItemGroup,null,!i?.length&&(0,l.createElement)(_.__experimentalItem,null,(0,b.__)("No page found")),u&&a&&(0,l.createElement)(So,{postType:Ot,postId:a.id,key:a.id,icon:Tr,withChevron:!0},(0,l.createElement)(_.__experimentalTruncate,{numberOfLines:1},(0,Qt.decodeEntities)(a.title?.rendered||(0,b.__)("(no title)")))),p?.map((({id:e,title:t})=>(0,l.createElement)(So,{...y(e),key:e,withChevron:!0},(0,l.createElement)(_.__experimentalTruncate,{numberOfLines:1},(0,Qt.decodeEntities)(t?.rendered||(0,b.__)("(no title)")))))))),footer:(0,l.createElement)(_.__experimentalVStack,{spacing:0},r?.map((e=>(0,l.createElement)(So,{postType:Ot,postId:e.id,key:e.id,icon:hs,withChevron:!0},(0,l.createElement)(_.__experimentalTruncate,{numberOfLines:1},(0,Qt.decodeEntities)(e.title?.rendered||(0,b.__)("(no title)")))))),(0,l.createElement)(Es,{className:"edit-site-sidebar-navigation-screen-pages__see-all",href:"edit.php?post_type=page",onClick:()=>{document.location="edit.php?post_type=page"}},(0,b.__)("Manage all pages")))}))}var To=window.wp.dom,Po=window.wp.escapeHtml,No=window.wp.wordcount;function Oo({status:e,date:t,short:n}){const s=(0,mr.humanTimeDiff)(t);let r=e;switch(e){case"publish":r=t?(0,l.createInterpolateElement)((0,b.sprintf)((0,b.__)("Published <time>%s</time>"),s),{time:(0,l.createElement)("time",{dateTime:t})}):(0,b.__)("Published");break;case"future":const e=(0,mr.dateI18n)(n?"M j":"F j",(0,mr.getDate)(t));r=t?(0,l.createInterpolateElement)((0,b.sprintf)((0,b.__)("Scheduled: <time>%s</time>"),e),{time:(0,l.createElement)("time",{dateTime:t})}):(0,b.__)("Scheduled");break;case"draft":r=(0,b.__)("Draft");break;case"pending":r=(0,b.__)("Pending");break;case"private":r=(0,b.__)("Private");break;case"protected":r=(0,b.__)("Password protected")}return(0,l.createElement)("div",{className:v()("edit-site-sidebar-navigation-screen-page__status",{[`has-status has-${e}-status`]:!!e})},r)}const Io=189;function Mo({id:e}){const{record:t}=(0,f.useEntityRecord)("postType","page",e),{parentTitle:n,templateTitle:s,isPostsPage:r}=(0,d.useSelect)((e=>{const{getEditedPostContext:n}=nt(e(os)),s=n(),r=e(f.store).getEntityRecords("postType",Ot,{per_page:-1}),a="page"===s?.postType?s?.templateSlug:null,i=r&&a?r.find((e=>e.slug===a))?.title?.rendered:null,o=t?.parent?e(f.store).getEntityRecord("postType","page",t.parent,{_fields:["title"]})?.title?.rendered:null,{getEntityRecord:l}=e(f.store),c=l("root","site");return{parentTitle:o,templateTitle:i,isPostsPage:t?.id===c?.page_for_posts}}),[t?.parent,t?.id]);return(0,l.createElement)(vr,{spacing:5,title:(0,b.__)("Details")},function(e){if(!e)return[];const t=[{label:(0,b.__)("Status"),value:(0,l.createElement)(Oo,{status:e?.password?"protected":e.status,date:e?.date,short:!0})},{label:(0,b.__)("Slug"),value:(0,l.createElement)(_.__experimentalTruncate,{numberOfLines:1},(0,wt.safeDecodeURIComponent)(e.slug))}];e?.templateTitle&&t.push({label:(0,b.__)("Template"),value:(0,Qt.decodeEntities)(e.templateTitle)}),e?.parentTitle&&t.push({label:(0,b.__)("Parent"),value:(0,Qt.decodeEntities)(e.parentTitle||(0,b.__)("(no title)"))});const n=(0,b._x)("words","Word count type. Do not translate!"),s=e?.content?.rendered?(0,No.count)(e.content.rendered,n):0,r=Math.round(s/Io);return s&&!e?.isPostsPage&&t.push({label:(0,b.__)("Words"),value:s.toLocaleString()||(0,b.__)("Unknown")},{label:(0,b.__)("Time to read"),value:r>1?(0,b.sprintf)((0,b.__)("%s mins"),r.toLocaleString()):(0,b.__)("< 1 min")}),t}({parentTitle:n,templateTitle:s,isPostsPage:r,...t}).map((({label:e,value:t})=>(0,l.createElement)(gr,{key:e},(0,l.createElement)(fr,null,e),(0,l.createElement)(yr,null,t)))))}function Ao({postId:e,onRemove:t}){const{createSuccessNotice:n,createErrorNotice:s}=(0,d.useDispatch)(xe.store),{deleteEntityRecord:r}=(0,d.useDispatch)(f.store),a=(0,d.useSelect)((t=>t(f.store).getEntityRecord("postType","page",e)),[e]);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(_.MenuItem,{onClick:()=>async function(){try{await r("postType","page",e,{},{throwOnError:!0}),n((0,b.sprintf)((0,b.__)('"%s" moved to the Trash.'),(0,Qt.decodeEntities)(a.title.rendered)),{type:"snackbar",id:"edit-site-page-trashed"}),t?.()}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,b.__)("An error occurred while moving the page to the trash.");s(t,{type:"snackbar"})}}(),isDestructive:!0,variant:"secondary"},(0,b.__)("Move to Trash")))}function Ro({postId:e,className:t,toggleProps:n,onRemove:s}){return(0,l.createElement)(_.DropdownMenu,{icon:ce,label:(0,b.__)("Actions"),className:t,toggleProps:n},(()=>(0,l.createElement)(_.MenuGroup,null,(0,l.createElement)(Ao,{postId:e,onRemove:s}))))}function Bo(){const e=(0,_.__experimentalUseNavigator)(),{setCanvasMode:t}=nt((0,d.useDispatch)(os)),{params:{postId:n}}=(0,_.__experimentalUseNavigator)(),{record:s}=(0,f.useEntityRecord)("postType","page",n),{featuredMediaAltText:r,featuredMediaSourceUrl:a}=(0,d.useSelect)((e=>{const{getEntityRecord:t}=e(f.store),n=s?.featured_media?t("postType","attachment",s?.featured_media):null;return{featuredMediaSourceUrl:n?.media_details.sizes?.medium?.source_url||n?.source_url,featuredMediaAltText:(0,Po.escapeAttribute)(n?.alt_text||n?.description?.raw||"")}}),[s]),i=r?(0,Qt.decodeEntities)(r):(0,Qt.decodeEntities)(s?.title?.rendered||(0,b.__)("Featured image"));return s?(0,l.createElement)(vs,{title:(0,Qt.decodeEntities)(s?.title?.rendered||(0,b.__)("(no title)")),actions:(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Ro,{postId:n,toggleProps:{as:gs},onRemove:()=>{e.goTo("/page")}}),(0,l.createElement)(gs,{onClick:()=>t("edit"),label:(0,b.__)("Edit"),icon:xs})),meta:(0,l.createElement)(_.ExternalLink,{className:"edit-site-sidebar-navigation-screen__page-link",href:s.link},(0,wt.filterURLForDisplay)((0,wt.safeDecodeURIComponent)(s.link))),content:(0,l.createElement)(l.Fragment,null,!!a&&(0,l.createElement)(_.__experimentalVStack,{className:"edit-site-sidebar-navigation-screen-page__featured-image-wrapper",alignment:"left",spacing:2},(0,l.createElement)("div",{className:"edit-site-sidebar-navigation-screen-page__featured-image has-image"},(0,l.createElement)("img",{alt:i,src:a}))),!!s?.excerpt?.rendered&&(0,l.createElement)(_.__experimentalTruncate,{className:"edit-site-sidebar-navigation-screen-page__excerpt",numberOfLines:3},(0,To.__unstableStripHTML)(s.excerpt.rendered)),(0,l.createElement)(Mo,{id:n})),footer:s?.modified?(0,l.createElement)(_r,{record:s}):null}):null}const{useLocation:Lo}=nt(Et.privateApis);function Do(){return Mi(),(0,l.createElement)(l.Fragment,null,(0,l.createElement)(_.__experimentalNavigatorScreen,{path:"/"},(0,l.createElement)(kr,null)),(0,l.createElement)(_.__experimentalNavigatorScreen,{path:"/navigation"},(0,l.createElement)(mo,null)),(0,l.createElement)(_.__experimentalNavigatorScreen,{path:"/navigation/:postType/:postId"},(0,l.createElement)(io,null)),(0,l.createElement)(_.__experimentalNavigatorScreen,{path:"/wp_global_styles"},(0,l.createElement)(xr,null)),(0,l.createElement)(_.__experimentalNavigatorScreen,{path:"/page"},(0,l.createElement)(ko,null)),(0,l.createElement)(_.__experimentalNavigatorScreen,{path:"/page/:postId"},(0,l.createElement)(Bo,null)),(0,l.createElement)(_.__experimentalNavigatorScreen,{path:"/:postType(wp_template)"},(0,l.createElement)(xa,null)),(0,l.createElement)(_.__experimentalNavigatorScreen,{path:"/patterns"},(0,l.createElement)(xi,null)),(0,l.createElement)(_.__experimentalNavigatorScreen,{path:"/:postType(wp_template|wp_template_part)/all"},(0,l.createElement)(vo,null)),(0,l.createElement)(_.__experimentalNavigatorScreen,{path:"/:postType(wp_template_part|wp_block)/:postId"},(0,l.createElement)(Xi,null)),(0,l.createElement)(_.__experimentalNavigatorScreen,{path:"/:postType(wp_template)/:postId"},(0,l.createElement)(za,null)))}var Fo=(0,l.memo)((function(){const{params:e}=Lo(),t=(0,l.useRef)(Ii(e));return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(_.__experimentalNavigatorProvider,{className:"edit-site-sidebar__content",initialPath:t.current},(0,l.createElement)(Do,null)),(0,l.createElement)(wo,null))}));var Vo=(0,l.createElement)(E.SVG,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(E.Path,{fillRule:"evenodd",clipRule:"evenodd",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-2zM8.5 18.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h2.5v13zm10-.5c0 .3-.2.5-.5.5h-8v-13h8c.3 0 .5.2.5.5v12z"}));var zo=(0,l.createElement)(E.SVG,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(E.Path,{fillRule:"evenodd",clipRule:"evenodd",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-4 14.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h8v13zm4.5-.5c0 .3-.2.5-.5.5h-2.5v-13H18c.3 0 .5.2.5.5v12z"}));function Go({className:e,identifier:t,title:n,icon:s,children:r,closeLabel:a,header:i,headerClassName:o,panelClassName:c}){const u=(0,d.useSelect)((e=>e(os).getSettings().showIconLabels),[]);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(re,{className:e,scope:"core/edit-site",identifier:t,title:n,smallScreenTitle:n,icon:s,closeLabel:a,header:i,headerClassName:o,panelClassName:c,showIconLabels:u},r),(0,l.createElement)($,{scope:"core/edit-site",identifier:t,icon:s},n))}function Ho({className:e,...t}){return(0,l.createElement)(_.Icon,{className:v()(e,"edit-site-global-styles-icon-with-current-color"),...t})}function Uo({icon:e,children:t,...n}){return(0,l.createElement)(_.__experimentalItem,{...n},e&&(0,l.createElement)(_.__experimentalHStack,{justify:"flex-start"},(0,l.createElement)(Ho,{icon:e,size:24}),(0,l.createElement)(_.FlexItem,null,t)),!e&&t)}function Wo(e){return(0,l.createElement)(_.__experimentalNavigatorButton,{as:Uo,...e})}var jo=(0,l.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(E.Path,{d:"M6.9 7L3 17.8h1.7l1-2.8h4.1l1 2.8h1.7L8.6 7H6.9zm-.7 6.6l1.5-4.3 1.5 4.3h-3zM21.6 17c-.1.1-.2.2-.3.2-.1.1-.2.1-.4.1s-.3-.1-.4-.2c-.1-.1-.1-.3-.1-.6V12c0-.5 0-1-.1-1.4-.1-.4-.3-.7-.5-1-.2-.2-.5-.4-.9-.5-.4 0-.8-.1-1.3-.1s-1 .1-1.4.2c-.4.1-.7.3-1 .4-.2.2-.4.3-.6.5-.1.2-.2.4-.2.7 0 .3.1.5.2.8.2.2.4.3.8.3.3 0 .6-.1.8-.3.2-.2.3-.4.3-.7 0-.3-.1-.5-.2-.7-.2-.2-.4-.3-.6-.4.2-.2.4-.3.7-.4.3-.1.6-.1.8-.1.3 0 .6 0 .8.1.2.1.4.3.5.5.1.2.2.5.2.9v1.1c0 .3-.1.5-.3.6-.2.2-.5.3-.9.4-.3.1-.7.3-1.1.4-.4.1-.8.3-1.1.5-.3.2-.6.4-.8.7-.2.3-.3.7-.3 1.2 0 .6.2 1.1.5 1.4.3.4.9.5 1.6.5.5 0 1-.1 1.4-.3.4-.2.8-.6 1.1-1.1 0 .4.1.7.3 1 .2.3.6.4 1.2.4.4 0 .7-.1.9-.2.2-.1.5-.3.7-.4h-.3zm-3-.9c-.2.4-.5.7-.8.8-.3.2-.6.2-.8.2-.4 0-.6-.1-.9-.3-.2-.2-.3-.6-.3-1.1 0-.5.1-.9.3-1.2s.5-.5.8-.7c.3-.2.7-.3 1-.5.3-.1.6-.3.7-.6v3.4z"}));var qo=(0,l.createElement)(E.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(E.Path,{d:"M17.2 10.9c-.5-1-1.2-2.1-2.1-3.2-.6-.9-1.3-1.7-2.1-2.6L12 4l-1 1.1c-.6.9-1.3 1.7-2 2.6-.8 1.2-1.5 2.3-2 3.2-.6 1.2-1 2.2-1 3 0 3.4 2.7 6.1 6.1 6.1s6.1-2.7 6.1-6.1c0-.8-.3-1.8-1-3zm-5.1 7.6c-2.5 0-4.6-2.1-4.6-4.6 0-.3.1-1 .8-2.3.5-.9 1.1-1.9 2-3.1.7-.9 1.3-1.7 1.8-2.3.7.8 1.3 1.6 1.8 2.3.8 1.1 1.5 2.2 2 3.1.7 1.3.8 2 .8 2.3 0 2.5-2.1 4.6-4.6 4.6z"}));const{useHasDimensionsPanel:Yo,useHasTypographyPanel:Zo,useHasColorPanel:Xo,useGlobalSetting:Ko,useSettingsForBlockElement:Jo}=nt(we.privateApis);var Qo=function(){const[e]=Ko(""),t=Jo(e),n=Zo(t),s=Xo(t),r=Yo(t);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(_.__experimentalItemGroup,null,n&&(0,l.createElement)(Wo,{icon:jo,path:"/typography","aria-label":(0,b.__)("Typography styles")},(0,b.__)("Typography")),s&&(0,l.createElement)(Wo,{icon:qo,path:"/colors","aria-label":(0,b.__)("Colors styles")},(0,b.__)("Colors")),r&&(0,l.createElement)(Wo,{icon:hs,path:"/layout","aria-label":(0,b.__)("Layout styles")},(0,b.__)("Layout"))))};var $o=function(){const{useGlobalStyle:e}=nt(we.privateApis),[t]=e("css"),{hasVariations:n,canEditCSS:s}=(0,d.useSelect)((e=>{var t;const{getEntityRecord:n,__experimentalGetCurrentGlobalStylesId:s,__experimentalGetCurrentThemeGlobalStylesVariations:r}=e(f.store),a=s(),i=a?n("root","globalStyles",a):void 0;return{hasVariations:!!r()?.length,canEditCSS:null!==(t=!!i?._links?.["wp:action-edit-css"])&&void 0!==t&&t}}),[]);return(0,l.createElement)(_.Card,{size:"small",className:"edit-site-global-styles-screen-root"},(0,l.createElement)(_.CardBody,null,(0,l.createElement)(_.__experimentalVStack,{spacing:4},(0,l.createElement)(_.Card,null,(0,l.createElement)(_.CardMedia,null,(0,l.createElement)(zs,null))),n&&(0,l.createElement)(_.__experimentalItemGroup,null,(0,l.createElement)(Wo,{path:"/variations","aria-label":(0,b.__)("Browse styles")},(0,l.createElement)(_.__experimentalHStack,{justify:"space-between"},(0,l.createElement)(_.FlexItem,null,(0,b.__)("Browse styles")),(0,l.createElement)(Ho,{icon:(0,b.isRTL)()?me:he})))),(0,l.createElement)(Qo,null))),(0,l.createElement)(_.CardDivider,null),(0,l.createElement)(_.CardBody,null,(0,l.createElement)(_.__experimentalSpacer,{as:"p",paddingTop:2,paddingX:"13px",marginBottom:4},(0,b.__)("Customize the appearance of specific blocks for the whole site.")),(0,l.createElement)(_.__experimentalItemGroup,null,(0,l.createElement)(Wo,{path:"/blocks","aria-label":(0,b.__)("Blocks styles")},(0,l.createElement)(_.__experimentalHStack,{justify:"space-between"},(0,l.createElement)(_.FlexItem,null,(0,b.__)("Blocks")),(0,l.createElement)(Ho,{icon:(0,b.isRTL)()?me:he}))))),s&&!!t&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(_.CardDivider,null),(0,l.createElement)(_.CardBody,null,(0,l.createElement)(_.__experimentalSpacer,{as:"p",paddingTop:2,paddingX:"13px",marginBottom:4},(0,b.__)("Add your own CSS to customize the appearance and layout of your site.")),(0,l.createElement)(_.__experimentalItemGroup,null,(0,l.createElement)(Wo,{path:"/css","aria-label":(0,b.__)("Additional CSS")},(0,l.createElement)(_.__experimentalHStack,{justify:"space-between"},(0,l.createElement)(_.FlexItem,null,(0,b.__)("Additional CSS")),(0,l.createElement)(Ho,{icon:(0,b.isRTL)()?me:he})))))))};function el(e){const t=function(e){return e?.filter((e=>"block"===e.source))}((0,d.useSelect)((t=>{const{getBlockStyles:n}=t(c.store);return n(e)}),[e]));return t}function tl({name:e}){const t=el(e);return(0,l.createElement)(_.__experimentalItemGroup,{isBordered:!0,isSeparated:!0},t.map(((t,n)=>t?.isDefault?null:(0,l.createElement)(Wo,{key:n,path:"/blocks/"+encodeURIComponent(e)+"/variations/"+encodeURIComponent(t.name),"aria-label":t.label},t.label))))}var nl=function({title:e,description:t}){return(0,l.createElement)(_.__experimentalVStack,{spacing:0},(0,l.createElement)(_.__experimentalView,null,(0,l.createElement)(_.__experimentalSpacer,{marginBottom:0,paddingX:4,paddingY:3},(0,l.createElement)(_.__experimentalHStack,{spacing:2},(0,l.createElement)(_.__experimentalNavigatorToParentButton,{style:{minWidth:24,padding:0},icon:(0,b.isRTL)()?he:me,isSmall:!0,"aria-label":(0,b.__)("Navigate to the previous view")}),(0,l.createElement)(_.__experimentalSpacer,null,(0,l.createElement)(_.__experimentalHeading,{className:"edit-site-global-styles-header",level:2,size:13},e))))),t&&(0,l.createElement)("p",{className:"edit-site-global-styles-header__description"},t))};const{useHasDimensionsPanel:sl,useHasTypographyPanel:rl,useHasBorderPanel:al,useGlobalSetting:il,useSettingsForBlockElement:ol,useHasColorPanel:ll}=nt(we.privateApis);function cl(e){const[t]=il("",e),n=ol(t,e),s=rl(n),r=ll(n),a=al(n),i=sl(n),o=a||i,l=!!el(e)?.length;return s||r||o||l}function ul({block:e}){if(!cl(e.name))return null;const t=(0,b.sprintf)((0,b.__)("%s block styles"),e.title);return(0,l.createElement)(Wo,{path:"/blocks/"+encodeURIComponent(e.name),"aria-label":t},(0,l.createElement)(_.__experimentalHStack,{justify:"flex-start"},(0,l.createElement)(we.BlockIcon,{icon:e.icon}),(0,l.createElement)(_.FlexItem,null,e.title)))}var dl=function(){const e=function(){const e=(0,d.useSelect)((e=>e(c.store).getBlockTypes()),[]),{core:t,noncore:n}=e.reduce(((e,t)=>{const{core:n,noncore:s}=e;return(t.name.startsWith("core/")?n:s).push(t),e}),{core:[],noncore:[]});return[...t,...n]}(),[t,n]=(0,l.useState)(""),s=(0,ae.useDebounce)(Jt.speak,500),r=(0,d.useSelect)((e=>e(c.store).isMatchingSearchTerm),[]),a=(0,l.useMemo)((()=>t?e.filter((e=>r(e,t))):e),[t,e,r]),i=(0,l.useRef)();return(0,l.useEffect)((()=>{if(!t)return;const e=i.current.childElementCount,n=(0,b.sprintf)((0,b._n)("%d result found.","%d results found.",e),e);s(n,e)}),[t,s]),(0,l.createElement)(l.Fragment,null,(0,l.createElement)(nl,{title:(0,b.__)("Blocks"),description:(0,b.__)("Customize the appearance of specific blocks and for the whole site.")}),(0,l.createElement)(_.SearchControl,{__nextHasNoMarginBottom:!0,className:"edit-site-block-types-search",onChange:n,value:t,label:(0,b.__)("Search for blocks"),placeholder:(0,b.__)("Search")}),(0,l.createElement)("div",{ref:i,className:"edit-site-block-types-item-list"},a.map((e=>(0,l.createElement)(ul,{block:e,key:"menu-itemblock-"+e.name})))))};var pl=({name:e,variation:t=""})=>{var n;const s=(0,c.getBlockType)(e)?.example,r=(0,l.useMemo)((()=>{if(!s)return null;let n=s;return t&&(n={...n,attributes:{...n.attributes,className:"is-style-"+t}}),(0,c.getBlockFromExample)(e,n)}),[e,s,t]),a=null!==(n=s?.viewportWidth)&&void 0!==n?n:null,i="150px";return s?(0,l.createElement)(_.__experimentalSpacer,{marginX:4,marginBottom:4},(0,l.createElement)("div",{className:"edit-site-global-styles__block-preview-panel",style:{maxHeight:i,boxSizing:"initial"}},(0,l.createElement)(we.BlockPreview,{blocks:r,viewportWidth:a,minHeight:i,additionalStyles:[{css:`\n\t\t\t\t\t\t\t\tbody{\n\t\t\t\t\t\t\t\t\tmin-height:${i};\n\t\t\t\t\t\t\t\t\tdisplay:flex;align-items:center;justify-content:center;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t`}]}))):null};var ml=function({children:e,level:t}){return(0,l.createElement)(_.__experimentalHeading,{className:"edit-site-global-styles-subtitle",level:null!=t?t:2},e)};function hl(e){if(!e)return e;const t=e.color||e.width;return!e.style&&t?{...e,style:"solid"}:!e.style||t?e:void 0}const{useHasDimensionsPanel:fl,useHasTypographyPanel:gl,useHasBorderPanel:yl,useGlobalSetting:vl,useSettingsForBlockElement:_l,useHasColorPanel:bl,useHasEffectsPanel:El,useHasFiltersPanel:wl,useHasImageSettingsPanel:xl,useGlobalStyle:Cl,BorderPanel:Sl,ColorPanel:kl,TypographyPanel:Tl,DimensionsPanel:Pl,EffectsPanel:Nl,FiltersPanel:Ol,ImageSettingsPanel:Il,AdvancedPanel:Ml}=nt(we.privateApis);var Al=function({name:e,variation:t}){let n=[];t&&(n=["variations",t].concat(n));const s=n.join("."),[r]=Cl(s,e,"user",{shouldDecodeEncode:!1}),[a,i]=Cl(s,e,"all",{shouldDecodeEncode:!1}),[o]=vl("",e,"user"),[u,p]=vl("",e),m=_l(u,e),h=(0,c.getBlockType)(e);m?.spacing?.blockGap&&h?.supports?.spacing?.blockGap&&(!0===h?.supports?.spacing?.__experimentalSkipSerialization||h?.supports?.spacing?.__experimentalSkipSerialization?.some?.((e=>"blockGap"===e)))&&(m.spacing.blockGap=!1);const g=el(e),y=gl(m),v=bl(m),E=yl(m),w=fl(m),x=El(m),C=wl(m),S=xl(e,o,m),k=!!g?.length&&!t,{canEditCSS:T}=(0,d.useSelect)((e=>{var t;const{getEntityRecord:n,__experimentalGetCurrentGlobalStylesId:s}=e(f.store),r=s(),a=r?n("root","globalStyles",r):void 0;return{canEditCSS:null!==(t=!!a?._links?.["wp:action-edit-css"])&&void 0!==t&&t}}),[]),P=t?g.find((e=>e.name===t)):null,N=(0,l.useMemo)((()=>({...a,layout:m.layout})),[a,m.layout]),O=(0,l.useMemo)((()=>({...r,layout:o.layout})),[r,o.layout]);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(nl,{title:t?P.label:h.title}),(0,l.createElement)(pl,{name:e,variation:t}),k&&(0,l.createElement)("div",{className:"edit-site-global-styles-screen-variations"},(0,l.createElement)(_.__experimentalVStack,{spacing:3},(0,l.createElement)(ml,null,(0,b.__)("Style Variations")),(0,l.createElement)(tl,{name:e}))),v&&(0,l.createElement)(kl,{inheritedValue:a,value:r,onChange:i,settings:m}),y&&(0,l.createElement)(Tl,{inheritedValue:a,value:r,onChange:i,settings:m}),w&&(0,l.createElement)(Pl,{inheritedValue:N,value:O,onChange:e=>{const t={...e};delete t.layout,i(t),e.layout!==o.layout&&p({...o,layout:e.layout})},settings:m,includeLayoutControls:!0}),E&&(0,l.createElement)(Sl,{inheritedValue:a,value:r,onChange:e=>{if(!e?.border)return void i(e);const{radius:t,...n}=e.border,s=function(e){return e?(0,_.__experimentalHasSplitBorders)(e)?{top:hl(e.top),right:hl(e.right),bottom:hl(e.bottom),left:hl(e.left)}:hl(e):e}(n),r=(0,_.__experimentalHasSplitBorders)(s)?{color:null,style:null,width:null,...s}:{top:s,right:s,bottom:s,left:s};i({...e,border:{...r,radius:t}})},settings:m}),x&&(0,l.createElement)(Nl,{inheritedValue:N,value:O,onChange:i,settings:m,includeLayoutControls:!0}),C&&(0,l.createElement)(Ol,{inheritedValue:N,value:O,onChange:i,settings:m,includeLayoutControls:!0}),S&&(0,l.createElement)(Il,{onChange:e=>{p(void 0===e?{...u,lightbox:void 0}:{...u,lightbox:{...u.lightbox,...e}})},value:o,inheritedValue:m}),T&&(0,l.createElement)(_.PanelBody,{title:(0,b.__)("Advanced"),initialOpen:!1},(0,l.createElement)("p",null,(0,b.sprintf)((0,b.__)("Add your own CSS to customize the appearance of the %s block. You do not need to include a CSS selector, just add the property and value."),h?.title)),(0,l.createElement)(Ml,{value:r,onChange:i,inheritedValue:a})))};const{useGlobalStyle:Rl}=nt(we.privateApis);function Bl({parentMenu:e,element:t,label:n}){const s="text"!==t&&t?`elements.${t}.`:"",r="link"===t?{textDecoration:"underline"}:{},[a]=Rl(s+"typography.fontFamily"),[i]=Rl(s+"typography.fontStyle"),[o]=Rl(s+"typography.fontWeight"),[c]=Rl(s+"typography.letterSpacing"),[u]=Rl(s+"color.background"),[d]=Rl(s+"color.gradient"),[p]=Rl(s+"color.text"),m=(0,b.sprintf)((0,b.__)("Typography %s styles"),n);return(0,l.createElement)(Wo,{path:e+"/typography/"+t,"aria-label":m},(0,l.createElement)(_.__experimentalHStack,{justify:"flex-start"},(0,l.createElement)(_.FlexItem,{className:"edit-site-global-styles-screen-typography__indicator",style:{fontFamily:null!=a?a:"serif",background:null!=d?d:u,color:p,fontStyle:i,fontWeight:o,letterSpacing:c,...r}},(0,b.__)("Aa")),(0,l.createElement)(_.FlexItem,null,n)))}var Ll=function(){return(0,l.createElement)(_.__experimentalVStack,{spacing:3},(0,l.createElement)(ml,{level:3},(0,b.__)("Elements")),(0,l.createElement)(_.__experimentalItemGroup,{isBordered:!0,isSeparated:!0},(0,l.createElement)(Bl,{parentMenu:"",element:"text",label:(0,b.__)("Text")}),(0,l.createElement)(Bl,{parentMenu:"",element:"link",label:(0,b.__)("Links")}),(0,l.createElement)(Bl,{parentMenu:"",element:"heading",label:(0,b.__)("Headings")}),(0,l.createElement)(Bl,{parentMenu:"",element:"caption",label:(0,b.__)("Captions")}),(0,l.createElement)(Bl,{parentMenu:"",element:"button",label:(0,b.__)("Buttons")})))};(0,b._x)("Thin","font weight"),(0,b._x)("Extra-light","font weight"),(0,b._x)("Light","font weight"),(0,b._x)("Normal","font weight"),(0,b._x)("Medium","font weight"),(0,b._x)("Semi-bold","font weight"),(0,b._x)("Bold","font weight"),(0,b._x)("Extra-bold","font weight"),(0,b._x)("Black","font weight"),(0,b._x)("Normal","font style"),(0,b._x)("Italic","font style");const{useGlobalSetting:Dl}=nt(we.privateApis);(0,l.createContext)({});const{ProgressBar:Fl}=nt(_.privateApis);(0,b.__)("All");var Vl=n(5723),zl=n.n(Vl),Gl=n(2591),Hl=n.n(Gl);globalThis.fetch;class Ul{constructor(e,t={},n){this.type=e,this.detail=t,this.msg=n,Object.defineProperty(this,"__mayPropagate",{enumerable:!1,writable:!0}),this.__mayPropagate=!0}preventDefault(){}stopPropagation(){this.__mayPropagate=!1}valueOf(){return this}toString(){return this.msg?`[${this.type} event]: ${this.msg}`:`[${this.type} event]`}}class Wl{constructor(){this.listeners={}}addEventListener(e,t,n){let s=this.listeners[e]||[];n?s.unshift(t):s.push(t),this.listeners[e]=s}removeEventListener(e,t){let n=this.listeners[e]||[],s=n.findIndex((e=>e===t));s>-1&&(n.splice(s,1),this.listeners[e]=n)}dispatch(e){let t=this.listeners[e.type];if(t)for(let n=0,s=t.length;n<s&&e.__mayPropagate;n++)t[n](e)}}const jl=new Date("1904-01-01T00:00:00+0000").getTime();class ql{constructor(e,t,n){this.name=(n||e.tag||"").trim(),this.length=e.length,this.start=e.offset,this.offset=0,this.data=t,["getInt8","getUint8","getInt16","getUint16","getInt32","getUint32","getBigInt64","getBigUint64"].forEach((e=>{let t=e.replace(/get(Big)?/,"").toLowerCase(),n=parseInt(e.replace(/[^\d]/g,""))/8;Object.defineProperty(this,t,{get:()=>this.getValue(e,n)})}))}get currentPosition(){return this.start+this.offset}set currentPosition(e){this.start=e,this.offset=0}skip(e=0,t=8){this.offset+=e*t/8}getValue(e,t){let n=this.start+this.offset;this.offset+=t;try{return this.data[e](n)}catch(n){throw console.error("parser",e,t,this),console.error("parser",this.start,this.offset),n}}flags(e){if(8===e||16===e||32===e||64===e)return this[`uint${e}`].toString(2).padStart(e,0).split("").map((e=>"1"===e));console.error("Error parsing flags: flag types can only be 1, 2, 4, or 8 bytes long"),console.trace()}get tag(){const e=this.uint32;return t=[e>>24&255,e>>16&255,e>>8&255,255&e],Array.from(t).map((e=>String.fromCharCode(e))).join("");var t}get fixed(){return this.int16+Math.round(1e3*this.uint16/65356)/1e3}get legacyFixed(){let e=this.uint16,t=this.uint16.toString(16).padStart(4,0);return parseFloat(`${e}.${t}`)}get uint24(){return(this.uint8<<16)+(this.uint8<<8)+this.uint8}get uint128(){let e=0;for(let t=0;t<5;t++){let t=this.uint8;if(e=128*e+(127&t),t<128)break}return e}get longdatetime(){return new Date(jl+1e3*parseInt(this.int64.toString()))}get fword(){return this.int16}get ufword(){return this.uint16}get Offset16(){return this.uint16}get Offset32(){return this.uint32}get F2DOT14(){const e=p.uint16;return[0,1,-2,-1][e>>14]+(16383&e)/16384}verifyLength(){this.offset!=this.length&&console.error(`unexpected parsed table size (${this.offset}) for "${this.name}" (expected ${this.length})`)}readBytes(e=0,t=0,n=8,s=!1){if(0===(e=e||this.length))return[];t&&(this.currentPosition=t);const r=`${s?"":"u"}int${n}`,a=[];for(;e--;)a.push(this[r]);return a}}class Yl{constructor(e){const t={enumerable:!1,get:()=>e};Object.defineProperty(this,"parser",t);const n=e.currentPosition,s={enumerable:!1,get:()=>n};Object.defineProperty(this,"start",s)}load(e){Object.keys(e).forEach((t=>{let n=Object.getOwnPropertyDescriptor(e,t);n.get?this[t]=n.get.bind(this):void 0!==n.value&&(this[t]=n.value)})),this.parser.length&&this.parser.verifyLength()}}class Zl extends Yl{constructor(e,t,n){const{parser:s,start:r}=super(new ql(e,t,n)),a={enumerable:!1,get:()=>s};Object.defineProperty(this,"p",a);const i={enumerable:!1,get:()=>r};Object.defineProperty(this,"tableStart",i)}}function Xl(e,t,n){let s;Object.defineProperty(e,t,{get:()=>s||(s=n(),s),enumerable:!0})}class Kl extends Zl{constructor(e,t,n){const{p:s}=super({offset:0,length:12},t,"sfnt");this.version=s.uint32,this.numTables=s.uint16,this.searchRange=s.uint16,this.entrySelector=s.uint16,this.rangeShift=s.uint16,s.verifyLength(),this.directory=[...new Array(this.numTables)].map((e=>new Jl(s))),this.tables={},this.directory.forEach((e=>{Xl(this.tables,e.tag.trim(),(()=>n(this.tables,{tag:e.tag,offset:e.offset,length:e.length},t)))}))}}class Jl{constructor(e){this.tag=e.tag,this.checksum=e.uint32,this.offset=e.uint32,this.length=e.uint32}}const Ql=Hl().inflate||void 0;let $l;class ec extends Zl{constructor(e,t,n){const{p:s}=super({offset:0,length:44},t,"woff");this.signature=s.tag,this.flavor=s.uint32,this.length=s.uint32,this.numTables=s.uint16,s.uint16,this.totalSfntSize=s.uint32,this.majorVersion=s.uint16,this.minorVersion=s.uint16,this.metaOffset=s.uint32,this.metaLength=s.uint32,this.metaOrigLength=s.uint32,this.privOffset=s.uint32,this.privLength=s.uint32,s.verifyLength(),this.directory=[...new Array(this.numTables)].map((e=>new tc(s))),nc(this,t,n)}}class tc{constructor(e){this.tag=e.tag,this.offset=e.uint32,this.compLength=e.uint32,this.origLength=e.uint32,this.origChecksum=e.uint32}}function nc(e,t,n){e.tables={},e.directory.forEach((s=>{Xl(e.tables,s.tag.trim(),(()=>{let r=0,a=t;if(s.compLength!==s.origLength){const e=t.buffer.slice(s.offset,s.offset+s.compLength);let n;if(Ql)n=Ql(new Uint8Array(e));else{if(!$l){const e="no brotli decoder available to decode WOFF2 font";throw font.onerror&&font.onerror(e),new Error(e)}n=$l(new Uint8Array(e))}a=new DataView(n.buffer)}else r=s.offset;return n(e.tables,{tag:s.tag,offset:r,length:s.origLength},a)}))}))}const sc=zl();let rc;class ac extends Zl{constructor(e,t,n){const{p:s}=super({offset:0,length:48},t,"woff2");this.signature=s.tag,this.flavor=s.uint32,this.length=s.uint32,this.numTables=s.uint16,s.uint16,this.totalSfntSize=s.uint32,this.totalCompressedSize=s.uint32,this.majorVersion=s.uint16,this.minorVersion=s.uint16,this.metaOffset=s.uint32,this.metaLength=s.uint32,this.metaOrigLength=s.uint32,this.privOffset=s.uint32,this.privLength=s.uint32,s.verifyLength(),this.directory=[...new Array(this.numTables)].map((e=>new ic(s)));let r,a=s.currentPosition;this.directory[0].offset=0,this.directory.forEach(((e,t)=>{let n=this.directory[t+1];n&&(n.offset=e.offset+(void 0!==e.transformLength?e.transformLength:e.origLength))}));let i=t.buffer.slice(a);if(sc)r=sc(new Uint8Array(i));else{if(!rc){const t="no brotli decoder available to decode WOFF2 font";throw e.onerror&&e.onerror(t),new Error(t)}r=new Uint8Array(rc(i))}!function(e,t,n){e.tables={},e.directory.forEach((s=>{Xl(e.tables,s.tag.trim(),(()=>{const r=s.offset,a=r+(s.transformLength?s.transformLength:s.origLength),i=new DataView(t.slice(r,a).buffer);try{return n(e.tables,{tag:s.tag,offset:0,length:s.origLength},i)}catch(e){console.error(e)}}))}))}(this,r,n)}}class ic{constructor(e){this.flags=e.uint8;const t=this.tagNumber=63&this.flags;this.tag=63===t?e.tag:["cmap","head","hhea","hmtx","maxp","name","OS/2","post","cvt ","fpgm","glyf","loca","prep","CFF ","VORG","EBDT","EBLC","gasp","hdmx","kern","LTSH","PCLT","VDMX","vhea","vmtx","BASE","GDEF","GPOS","GSUB","EBSC","JSTF","MATH","CBDT","CBLC","COLR","CPAL","SVG ","sbix","acnt","avar","bdat","bloc","bsln","cvar","fdsc","feat","fmtx","fvar","gvar","hsty","just","lcar","mort","morx","opbd","prop","trak","Zapf","Silf","Glat","Gloc","Feat","Sill"][63&t];let n=0!==(this.transformVersion=(192&this.flags)>>6);"glyf"!==this.tag&&"loca"!==this.tag||(n=3!==this.transformVersion),this.origLength=e.uint128,n&&(this.transformLength=e.uint128)}}const oc={};let lc=!1;function cc(e,t,n){let s=t.tag.replace(/[^\w\d]/g,""),r=oc[s];return r?new r(t,n,e):(console.warn(`lib-font has no definition for ${s}. The table was skipped.`),{})}function uc(){let e=0;function t(n,s){if(!lc)return e>10?s(new Error("loading took too long")):(e++,setTimeout((()=>t(n)),250));n(cc)}return new Promise(((e,n)=>t(e)))}async function dc(e,t,n={}){if(!globalThis.document)return;let s=function(e,t){let n=e.lastIndexOf("."),s=(e.substring(n+1)||"").toLowerCase(),r={ttf:"truetype",otf:"opentype",woff:"woff",woff2:"woff2"}[s];if(r)return r;let a={eot:"The .eot format is not supported: it died in January 12, 2016, when Microsoft retired all versions of IE that didn't already support WOFF.",svg:"The .svg format is not supported: SVG fonts (not to be confused with OpenType with embedded SVG) were so bad we took the entire fonts chapter out of the SVG specification again.",fon:"The .fon format is not supported: this is an ancient Windows bitmap font format.",ttc:"Based on the current CSS specification, font collections are not (yet?) supported."}[s];if(a||(a=`${e} is not a known webfont format.`),t)throw new Error(a);console.warn(`Could not load font: ${a}`)}(t,n.errorOnStyle);if(!s)return;let r=document.createElement("style");r.className="injected-by-Font-js";let a=[];return n.styleRules&&(a=Object.entries(n.styleRules).map((([e,t])=>`${e}: ${t};`))),r.textContent=`\n@font-face {\n font-family: "${e}";\n ${a.join("\n\t")}\n src: url("${t}") format("${s}");\n}`,globalThis.document.head.appendChild(r),r}Promise.all([Promise.resolve().then((function(){return Ac})),Promise.resolve().then((function(){return Rc})),Promise.resolve().then((function(){return Bc})),Promise.resolve().then((function(){return Dc})),Promise.resolve().then((function(){return Fc})),Promise.resolve().then((function(){return Gc})),Promise.resolve().then((function(){return Hc})),Promise.resolve().then((function(){return Wc})),Promise.resolve().then((function(){return tu})),Promise.resolve().then((function(){return mu})),Promise.resolve().then((function(){return ud})),Promise.resolve().then((function(){return dd})),Promise.resolve().then((function(){return hd})),Promise.resolve().then((function(){return yd})),Promise.resolve().then((function(){return vd})),Promise.resolve().then((function(){return _d})),Promise.resolve().then((function(){return Ed})),Promise.resolve().then((function(){return wd})),Promise.resolve().then((function(){return xd})),Promise.resolve().then((function(){return Cd})),Promise.resolve().then((function(){return Sd})),Promise.resolve().then((function(){return kd})),Promise.resolve().then((function(){return Pd})),Promise.resolve().then((function(){return Ad})),Promise.resolve().then((function(){return Bd})),Promise.resolve().then((function(){return Ld})),Promise.resolve().then((function(){return Dd})),Promise.resolve().then((function(){return Fd})),Promise.resolve().then((function(){return Vd})),Promise.resolve().then((function(){return Hd})),Promise.resolve().then((function(){return Yd})),Promise.resolve().then((function(){return Kd})),Promise.resolve().then((function(){return Qd})),Promise.resolve().then((function(){return tp})),Promise.resolve().then((function(){return np})),Promise.resolve().then((function(){return sp})),Promise.resolve().then((function(){return ap})),Promise.resolve().then((function(){return ip})),Promise.resolve().then((function(){return up})),Promise.resolve().then((function(){return dp})),Promise.resolve().then((function(){return mp}))]).then((e=>{e.forEach((e=>{let t=Object.keys(e)[0];oc[t]=e[t]})),lc=!0}));const pc=[0,1,0,0],mc=[79,84,84,79],hc=[119,79,70,70],fc=[119,79,70,50];function gc(e,t){if(e.length===t.length){for(let n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}globalThis.Font=class extends Wl{constructor(e,t={}){super(),this.name=e,this.options=t,this.metrics=!1}get src(){return this.__src}set src(e){this.__src=e,(async()=>{globalThis.document&&!this.options.skipStyleSheet&&await dc(this.name,e,this.options),this.loadFont(e)})()}async loadFont(e,t){fetch(e).then((e=>function(e){if(!e.ok)throw new Error(`HTTP ${e.status} - ${e.statusText}`);return e}(e)&&e.arrayBuffer())).then((n=>this.fromDataBuffer(n,t||e))).catch((n=>{const s=new Ul("error",n,`Failed to load font at ${t||e}`);this.dispatch(s),this.onerror&&this.onerror(s)}))}async fromDataBuffer(e,t){this.fontData=new DataView(e);let n=function(e){const t=[e.getUint8(0),e.getUint8(1),e.getUint8(2),e.getUint8(3)];return gc(t,pc)||gc(t,mc)?"SFNT":gc(t,hc)?"WOFF":gc(t,fc)?"WOFF2":void 0}(this.fontData);if(!n)throw new Error(`${t} is either an unsupported font format, or not a font at all.`);await this.parseBasicData(n);const s=new Ul("load",{font:this});this.dispatch(s),this.onload&&this.onload(s)}async parseBasicData(e){return uc().then((t=>("SFNT"===e&&(this.opentype=new Kl(this,this.fontData,t)),"WOFF"===e&&(this.opentype=new ec(this,this.fontData,t)),"WOFF2"===e&&(this.opentype=new ac(this,this.fontData,t)),this.opentype)))}getGlyphId(e){return this.opentype.tables.cmap.getGlyphId(e)}reverse(e){return this.opentype.tables.cmap.reverse(e)}supports(e){return 0!==this.getGlyphId(e)}supportsVariation(e){return!1!==this.opentype.tables.cmap.supportsVariation(e)}measureText(e,t=16){if(this.__unloaded)throw new Error("Cannot measure text: font was unloaded. Please reload before calling measureText()");let n=document.createElement("div");n.textContent=e,n.style.fontFamily=this.name,n.style.fontSize=`${t}px`,n.style.color="transparent",n.style.background="transparent",n.style.top="0",n.style.left="0",n.style.position="absolute",document.body.appendChild(n);let s=n.getBoundingClientRect();document.body.removeChild(n);const r=this.opentype.tables["OS/2"];return s.fontSize=t,s.ascender=r.sTypoAscender,s.descender=r.sTypoDescender,s}unload(){if(this.styleElement.parentNode){this.styleElement.parentNode.removeElement(this.styleElement);const e=new Ul("unload",{font:this});this.dispatch(e),this.onunload&&this.onunload(e)}this._unloaded=!0}load(){if(this.__unloaded){delete this.__unloaded,document.head.appendChild(this.styleElement);const e=new Ul("load",{font:this});this.dispatch(e),this.onload&&this.onload(e)}}};class yc extends Yl{constructor(e,t,n){super(e),this.plaformID=t,this.encodingID=n}}class vc extends yc{constructor(e,t,n){super(e,t,n),this.format=0,this.length=e.uint16,this.language=e.uint16,this.glyphIdArray=[...new Array(256)].map((t=>e.uint8))}supports(e){return e.charCodeAt&&(e=-1,console.warn("supports(character) not implemented for cmap subtable format 0. only supports(id) is implemented.")),0<=e&&e<=255}reverse(e){return console.warn("reverse not implemented for cmap subtable format 0"),{}}getSupportedCharCodes(){return[{start:1,end:256}]}}class _c extends yc{constructor(e,t,n){super(e,t,n),this.format=2,this.length=e.uint16,this.language=e.uint16,this.subHeaderKeys=[...new Array(256)].map((t=>e.uint16));const s=Math.max(...this.subHeaderKeys),r=e.currentPosition;Xl(this,"subHeaders",(()=>(e.currentPosition=r,[...new Array(s)].map((t=>new bc(e))))));const a=r+8*s;Xl(this,"glyphIndexArray",(()=>(e.currentPosition=a,[...new Array(s)].map((t=>e.uint16)))))}supports(e){e.charCodeAt&&(e=-1,console.warn("supports(character) not implemented for cmap subtable format 2. only supports(id) is implemented."));const t=e&&255,n=e&&65280,s=this.subHeaders[n],r=this.subHeaders[s],a=r.firstCode,i=a+r.entryCount;return a<=t&&t<=i}reverse(e){return console.warn("reverse not implemented for cmap subtable format 2"),{}}getSupportedCharCodes(e=!1){return e?this.subHeaders.map((e=>({firstCode:e.firstCode,lastCode:e.lastCode}))):this.subHeaders.map((e=>({start:e.firstCode,end:e.lastCode})))}}class bc{constructor(e){this.firstCode=e.uint16,this.entryCount=e.uint16,this.lastCode=this.first+this.entryCount,this.idDelta=e.int16,this.idRangeOffset=e.uint16}}class Ec extends yc{constructor(e,t,n){super(e,t,n),this.format=4,this.length=e.uint16,this.language=e.uint16,this.segCountX2=e.uint16,this.segCount=this.segCountX2/2,this.searchRange=e.uint16,this.entrySelector=e.uint16,this.rangeShift=e.uint16;const s=e.currentPosition;Xl(this,"endCode",(()=>e.readBytes(this.segCount,s,16)));const r=s+2+this.segCountX2;Xl(this,"startCode",(()=>e.readBytes(this.segCount,r,16)));const a=r+this.segCountX2;Xl(this,"idDelta",(()=>e.readBytes(this.segCount,a,16,!0)));const i=a+this.segCountX2;Xl(this,"idRangeOffset",(()=>e.readBytes(this.segCount,i,16)));const o=i+this.segCountX2,l=this.length-(o-this.tableStart);Xl(this,"glyphIdArray",(()=>e.readBytes(l,o,16))),Xl(this,"segments",(()=>this.buildSegments(i,o,e)))}buildSegments(e,t,n){return[...new Array(this.segCount)].map(((t,s)=>{let r=this.startCode[s],a=this.endCode[s],i=this.idDelta[s],o=this.idRangeOffset[s],l=e+2*s,c=[];if(0===o)for(let e=r+i,t=a+i;e<=t;e++)c.push(e);else for(let e=0,t=a-r;e<=t;e++)n.currentPosition=l+o+2*e,c.push(n.uint16);return{startCode:r,endCode:a,idDelta:i,idRangeOffset:o,glyphIDs:c}}))}reverse(e){let t=this.segments.find((t=>t.glyphIDs.includes(e)));if(!t)return{};const n=t.startCode+t.glyphIDs.indexOf(e);return{code:n,unicode:String.fromCodePoint(n)}}getGlyphId(e){if(e.charCodeAt&&(e=e.charCodeAt(0)),55296<=e&&e<=57343)return 0;if(65534==(65534&e)||65535==(65535&e))return 0;let t=this.segments.find((t=>t.startCode<=e&&e<=t.endCode));return t?t.glyphIDs[e-t.startCode]:0}supports(e){return 0!==this.getGlyphId(e)}getSupportedCharCodes(e=!1){return e?this.segments:this.segments.map((e=>({start:e.startCode,end:e.endCode})))}}class wc extends yc{constructor(e,t,n){super(e,t,n),this.format=6,this.length=e.uint16,this.language=e.uint16,this.firstCode=e.uint16,this.entryCount=e.uint16,this.lastCode=this.firstCode+this.entryCount-1;Xl(this,"glyphIdArray",(()=>[...new Array(this.entryCount)].map((t=>e.uint16))))}supports(e){if(e.charCodeAt&&(e=-1,console.warn("supports(character) not implemented for cmap subtable format 6. only supports(id) is implemented.")),e<this.firstCode)return{};if(e>this.firstCode+this.entryCount)return{};const t=e-this.firstCode;return{code:t,unicode:String.fromCodePoint(t)}}reverse(e){let t=this.glyphIdArray.indexOf(e);if(t>-1)return this.firstCode+t}getSupportedCharCodes(e=!1){return e?[{firstCode:this.firstCode,lastCode:this.lastCode}]:[{start:this.firstCode,end:this.lastCode}]}}class xc extends yc{constructor(e,t,n){super(e,t,n),this.format=8,e.uint16,this.length=e.uint32,this.language=e.uint32,this.is32=[...new Array(8192)].map((t=>e.uint8)),this.numGroups=e.uint32;Xl(this,"groups",(()=>[...new Array(this.numGroups)].map((t=>new Cc(e)))))}supports(e){return e.charCodeAt&&(e=-1,console.warn("supports(character) not implemented for cmap subtable format 8. only supports(id) is implemented.")),-1!==this.groups.findIndex((t=>t.startcharCode<=e&&e<=t.endcharCode))}reverse(e){return console.warn("reverse not implemented for cmap subtable format 8"),{}}getSupportedCharCodes(e=!1){return e?this.groups:this.groups.map((e=>({start:e.startcharCode,end:e.endcharCode})))}}class Cc{constructor(e){this.startcharCode=e.uint32,this.endcharCode=e.uint32,this.startGlyphID=e.uint32}}class Sc extends yc{constructor(e,t,n){super(e,t,n),this.format=10,e.uint16,this.length=e.uint32,this.language=e.uint32,this.startCharCode=e.uint32,this.numChars=e.uint32,this.endCharCode=this.startCharCode+this.numChars;Xl(this,"glyphs",(()=>[...new Array(this.numChars)].map((t=>e.uint16))))}supports(e){return e.charCodeAt&&(e=-1,console.warn("supports(character) not implemented for cmap subtable format 10. only supports(id) is implemented.")),!(e<this.startCharCode)&&(!(e>this.startCharCode+this.numChars)&&e-this.startCharCode)}reverse(e){return console.warn("reverse not implemented for cmap subtable format 10"),{}}getSupportedCharCodes(e=!1){return e?[{startCharCode:this.startCharCode,endCharCode:this.endCharCode}]:[{start:this.startCharCode,end:this.endCharCode}]}}class kc extends yc{constructor(e,t,n){super(e,t,n),this.format=12,e.uint16,this.length=e.uint32,this.language=e.uint32,this.numGroups=e.uint32;Xl(this,"groups",(()=>[...new Array(this.numGroups)].map((t=>new Tc(e)))))}supports(e){return e.charCodeAt&&(e=e.charCodeAt(0)),55296<=e&&e<=57343||65534==(65534&e)||65535==(65535&e)?0:-1!==this.groups.findIndex((t=>t.startCharCode<=e&&e<=t.endCharCode))}reverse(e){for(let t of this.groups){let n=t.startGlyphID;if(n>e)continue;if(n===e)return t.startCharCode;if(n+(t.endCharCode-t.startCharCode)<e)continue;const s=t.startCharCode+(e-n);return{code:s,unicode:String.fromCodePoint(s)}}return{}}getSupportedCharCodes(e=!1){return e?this.groups:this.groups.map((e=>({start:e.startCharCode,end:e.endCharCode})))}}class Tc{constructor(e){this.startCharCode=e.uint32,this.endCharCode=e.uint32,this.startGlyphID=e.uint32}}class Pc extends yc{constructor(e,t,n){super(e,t,n),this.format=13,e.uint16,this.length=e.uint32,this.language=e.uint32,this.numGroups=e.uint32;Xl(this,"groups",[...new Array(this.numGroups)].map((t=>new Nc(e))))}supports(e){return e.charCodeAt&&(e=e.charCodeAt(0)),-1!==this.groups.findIndex((t=>t.startCharCode<=e&&e<=t.endCharCode))}reverse(e){return console.warn("reverse not implemented for cmap subtable format 13"),{}}getSupportedCharCodes(e=!1){return e?this.groups:this.groups.map((e=>({start:e.startCharCode,end:e.endCharCode})))}}class Nc{constructor(e){this.startCharCode=e.uint32,this.endCharCode=e.uint32,this.glyphID=e.uint32}}class Oc extends yc{constructor(e,t,n){super(e,t,n),this.subTableStart=e.currentPosition,this.format=14,this.length=e.uint32,this.numVarSelectorRecords=e.uint32,Xl(this,"varSelectors",(()=>[...new Array(this.numVarSelectorRecords)].map((t=>new Ic(e)))))}supports(){return console.warn("supports not implemented for cmap subtable format 14"),0}getSupportedCharCodes(){return console.warn("getSupportedCharCodes not implemented for cmap subtable format 14"),[]}reverse(e){return console.warn("reverse not implemented for cmap subtable format 14"),{}}supportsVariation(e){let t=this.varSelector.find((t=>t.varSelector===e));return t||!1}getSupportedVariations(){return this.varSelectors.map((e=>e.varSelector))}}class Ic{constructor(e){this.varSelector=e.uint24,this.defaultUVSOffset=e.Offset32,this.nonDefaultUVSOffset=e.Offset32}}class Mc{constructor(e,t){const n=this.platformID=e.uint16,s=this.encodingID=e.uint16,r=this.offset=e.Offset32;Xl(this,"table",(()=>(e.currentPosition=t+r,function(e,t,n){const s=e.uint16;return 0===s?new vc(e,t,n):2===s?new _c(e,t,n):4===s?new Ec(e,t,n):6===s?new wc(e,t,n):8===s?new xc(e,t,n):10===s?new Sc(e,t,n):12===s?new kc(e,t,n):13===s?new Pc(e,t,n):14===s?new Oc(e,t,n):{}}(e,n,s))))}}var Ac=Object.freeze({__proto__:null,cmap:class extends Zl{constructor(e,t){const{p:n}=super(e,t);this.version=n.uint16,this.numTables=n.uint16,this.encodingRecords=[...new Array(this.numTables)].map((e=>new Mc(n,this.tableStart)))}getSubTable(e){return this.encodingRecords[e].table}getSupportedEncodings(){return this.encodingRecords.map((e=>({platformID:e.platformID,encodingId:e.encodingID})))}getSupportedCharCodes(e,t){const n=this.encodingRecords.findIndex((n=>n.platformID===e&&n.encodingID===t));if(-1===n)return!1;return this.getSubTable(n).getSupportedCharCodes()}reverse(e){for(let t=0;t<this.numTables;t++){let n=this.getSubTable(t).reverse(e);if(n)return n}}getGlyphId(e){let t=0;return this.encodingRecords.some(((n,s)=>{let r=this.getSubTable(s);return!!r.getGlyphId&&(t=r.getGlyphId(e),0!==t)})),t}supports(e){return this.encodingRecords.some(((t,n)=>{const s=this.getSubTable(n);return s.supports&&!1!==s.supports(e)}))}supportsVariation(e){return this.encodingRecords.some(((t,n)=>{const s=this.getSubTable(n);return s.supportsVariation&&!1!==s.supportsVariation(e)}))}}});var Rc=Object.freeze({__proto__:null,head:class extends Zl{constructor(e,t){const{p:n}=super(e,t);this.load({majorVersion:n.uint16,minorVersion:n.uint16,fontRevision:n.fixed,checkSumAdjustment:n.uint32,magicNumber:n.uint32,flags:n.flags(16),unitsPerEm:n.uint16,created:n.longdatetime,modified:n.longdatetime,xMin:n.int16,yMin:n.int16,xMax:n.int16,yMax:n.int16,macStyle:n.flags(16),lowestRecPPEM:n.uint16,fontDirectionHint:n.uint16,indexToLocFormat:n.uint16,glyphDataFormat:n.uint16})}}});var Bc=Object.freeze({__proto__:null,hhea:class extends Zl{constructor(e,t){const{p:n}=super(e,t);this.majorVersion=n.uint16,this.minorVersion=n.uint16,this.ascender=n.fword,this.descender=n.fword,this.lineGap=n.fword,this.advanceWidthMax=n.ufword,this.minLeftSideBearing=n.fword,this.minRightSideBearing=n.fword,this.xMaxExtent=n.fword,this.caretSlopeRise=n.int16,this.caretSlopeRun=n.int16,this.caretOffset=n.int16,n.int16,n.int16,n.int16,n.int16,this.metricDataFormat=n.int16,this.numberOfHMetrics=n.uint16,n.verifyLength()}}});class Lc{constructor(e,t){this.advanceWidth=e,this.lsb=t}}var Dc=Object.freeze({__proto__:null,hmtx:class extends Zl{constructor(e,t,n){const{p:s}=super(e,t),r=n.hhea.numberOfHMetrics,a=n.maxp.numGlyphs,i=s.currentPosition;if(Xl(this,"hMetrics",(()=>(s.currentPosition=i,[...new Array(r)].map((e=>new Lc(s.uint16,s.int16)))))),r<a){const e=i+4*r;Xl(this,"leftSideBearings",(()=>(s.currentPosition=e,[...new Array(a-r)].map((e=>s.int16)))))}}}});var Fc=Object.freeze({__proto__:null,maxp:class extends Zl{constructor(e,t){const{p:n}=super(e,t);this.version=n.legacyFixed,this.numGlyphs=n.uint16,1===this.version&&(this.maxPoints=n.uint16,this.maxContours=n.uint16,this.maxCompositePoints=n.uint16,this.maxCompositeContours=n.uint16,this.maxZones=n.uint16,this.maxTwilightPoints=n.uint16,this.maxStorage=n.uint16,this.maxFunctionDefs=n.uint16,this.maxInstructionDefs=n.uint16,this.maxStackElements=n.uint16,this.maxSizeOfInstructions=n.uint16,this.maxComponentElements=n.uint16,this.maxComponentDepth=n.uint16),n.verifyLength()}}});class Vc{constructor(e,t){this.length=e,this.offset=t}}class zc{constructor(e,t){this.platformID=e.uint16,this.encodingID=e.uint16,this.languageID=e.uint16,this.nameID=e.uint16,this.length=e.uint16,this.offset=e.Offset16,Xl(this,"string",(()=>(e.currentPosition=t.stringStart+this.offset,function(e,t){const{platformID:n,length:s}=t;if(0===s)return"";if(0===n||3===n){const t=[];for(let n=0,r=s/2;n<r;n++)t[n]=String.fromCharCode(e.uint16);return t.join("")}const r=e.readBytes(s),a=[];return r.forEach((function(e,t){a[t]=String.fromCharCode(e)})),a.join("")}(e,this))))}}var Gc=Object.freeze({__proto__:null,name:class extends Zl{constructor(e,t){const{p:n}=super(e,t);this.format=n.uint16,this.count=n.uint16,this.stringOffset=n.Offset16,this.nameRecords=[...new Array(this.count)].map((e=>new zc(n,this))),1===this.format&&(this.langTagCount=n.uint16,this.langTagRecords=[...new Array(this.langTagCount)].map((e=>new Vc(n.uint16,n.Offset16)))),this.stringStart=this.tableStart+this.stringOffset}get(e){let t=this.nameRecords.find((t=>t.nameID===e));if(t)return t.string}}});var Hc=Object.freeze({__proto__:null,OS2:class extends Zl{constructor(e,t){const{p:n}=super(e,t);return this.version=n.uint16,this.xAvgCharWidth=n.int16,this.usWeightClass=n.uint16,this.usWidthClass=n.uint16,this.fsType=n.uint16,this.ySubscriptXSize=n.int16,this.ySubscriptYSize=n.int16,this.ySubscriptXOffset=n.int16,this.ySubscriptYOffset=n.int16,this.ySuperscriptXSize=n.int16,this.ySuperscriptYSize=n.int16,this.ySuperscriptXOffset=n.int16,this.ySuperscriptYOffset=n.int16,this.yStrikeoutSize=n.int16,this.yStrikeoutPosition=n.int16,this.sFamilyClass=n.int16,this.panose=[...new Array(10)].map((e=>n.uint8)),this.ulUnicodeRange1=n.flags(32),this.ulUnicodeRange2=n.flags(32),this.ulUnicodeRange3=n.flags(32),this.ulUnicodeRange4=n.flags(32),this.achVendID=n.tag,this.fsSelection=n.uint16,this.usFirstCharIndex=n.uint16,this.usLastCharIndex=n.uint16,this.sTypoAscender=n.int16,this.sTypoDescender=n.int16,this.sTypoLineGap=n.int16,this.usWinAscent=n.uint16,this.usWinDescent=n.uint16,0===this.version?n.verifyLength():(this.ulCodePageRange1=n.flags(32),this.ulCodePageRange2=n.flags(32),1===this.version?n.verifyLength():(this.sxHeight=n.int16,this.sCapHeight=n.int16,this.usDefaultChar=n.uint16,this.usBreakChar=n.uint16,this.usMaxContext=n.uint16,this.version<=4?n.verifyLength():(this.usLowerOpticalPointSize=n.uint16,this.usUpperOpticalPointSize=n.uint16,5===this.version?n.verifyLength():void 0)))}}});const Uc=[".notdef",".null","nonmarkingreturn","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","nonbreakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","brokenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","Gbreve","gbreve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"];var Wc=Object.freeze({__proto__:null,post:class extends Zl{constructor(e,t){const{p:n}=super(e,t);if(this.version=n.legacyFixed,this.italicAngle=n.fixed,this.underlinePosition=n.fword,this.underlineThickness=n.fword,this.isFixedPitch=n.uint32,this.minMemType42=n.uint32,this.maxMemType42=n.uint32,this.minMemType1=n.uint32,this.maxMemType1=n.uint32,1===this.version||3===this.version)return n.verifyLength();if(this.numGlyphs=n.uint16,2===this.version){this.glyphNameIndex=[...new Array(this.numGlyphs)].map((e=>n.uint16)),this.namesOffset=n.currentPosition,this.glyphNameOffsets=[1];for(let e=0;e<this.numGlyphs;e++){if(this.glyphNameIndex[e]<Uc.length){this.glyphNameOffsets.push(this.glyphNameOffsets[e]);continue}let t=n.int8;n.skip(t),this.glyphNameOffsets.push(this.glyphNameOffsets[e]+t+1)}}2.5===this.version&&(this.offset=[...new Array(this.numGlyphs)].map((e=>n.int8)))}getGlyphName(e){if(2!==this.version)return console.warn(`post table version ${this.version} does not support glyph name lookups`),"";let t=this.glyphNameIndex[e];if(t<258)return Uc[t];let n=this.glyphNameOffsets[e],s=this.glyphNameOffsets[e+1]-n-1;if(0===s)return".notdef.";this.parser.currentPosition=this.namesOffset+n;return this.parser.readBytes(s,this.namesOffset+n,8,!0).map((e=>String.fromCharCode(e))).join("")}}});class jc extends Zl{constructor(e,t){const{p:n}=super(e,t,"AxisTable");this.baseTagListOffset=n.Offset16,this.baseScriptListOffset=n.Offset16,Xl(this,"baseTagList",(()=>new qc({offset:e.offset+this.baseTagListOffset},t))),Xl(this,"baseScriptList",(()=>new Yc({offset:e.offset+this.baseScriptListOffset},t)))}}class qc extends Zl{constructor(e,t){const{p:n}=super(e,t,"BaseTagListTable");this.baseTagCount=n.uint16,this.baselineTags=[...new Array(this.baseTagCount)].map((e=>n.tag))}}class Yc extends Zl{constructor(e,t){const{p:n}=super(e,t,"BaseScriptListTable");this.baseScriptCount=n.uint16;const s=n.currentPosition;Xl(this,"baseScriptRecords",(()=>(n.currentPosition=s,[...new Array(this.baseScriptCount)].map((e=>new Zc(this.start,n))))))}}class Zc{constructor(e,t){this.baseScriptTag=t.tag,this.baseScriptOffset=t.Offset16,Xl(this,"baseScriptTable",(()=>(t.currentPosition=e+this.baseScriptOffset,new Xc(t))))}}class Xc{constructor(e){this.start=e.currentPosition,this.baseValuesOffset=e.Offset16,this.defaultMinMaxOffset=e.Offset16,this.baseLangSysCount=e.uint16,this.baseLangSysRecords=[...new Array(this.baseLangSysCount)].map((t=>new Kc(this.start,e))),Xl(this,"baseValues",(()=>(e.currentPosition=this.start+this.baseValuesOffset,new Jc(e)))),Xl(this,"defaultMinMax",(()=>(e.currentPosition=this.start+this.defaultMinMaxOffset,new Qc(e))))}}class Kc{constructor(e,t){this.baseLangSysTag=t.tag,this.minMaxOffset=t.Offset16,Xl(this,"minMax",(()=>(t.currentPosition=e+this.minMaxOffset,new Qc(t))))}}class Jc{constructor(e){this.parser=e,this.start=e.currentPosition,this.defaultBaselineIndex=e.uint16,this.baseCoordCount=e.uint16,this.baseCoords=[...new Array(this.baseCoordCount)].map((t=>e.Offset16))}getTable(e){return this.parser.currentPosition=this.start+this.baseCoords[e],new eu(this.parser)}}class Qc{constructor(e){this.minCoord=e.Offset16,this.maxCoord=e.Offset16,this.featMinMaxCount=e.uint16;const t=e.currentPosition;Xl(this,"featMinMaxRecords",(()=>(e.currentPosition=t,[...new Array(this.featMinMaxCount)].map((t=>new $c(e))))))}}class $c{constructor(e){this.featureTableTag=e.tag,this.minCoord=e.Offset16,this.maxCoord=e.Offset16}}class eu{constructor(e){this.baseCoordFormat=e.uint16,this.coordinate=e.int16,2===this.baseCoordFormat&&(this.referenceGlyph=e.uint16,this.baseCoordPoint=e.uint16),3===this.baseCoordFormat&&(this.deviceTable=e.Offset16)}}var tu=Object.freeze({__proto__:null,BASE:class extends Zl{constructor(e,t){const{p:n}=super(e,t);this.majorVersion=n.uint16,this.minorVersion=n.uint16,this.horizAxisOffset=n.Offset16,this.vertAxisOffset=n.Offset16,Xl(this,"horizAxis",(()=>new jc({offset:e.offset+this.horizAxisOffset},t))),Xl(this,"vertAxis",(()=>new jc({offset:e.offset+this.vertAxisOffset},t))),1===this.majorVersion&&1===this.minorVersion&&(this.itemVarStoreOffset=n.Offset32,Xl(this,"itemVarStore",(()=>new jc({offset:e.offset+this.itemVarStoreOffset},t))))}}});class nu{constructor(e){this.classFormat=e.uint16,1===this.classFormat&&(this.startGlyphID=e.uint16,this.glyphCount=e.uint16,this.classValueArray=[...new Array(this.glyphCount)].map((t=>e.uint16))),2===this.classFormat&&(this.classRangeCount=e.uint16,this.classRangeRecords=[...new Array(this.classRangeCount)].map((t=>new su(e))))}}class su{constructor(e){this.startGlyphID=e.uint16,this.endGlyphID=e.uint16,this.class=e.uint16}}class ru extends Yl{constructor(e){super(e),this.coverageFormat=e.uint16,1===this.coverageFormat&&(this.glyphCount=e.uint16,this.glyphArray=[...new Array(this.glyphCount)].map((t=>e.uint16))),2===this.coverageFormat&&(this.rangeCount=e.uint16,this.rangeRecords=[...new Array(this.rangeCount)].map((t=>new au(e))))}}class au{constructor(e){this.startGlyphID=e.uint16,this.endGlyphID=e.uint16,this.startCoverageIndex=e.uint16}}class iu{constructor(e,t){this.table=e,this.parser=t,this.start=t.currentPosition,this.format=t.uint16,this.variationRegionListOffset=t.Offset32,this.itemVariationDataCount=t.uint16,this.itemVariationDataOffsets=[...new Array(this.itemVariationDataCount)].map((e=>t.Offset32))}}class ou extends Yl{constructor(e){super(e),this.coverageOffset=e.Offset16,this.glyphCount=e.uint16,this.attachPointOffsets=[...new Array(this.glyphCount)].map((t=>e.Offset16))}getPoint(e){return this.parser.currentPosition=this.start+this.attachPointOffsets[e],new lu(this.parser)}}class lu{constructor(e){this.pointCount=e.uint16,this.pointIndices=[...new Array(this.pointCount)].map((t=>e.uint16))}}class cu extends Yl{constructor(e){super(e),this.coverageOffset=e.Offset16,Xl(this,"coverage",(()=>(e.currentPosition=this.start+this.coverageOffset,new ru(e)))),this.ligGlyphCount=e.uint16,this.ligGlyphOffsets=[...new Array(this.ligGlyphCount)].map((t=>e.Offset16))}getLigGlyph(e){return this.parser.currentPosition=this.start+this.ligGlyphOffsets[e],new uu(this.parser)}}class uu extends Yl{constructor(e){super(e),this.caretCount=e.uint16,this.caretValueOffsets=[...new Array(this.caretCount)].map((t=>e.Offset16))}getCaretValue(e){return this.parser.currentPosition=this.start+this.caretValueOffsets[e],new du(this.parser)}}class du{constructor(e){this.caretValueFormat=e.uint16,1===this.caretValueFormat&&(this.coordinate=e.int16),2===this.caretValueFormat&&(this.caretValuePointIndex=e.uint16),3===this.caretValueFormat&&(this.coordinate=e.int16,this.deviceOffset=e.Offset16)}}class pu extends Yl{constructor(e){super(e),this.markGlyphSetTableFormat=e.uint16,this.markGlyphSetCount=e.uint16,this.coverageOffsets=[...new Array(this.markGlyphSetCount)].map((t=>e.Offset32))}getMarkGlyphSet(e){return this.parser.currentPosition=this.start+this.coverageOffsets[e],new ru(this.parser)}}var mu=Object.freeze({__proto__:null,GDEF:class extends Zl{constructor(e,t){const{p:n}=super(e,t);this.majorVersion=n.uint16,this.minorVersion=n.uint16,this.glyphClassDefOffset=n.Offset16,Xl(this,"glyphClassDefs",(()=>{if(0!==this.glyphClassDefOffset)return n.currentPosition=this.tableStart+this.glyphClassDefOffset,new nu(n)})),this.attachListOffset=n.Offset16,Xl(this,"attachList",(()=>{if(0!==this.attachListOffset)return n.currentPosition=this.tableStart+this.attachListOffset,new ou(n)})),this.ligCaretListOffset=n.Offset16,Xl(this,"ligCaretList",(()=>{if(0!==this.ligCaretListOffset)return n.currentPosition=this.tableStart+this.ligCaretListOffset,new cu(n)})),this.markAttachClassDefOffset=n.Offset16,Xl(this,"markAttachClassDef",(()=>{if(0!==this.markAttachClassDefOffset)return n.currentPosition=this.tableStart+this.markAttachClassDefOffset,new nu(n)})),this.minorVersion>=2&&(this.markGlyphSetsDefOffset=n.Offset16,Xl(this,"markGlyphSetsDef",(()=>{if(0!==this.markGlyphSetsDefOffset)return n.currentPosition=this.tableStart+this.markGlyphSetsDefOffset,new pu(n)}))),3===this.minorVersion&&(this.itemVarStoreOffset=n.Offset32,Xl(this,"itemVarStore",(()=>{if(0!==this.itemVarStoreOffset)return n.currentPosition=this.tableStart+this.itemVarStoreOffset,new iu(n)})))}}});class hu extends Yl{static EMPTY={scriptCount:0,scriptRecords:[]};constructor(e){super(e),this.scriptCount=e.uint16,this.scriptRecords=[...new Array(this.scriptCount)].map((t=>new fu(e)))}}class fu{constructor(e){this.scriptTag=e.tag,this.scriptOffset=e.Offset16}}class gu extends Yl{constructor(e){super(e),this.defaultLangSys=e.Offset16,this.langSysCount=e.uint16,this.langSysRecords=[...new Array(this.langSysCount)].map((t=>new yu(e)))}}class yu{constructor(e){this.langSysTag=e.tag,this.langSysOffset=e.Offset16}}class vu{constructor(e){this.lookupOrder=e.Offset16,this.requiredFeatureIndex=e.uint16,this.featureIndexCount=e.uint16,this.featureIndices=[...new Array(this.featureIndexCount)].map((t=>e.uint16))}}class _u extends Yl{static EMPTY={featureCount:0,featureRecords:[]};constructor(e){super(e),this.featureCount=e.uint16,this.featureRecords=[...new Array(this.featureCount)].map((t=>new bu(e)))}}class bu{constructor(e){this.featureTag=e.tag,this.featureOffset=e.Offset16}}class Eu extends Yl{constructor(e){super(e),this.featureParams=e.Offset16,this.lookupIndexCount=e.uint16,this.lookupListIndices=[...new Array(this.lookupIndexCount)].map((t=>e.uint16))}getFeatureParams(){if(this.featureParams>0){const e=this.parser;e.currentPosition=this.start+this.featureParams;const t=this.featureTag;if("size"===t)return new xu(e);if(t.startsWith("cc"))return new wu(e);if(t.startsWith("ss"))return new Cu(e)}}}class wu{constructor(e){this.format=e.uint16,this.featUiLabelNameId=e.uint16,this.featUiTooltipTextNameId=e.uint16,this.sampleTextNameId=e.uint16,this.numNamedParameters=e.uint16,this.firstParamUiLabelNameId=e.uint16,this.charCount=e.uint16,this.character=[...new Array(this.charCount)].map((t=>e.uint24))}}class xu{constructor(e){this.designSize=e.uint16,this.subfamilyIdentifier=e.uint16,this.subfamilyNameID=e.uint16,this.smallEnd=e.uint16,this.largeEnd=e.uint16}}class Cu{constructor(e){this.version=e.uint16,this.UINameID=e.uint16}}function Su(e){e.parser.currentPosition-=2,delete e.coverageOffset,delete e.getCoverageTable}class ku extends Yl{constructor(e){super(e),this.substFormat=e.uint16,this.coverageOffset=e.Offset16}getCoverageTable(){let e=this.parser;return e.currentPosition=this.start+this.coverageOffset,new ru(e)}}class Tu{constructor(e){this.glyphSequenceIndex=e.uint16,this.lookupListIndex=e.uint16}}class Pu extends ku{constructor(e){super(e),this.deltaGlyphID=e.int16}}class Nu extends ku{constructor(e){super(e),this.sequenceCount=e.uint16,this.sequenceOffsets=[...new Array(this.sequenceCount)].map((t=>e.Offset16))}getSequence(e){let t=this.parser;return t.currentPosition=this.start+this.sequenceOffsets[e],new Ou(t)}}class Ou{constructor(e){this.glyphCount=e.uint16,this.substituteGlyphIDs=[...new Array(this.glyphCount)].map((t=>e.uint16))}}class Iu extends ku{constructor(e){super(e),this.alternateSetCount=e.uint16,this.alternateSetOffsets=[...new Array(this.alternateSetCount)].map((t=>e.Offset16))}getAlternateSet(e){let t=this.parser;return t.currentPosition=this.start+this.alternateSetOffsets[e],new Mu(t)}}class Mu{constructor(e){this.glyphCount=e.uint16,this.alternateGlyphIDs=[...new Array(this.glyphCount)].map((t=>e.uint16))}}class Au extends ku{constructor(e){super(e),this.ligatureSetCount=e.uint16,this.ligatureSetOffsets=[...new Array(this.ligatureSetCount)].map((t=>e.Offset16))}getLigatureSet(e){let t=this.parser;return t.currentPosition=this.start+this.ligatureSetOffsets[e],new Ru(t)}}class Ru extends Yl{constructor(e){super(e),this.ligatureCount=e.uint16,this.ligatureOffsets=[...new Array(this.ligatureCount)].map((t=>e.Offset16))}getLigature(e){let t=this.parser;return t.currentPosition=this.start+this.ligatureOffsets[e],new Bu(t)}}class Bu{constructor(e){this.ligatureGlyph=e.uint16,this.componentCount=e.uint16,this.componentGlyphIDs=[...new Array(this.componentCount-1)].map((t=>e.uint16))}}class Lu extends ku{constructor(e){super(e),1===this.substFormat&&(this.subRuleSetCount=e.uint16,this.subRuleSetOffsets=[...new Array(this.subRuleSetCount)].map((t=>e.Offset16))),2===this.substFormat&&(this.classDefOffset=e.Offset16,this.subClassSetCount=e.uint16,this.subClassSetOffsets=[...new Array(this.subClassSetCount)].map((t=>e.Offset16))),3===this.substFormat&&(Su(this),this.glyphCount=e.uint16,this.substitutionCount=e.uint16,this.coverageOffsets=[...new Array(this.glyphCount)].map((t=>e.Offset16)),this.substLookupRecords=[...new Array(this.substitutionCount)].map((t=>new Tu(e))))}getSubRuleSet(e){if(1!==this.substFormat)throw new Error(`lookup type 5.${this.substFormat} has no subrule sets.`);let t=this.parser;return t.currentPosition=this.start+this.subRuleSetOffsets[e],new Du(t)}getSubClassSet(e){if(2!==this.substFormat)throw new Error(`lookup type 5.${this.substFormat} has no subclass sets.`);let t=this.parser;return t.currentPosition=this.start+this.subClassSetOffsets[e],new Vu(t)}getCoverageTable(e){if(3!==this.substFormat&&!e)return super.getCoverageTable();if(!e)throw new Error(`lookup type 5.${this.substFormat} requires an coverage table index.`);let t=this.parser;return t.currentPosition=this.start+this.coverageOffsets[e],new ru(t)}}class Du extends Yl{constructor(e){super(e),this.subRuleCount=e.uint16,this.subRuleOffsets=[...new Array(this.subRuleCount)].map((t=>e.Offset16))}getSubRule(e){let t=this.parser;return t.currentPosition=this.start+this.subRuleOffsets[e],new Fu(t)}}class Fu{constructor(e){this.glyphCount=e.uint16,this.substitutionCount=e.uint16,this.inputSequence=[...new Array(this.glyphCount-1)].map((t=>e.uint16)),this.substLookupRecords=[...new Array(this.substitutionCount)].map((t=>new Tu(e)))}}class Vu extends Yl{constructor(e){super(e),this.subClassRuleCount=e.uint16,this.subClassRuleOffsets=[...new Array(this.subClassRuleCount)].map((t=>e.Offset16))}getSubClass(e){let t=this.parser;return t.currentPosition=this.start+this.subClassRuleOffsets[e],new zu(t)}}class zu extends Fu{constructor(e){super(e)}}class Gu extends ku{constructor(e){super(e),1===this.substFormat&&(this.chainSubRuleSetCount=e.uint16,this.chainSubRuleSetOffsets=[...new Array(this.chainSubRuleSetCount)].map((t=>e.Offset16))),2===this.substFormat&&(this.backtrackClassDefOffset=e.Offset16,this.inputClassDefOffset=e.Offset16,this.lookaheadClassDefOffset=e.Offset16,this.chainSubClassSetCount=e.uint16,this.chainSubClassSetOffsets=[...new Array(this.chainSubClassSetCount)].map((t=>e.Offset16))),3===this.substFormat&&(Su(this),this.backtrackGlyphCount=e.uint16,this.backtrackCoverageOffsets=[...new Array(this.backtrackGlyphCount)].map((t=>e.Offset16)),this.inputGlyphCount=e.uint16,this.inputCoverageOffsets=[...new Array(this.inputGlyphCount)].map((t=>e.Offset16)),this.lookaheadGlyphCount=e.uint16,this.lookaheadCoverageOffsets=[...new Array(this.lookaheadGlyphCount)].map((t=>e.Offset16)),this.seqLookupCount=e.uint16,this.seqLookupRecords=[...new Array(this.substitutionCount)].map((t=>new qu(e))))}getChainSubRuleSet(e){if(1!==this.substFormat)throw new Error(`lookup type 6.${this.substFormat} has no chainsubrule sets.`);let t=this.parser;return t.currentPosition=this.start+this.chainSubRuleSetOffsets[e],new Hu(t)}getChainSubClassSet(e){if(2!==this.substFormat)throw new Error(`lookup type 6.${this.substFormat} has no chainsubclass sets.`);let t=this.parser;return t.currentPosition=this.start+this.chainSubClassSetOffsets[e],new Wu(t)}getCoverageFromOffset(e){if(3!==this.substFormat)throw new Error(`lookup type 6.${this.substFormat} does not use contextual coverage offsets.`);let t=this.parser;return t.currentPosition=this.start+e,new ru(t)}}class Hu extends Yl{constructor(e){super(e),this.chainSubRuleCount=e.uint16,this.chainSubRuleOffsets=[...new Array(this.chainSubRuleCount)].map((t=>e.Offset16))}getSubRule(e){let t=this.parser;return t.currentPosition=this.start+this.chainSubRuleOffsets[e],new Uu(t)}}class Uu{constructor(e){this.backtrackGlyphCount=e.uint16,this.backtrackSequence=[...new Array(this.backtrackGlyphCount)].map((t=>e.uint16)),this.inputGlyphCount=e.uint16,this.inputSequence=[...new Array(this.inputGlyphCount-1)].map((t=>e.uint16)),this.lookaheadGlyphCount=e.uint16,this.lookAheadSequence=[...new Array(this.lookAheadGlyphCount)].map((t=>e.uint16)),this.substitutionCount=e.uint16,this.substLookupRecords=[...new Array(this.SubstCount)].map((t=>new Tu(e)))}}class Wu extends Yl{constructor(e){super(e),this.chainSubClassRuleCount=e.uint16,this.chainSubClassRuleOffsets=[...new Array(this.chainSubClassRuleCount)].map((t=>e.Offset16))}getSubClass(e){let t=this.parser;return t.currentPosition=this.start+this.chainSubRuleOffsets[e],new ju(t)}}class ju{constructor(e){this.backtrackGlyphCount=e.uint16,this.backtrackSequence=[...new Array(this.backtrackGlyphCount)].map((t=>e.uint16)),this.inputGlyphCount=e.uint16,this.inputSequence=[...new Array(this.inputGlyphCount-1)].map((t=>e.uint16)),this.lookaheadGlyphCount=e.uint16,this.lookAheadSequence=[...new Array(this.lookAheadGlyphCount)].map((t=>e.uint16)),this.substitutionCount=e.uint16,this.substLookupRecords=[...new Array(this.substitutionCount)].map((t=>new qu(e)))}}class qu extends Yl{constructor(e){super(e),this.sequenceIndex=e.uint16,this.lookupListIndex=e.uint16}}class Yu extends Yl{constructor(e){super(e),this.substFormat=e.uint16,this.extensionLookupType=e.uint16,this.extensionOffset=e.Offset32}}class Zu extends ku{constructor(e){super(e),this.backtrackGlyphCount=e.uint16,this.backtrackCoverageOffsets=[...new Array(this.backtrackGlyphCount)].map((t=>e.Offset16)),this.lookaheadGlyphCount=e.uint16,this.lookaheadCoverageOffsets=[new Array(this.lookaheadGlyphCount)].map((t=>e.Offset16)),this.glyphCount=e.uint16,this.substituteGlyphIDs=[...new Array(this.glyphCount)].map((t=>e.uint16))}}var Xu={buildSubtable:function(e,t){const n=new[void 0,Pu,Nu,Iu,Au,Lu,Gu,Yu,Zu][e](t);return n.type=e,n}};class Ku extends Yl{constructor(e){super(e)}}class Ju extends Ku{constructor(e){super(e),console.log("lookup type 1")}}class Qu extends Ku{constructor(e){super(e),console.log("lookup type 2")}}class $u extends Ku{constructor(e){super(e),console.log("lookup type 3")}}class ed extends Ku{constructor(e){super(e),console.log("lookup type 4")}}class td extends Ku{constructor(e){super(e),console.log("lookup type 5")}}class nd extends Ku{constructor(e){super(e),console.log("lookup type 6")}}class sd extends Ku{constructor(e){super(e),console.log("lookup type 7")}}class rd extends Ku{constructor(e){super(e),console.log("lookup type 8")}}class ad extends Ku{constructor(e){super(e),console.log("lookup type 9")}}var id={buildSubtable:function(e,t){const n=new[void 0,Ju,Qu,$u,ed,td,nd,sd,rd,ad][e](t);return n.type=e,n}};class od extends Yl{static EMPTY={lookupCount:0,lookups:[]};constructor(e){super(e),this.lookupCount=e.uint16,this.lookups=[...new Array(this.lookupCount)].map((t=>e.Offset16))}}class ld extends Yl{constructor(e,t){super(e),this.ctType=t,this.lookupType=e.uint16,this.lookupFlag=e.uint16,this.subTableCount=e.uint16,this.subtableOffsets=[...new Array(this.subTableCount)].map((t=>e.Offset16)),this.markFilteringSet=e.uint16}get rightToLeft(){return!0&this.lookupFlag}get ignoreBaseGlyphs(){return!0&this.lookupFlag}get ignoreLigatures(){return!0&this.lookupFlag}get ignoreMarks(){return!0&this.lookupFlag}get useMarkFilteringSet(){return!0&this.lookupFlag}get markAttachmentType(){return!0&this.lookupFlag}getSubTable(e){const t="GSUB"===this.ctType?Xu:id;return this.parser.currentPosition=this.start+this.subtableOffsets[e],t.buildSubtable(this.lookupType,this.parser)}}class cd extends Zl{constructor(e,t,n){const{p:s,tableStart:r}=super(e,t,n);this.majorVersion=s.uint16,this.minorVersion=s.uint16,this.scriptListOffset=s.Offset16,this.featureListOffset=s.Offset16,this.lookupListOffset=s.Offset16,1===this.majorVersion&&1===this.minorVersion&&(this.featureVariationsOffset=s.Offset32);const a=!(this.scriptListOffset||this.featureListOffset||this.lookupListOffset);Xl(this,"scriptList",(()=>a?hu.EMPTY:(s.currentPosition=r+this.scriptListOffset,new hu(s)))),Xl(this,"featureList",(()=>a?_u.EMPTY:(s.currentPosition=r+this.featureListOffset,new _u(s)))),Xl(this,"lookupList",(()=>a?od.EMPTY:(s.currentPosition=r+this.lookupListOffset,new od(s)))),this.featureVariationsOffset&&Xl(this,"featureVariations",(()=>a?FeatureVariations.EMPTY:(s.currentPosition=r+this.featureVariationsOffset,new FeatureVariations(s))))}getSupportedScripts(){return this.scriptList.scriptRecords.map((e=>e.scriptTag))}getScriptTable(e){let t=this.scriptList.scriptRecords.find((t=>t.scriptTag===e));this.parser.currentPosition=this.scriptList.start+t.scriptOffset;let n=new gu(this.parser);return n.scriptTag=e,n}ensureScriptTable(e){return"string"==typeof e?this.getScriptTable(e):e}getSupportedLangSys(e){const t=0!==(e=this.ensureScriptTable(e)).defaultLangSys,n=e.langSysRecords.map((e=>e.langSysTag));return t&&n.unshift("dflt"),n}getDefaultLangSysTable(e){let t=(e=this.ensureScriptTable(e)).defaultLangSys;if(0!==t){this.parser.currentPosition=e.start+t;let n=new vu(this.parser);return n.langSysTag="",n.defaultForScript=e.scriptTag,n}}getLangSysTable(e,t="dflt"){if("dflt"===t)return this.getDefaultLangSysTable(e);let n=(e=this.ensureScriptTable(e)).langSysRecords.find((e=>e.langSysTag===t));this.parser.currentPosition=e.start+n.langSysOffset;let s=new vu(this.parser);return s.langSysTag=t,s}getFeatures(e){return e.featureIndices.map((e=>this.getFeature(e)))}getFeature(e){let t;if(t=parseInt(e)==e?this.featureList.featureRecords[e]:this.featureList.featureRecords.find((t=>t.featureTag===e)),!t)return;this.parser.currentPosition=this.featureList.start+t.featureOffset;let n=new Eu(this.parser);return n.featureTag=t.featureTag,n}getLookups(e){return e.lookupListIndices.map((e=>this.getLookup(e)))}getLookup(e,t){let n=this.lookupList.lookups[e];return this.parser.currentPosition=this.lookupList.start+n,new ld(this.parser,t)}}var ud=Object.freeze({__proto__:null,GSUB:class extends cd{constructor(e,t){super(e,t,"GSUB")}getLookup(e){return super.getLookup(e,"GSUB")}}});var dd=Object.freeze({__proto__:null,GPOS:class extends cd{constructor(e,t){super(e,t,"GPOS")}getLookup(e){return super.getLookup(e,"GPOS")}}});class pd extends Yl{constructor(e){super(e),this.numEntries=e.uint16,this.documentRecords=[...new Array(this.numEntries)].map((t=>new md(e)))}getDocument(e){let t=this.documentRecords[e];if(!t)return"";let n=this.start+t.svgDocOffset;return this.parser.currentPosition=n,this.parser.readBytes(t.svgDocLength)}getDocumentForGlyph(e){let t=this.documentRecords.findIndex((t=>t.startGlyphID<=e&&e<=t.endGlyphID));return-1===t?"":this.getDocument(t)}}class md{constructor(e){this.startGlyphID=e.uint16,this.endGlyphID=e.uint16,this.svgDocOffset=e.Offset32,this.svgDocLength=e.uint32}}var hd=Object.freeze({__proto__:null,SVG:class extends Zl{constructor(e,t){const{p:n}=super(e,t);this.version=n.uint16,this.offsetToSVGDocumentList=n.Offset32,n.currentPosition=this.tableStart+this.offsetToSVGDocumentList,this.documentList=new pd(n)}}});class fd{constructor(e){this.tag=e.tag,this.minValue=e.fixed,this.defaultValue=e.fixed,this.maxValue=e.fixed,this.flags=e.flags(16),this.axisNameID=e.uint16}}class gd{constructor(e,t,n){let s=e.currentPosition;this.subfamilyNameID=e.uint16,e.uint16,this.coordinates=[...new Array(t)].map((t=>e.fixed)),e.currentPosition-s<n&&(this.postScriptNameID=e.uint16)}}var yd=Object.freeze({__proto__:null,fvar:class extends Zl{constructor(e,t){const{p:n}=super(e,t);this.majorVersion=n.uint16,this.minorVersion=n.uint16,this.axesArrayOffset=n.Offset16,n.uint16,this.axisCount=n.uint16,this.axisSize=n.uint16,this.instanceCount=n.uint16,this.instanceSize=n.uint16;const s=this.tableStart+this.axesArrayOffset;Xl(this,"axes",(()=>(n.currentPosition=s,[...new Array(this.axisCount)].map((e=>new fd(n))))));const r=s+this.axisCount*this.axisSize;Xl(this,"instances",(()=>{let e=[];for(let t=0;t<this.instanceCount;t++)n.currentPosition=r+t*this.instanceSize,e.push(new gd(n,this.axisCount,this.instanceSize));return e}))}getSupportedAxes(){return this.axes.map((e=>e.tag))}getAxis(e){return this.axes.find((t=>t.tag===e))}}});var vd=Object.freeze({__proto__:null,cvt:class extends Zl{constructor(e,t){const{p:n}=super(e,t),s=e.length/2;Xl(this,"items",(()=>[...new Array(s)].map((e=>n.fword))))}}});var _d=Object.freeze({__proto__:null,fpgm:class extends Zl{constructor(e,t){const{p:n}=super(e,t);Xl(this,"instructions",(()=>[...new Array(e.length)].map((e=>n.uint8))))}}});class bd{constructor(e){this.rangeMaxPPEM=e.uint16,this.rangeGaspBehavior=e.uint16}}var Ed=Object.freeze({__proto__:null,gasp:class extends Zl{constructor(e,t){const{p:n}=super(e,t);this.version=n.uint16,this.numRanges=n.uint16;Xl(this,"gaspRanges",(()=>[...new Array(this.numRanges)].map((e=>new bd(n)))))}}});var wd=Object.freeze({__proto__:null,glyf:class extends Zl{constructor(e,t){super(e,t)}getGlyphData(e,t){return this.parser.currentPosition=this.tableStart+e,this.parser.readBytes(t)}}});var xd=Object.freeze({__proto__:null,loca:class extends Zl{constructor(e,t,n){const{p:s}=super(e,t),r=n.maxp.numGlyphs+1;0===n.head.indexToLocFormat?(this.x2=!0,Xl(this,"offsets",(()=>[...new Array(r)].map((e=>s.Offset16))))):Xl(this,"offsets",(()=>[...new Array(r)].map((e=>s.Offset32))))}getGlyphDataOffsetAndLength(e){let t=this.offsets[e]*this.x2?2:1;return{offset:t,length:(this.offsets[e+1]*this.x2?2:1)-t}}}});var Cd=Object.freeze({__proto__:null,prep:class extends Zl{constructor(e,t){const{p:n}=super(e,t);Xl(this,"instructions",(()=>[...new Array(e.length)].map((e=>n.uint8))))}}});var Sd=Object.freeze({__proto__:null,CFF:class extends Zl{constructor(e,t){const{p:n}=super(e,t);Xl(this,"data",(()=>n.readBytes()))}}});var kd=Object.freeze({__proto__:null,CFF2:class extends Zl{constructor(e,t){const{p:n}=super(e,t);Xl(this,"data",(()=>n.readBytes()))}}});class Td{constructor(e){this.glyphIndex=e.uint16,this.vertOriginY=e.int16}}var Pd=Object.freeze({__proto__:null,VORG:class extends Zl{constructor(e,t){const{p:n}=super(e,t);this.majorVersion=n.uint16,this.minorVersion=n.uint16,this.defaultVertOriginY=n.int16,this.numVertOriginYMetrics=n.uint16,Xl(this,"vertORiginYMetrics",(()=>[...new Array(this.numVertOriginYMetrics)].map((e=>new Td(n)))))}}});class Nd{constructor(e){this.indexSubTableArrayOffset=e.Offset32,this.indexTablesSize=e.uint32,this.numberofIndexSubTables=e.uint32,this.colorRef=e.uint32,this.hori=new Id(e),this.vert=new Id(e),this.startGlyphIndex=e.uint16,this.endGlyphIndex=e.uint16,this.ppemX=e.uint8,this.ppemY=e.uint8,this.bitDepth=e.uint8,this.flags=e.int8}}class Od{constructor(e){this.hori=new Id(e),this.vert=new Id(e),this.ppemX=e.uint8,this.ppemY=e.uint8,this.substitutePpemX=e.uint8,this.substitutePpemY=e.uint8}}class Id{constructor(e){this.ascender=e.int8,this.descender=e.int8,this.widthMax=e.uint8,this.caretSlopeNumerator=e.int8,this.caretSlopeDenominator=e.int8,this.caretOffset=e.int8,this.minOriginSB=e.int8,this.minAdvanceSB=e.int8,this.maxBeforeBL=e.int8,this.minAfterBL=e.int8,this.pad1=e.int8,this.pad2=e.int8}}class Md extends Zl{constructor(e,t,n){const{p:s}=super(e,t,n);this.majorVersion=s.uint16,this.minorVersion=s.uint16,this.numSizes=s.uint32,Xl(this,"bitMapSizes",(()=>[...new Array(this.numSizes)].map((e=>new Nd(s)))))}}var Ad=Object.freeze({__proto__:null,EBLC:Md});class Rd extends Zl{constructor(e,t,n){const{p:s}=super(e,t,n);this.majorVersion=s.uint16,this.minorVersion=s.uint16}}var Bd=Object.freeze({__proto__:null,EBDT:Rd});var Ld=Object.freeze({__proto__:null,EBSC:class extends Zl{constructor(e,t){const{p:n}=super(e,t);this.majorVersion=n.uint16,this.minorVersion=n.uint16,this.numSizes=n.uint32,Xl(this,"bitmapScales",(()=>[...new Array(this.numSizes)].map((e=>new Od(n)))))}}});var Dd=Object.freeze({__proto__:null,CBLC:class extends Md{constructor(e,t){super(e,t,"CBLC")}}});var Fd=Object.freeze({__proto__:null,CBDT:class extends Rd{constructor(e,t){super(e,t,"CBDT")}}});var Vd=Object.freeze({__proto__:null,sbix:class extends Zl{constructor(e,t){const{p:n}=super(e,t);this.version=n.uint16,this.flags=n.flags(16),this.numStrikes=n.uint32,Xl(this,"strikeOffsets",(()=>[...new Array(this.numStrikes)].map((e=>n.Offset32))))}}});class zd{constructor(e){this.gID=e.uint16,this.firstLayerIndex=e.uint16,this.numLayers=e.uint16}}class Gd{constructor(e){this.gID=e.uint16,this.paletteIndex=e.uint16}}var Hd=Object.freeze({__proto__:null,COLR:class extends Zl{constructor(e,t){const{p:n}=super(e,t);this.version=n.uint16,this.numBaseGlyphRecords=n.uint16,this.baseGlyphRecordsOffset=n.Offset32,this.layerRecordsOffset=n.Offset32,this.numLayerRecords=n.uint16}getBaseGlyphRecord(e){let t=this.tableStart+this.baseGlyphRecordsOffset;this.parser.currentPosition=t;let n=new zd(this.parser),s=n.gID,r=this.tableStart+this.layerRecordsOffset-6;this.parser.currentPosition=r;let a=new zd(this.parser),i=a.gID;if(s===e)return n;if(i===e)return a;for(;t!==r;){let n=t+(r-t)/12;this.parser.currentPosition=n;let s=new zd(this.parser),a=s.gID;if(a===e)return s;a>e?r=n:a<e&&(t=n)}return!1}getLayers(e){let t=this.getBaseGlyphRecord(e);return this.parser.currentPosition=this.tableStart+this.layerRecordsOffset+4*t.firstLayerIndex,[...new Array(t.numLayers)].map((e=>new Gd(p)))}}});class Ud{constructor(e){this.blue=e.uint8,this.green=e.uint8,this.red=e.uint8,this.alpha=e.uint8}}class Wd{constructor(e,t){this.paletteTypes=[...new Array(t)].map((t=>e.uint32))}}class jd{constructor(e,t){this.paletteLabels=[...new Array(t)].map((t=>e.uint16))}}class qd{constructor(e,t){this.paletteEntryLabels=[...new Array(t)].map((t=>e.uint16))}}var Yd=Object.freeze({__proto__:null,CPAL:class extends Zl{constructor(e,t){const{p:n}=super(e,t);this.version=n.uint16,this.numPaletteEntries=n.uint16;const s=this.numPalettes=n.uint16;this.numColorRecords=n.uint16,this.offsetFirstColorRecord=n.Offset32,this.colorRecordIndices=[...new Array(this.numPalettes)].map((e=>n.uint16)),Xl(this,"colorRecords",(()=>(n.currentPosition=this.tableStart+this.offsetFirstColorRecord,[...new Array(this.numColorRecords)].map((e=>new Ud(n)))))),1===this.version&&(this.offsetPaletteTypeArray=n.Offset32,this.offsetPaletteLabelArray=n.Offset32,this.offsetPaletteEntryLabelArray=n.Offset32,Xl(this,"paletteTypeArray",(()=>(n.currentPosition=this.tableStart+this.offsetPaletteTypeArray,new Wd(n,s)))),Xl(this,"paletteLabelArray",(()=>(n.currentPosition=this.tableStart+this.offsetPaletteLabelArray,new jd(n,s)))),Xl(this,"paletteEntryLabelArray",(()=>(n.currentPosition=this.tableStart+this.offsetPaletteEntryLabelArray,new qd(n,s)))))}}});class Zd{constructor(e){this.format=e.uint32,this.length=e.uint32,this.offset=e.Offset32}}class Xd{constructor(e){e.uint16,e.uint16,this.signatureLength=e.uint32,this.signature=e.readBytes(this.signatureLength)}}var Kd=Object.freeze({__proto__:null,DSIG:class extends Zl{constructor(e,t){const{p:n}=super(e,t);this.version=n.uint32,this.numSignatures=n.uint16,this.flags=n.uint16,this.signatureRecords=[...new Array(this.numSignatures)].map((e=>new Zd(n)))}getData(e){const t=this.signatureRecords[e];return this.parser.currentPosition=this.tableStart+t.offset,new Xd(this.parser)}}});class Jd{constructor(e,t){this.pixelSize=e.uint8,this.maxWidth=e.uint8,this.widths=e.readBytes(t)}}var Qd=Object.freeze({__proto__:null,hdmx:class extends Zl{constructor(e,t,n){const{p:s}=super(e,t),r=n.hmtx.numGlyphs;this.version=s.uint16,this.numRecords=s.int16,this.sizeDeviceRecord=s.int32,this.records=[...new Array(numRecords)].map((e=>new Jd(s,r)))}}});class $d{constructor(e){this.version=e.uint16,this.length=e.uint16,this.coverage=e.flags(8),this.format=e.uint8,0===this.format&&(this.nPairs=e.uint16,this.searchRange=e.uint16,this.entrySelector=e.uint16,this.rangeShift=e.uint16,Xl(this,"pairs",(()=>[...new Array(this.nPairs)].map((t=>new ep(e)))))),2===this.format&&console.warn("Kern subtable format 2 is not supported: this parser currently only parses universal table data.")}get horizontal(){return this.coverage[0]}get minimum(){return this.coverage[1]}get crossstream(){return this.coverage[2]}get override(){return this.coverage[3]}}class ep{constructor(e){this.left=e.uint16,this.right=e.uint16,this.value=e.fword}}var tp=Object.freeze({__proto__:null,kern:class extends Zl{constructor(e,t){const{p:n}=super(e,t);this.version=n.uint16,this.nTables=n.uint16,Xl(this,"tables",(()=>{let e=this.tableStart+4;const t=[];for(let s=0;s<this.nTables;s++){n.currentPosition=e;let s=new $d(n);t.push(s),e+=s}return t}))}}});var np=Object.freeze({__proto__:null,LTSH:class extends Zl{constructor(e,t){const{p:n}=super(e,t);this.version=n.uint16,this.numGlyphs=n.uint16,this.yPels=n.readBytes(this.numGlyphs)}}});var sp=Object.freeze({__proto__:null,MERG:class extends Zl{constructor(e,t){const{p:n}=super(e,t);this.version=n.uint16,this.mergeClassCount=n.uint16,this.mergeDataOffset=n.Offset16,this.classDefCount=n.uint16,this.offsetToClassDefOffsets=n.Offset16,Xl(this,"mergeEntryMatrix",(()=>[...new Array(this.mergeClassCount)].map((e=>n.readBytes(this.mergeClassCount))))),console.warn("Full MERG parsing is currently not supported."),console.warn("If you need this table parsed, please file an issue, or better yet, a PR.")}}});class rp{constructor(e,t){this.tableStart=e,this.parser=t,this.tag=t.tag,this.dataOffset=t.Offset32,this.dataLength=t.uint32}getData(){return this.parser.currentField=this.tableStart+this.dataOffset,this.parser.readBytes(this.dataLength)}}var ap=Object.freeze({__proto__:null,meta:class extends Zl{constructor(e,t){const{p:n}=super(e,t);this.version=n.uint32,this.flags=n.uint32,n.uint32,this.dataMapsCount=n.uint32,this.dataMaps=[...new Array(this.dataMapsCount)].map((e=>new rp(this.tableStart,n)))}}});var ip=Object.freeze({__proto__:null,PCLT:class extends Zl{constructor(e,t){super(e,t),console.warn("This font uses a PCLT table, which is currently not supported by this parser."),console.warn("If you need this table parsed, please file an issue, or better yet, a PR.")}}});class op{constructor(e){this.bCharSet=e.uint8,this.xRatio=e.uint8,this.yStartRatio=e.uint8,this.yEndRatio=e.uint8}}class lp{constructor(e){this.recs=e.uint16,this.startsz=e.uint8,this.endsz=e.uint8,this.records=[...new Array(this.recs)].map((t=>new cp(e)))}}class cp{constructor(e){this.yPelHeight=e.uint16,this.yMax=e.int16,this.yMin=e.int16}}var up=Object.freeze({__proto__:null,VDMX:class extends Zl{constructor(e,t){const{p:n}=super(e,t);this.version=n.uint16,this.numRecs=n.uint16,this.numRatios=n.uint16,this.ratRanges=[...new Array(this.numRatios)].map((e=>new op(n))),this.offsets=[...new Array(this.numRatios)].map((e=>n.Offset16)),this.VDMXGroups=[...new Array(this.numRecs)].map((e=>new lp(n)))}}});var dp=Object.freeze({__proto__:null,vhea:class extends Zl{constructor(e,t){const{p:n}=super(e,t);this.version=n.fixed,this.ascent=this.vertTypoAscender=n.int16,this.descent=this.vertTypoDescender=n.int16,this.lineGap=this.vertTypoLineGap=n.int16,this.advanceHeightMax=n.int16,this.minTopSideBearing=n.int16,this.minBottomSideBearing=n.int16,this.yMaxExtent=n.int16,this.caretSlopeRise=n.int16,this.caretSlopeRun=n.int16,this.caretOffset=n.int16,this.reserved=n.int16,this.reserved=n.int16,this.reserved=n.int16,this.reserved=n.int16,this.metricDataFormat=n.int16,this.numOfLongVerMetrics=n.uint16,n.verifyLength()}}});class pp{constructor(e,t){this.advanceHeight=e,this.topSideBearing=t}}var mp=Object.freeze({__proto__:null,vmtx:class extends Zl{constructor(e,t,n){super(e,t);const s=n.vhea.numOfLongVerMetrics,r=n.maxp.numGlyphs,a=p.currentPosition;if(lazy(this,"vMetrics",(()=>(p.currentPosition=a,[...new Array(s)].map((e=>new pp(p.uint16,p.int16)))))),s<r){const e=a+4*s;lazy(this,"topSideBearings",(()=>(p.currentPosition=e,[...new Array(r-s)].map((e=>p.int16)))))}}}});(0,b.__)("Library"),(0,b.__)("Upload");var hp=void 0;var fp=function(){return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(nl,{title:(0,b.__)("Typography"),description:(0,b.__)("Manage the typography settings for different elements.")}),(0,l.createElement)("div",{className:"edit-site-global-styles-screen-typography"},(0,l.createElement)(_.__experimentalVStack,{spacing:6},hp,(0,l.createElement)(Ll,null))))};const{useGlobalStyle:gp,useGlobalSetting:yp,useSettingsForBlockElement:vp,TypographyPanel:_p}=nt(we.privateApis);function bp({element:e,headingLevel:t}){let n=[];"heading"===e?n=n.concat(["elements",t]):e&&"text"!==e&&(n=n.concat(["elements",e]));const s=n.join("."),[r]=gp(s,void 0,"user",{shouldDecodeEncode:!1}),[a,i]=gp(s,void 0,"all",{shouldDecodeEncode:!1}),[o]=yp(""),c=vp(o,void 0,"heading"===e?t:e);return(0,l.createElement)(_p,{inheritedValue:a,value:r,onChange:i,settings:c})}const{useGlobalStyle:Ep}=nt(we.privateApis);function wp({name:e,element:t,headingLevel:n}){let s="";"heading"===t?s=`elements.${n}.`:t&&"text"!==t&&(s=`elements.${t}.`);const[r]=Ep(s+"typography.fontFamily",e),[a]=Ep(s+"color.gradient",e),[i]=Ep(s+"color.background",e),[o]=Ep(s+"color.text",e),[c]=Ep(s+"typography.fontSize",e),[u]=Ep(s+"typography.fontStyle",e),[d]=Ep(s+"typography.fontWeight",e),[p]=Ep(s+"typography.letterSpacing",e),m="link"===t?{textDecoration:"underline"}:{};return(0,l.createElement)("div",{className:"edit-site-typography-preview",style:{fontFamily:null!=r?r:"serif",background:null!=a?a:i,color:o,fontSize:c,fontStyle:u,fontWeight:d,letterSpacing:p,...m}},"Aa")}const xp={text:{description:(0,b.__)("Manage the fonts used on the site."),title:(0,b.__)("Text")},link:{description:(0,b.__)("Manage the fonts and typography used on the links."),title:(0,b.__)("Links")},heading:{description:(0,b.__)("Manage the fonts and typography used on headings."),title:(0,b.__)("Headings")},caption:{description:(0,b.__)("Manage the fonts and typography used on captions."),title:(0,b.__)("Captions")},button:{description:(0,b.__)("Manage the fonts and typography used on buttons."),title:(0,b.__)("Buttons")}};var Cp=function({element:e}){const[t,n]=(0,l.useState)("heading");return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(nl,{title:xp[e].title,description:xp[e].description}),(0,l.createElement)(_.__experimentalSpacer,{marginX:4},(0,l.createElement)(wp,{element:e,headingLevel:t})),"heading"===e&&(0,l.createElement)(_.__experimentalSpacer,{marginX:4,marginBottom:"1em"},(0,l.createElement)(_.__experimentalToggleGroupControl,{label:(0,b.__)("Select heading level"),hideLabelFromVision:!0,value:t,onChange:n,isBlock:!0,size:"__unstable-large",__nextHasNoMarginBottom:!0},(0,l.createElement)(_.__experimentalToggleGroupControlOption,{value:"heading",label:(0,b.__)("All")}),(0,l.createElement)(_.__experimentalToggleGroupControlOption,{value:"h1",label:(0,b.__)("H1")}),(0,l.createElement)(_.__experimentalToggleGroupControlOption,{value:"h2",label:(0,b.__)("H2")}),(0,l.createElement)(_.__experimentalToggleGroupControlOption,{value:"h3",label:(0,b.__)("H3")}),(0,l.createElement)(_.__experimentalToggleGroupControlOption,{value:"h4",label:(0,b.__)("H4")}),(0,l.createElement)(_.__experimentalToggleGroupControlOption,{value:"h5",label:(0,b.__)("H5")}),(0,l.createElement)(_.__experimentalToggleGroupControlOption,{value:"h6",label:(0,b.__)("H6")}))),(0,l.createElement)(bp,{element:e,headingLevel:t}))};var Sp=(0,l.createElement)(E.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/SVG"},(0,l.createElement)(E.Path,{d:"M17.192 6.75L15.47 5.03l1.06-1.06 3.537 3.53-3.537 3.53-1.06-1.06 1.723-1.72h-3.19c-.602 0-.993.202-1.28.498-.309.319-.538.792-.695 1.383-.13.488-.222 1.023-.296 1.508-.034.664-.116 1.413-.303 2.117-.193.721-.513 1.467-1.068 2.04-.575.594-1.359.954-2.357.954H4v-1.5h4.003c.601 0 .993-.202 1.28-.498.308-.319.538-.792.695-1.383.149-.557.216-1.093.288-1.662l.039-.31a9.653 9.653 0 0 1 .272-1.653c.193-.722.513-1.467 1.067-2.04.576-.594 1.36-.954 2.358-.954h3.19zM8.004 6.75c.8 0 1.46.23 1.988.628a6.24 6.24 0 0 0-.684 1.396 1.725 1.725 0 0 0-.024-.026c-.287-.296-.679-.498-1.28-.498H4v-1.5h4.003zM12.699 14.726c-.161.459-.38.94-.684 1.396.527.397 1.188.628 1.988.628h3.19l-1.722 1.72 1.06 1.06L20.067 16l-3.537-3.53-1.06 1.06 1.723 1.72h-3.19c-.602 0-.993-.202-1.28-.498a1.96 1.96 0 0 1-.024-.026z"}));var kp=function({className:e,...t}){return(0,l.createElement)(_.Flex,{className:v()("edit-site-global-styles__color-indicator-wrapper",e),...t})};const{useGlobalSetting:Tp}=nt(we.privateApis),Pp=[];var Np=function({name:e}){const[t]=Tp("color.palette.custom"),[n]=Tp("color.palette.theme"),[s]=Tp("color.palette.default"),[r]=Tp("color.defaultPalette",e),[a]=function(e){const[t,n]=st("color.palette.theme",e);return window.__experimentalEnableColorRandomizer?[function(){const e=Math.floor(225*Math.random()),s=t.map((t=>{const{color:n}=t,s=Ke(n).rotate(e).toHex();return{...t,color:s}}));n(s)}]:[]}(),i=(0,l.useMemo)((()=>[...t||Pp,...n||Pp,...s&&r?s:Pp]),[t,n,s,r]),o=e?"/blocks/"+encodeURIComponent(e)+"/colors/palette":"/colors/palette",c=i.length>0?(0,b.sprintf)((0,b._n)("%d color","%d colors",i.length),i.length):(0,b.__)("Add custom colors");return(0,l.createElement)(_.__experimentalVStack,{spacing:3},(0,l.createElement)(ml,{level:3},(0,b.__)("Palette")),(0,l.createElement)(_.__experimentalItemGroup,{isBordered:!0,isSeparated:!0},(0,l.createElement)(Wo,{path:o,"aria-label":(0,b.__)("Color palettes")},(0,l.createElement)(_.__experimentalHStack,{direction:0===i.length?"row-reverse":"row"},(0,l.createElement)(_.__experimentalZStack,{isLayered:!1,offset:-8},i.slice(0,5).map((({color:e},t)=>(0,l.createElement)(kp,{key:`${e}-${t}`},(0,l.createElement)(_.ColorIndicator,{colorValue:e}))))),(0,l.createElement)(_.FlexItem,null,c)))),window.__experimentalEnableColorRandomizer&&n?.length>0&&(0,l.createElement)(_.Button,{variant:"secondary",icon:Sp,onClick:a},(0,b.__)("Randomize colors")))};const{useGlobalStyle:Op,useGlobalSetting:Ip,useSettingsForBlockElement:Mp,ColorPanel:Ap}=nt(we.privateApis);var Rp=function(){const[e]=Op("",void 0,"user",{shouldDecodeEncode:!1}),[t,n]=Op("",void 0,"all",{shouldDecodeEncode:!1}),[s]=Ip(""),r=Mp(s);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(nl,{title:(0,b.__)("Colors"),description:(0,b.__)("Manage palettes and the default color of different global elements on the site.")}),(0,l.createElement)("div",{className:"edit-site-global-styles-screen-colors"},(0,l.createElement)(_.__experimentalVStack,{spacing:10},(0,l.createElement)(Np,null),(0,l.createElement)(Ap,{inheritedValue:t,value:e,onChange:n,settings:r}))))};const{useGlobalSetting:Bp}=nt(we.privateApis),Lp={placement:"bottom-start",offset:8};function Dp({name:e}){const[t,n]=Bp("color.palette.theme",e),[s]=Bp("color.palette.theme",e,"base"),[r,a]=Bp("color.palette.default",e),[i]=Bp("color.palette.default",e,"base"),[o,c]=Bp("color.palette.custom",e),[u]=Bp("color.defaultPalette",e),d=(0,ae.useViewportMatch)("small","<")?Lp:void 0;return(0,l.createElement)(_.__experimentalVStack,{className:"edit-site-global-styles-color-palette-panel",spacing:10},!!t&&!!t.length&&(0,l.createElement)(_.__experimentalPaletteEdit,{canReset:t!==s,canOnlyChangeValues:!0,colors:t,onChange:n,paletteLabel:(0,b.__)("Theme"),paletteLabelHeadingLevel:3,popoverProps:d}),!!r&&!!r.length&&!!u&&(0,l.createElement)(_.__experimentalPaletteEdit,{canReset:r!==i,canOnlyChangeValues:!0,colors:r,onChange:a,paletteLabel:(0,b.__)("Default"),paletteLabelHeadingLevel:3,popoverProps:d}),(0,l.createElement)(_.__experimentalPaletteEdit,{colors:o,onChange:c,paletteLabel:(0,b.__)("Custom"),paletteLabelHeadingLevel:3,emptyMessage:(0,b.__)("Custom colors are empty! Add some colors to create your own color palette."),slugPrefix:"custom-",popoverProps:d}))}const{useGlobalSetting:Fp}=nt(we.privateApis),Vp={placement:"bottom-start",offset:8},zp=()=>{};function Gp({name:e}){const[t,n]=Fp("color.gradients.theme",e),[s]=Fp("color.gradients.theme",e,"base"),[r,a]=Fp("color.gradients.default",e),[i]=Fp("color.gradients.default",e,"base"),[o,c]=Fp("color.gradients.custom",e),[u]=Fp("color.defaultGradients",e),[d]=Fp("color.duotone.custom")||[],[p]=Fp("color.duotone.default")||[],[m]=Fp("color.duotone.theme")||[],[h]=Fp("color.defaultDuotone"),f=[...d||[],...m||[],...p&&h?p:[]],g=(0,ae.useViewportMatch)("small","<")?Vp:void 0;return(0,l.createElement)(_.__experimentalVStack,{className:"edit-site-global-styles-gradient-palette-panel",spacing:10},!!t&&!!t.length&&(0,l.createElement)(_.__experimentalPaletteEdit,{canReset:t!==s,canOnlyChangeValues:!0,gradients:t,onChange:n,paletteLabel:(0,b.__)("Theme"),paletteLabelHeadingLevel:3,popoverProps:g}),!!r&&!!r.length&&!!u&&(0,l.createElement)(_.__experimentalPaletteEdit,{canReset:r!==i,canOnlyChangeValues:!0,gradients:r,onChange:a,paletteLabel:(0,b.__)("Default"),paletteLabelLevel:3,popoverProps:g}),(0,l.createElement)(_.__experimentalPaletteEdit,{gradients:o,onChange:c,paletteLabel:(0,b.__)("Custom"),paletteLabelLevel:3,emptyMessage:(0,b.__)("Custom gradients are empty! Add some gradients to create your own palette."),slugPrefix:"custom-",popoverProps:g}),!!f&&!!f.length&&(0,l.createElement)("div",null,(0,l.createElement)(ml,{level:3},(0,b.__)("Duotone")),(0,l.createElement)(_.__experimentalSpacer,{margin:3}),(0,l.createElement)(_.DuotonePicker,{duotonePalette:f,disableCustomDuotone:!0,disableCustomColors:!0,clearable:!1,onChange:zp})))}var Hp=function({name:e}){return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(nl,{title:(0,b.__)("Palette"),description:(0,b.__)("Palettes are used to provide default color options for blocks and various design tools. Here you can edit the colors with their labels.")}),(0,l.createElement)(_.TabPanel,{tabs:[{name:"solid",title:"Solid",value:"solid"},{name:"gradient",title:"Gradient",value:"gradient"}]},(t=>(0,l.createElement)(l.Fragment,null,"solid"===t.value&&(0,l.createElement)(Dp,{name:e}),"gradient"===t.value&&(0,l.createElement)(Gp,{name:e})))))};const{useGlobalStyle:Up,useGlobalSetting:Wp,useSettingsForBlockElement:jp,DimensionsPanel:qp}=nt(we.privateApis),Yp={contentSize:!0,wideSize:!0,padding:!0,margin:!0,blockGap:!0,minHeight:!0,childLayout:!1};function Zp(){const[e]=Up("",void 0,"user",{shouldDecodeEncode:!1}),[t,n]=Up("",void 0,"all",{shouldDecodeEncode:!1}),[s]=Wp("",void 0,"user"),[r,a]=Wp(""),i=jp(r),o=(0,l.useMemo)((()=>({...t,layout:i.layout})),[t,i.layout]),c=(0,l.useMemo)((()=>({...e,layout:s.layout})),[e,s.layout]);return(0,l.createElement)(qp,{inheritedValue:o,value:c,onChange:e=>{const t={...e};if(delete t.layout,n(t),e.layout!==s.layout){const t={...s,layout:e.layout};t.layout?.definitions&&delete t.layout.definitions,a(t)}},settings:i,includeLayoutControls:!0,defaultControls:Yp})}const{useHasDimensionsPanel:Xp,useGlobalSetting:Kp,useSettingsForBlockElement:Jp}=nt(we.privateApis);var Qp=function(){const[e]=Kp(""),t=Jp(e),n=Xp(t);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(nl,{title:(0,b.__)("Layout")}),n&&(0,l.createElement)(Zp,null))};var $p=function(){const{mode:e}=(0,d.useSelect)((e=>({mode:e(we.store).__unstableGetEditorMode()})),[]),t=(0,l.useRef)(null);(0,l.useEffect)((()=>{"zoom-out"!==e&&(t.current=!1)}),[e]),(0,l.useEffect)((()=>{if("zoom-out"!==e)return n("zoom-out"),t.current=!0,()=>{t.current&&n(e)}}),[]);const{__unstableSetEditorMode:n}=(0,d.useDispatch)(we.store);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(nl,{back:"/",title:(0,b.__)("Browse styles"),description:(0,b.__)("Choose a variation to change the look of the site.")}),(0,l.createElement)(_.Card,{size:"small",isBorderless:!0,className:"edit-site-global-styles-screen-style-variations"},(0,l.createElement)(_.CardBody,null,(0,l.createElement)(Ws,null))))};const{useGlobalStyle:em,AdvancedPanel:tm}=nt(we.privateApis);var nm=function(){const e=(0,b.__)("Add your own CSS to customize the appearance and layout of your site."),[t]=em("",void 0,"user",{shouldDecodeEncode:!1}),[n,s]=em("",void 0,"all",{shouldDecodeEncode:!1});return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(nl,{title:(0,b.__)("CSS"),description:(0,l.createElement)(l.Fragment,null,e,(0,l.createElement)(_.ExternalLink,{href:"https://wordpress.org/documentation/article/css/",className:"edit-site-global-styles-screen-css-help-link"},(0,b.__)("Learn more about CSS")))}),(0,l.createElement)("div",{className:"edit-site-global-styles-screen-css"},(0,l.createElement)(tm,{value:t,onChange:s,inheritedValue:n})))};const{ExperimentalBlockEditorProvider:sm,useGlobalStylesOutputWithConfig:rm}=nt(we.privateApis);function am(e){return!e||0===Object.keys(e).length}var im=function({onClose:e,userConfig:t,blocks:n}){const{baseConfig:s}=(0,d.useSelect)((e=>({baseConfig:e(f.store).__experimentalGetCurrentThemeBaseGlobalStyles()})),[]),r=(0,l.useMemo)((()=>am(t)||am(s)?{}:Ms(s,t)),[s,t]),a=(0,l.useMemo)((()=>Array.isArray(n)?n:[n]),[n]),i=(0,d.useSelect)((e=>e(we.store).getSettings()),[]),o=(0,l.useMemo)((()=>({...i,__unstableIsPreviewMode:!0})),[i]),[c]=rm(r),u=am(c)||am(t)?o.styles:c;return(0,l.createElement)(tr,{title:(0,b.__)("Revisions"),onClose:e,closeButtonLabel:(0,b.__)("Close revisions"),enableResizing:!0},(0,l.createElement)(we.__unstableIframe,{className:"edit-site-revisions__iframe",name:"revisions",tabIndex:0},(0,l.createElement)(we.__unstableEditorStyles,{styles:u}),(0,l.createElement)("style",null,".is-root-container { display: flow-root; } body { position: relative; padding: 32px; }"),(0,l.createElement)(_.Disabled,{className:"edit-site-revisions__example-preview__content"},(0,l.createElement)(sm,{value:a,settings:o},(0,l.createElement)(we.BlockList,{renderAppender:!1})))))};const{createPrivateSlotFill:om}=nt(_.privateApis),{Slot:lm,Fill:cm}=om("SidebarFixedBottom");function um({children:e}){return(0,l.createElement)(cm,null,(0,l.createElement)("div",{className:"edit-site-sidebar-fixed-bottom-slot"},e))}function dm(e){const t=e?.author?.name||(0,b.__)("User");if("parent"===e?.id)return(0,b.__)("Reset the styles to the theme defaults");if("unsaved"===e?.id)return(0,b.sprintf)((0,b.__)("Unsaved changes by %s"),t);const n=(0,mr.dateI18n)((0,mr.getSettings)().formats.datetimeAbbreviated,(0,mr.getDate)(e?.modified));return e?.isLatest?(0,b.sprintf)((0,b.__)("Changes saved by %1$s on %2$s (current)"),t,n):(0,b.sprintf)((0,b.__)("Changes saved by %1$s on %2$s"),t,n)}var pm=function({userRevisions:e,selectedRevisionId:t,onChange:n}){const s=(0,d.useSelect)((e=>e(f.store).getCurrentTheme()),[]);return(0,l.createElement)("ol",{className:"edit-site-global-styles-screen-revisions__revisions-list","aria-label":(0,b.__)("Global styles revisions"),role:"group"},e.map(((e,r)=>{const{id:a,author:i,modified:o}=e,c=i?.name||(0,b.__)("User"),u=i?.avatar_urls?.[48],d="unsaved"===e?.id,p=t?t===e?.id:0===r,m="parent"===e?.id;return(0,l.createElement)("li",{className:v()("edit-site-global-styles-screen-revisions__revision-item",{"is-selected":p,"is-reset":m}),key:a},(0,l.createElement)(_.Button,{className:"edit-site-global-styles-screen-revisions__revision-button",disabled:p,onClick:()=>{n(e)},label:dm(e)},m?(0,l.createElement)("span",{className:"edit-site-global-styles-screen-revisions__description"},(0,b.__)("Default styles"),(0,l.createElement)("span",{className:"edit-site-global-styles-screen-revisions__meta"},s?.name?.rendered||s?.stylesheet)):(0,l.createElement)("span",{className:"edit-site-global-styles-screen-revisions__description"},(0,l.createElement)("time",{dateTime:o},(0,mr.humanTimeDiff)(o)),(0,l.createElement)("span",{className:"edit-site-global-styles-screen-revisions__meta"},d?(0,b.sprintf)((0,b.__)("Unsaved changes by %s"),c):(0,b.sprintf)((0,b.__)("Changes saved by %s"),c),(0,l.createElement)("img",{alt:i?.name,src:u})))))})))};const{GlobalStylesContext:mm,areGlobalStyleConfigsEqual:hm}=nt(we.privateApis);var fm=function(){const{goBack:e}=(0,_.__experimentalUseNavigator)(),{user:t,setUserConfig:n}=(0,l.useContext)(mm),{blocks:s,editorCanvasContainerView:r}=(0,d.useSelect)((e=>({editorCanvasContainerView:nt(e(os)).getEditorCanvasContainerView(),blocks:e(we.store).getBlocks()})),[]),{revisions:a,isLoading:i,hasUnsavedChanges:o}=pr(),[c,u]=(0,l.useState)(),[p,m]=(0,l.useState)(t),[h,f]=(0,l.useState)(!1),{setEditorCanvasContainerView:g}=nt((0,d.useDispatch)(os));(0,l.useEffect)((()=>{"global-styles-revisions"!==r&&(e(),g(r))}),[r]);const y=()=>{e()},v=e=>{n((()=>({styles:e?.styles,settings:e?.settings}))),f(!1),y()},E=!!p?.id&&!hm(p,t),w=!i&&a.length;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(nl,{title:(0,b.__)("Revisions"),description:(0,b.__)("Revisions are added to the timeline when style changes are saved.")}),i&&(0,l.createElement)(_.Spinner,{className:"edit-site-global-styles-screen-revisions__loading"}),w?(0,l.createElement)(l.Fragment,null,(0,l.createElement)(im,{blocks:s,userConfig:p,onClose:y}),(0,l.createElement)("div",{className:"edit-site-global-styles-screen-revisions"},(0,l.createElement)(pm,{onChange:e=>{m({styles:e?.styles||{},settings:e?.settings||{},id:e?.id}),u(e?.id)},selectedRevisionId:c,userRevisions:a}),E&&(0,l.createElement)(um,null,(0,l.createElement)(_.Button,{variant:"primary",className:"edit-site-global-styles-screen-revisions__button",disabled:!p?.id||"unsaved"===p?.id,onClick:()=>{o?f(!0):v(p)}},"parent"===p?.id?(0,b.__)("Reset to defaults"):(0,b.__)("Apply")))),h&&(0,l.createElement)(_.__experimentalConfirmDialog,{isOpen:h,confirmButtonText:(0,b.__)("Apply"),onConfirm:()=>v(p),onCancel:()=>f(!1)},(0,b.__)("Any unsaved changes will be lost when you apply this revision."))):(0,l.createElement)(_.__experimentalSpacer,{marginX:4,"data-testid":"global-styles-no-revisions"},(0,b.__)("No results found.")))};const{Slot:gm,Fill:ym}=(0,_.createSlotFill)("GlobalStylesMenu");function vm(){const{toggle:e}=(0,d.useDispatch)(T.store),{canEditCSS:t}=(0,d.useSelect)((e=>{var t;const{getEntityRecord:n,__experimentalGetCurrentGlobalStylesId:s}=e(f.store),r=s(),a=r?n("root","globalStyles",r):void 0;return{canEditCSS:null!==(t=!!a?._links?.["wp:action-edit-css"])&&void 0!==t&&t}}),[]),{goTo:n}=(0,_.__experimentalUseNavigator)(),s=()=>n("/css");return(0,l.createElement)(ym,null,(0,l.createElement)(_.DropdownMenu,{icon:ce,label:(0,b.__)("More")},(({onClose:n})=>(0,l.createElement)(_.MenuGroup,null,t&&(0,l.createElement)(_.MenuItem,{onClick:s},(0,b.__)("Additional CSS")),(0,l.createElement)(_.MenuItem,{onClick:()=>{e("core/edit-site","welcomeGuideStyles"),n()}},(0,b.__)("Welcome Guide"))))))}function _m({className:e,children:t}){return(0,l.createElement)("span",{className:v()(e,"edit-site-global-styles-sidebar__revisions-count-badge")},t)}function bm(){const{setIsListViewOpened:e}=(0,d.useDispatch)(os),{revisionsCount:t}=(0,d.useSelect)((e=>{var t;const{getEntityRecord:n,__experimentalGetCurrentGlobalStylesId:s}=e(f.store),r=s(),a=r?n("root","globalStyles",r):void 0;return{revisionsCount:null!==(t=a?._links?.["version-history"]?.[0]?.count)&&void 0!==t?t:0}}),[]),{useGlobalStylesReset:n}=nt(we.privateApis),[s,r]=n(),{goTo:a}=(0,_.__experimentalUseNavigator)(),{setEditorCanvasContainerView:i}=nt((0,d.useDispatch)(os)),o=()=>{e(!1),a("/revisions"),i("global-styles-revisions")},c=t>0;return(0,l.createElement)(ym,null,s||c?(0,l.createElement)(_.DropdownMenu,{icon:hr,label:(0,b.__)("Revisions")},(({onClose:e})=>(0,l.createElement)(_.MenuGroup,null,c&&(0,l.createElement)(_.MenuItem,{onClick:o,icon:(0,l.createElement)(_m,null,t)},(0,b.__)("Revision history")),(0,l.createElement)(_.MenuItem,{onClick:()=>{r(),e()},disabled:!s},(0,b.__)("Reset to defaults"))))):(0,l.createElement)(_.Button,{label:(0,b.__)("Revisions"),icon:hr,disabled:!0,__experimentalIsFocusable:!0}))}function Em({className:e,...t}){return(0,l.createElement)(_.__experimentalNavigatorScreen,{className:["edit-site-global-styles-sidebar__navigator-screen",e].filter(Boolean).join(" "),...t})}function wm({parentMenu:e,blockStyles:t,blockName:n}){return t.map(((t,s)=>(0,l.createElement)(Em,{key:s,path:e+"/variations/"+t.name},(0,l.createElement)(Al,{name:n,variation:t.name}))))}function xm({name:e,parentMenu:t=""}){const n=(0,d.useSelect)((t=>{const{getBlockStyles:n}=t(c.store);return n(e)}),[e]);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Em,{path:t+"/colors/palette"},(0,l.createElement)(Hp,{name:e})),!!n?.length&&(0,l.createElement)(wm,{parentMenu:t,blockStyles:n,blockName:e}))}function Cm(){const e=(0,_.__experimentalUseNavigator)(),{path:t}=e.location;return(0,l.createElement)(lr,{isSelected:e=>t===`/blocks/${encodeURIComponent(e)}`||t.startsWith(`/blocks/${encodeURIComponent(e)}/`),onSelect:t=>{e.goTo("/blocks/"+encodeURIComponent(t))}})}function Sm(){const e=(0,_.__experimentalUseNavigator)(),{selectedBlockName:t,selectedBlockClientId:n}=(0,d.useSelect)((e=>{const{getSelectedBlockClientId:t,getBlockName:n}=e(we.store),s=t();return{selectedBlockName:n(s),selectedBlockClientId:s}}),[]),s=cl(t);(0,l.useEffect)((()=>{if(!n||!s)return;const r=e.location.path;if("/blocks"!==r&&!r.startsWith("/blocks/"))return;const a="/blocks/"+encodeURIComponent(t);a!==r&&e.goTo(a,{skipFocus:!0})}),[n,t,s])}function km(){const{goTo:e,location:t}=(0,_.__experimentalUseNavigator)(),n=(0,d.useSelect)((e=>nt(e(os)).getEditorCanvasContainerView()),[]);(0,l.useEffect)((()=>{"global-styles-revisions"===n?e("/revisions"):n&&"/revisions"===t?.path?e("/"):"global-styles-css"===n&&e("/css")}),[n,e])}var Tm=function(){const e=(0,c.getBlockTypes)(),t=(0,d.useSelect)((e=>nt(e(os)).getEditorCanvasContainerView()),[]);return(0,l.createElement)(_.__experimentalNavigatorProvider,{className:"edit-site-global-styles-sidebar__navigator-provider",initialPath:"/"},(0,l.createElement)(Em,{path:"/"},(0,l.createElement)($o,null)),(0,l.createElement)(Em,{path:"/variations"},(0,l.createElement)($p,null)),(0,l.createElement)(Em,{path:"/blocks"},(0,l.createElement)(dl,null)),(0,l.createElement)(Em,{path:"/typography"},(0,l.createElement)(fp,null)),(0,l.createElement)(Em,{path:"/typography/text"},(0,l.createElement)(Cp,{element:"text"})),(0,l.createElement)(Em,{path:"/typography/link"},(0,l.createElement)(Cp,{element:"link"})),(0,l.createElement)(Em,{path:"/typography/heading"},(0,l.createElement)(Cp,{element:"heading"})),(0,l.createElement)(Em,{path:"/typography/caption"},(0,l.createElement)(Cp,{element:"caption"})),(0,l.createElement)(Em,{path:"/typography/button"},(0,l.createElement)(Cp,{element:"button"})),(0,l.createElement)(Em,{path:"/colors"},(0,l.createElement)(Rp,null)),(0,l.createElement)(Em,{path:"/layout"},(0,l.createElement)(Qp,null)),(0,l.createElement)(Em,{path:"/css"},(0,l.createElement)(nm,null)),(0,l.createElement)(Em,{path:"/revisions"},(0,l.createElement)(fm,null)),e.map((e=>(0,l.createElement)(Em,{key:"menu-block-"+e.name,path:"/blocks/"+encodeURIComponent(e.name)},(0,l.createElement)(Al,{name:e.name})))),(0,l.createElement)(xm,null),e.map((e=>(0,l.createElement)(xm,{key:"screens-block-"+e.name,name:e.name,parentMenu:"/blocks/"+encodeURIComponent(e.name)}))),"style-book"===t&&(0,l.createElement)(Cm,null),(0,l.createElement)(bm,null),(0,l.createElement)(vm,null),(0,l.createElement)(Sm,null),(0,l.createElement)(km,null))};function Pm(){const{shouldClearCanvasContainerView:e,isStyleBookOpened:t,showListViewByDefault:n}=(0,d.useSelect)((e=>{const{getActiveComplementaryArea:t}=e(W),{getEditorCanvasContainerView:n,getCanvasMode:s}=nt(e(os)),r="visual"===e(os).getEditorMode(),a="edit"===s(),i=e(T.store).get("core/edit-site","showListViewByDefault");return{isStyleBookOpened:"style-book"===n(),shouldClearCanvasContainerView:"edit-site/global-styles"!==t("core/edit-site")||!r||!a,showListViewByDefault:i}}),[]),{setEditorCanvasContainerView:s}=nt((0,d.useDispatch)(os));(0,l.useEffect)((()=>{e&&s(void 0)}),[e]);const{setIsListViewOpened:r}=(0,d.useDispatch)(os);return(0,l.createElement)(Go,{className:"edit-site-global-styles-sidebar",identifier:"edit-site/global-styles",title:(0,b.__)("Styles"),icon:ps,closeLabel:(0,b.__)("Close Styles"),panelClassName:"edit-site-global-styles-sidebar__panel",header:(0,l.createElement)(_.Flex,{className:"edit-site-global-styles-sidebar__header",role:"menubar","aria-label":(0,b.__)("Styles actions")},(0,l.createElement)(_.FlexBlock,{style:{minWidth:"min-content"}},(0,l.createElement)("strong",null,(0,b.__)("Styles"))),(0,l.createElement)(_.FlexItem,null,(0,l.createElement)(_.Button,{icon:ws,label:(0,b.__)("Style Book"),isPressed:t,disabled:e,onClick:()=>{r(t&&n),s(t?void 0:"style-book")}})),(0,l.createElement)(gm,null))},(0,l.createElement)(Tm,null))}const Nm="edit-site/template",Om="edit-site/block-inspector";var Im=({sidebarName:e})=>{const{hasPageContentFocus:t,entityType:n}=(0,d.useSelect)((e=>{const{getEditedPostType:t,hasPageContentFocus:n}=e(os);return{hasPageContentFocus:n(),entityType:t()}})),s=Gt[n]||Gt[Ot],{enableComplementaryArea:r}=(0,d.useDispatch)(W);let a;return a=t?e===Nm?(0,b.__)("Page (selected)"):(0,b.__)("Page"):e===Nm?(0,b.sprintf)((0,b.__)("%s (selected)"),s):s,(0,l.createElement)("ul",null,(0,l.createElement)("li",null,(0,l.createElement)(_.Button,{onClick:()=>r($t,Nm),className:v()("edit-site-sidebar-edit-mode__panel-tab",{"is-active":e===Nm}),"aria-label":a,"data-label":t?(0,b.__)("Page"):s},t?(0,b.__)("Page"):s)),(0,l.createElement)("li",null,(0,l.createElement)(_.Button,{onClick:()=>r($t,Om),className:v()("edit-site-sidebar-edit-mode__panel-tab",{"is-active":e===Om}),"aria-label":e===Om?(0,b.__)("Block (selected)"):(0,b.__)("Block"),"data-label":(0,b.__)("Block")},(0,b.__)("Block"))))};function Mm({className:e,title:t,icon:n,description:s,actions:r,children:a}){return(0,l.createElement)("div",{className:v()("edit-site-sidebar-card",e)},(0,l.createElement)(_.Icon,{className:"edit-site-sidebar-card__icon",icon:n}),(0,l.createElement)("div",{className:"edit-site-sidebar-card__content"},(0,l.createElement)("div",{className:"edit-site-sidebar-card__header"},(0,l.createElement)("h2",{className:"edit-site-sidebar-card__title"},t),r),(0,l.createElement)("div",{className:"edit-site-sidebar-card__description"},s),a))}const{BlockQuickNavigation:Am}=nt(we.privateApis);function Rm(){const e=(0,d.useSelect)((e=>nt(e(we.store)).getEnabledClientIdsTree()),[]),t=(0,l.useMemo)((()=>e.map((({clientId:e})=>e))),[e]);return(0,l.createElement)(Am,{clientIds:t})}const Bm=[{label:(0,l.createElement)(l.Fragment,null,(0,b.__)("Draft"),(0,l.createElement)(_.__experimentalText,{variant:"muted"},(0,b.__)("Not ready to publish."))),value:"draft"},{label:(0,l.createElement)(l.Fragment,null,(0,b.__)("Pending"),(0,l.createElement)(_.__experimentalText,{variant:"muted"},(0,b.__)("Waiting for review before publishing."))),value:"pending"},{label:(0,l.createElement)(l.Fragment,null,(0,b.__)("Private"),(0,l.createElement)(_.__experimentalText,{variant:"muted"},(0,b.__)("Only visible to site admins and editors."))),value:"private"},{label:(0,l.createElement)(l.Fragment,null,(0,b.__)("Scheduled"),(0,l.createElement)(_.__experimentalText,{variant:"muted"},(0,b.__)("Publish automatically on a chosen date."))),value:"future"},{label:(0,l.createElement)(l.Fragment,null,(0,b.__)("Published"),(0,l.createElement)(_.__experimentalText,{variant:"muted"},(0,b.__)("Visible to everyone."))),value:"publish"}];function Lm({postType:e,postId:t,status:n,password:s,date:r}){const[a,i]=(0,l.useState)(!!s),o=(0,ae.useInstanceId)(Lm),{editEntityRecord:c}=(0,d.useDispatch)(f.store),{createErrorNotice:u}=(0,d.useDispatch)(xe.store),[p,m]=(0,l.useState)(null),h=(0,l.useMemo)((()=>({anchor:p,"aria-label":(0,b.__)("Change status"),placement:"bottom-end"})),[p]),g=async({status:a=n,password:i=s,date:o=r})=>{try{await c("postType",e,t,{status:a,date:o,password:i})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,b.__)("An error occurred while updating the status");u(t,{type:"snackbar"})}},y=e=>{i(e),e||g({password:""})},v=e=>{let t=r,n=s;"publish"===e?new Date(r)>new Date&&(t=null):"future"===e?(!r||new Date(r)<new Date)&&(t=new Date,t.setDate(t.getDate()+7)):"private"===e&&s&&(i(!1),n=""),g({status:e,date:t,password:n})};return(0,l.createElement)(_.__experimentalHStack,{className:"edit-site-summary-field"},(0,l.createElement)(_.__experimentalText,{className:"edit-site-summary-field__label"},(0,b.__)("Status")),(0,l.createElement)(_.Dropdown,{contentClassName:"edit-site-change-status__content",popoverProps:h,focusOnMount:!0,ref:m,renderToggle:({onToggle:e})=>(0,l.createElement)(_.Button,{className:"edit-site-summary-field__trigger",variant:"tertiary",onClick:e},(0,l.createElement)(Oo,{status:s?"protected":n})),renderContent:({onClose:e})=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(we.__experimentalInspectorPopoverHeader,{title:(0,b.__)("Status"),onClose:e}),(0,l.createElement)("form",null,(0,l.createElement)(_.__experimentalVStack,{spacing:5},(0,l.createElement)(_.RadioControl,{className:"edit-site-change-status__options",hideLabelFromVision:!0,label:(0,b.__)("Status"),options:Bm,onChange:v,selected:n}),"private"!==n&&(0,l.createElement)("fieldset",{className:"edit-site-change-status__password-fieldset"},(0,l.createElement)(_.__experimentalText,{as:"legend",className:"edit-site-change-status__password-legend",size:"11",lineHeight:1.4,weight:500,upperCase:!0},(0,b.__)("Password")),(0,l.createElement)(_.ToggleControl,{label:(0,b.__)("Hide this page behind a password"),checked:a,onChange:y}),a&&(0,l.createElement)("div",{className:"edit-site-change-status__password-input"},(0,l.createElement)(_.VisuallyHidden,{as:"label",htmlFor:`edit-site-change-status__password-input-${o}`},(0,b.__)("Create password")),(0,l.createElement)(_.TextControl,{onChange:e=>g({password:e}),value:s,placeholder:(0,b.__)("Use a secure password"),type:"text",id:`edit-site-change-status__password-input-${o}`}))))))}))}function Dm({postType:e,postId:t,status:n,date:s}){const{editEntityRecord:r}=(0,d.useDispatch)(f.store),{createErrorNotice:a}=(0,d.useDispatch)(xe.store),[i,o]=(0,l.useState)(null),c=(0,l.useMemo)((()=>({anchor:i,"aria-label":(0,b.__)("Change publish date"),placement:"bottom-end"})),[i]),u=async s=>{try{let a=n;"future"===n&&new Date(s)<new Date?a="publish":"publish"===n&&new Date(s)>new Date&&(a="future"),await r("postType",e,t,{status:a,date:s})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,b.__)("An error occurred while updating the status");a(t,{type:"snackbar"})}},p=s?(0,mr.humanTimeDiff)(s):(0,b.__)("Immediately");return(0,l.createElement)(_.__experimentalHStack,{className:"edit-site-summary-field"},(0,l.createElement)(_.__experimentalText,{className:"edit-site-summary-field__label"},(0,b.__)("Publish")),(0,l.createElement)(_.Dropdown,{contentClassName:"edit-site-change-status__content",popoverProps:c,focusOnMount:!0,ref:o,renderToggle:({onToggle:e})=>(0,l.createElement)(_.Button,{className:"edit-site-summary-field__trigger",variant:"tertiary",onClick:e},p),renderContent:({onClose:e})=>(0,l.createElement)(we.__experimentalPublishDateTimePicker,{currentDate:s,is12Hour:!0,onClose:e,onChange:u})}))}function Fm(){return(0,d.useSelect)((e=>e(os).getEditedPostContext()),[])}function Vm(){const{postId:e}=Fm();return(0,d.useSelect)((t=>+e===t(f.store).getEntityRecord("root","site")?.page_for_posts),[e])}function zm(){return(0,d.useSelect)((e=>e(f.store).getEntityRecords("postType",Ot,{per_page:-1,post_type:"page"})),[])}function Gm(){const e=Hm(),t=Vm(),n=zm();return(0,l.useMemo)((()=>!t&&n?.filter((t=>t.is_custom&&t.slug!==e&&!!t.content.raw))),[n,e,t])}function Hm(){const{postType:e,postId:t}=Fm(),n=zm(),s=(0,d.useSelect)((n=>{const s=n(f.store).getEditedEntityRecord("postType",e,t);return s?.template}),[e,t]);if(s)return n?.find((e=>e.slug===s))?.slug}function Um({onClick:e}){const[t,n]=(0,l.useState)(!1),s=Gm(),r=(0,l.useCallback)((()=>{n(!1)}),[]),{postType:a,postId:i}=Fm(),o=(0,f.useEntityRecord)("postType",a,i),{setPage:c}=(0,d.useDispatch)(os);if(!s?.length)return null;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(_.MenuItem,{onClick:()=>n(!0)},(0,b.__)("Swap template")),t&&(0,l.createElement)(_.Modal,{title:(0,b.__)("Choose a template"),onRequestClose:r,overlayClassName:"edit-site-swap-template-modal",isFullScreen:!0},(0,l.createElement)("div",{className:"edit-site-page-panels__swap-template__modal-content"},(0,l.createElement)(Wm,{onSelect:async t=>{o.edit({template:t.name},{undoIgnore:!0}),await c({context:{postType:a,postId:i}}),r(),e()}}))))}function Wm({onSelect:e}){const t=Gm(),n=(0,l.useMemo)((()=>t.map((e=>({name:e.slug,blocks:(0,c.parse)(e.content.raw),title:(0,Qt.decodeEntities)(e.title.rendered),id:e.id})))),[t]),s=(0,ae.useAsyncList)(n);return(0,l.createElement)(we.__experimentalBlockPatternsList,{label:(0,b.__)("Templates"),blockPatterns:n,shownPatterns:s,onClickPattern:e})}function jm({onClick:e}){const t=Hm(),n=Vm(),{postType:s,postId:r}=Fm(),a=(0,f.useEntityRecord)("postType",s,r),{setPage:i}=(0,d.useDispatch)(os);return!t||n?null:(0,l.createElement)(_.MenuGroup,null,(0,l.createElement)(_.MenuItem,{onClick:async()=>{a.edit({template:""},{undoIgnore:!0}),e(),await i({context:{postType:s,postId:r}})}},(0,b.__)("Use default template")))}const qm={className:"edit-site-page-panels-edit-template__dropdown",placement:"bottom-start"};function Ym(){const{hasResolved:e,template:t,isTemplateHidden:n}=(0,d.useSelect)((e=>{const{getEditedPostContext:t,getEditedPostType:n,getEditedPostId:s}=e(os),{getCanvasMode:r,getPageContentFocusType:a}=nt(e(os)),{getEditedEntityRecord:i,hasFinishedResolution:o}=e(f.store),l=t(),c=["postType",n(),s()];return{context:l,hasResolved:o("getEditedEntityRecord",c),template:i(...c),isTemplateHidden:"edit"===r()&&"hideTemplate"===a()}}),[]),{setHasPageContentFocus:s}=(0,d.useDispatch)(os),{setPageContentFocusType:r}=nt((0,d.useDispatch)(os));return e?(0,l.createElement)(_.__experimentalHStack,{className:"edit-site-summary-field"},(0,l.createElement)(_.__experimentalText,{className:"edit-site-summary-field__label"},(0,b.__)("Template")),(0,l.createElement)(_.DropdownMenu,{popoverProps:qm,focusOnMount:!0,toggleProps:{variant:"tertiary",className:"edit-site-summary-field__trigger"},label:(0,b.__)("Template options"),text:(0,Qt.decodeEntities)(t.title),icon:null},(({onClose:e})=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(_.MenuGroup,null,(0,l.createElement)(_.MenuItem,{onClick:()=>{s(!1),e()}},(0,b.__)("Edit template")),(0,l.createElement)(Um,{onClick:e})),(0,l.createElement)(jm,{onClick:e}),(0,l.createElement)(_.MenuGroup,null,(0,l.createElement)(_.MenuItem,{icon:n?void 0:w,onClick:()=>{r(n?"disableTemplate":"hideTemplate")}},(0,b.__)("Template preview"))))))):null}function Zm({status:e,date:t,password:n,postId:s,postType:r}){return(0,l.createElement)(_.__experimentalVStack,null,(0,l.createElement)(Lm,{status:e,date:t,password:n,postId:s,postType:r}),(0,l.createElement)(Dm,{status:e,date:t,postId:s,postType:r}),(0,l.createElement)(Ym,null))}function Xm(){const{id:e,type:t,hasResolved:n,status:s,date:r,password:a,title:i,modified:o}=(0,d.useSelect)((e=>{const{getEditedPostContext:t}=e(os),{getEditedEntityRecord:n,hasFinishedResolution:s}=e(f.store),r=t(),a=["postType",r.postType,r.postId],i=n(...a);return{hasResolved:s("getEditedEntityRecord",a),title:i?.title,id:i?.id,type:i?.type,status:i?.status,date:i?.date,password:i?.password,modified:i?.modified}}),[]);return n?(0,l.createElement)(l.Fragment,null,(0,l.createElement)(_.PanelBody,null,(0,l.createElement)(Mm,{title:(0,Qt.decodeEntities)(i),icon:ms,description:(0,l.createElement)(_.__experimentalVStack,null,(0,l.createElement)(_.__experimentalText,null,(0,b.sprintf)((0,b.__)("Last edited %s"),(0,mr.humanTimeDiff)(o))))})),(0,l.createElement)(_.PanelBody,{title:(0,b.__)("Summary")},(0,l.createElement)(Zm,{status:s,date:r,password:a,postId:e,postType:t})),(0,l.createElement)(_.PanelBody,{title:(0,b.__)("Content")},(0,l.createElement)(Rm,null))):null}function Km({onClick:e,availableTemplates:t}){const{editEntityRecord:n}=(0,d.useDispatch)(f.store),[s,r]=(0,l.useState)(!1),a=()=>{r(!1)},{postId:i,postType:o}=(0,d.useSelect)((e=>({postId:e(os).getEditedPostId(),postType:e(os).getEditedPostType()})),[]);return!t.length||t.length<1?null:(0,l.createElement)(l.Fragment,null,(0,l.createElement)(_.MenuItem,{info:(0,b.__)("Replace the contents of this template with another."),onClick:()=>r(!0)},(0,b.__)("Replace template")),s&&(0,l.createElement)(_.Modal,{title:(0,b.__)("Choose a template"),onRequestClose:a,overlayClassName:"edit-site-template-panel__replace-template-modal",isFullScreen:!0},(0,l.createElement)("div",{className:"edit-site-template-panel__replace-template-modal__content"},(0,l.createElement)(Jm,{availableTemplates:t,onSelect:async t=>{a(),e(),await n("postType",o,i,{blocks:t.blocks,content:(0,c.serialize)(t.blocks)})}}))))}function Jm({availableTemplates:e,onSelect:t}){const n=(0,ae.useAsyncList)(e);return(0,l.createElement)(we.__experimentalBlockPatternsList,{label:(0,b.__)("Templates"),blockPatterns:e,shownPatterns:n,onClickPattern:t})}function Qm(e,t){return e.innerBlocks=e.innerBlocks.map((e=>Qm(e,t))),"core/template-part"===e.name&&void 0===e.attributes.theme&&(e.attributes.theme=t),e}function $m(e,t,n){return e.filter((e=>!Dt.includes(e.source))&&((e,t,n)=>t===n.findIndex((t=>e.name===t.name)))&&(e=>e.templateTypes?.includes(t.slug))).map((e=>({...e,keywords:e.keywords||[],type:Rt.theme,blocks:(0,c.parse)(e.content,{__unstableSkipMigrationLogs:!0}).map((e=>Qm(e,n)))})))}function eh({template:e}){const t=function(e){const{blockPatterns:t,restBlockPatterns:n,currentThemeStylesheet:s}=(0,d.useSelect)((e=>{var t;const{getSettings:n}=nt(e(os)),s=n();return{blockPatterns:null!==(t=s.__experimentalAdditionalBlockPatterns)&&void 0!==t?t:s.__experimentalBlockPatterns,restBlockPatterns:e(f.store).getBlockPatterns(),currentThemeStylesheet:e(f.store).getCurrentTheme().stylesheet}}),[]);return(0,l.useMemo)((()=>$m([...t||[],...n||[]],e,s)),[t,n,e,s])}(e),{revertTemplate:n}=(0,d.useDispatch)(os),s=en(e);return s||t.length&&!(t.length<1)?(0,l.createElement)(_.DropdownMenu,{icon:ce,label:(0,b.__)("Actions"),className:"edit-site-template-card__actions",toggleProps:{isSmall:!0}},(({onClose:r})=>(0,l.createElement)(_.MenuGroup,null,s&&(0,l.createElement)(_.MenuItem,{info:(0,b.__)("Use the template as supplied by the theme."),onClick:()=>{n(e),r()}},(0,b.__)("Clear customizations")),(0,l.createElement)(Km,{availableTemplates:t,template:e,onClick:r})))):null}function th({area:e,clientId:t}){const{selectBlock:n,toggleBlockHighlight:s}=(0,d.useDispatch)(we.store),r=(0,d.useSelect)((t=>t(g.store).__experimentalGetDefaultTemplatePartAreas().find((t=>t.area===e))),[e]),a=()=>s(t,!0),i=()=>s(t,!1);return(0,l.createElement)(_.Button,{className:"edit-site-template-card__template-areas-item",icon:r?.icon,onMouseOver:a,onMouseLeave:i,onFocus:a,onBlur:i,onClick:()=>{n(t)}},r?.label)}function nh(){const e=(0,d.useSelect)((e=>e(os).getCurrentTemplateTemplateParts()),[]);return e.length?(0,l.createElement)("section",{className:"edit-site-template-card__template-areas"},(0,l.createElement)(_.__experimentalHeading,{level:3,className:"edit-site-template-card__template-areas-title"},(0,b.__)("Areas")),(0,l.createElement)("ul",{className:"edit-site-template-card__template-areas-list"},e.map((({templatePart:e,block:t})=>(0,l.createElement)("li",{key:t.clientId},(0,l.createElement)(th,{area:e.area,clientId:t.clientId})))))):null}const sh=()=>{var e,t;const{record:n}=Ca();return{currentTemplate:n,lastRevisionId:null!==(e=n?._links?.["predecessor-version"]?.[0]?.id)&&void 0!==e?e:null,revisionsCount:null!==(t=n?._links?.["version-history"]?.[0]?.count)&&void 0!==t?t:0}};function rh({children:e}){const{lastRevisionId:t,revisionsCount:n}=sh();return null}const ah=()=>{const{lastRevisionId:e,revisionsCount:t}=sh();return(0,l.createElement)(rh,null,(0,l.createElement)(_.PanelRow,{header:(0,b.__)("Editing history"),className:"edit-site-template-revisions"},(0,l.createElement)(_.Button,{href:(0,wt.addQueryArgs)("revision.php",{revision:e}),className:"edit-site-template-last-revision__title",icon:hr},(0,b.sprintf)((0,b._n)("%d Revision","%d Revisions",t),t))))};function ih(){return(0,l.createElement)(rh,null,(0,l.createElement)(ah,null))}const oh=e=>(0,Qt.decodeEntities)(e),lh=e=>({...e,name:oh(e.name)}),ch=[],uh=20,dh={per_page:uh,_fields:"id,name",context:"view"},ph=(e,t)=>oh(e).toLowerCase()===oh(t).toLowerCase(),mh=(e,t)=>e.map((e=>t.find((t=>ph(t.name,e))).id));function hh({post:e}){var t;const n="wp_pattern_category",[s,r]=(0,l.useState)([]),[a,i]=(0,l.useState)(""),o=(0,ae.useDebounce)(i,500),{terms:c,taxonomy:u,hasAssignAction:p,hasCreateAction:m,hasResolvedTerms:h}=(0,d.useSelect)((t=>{var s,r;const{getEntityRecords:a,getTaxonomy:i,hasFinishedResolution:o}=t(f.store),l=i(n),c=e?.wp_pattern_category?.length>0?e?.wp_pattern_category:ch,u={...dh,include:c?.join(","),per_page:-1};return{hasCreateAction:!!l&&(null!==(s=e._links?.["wp:action-create-"+l.rest_base])&&void 0!==s&&s),hasAssignAction:!!l&&(null!==(r=e._links?.["wp:action-assign-"+l.rest_base])&&void 0!==r&&r),taxonomy:l,termIds:c,terms:c?.length?a("taxonomy",n,u):ch,hasResolvedTerms:o("getEntityRecords",["taxonomy",n,u])}}),[n,e]),{searchResults:g}=(0,d.useSelect)((e=>{const{getEntityRecords:t}=e(f.store);return{searchResults:a?t("taxonomy",n,{...dh,search:a}):ch}}),[a,n]);(0,l.useEffect)((()=>{if(h){const e=(null!=c?c:[]).map((e=>oh(e.name)));r(e)}}),[c,h]);const y=(0,l.useMemo)((()=>(null!=g?g:[]).map((e=>oh(e.name)))),[g]),{saveEntityRecord:v,editEntityRecord:E,invalidateResolution:w}=(0,d.useDispatch)(f.store),{createErrorNotice:x}=(0,d.useDispatch)(xe.store);if(!p)return null;function C(t){E("postType",Rt.user,e.id,{wp_pattern_category:t})}const S=null!==(t=u?.labels?.singular_name)&&void 0!==t?t:"post_tag"===n?(0,b.__)("Tag"):(0,b.__)("Term"),k=(0,b.sprintf)((0,b._x)("%s added","term"),S),T=(0,b.sprintf)((0,b._x)("%s removed","term"),S),P=(0,b.sprintf)((0,b._x)("Remove %s","term"),S);return(0,l.createElement)(_.PanelRow,{initialOpen:!0,title:(0,b.__)("Categories")},(0,l.createElement)(_.FlexBlock,null,(0,l.createElement)(_.FormTokenField,{__next40pxDefaultSize:!0,value:s,suggestions:y,onChange:function(e){const t=[...null!=c?c:[],...null!=g?g:[]],s=e.reduce(((e,t)=>(e.some((e=>e.toLowerCase()===t.toLowerCase()))||e.push(t),e)),[]),a=s.filter((e=>!t.find((t=>ph(t.name,e)))));if(r(s),0===a.length)return C(mh(s,t));m&&Promise.all(a.map((e=>async function(e){try{const t=await v("taxonomy",n,e,{throwOnError:!0});return w("getUserPatternCategories"),lh(t)}catch(t){if("term_exists"!==t.code)throw t;return{id:t.data.term_id,name:e.name}}}({name:e})))).then((e=>{const n=t.concat(e);return C(mh(s,n))})).catch((e=>{x(e.message,{type:"snackbar"})}))},onInputChange:o,maxSuggestions:uh,label:(0,b.__)("Pattern categories"),messages:{added:k,removed:T,remove:P},tokenizeOnBlur:!0})))}const fh={wp_block:fs,wp_navigation:ds};function gh(){var e;const{title:t,description:n,icon:s,record:r,postType:a}=(0,d.useSelect)((e=>{const{getEditedPostType:t,getEditedPostId:n}=e(os),{getEditedEntityRecord:s}=e(f.store),{__experimentalGetTemplateInfo:r}=e(g.store),a=t(),i=s("postType",a,n()),o=r(i);return{title:o.title,description:o.description,icon:o.icon,record:i,postType:a}}),[]);return t||n?(0,l.createElement)(_.PanelBody,{className:"edit-site-template-panel"},(0,l.createElement)(Mm,{className:"edit-site-template-card",title:(0,Qt.decodeEntities)(t),icon:null!==(e=fh[r?.type])&&void 0!==e?e:s,description:(0,Qt.decodeEntities)(n),actions:(0,l.createElement)(eh,{template:r})},(0,l.createElement)(nh,null)),(0,l.createElement)(ih,null),a===Rt.user&&(0,l.createElement)(hh,{post:r})):null}const{Fill:yh,Slot:vh}=(0,_.createSlotFill)("PluginTemplateSettingPanel"),_h=yh;_h.Slot=vh;var bh=_h;const{Slot:Eh,Fill:wh}=(0,_.createSlotFill)("EditSiteSidebarInspector"),xh=wh;function Ch(){const{sidebar:e,isEditorSidebarOpened:t,hasBlockSelection:n,supportsGlobalStyles:s,hasPageContentFocus:r}=(0,d.useSelect)((e=>{const t=e(W).getActiveComplementaryArea($t),n=[Om,Nm].includes(t),s=e(os).getSettings();return{sidebar:t,isEditorSidebarOpened:n,hasBlockSelection:!!e(we.store).getBlockSelectionStart(),supportsGlobalStyles:!s?.supportsTemplatePartsMode,hasPageContentFocus:e(os).hasPageContentFocus()}}),[]),{enableComplementaryArea:a}=(0,d.useDispatch)(W);(0,l.useEffect)((()=>{t&&(n?r||a($t,Om):a($t,Nm))}),[n,t,r]);let i=e;return t||(i=n?Om:Nm),(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Go,{identifier:i,title:(0,b.__)("Settings"),icon:(0,b.isRTL)()?Vo:zo,closeLabel:(0,b.__)("Close Settings"),header:(0,l.createElement)(Im,{sidebarName:i}),headerClassName:"edit-site-sidebar-edit-mode__panel-tabs"},i===Nm&&(0,l.createElement)(l.Fragment,null,r?(0,l.createElement)(Xm,null):(0,l.createElement)(gh,null),(0,l.createElement)(bh.Slot,null)),i===Om&&(0,l.createElement)(Eh,{bubblesVirtually:!0})),s&&(0,l.createElement)(Pm,null))}function Sh({clientId:e,onClose:t}){const{getBlocks:n}=(0,d.useSelect)(we.store),{replaceBlocks:s}=(0,d.useDispatch)(we.store);return(0,d.useSelect)((t=>t(we.store).canRemoveBlock(e)),[e])?(0,l.createElement)(_.MenuItem,{onClick:()=>{s(e,n(e)),t()}},(0,b.__)("Detach blocks from template part")):null}function kh({clientIds:e,blocks:t}){const[n,s]=(0,l.useState)(!1),{replaceBlocks:r}=(0,d.useDispatch)(we.store),{createSuccessNotice:a}=(0,d.useDispatch)(xe.store),{canCreate:i}=(0,d.useSelect)((e=>{const{supportsTemplatePartsMode:t}=e(os).getSettings();return{canCreate:!t}}),[]);if(!i)return null;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(_.MenuItem,{icon:Ha,onClick:()=>{s(!0)},"aria-expanded":n,"aria-haspopup":"dialog"},(0,b.__)("Create template part")),n&&(0,l.createElement)(Ya,{closeModal:()=>{s(!1)},blocks:t,onCreate:async t=>{r(e,(0,c.createBlock)("core/template-part",{slug:t.slug,theme:t.theme})),a((0,b.__)("Template part created."),{type:"snackbar"})}}))}function Th(){return(0,l.createElement)(we.BlockSettingsMenuControls,null,(({selectedClientIds:e,onClose:t})=>(0,l.createElement)(Ph,{clientIds:e,onClose:t})))}function Ph({clientIds:e,onClose:t}){const n=(0,d.useSelect)((t=>t(we.store).getBlocksByClientId(e)),[e]);return 1===n.length&&"core/template-part"===n[0]?.name?(0,l.createElement)(Sh,{clientId:e[0],onClose:t}):(0,l.createElement)(kh,{clientIds:e,blocks:n})}var Nh=(0,l.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(E.Path,{d:"M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"}));const{useLocation:Oh,useHistory:Ih}=nt(Et.privateApis);var Mh=function(){const e=Oh(),t=Ih(),n=e.params.postType===It,s=e.params.postType===Nt,r=e.state?.fromTemplateId;return(n||s)&&r?(0,l.createElement)(_.Button,{className:"edit-site-visual-editor__back-button",icon:Nh,onClick:()=>{t.back()}},(0,b.__)("Back")):null};const{ExperimentalBlockCanvas:Ah}=nt(we.privateApis);var Rh=function({enableResizing:e,settings:t,children:n,contentRef:s,...r}){const{canvasMode:a,deviceType:i,isZoomOutMode:o}=(0,d.useSelect)((e=>({deviceType:e(os).__experimentalGetPreviewDeviceType(),isZoomOutMode:"zoom-out"===e(we.store).__unstableGetEditorMode(),canvasMode:nt(e(os)).getCanvasMode()})),[]),{setCanvasMode:c}=nt((0,d.useDispatch)(os)),u=(0,we.__experimentalUseResizeCanvas)(i),[p,m]=(0,l.useState)(!1);(0,l.useEffect)((()=>{"edit"===a&&m(!1)}),[a]);const h={"aria-label":(0,b.__)("Editor Canvas"),role:"button",tabIndex:0,onFocus:()=>m(!0),onBlur:()=>m(!1),onKeyDown:e=>{const{keyCode:t}=e;t!==Ss.ENTER&&t!==Ss.SPACE||(e.preventDefault(),c("edit"))},onClick:()=>c("edit"),readonly:!0};return(0,l.createElement)(Ah,{height:"100%",iframeProps:{expand:o,scale:o?.45:void 0,frameSize:o?100:void 0,style:e?{}:u,className:v()("edit-site-visual-editor__editor-canvas",{"is-focused":p&&"view"===a}),...r,..."view"===a?h:{}},styles:t.styles,contentRef:s},(0,l.createElement)("style",null,`.is-root-container{display:flow-root;${e?"min-height:0!important;":""}}body{position:relative; ${"view"===a?"cursor: pointer; min-height: 100vh;":""}}}`),n)};const Bh=(e,t)=>`<a ${Lh(e)}>${t}</a>`,Lh=e=>`href="${e}" target="_blank" rel="noreferrer noopener"`,Dh=e=>{const{title:t,foreign_landing_url:n,creator:s,creator_url:r,license:a,license_version:i,license_url:o}=e,l=((e,t)=>{let n=e.trim();return"pdm"!==e&&(n=e.toUpperCase().replace("SAMPLING","Sampling")),t&&(n+=` ${t}`),["pdm","cc0"].includes(e)||(n=`CC ${n}`),n})(a,i),c=(0,Qt.decodeEntities)(s);let u;return u=c?t?(0,b.sprintf)((0,b._x)('"%1$s" by %2$s/ %3$s',"caption"),Bh(n,(0,Qt.decodeEntities)(t)),r?Bh(r,c):c,o?Bh(`${o}?ref=openverse`,l):l):(0,b.sprintf)((0,b._x)("<a %1$s>Work</a> by %2$s/ %3$s","caption"),Lh(n),r?Bh(r,c):c,o?Bh(`${o}?ref=openverse`,l):l):t?(0,b.sprintf)((0,b._x)('"%1$s"/ %2$s',"caption"),Bh(n,(0,Qt.decodeEntities)(t)),o?Bh(`${o}?ref=openverse`,l):l):(0,b.sprintf)((0,b._x)("<a %1$s>Work</a>/ %3$s","caption"),Lh(n),o?Bh(`${o}?ref=openverse`,l):l),u.replace(/\s{2}/g," ")},Fh=async(e={})=>(await(0,d.resolveSelect)(f.store).getMediaItems({...e,orderBy:e?.search?"relevance":"date"})).map((e=>({...e,alt:e.alt_text,url:e.source_url,previewUrl:e.media_details?.sizes?.medium?.source_url,caption:e.caption?.raw})));var Vh=[{name:"images",labels:{name:(0,b.__)("Images"),search_items:(0,b.__)("Search images")},mediaType:"image",async fetch(e={}){return Fh({...e,media_type:"image"})}},{name:"videos",labels:{name:(0,b.__)("Videos"),search_items:(0,b.__)("Search videos")},mediaType:"video",async fetch(e={}){return Fh({...e,media_type:"video"})}},{name:"audio",labels:{name:(0,b.__)("Audio"),search_items:(0,b.__)("Search audio")},mediaType:"audio",async fetch(e={}){return Fh({...e,media_type:"audio"})}},{name:"openverse",labels:{name:(0,b.__)("Openverse"),search_items:(0,b.__)("Search Openverse")},mediaType:"image",async fetch(e={}){const t={...e,mature:!1,excluded_source:"flickr,inaturalist,wikimedia",license:"pdm,cc0"},n={per_page:"page_size",search:"q"},s=new URL("https://api.openverse.engineering/v1/images/");Object.entries(t).forEach((([e,t])=>{const r=n[e]||e;s.searchParams.set(r,t)}));const r=await window.fetch(s,{headers:{"User-Agent":"WordPress/inserter-media-fetch"}});return(await r.json()).results.map((e=>({...e,title:e.title?.toLowerCase().startsWith("file:")?e.title.slice(5):e.title,sourceId:e.id,id:void 0,caption:Dh(e),previewUrl:e.thumbnail})))},getReportUrl:({sourceId:e})=>`https://wordpress.org/openverse/image/${e}/report/`,isExternalResource:!0}];function zh(){var e,t;const{setIsInserterOpened:n}=(0,d.useDispatch)(os),{storedSettings:s,canvasMode:r,templateType:a}=(0,d.useSelect)((e=>{const{getSettings:t,getCanvasMode:s,getEditedPostType:r}=nt(e(os));return{storedSettings:t(n),canvasMode:s(),templateType:r()}}),[n]),i=null!==(e=s.__experimentalAdditionalBlockPatterns)&&void 0!==e?e:s.__experimentalBlockPatterns,o=null!==(t=s.__experimentalAdditionalBlockPatternCategories)&&void 0!==t?t:s.__experimentalBlockPatternCategories,{restBlockPatterns:c,restBlockPatternCategories:u,templateSlug:p,userPatternCategories:m}=(0,d.useSelect)((e=>{const{getEditedPostType:t,getEditedPostId:n}=e(os),{getEditedEntityRecord:s,getUserPatternCategories:r}=e(f.store),a=s("postType",t(),n());return{restBlockPatterns:e(f.store).getBlockPatterns(),restBlockPatternCategories:e(f.store).getBlockPatternCategories(),templateSlug:a.slug,userPatternCategories:r()}}),[]),h=function(e){const t=e?.match(/^(category|tag|taxonomy-([^-]+))$|^(((category|tag)|taxonomy-([^-]+))-(.+))$/);let n,s,r,a=!1;if(t)t[1]?n=t[2]?t[2]:t[1]:t[3]&&(n=t[6]?t[6]:t[4],s=t[7]),n="tag"===n?"post_tag":n;else{const t=e?.match(/^(author)$|^author-(.+)$/);t&&(a=!0,t[2]&&(r=t[2]))}return(0,d.useSelect)((e=>{const{getEntityRecords:t,getTaxonomy:i,getAuthors:o}=e(f.store);let l,c;if(n&&(l=i(n)?.labels?.singular_name),s){const e=t("taxonomy",n,{slug:s,per_page:1});e&&e[0]&&(c=e[0].name)}if(a&&(l="Author",r)){const e=o({slug:r});e&&e[0]&&(c=e[0].name)}return{archiveTypeLabel:l,archiveNameLabel:c}}),[r,a,n,s])}(p),g=(0,l.useMemo)((()=>[...i||[],...c||[]].filter(((e,t,n)=>t===n.findIndex((t=>e.name===t.name)))).filter((({postTypes:e})=>!e||Array.isArray(e)&&e.includes(a)))),[i,c,a]),y=(0,l.useMemo)((()=>[...o||[],...u||[]].filter(((e,t,n)=>t===n.findIndex((t=>e.name===t.name))))),[o,u]);return(0,l.useMemo)((()=>{const{__experimentalAdditionalBlockPatterns:e,__experimentalAdditionalBlockPatternCategories:t,focusMode:n,...a}=s;return{...a,inserterMediaCategories:Vh,__experimentalBlockPatterns:g,__experimentalBlockPatternCategories:y,__experimentalUserPatternCategories:m,focusMode:("view"!==r||!n)&&n,__experimentalArchiveTitleTypeLabel:h.archiveTypeLabel,__experimentalArchiveTitleNameLabel:h.archiveNameLabel}}),[s,g,y,m,r,h.archiveTypeLabel,h.archiveNameLabel])}function Gh(){return(0,we.useBlockEditingMode)("disabled"),(0,l.useEffect)((()=>((0,be.addFilter)("editor.BlockEdit","core/edit-site/disable-non-content-blocks",Hh),()=>(0,be.removeFilter)("editor.BlockEdit","core/edit-site/disable-non-content-blocks"))),[]),null}const Hh=(0,ae.createHigherOrderComponent)((e=>t=>{const n=void 0!==t.context.queryId,s=zt[t.name]&&!n?"contentOnly":void 0;return(0,we.useBlockEditingMode)(s),(0,l.createElement)(e,{...t})}),"withDisableNonPageContentBlocks");function Uh({contentRef:e}){const t=(0,d.useSelect)((e=>e(os).hasPageContentFocus()),[]),{getNotices:n}=(0,d.useSelect)(xe.store),{createInfoNotice:s,removeNotice:r}=(0,d.useDispatch)(xe.store),{setHasPageContentFocus:a}=(0,d.useDispatch)(os),[i,o]=(0,l.useState)(!1),c=(0,l.useRef)(0);return(0,l.useEffect)((()=>{const i=async e=>{if(!t)return;if(!e.target.classList.contains("is-root-container"))return;const r=n().some((e=>e.id===c.current));if(r)return;const{notice:i}=await s((0,b.__)("Edit your template to edit this block."),{isDismissible:!0,type:"snackbar",actions:[{label:(0,b.__)("Edit template"),onClick:()=>a(!1)}]});c.current=i.id},l=e=>{t&&e.target.classList.contains("is-root-container")&&(c.current&&r(c.current),o(!0))},u=e.current;return u?.addEventListener("click",i),u?.addEventListener("dblclick",l),()=>{u?.removeEventListener("click",i),u?.removeEventListener("dblclick",l)}}),[c,t,e.current]),(0,l.createElement)(_.__experimentalConfirmDialog,{isOpen:i,confirmButtonText:(0,b.__)("Edit template"),onConfirm:()=>{o(!1),a(!1)},onCancel:()=>o(!1)},(0,b.__)("Edit your template to edit this block."))}function Wh(){return function(){const{isPage:e,hasPageContentFocus:t}=(0,d.useSelect)((e=>({isPage:e(os).isPage(),hasPageContentFocus:e(os).hasPageContentFocus()})),[]),n=(0,l.useRef)(!1),s=(0,l.useRef)(!1),{createInfoNotice:r}=(0,d.useDispatch)(xe.store),{setHasPageContentFocus:a}=(0,d.useDispatch)(os);(0,l.useEffect)((()=>{!n.current&&e&&s.current&&!t&&(r((0,b.__)("You are editing a template."),{isDismissible:!0,type:"snackbar",actions:[{label:(0,b.__)("Back to page"),onClick:()=>a(!0)}]}),n.current=!0),s.current=t}),[n,e,s,t,r,a])}(),null}function jh({contentRef:e}){const t=(0,d.useSelect)((e=>e(os).hasPageContentFocus()),[]);return(0,l.createElement)(l.Fragment,null,t&&(0,l.createElement)(Gh,null),(0,l.createElement)(Uh,{contentRef:e}),(0,l.createElement)(Wh,null))}const qh={type:"default",alignments:[]};function Yh(){const{clearSelectedBlock:e}=(0,d.useDispatch)(we.store),{templateType:t,isFocusMode:n,isViewMode:s}=(0,d.useSelect)((e=>{const{getEditedPostType:t,getCanvasMode:n}=nt(e(os)),s=t();return{templateType:s,isFocusMode:Vt.includes(s),isViewMode:"view"===n()}}),[]),[r,a]=(0,ae.useResizeObserver)(),i=zh(),{hasBlocks:o}=(0,d.useSelect)((e=>{const{getBlockCount:t}=e(we.store);return{hasBlocks:!!t()}}),[]),c=(0,ae.useViewportMatch)("small","<"),u=n&&!s&&!c,p=(0,l.useRef)(),m=t===Nt,h=m&&n,f=!(h&&o||s)&&void 0,g=h;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(tr.Slot,null,(([t])=>t?(0,l.createElement)("div",{className:"edit-site-visual-editor is-focus-mode"},t):(0,l.createElement)(we.BlockTools,{className:v()("edit-site-visual-editor",{"is-focus-mode":n||!!t,"is-view-mode":s}),__unstableContentRef:p,onClick:t=>{t.target===t.currentTarget&&e()}},(0,l.createElement)(Mh,null),(0,l.createElement)(Zs,{enableResizing:u,height:a.height&&!g?a.height:"100%"},(0,l.createElement)(Rh,{enableResizing:u,settings:i,contentRef:p},r,(0,l.createElement)(we.BlockList,{className:v()("edit-site-block-editor__block-list wp-site-blocks",{"is-navigation-block":m}),layout:qh,renderAppender:f})))))),(0,l.createElement)(jh,{contentRef:p}))}function Zh(e,t){const n=[];for(let s=0;s<e.length;s++){if(["core/query"].includes(e[s].name))continue;const r=t(e[s]);r&&n.push(r),n.push(...Zh(e[s].innerBlocks,t))}return n}const{ExperimentalBlockEditorProvider:Xh}=nt(we.privateApis),Kh=()=>{};function Jh({children:e}){const t=zh(),{templateType:n,isTemplateHidden:s}=(0,d.useSelect)((e=>{const{getEditedPostType:t}=e(os),{getPageContentFocusType:n,getCanvasMode:s}=nt(e(os));return{templateType:t(),isTemplateHidden:"edit"===s()&&"hideTemplate"===n(),canvasMode:nt(e(os)).getCanvasMode()}}),[]),[r,a,i]=(0,f.useEntityBlockEditor)("postType",n),o=function(e,t=!1){return(0,l.useMemo)((()=>t&&e&&e.length?[(0,c.createBlock)("core/group",{layout:{type:"constrained"},style:{spacing:{margin:{top:"4em"}}}},Zh(e,(e=>{if(zt[e.name])return(0,c.createBlock)(e.name)})))]:[]),[e,t])}(r,s);return(0,l.createElement)(Xh,{settings:t,value:s&&o.length?o:r,onInput:s?Kh:a,onChange:s?Kh:i,useSubRegistry:!1},e)}const{ExperimentalBlockEditorProvider:Qh}=nt(we.privateApis),$h=()=>{};function ef({children:e}){const t=zh(),n=(0,f.useEntityId)("postType",Nt),s=(0,l.useMemo)((()=>[(0,c.createBlock)("core/navigation",{ref:n,templateLock:!1})]),[n]),{isEditMode:r}=(0,d.useSelect)((e=>{const{getCanvasMode:t}=nt(e(os));return{isEditMode:"edit"===t()}}),[]),{selectBlock:a,setBlockEditingMode:i,unsetBlockEditingMode:o}=(0,d.useDispatch)(we.store),u=s&&s[0]?.clientId,p=(0,l.useMemo)((()=>({...t,templateLock:"insert",template:[["core/navigation",{},[]]]})),[t]);return(0,l.useEffect)((()=>{u&&r&&a(u)}),[u,r,a]),(0,l.useEffect)((()=>{if(u)return i(u,"contentOnly"),()=>{o(u)}}),[u,o,i]),(0,l.createElement)(Qh,{settings:p,value:s,onInput:$h,onChange:$h,useSubRegistry:!1},e)}function tf({children:e}){return(0,d.useSelect)((e=>e(os).getEditedPostType()),[])===Nt?(0,l.createElement)(ef,null,e):(0,l.createElement)(Jh,null,e)}const{PatternsMenuItems:nf}=nt(Pt.privateApis);function sf(){return(0,l.createElement)(tf,null,(0,l.createElement)(Th,null),(0,l.createElement)(xh,null,(0,l.createElement)(we.BlockInspector,null)),(0,l.createElement)(Yh,null),(0,l.createElement)(nf,null))}var rf=n(773);function af(){const e=(0,ae.useInstanceId)(af),{shortcut:t,content:n,blocks:s,type:r,id:a}=(0,d.useSelect)((e=>{const{getEditedEntityRecord:t}=e(f.store),{getEditedPostType:n,getEditedPostId:s}=e(os),{getShortcutRepresentation:r}=e(ls.store),a=n(),i=s(),o=t("postType",a,i);return{shortcut:r("core/edit-site/toggle-mode"),content:o?.content,blocks:o?.blocks,type:a,id:i}}),[]),{editEntityRecord:i}=(0,d.useDispatch)(f.store),o=(0,l.useMemo)((()=>n instanceof Function?n({blocks:s}):s?(0,c.__unstableSerializeAndClean)(s):n),[n,s]),{switchEditorMode:u}=(0,d.useDispatch)(os);return(0,l.createElement)("div",{className:"edit-site-code-editor"},(0,l.createElement)("div",{className:"edit-site-code-editor__toolbar"},(0,l.createElement)("h2",null,(0,b.__)("Editing code")),(0,l.createElement)(_.Button,{variant:"tertiary",onClick:()=>u("visual"),shortcut:t},(0,b.__)("Exit code editor"))),(0,l.createElement)("div",{className:"edit-site-code-editor__body"},(0,l.createElement)(_.VisuallyHidden,{as:"label",htmlFor:`code-editor-text-area-${e}`},(0,b.__)("Type text or HTML")),(0,l.createElement)(rf.Z,{autoComplete:"off",dir:"auto",value:o,onChange:e=>{i("postType",r,a,{content:e.target.value,blocks:void 0,selection:void 0})},className:"edit-site-code-editor-text-area",id:`code-editor-text-area-${e}`,placeholder:(0,b.__)("Start writing with text or HTML")})))}var of=function(){const{getEditorMode:e}=(0,d.useSelect)(os),t=(0,d.useSelect)((e=>e(os).isListViewOpened()),[]),n=(0,d.useSelect)((e=>e(W).getActiveComplementaryArea(os.name)===Om),[]),{redo:s,undo:r}=(0,d.useDispatch)(f.store),{setIsListViewOpened:a,switchEditorMode:i,toggleDistractionFree:o}=(0,d.useDispatch)(os),{enableComplementaryArea:l,disableComplementaryArea:u}=(0,d.useDispatch)(W),{replaceBlocks:p}=(0,d.useDispatch)(we.store),{getBlockName:m,getSelectedBlockClientId:h,getBlockAttributes:g}=(0,d.useSelect)(we.store),y=(e,t)=>{e.preventDefault();const n=0===t?"core/paragraph":"core/heading",s=h();if(null===s)return;const r=m(s);if("core/paragraph"!==r&&"core/heading"!==r)return;const a=g(s),i="core/paragraph"===r?"align":"textAlign",o="core/paragraph"===n?"align":"textAlign";p(s,(0,c.createBlock)(n,{level:t,content:a.content,[o]:a[i]}))};return(0,ls.useShortcut)("core/edit-site/undo",(e=>{r(),e.preventDefault()})),(0,ls.useShortcut)("core/edit-site/redo",(e=>{s(),e.preventDefault()})),(0,ls.useShortcut)("core/edit-site/toggle-list-view",(()=>{t||a(!0)})),(0,ls.useShortcut)("core/edit-site/toggle-block-settings-sidebar",(e=>{e.preventDefault(),n?u($t):l($t,Om)})),(0,ls.useShortcut)("core/edit-site/toggle-mode",(()=>{i("visual"===e()?"text":"visual")})),(0,ls.useShortcut)("core/edit-site/transform-heading-to-paragraph",(e=>y(e,0))),[1,2,3,4,5,6].forEach((e=>{(0,ls.useShortcut)(`core/edit-site/transform-paragraph-to-heading-${e}`,(t=>y(t,e)))})),(0,ls.useShortcut)("core/edit-site/toggle-distraction-free",(()=>{o()})),null};var lf=(0,l.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(E.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"}));function cf(){const{setIsInserterOpened:e}=(0,d.useDispatch)(os),t=(0,d.useSelect)((e=>e(os).__experimentalGetInsertionPoint()),[]),n=(0,ae.useViewportMatch)("medium","<"),s=n?"div":_.VisuallyHidden,[r,a]=(0,ae.__experimentalUseDialog)({onClose:()=>e(!1),focusOnMount:null}),i=(0,l.useRef)();return(0,l.useEffect)((()=>{i.current.focusSearch()}),[]),(0,l.createElement)("div",{ref:r,...a,className:"edit-site-editor__inserter-panel"},(0,l.createElement)(s,{className:"edit-site-editor__inserter-panel-header"},(0,l.createElement)(_.Button,{icon:lf,label:(0,b.__)("Close block inserter"),onClick:()=>e(!1)})),(0,l.createElement)("div",{className:"edit-site-editor__inserter-panel-content"},(0,l.createElement)(we.__experimentalLibrary,{showInserterHelpPanel:!0,shouldFocusBlock:n,rootClientId:t.rootClientId,__experimentalInsertionIndex:t.insertionIndex,__experimentalFilterValue:t.filterValue,ref:i})))}const{PrivateListView:uf}=nt(we.privateApis);function df({listViewToggleElement:e}){const{setIsListViewOpened:t}=(0,d.useDispatch)(os),n=(0,ae.useFocusOnMount)("firstElement"),s=(0,l.useCallback)((()=>{t(!1),e?.focus()}),[e,t]),r=(0,l.useCallback)((e=>{e.keyCode!==Ss.ESCAPE||e.defaultPrevented||(e.preventDefault(),s())}),[s]),[a,i]=(0,l.useState)(null),o=(0,l.useRef)(),c=(0,l.useRef)(),u=(0,l.useRef)();const p=(0,l.useCallback)((()=>{o.current.contains(o.current.ownerDocument.activeElement)?s():function(){const e=To.focus.tabbable.find(u.current)[0];(o.current.contains(e)?e:c.current).focus()}()}),[s]);return(0,ls.useShortcut)("core/edit-site/toggle-list-view",p),(0,l.createElement)("div",{className:"edit-site-editor__list-view-panel",onKeyDown:r,ref:o},(0,l.createElement)("div",{className:"edit-site-editor__list-view-panel-header"},(0,l.createElement)("strong",null,(0,b.__)("List View")),(0,l.createElement)(_.Button,{icon:k,label:(0,b.__)("Close"),onClick:s,ref:c})),(0,l.createElement)("div",{className:"edit-site-editor__list-view-panel-content",ref:(0,ae.useMergeRefs)([n,i,u])},(0,l.createElement)(uf,{dropZoneElement:a})))}function pf({nonAnimatedSrc:e,animatedSrc:t}){return(0,l.createElement)("picture",{className:"edit-site-welcome-guide__image"},(0,l.createElement)("source",{srcSet:e,media:"(prefers-reduced-motion: reduce)"}),(0,l.createElement)("img",{src:t,width:"312",height:"240",alt:""}))}function mf(){const{toggle:e}=(0,d.useDispatch)(T.store);return(0,d.useSelect)((e=>!!e(T.store).get("core/edit-site","welcomeGuide")),[])?(0,l.createElement)(_.Guide,{className:"edit-site-welcome-guide guide-editor",contentLabel:(0,b.__)("Welcome to the site editor"),finishButtonText:(0,b.__)("Get started"),onFinish:()=>e("core/edit-site","welcomeGuide"),pages:[{image:(0,l.createElement)(pf,{nonAnimatedSrc:"https://s.w.org/images/block-editor/edit-your-site.svg?1",animatedSrc:"https://s.w.org/images/block-editor/edit-your-site.gif?1"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-site-welcome-guide__heading"},(0,b.__)("Edit your site")),(0,l.createElement)("p",{className:"edit-site-welcome-guide__text"},(0,b.__)("Design everything on your site — from the header right down to the footer — using blocks.")),(0,l.createElement)("p",{className:"edit-site-welcome-guide__text"},(0,l.createInterpolateElement)((0,b.__)("Click <StylesIconImage /> to start designing your blocks, and choose your typography, layout, and colors."),{StylesIconImage:(0,l.createElement)("img",{alt:(0,b.__)("styles"),src:"data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z' fill='%231E1E1E'/%3E%3C/svg%3E%0A"})})))}]}):null}function hf(){const{toggle:e}=(0,d.useDispatch)(T.store),{isActive:t,isStylesOpen:n}=(0,d.useSelect)((e=>{const t=e(W).getActiveComplementaryArea(os.name);return{isActive:!!e(T.store).get("core/edit-site","welcomeGuideStyles"),isStylesOpen:"edit-site/global-styles"===t}}),[]);if(!t||!n)return null;const s=(0,b.__)("Welcome to Styles");return(0,l.createElement)(_.Guide,{className:"edit-site-welcome-guide guide-styles",contentLabel:s,finishButtonText:(0,b.__)("Get started"),onFinish:()=>e("core/edit-site","welcomeGuideStyles"),pages:[{image:(0,l.createElement)(pf,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-to-styles.svg?1",animatedSrc:"https://s.w.org/images/block-editor/welcome-to-styles.gif?1"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-site-welcome-guide__heading"},s),(0,l.createElement)("p",{className:"edit-site-welcome-guide__text"},(0,b.__)("Tweak your site, or give it a whole new look! Get creative — how about a new color palette for your buttons, or choosing a new font? Take a look at what you can do here.")))},{image:(0,l.createElement)(pf,{nonAnimatedSrc:"https://s.w.org/images/block-editor/set-the-design.svg?1",animatedSrc:"https://s.w.org/images/block-editor/set-the-design.gif?1"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-site-welcome-guide__heading"},(0,b.__)("Set the design")),(0,l.createElement)("p",{className:"edit-site-welcome-guide__text"},(0,b.__)("You can customize your site as much as you like with different colors, typography, and layouts. Or if you prefer, just leave it up to your theme to handle!")))},{image:(0,l.createElement)(pf,{nonAnimatedSrc:"https://s.w.org/images/block-editor/personalize-blocks.svg?1",animatedSrc:"https://s.w.org/images/block-editor/personalize-blocks.gif?1"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-site-welcome-guide__heading"},(0,b.__)("Personalize blocks")),(0,l.createElement)("p",{className:"edit-site-welcome-guide__text"},(0,b.__)("You can adjust your blocks to ensure a cohesive experience across your site — add your unique colors to a branded Button block, or adjust the Heading block to your preferred size.")))},{image:(0,l.createElement)(pf,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-documentation.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-documentation.gif"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-site-welcome-guide__heading"},(0,b.__)("Learn more")),(0,l.createElement)("p",{className:"edit-site-welcome-guide__text"},(0,b.__)("New to block themes and styling your site?"),(0,l.createElement)(_.ExternalLink,{href:(0,b.__)("https://wordpress.org/documentation/article/styles-overview/")},(0,b.__)("Here’s a detailed guide to learn how to make the most of it."))))}]})}function ff(){const{toggle:e}=(0,d.useDispatch)(T.store),t=(0,d.useSelect)((e=>{const t=!!e(T.store).get("core/edit-site","welcomeGuidePage"),n=!!e(T.store).get("core/edit-site","welcomeGuide"),{hasPageContentFocus:s}=e(os);return t&&!n&&s()}),[]);if(!t)return null;const n=(0,b.__)("Editing a page");return(0,l.createElement)(_.Guide,{className:"edit-site-welcome-guide guide-page",contentLabel:n,finishButtonText:(0,b.__)("Continue"),onFinish:()=>e("core/edit-site","welcomeGuidePage"),pages:[{image:(0,l.createElement)("video",{className:"edit-site-welcome-guide__video",autoPlay:!0,loop:!0,muted:!0,width:"312",height:"240"},(0,l.createElement)("source",{src:"https://s.w.org/images/block-editor/editing-your-page.mp4",type:"video/mp4"})),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-site-welcome-guide__heading"},n),(0,l.createElement)("p",{className:"edit-site-welcome-guide__text"},(0,b.__)("It’s now possible to edit page content in the site editor. To customise other parts of the page like the header and footer switch to editing the template using the settings sidebar.")))}]})}function gf(){const{toggle:e}=(0,d.useDispatch)(T.store),t=(0,d.useSelect)((e=>{const t=!!e(T.store).get("core/edit-site","welcomeGuideTemplate"),n=!!e(T.store).get("core/edit-site","welcomeGuide"),{isPage:s,hasPageContentFocus:r}=e(os);return t&&!n&&s()&&!r()}),[]);if(!t)return null;const n=(0,b.__)("Editing a template");return(0,l.createElement)(_.Guide,{className:"edit-site-welcome-guide guide-template",contentLabel:n,finishButtonText:(0,b.__)("Continue"),onFinish:()=>e("core/edit-site","welcomeGuideTemplate"),pages:[{image:(0,l.createElement)("video",{className:"edit-site-welcome-guide__video",autoPlay:!0,loop:!0,muted:!0,width:"312",height:"240"},(0,l.createElement)("source",{src:"https://s.w.org/images/block-editor/editing-your-template.mp4",type:"video/mp4"})),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-site-welcome-guide__heading"},n),(0,l.createElement)("p",{className:"edit-site-welcome-guide__text"},(0,b.__)("Note that the same template can be used by multiple pages, so any changes made here may affect other pages on the site. To switch back to editing the page content click the ‘Back’ button in the toolbar.")))}]})}function yf(){return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(mf,null),(0,l.createElement)(hf,null),(0,l.createElement)(ff,null),(0,l.createElement)(gf,null))}function vf(e){const{slug:t,patterns:n}=(0,d.useSelect)((e=>{const{getEditedPostType:t,getEditedPostId:n}=e(os),{getEntityRecord:s}=e(f.store),r=n(),a=s("postType",t(),r),{getSettings:i}=e(we.store);return{slug:a.slug,patterns:i().__experimentalBlockPatterns}}),[]),s=(0,d.useSelect)((e=>e(f.store).getCurrentTheme().stylesheet));return(0,l.useMemo)((()=>[{name:"fallback",blocks:(0,c.parse)(e),title:(0,b.__)("Fallback content")},...n.filter((e=>Array.isArray(e.templateTypes)&&e.templateTypes.some((e=>t.startsWith(e))))).map((e=>({...e,blocks:(0,c.parse)(e.content).map((e=>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=s),e)))),"core/template-part"===e.name&&void 0===e.attributes.theme&&(e.attributes.theme=s),e}(e)))})))]),[e,t,n])}function _f({fallbackContent:e,onChoosePattern:t,postType:n}){const[,,s]=(0,f.useEntityBlockEditor)("postType",n),r=vf(e),a=(0,ae.useAsyncList)(r);return(0,l.createElement)(we.__experimentalBlockPatternsList,{blockPatterns:r,shownPatterns:a,onClickPattern:(e,n)=>{s(n,{selection:void 0}),t()}})}function bf({slug:e,isCustom:t,onClose:n,postType:s}){const r=function(e,t=!1){const[n,s]=(0,l.useState)("");return(0,l.useEffect)((()=>{Kt()({path:(0,wt.addQueryArgs)("/wp/v2/templates/lookup",{slug:e,is_custom:t,ignore_empty:!0})}).then((({content:e})=>s(e.raw)))}),[t,e]),n}(e,t);return r?(0,l.createElement)(_.Modal,{className:"edit-site-start-template-options__modal",title:(0,b.__)("Choose a pattern"),closeLabel:(0,b.__)("Cancel"),focusOnMount:"firstElement",onRequestClose:n,isFullScreen:!0},(0,l.createElement)("div",{className:"edit-site-start-template-options__modal-content"},(0,l.createElement)(_f,{fallbackContent:r,slug:e,isCustom:t,postType:s,onChoosePattern:()=>{n()}})),(0,l.createElement)(_.Flex,{className:"edit-site-start-template-options__modal__actions",justify:"flex-end",expanded:!1},(0,l.createElement)(_.FlexItem,null,(0,l.createElement)(_.Button,{variant:"tertiary",onClick:n},(0,b.__)("Skip"))))):null}const Ef={INITIAL:"INITIAL",CLOSED:"CLOSED"};function wf(){const[e,t]=(0,l.useState)(Ef.INITIAL),{shouldOpenModal:n,slug:s,isCustom:r,postType:a}=(0,d.useSelect)((e=>{const{getEditedPostType:t,getEditedPostId:n}=e(os),s=t(),r=n(),{getEditedEntityRecord:a,hasEditsForEntityRecord:i}=e(f.store),o=a("postType",s,r);return{shouldOpenModal:!i("postType",s,r)&&""===o.content&&Ot===s&&!e(T.store).get("core/edit-site","welcomeGuide"),slug:o.slug,isCustom:o.is_custom,postType:s}}),[]);return e===Ef.INITIAL&&!n||e===Ef.CLOSED?null:(0,l.createElement)(bf,{slug:s,isCustom:r,postType:a,onClose:()=>t(Ef.CLOSED)})}const{useGlobalStylesOutput:xf}=nt(we.privateApis);function Cf(){return function(){const[e,t]=xf(),{getSettings:n}=(0,d.useSelect)(os),{updateSettings:s}=(0,d.useDispatch)(os);(0,l.useEffect)((()=>{var r;if(!e||!t)return;const a=n(),i=Object.values(null!==(r=a.styles)&&void 0!==r?r:[]).filter((e=>!e.isGlobalStyles));s({...a,styles:[...i,...e],__experimentalFeatures:t})}),[e,t])}(),null}const{useLocation:Sf}=nt(Et.privateApis);const{ProgressBar:kf,Theme:Tf}=nt(_.privateApis),{useGlobalStyle:Pf}=nt(we.privateApis);function Nf({id:e}){var t;const[n]=Pf("color.text"),[s]=Pf("color.background"),{highlightedColors:r}=at(),a=null!==(t=r[0]?.color)&&void 0!==t?t:n,{elapsed:i,total:o}=(0,d.useSelect)((e=>{var t,n;const s=e(f.store).countSelectorsByStatus(),r=null!==(t=s.resolving)&&void 0!==t?t:0,a=null!==(n=s.finished)&&void 0!==n?n:0;return{elapsed:a,total:a+r}}),[]);return(0,l.createElement)("div",{className:"edit-site-canvas-loader"},(0,l.createElement)(Tf,{accent:a,background:s},(0,l.createElement)(kf,{id:e,max:o,value:i})))}const{BlockRemovalWarningModal:Of}=nt(we.privateApis),If={body:(0,b.__)("Editor content"),sidebar:(0,b.__)("Editor settings"),actions:(0,b.__)("Editor publish"),footer:(0,b.__)("Editor footer")},Mf={"core/query":(0,b.__)("Query Loop displays a list of posts or pages."),"core/post-content":(0,b.__)("Post Content displays the content of a post or page."),"core/post-template":(0,b.__)("Post Template displays each post or page in a Query Loop.")};function Af({listViewToggleElement:e,isLoading:t}){const{record:n,getTitle:s,isLoaded:r}=Ca(),{id:a,type:i}=n,{context:o,editorMode:c,canvasMode:u,blockEditorMode:p,isRightSidebarOpen:m,isInserterOpen:h,isListViewOpen:y,showIconLabels:E,showBlockBreadcrumbs:w,hasPageContentFocus:x}=(0,d.useSelect)((e=>{const{getEditedPostContext:t,getEditorMode:n,getCanvasMode:s,isInserterOpened:r,isListViewOpened:a,hasPageContentFocus:i}=nt(e(os)),{__unstableGetEditorMode:o}=e(we.store),{getActiveComplementaryArea:l}=e(W);return{context:t(),editorMode:n(),canvasMode:s(),blockEditorMode:o(),isInserterOpen:r(),isListViewOpen:a(),isRightSidebarOpen:l(os.name),showIconLabels:e(T.store).get("core/edit-site","showIconLabels"),showBlockBreadcrumbs:e(T.store).get("core/edit-site","showBlockBreadcrumbs"),hasPageContentFocus:i()}}),[]),{setEditedPostContext:C}=(0,d.useDispatch)(os),S="edit"===u,k="view"===u||"visual"===c,P=w&&S&&k&&"zoom-out"!==p,N=S&&k&&h,O=S&&k&&y,I=y?(0,b.__)("List View"):(0,b.__)("Block Library"),M=(0,l.useMemo)((()=>{const{postType:e,postId:t,...n}=null!=o?o:{};return{...x?o:n,queryContext:[o?.queryContext||{page:1},e=>C({...o,queryContext:{...o?.queryContext,...e}})]}}),[x,o,C]);let A;var R;r&&(A=(0,b.sprintf)((0,b.__)("%1$s ‹ %2$s ‹ Editor"),s(),null!==(R=Gt[i])&&void 0!==R?R:Gt[Ot]));!function(e){const t=Sf(),n=(0,d.useSelect)((e=>e(f.store).getEntityRecord("root","site")?.title),[]),s=(0,l.useRef)(!0);(0,l.useEffect)((()=>{s.current=!1}),[t]),(0,l.useEffect)((()=>{if(!s.current&&e&&n){const t=(0,b.sprintf)((0,b.__)("%1$s ‹ %2$s — WordPress"),(0,Qt.decodeEntities)(e),(0,Qt.decodeEntities)(n));document.title=t,(0,Jt.speak)((0,b.sprintf)((0,b.__)("Now displaying: %s"),document.title),"assertive")}}),[e,n,t])}(r&&A);const B=(0,ae.useInstanceId)(Nf,"edit-site-editor__loading-progress"),L=t?{"aria-busy":"true","aria-describedby":B}:void 0;return(0,l.createElement)(l.Fragment,null,t?(0,l.createElement)(Nf,{id:B}):null,S&&(0,l.createElement)(yf,null),(0,l.createElement)(f.EntityProvider,{kind:"root",type:"site"},(0,l.createElement)(f.EntityProvider,{kind:"postType",type:i,id:a},(0,l.createElement)(we.BlockContextProvider,{value:M},(0,l.createElement)(Ch,null),S&&(0,l.createElement)(wf,null),(0,l.createElement)(le,{isDistractionFree:!0,enableRegionNavigation:!1,className:v()("edit-site-editor__interface-skeleton",{"show-icon-labels":E,"is-loading":t}),notices:(0,l.createElement)(g.EditorSnackbars,null),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Cf,null),S&&(0,l.createElement)(g.EditorNotices,null),k&&n&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(sf,null),(0,l.createElement)(Of,{rules:Mf})),"text"===c&&n&&S&&(0,l.createElement)(af,null),r&&!n&&(0,l.createElement)(_.Notice,{status:"warning",isDismissible:!1},(0,b.__)("You attempted to edit an item that doesn't exist. Perhaps it was deleted?")),S&&(0,l.createElement)(of,null)),contentProps:L,secondarySidebar:S&&(N&&(0,l.createElement)(cf,null)||O&&(0,l.createElement)(df,{listViewToggleElement:e})),sidebar:S&&m&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(re.Slot,{scope:"core/edit-site"}),(0,l.createElement)(lm,null)),footer:P&&(0,l.createElement)(we.BlockBreadcrumb,{rootLabelText:x?(0,b.__)("Page"):(0,b.__)("Template")}),labels:{...If,secondarySidebar:I}})))))}function Rf({text:e,children:t}){const n=(0,ae.useCopyToClipboard)(e);return(0,l.createElement)(_.Button,{variant:"secondary",ref:n},t)}function Bf({message:e,error:t}){const n=[(0,l.createElement)(Rf,{key:"copy-error",text:t.stack},(0,b.__)("Copy Error"))];return(0,l.createElement)(we.Warning,{className:"editor-error-boundary",actions:n},e)}class Lf extends l.Component{constructor(){super(...arguments),this.state={error:null}}componentDidCatch(e){(0,be.doAction)("editor.ErrorBoundary.errorLogged",e)}static getDerivedStateFromError(e){return{error:e}}render(){return this.state.error?(0,l.createElement)(Bf,{message:(0,b.__)("The editor has encountered an unexpected error."),error:this.state.error}):this.props.children}}function Df({path:e,categoryType:t,categoryId:n},s){return"/wp_template/all"===e||"/wp_template_part/all"===e||"/patterns"===e&&(!s||!!t&&!!n)}var Ff=(0,l.createElement)(E.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(E.Path,{d:"M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z"}));var Vf=(0,l.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(E.Path,{d:"m12 20-4.5-3.6-.9 1.2L12 22l5.5-4.4-.9-1.2L12 20zm0-16 4.5 3.6.9-1.2L12 2 6.5 6.4l.9 1.2L12 4z"}));var zf=(0,l.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(E.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"}));const Gf=[{keyCombination:{modifier:"primary",character:"b"},description:(0,b.__)("Make the selected text bold.")},{keyCombination:{modifier:"primary",character:"i"},description:(0,b.__)("Make the selected text italic.")},{keyCombination:{modifier:"primary",character:"k"},description:(0,b.__)("Convert the selected text into a link.")},{keyCombination:{modifier:"primaryShift",character:"k"},description:(0,b.__)("Remove a link.")},{keyCombination:{character:"[["},description:(0,b.__)("Insert a link to a post or page.")},{keyCombination:{modifier:"primary",character:"u"},description:(0,b.__)("Underline the selected text.")},{keyCombination:{modifier:"access",character:"d"},description:(0,b.__)("Strikethrough the selected text.")},{keyCombination:{modifier:"access",character:"x"},description:(0,b.__)("Make the selected text inline code.")},{keyCombination:{modifier:"access",character:"0"},description:(0,b.__)("Convert the current heading to a paragraph.")},{keyCombination:{modifier:"access",character:"1-6"},description:(0,b.__)("Convert the current paragraph or heading to a heading of level 1 to 6.")}];function Hf({keyCombination:e,forceAriaLabel:t}){const n=e.modifier?Ss.displayShortcutList[e.modifier](e.character):e.character,s=e.modifier?Ss.shortcutAriaLabel[e.modifier](e.character):e.character;return(0,l.createElement)("kbd",{className:"edit-site-keyboard-shortcut-help-modal__shortcut-key-combination","aria-label":t||s},(Array.isArray(n)?n:[n]).map(((e,t)=>"+"===e?(0,l.createElement)(l.Fragment,{key:t},e):(0,l.createElement)("kbd",{key:t,className:"edit-site-keyboard-shortcut-help-modal__shortcut-key"},e))))}function Uf({description:e,keyCombination:t,aliases:n=[],ariaLabel:s}){return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"edit-site-keyboard-shortcut-help-modal__shortcut-description"},e),(0,l.createElement)("div",{className:"edit-site-keyboard-shortcut-help-modal__shortcut-term"},(0,l.createElement)(Hf,{keyCombination:t,forceAriaLabel:s}),n.map(((e,t)=>(0,l.createElement)(Hf,{keyCombination:e,forceAriaLabel:s,key:t})))))}function Wf({name:e}){const{keyCombination:t,description:n,aliases:s}=(0,d.useSelect)((t=>{const{getShortcutKeyCombination:n,getShortcutDescription:s,getShortcutAliases:r}=t(ls.store);return{keyCombination:n(e),aliases:r(e),description:s(e)}}),[e]);return t?(0,l.createElement)(Uf,{keyCombination:t,description:n,aliases:s}):null}const jf="edit-site/keyboard-shortcut-help",qf=({shortcuts:e})=>(0,l.createElement)("ul",{className:"edit-site-keyboard-shortcut-help-modal__shortcut-list",role:"list"},e.map(((e,t)=>(0,l.createElement)("li",{className:"edit-site-keyboard-shortcut-help-modal__shortcut",key:t},"string"==typeof e?(0,l.createElement)(Wf,{name:e}):(0,l.createElement)(Uf,{...e}))))),Yf=({title:e,shortcuts:t,className:n})=>(0,l.createElement)("section",{className:v()("edit-site-keyboard-shortcut-help-modal__section",n)},!!e&&(0,l.createElement)("h2",{className:"edit-site-keyboard-shortcut-help-modal__section-title"},e),(0,l.createElement)(qf,{shortcuts:t})),Zf=({title:e,categoryName:t,additionalShortcuts:n=[]})=>{const s=(0,d.useSelect)((e=>e(ls.store).getCategoryShortcuts(t)),[t]);return(0,l.createElement)(Yf,{title:e,shortcuts:s.concat(n)})};function Xf(){const e=(0,d.useSelect)((e=>e(W).isModalActive(jf))),{closeModal:t,openModal:n}=(0,d.useDispatch)(W),s=()=>e?t():n(jf);return(0,ls.useShortcut)("core/edit-site/keyboard-shortcuts",s),e?(0,l.createElement)(_.Modal,{className:"edit-site-keyboard-shortcut-help-modal",title:(0,b.__)("Keyboard shortcuts"),onRequestClose:s},(0,l.createElement)(Yf,{className:"edit-site-keyboard-shortcut-help-modal__main-shortcuts",shortcuts:["core/edit-site/keyboard-shortcuts"]}),(0,l.createElement)(Zf,{title:(0,b.__)("Global shortcuts"),categoryName:"global"}),(0,l.createElement)(Zf,{title:(0,b.__)("Selection shortcuts"),categoryName:"selection"}),(0,l.createElement)(Zf,{title:(0,b.__)("Block shortcuts"),categoryName:"block",additionalShortcuts:[{keyCombination:{character:"/"},description:(0,b.__)("Change the block type after adding a new paragraph."),ariaLabel:(0,b.__)("Forward-slash")}]}),(0,l.createElement)(Yf,{title:(0,b.__)("Text formatting"),shortcuts:Gf})):null}function Kf(e){const{featureName:t,onToggle:n=(()=>{}),...s}=e,r=(0,d.useSelect)((e=>!!e(T.store).get("core/edit-site",t)),[t]),{toggle:a}=(0,d.useDispatch)(T.store);return(0,l.createElement)(ve,{onChange:()=>{n(),a("core/edit-site",t)},isChecked:r,...s})}const Jf="edit-site/preferences";function Qf(){const e=(0,d.useSelect)((e=>e(W).isModalActive(Jf))),{closeModal:t,openModal:n}=(0,d.useDispatch)(W),s=(0,d.useRegistry)(),{closeGeneralSidebar:r,setIsListViewOpened:a,setIsInserterOpened:i}=(0,d.useDispatch)(os),{set:o}=(0,d.useDispatch)(T.store),c=()=>{s.batch((()=>{o("core/edit-site","fixedToolbar",!1),i(!1),a(!1),r()}))},u=(0,l.useMemo)((()=>[{name:"general",tabLabel:(0,b.__)("General"),content:(0,l.createElement)(ye,{title:(0,b.__)("Appearance"),description:(0,b.__)("Customize options related to the block editor interface and editing flow.")},(0,l.createElement)(Kf,{featureName:"distractionFree",onToggle:c,help:(0,b.__)("Reduce visual distractions by hiding the toolbar and other elements to focus on writing."),label:(0,b.__)("Distraction free")}),(0,l.createElement)(Kf,{featureName:"focusMode",help:(0,b.__)("Highlights the current block and fades other content."),label:(0,b.__)("Spotlight mode")}),(0,l.createElement)(Kf,{featureName:"showIconLabels",label:(0,b.__)("Show button text labels"),help:(0,b.__)("Show text instead of icons on buttons.")}),(0,l.createElement)(Kf,{featureName:"showListViewByDefault",help:(0,b.__)("Opens the block list view sidebar by default."),label:(0,b.__)("Always open list view")}),(0,l.createElement)(Kf,{featureName:"showBlockBreadcrumbs",help:(0,b.__)("Shows block breadcrumbs at the bottom of the editor."),label:(0,b.__)("Display block breadcrumbs")}))},{name:"blocks",tabLabel:(0,b.__)("Blocks"),content:(0,l.createElement)(ye,{title:(0,b.__)("Block interactions"),description:(0,b.__)("Customize how you interact with blocks in the block library and editing canvas.")},(0,l.createElement)(Kf,{featureName:"keepCaretInsideBlock",help:(0,b.__)("Aids screen readers by stopping text caret from leaving blocks."),label:(0,b.__)("Contain text cursor inside block")}))}]));return e?(0,l.createElement)(de,{closeModal:()=>e?t():n(Jf)},(0,l.createElement)(ge,{sections:u})):null}const{Fill:$f,Slot:eg}=(0,_.createSlotFill)("EditSiteToolsMoreMenuGroup");$f.Slot=({fillProps:e})=>(0,l.createElement)(eg,{fillProps:e},(e=>e&&e.length>0));var tg=$f,ng=n(8981),sg=n.n(ng);var rg=(0,l.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(E.Path,{d:"M18 11.3l-1-1.1-4 4V3h-1.5v11.3L7 10.2l-1 1.1 6.2 5.8 5.8-5.8zm.5 3.7v3.5h-13V15H4v5h16v-5h-1.5z"}));function ag(){const{createErrorNotice:e}=(0,d.useDispatch)(xe.store);return(0,l.createElement)(_.MenuItem,{role:"menuitem",icon:rg,onClick:async function(){try{const e=await Kt()({path:"/wp-block-editor/v1/export",parse:!1,headers:{Accept:"application/zip"}}),t=await e.blob(),n=e.headers.get("content-disposition").match(/=(.+)\.zip/),s=n[1]?n[1]:"edit-site-export";sg()(t,s+".zip","application/zip")}catch(t){let n={};try{n=await t.json()}catch(e){}const s=n.message&&"unknown_error"!==n.code?n.message:(0,b.__)("An error occurred while creating the site export.");e(s,{type:"snackbar"})}},info:(0,b.__)("Download your theme with updated templates and styles.")},(0,b._x)("Export","site exporter menu item"))}function ig(){const{toggle:e}=(0,d.useDispatch)(T.store);return(0,l.createElement)(_.MenuItem,{onClick:()=>e("core/edit-site","welcomeGuide")},(0,b.__)("Welcome Guide"))}function og(){const{createNotice:e}=(0,d.useDispatch)(xe.store),{getEditedPostId:t,getEditedPostType:n}=(0,d.useSelect)(os),{getEditedEntityRecord:s}=(0,d.useSelect)(f.store);const r=(0,ae.useCopyToClipboard)((function(){const e=s("postType",n(),t());return e?"function"==typeof e.content?e.content(e):e.blocks?(0,c.__unstableSerializeAndClean)(e.blocks):e.content?e.content:void 0:""}),(function(){e("info",(0,b.__)("All content copied."),{isDismissible:!0,type:"snackbar"})}));return(0,l.createElement)(_.MenuItem,{ref:r},(0,b.__)("Copy all blocks"))}const lg=[{value:"visual",label:(0,b.__)("Visual editor")},{value:"text",label:(0,b.__)("Code editor")}];var cg=function(){const{shortcut:e,mode:t}=(0,d.useSelect)((e=>({shortcut:e(ls.store).getShortcutRepresentation("core/edit-site/toggle-mode"),isRichEditingEnabled:e(os).getSettings().richEditingEnabled,isCodeEditingEnabled:e(os).getSettings().codeEditingEnabled,mode:e(os).getEditorMode()})),[]),{switchEditorMode:n}=(0,d.useDispatch)(os),s=lg.map((n=>n.value!==t?{...n,shortcut:e}:n));return(0,l.createElement)(_.MenuGroup,{label:(0,b.__)("Editor")},(0,l.createElement)(_.MenuItemsChoice,{choices:s,value:t,onSelect:n}))};function ug({showIconLabels:e}){const t=(0,d.useRegistry)(),n=(0,d.useSelect)((e=>e(T.store).get("core/edit-site","distractionFree")),[]),{setIsInserterOpened:s,setIsListViewOpened:r,closeGeneralSidebar:a}=(0,d.useDispatch)(os),{openModal:i}=(0,d.useDispatch)(W),{set:o}=(0,d.useDispatch)(T.store),c=()=>{t.batch((()=>{o("core/edit-site","fixedToolbar",!1),s(!1),r(!1),a()}))};return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(ue,{toggleProps:{showTooltip:!e,...e&&{variant:"tertiary"}}},(({onClose:e})=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(_.MenuGroup,{label:(0,b._x)("View","noun")},(0,l.createElement)(T.PreferenceToggleMenuItem,{scope:"core/edit-site",name:"fixedToolbar",disabled:n,label:(0,b.__)("Top toolbar"),info:(0,b.__)("Access all block and document tools in a single place"),messageActivated:(0,b.__)("Top toolbar activated"),messageDeactivated:(0,b.__)("Top toolbar deactivated")}),(0,l.createElement)(T.PreferenceToggleMenuItem,{scope:"core/edit-site",name:"focusMode",label:(0,b.__)("Spotlight mode"),info:(0,b.__)("Focus on one block at a time"),messageActivated:(0,b.__)("Spotlight mode activated"),messageDeactivated:(0,b.__)("Spotlight mode deactivated")}),(0,l.createElement)(T.PreferenceToggleMenuItem,{scope:"core/edit-site",name:"distractionFree",onToggle:c,label:(0,b.__)("Distraction free"),info:(0,b.__)("Write with calmness"),messageActivated:(0,b.__)("Distraction free mode activated"),messageDeactivated:(0,b.__)("Distraction free mode deactivated"),shortcut:Ss.displayShortcut.primaryShift("\\")})),(0,l.createElement)(cg,null),(0,l.createElement)(J.Slot,{name:"core/edit-site/plugin-more-menu",label:(0,b.__)("Plugins"),as:_.MenuGroup,fillProps:{onClick:e}}),(0,l.createElement)(_.MenuGroup,{label:(0,b.__)("Tools")},(0,l.createElement)(ag,null),(0,l.createElement)(_.MenuItem,{onClick:()=>i(jf),shortcut:Ss.displayShortcut.access("h")},(0,b.__)("Keyboard shortcuts")),(0,l.createElement)(ig,null),(0,l.createElement)(og,null),(0,l.createElement)(_.MenuItem,{icon:zf,role:"menuitem",href:(0,b.__)("https://wordpress.org/documentation/article/site-editor/"),target:"_blank",rel:"noopener noreferrer"},(0,b.__)("Help"),(0,l.createElement)(_.VisuallyHidden,{as:"span"},(0,b.__)("(opens in a new tab)"))),(0,l.createElement)(tg.Slot,{fillProps:{onClose:e}})),(0,l.createElement)(_.MenuGroup,null,(0,l.createElement)(_.MenuItem,{onClick:()=>i(Jf)},(0,b.__)("Preferences")))))),(0,l.createElement)(Xf,null),(0,l.createElement)(Qf,null))}var dg=(0,l.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(E.Path,{d:"M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z"}));var pg=(0,l.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(E.Path,{d:"M15.6 6.5l-1.1 1 2.9 3.3H8c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.3-.5h9.2L14.5 15l1.1 1.1 4.6-4.6-4.6-5z"}));var mg=(0,l.forwardRef)((function(e,t){const n=(0,d.useSelect)((e=>e(f.store).hasUndo()),[]),{undo:s}=(0,d.useDispatch)(f.store);return(0,l.createElement)(_.Button,{...e,ref:t,icon:(0,b.isRTL)()?pg:dg,label:(0,b.__)("Undo"),shortcut:Ss.displayShortcut.primary("z"),"aria-disabled":!n,onClick:n?s:void 0})}));var hg=(0,l.forwardRef)((function(e,t){const n=(0,Ss.isAppleOS)()?Ss.displayShortcut.primaryShift("z"):Ss.displayShortcut.primary("y"),s=(0,d.useSelect)((e=>e(f.store).hasRedo()),[]),{redo:r}=(0,d.useDispatch)(f.store);return(0,l.createElement)(_.Button,{...e,ref:t,icon:(0,b.isRTL)()?dg:pg,label:(0,b.__)("Redo"),shortcut:n,"aria-disabled":!s,onClick:s?r:void 0})}));const fg={[Rt.user]:(0,b.__)("Editing pattern:"),[Nt]:(0,b.__)("Editing navigation menu:"),[Ot]:(0,b.__)("Editing template:"),[It]:(0,b.__)("Editing template part:")};function gg(){return(0,d.useSelect)((e=>e(os).isPage()),[])?(0,l.createElement)(yg,null):(0,l.createElement)(vg,null)}function yg(){const{hasPageContentFocus:e,hasResolved:t,isFound:n,title:s}=(0,d.useSelect)((e=>{const{hasPageContentFocus:t,getEditedPostContext:n}=e(os),{getEditedEntityRecord:s,hasFinishedResolution:r}=e(f.store),a=n(),i=["postType",a.postType,a.postId],o=s(...i);return{hasPageContentFocus:t(),hasResolved:r("getEditedEntityRecord",i),isFound:!!o,title:o?.title}}),[]),{setHasPageContentFocus:r}=(0,d.useDispatch)(os),[a,i]=(0,l.useState)(!1),o=(0,l.useRef)(!1);return(0,l.useEffect)((()=>{o.current&&!e&&i(!0),o.current=e}),[e]),t?n?e?(0,l.createElement)(_g,{className:v()("is-page",{"is-animated":a}),icon:ms},s):(0,l.createElement)(vg,{className:"is-animated",onBack:()=>r(!0)}):(0,l.createElement)("div",{className:"edit-site-document-actions"},(0,b.__)("Document not found")):null}function vg({className:e,onBack:t}){var n;const{isLoaded:s,record:r,getTitle:a,icon:i}=Ca();if(!s)return null;if(!r)return(0,l.createElement)("div",{className:"edit-site-document-actions"},(0,b.__)("Document not found"));let o=i;return r.type===Nt?o=ds:r.type===Rt.user&&(o=fs),(0,l.createElement)(_g,{className:v()(e,{"is-synced-entity":r.wp_pattern_sync_status!==Ft.unsynced}),icon:o,onBack:t},(0,l.createElement)(_.VisuallyHidden,{as:"span"},null!==(n=fg[r.type])&&void 0!==n?n:fg[Ot]),a())}function _g({className:e,icon:t,children:n,onBack:s}){const{open:r}=(0,d.useDispatch)(cs.store);return(0,l.createElement)("div",{className:v()("edit-site-document-actions",e)},s&&(0,l.createElement)(_.Button,{className:"edit-site-document-actions__back",icon:(0,b.isRTL)()?bs:_s,onClick:e=>{e.stopPropagation(),s()}},(0,b.__)("Back")),(0,l.createElement)(_.Button,{className:"edit-site-document-actions__command",onClick:()=>r()},(0,l.createElement)(_.__experimentalHStack,{className:"edit-site-document-actions__title",spacing:1,justify:"center"},(0,l.createElement)(we.BlockIcon,{icon:t}),(0,l.createElement)(_.__experimentalText,{size:"body",as:"h1"},n)),(0,l.createElement)("span",{className:"edit-site-document-actions__shortcut"},Ss.displayShortcut.primary("k"))))}const{useShouldContextualToolbarShow:bg}=nt(we.privateApis),Eg=e=>{e.preventDefault()};function wg({setListViewToggleElement:e}){const t=(0,l.useRef)(),{deviceType:n,templateType:s,isInserterOpen:r,isListViewOpen:a,listViewShortcut:i,isVisualMode:o,isDistractionFree:c,blockEditorMode:u,homeUrl:p,showIconLabels:m,editorCanvasView:h,hasFixedToolbar:g}=(0,d.useSelect)((e=>{const{__experimentalGetPreviewDeviceType:t,getEditedPostType:n,isInserterOpened:s,isListViewOpened:r,getEditorMode:a}=e(os),{getShortcutRepresentation:i}=e(ls.store),{__unstableGetEditorMode:o}=e(we.store),l=n(),{getUnstableBase:c}=e(f.store),{get:u}=e(T.store);return{deviceType:t(),templateType:l,isInserterOpen:s(),isListViewOpen:r(),listViewShortcut:i("core/edit-site/toggle-list-view"),isVisualMode:"visual"===a(),blockEditorMode:o(),homeUrl:c()?.home,showIconLabels:u(os.name,"showIconLabels"),editorCanvasView:nt(e(os)).getEditorCanvasContainerView(),isDistractionFree:u(os.name,"distractionFree"),hasFixedToolbar:u(os.name,"fixedToolbar")}}),[]),{__experimentalSetPreviewDeviceType:y,setIsInserterOpened:E,setIsListViewOpened:w}=(0,d.useDispatch)(os),{__unstableSetEditorMode:x}=(0,d.useDispatch)(we.store),C=(0,ae.useReducedMotion)(),S=(0,ae.useViewportMatch)("medium"),k=(0,l.useCallback)((()=>{r?(t.current.focus(),E(!1)):E(!0)}),[r,E]),P=(0,l.useCallback)((()=>w(!a)),[w,a]),{shouldShowContextualToolbar:N,canFocusHiddenToolbar:O,fixedToolbarCanBeFocused:I}=bg(),M=N||O||I,A=!function(){const e=(0,_.__experimentalUseSlotFills)(Js);return!!e?.length}(),R=Vt.includes(s),B=(0,b._x)("Toggle block inserter","Generic label for block inserter button"),L=r?(0,b.__)("Close"):(0,b.__)("Add"),D=window?.__experimentalEnableZoomedOutView&&o,F="zoom-out"===u,V={isDistractionFree:{y:"-50px"},isDistractionFreeHovering:{y:0},view:{y:0},edit:{y:0}},z={type:"tween",duration:C?0:.2,ease:"easeOut"};return(0,l.createElement)("div",{className:v()("edit-site-header-edit-mode",{"show-icon-labels":m})},A&&(0,l.createElement)(we.NavigableToolbar,{as:_.__unstableMotion.div,className:"edit-site-header-edit-mode__start","aria-label":(0,b.__)("Document tools"),shouldUseKeyboardFocusShortcut:!M,variants:V,transition:z},(0,l.createElement)("div",{className:"edit-site-header-edit-mode__toolbar"},!c&&(0,l.createElement)(_.ToolbarItem,{ref:t,as:_.Button,className:"edit-site-header-edit-mode__inserter-toggle",variant:"primary",isPressed:r,onMouseDown:Eg,onClick:k,disabled:!o,icon:zr,label:m?L:B,showTooltip:!m,"aria-expanded":r}),S&&(0,l.createElement)(l.Fragment,null,!g&&(0,l.createElement)(_.ToolbarItem,{as:we.ToolSelector,showTooltip:!m,variant:m?"tertiary":void 0,disabled:!o}),(0,l.createElement)(_.ToolbarItem,{as:mg,showTooltip:!m,variant:m?"tertiary":void 0}),(0,l.createElement)(_.ToolbarItem,{as:hg,showTooltip:!m,variant:m?"tertiary":void 0}),!c&&(0,l.createElement)(_.ToolbarItem,{as:_.Button,className:"edit-site-header-edit-mode__list-view-toggle",disabled:!o||F,icon:Ff,isPressed:a,label:(0,b.__)("List View"),onClick:P,ref:e,shortcut:i,showTooltip:!m,variant:m?"tertiary":void 0,"aria-expanded":a}),D&&!c&&!g&&(0,l.createElement)(_.ToolbarItem,{as:_.Button,className:"edit-site-header-edit-mode__zoom-out-view-toggle",icon:Vf,isPressed:F,label:(0,b.__)("Zoom-out View"),onClick:()=>{y("Desktop"),x(F?"edit":"zoom-out")}})))),!c&&(0,l.createElement)("div",{className:"edit-site-header-edit-mode__center"},A?(0,l.createElement)(gg,null):Xs(h)),(0,l.createElement)("div",{className:"edit-site-header-edit-mode__end"},(0,l.createElement)(_.__unstableMotion.div,{className:"edit-site-header-edit-mode__actions",variants:V,transition:z},(0,l.createElement)("div",{className:v()("edit-site-header-edit-mode__preview-options",{"is-zoomed-out":F})},(0,l.createElement)(we.__experimentalPreviewOptions,{deviceType:n,setDeviceType:y,label:(0,b.__)("View"),isEnabled:!R&&A},(({onClose:e})=>(0,l.createElement)(_.MenuGroup,null,(0,l.createElement)(_.MenuItem,{href:p,target:"_blank",icon:zf,onClick:e},(0,b.__)("View site"),(0,l.createElement)(_.VisuallyHidden,{as:"span"},(0,b.__)("(opens in a new tab)"))))))),(0,l.createElement)(_o,null),!c&&(0,l.createElement)(te.Slot,{scope:"core/edit-site"}),(0,l.createElement)(ug,{showIconLabels:m}))))}var xg=(0,l.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,l.createElement)(E.Path,{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"}));var Cg=function({className:e}){const{isRequestingSite:t,siteIconUrl:n}=(0,d.useSelect)((e=>{const{getEntityRecord:t}=e(f.store),n=t("root","__unstableBase",void 0);return{isRequestingSite:!n,siteIconUrl:n?.site_icon_url}}),[]);if(t&&!n)return(0,l.createElement)("div",{className:"edit-site-site-icon__image"});const s=n?(0,l.createElement)("img",{className:"edit-site-site-icon__image",alt:(0,b.__)("Site Icon"),src:n}):(0,l.createElement)(_.Icon,{className:"edit-site-site-icon__icon",size:"48px",icon:xg});return(0,l.createElement)("div",{className:v()(e,"edit-site-site-icon")},s)};const Sg=(0,l.forwardRef)((({isTransparent:e,...t},n)=>{const{canvasMode:s,dashboardLink:r,homeUrl:a,siteTitle:i}=(0,d.useSelect)((e=>{const{getCanvasMode:t,getSettings:n}=nt(e(os)),{getSite:s,getUnstableBase:r}=e(f.store);return{canvasMode:t(),dashboardLink:n().__experimentalDashboardLink||"index.php",homeUrl:r()?.home,siteTitle:s()?.title}}),[]),{open:o}=(0,d.useDispatch)(cs.store),c=(0,ae.useReducedMotion)(),{setCanvasMode:u,__experimentalSetPreviewDeviceType:p}=nt((0,d.useDispatch)(os)),{clearSelectedBlock:m}=(0,d.useDispatch)(we.store),h="view"===s?{href:r,label:(0,b.__)("Go to the Dashboard")}:{href:r,role:"button",label:(0,b.__)("Open Navigation"),onClick:e=>{e.preventDefault(),"edit"===s&&(m(),p("Desktop"),u("view"))}};return(0,l.createElement)(_.__unstableMotion.div,{ref:n,...t,className:v()("edit-site-site-hub",t.className),initial:!1,transition:{type:"tween",duration:c?0:.3,ease:"easeOut"}},(0,l.createElement)(_.__experimentalHStack,{justify:"space-between",alignment:"center",className:"edit-site-site-hub__container"},(0,l.createElement)(_.__experimentalHStack,{justify:"flex-start",className:"edit-site-site-hub__text-content",spacing:"0"},(0,l.createElement)(_.__unstableMotion.div,{className:v()("edit-site-site-hub__view-mode-toggle-container",{"has-transparent-background":e}),layout:!0,transition:{type:"tween",duration:c?0:.3,ease:"easeOut"}},(0,l.createElement)(_.Button,{...h,className:"edit-site-layout__view-mode-toggle"},(0,l.createElement)(_.__unstableMotion.div,{initial:!1,animate:{scale:"view"===s?.5:1},whileHover:{scale:"view"===s?.5:.96},transition:{type:"tween",duration:c?0:.3,ease:"easeOut"}},(0,l.createElement)(Cg,{className:"edit-site-layout__view-mode-toggle-icon"})))),(0,l.createElement)(_.__unstableAnimatePresence,null,(0,l.createElement)(_.__unstableMotion.div,{layout:"edit"===s,animate:{opacity:"view"===s?1:0},exit:{opacity:0},className:v()("edit-site-site-hub__site-title",{"is-transparent":e}),transition:{type:"tween",duration:c?0:.2,ease:"easeOut",delay:"view"===s?.1:0}},(0,Qt.decodeEntities)(i))),"view"===s&&(0,l.createElement)(_.Button,{href:a,target:"_blank",label:(0,b.__)("View site (opens in a new tab)"),"aria-label":(0,b.__)("View site (opens in a new tab)"),icon:zf,className:"edit-site-site-hub__site-view-link"})),"view"===s&&(0,l.createElement)(_.Button,{className:v()("edit-site-site-hub_toggle-command-center",{"is-transparent":e}),icon:Ir,onClick:()=>o(),label:(0,b.__)("Open command palette"),shortcut:Ss.displayShortcut.primary("k")})))}));var kg=Sg;const Tg={position:void 0,userSelect:void 0,cursor:void 0,width:void 0,height:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0},Pg=320,Ng=1300,Og=9/19.5,Ig={width:"100%",height:"100%"};function Mg(e,t){const n=1-Math.max(0,Math.min(1,(e-Pg)/(Ng-Pg))),s=((e,t,n)=>e+(t-e)*n)(t,Og,n);return e/s}var Ag=function e({isFullWidth:t,isOversized:n,setIsOversized:s,isReady:r,children:a,defaultSize:i,innerContentStyle:o}){const[c,u]=(0,l.useState)(Ig),[p,m]=(0,l.useState)(),[h,f]=(0,l.useState)(!1),[g,y]=(0,l.useState)(!1),[E,w]=(0,l.useState)(1),x=(0,d.useSelect)((e=>nt(e(os)).getCanvasMode()),[]),{setCanvasMode:C}=nt((0,d.useDispatch)(os)),S={type:"tween",duration:h?0:.5},k=(0,l.useRef)(null),T=(0,ae.useInstanceId)(e,"edit-site-resizable-frame-handle-help"),P=i.width/i.height,N={default:{flexGrow:0,height:c.height},fullWidth:{flexGrow:1,height:c.height}},O=h?"active":g?"visible":"hidden";return(0,l.createElement)(_.ResizableBox,{as:_.__unstableMotion.div,ref:k,initial:!1,variants:N,animate:t?"fullWidth":"default",onAnimationComplete:e=>{"fullWidth"===e&&u({width:"100%",height:"100%"})},transition:S,size:c,enable:{top:!1,right:!1,bottom:!1,left:r,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},resizeRatio:E,handleClasses:void 0,handleStyles:{left:Tg,right:Tg},minWidth:Pg,maxWidth:t?"100%":"150%",maxHeight:"100%",onFocus:()=>y(!0),onBlur:()=>y(!1),onMouseOver:()=>y(!0),onMouseOut:()=>y(!1),handleComponent:{left:"view"===x&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(_.Tooltip,{text:(0,b.__)("Drag to resize")},(0,l.createElement)(_.__unstableMotion.button,{key:"handle",role:"separator","aria-orientation":"vertical",className:v()("edit-site-resizable-frame__handle",{"is-resizing":h}),variants:{hidden:{opacity:0,left:0},visible:{opacity:1,left:-16},active:{opacity:1,left:-16,scaleY:1.3}},animate:O,"aria-label":(0,b.__)("Drag to resize"),"aria-describedby":T,"aria-valuenow":k.current?.resizable?.offsetWidth||void 0,"aria-valuemin":Pg,"aria-valuemax":i.width,onKeyDown:e=>{if(!["ArrowLeft","ArrowRight"].includes(e.key))return;e.preventDefault();const t=20*(e.shiftKey?5:1)*("ArrowLeft"===e.key?1:-1),n=Math.min(Math.max(Pg,k.current.resizable.offsetWidth+t),i.width);u({width:n,height:Mg(n,P)})},initial:"hidden",exit:"hidden",whileFocus:"active",whileHover:"active"})),(0,l.createElement)("div",{hidden:!0,id:T},(0,b.__)("Use left and right arrow keys to resize the canvas. Hold shift to resize in larger increments.")))},onResizeStart:(e,t,n)=>{m(n.offsetWidth),f(!0)},onResize:(e,t,r,a)=>{const o=a.width/E,l=Math.abs(o),c=a.width<0?l:(i.width-p)/2,d=Math.min(l,c),m=0===l?0:d/l;w(1-m+2*m);const h=p+a.width;s(h>i.width),u({height:n?"100%":Mg(h,P)})},onResizeStop:(e,t,r)=>{if(f(!1),!n)return;s(!1);r.ownerDocument.documentElement.offsetWidth-r.offsetWidth>200?u(Ig):C("edit")},className:v()("edit-site-resizable-frame__inner",{"is-resizing":h})},(0,l.createElement)(_.__unstableMotion.div,{className:"edit-site-resizable-frame__inner-content",animate:{borderRadius:t?0:8},transition:S,style:o},a))};const{useLocation:Rg,useHistory:Bg}=nt(Et.privateApis);const{useHistory:Lg,useLocation:Dg}=nt(Et.privateApis);const{EntitiesSavedStatesExtensible:Fg}=nt(g.privateApis),Vg=({onClose:e})=>{const t=(0,g.useEntitiesSavedStatesIsDirty)();let n;n=t.isDirty?(0,b.__)("Activate & Save"):(0,b.__)("Activate");const s=(0,d.useSelect)((e=>{const t=e(f.store).getTheme(Ct());return t?.name?.rendered}),[]),r=(0,l.createElement)("p",null,(0,b.sprintf)("Saving your changes will change your active theme to %s.",s)),a=function(){const e=Lg(),t=Dg();return async()=>{if(xt()){const n="themes.php?action=activate&stylesheet="+Ct()+"&_wpnonce="+window.WP_BLOCK_THEME_ACTIVATE_NONCE;await window.fetch(n);const{wp_theme_preview:s,...r}=t.params;e.replace(r)}}}();return(0,l.createElement)(Fg,{...t,additionalPrompt:r,close:e,onSave:async e=>(await a(),e),saveEnabled:!0,saveLabel:n})},zg=({onClose:e})=>xt()?(0,l.createElement)(Vg,{onClose:e}):(0,l.createElement)(g.EntitiesSavedStates,{close:e});function Gg(){const{isSaveViewOpen:e,canvasMode:t}=(0,d.useSelect)((e=>{const{isSaveViewOpened:t,getCanvasMode:n}=nt(e(os));return{isSaveViewOpen:t(),canvasMode:n()}}),[]),{setIsSaveViewOpened:n}=(0,d.useDispatch)(os),s=()=>n(!1);return"view"===t?e?(0,l.createElement)(_.Modal,{className:"edit-site-save-panel__modal",onRequestClose:s,__experimentalHideHeader:!0,contentLabel:(0,b.__)("Save site, content, and template changes")},(0,l.createElement)(zg,{onClose:s})):null:(0,l.createElement)(ie,{className:v()("edit-site-layout__actions",{"is-entity-save-view-open":e}),ariaLabel:(0,b.__)("Save panel")},e?(0,l.createElement)(zg,{onClose:s}):(0,l.createElement)("div",{className:"edit-site-editor__toggle-save-panel"},(0,l.createElement)(_.Button,{variant:"secondary",className:"edit-site-editor__toggle-save-panel-button",onClick:()=>n(!0),"aria-expanded":!1},(0,b.__)("Open save panel"))))}var Hg=function(){const{registerShortcut:e}=(0,d.useDispatch)(ls.store);return(0,l.useEffect)((()=>{e({name:"core/edit-site/save",category:"global",description:(0,b.__)("Save your changes."),keyCombination:{modifier:"primary",character:"s"}}),e({name:"core/edit-site/undo",category:"global",description:(0,b.__)("Undo your last changes."),keyCombination:{modifier:"primary",character:"z"}}),e({name:"core/edit-site/redo",category:"global",description:(0,b.__)("Redo your last undo."),keyCombination:{modifier:"primaryShift",character:"z"},aliases:(0,Ss.isAppleOS)()?[]:[{modifier:"primary",character:"y"}]}),e({name:"core/edit-site/toggle-list-view",category:"global",description:(0,b.__)("Open the block list view."),keyCombination:{modifier:"access",character:"o"}}),e({name:"core/edit-site/toggle-block-settings-sidebar",category:"global",description:(0,b.__)("Show or hide the Settings sidebar."),keyCombination:{modifier:"primaryShift",character:","}}),e({name:"core/edit-site/keyboard-shortcuts",category:"main",description:(0,b.__)("Display these keyboard shortcuts."),keyCombination:{modifier:"access",character:"h"}}),e({name:"core/edit-site/next-region",category:"global",description:(0,b.__)("Navigate to the next part of the editor."),keyCombination:{modifier:"ctrl",character:"`"},aliases:[{modifier:"access",character:"n"}]}),e({name:"core/edit-site/previous-region",category:"global",description:(0,b.__)("Navigate to the previous part of the editor."),keyCombination:{modifier:"ctrlShift",character:"`"},aliases:[{modifier:"access",character:"p"},{modifier:"ctrlShift",character:"~"}]}),e({name:"core/edit-site/toggle-mode",category:"global",description:(0,b.__)("Switch between visual editor and code editor."),keyCombination:{modifier:"secondary",character:"m"}}),e({name:"core/edit-site/transform-heading-to-paragraph",category:"block-library",description:(0,b.__)("Transform heading to paragraph."),keyCombination:{modifier:"access",character:"0"}}),[1,2,3,4,5,6].forEach((t=>{e({name:`core/edit-site/transform-paragraph-to-heading-${t}`,category:"block-library",description:(0,b.__)("Transform paragraph to heading."),keyCombination:{modifier:"access",character:`${t}`}})})),e({name:"core/edit-site/toggle-distraction-free",category:"global",description:(0,b.__)("Toggle distraction free mode."),keyCombination:{modifier:"primaryShift",character:"\\"}})}),[e]),null};var Ug=function(){const{__experimentalGetDirtyEntityRecords:e,isSavingEntityRecord:t}=(0,d.useSelect)(f.store),{setIsSaveViewOpened:n}=(0,d.useDispatch)(os);return(0,ls.useShortcut)("core/edit-site/save",(s=>{s.preventDefault();const r=e(),a=!!r.length;!r.some((e=>t(e.kind,e.name,e.key)))&&a&&n(!0)})),null};var Wg=(0,l.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(E.Path,{d:"M12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zM3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 8.75a1.5 1.5 0 01.167 2.99c-.465.052-.917.44-.917 1.01V14h1.5v-.845A3 3 0 109 10.25h1.5a1.5 1.5 0 011.5-1.5zM11.25 15v1.5h1.5V15h-1.5z"}));var jg=(0,l.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(E.Path,{d:"M20 5h-5.7c0-1.3-1-2.3-2.3-2.3S9.7 3.7 9.7 5H4v2h1.5v.3l1.7 11.1c.1 1 1 1.7 2 1.7h5.7c1 0 1.8-.7 2-1.7l1.7-11.1V7H20V5zm-3.2 2l-1.7 11.1c0 .1-.1.2-.3.2H9.1c-.1 0-.3-.1-.3-.2L7.2 7h9.6z"}));var qg=(0,l.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(E.Path,{d:"M4 20h8v-1.5H4V20zM18.9 3.5c-.6-.6-1.5-.6-2.1 0l-7.2 7.2c-.4-.1-.7 0-1.1.1-.5.2-1.5.7-1.9 2.2-.4 1.7-.8 2.2-1.1 2.7-.1.1-.2.3-.3.4l-.6 1.1H6c2 0 3.4-.4 4.7-1.4.8-.6 1.2-1.4 1.3-2.3 0-.3 0-.5-.1-.7L19 5.7c.5-.6.5-1.6-.1-2.2zM9.7 14.7c-.7.5-1.5.8-2.4 1 .2-.5.5-1.2.8-2.3.2-.6.4-1 .8-1.1.5-.1 1 .1 1.3.3.2.2.3.5.2.8 0 .3-.1.9-.7 1.3z"}));const{useGlobalStylesReset:Yg}=nt(we.privateApis),{useHistory:Zg,useLocation:Xg}=nt(Et.privateApis);function Kg(){const{openGeneralSidebar:e,setCanvasMode:t}=nt((0,d.useDispatch)(os)),{params:n}=Xg(),s=!Df(n,(0,ae.useViewportMatch)("medium","<")),{getCanvasMode:r}=nt((0,d.useSelect)(os)),a=Zg(),i=(0,d.useSelect)((e=>e(f.store).getCurrentTheme().is_block_theme),[]);return{isLoading:!1,commands:(0,l.useMemo)((()=>i?[{name:"core/edit-site/open-styles",label:(0,b.__)("Open styles"),callback:({close:n})=>{n(),s||a.push({path:"/wp_global_styles",canvas:"edit"}),s&&"edit"!==r()&&t("edit"),e("edit-site/global-styles")},icon:ps}]:[]),[a,e,t,s,r,i])}}function Jg(){const{openGeneralSidebar:e,setCanvasMode:t}=nt((0,d.useDispatch)(os)),{params:n}=Xg(),s=!Df(n,(0,ae.useViewportMatch)("medium","<")),{getCanvasMode:r}=nt((0,d.useSelect)(os)),{set:a}=(0,d.useDispatch)(T.store),i=Zg(),o=(0,d.useSelect)((e=>e(f.store).getCurrentTheme().is_block_theme),[]);return{isLoading:!1,commands:(0,l.useMemo)((()=>o?[{name:"core/edit-site/toggle-styles-welcome-guide",label:(0,b.__)("Learn about styles"),callback:({close:n})=>{n(),s||i.push({path:"/wp_global_styles",canvas:"edit"}),s&&"edit"!==r()&&t("edit"),e("edit-site/global-styles"),a("core/edit-site","welcomeGuideStyles",!0),setTimeout((()=>{a("core/edit-site","welcomeGuideStyles",!0)}),500)},icon:Wg}]:[]),[i,e,t,s,r,o,a])}}function Qg(){const[e,t]=Yg();return{isLoading:!1,commands:(0,l.useMemo)((()=>e?[{name:"core/edit-site/reset-global-styles",label:(0,b.__)("Reset styles to defaults"),icon:jg,callback:({close:e})=>{e(),t()}}]:[]),[e,t])}}function $g(){const{openGeneralSidebar:e,setEditorCanvasContainerView:t,setCanvasMode:n}=nt((0,d.useDispatch)(os)),{params:s}=Xg(),r=!Df(s,(0,ae.useViewportMatch)("medium","<")),a=Zg(),{canEditCSS:i}=(0,d.useSelect)((e=>{var t;const{getEntityRecord:n,__experimentalGetCurrentGlobalStylesId:s}=e(f.store),r=s(),a=r?n("root","globalStyles",r):void 0;return{canEditCSS:null!==(t=!!a?._links?.["wp:action-edit-css"])&&void 0!==t&&t}}),[]),{getCanvasMode:o}=nt((0,d.useSelect)(os));return{isLoading:!1,commands:(0,l.useMemo)((()=>i?[{name:"core/edit-site/open-styles-css",label:(0,b.__)("Customize CSS"),icon:qg,callback:({close:s})=>{s(),r||a.push({path:"/wp_global_styles",canvas:"edit"}),r&&"edit"!==o()&&n("edit"),e("edit-site/global-styles"),t("global-styles-css")}}]:[]),[a,e,t,i,r,o,n])}}function ey(){const{openGeneralSidebar:e,setEditorCanvasContainerView:t,setCanvasMode:n}=nt((0,d.useDispatch)(os)),{getCanvasMode:s}=nt((0,d.useSelect)(os)),{params:r}=Xg(),a=!Df(r,(0,ae.useViewportMatch)("medium","<")),i=Zg(),o=(0,d.useSelect)((e=>e(f.store).getCurrentThemeGlobalStylesRevisions()?.length),[]);return{isLoading:!1,commands:(0,l.useMemo)((()=>o?[{name:"core/edit-site/open-global-styles-revisions",label:(0,b.__)("Style revisions"),icon:hr,callback:({close:r})=>{r(),a||i.push({path:"/wp_global_styles",canvas:"edit"}),a&&"edit"!==s()&&n("edit"),e("edit-site/global-styles"),t("global-styles-revisions")}}]:[]),[o,i,e,t,a,s,n])}}var ty=(0,l.createElement)(E.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(E.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"}));var ny=(0,l.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(E.Path,{d:"M15.1 4.8l-3-2.5V4c-4.4 0-8 3.6-8 8 0 3.7 2.5 6.9 6 7.7.3.1.6.1 1 .2l.2-1.5c-.4 0-.7-.1-1.1-.2l-.1.2v-.2c-2.6-.8-4.5-3.3-4.5-6.2 0-3.6 2.9-6.5 6.5-6.5v1.8l3-2.5zM20 11c-.2-1.4-.7-2.7-1.6-3.8l-1.2.8c.7.9 1.1 2 1.3 3.1L20 11zm-1.5 1.8c-.1.5-.2 1.1-.4 1.6s-.5 1-.8 1.5l1.2.9c.4-.5.8-1.1 1-1.8s.5-1.3.5-2l-1.5-.2zm-5.6 5.6l.2 1.5c1.4-.2 2.7-.7 3.8-1.6l-.9-1.1c-.9.7-2 1.1-3.1 1.2z"}));var sy=(0,l.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(E.Path,{d:"M12 4V2.2L9 4.8l3 2.5V5.5c3.6 0 6.5 2.9 6.5 6.5 0 2.9-1.9 5.3-4.5 6.2v.2l-.1-.2c-.4.1-.7.2-1.1.2l.2 1.5c.3 0 .6-.1 1-.2 3.5-.9 6-4 6-7.7 0-4.4-3.6-8-8-8zm-7.9 7l1.5.2c.1-1.2.5-2.3 1.2-3.2l-1.1-.9C4.8 8.2 4.3 9.6 4.1 11zm1.5 1.8l-1.5.2c.1.7.3 1.4.5 2 .3.7.6 1.3 1 1.8l1.2-.8c-.3-.5-.6-1-.8-1.5s-.4-1.1-.4-1.7zm1.5 5.5c1.1.9 2.4 1.4 3.8 1.6l.2-1.5c-1.1-.1-2.2-.5-3.1-1.2l-.9 1.1z"}));var ry=(0,l.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(E.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"}));var ay=(0,l.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(E.Path,{d:"m16 15.5h-8v-1.5h8zm-7.5-2.5h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2zm-9-3h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2zm3 0h-2v-2h2z"}),(0,l.createElement)(E.Path,{d:"m18.5 6.5h-13a.5.5 0 0 0 -.5.5v9.5a.5.5 0 0 0 .5.5h13a.5.5 0 0 0 .5-.5v-9.5a.5.5 0 0 0 -.5-.5zm-13-1.5h13a2 2 0 0 1 2 2v9.5a2 2 0 0 1 -2 2h-13a2 2 0 0 1 -2-2v-9.5a2 2 0 0 1 2-2z"}));const{useHistory:iy}=nt(Et.privateApis);function oy(){const{record:e}=Ca(),{isPage:t,canvasMode:n,hasPageContentFocus:s}=(0,d.useSelect)((e=>({isPage:e(os).isPage(),canvasMode:nt(e(os)).getCanvasMode(),hasPageContentFocus:e(os).hasPageContentFocus()})),[]),{setHasPageContentFocus:r}=(0,d.useDispatch)(os);if(!t||"edit"!==n)return{isLoading:!1,commands:[]};const a=[];return s?a.push({name:"core/switch-to-template-focus",label:(0,b.sprintf)("Edit template: %s",(0,Qt.decodeEntities)(e.title)),icon:hs,callback:({close:e})=>{r(!1),e()}}):a.push({name:"core/switch-to-page-focus",label:(0,b.__)("Back to page"),icon:ms,callback:({close:e})=>{r(!0),e()}}),{isLoading:!1,commands:a}}function ly(){const{switchEditorMode:e}=(0,d.useDispatch)(os),{canvasMode:t,editorMode:n}=(0,d.useSelect)((e=>({canvasMode:nt(e(os)).getCanvasMode(),editorMode:e(os).getEditorMode()})),[]);if("edit"!==t||"text"!==n)return{isLoading:!1,commands:[]};const s=[];return"text"===n&&s.push({name:"core/exit-code-editor",label:(0,b.__)("Exit code editor"),icon:ty,callback:({close:t})=>{e("visual"),t()}}),{isLoading:!1,commands:s}}function cy(){const{isLoaded:e,record:t}=Ca(),{removeTemplate:n,revertTemplate:s}=(0,d.useDispatch)(os),r=iy(),a=(0,d.useSelect)((e=>e(os).hasPageContentFocus()),[]);if(!e)return{isLoading:!0,commands:[]};const i=[];if(en(t)&&!a){const e=t.type===Ot?(0,b.sprintf)("Reset template: %s",(0,Qt.decodeEntities)(t.title)):(0,b.sprintf)("Reset template part: %s",(0,Qt.decodeEntities)(t.title));i.push({name:"core/reset-template",label:e,icon:(0,b.isRTL)()?ny:sy,callback:({close:e})=>{s(t),e()}})}if(Ia(t)&&!a){const e=t.type===Ot?(0,b.sprintf)("Delete template: %s",(0,Qt.decodeEntities)(t.title)):(0,b.sprintf)("Delete template part: %s",(0,Qt.decodeEntities)(t.title)),s=t.type===Ot?"/wp_template":"/wp_template_part/all";i.push({name:"core/remove-template",label:e,icon:jg,callback:({close:e})=>{n(t),r.push({path:s}),e()}})}return{isLoading:!e,commands:i}}function uy(){const{openGeneralSidebar:e,closeGeneralSidebar:t,toggleDistractionFree:n,setIsListViewOpened:s,switchEditorMode:r}=(0,d.useDispatch)(os),{canvasMode:a,editorMode:i,activeSidebar:o,showBlockBreadcrumbs:l,isListViewOpen:c,isDistractionFree:u}=(0,d.useSelect)((e=>{const{isListViewOpened:t,getEditorMode:n}=e(os);return{canvasMode:nt(e(os)).getCanvasMode(),editorMode:n(),activeSidebar:e(W).getActiveComplementaryArea(os.name),showBlockBreadcrumbs:e(T.store).get("core/edit-site","showBlockBreadcrumbs"),isListViewOpen:t(),isDistractionFree:e(T.store).get(os.name,"distractionFree")}}),[]),{openModal:p}=(0,d.useDispatch)(W),{toggle:m}=(0,d.useDispatch)(T.store),{createInfoNotice:h}=(0,d.useDispatch)(xe.store);if("edit"!==a)return{isLoading:!1,commands:[]};const f=[];return f.push({name:"core/open-settings-sidebar",label:(0,b.__)("Toggle settings sidebar"),icon:(0,b.isRTL)()?Vo:zo,callback:({close:n})=>{n(),"edit-site/template"===o?t():e("edit-site/template")}}),f.push({name:"core/open-block-inspector",label:(0,b.__)("Toggle block inspector"),icon:ry,callback:({close:n})=>{n(),"edit-site/block-inspector"===o?t():e("edit-site/block-inspector")}}),f.push({name:"core/toggle-spotlight-mode",label:(0,b.__)("Toggle spotlight mode"),callback:({close:e})=>{m("core/edit-site","focusMode"),e()}}),f.push({name:"core/toggle-distraction-free",label:(0,b.__)("Toggle distraction free"),callback:({close:e})=>{n(),e()}}),f.push({name:"core/toggle-top-toolbar",label:(0,b.__)("Toggle top toolbar"),callback:({close:e})=>{m("core/edit-site","fixedToolbar"),u&&n(),e()}}),"visual"===i&&f.push({name:"core/toggle-code-editor",label:(0,b.__)("Open code editor"),icon:ty,callback:({close:e})=>{r("text"),e()}}),f.push({name:"core/open-preferences",label:(0,b.__)("Editor preferences"),callback:()=>{p(Jf)}}),f.push({name:"core/open-shortcut-help",label:(0,b.__)("Keyboard shortcuts"),icon:ay,callback:()=>{p(jf)}}),f.push({name:"core/toggle-breadcrumbs",label:l?(0,b.__)("Hide block breadcrumbs"):(0,b.__)("Show block breadcrumbs"),callback:({close:e})=>{m("core/edit-site","showBlockBreadcrumbs"),e(),h(l?(0,b.__)("Breadcrumbs hidden."):(0,b.__)("Breadcrumbs visible."),{id:"core/edit-site/toggle-breadcrumbs/notice",type:"snackbar"})}}),f.push({name:"core/toggle-list-view",label:(0,b.__)("Toggle list view"),icon:Ff,callback:({close:e})=>{s(!c),e()}}),{isLoading:!1,commands:f}}function dy({title:e,subTitle:t,actions:n}){return(0,l.createElement)(_.__experimentalHStack,{as:"header",alignment:"left",className:"edit-site-page-header"},(0,l.createElement)(_.FlexBlock,{className:"edit-site-page-header__page-title"},(0,l.createElement)(_.__experimentalHeading,{as:"h2",level:4,className:"edit-site-page-header__title"},e),t&&(0,l.createElement)(_.__experimentalText,{as:"p",className:"edit-site-page-header__sub-title"},t)),(0,l.createElement)(_.FlexItem,{className:"edit-site-page-header__actions"},n))}function py({title:e,subTitle:t,actions:n,children:s,className:r,hideTitleFromUI:a=!1}){const i=v()("edit-site-page",r);return(0,l.createElement)(ie,{className:i,ariaLabel:e},(0,l.createElement)("div",{className:"edit-site-page-content"},!a&&e&&(0,l.createElement)(dy,{title:e,subTitle:t,actions:n}),s),(0,l.createElement)(g.EditorSnackbars,null))}function my({categoryId:e,type:t,titleId:n,descriptionId:s}){const{patternCategories:r}=hi(),a=(0,d.useSelect)((e=>e(g.store).__experimentalGetDefaultTemplatePartAreas()),[]);let i,o;if(t===It){const t=a.find((t=>t.area===e));i=t?.label,o=t?.description}else if(t===Rt.theme){const t=r.find((t=>t.name===e));i=t?.label,o=t?.description}return i?(0,l.createElement)(_.__experimentalVStack,{className:"edit-site-patterns__section-header"},(0,l.createElement)(_.__experimentalHeading,{as:"h2",level:4,id:n},i),o?(0,l.createElement)(_.__experimentalText,{variant:"muted",as:"p",id:s},o):null):null}var hy=(0,l.createElement)(E.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(E.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 11h-.2V9c0-1.5-1.2-2.8-2.8-2.8S9.2 7.5 9.2 9v2H9c-.6 0-1 .4-1 1v4c0 .6.4 1 1 1h6c.6 0 1-.4 1-1v-4c0-.6-.4-1-1-1zm-1.8 0h-2.5V9c0-.7.6-1.2 1.2-1.2s1.2.6 1.2 1.2v2z"})),fy=window.wp.reusableBlocks;function gy({item:e,onClose:t}){const[n,s]=(0,l.useState)((()=>e.title)),[r,a]=(0,l.useState)(!1),{editEntityRecord:i,saveEditedEntityRecord:o}=(0,d.useDispatch)(f.store),{createSuccessNotice:c,createErrorNotice:u}=(0,d.useDispatch)(xe.store);if(e.type===It&&!e.isCustom)return null;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(_.MenuItem,{onClick:()=>{a(!0),s(e.title)}},(0,b.__)("Rename")),r&&(0,l.createElement)(_.Modal,{title:(0,b.__)("Rename"),onRequestClose:()=>{a(!1),t()},overlayClassName:"edit-site-list__rename-modal"},(0,l.createElement)("form",{onSubmit:async function(r){r.preventDefault();try{await i("postType",e.type,e.id,{title:n}),s(""),a(!1),t(),await o("postType",e.type,e.id,{throwOnError:!0}),c(e.type===It?(0,b.__)("Template part renamed."):(0,b.__)("Pattern renamed."),{type:"snackbar"})}catch(t){const n=e.type===It?(0,b.__)("An error occurred while reverting the template part."):(0,b.__)("An error occurred while reverting the pattern."),s=t.message&&"unknown_error"!==t.code?t.message:n;u(s,{type:"snackbar"})}}},(0,l.createElement)(_.__experimentalVStack,{spacing:"5"},(0,l.createElement)(_.TextControl,{__nextHasNoMarginBottom:!0,label:(0,b.__)("Name"),value:n,onChange:s,required:!0}),(0,l.createElement)(_.__experimentalHStack,{justify:"right"},(0,l.createElement)(_.Button,{variant:"tertiary",onClick:()=>{a(!1),t()}},(0,b.__)("Cancel")),(0,l.createElement)(_.Button,{variant:"primary",type:"submit"},(0,b.__)("Save")))))))}const{useHistory:yy}=nt(Et.privateApis);function vy(e){if(e.type===Rt.theme)return{wp_pattern_sync_status:Ft.unsynced};const t=e.patternBlock.wp_pattern_sync_status,n=t===Ft.unsynced;return{...e.patternBlock.meta,wp_pattern_sync_status:n?t:void 0}}function _y({categoryId:e,item:t,label:n=(0,b.__)("Duplicate"),onClose:s}){const{saveEntityRecord:r,invalidateResolution:a}=(0,d.useDispatch)(f.store),{createErrorNotice:i,createSuccessNotice:o}=(0,d.useDispatch)(xe.store),c=yy(),u=Wa(),{patternCategories:p}=hi();async function m(e){const t=e.map((e=>{const t=p.find((t=>t.name===e));return t.id?t.id:async function(e){try{const t=await r("taxonomy","wp_pattern_category",{name:e.label,slug:e.name,description:e.description},{throwOnError:!0});return a("getUserPatternCategories"),t.id}catch(e){if("term_exists"!==e.code)throw e;return e.data.term_id}}(t)}));return Promise.all(t)}const h=t.type===It?async function(){try{const n=(0,b.sprintf)((0,b.__)("%s (Copy)"),t.title),a=ja(n,u),i=qa(a),{area:l,content:d}=t.templatePart,p=await r("postType",It,{slug:i,title:a,content:d,area:l},{throwOnError:!0});o((0,b.sprintf)((0,b.__)('"%s" duplicated.'),t.title),{type:"snackbar",id:"edit-site-patterns-success"}),c.push({postType:It,postId:p?.id,categoryType:It,categoryId:e}),s()}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,b.__)("An error occurred while creating the template part.");i(t,{type:"snackbar",id:"edit-site-patterns-error"}),s()}}:async function(){try{const n=t.type===Rt.theme,a=(0,b.sprintf)((0,b.__)("%s (Copy)"),t.title||t.name),i=await m(t.categories||[]),l=await r("postType",Rt.user,{content:n?t.content:t.patternBlock.content,meta:vy(t),status:"publish",title:a,wp_pattern_category:i},{throwOnError:!0});o((0,b.sprintf)((0,b.__)('"%s" duplicated.'),t.title||t.name),{type:"snackbar",id:"edit-site-patterns-success"}),c.push({categoryType:Rt.theme,categoryId:e,postType:Rt.user,postId:l?.id}),s()}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,b.__)("An error occurred while creating the pattern.");i(t,{type:"snackbar",id:"edit-site-patterns-error"}),s()}};return(0,l.createElement)(_.MenuItem,{onClick:h},n)}const{useGlobalStyle:by}=nt(we.privateApis),Ey={header:Ba,footer:La,uncategorized:Ha};var wy=(0,l.memo)((function({categoryId:e,item:t,...n}){const s=(0,l.useId)(),[r,a]=(0,l.useState)(!1),[i]=by("color.background"),{removeTemplate:o}=(0,d.useDispatch)(os),{__experimentalDeleteReusableBlock:c}=(0,d.useDispatch)(fy.store),{createErrorNotice:u,createSuccessNotice:p}=(0,d.useDispatch)(xe.store),m=t.type===Rt.user,h=t.type===Rt.theme,f=t.type===It,{onClick:g}=kt({postType:t.type,postId:m?t.id:t.name,categoryId:e,categoryType:f?t.type:Rt.theme}),y=!t.blocks?.length,E=v()("edit-site-patterns__pattern",{"is-placeholder":y}),w=v()("edit-site-patterns__preview",{"is-inactive":h}),x=()=>{const e={__file:t.type,title:t.title||t.name,content:t.patternBlock.content.raw,syncStatus:t.patternBlock.wp_pattern_sync_status};return function(e,t,n){const s=new window.Blob([t],{type:n}),r=document.createElement("a");r.href=URL.createObjectURL(s),r.download=e,r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r)}(`${pa(t.title||t.name)}.json`,JSON.stringify(e,null,2),"application/json")},C=m||f&&t.isCustom,S=f&&t.templatePart.has_theme_file,k=[];let T;C?k.push((0,b.__)("Press Enter to edit, or Delete to delete the pattern.")):t.description&&k.push(t.description),h&&k.push((0,b.__)("Theme & plugin patterns cannot be edited.")),T=!m&&Ey[e]?Ey[e]:t.syncStatus===Ft.full?fs:void 0;const P=S?(0,b.__)("Clear"):(0,b.__)("Delete"),N=S?(0,b.__)("Are you sure you want to clear these customizations?"):(0,b.sprintf)((0,b.__)('Are you sure you want to delete "%s"?'),t.title||t.name),O=i?void 0:[{css:"body { background: #fff; }"}];return(0,l.createElement)("li",{className:E},(0,l.createElement)("button",{className:w,id:`edit-site-patterns-${t.name}`,...n,onClick:t.type!==Rt.theme?g:void 0,"aria-disabled":t.type!==Rt.theme?"false":"true","aria-label":t.title,"aria-describedby":k.length?k.map(((e,t)=>`${s}-${t}`)).join(" "):void 0},y&&f&&(0,b.__)("Empty template part"),y&&!f&&(0,b.__)("Empty pattern"),!y&&(0,l.createElement)(we.BlockPreview,{blocks:t.blocks,additionalStyles:O})),k.map(((e,t)=>(0,l.createElement)("div",{key:t,hidden:!0,id:`${s}-${t}`},e))),(0,l.createElement)(_.__experimentalHStack,{className:"edit-site-patterns__footer",justify:"space-between"},(0,l.createElement)(_.__experimentalHStack,{alignment:"center",justify:"left",spacing:3,className:"edit-site-patterns__pattern-title"},T&&!h&&(0,l.createElement)(_.Tooltip,{placement:"top",text:(0,b.__)("Editing this pattern will also update anywhere it is used")},(0,l.createElement)(pe,{className:"edit-site-patterns__pattern-icon",icon:T})),(0,l.createElement)(_.Flex,{as:"span",gap:0,justify:"left"},t.type===Rt.theme?t.title:(0,l.createElement)(_.__experimentalHeading,{level:5},(0,l.createElement)(_.Button,{variant:"link",onClick:g,tabIndex:"-1"},t.title||t.name)),t.type===Rt.theme&&(0,l.createElement)(_.Tooltip,{placement:"top",text:(0,b.__)("This pattern cannot be edited.")},(0,l.createElement)(pe,{className:"edit-site-patterns__pattern-lock-icon",icon:hy,size:24})))),(0,l.createElement)(_.DropdownMenu,{icon:ce,label:(0,b.__)("Actions"),className:"edit-site-patterns__dropdown",popoverProps:{placement:"bottom-end"},toggleProps:{className:"edit-site-patterns__button",describedBy:(0,b.sprintf)((0,b.__)("Action menu for %s pattern"),t.title)}},(({onClose:n})=>(0,l.createElement)(_.MenuGroup,null,C&&!S&&(0,l.createElement)(gy,{item:t,onClose:n}),(0,l.createElement)(_y,{categoryId:e,item:t,onClose:n,label:(0,b.__)("Duplicate")}),t.type===Rt.user&&(0,l.createElement)(_.MenuItem,{onClick:()=>x()},(0,b.__)("Export as JSON")),C&&(0,l.createElement)(_.MenuItem,{isDestructive:!S,onClick:()=>a(!0)},S?(0,b.__)("Clear customizations"):(0,b.__)("Delete")))))),r&&(0,l.createElement)(_.__experimentalConfirmDialog,{confirmButtonText:P,onConfirm:()=>f?o(t):(async()=>{try{await c(t.id),p((0,b.sprintf)((0,b.__)('"%s" deleted.'),t.title),{type:"snackbar",id:"edit-site-patterns-success"})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,b.__)("An error occurred while deleting the pattern.");u(t,{type:"snackbar",id:"edit-site-patterns-error"})}})(),onCancel:()=>a(!1)},N))}));function xy({categoryId:e,items:t,...n}){return t?.length?(0,l.createElement)("ul",{className:"edit-site-patterns__grid",...n},t.map((t=>(0,l.createElement)(wy,{key:t.name,item:t,categoryId:e})))):null}function Cy(){return(0,l.createElement)("div",{className:"edit-site-patterns__no-results"},(0,b.__)("No patterns found."))}function Sy({currentPage:e,numPages:t,changePage:n,totalItems:s}){return(0,l.createElement)(_.__experimentalHStack,{expanded:!1,spacing:3,justify:"flex-start",className:"edit-site-patterns__grid-pagination"},(0,l.createElement)(_.__experimentalText,{variant:"muted"},(0,b.sprintf)((0,b._n)("%s item","%s items",s),s)),(0,l.createElement)(_.__experimentalHStack,{expanded:!1,spacing:1},(0,l.createElement)(_.Button,{variant:"tertiary",onClick:()=>n(1),disabled:1===e,"aria-label":(0,b.__)("First page")},"«"),(0,l.createElement)(_.Button,{variant:"tertiary",onClick:()=>n(e-1),disabled:1===e,"aria-label":(0,b.__)("Previous page")},"‹")),(0,l.createElement)(_.__experimentalText,{variant:"muted"},(0,b.sprintf)((0,b._x)("%1$s of %2$s","paging"),e,t)),(0,l.createElement)(_.__experimentalHStack,{expanded:!1,spacing:1},(0,l.createElement)(_.Button,{variant:"tertiary",onClick:()=>n(e+1),disabled:e===t,"aria-label":(0,b.__)("Next page")},"›"),(0,l.createElement)(_.Button,{variant:"tertiary",onClick:()=>n(t),disabled:e===t,"aria-label":(0,b.__)("Last page")},"»")))}const{useLocation:ky,useHistory:Ty}=nt(Et.privateApis),Py={all:(0,b._x)("All","Option that shows all patterns"),[Ft.full]:(0,b._x)("Synced","Option that shows all synchronized patterns"),[Ft.unsynced]:(0,b._x)("Not synced","Option that shows all patterns that are not synchronized")},Ny={all:"",[Ft.full]:(0,b.__)("Patterns that are kept in sync across the site."),[Ft.unsynced]:(0,b.__)("Patterns that can be changed freely without affecting the site.")},Oy=20;function Iy({categoryId:e,type:t}){const n=ky(),s=Ty(),r=(0,ae.useViewportMatch)("medium","<"),[a,i,o]=Gr(""),c=(0,l.useDeferredValue)(o),[u,d]=(0,l.useState)("all"),[p,m]=(0,l.useState)(1),h=(0,l.useDeferredValue)(u),f=t===Rt.theme&&"uncategorized"===e,{patterns:g,isResolving:y}=mi(t,f?"":e,{search:c,syncStatus:"all"===h?void 0:h}),v=(0,l.useId)(),E=`${v}-title`,w=`${v}-description`,x=g.length,C=Py[u],S=Ny[u],k=g.length,T=p-1,P=Math.ceil(g.length/Oy),N=(0,l.useMemo)((()=>g.slice(T*Oy,T*Oy+Oy)),[T,g]),O=(0,ae.useAsyncList)(N,{step:10});return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(_.__experimentalVStack,{className:"edit-site-patterns__header",spacing:6},(0,l.createElement)(my,{categoryId:e,type:t,titleId:E,descriptionId:w}),(0,l.createElement)(_.Flex,{alignment:"stretch",wrap:!0},r&&(0,l.createElement)(gs,{icon:(0,b.isRTL)()?he:me,label:(0,b.__)("Back"),onClick:()=>{"/patterns"===n.state?.backPath?s.back():s.push({path:"/patterns"})}}),(0,l.createElement)(_.FlexBlock,{className:"edit-site-patterns__search-block"},(0,l.createElement)(_.SearchControl,{className:"edit-site-patterns__search",onChange:e=>(e=>{m(1),i(e)})(e),placeholder:(0,b.__)("Search patterns"),label:(0,b.__)("Search patterns"),value:a,__nextHasNoMarginBottom:!0})),t===Rt.theme&&(0,l.createElement)(_.__experimentalToggleGroupControl,{className:"edit-site-patterns__sync-status-filter",hideLabelFromVision:!0,label:(0,b.__)("Filter by sync status"),value:u,isBlock:!0,onChange:e=>(e=>{m(1),d(e)})(e),__nextHasNoMarginBottom:!0},Object.entries(Py).map((([e,t])=>(0,l.createElement)(_.__experimentalToggleGroupControlOption,{className:"edit-site-patterns__sync-status-filter-option",key:e,value:e,label:t})))))),(0,l.createElement)(_.__experimentalVStack,{className:"edit-site-patterns__section",justify:"flex-start",spacing:6},"all"!==u&&(0,l.createElement)(_.__experimentalVStack,{className:"edit-site-patterns__section-header"},(0,l.createElement)(_.__experimentalHeading,{as:"h3",level:5,id:E},C),S?(0,l.createElement)(_.__experimentalText,{variant:"muted",as:"p",id:w},S):null),x&&(0,l.createElement)(xy,{categoryId:e,items:O,"aria-labelledby":E,"aria-describedby":w}),!y&&!x&&(0,l.createElement)(Cy,null)),P>1&&(0,l.createElement)(Sy,{currentPage:p,numPages:P,changePage:e=>{const t=document.querySelector(".edit-site-patterns");t?.scrollTo(0,0),m(e)},totalItems:k}))}const{ExperimentalBlockEditorProvider:My}=nt(we.privateApis);function Ay(){const{categoryType:e,categoryId:t}=(0,wt.getQueryArgs)(window.location.href),n=e||Rt.theme,s=t||Bt,r=function(){var e;const t=(0,d.useSelect)((e=>{const{getSettings:t}=nt(e(os));return t()}),[]),n=null!==(e=t.__experimentalAdditionalBlockPatterns)&&void 0!==e?e:t.__experimentalBlockPatterns,s=(0,d.useSelect)((e=>e(f.store).getBlockPatterns()),[]),r=(0,l.useMemo)((()=>[...n||[],...s||[]].filter(Za)),[n,s]);return(0,l.useMemo)((()=>{const{__experimentalAdditionalBlockPatterns:e,...n}=t;return{...n,__experimentalBlockPatterns:r,__unstableIsPreviewMode:!0}}),[t,r])}();return(0,l.createElement)(My,{settings:r},(0,l.createElement)(py,{className:"edit-site-patterns",title:(0,b.__)("Patterns content"),hideTitleFromUI:!0},(0,l.createElement)(Iy,{key:`${n}-${s}`,type:n,categoryId:s})))}function Ry({data:e,columns:t}){return(0,l.createElement)("div",{className:"edit-site-table-wrapper"},(0,l.createElement)("table",{className:"edit-site-table"},(0,l.createElement)("thead",null,(0,l.createElement)("tr",null,t.map((e=>(0,l.createElement)("th",{key:e.header},e.header))))),(0,l.createElement)("tbody",null,e.map(((e,n)=>(0,l.createElement)("tr",{key:n},t.map(((t,n)=>(0,l.createElement)("td",{style:{maxWidth:t.maxWidth?t.maxWidth:void 0},key:n},t.cell(e))))))))))}const{useHistory:By}=nt(Et.privateApis);function Ly(){const{canCreate:e,postType:t}=(0,d.useSelect)((e=>{const{supportsTemplatePartsMode:t}=e(os).getSettings();return{canCreate:!t,postType:e(f.store).getPostType(It)}}),[]),[n,s]=(0,l.useState)(!1),r=By();return e&&t?(0,l.createElement)(l.Fragment,null,(0,l.createElement)(_.Button,{variant:"primary",onClick:()=>s(!0)},t.labels.add_new_item),n&&(0,l.createElement)(Ya,{closeModal:()=>s(!1),blocks:[],onCreate:e=>{s(!1),r.push({postId:e.id,postType:It,canvas:"edit"})},onError:()=>s(!1)})):null}const{useLocation:Dy}=nt(Et.privateApis);function Fy(){const{params:{didAccessPatternsPage:e}}=Dy(),{records:t}=(0,f.useEntityRecords)("postType",It,{per_page:-1}),n=[{header:(0,b.__)("Template Part"),cell:t=>(0,l.createElement)(_.__experimentalVStack,null,(0,l.createElement)(_.__experimentalHeading,{as:"h3",level:5},(0,l.createElement)(Tt,{params:{postId:t.id,postType:t.type,didAccessPatternsPage:e?1:void 0},state:{backPath:"/wp_template_part/all"}},(0,Qt.decodeEntities)(t.title?.rendered||t.slug)))),maxWidth:400},{header:(0,b.__)("Added by"),cell:e=>(0,l.createElement)(Oa,{postType:e.type,postId:e.id})},{header:(0,l.createElement)(_.VisuallyHidden,null,(0,b.__)("Actions")),cell:e=>(0,l.createElement)(Aa,{postType:e.type,postId:e.id})}];return(0,l.createElement)(py,{title:(0,b.__)("Template Parts"),actions:(0,l.createElement)(Ly,null)},t&&(0,l.createElement)(Ry,{data:t,columns:n}))}function Vy(){const{records:e}=(0,f.useEntityRecords)("postType",Ot,{per_page:-1}),t=[{header:(0,b.__)("Template"),cell:e=>(0,l.createElement)(_.__experimentalVStack,null,(0,l.createElement)(_.__experimentalHeading,{as:"h3",level:5},(0,l.createElement)(Tt,{params:{postId:e.id,postType:e.type,canvas:"edit"}},(0,Qt.decodeEntities)(e.title?.rendered||e.slug))),e.description&&(0,l.createElement)(_.__experimentalText,{variant:"muted"},(0,Qt.decodeEntities)(e.description))),maxWidth:400},{header:(0,b.__)("Added by"),cell:e=>(0,l.createElement)(Oa,{postType:e.type,postId:e.id})},{header:(0,l.createElement)(_.VisuallyHidden,null,(0,b.__)("Actions")),cell:e=>(0,l.createElement)(Aa,{postType:e.type,postId:e.id})}];return(0,l.createElement)(py,{title:(0,b.__)("Templates"),actions:(0,l.createElement)(Ea,{templateType:Ot,showIcon:!1,toggleProps:{variant:"primary"}})},e&&(0,l.createElement)(Ry,{data:e,columns:t}))}const{useLocation:zy}=nt(Et.privateApis);function Gy(){const{params:{path:e}}=zy();return"/wp_template/all"===e?(0,l.createElement)(Vy,null):"/wp_template_part/all"===e?(0,l.createElement)(Fy,null):"/patterns"===e?(0,l.createElement)(Ay,null):null}const Hy=1e4;const{useCommands:Uy}=nt(us.privateApis),{useCommandContext:Wy}=nt(cs.privateApis),{useLocation:jy}=nt(Et.privateApis),{useGlobalStyle:qy}=nt(we.privateApis),Yy=.5;function Zy(){Si(),function(){const e=Bg(),{params:t}=Rg(),n=(0,d.useSelect)((e=>nt(e(os)).getCanvasMode()),[]),{setCanvasMode:s}=nt((0,d.useDispatch)(os)),r=(0,l.useRef)(n),{canvas:a}=t,i=(0,l.useRef)(a),o=(0,l.useRef)(t);(0,l.useEffect)((()=>{o.current=t}),[t]),(0,l.useEffect)((()=>{r.current=n,"init"!==n&&("edit"===n&&i.current!==n&&e.push({...o.current,canvas:"edit"}),"view"===n&&void 0!==i.current&&e.push({...o.current,canvas:void 0}))}),[n,e]),(0,l.useEffect)((()=>{i.current=a,"edit"!==a&&"view"!==r.current?s("view"):"edit"===a&&"edit"!==r.current&&s("edit")}),[a,s])}(),Uy(),(0,cs.useCommandLoader)({name:"core/exit-code-editor",hook:ly,context:"site-editor-edit"}),(0,cs.useCommandLoader)({name:"core/edit-site/page-content-focus",hook:oy,context:"site-editor-edit"}),(0,cs.useCommandLoader)({name:"core/edit-site/manipulate-document",hook:cy}),(0,cs.useCommandLoader)({name:"core/edit-site/edit-ui",hook:uy}),function(){const e=(0,d.useSelect)((e=>{const{getUnstableBase:t}=e(f.store);return t()?.home}),[]);(0,cs.useCommand)({name:"core/edit-site/view-site",label:(0,b.__)("View site"),callback:({close:t})=>{t(),window.open(e,"_blank")},icon:zf}),(0,cs.useCommandLoader)({name:"core/edit-site/open-styles",hook:Kg}),(0,cs.useCommandLoader)({name:"core/edit-site/toggle-styles-welcome-guide",hook:Jg}),(0,cs.useCommandLoader)({name:"core/edit-site/reset-global-styles",hook:Qg}),(0,cs.useCommandLoader)({name:"core/edit-site/open-styles-css",hook:$g}),(0,cs.useCommandLoader)({name:"core/edit-site/open-styles-revisions",hook:ey})}(),(0,we.useBlockCommands)();const e=(0,l.useRef)(),{params:t}=jy(),n=(0,ae.useViewportMatch)("medium","<"),s=Df(t,n),r=!s,{isDistractionFree:a,hasFixedToolbar:i,canvasMode:o,previousShortcut:c,nextShortcut:u}=(0,d.useSelect)((e=>{const{getAllShortcutKeyCombinations:t}=e(ls.store),{getCanvasMode:n}=nt(e(os));return{canvasMode:n(),previousShortcut:t("core/edit-site/previous-region"),nextShortcut:t("core/edit-site/next-region"),hasFixedToolbar:e(T.store).get("core/edit-site","fixedToolbar"),isDistractionFree:e(T.store).get("core/edit-site","distractionFree")}}),[]),p="edit"===o,m=(0,_.__unstableUseNavigateRegions)({previous:c,next:u}),h=(0,ae.useReducedMotion)(),g=n&&!s||!n&&("view"===o||!r),y=n&&r&&p||!n||!r,E=n&&s||r&&p,[w,x]=(0,ae.useResizeObserver)(),[C]=(0,ae.useResizeObserver)(),[S]=(0,l.useState)(!1),k=function(){const{isLoaded:e}=Ca(),[t,n]=(0,l.useState)(!1),s=(0,d.useSelect)((e=>{const n=e(f.store).hasResolvingSelectors();return!t&&!n}),[t]);return(0,l.useEffect)((()=>{let e;return t||(e=setTimeout((()=>{n(!0)}),Hy)),()=>{clearTimeout(e)}}),[t]),(0,l.useEffect)((()=>{if(s){const e=setTimeout((()=>{n(!0)}),1e3);return()=>{clearTimeout(e)}}}),[s]),!t||!e}(),[P,N]=(0,l.useState)(!1),[O,I]=(0,l.useState)(null);let M;M="view"===o?"view":a?"isDistractionFree":o;Wy("edit"===o&&r?"site-editor-edit":"site-editor");const[A]=qy("color.background"),[R]=qy("color.gradient");return"init"===o?null:(0,l.createElement)(l.Fragment,null,(0,l.createElement)(cs.CommandMenu,null),(0,l.createElement)(Hg,null),(0,l.createElement)(Ug,null),C,(0,l.createElement)("div",{...m,ref:m.ref,className:v()("edit-site-layout",m.className,{"is-distraction-free":a&&p,"is-full-canvas":E,"is-edit-mode":p,"has-fixed-toolbar":i})},(0,l.createElement)(_.__unstableMotion.div,{className:"edit-site-layout__header-container",variants:{isDistractionFree:{opacity:0,transition:{type:"tween",delay:.8,delayChildren:.8}},isDistractionFreeHovering:{opacity:1,transition:{type:"tween",delay:.2,delayChildren:.2}},view:{opacity:1},edit:{opacity:1}},whileHover:a?"isDistractionFreeHovering":void 0,animate:M},(0,l.createElement)(kg,{variants:{isDistractionFree:{x:"-100%"},isDistractionFreeHovering:{x:0},view:{x:0},edit:{x:0}},ref:e,isTransparent:P,className:"edit-site-layout__hub"}),(0,l.createElement)(_.__unstableAnimatePresence,{initial:!1},r&&p&&(0,l.createElement)(ie,{key:"header",className:"edit-site-layout__header",ariaLabel:(0,b.__)("Editor top bar"),as:_.__unstableMotion.div,variants:{isDistractionFree:{opacity:0,y:0},isDistractionFreeHovering:{opacity:1,y:0},view:{opacity:1,y:"-100%"},edit:{opacity:1,y:0}},exit:{y:"-100%"},initial:{opacity:a?1:0,y:a?0:"-100%"},transition:{type:"tween",duration:h?0:.2,ease:"easeOut"}},(0,l.createElement)(wg,{setListViewToggleElement:I})))),(0,l.createElement)("div",{className:"edit-site-layout__content"},(0,l.createElement)(ie,{ariaLabel:(0,b.__)("Navigation"),className:"edit-site-layout__sidebar-region"},(0,l.createElement)(_.__unstableMotion.div,{inert:g?void 0:"inert",animate:{opacity:g?1:0},transition:{type:"tween",duration:h||n?0:Yy,ease:"easeOut"},className:"edit-site-layout__sidebar"},(0,l.createElement)(Fo,null))),(0,l.createElement)(Gg,null),y&&(0,l.createElement)(l.Fragment,null,s&&(0,l.createElement)(Gy,null),r&&(0,l.createElement)("div",{className:v()("edit-site-layout__canvas-container",{"is-resizing":S})},w,!!x.width&&(0,l.createElement)(_.__unstableMotion.div,{whileHover:r&&"view"===o?{scale:1.005,transition:{duration:h||S?0:.5,ease:"easeOut"}}:{},initial:!1,layout:"position",className:v()("edit-site-layout__canvas",{"is-right-aligned":P}),transition:{type:"tween",duration:h||S?0:Yy,ease:"easeOut"}},(0,l.createElement)(Lf,null,(0,l.createElement)(Ag,{isReady:!k,isFullWidth:p,defaultSize:{width:x.width-24,height:x.height},isOversized:P,setIsOversized:N,innerContentStyle:{background:null!=R?R:A}},(0,l.createElement)(Af,{listViewToggleElement:O,isLoading:k})))))))))}const{RouterProvider:Xy}=nt(Et.privateApis);function Ky(){const{createErrorNotice:e}=(0,d.useDispatch)(xe.store);return(0,l.createElement)(_.SlotFillProvider,null,(0,l.createElement)(Rs,null,(0,l.createElement)(g.UnsavedChangesWarning,null),(0,l.createElement)(Xy,null,(0,l.createElement)(Zy,null),(0,l.createElement)(j.PluginArea,{onError:function(t){e((0,b.sprintf)((0,b.__)('The "%s" plugin has encountered an error and cannot be rendered.'),t))}}))))}function Jy({className:e,...t}){const n=(0,d.useSelect)((e=>e(os).getSettings().showIconLabels),[]);return(0,l.createElement)(re,{panelClassName:e,className:"edit-site-sidebar-edit-mode",scope:"core/edit-site",showIconLabels:n,...t})}function Qy(e){return(0,l.createElement)($,{__unstableExplicitMenuItem:!0,scope:"core/edit-site",...e})}var $y=(0,ae.compose)((0,j.withPluginContext)(((e,t)=>{var n;return{as:null!==(n=t.as)&&void 0!==n?n:_.MenuItem,icon:t.icon||e.icon,name:"core/edit-site/plugin-more-menu"}})))(J);function ev(e,t){const n=document.getElementById(e),s=(0,l.createRoot)(n);t.__experimentalFetchLinkSuggestions=(e,n)=>(0,f.__experimentalFetchLinkSuggestions)(e,n,t),t.__experimentalFetchRichUrlData=f.__experimentalFetchUrlData,(0,d.dispatch)(c.store).reapplyBlockTypeFilters();const r=(0,u.__experimentalGetCoreBlocks)().filter((({name:e})=>"core/freeform"!==e));return(0,u.registerCoreBlocks)(r),(0,d.dispatch)(c.store).setFreeformFallbackBlockName("core/html"),(0,_e.registerLegacyWidgetBlock)({inserter:!1}),(0,_e.registerWidgetGroupBlock)({inserter:!1}),(0,d.dispatch)(T.store).setDefaults("core/edit-site",{editorMode:"visual",fixedToolbar:!1,focusMode:!1,distractionFree:!1,keepCaretInsideBlock:!1,welcomeGuide:!0,welcomeGuideStyles:!0,welcomeGuidePage:!0,welcomeGuideTemplate:!0,showListViewByDefault:!1,showBlockBreadcrumbs:!0}),(0,d.dispatch)(W).setDefaultComplementaryArea("core/edit-site","edit-site/template"),(0,d.dispatch)(os).updateSettings(t),(0,d.dispatch)(g.store).updateEditorSettings({defaultTemplateTypes:t.defaultTemplateTypes,defaultTemplatePartAreas:t.defaultTemplatePartAreas}),window.addEventListener("dragover",(e=>e.preventDefault()),!1),window.addEventListener("drop",(e=>e.preventDefault()),!1),s.render((0,l.createElement)(Ky,null)),s}function tv(){h()("wp.editSite.reinitializeEditor",{since:"6.2",version:"6.3"})}}(),(window.wp=window.wp||{}).editSite=s}();
|