(()=>{"use strict";const e=window.wp.blocks,t=window.React,r=window.wp.components,n=window.wp.i18n,a=window.wp.blockEditor;function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o.apply(null,arguments)}function i(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var s=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,c=i((function(e){return s.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),l=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),u=Math.abs,d=String.fromCharCode,p=Object.assign;function f(e){return e.trim()}function h(e,t,r){return e.replace(t,r)}function m(e,t){return e.indexOf(t)}function g(e,t){return 0|e.charCodeAt(t)}function v(e,t,r){return e.slice(t,r)}function b(e){return e.length}function y(e){return e.length}function k(e,t){return t.push(e),e}var x=1,w=1,C=0,S=0,_=0,A="";function E(e,t,r,n,a,o,i){return{value:e,root:t,parent:r,type:n,props:a,children:o,line:x,column:w,length:i,return:""}}function P(e,t){return p(E("",null,null,"",null,null,0),e,{length:-e.length},t)}function T(){return _=S>0?g(A,--S):0,w--,10===_&&(w=1,x--),_}function $(){return _=S<C?g(A,S++):0,w++,10===_&&(w=1,x++),_}function O(){return g(A,S)}function R(){return S}function M(e,t){return v(A,e,t)}function I(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function z(e){return x=w=1,C=b(A=e),S=0,[]}function L(e){return A="",e}function N(e){return f(M(S-1,U(91===e?e+2:40===e?e+1:e)))}function D(e){for(;(_=O())&&_<33;)$();return I(e)>2||I(_)>3?"":" "}function j(e,t){for(;--t&&$()&&!(_<48||_>102||_>57&&_<65||_>70&&_<97););return M(e,R()+(t<6&&32==O()&&32==$()))}function U(e){for(;$();)switch(_){case e:return S;case 34:case 39:34!==e&&39!==e&&U(_);break;case 40:41===e&&U(e);break;case 92:$()}return S}function F(e,t){for(;$()&&e+_!==57&&(e+_!==84||47!==O()););return"/*"+M(t,S-1)+"*"+d(47===e?e:$())}function H(e){for(;!I(O());)$();return M(e,S)}var q="-ms-",B="-moz-",W="-webkit-",G="comm",Y="rule",V="decl",X="@keyframes";function K(e,t){for(var r="",n=y(e),a=0;a<n;a++)r+=t(e[a],a,e,t)||"";return r}function Z(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case V:return e.return=e.return||e.value;case G:return"";case X:return e.return=e.value+"{"+K(e.children,n)+"}";case Y:e.value=e.props.join(",")}return b(r=K(e.children,n))?e.return=e.value+"{"+r+"}":""}function J(e){return L(Q("",null,null,null,[""],e=z(e),0,[0],e))}function Q(e,t,r,n,a,o,i,s,c){for(var l=0,u=0,p=i,f=0,v=0,y=0,x=1,w=1,C=1,S=0,_="",A=a,E=o,P=n,M=_;w;)switch(y=S,S=$()){case 40:if(108!=y&&58==g(M,p-1)){-1!=m(M+=h(N(S),"&","&\f"),"&\f")&&(C=-1);break}case 34:case 39:case 91:M+=N(S);break;case 9:case 10:case 13:case 32:M+=D(y);break;case 92:M+=j(R()-1,7);continue;case 47:switch(O()){case 42:case 47:k(te(F($(),R()),t,r),c);break;default:M+="/"}break;case 123*x:s[l++]=b(M)*C;case 125*x:case 59:case 0:switch(S){case 0:case 125:w=0;case 59+u:-1==C&&(M=h(M,/\f/g,"")),v>0&&b(M)-p&&k(v>32?re(M+";",n,r,p-1):re(h(M," ","")+";",n,r,p-2),c);break;case 59:M+=";";default:if(k(P=ee(M,t,r,l,u,a,s,_,A=[],E=[],p),o),123===S)if(0===u)Q(M,t,P,P,A,o,p,s,E);else switch(99===f&&110===g(M,3)?100:f){case 100:case 108:case 109:case 115:Q(e,P,P,n&&k(ee(e,P,P,0,0,a,s,_,a,A=[],p),E),a,E,p,s,n?A:E);break;default:Q(M,P,P,P,[""],E,0,s,E)}}l=u=v=0,x=C=1,_=M="",p=i;break;case 58:p=1+b(M),v=y;default:if(x<1)if(123==S)--x;else if(125==S&&0==x++&&125==T())continue;switch(M+=d(S),S*x){case 38:C=u>0?1:(M+="\f",-1);break;case 44:s[l++]=(b(M)-1)*C,C=1;break;case 64:45===O()&&(M+=N($())),f=O(),u=p=b(_=M+=H(R())),S++;break;case 45:45===y&&2==b(M)&&(x=0)}}return o}function ee(e,t,r,n,a,o,i,s,c,l,d){for(var p=a-1,m=0===a?o:[""],g=y(m),b=0,k=0,x=0;b<n;++b)for(var w=0,C=v(e,p+1,p=u(k=i[b])),S=e;w<g;++w)(S=f(k>0?m[w]+" "+C:h(C,/&\f/g,m[w])))&&(c[x++]=S);return E(e,t,r,0===a?Y:s,c,l,d)}function te(e,t,r){return E(e,t,r,G,d(_),v(e,2,-2),0)}function re(e,t,r,n){return E(e,t,r,V,v(e,0,n),v(e,n+1,-1),n)}var ne=function(e,t,r){for(var n=0,a=0;n=a,a=O(),38===n&&12===a&&(t[r]=1),!I(a);)$();return M(e,S)},ae=new WeakMap,oe=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ae.get(r))&&!n){ae.set(e,!0);for(var a=[],o=function(e,t){return L(function(e,t){var r=-1,n=44;do{switch(I(n)){case 0:38===n&&12===O()&&(t[r]=1),e[r]+=ne(S-1,t,r);break;case 2:e[r]+=N(n);break;case 4:if(44===n){e[++r]=58===O()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=d(n)}}while(n=$());return e}(z(e),t))}(t,a),i=r.props,s=0,c=0;s<o.length;s++)for(var l=0;l<i.length;l++,c++)e.props[c]=a[s]?o[s].replace(/&\f/g,i[l]):i[l]+" "+o[s]}}},ie=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function se(e,t){switch(function(e,t){return 45^g(e,0)?(((t<<2^g(e,0))<<2^g(e,1))<<2^g(e,2))<<2^g(e,3):0}(e,t)){case 5103:return W+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return W+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return W+e+B+e+q+e+e;case 6828:case 4268:return W+e+q+e+e;case 6165:return W+e+q+"flex-"+e+e;case 5187:return W+e+h(e,/(\w+).+(:[^]+)/,W+"box-$1$2"+q+"flex-$1$2")+e;case 5443:return W+e+q+"flex-item-"+h(e,/flex-|-self/,"")+e;case 4675:return W+e+q+"flex-line-pack"+h(e,/align-content|flex-|-self/,"")+e;case 5548:return W+e+q+h(e,"shrink","negative")+e;case 5292:return W+e+q+h(e,"basis","preferred-size")+e;case 6060:return W+"box-"+h(e,"-grow","")+W+e+q+h(e,"grow","positive")+e;case 4554:return W+h(e,/([^-])(transform)/g,"$1"+W+"$2")+e;case 6187:return h(h(h(e,/(zoom-|grab)/,W+"$1"),/(image-set)/,W+"$1"),e,"")+e;case 5495:case 3959:return h(e,/(image-set\([^]*)/,W+"$1$`$1");case 4968:return h(h(e,/(.+:)(flex-)?(.*)/,W+"box-pack:$3"+q+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+W+e+e;case 4095:case 3583:case 4068:case 2532:return h(e,/(.+)-inline(.+)/,W+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(b(e)-1-t>6)switch(g(e,t+1)){case 109:if(45!==g(e,t+4))break;case 102:return h(e,/(.+:)(.+)-([^]+)/,"$1"+W+"$2-$3$1"+B+(108==g(e,t+3)?"$3":"$2-$3"))+e;case 115:return~m(e,"stretch")?se(h(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==g(e,t+1))break;case 6444:switch(g(e,b(e)-3-(~m(e,"!important")&&10))){case 107:return h(e,":",":"+W)+e;case 101:return h(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+W+(45===g(e,14)?"inline-":"")+"box$3$1"+W+"$2$3$1"+q+"$2box$3")+e}break;case 5936:switch(g(e,t+11)){case 114:return W+e+q+h(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return W+e+q+h(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return W+e+q+h(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return W+e+q+e+e}return e}var ce=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case V:e.return=se(e.value,e.length);break;case X:return K([P(e,{value:h(e.value,"@","@"+W)})],n);case Y:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return K([P(e,{props:[h(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return K([P(e,{props:[h(t,/:(plac\w+)/,":"+W+"input-$1")]}),P(e,{props:[h(t,/:(plac\w+)/,":-moz-$1")]}),P(e,{props:[h(t,/:(plac\w+)/,q+"input-$1")]})],n)}return""}))}}],le=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var n,a,o=e.stylisPlugins||ce,i={},s=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)i[t[r]]=!0;s.push(e)}));var c,u,d,p,f=[Z,(p=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&p(e)})],h=(u=[oe,ie].concat(o,f),d=y(u),function(e,t,r,n){for(var a="",o=0;o<d;o++)a+=u[o](e,t,r,n)||"";return a});a=function(e,t,r,n){c=r,K(J(e?e+"{"+t.styles+"}":t.styles),h),n&&(m.inserted[t.name]=!0)};var m={key:t,sheet:new l({key:t,container:n,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:a};return m.sheet.hydrate(s),m},ue={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},de=/[A-Z]|^ms/g,pe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,fe=function(e){return 45===e.charCodeAt(1)},he=function(e){return null!=e&&"boolean"!=typeof e},me=i((function(e){return fe(e)?e:e.replace(de,"-$&").toLowerCase()})),ge=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(pe,(function(e,t,r){return be={name:t,styles:r,next:be},t}))}return 1===ue[e]||fe(e)||"number"!=typeof t||0===t?t:t+"px"};function ve(e,t,r){if(null==r)return"";var n=r;if(void 0!==n.__emotion_styles)return n;switch(typeof r){case"boolean":return"";case"object":var a=r;if(1===a.anim)return be={name:a.name,styles:a.styles,next:be},a.name;var o=r;if(void 0!==o.styles){var i=o.next;if(void 0!==i)for(;void 0!==i;)be={name:i.name,styles:i.styles,next:be},i=i.next;return o.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a<r.length;a++)n+=ve(e,t,r[a])+";";else for(var o in r){var i=r[o];if("object"!=typeof i){var s=i;null!=t&&void 0!==t[s]?n+=o+"{"+t[s]+"}":he(s)&&(n+=me(o)+":"+ge(o,s)+";")}else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var c=ve(e,t,i);switch(o){case"animation":case"animationName":n+=me(o)+":"+c+";";break;default:n+=o+"{"+c+"}"}}else for(var l=0;l<i.length;l++)he(i[l])&&(n+=me(o)+":"+ge(o,i[l])+";")}return n}(e,t,r);case"function":if(void 0!==e){var s=be,c=r(e);return be=s,ve(e,t,c)}}var l=r;if(null==t)return l;var u=t[l];return void 0!==u?u:l}var be,ye=/label:\s*([^\s;\n{]+)\s*(;|$)/g,ke=!!t.useInsertionEffect&&t.useInsertionEffect,xe=ke||function(e){return e()},we=(ke||t.useLayoutEffect,t.createContext("undefined"!=typeof HTMLElement?le({key:"css"}):null)),Ce=(we.Provider,function(e){return(0,t.forwardRef)((function(r,n){var a=(0,t.useContext)(we);return e(r,a,n)}))}),Se=t.createContext({}),_e=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},Ae=c,Ee=function(e){return"theme"!==e},Pe=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Ae:Ee},Te=function(e,t,r){var n;if(t){var a=t.shouldForwardProp;n=e.__emotion_forwardProp&&a?function(t){return e.__emotion_forwardProp(t)&&a(t)}:a}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},$e=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return _e(t,r,n),xe((function(){return function(e,t,r){_e(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var a=t;do{e.insert(t===a?"."+n:"",a,e.sheet,!0),a=a.next}while(void 0!==a)}}(t,r,n)})),null},Oe=function e(r,n){var a,i,s=r.__emotion_real===r,c=s&&r.__emotion_base||r;void 0!==n&&(a=n.label,i=n.target);var l=Te(r,n,s),u=l||Pe(c),d=!u("as");return function(){var p=arguments,f=s&&void 0!==r.__emotion_styles?r.__emotion_styles.slice(0):[];if(void 0!==a&&f.push("label:"+a+";"),null==p[0]||void 0===p[0].raw)f.push.apply(f,p);else{f.push(p[0][0]);for(var h=p.length,m=1;m<h;m++)f.push(p[m],p[0][m])}var g=Ce((function(e,r,n){var a,o,s,p,h=d&&e.as||c,m="",g=[],v=e;if(null==e.theme){for(var b in v={},e)v[b]=e[b];v.theme=t.useContext(Se)}"string"==typeof e.className?(a=r.registered,o=g,s=e.className,p="",s.split(" ").forEach((function(e){void 0!==a[e]?o.push(a[e]+";"):p+=e+" "})),m=p):null!=e.className&&(m=e.className+" ");var y=function(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,a="";be=void 0;var o=e[0];null==o||void 0===o.raw?(n=!1,a+=ve(r,t,o)):a+=o[0];for(var i=1;i<e.length;i++)a+=ve(r,t,e[i]),n&&(a+=o[i]);ye.lastIndex=0;for(var s,c="";null!==(s=ye.exec(a));)c+="-"+s[1];var l=function(e){for(var t,r=0,n=0,a=e.length;a>=4;++n,a-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(a){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(a)+c;return{name:l,styles:a,next:be}}(f.concat(g),r.registered,v);m+=r.key+"-"+y.name,void 0!==i&&(m+=" "+i);var k=d&&void 0===l?Pe(h):u,x={};for(var w in e)d&&"as"===w||k(w)&&(x[w]=e[w]);return x.className=m,n&&(x.ref=n),t.createElement(t.Fragment,null,t.createElement($e,{cache:r,serialized:y,isStringTag:"string"==typeof h}),t.createElement(h,x))}));return g.displayName=void 0!==a?a:"Styled("+("string"==typeof c?c:c.displayName||c.name||"Component")+")",g.defaultProps=r.defaultProps,g.__emotion_real=g,g.__emotion_base=c,g.__emotion_styles=f,g.__emotion_forwardProp=l,Object.defineProperty(g,"toString",{value:function(){return"."+i}}),g.withComponent=function(t,r){return e(t,o({},n,r,{shouldForwardProp:Te(g,r,!0)})).apply(void 0,f)},g}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Oe[e]=Oe(e)}));const Re=JSON.parse('{"UU":"latepoint/calendar"}');(0,e.registerBlockType)(Re.UU,{edit:function({attributes:e,setAttributes:o}){const i=(0,a.useBlockProps)(),s=(e,t)=>Array.from({length:t-e+1},((t,r)=>e+r)),c=Oe.div` box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.1); border-radius: 4px; border: 1px solid #ddd; border-bottom-color: #bbb; background-color: #fff; padding: 20px; max-width: 400px; `,l=Oe.div` border: 1px solid #ddd; border-right: none; background: #fbfbfb; `,u=Oe.div` font-weight: 500; margin-bottom: 10px; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; `,d=Oe.div` display: grid; grid-template-columns: repeat(7, 1fr); `,p=Oe.div` border-bottom: 1px solid #ddd; background: #f3f3f3; `,f=Oe.div` padding: 10px; text-align: center; border-right: 1px solid #ddd; `,h=Oe.div` padding: 5px; border-radius: 4px; background-color: #e1e1e1; `,m=Oe.div` padding: 3px; border-radius: 4px; background-color: #ecebeb; `,g=e=>(0,t.createElement)(t.Fragment,null,s(1,7).map((()=>(0,t.createElement)(f,null,"date"===e?(0,t.createElement)(h,null):(0,t.createElement)(m,null)))));return(0,t.createElement)("div",{...i},(0,t.createElement)(a.InspectorControls,null,(0,t.createElement)(r.Panel,null,(0,t.createElement)(r.PanelBody,{title:"Latepoint Calendar Settings"},(0,t.createElement)(r.TextControl,{label:"Caption",value:e.caption||"",onChange:e=>o({caption:e})}),(0,t.createElement)(r.TextControl,{label:(0,n.__)("Date","latepoint"),value:e.date||"",placeholder:"YYYY-MM-DD",onChange:e=>o({date:e})}),(0,t.createElement)(r.TextControl,{label:"Show Agents",placeholder:"Comma separated agent IDs",value:e.show_agents||"",onChange:e=>o({show_agents:e})}),(0,t.createElement)(r.TextControl,{label:"Show Services",placeholder:"Comma separated service IDs",value:e.show_services||"",onChange:e=>o({show_services:e})}),(0,t.createElement)(r.TextControl,{label:"Show Locations",placeholder:"Comma separated location IDs",value:e.show_locations||"",onChange:e=>o({show_locations:e})}),(0,t.createElement)(r.SelectControl,{label:(0,n.__)("View","latepoint"),value:e.view||"month",onChange:e=>o({view:e}),options:[{label:"Month",value:"month"},{label:"Week",value:"week"}]})))),(0,t.createElement)(c,null,(0,t.createElement)(u,null,e.caption),(0,t.createElement)(l,null,(0,t.createElement)(p,null,(0,t.createElement)(d,null,g("date"))),s(1,4).map((()=>(0,t.createElement)(d,null,g("text")))))))},save:function({attributes:e}){const r=a.useBlockProps.save();return(0,t.createElement)("div",{...r},e.caption)}})})();