!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 a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var i=a.apply(null,n);i&&e.push(i)}}else if("object"===o){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()}},t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.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.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 a=t,o=window.wp.i18n,i=ctEvents,s=n.n(i);var l,c=function(){const{theme_name:t,theme_custom_description:n,dashboard_has_heading:r}=(0,e.useContext)(a);let i={content:null};return s().trigger("ct:dashboard:heading:after",i),(0,e.createElement)("div",null,(0,e.createElement)("h2",{onClick:function(e){return e.shiftKey&&s().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&&i.content),(0,e.createElement)("p",null,n||(0,o.__)("The most innovative, intuitive and lightning fast WordPress theme. Build your next web project visually, in no time.","blocksy")))},u=React;
/**
 * @remix-run/router v1.23.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */
function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(l||(l={}));const h="popstate";function p(e,t){if(!1===e||null==e)throw new Error(t)}function f(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function m(e,t){return{usr:e.state,key:e.key,idx:t}}function v(e,t,n,r){return void 0===n&&(n=null),d({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?y(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function g(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function y(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function b(e,t,n,r){void 0===r&&(r={});let{window:a=document.defaultView,v5Compat:o=!1}=r,i=a.history,s=l.Pop,c=null,u=f();function f(){return(i.state||{idx:null}).idx}function y(){s=l.Pop;let e=f(),t=null==e?null:e-u;u=e,c&&c({action:s,location:w.location,delta:t})}function b(e){let t="null"!==a.location.origin?a.location.origin:a.location.href,n="string"==typeof e?e:g(e);return n=n.replace(/ $/,"%20"),p(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==u&&(u=0,i.replaceState(d({},i.state,{idx:u}),""));let w={get action(){return s},get location(){return e(a,i)},listen(e){if(c)throw new Error("A history only accepts one active listener");return a.addEventListener(h,y),c=e,()=>{a.removeEventListener(h,y),c=null}},createHref:e=>t(a,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s=l.Push;let r=v(w.location,e,t);n&&n(r,e),u=f()+1;let d=m(r,u),h=w.createHref(r);try{i.pushState(d,"",h)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;a.location.assign(h)}o&&c&&c({action:s,location:w.location,delta:1})},replace:function(e,t){s=l.Replace;let r=v(w.location,e,t);n&&n(r,e),u=f();let a=m(r,u),d=w.createHref(r);i.replaceState(a,"",d),o&&c&&c({action:s,location:w.location,delta:0})},go:e=>i.go(e)};return w}var w;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(w||(w={}));const _=new Set(["lazy","caseSensitive","path","id","index","children"]);function E(e,t,n,r){return void 0===n&&(n=[]),void 0===r&&(r={}),e.map(((e,a)=>{let o=[...n,String(a)],i="string"==typeof e.id?e.id:o.join("-");if(p(!0!==e.index||!e.children,"Cannot specify children on an index route"),p(!r[i],'Found a route id collision on id "'+i+"\".  Route id's must be globally unique within Data Router usages"),function(e){return!0===e.index}(e)){let n=d({},e,t(e),{id:i});return r[i]=n,n}{let n=d({},e,t(e),{id:i,children:void 0});return r[i]=n,e.children&&(n.children=E(e.children,t,o,r)),n}}))}function k(e,t,n){return void 0===n&&(n="/"),x(e,t,n,!1)}function x(e,t,n,r){let a=N(("string"==typeof t?y(t):t).pathname||"/",n);if(null==a)return null;let o=S(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(o);let i=null;for(let e=0;null==i&&e<o.length;++e){let t=I(a);i=A(o[e],t,r)}return i}function S(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let a=(e,a,o)=>{let i={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};i.relativePath.startsWith("/")&&(p(i.relativePath.startsWith(r),'Absolute route path "'+i.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),i.relativePath=i.relativePath.slice(r.length));let s=H([r,i.relativePath]),l=n.concat(i);e.children&&e.children.length>0&&(p(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),S(e.children,t,l,s)),(null!=e.path||e.index)&&t.push({path:s,score:L(s,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of C(e.path))a(e,t,n);else a(e,t)})),t}function C(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,a=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===r.length)return a?[o,""]:[o];let i=C(r.join("/")),s=[];return s.push(...i.map((e=>""===e?o:[o,e].join("/")))),a&&s.push(...i),s.map((t=>e.startsWith("/")&&""===t?"/":t))}const M=/^:[\w-]+$/,P=3,R=2,O=1,D=10,z=-2,j=e=>"*"===e;function L(e,t){let n=e.split("/"),r=n.length;return n.some(j)&&(r+=z),t&&(r+=R),n.filter((e=>!j(e))).reduce(((e,t)=>e+(M.test(t)?P:""===t?O:D)),r)}function A(e,t,n){void 0===n&&(n=!1);let{routesMeta:r}=e,a={},o="/",i=[];for(let e=0;e<r.length;++e){let s=r[e],l=e===r.length-1,c="/"===o?t:t.slice(o.length)||"/",u=T({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},c),d=s.route;if(!u&&l&&n&&!r[r.length-1].route.index&&(u=T({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},c)),!u)return null;Object.assign(a,u.params),i.push({params:a,pathname:H([o,u.pathname]),pathnameBase:$(H([o,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(o=H([o,u.pathnameBase]))}return i}function T(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);f("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(r.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))");let o=new RegExp(a,t?void 0:"i");return[o,r]}(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let o=a[0],i=o.replace(/(.)\/+$/,"$1"),s=a.slice(1);return{params:r.reduce(((e,t,n)=>{let{paramName:r,isOptional:a}=t;if("*"===r){let e=s[n]||"";i=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const l=s[n];return e[r]=a&&!l?void 0:(l||"").replace(/%2F/g,"/"),e}),{}),pathname:o,pathnameBase:i,pattern:e}}function I(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return f(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function N(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function U(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function V(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function B(e,t){let n=V(e);return t?n.map(((e,t)=>t===n.length-1?e.pathname:e.pathnameBase)):n.map((e=>e.pathnameBase))}function F(e,t,n,r){let a;void 0===r&&(r=!1),"string"==typeof e?a=y(e):(a=d({},e),p(!a.pathname||!a.pathname.includes("?"),U("?","pathname","search",a)),p(!a.pathname||!a.pathname.includes("#"),U("#","pathname","hash",a)),p(!a.search||!a.search.includes("#"),U("#","search","hash",a)));let o,i=""===e||""===a.pathname,s=i?"/":a.pathname;if(null==s)o=n;else{let e=t.length-1;if(!r&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let l=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:a=""}="string"==typeof e?y(e):e,o=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:o,search:q(r),hash:W(a)}}(a,o),c=s&&"/"!==s&&s.endsWith("/"),u=(i||"."===s)&&n.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}const H=e=>e.join("/").replace(/\/\/+/g,"/"),$=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),q=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",W=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;class Q{constructor(e,t,n,r){void 0===r&&(r=!1),this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function J(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const Y=["post","put","patch","delete"],G=new Set(Y),K=["get",...Y],X=new Set(K),Z=new Set([301,302,303,307,308]),ee=new Set([307,308]),te={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ne={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},re={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ae=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,oe=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),ie="remix-router-transitions";function se(e){const t=e.window?e.window:"undefined"!=typeof window?window:void 0,n=void 0!==t&&void 0!==t.document&&void 0!==t.document.createElement,r=!n;let a;if(p(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)a=e.mapRouteProperties;else if(e.detectErrorBoundary){let t=e.detectErrorBoundary;a=e=>({hasErrorBoundary:t(e)})}else a=oe;let o,i,s,c={},u=E(e.routes,a,void 0,c),h=e.basename||"/",m=e.dataStrategy||ge,g=e.patchRoutesOnNavigation,y=d({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),b=null,_=new Set,S=null,C=null,M=null,P=null!=e.hydrationData,R=k(u,e.history.location,h),O=!1,D=null;if(null==R&&!g){let t=De(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=Oe(u);R=n,D={[r.id]:t}}if(R&&!e.hydrationData){ct(R,u,e.history.location.pathname).active&&(R=null)}if(R)if(R.some((e=>e.route.lazy)))i=!1;else if(R.some((e=>e.route.loader)))if(y.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null;if(n){let e=R.findIndex((e=>void 0!==n[e.route.id]));i=R.slice(0,e+1).every((e=>!he(e.route,t,n)))}else i=R.every((e=>!he(e.route,t,n)))}else i=null!=e.hydrationData;else i=!0;else if(i=!1,R=[],y.v7_partialHydration){let t=ct(null,u,e.history.location.pathname);t.active&&t.matches&&(O=!0,R=t.matches)}let z,j,L={historyAction:e.history.action,location:e.history.location,matches:R,initialized:i,navigation:te,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||D,fetchers:new Map,blockers:new Map},A=l.Pop,T=!1,I=!1,U=new Map,V=null,B=!1,F=!1,H=[],$=new Set,q=new Map,W=0,Q=-1,Y=new Map,G=new Set,K=new Map,X=new Map,Z=new Set,se=new Map,ue=new Map;function pe(e,t){void 0===t&&(t={}),L=d({},L,e);let n=[],r=[];y.v7_fetcherPersist&&L.fetchers.forEach(((e,t)=>{"idle"===e.state&&(Z.has(t)?r.push(t):n.push(t))})),Z.forEach((e=>{L.fetchers.has(e)||q.has(e)||r.push(e)})),[..._].forEach((e=>e(L,{deletedFetchers:r,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync}))),y.v7_fetcherPersist?(n.forEach((e=>L.fetchers.delete(e))),r.forEach((e=>Ke(e)))):r.forEach((e=>Z.delete(e)))}function fe(t,n,r){var a,i;let s,{flushSync:c}=void 0===r?{}:r,h=null!=L.actionData&&null!=L.navigation.formMethod&&Be(L.navigation.formMethod)&&"loading"===L.navigation.state&&!0!==(null==(a=t.state)?void 0:a._isRedirect);s=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:h?L.actionData:null;let p=n.loaderData?Me(L.loaderData,n.loaderData,n.matches||[],n.errors):L.loaderData,f=L.blockers;f.size>0&&(f=new Map(f),f.forEach(((e,t)=>f.set(t,re))));let m,v=!0===T||null!=L.navigation.formMethod&&Be(L.navigation.formMethod)&&!0!==(null==(i=t.state)?void 0:i._isRedirect);if(o&&(u=o,o=void 0),B||A===l.Pop||(A===l.Push?e.history.push(t,t.state):A===l.Replace&&e.history.replace(t,t.state)),A===l.Pop){let e=U.get(L.location.pathname);e&&e.has(t.pathname)?m={currentLocation:L.location,nextLocation:t}:U.has(t.pathname)&&(m={currentLocation:t,nextLocation:L.location})}else if(I){let e=U.get(L.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),U.set(L.location.pathname,e)),m={currentLocation:L.location,nextLocation:t}}pe(d({},n,{actionData:s,loaderData:p,historyAction:A,location:t,initialized:!0,navigation:te,revalidation:"idle",restoreScrollPosition:lt(t,n.matches||L.matches),preventScrollReset:v,blockers:f}),{viewTransitionOpts:m,flushSync:!0===c}),A=l.Pop,T=!1,I=!1,B=!1,F=!1,H=[]}async function ve(t,n,r){z&&z.abort(),z=null,A=t,B=!0===(r&&r.startUninterruptedRevalidation),function(e,t){if(S&&M){let n=st(e,t);S[n]=M()}}(L.location,L.matches),T=!0===(r&&r.preventScrollReset),I=!0===(r&&r.enableViewTransition);let a=o||u,i=r&&r.overrideNavigation,s=null!=r&&r.initialHydration&&L.matches&&L.matches.length>0&&!O?L.matches:k(a,n,h),c=!0===(r&&r.flushSync);if(s&&L.initialized&&!F&&function(e,t){if(e.pathname!==t.pathname||e.search!==t.search)return!1;if(""===e.hash)return""!==t.hash;if(e.hash===t.hash)return!0;if(""!==t.hash)return!0;return!1}(L.location,n)&&!(r&&r.submission&&Be(r.submission.formMethod)))return void fe(n,{matches:s},{flushSync:c});let p=ct(s,a,n.pathname);if(p.active&&p.matches&&(s=p.matches),!s){let{error:e,notFoundMatches:t,route:r}=ot(n.pathname);return void fe(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:c})}z=new AbortController;let f,m=Ee(e.history,n,z.signal,r&&r.submission);if(r&&r.pendingError)f=[Re(s).route.id,{type:w.error,error:r.pendingError}];else if(r&&r.submission&&Be(r.submission.formMethod)){let t=await async function(e,t,n,r,a,o){void 0===o&&(o={});Ne();let i,s=function(e,t){let n={state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text};return n}(t,n);if(pe({navigation:s},{flushSync:!0===o.flushSync}),a){let n=await ut(r,t.pathname,e.signal);if("aborted"===n.type)return{shortCircuited:!0};if("error"===n.type){let e=Re(n.partialMatches).route.id;return{matches:n.partialMatches,pendingActionResult:[e,{type:w.error,error:n.error}]}}if(!n.matches){let{notFoundMatches:e,error:n,route:r}=ot(t.pathname);return{matches:e,pendingActionResult:[r.id,{type:w.error,error:n}]}}r=n.matches}let c=We(r,t);if(c.route.action||c.route.lazy){if(i=(await Se("action",L,e,[c],r,null))[c.route.id],e.signal.aborted)return{shortCircuited:!0}}else i={type:w.error,error:De(405,{method:e.method,pathname:t.pathname,routeId:c.route.id})};if(Ie(i)){let t;if(o&&null!=o.replace)t=o.replace;else{t=_e(i.response.headers.get("Location"),new URL(e.url),h)===L.location.pathname+L.location.search}return await xe(e,i,!0,{submission:n,replace:t}),{shortCircuited:!0}}if(Ae(i))throw De(400,{type:"defer-action"});if(Te(i)){let e=Re(r,c.route.id);return!0!==(o&&o.replace)&&(A=l.Push),{matches:r,pendingActionResult:[e.route.id,i]}}return{matches:r,pendingActionResult:[c.route.id,i]}}(m,n,r.submission,s,p.active,{replace:r.replace,flushSync:c});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(Te(r)&&J(r.error)&&404===r.error.status)return z=null,void fe(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}})}s=t.matches||s,f=t.pendingActionResult,i=Je(n,r.submission),c=!1,p.active=!1,m=Ee(e.history,m.url,m.signal)}let{shortCircuited:v,matches:g,loaderData:b,errors:_}=await async function(t,n,r,a,i,s,l,c,p,f,m){let v=i||Je(n,s),g=s||l||Qe(v),b=!(B||y.v7_partialHydration&&p);if(a){if(b){let e=ke(m);pe(d({navigation:v},void 0!==e?{actionData:e}:{}),{flushSync:f})}let e=await ut(r,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=Re(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(!e.matches){let{error:e,notFoundMatches:t,route:r}=ot(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}r=e.matches}let w=o||u,[_,E]=de(e.history,L,r,g,n,y.v7_partialHydration&&!0===p,y.v7_skipActionErrorRevalidation,F,H,$,Z,K,G,w,h,m);if(it((e=>!(r&&r.some((t=>t.route.id===e)))||_&&_.some((t=>t.route.id===e)))),Q=++W,0===_.length&&0===E.length){let e=et();return fe(n,d({matches:r,loaderData:{},errors:m&&Te(m[1])?{[m[0]]:m[1].error}:null},Pe(m),e?{fetchers:new Map(L.fetchers)}:{}),{flushSync:f}),{shortCircuited:!0}}if(b){let e={};if(!a){e.navigation=v;let t=ke(m);void 0!==t&&(e.actionData=t)}E.length>0&&(e.fetchers=function(e){return e.forEach((e=>{let t=L.fetchers.get(e.key),n=Ye(void 0,t?t.data:void 0);L.fetchers.set(e.key,n)})),new Map(L.fetchers)}(E)),pe(e,{flushSync:f})}E.forEach((e=>{Xe(e.key),e.controller&&q.set(e.key,e.controller)}));let k=()=>E.forEach((e=>Xe(e.key)));z&&z.signal.addEventListener("abort",k);let{loaderResults:x,fetcherResults:S}=await je(L,r,_,E,t);if(t.signal.aborted)return{shortCircuited:!0};z&&z.signal.removeEventListener("abort",k);E.forEach((e=>q.delete(e.key)));let C=ze(x);if(C)return await xe(t,C.result,!0,{replace:c}),{shortCircuited:!0};if(C=ze(S),C)return G.add(C.key),await xe(t,C.result,!0,{replace:c}),{shortCircuited:!0};let{loaderData:M,errors:P}=Ce(L,r,x,m,E,S,se);se.forEach(((e,t)=>{e.subscribe((n=>{(n||e.done)&&se.delete(t)}))})),y.v7_partialHydration&&p&&L.errors&&(P=d({},L.errors,P));let R=et(),O=tt(Q),D=R||O||E.length>0;return d({matches:r,loaderData:M,errors:P},D?{fetchers:new Map(L.fetchers)}:{})}(m,n,s,p.active,i,r&&r.submission,r&&r.fetcherSubmission,r&&r.replace,r&&!0===r.initialHydration,c,f);v||(z=null,fe(n,d({matches:g||s},Pe(f),{loaderData:b,errors:_})))}function ke(e){return e&&!Te(e[1])?{[e[0]]:e[1].data}:L.actionData?0===Object.keys(L.actionData).length?null:L.actionData:void 0}async function xe(r,a,o,i){let{submission:s,fetcherSubmission:c,preventScrollReset:u,replace:f}=void 0===i?{}:i;a.response.headers.has("X-Remix-Revalidate")&&(F=!0);let m=a.response.headers.get("Location");p(m,"Expected a Location header on the redirect Response"),m=_e(m,new URL(r.url),h);let g=v(L.location,m,{_isRedirect:!0});if(n){let n=!1;if(a.response.headers.has("X-Remix-Reload-Document"))n=!0;else if(ae.test(m)){const r=e.history.createURL(m);n=r.origin!==t.location.origin||null==N(r.pathname,h)}if(n)return void(f?t.location.replace(m):t.location.assign(m))}z=null;let y=!0===f||a.response.headers.has("X-Remix-Replace")?l.Replace:l.Push,{formMethod:b,formAction:w,formEncType:_}=L.navigation;!s&&!c&&b&&w&&_&&(s=Qe(L.navigation));let E=s||c;if(ee.has(a.response.status)&&E&&Be(E.formMethod))await ve(y,g,{submission:d({},E,{formAction:m}),preventScrollReset:u||T,enableViewTransition:o?I:void 0});else{let e=Je(g,s);await ve(y,g,{overrideNavigation:e,fetcherSubmission:c,preventScrollReset:u||T,enableViewTransition:o?I:void 0})}}async function Se(e,t,n,r,o,i){let s,l={};try{s=await ye(m,e,t,n,r,o,i,c,a)}catch(e){return r.forEach((t=>{l[t.route.id]={type:w.error,error:e}})),l}for(let[e,t]of Object.entries(s))if(Le(t)){let r=t.result;l[e]={type:w.redirect,response:we(r,n,e,o,h,y.v7_relativeSplatPath)}}else l[e]=await be(t);return l}async function je(t,n,r,a,o){let i=t.matches,s=Se("loader",t,o,r,n,null),l=Promise.all(a.map((async n=>{if(n.matches&&n.match&&n.controller){let r=(await Se("loader",t,Ee(e.history,n.path,n.controller.signal),[n.match],n.matches,n.key))[n.match.route.id];return{[n.key]:r}}return Promise.resolve({[n.key]:{type:w.error,error:De(404,{pathname:n.path})}})}))),c=await s,u=(await l).reduce(((e,t)=>Object.assign(e,t)),{});return await Promise.all([Fe(n,c,o.signal,i,t.loaderData),He(n,u,a)]),{loaderResults:c,fetcherResults:u}}function Ne(){F=!0,H.push(...it()),K.forEach(((e,t)=>{q.has(t)&&$.add(t),Xe(t)}))}function Ue(e,t,n){void 0===n&&(n={}),L.fetchers.set(e,t),pe({fetchers:new Map(L.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function Ve(e,t,n,r){void 0===r&&(r={});let a=Re(L.matches,t);Ke(e),pe({errors:{[a.route.id]:n},fetchers:new Map(L.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function qe(e){return X.set(e,(X.get(e)||0)+1),Z.has(e)&&Z.delete(e),L.fetchers.get(e)||ne}function Ke(e){let t=L.fetchers.get(e);!q.has(e)||t&&"loading"===t.state&&Y.has(e)||Xe(e),K.delete(e),Y.delete(e),G.delete(e),y.v7_fetcherPersist&&Z.delete(e),$.delete(e),L.fetchers.delete(e)}function Xe(e){let t=q.get(e);t&&(t.abort(),q.delete(e))}function Ze(e){for(let t of e){let e=Ge(qe(t).data);L.fetchers.set(t,e)}}function et(){let e=[],t=!1;for(let n of G){let r=L.fetchers.get(n);p(r,"Expected fetcher: "+n),"loading"===r.state&&(G.delete(n),e.push(n),t=!0)}return Ze(e),t}function tt(e){let t=[];for(let[n,r]of Y)if(r<e){let e=L.fetchers.get(n);p(e,"Expected fetcher: "+n),"loading"===e.state&&(Xe(n),Y.delete(n),t.push(n))}return Ze(t),t.length>0}function nt(e){L.blockers.delete(e),ue.delete(e)}function rt(e,t){let n=L.blockers.get(e)||re;p("unblocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"proceeding"===t.state||"blocked"===n.state&&"unblocked"===t.state||"proceeding"===n.state&&"unblocked"===t.state,"Invalid blocker state transition: "+n.state+" -> "+t.state);let r=new Map(L.blockers);r.set(e,t),pe({blockers:r})}function at(e){let{currentLocation:t,nextLocation:n,historyAction:r}=e;if(0===ue.size)return;ue.size>1&&f(!1,"A router only supports one blocker at a time");let a=Array.from(ue.entries()),[o,i]=a[a.length-1],s=L.blockers.get(o);return s&&"proceeding"===s.state?void 0:i({currentLocation:t,nextLocation:n,historyAction:r})?o:void 0}function ot(e){let t=De(404,{pathname:e}),n=o||u,{matches:r,route:a}=Oe(n);return it(),{notFoundMatches:r,route:a,error:t}}function it(e){let t=[];return se.forEach(((n,r)=>{e&&!e(r)||(n.cancel(),t.push(r),se.delete(r))})),t}function st(e,t){if(C){return C(e,t.map((e=>function(e,t){let{route:n,pathname:r,params:a}=e;return{id:n.id,pathname:r,params:a,data:t[n.id],handle:n.handle}}(e,L.loaderData))))||e.key}return e.key}function lt(e,t){if(S){let n=st(e,t),r=S[n];if("number"==typeof r)return r}return null}function ct(e,t,n){if(g){if(!e){return{active:!0,matches:x(t,n,h,!0)||[]}}if(Object.keys(e[0].params).length>0){return{active:!0,matches:x(t,n,h,!0)}}}return{active:!1,matches:null}}async function ut(e,t,n,r){if(!g)return{type:"success",matches:e};let i=e;for(;;){let e=null==o,s=o||u,l=c;try{await g({signal:n,path:t,matches:i,fetcherKey:r,patch:(e,t)=>{n.aborted||me(e,t,s,l,a)}})}catch(e){return{type:"error",error:e,partialMatches:i}}finally{e&&!n.aborted&&(u=[...u])}if(n.aborted)return{type:"aborted"};let d=k(s,t,h);if(d)return{type:"success",matches:d};let p=x(s,t,h,!0);if(!p||i.length===p.length&&i.every(((e,t)=>e.route.id===p[t].route.id)))return{type:"success",matches:null};i=p}}return s={get basename(){return h},get future(){return y},get state(){return L},get routes(){return u},get window(){return t},initialize:function(){if(b=e.history.listen((t=>{let{action:n,location:r,delta:a}=t;if(j)return j(),void(j=void 0);f(0===ue.size||null!=a,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs.  This can also happen if you are using createHashRouter and the user manually changes the URL.");let o=at({currentLocation:L.location,nextLocation:r,historyAction:n});if(o&&null!=a){let t=new Promise((e=>{j=e}));return e.history.go(-1*a),void rt(o,{state:"blocked",location:r,proceed(){rt(o,{state:"proceeding",proceed:void 0,reset:void 0,location:r}),t.then((()=>e.history.go(a)))},reset(){let e=new Map(L.blockers);e.set(o,re),pe({blockers:e})}})}return ve(n,r)})),n){!function(e,t){try{let n=e.sessionStorage.getItem(ie);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch(e){}}(t,U);let e=()=>function(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(ie,JSON.stringify(n))}catch(e){f(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}}(t,U);t.addEventListener("pagehide",e),V=()=>t.removeEventListener("pagehide",e)}return L.initialized||ve(l.Pop,L.location,{initialHydration:!0}),s},subscribe:function(e){return _.add(e),()=>_.delete(e)},enableScrollRestoration:function(e,t,n){if(S=e,M=t,C=n||null,!P&&L.navigation===te){P=!0;let e=lt(L.location,L.matches);null!=e&&pe({restoreScrollPosition:e})}return()=>{S=null,M=null,C=null}},navigate:async function t(n,r){if("number"==typeof n)return void e.history.go(n);let a=le(L.location,L.matches,h,y.v7_prependBasename,n,y.v7_relativeSplatPath,null==r?void 0:r.fromRouteId,null==r?void 0:r.relative),{path:o,submission:i,error:s}=ce(y.v7_normalizeFormMethod,!1,a,r),c=L.location,u=v(L.location,o,r&&r.state);u=d({},u,e.history.encodeLocation(u));let p=r&&null!=r.replace?r.replace:void 0,f=l.Push;!0===p?f=l.Replace:!1===p||null!=i&&Be(i.formMethod)&&i.formAction===L.location.pathname+L.location.search&&(f=l.Replace);let m=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,g=!0===(r&&r.flushSync),b=at({currentLocation:c,nextLocation:u,historyAction:f});if(!b)return await ve(f,u,{submission:i,pendingError:s,preventScrollReset:m,replace:r&&r.replace,enableViewTransition:r&&r.viewTransition,flushSync:g});rt(b,{state:"blocked",location:u,proceed(){rt(b,{state:"proceeding",proceed:void 0,reset:void 0,location:u}),t(n,r)},reset(){let e=new Map(L.blockers);e.set(b,re),pe({blockers:e})}})},fetch:function(t,n,a,i){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Xe(t);let s=!0===(i&&i.flushSync),l=o||u,c=le(L.location,L.matches,h,y.v7_prependBasename,a,y.v7_relativeSplatPath,n,null==i?void 0:i.relative),d=k(l,c,h),f=ct(d,l,c);if(f.active&&f.matches&&(d=f.matches),!d)return void Ve(t,n,De(404,{pathname:c}),{flushSync:s});let{path:m,submission:v,error:g}=ce(y.v7_normalizeFormMethod,!0,c,i);if(g)return void Ve(t,n,g,{flushSync:s});let b=We(d,m),w=!0===(i&&i.preventScrollReset);v&&Be(v.formMethod)?async function(t,n,r,a,i,s,l,c,d){function f(e){if(!e.route.action&&!e.route.lazy){let e=De(405,{method:d.formMethod,pathname:r,routeId:n});return Ve(t,n,e,{flushSync:l}),!0}return!1}if(Ne(),K.delete(t),!s&&f(a))return;let m=L.fetchers.get(t);Ue(t,function(e,t){let n={state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0};return n}(d,m),{flushSync:l});let v=new AbortController,g=Ee(e.history,r,v.signal,d);if(s){let e=await ut(i,new URL(g.url).pathname,g.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void Ve(t,n,e.error,{flushSync:l});if(!e.matches)return void Ve(t,n,De(404,{pathname:r}),{flushSync:l});if(f(a=We(i=e.matches,r)))return}q.set(t,v);let b=W,w=await Se("action",L,g,[a],i,t),_=w[a.route.id];if(g.signal.aborted)return void(q.get(t)===v&&q.delete(t));if(y.v7_fetcherPersist&&Z.has(t)){if(Ie(_)||Te(_))return void Ue(t,Ge(void 0))}else{if(Ie(_))return q.delete(t),Q>b?void Ue(t,Ge(void 0)):(G.add(t),Ue(t,Ye(d)),xe(g,_,!1,{fetcherSubmission:d,preventScrollReset:c}));if(Te(_))return void Ve(t,n,_.error)}if(Ae(_))throw De(400,{type:"defer-action"});let E=L.navigation.location||L.location,x=Ee(e.history,E,v.signal),S=o||u,C="idle"!==L.navigation.state?k(S,L.navigation.location,h):L.matches;p(C,"Didn't find any matches after fetcher action");let M=++W;Y.set(t,M);let P=Ye(d,_.data);L.fetchers.set(t,P);let[R,O]=de(e.history,L,C,d,E,!1,y.v7_skipActionErrorRevalidation,F,H,$,Z,K,G,S,h,[a.route.id,_]);O.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,n=L.fetchers.get(t),r=Ye(void 0,n?n.data:void 0);L.fetchers.set(t,r),Xe(t),e.controller&&q.set(t,e.controller)})),pe({fetchers:new Map(L.fetchers)});let D=()=>O.forEach((e=>Xe(e.key)));v.signal.addEventListener("abort",D);let{loaderResults:j,fetcherResults:T}=await je(L,C,R,O,x);if(v.signal.aborted)return;v.signal.removeEventListener("abort",D),Y.delete(t),q.delete(t),O.forEach((e=>q.delete(e.key)));let I=ze(j);if(I)return xe(x,I.result,!1,{preventScrollReset:c});if(I=ze(T),I)return G.add(I.key),xe(x,I.result,!1,{preventScrollReset:c});let{loaderData:N,errors:U}=Ce(L,C,j,void 0,O,T,se);if(L.fetchers.has(t)){let e=Ge(_.data);L.fetchers.set(t,e)}tt(M),"loading"===L.navigation.state&&M>Q?(p(A,"Expected pending action"),z&&z.abort(),fe(L.navigation.location,{matches:C,loaderData:N,errors:U,fetchers:new Map(L.fetchers)})):(pe({errors:U,loaderData:Me(L.loaderData,N,C,U),fetchers:new Map(L.fetchers)}),F=!1)}(t,n,m,b,d,f.active,s,w,v):(K.set(t,{routeId:n,path:m}),async function(t,n,r,a,o,i,s,l,c){let u=L.fetchers.get(t);Ue(t,Ye(c,u?u.data:void 0),{flushSync:s});let d=new AbortController,h=Ee(e.history,r,d.signal);if(i){let e=await ut(o,new URL(h.url).pathname,h.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void Ve(t,n,e.error,{flushSync:s});if(!e.matches)return void Ve(t,n,De(404,{pathname:r}),{flushSync:s});a=We(o=e.matches,r)}q.set(t,d);let f=W,m=await Se("loader",L,h,[a],o,t),v=m[a.route.id];Ae(v)&&(v=await $e(v,h.signal,!0)||v);q.get(t)===d&&q.delete(t);if(h.signal.aborted)return;if(Z.has(t))return void Ue(t,Ge(void 0));if(Ie(v))return Q>f?void Ue(t,Ge(void 0)):(G.add(t),void await xe(h,v,!1,{preventScrollReset:l}));if(Te(v))return void Ve(t,n,v.error);p(!Ae(v),"Unhandled fetcher deferred data"),Ue(t,Ge(v.data))}(t,n,m,b,d,f.active,s,w,v))},revalidate:function(){Ne(),pe({revalidation:"loading"}),"submitting"!==L.navigation.state&&("idle"!==L.navigation.state?ve(A||L.historyAction,L.navigation.location,{overrideNavigation:L.navigation,enableViewTransition:!0===I}):ve(L.historyAction,L.location,{startUninterruptedRevalidation:!0}))},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:qe,deleteFetcher:function(e){let t=(X.get(e)||0)-1;t<=0?(X.delete(e),Z.add(e),y.v7_fetcherPersist||Ke(e)):X.set(e,t),pe({fetchers:new Map(L.fetchers)})},dispose:function(){b&&b(),V&&V(),_.clear(),z&&z.abort(),L.fetchers.forEach(((e,t)=>Ke(t))),L.blockers.forEach(((e,t)=>nt(t)))},getBlocker:function(e,t){let n=L.blockers.get(e)||re;return ue.get(e)!==t&&ue.set(e,t),n},deleteBlocker:nt,patchRoutes:function(e,t){let n=null==o;me(e,t,o||u,c,a),n&&(u=[...u],pe({}))},_internalFetchControllers:q,_internalActiveDeferreds:se,_internalSetRoutes:function(e){c={},o=E(e,a,void 0,c)}},s}Symbol("deferred");function le(e,t,n,r,a,o,i,s){let l,c;if(i){l=[];for(let e of t)if(l.push(e),e.route.id===i){c=e;break}}else l=t,c=t[t.length-1];let u=F(a||".",B(l,o),N(e.pathname,n)||e.pathname,"path"===s);if(null==a&&(u.search=e.search,u.hash=e.hash),(null==a||""===a||"."===a)&&c){let e=qe(u.search);if(c.route.index&&!e)u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&e){let e=new URLSearchParams(u.search),t=e.getAll("index");e.delete("index"),t.filter((e=>e)).forEach((t=>e.append("index",t)));let n=e.toString();u.search=n?"?"+n:""}}return r&&"/"!==n&&(u.pathname="/"===u.pathname?n:H([n,u.pathname])),g(u)}function ce(e,t,n,r){if(!r||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(r))return{path:n};if(r.formMethod&&!Ve(r.formMethod))return{path:n,error:De(405,{method:r.formMethod})};let a,o,i=()=>({path:n,error:De(400,{type:"invalid-body"})}),s=r.formMethod||"get",l=e?s.toUpperCase():s.toLowerCase(),c=je(n);if(void 0!==r.body){if("text/plain"===r.formEncType){if(!Be(l))return i();let e="string"==typeof r.body?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce(((e,t)=>{let[n,r]=t;return""+e+n+"="+r+"\n"}),""):String(r.body);return{path:n,submission:{formMethod:l,formAction:c,formEncType:r.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===r.formEncType){if(!Be(l))return i();try{let e="string"==typeof r.body?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:l,formAction:c,formEncType:r.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return i()}}}if(p("function"==typeof FormData,"FormData is not available in this environment"),r.formData)a=ke(r.formData),o=r.formData;else if(r.body instanceof FormData)a=ke(r.body),o=r.body;else if(r.body instanceof URLSearchParams)a=r.body,o=xe(a);else if(null==r.body)a=new URLSearchParams,o=new FormData;else try{a=new URLSearchParams(r.body),o=xe(a)}catch(e){return i()}let u={formMethod:l,formAction:c,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:o,json:void 0,text:void 0};if(Be(u.formMethod))return{path:n,submission:u};let d=y(n);return t&&d.search&&qe(d.search)&&a.append("index",""),d.search="?"+a,{path:g(d),submission:u}}function ue(e,t,n){void 0===n&&(n=!1);let r=e.findIndex((e=>e.route.id===t));return r>=0?e.slice(0,n?r+1:r):e}function de(e,t,n,r,a,o,i,s,l,c,u,h,p,f,m,v){let g=v?Te(v[1])?v[1].error:v[1].data:void 0,y=e.createURL(t.location),b=e.createURL(a),w=n;o&&t.errors?w=ue(n,Object.keys(t.errors)[0],!0):v&&Te(v[1])&&(w=ue(n,v[0]));let _=v?v[1].statusCode:void 0,E=i&&_&&_>=400,x=w.filter(((e,n)=>{let{route:a}=e;if(a.lazy)return!0;if(null==a.loader)return!1;if(o)return he(a,t.loaderData,t.errors);if(function(e,t,n){let r=!t||n.route.id!==t.route.id,a=void 0===e[n.route.id];return r||a}(t.loaderData,t.matches[n],e)||l.some((t=>t===e.route.id)))return!0;let i=t.matches[n],c=e;return fe(e,d({currentUrl:y,currentParams:i.params,nextUrl:b,nextParams:c.params},r,{actionResult:g,actionStatus:_,defaultShouldRevalidate:!E&&(s||y.pathname+y.search===b.pathname+b.search||y.search!==b.search||pe(i,c))}))})),S=[];return h.forEach(((e,a)=>{if(o||!n.some((t=>t.route.id===e.routeId))||u.has(a))return;let i=k(f,e.path,m);if(!i)return void S.push({key:a,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let l=t.fetchers.get(a),h=We(i,e.path),v=!1;p.has(a)?v=!1:c.has(a)?(c.delete(a),v=!0):v=l&&"idle"!==l.state&&void 0===l.data?s:fe(h,d({currentUrl:y,currentParams:t.matches[t.matches.length-1].params,nextUrl:b,nextParams:n[n.length-1].params},r,{actionResult:g,actionStatus:_,defaultShouldRevalidate:!E&&s})),v&&S.push({key:a,routeId:e.routeId,path:e.path,matches:i,match:h,controller:new AbortController})})),[x,S]}function he(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=null!=t&&void 0!==t[e.id],a=null!=n&&void 0!==n[e.id];return!(!r&&a)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!r&&!a)}function pe(e,t){let n=e.route.path;return e.pathname!==t.pathname||null!=n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function fe(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"==typeof n)return n}return t.defaultShouldRevalidate}function me(e,t,n,r,a){var o;let i;if(e){let t=r[e];p(t,"No route found to patch children into: routeId = "+e),t.children||(t.children=[]),i=t.children}else i=n;let s=E(t.filter((e=>!i.some((t=>ve(e,t))))),a,[e||"_","patch",String((null==(o=i)?void 0:o.length)||"0")],r);i.push(...s)}function ve(e,t){return"id"in e&&"id"in t&&e.id===t.id||e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive&&(!(e.children&&0!==e.children.length||t.children&&0!==t.children.length)||e.children.every(((e,n)=>{var r;return null==(r=t.children)?void 0:r.some((t=>ve(e,t)))})))}async function ge(e){let{matches:t}=e,n=t.filter((e=>e.shouldLoad));return(await Promise.all(n.map((e=>e.resolve())))).reduce(((e,t,r)=>Object.assign(e,{[n[r].route.id]:t})),{})}async function ye(e,t,n,r,a,o,i,s,l,c){let u=o.map((e=>e.route.lazy?async function(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let a=n[e.id];p(a,"No route found in manifest");let o={};for(let e in r){let t=void 0!==a[e]&&"hasErrorBoundary"!==e;f(!t,'Route "'+a.id+'" has a static property "'+e+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+e+'" will be ignored.'),t||_.has(e)||(o[e]=r[e])}Object.assign(a,o),Object.assign(a,d({},t(a),{lazy:void 0}))}(e.route,l,s):void 0)),h=o.map(((e,n)=>{let o=u[n],i=a.some((t=>t.route.id===e.route.id));return d({},e,{shouldLoad:i,resolve:async n=>(n&&"GET"===r.method&&(e.route.lazy||e.route.loader)&&(i=!0),i?async function(e,t,n,r,a,o){let i,s,l=r=>{let i,l=new Promise(((e,t)=>i=t));s=()=>i(),t.signal.addEventListener("abort",s);let c=a=>"function"!=typeof r?Promise.reject(new Error('You cannot call the handler for a route which defines a boolean "'+e+'" [routeId: '+n.route.id+"]")):r({request:t,params:n.params,context:o},...void 0!==a?[a]:[]),u=(async()=>{try{let e=await(a?a((e=>c(e))):c());return{type:"data",result:e}}catch(e){return{type:"error",result:e}}})();return Promise.race([u,l])};try{let a=n.route[e];if(r)if(a){let e,[t]=await Promise.all([l(a).catch((t=>{e=t})),r]);if(void 0!==e)throw e;i=t}else{if(await r,a=n.route[e],!a){if("action"===e){let e=new URL(t.url),r=e.pathname+e.search;throw De(405,{method:t.method,pathname:r,routeId:n.route.id})}return{type:w.data,result:void 0}}i=await l(a)}else{if(!a){let e=new URL(t.url);throw De(404,{pathname:e.pathname+e.search})}i=await l(a)}p(void 0!==i.result,"You defined "+("action"===e?"an action":"a loader")+' for route "'+n.route.id+"\" but didn't return anything from your `"+e+"` function. Please return a value or `null`.")}catch(e){return{type:w.error,result:e}}finally{s&&t.signal.removeEventListener("abort",s)}return i}(t,r,e,o,n,c):Promise.resolve({type:w.data,result:void 0}))})})),m=await e({matches:h,request:r,params:o[0].params,fetcherKey:i,context:c});try{await Promise.all(u)}catch(e){}return m}async function be(e){let{result:t,type:n}=e;if(Ue(t)){let e;try{let n=t.headers.get("Content-Type");e=n&&/\bapplication\/json\b/.test(n)?null==t.body?null:await t.json():await t.text()}catch(e){return{type:w.error,error:e}}return n===w.error?{type:w.error,error:new Q(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:w.data,data:e,statusCode:t.status,headers:t.headers}}var r,a,o,i,s,l,c,u;return n===w.error?Ne(t)?t.data instanceof Error?{type:w.error,error:t.data,statusCode:null==(o=t.init)?void 0:o.status,headers:null!=(i=t.init)&&i.headers?new Headers(t.init.headers):void 0}:{type:w.error,error:new Q((null==(r=t.init)?void 0:r.status)||500,void 0,t.data),statusCode:J(t)?t.status:void 0,headers:null!=(a=t.init)&&a.headers?new Headers(t.init.headers):void 0}:{type:w.error,error:t,statusCode:J(t)?t.status:void 0}:function(e){let t=e;return t&&"object"==typeof t&&"object"==typeof t.data&&"function"==typeof t.subscribe&&"function"==typeof t.cancel&&"function"==typeof t.resolveData}(t)?{type:w.deferred,deferredData:t,statusCode:null==(s=t.init)?void 0:s.status,headers:(null==(l=t.init)?void 0:l.headers)&&new Headers(t.init.headers)}:Ne(t)?{type:w.data,data:t.data,statusCode:null==(c=t.init)?void 0:c.status,headers:null!=(u=t.init)&&u.headers?new Headers(t.init.headers):void 0}:{type:w.data,data:t}}function we(e,t,n,r,a,o){let i=e.headers.get("Location");if(p(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!ae.test(i)){let s=r.slice(0,r.findIndex((e=>e.route.id===n))+1);i=le(new URL(t.url),s,a,!0,i,o),e.headers.set("Location",i)}return e}function _e(e,t,n){if(ae.test(e)){let r=e,a=r.startsWith("//")?new URL(t.protocol+r):new URL(r),o=null!=N(a.pathname,n);if(a.origin===t.origin&&o)return a.pathname+a.search+a.hash}return e}function Ee(e,t,n,r){let a=e.createURL(je(t)).toString(),o={signal:n};if(r&&Be(r.formMethod)){let{formMethod:e,formEncType:t}=r;o.method=e.toUpperCase(),"application/json"===t?(o.headers=new Headers({"Content-Type":t}),o.body=JSON.stringify(r.json)):"text/plain"===t?o.body=r.text:"application/x-www-form-urlencoded"===t&&r.formData?o.body=ke(r.formData):o.body=r.formData}return new Request(a,o)}function ke(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,"string"==typeof r?r:r.name);return t}function xe(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Se(e,t,n,r,a){let o,i={},s=null,l=!1,c={},u=n&&Te(n[1])?n[1].error:void 0;return e.forEach((n=>{if(!(n.route.id in t))return;let d=n.route.id,h=t[d];if(p(!Ie(h),"Cannot handle redirect results in processLoaderData"),Te(h)){let t=h.error;if(void 0!==u&&(t=u,u=void 0),s=s||{},a)s[d]=t;else{let n=Re(e,d);null==s[n.route.id]&&(s[n.route.id]=t)}i[d]=void 0,l||(l=!0,o=J(h.error)?h.error.status:500),h.headers&&(c[d]=h.headers)}else Ae(h)?(r.set(d,h.deferredData),i[d]=h.deferredData.data,null==h.statusCode||200===h.statusCode||l||(o=h.statusCode),h.headers&&(c[d]=h.headers)):(i[d]=h.data,h.statusCode&&200!==h.statusCode&&!l&&(o=h.statusCode),h.headers&&(c[d]=h.headers))})),void 0!==u&&n&&(s={[n[0]]:u},i[n[0]]=void 0),{loaderData:i,errors:s,statusCode:o||200,loaderHeaders:c}}function Ce(e,t,n,r,a,o,i){let{loaderData:s,errors:l}=Se(t,n,r,i,!1);return a.forEach((t=>{let{key:n,match:r,controller:a}=t,i=o[n];if(p(i,"Did not find corresponding fetcher result"),!a||!a.signal.aborted)if(Te(i)){let t=Re(e.matches,null==r?void 0:r.route.id);l&&l[t.route.id]||(l=d({},l,{[t.route.id]:i.error})),e.fetchers.delete(n)}else if(Ie(i))p(!1,"Unhandled fetcher revalidation redirect");else if(Ae(i))p(!1,"Unhandled fetcher deferred data");else{let t=Ge(i.data);e.fetchers.set(n,t)}})),{loaderData:s,errors:l}}function Me(e,t,n,r){let a=d({},t);for(let o of n){let n=o.route.id;if(t.hasOwnProperty(n)?void 0!==t[n]&&(a[n]=t[n]):void 0!==e[n]&&o.route.loader&&(a[n]=e[n]),r&&r.hasOwnProperty(n))break}return a}function Pe(e){return e?Te(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Re(e,t){return(t?e.slice(0,e.findIndex((e=>e.route.id===t))+1):[...e]).reverse().find((e=>!0===e.route.hasErrorBoundary))||e[0]}function Oe(e){let t=1===e.length?e[0]:e.find((e=>e.index||!e.path||"/"===e.path))||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function De(e,t){let{pathname:n,routeId:r,method:a,type:o,message:i}=void 0===t?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return 400===e?(s="Bad Request",a&&n&&r?l="You made a "+a+' request to "'+n+'" but did not provide a `loader` for route "'+r+'", so there is no way to handle the request.':"defer-action"===o?l="defer() is not supported in actions":"invalid-body"===o&&(l="Unable to encode submission body")):403===e?(s="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):404===e?(s="Not Found",l='No route matches URL "'+n+'"'):405===e&&(s="Method Not Allowed",a&&n&&r?l="You made a "+a.toUpperCase()+' request to "'+n+'" but did not provide an `action` for route "'+r+'", so there is no way to handle the request.':a&&(l='Invalid request method "'+a.toUpperCase()+'"')),new Q(e||500,s,new Error(l),!0)}function ze(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(Ie(r))return{key:n,result:r}}}function je(e){return g(d({},"string"==typeof e?y(e):e,{hash:""}))}function Le(e){return Ue(e.result)&&Z.has(e.result.status)}function Ae(e){return e.type===w.deferred}function Te(e){return e.type===w.error}function Ie(e){return(e&&e.type)===w.redirect}function Ne(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function Ue(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function Ve(e){return X.has(e.toLowerCase())}function Be(e){return G.has(e.toLowerCase())}async function Fe(e,t,n,r,a){let o=Object.entries(t);for(let i=0;i<o.length;i++){let[s,l]=o[i],c=e.find((e=>(null==e?void 0:e.route.id)===s));if(!c)continue;let u=r.find((e=>e.route.id===c.route.id)),d=null!=u&&!pe(u,c)&&void 0!==(a&&a[c.route.id]);Ae(l)&&d&&await $e(l,n,!1).then((e=>{e&&(t[s]=e)}))}}async function He(e,t,n){for(let r=0;r<n.length;r++){let{key:a,routeId:o,controller:i}=n[r],s=t[a];e.find((e=>(null==e?void 0:e.route.id)===o))&&(Ae(s)&&(p(i,"Expected an AbortController for revalidating fetcher deferred result"),await $e(s,i.signal,!0).then((e=>{e&&(t[a]=e)}))))}}async function $e(e,t,n){if(void 0===n&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:w.data,data:e.deferredData.unwrappedData}}catch(e){return{type:w.error,error:e}}return{type:w.data,data:e.deferredData.data}}}function qe(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function We(e,t){let n="string"==typeof t?y(t).search:t.search;if(e[e.length-1].route.index&&qe(n||""))return e[e.length-1];let r=V(e);return r[r.length-1]}function Qe(e){let{formMethod:t,formAction:n,formEncType:r,text:a,formData:o,json:i}=e;if(t&&n&&r)return null!=a?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:a}:null!=o?{formMethod:t,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0}:void 0!==i?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:i,text:void 0}:void 0}function Je(e,t){if(t){return{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}return{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Ye(e,t){if(e){return{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}}return{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Ge(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}
/**
 * React Router v6.30.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */
function Ke(){return Ke=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},Ke.apply(this,arguments)}const Xe=u.createContext(null);const Ze=u.createContext(null);const et=u.createContext(null);const tt=u.createContext(null);const nt=u.createContext({outlet:null,matches:[],isDataRoute:!1});const rt=u.createContext(null);function at(){return null!=u.useContext(tt)}function ot(){return at()||p(!1),u.useContext(tt).location}function it(e){at()||p(!1);let{pathname:t}=ot();return u.useMemo((()=>T(e,I(t))),[t,e])}function st(e){u.useContext(et).static||u.useLayoutEffect(e)}function lt(){let{isDataRoute:e}=u.useContext(nt);return e?function(){let{router:e}=bt(gt.UseNavigateStable),t=_t(yt.UseNavigateStable),n=u.useRef(!1);st((()=>{n.current=!0}));let r=u.useCallback((function(r,a){void 0===a&&(a={}),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,Ke({fromRouteId:t},a)))}),[e,t]);return r}():function(){at()||p(!1);let e=u.useContext(Xe),{basename:t,future:n,navigator:r}=u.useContext(et),{matches:a}=u.useContext(nt),{pathname:o}=ot(),i=JSON.stringify(B(a,n.v7_relativeSplatPath)),s=u.useRef(!1);st((()=>{s.current=!0}));let l=u.useCallback((function(n,a){if(void 0===a&&(a={}),!s.current)return;if("number"==typeof n)return void r.go(n);let l=F(n,JSON.parse(i),o,"path"===a.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:H([t,l.pathname])),(a.replace?r.replace:r.push)(l,a.state,a)}),[t,r,i,o,e]);return l}()}const ct=u.createContext(null);function ut(e,t){let{relative:n}=void 0===t?{}:t,{future:r}=u.useContext(et),{matches:a}=u.useContext(nt),{pathname:o}=ot(),i=JSON.stringify(B(a,r.v7_relativeSplatPath));return u.useMemo((()=>F(e,JSON.parse(i),o,"path"===n)),[e,i,o,n])}function dt(e,t,n,r){at()||p(!1);let{navigator:a}=u.useContext(et),{matches:o}=u.useContext(nt),i=o[o.length-1],s=i?i.params:{},c=(i&&i.pathname,i?i.pathnameBase:"/");i&&i.route;let d,h=ot();if(t){var f;let e="string"==typeof t?y(t):t;"/"===c||(null==(f=e.pathname)?void 0:f.startsWith(c))||p(!1),d=e}else d=h;let m=d.pathname||"/",v=m;if("/"!==c){let e=c.replace(/^\//,"").split("/");v="/"+m.replace(/^\//,"").split("/").slice(e.length).join("/")}let g=k(e,{pathname:v});let b=vt(g&&g.map((e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:H([c,a.encodeLocation?a.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?c:H([c,a.encodeLocation?a.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),o,n,r);return t&&b?u.createElement(tt.Provider,{value:{location:Ke({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:l.Pop}},b):b}function ht(){let e=function(){var e;let t=u.useContext(rt),n=wt(yt.UseRouteError),r=_t(yt.UseRouteError);if(void 0!==t)return t;return null==(e=n.errors)?void 0:e[r]}(),t=J(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r};return u.createElement(u.Fragment,null,u.createElement("h2",null,"Unexpected Application Error!"),u.createElement("h3",{style:{fontStyle:"italic"}},t),n?u.createElement("pre",{style:a},n):null,null)}const pt=u.createElement(ht,null);class ft extends u.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?u.createElement(nt.Provider,{value:this.props.routeContext},u.createElement(rt.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function mt(e){let{routeContext:t,match:n,children:r}=e,a=u.useContext(Xe);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),u.createElement(nt.Provider,{value:t},r)}function vt(e,t,n,r){var a;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===r&&(r=null),null==e){var o;if(!n)return null;if(n.errors)e=n.matches;else{if(!(null!=(o=r)&&o.v7_partialHydration&&0===t.length&&!n.initialized&&n.matches.length>0))return null;e=n.matches}}let i=e,s=null==(a=n)?void 0:a.errors;if(null!=s){let e=i.findIndex((e=>e.route.id&&void 0!==(null==s?void 0:s[e.route.id])));e>=0||p(!1),i=i.slice(0,Math.min(i.length,e+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(c=e),t.route.id){let{loaderData:e,errors:r}=n,a=t.route.loader&&void 0===e[t.route.id]&&(!r||void 0===r[t.route.id]);if(t.route.lazy||a){l=!0,i=c>=0?i.slice(0,c+1):[i[0]];break}}}return i.reduceRight(((e,r,a)=>{let o,d=!1,h=null,p=null;var f;n&&(o=s&&r.route.id?s[r.route.id]:void 0,h=r.route.errorElement||pt,l&&(c<0&&0===a?(f="route-fallback",!1||Et[f]||(Et[f]=!0),d=!0,p=null):c===a&&(d=!0,p=r.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,a+1)),v=()=>{let t;return t=o?h:d?p:r.route.Component?u.createElement(r.route.Component,null):r.route.element?r.route.element:e,u.createElement(mt,{match:r,routeContext:{outlet:e,matches:m,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===a)?u.createElement(ft,{location:n.location,revalidation:n.revalidation,component:h,error:o,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):v()}),null)}var gt=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(gt||{}),yt=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(yt||{});function bt(e){let t=u.useContext(Xe);return t||p(!1),t}function wt(e){let t=u.useContext(Ze);return t||p(!1),t}function _t(e){let t=function(e){let t=u.useContext(nt);return t||p(!1),t}(),n=t.matches[t.matches.length-1];return n.route.id||p(!1),n.route.id}const Et={};const kt=(e,t,n)=>{};function xt(e,t){void 0===(null==e?void 0:e.v7_startTransition)&&kt("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),void 0!==(null==e?void 0:e.v7_relativeSplatPath)||t&&void 0!==t.v7_relativeSplatPath||kt("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),t&&(void 0===t.v7_fetcherPersist&&kt("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),void 0===t.v7_normalizeFormMethod&&kt("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),void 0===t.v7_partialHydration&&kt("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),void 0===t.v7_skipActionErrorRevalidation&&kt("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}u.startTransition;function St(e){return function(e){let t=u.useContext(nt).outlet;return t?u.createElement(ct.Provider,{value:e},t):t}(e.context)}function Ct(e){p(!1)}function Mt(e){let{basename:t="/",children:n=null,location:r,navigationType:a=l.Pop,navigator:o,static:i=!1,future:s}=e;at()&&p(!1);let c=t.replace(/^\/*/,"/"),d=u.useMemo((()=>({basename:c,navigator:o,static:i,future:Ke({v7_relativeSplatPath:!1},s)})),[c,s,o,i]);"string"==typeof r&&(r=y(r));let{pathname:h="/",search:f="",hash:m="",state:v=null,key:g="default"}=r,b=u.useMemo((()=>{let e=N(h,c);return null==e?null:{location:{pathname:e,search:f,hash:m,state:v,key:g},navigationType:a}}),[c,h,f,m,v,g,a]);return null==b?null:u.createElement(et.Provider,{value:d},u.createElement(tt.Provider,{children:n,value:b}))}new Promise((()=>{}));u.Component;function Pt(e,t){void 0===t&&(t=[]);let n=[];return u.Children.forEach(e,((e,r)=>{if(!u.isValidElement(e))return;let a=[...t,r];if(e.type===u.Fragment)return void n.push.apply(n,Pt(e.props.children,a));e.type!==Ct&&p(!1),e.props.index&&e.props.children&&p(!1);let o={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=Pt(e.props.children,a)),n.push(o)})),n}function Rt(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:u.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:u.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:u.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}var Ot=ReactDOM;
/**
 * React Router DOM v6.30.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */
function Dt(){return Dt=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},Dt.apply(this,arguments)}function zt(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const jt=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Lt=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"];try{window.__reactRouterVersion="6"}catch(e){}function At(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Dt({},t,{errors:Tt(t.errors)})),t}function Tt(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&"RouteErrorResponse"===r.__type)n[e]=new Q(r.status,r.statusText,r.data,!0===r.internal);else if(r&&"Error"===r.__type){if(r.__subType){let t=window[r.__subType];if("function"==typeof t)try{let a=new t(r.message);a.stack="",n[e]=a}catch(e){}}if(null==n[e]){let t=new Error(r.message);t.stack="",n[e]=t}}else n[e]=r;return n}const It=u.createContext({isTransitioning:!1});const Nt=u.createContext(new Map);const Ut=u.startTransition,Vt=Ot.flushSync;u.useId;function Bt(e){Vt?Vt(e):e()}class Ft{constructor(){this.status="pending",this.promise=new Promise(((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}}))}}function Ht(e){let{fallbackElement:t,router:n,future:r}=e,[a,o]=u.useState(n.state),[i,s]=u.useState(),[l,c]=u.useState({isTransitioning:!1}),[d,h]=u.useState(),[p,f]=u.useState(),[m,v]=u.useState(),g=u.useRef(new Map),{v7_startTransition:y}=r||{},b=u.useCallback((e=>{y?function(e){Ut?Ut(e):e()}(e):e()}),[y]),w=u.useCallback(((e,t)=>{let{deletedFetchers:r,flushSync:a,viewTransitionOpts:i}=t;e.fetchers.forEach(((e,t)=>{void 0!==e.data&&g.current.set(t,e.data)})),r.forEach((e=>g.current.delete(e)));let l=null==n.window||null==n.window.document||"function"!=typeof n.window.document.startViewTransition;if(i&&!l){if(a){Bt((()=>{p&&(d&&d.resolve(),p.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:i.currentLocation,nextLocation:i.nextLocation})}));let t=n.window.document.startViewTransition((()=>{Bt((()=>o(e)))}));return t.finished.finally((()=>{Bt((()=>{h(void 0),f(void 0),s(void 0),c({isTransitioning:!1})}))})),void Bt((()=>f(t)))}p?(d&&d.resolve(),p.skipTransition(),v({state:e,currentLocation:i.currentLocation,nextLocation:i.nextLocation})):(s(e),c({isTransitioning:!0,flushSync:!1,currentLocation:i.currentLocation,nextLocation:i.nextLocation}))}else a?Bt((()=>o(e))):b((()=>o(e)))}),[n.window,p,d,g,b]);u.useLayoutEffect((()=>n.subscribe(w)),[n,w]),u.useEffect((()=>{l.isTransitioning&&!l.flushSync&&h(new Ft)}),[l]),u.useEffect((()=>{if(d&&i&&n.window){let e=i,t=d.promise,r=n.window.document.startViewTransition((async()=>{b((()=>o(e))),await t}));r.finished.finally((()=>{h(void 0),f(void 0),s(void 0),c({isTransitioning:!1})})),f(r)}}),[b,i,d,n.window]),u.useEffect((()=>{d&&i&&a.location.key===i.location.key&&d.resolve()}),[d,p,a.location,i]),u.useEffect((()=>{!l.isTransitioning&&m&&(s(m.state),c({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),v(void 0))}),[l.isTransitioning,m]),u.useEffect((()=>{}),[]);let _=u.useMemo((()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:e=>n.navigate(e),push:(e,t,r)=>n.navigate(e,{state:t,preventScrollReset:null==r?void 0:r.preventScrollReset}),replace:(e,t,r)=>n.navigate(e,{replace:!0,state:t,preventScrollReset:null==r?void 0:r.preventScrollReset})})),[n]),E=n.basename||"/",k=u.useMemo((()=>({router:n,navigator:_,static:!1,basename:E})),[n,_,E]),x=u.useMemo((()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath})),[n.future.v7_relativeSplatPath]);return u.useEffect((()=>xt(r,n.future)),[r,n.future]),u.createElement(u.Fragment,null,u.createElement(Xe.Provider,{value:k},u.createElement(Ze.Provider,{value:a},u.createElement(Nt.Provider,{value:g.current},u.createElement(It.Provider,{value:l},u.createElement(Mt,{basename:E,location:a.location,navigationType:a.historyAction,navigator:_,future:x},a.initialized||n.future.v7_partialHydration?u.createElement($t,{routes:n.routes,future:n.future,state:a}):t))))),null)}const $t=u.memo(qt);function qt(e){let{routes:t,future:n,state:r}=e;return dt(t,void 0,r,n)}const Wt="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Qt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Jt=u.forwardRef((function(e,t){let n,{onClick:r,relative:a,reloadDocument:o,replace:i,state:s,target:l,to:c,preventScrollReset:d,viewTransition:h}=e,f=zt(e,jt),{basename:m}=u.useContext(et),v=!1;if("string"==typeof c&&Qt.test(c)&&(n=c,Wt))try{let e=new URL(window.location.href),t=c.startsWith("//")?new URL(e.protocol+c):new URL(c),n=N(t.pathname,m);t.origin===e.origin&&null!=n?c=n+t.search+t.hash:v=!0}catch(e){}let y=function(e,t){let{relative:n}=void 0===t?{}:t;at()||p(!1);let{basename:r,navigator:a}=u.useContext(et),{hash:o,pathname:i,search:s}=ut(e,{relative:n}),l=i;return"/"!==r&&(l="/"===i?r:H([r,i])),a.createHref({pathname:l,search:s,hash:o})}(c,{relative:a}),b=function(e,t){let{target:n,replace:r,state:a,preventScrollReset:o,relative:i,viewTransition:s}=void 0===t?{}:t,l=lt(),c=ot(),d=ut(e,{relative:i});return u.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,n)){t.preventDefault();let n=void 0!==r?r:g(c)===g(d);l(e,{replace:n,state:a,preventScrollReset:o,relative:i,viewTransition:s})}}),[c,l,d,r,a,n,e,o,i,s])}(c,{replace:i,state:s,target:l,preventScrollReset:d,relative:a,viewTransition:h});return u.createElement("a",Dt({},f,{href:n||y,onClick:v||o?r:function(e){r&&r(e),e.defaultPrevented||b(e)},ref:t,target:l}))}));const Yt=u.forwardRef((function(e,t){let{"aria-current":n="page",caseSensitive:r=!1,className:a="",end:o=!1,style:i,to:s,viewTransition:l,children:c}=e,d=zt(e,Lt),h=ut(s,{relative:d.relative}),f=ot(),m=u.useContext(Ze),{navigator:v,basename:g}=u.useContext(et),y=null!=m&&function(e,t){void 0===t&&(t={});let n=u.useContext(It);null==n&&p(!1);let{basename:r}=Xt(Gt.useViewTransitionState),a=ut(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=N(n.currentLocation.pathname,r)||n.currentLocation.pathname,i=N(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=T(a.pathname,i)||null!=T(a.pathname,o)}(h)&&!0===l,b=v.encodeLocation?v.encodeLocation(h).pathname:h.pathname,w=f.pathname,_=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;r||(w=w.toLowerCase(),_=_?_.toLowerCase():null,b=b.toLowerCase()),_&&g&&(_=N(_,g)||_);const E="/"!==b&&b.endsWith("/")?b.length-1:b.length;let k,x=w===b||!o&&w.startsWith(b)&&"/"===w.charAt(E),S=null!=_&&(_===b||!o&&_.startsWith(b)&&"/"===_.charAt(b.length)),C={isActive:x,isPending:S,isTransitioning:y},M=x?n:void 0;k="function"==typeof a?a(C):[a,x?"active":null,S?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let P="function"==typeof i?i(C):i;return u.createElement(Jt,Dt({},d,{"aria-current":M,className:k,ref:t,style:P,to:s,viewTransition:l}),"function"==typeof c?c(C):c)}));var Gt,Kt;function Xt(e){let t=u.useContext(Xe);return t||p(!1),t}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Gt||(Gt={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(Kt||(Kt={}));const Zt=["getProps"],en=["path","text"],tn=["path","text"];function nn(){return nn=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},nn.apply(this,arguments)}function rn(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 an(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rn(Object(n),!0).forEach((function(t){on(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function on(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 sn(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var ln=function(){const t=ot(),n=[],r=[];s().trigger("ct:dashboard:navigation-links",n),s().trigger("ct:dashboard:end-navigation-links",r);const a=function(e,n){const{getProps:r}=e,a=sn(e,Zt);if(r&&"function"==typeof r){const e=t.pathname,o=n.startsWith("/")?n:`/${n}`,i=e.startsWith("/")?e:`/${e}`,s=r({isPartiallyCurrent:i.startsWith(o)||"/"!==o&&i.includes(o),isCurrent:i===o||"/"===o&&"/"===i});return an(an({},a),s)}return a};ctDashboardLocalizations.plugin_data.hide_plugins_tab;return(0,e.createElement)("ul",{className:"dashboard-navigation"},(0,e.createElement)("li",null,(0,e.createElement)(Yt,{to:"/",className:function(e){let{isActive:t}=e;return t?"active":""}},(0,o.__)("Home","blocksy"))),n.map((function(t){let{path:n,text:r}=t,o=sn(t,en);return(0,e.createElement)("li",{key:n},(0,e.createElement)(Yt,nn({to:n},a(o,n),{className:function(e){let{isActive:t}=e;return t?"active":""}}),r))})),!ctDashboardLocalizations.plugin_data.hide_plugins_tab&&(0,e.createElement)("li",null,(0,e.createElement)(Yt,{to:"/plugins",className:function(e){let{isActive:t}=e;return t?"active":""}},(0,o.__)("Useful Plugins","blocksy"))),!ctDashboardLocalizations.plugin_data.hide_changelogs_tab&&(0,e.createElement)("li",null,(0,e.createElement)(Yt,{to:"/changelog",className:function(e){let{isActive:t}=e;return t?"active":""}},(0,o.__)("Changelog","blocksy"))),r.map((function(t){let{path:n,text:r}=t,o=sn(t,tn);return(0,e.createElement)("li",{key:n},(0,e.createElement)(Yt,nn({to:n},a(o,n),{className:function(e){let{isActive:t}=e;return t?"active":""}}),r))})))},cn=jQuery,un=n.n(cn);const dn=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,o.__)("Documentation","blocksy"))};var hn=function(){const{is_companion_active:t,companion_download_link:n,child_download_link:r}=(0,e.useContext)(a);let i={content:null},l={content:null};const[c,u]=(0,e.useState)(!1),[d,h]=(0,e.useState)(!1);s().trigger("ct:dashboard:home:before",i),s().trigger("ct:dashboard:home:after",l);const p=d||t;return(0,e.createElement)("section",null,i.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,o.__)("Customizer Shortcuts","blocksy")),(0,e.createElement)("ul",{className:"ct-customizer-shortcuts-list"},(0,e.createElement)("li",null,(0,e.createElement)("h4",null,(0,o.__)("Color Options","blocksy")),(0,e.createElement)("p",null,(0,o.__)("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)(dn,{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,o.__)("Customize","blocksy")))),(0,e.createElement)("li",null,(0,e.createElement)("h4",null,(0,o.__)("Typography Options","blocksy")),(0,e.createElement)("p",null,(0,o.__)("Set the footer type, number of columns, spacing and colors.","blocksy")),(0,e.createElement)("div",{className:"ct-shortcut-actions"},(0,e.createElement)(dn,{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,o.__)("Customize","blocksy")))),(0,e.createElement)("li",null,(0,e.createElement)("h4",null,(0,o.__)("Header Options","blocksy")),(0,e.createElement)("p",null,(0,o.__)("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)(dn,{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,o.__)("Customize","blocksy")))),(0,e.createElement)("li",null,(0,e.createElement)("h4",null,(0,o.__)("Footer Options","blocksy")),(0,e.createElement)("p",null,(0,o.__)("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)(dn,{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,o.__)("Customize","blocksy")))),(0,e.createElement)("li",null,(0,e.createElement)("h4",null,(0,o.__)("Blog Options","blocksy")),(0,e.createElement)("p",null,(0,o.__)("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)(dn,{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,o.__)("Customize","blocksy")))),(0,e.createElement)("li",null,(0,e.createElement)("h4",null,(0,o.__)("Posts Options","blocksy")),(0,e.createElement)("p",null,(0,o.__)("Set the footer type, number of columns, spacing and colors.","blocksy")),(0,e.createElement)("div",{className:"ct-shortcut-actions"},(0,e.createElement)(dn,{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,o.__)("Customize","blocksy")))),(0,e.createElement)("li",null,(0,e.createElement)("h4",null,(0,o.__)("Page Options","blocksy")),(0,e.createElement)("p",null,(0,o.__)("Set the page container width, spacing, sidebar and more.","blocksy")),(0,e.createElement)("div",{className:"ct-shortcut-actions"},(0,e.createElement)(dn,{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,o.__)("Customize","blocksy")))),(0,e.createElement)("li",null,(0,e.createElement)("h4",null,(0,o.__)("Sidebar Options","blocksy")),(0,e.createElement)("p",null,(0,o.__)("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)(dn,{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,o.__)("Customize","blocksy")))))),!ctDashboardLocalizations.plugin_data.hide_support_section&&(0,e.createElement)("aside",null,(0,e.createElement)("h4",null,(0,o.__)("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,o.__)("Facebook Community","blocksy")),(0,e.createElement)("p",null,(0,o.__)("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,o.__)("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,o.__)("Video Tutorials","blocksy")),(0,e.createElement)("p",null,(0,o.__)("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,o.__)("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,o.__)("Knowledge Base","blocksy")),(0,e.createElement)("p",null,(0,o.__)("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,o.__)("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,o.__)("Support","blocksy")),(0,e.createElement)("p",null,(0,o.__)("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,o.__)("Submit a Ticket","blocksy")))))),l.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,o.__)("Blocksy Companion","blocksy")),(0,e.createElement)("p",null,(0,o.__)("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),un().ajax(ajaxurl,{type:"POST",data:{action:"blocksy_notice_button_click",nonce:ct_localizations.nonce}}).then((function(e){let{success:t,data:n}=e;t&&(h(n.status),"active"===n.status&&location.assign(n.pluginUrl)),u(!1)}))}},c?(0,o.__)("Installing & activating...","blocksy"):"uninstalled"===p?(0,o.__)("Install Blocksy Companion","blocksy"):"installed"===p?(0,o.__)("Activate Blocksy Companion","blocksy"):(0,o.__)("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,o.__)("Blocksy Child Theme","blocksy")),(0,e.createElement)("p",null,(0,o.__)("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,o.__)("Download now","blocksy")))))))},pn=n(184),fn=n.n(pn);var mn=function(t){let{status:n,plugin:r,onPluginsSync:a}=t;const[i,s]=(0,e.useState)(!1),l=async function(e,t){const n=new FormData;n.append("plugin",e),n.append("action",t),n.append("nonce",ctDashboardLocalizations.dashboard_actions_nonce),s(!0);try{await fetch(ctDashboardLocalizations.ajax_url,{method:"POST",body:n}),a()}catch(e){}s(!1)};return(0,e.createElement)("li",null,(0,e.createElement)("h4",{className:"ct-plugin-title"},r.title,i&&(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 l(r.name,"premium_plugin_deactivate")},className:"ct-button"},(0,o.__)("Deactivate","blocksy")),"deactivated"===n&&(0,e.createElement)("a",{onClick:function(){return l(r.name,"premium_plugin_activate")},className:"ct-button-primary"},(0,o.__)("Activate","blocksy")),"uninstalled"===n&&!r.comingsoon&&"link"!==r.type&&(0,e.createElement)("a",{onClick:function(){return l(r.name,"premium_plugin_download")},className:"ct-button"},(0,o.__)("Install","blocksy")),"uninstalled"===n&&!r.comingsoon&&"link"===r.type&&(0,e.createElement)("a",{href:r.link,className:"ct-button",target:"_blank"},(0,o.__)("Download","blocksy")),"uninstalled"===n&&r.comingsoon&&(0,e.createElement)("span",{className:"ct-badge"},(0,o.__)("COMING SOON","blocksy"))))},vn=zn(),gn=e=>Pn(e,vn),yn=zn();gn.write=e=>Pn(e,yn);var bn=zn();gn.onStart=e=>Pn(e,bn);var wn=zn();gn.onFrame=e=>Pn(e,wn);var _n=zn();gn.onFinish=e=>Pn(e,_n);var En=[];gn.setTimeout=(e,t)=>{const n=gn.now()+t,r=()=>{const e=En.findIndex((e=>e.cancel==r));~e&&En.splice(e,1),Cn-=~e?1:0},a={time:n,handler:e,cancel:r};return En.splice(kn(n),0,a),Cn+=1,Rn(),a};var kn=e=>~(~En.findIndex((t=>t.time>e))||~En.length);gn.cancel=e=>{bn.delete(e),wn.delete(e),_n.delete(e),vn.delete(e),yn.delete(e)},gn.sync=e=>{Mn=!0,gn.batchedUpdates(e),Mn=!1},gn.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,gn.onStart(n)}return r.handler=e,r.cancel=()=>{bn.delete(n),t=null},r};var xn="undefined"!=typeof window?window.requestAnimationFrame:()=>{};gn.use=e=>xn=e,gn.now="undefined"!=typeof performance?()=>performance.now():Date.now,gn.batchedUpdates=e=>e(),gn.catch=console.error,gn.frameLoop="always",gn.advance=()=>{"demand"!==gn.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Dn()};var Sn=-1,Cn=0,Mn=!1;function Pn(e,t){Mn?(t.delete(e),e(0)):(t.add(e),Rn())}function Rn(){Sn<0&&(Sn=0,"demand"!==gn.frameLoop&&xn(On))}function On(){~Sn&&(xn(On),gn.batchedUpdates(Dn))}function Dn(){const e=Sn;Sn=gn.now();const t=kn(Sn);t&&(jn(En.splice(0,t),(e=>e.handler())),Cn-=t),Cn?(bn.flush(),vn.flush(e?Math.min(64,Sn-e):16.667),wn.flush(),yn.flush(),_n.flush()):Sn=-1}function zn(){let e=new Set,t=e;return{add(n){Cn+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(Cn-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,Cn-=t.size,jn(t,(t=>t(n)&&e.add(t))),Cn+=e.size,t=e)}}}function jn(e,t){e.forEach((e=>{try{t(e)}catch(e){gn.catch(e)}}))}var Ln=Object.defineProperty,An={};function Tn(){}((e,t)=>{for(var n in t)Ln(e,n,{get:t[n],enumerable:!0})})(An,{assign:()=>Gn,colors:()=>Qn,createStringInterpolator:()=>Hn,skipAnimation:()=>Jn,to:()=>$n,willAdvance:()=>Yn});var In={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 Nn(e,t){if(In.arr(e)){if(!In.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 Un=(e,t)=>e.forEach(t);function Vn(e,t,n){if(In.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 Bn=e=>In.und(e)?[]:In.arr(e)?e:[e];function Fn(e,t){if(e.size){const n=Array.from(e);e.clear(),Un(n,t)}}var Hn,$n,qn=(e,...t)=>Fn(e,(e=>e(...t))),Wn=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Qn=null,Jn=!1,Yn=Tn,Gn=e=>{e.to&&($n=e.to),e.now&&(gn.now=e.now),void 0!==e.colors&&(Qn=e.colors),null!=e.skipAnimation&&(Jn=e.skipAnimation),e.createStringInterpolator&&(Hn=e.createStringInterpolator),e.requestAnimationFrame&&gn.use(e.requestAnimationFrame),e.batchedUpdates&&(gn.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Yn=e.willAdvance),e.frameLoop&&(gn.frameLoop=e.frameLoop)},Kn=new Set,Xn=[],Zn=[],er=0,tr={get idle(){return!Kn.size&&!Xn.length},start(e){er>e.priority?(Kn.add(e),gn.onStart(nr)):(rr(e),gn(or))},advance:or,sort(e){if(er)gn.onFrame((()=>tr.sort(e)));else{const t=Xn.indexOf(e);~t&&(Xn.splice(t,1),ar(e))}},clear(){Xn=[],Kn.clear()}};function nr(){Kn.forEach(rr),Kn.clear(),gn(or)}function rr(e){Xn.includes(e)||ar(e)}function ar(e){Xn.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(Xn,(t=>t.priority>e.priority)),0,e)}function or(e){const t=Zn;for(let n=0;n<Xn.length;n++){const r=Xn[n];er=r.priority,r.idle||(Yn(r),r.advance(e),r.idle||t.push(r))}return er=0,(Zn=Xn).length=0,(Xn=t).length>0}var ir="[-+]?\\d*\\.?\\d+",sr=ir+"%";function lr(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var cr=new RegExp("rgb"+lr(ir,ir,ir)),ur=new RegExp("rgba"+lr(ir,ir,ir,ir)),dr=new RegExp("hsl"+lr(ir,sr,sr)),hr=new RegExp("hsla"+lr(ir,sr,sr,ir)),pr=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,fr=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,mr=/^#([0-9a-fA-F]{6})$/,vr=/^#([0-9a-fA-F]{8})$/;function gr(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 yr(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,a=2*n-r,o=gr(a,r,e+1/3),i=gr(a,r,e),s=gr(a,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*i)<<16|Math.round(255*s)<<8}function br(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function wr(e){return(parseFloat(e)%360+360)%360/360}function _r(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Er(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function kr(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=mr.exec(e))?parseInt(t[1]+"ff",16)>>>0:Qn&&void 0!==Qn[e]?Qn[e]:(t=cr.exec(e))?(br(t[1])<<24|br(t[2])<<16|br(t[3])<<8|255)>>>0:(t=ur.exec(e))?(br(t[1])<<24|br(t[2])<<16|br(t[3])<<8|_r(t[4]))>>>0:(t=pr.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=vr.exec(e))?parseInt(t[1],16)>>>0:(t=fr.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=dr.exec(e))?(255|yr(wr(t[1]),Er(t[2]),Er(t[3])))>>>0:(t=hr.exec(e))?(yr(wr(t[1]),Er(t[2]),Er(t[3]))|_r(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 xr=(e,t,n)=>{if(In.fun(e))return e;if(In.arr(e))return xr({range:e,output:t,extrapolate:n});if(In.str(e.output[0]))return Hn(e);const r=e,a=r.output,o=r.range||[0,1],i=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",l=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,o);return function(e,t,n,r,a,o,i,s,l){let c=l?l(e):e;if(c<t){if("identity"===i)return c;"clamp"===i&&(c=t)}if(c>n){if("identity"===s)return c;"clamp"===s&&(c=n)}if(r===a)return r;if(t===n)return e<=t?r:a;t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t);c=o(c),r===-1/0?c=-c:a===1/0?c+=r:c=c*(a-r)+r;return c}(e,o[t],o[t+1],a[t],a[t+1],l,i,s,r.map)}};var Sr=1.70158,Cr=1.525*Sr,Mr=Sr+1,Pr=2*Math.PI/3,Rr=2*Math.PI/4.5,Or=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},Dr={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=>Mr*e*e*e-Sr*e*e,easeOutBack:e=>1+Mr*Math.pow(e-1,3)+Sr*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-Cr)/2:(Math.pow(2*e-2,2)*((Cr+1)*(2*e-2)+Cr)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*Pr),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*Pr)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Rr)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Rr)/2+1,easeInBounce:e=>1-Or(1-e),easeOutBounce:Or,easeInOutBounce:e=>e<.5?(1-Or(1-2*e))/2:(1+Or(2*e-1))/2,steps:(e,t="end")=>n=>{const r=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e,a="end"===t?Math.floor(r):Math.ceil(r);return o=0,i=1,s=a/e,Math.min(Math.max(s,o),i);var o,i,s}},zr=Symbol.for("FluidValue.get"),jr=Symbol.for("FluidValue.observers"),Lr=e=>Boolean(e&&e[zr]),Ar=e=>e&&e[zr]?e[zr]():e,Tr=e=>e[jr]||null;function Ir(e,t){const n=e[jr];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}var Nr=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Ur(this,e)}},Ur=(e,t)=>Hr(e,zr,t);function Vr(e,t){if(e[zr]){let n=e[jr];n||Hr(e,jr,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Br(e,t){const n=e[jr];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[jr]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var Fr,Hr=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),$r=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,qr=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Wr=new RegExp(`(${$r.source})(%|[a-z]+)`,"i"),Qr=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Jr=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Yr=e=>{const[t,n]=Gr(e);if(!t||Wn())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&&Jr.test(n)?Yr(n):n||e},Gr=e=>{const t=Jr.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Kr=(e,t,n,r,a)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${a})`,Xr=e=>{Fr||(Fr=Qn?new RegExp(`(${Object.keys(Qn).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>Ar(e).replace(Jr,Yr).replace(qr,kr).replace(Fr,kr))),n=t.map((e=>e.match($r).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=>xr({...e,output:t})));return e=>{const n=!Wr.test(t[0])&&t.find((e=>Wr.test(e)))?.replace($r,"");let a=0;return t[0].replace($r,(()=>`${r[a++](e)}${n||""}`)).replace(Qr,Kr)}},Zr="react-spring: ",ea=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${Zr}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},ta=ea(console.warn);var na=ea(console.warn);function ra(e){return In.str(e)&&("#"==e[0]||/\d/.test(e)||!Wn()&&Jr.test(e)||e in(Qn||{}))}var aa=Wn()?u.useEffect:u.useLayoutEffect,oa=()=>{const e=(0,u.useRef)(!1);return aa((()=>(e.current=!0,()=>{e.current=!1})),[]),e};function ia(){const e=(0,u.useState)()[1],t=oa();return()=>{t.current&&e(Math.random())}}var sa=e=>(0,u.useEffect)(e,la),la=[];var ca=Symbol.for("Animated:node"),ua=e=>e&&e[ca],da=(e,t)=>{return n=e,r=ca,a=t,Object.defineProperty(n,r,{value:a,writable:!0,configurable:!0});var n,r,a},ha=e=>e&&e[ca]&&e[ca].getPayload(),pa=class{constructor(){da(this,this)}getPayload(){return this.payload||[]}},fa=class extends pa{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,In.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new fa(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return In.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,In.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},ma=class extends fa{constructor(e){super(0),this._string=null,this._toString=xr({output:[e,e]})}static create(e){return new ma(e)}getValue(){const e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(In.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=xr({output:[this.getValue(),e]})),this._value=0,super.reset()}},va={dependencies:null},ga=class extends pa{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Vn(this.source,((n,r)=>{var a;(a=n)&&a[ca]===a?t[r]=n.getValue(e):Lr(n)?t[r]=Ar(n):e||(t[r]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Un(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return Vn(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){va.dependencies&&Lr(e)&&va.dependencies.add(e);const t=ha(e);t&&Un(t,(e=>this.add(e)))}},ya=class extends ga{constructor(e){super(e)}static create(e){return new ya(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(ba)),!0)}};function ba(e){return(ra(e)?ma:fa).create(e)}function wa(e){const t=ua(e);return t?t.constructor:In.arr(e)?ya:ra(e)?ma:fa}var _a=(e,t)=>{const n=!In.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,u.forwardRef)(((r,a)=>{const o=(0,u.useRef)(null),i=n&&(0,u.useCallback)((e=>{o.current=function(e,t){e&&(In.fun(e)?e(t):e.current=t);return t}(a,e)}),[a]),[s,l]=function(e,t){const n=new Set;va.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)});return e=new ga(e),va.dependencies=null,[e,n]}(r,t),c=ia(),d=()=>{const e=o.current;if(n&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,s.getValue(!0)))&&c()},h=new Ea(d,l),p=(0,u.useRef)();aa((()=>(p.current=h,Un(l,(e=>Vr(e,h))),()=>{p.current&&(Un(p.current.deps,(e=>Br(e,p.current))),gn.cancel(p.current.update))}))),(0,u.useEffect)(d,[]),sa((()=>()=>{const e=p.current;Un(e.deps,(t=>Br(t,e)))}));const f=t.getComponentProps(s.getValue());return u.createElement(e,{...f,ref:i})}))},Ea=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&gn.write(this.update)}};var ka=Symbol.for("AnimatedComponent"),xa=e=>In.str(e)?e:e&&In.str(e.displayName)?e.displayName:In.fun(e)&&e.name||null;function Sa(e,...t){return In.fun(e)?e(...t):e}var Ca=(e,t)=>!0===e||!!(t&&e&&(In.fun(e)?e(t):Bn(e).includes(t))),Ma=(e,t)=>In.obj(e)?t&&e[t]:e,Pa=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,Ra=e=>e,Oa=(e,t=Ra)=>{let n=Da;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const r={};for(const a of n){const n=t(e[a],a);In.und(n)||(r[a]=n)}return r},Da=["config","onProps","onStart","onChange","onPause","onResume","onRest"],za={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 ja(e){const t=function(e){const t={};let n=0;if(Vn(e,((e,r)=>{za[r]||(t[r]=e,n++)})),n)return t}(e);if(t){const n={to:t};return Vn(e,((e,r)=>r in t||(n[r]=e))),n}return{...e}}function La(e){return e=Ar(e),In.arr(e)?e.map(La):ra(e)?An.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Aa(e){for(const t in e)return!0;return!1}function Ta(e){return In.fun(e)||In.arr(e)&&In.obj(e[0])}function Ia(e,t){e.ref?.delete(e),t?.delete(e)}function Na(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var Ua={tension:170,friction:26,mass:1,damping:1,easing:Dr.linear,clamp:!1};function Va(e,t){if(In.und(t.decay)){const n=!In.und(t.tension)||!In.und(t.friction);!n&&In.und(t.frequency)&&In.und(t.damping)&&In.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var Ba=[];function Fa(e,{key:t,props:n,defaultProps:r,state:a,actions:o}){return new Promise(((i,s)=>{let l,c,u=Ca(n.cancel??r?.cancel,t);if(u)p();else{In.und(n.pause)||(a.paused=Ca(n.pause,t));let e=r?.pause;!0!==e&&(e=a.paused||Ca(e,t)),l=Sa(n.delay||0,t),e?(a.resumeQueue.add(h),o.pause()):(o.resume(),h())}function d(){a.resumeQueue.add(h),a.timeouts.delete(c),c.cancel(),l=c.time-gn.now()}function h(){l>0&&!An.skipAnimation?(a.delayed=!0,c=gn.setTimeout(p,l),a.pauseQueue.add(d),a.timeouts.add(c)):p()}function p(){a.delayed&&(a.delayed=!1),a.pauseQueue.delete(d),a.timeouts.delete(c),e<=(a.cancelId||0)&&(u=!0);try{o.start({...n,callId:e,cancel:u},i)}catch(e){s(e)}}}))}var Ha=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?Wa(e.get()):t.every((e=>e.noop))?$a(e.get()):qa(e.get(),t.every((e=>e.finished))),$a=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),qa=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Wa=e=>({value:e,cancelled:!0,finished:!1});function Qa(e,t,n,r){const{callId:a,parentId:o,onRest:i}=t,{asyncTo:s,promise:l}=n;return o||e!==s||t.reset?n.promise=(async()=>{n.asyncId=a,n.asyncTo=e;const c=Oa(t,((e,t)=>"onRest"===t?void 0:e));let u,d;const h=new Promise(((e,t)=>(u=e,d=t))),p=e=>{const t=a<=(n.cancelId||0)&&Wa(r)||a!==n.asyncId&&qa(r,!1);if(t)throw e.result=t,d(e),e},f=(e,t)=>{const o=new Ya,i=new Ga;return(async()=>{if(An.skipAnimation)throw Ja(n),i.result=qa(r,!1),d(i),i;p(o);const s=In.obj(e)?{...e}:{...t,to:e};s.parentId=a,Vn(c,((e,t)=>{In.und(s[t])&&(s[t]=e)}));const l=await r.start(s);return p(o),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),l})()};let m;if(An.skipAnimation)return Ja(n),qa(r,!1);try{let t;t=In.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),h]),m=qa(r.get(),!0,!1)}catch(e){if(e instanceof Ya)m=e.result;else{if(!(e instanceof Ga))throw e;m=e.result}}finally{a==n.asyncId&&(n.asyncId=o,n.asyncTo=o?s:void 0,n.promise=o?l:void 0)}return In.fun(i)&&gn.batchedUpdates((()=>{i(m,r,r.item)})),m})():l}function Ja(e,t){Fn(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Ya=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.")}},Ga=class extends Error{constructor(){super("SkipAnimationSignal")}},Ka=e=>e instanceof Za,Xa=1,Za=class extends Nr{constructor(){super(...arguments),this.id=Xa++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=ua(this);return e&&e.getValue()}to(...e){return An.to(this,e)}interpolate(...e){return ta(`${Zr}The "interpolate" function is deprecated in v9 (use "to" instead)`),An.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){Ir(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||tr.sort(this),Ir(this,{type:"priority",parent:this,priority:e})}},eo=Symbol.for("SpringPhase"),to=e=>(1&e[eo])>0,no=e=>(2&e[eo])>0,ro=e=>(4&e[eo])>0,ao=(e,t)=>t?e[eo]|=3:e[eo]&=-3,oo=(e,t)=>t?e[eo]|=4:e[eo]&=-5,io=class extends Za{constructor(e,t){if(super(),this.animation=new class{constructor(){this.changed=!1,this.values=Ba,this.toValues=null,this.fromValues=Ba,this.config=new class{constructor(){this.velocity=0,Object.assign(this,Ua)}},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,!In.und(e)||!In.und(t)){const n=In.obj(e)?{...e}:{...t,from:e};In.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(no(this)||this._state.asyncTo)||ro(this)}get goal(){return Ar(this.animation.to)}get velocity(){const e=ua(this);return e instanceof fa?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return to(this)}get isAnimating(){return no(this)}get isPaused(){return ro(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:a}=r;const{config:o}=r,i=ha(r.to);!i&&Lr(r.to)&&(a=Bn(Ar(r.to))),r.values.forEach(((s,l)=>{if(s.done)return;const c=s.constructor==ma?1:i?i[l].lastPosition:a[l];let u=r.immediate,d=c;if(!u){if(d=s.lastPosition,o.tension<=0)return void(s.done=!0);let t=s.elapsedTime+=e;const n=r.fromValues[l],a=null!=s.v0?s.v0:s.v0=In.arr(o.velocity)?o.velocity[l]:o.velocity;let i;const h=o.precision||(n==c?.005:Math.min(1,.001*Math.abs(c-n)));if(In.und(o.duration))if(o.decay){const e=!0===o.decay?.998:o.decay,r=Math.exp(-(1-e)*t);d=n+a/(1-e)*(1-r),u=Math.abs(s.lastPosition-d)<=h,i=a*r}else{i=null==s.lastVelocity?a:s.lastVelocity;const t=o.restVelocity||h/10,r=o.clamp?0:o.bounce,l=!In.und(r),p=n==c?s.v0>0:n<c;let f,m=!1;const v=1,g=Math.ceil(e/v);for(let e=0;e<g&&(f=Math.abs(i)>t,f||(u=Math.abs(c-d)<=h,!u));++e){l&&(m=d==c||d>c==p,m&&(i=-i*r,d=c));i+=(1e-6*-o.tension*(d-c)+.001*-o.friction*i)/o.mass*v,d+=i*v}}else{let r=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,s.durationProgress>0&&(s.elapsedTime=o.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(o.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,s.durationProgress=r),d=n+o.easing(r)*(c-n),i=(d-s.lastPosition)/e,u=1==r}s.lastVelocity=i,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),u=!0)}i&&!i[l].done&&(u=!1),u?s.done=!0:t=!1,s.setValue(d,o.round)&&(n=!0)}));const s=ua(this),l=s.getValue();if(t){const e=Ar(r.to);l===e&&!n||o.decay?n&&o.decay&&this._onChange(l):(s.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(l)}set(e){return gn.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(no(this)){const{to:e,config:t}=this.animation;gn.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 In.und(e)?(n=this.queue||[],this.queue=[]):n=[In.obj(e)?e:{...t,to:e}],Promise.all(n.map((e=>this._update(e)))).then((e=>Ha(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Ja(this._state,e&&this._lastCallId),gn.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=In.obj(n)?n[t]:n,(null==n||Ta(n))&&(n=void 0),r=In.obj(r)?r[t]:r,null==r&&(r=void 0);const a={to:n,from:r};return to(this)||(e.reverse&&([n,r]=[r,n]),r=Ar(r),In.und(r)?ua(this)||this._set(n):this._set(r)),a}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,Oa(e,((e,t)=>/^on/.test(t)?Ma(e,n):e))),po(this,e,"onProps"),fo(this,"onProps",e,this);const a=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 o=this._state;return Fa(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{ro(this)||(oo(this,!0),qn(o.pauseQueue),fo(this,"onPause",qa(this,so(this,this.animation.to)),this))},resume:()=>{ro(this)&&(oo(this,!1),no(this)&&this._resume(),qn(o.resumeQueue),fo(this,"onResume",qa(this,so(this,this.animation.to)),this))},start:this._merge.bind(this,a)}}).then((n=>{if(e.loop&&n.finished&&(!t||!n.noop)){const t=lo(e);if(t)return this._update(t,!0)}return n}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Wa(this));const r=!In.und(e.to),a=!In.und(e.from);if(r||a){if(!(t.callId>this._lastToId))return n(Wa(this));this._lastToId=t.callId}const{key:o,defaultProps:i,animation:s}=this,{to:l,from:c}=s;let{to:u=l,from:d=c}=e;!a||r||t.default&&!In.und(u)||(u=d),t.reverse&&([u,d]=[d,u]);const h=!Nn(d,c);h&&(s.from=d),d=Ar(d);const p=!Nn(u,l);p&&this._focus(u);const f=Ta(t.to),{config:m}=s,{decay:v,velocity:g}=m;(r||a)&&(m.velocity=0),t.config&&!f&&function(e,t,n){n&&(Va(n={...n},t),t={...n,...t}),Va(e,t),Object.assign(e,t);for(const t in Ua)null==e[t]&&(e[t]=Ua[t]);let{frequency:r,damping:a}=e;const{mass:o}=e;In.und(r)||(r<.01&&(r=.01),a<0&&(a=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*a*o/r)}(m,Sa(t.config,o),t.config!==i.config?Sa(i.config,o):void 0);let y=ua(this);if(!y||In.und(u))return n(qa(this,!0));const b=In.und(t.reset)?a&&!t.default:!In.und(d)&&Ca(t.reset,o),w=b?d:this.get(),_=La(u),E=In.num(_)||In.arr(_)||ra(_),k=!f&&(!E||Ca(i.immediate||t.immediate,o));if(p){const e=wa(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(_)}}const x=y.constructor;let S=Lr(u),C=!1;if(!S){const e=b||!to(this)&&h;(p||e)&&(C=Nn(La(w),_),S=!C),(Nn(s.immediate,k)||k)&&Nn(m.decay,v)&&Nn(m.velocity,g)||(S=!0)}if(C&&no(this)&&(s.changed&&!b?S=!0:S||this._stop(l)),!f&&((S||Lr(l))&&(s.values=y.getPayload(),s.toValues=Lr(u)?null:x==ma?[1]:Bn(_)),s.immediate!=k&&(s.immediate=k,k||b||this._set(l)),S)){const{onRest:e}=s;Un(ho,(e=>po(this,t,e)));const r=qa(this,so(this,l));qn(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&gn.batchedUpdates((()=>{s.changed=!b,e?.(r,this),b?Sa(i.onRest,r):s.onStart?.(r,this)}))}b&&this._set(w),f?n(Qa(t.to,t,this._state,this)):S?this._start():no(this)&&!p?this._pendingCalls.add(n):n($a(w))}_focus(e){const t=this.animation;e!==t.to&&(Tr(this)&&this._detach(),t.to=e,Tr(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Lr(t)&&(Vr(t,this),Ka(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Lr(e)&&Br(e,this)}_set(e,t=!0){const n=Ar(e);if(!In.und(n)){const e=ua(this);if(!e||!Nn(n,e.getValue())){const r=wa(n);e&&e.constructor==r?e.setValue(n):da(this,r.create(n)),e&&gn.batchedUpdates((()=>{this._onChange(n,t)}))}}return ua(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,fo(this,"onStart",qa(this,so(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Sa(this.animation.onChange,e,this)),Sa(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;ua(this).reset(Ar(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),no(this)||(ao(this,!0),ro(this)||this._resume())}_resume(){An.skipAnimation?this.finish():tr.start(this)}_stop(e,t){if(no(this)){ao(this,!1);const n=this.animation;Un(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Ir(this,{type:"idle",parent:this});const r=t?Wa(this.get()):qa(this.get(),so(this,e??n.to));qn(this._pendingCalls,r),n.changed&&(n.changed=!1,fo(this,"onRest",r,this))}}};function so(e,t){const n=La(t);return Nn(La(e.get()),n)}function lo(e,t=e.loop,n=e.to){const r=Sa(t);if(r){const a=!0!==r&&ja(r),o=(a||e).reverse,i=!a||a.reset;return co({...e,loop:t,default:!1,pause:void 0,to:!o||Ta(n)?n:void 0,from:i?e.from:void 0,reset:i,...a})}}function co(e){const{to:t,from:n}=e=ja(e),r=new Set;return In.obj(t)&&uo(t,r),In.obj(n)&&uo(n,r),e.keys=r.size?Array.from(r):null,e}function uo(e,t){Vn(e,((e,n)=>null!=e&&t.add(n)))}var ho=["onStart","onRest","onChange","onPause","onResume"];function po(e,t,n){e.animation[n]=t[n]!==Pa(t,n)?Ma(t[n],e.key):void 0}function fo(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var mo=["onStart","onChange","onRest"],vo=1,go=class{constructor(e,t){this.id=vo++,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];In.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(co(e)),this}start(e){let{queue:t}=this;return e?t=Bn(e).map(co):this.queue=[],this._flush?this._flush(this,t):(xo(this,t),yo(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Un(Bn(t),(t=>n[t].stop(!!e)))}else Ja(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(In.und(e))this.start({pause:!0});else{const t=this.springs;Un(Bn(e),(e=>t[e].pause()))}return this}resume(e){if(In.und(e))this.start({pause:!1});else{const t=this.springs;Un(Bn(e),(e=>t[e].resume()))}return this}each(e){Vn(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,a=this._changed.size>0;(r&&!this._started||a&&!this._started)&&(this._started=!0,Fn(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const o=!r&&this._started,i=a||o&&n.size?this.get():null;a&&t.size&&Fn(t,(([e,t])=>{t.value=i,e(t,this,this._item)})),o&&(this._started=!1,Fn(n,(([e,t])=>{t.value=i,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)}gn.onFrame(this._onFrame)}};function yo(e,t){return Promise.all(t.map((t=>bo(e,t)))).then((t=>Ha(e,t)))}async function bo(e,t,n){const{keys:r,to:a,from:o,loop:i,onRest:s,onResolve:l}=t,c=In.obj(t.default)&&t.default;i&&(t.loop=!1),!1===a&&(t.to=null),!1===o&&(t.from=null);const u=In.arr(a)||In.fun(a)?a:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):Un(mo,(n=>{const r=t[n];if(In.fun(r)){const a=e._events[n];t[n]=({finished:e,cancelled:t})=>{const n=a.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):a.set(r,{value:null,finished:e||!1,cancelled:t||!1})},c&&(c[n]=t[n])}}));const d=e._state;t.pause===!d.paused?(d.paused=t.pause,qn(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const h=(r||Object.keys(e.springs)).map((n=>e.springs[n].start(t))),p=!0===t.cancel||!0===Pa(t,"cancel");(u||p&&d.asyncId)&&h.push(Fa(++e._lastAsyncId,{props:t,state:d,actions:{pause:Tn,resume:Tn,start(t,n){p?(Ja(d,e._lastAsyncId),n(Wa(e))):(t.onRest=s,n(Qa(u,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const f=Ha(e,await Promise.all(h));if(i&&f.finished&&(!n||!f.noop)){const n=lo(t,i,a);if(n)return xo(e,[n]),bo(e,n,!0)}return l&&gn.batchedUpdates((()=>l(f,e,e.item))),f}function wo(e,t){const n={...e.springs};return t&&Un(Bn(t),(e=>{In.und(e.keys)&&(e=co(e)),In.obj(e.to)||(e={...e,to:void 0}),ko(n,e,(e=>Eo(e)))})),_o(e,n),n}function _o(e,t){Vn(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,Vr(t,e))}))}function Eo(e,t){const n=new io;return n.key=e,t&&Vr(n,t),n}function ko(e,t,n){t.keys&&Un(t.keys,(r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)}))}function xo(e,t){Un(t,(t=>{ko(e.springs,t,(t=>Eo(t,e)))}))}var So,Co,Mo=({children:e,...t})=>{const n=(0,u.useContext)(Po),r=t.pause||!!n.pause,a=t.immediate||!!n.immediate;t=function(e,t){const[n]=(0,u.useState)((()=>({inputs:t,result:e()}))),r=(0,u.useRef)(),a=r.current;let o=a;o?Boolean(t&&o.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,o.inputs))||(o={inputs:t,result:e()}):o=n;return(0,u.useEffect)((()=>{r.current=o,a==n&&(n.inputs=n.result=void 0)}),[o]),o.result}((()=>({pause:r,immediate:a})),[r,a]);const{Provider:o}=Po;return u.createElement(o,{value:t},e)},Po=(So=Mo,Co={},Object.assign(So,u.createContext(Co)),So.Provider._context=So,So.Consumer._context=So,So);Mo.Provider=Po.Provider,Mo.Consumer=Po.Consumer;var Ro=()=>{const e=[],t=function(t){na(`${Zr}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 Un(e,((e,a)=>{if(In.und(t))r.push(e.start());else{const o=n(t,e,a);o&&r.push(e.start(o))}})),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 Un(e,(e=>e.pause(...arguments))),this},t.resume=function(){return Un(e,(e=>e.resume(...arguments))),this},t.set=function(t){Un(e,((e,n)=>{const r=In.fun(t)?t(n,e):t;r&&e.set(r)}))},t.start=function(t){const n=[];return Un(e,((e,r)=>{if(In.und(t))n.push(e.start());else{const a=this._getProps(t,e,r);a&&n.push(e.start(a))}})),n},t.stop=function(){return Un(e,(e=>e.stop(...arguments))),this},t.update=function(t){return Un(e,((e,n)=>e.update(this._getProps(t,e,n)))),this};const n=function(e,t,n){return In.fun(e)?e(n,t):e};return t._getProps=n,t};function Oo(e,t,n){const r=In.fun(t)&&t,{reset:a,sort:o,trail:i=0,expires:s=!0,exitBeforeEnter:l=!1,onDestroyed:c,ref:d,config:h}=r?r():t,p=(0,u.useMemo)((()=>r||3==arguments.length?Ro():void 0),[]),f=Bn(e),m=[],v=(0,u.useRef)(null),g=a?null:v.current;aa((()=>{v.current=m})),sa((()=>(Un(m,(e=>{p?.add(e.ctrl),e.ctrl.ref=p})),()=>{Un(v.current,(e=>{e.expired&&clearTimeout(e.expirationId),Ia(e.ctrl,p),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):Do++}))}return In.und(n)?e:In.fun(n)?e.map(n):Bn(n)}(f,r?r():t,g),b=a&&v.current||[];aa((()=>Un(b,(({ctrl:e,item:t,key:n})=>{Ia(e,p),Sa(c,t,n)}))));const w=[];if(g&&Un(g,((e,t)=>{e.expired?(clearTimeout(e.expirationId),b.push(e)):~(t=w[t]=y.indexOf(e.key))&&(m[t]=e)})),Un(f,((e,t)=>{m[t]||(m[t]={key:y[t],item:e,phase:"mount",ctrl:new go},m[t].ctrl.item=e)})),w.length){let e=-1;const{leave:n}=r?r():t;Un(w,((t,r)=>{const a=g[r];~t?(e=m.indexOf(a),m[e]={...a,item:f[t]}):n&&m.splice(++e,0,a)}))}In.fun(o)&&m.sort(((e,t)=>o(e.item,t.item)));let _=-i;const E=ia(),k=Oa(t),x=new Map,S=(0,u.useRef)(new Map),C=(0,u.useRef)(!1);Un(m,((e,n)=>{const a=e.key,o=e.phase,c=r?r():t;let u,p;const f=Sa(c.delay||0,a);if("mount"==o)u=c.enter,p="enter";else{const e=y.indexOf(a)<0;if("leave"!=o)if(e)u=c.leave,p="leave";else{if(!(u=c.update))return;p="update"}else{if(e)return;u=c.enter,p="enter"}}if(u=Sa(u,e.item,n),u=In.obj(u)?ja(u):{to:u},!u.config){const t=h||k.config;u.config=Sa(t,e.item,n,p)}_+=i;const m={...k,delay:f+_,ref:d,immediate:c.immediate,reset:!1,...u};if("enter"==p&&In.und(m.from)){const a=r?r():t,o=In.und(a.initial)||g?a.from:a.initial;m.from=Sa(o,e.item,n)}const{onResolve:b}=m;m.onResolve=e=>{Sa(b,e);const t=v.current,n=t.find((e=>e.key===a));if(n&&(!e.cancelled||"update"==n.phase)&&n.ctrl.idle){const e=t.every((e=>e.ctrl.idle));if("leave"==n.phase){const t=Sa(s,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))&&(S.current.delete(n),l&&(C.current=!0),E())}};const w=wo(e.ctrl,m);"leave"===p&&l?S.current.set(e,{phase:p,springs:w,payload:m}):x.set(e,{phase:p,springs:w,payload:m})}));const M=(0,u.useContext)(Mo),P=function(e){const t=(0,u.useRef)();return(0,u.useEffect)((()=>{t.current=e})),t.current}(M),R=M!==P&&Aa(M);aa((()=>{R&&Un(m,(e=>{e.ctrl.start({default:M})}))}),[M]),Un(x,((e,t)=>{if(S.current.size){const e=m.findIndex((e=>e.key===t.key));m.splice(e,1)}})),aa((()=>{Un(S.current.size?S.current:x,(({phase:e,payload:t},n)=>{const{ctrl:r}=n;n.phase=e,p?.add(r),R&&"enter"==e&&r.start({default:M}),t&&(Na(r,t.ref),!r.ref&&!p||C.current?(r.start(t),C.current&&(C.current=!1)):r.update(t))}))}),a?void 0:n);const O=e=>u.createElement(u.Fragment,null,m.map(((t,n)=>{const{springs:r}=x.get(t)||t.ctrl,a=e({...r},t.item,t,n);return a&&a.type?u.createElement(a.type,{...a.props,key:In.str(t.key)||In.num(t.key)?t.key:t.ctrl.id,ref:a.ref}):a})));return p?[O,p]:O}var Do=1;function zo({items:e,children:t,...n}){return Oo(e,n)(t)}var jo=class extends Za{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=xr(...t);const n=this._get(),r=wa(n);da(this,r.create(n))}advance(e){const t=this._get();Nn(t,this.get())||(ua(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Ao(this._active)&&To(this)}_get(){const e=In.arr(this.source)?this.source.map(Ar):Bn(Ar(this.source));return this.calc(...e)}_start(){this.idle&&!Ao(this._active)&&(this.idle=!1,Un(ha(this),(e=>{e.done=!1})),An.skipAnimation?(gn.batchedUpdates((()=>this.advance())),To(this)):tr.start(this))}_attach(){let e=1;Un(Bn(this.source),(t=>{Lr(t)&&Vr(t,this),Ka(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){Un(Bn(this.source),(e=>{Lr(e)&&Br(e,this)})),this._active.clear(),To(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=Bn(this.source).reduce(((e,t)=>Math.max(e,(Ka(t)?t.priority:0)+1)),0))}};function Lo(e){return!1!==e.idle}function Ao(e){return!e.size||Array.from(e).every(Lo)}function To(e){e.idle||(e.idle=!0,Un(ha(e),(e=>{e.done=!0})),Ir(e,{type:"idle",parent:e}))}An.assign({createStringInterpolator:Xr,to:(e,t)=>new jo(e,t)});tr.advance;var Io=/^--/;function No(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||Io.test(e)||Vo.hasOwnProperty(e)&&Vo[e]?(""+t).trim():t+"px"}var Uo={};var Vo={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},Bo=["Webkit","Ms","Moz","O"];Vo=Object.keys(Vo).reduce(((e,t)=>(Bo.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),Vo);var Fo=/^(matrix|translate|scale|rotate|skew)/,Ho=/^(translate)/,$o=/^(rotate|skew)/,qo=(e,t)=>In.num(e)&&0!==e?e+t:e,Wo=(e,t)=>In.arr(e)?e.every((e=>Wo(e,t))):In.num(e)?e===t:parseFloat(e)===t,Qo=class extends ga{constructor({x:e,y:t,z:n,...r}){const a=[],o=[];(e||t||n)&&(a.push([e||0,t||0,n||0]),o.push((e=>[`translate3d(${e.map((e=>qo(e,"px"))).join(",")})`,Wo(e,0)]))),Vn(r,((e,t)=>{if("transform"===t)a.push([e||""]),o.push((e=>[e,""===e]));else if(Fo.test(t)){if(delete r[t],In.und(e))return;const n=Ho.test(t)?"px":$o.test(t)?"deg":"";a.push(Bn(e)),o.push("rotate3d"===t?([e,t,r,a])=>[`rotate3d(${e},${t},${r},${qo(a,n)})`,Wo(a,0)]:e=>[`${t}(${e.map((e=>qo(e,n))).join(",")})`,Wo(e,t.startsWith("scale")?1:0)])}})),a.length&&(r.transform=new Jo(a,o)),super(r)}},Jo=class extends Nr{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 Un(this.inputs,((n,r)=>{const a=Ar(n[0]),[o,i]=this.transforms[r](In.arr(a)?a:n.map(Ar));e+=" "+o,t=t&&i})),t?"none":e}observerAdded(e){1==e&&Un(this.inputs,(e=>Un(e,(e=>Lr(e)&&Vr(e,this)))))}observerRemoved(e){0==e&&Un(this.inputs,(e=>Un(e,(e=>Lr(e)&&Br(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),Ir(this,e)}};An.assign({batchedUpdates:Ot.unstable_batchedUpdates,createStringInterpolator:Xr,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 Yo=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:n=(e=>new ga(e)),getComponentProps:r=(e=>e)}={})=>{const a={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{const t=xa(e)||"Anonymous";return(e=In.str(e)?o[e]||(o[e]=_a(e,a)):e[ka]||(e[ka]=_a(e,a))).displayName=`Animated(${t})`,e};return Vn(e,((t,n)=>{In.arr(e)&&(n=xa(t)),o[n]=o(t)})),{animated:o}})(["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:a,children:o,scrollTop:i,scrollLeft:s,viewBox:l,...c}=t,u=Object.values(c),d=Object.keys(c).map((t=>n||e.hasAttribute(t)?t:Uo[t]||(Uo[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==o&&(e.textContent=o);for(const t in a)if(a.hasOwnProperty(t)){const n=No(t,a[t]);Io.test(t)?e.style.setProperty(t,n):e.style[t]=n}d.forEach(((t,n)=>{e.setAttribute(t,u[n])})),void 0!==r&&(e.className=r),void 0!==i&&(e.scrollTop=i),void 0!==s&&(e.scrollLeft=s),void 0!==l&&e.setAttribute("viewBox",l)},createAnimatedStyle:e=>new Qo(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Go=Yo.animated;var Ko=function(){return ctDashboardLocalizations.plugin_data.hide_support_section?null:(0,e.createElement)("div",{className:"ct-support-container"},(0,e.createElement)("h2",null,(0,o.__)("Need help or advice?","blocksy")),(0,e.createElement)("p",null,(0,o.__)("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,o.__)("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,o.__)("Join Facebook Community","blocksy"))))};let Xo=null,Zo=ctDashboardLocalizations.clean_install_plugins;var ei=function(){const[t,n]=(0,e.useState)(!Xo),[r,a]=(0,e.useState)(Xo||[]),i=Object.values(Zo).map((function(e,t){return e.name=Object.keys(Zo)[t],e})),s=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&&(a(n),Xo=n)}}catch(e){}n(!1)};return(0,e.useEffect)((function(){s(!Xo)}),[]),(0,e.createElement)("div",null,(0,e.createElement)(zo,{items:t,from:{opacity:0},enter:[{opacity:1}],leave:[{opacity:0}],initial:null,config:function(e,t){return{duration:300}}},(function(t,n){return n?(0,e.createElement)(Go.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,o.__)("Loading Plugins Status...","blocksy")):(0,e.createElement)(Go.div,{style:t},i.length>0&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("ul",{className:"ct-recommended-plugins-list"},i.map((function(t){return(0,e.createElement)(mn,{plugin:t,key:t.name,onPluginsSync:function(){return s()},status:(r.find((function(e){let{name:n}=e;return n===t.name}))||{}).status})}))),(0,e.createElement)(Ko,null)))})))},ti=window.wp.date;let ni=null;const ri=function(t){let{versionDescriptor:n}=t;const[r,...a]=n.descriptor.split(/\r?\n/);return(0,e.createElement)("section",null,(0,e.createElement)("h2",null,(0,o.sprintf)((0,o.__)("Version: %s","blocksy"),n.version),(0,e.createElement)("span",null,(0,o.sprintf)((0,o.__)("Released on %s","blocksy"),n.date))),(0,e.createElement)("div",{className:"ct-release-info",dangerouslySetInnerHTML:{__html:`<ul><li>\n\n                        ${a.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 ai=function(){const[t,n]=(0,e.useState)(!ni),[r,a]=(0,e.useState)(ni),[i,s]=(0,e.useState)(0);let l=!1;window.ctDashboardLocalizations&&window.ctDashboardLocalizations.plugin_data&&window.ctDashboardLocalizations.plugin_data.has_beta_consent&&(l=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&&(a(n.changelog),ni=n.changelog)}}catch(e){}n(!1)}(!ni)}),[]),(0,e.createElement)("section",{className:"ct-changelog-wrapper"},(0,e.createElement)(zo,{items:t,from:{opacity:0},enter:[{opacity:1}],leave:[{opacity:0}],initial:null,config:function(e,t){return{duration:300}}},(function(t,n){return n?(0,e.createElement)(Go.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,o.__)("Loading changelog...","blocksy")):(0,e.createElement)(Go.div,{style:t},(0,e.createElement)("div",{className:fn()("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:fn()({active:n===i}),onClick:function(){return s(n)},key:r},r)}))),(0,e.createElement)("ul",{className:"changelog-explanation"},(0,e.createElement)("li",null,(0,e.createElement)("span",{className:"new"})," ",(0,o.__)("New","blocksy")),(0,e.createElement)("li",null,(0,e.createElement)("span",{className:"fix"})," ",(0,o.__)("Fix","blocksy")),(0,e.createElement)("li",null,(0,e.createElement)("span",{className:"improvement"}),(0,o.__)("Improvement","blocksy")))),(0,e.createElement)("div",{className:"changelog-items"},r[i].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,ti.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[i].changelog,{hasBetas:l}).map((function(t){return(0,e.createElement)(ri,{key:t.version,versionDescriptor:t})})):(0,o.__)("No changelog present at the moment.","blocksy")))})))};const oi=["Component"],ii=["Component","key","path"];function si(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 li(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?si(Object(n),!0).forEach((function(t){di(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):si(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ci(){return ci=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},ci.apply(this,arguments)}function ui(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function di(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}window.ctDashboardLocalizations.DashboardContext=a;class hi extends e.Component{constructor(){super(...arguments),di(this,"state",{hasError:!1,error:null})}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){console.error("Dashboard Route Error:",e,t),this.props.onError&&this.props.onError(e,t)}render(){return this.state.hasError?null:this.props.children}}const pi=function(t){let{Component:n}=t,r=ui(t,oi);const a=lt(),o=ot(),i=function(){let{matches:e}=u.useContext(nt),t=e[e.length-1];return t?t.params:{}}(),s=it("*");return(0,e.createElement)(hi,null,(0,e.createElement)(n,ci({},r,i,{navigate:a,location:o,match:s})))},fi=function(){return(0,e.createElement)("div",null,(0,e.createElement)(St,null))},mi=function(){const t=lt(),n=ot(),a=it;return(0,e.createElement)(r,{value:li(li(li({},{theme_version:"1.0.0",theme_name:"Word"}),ctDashboardLocalizations),{},{Link:Jt,useLocation:ot,navigate:t,useMatch:a,history:{push:t,location:n},location:n})},(0,e.createElement)("header",null,(0,e.createElement)(c,null),(0,e.createElement)(ln,null)),(0,e.createElement)("section",null,(0,e.createElement)(fi,null)))},vi=function(){const t=[];return s().trigger("ct:dashboard:routes",t),n=Pt((0,e.createElement)(Ct,{path:"/",element:(0,e.createElement)(mi,null)},(0,e.createElement)(Ct,{index:!0,element:(0,e.createElement)(hn,null)}),(0,e.createElement)(Ct,{path:"plugins",element:(0,e.createElement)(ei,null)}),(0,e.createElement)(Ct,{path:"changelog",element:(0,e.createElement)(ai,null)}),t.map((function(t){let{Component:n,key:r,path:a}=t,o=ui(t,ii);return(0,e.createElement)(Ct,{key:r||a,path:a,element:(0,e.createElement)(pi,ci({Component:n},o))})})))),se({basename:null==r?void 0:r.basename,future:Dt({},null==r?void 0:r.future,{v7_prependBasename:!0}),history:(a={window:null==r?void 0:r.window},void 0===a&&(a={}),b((function(e,t){let{pathname:n="/",search:r="",hash:a=""}=y(e.location.hash.substr(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),v("",{pathname:n,search:r,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:g(t))}),(function(e,t){f("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),a)),hydrationData:(null==r?void 0:r.hydrationData)||At(),routes:n,mapRouteProperties:Rt,dataStrategy:null==r?void 0:r.dataStrategy,patchRoutesOnNavigation:null==r?void 0:r.patchRoutesOnNavigation,window:null==r?void 0:r.window}).initialize();var n,r,a};var gi=function(){const t=(0,e.useMemo)((function(){return vi()}),[]);return(0,e.createElement)(Ht,{router:t,future:{v7_startTransition:!0}})};document.addEventListener("DOMContentLoaded",(function(){if(ctDashboardLocalizations.plugin_data&&document.getElementById("ct-dashboard")){(0,e.createRoot)(document.getElementById("ct-dashboard")).render((0,e.createElement)(gi,null))}}))}()}();