Make WordPress Themes


Ignore:
Timestamp:
03/21/2024 06:42:31 PM (20 months ago)
Author:
themedropbox
Message:

New version of Blocksy - 2.0.33

Location:
blocksy/2.0.33
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • blocksy/2.0.33/static/bundle/blocks/blocks.js

    r221001 r221847  
    4747 * This source code is licensed under the MIT license found in the
    4848 * LICENSE file in the root directory of this source tree.
    49  */if("function"==typeof Symbol&&Symbol.for){var y=Symbol.for;n=y("react.element"),r=y("react.portal"),o=y("react.fragment"),i=y("react.strict_mode"),a=y("react.profiler"),l=y("react.provider"),c=y("react.context"),s=y("react.forward_ref"),u=y("react.suspense"),p=y("react.suspense_list"),d=y("react.memo"),f=y("react.lazy"),m=y("react.block"),g=y("react.server.block"),h=y("react.fundamental"),b=y("react.debug_trace_mode"),v=y("react.legacy_hidden")}function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case u:case p:return e;default:switch(e=e&&e.$$typeof){case c:case s:case f:case d:case l:return e;default:return t}}case r:return t}}}t.isContextConsumer=function(e){return w(e)===c}},2973:function(e,t,n){"use strict";e.exports=n(8359)},4823:function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var o=r(n(3366)),i=r(n(7462)),a=r(n(7363)),l=r(n(1533));let c,s,u,p,d,f=[],m=e=>"undefined"!=typeof window&&window.requestAnimationFrame(e),g=e=>"undefined"!=typeof window&&window.cancelAnimationFrame(e),h=()=>Date.now();const b=(e,t)=>s={fn:e,transform:t},v=e=>f=e,y=e=>c=e,w=e=>u=e,O=e=>p=e,_=e=>d=e;var E=Object.freeze({get bugfixes(){return c},get applyAnimatedValues(){return s},get colorNames(){return f},get requestFrame(){return m},get cancelFrame(){return g},get interpolation(){return u},get now(){return h},get defaultElement(){return p},get createAnimatedStyle(){return d},injectApplyAnimatedValues:b,injectColorNames:v,injectBugfixes:y,injectInterpolation:w,injectFrame:(e,t)=>{var n=[e,t];return m=n[0],g=n[1],n},injectNow:e=>h=e,injectDefaultElement:O,injectCreateAnimatedStyle:_});class P{attach(){}detach(){}getValue(){}getAnimatedValue(){return this.getValue()}addChild(e){}removeChild(e){}getChildren(){return[]}}const C=e=>Object.keys(e).map((t=>e[t]));class k extends P{constructor(){var e;super(...arguments),e=this,this.children=[],this.getChildren=()=>this.children,this.getPayload=function(t){return void 0===t&&(t=void 0),void 0!==t&&e.payload?e.payload[t]:e.payload||e}}addChild(e){0===this.children.length&&this.attach(),this.children.push(e)}removeChild(e){const t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()}}class j extends k{constructor(){super(...arguments),this.payload=[],this.getAnimatedValue=()=>this.getValue(),this.attach=()=>this.payload.forEach((e=>e instanceof P&&e.addChild(this))),this.detach=()=>this.payload.forEach((e=>e instanceof P&&e.removeChild(this)))}}class S extends k{constructor(){super(...arguments),this.payload={},this.getAnimatedValue=()=>this.getValue(!0),this.attach=()=>C(this.payload).forEach((e=>e instanceof P&&e.addChild(this))),this.detach=()=>C(this.payload).forEach((e=>e instanceof P&&e.removeChild(this)))}getValue(e){void 0===e&&(e=!1);const t={};for(const n in this.payload){const r=this.payload[n];(!e||r instanceof P)&&(t[n]=r instanceof P?r[e?"getAnimatedValue":"getValue"]():r)}return t}}class x extends S{constructor(e){super(),!(e=e||{}).transform||e.transform instanceof P||(e=s.transform(e)),this.payload=e}}const I={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199};class D{static create(e,t,n){if("function"==typeof e)return e;if(u&&e.output&&"string"==typeof e.output[0])return u(e);if(Array.isArray(e))return D.create({range:e,output:t,extrapolate:n||"extend"});let r=e.output,o=e.range||[0,1],i=e.easing||(e=>e),a="extend",l=e.map;void 0!==e.extrapolateLeft?a=e.extrapolateLeft:void 0!==e.extrapolate&&(a=e.extrapolate);let c="extend";return void 0!==e.extrapolateRight?c=e.extrapolateRight:void 0!==e.extrapolate&&(c=e.extrapolate),e=>{let t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,o);return function(e,t,n,r,o,i,a,l,c){let s=c?c(e):e;if(s<t){if("identity"===a)return s;"clamp"===a&&(s=t)}if(s>n){if("identity"===l)return s;"clamp"===l&&(s=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?s=-s:n===1/0?s-=t:s=(s-t)/(n-t);s=i(s),r===-1/0?s=-s:o===1/0?s+=r:s=s*(o-r)+r;return s}(e,o[t],o[t+1],r[t],r[t+1],i,a,c,l)}}}const N="[-+]?\\d*\\.?\\d+",T=N+"%";function A(){return"\\(\\s*("+Array.prototype.slice.call(arguments).join(")\\s*,\\s*(")+")\\s*\\)"}const R=new RegExp("rgb"+A(N,N,N)),M=new RegExp("rgba"+A(N,N,N,N)),B=new RegExp("hsl"+A(N,T,T)),F=new RegExp("hsla"+A(N,T,T,N)),L=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,z=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,H=/^#([0-9a-fA-F]{6})$/,V=/^#([0-9a-fA-F]{8})$/;function U(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function $(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=U(o,r,e+1/3),a=U(o,r,e),l=U(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function G(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function W(e){return(parseFloat(e)%360+360)%360/360}function q(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Z(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function K(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=H.exec(e))?parseInt(t[1]+"ff",16)>>>0:I.hasOwnProperty(e)?I[e]:(t=R.exec(e))?(G(t[1])<<24|G(t[2])<<16|G(t[3])<<8|255)>>>0:(t=M.exec(e))?(G(t[1])<<24|G(t[2])<<16|G(t[3])<<8|q(t[4]))>>>0:(t=L.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=V.exec(e))?parseInt(t[1],16)>>>0:(t=z.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=B.exec(e))?(255|$(W(t[1]),Z(t[2]),Z(t[3])))>>>0:(t=F.exec(e))?($(W(t[1]),Z(t[2]),Z(t[3]))|q(t[4]))>>>0:null}(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}const Y=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,X=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,J=new RegExp(`(${Object.keys(I).join("|")})`,"g");class Q extends j{constructor(e,t,n){super(),this.getValue=()=>this.calc(...this.payload.map((e=>e.getValue()))),this.updateConfig=(e,t)=>this.calc=D.create(e,t),this.interpolate=(e,t)=>new Q(this,e,t),this.payload=e instanceof j&&!e.updateConfig?e.payload:Array.isArray(e)?e:[e],this.calc=D.create(t,n)}}function ee(e,t){"function"==typeof e.update?t.add(e):e.getChildren().forEach((e=>ee(e,t)))}class te extends k{constructor(e){var t;super(),t=this,this.setValue=function(e,n){void 0===n&&(n=!0),t.value=e,n&&t.flush()},this.getValue=()=>this.value,this.updateStyles=()=>ee(this,this.animatedStyles),this.updateValue=e=>this.flush(this.value=e),this.interpolate=(e,t)=>new Q(this,e,t),this.value=e,this.animatedStyles=new Set,this.done=!1,this.startPosition=e,this.lastPosition=e,this.lastVelocity=void 0,this.lastTime=void 0,this.controller=void 0}flush(){0===this.animatedStyles.size&&this.updateStyles(),this.animatedStyles.forEach((e=>e.update()))}prepare(e){void 0===this.controller&&(this.controller=e),this.controller===e&&(this.startPosition=this.value,this.lastPosition=this.value,this.lastVelocity=e.isActive?this.lastVelocity:void 0,this.lastTime=e.isActive?this.lastTime:void 0,this.done=!1,this.animatedStyles.clear())}}class ne extends j{constructor(e){var t;super(),t=this,this.setValue=function(e,n){void 0===n&&(n=!0),Array.isArray(e)?e.length===t.payload.length&&e.forEach(((e,r)=>t.payload[r].setValue(e,n))):t.payload.forEach(((r,o)=>t.payload[o].setValue(e,n)))},this.getValue=()=>this.payload.map((e=>e.getValue())),this.interpolate=(e,t)=>new Q(this,e,t),this.payload=e.map((e=>new te(e)))}}function re(e,t){return null==e?t:e}function oe(e){return void 0!==e?Array.isArray(e)?e:[e]:[]}function ie(e,t){if(typeof e!=typeof t)return!1;if("string"==typeof e||"number"==typeof e)return e===t;let n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return void 0!==n||e===t}function ae(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"==typeof e?e(...n):e}function le(e){return Object.keys(e).map((t=>e[t]))}function ce(e){const t=function(e){return e.to,e.from,e.config,e.native,e.onStart,e.onRest,e.onFrame,e.children,e.reset,e.reverse,e.force,e.immediate,e.impl,e.inject,e.delay,e.attach,e.destroyed,e.interpolateTo,e.autoStart,e.ref,o(e,["to","from","config","native","onStart","onRest","onFrame","children","reset","reverse","force","immediate","impl","inject","delay","attach","destroyed","interpolateTo","autoStart","ref"])}(e),n=Object.keys(e).reduce(((n,r)=>void 0!==t[r]?n:i({},n,{[r]:e[r]})),{});return i({to:t},n)}function se(e,t){let n=t[0],r=t[1];return i({},e,{[n]:new(Array.isArray(r)?ne:te)(r)})}function ue(e){const t=e.from,n=e.to,r=e.native,o=Object.entries(i({},t,n));return r?o.reduce(se,{}):i({},t,n)}function pe(e,t){return t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e}const de=e=>"auto"===e;let fe={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const me=["Webkit","Ms","Moz","O"];function ge(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||fe.hasOwnProperty(e)&&fe[e]?(""+t).trim():t+"px"}fe=Object.keys(fe).reduce(((e,t)=>(me.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),fe);const he={};_((e=>new x(e))),O("div"),w((function(e){const t=e.output.map((e=>e.replace(X,K))).map((e=>e.replace(J,K))),n=t[0].match(Y).map((()=>[]));t.forEach((e=>{e.match(Y).forEach(((e,t)=>n[t].push(+e)))}));const r=t[0].match(Y).map(((t,r)=>D.create(i({},e,{output:n[r]}))));return e=>{let n=0;return t[0].replace(Y,(()=>r[n++](e))).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,((e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`))}})),v(I),y((function(e,t){const n=e.from,r=e.to,o=e.children;if(!le(r).some(de)&&!le(n).some(de))return;let c=o(ue(e));if(!c)return;Array.isArray(c)&&(c={type:"div",props:{children:c}});const s=c.props.style;return a.createElement(c.type,i({key:c.key?c.key:void 0},c.props,{style:i({},s,{position:"absolute",visibility:"hidden"}),ref:o=>{if(o){let a,c,s=l.findDOMNode(o),u=getComputedStyle(s);if("border-box"===u.boxSizing)a=s.offsetWidth,c=s.offsetHeight;else{const e=parseFloat(u.paddingLeft||0)+parseFloat(u.paddingRight||0),t=parseFloat(u.paddingTop||0)+parseFloat(u.paddingBottom||0),n=parseFloat(u.borderLeftWidth||0)+parseFloat(u.borderRightWidth||0),r=parseFloat(u.borderTopWidth||0)+parseFloat(u.borderBottomWidth||0);a=s.offsetWidth-e-n,c=s.offsetHeight-t-r}const p=((e,t)=>(n,r)=>{let o=r[0],a=r[1];return i({},n,{[o]:"auto"===a?~o.indexOf("height")?t:e:a})})(a,c);t(i({},e,{from:Object.entries(n).reduce(p,n),to:Object.entries(r).reduce(p,r)}))}}}))})),b(((e,t)=>{if(!e.nodeType||void 0===e.setAttribute)return!1;{const i=t.style,a=t.children,l=t.scrollTop,c=t.scrollLeft,s=o(t,["style","children","scrollTop","scrollLeft"]);void 0!==l&&(e.scrollTop=l),void 0!==c&&(e.scrollLeft=c),void 0!==a&&(e.textContent=a);for(let t in i)if(i.hasOwnProperty(t)){var n=0===t.indexOf("--"),r=ge(t,i[t],n);"float"===t&&(t="cssFloat"),n?e.style.setProperty(t,r):e.style[t]=r}for(let t in s){const n=he[t]||(he[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())));void 0!==e.getAttribute(n)&&e.setAttribute(n,s[t])}}}),(e=>e));let be=!1;const ve=new Set,ye=()=>{let e=h();for(let t of ve){let n=!0,r=!0;for(let o=0;o<t.configs.length;o++){let i,a,l=t.configs[o];for(let o=0;o<l.animatedValues.length;o++){let c=l.animatedValues[o];if(c.done)continue;let s=l.fromValues[o],u=l.toValues[o],p=c.lastPosition,d=u instanceof P,f=Array.isArray(l.initialVelocity)?l.initialVelocity[o]:l.initialVelocity;if(d&&(u=u.getValue()),l.immediate||!d&&!l.decay&&s===u)c.updateValue(u),c.done=!0;else if(l.delay&&e-t.startTime<l.delay)n=!1;else if(r=!1,"string"!=typeof s&&"string"!=typeof u){if(void 0!==l.duration)p=s+l.easing((e-t.startTime-l.delay)/l.duration)*(u-s),i=e>=t.startTime+l.delay+l.duration;else if(l.decay)p=s+f/(1-.998)*(1-Math.exp(-(1-.998)*(e-t.startTime))),i=Math.abs(c.lastPosition-p)<.1,i&&(u=p);else{a=void 0!==c.lastTime?c.lastTime:e,f=void 0!==c.lastVelocity?c.lastVelocity:l.initialVelocity,e>a+64&&(a=e);let t=Math.floor(e-a);for(let e=0;e<t;++e){f+=1*((-l.tension*(p-u)+-l.friction*f)/l.mass)/1e3,p+=1*f/1e3}let n=!(!l.clamp||0===l.tension)&&(s<u?p>u:p<u),r=Math.abs(f)<=l.precision,o=0===l.tension||Math.abs(u-p)<=l.precision;i=n||r&&o,c.lastVelocity=f,c.lastTime=e}d&&!l.toValues[o].done&&(i=!1),i?(c.value!==u&&(p=u),c.done=!0):n=!1,c.updateValue(p),c.lastPosition=p}else c.updateValue(u),c.done=!0}!t.props.onFrame&&t.props.native||(t.animatedProps[l.name]=l.interpolation.getValue())}!t.props.onFrame&&t.props.native||(!t.props.native&&t.onUpdate&&t.onUpdate(),t.props.onFrame&&t.props.onFrame(t.animatedProps)),n&&(ve.delete(t),t.debouncedOnEnd({finished:!0,noChange:r}))}ve.size?m(ye):be=!1},we=e=>{ve.has(e)&&ve.delete(e)};class Oe{constructor(e,t){void 0===t&&(t={native:!0,interpolateTo:!0,autoStart:!0}),this.getValues=()=>this.props.native?this.interpolations:this.animatedProps,this.dependents=new Set,this.isActive=!1,this.hasChanged=!1,this.props={},this.merged={},this.animations={},this.interpolations={},this.animatedProps={},this.configs=[],this.frame=void 0,this.startTime=void 0,this.lastTime=void 0,this.update(i({},e,t))}update(e){this.props=i({},this.props,e);let t=this.props.interpolateTo?ce(this.props):this.props,n=t.from,r=void 0===n?{}:n,o=t.to,a=void 0===o?{}:o,l=t.config,c=void 0===l?{}:l,s=t.delay,u=void 0===s?0:s,p=t.reverse,d=t.attach,m=t.reset,g=t.immediate,h=t.autoStart,b=t.ref;if(p){var v=[a,r];r=v[0],a=v[1]}this.hasChanged=!1;let y=d&&d(this),w=m?{}:this.merged;if(this.merged=i({},r,w,a),this.animations=Object.entries(this.merged).reduce(((e,t,n)=>{let o=t[0],a=t[1],l=!m&&e[o]||{};const s="number"==typeof a,p="string"==typeof a&&!a.startsWith("#")&&!/\d/.test(a)&&!f[a],d=!s&&!p&&Array.isArray(a);let h=void 0!==r[o]?r[o]:a,b=s||d||p?a:1,v=ae(c,o);if(y&&(b=y.animations[o].parent),void 0===v.decay&&ie(l.changes,a))return e;{let t,n;if(this.hasChanged=!0,s||p)t=n=l.parent||new te(h);else if(d)t=n=l.parent||new ne(h);else{const e=l.interpolation&&l.interpolation.calc(l.parent.value);l.parent?(t=l.parent,t.setValue(0,!1)):t=new te(0);const r={output:[void 0!==e?e:h,a]};l.interpolation?(n=l.interpolation,l.interpolation.updateConfig(r)):n=t.interpolate(r)}ae(g,o)&&t.setValue(a,!1);const r=oe(t.getPayload());return r.forEach((e=>e.prepare(this))),i({},e,{[o]:i({},l,{name:o,parent:t,interpolation:n,animatedValues:r,changes:a,fromValues:oe(t.getValue()),toValues:oe(y?b.getPayload():b),immediate:ae(g,o),delay:re(v.delay,u||0),initialVelocity:re(v.velocity,0),clamp:re(v.clamp,!1),precision:re(v.precision,.01),tension:re(v.tension,170),friction:re(v.friction,26),mass:re(v.mass,1),duration:v.duration,easing:re(v.easing,(e=>e)),decay:v.decay})})}}),this.animations),this.hasChanged){this.configs=le(this.animations),this.animatedProps={},this.interpolations={};for(let e in this.animations)this.interpolations[e]=this.animations[e].interpolation,this.animatedProps[e]=this.animations[e].interpolation.getValue()}for(var O=arguments.length,_=new Array(O>1?O-1:0),E=1;E<O;E++)_[E-1]=arguments[E];b||!h&&!_.length||this.start(..._);const P=_[0],C=_[1];return this.onEnd="function"==typeof P&&P,this.onUpdate=C,this.getValues()}start(e,t){var n;return this.startTime=h(),this.isActive&&this.stop(),this.isActive=!0,this.onEnd="function"==typeof e&&e,this.onUpdate=t,this.props.onStart&&this.props.onStart(),n=this,ve.has(n)||(ve.add(n),be||m(ye),be=!0),new Promise((e=>this.resolve=e))}stop(e){void 0===e&&(e=!1),e&&le(this.animations).forEach((e=>e.changes=void 0)),this.debouncedOnEnd({finished:e})}destroy(){we(this),this.props={},this.merged={},this.animations={},this.interpolations={},this.animatedProps={},this.configs=[]}debouncedOnEnd(e){we(this),this.isActive=!1;const t=this.onEnd;this.onEnd=null,t&&t(e),this.resolve&&this.resolve(),this.resolve=null}}class _e extends S{constructor(e,t){super(),e.style&&(e=i({},e,{style:d(e.style)})),this.payload=e,this.update=t,this.attach()}}function Ee(e){class t extends a.Component{constructor(e){super(),this.callback=()=>{if(this.node){!1===s.fn(this.node,this.propsAnimated.getAnimatedValue(),this)&&this.forceUpdate()}},this.attachProps(e)}componentWillUnmount(){this.propsAnimated&&this.propsAnimated.detach()}setNativeProps(e){!1===s.fn(this.node,e,this)&&this.forceUpdate()}attachProps(e){e.forwardRef;let t=o(e,["forwardRef"]);const n=this.propsAnimated;this.propsAnimated=new _e(t,this.callback),n&&n.detach()}shouldComponentUpdate(e){const t=e.style,n=o(e,["style"]),r=this.props,i=r.style;return(!ie(o(r,["style"]),n)||!ie(i,t))&&(this.attachProps(e),!0)}render(){const t=this.propsAnimated.getValue(),n=(t.scrollTop,t.scrollLeft,o(t,["scrollTop","scrollLeft"]));return a.createElement(e,i({},n,{ref:e=>this.node=pe(e,this.props.forwardRef)}))}}return a.forwardRef(((e,n)=>a.createElement(t,i({},e,{forwardRef:n}))))}const Pe={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}};class Ce extends a.Component{constructor(){super(...arguments),this.state={lastProps:{from:{},to:{}},propsChanged:!1,internal:!1},this.controller=new Oe(null,null),this.didUpdate=!1,this.didInject=!1,this.finished=!0,this.start=()=>{this.finished=!1;let e=this.mounted;this.controller.start((t=>this.finish(i({},t,{wasMounted:e}))),this.update)},this.stop=()=>this.controller.stop(!0),this.update=()=>this.mounted&&this.setState({internal:!0}),this.finish=e=>{let t=e.finished,n=e.noChange,r=e.wasMounted;this.finished=!0,this.mounted&&t&&(!this.props.onRest||!r&&n||this.props.onRest(this.controller.merged),this.mounted&&this.didInject&&(this.afterInject=ue(this.props),this.setState({internal:!0})),this.mounted&&(this.didInject||this.props.after)&&this.setState({internal:!0}),this.didInject=!1)}}componentDidMount(){this.componentDidUpdate(),this.mounted=!0}componentWillUnmount(){this.mounted=!1,this.stop()}static getDerivedStateFromProps(e,t){let n=t.internal,r=t.lastProps;const o=e.from,i=e.to,a=e.reset,l=e.force;return{propsChanged:!ie(i,r.to)||!ie(o,r.from)||a&&!n||l&&!n,lastProps:e,internal:!1}}render(){const e=this.props.children,t=this.state.propsChanged;if(this.props.inject&&t&&!this.injectProps){const e=this.props.inject(this.props,(e=>{this.injectProps=e,this.setState({internal:!0})}));if(e)return e}(this.injectProps||t)&&(this.didInject=!1,this.injectProps?(this.controller.update(this.injectProps),this.didInject=!0):t&&this.controller.update(this.props),this.didUpdate=!0,this.afterInject=void 0,this.injectProps=void 0);let n=i({},this.controller.getValues(),this.afterInject);return this.finished&&(n=i({},n,this.props.after)),Object.keys(n).length?e(n):null}componentDidUpdate(){this.didUpdate&&this.start(),this.didUpdate=!1}}Ce.defaultProps={from:{},to:{},config:Pe.default,native:!1,immediate:!1,reset:!1,force:!1,inject:c};class ke extends a.PureComponent{constructor(){super(...arguments),this.first=!0,this.instances=new Set,this.hook=(e,t,n,r)=>(this.instances.add(e),(r?t===n-1:0===t)?void 0:Array.from(this.instances)[r?t+1:t-1])}render(){const e=this.props,t=e.items,n=e.children,r=e.from,l=void 0===r?{}:r,c=e.initial,s=e.reverse,u=e.keys,p=e.delay,d=e.onRest,f=o(e,["items","children","from","initial","reverse","keys","delay","onRest"]),m=oe(t);return oe(m).map(((e,t)=>a.createElement(Ce,i({onRest:0===t?d:null,key:"function"==typeof u?u(e):oe(u)[t],from:this.first&&void 0!==c?c||{}:l},f,{delay:0===t&&p||void 0,attach:e=>this.hook(e,t,m.length,s),children:r=>{const o=n(e,t);return o?o(r):null}}))))}componentDidUpdate(e){this.first=!1,e.items!==this.props.items&&this.instances.clear()}}ke.defaultProps={keys:e=>e};const je="__default";class Se extends a.PureComponent{constructor(){var e;super(...arguments),e=this,this.guid=0,this.state={props:{},resolve:()=>null,last:!0,index:0},this.next=function(t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=0),e.running=!0,new Promise((o=>{e.mounted&&e.setState((e=>({props:t,resolve:o,last:n,index:r})),(()=>e.running=!1))}))}}componentDidMount(){this.mounted=!0,this.componentDidUpdate({})}componentWillUnmount(){this.mounted=!1}componentDidUpdate(e){var t=this;const n=this.props,r=n.states,o=n.filter,i=n.state;if((e.state!==this.props.state||this.props.reset&&!this.running||!ie(r[i],e.states[e.state]))&&r&&i&&r[i]){const e=++this.guid,n=r[i];if(n)if(Array.isArray(n)){let t=Promise.resolve();for(let r=0;r<n.length;r++){let i=r,a=n[i],l=i===n.length-1;t=t.then((()=>e===this.guid&&this.next(o(a),l,i)))}}else if("function"==typeof n){let r=0;n((function(n,i){return void 0===i&&(i=!1),e===t.guid&&t.next(o(n),i,r++)}),(()=>m((()=>this.instance&&this.instance.stop()))),this.props)}else this.next(o(r[i]))}}render(){const e=this.state,t=e.props,n=e.resolve,r=e.last,l=e.index;if(!t||0===Object.keys(t).length)return null;let c=this.props,s=(c.state,c.filter,c.states,c.config),u=c.primitive,p=c.onRest,d=c.forwardRef,f=o(c,["state","filter","states","config","primitive","onRest","forwardRef"]);return Array.isArray(s)&&(s=s[l]),a.createElement(u,i({ref:e=>this.instance=pe(e,d),config:s},f,t,{onRest:e=>{n(e),p&&r&&p(e)}}))}}Se.defaultProps={state:je};const xe=a.forwardRef(((e,t)=>a.createElement(Se,i({},e,{forwardRef:t}))));xe.create=e=>function(t,n){return void 0===n&&(n=e=>e),("function"==typeof t||Array.isArray(t))&&(t={[je]:t}),r=>a.createElement(Se,i({primitive:e,states:t,filter:n},r))},xe.Spring=e=>xe.create(Ce)(e,ce),xe.Trail=e=>xe.create(ke)(e,ce);let Ie=0,De=e=>{let t=e.items,n=e.keys,r=o(e,["items","keys"]);return t=oe(void 0!==t?t:null),n="function"==typeof n?t.map(n):oe(n),i({items:t,keys:n.map((e=>String(e)))},r)};class Ne extends a.PureComponent{componentDidMount(){this.mounted=!0}componentWillUnmount(){this.mounted=!1}constructor(e){super(e),this.destroyItem=(e,t,n)=>r=>{const o=this.props,i=o.onRest,a=o.onDestroyed;this.mounted&&(a&&a(e),this.setState((e=>({deleted:e.deleted.filter((e=>e.key!==t))}))),i&&i(e,n,r))},this.state={first:!0,transitions:[],current:{},deleted:[],prevProps:e}}static getDerivedStateFromProps(e,t){let n=t.first,r=t.prevProps,a=o(t,["first","prevProps"]),l=De(e),c=l.items,s=l.keys,u=l.initial,p=l.from,d=l.enter,f=l.leave,m=l.update,g=l.trail,h=void 0===g?0:g,b=l.unique,v=l.config,y=De(r),w=y.keys,O=y.items,_=i({},a.current),E=[...a.deleted],P=Object.keys(_),C=new Set(P),k=new Set(s),j=s.filter((e=>!C.has(e))),S=a.transitions.filter((e=>!e.destroyed&&!k.has(e.originalKey))).map((e=>e.originalKey)),x=s.filter((e=>C.has(e))),I=0;j.forEach((e=>{b&&E.find((t=>t.originalKey===e))&&(E=E.filter((t=>t.originalKey!==e)));const t=s.indexOf(e),r=c[t],o="enter";_[e]={state:o,originalKey:e,key:b?String(e):Ie++,item:r,trail:I+=h,config:ae(v,r,o),from:ae(n&&void 0!==u?u||{}:p,r),to:ae(d,r)}})),S.forEach((e=>{const t=w.indexOf(e),n=O[t],r="leave";E.push(i({},_[e],{state:r,destroyed:!0,left:w[Math.max(0,t-1)],right:w[Math.min(w.length,t+1)],trail:I+=h,config:ae(v,n,r),to:ae(f,n)})),delete _[e]})),x.forEach((e=>{const t=s.indexOf(e),n=c[t],r="update";_[e]=i({},_[e],{item:n,state:r,trail:I+=h,config:ae(v,n,r),to:ae(m,n)})}));let D=s.map((e=>_[e]));return E.forEach((e=>{let t,n=e.left,r=e.right,i=o(e,["left","right"]);-1!==(t=D.findIndex((e=>e.originalKey===n)))&&(t+=1),-1===t&&(t=D.findIndex((e=>e.originalKey===r))),-1===t&&(t=E.findIndex((e=>e.originalKey===n))),-1===t&&(t=E.findIndex((e=>e.originalKey===r))),t=Math.max(0,t),D=[...D.slice(0,t),i,...D.slice(t)]})),{first:n&&0===j.length,transitions:D,current:_,deleted:E,prevProps:e}}render(){const e=this.props,t=(e.initial,e.from,e.enter,e.leave,e.update,e.onDestroyed,e.keys,e.items,e.onFrame),n=e.onRest,r=e.onStart,l=(e.trail,e.config,e.children),c=(e.unique,e.reset),s=o(e,["initial","from","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","trail","config","children","unique","reset"]);return this.state.transitions.map(((e,o)=>{let u=e.state,p=e.key,d=e.item,f=e.from,m=e.to,g=e.trail,h=e.config,b=e.destroyed;return a.createElement(xe,i({reset:c&&"enter"===u,primitive:Ce,state:u,filter:ce,states:{[u]:m},key:p,onRest:b?this.destroyItem(d,p,u):n&&(e=>n(d,u,e)),onStart:r&&(()=>r(d,u)),onFrame:t&&(e=>t(d,u,e)),delay:g,config:h},s,{from:f,children:e=>{const t=l(d,u,o);return t?t(e):null}}))}))}}Ne.defaultProps={keys:e=>e,unique:!1,reset:!1};const Te=["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"].reduce(((e,t)=>(e[t]=Ee(t),e)),Ee);t.uT=Ne},3697:function(e,t,n){"use strict";var r=n(5972).functionsHaveConfigurableNames(),o=Object,i=TypeError;e.exports=function(){if(null!=this&&this!==o(this))throw new i("RegExp.prototype.flags getter called on non-object");var e="";return this.hasIndices&&(e+="d"),this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.dotAll&&(e+="s"),this.unicode&&(e+="u"),this.unicodeSets&&(e+="v"),this.sticky&&(e+="y"),e},r&&Object.defineProperty&&Object.defineProperty(e.exports,"name",{value:"get flags"})},2847:function(e,t,n){"use strict";var r=n(4289),o=n(5559),i=n(3697),a=n(1721),l=n(2753),c=o(a());r(c,{getPolyfill:a,implementation:i,shim:l}),e.exports=c},1721:function(e,t,n){"use strict";var r=n(3697),o=n(4289).supportsDescriptors,i=Object.getOwnPropertyDescriptor;e.exports=function(){if(o&&"gim"===/a/gim.flags){var e=i(RegExp.prototype,"flags");if(e&&"function"==typeof e.get&&"boolean"==typeof RegExp.prototype.dotAll&&"boolean"==typeof RegExp.prototype.hasIndices){var t="",n={};if(Object.defineProperty(n,"hasIndices",{get:function(){t+="d"}}),Object.defineProperty(n,"sticky",{get:function(){t+="y"}}),"dy"===t)return e.get}}return r}},2753:function(e,t,n){"use strict";var r=n(4289).supportsDescriptors,o=n(1721),i=Object.getOwnPropertyDescriptor,a=Object.defineProperty,l=TypeError,c=Object.getPrototypeOf,s=/a/;e.exports=function(){if(!r||!c)throw new l("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=o(),t=c(s),n=i(t,"flags");return n&&n.get===e||a(t,"flags",{configurable:!0,enumerable:!1,get:e}),e}},6826: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("|"),r=new RegExp(n,"g"),o=new RegExp(n,"");function i(e){return t[e]}var a=function(e){return e.replace(r,i)};e.exports=a,e.exports.has=function(e){return!!e.match(o)},e.exports.remove=a},6399:function(e){e.exports=function(e,t,n){return function(r){if(e[0]===e[1]||t[0]===t[1])return t[0];var o=(t[1]-t[0])/(e[1]-e[0]),i=t[0]+o*(r-e[0]);return n?Math.min(t[1],Math.max(t[0],i)):i}}},8975:function(e,t,n){var r;!function(){"use strict";var o={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function i(e){return function(e,t){var n,r,a,l,c,s,u,p,d,f=1,m=e.length,g="";for(r=0;r<m;r++)if("string"==typeof e[r])g+=e[r];else if("object"==typeof e[r]){if((l=e[r]).keys)for(n=t[f],a=0;a<l.keys.length;a++){if(null==n)throw new Error(i('[sprintf] Cannot access property "%s" of undefined value "%s"',l.keys[a],l.keys[a-1]));n=n[l.keys[a]]}else n=l.param_no?t[l.param_no]:t[f++];if(o.not_type.test(l.type)&&o.not_primitive.test(l.type)&&n instanceof Function&&(n=n()),o.numeric_arg.test(l.type)&&"number"!=typeof n&&isNaN(n))throw new TypeError(i("[sprintf] expecting number but found %T",n));switch(o.number.test(l.type)&&(p=n>=0),l.type){case"b":n=parseInt(n,10).toString(2);break;case"c":n=String.fromCharCode(parseInt(n,10));break;case"d":case"i":n=parseInt(n,10);break;case"j":n=JSON.stringify(n,null,l.width?parseInt(l.width):0);break;case"e":n=l.precision?parseFloat(n).toExponential(l.precision):parseFloat(n).toExponential();break;case"f":n=l.precision?parseFloat(n).toFixed(l.precision):parseFloat(n);break;case"g":n=l.precision?String(Number(n.toPrecision(l.precision))):parseFloat(n);break;case"o":n=(parseInt(n,10)>>>0).toString(8);break;case"s":n=String(n),n=l.precision?n.substring(0,l.precision):n;break;case"t":n=String(!!n),n=l.precision?n.substring(0,l.precision):n;break;case"T":n=Object.prototype.toString.call(n).slice(8,-1).toLowerCase(),n=l.precision?n.substring(0,l.precision):n;break;case"u":n=parseInt(n,10)>>>0;break;case"v":n=n.valueOf(),n=l.precision?n.substring(0,l.precision):n;break;case"x":n=(parseInt(n,10)>>>0).toString(16);break;case"X":n=(parseInt(n,10)>>>0).toString(16).toUpperCase()}o.json.test(l.type)?g+=n:(!o.number.test(l.type)||p&&!l.sign?d="":(d=p?"+":"-",n=n.toString().replace(o.sign,"")),s=l.pad_char?"0"===l.pad_char?"0":l.pad_char.charAt(1):" ",u=l.width-(d+n).length,c=l.width&&u>0?s.repeat(u):"",g+=l.align?d+n+c:"0"===s?d+c+n:c+d+n)}return g}(function(e){if(l[e])return l[e];var t,n=e,r=[],i=0;for(;n;){if(null!==(t=o.text.exec(n)))r.push(t[0]);else if(null!==(t=o.modulo.exec(n)))r.push("%");else{if(null===(t=o.placeholder.exec(n)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){i|=1;var a=[],c=t[2],s=[];if(null===(s=o.key.exec(c)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(a.push(s[1]);""!==(c=c.substring(s[0].length));)if(null!==(s=o.key_access.exec(c)))a.push(s[1]);else{if(null===(s=o.index_access.exec(c)))throw new SyntaxError("[sprintf] failed to parse named argument key");a.push(s[1])}t[2]=a}else i|=2;if(3===i)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");r.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}n=n.substring(t[0].length)}return l[e]=r}(e),arguments)}function a(e,t){return i.apply(null,[e].concat(t||[]))}var l=Object.create(null);i,a,"undefined"!=typeof window&&(window.sprintf=i,window.vsprintf=a,void 0===(r=function(){return{sprintf:i,vsprintf:a}}.call(t,n,t,e))||(e.exports=r))}()},4760:function(e){var t=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],n=t.join(","),r="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;function o(e,t){t=t||{};var o,a,l,u=[],d=[],f=new p(e.ownerDocument||e),m=e.querySelectorAll(n);for(t.includeContainer&&r.call(e,n)&&(m=Array.prototype.slice.apply(m)).unshift(e),o=0;o<m.length;o++)i(a=m[o],f)&&(0===(l=c(a))?u.push(a):d.push({documentOrder:o,tabIndex:l,node:a}));return d.sort(s).map((function(e){return e.node})).concat(u)}function i(e,t){return!(!a(e,t)||function(e){return function(e){return u(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t=e.ownerDocument.querySelectorAll('input[type="radio"][name="'+e.name+'"]'),n=function(e){for(var t=0;t<e.length;t++)if(e[t].checked)return e[t]}(t);return!n||n===e}(e)}(e)||c(e)<0)}function a(e,t){return t=t||new p(e.ownerDocument||e),!(e.disabled||function(e){return u(e)&&"hidden"===e.type}(e)||t.isUntouchable(e))}o.isTabbable=function(e,t){if(!e)throw new Error("No node provided");return!1!==r.call(e,n)&&i(e,t)},o.isFocusable=function(e,t){if(!e)throw new Error("No node provided");return!1!==r.call(e,l)&&a(e,t)};var l=t.concat("iframe").join(",");function c(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?function(e){return"true"===e.contentEditable}(e)?0:e.tabIndex:t}function s(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex}function u(e){return"INPUT"===e.tagName}function p(e){this.doc=e,this.cache=[]}p.prototype.hasDisplayNone=function(e,t){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var n=function(e,t){for(var n=0,r=e.length;n<r;n++)if(t(e[n]))return e[n]}(this.cache,(function(t){return t===e}));if(n)return n[1];var r=!1;return"none"===(t=t||this.doc.defaultView.getComputedStyle(e)).display?r=!0:e.parentNode&&(r=this.hasDisplayNone(e.parentNode)),this.cache.push([e,r]),r},p.prototype.isUntouchable=function(e){if(e===this.doc.documentElement)return!1;var t=this.doc.defaultView.getComputedStyle(e);return!!this.hasDisplayNone(e,t)||"hidden"===t.visibility},e.exports=o},1742:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},5933:function(e,t,n){var r;!function(){function o(e,t,n){return e.call.apply(e.bind,arguments)}function i(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function a(e,t,n){return(a=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?o:i).apply(null,arguments)}var l=Date.now||function(){return+new Date};function c(e,t){this.a=e,this.o=t||e,this.c=this.o.document}var s=!!window.FontFace;function u(e,t,n,r){if(t=e.c.createElement(t),n)for(var o in n)n.hasOwnProperty(o)&&("style"==o?t.style.cssText=n[o]:t.setAttribute(o,n[o]));return r&&t.appendChild(e.c.createTextNode(r)),t}function p(e,t,n){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(n,e.lastChild)}function d(e){e.parentNode&&e.parentNode.removeChild(e)}function f(e,t,n){t=t||[],n=n||[];for(var r=e.className.split(/\s+/),o=0;o<t.length;o+=1){for(var i=!1,a=0;a<r.length;a+=1)if(t[o]===r[a]){i=!0;break}i||r.push(t[o])}for(t=[],o=0;o<r.length;o+=1){for(i=!1,a=0;a<n.length;a+=1)if(r[o]===n[a]){i=!0;break}i||t.push(r[o])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function m(e,t){for(var n=e.className.split(/\s+/),r=0,o=n.length;r<o;r++)if(n[r]==t)return!0;return!1}function g(e,t,n){function r(){l&&o&&i&&(l(a),l=null)}t=u(e,"link",{rel:"stylesheet",href:t,media:"all"});var o=!1,i=!0,a=null,l=n||null;s?(t.onload=function(){o=!0,r()},t.onerror=function(){o=!0,a=Error("Stylesheet failed to load"),r()}):setTimeout((function(){o=!0,r()}),0),p(e,"head",t)}function h(e,t,n,r){var o=e.c.getElementsByTagName("head")[0];if(o){var i=u(e,"script",{src:t}),a=!1;return i.onload=i.onreadystatechange=function(){a||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(a=!0,n&&n(null),i.onload=i.onreadystatechange=null,"HEAD"==i.parentNode.tagName&&o.removeChild(i))},o.appendChild(i),setTimeout((function(){a||(a=!0,n&&n(Error("Script load timeout")))}),r||5e3),i}return null}function b(){this.a=0,this.c=null}function v(e){return e.a++,function(){e.a--,w(e)}}function y(e,t){e.c=t,w(e)}function w(e){0==e.a&&e.c&&(e.c(),e.c=null)}function O(e){this.a=e||"-"}function _(e,t){this.c=e,this.f=4,this.a="n";var n=(t||"n4").match(/^([nio])([1-9])$/i);n&&(this.a=n[1],this.f=parseInt(n[2],10))}function E(e){var t=[];e=e.split(/,\s*/);for(var n=0;n<e.length;n++){var r=e[n].replace(/['"]/g,"");-1!=r.indexOf(" ")||/^\d/.test(r)?t.push("'"+r+"'"):t.push(r)}return t.join(",")}function P(e){return e.a+e.f}function C(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function k(e){var t=4,n="n",r=null;return e&&((r=e.match(/(normal|oblique|italic)/i))&&r[1]&&(n=r[1].substr(0,1).toLowerCase()),(r=e.match(/([1-9]00|normal|bold)/i))&&r[1]&&(/bold/i.test(r[1])?t=7:/[1-9]00/.test(r[1])&&(t=parseInt(r[1].substr(0,1),10)))),n+t}function j(e,t){this.c=e,this.f=e.o.document.documentElement,this.h=t,this.a=new O("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function S(e){if(e.g){var t=m(e.f,e.a.c("wf","active")),n=[],r=[e.a.c("wf","loading")];t||n.push(e.a.c("wf","inactive")),f(e.f,n,r)}x(e,"inactive")}function x(e,t,n){e.j&&e.h[t]&&(n?e.h[t](n.c,P(n)):e.h[t]())}function I(){this.c={}}function D(e,t){this.c=e,this.f=t,this.a=u(this.c,"span",{"aria-hidden":"true"},this.f)}function N(e){p(e.c,"body",e.a)}function T(e){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+E(e.c)+";font-style:"+C(e)+";font-weight:"+e.f+"00;"}function A(e,t,n,r,o,i){this.g=e,this.j=t,this.a=r,this.c=n,this.f=o||3e3,this.h=i||void 0}function R(e,t,n,r,o,i,a){this.v=e,this.B=t,this.c=n,this.a=r,this.s=a||"BESbswy",this.f={},this.w=o||3e3,this.u=i||null,this.m=this.j=this.h=this.g=null,this.g=new D(this.c,this.s),this.h=new D(this.c,this.s),this.j=new D(this.c,this.s),this.m=new D(this.c,this.s),e=T(e=new _(this.a.c+",serif",P(this.a))),this.g.a.style.cssText=e,e=T(e=new _(this.a.c+",sans-serif",P(this.a))),this.h.a.style.cssText=e,e=T(e=new _("serif",P(this.a))),this.j.a.style.cssText=e,e=T(e=new _("sans-serif",P(this.a))),this.m.a.style.cssText=e,N(this.g),N(this.h),N(this.j),N(this.m)}O.prototype.c=function(e){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.a)},A.prototype.start=function(){var e=this.c.o.document,t=this,n=l(),r=new Promise((function(r,o){!function i(){l()-n>=t.f?o():e.fonts.load(function(e){return C(e)+" "+e.f+"00 300px "+E(e.c)}(t.a),t.h).then((function(e){1<=e.length?r():setTimeout(i,25)}),(function(){o()}))}()})),o=null,i=new Promise((function(e,n){o=setTimeout(n,t.f)}));Promise.race([i,r]).then((function(){o&&(clearTimeout(o),o=null),t.g(t.a)}),(function(){t.j(t.a)}))};var M={D:"serif",C:"sans-serif"},B=null;function F(){if(null===B){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);B=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return B}function L(e,t,n){for(var r in M)if(M.hasOwnProperty(r)&&t===e.f[M[r]]&&n===e.f[M[r]])return!0;return!1}function z(e){var t,n=e.g.a.offsetWidth,r=e.h.a.offsetWidth;(t=n===e.f.serif&&r===e.f["sans-serif"])||(t=F()&&L(e,n,r)),t?l()-e.A>=e.w?F()&&L(e,n,r)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?H(e,e.v):H(e,e.B):function(e){setTimeout(a((function(){z(this)}),e),50)}(e):H(e,e.v)}function H(e,t){setTimeout(a((function(){d(this.g.a),d(this.h.a),d(this.j.a),d(this.m.a),t(this.a)}),e),0)}function V(e,t,n){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=n}R.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=l(),z(this)};var U=null;function $(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&f(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),x(e,"active")):S(e.a))}function G(e){this.j=e,this.a=new I,this.h=0,this.f=this.g=!0}function W(e,t,n,r,o){var i=0==--e.h;(e.f||e.g)&&setTimeout((function(){var e=o||null,l=r||{};if(0===n.length&&i)S(t.a);else{t.f+=n.length,i&&(t.j=i);var c,s=[];for(c=0;c<n.length;c++){var u=n[c],p=l[u.c],d=t.a,m=u;if(d.g&&f(d.f,[d.a.c("wf",m.c,P(m).toString(),"loading")]),x(d,"fontloading",m),d=null,null===U)if(window.FontFace){m=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent);var g=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);U=m?42<parseInt(m[1],10):!g}else U=!1;d=U?new A(a(t.g,t),a(t.h,t),t.c,u,t.s,p):new R(a(t.g,t),a(t.h,t),t.c,u,t.s,e,p),s.push(d)}for(c=0;c<s.length;c++)s[c].start()}}),0)}function q(e,t){this.c=e,this.a=t}function Z(e,t){this.c=e,this.a=t}function K(e,t){this.c=e||Y,this.a=[],this.f=[],this.g=t||""}V.prototype.g=function(e){var t=this.a;t.g&&f(t.f,[t.a.c("wf",e.c,P(e).toString(),"active")],[t.a.c("wf",e.c,P(e).toString(),"loading"),t.a.c("wf",e.c,P(e).toString(),"inactive")]),x(t,"fontactive",e),this.m=!0,$(this)},V.prototype.h=function(e){var t=this.a;if(t.g){var n=m(t.f,t.a.c("wf",e.c,P(e).toString(),"active")),r=[],o=[t.a.c("wf",e.c,P(e).toString(),"loading")];n||r.push(t.a.c("wf",e.c,P(e).toString(),"inactive")),f(t.f,r,o)}x(t,"fontinactive",e),$(this)},G.prototype.load=function(e){this.c=new c(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,function(e,t,n){var r=[],o=n.timeout;!function(e){e.g&&f(e.f,[e.a.c("wf","loading")]),x(e,"loading")}(t);r=function(e,t,n){var r,o=[];for(r in t)if(t.hasOwnProperty(r)){var i=e.c[r];i&&o.push(i(t[r],n))}return o}(e.a,n,e.c);var i=new V(e.c,t,o);for(e.h=r.length,t=0,n=r.length;t<n;t++)r[t].load((function(t,n,r){W(e,i,t,n,r)}))}(this,new j(this.c,e),e)},q.prototype.load=function(e){function t(){if(i["__mti_fntLst"+r]){var n,o=i["__mti_fntLst"+r](),a=[];if(o)for(var l=0;l<o.length;l++){var c=o[l].fontfamily;null!=o[l].fontStyle&&null!=o[l].fontWeight?(n=o[l].fontStyle+o[l].fontWeight,a.push(new _(c,n))):a.push(new _(c))}e(a)}else setTimeout((function(){t()}),50)}var n=this,r=n.a.projectId,o=n.a.version;if(r){var i=n.c.o;h(this.c,(n.a.api||"https://fast.fonts.net/jsapi")+"/"+r+".js"+(o?"?v="+o:""),(function(o){o?e([]):(i["__MonotypeConfiguration__"+r]=function(){return n.a},t())})).id="__MonotypeAPIScript__"+r}else e([])},Z.prototype.load=function(e){var t,n,r=this.a.urls||[],o=this.a.families||[],i=this.a.testStrings||{},a=new b;for(t=0,n=r.length;t<n;t++)g(this.c,r[t],v(a));var l=[];for(t=0,n=o.length;t<n;t++)if((r=o[t].split(":"))[1])for(var c=r[1].split(","),s=0;s<c.length;s+=1)l.push(new _(r[0],c[s]));else l.push(new _(r[0]));y(a,(function(){e(l,i)}))};var Y="https://fonts.googleapis.com/css";function X(e){this.f=e,this.a=[],this.c={}}var J={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},Q={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},ee={i:"i",italic:"i",n:"n",normal:"n"},te=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function ne(e,t){this.c=e,this.a=t}var re={Arimo:!0,Cousine:!0,Tinos:!0};function oe(e,t){this.c=e,this.a=t}function ie(e,t){this.c=e,this.f=t,this.a=[]}ne.prototype.load=function(e){var t=new b,n=this.c,r=new K(this.a.api,this.a.text),o=this.a.families;!function(e,t){for(var n=t.length,r=0;r<n;r++){var o=t[r].split(":");3==o.length&&e.f.push(o.pop());var i="";2==o.length&&""!=o[1]&&(i=":"),e.a.push(o.join(i))}}(r,o);var i=new X(o);!function(e){for(var t=e.f.length,n=0;n<t;n++){var r=e.f[n].split(":"),o=r[0].replace(/\+/g," "),i=["n4"];if(2<=r.length){var a;if(a=[],l=r[1])for(var l,c=(l=l.split(",")).length,s=0;s<c;s++){var u;if((u=l[s]).match(/^[\w-]+$/))if(null==(p=te.exec(u.toLowerCase())))u="";else{if(u=null==(u=p[2])||""==u?"n":ee[u],null==(p=p[1])||""==p)p="4";else var p=Q[p]||(isNaN(p)?"4":p.substr(0,1));u=[u,p].join("")}else u="";u&&a.push(u)}0<a.length&&(i=a),3==r.length&&(a=[],0<(r=(r=r[2])?r.split(","):a).length&&(r=J[r[0]])&&(e.c[o]=r))}for(e.c[o]||(r=J[o])&&(e.c[o]=r),r=0;r<i.length;r+=1)e.a.push(new _(o,i[r]))}}(i),g(n,function(e){if(0==e.a.length)throw Error("No fonts to load!");if(-1!=e.c.indexOf("kit="))return e.c;for(var t=e.a.length,n=[],r=0;r<t;r++)n.push(e.a[r].replace(/ /g,"+"));return t=e.c+"?family="+n.join("%7C"),0<e.f.length&&(t+="&subset="+e.f.join(",")),0<e.g.length&&(t+="&text="+encodeURIComponent(e.g)),t}(r),v(t)),y(t,(function(){e(i.a,i.c,re)}))},oe.prototype.load=function(e){var t=this.a.id,n=this.c.o;t?h(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",(function(t){if(t)e([]);else if(n.Typekit&&n.Typekit.config&&n.Typekit.config.fn){t=n.Typekit.config.fn;for(var r=[],o=0;o<t.length;o+=2)for(var i=t[o],a=t[o+1],l=0;l<a.length;l++)r.push(new _(i,a[l]));try{n.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(r)}}),2e3):e([])},ie.prototype.load=function(e){var t=this.f.id,n=this.c.o,r=this;t?(n.__webfontfontdeckmodule__||(n.__webfontfontdeckmodule__={}),n.__webfontfontdeckmodule__[t]=function(t,n){for(var o=0,i=n.fonts.length;o<i;++o){var a=n.fonts[o];r.a.push(new _(a.name,k("font-weight:"+a.weight+";font-style:"+a.style)))}e(r.a)},h(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(e){return e.o.location.hostname||e.a.location.hostname}(this.c)+"/"+t+".js",(function(t){t&&e([])}))):e([])};var ae=new G(window);ae.a.c.custom=function(e,t){return new Z(t,e)},ae.a.c.fontdeck=function(e,t){return new ie(t,e)},ae.a.c.monotype=function(e,t){return new q(t,e)},ae.a.c.typekit=function(e,t){return new oe(t,e)},ae.a.c.google=function(e,t){return new ne(t,e)};var le={load:a(ae.load,ae)};void 0===(r=function(){return le}.call(t,n,t,e))||(e.exports=r)}()},7529:function(e){e.exports=function(){for(var e={},n=0;n<arguments.length;n++){var r=arguments[n];for(var o in r)t.call(r,o)&&(e[o]=r[o])}return e};var t=Object.prototype.hasOwnProperty},1764:function(e,t,n){var r={"./ct-addable-box.js":9231,"./ct-background.js":8219,"./ct-border.js":9847,"./ct-box-shadow.js":2076,"./ct-button.js":4056,"./ct-checkboxes.js":3817,"./ct-color-palettes-mirror.js":6701,"./ct-color-palettes-picker.js":9727,"./ct-color-picker.js":4910,"./ct-customize-section-title-actions.js":7910,"./ct-customizer-reset-options.js":7941,"./ct-divider.js":5457,"./ct-footer-builder.js":5186,"./ct-header-builder.js":1829,"./ct-image-picker.js":1650,"./ct-image-uploader.js":7402,"./ct-layers-combined.js":532,"./ct-layers-mirror.js":7525,"./ct-layers.js":543,"./ct-multi-image-uploader.js":7454,"./ct-notification.js":3570,"./ct-number.js":8153,"./ct-panel.js":9999,"./ct-radio.js":3781,"./ct-ratio.js":7812,"./ct-select.js":2425,"./ct-slider.js":254,"./ct-spacer.js":3480,"./ct-spacing.js":5954,"./ct-switch.js":7809,"./ct-title.js":9697,"./ct-typography.js":4034,"./ct-visibility.js":9109,"./ct-woocommerce-columns-and-rows.js":7475,"./ct-woocommerce-ratio.js":7762,"./date-time-picker.js":2159,"./hidden.js":2242,"./html.js":2616,"./jsx.js":5200,"./react-outside-click-handler.js":1511,"./text.js":4658,"./textarea.js":8670,"./wp-editor.js":227};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=1764},7363:function(e){"use strict";e.exports=React},1533:function(e){"use strict";e.exports=ReactDOM},2243:function(e){"use strict";e.exports=ctEvents},6715:function(e){"use strict";e.exports=window._},8441:function(e){"use strict";e.exports=window.wp.components},2476:function(e){"use strict";e.exports=window.wp.date},1381:function(e){"use strict";e.exports=window.wp.element},5224:function(e){"use strict";e.exports=window.wp.hooks},5652:function(e){"use strict";e.exports=window.wp.i18n},7326:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},4942:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(9142);function o(e,t,n){return(t=(0,r.Z)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},7462:function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.r(t),n.d(t,{default:function(){return r}})},4578:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(9611);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.Z)(e,t)}},3366:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.r(t),n.d(t,{default:function(){return r}})},9611:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:function(){return r}})},9142:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(1002);function o(e){var t=function(e,t){if("object"!==(0,r.Z)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==(0,r.Z)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===(0,r.Z)(t)?t:String(t)}},1002:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:function(){return r}})},2329:function(e,t,n){"use strict";n.d(t,{uT:function(){return wn},q:function(){return Ln}});var r=n(7363),o=Object.defineProperty,i={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(i,{assign:()=>F,colors:()=>R,createStringInterpolator:()=>D,skipAnimation:()=>M,to:()=>N,willAdvance:()=>B});var a=_(),l=e=>v(e,a),c=_();l.write=e=>v(e,c);var s=_();l.onStart=e=>v(e,s);var u=_();l.onFrame=e=>v(e,u);var p=_();l.onFinish=e=>v(e,p);var d=[];l.setTimeout=(e,t)=>{const n=l.now()+t,r=()=>{const e=d.findIndex((e=>e.cancel==r));~e&&d.splice(e,1),h-=~e?1:0},o={time:n,handler:e,cancel:r};return d.splice(f(n),0,o),h+=1,y(),o};var f=e=>~(~d.findIndex((t=>t.time>e))||~d.length);l.cancel=e=>{s.delete(e),u.delete(e),p.delete(e),a.delete(e),c.delete(e)},l.sync=e=>{b=!0,l.batchedUpdates(e),b=!1},l.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,l.onStart(n)}return r.handler=e,r.cancel=()=>{s.delete(n),t=null},r};var m="undefined"!=typeof window?window.requestAnimationFrame:()=>{};l.use=e=>m=e,l.now="undefined"!=typeof performance?()=>performance.now():Date.now,l.batchedUpdates=e=>e(),l.catch=console.error,l.frameLoop="always",l.advance=()=>{"demand"!==l.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):O()};var g=-1,h=0,b=!1;function v(e,t){b?(t.delete(e),e(0)):(t.add(e),y())}function y(){g<0&&(g=0,"demand"!==l.frameLoop&&m(w))}function w(){~g&&(m(w),l.batchedUpdates(O))}function O(){const e=g;g=l.now();const t=f(g);t&&(E(d.splice(0,t),(e=>e.handler())),h-=t),h?(s.flush(),a.flush(e?Math.min(64,g-e):16.667),u.flush(),c.flush(),p.flush()):g=-1}function _(){let e=new Set,t=e;return{add(n){h+=t!=e||e.has(n)?0:1,e.add(n)},delete(n){return h-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,h-=t.size,E(t,(t=>t(n)&&e.add(t))),h+=e.size,t=e)}}}function E(e,t){e.forEach((e=>{try{t(e)}catch(e){l.catch(e)}}))}function P(){}var C={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function k(e,t){if(C.arr(e)){if(!C.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var j=(e,t)=>e.forEach(t);function S(e,t,n){if(C.arr(e))for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);else for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var x=e=>C.und(e)?[]:C.arr(e)?e:[e];function I(e,t){if(e.size){const n=Array.from(e);e.clear(),j(n,t)}}var D,N,T=(e,...t)=>I(e,(e=>e(...t))),A=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),R=null,M=!1,B=P,F=e=>{e.to&&(N=e.to),e.now&&(l.now=e.now),void 0!==e.colors&&(R=e.colors),null!=e.skipAnimation&&(M=e.skipAnimation),e.createStringInterpolator&&(D=e.createStringInterpolator),e.requestAnimationFrame&&l.use(e.requestAnimationFrame),e.batchedUpdates&&(l.batchedUpdates=e.batchedUpdates),e.willAdvance&&(B=e.willAdvance),e.frameLoop&&(l.frameLoop=e.frameLoop)},L=new Set,z=[],H=[],V=0,U={get idle(){return!L.size&&!z.length},start(e){V>e.priority?(L.add(e),l.onStart($)):(G(e),l(q))},advance:q,sort(e){if(V)l.onFrame((()=>U.sort(e)));else{const t=z.indexOf(e);~t&&(z.splice(t,1),W(e))}},clear(){z=[],L.clear()}};function $(){L.forEach(G),L.clear(),l(q)}function G(e){z.includes(e)||W(e)}function W(e){z.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(z,(t=>t.priority>e.priority)),0,e)}function q(e){const t=H;for(let n=0;n<z.length;n++){const r=z[n];V=r.priority,r.idle||(B(r),r.advance(e),r.idle||t.push(r))}return V=0,(H=z).length=0,(z=t).length>0}var Z="[-+]?\\d*\\.?\\d+",K=Z+"%";function Y(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var X=new RegExp("rgb"+Y(Z,Z,Z)),J=new RegExp("rgba"+Y(Z,Z,Z,Z)),Q=new RegExp("hsl"+Y(Z,K,K)),ee=new RegExp("hsla"+Y(Z,K,K,Z)),te=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ne=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,re=/^#([0-9a-fA-F]{6})$/,oe=/^#([0-9a-fA-F]{8})$/;function ie(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ae(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=ie(o,r,e+1/3),a=ie(o,r,e),l=ie(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function le(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function ce(e){return(parseFloat(e)%360+360)%360/360}function se(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function ue(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function pe(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=re.exec(e))?parseInt(t[1]+"ff",16)>>>0:R&&void 0!==R[e]?R[e]:(t=X.exec(e))?(le(t[1])<<24|le(t[2])<<16|le(t[3])<<8|255)>>>0:(t=J.exec(e))?(le(t[1])<<24|le(t[2])<<16|le(t[3])<<8|se(t[4]))>>>0:(t=te.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=oe.exec(e))?parseInt(t[1],16)>>>0:(t=ne.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Q.exec(e))?(255|ae(ce(t[1]),ue(t[2]),ue(t[3])))>>>0:(t=ee.exec(e))?(ae(ce(t[1]),ue(t[2]),ue(t[3]))|se(t[4]))>>>0:null}(e);if(null===t)return e;t=t||0;return`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`}var de=(e,t,n)=>{if(C.fun(e))return e;if(C.arr(e))return de({range:e,output:t,extrapolate:n});if(C.str(e.output[0]))return D(e);const r=e,o=r.output,i=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",l=r.extrapolateRight||r.extrapolate||"extend",c=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,i);return function(e,t,n,r,o,i,a,l,c){let s=c?c(e):e;if(s<t){if("identity"===a)return s;"clamp"===a&&(s=t)}if(s>n){if("identity"===l)return s;"clamp"===l&&(s=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?s=-s:n===1/0?s-=t:s=(s-t)/(n-t);s=i(s),r===-1/0?s=-s:o===1/0?s+=r:s=s*(o-r)+r;return s}(e,i[t],i[t+1],o[t],o[t+1],c,a,l,r.map)}};var fe=1.70158,me=1.525*fe,ge=fe+1,he=2*Math.PI/3,be=2*Math.PI/4.5,ve=e=>{const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},ye={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>ge*e*e*e-fe*e*e,easeOutBack:e=>1+ge*Math.pow(e-1,3)+fe*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-me)/2:(Math.pow(2*e-2,2)*((me+1)*(2*e-2)+me)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*he),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*he)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*be)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*be)/2+1,easeInBounce:e=>1-ve(1-e),easeOutBounce:ve,easeInOutBounce:e=>e<.5?(1-ve(1-2*e))/2:(1+ve(2*e-1))/2,steps:(e,t="end")=>n=>{const r=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e,o="end"===t?Math.floor(r):Math.ceil(r);return i=0,a=1,l=o/e,Math.min(Math.max(l,i),a);var i,a,l}},we=Symbol.for("FluidValue.get"),Oe=Symbol.for("FluidValue.observers"),_e=e=>Boolean(e&&e[we]),Ee=e=>e&&e[we]?e[we]():e,Pe=e=>e[Oe]||null;function Ce(e,t){const n=e[Oe];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}var ke=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");je(this,e)}},je=(e,t)=>De(e,we,t);function Se(e,t){if(e[we]){let n=e[Oe];n||De(e,Oe,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function xe(e,t){const n=e[Oe];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Oe]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var Ie,De=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Ne=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Te=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Ae=new RegExp(`(${Ne.source})(%|[a-z]+)`,"i"),Re=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Me=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Be=e=>{const[t,n]=Fe(e);if(!t||A())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const t=window.getComputedStyle(document.documentElement).getPropertyValue(n);return t||e}return n&&Me.test(n)?Be(n):n||e},Fe=e=>{const t=Me.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Le=(e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,ze=e=>{Ie||(Ie=R?new RegExp(`(${Object.keys(R).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>Ee(e).replace(Me,Be).replace(Te,pe).replace(Ie,pe))),n=t.map((e=>e.match(Ne).map(Number))),r=n[0].map(((e,t)=>n.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))).map((t=>de({...e,output:t})));return e=>{const n=!Ae.test(t[0])&&t.find((e=>Ae.test(e)))?.replace(Ne,"");let o=0;return t[0].replace(Ne,(()=>`${r[o++](e)}${n||""}`)).replace(Re,Le)}},He="react-spring: ",Ve=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${He}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},Ue=Ve(console.warn);var $e=Ve(console.warn);function Ge(e){return C.str(e)&&("#"==e[0]||/\d/.test(e)||!A()&&Me.test(e)||e in(R||{}))}var We=A()?r.useEffect:r.useLayoutEffect,qe=()=>{const e=(0,r.useRef)(!1);return We((()=>(e.current=!0,()=>{e.current=!1})),[]),e};function Ze(){const e=(0,r.useState)()[1],t=qe();return()=>{t.current&&e(Math.random())}}var Ke=e=>(0,r.useEffect)(e,Ye),Ye=[];var Xe=Symbol.for("Animated:node"),Je=e=>e&&e[Xe],Qe=(e,t)=>((e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}))(e,Xe,t),et=e=>e&&e[Xe]&&e[Xe].getPayload(),tt=class{constructor(){Qe(this,this)}getPayload(){return this.payload||[]}},nt=class extends tt{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,C.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new nt(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return C.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,C.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},rt=class extends nt{constructor(e){super(0),this._string=null,this._toString=de({output:[e,e]})}static create(e){return new rt(e)}getValue(){const e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(C.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=de({output:[this.getValue(),e]})),this._value=0,super.reset()}},ot={dependencies:null},it=class extends tt{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return S(this.source,((n,r)=>{(e=>!!e&&e[Xe]===e)(n)?t[r]=n.getValue(e):_e(n)?t[r]=Ee(n):e||(t[r]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&j(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return S(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){ot.dependencies&&_e(e)&&ot.dependencies.add(e);const t=et(e);t&&j(t,(e=>this.add(e)))}},at=class extends it{constructor(e){super(e)}static create(e){return new at(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.map(((t,n)=>t.setValue(e[n]))).some(Boolean):(super.setValue(e.map(lt)),!0)}};function lt(e){return(Ge(e)?rt:nt).create(e)}function ct(e){const t=Je(e);return t?t.constructor:C.arr(e)?at:Ge(e)?rt:nt}var st=(e,t)=>{const n=!C.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,r.forwardRef)(((o,i)=>{const a=(0,r.useRef)(null),c=n&&(0,r.useCallback)((e=>{a.current=function(e,t){e&&(C.fun(e)?e(t):e.current=t);return t}(i,e)}),[i]),[s,u]=function(e,t){const n=new Set;ot.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)});return e=new it(e),ot.dependencies=null,[e,n]}(o,t),p=Ze(),d=()=>{const e=a.current;if(n&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,s.getValue(!0)))&&p()},f=new ut(d,u),m=(0,r.useRef)();We((()=>(m.current=f,j(u,(e=>Se(e,f))),()=>{m.current&&(j(m.current.deps,(e=>xe(e,m.current))),l.cancel(m.current.update))}))),(0,r.useEffect)(d,[]),Ke((()=>()=>{const e=m.current;j(e.deps,(t=>xe(t,e)))}));const g=t.getComponentProps(s.getValue());return r.createElement(e,{...g,ref:c})}))},ut=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&l.write(this.update)}};var pt=Symbol.for("AnimatedComponent"),dt=e=>C.str(e)?e:e&&C.str(e.displayName)?e.displayName:C.fun(e)&&e.name||null;function ft(e,...t){return C.fun(e)?e(...t):e}var mt=(e,t)=>!0===e||!!(t&&e&&(C.fun(e)?e(t):x(e).includes(t))),gt=(e,t)=>C.obj(e)?t&&e[t]:e,ht=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,bt=e=>e,vt=(e,t=bt)=>{let n=yt;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const r={};for(const o of n){const n=t(e[o],o);C.und(n)||(r[o]=n)}return r},yt=["config","onProps","onStart","onChange","onPause","onResume","onRest"],wt={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Ot(e){const t=function(e){const t={};let n=0;if(S(e,((e,r)=>{wt[r]||(t[r]=e,n++)})),n)return t}(e);if(t){const n={to:t};return S(e,((e,r)=>r in t||(n[r]=e))),n}return{...e}}function _t(e){return e=Ee(e),C.arr(e)?e.map(_t):Ge(e)?i.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Et(e){for(const t in e)return!0;return!1}function Pt(e){return C.fun(e)||C.arr(e)&&C.obj(e[0])}function Ct(e,t){e.ref?.delete(e),t?.delete(e)}function kt(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var jt={tension:170,friction:26,mass:1,damping:1,easing:ye.linear,clamp:!1};function St(e,t){if(C.und(t.decay)){const n=!C.und(t.tension)||!C.und(t.friction);!n&&C.und(t.frequency)&&C.und(t.damping)&&C.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var xt=[];function It(e,{key:t,props:n,defaultProps:r,state:o,actions:a}){return new Promise(((c,s)=>{let u,p,d=mt(n.cancel??r?.cancel,t);if(d)g();else{C.und(n.pause)||(o.paused=mt(n.pause,t));let e=r?.pause;!0!==e&&(e=o.paused||mt(e,t)),u=ft(n.delay||0,t),e?(o.resumeQueue.add(m),a.pause()):(a.resume(),m())}function f(){o.resumeQueue.add(m),o.timeouts.delete(p),p.cancel(),u=p.time-l.now()}function m(){u>0&&!i.skipAnimation?(o.delayed=!0,p=l.setTimeout(g,u),o.pauseQueue.add(f),o.timeouts.add(p)):g()}function g(){o.delayed&&(o.delayed=!1),o.pauseQueue.delete(f),o.timeouts.delete(p),e<=(o.cancelId||0)&&(d=!0);try{a.start({...n,callId:e,cancel:d},c)}catch(e){s(e)}}}))}var Dt=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?At(e.get()):t.every((e=>e.noop))?Nt(e.get()):Tt(e.get(),t.every((e=>e.finished))),Nt=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Tt=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),At=e=>({value:e,cancelled:!0,finished:!1});function Rt(e,t,n,r){const{callId:o,parentId:a,onRest:c}=t,{asyncTo:s,promise:u}=n;return a||e!==s||t.reset?n.promise=(async()=>{n.asyncId=o,n.asyncTo=e;const p=vt(t,((e,t)=>"onRest"===t?void 0:e));let d,f;const m=new Promise(((e,t)=>(d=e,f=t))),g=e=>{const t=o<=(n.cancelId||0)&&At(r)||o!==n.asyncId&&Tt(r,!1);if(t)throw e.result=t,f(e),e},h=(e,t)=>{const a=new Bt,l=new Ft;return(async()=>{if(i.skipAnimation)throw Mt(n),l.result=Tt(r,!1),f(l),l;g(a);const c=C.obj(e)?{...e}:{...t,to:e};c.parentId=o,S(p,((e,t)=>{C.und(c[t])&&(c[t]=e)}));const s=await r.start(c);return g(a),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),s})()};let b;if(i.skipAnimation)return Mt(n),Tt(r,!1);try{let t;t=C.arr(e)?(async e=>{for(const t of e)await h(t)})(e):Promise.resolve(e(h,r.stop.bind(r))),await Promise.all([t.then(d),m]),b=Tt(r.get(),!0,!1)}catch(e){if(e instanceof Bt)b=e.result;else{if(!(e instanceof Ft))throw e;b=e.result}}finally{o==n.asyncId&&(n.asyncId=a,n.asyncTo=a?s:void 0,n.promise=a?u:void 0)}return C.fun(c)&&l.batchedUpdates((()=>{c(b,r,r.item)})),b})():u}function Mt(e,t){I(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Bt=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},Ft=class extends Error{constructor(){super("SkipAnimationSignal")}},Lt=e=>e instanceof Ht,zt=1,Ht=class extends ke{constructor(){super(...arguments),this.id=zt++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Je(this);return e&&e.getValue()}to(...e){return i.to(this,e)}interpolate(...e){return Ue(`${He}The "interpolate" function is deprecated in v9 (use "to" instead)`),i.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Ce(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||U.sort(this),Ce(this,{type:"priority",parent:this,priority:e})}},Vt=Symbol.for("SpringPhase"),Ut=e=>(1&e[Vt])>0,$t=e=>(2&e[Vt])>0,Gt=e=>(4&e[Vt])>0,Wt=(e,t)=>t?e[Vt]|=3:e[Vt]&=-3,qt=(e,t)=>t?e[Vt]|=4:e[Vt]&=-5,Zt=class extends Ht{constructor(e,t){if(super(),this.animation=new class{constructor(){this.changed=!1,this.values=xt,this.toValues=null,this.fromValues=xt,this.config=new class{constructor(){this.velocity=0,Object.assign(this,jt)}},this.immediate=!1}},this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!C.und(e)||!C.und(t)){const n=C.obj(e)?{...e}:{...t,from:e};C.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!($t(this)||this._state.asyncTo)||Gt(this)}get goal(){return Ee(this.animation.to)}get velocity(){const e=Je(this);return e instanceof nt?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return Ut(this)}get isAnimating(){return $t(this)}get isPaused(){return Gt(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:o}=r;const{config:i}=r,a=et(r.to);!a&&_e(r.to)&&(o=x(Ee(r.to))),r.values.forEach(((l,c)=>{if(l.done)return;const s=l.constructor==rt?1:a?a[c].lastPosition:o[c];let u=r.immediate,p=s;if(!u){if(p=l.lastPosition,i.tension<=0)return void(l.done=!0);let t=l.elapsedTime+=e;const n=r.fromValues[c],o=null!=l.v0?l.v0:l.v0=C.arr(i.velocity)?i.velocity[c]:i.velocity;let a;const d=i.precision||(n==s?.005:Math.min(1,.001*Math.abs(s-n)));if(C.und(i.duration))if(i.decay){const e=!0===i.decay?.998:i.decay,r=Math.exp(-(1-e)*t);p=n+o/(1-e)*(1-r),u=Math.abs(l.lastPosition-p)<=d,a=o*r}else{a=null==l.lastVelocity?o:l.lastVelocity;const t=i.restVelocity||d/10,r=i.clamp?0:i.bounce,c=!C.und(r),f=n==s?l.v0>0:n<s;let m,g=!1;const h=1,b=Math.ceil(e/h);for(let e=0;e<b&&(m=Math.abs(a)>t,m||(u=Math.abs(s-p)<=d,!u));++e){c&&(g=p==s||p>s==f,g&&(a=-a*r,p=s));a+=(1e-6*-i.tension*(p-s)+.001*-i.friction*a)/i.mass*h,p+=a*h}}else{let r=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,l.durationProgress>0&&(l.elapsedTime=i.duration*l.durationProgress,t=l.elapsedTime+=e)),r=(i.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,l.durationProgress=r),p=n+i.easing(r)*(s-n),a=(p-l.lastPosition)/e,u=1==r}l.lastVelocity=a,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),u=!0)}a&&!a[c].done&&(u=!1),u?l.done=!0:t=!1,l.setValue(p,i.round)&&(n=!0)}));const l=Je(this),c=l.getValue();if(t){const e=Ee(r.to);c===e&&!n||i.decay?n&&i.decay&&this._onChange(c):(l.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(c)}set(e){return l.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if($t(this)){const{to:e,config:t}=this.animation;l.batchedUpdates((()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return C.und(e)?(n=this.queue||[],this.queue=[]):n=[C.obj(e)?e:{...t,to:e}],Promise.all(n.map((e=>this._update(e)))).then((e=>Dt(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Mt(this._state,e&&this._lastCallId),l.batchedUpdates((()=>this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=C.obj(n)?n[t]:n,(null==n||Pt(n))&&(n=void 0),r=C.obj(r)?r[t]:r,null==r&&(r=void 0);const o={to:n,from:r};return Ut(this)||(e.reverse&&([n,r]=[r,n]),r=Ee(r),C.und(r)?Je(this)||this._set(n):this._set(r)),o}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,vt(e,((e,t)=>/^on/.test(t)?gt(e,n):e))),en(this,e,"onProps"),tn(this,"onProps",e,this);const o=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const i=this._state;return It(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{Gt(this)||(qt(this,!0),T(i.pauseQueue),tn(this,"onPause",Tt(this,Kt(this,this.animation.to)),this))},resume:()=>{Gt(this)&&(qt(this,!1),$t(this)&&this._resume(),T(i.resumeQueue),tn(this,"onResume",Tt(this,Kt(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then((n=>{if(e.loop&&n.finished&&(!t||!n.noop)){const t=Yt(e);if(t)return this._update(t,!0)}return n}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(At(this));const r=!C.und(e.to),o=!C.und(e.from);if(r||o){if(!(t.callId>this._lastToId))return n(At(this));this._lastToId=t.callId}const{key:i,defaultProps:a,animation:c}=this,{to:s,from:u}=c;let{to:p=s,from:d=u}=e;!o||r||t.default&&!C.und(p)||(p=d),t.reverse&&([p,d]=[d,p]);const f=!k(d,u);f&&(c.from=d),d=Ee(d);const m=!k(p,s);m&&this._focus(p);const g=Pt(t.to),{config:h}=c,{decay:b,velocity:v}=h;(r||o)&&(h.velocity=0),t.config&&!g&&function(e,t,n){n&&(St(n={...n},t),t={...n,...t}),St(e,t),Object.assign(e,t);for(const t in jt)null==e[t]&&(e[t]=jt[t]);let{frequency:r,damping:o}=e;const{mass:i}=e;C.und(r)||(r<.01&&(r=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/r,2)*i,e.friction=4*Math.PI*o*i/r)}(h,ft(t.config,i),t.config!==a.config?ft(a.config,i):void 0);let y=Je(this);if(!y||C.und(p))return n(Tt(this,!0));const w=C.und(t.reset)?o&&!t.default:!C.und(d)&&mt(t.reset,i),O=w?d:this.get(),_=_t(p),E=C.num(_)||C.arr(_)||Ge(_),P=!g&&(!E||mt(a.immediate||t.immediate,i));if(m){const e=ct(p);if(e!==y.constructor){if(!P)throw Error(`Cannot animate between ${y.constructor.name} and ${e.name}, as the "to" prop suggests`);y=this._set(_)}}const S=y.constructor;let I=_e(p),D=!1;if(!I){const e=w||!Ut(this)&&f;(m||e)&&(D=k(_t(O),_),I=!D),(k(c.immediate,P)||P)&&k(h.decay,b)&&k(h.velocity,v)||(I=!0)}if(D&&$t(this)&&(c.changed&&!w?I=!0:I||this._stop(s)),!g&&((I||_e(s))&&(c.values=y.getPayload(),c.toValues=_e(p)?null:S==rt?[1]:x(_)),c.immediate!=P&&(c.immediate=P,P||w||this._set(s)),I)){const{onRest:e}=c;j(Qt,(e=>en(this,t,e)));const r=Tt(this,Kt(this,s));T(this._pendingCalls,r),this._pendingCalls.add(n),c.changed&&l.batchedUpdates((()=>{c.changed=!w,e?.(r,this),w?ft(a.onRest,r):c.onStart?.(r,this)}))}w&&this._set(O),g?n(Rt(t.to,t,this._state,this)):I?this._start():$t(this)&&!m?this._pendingCalls.add(n):n(Nt(O))}_focus(e){const t=this.animation;e!==t.to&&(Pe(this)&&this._detach(),t.to=e,Pe(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;_e(t)&&(Se(t,this),Lt(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;_e(e)&&xe(e,this)}_set(e,t=!0){const n=Ee(e);if(!C.und(n)){const e=Je(this);if(!e||!k(n,e.getValue())){const r=ct(n);e&&e.constructor==r?e.setValue(n):Qe(this,r.create(n)),e&&l.batchedUpdates((()=>{this._onChange(n,t)}))}}return Je(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,tn(this,"onStart",Tt(this,Kt(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),ft(this.animation.onChange,e,this)),ft(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Je(this).reset(Ee(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),$t(this)||(Wt(this,!0),Gt(this)||this._resume())}_resume(){i.skipAnimation?this.finish():U.start(this)}_stop(e,t){if($t(this)){Wt(this,!1);const n=this.animation;j(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Ce(this,{type:"idle",parent:this});const r=t?At(this.get()):Tt(this.get(),Kt(this,e??n.to));T(this._pendingCalls,r),n.changed&&(n.changed=!1,tn(this,"onRest",r,this))}}};function Kt(e,t){const n=_t(t);return k(_t(e.get()),n)}function Yt(e,t=e.loop,n=e.to){const r=ft(t);if(r){const o=!0!==r&&Ot(r),i=(o||e).reverse,a=!o||o.reset;return Xt({...e,loop:t,default:!1,pause:void 0,to:!i||Pt(n)?n:void 0,from:a?e.from:void 0,reset:a,...o})}}function Xt(e){const{to:t,from:n}=e=Ot(e),r=new Set;return C.obj(t)&&Jt(t,r),C.obj(n)&&Jt(n,r),e.keys=r.size?Array.from(r):null,e}function Jt(e,t){S(e,((e,n)=>null!=e&&t.add(n)))}var Qt=["onStart","onRest","onChange","onPause","onResume"];function en(e,t,n){e.animation[n]=t[n]!==ht(t,n)?gt(t[n],e.key):void 0}function tn(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var nn=["onStart","onChange","onRest"],rn=1,on=class{constructor(e,t){this.id=rn++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((e=>e.idle&&!e.isDelayed&&!e.isPaused))}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each(((t,n)=>e[n]=t.get())),e}set(e){for(const t in e){const n=e[t];C.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Xt(e)),this}start(e){let{queue:t}=this;return e?t=x(e).map(Xt):this.queue=[],this._flush?this._flush(this,t):(dn(this,t),an(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;j(x(t),(t=>n[t].stop(!!e)))}else Mt(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(C.und(e))this.start({pause:!0});else{const t=this.springs;j(x(e),(e=>t[e].pause()))}return this}resume(e){if(C.und(e))this.start({pause:!1});else{const t=this.springs;j(x(e),(e=>t[e].resume()))}return this}each(e){S(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,o=this._changed.size>0;(r&&!this._started||o&&!this._started)&&(this._started=!0,I(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const i=!r&&this._started,a=o||i&&n.size?this.get():null;o&&t.size&&I(t,(([e,t])=>{t.value=a,e(t,this,this._item)})),i&&(this._started=!1,I(n,(([e,t])=>{t.value=a,e(t,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}l.onFrame(this._onFrame)}};function an(e,t){return Promise.all(t.map((t=>ln(e,t)))).then((t=>Dt(e,t)))}async function ln(e,t,n){const{keys:r,to:o,from:i,loop:a,onRest:c,onResolve:s}=t,u=C.obj(t.default)&&t.default;a&&(t.loop=!1),!1===o&&(t.to=null),!1===i&&(t.from=null);const p=C.arr(o)||C.fun(o)?o:void 0;p?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):j(nn,(n=>{const r=t[n];if(C.fun(r)){const o=e._events[n];t[n]=({finished:e,cancelled:t})=>{const n=o.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):o.set(r,{value:null,finished:e||!1,cancelled:t||!1})},u&&(u[n]=t[n])}}));const d=e._state;t.pause===!d.paused?(d.paused=t.pause,T(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const f=(r||Object.keys(e.springs)).map((n=>e.springs[n].start(t))),m=!0===t.cancel||!0===ht(t,"cancel");(p||m&&d.asyncId)&&f.push(It(++e._lastAsyncId,{props:t,state:d,actions:{pause:P,resume:P,start(t,n){m?(Mt(d,e._lastAsyncId),n(At(e))):(t.onRest=c,n(Rt(p,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const g=Dt(e,await Promise.all(f));if(a&&g.finished&&(!n||!g.noop)){const n=Yt(t,a,o);if(n)return dn(e,[n]),ln(e,n,!0)}return s&&l.batchedUpdates((()=>s(g,e,e.item))),g}function cn(e,t){const n={...e.springs};return t&&j(x(t),(e=>{C.und(e.keys)&&(e=Xt(e)),C.obj(e.to)||(e={...e,to:void 0}),pn(n,e,(e=>un(e)))})),sn(e,n),n}function sn(e,t){S(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,Se(t,e))}))}function un(e,t){const n=new Zt;return n.key=e,t&&Se(n,t),n}function pn(e,t,n){t.keys&&j(t.keys,(r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)}))}function dn(e,t){j(t,(t=>{pn(e.springs,t,(t=>un(t,e)))}))}var fn,mn,gn=({children:e,...t})=>{const n=(0,r.useContext)(hn),o=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=function(e,t){const[n]=(0,r.useState)((()=>({inputs:t,result:e()}))),o=(0,r.useRef)(),i=o.current;let a=i;a?Boolean(t&&a.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,a.inputs))||(a={inputs:t,result:e()}):a=n;return(0,r.useEffect)((()=>{o.current=a,i==n&&(n.inputs=n.result=void 0)}),[a]),a.result}((()=>({pause:o,immediate:i})),[o,i]);const{Provider:a}=hn;return r.createElement(a,{value:t},e)},hn=(fn=gn,mn={},Object.assign(fn,r.createContext(mn)),fn.Provider._context=fn,fn.Consumer._context=fn,fn);gn.Provider=hn.Provider,gn.Consumer=hn.Consumer;var bn=()=>{const e=[],t=function(t){$e(`${He}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const r=[];return j(e,((e,o)=>{if(C.und(t))r.push(e.start());else{const i=n(t,e,o);i&&r.push(e.start(i))}})),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return j(e,(e=>e.pause(...arguments))),this},t.resume=function(){return j(e,(e=>e.resume(...arguments))),this},t.set=function(t){j(e,((e,n)=>{const r=C.fun(t)?t(n,e):t;r&&e.set(r)}))},t.start=function(t){const n=[];return j(e,((e,r)=>{if(C.und(t))n.push(e.start());else{const o=this._getProps(t,e,r);o&&n.push(e.start(o))}})),n},t.stop=function(){return j(e,(e=>e.stop(...arguments))),this},t.update=function(t){return j(e,((e,n)=>e.update(this._getProps(t,e,n)))),this};const n=function(e,t,n){return C.fun(e)?e(n,t):e};return t._getProps=n,t};function vn(e,t,n){const o=C.fun(t)&&t,{reset:i,sort:a,trail:l=0,expires:c=!0,exitBeforeEnter:s=!1,onDestroyed:u,ref:p,config:d}=o?o():t,f=(0,r.useMemo)((()=>o||3==arguments.length?bn():void 0),[]),m=x(e),g=[],h=(0,r.useRef)(null),b=i?null:h.current;We((()=>{h.current=g})),Ke((()=>(j(g,(e=>{f?.add(e.ctrl),e.ctrl.ref=f})),()=>{j(h.current,(e=>{e.expired&&clearTimeout(e.expirationId),Ct(e.ctrl,f),e.ctrl.stop(!0)}))})));const v=function(e,{key:t,keys:n=t},r){if(null===n){const t=new Set;return e.map((e=>{const n=r&&r.find((n=>n.item===e&&"leave"!==n.phase&&!t.has(n)));return n?(t.add(n),n.key):yn++}))}return C.und(n)?e:C.fun(n)?e.map(n):x(n)}(m,o?o():t,b),y=i&&h.current||[];We((()=>j(y,(({ctrl:e,item:t,key:n})=>{Ct(e,f),ft(u,t,n)}))));const w=[];if(b&&j(b,((e,t)=>{e.expired?(clearTimeout(e.expirationId),y.push(e)):~(t=w[t]=v.indexOf(e.key))&&(g[t]=e)})),j(m,((e,t)=>{g[t]||(g[t]={key:v[t],item:e,phase:"mount",ctrl:new on},g[t].ctrl.item=e)})),w.length){let e=-1;const{leave:n}=o?o():t;j(w,((t,r)=>{const o=b[r];~t?(e=g.indexOf(o),g[e]={...o,item:m[t]}):n&&g.splice(++e,0,o)}))}C.fun(a)&&g.sort(((e,t)=>a(e.item,t.item)));let O=-l;const _=Ze(),E=vt(t),P=new Map,k=(0,r.useRef)(new Map),S=(0,r.useRef)(!1);j(g,((e,n)=>{const r=e.key,i=e.phase,a=o?o():t;let u,f;const m=ft(a.delay||0,r);if("mount"==i)u=a.enter,f="enter";else{const e=v.indexOf(r)<0;if("leave"!=i)if(e)u=a.leave,f="leave";else{if(!(u=a.update))return;f="update"}else{if(e)return;u=a.enter,f="enter"}}if(u=ft(u,e.item,n),u=C.obj(u)?Ot(u):{to:u},!u.config){const t=d||E.config;u.config=ft(t,e.item,n,f)}O+=l;const g={...E,delay:m+O,ref:p,immediate:a.immediate,reset:!1,...u};if("enter"==f&&C.und(g.from)){const r=o?o():t,i=C.und(r.initial)||b?r.from:r.initial;g.from=ft(i,e.item,n)}const{onResolve:y}=g;g.onResolve=e=>{ft(y,e);const t=h.current,n=t.find((e=>e.key===r));if(n&&(!e.cancelled||"update"==n.phase)&&n.ctrl.idle){const e=t.every((e=>e.ctrl.idle));if("leave"==n.phase){const t=ft(c,n.item);if(!1!==t){const r=!0===t?0:t;if(n.expired=!0,!e&&r>0)return void(r<=2147483647&&(n.expirationId=setTimeout(_,r)))}}e&&t.some((e=>e.expired))&&(k.current.delete(n),s&&(S.current=!0),_())}};const w=cn(e.ctrl,g);"leave"===f&&s?k.current.set(e,{phase:f,springs:w,payload:g}):P.set(e,{phase:f,springs:w,payload:g})}));const I=(0,r.useContext)(gn),D=function(e){const t=(0,r.useRef)();return(0,r.useEffect)((()=>{t.current=e})),t.current}(I),N=I!==D&&Et(I);We((()=>{N&&j(g,(e=>{e.ctrl.start({default:I})}))}),[I]),j(P,((e,t)=>{if(k.current.size){const e=g.findIndex((e=>e.key===t.key));g.splice(e,1)}})),We((()=>{j(k.current.size?k.current:P,(({phase:e,payload:t},n)=>{const{ctrl:r}=n;n.phase=e,f?.add(r),N&&"enter"==e&&r.start({default:I}),t&&(kt(r,t.ref),!r.ref&&!f||S.current?(r.start(t),S.current&&(S.current=!1)):r.update(t))}))}),i?void 0:n);const T=e=>r.createElement(r.Fragment,null,g.map(((t,n)=>{const{springs:o}=P.get(t)||t.ctrl,i=e({...o},t.item,t,n);return i&&i.type?r.createElement(i.type,{...i.props,key:C.str(t.key)||C.num(t.key)?t.key:t.ctrl.id,ref:i.ref}):i})));return f?[T,f]:T}var yn=1;function wn({items:e,children:t,...n}){return vn(e,n)(t)}var On=class extends Ht{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=de(...t);const n=this._get(),r=ct(n);Qe(this,r.create(n))}advance(e){const t=this._get();k(t,this.get())||(Je(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&En(this._active)&&Pn(this)}_get(){const e=C.arr(this.source)?this.source.map(Ee):x(Ee(this.source));return this.calc(...e)}_start(){this.idle&&!En(this._active)&&(this.idle=!1,j(et(this),(e=>{e.done=!1})),i.skipAnimation?(l.batchedUpdates((()=>this.advance())),Pn(this)):U.start(this))}_attach(){let e=1;j(x(this.source),(t=>{_e(t)&&Se(t,this),Lt(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){j(x(this.source),(e=>{_e(e)&&xe(e,this)})),this._active.clear(),Pn(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=x(this.source).reduce(((e,t)=>Math.max(e,(Lt(t)?t.priority:0)+1)),0))}};function _n(e){return!1!==e.idle}function En(e){return!e.size||Array.from(e).every(_n)}function Pn(e){e.idle||(e.idle=!0,j(et(e),(e=>{e.done=!0})),Ce(e,{type:"idle",parent:e}))}i.assign({createStringInterpolator:ze,to:(e,t)=>new On(e,t)});U.advance;var Cn=n(1533),kn=/^--/;function jn(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||kn.test(e)||xn.hasOwnProperty(e)&&xn[e]?(""+t).trim():t+"px"}var Sn={};var xn={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},In=["Webkit","Ms","Moz","O"];xn=Object.keys(xn).reduce(((e,t)=>(In.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),xn);var Dn=/^(matrix|translate|scale|rotate|skew)/,Nn=/^(translate)/,Tn=/^(rotate|skew)/,An=(e,t)=>C.num(e)&&0!==e?e+t:e,Rn=(e,t)=>C.arr(e)?e.every((e=>Rn(e,t))):C.num(e)?e===t:parseFloat(e)===t,Mn=class extends it{constructor({x:e,y:t,z:n,...r}){const o=[],i=[];(e||t||n)&&(o.push([e||0,t||0,n||0]),i.push((e=>[`translate3d(${e.map((e=>An(e,"px"))).join(",")})`,Rn(e,0)]))),S(r,((e,t)=>{if("transform"===t)o.push([e||""]),i.push((e=>[e,""===e]));else if(Dn.test(t)){if(delete r[t],C.und(e))return;const n=Nn.test(t)?"px":Tn.test(t)?"deg":"";o.push(x(e)),i.push("rotate3d"===t?([e,t,r,o])=>[`rotate3d(${e},${t},${r},${An(o,n)})`,Rn(o,0)]:e=>[`${t}(${e.map((e=>An(e,n))).join(",")})`,Rn(e,t.startsWith("scale")?1:0)])}})),o.length&&(r.transform=new Bn(o,i)),super(r)}},Bn=class extends ke{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return j(this.inputs,((n,r)=>{const o=Ee(n[0]),[i,a]=this.transforms[r](C.arr(o)?o:n.map(Ee));e+=" "+i,t=t&&a})),t?"none":e}observerAdded(e){1==e&&j(this.inputs,(e=>j(e,(e=>_e(e)&&Se(e,this)))))}observerRemoved(e){0==e&&j(this.inputs,(e=>j(e,(e=>_e(e)&&xe(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),Ce(this,e)}};i.assign({batchedUpdates:Cn.unstable_batchedUpdates,createStringInterpolator:ze,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});var Fn=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:n=(e=>new it(e)),getComponentProps:r=(e=>e)}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=e=>{const t=dt(e)||"Anonymous";return(e=C.str(e)?i[e]||(i[e]=st(e,o)):e[pt]||(e[pt]=st(e,o))).displayName=`Animated(${t})`,e};return S(e,((t,n)=>{C.arr(e)&&(n=dt(t)),i[n]=i(t)})),{animated:i}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:r,children:o,scrollTop:i,scrollLeft:a,viewBox:l,...c}=t,s=Object.values(c),u=Object.keys(c).map((t=>n||e.hasAttribute(t)?t:Sn[t]||(Sn[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==o&&(e.textContent=o);for(const t in r)if(r.hasOwnProperty(t)){const n=jn(t,r[t]);kn.test(t)?e.style.setProperty(t,n):e.style[t]=n}u.forEach(((t,n)=>{e.setAttribute(t,s[n])})),void 0!==i&&(e.scrollTop=i),void 0!==a&&(e.scrollLeft=a),void 0!==l&&e.setAttribute("viewBox",l)},createAnimatedStyle:e=>new Mn(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Ln=Fn.animated}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.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 r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),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})},function(){"use strict";var e=n(1381),t=n(5652),r=window.wp.blocks,o=window.wp.blockEditor,i=window.wp.data;const{breadcrumb_home_item:a,breadcrumb_home_text:l,breadcrumb_separator:c,breadcrumb_page_title:s}=window.blc_blocks_data;var u=function(){const n=(0,e.useMemo)((function(){return"text"===a?l:(0,e.createElement)("svg",{class:"ct-home-icon",width:"15",viewBox:"0 0 24 20"},(0,e.createElement)("path",{d:"M12,0L0.4,10.5h3.2V20h6.3v-6.3h4.2V20h6.3v-9.5h3.2L12,0z"}))}),[]),r=(0,e.useMemo)((function(){return"type-2"===c?(0,e.createElement)("svg",{class:"separator",width:"8",height:"8",viewBox:"0 0 8 8"},(0,e.createElement)("polygon",{points:"2.5,0 6.9,4 2.5,8 "})):"type-3"===c?(0,e.createElement)("span",{className:"separator"},"/"):(0,e.createElement)("svg",{class:"separator",width:"8",height:"8",viewBox:"0 0 8 8"},(0,e.createElement)("path",{d:"M2,6.9L4.8,4L2,1.1L2.6,0l4,4l-4,4L2,6.9z"}))}),[]),o=(0,i.withSelect)((function(e){var t;return{title:(null===(t=e("core/editor"))||void 0===t?void 0:t.getEditedPostAttribute("title"))||""}}))((function(n){return(0,e.createElement)("span",null,(null==n?void 0:n.title)||(0,t.__)("Page","blocksy"))}));return(0,e.createElement)(React.Fragment,null,(0,e.createElement)("span",null,(0,e.createElement)("span",null,n),r),(0,e.createElement)("span",null,(0,e.createElement)("span",null,(0,t.__)("Subpage","blocksy")),s&&r),s&&(0,e.createElement)(o,null))},p=n(8441);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d.apply(this,arguments)}var f=function(t){let{label:n,resetAll:r,panelId:i,settings:a}=t;const l=(0,o.__experimentalUseMultipleOriginColorsAndGradients)();return(0,e.createElement)(p.__experimentalToolsPanel,{label:n,resetAll:r,panelId:i,hasInnerWrapper:!0,className:"color-block-support-panel",__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last"},(0,e.createElement)("div",{className:"color-block-support-panel__inner-wrapper"},(0,e.createElement)(o.__experimentalColorGradientSettingsDropdown,d({__experimentalIsRenderedInSidebar:!0,__experimentalHasMultipleOrigins:!0,__experimentalGroup:"bg",settings:a,panelId:i},l,{gradients:[],disableCustomGradients:!0}))))};var m=(0,o.withColors)({textColor:"color"},{linkColor:"color"},{linkHoverColor:"color"})((function(n){let{clientId:r,textColor:i,setTextColor:a,linkColor:l,setLinkColor:c,linkHoverColor:s,setLinkHoverColor:p,className:d}=n;const m=(0,e.useRef)(),g=(0,o.useBlockProps)({ref:m,className:{"ct-breadcrumbs":!0,className:d},style:{color:null==i?void 0:i.color,"--theme-link-initial-color":null==l?void 0:l.color,"--theme-link-hover-color":null==s?void 0:s.color}});return(0,e.createElement)(React.Fragment,null,(0,e.createElement)("div",g,(0,e.createElement)(u,null),(0,e.createElement)(o.InspectorControls,{group:"styles"},(0,e.createElement)(f,{label:(0,t.__)("Text Color","blocksy"),resetAll:function(){a(""),c(""),p("")},panelId:r,settings:[{colorValue:i.color,enableAlpha:!0,label:(0,t.__)("Text","blocksy"),onColorChange:a},{colorValue:l.color,enableAlpha:!0,label:(0,t.__)("Link Initial","blocksy"),onColorChange:c},{colorValue:s.color,enableAlpha:!0,label:(0,t.__)("Link Hover","blocksy"),onColorChange:p}]}))))})),g=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"blocksy/breadcrumbs","category":"blocksy-blocks","attributes":{"textColor":{"type":"string"},"customTextColor":{"type":"string"},"linkColor":{"type":"string"},"customLinkColor":{"type":"string"},"linkHoverColor":{"type":"string"},"customLinkHoverColor":{"type":"string"}},"supports":{"className":false,"spacing":{"margin":true,"__experimentalDefaultControls":{"margin":true}}},"providesContext":{"textColor":"textColor","linkColor":"linkColor","linkHoverColor":"linkHoverColor"}}');function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}(0,r.registerBlockType)("blocksy/breadcrumbs",b(b({},g),{},{title:(0,t.__)("Breadcrumbs","blocksy"),description:(0,t.__)("Insert the breadcrumbs navigation anywhere you might want.","blocksy"),icon:{src:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)("path",{d:"M4,10.5h6v3H4V10.5z M12,13.5h3v-3h-3V13.5z M17,10.5v3h3v-3H17z"}))},edit:function(t){return(0,e.createElement)(m,t)},save:function(){return null}}));var y=n(2568),w=n.n(y);function O(e){if(Array.isArray(e))return`[${e.map((function(e){return O(e)})).join(",")}]`;if("object"==typeof e&&null!==e){let t="";const n=Object.keys(e).sort();t+=`{${JSON.stringify(n)}`;for(let r=0;r<n.length;r++)t+=`${O(e[n[r]])},`;return`${t}}`}return`${JSON.stringify(e)}`}const _={},E=function(t){let{attributes:n,previewedPostId:r}=t;const[o,i]=(0,e.useState)(null);let[{controller:a},l]=(0,e.useState)({controller:null});return(0,e.useEffect)((function(){const e={attributes:n,previewedPostId:r},t=w()(O(e));if(_[t])i(_[t]);else{a&&a.abort(),"AbortController"in window&&(a=new AbortController,l({controller:a}));let e=function(e){e||(e=location.search);var t=e.substr(1),n={};return t.split("&").forEach((function(e){var t=e.split("=");n[t[0]]=decodeURIComponent(t[1])})),n}(location.search);fetch(`${wp.ajax.settings.url}?action=blocksy_get_posts_block_data${e.lang?"&lang="+e.lang:""}`,{headers:{Accept:"application/json","Content-Type":"application/json"},method:"POST",signal:a.signal,body:JSON.stringify({attributes:n,previewedPostId:r})}).then((function(e){return e.json()})).then((function(e){let{success:n,data:r}=e;n&&(_[t]=r,l({controller:null}),i(r))}))}}),[n,r]),{blockData:o}};var P=function(t){let{attributes:n,postId:r,uniqueId:o}=t;const{blockData:i}=E({attributes:n,previewedPostId:r});return i&&i.block?(0,e.createElement)(React.Fragment,null,(0,e.createElement)(e.RawHTML,null,i.block),i&&i.dynamic_styles&&(0,e.createElement)("style",null,i.dynamic_styles)):(0,e.createElement)(p.Spinner,null)},C=n(5697);const k=function(e){return e.split("-")[0]};function j(e){let t=!1;const n=function(e){const t=document.querySelectorAll(".edit-site-visual-editor__editor-canvas");let n=document;for(let r=0;r<t.length;r++)if(null!==t[r].contentDocument.getElementById("block-"+e.clientId)){n=t[r].contentDocument;break}return n}(e);return n.querySelectorAll(`[data-id="${e.attributes.uniqueId}"]`).length>1&&(t=!0),t}var S=function(n){let{clientId:a,setAttributes:l,setIsPatternSelectionModalOpen:c}=n;const{replaceInnerBlocks:s}=(0,i.useDispatch)(o.store);return(0,e.createElement)("div",{className:"components-placeholder is-large"},(0,e.createElement)("div",{className:"components-placeholder__label"},(0,e.createElement)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true",focusable:"false"},(0,e.createElement)("path",{d:"M5.5 18v-1c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v1c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5zm.5 2c-1.1 0-2-.9-2-2v-1c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2v1c0 1.1-.9 2-2 2H6zm-.5-9V6c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v5c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5zm.5 2c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2v5c0 1.1-.9 2-2 2H6zm8.5 0v5c0 .3.2.5.5.5h3c.3 0 .5-.2.5-.5v-5c0-.3-.2-.5-.5-.5h-3c-.3 0-.5.2-.5.5zM13 18c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-5c0-1.1-.9-2-2-2h-3c-1.1 0-2 .9-2 2v5zm1.5-11V6c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v1c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5zm.5 2c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2v1c0 1.1-.9 2-2 2h-3z","fill-rule":"evenodd"})),(0,t.__)("Advanced Posts","blocksy")),(0,e.createElement)("fieldset",{className:"components-placeholder__fieldset"},(0,e.createElement)("legend",{className:"components-placeholder__instructions"},(0,t.__)("Inherit the Customizer layout, start with a pattern or create a custom layout","blocksy")),(0,e.createElement)("button",{className:"components-button is-primary",onClick:function(e){e.preventDefault(),l({design:"default"})}},(0,t.__)("Inherit From Customizer","blocksy")),(0,e.createElement)("button",{className:"components-button is-primary",onClick:function(e){e.preventDefault(),c(!0)}},(0,t.__)("Choose Pattern","blocksy")),(0,e.createElement)("button",{className:"components-button is-primary",onClick:function(e){e.preventDefault(),s(a,(0,r.createBlocksFromInnerBlocksTemplate)([["blocksy/post-template",{},[["blocksy/dynamic-data",{tagName:"h2",field:"wp:title",has_title_link:"yes"}],["blocksy/dynamic-data",{field:"wp:date"}],["blocksy/dynamic-data",{field:"wp:excerpt"}]]]]),!1)}},(0,t.__)("Create Custom Layout","blocksy"))))},x=n(4184),I=n.n(x),D=window.wp.primitives;var N=(0,e.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(D.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));var T=(0,e.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(D.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));var A=(0,e.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(D.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})),R=window.wp.a11y;var M=function(n){let{items:r,selectedItems:o,onItemClick:i,label:a,resetAll:l}=n;const c=o.length>0;return(0,e.createElement)(p.__experimentalHStack,null,(0,e.createElement)(p.__experimentalHeading,{style:{margin:0},level:2},a),(0,e.createElement)(p.DropdownMenu,{icon:0===o.length?N:T,label:(0,t.__)("Parameters options","blocksy"),toggleProps:{isSmall:!0,describedBy:0===o.length?(0,t.__)("All options are currently hidden","blocksy"):void 0}},(function(){return(0,e.createElement)(React.Fragment,null,r.map((function(t,n){return(0,e.createElement)(p.MenuGroup,{key:n,label:t.label},t.items.map((function(t,n){const r=o.includes(t.label);return(0,e.createElement)(p.MenuItem,{key:n,icon:r?A:null,isSelected:r,onClick:function(){return i(t.label)}},t.label)})))})),(0,e.createElement)(p.MenuGroup,null,(0,e.createElement)(p.MenuItem,{"aria-disabled":!c,variant:"tertiary",onClick:function(){c&&(l(),(0,R.speak)((0,t.__)("All options reset","blocksy"),"assertive"))}},(0,t.__)("Reset all","blocksy"))))})))};var B=function(t){let{className:n,attributes:r,setAttributes:o,resetAll:i,items:a,label:l}=t;const c=a.reduce((function(e,t){return[...e,...t.items.filter((function(e){return e.hasValue()})).map((function(e){return e.label}))]}),[]),[s,u]=(0,e.useState)([]),p=[...new Set([...s,...c])];return(0,e.createElement)("div",{className:I()("ct-tools-panel",n)},(0,e.createElement)(M,{label:l,resetAll:function(){u([]),i()},items:a,selectedItems:p,attributes:r,setAttributes:o,onItemClick:function(e){if(!p.includes(e))return void u([...s,e]);const t=a.reduce((function(e,t){return[...e,...t.items]}),[]).find((function(t){return t.label===e}));u(s.filter((function(t){return t!==e}))),t.reset()}}),(0,e.createElement)("div",{className:"ct-tools-panel-items"},a.reduce((function(e,t){return[...e,...t.items]}),[]).filter((function(e){return p.includes(e.label)})).map((function(e){return e.render()}))))},F=window.wp.coreData;function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L(Object(n),!0).forEach((function(t){H(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function H(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const V=function(e){return(0,i.useSelect)((function(t){const{getTaxonomies:n}=t(F.store);return n({type:e,per_page:-1,context:"view"})}),[e])};var U=window.wp.compose;function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(Object(n),!0).forEach((function(t){W(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function W(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const q=[],Z={order:"asc",_fields:"id,name,slug",context:"view"},K=function(e,t){var n,r;const o=(null==t?void 0:t.slug)||(null==e||null===(n=e.find((function(e){return e.name===t})))||void 0===n?void 0:n.slug);if(o)return o;const i=t.toLocaleLowerCase();return null==e||null===(r=e.find((function(e){return e.name.toLocaleLowerCase()===i})))||void 0===r?void 0:r.slug};function Y(n){let{taxonomy:r,termIds:o,onChange:a,label:l=!1}=n;const[c,s]=(0,e.useState)(""),[u,d]=(0,e.useState)(q),[f,m]=(0,e.useState)(q),g=(0,U.useDebounce)(s,250),{searchResults:h,searchHasResolved:b}=(0,i.useSelect)((function(e){if(!c)return{searchResults:q,searchHasResolved:!0};const{getEntityRecords:t,hasFinishedResolution:n}=e(F.store),o=["taxonomy",r.slug,G(G({},Z),{},{search:c,orderby:"name",per_page:20})];return{searchResults:t(...o),searchHasResolved:n("getEntityRecords",o)}}),[c,o]),v=(0,i.useSelect)((function(e){if(null==o||!o.length)return q;const{getEntityRecords:t}=e(F.store);return t("taxonomy",r.slug,G(G({},Z),{},{slug:o,per_page:o.length}))}),[o]);(0,e.useEffect)((function(){if(null!=o&&o.length||d(q),null==v||!v.length)return;const e=o.reduce((function(e,t){const n=v.find((function(e){return e.slug===t}));return n&&e.push({id:t,slug:t,value:n.name}),e}),[]);d(e)}),[o,v]),(0,e.useEffect)((function(){b&&m(h.map((function(e){return e.name})))}),[h,b]);return(0,e.createElement)(p.FormTokenField,{label:l,value:u,onInputChange:g,suggestions:f,onChange:function(e){const t=new Set;for(const n of e){const e=K(h,n);e&&t.add(e)}m(q),a(Array.from(t))},__experimentalShowHowTo:!1,__nextHasNoMarginBottom:!0,placeholder:(0,t.__)("Search for a term","blocksy")})}function X(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?X(Object(n),!0).forEach((function(t){Q(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Q(e,t,n){return(t=te(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ee(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function te(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}const ne=function(n){let{attributes:r,attributes:{post_type:o},previewedPostMatchesType:i,setAttributes:a}=n;const l=V(o);let c=[];return l&&l.length>0&&(c=[...l.map((function(n){return function(n){let{taxonomy:r,attributes:o,setAttributes:i,previewedPostMatchesType:a}=n;return{label:(0,t.sprintf)((0,t.__)("Include %s","blocksy"),r.name),hasValue:function(){return o.include_term_ids[r.slug]},reset:function(){const e=o.include_term_ids||{},t=r.slug,{[t]:n}=e,a=ee(e,[t].map(te));i({include_term_ids:a})},render:function(){const n=o.include_term_ids[r.slug]||{strategy:"all",terms:[]};return(0,e.createElement)("div",null,(0,e.createElement)(p.__experimentalToggleGroupControl,{label:(0,t.sprintf)((0,t.__)("Include %s","blocksy"),r.name),value:n.strategy,isBlock:!0,onChange:function(e){i({include_term_ids:J(J({},o.include_term_ids),{},{[r.slug]:J(J({},n),{},{strategy:e})})})}},(0,e.createElement)(p.__experimentalToggleGroupControlOption,{value:"all",label:(0,t.__)("All","blocksy")}),(0,e.createElement)(p.__experimentalToggleGroupControlOption,{value:"specific",label:(0,t.__)("Specific","blocksy")}),a&&(0,e.createElement)(p.__experimentalToggleGroupControlOption,{value:"related",label:(0,t.__)("Related","blocksy")})),"specific"===n.strategy&&(0,e.createElement)(Y,{taxonomy:r,termIds:n.terms,onChange:function(e){i({include_term_ids:J(J({},o.include_term_ids),{},{[r.slug]:J(J({},n),{},{terms:e})})})}}))}}}({taxonomy:n,attributes:r,setAttributes:a,previewedPostMatchesType:i})})),...l.map((function(n){return function(n){let{taxonomy:r,attributes:o,setAttributes:i}=n;return{label:(0,t.sprintf)((0,t.__)("Exclude %s","blocksy"),r.name),hasValue:function(){return o.exclude_term_ids[r.slug]},reset:function(){const e=o.exclude_term_ids||{},t=r.slug,{[t]:n}=e,a=ee(e,[t].map(te));i({exclude_term_ids:a})},render:function(){const n=o.exclude_term_ids[r.slug]||{strategy:"specific",terms:[]};return(0,e.createElement)(Y,{label:(0,t.sprintf)((0,t.__)("Exclude %s","blocksy"),r.name),taxonomy:r,termIds:n.terms,onChange:function(e){i({exclude_term_ids:J(J({},o.exclude_term_ids),{},{[r.slug]:J(J({},n),{},{terms:e})})})}})}}}({taxonomy:n,attributes:r,setAttributes:a})}))]),{taxonomiesGroup:c.length>0?{label:(0,t.__)("Taxonomies","blocksy"),items:c}:null}};var re=function(n){let{context:r,attributes:i,attributes:{post_type:a},setAttributes:l}=n;const{taxonomiesGroup:c}=ne({attributes:i,setAttributes:l,previewedPostMatchesType:i.post_type===r.postType});return(0,e.createElement)(o.InspectorControls,null,(0,e.createElement)(B,{className:"ct-query-parameters-component",attributes:i,setAttributes:l,resetAll:function(){l({offset:0,sticky_posts:"include",orderby:"post_date",order:"desc",include_term_ids:{},exclude_term_ids:{}})},items:[{label:(0,t.__)("General","blocksy"),items:[{label:(0,t.__)("Offset","blocksy"),hasValue:function(){return 0!==i.offset},reset:function(){l({offset:0})},render:function(){return(0,e.createElement)(C.Z,{purpose:"gutenberg",onChange:function(e,t){l({[e]:t})},options:{offset:{type:"ct-number",label:(0,t.__)("Offset","blocksy"),value:"",min:0,max:500}},value:i,hasRevertButton:!1})}},{label:(0,t.__)("Order by","blocksy"),hasValue:function(){return"post_date"!==i.orderby},reset:function(){l({orderby:"post_date"})},render:function(){return(0,e.createElement)(C.Z,{purpose:"gutenberg",onChange:function(e,t){l({[e]:t})},options:{orderby:{type:"ct-select",label:(0,t.__)("Order by","blocksy"),value:"",choices:[{key:"title",value:(0,t.__)("Title","blocksy")},{key:"post_date",value:(0,t.__)("Publish Date","blocksy")},{key:"modified_date",value:(0,t.__)("Modified Date","blocksy")},{key:"comment_count",value:(0,t.__)("Most commented","blocksy")},{key:"author",value:(0,t.__)("Author","blocksy")},{key:"rand",value:(0,t.__)("Random","blocksy")},{key:"menu_order",value:(0,t.__)("Menu Order","blocksy")}]}},value:i,hasRevertButton:!1})}},{label:(0,t.__)("Order","blocksy"),hasValue:function(){return"desc"!==i.order},reset:function(){l({order:"desc"})},render:function(){return(0,e.createElement)(C.Z,{purpose:"gutenberg",onChange:function(e,t){l({[e]:t})},options:{order:{type:"ct-select",label:(0,t.__)("Order","blocksy"),value:"",choices:[{key:"DESC",value:(0,t.__)("Descending","blocksy")},{key:"ASC",value:(0,t.__)("Ascending","blocksy")}]}},value:i,hasRevertButton:!1})}},{label:(0,t.__)("Sticky Posts","blocksy"),hasValue:function(){return"include"!==i.sticky_posts},reset:function(){l({sticky_posts:"include"})},render:function(){return(0,e.createElement)(C.Z,{purpose:"gutenberg",onChange:function(e,t){l({[e]:t})},options:{sticky_posts:{type:"ct-select",label:(0,t.__)("Sticky Posts","blocksy"),value:"include",choices:[{key:"include",value:(0,t.__)("Include","blocksy")},{key:"exclude",value:(0,t.__)("Exclude","blocksy")},{key:"only",value:(0,t.__)("Only","blocksy")}]}},value:i,hasRevertButton:!1})}}]},...c?[c]:[]],label:(0,t.__)("Parameters","blocksy")}))};function oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(n),!0).forEach((function(t){ae(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ae(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let le=null,ce=new AbortController;var se=n(6826),ue=n.n(se);function pe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e=ue()(e),e=e.trim().toLowerCase(),e}function de(e,t){const n=pe(t),r=pe(e.title);let o=0;if(n===r)o+=30;else if(r.startsWith(n))o+=20;else{n.split(" ").every((function(e){return r.includes(e)}))&&(o+=10)}return o}var fe=function(n){let{clientId:a,attributes:l,setIsPatternSelectionModalOpen:c,postType:s}=n;const[u,d]=(0,e.useState)(""),{replaceBlock:f,selectBlock:m}=(0,i.useDispatch)(o.store),[g,h]=(0,e.useState)([]);(0,e.useEffect)((function(){new Promise((function(e){le?e(le):fetch(`${wp.ajax.settings.url}?action=blocksy_get_posts_block_patterns`,{headers:{Accept:"application/json","Content-Type":"application/json"},method:"POST",body:JSON.stringify({}),signal:ce.signal}).then((function(e){return e.json()})).then((function(t){let{success:n,data:o}=t;n&&(le=o.patterns.map((function(e){return ie(ie({},e),{},{blocks:(0,r.parse)(e.content,{__unstableSkipMigrationLogs:!0})})})),e(le))}))})).then((function(e){h(e)}))}),[]);const b=(0,e.useMemo)((function(){return{previewPostType:s}}),[s]),v=(0,e.useMemo)((function(){return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!t)return e;const n=e.map((function(e){return[e,de(e,t)]})).filter((function(e){let[,t]=e;return t>0}));return n.sort((function(e,t){let[,n]=e,[,r]=t;return r-n})),n.map((function(e){let[t]=e;return t}))}(g,u)}),[g,u]),y=(0,U.useAsyncList)(v);return(0,e.createElement)(p.Modal,{overlayClassName:"block-library-query-pattern__selection-modal",title:(0,t.__)("Choose a pattern","blocksy"),onRequestClose:function(){return c(!1)},isFullScreen:!0},(0,e.createElement)("div",{className:"block-library-query-pattern__selection-content"},(0,e.createElement)("div",{className:"block-library-query-pattern__selection-search"},(0,e.createElement)(p.SearchControl,{__nextHasNoMarginBottom:!0,onChange:d,value:u,label:(0,t.__)("Search for patterns","blocksy"),placeholder:(0,t.__)("Search","blocksy")})),(0,e.createElement)(o.BlockContextProvider,{value:b},(0,e.createElement)(o.__experimentalBlockPatternsList,{blockPatterns:v,shownPatterns:y,onClickPattern:function(e,t){const{newBlocks:n,queryClientIds:o}=function(e,t){const n=e.map((function(e){return(0,r.cloneBlock)(e)})),o=[],i=[...n];for(;i.length>0;){var a;const e=i.shift();"blocksy/query"===e.name&&(e.attributes.uniqueId="",o.push(e.clientId)),null===(a=e.innerBlocks)||void 0===a||a.forEach((function(e){i.push(e)}))}return{newBlocks:n,queryClientIds:o}}(t);f(a,n),o[0]&&m(o[0])}}))))};function me(){return me=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},me.apply(this,arguments)}function ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function he(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ge(Object(n),!0).forEach((function(t){be(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function be(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ve=function(n){let{clientId:r,className:a,attributes:l,setAttributes:c,context:s}=n;const u=(0,o.useInnerBlocksProps)({},{}),d=(0,i.useSelect)((function(e){return!!e(o.store).getBlocks(r).length}),[r]),f=!d&&"default"!==l.design,{postTypesSelectOptions:m}=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{hasPages:n=!1}=t;const r=(0,i.useSelect)((function(e){var t;const{getPostTypes:r}=e(F.store),o=["attachment","product",...n?[]:["page"]];return null===(t=r({per_page:-1}))||void 0===t?void 0:t.filter((function(e){let{viewable:t,slug:n}=e;return t&&!o.includes(n)&&!n.includes("ct_")&&!n.includes("blc-")}))}),[n]);return{postTypesTaxonomiesMap:(0,e.useMemo)((function(){if(null!=r&&r.length)return r.reduce((function(e,t){return e[t.slug]=t.taxonomies,e}),{})}),[r]),postTypesSelectOptions:(0,e.useMemo)((function(){return(r||[]).reduce((function(e,t){return z(z({},e),{},{[t.slug]:t.labels.singular_name})}),{})}),[r])}}({hasPages:d}),{uniqueId:g,props:h}=function(t){let{attributes:n,clientId:r,setAttributes:o}=t;(0,e.useEffect)((function(){n.uniqueId&&!j({attributes:n,clientId:r})||o({uniqueId:k(r)})}),[r]);let i=n.uniqueId||k(r);return{uniqueId:i,props:{"data-id":i}}}({attributes:l,setAttributes:c,clientId:r}),{postId:b,postType:v}=s,y=(0,e.useRef)(),w=(0,o.__experimentalUseBorderProps)(l),O=(0,o.useBlockProps)({ref:y,className:a,style:he({},w.style)}),[_,E]=(0,e.useState)(!1);return(0,e.createElement)(React.Fragment,null,_&&(0,e.createElement)(fe,{clientId:r,attributes:l,setIsPatternSelectionModalOpen:E,postType:l.post_type}),f?(0,e.createElement)("div",me({},O,h),(0,e.createElement)(S,{setIsPatternSelectionModalOpen:E,attributes:l,setAttributes:c,clientId:r})):(0,e.createElement)("div",me({},O,h),"default"===l.design&&(0,e.createElement)(P,{uniqueId:g,attributes:l,postId:b}),d&&(0,e.createElement)("div",u)),(0,e.createElement)(o.BlockControls,null,(0,e.createElement)(p.ToolbarGroup,null,(0,e.createElement)(p.ToolbarButton,{className:"components-toolbar__control",icon:"layout",label:(0,t.__)("Reset layout","blocksy"),disabled:f,onClick:function(){d?(0,i.dispatch)("core/block-editor").replaceInnerBlocks(r,[],!1):(0,i.dispatch)("core/block-editor").updateBlockAttributes(r,{design:""})}}))),!f&&(0,e.createElement)(React.Fragment,null,(0,e.createElement)(o.InspectorControls,null,(0,e.createElement)(p.PanelBody,null,(0,e.createElement)(C.Z,{purpose:"gutenberg",onChange:function(e,t){c(he({[e]:t},"post_type"===e?{include_term_ids:{},exclude_term_ids:{},include_post_ids:{ids:[],current_post:!1},exclude_post_ids:{ids:[],current_post:!1}}:{}))},options:{post_type:{type:"ct-select",label:(0,t.__)("Post Type","blocksy"),value:"",defaultToFirstItem:!1,choices:m,purpose:"default"},limit:{type:"ct-number",label:(0,t.__)("Limit","blocksy"),value:"",min:1,max:30},has_pagination:{type:"ct-switch",label:(0,t.__)("Pagination","blocksy"),value:""}},value:l,hasRevertButton:!1}))),(0,e.createElement)(re,{attributes:l,setAttributes:c,context:s})),(0,e.createElement)(o.InspectorControls,{group:"advanced"},(0,e.createElement)(p.TextControl,{__nextHasNoMarginBottom:!0,autoComplete:"off",label:(0,t.__)("Block ID","blocksy"),value:g,onChange:function(e){},onFocus:function(e){e.target.select()},help:(0,t.__)("Please look at the documentation for more information on why this is useful.","blocksy")})))};var ye=function(t){const n=o.useBlockProps.save(),r=o.useInnerBlocksProps.save(n);return(0,e.createElement)("div",r)},we=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"blocksy/query","category":"blocksy-blocks","attributes":{"uniqueId":{"type":"string","default":""},"type":{"type":"string","default":"post"},"post_type":{"type":"string","default":"post"},"limit":{"type":"number","default":5},"include_term_ids":{"type":"object","default":{}},"exclude_term_ids":{"type":"object","default":{}},"include_post_ids":{"type":"object","default":{"ids":[],"current_post":false}},"exclude_post_ids":{"type":"object","default":{"ids":[],"current_post":false}},"order":{"type":"string","default":"desc"},"orderby":{"type":"string","default":"post_date"},"orderby_custom":{"type":"string","default":""},"offset":{"type":"number","default":0},"design":{"type":"string","default":""},"has_pagination":{"type":"string","default":"no"},"textColor":{"type":"string"},"customTextColor":{"type":"string"},"linkColor":{"type":"string"},"customLinkColor":{"type":"string"},"linkHoverColor":{"type":"string"},"customLinkHoverColor":{"type":"string"},"sticky_posts":{"type":"string","default":"include"}},"supports":{"align":["wide","full"],"html":false,"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"__experimentalBorder":{"color":true,"radius":true,"width":true,"__experimentalDefaultControls":{"color":true,"radius":true,"width":true},"__experimentalSelector":"img, .block-editor-media-placeholder, .wp-block-post-featured-image__overlay","__experimentalSkipSerialization":true},"color":{"gradients":true,"link":false,"__experimentalDefaultControls":{"text":false,"background":true,"link":false}}},"usesContext":["postId","postType"],"providesContext":{"uniqueId":"uniqueId","post_type":"post_type","limit":"limit","order":"order","orderby":"orderby","sticky_posts":"sticky_posts","orderby_custom":"orderby_custom","offset":"offset","has_pagination":"has_pagination","include_term_ids":"include_term_ids","exclude_term_ids":"exclude_term_ids"}}');function Oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(n),!0).forEach((function(t){Ee(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ee(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}(0,r.registerBlockType)("blocksy/query",_e(_e({},we),{},{title:(0,t.__)("Advanced Posts","blocksy"),description:(0,t.__)("Advanced Posts","blocksy"),icon:{src:(0,e.createElement)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",context:"list-view","aria-hidden":"true",focusable:"false"},(0,e.createElement)("path",{d:"M5.5 18v-1c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v1c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5zm.5 2c-1.1 0-2-.9-2-2v-1c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2v1c0 1.1-.9 2-2 2H6zm-.5-9V6c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v5c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5zm.5 2c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2v5c0 1.1-.9 2-2 2H6zm8.5 0v5c0 .3.2.5.5.5h3c.3 0 .5-.2.5-.5v-5c0-.3-.2-.5-.5-.5h-3c-.3 0-.5.2-.5.5zM13 18c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-5c0-1.1-.9-2-2-2h-3c-1.1 0-2 .9-2 2v5zm1.5-11V6c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v1c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5zm.5 2c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2v1c0 1.1-.9 2-2 2h-3z","fill-rule":"evenodd"}))},edit:function(t){return(0,e.createElement)(ve,t)},save:function(){return(0,e.createElement)(ye,null)}}));var Pe=(0,e.createElement)(D.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)(D.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 Ce=(0,e.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(D.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-7.8 16.5H5c-.3 0-.5-.2-.5-.5v-6.2h6.8v6.7zm0-8.3H4.5V5c0-.3.2-.5.5-.5h6.2v6.7zm8.3 7.8c0 .3-.2.5-.5.5h-6.2v-6.8h6.8V19zm0-7.8h-6.8V4.5H19c.3 0 .5.2.5.5v6.2z",fillRule:"evenodd",clipRule:"evenodd"}));function ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function je(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ke(Object(n),!0).forEach((function(t){Se(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Se(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xe(){return xe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xe.apply(this,arguments)}const Ie=[];function De(){const t=(0,o.useInnerBlocksProps)({className:"wp-block-post"},{template:Ie,__unstableDisableLayoutClassNames:!0});return(0,e.createElement)("article",t)}const Ne=(0,e.memo)((function(t){let{blocks:n,blockContextId:r,isHidden:i,setActiveBlockContextId:a}=t;const l=(0,o.__experimentalUseBlockPreview)({blocks:n,props:{className:"wp-block-post"}}),c=function(){a(r)},s={display:i?"none":void 0};return(0,e.createElement)("article",xe({},l,{tabIndex:0,role:"button",onClick:c,onKeyPress:c,style:s}))}));var Te=function(n){let{clientId:r,className:a,attributes:l,attributes:{layout:c},setAttributes:s,context:u,__unstableLayoutClassNames:d}=n;const{postId:f,postType:m}=u,[g,h]=(0,e.useState)(),{type:b,columnCount:v=3}=c||{},y=(0,o.useBlockProps)({className:I()(d,{[`columns-${v}`]:"grid"===b&&v})}),{blockData:w}=((0,o.useInnerBlocksProps)({},{}),E({attributes:u,previewedPostId:f})),{blocks:O}=(0,i.useSelect)((function(e){const{getBlocks:t}=e(o.store);return{blocks:t(r)}}),[r]);if(!w)return(0,e.createElement)("p",y,(0,e.createElement)(p.Spinner,null));let _=w.all_posts.map((function(e){return{postId:e.ID,postType:e.post_type}}));const P=function(e){return s({layout:je(je({},c),e)})},C=[{icon:Pe,title:(0,t.__)("List view"),onClick:function(){return P({type:"default"})},isActive:"default"===b||"constrained"===b},{icon:Ce,title:(0,t.__)("Grid view"),onClick:function(){return P({type:"grid",columnCount:v})},isActive:"grid"===b}];return(0,e.createElement)(React.Fragment,null,(0,e.createElement)(o.BlockControls,null,(0,e.createElement)(p.ToolbarGroup,{controls:C})),(0,e.createElement)("div",y,_.map((function(t){var n,r;return(0,e.createElement)(o.BlockContextProvider,{key:t.postId,value:t},t.postId===(g||(null===(n=_[0])||void 0===n?void 0:n.postId))?(0,e.createElement)(De,null):null,(0,e.createElement)(Ne,{blocks:O,blockContextId:t.postId,setActiveBlockContextId:h,isHidden:t.postId===(g||(null===(r=_[0])||void 0===r?void 0:r.postId))}))}))),w&&"yes"===u.has_pagination&&(0,e.createElement)(e.RawHTML,null,w.pagination_output))};var Ae=function(){return(0,e.createElement)(o.InnerBlocks.Content,null)},Re=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"blocksy/post-template","parent":"blocksy/query","title":"Post Template","category":"theme","description":"Contains the block elements used to render a post, like the title, date, featured image, content or excerpt, and more.","textdomain":"default","supports":{"reusable":false,"html":false,"layout":true,"spacing":{"blockGap":{"__experimentalDefault":"1.25em"},"__experimentalDefaultControls":{"blockGap":true}}},"usesContext":["uniqueId","post_type","limit","order","orderby","orderby_custom","offset","postId","postType","has_pagination","include_term_ids","exclude_term_ids","sticky_posts"]}');function Me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Me(Object(n),!0).forEach((function(t){Fe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}(0,r.registerBlockType)("blocksy/post-template",Be(Be({},Re),{},{title:(0,t.__)("Post Template","blocksy"),description:(0,t.__)("Post Template","blocksy"),icon:{src:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",context:"list-view","aria-hidden":"true",focusable:"false"},(0,e.createElement)("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"}))},edit:function(t){return(0,e.createElement)(Te,t)},save:Ae}));var Le=n(7686);const ze=function(e){return Object.entries((0,Le.JS)(e)).reduce((function(e,t){const n=t[1].type;let r="string";return"ct-number"===n&&(r="number"),"ct-image-uploader"===n&&(r="object"),"ct-checkboxes"===n&&(r="object"),"ct-layers"===n&&(r="array"),e[t[0]]={type:r,default:t[1].value},e}),{})},He=function(e){var t,n;return(null===(t=window.ct_localizations||window.ct_customizer_localizations)||void 0===t||null===(n=t.gutenberg_blocks_data)||void 0===n?void 0:n[e])||[]},Ve={};var Ue=function(t,n,r){const[o,i]=(0,e.useState)([]),[a,l]=(0,e.useState)([]),c=(0,e.useCallback)((async function(){const e=new FormData,a=JSON.stringify(n);var c;(e.append("action","blocksy_get_dynamic_block_view"),e.append("block",t),e.append("attributes",a),Ve[a])?(i(r(Ve[a])),l(!1)):(o||l(!0),fetch((null===(c=window.ct_localizations||ct_customizer_localizations)||void 0===c?void 0:c.ajax_url)||wp.ajax.settings.url,{method:"POST",body:e}).then((function(e){return e.json()})).then((function(e){let{data:{content:t}}=e;i(r(t)),l(!1),Ve[a]=t})))}),[n,o]);return(0,e.useEffect)((function(){c()}),[n]),{isLoading:a,preview:o}};const $e=function(e){return Object.keys(e).reduce((function(t,n){return t[n]={type:"string",default:e[n]},t}),{})},Ge={textColor:"",customTextColor:"",textHoverColor:"",customTextHoverColor:"",iconsColor:"",customIconsColor:"",iconsHoverColor:"",customIconsHoverColor:"",borderColor:"rgba(218, 222, 228, 0.5)",customBorderColor:"rgba(218, 222, 228, 0.5)",borderHoverColor:"rgba(218, 222, 228, 0.7)",customBorderHoverColor:"rgba(218, 222, 228, 0.7)",backgroundColor:"rgba(218, 222, 228, 0.5)",customBackgroundColor:"rgba(218, 222, 228, 0.5)",backgroundHoverColor:"rgba(218, 222, 228, 0.7)",customBackgroundHoverColor:"rgba(218, 222, 228, 0.7)"},We=$e(Ge);function qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qe(Object(n),!0).forEach((function(t){Ke(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ke(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ye=Ze({about_alignment:"center",avatar_shape:"round",about_avatar_size:"small",post_widget_thumb_size:"default",about_social_type:"rounded",about_social_icons_fill:"outline",about_social_icons_color:"official",about_text:"Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et dolore magna aliqua tincidunt tortor aliquam.",about_name:"John Doe",about_items_spacing:"",about_social_icons_size:""},Ge);var Xe=function(t){let{attributes:n,setAttributes:r}=t;const i=(0,e.useRef)({image:"",socials:""}),{about_name:a,about_text:l,about_source:c,about_alignment:s,avatar_shape:u,about_avatar_size:d,about_social_type:f,about_social_icons_fill:m,about_items_spacing:g,about_social_icons_size:h,about_social_icons_color:b}=n,v=(0,e.useCallback)((function(e){const t=document.createElement("div");t.innerHTML=e;const n=t.querySelector(".ct-about-me-block");if(n){n.querySelector("div").dataset.alignment=s;const e=n.querySelector(".ct-media-container");e&&(e.dataset.shape=u,e.dataset.size=d);const t=n.querySelector(".ct-social-box");var r;if(t&&(t.dataset.iconsType="simple"===f?f:`${f}:${m}`,t.dataset.color=b),"custom"===c)i.current={image:(null===(r=n.querySelector(".ct-media-container"))||void 0===r?void 0:r.outerHTML)||"",socials:(null==t?void 0:t.outerHTML)||""}}return n.innerHTML}),[s,u,c,d,f,m,h,g,b]),{isLoading:y,preview:w}=Ue("about-me",Ze(Ze({},n),Ye),v);return y?(0,e.createElement)(p.Spinner,null):"from_wp"===c?(0,e.createElement)(e.RawHTML,null,w):(0,e.createElement)("div",{"data-alignment":s},(0,e.createElement)(e.RawHTML,null,i.current.image),(0,e.createElement)("div",{className:"ct-about-me-name"},(0,e.createElement)(o.RichText,{tagName:"span",value:a,placeholder:"User Name",onChange:function(e){return r({about_name:e})}})),(0,e.createElement)(o.RichText,{tagName:"div",className:"ct-about-me-text",value:l,placeholder:"User Description",onChange:function(e){return r({about_text:e})}}),(0,e.createElement)(e.RawHTML,null,i.current.socials))},Je=window.blocksyOptions;var Qe=function(t){let{attributes:n,setAttributes:r,options:i}=t;return(0,e.createElement)(o.InspectorControls,null,(0,e.createElement)(p.PanelBody,null,(0,e.createElement)(Je.OptionsPanel,{purpose:"gutenberg",onChange:function(e,t){r({[e]:t})},options:i,value:n,hasRevertButton:!1})))};function et(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?et(Object(n),!0).forEach((function(t){nt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):et(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rt=(0,o.withColors)({textColor:"color"},{textHoverColor:"color"},{iconsColor:"color"},{iconsHoverColor:"color"},{backgroundColor:"color"},{backgroundHoverColor:"color"},{borderColor:"color"},{borderHoverColor:"color"})((function(n){let{attributes:r,setAttributes:i,clientId:a,className:l,textColor:c,setTextColor:s,textHoverColor:u,setTextHoverColor:p,iconsColor:d,setIconsColor:m,iconsHoverColor:g,setIconsHoverColor:h,backgroundColor:b,setBackgroundColor:v,backgroundHoverColor:y,setBackgroundHoverColor:w,borderColor:O,setBorderColor:_,borderHoverColor:E,setBorderHoverColor:P}=n;const{about_alignment:C="center",about_items_spacing:k="",about_social_icons_size:j="",about_social_type:S="simple",about_social_icons_fill:x="outline",about_social_icons_color:I="default"}=r,D=(0,e.useRef)(),N=(0,o.useBlockProps)({ref:D,className:{"ct-about-me-block":!0,className:l},"data-alignment":C,style:tt(tt({"--theme-block-text-color":null==c?void 0:c.color,"--theme-link-hover-color":null==c?void 0:c.color,"--theme-icon-color":null==d?void 0:d.color,"--theme-icon-hover-color":null==g?void 0:g.color,"--background-color":"solid"===x?null==b?void 0:b.color:null==O?void 0:O.color,"--background-hover-color":"solid"===x?null==y?void 0:y.color:null==E?void 0:E.color},j?{"--theme-icon-size":`${j}px`}:{}),k?{"--items-spacing":`${k}px`}:{})});return(0,e.createElement)("div",N,(0,e.createElement)(Xe,{attributes:r,setAttributes:i}),(0,e.createElement)(Qe,{attributes:r,setAttributes:i,options:lt}),(0,e.createElement)(o.InspectorControls,{group:"styles"},(0,e.createElement)(f,{label:(0,t.__)("Text Color","blocksy"),resetAll:function(){s(Ge.textColor),p(Ge.textHoverColor)},panelId:a,settings:[{colorValue:c.color,enableAlpha:!0,label:(0,t.__)("Initial","blocksy"),onColorChange:function(e){return s(e||Ge.textColor)}},{colorValue:u.color,enableAlpha:!0,label:(0,t.__)("Hover","blocksy"),onColorChange:function(e){return p(e||Ge.textHoverColor)}}]}),"default"===I?(0,e.createElement)(f,{label:(0,t.__)("Icons Color","blocksy"),resetAll:function(){m(Ge.iconsColor),h(Ge.iconsHoverColor)},panelId:a,settings:[{colorValue:d.color,enableAlpha:!0,label:(0,t.__)("Initial","blocksy"),onColorChange:function(e){return m(e||Ge.iconsColor)}},{colorValue:g.color,enableAlpha:!0,label:(0,t.__)("Hover","blocksy"),onColorChange:function(e){return h(e||Ge.iconsHoverColor)}}]}):null,"simple"!==S&&"default"===I&&("solid"===x?(0,e.createElement)(f,{label:(0,t.__)("Icons Background Color","blocksy"),resetAll:function(){v(Ge.backgroundColor),w(Ge.backgroundHoverColor)},panelId:a,settings:[{colorValue:b.color,enableAlpha:!0,label:(0,t.__)("Initial","blocksy"),onColorChange:function(e){return v(e||Ge.backgroundColor)}},{colorValue:y.color,enableAlpha:!0,label:(0,t.__)("Hover","blocksy"),onColorChange:function(e){return w(e||Ge.backgroundHoverColor)}}]}):(0,e.createElement)(f,{label:(0,t.__)("Icons Border Color","blocksy"),resetAll:function(){_(Ge.borderColor),P(Ge.borderHoverColor)},panelId:a,settings:[{colorValue:O.color,enableAlpha:!0,label:(0,t.__)("Initial","blocksy"),onColorChange:function(e){return _(e||Ge.borderColor)}},{colorValue:E.color,enableAlpha:!0,label:(0,t.__)("Hover","blocksy"),onColorChange:function(e){return P(e||Ge.borderHoverColor)}}]}))))}));function ot(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function it(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ot(Object(n),!0).forEach((function(t){at(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ot(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function at(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const lt=He("about_me"),ct=ze(lt);(0,r.registerBlockType)("blocksy/about-me",{apiVersion:3,title:(0,t.__)("About Me Controls","blocksy"),icon:{src:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:"wc-block-editor-components-block-icon"},(0,e.createElement)("path",{d:"M5.8 13H4.2v-1c0-1.5 1.2-2.8 2.8-2.8h4c1.5 0 2.8 1.2 2.8 2.8v1h-1.5v-1c0-.7-.6-1.2-1.2-1.2H7c-.7 0-1.2.6-1.2 1.2v1zM4 21h9v-1.5H4V21zm0-5.5V17h16v-1.5H4zm2.5-10C6.5 4.1 7.6 3 9 3s2.5 1.1 2.5 2.5S10.4 8 9 8 6.5 6.9 6.5 5.5zm1.5 0c0 .6.4 1 1 1s1-.4 1-1-.4-1-1-1-1 .4-1 1z"}))},supports:{html:!1,multiple:!1,inserter:!1,lock:!1},parent:["blocksy/widgets-wrapper"],attributes:it(it({},ct),We),edit:function(t){return(0,e.createElement)(rt,t)},save:function(){return(0,e.createElement)("div",null,"Blocksy: About Me")}}),wp.blocks.registerBlockVariation("blocksy/widgets-wrapper",{name:"blocksy-about-me",title:(0,t.__)("About Me","blocksy"),attributes:{heading:(0,t.__)("About Me","blocksy"),block:"blocksy/about-me"},isDefault:!0,isActive:function(e){return"blocksy/about-me"===e.block},icon:{src:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:"wc-block-editor-components-block-icon"},(0,e.createElement)("path",{d:"M5.8 13H4.2v-1c0-1.5 1.2-2.8 2.8-2.8h4c1.5 0 2.8 1.2 2.8 2.8v1h-1.5v-1c0-.7-.6-1.2-1.2-1.2H7c-.7 0-1.2.6-1.2 1.2v1zM4 21h9v-1.5H4V21zm0-5.5V17h16v-1.5H4zm2.5-10C6.5 4.1 7.6 3 9 3s2.5 1.1 2.5 2.5S10.4 8 9 8 6.5 6.9 6.5 5.5zm1.5 0c0 .6.4 1 1 1s1-.4 1-1-.4-1-1-1-1 .4-1 1z"}))}});const st={textColor:"",customTextColor:"",textInitialColor:"",customTextInitialColor:"",textHoverColor:"",customTextHoverColor:"",iconsColor:"",customIconsColor:"",iconsHoverColor:"",customIconsHoverColor:"",borderColor:"rgba(218, 222, 228, 0.5)",customBorderColor:"rgba(218, 222, 228, 0.5)",borderHoverColor:"rgba(218, 222, 228, 0.7)",customBorderHoverColor:"rgba(218, 222, 228, 0.7)",backgroundColor:"rgba(218, 222, 228, 0.5)",customBackgroundColor:"rgba(218, 222, 228, 0.5)",backgroundHoverColor:"rgba(218, 222, 228, 0.7)",customBackgroundHoverColor:"rgba(218, 222, 228, 0.7)"},ut=$e(st);function pt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pt(Object(n),!0).forEach((function(t){ft(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ft(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const mt=dt({contacts_icons_size:20,contacts_items_spacing:"",contacts_icon_shape:"rounded",contacts_icon_fill_type:"outline",contact_link_target:"no",contact_text:"",contacts_items_direction:"column",link_icons:"no"},st);var gt=function(t){let{attributes:n}=t;const{contacts_icons_size:r=20,contacts_items_spacing:o="",contacts_icon_shape:i="rounded",contacts_icon_fill_type:a="outline",contact_link_target:l="no",contacts_items_direction:c="column"}=n,s=(0,e.useCallback)((function(e){const t=document.createElement("div");t.innerHTML=e;const n=t.querySelector(".ct-contact-info-block ul"),r=t.querySelectorAll("a");return r&&r.forEach((function(e){e.target="yes"===l?"_blank":"_self"})),n.innerHTML}),[r,i,a,l,c,o]),{isLoading:u,preview:d}=Ue("contact-info",dt(dt({},n),mt),s);return u?(0,e.createElement)(p.Spinner,null):(0,e.createElement)("ul",{"data-icons-type":"simple"===i?i:`${i}:${a}`,dangerouslySetInnerHTML:{__html:d}})};function ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ht(Object(n),!0).forEach((function(t){vt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ht(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yt,wt=(0,o.withColors)({textColor:"color"},{textInitialColor:"color"},{textHoverColor:"color"},{iconsColor:"color"},{iconsHoverColor:"color"},{backgroundColor:"color"},{backgroundHoverColor:"color"},{borderColor:"color"},{borderHoverColor:"color"})((function(n){let{attributes:r,setAttributes:i,clientId:a,className:l,textColor:c,setTextColor:s,textInitialColor:u,setTextInitialColor:p,textHoverColor:d,setTextHoverColor:m,iconsColor:g,setIconsColor:h,iconsHoverColor:b,setIconsHoverColor:v,backgroundColor:y,setBackgroundColor:w,backgroundHoverColor:O,setBackgroundHoverColor:_,borderColor:E,setBorderColor:P,borderHoverColor:C,setBorderHoverColor:k}=n;const{contacts_items_direction:j="column",contacts_icons_size:S=20,contacts_items_spacing:x="",contacts_icon_shape:I="rounded",contacts_icon_fill_type:D="outline"}=r,N=(0,e.useRef)(),T=(0,o.useBlockProps)({ref:N,className:{"ct-contact-info-block":!0,className:l},style:bt(bt(bt({"--theme-block-text-color":null==c?void 0:c.color,"--theme-link-initial-color":null==u?void 0:u.color,"--theme-link-hover-color":null==d?void 0:d.color,"--theme-icon-color":null==g?void 0:g.color,"--theme-icon-hover-color":null==b?void 0:b.color,"--background-color":"solid"===D?null==y?void 0:y.color:null==E?void 0:E.color,"--background-hover-color":"solid"===D?null==O?void 0:O.color:null==C?void 0:C.color},S?{"--theme-icon-size":`${S}px`}:{}),x?{"--items-spacing":`${x}px`}:{}),"column"===j?{"--items-direction":j}:{})});return(0,e.createElement)("div",T,(0,e.createElement)(gt,{attributes:r,setAttributes:i}),(0,e.createElement)(Qe,{attributes:r,setAttributes:i,options:Pt}),(0,e.createElement)(o.InspectorControls,{group:"styles"},(0,e.createElement)(f,{label:(0,t.__)("Text Color","blocksy"),resetAll:function(){s(st.textColor),p(st.textInitialColor),m(st.textHoverColor)},panelId:a,settings:[{colorValue:c.color,enableAlpha:!0,label:(0,t.__)("Text","blocksy"),onColorChange:function(e){return s(e||st.textColor)}},{colorValue:u.color,enableAlpha:!0,label:(0,t.__)("Link Initial","blocksy"),onColorChange:function(e){return p(e||st.textInitialColor)}},{colorValue:d.color,enableAlpha:!0,label:(0,t.__)("Link Hover","blocksy"),onColorChange:function(e){return m(e||st.textHoverColor)}}]}),(0,e.createElement)(f,{label:(0,t.__)("Icons Color","blocksy"),resetAll:function(){h(st.iconsColor),v(st.iconsHoverColor)},panelId:a,settings:[{colorValue:g.color,enableAlpha:!0,label:(0,t.__)("Initial","blocksy"),onColorChange:function(e){return h(e||st.iconsColor)}},{colorValue:b.color,enableAlpha:!0,label:(0,t.__)("Hover","blocksy"),onColorChange:function(e){return v(e||st.iconsHoverColor)}}]}),"simple"!==I&&("solid"===D?(0,e.createElement)(f,{label:(0,t.__)("Icons Background Color","blocksy"),resetAll:function(){w(st.backgroundColor),_(st.backgroundHoverColor)},panelId:a,settings:[{colorValue:y.color,enableAlpha:!0,label:(0,t.__)("Initial","blocksy"),onColorChange:function(e){return w(e||st.backgroundColor)}},{colorValue:O.color,enableAlpha:!0,label:(0,t.__)("Hover","blocksy"),onColorChange:function(e){return _(e||st.backgroundHoverColor)}}]}):(0,e.createElement)(f,{label:(0,t.__)("Icons Border Color","blocksy"),resetAll:function(){P(st.borderColor),k(st.borderHoverColor)},panelId:a,settings:[{colorValue:E.color,enableAlpha:!0,label:(0,t.__)("Initial","blocksy"),onColorChange:function(e){return P(e||st.borderColor)}},{colorValue:C.color,enableAlpha:!0,label:(0,t.__)("Hover","blocksy"),onColorChange:function(e){return k(e||st.borderHoverColor)}}]}))))}));function Ot(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _t(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ot(Object(n),!0).forEach((function(t){Et(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ot(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Et(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Pt=He("contact_info"),Ct=ze(Pt);(0,r.registerBlockType)("blocksy/contact-info",{apiVersion:3,title:(0,t.__)("Contact Info Controls","blocksy"),icon:{src:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:"wc-block-editor-components-block-icon"},(0,e.createElement)("path",{"fill-rule":"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","clip-rule":"evenodd"}))},supports:{html:!1,multiple:!1,inserter:!1,lock:!1,typography:{fontSize:!0}},parent:["blocksy/widgets-wrapper"],attributes:_t(_t({},Ct),ut),edit:function(t){return(0,e.createElement)(wt,t)},save:function(){return(0,e.createElement)("div",null,"Blocksy: Contact Info")}}),wp.blocks.registerBlockVariation("blocksy/widgets-wrapper",{name:"blocksy-contact-info",title:(0,t.__)("Contact Info","blocksy"),attributes:{heading:(0,t.__)("Contact Info","blocksy"),block:"blocksy/contact-info",hasDescription:!0,description:(null==Ct||null===(yt=Ct.contact_text)||void 0===yt?void 0:yt.default)||""},isActive:function(e){return"blocksy/contact-info"===e.block},icon:{src:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:"wc-block-editor-components-block-icon"},(0,e.createElement)("path",{"fill-rule":"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","clip-rule":"evenodd"}))}});const kt={initialColor:"",customInitialColor:"",hoverColor:"",customHoverColor:"",borderColor:"rgba(218, 222, 228, 0.5)",customBorderColor:"rgba(218, 222, 228, 0.5)",borderHoverColor:"rgba(218, 222, 228, 0.7)",customBorderHoverColor:"rgba(218, 222, 228, 0.7)",backgroundColor:"rgba(218, 222, 228, 0.5)",customBackgroundColor:"rgba(218, 222, 228, 0.5)",backgroundHoverColor:"rgba(218, 222, 228, 0.7)",customBackgroundHoverColor:"rgba(218, 222, 228, 0.7)"},jt=$e(kt);function St(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?St(Object(n),!0).forEach((function(t){It(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):St(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function It(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Dt=xt({link_nofollow:"no",link_target:"no",social_icons_color:"official",social_icons_fill:"outline",social_icons_size:"",items_spacing:"",social_type:"simple"},kt);var Nt=function(t){let{attributes:n}=t;const{social_icons_color:r,social_icons_size:o,social_type:i,social_icons_fill:a,items_spacing:l}=n,c=(0,e.useCallback)((function(e){const t=document.createElement("div");return t.innerHTML=e,t.querySelector(".ct-social-box").innerHTML}),[r,o,i,a,l]),{isLoading:s,preview:u}=Ue("socials",xt(xt({},n),Dt),c);return s?(0,e.createElement)(p.Spinner,null):(0,e.createElement)(e.RawHTML,{className:"ct-social-box","data-icons-type":"simple"===i?i:`${i}:${a}`,"data-color":r},u)};function Tt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function At(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tt(Object(n),!0).forEach((function(t){Rt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Rt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Mt=He("socials");var Bt=(0,o.withColors)({initialColor:"color"},{hoverColor:"color"},{backgroundColor:"color"},{backgroundHoverColor:"color"},{borderColor:"color"},{borderHoverColor:"color"})((function(n){let{attributes:r,setAttributes:i,clientId:a,className:l,initialColor:c,setInitialColor:s,hoverColor:u,setHoverColor:p,backgroundColor:d,setBackgroundColor:m,backgroundHoverColor:g,setBackgroundHoverColor:h,borderColor:b,setBorderColor:v,borderHoverColor:y,setBorderHoverColor:w}=n;const{items_spacing:O="",social_icons_size:_="",social_type:E="simple",social_icons_fill:P="outline",social_icons_color:C="default"}=r,k=(0,e.useRef)(),j=(0,o.useBlockProps)({ref:k,className:{"ct-socials-block":!0,className:l},style:At(At({"--theme-icon-color":null==c?void 0:c.color,"--theme-icon-hover-color":null==u?void 0:u.color,"--background-color":"solid"===P?null==d?void 0:d.color:null==b?void 0:b.color,"--background-hover-color":"solid"===P?null==g?void 0:g.color:null==y?void 0:y.color},_?{"--theme-icon-size":`${_}px`}:{}),O?{"--items-spacing":`${O}px`}:{})});return(0,e.createElement)("div",j,(0,e.createElement)(Nt,{attributes:r,setAttributes:i}),(0,e.createElement)(Qe,{attributes:r,setAttributes:i,options:Mt}),"default"===C?(0,e.createElement)(o.InspectorControls,{group:"styles"},(0,e.createElement)(f,{label:(0,t.__)("Icon Color","blocksy"),resetAll:function(){s(kt.initialColor),p(kt.hoverColor)},panelId:a,settings:[{colorValue:c.color,enableAlpha:!0,label:(0,t.__)("Initial","blocksy"),onColorChange:function(e){return s(e||kt.initialColor)}},{colorValue:u.color,enableAlpha:!0,label:(0,t.__)("Hover","blocksy"),onColorChange:function(e){return p(e||kt.hoverColor)}}]}),"simple"!==E&&("solid"===P?(0,e.createElement)(f,{label:(0,t.__)("Icons Background Colors","blocksy"),resetAll:function(){m(kt.backgroundColor),h(kt.backgroundHoverColor)},panelId:a,settings:[{colorValue:d.color,enableAlpha:!0,label:(0,t.__)("Initial","blocksy"),onColorChange:function(e){return m(e||kt.backgroundColor)}},{colorValue:g.color,enableAlpha:!0,label:(0,t.__)("Hover","blocksy"),onColorChange:function(e){return h(e||kt.backgroundHoverColor)}}]}):(0,e.createElement)(f,{label:(0,t.__)("Icons Border Colors","blocksy"),resetAll:function(){v(kt.borderColor),w(kt.borderHoverColor)},panelId:a,settings:[{colorValue:b.color,enableAlpha:!0,label:(0,t.__)("Initial","blocksy"),onColorChange:function(e){return v(e||kt.borderColor)}},{colorValue:y.color,enableAlpha:!0,label:(0,t.__)("Hover","blocksy"),onColorChange:function(e){return w(e||kt.borderHoverColor)}}]}))):null)}));function Ft(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ft(Object(n),!0).forEach((function(t){zt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ft(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ht=He("socials"),Vt=ze(Ht);(0,r.registerBlockType)("blocksy/socials",{apiVersion:3,title:(0,t.__)("Socials Controls","blocksy"),icon:{src:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:"wc-block-editor-components-block-icon"},(0,e.createElement)("path",{d:"M16.4 14.2c-.8 0-1.5.3-2.1.9l-3.9-2.3c.1-.3.1-.5.1-.8 0-.3-.1-.5-.1-.8L14.3 9c.5.5 1.3.9 2.1.9 1.6 0 2.9-1.3 2.9-2.9S18 4 16.4 4s-2.9 1.3-2.9 2.9c0 .3.1.5.1.8L9.7 10c-.5-.6-1.3-.9-2.1-.9-1.6 0-2.9 1.3-2.9 2.9 0 1.6 1.3 2.9 2.9 2.9.8 0 1.5-.3 2.1-.9l3.9 2.3c-.1.3-.1.5-.1.8 0 1.6 1.3 2.9 2.9 2.9s2.9-1.3 2.9-2.9c0-1.6-1.3-2.9-2.9-2.9zm0-8.7c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5-1.5-.7-1.5-1.5.7-1.5 1.5-1.5zm-8.8 8c-.8 0-1.5-.7-1.5-1.5s.7-1.5 1.5-1.5 1.5.7 1.5 1.5-.7 1.5-1.5 1.5zm8.8 5c-.8 0-1.5-.7-1.5-1.5 0-.3.1-.5.2-.7.3-.4.7-.7 1.2-.7.8 0 1.5.7 1.5 1.5s-.6 1.4-1.4 1.4z"}))},supports:{html:!1,multiple:!1,inserter:!1,lock:!1},parent:["blocksy/widgets-wrapper"],attributes:Lt(Lt({},Vt),jt),edit:function(t){return(0,e.createElement)(Bt,t)},save:function(){return(0,e.createElement)("div",null,"Blocksy: Socials")}}),wp.blocks.registerBlockVariation("blocksy/widgets-wrapper",{name:"blocksy-socials",title:(0,t.__)("Socials","blocksy"),attributes:{heading:(0,t.__)("Socials","blocksy"),block:"blocksy/socials"},isActive:function(e){return"blocksy/socials"===e.block},icon:{src:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:"wc-block-editor-components-block-icon"},(0,e.createElement)("path",{d:"M16.4 14.2c-.8 0-1.5.3-2.1.9l-3.9-2.3c.1-.3.1-.5.1-.8 0-.3-.1-.5-.1-.8L14.3 9c.5.5 1.3.9 2.1.9 1.6 0 2.9-1.3 2.9-2.9S18 4 16.4 4s-2.9 1.3-2.9 2.9c0 .3.1.5.1.8L9.7 10c-.5-.6-1.3-.9-2.1-.9-1.6 0-2.9 1.3-2.9 2.9 0 1.6 1.3 2.9 2.9 2.9.8 0 1.5-.3 2.1-.9l3.9 2.3c-.1.3-.1.5-.1.8 0 1.6 1.3 2.9 2.9 2.9s2.9-1.3 2.9-2.9c0-1.6-1.3-2.9-2.9-2.9zm0-8.7c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5-1.5-.7-1.5-1.5.7-1.5 1.5-1.5zm-8.8 8c-.8 0-1.5-.7-1.5-1.5s.7-1.5 1.5-1.5 1.5.7 1.5 1.5-.7 1.5-1.5 1.5zm8.8 5c-.8 0-1.5-.7-1.5-1.5 0-.3.1-.5.2-.7.3-.4.7-.7 1.2-.7.8 0 1.5.7 1.5 1.5s-.6 1.4-1.4 1.4z"}))}});const Ut={initialColor:"",customInitialColor:"",hoverColor:"",customHoverColor:"",borderColor:"rgba(218, 222, 228, 0.5)",customBorderColor:"rgba(218, 222, 228, 0.5)",borderHoverColor:"rgba(218, 222, 228, 0.7)",customBorderHoverColor:"rgba(218, 222, 228, 0.7)",backgroundColor:"rgba(218, 222, 228, 0.5)",customBackgroundColor:"rgba(218, 222, 228, 0.5)",backgroundHoverColor:"rgba(218, 222, 228, 0.7)",customBackgroundHoverColor:"rgba(218, 222, 228, 0.7)"},$t=$e(Ut);function Gt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gt(Object(n),!0).forEach((function(t){qt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Zt=Wt({link_nofollow:"no",share_icons_size:"",items_spacing:""},Ut);var Kt=function(t){let{attributes:n}=t;const{share_icons_color:r,share_icons_size:o,share_type:i,share_icons_fill:a,items_spacing:l}=n,c=(0,e.useCallback)((function(e){const t=document.createElement("div");return t.innerHTML=e,t.querySelector(".ct-share-box").innerHTML}),[r,o,i,a,l]),{isLoading:s,preview:u}=Ue("share-box",Wt(Wt({},n),Zt),c);return s?(0,e.createElement)(p.Spinner,null):(0,e.createElement)(e.RawHTML,{className:"ct-share-box","data-type":"type-3"},u)};function Yt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yt(Object(n),!0).forEach((function(t){Jt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Jt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Qt=He("share_box");var en=(0,o.withColors)({initialColor:"color"},{hoverColor:"color"},{backgroundColor:"color"},{backgroundHoverColor:"color"},{borderColor:"color"},{borderHoverColor:"color"})((function(n){let{attributes:r,setAttributes:i,clientId:a,className:l,initialColor:c,setInitialColor:s,hoverColor:u,setHoverColor:p,backgroundColor:d,setBackgroundColor:m,backgroundHoverColor:g,setBackgroundHoverColor:h,borderColor:b,setBorderColor:v,borderHoverColor:y,setBorderHoverColor:w}=n;const{items_spacing:O="",share_icons_size:_="",share_type:E="simple",share_icons_fill:P="outline",share_icons_color:C="default"}=r,k=(0,e.useRef)(),j=(0,o.useBlockProps)({ref:k,className:{"ct-shares-block":!0,className:l},style:Xt(Xt({"--theme-icon-color":null==c?void 0:c.color,"--theme-icon-hover-color":null==u?void 0:u.color,"--background-color":"solid"===P?null==d?void 0:d.color:null==b?void 0:b.color,"--background-hover-color":"solid"===P?null==g?void 0:g.color:null==y?void 0:y.color},_?{"--theme-icon-size":`${_}px`}:{}),O?{"--items-spacing":`${O}px`}:{})});return(0,e.createElement)("div",j,(0,e.createElement)(Kt,{attributes:r,setAttributes:i}),(0,e.createElement)(Qe,{attributes:r,setAttributes:i,options:Qt}),"default"===C?(0,e.createElement)(o.InspectorControls,{group:"styles"},(0,e.createElement)(f,{label:(0,t.__)("Icon Color","blocksy"),resetAll:function(){s(Ut.initialColor),p(Ut.hoverColor)},panelId:a,settings:[{colorValue:c.color,enableAlpha:!0,label:(0,t.__)("Initial","blocksy"),onColorChange:function(e){return s(e||Ut.initialColor)}},{colorValue:u.color,enableAlpha:!0,label:(0,t.__)("Hover","blocksy"),onColorChange:function(e){return p(e||Ut.hoverColor)}}]}),"simple"!==E&&("solid"===P?(0,e.createElement)(f,{label:(0,t.__)("Icons Background Colors","blocksy"),resetAll:function(){m(Ut.backgroundColor),h(Ut.backgroundHoverColor)},panelId:a,settings:[{colorValue:d.color,enableAlpha:!0,label:(0,t.__)("Initial","blocksy"),onColorChange:function(e){return m(e||Ut.backgroundColor)}},{colorValue:g.color,enableAlpha:!0,label:(0,t.__)("Hover","blocksy"),onColorChange:function(e){return h(e||Ut.backgroundHoverColor)}}]}):(0,e.createElement)(f,{label:(0,t.__)("Icons Border Colors","blocksy"),resetAll:function(){v(Ut.borderColor),w(Ut.borderHoverColor)},panelId:a,settings:[{colorValue:b.color,enableAlpha:!0,label:(0,t.__)("Initial","blocksy"),onColorChange:function(e){return v(e||Ut.borderColor)}},{colorValue:y.color,enableAlpha:!0,label:(0,t.__)("Hover","blocksy"),onColorChange:function(e){return w(e||Ut.borderHoverColor)}}]}))):null)}));function tn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tn(Object(n),!0).forEach((function(t){rn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const on=He("share_box"),an=ze(on);(0,r.registerBlockType)("blocksy/share-box",{apiVersion:3,title:(0,t.__)("Share Box Controls","blocksy"),icon:{src:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:"wc-block-editor-components-block-icon"},(0,e.createElement)("path",{d:"M20 14.6c-.2-.3-.5-.6-.9-.8.1-1.2-.1-2.4-.6-3.5s-1.3-2.1-2.3-2.9c-.4-.3-.8-.5-1.3-.8 0-.6-.2-1.2-.5-1.6-.3-.5-.8-.9-1.4-1.1-1-.4-2.4-.1-3.2.8-.5.5-.8 1.2-.8 2-1 .4-1.8 1-2.5 1.8-.8 1-1.4 2.1-1.6 3.3-.1.6-.1 1.3-.1 2-.7.4-1.2 1-1.4 1.7-.3 1.2.1 2.4 1 3.2s2.3.8 3.3.2c.9.6 1.9 1.1 3 1.2.4.1.8.1 1.2.1.9 0 1.9-.2 2.7-.5.5-.2.9-.5 1.4-.8.2.1.4.2.7.3 1.1.3 2.4-.1 3.1-1 .1-.1.2-.3.3-.4v-.1c.7-.9.6-2.2-.1-3.1zm-9.6-8.1c0-.1 0-.2.1-.3 0 0 0-.1.1-.2 0-.1.1-.2.2-.3l.1-.1s.1-.1.1-.2h.1s.1 0 .1-.1c0 0 .1 0 .1-.1h.1c.1 0 .2-.1.3-.1h.7c.1 0 .1 0 .2.1.1 0 .1.1.2.1 0 0 .1 0 .1.1 0 0 .1 0 .1.1l.1.1.2.2v.1l.1.1s0 .1.1.1V7c0 .1 0 .2-.1.3 0 0 0 .1-.1.1 0 0 0 .1-.1.1 0 0-.1.1-.1.2l-.1.1-.1.1h-.1c-.1 0-.1.1-.2.1h-.2c-.1 0-.2.1-.3.1h-1l.1-.1s-.1 0-.1-.1l-.1-.1-.1-.1-.1-.1v-.1l-.1-.1s0-.1-.1-.1v-.1c0-.1-.1-.2-.1-.3V6.6c-.1 0-.1 0-.1-.1zM8 16.6c0 .1-.1.3-.1.4 0 .1-.1.1-.1.2s-.1.1-.1.1l-.1.1-.3.3-.1.1H7v.1c-.1 0-.2.1-.3.1h-.8c-.1 0-.2 0-.3-.1 0 0-.1 0-.1-.1 0 0-.1 0-.1-.1l-.1-.1h-.1l-.1-.1-.1-.1v-.1c.1-.1 0-.2-.1-.3v-.2c0-.1 0-.2-.1-.2V16.3c0-.1 0-.2.1-.2 0 0 0-.1.1-.2 0-.1.1-.2.1-.2l.1-.1.2-.2.1-.1c.1 0 .1-.1.2-.1h.2c.1 0 .2-.1.3-.1h.6c.1 0 .1 0 .2.1l.3-.2s.1 0 .1.1l.2.2c0 .1.1.1.1.1 0 .1.1.1.1.2v.1c.1.2.2.3.2.5v.4c0-.1 0 0 0 0zm7.1 1.4c-.3.2-.5.3-.8.4h-.1l-.2.1c-.1 0-.3.1-.4.1-.3.1-.5.1-.8.2H11.1l-.2-.1c-.1 0-.3-.1-.4-.1-.3-.1-.5-.2-.8-.3-.1-.1-.2-.1-.3-.2-.1-.1-.3-.1-.4-.2 0 .2 0 .1-.1.1.5-.8.6-1.9.3-2.7-.3-.6-.7-1.1-1.2-1.4-.5-.3-1.1-.5-1.7-.4v-1c0-.3.1-.5.2-.8 0-.1.1-.3.1-.4l.1-.3c.1-.2.2-.5.4-.7.1-.1.1-.2.2-.3l.1-.1.1-.1c.1-.4.3-.6.5-.8l.3-.3.1-.1.1-.1c.2-.1.5-.3.7-.4 0 0 .1 0 .1-.1 0 0 0 .1.1.1.3.5.7.9 1.3 1.2.6.3 1.2.4 1.9.3.9-.1 1.7-.8 2.2-1.6.2.1.4.3.7.5l.2.1c.1.1.2.2.3.2.2.2.4.4.5.6l.1.1s0 .1.1.1c.1.1.2.2.2.3.1.2.3.4.4.7 0 .1.1.1.1.2v.1c0 .1.1.2.1.4.1.3.1.5.2.8v1.3c-.4 0-.8 0-1.1.1-1.2.4-2.1 1.6-2 2.9 0 .6.2 1.1.5 1.6zm1.7-3.3zm2.4 1.8v.2c0 .1 0 .2-.1.3v.1c0 .1 0 .1-.1.1 0 0-.1.1-.1.2l-.2.2-.1.1c-.1.1-.2.1-.3.2h-.1c-.1 0-.2.1-.3.1h-.7c-.1 0-.2-.1-.3-.2h-.1l-.1-.1-.1-.1c-.1-.1-.1-.2-.2-.3v-.2c0-.1-.1-.2-.1-.4v-.4c0-.1 0-.2.1-.3l.1-.2v-.1c0-.1.1-.2.2-.3l.1-.1.1-.1c.1-.1.2-.1.3-.2h.2c.1 0 .2-.1.3-.1H18.7c.1 0 .2.1.3.2l.1.1.2.2c.1.1.1.2.2.3v.2c0 .1.1.2.1.3v.1c-.4 0-.4.1-.4.2z"}))},supports:{html:!1,multiple:!1,inserter:!1,lock:!1},parent:["blocksy/widgets-wrapper"],attributes:nn(nn({},an),$t),edit:function(t){return(0,e.createElement)(en,t)},save:function(){return(0,e.createElement)("div",null,"Blocksy: Share Box")}}),wp.blocks.registerBlockVariation("blocksy/widgets-wrapper",{name:"blocksy-share-box",title:(0,t.__)("Share Box","blocksy"),attributes:{heading:(0,t.__)("Share Box","blocksy"),block:"blocksy/share-box"},isActive:function(e){return"blocksy/share-box"===e.block},icon:{src:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:"wc-block-editor-components-block-icon"},(0,e.createElement)("path",{d:"M20 14.6c-.2-.3-.5-.6-.9-.8.1-1.2-.1-2.4-.6-3.5s-1.3-2.1-2.3-2.9c-.4-.3-.8-.5-1.3-.8 0-.6-.2-1.2-.5-1.6-.3-.5-.8-.9-1.4-1.1-1-.4-2.4-.1-3.2.8-.5.5-.8 1.2-.8 2-1 .4-1.8 1-2.5 1.8-.8 1-1.4 2.1-1.6 3.3-.1.6-.1 1.3-.1 2-.7.4-1.2 1-1.4 1.7-.3 1.2.1 2.4 1 3.2s2.3.8 3.3.2c.9.6 1.9 1.1 3 1.2.4.1.8.1 1.2.1.9 0 1.9-.2 2.7-.5.5-.2.9-.5 1.4-.8.2.1.4.2.7.3 1.1.3 2.4-.1 3.1-1 .1-.1.2-.3.3-.4v-.1c.7-.9.6-2.2-.1-3.1zm-9.6-8.1c0-.1 0-.2.1-.3 0 0 0-.1.1-.2 0-.1.1-.2.2-.3l.1-.1s.1-.1.1-.2h.1s.1 0 .1-.1c0 0 .1 0 .1-.1h.1c.1 0 .2-.1.3-.1h.7c.1 0 .1 0 .2.1.1 0 .1.1.2.1 0 0 .1 0 .1.1 0 0 .1 0 .1.1l.1.1.2.2v.1l.1.1s0 .1.1.1V7c0 .1 0 .2-.1.3 0 0 0 .1-.1.1 0 0 0 .1-.1.1 0 0-.1.1-.1.2l-.1.1-.1.1h-.1c-.1 0-.1.1-.2.1h-.2c-.1 0-.2.1-.3.1h-1l.1-.1s-.1 0-.1-.1l-.1-.1-.1-.1-.1-.1v-.1l-.1-.1s0-.1-.1-.1v-.1c0-.1-.1-.2-.1-.3V6.6c-.1 0-.1 0-.1-.1zM8 16.6c0 .1-.1.3-.1.4 0 .1-.1.1-.1.2s-.1.1-.1.1l-.1.1-.3.3-.1.1H7v.1c-.1 0-.2.1-.3.1h-.8c-.1 0-.2 0-.3-.1 0 0-.1 0-.1-.1 0 0-.1 0-.1-.1l-.1-.1h-.1l-.1-.1-.1-.1v-.1c.1-.1 0-.2-.1-.3v-.2c0-.1 0-.2-.1-.2V16.3c0-.1 0-.2.1-.2 0 0 0-.1.1-.2 0-.1.1-.2.1-.2l.1-.1.2-.2.1-.1c.1 0 .1-.1.2-.1h.2c.1 0 .2-.1.3-.1h.6c.1 0 .1 0 .2.1l.3-.2s.1 0 .1.1l.2.2c0 .1.1.1.1.1 0 .1.1.1.1.2v.1c.1.2.2.3.2.5v.4c0-.1 0 0 0 0zm7.1 1.4c-.3.2-.5.3-.8.4h-.1l-.2.1c-.1 0-.3.1-.4.1-.3.1-.5.1-.8.2H11.1l-.2-.1c-.1 0-.3-.1-.4-.1-.3-.1-.5-.2-.8-.3-.1-.1-.2-.1-.3-.2-.1-.1-.3-.1-.4-.2 0 .2 0 .1-.1.1.5-.8.6-1.9.3-2.7-.3-.6-.7-1.1-1.2-1.4-.5-.3-1.1-.5-1.7-.4v-1c0-.3.1-.5.2-.8 0-.1.1-.3.1-.4l.1-.3c.1-.2.2-.5.4-.7.1-.1.1-.2.2-.3l.1-.1.1-.1c.1-.4.3-.6.5-.8l.3-.3.1-.1.1-.1c.2-.1.5-.3.7-.4 0 0 .1 0 .1-.1 0 0 0 .1.1.1.3.5.7.9 1.3 1.2.6.3 1.2.4 1.9.3.9-.1 1.7-.8 2.2-1.6.2.1.4.3.7.5l.2.1c.1.1.2.2.3.2.2.2.4.4.5.6l.1.1s0 .1.1.1c.1.1.2.2.2.3.1.2.3.4.4.7 0 .1.1.1.1.2v.1c0 .1.1.2.1.4.1.3.1.5.2.8v1.3c-.4 0-.8 0-1.1.1-1.2.4-2.1 1.6-2 2.9 0 .6.2 1.1.5 1.6zm1.7-3.3zm2.4 1.8v.2c0 .1 0 .2-.1.3v.1c0 .1 0 .1-.1.1 0 0-.1.1-.1.2l-.2.2-.1.1c-.1.1-.2.1-.3.2h-.1c-.1 0-.2.1-.3.1h-.7c-.1 0-.2-.1-.3-.2h-.1l-.1-.1-.1-.1c-.1-.1-.1-.2-.2-.3v-.2c0-.1-.1-.2-.1-.4v-.4c0-.1 0-.2.1-.3l.1-.2v-.1c0-.1.1-.2.2-.3l.1-.1.1-.1c.1-.1.2-.1.3-.2h.2c.1 0 .2-.1.3-.1H18.7c.1 0 .2.1.3.2l.1.1.2.2c.1.1.1.2.2.3v.2c0 .1.1.2.1.3v.1c-.4 0-.4.1-.4.2z"}))}});var ln=function(t){let{attributes:{has_field_link:n},postId:r,postType:o}=t;const[i="",a,l]=(0,F.useEntityProp)("postType",o,"title",r);return i?"yes"===n?(0,e.createElement)("a",{href:"#",rel:"noopener noreferrer"},i):i:null};const cn=function(e){if(!e)return"";const t=(new window.DOMParser).parseFromString(e,"text/html");return t.body.textContent||t.body.innerText||""};var sn=function(t){let{attributes:{excerpt_length:n},postId:r,postType:o,fallback:i}=t;const[a,l,{rendered:c,protected:s}={}]=(0,F.useEntityProp)("postType",o,"excerpt",r),[u,p,{rendered:d}={}]=(0,F.useEntityProp)("postType",o,"content",r),f=(a||cn(c)||cn(d)).trim();let m=f.split(" ",n).join(" ");const g=m!==f?"...":"";return m?(0,e.createElement)(e.RawHTML,null,m,g):i},un=n(2476);var pn=function(t){let{postId:n,postType:r,attributes:{date_type:o,default_format:i,date_format:a,custom_date_format:l,has_field_link:c}}=t;const[s]=(0,F.useEntityProp)("postType",r,"published"===o?"date":"modified",n),u="yes"===i?(0,un.getSettings)().formats.date:"custom"!==a?a:l;let p=(0,e.createElement)("span",null,(0,un.format)(u,s));return c&&(p=(0,e.createElement)("a",{href:"#"},p)),p},dn=window.wp.apiFetch,fn=n.n(dn),mn=window.wp.url;const gn={};var hn=function(t){let{postId:n}=t;const[r,o]=(0,e.useState)(null);return(0,e.useEffect)((function(){gn[n]&&o(gn[n]),gn[n]||fn()({path:(0,mn.addQueryArgs)("/wp/v2/comments",{post:n,_fields:"id"}),method:"HEAD",parse:!1}).then((function(e){const t={total:parseInt(e.headers.get("X-WP-Total"))};o(t),gn[n]=t}))}),[n]),{commentsData:r}};var bn=function(t){let{postId:n,postType:r,attributes:{has_field_link:o,zero_text:i,single_text:a,multiple_text:l}}=t;const{commentsData:c}=hn({postId:n}),s=c&&c.total?c.total:0,u=0===s?i:1===s?a:l;return"yes"===o?(0,e.createElement)("a",{href:"#",rel:"noopener noreferrer"},u.replace("%",s)):u.replace("%",s)};const vn=function(e,t){switch(t){case"email":return(null==e?void 0:e.email)||"";case"nicename":case"display_name":return(null==e?void 0:e.nickname)||"";case"first_name":return(null==e?void 0:e.first_name)||"";case"last_name":return(null==e?void 0:e.last_name)||"";case"description":return(null==e?void 0:e.description)||""}};var yn=function(t){let{postId:n,postType:r,attributes:{has_field_link:o,author_field:a},fallback:l}=t;const{authorId:c,authorDetails:s}=(0,i.useSelect)((function(e){var t;const{getEditedEntityRecord:o,getUser:i,getUsers:a}=e(F.store),l=null===(t=o("postType",r,n))||void 0===t?void 0:t.author;return{authorId:l,authorDetails:l?i(l):null}}),[r,n]);return s?"yes"===o?(0,e.createElement)("a",{href:"#",rel:"noopener noreferrer"},vn(s,a)||l):vn(s,a)||l:null};function wn(){return wn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wn.apply(this,arguments)}var On=function(t){let{postId:n,postType:r,fallback:o,attributes:a,attributes:{has_field_link:l,taxonomy:c,separator:s}}=t;const u=V(r),{terms:p}=(0,i.useSelect)((function(e){return{terms:e("core").getEntityRecords("taxonomy",c||(u&&u.length>0?u[0].slug:""),{per_page:-1,post:n})||[]}}));if(0===p.length)return o;let d="span",f={};return"yes"===l&&(d="a",f.href="#",f.rel="noopener noreferrer"),p.map((function(t,n){return(0,e.createElement)(React.Fragment,null,(0,e.createElement)(d,wn({},f,{className:I()({[`ct-term-${t.id}`]:"yes"===a.termAccentColor},a.termClass),dangerouslySetInnerHTML:{__html:t.name}})),n!==p.length-1?s.replace(/ /g," "):"")}))};function _n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function En(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_n(Object(n),!0).forEach((function(t){Pn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_n(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Cn=function(){return(0,e.createElement)("span",{class:"ct-video-indicator"},(0,e.createElement)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"#fff"},(0,e.createElement)("path",{class:"ct-play-path",d:"M20,0C8.9,0,0,8.9,0,20s8.9,20,20,20s20-9,20-20S31,0,20,0z M16,29V11l12,9L16,29z"})))};var kn=function(t){let{postType:n,postId:r,attributes:a,attributes:{aspectRatio:l,width:c,height:s,imageAlign:u,has_field_link:p,sizeSlug:d,image_hover_effect:f,videoThumbnail:m}}=t;const[g,h]=(0,e.useState)(!1),b=(0,o.__experimentalUseBorderProps)(a),v=(0,o.useBlockProps)(En({className:I()("ct-dynamic-media wp-block-image",{[`align${u}`]:u},b.className),style:En(En({},b.style),{},{aspectRatio:l,width:c,height:s})},"none"!==f?{"data-hover":f}:{})),[y,w]=(0,F.useEntityProp)("postType",n,"featured_media",r),{media:O}=(0,i.useSelect)((function(e){const{getMedia:t}=e(F.store);return{media:y&&t(y,{context:"view"})}}),[y]),_=function(e,t){var n,r,o;return(null==e||null===(n=e.media_details)||void 0===n||null===(r=n.sizes)||void 0===r||null===(o=r[t])||void 0===o?void 0:o.source_url)||(null==e?void 0:e.source_url)}(O,d),E={height:l?"100%":s,width:!!l&&"100%",objectFit:!(!s&&!l)&&"cover"};if(!_)return(0,e.createElement)("figure",v,(0,e.createElement)("div",{className:"ct-dynamic-data-placeholder",style:En({},E)},(0,e.createElement)("svg",{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60",preserveAspectRatio:"none",class:"components-placeholder__illustration","aria-hidden":"true",focusable:"false",style:{"min-height":"200px",height:!!l&&"100%",width:!!l&&"100%"}},(0,e.createElement)("path",{"vector-effect":"non-scaling-stroke",d:"M60 60 0 0"}))));let P=(0,e.createElement)("img",{style:En({},E),src:_,onLoad:function(){return h(!0)},loading:"lazy"});return!p||O.has_video||"yes"===m||g||(P=(0,e.createElement)("a",{href:"#"},P)),(0,e.createElement)("figure",v,P,O.has_video&&"yes"===m?(0,e.createElement)(Cn,null):null)},jn=n(1649),Sn=n.n(jn);n(8975),Sn()(console.error);var xn,In,Dn,Nn,Tn=n(4942);xn={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},In=["(","?"],Dn={")":["("],":":["?","?:"]},Nn=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var An={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e<t},"<=":function(e,t){return e<=t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}};function Rn(e){var t=function(e){for(var t,n,r,o,i=[],a=[];t=e.match(Nn);){for(n=t[0],(r=e.substr(0,t.index).trim())&&i.push(r);o=a.pop();){if(Dn[n]){if(Dn[n][0]===o){n=Dn[n][1]||n;break}}else if(In.indexOf(o)>=0||xn[o]<xn[n]){a.push(o);break}i.push(o)}Dn[n]||a.push(n),e=e.substr(t.index+n.length)}return(e=e.trim())&&i.push(e),i.concat(a.reverse())}(e);return function(e){return function(e,t){var n,r,o,i,a,l,c=[];for(n=0;n<e.length;n++){if(a=e[n],i=An[a]){for(r=i.length,o=Array(r);r--;)o[r]=c.pop();try{l=i.apply(null,o)}catch(e){return e}}else l=t.hasOwnProperty(a)?t[a]:+a;c.push(l)}return c[0]}(t,e)}}var Mn={contextDelimiter:"",onMissingKey:null};function Bn(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},Mn)this.options[n]=void 0!==t&&n in t?t[n]:Mn[n]}function Fn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ln(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fn(Object(n),!0).forEach((function(t){(0,Tn.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Bn.prototype.getPluralForm=function(e,t){var n,r,o,i=this.pluralForms[e];return i||("function"!=typeof(o=(n=this.data[e][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(r=function(e){var t,n,r;for(t=e.split(";"),n=0;n<t.length;n++)if(0===(r=t[n].trim()).indexOf("plural="))return r.substr(7)}(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),o=function(e){var t=Rn(e);return function(e){return+t({n:e})}}(r)),i=this.pluralForms[e]=o),i(t)},Bn.prototype.dcnpgettext=function(e,t,n,r,o){var i,a,l;return i=void 0===o?0:this.getPluralForm(e,o),a=n,t&&(a=t+this.options.contextDelimiter+n),(l=this.data[e][a])&&l[i]?l[i]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===i?n:r)};var zn={"":{plural_forms:function(e){return 1===e?0:1}}},Hn=/^i18n\.(n?gettext|has_translation)(_|$)/,Vn=function(e,t,n){var r=new Bn({}),o=new Set,i=function(){o.forEach((function(e){return e()}))},a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";r.data[t]=Ln(Ln(Ln({},zn),r.data[t]),e),r.data[t][""]=Ln(Ln({},zn[""]),r.data[t][""])},l=function(e,t){a(e,t),i()},c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;return r.data[e]||a(void 0,e),r.dcnpgettext(e,t,n,o,i)},s=function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default"},u=function(e,t,r){var o=c(r,t,e);return n?(o=n.applyFilters("i18n.gettext_with_context",o,e,t,r),n.applyFilters("i18n.gettext_with_context_"+s(r),o,e,t,r)):o};if(e&&l(e,t),n){var p=function(e){Hn.test(e)&&i()};n.addAction("hookAdded","core/i18n",p),n.addAction("hookRemoved","core/i18n",p)}return{getLocaleData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return r.data[e]},setLocaleData:l,resetLocaleData:function(e,t){r.data={},r.pluralForms={},l(e,t)},subscribe:function(e){return o.add(e),function(){return o.delete(e)}},__:function(e,t){var r=c(t,void 0,e);return n?(r=n.applyFilters("i18n.gettext",r,e,t),n.applyFilters("i18n.gettext_"+s(t),r,e,t)):r},_x:u,_n:function(e,t,r,o){var i=c(o,void 0,e,t,r);return n?(i=n.applyFilters("i18n.ngettext",i,e,t,r,o),n.applyFilters("i18n.ngettext_"+s(o),i,e,t,r,o)):i},_nx:function(e,t,r,o,i){var a=c(i,o,e,t,r);return n?(a=n.applyFilters("i18n.ngettext_with_context",a,e,t,r,o,i),n.applyFilters("i18n.ngettext_with_context_"+s(i),a,e,t,r,o,i)):a},isRTL:function(){return"rtl"===u("ltr","text direction")},hasTranslation:function(e,t,o){var i,a,l=t?t+""+e:e,c=!(null===(i=r.data)||void 0===i||null===(a=i[null!=o?o:"default"])||void 0===a||!a[l]);return n&&(c=n.applyFilters("i18n.has_translation",c,e,t,o),c=n.applyFilters("i18n.has_translation_"+s(o),c,e,t,o)),c}}}(void 0,void 0,n(5224).defaultHooks);Vn.getLocaleData.bind(Vn),Vn.setLocaleData.bind(Vn),Vn.resetLocaleData.bind(Vn),Vn.subscribe.bind(Vn),Vn.__.bind(Vn),Vn._x.bind(Vn),Vn._n.bind(Vn),Vn._nx.bind(Vn),Vn.isRTL.bind(Vn),Vn.hasTranslation.bind(Vn);function Un(e){let{postId:t,postType:n}=e;const{authorDetails:r}=(0,i.useSelect)((function(e){var r;const{getEditedEntityRecord:o,getUser:i}=e(F.store),a=null===(r=o("postType",n,t))||void 0===r?void 0:r.author;return{authorDetails:a?i(a):null}}),[n,t]),a=null!=r&&r.avatar_urls?Object.values(r.avatar_urls):null,l=(null!=r&&r.avatar_urls&&Object.keys(r.avatar_urls),function(){const{avatarURL:e}=(0,i.useSelect)((function(e){const{getSettings:t}=e(o.store),{__experimentalDiscussionSettings:n}=t();return n}));return e}());return{src:a?a[a.length-1]:l}}function $n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$n(Object(n),!0).forEach((function(t){Wn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$n(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qn=function(t){let{postId:n,postType:r,attributes:i,attributes:{avatar_size:a,imageAlign:l,has_field_link:c}}=t;const s=(0,o.useBlockProps)({className:I()("ct-dynamic-media wp-block-image",{[`align${l}`]:l}),style:{}}),u=(0,o.__experimentalUseBorderProps)(i),p=Un({postId:n,postType:r});const d=(0,mn.addQueryArgs)((0,mn.removeQueryArgs)(p.src,["s"]),{s:2*a}),f=Gn({},u.style);let m=(0,e.createElement)("img",{style:Gn(Gn({},f),{},{width:`${a}px`,height:`${a}px`}),src:d,className:I()("avatar","avatar-"+a,"photo",u.className)});return c&&(m=(0,e.createElement)("a",{href:"#"},m)),(0,e.createElement)("figure",s,m)};function Zn(){return Zn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zn.apply(this,arguments)}function Kn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kn(Object(n),!0).forEach((function(t){Xn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Jn=function(n){let{fieldDescriptor:r,fieldsDescriptor:i,attributes:a,attributes:{align:l,tagName:c,before:s,after:u,fallback:p},postId:d,postType:f}=n;const m=(0,o.useBlockProps)({className:I()("ct-dynamic-data",{[`has-text-align-${l}`]:l})}),g=(0,o.__experimentalUseBorderProps)(a);let h=null;return"archive_title"===r.id&&(h=function(){return(0,t.__)("Archive Title","blocksy")}),"archive_description"===r.id&&(h=function(){return(0,t.__)("Archive Description","blocksy")}),"title"===r.id&&(h=ln),"excerpt"===r.id&&(h=sn),"date"===r.id&&(h=pn),"comments"===r.id&&(h=bn),"terms"===r.id&&(h=On),"author"===r.id&&(h=yn),h?(0,e.createElement)(c,Zn({},m,g,{style:Yn(Yn({},m.style||{}),g.style||{}),className:I()(m.className,g.className)}),i&&i.dynamic_styles&&(0,e.createElement)("style",null,i.dynamic_styles),s,(0,e.createElement)(h,{attributes:a,postId:d,postType:f,fallback:p}),u):null};var Qn=function(t){const{fieldDescriptor:n}=t;return"featured_image"===n.id?(0,e.createElement)(kn,t):"author_avatar"===n.id?(0,e.createElement)(qn,t):(0,e.createElement)(Jn,t)};function er(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?er(Object(n),!0).forEach((function(t){nr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):er(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nr(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const rr={};var or=function(t){let{postId:n,fieldDescriptor:r}=t;const[o,i]=(0,e.useState)(rr),a=(0,e.useMemo)((function(){return`${n}-${r.provider}-${r.id}`}),[n,r.provider,r.id]);return(0,e.useEffect)((function(){rr[a]||fetch(`${wp.ajax.settings.url}?action=blocksy_dynamic_data_block_custom_field_data`,{headers:{Accept:"application/json","Content-Type":"application/json"},method:"POST",body:JSON.stringify({post_id:n,field_provider:r.provider,field_id:r.id})}).then((function(e){return e.json()})).then((function(e){let{success:t,data:n}=e;t&&(rr[a]={value:n.field_data},i(tr(tr({},o),{},{[a]:{value:n.field_data}})))}))}),[n,r.provider,r.id,a,o]),{fieldData:o[a]?o[a]:null}};function ir(){return ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ir.apply(this,arguments)}function ar(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ar(Object(n),!0).forEach((function(t){cr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ar(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cr(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sr=function(t){let{fieldDescriptor:n,attributes:r,attributes:{align:i,tagName:a,before:l,after:c,fallback:s},fieldData:u}=t;const p=(0,o.useBlockProps)({className:I()("ct-dynamic-data",{[`has-text-align-${i}`]:i})}),d=(0,o.__experimentalUseBorderProps)(r);let f=!1,m=u.value||"";return m||(f=!0,m=s||""),!f&&m&&"string"==typeof m&&(m=l+m+c),(0,e.createElement)(a,ir({},p,d,{style:lr(lr({},p.style||{}),d.style||{}),className:I()(p.className,d.className),dangerouslySetInnerHTML:{__html:m}}))};function ur(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ur(Object(n),!0).forEach((function(t){dr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ur(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dr(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fr=function(t){let{fieldDescriptor:n,fieldData:r,attributes:i,attributes:{aspectRatio:a,width:l,height:c,imageAlign:s,has_field_link:u,image_hover_effect:p,sizeSlug:d}}=t;const f=(0,o.useBlockProps)(pr({className:I()("ct-dynamic-media wp-block-image",{[`align${s}`]:s}),style:{aspectRatio:a,width:l,height:c}},"none"!==p?{"data-hover":p}:{})),m=(0,o.__experimentalUseBorderProps)(i);let g=r.value.value.url;r.value.value.sizes[d]&&(g=r.value.value.sizes[d].url);const h=pr(pr({},m.style),{},{height:a?"100%":c,width:!!a&&"100%",objectFit:!(!c&&!a)&&"cover"});if(!g)return(0,e.createElement)("figure",f,(0,e.createElement)("div",{className:"ct-dynamic-data-placeholder",style:pr({},h)},(0,e.createElement)("svg",{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60",preserveAspectRatio:"none",class:"components-placeholder__illustration","aria-hidden":"true",focusable:"false",style:{"min-height":"200px",height:!!a&&"100%",width:!!a&&"100%"}},(0,e.createElement)("path",{"vector-effect":"non-scaling-stroke",d:"M60 60 0 0"}))));let b=(0,e.createElement)("img",{style:pr({},h),src:g,className:m.className});return(0,e.createElement)("figure",f,b)};var mr=function(t){let{fieldDescriptor:n,postId:r,postType:o,attributes:i}=t;const{fieldData:a}=or({postId:r,fieldDescriptor:n});return a?"image"===n.type?(0,e.createElement)(fr,{fieldData:a,fieldDescriptor:n,attributes:i}):(0,e.createElement)(sr,{fieldData:a,fieldDescriptor:n,attributes:i}):null};var gr=function(t){let{product:n}=t;return(0,e.createElement)(e.RawHTML,null,null==n?void 0:n.price_html)};var hr=function(e){let{product:n}=e;return null!=n&&n.is_in_stock?(0,t.__)("In Stock","blocksy-companion"):(0,t.__)("Out of Stock","blocksy-companion")};var br=function(n){let{product:r}=n;const o=parseFloat(null==r?void 0:r.average_rating)/5*100+"%";return(0,e.createElement)("div",{className:"star-rating",role:"img","aria-label":"Rated 2.15 out of 5"},(0,e.createElement)("span",{style:{width:o}},(0,t.sprintf)((0,t.__)("Rated %s out of 5","blocksy-companion"),null==r?void 0:r.average_rating)))};var vr=function(e){let{product:t}=e;return(null==t?void 0:t.sku)||""};const yr=["product","isLoading"];function wr(){return wr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wr.apply(this,arguments)}function Or(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Or(Object(n),!0).forEach((function(t){Er(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Or(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Er(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pr(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const Cr=function(t){let{fieldDescriptor:n,attributes:r,attributes:{align:i,tagName:a,before:l,after:c,fallback:s},postId:u,postType:d}=t;const f=wc.wcBlocksSharedContext.useProductDataContext(),{product:m,isLoading:g}=f,h=(Pr(f,yr),(0,o.useBlockProps)({className:I()("ct-dynamic-data",{[`has-text-align-${i}`]:i})})),b=(0,o.__experimentalUseBorderProps)(r);if(g)return(0,e.createElement)(p.Spinner,null);let v=null;return"price"===n.id&&(v=gr),"stock_status"===n.id&&(v=hr),"rating"===n.id&&(v=br),"sku"===n.id&&(v=vr),v?(0,e.createElement)(a,wr({},h,b,{style:_r(_r({},h.style||{}),b.style||{}),className:I()(h.className,b.className)}),l,(0,e.createElement)(v,{attributes:r,postId:u,postType:d,fallback:s,product:m}),c):null};var kr=function(e){const{fieldDescriptor:t,postId:n}=e,{withProductDataContext:r}=wc.wcBlocksSharedHocs;return r(Cr)(_r(_r({},e),{},{productId:n}))};var jr=function(t){let{fieldDescriptor:n,fieldsDescriptor:r,postId:o,postType:i,attributes:a,attributes:{tagName:l,align:c,field:s,before:u,after:p,fallback:d}}=t;return"woo"===n.provider?(0,e.createElement)(kr,{fieldDescriptor:n,attributes:a,postId:o,postType:i}):"wp"===n.provider?(0,e.createElement)(Qn,{fieldsDescriptor:r,fieldDescriptor:n,attributes:a,postId:o,postType:i}):(0,e.createElement)(mr,{fieldDescriptor:n,attributes:a,postId:o,postType:i})};function Sr(t){let{level:n,isPressed:r=!1}=t;const o={h1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",h2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",h3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",h4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",h5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",h6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z",p:"M6.2 15V5h3.2c1.2 0 2 .1 2.4.2.6.2 1 .5 1.4 1 .4.5.6 1.1.6 1.9 0 .6-.1 1.1-.3 1.6-.2.4-.5.8-.9 1-.3.2-.7.4-1 .5-.5.1-1.2.1-2.1.1H8.2V15h-2zm2-8.3v2.8h1.1c.8 0 1.3 0 1.6-.2.3-.1.5-.3.6-.5.2-.2.2-.5.2-.8 0-.4-.1-.7-.3-.9-.2-.2-.5-.4-.8-.4-.2 0-.7-.1-1.5-.1.1.1-.9.1-.9.1z",span:"M8.2 12c.2 1 .9 1.4 2 1.4s1.6-.4 1.6-1.2c0-.8-.5-1.1-2.1-1.5-2.7-.6-3.3-1.5-3.3-2.9C6.4 6.2 7.6 5 9.9 5c2.6 0 3.6 1.4 3.7 2.8h-2.1c-.1-.6-.4-1.2-1.7-1.2-.9 0-1.4.4-1.4 1 0 .7.4.9 2 1.3 2.9.7 3.6 1.7 3.6 3.1 0 1.8-1.3 3-3.9 3-2.5 0-3.8-1.2-4-3h2.1z",div:"M5.8 5h3.7c.8 0 1.5.1 1.9.2.6.2 1.1.5 1.5.9.4.4.7 1 1 1.6.2.6.3 1.4.3 2.4 0 .8-.1 1.5-.3 2.1-.3.7-.6 1.3-1.1 1.8-.3.3-.8.6-1.4.8-.4.1-1 .2-1.8.2H5.8V5zm2 1.7v6.6h1.5c.6 0 1 0 1.2-.1.3-.1.6-.2.8-.4.2-.2.4-.5.5-1 .1-.4.2-1.1.2-1.8 0-.8-.1-1.4-.2-1.8-.1-.4-.3-.7-.6-1-.2-.2-.6-.4-.9-.5-.3-.1-.8-.1-1.6-.1l-.9.1z"};return o.hasOwnProperty(n)?(0,e.createElement)(p.SVG,{width:"24",height:"24",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",isPressed:r},(0,e.createElement)(p.Path,{d:o[n]})):null}function xr(n){let{tagName:r,onChange:o}=n;return(0,e.createElement)(p.ToolbarDropdownMenu,{popoverProps:{className:"block-library-heading-level-dropdown"},icon:(0,e.createElement)(Sr,{level:r}),label:(0,t.__)("Change heading level","blocksy"),controls:["h1","h2","h3","h4","h5","h6","p","span","div"].map((function(n){{const i=n===r;return{icon:(0,e.createElement)(Sr,{level:n,isPressed:i}),label:n,title:{h1:(0,t.__)("Heading 1","blocksy"),h2:(0,t.__)("Heading 2","blocksy"),h3:(0,t.__)("Heading 3","blocksy"),h4:(0,t.__)("Heading 4","blocksy"),h5:(0,t.__)("Heading 5","blocksy"),h6:(0,t.__)("Heading 6","blocksy"),p:(0,t.__)("Paragraph","blocksy"),span:(0,t.__)("Span","blocksy"),div:(0,t.__)("Div","blocksy")}[n],isActive:i,onClick(){o(n)},role:"menuitemradio"}}}))})}const Ir=function(e){return"wp"===e.provider?"featured_image"===e.id||"author_avatar"===e.id:"image"===e.type};function Dr(){return Dr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dr.apply(this,arguments)}var Nr=function(t){let{fieldDescriptor:n,attributes:r,attributes:{align:i,imageAlign:a},setAttributes:l}=t;return(0,e.createElement)(o.BlockControls,{group:"block"},Ir(n)?(0,e.createElement)(o.BlockAlignmentControl,Dr({},"wp"===n.provider&&"author_avatar"===n.id?{controls:["none","left","center","right"]}:{},{value:a,onChange:function(e){return l({imageAlign:e})}})):(0,e.createElement)(React.Fragment,null,(0,e.createElement)(o.AlignmentControl,{value:i,onChange:function(e){return l({align:e})}}),(0,e.createElement)(xr,{tagName:r.tagName,onChange:function(e){return l({tagName:e})}})))};function Tr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ar(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tr(Object(n),!0).forEach((function(t){Rr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Rr(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Mr=(0,Je.getOptionsForBlock)("dynamic-data"),Br=function(){const e=document.body.classList.contains("post-type-ct_content_block");return{provider:"wp",fields:[{id:"title",label:(0,t.__)("Title","blocksy")},{id:"excerpt",label:(0,t.__)("Excerpt","blocksy")},{id:"date",label:(0,t.__)("Post Date","blocksy")},{id:"comments",label:(0,t.__)("Comments","blocksy")},{id:"terms",label:(0,t.__)("Terms","blocksy")},{id:"author",label:(0,t.__)("Author","blocksy")},{id:"featured_image",label:(0,t.__)("Featured Image","blocksy")},{id:"author_avatar",label:(0,t.__)("Author Avatar","blocksy")},...e?[{id:"archive_title",label:(0,t.__)("Archive Title","blocksy")},{id:"archive_description",label:(0,t.__)("Archive Description","blocksy")}]:[]]}},Fr=function(){return void 0!==window.wc?[{provider:"woo",fields:[{id:"price",label:(0,t.__)("Price","blocksy")},{id:"rating",label:(0,t.__)("Rating","blocksy")},{id:"stock_status",label:(0,t.__)("Stock Status","blocksy")},{id:"sku",label:(0,t.__)("SKU","blocksy")}]}]:[]};let Lr={};const zr={};var Hr=function(n){let{postId:r,postType:o}=n;const[i,a]=(0,e.useState)({fields:[Br(),..."product"===o?Fr():[]]});(0,e.useEffect)((function(){!function(e,t,n){if(!zr[e])return Lr[e]?void Lr[e].push(n):(Lr[e]=[n],void fetch(`${wp.ajax.settings.url}?action=blocksy_blocks_retrieve_dynamic_data_descriptor`,{headers:{Accept:"application/json","Content-Type":"application/json"},method:"POST",body:JSON.stringify({post_id:e})}).then((function(e){return e.json()})).then((function(n){let{success:r,data:o}=n;const i=Ar(Ar({},o),{},{fields:[Br(),..."product"===t?Fr():[],...o.fields]});zr[e]=i,Lr[e].map((function(e){return e(i)}))})));n(zr[e])}(r,o,(function(e){a(e)}))}),[r,o]);const l=V(o);return{fieldsDescriptor:i,options:Mr,fieldsChoices:i.fields.reduce((function(e,n){return[...e,...n.fields.filter((function(e){return"wp"!==n.provider||"terms"!==e.id||l&&l.length>0})).map((function(e){return{group:(r=n.provider,{wp:"WordPress",woo:"WooCommerce",acf:"ACF",metabox:"MetaBox",custom:(0,t.__)("Custom","blocksy"),toolset:"Toolset",jetengine:"Jet Engine",pods:"Pods"}[r]||(0,t.__)("Unknown","blocksy")),key:`${n.provider}:${e.id}`,value:e.label};var r}))]}),[])}};var Vr=function(n){let{clientId:r,attributes:{aspectRatio:a,width:l,height:c,sizeSlug:s},setAttributes:u}=n;const d=(0,i.useSelect)((function(e){return e(o.store).getSettings().imageSizes}),[]).map((function(e){let{name:t,slug:n}=e;return{value:n,label:t}})),f=(0,p.__experimentalUseCustomUnits)({availableUnits:(0,o.useSetting)("spacing.units")||["px","%","vw","em","rem"]}),m=function(e,t){const n=parseFloat(t);isNaN(n)&&t||u({[e]:n<0?"0":t})};return(0,e.createElement)(p.__experimentalToolsPanel,{label:(0,t.__)("Image Settings","blocksy"),resetAll:function(){u({aspectRatio:"auto",width:void 0,height:void 0,sizeSlug:void 0})}},(0,e.createElement)(p.__experimentalToolsPanelItem,{hasValue:function(){return!!a},label:(0,t.__)("Aspect Ratio","blocksy"),onDeselect:function(){return u({aspectRatio:void 0})},resetAllFilter:function(){return{aspectRatio:"auto"}},isShownByDefault:!0,key:r},(0,e.createElement)(p.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,t.__)("Aspect Ratio","blocksy"),value:a,options:[{label:(0,t.__)("Original","blocksy"),value:"auto"},{label:(0,t.__)("Square","blocksy"),value:"1"},{label:(0,t.__)("16:9","blocksy"),value:"16/9"},{label:(0,t.__)("4:3","blocksy"),value:"4/3"},{label:(0,t.__)("3:2","blocksy"),value:"3/2"},{label:(0,t.__)("9:16","blocksy"),value:"9/16"},{label:(0,t.__)("3:4","blocksy"),value:"3/4"},{label:(0,t.__)("2:3","blocksy"),value:"2/3"}],onChange:function(e){return u({aspectRatio:e})}})),(0,e.createElement)(p.__experimentalToolsPanelItem,{style:{"grid-column":"span 1 / auto"},hasValue:function(){return!!l},label:(0,t.__)("Width","blocksy"),onDeselect:function(){return u({width:void 0})},resetAllFilter:function(){return{width:void 0}},isShownByDefault:!0,key:r},(0,e.createElement)(p.__experimentalUnitControl,{label:(0,t.__)("Width","blocksy"),labelPosition:"top",value:l||"",min:0,onChange:function(e){return m("width",e)},units:f})),(0,e.createElement)(p.__experimentalToolsPanelItem,{style:{"grid-column":"span 1 / auto"},hasValue:function(){return!!c},label:(0,t.__)("Height","blocksy"),onDeselect:function(){return u({height:void 0})},resetAllFilter:function(){return{height:void 0}},isShownByDefault:!0,key:r},(0,e.createElement)(p.__experimentalUnitControl,{label:(0,t.__)("Height","blocksy"),labelPosition:"top",value:c||"",min:0,onChange:function(e){return m("height",e)},units:f})),!!d.length&&(0,e.createElement)(p.__experimentalToolsPanelItem,{hasValue:function(){return!!s},label:(0,t.__)("Resolution","blocksy"),onDeselect:function(){return u({sizeSlug:void 0})},resetAllFilter:function(){return{sizeSlug:void 0}},isShownByDefault:!1,key:r},(0,e.createElement)(p.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,t.__)("Resolution","blocksy"),value:s||"full",options:d,onChange:function(e){return u({sizeSlug:e})},help:(0,t.__)("Select the size of the source image.","blocksy")})))};function Ur(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ur(Object(n),!0).forEach((function(t){Gr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ur(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gr(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Wr=function(n){let{fieldDescriptor:r,fieldsDescriptor:i,attributes:a,setAttributes:l,options:c,fieldsChoices:s,clientId:u,taxonomies:d}=n;return(0,e.createElement)(React.Fragment,null,(0,e.createElement)(o.InspectorControls,null,(0,e.createElement)(p.PanelBody,null,(0,e.createElement)(Je.OptionsPanel,{purpose:"gutenberg",onChange:function(e,t){l({[e]:t})},options:$r($r({field:{type:"ct-select",label:(0,t.__)("Content Source","blocksy"),value:"",defaultToFirstItem:!1,choices:s,purpose:"default"}},"wp:terms"===a.field&&d&&d.length>0?{taxonomy:{type:"ct-select",label:(0,t.__)("Taxonomy","blocksy"),value:"",design:"inline",purpose:"default",choices:d.map((function(e){let{name:t,slug:n}=e;return{key:n,value:t}}))}}:{}),c),value:$r($r({},a),i&&i.has_taxonomies_customization?{has_taxonomies_customization:"yes"}:{}),hasRevertButton:!1}),Ir(r)&&"wp:author_avatar"!==a.field&&(0,e.createElement)(Je.OptionsPanel,{purpose:"gutenberg",onChange:function(e,t){l({[e]:t})},options:$r($r({lightbox:{type:"ct-switch",label:(0,t.__)("Expand on click","blocksy"),value:"no"}},"wp:featured_image"===a.field?{videoThumbnail:{type:"ct-switch",label:(0,t.__)("Video Thumbnail","blocksy"),value:"no"}}:{}),{},{image_hover_effect:{label:(0,t.__)("Hover Effect","blocksy"),type:"ct-select",value:"none",view:"text",design:"inline",choices:{none:(0,t.__)("None","blocksy"),"zoom-in":(0,t.__)("Zoom In","blocksy"),"zoom-out":(0,t.__)("Zoom Out","blocksy")}}}),value:a,hasRevertButton:!1})),Ir(r)&&"wp:author_avatar"!==a.field&&(0,e.createElement)(React.Fragment,null,(0,e.createElement)(Vr,{clientId:u,attributes:a,setAttributes:l}),(0,e.createElement)(p.PanelBody,null,(0,e.createElement)(p.TextareaControl,{label:(0,t.__)("Alternative Text","blocksy"),value:a.alt_text||"",onChange:function(e){l({alt_text:e})},help:(0,e.createElement)(React.Fragment,null,(0,e.createElement)(p.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},(0,t.__)("Describe the purpose of the image.","blocksy")),(0,e.createElement)("br",null),(0,t.__)("Leave empty if decorative.","blocksy")),__nextHasNoMarginBottom:!0}))),"wp:author_avatar"===a.field&&(0,e.createElement)(p.PanelBody,null,(0,e.createElement)(p.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,t.__)("Image size","blocksy"),onChange:function(e){return l({avatar_size:e})},min:5,max:500,initialPosition:null==a?void 0:a.avatar_size,value:null==a?void 0:a.avatar_size})),!Ir(r)&&(0,e.createElement)(p.PanelBody,null,(0,e.createElement)(Je.OptionsPanel,{purpose:"gutenberg",onChange:function(e,t){l({[e]:t})},options:$r({before:{type:"text",label:(0,t.__)("Before","blocksy"),value:""},after:{type:"text",label:(0,t.__)("After","blocksy"),value:""}},"wp"!==r.provider||"wp"===r.provider&&("excerpt"===r.id||"terms"===r.id||"author"===r.id)?{fallback:{type:"text",label:(0,t.__)("Fallback","blocksy"),value:(0,t.__)("Custom field fallback","blocksy")}}:{}),value:a,hasRevertButton:!1}))),"wp:terms"===a.field&&(0,e.createElement)(o.InspectorControls,{group:"advanced"},(0,e.createElement)(p.TextControl,{__nextHasNoMarginBottom:!0,autoComplete:"off",label:(0,t.__)("Term additional class","blocksy"),value:a.termClass,onChange:function(e){l({termClass:e})},help:(0,t.__)("Additional class for term items. Useful for styling.","blocksy")})))};function qr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qr(Object(n),!0).forEach((function(t){Kr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kr(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Yr=function(t){let{clientId:n,attributes:r,setAttributes:o,context:i}=t;const{postId:a,postType:l}=i,{fieldsDescriptor:c,options:s,fieldsChoices:u}=Hr({postId:a,postType:l}),p=V(l),d=(0,e.useMemo)((function(){if(!r.field||!c)return null;const[e,t]=r.field.split(":"),n=c.fields.find((function(t){let{provider:n}=t;return n===e}));if(!n)return null;const o=n.fields.find((function(e){let{id:n}=e;return n===t}));return o?Zr(Zr({},o),{},{provider:n.provider}):null}),[r.field,c]);return(0,e.useEffect)((function(){"wp:terms"===r.field&&p&&0===p.length&&o({field:"wp:title"})}),[p,r.field]),d?(0,e.createElement)(React.Fragment,null,(0,e.createElement)(Nr,{fieldDescriptor:d,attributes:r,setAttributes:o}),(0,e.createElement)(jr,{attributes:r,postId:a,postType:l,fieldsDescriptor:c,fieldDescriptor:d}),(0,e.createElement)(Wr,{options:s,fieldDescriptor:d,attributes:r,setAttributes:o,fieldsChoices:u,clientId:n,fieldsDescriptor:c,taxonomies:p})):null},Xr=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"blocksy/dynamic-data","category":"blocksy-blocks","attributes":{"tagName":{"type":"string","default":"div"},"field":{"type":"string","default":"wp:title"},"before":{"type":"string","default":""},"after":{"type":"string","default":""},"fallback":{"type":"string","default":""},"align":{"type":"string"},"imageAlign":{"type":"string"},"aspectRatio":{"type":"string","default":"auto"},"width":{"type":"string"},"height":{"type":"string"},"sizeSlug":{"type":"string"},"alt_text":{"type":"string","default":""},"avatar_size":{"type":"number","default":96},"avatarIsLink":{"type":"boolean","default":false},"avatarLinkTarget":{"type":"string","default":"_self"},"featuredIsLink":{"type":"boolean","default":false},"featuredLinkTarget":{"type":"string","default":"_self"},"taxonomy":{"type":"string","default":""},"lightbox":{"type":"string","default":"no"},"videoThumbnail":{"type":"string","default":"no"},"image_hover_effect":{"type":"string","default":"none"},"termClass":{"type":"string","default":""},"termAccentColor":{"type":"string","default":"yes"}},"supports":{"className":false,"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"__experimentalBorder":{"color":true,"radius":true,"width":true,"__experimentalDefaultControls":{"color":true,"radius":true,"width":true},"__experimentalSelector":"img, .block-editor-media-placeholder, .wp-block-post-featured-image__overlay","__experimentalSkipSerialization":true},"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"text":true,"background":true,"link":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalTextDecoration":true,"__experimentalFontStyle":true,"__experimentalFontWeight":true,"__experimentalLetterSpacing":true,"__experimentalTextTransform":true,"__experimentalDefaultControls":{"fontSize":true}}},"usesContext":["postId","postType","queryId"]}');function Jr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jr(Object(n),!0).forEach((function(t){eo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function eo(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const to=(0,Je.getOptionsForBlock)("dynamic-data"),no=(0,Je.getAttributesFromOptions)(to);(0,r.registerBlockType)("blocksy/dynamic-data",Qr(Qr({},Xr),{},{title:(0,t.__)("Dynamic Data","blocksy"),description:(0,t.__)("Insert dynamic data anywhere you might want.","blocksy"),attributes:Qr(Qr({},Xr.attributes),no),icon:{src:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)("path",{d:"M17.9 10.5c-.1-.3-.4-.4-.7-.4h-3.7V4.6c0-.4-.2-.7-.6-.8h-.2c-.3 0-.5.1-.7.4l-5.7 8.6c-.2.3-.2.6 0 .8 0 .2.3.4.6.4h3.7v5.5c0 .4.2.7.6.8h.2c.3 0 .5-.1.7-.4l5.7-8.6c.2-.2.2-.6.1-.8zm-5.9 7v-4.4c0-.3-.3-.6-.6-.6H7.9l4.1-6v4.4c0 .3.3.6.6.6h3.5l-4.1 6z"}))},edit:function(t){return(0,e.createElement)(Yr,t)},save:function(){return null},__experimentalLabel:function(e){return"wp:title"===e.field?(0,t.__)("Dynamic Title","blocksy"):"wp:excerpt"===e.field?(0,t.__)("Dynamic Excerpt","blocksy"):"wp:date"===e.field?(0,t.__)("Dynamic Post Date","blocksy"):"wp:comments"===e.field?(0,t.__)("Dynamic Comments","blocksy"):"wp:terms"===e.field?(0,t.__)("Dynamic Terms","blocksy"):"wp:author"===e.field?(0,t.__)("Dynamic Author","blocksy"):"wp:featured_image"===e.field?(0,t.__)("Dynamic Featured Image","blocksy"):"wp:author_avatar"===e.field?(0,t.__)("Dynamic Author Avatar","blocksy"):"woo:price"===e.field?(0,t.__)("Dynamic Price","blocksy"):"woo:stock_status"===e.field?(0,t.__)("Dynamic Stock Status","blocksy"):"woo:sku"===e.field?(0,t.__)("Dynamic SKU","blocksy"):"woo:rating"===e.field?(0,t.__)("Dynamic Rating","blocksy"):(0,t.__)("Dynamic Data","blocksy")}}));const ro={inputFontColor:"",customInputFontColor:"",inputFontColorFocus:"",customInputFontColorFocus:"",inputIconColor:"",customInputIconColor:"",inputIconColorFocus:"",customInputIconColorFocus:"",inputBorderColor:"",customInputBorderColor:"",inputBorderColorFocus:"",customInputBorderColorFocus:"",inputBackgroundColor:"",customInputBackgroundColor:"",inputBackgroundColorFocus:"",customInputBackgroundColorFocus:"",buttonBackgroundColor:"",customButtonBackgroundColor:"",buttonBackgroundColorHover:"",customButtonBackgroundColorHover:"",dropdownTextInitialColor:"",customDropdownTextInitialColor:"",dropdownTextHoverColor:"",customDropdownTextHoverColor:"",dropdownBackgroundColor:"",customDropdownBackgroundColor:"",shadowColor:"",customShadowColor:""},oo=$e(ro);function io(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ao(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?io(Object(n),!0).forEach((function(t){lo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):io(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lo(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const co=ao({enable_live_results:"no",live_results_images:"yes",searchBoxHeight:"",searchProductPrice:"no",searchProductStatus:"no",search_box_placeholder:(0,t.__)("Search","blocksy"),taxonomy_filter_label:(0,t.__)("Select category","blocksy"),search_through:{post:!0,page:!0,product:!0,custom:!0},taxonomy_filter_visibility:{desktop:!0,tablet:!0,mobile:!1}},ro);var so=function(t){let{attributes:n,setAttributes:r,buttonStyles:i}=t;const[a,l]=(0,e.useState)(!1),{search_box_button_text:c,search_box_placeholder:s,taxonomy_filter_label:u,buttonPosition:d,has_taxonomy_filter:f,buttonUseText:m}=n,g=(0,e.useRef)({taxonomy:"",icon:""}),h=(0,e.useCallback)((function(e){const t=document.createElement("div");t.innerHTML=e;const n=t.querySelector('[type="search"]');n&&n.setAttribute("placeholder",s);return t.querySelector(".ct-search-box").style="",t.querySelector(".ct-select-taxonomy")&&(g.current=ao(ao({},g.current),{},{taxonomy:t.querySelector(".ct-select-taxonomy").outerHTML})),t.querySelector(".ct-icon")&&(g.current=ao(ao({},g.current),{},{icon:t.querySelector(".ct-icon").outerHTML})),t.innerHTML}),[s,d,i]),{isLoading:b}=Ue("search",ao(ao({},n),co),h);return(0,e.useEffect)((function(){l(!0),setTimeout((function(){l(!1)}),100)}),[n]),b?(0,e.createElement)(p.Spinner,null):(0,e.createElement)("form",{role:"search",method:"get",className:"ct-search-form","data-form-controls":d,"data-taxonomy-filter":"yes"===f?"true":"false","data-submit-button":"yes"===m?"text":"icon","data-updating":a?"yes":"no"},(0,e.createElement)("input",{type:"search",value:s,onChange:function(e){r({search_box_placeholder:e.target.value})},placeholder:"Search",name:"s",autocomplete:"off",title:"Search for...","aria-label":"Search for..."}),(0,e.createElement)("div",{className:"ct-search-form-controls"},"yes"===f?(0,e.createElement)("span",{className:"ct-fake-select-container"},(0,e.createElement)("select",{className:"ct-select-taxonomy"}),(0,e.createElement)(o.RichText,{tagName:"span",className:"ct-fake-select",value:u,placeholder:"Select Category",allowedFormats:[],onChange:function(e){return r({taxonomy_filter_label:e})}})):null,(0,e.createElement)("div",{className:"wp-element-button","data-button":`${d}:${"yes"===m?"text":"icon"}`,"aria-label":"Search button",style:i},"yes"===m?(0,e.createElement)(o.RichText,{tagName:"span",value:c,placeholder:"Search",allowedFormats:[],onChange:function(e){return r({search_box_button_text:e})}}):(0,e.createElement)(e.RawHTML,null,g.current.icon),(0,e.createElement)("span",{className:"ct-ajax-loader"},(0,e.createElement)("svg",{viewBox:"0 0 24 24"},(0,e.createElement)("circle",{cx:"12",cy:"12",r:"10",opacity:"0.2",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"2"}),(0,e.createElement)("path",{d:"m12,2c5.52,0,10,4.48,10,10",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"2"},(0,e.createElement)("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",dur:"0.6s",from:"0 12 12",to:"360 12 12",repeatCount:"indefinite"})))))))};const uo=(0,e.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(p.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"9.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}),(0,e.createElement)(p.Rect,{x:"16",y:"10",width:"4",height:"4",rx:"1",fill:"currentColor"})),po=(0,e.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(p.Rect,{x:"4.75",y:"7.75",width:"14.5",height:"8.5",rx:"1.25",stroke:"currentColor",fill:"none",strokeWidth:"1.5"}),(0,e.createElement)(p.Rect,{x:"8",y:"11",width:"8",height:"2",fill:"currentColor"}));function fo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fo(Object(n),!0).forEach((function(t){go(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function go(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ho=(0,o.withColors)({textColor:"color"},{inputFontColor:"color"},{inputFontColorFocus:"color"},{inputIconColor:"color"},{inputIconColorFocus:"color"},{inputBorderColor:"color"},{inputBorderColorFocus:"color"},{inputBackgroundColor:"color"},{inputBackgroundColorFocus:"color"},{buttonBackgroundColor:"color"},{buttonBackgroundColorHover:"color"},{dropdownTextInitialColor:"color"},{dropdownTextHoverColor:"color"},{dropdownBackgroundColor:"color"},{shadowColor:"color"})((function(n){var r,i;let{attributes:a,setAttributes:l,clientId:c,className:s,inputFontColor:u,setInputFontColor:d,inputFontColorFocus:m,setInputFontColorFocus:g,inputIconColor:h,setInputIconColor:b,inputIconColorFocus:v,setInputIconColorFocus:y,inputBorderColor:w,setInputBorderColor:O,inputBorderColorFocus:_,setInputBorderColorFocus:E,inputBackgroundColor:P,setInputBackgroundColor:C,inputBackgroundColorFocus:k,setInputBackgroundColorFocus:j,buttonBackgroundColor:S,setButtonBackgroundColor:x,buttonBackgroundColorHover:I,setButtonBackgroundColorHover:D,dropdownTextInitialColor:N,setDropdownTextInitialColor:T,dropdownTextHoverColor:A,setDropdownTextHoverColor:R,dropdownBackgroundColor:M,setDropdownBackgroundColor:B,shadowColor:F,setShadowColor:L}=n;const{buttonUseText:z="no",buttonPosition:H,enable_live_results:V}=a,U=null==a||null===(r=a.style)||void 0===r||null===(i=r.border)||void 0===i?void 0:i.radius,$=(0,e.useRef)(),G=(0,o.useBlockProps)({ref:$,className:{"ct-search-box":!0,className:s},style:mo(mo(mo({"--theme-form-text-initial-color":null==u?void 0:u.color,"--theme-form-text-focus-color":null==m?void 0:m.color,"--theme-form-field-border-initial-color":null==w?void 0:w.color,"--theme-form-field-border-focus-color":null==_?void 0:_.color,"--theme-form-field-background-initial-color":null==P?void 0:P.color,"--theme-form-field-background-focus-color":null==k?void 0:k.color},U?{"--theme-form-field-border-radius":`${"string"==typeof U?U:`${U.topLeft} ${U.topRight} ${U.bottomLeft} ${U.bottomRight}`}`}:{}),null!=a&&a.searchBoxHeight?{"--theme-form-field-height":`${a.searchBoxHeight}px`}:{}),"yes"===V?{"--theme-link-initial-color":null==N?void 0:N.color,"--theme-link-hover-color":null==A?void 0:A.color,"--search-dropdown-background":null==M?void 0:M.color,"--search-dropdown-box-shadow-color":null==F?void 0:F.color}:{})});return(0,e.createElement)("div",G,(0,e.createElement)(so,{blockProps:G,attributes:a,setAttributes:l,buttonStyles:mo(mo(mo({},null!=h&&h.color?{"--theme-button-text-initial-color":h.color}:{}),null!=v&&v.color?{"--theme-button-text-hover-color":v.color}:{}),"outside"===H?mo(mo({},null!=S&&S.color?{"--theme-button-background-initial-color":S.color}:{}),null!=I&&I.color?{"--theme-button-background-hover-color":I.color}:{}):{})}),(0,e.createElement)(Qe,{attributes:a,setAttributes:l,options:wo}),(0,e.createElement)(o.BlockControls,null,(0,e.createElement)(p.ToolbarGroup,null,(0,e.createElement)(p.ToolbarButton,{title:(0,t.__)("Button Outside"),icon:uo,onClick:function(){l({buttonPosition:"outside"===H?"inside":"outside"})},className:"outside"===H?"is-pressed":void 0}),(0,e.createElement)(p.ToolbarButton,{title:(0,t.__)("Use button with text"),icon:po,onClick:function(){l({buttonUseText:"no"===z?"yes":"no"})},className:"yes"===z?"is-pressed":void 0}))),(0,e.createElement)(o.InspectorControls,{group:"styles"},(0,e.createElement)(f,{label:(0,t.__)("Input Font Color","blocksy"),resetAll:function(){d(ro.inputFontColor),g(ro.inputFontColorFocus)},panelId:c,settings:[{colorValue:u.color,label:(0,t.__)("Initial","blocksy"),onColorChange:function(e){return d(e||ro.inputFontColor)}},{colorValue:m.color,label:(0,t.__)("Focus","blocksy"),onColorChange:function(e){return g(e||ro.inputFontColorFocus)}}]}),(0,e.createElement)(f,{label:(0,t.__)("Input Border Color","blocksy"),resetAll:function(){O(ro.inputBorderColor),E(ro.inputBorderColorFocus)},panelId:c,settings:[{colorValue:w.color,label:(0,t.__)("Initial","blocksy"),onColorChange:function(e){return O(e||ro.inputBorderColor)}},{colorValue:_.color,label:(0,t.__)("Focus","blocksy"),onColorChange:function(e){return E(e||ro.inputBorderColorFocus)}}]}),(0,e.createElement)(f,{label:(0,t.__)("Input Background Color","blocksy"),resetAll:function(){C(ro.inputBackgroundColor),j(ro.inputBackgroundColorFocus)},panelId:c,settings:[{colorValue:P.color,label:(0,t.__)("Initial","blocksy"),onColorChange:function(e){return C(e||ro.inputBackgroundColor)}},{colorValue:k.color,label:(0,t.__)("Focus","blocksy"),onColorChange:function(e){return j(e||ro.inputBackgroundColorFocus)}}]}),(0,e.createElement)(f,{label:"yes"===z?(0,t.__)("Button Text Color","blocksy"):(0,t.__)("Button Icon Color","blocksy"),resetAll:function(){b(ro.inputIconColor),y(ro.inputIconColorFocus)},panelId:c,settings:[{colorValue:h.color,label:(0,t.__)("Initial","blocksy"),onColorChange:function(e){return b(e||ro.inputIconColor)}},{colorValue:v.color,label:(0,t.__)("Hover","blocksy"),onColorChange:function(e){return y(e||ro.inputIconColorFocus)}}]}),"outside"===H?(0,e.createElement)(f,{label:(0,t.__)("Button Background Color","blocksy"),resetAll:function(){x(ro.buttonBackgroundColor),D(ro.buttonBackgroundColorHover)},panelId:c,settings:[{colorValue:S.color,label:(0,t.__)("Initial","blocksy"),onColorChange:function(e){return x(e||ro.buttonBackgroundColor)}},{colorValue:I.color,label:(0,t.__)("Hover","blocksy"),onColorChange:function(e){return D(e||ro.buttonBackgroundColorHover)}}]}):null,"yes"===V?(0,e.createElement)(React.Fragment,null,(0,e.createElement)(f,{label:(0,t.__)("Dropdown Text Color","blocksy"),resetAll:function(){T(ro.dropdownTextInitialColor),R(ro.dropdownTextHoverColor)},panelId:c,settings:[{colorValue:N.color,label:(0,t.__)("Initial","blocksy"),onColorChange:function(e){return T(e||ro.dropdownTextInitialColor)}},{colorValue:A.color,label:(0,t.__)("Hover","blocksy"),onColorChange:function(e){return R(e||ro.dropdownTextHoverColor)}}]}),(0,e.createElement)(f,{label:(0,t.__)("Dropdown Background Color","blocksy"),resetAll:function(){B(ro.dropdownBackgroundColor)},panelId:c,settings:[{colorValue:M.color,label:(0,t.__)("Initial","blocksy"),onColorChange:function(e){return B(e||ro.dropdownBackgroundColor)}}]}),(0,e.createElement)(f,{label:(0,t.__)("Dropdown Shadow Color","blocksy"),resetAll:function(){L(ro.shadowColor)},panelId:c,settings:[{colorValue:F.color,enableAlpha:!0,label:(0,t.__)("Initial","blocksy"),onColorChange:function(e){return L(e||ro.shadowColor)}}]})):null))}));function bo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bo(Object(n),!0).forEach((function(t){yo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yo(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const wo=He("search"),Oo=ze(wo);(0,r.registerBlockType)("blocksy/search",{apiVersion:3,title:(0,t.__)("Advanced Search","blocksy"),description:(0,t.__)("Insert a search block anywhere on the site.","blocksy"),icon:{src:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:"wc-block-editor-components-block-icon"},(0,e.createElement)("path",{d:"m19.7 18.5-3-2.9c1-1.3 1.6-2.8 1.6-4.5 0-3.9-3.2-7.2-7.2-7.2S4 7.2 4 11.2s3.2 7.2 7.2 7.2c1.7 0 3.3-.6 4.5-1.6l3 3c.1.1.3.2.5.2s.4-.1.5-.2c.3-.4.3-1 0-1.3zM5.6 11.2c0-3.1 2.5-5.5 5.5-5.5s5.6 2.4 5.6 5.5-2.5 5.5-5.5 5.5-5.6-2.5-5.6-5.5z"}))},category:"blocksy-blocks",attributes:vo(vo({},Oo),oo),supports:{spacing:{margin:!0,__experimentalDefaultControls:{margin:!0}},__experimentalBorder:{color:!1,radius:!0,width:!1,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!1,radius:!0,width:!1}}},edit:function(t){return(0,e.createElement)(ho,t)},save:function(){return(0,e.createElement)("div",null,"Blocksy: Search Block")}})}()}();
     49 */if("function"==typeof Symbol&&Symbol.for){var y=Symbol.for;n=y("react.element"),r=y("react.portal"),o=y("react.fragment"),i=y("react.strict_mode"),a=y("react.profiler"),l=y("react.provider"),c=y("react.context"),s=y("react.forward_ref"),u=y("react.suspense"),p=y("react.suspense_list"),d=y("react.memo"),f=y("react.lazy"),m=y("react.block"),g=y("react.server.block"),h=y("react.fundamental"),b=y("react.debug_trace_mode"),v=y("react.legacy_hidden")}function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case u:case p:return e;default:switch(e=e&&e.$$typeof){case c:case s:case f:case d:case l:return e;default:return t}}case r:return t}}}t.isContextConsumer=function(e){return w(e)===c}},2973:function(e,t,n){"use strict";e.exports=n(8359)},4823:function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var o=r(n(3366)),i=r(n(7462)),a=r(n(7363)),l=r(n(1533));let c,s,u,p,d,f=[],m=e=>"undefined"!=typeof window&&window.requestAnimationFrame(e),g=e=>"undefined"!=typeof window&&window.cancelAnimationFrame(e),h=()=>Date.now();const b=(e,t)=>s={fn:e,transform:t},v=e=>f=e,y=e=>c=e,w=e=>u=e,O=e=>p=e,_=e=>d=e;var E=Object.freeze({get bugfixes(){return c},get applyAnimatedValues(){return s},get colorNames(){return f},get requestFrame(){return m},get cancelFrame(){return g},get interpolation(){return u},get now(){return h},get defaultElement(){return p},get createAnimatedStyle(){return d},injectApplyAnimatedValues:b,injectColorNames:v,injectBugfixes:y,injectInterpolation:w,injectFrame:(e,t)=>{var n=[e,t];return m=n[0],g=n[1],n},injectNow:e=>h=e,injectDefaultElement:O,injectCreateAnimatedStyle:_});class P{attach(){}detach(){}getValue(){}getAnimatedValue(){return this.getValue()}addChild(e){}removeChild(e){}getChildren(){return[]}}const C=e=>Object.keys(e).map((t=>e[t]));class k extends P{constructor(){var e;super(...arguments),e=this,this.children=[],this.getChildren=()=>this.children,this.getPayload=function(t){return void 0===t&&(t=void 0),void 0!==t&&e.payload?e.payload[t]:e.payload||e}}addChild(e){0===this.children.length&&this.attach(),this.children.push(e)}removeChild(e){const t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()}}class j extends k{constructor(){super(...arguments),this.payload=[],this.getAnimatedValue=()=>this.getValue(),this.attach=()=>this.payload.forEach((e=>e instanceof P&&e.addChild(this))),this.detach=()=>this.payload.forEach((e=>e instanceof P&&e.removeChild(this)))}}class S extends k{constructor(){super(...arguments),this.payload={},this.getAnimatedValue=()=>this.getValue(!0),this.attach=()=>C(this.payload).forEach((e=>e instanceof P&&e.addChild(this))),this.detach=()=>C(this.payload).forEach((e=>e instanceof P&&e.removeChild(this)))}getValue(e){void 0===e&&(e=!1);const t={};for(const n in this.payload){const r=this.payload[n];(!e||r instanceof P)&&(t[n]=r instanceof P?r[e?"getAnimatedValue":"getValue"]():r)}return t}}class x extends S{constructor(e){super(),!(e=e||{}).transform||e.transform instanceof P||(e=s.transform(e)),this.payload=e}}const I={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199};class D{static create(e,t,n){if("function"==typeof e)return e;if(u&&e.output&&"string"==typeof e.output[0])return u(e);if(Array.isArray(e))return D.create({range:e,output:t,extrapolate:n||"extend"});let r=e.output,o=e.range||[0,1],i=e.easing||(e=>e),a="extend",l=e.map;void 0!==e.extrapolateLeft?a=e.extrapolateLeft:void 0!==e.extrapolate&&(a=e.extrapolate);let c="extend";return void 0!==e.extrapolateRight?c=e.extrapolateRight:void 0!==e.extrapolate&&(c=e.extrapolate),e=>{let t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,o);return function(e,t,n,r,o,i,a,l,c){let s=c?c(e):e;if(s<t){if("identity"===a)return s;"clamp"===a&&(s=t)}if(s>n){if("identity"===l)return s;"clamp"===l&&(s=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?s=-s:n===1/0?s-=t:s=(s-t)/(n-t);s=i(s),r===-1/0?s=-s:o===1/0?s+=r:s=s*(o-r)+r;return s}(e,o[t],o[t+1],r[t],r[t+1],i,a,c,l)}}}const N="[-+]?\\d*\\.?\\d+",T=N+"%";function A(){return"\\(\\s*("+Array.prototype.slice.call(arguments).join(")\\s*,\\s*(")+")\\s*\\)"}const R=new RegExp("rgb"+A(N,N,N)),M=new RegExp("rgba"+A(N,N,N,N)),B=new RegExp("hsl"+A(N,T,T)),F=new RegExp("hsla"+A(N,T,T,N)),L=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,z=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,H=/^#([0-9a-fA-F]{6})$/,V=/^#([0-9a-fA-F]{8})$/;function U(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function $(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=U(o,r,e+1/3),a=U(o,r,e),l=U(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function G(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function W(e){return(parseFloat(e)%360+360)%360/360}function q(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Z(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function K(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=H.exec(e))?parseInt(t[1]+"ff",16)>>>0:I.hasOwnProperty(e)?I[e]:(t=R.exec(e))?(G(t[1])<<24|G(t[2])<<16|G(t[3])<<8|255)>>>0:(t=M.exec(e))?(G(t[1])<<24|G(t[2])<<16|G(t[3])<<8|q(t[4]))>>>0:(t=L.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=V.exec(e))?parseInt(t[1],16)>>>0:(t=z.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=B.exec(e))?(255|$(W(t[1]),Z(t[2]),Z(t[3])))>>>0:(t=F.exec(e))?($(W(t[1]),Z(t[2]),Z(t[3]))|q(t[4]))>>>0:null}(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}const Y=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,X=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,J=new RegExp(`(${Object.keys(I).join("|")})`,"g");class Q extends j{constructor(e,t,n){super(),this.getValue=()=>this.calc(...this.payload.map((e=>e.getValue()))),this.updateConfig=(e,t)=>this.calc=D.create(e,t),this.interpolate=(e,t)=>new Q(this,e,t),this.payload=e instanceof j&&!e.updateConfig?e.payload:Array.isArray(e)?e:[e],this.calc=D.create(t,n)}}function ee(e,t){"function"==typeof e.update?t.add(e):e.getChildren().forEach((e=>ee(e,t)))}class te extends k{constructor(e){var t;super(),t=this,this.setValue=function(e,n){void 0===n&&(n=!0),t.value=e,n&&t.flush()},this.getValue=()=>this.value,this.updateStyles=()=>ee(this,this.animatedStyles),this.updateValue=e=>this.flush(this.value=e),this.interpolate=(e,t)=>new Q(this,e,t),this.value=e,this.animatedStyles=new Set,this.done=!1,this.startPosition=e,this.lastPosition=e,this.lastVelocity=void 0,this.lastTime=void 0,this.controller=void 0}flush(){0===this.animatedStyles.size&&this.updateStyles(),this.animatedStyles.forEach((e=>e.update()))}prepare(e){void 0===this.controller&&(this.controller=e),this.controller===e&&(this.startPosition=this.value,this.lastPosition=this.value,this.lastVelocity=e.isActive?this.lastVelocity:void 0,this.lastTime=e.isActive?this.lastTime:void 0,this.done=!1,this.animatedStyles.clear())}}class ne extends j{constructor(e){var t;super(),t=this,this.setValue=function(e,n){void 0===n&&(n=!0),Array.isArray(e)?e.length===t.payload.length&&e.forEach(((e,r)=>t.payload[r].setValue(e,n))):t.payload.forEach(((r,o)=>t.payload[o].setValue(e,n)))},this.getValue=()=>this.payload.map((e=>e.getValue())),this.interpolate=(e,t)=>new Q(this,e,t),this.payload=e.map((e=>new te(e)))}}function re(e,t){return null==e?t:e}function oe(e){return void 0!==e?Array.isArray(e)?e:[e]:[]}function ie(e,t){if(typeof e!=typeof t)return!1;if("string"==typeof e||"number"==typeof e)return e===t;let n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return void 0!==n||e===t}function ae(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"==typeof e?e(...n):e}function le(e){return Object.keys(e).map((t=>e[t]))}function ce(e){const t=function(e){return e.to,e.from,e.config,e.native,e.onStart,e.onRest,e.onFrame,e.children,e.reset,e.reverse,e.force,e.immediate,e.impl,e.inject,e.delay,e.attach,e.destroyed,e.interpolateTo,e.autoStart,e.ref,o(e,["to","from","config","native","onStart","onRest","onFrame","children","reset","reverse","force","immediate","impl","inject","delay","attach","destroyed","interpolateTo","autoStart","ref"])}(e),n=Object.keys(e).reduce(((n,r)=>void 0!==t[r]?n:i({},n,{[r]:e[r]})),{});return i({to:t},n)}function se(e,t){let n=t[0],r=t[1];return i({},e,{[n]:new(Array.isArray(r)?ne:te)(r)})}function ue(e){const t=e.from,n=e.to,r=e.native,o=Object.entries(i({},t,n));return r?o.reduce(se,{}):i({},t,n)}function pe(e,t){return t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e}const de=e=>"auto"===e;let fe={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const me=["Webkit","Ms","Moz","O"];function ge(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||fe.hasOwnProperty(e)&&fe[e]?(""+t).trim():t+"px"}fe=Object.keys(fe).reduce(((e,t)=>(me.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),fe);const he={};_((e=>new x(e))),O("div"),w((function(e){const t=e.output.map((e=>e.replace(X,K))).map((e=>e.replace(J,K))),n=t[0].match(Y).map((()=>[]));t.forEach((e=>{e.match(Y).forEach(((e,t)=>n[t].push(+e)))}));const r=t[0].match(Y).map(((t,r)=>D.create(i({},e,{output:n[r]}))));return e=>{let n=0;return t[0].replace(Y,(()=>r[n++](e))).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,((e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`))}})),v(I),y((function(e,t){const n=e.from,r=e.to,o=e.children;if(!le(r).some(de)&&!le(n).some(de))return;let c=o(ue(e));if(!c)return;Array.isArray(c)&&(c={type:"div",props:{children:c}});const s=c.props.style;return a.createElement(c.type,i({key:c.key?c.key:void 0},c.props,{style:i({},s,{position:"absolute",visibility:"hidden"}),ref:o=>{if(o){let a,c,s=l.findDOMNode(o),u=getComputedStyle(s);if("border-box"===u.boxSizing)a=s.offsetWidth,c=s.offsetHeight;else{const e=parseFloat(u.paddingLeft||0)+parseFloat(u.paddingRight||0),t=parseFloat(u.paddingTop||0)+parseFloat(u.paddingBottom||0),n=parseFloat(u.borderLeftWidth||0)+parseFloat(u.borderRightWidth||0),r=parseFloat(u.borderTopWidth||0)+parseFloat(u.borderBottomWidth||0);a=s.offsetWidth-e-n,c=s.offsetHeight-t-r}const p=((e,t)=>(n,r)=>{let o=r[0],a=r[1];return i({},n,{[o]:"auto"===a?~o.indexOf("height")?t:e:a})})(a,c);t(i({},e,{from:Object.entries(n).reduce(p,n),to:Object.entries(r).reduce(p,r)}))}}}))})),b(((e,t)=>{if(!e.nodeType||void 0===e.setAttribute)return!1;{const i=t.style,a=t.children,l=t.scrollTop,c=t.scrollLeft,s=o(t,["style","children","scrollTop","scrollLeft"]);void 0!==l&&(e.scrollTop=l),void 0!==c&&(e.scrollLeft=c),void 0!==a&&(e.textContent=a);for(let t in i)if(i.hasOwnProperty(t)){var n=0===t.indexOf("--"),r=ge(t,i[t],n);"float"===t&&(t="cssFloat"),n?e.style.setProperty(t,r):e.style[t]=r}for(let t in s){const n=he[t]||(he[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())));void 0!==e.getAttribute(n)&&e.setAttribute(n,s[t])}}}),(e=>e));let be=!1;const ve=new Set,ye=()=>{let e=h();for(let t of ve){let n=!0,r=!0;for(let o=0;o<t.configs.length;o++){let i,a,l=t.configs[o];for(let o=0;o<l.animatedValues.length;o++){let c=l.animatedValues[o];if(c.done)continue;let s=l.fromValues[o],u=l.toValues[o],p=c.lastPosition,d=u instanceof P,f=Array.isArray(l.initialVelocity)?l.initialVelocity[o]:l.initialVelocity;if(d&&(u=u.getValue()),l.immediate||!d&&!l.decay&&s===u)c.updateValue(u),c.done=!0;else if(l.delay&&e-t.startTime<l.delay)n=!1;else if(r=!1,"string"!=typeof s&&"string"!=typeof u){if(void 0!==l.duration)p=s+l.easing((e-t.startTime-l.delay)/l.duration)*(u-s),i=e>=t.startTime+l.delay+l.duration;else if(l.decay)p=s+f/(1-.998)*(1-Math.exp(-(1-.998)*(e-t.startTime))),i=Math.abs(c.lastPosition-p)<.1,i&&(u=p);else{a=void 0!==c.lastTime?c.lastTime:e,f=void 0!==c.lastVelocity?c.lastVelocity:l.initialVelocity,e>a+64&&(a=e);let t=Math.floor(e-a);for(let e=0;e<t;++e){f+=1*((-l.tension*(p-u)+-l.friction*f)/l.mass)/1e3,p+=1*f/1e3}let n=!(!l.clamp||0===l.tension)&&(s<u?p>u:p<u),r=Math.abs(f)<=l.precision,o=0===l.tension||Math.abs(u-p)<=l.precision;i=n||r&&o,c.lastVelocity=f,c.lastTime=e}d&&!l.toValues[o].done&&(i=!1),i?(c.value!==u&&(p=u),c.done=!0):n=!1,c.updateValue(p),c.lastPosition=p}else c.updateValue(u),c.done=!0}!t.props.onFrame&&t.props.native||(t.animatedProps[l.name]=l.interpolation.getValue())}!t.props.onFrame&&t.props.native||(!t.props.native&&t.onUpdate&&t.onUpdate(),t.props.onFrame&&t.props.onFrame(t.animatedProps)),n&&(ve.delete(t),t.debouncedOnEnd({finished:!0,noChange:r}))}ve.size?m(ye):be=!1},we=e=>{ve.has(e)&&ve.delete(e)};class Oe{constructor(e,t){void 0===t&&(t={native:!0,interpolateTo:!0,autoStart:!0}),this.getValues=()=>this.props.native?this.interpolations:this.animatedProps,this.dependents=new Set,this.isActive=!1,this.hasChanged=!1,this.props={},this.merged={},this.animations={},this.interpolations={},this.animatedProps={},this.configs=[],this.frame=void 0,this.startTime=void 0,this.lastTime=void 0,this.update(i({},e,t))}update(e){this.props=i({},this.props,e);let t=this.props.interpolateTo?ce(this.props):this.props,n=t.from,r=void 0===n?{}:n,o=t.to,a=void 0===o?{}:o,l=t.config,c=void 0===l?{}:l,s=t.delay,u=void 0===s?0:s,p=t.reverse,d=t.attach,m=t.reset,g=t.immediate,h=t.autoStart,b=t.ref;if(p){var v=[a,r];r=v[0],a=v[1]}this.hasChanged=!1;let y=d&&d(this),w=m?{}:this.merged;if(this.merged=i({},r,w,a),this.animations=Object.entries(this.merged).reduce(((e,t,n)=>{let o=t[0],a=t[1],l=!m&&e[o]||{};const s="number"==typeof a,p="string"==typeof a&&!a.startsWith("#")&&!/\d/.test(a)&&!f[a],d=!s&&!p&&Array.isArray(a);let h=void 0!==r[o]?r[o]:a,b=s||d||p?a:1,v=ae(c,o);if(y&&(b=y.animations[o].parent),void 0===v.decay&&ie(l.changes,a))return e;{let t,n;if(this.hasChanged=!0,s||p)t=n=l.parent||new te(h);else if(d)t=n=l.parent||new ne(h);else{const e=l.interpolation&&l.interpolation.calc(l.parent.value);l.parent?(t=l.parent,t.setValue(0,!1)):t=new te(0);const r={output:[void 0!==e?e:h,a]};l.interpolation?(n=l.interpolation,l.interpolation.updateConfig(r)):n=t.interpolate(r)}ae(g,o)&&t.setValue(a,!1);const r=oe(t.getPayload());return r.forEach((e=>e.prepare(this))),i({},e,{[o]:i({},l,{name:o,parent:t,interpolation:n,animatedValues:r,changes:a,fromValues:oe(t.getValue()),toValues:oe(y?b.getPayload():b),immediate:ae(g,o),delay:re(v.delay,u||0),initialVelocity:re(v.velocity,0),clamp:re(v.clamp,!1),precision:re(v.precision,.01),tension:re(v.tension,170),friction:re(v.friction,26),mass:re(v.mass,1),duration:v.duration,easing:re(v.easing,(e=>e)),decay:v.decay})})}}),this.animations),this.hasChanged){this.configs=le(this.animations),this.animatedProps={},this.interpolations={};for(let e in this.animations)this.interpolations[e]=this.animations[e].interpolation,this.animatedProps[e]=this.animations[e].interpolation.getValue()}for(var O=arguments.length,_=new Array(O>1?O-1:0),E=1;E<O;E++)_[E-1]=arguments[E];b||!h&&!_.length||this.start(..._);const P=_[0],C=_[1];return this.onEnd="function"==typeof P&&P,this.onUpdate=C,this.getValues()}start(e,t){var n;return this.startTime=h(),this.isActive&&this.stop(),this.isActive=!0,this.onEnd="function"==typeof e&&e,this.onUpdate=t,this.props.onStart&&this.props.onStart(),n=this,ve.has(n)||(ve.add(n),be||m(ye),be=!0),new Promise((e=>this.resolve=e))}stop(e){void 0===e&&(e=!1),e&&le(this.animations).forEach((e=>e.changes=void 0)),this.debouncedOnEnd({finished:e})}destroy(){we(this),this.props={},this.merged={},this.animations={},this.interpolations={},this.animatedProps={},this.configs=[]}debouncedOnEnd(e){we(this),this.isActive=!1;const t=this.onEnd;this.onEnd=null,t&&t(e),this.resolve&&this.resolve(),this.resolve=null}}class _e extends S{constructor(e,t){super(),e.style&&(e=i({},e,{style:d(e.style)})),this.payload=e,this.update=t,this.attach()}}function Ee(e){class t extends a.Component{constructor(e){super(),this.callback=()=>{if(this.node){!1===s.fn(this.node,this.propsAnimated.getAnimatedValue(),this)&&this.forceUpdate()}},this.attachProps(e)}componentWillUnmount(){this.propsAnimated&&this.propsAnimated.detach()}setNativeProps(e){!1===s.fn(this.node,e,this)&&this.forceUpdate()}attachProps(e){e.forwardRef;let t=o(e,["forwardRef"]);const n=this.propsAnimated;this.propsAnimated=new _e(t,this.callback),n&&n.detach()}shouldComponentUpdate(e){const t=e.style,n=o(e,["style"]),r=this.props,i=r.style;return(!ie(o(r,["style"]),n)||!ie(i,t))&&(this.attachProps(e),!0)}render(){const t=this.propsAnimated.getValue(),n=(t.scrollTop,t.scrollLeft,o(t,["scrollTop","scrollLeft"]));return a.createElement(e,i({},n,{ref:e=>this.node=pe(e,this.props.forwardRef)}))}}return a.forwardRef(((e,n)=>a.createElement(t,i({},e,{forwardRef:n}))))}const Pe={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}};class Ce extends a.Component{constructor(){super(...arguments),this.state={lastProps:{from:{},to:{}},propsChanged:!1,internal:!1},this.controller=new Oe(null,null),this.didUpdate=!1,this.didInject=!1,this.finished=!0,this.start=()=>{this.finished=!1;let e=this.mounted;this.controller.start((t=>this.finish(i({},t,{wasMounted:e}))),this.update)},this.stop=()=>this.controller.stop(!0),this.update=()=>this.mounted&&this.setState({internal:!0}),this.finish=e=>{let t=e.finished,n=e.noChange,r=e.wasMounted;this.finished=!0,this.mounted&&t&&(!this.props.onRest||!r&&n||this.props.onRest(this.controller.merged),this.mounted&&this.didInject&&(this.afterInject=ue(this.props),this.setState({internal:!0})),this.mounted&&(this.didInject||this.props.after)&&this.setState({internal:!0}),this.didInject=!1)}}componentDidMount(){this.componentDidUpdate(),this.mounted=!0}componentWillUnmount(){this.mounted=!1,this.stop()}static getDerivedStateFromProps(e,t){let n=t.internal,r=t.lastProps;const o=e.from,i=e.to,a=e.reset,l=e.force;return{propsChanged:!ie(i,r.to)||!ie(o,r.from)||a&&!n||l&&!n,lastProps:e,internal:!1}}render(){const e=this.props.children,t=this.state.propsChanged;if(this.props.inject&&t&&!this.injectProps){const e=this.props.inject(this.props,(e=>{this.injectProps=e,this.setState({internal:!0})}));if(e)return e}(this.injectProps||t)&&(this.didInject=!1,this.injectProps?(this.controller.update(this.injectProps),this.didInject=!0):t&&this.controller.update(this.props),this.didUpdate=!0,this.afterInject=void 0,this.injectProps=void 0);let n=i({},this.controller.getValues(),this.afterInject);return this.finished&&(n=i({},n,this.props.after)),Object.keys(n).length?e(n):null}componentDidUpdate(){this.didUpdate&&this.start(),this.didUpdate=!1}}Ce.defaultProps={from:{},to:{},config:Pe.default,native:!1,immediate:!1,reset:!1,force:!1,inject:c};class ke extends a.PureComponent{constructor(){super(...arguments),this.first=!0,this.instances=new Set,this.hook=(e,t,n,r)=>(this.instances.add(e),(r?t===n-1:0===t)?void 0:Array.from(this.instances)[r?t+1:t-1])}render(){const e=this.props,t=e.items,n=e.children,r=e.from,l=void 0===r?{}:r,c=e.initial,s=e.reverse,u=e.keys,p=e.delay,d=e.onRest,f=o(e,["items","children","from","initial","reverse","keys","delay","onRest"]),m=oe(t);return oe(m).map(((e,t)=>a.createElement(Ce,i({onRest:0===t?d:null,key:"function"==typeof u?u(e):oe(u)[t],from:this.first&&void 0!==c?c||{}:l},f,{delay:0===t&&p||void 0,attach:e=>this.hook(e,t,m.length,s),children:r=>{const o=n(e,t);return o?o(r):null}}))))}componentDidUpdate(e){this.first=!1,e.items!==this.props.items&&this.instances.clear()}}ke.defaultProps={keys:e=>e};const je="__default";class Se extends a.PureComponent{constructor(){var e;super(...arguments),e=this,this.guid=0,this.state={props:{},resolve:()=>null,last:!0,index:0},this.next=function(t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=0),e.running=!0,new Promise((o=>{e.mounted&&e.setState((e=>({props:t,resolve:o,last:n,index:r})),(()=>e.running=!1))}))}}componentDidMount(){this.mounted=!0,this.componentDidUpdate({})}componentWillUnmount(){this.mounted=!1}componentDidUpdate(e){var t=this;const n=this.props,r=n.states,o=n.filter,i=n.state;if((e.state!==this.props.state||this.props.reset&&!this.running||!ie(r[i],e.states[e.state]))&&r&&i&&r[i]){const e=++this.guid,n=r[i];if(n)if(Array.isArray(n)){let t=Promise.resolve();for(let r=0;r<n.length;r++){let i=r,a=n[i],l=i===n.length-1;t=t.then((()=>e===this.guid&&this.next(o(a),l,i)))}}else if("function"==typeof n){let r=0;n((function(n,i){return void 0===i&&(i=!1),e===t.guid&&t.next(o(n),i,r++)}),(()=>m((()=>this.instance&&this.instance.stop()))),this.props)}else this.next(o(r[i]))}}render(){const e=this.state,t=e.props,n=e.resolve,r=e.last,l=e.index;if(!t||0===Object.keys(t).length)return null;let c=this.props,s=(c.state,c.filter,c.states,c.config),u=c.primitive,p=c.onRest,d=c.forwardRef,f=o(c,["state","filter","states","config","primitive","onRest","forwardRef"]);return Array.isArray(s)&&(s=s[l]),a.createElement(u,i({ref:e=>this.instance=pe(e,d),config:s},f,t,{onRest:e=>{n(e),p&&r&&p(e)}}))}}Se.defaultProps={state:je};const xe=a.forwardRef(((e,t)=>a.createElement(Se,i({},e,{forwardRef:t}))));xe.create=e=>function(t,n){return void 0===n&&(n=e=>e),("function"==typeof t||Array.isArray(t))&&(t={[je]:t}),r=>a.createElement(Se,i({primitive:e,states:t,filter:n},r))},xe.Spring=e=>xe.create(Ce)(e,ce),xe.Trail=e=>xe.create(ke)(e,ce);let Ie=0,De=e=>{let t=e.items,n=e.keys,r=o(e,["items","keys"]);return t=oe(void 0!==t?t:null),n="function"==typeof n?t.map(n):oe(n),i({items:t,keys:n.map((e=>String(e)))},r)};class Ne extends a.PureComponent{componentDidMount(){this.mounted=!0}componentWillUnmount(){this.mounted=!1}constructor(e){super(e),this.destroyItem=(e,t,n)=>r=>{const o=this.props,i=o.onRest,a=o.onDestroyed;this.mounted&&(a&&a(e),this.setState((e=>({deleted:e.deleted.filter((e=>e.key!==t))}))),i&&i(e,n,r))},this.state={first:!0,transitions:[],current:{},deleted:[],prevProps:e}}static getDerivedStateFromProps(e,t){let n=t.first,r=t.prevProps,a=o(t,["first","prevProps"]),l=De(e),c=l.items,s=l.keys,u=l.initial,p=l.from,d=l.enter,f=l.leave,m=l.update,g=l.trail,h=void 0===g?0:g,b=l.unique,v=l.config,y=De(r),w=y.keys,O=y.items,_=i({},a.current),E=[...a.deleted],P=Object.keys(_),C=new Set(P),k=new Set(s),j=s.filter((e=>!C.has(e))),S=a.transitions.filter((e=>!e.destroyed&&!k.has(e.originalKey))).map((e=>e.originalKey)),x=s.filter((e=>C.has(e))),I=0;j.forEach((e=>{b&&E.find((t=>t.originalKey===e))&&(E=E.filter((t=>t.originalKey!==e)));const t=s.indexOf(e),r=c[t],o="enter";_[e]={state:o,originalKey:e,key:b?String(e):Ie++,item:r,trail:I+=h,config:ae(v,r,o),from:ae(n&&void 0!==u?u||{}:p,r),to:ae(d,r)}})),S.forEach((e=>{const t=w.indexOf(e),n=O[t],r="leave";E.push(i({},_[e],{state:r,destroyed:!0,left:w[Math.max(0,t-1)],right:w[Math.min(w.length,t+1)],trail:I+=h,config:ae(v,n,r),to:ae(f,n)})),delete _[e]})),x.forEach((e=>{const t=s.indexOf(e),n=c[t],r="update";_[e]=i({},_[e],{item:n,state:r,trail:I+=h,config:ae(v,n,r),to:ae(m,n)})}));let D=s.map((e=>_[e]));return E.forEach((e=>{let t,n=e.left,r=e.right,i=o(e,["left","right"]);-1!==(t=D.findIndex((e=>e.originalKey===n)))&&(t+=1),-1===t&&(t=D.findIndex((e=>e.originalKey===r))),-1===t&&(t=E.findIndex((e=>e.originalKey===n))),-1===t&&(t=E.findIndex((e=>e.originalKey===r))),t=Math.max(0,t),D=[...D.slice(0,t),i,...D.slice(t)]})),{first:n&&0===j.length,transitions:D,current:_,deleted:E,prevProps:e}}render(){const e=this.props,t=(e.initial,e.from,e.enter,e.leave,e.update,e.onDestroyed,e.keys,e.items,e.onFrame),n=e.onRest,r=e.onStart,l=(e.trail,e.config,e.children),c=(e.unique,e.reset),s=o(e,["initial","from","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","trail","config","children","unique","reset"]);return this.state.transitions.map(((e,o)=>{let u=e.state,p=e.key,d=e.item,f=e.from,m=e.to,g=e.trail,h=e.config,b=e.destroyed;return a.createElement(xe,i({reset:c&&"enter"===u,primitive:Ce,state:u,filter:ce,states:{[u]:m},key:p,onRest:b?this.destroyItem(d,p,u):n&&(e=>n(d,u,e)),onStart:r&&(()=>r(d,u)),onFrame:t&&(e=>t(d,u,e)),delay:g,config:h},s,{from:f,children:e=>{const t=l(d,u,o);return t?t(e):null}}))}))}}Ne.defaultProps={keys:e=>e,unique:!1,reset:!1};const Te=["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"].reduce(((e,t)=>(e[t]=Ee(t),e)),Ee);t.uT=Ne},3697:function(e,t,n){"use strict";var r=n(5972).functionsHaveConfigurableNames(),o=Object,i=TypeError;e.exports=function(){if(null!=this&&this!==o(this))throw new i("RegExp.prototype.flags getter called on non-object");var e="";return this.hasIndices&&(e+="d"),this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.dotAll&&(e+="s"),this.unicode&&(e+="u"),this.unicodeSets&&(e+="v"),this.sticky&&(e+="y"),e},r&&Object.defineProperty&&Object.defineProperty(e.exports,"name",{value:"get flags"})},2847:function(e,t,n){"use strict";var r=n(4289),o=n(5559),i=n(3697),a=n(1721),l=n(2753),c=o(a());r(c,{getPolyfill:a,implementation:i,shim:l}),e.exports=c},1721:function(e,t,n){"use strict";var r=n(3697),o=n(4289).supportsDescriptors,i=Object.getOwnPropertyDescriptor;e.exports=function(){if(o&&"gim"===/a/gim.flags){var e=i(RegExp.prototype,"flags");if(e&&"function"==typeof e.get&&"boolean"==typeof RegExp.prototype.dotAll&&"boolean"==typeof RegExp.prototype.hasIndices){var t="",n={};if(Object.defineProperty(n,"hasIndices",{get:function(){t+="d"}}),Object.defineProperty(n,"sticky",{get:function(){t+="y"}}),"dy"===t)return e.get}}return r}},2753:function(e,t,n){"use strict";var r=n(4289).supportsDescriptors,o=n(1721),i=Object.getOwnPropertyDescriptor,a=Object.defineProperty,l=TypeError,c=Object.getPrototypeOf,s=/a/;e.exports=function(){if(!r||!c)throw new l("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=o(),t=c(s),n=i(t,"flags");return n&&n.get===e||a(t,"flags",{configurable:!0,enumerable:!1,get:e}),e}},6826: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("|"),r=new RegExp(n,"g"),o=new RegExp(n,"");function i(e){return t[e]}var a=function(e){return e.replace(r,i)};e.exports=a,e.exports.has=function(e){return!!e.match(o)},e.exports.remove=a},6399:function(e){e.exports=function(e,t,n){return function(r){if(e[0]===e[1]||t[0]===t[1])return t[0];var o=(t[1]-t[0])/(e[1]-e[0]),i=t[0]+o*(r-e[0]);return n?Math.min(t[1],Math.max(t[0],i)):i}}},8975:function(e,t,n){var r;!function(){"use strict";var o={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function i(e){return function(e,t){var n,r,a,l,c,s,u,p,d,f=1,m=e.length,g="";for(r=0;r<m;r++)if("string"==typeof e[r])g+=e[r];else if("object"==typeof e[r]){if((l=e[r]).keys)for(n=t[f],a=0;a<l.keys.length;a++){if(null==n)throw new Error(i('[sprintf] Cannot access property "%s" of undefined value "%s"',l.keys[a],l.keys[a-1]));n=n[l.keys[a]]}else n=l.param_no?t[l.param_no]:t[f++];if(o.not_type.test(l.type)&&o.not_primitive.test(l.type)&&n instanceof Function&&(n=n()),o.numeric_arg.test(l.type)&&"number"!=typeof n&&isNaN(n))throw new TypeError(i("[sprintf] expecting number but found %T",n));switch(o.number.test(l.type)&&(p=n>=0),l.type){case"b":n=parseInt(n,10).toString(2);break;case"c":n=String.fromCharCode(parseInt(n,10));break;case"d":case"i":n=parseInt(n,10);break;case"j":n=JSON.stringify(n,null,l.width?parseInt(l.width):0);break;case"e":n=l.precision?parseFloat(n).toExponential(l.precision):parseFloat(n).toExponential();break;case"f":n=l.precision?parseFloat(n).toFixed(l.precision):parseFloat(n);break;case"g":n=l.precision?String(Number(n.toPrecision(l.precision))):parseFloat(n);break;case"o":n=(parseInt(n,10)>>>0).toString(8);break;case"s":n=String(n),n=l.precision?n.substring(0,l.precision):n;break;case"t":n=String(!!n),n=l.precision?n.substring(0,l.precision):n;break;case"T":n=Object.prototype.toString.call(n).slice(8,-1).toLowerCase(),n=l.precision?n.substring(0,l.precision):n;break;case"u":n=parseInt(n,10)>>>0;break;case"v":n=n.valueOf(),n=l.precision?n.substring(0,l.precision):n;break;case"x":n=(parseInt(n,10)>>>0).toString(16);break;case"X":n=(parseInt(n,10)>>>0).toString(16).toUpperCase()}o.json.test(l.type)?g+=n:(!o.number.test(l.type)||p&&!l.sign?d="":(d=p?"+":"-",n=n.toString().replace(o.sign,"")),s=l.pad_char?"0"===l.pad_char?"0":l.pad_char.charAt(1):" ",u=l.width-(d+n).length,c=l.width&&u>0?s.repeat(u):"",g+=l.align?d+n+c:"0"===s?d+c+n:c+d+n)}return g}(function(e){if(l[e])return l[e];var t,n=e,r=[],i=0;for(;n;){if(null!==(t=o.text.exec(n)))r.push(t[0]);else if(null!==(t=o.modulo.exec(n)))r.push("%");else{if(null===(t=o.placeholder.exec(n)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){i|=1;var a=[],c=t[2],s=[];if(null===(s=o.key.exec(c)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(a.push(s[1]);""!==(c=c.substring(s[0].length));)if(null!==(s=o.key_access.exec(c)))a.push(s[1]);else{if(null===(s=o.index_access.exec(c)))throw new SyntaxError("[sprintf] failed to parse named argument key");a.push(s[1])}t[2]=a}else i|=2;if(3===i)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");r.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}n=n.substring(t[0].length)}return l[e]=r}(e),arguments)}function a(e,t){return i.apply(null,[e].concat(t||[]))}var l=Object.create(null);i,a,"undefined"!=typeof window&&(window.sprintf=i,window.vsprintf=a,void 0===(r=function(){return{sprintf:i,vsprintf:a}}.call(t,n,t,e))||(e.exports=r))}()},4760:function(e){var t=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],n=t.join(","),r="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;function o(e,t){t=t||{};var o,a,l,u=[],d=[],f=new p(e.ownerDocument||e),m=e.querySelectorAll(n);for(t.includeContainer&&r.call(e,n)&&(m=Array.prototype.slice.apply(m)).unshift(e),o=0;o<m.length;o++)i(a=m[o],f)&&(0===(l=c(a))?u.push(a):d.push({documentOrder:o,tabIndex:l,node:a}));return d.sort(s).map((function(e){return e.node})).concat(u)}function i(e,t){return!(!a(e,t)||function(e){return function(e){return u(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t=e.ownerDocument.querySelectorAll('input[type="radio"][name="'+e.name+'"]'),n=function(e){for(var t=0;t<e.length;t++)if(e[t].checked)return e[t]}(t);return!n||n===e}(e)}(e)||c(e)<0)}function a(e,t){return t=t||new p(e.ownerDocument||e),!(e.disabled||function(e){return u(e)&&"hidden"===e.type}(e)||t.isUntouchable(e))}o.isTabbable=function(e,t){if(!e)throw new Error("No node provided");return!1!==r.call(e,n)&&i(e,t)},o.isFocusable=function(e,t){if(!e)throw new Error("No node provided");return!1!==r.call(e,l)&&a(e,t)};var l=t.concat("iframe").join(",");function c(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?function(e){return"true"===e.contentEditable}(e)?0:e.tabIndex:t}function s(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex}function u(e){return"INPUT"===e.tagName}function p(e){this.doc=e,this.cache=[]}p.prototype.hasDisplayNone=function(e,t){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var n=function(e,t){for(var n=0,r=e.length;n<r;n++)if(t(e[n]))return e[n]}(this.cache,(function(t){return t===e}));if(n)return n[1];var r=!1;return"none"===(t=t||this.doc.defaultView.getComputedStyle(e)).display?r=!0:e.parentNode&&(r=this.hasDisplayNone(e.parentNode)),this.cache.push([e,r]),r},p.prototype.isUntouchable=function(e){if(e===this.doc.documentElement)return!1;var t=this.doc.defaultView.getComputedStyle(e);return!!this.hasDisplayNone(e,t)||"hidden"===t.visibility},e.exports=o},1742:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},5933:function(e,t,n){var r;!function(){function o(e,t,n){return e.call.apply(e.bind,arguments)}function i(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function a(e,t,n){return(a=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?o:i).apply(null,arguments)}var l=Date.now||function(){return+new Date};function c(e,t){this.a=e,this.o=t||e,this.c=this.o.document}var s=!!window.FontFace;function u(e,t,n,r){if(t=e.c.createElement(t),n)for(var o in n)n.hasOwnProperty(o)&&("style"==o?t.style.cssText=n[o]:t.setAttribute(o,n[o]));return r&&t.appendChild(e.c.createTextNode(r)),t}function p(e,t,n){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(n,e.lastChild)}function d(e){e.parentNode&&e.parentNode.removeChild(e)}function f(e,t,n){t=t||[],n=n||[];for(var r=e.className.split(/\s+/),o=0;o<t.length;o+=1){for(var i=!1,a=0;a<r.length;a+=1)if(t[o]===r[a]){i=!0;break}i||r.push(t[o])}for(t=[],o=0;o<r.length;o+=1){for(i=!1,a=0;a<n.length;a+=1)if(r[o]===n[a]){i=!0;break}i||t.push(r[o])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function m(e,t){for(var n=e.className.split(/\s+/),r=0,o=n.length;r<o;r++)if(n[r]==t)return!0;return!1}function g(e,t,n){function r(){l&&o&&i&&(l(a),l=null)}t=u(e,"link",{rel:"stylesheet",href:t,media:"all"});var o=!1,i=!0,a=null,l=n||null;s?(t.onload=function(){o=!0,r()},t.onerror=function(){o=!0,a=Error("Stylesheet failed to load"),r()}):setTimeout((function(){o=!0,r()}),0),p(e,"head",t)}function h(e,t,n,r){var o=e.c.getElementsByTagName("head")[0];if(o){var i=u(e,"script",{src:t}),a=!1;return i.onload=i.onreadystatechange=function(){a||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(a=!0,n&&n(null),i.onload=i.onreadystatechange=null,"HEAD"==i.parentNode.tagName&&o.removeChild(i))},o.appendChild(i),setTimeout((function(){a||(a=!0,n&&n(Error("Script load timeout")))}),r||5e3),i}return null}function b(){this.a=0,this.c=null}function v(e){return e.a++,function(){e.a--,w(e)}}function y(e,t){e.c=t,w(e)}function w(e){0==e.a&&e.c&&(e.c(),e.c=null)}function O(e){this.a=e||"-"}function _(e,t){this.c=e,this.f=4,this.a="n";var n=(t||"n4").match(/^([nio])([1-9])$/i);n&&(this.a=n[1],this.f=parseInt(n[2],10))}function E(e){var t=[];e=e.split(/,\s*/);for(var n=0;n<e.length;n++){var r=e[n].replace(/['"]/g,"");-1!=r.indexOf(" ")||/^\d/.test(r)?t.push("'"+r+"'"):t.push(r)}return t.join(",")}function P(e){return e.a+e.f}function C(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function k(e){var t=4,n="n",r=null;return e&&((r=e.match(/(normal|oblique|italic)/i))&&r[1]&&(n=r[1].substr(0,1).toLowerCase()),(r=e.match(/([1-9]00|normal|bold)/i))&&r[1]&&(/bold/i.test(r[1])?t=7:/[1-9]00/.test(r[1])&&(t=parseInt(r[1].substr(0,1),10)))),n+t}function j(e,t){this.c=e,this.f=e.o.document.documentElement,this.h=t,this.a=new O("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function S(e){if(e.g){var t=m(e.f,e.a.c("wf","active")),n=[],r=[e.a.c("wf","loading")];t||n.push(e.a.c("wf","inactive")),f(e.f,n,r)}x(e,"inactive")}function x(e,t,n){e.j&&e.h[t]&&(n?e.h[t](n.c,P(n)):e.h[t]())}function I(){this.c={}}function D(e,t){this.c=e,this.f=t,this.a=u(this.c,"span",{"aria-hidden":"true"},this.f)}function N(e){p(e.c,"body",e.a)}function T(e){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+E(e.c)+";font-style:"+C(e)+";font-weight:"+e.f+"00;"}function A(e,t,n,r,o,i){this.g=e,this.j=t,this.a=r,this.c=n,this.f=o||3e3,this.h=i||void 0}function R(e,t,n,r,o,i,a){this.v=e,this.B=t,this.c=n,this.a=r,this.s=a||"BESbswy",this.f={},this.w=o||3e3,this.u=i||null,this.m=this.j=this.h=this.g=null,this.g=new D(this.c,this.s),this.h=new D(this.c,this.s),this.j=new D(this.c,this.s),this.m=new D(this.c,this.s),e=T(e=new _(this.a.c+",serif",P(this.a))),this.g.a.style.cssText=e,e=T(e=new _(this.a.c+",sans-serif",P(this.a))),this.h.a.style.cssText=e,e=T(e=new _("serif",P(this.a))),this.j.a.style.cssText=e,e=T(e=new _("sans-serif",P(this.a))),this.m.a.style.cssText=e,N(this.g),N(this.h),N(this.j),N(this.m)}O.prototype.c=function(e){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.a)},A.prototype.start=function(){var e=this.c.o.document,t=this,n=l(),r=new Promise((function(r,o){!function i(){l()-n>=t.f?o():e.fonts.load(function(e){return C(e)+" "+e.f+"00 300px "+E(e.c)}(t.a),t.h).then((function(e){1<=e.length?r():setTimeout(i,25)}),(function(){o()}))}()})),o=null,i=new Promise((function(e,n){o=setTimeout(n,t.f)}));Promise.race([i,r]).then((function(){o&&(clearTimeout(o),o=null),t.g(t.a)}),(function(){t.j(t.a)}))};var M={D:"serif",C:"sans-serif"},B=null;function F(){if(null===B){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);B=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return B}function L(e,t,n){for(var r in M)if(M.hasOwnProperty(r)&&t===e.f[M[r]]&&n===e.f[M[r]])return!0;return!1}function z(e){var t,n=e.g.a.offsetWidth,r=e.h.a.offsetWidth;(t=n===e.f.serif&&r===e.f["sans-serif"])||(t=F()&&L(e,n,r)),t?l()-e.A>=e.w?F()&&L(e,n,r)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?H(e,e.v):H(e,e.B):function(e){setTimeout(a((function(){z(this)}),e),50)}(e):H(e,e.v)}function H(e,t){setTimeout(a((function(){d(this.g.a),d(this.h.a),d(this.j.a),d(this.m.a),t(this.a)}),e),0)}function V(e,t,n){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=n}R.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=l(),z(this)};var U=null;function $(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&f(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),x(e,"active")):S(e.a))}function G(e){this.j=e,this.a=new I,this.h=0,this.f=this.g=!0}function W(e,t,n,r,o){var i=0==--e.h;(e.f||e.g)&&setTimeout((function(){var e=o||null,l=r||{};if(0===n.length&&i)S(t.a);else{t.f+=n.length,i&&(t.j=i);var c,s=[];for(c=0;c<n.length;c++){var u=n[c],p=l[u.c],d=t.a,m=u;if(d.g&&f(d.f,[d.a.c("wf",m.c,P(m).toString(),"loading")]),x(d,"fontloading",m),d=null,null===U)if(window.FontFace){m=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent);var g=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);U=m?42<parseInt(m[1],10):!g}else U=!1;d=U?new A(a(t.g,t),a(t.h,t),t.c,u,t.s,p):new R(a(t.g,t),a(t.h,t),t.c,u,t.s,e,p),s.push(d)}for(c=0;c<s.length;c++)s[c].start()}}),0)}function q(e,t){this.c=e,this.a=t}function Z(e,t){this.c=e,this.a=t}function K(e,t){this.c=e||Y,this.a=[],this.f=[],this.g=t||""}V.prototype.g=function(e){var t=this.a;t.g&&f(t.f,[t.a.c("wf",e.c,P(e).toString(),"active")],[t.a.c("wf",e.c,P(e).toString(),"loading"),t.a.c("wf",e.c,P(e).toString(),"inactive")]),x(t,"fontactive",e),this.m=!0,$(this)},V.prototype.h=function(e){var t=this.a;if(t.g){var n=m(t.f,t.a.c("wf",e.c,P(e).toString(),"active")),r=[],o=[t.a.c("wf",e.c,P(e).toString(),"loading")];n||r.push(t.a.c("wf",e.c,P(e).toString(),"inactive")),f(t.f,r,o)}x(t,"fontinactive",e),$(this)},G.prototype.load=function(e){this.c=new c(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,function(e,t,n){var r=[],o=n.timeout;!function(e){e.g&&f(e.f,[e.a.c("wf","loading")]),x(e,"loading")}(t);r=function(e,t,n){var r,o=[];for(r in t)if(t.hasOwnProperty(r)){var i=e.c[r];i&&o.push(i(t[r],n))}return o}(e.a,n,e.c);var i=new V(e.c,t,o);for(e.h=r.length,t=0,n=r.length;t<n;t++)r[t].load((function(t,n,r){W(e,i,t,n,r)}))}(this,new j(this.c,e),e)},q.prototype.load=function(e){function t(){if(i["__mti_fntLst"+r]){var n,o=i["__mti_fntLst"+r](),a=[];if(o)for(var l=0;l<o.length;l++){var c=o[l].fontfamily;null!=o[l].fontStyle&&null!=o[l].fontWeight?(n=o[l].fontStyle+o[l].fontWeight,a.push(new _(c,n))):a.push(new _(c))}e(a)}else setTimeout((function(){t()}),50)}var n=this,r=n.a.projectId,o=n.a.version;if(r){var i=n.c.o;h(this.c,(n.a.api||"https://fast.fonts.net/jsapi")+"/"+r+".js"+(o?"?v="+o:""),(function(o){o?e([]):(i["__MonotypeConfiguration__"+r]=function(){return n.a},t())})).id="__MonotypeAPIScript__"+r}else e([])},Z.prototype.load=function(e){var t,n,r=this.a.urls||[],o=this.a.families||[],i=this.a.testStrings||{},a=new b;for(t=0,n=r.length;t<n;t++)g(this.c,r[t],v(a));var l=[];for(t=0,n=o.length;t<n;t++)if((r=o[t].split(":"))[1])for(var c=r[1].split(","),s=0;s<c.length;s+=1)l.push(new _(r[0],c[s]));else l.push(new _(r[0]));y(a,(function(){e(l,i)}))};var Y="https://fonts.googleapis.com/css";function X(e){this.f=e,this.a=[],this.c={}}var J={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},Q={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},ee={i:"i",italic:"i",n:"n",normal:"n"},te=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function ne(e,t){this.c=e,this.a=t}var re={Arimo:!0,Cousine:!0,Tinos:!0};function oe(e,t){this.c=e,this.a=t}function ie(e,t){this.c=e,this.f=t,this.a=[]}ne.prototype.load=function(e){var t=new b,n=this.c,r=new K(this.a.api,this.a.text),o=this.a.families;!function(e,t){for(var n=t.length,r=0;r<n;r++){var o=t[r].split(":");3==o.length&&e.f.push(o.pop());var i="";2==o.length&&""!=o[1]&&(i=":"),e.a.push(o.join(i))}}(r,o);var i=new X(o);!function(e){for(var t=e.f.length,n=0;n<t;n++){var r=e.f[n].split(":"),o=r[0].replace(/\+/g," "),i=["n4"];if(2<=r.length){var a;if(a=[],l=r[1])for(var l,c=(l=l.split(",")).length,s=0;s<c;s++){var u;if((u=l[s]).match(/^[\w-]+$/))if(null==(p=te.exec(u.toLowerCase())))u="";else{if(u=null==(u=p[2])||""==u?"n":ee[u],null==(p=p[1])||""==p)p="4";else var p=Q[p]||(isNaN(p)?"4":p.substr(0,1));u=[u,p].join("")}else u="";u&&a.push(u)}0<a.length&&(i=a),3==r.length&&(a=[],0<(r=(r=r[2])?r.split(","):a).length&&(r=J[r[0]])&&(e.c[o]=r))}for(e.c[o]||(r=J[o])&&(e.c[o]=r),r=0;r<i.length;r+=1)e.a.push(new _(o,i[r]))}}(i),g(n,function(e){if(0==e.a.length)throw Error("No fonts to load!");if(-1!=e.c.indexOf("kit="))return e.c;for(var t=e.a.length,n=[],r=0;r<t;r++)n.push(e.a[r].replace(/ /g,"+"));return t=e.c+"?family="+n.join("%7C"),0<e.f.length&&(t+="&subset="+e.f.join(",")),0<e.g.length&&(t+="&text="+encodeURIComponent(e.g)),t}(r),v(t)),y(t,(function(){e(i.a,i.c,re)}))},oe.prototype.load=function(e){var t=this.a.id,n=this.c.o;t?h(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",(function(t){if(t)e([]);else if(n.Typekit&&n.Typekit.config&&n.Typekit.config.fn){t=n.Typekit.config.fn;for(var r=[],o=0;o<t.length;o+=2)for(var i=t[o],a=t[o+1],l=0;l<a.length;l++)r.push(new _(i,a[l]));try{n.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(r)}}),2e3):e([])},ie.prototype.load=function(e){var t=this.f.id,n=this.c.o,r=this;t?(n.__webfontfontdeckmodule__||(n.__webfontfontdeckmodule__={}),n.__webfontfontdeckmodule__[t]=function(t,n){for(var o=0,i=n.fonts.length;o<i;++o){var a=n.fonts[o];r.a.push(new _(a.name,k("font-weight:"+a.weight+";font-style:"+a.style)))}e(r.a)},h(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(e){return e.o.location.hostname||e.a.location.hostname}(this.c)+"/"+t+".js",(function(t){t&&e([])}))):e([])};var ae=new G(window);ae.a.c.custom=function(e,t){return new Z(t,e)},ae.a.c.fontdeck=function(e,t){return new ie(t,e)},ae.a.c.monotype=function(e,t){return new q(t,e)},ae.a.c.typekit=function(e,t){return new oe(t,e)},ae.a.c.google=function(e,t){return new ne(t,e)};var le={load:a(ae.load,ae)};void 0===(r=function(){return le}.call(t,n,t,e))||(e.exports=r)}()},7529:function(e){e.exports=function(){for(var e={},n=0;n<arguments.length;n++){var r=arguments[n];for(var o in r)t.call(r,o)&&(e[o]=r[o])}return e};var t=Object.prototype.hasOwnProperty},1764:function(e,t,n){var r={"./ct-addable-box.js":9231,"./ct-background.js":8219,"./ct-border.js":9847,"./ct-box-shadow.js":2076,"./ct-button.js":4056,"./ct-checkboxes.js":3817,"./ct-color-palettes-mirror.js":6701,"./ct-color-palettes-picker.js":9727,"./ct-color-picker.js":4910,"./ct-customize-section-title-actions.js":7910,"./ct-customizer-reset-options.js":7941,"./ct-divider.js":5457,"./ct-footer-builder.js":5186,"./ct-header-builder.js":1829,"./ct-image-picker.js":1650,"./ct-image-uploader.js":7402,"./ct-layers-combined.js":532,"./ct-layers-mirror.js":7525,"./ct-layers.js":543,"./ct-multi-image-uploader.js":7454,"./ct-notification.js":3570,"./ct-number.js":8153,"./ct-panel.js":9999,"./ct-radio.js":3781,"./ct-ratio.js":7812,"./ct-select.js":2425,"./ct-slider.js":254,"./ct-spacer.js":3480,"./ct-spacing.js":5954,"./ct-switch.js":7809,"./ct-title.js":9697,"./ct-typography.js":4034,"./ct-visibility.js":9109,"./ct-woocommerce-columns-and-rows.js":7475,"./ct-woocommerce-ratio.js":7762,"./date-time-picker.js":2159,"./hidden.js":2242,"./html.js":2616,"./jsx.js":5200,"./react-outside-click-handler.js":1511,"./text.js":4658,"./textarea.js":8670,"./wp-editor.js":227};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=1764},7363:function(e){"use strict";e.exports=React},1533:function(e){"use strict";e.exports=ReactDOM},2243:function(e){"use strict";e.exports=ctEvents},6715:function(e){"use strict";e.exports=window._},8441:function(e){"use strict";e.exports=window.wp.components},2476:function(e){"use strict";e.exports=window.wp.date},1381:function(e){"use strict";e.exports=window.wp.element},5224:function(e){"use strict";e.exports=window.wp.hooks},5652:function(e){"use strict";e.exports=window.wp.i18n},7326:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},4942:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(9142);function o(e,t,n){return(t=(0,r.Z)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},7462:function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.r(t),n.d(t,{default:function(){return r}})},4578:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(9611);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.Z)(e,t)}},3366:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.r(t),n.d(t,{default:function(){return r}})},9611:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:function(){return r}})},9142:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(1002);function o(e){var t=function(e,t){if("object"!==(0,r.Z)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==(0,r.Z)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===(0,r.Z)(t)?t:String(t)}},1002:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:function(){return r}})},2329:function(e,t,n){"use strict";n.d(t,{uT:function(){return wn},q:function(){return Ln}});var r=n(7363),o=Object.defineProperty,i={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(i,{assign:()=>F,colors:()=>R,createStringInterpolator:()=>D,skipAnimation:()=>M,to:()=>N,willAdvance:()=>B});var a=_(),l=e=>v(e,a),c=_();l.write=e=>v(e,c);var s=_();l.onStart=e=>v(e,s);var u=_();l.onFrame=e=>v(e,u);var p=_();l.onFinish=e=>v(e,p);var d=[];l.setTimeout=(e,t)=>{const n=l.now()+t,r=()=>{const e=d.findIndex((e=>e.cancel==r));~e&&d.splice(e,1),h-=~e?1:0},o={time:n,handler:e,cancel:r};return d.splice(f(n),0,o),h+=1,y(),o};var f=e=>~(~d.findIndex((t=>t.time>e))||~d.length);l.cancel=e=>{s.delete(e),u.delete(e),p.delete(e),a.delete(e),c.delete(e)},l.sync=e=>{b=!0,l.batchedUpdates(e),b=!1},l.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,l.onStart(n)}return r.handler=e,r.cancel=()=>{s.delete(n),t=null},r};var m="undefined"!=typeof window?window.requestAnimationFrame:()=>{};l.use=e=>m=e,l.now="undefined"!=typeof performance?()=>performance.now():Date.now,l.batchedUpdates=e=>e(),l.catch=console.error,l.frameLoop="always",l.advance=()=>{"demand"!==l.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):O()};var g=-1,h=0,b=!1;function v(e,t){b?(t.delete(e),e(0)):(t.add(e),y())}function y(){g<0&&(g=0,"demand"!==l.frameLoop&&m(w))}function w(){~g&&(m(w),l.batchedUpdates(O))}function O(){const e=g;g=l.now();const t=f(g);t&&(E(d.splice(0,t),(e=>e.handler())),h-=t),h?(s.flush(),a.flush(e?Math.min(64,g-e):16.667),u.flush(),c.flush(),p.flush()):g=-1}function _(){let e=new Set,t=e;return{add(n){h+=t!=e||e.has(n)?0:1,e.add(n)},delete(n){return h-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,h-=t.size,E(t,(t=>t(n)&&e.add(t))),h+=e.size,t=e)}}}function E(e,t){e.forEach((e=>{try{t(e)}catch(e){l.catch(e)}}))}function P(){}var C={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function k(e,t){if(C.arr(e)){if(!C.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var j=(e,t)=>e.forEach(t);function S(e,t,n){if(C.arr(e))for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);else for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var x=e=>C.und(e)?[]:C.arr(e)?e:[e];function I(e,t){if(e.size){const n=Array.from(e);e.clear(),j(n,t)}}var D,N,T=(e,...t)=>I(e,(e=>e(...t))),A=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),R=null,M=!1,B=P,F=e=>{e.to&&(N=e.to),e.now&&(l.now=e.now),void 0!==e.colors&&(R=e.colors),null!=e.skipAnimation&&(M=e.skipAnimation),e.createStringInterpolator&&(D=e.createStringInterpolator),e.requestAnimationFrame&&l.use(e.requestAnimationFrame),e.batchedUpdates&&(l.batchedUpdates=e.batchedUpdates),e.willAdvance&&(B=e.willAdvance),e.frameLoop&&(l.frameLoop=e.frameLoop)},L=new Set,z=[],H=[],V=0,U={get idle(){return!L.size&&!z.length},start(e){V>e.priority?(L.add(e),l.onStart($)):(G(e),l(q))},advance:q,sort(e){if(V)l.onFrame((()=>U.sort(e)));else{const t=z.indexOf(e);~t&&(z.splice(t,1),W(e))}},clear(){z=[],L.clear()}};function $(){L.forEach(G),L.clear(),l(q)}function G(e){z.includes(e)||W(e)}function W(e){z.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(z,(t=>t.priority>e.priority)),0,e)}function q(e){const t=H;for(let n=0;n<z.length;n++){const r=z[n];V=r.priority,r.idle||(B(r),r.advance(e),r.idle||t.push(r))}return V=0,(H=z).length=0,(z=t).length>0}var Z="[-+]?\\d*\\.?\\d+",K=Z+"%";function Y(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var X=new RegExp("rgb"+Y(Z,Z,Z)),J=new RegExp("rgba"+Y(Z,Z,Z,Z)),Q=new RegExp("hsl"+Y(Z,K,K)),ee=new RegExp("hsla"+Y(Z,K,K,Z)),te=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ne=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,re=/^#([0-9a-fA-F]{6})$/,oe=/^#([0-9a-fA-F]{8})$/;function ie(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ae(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=ie(o,r,e+1/3),a=ie(o,r,e),l=ie(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function le(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function ce(e){return(parseFloat(e)%360+360)%360/360}function se(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function ue(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function pe(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=re.exec(e))?parseInt(t[1]+"ff",16)>>>0:R&&void 0!==R[e]?R[e]:(t=X.exec(e))?(le(t[1])<<24|le(t[2])<<16|le(t[3])<<8|255)>>>0:(t=J.exec(e))?(le(t[1])<<24|le(t[2])<<16|le(t[3])<<8|se(t[4]))>>>0:(t=te.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=oe.exec(e))?parseInt(t[1],16)>>>0:(t=ne.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Q.exec(e))?(255|ae(ce(t[1]),ue(t[2]),ue(t[3])))>>>0:(t=ee.exec(e))?(ae(ce(t[1]),ue(t[2]),ue(t[3]))|se(t[4]))>>>0:null}(e);if(null===t)return e;t=t||0;return`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`}var de=(e,t,n)=>{if(C.fun(e))return e;if(C.arr(e))return de({range:e,output:t,extrapolate:n});if(C.str(e.output[0]))return D(e);const r=e,o=r.output,i=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",l=r.extrapolateRight||r.extrapolate||"extend",c=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,i);return function(e,t,n,r,o,i,a,l,c){let s=c?c(e):e;if(s<t){if("identity"===a)return s;"clamp"===a&&(s=t)}if(s>n){if("identity"===l)return s;"clamp"===l&&(s=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?s=-s:n===1/0?s-=t:s=(s-t)/(n-t);s=i(s),r===-1/0?s=-s:o===1/0?s+=r:s=s*(o-r)+r;return s}(e,i[t],i[t+1],o[t],o[t+1],c,a,l,r.map)}};var fe=1.70158,me=1.525*fe,ge=fe+1,he=2*Math.PI/3,be=2*Math.PI/4.5,ve=e=>{const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},ye={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>ge*e*e*e-fe*e*e,easeOutBack:e=>1+ge*Math.pow(e-1,3)+fe*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-me)/2:(Math.pow(2*e-2,2)*((me+1)*(2*e-2)+me)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*he),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*he)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*be)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*be)/2+1,easeInBounce:e=>1-ve(1-e),easeOutBounce:ve,easeInOutBounce:e=>e<.5?(1-ve(1-2*e))/2:(1+ve(2*e-1))/2,steps:(e,t="end")=>n=>{const r=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e,o="end"===t?Math.floor(r):Math.ceil(r);return i=0,a=1,l=o/e,Math.min(Math.max(l,i),a);var i,a,l}},we=Symbol.for("FluidValue.get"),Oe=Symbol.for("FluidValue.observers"),_e=e=>Boolean(e&&e[we]),Ee=e=>e&&e[we]?e[we]():e,Pe=e=>e[Oe]||null;function Ce(e,t){const n=e[Oe];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}var ke=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");je(this,e)}},je=(e,t)=>De(e,we,t);function Se(e,t){if(e[we]){let n=e[Oe];n||De(e,Oe,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function xe(e,t){const n=e[Oe];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Oe]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var Ie,De=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Ne=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Te=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Ae=new RegExp(`(${Ne.source})(%|[a-z]+)`,"i"),Re=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Me=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Be=e=>{const[t,n]=Fe(e);if(!t||A())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const t=window.getComputedStyle(document.documentElement).getPropertyValue(n);return t||e}return n&&Me.test(n)?Be(n):n||e},Fe=e=>{const t=Me.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Le=(e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,ze=e=>{Ie||(Ie=R?new RegExp(`(${Object.keys(R).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>Ee(e).replace(Me,Be).replace(Te,pe).replace(Ie,pe))),n=t.map((e=>e.match(Ne).map(Number))),r=n[0].map(((e,t)=>n.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))).map((t=>de({...e,output:t})));return e=>{const n=!Ae.test(t[0])&&t.find((e=>Ae.test(e)))?.replace(Ne,"");let o=0;return t[0].replace(Ne,(()=>`${r[o++](e)}${n||""}`)).replace(Re,Le)}},He="react-spring: ",Ve=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${He}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},Ue=Ve(console.warn);var $e=Ve(console.warn);function Ge(e){return C.str(e)&&("#"==e[0]||/\d/.test(e)||!A()&&Me.test(e)||e in(R||{}))}var We=A()?r.useEffect:r.useLayoutEffect,qe=()=>{const e=(0,r.useRef)(!1);return We((()=>(e.current=!0,()=>{e.current=!1})),[]),e};function Ze(){const e=(0,r.useState)()[1],t=qe();return()=>{t.current&&e(Math.random())}}var Ke=e=>(0,r.useEffect)(e,Ye),Ye=[];var Xe=Symbol.for("Animated:node"),Je=e=>e&&e[Xe],Qe=(e,t)=>((e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}))(e,Xe,t),et=e=>e&&e[Xe]&&e[Xe].getPayload(),tt=class{constructor(){Qe(this,this)}getPayload(){return this.payload||[]}},nt=class extends tt{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,C.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new nt(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return C.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,C.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},rt=class extends nt{constructor(e){super(0),this._string=null,this._toString=de({output:[e,e]})}static create(e){return new rt(e)}getValue(){const e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(C.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=de({output:[this.getValue(),e]})),this._value=0,super.reset()}},ot={dependencies:null},it=class extends tt{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return S(this.source,((n,r)=>{(e=>!!e&&e[Xe]===e)(n)?t[r]=n.getValue(e):_e(n)?t[r]=Ee(n):e||(t[r]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&j(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return S(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){ot.dependencies&&_e(e)&&ot.dependencies.add(e);const t=et(e);t&&j(t,(e=>this.add(e)))}},at=class extends it{constructor(e){super(e)}static create(e){return new at(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.map(((t,n)=>t.setValue(e[n]))).some(Boolean):(super.setValue(e.map(lt)),!0)}};function lt(e){return(Ge(e)?rt:nt).create(e)}function ct(e){const t=Je(e);return t?t.constructor:C.arr(e)?at:Ge(e)?rt:nt}var st=(e,t)=>{const n=!C.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,r.forwardRef)(((o,i)=>{const a=(0,r.useRef)(null),c=n&&(0,r.useCallback)((e=>{a.current=function(e,t){e&&(C.fun(e)?e(t):e.current=t);return t}(i,e)}),[i]),[s,u]=function(e,t){const n=new Set;ot.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)});return e=new it(e),ot.dependencies=null,[e,n]}(o,t),p=Ze(),d=()=>{const e=a.current;if(n&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,s.getValue(!0)))&&p()},f=new ut(d,u),m=(0,r.useRef)();We((()=>(m.current=f,j(u,(e=>Se(e,f))),()=>{m.current&&(j(m.current.deps,(e=>xe(e,m.current))),l.cancel(m.current.update))}))),(0,r.useEffect)(d,[]),Ke((()=>()=>{const e=m.current;j(e.deps,(t=>xe(t,e)))}));const g=t.getComponentProps(s.getValue());return r.createElement(e,{...g,ref:c})}))},ut=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&l.write(this.update)}};var pt=Symbol.for("AnimatedComponent"),dt=e=>C.str(e)?e:e&&C.str(e.displayName)?e.displayName:C.fun(e)&&e.name||null;function ft(e,...t){return C.fun(e)?e(...t):e}var mt=(e,t)=>!0===e||!!(t&&e&&(C.fun(e)?e(t):x(e).includes(t))),gt=(e,t)=>C.obj(e)?t&&e[t]:e,ht=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,bt=e=>e,vt=(e,t=bt)=>{let n=yt;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const r={};for(const o of n){const n=t(e[o],o);C.und(n)||(r[o]=n)}return r},yt=["config","onProps","onStart","onChange","onPause","onResume","onRest"],wt={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Ot(e){const t=function(e){const t={};let n=0;if(S(e,((e,r)=>{wt[r]||(t[r]=e,n++)})),n)return t}(e);if(t){const n={to:t};return S(e,((e,r)=>r in t||(n[r]=e))),n}return{...e}}function _t(e){return e=Ee(e),C.arr(e)?e.map(_t):Ge(e)?i.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Et(e){for(const t in e)return!0;return!1}function Pt(e){return C.fun(e)||C.arr(e)&&C.obj(e[0])}function Ct(e,t){e.ref?.delete(e),t?.delete(e)}function kt(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var jt={tension:170,friction:26,mass:1,damping:1,easing:ye.linear,clamp:!1};function St(e,t){if(C.und(t.decay)){const n=!C.und(t.tension)||!C.und(t.friction);!n&&C.und(t.frequency)&&C.und(t.damping)&&C.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var xt=[];function It(e,{key:t,props:n,defaultProps:r,state:o,actions:a}){return new Promise(((c,s)=>{let u,p,d=mt(n.cancel??r?.cancel,t);if(d)g();else{C.und(n.pause)||(o.paused=mt(n.pause,t));let e=r?.pause;!0!==e&&(e=o.paused||mt(e,t)),u=ft(n.delay||0,t),e?(o.resumeQueue.add(m),a.pause()):(a.resume(),m())}function f(){o.resumeQueue.add(m),o.timeouts.delete(p),p.cancel(),u=p.time-l.now()}function m(){u>0&&!i.skipAnimation?(o.delayed=!0,p=l.setTimeout(g,u),o.pauseQueue.add(f),o.timeouts.add(p)):g()}function g(){o.delayed&&(o.delayed=!1),o.pauseQueue.delete(f),o.timeouts.delete(p),e<=(o.cancelId||0)&&(d=!0);try{a.start({...n,callId:e,cancel:d},c)}catch(e){s(e)}}}))}var Dt=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?At(e.get()):t.every((e=>e.noop))?Nt(e.get()):Tt(e.get(),t.every((e=>e.finished))),Nt=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Tt=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),At=e=>({value:e,cancelled:!0,finished:!1});function Rt(e,t,n,r){const{callId:o,parentId:a,onRest:c}=t,{asyncTo:s,promise:u}=n;return a||e!==s||t.reset?n.promise=(async()=>{n.asyncId=o,n.asyncTo=e;const p=vt(t,((e,t)=>"onRest"===t?void 0:e));let d,f;const m=new Promise(((e,t)=>(d=e,f=t))),g=e=>{const t=o<=(n.cancelId||0)&&At(r)||o!==n.asyncId&&Tt(r,!1);if(t)throw e.result=t,f(e),e},h=(e,t)=>{const a=new Bt,l=new Ft;return(async()=>{if(i.skipAnimation)throw Mt(n),l.result=Tt(r,!1),f(l),l;g(a);const c=C.obj(e)?{...e}:{...t,to:e};c.parentId=o,S(p,((e,t)=>{C.und(c[t])&&(c[t]=e)}));const s=await r.start(c);return g(a),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),s})()};let b;if(i.skipAnimation)return Mt(n),Tt(r,!1);try{let t;t=C.arr(e)?(async e=>{for(const t of e)await h(t)})(e):Promise.resolve(e(h,r.stop.bind(r))),await Promise.all([t.then(d),m]),b=Tt(r.get(),!0,!1)}catch(e){if(e instanceof Bt)b=e.result;else{if(!(e instanceof Ft))throw e;b=e.result}}finally{o==n.asyncId&&(n.asyncId=a,n.asyncTo=a?s:void 0,n.promise=a?u:void 0)}return C.fun(c)&&l.batchedUpdates((()=>{c(b,r,r.item)})),b})():u}function Mt(e,t){I(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Bt=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},Ft=class extends Error{constructor(){super("SkipAnimationSignal")}},Lt=e=>e instanceof Ht,zt=1,Ht=class extends ke{constructor(){super(...arguments),this.id=zt++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Je(this);return e&&e.getValue()}to(...e){return i.to(this,e)}interpolate(...e){return Ue(`${He}The "interpolate" function is deprecated in v9 (use "to" instead)`),i.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Ce(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||U.sort(this),Ce(this,{type:"priority",parent:this,priority:e})}},Vt=Symbol.for("SpringPhase"),Ut=e=>(1&e[Vt])>0,$t=e=>(2&e[Vt])>0,Gt=e=>(4&e[Vt])>0,Wt=(e,t)=>t?e[Vt]|=3:e[Vt]&=-3,qt=(e,t)=>t?e[Vt]|=4:e[Vt]&=-5,Zt=class extends Ht{constructor(e,t){if(super(),this.animation=new class{constructor(){this.changed=!1,this.values=xt,this.toValues=null,this.fromValues=xt,this.config=new class{constructor(){this.velocity=0,Object.assign(this,jt)}},this.immediate=!1}},this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!C.und(e)||!C.und(t)){const n=C.obj(e)?{...e}:{...t,from:e};C.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!($t(this)||this._state.asyncTo)||Gt(this)}get goal(){return Ee(this.animation.to)}get velocity(){const e=Je(this);return e instanceof nt?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return Ut(this)}get isAnimating(){return $t(this)}get isPaused(){return Gt(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:o}=r;const{config:i}=r,a=et(r.to);!a&&_e(r.to)&&(o=x(Ee(r.to))),r.values.forEach(((l,c)=>{if(l.done)return;const s=l.constructor==rt?1:a?a[c].lastPosition:o[c];let u=r.immediate,p=s;if(!u){if(p=l.lastPosition,i.tension<=0)return void(l.done=!0);let t=l.elapsedTime+=e;const n=r.fromValues[c],o=null!=l.v0?l.v0:l.v0=C.arr(i.velocity)?i.velocity[c]:i.velocity;let a;const d=i.precision||(n==s?.005:Math.min(1,.001*Math.abs(s-n)));if(C.und(i.duration))if(i.decay){const e=!0===i.decay?.998:i.decay,r=Math.exp(-(1-e)*t);p=n+o/(1-e)*(1-r),u=Math.abs(l.lastPosition-p)<=d,a=o*r}else{a=null==l.lastVelocity?o:l.lastVelocity;const t=i.restVelocity||d/10,r=i.clamp?0:i.bounce,c=!C.und(r),f=n==s?l.v0>0:n<s;let m,g=!1;const h=1,b=Math.ceil(e/h);for(let e=0;e<b&&(m=Math.abs(a)>t,m||(u=Math.abs(s-p)<=d,!u));++e){c&&(g=p==s||p>s==f,g&&(a=-a*r,p=s));a+=(1e-6*-i.tension*(p-s)+.001*-i.friction*a)/i.mass*h,p+=a*h}}else{let r=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,l.durationProgress>0&&(l.elapsedTime=i.duration*l.durationProgress,t=l.elapsedTime+=e)),r=(i.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,l.durationProgress=r),p=n+i.easing(r)*(s-n),a=(p-l.lastPosition)/e,u=1==r}l.lastVelocity=a,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),u=!0)}a&&!a[c].done&&(u=!1),u?l.done=!0:t=!1,l.setValue(p,i.round)&&(n=!0)}));const l=Je(this),c=l.getValue();if(t){const e=Ee(r.to);c===e&&!n||i.decay?n&&i.decay&&this._onChange(c):(l.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(c)}set(e){return l.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if($t(this)){const{to:e,config:t}=this.animation;l.batchedUpdates((()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return C.und(e)?(n=this.queue||[],this.queue=[]):n=[C.obj(e)?e:{...t,to:e}],Promise.all(n.map((e=>this._update(e)))).then((e=>Dt(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Mt(this._state,e&&this._lastCallId),l.batchedUpdates((()=>this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=C.obj(n)?n[t]:n,(null==n||Pt(n))&&(n=void 0),r=C.obj(r)?r[t]:r,null==r&&(r=void 0);const o={to:n,from:r};return Ut(this)||(e.reverse&&([n,r]=[r,n]),r=Ee(r),C.und(r)?Je(this)||this._set(n):this._set(r)),o}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,vt(e,((e,t)=>/^on/.test(t)?gt(e,n):e))),en(this,e,"onProps"),tn(this,"onProps",e,this);const o=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const i=this._state;return It(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{Gt(this)||(qt(this,!0),T(i.pauseQueue),tn(this,"onPause",Tt(this,Kt(this,this.animation.to)),this))},resume:()=>{Gt(this)&&(qt(this,!1),$t(this)&&this._resume(),T(i.resumeQueue),tn(this,"onResume",Tt(this,Kt(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then((n=>{if(e.loop&&n.finished&&(!t||!n.noop)){const t=Yt(e);if(t)return this._update(t,!0)}return n}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(At(this));const r=!C.und(e.to),o=!C.und(e.from);if(r||o){if(!(t.callId>this._lastToId))return n(At(this));this._lastToId=t.callId}const{key:i,defaultProps:a,animation:c}=this,{to:s,from:u}=c;let{to:p=s,from:d=u}=e;!o||r||t.default&&!C.und(p)||(p=d),t.reverse&&([p,d]=[d,p]);const f=!k(d,u);f&&(c.from=d),d=Ee(d);const m=!k(p,s);m&&this._focus(p);const g=Pt(t.to),{config:h}=c,{decay:b,velocity:v}=h;(r||o)&&(h.velocity=0),t.config&&!g&&function(e,t,n){n&&(St(n={...n},t),t={...n,...t}),St(e,t),Object.assign(e,t);for(const t in jt)null==e[t]&&(e[t]=jt[t]);let{frequency:r,damping:o}=e;const{mass:i}=e;C.und(r)||(r<.01&&(r=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/r,2)*i,e.friction=4*Math.PI*o*i/r)}(h,ft(t.config,i),t.config!==a.config?ft(a.config,i):void 0);let y=Je(this);if(!y||C.und(p))return n(Tt(this,!0));const w=C.und(t.reset)?o&&!t.default:!C.und(d)&&mt(t.reset,i),O=w?d:this.get(),_=_t(p),E=C.num(_)||C.arr(_)||Ge(_),P=!g&&(!E||mt(a.immediate||t.immediate,i));if(m){const e=ct(p);if(e!==y.constructor){if(!P)throw Error(`Cannot animate between ${y.constructor.name} and ${e.name}, as the "to" prop suggests`);y=this._set(_)}}const S=y.constructor;let I=_e(p),D=!1;if(!I){const e=w||!Ut(this)&&f;(m||e)&&(D=k(_t(O),_),I=!D),(k(c.immediate,P)||P)&&k(h.decay,b)&&k(h.velocity,v)||(I=!0)}if(D&&$t(this)&&(c.changed&&!w?I=!0:I||this._stop(s)),!g&&((I||_e(s))&&(c.values=y.getPayload(),c.toValues=_e(p)?null:S==rt?[1]:x(_)),c.immediate!=P&&(c.immediate=P,P||w||this._set(s)),I)){const{onRest:e}=c;j(Qt,(e=>en(this,t,e)));const r=Tt(this,Kt(this,s));T(this._pendingCalls,r),this._pendingCalls.add(n),c.changed&&l.batchedUpdates((()=>{c.changed=!w,e?.(r,this),w?ft(a.onRest,r):c.onStart?.(r,this)}))}w&&this._set(O),g?n(Rt(t.to,t,this._state,this)):I?this._start():$t(this)&&!m?this._pendingCalls.add(n):n(Nt(O))}_focus(e){const t=this.animation;e!==t.to&&(Pe(this)&&this._detach(),t.to=e,Pe(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;_e(t)&&(Se(t,this),Lt(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;_e(e)&&xe(e,this)}_set(e,t=!0){const n=Ee(e);if(!C.und(n)){const e=Je(this);if(!e||!k(n,e.getValue())){const r=ct(n);e&&e.constructor==r?e.setValue(n):Qe(this,r.create(n)),e&&l.batchedUpdates((()=>{this._onChange(n,t)}))}}return Je(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,tn(this,"onStart",Tt(this,Kt(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),ft(this.animation.onChange,e,this)),ft(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Je(this).reset(Ee(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),$t(this)||(Wt(this,!0),Gt(this)||this._resume())}_resume(){i.skipAnimation?this.finish():U.start(this)}_stop(e,t){if($t(this)){Wt(this,!1);const n=this.animation;j(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Ce(this,{type:"idle",parent:this});const r=t?At(this.get()):Tt(this.get(),Kt(this,e??n.to));T(this._pendingCalls,r),n.changed&&(n.changed=!1,tn(this,"onRest",r,this))}}};function Kt(e,t){const n=_t(t);return k(_t(e.get()),n)}function Yt(e,t=e.loop,n=e.to){const r=ft(t);if(r){const o=!0!==r&&Ot(r),i=(o||e).reverse,a=!o||o.reset;return Xt({...e,loop:t,default:!1,pause:void 0,to:!i||Pt(n)?n:void 0,from:a?e.from:void 0,reset:a,...o})}}function Xt(e){const{to:t,from:n}=e=Ot(e),r=new Set;return C.obj(t)&&Jt(t,r),C.obj(n)&&Jt(n,r),e.keys=r.size?Array.from(r):null,e}function Jt(e,t){S(e,((e,n)=>null!=e&&t.add(n)))}var Qt=["onStart","onRest","onChange","onPause","onResume"];function en(e,t,n){e.animation[n]=t[n]!==ht(t,n)?gt(t[n],e.key):void 0}function tn(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var nn=["onStart","onChange","onRest"],rn=1,on=class{constructor(e,t){this.id=rn++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((e=>e.idle&&!e.isDelayed&&!e.isPaused))}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each(((t,n)=>e[n]=t.get())),e}set(e){for(const t in e){const n=e[t];C.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Xt(e)),this}start(e){let{queue:t}=this;return e?t=x(e).map(Xt):this.queue=[],this._flush?this._flush(this,t):(dn(this,t),an(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;j(x(t),(t=>n[t].stop(!!e)))}else Mt(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(C.und(e))this.start({pause:!0});else{const t=this.springs;j(x(e),(e=>t[e].pause()))}return this}resume(e){if(C.und(e))this.start({pause:!1});else{const t=this.springs;j(x(e),(e=>t[e].resume()))}return this}each(e){S(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,o=this._changed.size>0;(r&&!this._started||o&&!this._started)&&(this._started=!0,I(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const i=!r&&this._started,a=o||i&&n.size?this.get():null;o&&t.size&&I(t,(([e,t])=>{t.value=a,e(t,this,this._item)})),i&&(this._started=!1,I(n,(([e,t])=>{t.value=a,e(t,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}l.onFrame(this._onFrame)}};function an(e,t){return Promise.all(t.map((t=>ln(e,t)))).then((t=>Dt(e,t)))}async function ln(e,t,n){const{keys:r,to:o,from:i,loop:a,onRest:c,onResolve:s}=t,u=C.obj(t.default)&&t.default;a&&(t.loop=!1),!1===o&&(t.to=null),!1===i&&(t.from=null);const p=C.arr(o)||C.fun(o)?o:void 0;p?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):j(nn,(n=>{const r=t[n];if(C.fun(r)){const o=e._events[n];t[n]=({finished:e,cancelled:t})=>{const n=o.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):o.set(r,{value:null,finished:e||!1,cancelled:t||!1})},u&&(u[n]=t[n])}}));const d=e._state;t.pause===!d.paused?(d.paused=t.pause,T(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const f=(r||Object.keys(e.springs)).map((n=>e.springs[n].start(t))),m=!0===t.cancel||!0===ht(t,"cancel");(p||m&&d.asyncId)&&f.push(It(++e._lastAsyncId,{props:t,state:d,actions:{pause:P,resume:P,start(t,n){m?(Mt(d,e._lastAsyncId),n(At(e))):(t.onRest=c,n(Rt(p,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const g=Dt(e,await Promise.all(f));if(a&&g.finished&&(!n||!g.noop)){const n=Yt(t,a,o);if(n)return dn(e,[n]),ln(e,n,!0)}return s&&l.batchedUpdates((()=>s(g,e,e.item))),g}function cn(e,t){const n={...e.springs};return t&&j(x(t),(e=>{C.und(e.keys)&&(e=Xt(e)),C.obj(e.to)||(e={...e,to:void 0}),pn(n,e,(e=>un(e)))})),sn(e,n),n}function sn(e,t){S(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,Se(t,e))}))}function un(e,t){const n=new Zt;return n.key=e,t&&Se(n,t),n}function pn(e,t,n){t.keys&&j(t.keys,(r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)}))}function dn(e,t){j(t,(t=>{pn(e.springs,t,(t=>un(t,e)))}))}var fn,mn,gn=({children:e,...t})=>{const n=(0,r.useContext)(hn),o=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=function(e,t){const[n]=(0,r.useState)((()=>({inputs:t,result:e()}))),o=(0,r.useRef)(),i=o.current;let a=i;a?Boolean(t&&a.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,a.inputs))||(a={inputs:t,result:e()}):a=n;return(0,r.useEffect)((()=>{o.current=a,i==n&&(n.inputs=n.result=void 0)}),[a]),a.result}((()=>({pause:o,immediate:i})),[o,i]);const{Provider:a}=hn;return r.createElement(a,{value:t},e)},hn=(fn=gn,mn={},Object.assign(fn,r.createContext(mn)),fn.Provider._context=fn,fn.Consumer._context=fn,fn);gn.Provider=hn.Provider,gn.Consumer=hn.Consumer;var bn=()=>{const e=[],t=function(t){$e(`${He}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const r=[];return j(e,((e,o)=>{if(C.und(t))r.push(e.start());else{const i=n(t,e,o);i&&r.push(e.start(i))}})),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return j(e,(e=>e.pause(...arguments))),this},t.resume=function(){return j(e,(e=>e.resume(...arguments))),this},t.set=function(t){j(e,((e,n)=>{const r=C.fun(t)?t(n,e):t;r&&e.set(r)}))},t.start=function(t){const n=[];return j(e,((e,r)=>{if(C.und(t))n.push(e.start());else{const o=this._getProps(t,e,r);o&&n.push(e.start(o))}})),n},t.stop=function(){return j(e,(e=>e.stop(...arguments))),this},t.update=function(t){return j(e,((e,n)=>e.update(this._getProps(t,e,n)))),this};const n=function(e,t,n){return C.fun(e)?e(n,t):e};return t._getProps=n,t};function vn(e,t,n){const o=C.fun(t)&&t,{reset:i,sort:a,trail:l=0,expires:c=!0,exitBeforeEnter:s=!1,onDestroyed:u,ref:p,config:d}=o?o():t,f=(0,r.useMemo)((()=>o||3==arguments.length?bn():void 0),[]),m=x(e),g=[],h=(0,r.useRef)(null),b=i?null:h.current;We((()=>{h.current=g})),Ke((()=>(j(g,(e=>{f?.add(e.ctrl),e.ctrl.ref=f})),()=>{j(h.current,(e=>{e.expired&&clearTimeout(e.expirationId),Ct(e.ctrl,f),e.ctrl.stop(!0)}))})));const v=function(e,{key:t,keys:n=t},r){if(null===n){const t=new Set;return e.map((e=>{const n=r&&r.find((n=>n.item===e&&"leave"!==n.phase&&!t.has(n)));return n?(t.add(n),n.key):yn++}))}return C.und(n)?e:C.fun(n)?e.map(n):x(n)}(m,o?o():t,b),y=i&&h.current||[];We((()=>j(y,(({ctrl:e,item:t,key:n})=>{Ct(e,f),ft(u,t,n)}))));const w=[];if(b&&j(b,((e,t)=>{e.expired?(clearTimeout(e.expirationId),y.push(e)):~(t=w[t]=v.indexOf(e.key))&&(g[t]=e)})),j(m,((e,t)=>{g[t]||(g[t]={key:v[t],item:e,phase:"mount",ctrl:new on},g[t].ctrl.item=e)})),w.length){let e=-1;const{leave:n}=o?o():t;j(w,((t,r)=>{const o=b[r];~t?(e=g.indexOf(o),g[e]={...o,item:m[t]}):n&&g.splice(++e,0,o)}))}C.fun(a)&&g.sort(((e,t)=>a(e.item,t.item)));let O=-l;const _=Ze(),E=vt(t),P=new Map,k=(0,r.useRef)(new Map),S=(0,r.useRef)(!1);j(g,((e,n)=>{const r=e.key,i=e.phase,a=o?o():t;let u,f;const m=ft(a.delay||0,r);if("mount"==i)u=a.enter,f="enter";else{const e=v.indexOf(r)<0;if("leave"!=i)if(e)u=a.leave,f="leave";else{if(!(u=a.update))return;f="update"}else{if(e)return;u=a.enter,f="enter"}}if(u=ft(u,e.item,n),u=C.obj(u)?Ot(u):{to:u},!u.config){const t=d||E.config;u.config=ft(t,e.item,n,f)}O+=l;const g={...E,delay:m+O,ref:p,immediate:a.immediate,reset:!1,...u};if("enter"==f&&C.und(g.from)){const r=o?o():t,i=C.und(r.initial)||b?r.from:r.initial;g.from=ft(i,e.item,n)}const{onResolve:y}=g;g.onResolve=e=>{ft(y,e);const t=h.current,n=t.find((e=>e.key===r));if(n&&(!e.cancelled||"update"==n.phase)&&n.ctrl.idle){const e=t.every((e=>e.ctrl.idle));if("leave"==n.phase){const t=ft(c,n.item);if(!1!==t){const r=!0===t?0:t;if(n.expired=!0,!e&&r>0)return void(r<=2147483647&&(n.expirationId=setTimeout(_,r)))}}e&&t.some((e=>e.expired))&&(k.current.delete(n),s&&(S.current=!0),_())}};const w=cn(e.ctrl,g);"leave"===f&&s?k.current.set(e,{phase:f,springs:w,payload:g}):P.set(e,{phase:f,springs:w,payload:g})}));const I=(0,r.useContext)(gn),D=function(e){const t=(0,r.useRef)();return(0,r.useEffect)((()=>{t.current=e})),t.current}(I),N=I!==D&&Et(I);We((()=>{N&&j(g,(e=>{e.ctrl.start({default:I})}))}),[I]),j(P,((e,t)=>{if(k.current.size){const e=g.findIndex((e=>e.key===t.key));g.splice(e,1)}})),We((()=>{j(k.current.size?k.current:P,(({phase:e,payload:t},n)=>{const{ctrl:r}=n;n.phase=e,f?.add(r),N&&"enter"==e&&r.start({default:I}),t&&(kt(r,t.ref),!r.ref&&!f||S.current?(r.start(t),S.current&&(S.current=!1)):r.update(t))}))}),i?void 0:n);const T=e=>r.createElement(r.Fragment,null,g.map(((t,n)=>{const{springs:o}=P.get(t)||t.ctrl,i=e({...o},t.item,t,n);return i&&i.type?r.createElement(i.type,{...i.props,key:C.str(t.key)||C.num(t.key)?t.key:t.ctrl.id,ref:i.ref}):i})));return f?[T,f]:T}var yn=1;function wn({items:e,children:t,...n}){return vn(e,n)(t)}var On=class extends Ht{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=de(...t);const n=this._get(),r=ct(n);Qe(this,r.create(n))}advance(e){const t=this._get();k(t,this.get())||(Je(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&En(this._active)&&Pn(this)}_get(){const e=C.arr(this.source)?this.source.map(Ee):x(Ee(this.source));return this.calc(...e)}_start(){this.idle&&!En(this._active)&&(this.idle=!1,j(et(this),(e=>{e.done=!1})),i.skipAnimation?(l.batchedUpdates((()=>this.advance())),Pn(this)):U.start(this))}_attach(){let e=1;j(x(this.source),(t=>{_e(t)&&Se(t,this),Lt(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){j(x(this.source),(e=>{_e(e)&&xe(e,this)})),this._active.clear(),Pn(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=x(this.source).reduce(((e,t)=>Math.max(e,(Lt(t)?t.priority:0)+1)),0))}};function _n(e){return!1!==e.idle}function En(e){return!e.size||Array.from(e).every(_n)}function Pn(e){e.idle||(e.idle=!0,j(et(e),(e=>{e.done=!0})),Ce(e,{type:"idle",parent:e}))}i.assign({createStringInterpolator:ze,to:(e,t)=>new On(e,t)});U.advance;var Cn=n(1533),kn=/^--/;function jn(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||kn.test(e)||xn.hasOwnProperty(e)&&xn[e]?(""+t).trim():t+"px"}var Sn={};var xn={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},In=["Webkit","Ms","Moz","O"];xn=Object.keys(xn).reduce(((e,t)=>(In.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),xn);var Dn=/^(matrix|translate|scale|rotate|skew)/,Nn=/^(translate)/,Tn=/^(rotate|skew)/,An=(e,t)=>C.num(e)&&0!==e?e+t:e,Rn=(e,t)=>C.arr(e)?e.every((e=>Rn(e,t))):C.num(e)?e===t:parseFloat(e)===t,Mn=class extends it{constructor({x:e,y:t,z:n,...r}){const o=[],i=[];(e||t||n)&&(o.push([e||0,t||0,n||0]),i.push((e=>[`translate3d(${e.map((e=>An(e,"px"))).join(",")})`,Rn(e,0)]))),S(r,((e,t)=>{if("transform"===t)o.push([e||""]),i.push((e=>[e,""===e]));else if(Dn.test(t)){if(delete r[t],C.und(e))return;const n=Nn.test(t)?"px":Tn.test(t)?"deg":"";o.push(x(e)),i.push("rotate3d"===t?([e,t,r,o])=>[`rotate3d(${e},${t},${r},${An(o,n)})`,Rn(o,0)]:e=>[`${t}(${e.map((e=>An(e,n))).join(",")})`,Rn(e,t.startsWith("scale")?1:0)])}})),o.length&&(r.transform=new Bn(o,i)),super(r)}},Bn=class extends ke{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return j(this.inputs,((n,r)=>{const o=Ee(n[0]),[i,a]=this.transforms[r](C.arr(o)?o:n.map(Ee));e+=" "+i,t=t&&a})),t?"none":e}observerAdded(e){1==e&&j(this.inputs,(e=>j(e,(e=>_e(e)&&Se(e,this)))))}observerRemoved(e){0==e&&j(this.inputs,(e=>j(e,(e=>_e(e)&&xe(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),Ce(this,e)}};i.assign({batchedUpdates:Cn.unstable_batchedUpdates,createStringInterpolator:ze,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});var Fn=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:n=(e=>new it(e)),getComponentProps:r=(e=>e)}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=e=>{const t=dt(e)||"Anonymous";return(e=C.str(e)?i[e]||(i[e]=st(e,o)):e[pt]||(e[pt]=st(e,o))).displayName=`Animated(${t})`,e};return S(e,((t,n)=>{C.arr(e)&&(n=dt(t)),i[n]=i(t)})),{animated:i}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:r,children:o,scrollTop:i,scrollLeft:a,viewBox:l,...c}=t,s=Object.values(c),u=Object.keys(c).map((t=>n||e.hasAttribute(t)?t:Sn[t]||(Sn[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==o&&(e.textContent=o);for(const t in r)if(r.hasOwnProperty(t)){const n=jn(t,r[t]);kn.test(t)?e.style.setProperty(t,n):e.style[t]=n}u.forEach(((t,n)=>{e.setAttribute(t,s[n])})),void 0!==i&&(e.scrollTop=i),void 0!==a&&(e.scrollLeft=a),void 0!==l&&e.setAttribute("viewBox",l)},createAnimatedStyle:e=>new Mn(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Ln=Fn.animated}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.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 r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),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})},function(){"use strict";var e=n(1381),t=n(5652),r=window.wp.blocks,o=window.wp.blockEditor,i=window.wp.data;const{breadcrumb_home_item:a,breadcrumb_home_text:l,breadcrumb_separator:c,breadcrumb_page_title:s}=window.blc_blocks_data;var u=function(){const n=(0,e.useMemo)((function(){return"text"===a?l:(0,e.createElement)("svg",{class:"ct-home-icon",width:"15",viewBox:"0 0 24 20"},(0,e.createElement)("path",{d:"M12,0L0.4,10.5h3.2V20h6.3v-6.3h4.2V20h6.3v-9.5h3.2L12,0z"}))}),[]),r=(0,e.useMemo)((function(){return"type-2"===c?(0,e.createElement)("svg",{class:"separator",width:"8",height:"8",viewBox:"0 0 8 8"},(0,e.createElement)("polygon",{points:"2.5,0 6.9,4 2.5,8 "})):"type-3"===c?(0,e.createElement)("span",{className:"separator"},"/"):(0,e.createElement)("svg",{class:"separator",width:"8",height:"8",viewBox:"0 0 8 8"},(0,e.createElement)("path",{d:"M2,6.9L4.8,4L2,1.1L2.6,0l4,4l-4,4L2,6.9z"}))}),[]),o=(0,i.withSelect)((function(e){var t;return{title:(null===(t=e("core/editor"))||void 0===t?void 0:t.getEditedPostAttribute("title"))||""}}))((function(n){return(0,e.createElement)("span",null,(null==n?void 0:n.title)||(0,t.__)("Page","blocksy"))}));return(0,e.createElement)(React.Fragment,null,(0,e.createElement)("span",null,(0,e.createElement)("span",null,n),r),(0,e.createElement)("span",null,(0,e.createElement)("span",null,(0,t.__)("Subpage","blocksy")),s&&r),s&&(0,e.createElement)(o,null))},p=n(8441);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d.apply(this,arguments)}var f=function(t){let{label:n,resetAll:r,panelId:i,settings:a}=t;const l=(0,o.__experimentalUseMultipleOriginColorsAndGradients)();return(0,e.createElement)(p.__experimentalToolsPanel,{label:n,resetAll:r,panelId:i,hasInnerWrapper:!0,className:"color-block-support-panel",__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last"},(0,e.createElement)("div",{className:"color-block-support-panel__inner-wrapper"},(0,e.createElement)(o.__experimentalColorGradientSettingsDropdown,d({__experimentalIsRenderedInSidebar:!0,__experimentalHasMultipleOrigins:!0,__experimentalGroup:"bg",settings:a,panelId:i},l,{gradients:[],disableCustomGradients:!0}))))};var m=(0,o.withColors)({textColor:"color"},{linkColor:"color"},{linkHoverColor:"color"})((function(n){let{clientId:r,textColor:i,setTextColor:a,linkColor:l,setLinkColor:c,linkHoverColor:s,setLinkHoverColor:p,className:d}=n;const m=(0,e.useRef)(),g=(0,o.useBlockProps)({ref:m,className:{"ct-breadcrumbs":!0,className:d},style:{color:null==i?void 0:i.color,"--theme-link-initial-color":null==l?void 0:l.color,"--theme-link-hover-color":null==s?void 0:s.color}});return(0,e.createElement)(React.Fragment,null,(0,e.createElement)("div",g,(0,e.createElement)(u,null),(0,e.createElement)(o.InspectorControls,{group:"styles"},(0,e.createElement)(f,{label:(0,t.__)("Text Color","blocksy"),resetAll:function(){a(""),c(""),p("")},panelId:r,settings:[{colorValue:i.color,enableAlpha:!0,label:(0,t.__)("Text","blocksy"),onColorChange:a},{colorValue:l.color,enableAlpha:!0,label:(0,t.__)("Link Initial","blocksy"),onColorChange:c},{colorValue:s.color,enableAlpha:!0,label:(0,t.__)("Link Hover","blocksy"),onColorChange:p}]}))))})),g=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"blocksy/breadcrumbs","category":"blocksy-blocks","attributes":{"textColor":{"type":"string"},"customTextColor":{"type":"string"},"linkColor":{"type":"string"},"customLinkColor":{"type":"string"},"linkHoverColor":{"type":"string"},"customLinkHoverColor":{"type":"string"}},"supports":{"className":false,"spacing":{"margin":true,"__experimentalDefaultControls":{"margin":true}}},"providesContext":{"textColor":"textColor","linkColor":"linkColor","linkHoverColor":"linkHoverColor"}}');function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}(0,r.registerBlockType)("blocksy/breadcrumbs",b(b({},g),{},{title:(0,t.__)("Breadcrumbs","blocksy"),description:(0,t.__)("Insert the breadcrumbs navigation anywhere you might want.","blocksy"),icon:{src:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)("path",{d:"M4,10.5h6v3H4V10.5z M12,13.5h3v-3h-3V13.5z M17,10.5v3h3v-3H17z"}))},edit:function(t){return(0,e.createElement)(m,t)},save:function(){return null}}));var y=n(2568),w=n.n(y);function O(e){if(Array.isArray(e))return`[${e.map((function(e){return O(e)})).join(",")}]`;if("object"==typeof e&&null!==e){let t="";const n=Object.keys(e).sort();t+=`{${JSON.stringify(n)}`;for(let r=0;r<n.length;r++)t+=`${O(e[n[r]])},`;return`${t}}`}return`${JSON.stringify(e)}`}const _={},E=function(t){let{attributes:n,previewedPostId:r}=t;const[o,i]=(0,e.useState)(null);let[{controller:a},l]=(0,e.useState)({controller:null});return(0,e.useEffect)((function(){const e={attributes:n,previewedPostId:r},t=w()(O(e));if(_[t])i(_[t]);else{a&&a.abort(),"AbortController"in window&&(a=new AbortController,l({controller:a}));let e=function(e){e||(e=location.search);var t=e.substr(1),n={};return t.split("&").forEach((function(e){var t=e.split("=");n[t[0]]=decodeURIComponent(t[1])})),n}(location.search);fetch(`${wp.ajax.settings.url}?action=blocksy_get_posts_block_data${e.lang?"&lang="+e.lang:""}`,{headers:{Accept:"application/json","Content-Type":"application/json"},method:"POST",signal:a.signal,body:JSON.stringify({attributes:n,previewedPostId:r})}).then((function(e){return e.json()})).then((function(e){let{success:n,data:r}=e;n&&(_[t]=r,l({controller:null}),i(r))}))}}),[n,r]),{blockData:o}};var P=function(t){let{attributes:n,postId:r,uniqueId:o}=t;const{blockData:i}=E({attributes:n,previewedPostId:r});return i&&i.block?(0,e.createElement)(React.Fragment,null,(0,e.createElement)(e.RawHTML,null,i.block),i&&i.dynamic_styles&&(0,e.createElement)("style",null,i.dynamic_styles)):(0,e.createElement)(p.Spinner,null)},C=n(5697);const k=function(e){return e.split("-")[0]};function j(e){let t=!1;const n=function(e){const t=document.querySelectorAll(".edit-site-visual-editor__editor-canvas");let n=document;for(let r=0;r<t.length;r++)if(null!==t[r].contentDocument.getElementById("block-"+e.clientId)){n=t[r].contentDocument;break}return n}(e);return n.querySelectorAll(`[data-id="${e.attributes.uniqueId}"]`).length>1&&(t=!0),t}var S=function(n){let{clientId:a,setAttributes:l,setIsPatternSelectionModalOpen:c}=n;const{replaceInnerBlocks:s}=(0,i.useDispatch)(o.store);return(0,e.createElement)("div",{className:"components-placeholder is-large"},(0,e.createElement)("div",{className:"components-placeholder__label"},(0,e.createElement)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true",focusable:"false"},(0,e.createElement)("path",{d:"M5.5 18v-1c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v1c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5zm.5 2c-1.1 0-2-.9-2-2v-1c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2v1c0 1.1-.9 2-2 2H6zm-.5-9V6c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v5c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5zm.5 2c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2v5c0 1.1-.9 2-2 2H6zm8.5 0v5c0 .3.2.5.5.5h3c.3 0 .5-.2.5-.5v-5c0-.3-.2-.5-.5-.5h-3c-.3 0-.5.2-.5.5zM13 18c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-5c0-1.1-.9-2-2-2h-3c-1.1 0-2 .9-2 2v5zm1.5-11V6c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v1c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5zm.5 2c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2v1c0 1.1-.9 2-2 2h-3z","fill-rule":"evenodd"})),(0,t.__)("Advanced Posts","blocksy")),(0,e.createElement)("fieldset",{className:"components-placeholder__fieldset"},(0,e.createElement)("legend",{className:"components-placeholder__instructions"},(0,t.__)("Inherit the Customizer layout, start with a pattern or create a custom layout","blocksy")),(0,e.createElement)("button",{className:"components-button is-primary",onClick:function(e){e.preventDefault(),l({design:"default"})}},(0,t.__)("Inherit From Customizer","blocksy")),(0,e.createElement)("button",{className:"components-button is-primary",onClick:function(e){e.preventDefault(),c(!0)}},(0,t.__)("Choose Pattern","blocksy")),(0,e.createElement)("button",{className:"components-button is-primary",onClick:function(e){e.preventDefault(),s(a,(0,r.createBlocksFromInnerBlocksTemplate)([["blocksy/post-template",{},[["blocksy/dynamic-data",{tagName:"h2",field:"wp:title",has_title_link:"yes"}],["blocksy/dynamic-data",{field:"wp:date"}],["blocksy/dynamic-data",{field:"wp:excerpt"}]]]]),!1)}},(0,t.__)("Create Custom Layout","blocksy"))))},x=n(4184),I=n.n(x),D=window.wp.primitives;var N=(0,e.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(D.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));var T=(0,e.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(D.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));var A=(0,e.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(D.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})),R=window.wp.a11y;var M=function(n){let{items:r,selectedItems:o,onItemClick:i,label:a,resetAll:l}=n;const c=o.length>0;return(0,e.createElement)(p.__experimentalHStack,null,(0,e.createElement)(p.__experimentalHeading,{style:{margin:0},level:2},a),(0,e.createElement)(p.DropdownMenu,{icon:0===o.length?N:T,label:(0,t.__)("Parameters options","blocksy"),toggleProps:{isSmall:!0,describedBy:0===o.length?(0,t.__)("All options are currently hidden","blocksy"):void 0}},(function(){return(0,e.createElement)(React.Fragment,null,r.map((function(t,n){return(0,e.createElement)(p.MenuGroup,{key:n,label:t.label},t.items.map((function(t,n){const r=o.includes(t.label);return(0,e.createElement)(p.MenuItem,{key:n,icon:r?A:null,isSelected:r,onClick:function(){return i(t.label)}},t.label)})))})),(0,e.createElement)(p.MenuGroup,null,(0,e.createElement)(p.MenuItem,{"aria-disabled":!c,variant:"tertiary",onClick:function(){c&&(l(),(0,R.speak)((0,t.__)("All options reset","blocksy"),"assertive"))}},(0,t.__)("Reset all","blocksy"))))})))};var B=function(t){let{className:n,attributes:r,setAttributes:o,resetAll:i,items:a,label:l}=t;const c=a.reduce((function(e,t){return[...e,...t.items.filter((function(e){return e.hasValue()})).map((function(e){return e.label}))]}),[]),[s,u]=(0,e.useState)([]),p=[...new Set([...s,...c])];return(0,e.createElement)("div",{className:I()("ct-tools-panel",n)},(0,e.createElement)(M,{label:l,resetAll:function(){u([]),i()},items:a,selectedItems:p,attributes:r,setAttributes:o,onItemClick:function(e){if(!p.includes(e))return void u([...s,e]);const t=a.reduce((function(e,t){return[...e,...t.items]}),[]).find((function(t){return t.label===e}));u(s.filter((function(t){return t!==e}))),t.reset()}}),(0,e.createElement)("div",{className:"ct-tools-panel-items"},a.reduce((function(e,t){return[...e,...t.items]}),[]).filter((function(e){return p.includes(e.label)})).map((function(e){return e.render()}))))},F=window.wp.coreData;function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L(Object(n),!0).forEach((function(t){H(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function H(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const V=function(e){return(0,i.useSelect)((function(t){const{getTaxonomies:n}=t(F.store);return n({type:e,per_page:-1,context:"view"})}),[e])};var U=window.wp.compose;function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(Object(n),!0).forEach((function(t){W(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function W(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const q=[],Z={order:"asc",_fields:"id,name,slug",context:"view"},K=function(e,t){var n,r;const o=(null==t?void 0:t.slug)||(null==e||null===(n=e.find((function(e){return e.name===t})))||void 0===n?void 0:n.slug);if(o)return o;const i=t.toLocaleLowerCase();return null==e||null===(r=e.find((function(e){return e.name.toLocaleLowerCase()===i})))||void 0===r?void 0:r.slug};function Y(n){let{taxonomy:r,termIds:o,onChange:a,label:l=!1}=n;const[c,s]=(0,e.useState)(""),[u,d]=(0,e.useState)(q),[f,m]=(0,e.useState)(q),g=(0,U.useDebounce)(s,250),{searchResults:h,searchHasResolved:b}=(0,i.useSelect)((function(e){if(!c)return{searchResults:q,searchHasResolved:!0};const{getEntityRecords:t,hasFinishedResolution:n}=e(F.store),o=["taxonomy",r.slug,G(G({},Z),{},{search:c,orderby:"name",per_page:20})];return{searchResults:t(...o),searchHasResolved:n("getEntityRecords",o)}}),[c,o]),v=(0,i.useSelect)((function(e){if(null==o||!o.length)return q;const{getEntityRecords:t}=e(F.store);return t("taxonomy",r.slug,G(G({},Z),{},{slug:o,per_page:o.length}))}),[o]);(0,e.useEffect)((function(){if(null!=o&&o.length||d(q),null==v||!v.length)return;const e=o.reduce((function(e,t){const n=v.find((function(e){return e.slug===t}));return n&&e.push({id:t,slug:t,value:n.name}),e}),[]);d(e)}),[o,v]),(0,e.useEffect)((function(){b&&m(h.map((function(e){return e.name})))}),[h,b]);return(0,e.createElement)(p.FormTokenField,{label:l,value:u,onInputChange:g,suggestions:f,onChange:function(e){const t=new Set;for(const n of e){const e=K(h,n);e&&t.add(e)}m(q),a(Array.from(t))},__experimentalShowHowTo:!1,__nextHasNoMarginBottom:!0,placeholder:(0,t.__)("Search for a term","blocksy")})}function X(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?X(Object(n),!0).forEach((function(t){Q(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Q(e,t,n){return(t=te(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ee(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function te(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}const ne=function(n){let{attributes:r,attributes:{post_type:o},previewedPostMatchesType:i,setAttributes:a}=n;const l=V(o);let c=[];return l&&l.length>0&&(c=[...l.map((function(n){return function(n){let{taxonomy:r,attributes:o,setAttributes:i,previewedPostMatchesType:a}=n;return{label:(0,t.sprintf)((0,t.__)("Include %s","blocksy"),r.name),hasValue:function(){return o.include_term_ids[r.slug]},reset:function(){const e=o.include_term_ids||{},t=r.slug,{[t]:n}=e,a=ee(e,[t].map(te));i({include_term_ids:a})},render:function(){const n=o.include_term_ids[r.slug]||{strategy:"all",terms:[]};return(0,e.createElement)("div",null,(0,e.createElement)(p.__experimentalToggleGroupControl,{label:(0,t.sprintf)((0,t.__)("Include %s","blocksy"),r.name),value:n.strategy,isBlock:!0,onChange:function(e){i({include_term_ids:J(J({},o.include_term_ids),{},{[r.slug]:J(J({},n),{},{strategy:e})})})}},(0,e.createElement)(p.__experimentalToggleGroupControlOption,{value:"all",label:(0,t.__)("All","blocksy")}),(0,e.createElement)(p.__experimentalToggleGroupControlOption,{value:"specific",label:(0,t.__)("Specific","blocksy")}),a&&(0,e.createElement)(p.__experimentalToggleGroupControlOption,{value:"related",label:(0,t.__)("Related","blocksy")})),"specific"===n.strategy&&(0,e.createElement)(Y,{taxonomy:r,termIds:n.terms,onChange:function(e){i({include_term_ids:J(J({},o.include_term_ids),{},{[r.slug]:J(J({},n),{},{terms:e})})})}}))}}}({taxonomy:n,attributes:r,setAttributes:a,previewedPostMatchesType:i})})),...l.map((function(n){return function(n){let{taxonomy:r,attributes:o,setAttributes:i}=n;return{label:(0,t.sprintf)((0,t.__)("Exclude %s","blocksy"),r.name),hasValue:function(){return o.exclude_term_ids[r.slug]},reset:function(){const e=o.exclude_term_ids||{},t=r.slug,{[t]:n}=e,a=ee(e,[t].map(te));i({exclude_term_ids:a})},render:function(){const n=o.exclude_term_ids[r.slug]||{strategy:"specific",terms:[]};return(0,e.createElement)(Y,{label:(0,t.sprintf)((0,t.__)("Exclude %s","blocksy"),r.name),taxonomy:r,termIds:n.terms,onChange:function(e){i({exclude_term_ids:J(J({},o.exclude_term_ids),{},{[r.slug]:J(J({},n),{},{terms:e})})})}})}}}({taxonomy:n,attributes:r,setAttributes:a})}))]),{taxonomiesGroup:c.length>0?{label:(0,t.__)("Taxonomies","blocksy"),items:c}:null}};var re=function(n){let{context:r,attributes:i,attributes:{post_type:a},setAttributes:l}=n;const{taxonomiesGroup:c}=ne({attributes:i,setAttributes:l,previewedPostMatchesType:i.post_type===r.postType});return(0,e.createElement)(o.InspectorControls,null,(0,e.createElement)(B,{className:"ct-query-parameters-component",attributes:i,setAttributes:l,resetAll:function(){l({offset:0,sticky_posts:"include",orderby:"post_date",order:"desc",include_term_ids:{},exclude_term_ids:{}})},items:[{label:(0,t.__)("General","blocksy"),items:[{label:(0,t.__)("Offset","blocksy"),hasValue:function(){return 0!==i.offset},reset:function(){l({offset:0})},render:function(){return(0,e.createElement)(C.Z,{purpose:"gutenberg",onChange:function(e,t){l({[e]:t})},options:{offset:{type:"ct-number",label:(0,t.__)("Offset","blocksy"),value:"",min:0,max:500}},value:i,hasRevertButton:!1})}},{label:(0,t.__)("Order by","blocksy"),hasValue:function(){return"post_date"!==i.orderby},reset:function(){l({orderby:"post_date"})},render:function(){return(0,e.createElement)(C.Z,{purpose:"gutenberg",onChange:function(e,t){l({[e]:t})},options:{orderby:{type:"ct-select",label:(0,t.__)("Order by","blocksy"),value:"",choices:[{key:"title",value:(0,t.__)("Title","blocksy")},{key:"post_date",value:(0,t.__)("Publish Date","blocksy")},{key:"modified",value:(0,t.__)("Modified Date","blocksy")},{key:"comment_count",value:(0,t.__)("Most commented","blocksy")},{key:"author",value:(0,t.__)("Author","blocksy")},{key:"rand",value:(0,t.__)("Random","blocksy")},{key:"menu_order",value:(0,t.__)("Menu Order","blocksy")}]}},value:i,hasRevertButton:!1})}},{label:(0,t.__)("Order","blocksy"),hasValue:function(){return"desc"!==i.order},reset:function(){l({order:"desc"})},render:function(){return(0,e.createElement)(C.Z,{purpose:"gutenberg",onChange:function(e,t){l({[e]:t})},options:{order:{type:"ct-select",label:(0,t.__)("Order","blocksy"),value:"",choices:[{key:"DESC",value:(0,t.__)("Descending","blocksy")},{key:"ASC",value:(0,t.__)("Ascending","blocksy")}]}},value:i,hasRevertButton:!1})}},{label:(0,t.__)("Sticky Posts","blocksy"),hasValue:function(){return"include"!==i.sticky_posts},reset:function(){l({sticky_posts:"include"})},render:function(){return(0,e.createElement)(C.Z,{purpose:"gutenberg",onChange:function(e,t){l({[e]:t})},options:{sticky_posts:{type:"ct-select",label:(0,t.__)("Sticky Posts","blocksy"),value:"include",choices:[{key:"include",value:(0,t.__)("Include","blocksy")},{key:"exclude",value:(0,t.__)("Exclude","blocksy")},{key:"only",value:(0,t.__)("Only","blocksy")}]}},value:i,hasRevertButton:!1})}}]},...c?[c]:[]],label:(0,t.__)("Parameters","blocksy")}))};function oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(n),!0).forEach((function(t){ae(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ae(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let le=null,ce=new AbortController;var se=n(6826),ue=n.n(se);function pe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e=ue()(e),e=e.trim().toLowerCase(),e}function de(e,t){const n=pe(t),r=pe(e.title);let o=0;if(n===r)o+=30;else if(r.startsWith(n))o+=20;else{n.split(" ").every((function(e){return r.includes(e)}))&&(o+=10)}return o}var fe=function(n){let{clientId:a,attributes:l,setIsPatternSelectionModalOpen:c,postType:s}=n;const[u,d]=(0,e.useState)(""),{replaceBlock:f,selectBlock:m}=(0,i.useDispatch)(o.store),[g,h]=(0,e.useState)([]);(0,e.useEffect)((function(){new Promise((function(e){le?e(le):fetch(`${wp.ajax.settings.url}?action=blocksy_get_posts_block_patterns`,{headers:{Accept:"application/json","Content-Type":"application/json"},method:"POST",body:JSON.stringify({}),signal:ce.signal}).then((function(e){return e.json()})).then((function(t){let{success:n,data:o}=t;n&&(le=o.patterns.map((function(e){return ie(ie({},e),{},{blocks:(0,r.parse)(e.content,{__unstableSkipMigrationLogs:!0})})})),e(le))}))})).then((function(e){h(e)}))}),[]);const b=(0,e.useMemo)((function(){return{previewPostType:s}}),[s]),v=(0,e.useMemo)((function(){return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!t)return e;const n=e.map((function(e){return[e,de(e,t)]})).filter((function(e){let[,t]=e;return t>0}));return n.sort((function(e,t){let[,n]=e,[,r]=t;return r-n})),n.map((function(e){let[t]=e;return t}))}(g,u)}),[g,u]),y=(0,U.useAsyncList)(v);return(0,e.createElement)(p.Modal,{overlayClassName:"block-library-query-pattern__selection-modal",title:(0,t.__)("Choose a pattern","blocksy"),onRequestClose:function(){return c(!1)},isFullScreen:!0},(0,e.createElement)("div",{className:"block-library-query-pattern__selection-content"},(0,e.createElement)("div",{className:"block-library-query-pattern__selection-search"},(0,e.createElement)(p.SearchControl,{__nextHasNoMarginBottom:!0,onChange:d,value:u,label:(0,t.__)("Search for patterns","blocksy"),placeholder:(0,t.__)("Search","blocksy")})),(0,e.createElement)(o.BlockContextProvider,{value:b},(0,e.createElement)(o.__experimentalBlockPatternsList,{blockPatterns:v,shownPatterns:y,onClickPattern:function(e,t){const{newBlocks:n,queryClientIds:o}=function(e,t){const n=e.map((function(e){return(0,r.cloneBlock)(e)})),o=[],i=[...n];for(;i.length>0;){var a;const e=i.shift();"blocksy/query"===e.name&&(e.attributes.uniqueId="",o.push(e.clientId)),null===(a=e.innerBlocks)||void 0===a||a.forEach((function(e){i.push(e)}))}return{newBlocks:n,queryClientIds:o}}(t);f(a,n),o[0]&&m(o[0])}}))))};function me(){return me=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},me.apply(this,arguments)}function ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function he(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ge(Object(n),!0).forEach((function(t){be(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function be(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ve=function(n){let{clientId:r,className:a,attributes:l,setAttributes:c,context:s}=n;const u=(0,o.useInnerBlocksProps)({},{}),d=(0,i.useSelect)((function(e){return!!e(o.store).getBlocks(r).length}),[r]),f=!d&&"default"!==l.design,{postTypesSelectOptions:m}=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{hasPages:n=!1}=t;const r=(0,i.useSelect)((function(e){var t;const{getPostTypes:r}=e(F.store),o=["attachment","product",...n?[]:["page"]];return null===(t=r({per_page:-1}))||void 0===t?void 0:t.filter((function(e){let{viewable:t,slug:n}=e;return t&&!o.includes(n)&&!n.includes("ct_")&&!n.includes("blc-")}))}),[n]);return{postTypesTaxonomiesMap:(0,e.useMemo)((function(){if(null!=r&&r.length)return r.reduce((function(e,t){return e[t.slug]=t.taxonomies,e}),{})}),[r]),postTypesSelectOptions:(0,e.useMemo)((function(){return(r||[]).reduce((function(e,t){return z(z({},e),{},{[t.slug]:t.labels.singular_name})}),{})}),[r])}}({hasPages:d}),{uniqueId:g,props:h}=function(t){let{attributes:n,clientId:r,setAttributes:o}=t;(0,e.useEffect)((function(){n.uniqueId&&!j({attributes:n,clientId:r})||o({uniqueId:k(r)})}),[r]);let i=n.uniqueId||k(r);return{uniqueId:i,props:{"data-id":i}}}({attributes:l,setAttributes:c,clientId:r}),{postId:b,postType:v}=s,y=(0,e.useRef)(),w=(0,o.__experimentalUseBorderProps)(l),O=(0,o.useBlockProps)({ref:y,className:a,style:he({},w.style)}),[_,E]=(0,e.useState)(!1);return(0,e.createElement)(React.Fragment,null,_&&(0,e.createElement)(fe,{clientId:r,attributes:l,setIsPatternSelectionModalOpen:E,postType:l.post_type}),f?(0,e.createElement)("div",me({},O,h),(0,e.createElement)(S,{setIsPatternSelectionModalOpen:E,attributes:l,setAttributes:c,clientId:r})):(0,e.createElement)("div",me({},O,h),"default"===l.design&&(0,e.createElement)(P,{uniqueId:g,attributes:l,postId:b}),d&&(0,e.createElement)("div",u)),(0,e.createElement)(o.BlockControls,null,(0,e.createElement)(p.ToolbarGroup,null,(0,e.createElement)(p.ToolbarButton,{className:"components-toolbar__control",icon:"layout",label:(0,t.__)("Reset layout","blocksy"),disabled:f,onClick:function(){d?(0,i.dispatch)("core/block-editor").replaceInnerBlocks(r,[],!1):(0,i.dispatch)("core/block-editor").updateBlockAttributes(r,{design:""})}}))),!f&&(0,e.createElement)(React.Fragment,null,(0,e.createElement)(o.InspectorControls,null,(0,e.createElement)(p.PanelBody,null,(0,e.createElement)(C.Z,{purpose:"gutenberg",onChange:function(e,t){c(he({[e]:t},"post_type"===e?{include_term_ids:{},exclude_term_ids:{},include_post_ids:{ids:[],current_post:!1},exclude_post_ids:{ids:[],current_post:!1}}:{}))},options:{post_type:{type:"ct-select",label:(0,t.__)("Post Type","blocksy"),value:"",defaultToFirstItem:!1,choices:m,purpose:"default"},limit:{type:"ct-number",label:(0,t.__)("Limit","blocksy"),value:"",min:1,max:30},has_pagination:{type:"ct-switch",label:(0,t.__)("Pagination","blocksy"),value:""}},value:l,hasRevertButton:!1}))),(0,e.createElement)(re,{attributes:l,setAttributes:c,context:s})),(0,e.createElement)(o.InspectorControls,{group:"advanced"},(0,e.createElement)(p.TextControl,{__nextHasNoMarginBottom:!0,autoComplete:"off",label:(0,t.__)("Block ID","blocksy"),value:g,onChange:function(e){},onFocus:function(e){e.target.select()},help:(0,t.__)("Please look at the documentation for more information on why this is useful.","blocksy")})))};var ye=function(t){const n=o.useBlockProps.save(),r=o.useInnerBlocksProps.save(n);return(0,e.createElement)("div",r)},we=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"blocksy/query","category":"blocksy-blocks","attributes":{"uniqueId":{"type":"string","default":""},"type":{"type":"string","default":"post"},"post_type":{"type":"string","default":"post"},"limit":{"type":"number","default":5},"include_term_ids":{"type":"object","default":{}},"exclude_term_ids":{"type":"object","default":{}},"include_post_ids":{"type":"object","default":{"ids":[],"current_post":false}},"exclude_post_ids":{"type":"object","default":{"ids":[],"current_post":false}},"order":{"type":"string","default":"desc"},"orderby":{"type":"string","default":"post_date"},"orderby_custom":{"type":"string","default":""},"offset":{"type":"number","default":0},"design":{"type":"string","default":""},"has_pagination":{"type":"string","default":"no"},"textColor":{"type":"string"},"customTextColor":{"type":"string"},"linkColor":{"type":"string"},"customLinkColor":{"type":"string"},"linkHoverColor":{"type":"string"},"customLinkHoverColor":{"type":"string"},"sticky_posts":{"type":"string","default":"include"}},"supports":{"align":["wide","full"],"html":false,"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"__experimentalBorder":{"color":true,"radius":true,"width":true,"__experimentalDefaultControls":{"color":true,"radius":true,"width":true},"__experimentalSelector":"img, .block-editor-media-placeholder, .wp-block-post-featured-image__overlay","__experimentalSkipSerialization":true},"color":{"gradients":true,"link":false,"__experimentalDefaultControls":{"text":false,"background":true,"link":false}}},"usesContext":["postId","postType"],"providesContext":{"uniqueId":"uniqueId","post_type":"post_type","limit":"limit","order":"order","orderby":"orderby","sticky_posts":"sticky_posts","orderby_custom":"orderby_custom","offset":"offset","has_pagination":"has_pagination","include_term_ids":"include_term_ids","exclude_term_ids":"exclude_term_ids"}}');function Oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(n),!0).forEach((function(t){Ee(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ee(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}(0,r.registerBlockType)("blocksy/query",_e(_e({},we),{},{title:(0,t.__)("Advanced Posts","blocksy"),description:(0,t.__)("Advanced Posts","blocksy"),icon:{src:(0,e.createElement)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",context:"list-view","aria-hidden":"true",focusable:"false"},(0,e.createElement)("path",{d:"M5.5 18v-1c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v1c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5zm.5 2c-1.1 0-2-.9-2-2v-1c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2v1c0 1.1-.9 2-2 2H6zm-.5-9V6c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v5c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5zm.5 2c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2v5c0 1.1-.9 2-2 2H6zm8.5 0v5c0 .3.2.5.5.5h3c.3 0 .5-.2.5-.5v-5c0-.3-.2-.5-.5-.5h-3c-.3 0-.5.2-.5.5zM13 18c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-5c0-1.1-.9-2-2-2h-3c-1.1 0-2 .9-2 2v5zm1.5-11V6c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v1c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5zm.5 2c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2v1c0 1.1-.9 2-2 2h-3z","fill-rule":"evenodd"}))},edit:function(t){return(0,e.createElement)(ve,t)},save:function(){return(0,e.createElement)(ye,null)}}));var Pe=(0,e.createElement)(D.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)(D.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 Ce=(0,e.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(D.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-7.8 16.5H5c-.3 0-.5-.2-.5-.5v-6.2h6.8v6.7zm0-8.3H4.5V5c0-.3.2-.5.5-.5h6.2v6.7zm8.3 7.8c0 .3-.2.5-.5.5h-6.2v-6.8h6.8V19zm0-7.8h-6.8V4.5H19c.3 0 .5.2.5.5v6.2z",fillRule:"evenodd",clipRule:"evenodd"}));function ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function je(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ke(Object(n),!0).forEach((function(t){Se(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Se(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xe(){return xe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xe.apply(this,arguments)}const Ie=[];function De(){const t=(0,o.useInnerBlocksProps)({className:"wp-block-post"},{template:Ie,__unstableDisableLayoutClassNames:!0});return(0,e.createElement)("article",t)}const Ne=(0,e.memo)((function(t){let{blocks:n,blockContextId:r,isHidden:i,setActiveBlockContextId:a}=t;const l=(0,o.__experimentalUseBlockPreview)({blocks:n,props:{className:"wp-block-post"}}),c=function(){a(r)},s={display:i?"none":void 0};return(0,e.createElement)("article",xe({},l,{tabIndex:0,role:"button",onClick:c,onKeyPress:c,style:s}))}));var Te=function(n){let{clientId:r,className:a,attributes:l,attributes:{layout:c},setAttributes:s,context:u,__unstableLayoutClassNames:d}=n;const{postId:f,postType:m}=u,[g,h]=(0,e.useState)(),{type:b,columnCount:v=3}=c||{},y=(0,o.useBlockProps)({className:I()(d,{[`columns-${v}`]:"grid"===b&&v})}),{blockData:w}=((0,o.useInnerBlocksProps)({},{}),E({attributes:u,previewedPostId:f})),{blocks:O}=(0,i.useSelect)((function(e){const{getBlocks:t}=e(o.store);return{blocks:t(r)}}),[r]);if(!w)return(0,e.createElement)("p",y,(0,e.createElement)(p.Spinner,null));let _=w.all_posts.map((function(e){return{postId:e.ID,postType:e.post_type}}));const P=function(e){return s({layout:je(je({},c),e)})},C=[{icon:Pe,title:(0,t.__)("List view"),onClick:function(){return P({type:"default"})},isActive:"default"===b||"constrained"===b},{icon:Ce,title:(0,t.__)("Grid view"),onClick:function(){return P({type:"grid",columnCount:v})},isActive:"grid"===b}];return(0,e.createElement)(React.Fragment,null,(0,e.createElement)(o.BlockControls,null,(0,e.createElement)(p.ToolbarGroup,{controls:C})),(0,e.createElement)("div",y,_.map((function(t){var n,r;return(0,e.createElement)(o.BlockContextProvider,{key:t.postId,value:t},t.postId===(g||(null===(n=_[0])||void 0===n?void 0:n.postId))?(0,e.createElement)(De,null):null,(0,e.createElement)(Ne,{blocks:O,blockContextId:t.postId,setActiveBlockContextId:h,isHidden:t.postId===(g||(null===(r=_[0])||void 0===r?void 0:r.postId))}))}))),w&&"yes"===u.has_pagination&&(0,e.createElement)(e.RawHTML,null,w.pagination_output))};var Ae=function(){return(0,e.createElement)(o.InnerBlocks.Content,null)},Re=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"blocksy/post-template","parent":"blocksy/query","title":"Post Template","category":"theme","description":"Contains the block elements used to render a post, like the title, date, featured image, content or excerpt, and more.","textdomain":"default","supports":{"reusable":false,"html":false,"layout":true,"spacing":{"blockGap":{"__experimentalDefault":"1.25em"},"__experimentalDefaultControls":{"blockGap":true}}},"usesContext":["uniqueId","post_type","limit","order","orderby","orderby_custom","offset","postId","postType","has_pagination","include_term_ids","exclude_term_ids","sticky_posts"]}');function Me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Me(Object(n),!0).forEach((function(t){Fe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}(0,r.registerBlockType)("blocksy/post-template",Be(Be({},Re),{},{title:(0,t.__)("Post Template","blocksy"),description:(0,t.__)("Post Template","blocksy"),icon:{src:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",context:"list-view","aria-hidden":"true",focusable:"false"},(0,e.createElement)("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"}))},edit:function(t){return(0,e.createElement)(Te,t)},save:Ae}));var Le=n(7686);const ze=function(e){return Object.entries((0,Le.JS)(e)).reduce((function(e,t){const n=t[1].type;let r="string";return"ct-number"===n&&(r="number"),"ct-image-uploader"===n&&(r="object"),"ct-checkboxes"===n&&(r="object"),"ct-layers"===n&&(r="array"),e[t[0]]={type:r,default:t[1].value},e}),{})},He=function(e){var t,n;return(null===(t=window.ct_localizations||window.ct_customizer_localizations)||void 0===t||null===(n=t.gutenberg_blocks_data)||void 0===n?void 0:n[e])||[]},Ve={};var Ue=function(t,n,r){const[o,i]=(0,e.useState)([]),[a,l]=(0,e.useState)([]),c=(0,e.useCallback)((async function(){const e=new FormData,a=JSON.stringify(n);var c;(e.append("action","blocksy_get_dynamic_block_view"),e.append("block",t),e.append("attributes",a),Ve[a])?(i(r(Ve[a])),l(!1)):(o||l(!0),fetch((null===(c=window.ct_localizations||ct_customizer_localizations)||void 0===c?void 0:c.ajax_url)||wp.ajax.settings.url,{method:"POST",body:e}).then((function(e){return e.json()})).then((function(e){let{data:{content:t}}=e;i(r(t)),l(!1),Ve[a]=t})))}),[n,o]);return(0,e.useEffect)((function(){c()}),[n]),{isLoading:a,preview:o}};const $e=function(e){return Object.keys(e).reduce((function(t,n){return t[n]={type:"string",default:e[n]},t}),{})},Ge={textColor:"",customTextColor:"",textHoverColor:"",customTextHoverColor:"",iconsColor:"",customIconsColor:"",iconsHoverColor:"",customIconsHoverColor:"",borderColor:"rgba(218, 222, 228, 0.5)",customBorderColor:"rgba(218, 222, 228, 0.5)",borderHoverColor:"rgba(218, 222, 228, 0.7)",customBorderHoverColor:"rgba(218, 222, 228, 0.7)",backgroundColor:"rgba(218, 222, 228, 0.5)",customBackgroundColor:"rgba(218, 222, 228, 0.5)",backgroundHoverColor:"rgba(218, 222, 228, 0.7)",customBackgroundHoverColor:"rgba(218, 222, 228, 0.7)"},We=$e(Ge);function qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qe(Object(n),!0).forEach((function(t){Ke(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ke(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ye=Ze({about_alignment:"center",avatar_shape:"round",about_avatar_size:"small",post_widget_thumb_size:"default",about_social_type:"rounded",about_social_icons_fill:"outline",about_social_icons_color:"official",about_text:"Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et dolore magna aliqua tincidunt tortor aliquam.",about_name:"John Doe",about_items_spacing:"",about_social_icons_size:""},Ge);var Xe=function(t){let{attributes:n,setAttributes:r}=t;const i=(0,e.useRef)({image:"",socials:""}),{about_name:a,about_text:l,about_source:c,about_alignment:s,avatar_shape:u,about_avatar_size:d,about_social_type:f,about_social_icons_fill:m,about_items_spacing:g,about_social_icons_size:h,about_social_icons_color:b}=n,v=(0,e.useCallback)((function(e){const t=document.createElement("div");t.innerHTML=e;const n=t.querySelector(".ct-about-me-block");if(n){n.querySelector("div").dataset.alignment=s;const e=n.querySelector(".ct-media-container");e&&(e.dataset.shape=u,e.dataset.size=d);const t=n.querySelector(".ct-social-box");var r;if(t&&(t.dataset.iconsType="simple"===f?f:`${f}:${m}`,t.dataset.color=b),"custom"===c)i.current={image:(null===(r=n.querySelector(".ct-media-container"))||void 0===r?void 0:r.outerHTML)||"",socials:(null==t?void 0:t.outerHTML)||""}}return n.innerHTML}),[s,u,c,d,f,m,h,g,b]),{isLoading:y,preview:w}=Ue("about-me",Ze(Ze({},n),Ye),v);return y?(0,e.createElement)(p.Spinner,null):"from_wp"===c?(0,e.createElement)(e.RawHTML,null,w):(0,e.createElement)("div",{"data-alignment":s},(0,e.createElement)(e.RawHTML,null,i.current.image),(0,e.createElement)("div",{className:"ct-about-me-name"},(0,e.createElement)(o.RichText,{tagName:"span",value:a,placeholder:"User Name",onChange:function(e){return r({about_name:e})}})),(0,e.createElement)(o.RichText,{tagName:"div",className:"ct-about-me-text",value:l,placeholder:"User Description",onChange:function(e){return r({about_text:e})}}),(0,e.createElement)(e.RawHTML,null,i.current.socials))},Je=window.blocksyOptions;var Qe=function(t){let{attributes:n,setAttributes:r,options:i}=t;return(0,e.createElement)(o.InspectorControls,null,(0,e.createElement)(p.PanelBody,null,(0,e.createElement)(Je.OptionsPanel,{purpose:"gutenberg",onChange:function(e,t){r({[e]:t})},options:i,value:n,hasRevertButton:!1})))};function et(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?et(Object(n),!0).forEach((function(t){nt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):et(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rt=(0,o.withColors)({textColor:"color"},{textHoverColor:"color"},{iconsColor:"color"},{iconsHoverColor:"color"},{backgroundColor:"color"},{backgroundHoverColor:"color"},{borderColor:"color"},{borderHoverColor:"color"})((function(n){let{attributes:r,setAttributes:i,clientId:a,className:l,textColor:c,setTextColor:s,textHoverColor:u,setTextHoverColor:p,iconsColor:d,setIconsColor:m,iconsHoverColor:g,setIconsHoverColor:h,backgroundColor:b,setBackgroundColor:v,backgroundHoverColor:y,setBackgroundHoverColor:w,borderColor:O,setBorderColor:_,borderHoverColor:E,setBorderHoverColor:P}=n;const{about_alignment:C="center",about_items_spacing:k="",about_social_icons_size:j="",about_social_type:S="simple",about_social_icons_fill:x="outline",about_social_icons_color:I="default"}=r,D=(0,e.useRef)(),N=(0,o.useBlockProps)({ref:D,className:{"ct-about-me-block":!0,className:l},"data-alignment":C,style:tt(tt({"--theme-block-text-color":null==c?void 0:c.color,"--theme-link-hover-color":null==c?void 0:c.color,"--theme-icon-color":null==d?void 0:d.color,"--theme-icon-hover-color":null==g?void 0:g.color,"--background-color":"solid"===x?null==b?void 0:b.color:null==O?void 0:O.color,"--background-hover-color":"solid"===x?null==y?void 0:y.color:null==E?void 0:E.color},j?{"--theme-icon-size":`${j}px`}:{}),k?{"--items-spacing":`${k}px`}:{})});return(0,e.createElement)("div",N,(0,e.createElement)(Xe,{attributes:r,setAttributes:i}),(0,e.createElement)(Qe,{attributes:r,setAttributes:i,options:lt}),(0,e.createElement)(o.InspectorControls,{group:"styles"},(0,e.createElement)(f,{label:(0,t.__)("Text Color","blocksy"),resetAll:function(){s(Ge.textColor),p(Ge.textHoverColor)},panelId:a,settings:[{colorValue:c.color,enableAlpha:!0,label:(0,t.__)("Initial","blocksy"),onColorChange:function(e){return s(e||Ge.textColor)}},{colorValue:u.color,enableAlpha:!0,label:(0,t.__)("Hover","blocksy"),onColorChange:function(e){return p(e||Ge.textHoverColor)}}]}),"default"===I?(0,e.createElement)(f,{label:(0,t.__)("Icons Color","blocksy"),resetAll:function(){m(Ge.iconsColor),h(Ge.iconsHoverColor)},panelId:a,settings:[{colorValue:d.color,enableAlpha:!0,label:(0,t.__)("Initial","blocksy"),onColorChange:function(e){return m(e||Ge.iconsColor)}},{colorValue:g.color,enableAlpha:!0,label:(0,t.__)("Hover","blocksy"),onColorChange:function(e){return h(e||Ge.iconsHoverColor)}}]}):null,"simple"!==S&&"default"===I&&("solid"===x?(0,e.createElement)(f,{label:(0,t.__)("Icons Background Color","blocksy"),resetAll:function(){v(Ge.backgroundColor),w(Ge.backgroundHoverColor)},panelId:a,settings:[{colorValue:b.color,enableAlpha:!0,label:(0,t.__)("Initial","blocksy"),onColorChange:function(e){return v(e||Ge.backgroundColor)}},{colorValue:y.color,enableAlpha:!0,label:(0,t.__)("Hover","blocksy"),onColorChange:function(e){return w(e||Ge.backgroundHoverColor)}}]}):(0,e.createElement)(f,{label:(0,t.__)("Icons Border Color","blocksy"),resetAll:function(){_(Ge.borderColor),P(Ge.borderHoverColor)},panelId:a,settings:[{colorValue:O.color,enableAlpha:!0,label:(0,t.__)("Initial","blocksy"),onColorChange:function(e){return _(e||Ge.borderColor)}},{colorValue:E.color,enableAlpha:!0,label:(0,t.__)("Hover","blocksy"),onColorChange:function(e){return P(e||Ge.borderHoverColor)}}]}))))}));function ot(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function it(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ot(Object(n),!0).forEach((function(t){at(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ot(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function at(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const lt=He("about_me"),ct=ze(lt);(0,r.registerBlockType)("blocksy/about-me",{apiVersion:3,title:(0,t.__)("About Me Controls","blocksy"),icon:{src:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:"wc-block-editor-components-block-icon"},(0,e.createElement)("path",{d:"M5.8 13H4.2v-1c0-1.5 1.2-2.8 2.8-2.8h4c1.5 0 2.8 1.2 2.8 2.8v1h-1.5v-1c0-.7-.6-1.2-1.2-1.2H7c-.7 0-1.2.6-1.2 1.2v1zM4 21h9v-1.5H4V21zm0-5.5V17h16v-1.5H4zm2.5-10C6.5 4.1 7.6 3 9 3s2.5 1.1 2.5 2.5S10.4 8 9 8 6.5 6.9 6.5 5.5zm1.5 0c0 .6.4 1 1 1s1-.4 1-1-.4-1-1-1-1 .4-1 1z"}))},supports:{html:!1,multiple:!1,inserter:!1,lock:!1},parent:["blocksy/widgets-wrapper"],attributes:it(it({},ct),We),edit:function(t){return(0,e.createElement)(rt,t)},save:function(){return(0,e.createElement)("div",null,"Blocksy: About Me")}}),wp.blocks.registerBlockVariation("blocksy/widgets-wrapper",{name:"blocksy-about-me",title:(0,t.__)("About Me","blocksy"),attributes:{heading:(0,t.__)("About Me","blocksy"),block:"blocksy/about-me"},isDefault:!0,isActive:function(e){return"blocksy/about-me"===e.block},icon:{src:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:"wc-block-editor-components-block-icon"},(0,e.createElement)("path",{d:"M5.8 13H4.2v-1c0-1.5 1.2-2.8 2.8-2.8h4c1.5 0 2.8 1.2 2.8 2.8v1h-1.5v-1c0-.7-.6-1.2-1.2-1.2H7c-.7 0-1.2.6-1.2 1.2v1zM4 21h9v-1.5H4V21zm0-5.5V17h16v-1.5H4zm2.5-10C6.5 4.1 7.6 3 9 3s2.5 1.1 2.5 2.5S10.4 8 9 8 6.5 6.9 6.5 5.5zm1.5 0c0 .6.4 1 1 1s1-.4 1-1-.4-1-1-1-1 .4-1 1z"}))}});const st={textColor:"",customTextColor:"",textInitialColor:"",customTextInitialColor:"",textHoverColor:"",customTextHoverColor:"",iconsColor:"",customIconsColor:"",iconsHoverColor:"",customIconsHoverColor:"",borderColor:"rgba(218, 222, 228, 0.5)",customBorderColor:"rgba(218, 222, 228, 0.5)",borderHoverColor:"rgba(218, 222, 228, 0.7)",customBorderHoverColor:"rgba(218, 222, 228, 0.7)",backgroundColor:"rgba(218, 222, 228, 0.5)",customBackgroundColor:"rgba(218, 222, 228, 0.5)",backgroundHoverColor:"rgba(218, 222, 228, 0.7)",customBackgroundHoverColor:"rgba(218, 222, 228, 0.7)"},ut=$e(st);function pt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pt(Object(n),!0).forEach((function(t){ft(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ft(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const mt=dt({contacts_icons_size:20,contacts_items_spacing:"",contacts_icon_shape:"rounded",contacts_icon_fill_type:"outline",contact_link_target:"no",contact_text:"",contacts_items_direction:"column",link_icons:"no"},st);var gt=function(t){let{attributes:n}=t;const{contacts_icons_size:r=20,contacts_items_spacing:o="",contacts_icon_shape:i="rounded",contacts_icon_fill_type:a="outline",contact_link_target:l="no",contacts_items_direction:c="column"}=n,s=(0,e.useCallback)((function(e){const t=document.createElement("div");t.innerHTML=e;const n=t.querySelector(".ct-contact-info-block ul"),r=t.querySelectorAll("a");return r&&r.forEach((function(e){e.target="yes"===l?"_blank":"_self"})),n.innerHTML}),[r,i,a,l,c,o]),{isLoading:u,preview:d}=Ue("contact-info",dt(dt({},n),mt),s);return u?(0,e.createElement)(p.Spinner,null):(0,e.createElement)("ul",{"data-icons-type":"simple"===i?i:`${i}:${a}`,dangerouslySetInnerHTML:{__html:d}})};function ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ht(Object(n),!0).forEach((function(t){vt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ht(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yt,wt=(0,o.withColors)({textColor:"color"},{textInitialColor:"color"},{textHoverColor:"color"},{iconsColor:"color"},{iconsHoverColor:"color"},{backgroundColor:"color"},{backgroundHoverColor:"color"},{borderColor:"color"},{borderHoverColor:"color"})((function(n){let{attributes:r,setAttributes:i,clientId:a,className:l,textColor:c,setTextColor:s,textInitialColor:u,setTextInitialColor:p,textHoverColor:d,setTextHoverColor:m,iconsColor:g,setIconsColor:h,iconsHoverColor:b,setIconsHoverColor:v,backgroundColor:y,setBackgroundColor:w,backgroundHoverColor:O,setBackgroundHoverColor:_,borderColor:E,setBorderColor:P,borderHoverColor:C,setBorderHoverColor:k}=n;const{contacts_items_direction:j="column",contacts_icons_size:S=20,contacts_items_spacing:x="",contacts_icon_shape:I="rounded",contacts_icon_fill_type:D="outline"}=r,N=(0,e.useRef)(),T=(0,o.useBlockProps)({ref:N,className:{"ct-contact-info-block":!0,className:l},style:bt(bt(bt({"--theme-block-text-color":null==c?void 0:c.color,"--theme-link-initial-color":null==u?void 0:u.color,"--theme-link-hover-color":null==d?void 0:d.color,"--theme-icon-color":null==g?void 0:g.color,"--theme-icon-hover-color":null==b?void 0:b.color,"--background-color":"solid"===D?null==y?void 0:y.color:null==E?void 0:E.color,"--background-hover-color":"solid"===D?null==O?void 0:O.color:null==C?void 0:C.color},S?{"--theme-icon-size":`${S}px`}:{}),x?{"--items-spacing":`${x}px`}:{}),"column"===j?{"--items-direction":j}:{})});return(0,e.createElement)("div",T,(0,e.createElement)(gt,{attributes:r,setAttributes:i}),(0,e.createElement)(Qe,{attributes:r,setAttributes:i,options:Pt}),(0,e.createElement)(o.InspectorControls,{group:"styles"},(0,e.createElement)(f,{label:(0,t.__)("Text Color","blocksy"),resetAll:function(){s(st.textColor),p(st.textInitialColor),m(st.textHoverColor)},panelId:a,settings:[{colorValue:c.color,enableAlpha:!0,label:(0,t.__)("Text","blocksy"),onColorChange:function(e){return s(e||st.textColor)}},{colorValue:u.color,enableAlpha:!0,label:(0,t.__)("Link Initial","blocksy"),onColorChange:function(e){return p(e||st.textInitialColor)}},{colorValue:d.color,enableAlpha:!0,label:(0,t.__)("Link Hover","blocksy"),onColorChange:function(e){return m(e||st.textHoverColor)}}]}),(0,e.createElement)(f,{label:(0,t.__)("Icons Color","blocksy"),resetAll:function(){h(st.iconsColor),v(st.iconsHoverColor)},panelId:a,settings:[{colorValue:g.color,enableAlpha:!0,label:(0,t.__)("Initial","blocksy"),onColorChange:function(e){return h(e||st.iconsColor)}},{colorValue:b.color,enableAlpha:!0,label:(0,t.__)("Hover","blocksy"),onColorChange:function(e){return v(e||st.iconsHoverColor)}}]}),"simple"!==I&&("solid"===D?(0,e.createElement)(f,{label:(0,t.__)("Icons Background Color","blocksy"),resetAll:function(){w(st.backgroundColor),_(st.backgroundHoverColor)},panelId:a,settings:[{colorValue:y.color,enableAlpha:!0,label:(0,t.__)("Initial","blocksy"),onColorChange:function(e){return w(e||st.backgroundColor)}},{colorValue:O.color,enableAlpha:!0,label:(0,t.__)("Hover","blocksy"),onColorChange:function(e){return _(e||st.backgroundHoverColor)}}]}):(0,e.createElement)(f,{label:(0,t.__)("Icons Border Color","blocksy"),resetAll:function(){P(st.borderColor),k(st.borderHoverColor)},panelId:a,settings:[{colorValue:E.color,enableAlpha:!0,label:(0,t.__)("Initial","blocksy"),onColorChange:function(e){return P(e||st.borderColor)}},{colorValue:C.color,enableAlpha:!0,label:(0,t.__)("Hover","blocksy"),onColorChange:function(e){return k(e||st.borderHoverColor)}}]}))))}));function Ot(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _t(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ot(Object(n),!0).forEach((function(t){Et(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ot(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Et(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Pt=He("contact_info"),Ct=ze(Pt);(0,r.registerBlockType)("blocksy/contact-info",{apiVersion:3,title:(0,t.__)("Contact Info Controls","blocksy"),icon:{src:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:"wc-block-editor-components-block-icon"},(0,e.createElement)("path",{"fill-rule":"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","clip-rule":"evenodd"}))},supports:{html:!1,multiple:!1,inserter:!1,lock:!1,typography:{fontSize:!0}},parent:["blocksy/widgets-wrapper"],attributes:_t(_t({},Ct),ut),edit:function(t){return(0,e.createElement)(wt,t)},save:function(){return(0,e.createElement)("div",null,"Blocksy: Contact Info")}}),wp.blocks.registerBlockVariation("blocksy/widgets-wrapper",{name:"blocksy-contact-info",title:(0,t.__)("Contact Info","blocksy"),attributes:{heading:(0,t.__)("Contact Info","blocksy"),block:"blocksy/contact-info",hasDescription:!0,description:(null==Ct||null===(yt=Ct.contact_text)||void 0===yt?void 0:yt.default)||""},isActive:function(e){return"blocksy/contact-info"===e.block},icon:{src:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:"wc-block-editor-components-block-icon"},(0,e.createElement)("path",{"fill-rule":"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","clip-rule":"evenodd"}))}});const kt={initialColor:"",customInitialColor:"",hoverColor:"",customHoverColor:"",borderColor:"rgba(218, 222, 228, 0.5)",customBorderColor:"rgba(218, 222, 228, 0.5)",borderHoverColor:"rgba(218, 222, 228, 0.7)",customBorderHoverColor:"rgba(218, 222, 228, 0.7)",backgroundColor:"rgba(218, 222, 228, 0.5)",customBackgroundColor:"rgba(218, 222, 228, 0.5)",backgroundHoverColor:"rgba(218, 222, 228, 0.7)",customBackgroundHoverColor:"rgba(218, 222, 228, 0.7)"},jt=$e(kt);function St(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?St(Object(n),!0).forEach((function(t){It(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):St(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function It(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Dt=xt({link_nofollow:"no",link_target:"no",social_icons_color:"official",social_icons_fill:"outline",social_icons_size:"",items_spacing:"",social_type:"simple"},kt);var Nt=function(t){let{attributes:n}=t;const{social_icons_color:r,social_icons_size:o,social_type:i,social_icons_fill:a,items_spacing:l}=n,c=(0,e.useCallback)((function(e){const t=document.createElement("div");return t.innerHTML=e,t.querySelector(".ct-social-box").innerHTML}),[r,o,i,a,l]),{isLoading:s,preview:u}=Ue("socials",xt(xt({},n),Dt),c);return s?(0,e.createElement)(p.Spinner,null):(0,e.createElement)(e.RawHTML,{className:"ct-social-box","data-icons-type":"simple"===i?i:`${i}:${a}`,"data-color":r},u)};function Tt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function At(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tt(Object(n),!0).forEach((function(t){Rt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Rt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Mt=He("socials");var Bt=(0,o.withColors)({initialColor:"color"},{hoverColor:"color"},{backgroundColor:"color"},{backgroundHoverColor:"color"},{borderColor:"color"},{borderHoverColor:"color"})((function(n){let{attributes:r,setAttributes:i,clientId:a,className:l,initialColor:c,setInitialColor:s,hoverColor:u,setHoverColor:p,backgroundColor:d,setBackgroundColor:m,backgroundHoverColor:g,setBackgroundHoverColor:h,borderColor:b,setBorderColor:v,borderHoverColor:y,setBorderHoverColor:w}=n;const{items_spacing:O="",social_icons_size:_="",social_type:E="simple",social_icons_fill:P="outline",social_icons_color:C="default"}=r,k=(0,e.useRef)(),j=(0,o.useBlockProps)({ref:k,className:{"ct-socials-block":!0,className:l},style:At(At({"--theme-icon-color":null==c?void 0:c.color,"--theme-icon-hover-color":null==u?void 0:u.color,"--background-color":"solid"===P?null==d?void 0:d.color:null==b?void 0:b.color,"--background-hover-color":"solid"===P?null==g?void 0:g.color:null==y?void 0:y.color},_?{"--theme-icon-size":`${_}px`}:{}),O?{"--items-spacing":`${O}px`}:{})});return(0,e.createElement)("div",j,(0,e.createElement)(Nt,{attributes:r,setAttributes:i}),(0,e.createElement)(Qe,{attributes:r,setAttributes:i,options:Mt}),"default"===C?(0,e.createElement)(o.InspectorControls,{group:"styles"},(0,e.createElement)(f,{label:(0,t.__)("Icon Color","blocksy"),resetAll:function(){s(kt.initialColor),p(kt.hoverColor)},panelId:a,settings:[{colorValue:c.color,enableAlpha:!0,label:(0,t.__)("Initial","blocksy"),onColorChange:function(e){return s(e||kt.initialColor)}},{colorValue:u.color,enableAlpha:!0,label:(0,t.__)("Hover","blocksy"),onColorChange:function(e){return p(e||kt.hoverColor)}}]}),"simple"!==E&&("solid"===P?(0,e.createElement)(f,{label:(0,t.__)("Icons Background Colors","blocksy"),resetAll:function(){m(kt.backgroundColor),h(kt.backgroundHoverColor)},panelId:a,settings:[{colorValue:d.color,enableAlpha:!0,label:(0,t.__)("Initial","blocksy"),onColorChange:function(e){return m(e||kt.backgroundColor)}},{colorValue:g.color,enableAlpha:!0,label:(0,t.__)("Hover","blocksy"),onColorChange:function(e){return h(e||kt.backgroundHoverColor)}}]}):(0,e.createElement)(f,{label:(0,t.__)("Icons Border Colors","blocksy"),resetAll:function(){v(kt.borderColor),w(kt.borderHoverColor)},panelId:a,settings:[{colorValue:b.color,enableAlpha:!0,label:(0,t.__)("Initial","blocksy"),onColorChange:function(e){return v(e||kt.borderColor)}},{colorValue:y.color,enableAlpha:!0,label:(0,t.__)("Hover","blocksy"),onColorChange:function(e){return w(e||kt.borderHoverColor)}}]}))):null)}));function Ft(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ft(Object(n),!0).forEach((function(t){zt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ft(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ht=He("socials"),Vt=ze(Ht);(0,r.registerBlockType)("blocksy/socials",{apiVersion:3,title:(0,t.__)("Socials Controls","blocksy"),icon:{src:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:"wc-block-editor-components-block-icon"},(0,e.createElement)("path",{d:"M16.4 14.2c-.8 0-1.5.3-2.1.9l-3.9-2.3c.1-.3.1-.5.1-.8 0-.3-.1-.5-.1-.8L14.3 9c.5.5 1.3.9 2.1.9 1.6 0 2.9-1.3 2.9-2.9S18 4 16.4 4s-2.9 1.3-2.9 2.9c0 .3.1.5.1.8L9.7 10c-.5-.6-1.3-.9-2.1-.9-1.6 0-2.9 1.3-2.9 2.9 0 1.6 1.3 2.9 2.9 2.9.8 0 1.5-.3 2.1-.9l3.9 2.3c-.1.3-.1.5-.1.8 0 1.6 1.3 2.9 2.9 2.9s2.9-1.3 2.9-2.9c0-1.6-1.3-2.9-2.9-2.9zm0-8.7c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5-1.5-.7-1.5-1.5.7-1.5 1.5-1.5zm-8.8 8c-.8 0-1.5-.7-1.5-1.5s.7-1.5 1.5-1.5 1.5.7 1.5 1.5-.7 1.5-1.5 1.5zm8.8 5c-.8 0-1.5-.7-1.5-1.5 0-.3.1-.5.2-.7.3-.4.7-.7 1.2-.7.8 0 1.5.7 1.5 1.5s-.6 1.4-1.4 1.4z"}))},supports:{html:!1,multiple:!1,inserter:!1,lock:!1},parent:["blocksy/widgets-wrapper"],attributes:Lt(Lt({},Vt),jt),edit:function(t){return(0,e.createElement)(Bt,t)},save:function(){return(0,e.createElement)("div",null,"Blocksy: Socials")}}),wp.blocks.registerBlockVariation("blocksy/widgets-wrapper",{name:"blocksy-socials",title:(0,t.__)("Socials","blocksy"),attributes:{heading:(0,t.__)("Socials","blocksy"),block:"blocksy/socials"},isActive:function(e){return"blocksy/socials"===e.block},icon:{src:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:"wc-block-editor-components-block-icon"},(0,e.createElement)("path",{d:"M16.4 14.2c-.8 0-1.5.3-2.1.9l-3.9-2.3c.1-.3.1-.5.1-.8 0-.3-.1-.5-.1-.8L14.3 9c.5.5 1.3.9 2.1.9 1.6 0 2.9-1.3 2.9-2.9S18 4 16.4 4s-2.9 1.3-2.9 2.9c0 .3.1.5.1.8L9.7 10c-.5-.6-1.3-.9-2.1-.9-1.6 0-2.9 1.3-2.9 2.9 0 1.6 1.3 2.9 2.9 2.9.8 0 1.5-.3 2.1-.9l3.9 2.3c-.1.3-.1.5-.1.8 0 1.6 1.3 2.9 2.9 2.9s2.9-1.3 2.9-2.9c0-1.6-1.3-2.9-2.9-2.9zm0-8.7c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5-1.5-.7-1.5-1.5.7-1.5 1.5-1.5zm-8.8 8c-.8 0-1.5-.7-1.5-1.5s.7-1.5 1.5-1.5 1.5.7 1.5 1.5-.7 1.5-1.5 1.5zm8.8 5c-.8 0-1.5-.7-1.5-1.5 0-.3.1-.5.2-.7.3-.4.7-.7 1.2-.7.8 0 1.5.7 1.5 1.5s-.6 1.4-1.4 1.4z"}))}});const Ut={initialColor:"",customInitialColor:"",hoverColor:"",customHoverColor:"",borderColor:"rgba(218, 222, 228, 0.5)",customBorderColor:"rgba(218, 222, 228, 0.5)",borderHoverColor:"rgba(218, 222, 228, 0.7)",customBorderHoverColor:"rgba(218, 222, 228, 0.7)",backgroundColor:"rgba(218, 222, 228, 0.5)",customBackgroundColor:"rgba(218, 222, 228, 0.5)",backgroundHoverColor:"rgba(218, 222, 228, 0.7)",customBackgroundHoverColor:"rgba(218, 222, 228, 0.7)"},$t=$e(Ut);function Gt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gt(Object(n),!0).forEach((function(t){qt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Zt=Wt({link_nofollow:"no",share_icons_size:"",items_spacing:""},Ut);var Kt=function(t){let{attributes:n}=t;const{share_icons_color:r,share_icons_size:o,share_type:i,share_icons_fill:a,items_spacing:l}=n,c=(0,e.useCallback)((function(e){const t=document.createElement("div");return t.innerHTML=e,t.querySelector(".ct-share-box").innerHTML}),[r,o,i,a,l]),{isLoading:s,preview:u}=Ue("share-box",Wt(Wt({},n),Zt),c);return s?(0,e.createElement)(p.Spinner,null):(0,e.createElement)(e.RawHTML,{className:"ct-share-box","data-type":"type-3"},u)};function Yt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yt(Object(n),!0).forEach((function(t){Jt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Jt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Qt=He("share_box");var en=(0,o.withColors)({initialColor:"color"},{hoverColor:"color"},{backgroundColor:"color"},{backgroundHoverColor:"color"},{borderColor:"color"},{borderHoverColor:"color"})((function(n){let{attributes:r,setAttributes:i,clientId:a,className:l,initialColor:c,setInitialColor:s,hoverColor:u,setHoverColor:p,backgroundColor:d,setBackgroundColor:m,backgroundHoverColor:g,setBackgroundHoverColor:h,borderColor:b,setBorderColor:v,borderHoverColor:y,setBorderHoverColor:w}=n;const{items_spacing:O="",share_icons_size:_="",share_type:E="simple",share_icons_fill:P="outline",share_icons_color:C="default"}=r,k=(0,e.useRef)(),j=(0,o.useBlockProps)({ref:k,className:{"ct-shares-block":!0,className:l},style:Xt(Xt({"--theme-icon-color":null==c?void 0:c.color,"--theme-icon-hover-color":null==u?void 0:u.color,"--background-color":"solid"===P?null==d?void 0:d.color:null==b?void 0:b.color,"--background-hover-color":"solid"===P?null==g?void 0:g.color:null==y?void 0:y.color},_?{"--theme-icon-size":`${_}px`}:{}),O?{"--items-spacing":`${O}px`}:{})});return(0,e.createElement)("div",j,(0,e.createElement)(Kt,{attributes:r,setAttributes:i}),(0,e.createElement)(Qe,{attributes:r,setAttributes:i,options:Qt}),"default"===C?(0,e.createElement)(o.InspectorControls,{group:"styles"},(0,e.createElement)(f,{label:(0,t.__)("Icon Color","blocksy"),resetAll:function(){s(Ut.initialColor),p(Ut.hoverColor)},panelId:a,settings:[{colorValue:c.color,enableAlpha:!0,label:(0,t.__)("Initial","blocksy"),onColorChange:function(e){return s(e||Ut.initialColor)}},{colorValue:u.color,enableAlpha:!0,label:(0,t.__)("Hover","blocksy"),onColorChange:function(e){return p(e||Ut.hoverColor)}}]}),"simple"!==E&&("solid"===P?(0,e.createElement)(f,{label:(0,t.__)("Icons Background Colors","blocksy"),resetAll:function(){m(Ut.backgroundColor),h(Ut.backgroundHoverColor)},panelId:a,settings:[{colorValue:d.color,enableAlpha:!0,label:(0,t.__)("Initial","blocksy"),onColorChange:function(e){return m(e||Ut.backgroundColor)}},{colorValue:g.color,enableAlpha:!0,label:(0,t.__)("Hover","blocksy"),onColorChange:function(e){return h(e||Ut.backgroundHoverColor)}}]}):(0,e.createElement)(f,{label:(0,t.__)("Icons Border Colors","blocksy"),resetAll:function(){v(Ut.borderColor),w(Ut.borderHoverColor)},panelId:a,settings:[{colorValue:b.color,enableAlpha:!0,label:(0,t.__)("Initial","blocksy"),onColorChange:function(e){return v(e||Ut.borderColor)}},{colorValue:y.color,enableAlpha:!0,label:(0,t.__)("Hover","blocksy"),onColorChange:function(e){return w(e||Ut.borderHoverColor)}}]}))):null)}));function tn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tn(Object(n),!0).forEach((function(t){rn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const on=He("share_box"),an=ze(on);(0,r.registerBlockType)("blocksy/share-box",{apiVersion:3,title:(0,t.__)("Share Box Controls","blocksy"),icon:{src:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:"wc-block-editor-components-block-icon"},(0,e.createElement)("path",{d:"M20 14.6c-.2-.3-.5-.6-.9-.8.1-1.2-.1-2.4-.6-3.5s-1.3-2.1-2.3-2.9c-.4-.3-.8-.5-1.3-.8 0-.6-.2-1.2-.5-1.6-.3-.5-.8-.9-1.4-1.1-1-.4-2.4-.1-3.2.8-.5.5-.8 1.2-.8 2-1 .4-1.8 1-2.5 1.8-.8 1-1.4 2.1-1.6 3.3-.1.6-.1 1.3-.1 2-.7.4-1.2 1-1.4 1.7-.3 1.2.1 2.4 1 3.2s2.3.8 3.3.2c.9.6 1.9 1.1 3 1.2.4.1.8.1 1.2.1.9 0 1.9-.2 2.7-.5.5-.2.9-.5 1.4-.8.2.1.4.2.7.3 1.1.3 2.4-.1 3.1-1 .1-.1.2-.3.3-.4v-.1c.7-.9.6-2.2-.1-3.1zm-9.6-8.1c0-.1 0-.2.1-.3 0 0 0-.1.1-.2 0-.1.1-.2.2-.3l.1-.1s.1-.1.1-.2h.1s.1 0 .1-.1c0 0 .1 0 .1-.1h.1c.1 0 .2-.1.3-.1h.7c.1 0 .1 0 .2.1.1 0 .1.1.2.1 0 0 .1 0 .1.1 0 0 .1 0 .1.1l.1.1.2.2v.1l.1.1s0 .1.1.1V7c0 .1 0 .2-.1.3 0 0 0 .1-.1.1 0 0 0 .1-.1.1 0 0-.1.1-.1.2l-.1.1-.1.1h-.1c-.1 0-.1.1-.2.1h-.2c-.1 0-.2.1-.3.1h-1l.1-.1s-.1 0-.1-.1l-.1-.1-.1-.1-.1-.1v-.1l-.1-.1s0-.1-.1-.1v-.1c0-.1-.1-.2-.1-.3V6.6c-.1 0-.1 0-.1-.1zM8 16.6c0 .1-.1.3-.1.4 0 .1-.1.1-.1.2s-.1.1-.1.1l-.1.1-.3.3-.1.1H7v.1c-.1 0-.2.1-.3.1h-.8c-.1 0-.2 0-.3-.1 0 0-.1 0-.1-.1 0 0-.1 0-.1-.1l-.1-.1h-.1l-.1-.1-.1-.1v-.1c.1-.1 0-.2-.1-.3v-.2c0-.1 0-.2-.1-.2V16.3c0-.1 0-.2.1-.2 0 0 0-.1.1-.2 0-.1.1-.2.1-.2l.1-.1.2-.2.1-.1c.1 0 .1-.1.2-.1h.2c.1 0 .2-.1.3-.1h.6c.1 0 .1 0 .2.1l.3-.2s.1 0 .1.1l.2.2c0 .1.1.1.1.1 0 .1.1.1.1.2v.1c.1.2.2.3.2.5v.4c0-.1 0 0 0 0zm7.1 1.4c-.3.2-.5.3-.8.4h-.1l-.2.1c-.1 0-.3.1-.4.1-.3.1-.5.1-.8.2H11.1l-.2-.1c-.1 0-.3-.1-.4-.1-.3-.1-.5-.2-.8-.3-.1-.1-.2-.1-.3-.2-.1-.1-.3-.1-.4-.2 0 .2 0 .1-.1.1.5-.8.6-1.9.3-2.7-.3-.6-.7-1.1-1.2-1.4-.5-.3-1.1-.5-1.7-.4v-1c0-.3.1-.5.2-.8 0-.1.1-.3.1-.4l.1-.3c.1-.2.2-.5.4-.7.1-.1.1-.2.2-.3l.1-.1.1-.1c.1-.4.3-.6.5-.8l.3-.3.1-.1.1-.1c.2-.1.5-.3.7-.4 0 0 .1 0 .1-.1 0 0 0 .1.1.1.3.5.7.9 1.3 1.2.6.3 1.2.4 1.9.3.9-.1 1.7-.8 2.2-1.6.2.1.4.3.7.5l.2.1c.1.1.2.2.3.2.2.2.4.4.5.6l.1.1s0 .1.1.1c.1.1.2.2.2.3.1.2.3.4.4.7 0 .1.1.1.1.2v.1c0 .1.1.2.1.4.1.3.1.5.2.8v1.3c-.4 0-.8 0-1.1.1-1.2.4-2.1 1.6-2 2.9 0 .6.2 1.1.5 1.6zm1.7-3.3zm2.4 1.8v.2c0 .1 0 .2-.1.3v.1c0 .1 0 .1-.1.1 0 0-.1.1-.1.2l-.2.2-.1.1c-.1.1-.2.1-.3.2h-.1c-.1 0-.2.1-.3.1h-.7c-.1 0-.2-.1-.3-.2h-.1l-.1-.1-.1-.1c-.1-.1-.1-.2-.2-.3v-.2c0-.1-.1-.2-.1-.4v-.4c0-.1 0-.2.1-.3l.1-.2v-.1c0-.1.1-.2.2-.3l.1-.1.1-.1c.1-.1.2-.1.3-.2h.2c.1 0 .2-.1.3-.1H18.7c.1 0 .2.1.3.2l.1.1.2.2c.1.1.1.2.2.3v.2c0 .1.1.2.1.3v.1c-.4 0-.4.1-.4.2z"}))},supports:{html:!1,multiple:!1,inserter:!1,lock:!1},parent:["blocksy/widgets-wrapper"],attributes:nn(nn({},an),$t),edit:function(t){return(0,e.createElement)(en,t)},save:function(){return(0,e.createElement)("div",null,"Blocksy: Share Box")}}),wp.blocks.registerBlockVariation("blocksy/widgets-wrapper",{name:"blocksy-share-box",title:(0,t.__)("Share Box","blocksy"),attributes:{heading:(0,t.__)("Share Box","blocksy"),block:"blocksy/share-box"},isActive:function(e){return"blocksy/share-box"===e.block},icon:{src:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:"wc-block-editor-components-block-icon"},(0,e.createElement)("path",{d:"M20 14.6c-.2-.3-.5-.6-.9-.8.1-1.2-.1-2.4-.6-3.5s-1.3-2.1-2.3-2.9c-.4-.3-.8-.5-1.3-.8 0-.6-.2-1.2-.5-1.6-.3-.5-.8-.9-1.4-1.1-1-.4-2.4-.1-3.2.8-.5.5-.8 1.2-.8 2-1 .4-1.8 1-2.5 1.8-.8 1-1.4 2.1-1.6 3.3-.1.6-.1 1.3-.1 2-.7.4-1.2 1-1.4 1.7-.3 1.2.1 2.4 1 3.2s2.3.8 3.3.2c.9.6 1.9 1.1 3 1.2.4.1.8.1 1.2.1.9 0 1.9-.2 2.7-.5.5-.2.9-.5 1.4-.8.2.1.4.2.7.3 1.1.3 2.4-.1 3.1-1 .1-.1.2-.3.3-.4v-.1c.7-.9.6-2.2-.1-3.1zm-9.6-8.1c0-.1 0-.2.1-.3 0 0 0-.1.1-.2 0-.1.1-.2.2-.3l.1-.1s.1-.1.1-.2h.1s.1 0 .1-.1c0 0 .1 0 .1-.1h.1c.1 0 .2-.1.3-.1h.7c.1 0 .1 0 .2.1.1 0 .1.1.2.1 0 0 .1 0 .1.1 0 0 .1 0 .1.1l.1.1.2.2v.1l.1.1s0 .1.1.1V7c0 .1 0 .2-.1.3 0 0 0 .1-.1.1 0 0 0 .1-.1.1 0 0-.1.1-.1.2l-.1.1-.1.1h-.1c-.1 0-.1.1-.2.1h-.2c-.1 0-.2.1-.3.1h-1l.1-.1s-.1 0-.1-.1l-.1-.1-.1-.1-.1-.1v-.1l-.1-.1s0-.1-.1-.1v-.1c0-.1-.1-.2-.1-.3V6.6c-.1 0-.1 0-.1-.1zM8 16.6c0 .1-.1.3-.1.4 0 .1-.1.1-.1.2s-.1.1-.1.1l-.1.1-.3.3-.1.1H7v.1c-.1 0-.2.1-.3.1h-.8c-.1 0-.2 0-.3-.1 0 0-.1 0-.1-.1 0 0-.1 0-.1-.1l-.1-.1h-.1l-.1-.1-.1-.1v-.1c.1-.1 0-.2-.1-.3v-.2c0-.1 0-.2-.1-.2V16.3c0-.1 0-.2.1-.2 0 0 0-.1.1-.2 0-.1.1-.2.1-.2l.1-.1.2-.2.1-.1c.1 0 .1-.1.2-.1h.2c.1 0 .2-.1.3-.1h.6c.1 0 .1 0 .2.1l.3-.2s.1 0 .1.1l.2.2c0 .1.1.1.1.1 0 .1.1.1.1.2v.1c.1.2.2.3.2.5v.4c0-.1 0 0 0 0zm7.1 1.4c-.3.2-.5.3-.8.4h-.1l-.2.1c-.1 0-.3.1-.4.1-.3.1-.5.1-.8.2H11.1l-.2-.1c-.1 0-.3-.1-.4-.1-.3-.1-.5-.2-.8-.3-.1-.1-.2-.1-.3-.2-.1-.1-.3-.1-.4-.2 0 .2 0 .1-.1.1.5-.8.6-1.9.3-2.7-.3-.6-.7-1.1-1.2-1.4-.5-.3-1.1-.5-1.7-.4v-1c0-.3.1-.5.2-.8 0-.1.1-.3.1-.4l.1-.3c.1-.2.2-.5.4-.7.1-.1.1-.2.2-.3l.1-.1.1-.1c.1-.4.3-.6.5-.8l.3-.3.1-.1.1-.1c.2-.1.5-.3.7-.4 0 0 .1 0 .1-.1 0 0 0 .1.1.1.3.5.7.9 1.3 1.2.6.3 1.2.4 1.9.3.9-.1 1.7-.8 2.2-1.6.2.1.4.3.7.5l.2.1c.1.1.2.2.3.2.2.2.4.4.5.6l.1.1s0 .1.1.1c.1.1.2.2.2.3.1.2.3.4.4.7 0 .1.1.1.1.2v.1c0 .1.1.2.1.4.1.3.1.5.2.8v1.3c-.4 0-.8 0-1.1.1-1.2.4-2.1 1.6-2 2.9 0 .6.2 1.1.5 1.6zm1.7-3.3zm2.4 1.8v.2c0 .1 0 .2-.1.3v.1c0 .1 0 .1-.1.1 0 0-.1.1-.1.2l-.2.2-.1.1c-.1.1-.2.1-.3.2h-.1c-.1 0-.2.1-.3.1h-.7c-.1 0-.2-.1-.3-.2h-.1l-.1-.1-.1-.1c-.1-.1-.1-.2-.2-.3v-.2c0-.1-.1-.2-.1-.4v-.4c0-.1 0-.2.1-.3l.1-.2v-.1c0-.1.1-.2.2-.3l.1-.1.1-.1c.1-.1.2-.1.3-.2h.2c.1 0 .2-.1.3-.1H18.7c.1 0 .2.1.3.2l.1.1.2.2c.1.1.1.2.2.3v.2c0 .1.1.2.1.3v.1c-.4 0-.4.1-.4.2z"}))}});var ln=function(t){let{attributes:{has_field_link:n},postId:r,postType:o}=t;const[i="",a,l]=(0,F.useEntityProp)("postType",o,"title",r);return i?"yes"===n?(0,e.createElement)("a",{href:"#",rel:"noopener noreferrer"},i):i:null};const cn=function(e){if(!e)return"";const t=(new window.DOMParser).parseFromString(e,"text/html");return t.body.textContent||t.body.innerText||""};var sn=function(t){let{attributes:{excerpt_length:n},postId:r,postType:o,fallback:i}=t;const[a,l,{rendered:c,protected:s}={}]=(0,F.useEntityProp)("postType",o,"excerpt",r),[u,p,{rendered:d}={}]=(0,F.useEntityProp)("postType",o,"content",r),f=(a||cn(c)||cn(d)).trim();let m=f.split(" ",n).join(" ");const g=m!==f?"...":"";return m?(0,e.createElement)(e.RawHTML,null,m,g):i},un=n(2476);var pn=function(t){let{postId:n,postType:r,attributes:{date_type:o,default_format:i,date_format:a,custom_date_format:l,has_field_link:c}}=t;const[s]=(0,F.useEntityProp)("postType",r,"published"===o?"date":"modified",n),u="yes"===i?(0,un.getSettings)().formats.date:"custom"!==a?a:l;let p=(0,e.createElement)("span",null,(0,un.format)(u,s));return c&&(p=(0,e.createElement)("a",{href:"#"},p)),p},dn=window.wp.apiFetch,fn=n.n(dn),mn=window.wp.url;const gn={};var hn=function(t){let{postId:n}=t;const[r,o]=(0,e.useState)(null);return(0,e.useEffect)((function(){gn[n]&&o(gn[n]),gn[n]||fn()({path:(0,mn.addQueryArgs)("/wp/v2/comments",{post:n,_fields:"id"}),method:"HEAD",parse:!1}).then((function(e){const t={total:parseInt(e.headers.get("X-WP-Total"))};o(t),gn[n]=t}))}),[n]),{commentsData:r}};var bn=function(t){let{postId:n,postType:r,attributes:{has_field_link:o,zero_text:i,single_text:a,multiple_text:l}}=t;const{commentsData:c}=hn({postId:n}),s=c&&c.total?c.total:0,u=0===s?i:1===s?a:l;return"yes"===o?(0,e.createElement)("a",{href:"#",rel:"noopener noreferrer"},u.replace("%",s)):u.replace("%",s)};const vn=function(e,t){switch(t){case"email":return(null==e?void 0:e.email)||"";case"nicename":case"display_name":return(null==e?void 0:e.nickname)||"";case"first_name":return(null==e?void 0:e.first_name)||"";case"last_name":return(null==e?void 0:e.last_name)||"";case"description":return(null==e?void 0:e.description)||""}};var yn=function(t){let{postId:n,postType:r,attributes:{has_field_link:o,author_field:a},fallback:l}=t;const{authorId:c,authorDetails:s}=(0,i.useSelect)((function(e){var t;const{getEditedEntityRecord:o,getUser:i,getUsers:a}=e(F.store),l=null===(t=o("postType",r,n))||void 0===t?void 0:t.author;return{authorId:l,authorDetails:l?i(l):null}}),[r,n]);return s?"yes"===o?(0,e.createElement)("a",{href:"#",rel:"noopener noreferrer"},vn(s,a)||l):vn(s,a)||l:null};function wn(){return wn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wn.apply(this,arguments)}var On=function(t){let{postId:n,postType:r,fallback:o,attributes:a,attributes:{has_field_link:l,taxonomy:c,separator:s}}=t;const u=V(r),{terms:p}=(0,i.useSelect)((function(e){return{terms:e("core").getEntityRecords("taxonomy",c||(u&&u.length>0?u[0].slug:""),{per_page:-1,post:n})||[]}}));if(0===p.length)return o;let d="span",f={};return"yes"===l&&(d="a",f.href="#",f.rel="noopener noreferrer"),p.map((function(t,n){return(0,e.createElement)(React.Fragment,null,(0,e.createElement)(d,wn({},f,{className:I()({[`ct-term-${t.id}`]:"yes"===a.termAccentColor},a.termClass),dangerouslySetInnerHTML:{__html:t.name}})),n!==p.length-1?s.replace(/ /g," "):"")}))};function _n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function En(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_n(Object(n),!0).forEach((function(t){Pn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_n(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Cn=function(){return(0,e.createElement)("span",{class:"ct-video-indicator"},(0,e.createElement)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"#fff"},(0,e.createElement)("path",{class:"ct-play-path",d:"M20,0C8.9,0,0,8.9,0,20s8.9,20,20,20s20-9,20-20S31,0,20,0z M16,29V11l12,9L16,29z"})))};var kn=function(t){let{postType:n,postId:r,attributes:a,attributes:{aspectRatio:l,width:c,height:s,imageAlign:u,has_field_link:p,sizeSlug:d,image_hover_effect:f,videoThumbnail:m}}=t;const[g,h]=(0,e.useState)(!1),b=(0,o.__experimentalUseBorderProps)(a),v=(0,o.useBlockProps)(En({className:I()("ct-dynamic-media wp-block-image",{[`align${u}`]:u},b.className),style:En(En({},b.style),{},{aspectRatio:l,width:c,height:s})},"none"!==f?{"data-hover":f}:{})),[y,w]=(0,F.useEntityProp)("postType",n,"featured_media",r),{media:O}=(0,i.useSelect)((function(e){const{getMedia:t}=e(F.store);return{media:y&&t(y,{context:"view"})}}),[y]),_=function(e,t){var n,r,o;return(null==e||null===(n=e.media_details)||void 0===n||null===(r=n.sizes)||void 0===r||null===(o=r[t])||void 0===o?void 0:o.source_url)||(null==e?void 0:e.source_url)}(O,d),E={height:l?"100%":s,width:!!l&&"100%",objectFit:!(!s&&!l)&&"cover"};if(!_)return(0,e.createElement)("figure",v,(0,e.createElement)("div",{className:"ct-dynamic-data-placeholder",style:En({},E)},(0,e.createElement)("svg",{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60",preserveAspectRatio:"none",class:"components-placeholder__illustration","aria-hidden":"true",focusable:"false",style:{"min-height":"200px",height:!!l&&"100%",width:!!l&&"100%"}},(0,e.createElement)("path",{"vector-effect":"non-scaling-stroke",d:"M60 60 0 0"}))));let P=(0,e.createElement)("img",{style:En({},E),src:_,onLoad:function(){return h(!0)},loading:"lazy"});return!p||O.has_video||"yes"===m||g||(P=(0,e.createElement)("a",{href:"#"},P)),(0,e.createElement)("figure",v,P,O.has_video&&"yes"===m?(0,e.createElement)(Cn,null):null)},jn=n(1649),Sn=n.n(jn);n(8975),Sn()(console.error);var xn,In,Dn,Nn,Tn=n(4942);xn={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},In=["(","?"],Dn={")":["("],":":["?","?:"]},Nn=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var An={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e<t},"<=":function(e,t){return e<=t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}};function Rn(e){var t=function(e){for(var t,n,r,o,i=[],a=[];t=e.match(Nn);){for(n=t[0],(r=e.substr(0,t.index).trim())&&i.push(r);o=a.pop();){if(Dn[n]){if(Dn[n][0]===o){n=Dn[n][1]||n;break}}else if(In.indexOf(o)>=0||xn[o]<xn[n]){a.push(o);break}i.push(o)}Dn[n]||a.push(n),e=e.substr(t.index+n.length)}return(e=e.trim())&&i.push(e),i.concat(a.reverse())}(e);return function(e){return function(e,t){var n,r,o,i,a,l,c=[];for(n=0;n<e.length;n++){if(a=e[n],i=An[a]){for(r=i.length,o=Array(r);r--;)o[r]=c.pop();try{l=i.apply(null,o)}catch(e){return e}}else l=t.hasOwnProperty(a)?t[a]:+a;c.push(l)}return c[0]}(t,e)}}var Mn={contextDelimiter:"",onMissingKey:null};function Bn(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},Mn)this.options[n]=void 0!==t&&n in t?t[n]:Mn[n]}function Fn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ln(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fn(Object(n),!0).forEach((function(t){(0,Tn.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Bn.prototype.getPluralForm=function(e,t){var n,r,o,i=this.pluralForms[e];return i||("function"!=typeof(o=(n=this.data[e][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(r=function(e){var t,n,r;for(t=e.split(";"),n=0;n<t.length;n++)if(0===(r=t[n].trim()).indexOf("plural="))return r.substr(7)}(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),o=function(e){var t=Rn(e);return function(e){return+t({n:e})}}(r)),i=this.pluralForms[e]=o),i(t)},Bn.prototype.dcnpgettext=function(e,t,n,r,o){var i,a,l;return i=void 0===o?0:this.getPluralForm(e,o),a=n,t&&(a=t+this.options.contextDelimiter+n),(l=this.data[e][a])&&l[i]?l[i]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===i?n:r)};var zn={"":{plural_forms:function(e){return 1===e?0:1}}},Hn=/^i18n\.(n?gettext|has_translation)(_|$)/,Vn=function(e,t,n){var r=new Bn({}),o=new Set,i=function(){o.forEach((function(e){return e()}))},a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";r.data[t]=Ln(Ln(Ln({},zn),r.data[t]),e),r.data[t][""]=Ln(Ln({},zn[""]),r.data[t][""])},l=function(e,t){a(e,t),i()},c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;return r.data[e]||a(void 0,e),r.dcnpgettext(e,t,n,o,i)},s=function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default"},u=function(e,t,r){var o=c(r,t,e);return n?(o=n.applyFilters("i18n.gettext_with_context",o,e,t,r),n.applyFilters("i18n.gettext_with_context_"+s(r),o,e,t,r)):o};if(e&&l(e,t),n){var p=function(e){Hn.test(e)&&i()};n.addAction("hookAdded","core/i18n",p),n.addAction("hookRemoved","core/i18n",p)}return{getLocaleData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return r.data[e]},setLocaleData:l,resetLocaleData:function(e,t){r.data={},r.pluralForms={},l(e,t)},subscribe:function(e){return o.add(e),function(){return o.delete(e)}},__:function(e,t){var r=c(t,void 0,e);return n?(r=n.applyFilters("i18n.gettext",r,e,t),n.applyFilters("i18n.gettext_"+s(t),r,e,t)):r},_x:u,_n:function(e,t,r,o){var i=c(o,void 0,e,t,r);return n?(i=n.applyFilters("i18n.ngettext",i,e,t,r,o),n.applyFilters("i18n.ngettext_"+s(o),i,e,t,r,o)):i},_nx:function(e,t,r,o,i){var a=c(i,o,e,t,r);return n?(a=n.applyFilters("i18n.ngettext_with_context",a,e,t,r,o,i),n.applyFilters("i18n.ngettext_with_context_"+s(i),a,e,t,r,o,i)):a},isRTL:function(){return"rtl"===u("ltr","text direction")},hasTranslation:function(e,t,o){var i,a,l=t?t+""+e:e,c=!(null===(i=r.data)||void 0===i||null===(a=i[null!=o?o:"default"])||void 0===a||!a[l]);return n&&(c=n.applyFilters("i18n.has_translation",c,e,t,o),c=n.applyFilters("i18n.has_translation_"+s(o),c,e,t,o)),c}}}(void 0,void 0,n(5224).defaultHooks);Vn.getLocaleData.bind(Vn),Vn.setLocaleData.bind(Vn),Vn.resetLocaleData.bind(Vn),Vn.subscribe.bind(Vn),Vn.__.bind(Vn),Vn._x.bind(Vn),Vn._n.bind(Vn),Vn._nx.bind(Vn),Vn.isRTL.bind(Vn),Vn.hasTranslation.bind(Vn);function Un(e){let{postId:t,postType:n}=e;const{authorDetails:r}=(0,i.useSelect)((function(e){var r;const{getEditedEntityRecord:o,getUser:i}=e(F.store),a=null===(r=o("postType",n,t))||void 0===r?void 0:r.author;return{authorDetails:a?i(a):null}}),[n,t]),a=null!=r&&r.avatar_urls?Object.values(r.avatar_urls):null,l=(null!=r&&r.avatar_urls&&Object.keys(r.avatar_urls),function(){const{avatarURL:e}=(0,i.useSelect)((function(e){const{getSettings:t}=e(o.store),{__experimentalDiscussionSettings:n}=t();return n}));return e}());return{src:a?a[a.length-1]:l}}function $n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$n(Object(n),!0).forEach((function(t){Wn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$n(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qn=function(t){let{postId:n,postType:r,attributes:i,attributes:{avatar_size:a,imageAlign:l,has_field_link:c}}=t;const s=(0,o.useBlockProps)({className:I()("ct-dynamic-media wp-block-image",{[`align${l}`]:l}),style:{}}),u=(0,o.__experimentalUseBorderProps)(i),p=Un({postId:n,postType:r});const d=(0,mn.addQueryArgs)((0,mn.removeQueryArgs)(p.src,["s"]),{s:2*a}),f=Gn({},u.style);let m=(0,e.createElement)("img",{style:Gn(Gn({},f),{},{width:`${a}px`,height:`${a}px`}),src:d,className:I()("avatar","avatar-"+a,"photo",u.className)});return c&&(m=(0,e.createElement)("a",{href:"#"},m)),(0,e.createElement)("figure",s,m)};function Zn(){return Zn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zn.apply(this,arguments)}function Kn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kn(Object(n),!0).forEach((function(t){Xn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Jn=function(n){let{fieldDescriptor:r,fieldsDescriptor:i,attributes:a,attributes:{align:l,tagName:c,before:s,after:u,fallback:p},postId:d,postType:f}=n;const m=(0,o.useBlockProps)({className:I()("ct-dynamic-data",{[`has-text-align-${l}`]:l})}),g=(0,o.__experimentalUseBorderProps)(a);let h=null;return"archive_title"===r.id&&(h=function(){return(0,t.__)("Archive Title","blocksy")}),"archive_description"===r.id&&(h=function(){return(0,t.__)("Archive Description","blocksy")}),"title"===r.id&&(h=ln),"excerpt"===r.id&&(h=sn),"date"===r.id&&(h=pn),"comments"===r.id&&(h=bn),"terms"===r.id&&(h=On),"author"===r.id&&(h=yn),h?(0,e.createElement)(c,Zn({},m,g,{style:Yn(Yn({},m.style||{}),g.style||{}),className:I()(m.className,g.className)}),i&&i.dynamic_styles&&(0,e.createElement)("style",null,i.dynamic_styles),s,(0,e.createElement)(h,{attributes:a,postId:d,postType:f,fallback:p}),u):null};var Qn=function(t){const{fieldDescriptor:n}=t;return"featured_image"===n.id?(0,e.createElement)(kn,t):"author_avatar"===n.id?(0,e.createElement)(qn,t):(0,e.createElement)(Jn,t)};function er(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?er(Object(n),!0).forEach((function(t){nr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):er(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nr(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const rr={};var or=function(t){let{postId:n,fieldDescriptor:r}=t;const[o,i]=(0,e.useState)(rr),a=(0,e.useMemo)((function(){return`${n}-${r.provider}-${r.id}`}),[n,r.provider,r.id]);return(0,e.useEffect)((function(){rr[a]||fetch(`${wp.ajax.settings.url}?action=blocksy_dynamic_data_block_custom_field_data`,{headers:{Accept:"application/json","Content-Type":"application/json"},method:"POST",body:JSON.stringify({post_id:n,field_provider:r.provider,field_id:r.id})}).then((function(e){return e.json()})).then((function(e){let{success:t,data:n}=e;t&&(rr[a]={value:n.field_data},i(tr(tr({},o),{},{[a]:{value:n.field_data}})))}))}),[n,r.provider,r.id,a,o]),{fieldData:o[a]?o[a]:null}};function ir(){return ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ir.apply(this,arguments)}function ar(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ar(Object(n),!0).forEach((function(t){cr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ar(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cr(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sr=function(t){let{fieldDescriptor:n,attributes:r,attributes:{align:i,tagName:a,before:l,after:c,fallback:s},fieldData:u}=t;const p=(0,o.useBlockProps)({className:I()("ct-dynamic-data",{[`has-text-align-${i}`]:i})}),d=(0,o.__experimentalUseBorderProps)(r);let f=!1,m=u.value||"";return m||(f=!0,m=s||""),!f&&m&&"string"==typeof m&&(m=l+m+c),(0,e.createElement)(a,ir({},p,d,{style:lr(lr({},p.style||{}),d.style||{}),className:I()(p.className,d.className),dangerouslySetInnerHTML:{__html:m}}))};function ur(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ur(Object(n),!0).forEach((function(t){dr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ur(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dr(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fr=function(t){let{fieldDescriptor:n,fieldData:r,attributes:i,attributes:{aspectRatio:a,width:l,height:c,imageAlign:s,has_field_link:u,image_hover_effect:p,sizeSlug:d}}=t;const f=(0,o.useBlockProps)(pr({className:I()("ct-dynamic-media wp-block-image",{[`align${s}`]:s}),style:{aspectRatio:a,width:l,height:c}},"none"!==p?{"data-hover":p}:{})),m=(0,o.__experimentalUseBorderProps)(i);let g=r.value.value.url;r.value.value.sizes[d]&&(g=r.value.value.sizes[d].url);const h=pr(pr({},m.style),{},{height:a?"100%":c,width:!!a&&"100%",objectFit:!(!c&&!a)&&"cover"});if(!g)return(0,e.createElement)("figure",f,(0,e.createElement)("div",{className:"ct-dynamic-data-placeholder",style:pr({},h)},(0,e.createElement)("svg",{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60",preserveAspectRatio:"none",class:"components-placeholder__illustration","aria-hidden":"true",focusable:"false",style:{"min-height":"200px",height:!!a&&"100%",width:!!a&&"100%"}},(0,e.createElement)("path",{"vector-effect":"non-scaling-stroke",d:"M60 60 0 0"}))));let b=(0,e.createElement)("img",{style:pr({},h),src:g,className:m.className});return(0,e.createElement)("figure",f,b)};var mr=function(t){let{fieldDescriptor:n,postId:r,postType:o,attributes:i}=t;const{fieldData:a}=or({postId:r,fieldDescriptor:n});return a?"image"===n.type?(0,e.createElement)(fr,{fieldData:a,fieldDescriptor:n,attributes:i}):(0,e.createElement)(sr,{fieldData:a,fieldDescriptor:n,attributes:i}):null};var gr=function(t){let{product:n}=t;return(0,e.createElement)(e.RawHTML,null,null==n?void 0:n.price_html)};var hr=function(e){let{product:n}=e;return null!=n&&n.is_in_stock?(0,t.__)("In Stock","blocksy-companion"):(0,t.__)("Out of Stock","blocksy-companion")};var br=function(n){let{product:r}=n;const o=parseFloat(null==r?void 0:r.average_rating)/5*100+"%";return(0,e.createElement)("div",{className:"star-rating",role:"img","aria-label":"Rated 2.15 out of 5"},(0,e.createElement)("span",{style:{width:o}},(0,t.sprintf)((0,t.__)("Rated %s out of 5","blocksy-companion"),null==r?void 0:r.average_rating)))};var vr=function(e){let{product:t}=e;return(null==t?void 0:t.sku)||""};const yr=["product","isLoading"];function wr(){return wr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wr.apply(this,arguments)}function Or(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Or(Object(n),!0).forEach((function(t){Er(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Or(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Er(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pr(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const Cr=function(t){let{fieldDescriptor:n,attributes:r,attributes:{align:i,tagName:a,before:l,after:c,fallback:s},postId:u,postType:d}=t;const f=wc.wcBlocksSharedContext.useProductDataContext(),{product:m,isLoading:g}=f,h=(Pr(f,yr),(0,o.useBlockProps)({className:I()("ct-dynamic-data",{[`has-text-align-${i}`]:i})})),b=(0,o.__experimentalUseBorderProps)(r);if(g)return(0,e.createElement)(p.Spinner,null);let v=null;return"price"===n.id&&(v=gr),"stock_status"===n.id&&(v=hr),"rating"===n.id&&(v=br),"sku"===n.id&&(v=vr),v?(0,e.createElement)(a,wr({},h,b,{style:_r(_r({},h.style||{}),b.style||{}),className:I()(h.className,b.className)}),l,(0,e.createElement)(v,{attributes:r,postId:u,postType:d,fallback:s,product:m}),c):null};var kr=function(e){const{fieldDescriptor:t,postId:n}=e,{withProductDataContext:r}=wc.wcBlocksSharedHocs;return r(Cr)(_r(_r({},e),{},{productId:n}))};var jr=function(t){let{fieldDescriptor:n,fieldsDescriptor:r,postId:o,postType:i,attributes:a,attributes:{tagName:l,align:c,field:s,before:u,after:p,fallback:d}}=t;return"woo"===n.provider?(0,e.createElement)(kr,{fieldDescriptor:n,attributes:a,postId:o,postType:i}):"wp"===n.provider?(0,e.createElement)(Qn,{fieldsDescriptor:r,fieldDescriptor:n,attributes:a,postId:o,postType:i}):(0,e.createElement)(mr,{fieldDescriptor:n,attributes:a,postId:o,postType:i})};function Sr(t){let{level:n,isPressed:r=!1}=t;const o={h1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",h2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",h3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",h4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",h5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",h6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z",p:"M6.2 15V5h3.2c1.2 0 2 .1 2.4.2.6.2 1 .5 1.4 1 .4.5.6 1.1.6 1.9 0 .6-.1 1.1-.3 1.6-.2.4-.5.8-.9 1-.3.2-.7.4-1 .5-.5.1-1.2.1-2.1.1H8.2V15h-2zm2-8.3v2.8h1.1c.8 0 1.3 0 1.6-.2.3-.1.5-.3.6-.5.2-.2.2-.5.2-.8 0-.4-.1-.7-.3-.9-.2-.2-.5-.4-.8-.4-.2 0-.7-.1-1.5-.1.1.1-.9.1-.9.1z",span:"M8.2 12c.2 1 .9 1.4 2 1.4s1.6-.4 1.6-1.2c0-.8-.5-1.1-2.1-1.5-2.7-.6-3.3-1.5-3.3-2.9C6.4 6.2 7.6 5 9.9 5c2.6 0 3.6 1.4 3.7 2.8h-2.1c-.1-.6-.4-1.2-1.7-1.2-.9 0-1.4.4-1.4 1 0 .7.4.9 2 1.3 2.9.7 3.6 1.7 3.6 3.1 0 1.8-1.3 3-3.9 3-2.5 0-3.8-1.2-4-3h2.1z",div:"M5.8 5h3.7c.8 0 1.5.1 1.9.2.6.2 1.1.5 1.5.9.4.4.7 1 1 1.6.2.6.3 1.4.3 2.4 0 .8-.1 1.5-.3 2.1-.3.7-.6 1.3-1.1 1.8-.3.3-.8.6-1.4.8-.4.1-1 .2-1.8.2H5.8V5zm2 1.7v6.6h1.5c.6 0 1 0 1.2-.1.3-.1.6-.2.8-.4.2-.2.4-.5.5-1 .1-.4.2-1.1.2-1.8 0-.8-.1-1.4-.2-1.8-.1-.4-.3-.7-.6-1-.2-.2-.6-.4-.9-.5-.3-.1-.8-.1-1.6-.1l-.9.1z"};return o.hasOwnProperty(n)?(0,e.createElement)(p.SVG,{width:"24",height:"24",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",isPressed:r},(0,e.createElement)(p.Path,{d:o[n]})):null}function xr(n){let{tagName:r,onChange:o}=n;return(0,e.createElement)(p.ToolbarDropdownMenu,{popoverProps:{className:"block-library-heading-level-dropdown"},icon:(0,e.createElement)(Sr,{level:r}),label:(0,t.__)("Change heading level","blocksy"),controls:["h1","h2","h3","h4","h5","h6","p","span","div"].map((function(n){{const i=n===r;return{icon:(0,e.createElement)(Sr,{level:n,isPressed:i}),label:n,title:{h1:(0,t.__)("Heading 1","blocksy"),h2:(0,t.__)("Heading 2","blocksy"),h3:(0,t.__)("Heading 3","blocksy"),h4:(0,t.__)("Heading 4","blocksy"),h5:(0,t.__)("Heading 5","blocksy"),h6:(0,t.__)("Heading 6","blocksy"),p:(0,t.__)("Paragraph","blocksy"),span:(0,t.__)("Span","blocksy"),div:(0,t.__)("Div","blocksy")}[n],isActive:i,onClick(){o(n)},role:"menuitemradio"}}}))})}const Ir=function(e){return"wp"===e.provider?"featured_image"===e.id||"author_avatar"===e.id:"image"===e.type};function Dr(){return Dr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dr.apply(this,arguments)}var Nr=function(t){let{fieldDescriptor:n,attributes:r,attributes:{align:i,imageAlign:a},setAttributes:l}=t;return(0,e.createElement)(o.BlockControls,{group:"block"},Ir(n)?(0,e.createElement)(o.BlockAlignmentControl,Dr({},"wp"===n.provider&&"author_avatar"===n.id?{controls:["none","left","center","right"]}:{},{value:a,onChange:function(e){return l({imageAlign:e})}})):(0,e.createElement)(React.Fragment,null,(0,e.createElement)(o.AlignmentControl,{value:i,onChange:function(e){return l({align:e})}}),(0,e.createElement)(xr,{tagName:r.tagName,onChange:function(e){return l({tagName:e})}})))};function Tr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ar(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tr(Object(n),!0).forEach((function(t){Rr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Rr(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Mr=(0,Je.getOptionsForBlock)("dynamic-data"),Br=function(){const e=document.body.classList.contains("post-type-ct_content_block");return{provider:"wp",fields:[{id:"title",label:(0,t.__)("Title","blocksy")},{id:"excerpt",label:(0,t.__)("Excerpt","blocksy")},{id:"date",label:(0,t.__)("Post Date","blocksy")},{id:"comments",label:(0,t.__)("Comments","blocksy")},{id:"terms",label:(0,t.__)("Terms","blocksy")},{id:"author",label:(0,t.__)("Author","blocksy")},{id:"featured_image",label:(0,t.__)("Featured Image","blocksy")},{id:"author_avatar",label:(0,t.__)("Author Avatar","blocksy")},...e?[{id:"archive_title",label:(0,t.__)("Archive Title","blocksy")},{id:"archive_description",label:(0,t.__)("Archive Description","blocksy")}]:[]]}},Fr=function(){return void 0!==window.wc?[{provider:"woo",fields:[{id:"price",label:(0,t.__)("Price","blocksy")},{id:"rating",label:(0,t.__)("Rating","blocksy")},{id:"stock_status",label:(0,t.__)("Stock Status","blocksy")},{id:"sku",label:(0,t.__)("SKU","blocksy")}]}]:[]};let Lr={};const zr={};var Hr=function(n){let{postId:r,postType:o}=n;const[i,a]=(0,e.useState)({fields:[Br(),..."product"===o?Fr():[]]});(0,e.useEffect)((function(){!function(e,t,n){if(!zr[e])return Lr[e]?void Lr[e].push(n):(Lr[e]=[n],void fetch(`${wp.ajax.settings.url}?action=blocksy_blocks_retrieve_dynamic_data_descriptor`,{headers:{Accept:"application/json","Content-Type":"application/json"},method:"POST",body:JSON.stringify({post_id:e})}).then((function(e){return e.json()})).then((function(n){let{success:r,data:o}=n;const i=Ar(Ar({},o),{},{fields:[Br(),..."product"===t?Fr():[],...o.fields]});zr[e]=i,Lr[e].map((function(e){return e(i)}))})));n(zr[e])}(r,o,(function(e){a(e)}))}),[r,o]);const l=V(o);return{fieldsDescriptor:i,options:Mr,fieldsChoices:i.fields.reduce((function(e,n){return[...e,...n.fields.filter((function(e){return"wp"!==n.provider||"terms"!==e.id||l&&l.length>0})).map((function(e){return{group:(r=n.provider,{wp:"WordPress",woo:"WooCommerce",acf:"ACF",metabox:"MetaBox",custom:(0,t.__)("Custom","blocksy"),toolset:"Toolset",jetengine:"Jet Engine",pods:"Pods"}[r]||(0,t.__)("Unknown","blocksy")),key:`${n.provider}:${e.id}`,value:e.label};var r}))]}),[])}};var Vr=function(n){let{clientId:r,attributes:{aspectRatio:a,width:l,height:c,sizeSlug:s},setAttributes:u}=n;const d=(0,i.useSelect)((function(e){return e(o.store).getSettings().imageSizes}),[]).map((function(e){let{name:t,slug:n}=e;return{value:n,label:t}})),f=(0,p.__experimentalUseCustomUnits)({availableUnits:(0,o.useSetting)("spacing.units")||["px","%","vw","em","rem"]}),m=function(e,t){const n=parseFloat(t);isNaN(n)&&t||u({[e]:n<0?"0":t})};return(0,e.createElement)(p.__experimentalToolsPanel,{label:(0,t.__)("Image Settings","blocksy"),resetAll:function(){u({aspectRatio:"auto",width:void 0,height:void 0,sizeSlug:void 0})}},(0,e.createElement)(p.__experimentalToolsPanelItem,{hasValue:function(){return!!a},label:(0,t.__)("Aspect Ratio","blocksy"),onDeselect:function(){return u({aspectRatio:void 0})},resetAllFilter:function(){return{aspectRatio:"auto"}},isShownByDefault:!0,key:r},(0,e.createElement)(p.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,t.__)("Aspect Ratio","blocksy"),value:a,options:[{label:(0,t.__)("Original","blocksy"),value:"auto"},{label:(0,t.__)("Square","blocksy"),value:"1"},{label:(0,t.__)("16:9","blocksy"),value:"16/9"},{label:(0,t.__)("4:3","blocksy"),value:"4/3"},{label:(0,t.__)("3:2","blocksy"),value:"3/2"},{label:(0,t.__)("9:16","blocksy"),value:"9/16"},{label:(0,t.__)("3:4","blocksy"),value:"3/4"},{label:(0,t.__)("2:3","blocksy"),value:"2/3"}],onChange:function(e){return u({aspectRatio:e})}})),(0,e.createElement)(p.__experimentalToolsPanelItem,{style:{"grid-column":"span 1 / auto"},hasValue:function(){return!!l},label:(0,t.__)("Width","blocksy"),onDeselect:function(){return u({width:void 0})},resetAllFilter:function(){return{width:void 0}},isShownByDefault:!0,key:r},(0,e.createElement)(p.__experimentalUnitControl,{label:(0,t.__)("Width","blocksy"),labelPosition:"top",value:l||"",min:0,onChange:function(e){return m("width",e)},units:f})),(0,e.createElement)(p.__experimentalToolsPanelItem,{style:{"grid-column":"span 1 / auto"},hasValue:function(){return!!c},label:(0,t.__)("Height","blocksy"),onDeselect:function(){return u({height:void 0})},resetAllFilter:function(){return{height:void 0}},isShownByDefault:!0,key:r},(0,e.createElement)(p.__experimentalUnitControl,{label:(0,t.__)("Height","blocksy"),labelPosition:"top",value:c||"",min:0,onChange:function(e){return m("height",e)},units:f})),!!d.length&&(0,e.createElement)(p.__experimentalToolsPanelItem,{hasValue:function(){return!!s},label:(0,t.__)("Resolution","blocksy"),onDeselect:function(){return u({sizeSlug:void 0})},resetAllFilter:function(){return{sizeSlug:void 0}},isShownByDefault:!1,key:r},(0,e.createElement)(p.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,t.__)("Resolution","blocksy"),value:s||"full",options:d,onChange:function(e){return u({sizeSlug:e})},help:(0,t.__)("Select the size of the source image.","blocksy")})))};function Ur(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ur(Object(n),!0).forEach((function(t){Gr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ur(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gr(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Wr=function(n){let{fieldDescriptor:r,fieldsDescriptor:i,attributes:a,setAttributes:l,options:c,fieldsChoices:s,clientId:u,taxonomies:d}=n;return(0,e.createElement)(React.Fragment,null,(0,e.createElement)(o.InspectorControls,null,(0,e.createElement)(p.PanelBody,null,(0,e.createElement)(Je.OptionsPanel,{purpose:"gutenberg",onChange:function(e,t){l({[e]:t})},options:$r($r({field:{type:"ct-select",label:(0,t.__)("Content Source","blocksy"),value:"",defaultToFirstItem:!1,choices:s,purpose:"default"}},"wp:terms"===a.field&&d&&d.length>0?{taxonomy:{type:"ct-select",label:(0,t.__)("Taxonomy","blocksy"),value:"",design:"inline",purpose:"default",choices:d.map((function(e){let{name:t,slug:n}=e;return{key:n,value:t}}))}}:{}),c),value:$r($r({},a),i&&i.has_taxonomies_customization?{has_taxonomies_customization:"yes"}:{}),hasRevertButton:!1}),Ir(r)&&"wp:author_avatar"!==a.field&&(0,e.createElement)(Je.OptionsPanel,{purpose:"gutenberg",onChange:function(e,t){l({[e]:t})},options:$r($r({lightbox:{type:"ct-switch",label:(0,t.__)("Expand on click","blocksy"),value:"no"}},"wp:featured_image"===a.field?{videoThumbnail:{type:"ct-switch",label:(0,t.__)("Video Thumbnail","blocksy"),value:"no"}}:{}),{},{image_hover_effect:{label:(0,t.__)("Hover Effect","blocksy"),type:"ct-select",value:"none",view:"text",design:"inline",choices:{none:(0,t.__)("None","blocksy"),"zoom-in":(0,t.__)("Zoom In","blocksy"),"zoom-out":(0,t.__)("Zoom Out","blocksy")}}}),value:a,hasRevertButton:!1})),Ir(r)&&"wp:author_avatar"!==a.field&&(0,e.createElement)(React.Fragment,null,(0,e.createElement)(Vr,{clientId:u,attributes:a,setAttributes:l}),(0,e.createElement)(p.PanelBody,null,(0,e.createElement)(p.TextareaControl,{label:(0,t.__)("Alternative Text","blocksy"),value:a.alt_text||"",onChange:function(e){l({alt_text:e})},help:(0,e.createElement)(React.Fragment,null,(0,e.createElement)(p.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},(0,t.__)("Describe the purpose of the image.","blocksy")),(0,e.createElement)("br",null),(0,t.__)("Leave empty if decorative.","blocksy")),__nextHasNoMarginBottom:!0}))),"wp:author_avatar"===a.field&&(0,e.createElement)(p.PanelBody,null,(0,e.createElement)(p.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,t.__)("Image size","blocksy"),onChange:function(e){return l({avatar_size:e})},min:5,max:500,initialPosition:null==a?void 0:a.avatar_size,value:null==a?void 0:a.avatar_size})),!Ir(r)&&(0,e.createElement)(p.PanelBody,null,(0,e.createElement)(Je.OptionsPanel,{purpose:"gutenberg",onChange:function(e,t){l({[e]:t})},options:$r({before:{type:"text",label:(0,t.__)("Before","blocksy"),value:""},after:{type:"text",label:(0,t.__)("After","blocksy"),value:""}},"wp"!==r.provider||"wp"===r.provider&&("excerpt"===r.id||"terms"===r.id||"author"===r.id)?{fallback:{type:"text",label:(0,t.__)("Fallback","blocksy"),value:(0,t.__)("Custom field fallback","blocksy")}}:{}),value:a,hasRevertButton:!1}))),"wp:terms"===a.field&&(0,e.createElement)(o.InspectorControls,{group:"advanced"},(0,e.createElement)(p.TextControl,{__nextHasNoMarginBottom:!0,autoComplete:"off",label:(0,t.__)("Term additional class","blocksy"),value:a.termClass,onChange:function(e){l({termClass:e})},help:(0,t.__)("Additional class for term items. Useful for styling.","blocksy")})))};function qr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qr(Object(n),!0).forEach((function(t){Kr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kr(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Yr=function(t){let{clientId:n,attributes:r,setAttributes:o,context:i}=t;const{postId:a,postType:l}=i,{fieldsDescriptor:c,options:s,fieldsChoices:u}=Hr({postId:a,postType:l}),p=V(l),d=(0,e.useMemo)((function(){if(!r.field||!c)return null;const[e,t]=r.field.split(":"),n=c.fields.find((function(t){let{provider:n}=t;return n===e}));if(!n)return null;const o=n.fields.find((function(e){let{id:n}=e;return n===t}));return o?Zr(Zr({},o),{},{provider:n.provider}):null}),[r.field,c]);return(0,e.useEffect)((function(){"wp:terms"===r.field&&p&&0===p.length&&o({field:"wp:title"})}),[p,r.field]),d?(0,e.createElement)(React.Fragment,null,(0,e.createElement)(Nr,{fieldDescriptor:d,attributes:r,setAttributes:o}),(0,e.createElement)(jr,{attributes:r,postId:a,postType:l,fieldsDescriptor:c,fieldDescriptor:d}),(0,e.createElement)(Wr,{options:s,fieldDescriptor:d,attributes:r,setAttributes:o,fieldsChoices:u,clientId:n,fieldsDescriptor:c,taxonomies:p})):null},Xr=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"blocksy/dynamic-data","category":"blocksy-blocks","attributes":{"tagName":{"type":"string","default":"div"},"field":{"type":"string","default":"wp:title"},"before":{"type":"string","default":""},"after":{"type":"string","default":""},"fallback":{"type":"string","default":""},"align":{"type":"string"},"imageAlign":{"type":"string"},"aspectRatio":{"type":"string","default":"auto"},"width":{"type":"string"},"height":{"type":"string"},"sizeSlug":{"type":"string"},"alt_text":{"type":"string","default":""},"avatar_size":{"type":"number","default":96},"avatarIsLink":{"type":"boolean","default":false},"avatarLinkTarget":{"type":"string","default":"_self"},"featuredIsLink":{"type":"boolean","default":false},"featuredLinkTarget":{"type":"string","default":"_self"},"taxonomy":{"type":"string","default":""},"lightbox":{"type":"string","default":"no"},"videoThumbnail":{"type":"string","default":"no"},"image_hover_effect":{"type":"string","default":"none"},"termClass":{"type":"string","default":""},"termAccentColor":{"type":"string","default":"yes"}},"supports":{"className":false,"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"__experimentalBorder":{"color":true,"radius":true,"width":true,"__experimentalDefaultControls":{"color":true,"radius":true,"width":true},"__experimentalSelector":"img, .block-editor-media-placeholder, .wp-block-post-featured-image__overlay","__experimentalSkipSerialization":true},"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"text":true,"background":true,"link":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalTextDecoration":true,"__experimentalFontStyle":true,"__experimentalFontWeight":true,"__experimentalLetterSpacing":true,"__experimentalTextTransform":true,"__experimentalDefaultControls":{"fontSize":true}}},"usesContext":["postId","postType","queryId"]}');function Jr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jr(Object(n),!0).forEach((function(t){eo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function eo(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const to=(0,Je.getOptionsForBlock)("dynamic-data"),no=(0,Je.getAttributesFromOptions)(to);(0,r.registerBlockType)("blocksy/dynamic-data",Qr(Qr({},Xr),{},{title:(0,t.__)("Dynamic Data","blocksy"),description:(0,t.__)("Insert dynamic data anywhere you might want.","blocksy"),attributes:Qr(Qr({},Xr.attributes),no),icon:{src:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)("path",{d:"M17.9 10.5c-.1-.3-.4-.4-.7-.4h-3.7V4.6c0-.4-.2-.7-.6-.8h-.2c-.3 0-.5.1-.7.4l-5.7 8.6c-.2.3-.2.6 0 .8 0 .2.3.4.6.4h3.7v5.5c0 .4.2.7.6.8h.2c.3 0 .5-.1.7-.4l5.7-8.6c.2-.2.2-.6.1-.8zm-5.9 7v-4.4c0-.3-.3-.6-.6-.6H7.9l4.1-6v4.4c0 .3.3.6.6.6h3.5l-4.1 6z"}))},edit:function(t){return(0,e.createElement)(Yr,t)},save:function(){return null},__experimentalLabel:function(e){return"wp:title"===e.field?(0,t.__)("Dynamic Title","blocksy"):"wp:excerpt"===e.field?(0,t.__)("Dynamic Excerpt","blocksy"):"wp:date"===e.field?(0,t.__)("Dynamic Post Date","blocksy"):"wp:comments"===e.field?(0,t.__)("Dynamic Comments","blocksy"):"wp:terms"===e.field?(0,t.__)("Dynamic Terms","blocksy"):"wp:author"===e.field?(0,t.__)("Dynamic Author","blocksy"):"wp:featured_image"===e.field?(0,t.__)("Dynamic Featured Image","blocksy"):"wp:author_avatar"===e.field?(0,t.__)("Dynamic Author Avatar","blocksy"):"woo:price"===e.field?(0,t.__)("Dynamic Price","blocksy"):"woo:stock_status"===e.field?(0,t.__)("Dynamic Stock Status","blocksy"):"woo:sku"===e.field?(0,t.__)("Dynamic SKU","blocksy"):"woo:rating"===e.field?(0,t.__)("Dynamic Rating","blocksy"):(0,t.__)("Dynamic Data","blocksy")}}));const ro={inputFontColor:"",customInputFontColor:"",inputFontColorFocus:"",customInputFontColorFocus:"",inputIconColor:"",customInputIconColor:"",inputIconColorFocus:"",customInputIconColorFocus:"",inputBorderColor:"",customInputBorderColor:"",inputBorderColorFocus:"",customInputBorderColorFocus:"",inputBackgroundColor:"",customInputBackgroundColor:"",inputBackgroundColorFocus:"",customInputBackgroundColorFocus:"",buttonBackgroundColor:"",customButtonBackgroundColor:"",buttonBackgroundColorHover:"",customButtonBackgroundColorHover:"",dropdownTextInitialColor:"",customDropdownTextInitialColor:"",dropdownTextHoverColor:"",customDropdownTextHoverColor:"",dropdownBackgroundColor:"",customDropdownBackgroundColor:"",shadowColor:"",customShadowColor:""},oo=$e(ro);function io(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ao(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?io(Object(n),!0).forEach((function(t){lo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):io(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lo(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const co=ao({enable_live_results:"no",live_results_images:"yes",searchBoxHeight:"",searchProductPrice:"no",searchProductStatus:"no",search_box_placeholder:(0,t.__)("Search","blocksy"),taxonomy_filter_label:(0,t.__)("Select category","blocksy"),search_through:{post:!0,page:!0,product:!0,custom:!0},taxonomy_filter_visibility:{desktop:!0,tablet:!0,mobile:!1}},ro);var so=function(t){let{attributes:n,setAttributes:r,buttonStyles:i}=t;const[a,l]=(0,e.useState)(!1),{search_box_button_text:c,search_box_placeholder:s,taxonomy_filter_label:u,buttonPosition:d,has_taxonomy_filter:f,buttonUseText:m}=n,g=(0,e.useRef)({taxonomy:"",icon:""}),h=(0,e.useCallback)((function(e){const t=document.createElement("div");t.innerHTML=e;const n=t.querySelector('[type="search"]');n&&n.setAttribute("placeholder",s);return t.querySelector(".ct-search-box").style="",t.querySelector(".ct-select-taxonomy")&&(g.current=ao(ao({},g.current),{},{taxonomy:t.querySelector(".ct-select-taxonomy").outerHTML})),t.querySelector(".ct-icon")&&(g.current=ao(ao({},g.current),{},{icon:t.querySelector(".ct-icon").outerHTML})),t.innerHTML}),[s,d,i]),{isLoading:b}=Ue("search",ao(ao({},n),co),h);return(0,e.useEffect)((function(){l(!0),setTimeout((function(){l(!1)}),100)}),[n]),b?(0,e.createElement)(p.Spinner,null):(0,e.createElement)("form",{role:"search",method:"get",className:"ct-search-form","data-form-controls":d,"data-taxonomy-filter":"yes"===f?"true":"false","data-submit-button":"yes"===m?"text":"icon","data-updating":a?"yes":"no"},(0,e.createElement)("input",{type:"search",value:s,onChange:function(e){r({search_box_placeholder:e.target.value})},placeholder:"Search",name:"s",autocomplete:"off",title:"Search for...","aria-label":"Search for..."}),(0,e.createElement)("div",{className:"ct-search-form-controls"},"yes"===f?(0,e.createElement)("span",{className:"ct-fake-select-container"},(0,e.createElement)("select",{className:"ct-select-taxonomy"}),(0,e.createElement)(o.RichText,{tagName:"span",className:"ct-fake-select",value:u,placeholder:"Select Category",allowedFormats:[],onChange:function(e){return r({taxonomy_filter_label:e})}})):null,(0,e.createElement)("div",{className:"wp-element-button","data-button":`${d}:${"yes"===m?"text":"icon"}`,"aria-label":"Search button",style:i},"yes"===m?(0,e.createElement)(o.RichText,{tagName:"span",value:c,placeholder:"Search",allowedFormats:[],onChange:function(e){return r({search_box_button_text:e})}}):(0,e.createElement)(e.RawHTML,null,g.current.icon),(0,e.createElement)("span",{className:"ct-ajax-loader"},(0,e.createElement)("svg",{viewBox:"0 0 24 24"},(0,e.createElement)("circle",{cx:"12",cy:"12",r:"10",opacity:"0.2",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"2"}),(0,e.createElement)("path",{d:"m12,2c5.52,0,10,4.48,10,10",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"2"},(0,e.createElement)("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",dur:"0.6s",from:"0 12 12",to:"360 12 12",repeatCount:"indefinite"})))))))};const uo=(0,e.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(p.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"9.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}),(0,e.createElement)(p.Rect,{x:"16",y:"10",width:"4",height:"4",rx:"1",fill:"currentColor"})),po=(0,e.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(p.Rect,{x:"4.75",y:"7.75",width:"14.5",height:"8.5",rx:"1.25",stroke:"currentColor",fill:"none",strokeWidth:"1.5"}),(0,e.createElement)(p.Rect,{x:"8",y:"11",width:"8",height:"2",fill:"currentColor"}));function fo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fo(Object(n),!0).forEach((function(t){go(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function go(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ho=(0,o.withColors)({textColor:"color"},{inputFontColor:"color"},{inputFontColorFocus:"color"},{inputIconColor:"color"},{inputIconColorFocus:"color"},{inputBorderColor:"color"},{inputBorderColorFocus:"color"},{inputBackgroundColor:"color"},{inputBackgroundColorFocus:"color"},{buttonBackgroundColor:"color"},{buttonBackgroundColorHover:"color"},{dropdownTextInitialColor:"color"},{dropdownTextHoverColor:"color"},{dropdownBackgroundColor:"color"},{shadowColor:"color"})((function(n){var r,i;let{attributes:a,setAttributes:l,clientId:c,className:s,inputFontColor:u,setInputFontColor:d,inputFontColorFocus:m,setInputFontColorFocus:g,inputIconColor:h,setInputIconColor:b,inputIconColorFocus:v,setInputIconColorFocus:y,inputBorderColor:w,setInputBorderColor:O,inputBorderColorFocus:_,setInputBorderColorFocus:E,inputBackgroundColor:P,setInputBackgroundColor:C,inputBackgroundColorFocus:k,setInputBackgroundColorFocus:j,buttonBackgroundColor:S,setButtonBackgroundColor:x,buttonBackgroundColorHover:I,setButtonBackgroundColorHover:D,dropdownTextInitialColor:N,setDropdownTextInitialColor:T,dropdownTextHoverColor:A,setDropdownTextHoverColor:R,dropdownBackgroundColor:M,setDropdownBackgroundColor:B,shadowColor:F,setShadowColor:L}=n;const{buttonUseText:z="no",buttonPosition:H,enable_live_results:V}=a,U=null==a||null===(r=a.style)||void 0===r||null===(i=r.border)||void 0===i?void 0:i.radius,$=(0,e.useRef)(),G=(0,o.useBlockProps)({ref:$,className:{"ct-search-box":!0,className:s},style:mo(mo(mo({"--theme-form-text-initial-color":null==u?void 0:u.color,"--theme-form-text-focus-color":null==m?void 0:m.color,"--theme-form-field-border-initial-color":null==w?void 0:w.color,"--theme-form-field-border-focus-color":null==_?void 0:_.color,"--theme-form-field-background-initial-color":null==P?void 0:P.color,"--theme-form-field-background-focus-color":null==k?void 0:k.color},U?{"--theme-form-field-border-radius":`${"string"==typeof U?U:`${U.topLeft} ${U.topRight} ${U.bottomLeft} ${U.bottomRight}`}`}:{}),null!=a&&a.searchBoxHeight?{"--theme-form-field-height":`${a.searchBoxHeight}px`}:{}),"yes"===V?{"--theme-link-initial-color":null==N?void 0:N.color,"--theme-link-hover-color":null==A?void 0:A.color,"--search-dropdown-background":null==M?void 0:M.color,"--search-dropdown-box-shadow-color":null==F?void 0:F.color}:{})});return(0,e.createElement)("div",G,(0,e.createElement)(so,{blockProps:G,attributes:a,setAttributes:l,buttonStyles:mo(mo(mo({},null!=h&&h.color?{"--theme-button-text-initial-color":h.color}:{}),null!=v&&v.color?{"--theme-button-text-hover-color":v.color}:{}),"outside"===H?mo(mo({},null!=S&&S.color?{"--theme-button-background-initial-color":S.color}:{}),null!=I&&I.color?{"--theme-button-background-hover-color":I.color}:{}):{})}),(0,e.createElement)(Qe,{attributes:a,setAttributes:l,options:wo}),(0,e.createElement)(o.BlockControls,null,(0,e.createElement)(p.ToolbarGroup,null,(0,e.createElement)(p.ToolbarButton,{title:(0,t.__)("Button Outside"),icon:uo,onClick:function(){l({buttonPosition:"outside"===H?"inside":"outside"})},className:"outside"===H?"is-pressed":void 0}),(0,e.createElement)(p.ToolbarButton,{title:(0,t.__)("Use button with text"),icon:po,onClick:function(){l({buttonUseText:"no"===z?"yes":"no"})},className:"yes"===z?"is-pressed":void 0}))),(0,e.createElement)(o.InspectorControls,{group:"styles"},(0,e.createElement)(f,{label:(0,t.__)("Input Font Color","blocksy"),resetAll:function(){d(ro.inputFontColor),g(ro.inputFontColorFocus)},panelId:c,settings:[{colorValue:u.color,label:(0,t.__)("Initial","blocksy"),onColorChange:function(e){return d(e||ro.inputFontColor)}},{colorValue:m.color,label:(0,t.__)("Focus","blocksy"),onColorChange:function(e){return g(e||ro.inputFontColorFocus)}}]}),(0,e.createElement)(f,{label:(0,t.__)("Input Border Color","blocksy"),resetAll:function(){O(ro.inputBorderColor),E(ro.inputBorderColorFocus)},panelId:c,settings:[{colorValue:w.color,label:(0,t.__)("Initial","blocksy"),onColorChange:function(e){return O(e||ro.inputBorderColor)}},{colorValue:_.color,label:(0,t.__)("Focus","blocksy"),onColorChange:function(e){return E(e||ro.inputBorderColorFocus)}}]}),(0,e.createElement)(f,{label:(0,t.__)("Input Background Color","blocksy"),resetAll:function(){C(ro.inputBackgroundColor),j(ro.inputBackgroundColorFocus)},panelId:c,settings:[{colorValue:P.color,label:(0,t.__)("Initial","blocksy"),onColorChange:function(e){return C(e||ro.inputBackgroundColor)}},{colorValue:k.color,label:(0,t.__)("Focus","blocksy"),onColorChange:function(e){return j(e||ro.inputBackgroundColorFocus)}}]}),(0,e.createElement)(f,{label:"yes"===z?(0,t.__)("Button Text Color","blocksy"):(0,t.__)("Button Icon Color","blocksy"),resetAll:function(){b(ro.inputIconColor),y(ro.inputIconColorFocus)},panelId:c,settings:[{colorValue:h.color,label:(0,t.__)("Initial","blocksy"),onColorChange:function(e){return b(e||ro.inputIconColor)}},{colorValue:v.color,label:(0,t.__)("Hover","blocksy"),onColorChange:function(e){return y(e||ro.inputIconColorFocus)}}]}),"outside"===H?(0,e.createElement)(f,{label:(0,t.__)("Button Background Color","blocksy"),resetAll:function(){x(ro.buttonBackgroundColor),D(ro.buttonBackgroundColorHover)},panelId:c,settings:[{colorValue:S.color,label:(0,t.__)("Initial","blocksy"),onColorChange:function(e){return x(e||ro.buttonBackgroundColor)}},{colorValue:I.color,label:(0,t.__)("Hover","blocksy"),onColorChange:function(e){return D(e||ro.buttonBackgroundColorHover)}}]}):null,"yes"===V?(0,e.createElement)(React.Fragment,null,(0,e.createElement)(f,{label:(0,t.__)("Dropdown Text Color","blocksy"),resetAll:function(){T(ro.dropdownTextInitialColor),R(ro.dropdownTextHoverColor)},panelId:c,settings:[{colorValue:N.color,label:(0,t.__)("Initial","blocksy"),onColorChange:function(e){return T(e||ro.dropdownTextInitialColor)}},{colorValue:A.color,label:(0,t.__)("Hover","blocksy"),onColorChange:function(e){return R(e||ro.dropdownTextHoverColor)}}]}),(0,e.createElement)(f,{label:(0,t.__)("Dropdown Background Color","blocksy"),resetAll:function(){B(ro.dropdownBackgroundColor)},panelId:c,settings:[{colorValue:M.color,label:(0,t.__)("Initial","blocksy"),onColorChange:function(e){return B(e||ro.dropdownBackgroundColor)}}]}),(0,e.createElement)(f,{label:(0,t.__)("Dropdown Shadow Color","blocksy"),resetAll:function(){L(ro.shadowColor)},panelId:c,settings:[{colorValue:F.color,enableAlpha:!0,label:(0,t.__)("Initial","blocksy"),onColorChange:function(e){return L(e||ro.shadowColor)}}]})):null))}));function bo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bo(Object(n),!0).forEach((function(t){yo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yo(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const wo=He("search"),Oo=ze(wo);(0,r.registerBlockType)("blocksy/search",{apiVersion:3,title:(0,t.__)("Advanced Search","blocksy"),description:(0,t.__)("Insert a search block anywhere on the site.","blocksy"),icon:{src:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:"wc-block-editor-components-block-icon"},(0,e.createElement)("path",{d:"m19.7 18.5-3-2.9c1-1.3 1.6-2.8 1.6-4.5 0-3.9-3.2-7.2-7.2-7.2S4 7.2 4 11.2s3.2 7.2 7.2 7.2c1.7 0 3.3-.6 4.5-1.6l3 3c.1.1.3.2.5.2s.4-.1.5-.2c.3-.4.3-1 0-1.3zM5.6 11.2c0-3.1 2.5-5.5 5.5-5.5s5.6 2.4 5.6 5.5-2.5 5.5-5.5 5.5-5.6-2.5-5.6-5.5z"}))},category:"blocksy-blocks",attributes:vo(vo({},Oo),oo),supports:{spacing:{margin:!0,__experimentalDefaultControls:{margin:!0}},__experimentalBorder:{color:!1,radius:!0,width:!1,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!1,radius:!0,width:!1}}},edit:function(t){return(0,e.createElement)(ho,t)},save:function(){return(0,e.createElement)("div",null,"Blocksy: Search Block")}})}()}();
Note: See TracChangeset for help on using the changeset viewer.