!function(){var e={184:function(e,t){var n;
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)){if(n.length){var s=o.apply(null,n);s&&e.push(s)}}else if("object"===a){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var i in n)r.call(n,i)&&n[i]&&e.push(i)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},966:function(e,t,n){"use strict";t.__esModule=!0;var r=n(363),o=(s(r),s(n(697))),a=s(n(815));s(n(473));function s(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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 l(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 u=1073741823;t.default=function(e,t){var n,s,h="__create-react-context-"+(0,a.default)()+"__",p=function(e){function n(){var t,r,o,a;i(this,n);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return t=r=c(this,e.call.apply(e,[this].concat(l))),r.emitter=(o=r.props.value,a=[],{on:function(e){a.push(e)},off:function(e){a=a.filter((function(t){return t!==e}))},get:function(){return o},set:function(e,t){o=e,a.forEach((function(e){return e(o,t)}))}}),c(r,t)}return l(n,e),n.prototype.getChildContext=function(){var e;return(e={})[h]=this.emitter,e},n.prototype.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n=this.props.value,r=e.value,o=void 0;((a=n)===(s=r)?0!==a||1/a==1/s:a!=a&&s!=s)?o=0:(o="function"==typeof t?t(n,r):u,0!==(o|=0)&&this.emitter.set(e.value,o))}var a,s},n.prototype.render=function(){return this.props.children},n}(r.Component);p.childContextTypes=((n={})[h]=o.default.object.isRequired,n);var d=function(t){function n(){var e,r;i(this,n);for(var o=arguments.length,a=Array(o),s=0;s<o;s++)a[s]=arguments[s];return e=r=c(this,t.call.apply(t,[this].concat(a))),r.state={value:r.getValue()},r.onUpdate=function(e,t){0!=((0|r.observedBits)&t)&&r.setState({value:r.getValue()})},c(r,e)}return l(n,t),n.prototype.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?u:t},n.prototype.componentDidMount=function(){this.context[h]&&this.context[h].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?u:e},n.prototype.componentWillUnmount=function(){this.context[h]&&this.context[h].off(this.onUpdate)},n.prototype.getValue=function(){return this.context[h]?this.context[h].get():e},n.prototype.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return d.contextTypes=((s={})[h]=o.default.object,s),{Provider:p,Consumer:d}},e.exports=t.default},404:function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(363)),o=a(n(966));function a(e){return e&&e.__esModule?e:{default:e}}t.default=r.default.createContext||o.default,e.exports=t.default},815:function(e,t,n){"use strict";var r="__global_unique_id__";e.exports=function(){return n.g[r]=(n.g[r]||0)+1}},143:function(e){"use strict";e.exports=function(e,t,n,r,o,a,s,i){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,s,i],u=0;(c=new Error(t.replace(/%s/g,(function(){return l[u++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},703:function(e,t,n){"use strict";var r=n(414);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,s){if(s!==r){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},697:function(e,t,n){e.exports=n(703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},473:function(e){"use strict";var t=function(){};e.exports=t},363:function(e){"use strict";e.exports=React}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var 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)},function(){"use strict";var e=window.wp.element;const t=(0,e.createContext)({theme_version:"1.0.0",theme_name:"Word"}),r=t.Provider;t.Consumer;var o=t,a=window.wp.i18n,s=ctEvents,i=n.n(s);var c=function(){const{theme_name:t,theme_custom_description:n,dashboard_has_heading:r}=(0,e.useContext)(o);let s={content:null};return i().trigger("ct:dashboard:heading:after",s),(0,e.createElement)("div",null,(0,e.createElement)("h2",{onClick:function(e){return e.shiftKey&&i().trigger("ct:dashboard:heading:advanced-click")}},"yes"===r&&(0,e.createElement)("svg",{width:"35",height:"35",viewBox:"0 0 35 35"},(0,e.createElement)("path",{fill:"#1e1e1e",d:"M35,17.5C35,7.8,27.2,0,17.5,0C7.8,0,0,7.8,0,17.5C0,27.2,7.8,35,17.5,35C27.2,35,35,27.2,35,17.5z"}),(0,e.createElement)("path",{fill:"#ffffff",d:"M16.3,13.7h3.9c0.5,0,0.9,0.4,0.9,1c0,0.5-0.4,1-1,1h-3.1L16.3,13.7z M24.2,17.6c0.6-0.8,1-1.9,1-3c0-1.1-0.4-2.1-1-2.9c-0.9-1.2-2.3-2-3.9-2.1c0,0-0.1,0-0.1,0v0h-9.4c-0.2,0-0.4,0.3-0.3,0.5l2.3,5.5h-1.9c-0.2,0-0.4,0.3-0.3,0.5l3.9,9.5h5.8c2.7,0,5-2.2,5-5C25.2,19.5,24.8,18.5,24.2,17.6C24.2,17.6,24.2,17.6,24.2,17.6zM16.3,19.6h3.9c0.5,0,0.9,0.4,0.9,1c0,0.5-0.4,1-1,1h-3.1L16.3,19.6z"}),"/>"),t,"yes"===r&&s.content),(0,e.createElement)("p",null,n||(0,a.__)("The most innovative, intuitive and lightning fast WordPress theme. Build your next web project visually, in no time.","blocksy")))},l=n(363),u=n.n(l),h=n(143),p=n.n(h),d=n(404),f=n.n(d);function m(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function v(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function g(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}}m.__suppressDeprecationWarning=!0,v.__suppressDeprecationWarning=!0,g.__suppressDeprecationWarning=!0;var y=function(e,t){return e.substr(0,t.length)===t},b=function(e,t){for(var n=void 0,r=void 0,o=t.split("?")[0],a=P(o),s=""===a[0],i=C(e),c=0,l=i.length;c<l;c++){var u=!1,h=i[c].route;if(h.default)r={route:h,params:{},uri:t};else{for(var d=P(h.path),f={},m=Math.max(a.length,d.length),v=0;v<m;v++){var g=d[v],y=a[v];if(x(g)){f[g.slice(1)||"*"]=a.slice(v).map(decodeURIComponent).join("/");break}if(void 0===y){u=!0;break}var b=E.exec(g);if(b&&!s){-1===S.indexOf(b[1])||p()(!1);var _=decodeURIComponent(y);f[b[1]]=_}else if(g!==y){u=!0;break}}if(!u){n={route:h,params:f,uri:"/"+a.slice(0,v).join("/")};break}}}return n||r||null},_=function(e,t){if(y(e,"/"))return e;var n=e.split("?"),r=n[0],o=n[1],a=t.split("?")[0],s=P(r),i=P(a);if(""===s[0])return M(a,o);if(!y(s[0],".")){var c=i.concat(s).join("/");return M(("/"===a?"":"/")+c,o)}for(var l=i.concat(s),u=[],h=0,p=l.length;h<p;h++){var d=l[h];".."===d?u.pop():"."!==d&&u.push(d)}return M("/"+u.join("/"),o)},w=function(e,t){var n=e.split("?"),r=n[0],o=n[1],a=void 0===o?"":o,s="/"+P(r).map((function(e){var n=E.exec(e);return n?t[n[1]]:e})).join("/"),i=t.location,c=(i=void 0===i?{}:i).search,l=(void 0===c?"":c).split("?")[1]||"";return s=M(s,a,l)},E=/^:(.+)/,k=function(e){return E.test(e)},x=function(e){return e&&"*"===e[0]},O=function(e,t){return{route:e,score:e.default?0:P(e.path).reduce((function(e,t){return e+=4,!function(e){return""===e}(t)?k(t)?e+=2:x(t)?e-=5:e+=3:e+=1,e}),0),index:t}},C=function(e){return e.map(O).sort((function(e,t){return e.score<t.score?1:e.score>t.score?-1:e.index-t.index}))},P=function(e){return e.replace(/(^\/+|\/+$)/g,"").split("/")},M=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e+((n=n.filter((function(e){return e&&e.length>0})))&&n.length>0?"?"+n.join("&"):"")},S=["uri","path"],z=Object.assign||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},j=function(e){var t=e.location,n=t.search,r=t.hash,o=t.href,a=t.origin,s=t.protocol,i=t.host,c=t.hostname,l=t.port,u=e.location.pathname;!u&&o&&D&&(u=new URL(o).pathname);return{pathname:encodeURI(decodeURI(u)),search:n,hash:r,href:o,origin:a,protocol:s,host:i,hostname:c,port:l,state:e.history.state,key:e.history.state&&e.history.state.key||"initial"}},I=function(e,t){var n=[],r=j(e),o=!1,a=function(){};return{get location(){return r},get transitioning(){return o},_onTransitionComplete:function(){o=!1,a()},listen:function(t){n.push(t);var o=function(){r=j(e),t({location:r,action:"POP"})};return e.addEventListener("popstate",o),function(){e.removeEventListener("popstate",o),n=n.filter((function(e){return e!==t}))}},navigate:function(t){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=s.state,c=s.replace,l=void 0!==c&&c;if("number"==typeof t)e.history.go(t);else{i=z({},i,{key:Date.now()+""});try{o||l?e.history.replaceState(i,null,t):e.history.pushState(i,null,t)}catch(n){e.location[l?"replace":"assign"](t)}}r=j(e),o=!0;var u=new Promise((function(e){return a=e}));return n.forEach((function(e){return e({location:r,action:"PUSH"})})),u}}},D=!("undefined"==typeof window||!window.document||!window.document.createElement),V=I(D?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 s=n.split("?"),i=s[0],c=s[1],l=void 0===c?"":c;r++,o.push({pathname:i,search:l.length?"?"+l:l}),a.push(e)},replaceState:function(e,t,n){var s=n.split("?"),i=s[0],c=s[1],l=void 0===c?"":c;o[r]={pathname:i,search:l},a[r]=e},go:function(e){var t=r+e;t<0||t>a.length-1||(r=t)}}}}()),N=V.navigate,R=Object.assign||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};function A(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F(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 L(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 U=function(e,t){var n=f()(t);return n.displayName=e,n},B=U("Location"),$=function(e){var t=e.children;return u().createElement(B.Consumer,null,(function(e){return e?t(e):u().createElement(q,null,t)}))},q=function(e){function t(){var n,r;T(this,t);for(var o=arguments.length,a=Array(o),s=0;s<o;s++)a[s]=arguments[s];return n=r=F(this,e.call.apply(e,[this].concat(a))),r.state={context:r.getContext(),refs:{unlisten:null}},F(r,n)}return L(t,e),t.prototype.getContext=function(){var e=this.props.history;return{navigate:e.navigate,location:e.location}},t.prototype.componentDidCatch=function(e,t){if(!re(e))throw e;(0,this.props.history.navigate)(e.uri,{replace:!0})},t.prototype.componentDidUpdate=function(e,t){t.context.location!==this.state.context.location&&this.props.history._onTransitionComplete()},t.prototype.componentDidMount=function(){var e=this,t=this.state.refs,n=this.props.history;n._onTransitionComplete(),t.unlisten=n.listen((function(){Promise.resolve().then((function(){requestAnimationFrame((function(){e.unmounted||e.setState((function(){return{context:e.getContext()}}))}))}))}))},t.prototype.componentWillUnmount=function(){var e=this.state.refs;this.unmounted=!0,e.unlisten()},t.prototype.render=function(){var e=this.state.context,t=this.props.children;return u().createElement(B.Provider,{value:e},"function"==typeof t?t(e):t||null)},t}(u().Component);q.defaultProps={history:V};var H=U("Base",{baseuri:"/",basepath:"/"}),W=function(e){return u().createElement(H.Consumer,null,(function(t){return u().createElement($,null,(function(n){return u().createElement(Q,R({},t,n,e))}))}))},Q=function(e){function t(){return T(this,t),F(this,e.apply(this,arguments))}return L(t,e),t.prototype.render=function(){var e=this.props,t=e.location,n=e.navigate,r=e.basepath,o=e.primary,a=e.children,s=(e.baseuri,e.component),i=void 0===s?"div":s,c=A(e,["location","navigate","basepath","primary","children","baseuri","component"]),l=u().Children.toArray(a).reduce((function(e,t){var n=ce(r)(t);return e.concat(n)}),[]),h=t.pathname,p=b(l,h);if(p){var d=p.params,f=p.uri,m=p.route,v=p.route.value;r=m.default?r:m.path.replace(/\*$/,"");var g=R({},d,{uri:f,location:t,navigate:function(e,t){return n(_(e,f),t)}}),y=u().cloneElement(v,g,v.props.children?u().createElement(W,{location:t,primary:o},v.props.children):void 0),w=o?K:i,E=o?R({uri:f,location:t,component:i},c):c;return u().createElement(H.Provider,{value:{baseuri:f,basepath:r}},u().createElement(w,E,y))}return null},t}(u().PureComponent);Q.defaultProps={primary:!0};var G=U("Focus"),K=function(e){var t=e.uri,n=e.location,r=e.component,o=A(e,["uri","location","component"]);return u().createElement(G.Consumer,null,(function(e){return u().createElement(Z,R({},o,{component:r,requestFocus:e,uri:t,location:n}))}))},Y=!0,J=0,Z=function(e){function t(){var n,r;T(this,t);for(var o=arguments.length,a=Array(o),s=0;s<o;s++)a[s]=arguments[s];return n=r=F(this,e.call.apply(e,[this].concat(a))),r.state={},r.requestFocus=function(e){!r.state.shouldFocus&&e&&e.focus()},F(r,n)}return L(t,e),t.getDerivedStateFromProps=function(e,t){if(null==t.uri)return R({shouldFocus:!0},e);var n=e.uri!==t.uri,r=t.location.pathname!==e.location.pathname&&e.location.pathname===e.uri;return R({shouldFocus:n||r},e)},t.prototype.componentDidMount=function(){J++,this.focus()},t.prototype.componentWillUnmount=function(){0===--J&&(Y=!0)},t.prototype.componentDidUpdate=function(e,t){e.location!==this.props.location&&this.state.shouldFocus&&this.focus()},t.prototype.focus=function(){var e=this.props.requestFocus;e?e(this.node):Y?Y=!1:this.node&&(this.node.contains(document.activeElement)||this.node.focus())},t.prototype.render=function(){var e=this,t=this.props,n=(t.children,t.style),r=(t.requestFocus,t.component),o=void 0===r?"div":r,a=(t.uri,t.location,A(t,["children","style","requestFocus","component","uri","location"]));return u().createElement(o,R({style:R({outline:"none"},n),tabIndex:"-1",ref:function(t){return e.node=t}},a),u().createElement(G.Provider,{value:this.requestFocus},this.props.children))},t}(u().Component);!function(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,r=null,o=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?r="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(r="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?o="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(o="UNSAFE_componentWillUpdate"),null!==n||null!==r||null!==o){var a=e.displayName||e.name,s="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+a+" uses "+s+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==r?"\n "+r:"")+(null!==o?"\n "+o:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=m,t.componentWillReceiveProps=v),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=g;var i=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;i.call(this,e,t,r)}}}(Z);var X=function(){},ee=u().forwardRef;void 0===ee&&(ee=function(e){return e});var te=ee((function(e,t){var n=e.innerRef,r=A(e,["innerRef"]);return u().createElement(H.Consumer,null,(function(e){e.basepath;var o=e.baseuri;return u().createElement($,null,(function(e){var a=e.location,s=e.navigate,i=r.to,c=r.state,l=r.replace,h=r.getProps,p=void 0===h?X:h,d=A(r,["to","state","replace","getProps"]),f=_(i,o),m=encodeURI(f),v=a.pathname===m,g=y(a.pathname,m);return u().createElement("a",R({ref:t||n,"aria-current":v?"page":void 0},d,p({isCurrent:v,isPartiallyCurrent:g,href:f,location:a}),{href:f,onClick:function(e){if(d.onClick&&d.onClick(e),le(e)){e.preventDefault();var t=l;if("boolean"!=typeof l&&v){var n=R({},a.state),r=(n.key,A(n,["key"]));o=R({},c),i=r,t=(u=Object.keys(o)).length===Object.keys(i).length&&u.every((function(e){return i.hasOwnProperty(e)&&o[e]===i[e]}))}s(f,{state:c,replace:t})}var o,i,u}}))}))}))}));function ne(e){this.uri=e}te.displayName="Link";var re=function(e){return e instanceof ne},oe=function(e){function t(){return T(this,t),F(this,e.apply(this,arguments))}return L(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.navigate,n=e.to,r=(e.from,e.replace),o=void 0===r||r,a=e.state,s=(e.noThrow,e.baseuri),i=A(e,["navigate","to","from","replace","state","noThrow","baseuri"]);Promise.resolve().then((function(){var e=_(n,s);t(w(e,i),{replace:o,state:a})}))},t.prototype.render=function(){var e=this.props,t=(e.navigate,e.to),n=(e.from,e.replace,e.state,e.noThrow),r=e.baseuri,o=A(e,["navigate","to","from","replace","state","noThrow","baseuri"]),a=_(t,r);return n||function(e){throw new ne(e)}(w(a,o)),null},t}(u().Component),ae=function(e){return u().createElement(H.Consumer,null,(function(t){var n=t.baseuri;return u().createElement($,null,(function(t){return u().createElement(oe,R({},t,{baseuri:n},e))}))}))},se=function(e){var t=e.path,n=e.children;return u().createElement(H.Consumer,null,(function(e){var r=e.baseuri;return u().createElement($,null,(function(e){var o=e.navigate,a=e.location,s=function(e,t){return b([{path:e}],t)}(_(t,r),a.pathname);return n({navigate:o,location:a,match:s?R({},s.params,{uri:s.uri,path:t}):null})}))}))},ie=function(e){return e.replace(/(^\/+|\/+$)/g,"")},ce=function e(t){return function(n){if(!n)return null;if(n.type===u().Fragment&&n.props.children)return u().Children.map(n.props.children,e(t));if(n.props.path||n.props.default||n.type===ae||p()(!1),n.type!==ae||n.props.from&&n.props.to||p()(!1),n.type!==ae||function(e,t){var n=function(e){return k(e)};return P(e).filter(n).sort().join("/")===P(t).filter(n).sort().join("/")}(n.props.from,n.props.to)||p()(!1),n.props.default)return{value:n,default:!0};var r=n.type===ae?n.props.from:n.props.path,o="/"===r?t:ie(t)+"/"+ie(r);return{value:n,default:n.props.default,path:n.props.children?ie(o)+"/*":o}}},le=function(e){return!e.defaultPrevented&&0===e.button&&!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)},ue=Ce(),he=e=>Ee(e,ue),pe=Ce();he.write=e=>Ee(e,pe);var de=Ce();he.onStart=e=>Ee(e,de);var fe=Ce();he.onFrame=e=>Ee(e,fe);var me=Ce();he.onFinish=e=>Ee(e,me);var ve=[];he.setTimeout=(e,t)=>{const n=he.now()+t,r=()=>{const e=ve.findIndex((e=>e.cancel==r));~e&&ve.splice(e,1),_e-=~e?1:0},o={time:n,handler:e,cancel:r};return ve.splice(ge(n),0,o),_e+=1,ke(),o};var ge=e=>~(~ve.findIndex((t=>t.time>e))||~ve.length);he.cancel=e=>{de.delete(e),fe.delete(e),me.delete(e),ue.delete(e),pe.delete(e)},he.sync=e=>{we=!0,he.batchedUpdates(e),we=!1},he.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,he.onStart(n)}return r.handler=e,r.cancel=()=>{de.delete(n),t=null},r};var ye="undefined"!=typeof window?window.requestAnimationFrame:()=>{};he.use=e=>ye=e,he.now="undefined"!=typeof performance?()=>performance.now():Date.now,he.batchedUpdates=e=>e(),he.catch=console.error,he.frameLoop="always",he.advance=()=>{"demand"!==he.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Oe()};var be=-1,_e=0,we=!1;function Ee(e,t){we?(t.delete(e),e(0)):(t.add(e),ke())}function ke(){be<0&&(be=0,"demand"!==he.frameLoop&&ye(xe))}function xe(){~be&&(ye(xe),he.batchedUpdates(Oe))}function Oe(){const e=be;be=he.now();const t=ge(be);t&&(Pe(ve.splice(0,t),(e=>e.handler())),_e-=t),_e?(de.flush(),ue.flush(e?Math.min(64,be-e):16.667),fe.flush(),pe.flush(),me.flush()):be=-1}function Ce(){let e=new Set,t=e;return{add(n){_e+=t!=e||e.has(n)?0:1,e.add(n)},delete(n){return _e-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,_e-=t.size,Pe(t,(t=>t(n)&&e.add(t))),_e+=e.size,t=e)}}}function Pe(e,t){e.forEach((e=>{try{t(e)}catch(e){he.catch(e)}}))}var Me=Object.defineProperty,Se={};function ze(){}((e,t)=>{for(var n in t)Me(e,n,{get:t[n],enumerable:!0})})(Se,{assign:()=>qe,colors:()=>Ue,createStringInterpolator:()=>Ae,skipAnimation:()=>Be,to:()=>Te,willAdvance:()=>$e});var je={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 Ie(e,t){if(je.arr(e)){if(!je.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 De=(e,t)=>e.forEach(t);function Ve(e,t,n){if(je.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 Ne=e=>je.und(e)?[]:je.arr(e)?e:[e];function Re(e,t){if(e.size){const n=Array.from(e);e.clear(),De(n,t)}}var Ae,Te,Fe=(e,...t)=>Re(e,(e=>e(...t))),Le=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Ue=null,Be=!1,$e=ze,qe=e=>{e.to&&(Te=e.to),e.now&&(he.now=e.now),void 0!==e.colors&&(Ue=e.colors),null!=e.skipAnimation&&(Be=e.skipAnimation),e.createStringInterpolator&&(Ae=e.createStringInterpolator),e.requestAnimationFrame&&he.use(e.requestAnimationFrame),e.batchedUpdates&&(he.batchedUpdates=e.batchedUpdates),e.willAdvance&&($e=e.willAdvance),e.frameLoop&&(he.frameLoop=e.frameLoop)},He=new Set,We=[],Qe=[],Ge=0,Ke={get idle(){return!He.size&&!We.length},start(e){Ge>e.priority?(He.add(e),he.onStart(Ye)):(Je(e),he(Xe))},advance:Xe,sort(e){if(Ge)he.onFrame((()=>Ke.sort(e)));else{const t=We.indexOf(e);~t&&(We.splice(t,1),Ze(e))}},clear(){We=[],He.clear()}};function Ye(){He.forEach(Je),He.clear(),he(Xe)}function Je(e){We.includes(e)||Ze(e)}function Ze(e){We.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(We,(t=>t.priority>e.priority)),0,e)}function Xe(e){const t=Qe;for(let n=0;n<We.length;n++){const r=We[n];Ge=r.priority,r.idle||($e(r),r.advance(e),r.idle||t.push(r))}return Ge=0,(Qe=We).length=0,(We=t).length>0}var et="[-+]?\\d*\\.?\\d+",tt=et+"%";function nt(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var rt=new RegExp("rgb"+nt(et,et,et)),ot=new RegExp("rgba"+nt(et,et,et,et)),at=new RegExp("hsl"+nt(et,tt,tt)),st=new RegExp("hsla"+nt(et,tt,tt,et)),it=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ct=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,lt=/^#([0-9a-fA-F]{6})$/,ut=/^#([0-9a-fA-F]{8})$/;function ht(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 pt(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,a=ht(o,r,e+1/3),s=ht(o,r,e),i=ht(o,r,e-1/3);return Math.round(255*a)<<24|Math.round(255*s)<<16|Math.round(255*i)<<8}function dt(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function ft(e){return(parseFloat(e)%360+360)%360/360}function mt(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function vt(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function gt(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=lt.exec(e))?parseInt(t[1]+"ff",16)>>>0:Ue&&void 0!==Ue[e]?Ue[e]:(t=rt.exec(e))?(dt(t[1])<<24|dt(t[2])<<16|dt(t[3])<<8|255)>>>0:(t=ot.exec(e))?(dt(t[1])<<24|dt(t[2])<<16|dt(t[3])<<8|mt(t[4]))>>>0:(t=it.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ut.exec(e))?parseInt(t[1],16)>>>0:(t=ct.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=at.exec(e))?(255|pt(ft(t[1]),vt(t[2]),vt(t[3])))>>>0:(t=st.exec(e))?(pt(ft(t[1]),vt(t[2]),vt(t[3]))|mt(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 yt=(e,t,n)=>{if(je.fun(e))return e;if(je.arr(e))return yt({range:e,output:t,extrapolate:n});if(je.str(e.output[0]))return Ae(e);const r=e,o=r.output,a=r.range||[0,1],s=r.extrapolateLeft||r.extrapolate||"extend",i=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,a);return function(e,t,n,r,o,a,s,i,c){let l=c?c(e):e;if(l<t){if("identity"===s)return l;"clamp"===s&&(l=t)}if(l>n){if("identity"===i)return l;"clamp"===i&&(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,a[t],a[t+1],o[t],o[t+1],c,s,i,r.map)}};var bt=1.70158,_t=1.525*bt,wt=bt+1,Et=2*Math.PI/3,kt=2*Math.PI/4.5,xt=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},Ot={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=>wt*e*e*e-bt*e*e,easeOutBack:e=>1+wt*Math.pow(e-1,3)+bt*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-_t)/2:(Math.pow(2*e-2,2)*((_t+1)*(2*e-2)+_t)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*Et),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*Et)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*kt)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*kt)/2+1,easeInBounce:e=>1-xt(1-e),easeOutBounce:xt,easeInOutBounce:e=>e<.5?(1-xt(1-2*e))/2:(1+xt(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 a=0,s=1,i=o/e,Math.min(Math.max(i,a),s);var a,s,i}},Ct=Symbol.for("FluidValue.get"),Pt=Symbol.for("FluidValue.observers"),Mt=e=>Boolean(e&&e[Ct]),St=e=>e&&e[Ct]?e[Ct]():e,zt=e=>e[Pt]||null;function jt(e,t){const n=e[Pt];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}var It=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Dt(this,e)}},Dt=(e,t)=>At(e,Ct,t);function Vt(e,t){if(e[Ct]){let n=e[Pt];n||At(e,Pt,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Nt(e,t){const n=e[Pt];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Pt]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var Rt,At=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Tt=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Ft=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Lt=new RegExp(`(${Tt.source})(%|[a-z]+)`,"i"),Ut=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Bt=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,$t=e=>{const[t,n]=qt(e);if(!t||Le())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&&Bt.test(n)?$t(n):n||e},qt=e=>{const t=Bt.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Ht=(e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,Wt=e=>{Rt||(Rt=Ue?new RegExp(`(${Object.keys(Ue).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>St(e).replace(Bt,$t).replace(Ft,gt).replace(Rt,gt))),n=t.map((e=>e.match(Tt).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=>yt({...e,output:t})));return e=>{const n=!Lt.test(t[0])&&t.find((e=>Lt.test(e)))?.replace(Tt,"");let o=0;return t[0].replace(Tt,(()=>`${r[o++](e)}${n||""}`)).replace(Ut,Ht)}},Qt="react-spring: ",Gt=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${Qt}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},Kt=Gt(console.warn);var Yt=Gt(console.warn);function Jt(e){return je.str(e)&&("#"==e[0]||/\d/.test(e)||!Le()&&Bt.test(e)||e in(Ue||{}))}var Zt=Le()?l.useEffect:l.useLayoutEffect,Xt=()=>{const e=(0,l.useRef)(!1);return Zt((()=>(e.current=!0,()=>{e.current=!1})),[]),e};function en(){const e=(0,l.useState)()[1],t=Xt();return()=>{t.current&&e(Math.random())}}var tn=e=>(0,l.useEffect)(e,nn),nn=[];var rn=Symbol.for("Animated:node"),on=e=>e&&e[rn],an=(e,t)=>{return n=e,r=rn,o=t,Object.defineProperty(n,r,{value:o,writable:!0,configurable:!0});var n,r,o},sn=e=>e&&e[rn]&&e[rn].getPayload(),cn=class{constructor(){an(this,this)}getPayload(){return this.payload||[]}},ln=class extends cn{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,je.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new ln(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return je.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,je.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},un=class extends ln{constructor(e){super(0),this._string=null,this._toString=yt({output:[e,e]})}static create(e){return new un(e)}getValue(){const e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(je.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=yt({output:[this.getValue(),e]})),this._value=0,super.reset()}},hn={dependencies:null},pn=class extends cn{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Ve(this.source,((n,r)=>{var o;(o=n)&&o[rn]===o?t[r]=n.getValue(e):Mt(n)?t[r]=St(n):e||(t[r]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&De(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return Ve(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){hn.dependencies&&Mt(e)&&hn.dependencies.add(e);const t=sn(e);t&&De(t,(e=>this.add(e)))}},dn=class extends pn{constructor(e){super(e)}static create(e){return new dn(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(fn)),!0)}};function fn(e){return(Jt(e)?un:ln).create(e)}function mn(e){const t=on(e);return t?t.constructor:je.arr(e)?dn:Jt(e)?un:ln}var vn=(e,t)=>{const n=!je.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,l.forwardRef)(((r,o)=>{const a=(0,l.useRef)(null),s=n&&(0,l.useCallback)((e=>{a.current=function(e,t){e&&(je.fun(e)?e(t):e.current=t);return t}(o,e)}),[o]),[i,c]=function(e,t){const n=new Set;hn.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)});return e=new pn(e),hn.dependencies=null,[e,n]}(r,t),u=en(),h=()=>{const e=a.current;if(n&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,i.getValue(!0)))&&u()},p=new gn(h,c),d=(0,l.useRef)();Zt((()=>(d.current=p,De(c,(e=>Vt(e,p))),()=>{d.current&&(De(d.current.deps,(e=>Nt(e,d.current))),he.cancel(d.current.update))}))),(0,l.useEffect)(h,[]),tn((()=>()=>{const e=d.current;De(e.deps,(t=>Nt(t,e)))}));const f=t.getComponentProps(i.getValue());return l.createElement(e,{...f,ref:s})}))},gn=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&he.write(this.update)}};var yn=Symbol.for("AnimatedComponent"),bn=e=>je.str(e)?e:e&&je.str(e.displayName)?e.displayName:je.fun(e)&&e.name||null;function _n(e,...t){return je.fun(e)?e(...t):e}var wn=(e,t)=>!0===e||!!(t&&e&&(je.fun(e)?e(t):Ne(e).includes(t))),En=(e,t)=>je.obj(e)?t&&e[t]:e,kn=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,xn=e=>e,On=(e,t=xn)=>{let n=Cn;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);je.und(n)||(r[o]=n)}return r},Cn=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Pn={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 Mn(e){const t=function(e){const t={};let n=0;if(Ve(e,((e,r)=>{Pn[r]||(t[r]=e,n++)})),n)return t}(e);if(t){const n={to:t};return Ve(e,((e,r)=>r in t||(n[r]=e))),n}return{...e}}function Sn(e){return e=St(e),je.arr(e)?e.map(Sn):Jt(e)?Se.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function zn(e){for(const t in e)return!0;return!1}function jn(e){return je.fun(e)||je.arr(e)&&je.obj(e[0])}function In(e,t){e.ref?.delete(e),t?.delete(e)}function Dn(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var Vn={tension:170,friction:26,mass:1,damping:1,easing:Ot.linear,clamp:!1};function Nn(e,t){if(je.und(t.decay)){const n=!je.und(t.tension)||!je.und(t.friction);!n&&je.und(t.frequency)&&je.und(t.damping)&&je.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var Rn=[];function An(e,{key:t,props:n,defaultProps:r,state:o,actions:a}){return new Promise(((s,i)=>{let c,l,u=wn(n.cancel??r?.cancel,t);if(u)d();else{je.und(n.pause)||(o.paused=wn(n.pause,t));let e=r?.pause;!0!==e&&(e=o.paused||wn(e,t)),c=_n(n.delay||0,t),e?(o.resumeQueue.add(p),a.pause()):(a.resume(),p())}function h(){o.resumeQueue.add(p),o.timeouts.delete(l),l.cancel(),c=l.time-he.now()}function p(){c>0&&!Se.skipAnimation?(o.delayed=!0,l=he.setTimeout(d,c),o.pauseQueue.add(h),o.timeouts.add(l)):d()}function d(){o.delayed&&(o.delayed=!1),o.pauseQueue.delete(h),o.timeouts.delete(l),e<=(o.cancelId||0)&&(u=!0);try{a.start({...n,callId:e,cancel:u},s)}catch(e){i(e)}}}))}var Tn=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?Un(e.get()):t.every((e=>e.noop))?Fn(e.get()):Ln(e.get(),t.every((e=>e.finished))),Fn=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Ln=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Un=e=>({value:e,cancelled:!0,finished:!1});function Bn(e,t,n,r){const{callId:o,parentId:a,onRest:s}=t,{asyncTo:i,promise:c}=n;return a||e!==i||t.reset?n.promise=(async()=>{n.asyncId=o,n.asyncTo=e;const l=On(t,((e,t)=>"onRest"===t?void 0:e));let u,h;const p=new Promise(((e,t)=>(u=e,h=t))),d=e=>{const t=o<=(n.cancelId||0)&&Un(r)||o!==n.asyncId&&Ln(r,!1);if(t)throw e.result=t,h(e),e},f=(e,t)=>{const a=new qn,s=new Hn;return(async()=>{if(Se.skipAnimation)throw $n(n),s.result=Ln(r,!1),h(s),s;d(a);const i=je.obj(e)?{...e}:{...t,to:e};i.parentId=o,Ve(l,((e,t)=>{je.und(i[t])&&(i[t]=e)}));const c=await r.start(i);return d(a),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),c})()};let m;if(Se.skipAnimation)return $n(n),Ln(r,!1);try{let t;t=je.arr(e)?(async e=>{for(const t of e)await f(t)})(e):Promise.resolve(e(f,r.stop.bind(r))),await Promise.all([t.then(u),p]),m=Ln(r.get(),!0,!1)}catch(e){if(e instanceof qn)m=e.result;else{if(!(e instanceof Hn))throw e;m=e.result}}finally{o==n.asyncId&&(n.asyncId=a,n.asyncTo=a?i:void 0,n.promise=a?c:void 0)}return je.fun(s)&&he.batchedUpdates((()=>{s(m,r,r.item)})),m})():c}function $n(e,t){Re(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var qn=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.")}},Hn=class extends Error{constructor(){super("SkipAnimationSignal")}},Wn=e=>e instanceof Gn,Qn=1,Gn=class extends It{constructor(){super(...arguments),this.id=Qn++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=on(this);return e&&e.getValue()}to(...e){return Se.to(this,e)}interpolate(...e){return Kt(`${Qt}The "interpolate" function is deprecated in v9 (use "to" instead)`),Se.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){jt(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Ke.sort(this),jt(this,{type:"priority",parent:this,priority:e})}},Kn=Symbol.for("SpringPhase"),Yn=e=>(1&e[Kn])>0,Jn=e=>(2&e[Kn])>0,Zn=e=>(4&e[Kn])>0,Xn=(e,t)=>t?e[Kn]|=3:e[Kn]&=-3,er=(e,t)=>t?e[Kn]|=4:e[Kn]&=-5,tr=class extends Gn{constructor(e,t){if(super(),this.animation=new class{constructor(){this.changed=!1,this.values=Rn,this.toValues=null,this.fromValues=Rn,this.config=new class{constructor(){this.velocity=0,Object.assign(this,Vn)}},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,!je.und(e)||!je.und(t)){const n=je.obj(e)?{...e}:{...t,from:e};je.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Jn(this)||this._state.asyncTo)||Zn(this)}get goal(){return St(this.animation.to)}get velocity(){const e=on(this);return e instanceof ln?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return Yn(this)}get isAnimating(){return Jn(this)}get isPaused(){return Zn(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:o}=r;const{config:a}=r,s=sn(r.to);!s&&Mt(r.to)&&(o=Ne(St(r.to))),r.values.forEach(((i,c)=>{if(i.done)return;const l=i.constructor==un?1:s?s[c].lastPosition:o[c];let u=r.immediate,h=l;if(!u){if(h=i.lastPosition,a.tension<=0)return void(i.done=!0);let t=i.elapsedTime+=e;const n=r.fromValues[c],o=null!=i.v0?i.v0:i.v0=je.arr(a.velocity)?a.velocity[c]:a.velocity;let s;const p=a.precision||(n==l?.005:Math.min(1,.001*Math.abs(l-n)));if(je.und(a.duration))if(a.decay){const e=!0===a.decay?.998:a.decay,r=Math.exp(-(1-e)*t);h=n+o/(1-e)*(1-r),u=Math.abs(i.lastPosition-h)<=p,s=o*r}else{s=null==i.lastVelocity?o:i.lastVelocity;const t=a.restVelocity||p/10,r=a.clamp?0:a.bounce,c=!je.und(r),d=n==l?i.v0>0:n<l;let f,m=!1;const v=1,g=Math.ceil(e/v);for(let e=0;e<g&&(f=Math.abs(s)>t,f||(u=Math.abs(l-h)<=p,!u));++e){c&&(m=h==l||h>l==d,m&&(s=-s*r,h=l));s+=(1e-6*-a.tension*(h-l)+.001*-a.friction*s)/a.mass*v,h+=s*v}}else{let r=1;a.duration>0&&(this._memoizedDuration!==a.duration&&(this._memoizedDuration=a.duration,i.durationProgress>0&&(i.elapsedTime=a.duration*i.durationProgress,t=i.elapsedTime+=e)),r=(a.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,i.durationProgress=r),h=n+a.easing(r)*(l-n),s=(h-i.lastPosition)/e,u=1==r}i.lastVelocity=s,Number.isNaN(h)&&(console.warn("Got NaN while animating:",this),u=!0)}s&&!s[c].done&&(u=!1),u?i.done=!0:t=!1,i.setValue(h,a.round)&&(n=!0)}));const i=on(this),c=i.getValue();if(t){const e=St(r.to);c===e&&!n||a.decay?n&&a.decay&&this._onChange(c):(i.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(c)}set(e){return he.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Jn(this)){const{to:e,config:t}=this.animation;he.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 je.und(e)?(n=this.queue||[],this.queue=[]):n=[je.obj(e)?e:{...t,to:e}],Promise.all(n.map((e=>this._update(e)))).then((e=>Tn(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),$n(this._state,e&&this._lastCallId),he.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=je.obj(n)?n[t]:n,(null==n||jn(n))&&(n=void 0),r=je.obj(r)?r[t]:r,null==r&&(r=void 0);const o={to:n,from:r};return Yn(this)||(e.reverse&&([n,r]=[r,n]),r=St(r),je.und(r)?on(this)||this._set(n):this._set(r)),o}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,On(e,((e,t)=>/^on/.test(t)?En(e,n):e))),ir(this,e,"onProps"),cr(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 a=this._state;return An(++this._lastCallId,{key:n,props:e,defaultProps:r,state:a,actions:{pause:()=>{Zn(this)||(er(this,!0),Fe(a.pauseQueue),cr(this,"onPause",Ln(this,nr(this,this.animation.to)),this))},resume:()=>{Zn(this)&&(er(this,!1),Jn(this)&&this._resume(),Fe(a.resumeQueue),cr(this,"onResume",Ln(this,nr(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then((n=>{if(e.loop&&n.finished&&(!t||!n.noop)){const t=rr(e);if(t)return this._update(t,!0)}return n}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Un(this));const r=!je.und(e.to),o=!je.und(e.from);if(r||o){if(!(t.callId>this._lastToId))return n(Un(this));this._lastToId=t.callId}const{key:a,defaultProps:s,animation:i}=this,{to:c,from:l}=i;let{to:u=c,from:h=l}=e;!o||r||t.default&&!je.und(u)||(u=h),t.reverse&&([u,h]=[h,u]);const p=!Ie(h,l);p&&(i.from=h),h=St(h);const d=!Ie(u,c);d&&this._focus(u);const f=jn(t.to),{config:m}=i,{decay:v,velocity:g}=m;(r||o)&&(m.velocity=0),t.config&&!f&&function(e,t,n){n&&(Nn(n={...n},t),t={...n,...t}),Nn(e,t),Object.assign(e,t);for(const t in Vn)null==e[t]&&(e[t]=Vn[t]);let{frequency:r,damping:o}=e;const{mass:a}=e;je.und(r)||(r<.01&&(r=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/r,2)*a,e.friction=4*Math.PI*o*a/r)}(m,_n(t.config,a),t.config!==s.config?_n(s.config,a):void 0);let y=on(this);if(!y||je.und(u))return n(Ln(this,!0));const b=je.und(t.reset)?o&&!t.default:!je.und(h)&&wn(t.reset,a),_=b?h:this.get(),w=Sn(u),E=je.num(w)||je.arr(w)||Jt(w),k=!f&&(!E||wn(s.immediate||t.immediate,a));if(d){const e=mn(u);if(e!==y.constructor){if(!k)throw Error(`Cannot animate between ${y.constructor.name} and ${e.name}, as the "to" prop suggests`);y=this._set(w)}}const x=y.constructor;let O=Mt(u),C=!1;if(!O){const e=b||!Yn(this)&&p;(d||e)&&(C=Ie(Sn(_),w),O=!C),(Ie(i.immediate,k)||k)&&Ie(m.decay,v)&&Ie(m.velocity,g)||(O=!0)}if(C&&Jn(this)&&(i.changed&&!b?O=!0:O||this._stop(c)),!f&&((O||Mt(c))&&(i.values=y.getPayload(),i.toValues=Mt(u)?null:x==un?[1]:Ne(w)),i.immediate!=k&&(i.immediate=k,k||b||this._set(c)),O)){const{onRest:e}=i;De(sr,(e=>ir(this,t,e)));const r=Ln(this,nr(this,c));Fe(this._pendingCalls,r),this._pendingCalls.add(n),i.changed&&he.batchedUpdates((()=>{i.changed=!b,e?.(r,this),b?_n(s.onRest,r):i.onStart?.(r,this)}))}b&&this._set(_),f?n(Bn(t.to,t,this._state,this)):O?this._start():Jn(this)&&!d?this._pendingCalls.add(n):n(Fn(_))}_focus(e){const t=this.animation;e!==t.to&&(zt(this)&&this._detach(),t.to=e,zt(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Mt(t)&&(Vt(t,this),Wn(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Mt(e)&&Nt(e,this)}_set(e,t=!0){const n=St(e);if(!je.und(n)){const e=on(this);if(!e||!Ie(n,e.getValue())){const r=mn(n);e&&e.constructor==r?e.setValue(n):an(this,r.create(n)),e&&he.batchedUpdates((()=>{this._onChange(n,t)}))}}return on(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,cr(this,"onStart",Ln(this,nr(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),_n(this.animation.onChange,e,this)),_n(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;on(this).reset(St(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),Jn(this)||(Xn(this,!0),Zn(this)||this._resume())}_resume(){Se.skipAnimation?this.finish():Ke.start(this)}_stop(e,t){if(Jn(this)){Xn(this,!1);const n=this.animation;De(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),jt(this,{type:"idle",parent:this});const r=t?Un(this.get()):Ln(this.get(),nr(this,e??n.to));Fe(this._pendingCalls,r),n.changed&&(n.changed=!1,cr(this,"onRest",r,this))}}};function nr(e,t){const n=Sn(t);return Ie(Sn(e.get()),n)}function rr(e,t=e.loop,n=e.to){const r=_n(t);if(r){const o=!0!==r&&Mn(r),a=(o||e).reverse,s=!o||o.reset;return or({...e,loop:t,default:!1,pause:void 0,to:!a||jn(n)?n:void 0,from:s?e.from:void 0,reset:s,...o})}}function or(e){const{to:t,from:n}=e=Mn(e),r=new Set;return je.obj(t)&&ar(t,r),je.obj(n)&&ar(n,r),e.keys=r.size?Array.from(r):null,e}function ar(e,t){Ve(e,((e,n)=>null!=e&&t.add(n)))}var sr=["onStart","onRest","onChange","onPause","onResume"];function ir(e,t,n){e.animation[n]=t[n]!==kn(t,n)?En(t[n],e.key):void 0}function cr(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var lr=["onStart","onChange","onRest"],ur=1,hr=class{constructor(e,t){this.id=ur++,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];je.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(or(e)),this}start(e){let{queue:t}=this;return e?t=Ne(e).map(or):this.queue=[],this._flush?this._flush(this,t):(yr(this,t),pr(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;De(Ne(t),(t=>n[t].stop(!!e)))}else $n(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(je.und(e))this.start({pause:!0});else{const t=this.springs;De(Ne(e),(e=>t[e].pause()))}return this}resume(e){if(je.und(e))this.start({pause:!1});else{const t=this.springs;De(Ne(e),(e=>t[e].resume()))}return this}each(e){Ve(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,Re(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const a=!r&&this._started,s=o||a&&n.size?this.get():null;o&&t.size&&Re(t,(([e,t])=>{t.value=s,e(t,this,this._item)})),a&&(this._started=!1,Re(n,(([e,t])=>{t.value=s,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)}he.onFrame(this._onFrame)}};function pr(e,t){return Promise.all(t.map((t=>dr(e,t)))).then((t=>Tn(e,t)))}async function dr(e,t,n){const{keys:r,to:o,from:a,loop:s,onRest:i,onResolve:c}=t,l=je.obj(t.default)&&t.default;s&&(t.loop=!1),!1===o&&(t.to=null),!1===a&&(t.from=null);const u=je.arr(o)||je.fun(o)?o:void 0;u?(t.to=void 0,t.onRest=void 0,l&&(l.onRest=void 0)):De(lr,(n=>{const r=t[n];if(je.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})},l&&(l[n]=t[n])}}));const h=e._state;t.pause===!h.paused?(h.paused=t.pause,Fe(t.pause?h.pauseQueue:h.resumeQueue)):h.paused&&(t.pause=!0);const p=(r||Object.keys(e.springs)).map((n=>e.springs[n].start(t))),d=!0===t.cancel||!0===kn(t,"cancel");(u||d&&h.asyncId)&&p.push(An(++e._lastAsyncId,{props:t,state:h,actions:{pause:ze,resume:ze,start(t,n){d?($n(h,e._lastAsyncId),n(Un(e))):(t.onRest=i,n(Bn(u,t,h,e)))}}})),h.paused&&await new Promise((e=>{h.resumeQueue.add(e)}));const f=Tn(e,await Promise.all(p));if(s&&f.finished&&(!n||!f.noop)){const n=rr(t,s,o);if(n)return yr(e,[n]),dr(e,n,!0)}return c&&he.batchedUpdates((()=>c(f,e,e.item))),f}function fr(e,t){const n={...e.springs};return t&&De(Ne(t),(e=>{je.und(e.keys)&&(e=or(e)),je.obj(e.to)||(e={...e,to:void 0}),gr(n,e,(e=>vr(e)))})),mr(e,n),n}function mr(e,t){Ve(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,Vt(t,e))}))}function vr(e,t){const n=new tr;return n.key=e,t&&Vt(n,t),n}function gr(e,t,n){t.keys&&De(t.keys,(r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)}))}function yr(e,t){De(t,(t=>{gr(e.springs,t,(t=>vr(t,e)))}))}var br,_r,wr=({children:e,...t})=>{const n=(0,l.useContext)(Er),r=t.pause||!!n.pause,o=t.immediate||!!n.immediate;t=function(e,t){const[n]=(0,l.useState)((()=>({inputs:t,result:e()}))),r=(0,l.useRef)(),o=r.current;let a=o;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,l.useEffect)((()=>{r.current=a,o==n&&(n.inputs=n.result=void 0)}),[a]),a.result}((()=>({pause:r,immediate:o})),[r,o]);const{Provider:a}=Er;return l.createElement(a,{value:t},e)},Er=(br=wr,_r={},Object.assign(br,l.createContext(_r)),br.Provider._context=br,br.Consumer._context=br,br);wr.Provider=Er.Provider,wr.Consumer=Er.Consumer;var kr=()=>{const e=[],t=function(t){Yt(`${Qt}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 De(e,((e,o)=>{if(je.und(t))r.push(e.start());else{const a=n(t,e,o);a&&r.push(e.start(a))}})),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 De(e,(e=>e.pause(...arguments))),this},t.resume=function(){return De(e,(e=>e.resume(...arguments))),this},t.set=function(t){De(e,((e,n)=>{const r=je.fun(t)?t(n,e):t;r&&e.set(r)}))},t.start=function(t){const n=[];return De(e,((e,r)=>{if(je.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 De(e,(e=>e.stop(...arguments))),this},t.update=function(t){return De(e,((e,n)=>e.update(this._getProps(t,e,n)))),this};const n=function(e,t,n){return je.fun(e)?e(n,t):e};return t._getProps=n,t};function xr(e,t,n){const r=je.fun(t)&&t,{reset:o,sort:a,trail:s=0,expires:i=!0,exitBeforeEnter:c=!1,onDestroyed:u,ref:h,config:p}=r?r():t,d=(0,l.useMemo)((()=>r||3==arguments.length?kr():void 0),[]),f=Ne(e),m=[],v=(0,l.useRef)(null),g=o?null:v.current;Zt((()=>{v.current=m})),tn((()=>(De(m,(e=>{d?.add(e.ctrl),e.ctrl.ref=d})),()=>{De(v.current,(e=>{e.expired&&clearTimeout(e.expirationId),In(e.ctrl,d),e.ctrl.stop(!0)}))})));const y=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):Or++}))}return je.und(n)?e:je.fun(n)?e.map(n):Ne(n)}(f,r?r():t,g),b=o&&v.current||[];Zt((()=>De(b,(({ctrl:e,item:t,key:n})=>{In(e,d),_n(u,t,n)}))));const _=[];if(g&&De(g,((e,t)=>{e.expired?(clearTimeout(e.expirationId),b.push(e)):~(t=_[t]=y.indexOf(e.key))&&(m[t]=e)})),De(f,((e,t)=>{m[t]||(m[t]={key:y[t],item:e,phase:"mount",ctrl:new hr},m[t].ctrl.item=e)})),_.length){let e=-1;const{leave:n}=r?r():t;De(_,((t,r)=>{const o=g[r];~t?(e=m.indexOf(o),m[e]={...o,item:f[t]}):n&&m.splice(++e,0,o)}))}je.fun(a)&&m.sort(((e,t)=>a(e.item,t.item)));let w=-s;const E=en(),k=On(t),x=new Map,O=(0,l.useRef)(new Map),C=(0,l.useRef)(!1);De(m,((e,n)=>{const o=e.key,a=e.phase,l=r?r():t;let u,d;const f=_n(l.delay||0,o);if("mount"==a)u=l.enter,d="enter";else{const e=y.indexOf(o)<0;if("leave"!=a)if(e)u=l.leave,d="leave";else{if(!(u=l.update))return;d="update"}else{if(e)return;u=l.enter,d="enter"}}if(u=_n(u,e.item,n),u=je.obj(u)?Mn(u):{to:u},!u.config){const t=p||k.config;u.config=_n(t,e.item,n,d)}w+=s;const m={...k,delay:f+w,ref:h,immediate:l.immediate,reset:!1,...u};if("enter"==d&&je.und(m.from)){const o=r?r():t,a=je.und(o.initial)||g?o.from:o.initial;m.from=_n(a,e.item,n)}const{onResolve:b}=m;m.onResolve=e=>{_n(b,e);const t=v.current,n=t.find((e=>e.key===o));if(n&&(!e.cancelled||"update"==n.phase)&&n.ctrl.idle){const e=t.every((e=>e.ctrl.idle));if("leave"==n.phase){const t=_n(i,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(E,r)))}}e&&t.some((e=>e.expired))&&(O.current.delete(n),c&&(C.current=!0),E())}};const _=fr(e.ctrl,m);"leave"===d&&c?O.current.set(e,{phase:d,springs:_,payload:m}):x.set(e,{phase:d,springs:_,payload:m})}));const P=(0,l.useContext)(wr),M=function(e){const t=(0,l.useRef)();return(0,l.useEffect)((()=>{t.current=e})),t.current}(P),S=P!==M&&zn(P);Zt((()=>{S&&De(m,(e=>{e.ctrl.start({default:P})}))}),[P]),De(x,((e,t)=>{if(O.current.size){const e=m.findIndex((e=>e.key===t.key));m.splice(e,1)}})),Zt((()=>{De(O.current.size?O.current:x,(({phase:e,payload:t},n)=>{const{ctrl:r}=n;n.phase=e,d?.add(r),S&&"enter"==e&&r.start({default:P}),t&&(Dn(r,t.ref),!r.ref&&!d||C.current?(r.start(t),C.current&&(C.current=!1)):r.update(t))}))}),o?void 0:n);const z=e=>l.createElement(l.Fragment,null,m.map(((t,n)=>{const{springs:r}=x.get(t)||t.ctrl,o=e({...r},t.item,t,n);return o&&o.type?l.createElement(o.type,{...o.props,key:je.str(t.key)||je.num(t.key)?t.key:t.ctrl.id,ref:o.ref}):o})));return d?[z,d]:z}var Or=1;function Cr({items:e,children:t,...n}){return xr(e,n)(t)}var Pr=class extends Gn{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=yt(...t);const n=this._get(),r=mn(n);an(this,r.create(n))}advance(e){const t=this._get();Ie(t,this.get())||(on(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Sr(this._active)&&zr(this)}_get(){const e=je.arr(this.source)?this.source.map(St):Ne(St(this.source));return this.calc(...e)}_start(){this.idle&&!Sr(this._active)&&(this.idle=!1,De(sn(this),(e=>{e.done=!1})),Se.skipAnimation?(he.batchedUpdates((()=>this.advance())),zr(this)):Ke.start(this))}_attach(){let e=1;De(Ne(this.source),(t=>{Mt(t)&&Vt(t,this),Wn(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){De(Ne(this.source),(e=>{Mt(e)&&Nt(e,this)})),this._active.clear(),zr(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=Ne(this.source).reduce(((e,t)=>Math.max(e,(Wn(t)?t.priority:0)+1)),0))}};function Mr(e){return!1!==e.idle}function Sr(e){return!e.size||Array.from(e).every(Mr)}function zr(e){e.idle||(e.idle=!0,De(sn(e),(e=>{e.done=!0})),jt(e,{type:"idle",parent:e}))}Se.assign({createStringInterpolator:Wt,to:(e,t)=>new Pr(e,t)});Ke.advance;var jr=ReactDOM,Ir=/^--/;function Dr(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||Ir.test(e)||Nr.hasOwnProperty(e)&&Nr[e]?(""+t).trim():t+"px"}var Vr={};var Nr={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},Rr=["Webkit","Ms","Moz","O"];Nr=Object.keys(Nr).reduce(((e,t)=>(Rr.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),Nr);var Ar=/^(matrix|translate|scale|rotate|skew)/,Tr=/^(translate)/,Fr=/^(rotate|skew)/,Lr=(e,t)=>je.num(e)&&0!==e?e+t:e,Ur=(e,t)=>je.arr(e)?e.every((e=>Ur(e,t))):je.num(e)?e===t:parseFloat(e)===t,Br=class extends pn{constructor({x:e,y:t,z:n,...r}){const o=[],a=[];(e||t||n)&&(o.push([e||0,t||0,n||0]),a.push((e=>[`translate3d(${e.map((e=>Lr(e,"px"))).join(",")})`,Ur(e,0)]))),Ve(r,((e,t)=>{if("transform"===t)o.push([e||""]),a.push((e=>[e,""===e]));else if(Ar.test(t)){if(delete r[t],je.und(e))return;const n=Tr.test(t)?"px":Fr.test(t)?"deg":"";o.push(Ne(e)),a.push("rotate3d"===t?([e,t,r,o])=>[`rotate3d(${e},${t},${r},${Lr(o,n)})`,Ur(o,0)]:e=>[`${t}(${e.map((e=>Lr(e,n))).join(",")})`,Ur(e,t.startsWith("scale")?1:0)])}})),o.length&&(r.transform=new $r(o,a)),super(r)}},$r=class extends It{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 De(this.inputs,((n,r)=>{const o=St(n[0]),[a,s]=this.transforms[r](je.arr(o)?o:n.map(St));e+=" "+a,t=t&&s})),t?"none":e}observerAdded(e){1==e&&De(this.inputs,(e=>De(e,(e=>Mt(e)&&Vt(e,this)))))}observerRemoved(e){0==e&&De(this.inputs,(e=>De(e,(e=>Mt(e)&&Nt(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),jt(this,e)}};Se.assign({batchedUpdates:jr.unstable_batchedUpdates,createStringInterpolator:Wt,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 qr=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:n=(e=>new pn(e)),getComponentProps:r=(e=>e)}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},a=e=>{const t=bn(e)||"Anonymous";return(e=je.str(e)?a[e]||(a[e]=vn(e,o)):e[yn]||(e[yn]=vn(e,o))).displayName=`Animated(${t})`,e};return Ve(e,((t,n)=>{je.arr(e)&&(n=bn(t)),a[n]=a(t)})),{animated:a}})(["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,{className:r,style:o,children:a,scrollTop:s,scrollLeft:i,viewBox:c,...l}=t,u=Object.values(l),h=Object.keys(l).map((t=>n||e.hasAttribute(t)?t:Vr[t]||(Vr[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==a&&(e.textContent=a);for(const t in o)if(o.hasOwnProperty(t)){const n=Dr(t,o[t]);Ir.test(t)?e.style.setProperty(t,n):e.style[t]=n}h.forEach(((t,n)=>{e.setAttribute(t,u[n])})),void 0!==r&&(e.className=r),void 0!==s&&(e.scrollTop=s),void 0!==i&&(e.scrollLeft=i),void 0!==c&&e.setAttribute("viewBox",c)},createAnimatedStyle:e=>new Br(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Hr=qr.animated;const Wr=["path","text"],Qr=["path","text"];function Gr(){return Gr=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},Gr.apply(this,arguments)}function Kr(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Yr=function(){const t=[],n=[];i().trigger("ct:dashboard:navigation-links",t),i().trigger("ct:dashboard:end-navigation-links",n);ctDashboardLocalizations.plugin_data.hide_plugins_tab;return(0,e.createElement)("ul",{className:"dashboard-navigation"},(0,e.createElement)("li",null,(0,e.createElement)(te,{to:"/"},(0,a.__)("Home","blocksy"))),t.map((function(t){let{path:n,text:r}=t,o=Kr(t,Wr);return(0,e.createElement)("li",{key:n},(0,e.createElement)(te,Gr({to:n},o),r))})),!ctDashboardLocalizations.plugin_data.hide_plugins_tab&&(0,e.createElement)("li",null,(0,e.createElement)(te,{to:"/plugins"},(0,a.__)("Useful Plugins","blocksy"))),!ctDashboardLocalizations.plugin_data.hide_changelogs_tab&&(0,e.createElement)("li",null,(0,e.createElement)(te,{to:"/changelog"},(0,a.__)("Changelog","blocksy"))),n.map((function(t){let{path:n,text:r}=t,o=Kr(t,Qr);return(0,e.createElement)("li",{key:n},(0,e.createElement)(te,Gr({to:n},o),r))})))},Jr=jQuery,Zr=n.n(Jr);const Xr=function(t){let{href:n=""}=t;return ctDashboardLocalizations.plugin_data.hide_docs_section?null:(0,e.createElement)("a",{href:n,target:"_blank"},(0,e.createElement)("svg",{width:"14px",height:"14px",viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M23 2.1h-6.6c-1.8 0-3.4.9-4.4 2.3C11 3 9.4 2.1 7.6 2.1H1c-.6 0-1 .4-1 1v16.5c0 .6.4 1 1 1h7.7c1.3 0 2.3 1 2.3 2.3 0 .6.4 1 1 1s1-.4 1-1c0-1.3 1-2.3 2.3-2.3H23c.6 0 1-.4 1-1V3.1c0-.6-.4-1-1-1zM11 19.3c-.7-.4-1.5-.7-2.3-.7H2V4.1h5.6c1.9 0 3.4 1.5 3.4 3.4v11.8zm11-.7h-6.7c-.8 0-1.6.2-2.3.7V7.5c0-1.9 1.5-3.4 3.4-3.4H22v14.5z"})),(0,a.__)("Documentation","blocksy"))};var eo=function(){const{is_companion_active:t,companion_download_link:n,child_download_link:r}=(0,e.useContext)(o);let s={content:null},c={content:null};const[l,u]=(0,e.useState)(!1),[h,p]=(0,e.useState)(!1);i().trigger("ct:dashboard:home:before",s),i().trigger("ct:dashboard:home:after",c);const d=h||t;return(0,e.createElement)("section",null,s.content,(0,e.createElement)("div",{className:"ct-dashboard-home-container","data-columns":ctDashboardLocalizations.plugin_data.hide_support_section?"1":"2"},(0,e.createElement)("section",null,(0,e.createElement)("h4",null,(0,a.__)("Customizer Shortcuts","blocksy")),(0,e.createElement)("ul",{className:"ct-customizer-shortcuts-list"},(0,e.createElement)("li",null,(0,e.createElement)("h4",null,(0,a.__)("Color Options","blocksy")),(0,e.createElement)("p",null,(0,a.__)("Manage the colour palette, as well as setting colours for different elements of the website.","blocksy")),(0,e.createElement)("div",{className:"ct-shortcut-actions"},(0,e.createElement)(Xr,{href:"https://creativethemes.com/blocksy/docs/general-options/colors/"}),(0,e.createElement)("a",{href:`${ctDashboardLocalizations.customizer_url}${encodeURI("[section]=color")}`,target:"_blank"},(0,e.createElement)("svg",{width:"15px",height:"15px",viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M4 11c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1s-1 .4-1 1v7c0 .6.4 1 1 1zM12 11c-.6 0-1 .4-1 1v9c0 .6.4 1 1 1s1-.4 1-1v-9c0-.6-.4-1-1-1zM20 13c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1s-1 .4-1 1v9c0 .6.4 1 1 1zM7 13H1c-.6 0-1 .4-1 1s.4 1 1 1h2v6c0 .6.4 1 1 1s1-.4 1-1v-6h2c.6 0 1-.4 1-1s-.4-1-1-1zM15 7h-2V3c0-.6-.4-1-1-1s-1 .4-1 1v4H9c-.6 0-1 .4-1 1s.4 1 1 1h6c.6 0 1-.4 1-1s-.4-1-1-1zM23 15h-6c-.6 0-1 .4-1 1s.4 1 1 1h2v4c0 .6.4 1 1 1s1-.4 1-1v-4h2c.6 0 1-.4 1-1s-.4-1-1-1z"})),(0,a.__)("Customize","blocksy")))),(0,e.createElement)("li",null,(0,e.createElement)("h4",null,(0,a.__)("Typography Options","blocksy")),(0,e.createElement)("p",null,(0,a.__)("Set the footer type, number of columns, spacing and colors.","blocksy")),(0,e.createElement)("div",{className:"ct-shortcut-actions"},(0,e.createElement)(Xr,{href:"https://creativethemes.com/blocksy/docs/general-options/typography/"}),(0,e.createElement)("a",{href:`${ctDashboardLocalizations.customizer_url}${encodeURI("[section]=typography")}`,target:"_blank"},(0,e.createElement)("svg",{width:"15px",height:"15px",viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M4 11c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1s-1 .4-1 1v7c0 .6.4 1 1 1zM12 11c-.6 0-1 .4-1 1v9c0 .6.4 1 1 1s1-.4 1-1v-9c0-.6-.4-1-1-1zM20 13c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1s-1 .4-1 1v9c0 .6.4 1 1 1zM7 13H1c-.6 0-1 .4-1 1s.4 1 1 1h2v6c0 .6.4 1 1 1s1-.4 1-1v-6h2c.6 0 1-.4 1-1s-.4-1-1-1zM15 7h-2V3c0-.6-.4-1-1-1s-1 .4-1 1v4H9c-.6 0-1 .4-1 1s.4 1 1 1h6c.6 0 1-.4 1-1s-.4-1-1-1zM23 15h-6c-.6 0-1 .4-1 1s.4 1 1 1h2v4c0 .6.4 1 1 1s1-.4 1-1v-4h2c.6 0 1-.4 1-1s-.4-1-1-1z"})),(0,a.__)("Customize","blocksy")))),(0,e.createElement)("li",null,(0,e.createElement)("h4",null,(0,a.__)("Header Options","blocksy")),(0,e.createElement)("p",null,(0,a.__)("Configure the header to your liking with an easy to use drag and drop builder.","blocksy")),(0,e.createElement)("div",{className:"ct-shortcut-actions"},(0,e.createElement)(Xr,{href:"https://creativethemes.com/blocksy/docs/header-elements/header-builder-elements/"}),(0,e.createElement)("a",{href:`${ctDashboardLocalizations.customizer_url}${encodeURI("[section]=header")}`,target:"_blank"},(0,e.createElement)("svg",{width:"15px",height:"15px",viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M4 11c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1s-1 .4-1 1v7c0 .6.4 1 1 1zM12 11c-.6 0-1 .4-1 1v9c0 .6.4 1 1 1s1-.4 1-1v-9c0-.6-.4-1-1-1zM20 13c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1s-1 .4-1 1v9c0 .6.4 1 1 1zM7 13H1c-.6 0-1 .4-1 1s.4 1 1 1h2v6c0 .6.4 1 1 1s1-.4 1-1v-6h2c.6 0 1-.4 1-1s-.4-1-1-1zM15 7h-2V3c0-.6-.4-1-1-1s-1 .4-1 1v4H9c-.6 0-1 .4-1 1s.4 1 1 1h6c.6 0 1-.4 1-1s-.4-1-1-1zM23 15h-6c-.6 0-1 .4-1 1s.4 1 1 1h2v4c0 .6.4 1 1 1s1-.4 1-1v-4h2c.6 0 1-.4 1-1s-.4-1-1-1z"})),(0,a.__)("Customize","blocksy")))),(0,e.createElement)("li",null,(0,e.createElement)("h4",null,(0,a.__)("Footer Options","blocksy")),(0,e.createElement)("p",null,(0,a.__)("Arrange your footer in a way that actually makes sense with our drag and drop builder.","blocksy")),(0,e.createElement)("div",{className:"ct-shortcut-actions"},(0,e.createElement)(Xr,{href:"https://creativethemes.com/blocksy/docs/footer-options/footer-introduction/"}),(0,e.createElement)("a",{href:`${ctDashboardLocalizations.customizer_url}${encodeURI("[section]=footer")}`,target:"_blank"},(0,e.createElement)("svg",{width:"15px",height:"15px",viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M4 11c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1s-1 .4-1 1v7c0 .6.4 1 1 1zM12 11c-.6 0-1 .4-1 1v9c0 .6.4 1 1 1s1-.4 1-1v-9c0-.6-.4-1-1-1zM20 13c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1s-1 .4-1 1v9c0 .6.4 1 1 1zM7 13H1c-.6 0-1 .4-1 1s.4 1 1 1h2v6c0 .6.4 1 1 1s1-.4 1-1v-6h2c.6 0 1-.4 1-1s-.4-1-1-1zM15 7h-2V3c0-.6-.4-1-1-1s-1 .4-1 1v4H9c-.6 0-1 .4-1 1s.4 1 1 1h6c.6 0 1-.4 1-1s-.4-1-1-1zM23 15h-6c-.6 0-1 .4-1 1s.4 1 1 1h2v4c0 .6.4 1 1 1s1-.4 1-1v-4h2c.6 0 1-.4 1-1s-.4-1-1-1z"})),(0,a.__)("Customize","blocksy")))),(0,e.createElement)("li",null,(0,e.createElement)("h4",null,(0,a.__)("Blog Options","blocksy")),(0,e.createElement)("p",null,(0,a.__)("Adjust your blog roll options in a single place and make it stand out in the crowd.","blocksy")),(0,e.createElement)("div",{className:"ct-shortcut-actions"},(0,e.createElement)(Xr,{href:"https://creativethemes.com/blocksy/docs/post-types/blog-posts/"}),(0,e.createElement)("a",{href:`${ctDashboardLocalizations.customizer_url}${encodeURI("[section]=blog_posts")}`,target:"_blank"},(0,e.createElement)("svg",{width:"15px",height:"15px",viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M4 11c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1s-1 .4-1 1v7c0 .6.4 1 1 1zM12 11c-.6 0-1 .4-1 1v9c0 .6.4 1 1 1s1-.4 1-1v-9c0-.6-.4-1-1-1zM20 13c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1s-1 .4-1 1v9c0 .6.4 1 1 1zM7 13H1c-.6 0-1 .4-1 1s.4 1 1 1h2v6c0 .6.4 1 1 1s1-.4 1-1v-6h2c.6 0 1-.4 1-1s-.4-1-1-1zM15 7h-2V3c0-.6-.4-1-1-1s-1 .4-1 1v4H9c-.6 0-1 .4-1 1s.4 1 1 1h6c.6 0 1-.4 1-1s-.4-1-1-1zM23 15h-6c-.6 0-1 .4-1 1s.4 1 1 1h2v4c0 .6.4 1 1 1s1-.4 1-1v-4h2c.6 0 1-.4 1-1s-.4-1-1-1z"})),(0,a.__)("Customize","blocksy")))),(0,e.createElement)("li",null,(0,e.createElement)("h4",null,(0,a.__)("Posts Options","blocksy")),(0,e.createElement)("p",null,(0,a.__)("Set the footer type, number of columns, spacing and colors.","blocksy")),(0,e.createElement)("div",{className:"ct-shortcut-actions"},(0,e.createElement)(Xr,{href:"https://creativethemes.com/blocksy/docs/post-types/single-posts/"}),(0,e.createElement)("a",{href:`${ctDashboardLocalizations.customizer_url}${encodeURI("[section]=single_blog_posts")}`,target:"_blank"},(0,e.createElement)("svg",{width:"15px",height:"15px",viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M4 11c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1s-1 .4-1 1v7c0 .6.4 1 1 1zM12 11c-.6 0-1 .4-1 1v9c0 .6.4 1 1 1s1-.4 1-1v-9c0-.6-.4-1-1-1zM20 13c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1s-1 .4-1 1v9c0 .6.4 1 1 1zM7 13H1c-.6 0-1 .4-1 1s.4 1 1 1h2v6c0 .6.4 1 1 1s1-.4 1-1v-6h2c.6 0 1-.4 1-1s-.4-1-1-1zM15 7h-2V3c0-.6-.4-1-1-1s-1 .4-1 1v4H9c-.6 0-1 .4-1 1s.4 1 1 1h6c.6 0 1-.4 1-1s-.4-1-1-1zM23 15h-6c-.6 0-1 .4-1 1s.4 1 1 1h2v4c0 .6.4 1 1 1s1-.4 1-1v-4h2c.6 0 1-.4 1-1s-.4-1-1-1z"})),(0,a.__)("Customize","blocksy")))),(0,e.createElement)("li",null,(0,e.createElement)("h4",null,(0,a.__)("Page Options","blocksy")),(0,e.createElement)("p",null,(0,a.__)("Set the page container width, spacing, sidebar and more.","blocksy")),(0,e.createElement)("div",{className:"ct-shortcut-actions"},(0,e.createElement)(Xr,{href:"https://creativethemes.com/blocksy/docs/post-types/pages/"}),(0,e.createElement)("a",{href:`${ctDashboardLocalizations.customizer_url}${encodeURI("[section]=single_pages")}`,target:"_blank"},(0,e.createElement)("svg",{width:"15px",height:"15px",viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M4 11c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1s-1 .4-1 1v7c0 .6.4 1 1 1zM12 11c-.6 0-1 .4-1 1v9c0 .6.4 1 1 1s1-.4 1-1v-9c0-.6-.4-1-1-1zM20 13c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1s-1 .4-1 1v9c0 .6.4 1 1 1zM7 13H1c-.6 0-1 .4-1 1s.4 1 1 1h2v6c0 .6.4 1 1 1s1-.4 1-1v-6h2c.6 0 1-.4 1-1s-.4-1-1-1zM15 7h-2V3c0-.6-.4-1-1-1s-1 .4-1 1v4H9c-.6 0-1 .4-1 1s.4 1 1 1h6c.6 0 1-.4 1-1s-.4-1-1-1zM23 15h-6c-.6 0-1 .4-1 1s.4 1 1 1h2v4c0 .6.4 1 1 1s1-.4 1-1v-4h2c.6 0 1-.4 1-1s-.4-1-1-1z"})),(0,a.__)("Customize","blocksy")))),(0,e.createElement)("li",null,(0,e.createElement)("h4",null,(0,a.__)("Sidebar Options","blocksy")),(0,e.createElement)("p",null,(0,a.__)("Change the sidebar behaviour and style with a nice set of options that come in handy.","blocksy")),(0,e.createElement)("div",{className:"ct-shortcut-actions"},(0,e.createElement)(Xr,{href:"https://creativethemes.com/blocksy/docs/general-options/sidebar/"}),(0,e.createElement)("a",{href:`${ctDashboardLocalizations.customizer_url}${encodeURI("[section]=sidebar")}`,target:"_blank"},(0,e.createElement)("svg",{width:"15px",height:"15px",viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M4 11c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1s-1 .4-1 1v7c0 .6.4 1 1 1zM12 11c-.6 0-1 .4-1 1v9c0 .6.4 1 1 1s1-.4 1-1v-9c0-.6-.4-1-1-1zM20 13c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1s-1 .4-1 1v9c0 .6.4 1 1 1zM7 13H1c-.6 0-1 .4-1 1s.4 1 1 1h2v6c0 .6.4 1 1 1s1-.4 1-1v-6h2c.6 0 1-.4 1-1s-.4-1-1-1zM15 7h-2V3c0-.6-.4-1-1-1s-1 .4-1 1v4H9c-.6 0-1 .4-1 1s.4 1 1 1h6c.6 0 1-.4 1-1s-.4-1-1-1zM23 15h-6c-.6 0-1 .4-1 1s.4 1 1 1h2v4c0 .6.4 1 1 1s1-.4 1-1v-4h2c.6 0 1-.4 1-1s-.4-1-1-1z"})),(0,a.__)("Customize","blocksy")))))),!ctDashboardLocalizations.plugin_data.hide_support_section&&(0,e.createElement)("aside",null,(0,e.createElement)("h4",null,(0,a.__)("Need help or advice?","blocksy")),(0,e.createElement)("ul",{className:"ct-support-container","data-placement":"sidebar"},(0,e.createElement)("li",null,(0,e.createElement)("h4",null,(0,e.createElement)("span",null,(0,e.createElement)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M8.6 6.7c0-1.9 1.5-3.5 3.4-3.5s3.4 1.5 3.4 3.5-1.5 3.5-3.4 3.5-3.4-1.6-3.4-3.5zM22 11.3h-3.9c.5.5.7 1.2.7 2v5.9c0 .6-.2 1.2-.3 1.7H22c1.2-.8 2-2.2 2-3.8v-3.7c0-1.2-.9-2.1-2-2.1zm.8-4.1c0-1.6-1.3-2.9-2.9-2.9-1.6 0-2.9 1.3-2.9 2.9 0 1.6 1.3 2.9 2.9 2.9 1.7 0 2.9-1.3 2.9-2.9zM5.2 13c.1-.7.3-1.3.7-1.8H1.8c-1 .1-1.8.9-1.8 2V17c0 1.6.8 2.9 2 3.8h3.5c-.2-.6-.3-1.3-.3-2.1V13zM4 4.4c-1.6 0-2.9 1.3-2.9 2.9 0 1.6 1.3 2.9 2.9 2.9s2.9-1.3 2.9-2.9c0-1.7-1.3-2.9-2.9-2.9zm11.2 6.9H8.8c-1.1 0-2 .9-2 2v5.5c0 .7.2 1.4.4 2.1h9.5c.3-.6.4-1.3.4-2.1v-5.5c.1-1.1-.8-2-1.9-2z"}))),(0,a.__)("Facebook Community","blocksy")),(0,e.createElement)("p",null,(0,a.__)("Share ideas, help others, ask questions and discuss your next project in our friendly community.","blocksy")),(0,e.createElement)("a",{href:"https://www.facebook.com/groups/blocksy.community",className:"ct-button","data-hover":"blue",target:"_blank"},(0,a.__)("Join Our Facebook Community","blocksy"))),(0,e.createElement)("li",null,(0,e.createElement)("h4",null,(0,e.createElement)("span",null,(0,e.createElement)("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M13.3 3.7 8.5.4C7.4-.3 5.9-.1 5.2 1c-.3.4-.5.9-.5 1.4v19.1c0 1.3 1.1 2.4 2.4 2.4.5 0 1-.2 1.4-.4l4.7-3.3 9-6.3c1.1-.8 1.4-2.3.6-3.4l-.6-.6-8.9-6.2z"}))),(0,a.__)("Video Tutorials","blocksy")),(0,e.createElement)("p",null,(0,a.__)("Learn how to do just about anything within Blocksy by following our byte-sized video tutorials.","blocksy")),(0,e.createElement)("a",{href:"https://creativethemes.com/blocksy/video-tutorials/",className:"ct-button","data-hover":"blue",target:"_blank"},(0,a.__)("Watch Tutorials","blocksy"))),(0,e.createElement)("li",null,(0,e.createElement)("h4",null,(0,e.createElement)("span",null,(0,e.createElement)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M24 4.1v13.8c0 .7-.5 1.2-1.2 1.3-2 .1-6.1.5-8.9 1.9-.4.2-.9-.1-.9-.6V5.7c0-.2.1-.4.3-.5 2.7-1.7 7.2-2.1 9.4-2.3.7-.1 1.3.5 1.3 1.2zM1.4 2.9C.6 2.8 0 3.4 0 4.1v13.8c0 .7.5 1.2 1.2 1.3 2 .1 6.1.5 8.9 1.9.4.2.9-.1.9-.5V5.7c0-.2-.1-.4-.3-.5C8.1 3.5 3.6 3 1.4 2.9z"}))),(0,a.__)("Knowledge Base","blocksy")),(0,e.createElement)("p",null,(0,a.__)("Dive in deeper with our documentation and learn advanced tips and tricks about Blocksy and its components.","blocksy")),(0,e.createElement)("a",{href:"https://creativethemes.com/blocksy/docs/",className:"ct-button","data-hover":"blue",target:"_blank"},(0,a.__)("View Documentation","blocksy"))),(0,e.createElement)("li",null,(0,e.createElement)("h4",null,(0,e.createElement)("span",null,(0,e.createElement)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M8.3 7.3 4.1 3C6.2 1.1 9 0 12 0s5.8 1.1 7.9 3l-4.3 4.3C14.6 6.5 13.4 6 12 6s-2.6.5-3.7 1.3zM12 18c-1.4 0-2.6-.5-3.7-1.3L4.1 21c2.1 1.9 4.9 3 7.9 3s5.8-1.1 7.9-3l-4.3-4.3c-1 .8-2.2 1.3-3.6 1.3zm9-13.9-4.3 4.3c.8 1 1.3 2.3 1.3 3.7s-.5 2.6-1.3 3.7l4.3 4.3c1.9-2.1 3-4.9 3-7.9s-1.1-6-3-8.1zM6 12c0-1.4.5-2.6 1.3-3.7L3 4.1C1.1 6.2 0 9 0 12s1.1 5.8 3 7.9l4.3-4.3C6.5 14.6 6 13.4 6 12z"}))),(0,a.__)("Support","blocksy")),(0,e.createElement)("p",null,(0,a.__)("If your questions that have not been answered by our documentation or video tutorials, just drop us a line.","blocksy")),(0,e.createElement)("a",{href:ctDashboardLocalizations.support_url,className:"ct-button","data-hover":"blue",target:"_blank"},(0,a.__)("Submit a Ticket","blocksy")))))),c.content,"active"!==t&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"ct-dashboard-home-downloads"},(0,e.createElement)("ul",null,(0,e.createElement)("li",null,(0,e.createElement)("h4",null,(0,e.createElement)("svg",{width:"16",height:"16",fill:"currentColor",viewBox:"0 0 20 20"},(0,e.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"})),(0,a.__)("Blocksy Companion","blocksy")),(0,e.createElement)("p",null,(0,a.__)("By downloading and installing this plugin you will have access to demo templates, extensions and a lot more stunning features.","blocksy")),(0,e.createElement)("a",{className:"ct-button",onClick:function(e){e.stopPropagation(),u(!0),Zr().ajax(ajaxurl,{type:"POST",data:{action:"blocksy_notice_button_click",nonce:ct_localizations.nonce}}).then((function(e){let{success:t,data:n}=e;t&&(p(n.status),"active"===n.status&&location.assign(n.pluginUrl)),u(!1)}))}},l?(0,a.__)("Installing & activating...","blocksy"):"uninstalled"===d?(0,a.__)("Install Blocksy Companion","blocksy"):"installed"===d?(0,a.__)("Activate Blocksy Companion","blocksy"):(0,a.__)("Blocksy Companion active!","blocksy"))),(0,e.createElement)("li",null,(0,e.createElement)("h4",null,(0,e.createElement)("svg",{width:"16",height:"16",fill:"currentColor",viewBox:"0 0 20 20"},(0,e.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"})),(0,a.__)("Blocksy Child Theme","blocksy")),(0,e.createElement)("p",null,(0,a.__)("By using a child theme you can modify any file without the fear of breaking something in the parent theme.","blocksy")),(0,e.createElement)("a",{className:"ct-button",href:r,target:"_blank"},(0,a.__)("Download now","blocksy")))))))},to=n(184),no=n.n(to);var ro=function(t){let{status:n,plugin:r,onPluginsSync:o}=t;const[s,i]=(0,e.useState)(!1),c=async function(e,t){const n=new FormData;n.append("plugin",e),n.append("action",t),n.append("nonce",ctDashboardLocalizations.dashboard_actions_nonce),i(!0);try{await fetch(ctDashboardLocalizations.ajax_url,{method:"POST",body:n}),o()}catch(e){}i(!1)};return(0,e.createElement)("li",null,(0,e.createElement)("h4",{className:"ct-plugin-title"},r.title,s&&(0,e.createElement)("svg",{width:"15",height:"15",viewBox:"0 0 100 100"},(0,e.createElement)("g",{transform:"translate(50,50)"},(0,e.createElement)("g",{transform:"scale(1)"},(0,e.createElement)("circle",{cx:"0",cy:"0",r:"50",fill:"#687c93"}),(0,e.createElement)("circle",{cx:"0",cy:"-26",r:"12",fill:"#ffffff",transform:"rotate(161.634)"},(0,e.createElement)("animateTransform",{attributeName:"transform",type:"rotate",calcMode:"linear",values:"0 0 0;360 0 0",keyTimes:"0;1",dur:"1s",begin:"0s",repeatCount:"indefinite"})))))),r.description&&(0,e.createElement)("div",{className:"ct-plugin-description"},r.description),(0,e.createElement)("div",{className:"ct-plugin-actions"},"activated"===n&&(0,e.createElement)("a",{onClick:function(){return c(r.name,"premium_plugin_deactivate")},className:"ct-button"},(0,a.__)("Deactivate","blocksy")),"deactivated"===n&&(0,e.createElement)("a",{onClick:function(){return c(r.name,"premium_plugin_activate")},className:"ct-button-primary"},(0,a.__)("Activate","blocksy")),"uninstalled"===n&&!r.comingsoon&&"link"!==r.type&&(0,e.createElement)("a",{onClick:function(){return c(r.name,"premium_plugin_download")},className:"ct-button"},(0,a.__)("Install","blocksy")),"uninstalled"===n&&!r.comingsoon&&"link"===r.type&&(0,e.createElement)("a",{href:r.link,className:"ct-button",target:"_blank"},(0,a.__)("Download","blocksy")),"uninstalled"===n&&r.comingsoon&&(0,e.createElement)("span",{className:"ct-badge"},(0,a.__)("COMING SOON","blocksy"))))};var oo=function(){return ctDashboardLocalizations.plugin_data.hide_support_section?null:(0,e.createElement)("div",{className:"ct-support-container"},(0,e.createElement)("h2",null,(0,a.__)("Need help or advice?","blocksy")),(0,e.createElement)("p",null,(0,a.__)("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")),(0,e.createElement)("div",{className:"ct-support-buttons"},(0,e.createElement)("a",{href:ctDashboardLocalizations.support_url,className:"ct-button","data-hover":"blue",target:"_blank"},(0,a.__)("Submit a Support Ticket","blocksy")),(0,e.createElement)("a",{href:"https://www.facebook.com/groups/blocksy.community",className:"ct-button","data-hover":"blue",target:"_blank"},(0,a.__)("Join Facebook Community","blocksy"))))};let ao=null,so=ctDashboardLocalizations.clean_install_plugins;var io=function(){const[t,n]=(0,e.useState)(!ao),[r,o]=(0,e.useState)(ao||[]),s=Object.values(so).map((function(e,t){return e.name=Object.keys(so)[t],e})),i=async function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&n(!0);const e=new FormData;e.append("action","get_premium_plugins_status"),e.append("nonce",ctDashboardLocalizations.dashboard_actions_nonce);try{const t=await fetch(ctDashboardLocalizations.ajax_url,{method:"POST",body:e});if(200===t.status){const{success:e,data:n}=await t.json();e&&(o(n),ao=n)}}catch(e){}n(!1)};return(0,e.useEffect)((function(){i(!ao)}),[]),(0,e.createElement)("div",null,(0,e.createElement)(Cr,{items:t,from:{opacity:0},enter:[{opacity:1}],leave:[{opacity:0}],initial:null,config:function(e,t){return"leave"===t?{duration:300}:{delay:300,duration:300}}},(function(t,n){return n?(0,e.createElement)(Hr.p,{style:t,className:"ct-loading-text"},(0,e.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 100 100"},(0,e.createElement)("g",{transform:"translate(50,50)"},(0,e.createElement)("g",{transform:"scale(1)"},(0,e.createElement)("circle",{cx:"0",cy:"0",r:"50",fill:"currentColor"}),(0,e.createElement)("circle",{cx:"0",cy:"-26",r:"12",fill:"#ffffff",transform:"rotate(161.634)"},(0,e.createElement)("animateTransform",{attributeName:"transform",type:"rotate",calcMode:"linear",values:"0 0 0;360 0 0",keyTimes:"0;1",dur:"1s",begin:"0s",repeatCount:"indefinite"}))))),(0,a.__)("Loading Plugins Status...","blocksy")):(0,e.createElement)(Hr.div,{style:t},s.length>0&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("ul",{className:"ct-recommended-plugins-list"},s.map((function(t){return(0,e.createElement)(ro,{plugin:t,key:t.name,onPluginsSync:function(){return i()},status:(r.find((function(e){let{name:n}=e;return n===t.name}))||{}).status})}))),(0,e.createElement)(oo,null)))})))},co=window.wp.date;let lo=null;const uo=function(t){let{versionDescriptor:n}=t;const[r,...o]=n.descriptor.split(/\r?\n/);return(0,e.createElement)("section",null,(0,e.createElement)("h2",null,(0,a.sprintf)((0,a.__)("Version: %s","blocksy"),n.version),(0,e.createElement)("span",null,(0,a.sprintf)((0,a.__)("Released on %s","blocksy"),n.date))),(0,e.createElement)("div",{className:"ct-release-info",dangerouslySetInnerHTML:{__html:`<ul><li>\n\n ${o.join("\n").trim().split("\n").map((function(e){return e.replace(/^-\s/,"")})).map((function(e){return e.replace(/`(.*?)`/g,"<code>$1</code>")})).map((function(e){return e.replace(/\[(.*?)\]\((.*?)\)/g,'<a href="$2">$1</a>')})).join("</li><li>")}\n </li></ul>`.replace(/New:/g,'<span class="new" title="New"></span>').replace(/Improvement:/g,'<span class="improvement" title="Enhance"></span>').replace(/Fix:/g,'<span class="fix" title="Fix"></span>')}}))};var ho=function(){const[t,n]=(0,e.useState)(!lo),[r,o]=(0,e.useState)(lo),[s,i]=(0,e.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(0,e.useEffect)((function(){!async function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&n(!0);const e=new FormData;e.append("action","get_latest_changelog");try{const t=await fetch(ctDashboardLocalizations.ajax_url,{method:"POST",body:e});if(200===t.status){const{success:e,data:n}=await t.json();e&&n.changelog&&(o(n.changelog),lo=n.changelog)}}catch(e){}n(!1)}(!lo)}),[]),(0,e.createElement)("section",{className:"ct-changelog-wrapper"},(0,e.createElement)(Cr,{items:t,from:{opacity:0},enter:[{opacity:1}],leave:[{opacity:0}],initial:null,config:function(e,t){return"leave"===t?{duration:300}:{delay:300,duration:300}}},(function(t,n){return n?(0,e.createElement)(Hr.p,{className:"ct-loading-text",style:t},(0,e.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 100 100"},(0,e.createElement)("g",{transform:"translate(50,50)"},(0,e.createElement)("g",{transform:"scale(1)"},(0,e.createElement)("circle",{cx:"0",cy:"0",r:"50",fill:"currentColor"}),(0,e.createElement)("circle",{cx:"0",cy:"-26",r:"12",fill:"#ffffff",transform:"rotate(161.634)"},(0,e.createElement)("animateTransform",{attributeName:"transform",type:"rotate",calcMode:"linear",values:"0 0 0;360 0 0",keyTimes:"0;1",dur:"1s",begin:"0s",repeatCount:"indefinite"}))))),(0,a.__)("Loading changelog...","blocksy")):(0,e.createElement)(Hr.div,{style:t},(0,e.createElement)("div",{className:no()("changelog-info",{"has-sources":r&&r.length>1})},r&&r.length>1&&(0,e.createElement)("ul",{className:"changelog-sources"},r.map((function(t,n){let{title:r}=t;return(0,e.createElement)("li",{className:no()({active:n===s}),onClick:function(){return i(n)},key:r},r)}))),(0,e.createElement)("ul",{className:"changelog-explanation"},(0,e.createElement)("li",null,(0,e.createElement)("span",{className:"new"})," ",(0,a.__)("New","blocksy")),(0,e.createElement)("li",null,(0,e.createElement)("span",{className:"fix"})," ",(0,a.__)("Fix","blocksy")),(0,e.createElement)("li",null,(0,e.createElement)("span",{className:"improvement"}),(0,a.__)("Improvement","blocksy")))),(0,e.createElement)("div",{className:"changelog-items"},r[s].changelog?function(e){let{hasBetas:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(n=e,n.replace(/[\u00A0-\u9999<>\&]/g,(function(e){return"&#"+e.charCodeAt(0)+";"}))).replace(/\r/g,"").replace(/(\r\n|\r|\n){3,}/g,"$1\n\n").split("\n\n").map((function(e){let[t,n]=e.split(/\r?\n/)[0].split(":");return{version:t,date:(0,co.dateI18n)("F j, Y",new Date(n.trim())),descriptor:e}})).filter((function(e){let{version:n}=e;return!!t||-1===n.indexOf("beta")}));var n}(r[s].changelog,{hasBetas:c}).map((function(t){return(0,e.createElement)(uo,{key:t.version,versionDescriptor:t})})):(0,a.__)("No changelog present at the moment.","blocksy")))})))};function po(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 fo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?po(Object(n),!0).forEach((function(t){mo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):po(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mo(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 vo=["location","navigate"],go=["Component","key","path"];function yo(){return yo=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},yo.apply(this,arguments)}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 _o(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){wo(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 wo(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 Eo(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}window.ctDashboardLocalizations.DashboardContext=o;let ko=I({get location(){return fo(fo({},window.location),{},{pathname:(window.location.hash||"#/").replace(/#/g,"")})},addEventListener(e,t){window.addEventListener(e,t)},removeEventListener(e,t){window.removeEventListener(e,t)},history:{get state(){return window.history.state},replaceState(e,t,n){window.history.replaceState(e,t,`#${n}`)},pushState(e,t,n){window.history.pushState(e,t,`#${n}`)}}}),xo={pathname:location.hash.replace("#","")||"/"};ko.listen((function(e){let{location:t}=e;setTimeout((function(){xo=t}),10)}));const Oo=function(t){let{children:n}=t;(0,e.useRef)();return(0,e.createElement)($,null,(function(t){let{location:r,navigate:o}=t;Eo(t,vo);return(0,e.createElement)(Cr,{items:r,initial:null,keys:function(e){return e.pathname},from:{opacity:0},enter:[{opacity:1}],leave:[{opacity:0}],config:function(e,t){const n=xo&&xo.pathname.indexOf("extensions")>-1&&r.pathname.indexOf("extensions")>-1;return"leave"===t?{duration:n?0:300}:{delay:n?0:300,duration:n?0:300}}},(function(t,r){return(0,e.createElement)(Hr.div,{style:_o({},t)},function(t){return(0,e.createElement)(W,{primary:!1,location:t,navigate:o},n)}(r))}))}))};class Co extends e.Component{render(){const t=[];return i().trigger("ct:dashboard:routes",t),(0,e.createElement)(q,{history:ko},(0,e.createElement)(r,{value:_o(_o(_o({},{theme_version:"1.0.0",theme_name:"Word"}),ctDashboardLocalizations),{},{Link:te,Location:$,navigate:N,history:ko,Match:se})},(0,e.createElement)("header",null,(0,e.createElement)(c,null),(0,e.createElement)(Yr,null)),(0,e.createElement)("section",null,(0,e.createElement)(Oo,{primary:!1,className:"router"},(0,e.createElement)(eo,{path:"/"}),(0,e.createElement)(io,{path:"plugins"}),(0,e.createElement)(ho,{path:"changelog"}),t.map((function(t){let{Component:n,key:r,path:o}=t,a=Eo(t,go);return(0,e.createElement)(n,yo({key:r||o,path:o},a))}))))))}}document.addEventListener("DOMContentLoaded",(function(){if(ctDashboardLocalizations.plugin_data&&document.getElementById("ct-dashboard")){(0,e.createRoot)(document.getElementById("ct-dashboard")).render((0,e.createElement)(Co,null))}}))}()}(); |