!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=19)}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.wp.i18n},function(e,t){e.exports=React},function(e,t){e.exports=ctEvents},function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(16)),a=r(n(17)),i=r(n(2)),s=r(n(18));let c=void 0,l=void 0,u=[],p=e=>"undefined"!=typeof window&&window.requestAnimationFrame(e),d=e=>"undefined"!=typeof window&&window.cancelAnimationFrame(e),h=void 0,f=()=>Date.now(),m=void 0,b=void 0;const y=(e,t)=>l={fn:e,transform:t},g=e=>u=e,v=e=>c=e,O=e=>h=e,j=e=>m=e,w=e=>b=e;var E=Object.freeze({get bugfixes(){return c},get applyAnimatedValues(){return l},get colorNames(){return u},get requestFrame(){return p},get cancelFrame(){return d},get interpolation(){return h},get now(){return f},get defaultElement(){return m},get createAnimatedStyle(){return b},injectApplyAnimatedValues:y,injectColorNames:g,injectBugfixes:v,injectInterpolation:O,injectFrame:(e,t)=>{var n=[e,t];return p=n[0],d=n[1],n},injectNow:e=>f=e,injectDefaultElement:j,injectCreateAnimatedStyle:w});class _{attach(){}detach(){}getValue(){}getAnimatedValue(){return this.getValue()}addChild(e){}removeChild(e){}getChildren(){return[]}}const k=e=>Object.keys(e).map(t=>e[t]);class x extends _{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 C extends x{constructor(){super(...arguments),this.payload=[],this.getAnimatedValue=()=>this.getValue(),this.attach=()=>this.payload.forEach(e=>e instanceof _&&e.addChild(this)),this.detach=()=>this.payload.forEach(e=>e instanceof _&&e.removeChild(this))}}class P extends x{constructor(){super(...arguments),this.payload={},this.getAnimatedValue=()=>this.getValue(!0),this.attach=()=>k(this.payload).forEach(e=>e instanceof _&&e.addChild(this)),this.detach=()=>k(this.payload).forEach(e=>e instanceof _&&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 _)&&(t[n]=r instanceof _?r[e?"getAnimatedValue":"getValue"]():r)}return t}}class S extends P{constructor(e){super(),!(e=e||{}).transform||e.transform instanceof _||(e=l.transform(e)),this.payload=e}}const D={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 M{static create(e,t,n){if("function"==typeof e)return e;if(h&&e.output&&"string"==typeof e.output[0])return h(e);if(Array.isArray(e))return M.create({range:e,output:t,extrapolate:n||"extend"});let r=e.output,o=e.range||[0,1],a=e.easing||(e=>e),i="extend",s=e.map;void 0!==e.extrapolateLeft?i=e.extrapolateLeft:void 0!==e.extrapolate&&(i=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=e);++n);return n-1}(e,o);return function(e,t,n,r,o,a,i,s,c){let l=c?c(e):e;if(ln){if("identity"===s)return l;"clamp"===s&&(l=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?l=-l:n===1/0?l-=t:l=(l-t)/(n-t);l=a(l),r===-1/0?l=-l:o===1/0?l+=r:l=l*(o-r)+r;return l}(e,o[t],o[t+1],r[t],r[t+1],a,i,c,s)}}}const V="[-+]?\\d*\\.?\\d+";function A(){return"\\(\\s*("+Array.prototype.slice.call(arguments).join(")\\s*,\\s*(")+")\\s*\\)"}const F=new RegExp("rgb"+A(V,V,V)),z=new RegExp("rgba"+A(V,V,V,V)),R=new RegExp("hsl"+A(V,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),L=new RegExp("hsla"+A(V,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",V)),T=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,U=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,N=/^#([0-9a-fA-F]{6})$/,I=/^#([0-9a-fA-F]{8})$/;function W(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 H(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,a=W(o,r,e+1/3),i=W(o,r,e),s=W(o,r,e-1/3);return Math.round(255*a)<<24|Math.round(255*i)<<16|Math.round(255*s)<<8}function B(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function $(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 K(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function G(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=N.exec(e))?parseInt(t[1]+"ff",16)>>>0:D.hasOwnProperty(e)?D[e]:(t=F.exec(e))?(B(t[1])<<24|B(t[2])<<16|B(t[3])<<8|255)>>>0:(t=z.exec(e))?(B(t[1])<<24|B(t[2])<<16|B(t[3])<<8|q(t[4]))>>>0:(t=T.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=I.exec(e))?parseInt(t[1],16)>>>0:(t=U.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=R.exec(e))?(255|H($(t[1]),K(t[2]),K(t[3])))>>>0:(t=L.exec(e))?(H($(t[1]),K(t[2]),K(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,J=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Z=new RegExp(`(${Object.keys(D).join("|")})`,"g");class Q extends C{constructor(e,t,n){super(),this.getValue=()=>this.calc(...this.payload.map(e=>e.getValue())),this.updateConfig=(e,t)=>this.calc=M.create(e,t),this.interpolate=(e,t)=>new Q(this,e,t),this.payload=e instanceof C&&!e.updateConfig?e.payload:Array.isArray(e)?e:[e],this.calc=M.create(t,n)}}class X extends x{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=()=>function e(t,n){"function"==typeof t.update?n.add(t):t.getChildren().forEach(t=>e(t,n))}(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 ee extends C{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 X(e))}}function te(e,t){return null==e?t:e}function ne(e){return void 0!==e?Array.isArray(e)?e:[e]:[]}function re(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 oe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;re[t])}function ie(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:a({},n,{[r]:e[r]}),{});return a({to:t},n)}function se(e,t){let n=t[0],r=t[1];return a({},e,{[n]:new(Array.isArray(r)?ee:X)(r)})}function ce(e){const t=e.from,n=e.to,r=e.native,o=Object.entries(a({},t,n));return r?o.reduce(se,{}):a({},t,n)}function le(e,t){return t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e}const ue=e=>"auto"===e;let pe={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 de=["Webkit","Ms","Moz","O"];function he(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}pe=Object.keys(pe).reduce((e,t)=>(de.forEach(n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t]),e),pe);const fe={};w(e=>new S(e)),j("div"),O((function(e){const t=e.output.map(e=>e.replace(J,G)).map(e=>e.replace(Z,G)),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)=>M.create(a({},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})`)}})),g(D),v((function(e,t){const n=e.from,r=e.to,o=e.children;if(!ae(r).some(ue)&&!ae(n).some(ue))return;let c=o(ce(e));if(!c)return;Array.isArray(c)&&(c={type:"div",props:{children:c}});const l=c.props.style;return i.createElement(c.type,a({key:c.key?c.key:void 0},c.props,{style:a({},l,{position:"absolute",visibility:"hidden"}),ref:o=>{if(o){let i,c,l=s.findDOMNode(o),u=getComputedStyle(l);if("border-box"===u.boxSizing)i=l.offsetWidth,c=l.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);i=l.offsetWidth-e-n,c=l.offsetHeight-t-r}const p=((e,t)=>(n,r)=>{let o=r[0],i=r[1];return a({},n,{[o]:"auto"===i?~o.indexOf("height")?t:e:i})})(i,c);t(a({},e,{from:Object.entries(n).reduce(p,n),to:Object.entries(r).reduce(p,r)}))}}}))})),y((e,t)=>{if(!e.nodeType||void 0===e.setAttribute)return!1;{const a=t.style,i=t.children,s=t.scrollTop,c=t.scrollLeft,l=o(t,["style","children","scrollTop","scrollLeft"]);void 0!==s&&(e.scrollTop=s),void 0!==c&&(e.scrollLeft=c),void 0!==i&&(e.textContent=i);for(let t in a)if(a.hasOwnProperty(t)){var n=0===t.indexOf("--"),r=he(t,a[t],n);"float"===t&&(t="cssFloat"),n?e.style.setProperty(t,r):e.style[t]=r}for(let t in l){const n=fe[t]||(fe[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase()));void 0!==e.getAttribute(n)&&e.setAttribute(n,l[t])}}},e=>e);let me=!1;const be=new Set,ye=()=>{let e=f();for(let t of be){let n=!0,r=!0;for(let o=0;o=t.startTime+s.delay+s.duration;else if(s.decay)p=l+h/(1-.998)*(1-Math.exp(-(1-.998)*(e-t.startTime))),a=Math.abs(c.lastPosition-p)<.1,a&&(u=p);else{i=void 0!==c.lastTime?c.lastTime:e,h=void 0!==c.lastVelocity?c.lastVelocity:s.initialVelocity,e>i+64&&(i=e);let t=Math.floor(e-i);for(let e=0;eu:p{be.has(e)&&be.delete(e)};class ve{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(a({},e,t))}update(e){this.props=a({},this.props,e);let t=this.props.interpolateTo?ie(this.props):this.props,n=t.from,r=void 0===n?{}:n,o=t.to,i=void 0===o?{}:o,s=t.config,c=void 0===s?{}:s,l=t.delay,p=void 0===l?0:l,d=t.reverse,h=t.attach,f=t.reset,m=t.immediate,b=t.autoStart,y=t.ref;if(d){var g=[i,r];r=g[0],i=g[1]}this.hasChanged=!1;let v=h&&h(this),O=f?{}:this.merged;if(this.merged=a({},r,O,i),this.animations=Object.entries(this.merged).reduce((e,t,n)=>{let o=t[0],i=t[1],s=!f&&e[o]||{};const l="number"==typeof i,d="string"==typeof i&&!i.startsWith("#")&&!/\d/.test(i)&&!u[i],h=!l&&!d&&Array.isArray(i);let b=void 0!==r[o]?r[o]:i,y=l||h||d?i:1,g=oe(c,o);if(v&&(y=v.animations[o].parent),void 0===g.decay&&re(s.changes,i))return e;{let t,n;if(this.hasChanged=!0,l||d)t=n=s.parent||new X(b);else if(h)t=n=s.parent||new ee(b);else{const e=s.interpolation&&s.interpolation.calc(s.parent.value);s.parent?(t=s.parent,t.setValue(0,!1)):t=new X(0);const r={output:[void 0!==e?e:b,i]};s.interpolation?(n=s.interpolation,s.interpolation.updateConfig(r)):n=t.interpolate(r)}oe(m,o)&&t.setValue(i,!1);const r=ne(t.getPayload());return r.forEach(e=>e.prepare(this)),a({},e,{[o]:a({},s,{name:o,parent:t,interpolation:n,animatedValues:r,changes:i,fromValues:ne(t.getValue()),toValues:ne(v?y.getPayload():y),immediate:oe(m,o),delay:te(g.delay,p||0),initialVelocity:te(g.velocity,0),clamp:te(g.clamp,!1),precision:te(g.precision,.01),tension:te(g.tension,170),friction:te(g.friction,26),mass:te(g.mass,1),duration:g.duration,easing:te(g.easing,e=>e),decay:g.decay})})}},this.animations),this.hasChanged){this.configs=ae(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 j=arguments.length,w=new Array(j>1?j-1:0),E=1;Ethis.resolve=e)}stop(e){void 0===e&&(e=!1),e&&ae(this.animations).forEach(e=>e.changes=void 0),this.debouncedOnEnd({finished:e})}destroy(){ge(this),this.props={},this.merged={},this.animations={},this.interpolations={},this.animatedProps={},this.configs=[]}debouncedOnEnd(e){ge(this),this.isActive=!1;const t=this.onEnd;this.onEnd=null,t&&t(e),this.resolve&&this.resolve(),this.resolve=null}}class Oe extends P{constructor(e,t){super(),e.style&&(e=a({},e,{style:b(e.style)})),this.payload=e,this.update=t,this.attach()}}function je(e){class t extends i.Component{constructor(e){super(),this.callback=()=>{if(this.node){!1===l.fn(this.node,this.propsAnimated.getAnimatedValue(),this)&&this.forceUpdate()}},this.attachProps(e)}componentWillUnmount(){this.propsAnimated&&this.propsAnimated.detach()}setNativeProps(e){!1===l.fn(this.node,e,this)&&this.forceUpdate()}attachProps(e){e.forwardRef;let t=o(e,["forwardRef"]);const n=this.propsAnimated;this.propsAnimated=new Oe(t,this.callback),n&&n.detach()}shouldComponentUpdate(e){const t=e.style,n=o(e,["style"]),r=this.props,a=r.style;return(!re(o(r,["style"]),n)||!re(a,t))&&(this.attachProps(e),!0)}render(){const t=this.propsAnimated.getValue(),n=(t.scrollTop,t.scrollLeft,o(t,["scrollTop","scrollLeft"]));return i.createElement(e,a({},n,{ref:e=>this.node=le(e,this.props.forwardRef)}))}}return i.forwardRef((e,n)=>i.createElement(t,a({},e,{forwardRef:n})))}const we={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 Ee extends i.Component{constructor(){super(...arguments),this.state={lastProps:{from:{},to:{}},propsChanged:!1,internal:!1},this.controller=new ve(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(a({},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=ce(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,a=e.to,i=e.reset,s=e.force;return{propsChanged:!re(a,r.to)||!re(o,r.from)||i&&!n||s&&!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=a({},this.controller.getValues(),this.afterInject);return this.finished&&(n=a({},n,this.props.after)),Object.keys(n).length?e(n):null}componentDidUpdate(){this.didUpdate&&this.start(),this.didUpdate=!1}}Ee.defaultProps={from:{},to:{},config:we.default,native:!1,immediate:!1,reset:!1,force:!1,inject:c};class _e extends i.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,s=void 0===r?{}:r,c=e.initial,l=e.reverse,u=e.keys,p=e.delay,d=e.onRest,h=o(e,["items","children","from","initial","reverse","keys","delay","onRest"]),f=ne(t);return ne(f).map((e,t)=>i.createElement(Ee,a({onRest:0===t?d:null,key:"function"==typeof u?u(e):ne(u)[t],from:this.first&&void 0!==c?c||{}:s},h,{delay:0===t&&p||void 0,attach:e=>this.hook(e,t,f.length,l),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()}}_e.defaultProps={keys:e=>e};class ke extends i.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,a=n.state;if((e.state!==this.props.state||this.props.reset&&!this.running||!re(r[a],e.states[e.state]))&&r&&a&&r[a]){const e=++this.guid,n=r[a];if(n)if(Array.isArray(n)){let t=Promise.resolve();for(let r=0;re===this.guid&&this.next(o(i),s,a))}}else if("function"==typeof n){let r=0;n((function(n,a){return void 0===a&&(a=!1),e===t.guid&&t.next(o(n),a,r++)}),()=>p(()=>this.instance&&this.instance.stop()),this.props)}else this.next(o(r[a]))}}render(){const e=this.state,t=e.props,n=e.resolve,r=e.last,s=e.index;if(!t||0===Object.keys(t).length)return null;let c=this.props,l=(c.state,c.filter,c.states,c.config),u=c.primitive,p=c.onRest,d=c.forwardRef,h=o(c,["state","filter","states","config","primitive","onRest","forwardRef"]);return Array.isArray(l)&&(l=l[s]),i.createElement(u,a({ref:e=>this.instance=le(e,d),config:l},h,t,{onRest:e=>{n(e),p&&r&&p(e)}}))}}ke.defaultProps={state:"__default"};const xe=i.forwardRef((e,t)=>i.createElement(ke,a({},e,{forwardRef:t})));xe.create=e=>function(t,n){return void 0===n&&(n=e=>e),("function"==typeof t||Array.isArray(t))&&(t={__default:t}),r=>i.createElement(ke,a({primitive:e,states:t,filter:n},r))},xe.Spring=e=>xe.create(Ee)(e,ie),xe.Trail=e=>xe.create(_e)(e,ie);let Ce=0,Pe=e=>{let t=e.items,n=e.keys,r=o(e,["items","keys"]);return t=ne(void 0!==t?t:null),n="function"==typeof n?t.map(n):ne(n),a({items:t,keys:n.map(e=>String(e))},r)};class Se extends i.PureComponent{componentDidMount(){this.mounted=!0}componentWillUnmount(){this.mounted=!1}constructor(e){super(e),this.destroyItem=(e,t,n)=>r=>{const o=this.props,a=o.onRest,i=o.onDestroyed;this.mounted&&(i&&i(e),this.setState(e=>({deleted:e.deleted.filter(e=>e.key!==t)})),a&&a(e,n,r))},this.state={first:!0,transitions:[],current:{},deleted:[],prevProps:e}}static getDerivedStateFromProps(e,t){let n=t.first,r=t.prevProps,i=o(t,["first","prevProps"]),s=Pe(e),c=s.items,l=s.keys,u=s.initial,p=s.from,d=s.enter,h=s.leave,f=s.update,m=s.trail,b=void 0===m?0:m,y=s.unique,g=s.config,v=Pe(r),O=v.keys,j=v.items,w=a({},i.current),E=[...i.deleted],_=Object.keys(w),k=new Set(_),x=new Set(l),C=l.filter(e=>!k.has(e)),P=i.transitions.filter(e=>!e.destroyed&&!x.has(e.originalKey)).map(e=>e.originalKey),S=l.filter(e=>k.has(e)),D=0;C.forEach(e=>{y&&E.find(t=>t.originalKey===e)&&(E=E.filter(t=>t.originalKey!==e));const t=l.indexOf(e),r=c[t];w[e]={state:"enter",originalKey:e,key:y?String(e):Ce++,item:r,trail:D+=b,config:oe(g,r,"enter"),from:oe(n&&void 0!==u?u||{}:p,r),to:oe(d,r)}}),P.forEach(e=>{const t=O.indexOf(e),n=j[t];E.push(a({},w[e],{state:"leave",destroyed:!0,left:O[Math.max(0,t-1)],right:O[Math.min(O.length,t+1)],trail:D+=b,config:oe(g,n,"leave"),to:oe(h,n)})),delete w[e]}),S.forEach(e=>{const t=l.indexOf(e),n=c[t];w[e]=a({},w[e],{item:n,state:"update",trail:D+=b,config:oe(g,n,"update"),to:oe(f,n)})});let M=l.map(e=>w[e]);return E.forEach(e=>{let t,n=e.left,r=e.right,a=o(e,["left","right"]);-1!==(t=M.findIndex(e=>e.originalKey===n))&&(t+=1),-1===t&&(t=M.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),M=[...M.slice(0,t),a,...M.slice(t)]}),{first:n&&0===C.length,transitions:M,current:w,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,s=(e.trail,e.config,e.children),c=(e.unique,e.reset),l=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,h=e.from,f=e.to,m=e.trail,b=e.config,y=e.destroyed;return i.createElement(xe,a({reset:c&&"enter"===u,primitive:Ee,state:u,filter:ie,states:{[u]:f},key:p,onRest:y?this.destroyItem(d,p,u):n&&(e=>n(d,u,e)),onStart:r&&(()=>r(d,u)),onFrame:t&&(e=>t(d,u,e)),delay:m,config:b},l,{from:h,children:e=>{const t=s(d,u,o);return t?t(e):null}}))})}}Se.defaultProps={keys:e=>e,unique:!1,reset:!1};const De=["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]=je(t),e),je);t.Spring=Ee,t.Keyframes=xe,t.Transition=Se,t.Trail=_e,t.Controller=ve,t.config=we,t.animated=De,t.interpolate=(e,t,n)=>e&&new Q(e,t,n),t.Globals=E},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,a,i,s){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,o,a,i,s],u=0;(c=new Error(t.replace(/%s/g,(function(){return l[u++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,n){var r; /*! Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t=0||(o[n]=e[n]);return o}n.r(t),n.d(t,"default",(function(){return r}))},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t{const{theme_name:e,theme_custom_description:t,dashboard_has_heading:n}=Object(r.useContext)(i);let o={content:null};return l.a.trigger("ct:dashboard:heading:after",o),Object(r.createElement)("div",null,Object(r.createElement)("h2",{onClick:e=>e.shiftKey&&l.a.trigger("ct:dashboard:heading:advanced-click")},"yes"===n&&Object(r.createElement)("svg",{width:"35",height:"35",viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("path",{d:"M25 0c13.807 0 25 11.193 25 25S38.807 50 25 50 0 38.807 0 25 11.193 0 25 0zm5.469 25.701a.246.246 0 00-.332 0L19.36 35.812c-.073.07-.021.188.083.188h10.085a.486.486 0 00.331-.129l4.73-4.438c.548-.515.548-1.351 0-1.867zm0-11a.246.246 0 00-.332 0l-12 11.259a.427.427 0 00-.137.311v8.374c0 .098.126.147.2.078l15.551-14.666c.55-.516.55-1.748 0-2.264zM28.279 14H18.233c-.129 0-.234.099-.234.22v9.425c0 .098.126.148.2.078l10.161-9.535c.074-.07.022-.188-.083-.188z",fill:"#23282D","fill-rule":"evenodd"})),e,"yes"===n&&o.content),Object(r.createElement)("p",null,t||Object(s.__)("The most innovative, lightning fast and super charged WordPress theme. Build visually your next web project in no time.","blocksy")))},p=n(2),d=n.n(p),h=(n(7),n(5)),f=n.n(h),m=n(8),b=n.n(m);function y(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function g(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function v(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}y.__suppressDeprecationWarning=!0,g.__suppressDeprecationWarning=!0,v.__suppressDeprecationWarning=!0;var O=function(e,t){return e.substr(0,t.length)===t},j=function(e,t){for(var n=void 0,r=void 0,o=t.split("?")[0],a=D(o),i=""===a[0],s=S(e),c=0,l=s.length;ct.score?-1:e.index-t.index}))},D=function(e){return e.replace(/(^\/+|\/+$)/g,"").split("/")},M=function(e,t){return e+(t?"?"+t:"")},V=["uri","path"],A=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},s=i.state,c=i.replace,l=void 0!==c&&c;if("number"==typeof t)e.history.go(t);else{s=A({},s,{key:Date.now()+""});try{o||l?e.history.replaceState(s,null,t):e.history.pushState(s,null,t)}catch(n){e.location[l?"replace":"assign"](t)}}r=F(e),o=!0;var u=new Promise((function(e){return a=e}));return n.forEach((function(e){return e({location:r,action:"PUSH"})})),u}}},R=!("undefined"==typeof window||!window.document||!window.document.createElement),L=z(R?window:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=e.indexOf("?"),n={pathname:t>-1?e.substr(0,t):e,search:t>-1?e.substr(t):""},r=0,o=[n],a=[null];return{get location(){return o[r]},addEventListener:function(e,t){},removeEventListener:function(e,t){},history:{get entries(){return o},get index(){return r},get state(){return a[r]},pushState:function(e,t,n){var i=n.split("?"),s=i[0],c=i[1],l=void 0===c?"":c;r++,o.push({pathname:s,search:l.length?"?"+l:l}),a.push(e)},replaceState:function(e,t,n){var i=n.split("?"),s=i[0],c=i[1],l=void 0===c?"":c;o[r]={pathname:s,search:l},a[r]=e},go:function(e){var t=r+e;t<0||t>a.length-1||(r=t)}}}}()),T=L.navigate,U=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function I(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function W(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function H(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var B=function(e,t){var n=b()(t);return n.displayName=e,n},$=B("Location"),q=function(e){var t=e.children;return d.a.createElement($.Consumer,null,(function(e){return e?t(e):d.a.createElement(K,null,t)}))},K=function(e){function t(){var n,r;I(this,t);for(var o=arguments.length,a=Array(o),i=0;i=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var be=()=>{const e=[],t=[],{theme_version:n}=Object(r.useContext)(i);l.a.trigger("ct:dashboard:navigation-links",e),l.a.trigger("ct:dashboard:end-navigation-links",t);ctDashboardLocalizations.plugin_data.hide_plugins_tab;return Object(r.createElement)("ul",{className:"dashboard-navigation"},Object(r.createElement)("li",null,Object(r.createElement)(oe,{to:"/"},Object(s.__)("Home","blocksy"))),e.map(e=>{let{path:t,text:n}=e,o=me(e,["path","text"]);return Object(r.createElement)("li",{key:t},Object(r.createElement)(oe,fe({to:t},o),n))}),!ctDashboardLocalizations.plugin_data.hide_plugins_tab&&Object(r.createElement)("li",null,Object(r.createElement)(oe,{to:"/plugins"},Object(s.__)("Useful Plugins","blocksy"))),!ctDashboardLocalizations.plugin_data.hide_changelogs_tab&&Object(r.createElement)("li",null,Object(r.createElement)(oe,{to:"/changelog"},Object(s.__)("Changelog","blocksy"),Object(r.createElement)("span",{className:"ct-version"},n))),t.map(e=>{let{path:t,text:n}=e,o=me(e,["path","text"]);return Object(r.createElement)("li",{key:t},Object(r.createElement)(oe,fe({to:t},o),n))}))},ye=n(6),ge=n.n(ye);var ve=()=>ctDashboardLocalizations.plugin_data.hide_support_section?null:Object(r.createElement)("div",{className:"ct-support-container"},Object(r.createElement)("h2",null,Object(s.__)("Need help or advice?","blocksy")),Object(r.createElement)("p",null,Object(s.__)("Got a question or need help with the theme? You can always submit a support ticket or ask for help in our friendly Facebook community.","blocksy")),Object(r.createElement)("a",{href:ctDashboardLocalizations.support_url,className:"ct-button","data-hover":"blue",target:"_blank"},Object(s.__)("Submit a Support Ticket","blocksy")),Object(r.createElement)("a",{href:"https://www.facebook.com/groups/blocksy.community",className:"ct-button","data-hover":"blue",target:"_blank"},Object(s.__)("Join Facebook Community","blocksy")));var Oe=()=>{const{is_companion_active:e,companion_download_link:t,child_download_link:n}=Object(r.useContext)(i);let o={content:null},a={content:null};return l.a.trigger("ct:dashboard:home:before",o),l.a.trigger("ct:dashboard:home:after",a),Object(r.createElement)("section",null,o.content,Object(r.createElement)("div",{className:"ct-first-steps-container"},Object(r.createElement)("h2",null,Object(s.__)("Customizer Shortcuts","blocksy")),Object(r.createElement)("ul",{className:"ct-first-steps"},Object(r.createElement)("li",null,Object(r.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},Object(r.createElement)("path",{d:"M15.8,5.9L10,0L4.2,5.9C1,9.1,1,14.3,4.2,17.6C5.8,19.2,7.9,20,10,20s4.2-0.8,5.8-2.4C19,14.3,19,9.1,15.8,5.9z M10,17.9c-1.6,0-3.2-0.6-4.4-1.8c-1.2-1.2-1.8-2.7-1.8-4.4s0.6-3.2,1.8-4.4L10,2.9V17.9z"})),Object(r.createElement)("h4",null,Object(s.__)("Color Options","blocksy")),Object(r.createElement)("p",null,Object(s.__)("Set the theme global colors, select the font, button and background colors.","blocksy")),Object(r.createElement)("a",{href:`${ctDashboardLocalizations.customizer_url}${encodeURI("[section]=color")}`,className:"ct-button"},Object(s.__)("Go to option","blocksy"))),Object(r.createElement)("li",null,Object(r.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},Object(r.createElement)("path",{d:"M20,17.5v-15C20,1.1,18.9,0,17.5,0h-15C1.1,0,0,1.1,0,2.5v15C0,18.9,1.1,20,2.5,20h15C18.9,20,20,18.9,20,17.5z M18.8,17.6c0,0.6-0.6,1.2-1.2,1.2h-15c-0.7,0-1.2-0.5-1.2-1.2V7h17.5V17.6z"})),Object(r.createElement)("h4",null,Object(s.__)("Header Options","blocksy")),Object(r.createElement)("p",null,Object(s.__)("Set the theme header type, set the colors, spacing, alignment and more.","blocksy")),Object(r.createElement)("a",{href:`${ctDashboardLocalizations.customizer_url}${encodeURI("[section]=header")}`,className:"ct-button","data-hover":"white"},Object(s.__)("Go to option","blocksy"))),Object(r.createElement)("li",null,Object(r.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},Object(r.createElement)("path",{d:"M18,0H5.3c-1.1,0-2,1.1-2,2.4V4H2C0.9,4,0,5.1,0,6.4v0.8v9.6v0.8C0,18.9,0.9,20,2,20h3.3h1.3H18c1.1,0,2-1.1,2-2.4V2.4C20,1.1,19.1,0,18,0zM3.3,16.8c0,0.4-0.3,0.8-0.7,0.8c-0.4,0-0.7-0.4-0.7-0.8V6.6c0-0.1,0.1-0.2,0.2-0.2h0.9c0.1,0,0.2,0.1,0.2,0.2V16.8z M18,17.4c0,0.1-0.1,0.2-0.2,0.2H5.2c0.1-0.3,0.1-0.5,0.1-0.8V7.2c0,0,0,0,0,0V2.6c0-0.1,0.1-0.2,0.2-0.2h12.3c0.1,0,0.2,0.1,0.2,0.2V17.4z M6.9,5.3c-0.1,0-0.2-0.1-0.2-0.2V3.5c0-0.1,0.1-0.2,0.2-0.2h9.6c0.1,0,0.2,0.1,0.2,0.2v1.6c0,0.1-0.1,0.2-0.2,0.2H6.9z M16.5,13.3c0.1,0,0.2-0.1,0.2-0.2V9.5c0-0.1-0.1-0.2-0.2-0.2h-4.3c-0.1,0-0.2,0.1-0.2,0.2v3.6c0,0.1,0.1,0.2,0.2,0.2H16.5zM10.7,7.3c0-0.4-0.3-0.7-0.7-0.7H7.3C7,6.7,6.7,7,6.7,7.3l0,0C6.7,7.7,7,8,7.3,8H10C10.4,8,10.7,7.7,10.7,7.3L10.7,7.3z M10.7,10c0-0.4-0.3-0.7-0.7-0.7H7.3C7,9.3,6.7,9.6,6.7,10l0,0c0,0.4,0.3,0.7,0.7,0.7H10C10.4,10.7,10.7,10.4,10.7,10L10.7,10z M16.7,7.3c0-0.4-0.3-0.7-0.7-0.7h-3.3C12.3,6.7,12,7,12,7.3l0,0C12,7.7,12.3,8,12.7,8H16C16.4,8,16.7,7.7,16.7,7.3L16.7,7.3z M10.7,15.3c0,0.4-0.3,0.7-0.7,0.7H7.3c-0.4,0-0.7-0.3-0.7-0.7l0,0c0-0.4,0.3-0.7,0.7-0.7H10C10.4,14.7,10.7,15,10.7,15.3L10.7,15.3zM16.7,15.3c0,0.4-0.3,0.7-0.7,0.7h-3.3c-0.4,0-0.7-0.3-0.7-0.7l0,0c0-0.4,0.3-0.7,0.7-0.7H16C16.4,14.7,16.7,15,16.7,15.3L16.7,15.3z M10.7,12.7c0-0.4-0.3-0.7-0.7-0.7H7.3c-0.4,0-0.7,0.3-0.7,0.7l0,0c0,0.4,0.3,0.7,0.7,0.7H10C10.4,13.3,10.7,13,10.7,12.7L10.7,12.7z"})),Object(r.createElement)("h4",null,Object(s.__)("Blog Options","blocksy")),Object(r.createElement)("p",null,Object(s.__)("Set the blog entries type, number of cards, spacing, colors and more.","blocksy")),Object(r.createElement)("a",{href:`${ctDashboardLocalizations.customizer_url}${encodeURI("[section]=blog_posts")}`,className:"ct-button","data-hover":"white"},Object(s.__)("Go to option","blocksy"))),Object(r.createElement)("li",null,Object(r.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},Object(r.createElement)("path",{d:"M18,2h-2v16h2c1.1,0,2-0.9,2-2V4C20,2.9,19.1,2,18,2z"}),Object(r.createElement)("path",{d:"M13.1,0H1.9C0.8,0,0,0.9,0,2v16c0,1.1,0.8,2,1.9,2h11.2c1,0,1.9-0.9,1.9-2V2C15,0.9,14.2,0,13.1,0zM13,16c0,0.5-0.5,1-1,1H3c-0.5,0-1-0.5-1-1v-2c0-0.5,0.5-1,1-1h9c0.5,0,1,0.5,1,1V16zM12.5,11h-10C2.2,11,2,10.8,2,10.5C2,10.2,2.2,10,2.5,10h10c0.3,0,0.5,0.2,0.5,0.5C13,10.8,12.8,11,12.5,11z M12.5,8h-10C2.2,8,2,7.8,2,7.5C2,7.2,2.2,7,2.5,7h10C12.8,7,13,7.2,13,7.5C13,7.8,12.8,8,12.5,8zM12.5,5h-10C2.2,5,2,4.8,2,4.5C2,4.2,2.2,4,2.5,4h10C12.8,4,13,4.2,13,4.5C13,4.8,12.8,5,12.5,5z"})),Object(r.createElement)("h4",null,Object(s.__)("Page Options","blocksy")),Object(r.createElement)("p",null,Object(s.__)("Set the page container width, spacing, sidebar and more.","blocksy")),Object(r.createElement)("a",{href:`${ctDashboardLocalizations.customizer_url}${encodeURI("[section]=single_pages")}`,className:"ct-button","data-hover":"white"},Object(s.__)("Go to option","blocksy"))),Object(r.createElement)("li",null,Object(r.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},Object(r.createElement)("path",{d:"M0,2.5l0,15C0,18.9,1.1,20,2.5,20h15c1.4,0,2.5-1.1,2.5-2.5v-15C20,1.1,18.9,0,17.5,0l-15,0C1.1,0,0,1.1,0,2.5z M2.4,1.1H13v17.5H2.4c-0.7,0-1.2-0.5-1.2-1.2v-15C1.2,1.8,1.8,1.2,2.4,1.1L2.4,1.1z"})),Object(r.createElement)("h4",null,Object(s.__)("Sidebar Options","blocksy")),Object(r.createElement)("p",null,Object(s.__)("Set the sidebar width, design type, spacing, colors.","blocksy")),Object(r.createElement)("a",{href:`${ctDashboardLocalizations.customizer_url}${encodeURI("[section]=sidebar")}`,className:"ct-button","data-hover":"white"},Object(s.__)("Go to option","blocksy"))),Object(r.createElement)("li",null,Object(r.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},Object(r.createElement)("path",{d:"M17.5,0h-15C1.1,0,0,1.1,0,2.5v15C0,18.9,1.1,20,2.5,20h15c1.4,0,2.5-1.1,2.5-2.5v-15C20,1.1,18.9,0,17.5,0z M18.8,13H1.2V2.4c0-0.6,0.6-1.2,1.2-1.2h15c0.7,0,1.2,0.5,1.2,1.2V13z"})),Object(r.createElement)("h4",null,Object(s.__)("Footer Options","blocksy")),Object(r.createElement)("p",null,Object(s.__)("Set the footer type, number of columns, spacing and colors.","blocksy")),Object(r.createElement)("a",{href:`${ctDashboardLocalizations.customizer_url}${encodeURI("[section]=footer")}`,className:"ct-button","data-hover":"white"},Object(s.__)("Go to option","blocksy")))),"yes"!==e&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)("h2",{className:"ct-downloads-heading"},Object(s.__)("Downloads","blocksy")),Object(r.createElement)("ul",{className:"ct-downloads"},Object(r.createElement)("li",null,Object(r.createElement)("a",{href:t,target:"_blank"},Object(r.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},Object(r.createElement)("path",{d:"M3.1,0c-0.4,0-0.8,0.2-1,0.6L0.2,3.9C0.1,4.1,0,4.2,0,4.4v13.3C0,19,1,20,2.2,20h15.6c1.2,0,2.2-1,2.2-2.2V4.4c0-0.2-0.1-0.4-0.2-0.6l-1.9-3.3c-0.2-0.3-0.6-0.6-1-0.6H3.1z M3.7,2.2h12.6l1.3,2.2H2.4L3.7,2.2z M2.2,6.7h15.6v11.1H2.2V6.7zM8.9,8.3v3.3H5.6l4.4,4.4l4.4-4.4h-3.3V8.3H8.9z"})),Object(r.createElement)("h3",null,Object(s.__)("Blocksy Companion","blocksy")),Object(r.createElement)("p",null,Object(s.__)("By downloading and installing this plugin you will have access to demo templates, extensions and a lot more stunning features.","blocksy")),Object(r.createElement)("span",{className:"ct-button"},Object(s.__)("Find out more","blocksy")))),Object(r.createElement)("li",null,Object(r.createElement)("a",{href:n},Object(r.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},Object(r.createElement)("path",{d:"M3.1,0c-0.4,0-0.8,0.2-1,0.6L0.2,3.9C0.1,4.1,0,4.2,0,4.4v13.3C0,19,1,20,2.2,20h15.6c1.2,0,2.2-1,2.2-2.2V4.4c0-0.2-0.1-0.4-0.2-0.6l-1.9-3.3c-0.2-0.3-0.6-0.6-1-0.6H3.1z M3.7,2.2h12.6l1.3,2.2H2.4L3.7,2.2z M2.2,6.7h15.6v11.1H2.2V6.7zM8.9,8.3v3.3H5.6l4.4,4.4l4.4-4.4h-3.3V8.3H8.9z"})),Object(r.createElement)("h3",null,Object(s.__)("Blocksy Child Theme","blocksy")),Object(r.createElement)("p",null,Object(s.__)("By using a child theme you can modify any file without the fear of breaking something in the parent theme.","blocksy")),Object(r.createElement)("span",{className:"ct-button"},Object(s.__)("Download now","blocksy"))))))),a.content,Object(r.createElement)(ve,null))};var je=e=>{let{status:t,plugin:n,onPluginsSync:o}=e;const[a,i]=Object(r.useState)(!1),c=async(e,t)=>{const n=new FormData;n.append("plugin",e),n.append("action",t),i(!0);try{await fetch(ctDashboardLocalizations.ajax_url,{method:"POST",body:n}),o()}catch(e){}i(!1)};return Object(r.createElement)("li",null,Object(r.createElement)("h4",{className:"ct-extension-title"},n.title,a&&Object(r.createElement)("svg",{width:"15",height:"15",viewBox:"0 0 100 100"},Object(r.createElement)("g",{transform:"translate(50,50)"},Object(r.createElement)("g",{transform:"scale(1)"},Object(r.createElement)("circle",{cx:"0",cy:"0",r:"50",fill:"#687c93"}),Object(r.createElement)("circle",{cx:"0",cy:"-26",r:"12",fill:"#ffffff",transform:"rotate(161.634)"},Object(r.createElement)("animateTransform",{attributeName:"transform",type:"rotate",calcMode:"linear",values:"0 0 0;360 0 0",keyTimes:"0;1",dur:"1s",begin:"0s",repeatCount:"indefinite"})))))),n.description&&Object(r.createElement)("div",{className:"ct-extension-description"},n.description),Object(r.createElement)("div",{className:"ct-extension-actions"},"activated"===t&&Object(r.createElement)("a",{onClick:()=>c(n.name,"premium_plugin_deactivate"),className:"ct-button"},Object(s.__)("Deactivate","blocksy")),"deactivated"===t&&Object(r.createElement)("a",{onClick:()=>c(n.name,"premium_plugin_activate"),className:"ct-button-primary"},Object(s.__)("Activate","blocksy")),"uninstalled"===t&&!n.comingsoon&&"link"!==n.type&&Object(r.createElement)("a",{onClick:()=>c(n.name,"premium_plugin_download"),className:"ct-button"},Object(s.__)("Install","blocksy")),"uninstalled"===t&&!n.comingsoon&&"link"===n.type&&Object(r.createElement)("a",{href:n.link,className:"ct-button",target:"_blank"},Object(s.__)("Download","blocksy")),"uninstalled"===t&&n.comingsoon&&Object(r.createElement)("span",{className:"ct-badge"},Object(s.__)("COMING SOON","blocksy"))))};let we=null,Ee=ctDashboardLocalizations.clean_install_plugins;var _e=()=>{const[e,t]=Object(r.useState)(!we),[n,o]=Object(r.useState)(we||[]),a=Object.values(Ee).map((e,t)=>(e.name=Object.keys(Ee)[t],e)),i=async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e&&t(!0);const n=new FormData;n.append("action","get_premium_plugins_status");try{const e=await fetch(ctDashboardLocalizations.ajax_url,{method:"POST",body:n});if(200===e.status){const{success:t,data:n}=await e.json();t&&(o(n),we=n)}}catch(e){}t(!1)};return Object(r.useEffect)(()=>{i(!we)},[]),Object(r.createElement)("div",null,Object(r.createElement)(he.Transition,{items:e,from:{opacity:0},enter:[{opacity:1}],leave:[{opacity:0}],initial:null,config:(e,t)=>"leave"===t?{duration:300}:{delay:300,duration:300}},e=>e?e=>Object(r.createElement)(he.animated.p,{style:e,className:"ct-loading-text"},Object(r.createElement)("span",null),Object(s.__)("Loading Plugins Status...","blocksy")):e=>Object(r.createElement)(he.animated.div,{style:e},a.length>0&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)("ul",{className:"ct-extensions-list"},a.map(e=>Object(r.createElement)(je,{plugin:e,key:e.name,onPluginsSync:()=>i(),status:(n.find(t=>{let{name:n}=t;return n===e.name})||{}).status}))),Object(r.createElement)(ve,null)))))},ke=n(9);let xe=null;const Ce=e=>{let{versionDescriptor:t}=e;const[n,...o]=t.descriptor.split(/\r?\n/);return Object(r.createElement)("section",null,Object(r.createElement)("h2",null,Object(s.sprintf)(Object(s.__)("Version: %s","blocksy"),t.version),Object(r.createElement)("span",null,Object(s.sprintf)(Object(s.__)("Released on %s","blocksy"),t.date))),Object(r.createElement)("div",{className:"ct-release-info",dangerouslySetInnerHTML:{__html:`
  • \n\n ${o.join("\n").trim().split("\n").map(e=>e.replace(/^-\s/,"")).map(e=>e.replace(/`(.*?)`/g,"$1")).join("
  • ")}\n
`.replace(/New:/g,'').replace(/Improvement:/g,'').replace(/Fix:/g,'')}}))};var Pe=()=>{const[e,t]=Object(r.useState)(!xe),[n,o]=Object(r.useState)(xe),[a,i]=Object(r.useState)(0);let c=!1;window.ctDashboardLocalizations&&window.ctDashboardLocalizations.plugin_data&&window.ctDashboardLocalizations.plugin_data.has_beta_consent&&(c=window.ctDashboardLocalizations.plugin_data.has_beta_consent);return Object(r.useEffect)(()=>{!async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e&&t(!0);const n=new FormData;n.append("action","get_latest_changelog");try{const e=await fetch(ctDashboardLocalizations.ajax_url,{method:"POST",body:n});if(200===e.status){const{success:t,data:n}=await e.json();t&&n.changelog&&(o(n.changelog),xe=n.changelog)}}catch(e){}t(!1)}(!xe)},[]),Object(r.createElement)("section",{className:"ct-changelog-wrapper"},Object(r.createElement)(he.Transition,{items:e,from:{opacity:0},enter:[{opacity:1}],leave:[{opacity:0}],initial:null,config:(e,t)=>"leave"===t?{duration:300}:{delay:300,duration:300}},e=>e?e=>Object(r.createElement)(he.animated.p,{className:"ct-loading-text",style:e},Object(r.createElement)("span",null),Object(s.__)("Loading changelog...","blocksy")):e=>Object(r.createElement)(he.animated.div,{style:e},Object(r.createElement)("div",{className:ge()("changelog-info",{"has-sources":n&&n.length>1})},n&&n.length>1&&Object(r.createElement)("ul",{className:"changelog-sources"},n.map((e,t)=>{let{title:n}=e;return Object(r.createElement)("li",{className:ge()({active:t===a}),onClick:()=>i(t),key:n},n)})),Object(r.createElement)("ul",{className:"changelog-explanation"},Object(r.createElement)("li",null,Object(r.createElement)("span",{className:"new"})," ",Object(s.__)("New","blocksy")),Object(r.createElement)("li",null,Object(r.createElement)("span",{className:"fix"})," ",Object(s.__)("Fix","blocksy")),Object(r.createElement)("li",null,Object(r.createElement)("span",{className:"improvement"}),Object(s.__)("Update","blocksy")))),Object(r.createElement)("div",{className:"changelog-items"},n[a].changelog?function(e){let{hasBetas:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.replace(/\r/g,"").replace(/(\r\n|\r|\n){3,}/g,"$1\n\n").split("\n\n").map(e=>{let[t,n]=e.split(/\r?\n/)[0].split(":");return{version:t,date:Object(ke.dateI18n)("F j, Y",new Date(n.trim())),descriptor:e}}).filter(e=>{let{version:n}=e;return!!t||-1===n.indexOf("beta")}).filter(e=>{let{version:n}=e;return!!t||3===n.split(".").length})}(n[a].changelog,{hasBetas:c}).map(e=>Object(r.createElement)(Ce,{key:e.version,versionDescriptor:e})):Object(s.__)("No changelog present at the moment.","blocksy")))))};function Se(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 De(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Fe(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{let{children:t}=e;return Object(r.createElement)(q,null,e=>{let{location:n,navigate:o}=e;return Object(r.createElement)(he.Transition,{items:n,initial:null,immediate:(n.state||{}).hasNoChange,keys:e=>e.pathname,from:{opacity:0},enter:[{opacity:1}],leave:[{opacity:0}],config:(e,t)=>"leave"===t?{duration:300}:{delay:300,duration:300}},e=>n=>Object(r.createElement)(he.animated.div,{style:ze({},n)},Object(r.createElement)(Y,{primary:!1,location:e,navigate:o},t)))})};class Ue extends r.Component{render(){const e=[];return l.a.trigger("ct:dashboard:routes",e),Object(r.createElement)(K,{history:Le},Object(r.createElement)(a,{value:ze(ze(ze({},{theme_version:"1.0.0",theme_name:"Word"}),ctDashboardLocalizations),{},{Link:oe,Location:q,navigate:T,Match:le})},Object(r.createElement)("header",null,Object(r.createElement)(u,null),Object(r.createElement)(be,null)),Object(r.createElement)("section",null,Object(r.createElement)(Te,{primary:!1,className:"router"},Object(r.createElement)(Oe,{path:"/"}),Object(r.createElement)(_e,{path:"plugins"}),Object(r.createElement)(Pe,{path:"changelog"}),e.map(e=>{let{Component:t,key:n,path:o}=e,a=Ae(e,["Component","key","path"]);return Object(r.createElement)(t,Ve({key:n||o,path:o},a))})))))}}document.addEventListener("DOMContentLoaded",()=>{document.getElementById("ct-dashboard")&&Object(r.render)(Object(r.createElement)(Ue,null),document.getElementById("ct-dashboard"))})}]);