@actual-app/web 23.12.0 → 24.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/build/asset-manifest.json +13 -15
  2. package/build/data/migrations/1632571489012_remove_cache.js +18 -17
  3. package/build/index.html +1 -1
  4. package/build/kcab/{kcab.worker.676aa69de34599d64b7b.js → kcab.worker.26846256cb1531298b26.js} +61 -56
  5. package/build/kcab/kcab.worker.26846256cb1531298b26.js.map +1 -0
  6. package/build/static/js/231.e37c027b.chunk.js +2 -0
  7. package/build/static/js/231.e37c027b.chunk.js.map +1 -0
  8. package/build/static/js/553.e06509f6.chunk.js +2 -0
  9. package/build/static/js/553.e06509f6.chunk.js.map +1 -0
  10. package/build/static/js/main.eea3298c.js +201 -0
  11. package/build/static/js/main.eea3298c.js.map +1 -0
  12. package/build/static/js/narrow-components.574c7b46.chunk.js +2 -0
  13. package/build/static/js/narrow-components.574c7b46.chunk.js.map +1 -0
  14. package/build/static/js/reports.892e778c.chunk.js +2 -0
  15. package/build/static/js/reports.892e778c.chunk.js.map +1 -0
  16. package/build/static/js/wide-components.8ded5c13.chunk.js +2 -0
  17. package/build/static/js/wide-components.8ded5c13.chunk.js.map +1 -0
  18. package/package.json +1 -2
  19. package/build/kcab/kcab.worker.676aa69de34599d64b7b.js.map +0 -1
  20. package/build/static/js/226.8132a539.chunk.js +0 -2
  21. package/build/static/js/226.8132a539.chunk.js.map +0 -1
  22. package/build/static/js/231.370f17f8.chunk.js +0 -2
  23. package/build/static/js/231.370f17f8.chunk.js.map +0 -1
  24. package/build/static/js/444.301f7ece.chunk.js +0 -15
  25. package/build/static/js/444.301f7ece.chunk.js.map +0 -1
  26. package/build/static/js/main.39d3269d.js +0 -188
  27. package/build/static/js/main.39d3269d.js.map +0 -1
  28. package/build/static/js/narrow-components.b0c96dd8.chunk.js +0 -2
  29. package/build/static/js/narrow-components.b0c96dd8.chunk.js.map +0 -1
  30. package/build/static/js/reports.dec86016.chunk.js +0 -2
  31. package/build/static/js/reports.dec86016.chunk.js.map +0 -1
  32. package/build/static/js/wide-components.eb0a5f91.chunk.js +0 -2
  33. package/build/static/js/wide-components.eb0a5f91.chunk.js.map +0 -1
@@ -1,188 +0,0 @@
1
- (function(){var e={45058:function(e,t,n){"use strict";n.d(t,{Ep:function(){return g},J0:function(){return u},LX:function(){return z},RQ:function(){return q},WK:function(){return ea},X3:function(){return J},Zn:function(){return H},Zq:function(){return U},aU:function(){return o},cP:function(){return v},fp:function(){return S},lX:function(){return s},pC:function(){return K}});/**
2
- * @remix-run/router v1.6.2
3
- *
4
- * Copyright (c) Remix Software Inc.
5
- *
6
- * This source code is licensed under the MIT license found in the
7
- * LICENSE.md file in the root directory of this source tree.
8
- *
9
- * @license MIT
10
- */function r(){r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n){if(Object.prototype.hasOwnProperty.call(n,r)){e[r]=n[r]}}}return e};return r.apply(this,arguments)}var o;(function(e){e["Pop"]="POP";e["Push"]="PUSH";e["Replace"]="REPLACE"})(o||(o={}));const i="popstate";function a(e){if(e===void 0){e={}}let{initialEntries:t=["/"],initialIndex:n,v5Compat:r=false}=e;let i;i=t.map((e,t)=>h(e,typeof e==="string"?null:e.state,t===0?"default":undefined));let a=u(n==null?i.length-1:n);let s=o.Pop;let l=null;function u(e){return Math.min(Math.max(e,0),i.length-1)}function f(){return i[a]}function h(e,t,n){if(t===void 0){t=null}let r=p(i?f().pathname:"/",e,t,n);c(r.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(e));return r}function m(e){return typeof e==="string"?e:g(e)}let y={get index(){return a},get action(){return s},get location(){return f()},createHref:m,createURL(e){return new URL(m(e),"http://localhost")},encodeLocation(e){let t=typeof e==="string"?v(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,t){s=o.Push;let n=h(e,t);a+=1;i.splice(a,i.length,n);if(r&&l){l({action:s,location:n,delta:1})}},replace(e,t){s=o.Replace;let n=h(e,t);i[a]=n;if(r&&l){l({action:s,location:n,delta:0})}},go(e){s=o.Pop;let t=u(a+e);let n=i[t];a=t;if(l){l({action:s,location:n,delta:e})}},listen(e){l=e;return()=>{l=null}}};return y}function s(e){if(e===void 0){e={}}function t(e,t){let{pathname:n,search:r,hash:o}=e.location;return p("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}function n(e,t){return typeof t==="string"?t:g(t)}return m(t,n,null,e)}function l(e){if(e===void 0){e={}}function t(e,t){let{pathname:n="/",search:r="",hash:o=""}=v(e.location.hash.substr(1));return p("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}function n(e,t){let n=e.document.querySelector("base");let r="";if(n&&n.getAttribute("href")){let t=e.location.href;let n=t.indexOf("#");r=n===-1?t:t.slice(0,n)}return r+"#"+(typeof t==="string"?t:g(t))}function r(e,t){c(e.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}return m(t,n,r,e)}function u(e,t){if(e===false||e===null||typeof e==="undefined"){throw new Error(t)}}function c(e,t){if(!e){if(typeof console!=="undefined")console.warn(t);try{throw new Error(t)}catch(e){}}}function f(){return Math.random().toString(36).substr(2,8)}function h(e,t){return{usr:e.state,key:e.key,idx:t}}function p(e,t,n,o){if(n===void 0){n=null}let i=r({pathname:typeof e==="string"?e:e.pathname,search:"",hash:""},typeof t==="string"?v(t):t,{state:n,key:t&&t.key||o||f()});return i}function g(e){let{pathname:t="/",search:n="",hash:r=""}=e;if(n&&n!=="?")t+=n.charAt(0)==="?"?n:"?"+n;if(r&&r!=="#")t+=r.charAt(0)==="#"?r:"#"+r;return t}function v(e){let t={};if(e){let n=e.indexOf("#");if(n>=0){t.hash=e.substr(n);e=e.substr(0,n)}let r=e.indexOf("?");if(r>=0){t.search=e.substr(r);e=e.substr(0,r)}if(e){t.pathname=e}}return t}function m(e,t,n,a){if(a===void 0){a={}}let{window:s=document.defaultView,v5Compat:l=false}=a;let c=s.history;let f=o.Pop;let v=null;let m=y();if(m==null){m=0;c.replaceState(r({},c.state,{idx:m}),"")}function y(){let e=c.state||{idx:null};return e.idx}function w(){f=o.Pop;let e=y();let t=e==null?null:e-m;m=e;if(v){v({action:f,location:k.location,delta:t})}}function x(e,t){f=o.Push;let r=p(k.location,e,t);if(n)n(r,e);m=y()+1;let i=h(r,m);let a=k.createHref(r);try{c.pushState(i,"",a)}catch(e){s.location.assign(a)}if(l&&v){v({action:f,location:k.location,delta:1})}}function b(e,t){f=o.Replace;let r=p(k.location,e,t);if(n)n(r,e);m=y();let i=h(r,m);let a=k.createHref(r);c.replaceState(i,"",a);if(l&&v){v({action:f,location:k.location,delta:0})}}function S(e){let t=s.location.origin!=="null"?s.location.origin:s.location.href;let n=typeof e==="string"?e:g(e);u(t,"No window.location.(origin|href) available to create URL for href: "+n);return new URL(n,t)}let k={get action(){return f},get location(){return e(s,c)},listen(e){if(v){throw new Error("A history only accepts one active listener")}s.addEventListener(i,w);v=e;return()=>{s.removeEventListener(i,w);v=null}},createHref(e){return t(s,e)},createURL:S,encodeLocation(e){let t=S(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:x,replace:b,go(e){return c.go(e)}};return k}var y;(function(e){e["data"]="data";e["deferred"]="deferred";e["redirect"]="redirect";e["error"]="error"})(y||(y={}));const w=new Set(["lazy","caseSensitive","path","id","index","children"]);function x(e){return e.index===true}function b(e,t,n,o){if(n===void 0){n=[]}if(o===void 0){o={}}return e.map((e,i)=>{let a=[...n,i];let s=typeof e.id==="string"?e.id:a.join("-");u(e.index!==true||!e.children,"Cannot specify children on an index route");u(!o[s],'Found a route id collision on id "'+s+'". Route '+"id's must be globally unique within Data Router usages");if(x(e)){let n=r({},e,t(e),{id:s});o[s]=n;return n}else{let n=r({},e,t(e),{id:s,children:undefined});o[s]=n;if(e.children){n.children=b(e.children,t,a,o)}return n}})}function S(e,t,n){if(n===void 0){n="/"}let r=typeof t==="string"?v(t):t;let o=H(r.pathname||"/",n);if(o==null){return null}let i=k(e);C(i);let a=null;for(let e=0;a==null&&e<i.length;++e){a=R(i[e],L(o))}return a}function k(e,t,n,r){if(t===void 0){t=[]}if(n===void 0){n=[]}if(r===void 0){r=""}let o=(e,o,i)=>{let a={relativePath:i===undefined?e.path||"":i,caseSensitive:e.caseSensitive===true,childrenIndex:o,route:e};if(a.relativePath.startsWith("/")){u(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes.");a.relativePath=a.relativePath.slice(r.length)}let s=q([r,a.relativePath]);let l=n.concat(a);if(e.children&&e.children.length>0){u(e.index!==true,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".'));k(e.children,t,l,s)}if(e.path==null&&!e.index){return}t.push({path:s,score:O(s,e.index),routesMeta:l})};e.forEach((e,t)=>{var n;if(e.path===""||!((n=e.path)!=null&&n.includes("?"))){o(e,t)}else{for(let n of j(e.path)){o(e,t,n)}}});return t}function j(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t;let o=n.endsWith("?");let i=n.replace(/\?$/,"");if(r.length===0){return o?[i,""]:[i]}let a=j(r.join("/"));let s=[];s.push(...a.map(e=>e===""?i:[i,e].join("/")));if(o){s.push(...a)}return s.map(t=>e.startsWith("/")&&t===""?"/":t)}function C(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:A(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}const T=/^:\w+$/;const E=3;const _=2;const I=1;const M=10;const D=-2;const P=e=>e==="*";function O(e,t){let n=e.split("/");let r=n.length;if(n.some(P)){r+=D}if(t){r+=_}return n.filter(e=>!P(e)).reduce((e,t)=>e+(T.test(t)?E:t===""?I:M),r)}function A(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}function R(e,t){let{routesMeta:n}=e;let r={};let o="/";let i=[];for(let e=0;e<n.length;++e){let a=n[e];let s=e===n.length-1;let l=o==="/"?t:t.slice(o.length)||"/";let u=z({path:a.relativePath,caseSensitive:a.caseSensitive,end:s},l);if(!u)return null;Object.assign(r,u.params);let c=a.route;i.push({params:r,pathname:q([o,u.pathname]),pathnameBase:Y(q([o,u.pathnameBase])),route:c});if(u.pathnameBase!=="/"){o=q([o,u.pathnameBase])}}return i}function Z(e,t){if(t===void 0){t={}}let n=e;if(n.endsWith("*")&&n!=="*"&&!n.endsWith("/*")){c(false,'Route path "'+n+'" will be treated as if it were '+('"'+n.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+n.replace(/\*$/,"/*")+'".'));n=n.replace(/\*$/,"/*")}const r=n.startsWith("/")?"/":"";const o=n.split(/\/+/).map((e,n,r)=>{const o=n===r.length-1;if(o&&e==="*"){const e="*";const n=t[e];return n}const i=e.match(/^:(\w+)(\??)$/);if(i){const[,e,n]=i;let r=t[e];if(n==="?"){return r==null?"":r}if(r==null){u(false,'Missing ":'+e+'" param')}return r}return e.replace(/\?$/g,"")}).filter(e=>!!e);return r+o.join("/")}function z(e,t){if(typeof e==="string"){e={path:e,caseSensitive:false,end:true}}let[n,r]=N(e.path,e.caseSensitive,e.end);let o=t.match(n);if(!o)return null;let i=o[0];let a=i.replace(/(.)\/+$/,"$1");let s=o.slice(1);let l=r.reduce((e,t,n)=>{if(t==="*"){let e=s[n]||"";a=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}e[t]=B(s[n]||"",t);return e},{});return{params:l,pathname:i,pathnameBase:a,pattern:e}}function N(e,t,n){if(t===void 0){t=false}if(n===void 0){n=true}c(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=[];let o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(e,t)=>{r.push(t);return"/([^\\/]+)"});if(e.endsWith("*")){r.push("*");o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"}else if(n){o+="\\/*$"}else if(e!==""&&e!=="/"){o+="(?:(?=\\/|$))"}else;let i=new RegExp(o,t?undefined:"i");return[i,r]}function L(e){try{return decodeURI(e)}catch(t){c(false,'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+")."));return e}}function B(e,t){try{return decodeURIComponent(e)}catch(n){c(false,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+")."));return e}}function H(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase())){return null}let n=t.endsWith("/")?t.length-1:t.length;let r=e.charAt(n);if(r&&r!=="/"){return null}return e.slice(n)||"/"}function F(e,t){if(t===void 0){t="/"}let{pathname:n,search:r="",hash:o=""}=typeof e==="string"?v(e):e;let i=n?n.startsWith("/")?n:V(n,t):t;return{pathname:i,search:G(r),hash:X(o)}}function V(e,t){let n=t.replace(/\/+$/,"").split("/");let r=e.split("/");r.forEach(e=>{if(e===".."){if(n.length>1)n.pop()}else if(e!=="."){n.push(e)}});return n.length>1?n.join("/"):"/"}function W(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 U(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function K(e,t,n,o){if(o===void 0){o=false}let i;if(typeof e==="string"){i=v(e)}else{i=r({},e);u(!i.pathname||!i.pathname.includes("?"),W("?","pathname","search",i));u(!i.pathname||!i.pathname.includes("#"),W("#","pathname","hash",i));u(!i.search||!i.search.includes("#"),W("#","search","hash",i))}let a=e===""||i.pathname==="";let s=a?"/":i.pathname;let l;if(o||s==null){l=n}else{let e=t.length-1;if(s.startsWith("..")){let t=s.split("/");while(t[0]===".."){t.shift();e-=1}i.pathname=t.join("/")}l=e>=0?t[e]:"/"}let c=F(i,l);let f=s&&s!=="/"&&s.endsWith("/");let h=(a||s===".")&&n.endsWith("/");if(!c.pathname.endsWith("/")&&(f||h)){c.pathname+="/"}return c}function $(e){return e===""||e.pathname===""?"/":typeof e==="string"?v(e).pathname:e.pathname}const q=e=>e.join("/").replace(/\/\/+/g,"/");const Y=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");const G=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e;const X=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;const Q=function e(e,t){if(t===void 0){t={}}let n=typeof t==="number"?{status:t}:t;let o=new Headers(n.headers);if(!o.has("Content-Type")){o.set("Content-Type","application/json; charset=utf-8")}return new Response(JSON.stringify(e),r({},n,{headers:o}))};class J extends Error{}class ee{constructor(e,t){this.pendingKeysSet=new Set;this.subscribers=new Set;this.deferredKeys=[];u(e&&typeof e==="object"&&!Array.isArray(e),"defer() only accepts plain objects");let n;this.abortPromise=new Promise((e,t)=>n=t);this.controller=new AbortController;let r=()=>n(new J("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",r);this.controller.signal.addEventListener("abort",r);this.data=Object.entries(e).reduce((e,t)=>{let[n,r]=t;return Object.assign(e,{[n]:this.trackPromise(n,r)})},{});if(this.done){this.unlistenAbortSignal()}this.init=t}trackPromise(e,t){if(!(t instanceof Promise)){return t}this.deferredKeys.push(e);this.pendingKeysSet.add(e);let n=Promise.race([t,this.abortPromise]).then(t=>this.onSettle(n,e,null,t),t=>this.onSettle(n,e,t));n.catch(()=>{});Object.defineProperty(n,"_tracked",{get:()=>true});return n}onSettle(e,t,n,r){if(this.controller.signal.aborted&&n instanceof J){this.unlistenAbortSignal();Object.defineProperty(e,"_error",{get:()=>n});return Promise.reject(n)}this.pendingKeysSet.delete(t);if(this.done){this.unlistenAbortSignal()}if(n){Object.defineProperty(e,"_error",{get:()=>n});this.emit(false,t);return Promise.reject(n)}Object.defineProperty(e,"_data",{get:()=>r});this.emit(false,t);return r}emit(e,t){this.subscribers.forEach(n=>n(e,t))}subscribe(e){this.subscribers.add(e);return()=>this.subscribers.delete(e)}cancel(){this.controller.abort();this.pendingKeysSet.forEach((e,t)=>this.pendingKeysSet.delete(t));this.emit(true)}async resolveData(e){let t=false;if(!this.done){let n=()=>this.cancel();e.addEventListener("abort",n);t=await new Promise(t=>{this.subscribe(r=>{e.removeEventListener("abort",n);if(r||this.done){t(r)}})})}return t}get done(){return this.pendingKeysSet.size===0}get unwrappedData(){u(this.data!==null&&this.done,"Can only unwrap data on initialized and settled deferreds");return Object.entries(this.data).reduce((e,t)=>{let[n,r]=t;return Object.assign(e,{[n]:en(r)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function et(e){return e instanceof Promise&&e._tracked===true}function en(e){if(!et(e)){return e}if(e._error){throw e._error}return e._data}const er=function e(e,t){if(t===void 0){t={}}let n=typeof t==="number"?{status:t}:t;return new ee(e,n)};const eo=function e(e,t){if(t===void 0){t=302}let n=t;if(typeof n==="number"){n={status:n}}else if(typeof n.status==="undefined"){n.status=302}let o=new Headers(n.headers);o.set("Location",e);return new Response(null,r({},n,{headers:o}))};class ei{constructor(e,t,n,r){if(r===void 0){r=false}this.status=e;this.statusText=t||"";this.internal=r;if(n instanceof Error){this.data=n.toString();this.error=n}else{this.data=n}}}function ea(e){return e!=null&&typeof e.status==="number"&&typeof e.statusText==="string"&&typeof e.internal==="boolean"&&"data"in e}const es=["post","put","patch","delete"];const el=new Set(es);const eu=["get",...es];const ec=new Set(eu);const ed=new Set([301,302,303,307,308]);const ef=new Set([307,308]);const eh={state:"idle",location:undefined,formMethod:undefined,formAction:undefined,formEncType:undefined,formData:undefined};const ep={state:"idle",data:undefined,formMethod:undefined,formAction:undefined,formEncType:undefined,formData:undefined};const eg={state:"unblocked",proceed:undefined,reset:undefined,location:undefined};const ev=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;const em=typeof window!=="undefined"&&typeof window.document!=="undefined"&&typeof window.document.createElement!=="undefined";const ey=!em;const ew=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)});function ex(e){u(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let t;if(e.mapRouteProperties){t=e.mapRouteProperties}else if(e.detectErrorBoundary){let n=e.detectErrorBoundary;t=e=>({hasErrorBoundary:n(e)})}else{t=ew}let n={};let i=b(e.routes,t,undefined,n);let a;let s=e.basename||"/";let l=r({v7_normalizeFormMethod:false,v7_prependBasename:false},e.future);let f=null;let h=new Set;let g=null;let v=null;let m=null;let w=e.hydrationData!=null;let x=S(i,e.history.location,s);let k=null;if(x==null){let t=eH(404,{pathname:e.history.location.pathname});let{matches:n,route:r}=eB(i);x=n;k={[r.id]:t}}let j=!x.some(e=>e.route.lazy)&&(!x.some(e=>e.route.loader)||e.hydrationData!=null);let C;let T={historyAction:e.history.action,location:e.history.location,matches:x,initialized:j,navigation:eh,restoreScrollPosition:e.hydrationData!=null?false:null,preventScrollReset:false,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||k,fetchers:new Map,blockers:new Map};let E=o.Pop;let _=false;let I;let M=false;let D=false;let P=[];let O=[];let A=new Map;let R=0;let Z=-1;let z=new Map;let N=new Set;let L=new Map;let B=new Map;let F=new Map;let V=false;function W(){f=e.history.listen(t=>{let{action:n,location:r,delta:o}=t;if(V){V=false;return}c(F.size===0||o!=null,"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 i=ej({currentLocation:T.location,nextLocation:r,historyAction:n});if(i&&o!=null){V=true;e.history.go(o*-1);ek(i,{state:"blocked",location:r,proceed(){ek(i,{state:"proceeding",proceed:undefined,reset:undefined,location:r});e.history.go(o)},reset(){eS(i);$({blockers:new Map(C.state.blockers)})}});return}return X(n,r)});if(!T.initialized){X(o.Pop,T.location)}return C}function U(){if(f){f()}h.clear();I&&I.abort();T.fetchers.forEach((e,t)=>el(t));T.blockers.forEach((e,t)=>eS(t))}function K(e){h.add(e);return()=>h.delete(e)}function $(e){T=r({},T,e);h.forEach(e=>e(T))}function q(t,n){var s,l;let u=T.actionData!=null&&T.navigation.formMethod!=null&&eJ(T.navigation.formMethod)&&T.navigation.state==="loading"&&((s=t.state)==null?void 0:s._isRedirect)!==true;let c;if(n.actionData){if(Object.keys(n.actionData).length>0){c=n.actionData}else{c=null}}else if(u){c=T.actionData}else{c=null}let f=n.loaderData?eN(T.loaderData,n.loaderData,n.matches||[],n.errors):T.loaderData;for(let[e]of F){eS(e)}let h=_===true||T.navigation.formMethod!=null&&eJ(T.navigation.formMethod)&&((l=t.state)==null?void 0:l._isRedirect)!==true;if(a){i=a;a=undefined}$(r({},n,{actionData:c,loaderData:f,historyAction:E,location:t,initialized:true,navigation:eh,revalidation:"idle",restoreScrollPosition:eD(t,n.matches||T.matches),preventScrollReset:h,blockers:new Map(T.blockers)}));if(M);else if(E===o.Pop);else if(E===o.Push){e.history.push(t,t.state)}else if(E===o.Replace){e.history.replace(t,t.state)}E=o.Pop;_=false;M=false;D=false;P=[];O=[]}async function Y(t,n){if(typeof t==="number"){e.history.go(t);return}let i=eC(T.location,T.matches,s,l.v7_prependBasename,t,n==null?void 0:n.fromRouteId,n==null?void 0:n.relative);let{path:a,submission:u,error:c}=eT(l.v7_normalizeFormMethod,false,i,n);let f=T.location;let h=p(T.location,a,n&&n.state);h=r({},h,e.history.encodeLocation(h));let g=n&&n.replace!=null?n.replace:undefined;let v=o.Push;if(g===true){v=o.Replace}else if(g===false);else if(u!=null&&eJ(u.formMethod)&&u.formAction===T.location.pathname+T.location.search){v=o.Replace}let m=n&&"preventScrollReset"in n?n.preventScrollReset===true:undefined;let y=ej({currentLocation:f,nextLocation:h,historyAction:v});if(y){ek(y,{state:"blocked",location:h,proceed(){ek(y,{state:"proceeding",proceed:undefined,reset:undefined,location:h});Y(t,n)},reset(){eS(y);$({blockers:new Map(T.blockers)})}});return}return await X(v,h,{submission:u,pendingError:c,preventScrollReset:m,replace:n&&n.replace})}function G(){ea();$({revalidation:"loading"});if(T.navigation.state==="submitting"){return}if(T.navigation.state==="idle"){X(T.historyAction,T.location,{startUninterruptedRevalidation:true});return}X(E||T.historyAction,T.navigation.location,{overrideNavigation:T.navigation})}async function X(t,n,o){I&&I.abort();I=null;E=t;M=(o&&o.startUninterruptedRevalidation)===true;eM(T.location,T.matches);_=(o&&o.preventScrollReset)===true;let l=a||i;let u=o&&o.overrideNavigation;let c=S(l,n,s);if(!c){let e=eH(404,{pathname:n.pathname});let{matches:t,route:r}=eB(l);eE();q(n,{matches:t,loaderData:{},errors:{[r.id]:e}});return}if(T.initialized&&eW(T.location,n)&&!(o&&o.submission&&eJ(o.submission.formMethod))){q(n,{matches:c});return}I=new AbortController;let f=eA(e.history,n,I.signal,o&&o.submission);let h;let p;if(o&&o.pendingError){p={[eL(c).route.id]:o.pendingError}}else if(o&&o.submission&&eJ(o.submission.formMethod)){let e=await Q(f,n,o.submission,c,{replace:o.replace});if(e.shortCircuited){return}h=e.pendingActionData;p=e.pendingActionError;let t=r({state:"loading",location:n},o.submission);u=t;f=new Request(f.url,{signal:f.signal})}let{shortCircuited:g,loaderData:v,errors:m}=await J(f,n,c,u,o&&o.submission,o&&o.fetcherSubmission,o&&o.replace,h,p);if(g){return}I=null;q(n,r({matches:c},h?{actionData:h}:{},{loaderData:v,errors:m}))}async function Q(e,i,a,l,u){ea();let c=r({state:"submitting",location:i},a);$({navigation:c});let f;let h=e5(l,i);if(!h.route.action&&!h.route.lazy){f={type:y.error,error:eH(405,{method:e.method,pathname:i.pathname,routeId:h.route.id})}}else{f=await eO("action",e,h,l,n,t,s);if(e.signal.aborted){return{shortCircuited:true}}}if(e$(f)){let e;if(u&&u.replace!=null){e=u.replace}else{e=f.location===T.location.pathname+T.location.search}await eo(T,f,{submission:a,replace:e});return{shortCircuited:true}}if(eK(f)){let e=eL(l,h.route.id);if((u&&u.replace)!==true){E=o.Push}return{pendingActionData:{},pendingActionError:{[e.route.id]:f.error}}}if(eU(f)){throw eH(400,{type:"defer-action"})}return{pendingActionData:{[h.route.id]:f.data}}}async function J(t,n,o,l,u,c,f,h,p){let g=l;if(!g){let e=r({state:"loading",location:n,formMethod:undefined,formAction:undefined,formEncType:undefined,formData:undefined},u);g=e}let v=u||c?u||c:g.formMethod&&g.formAction&&g.formData&&g.formEncType?{formMethod:g.formMethod,formAction:g.formAction,formData:g.formData,formEncType:g.formEncType}:undefined;let m=a||i;let[y,w]=e_(e.history,T,o,v,n,D,P,O,L,m,s,h,p);eE(e=>!(o&&o.some(t=>t.route.id===e))||y&&y.some(t=>t.route.id===e));if(y.length===0&&w.length===0){let e=ed();q(n,r({matches:o,loaderData:{},errors:p||null},h?{actionData:h}:{},e?{fetchers:new Map(T.fetchers)}:{}));return{shortCircuited:true}}if(!M){w.forEach(e=>{let t=T.fetchers.get(e.key);let n={state:"loading",data:t&&t.data,formMethod:undefined,formAction:undefined,formEncType:undefined,formData:undefined," _hasFetcherDoneAnything ":true};T.fetchers.set(e.key,n)});let e=h||T.actionData;$(r({navigation:g},e?Object.keys(e).length===0?{actionData:null}:{actionData:e}:{},w.length>0?{fetchers:new Map(T.fetchers)}:{}))}Z=++R;w.forEach(e=>{if(e.controller){A.set(e.key,e.controller)}});let x=()=>w.forEach(e=>eu(e.key));if(I){I.signal.addEventListener("abort",x)}let{results:b,loaderResults:S,fetcherResults:k}=await ei(T.matches,o,y,w,t);if(t.signal.aborted){return{shortCircuited:true}}if(I){I.signal.removeEventListener("abort",x)}w.forEach(e=>A.delete(e.key));let j=eF(b);if(j){await eo(T,j,{replace:f});return{shortCircuited:true}}let{loaderData:C,errors:E}=ez(T,o,y,S,p,w,k,B);B.forEach((e,t)=>{e.subscribe(n=>{if(n||e.done){B.delete(t)}})});let _=ed();let z=ex(Z);let N=_||z||w.length>0;return r({loaderData:C,errors:E},N?{fetchers:new Map(T.fetchers)}:{})}function ee(e){return T.fetchers.get(e)||ep}function et(e,t,n,r){if(ey){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.")}if(A.has(e))eu(e);let o=a||i;let u=eC(T.location,T.matches,s,l.v7_prependBasename,n,t,r==null?void 0:r.relative);let c=S(o,u,s);if(!c){es(e,t,eH(404,{pathname:u}));return}let{path:f,submission:h}=eT(l.v7_normalizeFormMethod,true,u,r);let p=e5(c,f);_=(r&&r.preventScrollReset)===true;if(h&&eJ(h.formMethod)){en(e,t,f,p,c,h);return}L.set(e,{routeId:t,path:f});er(e,t,f,p,c,h)}async function en(o,l,c,f,h,p){ea();L.delete(o);if(!f.route.action&&!f.route.lazy){let e=eH(405,{method:p.formMethod,pathname:c,routeId:l});es(o,l,e);return}let g=T.fetchers.get(o);let v=r({state:"submitting"},p,{data:g&&g.data," _hasFetcherDoneAnything ":true});T.fetchers.set(o,v);$({fetchers:new Map(T.fetchers)});let m=new AbortController;let y=eA(e.history,c,m.signal,p);A.set(o,m);let w=await eO("action",y,f,h,n,t,s);if(y.signal.aborted){if(A.get(o)===m){A.delete(o)}return}if(e$(w)){A.delete(o);N.add(o);let e=r({state:"loading"},p,{data:undefined," _hasFetcherDoneAnything ":true});T.fetchers.set(o,e);$({fetchers:new Map(T.fetchers)});return eo(T,w,{submission:p,isFetchActionRedirect:true})}if(eK(w)){es(o,l,w.error);return}if(eU(w)){throw eH(400,{type:"defer-action"})}let x=T.navigation.location||T.location;let b=eA(e.history,x,m.signal);let k=a||i;let j=T.navigation.state!=="idle"?S(k,T.navigation.location,s):T.matches;u(j,"Didn't find any matches after fetcher action");let C=++R;z.set(o,C);let _=r({state:"loading",data:w.data},p,{" _hasFetcherDoneAnything ":true});T.fetchers.set(o,_);let[M,H]=e_(e.history,T,j,p,x,D,P,O,L,k,s,{[f.route.id]:w.data},undefined);H.filter(e=>e.key!==o).forEach(e=>{let t=e.key;let n=T.fetchers.get(t);let r={state:"loading",data:n&&n.data,formMethod:undefined,formAction:undefined,formEncType:undefined,formData:undefined," _hasFetcherDoneAnything ":true};T.fetchers.set(t,r);if(e.controller){A.set(t,e.controller)}});$({fetchers:new Map(T.fetchers)});let F=()=>H.forEach(e=>eu(e.key));m.signal.addEventListener("abort",F);let{results:V,loaderResults:W,fetcherResults:U}=await ei(T.matches,j,M,H,b);if(m.signal.aborted){return}m.signal.removeEventListener("abort",F);z.delete(o);A.delete(o);H.forEach(e=>A.delete(e.key));let K=eF(V);if(K){return eo(T,K)}let{loaderData:Y,errors:G}=ez(T,T.matches,M,W,undefined,H,U,B);let X={state:"idle",data:w.data,formMethod:undefined,formAction:undefined,formEncType:undefined,formData:undefined," _hasFetcherDoneAnything ":true};T.fetchers.set(o,X);let Q=ex(C);if(T.navigation.state==="loading"&&C>Z){u(E,"Expected pending action");I&&I.abort();q(T.navigation.location,{matches:j,loaderData:Y,errors:G,fetchers:new Map(T.fetchers)})}else{$(r({errors:G,loaderData:eN(T.loaderData,Y,j,G)},Q?{fetchers:new Map(T.fetchers)}:{}));D=false}}async function er(o,i,a,l,c,f){let h=T.fetchers.get(o);let p=r({state:"loading",formMethod:undefined,formAction:undefined,formEncType:undefined,formData:undefined},f,{data:h&&h.data," _hasFetcherDoneAnything ":true});T.fetchers.set(o,p);$({fetchers:new Map(T.fetchers)});let g=new AbortController;let v=eA(e.history,a,g.signal);A.set(o,g);let m=await eO("loader",v,l,c,n,t,s);if(eU(m)){m=await e1(m,v.signal,true)||m}if(A.get(o)===g){A.delete(o)}if(v.signal.aborted){return}if(e$(m)){N.add(o);await eo(T,m);return}if(eK(m)){let e=eL(T.matches,i);T.fetchers.delete(o);$({fetchers:new Map(T.fetchers),errors:{[e.route.id]:m.error}});return}u(!eU(m),"Unhandled fetcher deferred data");let y={state:"idle",data:m.data,formMethod:undefined,formAction:undefined,formEncType:undefined,formData:undefined," _hasFetcherDoneAnything ":true};T.fetchers.set(o,y);$({fetchers:new Map(T.fetchers)})}async function eo(t,n,i){var a;let{submission:l,replace:c,isFetchActionRedirect:f}=i===void 0?{}:i;if(n.revalidate){D=true}let h=p(t.location,n.location,r({_isRedirect:true},f?{_isFetchActionRedirect:true}:{}));u(h,"Expected a location on the redirect navigation");if(ev.test(n.location)&&em&&typeof((a=window)==null?void 0:a.location)!=="undefined"){let t=e.history.createURL(n.location);let r=H(t.pathname,s)==null;if(window.location.origin!==t.origin||r){if(c){window.location.replace(n.location)}else{window.location.assign(n.location)}return}}I=null;let g=c===true?o.Replace:o.Push;let{formMethod:v,formAction:m,formEncType:y,formData:w}=t.navigation;if(!l&&v&&m&&w&&y){l={formMethod:v,formAction:m,formEncType:y,formData:w}}if(ef.has(n.status)&&l&&eJ(l.formMethod)){await X(g,h,{submission:r({},l,{formAction:n.location}),preventScrollReset:_})}else if(f){await X(g,h,{overrideNavigation:{state:"loading",location:h,formMethod:undefined,formAction:undefined,formEncType:undefined,formData:undefined},fetcherSubmission:l,preventScrollReset:_})}else{await X(g,h,{overrideNavigation:{state:"loading",location:h,formMethod:l?l.formMethod:undefined,formAction:l?l.formAction:undefined,formEncType:l?l.formEncType:undefined,formData:l?l.formData:undefined},preventScrollReset:_})}}async function ei(r,o,i,a,l){let u=await Promise.all([...i.map(e=>eO("loader",l,e,o,n,t,s)),...a.map(r=>{if(r.matches&&r.match&&r.controller){return eO("loader",eA(e.history,r.path,r.controller.signal),r.match,r.matches,n,t,s)}else{let e={type:y.error,error:eH(404,{pathname:r.path})};return e}})]);let c=u.slice(0,i.length);let f=u.slice(i.length);await Promise.all([e0(r,i,c,c.map(()=>l.signal),false,T.loaderData),e0(r,a.map(e=>e.match),f,a.map(e=>e.controller?e.controller.signal:null),true)]);return{results:u,loaderResults:c,fetcherResults:f}}function ea(){D=true;P.push(...eE());L.forEach((e,t)=>{if(A.has(t)){O.push(t);eu(t)}})}function es(e,t,n){let r=eL(T.matches,t);el(e);$({errors:{[r.route.id]:n},fetchers:new Map(T.fetchers)})}function el(e){if(A.has(e))eu(e);L.delete(e);z.delete(e);N.delete(e);T.fetchers.delete(e)}function eu(e){let t=A.get(e);u(t,"Expected fetch controller: "+e);t.abort();A.delete(e)}function ec(e){for(let t of e){let e=ee(t);let n={state:"idle",data:e.data,formMethod:undefined,formAction:undefined,formEncType:undefined,formData:undefined," _hasFetcherDoneAnything ":true};T.fetchers.set(t,n)}}function ed(){let e=[];let t=false;for(let n of N){let r=T.fetchers.get(n);u(r,"Expected fetcher: "+n);if(r.state==="loading"){N.delete(n);e.push(n);t=true}}ec(e);return t}function ex(e){let t=[];for(let[n,r]of z){if(r<e){let e=T.fetchers.get(n);u(e,"Expected fetcher: "+n);if(e.state==="loading"){eu(n);z.delete(n);t.push(n)}}}ec(t);return t.length>0}function eb(e,t){let n=T.blockers.get(e)||eg;if(F.get(e)!==t){F.set(e,t)}return n}function eS(e){T.blockers.delete(e);F.delete(e)}function ek(e,t){let n=T.blockers.get(e)||eg;u(n.state==="unblocked"&&t.state==="blocked"||n.state==="blocked"&&t.state==="blocked"||n.state==="blocked"&&t.state==="proceeding"||n.state==="blocked"&&t.state==="unblocked"||n.state==="proceeding"&&t.state==="unblocked","Invalid blocker state transition: "+n.state+" -> "+t.state);T.blockers.set(e,t);$({blockers:new Map(T.blockers)})}function ej(e){let{currentLocation:t,nextLocation:n,historyAction:r}=e;if(F.size===0){return}if(F.size>1){c(false,"A router only supports one blocker at a time")}let o=Array.from(F.entries());let[i,a]=o[o.length-1];let s=T.blockers.get(i);if(s&&s.state==="proceeding"){return}if(a({currentLocation:t,nextLocation:n,historyAction:r})){return i}}function eE(e){let t=[];B.forEach((n,r)=>{if(!e||e(r)){n.cancel();t.push(r);B.delete(r)}});return t}function eI(e,t,n){g=e;m=t;v=n||(e=>e.key);if(!w&&T.navigation===eh){w=true;let e=eD(T.location,T.matches);if(e!=null){$({restoreScrollPosition:e})}}return()=>{g=null;m=null;v=null}}function eM(e,t){if(g&&v&&m){let n=t.map(e=>e4(e,T.loaderData));let r=v(e,n)||e.key;g[r]=m()}}function eD(e,t){if(g&&v&&m){let n=t.map(e=>e4(e,T.loaderData));let r=v(e,n)||e.key;let o=g[r];if(typeof o==="number"){return o}}return null}function eP(e){n={};a=b(e,t,undefined,n)}C={get basename(){return s},get state(){return T},get routes(){return i},initialize:W,subscribe:K,enableScrollRestoration:eI,navigate:Y,fetch:et,revalidate:G,createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:ee,deleteFetcher:el,dispose:U,getBlocker:eb,deleteBlocker:eS,_internalFetchControllers:A,_internalActiveDeferreds:B,_internalSetRoutes:eP};return C}const eb=Symbol("deferred");function eS(e,t){u(e.length>0,"You must provide a non-empty routes array to createStaticHandler");let n={};let o=(t?t.basename:null)||"/";let i;if(t!=null&&t.mapRouteProperties){i=t.mapRouteProperties}else if(t!=null&&t.detectErrorBoundary){let e=t.detectErrorBoundary;i=t=>({hasErrorBoundary:e(t)})}else{i=ew}let a=b(e,i,undefined,n);async function s(e,t){let{requestContext:n}=t===void 0?{}:t;let i=new URL(e.url);let s=e.method;let l=p("",g(i),null,"default");let u=S(a,l,o);if(!eQ(s)&&s!=="HEAD"){let e=eH(405,{method:s});let{matches:t,route:n}=eB(a);return{basename:o,location:l,matches:t,loaderData:{},actionData:null,errors:{[n.id]:e},statusCode:e.status,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}else if(!u){let e=eH(404,{pathname:l.pathname});let{matches:t,route:n}=eB(a);return{basename:o,location:l,matches:t,loaderData:{},actionData:null,errors:{[n.id]:e},statusCode:e.status,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}let f=await c(e,l,u,n);if(eY(f)){return f}return r({location:l,basename:o},f)}async function l(e,t){let{routeId:n,requestContext:r}=t===void 0?{}:t;let i=new URL(e.url);let s=e.method;let l=p("",g(i),null,"default");let u=S(a,l,o);if(!eQ(s)&&s!=="HEAD"&&s!=="OPTIONS"){throw eH(405,{method:s})}else if(!u){throw eH(404,{pathname:l.pathname})}let f=n?u.find(e=>e.route.id===n):e5(u,l);if(n&&!f){throw eH(403,{pathname:l.pathname,routeId:n})}else if(!f){throw eH(404,{pathname:l.pathname})}let h=await c(e,l,u,r,f);if(eY(h)){return h}let v=h.errors?Object.values(h.errors)[0]:undefined;if(v!==undefined){throw v}if(h.actionData){return Object.values(h.actionData)[0]}if(h.loaderData){var m;let e=Object.values(h.loaderData)[0];if((m=h.activeDeferreds)!=null&&m[f.route.id]){e[eb]=h.activeDeferreds[f.route.id]}return e}return undefined}async function c(e,t,n,o,i){u(e.signal,"query()/queryRoute() requests must contain an AbortController signal");try{if(eJ(e.method.toLowerCase())){let r=await f(e,n,i||e5(n,t),o,i!=null);return r}let a=await h(e,n,o,i);return eY(a)?a:r({},a,{actionData:null,actionHeaders:{}})}catch(e){if(eX(e)){if(e.type===y.error&&!eG(e.response)){throw e.response}return e.response}if(eG(e)){return e}throw e}}async function f(e,t,a,s,l){let u;if(!a.route.action&&!a.route.lazy){let t=eH(405,{method:e.method,pathname:new URL(e.url).pathname,routeId:a.route.id});if(l){throw t}u={type:y.error,error:t}}else{u=await eO("action",e,a,t,n,i,o,true,l,s);if(e.signal.aborted){let e=l?"queryRoute":"query";throw new Error(e+"() call aborted")}}if(e$(u)){throw new Response(null,{status:u.status,headers:{Location:u.location}})}if(eU(u)){let e=eH(400,{type:"defer-action"});if(l){throw e}u={type:y.error,error:e}}if(l){if(eK(u)){throw u.error}return{matches:[a],loaderData:{},actionData:{[a.route.id]:u.data},errors:null,statusCode:200,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}if(eK(u)){let n=eL(t,a.route.id);let o=await h(e,t,s,undefined,{[n.route.id]:u.error});return r({},o,{statusCode:ea(u.error)?u.error.status:500,actionData:null,actionHeaders:r({},u.headers?{[a.route.id]:u.headers}:{})})}let c=new Request(e.url,{headers:e.headers,redirect:e.redirect,signal:e.signal});let f=await h(c,t,s);return r({},f,u.statusCode?{statusCode:u.statusCode}:{},{actionData:{[a.route.id]:u.data},actionHeaders:r({},u.headers?{[a.route.id]:u.headers}:{})})}async function h(e,t,a,s,l){let u=s!=null;if(u&&!(s!=null&&s.route.loader)&&!(s!=null&&s.route.lazy)){throw eH(400,{method:e.method,pathname:new URL(e.url).pathname,routeId:s==null?void 0:s.route.id})}let c=s?[s]:eE(t,Object.keys(l||{})[0]);let f=c.filter(e=>e.route.loader||e.route.lazy);if(f.length===0){return{matches:t,loaderData:t.reduce((e,t)=>Object.assign(e,{[t.route.id]:null}),{}),errors:l||null,statusCode:200,loaderHeaders:{},activeDeferreds:null}}let h=await Promise.all([...f.map(r=>eO("loader",e,r,t,n,i,o,true,u,a))]);if(e.signal.aborted){let e=u?"queryRoute":"query";throw new Error(e+"() call aborted")}let p=new Map;let g=eZ(t,f,h,l,p);let v=new Set(f.map(e=>e.route.id));t.forEach(e=>{if(!v.has(e.route.id)){g.loaderData[e.route.id]=null}});return r({},g,{matches:t,activeDeferreds:p.size>0?Object.fromEntries(p.entries()):null})}return{dataRoutes:a,query:s,queryRoute:l}}function ek(e,t,n){let o=r({},t,{statusCode:500,errors:{[t._deepestRenderedBoundaryId||e[0].id]:n}});return o}function ej(e){return e!=null&&"formData"in e}function eC(e,t,n,r,o,i,a){let s;let l;if(i!=null&&a!=="path"){s=[];for(let e of t){s.push(e);if(e.route.id===i){l=e;break}}}else{s=t;l=t[t.length-1]}let u=K(o?o:".",U(s).map(e=>e.pathnameBase),H(e.pathname,n)||e.pathname,a==="path");if(o==null){u.search=e.search;u.hash=e.hash}if((o==null||o===""||o===".")&&l&&l.route.index&&!e2(u.search)){u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"}if(r&&n!=="/"){u.pathname=u.pathname==="/"?n:q([n,u.pathname])}return g(u)}function eT(e,t,n,r){if(!r||!ej(r)){return{path:n}}if(r.formMethod&&!eQ(r.formMethod)){return{path:n,error:eH(405,{method:r.formMethod})}}let o;if(r.formData){let t=r.formMethod||"get";o={formMethod:e?t.toUpperCase():t.toLowerCase(),formAction:eV(n),formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:r.formData};if(eJ(o.formMethod)){return{path:n,submission:o}}}let i=v(n);let a=eR(r.formData);if(t&&i.search&&e2(i.search)){a.append("index","")}i.search="?"+a;return{path:g(i),submission:o}}function eE(e,t){let n=e;if(t){let r=e.findIndex(e=>e.route.id===t);if(r>=0){n=e.slice(0,r)}}return n}function e_(e,t,n,o,i,a,s,l,u,c,f,h,p){let g=p?Object.values(p)[0]:h?Object.values(h)[0]:undefined;let v=e.createURL(t.location);let m=e.createURL(i);let y=p?Object.keys(p)[0]:undefined;let w=eE(n,y);let x=w.filter((e,n)=>{if(e.route.lazy){return true}if(e.route.loader==null){return false}if(eI(t.loaderData,t.matches[n],e)||s.some(t=>t===e.route.id)){return true}let i=t.matches[n];let l=e;return eD(e,r({currentUrl:v,currentParams:i.params,nextUrl:m,nextParams:l.params},o,{actionResult:g,defaultShouldRevalidate:a||v.pathname+v.search===m.pathname+m.search||v.search!==m.search||eM(i,l)}))});let b=[];u.forEach((e,i)=>{if(!n.some(t=>t.route.id===e.routeId)){return}let s=S(c,e.path,f);if(!s){b.push({key:i,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});return}let u=e5(s,e.path);if(l.includes(i)){b.push({key:i,routeId:e.routeId,path:e.path,matches:s,match:u,controller:new AbortController});return}let h=eD(u,r({currentUrl:v,currentParams:t.matches[t.matches.length-1].params,nextUrl:m,nextParams:n[n.length-1].params},o,{actionResult:g,defaultShouldRevalidate:a}));if(h){b.push({key:i,routeId:e.routeId,path:e.path,matches:s,match:u,controller:new AbortController})}});return[x,b]}function eI(e,t,n){let r=!t||n.route.id!==t.route.id;let o=e[n.route.id]===undefined;return r||o}function eM(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function eD(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n==="boolean"){return n}}return t.defaultShouldRevalidate}async function eP(e,t,n){if(!e.lazy){return}let o=await e.lazy();if(!e.lazy){return}let i=n[e.id];u(i,"No route found in manifest");let a={};for(let e in o){let t=i[e];let n=t!==undefined&&e!=="hasErrorBoundary";c(!n,'Route "'+i.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.'));if(!n&&!w.has(e)){a[e]=o[e]}}Object.assign(i,a);Object.assign(i,r({},t(i),{lazy:undefined}))}async function eO(e,t,n,r,o,i,a,s,l,c){if(s===void 0){s=false}if(l===void 0){l=false}let f;let h;let p;let g=e=>{let r;let o=new Promise((e,t)=>r=t);p=()=>r();t.signal.addEventListener("abort",p);return Promise.race([e({request:t,params:n.params,context:c}),o])};try{let r=n.route[e];if(n.route.lazy){if(r){let e=await Promise.all([g(r),eP(n.route,i,o)]);h=e[0]}else{await eP(n.route,i,o);r=n.route[e];if(r){h=await g(r)}else if(e==="action"){let e=new URL(t.url);let r=e.pathname+e.search;throw eH(405,{method:t.method,pathname:r,routeId:n.route.id})}else{return{type:y.data,data:undefined}}}}else if(!r){let e=new URL(t.url);let n=e.pathname+e.search;throw eH(404,{pathname:n})}else{h=await g(r)}u(h!==undefined,"You defined "+(e==="action"?"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){f=y.error;h=e}finally{if(p){t.signal.removeEventListener("abort",p)}}if(eY(h)){let e=h.status;if(ed.has(e)){let o=h.headers.get("Location");u(o,"Redirects returned/thrown from loaders/actions must have a Location header");if(!ev.test(o)){o=eC(new URL(t.url),r.slice(0,r.indexOf(n)+1),a,true,o)}else if(!s){let e=new URL(t.url);let n=o.startsWith("//")?new URL(e.protocol+o):new URL(o);let r=H(n.pathname,a)!=null;if(n.origin===e.origin&&r){o=n.pathname+n.search+n.hash}}if(s){h.headers.set("Location",o);throw h}return{type:y.redirect,status:e,location:o,revalidate:h.headers.get("X-Remix-Revalidate")!==null}}if(l){throw{type:f||y.data,response:h}}let o;let i=h.headers.get("Content-Type");if(i&&/\bapplication\/json\b/.test(i)){o=await h.json()}else{o=await h.text()}if(f===y.error){return{type:f,error:new ei(e,h.statusText,o),headers:h.headers}}return{type:y.data,data:o,statusCode:h.status,headers:h.headers}}if(f===y.error){return{type:f,error:h}}if(eq(h)){var v,m;return{type:y.deferred,deferredData:h,statusCode:(v=h.init)==null?void 0:v.status,headers:((m=h.init)==null?void 0:m.headers)&&new Headers(h.init.headers)}}return{type:y.data,data:h}}function eA(e,t,n,r){let o=e.createURL(eV(t)).toString();let i={signal:n};if(r&&eJ(r.formMethod)){let{formMethod:e,formEncType:t,formData:n}=r;i.method=e.toUpperCase();i.body=t==="application/x-www-form-urlencoded"?eR(n):n}return new Request(o,i)}function eR(e){let t=new URLSearchParams;for(let[n,r]of e.entries()){t.append(n,r instanceof File?r.name:r)}return t}function eZ(e,t,n,r,o){let i={};let a=null;let s;let l=false;let c={};n.forEach((n,f)=>{let h=t[f].route.id;u(!e$(n),"Cannot handle redirect results in processLoaderData");if(eK(n)){let t=eL(e,h);let o=n.error;if(r){o=Object.values(r)[0];r=undefined}a=a||{};if(a[t.route.id]==null){a[t.route.id]=o}i[h]=undefined;if(!l){l=true;s=ea(n.error)?n.error.status:500}if(n.headers){c[h]=n.headers}}else{if(eU(n)){o.set(h,n.deferredData);i[h]=n.deferredData.data}else{i[h]=n.data}if(n.statusCode!=null&&n.statusCode!==200&&!l){s=n.statusCode}if(n.headers){c[h]=n.headers}}});if(r){a=r;i[Object.keys(r)[0]]=undefined}return{loaderData:i,errors:a,statusCode:s||200,loaderHeaders:c}}function ez(e,t,n,o,i,a,s,l){let{loaderData:c,errors:f}=eZ(t,n,o,i,l);for(let t=0;t<a.length;t++){let{key:n,match:o,controller:i}=a[t];u(s!==undefined&&s[t]!==undefined,"Did not find corresponding fetcher result");let l=s[t];if(i&&i.signal.aborted){continue}else if(eK(l)){let t=eL(e.matches,o==null?void 0:o.route.id);if(!(f&&f[t.route.id])){f=r({},f,{[t.route.id]:l.error})}e.fetchers.delete(n)}else if(e$(l)){u(false,"Unhandled fetcher revalidation redirect")}else if(eU(l)){u(false,"Unhandled fetcher deferred data")}else{let t={state:"idle",data:l.data,formMethod:undefined,formAction:undefined,formEncType:undefined,formData:undefined," _hasFetcherDoneAnything ":true};e.fetchers.set(n,t)}}return{loaderData:c,errors:f}}function eN(e,t,n,o){let i=r({},t);for(let r of n){let n=r.route.id;if(t.hasOwnProperty(n)){if(t[n]!==undefined){i[n]=t[n]}}else if(e[n]!==undefined&&r.route.loader){i[n]=e[n]}if(o&&o.hasOwnProperty(n)){break}}return i}function eL(e,t){let n=t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e];return n.reverse().find(e=>e.route.hasErrorBoundary===true)||e[0]}function eB(e){let t=e.find(e=>e.index||!e.path||e.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function eH(e,t){let{pathname:n,routeId:r,method:o,type:i}=t===void 0?{}:t;let a="Unknown Server Error";let s="Unknown @remix-run/router error";if(e===400){a="Bad Request";if(o&&n&&r){s="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request."}else if(i==="defer-action"){s="defer() is not supported in actions"}}else if(e===403){a="Forbidden";s='Route "'+r+'" does not match URL "'+n+'"'}else if(e===404){a="Not Found";s='No route matches URL "'+n+'"'}else if(e===405){a="Method Not Allowed";if(o&&n&&r){s="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request."}else if(o){s='Invalid request method "'+o.toUpperCase()+'"'}}return new ei(e||500,a,new Error(s),true)}function eF(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(e$(n)){return n}}}function eV(e){let t=typeof e==="string"?v(e):e;return g(r({},t,{hash:""}))}function eW(e,t){if(e.pathname!==t.pathname||e.search!==t.search){return false}if(e.hash===""){return t.hash!==""}else if(e.hash===t.hash){return true}else if(t.hash!==""){return true}return false}function eU(e){return e.type===y.deferred}function eK(e){return e.type===y.error}function e$(e){return(e&&e.type)===y.redirect}function eq(e){let t=e;return t&&typeof t==="object"&&typeof t.data==="object"&&typeof t.subscribe==="function"&&typeof t.cancel==="function"&&typeof t.resolveData==="function"}function eY(e){return e!=null&&typeof e.status==="number"&&typeof e.statusText==="string"&&typeof e.headers==="object"&&typeof e.body!=="undefined"}function eG(e){if(!eY(e)){return false}let t=e.status;let n=e.headers.get("Location");return t>=300&&t<=399&&n!=null}function eX(e){return e&&eY(e.response)&&(e.type===y.data||y.error)}function eQ(e){return ec.has(e.toLowerCase())}function eJ(e){return el.has(e.toLowerCase())}async function e0(e,t,n,r,o,i){for(let a=0;a<n.length;a++){let s=n[a];let l=t[a];if(!l){continue}let c=e.find(e=>e.route.id===l.route.id);let f=c!=null&&!eM(c,l)&&(i&&i[l.route.id])!==undefined;if(eU(s)&&(o||f)){let e=r[a];u(e,"Expected an AbortSignal for revalidating fetcher deferred result");await e1(s,e,o).then(e=>{if(e){n[a]=e||n[a]}})}}}async function e1(e,t,n){if(n===void 0){n=false}let r=await e.deferredData.resolveData(t);if(r){return}if(n){try{return{type:y.data,data:e.deferredData.unwrappedData}}catch(e){return{type:y.error,error:e}}}return{type:y.data,data:e.deferredData.data}}function e2(e){return new URLSearchParams(e).getAll("index").some(e=>e==="")}function e4(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],handle:n.handle}}function e5(e,t){let n=typeof t==="string"?v(t).search:t.search;if(e[e.length-1].route.index&&e2(n||"")){return e[e.length-1]}let r=U(e);return r[r.length-1]}},66111:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=a;var r=n(60357);var o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(0,o.default)(e)}e.exports=t["default"]},68052:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=r;var n=/-webkit-|-moz-|-ms-/;function r(e){return typeof e==="string"&&n.test(e)}e.exports=t["default"]},15717:function(e,t,n){"use strict";n.d(t,{Z:function(){return K}});var r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};var o=function e(e,t,n){var o;var i=r[e];if(typeof i==="string"){o=i}else if(t===1){o=i.one}else{o=i.other.replace("{{count}}",t.toString())}if(n!==null&&n!==void 0&&n.addSuffix){if(n.comparison&&n.comparison>0){return"in "+o}else{return o+" ago"}}return o};var i=o;function a(e){return function(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var n=t.width?String(t.width):e.defaultWidth;var r=e.formats[n]||e.formats[e.defaultWidth];return r}};var s={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"};var l={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"};var u={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"};var c={date:a({formats:s,defaultWidth:"full"}),time:a({formats:l,defaultWidth:"full"}),dateTime:a({formats:u,defaultWidth:"full"})};var f=c;var h={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};var p=function e(e,t,n,r){return h[e]};var g=p;function v(e){return function(t,n){var r=n!==null&&n!==void 0&&n.context?String(n.context):"standalone";var o;if(r==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth;var a=n!==null&&n!==void 0&&n.width?String(n.width):i;o=e.formattingValues[a]||e.formattingValues[i]}else{var s=e.defaultWidth;var l=n!==null&&n!==void 0&&n.width?String(n.width):e.defaultWidth;o=e.values[l]||e.values[s]}var u=e.argumentCallback?e.argumentCallback(t):t;return o[u]}};var m={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]};var y={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]};var w={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]};var x={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]};var b={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}};var S={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}};var k=function e(e,t){var n=Number(e);var r=n%100;if(r>20||r<10){switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}}return n+"th"};var j={ordinalNumber:k,era:v({values:m,defaultWidth:"wide"}),quarter:v({values:y,defaultWidth:"wide",argumentCallback:function e(e){return e-1}}),month:v({values:w,defaultWidth:"wide"}),day:v({values:x,defaultWidth:"wide"}),dayPeriod:v({values:b,defaultWidth:"wide",formattingValues:S,defaultFormattingWidth:"wide"})};var C=j;function T(e){return function(t){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var r=n.width;var o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth];var i=t.match(o);if(!i){return null}var a=i[0];var s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth];var l=Array.isArray(s)?_(s,function(e){return e.test(a)}):E(s,function(e){return e.test(a)});var u;u=e.valueCallback?e.valueCallback(l):l;u=n.valueCallback?n.valueCallback(u):u;var c=t.slice(a.length);return{value:u,rest:c}}}function E(e,t){for(var n in e){if(e.hasOwnProperty(n)&&t(e[n])){return n}}return undefined}function _(e,t){for(var n=0;n<e.length;n++){if(t(e[n])){return n}}return undefined};function I(e){return function(t){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var r=t.match(e.matchPattern);if(!r)return null;var o=r[0];var i=t.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];a=n.valueCallback?n.valueCallback(a):a;var s=t.slice(o.length);return{value:a,rest:s}}};var M=/^(\d+)(th|st|nd|rd)?/i;var D=/\d+/i;var P={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i};var O={any:[/^b/i,/^(a|c)/i]};var A={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i};var R={any:[/1/i,/2/i,/3/i,/4/i]};var Z={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i};var z={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]};var N={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i};var L={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]};var B={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i};var H={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}};var F={ordinalNumber:I({matchPattern:M,parsePattern:D,valueCallback:function e(e){return parseInt(e,10)}}),era:T({matchPatterns:P,defaultMatchWidth:"wide",parsePatterns:O,defaultParseWidth:"any"}),quarter:T({matchPatterns:A,defaultMatchWidth:"wide",parsePatterns:R,defaultParseWidth:"any",valueCallback:function e(e){return e+1}}),month:T({matchPatterns:Z,defaultMatchWidth:"wide",parsePatterns:z,defaultParseWidth:"any"}),day:T({matchPatterns:N,defaultMatchWidth:"wide",parsePatterns:L,defaultParseWidth:"any"}),dayPeriod:T({matchPatterns:B,defaultMatchWidth:"any",parsePatterns:H,defaultParseWidth:"any"})};var V=F;var W={code:"en-US",formatDistance:i,formatLong:f,formatRelative:g,localize:C,match:V,options:{weekStartsOn:0,firstWeekContainsDate:1}};var U=W;var K=U},8064:function(e,t,n){"use strict";n.d(t,{j:function(){return o}});var r={};function o(){return r}function i(e){r=e}},48187:function(e,t){"use strict";var n=function e(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}};var r=function e(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}};var o=function e(e,t){var o=e.match(/(P+)(p+)?/)||[];var i=o[1];var a=o[2];if(!a){return n(e,t)}var s;switch(i){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;case"PPPP":default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",n(i,t)).replace("{{time}}",r(a,t))};var i={p:r,P:o};t.Z=i},33989:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});function r(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));t.setUTCFullYear(e.getFullYear());return e.getTime()-t.getTime()}},7993:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(2864);var o=n(56925);var i=n(99340);var a=n(78354);function s(e){(0,a.Z)(1,arguments);var t=(0,i.Z)(e);var n=new Date(0);n.setUTCFullYear(t,0,4);n.setUTCHours(0,0,0,0);var r=(0,o.Z)(n);return r};var l=6048e5;function u(e){(0,a.Z)(1,arguments);var t=(0,r.Z)(e);var n=(0,o.Z)(t).getTime()-s(t).getTime();return Math.round(n/l)+1}},99340:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(2864);var o=n(78354);var i=n(56925);function a(e){(0,o.Z)(1,arguments);var t=(0,r.Z)(e);var n=t.getUTCFullYear();var a=new Date(0);a.setUTCFullYear(n+1,0,4);a.setUTCHours(0,0,0,0);var s=(0,i.Z)(a);var l=new Date(0);l.setUTCFullYear(n,0,4);l.setUTCHours(0,0,0,0);var u=(0,i.Z)(l);if(t.getTime()>=s.getTime()){return n+1}else if(t.getTime()>=u.getTime()){return n}else{return n-1}}},26168:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(2864);var o=n(87147);var i=n(72493);var a=n(78354);var s=n(71578);var l=n(8064);function u(e,t){var n,r,u,c,f,h,p,g;(0,a.Z)(1,arguments);var v=(0,l.j)();var m=(0,s.Z)((n=(r=(u=(c=t===null||t===void 0?void 0:t.firstWeekContainsDate)!==null&&c!==void 0?c:t===null||t===void 0?void 0:(f=t.locale)===null||f===void 0?void 0:(h=f.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&u!==void 0?u:v.firstWeekContainsDate)!==null&&r!==void 0?r:(p=v.locale)===null||p===void 0?void 0:(g=p.options)===null||g===void 0?void 0:g.firstWeekContainsDate)!==null&&n!==void 0?n:1);var y=(0,i.Z)(e,t);var w=new Date(0);w.setUTCFullYear(y,0,m);w.setUTCHours(0,0,0,0);var x=(0,o.Z)(w,t);return x};var c=6048e5;function f(e,t){(0,a.Z)(1,arguments);var n=(0,r.Z)(e);var i=(0,o.Z)(n,t).getTime()-u(n,t).getTime();return Math.round(i/c)+1}},72493:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2864);var o=n(78354);var i=n(87147);var a=n(71578);var s=n(8064);function l(e,t){var n,l,u,c,f,h,p,g;(0,o.Z)(1,arguments);var v=(0,r.Z)(e);var m=v.getUTCFullYear();var y=(0,s.j)();var w=(0,a.Z)((n=(l=(u=(c=t===null||t===void 0?void 0:t.firstWeekContainsDate)!==null&&c!==void 0?c:t===null||t===void 0?void 0:(f=t.locale)===null||f===void 0?void 0:(h=f.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&u!==void 0?u:y.firstWeekContainsDate)!==null&&l!==void 0?l:(p=y.locale)===null||p===void 0?void 0:(g=p.options)===null||g===void 0?void 0:g.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(w>=1&&w<=7)){throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively")}var x=new Date(0);x.setUTCFullYear(m+1,0,w);x.setUTCHours(0,0,0,0);var b=(0,i.Z)(x,t);var S=new Date(0);S.setUTCFullYear(m,0,w);S.setUTCHours(0,0,0,0);var k=(0,i.Z)(S,t);if(v.getTime()>=b.getTime()){return m+1}else if(v.getTime()>=k.getTime()){return m}else{return m-1}}},21161:function(e,t,n){"use strict";n.d(t,{Do:function(){return a},Iu:function(){return i},qp:function(){return s}});var r=["D","DD"];var o=["YY","YYYY"];function i(e){return r.indexOf(e)!==-1}function a(e){return o.indexOf(e)!==-1}function s(e,t,n){if(e==="YYYY"){throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}else if(e==="YY"){throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}else if(e==="D"){throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}else if(e==="DD"){throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}}},78354:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});function r(e,t){if(t.length<e){throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}}},56925:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(2864);var o=n(78354);function i(e){(0,o.Z)(1,arguments);var t=1;var n=(0,r.Z)(e);var i=n.getUTCDay();var a=(i<t?7:0)+i-t;n.setUTCDate(n.getUTCDate()-a);n.setUTCHours(0,0,0,0);return n}},87147:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(2864);var o=n(78354);var i=n(71578);var a=n(8064);function s(e,t){var n,s,l,u,c,f,h,p;(0,o.Z)(1,arguments);var g=(0,a.j)();var v=(0,i.Z)((n=(s=(l=(u=t===null||t===void 0?void 0:t.weekStartsOn)!==null&&u!==void 0?u:t===null||t===void 0?void 0:(c=t.locale)===null||c===void 0?void 0:(f=c.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&l!==void 0?l:g.weekStartsOn)!==null&&s!==void 0?s:(h=g.locale)===null||h===void 0?void 0:(p=h.options)===null||p===void 0?void 0:p.weekStartsOn)!==null&&n!==void 0?n:0);if(!(v>=0&&v<=6)){throw new RangeError("weekStartsOn must be between 0 and 6 inclusively")}var m=(0,r.Z)(e);var y=m.getUTCDay();var w=(y<v?7:0)+y-v;m.setUTCDate(m.getUTCDate()-w);m.setUTCHours(0,0,0,0);return m}},71578:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});function r(e){if(e===null||e===true||e===false){return NaN}var t=Number(e);if(isNaN(t)){return t}return t<0?Math.ceil(t):Math.floor(t)}},82862:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(71578);var o=n(2864);var i=n(78354);function a(e,t){(0,i.Z)(2,arguments);var n=(0,o.Z)(e);var a=(0,r.Z)(t);if(isNaN(a)){return new Date(NaN)}if(!a){return n}n.setDate(n.getDate()+a);return n}},69939:function(e,t,n){"use strict";n.d(t,{qk:function(){return l},vh:function(){return s},yJ:function(){return a}});var r=7;var o=365.2425;var i=Math.pow(10,8)*24*60*60*1e3;var a=6e4;var s=36e5;var l=1e3;var u=-i;var c=60;var f=3;var h=12;var p=4;var g=3600;var v=60;var m=g*24;var y=m*7;var w=m*o;var x=w/12;var b=x*3},79982:function(e,t,n){"use strict";n.d(t,{Z:function(){return A}});var r=n(25432);var o=n(94352);var i=n(2864);var a=n(78354);var s=864e5;function l(e){(0,a.Z)(1,arguments);var t=(0,i.Z)(e);var n=t.getTime();t.setUTCMonth(0,1);t.setUTCHours(0,0,0,0);var r=t.getTime();var o=n-r;return Math.floor(o/s)+1}var u=n(7993);var c=n(99340);var f=n(26168);var h=n(72493);function p(e,t){var n=e<0?"-":"";var r=Math.abs(e).toString();while(r.length<t){r="0"+r}return n+r};var g={y:function e(e,t){var n=e.getUTCFullYear();var r=n>0?n:1-n;return p(t==="yy"?r%100:r,t.length)},M:function e(e,t){var n=e.getUTCMonth();return t==="M"?String(n+1):p(n+1,2)},d:function e(e,t){return p(e.getUTCDate(),t.length)},a:function e(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function e(e,t){return p(e.getUTCHours()%12||12,t.length)},H:function e(e,t){return p(e.getUTCHours(),t.length)},m:function e(e,t){return p(e.getUTCMinutes(),t.length)},s:function e(e,t){return p(e.getUTCSeconds(),t.length)},S:function e(e,t){var n=t.length;var r=e.getUTCMilliseconds();var o=Math.floor(r*Math.pow(10,n-3));return p(o,t.length)}};var v=g;var m={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};var y={G:function e(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function e(e,t,n){if(t==="yo"){var r=e.getUTCFullYear();var o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return v.y(e,t)},Y:function e(e,t,n,r){var o=(0,h.Z)(e,r);var i=o>0?o:1-o;if(t==="YY"){var a=i%100;return p(a,2)}if(t==="Yo"){return n.ordinalNumber(i,{unit:"year"})}return p(i,t.length)},R:function e(e,t){var n=(0,c.Z)(e);return p(n,t.length)},u:function e(e,t){var n=e.getUTCFullYear();return p(n,t.length)},Q:function e(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return p(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function e(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return p(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function e(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return v.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function e(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return p(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function e(e,t,n,r){var o=(0,f.Z)(e,r);if(t==="wo"){return n.ordinalNumber(o,{unit:"week"})}return p(o,t.length)},I:function e(e,t,n){var r=(0,u.Z)(e);if(t==="Io"){return n.ordinalNumber(r,{unit:"week"})}return p(r,t.length)},d:function e(e,t,n){if(t==="do"){return n.ordinalNumber(e.getUTCDate(),{unit:"date"})}return v.d(e,t)},D:function e(e,t,n){var r=l(e);if(t==="Do"){return n.ordinalNumber(r,{unit:"dayOfYear"})}return p(r,t.length)},E:function e(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function e(e,t,n,r){var o=e.getUTCDay();var i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return p(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function e(e,t,n,r){var o=e.getUTCDay();var i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return p(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function e(e,t,n){var r=e.getUTCDay();var o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return p(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function e(e,t,n){var r=e.getUTCHours();var o=r/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function e(e,t,n){var r=e.getUTCHours();var o;if(r===12){o=m.noon}else if(r===0){o=m.midnight}else{o=r/12>=1?"pm":"am"}switch(t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function e(e,t,n){var r=e.getUTCHours();var o;if(r>=17){o=m.evening}else if(r>=12){o=m.afternoon}else if(r>=4){o=m.morning}else{o=m.night}switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function e(e,t,n){if(t==="ho"){var r=e.getUTCHours()%12;if(r===0)r=12;return n.ordinalNumber(r,{unit:"hour"})}return v.h(e,t)},H:function e(e,t,n){if(t==="Ho"){return n.ordinalNumber(e.getUTCHours(),{unit:"hour"})}return v.H(e,t)},K:function e(e,t,n){var r=e.getUTCHours()%12;if(t==="Ko"){return n.ordinalNumber(r,{unit:"hour"})}return p(r,t.length)},k:function e(e,t,n){var r=e.getUTCHours();if(r===0)r=24;if(t==="ko"){return n.ordinalNumber(r,{unit:"hour"})}return p(r,t.length)},m:function e(e,t,n){if(t==="mo"){return n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"})}return v.m(e,t)},s:function e(e,t,n){if(t==="so"){return n.ordinalNumber(e.getUTCSeconds(),{unit:"second"})}return v.s(e,t)},S:function e(e,t){return v.S(e,t)},X:function e(e,t,n,r){var o=r._originalDate||e;var i=o.getTimezoneOffset();if(i===0){return"Z"}switch(t){case"X":return x(i);case"XXXX":case"XX":return b(i);case"XXXXX":case"XXX":default:return b(i,":")}},x:function e(e,t,n,r){var o=r._originalDate||e;var i=o.getTimezoneOffset();switch(t){case"x":return x(i);case"xxxx":case"xx":return b(i);case"xxxxx":case"xxx":default:return b(i,":")}},O:function e(e,t,n,r){var o=r._originalDate||e;var i=o.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+w(i,":");case"OOOO":default:return"GMT"+b(i,":")}},z:function e(e,t,n,r){var o=r._originalDate||e;var i=o.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+w(i,":");case"zzzz":default:return"GMT"+b(i,":")}},t:function e(e,t,n,r){var o=r._originalDate||e;var i=Math.floor(o.getTime()/1e3);return p(i,t.length)},T:function e(e,t,n,r){var o=r._originalDate||e;var i=o.getTime();return p(i,t.length)}};function w(e,t){var n=e>0?"-":"+";var r=Math.abs(e);var o=Math.floor(r/60);var i=r%60;if(i===0){return n+String(o)}var a=t||"";return n+String(o)+a+p(i,2)}function x(e,t){if(e%60===0){var n=e>0?"-":"+";return n+p(Math.abs(e)/60,2)}return b(e,t)}function b(e,t){var n=t||"";var r=e>0?"-":"+";var o=Math.abs(e);var i=p(Math.floor(o/60),2);var a=p(o%60,2);return r+i+n+a}var S=y;var k=n(48187);var j=n(33989);var C=n(21161);var T=n(71578);var E=n(8064);var _=n(15717);var I=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g;var M=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;var D=/^'([^]*?)'?$/;var P=/''/g;var O=/[a-zA-Z]/;function A(e,t,n){var s,l,u,c,f,h,p,g,v,m,y,w,x,b,D,P,A,Z;(0,a.Z)(2,arguments);var z=String(t);var N=(0,E.j)();var L=(s=(l=n===null||n===void 0?void 0:n.locale)!==null&&l!==void 0?l:N.locale)!==null&&s!==void 0?s:_.Z;var B=(0,T.Z)((u=(c=(f=(h=n===null||n===void 0?void 0:n.firstWeekContainsDate)!==null&&h!==void 0?h:n===null||n===void 0?void 0:(p=n.locale)===null||p===void 0?void 0:(g=p.options)===null||g===void 0?void 0:g.firstWeekContainsDate)!==null&&f!==void 0?f:N.firstWeekContainsDate)!==null&&c!==void 0?c:(v=N.locale)===null||v===void 0?void 0:(m=v.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&u!==void 0?u:1);if(!(B>=1&&B<=7)){throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively")}var H=(0,T.Z)((y=(w=(x=(b=n===null||n===void 0?void 0:n.weekStartsOn)!==null&&b!==void 0?b:n===null||n===void 0?void 0:(D=n.locale)===null||D===void 0?void 0:(P=D.options)===null||P===void 0?void 0:P.weekStartsOn)!==null&&x!==void 0?x:N.weekStartsOn)!==null&&w!==void 0?w:(A=N.locale)===null||A===void 0?void 0:(Z=A.options)===null||Z===void 0?void 0:Z.weekStartsOn)!==null&&y!==void 0?y:0);if(!(H>=0&&H<=6)){throw new RangeError("weekStartsOn must be between 0 and 6 inclusively")}if(!L.localize){throw new RangeError("locale must contain localize property")}if(!L.formatLong){throw new RangeError("locale must contain formatLong property")}var F=(0,i.Z)(e);if(!(0,r.Z)(F)){throw new RangeError("Invalid time value")}var V=(0,j.Z)(F);var W=(0,o.Z)(F,V);var U={firstWeekContainsDate:B,weekStartsOn:H,locale:L,_originalDate:F};var K=z.match(M).map(function(e){var t=e[0];if(t==="p"||t==="P"){var n=k.Z[t];return n(e,L.formatLong)}return e}).join("").match(I).map(function(r){if(r==="''"){return"'"}var o=r[0];if(o==="'"){return R(r)}var i=S[o];if(i){if(!(n!==null&&n!==void 0&&n.useAdditionalWeekYearTokens)&&(0,C.Do)(r)){(0,C.qp)(r,t,String(e))}if(!(n!==null&&n!==void 0&&n.useAdditionalDayOfYearTokens)&&(0,C.Iu)(r)){(0,C.qp)(r,t,String(e))}return i(W,r,L.localize,U)}if(o.match(O)){throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`")}return r}).join("");return K}function R(e){var t=e.match(D);if(!t){return e}return t[1].replace(P,"'")}},25432:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(86522);var o=n(78354);function i(e){(0,o.Z)(1,arguments);return e instanceof Date||(0,r.Z)(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}var a=n(2864);function s(e){(0,o.Z)(1,arguments);if(!i(e)&&typeof e!=="number"){return false}var t=(0,a.Z)(e);return!isNaN(Number(t))}},8780:function(e,t,n){"use strict";n.d(t,{Z:function(){return eF}});var r=n(86522);function o(e,t){if(t==null||t>e.length)t=e.length;for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r};function i(e,t){if(!e)return;if(typeof e==="string")return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor)n=e.constructor.name;if(n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)};function a(e,t){var n=typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=i(e))||t&&e&&typeof e.length==="number"){if(n)e=n;var r=0;var o=function e(){};return{s:o,n:function t(){if(r>=e.length)return{done:true};return{done:false,value:e[r++]}},e:function e(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a=true,s=false,l;return{s:function t(){n=n.call(e)},n:function e(){var e=n.next();a=e.done;return e},e:function e(e){s=true;l=e},f:function e(){try{if(!a&&n["return"]!=null)n["return"]()}finally{if(s)throw l}}}}var s=n(15717);var l=n(94352);var u=n(2864);function c(e,t){if(e==null){throw new TypeError("assign requires that input parameter not be null or undefined")}for(var n in t){if(Object.prototype.hasOwnProperty.call(t,n)){;e[n]=t[n]}}return e}var f=n(48187);var h=n(33989);var p=n(21161);var g=n(71578);var v=n(78354);var m=n(80753);var y=n(88960);function w(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});Object.defineProperty(e,"prototype",{writable:false});if(t)(0,y.Z)(e,t)};function x(e){x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function e(e){return e.__proto__||Object.getPrototypeOf(e)};return x(e)};function b(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(e){return false}};function S(e,t){if(t&&((0,r.Z)(t)==="object"||typeof t==="function")){return t}else if(t!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return(0,m.Z)(e)};function k(e){var t=b();return function n(){var n=x(e),r;if(t){var o=x(this).constructor;r=Reflect.construct(n,arguments,o)}else{r=n.apply(this,arguments)}return S(this,r)}};function j(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var C=n(45850);function T(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(e,(0,C.Z)(r.key),r)}}function E(e,t,n){if(t)T(e.prototype,t);if(n)T(e,n);Object.defineProperty(e,"prototype",{writable:false});return e}var _=n(56666);var I=10;var M=function(){function e(){j(this,e);(0,_.Z)(this,"priority",void 0);(0,_.Z)(this,"subPriority",0)}E(e,[{key:"validate",value:function e(e,t){return true}}]);return e}();var D=function(e){w(n,e);var t=k(n);function n(e,r,o,i,a){var s;j(this,n);s=t.call(this);s.value=e;s.validateValue=r;s.setValue=o;s.priority=i;if(a){s.subPriority=a}return s}E(n,[{key:"validate",value:function e(e,t){return this.validateValue(e,this.value,t)}},{key:"set",value:function e(e,t,n){return this.setValue(e,t,this.value,n)}}]);return n}(M);var P=function(e){w(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,_.Z)((0,m.Z)(e),"priority",I);(0,_.Z)((0,m.Z)(e),"subPriority",-1);return e}E(n,[{key:"set",value:function e(e,t){if(t.timestampIsSet){return e}var n=new Date(0);n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate());n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds());return n}}]);return n}(M);var O=function(){function e(){j(this,e);(0,_.Z)(this,"incompatibleTokens",void 0);(0,_.Z)(this,"priority",void 0);(0,_.Z)(this,"subPriority",void 0)}E(e,[{key:"run",value:function e(e,t,n,r){var o=this.parse(e,t,n,r);if(!o){return null}return{setter:new D(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}}},{key:"validate",value:function e(e,t,n){return true}}]);return e}();var A=function(e){w(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,_.Z)((0,m.Z)(e),"priority",140);(0,_.Z)((0,m.Z)(e),"incompatibleTokens",["R","u","t","T"]);return e}E(n,[{key:"parse",value:function e(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});case"GGGG":default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}},{key:"set",value:function e(e,t,n){t.era=n;e.setUTCFullYear(n,0,1);e.setUTCHours(0,0,0,0);return e}}]);return n}(O);var R=n(69939);var Z={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/};var z={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function N(e,t){if(!e){return e}return{value:t(e.value),rest:e.rest}}function L(e,t){var n=t.match(e);if(!n){return null}return{value:parseInt(n[0],10),rest:t.slice(n[0].length)}}function B(e,t){var n=t.match(e);if(!n){return null}if(n[0]==="Z"){return{value:0,rest:t.slice(1)}}var r=n[1]==="+"?1:-1;var o=n[2]?parseInt(n[2],10):0;var i=n[3]?parseInt(n[3],10):0;var a=n[5]?parseInt(n[5],10):0;return{value:r*(o*R.vh+i*R.yJ+a*R.qk),rest:t.slice(n[0].length)}}function H(e){return L(Z.anyDigitsSigned,e)}function F(e,t){switch(e){case 1:return L(Z.singleDigit,t);case 2:return L(Z.twoDigits,t);case 3:return L(Z.threeDigits,t);case 4:return L(Z.fourDigits,t);default:return L(new RegExp("^\\d{1,"+e+"}"),t)}}function V(e,t){switch(e){case 1:return L(Z.singleDigitSigned,t);case 2:return L(Z.twoDigitsSigned,t);case 3:return L(Z.threeDigitsSigned,t);case 4:return L(Z.fourDigitsSigned,t);default:return L(new RegExp("^-?\\d{1,"+e+"}"),t)}}function W(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function U(e,t){var n=t>0;var r=n?t:1-t;var o;if(r<=50){o=e||100}else{var i=r+50;var a=Math.floor(i/100)*100;var s=e>=i%100;o=e+a-(s?100:0)}return n?o:1-o}function K(e){return e%400===0||e%4===0&&e%100!==0};var $=function(e){w(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,_.Z)((0,m.Z)(e),"priority",130);(0,_.Z)((0,m.Z)(e),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]);return e}E(n,[{key:"parse",value:function e(e,t,n){var r=function e(e){return{year:e,isTwoDigitYear:t==="yy"}};switch(t){case"y":return N(F(4,e),r);case"yo":return N(n.ordinalNumber(e,{unit:"year"}),r);default:return N(F(t.length,e),r)}}},{key:"validate",value:function e(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function e(e,t,n){var r=e.getUTCFullYear();if(n.isTwoDigitYear){var o=U(n.year,r);e.setUTCFullYear(o,0,1);e.setUTCHours(0,0,0,0);return e}var i=!("era"in t)||t.era===1?n.year:1-n.year;e.setUTCFullYear(i,0,1);e.setUTCHours(0,0,0,0);return e}}]);return n}(O);var q=n(72493);var Y=n(87147);var G=function(e){w(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,_.Z)((0,m.Z)(e),"priority",130);(0,_.Z)((0,m.Z)(e),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]);return e}E(n,[{key:"parse",value:function e(e,t,n){var r=function e(e){return{year:e,isTwoDigitYear:t==="YY"}};switch(t){case"Y":return N(F(4,e),r);case"Yo":return N(n.ordinalNumber(e,{unit:"year"}),r);default:return N(F(t.length,e),r)}}},{key:"validate",value:function e(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function e(e,t,n,r){var o=(0,q.Z)(e,r);if(n.isTwoDigitYear){var i=U(n.year,o);e.setUTCFullYear(i,0,r.firstWeekContainsDate);e.setUTCHours(0,0,0,0);return(0,Y.Z)(e,r)}var a=!("era"in t)||t.era===1?n.year:1-n.year;e.setUTCFullYear(a,0,r.firstWeekContainsDate);e.setUTCHours(0,0,0,0);return(0,Y.Z)(e,r)}}]);return n}(O);var X=n(56925);var Q=function(e){w(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,_.Z)((0,m.Z)(e),"priority",130);(0,_.Z)((0,m.Z)(e),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]);return e}E(n,[{key:"parse",value:function e(e,t){if(t==="R"){return V(4,e)}return V(t.length,e)}},{key:"set",value:function e(e,t,n){var r=new Date(0);r.setUTCFullYear(n,0,4);r.setUTCHours(0,0,0,0);return(0,X.Z)(r)}}]);return n}(O);var J=function(e){w(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,_.Z)((0,m.Z)(e),"priority",130);(0,_.Z)((0,m.Z)(e),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]);return e}E(n,[{key:"parse",value:function e(e,t){if(t==="u"){return V(4,e)}return V(t.length,e)}},{key:"set",value:function e(e,t,n){e.setUTCFullYear(n,0,1);e.setUTCHours(0,0,0,0);return e}}]);return n}(O);var ee=function(e){w(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,_.Z)((0,m.Z)(e),"priority",120);(0,_.Z)((0,m.Z)(e),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]);return e}E(n,[{key:"parse",value:function e(e,t,n){switch(t){case"Q":case"QQ":return F(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function e(e,t){return t>=1&&t<=4}},{key:"set",value:function e(e,t,n){e.setUTCMonth((n-1)*3,1);e.setUTCHours(0,0,0,0);return e}}]);return n}(O);var et=function(e){w(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,_.Z)((0,m.Z)(e),"priority",120);(0,_.Z)((0,m.Z)(e),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]);return e}E(n,[{key:"parse",value:function e(e,t,n){switch(t){case"q":case"qq":return F(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function e(e,t){return t>=1&&t<=4}},{key:"set",value:function e(e,t,n){e.setUTCMonth((n-1)*3,1);e.setUTCHours(0,0,0,0);return e}}]);return n}(O);var en=function(e){w(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,_.Z)((0,m.Z)(e),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);(0,_.Z)((0,m.Z)(e),"priority",110);return e}E(n,[{key:"parse",value:function e(e,t,n){var r=function e(e){return e-1};switch(t){case"M":return N(L(Z.month,e),r);case"MM":return N(F(2,e),r);case"Mo":return N(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function e(e,t){return t>=0&&t<=11}},{key:"set",value:function e(e,t,n){e.setUTCMonth(n,1);e.setUTCHours(0,0,0,0);return e}}]);return n}(O);var er=function(e){w(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,_.Z)((0,m.Z)(e),"priority",110);(0,_.Z)((0,m.Z)(e),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]);return e}E(n,[{key:"parse",value:function e(e,t,n){var r=function e(e){return e-1};switch(t){case"L":return N(L(Z.month,e),r);case"LL":return N(F(2,e),r);case"Lo":return N(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function e(e,t){return t>=0&&t<=11}},{key:"set",value:function e(e,t,n){e.setUTCMonth(n,1);e.setUTCHours(0,0,0,0);return e}}]);return n}(O);var eo=n(26168);function ei(e,t,n){(0,v.Z)(2,arguments);var r=(0,u.Z)(e);var o=(0,g.Z)(t);var i=(0,eo.Z)(r,n)-o;r.setUTCDate(r.getUTCDate()-i*7);return r};var ea=function(e){w(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,_.Z)((0,m.Z)(e),"priority",100);(0,_.Z)((0,m.Z)(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]);return e}E(n,[{key:"parse",value:function e(e,t,n){switch(t){case"w":return L(Z.week,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return F(t.length,e)}}},{key:"validate",value:function e(e,t){return t>=1&&t<=53}},{key:"set",value:function e(e,t,n,r){return(0,Y.Z)(ei(e,n,r),r)}}]);return n}(O);var es=n(7993);function el(e,t){(0,v.Z)(2,arguments);var n=(0,u.Z)(e);var r=(0,g.Z)(t);var o=(0,es.Z)(n)-r;n.setUTCDate(n.getUTCDate()-o*7);return n};var eu=function(e){w(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,_.Z)((0,m.Z)(e),"priority",100);(0,_.Z)((0,m.Z)(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]);return e}E(n,[{key:"parse",value:function e(e,t,n){switch(t){case"I":return L(Z.week,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return F(t.length,e)}}},{key:"validate",value:function e(e,t){return t>=1&&t<=53}},{key:"set",value:function e(e,t,n){return(0,X.Z)(el(e,n))}}]);return n}(O);var ec=[31,28,31,30,31,30,31,31,30,31,30,31];var ed=[31,29,31,30,31,30,31,31,30,31,30,31];var ef=function(e){w(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,_.Z)((0,m.Z)(e),"priority",90);(0,_.Z)((0,m.Z)(e),"subPriority",1);(0,_.Z)((0,m.Z)(e),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]);return e}E(n,[{key:"parse",value:function e(e,t,n){switch(t){case"d":return L(Z.date,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return F(t.length,e)}}},{key:"validate",value:function e(e,t){var n=e.getUTCFullYear();var r=K(n);var o=e.getUTCMonth();if(r){return t>=1&&t<=ed[o]}else{return t>=1&&t<=ec[o]}}},{key:"set",value:function e(e,t,n){e.setUTCDate(n);e.setUTCHours(0,0,0,0);return e}}]);return n}(O);var eh=function(e){w(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,_.Z)((0,m.Z)(e),"priority",90);(0,_.Z)((0,m.Z)(e),"subpriority",1);(0,_.Z)((0,m.Z)(e),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]);return e}E(n,[{key:"parse",value:function e(e,t,n){switch(t){case"D":case"DD":return L(Z.dayOfYear,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return F(t.length,e)}}},{key:"validate",value:function e(e,t){var n=e.getUTCFullYear();var r=K(n);if(r){return t>=1&&t<=366}else{return t>=1&&t<=365}}},{key:"set",value:function e(e,t,n){e.setUTCMonth(0,n);e.setUTCHours(0,0,0,0);return e}}]);return n}(O);var ep=n(8064);function eg(e,t,n){var r,o,i,a,s,l,c,f;(0,v.Z)(2,arguments);var h=(0,ep.j)();var p=(0,g.Z)((r=(o=(i=(a=n===null||n===void 0?void 0:n.weekStartsOn)!==null&&a!==void 0?a:n===null||n===void 0?void 0:(s=n.locale)===null||s===void 0?void 0:(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&i!==void 0?i:h.weekStartsOn)!==null&&o!==void 0?o:(c=h.locale)===null||c===void 0?void 0:(f=c.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&r!==void 0?r:0);if(!(p>=0&&p<=6)){throw new RangeError("weekStartsOn must be between 0 and 6 inclusively")}var m=(0,u.Z)(e);var y=(0,g.Z)(t);var w=m.getUTCDay();var x=y%7;var b=(x+7)%7;var S=(b<p?7:0)+y-w;m.setUTCDate(m.getUTCDate()+S);return m};var ev=function(e){w(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,_.Z)((0,m.Z)(e),"priority",90);(0,_.Z)((0,m.Z)(e),"incompatibleTokens",["D","i","e","c","t","T"]);return e}E(n,[{key:"parse",value:function e(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function e(e,t){return t>=0&&t<=6}},{key:"set",value:function e(e,t,n,r){e=eg(e,n,r);e.setUTCHours(0,0,0,0);return e}}]);return n}(O);var em=function(e){w(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,_.Z)((0,m.Z)(e),"priority",90);(0,_.Z)((0,m.Z)(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]);return e}E(n,[{key:"parse",value:function e(e,t,n,r){var o=function e(e){var t=Math.floor((e-1)/7)*7;return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return N(F(t.length,e),o);case"eo":return N(n.ordinalNumber(e,{unit:"day"}),o);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function e(e,t){return t>=0&&t<=6}},{key:"set",value:function e(e,t,n,r){e=eg(e,n,r);e.setUTCHours(0,0,0,0);return e}}]);return n}(O);var ey=function(e){w(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,_.Z)((0,m.Z)(e),"priority",90);(0,_.Z)((0,m.Z)(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]);return e}E(n,[{key:"parse",value:function e(e,t,n,r){var o=function e(e){var t=Math.floor((e-1)/7)*7;return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return N(F(t.length,e),o);case"co":return N(n.ordinalNumber(e,{unit:"day"}),o);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function e(e,t){return t>=0&&t<=6}},{key:"set",value:function e(e,t,n,r){e=eg(e,n,r);e.setUTCHours(0,0,0,0);return e}}]);return n}(O);function ew(e,t){(0,v.Z)(2,arguments);var n=(0,g.Z)(t);if(n%7===0){n=n-7}var r=1;var o=(0,u.Z)(e);var i=o.getUTCDay();var a=n%7;var s=(a+7)%7;var l=(s<r?7:0)+n-i;o.setUTCDate(o.getUTCDate()+l);return o};var ex=function(e){w(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,_.Z)((0,m.Z)(e),"priority",90);(0,_.Z)((0,m.Z)(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]);return e}E(n,[{key:"parse",value:function e(e,t,n){var r=function e(e){if(e===0){return 7}return e};switch(t){case"i":case"ii":return F(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return N(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return N(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return N(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiii":default:return N(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}},{key:"validate",value:function e(e,t){return t>=1&&t<=7}},{key:"set",value:function e(e,t,n){e=ew(e,n);e.setUTCHours(0,0,0,0);return e}}]);return n}(O);var eb=function(e){w(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,_.Z)((0,m.Z)(e),"priority",80);(0,_.Z)((0,m.Z)(e),"incompatibleTokens",["b","B","H","k","t","T"]);return e}E(n,[{key:"parse",value:function e(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function e(e,t,n){e.setUTCHours(W(n),0,0,0);return e}}]);return n}(O);var eS=function(e){w(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,_.Z)((0,m.Z)(e),"priority",80);(0,_.Z)((0,m.Z)(e),"incompatibleTokens",["a","B","H","k","t","T"]);return e}E(n,[{key:"parse",value:function e(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function e(e,t,n){e.setUTCHours(W(n),0,0,0);return e}}]);return n}(O);var ek=function(e){w(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,_.Z)((0,m.Z)(e),"priority",80);(0,_.Z)((0,m.Z)(e),"incompatibleTokens",["a","b","t","T"]);return e}E(n,[{key:"parse",value:function e(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function e(e,t,n){e.setUTCHours(W(n),0,0,0);return e}}]);return n}(O);var ej=function(e){w(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,_.Z)((0,m.Z)(e),"priority",70);(0,_.Z)((0,m.Z)(e),"incompatibleTokens",["H","K","k","t","T"]);return e}E(n,[{key:"parse",value:function e(e,t,n){switch(t){case"h":return L(Z.hour12h,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return F(t.length,e)}}},{key:"validate",value:function e(e,t){return t>=1&&t<=12}},{key:"set",value:function e(e,t,n){var r=e.getUTCHours()>=12;if(r&&n<12){e.setUTCHours(n+12,0,0,0)}else if(!r&&n===12){e.setUTCHours(0,0,0,0)}else{e.setUTCHours(n,0,0,0)}return e}}]);return n}(O);var eC=function(e){w(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,_.Z)((0,m.Z)(e),"priority",70);(0,_.Z)((0,m.Z)(e),"incompatibleTokens",["a","b","h","K","k","t","T"]);return e}E(n,[{key:"parse",value:function e(e,t,n){switch(t){case"H":return L(Z.hour23h,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return F(t.length,e)}}},{key:"validate",value:function e(e,t){return t>=0&&t<=23}},{key:"set",value:function e(e,t,n){e.setUTCHours(n,0,0,0);return e}}]);return n}(O);var eT=function(e){w(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,_.Z)((0,m.Z)(e),"priority",70);(0,_.Z)((0,m.Z)(e),"incompatibleTokens",["h","H","k","t","T"]);return e}E(n,[{key:"parse",value:function e(e,t,n){switch(t){case"K":return L(Z.hour11h,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return F(t.length,e)}}},{key:"validate",value:function e(e,t){return t>=0&&t<=11}},{key:"set",value:function e(e,t,n){var r=e.getUTCHours()>=12;if(r&&n<12){e.setUTCHours(n+12,0,0,0)}else{e.setUTCHours(n,0,0,0)}return e}}]);return n}(O);var eE=function(e){w(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,_.Z)((0,m.Z)(e),"priority",70);(0,_.Z)((0,m.Z)(e),"incompatibleTokens",["a","b","h","H","K","t","T"]);return e}E(n,[{key:"parse",value:function e(e,t,n){switch(t){case"k":return L(Z.hour24h,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return F(t.length,e)}}},{key:"validate",value:function e(e,t){return t>=1&&t<=24}},{key:"set",value:function e(e,t,n){var r=n<=24?n%24:n;e.setUTCHours(r,0,0,0);return e}}]);return n}(O);var e_=function(e){w(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,_.Z)((0,m.Z)(e),"priority",60);(0,_.Z)((0,m.Z)(e),"incompatibleTokens",["t","T"]);return e}E(n,[{key:"parse",value:function e(e,t,n){switch(t){case"m":return L(Z.minute,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return F(t.length,e)}}},{key:"validate",value:function e(e,t){return t>=0&&t<=59}},{key:"set",value:function e(e,t,n){e.setUTCMinutes(n,0,0);return e}}]);return n}(O);var eI=function(e){w(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,_.Z)((0,m.Z)(e),"priority",50);(0,_.Z)((0,m.Z)(e),"incompatibleTokens",["t","T"]);return e}E(n,[{key:"parse",value:function e(e,t,n){switch(t){case"s":return L(Z.second,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return F(t.length,e)}}},{key:"validate",value:function e(e,t){return t>=0&&t<=59}},{key:"set",value:function e(e,t,n){e.setUTCSeconds(n,0);return e}}]);return n}(O);var eM=function(e){w(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,_.Z)((0,m.Z)(e),"priority",30);(0,_.Z)((0,m.Z)(e),"incompatibleTokens",["t","T"]);return e}E(n,[{key:"parse",value:function e(e,t){var n=function e(e){return Math.floor(e*Math.pow(10,-t.length+3))};return N(F(t.length,e),n)}},{key:"set",value:function e(e,t,n){e.setUTCMilliseconds(n);return e}}]);return n}(O);var eD=function(e){w(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,_.Z)((0,m.Z)(e),"priority",10);(0,_.Z)((0,m.Z)(e),"incompatibleTokens",["t","T","x"]);return e}E(n,[{key:"parse",value:function e(e,t){switch(t){case"X":return B(z.basicOptionalMinutes,e);case"XX":return B(z.basic,e);case"XXXX":return B(z.basicOptionalSeconds,e);case"XXXXX":return B(z.extendedOptionalSeconds,e);case"XXX":default:return B(z.extended,e)}}},{key:"set",value:function e(e,t,n){if(t.timestampIsSet){return e}return new Date(e.getTime()-n)}}]);return n}(O);var eP=function(e){w(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,_.Z)((0,m.Z)(e),"priority",10);(0,_.Z)((0,m.Z)(e),"incompatibleTokens",["t","T","X"]);return e}E(n,[{key:"parse",value:function e(e,t){switch(t){case"x":return B(z.basicOptionalMinutes,e);case"xx":return B(z.basic,e);case"xxxx":return B(z.basicOptionalSeconds,e);case"xxxxx":return B(z.extendedOptionalSeconds,e);case"xxx":default:return B(z.extended,e)}}},{key:"set",value:function e(e,t,n){if(t.timestampIsSet){return e}return new Date(e.getTime()-n)}}]);return n}(O);var eO=function(e){w(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,_.Z)((0,m.Z)(e),"priority",40);(0,_.Z)((0,m.Z)(e),"incompatibleTokens","*");return e}E(n,[{key:"parse",value:function e(e){return H(e)}},{key:"set",value:function e(e,t,n){return[new Date(n*1e3),{timestampIsSet:true}]}}]);return n}(O);var eA=function(e){w(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,_.Z)((0,m.Z)(e),"priority",20);(0,_.Z)((0,m.Z)(e),"incompatibleTokens","*");return e}E(n,[{key:"parse",value:function e(e){return H(e)}},{key:"set",value:function e(e,t,n){return[new Date(n),{timestampIsSet:true}]}}]);return n}(O);var eR={G:new A,y:new $,Y:new G,R:new Q,u:new J,Q:new ee,q:new et,M:new en,L:new er,w:new ea,I:new eu,d:new ef,D:new eh,E:new ev,e:new em,c:new ey,i:new ex,a:new eb,b:new eS,B:new ek,h:new ej,H:new eC,K:new eT,k:new eE,m:new e_,s:new eI,S:new eM,X:new eD,x:new eP,t:new eO,T:new eA};var eZ=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g;var ez=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;var eN=/^'([^]*?)'?$/;var eL=/''/g;var eB=/\S/;var eH=/[a-zA-Z]/;function eF(e,t,n,o){var i,m,y,w,x,b,S,k,j,C,T,E,_,I,M,D,O,A;(0,v.Z)(3,arguments);var R=String(e);var Z=String(t);var z=(0,ep.j)();var N=(i=(m=o===null||o===void 0?void 0:o.locale)!==null&&m!==void 0?m:z.locale)!==null&&i!==void 0?i:s.Z;if(!N.match){throw new RangeError("locale must contain match property")}var L=(0,g.Z)((y=(w=(x=(b=o===null||o===void 0?void 0:o.firstWeekContainsDate)!==null&&b!==void 0?b:o===null||o===void 0?void 0:(S=o.locale)===null||S===void 0?void 0:(k=S.options)===null||k===void 0?void 0:k.firstWeekContainsDate)!==null&&x!==void 0?x:z.firstWeekContainsDate)!==null&&w!==void 0?w:(j=z.locale)===null||j===void 0?void 0:(C=j.options)===null||C===void 0?void 0:C.firstWeekContainsDate)!==null&&y!==void 0?y:1);if(!(L>=1&&L<=7)){throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively")}var B=(0,g.Z)((T=(E=(_=(I=o===null||o===void 0?void 0:o.weekStartsOn)!==null&&I!==void 0?I:o===null||o===void 0?void 0:(M=o.locale)===null||M===void 0?void 0:(D=M.options)===null||D===void 0?void 0:D.weekStartsOn)!==null&&_!==void 0?_:z.weekStartsOn)!==null&&E!==void 0?E:(O=z.locale)===null||O===void 0?void 0:(A=O.options)===null||A===void 0?void 0:A.weekStartsOn)!==null&&T!==void 0?T:0);if(!(B>=0&&B<=6)){throw new RangeError("weekStartsOn must be between 0 and 6 inclusively")}if(Z===""){if(R===""){return(0,u.Z)(n)}else{return new Date(NaN)}}var H={firstWeekContainsDate:L,weekStartsOn:B,locale:N};var F=[new P];var V=Z.match(ez).map(function(e){var t=e[0];if(t in f.Z){var n=f.Z[t];return n(e,N.formatLong)}return e}).join("").match(eZ);var W=[];var U=a(V),K;try{var $=function t(){var t=K.value;if(!(o!==null&&o!==void 0&&o.useAdditionalWeekYearTokens)&&(0,p.Do)(t)){(0,p.qp)(t,Z,e)}if(!(o!==null&&o!==void 0&&o.useAdditionalDayOfYearTokens)&&(0,p.Iu)(t)){(0,p.qp)(t,Z,e)}var n=t[0];var r=eR[n];if(r){var i=r.incompatibleTokens;if(Array.isArray(i)){var a=W.find(function(e){return i.includes(e.token)||e.token===n});if(a){throw new RangeError("The format string mustn't contain `".concat(a.fullToken,"` and `").concat(t,"` at the same time"))}}else if(r.incompatibleTokens==="*"&&W.length>0){throw new RangeError("The format string mustn't contain `".concat(t,"` and any other token at the same time"))}W.push({token:n,fullToken:t});var s=r.run(R,t,N.match,H);if(!s){return{v:new Date(NaN)}}F.push(s.setter);R=s.rest}else{if(n.match(eH)){throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`")}if(t==="''"){t="'"}else if(n==="'"){t=eV(t)}if(R.indexOf(t)===0){R=R.slice(t.length)}else{return{v:new Date(NaN)}}}};for(U.s();!(K=U.n()).done;){var q=$();if((0,r.Z)(q)==="object")return q.v}}catch(e){U.e(e)}finally{U.f()}if(R.length>0&&eB.test(R)){return new Date(NaN)}var Y=F.map(function(e){return e.priority}).sort(function(e,t){return t-e}).filter(function(e,t,n){return n.indexOf(e)===t}).map(function(e){return F.filter(function(t){return t.priority===e}).sort(function(e,t){return t.subPriority-e.subPriority})}).map(function(e){return e[0]});var G=(0,u.Z)(n);if(isNaN(G.getTime())){return new Date(NaN)}var X=(0,l.Z)(G,(0,h.Z)(G));var Q={};var J=a(Y),ee;try{for(J.s();!(ee=J.n()).done;){var et=ee.value;if(!et.validate(X,H)){return new Date(NaN)}var en=et.set(X,Q,H);if(Array.isArray(en)){X=en[0];c(Q,en[1])}else{X=en}}}catch(e){J.e(e)}finally{J.f()}return X}function eV(e){return e.match(eN)[1].replace(eL,"'")}},41071:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(69939);var o=n(78354);var i=n(71578);function a(e,t){var n;(0,o.Z)(1,arguments);var r=(0,i.Z)((n=t===null||t===void 0?void 0:t.additionalDigits)!==null&&n!==void 0?n:2);if(r!==2&&r!==1&&r!==0){throw new RangeError("additionalDigits must be 0, 1 or 2")}if(!(typeof e==="string"||Object.prototype.toString.call(e)==="[object String]")){return new Date(NaN)}var a=f(e);var s;if(a.date){var l=h(a.date,r);s=p(l.restDateString,l.year)}if(!s||isNaN(s.getTime())){return new Date(NaN)}var u=s.getTime();var c=0;var g;if(a.time){c=v(a.time);if(isNaN(c)){return new Date(NaN)}}if(a.timezone){g=y(a.timezone);if(isNaN(g)){return new Date(NaN)}}else{var m=new Date(u+c);var w=new Date(0);w.setFullYear(m.getUTCFullYear(),m.getUTCMonth(),m.getUTCDate());w.setHours(m.getUTCHours(),m.getUTCMinutes(),m.getUTCSeconds(),m.getUTCMilliseconds());return w}return new Date(u+c+g)}var s={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/};var l=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/;var u=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/;var c=/^([+-])(\d{2})(?::?(\d{2}))?$/;function f(e){var t={};var n=e.split(s.dateTimeDelimiter);var r;if(n.length>2){return t}if(/:/.test(n[0])){r=n[0]}else{t.date=n[0];r=n[1];if(s.timeZoneDelimiter.test(t.date)){t.date=e.split(s.timeZoneDelimiter)[0];r=e.substr(t.date.length,e.length)}}if(r){var o=s.timezone.exec(r);if(o){t.time=r.replace(o[1],"");t.timezone=o[1]}else{t.time=r}}return t}function h(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)");var r=e.match(n);if(!r)return{year:NaN,restDateString:""};var o=r[1]?parseInt(r[1]):null;var i=r[2]?parseInt(r[2]):null;return{year:i===null?o:i*100,restDateString:e.slice((r[1]||r[2]).length)}}function p(e,t){if(t===null)return new Date(NaN);var n=e.match(l);if(!n)return new Date(NaN);var r=!!n[4];var o=g(n[1]);var i=g(n[2])-1;var a=g(n[3]);var s=g(n[4]);var u=g(n[5])-1;if(r){if(!j(t,s,u)){return new Date(NaN)}return w(t,s,u)}else{var c=new Date(0);if(!S(t,i,a)||!k(t,o)){return new Date(NaN)}c.setUTCFullYear(t,i,Math.max(o,a));return c}}function g(e){return e?parseInt(e):1}function v(e){var t=e.match(u);if(!t)return NaN;var n=m(t[1]);var o=m(t[2]);var i=m(t[3]);if(!C(n,o,i)){return NaN}return n*r.vh+o*r.yJ+i*1e3}function m(e){return e&&parseFloat(e.replace(",","."))||0}function y(e){if(e==="Z")return 0;var t=e.match(c);if(!t)return 0;var n=t[1]==="+"?-1:1;var o=parseInt(t[2]);var i=t[3]&&parseInt(t[3])||0;if(!T(o,i)){return NaN}return n*(o*r.vh+i*r.yJ)}function w(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7;var i=(t-1)*7+n+1-o;r.setUTCDate(r.getUTCDate()+i);return r}var x=[31,null,31,30,31,30,31,31,30,31,30,31];function b(e){return e%400===0||e%4===0&&e%100!==0}function S(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(x[t]||(b(e)?29:28))}function k(e,t){return t>=1&&t<=(b(e)?366:365)}function j(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function C(e,t,n){if(e===24){return t===0&&n===0}return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function T(e,t){return t>=0&&t<=59}},28548:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(82862);var o=n(78354);var i=n(71578);function a(e,t){(0,o.Z)(2,arguments);var n=(0,i.Z)(t);return(0,r.Z)(e,-n)}},94352:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(71578);var o=n(2864);var i=n(78354);function a(e,t){(0,i.Z)(2,arguments);var n=(0,o.Z)(e).getTime();var a=(0,r.Z)(t);return new Date(n+a)};function s(e,t){(0,i.Z)(2,arguments);var n=(0,r.Z)(t);return a(e,-n)}},2864:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(86522);var o=n(78354);function i(e){(0,o.Z)(1,arguments);var t=Object.prototype.toString.call(e);if(e instanceof Date||(0,r.Z)(e)==="object"&&t==="[object Date]"){return new Date(e.getTime())}else if(typeof e==="number"||t==="[object Number]"){return new Date(e)}else{if((typeof e==="string"||t==="[object String]")&&typeof console!=="undefined"){console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments");console.warn(new Error().stack)}return new Date(NaN)}}},82478:function(e){function t(e,t,n){var r,o,i,a,s;if(null==t)t=100;function l(){var u=Date.now()-a;if(u<t&&u>=0){r=setTimeout(l,t-u)}else{r=null;if(!n){s=e.apply(i,o);i=o=null}}};var u=function(){i=this;o=arguments;a=Date.now();var u=n&&!r;if(!r)r=setTimeout(l,t);if(u){s=e.apply(i,o);i=o=null}return s};u.clear=function(){if(r){clearTimeout(r);r=null}};u.flush=function(){if(r){s=e.apply(i,o);i=o=null;clearTimeout(r);r=null}};return u};t.debounce=t;e.exports=t},44510:function(e,t){"use strict";var n;/** @license React v17.0.2
11
- * react-is.production.min.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var r=60103,o=60106,i=60107,a=60108,s=60114,l=60109,u=60110,c=60112,f=60113,h=60120,p=60115,g=60116,v=60121,m=60122,y=60117,w=60129,x=60131;if("function"===typeof Symbol&&Symbol.for){var b=Symbol.for;r=b("react.element");o=b("react.portal");i=b("react.fragment");a=b("react.strict_mode");s=b("react.profiler");l=b("react.provider");u=b("react.context");c=b("react.forward_ref");f=b("react.suspense");h=b("react.suspense_list");p=b("react.memo");g=b("react.lazy");v=b("react.block");m=b("react.server.block");y=b("react.fundamental");w=b("react.debug_trace_mode");x=b("react.legacy_hidden")}function S(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type,e){case i:case s:case a:case f:case h:return e;default:switch(e=e&&e.$$typeof,e){case u:case c:case g:case p:case l:return e;default:return t}}case o:return t}}}var k=l,j=r,C=c,T=i,E=g,_=p,I=o,M=s,D=a,P=f;n=u;n=k;n=j;n=C;n=T;n=E;n=_;n=I;n=M;n=D;n=P;n=function(){return!1};n=function(){return!1};n=function(e){return S(e)===u};n=function(e){return S(e)===l};n=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r};n=function(e){return S(e)===c};n=function(e){return S(e)===i};n=function(e){return S(e)===g};n=function(e){return S(e)===p};n=function(e){return S(e)===o};n=function(e){return S(e)===s};n=function(e){return S(e)===a};n=function(e){return S(e)===f};n=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===s||e===w||e===a||e===f||e===h||e===x||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===p||e.$$typeof===l||e.$$typeof===u||e.$$typeof===c||e.$$typeof===y||e.$$typeof===v||e[0]===m)?!0:!1};n=S},55815:function(e,t,n){"use strict";if(true){n(44510)}else{}},53797:function(e,t,n){var r;/*!
18
- Copyright (c) 2015 Jed Watson.
19
- Based on code that is Copyright 2013-2015, Facebook, Inc.
20
- All rights reserved.
21
- */(function(){"use strict";var o=!!(typeof window!=="undefined"&&window.document&&window.document.createElement);var i={canUseDOM:o,canUseWorkers:typeof Worker!=="undefined",canUseEventListeners:o&&!!(window.addEventListener||window.attachEvent),canUseViewport:o&&!!window.screen};if(true){!(r=(function(){return i}).call(t,n,t,e),r!==undefined&&(e.exports=r))}else{}})()},28926:function(e){"use strict";e.exports=function e(t,n){if(t===n)return true;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return false;var r,o,i;if(Array.isArray(t)){r=t.length;if(r!=n.length)return false;for(o=r;o--!==0;)if(!e(t[o],n[o]))return false;return true}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();i=Object.keys(t);r=i.length;if(r!==Object.keys(n).length)return false;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return false;for(o=r;o--!==0;){var a=i[o];if(!e(t[a],n[a]))return false}return true}return t!==t&&n!==n}},98765:function(e){"use strict";var t=/-(.)/g;function n(e){return e.replace(t,function(e,t){return t.toUpperCase()})}e.exports=n},29024:function(e,t,n){"use strict";var r=n(98765);var o=/^-ms-/;function i(e){return r(e.replace(o,"ms-"))}e.exports=i},57285:function(e){"use strict";function t(e){return function(){return e}}var n=function e(){};n.thatReturns=t;n.thatReturnsFalse=t(false);n.thatReturnsTrue=t(true);n.thatReturnsNull=t(null);n.thatReturnsThis=function(){return this};n.thatReturnsArgument=function(e){return e};e.exports=n},49879:function(e){"use strict";var t=/([A-Z])/g;function n(e){return e.replace(t,"-$1").toLowerCase()}e.exports=n},76278:function(e,t,n){"use strict";var r=n(49879);var o=/^ms-/;function i(e){return r(e).replace(o,"-ms-")}e.exports=i},62246:function(e){"use strict";function t(e){var t={};return function(n){if(!t.hasOwnProperty(n)){t[n]=e.call(this,n)}return t[n]}}e.exports=t},17679:function(e,t,n){"use strict";var r=n(57285);var o=r;if(false){var i}e.exports=o},17401:function(){(function(e,t){true?t():0})(this,function(){"use strict";function e(){var e=true;var t=false;var n=null;var r={text:true,search:true,url:true,tel:true,email:true,password:true,number:true,date:true,month:true,week:true,time:true,datetime:true,"datetime-local":true};function o(e){if(e&&e!==document&&e.nodeName!=="HTML"&&e.nodeName!=="BODY"&&"classList"in e&&"contains"in e.classList){return true}return false}function i(e){var t=e.type;var n=e.tagName;if(n=="INPUT"&&r[t]&&!e.readOnly){return true}if(n=="TEXTAREA"&&!e.readOnly){return true}if(e.isContentEditable){return true}return false}function a(e){if(e.classList.contains("focus-visible")){return}e.classList.add("focus-visible");e.setAttribute("data-focus-visible-added","")}function s(e){if(!e.hasAttribute("data-focus-visible-added")){return}e.classList.remove("focus-visible");e.removeAttribute("data-focus-visible-added")}function l(t){if(o(document.activeElement)){a(document.activeElement)}e=true}function u(t){e=false}function c(t){if(!o(t.target)){return}if(e||i(t.target)){a(t.target)}}function f(e){if(!o(e.target)){return}if(e.target.classList.contains("focus-visible")||e.target.hasAttribute("data-focus-visible-added")){t=true;window.clearTimeout(n);n=window.setTimeout(function(){t=false;window.clearTimeout(n)},100);s(e.target)}}function h(n){if(document.visibilityState=="hidden"){if(t){e=true}p()}}function p(){document.addEventListener("mousemove",v);document.addEventListener("mousedown",v);document.addEventListener("mouseup",v);document.addEventListener("pointermove",v);document.addEventListener("pointerdown",v);document.addEventListener("pointerup",v);document.addEventListener("touchmove",v);document.addEventListener("touchstart",v);document.addEventListener("touchend",v)}function g(){document.removeEventListener("mousemove",v);document.removeEventListener("mousedown",v);document.removeEventListener("mouseup",v);document.removeEventListener("pointermove",v);document.removeEventListener("pointerdown",v);document.removeEventListener("pointerup",v);document.removeEventListener("touchmove",v);document.removeEventListener("touchstart",v);document.removeEventListener("touchend",v)}function v(t){if(t.target.nodeName.toLowerCase()==="html"){return}e=false;g()}document.addEventListener("keydown",l,true);document.addEventListener("mousedown",u,true);document.addEventListener("pointerdown",u,true);document.addEventListener("touchstart",u,true);document.addEventListener("focus",c,true);document.addEventListener("blur",f,true);document.addEventListener("visibilitychange",h,true);p();document.body.classList.add("js-focus-visible")}function t(e){var t;function n(){if(!t){t=true;e()}}if(["interactive","complete"].indexOf(document.readyState)>=0){e()}else{t=false;document.addEventListener("DOMContentLoaded",n,false);window.addEventListener("load",n,false)}}if(typeof document!=="undefined"){t(e)}})},45260:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n={animationIterationCount:true,borderImageOutset:true,borderImageSlice:true,borderImageWidth:true,boxFlex:true,boxFlexGroup:true,boxOrdinalGroup:true,columnCount:true,flex:true,flexGrow:true,flexPositive:true,flexShrink:true,flexNegative:true,flexOrder:true,gridRow:true,gridRowStart:true,gridRowEnd:true,gridColumn:true,gridColumnStart:true,gridColumnEnd:true,fontWeight:true,lineClamp:true,lineHeight:true,opacity:true,order:true,orphans:true,tabSize:true,widows:true,zIndex:true,zoom:true,fillOpacity:true,floodOpacity:true,stopOpacity:true,strokeDasharray:true,strokeDashoffset:true,strokeMiterlimit:true,strokeOpacity:true,strokeWidth:true};function r(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var o=["Webkit","ms","Moz","O"];Object.keys(n).forEach(function(e){o.forEach(function(t){n[r(t,e)]=n[e]})});var i={background:{backgroundAttachment:true,backgroundColor:true,backgroundImage:true,backgroundPositionX:true,backgroundPositionY:true,backgroundRepeat:true},backgroundPosition:{backgroundPositionX:true,backgroundPositionY:true},border:{borderWidth:true,borderStyle:true,borderColor:true},borderBottom:{borderBottomWidth:true,borderBottomStyle:true,borderBottomColor:true},borderLeft:{borderLeftWidth:true,borderLeftStyle:true,borderLeftColor:true},borderRight:{borderRightWidth:true,borderRightStyle:true,borderRightColor:true},borderTop:{borderTopWidth:true,borderTopStyle:true,borderTopColor:true},font:{fontStyle:true,fontVariant:true,fontWeight:true,fontSize:true,lineHeight:true,fontFamily:true},outline:{outlineWidth:true,outlineStyle:true,outlineColor:true}};var a={isUnitlessNumber:n,shorthandPropertyExpansions:i};t["default"]=a},13349:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=n(45260);var o=s(r);var i=n(17679);var a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var l=o.default.isUnitlessNumber;var u={};function c(e,t,n){var r=t==null||typeof t==="boolean"||t==="";if(r){return""}var o=isNaN(t);if(o||t===0||l.hasOwnProperty(e)&&l[e]){return""+t}if(typeof t==="string"){if(false){var i,a,s,u}t=t.trim()}return t+"px"}t["default"]=c},88565:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.processStyleName=undefined;t.createMarkupForStyles=E;var r=n(29024);var o=p(r);var i=n(13349);var a=p(i);var s=n(76278);var l=p(s);var u=n(62246);var c=p(u);var f=n(17679);var h=p(f);function p(e){return e&&e.__esModule?e:{default:e}}var g=t.processStyleName=(0,c.default)(l.default);if(false){var v,m,y,w,x,b,S,k,j,C,T}function E(e,t){var n="";for(var r in e){var o=r.indexOf("--")===0;if(!e.hasOwnProperty(r)){continue}if(r==="label"){continue}var i=e[r];if(false){}if(i!=null){if(o){n+=r+":"+i+";"}else{n+=g(r)+":";n+=(0,a.default)(r,i,t)+";"}}}return n||null}},57141:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t["default"]=a;function r(e){return e===null||e===undefined||e===false||(typeof e==="undefined"?"undefined":n(e))==="object"&&Object.keys(e).length===0}function o(e){if(r(e))return null;if((typeof e==="undefined"?"undefined":n(e))!=="object")return e;var t={},o=Object.keys(e),i=false;for(var s=0;s<o.length;s++){var l=e[o[s]];var u=a(l);if(u===null||u!==l){i=true}if(u!==null){t[o[s]]=u}}return Object.keys(t).length===0?null:i?t:e}function i(e){var t=false;var n=[];e.forEach(function(e){var r=a(e);if(r===null||r!==e){t=true}if(r!==null){n.push(r)}});return n.length==0?null:t?n:e}function a(e){return Array.isArray(e)?i(e):o(e)}},96881:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=n;function n(e,t){var n=1540483477;var a=24;var s=t^e.length;var l=e.length;var u=0;while(l>=4){var c=r(e,u);c=i(c,n);c^=c>>>a;c=i(c,n);s=i(s,n);s^=c;u+=4;l-=4}switch(l){case 3:s^=o(e,u);s^=e.charCodeAt(u+2)<<16;s=i(s,n);break;case 2:s^=o(e,u);s=i(s,n);break;case 1:s^=e.charCodeAt(u);s=i(s,n);break}s^=s>>>13;s=i(s,n);s^=s>>>15;return s>>>0}function r(e,t){return e.charCodeAt(t++)+(e.charCodeAt(t++)<<8)+(e.charCodeAt(t++)<<16)+(e.charCodeAt(t)<<24)}function o(e,t){return e.charCodeAt(t++)+(e.charCodeAt(t++)<<8)}function i(e,t){e=e|0;t=t|0;var n=e&65535;var r=e>>>16;var o=n*t+((r*t&65535)<<16)|0;return o}},99818:function(e,t,n){"use strict";var r;r={value:true};r=r=r=r=r=t.F4=r=r=r=r=r=undefined;r=y;r=T;r=E;r=I;r=P;r=O;t.iv=eu;r=ev;r=em;r=ex;r=eS;t.BC=eC;r=eT;r=eE;r=e_;r=eI;r=eM;r=eD;r=eP;r=eO;r=eA;r=eR;r=eZ;r=ez;r=eN;r=eL;r=eB;r=eH;r=eF;r=eV;r=eW;r=eU;r=eK;r=e$;r=eq;r=eY;r=eG;r=eX;r=eQ;r=eJ;r=e0;r=e1;r=e2;r=e4;r=e5;r=e3;r=e8;r=e6;r=e7;r=e9;r=te;r=tt;r=tn;r=tr;t.bb=to;r=ti;r=ta;r=ts;r=tl;r=tu;r=tc;r=td;var o=n(4439);var i=p(o);var a=n(6278);var s=n(88565);var l=n(57141);var u=p(l);var c=n(20713);var f=n(96881);var h=p(f);function p(e){return e&&e.__esModule?e:{default:e}}function g(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++){n[t]=e[t]}return n}else{return Array.from(e)}}function v(e,t,n){if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}var m=r=new a.StyleSheet;m.inject();function y(e){return m.speedy(e)}var w=r=m.plugins=new c.PluginSet([c.prefixes,c.contentWrap,c.fallbacks]);w.media=new c.PluginSet;w.fontFace=new c.PluginSet;w.keyframes=new c.PluginSet([c.prefixes,c.fallbacks]);var x=false||!"production";var b="production"==="test";var S=typeof window!=="undefined";var k=x;var j=false,C=false;function T(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:true;k=!!e}function E(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++){t[n]=arguments[n]}t=(0,u.default)(t);if(!t)return{};if(!k){if(!j){console.warn("can't simulate without once calling simulations(true)");j=true}if(!x&&!b&&!C){console.warn("don't use simulation outside dev");C=true}return{}}return t.reduce(function(e,t){return e["data-simulate-"+M(t)]="",e},{})}var _=x;function I(e){_=!!e}function M(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"";return e.toLowerCase().replace(/[^a-z0-9]/g,t)}function D(e){var t=JSON.stringify(e);var n=(0,h.default)(t).toString(36);if(e.label&&e.label.length>0&&x){return M(e.label.join("."),"-")+"-"+n}return n}function P(e){var t=Object.keys(e).filter(function(e){return e!=="toString"});if(t.length!==1){return false}return!!/data\-css\-([a-zA-Z0-9\-_]+)/.exec(t[0])}function O(e){var t=Object.keys(e).filter(function(e){return e!=="toString"});if(t.length!==1)throw new Error("not a rule");var n=/data\-css\-([a-zA-Z0-9\-_]+)/;var r=n.exec(t[0]);if(!r)throw new Error("not a rule");return r[1]}var A=/[(),]|"(?:\\.|[^"\n])*"|'(?:\\.|[^'\n])*'|\/\*[\s\S]*?\*\//g;function R(e){if(e.indexOf(",")===-1){return[e]}var t=[],n=[],r=0,o;while(o=A.exec(e)){switch(o[0]){case"(":r++;break;case")":r--;break;case",":if(r)break;t.push(o.index)}}for(o=t.length;o--;){n.unshift(e.slice(t[o]+1));e=e.slice(0,t[o])}n.unshift(e);return n}function Z(e,t){if(!e){return t.replace(/\&/g,"")}if(!t)return".css-"+e+",[data-css-"+e+"]";var n=R(t).map(function(t){return t.indexOf("&")>=0?[t.replace(/\&/mg,".css-"+e),t.replace(/\&/mg,"[data-css-"+e+"]")].join(","):".css-"+e+t+",[data-css-"+e+"]"+t}).join(",");if(k&&/^\&\:/.exec(t)&&!/\s/.exec(t)){n+=",.css-"+e+"[data-simulate-"+M(t)+"],[data-css-"+e+"][data-simulate-"+M(t)+"]"}return n}function z(e){var t=e.selector,n=e.style;var r=w.transform({selector:t,style:n});return r.selector+"{"+(0,s.createMarkupForStyles)(r.style)+"}"}function N(e){var t=void 0,n=void 0,r=void 0,o=void 0;Object.keys(e).forEach(function(i){if(i.indexOf("&")>=0){n=n||{};n[i]=e[i]}else if(i.indexOf("@media")===0){r=r||{};r[i]=N(e[i])}else if(i.indexOf("@supports")===0){o=o||{};o[i]=N(e[i])}else if(i==="label"){if(e.label.length>0){t=t||{};t.label=_?e.label.join("."):""}}else{t=t||{};t[i]=e[i]}});return{plain:t,selects:n,medias:r,supports:o}}function L(e,t){var n=[];var r=t.plain,o=t.selects,i=t.medias,a=t.supports;if(r){n.push(z({style:r,selector:Z(e)}))}if(o){Object.keys(o).forEach(function(t){return n.push(z({style:o[t],selector:Z(e,t)}))})}if(i){Object.keys(i).forEach(function(t){return n.push(t+"{"+L(e,i[t]).join("")+"}")})}if(a){Object.keys(a).forEach(function(t){return n.push(t+"{"+L(e,a[t]).join("")+"}")})}return n}var B=m.inserted={};function H(e){if(!B[e.id]){B[e.id]=true;var t=N(e.style);var n=L(e.id,t);B[e.id]=S?true:n;n.forEach(function(e){return m.insert(e)})}}var F=m.registered={};function V(e){if(!F[e.id]){F[e.id]=e}}function W(e){if(P(e)){var t=F[O(e)];if(t==null){throw new Error("[glamor] an unexpected rule cache miss occurred. This is probably a sign of multiple glamor instances in your app. See https://github.com/threepointone/glamor/issues/79")}return t}return e}var U={};function K(e){V(e);H(e);if(U[e.id]){return U[e.id]}var t=v({},"data-css-"+e.id,_?e.label||"":"");Object.defineProperty(t,"toString",{enumerable:false,value:function t(){return"css-"+e.id}});U[e.id]=t;return t}function $(){console.log(this);return this}function q(e){var t=[":",".","[",">"," "],n=false,r=e.charAt(0);for(var o=0;o<t.length;o++){if(r===t[o]){n=true;break}}return n||e.indexOf("&")>=0}function Y(e,t){var n=R(e).map(function(e){return!(e.indexOf("&")>=0)?"&"+e:e});var r=R(t).map(function(e){return!(e.indexOf("&")>=0)?"&"+e:e});return r.reduce(function(e,t){return e.concat(n.map(function(e){return t.replace(/\&/g,e)}))},[]).join(",")}function G(e,t){return e?"@media "+e.substring(6)+" and "+t.substring(6):t}function X(e){return e.indexOf("@media")===0}function Q(e){return e.indexOf("@supports")===0}function J(e,t){return e?"@supports "+e.substring(9)+" and "+t.substring(9):t}function ee(e){var t=[];for(var n=0;n<e.length;n++){if(Array.isArray(e[n]))t=t.concat(ee(e[n]));else t=t.concat(e[n])}return t}var et={"::placeholder":["::-webkit-input-placeholder","::-moz-placeholder","::-ms-input-placeholder"],":fullscreen":[":-webkit-full-screen",":-moz-full-screen",":-ms-fullscreen"]};function en(e,t){var n=t.selector,r=n===undefined?"":n,o=t.mq,i=o===undefined?"":o,a=t.supp,s=a===undefined?"":a,l=t.src,c=l===undefined?{}:l;if(!Array.isArray(c)){c=[c]}c=ee(c);c.forEach(function(t){if(P(t)){var n=W(t);if(n.type!=="css"){throw new Error("cannot merge this rule")}t=n.style}t=(0,u.default)(t);if(t&&t.composes){en(e,{selector:r,mq:i,supp:s,src:t.composes})}Object.keys(t||{}).forEach(function(n){if(q(n)){if(et[n]){et[n].forEach(function(o){return en(e,{selector:Y(r,o),mq:i,supp:s,src:t[n]})})}en(e,{selector:Y(r,n),mq:i,supp:s,src:t[n]})}else if(X(n)){en(e,{selector:r,mq:G(i,n),supp:s,src:t[n]})}else if(Q(n)){en(e,{selector:r,mq:i,supp:J(s,n),src:t[n]})}else if(n==="composes"){}else{var o=e;if(s){o[s]=o[s]||{};o=o[s]}if(i){o[i]=o[i]||{};o=o[i]}if(r){o[r]=o[r]||{};o=o[r]}if(n==="label"){if(_){e.label=e.label.concat(t.label)}}else{o[n]=t[n]}}})})}function er(e){var t={label:[]};en(t,{src:e});var n={id:D(t),style:t,label:_?t.label.join("."):"",type:"css"};return K(n)}var eo={};Object.defineProperty(eo,"toString",{enumerable:false,value:function e(){return"css-nil"}});var ei=typeof WeakMap!=="undefined"?[eo,new WeakMap,new WeakMap,new WeakMap]:[eo];var ea=false;function es(e){return function(t){if(ei[t.length]){var n=ei[t.length];var r=0;while(r<t.length-1){if(!n.has(t[r])){n.set(t[r],new WeakMap)}n=n.get(t[r]);r++}if(n.has(t[t.length-1])){var o=n.get(t[r]);if(F[o.toString().substring(4)]){return o}}}var i=e(t);if(ei[t.length]){var a=0,s=ei[t.length];while(a<t.length-1){s=s.get(t[a]);a++}try{s.set(t[a],i)}catch(e){if(x&&!ea){var l;ea=true;(l=console).warn.apply(l,["failed setting the WeakMap cache for args:"].concat(g(t)));console.warn("this should NOT happen, please file a bug on the github repo.")}}}return i}}var el=typeof WeakMap!=="undefined"?es(er):er;function eu(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++){t[n]=arguments[n]}if(t[0]&&t[0].length&&t[0].raw){throw new Error("you forgot to include glamor/babel in your babel plugins.")}t=(0,u.default)(t);if(!t){return eo}return el(t)}eu.insert=function(e){var t={id:D(e),css:e,type:"raw"};V(t);if(!B[t.id]){m.insert(t.css);B[t.id]=S?true:[t.css]}};var ec=r=eu.insert;eu.global=function(e,t){t=(0,u.default)(t);if(t){return eu.insert(z({selector:e,style:t}))}};var ed=r=eu.global;function ef(e){if(!B[e.id]){var t=Object.keys(e.keyframes).map(function(t){var n=w.keyframes.transform({id:e.id,name:t,style:e.keyframes[t]});return n.name+"{"+(0,s.createMarkupForStyles)(n.style)+"}"}).join("");var n=["-webkit-","-moz-","-o-",""].map(function(n){return"@"+n+"keyframes "+(e.name+"_"+e.id)+"{"+t+"}"});n.forEach(function(e){return m.insert(e)});B[e.id]=S?true:n}}eu.keyframes=function(e,t){if(!t){t=e,e="animation"}t=(0,u.default)(t)||{};var n={id:D({name:e,kfs:t}),type:"keyframes",name:e,keyframes:t};V(n);ef(n);return e+"_"+n.id};eu.fontFace=function(e){e=(0,u.default)(e);var t={id:D(e),type:"font-face",font:e};V(t);eg(t);return e.fontFamily};var eh=r=eu.fontFace;var ep=t.F4=eu.keyframes;function eg(e){if(!B[e.id]){var t="@font-face{"+(0,s.createMarkupForStyles)(e.font)+"}";m.insert(t);B[e.id]=S?true:[t]}}function ev(e){(0,i.default)(B,e.reduce(function(e,t){return e[t]=true,e},{}))}function em(){B=m.inserted={};F=m.registered={};U={};m.flush();m.inject()}var ey=r={mobile:"(min-width: 400px)",Mobile:"@media (min-width: 400px)",phablet:"(min-width: 550px)",Phablet:"@media (min-width: 550px)",tablet:"(min-width: 750px)",Tablet:"@media (min-width: 750px)",desktop:"(min-width: 1000px)",Desktop:"@media (min-width: 1000px)",hd:"(min-width: 1200px)",Hd:"@media (min-width: 1200px)"};var ew=r=eu;function ex(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++){n[r-1]=arguments[r]}if(!e){return ew(n)}return eu(v({},e,n))}var eb=r=ex;function eS(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++){n[r-1]=arguments[r]}return eu(v({},e+" &",n))}var ek=r=eu;var ej=r=eu;function eC(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++){n[r-1]=arguments[r]}return eu(v({},"@media "+e,n))}function eT(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++){n[r-1]=arguments[r]}return eu(v({},e,n))}function eE(e){return eT(":active",e)}function e_(e){return eT(":any",e)}function eI(e){return eT(":checked",e)}function eM(e){return eT(":disabled",e)}function eD(e){return eT(":empty",e)}function eP(e){return eT(":enabled",e)}function eO(e){return eT(":default",e)}function eA(e){return eT(":first",e)}function eR(e){return eT(":first-child",e)}function eZ(e){return eT(":first-of-type",e)}function ez(e){return eT(":fullscreen",e)}function eN(e){return eT(":focus",e)}function eL(e){return eT(":hover",e)}function eB(e){return eT(":indeterminate",e)}function eH(e){return eT(":in-range",e)}function eF(e){return eT(":invalid",e)}function eV(e){return eT(":last-child",e)}function eW(e){return eT(":last-of-type",e)}function eU(e){return eT(":left",e)}function eK(e){return eT(":link",e)}function e$(e){return eT(":only-child",e)}function eq(e){return eT(":only-of-type",e)}function eY(e){return eT(":optional",e)}function eG(e){return eT(":out-of-range",e)}function eX(e){return eT(":read-only",e)}function eQ(e){return eT(":read-write",e)}function eJ(e){return eT(":required",e)}function e0(e){return eT(":right",e)}function e1(e){return eT(":root",e)}function e2(e){return eT(":scope",e)}function e4(e){return eT(":target",e)}function e5(e){return eT(":valid",e)}function e3(e){return eT(":visited",e)}function e8(e,t){return eT(":dir("+e+")",t)}function e6(e,t){return eT(":lang("+e+")",t)}function e7(e,t){var n=e.split(",").map(function(e){return e.trim()}).map(function(e){return":not("+e+")"});if(n.length===1){return eT(":not("+e+")",t)}return ex(n.join(""),t)}function e9(e,t){return eT(":nth-child("+e+")",t)}function te(e,t){return eT(":nth-last-child("+e+")",t)}function tt(e,t){return eT(":nth-last-of-type("+e+")",t)}function tn(e,t){return eT(":nth-of-type("+e+")",t)}function tr(e){return eT("::after",e)}function to(e){return eT("::before",e)}function ti(e){return eT("::first-letter",e)}function ta(e){return eT("::first-line",e)}function ts(e){return eT("::selection",e)}function tl(e){return eT("::backdrop",e)}function tu(e){return eu({"::placeholder":e})}function tc(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++){t[n]=arguments[n]}t=(0,u.default)(t);return t?t.map(function(e){var t={label:[]};en(t,{src:e});return L(D(t),N(t)).join("")}).join(""):""}function td(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++){t[n]=arguments[n]}t=(0,u.default)(t);var r=t?t.map(function(e){O(e);var t=Object.keys(e)[0],n=e[t];return t+'="'+(n||"")+'"'}).join(" "):"";return r}},20713:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n){if(Object.prototype.hasOwnProperty.call(n,r)){e[r]=n[r]}}}return e};t.PluginSet=f;t.fallbacks=h;t.contentWrap=g;t.prefixes=v;var o=n(4439);var i=u(o);var a=n(88565);var s=n(25355);var l=u(s);function u(e){return e&&e.__esModule?e:{default:e}}var c=function(e){return e==="development"||!e}("production");function f(e){this.fns=e||[]}(0,i.default)(f.prototype,{add:function e(){var e=this;for(var t=arguments.length,n=Array(t),r=0;r<t;r++){n[r]=arguments[r]}n.forEach(function(t){if(e.fns.indexOf(t)>=0){if(c){console.warn("adding the same plugin again, ignoring")}}else{e.fns=[t].concat(e.fns)}})},remove:function e(e){this.fns=this.fns.filter(function(t){return t!==e})},clear:function e(){this.fns=[]},transform:function e(e){return this.fns.reduce(function(e,t){return t(e)},e)}});function h(e){var t=Object.keys(e.style).map(function(t){return Array.isArray(e.style[t])}).indexOf(true)>=0;if(t){var n=e.style;var r=Object.keys(n).reduce(function(e,t){e[t]=Array.isArray(n[t])?n[t].join("; "+(0,a.processStyleName)(t)+": "):n[t];return e},{});return(0,i.default)({},e,{style:r})}return e}var p=["normal","none","counter","open-quote","close-quote","no-open-quote","no-close-quote","initial","inherit"];function g(e){if(e.style.content){var t=e.style.content;if(p.indexOf(t)>=0){return e}if(/^(attr|calc|counters?|url)\(/.test(t)){return e}if(t.charAt(0)===t.charAt(t.length-1)&&(t.charAt(0)==='"'||t.charAt(0)==="'")){return e}return r({},e,{style:r({},e.style,{content:'"'+t+'"'})})}return e}function v(e){return(0,i.default)({},e,{style:(0,l.default)(r({},e.style))})}},25355:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=O;var r=n(19572);var o=M(r);var i=n(20740);var a=M(i);var s=n(64641);var l=M(s);var u=n(26054);var c=M(u);var f=n(13534);var h=M(f);var p=n(24382);var g=M(p);var v=n(58055);var m=M(v);var y=n(58617);var w=M(y);var x=n(63574);var b=M(x);var S=n(91247);var k=M(S);var j=n(34867);var C=M(j);var T=n(98904);var E=M(T);var _=n(29604);var I=M(_);function M(e){return e&&e.__esModule?e:{default:e}}var D=[h.default,c.default,g.default,w.default,b.default,k.default,C.default,E.default,I.default,m.default];var P=o.default.prefixMap;function O(e){for(var t in e){var n=e[t];var r=(0,l.default)(D,t,n,e,P);if(r){e[t]=r}(0,a.default)(P,t,e)}return e}},6278:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StyleSheet=g;var r=n(4439);var o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++){n[t]=e[t]}return n}else{return Array.from(e)}}function s(e){return e[e.length-1]}function l(e){if(e.sheet){return e.sheet}for(var t=0;t<document.styleSheets.length;t++){if(document.styleSheets[t].ownerNode===e){return document.styleSheets[t]}}}var u=typeof window!=="undefined";var c=false||!"production";var f="production"==="test";var h=function(){if(u){var e=document.createElement("div");e.innerHTML="<!--[if lt IE 10]><i></i><![endif]-->";return e.getElementsByTagName("i").length===1}}();function p(){var e=document.createElement("style");e.type="text/css";e.setAttribute("data-glamor","");e.appendChild(document.createTextNode(""));(document.head||document.getElementsByTagName("head")[0]).appendChild(e);return e}function g(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},t=e.speedy,n=t===undefined?!c&&!f:t,r=e.maxLength,o=r===undefined?u&&h?4e3:65e3:r;this.isSpeedy=n;this.sheet=undefined;this.tags=[];this.maxLength=o;this.ctr=0}(0,o.default)(g.prototype,{getSheet:function e(){return l(s(this.tags))},inject:function e(){var e=this;if(this.injected){throw new Error("already injected stylesheet!")}if(u){this.tags[0]=p()}else{this.sheet={cssRules:[],insertRule:function t(t){e.sheet.cssRules.push({cssText:t})}}}this.injected=true},speedy:function e(e){if(this.ctr!==0){throw new Error("cannot change speedy mode after inserting any rule to sheet. Either call speedy("+e+") earlier in your app, or call flush() before speedy("+e+")")}this.isSpeedy=!!e},_insert:function e(e){try{var t=this.getSheet();t.insertRule(e,e.indexOf("@import")!==-1?0:t.cssRules.length)}catch(t){if(c){console.warn("whoops, illegal rule inserted",e)}}},insert:function e(e){if(u){if(this.isSpeedy&&this.getSheet().insertRule){this._insert(e)}else{if(e.indexOf("@import")!==-1){var t=s(this.tags);t.insertBefore(document.createTextNode(e),t.firstChild)}else{s(this.tags).appendChild(document.createTextNode(e))}}}else{this.sheet.insertRule(e,e.indexOf("@import")!==-1?0:this.sheet.cssRules.length)}this.ctr++;if(u&&this.ctr%this.maxLength===0){this.tags.push(p())}return this.ctr-1},delete:function e(e){return this.replace(e,"")},flush:function e(){if(u){this.tags.forEach(function(e){return e.parentNode.removeChild(e)});this.tags=[];this.sheet=null;this.ctr=0}else{this.sheet.cssRules=[]}this.injected=false},rules:function e(){if(!u){return this.sheet.cssRules}var e=[];this.tags.forEach(function(t){return e.splice.apply(e,[e.length,0].concat(a(Array.from(l(t).cssRules))))});return e}})},69060:function(e,t,n){"use strict";var r=n(5356);var o={childContextTypes:true,contextType:true,contextTypes:true,defaultProps:true,displayName:true,getDefaultProps:true,getDerivedStateFromError:true,getDerivedStateFromProps:true,mixins:true,propTypes:true,type:true};var i={name:true,length:true,prototype:true,caller:true,callee:true,arguments:true,arity:true};var a={"$$typeof":true,render:true,defaultProps:true,displayName:true,propTypes:true};var s={"$$typeof":true,compare:true,defaultProps:true,displayName:true,propTypes:true,type:true};var l={};l[r.ForwardRef]=a;l[r.Memo]=s;function u(e){if(r.isMemo(e)){return s}return l[e["$$typeof"]]||o}var c=Object.defineProperty;var f=Object.getOwnPropertyNames;var h=Object.getOwnPropertySymbols;var p=Object.getOwnPropertyDescriptor;var g=Object.getPrototypeOf;var v=Object.prototype;function m(e,t,n){if(typeof t!=="string"){if(v){var r=g(t);if(r&&r!==v){m(e,r,n)}}var o=f(t);if(h){o=o.concat(h(t))}var a=u(e);var s=u(t);for(var l=0;l<o.length;++l){var y=o[l];if(!i[y]&&!(n&&n[y])&&!(s&&s[y])&&!(a&&a[y])){var w=p(t,y);try{c(e,y,w)}catch(e){}}}}return e}e.exports=m},81113:function(e,t,n){"use strict";n.d(t,{Z:function(){return R}});var r=typeof navigator!=="undefined"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:false;function o(e,t,n,r){if(e.addEventListener){e.addEventListener(t,n,r)}else if(e.attachEvent){e.attachEvent("on".concat(t),function(){n(window.event)})}}function i(e,t){var n=t.slice(0,t.length-1);for(var r=0;r<n.length;r++){n[r]=e[n[r].toLowerCase()]}return n}function a(e){if(typeof e!=="string")e="";e=e.replace(/\s/g,"");var t=e.split(",");var n=t.lastIndexOf("");for(;n>=0;){t[n-1]+=",";t.splice(n,1);n=t.lastIndexOf("")}return t}function s(e,t){var n=e.length>=t.length?e:t;var r=e.length>=t.length?t:e;var o=true;for(var i=0;i<n.length;i++){if(r.indexOf(n[i])===-1)o=false}return o}var l={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":r?173:189,"=":r?61:187,";":r?59:186,"'":222,"[":219,"]":221,"\\":220};var u={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91};var c={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91};var f={16:false,18:false,17:false,91:false};var h={};for(var p=1;p<20;p++){l["f".concat(p)]=111+p}var g=[];var v=false;var m="all";var y=[];var w=function e(e){return l[e.toLowerCase()]||u[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};var x=function e(e){return Object.keys(l).find(function(t){return l[t]===e})};var b=function e(e){return Object.keys(u).find(function(t){return u[t]===e})};function S(e){m=e||"all"}function k(){return m||"all"}function j(){return g.slice(0)}function C(){return g.map(function(e){return x(e)||b(e)||String.fromCharCode(e)})}function T(e){var t=e.target||e.srcElement;var n=t.tagName;var r=true;if(t.isContentEditable||(n==="INPUT"||n==="TEXTAREA"||n==="SELECT")&&!t.readOnly){r=false}return r}function E(e){if(typeof e==="string"){e=w(e)}return g.indexOf(e)!==-1}function _(e,t){var n;var r;if(!e)e=k();for(var o in h){if(Object.prototype.hasOwnProperty.call(h,o)){n=h[o];for(r=0;r<n.length;){if(n[r].scope===e)n.splice(r,1);else r++}}}if(k()===e)S(t||"all")}function I(e){var t=e.keyCode||e.which||e.charCode;var n=g.indexOf(t);if(n>=0){g.splice(n,1)}if(e.key&&e.key.toLowerCase()==="meta"){g.splice(0,g.length)}if(t===93||t===224)t=91;if(t in f){f[t]=false;for(var r in u){if(u[r]===t)R[r]=false}}}function M(e){if(typeof e==="undefined"){Object.keys(h).forEach(function(e){return delete h[e]})}else if(Array.isArray(e)){e.forEach(function(e){if(e.key)D(e)})}else if(typeof e==="object"){if(e.key)D(e)}else if(typeof e==="string"){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++){n[r-1]=arguments[r]}var o=n[0],i=n[1];if(typeof o==="function"){i=o;o=""}D({key:e,scope:o,method:i,splitKey:"+"})}}var D=function e(e){var t=e.key,n=e.scope,r=e.method,o=e.splitKey,l=o===void 0?"+":o;var c=a(t);c.forEach(function(e){var t=e.split(l);var o=t.length;var a=t[o-1];var c=a==="*"?"*":w(a);if(!h[c])return;if(!n)n=k();var f=o>1?i(u,t):[];h[c]=h[c].filter(function(e){var t=r?e.method===r:true;return!(t&&e.scope===n&&s(e.mods,f))})})};function P(e,t,n,r){if(t.element!==r){return}var o;if(t.scope===n||t.scope==="all"){o=t.mods.length>0;for(var i in f){if(Object.prototype.hasOwnProperty.call(f,i)){if(!f[i]&&t.mods.indexOf(+i)>-1||f[i]&&t.mods.indexOf(+i)===-1){o=false}}}if(t.mods.length===0&&!f[16]&&!f[18]&&!f[17]&&!f[91]||o||t.shortcut==="*"){if(t.method(e,t)===false){if(e.preventDefault)e.preventDefault();else e.returnValue=false;if(e.stopPropagation)e.stopPropagation();if(e.cancelBubble)e.cancelBubble=true}}}}function O(e,t){var n=h["*"];var r=e.keyCode||e.which||e.charCode;if(!R.filter.call(this,e))return;if(r===93||r===224)r=91;if(g.indexOf(r)===-1&&r!==229)g.push(r);["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(t){var n=c[t];if(e[t]&&g.indexOf(n)===-1){g.push(n)}else if(!e[t]&&g.indexOf(n)>-1){g.splice(g.indexOf(n),1)}else if(t==="metaKey"&&e[t]&&g.length===3){if(!(e.ctrlKey||e.shiftKey||e.altKey)){g=g.slice(g.indexOf(n))}}});if(r in f){f[r]=true;for(var o in u){if(u[o]===r)R[o]=true}if(!n)return}for(var i in f){if(Object.prototype.hasOwnProperty.call(f,i)){f[i]=e[c[i]]}}if(e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")){if(g.indexOf(17)===-1){g.push(17)}if(g.indexOf(18)===-1){g.push(18)}f[17]=true;f[18]=true}var a=k();if(n){for(var s=0;s<n.length;s++){if(n[s].scope===a&&(e.type==="keydown"&&n[s].keydown||e.type==="keyup"&&n[s].keyup)){P(e,n[s],a,t)}}}if(!(r in h))return;for(var l=0;l<h[r].length;l++){if(e.type==="keydown"&&h[r][l].keydown||e.type==="keyup"&&h[r][l].keyup){if(h[r][l].key&&h[r][l].scope===a){var p=h[r][l];var v=p.splitKey;var m=p.key.split(v);var y=[];for(var x=0;x<m.length;x++){y.push(w(m[x]))}if(y.sort().join("")===g.slice().sort().join("")){P(e,p,a,t)}}}}}function A(e){return y.indexOf(e)>-1}function R(e,t,n){g=[];var r=a(e);var s=[];var l="all";var c=document;var f=0;var p=false;var m=true;var x="+";var b=false;if(n===undefined&&typeof t==="function"){n=t}if(Object.prototype.toString.call(t)==="[object Object]"){if(t.scope)l=t.scope;if(t.element)c=t.element;if(t.keyup)p=t.keyup;if(t.keydown!==undefined)m=t.keydown;if(t.capture!==undefined)b=t.capture;if(typeof t.splitKey==="string")x=t.splitKey}if(typeof t==="string")l=t;for(;f<r.length;f++){e=r[f].split(x);s=[];if(e.length>1)s=i(u,e);e=e[e.length-1];e=e==="*"?"*":w(e);if(!(e in h))h[e]=[];h[e].push({keyup:p,keydown:m,scope:l,mods:s,shortcut:r[f],method:n,key:r[f],splitKey:x,element:c})}if(typeof c!=="undefined"&&!A(c)&&window){y.push(c);o(c,"keydown",function(e){O(e,c)},b);if(!v){v=true;o(window,"focus",function(){g=[]},b)}o(c,"keyup",function(e){O(e,c);I(e)},b)}}function Z(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"all";Object.keys(h).forEach(function(n){var r=h[n].filter(function(n){return n.scope===t&&n.shortcut===e});r.forEach(function(e){if(e&&e.method){e.method()}})})}var z={getPressedKeyString:C,setScope:S,getScope:k,deleteScope:_,getPressedKeyCodes:j,isPressed:E,filter:T,trigger:Z,unbind:M,keyMap:l,modifier:u,modifierMap:c};for(var N in z){if(Object.prototype.hasOwnProperty.call(z,N)){R[N]=z[N]}}if(typeof window!=="undefined"){var L=window.hotkeys;R.noConflict=function(e){if(e&&window.hotkeys===R){window.hotkeys=L}return R};window.hotkeys=R}},60357:function(e,t,n){"use strict";n.r(t);var r=/[A-Z]/g;var o=/^ms-/;var i={};function a(e){return"-"+e.toLowerCase()}function s(e){if(i.hasOwnProperty(e)){return i[e]}var t=e.replace(r,a);return i[e]=o.test(t)?"-"+t:t}t["default"]=s},13534:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=s;var r=n(68052);var o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}var a=["-webkit-",""];function s(e,t){if(typeof t==="string"&&!(0,o.default)(t)&&t.indexOf("cross-fade(")>-1){return a.map(function(e){return t.replace(/cross-fade\(/g,e+"cross-fade(")})}}e.exports=t["default"]},26054:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=o;var n=["-webkit-","-moz-",""];var r={"zoom-in":true,"zoom-out":true,grab:true,grabbing:true};function o(e,t){if(e==="cursor"&&r.hasOwnProperty(t)){return n.map(function(e){return e+t})}}e.exports=t["default"]},24382:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=s;var r=n(68052);var o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}var a=["-webkit-",""];function s(e,t){if(typeof t==="string"&&!(0,o.default)(t)&&t.indexOf("filter(")>-1){return a.map(function(e){return t.replace(/filter\(/g,e+"filter(")})}}e.exports=t["default"]},58055:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=r;var n={flex:["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex","flex"],"inline-flex":["-webkit-inline-box","-moz-inline-box","-ms-inline-flexbox","-webkit-inline-flex","inline-flex"]};function r(e,t){if(e==="display"&&n.hasOwnProperty(t)){return n[t]}}e.exports=t["default"]},58617:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=o;var n={"space-around":"justify","space-between":"justify","flex-start":"start","flex-end":"end","wrap-reverse":"multiple",wrap:"multiple"};var r={alignItems:"WebkitBoxAlign",justifyContent:"WebkitBoxPack",flexWrap:"WebkitBoxLines"};function o(e,t,o){if(e==="flexDirection"&&typeof t==="string"){if(t.indexOf("column")>-1){o.WebkitBoxOrient="vertical"}else{o.WebkitBoxOrient="horizontal"}if(t.indexOf("reverse")>-1){o.WebkitBoxDirection="reverse"}else{o.WebkitBoxDirection="normal"}}if(r.hasOwnProperty(e)){o[r[e]]=n[t]||t}}e.exports=t["default"]},63574:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=l;var r=n(68052);var o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}var a=["-webkit-","-moz-",""];var s=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/;function l(e,t){if(typeof t==="string"&&!(0,o.default)(t)&&s.test(t)){return a.map(function(e){return e+t})}}e.exports=t["default"]},91247:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=s;var r=n(68052);var o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}var a=["-webkit-",""];function s(e,t){if(typeof t==="string"&&!(0,o.default)(t)&&t.indexOf("image-set(")>-1){return a.map(function(e){return t.replace(/image-set\(/g,e+"image-set(")})}}e.exports=t["default"]},34867:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=n;function n(e,t){if(e==="position"&&t==="sticky"){return["-webkit-sticky","sticky"]}}e.exports=t["default"]},98904:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=i;var n=["-webkit-","-moz-",""];var r={maxHeight:true,maxWidth:true,width:true,height:true,columnWidth:true,minWidth:true,minHeight:true};var o={"min-content":true,"max-content":true,"fill-available":true,"fit-content":true,"contain-floats":true};function i(e,t){if(r.hasOwnProperty(e)&&o.hasOwnProperty(t)){return n.map(function(e){return e+t})}}e.exports=t["default"]},29604:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=p;var r=n(66111);var o=u(r);var i=n(68052);var a=u(i);var s=n(43543);var l=u(s);function u(e){return e&&e.__esModule?e:{default:e}}var c={transition:true,transitionProperty:true,WebkitTransition:true,WebkitTransitionProperty:true,MozTransition:true,MozTransitionProperty:true};var f={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-"};function h(e,t){if((0,a.default)(e)){return e}var n=e.split(/,(?![^()]*(?:\([^()]*\))?\))/g);for(var r=0,i=n.length;r<i;++r){var s=n[r];var l=[s];for(var u in t){var c=(0,o.default)(u);if(s.indexOf(c)>-1&&c!=="order"){var h=t[u];for(var p=0,g=h.length;p<g;++p){l.unshift(s.replace(c,f[h[p]]+c))}}}n[r]=l.join(",")}return n.join(",")}function p(e,t,n,r){if(typeof t==="string"&&c.hasOwnProperty(e)){var o=h(t,r);var i=o.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(e){return!/-moz-|-ms-/.test(e)}).join(",");if(e.indexOf("Webkit")>-1){return i}var a=o.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(e){return!/-webkit-|-ms-/.test(e)}).join(",");if(e.indexOf("Moz")>-1){return a}n["Webkit"+(0,l.default)(e)]=i;n["Moz"+(0,l.default)(e)]=a;return o}}e.exports=t["default"]},19572:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=["Webkit"];var r=["Moz"];var o=["ms"];var i=["Webkit","Moz"];var a=["Webkit","ms"];var s=["Webkit","Moz","ms"];t["default"]={plugins:[],prefixMap:{"appearance":i,"userSelect":s,"textEmphasisPosition":n,"textEmphasis":n,"textEmphasisStyle":n,"textEmphasisColor":n,"boxDecorationBreak":n,"clipPath":n,"maskImage":n,"maskMode":n,"maskRepeat":n,"maskPosition":n,"maskClip":n,"maskOrigin":n,"maskSize":n,"maskComposite":n,"mask":n,"maskBorderSource":n,"maskBorderMode":n,"maskBorderSlice":n,"maskBorderWidth":n,"maskBorderOutset":n,"maskBorderRepeat":n,"maskBorder":n,"maskType":n,"textDecorationStyle":n,"textDecorationSkip":n,"textDecorationLine":n,"textDecorationColor":n,"filter":n,"fontFeatureSettings":n,"breakAfter":s,"breakBefore":s,"breakInside":s,"columnCount":i,"columnFill":i,"columnGap":i,"columnRule":i,"columnRuleColor":i,"columnRuleStyle":i,"columnRuleWidth":i,"columns":i,"columnSpan":i,"columnWidth":i,"writingMode":a,"flex":n,"flexBasis":n,"flexDirection":n,"flexGrow":n,"flexFlow":n,"flexShrink":n,"flexWrap":n,"alignContent":n,"alignItems":n,"alignSelf":n,"justifyContent":n,"order":n,"transform":n,"transformOrigin":n,"transformOriginX":n,"transformOriginY":n,"backfaceVisibility":n,"perspective":n,"perspectiveOrigin":n,"transformStyle":n,"transformOriginZ":n,"animation":n,"animationDelay":n,"animationDirection":n,"animationFillMode":n,"animationDuration":n,"animationIterationCount":n,"animationName":n,"animationPlayState":n,"animationTimingFunction":n,"backdropFilter":n,"fontKerning":n,"scrollSnapType":a,"scrollSnapPointsX":a,"scrollSnapPointsY":a,"scrollSnapDestination":a,"scrollSnapCoordinate":a,"shapeImageThreshold":n,"shapeImageMargin":n,"shapeImageOutside":n,"hyphens":s,"flowInto":a,"flowFrom":a,"regionFragment":a,"textAlignLast":r,"tabSize":r,"wrapFlow":o,"wrapThrough":o,"wrapMargin":o,"gridTemplateColumns":o,"gridTemplateRows":o,"gridTemplateAreas":o,"gridTemplate":o,"gridAutoColumns":o,"gridAutoRows":o,"gridAutoFlow":o,"grid":o,"gridRowStart":o,"gridColumnStart":o,"gridRowEnd":o,"gridRow":o,"gridColumn":o,"gridColumnEnd":o,"gridColumnGap":o,"gridRowGap":o,"gridArea":o,"gridGap":o,"textSizeAdjust":a,"borderImage":n,"borderImageOutset":n,"borderImageRepeat":n,"borderImageSlice":n,"borderImageSource":n,"borderImageWidth":n,"transitionDelay":n,"transitionDuration":n,"transitionProperty":n,"transitionTimingFunction":n}};e.exports=t["default"]},43543:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=n;function n(e){return e.charAt(0).toUpperCase()+e.slice(1)}e.exports=t["default"]},20740:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=a;var r=n(43543);var o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n){if(e.hasOwnProperty(t)){var r=e[t];for(var i=0,a=r.length;i<a;++i){n[r[i]+(0,o.default)(t)]=n[t]}}}e.exports=t["default"]},64641:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=n;function n(e,t,n,r,o){for(var i=0,a=e.length;i<a;++i){var s=e[i](t,n,r,o);if(s){return s}}}e.exports=t["default"]},42696:function(e,t,n){"use strict";const r=n(66108);const o=Symbol("max");const i=Symbol("length");const a=Symbol("lengthCalculator");const s=Symbol("allowStale");const l=Symbol("maxAge");const u=Symbol("dispose");const c=Symbol("noDisposeOnSet");const f=Symbol("lruList");const h=Symbol("cache");const p=Symbol("updateAgeOnGet");const g=()=>1;class v{constructor(e){if(typeof e==="number")e={max:e};if(!e)e={};if(e.max&&(typeof e.max!=="number"||e.max<0))throw new TypeError("max must be a non-negative number");const t=this[o]=e.max||Infinity;const n=e.length||g;this[a]=typeof n!=="function"?g:n;this[s]=e.stale||false;if(e.maxAge&&typeof e.maxAge!=="number")throw new TypeError("maxAge must be a number");this[l]=e.maxAge||0;this[u]=e.dispose;this[c]=e.noDisposeOnSet||false;this[p]=e.updateAgeOnGet||false;this.reset()}set max(e){if(typeof e!=="number"||e<0)throw new TypeError("max must be a non-negative number");this[o]=e||Infinity;w(this)}get max(){return this[o]}set allowStale(e){this[s]=!!e}get allowStale(){return this[s]}set maxAge(e){if(typeof e!=="number")throw new TypeError("maxAge must be a non-negative number");this[l]=e;w(this)}get maxAge(){return this[l]}set lengthCalculator(e){if(typeof e!=="function")e=g;if(e!==this[a]){this[a]=e;this[i]=0;this[f].forEach(e=>{e.length=this[a](e.value,e.key);this[i]+=e.length})}w(this)}get lengthCalculator(){return this[a]}get length(){return this[i]}get itemCount(){return this[f].length}rforEach(e,t){t=t||this;for(let n=this[f].tail;n!==null;){const r=n.prev;S(this,e,n,t);n=r}}forEach(e,t){t=t||this;for(let n=this[f].head;n!==null;){const r=n.next;S(this,e,n,t);n=r}}keys(){return this[f].toArray().map(e=>e.key)}values(){return this[f].toArray().map(e=>e.value)}reset(){if(this[u]&&this[f]&&this[f].length){this[f].forEach(e=>this[u](e.key,e.value))}this[h]=new Map;this[f]=new r;this[i]=0}dump(){return this[f].map(e=>y(this,e)?false:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[f]}set(e,t,n){n=n||this[l];if(n&&typeof n!=="number")throw new TypeError("maxAge must be a number");const r=n?Date.now():0;const s=this[a](t,e);if(this[h].has(e)){if(s>this[o]){x(this,this[h].get(e));return false}const a=this[h].get(e);const l=a.value;if(this[u]){if(!this[c])this[u](e,l.value)}l.now=r;l.maxAge=n;l.value=t;this[i]+=s-l.length;l.length=s;this.get(e);w(this);return true}const p=new b(e,t,s,r,n);if(p.length>this[o]){if(this[u])this[u](e,t);return false}this[i]+=p.length;this[f].unshift(p);this[h].set(e,this[f].head);w(this);return true}has(e){if(!this[h].has(e))return false;const t=this[h].get(e).value;return!y(this,t)}get(e){return m(this,e,true)}peek(e){return m(this,e,false)}pop(){const e=this[f].tail;if(!e)return null;x(this,e);return e.value}del(e){x(this,this[h].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const r=e[n];const o=r.e||0;if(o===0)this.set(r.k,r.v);else{const e=o-t;if(e>0){this.set(r.k,r.v,e)}}}}prune(){this[h].forEach((e,t)=>m(this,t,false))}}const m=(e,t,n)=>{const r=e[h].get(t);if(r){const t=r.value;if(y(e,t)){x(e,r);if(!e[s])return undefined}else{if(n){if(e[p])r.value.now=Date.now();e[f].unshiftNode(r)}}return t.value}};const y=(e,t)=>{if(!t||!t.maxAge&&!e[l])return false;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[l]&&n>e[l]};const w=e=>{if(e[i]>e[o]){for(let t=e[f].tail;e[i]>e[o]&&t!==null;){const n=t.prev;x(e,t);t=n}}};const x=(e,t)=>{if(t){const n=t.value;if(e[u])e[u](n.key,n.value);e[i]-=n.length;e[h].delete(n.key);e[f].removeNode(t)}};class b{constructor(e,t,n,r,o){this.key=e;this.value=t;this.length=n;this.now=r;this.maxAge=o||0}}const S=(e,t,n,r)=>{let o=n.value;if(y(e,o)){x(e,n);if(!e[s])o=undefined}if(o)t.call(r,o.value,o.key,e)};e.exports=v},21561:function(e){"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next){yield e.value}}}},66108:function(e,t,n){"use strict";e.exports=r;r.Node=s;r.create=r;function r(e){var t=this;if(!(t instanceof r)){t=new r}t.tail=null;t.head=null;t.length=0;if(e&&typeof e.forEach==="function"){e.forEach(function(e){t.push(e)})}else if(arguments.length>0){for(var n=0,o=arguments.length;n<o;n++){t.push(arguments[n])}}return t}r.prototype.removeNode=function(e){if(e.list!==this){throw new Error("removing node which does not belong to this list")}var t=e.next;var n=e.prev;if(t){t.prev=n}if(n){n.next=t}if(e===this.head){this.head=t}if(e===this.tail){this.tail=n}e.list.length--;e.next=null;e.prev=null;e.list=null;return t};r.prototype.unshiftNode=function(e){if(e===this.head){return}if(e.list){e.list.removeNode(e)}var t=this.head;e.list=this;e.next=t;if(t){t.prev=e}this.head=e;if(!this.tail){this.tail=e}this.length++};r.prototype.pushNode=function(e){if(e===this.tail){return}if(e.list){e.list.removeNode(e)}var t=this.tail;e.list=this;e.prev=t;if(t){t.next=e}this.tail=e;if(!this.head){this.head=e}this.length++};r.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++){i(this,arguments[e])}return this.length};r.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++){a(this,arguments[e])}return this.length};r.prototype.pop=function(){if(!this.tail){return undefined}var e=this.tail.value;this.tail=this.tail.prev;if(this.tail){this.tail.next=null}else{this.head=null}this.length--;return e};r.prototype.shift=function(){if(!this.head){return undefined}var e=this.head.value;this.head=this.head.next;if(this.head){this.head.prev=null}else{this.tail=null}this.length--;return e};r.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,r=0;n!==null;r++){e.call(t,n.value,r,this);n=n.next}};r.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,r=this.length-1;n!==null;r--){e.call(t,n.value,r,this);n=n.prev}};r.prototype.get=function(e){for(var t=0,n=this.head;n!==null&&t<e;t++){n=n.next}if(t===e&&n!==null){return n.value}};r.prototype.getReverse=function(e){for(var t=0,n=this.tail;n!==null&&t<e;t++){n=n.prev}if(t===e&&n!==null){return n.value}};r.prototype.map=function(e,t){t=t||this;var n=new r;for(var o=this.head;o!==null;){n.push(e.call(t,o.value,this));o=o.next}return n};r.prototype.mapReverse=function(e,t){t=t||this;var n=new r;for(var o=this.tail;o!==null;){n.push(e.call(t,o.value,this));o=o.prev}return n};r.prototype.reduce=function(e,t){var n;var r=this.head;if(arguments.length>1){n=t}else if(this.head){r=this.head.next;n=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var o=0;r!==null;o++){n=e(n,r.value,o);r=r.next}return n};r.prototype.reduceReverse=function(e,t){var n;var r=this.tail;if(arguments.length>1){n=t}else if(this.tail){r=this.tail.prev;n=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var o=this.length-1;r!==null;o--){n=e(n,r.value,o);r=r.prev}return n};r.prototype.toArray=function(){var e=new Array(this.length);for(var t=0,n=this.head;n!==null;t++){e[t]=n.value;n=n.next}return e};r.prototype.toArrayReverse=function(){var e=new Array(this.length);for(var t=0,n=this.tail;n!==null;t++){e[t]=n.value;n=n.prev}return e};r.prototype.slice=function(e,t){t=t||this.length;if(t<0){t+=this.length}e=e||0;if(e<0){e+=this.length}var n=new r;if(t<e||t<0){return n}if(e<0){e=0}if(t>this.length){t=this.length}for(var o=0,i=this.head;i!==null&&o<e;o++){i=i.next}for(;i!==null&&o<t;o++,i=i.next){n.push(i.value)}return n};r.prototype.sliceReverse=function(e,t){t=t||this.length;if(t<0){t+=this.length}e=e||0;if(e<0){e+=this.length}var n=new r;if(t<e||t<0){return n}if(e<0){e=0}if(t>this.length){t=this.length}for(var o=this.length,i=this.tail;i!==null&&o>t;o--){i=i.prev}for(;i!==null&&o>e;o--,i=i.prev){n.push(i.value)}return n};r.prototype.splice=function(e,t){if(e>this.length){e=this.length-1}if(e<0){e=this.length+e}for(var n=0,r=this.head;r!==null&&n<e;n++){r=r.next}var i=[];for(var n=0;r&&n<t;n++){i.push(r.value);r=this.removeNode(r)}if(r===null){r=this.tail}if(r!==this.head&&r!==this.tail){r=r.prev}for(var n=2;n<arguments.length;n++){r=o(this,r,arguments[n])}return i};r.prototype.reverse=function(){var e=this.head;var t=this.tail;for(var n=e;n!==null;n=n.prev){var r=n.prev;n.prev=n.next;n.next=r}this.head=t;this.tail=e;return this};function o(e,t,n){var r=t===e.head?new s(n,null,t,e):new s(n,t,t.next,e);if(r.next===null){e.tail=r}if(r.prev===null){e.head=r}e.length++;return r}function i(e,t){e.tail=new s(t,e.tail,null,e);if(!e.head){e.head=e.tail}e.length++}function a(e,t){e.head=new s(t,null,e.head,e);if(!e.tail){e.tail=e.head}e.length++}function s(e,t,n,r){if(!(this instanceof s)){return new s(e,t,n,r)}this.list=r;this.value=e;if(t){t.next=this;this.prev=t}else{this.prev=null}if(n){n.prev=this;this.next=n}else{this.next=null}}try{n(21561)(r)}catch(e){}},99024:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=Number.isNaN||function e(e){return typeof e==="number"&&e!==e};function o(e,t){if(e===t){return true}if(r(e)&&r(t)){return true}return false}function i(e,t){if(e.length!==t.length){return false}for(var n=0;n<e.length;n++){if(!o(e[n],t[n])){return false}}return true}function a(e,t){if(t===void 0){t=i}var n=null;function r(){var r=[];for(var o=0;o<arguments.length;o++){r[o]=arguments[o]}if(n&&n.lastThis===this&&t(r,n.lastArgs)){return n.lastResult}var i=e.apply(this,r);n={lastResult:i,lastArgs:r,lastThis:this};return i}r.clear=function e(){n=null};return r}},4439:function(e){"use strict";/*
22
- object-assign
23
- (c) Sindre Sorhus
24
- @license MIT
25
- */var t=Object.getOwnPropertySymbols;var n=Object.prototype.hasOwnProperty;var r=Object.prototype.propertyIsEnumerable;function o(e){if(e===null||e===undefined){throw new TypeError("Object.assign cannot be called with null or undefined")}return Object(e)}function i(){try{if(!Object.assign){return false}var e=new String("abc");e[5]="de";if(Object.getOwnPropertyNames(e)[0]==="5"){return false}var t={};for(var n=0;n<10;n++){t["_"+String.fromCharCode(n)]=n}var r=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if(r.join("")!=="0123456789"){return false}var o={};"abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e});if(Object.keys(Object.assign({},o)).join("")!=="abcdefghijklmnopqrst"){return false}return true}catch(e){return false}}e.exports=i()?Object.assign:function(e,i){var a;var s=o(e);var l;for(var u=1;u<arguments.length;u++){a=Object(arguments[u]);for(var c in a){if(n.call(a,c)){s[c]=a[c]}}if(t){l=t(a);for(var f=0;f<l.length;f++){if(r.call(a,l[f])){s[l[f]]=a[l[f]]}}}}return s}},7851:function(e){/*!
26
- * Pikaday
27
- *
28
- * Copyright © 2014 David Bushell | BSD & MIT license | https://github.com/Pikaday/Pikaday
29
- */(function(t,n){"use strict";var r;if(true){e.exports=n(null)}else{}})(this,function(e){"use strict";var t=typeof e==="function",n=!!window.addEventListener,r=window.document,o=window.setTimeout,i=function(e,t,r,o){if(n){e.addEventListener(t,r,!!o)}else{e.attachEvent("on"+t,r)}},a=function(e,t,r,o){if(n){e.removeEventListener(t,r,!!o)}else{e.detachEvent("on"+t,r)}},s=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},l=function(e,t){return(" "+e.className+" ").indexOf(" "+t+" ")!==-1},u=function(e,t){if(!l(e,t)){e.className=e.className===""?t:e.className+" "+t}},c=function(e,t){e.className=s((" "+e.className+" ").replace(" "+t+" "," "))},f=function(e){return/Array/.test(Object.prototype.toString.call(e))},h=function(e){return/Date/.test(Object.prototype.toString.call(e))&&!isNaN(e.getTime())},p=function(e){var t=e.getDay();return t===0||t===6},g=function(e){return e%4===0&&e%100!==0||e%400===0},v=function(e,t){return[31,g(e)?29:28,31,30,31,30,31,31,30,31,30,31][t]},m=function(e){if(h(e))e.setHours(0,0,0,0)},y=function(e,t){return e.getTime()===t.getTime()},w=function(e,t,n){var r,o;for(r in t){o=e[r]!==undefined;if(o&&typeof t[r]==="object"&&t[r]!==null&&t[r].nodeName===undefined){if(h(t[r])){if(n){e[r]=new Date(t[r].getTime())}}else if(f(t[r])){if(n){e[r]=t[r].slice(0)}}else{e[r]=w({},t[r],n)}}else if(n||!o){e[r]=t[r]}}return e},x=function(e,t,n){var o;if(r.createEvent){o=r.createEvent("HTMLEvents");o.initEvent(t,true,false);o=w(o,n);e.dispatchEvent(o)}else if(r.createEventObject){o=r.createEventObject();o=w(o,n);e.fireEvent("on"+t,o)}},b=function(e){if(e.month<0){e.year-=Math.ceil(Math.abs(e.month)/12);e.month+=12}if(e.month>11){e.year+=Math.floor(Math.abs(e.month)/12);e.month-=12}return e},S={field:null,bound:undefined,ariaLabel:"Use the arrow keys to pick a date",position:"bottom left",reposition:true,format:"YYYY-MM-DD",toString:null,parse:null,defaultDate:null,setDefaultDate:false,firstDay:0,formatStrict:false,minDate:null,maxDate:null,yearRange:10,showWeekNumber:false,pickWholeWeek:false,minYear:0,maxYear:9999,minMonth:undefined,maxMonth:undefined,startRange:null,endRange:null,isRTL:false,yearSuffix:"",showMonthAfterYear:false,showDaysInNextAndPreviousMonths:false,enableSelectionDaysInNextAndPreviousMonths:false,numberOfMonths:1,mainCalendar:"left",container:undefined,blurFieldOnSelect:true,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null,keyboardInput:true},k=function(e,t,n){t+=e.firstDay;while(t>=7){t-=7}return n?e.i18n.weekdaysShort[t]:e.i18n.weekdays[t]},j=function(e){var t=[];var n="false";if(e.isEmpty){if(e.showDaysInNextAndPreviousMonths){t.push("is-outside-current-month");if(!e.enableSelectionDaysInNextAndPreviousMonths){t.push("is-selection-disabled")}}else{return'<td class="is-empty"></td>'}}if(e.isDisabled){t.push("is-disabled")}if(e.isToday){t.push("is-today")}if(e.isSelected){t.push("is-selected");n="true"}if(e.hasEvent){t.push("has-event")}if(e.isInRange){t.push("is-inrange")}if(e.isStartRange){t.push("is-startrange")}if(e.isEndRange){t.push("is-endrange")}return'<td data-day="'+e.day+'" class="'+t.join(" ")+'" aria-selected="'+n+'">'+'<button class="pika-button pika-day" type="button" '+'data-pika-year="'+e.year+'" data-pika-month="'+e.month+'" data-pika-day="'+e.day+'">'+e.day+"</button>"+"</td>"},C=function(e,t,n){var r=new Date(n,0,1),o=Math.ceil(((new Date(n,t,e)-r)/864e5+r.getDay()+1)/7);return'<td class="pika-week">'+o+"</td>"},T=function(e,t,n,r){return'<tr class="pika-row'+(n?" pick-whole-week":"")+(r?" is-selected":"")+'">'+(t?e.reverse():e).join("")+"</tr>"},E=function(e){return"<tbody>"+e.join("")+"</tbody>"},_=function(e){var t,n=[];if(e.showWeekNumber){n.push("<th></th>")}for(t=0;t<7;t++){n.push('<th scope="col"><abbr title="'+k(e,t)+'">'+k(e,t,true)+"</abbr></th>")}return"<thead><tr>"+(e.isRTL?n.reverse():n).join("")+"</tr></thead>"},I=function(e,t,n,r,o,i){var a,s,l,u=e._o,c=n===u.minYear,h=n===u.maxYear,p='<div id="'+i+'" class="pika-title" role="heading" aria-live="assertive">',g,v,m=true,y=true;for(l=[],a=0;a<12;a++){l.push('<option value="'+(n===o?a-t:12+a-t)+'"'+(a===r?' selected="selected"':"")+(c&&a<u.minMonth||h&&a>u.maxMonth?'disabled="disabled"':"")+">"+u.i18n.months[a]+"</option>")}g='<div class="pika-label">'+u.i18n.months[r]+'<select class="pika-select pika-select-month" tabindex="-1">'+l.join("")+"</select></div>";if(f(u.yearRange)){a=u.yearRange[0];s=u.yearRange[1]+1}else{a=n-u.yearRange;s=1+n+u.yearRange}for(l=[];a<s&&a<=u.maxYear;a++){if(a>=u.minYear){l.push('<option value="'+a+'"'+(a===n?' selected="selected"':"")+">"+a+"</option>")}}v='<div class="pika-label">'+n+u.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+l.join("")+"</select></div>";if(u.showMonthAfterYear){p+=v+g}else{p+=g+v}if(c&&(r===0||u.minMonth>=r)){m=false}if(h&&(r===11||u.maxMonth<=r)){y=false}if(t===0){p+='<button class="pika-prev'+(m?"":" is-disabled")+'" type="button">'+u.i18n.previousMonth+"</button>"}if(t===e._o.numberOfMonths-1){p+='<button class="pika-next'+(y?"":" is-disabled")+'" type="button">'+u.i18n.nextMonth+"</button>"}return p+="</div>"},M=function(e,t,n){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+n+'">'+_(e)+E(t)+"</table>"},D=function(a){var s=this,u=s.config(a);s._onMouseDown=function(e){if(!s._v){return}e=e||window.event;var t=e.target||e.srcElement;if(!t){return}if(!l(t,"is-disabled")){if(l(t,"pika-button")&&!l(t,"is-empty")&&!l(t.parentNode,"is-disabled")){s.setDate(new Date(t.getAttribute("data-pika-year"),t.getAttribute("data-pika-month"),t.getAttribute("data-pika-day")));if(u.bound){o(function(){s.hide();if(u.blurFieldOnSelect&&u.field){u.field.blur()}},100)}}else if(l(t,"pika-prev")){s.prevMonth()}else if(l(t,"pika-next")){s.nextMonth()}}if(!l(t,"pika-select")){if(e.preventDefault){e.preventDefault()}else{e.returnValue=false;return false}}else{s._c=true}};s._onChange=function(e){e=e||window.event;var t=e.target||e.srcElement;if(!t){return}if(l(t,"pika-select-month")){s.gotoMonth(t.value)}else if(l(t,"pika-select-year")){s.gotoYear(t.value)}};s._onKeyChange=function(e){e=e||window.event;if(s.isVisible()){switch(e.keyCode){case 13:case 27:if(u.field){u.field.blur()}break;case 37:e.preventDefault();s.adjustDate("subtract",1);break;case 38:s.adjustDate("subtract",7);break;case 39:s.adjustDate("add",1);break;case 40:s.adjustDate("add",7);break}}};s._onInputChange=function(n){var r;if(n.firedBy===s){return}if(u.parse){r=u.parse(u.field.value,u.format)}else if(t){r=e(u.field.value,u.format,u.formatStrict);r=r&&r.isValid()?r.toDate():null}else{r=new Date(Date.parse(u.field.value))}if(h(r)){s.setDate(r)}if(!s._v){s.show()}};s._onInputFocus=function(){s.show()};s._onInputClick=function(){s.show()};s._onInputBlur=function(){var e=r.activeElement;do{if(l(e,"pika-single")){return}}while(e=e.parentNode);if(!s._c){s._b=o(function(){s.hide()},50)}s._c=false};s._onClick=function(e){e=e||window.event;var t=e.target||e.srcElement,r=t;if(!t){return}if(!n&&l(t,"pika-select")){if(!t.onchange){t.setAttribute("onchange","return;");i(t,"change",s._onChange)}}do{if(l(r,"pika-single")||r===u.trigger){return}}while(r=r.parentNode);if(s._v&&t!==u.trigger&&r!==u.trigger){s.hide()}};s.el=r.createElement("div");s.el.className="pika-single"+(u.isRTL?" is-rtl":"")+(u.theme?" "+u.theme:"");i(s.el,"mousedown",s._onMouseDown,true);i(s.el,"touchend",s._onMouseDown,true);i(s.el,"change",s._onChange);if(u.keyboardInput){i(r,"keydown",s._onKeyChange)}if(u.field){if(u.container){u.container.appendChild(s.el)}else if(u.bound){r.body.appendChild(s.el)}else{u.field.parentNode.insertBefore(s.el,u.field.nextSibling)}i(u.field,"change",s._onInputChange);if(!u.defaultDate){if(t&&u.field.value){u.defaultDate=e(u.field.value,u.format).toDate()}else{u.defaultDate=new Date(Date.parse(u.field.value))}u.setDefaultDate=true}}var c=u.defaultDate;if(h(c)){if(u.setDefaultDate){s.setDate(c,true)}else{s.gotoDate(c)}}else{s.gotoDate(new Date)}if(u.bound){this.hide();s.el.className+=" is-bound";i(u.trigger,"click",s._onInputClick);i(u.trigger,"focus",s._onInputFocus);i(u.trigger,"blur",s._onInputBlur)}else{this.show()}};D.prototype={config:function(e){if(!this._o){this._o=w({},S,true)}var t=w(this._o,e,true);t.isRTL=!!t.isRTL;t.field=t.field&&t.field.nodeName?t.field:null;t.theme=typeof t.theme==="string"&&t.theme?t.theme:null;t.bound=!!(t.bound!==undefined?t.field&&t.bound:t.field);t.trigger=t.trigger&&t.trigger.nodeName?t.trigger:t.field;t.disableWeekends=!!t.disableWeekends;t.disableDayFn=typeof t.disableDayFn==="function"?t.disableDayFn:null;var n=parseInt(t.numberOfMonths,10)||1;t.numberOfMonths=n>4?4:n;if(!h(t.minDate)){t.minDate=false}if(!h(t.maxDate)){t.maxDate=false}if(t.minDate&&t.maxDate&&t.maxDate<t.minDate){t.maxDate=t.minDate=false}if(t.minDate){this.setMinDate(t.minDate)}if(t.maxDate){this.setMaxDate(t.maxDate)}if(f(t.yearRange)){var r=new Date().getFullYear()-10;t.yearRange[0]=parseInt(t.yearRange[0],10)||r;t.yearRange[1]=parseInt(t.yearRange[1],10)||r}else{t.yearRange=Math.abs(parseInt(t.yearRange,10))||S.yearRange;if(t.yearRange>100){t.yearRange=100}}return t},toString:function(n){n=n||this._o.format;if(!h(this._d)){return""}if(this._o.toString){return this._o.toString(this._d,n)}if(t){return e(this._d).format(n)}return this._d.toDateString()},getMoment:function(){return t?e(this._d):null},setMoment:function(n,r){if(t&&e.isMoment(n)){this.setDate(n.toDate(),r)}},getDate:function(){return h(this._d)?new Date(this._d.getTime()):null},setDate:function(e,t){if(!e){this._d=null;if(this._o.field){this._o.field.value="";x(this._o.field,"change",{firedBy:this})}return this.draw()}if(typeof e==="string"){e=new Date(Date.parse(e))}if(!h(e)){return}var n=this._o.minDate,r=this._o.maxDate;if(h(n)&&e<n){e=n}else if(h(r)&&e>r){e=r}this._d=new Date(e.getTime());m(this._d);this.gotoDate(this._d);if(this._o.field){this._o.field.value=this.toString();x(this._o.field,"change",{firedBy:this})}if(!t&&typeof this._o.onSelect==="function"){this._o.onSelect.call(this,this.getDate())}},gotoDate:function(e){var t=true;if(!h(e)){return}if(this.calendars){var n=new Date(this.calendars[0].year,this.calendars[0].month,1),r=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),o=e.getTime();r.setMonth(r.getMonth()+1);r.setDate(r.getDate()-1);t=o<n.getTime()||r.getTime()<o}if(t){this.calendars=[{month:e.getMonth(),year:e.getFullYear()}];if(this._o.mainCalendar==="right"){this.calendars[0].month+=1-this._o.numberOfMonths}}this.adjustCalendars()},adjustDate:function(e,t){var n=this.getDate()||new Date;var r=parseInt(t)*24*60*60*1e3;var o;if(e==="add"){o=new Date(n.valueOf()+r)}else if(e==="subtract"){o=new Date(n.valueOf()-r)}this.setDate(o)},adjustCalendars:function(){this.calendars[0]=b(this.calendars[0]);for(var e=1;e<this._o.numberOfMonths;e++){this.calendars[e]=b({month:this.calendars[0].month+e,year:this.calendars[0].year})}this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(e){if(!isNaN(e)){this.calendars[0].month=parseInt(e,10);this.adjustCalendars()}},nextMonth:function(){this.calendars[0].month++;this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--;this.adjustCalendars()},gotoYear:function(e){if(!isNaN(e)){this.calendars[0].year=parseInt(e,10);this.adjustCalendars()}},setMinDate:function(e){if(e instanceof Date){m(e);this._o.minDate=e;this._o.minYear=e.getFullYear();this._o.minMonth=e.getMonth()}else{this._o.minDate=S.minDate;this._o.minYear=S.minYear;this._o.minMonth=S.minMonth;this._o.startRange=S.startRange}this.draw()},setMaxDate:function(e){if(e instanceof Date){m(e);this._o.maxDate=e;this._o.maxYear=e.getFullYear();this._o.maxMonth=e.getMonth()}else{this._o.maxDate=S.maxDate;this._o.maxYear=S.maxYear;this._o.maxMonth=S.maxMonth;this._o.endRange=S.endRange}this.draw()},setStartRange:function(e){this._o.startRange=e},setEndRange:function(e){this._o.endRange=e},draw:function(e){if(!this._v&&!e){return}var t=this._o,n=t.minYear,r=t.maxYear,i=t.minMonth,a=t.maxMonth,s="",l;if(this._y<=n){this._y=n;if(!isNaN(i)&&this._m<i){this._m=i}}if(this._y>=r){this._y=r;if(!isNaN(a)&&this._m>a){this._m=a}}l="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2);for(var u=0;u<t.numberOfMonths;u++){s+='<div class="pika-lendar">'+I(this,u,this.calendars[u].year,this.calendars[u].month,this.calendars[0].year,l)+this.render(this.calendars[u].year,this.calendars[u].month,l)+"</div>"}this.el.innerHTML=s;if(t.bound){if(t.field.type!=="hidden"){o(function(){t.trigger.focus()},1)}}if(typeof this._o.onDraw==="function"){this._o.onDraw(this)}if(t.bound){t.field.setAttribute("aria-label",t.ariaLabel)}},adjustPosition:function(){var e,t,n,o,i,a,s,l,f,h,p,g;if(this._o.container)return;this.el.style.position="absolute";e=this._o.trigger;t=e;n=this.el.offsetWidth;o=this.el.offsetHeight;i=window.innerWidth||r.documentElement.clientWidth;a=window.innerHeight||r.documentElement.clientHeight;s=window.pageYOffset||r.body.scrollTop||r.documentElement.scrollTop;p=true;g=true;if(typeof e.getBoundingClientRect==="function"){h=e.getBoundingClientRect();l=h.left+window.pageXOffset;f=h.bottom+window.pageYOffset}else{l=t.offsetLeft;f=t.offsetTop+t.offsetHeight;while(t=t.offsetParent){l+=t.offsetLeft;f+=t.offsetTop}}if(this._o.reposition&&l+n>i||this._o.position.indexOf("right")>-1&&l-n+e.offsetWidth>0){l=l-n+e.offsetWidth;p=false}if(this._o.reposition&&f+o>a+s||this._o.position.indexOf("top")>-1&&f-o-e.offsetHeight>0){f=f-o-e.offsetHeight;g=false}this.el.style.left=l+"px";this.el.style.top=f+"px";u(this.el,p?"left-aligned":"right-aligned");u(this.el,g?"bottom-aligned":"top-aligned");c(this.el,!p?"left-aligned":"right-aligned");c(this.el,!g?"bottom-aligned":"top-aligned")},render:function(e,t,n){var r=this._o,o=new Date,i=v(e,t),a=new Date(e,t,1).getDay(),s=[],l=[];m(o);if(r.firstDay>0){a-=r.firstDay;if(a<0){a+=7}}var u=t===0?11:t-1,c=t===11?0:t+1,f=t===0?e-1:e,g=t===11?e+1:e,w=v(f,u);var x=i+a,b=x;while(b>7){b-=7}x+=7-b;var S=false;for(var k=0,E=0;k<x;k++){var _=new Date(e,t,1+(k-a)),I=h(this._d)?y(_,this._d):false,D=y(_,o),P=r.events.indexOf(_.toDateString())!==-1?true:false,O=k<a||k>=i+a,A=1+(k-a),R=t,Z=e,z=r.startRange&&y(r.startRange,_),N=r.endRange&&y(r.endRange,_),L=r.startRange&&r.endRange&&r.startRange<_&&_<r.endRange,B=r.minDate&&_<r.minDate||r.maxDate&&_>r.maxDate||r.disableWeekends&&p(_)||r.disableDayFn&&r.disableDayFn(_);if(O){if(k<a){A=w+A;R=u;Z=f}else{A=A-i;R=c;Z=g}}var H={day:A,month:R,year:Z,hasEvent:P,isSelected:I,isToday:D,isDisabled:B,isEmpty:O,isStartRange:z,isEndRange:N,isInRange:L,showDaysInNextAndPreviousMonths:r.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:r.enableSelectionDaysInNextAndPreviousMonths};if(r.pickWholeWeek&&I){S=true}l.push(j(H));if(++E===7){if(r.showWeekNumber){l.unshift(C(k-a,t,e))}s.push(T(l,r.isRTL,r.pickWholeWeek,S));l=[];E=0;S=false}}return M(r,s,n)},isVisible:function(){return this._v},show:function(){if(!this.isVisible()){this._v=true;this.draw();c(this.el,"is-hidden");if(this._o.bound){i(r,"click",this._onClick);this.adjustPosition()}if(typeof this._o.onOpen==="function"){this._o.onOpen.call(this)}}},hide:function(){var e=this._v;if(e!==false){if(this._o.bound){a(r,"click",this._onClick)}this.el.style.position="static";this.el.style.left="auto";this.el.style.top="auto";u(this.el,"is-hidden");this._v=false;if(e!==undefined&&typeof this._o.onClose==="function"){this._o.onClose.call(this)}}},destroy:function(){var e=this._o;this.hide();a(this.el,"mousedown",this._onMouseDown,true);a(this.el,"touchend",this._onMouseDown,true);a(this.el,"change",this._onChange);if(e.keyboardInput){a(r,"keydown",this._onKeyChange)}if(e.field){a(e.field,"change",this._onInputChange);if(e.bound){a(e.trigger,"click",this._onInputClick);a(e.trigger,"focus",this._onInputFocus);a(e.trigger,"blur",this._onInputBlur)}}if(this.el.parentNode){this.el.parentNode.removeChild(this.el)}}};return D})},57730:function(e,t,n){"use strict";var r=n(12017);function o(){}function i(){}i.resetWarningCache=o;e.exports=function(){function e(e,t,n,o,i,a){if(a===r){return}var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. "+"Use PropTypes.checkPropTypes() to call them. "+"Read more at http://fb.me/use-check-prop-types");s.name="Invariant Violation";throw s};e.isRequired=e;function t(){return e};var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};n.PropTypes=n;return n}},97641:function(e,t,n){if(false){var r,o}else{e.exports=n(57730)()}},12017:function(e){"use strict";var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=t},33936:function(e,t,n){"use strict";/**
30
- * @license React
31
- * react-dom.production.min.js
32
- *
33
- * Copyright (c) Facebook, Inc. and its affiliates.
34
- *
35
- * This source code is licensed under the MIT license found in the
36
- * LICENSE file in the root directory of this source tree.
37
- */var r=n(66204),o=n(46489);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(e,t){u(e,t);u(e+"Capture",t)}function u(e,t){s[e]=t;for(e=0;e<t.length;e++)a.add(t[e])}var c=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),f=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},g={};function v(e){if(f.call(g,e))return!0;if(f.call(p,e))return!1;if(h.test(e))return g[e]=!0;p[e]=!0;return!1}function m(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":if(r)return!1;if(null!==n)return!n.acceptsBooleans;e=e.toLowerCase().slice(0,5);return"data-"!==e&&"aria-"!==e;default:return!1}}function y(e,t,n,r){if(null===t||"undefined"===typeof t||m(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function w(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t;this.attributeName=r;this.attributeNamespace=o;this.mustUseProperty=n;this.propertyName=e;this.type=t;this.sanitizeURL=i;this.removeEmptyString=a}var x={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){x[e]=new w(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];x[t]=new w(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){x[e]=new w(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){x[e]=new w(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){x[e]=new w(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){x[e]=new w(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){x[e]=new w(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){x[e]=new w(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){x[e]=new w(e,5,!1,e.toLowerCase(),null,!1,!1)});var b=/[\-:]([a-z])/g;function S(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(b,S);x[t]=new w(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(b,S);x[t]=new w(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(b,S);x[t]=new w(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){x[e]=new w(e,1,!1,e.toLowerCase(),null,!1,!1)});x.xlinkHref=new w("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){x[e]=new w(e,1,!1,e.toLowerCase(),null,!0,!0)});function k(e,t,n,r){var o=x.hasOwnProperty(t)?x[t]:null;if(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])y(t,n,o,r)&&(n=null),r||null===o?v(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3===o.type?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(o=o.type,n=3===o||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n)))}var j=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,C=Symbol.for("react.element"),T=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),M=Symbol.for("react.provider"),D=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),Z=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var z=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.cache");Symbol.for("react.tracing_marker");var N=Symbol.iterator;function L(e){if(null===e||"object"!==typeof e)return null;e=N&&e[N]||e["@@iterator"];return"function"===typeof e?e:null}var B=Object.assign,H;function F(e){if(void 0===H)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);H=t&&t[1]||""}return"\n"+H+e}var V=!1;function W(e,t){if(!e||V)return"";V=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"===typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s){do if(a--,s--,0>s||o[a]!==i[s]){var l="\n"+o[a].replace(" at new "," at ");e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName));return l}while(1<=a&&0<=s)}break}}}finally{V=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function U(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=W(e.type,!1),e;case 11:return e=W(e.type.render,!1),e;case 1:return e=W(e.type,!0),e;default:return""}}function K(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case E:return"Fragment";case T:return"Portal";case I:return"Profiler";case _:return"StrictMode";case O:return"Suspense";case A:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case D:return(e.displayName||"Context")+".Consumer";case M:return(e._context.displayName||"Context")+".Provider";case P:var t=e.render;e=e.displayName;e||(e=t.displayName||t.name||"",e=""!==e?"ForwardRef("+e+")":"ForwardRef");return e;case R:return t=e.displayName||null,null!==t?t:K(e.type)||"Memo";case Z:t=e._payload;e=e._init;try{return K(e(t))}catch(e){}}return null}function $(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return K(t);case 8:return t===_?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function q(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Y(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function G(e){var t=Y(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var o=n.get,i=n.set;Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e;i.call(this,e)}});Object.defineProperty(e,t,{enumerable:n.enumerable});return{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null;delete e[t]}}}}function X(e){e._valueTracker||(e._valueTracker=G(e))}function Q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue();var r="";e&&(r=Y(e)?e.checked?"true":"false":e.value);e=r;return e!==n?(t.setValue(e),!0):!1}function J(e){e=e||("undefined"!==typeof document?document:void 0);if("undefined"===typeof e)return null;try{return e.activeElement||e.body}catch(t){return e.body}}function ee(e,t){var n=t.checked;return B({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function et(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=q(null!=t.value?t.value:n);e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function en(e,t){t=t.checked;null!=t&&k(e,"checked",t,!1)}function er(e,t){en(e,t);var n=q(t.value),r=t.type;if(null!=n)if("number"===r){if(0===n&&""===e.value||e.value!=n)e.value=""+n}else e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r){e.removeAttribute("value");return}t.hasOwnProperty("value")?ei(e,t.type,n):t.hasOwnProperty("defaultValue")&&ei(e,t.type,q(t.defaultValue));null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function eo(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue;n||t===e.value||(e.value=t);e.defaultValue=t}n=e.name;""!==n&&(e.name="");e.defaultChecked=!!e._wrapperState.initialChecked;""!==n&&(e.name=n)}function ei(e,t,n){if("number"!==t||J(e.ownerDocument)!==e)null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n)}var ea=Array.isArray;function es(e,t,n,r){e=e.options;if(t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{n=""+q(n);t=null;for(o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0;r&&(e[o].defaultSelected=!0);return}null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function el(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return B({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function eu(e,t){var n=t.value;if(null==n){n=t.children;t=t.defaultValue;if(null!=n){if(null!=t)throw Error(i(92));if(ea(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t="");n=t}e._wrapperState={initialValue:q(n)}}function ec(e,t){var n=q(t.value),r=q(t.defaultValue);null!=n&&(n=""+n,n!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n));null!=r&&(e.defaultValue=""+r)}function ed(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ef(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function eh(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ef(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ep,eg=function(e){return"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{ep=ep||document.createElement("div");ep.innerHTML="<svg>"+t.valueOf().toString()+"</svg>";for(t=ep.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ev(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType){n.nodeValue=t;return}}e.textContent=t}var em={animationIterationCount:!0,aspectRatio:!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,gridArea:!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},ey=["Webkit","ms","Moz","O"];Object.keys(em).forEach(function(e){ey.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1);em[t]=em[e]})});function ew(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||em.hasOwnProperty(e)&&em[e]?(""+t).trim():t+"px"}function ex(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=ew(n,t[n],r);"float"===n&&(n="cssFloat");r?e.setProperty(n,o):e[n]=o}}var eb=B({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function eS(e,t){if(t){if(eb[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(i(62))}}function ek(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ej=null;function eC(e){e=e.target||e.srcElement||window;e.correspondingUseElement&&(e=e.correspondingUseElement);return 3===e.nodeType?e.parentNode:e}var eT=null,eE=null,e_=null;function eI(e){if(e=oo(e)){if("function"!==typeof eT)throw Error(i(280));var t=e.stateNode;t&&(t=oa(t),eT(e.stateNode,e.type,t))}}function eM(e){eE?e_?e_.push(e):e_=[e]:eE=e}function eD(){if(eE){var e=eE,t=e_;e_=eE=null;eI(e);if(t)for(e=0;e<t.length;e++)eI(t[e])}}function eP(e,t){return e(t)}function eO(){}var eA=!1;function eR(e,t,n){if(eA)return e(t,n);eA=!0;try{return eP(e,t,n)}finally{if(eA=!1,null!==eE||null!==e_)eO(),eD()}}function eZ(e,t){var n=e.stateNode;if(null===n)return null;var r=oa(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!("button"===e||"input"===e||"select"===e||"textarea"===e));e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(i(231,t,typeof n));return n}var ez=!1;if(c)try{var eN={};Object.defineProperty(eN,"passive",{get:function(){ez=!0}});window.addEventListener("test",eN,eN);window.removeEventListener("test",eN,eN)}catch(e){ez=!1}function eL(e,t,n,r,o,i,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var eB=!1,eH=null,eF=!1,eV=null,eW={onError:function(e){eB=!0;eH=e}};function eU(e,t,n,r,o,i,a,s,l){eB=!1;eH=null;eL.apply(eW,arguments)}function eK(e,t,n,r,o,a,s,l,u){eU.apply(this,arguments);if(eB){if(eB){var c=eH;eB=!1;eH=null}else throw Error(i(198));eF||(eF=!0,eV=c)}}function e$(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,0!==(t.flags&4098)&&(n=t.return),e=t.return;while(e)}return 3===t.tag?n:null}function eq(e){if(13===e.tag){var t=e.memoizedState;null===t&&(e=e.alternate,null!==e&&(t=e.memoizedState));if(null!==t)return t.dehydrated}return null}function eY(e){if(e$(e)!==e)throw Error(i(188))}function eG(e){var t=e.alternate;if(!t){t=e$(e);if(null===t)throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){r=o.return;if(null!==r){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return eY(o),e;if(a===r)return eY(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0;n=o;r=a;break}if(l===r){s=!0;r=o;n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0;n=a;r=o;break}if(l===r){s=!0;r=a;n=o;break}l=l.sibling}if(!s)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}function eX(e){e=eG(e);return null!==e?eQ(e):null}function eQ(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=eQ(e);if(null!==t)return t;e=e.sibling}return null}var eJ=o.unstable_scheduleCallback,e0=o.unstable_cancelCallback,e1=o.unstable_shouldYield,e2=o.unstable_requestPaint,e4=o.unstable_now,e5=o.unstable_getCurrentPriorityLevel,e3=o.unstable_ImmediatePriority,e8=o.unstable_UserBlockingPriority,e6=o.unstable_NormalPriority,e7=o.unstable_LowPriority,e9=o.unstable_IdlePriority,te=null,tt=null;function tn(e){if(tt&&"function"===typeof tt.onCommitFiberRoot)try{tt.onCommitFiberRoot(te,e,void 0,128===(e.current.flags&128))}catch(e){}}var tr=Math.clz32?Math.clz32:ta,to=Math.log,ti=Math.LN2;function ta(e){e>>>=0;return 0===e?32:31-(to(e)/ti|0)|0}var ts=64,tl=4194304;function tu(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function tc(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(0!==a){var s=a&~o;0!==s?r=tu(s):(i&=a,0!==i&&(r=tu(i)))}else a=n&~o,0!==a?r=tu(a):0!==i&&(r=tu(i));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&(o=r&-r,i=t&-t,o>=i||16===o&&0!==(i&4194240)))return t;0!==(r&4)&&(r|=n&16);t=e.entangledLanes;if(0!==t)for(e=e.entanglements,t&=r;0<t;)n=31-tr(t),o=1<<n,r|=e[n],t&=~o;return r}function td(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function tf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-tr(i),s=1<<a,l=o[a];if(-1===l){if(0===(s&n)||0!==(s&r))o[a]=td(s,t)}else l<=t&&(e.expiredLanes|=s);i&=~s}}function th(e){e=e.pendingLanes&-1073741825;return 0!==e?e:e&1073741824?1073741824:0}function tp(){var e=ts;ts<<=1;0===(ts&4194240)&&(ts=64);return e}function tg(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function tv(e,t,n){e.pendingLanes|=t;536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0);e=e.eventTimes;t=31-tr(t);e[t]=n}function tm(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t;e.suspendedLanes=0;e.pingedLanes=0;e.expiredLanes&=t;e.mutableReadLanes&=t;e.entangledLanes&=t;t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-tr(n),i=1<<o;t[o]=0;r[o]=-1;e[o]=-1;n&=~i}}function ty(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-tr(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t);n&=~o}}var tw=0;function tx(e){e&=-e;return 1<e?4<e?0!==(e&268435455)?16:536870912:4:1}var tb,tS,tk,tj,tC,tT=!1,tE=[],t_=null,tI=null,tM=null,tD=new Map,tP=new Map,tO=[],tA="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function tR(e,t){switch(e){case"focusin":case"focusout":t_=null;break;case"dragenter":case"dragleave":tI=null;break;case"mouseover":case"mouseout":tM=null;break;case"pointerover":case"pointerout":tD.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":tP.delete(t.pointerId)}}function tZ(e,t,n,r,o,i){if(null===e||e.nativeEvent!==i)return e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(t=oo(t),null!==t&&tS(t)),e;e.eventSystemFlags|=r;t=e.targetContainers;null!==o&&-1===t.indexOf(o)&&t.push(o);return e}function tz(e,t,n,r,o){switch(t){case"focusin":return t_=tZ(t_,e,t,n,r,o),!0;case"dragenter":return tI=tZ(tI,e,t,n,r,o),!0;case"mouseover":return tM=tZ(tM,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;tD.set(i,tZ(tD.get(i)||null,e,t,n,r,o));return!0;case"gotpointercapture":return i=o.pointerId,tP.set(i,tZ(tP.get(i)||null,e,t,n,r,o)),!0}return!1}function tN(e){var t=on(e.target);if(null!==t){var n=e$(t);if(null!==n){if(t=n.tag,13===t){if(t=eq(n),null!==t){e.blockedOn=t;tC(e.priority,function(){tk(n)});return}}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=3===n.tag?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function tL(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=tG(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null===n){n=e.nativeEvent;var r=new n.constructor(n.type,n);ej=r;n.target.dispatchEvent(r);ej=null}else return t=oo(n),null!==t&&tS(t),e.blockedOn=n,!1;t.shift()}return!0}function tB(e,t,n){tL(e)&&n.delete(t)}function tH(){tT=!1;null!==t_&&tL(t_)&&(t_=null);null!==tI&&tL(tI)&&(tI=null);null!==tM&&tL(tM)&&(tM=null);tD.forEach(tB);tP.forEach(tB)}function tF(e,t){e.blockedOn===t&&(e.blockedOn=null,tT||(tT=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,tH)))}function tV(e){function t(t){return tF(t,e)}if(0<tE.length){tF(tE[0],e);for(var n=1;n<tE.length;n++){var r=tE[n];r.blockedOn===e&&(r.blockedOn=null)}}null!==t_&&tF(t_,e);null!==tI&&tF(tI,e);null!==tM&&tF(tM,e);tD.forEach(t);tP.forEach(t);for(n=0;n<tO.length;n++)r=tO[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<tO.length&&(n=tO[0],null===n.blockedOn);)tN(n),null===n.blockedOn&&tO.shift()}var tW=j.ReactCurrentBatchConfig,tU=!0;function tK(e,t,n,r){var o=tw,i=tW.transition;tW.transition=null;try{tw=1,tq(e,t,n,r)}finally{tw=o,tW.transition=i}}function t$(e,t,n,r){var o=tw,i=tW.transition;tW.transition=null;try{tw=4,tq(e,t,n,r)}finally{tw=o,tW.transition=i}}function tq(e,t,n,r){if(tU){var o=tG(e,t,n,r);if(null===o)rN(e,t,r,tY,n),tR(e,r);else if(tz(o,e,t,n,r))r.stopPropagation();else if(tR(e,r),t&4&&-1<tA.indexOf(e)){for(;null!==o;){var i=oo(o);null!==i&&tb(i);i=tG(e,t,n,r);null===i&&rN(e,t,r,tY,n);if(i===o)break;o=i}null!==o&&r.stopPropagation()}else rN(e,t,r,null,n)}}var tY=null;function tG(e,t,n,r){tY=null;e=eC(r);e=on(e);if(null!==e)if(t=e$(e),null===t)e=null;else if(n=t.tag,13===n){e=eq(t);if(null!==e)return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);tY=e;return null}function tX(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(e5()){case e3:return 1;case e8:return 4;case e6:case e7:return 16;case e9:return 536870912;default:return 16}default:return 16}}var tQ=null,tJ=null,t0=null;function t1(){if(t0)return t0;var e,t=tJ,n=t.length,r,o="value"in tQ?tQ.value:tQ.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===o[i-r];r++);return t0=o.slice(e,1<r?1-r:void 0)}function t2(e){var t=e.keyCode;"charCode"in e?(e=e.charCode,0===e&&13===t&&(e=13)):e=t;10===e&&(e=13);return 32<=e||13===e?e:0}function t4(){return!0}function t5(){return!1}function t3(e){function t(t,n,r,o,i){this._reactName=t;this._targetInst=r;this.type=n;this.nativeEvent=o;this.target=i;this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?t4:t5;this.isPropagationStopped=t5;return this}B(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=t4)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=t4)},persist:function(){},isPersistent:t4});return t}var t8={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},t6=t3(t8),t7=B({},t8,{view:0,detail:0}),t9=t3(t7),ne,nt,nn,no=B({},t7,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:nx,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){if("movementX"in e)return e.movementX;e!==nn&&(nn&&"mousemove"===e.type?(ne=e.screenX-nn.screenX,nt=e.screenY-nn.screenY):nt=ne=0,nn=e);return ne},movementY:function(e){return"movementY"in e?e.movementY:nt}}),ni=t3(no),na=B({},no,{dataTransfer:0}),ns=t3(na),nl=B({},t7,{relatedTarget:0}),nu=t3(nl),nc=B({},t8,{animationName:0,elapsedTime:0,pseudoElement:0}),nd=t3(nc),nf=B({},t8,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),nh=t3(nf),np=B({},t8,{data:0}),ng=t3(np),nv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},nm={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ny={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function nw(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ny[e])?!!t[e]:!1}function nx(){return nw}var nb=B({},t7,{key:function(e){if(e.key){var t=nv[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?(e=t2(e),13===e?"Enter":String.fromCharCode(e)):"keydown"===e.type||"keyup"===e.type?nm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:nx,charCode:function(e){return"keypress"===e.type?t2(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?t2(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),nS=t3(nb),nk=B({},no,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),nj=t3(nk),nC=B({},t7,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:nx}),nT=t3(nC),nE=B({},t8,{propertyName:0,elapsedTime:0,pseudoElement:0}),n_=t3(nE),nI=B({},no,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),nM=t3(nI),nD=[9,13,27,32],nP=c&&"CompositionEvent"in window,nO=null;c&&"documentMode"in document&&(nO=document.documentMode);var nA=c&&"TextEvent"in window&&!nO,nR=c&&(!nP||nO&&8<nO&&11>=nO),nZ=String.fromCharCode(32),nz=!1;function nN(e,t){switch(e){case"keyup":return-1!==nD.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function nL(e){e=e.detail;return"object"===typeof e&&"data"in e?e.data:null}var nB=!1;function nH(e,t){switch(e){case"compositionend":return nL(t);case"keypress":if(32!==t.which)return null;nz=!0;return nZ;case"textInput":return e=t.data,e===nZ&&nz?null:e;default:return null}}function nF(e,t){if(nB)return"compositionend"===e||!nP&&nN(e,t)?(e=t1(),t0=tJ=tQ=null,nB=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return nR&&"ko"!==t.locale?null:t.data;default:return null}}var nV={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function nW(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!nV[e.type]:"textarea"===t?!0:!1}function nU(e,t,n,r){eM(r);t=rB(t,"onChange");0<t.length&&(n=new t6("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var nK=null,n$=null;function nq(e){rP(e,0)}function nY(e){var t=oi(e);if(Q(t))return e}function nG(e,t){if("change"===e)return t}var nX=!1;if(c){var nQ;if(c){var nJ="oninput"in document;if(!nJ){var n0=document.createElement("div");n0.setAttribute("oninput","return;");nJ="function"===typeof n0.oninput}nQ=nJ}else nQ=!1;nX=nQ&&(!document.documentMode||9<document.documentMode)}function n1(){nK&&(nK.detachEvent("onpropertychange",n2),n$=nK=null)}function n2(e){if("value"===e.propertyName&&nY(n$)){var t=[];nU(t,n$,e,eC(e));eR(nq,t)}}function n4(e,t,n){"focusin"===e?(n1(),nK=t,n$=n,nK.attachEvent("onpropertychange",n2)):"focusout"===e&&n1()}function n5(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return nY(n$)}function n3(e,t){if("click"===e)return nY(t)}function n8(e,t){if("input"===e||"change"===e)return nY(t)}function n6(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t}var n7="function"===typeof Object.is?Object.is:n6;function n9(e,t){if(n7(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!f.call(t,o)||!n7(e[o],t[o]))return!1}return!0}function re(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function rt(e,t){var n=re(e);e=0;for(var r;n;){if(3===n.nodeType){r=e+n.textContent.length;if(e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=re(n)}}function rn(e,t){return e&&t?e===t?!0:e&&3===e.nodeType?!1:t&&3===t.nodeType?rn(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ro(){for(var e=window,t=J();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(e){n=!1}if(n)e=t.contentWindow;else break;t=J(e.document)}return t}function ri(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function ra(e){var t=ro(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&rn(n.ownerDocument.documentElement,n)){if(null!==r&&ri(n)){if(t=r.start,e=r.end,void 0===e&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o);!e.extend&&i>r&&(o=r,r=i,i=o);o=rt(n,i);var a=rt(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}t=[];for(e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});"function"===typeof n.focus&&n.focus();for(n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var rs=c&&"documentMode"in document&&11>=document.documentMode,rl=null,ru=null,rc=null,rd=!1;function rf(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;rd||null==rl||rl!==J(r)||(r=rl,"selectionStart"in r&&ri(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),rc&&n9(rc,r)||(rc=r,r=rB(ru,"onSelect"),0<r.length&&(t=new t6("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=rl)))}function rh(e,t){var n={};n[e.toLowerCase()]=t.toLowerCase();n["Webkit"+e]="webkit"+t;n["Moz"+e]="moz"+t;return n}var rp={animationend:rh("Animation","AnimationEnd"),animationiteration:rh("Animation","AnimationIteration"),animationstart:rh("Animation","AnimationStart"),transitionend:rh("Transition","TransitionEnd")},rg={},rv={};c&&(rv=document.createElement("div").style,"AnimationEvent"in window||(delete rp.animationend.animation,delete rp.animationiteration.animation,delete rp.animationstart.animation),"TransitionEvent"in window||delete rp.transitionend.transition);function rm(e){if(rg[e])return rg[e];if(!rp[e])return e;var t=rp[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in rv)return rg[e]=t[n];return e}var ry=rm("animationend"),rw=rm("animationiteration"),rx=rm("animationstart"),rb=rm("transitionend"),rS=new Map,rk="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function rj(e,t){rS.set(e,t);l(t,[e])}for(var rC=0;rC<rk.length;rC++){var rT=rk[rC],rE=rT.toLowerCase(),r_=rT[0].toUpperCase()+rT.slice(1);rj(rE,"on"+r_)}rj(ry,"onAnimationEnd");rj(rw,"onAnimationIteration");rj(rx,"onAnimationStart");rj("dblclick","onDoubleClick");rj("focusin","onFocus");rj("focusout","onBlur");rj(rb,"onTransitionEnd");u("onMouseEnter",["mouseout","mouseover"]);u("onMouseLeave",["mouseout","mouseover"]);u("onPointerEnter",["pointerout","pointerover"]);u("onPointerLeave",["pointerout","pointerover"]);l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));l("onBeforeInput",["compositionend","keypress","textInput","paste"]);l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var rI="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),rM=new Set("cancel close invalid load scroll toggle".split(" ").concat(rI));function rD(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n;eK(r,t,void 0,e);e.currentTarget=null}function rP(e,t){t=0!==(t&4);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;s=s.listener;if(l!==i&&o.isPropagationStopped())break e;rD(o,s,u);i=l}else for(a=0;a<r.length;a++){s=r[a];l=s.instance;u=s.currentTarget;s=s.listener;if(l!==i&&o.isPropagationStopped())break e;rD(o,s,u);i=l}}}if(eF)throw e=eV,eF=!1,eV=null,e}function rO(e,t){var n=t[r9];void 0===n&&(n=t[r9]=new Set);var r=e+"__bubble";n.has(r)||(rz(t,e,2,!1),n.add(r))}function rA(e,t,n){var r=0;t&&(r|=4);rz(n,e,r,t)}var rR="_reactListening"+Math.random().toString(36).slice(2);function rZ(e){if(!e[rR]){e[rR]=!0;a.forEach(function(t){"selectionchange"!==t&&(rM.has(t)||rA(t,!1,e),rA(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[rR]||(t[rR]=!0,rA("selectionchange",!1,t))}}function rz(e,t,n,r){switch(tX(t)){case 1:var o=tK;break;case 4:o=t$;break;default:o=tq}n=o.bind(null,t,n,e);o=void 0;!ez||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0);r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function rN(e,t,n,r,o){var i=r;if(0===(t&1)&&0===(t&2)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if(3===l||4===l){if(l=a.stateNode.containerInfo,l===o||8===l.nodeType&&l.parentNode===o)return}a=a.return}for(;null!==s;){a=on(s);if(null===a)return;l=a.tag;if(5===l||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}eR(function(){var r=i,o=eC(n),a=[];e:{var s=rS.get(e);if(void 0!==s){var l=t6,u=e;switch(e){case"keypress":if(0===t2(n))break e;case"keydown":case"keyup":l=nS;break;case"focusin":u="focus";l=nu;break;case"focusout":u="blur";l=nu;break;case"beforeblur":case"afterblur":l=nu;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=ni;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=ns;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=nT;break;case ry:case rw:case rx:l=nd;break;case rb:l=n_;break;case"scroll":l=t9;break;case"wheel":l=nM;break;case"copy":case"cut":case"paste":l=nh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=nj}var c=0!==(t&4),f=!c&&"scroll"===e,h=c?null!==s?s+"Capture":null:s;c=[];for(var p=r,g;null!==p;){g=p;var v=g.stateNode;5===g.tag&&null!==v&&(g=v,null!==h&&(v=eZ(p,h),null!=v&&c.push(rL(p,v,g))));if(f)break;p=p.return}0<c.length&&(s=new l(s,u,null,n,o),a.push({event:s,listeners:c}))}}if(0===(t&7)){e:{s="mouseover"===e||"pointerover"===e;l="mouseout"===e||"pointerout"===e;if(s&&n!==ej&&(u=n.relatedTarget||n.fromElement)&&(on(u)||u[r7]))break e;if(l||s){s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window;if(l){if(u=n.relatedTarget||n.toElement,l=r,u=u?on(u):null,null!==u&&(f=e$(u),u!==f||5!==u.tag&&6!==u.tag))u=null}else l=null,u=r;if(l!==u){c=ni;v="onMouseLeave";h="onMouseEnter";p="mouse";if("pointerout"===e||"pointerover"===e)c=nj,v="onPointerLeave",h="onPointerEnter",p="pointer";f=null==l?s:oi(l);g=null==u?s:oi(u);s=new c(v,p+"leave",l,n,o);s.target=f;s.relatedTarget=g;v=null;on(o)===r&&(c=new c(h,p+"enter",u,n,o),c.target=g,c.relatedTarget=f,v=c);f=v;if(l&&u)t:{c=l;h=u;p=0;for(g=c;g;g=rH(g))p++;g=0;for(v=h;v;v=rH(v))g++;for(;0<p-g;)c=rH(c),p--;for(;0<g-p;)h=rH(h),g--;for(;p--;){if(c===h||null!==h&&c===h.alternate)break t;c=rH(c);h=rH(h)}c=null}else c=null;null!==l&&rF(a,s,l,c,!1);null!==u&&null!==f&&rF(a,f,u,c,!0)}}}e:{s=r?oi(r):window;l=s.nodeName&&s.nodeName.toLowerCase();if("select"===l||"input"===l&&"file"===s.type)var m=nG;else if(nW(s))if(nX)m=n8;else{m=n5;var y=n4}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(m=n3);if(m&&(m=m(e,r))){nU(a,m,n,o);break e}y&&y(e,s,r);"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&ei(s,"number",s.value)}y=r?oi(r):window;switch(e){case"focusin":if(nW(y)||"true"===y.contentEditable)rl=y,ru=r,rc=null;break;case"focusout":rc=ru=rl=null;break;case"mousedown":rd=!0;break;case"contextmenu":case"mouseup":case"dragend":rd=!1;rf(a,n,o);break;case"selectionchange":if(rs)break;case"keydown":case"keyup":rf(a,n,o)}var w;if(nP)t:{switch(e){case"compositionstart":var x="onCompositionStart";break t;case"compositionend":x="onCompositionEnd";break t;case"compositionupdate":x="onCompositionUpdate";break t}x=void 0}else nB?nN(e,n)&&(x="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(x="onCompositionStart");x&&(nR&&"ko"!==n.locale&&(nB||"onCompositionStart"!==x?"onCompositionEnd"===x&&nB&&(w=t1()):(tQ=o,tJ="value"in tQ?tQ.value:tQ.textContent,nB=!0)),y=rB(r,x),0<y.length&&(x=new ng(x,e,null,n,o),a.push({event:x,listeners:y}),w?x.data=w:(w=nL(n),null!==w&&(x.data=w))));if(w=nA?nH(e,n):nF(e,n))r=rB(r,"onBeforeInput"),0<r.length&&(o=new ng("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=w)}rP(a,t)})}function rL(e,t,n){return{instance:e,listener:t,currentTarget:n}}function rB(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,i=eZ(e,n),null!=i&&r.unshift(rL(e,i,o)),i=eZ(e,t),null!=i&&r.push(rL(e,i,o)));e=e.return}return r}function rH(e){if(null===e)return null;do e=e.return;while(e&&5!==e.tag);return e?e:null}function rF(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,o?(l=eZ(n,i),null!=l&&a.unshift(rL(n,l,s))):o||(l=eZ(n,i),null!=l&&a.push(rL(n,l,s))));n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var rV=/\r\n?/g,rW=/\u0000|\uFFFD/g;function rU(e){return("string"===typeof e?e:""+e).replace(rV,"\n").replace(rW,"")}function rK(e,t,n){t=rU(t);if(rU(e)!==t&&n)throw Error(i(425))}function r$(){}var rq=null,rY=null;function rG(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var rX="function"===typeof setTimeout?setTimeout:void 0,rQ="function"===typeof clearTimeout?clearTimeout:void 0,rJ="function"===typeof Promise?Promise:void 0,r0="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof rJ?function(e){return rJ.resolve(null).then(e).catch(r1)}:rX;function r1(e){setTimeout(function(){throw e})}function r2(e,t){var n=t,r=0;do{var o=n.nextSibling;e.removeChild(n);if(o&&8===o.nodeType)if(n=o.data,"/$"===n){if(0===r){e.removeChild(o);tV(t);return}r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);tV(t)}function r4(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){t=e.data;if("$"===t||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function r5(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var r3=Math.random().toString(36).slice(2),r8="__reactFiber$"+r3,r6="__reactProps$"+r3,r7="__reactContainer$"+r3,r9="__reactEvents$"+r3,oe="__reactListeners$"+r3,ot="__reactHandles$"+r3;function on(e){var t=e[r8];if(t)return t;for(var n=e.parentNode;n;){if(t=n[r7]||n[r8]){n=t.alternate;if(null!==t.child||null!==n&&null!==n.child)for(e=r5(e);null!==e;){if(n=e[r8])return n;e=r5(e)}return t}e=n;n=e.parentNode}return null}function oo(e){e=e[r8]||e[r7];return!e||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function oi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function oa(e){return e[r6]||null}var os=[],ol=-1;function ou(e){return{current:e}}function oc(e){0>ol||(e.current=os[ol],os[ol]=null,ol--)}function od(e,t){ol++;os[ol]=e.current;e.current=t}var of={},oh=ou(of),op=ou(!1),og=of;function ov(e,t){var n=e.type.contextTypes;if(!n)return of;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o);return o}function om(e){e=e.childContextTypes;return null!==e&&void 0!==e}function oy(){oc(op);oc(oh)}function ow(e,t,n){if(oh.current!==of)throw Error(i(168));od(oh,t);od(op,n)}function ox(e,t,n){var r=e.stateNode;t=t.childContextTypes;if("function"!==typeof r.getChildContext)return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(i(108,$(e)||"Unknown",o));return B({},n,r)}function ob(e){e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||of;og=oh.current;od(oh,e);od(op,op.current);return!0}function oS(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=ox(e,t,og),r.__reactInternalMemoizedMergedChildContext=e,oc(op),oc(oh),od(oh,e)):oc(op);od(op,n)}var ok=null,oj=!1,oC=!1;function oT(e){null===ok?ok=[e]:ok.push(e)}function oE(e){oj=!0;oT(e)}function o_(){if(!oC&&null!==ok){oC=!0;var e=0,t=tw;try{var n=ok;for(tw=1;e<n.length;e++){var r=n[e];do r=r(!0);while(null!==r)}ok=null;oj=!1}catch(t){throw null!==ok&&(ok=ok.slice(e+1)),eJ(e3,o_),t}finally{tw=t,oC=!1}}return null}var oI=[],oM=0,oD=null,oP=0,oO=[],oA=0,oR=null,oZ=1,oz="";function oN(e,t){oI[oM++]=oP;oI[oM++]=oD;oD=e;oP=t}function oL(e,t,n){oO[oA++]=oZ;oO[oA++]=oz;oO[oA++]=oR;oR=e;var r=oZ;e=oz;var o=32-tr(r)-1;r&=~(1<<o);n+=1;var i=32-tr(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32);r>>=a;o-=a;oZ=1<<32-tr(t)+o|n<<o|r;oz=i+e}else oZ=1<<i|n<<o|r,oz=e}function oB(e){null!==e.return&&(oN(e,1),oL(e,1,0))}function oH(e){for(;e===oD;)oD=oI[--oM],oI[oM]=null,oP=oI[--oM],oI[oM]=null;for(;e===oR;)oR=oO[--oA],oO[oA]=null,oz=oO[--oA],oO[oA]=null,oZ=oO[--oA],oO[oA]=null}var oF=null,oV=null,oW=!1,oU=null;function oK(e,t){var n=lV(5,null,null,0);n.elementType="DELETED";n.stateNode=t;n.return=e;t=e.deletions;null===t?(e.deletions=[n],e.flags|=16):t.push(n)}function o$(e,t){switch(e.tag){case 5:var n=e.type;t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t;return null!==t?(e.stateNode=t,oF=e,oV=r4(t.firstChild),!0):!1;case 6:return t=""===e.pendingProps||3!==t.nodeType?null:t,null!==t?(e.stateNode=t,oF=e,oV=null,!0):!1;case 13:return t=8!==t.nodeType?null:t,null!==t?(n=null!==oR?{id:oZ,overflow:oz}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=lV(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,oF=e,oV=null,!0):!1;default:return!1}}function oq(e){return 0!==(e.mode&1)&&0===(e.flags&128)}function oY(e){if(oW){var t=oV;if(t){var n=t;if(!o$(e,t)){if(oq(e))throw Error(i(418));t=r4(n.nextSibling);var r=oF;t&&o$(e,t)?oK(r,n):(e.flags=e.flags&-4097|2,oW=!1,oF=e)}}else{if(oq(e))throw Error(i(418));e.flags=e.flags&-4097|2;oW=!1;oF=e}}}function oG(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;oF=e}function oX(e){if(e!==oF)return!1;if(!oW)return oG(e),oW=!0,!1;var t;(t=3!==e.tag)&&!(t=5!==e.tag)&&(t=e.type,t="head"!==t&&"body"!==t&&!rG(e.type,e.memoizedProps));if(t&&(t=oV)){if(oq(e))throw oQ(),Error(i(418));for(;t;)oK(e,t),t=r4(t.nextSibling)}oG(e);if(13===e.tag){e=e.memoizedState;e=null!==e?e.dehydrated:null;if(!e)throw Error(i(317));e:{e=e.nextSibling;for(t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oV=r4(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oV=null}}else oV=oF?r4(e.stateNode.nextSibling):null;return!0}function oQ(){for(var e=oV;e;)e=r4(e.nextSibling)}function oJ(){oV=oF=null;oW=!1}function o0(e){null===oU?oU=[e]:oU.push(e)}var o1=j.ReactCurrentBatchConfig;function o2(e,t){if(e&&e.defaultProps){t=B({},t);e=e.defaultProps;for(var n in e)void 0===t[n]&&(t[n]=e[n]);return t}return t}var o4=ou(null),o5=null,o3=null,o8=null;function o6(){o8=o3=o5=null}function o7(e){var t=o4.current;oc(o4);e._currentValue=t}function o9(e,t,n){for(;null!==e;){var r=e.alternate;(e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t);if(e===n)break;e=e.return}}function ie(e,t){o5=e;o8=o3=null;e=e.dependencies;null!==e&&null!==e.firstContext&&(0!==(e.lanes&t)&&(aW=!0),e.firstContext=null)}function it(e){var t=e._currentValue;if(o8!==e)if(e={context:e,memoizedValue:t,next:null},null===o3){if(null===o5)throw Error(i(308));o3=e;o5.dependencies={lanes:0,firstContext:e}}else o3=o3.next=e;return t}var io=null;function ii(e){null===io?io=[e]:io.push(e)}function ia(e,t,n,r){var o=t.interleaved;null===o?(n.next=n,ii(t)):(n.next=o.next,o.next=n);t.interleaved=n;return is(e,r)}function is(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t);n=e;for(e=e.return;null!==e;)e.childLanes|=t,n=e.alternate,null!==n&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var il=!1;function iu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ic(e,t){e=e.updateQueue;t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function id(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ih(e,t,n){var r=e.updateQueue;if(null===r)return null;r=r.shared;if(0!==(sK&2)){var o=r.pending;null===o?t.next=t:(t.next=o.next,o.next=t);r.pending=t;return is(e,n)}o=r.interleaved;null===o?(t.next=t,ii(r)):(t.next=o.next,o.next=t);r.interleaved=t;return is(e,n)}function ip(e,t,n){t=t.updateQueue;if(null!==t&&(t=t.shared,0!==(n&4194240))){var r=t.lanes;r&=e.pendingLanes;n|=r;t.lanes=n;ty(e,n)}}function ig(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&(r=r.updateQueue,n===r)){var o=null,i=null;n=n.firstBaseUpdate;if(null!==n){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a;n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects};e.updateQueue=n;return}e=n.lastBaseUpdate;null===e?n.firstBaseUpdate=t:e.next=t;n.lastBaseUpdate=t}function iv(e,t,n,r){var o=e.updateQueue;il=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,u=l.next;l.next=null;null===a?i=u:a.next=u;a=l;var c=e.alternate;null!==c&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==i){var f=o.baseState;a=0;c=u=l=null;s=i;do{var h=s.lane,p=s.eventTime;if((r&h)===h){null!==c&&(c=c.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var g=e,v=s;h=t;p=n;switch(v.tag){case 1:g=v.payload;if("function"===typeof g){f=g.call(p,f,h);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:g=v.payload;h="function"===typeof g?g.call(p,f,h):g;if(null===h||void 0===h)break e;f=B({},f,h);break e;case 2:il=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,h=o.effects,null===h?o.effects=[s]:h.push(s))}else p={eventTime:p,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=p,l=f):c=c.next=p,a|=h;s=s.next;if(null===s)if(s=o.shared.pending,null===s)break;else h=s,s=h.next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}while(1);null===c&&(l=f);o.baseState=l;o.firstBaseUpdate=u;o.lastBaseUpdate=c;t=o.shared.interleaved;if(null!==t){o=t;do a|=o.lane,o=o.next;while(o!==t)}else null===i&&(o.shared.lanes=0);s0|=a;e.lanes=a;e.memoizedState=f}}function im(e,t,n){e=t.effects;t.effects=null;if(null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){r.callback=null;r=n;if("function"!==typeof o)throw Error(i(191,o));o.call(r)}}}var iy=(new r.Component).refs;function iw(e,t,n,r){t=e.memoizedState;n=n(r,t);n=null===n||void 0===n?t:B({},t,n);e.memoizedState=n;0===e.lanes&&(e.updateQueue.baseState=n)}var ix={isMounted:function(e){return(e=e._reactInternals)?e$(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=lu(),o=lc(e),i=id(r,o);i.payload=t;void 0!==n&&null!==n&&(i.callback=n);t=ih(e,i,o);null!==t&&(ld(t,e,o,r),ip(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=lu(),o=lc(e),i=id(r,o);i.tag=1;i.payload=t;void 0!==n&&null!==n&&(i.callback=n);t=ih(e,i,o);null!==t&&(ld(t,e,o,r),ip(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=lu(),r=lc(e),o=id(n,r);o.tag=2;void 0!==t&&null!==t&&(o.callback=t);t=ih(e,o,r);null!==t&&(ld(t,e,r,n),ip(t,e,r))}};function ib(e,t,n,r,o,i,a){e=e.stateNode;return"function"===typeof e.shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):t.prototype&&t.prototype.isPureReactComponent?!n9(n,r)||!n9(o,i):!0}function iS(e,t,n){var r=!1,o=of;var i=t.contextType;"object"===typeof i&&null!==i?i=it(i):(o=om(t)?og:oh.current,r=t.contextTypes,i=(r=null!==r&&void 0!==r)?ov(e,o):of);t=new t(n,i);e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null;t.updater=ix;e.stateNode=t;t._reactInternals=e;r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i);return t}function ik(e,t,n,r){e=t.state;"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r);"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r);t.state!==e&&ix.enqueueReplaceState(t,t.state,null)}function ij(e,t,n,r){var o=e.stateNode;o.props=n;o.state=e.memoizedState;o.refs=iy;iu(e);var i=t.contextType;"object"===typeof i&&null!==i?o.context=it(i):(i=om(t)?og:oh.current,o.context=ov(e,i));o.state=e.memoizedState;i=t.getDerivedStateFromProps;"function"===typeof i&&(iw(e,t,i,n),o.state=e.memoizedState);"function"===typeof t.getDerivedStateFromProps||"function"===typeof o.getSnapshotBeforeUpdate||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||(t=o.state,"function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&ix.enqueueReplaceState(o,o.state,null),iv(e,n,o,r),o.state=e.memoizedState);"function"===typeof o.componentDidMount&&(e.flags|=4194308)}function iC(e,t,n){e=n.ref;if(null!==e&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){n=n._owner;if(n){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,a=""+e;if(null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a)return t.ref;t=function(e){var t=o.refs;t===iy&&(t=o.refs={});null===e?delete t[a]:t[a]=e};t._stringRef=a;return t}if("string"!==typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function iT(e,t){e=Object.prototype.toString.call(t);throw Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function iE(e){var t=e._init;return t(e._payload)}function i_(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){e=lK(e,t);e.index=0;e.sibling=null;return e}function a(t,n,r){t.index=r;if(!e)return t.flags|=1048576,n;r=t.alternate;if(null!==r)return r=r.index,r<n?(t.flags|=2,n):r;t.flags|=2;return n}function s(t){e&&null===t.alternate&&(t.flags|=2);return t}function l(e,t,n,r){if(null===t||6!==t.tag)return t=lG(n,e.mode,r),t.return=e,t;t=o(t,n);t.return=e;return t}function u(e,t,n,r){var i=n.type;if(i===E)return f(e,t,n.props.children,r,n.key);if(null!==t&&(t.elementType===i||"object"===typeof i&&null!==i&&i.$$typeof===Z&&iE(i)===t.type))return r=o(t,n.props),r.ref=iC(e,t,n),r.return=e,r;r=l$(n.type,n.key,n.props,null,e.mode,r);r.ref=iC(e,t,n);r.return=e;return r}function c(e,t,n,r){if(null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation)return t=lX(n,e.mode,r),t.return=e,t;t=o(t,n.children||[]);t.return=e;return t}function f(e,t,n,r,i){if(null===t||7!==t.tag)return t=lq(n,e.mode,r,i),t.return=e,t;t=o(t,n);t.return=e;return t}function h(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return t=lG(""+t,e.mode,n),t.return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case C:return n=l$(t.type,t.key,t.props,null,e.mode,n),n.ref=iC(e,null,t),n.return=e,n;case T:return t=lX(t,e.mode,n),t.return=e,t;case Z:var r=t._init;return h(e,r(t._payload),n)}if(ea(t)||L(t))return t=lq(t,e.mode,n,null),t.return=e,t;iT(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==o?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case C:return n.key===o?u(e,t,n,r):null;case T:return n.key===o?c(e,t,n,r):null;case Z:return o=n._init,p(e,t,o(n._payload),r)}if(ea(n)||L(n))return null!==o?null:f(e,t,n,r,null);iT(e,n)}return null}function g(e,t,n,r,o){if("string"===typeof r&&""!==r||"number"===typeof r)return e=e.get(n)||null,l(t,e,""+r,o);if("object"===typeof r&&null!==r){switch(r.$$typeof){case C:return e=e.get(null===r.key?n:r.key)||null,u(t,e,r,o);case T:return e=e.get(null===r.key?n:r.key)||null,c(t,e,r,o);case Z:var i=r._init;return g(e,t,n,i(r._payload),o)}if(ea(r)||L(r))return e=e.get(n)||null,f(t,e,r,o,null);iT(t,r)}return null}function v(o,i,s,l){for(var u=null,c=null,f=i,v=i=0,m=null;null!==f&&v<s.length;v++){f.index>v?(m=f,f=null):m=f.sibling;var y=p(o,f,s[v],l);if(null===y){null===f&&(f=m);break}e&&f&&null===y.alternate&&t(o,f);i=a(y,i,v);null===c?u=y:c.sibling=y;c=y;f=m}if(v===s.length)return n(o,f),oW&&oN(o,v),u;if(null===f){for(;v<s.length;v++)f=h(o,s[v],l),null!==f&&(i=a(f,i,v),null===c?u=f:c.sibling=f,c=f);oW&&oN(o,v);return u}for(f=r(o,f);v<s.length;v++)m=g(f,o,v,s[v],l),null!==m&&(e&&null!==m.alternate&&f.delete(null===m.key?v:m.key),i=a(m,i,v),null===c?u=m:c.sibling=m,c=m);e&&f.forEach(function(e){return t(o,e)});oW&&oN(o,v);return u}function m(o,s,l,u){var c=L(l);if("function"!==typeof c)throw Error(i(150));l=c.call(l);if(null==l)throw Error(i(151));for(var f=c=null,v=s,m=s=0,y=null,w=l.next();null!==v&&!w.done;m++,w=l.next()){v.index>m?(y=v,v=null):y=v.sibling;var x=p(o,v,w.value,u);if(null===x){null===v&&(v=y);break}e&&v&&null===x.alternate&&t(o,v);s=a(x,s,m);null===f?c=x:f.sibling=x;f=x;v=y}if(w.done)return n(o,v),oW&&oN(o,m),c;if(null===v){for(;!w.done;m++,w=l.next())w=h(o,w.value,u),null!==w&&(s=a(w,s,m),null===f?c=w:f.sibling=w,f=w);oW&&oN(o,m);return c}for(v=r(o,v);!w.done;m++,w=l.next())w=g(v,o,m,w.value,u),null!==w&&(e&&null!==w.alternate&&v.delete(null===w.key?m:w.key),s=a(w,s,m),null===f?c=w:f.sibling=w,f=w);e&&v.forEach(function(e){return t(o,e)});oW&&oN(o,m);return c}function y(e,r,i,a){"object"===typeof i&&null!==i&&i.type===E&&null===i.key&&(i=i.props.children);if("object"===typeof i&&null!==i){switch(i.$$typeof){case C:e:{for(var l=i.key,u=r;null!==u;){if(u.key===l){l=i.type;if(l===E){if(7===u.tag){n(e,u.sibling);r=o(u,i.props.children);r.return=e;e=r;break e}}else if(u.elementType===l||"object"===typeof l&&null!==l&&l.$$typeof===Z&&iE(l)===u.type){n(e,u.sibling);r=o(u,i.props);r.ref=iC(e,u,i);r.return=e;e=r;break e}n(e,u);break}else t(e,u);u=u.sibling}i.type===E?(r=lq(i.props.children,e.mode,a,i.key),r.return=e,e=r):(a=l$(i.type,i.key,i.props,null,e.mode,a),a.ref=iC(e,r,i),a.return=e,e=a)}return s(e);case T:e:{for(u=i.key;null!==r;){if(r.key===u)if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling);r=o(r,i.children||[]);r.return=e;e=r;break e}else{n(e,r);break}else t(e,r);r=r.sibling}r=lX(i,e.mode,a);r.return=e;e=r}return s(e);case Z:return u=i._init,y(e,r,u(i._payload),a)}if(ea(i))return v(e,r,i,a);if(L(i))return m(e,r,i,a);iT(e,i)}return"string"===typeof i&&""!==i||"number"===typeof i?(i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),r=o(r,i),r.return=e,e=r):(n(e,r),r=lG(i,e.mode,a),r.return=e,e=r),s(e)):n(e,r)}return y}var iI=i_(!0),iM=i_(!1),iD={},iP=ou(iD),iO=ou(iD),iA=ou(iD);function iR(e){if(e===iD)throw Error(i(174));return e}function iZ(e,t){od(iA,t);od(iO,e);od(iP,iD);e=t.nodeType;switch(e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:eh(null,"");break;default:e=8===e?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=eh(t,e)}oc(iP);od(iP,t)}function iz(){oc(iP);oc(iO);oc(iA)}function iN(e){iR(iA.current);var t=iR(iP.current);var n=eh(t,e.type);t!==n&&(od(iO,e),od(iP,n))}function iL(e){iO.current===e&&(oc(iP),oc(iO))}var iB=ou(0);function iH(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(n=n.dehydrated,null===n||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(t.flags&128))return t}else if(null!==t.child){t.child.return=t;t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return;t=t.sibling}return null}var iF=[];function iV(){for(var e=0;e<iF.length;e++)iF[e]._workInProgressVersionPrimary=null;iF.length=0}var iW=j.ReactCurrentDispatcher,iU=j.ReactCurrentBatchConfig,iK=0,i$=null,iq=null,iY=null,iG=!1,iX=!1,iQ=0,iJ=0;function i0(){throw Error(i(321))}function i1(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!n7(e[n],t[n]))return!1;return!0}function i2(e,t,n,r,o,a){iK=a;i$=t;t.memoizedState=null;t.updateQueue=null;t.lanes=0;iW.current=null===e||null===e.memoizedState?aD:aP;e=n(r,o);if(iX){a=0;do{iX=!1;iQ=0;if(25<=a)throw Error(i(301));a+=1;iY=iq=null;t.updateQueue=null;iW.current=aO;e=n(r,o)}while(iX)}iW.current=aM;t=null!==iq&&null!==iq.next;iK=0;iY=iq=i$=null;iG=!1;if(t)throw Error(i(300));return e}function i4(){var e=0!==iQ;iQ=0;return e}function i5(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};null===iY?i$.memoizedState=iY=e:iY=iY.next=e;return iY}function i3(){if(null===iq){var e=i$.alternate;e=null!==e?e.memoizedState:null}else e=iq.next;var t=null===iY?i$.memoizedState:iY.next;if(null!==t)iY=t,iq=e;else{if(null===e)throw Error(i(310));iq=e;e={memoizedState:iq.memoizedState,baseState:iq.baseState,baseQueue:iq.baseQueue,queue:iq.queue,next:null};null===iY?i$.memoizedState=iY=e:iY=iY.next=e}return iY}function i8(e,t){return"function"===typeof t?t(e):t}function i6(e){var t=i3(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=iq,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var s=o.next;o.next=a.next;a.next=s}r.baseQueue=o=a;n.pending=null}if(null!==o){a=o.next;r=r.baseState;var l=s=null,u=null,c=a;do{var f=c.lane;if((iK&f)===f)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var h={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=h,s=r):u=u.next=h;i$.lanes|=f;s0|=f}c=c.next}while(null!==c&&c!==a);null===u?s=r:u.next=l;n7(r,t.memoizedState)||(aW=!0);t.memoizedState=r;t.baseState=s;t.baseQueue=u;n.lastRenderedState=r}e=n.interleaved;if(null!==e){o=e;do a=o.lane,i$.lanes|=a,s0|=a,o=o.next;while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function i7(e){var t=i3(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do a=e(a,s.action),s=s.next;while(s!==o);n7(a,t.memoizedState)||(aW=!0);t.memoizedState=a;null===t.baseQueue&&(t.baseState=a);n.lastRenderedState=a}return[a,r]}function i9(){}function ae(e,t){var n=i$,r=i3(),o=t(),a=!n7(r.memoizedState,o);a&&(r.memoizedState=o,aW=!0);r=r.queue;ap(ai.bind(null,n,r,e),[e]);if(r.getSnapshot!==t||a||null!==iY&&iY.memoizedState.tag&1){n.flags|=2048;au(9,ao.bind(null,n,r,o,t),void 0,null);if(null===s$)throw Error(i(349));0!==(iK&30)||at(n,t,o)}return o}function at(e,t,n){e.flags|=16384;e={getSnapshot:t,value:n};t=i$.updateQueue;null===t?(t={lastEffect:null,stores:null},i$.updateQueue=t,t.stores=[e]):(n=t.stores,null===n?t.stores=[e]:n.push(e))}function ao(e,t,n,r){t.value=n;t.getSnapshot=r;aa(t)&&as(e)}function ai(e,t,n){return n(function(){aa(t)&&as(e)})}function aa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!n7(e,n)}catch(e){return!0}}function as(e){var t=is(e,1);null!==t&&ld(t,e,1,-1)}function al(e){var t=i5();"function"===typeof e&&(e=e());t.memoizedState=t.baseState=e;e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:i8,lastRenderedState:e};t.queue=e;e=e.dispatch=aT.bind(null,i$,e);return[t.memoizedState,e]}function au(e,t,n,r){e={tag:e,create:t,destroy:n,deps:r,next:null};t=i$.updateQueue;null===t?(t={lastEffect:null,stores:null},i$.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,null===n?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e));return e}function ac(){return i3().memoizedState}function ad(e,t,n,r){var o=i5();i$.flags|=e;o.memoizedState=au(1|t,n,void 0,void 0===r?null:r)}function af(e,t,n,r){var o=i3();r=void 0===r?null:r;var i=void 0;if(null!==iq){var a=iq.memoizedState;i=a.destroy;if(null!==r&&i1(r,a.deps)){o.memoizedState=au(t,n,i,r);return}}i$.flags|=e;o.memoizedState=au(1|t,n,i,r)}function ah(e,t){return ad(8390656,8,e,t)}function ap(e,t){return af(2048,8,e,t)}function ag(e,t){return af(4,2,e,t)}function av(e,t){return af(4,4,e,t)}function am(e,t){if("function"===typeof t)return e=e(),t(e),function(){t(null)};if(null!==t&&void 0!==t)return e=e(),t.current=e,function(){t.current=null}}function ay(e,t,n){n=null!==n&&void 0!==n?n.concat([e]):null;return af(4,4,am.bind(null,t,e),n)}function aw(){}function ax(e,t){var n=i3();t=void 0===t?null:t;var r=n.memoizedState;if(null!==r&&null!==t&&i1(t,r[1]))return r[0];n.memoizedState=[e,t];return e}function ab(e,t){var n=i3();t=void 0===t?null:t;var r=n.memoizedState;if(null!==r&&null!==t&&i1(t,r[1]))return r[0];e=e();n.memoizedState=[e,t];return e}function aS(e,t,n){if(0===(iK&21))return e.baseState&&(e.baseState=!1,aW=!0),e.memoizedState=n;n7(n,t)||(n=tp(),i$.lanes|=n,s0|=n,e.baseState=!0);return t}function ak(e,t){var n=tw;tw=0!==n&&4>n?n:4;e(!0);var r=iU.transition;iU.transition={};try{e(!1),t()}finally{tw=n,iU.transition=r}}function aj(){return i3().memoizedState}function aC(e,t,n){var r=lc(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(aE(e))a_(t,n);else if(n=ia(e,t,n,r),null!==n){var o=lu();ld(n,e,r,o);aI(n,t,r)}}function aT(e,t,n){var r=lc(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(aE(e))a_(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&(i=t.lastRenderedReducer,null!==i))try{var a=t.lastRenderedState,s=i(a,n);o.hasEagerState=!0;o.eagerState=s;if(n7(s,a)){var l=t.interleaved;null===l?(o.next=o,ii(t)):(o.next=l.next,l.next=o);t.interleaved=o;return}}catch(e){}finally{}n=ia(e,t,o,r);null!==n&&(o=lu(),ld(n,e,r,o),aI(n,t,r))}}function aE(e){var t=e.alternate;return e===i$||null!==t&&t===i$}function a_(e,t){iX=iG=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t);e.pending=t}function aI(e,t,n){if(0!==(n&4194240)){var r=t.lanes;r&=e.pendingLanes;n|=r;t.lanes=n;ty(e,n)}}var aM={readContext:it,useCallback:i0,useContext:i0,useEffect:i0,useImperativeHandle:i0,useInsertionEffect:i0,useLayoutEffect:i0,useMemo:i0,useReducer:i0,useRef:i0,useState:i0,useDebugValue:i0,useDeferredValue:i0,useTransition:i0,useMutableSource:i0,useSyncExternalStore:i0,useId:i0,unstable_isNewReconciler:!1},aD={readContext:it,useCallback:function(e,t){i5().memoizedState=[e,void 0===t?null:t];return e},useContext:it,useEffect:ah,useImperativeHandle:function(e,t,n){n=null!==n&&void 0!==n?n.concat([e]):null;return ad(4194308,4,am.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ad(4194308,4,e,t)},useInsertionEffect:function(e,t){return ad(4,2,e,t)},useMemo:function(e,t){var n=i5();t=void 0===t?null:t;e=e();n.memoizedState=[e,t];return e},useReducer:function(e,t,n){var r=i5();t=void 0!==n?n(t):t;r.memoizedState=r.baseState=t;e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t};r.queue=e;e=e.dispatch=aC.bind(null,i$,e);return[r.memoizedState,e]},useRef:function(e){var t=i5();e={current:e};return t.memoizedState=e},useState:al,useDebugValue:aw,useDeferredValue:function(e){return i5().memoizedState=e},useTransition:function(){var e=al(!1),t=e[0];e=ak.bind(null,e[1]);i5().memoizedState=e;return[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=i$,o=i5();if(oW){if(void 0===n)throw Error(i(407));n=n()}else{n=t();if(null===s$)throw Error(i(349));0!==(iK&30)||at(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};o.queue=a;ah(ai.bind(null,r,a,e),[e]);r.flags|=2048;au(9,ao.bind(null,r,a,n,t),void 0,null);return n},useId:function(){var e=i5(),t=s$.identifierPrefix;if(oW){var n=oz;var r=oZ;n=(r&~(1<<32-tr(r)-1)).toString(32)+n;t=":"+t+"R"+n;n=iQ++;0<n&&(t+="H"+n.toString(32));t+=":"}else n=iJ++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},aP={readContext:it,useCallback:ax,useContext:it,useEffect:ap,useImperativeHandle:ay,useInsertionEffect:ag,useLayoutEffect:av,useMemo:ab,useReducer:i6,useRef:ac,useState:function(){return i6(i8)},useDebugValue:aw,useDeferredValue:function(e){var t=i3();return aS(t,iq.memoizedState,e)},useTransition:function(){var e=i6(i8)[0],t=i3().memoizedState;return[e,t]},useMutableSource:i9,useSyncExternalStore:ae,useId:aj,unstable_isNewReconciler:!1},aO={readContext:it,useCallback:ax,useContext:it,useEffect:ap,useImperativeHandle:ay,useInsertionEffect:ag,useLayoutEffect:av,useMemo:ab,useReducer:i7,useRef:ac,useState:function(){return i7(i8)},useDebugValue:aw,useDeferredValue:function(e){var t=i3();return null===iq?t.memoizedState=e:aS(t,iq.memoizedState,e)},useTransition:function(){var e=i7(i8)[0],t=i3().memoizedState;return[e,t]},useMutableSource:i9,useSyncExternalStore:ae,useId:aj,unstable_isNewReconciler:!1};function aA(e,t){try{var n="",r=t;do n+=U(r),r=r.return;while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function aR(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function aZ(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var az="function"===typeof WeakMap?WeakMap:Map;function aN(e,t,n){n=id(-1,n);n.tag=3;n.payload={element:null};var r=t.value;n.callback=function(){s7||(s7=!0,s9=r);aZ(e,t)};return n}function aL(e,t,n){n=id(-1,n);n.tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var o=t.value;n.payload=function(){return r(o)};n.callback=function(){aZ(e,t)}}var i=e.stateNode;null!==i&&"function"===typeof i.componentDidCatch&&(n.callback=function(){aZ(e,t);"function"!==typeof r&&(null===le?le=new Set([this]):le.add(this));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})});return n}function aB(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new az;var o=new Set;r.set(t,o)}else o=r.get(t),void 0===o&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=lZ.bind(null,e,t,n),t.then(e,e))}function aH(e){do{var t;if(t=13===e.tag)t=e.memoizedState,t=null!==t?null!==t.dehydrated?!0:!1:!0;if(t)return e;e=e.return}while(null!==e);return null}function aF(e,t,n,r,o){if(0===(e.mode&1))return e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:(t=id(-1,1),t.tag=2,ih(n,t,1))),n.lanes|=1),e;e.flags|=65536;e.lanes=o;return e}var aV=j.ReactCurrentOwner,aW=!1;function aU(e,t,n,r){t.child=null===e?iM(t,null,n,r):iI(t,e.child,n,r)}function aK(e,t,n,r,o){n=n.render;var i=t.ref;ie(t,o);r=i2(e,t,n,r,i,o);n=i4();if(null!==e&&!aW)return t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,sn(e,t,o);oW&&n&&oB(t);t.flags|=1;aU(e,t,r,o);return t.child}function a$(e,t,n,r,o){if(null===e){var i=n.type;if("function"===typeof i&&!lW(i)&&void 0===i.defaultProps&&null===n.compare&&void 0===n.defaultProps)return t.tag=15,t.type=i,aq(e,t,i,r,o);e=l$(n.type,null,r,t,t.mode,o);e.ref=t.ref;e.return=t;return t.child=e}i=e.child;if(0===(e.lanes&o)){var a=i.memoizedProps;n=n.compare;n=null!==n?n:n9;if(n(a,r)&&e.ref===t.ref)return sn(e,t,o)}t.flags|=1;e=lK(i,r);e.ref=t.ref;e.return=t;return t.child=e}function aq(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(n9(i,r)&&e.ref===t.ref)if(aW=!1,t.pendingProps=r=i,0!==(e.lanes&o))0!==(e.flags&131072)&&(aW=!0);else return t.lanes=e.lanes,sn(e,t,o)}return aX(e,t,n,r,o)}function aY(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},od(sX,sG),sG|=n;else{if(0===(n&1073741824))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,od(sX,sG),sG|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null};r=null!==i?i.baseLanes:n;od(sX,sG);sG|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,od(sX,sG),sG|=r;aU(e,t,o,n);return t.child}function aG(e,t){var n=t.ref;if(null===e&&null!==n||null!==e&&e.ref!==n)t.flags|=512,t.flags|=2097152}function aX(e,t,n,r,o){var i=om(n)?og:oh.current;i=ov(t,i);ie(t,o);n=i2(e,t,n,r,i,o);r=i4();if(null!==e&&!aW)return t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,sn(e,t,o);oW&&r&&oB(t);t.flags|=1;aU(e,t,n,o);return t.child}function aQ(e,t,n,r,o){if(om(n)){var i=!0;ob(t)}else i=!1;ie(t,o);if(null===t.stateNode)st(e,t),iS(t,n,r),ij(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"===typeof u&&null!==u?u=it(u):(u=om(n)?og:oh.current,u=ov(t,u));var c=n.getDerivedStateFromProps,f="function"===typeof c||"function"===typeof a.getSnapshotBeforeUpdate;f||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||l!==u)&&ik(t,a,r,u);il=!1;var h=t.memoizedState;a.state=h;iv(t,r,a,o);l=t.memoizedState;s!==r||h!==l||op.current||il?("function"===typeof c&&(iw(t,n,c,r),l=t.memoizedState),(s=il||ib(t,n,s,r,h,l,u))?(f||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"===typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode;ic(e,t);s=t.memoizedProps;u=t.type===t.elementType?s:o2(t.type,s);a.props=u;f=t.pendingProps;h=a.context;l=n.contextType;"object"===typeof l&&null!==l?l=it(l):(l=om(n)?og:oh.current,l=ov(t,l));var p=n.getDerivedStateFromProps;(c="function"===typeof p||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==f||h!==l)&&ik(t,a,r,l);il=!1;h=t.memoizedState;a.state=h;iv(t,r,a,o);var g=t.memoizedState;s!==f||h!==g||op.current||il?("function"===typeof p&&(iw(t,n,p,r),g=t.memoizedState),(u=il||ib(t,n,u,r,h,g,l)||!1)?(c||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,g,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,g,l)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),a.props=r,a.state=g,a.context=l,r=u):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return aJ(e,t,n,r,i,o)}function aJ(e,t,n,r,o,i){aG(e,t);var a=0!==(t.flags&128);if(!r&&!a)return o&&oS(t,n,!1),sn(e,t,i);r=t.stateNode;aV.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();t.flags|=1;null!==e&&a?(t.child=iI(t,e.child,null,i),t.child=iI(t,null,s,i)):aU(e,t,s,i);t.memoizedState=r.state;o&&oS(t,n,!0);return t.child}function a0(e){var t=e.stateNode;t.pendingContext?ow(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ow(e,t.context,!1);iZ(e,t.containerInfo)}function a1(e,t,n,r,o){oJ();o0(o);t.flags|=256;aU(e,t,n,r);return t.child}var a2={dehydrated:null,treeContext:null,retryLane:0};function a4(e){return{baseLanes:e,cachePool:null,transitions:null}}function a5(e,t,n){var r=t.pendingProps,o=iB.current,i=!1,a=0!==(t.flags&128),s;(s=a)||(s=null!==e&&null===e.memoizedState?!1:0!==(o&2));if(s)i=!0,t.flags&=-129;else if(null===e||null!==e.memoizedState)o|=1;od(iB,o&1);if(null===e){oY(t);e=t.memoizedState;if(null!==e&&(e=e.dehydrated,null!==e))return 0===(t.mode&1)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null;a=r.children;e=r.fallback;return i?(r=t.mode,i=t.child,a={mode:"hidden",children:a},0===(r&1)&&null!==i?(i.childLanes=0,i.pendingProps=a):i=lY(a,r,0,null),e=lq(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=a4(n),t.memoizedState=a2,e):a3(t,a)}o=e.memoizedState;if(null!==o&&(s=o.dehydrated,null!==s))return a6(e,t,a,r,s,o,n);if(i){i=r.fallback;a=t.mode;o=e.child;s=o.sibling;var l={mode:"hidden",children:r.children};0===(a&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=lK(o,l),r.subtreeFlags=o.subtreeFlags&14680064);null!==s?i=lK(s,i):(i=lq(i,a,n,null),i.flags|=2);i.return=t;r.return=t;r.sibling=i;t.child=r;r=i;i=t.child;a=e.child.memoizedState;a=null===a?a4(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions};i.memoizedState=a;i.childLanes=e.childLanes&~n;t.memoizedState=a2;return r}i=e.child;e=i.sibling;r=lK(i,{mode:"visible",children:r.children});0===(t.mode&1)&&(r.lanes=n);r.return=t;r.sibling=null;null!==e&&(n=t.deletions,null===n?(t.deletions=[e],t.flags|=16):n.push(e));t.child=r;t.memoizedState=null;return r}function a3(e,t){t=lY({mode:"visible",children:t},e.mode,0,null);t.return=e;return e.child=t}function a8(e,t,n,r){null!==r&&o0(r);iI(t,e.child,null,n);e=a3(t,t.pendingProps.children);e.flags|=2;t.memoizedState=null;return e}function a6(e,t,n,r,o,a,s){if(n){if(t.flags&256)return t.flags&=-257,r=aR(Error(i(422))),a8(e,t,s,r);if(null!==t.memoizedState)return t.child=e.child,t.flags|=128,null;a=r.fallback;o=t.mode;r=lY({mode:"visible",children:r.children},o,0,null);a=lq(a,o,s,null);a.flags|=2;r.return=t;a.return=t;r.sibling=a;t.child=r;0!==(t.mode&1)&&iI(t,e.child,null,s);t.child.memoizedState=a4(s);t.memoizedState=a2;return a}if(0===(t.mode&1))return a8(e,t,s,null);if("$!"===o.data){r=o.nextSibling&&o.nextSibling.dataset;if(r)var l=r.dgst;r=l;a=Error(i(419));r=aR(a,r,void 0);return a8(e,t,s,r)}l=0!==(s&e.childLanes);if(aW||l){r=s$;if(null!==r){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=0!==(o&(r.suspendedLanes|s))?0:o;0!==o&&o!==a.retryLane&&(a.retryLane=o,is(e,o),ld(r,e,o,-1))}lC();r=aR(Error(i(421)));return a8(e,t,s,r)}if("$?"===o.data)return t.flags|=128,t.child=e.child,t=lN.bind(null,e),o._reactRetry=t,null;e=a.treeContext;oV=r4(o.nextSibling);oF=t;oW=!0;oU=null;null!==e&&(oO[oA++]=oZ,oO[oA++]=oz,oO[oA++]=oR,oZ=e.id,oz=e.overflow,oR=t);t=a3(t,r.children);t.flags|=4096;return t}function a7(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t);o9(e.return,t,n)}function a9(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function se(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;aU(e,t,r.children,n);r=iB.current;if(0!==(r&2))r=r&1|2,t.flags|=128;else{if(null!==e&&0!==(e.flags&128))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&a7(e,n,t);else if(19===e.tag)a7(e,n,t);else if(null!==e.child){e.child.return=e;e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return;e=e.sibling}r&=1}od(iB,r);if(0===(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":n=t.child;for(o=null;null!==n;)e=n.alternate,null!==e&&null===iH(e)&&(o=n),n=n.sibling;n=o;null===n?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null);a9(t,!1,o,n,i);break;case"backwards":n=null;o=t.child;for(t.child=null;null!==o;){e=o.alternate;if(null!==e&&null===iH(e)){t.child=o;break}e=o.sibling;o.sibling=n;n=o;o=e}a9(t,!0,n,null,i);break;case"together":a9(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function st(e,t){0===(t.mode&1)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function sn(e,t,n){null!==e&&(t.dependencies=e.dependencies);s0|=t.lanes;if(0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){e=t.child;n=lK(e,e.pendingProps);t.child=n;for(n.return=t;null!==e.sibling;)e=e.sibling,n=n.sibling=lK(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function so(e,t,n){switch(t.tag){case 3:a0(t);oJ();break;case 5:iN(t);break;case 1:om(t.type)&&ob(t);break;case 4:iZ(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;od(o4,r._currentValue);r._currentValue=o;break;case 13:r=t.memoizedState;if(null!==r){if(null!==r.dehydrated)return od(iB,iB.current&1),t.flags|=128,null;if(0!==(n&t.child.childLanes))return a5(e,t,n);od(iB,iB.current&1);e=sn(e,t,n);return null!==e?e.sibling:null}od(iB,iB.current&1);break;case 19:r=0!==(n&t.childLanes);if(0!==(e.flags&128)){if(r)return se(e,t,n);t.flags|=128}o=t.memoizedState;null!==o&&(o.rendering=null,o.tail=null,o.lastEffect=null);od(iB,iB.current);if(r)break;else return null;case 22:case 23:return t.lanes=0,aY(e,t,n)}return sn(e,t,n)}var si,sa,ss,sl;si=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n;n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return;n=n.sibling}};sa=function(){};ss=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode;iR(iP.current);var i=null;switch(n){case"input":o=ee(e,o);r=ee(e,r);i=[];break;case"select":o=B({},o,{value:void 0});r=B({},r,{value:void 0});i=[];break;case"textarea":o=el(e,o);r=el(e,r);i=[];break;default:"function"!==typeof o.onClick&&"function"===typeof r.onClick&&(e.onclick=r$)}eS(n,r);var a;n=null;for(c in o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var l=o[c];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(s.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var u=r[c];l=null!=o?o[c]:void 0;if(r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(a in l)!l.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&l[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(i||(i=[]),i.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(i=i||[]).push(c,u)):"children"===c?"string"!==typeof u&&"number"!==typeof u||(i=i||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(s.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&rO("scroll",e),i||l===u||(i=[])):(i=i||[]).push(c,u))}n&&(i=i||[]).push("style",n);var c=i;if(t.updateQueue=c)t.flags|=4}};sl=function(e,t,n,r){n!==r&&(t.flags|=4)};function su(e,t){if(!oW)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function sc(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;e.subtreeFlags|=r;e.childLanes=n;return t}function sd(e,t,n){var r=t.pendingProps;oH(t);switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return sc(t),null;case 1:return om(t.type)&&oy(),sc(t),null;case 3:r=t.stateNode;iz();oc(op);oc(oh);iV();r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null);if(null===e||null===e.child)oX(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(t.flags&256)||(t.flags|=1024,null!==oU&&(lg(oU),oU=null));sa(e,t);sc(t);return null;case 5:iL(t);var o=iR(iA.current);n=t.type;if(null!==e&&null!=t.stateNode)ss(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));sc(t);return null}e=iR(iP.current);if(oX(t)){r=t.stateNode;n=t.type;var a=t.memoizedProps;r[r8]=t;r[r6]=a;e=0!==(t.mode&1);switch(n){case"dialog":rO("cancel",r);rO("close",r);break;case"iframe":case"object":case"embed":rO("load",r);break;case"video":case"audio":for(o=0;o<rI.length;o++)rO(rI[o],r);break;case"source":rO("error",r);break;case"img":case"image":case"link":rO("error",r);rO("load",r);break;case"details":rO("toggle",r);break;case"input":et(r,a);rO("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple};rO("invalid",r);break;case"textarea":eu(r,a),rO("invalid",r)}eS(n,a);o=null;for(var l in a)if(a.hasOwnProperty(l)){var u=a[l];"children"===l?"string"===typeof u?r.textContent!==u&&(!0!==a.suppressHydrationWarning&&rK(r.textContent,u,e),o=["children",u]):"number"===typeof u&&r.textContent!==""+u&&(!0!==a.suppressHydrationWarning&&rK(r.textContent,u,e),o=["children",""+u]):s.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&rO("scroll",r)}switch(n){case"input":X(r);eo(r,a,!0);break;case"textarea":X(r);ed(r);break;case"select":case"option":break;default:"function"===typeof a.onClick&&(r.onclick=r$)}r=o;t.updateQueue=r;null!==r&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument;"http://www.w3.org/1999/xhtml"===e&&(e=ef(n));"http://www.w3.org/1999/xhtml"===e?"script"===n?(e=l.createElement("div"),e.innerHTML="<script></script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n);e[r8]=t;e[r6]=r;si(e,t,!1,!1);t.stateNode=e;e:{l=ek(n,r);switch(n){case"dialog":rO("cancel",e);rO("close",e);o=r;break;case"iframe":case"object":case"embed":rO("load",e);o=r;break;case"video":case"audio":for(o=0;o<rI.length;o++)rO(rI[o],e);o=r;break;case"source":rO("error",e);o=r;break;case"img":case"image":case"link":rO("error",e);rO("load",e);o=r;break;case"details":rO("toggle",e);o=r;break;case"input":et(e,r);o=ee(e,r);rO("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple};o=B({},r,{value:void 0});rO("invalid",e);break;case"textarea":eu(e,r);o=el(e,r);rO("invalid",e);break;default:o=r}eS(n,o);u=o;for(a in u)if(u.hasOwnProperty(a)){var c=u[a];"style"===a?ex(e,c):"dangerouslySetInnerHTML"===a?(c=c?c.__html:void 0,null!=c&&eg(e,c)):"children"===a?"string"===typeof c?("textarea"!==n||""!==c)&&ev(e,c):"number"===typeof c&&ev(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=c&&"onScroll"===a&&rO("scroll",e):null!=c&&k(e,a,c,l))}switch(n){case"input":X(e);eo(e,r,!1);break;case"textarea":X(e);ed(e);break;case"option":null!=r.value&&e.setAttribute("value",""+q(r.value));break;case"select":e.multiple=!!r.multiple;a=r.value;null!=a?es(e,!!r.multiple,a,!1):null!=r.defaultValue&&es(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof o.onClick&&(e.onclick=r$)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}sc(t);return null;case 6:if(e&&null!=t.stateNode)sl(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(i(166));n=iR(iA.current);iR(iP.current);if(oX(t)){r=t.stateNode;n=t.memoizedProps;r[r8]=t;if(a=r.nodeValue!==n){if(e=oF,null!==e)switch(e.tag){case 3:rK(r.nodeValue,n,0!==(e.mode&1));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&rK(r.nodeValue,n,0!==(e.mode&1))}}a&&(t.flags|=4)}else r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r),r[r8]=t,t.stateNode=r}sc(t);return null;case 13:oc(iB);r=t.memoizedState;if(null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(oW&&null!==oV&&0!==(t.mode&1)&&0===(t.flags&128))oQ(),oJ(),t.flags|=98560,a=!1;else if(a=oX(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(i(318));a=t.memoizedState;a=null!==a?a.dehydrated:null;if(!a)throw Error(i(317));a[r8]=t}else oJ(),0===(t.flags&128)&&(t.memoizedState=null),t.flags|=4;sc(t);a=!1}else null!==oU&&(lg(oU),oU=null),a=!0;if(!a)return t.flags&65536?t:null}if(0!==(t.flags&128))return t.lanes=n,t;r=null!==r;r!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(t.mode&1)&&(null===e||0!==(iB.current&1)?0===sQ&&(sQ=3):lC()));null!==t.updateQueue&&(t.flags|=4);sc(t);return null;case 4:return iz(),sa(e,t),null===e&&rZ(t.stateNode.containerInfo),sc(t),null;case 10:return o7(t.type._context),sc(t),null;case 17:return om(t.type)&&oy(),sc(t),null;case 19:oc(iB);a=t.memoizedState;if(null===a)return sc(t),null;r=0!==(t.flags&128);l=a.rendering;if(null===l)if(r)su(a,!1);else{if(0!==sQ||null!==e&&0!==(e.flags&128))for(e=t.child;null!==e;){l=iH(e);if(null!==l){t.flags|=128;su(a,!1);r=l.updateQueue;null!==r&&(t.updateQueue=r,t.flags|=4);t.subtreeFlags=0;r=n;for(n=t.child;null!==n;)a=n,e=r,a.flags&=14680066,l=a.alternate,null===l?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;od(iB,iB.current&1|2);return t.child}e=e.sibling}null!==a.tail&&e4()>s8&&(t.flags|=128,r=!0,su(a,!1),t.lanes=4194304)}else{if(!r)if(e=iH(l),null!==e){if(t.flags|=128,r=!0,n=e.updateQueue,null!==n&&(t.updateQueue=n,t.flags|=4),su(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!oW)return sc(t),null}else 2*e4()-a.renderingStartTime>s8&&1073741824!==n&&(t.flags|=128,r=!0,su(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(n=a.last,null!==n?n.sibling=l:t.child=l,a.last=l)}if(null!==a.tail)return t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=e4(),t.sibling=null,n=iB.current,od(iB,r?n&1|2:n&1),t;sc(t);return null;case 22:case 23:return lb(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(t.mode&1)?0!==(sG&1073741824)&&(sc(t),t.subtreeFlags&6&&(t.flags|=8192)):sc(t),null;case 24:return null;case 25:return null}throw Error(i(156,t.tag))}function sf(e,t){oH(t);switch(t.tag){case 1:return om(t.type)&&oy(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return iz(),oc(op),oc(oh),iV(),e=t.flags,0!==(e&65536)&&0===(e&128)?(t.flags=e&-65537|128,t):null;case 5:return iL(t),null;case 13:oc(iB);e=t.memoizedState;if(null!==e&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));oJ()}e=t.flags;return e&65536?(t.flags=e&-65537|128,t):null;case 19:return oc(iB),null;case 4:return iz(),null;case 10:return o7(t.type._context),null;case 22:case 23:return lb(),null;case 24:return null;default:return null}}var sh=!1,sp=!1,sg="function"===typeof WeakSet?WeakSet:Set,sv=null;function sm(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(n){lR(e,t,n)}else n.current=null}function sy(e,t,n){try{n()}catch(n){lR(e,t,n)}}var sw=!1;function sx(e,t){rq=tU;e=ro();if(ri(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var s=0,l=-1,u=-1,c=0,f=0,h=e,p=null;t:for(;;){for(var g;;){h!==n||0!==o&&3!==h.nodeType||(l=s+o);h!==a||0!==r&&3!==h.nodeType||(u=s+r);3===h.nodeType&&(s+=h.nodeValue.length);if(null===(g=h.firstChild))break;p=h;h=g}for(;;){if(h===e)break t;p===n&&++c===o&&(l=s);p===a&&++f===r&&(u=s);if(null!==(g=h.nextSibling))break;h=p;p=h.parentNode}h=g}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;rY={focusedElem:e,selectionRange:n};tU=!1;for(sv=t;null!==sv;)if(t=sv,e=t.child,0!==(t.subtreeFlags&1028)&&null!==e)e.return=t,sv=e;else for(;null!==sv;){t=sv;try{var v=t.alternate;if(0!==(t.flags&1024))switch(t.tag){case 0:case 11:case 15:break;case 1:if(null!==v){var m=v.memoizedProps,y=v.memoizedState,w=t.stateNode,x=w.getSnapshotBeforeUpdate(t.elementType===t.type?m:o2(t.type,m),y);w.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var b=t.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(e){lR(t,t.return,e)}e=t.sibling;if(null!==e){e.return=t.return;sv=e;break}sv=t.return}v=sw;sw=!1;return v}function sb(e,t,n){var r=t.updateQueue;r=null!==r?r.lastEffect:null;if(null!==r){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0;void 0!==i&&sy(t,n,i)}o=o.next}while(o!==r)}}function sS(e,t){t=t.updateQueue;t=null!==t?t.lastEffect:null;if(null!==t){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function sk(e){var t=e.ref;if(null!==t){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}"function"===typeof t?t(e):t.current=e}}function sj(e){var t=e.alternate;null!==t&&(e.alternate=null,sj(t));e.child=null;e.deletions=null;e.sibling=null;5===e.tag&&(t=e.stateNode,null!==t&&(delete t[r8],delete t[r6],delete t[r9],delete t[oe],delete t[ot]));e.stateNode=null;e.return=null;e.dependencies=null;e.memoizedProps=null;e.memoizedState=null;e.pendingProps=null;e.stateNode=null;e.updateQueue=null}function sC(e){return 5===e.tag||3===e.tag||4===e.tag}function sT(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||sC(e.return))return null;e=e.return}e.sibling.return=e.return;for(e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(e.flags&2)continue e;if(null===e.child||4===e.tag)continue e;else e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function sE(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,null!==n&&void 0!==n||null!==t.onclick||(t.onclick=r$));else if(4!==r&&(e=e.child,null!==e))for(sE(e,t,n),e=e.sibling;null!==e;)sE(e,t,n),e=e.sibling}function s_(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(e=e.child,null!==e))for(s_(e,t,n),e=e.sibling;null!==e;)s_(e,t,n),e=e.sibling}var sI=null,sM=!1;function sD(e,t,n){for(n=n.child;null!==n;)sP(e,t,n),n=n.sibling}function sP(e,t,n){if(tt&&"function"===typeof tt.onCommitFiberUnmount)try{tt.onCommitFiberUnmount(te,n)}catch(e){}switch(n.tag){case 5:sp||sm(n,t);case 6:var r=sI,o=sM;sI=null;sD(e,t,n);sI=r;sM=o;null!==sI&&(sM?(e=sI,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):sI.removeChild(n.stateNode));break;case 18:null!==sI&&(sM?(e=sI,n=n.stateNode,8===e.nodeType?r2(e.parentNode,n):1===e.nodeType&&r2(e,n),tV(e)):r2(sI,n.stateNode));break;case 4:r=sI;o=sM;sI=n.stateNode.containerInfo;sM=!0;sD(e,t,n);sI=r;sM=o;break;case 0:case 11:case 14:case 15:if(!sp&&(r=n.updateQueue,null!==r&&(r=r.lastEffect,null!==r))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag;void 0!==a&&(0!==(i&2)?sy(n,t,a):0!==(i&4)&&sy(n,t,a));o=o.next}while(o!==r)}sD(e,t,n);break;case 1:if(!sp&&(sm(n,t),r=n.stateNode,"function"===typeof r.componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){lR(n,t,e)}sD(e,t,n);break;case 21:sD(e,t,n);break;case 22:n.mode&1?(sp=(r=sp)||null!==n.memoizedState,sD(e,t,n),sp=r):sD(e,t,n);break;default:sD(e,t,n)}}function sO(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new sg);t.forEach(function(t){var r=lL.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function sA(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:sI=l.stateNode;sM=!1;break e;case 3:sI=l.stateNode.containerInfo;sM=!0;break e;case 4:sI=l.stateNode.containerInfo;sM=!0;break e}l=l.return}if(null===sI)throw Error(i(160));sP(a,s,o);sI=null;sM=!1;var u=o.alternate;null!==u&&(u.return=null);o.return=null}catch(e){lR(o,t,e)}}if(t.subtreeFlags&12854)for(t=t.child;null!==t;)sR(t,e),t=t.sibling}function sR(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:sA(t,e);sZ(e);if(r&4){try{sb(3,e,e.return),sS(3,e)}catch(t){lR(e,e.return,t)}try{sb(5,e,e.return)}catch(t){lR(e,e.return,t)}}break;case 1:sA(t,e);sZ(e);r&512&&null!==n&&sm(n,n.return);break;case 5:sA(t,e);sZ(e);r&512&&null!==n&&sm(n,n.return);if(e.flags&32){var o=e.stateNode;try{ev(o,"")}catch(t){lR(e,e.return,t)}}if(r&4&&(o=e.stateNode,null!=o)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,l=e.type,u=e.updateQueue;e.updateQueue=null;if(null!==u)try{"input"===l&&"radio"===a.type&&null!=a.name&&en(o,a);ek(l,s);var c=ek(l,a);for(s=0;s<u.length;s+=2){var f=u[s],h=u[s+1];"style"===f?ex(o,h):"dangerouslySetInnerHTML"===f?eg(o,h):"children"===f?ev(o,h):k(o,f,h,c)}switch(l){case"input":er(o,a);break;case"textarea":ec(o,a);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var g=a.value;null!=g?es(o,!!a.multiple,g,!1):p!==!!a.multiple&&(null!=a.defaultValue?es(o,!!a.multiple,a.defaultValue,!0):es(o,!!a.multiple,a.multiple?[]:"",!1))}o[r6]=a}catch(t){lR(e,e.return,t)}}break;case 6:sA(t,e);sZ(e);if(r&4){if(null===e.stateNode)throw Error(i(162));o=e.stateNode;a=e.memoizedProps;try{o.nodeValue=a}catch(t){lR(e,e.return,t)}}break;case 3:sA(t,e);sZ(e);if(r&4&&null!==n&&n.memoizedState.isDehydrated)try{tV(t.containerInfo)}catch(t){lR(e,e.return,t)}break;case 4:sA(t,e);sZ(e);break;case 13:sA(t,e);sZ(e);o=e.child;o.flags&8192&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(s3=e4()));r&4&&sO(e);break;case 22:f=null!==n&&null!==n.memoizedState;e.mode&1?(sp=(c=sp)||f,sA(t,e),sp=c):sA(t,e);sZ(e);if(r&8192){c=null!==e.memoizedState;if((e.stateNode.isHidden=c)&&!f&&0!==(e.mode&1))for(sv=e,f=e.child;null!==f;){for(h=sv=f;null!==sv;){p=sv;g=p.child;switch(p.tag){case 0:case 11:case 14:case 15:sb(4,p,p.return);break;case 1:sm(p,p.return);var v=p.stateNode;if("function"===typeof v.componentWillUnmount){r=p;n=p.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(e){lR(r,n,e)}}break;case 5:sm(p,p.return);break;case 22:if(null!==p.memoizedState){sB(h);continue}}null!==g?(g.return=p,sv=g):sB(h)}f=f.sibling}e:for(f=null,h=e;;){if(5===h.tag){if(null===f){f=h;try{o=h.stateNode,c?(a=o.style,"function"===typeof a.setProperty?a.setProperty("display","none","important"):a.display="none"):(l=h.stateNode,u=h.memoizedProps.style,s=void 0!==u&&null!==u&&u.hasOwnProperty("display")?u.display:null,l.style.display=ew("display",s))}catch(t){lR(e,e.return,t)}}}else if(6===h.tag){if(null===f)try{h.stateNode.nodeValue=c?"":h.memoizedProps}catch(t){lR(e,e.return,t)}}else if((22!==h.tag&&23!==h.tag||null===h.memoizedState||h===e)&&null!==h.child){h.child.return=h;h=h.child;continue}if(h===e)break e;for(;null===h.sibling;){if(null===h.return||h.return===e)break e;f===h&&(f=null);h=h.return}f===h&&(f=null);h.sibling.return=h.return;h=h.sibling}}break;case 19:sA(t,e);sZ(e);r&4&&sO(e);break;case 21:break;default:sA(t,e),sZ(e)}}function sZ(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;null!==n;){if(sC(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(ev(o,""),r.flags&=-33);var a=sT(e);s_(e,a,o);break;case 3:case 4:var s=r.stateNode.containerInfo,l=sT(e);sE(e,l,s);break;default:throw Error(i(161))}}catch(t){lR(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function sz(e,t,n){sv=e;sN(e,t,n)}function sN(e,t,n){for(var r=0!==(e.mode&1);null!==sv;){var o=sv,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||sh;if(!a){var s=o.alternate,l=null!==s&&null!==s.memoizedState||sp;s=sh;var u=sp;sh=a;if((sp=l)&&!u)for(sv=o;null!==sv;)a=sv,l=a.child,22===a.tag&&null!==a.memoizedState?sH(o):null!==l?(l.return=a,sv=l):sH(o);for(;null!==i;)sv=i,sN(i,t,n),i=i.sibling;sv=o;sh=s;sp=u}sL(e,t,n)}else 0!==(o.subtreeFlags&8772)&&null!==i?(i.return=o,sv=i):sL(e,t,n)}}function sL(e){for(;null!==sv;){var t=sv;if(0!==(t.flags&8772)){var n=t.alternate;try{if(0!==(t.flags&8772))switch(t.tag){case 0:case 11:case 15:sp||sS(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!sp)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:o2(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&im(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){n=null;if(null!==t.child)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}im(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&t.flags&4){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var f=c.memoizedState;if(null!==f){var h=f.dehydrated;null!==h&&tV(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}sp||t.flags&512&&sk(t)}catch(e){lR(t,t.return,e)}}if(t===e){sv=null;break}n=t.sibling;if(null!==n){n.return=t.return;sv=n;break}sv=t.return}}function sB(e){for(;null!==sv;){var t=sv;if(t===e){sv=null;break}var n=t.sibling;if(null!==n){n.return=t.return;sv=n;break}sv=t.return}}function sH(e){for(;null!==sv;){var t=sv;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{sS(4,t)}catch(e){lR(t,n,e)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){lR(t,o,e)}}var i=t.return;try{sk(t)}catch(e){lR(t,i,e)}break;case 5:var a=t.return;try{sk(t)}catch(e){lR(t,a,e)}}}catch(e){lR(t,t.return,e)}if(t===e){sv=null;break}var s=t.sibling;if(null!==s){s.return=t.return;sv=s;break}sv=t.return}}var sF=Math.ceil,sV=j.ReactCurrentDispatcher,sW=j.ReactCurrentOwner,sU=j.ReactCurrentBatchConfig,sK=0,s$=null,sq=null,sY=0,sG=0,sX=ou(0),sQ=0,sJ=null,s0=0,s1=0,s2=0,s4=null,s5=null,s3=0,s8=Infinity,s6=null,s7=!1,s9=null,le=null,lt=!1,ln=null,lo=0,li=0,la=null,ls=-1,ll=0;function lu(){return 0!==(sK&6)?e4():-1!==ls?ls:ls=e4()}function lc(e){if(0===(e.mode&1))return 1;if(0!==(sK&2)&&0!==sY)return sY&-sY;if(null!==o1.transition)return 0===ll&&(ll=tp()),ll;e=tw;if(0!==e)return e;e=window.event;e=void 0===e?16:tX(e.type);return e}function ld(e,t,n,r){if(50<li)throw li=0,la=null,Error(i(185));tv(e,n,r);if(0===(sK&2)||e!==s$)e===s$&&(0===(sK&2)&&(s1|=n),4===sQ&&lm(e,sY)),lf(e,r),1===n&&0===sK&&0===(t.mode&1)&&(s8=e4()+500,oj&&o_())}function lf(e,t){var n=e.callbackNode;tf(e,t);var r=tc(e,e===s$?sY:0);if(0===r)null!==n&&e0(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){null!=n&&e0(n);if(1===t)0===e.tag?oE(ly.bind(null,e)):oT(ly.bind(null,e)),r0(function(){0===(sK&6)&&o_()}),n=null;else{switch(tx(r)){case 1:n=e3;break;case 4:n=e8;break;case 16:n=e6;break;case 536870912:n=e9;break;default:n=e6}n=lH(n,lh.bind(null,e))}e.callbackPriority=t;e.callbackNode=n}}function lh(e,t){ls=-1;ll=0;if(0!==(sK&6))throw Error(i(327));var n=e.callbackNode;if(lO()&&e.callbackNode!==n)return null;var r=tc(e,e===s$?sY:0);if(0===r)return null;if(0!==(r&30)||0!==(r&e.expiredLanes)||t)t=lT(e,r);else{t=r;var o=sK;sK|=2;var a=lj();if(s$!==e||sY!==t)s6=null,s8=e4()+500,lS(e,t);do try{l_();break}catch(t){lk(e,t)}while(1);o6();sV.current=a;sK=o;null!==sq?t=0:(s$=null,sY=0,t=sQ)}if(0!==t){2===t&&(o=th(e),0!==o&&(r=o,t=lp(e,o)));if(1===t)throw n=sJ,lS(e,0),lm(e,r),lf(e,e4()),n;if(6===t)lm(e,r);else{o=e.current.alternate;if(0===(r&30)&&!lv(o)&&(t=lT(e,r),2===t&&(a=th(e),0!==a&&(r=a,t=lp(e,a))),1===t))throw n=sJ,lS(e,0),lm(e,r),lf(e,e4()),n;e.finishedWork=o;e.finishedLanes=r;switch(t){case 0:case 1:throw Error(i(345));case 2:lD(e,s5,s6);break;case 3:lm(e,r);if((r&130023424)===r&&(t=s3+500-e4(),10<t)){if(0!==tc(e,0))break;o=e.suspendedLanes;if((o&r)!==r){lu();e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=rX(lD.bind(null,e,s5,s6),t);break}lD(e,s5,s6);break;case 4:lm(e,r);if((r&4194240)===r)break;t=e.eventTimes;for(o=-1;0<r;){var s=31-tr(r);a=1<<s;s=t[s];s>o&&(o=s);r&=~a}r=o;r=e4()-r;r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*sF(r/1960))-r;if(10<r){e.timeoutHandle=rX(lD.bind(null,e,s5,s6),r);break}lD(e,s5,s6);break;case 5:lD(e,s5,s6);break;default:throw Error(i(329))}}}lf(e,e4());return e.callbackNode===n?lh.bind(null,e):null}function lp(e,t){var n=s4;e.current.memoizedState.isDehydrated&&(lS(e,t).flags|=256);e=lT(e,t);2!==e&&(t=s5,s5=n,null!==t&&lg(t));return e}function lg(e){null===s5?s5=e:s5.push.apply(s5,e)}function lv(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(null!==n&&(n=n.stores,null!==n))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!n7(i(),o))return!1}catch(e){return!1}}}n=t.child;if(t.subtreeFlags&16384&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return;t=t.sibling}}return!0}function lm(e,t){t&=~s2;t&=~s1;e.suspendedLanes|=t;e.pingedLanes&=~t;for(e=e.expirationTimes;0<t;){var n=31-tr(t),r=1<<n;e[n]=-1;t&=~r}}function ly(e){if(0!==(sK&6))throw Error(i(327));lO();var t=tc(e,0);if(0===(t&1))return lf(e,e4()),null;var n=lT(e,t);if(0!==e.tag&&2===n){var r=th(e);0!==r&&(t=r,n=lp(e,r))}if(1===n)throw n=sJ,lS(e,0),lm(e,t),lf(e,e4()),n;if(6===n)throw Error(i(345));e.finishedWork=e.current.alternate;e.finishedLanes=t;lD(e,s5,s6);lf(e,e4());return null}function lw(e,t){var n=sK;sK|=1;try{return e(t)}finally{sK=n,0===sK&&(s8=e4()+500,oj&&o_())}}function lx(e){null!==ln&&0===ln.tag&&0===(sK&6)&&lO();var t=sK;sK|=1;var n=sU.transition,r=tw;try{if(sU.transition=null,tw=1,e)return e()}finally{tw=r,sU.transition=n,sK=t,0===(sK&6)&&o_()}}function lb(){sG=sX.current;oc(sX)}function lS(e,t){e.finishedWork=null;e.finishedLanes=0;var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,rQ(n));if(null!==sq)for(n=sq.return;null!==n;){var r=n;oH(r);switch(r.tag){case 1:r=r.type.childContextTypes;null!==r&&void 0!==r&&oy();break;case 3:iz();oc(op);oc(oh);iV();break;case 5:iL(r);break;case 4:iz();break;case 13:oc(iB);break;case 19:oc(iB);break;case 10:o7(r.type._context);break;case 22:case 23:lb()}n=n.return}s$=e;sq=e=lK(e.current,null);sY=sG=t;sQ=0;sJ=null;s2=s1=s0=0;s5=s4=null;if(null!==io){for(t=0;t<io.length;t++)if(n=io[t],r=n.interleaved,null!==r){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o;r.next=a}n.pending=r}io=null}return e}function lk(e,t){do{var n=sq;try{o6();iW.current=aM;if(iG){for(var r=i$.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null);r=r.next}iG=!1}iK=0;iY=iq=i$=null;iX=!1;iQ=0;sW.current=null;if(null===n||null===n.return){sQ=1;sJ=t;sq=null;break}e:{var a=e,s=n.return,l=n,u=t;t=sY;l.flags|=32768;if(null!==u&&"object"===typeof u&&"function"===typeof u.then){var c=u,f=l,h=f.tag;if(0===(f.mode&1)&&(0===h||11===h||15===h)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var g=aH(s);if(null!==g){g.flags&=-257;aF(g,s,l,a,t);g.mode&1&&aB(a,c,t);t=g;u=c;var v=t.updateQueue;if(null===v){var m=new Set;m.add(u);t.updateQueue=m}else v.add(u);break e}else{if(0===(t&1)){aB(a,c,t);lC();break e}u=Error(i(426))}}else if(oW&&l.mode&1){var y=aH(s);if(null!==y){0===(y.flags&65536)&&(y.flags|=256);aF(y,s,l,a,t);o0(aA(u,l));break e}}a=u=aA(u,l);4!==sQ&&(sQ=2);null===s4?s4=[a]:s4.push(a);a=s;do{switch(a.tag){case 3:a.flags|=65536;t&=-t;a.lanes|=t;var w=aN(a,u,t);ig(a,w);break e;case 1:l=u;var x=a.type,b=a.stateNode;if(0===(a.flags&128)&&("function"===typeof x.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===le||!le.has(b)))){a.flags|=65536;t&=-t;a.lanes|=t;var S=aL(a,l,t);ig(a,S);break e}}a=a.return}while(null!==a)}lM(n)}catch(e){t=e;sq===n&&null!==n&&(sq=n=n.return);continue}break}while(1)}function lj(){var e=sV.current;sV.current=aM;return null===e?aM:e}function lC(){if(0===sQ||3===sQ||2===sQ)sQ=4;null===s$||0===(s0&268435455)&&0===(s1&268435455)||lm(s$,sY)}function lT(e,t){var n=sK;sK|=2;var r=lj();if(s$!==e||sY!==t)s6=null,lS(e,t);do try{lE();break}catch(t){lk(e,t)}while(1);o6();sK=n;sV.current=r;if(null!==sq)throw Error(i(261));s$=null;sY=0;return sQ}function lE(){for(;null!==sq;)lI(sq)}function l_(){for(;null!==sq&&!e1();)lI(sq)}function lI(e){var t=lB(e.alternate,e,sG);e.memoizedProps=e.pendingProps;null===t?lM(e):sq=t;sW.current=null}function lM(e){var t=e;do{var n=t.alternate;e=t.return;if(0===(t.flags&32768)){if(n=sd(n,t,sG),null!==n){sq=n;return}}else{n=sf(n,t);if(null!==n){n.flags&=32767;sq=n;return}if(null!==e)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{sQ=6;sq=null;return}}t=t.sibling;if(null!==t){sq=t;return}sq=t=e}while(null!==t);0===sQ&&(sQ=5)}function lD(e,t,n){var r=tw,o=sU.transition;try{sU.transition=null,tw=1,lP(e,t,n,r)}finally{sU.transition=o,tw=r}return null}function lP(e,t,n,r){do lO();while(null!==ln);if(0!==(sK&6))throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;e.finishedWork=null;e.finishedLanes=0;if(n===e.current)throw Error(i(177));e.callbackNode=null;e.callbackPriority=0;var a=n.lanes|n.childLanes;tm(e,a);e===s$&&(sq=s$=null,sY=0);0===(n.subtreeFlags&2064)&&0===(n.flags&2064)||lt||(lt=!0,lH(e6,function(){lO();return null}));a=0!==(n.flags&15990);if(0!==(n.subtreeFlags&15990)||a){a=sU.transition;sU.transition=null;var s=tw;tw=1;var l=sK;sK|=4;sW.current=null;sx(e,n);sR(n,e);ra(rY);tU=!!rq;rY=rq=null;e.current=n;sz(n,e,o);e2();sK=l;tw=s;sU.transition=a}else e.current=n;lt&&(lt=!1,ln=e,lo=o);a=e.pendingLanes;0===a&&(le=null);tn(n.stateNode,r);lf(e,e4());if(null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(s7)throw s7=!1,e=s9,s9=null,e;0!==(lo&1)&&0!==e.tag&&lO();a=e.pendingLanes;0!==(a&1)?e===la?li++:(li=0,la=e):li=0;o_();return null}function lO(){if(null!==ln){var e=tx(lo),t=sU.transition,n=tw;try{sU.transition=null;tw=16>e?16:e;if(null===ln)var r=!1;else{e=ln;ln=null;lo=0;if(0!==(sK&6))throw Error(i(331));var o=sK;sK|=4;for(sv=e.current;null!==sv;){var a=sv,s=a.child;if(0!==(sv.flags&16)){var l=a.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(sv=c;null!==sv;){var f=sv;switch(f.tag){case 0:case 11:case 15:sb(8,f,a)}var h=f.child;if(null!==h)h.return=f,sv=h;else for(;null!==sv;){f=sv;var p=f.sibling,g=f.return;sj(f);if(f===c){sv=null;break}if(null!==p){p.return=g;sv=p;break}sv=g}}}var v=a.alternate;if(null!==v){var m=v.child;if(null!==m){v.child=null;do{var y=m.sibling;m.sibling=null;m=y}while(null!==m)}}sv=a}}if(0!==(a.subtreeFlags&2064)&&null!==s)s.return=a,sv=s;else t:for(;null!==sv;){a=sv;if(0!==(a.flags&2048))switch(a.tag){case 0:case 11:case 15:sb(9,a,a.return)}var w=a.sibling;if(null!==w){w.return=a.return;sv=w;break t}sv=a.return}}var x=e.current;for(sv=x;null!==sv;){s=sv;var b=s.child;if(0!==(s.subtreeFlags&2064)&&null!==b)b.return=s,sv=b;else t:for(s=x;null!==sv;){l=sv;if(0!==(l.flags&2048))try{switch(l.tag){case 0:case 11:case 15:sS(9,l)}}catch(e){lR(l,l.return,e)}if(l===s){sv=null;break t}var S=l.sibling;if(null!==S){S.return=l.return;sv=S;break t}sv=l.return}}sK=o;o_();if(tt&&"function"===typeof tt.onPostCommitFiberRoot)try{tt.onPostCommitFiberRoot(te,e)}catch(e){}r=!0}return r}finally{tw=n,sU.transition=t}}return!1}function lA(e,t,n){t=aA(n,t);t=aN(e,t,1);e=ih(e,t,1);t=lu();null!==e&&(tv(e,1,t),lf(e,t))}function lR(e,t,n){if(3===e.tag)lA(e,e,n);else for(;null!==t;){if(3===t.tag){lA(t,e,n);break}else if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===le||!le.has(r))){e=aA(n,e);e=aL(t,e,1);t=ih(t,e,1);e=lu();null!==t&&(tv(t,1,e),lf(t,e));break}}t=t.return}}function lZ(e,t,n){var r=e.pingCache;null!==r&&r.delete(t);t=lu();e.pingedLanes|=e.suspendedLanes&n;s$===e&&(sY&n)===n&&(4===sQ||3===sQ&&(sY&130023424)===sY&&500>e4()-s3?lS(e,0):s2|=n);lf(e,t)}function lz(e,t){0===t&&(0===(e.mode&1)?t=1:(t=tl,tl<<=1,0===(tl&130023424)&&(tl=4194304)));var n=lu();e=is(e,t);null!==e&&(tv(e,t,n),lf(e,n))}function lN(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane);lz(e,n)}function lL(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode;var o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t);lz(e,n)}var lB;lB=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||op.current)aW=!0;else{if(0===(e.lanes&n)&&0===(t.flags&128))return aW=!1,so(e,t,n);aW=0!==(e.flags&131072)?!0:!1}else aW=!1,oW&&0!==(t.flags&1048576)&&oL(t,oP,t.index);t.lanes=0;switch(t.tag){case 2:var r=t.type;st(e,t);e=t.pendingProps;var o=ov(t,oh.current);ie(t,n);o=i2(null,t,r,e,o,n);var a=i4();t.flags|=1;"object"===typeof o&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,om(r)?(a=!0,ob(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,iu(t),o.updater=ix,t.stateNode=o,o._reactInternals=t,ij(t,r,e,n),t=aJ(null,t,r,!0,a,n)):(t.tag=0,oW&&a&&oB(t),aU(null,t,o,n),t=t.child);return t;case 16:r=t.elementType;e:{st(e,t);e=t.pendingProps;o=r._init;r=o(r._payload);t.type=r;o=t.tag=lU(r);e=o2(r,e);switch(o){case 0:t=aX(null,t,r,e,n);break e;case 1:t=aQ(null,t,r,e,n);break e;case 11:t=aK(null,t,r,e,n);break e;case 14:t=a$(null,t,r,o2(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:o2(r,o),aX(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:o2(r,o),aQ(e,t,r,o,n);case 3:e:{a0(t);if(null===e)throw Error(i(387));r=t.pendingProps;a=t.memoizedState;o=a.element;ic(e,t);iv(t,r,null,n);var s=t.memoizedState;r=s.element;if(a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){o=aA(Error(i(423)),t);t=a1(e,t,r,n,o);break e}else if(r!==o){o=aA(Error(i(424)),t);t=a1(e,t,r,n,o);break e}else for(oV=r4(t.stateNode.containerInfo.firstChild),oF=t,oW=!0,oU=null,n=iM(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{oJ();if(r===o){t=sn(e,t,n);break e}aU(e,t,r,n)}t=t.child}return t;case 5:return iN(t),null===e&&oY(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,s=o.children,rG(r,o)?s=null:null!==a&&rG(r,a)&&(t.flags|=32),aG(e,t),aU(e,t,s,n),t.child;case 6:return null===e&&oY(t),null;case 13:return a5(e,t,n);case 4:return iZ(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=iI(t,null,r,n):aU(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:o2(r,o),aK(e,t,r,o,n);case 7:return aU(e,t,t.pendingProps,n),t.child;case 8:return aU(e,t,t.pendingProps.children,n),t.child;case 12:return aU(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context;o=t.pendingProps;a=t.memoizedProps;s=o.value;od(o4,r._currentValue);r._currentValue=s;if(null!==a)if(n7(a.value,s)){if(a.children===o.children&&!op.current){t=sn(e,t,n);break e}}else for(a=t.child,null!==a&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var u=l.firstContext;null!==u;){if(u.context===r){if(1===a.tag){u=id(-1,n&-n);u.tag=2;var c=a.updateQueue;if(null!==c){c=c.shared;var f=c.pending;null===f?u.next=u:(u.next=f.next,f.next=u);c.pending=u}}a.lanes|=n;u=a.alternate;null!==u&&(u.lanes|=n);o9(a.return,n,t);l.lanes|=n;break}u=u.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){s=a.return;if(null===s)throw Error(i(341));s.lanes|=n;l=s.alternate;null!==l&&(l.lanes|=n);o9(s,n,t);s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}a=s.sibling;if(null!==a){a.return=s.return;s=a;break}s=s.return}a=s}aU(e,t,o.children,n);t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,ie(t,n),o=it(o),r=r(o),t.flags|=1,aU(e,t,r,n),t.child;case 14:return r=t.type,o=o2(r,t.pendingProps),o=o2(r.type,o),a$(e,t,r,o,n);case 15:return aq(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:o2(r,o),st(e,t),t.tag=1,om(r)?(e=!0,ob(t)):e=!1,ie(t,n),iS(t,r,o),ij(t,r,o,n),aJ(null,t,r,!0,e,n);case 19:return se(e,t,n);case 22:return aY(e,t,n)}throw Error(i(156,t.tag))};function lH(e,t){return eJ(e,t)}function lF(e,t,n,r){this.tag=e;this.key=n;this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null;this.index=0;this.ref=null;this.pendingProps=t;this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null;this.mode=r;this.subtreeFlags=this.flags=0;this.deletions=null;this.childLanes=this.lanes=0;this.alternate=null}function lV(e,t,n,r){return new lF(e,t,n,r)}function lW(e){e=e.prototype;return!(!e||!e.isReactComponent)}function lU(e){if("function"===typeof e)return lW(e)?1:0;if(void 0!==e&&null!==e){e=e.$$typeof;if(e===P)return 11;if(e===R)return 14}return 2}function lK(e,t){var n=e.alternate;null===n?(n=lV(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null);n.flags=e.flags&14680064;n.childLanes=e.childLanes;n.lanes=e.lanes;n.child=e.child;n.memoizedProps=e.memoizedProps;n.memoizedState=e.memoizedState;n.updateQueue=e.updateQueue;t=e.dependencies;n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext};n.sibling=e.sibling;n.index=e.index;n.ref=e.ref;return n}function l$(e,t,n,r,o,a){var s=2;r=e;if("function"===typeof e)lW(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case E:return lq(n.children,o,a,t);case _:s=8;o|=8;break;case I:return e=lV(12,n,t,o|2),e.elementType=I,e.lanes=a,e;case O:return e=lV(13,n,t,o),e.elementType=O,e.lanes=a,e;case A:return e=lV(19,n,t,o),e.elementType=A,e.lanes=a,e;case z:return lY(n,o,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case M:s=10;break e;case D:s=9;break e;case P:s=11;break e;case R:s=14;break e;case Z:s=16;r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}t=lV(s,n,t,o);t.elementType=e;t.type=r;t.lanes=a;return t}function lq(e,t,n,r){e=lV(7,e,r,t);e.lanes=n;return e}function lY(e,t,n,r){e=lV(22,e,r,t);e.elementType=z;e.lanes=n;e.stateNode={isHidden:!1};return e}function lG(e,t,n){e=lV(6,e,null,t);e.lanes=n;return e}function lX(e,t,n){t=lV(4,null!==e.children?e.children:[],e.key,t);t.lanes=n;t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation};return t}function lQ(e,t,n,r,o){this.tag=t;this.containerInfo=e;this.finishedWork=this.pingCache=this.current=this.pendingChildren=null;this.timeoutHandle=-1;this.callbackNode=this.pendingContext=this.context=null;this.callbackPriority=0;this.eventTimes=tg(0);this.expirationTimes=tg(-1);this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0;this.entanglements=tg(0);this.identifierPrefix=r;this.onRecoverableError=o;this.mutableSourceEagerHydrationData=null}function lJ(e,t,n,r,o,i,a,s,l){e=new lQ(e,t,n,s,l);1===t?(t=1,!0===i&&(t|=8)):t=0;i=lV(3,null,null,t);e.current=i;i.stateNode=e;i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null};iu(i);return e}function l0(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:T,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function l1(e){if(!e)return of;e=e._reactInternals;e:{if(e$(e)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(om(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(om(n))return ox(e,n,t)}return t}function l2(e,t,n,r,o,i,a,s,l){e=lJ(n,r,!0,e,o,i,a,s,l);e.context=l1(null);n=e.current;r=lu();o=lc(n);i=id(r,o);i.callback=void 0!==t&&null!==t?t:null;ih(n,i,o);e.current.lanes=o;tv(e,o,r);lf(e,r);return e}function l4(e,t,n,r){var o=t.current,i=lu(),a=lc(o);n=l1(n);null===t.context?t.context=n:t.pendingContext=n;t=id(i,a);t.payload={element:e};r=void 0===r?null:r;null!==r&&(t.callback=r);e=ih(o,t,a);null!==e&&(ld(e,o,a,i),ip(e,o,a));return a}function l5(e){e=e.current;if(!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function l3(e,t){e=e.memoizedState;if(null!==e&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function l8(e,t){l3(e,t);(e=e.alternate)&&l3(e,t)}function l6(){return null}var l7="function"===typeof reportError?reportError:function(e){console.error(e)};function l9(e){this._internalRoot=e}ue.prototype.render=l9.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));l4(e,t,null,null)};ue.prototype.unmount=l9.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;lx(function(){l4(null,e,null,null)});t[r7]=null}};function ue(e){this._internalRoot=e}ue.prototype.unstable_scheduleHydration=function(e){if(e){var t=tj();e={blockedOn:null,target:e,priority:t};for(var n=0;n<tO.length&&0!==t&&t<tO[n].priority;n++);tO.splice(n,0,e);0===n&&tN(e)}};function ut(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function un(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function uo(){}function ui(e,t,n,r,o){if(o){if("function"===typeof r){var i=r;r=function(){var e=l5(a);i.call(e)}}var a=l2(t,r,e,0,null,!1,!1,"",uo);e._reactRootContainer=a;e[r7]=a.current;rZ(8===e.nodeType?e.parentNode:e);lx();return a}for(;o=e.lastChild;)e.removeChild(o);if("function"===typeof r){var s=r;r=function(){var e=l5(l);s.call(e)}}var l=lJ(e,0,!1,null,null,!1,!1,"",uo);e._reactRootContainer=l;e[r7]=l.current;rZ(8===e.nodeType?e.parentNode:e);lx(function(){l4(t,l,n,r)});return l}function ua(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"===typeof o){var s=o;o=function(){var e=l5(a);s.call(e)}}l4(t,a,e,o)}else a=ui(n,t,e,o,r);return l5(a)}tb=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=tu(t.pendingLanes);0!==n&&(ty(t,n|1),lf(t,e4()),0===(sK&6)&&(s8=e4()+500,o_()))}break;case 13:lx(function(){var t=is(e,1);if(null!==t){var n=lu();ld(t,e,1,n)}}),l8(e,1)}};tS=function(e){if(13===e.tag){var t=is(e,134217728);if(null!==t){var n=lu();ld(t,e,134217728,n)}l8(e,134217728)}};tk=function(e){if(13===e.tag){var t=lc(e),n=is(e,t);if(null!==n){var r=lu();ld(n,e,t,r)}l8(e,t)}};tj=function(){return tw};tC=function(e,t){var n=tw;try{return tw=e,t()}finally{tw=n}};eT=function(e,t,n){switch(t){case"input":er(e,n);t=n.name;if("radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]');for(t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=oa(r);if(!o)throw Error(i(90));Q(r);er(r,o)}}}break;case"textarea":ec(e,n);break;case"select":t=n.value,null!=t&&es(e,!!n.multiple,t,!1)}};eP=lw;eO=lx;var us={usingClientEntryPoint:!1,Events:[oo,oi,oa,eM,eD,lw]},ul={findFiberByHostInstance:on,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"};var uu={bundleType:ul.bundleType,version:ul.version,rendererPackageName:ul.rendererPackageName,rendererConfig:ul.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:j.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){e=eX(e);return null===e?null:e.stateNode},findFiberByHostInstance:ul.findFiberByHostInstance||l6,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var uc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!uc.isDisabled&&uc.supportsFiber)try{te=uc.inject(uu),tt=uc}catch(e){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=us;t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ut(t))throw Error(i(200));return l0(e,t,null,n)};t.createRoot=function(e,t){if(!ut(e))throw Error(i(299));var n=!1,r="",o=l7;null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError));t=lJ(e,1,!1,null,null,n,!1,r,o);e[r7]=t.current;rZ(8===e.nodeType?e.parentNode:e);return new l9(t)};t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(i(188));e=Object.keys(e).join(",");throw Error(i(268,e))}e=eX(t);e=null===e?null:e.stateNode;return e};t.flushSync=function(e){return lx(e)};t.hydrate=function(e,t,n){if(!un(t))throw Error(i(200));return ua(null,e,t,!0,n)};t.hydrateRoot=function(e,t,n){if(!ut(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",s=l7;null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError));t=l2(t,null,e,1,null!=n?n:null,o,!1,a,s);e[r7]=t.current;rZ(e);if(r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new ue(t)};t.render=function(e,t,n){if(!un(t))throw Error(i(200));return ua(null,e,t,!1,n)};t.unmountComponentAtNode=function(e){if(!un(e))throw Error(i(40));return e._reactRootContainer?(lx(function(){ua(null,null,e,!1,function(){e._reactRootContainer=null;e[r7]=null})}),!0):!1};t.unstable_batchedUpdates=lw;t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!un(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return ua(e,t,n,!1,r)};t.version="18.2.0-next-9e3b772b8-20220608"},6279:function(e,t,n){"use strict";var r;var o=n(42457);if(true){t.s=o.createRoot;r=o.hydrateRoot}else{var i}},42457:function(e,t,n){"use strict";function r(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__==="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=="function"){return}if(false){}try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){console.error(e)}}if(true){r();e.exports=n(33936)}else{}},51996:function(e,t){"use strict";/** @license React v16.13.1
38
- * react-is.production.min.js
39
- *
40
- * Copyright (c) Facebook, Inc. and its affiliates.
41
- *
42
- * This source code is licensed under the MIT license found in the
43
- * LICENSE file in the root directory of this source tree.
44
- */var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,h=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,g=n?Symbol.for("react.suspense_list"):60120,v=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,w=n?Symbol.for("react.fundamental"):60117,x=n?Symbol.for("react.responder"):60118,b=n?Symbol.for("react.scope"):60119;function S(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type,e){case c:case f:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof,e){case u:case h:case m:case v:case l:return e;default:return t}}case o:return t}}}function k(e){return S(e)===f}t.AsyncMode=c;t.ConcurrentMode=f;t.ContextConsumer=u;t.ContextProvider=l;t.Element=r;t.ForwardRef=h;t.Fragment=i;t.Lazy=m;t.Memo=v;t.Portal=o;t.Profiler=s;t.StrictMode=a;t.Suspense=p;t.isAsyncMode=function(e){return k(e)||S(e)===c};t.isConcurrentMode=k;t.isContextConsumer=function(e){return S(e)===u};t.isContextProvider=function(e){return S(e)===l};t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r};t.isForwardRef=function(e){return S(e)===h};t.isFragment=function(e){return S(e)===i};t.isLazy=function(e){return S(e)===m};t.isMemo=function(e){return S(e)===v};t.isPortal=function(e){return S(e)===o};t.isProfiler=function(e){return S(e)===s};t.isStrictMode=function(e){return S(e)===a};t.isSuspense=function(e){return S(e)===p};t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===f||e===s||e===a||e===p||e===g||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===v||e.$$typeof===l||e.$$typeof===u||e.$$typeof===h||e.$$typeof===w||e.$$typeof===x||e.$$typeof===b||e.$$typeof===y)};t.typeOf=S},5356:function(e,t,n){"use strict";if(true){e.exports=n(51996)}else{}},17605:function(e,t,n){"use strict";n.r(t);n.d(t,{polyfill:function(){return a}});function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);if(e!==null&&e!==undefined){this.setState(e)}}function o(e){function t(t){var n=this.constructor.getDerivedStateFromProps(e,t);return n!==null&&n!==undefined?n:null}this.setState(t.bind(this))}function i(e,t){try{var n=this.props;var r=this.state;this.props=e;this.state=t;this.__reactInternalSnapshotFlag=true;this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n;this.state=r}}r.__suppressDeprecationWarning=true;o.__suppressDeprecationWarning=true;i.__suppressDeprecationWarning=true;function a(e){var t=e.prototype;if(!t||!t.isReactComponent){throw new Error("Can only polyfill class components")}if(typeof e.getDerivedStateFromProps!=="function"&&typeof t.getSnapshotBeforeUpdate!=="function"){return e}var n=null;var a=null;var s=null;if(typeof t.componentWillMount==="function"){n="componentWillMount"}else if(typeof t.UNSAFE_componentWillMount==="function"){n="UNSAFE_componentWillMount"}if(typeof t.componentWillReceiveProps==="function"){a="componentWillReceiveProps"}else if(typeof t.UNSAFE_componentWillReceiveProps==="function"){a="UNSAFE_componentWillReceiveProps"}if(typeof t.componentWillUpdate==="function"){s="componentWillUpdate"}else if(typeof t.UNSAFE_componentWillUpdate==="function"){s="UNSAFE_componentWillUpdate"}if(n!==null||a!==null||s!==null){var l=e.displayName||e.name;var u=typeof e.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+u+" but also contains the following legacy lifecycles:"+(n!==null?"\n "+n:"")+(a!==null?"\n "+a:"")+(s!==null?"\n "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\n"+"https://fb.me/react-async-component-lifecycle-hooks")}if(typeof e.getDerivedStateFromProps==="function"){t.componentWillMount=r;t.componentWillReceiveProps=o}if(typeof t.getSnapshotBeforeUpdate==="function"){if(typeof t.componentDidUpdate!=="function"){throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype")}t.componentWillUpdate=i;var c=t.componentDidUpdate;t.componentDidUpdate=function e(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,e,t,r)}}return e}},62151:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.bodyOpenClassName=t.portalClassName=undefined;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n){if(Object.prototype.hasOwnProperty.call(n,r)){e[r]=n[r]}}}return e};var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}return function(t,n,r){if(n)e(t.prototype,n);if(r)e(t,r);return t}}();var i=n(66204);var a=x(i);var s=n(42457);var l=x(s);var u=n(97641);var c=x(u);var f=n(65434);var h=x(f);var p=n(80377);var g=w(p);var v=n(71384);var m=x(v);var y=n(17605);function w(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n))t[n]=e[n]}}t.default=e;return t}}function x(e){return e&&e.__esModule?e:{default:e}}function b(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function S(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function k(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var j=t.portalClassName="ReactModalPortal";var C=t.bodyOpenClassName="ReactModal__Body--open";var T=v.canUseDOM&&l.default.createPortal!==undefined;var E=function e(e){return document.createElement(e)};var _=function e(){return T?l.default.createPortal:l.default.unstable_renderSubtreeIntoContainer};function I(e){return e()}var M=function(e){k(t,e);function t(){var e;var n,o,i;b(this,t);for(var s=arguments.length,u=Array(s),c=0;c<s;c++){u[c]=arguments[c]}return i=(n=(o=S(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),o),o.removePortal=function(){!T&&l.default.unmountComponentAtNode(o.node);var e=I(o.props.parentSelector);if(e&&e.contains(o.node)){e.removeChild(o.node)}else{console.warn('React-Modal: "parentSelector" prop did not returned any DOM '+"element. Make sure that the parent element is unmounted to "+"avoid any memory leaks.")}},o.portalRef=function(e){o.portal=e},o.renderPortal=function(e){var n=_();var i=n(o,a.default.createElement(h.default,r({defaultStyles:t.defaultStyles},e)),o.node);o.portalRef(i)},n),S(o,i)}o(t,[{key:"componentDidMount",value:function e(){if(!v.canUseDOM)return;if(!T){this.node=E("div")}this.node.className=this.props.portalClassName;var e=I(this.props.parentSelector);e.appendChild(this.node);!T&&this.renderPortal(this.props)}},{key:"getSnapshotBeforeUpdate",value:function e(e){var t=I(e.parentSelector);var n=I(this.props.parentSelector);return{prevParent:t,nextParent:n}}},{key:"componentDidUpdate",value:function e(e,t,n){if(!v.canUseDOM)return;var r=this.props,o=r.isOpen,i=r.portalClassName;if(e.portalClassName!==i){this.node.className=i}var a=n.prevParent,s=n.nextParent;if(s!==a){a.removeChild(this.node);s.appendChild(this.node)}if(!e.isOpen&&!o)return;!T&&this.renderPortal(this.props)}},{key:"componentWillUnmount",value:function e(){if(!v.canUseDOM||!this.node||!this.portal)return;var e=this.portal.state;var t=Date.now();var n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);if(n){if(!e.beforeClose){this.portal.closeWithTimeout()}setTimeout(this.removePortal,n-t)}else{this.removePortal()}}},{key:"render",value:function e(){if(!v.canUseDOM||!T){return null}if(!this.node&&T){this.node=E("div")}var e=_();return e(a.default.createElement(h.default,r({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)}}],[{key:"setAppElement",value:function e(e){g.setElement(e)}}]);return t}(i.Component);M.propTypes={isOpen:c.default.bool.isRequired,style:c.default.shape({content:c.default.object,overlay:c.default.object}),portalClassName:c.default.string,bodyOpenClassName:c.default.string,htmlOpenClassName:c.default.string,className:c.default.oneOfType([c.default.string,c.default.shape({base:c.default.string.isRequired,afterOpen:c.default.string.isRequired,beforeClose:c.default.string.isRequired})]),overlayClassName:c.default.oneOfType([c.default.string,c.default.shape({base:c.default.string.isRequired,afterOpen:c.default.string.isRequired,beforeClose:c.default.string.isRequired})]),appElement:c.default.oneOfType([c.default.instanceOf(m.default),c.default.instanceOf(v.SafeHTMLCollection),c.default.instanceOf(v.SafeNodeList),c.default.arrayOf(c.default.instanceOf(m.default))]),onAfterOpen:c.default.func,onRequestClose:c.default.func,closeTimeoutMS:c.default.number,ariaHideApp:c.default.bool,shouldFocusAfterRender:c.default.bool,shouldCloseOnOverlayClick:c.default.bool,shouldReturnFocusAfterClose:c.default.bool,preventScroll:c.default.bool,parentSelector:c.default.func,aria:c.default.object,data:c.default.object,role:c.default.string,contentLabel:c.default.string,shouldCloseOnEsc:c.default.bool,overlayRef:c.default.func,contentRef:c.default.func,id:c.default.string,overlayElement:c.default.func,contentElement:c.default.func};M.defaultProps={isOpen:false,portalClassName:j,bodyOpenClassName:C,role:"dialog",ariaHideApp:true,closeTimeoutMS:0,shouldFocusAfterRender:true,shouldCloseOnEsc:true,shouldCloseOnOverlayClick:true,shouldReturnFocusAfterClose:true,preventScroll:false,parentSelector:function e(){return document.body},overlayElement:function e(e,t){return a.default.createElement("div",e,t)},contentElement:function e(e,t){return a.default.createElement("div",e,t)}};M.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}};(0,y.polyfill)(M);if(false){}t["default"]=M},65434:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n){if(Object.prototype.hasOwnProperty.call(n,r)){e[r]=n[r]}}}return e};var o=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}return function(t,n,r){if(n)e(t.prototype,n);if(r)e(t,r);return t}}();var a=n(66204);var s=n(97641);var l=k(s);var u=n(50313);var c=S(u);var f=n(73273);var h=k(f);var p=n(80377);var g=S(p);var v=n(53576);var m=S(v);var y=n(71384);var w=k(y);var x=n(48598);var b=k(x);n(57631);function S(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n))t[n]=e[n]}}t.default=e;return t}}function k(e){return e&&e.__esModule?e:{default:e}}function j(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function C(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function T(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var E={overlay:"ReactModal__Overlay",content:"ReactModal__Content"};var _=function e(e){return e.code==="Tab"||e.keyCode===9};var I=function e(e){return e.code==="Escape"||e.keyCode===27};var M=0;var D=function(e){T(t,e);function t(e){j(this,t);var n=C(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.setOverlayRef=function(e){n.overlay=e;n.props.overlayRef&&n.props.overlayRef(e)};n.setContentRef=function(e){n.content=e;n.props.contentRef&&n.props.contentRef(e)};n.afterClose=function(){var e=n.props,t=e.appElement,r=e.ariaHideApp,o=e.htmlOpenClassName,i=e.bodyOpenClassName,a=e.parentSelector;var s=a&&a().ownerDocument||document;i&&m.remove(s.body,i);o&&m.remove(s.getElementsByTagName("html")[0],o);if(r&&M>0){M-=1;if(M===0){g.show(t)}}if(n.props.shouldFocusAfterRender){if(n.props.shouldReturnFocusAfterClose){c.returnFocus(n.props.preventScroll);c.teardownScopedFocus()}else{c.popWithoutFocus()}}if(n.props.onAfterClose){n.props.onAfterClose()}b.default.deregister(n)};n.open=function(){n.beforeOpen();if(n.state.afterOpen&&n.state.beforeClose){clearTimeout(n.closeTimer);n.setState({beforeClose:false})}else{if(n.props.shouldFocusAfterRender){c.setupScopedFocus(n.node);c.markForFocusLater()}n.setState({isOpen:true},function(){n.openAnimationFrame=requestAnimationFrame(function(){n.setState({afterOpen:true});if(n.props.isOpen&&n.props.onAfterOpen){n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})}})})}};n.close=function(){if(n.props.closeTimeoutMS>0){n.closeWithTimeout()}else{n.closeWithoutTimeout()}};n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:true})};n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:true,closesAt:e},function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())})};n.closeWithoutTimeout=function(){n.setState({beforeClose:false,isOpen:false,afterOpen:false,closesAt:null},n.afterClose)};n.handleKeyDown=function(e){if(_(e)){(0,h.default)(n.content,e)}if(n.props.shouldCloseOnEsc&&I(e)){e.stopPropagation();n.requestClose(e)}};n.handleOverlayOnClick=function(e){if(n.shouldClose===null){n.shouldClose=true}if(n.shouldClose&&n.props.shouldCloseOnOverlayClick){if(n.ownerHandlesClose()){n.requestClose(e)}else{n.focusContent()}}n.shouldClose=null};n.handleContentOnMouseUp=function(){n.shouldClose=false};n.handleOverlayOnMouseDown=function(e){if(!n.props.shouldCloseOnOverlayClick&&e.target==n.overlay){e.preventDefault()}};n.handleContentOnClick=function(){n.shouldClose=false};n.handleContentOnMouseDown=function(){n.shouldClose=false};n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)};n.ownerHandlesClose=function(){return n.props.onRequestClose};n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose};n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)};n.buildClassName=function(e,t){var r=(typeof t==="undefined"?"undefined":o(t))==="object"?t:{base:E[e],afterOpen:E[e]+"--after-open",beforeClose:E[e]+"--before-close"};var i=r.base;if(n.state.afterOpen){i=i+" "+r.afterOpen}if(n.state.beforeClose){i=i+" "+r.beforeClose}return typeof t==="string"&&t?i+" "+t:i};n.attributesFromObject=function(e,t){return Object.keys(t).reduce(function(n,r){n[e+"-"+r]=t[r];return n},{})};n.state={afterOpen:false,beforeClose:false};n.shouldClose=null;n.moveFromContentToOverlay=null;return n}i(t,[{key:"componentDidMount",value:function e(){if(this.props.isOpen){this.open()}}},{key:"componentDidUpdate",value:function e(e,t){if(false){}if(this.props.isOpen&&!e.isOpen){this.open()}else if(!this.props.isOpen&&e.isOpen){this.close()}if(this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen){this.focusContent()}}},{key:"componentWillUnmount",value:function e(){if(this.state.isOpen){this.afterClose()}clearTimeout(this.closeTimer);cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function e(){var e=this.props,t=e.appElement,n=e.ariaHideApp,r=e.htmlOpenClassName,o=e.bodyOpenClassName,i=e.parentSelector;var a=i&&i().ownerDocument||document;o&&m.add(a.body,o);r&&m.add(a.getElementsByTagName("html")[0],r);if(n){M+=1;g.hide(t)}b.default.register(this)}},{key:"render",value:function e(){var e=this.props,t=e.id,n=e.className,o=e.overlayClassName,i=e.defaultStyles,a=e.children;var s=n?{}:i.content;var l=o?{}:i.overlay;if(this.shouldBeClosed()){return null}var u={ref:this.setOverlayRef,className:this.buildClassName("overlay",o),style:r({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown};var c=r({id:t,ref:this.setContentRef,style:r({},s,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",r({modal:true},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId});var f=this.props.contentElement(c,a);return this.props.overlayElement(u,f)}}]);return t}(a.Component);D.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}};D.propTypes={isOpen:l.default.bool.isRequired,defaultStyles:l.default.shape({content:l.default.object,overlay:l.default.object}),style:l.default.shape({content:l.default.object,overlay:l.default.object}),className:l.default.oneOfType([l.default.string,l.default.object]),overlayClassName:l.default.oneOfType([l.default.string,l.default.object]),parentSelector:l.default.func,bodyOpenClassName:l.default.string,htmlOpenClassName:l.default.string,ariaHideApp:l.default.bool,appElement:l.default.oneOfType([l.default.instanceOf(w.default),l.default.instanceOf(y.SafeHTMLCollection),l.default.instanceOf(y.SafeNodeList),l.default.arrayOf(l.default.instanceOf(w.default))]),onAfterOpen:l.default.func,onAfterClose:l.default.func,onRequestClose:l.default.func,closeTimeoutMS:l.default.number,shouldFocusAfterRender:l.default.bool,shouldCloseOnOverlayClick:l.default.bool,shouldReturnFocusAfterClose:l.default.bool,preventScroll:l.default.bool,role:l.default.string,contentLabel:l.default.string,aria:l.default.object,data:l.default.object,children:l.default.node,shouldCloseOnEsc:l.default.bool,overlayRef:l.default.func,contentRef:l.default.func,id:l.default.string,overlayElement:l.default.func,contentElement:l.default.func,testId:l.default.string};t["default"]=D;e.exports=t["default"]},80377:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resetState=l;t.log=u;t.assertNodeList=c;t.setElement=f;t.validateElement=h;t.hide=p;t.show=g;t.documentNotReadyOrSSRTesting=v;var r=n(92879);var o=a(r);var i=n(71384);function a(e){return e&&e.__esModule?e:{default:e}}var s=null;function l(){if(s){if(s.removeAttribute){s.removeAttribute("aria-hidden")}else if(s.length!=null){s.forEach(function(e){return e.removeAttribute("aria-hidden")})}else{document.querySelectorAll(s).forEach(function(e){return e.removeAttribute("aria-hidden")})}}s=null}function u(){if(false){var e}}function c(e,t){if(!e||!e.length){throw new Error("react-modal: No elements were found for selector "+t+".")}}function f(e){var t=e;if(typeof t==="string"&&i.canUseDOM){var n=document.querySelectorAll(t);c(n,t);t=n}s=t||s;return s}function h(e){var t=e||s;if(t){return Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]}else{(0,o.default)(false,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" "));return[]}}function p(e){var t=true;var n=false;var r=undefined;try{for(var o=h(e)[Symbol.iterator](),i;!(t=(i=o.next()).done);t=true){var a=i.value;a.setAttribute("aria-hidden","true")}}catch(e){n=true;r=e}finally{try{if(!t&&o.return){o.return()}}finally{if(n){throw r}}}}function g(e){var t=true;var n=false;var r=undefined;try{for(var o=h(e)[Symbol.iterator](),i;!(t=(i=o.next()).done);t=true){var a=i.value;a.removeAttribute("aria-hidden")}}catch(e){n=true;r=e}finally{try{if(!t&&o.return){o.return()}}finally{if(n){throw r}}}}function v(){s=null}},57631:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resetState=u;t.log=c;var r=n(48598);var o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}var a=void 0,s=void 0,l=[];function u(){var e=[a,s];for(var t=0;t<e.length;t++){var n=e[t];if(!n)continue;n.parentNode&&n.parentNode.removeChild(n)}a=s=null;l=[]}function c(){console.log("bodyTrap ----------");console.log(l.length);var e=[a,s];for(var t=0;t<e.length;t++){var n=e[t];var r=n||{};console.log(r.nodeName,r.className,r.id)}console.log("edn bodyTrap ----------")}function f(){if(l.length===0){if(false){}return}l[l.length-1].focusContent()}function h(e,t){if(!a&&!s){a=document.createElement("div");a.setAttribute("data-react-modal-body-trap","");a.style.position="absolute";a.style.opacity="0";a.setAttribute("tabindex","0");a.addEventListener("focus",f);s=a.cloneNode();s.addEventListener("focus",f)}l=t;if(l.length>0){if(document.body.firstChild!==a){document.body.insertBefore(a,document.body.firstChild)}if(document.body.lastChild!==s){document.body.appendChild(s)}}else{if(a.parentElement){a.parentElement.removeChild(a)}if(s.parentElement){s.parentElement.removeChild(s)}}}o.default.subscribe(h)},53576:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resetState=i;t.log=a;var n={};var r={};function o(e,t){e.classList.remove(t)}function i(){var e=document.getElementsByTagName("html")[0];for(var t in n){o(e,n[t])}var i=document.body;for(var a in r){o(i,r[a])}n={};r={}}function a(){if(false){var e,t,n,r}}var s=function e(e,t){if(!e[t]){e[t]=0}e[t]+=1;return t};var l=function e(e,t){if(e[t]){e[t]-=1}return t};var u=function e(e,t,n){n.forEach(function(n){s(t,n);e.add(n)})};var c=function e(e,t,n){n.forEach(function(n){l(t,n);t[n]===0&&e.remove(n)})};var f=t.add=function e(e,t){return u(e.classList,e.nodeName.toLowerCase()=="html"?n:r,t.split(" "))};var h=t.remove=function e(e,t){return c(e.classList,e.nodeName.toLowerCase()=="html"?n:r,t.split(" "))}},50313:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resetState=u;t.log=c;t.handleBlur=f;t.handleFocus=h;t.markForFocusLater=p;t.returnFocus=g;t.popWithoutFocus=v;t.setupScopedFocus=m;t.teardownScopedFocus=y;var r=n(43674);var o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}var a=[];var s=null;var l=false;function u(){a=[]}function c(){if(false){}}function f(){l=true}function h(){if(l){l=false;if(!s){return}setTimeout(function(){if(s.contains(document.activeElement)){return}var e=(0,o.default)(s)[0]||s;e.focus()},0)}}function p(){a.push(document.activeElement)}function g(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;var t=null;try{if(a.length!==0){t=a.pop();t.focus({preventScroll:e})}return}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}}function v(){a.length>0&&a.pop()}function m(e){s=e;if(window.addEventListener){window.addEventListener("blur",f,false);document.addEventListener("focus",h,true)}else{window.attachEvent("onBlur",f);document.attachEvent("onFocus",h)}}function y(){s=null;if(window.addEventListener){window.removeEventListener("blur",f);document.removeEventListener("focus",h)}else{window.detachEvent("onBlur",f);document.detachEvent("onFocus",h)}}},48598:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.log=i;t.resetState=a;function n(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var r=function e(){var t=this;n(this,e);this.register=function(e){if(t.openInstances.indexOf(e)!==-1){if(false){}return}t.openInstances.push(e);t.emit("register")};this.deregister=function(e){var n=t.openInstances.indexOf(e);if(n===-1){if(false){}return}t.openInstances.splice(n,1);t.emit("deregister")};this.subscribe=function(e){t.subscribers.push(e)};this.emit=function(e){t.subscribers.forEach(function(n){return n(e,t.openInstances.slice())})};this.openInstances=[];this.subscribers=[]};var o=new r;function i(){console.log("portalOpenInstances ----------");console.log(o.openInstances.length);o.openInstances.forEach(function(e){return console.log(e)});console.log("end portalOpenInstances ----------")}function a(){o=new r}t["default"]=o},71384:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=undefined;var r=n(53797);var o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}var a=o.default;var s=a.canUseDOM?window.HTMLElement:{};var l=t.SafeHTMLCollection=a.canUseDOM?window.HTMLCollection:{};var u=t.SafeNodeList=a.canUseDOM?window.NodeList:{};var c=t.canUseDOM=a.canUseDOM;t["default"]=s},73273:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=s;var r=n(43674);var o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}function a(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:document;return e.activeElement.shadowRoot?a(e.activeElement.shadowRoot):e.activeElement}function s(e,t){var n=(0,o.default)(e);if(!n.length){t.preventDefault();return}var r=void 0;var i=t.shiftKey;var s=n[0];var l=n[n.length-1];var u=a();if(e===u){if(!i)return;r=l}if(l===u&&!i){r=s}if(s===u&&i){r=l}if(r){t.preventDefault();r.focus();return}var c=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);var f=c!=null&&c[1]!="Chrome"&&/\biPod\b|\biPad\b/g.exec(navigator.userAgent)==null;if(!f)return;var h=n.indexOf(u);if(h>-1){h+=i?-1:1}r=n[h];if(typeof r==="undefined"){t.preventDefault();r=i?l:s;r.focus();return}t.preventDefault();r.focus()}e.exports=t["default"]},43674:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=c;/*!
45
- * Adapted from jQuery UI core
46
- *
47
- * http://jqueryui.com
48
- *
49
- * Copyright 2014 jQuery Foundation and other contributors
50
- * Released under the MIT license.
51
- * http://jquery.org/license
52
- *
53
- * http://api.jqueryui.com/category/ui-core/
54
- */var n="none";var r="contents";var o=/input|select|textarea|button|object|iframe/;function i(e,t){return t.getPropertyValue("overflow")!=="visible"||e.scrollWidth<=0&&e.scrollHeight<=0}function a(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return true;try{var o=window.getComputedStyle(e);var a=o.getPropertyValue("display");return t?a!==r&&i(e,o):a===n}catch(e){console.warn("Failed to inspect element style");return false}}function s(e){var t=e;var n=e.getRootNode&&e.getRootNode();while(t){if(t===document.body)break;if(n&&t===n)t=n.host.parentNode;if(a(t))return false;t=t.parentNode}return true}function l(e,t){var n=e.nodeName.toLowerCase();var r=o.test(n)&&!e.disabled||(n==="a"?e.href||t:t);return r&&s(e)}function u(e){var t=e.getAttribute("tabindex");if(t===null)t=undefined;var n=isNaN(t);return(n||t>=0)&&l(e,!n)}function c(e){var t=[].slice.call(e.querySelectorAll("*"),0).reduce(function(e,t){return e.concat(!t.shadowRoot?[t]:c(t.shadowRoot))},[]);return t.filter(u)}e.exports=t["default"]},77216:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=n(62151);var o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}t["default"]=o.default;e.exports=t["default"]},37496:function(e,t,n){"use strict";n.d(t,{zt:function(){return g},I0:function(){return J},v9:function(){return er},oR:function(){return X}});var r=n(66204);var o=r.createContext(null);if(false){}var i=null&&o;function a(e){e()}var s=a;var l=function e(e){return s=e};var u=function e(){return s};var c={notify:function e(){}};function f(){var e=u();var t=null;var n=null;return{clear:function e(){t=null;n=null},notify:function n(){e(function(){var e=t;while(e){e.callback();e=e.next}})},get:function e(){var e=[];var n=t;while(n){e.push(n);n=n.next}return e},subscribe:function e(e){var r=true;var o=n={callback:e,next:null,prev:n};if(o.prev){o.prev.next=o}else{t=o}return function e(){if(!r||t===null)return;r=false;if(o.next){o.next.prev=o.prev}else{n=o.prev}if(o.prev){o.prev.next=o.next}else{t=o.next}}}}}var h=function(){function e(e,t){this.store=e;this.parentSub=t;this.unsubscribe=null;this.listeners=c;this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;t.addNestedSub=function e(e){this.trySubscribe();return this.listeners.subscribe(e)};t.notifyNestedSubs=function e(){this.listeners.notify()};t.handleChangeWrapper=function e(){if(this.onStateChange){this.onStateChange()}};t.isSubscribed=function e(){return Boolean(this.unsubscribe)};t.trySubscribe=function e(){if(!this.unsubscribe){this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper);this.listeners=f()}};t.tryUnsubscribe=function e(){if(this.unsubscribe){this.unsubscribe();this.unsubscribe=null;this.listeners.clear();this.listeners=c}};return e}();function p(e){var t=e.store,n=e.context,i=e.children;var a=(0,r.useMemo)(function(){var e=new h(t);e.onStateChange=e.notifyNestedSubs;return{store:t,subscription:e}},[t]);var s=(0,r.useMemo)(function(){return t.getState()},[t]);(0,r.useEffect)(function(){var e=a.subscription;e.trySubscribe();if(s!==t.getState()){e.notifyNestedSubs()}return function(){e.tryUnsubscribe();e.onStateChange=null}},[a,s]);var l=n||o;return r.createElement(l.Provider,{value:a},i)}if(false){}var g=p;var v=n(69060);var m=n(5356);var y=typeof window!=="undefined"&&typeof window.document!=="undefined"&&typeof window.document.createElement!=="undefined"?r.useLayoutEffect:r.useEffect;var w=null&&[];var x=null&&[null,null];var b=function e(e){try{return JSON.stringify(e)}catch(t){return String(e)}};function S(e,t){var n=e[1];return[t.payload,n+1]}function k(e,t,n){useIsomorphicLayoutEffect(function(){return e.apply(void 0,t)},n)}function j(e,t,n,r,o,i,a){e.current=r;t.current=o;n.current=false;if(i.current){i.current=null;a()}}function C(e,t,n,r,o,i,a,s,l,u){if(!e)return;var c=false;var f=null;var h=function e(){if(c){return}var e=t.getState();var n,h;try{n=r(e,o.current)}catch(e){h=e;f=e}if(!h){f=null}if(n===i.current){if(!a.current){l()}}else{i.current=n;s.current=n;a.current=true;u({type:"STORE_UPDATED",payload:{error:h}})}};n.onStateChange=h;n.trySubscribe();h();var p=function e(){c=true;n.tryUnsubscribe();n.onStateChange=null;if(f){throw f}};return p}var T=function e(){return[null,0]};function E(e,t){if(t===void 0){t={}}var n=t,r=n.getDisplayName,o=r===void 0?function(e){return"ConnectAdvanced("+e+")"}:r,i=n.methodName,a=i===void 0?"connectAdvanced":i,s=n.renderCountProp,l=s===void 0?undefined:s,u=n.shouldHandleStateChanges,c=u===void 0?true:u,f=n.storeKey,h=f===void 0?"store":f,p=n.withRef,g=p===void 0?false:p,v=n.forwardRef,m=v===void 0?false:v,y=n.context,b=y===void 0?ReactReduxContext:y,E=_objectWithoutPropertiesLoose(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]);if(false){var _}var I=b;return function t(t){if(false){}var n=t.displayName||t.name||"Component";var r=o(n);var i=_extends({},E,{getDisplayName:o,methodName:a,renderCountProp:l,shouldHandleStateChanges:c,storeKey:h,displayName:r,wrappedComponentName:n,WrappedComponent:t});var s=E.pure;function u(t){return e(t.dispatch,i)}var f=s?useMemo:function(e){return e()};function p(e){var n=useMemo(function(){var t=e.reactReduxForwardedRef,n=_objectWithoutPropertiesLoose(e,["reactReduxForwardedRef"]);return[e.context,t,n]},[e]),r=n[0],o=n[1],i=n[2];var a=useMemo(function(){return r&&r.Consumer&&isContextConsumer(React.createElement(r.Consumer,null))?r:I},[r,I]);var s=useContext(a);var l=Boolean(e.store)&&Boolean(e.store.getState)&&Boolean(e.store.dispatch);var h=Boolean(s)&&Boolean(s.store);if(false){}var p=l?e.store:s.store;var g=useMemo(function(){return u(p)},[p]);var v=useMemo(function(){if(!c)return x;var e=new Subscription(p,l?null:s.subscription);var t=e.notifyNestedSubs.bind(e);return[e,t]},[p,l,s]),m=v[0],y=v[1];var b=useMemo(function(){if(l){return s}return _extends({},s,{subscription:m})},[l,s,m]);var E=useReducer(S,w,T),_=E[0],M=_[0],D=E[1];if(M&&M.error){throw M.error}var P=useRef();var O=useRef(i);var A=useRef();var R=useRef(false);var Z=f(function(){if(A.current&&i===O.current){return A.current}return g(p.getState(),i)},[p,M,i]);k(j,[O,P,R,i,Z,A,y]);k(C,[c,p,m,g,O,P,R,A,y,D],[p,m,g]);var z=useMemo(function(){return React.createElement(t,_extends({},Z,{ref:o}))},[o,t,Z]);var N=useMemo(function(){if(c){return React.createElement(a.Provider,{value:b},z)}return z},[a,z,b]);return N}var g=s?React.memo(p):p;g.WrappedComponent=t;g.displayName=r;if(m){var v=React.forwardRef(function e(e,t){return React.createElement(g,_extends({},e,{reactReduxForwardedRef:t}))});v.displayName=r;v.WrappedComponent=t;return hoistStatics(v,t)}return hoistStatics(g,t)}}var _=n(65485);function I(e){return function t(t,n){var r=e(t,n);function o(){return r}o.dependsOnOwnProps=false;return o}}function M(e){return e.dependsOnOwnProps!==null&&e.dependsOnOwnProps!==undefined?Boolean(e.dependsOnOwnProps):e.length!==1}function D(e,t){return function t(t,n){var r=n.displayName;var o=function e(e,t){return o.dependsOnOwnProps?o.mapToProps(e,t):o.mapToProps(e)};o.dependsOnOwnProps=true;o.mapToProps=function t(t,n){o.mapToProps=e;o.dependsOnOwnProps=M(e);var r=o(t,n);if(typeof r==="function"){o.mapToProps=r;o.dependsOnOwnProps=M(r);r=o(t,n)}if(false){}return r};return o}};function P(e){return typeof e==="function"?D(e,"mapDispatchToProps"):undefined}function O(e){return!e?I(function(e){return{dispatch:e}}):undefined}function A(e){return e&&typeof e==="object"?I(function(t){return(0,_.DE)(e,t)}):undefined}var R=[P,O,A];function Z(e){return typeof e==="function"?D(e,"mapStateToProps"):undefined}function z(e){return!e?I(function(){return{}}):undefined}var N=[Z,z];var L=n(7896);function B(e,t,n){return(0,L.Z)({},n,{},e,{},t)}function H(e){return function t(t,n){var r=n.displayName,o=n.pure,i=n.areMergedPropsEqual;var a=false;var s;return function t(t,n,r){var l=e(t,n,r);if(a){if(!o||!i(l,s))s=l}else{a=true;s=l;if(false){}}return s}}}function F(e){return typeof e==="function"?H(e):undefined}function V(e){return!e?function(){return B}:undefined}var W=[F,V];function U(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function K(e,t){return e===t}function $(e){var t=e===void 0?{}:e,n=t.connectHOC,r=n===void 0?connectAdvanced:n,o=t.mapStateToPropsFactories,i=o===void 0?defaultMapStateToPropsFactories:o,a=t.mapDispatchToPropsFactories,s=a===void 0?defaultMapDispatchToPropsFactories:a,l=t.mergePropsFactories,u=l===void 0?defaultMergePropsFactories:l,c=t.selectorFactory,f=c===void 0?defaultSelectorFactory:c;return function e(e,t,n,o){if(o===void 0){o={}}var a=o,l=a.pure,c=l===void 0?true:l,h=a.areStatesEqual,p=h===void 0?K:h,g=a.areOwnPropsEqual,v=g===void 0?shallowEqual:g,m=a.areStatePropsEqual,y=m===void 0?shallowEqual:m,w=a.areMergedPropsEqual,x=w===void 0?shallowEqual:w,b=_objectWithoutPropertiesLoose(a,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]);var S=U(e,i,"mapStateToProps");var k=U(t,s,"mapDispatchToProps");var j=U(n,u,"mergeProps");return r(f,_extends({methodName:"connect",getDisplayName:function e(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:S,initMapDispatchToProps:k,initMergeProps:j,pure:c,areStatesEqual:p,areOwnPropsEqual:v,areStatePropsEqual:y,areMergedPropsEqual:x},b))}}var q=null&&$();function Y(){var e=(0,r.useContext)(o);if(false){}return e};function G(e){if(e===void 0){e=o}var t=e===o?Y:function(){return(0,r.useContext)(e)};return function e(){var e=t(),n=e.store;return n}}var X=G();function Q(e){if(e===void 0){e=o}var t=e===o?X:G(e);return function e(){var e=t();return e.dispatch}}var J=Q();var ee=function e(e,t){return e===t};function et(e,t,n,o){var i=(0,r.useReducer)(function(e){return e+1},0),a=i[1];var s=(0,r.useMemo)(function(){return new h(n,o)},[n,o]);var l=(0,r.useRef)();var u=(0,r.useRef)();var c=(0,r.useRef)();var f=(0,r.useRef)();var p=n.getState();var g;try{if(e!==u.current||p!==c.current||l.current){g=e(p)}else{g=f.current}}catch(e){if(l.current){e.message+="\nThe error may be correlated with this previous error:\n"+l.current.stack+"\n\n"}throw e}y(function(){u.current=e;c.current=p;f.current=g;l.current=undefined});y(function(){function e(){try{var e=u.current(n.getState());if(t(e,f.current)){return}f.current=e}catch(e){l.current=e}a()}s.onStateChange=e;s.trySubscribe();e();return function(){return s.tryUnsubscribe()}},[n,s]);return g}function en(e){if(e===void 0){e=o}var t=e===o?Y:function(){return(0,r.useContext)(e)};return function e(e,n){if(n===void 0){n=ee}if(false){}var o=t(),i=o.store,a=o.subscription;var s=et(e,n,i,a);(0,r.useDebugValue)(s);return s}}var er=en();var eo=n(42457);;l(eo.unstable_batchedUpdates)},45485:function(e,t,n){"use strict";n.d(t,{OL:function(){return O},VK:function(){return E},rU:function(){return P}});var r=n(66204);var o=n(59379);var i=n(45058);/**
55
- * React Router DOM v6.11.2
56
- *
57
- * Copyright (c) Remix Software Inc.
58
- *
59
- * This source code is licensed under the MIT license found in the
60
- * LICENSE.md file in the root directory of this source tree.
61
- *
62
- * @license MIT
63
- */function a(){a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n){if(Object.prototype.hasOwnProperty.call(n,r)){e[r]=n[r]}}}return e};return a.apply(this,arguments)}function s(e,t){if(e==null)return{};var n={};var r=Object.keys(e);var o,i;for(i=0;i<r.length;i++){o=r[i];if(t.indexOf(o)>=0)continue;n[o]=e[o]}return n}const l="get";const u="application/x-www-form-urlencoded";function c(e){return e!=null&&typeof e.tagName==="string"}function f(e){return c(e)&&e.tagName.toLowerCase()==="button"}function h(e){return c(e)&&e.tagName.toLowerCase()==="form"}function p(e){return c(e)&&e.tagName.toLowerCase()==="input"}function g(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function v(e,t){return e.button===0&&(!t||t==="_self")&&!g(e)}function m(e){if(e===void 0){e=""}return new URLSearchParams(typeof e==="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function y(e,t){let n=m(e);if(t){for(let e of t.keys()){if(!n.has(e)){t.getAll(e).forEach(t=>{n.append(e,t)})}}}return n}function w(e,t,n){let r;let o=null;let i;let a;if(h(e)){let s=t.submissionTrigger;if(t.action){o=t.action}else{let t=e.getAttribute("action");o=t?stripBasename(t,n):null}r=t.method||e.getAttribute("method")||l;i=t.encType||e.getAttribute("enctype")||u;a=new FormData(e);if(s&&s.name){a.append(s.name,s.value)}}else if(f(e)||p(e)&&(e.type==="submit"||e.type==="image")){let s=e.form;if(s==null){throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>')}if(t.action){o=t.action}else{let t=e.getAttribute("formaction")||s.getAttribute("action");o=t?stripBasename(t,n):null}r=t.method||e.getAttribute("formmethod")||s.getAttribute("method")||l;i=t.encType||e.getAttribute("formenctype")||s.getAttribute("enctype")||u;a=new FormData(s);if(e.name){a.append(e.name,e.value)}}else if(c(e)){throw new Error("Cannot submit element that is not <form>, <button>, or "+'<input type="submit|image">')}else{r=t.method||l;o=t.action||null;i=t.encType||u;if(e instanceof FormData){a=e}else{a=new FormData;if(e instanceof URLSearchParams){for(let[t,n]of e){a.append(t,n)}}else if(e!=null){for(let t of Object.keys(e)){a.append(t,e[t])}}}}return{action:o,method:r.toLowerCase(),encType:i,formData:a}}const x=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],b=["aria-current","caseSensitive","className","end","style","to","children"],S=null&&["reloadDocument","replace","method","action","onSubmit","fetcherKey","routeId","relative","preventScrollReset"];function k(e,t){return createRouter({basename:t==null?void 0:t.basename,future:a({},t==null?void 0:t.future,{v7_prependBasename:true}),history:createBrowserHistory({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||C(),routes:e,mapRouteProperties:UNSAFE_mapRouteProperties}).initialize()}function j(e,t){return createRouter({basename:t==null?void 0:t.basename,future:a({},t==null?void 0:t.future,{v7_prependBasename:true}),history:createHashHistory({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||C(),routes:e,mapRouteProperties:UNSAFE_mapRouteProperties}).initialize()}function C(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;if(t&&t.errors){t=a({},t,{errors:T(t.errors)})}return t}function T(e){if(!e)return null;let t=Object.entries(e);let n={};for(let[e,r]of t){if(r&&r.__type==="RouteErrorResponse"){n[e]=new ErrorResponse(r.status,r.statusText,r.data,r.internal===true)}else if(r&&r.__type==="Error"){let t=new Error(r.message);t.stack="";n[e]=t}else{n[e]=r}}return n}function E(e){let{basename:t,children:n,window:a}=e;let s=r.useRef();if(s.current==null){s.current=(0,i.lX)({window:a,v5Compat:true})}let l=s.current;let[u,c]=r.useState({action:l.action,location:l.location});r.useLayoutEffect(()=>l.listen(c),[l]);return r.createElement(o.F0,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:l})}function _(e){let{basename:t,children:n,window:r}=e;let o=React.useRef();if(o.current==null){o.current=createHashHistory({window:r,v5Compat:true})}let i=o.current;let[a,s]=React.useState({action:i.action,location:i.location});React.useLayoutEffect(()=>i.listen(s),[i]);return React.createElement(Router,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:i})}function I(e){let{basename:t,children:n,history:r}=e;const[o,i]=React.useState({action:r.action,location:r.location});React.useLayoutEffect(()=>r.listen(i),[r]);return React.createElement(Router,{basename:t,children:n,location:o.location,navigationType:o.action,navigator:r})}if(false){}const M=typeof window!=="undefined"&&typeof window.document!=="undefined"&&typeof window.document.createElement!=="undefined";const D=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;const P=r.forwardRef(function e(e,t){let{onClick:n,relative:l,reloadDocument:u,replace:c,state:f,target:h,to:p,preventScrollReset:g}=e,v=s(e,x);let{basename:m}=r.useContext(o.Us);let y;let w=false;if(typeof p==="string"&&D.test(p)){y=p;if(M){try{let e=new URL(window.location.href);let t=p.startsWith("//")?new URL(e.protocol+p):new URL(p);let n=(0,i.Zn)(t.pathname,m);if(t.origin===e.origin&&n!=null){p=n+t.search+t.hash}else{w=true}}catch(e){false?0:void 0}}}let b=(0,o.oQ)(p,{relative:l});let S=F(p,{replace:c,state:f,target:h,preventScrollReset:g,relative:l});function k(e){if(n)n(e);if(!e.defaultPrevented){S(e)}}return r.createElement("a",a({},v,{href:y||b,onClick:w||u?n:k,ref:t,target:h}))});if(false){}const O=r.forwardRef(function e(e,t){let{"aria-current":n="page",caseSensitive:i=false,className:l="",end:u=false,style:c,to:f,children:h}=e,p=s(e,b);let g=(0,o.WU)(f,{relative:p.relative});let v=(0,o.TH)();let m=r.useContext(o.FR);let{navigator:y}=r.useContext(o.Us);let w=y.encodeLocation?y.encodeLocation(g).pathname:g.pathname;let x=v.pathname;let S=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;if(!i){x=x.toLowerCase();S=S?S.toLowerCase():null;w=w.toLowerCase()}let k=x===w||!u&&x.startsWith(w)&&x.charAt(w.length)==="/";let j=S!=null&&(S===w||!u&&S.startsWith(w)&&S.charAt(w.length)==="/");let C=k?n:undefined;let T;if(typeof l==="function"){T=l({isActive:k,isPending:j})}else{T=[l,k?"active":null,j?"pending":null].filter(Boolean).join(" ")}let E=typeof c==="function"?c({isActive:k,isPending:j}):c;return r.createElement(P,a({},p,{"aria-current":C,className:T,ref:t,style:E,to:f}),typeof h==="function"?h({isActive:k,isPending:j}):h)});if(false){}const A=null&&React.forwardRef((e,t)=>{return React.createElement(R,a({},e,{ref:t}))});if(false){}const R=null&&React.forwardRef((e,t)=>{let{reloadDocument:n,replace:r,method:o=l,action:i,onSubmit:u,fetcherKey:c,routeId:f,relative:h,preventScrollReset:p}=e,g=s(e,S);let v=U(c,f);let m=o.toLowerCase()==="get"?"get":"post";let y=K(i,{relative:h});let w=e=>{u&&u(e);if(e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter;let n=(t==null?void 0:t.getAttribute("formmethod"))||o;v(t||e.currentTarget,{method:n,replace:r,relative:h,preventScrollReset:p})};return React.createElement("form",a({ref:t,method:m,action:y,onSubmit:n?u:w},g))});if(false){}function Z(e){let{getKey:t,storageKey:n}=e;J({getKey:t,storageKey:n});return null}if(false){}var z;(function(e){e["UseScrollRestoration"]="useScrollRestoration";e["UseSubmitImpl"]="useSubmitImpl";e["UseFetcher"]="useFetcher"})(z||(z={}));var N;(function(e){e["UseFetchers"]="useFetchers";e["UseScrollRestoration"]="useScrollRestoration"})(N||(N={}));function L(e){return e+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function B(e){let t=React.useContext(UNSAFE_DataRouterContext);!t?false?0:UNSAFE_invariant(false):void 0;return t}function H(e){let t=React.useContext(UNSAFE_DataRouterStateContext);!t?false?0:UNSAFE_invariant(false):void 0;return t}function F(e,t){let{target:n,replace:a,state:s,preventScrollReset:l,relative:u}=t===void 0?{}:t;let c=(0,o.s0)();let f=(0,o.TH)();let h=(0,o.WU)(e,{relative:u});return r.useCallback(t=>{if(v(t,n)){t.preventDefault();let n=a!==undefined?a:(0,i.Ep)(f)===(0,i.Ep)(h);c(e,{replace:n,state:s,preventScrollReset:l,relative:u})}},[f,c,h,a,s,n,e,l,u])}function V(e){false?0:void 0;let t=React.useRef(m(e));let n=React.useRef(false);let r=useLocation();let o=React.useMemo(()=>y(r.search,n.current?null:t.current),[r.search]);let i=useNavigate();let a=React.useCallback((e,t)=>{const r=m(typeof e==="function"?e(o):e);n.current=true;i("?"+r,t)},[i,o]);return[o,a]}function W(){return U()}function U(e,t){let{router:n}=B(z.UseSubmitImpl);let{basename:r}=React.useContext(UNSAFE_NavigationContext);let o=UNSAFE_useRouteId();return React.useCallback(function(i,s){if(s===void 0){s={}}if(typeof document==="undefined"){throw new Error("You are calling submit during the server render. "+"Try calling submit within a `useEffect` or callback instead.")}let{action:l,method:u,encType:c,formData:f}=w(i,s,r);let h={preventScrollReset:s.preventScrollReset,formData:f,formMethod:u,formEncType:c};if(e){!(t!=null)?false?0:UNSAFE_invariant(false):void 0;n.fetch(e,t,l,h)}else{n.navigate(l,a({},h,{replace:s.replace,fromRouteId:o}))}},[n,r,e,t,o])}function K(e,t){let{relative:n}=t===void 0?{}:t;let{basename:r}=React.useContext(UNSAFE_NavigationContext);let o=React.useContext(UNSAFE_RouteContext);!o?false?0:UNSAFE_invariant(false):void 0;let[i]=o.matches.slice(-1);let s=a({},useResolvedPath(e?e:".",{relative:n}));let l=useLocation();if(e==null){s.search=l.search;s.hash=l.hash;if(i.route.index){let e=new URLSearchParams(s.search);e.delete("index");s.search=e.toString()?"?"+e.toString():""}}if((!e||e===".")&&i.route.index){s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"}if(r!=="/"){s.pathname=s.pathname==="/"?r:joinPaths([r,s.pathname])}return createPath(s)}function $(e,t){let n=React.forwardRef((n,r)=>{return React.createElement(R,a({},n,{ref:r,fetcherKey:e,routeId:t}))});if(false){}return n}let q=0;function Y(){var e;let{router:t}=B(z.UseFetcher);let n=React.useContext(UNSAFE_RouteContext);!n?false?0:UNSAFE_invariant(false):void 0;let r=(e=n.matches[n.matches.length-1])==null?void 0:e.route.id;!(r!=null)?false?0:UNSAFE_invariant(false):void 0;let[o]=React.useState(()=>String(++q));let[i]=React.useState(()=>{!r?false?0:UNSAFE_invariant(false):void 0;return $(o,r)});let[s]=React.useState(()=>e=>{!t?false?0:UNSAFE_invariant(false):void 0;!r?false?0:UNSAFE_invariant(false):void 0;t.fetch(o,r,e)});let l=U(o,r);let u=t.getFetcher(o);let c=React.useMemo(()=>a({Form:i,submit:l,load:s},u),[u,i,l,s]);React.useEffect(()=>{return()=>{if(!t){console.warn("No router available to clean up from useFetcher()");return}t.deleteFetcher(o)}},[t,o]);return c}function G(){let e=H(N.UseFetchers);return[...e.fetchers.values()]}const X="react-router-scroll-positions";let Q={};function J(e){let{getKey:t,storageKey:n}=e===void 0?{}:e;let{router:r}=B(z.UseScrollRestoration);let{restoreScrollPosition:o,preventScrollReset:i}=H(N.UseScrollRestoration);let a=useLocation();let s=useMatches();let l=useNavigation();React.useEffect(()=>{window.history.scrollRestoration="manual";return()=>{window.history.scrollRestoration="auto"}},[]);et(React.useCallback(()=>{if(l.state==="idle"){let e=(t?t(a,s):null)||a.key;Q[e]=window.scrollY}sessionStorage.setItem(n||X,JSON.stringify(Q));window.history.scrollRestoration="auto"},[n,t,l.state,a,s]));if(typeof document!=="undefined"){React.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(n||X);if(e){Q=JSON.parse(e)}}catch(e){}},[n]);React.useLayoutEffect(()=>{let e=r==null?void 0:r.enableScrollRestoration(Q,()=>window.scrollY,t);return()=>e&&e()},[r,t]);React.useLayoutEffect(()=>{if(o===false){return}if(typeof o==="number"){window.scrollTo(0,o);return}if(a.hash){let e=document.getElementById(a.hash.slice(1));if(e){e.scrollIntoView();return}}if(i===true){return}window.scrollTo(0,0)},[a,o,i])}}function ee(e,t){let{capture:n}=t||{};React.useEffect(()=>{let t=n!=null?{capture:n}:undefined;window.addEventListener("beforeunload",e,t);return()=>{window.removeEventListener("beforeunload",e,t)}},[e,n])}function et(e,t){let{capture:n}=t||{};React.useEffect(()=>{let t=n!=null?{capture:n}:undefined;window.addEventListener("pagehide",e,t);return()=>{window.removeEventListener("pagehide",e,t)}},[e,n])}function en(e){let{when:t,message:n}=e;let r=unstable_useBlocker(t);React.useEffect(()=>{if(r.state==="blocked"&&!t){r.reset()}},[r,t]);React.useEffect(()=>{if(r.state==="blocked"){let e=window.confirm(n);if(e){setTimeout(r.proceed,0)}else{r.reset()}}},[r,n])}},59379:function(e,t,n){"use strict";n.d(t,{AW:function(){return el},F0:function(){return eu},FR:function(){return s},Fg:function(){return ea},TH:function(){return v},UO:function(){return T},Us:function(){return u},WU:function(){return E},Z5:function(){return ec},bS:function(){return y},oQ:function(){return p},s0:function(){return b}});var r=n(66204);var o=n(45058);/**
64
- * React Router v6.11.2
65
- *
66
- * Copyright (c) Remix Software Inc.
67
- *
68
- * This source code is licensed under the MIT license found in the
69
- * LICENSE.md file in the root directory of this source tree.
70
- *
71
- * @license MIT
72
- */function i(){i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n){if(Object.prototype.hasOwnProperty.call(n,r)){e[r]=n[r]}}}return e};return i.apply(this,arguments)}const a=r.createContext(null);if(false){}const s=r.createContext(null);if(false){}const l=r.createContext(null);if(false){}const u=r.createContext(null);if(false){}const c=r.createContext(null);if(false){}const f=r.createContext({outlet:null,matches:[],isDataRoute:false});if(false){}const h=r.createContext(null);if(false){}function p(e,t){let{relative:n}=t===void 0?{}:t;!g()?false?0:(0,o.J0)(false):void 0;let{basename:i,navigator:a}=r.useContext(u);let{hash:s,pathname:l,search:c}=E(e,{relative:n});let f=l;if(i!=="/"){f=l==="/"?i:(0,o.RQ)([i,l])}return a.createHref({pathname:f,search:c,hash:s})}function g(){return r.useContext(c)!=null}function v(){!g()?false?0:(0,o.J0)(false):void 0;return r.useContext(c).location}function m(){return React.useContext(c).navigationType}function y(e){!g()?false?0:(0,o.J0)(false):void 0;let{pathname:t}=v();return r.useMemo(()=>(0,o.LX)(e,t),[t,e])}const w=null&&"You should call navigate() in a React.useEffect(), not when "+"your component is first rendered.";function x(e){let t=r.useContext(u).static;if(!t){r.useLayoutEffect(e)}}function b(){let{isDataRoute:e}=r.useContext(f);return e?ee():S()}function S(){!g()?false?0:(0,o.J0)(false):void 0;let e=r.useContext(a);let{basename:t,navigator:n}=r.useContext(u);let{matches:i}=r.useContext(f);let{pathname:s}=v();let l=JSON.stringify((0,o.Zq)(i).map(e=>e.pathnameBase));let c=r.useRef(false);x(()=>{c.current=true});let h=r.useCallback(function(r,i){if(i===void 0){i={}}false?0:void 0;if(!c.current)return;if(typeof r==="number"){n.go(r);return}let a=(0,o.pC)(r,JSON.parse(l),s,i.relative==="path");if(e==null&&t!=="/"){a.pathname=a.pathname==="/"?t:(0,o.RQ)([t,a.pathname])}(!!i.replace?n.replace:n.push)(a,i.state,i)},[t,n,l,s,e]);return h}const k=null&&React.createContext(null);function j(){return React.useContext(k)}function C(e){let t=React.useContext(f).outlet;if(t){return React.createElement(k.Provider,{value:e},t)}return t}function T(){let{matches:e}=r.useContext(f);let t=e[e.length-1];return t?t.params:{}}function E(e,t){let{relative:n}=t===void 0?{}:t;let{matches:i}=r.useContext(f);let{pathname:a}=v();let s=JSON.stringify((0,o.Zq)(i).map(e=>e.pathnameBase));return r.useMemo(()=>(0,o.pC)(e,JSON.parse(s),a,n==="path"),[e,s,a,n])}function _(e,t){return I(e,t)}function I(e,t,n){!g()?false?0:(0,o.J0)(false):void 0;let{navigator:a}=r.useContext(u);let{matches:s}=r.useContext(f);let l=s[s.length-1];let h=l?l.params:{};let p=l?l.pathname:"/";let m=l?l.pathnameBase:"/";let y=l&&l.route;if(false){}let w=v();let x;if(t){var b;let e=typeof t==="string"?(0,o.cP)(t):t;!(m==="/"||((b=e.pathname)==null?void 0:b.startsWith(m)))?false?0:(0,o.J0)(false):void 0;x=e}else{x=w}let S=x.pathname||"/";let k=m==="/"?S:S.slice(m.length)||"/";let j=(0,o.fp)(e,{pathname:k});if(false){}let C=A(j&&j.map(e=>Object.assign({},e,{params:Object.assign({},h,e.params),pathname:(0,o.RQ)([m,a.encodeLocation?a.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:e.pathnameBase==="/"?m:(0,o.RQ)([m,a.encodeLocation?a.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),s,n);if(t&&C){return r.createElement(c.Provider,{value:{location:i({pathname:"/",search:"",hash:"",state:null,key:"default"},x),navigationType:o.aU.Pop}},C)}return C}function M(){let e=Y();let t=(0,o.WK)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e);let n=e instanceof Error?e.stack:null;let i="rgba(200,200,200, 0.5)";let a={padding:"0.5rem",backgroundColor:i};let s={padding:"2px 4px",backgroundColor:i};let l=null;if(false){}return r.createElement(r.Fragment,null,r.createElement("h2",null,"Unexpected Application Error!"),r.createElement("h3",{style:{fontStyle:"italic"}},t),n?r.createElement("pre",{style:a},n):null,l)}const D=r.createElement(M,null);class P extends r.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){if(t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"){return{error:e.error,location:e.location,revalidation:e.revalidation}}return{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 this.state.error?r.createElement(f.Provider,{value:this.props.routeContext},r.createElement(h.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function O(e){let{routeContext:t,match:n,children:o}=e;let i=r.useContext(a);if(i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)){i.staticContext._deepestRenderedBoundaryId=n.route.id}return r.createElement(f.Provider,{value:t},o)}function A(e,t,n){var i;if(t===void 0){t=[]}if(n===void 0){n=null}if(e==null){var a;if((a=n)!=null&&a.errors){e=n.matches}else{return null}}let s=e;let l=(i=n)==null?void 0:i.errors;if(l!=null){let e=s.findIndex(e=>e.route.id&&(l==null?void 0:l[e.route.id]));!(e>=0)?false?0:(0,o.J0)(false):void 0;s=s.slice(0,Math.min(s.length,e+1))}return s.reduceRight((e,o,i)=>{let a=o.route.id?l==null?void 0:l[o.route.id]:null;let u=null;if(n){u=o.route.errorElement||D}let c=t.concat(s.slice(0,i+1));let f=()=>{let t;if(a){t=u}else if(o.route.Component){t=r.createElement(o.route.Component,null)}else if(o.route.element){t=o.route.element}else{t=e}return r.createElement(O,{match:o,routeContext:{outlet:e,matches:c,isDataRoute:n!=null},children:t})};return n&&(o.route.ErrorBoundary||o.route.errorElement||i===0)?r.createElement(P,{location:n.location,revalidation:n.revalidation,component:u,error:a,children:f(),routeContext:{outlet:null,matches:c,isDataRoute:true}}):f()},null)}var R;(function(e){e["UseBlocker"]="useBlocker";e["UseRevalidator"]="useRevalidator";e["UseNavigateStable"]="useNavigate"})(R||(R={}));var Z;(function(e){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"})(Z||(Z={}));function z(e){return e+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function N(e){let t=r.useContext(a);!t?false?0:(0,o.J0)(false):void 0;return t}function L(e){let t=r.useContext(s);!t?false?0:(0,o.J0)(false):void 0;return t}function B(e){let t=r.useContext(f);!t?false?0:(0,o.J0)(false):void 0;return t}function H(e){let t=B(e);let n=t.matches[t.matches.length-1];!n.route.id?false?0:(0,o.J0)(false):void 0;return n.route.id}function F(){return H(Z.UseRouteId)}function V(){let e=L(Z.UseNavigation);return e.navigation}function W(){let e=N(R.UseRevalidator);let t=L(Z.UseRevalidator);return{revalidate:e.router.revalidate,state:t.revalidation}}function U(){let{matches:e,loaderData:t}=L(Z.UseMatches);return React.useMemo(()=>e.map(e=>{let{pathname:n,params:r}=e;return{id:e.route.id,pathname:n,params:r,data:t[e.route.id],handle:e.route.handle}}),[e,t])}function K(){let e=L(Z.UseLoaderData);let t=H(Z.UseLoaderData);if(e.errors&&e.errors[t]!=null){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")");return undefined}return e.loaderData[t]}function $(e){let t=L(Z.UseRouteLoaderData);return t.loaderData[e]}function q(){let e=L(Z.UseActionData);let t=React.useContext(f);!t?false?0:UNSAFE_invariant(false):void 0;return Object.values((e==null?void 0:e.actionData)||{})[0]}function Y(){var e;let t=r.useContext(h);let n=L(Z.UseRouteError);let o=H(Z.UseRouteError);if(t){return t}return(e=n.errors)==null?void 0:e[o]}function G(){let e=React.useContext(l);return e==null?void 0:e._data}function X(){let e=React.useContext(l);return e==null?void 0:e._error}let Q=0;function J(e){let{router:t}=N(R.UseBlocker);let n=L(Z.UseBlocker);let[r]=React.useState(()=>String(++Q));let o=React.useCallback(t=>{return typeof e==="function"?!!e(t):!!e},[e]);let i=t.getBlocker(r,o);React.useEffect(()=>()=>t.deleteBlocker(r),[t,r]);return n.blockers.get(r)||i}function ee(){let{router:e}=N(R.UseNavigateStable);let t=H(Z.UseNavigateStable);let n=r.useRef(false);x(()=>{n.current=true});let o=r.useCallback(function(r,o){if(o===void 0){o={}}false?0:void 0;if(!n.current)return;if(typeof r==="number"){e.navigate(r)}else{e.navigate(r,i({fromRouteId:t},o))}},[e,t]);return o}const et={};function en(e,t,n){if(!t&&!et[e]){et[e]=true;false?0:void 0}}function er(e){let{fallbackElement:t,router:n}=e;let[r,o]=React.useState(n.state);React.useLayoutEffect(()=>n.subscribe(o),[n,o]);let i=React.useMemo(()=>{return{createHref:n.createHref,encodeLocation:n.encodeLocation,go:e=>n.navigate(e),push:(e,t,r)=>n.navigate(e,{state:t,preventScrollReset:r==null?void 0:r.preventScrollReset}),replace:(e,t,r)=>n.navigate(e,{replace:true,state:t,preventScrollReset:r==null?void 0:r.preventScrollReset})}},[n]);let l=n.basename||"/";let u=React.useMemo(()=>({router:n,navigator:i,static:false,basename:l}),[n,i,l]);return React.createElement(React.Fragment,null,React.createElement(a.Provider,{value:u},React.createElement(s.Provider,{value:r},React.createElement(eu,{basename:n.basename,location:n.state.location,navigationType:n.state.historyAction,navigator:i},n.state.initialized?React.createElement(eo,{routes:n.routes,state:r}):t))),null)}function eo(e){let{routes:t,state:n}=e;return I(t,undefined,n)}function ei(e){let{basename:t,children:n,initialEntries:r,initialIndex:o}=e;let i=React.useRef();if(i.current==null){i.current=createMemoryHistory({initialEntries:r,initialIndex:o,v5Compat:true})}let a=i.current;let[s,l]=React.useState({action:a.action,location:a.location});React.useLayoutEffect(()=>a.listen(l),[a]);return React.createElement(eu,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:a})}function ea(e){let{to:t,replace:n,state:i,relative:a}=e;!g()?false?0:(0,o.J0)(false):void 0;false?0:void 0;let{matches:s}=r.useContext(f);let{pathname:l}=v();let u=b();let c=(0,o.pC)(t,(0,o.Zq)(s).map(e=>e.pathnameBase),l,a==="path");let h=JSON.stringify(c);r.useEffect(()=>u(JSON.parse(h),{replace:n,state:i,relative:a}),[u,h,a,n,i]);return null}function es(e){return C(e.context)}function el(e){false?0:(0,o.J0)(false)}function eu(e){let{basename:t="/",children:n=null,location:i,navigationType:a=o.aU.Pop,navigator:s,static:l=false}=e;!!g()?false?0:(0,o.J0)(false):void 0;let f=t.replace(/^\/*/,"/");let h=r.useMemo(()=>({basename:f,navigator:s,static:l}),[f,s,l]);if(typeof i==="string"){i=(0,o.cP)(i)}let{pathname:p="/",search:v="",hash:m="",state:y=null,key:w="default"}=i;let x=r.useMemo(()=>{let e=(0,o.Zn)(p,f);if(e==null){return null}return{location:{pathname:e,search:v,hash:m,state:y,key:w},navigationType:a}},[f,p,v,m,y,w,a]);false?0:void 0;if(x==null){return null}return r.createElement(u.Provider,{value:h},r.createElement(c.Provider,{children:n,value:x}))}function ec(e){let{children:t,location:n}=e;return _(ev(t),n)}function ed(e){let{children:t,errorElement:n,resolve:r}=e;return React.createElement(ep,{resolve:r,errorElement:n},React.createElement(eg,null,t))}var ef;(function(e){e[e["pending"]=0]="pending";e[e["success"]=1]="success";e[e["error"]=2]="error"})(ef||(ef={}));const eh=new Promise(()=>{});class ep extends r.Component{constructor(e){super(e);this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){console.error("<Await> caught the following error during render",e,t)}render(){let{children:e,errorElement:t,resolve:n}=this.props;let i=null;let a=ef.pending;if(!(n instanceof Promise)){a=ef.success;i=Promise.resolve();Object.defineProperty(i,"_tracked",{get:()=>true});Object.defineProperty(i,"_data",{get:()=>n})}else if(this.state.error){a=ef.error;let e=this.state.error;i=Promise.reject().catch(()=>{});Object.defineProperty(i,"_tracked",{get:()=>true});Object.defineProperty(i,"_error",{get:()=>e})}else if(n._tracked){i=n;a=i._error!==undefined?ef.error:i._data!==undefined?ef.success:ef.pending}else{a=ef.pending;Object.defineProperty(n,"_tracked",{get:()=>true});i=n.then(e=>Object.defineProperty(n,"_data",{get:()=>e}),e=>Object.defineProperty(n,"_error",{get:()=>e}))}if(a===ef.error&&i._error instanceof o.X3){throw eh}if(a===ef.error&&!t){throw i._error}if(a===ef.error){return r.createElement(l.Provider,{value:i,children:t})}if(a===ef.success){return r.createElement(l.Provider,{value:i,children:e})}throw i}}function eg(e){let{children:t}=e;let n=G();let r=typeof t==="function"?t(n):t;return React.createElement(React.Fragment,null,r)}function ev(e,t){if(t===void 0){t=[]}let n=[];r.Children.forEach(e,(e,i)=>{if(!r.isValidElement(e)){return}let a=[...t,i];if(e.type===r.Fragment){n.push.apply(n,ev(e.props.children,a));return}!(e.type===el)?false?0:(0,o.J0)(false):void 0;!(!e.props.index||!e.props.children)?false?0:(0,o.J0)(false):void 0;let s={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:e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};if(e.props.children){s.children=ev(e.props.children,a)}n.push(s)});return n}function em(e){return A(e)}function ey(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};if(e.Component){if(false){}Object.assign(t,{element:React.createElement(e.Component),Component:undefined})}if(e.ErrorBoundary){if(false){}Object.assign(t,{errorElement:React.createElement(e.ErrorBoundary),ErrorBoundary:undefined})}return t}function ew(e,t){return createRouter({basename:t==null?void 0:t.basename,future:i({},t==null?void 0:t.future,{v7_prependBasename:true}),history:createMemoryHistory({initialEntries:t==null?void 0:t.initialEntries,initialIndex:t==null?void 0:t.initialIndex}),hydrationData:t==null?void 0:t.hydrationData,routes:e,mapRouteProperties:ey}).initialize()}},13015:function(e,t,n){"use strict";n.d(t,{q:function(){return rC},vc:function(){return t8},q_:function(){return nY},Yz:function(){return n0}});var r=b(),o=e=>v(e,r),i=b();o.write=e=>v(e,i);var a=b();o.onStart=e=>v(e,a);var s=b();o.onFrame=e=>v(e,s);var l=b();o.onFinish=e=>v(e,l);var u=[];o.setTimeout=(e,t)=>{let n=o.now()+t,r=()=>{let e=u.findIndex(e=>e.cancel==r);~e&&u.splice(e,1),p-=~e?1:0},i={time:n,handler:e,cancel:r};return u.splice(c(n),0,i),p+=1,m(),i};var c=e=>~(~u.findIndex(t=>t.time>e)||~u.length);o.cancel=e=>{a.delete(e),s.delete(e),l.delete(e),r.delete(e),i.delete(e)};o.sync=e=>{g=!0,o.batchedUpdates(e),g=!1};o.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,o.onStart(n)}return r.handler=e,r.cancel=()=>{a.delete(n),t=null},r};var f=typeof window<"u"?window.requestAnimationFrame:()=>{};o.use=e=>f=e;o.now=typeof performance<"u"?()=>performance.now():Date.now;o.batchedUpdates=e=>e();o.catch=console.error;o.frameLoop="always";o.advance=()=>{o.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):x()};var h=-1,p=0,g=!1;function v(e,t){g?(t.delete(e),e(0)):(t.add(e),m())}function m(){h<0&&(h=0,o.frameLoop!=="demand"&&f(w))}function y(){h=-1}function w(){~h&&(f(w),o.batchedUpdates(x))}function x(){let e=h;h=o.now();let t=c(h);if(t&&(S(u.splice(0,t),e=>e.handler()),p-=t),!p){y();return}a.flush(),r.flush(e?Math.min(64,h-e):16.667),s.flush(),i.flush(),l.flush()}function b(){let e=new Set,t=e;return{add(n){p+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return p-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,p-=t.size,S(t,t=>t(n)&&e.add(t)),p+=e.size,t=e)}}}function S(e,t){e.forEach(e=>{try{t(e)}catch(e){o.catch(e)}})}var k={count(){return p},isRunning(){return h>=0},clear(){h=-1,u=[],a=b(),r=b(),s=b(),i=b(),l=b(),p=0}};var j=n(66204);var C=Object.defineProperty;var T=(e,t)=>{for(var n in t)C(e,n,{get:t[n],enumerable:!0})};var E={};T(E,{assign:()=>V,colors:()=>B,createStringInterpolator:()=>N,skipAnimation:()=>H,to:()=>L,willAdvance:()=>F});function _(){}var I=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),M={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function D(e,t){if(M.arr(e)){if(!M.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 P=(e,t)=>e.forEach(t);function O(e,t,n){if(M.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(let r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var A=e=>M.und(e)?[]:M.arr(e)?e:[e];function R(e,t){if(e.size){let n=Array.from(e);e.clear(),P(n,t)}}var Z=(e,...t)=>R(e,e=>e(...t)),z=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);var N,L,B=null,H=!1,F=_,V=e=>{e.to&&(L=e.to),e.now&&(o.now=e.now),e.colors!==void 0&&(B=e.colors),e.skipAnimation!=null&&(H=e.skipAnimation),e.createStringInterpolator&&(N=e.createStringInterpolator),e.requestAnimationFrame&&o.use(e.requestAnimationFrame),e.batchedUpdates&&(o.batchedUpdates=e.batchedUpdates),e.willAdvance&&(F=e.willAdvance),e.frameLoop&&(o.frameLoop=e.frameLoop)};var W=new Set,U=[],K=[],$=0,q={get idle(){return!W.size&&!U.length},start(e){$>e.priority?(W.add(e),o.onStart(Y)):(G(e),o(Q))},advance:Q,sort(e){if($)o.onFrame(()=>q.sort(e));else{let t=U.indexOf(e);~t&&(U.splice(t,1),X(e))}},clear(){U=[],W.clear()}};function Y(){W.forEach(G),W.clear(),o(Q)}function G(e){U.includes(e)||X(e)}function X(e){U.splice(J(U,t=>t.priority>e.priority),0,e)}function Q(e){let t=K;for(let n=0;n<U.length;n++){let r=U[n];$=r.priority,r.idle||(F(r),r.advance(e),r.idle||t.push(r))}return $=0,K=U,K.length=0,U=t,U.length>0}function J(e,t){let n=e.findIndex(t);return n<0?e.length:n}var ee=(e,t,n)=>Math.min(Math.max(n,e),t);var et={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 en="[-+]?\\d*\\.?\\d+",er=en+"%";function eo(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var ei=new RegExp("rgb"+eo(en,en,en)),ea=new RegExp("rgba"+eo(en,en,en,en)),es=new RegExp("hsl"+eo(en,er,er)),el=new RegExp("hsla"+eo(en,er,er,en)),eu=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ec=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ed=/^#([0-9a-fA-F]{6})$/,ef=/^#([0-9a-fA-F]{8})$/;function eh(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=ed.exec(e))?parseInt(t[1]+"ff",16)>>>0:B&&B[e]!==void 0?B[e]:(t=ei.exec(e))?(ev(t[1])<<24|ev(t[2])<<16|ev(t[3])<<8|255)>>>0:(t=ea.exec(e))?(ev(t[1])<<24|ev(t[2])<<16|ev(t[3])<<8|ey(t[4]))>>>0:(t=eu.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ef.exec(e))?parseInt(t[1],16)>>>0:(t=ec.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=es.exec(e))?(eg(em(t[1]),ew(t[2]),ew(t[3]))|255)>>>0:(t=el.exec(e))?(eg(em(t[1]),ew(t[2]),ew(t[3]))|ey(t[4]))>>>0:null}function ep(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function eg(e,t,n){let r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=ep(o,r,e+1/3),a=ep(o,r,e),s=ep(o,r,e-1/3);return Math.round(i*255)<<24|Math.round(a*255)<<16|Math.round(s*255)<<8}function ev(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function em(e){return(parseFloat(e)%360+360)%360/360}function ey(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function ew(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function ex(e){let t=eh(e);if(t===null)return e;t=t||0;let n=(t&4278190080)>>>24,r=(t&16711680)>>>16,o=(t&65280)>>>8,i=(t&255)/255;return`rgba(${n}, ${r}, ${o}, ${i})`}var eb=(e,t,n)=>{if(M.fun(e))return e;if(M.arr(e))return eb({range:e,output:t,extrapolate:n});if(M.str(e.output[0]))return N(e);let r=e,o=r.output,i=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(e=>e);return e=>{let t=ek(e,i);return eS(e,i[t],i[t+1],o[t],o[t+1],l,a,s,r.map)}};function eS(e,t,n,r,o,i,a,s,l){let u=l?l(e):e;if(u<t){if(a==="identity")return u;a==="clamp"&&(u=t)}if(u>n){if(s==="identity")return u;s==="clamp"&&(u=n)}return r===o?r:t===n?e<=t?r:o:(t===-1/0?u=-u:n===1/0?u=u-t:u=(u-t)/(n-t),u=i(u),r===-1/0?u=-u:o===1/0?u=u+r:u=u*(o-r)+r,u)}function ek(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var ej=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);let r=n*e,o=t==="end"?Math.floor(r):Math.ceil(r);return ee(0,1,o/e)},eC=1.70158,eT=eC*1.525,eE=eC+1,e_=2*Math.PI/3,eI=2*Math.PI/4.5,eM=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,eD={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=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?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=>eE*e*e*e-eC*e*e,easeOutBack:e=>1+eE*Math.pow(e-1,3)+eC*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((eT+1)*2*e-eT)/2:(Math.pow(2*e-2,2)*((eT+1)*(e*2-2)+eT)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*e_),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*e_)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*eI))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*eI)/2+1,easeInBounce:e=>1-eM(1-e),easeOutBounce:eM,easeInOutBounce:e=>e<.5?(1-eM(1-2*e))/2:(1+eM(2*e-1))/2,steps:ej};var eP=Symbol.for("FluidValue.get"),eO=Symbol.for("FluidValue.observers");var eA=e=>!!(e&&e[eP]),eR=e=>e&&e[eP]?e[eP]():e,eZ=e=>e[eO]||null;function ez(e,t){e.eventObserved?e.eventObserved(t):e(t)}function eN(e,t){let n=e[eO];n&&n.forEach(e=>{ez(e,t)})}var eL=class{[eP];[eO];constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");eB(this,e)}},eB=(e,t)=>eV(e,eP,t);function eH(e,t){if(e[eP]){let n=e[eO];n||eV(e,eO,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function eF(e,t){let n=e[eO];if(n&&n.has(t)){let r=n.size-1;r?n.delete(t):e[eO]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var eV=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0});var eW=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,eU=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,eK=new RegExp(`(${eW.source})(%|[a-z]+)`,"i"),e$=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,eq=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;var eY=e=>{let[t,n]=eG(e);if(!t||z())return e;let r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){let t=window.getComputedStyle(document.documentElement).getPropertyValue(n);return t||e}else{if(n&&eq.test(n))return eY(n);if(n)return n}return e},eG=e=>{let t=eq.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]};var eX,eQ=(e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,eJ=e=>{eX||(eX=B?new RegExp(`(${Object.keys(B).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(e=>eR(e).replace(eq,eY).replace(eU,ex).replace(eX,ex)),n=t.map(e=>e.match(eW).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=>eb({...e,output:t}));return e=>{let n=!eK.test(t[0])&&t.find(e=>eK.test(e))?.replace(eW,""),o=0;return t[0].replace(eW,()=>`${r[o++](e)}${n||""}`).replace(e$,eQ)}};var e0="react-spring: ",e1=e=>{let t=e,n=!1;if(typeof t!="function")throw new TypeError(`${e0}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},e2=e1(console.warn);function e4(){e2(`${e0}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var e5=e1(console.warn);function e3(){e5(`${e0}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`)}function e8(e){return M.str(e)&&(e[0]=="#"||/\d/.test(e)||!z()&&eq.test(e)||e in(B||{}))}var e6,e7=new WeakMap,e9=e=>e.forEach(({target:e,contentRect:t})=>e7.get(e)?.forEach(e=>e(t)));function te(e,t){e6||typeof ResizeObserver<"u"&&(e6=new ResizeObserver(e9));let n=e7.get(t);return n||(n=new Set,e7.set(t,n)),n.add(e),e6&&e6.observe(t),()=>{let n=e7.get(t);n&&(n.delete(e),!n.size&&e6&&e6.unobserve(t))}}var tt=new Set,tn,tr=()=>{let e=()=>{tt.forEach(e=>e({width:window.innerWidth,height:window.innerHeight}))};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},to=e=>(tt.add(e),tn||(tn=tr()),()=>{tt.delete(e),!tt.size&&tn&&(tn(),tn=void 0)});var ti=(e,{container:t=document.documentElement}={})=>t===document.documentElement?to(e):te(e,t);var ta=(e,t,n)=>t-e===0?1:(n-e)/(t-e);var ts={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}},tl=class{callback;container;info;constructor(e,t){this.callback=e,this.container=t,this.info={time:0,x:this.createAxis(),y:this.createAxis()}}createAxis=()=>({current:0,progress:0,scrollLength:0});updateAxis=e=>{let t=this.info[e],{length:n,position:r}=ts[e];t.current=this.container[`scroll${r}`],t.scrollLength=this.container["scroll"+n]-this.container["client"+n],t.progress=ta(0,t.scrollLength,t.current)};update=()=>{this.updateAxis("x"),this.updateAxis("y")};sendEvent=()=>{this.callback(this.info)};advance=()=>{this.update(),this.sendEvent()}};var tu=new WeakMap,tc=new WeakMap,td=new WeakMap,tf=e=>e===document.documentElement?window:e,th=(e,{container:t=document.documentElement}={})=>{let n=td.get(t);n||(n=new Set,td.set(t,n));let r=new tl(e,t);if(n.add(r),!tu.has(t)){let e=()=>(n?.forEach(e=>e.advance()),!0);tu.set(t,e);let r=tf(t);window.addEventListener("resize",e,{passive:!0}),t!==document.documentElement&&tc.set(t,ti(e,{container:t})),r.addEventListener("scroll",e,{passive:!0})}let o=tu.get(t);return Re(o),()=>{Re.cancel(o);let e=td.get(t);if(!e||(e.delete(r),e.size))return;let n=tu.get(t);tu.delete(t),n&&(tf(t).removeEventListener("scroll",n),window.removeEventListener("resize",n),tc.get(t)?.())}};function tp(e){let t=Je(null);return t.current===null&&(t.current=e()),t.current}var tg=z()?j.useEffect:j.useLayoutEffect;var tv=()=>{let e=(0,j.useRef)(!1);return tg(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function tm(){let e=(0,j.useState)()[1],t=tv();return()=>{t.current&&e(Math.random())}}function ty(e,t){let[n]=(0,j.useState)(()=>({inputs:t,result:e()})),r=(0,j.useRef)(),o=r.current,i=o;return i?t&&i.inputs&&tw(t,i.inputs)||(i={inputs:t,result:e()}):i=n,(0,j.useEffect)(()=>{r.current=i,o==n&&(n.inputs=n.result=void 0)},[i]),i.result}function tw(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}var tx=e=>(0,j.useEffect)(e,tb),tb=[];function tS(e){let t=(0,j.useRef)();return(0,j.useEffect)(()=>{t.current=e}),t.current}var tk=()=>{let[e,t]=dt(null);return tg(()=>{let e=window.matchMedia("(prefers-reduced-motion)"),n=e=>{t(e.matches),V({skipAnimation:e.matches})};return n(e),e.addEventListener("change",n),()=>{e.removeEventListener("change",n)}},[]),e};var tj=Symbol.for("Animated:node"),tC=e=>!!e&&e[tj]===e,tT=e=>e&&e[tj],tE=(e,t)=>I(e,tj,t),t_=e=>e&&e[tj]&&e[tj].getPayload(),tI=class{payload;constructor(){tE(this,this)}getPayload(){return this.payload||[]}};var tM=class extends tI{constructor(e){super();this._value=e;M.num(this._value)&&(this.lastPosition=this._value)}done=!0;elapsedTime;lastPosition;lastVelocity;v0;durationProgress=0;static create(e){return new tM(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return M.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){let{done:e}=this;this.done=!1,M.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}};var tD=class extends tM{_string=null;_toString;constructor(e){super(0),this._toString=eb({output:[e,e]})}static create(e){return new tD(e)}getValue(){let e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(M.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=eb({output:[this.getValue(),e]})),this._value=0,super.reset()}};var tP={dependencies:null};var tO=class extends tI{constructor(e){super();this.source=e;this.setValue(e)}getValue(e){let t={};return O(this.source,(n,r)=>{tC(n)?t[r]=n.getValue(e):eA(n)?t[r]=eR(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&P(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return O(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){tP.dependencies&&eA(e)&&tP.dependencies.add(e);let t=t_(e);t&&P(t,e=>this.add(e))}};var tA=class extends tO{constructor(e){super(e)}static create(e){return new tA(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){let t=this.getPayload();return e.length==t.length?t.map((t,n)=>t.setValue(e[n])).some(Boolean):(super.setValue(e.map(tR)),!0)}};function tR(e){return(e8(e)?tD:tM).create(e)}function tZ(e){let t=tT(e);return t?t.constructor:M.arr(e)?tA:e8(e)?tD:tM}var tz=(e,t)=>{let n=!M.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,j.forwardRef)((r,i)=>{let a=(0,j.useRef)(null),s=n&&(0,j.useCallback)(e=>{a.current=tB(i,e)},[i]),[l,u]=tL(r,t),c=tm(),f=()=>{let e=a.current;if(n&&!e)return;(e?t.applyAnimatedValues(e,l.getValue(!0)):!1)===!1&&c()},h=new tN(f,u),p=(0,j.useRef)();tg(()=>(p.current=h,P(u,e=>eH(e,h)),()=>{p.current&&(P(p.current.deps,e=>eF(e,p.current)),o.cancel(p.current.update))})),(0,j.useEffect)(f,[]),tx(()=>()=>{let e=p.current;P(e.deps,t=>eF(t,e))});let g=t.getComponentProps(l.getValue());return j.createElement(e,{...g,ref:s})})},tN=class{constructor(e,t){this.update=e;this.deps=t}eventObserved(e){e.type=="change"&&o.write(this.update)}};function tL(e,t){let n=new Set;return tP.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new tO(e),tP.dependencies=null,[e,n]}function tB(e,t){return e&&(M.fun(e)?e(t):e.current=t),t}var tH=Symbol.for("AnimatedComponent"),tF=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new tO(e),getComponentProps:r=e=>e}={})=>{let o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=e=>{let t=tV(e)||"Anonymous";return M.str(e)?e=i[e]||(i[e]=tz(e,o)):e=e[tH]||(e[tH]=tz(e,o)),e.displayName=`Animated(${t})`,e};return O(e,(t,n)=>{M.arr(e)&&(n=tV(t)),i[n]=i(t)}),{animated:i}},tV=e=>M.str(e)?e:e&&M.str(e.displayName)?e.displayName:M.fun(e)&&e.name||null;function tW(e,...t){return M.fun(e)?e(...t):e}var tU=(e,t)=>e===!0||!!(t&&e&&(M.fun(e)?e(t):A(e).includes(t))),tK=(e,t)=>M.obj(e)?t&&e[t]:e;var t$=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,tq=e=>e,tY=(e,t=tq)=>{let n=tG;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));let r={};for(let o of n){let n=t(e[o],o);M.und(n)||(r[o]=n)}return r},tG=["config","onProps","onStart","onChange","onPause","onResume","onRest"],tX={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 tQ(e){let t={},n=0;if(O(e,(e,r)=>{tX[r]||(t[r]=e,n++)}),n)return t}function tJ(e){let t=tQ(e);if(t){let n={to:t};return O(e,(e,r)=>r in t||(n[r]=e)),n}return{...e}}function t0(e){return e=eR(e),M.arr(e)?e.map(t0):e8(e)?E.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function t1(e){for(let t in e)return!0;return!1}function t2(e){return M.fun(e)||M.arr(e)&&M.obj(e[0])}function t4(e,t){e.ref?.delete(e),t?.delete(e)}function t5(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}function t3(e,t,n=1e3){an(()=>{if(t){let r=0;ge(e,(e,o)=>{let i=e.current;if(i.length){let a=n*t[o];isNaN(a)?a=r:r=a,ge(i,e=>{ge(e.queue,e=>{let t=e.delay;e.delay=e=>a+tW(t||0,e)})}),e.start()}})}else{let t=Promise.resolve();ge(e,e=>{let n=e.current;if(n.length){let r=n.map(e=>{let t=e.queue;return e.queue=[],t});t=t.then(()=>(ge(n,(e,t)=>ge(r[t]||[],t=>e.queue.push(t))),Promise.all(e.start())))}})}})}var t8={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}};var t6={...t8.default,mass:1,damping:1,easing:eD.linear,clamp:!1},t7=class{tension;friction;frequency;damping;mass;velocity=0;restVelocity;precision;progress;duration;easing;clamp;bounce;decay;round;constructor(){Object.assign(this,t6)}};function t9(e,t,n){n&&(n={...n},ne(n,t),t={...n,...t}),ne(e,t),Object.assign(e,t);for(let t in t6)e[t]==null&&(e[t]=t6[t]);let{frequency:r,damping:o}=e,{mass:i}=e;return M.und(r)||(r<.01&&(r=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/r,2)*i,e.friction=4*Math.PI*o*i/r),e}function ne(e,t){if(!M.und(t.decay))e.duration=void 0;else{let n=!M.und(t.tension)||!M.und(t.friction);(n||!M.und(t.frequency)||!M.und(t.damping)||!M.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var nt=[],nn=class{changed=!1;values=nt;toValues=null;fromValues=nt;to;from;config=new t7;immediate=!1};function no(e,{key:t,props:n,defaultProps:r,state:i,actions:a}){return new Promise((s,l)=>{let u,c,f=tU(n.cancel??r?.cancel,t);if(f)g();else{M.und(n.pause)||(i.paused=tU(n.pause,t));let e=r?.pause;e!==!0&&(e=i.paused||tU(e,t)),u=tW(n.delay||0,t),e?(i.resumeQueue.add(p),a.pause()):(a.resume(),p())}function h(){i.resumeQueue.add(p),i.timeouts.delete(c),c.cancel(),u=c.time-o.now()}function p(){u>0&&!E.skipAnimation?(i.delayed=!0,c=o.setTimeout(g,u),i.pauseQueue.add(h),i.timeouts.add(c)):g()}function g(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(h),i.timeouts.delete(c),e<=(i.cancelId||0)&&(f=!0);try{a.start({...n,callId:e,cancel:f},s)}catch(e){l(e)}}})}var ni=(e,t)=>t.length==1?t[0]:t.some(e=>e.cancelled)?nl(e.get()):t.every(e=>e.noop)?na(e.get()):ns(e.get(),t.every(e=>e.finished)),na=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),ns=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),nl=e=>({value:e,cancelled:!0,finished:!1});function nu(e,t,n,r){let{callId:i,parentId:a,onRest:s}=t,{asyncTo:l,promise:u}=n;return!a&&e===l&&!t.reset?u:n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;let c=tY(t,(e,t)=>t==="onRest"?void 0:e),f,h,p=new Promise((e,t)=>(f=e,h=t)),g=e=>{let t=i<=(n.cancelId||0)&&nl(r)||i!==n.asyncId&&ns(r,!1);if(t)throw e.result=t,h(e),e},v=(e,t)=>{let o=new nd,a=new nf;return(async()=>{if(E.skipAnimation)throw nc(n),a.result=ns(r,!1),h(a),a;g(o);let s=M.obj(e)?{...e}:{...t,to:e};s.parentId=i,O(c,(e,t)=>{M.und(s[t])&&(s[t]=e)});let l=await r.start(s);return g(o),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),l})()},m;if(E.skipAnimation)return nc(n),ns(r,!1);try{let t;M.arr(e)?t=(async e=>{for(let t of e)await v(t)})(e):t=Promise.resolve(e(v,r.stop.bind(r))),await Promise.all([t.then(f),p]),m=ns(r.get(),!0,!1)}catch(e){if(e instanceof nd)m=e.result;else if(e instanceof nf)m=e.result;else throw e}finally{i==n.asyncId&&(n.asyncId=a,n.asyncTo=a?l:void 0,n.promise=a?u:void 0)}return M.fun(s)&&o.batchedUpdates(()=>{s(m,r,r.item)}),m})()}function nc(e,t){R(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var nd=class extends Error{result;constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},nf=class extends Error{result;constructor(){super("SkipAnimationSignal")}};var nh=e=>e instanceof ng,np=1,ng=class extends eL{id=np++;_priority=0;get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=tT(this);return e&&e.getValue()}to(...e){return E.to(this,e)}interpolate(...e){return e4(),E.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){eN(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||q.sort(this),eN(this,{type:"priority",parent:this,priority:e})}};var nv=Symbol.for("SpringPhase"),nm=1,ny=2,nw=4,nx=e=>(e[nv]&nm)>0,nb=e=>(e[nv]&ny)>0,nS=e=>(e[nv]&nw)>0,nk=(e,t)=>t?e[nv]|=ny|nm:e[nv]&=~ny,nj=(e,t)=>t?e[nv]|=nw:e[nv]&=~nw;var nC=class extends ng{key;animation=new nn;queue;defaultProps={};_state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set};_pendingCalls=new Set;_lastCallId=0;_lastToId=0;_memoizedDuration=0;constructor(e,t){if(super(),!M.und(e)||!M.und(t)){let n=M.obj(e)?{...e}:{...t,from:e};M.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(nb(this)||this._state.asyncTo)||nS(this)}get goal(){return eR(this.animation.to)}get velocity(){let e=tT(this);return e instanceof tM?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return nx(this)}get isAnimating(){return nb(this)}get isPaused(){return nS(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,r=this.animation,{toValues:o}=r,{config:i}=r,a=t_(r.to);!a&&eA(r.to)&&(o=A(eR(r.to))),r.values.forEach((s,l)=>{if(s.done)return;let u=s.constructor==tD?1:a?a[l].lastPosition:o[l],c=r.immediate,f=u;if(!c){if(f=s.lastPosition,i.tension<=0){s.done=!0;return}let t=s.elapsedTime+=e,n=r.fromValues[l],o=s.v0!=null?s.v0:s.v0=M.arr(i.velocity)?i.velocity[l]:i.velocity,a,h=i.precision||(n==u?.005:Math.min(1,Math.abs(u-n)*.001));if(M.und(i.duration))if(i.decay){let e=i.decay===!0?.998:i.decay,r=Math.exp(-(1-e)*t);f=n+o/(1-e)*(1-r),c=Math.abs(s.lastPosition-f)<=h,a=o*r}else{a=s.lastVelocity==null?o:s.lastVelocity;let t=i.restVelocity||h/10,r=i.clamp?0:i.bounce,l=!M.und(r),p=n==u?s.v0>0:n<u,g,v=!1,m=1,y=Math.ceil(e/m);for(let e=0;e<y&&(g=Math.abs(a)>t,!(!g&&(c=Math.abs(u-f)<=h,c)));++e){l&&(v=f==u||f>u==p,v&&(a=-a*r,f=u));let e=-i.tension*1e-6*(f-u),t=-i.friction*.001*a,n=(e+t)/i.mass;a=a+n*m,f=f+a*m}}else{let r=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,s.durationProgress>0&&(s.elapsedTime=i.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(i.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,s.durationProgress=r),f=n+i.easing(r)*(u-n),a=(f-s.lastPosition)/e,c=r==1}s.lastVelocity=a,Number.isNaN(f)&&(console.warn("Got NaN while animating:",this),c=!0)}a&&!a[l].done&&(c=!1),c?s.done=!0:t=!1,s.setValue(f,i.round)&&(n=!0)});let s=tT(this),l=s.getValue();if(t){let e=eR(r.to);(l!==e||n)&&!i.decay?(s.setValue(e),this._onChange(e)):n&&i.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return o.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(nb(this)){let{to:e,config:t}=this.animation;o.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 M.und(e)?(n=this.queue||[],this.queue=[]):n=[M.obj(e)?e:{...t,to:e}],Promise.all(n.map(e=>this._update(e))).then(e=>ni(this,e))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),nc(this._state,e&&this._lastCallId),o.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){let t=this.key||"",{to:n,from:r}=e;n=M.obj(n)?n[t]:n,(n==null||t2(n))&&(n=void 0),r=M.obj(r)?r[t]:r,r==null&&(r=void 0);let o={to:n,from:r};return nx(this)||(e.reverse&&([n,r]=[r,n]),r=eR(r),M.und(r)?tT(this)||this._set(n):this._set(r)),o}_update({...e},t){let{key:n,defaultProps:r}=this;e.default&&Object.assign(r,tY(e,(e,t)=>/^on/.test(t)?tK(e,n):e)),nP(this,e,"onProps"),nO(this,"onProps",e,this);let o=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");let i=this._state;return no(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{nS(this)||(nj(this,!0),Z(i.pauseQueue),nO(this,"onPause",ns(this,nT(this,this.animation.to)),this))},resume:()=>{nS(this)&&(nj(this,!1),nb(this)&&this._resume(),Z(i.resumeQueue),nO(this,"onResume",ns(this,nT(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then(n=>{if(e.loop&&n.finished&&!(t&&n.noop)){let t=nE(e);if(t)return this._update(t,!0)}return n})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(nl(this));let r=!M.und(e.to),i=!M.und(e.from);if(r||i)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(nl(this));let{key:a,defaultProps:s,animation:l}=this,{to:u,from:c}=l,{to:f=u,from:h=c}=e;i&&!r&&(!t.default||M.und(f))&&(f=h),t.reverse&&([f,h]=[h,f]);let p=!D(h,c);p&&(l.from=h),h=eR(h);let g=!D(f,u);g&&this._focus(f);let v=t2(t.to),{config:m}=l,{decay:y,velocity:w}=m;(r||i)&&(m.velocity=0),t.config&&!v&&t9(m,tW(t.config,a),t.config!==s.config?tW(s.config,a):void 0);let x=tT(this);if(!x||M.und(f))return n(ns(this,!0));let b=M.und(t.reset)?i&&!t.default:!M.und(h)&&tU(t.reset,a),S=b?h:this.get(),k=t0(f),j=M.num(k)||M.arr(k)||e8(k),C=!v&&(!j||tU(s.immediate||t.immediate,a));if(g){let e=tZ(f);if(e!==x.constructor)if(C)x=this._set(k);else throw Error(`Cannot animate between ${x.constructor.name} and ${e.name}, as the "to" prop suggests`)}let T=x.constructor,E=eA(f),_=!1;if(!E){let e=b||!nx(this)&&p;(g||e)&&(_=D(t0(S),k),E=!_),(!D(l.immediate,C)&&!C||!D(m.decay,y)||!D(m.velocity,w))&&(E=!0)}if(_&&nb(this)&&(l.changed&&!b?E=!0:E||this._stop(u)),!v&&((E||eA(u))&&(l.values=x.getPayload(),l.toValues=eA(f)?null:T==tD?[1]:A(k)),l.immediate!=C&&(l.immediate=C,!C&&!b&&this._set(u)),E)){let{onRest:e}=l;P(nD,e=>nP(this,t,e));let r=ns(this,nT(this,u));Z(this._pendingCalls,r),this._pendingCalls.add(n),l.changed&&o.batchedUpdates(()=>{l.changed=!b,e?.(r,this),b?tW(s.onRest,r):l.onStart?.(r,this)})}b&&this._set(S),v?n(nu(t.to,t,this._state,this)):E?this._start():nb(this)&&!g?this._pendingCalls.add(n):n(na(S))}_focus(e){let t=this.animation;e!==t.to&&(eZ(this)&&this._detach(),t.to=e,eZ(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;eA(t)&&(eH(t,this),nh(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;eA(e)&&eF(e,this)}_set(e,t=!0){let n=eR(e);if(!M.und(n)){let e=tT(this);if(!e||!D(n,e.getValue())){let r=tZ(n);!e||e.constructor!=r?tE(this,r.create(n)):e.setValue(n),e&&o.batchedUpdates(()=>{this._onChange(n,t)})}}return tT(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,nO(this,"onStart",ns(this,nT(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),tW(this.animation.onChange,e,this)),tW(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;tT(this).reset(eR(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),nb(this)||(nk(this,!0),nS(this)||this._resume())}_resume(){E.skipAnimation?this.finish():q.start(this)}_stop(e,t){if(nb(this)){nk(this,!1);let n=this.animation;P(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),eN(this,{type:"idle",parent:this});let r=t?nl(this.get()):ns(this.get(),nT(this,e??n.to));Z(this._pendingCalls,r),n.changed&&(n.changed=!1,nO(this,"onRest",r,this))}}};function nT(e,t){let n=t0(t),r=t0(e.get());return D(r,n)}function nE(e,t=e.loop,n=e.to){let r=tW(t);if(r){let o=r!==!0&&tJ(r),i=(o||e).reverse,a=!o||o.reset;return n_({...e,loop:t,default:!1,pause:void 0,to:!i||t2(n)?n:void 0,from:a?e.from:void 0,reset:a,...o})}}function n_(e){let{to:t,from:n}=e=tJ(e),r=new Set;return M.obj(t)&&nM(t,r),M.obj(n)&&nM(n,r),e.keys=r.size?Array.from(r):null,e}function nI(e){let t=n_(e);return M.und(t.default)&&(t.default=tY(t)),t}function nM(e,t){O(e,(e,n)=>e!=null&&t.add(n))}var nD=["onStart","onRest","onChange","onPause","onResume"];function nP(e,t,n){e.animation[n]=t[n]!==t$(t,n)?tK(t[n],e.key):void 0}function nO(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var nA=["onStart","onChange","onRest"],nR=1,nZ=class{id=nR++;springs={};queue=[];ref;_flush;_initialProps;_lastAsyncId=0;_active=new Set;_changed=new Set;_started=!1;_item;_state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set};_events={onStart:new Map,onChange:new Map,onRest:new Map};constructor(e,t){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(){let e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(let t in e){let n=e[t];M.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(n_(e)),this}start(e){let{queue:t}=this;return e?t=A(e).map(n_):this.queue=[],this._flush?this._flush(this,t):(nV(this,t),nz(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){let n=this.springs;P(A(t),t=>n[t].stop(!!e))}else nc(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(M.und(e))this.start({pause:!0});else{let t=this.springs;P(A(e),e=>t[e].pause())}return this}resume(e){if(M.und(e))this.start({pause:!1});else{let t=this.springs;P(A(e),e=>t[e].resume())}return this}each(e){O(this.springs,e)}_onFrame(){let{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,o=this._changed.size>0;(r&&!this._started||o&&!this._started)&&(this._started=!0,R(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));let i=!r&&this._started,a=o||i&&n.size?this.get():null;o&&t.size&&R(t,([e,t])=>{t.value=a,e(t,this,this._item)}),i&&(this._started=!1,R(n,([e,t])=>{t.value=a,e(t,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;o.onFrame(this._onFrame)}};function nz(e,t){return Promise.all(t.map(t=>nN(e,t))).then(t=>ni(e,t))}async function nN(e,t,n){let{keys:r,to:i,from:a,loop:s,onRest:l,onResolve:u}=t,c=M.obj(t.default)&&t.default;s&&(t.loop=!1),i===!1&&(t.to=null),a===!1&&(t.from=null);let f=M.arr(i)||M.fun(i)?i:void 0;f?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):P(nA,n=>{let r=t[n];if(M.fun(r)){let o=e._events[n];t[n]=({finished:e,cancelled:t})=>{let n=o.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):o.set(r,{value:null,finished:e||!1,cancelled:t||!1})},c&&(c[n]=t[n])}});let h=e._state;t.pause===!h.paused?(h.paused=t.pause,Z(t.pause?h.pauseQueue:h.resumeQueue)):h.paused&&(t.pause=!0);let p=(r||Object.keys(e.springs)).map(n=>e.springs[n].start(t)),g=t.cancel===!0||t$(t,"cancel")===!0;(f||g&&h.asyncId)&&p.push(no(++e._lastAsyncId,{props:t,state:h,actions:{pause:_,resume:_,start(t,n){g?(nc(h,e._lastAsyncId),n(nl(e))):(t.onRest=l,n(nu(f,t,h,e)))}}})),h.paused&&await new Promise(e=>{h.resumeQueue.add(e)});let v=ni(e,await Promise.all(p));if(s&&v.finished&&!(n&&v.noop)){let n=nE(t,s,i);if(n)return nV(e,[n]),nN(e,n,!0)}return u&&o.batchedUpdates(()=>u(v,e,e.item)),v}function nL(e,t){let n={...e.springs};return t&&P(A(t),e=>{M.und(e.keys)&&(e=n_(e)),M.obj(e.to)||(e={...e,to:void 0}),nF(n,e,e=>nH(e))}),nB(e,n),n}function nB(e,t){O(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,eH(t,e))})}function nH(e,t){let n=new nC;return n.key=e,t&&eH(n,t),n}function nF(e,t,n){t.keys&&P(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function nV(e,t){P(t,t=>{nF(e.springs,t,t=>nH(t,e))})}var nW=({children:e,...t})=>{let n=(0,j.useContext)(nU),r=t.pause||!!n.pause,o=t.immediate||!!n.immediate;t=ty(()=>({pause:r,immediate:o}),[r,o]);let{Provider:i}=nU;return j.createElement(i,{value:t},e)},nU=nK(nW,{});nW.Provider=nU.Provider;nW.Consumer=nU.Consumer;function nK(e,t){return Object.assign(e,j.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var n$=()=>{let e=[],t=function(t){e3();let r=[];return P(e,(e,o)=>{if(M.und(t))r.push(e.start());else{let i=n(t,e,o);i&&r.push(e.start(i))}}),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){let n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return P(e,e=>e.pause(...arguments)),this},t.resume=function(){return P(e,e=>e.resume(...arguments)),this},t.set=function(t){P(e,(e,n)=>{let r=M.fun(t)?t(n,e):t;r&&e.set(r)})},t.start=function(t){let n=[];return P(e,(e,r)=>{if(M.und(t))n.push(e.start());else{let o=this._getProps(t,e,r);o&&n.push(e.start(o))}}),n},t.stop=function(){return P(e,e=>e.stop(...arguments)),this},t.update=function(t){return P(e,(e,n)=>e.update(this._getProps(t,e,n))),this};let n=function(e,t,n){return M.fun(e)?e(n,t):e};return t._getProps=n,t};function nq(e,t,n){let r=M.fun(t)&&t;r&&!n&&(n=[]);let o=(0,j.useMemo)(()=>r||arguments.length==3?n$():void 0,[]),i=(0,j.useRef)(0),a=tm(),s=(0,j.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let n=nL(e,t);return i.current>0&&!s.queue.length&&!Object.keys(n).some(t=>!e.springs[t])?nz(e,t):new Promise(r=>{nB(e,n),s.queue.push(()=>{r(nz(e,t))}),a()})}}),[]),l=(0,j.useRef)([...s.ctrls]),u=[],c=tS(e)||0;(0,j.useMemo)(()=>{P(l.current.slice(e,c),e=>{t4(e,o),e.stop(!0)}),l.current.length=e,f(c,e)},[e]),(0,j.useMemo)(()=>{f(0,Math.min(c,e))},n);function f(e,n){for(let o=e;o<n;o++){let e=l.current[o]||(l.current[o]=new nZ(null,s.flush)),n=r?r(o,e):t[o];n&&(u[o]=nI(n))}}let h=l.current.map((e,t)=>nL(e,u[t])),p=(0,j.useContext)(nW),g=tS(p),v=p!==g&&t1(p);tg(()=>{i.current++,s.ctrls=l.current;let{queue:e}=s;e.length&&(s.queue=[],P(e,e=>e())),P(l.current,(e,t)=>{o?.add(e),v&&e.start({default:p});let n=u[t];n&&(t5(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),tx(()=>()=>{P(s.ctrls,e=>e.stop(!0))});let m=h.map(e=>({...e}));return o?[m,o]:m}function nY(e,t){let n=M.fun(e),[[r],o]=nq(1,n?e:[e],n?t||[]:t);return n||arguments.length==2?[r,o]:r}var nG=()=>n$(),nX=()=>zn(nG)[0];var nQ=(e,t)=>{let n=Bn(()=>new nC(e,t));return Kn(()=>()=>{n.stop()}),n};function nJ(e,t,n){let r=qt.fun(t)&&t;r&&!n&&(n=[]);let o=!0,i,a=nq(e,(e,n)=>{let a=r?r(e,n):t;return i=a.ref,o=o&&a.reverse,a},n||[{}]);if(Yn(()=>{Xn(a[1].current,(e,t)=>{let n=a[1].current[t+(o?1:-1)];if(t5(e,i),e.ref){n&&e.update({to:n.springs});return}n?e.start({to:n.springs}):e.start()})},n),r||arguments.length==3){let e=i??a[1];return e._getProps=(t,n,r)=>{let o=qt.fun(t)?t(r,n):t;if(o){let t=e.current[r+(o.reverse?1:-1)];return t&&(o.to=t.springs),o}},a}return a[0]}function n0(e,t,n){let r=M.fun(t)&&t,{reset:o,sort:i,trail:a=0,expires:s=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:f}=r?r():t,h=(0,j.useMemo)(()=>r||arguments.length==3?n$():void 0,[]),p=A(e),g=[],v=(0,j.useRef)(null),m=o?null:v.current;tg(()=>{v.current=g}),tx(()=>(P(g,e=>{h?.add(e.ctrl),e.ctrl.ref=h}),()=>{P(v.current,e=>{e.expired&&clearTimeout(e.expirationId),t4(e.ctrl,h),e.ctrl.stop(!0)})}));let y=n2(p,r?r():t,m),w=o&&v.current||[];tg(()=>P(w,({ctrl:e,item:t,key:n})=>{t4(e,h),tW(u,t,n)}));let x=[];if(m&&P(m,(e,t)=>{e.expired?(clearTimeout(e.expirationId),w.push(e)):(t=x[t]=y.indexOf(e.key),~t&&(g[t]=e))}),P(p,(e,t)=>{g[t]||(g[t]={key:y[t],item:e,phase:"mount",ctrl:new nZ},g[t].ctrl.item=e)}),x.length){let e=-1,{leave:n}=r?r():t;P(x,(t,r)=>{let o=m[r];~t?(e=g.indexOf(o),g[e]={...o,item:p[t]}):n&&g.splice(++e,0,o)})}M.fun(i)&&g.sort((e,t)=>i(e.item,t.item));let b=-a,S=tm(),k=tY(t),C=new Map,T=(0,j.useRef)(new Map),E=(0,j.useRef)(!1);P(g,(e,n)=>{let o=e.key,i=e.phase,u=r?r():t,h,p,g=tW(u.delay||0,o);if(i=="mount")h=u.enter,p="enter";else{let e=y.indexOf(o)<0;if(i!="leave")if(e)h=u.leave,p="leave";else if(h=u.update)p="update";else return;else if(!e)h=u.enter,p="enter";else return}if(h=tW(h,e.item,n),h=M.obj(h)?tJ(h):{to:h},!h.config){let t=f||k.config;h.config=tW(t,e.item,n,p)}b+=a;let w={...k,delay:g+b,ref:c,immediate:u.immediate,reset:!1,...h};if(p=="enter"&&M.und(w.from)){let o=r?r():t,i=M.und(o.initial)||m?o.from:o.initial;w.from=tW(i,e.item,n)}let{onResolve:x}=w;w.onResolve=e=>{tW(x,e);let t=v.current,n=t.find(e=>e.key===o);if(n&&!(e.cancelled&&n.phase!="update")&&n.ctrl.idle){let e=t.every(e=>e.ctrl.idle);if(n.phase=="leave"){let t=tW(s,n.item);if(t!==!1){let r=t===!0?0:t;if(n.expired=!0,!e&&r>0){r<=2147483647&&(n.expirationId=setTimeout(S,r));return}}}e&&t.some(e=>e.expired)&&(T.current.delete(n),l&&(E.current=!0),S())}};let j=nL(e.ctrl,w);p==="leave"&&l?T.current.set(e,{phase:p,springs:j,payload:w}):C.set(e,{phase:p,springs:j,payload:w})});let _=(0,j.useContext)(nW),I=tS(_),D=_!==I&&t1(_);tg(()=>{D&&P(g,e=>{e.ctrl.start({default:_})})},[_]),P(C,(e,t)=>{if(T.current.size){let e=g.findIndex(e=>e.key===t.key);g.splice(e,1)}}),tg(()=>{P(T.current.size?T.current:C,({phase:e,payload:t},n)=>{let{ctrl:r}=n;n.phase=e,h?.add(r),D&&e=="enter"&&r.start({default:_}),t&&(t5(r,t.ref),(r.ref||h)&&!E.current?r.update(t):(r.start(t),E.current&&(E.current=!1)))})},o?void 0:n);let O=e=>j.createElement(j.Fragment,null,g.map((t,n)=>{let{springs:r}=C.get(t)||t.ctrl,o=e({...r},t.item,t,n);return o&&o.type?j.createElement(o.type,{...o.props,key:M.str(t.key)||M.num(t.key)?t.key:t.ctrl.id,ref:o.ref}):o}));return h?[O,h]:O}var n1=1;function n2(e,{key:t,keys:n=t},r){if(n===null){let t=new Set;return e.map(e=>{let n=r&&r.find(n=>n.item===e&&n.phase!=="leave"&&!t.has(n));return n?(t.add(n),n.key):n1++})}return M.und(n)?e:M.fun(n)?e.map(n):A(n)}var n4=({container:e,...t}={})=>{let[n,r]=nY(()=>({scrollX:0,scrollY:0,scrollXProgress:0,scrollYProgress:0,...t}),[]);return or(()=>{let t=rr(({x:e,y:t})=>{r.start({scrollX:e.current,scrollXProgress:e.progress,scrollY:t.current,scrollYProgress:t.progress})},{container:e?.current||void 0});return()=>{nr(Object.values(n),e=>e.stop()),t()}},[]),n};var n5=({container:e,...t})=>{let[n,r]=nY(()=>({width:0,height:0,...t}),[]);return ar(()=>{let t=sr(({width:e,height:t})=>{r.start({width:e,height:t,immediate:n.width.get()===0||n.height.get()===0})},{container:e?.current||void 0});return()=>{ir(Object.values(n),e=>e.stop()),t()}},[]),n};var n3={any:0,all:1};function n8(e,t){let[n,r]=pr(!1),o=ur(),i=Bt.fun(e)&&e,a=i?i():{},{to:s={},from:l={},...u}=a,c=i?t:e,[f,h]=nY(()=>({from:l,...u}),[]);return lr(()=>{let e=o.current,{root:t,once:i,amount:a="any",...u}=c??{};if(!e||i&&n||typeof IntersectionObserver>"u")return;let f=new WeakMap,p=()=>(s&&h.start(s),r(!0),i?void 0:()=>{l&&h.start(l),r(!1)}),g=e=>{e.forEach(e=>{let t=f.get(e.target);if(e.isIntersecting!==!!t)if(e.isIntersecting){let t=p();Bt.fun(t)?f.set(e.target,t):v.unobserve(e.target)}else t&&(t(),f.delete(e.target))})},v=new IntersectionObserver(g,{root:t&&t.current||void 0,threshold:typeof a=="number"||Array.isArray(a)?a:n3[a],...u});return v.observe(e),()=>v.unobserve(e)},[c]),i?[o,f]:[o,n]}function n6({children:e,...t}){return e(nY(t))}function n7({items:e,children:t,...n}){let r=nJ(e.length,n);return e.map((e,n)=>{let o=t(e,n);return fr.fun(o)?o(r[n]):o})}function n9({items:e,children:t,...n}){return n0(e,n)(t)}var re=class extends ng{constructor(e,t){super();this.source=e;this.calc=eb(...t);let n=this._get(),r=tZ(n);tE(this,r.create(n))}key;idle=!0;calc;_active=new Set;advance(e){let t=this._get(),n=this.get();D(t,n)||(tT(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&rn(this._active)&&ro(this)}_get(){let e=M.arr(this.source)?this.source.map(eR):A(eR(this.source));return this.calc(...e)}_start(){this.idle&&!rn(this._active)&&(this.idle=!1,P(t_(this),e=>{e.done=!1}),E.skipAnimation?(o.batchedUpdates(()=>this.advance()),ro(this)):q.start(this))}_attach(){let e=1;P(A(this.source),t=>{eA(t)&&eH(t,this),nh(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){P(A(this.source),e=>{eA(e)&&eF(e,this)}),this._active.clear(),ro(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=A(this.source).reduce((e,t)=>Math.max(e,(nh(t)?t.priority:0)+1),0))}};function rt(e){return e.idle!==!1}function rn(e){return!e.size||Array.from(e).every(rt)}function ro(e){e.idle||(e.idle=!0,P(t_(e),e=>{e.done=!0}),eN(e,{type:"idle",parent:e}))}var ri=(e,...t)=>new re(e,t),ra=(e,...t)=>(Cr(),new re(e,t));E.assign({createStringInterpolator:eJ,to:(e,t)=>new re(e,t)});var rs=q.advance;var rl=n(42457);var ru=/^--/;function rc(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!ru.test(e)&&!(rh.hasOwnProperty(e)&&rh[e])?t+"px":(""+t).trim()}var rd={};function rf(e,t){if(!e.nodeType||!e.setAttribute)return!1;let n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{style:r,children:o,scrollTop:i,scrollLeft:a,viewBox:s,...l}=t,u=Object.values(l),c=Object.keys(l).map(t=>n||e.hasAttribute(t)?t:rd[t]||(rd[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase())));o!==void 0&&(e.textContent=o);for(let t in r)if(r.hasOwnProperty(t)){let n=rc(t,r[t]);ru.test(t)?e.style.setProperty(t,n):e.style[t]=n}c.forEach((t,n)=>{e.setAttribute(t,u[n])}),i!==void 0&&(e.scrollTop=i),a!==void 0&&(e.scrollLeft=a),s!==void 0&&e.setAttribute("viewBox",s)}var rh={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},rp=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),rg=["Webkit","Ms","Moz","O"];rh=Object.keys(rh).reduce((e,t)=>(rg.forEach(n=>e[rp(n,t)]=e[t]),e),rh);var rv=/^(matrix|translate|scale|rotate|skew)/,rm=/^(translate)/,ry=/^(rotate|skew)/,rw=(e,t)=>M.num(e)&&e!==0?e+t:e,rx=(e,t)=>M.arr(e)?e.every(e=>rx(e,t)):M.num(e)?e===t:parseFloat(e)===t,rb=class extends tO{constructor({x:e,y:t,z:n,...r}){let o=[],i=[];(e||t||n)&&(o.push([e||0,t||0,n||0]),i.push(e=>[`translate3d(${e.map(e=>rw(e,"px")).join(",")})`,rx(e,0)])),O(r,(e,t)=>{if(t==="transform")o.push([e||""]),i.push(e=>[e,e===""]);else if(rv.test(t)){if(delete r[t],M.und(e))return;let n=rm.test(t)?"px":ry.test(t)?"deg":"";o.push(A(e)),i.push(t==="rotate3d"?([e,t,r,o])=>[`rotate3d(${e},${t},${r},${rw(o,n)})`,rx(o,0)]:e=>[`${t}(${e.map(e=>rw(e,n)).join(",")})`,rx(e,t.startsWith("scale")?1:0)])}}),o.length&&(r.transform=new rS(o,i)),super(r)}},rS=class extends eL{constructor(e,t){super();this.inputs=e;this.transforms=t}_value=null;get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return P(this.inputs,(n,r)=>{let o=eR(n[0]),[i,a]=this.transforms[r](M.arr(o)?o:n.map(eR));e+=" "+i,t=t&&a}),t?"none":e}observerAdded(e){e==1&&P(this.inputs,e=>P(e,e=>eA(e)&&eH(e,this)))}observerRemoved(e){e==0&&P(this.inputs,e=>P(e,e=>eA(e)&&eF(e,this)))}eventObserved(e){e.type=="change"&&(this._value=null),eN(this,e)}};var rk=["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"];E.assign({batchedUpdates:rl.unstable_batchedUpdates,createStringInterpolator:eJ,colors:et});var rj=tF(rk,{applyAnimatedValues:rf,createAnimatedStyle:e=>new rb(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),rC=rj.animated;},38638:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r=n(66204);var o=typeof globalThis!=="undefined"?globalThis:typeof self!=="undefined"?self:typeof window!=="undefined"?window:typeof n.g!=="undefined"?n.g:{};var i={};let a;if(typeof window!=="undefined")a=window;else if(typeof self!=="undefined")a=self;else a=o;let s=null;let l=null;const u=20;const c=a.clearTimeout;const f=a.setTimeout;const h=a.cancelAnimationFrame||a.mozCancelAnimationFrame||a.webkitCancelAnimationFrame;const p=a.requestAnimationFrame||a.mozRequestAnimationFrame||a.webkitRequestAnimationFrame;if(h==null||p==null){s=c;l=function e(e){return f(e,u)}}else{s=function e([e,t]){h(e);c(t)};l=function e(e){const t=p(function t(){c(n);e()});const n=f(function n(){h(t);e()},u);return[t,n]}}function g(e){let t;let n;let r;let o;let i;let u;let c;const f=typeof document!=="undefined"&&document.attachEvent;if(!f){u=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth;r.scrollTop=r.scrollHeight;o.style.width=n.offsetWidth+1+"px";o.style.height=n.offsetHeight+1+"px";n.scrollLeft=n.scrollWidth;n.scrollTop=n.scrollHeight};i=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height};c=function(e){if(e.target.className&&typeof e.target.className.indexOf==="function"&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;u(this);if(this.__resizeRAF__)s(this.__resizeRAF__);this.__resizeRAF__=l(function n(){if(i(t)){t.__resizeLast__.width=t.offsetWidth;t.__resizeLast__.height=t.offsetHeight;t.__resizeListeners__.forEach(function n(n){n.call(t,e)})}})};let e=false;let a="";r="animationstart";const f="Webkit Moz O ms".split(" ");let h="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" ");let p="";{const t=document.createElement("fakeelement");if(t.style.animationName!==undefined)e=true;if(e===false){for(let n=0;n<f.length;n++)if(t.style[f[n]+"AnimationName"]!==undefined){p=f[n];a="-"+p.toLowerCase()+"-";r=h[n];e=true;break}}}n="resizeanim";t="@"+a+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ";o=a+"animation: 1ms "+n+"; "}const h=function(n){if(!n.getElementById("detectElementResize")){const r=(t?t:"")+".resize-triggers { "+(o?o:"")+"visibility: hidden; opacity: 0; } "+'.resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',i=n.head||n.getElementsByTagName("head")[0],a=n.createElement("style");a.id="detectElementResize";a.type="text/css";if(e!=null)a.setAttribute("nonce",e);if(a.styleSheet)a.styleSheet.cssText=r;else a.appendChild(n.createTextNode(r));i.appendChild(a)}};const p=function(e,t){if(f)e.attachEvent("onresize",t);else{if(!e.__resizeTriggers__){const t=e.ownerDocument;const o=a.getComputedStyle(e);if(o&&o.position==="static")e.style.position="relative";h(t);e.__resizeLast__={};e.__resizeListeners__=[];(e.__resizeTriggers__=t.createElement("div")).className="resize-triggers";const i=t.createElement("div");i.className="expand-trigger";i.appendChild(t.createElement("div"));const s=t.createElement("div");s.className="contract-trigger";e.__resizeTriggers__.appendChild(i);e.__resizeTriggers__.appendChild(s);e.appendChild(e.__resizeTriggers__);u(e);e.addEventListener("scroll",c,true);if(r){e.__resizeTriggers__.__animationListener__=function t(t){if(t.animationName===n)u(e)};e.__resizeTriggers__.addEventListener(r,e.__resizeTriggers__.__animationListener__)}}e.__resizeListeners__.push(t)}};const g=function(e,t){if(f)e.detachEvent("onresize",t);else{e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1);if(!e.__resizeListeners__.length){e.removeEventListener("scroll",c,true);if(e.__resizeTriggers__.__animationListener__){e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__);e.__resizeTriggers__.__animationListener__=null}try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}};return{addResizeListener:p,removeResizeListener:g}}i={createDetectElementResize:g};function v(e,t,n){t=m(t);if(t in e)Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true});else e[t]=n;return e}function m(e){var t=y(e,"string");return typeof t==="symbol"?t:String(t)}function y(e,t){if(typeof e!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==undefined){var r=n.call(e,t||"default");if(typeof r!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class w extends(0,r.Component){constructor(...e){super(...e);v(this,"state",{height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0});v(this,"_autoSizer",null);v(this,"_detectElementResize",null);v(this,"_parentNode",null);v(this,"_resizeObserver",null);v(this,"_onResize",()=>{const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){var r,o,i,a;const s=window.getComputedStyle(this._parentNode)||{};const l=parseInt((r=s.paddingLeft)!==null&&r!==void 0?r:"0",10);const u=parseInt((o=s.paddingRight)!==null&&o!==void 0?o:"0",10);const c=parseInt((i=s.paddingTop)!==null&&i!==void 0?i:"0",10);const f=parseInt((a=s.paddingBottom)!==null&&a!==void 0?a:"0",10);const h=this._parentNode.getBoundingClientRect();const p=h.height-c-f;const g=h.width-l-u;const v=this._parentNode.offsetHeight-c-f;const m=this._parentNode.offsetWidth-l-u;if(!e&&(this.state.height!==v||this.state.scaledHeight!==p)||!t&&(this.state.width!==m||this.state.scaledWidth!==g)){this.setState({height:v,width:m,scaledHeight:p,scaledWidth:g});if(typeof n==="function")n({height:v,scaledHeight:p,scaledWidth:g,width:m})}}});v(this,"_setRef",e=>{this._autoSizer=e})}componentDidMount(){const{nonce:e}=this.props;if(this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement){this._parentNode=this._autoSizer.parentNode;if(this._parentNode!=null){if(typeof ResizeObserver!=="undefined"){this._resizeObserver=new ResizeObserver(()=>{setTimeout(this._onResize,0)});this._resizeObserver.observe(this._parentNode)}else{this._detectElementResize=(0,i.createDetectElementResize)(e);this._detectElementResize.addResizeListener(this._parentNode,this._onResize)}this._onResize()}}}componentWillUnmount(){if(this._parentNode){if(this._detectElementResize)this._detectElementResize.removeResizeListener(this._parentNode,this._onResize);if(this._resizeObserver){this._resizeObserver.observe(this._parentNode);this._resizeObserver.disconnect()}}}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:o,disableWidth:i,nonce:a,onResize:s,style:l,tagName:u="div",...c}=this.props;const{height:f,scaledHeight:h,scaledWidth:p,width:g}=this.state;const v={overflow:"visible"};const m={};let y=false;if(!o){if(f===0)y=true;v.height=0;m.height=f;m.scaledHeight=h}if(!i){if(g===0)y=true;v.width=0;m.width=g;m.scaledWidth=p}return(0,r.createElement)(u,{ref:this._setRef,style:{...v,...l},...c},!y&&e(m))}}v(w,"defaultProps",{onResize:()=>{},disableHeight:false,disableWidth:false,style:{}});var x=(0,w)},99279:function(e,t,n){"use strict";/**
73
- * @license React
74
- * react-jsx-runtime.production.min.js
75
- *
76
- * Copyright (c) Facebook, Inc. and its affiliates.
77
- *
78
- * This source code is licensed under the MIT license found in the
79
- * LICENSE file in the root directory of this source tree.
80
- */var r=n(66204),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,i={},u=null,c=null;void 0!==n&&(u=""+n);void 0!==t.key&&(u=""+t.key);void 0!==t.ref&&(c=t.ref);for(r in t)a.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:u,ref:c,props:i,_owner:s.current}}t.Fragment=i;t.jsx=u;t.jsxs=u},63481:function(e,t){"use strict";/**
81
- * @license React
82
- * react.production.min.js
83
- *
84
- * Copyright (c) Facebook, Inc. and its affiliates.
85
- *
86
- * This source code is licensed under the MIT license found in the
87
- * LICENSE file in the root directory of this source tree.
88
- */var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.iterator;function g(e){if(null===e||"object"!==typeof e)return null;e=p&&e[p]||e["@@iterator"];return"function"===typeof e?e:null}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,y={};function w(e,t,n){this.props=e;this.context=t;this.refs=y;this.updater=n||v}w.prototype.isReactComponent={};w.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function x(){}x.prototype=w.prototype;function b(e,t,n){this.props=e;this.context=t;this.refs=y;this.updater=n||v}var S=b.prototype=new x;S.constructor=b;m(S,w.prototype);S.isPureReactComponent=!0;var k=Array.isArray,j=Object.prototype.hasOwnProperty,C={current:null},T={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,r){var o,i={},a=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)j.call(t,o)&&!T.hasOwnProperty(o)&&(i[o]=t[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(o in l=e.defaultProps,l)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:n,type:e,key:a,ref:s,props:i,_owner:C.current}}function _(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function I(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}function M(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}var D=/\/+/g;function P(e,t){return"object"===typeof e&&null!==e&&null!=e.key?M(""+e.key):t.toString(36)}function O(e,t,o,i,a){var s=typeof e;if("undefined"===s||"boolean"===s)e=null;var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return l=e,a=a(l),e=""===i?"."+P(l,0):i,k(a)?(o="",null!=e&&(o=e.replace(D,"$&/")+"/"),O(a,t,o,"",function(e){return e})):null!=a&&(I(a)&&(a=_(a,o+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(D,"$&/")+"/")+e)),t.push(a)),1;l=0;i=""===i?".":i+":";if(k(e))for(var u=0;u<e.length;u++){s=e[u];var c=i+P(s,u);l+=O(s,t,o,c,a)}else if(c=g(e),"function"===typeof c)for(e=c.call(e),u=0;!(s=e.next()).done;)s=s.value,c=i+P(s,u++),l+=O(s,t,o,c,a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function A(e,t,n){if(null==e)return e;var r=[],o=0;O(e,r,"","",function(e){return t.call(n,e,o++)});return r}function R(e){if(-1===e._status){var t=e._result;t=t();t.then(function(t){if(0===e._status||-1===e._status)e._status=1,e._result=t},function(t){if(0===e._status||-1===e._status)e._status=2,e._result=t});-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var Z={current:null},z={transition:null},N={ReactCurrentDispatcher:Z,ReactCurrentBatchConfig:z,ReactCurrentOwner:C};t.Children={map:A,forEach:function(e,t,n){A(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;A(e,function(){t++});return t},toArray:function(e){return A(e,function(e){return e})||[]},only:function(e){if(!I(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};t.Component=w;t.Fragment=o;t.Profiler=a;t.PureComponent=b;t.StrictMode=i;t.Suspense=c;t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N;t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=m({},e.props),i=e.key,a=e.ref,s=e._owner;if(null!=t){void 0!==t.ref&&(a=t.ref,s=C.current);void 0!==t.key&&(i=""+t.key);if(e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)j.call(t,u)&&!T.hasOwnProperty(u)&&(o[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];o.children=l}return{$$typeof:n,type:e.type,key:i,ref:a,props:o,_owner:s}};t.createContext=function(e){e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};e.Provider={$$typeof:s,_context:e};return e.Consumer=e};t.createElement=E;t.createFactory=function(e){var t=E.bind(null,e);t.type=e;return t};t.createRef=function(){return{current:null}};t.forwardRef=function(e){return{$$typeof:u,render:e}};t.isValidElement=I;t.lazy=function(e){return{$$typeof:h,_payload:{_status:-1,_result:e},_init:R}};t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}};t.startTransition=function(e){var t=z.transition;z.transition={};try{e()}finally{z.transition=t}};t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};t.useCallback=function(e,t){return Z.current.useCallback(e,t)};t.useContext=function(e){return Z.current.useContext(e)};t.useDebugValue=function(){};t.useDeferredValue=function(e){return Z.current.useDeferredValue(e)};t.useEffect=function(e,t){return Z.current.useEffect(e,t)};t.useId=function(){return Z.current.useId()};t.useImperativeHandle=function(e,t,n){return Z.current.useImperativeHandle(e,t,n)};t.useInsertionEffect=function(e,t){return Z.current.useInsertionEffect(e,t)};t.useLayoutEffect=function(e,t){return Z.current.useLayoutEffect(e,t)};t.useMemo=function(e,t){return Z.current.useMemo(e,t)};t.useReducer=function(e,t,n){return Z.current.useReducer(e,t,n)};t.useRef=function(e){return Z.current.useRef(e)};t.useState=function(e){return Z.current.useState(e)};t.useSyncExternalStore=function(e,t,n){return Z.current.useSyncExternalStore(e,t,n)};t.useTransition=function(){return Z.current.useTransition()};t.version="18.2.0"},66204:function(e,t,n){"use strict";if(true){e.exports=n(63481)}else{}},43188:function(e,t,n){"use strict";if(true){e.exports=n(99279)}else{}},65485:function(e,t,n){"use strict";n.d(t,{md:function(){return T},DE:function(){return j},UY:function(){return S},MT:function(){return m}});var r=n(56666);function o(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 i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e};function a(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or "+"use the non-minified dev environment for full errors. "}var s=function(){return typeof Symbol==="function"&&Symbol.observable||"@@observable"}();var l=function e(){return Math.random().toString(36).substring(7).split("").join(".")};var u={INIT:"@@redux/INIT"+l(),REPLACE:"@@redux/REPLACE"+l(),PROBE_UNKNOWN_ACTION:function e(){return"@@redux/PROBE_UNKNOWN_ACTION"+l()}};function c(e){if(typeof e!=="object"||e===null)return false;var t=e;while(Object.getPrototypeOf(t)!==null){t=Object.getPrototypeOf(t)}return Object.getPrototypeOf(e)===t}function f(e){if(e===void 0)return"undefined";if(e===null)return"null";var t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":{return t}}if(Array.isArray(e))return"array";if(g(e))return"date";if(p(e))return"error";var n=h(e);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function h(e){return typeof e.constructor==="function"?e.constructor.name:null}function p(e){return e instanceof Error||typeof e.message==="string"&&e.constructor&&typeof e.constructor.stackTraceLimit==="number"}function g(e){if(e instanceof Date)return true;return typeof e.toDateString==="function"&&typeof e.getDate==="function"&&typeof e.setDate==="function"}function v(e){var t=typeof e;if(false){}return t}function m(e,t,n){var r;if(typeof t==="function"&&typeof n==="function"||typeof n==="function"&&typeof arguments[3]==="function"){throw new Error(true?a(0):0)}if(typeof t==="function"&&typeof n==="undefined"){n=t;t=undefined}if(typeof n!=="undefined"){if(typeof n!=="function"){throw new Error(true?a(1):0)}return n(m)(e,t)}if(typeof e!=="function"){throw new Error(true?a(2):0)}var o=e;var i=t;var l=[];var f=l;var h=false;function p(){if(f===l){f=l.slice()}}function g(){if(h){throw new Error(true?a(3):0)}return i}function v(e){if(typeof e!=="function"){throw new Error(true?a(4):0)}if(h){throw new Error(true?a(5):0)}var t=true;p();f.push(e);return function n(){if(!t){return}if(h){throw new Error(true?a(6):0)}t=false;p();var n=f.indexOf(e);f.splice(n,1);l=null}}function y(e){if(!c(e)){throw new Error(true?a(7):0)}if(typeof e.type==="undefined"){throw new Error(true?a(8):0)}if(h){throw new Error(true?a(9):0)}try{h=true;i=o(i,e)}finally{h=false}var t=l=f;for(var n=0;n<t.length;n++){var r=t[n];r()}return e}function w(e){if(typeof e!=="function"){throw new Error(true?a(10):0)}o=e;y({type:u.REPLACE})}function x(){var e;var t=v;return e={subscribe:function e(e){if(typeof e!=="object"||e===null){throw new Error(true?a(11):0)}function n(){if(e.next){e.next(g())}}n();var r=t(n);return{unsubscribe:r}}},e[s]=function(){return this},e}y({type:u.INIT});return r={dispatch:y,subscribe:v,getState:g,replaceReducer:w},r[s]=x,r}var y=null&&m;function w(e){if(typeof console!=="undefined"&&typeof console.error==="function"){console.error(e)}try{throw new Error(e)}catch(e){}}function x(e,t,n,r){var o=Object.keys(t);var i=n&&n.type===u.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(o.length===0){return"Store does not have a valid reducer. Make sure the argument passed "+"to combineReducers is an object whose values are reducers."}if(!c(e)){return"The "+i+' has unexpected type of "'+v(e)+'". Expected argument to be an object with the following '+('keys: "'+o.join('", "')+'"')}var a=Object.keys(e).filter(function(e){return!t.hasOwnProperty(e)&&!r[e]});a.forEach(function(e){r[e]=true});if(n&&n.type===u.REPLACE)return;if(a.length>0){return"Unexpected "+(a.length>1?"keys":"key")+" "+('"'+a.join('", "')+'" found in '+i+". ")+"Expected to find one of the known reducer keys instead: "+('"'+o.join('", "')+'". Unexpected keys will be ignored.')}}function b(e){Object.keys(e).forEach(function(t){var n=e[t];var r=n(undefined,{type:u.INIT});if(typeof r==="undefined"){throw new Error(true?a(12):0)}if(typeof n(undefined,{type:u.PROBE_UNKNOWN_ACTION()})==="undefined"){throw new Error(true?a(13):0)}})}function S(e){var t=Object.keys(e);var n={};for(var r=0;r<t.length;r++){var o=t[r];if(false){}if(typeof e[o]==="function"){n[o]=e[o]}}var i=Object.keys(n);var s;if(false){}var l;try{b(n)}catch(e){l=e}return function e(e,t){if(e===void 0){e={}}if(l){throw l}if(false){var r}var o=false;var s={};for(var u=0;u<i.length;u++){var c=i[u];var f=n[c];var h=e[c];var p=f(h,t);if(typeof p==="undefined"){var g=t&&t.type;throw new Error(true?a(14):0)}s[c]=p;o=o||p!==h}o=o||i.length!==Object.keys(e).length;return o?s:e}}function k(e,t){return function(){return t(e.apply(this,arguments))}}function j(e,t){if(typeof e==="function"){return k(e,t)}if(typeof e!=="object"||e===null){throw new Error(true?a(16):0)}var n={};for(var r in e){var o=e[r];if(typeof o==="function"){n[r]=k(o,t)}}return n}function C(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++){t[n]=arguments[n]}if(t.length===0){return function(e){return e}}if(t.length===1){return t[0]}return t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}function T(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++){t[n]=arguments[n]}return function(e){return function(){var n=e.apply(void 0,arguments);var r=function e(){throw new Error(true?a(15):0)};var o={getState:n.getState,dispatch:function e(){return r.apply(void 0,arguments)}};var s=t.map(function(e){return e(o)});r=C.apply(void 0,s)(n.dispatch);return i(i({},n),{},{dispatch:r})}}}},38221:function(e,t){"use strict";/**
89
- * @license React
90
- * scheduler.production.min.js
91
- *
92
- * Copyright (c) Facebook, Inc. and its affiliates.
93
- *
94
- * This source code is licensed under the MIT license found in the
95
- * LICENSE file in the root directory of this source tree.
96
- */function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(0<i(o,t))e[r]=t,e[n]=o,n=r;else break e}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>i(l,n))u<o&&0>i(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else if(u<o&&0>i(c,n))e[r]=c,e[u]=n,r=u;else break e}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var u=[],c=[],f=1,h=null,p=3,g=!1,v=!1,m=!1,y="function"===typeof setTimeout?setTimeout:null,w="function"===typeof clearTimeout?clearTimeout:null,x="undefined"!==typeof setImmediate?setImmediate:null;"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(e){for(var t=r(c);null!==t;){if(null===t.callback)o(c);else if(t.startTime<=e)o(c),t.sortIndex=t.expirationTime,n(u,t);else break;t=r(c)}}function S(e){m=!1;b(e);if(!v)if(null!==r(u))v=!0,A(k);else{var t=r(c);null!==t&&R(S,t.startTime-e)}}function k(e,n){v=!1;m&&(m=!1,w(T),T=-1);g=!0;var i=p;try{b(n);for(h=r(u);null!==h&&(!(h.expirationTime>n)||e&&!I());){var a=h.callback;if("function"===typeof a){h.callback=null;p=h.priorityLevel;var s=a(h.expirationTime<=n);n=t.unstable_now();"function"===typeof s?h.callback=s:h===r(u)&&o(u);b(n)}else o(u);h=r(u)}if(null!==h)var l=!0;else{var f=r(c);null!==f&&R(S,f.startTime-n);l=!1}return l}finally{h=null,p=i,g=!1}}var j=!1,C=null,T=-1,E=5,_=-1;function I(){return t.unstable_now()-_<E?!1:!0}function M(){if(null!==C){var e=t.unstable_now();_=e;var n=!0;try{n=C(!0,e)}finally{n?D():(j=!1,C=null)}}else j=!1}var D;if("function"===typeof x)D=function(){x(M)};else if("undefined"!==typeof MessageChannel){var P=new MessageChannel,O=P.port2;P.port1.onmessage=M;D=function(){O.postMessage(null)}}else D=function(){y(M,0)};function A(e){C=e;j||(j=!0,D())}function R(e,n){T=y(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5;t.unstable_ImmediatePriority=1;t.unstable_LowPriority=4;t.unstable_NormalPriority=3;t.unstable_Profiling=null;t.unstable_UserBlockingPriority=2;t.unstable_cancelCallback=function(e){e.callback=null};t.unstable_continueExecution=function(){v||g||(v=!0,A(k))};t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<e?Math.floor(1e3/e):5};t.unstable_getCurrentPriorityLevel=function(){return p};t.unstable_getFirstCallbackNode=function(){return r(u)};t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}};t.unstable_pauseExecution=function(){};t.unstable_requestPaint=function(){};t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}};t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();"object"===typeof i&&null!==i?(i=i.delay,i="number"===typeof i&&0<i?a+i:a):i=a;switch(e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}s=i+s;e={id:f++,callback:o,priorityLevel:e,startTime:i,expirationTime:s,sortIndex:-1};i>a?(e.sortIndex=i,n(c,e),null===r(u)&&e===r(c)&&(m?(w(T),T=-1):m=!0,R(S,i-a))):(e.sortIndex=s,n(u,e),v||g||(v=!0,A(k)));return e};t.unstable_shouldYield=I;t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},46489:function(e,t,n){"use strict";if(true){e.exports=n(38221)}else{}},49090:function(e){e.exports=t;function t(e,t){var n,r,o,i;var a=0;return function e(){n=this;r=arguments;var e=new Date-a;if(!i)if(e>=t)s();else i=setTimeout(s,t-e);return o};function s(){i=0;a=+new Date;o=e.apply(n,r);n=null;r=null}}},26505:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});const r=typeof crypto!=="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var o={randomUUID:r};let i;const a=new Uint8Array(16);function s(){if(!i){i=typeof crypto!=="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto);if(!i){throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported")}}return i(a)};const l=[];for(let e=0;e<256;++e){l.push((e+256).toString(16).slice(1))}function u(e,t=0){return(l[e[t+0]]+l[e[t+1]]+l[e[t+2]]+l[e[t+3]]+"-"+l[e[t+4]]+l[e[t+5]]+"-"+l[e[t+6]]+l[e[t+7]]+"-"+l[e[t+8]]+l[e[t+9]]+"-"+l[e[t+10]]+l[e[t+11]]+l[e[t+12]]+l[e[t+13]]+l[e[t+14]]+l[e[t+15]]).toLowerCase()}function c(e,t=0){const n=u(e,t);if(!validate(n)){throw TypeError("Stringified UUID is invalid")}return n}var f=null&&c;function h(e,t,n){if(o.randomUUID&&!t&&!e){return o.randomUUID()}e=e||{};const r=e.random||(e.rng||s)();r[6]=r[6]&15|64;r[8]=r[8]&63|128;if(t){n=n||0;for(let e=0;e<16;++e){t[n+e]=r[e]}return t}return u(r)}var p=h},92879:function(e){"use strict";var t="production"!=="production";var n=function(){};if(t){var r=function e(e,t){var n=arguments.length;t=new Array(n>1?n-1:0);for(var r=1;r<n;r++){t[r-1]=arguments[r]}var o=0;var i="Warning: "+e.replace(/%s/g,function(){return t[o++]});if(typeof console!=="undefined"){console.error(i)}try{throw new Error(i)}catch(e){}};n=function(e,t,n){var o=arguments.length;n=new Array(o>2?o-2:0);for(var i=2;i<o;i++){n[i-2]=arguments[i]}if(t===undefined){throw new Error("`warning(condition, format, ...args)` requires a warning "+"message argument")}if(!e){r.apply(null,[t].concat(n))}}}e.exports=n},76074:function(e,t,n){"use strict";n.d(t,{$:function(){return l},F:function(){return u}});var r=n(43188);var o=n(66204);var i=n(90696);var a=n(90122);const s=(0,o.createContext)(null);function l(e){(0,i.nP)();const t=document.documentElement.clientHeight;const n=document.documentElement.clientWidth;const o={atLeastMediumWidth:n>=a.A.medium,isNarrowWidth:n<a.A.small,isSmallWidth:n>=a.A.small&&n<a.A.medium,isMediumWidth:n>=a.A.medium&&n<a.A.wide,isWideWidth:n>=a.A.wide,height:t,width:n};return(0,r.jsx)(s.Provider,{value:o,children:e.children})}function u(){return(0,o.useContext)(s)}},6083:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(43188);var o=n(66204);var i=n(99818);var a=n(89456);var s=n(24307);let l=(0,i.F4)({"0%":{transform:"rotateZ(0deg)"},"100%":{transform:"rotateZ(360deg)"}});function u({animating:e,iconStyle:t,width:n,height:o}){return(0,r.jsx)(s.Z,{style:{animation:e?`${l} 1s infinite linear`:null},children:(0,r.jsx)(a.Z,{width:n?n:14,height:o?o:14,style:t})})}},39235:function(e,t,n){"use strict";n.d(t,{U:function(){return l}});var r=n(43188);var o=n(66204);var i=n(81113);let a=(0,o.createContext)("app");i.Z.filter=e=>{let t=e.target||e.srcElement;let n=t.tagName;if(!e.metaKey&&(t.isContentEditable||(n==="INPUT"||n==="TEXTAREA"||n==="SELECT")&&!t["readOnly"])){return false}return true};function s({keyName:e,eventType:t="keydown",handler:n}){let r=(0,o.useContext)(a);if(t!=="keyup"&&t!=="keydown"){throw new Error("KeyHandler: unknown event type: "+t)}(0,o.useEffect)(()=>{function o(e,r){e.preventDefault();if(e.type===t&&n){return n(e,r)}}(0,i.Z)(e,{scope:r,keyup:true},o);return()=>{i.Z.unbind({key:e,scope:r,method:o})}},[e,n,r]);return null}function l({eventType:e,keys:t={}}){let n=Object.keys(t).map(n=>{return(0,r.jsx)(s,{keyName:n,eventType:e,handler:t[n]},n)});return(0,r.jsx)(r.Fragment,{children:n})}},49886:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(43188);var o=n(66204);var i=n(37496);var a=n(1447);var s=n(45492);var l=n(56816);var u=n(31941);var c=n(77644);var f=n(24307);var h=n(11800);var p=n(63541);function g({hideIfNoServer:e,style:t,color:n}){let g=(0,i.v9)(e=>e.user.data);let{getUserData:v,signOut:m,closeBudget:y}=(0,a.o)();let[w,x]=(0,o.useState)(true);let[b,S]=(0,o.useState)(false);const k=(0,h.o1)();(0,o.useEffect)(()=>{v().then(()=>x(false))},[]);async function j(){await y();window.__navigate("/change-password")}async function C(e){S(false);switch(e){case"change-password":j();break;case"sign-in":await y();window.__navigate("/login");break;case"sign-out":m();break;case"config-server":await y();window.__navigate("/config-server");break;default:}}function T(){if(!k){return"No server"}if(g?.offline){return"Server offline"}return"Server online"}if(e&&!k){return null}if(w&&k){return(0,r.jsx)(c.Z,{style:{color:s.rS.pageTextLight,fontStyle:"italic",...s.W2.delayedFadeIn,...t},children:"Connecting..."})}return(0,r.jsxs)(f.Z,{style:{flexDirection:"row",alignItems:"center",...t},children:[(0,r.jsx)(l.Z,{type:"bare",onClick:()=>S(true),style:n&&{color:n},children:T()}),b&&(0,r.jsx)(p.u,{position:"bottom-right",style:{padding:0},onClose:()=>S(false),children:(0,r.jsx)(u.Z,{onMenuSelect:C,items:[k&&!g?.offline&&{name:"change-password",text:"Change password"},k&&{name:"sign-out",text:"Sign out"},{name:"config-server",text:k?"Change server URL":"Start using a server"}]})})]})}},13308:function(e,t,n){"use strict";n.d(t,{T:function(){return f}});var r=n(43188);var o=n(66204);var i=n(76074);var a=n(45492);var s=n(77644);var l=n(24307);const u=50;function c({name:e,style:t,leftContent:n,rightContent:o}){const{isNarrowWidth:c}=(0,i.F)();if(c){return(0,r.jsxs)(l.Z,{style:{alignItems:"center",backgroundColor:a.rS.mobilePageBackground,color:a.rS.mobileModalText,flexDirection:"row",flexShrink:0,height:u,...t},children:[(0,r.jsx)(l.Z,{style:{flexBasis:"25%",justifyContent:"flex-start",flexDirection:"row"},children:n}),(0,r.jsx)(l.Z,{style:{alignItems:"center",flexDirection:"row",flexBasis:"50%",fontSize:18,fontWeight:500,justifyContent:"center",overflowY:"auto"},children:e}),(0,r.jsx)(l.Z,{style:{flexBasis:"25%",justifyContent:"flex-end",flexDirection:"row"},children:o})]})}return(0,r.jsx)(s.Z,{style:{fontSize:25,fontWeight:500,marginBottom:15,...t},children:e})}function f({title:e,titleStyle:t,headerLeftContent:n,headerRightContent:o,children:s}){let{isNarrowWidth:u}=(0,i.F)();let f=u?10:20;return(0,r.jsxs)(l.Z,{style:u?undefined:a.W2.page,children:[(0,r.jsx)(c,{name:e,leftContent:n,rightContent:o,style:{...t,...!u&&{paddingInline:f}}}),(0,r.jsx)(l.Z,{style:u?{overflowY:"auto",padding:f}:{paddingLeft:f,paddingRight:f,flex:1},children:s})]})}},44710:function(e,t,n){"use strict";n.d(t,{JS:function(){return f},ZP:function(){return u},wq:function(){return l}});var r=n(43188);var o=n(66204);var i=n(69247);var a=n(76074);var s=n(24307);function l({children:e,privacyFilter:t,defaultPrivacyFilterProps:n}){let i=(e,t)=>(0,r.jsx)(u,{...t,children:e});return t?typeof t==="boolean"?(0,r.jsx)(u,{...n,children:e}):i(e,f(n,t)):(0,r.jsx)(r.Fragment,{children:o.Children.toArray(e)})}function u({activationFilters:e,blurIntensity:t,children:n,...s}){let l=(0,i.Z)();let{isNarrowWidth:u}=(0,a.F)();let f=l&&!u&&(!e||e.every(e=>typeof e==="boolean"?e:e()));let h=t!=null?`${t}px`:"3px";return!f?(0,r.jsx)(r.Fragment,{children:o.Children.toArray(n)}):(0,r.jsx)(c,{blurIntensity:h,...s,children:n})}function c({blurIntensity:e,children:t,...n}){let[i,a]=(0,o.useState)(false);let l=(0,o.useCallback)(()=>a(true),[a]);let u=(0,o.useCallback)(()=>a(false),[a]);let c={...!i&&{filter:`blur(${e})`,WebkitFilter:`blur(${e})`,transform:`translate3d(0, 0, 0)`}};let{style:f,...h}=n;return(0,r.jsx)(s.Z,{style:{display:f?.display?f.display:"inline-flex",...c,...f},onPointerEnter:l,onPointerLeave:u,...h,children:t})}function f(e={},t){if(t==null||t===false){return t}if(t===true){return e}return h(e,t)}function h(e,...t){return t.reduce((e,t)=>{Object.keys(t).forEach(n=>{const r=e[n];const o=t[n];if(Array.isArray(r)&&Array.isArray(o)){e[n]=r.concat(...o)}else if(p(r)&&p(o)){e[n]=h(r,o)}else{e[n]=o}});return e},e)}function p(e){return e&&typeof e==="object"}},11800:function(e,t,n){"use strict";n.d(t,{Mx:function(){return l},o1:function(){return s},q3:function(){return u},qc:function(){return f}});var r=n(43188);var o=n(66204);var i=n(84094);const a=(0,o.createContext)({url:null,version:"",setURL:()=>Promise.reject(new Error("ServerContext not initialized"))});const s=()=>(0,o.useContext)(a).url;const l=()=>(0,o.useContext)(a).version;const u=()=>(0,o.useContext)(a).setURL;async function c(){let e=await (0,i.lW)("get-server-version");if("version"in e){return e.version}return""}function f({children:e}){let[t,n]=(0,o.useState)("");let[s,l]=(0,o.useState)("");(0,o.useEffect)(()=>{async function e(){n(await (0,i.lW)("get-server-url"));l(await c())}e()},[]);let u=(0,o.useCallback)(async(e,t={})=>{let{error:r}=await (0,i.lW)("set-server-url",{...t,url:e});if(!r){n(await (0,i.lW)("get-server-url"));l(await c())}return{error:r}},[n]);return(0,r.jsx)(a.Provider,{value:{url:t,setURL:u,version:s?`v${s}`:"N/A"},children:e})}},39717:function(e,t,n){"use strict";n.d(t,{Kk:function(){return U},rD:function(){return G},CR:function(){return K},TE:function(){return $},ZP:function(){return Q}});var r=n(43188);var o=n(66204);var i=n(37496);var a=n(59379);var s=n(67238);var l=n(46055);var u=n(84094);var c=n(1447);var f=n(58068);var h=n(24868);var p=n(93734);var g=n(79494);var v=n(68476);var m=n(38199);var y=n(42632);var w=n(76074);var x=n(45492);var b=n(70425);var S=n(19318);var k=n(56816);var j=n(15633);var C=n(24307);var T=n(63541);function E(e,t){switch(e.toUpperCase()){case"ITEM_ERROR":switch(t.toUpperCase()){case"NO_ACCOUNTS":return"No open accounts could be found. Did you close the account? If so, unlink the account.";case"ITEM_LOGIN_REQUIRED":return"Your password or something else has changed with your bank and you need to login again.";default:}break;case"INVALID_INPUT":switch(t.toUpperCase()){case"INVALID_ACCESS_TOKEN":return"Item is no longer authorized. You need to login again.";default:}break;case"RATE_LIMIT_EXCEEDED":return"Rate limit exceeded for this item. Please try again later.";default:}return(0,r.jsxs)(r.Fragment,{children:["An internal error occurred. Try to login again, or get"," ",(0,r.jsx)(j.Z,{to:"https://actualbudget.org/contact/",children:"in touch"})," ","for support."]})}function _(){let e=(0,i.v9)(e=>e.queries.accounts);let t=(0,i.v9)(e=>e.account.failedAccounts);let{unlinkAccount:n,pushModal:s}=(0,c.o)();let{id:l}=(0,a.UO)();let[u,f]=(0,o.useState)(false);if(!t){return null}let h=t.get(l);if(!h){return null}let p=e.find(e=>e.id===l);let{type:g,code:v}=h;let m=g==="ITEM_ERROR"&&v==="ITEM_LOGIN_REQUIRED"||g==="INVALID_INPUT"&&v==="INVALID_ACCESS_TOKEN";function y(){f(false);(0,b.F)(s,{upgradingAccountId:p.account_id})}async function w(){n(p.id);f(false)}return(0,r.jsxs)(C.Z,{children:[(0,r.jsxs)(k.Z,{type:"bare",style:{flexDirection:"row",alignItems:"center",color:x.rS.errorText,backgroundColor:x.rS.errorBackground,padding:"4px 8px",borderRadius:4},onClick:()=>f(true),children:[(0,r.jsx)(S.Z,{style:{width:14,height:14,marginRight:5}})," ","This account is experiencing connection problems. Let’s fix it."]}),u&&(0,r.jsxs)(T.u,{position:"bottom-left",onClose:()=>f(false),style:{fontSize:14,padding:15,maxWidth:400},children:[(0,r.jsx)("div",{style:{marginBottom:"1.15em"},children:"The server returned the following error:"}),(0,r.jsx)("div",{style:{marginBottom:"1.25em",color:x.rS.errorText},children:E(h.type,h.code)}),(0,r.jsx)(C.Z,{style:{justifyContent:"flex-end",flexDirection:"row"},children:m?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(k.Z,{onClick:w,children:"Unlink"}),(0,r.jsx)(k.Z,{type:"primary",onClick:y,style:{marginLeft:5},children:"Reauthorize"})]}):(0,r.jsx)(k.Z,{onClick:w,children:"Unlink account"})})]})]})}var I=n(6083);var M=n(48880);var D=n(75025);function P({color:e,onClick:t}){return(0,r.jsx)(M.Z,{style:{width:13,height:13,color:e,marginRight:5},onClick:t})}function O({maxMonths:e,onChange:t}){let{displayMax:n}=(0,D.s)();if(n<=1){return null}let o=[];for(let i=1;i<=n;i++){o.push((0,r.jsx)(P,{color:e>=i?x.rS.pageTextLight:x.rS.pageTextSubdued,onClick:()=>t(i)},i))}return(0,r.jsx)(C.Z,{style:{flexDirection:"row",marginRight:20,marginTop:-1,WebkitAppRegion:"no-drag","& svg":{transition:"transform .15s"},"& svg:hover":{transform:"scale(1.2)"}},title:"Choose the number of months shown at a time",children:o})}var A=n(6755);var R=n(42994);var Z=n(77644);var z=n(39235);var N=n(49886);var L=n(11800);var B=n(84367);var H=n(57651);var F=n(25104);var V=n(32455);function W({style:e}){let t=(0,x.Fg)();let{saveGlobalPrefs:n}=(0,c.o)();let{isNarrowWidth:o}=(0,w.F)();return o?null:(0,r.jsx)(k.Z,{type:"bare",onClick:()=>{n({theme:t==="dark"?"light":"dark"})},style:e,children:t==="light"?(0,r.jsx)(F.Z,{style:{width:15,height:15,color:"inherit"}}):(0,r.jsx)(V.Z,{style:{width:15,height:15,color:"inherit"}})})};const U="budget/switch-type";let K=(0,o.createContext)(null);function $({children:e}){let t=(0,o.useRef)([]);function n(e){t.current.forEach(t=>t(e))}function i(e){t.current.push(e);return()=>t.current=t.current.filter(t=>t!==e)}return(0,r.jsx)(K.Provider,{value:{sendEvent:n,subscribe:i},children:e})}function q(){let e=(0,H.Z)(l.sX());return e!==0&&(0,r.jsxs)(A.Z,{variant:"button",type:"bare",to:"/accounts/uncategorized",style:{color:x.rS.errorText},children:[e," uncategorized ",e===1?"transaction":"transactions"]})}function Y({style:e}){let t=(0,i.v9)(e=>e.prefs.local.isPrivacyEnabled);let{savePrefs:n}=(0,c.o)();let o={width:15,height:15};return(0,r.jsx)(k.Z,{type:"bare",onClick:()=>n({isPrivacyEnabled:!t}),style:e,children:t?(0,r.jsx)(m.Z,{style:o}):(0,r.jsx)(y.Z,{style:o})})}function G({style:e,isMobile:t=false}){let n=(0,i.v9)(e=>e.prefs.local.cloudFileId);let{sync:a}=(0,c.o)();let[s,l]=(0,o.useState)(false);let[f,h]=(0,o.useState)(null);(0,o.useEffect)(()=>{let e=(0,u.oL)("sync-event",({type:e,subtype:t,syncDisabled:r})=>{if(e==="start"){l(true);h(null)}else{setTimeout(()=>{l(false)},200)}if(e==="error"){if(t==="network"){h("offline")}else if(!n){h("local")}else{h("error")}}else if(e==="success"){h(r?"disabled":null)}});return e},[]);const p=f==="error"?x.rS.errorText:f==="disabled"||f==="offline"||f==="local"?x.rS.mobileHeaderTextSubdued:x.rS.mobileHeaderText;const v=f==="error"?x.rS.errorTextDark:f==="disabled"||f==="offline"||f==="local"?x.rS.tableTextLight:"inherit";const m=t?{color:p}:{};const y=t?{color:p,background:x.rS.mobileHeaderTextHover}:{};const w={color:p,justifyContent:"center",margin:10,paddingLeft:5,paddingRight:3};const b={...x.W2.text,fontWeight:500,marginLeft:2,marginRight:5};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(z.U,{keys:{"ctrl+s, cmd+s":()=>{a()}}}),(0,r.jsxs)(k.Z,{type:"bare",style:t?{...e,WebkitAppRegion:"none",...w}:{...e,WebkitAppRegion:"none",color:v},hoveredStyle:y,activeStyle:m,onClick:a,children:[t?f==="error"?(0,r.jsx)(g.Z,{width:14,height:14}):(0,r.jsx)(I.Z,{width:18,height:18,animating:s}):f==="error"?(0,r.jsx)(g.Z,{width:13}):(0,r.jsx)(I.Z,{animating:s}),(0,r.jsx)(Z.Z,{style:t?{...b}:{marginLeft:3},children:f==="disabled"?"Disabled":f==="offline"?"Offline":"Sync"})]})]})}function X(){let e=(0,i.v9)(e=>e.prefs.global.maxMonths);let t=(0,i.v9)(e=>e.prefs.local.budgetType);let{saveGlobalPrefs:n}=(0,c.o)();let{sendEvent:a}=(0,o.useContext)(K);let[s,l]=(0,o.useState)(false);let[u,h]=(0,o.useState)(false);const p=(0,f.Z)("reportBudget");function g(){l(true);if(!s){const e=t==="rollover"?"report":"rollover";a({type:U,payload:{newBudgetType:e}})}}(0,o.useEffect)(()=>{l(false)},[t]);return(0,r.jsxs)(C.Z,{style:{flexDirection:"row",alignItems:"center"},children:[(0,r.jsx)(O,{maxMonths:e||1,onChange:e=>n({maxMonths:e})}),p&&(0,r.jsxs)(C.Z,{style:{marginLeft:-5},children:[(0,r.jsx)(k.y,{type:"bare",loading:s,style:{alignSelf:"flex-start",padding:"4px 7px"},title:"Learn more about budgeting",onClick:()=>h(true),children:t==="report"?"Report budget":"Rollover budget"}),u&&(0,r.jsxs)(T.u,{position:"bottom-left",onClose:()=>h(false),style:{padding:10,maxWidth:400},children:[(0,r.jsxs)(R.Z,{children:["You are currently using a"," ",(0,r.jsxs)(Z.Z,{style:{fontWeight:600},children:[t==="report"?"Report budget":"Rollover budget","."]})," ","Switching will not lose any data and you can always switch back."]}),(0,r.jsx)(R.Z,{children:(0,r.jsxs)(k.y,{type:"primary",loading:s,onClick:g,children:["Switch to a"," ",t==="report"?"Rollover budget":"Report budget"]})}),(0,r.jsx)(R.Z,{isLast:true,children:(0,r.jsx)(j.Z,{to:"https://actualbudget.org/docs/experimental/report-budget",linkColor:"muted",children:"How do these types of budgeting work?"})})]})]})]})}function Q({style:e}){let t=(0,h.Z)();let n=(0,a.TH)();let o=(0,B.Ap)();let{isNarrowWidth:l}=(0,w.F)();let u=(0,L.o1)();let c=(0,i.v9)(e=>e.prefs.global.floatingSidebar);return l?null:(0,r.jsxs)(C.Z,{style:{flexDirection:"row",alignItems:"center",padding:"0 15px",height:36,pointerEvents:"none","& *":{pointerEvents:"auto"},...!s.jU&&s.OS==="mac"&&c&&{paddingLeft:80},...e},children:[(c||o.alwaysFloats)&&(0,r.jsx)(k.Z,{type:"bare",style:{marginRight:8},onPointerEnter:e=>{if(e.pointerType==="mouse"){o.setHidden(false)}},onPointerLeave:e=>{if(e.pointerType==="mouse"){o.setHidden(true)}},onPointerUp:e=>{if(e.pointerType!=="mouse"){o.setHidden(!o.hidden)}},children:(0,r.jsx)(v.Z,{className:"menu",style:{width:15,height:15,color:x.rS.pageText,left:0}})}),(0,r.jsxs)(a.Z5,{children:[(0,r.jsx)(a.AW,{path:"/accounts",element:n.state?.goBack?(0,r.jsxs)(k.Z,{type:"bare",onClick:()=>t(-1),children:[(0,r.jsx)(p.Z,{width:10,height:10,style:{marginRight:5,color:"currentColor"}})," ","Back"]}):null}),(0,r.jsx)(a.AW,{path:"/accounts/:id",element:(0,r.jsx)(_,{})}),(0,r.jsx)(a.AW,{path:"/budget",element:(0,r.jsx)(X,{})}),(0,r.jsx)(a.AW,{path:"*",element:null})]}),(0,r.jsx)(C.Z,{style:{flex:1}}),(0,r.jsx)(q,{}),(0,r.jsx)(W,{style:{marginLeft:10}}),(0,r.jsx)(Y,{style:{marginLeft:10}}),u?(0,r.jsx)(G,{style:{marginLeft:10}}):null,(0,r.jsx)(N.Z,{style:{marginLeft:10}})]})}},49374:function(e,t,n){"use strict";n.d(t,{NB:function(){return g},ZP:function(){return f},pn:function(){return h}});var r=n(43188);var o=n(66204);var i=n(99818);var a=n(99548);var s=n(45492);var l=n(24307);var u=n(25411);function c({items:e,getItemProps:t,highlightedIndex:n,embedded:i,renderAccountItemGroupHeader:a=p,renderAccountItem:s=v}){let u=null;return(0,r.jsx)(l.Z,{children:(0,r.jsx)(l.Z,{style:{overflow:"auto",padding:"5px 0",...!i&&{maxHeight:175}},children:e.map((e,l)=>{const c=u?e.offbudget!==u.offbudget&&!e.closed||e.closed!==u.closed&&!e.offbudget:true;const f=`${e.closed?"Closed Accounts":e.offbudget?"Off Budget":"For Budget"}`;u=e;return[c?(0,r.jsx)(o.Fragment,{children:a({title:f})},f):null,(0,r.jsx)(o.Fragment,{children:s({...t?t({item:e}):null,item:e,highlighted:n===l,embedded:i})},e.id)]})})})}function f({embedded:e,includeClosedAccounts:t=true,renderAccountItemGroupHeader:n,renderAccountItem:o,closeOnBlur:i,...s}){let l=(0,a.gM)()||[];l=l.filter(e=>{return t?e:!e.closed}).sort((e,t)=>{if(e.closed===t.closed){return e.offbudget===t.offbudget?0:e.offbudget?1:-1}else{return e.closed?1:-1}});return(0,r.jsx)(u.ZP,{strict:true,highlightFirst:true,embedded:e,closeOnBlur:i,suggestions:l,renderItems:(t,i,a)=>(0,r.jsx)(c,{items:t,getItemProps:i,highlightedIndex:a,embedded:e,renderAccountItemGroupHeader:n,renderAccountItem:o}),...s})}function h({title:e,style:t,...n}){return(0,r.jsx)("div",{style:{color:s.rS.menuAutoCompleteTextHeader,padding:"4px 9px",...t},"data-testid":`${e}-account-item-group`,...n,children:e})}function p(e){return(0,r.jsx)(h,{...e})}function g({item:e,className:t,highlighted:n,embedded:o,...a}){return(0,r.jsx)("div",{role:"button",className:`${t} ${(0,i.iv)([{backgroundColor:n?o?s.rS.menuItemBackgroundHover:s.rS.menuAutoCompleteBackgroundHover:"transparent",padding:4,paddingLeft:20,borderRadius:o?4:0}])}`,"data-testid":`${e.name}-account-item`,"data-highlighted":n||undefined,...a,children:e.name})}function v(e){return(0,r.jsx)(g,{...e})}},25411:function(e,t,n){"use strict";n.d(t,{oo:function(){return rs},ZP:function(){return rc},PW:function(){return n8}});var r=n(43188);var o=n(66204);function i(e,t){if(e==null)return{};var n={};var r=Object.keys(e);var o,i;for(i=0;i<r.length;i++){o=r[i];if(t.indexOf(o)>=0)continue;n[o]=e[o]}return n}var a=n(7896);var s=n(80753);var l=n(88960);function u(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;(0,l.Z)(e,t)}var c=n(97641);var f=n.n(c);var h=n(55815);let p=e=>"object"==typeof e&&null!=e&&1===e.nodeType,g=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,v=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let n=getComputedStyle(e,null);return g(n.overflowY,t)||g(n.overflowX,t)||(e=>{let t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},m=(e,t,n,r,o,i,a,s)=>i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-r:a>t&&s<n||i<e&&s>n?a-t+o:0,y=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t};var w=(e,t)=>{var n,r,o,i,a,s;if("undefined"==typeof document)return[];let{scrollMode:l,block:u,inline:c,boundary:f,skipOverflowHiddenElements:h}=t,g="function"==typeof f?f:e=>e!==f;if(!p(e))throw new TypeError("Invalid target");let w=document.scrollingElement||document.documentElement,x=[],b=e;for(;p(b)&&g(b);){if(b=y(b),b===w){x.push(b);break}null!=b&&b===document.body&&v(b)&&!v(document.documentElement)||null!=b&&v(b,h)&&x.push(b)}let S=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,k=null!=(i=null==(o=window.visualViewport)?void 0:o.height)?i:innerHeight,j=null!=(a=window.scrollX)?a:pageXOffset,C=null!=(s=window.scrollY)?s:pageYOffset,{height:T,width:E,top:_,right:I,bottom:M,left:D}=e.getBoundingClientRect(),P="start"===u||"nearest"===u?_:"end"===u?M:_+T/2,O="center"===c?D+E/2:"end"===c?I:D,A=[];for(let e=0;e<x.length;e++){let t=x[e],{height:n,width:r,top:o,right:i,bottom:a,left:s}=t.getBoundingClientRect();if("if-needed"===l&&_>=0&&D>=0&&M<=k&&I<=S&&_>=o&&M<=a&&D>=s&&I<=i)return A;let f=getComputedStyle(t),h=parseInt(f.borderLeftWidth,10),p=parseInt(f.borderTopWidth,10),g=parseInt(f.borderRightWidth,10),v=parseInt(f.borderBottomWidth,10),y=0,b=0,R="offsetWidth"in t?t.offsetWidth-t.clientWidth-h-g:0,Z="offsetHeight"in t?t.offsetHeight-t.clientHeight-p-v:0,z="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,N="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(w===t)y="start"===u?P:"end"===u?P-k:"nearest"===u?m(C,C+k,k,p,v,C+P,C+P+T,T):P-k/2,b="start"===c?O:"center"===c?O-S/2:"end"===c?O-S:m(j,j+S,S,h,g,j+O,j+O+E,E),y=Math.max(0,y+C),b=Math.max(0,b+j);else{y="start"===u?P-o-p:"end"===u?P-a+v+Z:"nearest"===u?m(o,a,n,p,v+Z,P,P+T,T):P-(o+n/2)+Z/2,b="start"===c?O-s-h:"center"===c?O-(s+r/2)+R/2:"end"===c?O-i+g+R:m(s,i,r,h,g+R,O,O+E,E);let{scrollLeft:e,scrollTop:l}=t;y=Math.max(0,Math.min(l+y/N,t.scrollHeight-n/N+Z)),b=Math.max(0,Math.min(e+b/z,t.scrollWidth-r/z+R)),P+=l-y,O+=e-b}A.push({el:t,top:y,left:b})}return A};var x=function(e,t){x=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};return x(e,t)};function b(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");x(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var S=function(){S=Object.assign||function e(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o))e[o]=t[o]}return e};return S.apply(this,arguments)};function k(e,t){var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0)n[r]=e[r];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++){if(t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o]))n[r[o]]=e[r[o]]}return n}function j(e,t,n,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")i=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)if(a=e[s])i=(o<3?a(i):o>3?a(t,n,i):a(t,n))||i;return o>3&&i&&Object.defineProperty(t,n,i),i}function C(e,t){return function(n,r){t(n,r,e)}}function T(e,t,n,r,o,i){function a(e){if(e!==void 0&&typeof e!=="function")throw new TypeError("Function expected");return e}var s=r.kind,l=s==="getter"?"get":s==="setter"?"set":"value";var u=!t&&e?r["static"]?e:e.prototype:null;var c=t||(u?Object.getOwnPropertyDescriptor(u,r.name):{});var f,h=false;for(var p=n.length-1;p>=0;p--){var g={};for(var v in r)g[v]=v==="access"?{}:r[v];for(var v in r.access)g.access[v]=r.access[v];g.addInitializer=function(e){if(h)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(e||null))};var m=(0,n[p])(s==="accessor"?{get:c.get,set:c.set}:c[l],g);if(s==="accessor"){if(m===void 0)continue;if(m===null||typeof m!=="object")throw new TypeError("Object expected");if(f=a(m.get))c.get=f;if(f=a(m.set))c.set=f;if(f=a(m.init))o.unshift(f)}else if(f=a(m)){if(s==="field")o.unshift(f);else c[l]=f}}if(u)Object.defineProperty(u,r.name,c);h=true};function E(e,t,n){var r=arguments.length>2;for(var o=0;o<t.length;o++){n=r?t[o].call(e,n):t[o].call(e)}return r?n:void 0};function _(e){return typeof e==="symbol"?e:"".concat(e)};function I(e,t,n){if(typeof t==="symbol")t=t.description?"[".concat(t.description,"]"):"";return Object.defineProperty(e,"name",{configurable:true,value:n?"".concat(n," ",t):t})};function M(e,t){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,t)}function D(e,t,n,r){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r["throw"](e))}catch(e){i(e)}}function l(e){e.done?n(e.value):o(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())})}function P(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,a;return a={next:s(0),"throw":s(1),"return":s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return l([e,t])}}function l(s){if(r)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(n=0)),n)try{if(r=1,o&&(i=s[0]&2?o["return"]:s[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;if(o=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;o=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){n.label=s[1];break}if(s[0]===6&&n.label<i[1]){n.label=i[1];i=s;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(s);break}if(i[2])n.ops.pop();n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e];o=0}finally{r=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}}var O=Object.create?function(e,t,n,r){if(r===undefined)r=n;var o=Object.getOwnPropertyDescriptor(t,n);if(!o||("get"in o?!t.__esModule:o.writable||o.configurable)){o={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,r,o)}:function(e,t,n,r){if(r===undefined)r=n;e[r]=t[n]};function A(e,t){for(var n in e)if(n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n))O(t,e,n)}function R(e){var t=typeof Symbol==="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&r>=e.length)e=void 0;return{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Z(e,t){var n=typeof Symbol==="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{while((t===void 0||t-- >0)&&!(o=r.next()).done)i.push(o.value)}catch(e){a={error:e}}finally{try{if(o&&!o.done&&(n=r["return"]))n.call(r)}finally{if(a)throw a.error}}return i}function z(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Z(arguments[t]));return e}function N(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),o=0,t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}function L(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++){if(i||!(r in t)){if(!i)i=Array.prototype.slice.call(t,0,r);i[r]=t[r]}}return e.concat(i||Array.prototype.slice.call(t))}function B(e){return this instanceof B?(this.v=e,this):new B(e)}function H(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(e){if(r[e])o[e]=function(t){return new Promise(function(n,r){i.push([e,t,n,r])>1||s(e,t)})}}function s(e,t){try{l(r[e](t))}catch(e){f(i[0][3],e)}}function l(e){e.value instanceof B?Promise.resolve(e.value.v).then(u,c):f(i[0][2],e)}function u(e){s("next",e)}function c(e){s("throw",e)}function f(e,t){if(e(t),i.shift(),i.length)s(i[0][0],i[0][1])}}function F(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:B(e[r](t)),done:false}:o?o(t):t}:o}}function V(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof R==="function"?R(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,i){n=e[t](n),o(r,i,n.done,n.value)})}}function o(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}}function W(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var U=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t};function K(e){if(e&&e.__esModule)return e;var t={};if(e!=null){for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))O(t,e,n)}U(t,e);return t}function $(e){return e&&e.__esModule?e:{default:e}}function q(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)}function Y(e,t,n,r,o){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?o.call(e,n):o?o.value=n:t.set(e,n),n}function G(e,t){if(t===null||typeof t!=="object"&&typeof t!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e==="function"?t===e:e.has(t)}var X={__extends:b,__assign:S,__rest:k,__decorate:j,__param:C,__metadata:M,__awaiter:D,__generator:P,__createBinding:O,__exportStar:A,__values:R,__read:Z,__spread:z,__spreadArrays:N,__spreadArray:L,__await:B,__asyncGenerator:H,__asyncDelegator:F,__asyncValues:V,__makeTemplateObject:W,__importStar:K,__importDefault:$,__classPrivateFieldGet:q,__classPrivateFieldSet:Y,__classPrivateFieldIn:G};var Q=0;function J(e){return typeof e==="function"?e:ee}function ee(){}function et(e,t){if(!e){return}var n=w(e,{boundary:t,block:"nearest",scrollMode:"if-needed"});n.forEach(function(e){var t=e.el,n=e.top,r=e.left;t.scrollTop=n;t.scrollLeft=r})}function en(e,t,n){var r=e===t||t instanceof n.Node&&e.contains&&e.contains(t);return r}function er(e,t){var n;function r(){if(n){clearTimeout(n)}}function o(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++){i[a]=arguments[a]}r();n=setTimeout(function(){n=null;e.apply(void 0,i)},t)}o.cancel=r;return o}function eo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++){t[n]=arguments[n]}return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++){r[o-1]=arguments[o]}return t.some(function(t){if(t){t.apply(void 0,[e].concat(r))}return e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault})}}function ei(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++){t[n]=arguments[n]}return function(e){t.forEach(function(t){if(typeof t==="function"){t(e)}else if(t){t.current=e}})}}function ea(){return String(Q++)}function es(){Q=0}function el(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;if(!t){return""}if(!n){return"No results are available."}if(n!==r){return n+" result"+(n===1?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select."}return""}function eu(e,t){e=Array.isArray(e)?e[0]:e;if(!e&&t){return t}else{return e}}function ec(e){return typeof e.type==="string"}function ed(e){return e.props}function ef(e,t){console.error('The property "'+t+'" is required in "'+e+'"')}var eh=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function ep(e){if(e===void 0){e={}}var t={};eh.forEach(function(n){if(e.hasOwnProperty(n)){t[n]=e[n]}});return t}function eg(e,t){return Object.keys(e).reduce(function(n,r){n[r]=ev(t,r)?t[r]:e[r];return n},{})}function ev(e,t){return e[t]!==undefined}function em(e){var t=e.key,n=e.keyCode;if(n>=37&&n<=40&&t.indexOf("Arrow")!==0){return"Arrow"+t}return t}function ey(e){return Object.prototype.toString.call(e)==="[object Object]"}function ew(e,t,n,r,o){if(o===void 0){o=true}if(n===0){return-1}var i=n-1;if(typeof t!=="number"||t<0||t>=n){t=e>0?-1:i+1}var a=t+e;if(a<0){a=o?i:0}else if(a>i){a=o?0:i}var s=ex(e,a,n,r,o);if(s===-1){return t>=n?-1:t}return s}function ex(e,t,n,r,o){var i=r(t);if(!i||!i.hasAttribute("disabled")){return t}if(e>0){for(var a=t+1;a<n;a++){if(!r(a).hasAttribute("disabled")){return a}}}else{for(var s=t-1;s>=0;s--){if(!r(s).hasAttribute("disabled")){return s}}}if(o){return e>0?ex(1,0,n,r,false):ex(-1,n-1,n,r,false)}return-1}function eb(e,t,n,r){if(r===void 0){r=true}return t.some(function(t){return t&&(en(t,e,n)||r&&en(t,n.document.activeElement,n))})}var eS=null&&ee;if(false){}var ek=er(function(e){eC(e).textContent=""},500);function ej(e,t){var n=eC(t);if(!e){return}n.textContent=e;ek(t)}function eC(e){if(e===void 0){e=document}var t=e.getElementById("a11y-status-message");if(t){return t}t=e.createElement("div");t.setAttribute("id","a11y-status-message");t.setAttribute("role","status");t.setAttribute("aria-live","polite");t.setAttribute("aria-relevant","additions text");Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"});e.body.appendChild(t);return t}var eT=false?0:0;var eE=false?0:1;var e_=false?0:2;var eI=false?0:3;var eM=false?0:4;var eD=false?0:5;var eP=false?0:6;var eO=false?0:7;var eA=false?0:8;var eR=false?0:9;var eZ=false?0:10;var ez=false?0:11;var eN=false?0:12;var eL=false?0:13;var eB=false?0:14;var eH=false?0:15;var eF=false?0:16;var eV=Object.freeze({__proto__:null,unknown:eT,mouseUp:eE,itemMouseEnter:e_,keyDownArrowUp:eI,keyDownArrowDown:eM,keyDownEscape:eD,keyDownEnter:eP,keyDownHome:eO,keyDownEnd:eA,clickItem:eR,blurInput:eZ,changeInput:ez,keyDownSpaceButton:eN,clickButton:eL,blurButton:eB,controlledPropUpdatedSelectedItem:eH,touchEnd:eF});var eW=["refKey","ref"],eU=["onClick","onPress","onKeyDown","onKeyUp","onBlur"],eK=["onKeyDown","onBlur","onChange","onInput","onChangeText"],e$=["refKey","ref"],eq=["onMouseMove","onMouseDown","onClick","onPress","index","item"];var eY=function(){var e=function(e){u(t,e);function t(t){var n;n=e.call(this,t)||this;n.id=n.props.id||"downshift-"+ea();n.menuId=n.props.menuId||n.id+"-menu";n.labelId=n.props.labelId||n.id+"-label";n.inputId=n.props.inputId||n.id+"-input";n.getItemId=n.props.getItemId||function(e){return n.id+"-item-"+e};n.input=null;n.items=[];n.itemCount=null;n.previousResultCount=0;n.timeoutIds=[];n.internalSetTimeout=function(e,t){var r=setTimeout(function(){n.timeoutIds=n.timeoutIds.filter(function(e){return e!==r});e()},t);n.timeoutIds.push(r)};n.setItemCount=function(e){n.itemCount=e};n.unsetItemCount=function(){n.itemCount=null};n.setHighlightedIndex=function(e,t){if(e===void 0){e=n.props.defaultHighlightedIndex}if(t===void 0){t={}}t=ep(t);n.internalSetState((0,a.Z)({highlightedIndex:e},t))};n.clearSelection=function(e){n.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:n.props.defaultHighlightedIndex,isOpen:n.props.defaultIsOpen},e)};n.selectItem=function(e,t,r){t=ep(t);n.internalSetState((0,a.Z)({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,selectedItem:e,inputValue:n.props.itemToString(e)},t),r)};n.selectItemAtIndex=function(e,t,r){var o=n.items[e];if(o==null){return}n.selectItem(o,t,r)};n.selectHighlightedItem=function(e,t){return n.selectItemAtIndex(n.getState().highlightedIndex,e,t)};n.internalSetState=function(e,t){var r,o;var i={};var s=typeof e==="function";if(!s&&e.hasOwnProperty("inputValue")){n.props.onInputValueChange(e.inputValue,(0,a.Z)({},n.getStateAndHelpers(),e))}return n.setState(function(t){t=n.getState(t);var l=s?e(t):e;l=n.props.stateReducer(t,l);r=l.hasOwnProperty("selectedItem");var u={};if(r&&l.selectedItem!==t.selectedItem){o=l.selectedItem}l.type=l.type||eT;Object.keys(l).forEach(function(e){if(t[e]!==l[e]){i[e]=l[e]}if(e==="type"){return}l[e];if(!ev(n.props,e)){u[e]=l[e]}});if(s&&l.hasOwnProperty("inputValue")){n.props.onInputValueChange(l.inputValue,(0,a.Z)({},n.getStateAndHelpers(),l))}return u},function(){J(t)();var a=Object.keys(i).length>1;if(a){n.props.onStateChange(i,n.getStateAndHelpers())}if(r){n.props.onSelect(e.selectedItem,n.getStateAndHelpers())}if(o!==undefined){n.props.onChange(o,n.getStateAndHelpers())}n.props.onUserAction(i,n.getStateAndHelpers())})};n.rootRef=function(e){return n._rootNode=e};n.getRootProps=function(e,t){var r;var o=e===void 0?{}:e,s=o.refKey,l=s===void 0?"ref":s,u=o.ref,c=i(o,eW);var f=t===void 0?{}:t,h=f.suppressRefError,p=h===void 0?false:h;n.getRootProps.called=true;n.getRootProps.refKey=l;n.getRootProps.suppressRefError=p;var g=n.getState(),v=g.isOpen;return(0,a.Z)((r={},r[l]=ei(u,n.rootRef),r.role="combobox",r["aria-expanded"]=v,r["aria-haspopup"]="listbox",r["aria-owns"]=v?n.menuId:null,r["aria-labelledby"]=n.labelId,r),c)};n.keyDownHandlers={ArrowDown:function e(e){var t=this;e.preventDefault();if(this.getState().isOpen){var n=e.shiftKey?5:1;this.moveHighlightedIndex(n,{type:eM})}else{this.internalSetState({isOpen:true,type:eM},function(){var e=t.getItemCount();if(e>0){var n=t.getState(),r=n.highlightedIndex;var o=ew(1,r,e,function(e){return t.getItemNodeFromIndex(e)});t.setHighlightedIndex(o,{type:eM})}})}},ArrowUp:function e(e){var t=this;e.preventDefault();if(this.getState().isOpen){var n=e.shiftKey?-5:-1;this.moveHighlightedIndex(n,{type:eI})}else{this.internalSetState({isOpen:true,type:eI},function(){var e=t.getItemCount();if(e>0){var n=t.getState(),r=n.highlightedIndex;var o=ew(-1,r,e,function(e){return t.getItemNodeFromIndex(e)});t.setHighlightedIndex(o,{type:eI})}})}},Enter:function e(e){if(e.which===229){return}var t=this.getState(),n=t.isOpen,r=t.highlightedIndex;if(n&&r!=null){e.preventDefault();var o=this.items[r];var i=this.getItemNodeFromIndex(r);if(o==null||i&&i.hasAttribute("disabled")){return}this.selectHighlightedItem({type:eP})}},Escape:function e(e){e.preventDefault();this.reset((0,a.Z)({type:eD},!this.state.isOpen&&{selectedItem:null,inputValue:""}))}};n.buttonKeyDownHandlers=(0,a.Z)({},n.keyDownHandlers,{" ":function e(e){e.preventDefault();this.toggleMenu({type:eN})}});n.inputKeyDownHandlers=(0,a.Z)({},n.keyDownHandlers,{Home:function e(e){var t=this;var n=this.getState(),r=n.isOpen;if(!r){return}e.preventDefault();var o=this.getItemCount();if(o<=0||!r){return}var i=ex(1,0,o,function(e){return t.getItemNodeFromIndex(e)},false);this.setHighlightedIndex(i,{type:eO})},End:function e(e){var t=this;var n=this.getState(),r=n.isOpen;if(!r){return}e.preventDefault();var o=this.getItemCount();if(o<=0||!r){return}var i=ex(-1,o-1,o,function(e){return t.getItemNodeFromIndex(e)},false);this.setHighlightedIndex(i,{type:eA})}});n.getToggleButtonProps=function(e){var t=e===void 0?{}:e,r=t.onClick;t.onPress;var o=t.onKeyDown,s=t.onKeyUp,l=t.onBlur,u=i(t,eU);var c=n.getState(),f=c.isOpen;var h={onClick:eo(r,n.buttonHandleClick),onKeyDown:eo(o,n.buttonHandleKeyDown),onKeyUp:eo(s,n.buttonHandleKeyUp),onBlur:eo(l,n.buttonHandleBlur)};var p=u.disabled?{}:h;return(0,a.Z)({type:"button",role:"button","aria-label":f?"close menu":"open menu","aria-haspopup":true,"data-toggle":true},p,u)};n.buttonHandleKeyUp=function(e){e.preventDefault()};n.buttonHandleKeyDown=function(e){var t=em(e);if(n.buttonKeyDownHandlers[t]){n.buttonKeyDownHandlers[t].call((0,s.Z)(n),e)}};n.buttonHandleClick=function(e){e.preventDefault();if(n.props.environment.document.activeElement===n.props.environment.document.body){e.target.focus()}if(false){}else{n.internalSetTimeout(function(){return n.toggleMenu({type:eL})})}};n.buttonHandleBlur=function(e){var t=e.target;n.internalSetTimeout(function(){if(!n.isMouseDown&&(n.props.environment.document.activeElement==null||n.props.environment.document.activeElement.id!==n.inputId)&&n.props.environment.document.activeElement!==t){n.reset({type:eB})}})};n.getLabelProps=function(e){return(0,a.Z)({htmlFor:n.inputId,id:n.labelId},e)};n.getInputProps=function(e){var t=e===void 0?{}:e,r=t.onKeyDown,o=t.onBlur,s=t.onChange,l=t.onInput;t.onChangeText;var u=i(t,eK);var c;var f={};{c="onChange"}var h=n.getState(),p=h.inputValue,g=h.isOpen,v=h.highlightedIndex;if(!u.disabled){var m;f=(m={},m[c]=eo(s,l,n.inputHandleChange),m.onKeyDown=eo(r,n.inputHandleKeyDown),m.onBlur=eo(o,n.inputHandleBlur),m)}return(0,a.Z)({"aria-autocomplete":"list","aria-activedescendant":g&&typeof v==="number"&&v>=0?n.getItemId(v):null,"aria-controls":g?n.menuId:null,"aria-labelledby":u&&u["aria-label"]?undefined:n.labelId,autoComplete:"off",value:p,id:n.inputId},f,u)};n.inputHandleKeyDown=function(e){var t=em(e);if(t&&n.inputKeyDownHandlers[t]){n.inputKeyDownHandlers[t].call((0,s.Z)(n),e)}};n.inputHandleChange=function(e){n.internalSetState({type:ez,isOpen:true,inputValue:e.target.value,highlightedIndex:n.props.defaultHighlightedIndex})};n.inputHandleBlur=function(){n.internalSetTimeout(function(){var e=n.props.environment.document&&!!n.props.environment.document.activeElement&&!!n.props.environment.document.activeElement.dataset&&n.props.environment.document.activeElement.dataset.toggle&&n._rootNode&&n._rootNode.contains(n.props.environment.document.activeElement);if(!n.isMouseDown&&!e){n.reset({type:eZ})}})};n.menuRef=function(e){n._menuNode=e};n.getMenuProps=function(e,t){var r;var o=e===void 0?{}:e,s=o.refKey,l=s===void 0?"ref":s,u=o.ref,c=i(o,e$);var f=t===void 0?{}:t,h=f.suppressRefError,p=h===void 0?false:h;n.getMenuProps.called=true;n.getMenuProps.refKey=l;n.getMenuProps.suppressRefError=p;return(0,a.Z)((r={},r[l]=ei(u,n.menuRef),r.role="listbox",r["aria-labelledby"]=c&&c["aria-label"]?null:n.labelId,r.id=n.menuId,r),c)};n.getItemProps=function(e){var t;var r=e===void 0?{}:e,o=r.onMouseMove,s=r.onMouseDown,l=r.onClick;r.onPress;var u=r.index,c=r.item,f=c===void 0?true?undefined:0:c,h=i(r,eq);if(u===undefined){n.items.push(f);u=n.items.indexOf(f)}else{n.items[u]=f}var p="onClick";var g=l;var v=(t={onMouseMove:eo(o,function(){if(u===n.getState().highlightedIndex){return}n.setHighlightedIndex(u,{type:e_});n.avoidScrolling=true;n.internalSetTimeout(function(){return n.avoidScrolling=false},250)}),onMouseDown:eo(s,function(e){e.preventDefault()})},t[p]=eo(g,function(){n.selectItemAtIndex(u,{type:eR})}),t);var m=h.disabled?{onMouseDown:v.onMouseDown}:v;return(0,a.Z)({id:n.getItemId(u),role:"option","aria-selected":n.getState().highlightedIndex===u},m,h)};n.clearItems=function(){n.items=[]};n.reset=function(e,t){if(e===void 0){e={}}e=ep(e);n.internalSetState(function(t){var r=t.selectedItem;return(0,a.Z)({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,inputValue:n.props.itemToString(r)},e)},t)};n.toggleMenu=function(e,t){if(e===void 0){e={}}e=ep(e);n.internalSetState(function(t){var r=t.isOpen;return(0,a.Z)({isOpen:!r},r&&{highlightedIndex:n.props.defaultHighlightedIndex},e)},function(){var r=n.getState(),o=r.isOpen,i=r.highlightedIndex;if(o){if(n.getItemCount()>0&&typeof i==="number"){n.setHighlightedIndex(i,e)}}J(t)()})};n.openMenu=function(e){n.internalSetState({isOpen:true},e)};n.closeMenu=function(e){n.internalSetState({isOpen:false},e)};n.updateStatus=er(function(){var e=n.getState();var t=n.items[e.highlightedIndex];var r=n.getItemCount();var o=n.props.getA11yStatusMessage((0,a.Z)({itemToString:n.props.itemToString,previousResultCount:n.previousResultCount,resultCount:r,highlightedItem:t},e));n.previousResultCount=r;ej(o,n.props.environment.document)},200);var r=n.props,o=r.defaultHighlightedIndex,l=r.initialHighlightedIndex,u=l===void 0?o:l,c=r.defaultIsOpen,f=r.initialIsOpen,h=f===void 0?c:f,p=r.initialInputValue,g=p===void 0?"":p,v=r.initialSelectedItem,m=v===void 0?null:v;var y=n.getState({highlightedIndex:u,isOpen:h,inputValue:g,selectedItem:m});if(y.selectedItem!=null&&n.props.initialInputValue===undefined){y.inputValue=n.props.itemToString(y.selectedItem)}n.state=y;return n}var n=t.prototype;n.internalClearTimeouts=function e(){this.timeoutIds.forEach(function(e){clearTimeout(e)});this.timeoutIds=[]};n.getState=function e(e){if(e===void 0){e=this.state}return eg(e,this.props)};n.getItemCount=function e(){var e=this.items.length;if(this.itemCount!=null){e=this.itemCount}else if(this.props.itemCount!==undefined){e=this.props.itemCount}return e};n.getItemNodeFromIndex=function e(e){return this.props.environment.document.getElementById(this.getItemId(e))};n.scrollHighlightedItemIntoView=function e(){{var e=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(e,this._menuNode)}};n.moveHighlightedIndex=function e(e,t){var n=this;var r=this.getItemCount();var o=this.getState(),i=o.highlightedIndex;if(r>0){var a=ew(e,i,r,function(e){return n.getItemNodeFromIndex(e)});this.setHighlightedIndex(a,t)}};n.getStateAndHelpers=function e(){var e=this.getState(),t=e.highlightedIndex,n=e.inputValue,r=e.selectedItem,o=e.isOpen;var i=this.props.itemToString;var a=this.id;var s=this.getRootProps,l=this.getToggleButtonProps,u=this.getLabelProps,c=this.getMenuProps,f=this.getInputProps,h=this.getItemProps,p=this.openMenu,g=this.closeMenu,v=this.toggleMenu,m=this.selectItem,y=this.selectItemAtIndex,w=this.selectHighlightedItem,x=this.setHighlightedIndex,b=this.clearSelection,S=this.clearItems,k=this.reset,j=this.setItemCount,C=this.unsetItemCount,T=this.internalSetState;return{getRootProps:s,getToggleButtonProps:l,getLabelProps:u,getMenuProps:c,getInputProps:f,getItemProps:h,reset:k,openMenu:p,closeMenu:g,toggleMenu:v,selectItem:m,selectItemAtIndex:y,selectHighlightedItem:w,setHighlightedIndex:x,clearSelection:b,clearItems:S,setItemCount:j,unsetItemCount:C,setState:T,itemToString:i,id:a,highlightedIndex:t,inputValue:n,isOpen:o,selectedItem:r}};n.componentDidMount=function e(){var e=this;if(false){}{var t=function t(){e.isMouseDown=true};var n=function t(t){e.isMouseDown=false;var n=eb(t.target,[e._rootNode,e._menuNode],e.props.environment);if(!n&&e.getState().isOpen){e.reset({type:eE},function(){return e.props.onOuterClick(e.getStateAndHelpers())})}};var r=function t(){e.isTouchMove=false};var o=function t(){e.isTouchMove=true};var i=function t(t){var n=eb(t.target,[e._rootNode,e._menuNode],e.props.environment,false);if(!e.isTouchMove&&!n&&e.getState().isOpen){e.reset({type:eF},function(){return e.props.onOuterClick(e.getStateAndHelpers())})}};var a=this.props.environment;a.addEventListener("mousedown",t);a.addEventListener("mouseup",n);a.addEventListener("touchstart",r);a.addEventListener("touchmove",o);a.addEventListener("touchend",i);this.cleanup=function(){e.internalClearTimeouts();e.updateStatus.cancel();a.removeEventListener("mousedown",t);a.removeEventListener("mouseup",n);a.removeEventListener("touchstart",r);a.removeEventListener("touchmove",o);a.removeEventListener("touchend",i)}}};n.shouldScroll=function e(e,t){var n=this.props.highlightedIndex===undefined?this.getState():this.props,r=n.highlightedIndex;var o=t.highlightedIndex===undefined?e:t,i=o.highlightedIndex;var a=r&&this.getState().isOpen&&!e.isOpen;var s=r!==i;return a||s};n.componentDidUpdate=function e(e,t){if(false){}if(ev(this.props,"selectedItem")&&this.props.selectedItemChanged(e.selectedItem,this.props.selectedItem)){this.internalSetState({type:eH,inputValue:this.props.itemToString(this.props.selectedItem)})}if(!this.avoidScrolling&&this.shouldScroll(t,e)){this.scrollHighlightedItemIntoView()}{this.updateStatus()}};n.componentWillUnmount=function e(){this.cleanup()};n.render=function e(){var e=eu(this.props.children,ee);this.clearItems();this.getRootProps.called=false;this.getRootProps.refKey=undefined;this.getRootProps.suppressRefError=undefined;this.getMenuProps.called=false;this.getMenuProps.refKey=undefined;this.getMenuProps.suppressRefError=undefined;this.getLabelProps.called=false;this.getInputProps.called=false;var t=eu(e(this.getStateAndHelpers()));if(!t){return null}if(this.getRootProps.called||this.props.suppressRefError){if(false){}return t}else if(ec(t)){return(0,o.cloneElement)(t,this.getRootProps(ed(t)))}if(false){}return undefined};return t}(o.Component);e.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:false,getA11yStatusMessage:el,itemToString:function e(e){if(e==null){return""}if(false){}return String(e)},onStateChange:ee,onInputValueChange:ee,onUserAction:ee,onChange:ee,onSelect:ee,onOuterClick:ee,selectedItemChanged:function e(e,t){return e!==t},environment:typeof window==="undefined"?{}:window,stateReducer:function e(e,t){return t},suppressRefError:false,scrollIntoView:et};e.stateChangeTypes=eV;return e}();false?0:void 0;var eG=eY;function eX(e,t){var n=t.refKey;if(!e){console.error('downshift: The ref prop "'+n+'" from getMenuProps was not applied correctly on your menu element.')}}function eQ(e,t){var n=t.refKey;var r=n!=="ref";var o=!ec(e);if(o&&!r&&!isForwardRef(e)){console.error("downshift: You returned a non-DOM element. You must specify a refKey in getRootProps")}else if(!o&&r){console.error('downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "'+n+'"')}if(!isForwardRef(e)&&!ed(e)[n]){console.error('downshift: You must apply the ref prop "'+n+'" from getRootProps onto your root element.')}}var eJ=["isInitialMount","highlightedIndex","items","environment"];var e0={highlightedIndex:-1,isOpen:false,selectedItem:null,inputValue:""};function e1(e,t,n){var r=e.props,o=e.type;var i={};Object.keys(t).forEach(function(r){e2(r,e,t,n);if(n[r]!==t[r]){i[r]=n[r]}});if(r.onStateChange&&Object.keys(i).length){r.onStateChange((0,a.Z)({type:o},i))}}function e2(e,t,n,r){var o=t.props,i=t.type;var s="on"+tt(e)+"Change";if(o[s]&&r[e]!==undefined&&r[e]!==n[e]){o[s]((0,a.Z)({type:i},r))}}function e4(e,t){return t.changes}function e5(e){var t=e.selectedItem,n=e.itemToString;return t?n(t)+" has been selected.":""}var e3=er(function(e,t){ej(e(),t)},200);var e8=typeof window!=="undefined"&&typeof window.document!=="undefined"&&typeof window.document.createElement!=="undefined"?o.useLayoutEffect:o.useEffect;function e6(e){var t=e.id,n=t===void 0?"downshift-"+ea():t,r=e.labelId,i=e.menuId,a=e.getItemId,s=e.toggleButtonId,l=e.inputId;var u=(0,o.useRef)({labelId:r||n+"-label",menuId:i||n+"-menu",getItemId:a||function(e){return n+"-item-"+e},toggleButtonId:s||n+"-toggle-button",inputId:l||n+"-input"});return u.current}function e7(e,t,n,r){var o,i;if(e===undefined){if(t===undefined){throw new Error(r)}o=n[t];i=t}else{i=t===undefined?n.indexOf(e):t;o=e}return[o,i]}function e9(e){return e?String(e):""}function te(e){return/^\S{1}$/.test(e)}function tt(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function tn(e){var t=(0,o.useRef)(e);t.current=e;return t}function tr(e,t,n){var r=(0,o.useRef)();var i=(0,o.useRef)();var s=(0,o.useCallback)(function(t,n){i.current=n;t=eg(t,n.props);var r=e(t,n);var o=n.props.stateReducer(t,(0,a.Z)({},n,{changes:r}));return o},[e]);var l=(0,o.useReducer)(s,t),u=l[0],c=l[1];var f=tn(n);var h=(0,o.useCallback)(function(e){return c((0,a.Z)({props:f.current},e))},[f]);var p=i.current;(0,o.useEffect)(function(){if(p&&r.current&&r.current!==u){e1(p,eg(r.current,p.props),u)}r.current=u},[u,n,p]);return[u,h]}function to(e,t,n){var r=tr(e,t,n),o=r[0],i=r[1];return[eg(o,n),i]}var ti={itemToString:e9,stateReducer:e4,getA11ySelectionMessage:e5,scrollIntoView:et,environment:typeof window==="undefined"?{}:window};function ta(e,t,n){if(n===void 0){n=e0}var r=e["default"+tt(t)];if(r!==undefined){return r}return n[t]}function ts(e,t,n){if(n===void 0){n=e0}var r=e[t];if(r!==undefined){return r}var o=e["initial"+tt(t)];if(o!==undefined){return o}return ta(e,t,n)}function tl(e){var t=ts(e,"selectedItem");var n=ts(e,"isOpen");var r=ts(e,"highlightedIndex");var o=ts(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:o}}function tu(e,t,n){var r=e.items,o=e.initialHighlightedIndex,i=e.defaultHighlightedIndex;var a=t.selectedItem,s=t.highlightedIndex;if(r.length===0){return-1}if(o!==undefined&&s===o){return o}if(i!==undefined){return i}if(a){return r.indexOf(a)}if(n===0){return-1}return n<0?r.length-1:0}function tc(e,t,n,r){var i=(0,o.useRef)({isMouseDown:false,isTouchMove:false});(0,o.useEffect)(function(){if((n==null?void 0:n.addEventListener)==null){return}var o=function e(){i.current.isMouseDown=true};var a=function o(o){i.current.isMouseDown=false;if(e&&!eb(o.target,t.map(function(e){return e.current}),n)){r()}};var s=function e(){i.current.isTouchMove=false};var l=function e(){i.current.isTouchMove=true};var u=function o(o){if(e&&!i.current.isTouchMove&&!eb(o.target,t.map(function(e){return e.current}),n,false)){r()}};n.addEventListener("mousedown",o);n.addEventListener("mouseup",a);n.addEventListener("touchstart",s);n.addEventListener("touchmove",l);n.addEventListener("touchend",u);return function e(){n.removeEventListener("mousedown",o);n.removeEventListener("mouseup",a);n.removeEventListener("touchstart",s);n.removeEventListener("touchmove",l);n.removeEventListener("touchend",u)}},[e,n]);return i}var td=function e(){return ee};if(false){}function tf(e,t,n){var r=n.isInitialMount,s=n.highlightedIndex,l=n.items,u=n.environment,c=i(n,eJ);(0,o.useEffect)(function(){if(r||false){return}e3(function(){return e((0,a.Z)({highlightedIndex:s,highlightedItem:l[s],resultCount:l.length},c))},u.document)},t)}function th(e){var t=e.highlightedIndex,n=e.isOpen,r=e.itemRefs,i=e.getItemNodeFromIndex,a=e.menuElement,s=e.scrollIntoView;var l=(0,o.useRef)(true);e8(function(){if(t<0||!n||!Object.keys(r.current).length){return}if(l.current===false){l.current=true}else{s(i(t),a)}},[t]);return l}var tp=ee;if(false){}function tg(e,t,n){var r;if(n===void 0){n=true}var o=((r=e.items)==null?void 0:r.length)&&t>=0;return(0,a.Z)({isOpen:false,highlightedIndex:-1},o&&(0,a.Z)({selectedItem:e.items[t],isOpen:ta(e,"isOpen"),highlightedIndex:ta(e,"highlightedIndex")},n&&{inputValue:e.itemToString(e.items[t])}))}function tv(e,t,n){var r=t.type,o=t.props;var i;switch(r){case n.ItemMouseMove:i={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:i={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:i={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:tu(o,e,0)};break;case n.FunctionOpenMenu:i={isOpen:true,highlightedIndex:tu(o,e,0)};break;case n.FunctionCloseMenu:i={isOpen:false};break;case n.FunctionSetHighlightedIndex:i={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:i={inputValue:t.inputValue};break;case n.FunctionReset:i={highlightedIndex:ta(o,"highlightedIndex"),isOpen:ta(o,"isOpen"),selectedItem:ta(o,"selectedItem"),inputValue:ta(o,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return(0,a.Z)({},e,i)}function tm(e){var t=e.keysSoFar,n=e.highlightedIndex,r=e.items,o=e.itemToString,i=e.getItemNodeFromIndex;var a=t.toLowerCase();for(var s=0;s<r.length;s++){var l=(s+n+(t.length<2?1:0))%r.length;var u=r[l];if(u!==undefined&&o(u).toLowerCase().startsWith(a)){var c=i(l);if(!(c===null||c===void 0?void 0:c.hasAttribute("disabled"))){return l}}}return n}var ty={items:f().array.isRequired,itemToString:f().func,getA11yStatusMessage:f().func,getA11ySelectionMessage:f().func,highlightedIndex:f().number,defaultHighlightedIndex:f().number,initialHighlightedIndex:f().number,isOpen:f().bool,defaultIsOpen:f().bool,initialIsOpen:f().bool,selectedItem:f().any,initialSelectedItem:f().any,defaultSelectedItem:f().any,id:f().string,labelId:f().string,menuId:f().string,getItemId:f().func,toggleButtonId:f().string,stateReducer:f().func,onSelectedItemChange:f().func,onHighlightedIndexChange:f().func,onStateChange:f().func,onIsOpenChange:f().func,environment:f().shape({addEventListener:f().func,removeEventListener:f().func,document:f().shape({getElementById:f().func,activeElement:f().any,body:f().any})})};function tw(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;if(!t){return""}if(!n){return"No results are available."}if(n!==r){return"".concat(n," result").concat(n===1?" is":"s are"," available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select.")}return""}var tx=S(S({},ti),{getA11yStatusMessage:tw});var tb=ee;if(false){}var tS=false?0:0;var tk=false?0:1;var tj=false?0:2;var tC=false?0:3;var tT=false?0:4;var tE=false?0:5;var t_=false?0:6;var tI=false?0:7;var tM=false?0:8;var tD=false?0:9;var tP=false?0:10;var tO=false?0:11;var tA=false?0:12;var tR=false?0:13;var tZ=false?0:14;var tz=false?0:15;var tN=false?0:16;var tL=false?0:17;var tB=false?0:18;var tH=false?0:19;var tF=false?0:20;var tV=false?0:21;var tW=Object.freeze({__proto__:null,ToggleButtonClick:tS,ToggleButtonKeyDownArrowDown:tk,ToggleButtonKeyDownArrowUp:tj,ToggleButtonKeyDownCharacter:tC,ToggleButtonKeyDownEscape:tT,ToggleButtonKeyDownHome:tE,ToggleButtonKeyDownEnd:t_,ToggleButtonKeyDownEnter:tI,ToggleButtonKeyDownSpaceButton:tM,ToggleButtonKeyDownPageUp:tD,ToggleButtonKeyDownPageDown:tP,ToggleButtonBlur:tO,MenuMouseLeave:tA,ItemMouseMove:tR,ItemClick:tZ,FunctionToggleMenu:tz,FunctionOpenMenu:tN,FunctionCloseMenu:tL,FunctionSetHighlightedIndex:tB,FunctionSelectItem:tH,FunctionSetInputValue:tF,FunctionReset:tV});function tU(e,t){var n;var r=t.type,o=t.props,i=t.altKey;var s;switch(r){case tZ:s={isOpen:ta(o,"isOpen"),highlightedIndex:ta(o,"highlightedIndex"),selectedItem:o.items[t.index]};break;case tC:{var l=t.key;var u=""+e.inputValue+l;var c=!e.isOpen&&e.selectedItem?o.items.indexOf(e.selectedItem):e.highlightedIndex;var f=tm({keysSoFar:u,highlightedIndex:c,items:o.items,itemToString:o.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});s={inputValue:u,highlightedIndex:f,isOpen:true}}break;case tk:{var h=e.isOpen?ew(1,e.highlightedIndex,o.items.length,t.getItemNodeFromIndex,false):i&&e.selectedItem==null?-1:tu(o,e,1);s={highlightedIndex:h,isOpen:true}}break;case tj:if(e.isOpen&&i){s=tg(o,e.highlightedIndex,false)}else{var p=e.isOpen?ew(-1,e.highlightedIndex,o.items.length,t.getItemNodeFromIndex,false):tu(o,e,-1);s={highlightedIndex:p,isOpen:true}}break;case tI:case tM:s=tg(o,e.highlightedIndex,false);break;case tE:s={highlightedIndex:ex(1,0,o.items.length,t.getItemNodeFromIndex,false),isOpen:true};break;case t_:s={highlightedIndex:ex(-1,o.items.length-1,o.items.length,t.getItemNodeFromIndex,false),isOpen:true};break;case tD:s={highlightedIndex:ew(-10,e.highlightedIndex,o.items.length,t.getItemNodeFromIndex,false)};break;case tP:s={highlightedIndex:ew(10,e.highlightedIndex,o.items.length,t.getItemNodeFromIndex,false)};break;case tT:s={isOpen:false,highlightedIndex:-1};break;case tO:s=(0,a.Z)({isOpen:false,highlightedIndex:-1},e.highlightedIndex>=0&&((n=o.items)==null?void 0:n.length)&&{selectedItem:o.items[e.highlightedIndex]});break;case tH:s={selectedItem:t.selectedItem};break;default:return tv(e,t,tW)}return(0,a.Z)({},e,s)}var tK=["onMouseLeave","refKey","onKeyDown","onBlur","ref"],t$=["onBlur","onClick","onPress","onKeyDown","refKey","ref"],tq=["item","index","onMouseMove","onClick","onPress","refKey","ref","disabled"];tY.stateChangeTypes=tW;function tY(e){if(e===void 0){e={}}tb(e,tY);var t=(0,a.Z)({},tx,e);var n=t.items,r=t.scrollIntoView,s=t.environment,l=t.itemToString,u=t.getA11ySelectionMessage,c=t.getA11yStatusMessage;var f=tl(t);var h=to(tU,f,t),p=h[0],g=h[1];var v=p.isOpen,m=p.highlightedIndex,y=p.selectedItem,w=p.inputValue;var x=(0,o.useRef)(null);var b=(0,o.useRef)(null);var S=(0,o.useRef)({});var k=(0,o.useRef)(null);var j=e6(t);var C=(0,o.useRef)();var T=(0,o.useRef)(true);var E=tn({state:p,props:t});var _=(0,o.useCallback)(function(e){return S.current[j.getItemId(e)]},[j]);tf(c,[v,m,w,n],(0,a.Z)({isInitialMount:T.current,previousResultCount:C.current,items:n,environment:s,itemToString:l},p));tf(u,[y],(0,a.Z)({isInitialMount:T.current,previousResultCount:C.current,items:n,environment:s,itemToString:l},p));var I=th({menuElement:b.current,highlightedIndex:m,isOpen:v,itemRefs:S,scrollIntoView:r,getItemNodeFromIndex:_});(0,o.useEffect)(function(){k.current=er(function(e){e({type:tF,inputValue:""})},500);return function(){k.current.cancel()}},[]);(0,o.useEffect)(function(){if(!w){return}k.current(g)},[g,w]);tp({isInitialMount:T.current,props:t,state:p});(0,o.useEffect)(function(){if(T.current){return}C.current=n.length});var M=tc(v,[b,x],s,function(){g({type:tO})});var D=td("getMenuProps","getToggleButtonProps");(0,o.useEffect)(function(){T.current=false;return function(){T.current=true}},[]);(0,o.useEffect)(function(){if(!v){S.current={}}},[v]);var P=(0,o.useMemo)(function(){return{ArrowDown:function e(e){e.preventDefault();g({type:tk,getItemNodeFromIndex:_,altKey:e.altKey})},ArrowUp:function e(e){e.preventDefault();g({type:tj,getItemNodeFromIndex:_,altKey:e.altKey})},Home:function e(e){e.preventDefault();g({type:tE,getItemNodeFromIndex:_})},End:function e(e){e.preventDefault();g({type:t_,getItemNodeFromIndex:_})},Escape:function e(){if(E.current.state.isOpen){g({type:tT})}},Enter:function e(e){e.preventDefault();g({type:E.current.state.isOpen?tI:tS})},PageUp:function e(e){if(E.current.state.isOpen){e.preventDefault();g({type:tD,getItemNodeFromIndex:_})}},PageDown:function e(e){if(E.current.state.isOpen){e.preventDefault();g({type:tP,getItemNodeFromIndex:_})}}," ":function e(e){e.preventDefault();var t=E.current.state;if(!t.isOpen){g({type:tS});return}if(t.inputValue){g({type:tC,key:" ",getItemNodeFromIndex:_})}else{g({type:tM})}}}},[g,_,E]);var O=(0,o.useCallback)(function(){g({type:tz})},[g]);var A=(0,o.useCallback)(function(){g({type:tL})},[g]);var R=(0,o.useCallback)(function(){g({type:tN})},[g]);var Z=(0,o.useCallback)(function(e){g({type:tB,highlightedIndex:e})},[g]);var z=(0,o.useCallback)(function(e){g({type:tH,selectedItem:e})},[g]);var N=(0,o.useCallback)(function(){g({type:tV})},[g]);var L=(0,o.useCallback)(function(e){g({type:tF,inputValue:e})},[g]);var B=(0,o.useCallback)(function(e){return(0,a.Z)({id:j.labelId,htmlFor:j.toggleButtonId},e)},[j]);var H=(0,o.useCallback)(function(e,t){var n;var r=e===void 0?{}:e,o=r.onMouseLeave,s=r.refKey,l=s===void 0?"ref":s;r.onKeyDown;r.onBlur;var u=r.ref,c=i(r,tK);var f=t===void 0?{}:t,h=f.suppressRefError,p=h===void 0?false:h;var v=function e(){g({type:tA})};D("getMenuProps",p,l,b);return(0,a.Z)((n={},n[l]=ei(u,function(e){b.current=e}),n.id=j.menuId,n.role="listbox",n["aria-labelledby"]=c&&c["aria-label"]?undefined:""+j.labelId,n.onMouseLeave=eo(o,v),n),c)},[g,D,j]);var F=(0,o.useCallback)(function(e,t){var n;var r=e===void 0?{}:e,o=r.onBlur,s=r.onClick;r.onPress;var l=r.onKeyDown,u=r.refKey,c=u===void 0?"ref":u,f=r.ref,h=i(r,t$);var p=t===void 0?{}:t,v=p.suppressRefError,m=v===void 0?false:v;var y=E.current.state;var w=function e(){g({type:tS})};var b=function e(){if(y.isOpen&&!M.current.isMouseDown){g({type:tO})}};var S=function e(e){var t=em(e);if(t&&P[t]){P[t](e)}else if(te(t)){g({type:tC,key:t,getItemNodeFromIndex:_})}};var k=(0,a.Z)((n={},n[c]=ei(f,function(e){x.current=e}),n["aria-activedescendant"]=y.isOpen&&y.highlightedIndex>-1?j.getItemId(y.highlightedIndex):"",n["aria-controls"]=j.menuId,n["aria-expanded"]=E.current.state.isOpen,n["aria-haspopup"]="listbox",n["aria-labelledby"]=h&&h["aria-label"]?undefined:""+j.labelId,n.id=j.toggleButtonId,n.role="combobox",n.tabIndex=0,n.onBlur=eo(o,b),n),h);if(!h.disabled){{k.onClick=eo(s,w);k.onKeyDown=eo(l,S)}}D("getToggleButtonProps",m,c,x);return k},[E,j,D,g,M,P,_]);var V=(0,o.useCallback)(function(e){var t;var n=e===void 0?{}:e,r=n.item,o=n.index,s=n.onMouseMove,l=n.onClick;n.onPress;var u=n.refKey,c=u===void 0?"ref":u,f=n.ref,h=n.disabled,p=i(n,tq);var v=E.current,m=v.state,w=v.props;var x=e7(r,o,w.items,"Pass either item or index to getItemProps!"),b=x[0],k=x[1];var C=function e(){if(k===m.highlightedIndex){return}I.current=false;g({type:tR,index:k,disabled:h})};var T=function e(){g({type:tZ,index:k})};var _=(0,a.Z)((t={disabled:h,role:"option","aria-selected":""+(b===y),id:j.getItemId(k)},t[c]=ei(f,function(e){if(e){S.current[j.getItemId(k)]=e}}),t),p);if(!h){{_.onClick=eo(l,T)}}_.onMouseMove=eo(s,C);return _},[E,y,j,I,g]);return{getToggleButtonProps:F,getLabelProps:B,getMenuProps:H,getItemProps:V,toggleMenu:O,openMenu:R,closeMenu:A,setHighlightedIndex:Z,selectItem:z,reset:N,setInputValue:L,highlightedIndex:m,isOpen:v,selectedItem:y,inputValue:w}}var tG=false?0:0;var tX=false?0:1;var tQ=false?0:2;var tJ=false?0:3;var t0=false?0:4;var t1=false?0:5;var t2=false?0:6;var t4=false?0:7;var t5=false?0:8;var t3=false?0:9;var t8=false?0:10;var t6=false?0:11;var t7=false?0:12;var t9=false?0:13;var ne=false?0:14;var nt=false?0:15;var nn=false?0:16;var no=false?0:17;var ni=false?0:18;var na=false?0:19;var ns=false?0:20;var nl=false?0:21;var nu=false?0:22;var nc=Object.freeze({__proto__:null,InputKeyDownArrowDown:tG,InputKeyDownArrowUp:tX,InputKeyDownEscape:tQ,InputKeyDownHome:tJ,InputKeyDownEnd:t0,InputKeyDownPageUp:t1,InputKeyDownPageDown:t2,InputKeyDownEnter:t4,InputChange:t5,InputBlur:t3,InputFocus:t8,MenuMouseLeave:t6,ItemMouseMove:t7,ItemClick:t9,ToggleButtonClick:ne,FunctionToggleMenu:nt,FunctionOpenMenu:nn,FunctionCloseMenu:no,FunctionSetHighlightedIndex:ni,FunctionSelectItem:na,FunctionSetInputValue:ns,FunctionReset:nl,ControlledPropUpdatedSelectedItem:nu});function nd(e){var t=tl(e);var n=t.selectedItem;var r=t.inputValue;if(r===""&&n&&e.defaultInputValue===undefined&&e.initialInputValue===undefined&&e.inputValue===undefined){r=e.itemToString(n)}return(0,a.Z)({},t,{inputValue:r})}var nf={items:f().array.isRequired,itemToString:f().func,selectedItemChanged:f().func,getA11yStatusMessage:f().func,getA11ySelectionMessage:f().func,highlightedIndex:f().number,defaultHighlightedIndex:f().number,initialHighlightedIndex:f().number,isOpen:f().bool,defaultIsOpen:f().bool,initialIsOpen:f().bool,selectedItem:f().any,initialSelectedItem:f().any,defaultSelectedItem:f().any,inputValue:f().string,defaultInputValue:f().string,initialInputValue:f().string,id:f().string,labelId:f().string,menuId:f().string,getItemId:f().func,inputId:f().string,toggleButtonId:f().string,stateReducer:f().func,onSelectedItemChange:f().func,onHighlightedIndexChange:f().func,onStateChange:f().func,onIsOpenChange:f().func,onInputValueChange:f().func,environment:f().shape({addEventListener:f().func,removeEventListener:f().func,document:f().shape({getElementById:f().func,activeElement:f().any,body:f().any})})};function nh(e,t,n){var r=(0,o.useRef)();var i=tr(e,t,n),a=i[0],s=i[1];(0,o.useEffect)(function(){if(!ev(n,"selectedItem")){return}if(n.selectedItemChanged(r.current,n.selectedItem)){s({type:nu,inputValue:n.itemToString(n.selectedItem)})}r.current=a.selectedItem===r.current?n.selectedItem:a.selectedItem},[a.selectedItem,n.selectedItem]);return[eg(a,n),s]}var np=ee;if(false){}var ng=(0,a.Z)({},ti,{selectedItemChanged:function e(e,t){return e!==t},getA11yStatusMessage:el});function nv(e,t){var n;var r=t.type,o=t.props,i=t.altKey;var s;switch(r){case t9:s={isOpen:ta(o,"isOpen"),highlightedIndex:ta(o,"highlightedIndex"),selectedItem:o.items[t.index],inputValue:o.itemToString(o.items[t.index])};break;case tG:if(e.isOpen){s={highlightedIndex:ew(1,e.highlightedIndex,o.items.length,t.getItemNodeFromIndex,true)}}else{s={highlightedIndex:i&&e.selectedItem==null?-1:tu(o,e,1,t.getItemNodeFromIndex),isOpen:o.items.length>=0}}break;case tX:if(e.isOpen){if(i){s=tg(o,e.highlightedIndex)}else{s={highlightedIndex:ew(-1,e.highlightedIndex,o.items.length,t.getItemNodeFromIndex,true)}}}else{s={highlightedIndex:tu(o,e,-1,t.getItemNodeFromIndex),isOpen:o.items.length>=0}}break;case t4:s=tg(o,e.highlightedIndex);break;case tQ:s=(0,a.Z)({isOpen:false,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case t1:s={highlightedIndex:ew(-10,e.highlightedIndex,o.items.length,t.getItemNodeFromIndex,false)};break;case t2:s={highlightedIndex:ew(10,e.highlightedIndex,o.items.length,t.getItemNodeFromIndex,false)};break;case tJ:s={highlightedIndex:ex(1,0,o.items.length,t.getItemNodeFromIndex,false)};break;case t0:s={highlightedIndex:ex(-1,o.items.length-1,o.items.length,t.getItemNodeFromIndex,false)};break;case t3:s=(0,a.Z)({isOpen:false,highlightedIndex:-1},e.highlightedIndex>=0&&((n=o.items)==null?void 0:n.length)&&t.selectItem&&{selectedItem:o.items[e.highlightedIndex],inputValue:o.itemToString(o.items[e.highlightedIndex])});break;case t5:s={isOpen:true,highlightedIndex:ta(o,"highlightedIndex"),inputValue:t.inputValue};break;case t8:s={isOpen:true,highlightedIndex:tu(o,e,0)};break;case na:s={selectedItem:t.selectedItem,inputValue:o.itemToString(t.selectedItem)};break;case nu:s={inputValue:t.inputValue};break;default:return tv(e,t,nc)}return(0,a.Z)({},e,s)}var nm=["onMouseLeave","refKey","ref"],ny=["item","index","refKey","ref","onMouseMove","onMouseDown","onClick","onPress","disabled"],nw=["onClick","onPress","refKey","ref"],nx=["onKeyDown","onChange","onInput","onFocus","onBlur","onChangeText","refKey","ref"];nb.stateChangeTypes=nc;function nb(e){if(e===void 0){e={}}np(e,nb);var t=(0,a.Z)({},ng,e);var n=t.initialIsOpen,r=t.defaultIsOpen,s=t.items,l=t.scrollIntoView,u=t.environment,c=t.getA11yStatusMessage,f=t.getA11ySelectionMessage,h=t.itemToString;var p=nd(t);var g=nh(nv,p,t),v=g[0],m=g[1];var y=v.isOpen,w=v.highlightedIndex,x=v.selectedItem,b=v.inputValue;var S=(0,o.useRef)(null);var k=(0,o.useRef)({});var j=(0,o.useRef)(null);var C=(0,o.useRef)(null);var T=(0,o.useRef)(true);var E=e6(t);var _=(0,o.useRef)();var I=tn({state:v,props:t});var M=(0,o.useCallback)(function(e){return k.current[E.getItemId(e)]},[E]);tf(c,[y,w,b,s],(0,a.Z)({isInitialMount:T.current,previousResultCount:_.current,items:s,environment:u,itemToString:h},v));tf(f,[x],(0,a.Z)({isInitialMount:T.current,previousResultCount:_.current,items:s,environment:u,itemToString:h},v));var D=th({menuElement:S.current,highlightedIndex:w,isOpen:y,itemRefs:k,scrollIntoView:l,getItemNodeFromIndex:M});tp({isInitialMount:T.current,props:t,state:v});(0,o.useEffect)(function(){var e=n||r||y;if(e&&j.current){j.current.focus()}},[]);(0,o.useEffect)(function(){if(T.current){return}_.current=s.length});var P=tc(y,[j,S,C],u,function(){m({type:t3,selectItem:false})});var O=td("getInputProps","getMenuProps");(0,o.useEffect)(function(){T.current=false;return function(){T.current=true}},[]);(0,o.useEffect)(function(){var e;if(!y){k.current={}}else if(((e=u.document)==null?void 0:e.activeElement)!==j.current){var t;j==null?void 0:(t=j.current)==null?void 0:t.focus()}},[y,u]);var A=(0,o.useMemo)(function(){return{ArrowDown:function e(e){e.preventDefault();m({type:tG,altKey:e.altKey,getItemNodeFromIndex:M})},ArrowUp:function e(e){e.preventDefault();m({type:tX,altKey:e.altKey,getItemNodeFromIndex:M})},Home:function e(e){if(!I.current.state.isOpen){return}e.preventDefault();m({type:tJ,getItemNodeFromIndex:M})},End:function e(e){if(!I.current.state.isOpen){return}e.preventDefault();m({type:t0,getItemNodeFromIndex:M})},Escape:function e(e){var t=I.current.state;if(t.isOpen||t.inputValue||t.selectedItem||t.highlightedIndex>-1){e.preventDefault();m({type:tQ})}},Enter:function e(e){var t=I.current.state;if(!t.isOpen||e.which===229){return}e.preventDefault();m({type:t4,getItemNodeFromIndex:M})},PageUp:function e(e){if(I.current.state.isOpen){e.preventDefault();m({type:t1,getItemNodeFromIndex:M})}},PageDown:function e(e){if(I.current.state.isOpen){e.preventDefault();m({type:t2,getItemNodeFromIndex:M})}}}},[m,I,M]);var R=(0,o.useCallback)(function(e){return(0,a.Z)({id:E.labelId,htmlFor:E.inputId},e)},[E]);var Z=(0,o.useCallback)(function(e,t){var n;var r=e===void 0?{}:e,o=r.onMouseLeave,s=r.refKey,l=s===void 0?"ref":s,u=r.ref,c=i(r,nm);var f=t===void 0?{}:t,h=f.suppressRefError,p=h===void 0?false:h;O("getMenuProps",p,l,S);return(0,a.Z)((n={},n[l]=ei(u,function(e){S.current=e}),n.id=E.menuId,n.role="listbox",n["aria-labelledby"]=c&&c["aria-label"]?undefined:""+E.labelId,n.onMouseLeave=eo(o,function(){m({type:t6})}),n),c)},[m,O,E]);var z=(0,o.useCallback)(function(e){var t,n;var r=e===void 0?{}:e,o=r.item,s=r.index,l=r.refKey,u=l===void 0?"ref":l,c=r.ref,f=r.onMouseMove,h=r.onMouseDown,p=r.onClick;r.onPress;var g=r.disabled,v=i(r,ny);var y=I.current,w=y.props,x=y.state;var b=e7(o,s,w.items,"Pass either item or index to getItemProps!"),S=b[1];var j="onClick";var C=p;var T=function e(){if(S===x.highlightedIndex){return}D.current=false;m({type:t7,index:S,disabled:g})};var _=function e(){m({type:t9,index:S})};var M=function e(e){return e.preventDefault()};return(0,a.Z)((t={},t[u]=ei(c,function(e){if(e){k.current[E.getItemId(S)]=e}}),t.disabled=g,t.role="option",t["aria-selected"]=""+(S===x.highlightedIndex),t.id=E.getItemId(S),t),!g&&(n={},n[j]=eo(C,_),n),{onMouseMove:eo(f,T),onMouseDown:eo(h,M)},v)},[m,I,D,E]);var N=(0,o.useCallback)(function(e){var t;var n=e===void 0?{}:e,r=n.onClick;n.onPress;var o=n.refKey,s=o===void 0?"ref":o,l=n.ref,u=i(n,nw);var c=I.current.state;var f=function e(){m({type:ne})};return(0,a.Z)((t={},t[s]=ei(l,function(e){C.current=e}),t["aria-controls"]=E.menuId,t["aria-expanded"]=c.isOpen,t.id=E.toggleButtonId,t.tabIndex=-1,t),!u.disabled&&(0,a.Z)({},{onClick:eo(r,f)}),u)},[m,I,E]);var L=(0,o.useCallback)(function(e,t){var n;var r=e===void 0?{}:e,o=r.onKeyDown,s=r.onChange,l=r.onInput,u=r.onFocus,c=r.onBlur;r.onChangeText;var f=r.refKey,h=f===void 0?"ref":f,p=r.ref,g=i(r,nx);var v=t===void 0?{}:t,y=v.suppressRefError,w=y===void 0?false:y;O("getInputProps",w,h,j);var x=I.current.state;var b=function e(e){var t=em(e);if(t&&A[t]){A[t](e)}};var S=function e(e){m({type:t5,inputValue:e.target.value})};var k=function e(e){if(x.isOpen&&!P.current.isMouseDown){m({type:t3,selectItem:e.relatedTarget!==null})}};var C=function e(){if(!x.isOpen){m({type:t8})}};var T="onChange";var _={};if(!g.disabled){var M;_=(M={},M[T]=eo(s,l,S),M.onKeyDown=eo(o,b),M.onBlur=eo(c,k),M.onFocus=eo(u,C),M)}return(0,a.Z)((n={},n[h]=ei(p,function(e){j.current=e}),n["aria-activedescendant"]=x.isOpen&&x.highlightedIndex>-1?E.getItemId(x.highlightedIndex):"",n["aria-autocomplete"]="list",n["aria-controls"]=E.menuId,n["aria-expanded"]=x.isOpen,n["aria-labelledby"]=g&&g["aria-label"]?undefined:""+E.labelId,n.autoComplete="off",n.id=E.inputId,n.role="combobox",n.value=x.inputValue,n),_,g)},[m,A,I,P,O,E]);var B=(0,o.useCallback)(function(){m({type:nt})},[m]);var H=(0,o.useCallback)(function(){m({type:no})},[m]);var F=(0,o.useCallback)(function(){m({type:nn})},[m]);var V=(0,o.useCallback)(function(e){m({type:ni,highlightedIndex:e})},[m]);var W=(0,o.useCallback)(function(e){m({type:na,selectedItem:e})},[m]);var U=(0,o.useCallback)(function(e){m({type:ns,inputValue:e})},[m]);var K=(0,o.useCallback)(function(){m({type:nl})},[m]);return{getItemProps:z,getLabelProps:R,getMenuProps:Z,getInputProps:L,getToggleButtonProps:N,toggleMenu:B,openMenu:F,closeMenu:H,setHighlightedIndex:V,setInputValue:U,selectItem:W,reset:K,highlightedIndex:w,isOpen:y,selectedItem:x,inputValue:b}}var nS={activeIndex:-1,selectedItems:[]};function nk(e,t){return ts(e,t,nS)}function nj(e,t){return ta(e,t,nS)}function nC(e){var t=nk(e,"activeIndex");var n=nk(e,"selectedItems");return{activeIndex:t,selectedItems:n}}function nT(e){if(e.shiftKey||e.metaKey||e.ctrlKey||e.altKey){return false}var t=e.target;if(t instanceof HTMLInputElement&&t.value!==""&&(t.selectionStart!==0||t.selectionEnd!==0)){return false}return true}function nE(e){var t=e.removedSelectedItem,n=e.itemToString;return n(t)+" has been removed."}var n_={selectedItems:f().array,initialSelectedItems:f().array,defaultSelectedItems:f().array,itemToString:f().func,getA11yRemovalMessage:f().func,stateReducer:f().func,activeIndex:f().number,initialActiveIndex:f().number,defaultActiveIndex:f().number,onActiveIndexChange:f().func,onSelectedItemsChange:f().func,keyNavigationNext:f().string,keyNavigationPrevious:f().string,environment:f().shape({addEventListener:f().func,removeEventListener:f().func,document:f().shape({getElementById:f().func,activeElement:f().any,body:f().any})})};var nI={itemToString:ti.itemToString,stateReducer:ti.stateReducer,environment:ti.environment,getA11yRemovalMessage:nE,keyNavigationNext:"ArrowRight",keyNavigationPrevious:"ArrowLeft"};var nM=ee;if(false){}var nD=false?0:0;var nP=false?0:1;var nO=false?0:2;var nA=false?0:3;var nR=false?0:4;var nZ=false?0:5;var nz=false?0:6;var nN=false?0:7;var nL=false?0:8;var nB=false?0:9;var nH=false?0:10;var nF=false?0:11;var nV=false?0:12;var nW=Object.freeze({__proto__:null,SelectedItemClick:nD,SelectedItemKeyDownDelete:nP,SelectedItemKeyDownBackspace:nO,SelectedItemKeyDownNavigationNext:nA,SelectedItemKeyDownNavigationPrevious:nR,DropdownKeyDownNavigationPrevious:nZ,DropdownKeyDownBackspace:nz,DropdownClick:nN,FunctionAddSelectedItem:nL,FunctionRemoveSelectedItem:nB,FunctionSetSelectedItems:nH,FunctionSetActiveIndex:nF,FunctionReset:nV});function nU(e,t){var n=t.type,r=t.index,o=t.props,i=t.selectedItem;var s=e.activeIndex,l=e.selectedItems;var u;switch(n){case nD:u={activeIndex:r};break;case nR:u={activeIndex:s-1<0?0:s-1};break;case nA:u={activeIndex:s+1>=l.length?-1:s+1};break;case nO:case nP:{if(s<0){break}var c=s;if(l.length===1){c=-1}else if(s===l.length-1){c=l.length-2}u=(0,a.Z)({selectedItems:[].concat(l.slice(0,s),l.slice(s+1))},{activeIndex:c});break}case nZ:u={activeIndex:l.length-1};break;case nz:u={selectedItems:l.slice(0,l.length-1)};break;case nL:u={selectedItems:[].concat(l,[i])};break;case nN:u={activeIndex:-1};break;case nB:{var f=s;var h=l.indexOf(i);if(h<0){break}if(l.length===1){f=-1}else if(h===l.length-1){f=l.length-2}u={selectedItems:[].concat(l.slice(0,h),l.slice(h+1)),activeIndex:f};break}case nH:{var p=t.selectedItems;u={selectedItems:p};break}case nF:{var g=t.activeIndex;u={activeIndex:g};break}case nV:u={activeIndex:nj(o,"activeIndex"),selectedItems:nj(o,"selectedItems")};break;default:throw new Error("Reducer called without proper action type.")}return(0,a.Z)({},e,u)}var nK=["refKey","ref","onClick","onKeyDown","selectedItem","index"],n$=["refKey","ref","onKeyDown","onClick","preventKeyAction"];nq.stateChangeTypes=nW;function nq(e){if(e===void 0){e={}}nM(e,nq);var t=(0,a.Z)({},nI,e);var n=t.getA11yRemovalMessage,r=t.itemToString,s=t.environment,l=t.keyNavigationNext,u=t.keyNavigationPrevious;var c=to(nU,nC(t),t),f=c[0],h=c[1];var p=f.activeIndex,g=f.selectedItems;var v=(0,o.useRef)(true);var m=(0,o.useRef)(null);var y=(0,o.useRef)(g);var w=(0,o.useRef)();w.current=[];var x=tn({state:f,props:t});(0,o.useEffect)(function(){if(v.current||false){return}if(g.length<y.current.length){var e=y.current.find(function(e){return g.indexOf(e)<0});ej(n({itemToString:r,resultCount:g.length,removedSelectedItem:e,activeIndex:p,activeSelectedItem:g[p]}),s.document)}y.current=g},[g.length]);(0,o.useEffect)(function(){if(v.current){return}if(p===-1&&m.current){m.current.focus()}else if(w.current[p]){w.current[p].focus()}},[p]);tp({isInitialMount:v.current,props:t,state:f});var b=td("getDropdownProps");(0,o.useEffect)(function(){v.current=false;return function(){v.current=true}},[]);var S=(0,o.useMemo)(function(){var e;return e={},e[u]=function(){h({type:nR})},e[l]=function(){h({type:nA})},e.Delete=function e(){h({type:nP})},e.Backspace=function e(){h({type:nO})},e},[h,l,u]);var k=(0,o.useMemo)(function(){var e;return e={},e[u]=function(e){if(nT(e)){h({type:nZ})}},e.Backspace=function e(e){if(nT(e)){h({type:nz})}},e},[h,u]);var j=(0,o.useCallback)(function(e){var t;var n=e===void 0?{}:e,r=n.refKey,o=r===void 0?"ref":r,s=n.ref,l=n.onClick,u=n.onKeyDown,c=n.selectedItem,f=n.index,p=i(n,nK);var g=x.current.state;var v=e7(c,f,g.selectedItems,"Pass either item or index to getSelectedItemProps!"),m=v[1];var y=m>-1&&m===g.activeIndex;var b=function e(){h({type:nD,index:m})};var k=function e(e){var t=em(e);if(t&&S[t]){S[t](e)}};return(0,a.Z)((t={},t[o]=ei(s,function(e){if(e){w.current.push(e)}}),t.tabIndex=y?0:-1,t.onClick=eo(l,b),t.onKeyDown=eo(u,k),t),p)},[h,x,S]);var C=(0,o.useCallback)(function(e,t){var n;var r=e===void 0?{}:e,o=r.refKey,s=o===void 0?"ref":o,l=r.ref,u=r.onKeyDown,c=r.onClick,f=r.preventKeyAction,p=f===void 0?false:f,g=i(r,n$);var v=t===void 0?{}:t,y=v.suppressRefError,w=y===void 0?false:y;b("getDropdownProps",w,s,m);var x=function e(e){var t=em(e);if(t&&k[t]){k[t](e)}};var S=function e(){h({type:nN})};return(0,a.Z)((n={},n[s]=ei(l,function(e){if(e){m.current=e}}),n),!p&&{onKeyDown:eo(u,x),onClick:eo(c,S)},g)},[h,k,b]);var T=(0,o.useCallback)(function(e){h({type:nL,selectedItem:e})},[h]);var E=(0,o.useCallback)(function(e){h({type:nB,selectedItem:e})},[h]);var _=(0,o.useCallback)(function(e){h({type:nH,selectedItems:e})},[h]);var I=(0,o.useCallback)(function(e){h({type:nF,activeIndex:e})},[h]);var M=(0,o.useCallback)(function(){h({type:nV})},[h]);return{getSelectedItemProps:j,getDropdownProps:C,addSelectedItem:T,removeSelectedItem:E,setSelectedItems:_,setActiveIndex:I,reset:M,selectedItems:g,activeIndex:p}}var nY=n(99818);var nG=n(5202);var nX=n(45492);var nQ=n(56816);var nJ=n(383);var n0=n(24307);var n1=n(63541);const n2={};function n4(e,t,n){if(e){let e=t.findIndex(e=>e.id===n);return e===-1?null:t[e]}return n}function n5(e){if(e==null){return""}else if(typeof e==="string"){return e}return e.name||""}function n3(e){if(typeof e==="string"){return e}return e?e.id:null}function n8(e,t){return n5(e).toLowerCase().includes(t.toLowerCase())}function n6(e,t){return e.filter(e=>n8(e,t))}function n7(e,t,n,r,o){let i=null;if(!t){i=o}else{if(r==null){let e=n.find(e=>e.id===o);if(e){i=e.id}}else if(r<n.length){i=n[r].id}}e?.(i,o)}function n9(e){return(0,r.jsx)(nJ.ZP,{...e})}function re(e,t,n){return(0,r.jsx)("div",{children:e.map((e,r)=>{let i=n5(e);return(0,o.createElement)("div",{...t({item:e}),role:"button",key:i,className:`${(0,nY.iv)({padding:5,cursor:"default",backgroundColor:n===r?nX.rS.menuAutoCompleteBackgroundHover:null})}`},i)})})}function rt(e){return e.code==="Enter"}function rn(e){return e?n5(e):""}function ro({focused:e,embedded:t=false,containerProps:n,labelProps:i={},inputProps:a={},suggestions:s,tooltipStyle:l,tooltipProps:u,renderInput:c=n9,renderItems:f=re,itemToString:h=rn,shouldSaveFromKey:p=rt,filterSuggestions:g=n6,openOnFocus:v=true,getHighlightedIndex:m,highlightFirst:y,onUpdate:w,strict:x,onSelect:b,tableBehavior:S,closeOnBlur:k=true,value:j,isMulti:C=false}){const[T,E]=(0,o.useState)(()=>n4(x,s,j));const[_,I]=(0,o.useState)(T?n5(T):"");const[M,D]=(0,o.useState)(false);const[P,O]=(0,o.useState)(T);const A=(0,o.useMemo)(()=>g(s,_),[g,s,_]);const[R,Z]=(0,o.useState)(null);const[z,N]=(0,o.useState)(t);(0,o.useEffect)(()=>{E(n4(x,s,j))},[j,s,x]);function L(e){const n=e===undefined?j:e;let r=n4(x,s,n);E(r);I(r?n5(r):"");O(r);Z(null);N(t);D(false)}function B(){I("");E(null);Z(null);D(false)}const H=M?A||s:s;return(0,r.jsx)(eG,{onSelect:(e,{inputValue:t})=>{E(e);Z(null);if(C){I("")}else{N(false)}if(b){setTimeout(()=>{b(n3(e),t)},0)}},highlightedIndex:R,selectedItem:T||null,itemToString:h,inputValue:_,isOpen:z,onInputValueChange:(e,t)=>{if(!document.hasFocus()){return}if([eG.stateChangeTypes.controlledPropUpdatedSelectedItem,eG.stateChangeTypes.touchEnd].includes(t.type)){return}const n=g(s,e);if(e===""){if(t.type!==eG.stateChangeTypes.clickItem){n7(w,x,n,null,null)}Z(null)}else{let r=e=>{return y&&e.length?0:null};let o=(m||r)(n);if(t.type!==eG.stateChangeTypes.clickItem){n7(w,x,n,o,e)}Z(o)}I(e);D(true)},onStateChange:e=>{if(S&&e.type===eG.stateChangeTypes.mouseUp){return}if("highlightedIndex"in e&&e.type!==eG.stateChangeTypes.changeInput){Z(e.highlightedIndex)}if("selectedItem"in e){E(e.selectedItem)}if(z&&(e.type===eG.stateChangeTypes.keyDownArrowUp||e.type===eG.stateChangeTypes.keyDownArrowDown)){n7(w,x,A||s,e.highlightedIndex!=null?e.highlightedIndex:R,_)}n2.lastChangeType=e.type},labelId:i?.id,children:({getInputProps:o,getItemProps:i,isOpen:h,inputValue:g,highlightedIndex:m})=>(0,r.jsxs)("div",{className:`view ${(0,nY.iv)({display:"flex"})}`,...n,children:[c(o({focused:e,...a,onFocus:e=>{a.onFocus?.(e);if(v){N(true)}},onBlur:e=>{e["preventDownshiftDefault"]=true;a.onBlur?.(e);if(!k)return;if(!S){if(e.target.value===""){b?.(null,e.target.value);E(null);N(false);return}let t=T?n3(T):null;L(t)}else{N(false)}},onKeyDown:e=>{let{onKeyDown:n}=a||{};if(h){if(e.key==="Enter"){if(m!=null){if(n2.lastChangeType===eG.stateChangeTypes.itemMouseEnter){e.preventDefault()}else{e.stopPropagation()}}else if(!x){e.stopPropagation();b(_,e.target.value);return B()}else{e.preventDefault();n?.(e)}}else if(p(e)){e.preventDefault();n?.(e)}}if(e.key==="Escape"){e.nativeEvent["preventDownshiftDefault"]=true;if(!t){e.stopPropagation()}n7(w,x,s,null,n3(P));I(n5(P));E(n4(x,s,P));Z(null);N(t?true:false)}},onChange:e=>{const{onChange:t}=a||{};t?.(e.target.value)}})),h&&H.length>0&&(t?(0,r.jsx)(n0.Z,{style:{marginTop:5},"data-testid":"autocomplete",children:f(H,i,m,g)}):(0,r.jsx)(n1.u,{position:"bottom-stretch",offset:2,style:{padding:0,backgroundColor:nX.rS.menuAutoCompleteBackground,color:nX.rS.menuAutoCompleteText,minWidth:200,...l},...u,"data-testid":"autocomplete",children:f(H,i,m,g)}))]})})}function ri({name:e,onRemove:t}){return(0,r.jsxs)(n0.Z,{style:{alignItems:"center",flexDirection:"row",backgroundColor:nX.rS.pillBackgroundSelected,padding:"2px 4px",margin:"2px",borderRadius:4},children:[e,(0,r.jsx)(nQ.Z,{type:"bare",style:{marginLeft:1},onClick:t,children:(0,r.jsx)(nG.Z,{style:{width:8,height:8}})})]})}function ra({value:e,onSelect:t,suggestions:n,strict:i,...a}){let[s,l]=(0,o.useState)(false);let u=(0,o.useRef)();(0,o.useEffect)(()=>{u.current=e});function c(n){let r=e.filter(e=>e!==n);t(r)}function f(n){if(n){n=n.trim();t([...e,n],n)}}function h(t,n){if(t.key==="Backspace"&&t.target.value===""){c(e[e.length-1])}n?.(t)}return(0,r.jsx)(rc,{...a,isMulti:true,value:null,suggestions:n.filter(t=>!e.includes(n3(t))),onSelect:f,highlightFirst:true,strict:i,tooltipProps:{forceLayout:u.current!==e},renderInput:t=>(0,r.jsxs)(n0.Z,{style:{display:"flex",flexWrap:"wrap",flexDirection:"row",alignItems:"center",backgroundColor:nX.rS.tableBackground,borderRadius:4,border:"1px solid "+nX.rS.formInputBorder,...s&&{border:"1px solid "+nX.rS.formInputBorderSelected,boxShadow:"0 1px 1px "+nX.rS.formInputShadowSelected}},children:[e.map((e,t)=>{e=n4(i,n,e);return e&&(0,r.jsx)(ri,{name:n5(e),onRemove:()=>c(n3(e))},n3(e)||t)}),(0,r.jsx)(nJ.ZP,{...t,onKeyDown:e=>h(e,t.onKeyDown),onFocus:e=>{l(true);t.onFocus(e)},onBlur:e=>{l(false);t.onBlur(e)},style:{flex:1,minWidth:30,border:0,":focus":{border:0,boxShadow:"none"},...t.style}})]})})}function rs({show:e=true,embedded:t,children:n}){return e&&(0,r.jsx)(n0.Z,{style:{flexShrink:0,...t?{paddingTop:5}:{padding:5}},onMouseDown:e=>e.preventDefault(),children:n})}function rl(e,t){return t}function ru(e,t){return!t}function rc({multi:e,...t}){if(rl(t,e)){return(0,r.jsx)(ra,{...t})}else if(ru(t,e)){return(0,r.jsx)(ro,{...t})}}},44048:function(e,t,n){"use strict";n.d(t,{PM:function(){return w},UH:function(){return g},ZP:function(){return p}});var r=n(43188);var o=n(66204);var i=n(99818);const a=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 32",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:3.5,d:"m30 9-4-4M30 9l-4 4M6 5 2 9M2 9l4 4M10 9H3M22 9h7M16 15l6-6M16 15l-6-6M16 28V15"})});var s=a;var l=n(45492);var u=n(77644);var c=n(24307);var f=n(25411);function h({items:e,getItemProps:t,highlightedIndex:n,embedded:i,footer:a,renderSplitTransactionButton:s=y,renderCategoryItemGroupHeader:l=v,renderCategoryItem:u=x}){let f=null;return(0,r.jsxs)(c.Z,{children:[(0,r.jsx)(c.Z,{style:{overflow:"auto",padding:"5px 0",...!i&&{maxHeight:175}},children:e.map((e,a)=>{if(e.id==="split"){return s({key:"split",...t?t({item:e}):null,highlighted:n===a,embedded:i})}const c=e.cat_group!==f;f=e.cat_group;return(0,r.jsxs)(o.Fragment,{children:[c&&(0,r.jsx)(o.Fragment,{children:l({title:e.group?.name})},e.group?.name),(0,r.jsx)(o.Fragment,{children:u({...t?t({item:e}):null,item:e,highlighted:n===a,embedded:i})},e.id)]},e.id)})}),a]})}function p({categoryGroups:e,showSplitOption:t,embedded:n,closeOnBlur:i,renderSplitTransactionButton:a,renderCategoryItemGroupHeader:s,renderCategoryItem:l,...u}){let c=(0,o.useMemo)(()=>e.reduce((e,t)=>e.concat(t.categories.filter(e=>e.cat_group===t.id).map(e=>({...e,group:t}))),t?[{id:"split",name:""}]:[]),[t,e]);return(0,r.jsx)(f.ZP,{strict:true,highlightFirst:true,embedded:n,closeOnBlur:i,getHighlightedIndex:e=>{if(e.length===0){return null}else if(e[0].id==="split"){return e.length>1?1:null}return 0},filterSuggestions:(e,t)=>{return e.filter(e=>{return e.id==="split"||(0,f.PW)(e,t)})},suggestions:c,renderItems:(e,t,o)=>(0,r.jsx)(h,{items:e,embedded:n,getItemProps:t,highlightedIndex:o,renderSplitTransactionButton:a,renderCategoryItemGroupHeader:s,renderCategoryItem:l}),...u})}function g({title:e,style:t,...n}){return(0,r.jsx)("div",{style:{color:l.rS.menuAutoCompleteTextHeader,padding:"4px 9px",...t},"data-testid":`${e}-category-item-group`,...n,children:e})}function v(e){return(0,r.jsx)(g,{...e})}function m({Icon:e,highlighted:t,embedded:n,style:o,...i}){return(0,r.jsxs)(c.Z,{role:"button",style:{backgroundColor:t?n?l.rS.menuItemBackgroundHover:l.rS.menuAutoCompleteBackgroundHover:"transparent",borderRadius:n?4:0,flexShrink:0,flexDirection:"row",alignItems:"center",fontSize:11,fontWeight:500,color:l.rS.noticeTextMenu,padding:"6px 8px",":active":{backgroundColor:"rgba(100, 100, 100, .25)"},...o},"data-testid":"split-transaction-button",...i,children:[(0,r.jsx)(u.Z,{style:{lineHeight:0},children:e?(0,r.jsx)(e,{style:{marginRight:5}}):(0,r.jsx)(s,{width:10,height:10,style:{marginRight:5}})}),"Split Transaction"]})}function y(e){return(0,r.jsx)(m,{...e})}function w({item:e,className:t,highlighted:n,embedded:o,...a}){return(0,r.jsx)("div",{role:"button",className:`${t} ${(0,i.iv)([{backgroundColor:n?o?l.rS.menuItemBackgroundHover:l.rS.menuAutoCompleteBackgroundHover:"transparent",padding:4,paddingLeft:20,borderRadius:o?4:0}])}`,"data-testid":`${e.name}-category-item`,"data-highlighted":n||undefined,...a,children:e.name})}function x(e){return(0,r.jsx)(w,{...e})}},5710:function(e,t,n){"use strict";n.d(t,{GP:function(){return S},ZP:function(){return b},hA:function(){return T},nr:function(){return j}});var r=n(43188);var o=n(66204);var i=n(37496);var a=n(99818);var s=n(13910);var l=n(99548);var u=n(68761);var c=n(18748);var f=n(74684);var h=n(45492);var p=n(56816);var g=n(24307);var v=n(25411);function m(e,t,n){let r=n?(0,c.nc)(e,n):e;if(t&&r){r=r.filter(e=>!!e.transfer_acct)}return r||[]}function y(e,t){if(e==="new"&&!t.startsWith("new:")){return"new:"+t}return e}function w(e){if(typeof e==="string"&&e.startsWith("new:")){return"new"}return e}function x({items:e,getItemProps:t,highlightedIndex:n,embedded:i,inputValue:a,renderCreatePayeeButton:s=k,renderPayeeItemGroupHeader:l=C,renderPayeeItem:u=E,footer:c}){let f=e.filtered;let p=null;e=[...e];if(e[0].id==="new"){let[t,...n]=e;p=t;e=n}let v=p?1:0;let m=null;return(0,r.jsxs)(g.Z,{children:[(0,r.jsxs)(g.Z,{style:{overflow:"auto",padding:"5px 0",...!i&&{maxHeight:175}},children:[p&&s({...t?t({item:p}):null,payeeName:a,highlighted:n===0,embedded:i}),e.map((a,s)=>{let c=a.transfer_acct?"account":"payee";let p;if(c==="payee"&&m!==c){p="Payees"}else if(c==="account"&&m!==c){p="Transfer To/From"}let g=s===e.length-1&&f;m=c;return(0,r.jsxs)(o.Fragment,{children:[p&&(0,r.jsx)(o.Fragment,{children:l({title:p})},`title-${s}`),(0,r.jsx)(o.Fragment,{children:u({...t?t({item:a}):null,item:a,highlighted:n===s+v,embedded:i})},a.id),g&&(0,r.jsx)("div",{style:{fontSize:11,padding:5,color:h.rS.pageTextLight,textAlign:"center"},children:"More payees are available, search to find them"})]},a.id)})]}),c]})}function b({value:e,inputProps:t,showMakeTransfer:n=true,showManagePayees:a=false,tableBehavior:c,embedded:f,closeOnBlur:h,onUpdate:g,onSelect:b,onManagePayees:S,renderCreatePayeeButton:j=k,renderPayeeItemGroupHeader:T=C,renderPayeeItem:_=E,accounts:I,payees:M,...D}){let P=(0,u.n4)();if(!M){M=P}let O=(0,l.gM)();if(!I){I=O}let[A,R]=(0,o.useState)(false);let[Z,z]=(0,o.useState)("");let N=!!Z;let L=(0,o.useMemo)(()=>{const e=m(M,A,I);if(!N){return e}return[{id:"new",name:""},...e]},[M,A,I,N]);let B=(0,i.I0)();async function H(e,t){if(c){b?.(y(e,t))}else{let n=()=>B((0,s.fz)(t));if(Array.isArray(e)){e=await Promise.all(e.map(e=>e==="new"?n():e))}else{if(e==="new"){e=await n()}}b?.(e)}}const[F,V]=(0,o.useState)(false);return(0,r.jsx)(v.ZP,{strict:true,embedded:f,value:w(e),suggestions:L,tableBehavior:c,closeOnBlur:h,itemToString:e=>{if(!e){return""}else if(e.id==="new"){return Z}return e.name},focused:F,inputProps:{...t,onBlur:()=>{z("");V(false)},onFocus:()=>V(true),onChange:z},onUpdate:(e,t)=>g&&g(y(e,t)),onSelect:H,getHighlightedIndex:e=>{if(e.length>1&&e[0].id==="new"){return 1}return 0},filterSuggestions:(e,t)=>{let n=e.filter(e=>{if(e.id==="new"){return!t||t===""||A?false:true}return(0,v.PW)(e,t)});n.sort((e,n)=>{let r=e.name.toLowerCase().startsWith(t.toLowerCase());let o=n.name.toLowerCase().startsWith(t.toLowerCase());let i=e.name.toLowerCase()===t.toLowerCase();let a=n.name.toLowerCase()===t.toLowerCase();if(e.id==="new"){return-1}else if(n.id==="new"){return 1}else{if(i&&!a){return-1}else if(!i&&a){return 1}else{if(r===o){return 0}else if(r&&!o){return-1}else{return 1}}}});let r=n.length>100;n=n.slice(0,100);n.filtered=r;if(n.length>=2&&n[0].id==="new"){if(n[1].name.toLowerCase()===t.toLowerCase()&&!n[1].transfer_acct){return n.slice(1)}}return n},renderItems:(e,t,o,i)=>(0,r.jsx)(x,{items:e,getItemProps:t,highlightedIndex:o,inputValue:i,embedded:f,renderCreatePayeeButton:j,renderPayeeItemGroupHeader:T,renderPayeeItem:_,footer:(0,r.jsxs)(v.oo,{embedded:f,children:[n&&(0,r.jsx)(p.Z,{type:A?"menuSelected":"menu",style:a&&{marginBottom:5},onClick:()=>{g?.(null);R(!A)},children:"Make Transfer"}),a&&(0,r.jsx)(p.Z,{type:"menu",onClick:()=>S(),children:"Manage Payees"})]})}),...D},A?"transfers":"all")}function S({Icon:e,payeeName:t,highlighted:n,embedded:o,style:i,...a}){return(0,r.jsxs)(g.Z,{"data-testid":"create-payee-button",style:{display:"block",flexShrink:0,color:o?h.rS.menuItemText:h.rS.noticeTextMenu,borderRadius:o?4:0,fontSize:11,fontWeight:500,padding:"6px 9px",backgroundColor:n?o?h.rS.menuItemBackgroundHover:h.rS.menuAutoCompleteBackgroundHover:"transparent",":active":{backgroundColor:"rgba(100, 100, 100, .25)"},...i},...a,children:[e?(0,r.jsx)(e,{style:{marginRight:5,display:"inline-block"}}):(0,r.jsx)(f.Z,{width:8,height:8,style:{marginRight:5,display:"inline-block"}}),"Create Payee “",t,"”"]})}function k(e){return(0,r.jsx)(S,{...e})}function j({title:e,style:t,...n}){return(0,r.jsx)("div",{style:{color:h.rS.menuAutoCompleteTextHeader,padding:"4px 9px",...t},"data-testid":`${e}-payee-item-group`,...n,children:e})}function C(e){return(0,r.jsx)(j,{...e})}function T({item:e,className:t,highlighted:n,embedded:o,...i}){return(0,r.jsx)("div",{role:"button",className:`${t} ${(0,a.iv)([{backgroundColor:n?o?h.rS.menuItemBackgroundHover:h.rS.menuAutoCompleteBackgroundHover:"transparent",borderRadius:o?4:0,padding:4,paddingLeft:20}])}`,"data-testid":`${e.name}-payee-item`,"data-highlighted":n||undefined,...i,children:e.name})}function E(e){return(0,r.jsx)(T,{...e})}},75025:function(e,t,n){"use strict";n.d(t,{j:function(){return a},s:function(){return s}});var r=n(43188);var o=n(66204);let i=(0,o.createContext)(null);function a({children:e}){let[t,n]=(0,o.useState)(1);return(0,r.jsx)(i.Provider,{value:{displayMax:t,setDisplayMax:n},children:e})}function s(){return(0,o.useContext)(i)}},24630:function(e,t,n){"use strict";n.d(t,{Tv:function(){return s},iU:function(){return a},uC:function(){return l}});var r=n(43188);var o=n(66204);var i=n(73416);function a(e,t,n){return{start:t<e.start?e.start:t,end:n>e.end?e.end:n}}let s=(0,o.createContext)(null);function l({startMonth:e,numMonths:t,monthBounds:n,type:o,children:l}){let u=i.zI(e,t-1);let c=a(n,e,u);let f=i.Do(c.start,c.end);return(0,r.jsx)(s.Provider,{value:{months:f,type:o},children:l})}},19664:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(43188);var o=n(66204);var i=n(45492);var a=n(77644);var s=n(24307);var l=n(52582);function u({title:e,current:t,target:n,ProgressComponent:o,style:u}){return(0,r.jsxs)(s.Z,{style:{lineHeight:1.5,flexDirection:"row",alignItems:"center",fontSize:14,...u},children:[(0,r.jsx)(o,{current:t,target:n}),(0,r.jsxs)(s.Z,{style:{marginLeft:10},children:[(0,r.jsx)(s.Z,{children:(0,r.jsx)(a.Z,{style:{color:i.rS.pageTextLight},children:e})}),(0,r.jsxs)(a.Z,{children:[(0,r.jsx)(l.Z,{binding:t,type:"financial"}),(0,r.jsxs)(a.Z,{style:{color:i.rS.pageTextSubdued,fontStyle:"italic"},children:[" of ",(0,r.jsx)(l.Z,{binding:n,type:"financial",style:i.W2.notFixed})]})]})]})]})}},78125:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(43188);var o=n(66204);var i=n(46055);var a=n(19664);var s=n(45492);var l=n(57651);var u=n(22265);var c=n(585);function f({current:e,target:t}){let n=(0,l.Z)(e)||0;let o=(0,l.Z)(t)||0;n=Math.max(-n,0);let i;let a=false;if(n>o){i=(n-o)/o;a=true}else{i=(0,u.Z)(n,o)}return(0,r.jsx)(c.Z,{progress:i,color:a?s.rS.errorText:s.rS.noticeTextLight,backgroundColor:a?s.rS.errorBackground:s.rS.pageBackground,style:{width:20,height:20}})};function h({style:e}){return(0,r.jsx)(a.Z,{title:"Expenses",current:i.u8.totalSpent,target:i.u8.totalBudgetedExpense,ProgressComponent:f,style:e})}},28376:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(43188);var o=n(66204);var i=n(46055);var a=n(19664);var s=n(45492);var l=n(57651);var u=n(22265);var c=n(585);function f({current:e,target:t}){let n=(0,l.Z)(e)||0;let o=(0,l.Z)(t)||0;let i=false;if(n<0){i=true;n=-n}let a=(0,u.Z)(n,o);return(0,r.jsx)(c.Z,{progress:a,color:i?s.rS.errorText:s.rS.noticeTextLight,backgroundColor:i?s.rS.errorBackground:s.rS.pageBackground,style:{width:20,height:20}})};function h({style:e}){return(0,r.jsx)(a.Z,{title:"Income",current:i.u8.totalIncome,target:i.u8.totalBudgetedIncome,ProgressComponent:f,style:e})}},585:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(43188);var o=n(66204);function i({style:e,progress:t,color:n,backgroundColor:o}){let i=4;let a=2*Math.PI*i;let s=t*a;let l=a;return(0,r.jsxs)("svg",{viewBox:"0 0 20 20",style:e,children:[(0,r.jsx)("circle",{r:"10",cx:"10",cy:"10",fill:o}),(0,r.jsx)("circle",{r:i,cx:"10",cy:"10",fill:"none",stroke:n,strokeWidth:i*2,strokeDasharray:`${s} ${l}`,transform:"rotate(-90) translate(-20)"})," "]})}},59343:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(43188);var o=n(66204);var i=n(99818);var a=n(46055);var s=n(45492);var l=n(30715);var u=n(5320);var c=n(77644);var f=n(24307);var h=n(44710);var p=n(5291);var g=n(57651);var v=n(63541);var m=n(31038);function y({projected:e,style:t}){let n=(0,g.Z)(a.u8.totalBudgetedSaved)||0;let o=(0,g.Z)(a.u8.totalSaved)||0;let y=(0,p.Z)();let w=e?n:o;let x=w<0;return(0,r.jsxs)(f.Z,{style:{alignItems:"center",fontSize:14,...t},children:[e?(0,r.jsx)(c.Z,{style:{color:s.rS.pageTextLight},children:"Projected Savings:"}):(0,r.jsx)(f.Z,{style:{color:s.rS.pageTextLight},children:x?"Overspent:":"Saved:"}),(0,r.jsx)(u.Z,{renderContent:()=>{if(!e){let e=o-n;return(0,r.jsxs)(v.u,{position:"bottom-center",style:{padding:10,fontSize:14},children:[(0,r.jsx)(l.Z,{left:"Projected Savings:",right:(0,r.jsx)(c.Z,{style:{...(0,m.XE)(n),...s.W2.tnum},children:y(n,"financial-with-sign")})}),(0,r.jsx)(l.Z,{left:"Difference:",right:(0,r.jsx)(c.Z,{style:{...(0,m.XE)(e),...s.W2.tnum},children:y(e,"financial-with-sign")})})]})}return null},children:(0,r.jsx)(f.Z,{className:`${(0,i.iv)([{fontSize:25,color:e?s.rS.warningText:x?s.rS.errorTextDark:s.rS.upcomingText}])}`,children:(0,r.jsx)(h.ZP,{blurIntensity:7,children:y(w,"financial")})})})]})}},22265:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});function r(e,t){if(t===0){if(e>0){return 1}return 0}return e/t}},45990:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(43188);var o=n(66204);var i=n(55833);var a=n(11535);var s=n(89362);var l=n(9579);var u=n(44048);var c=n(56816);var f=n(91871);var h=n(383);var p=n(24307);var g=n(57201);var v=n(63541);var m=n(31038);function y({initialAmount:e,initialAmountName:t,showToBeBudgeted:n,onSubmit:y,onClose:w,position:x="bottom-right",...b}){let S=(0,i.M)();let k=(0,o.useContext)(g.Z);let{grouped:j}=(0,l.Z)();j=j.filter(e=>!e.is_income);if(n){j=(0,m.iX)(j)}let[C,T]=(0,o.useState)(null);let[E,_]=(0,o.useState)(null);(0,o.useEffect)(()=>{(async()=>{if(t){const e=await S.get(k,t);T((0,s.zA)(Math.max(e.value,0)))}else{T((0,s.zA)(Math.max(e,0)))}})()},[]);function I(){let e=(0,a.Z)(C,null);if(e&&E){y((0,s.l9)(e),E);w()}}if(C===null){return null}return(0,r.jsxs)(v.u,{position:x,width:200,style:{padding:10},onClose:w,...b,children:[(0,r.jsx)(p.Z,{style:{marginBottom:5},children:"Transfer this amount:"}),(0,r.jsx)(p.Z,{children:(0,r.jsx)(f.Z,{children:(0,r.jsx)(h.ZP,{value:C,onChange:e=>T(e.target["value"]),onEnter:I})})}),(0,r.jsx)(p.Z,{style:{margin:"10px 0 5px 0"},children:"To:"}),(0,r.jsx)(u.ZP,{categoryGroups:j,value:null,openOnFocus:true,onUpdate:e=>{},onSelect:e=>_(e),inputProps:{onEnter:I,placeholder:"(none)"}}),(0,r.jsx)(p.Z,{style:{alignItems:"flex-end",marginTop:10},children:(0,r.jsx)(c.Z,{type:"primary",style:{fontSize:12,paddingTop:3,paddingBottom:3},onClick:I,children:"Transfer"})})]})}},36467:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}});var r=n(43188);var o=n(66204);var i=n(99818);var a=n(46055);var s=n(45492);var l=n(24924);var u=n(5320);var c=n(31941);var f=n(24307);var h=n(44710);var p=n(5291);var g=n(50606);var v=n(57651);var m=n(63541);var y=n(55833);var w=n(11535);var x=n(89362);var b=n(56816);var S=n(91871);var k=n(383);var j=n(57201);function C({onSubmit:e,onClose:t,position:n="bottom-right",...i}){const a=(0,y.M)();const s=(0,o.useContext)(j.Z);const[l,u]=(0,o.useState)(null);(0,o.useEffect)(()=>{(async()=>{const e=await a.get(s,"to-budget");u((0,x.zA)(Math.max(e.value,0)))})()},[]);function c(){const n=(0,w.Z)(l,null);if(n){e((0,x.l9)(n))}t()}if(l===null){return null}return(0,r.jsxs)(m.u,{position:n,width:200,style:{padding:10},onClose:t,...i,children:[(0,r.jsx)(f.Z,{style:{marginBottom:5},children:"Hold this amount:"}),(0,r.jsx)(f.Z,{children:(0,r.jsx)(S.Z,{children:(0,r.jsx)(k.ZP,{value:l,onChange:e=>u(e.target.value),onEnter:c})})}),(0,r.jsx)(f.Z,{style:{alignItems:"flex-end",marginTop:10},children:(0,r.jsx)(b.Z,{type:"primary",style:{fontSize:12,paddingTop:3,paddingBottom:3},onClick:c,children:"Hold"})})]})}var T=n(45990);var E=n(28536);function _({month:e,prevMonthName:t,showTotalsTooltipOnHover:n,onBudgetAction:y,style:w,amountStyle:x,menuTooltipProps:b,totalsTooltipProps:S,holdTooltipProps:k,transferTooltipProps:j}){let[_,I]=(0,o.useState)(null);let M=(0,g.Z)(a.aK.toBudget);let D=(0,v.Z)({name:a.aK.toBudget,value:0});let P=(0,p.Z)();let O=parseInt(D);let A=isNaN(O)?0:O;let R=A<0;return(0,r.jsxs)(f.Z,{style:{alignItems:"center",...w},children:[(0,r.jsx)(l.Z,{children:R?"Overbudgeted:":"To Budget:"}),(0,r.jsxs)(f.Z,{children:[(0,r.jsx)(u.Z,{disabled:!n||_,renderContent:()=>(0,r.jsx)(m.u,{position:"bottom-center",...S,children:(0,r.jsx)(E.Z,{prevMonthName:t,style:{padding:7}})}),children:(0,r.jsx)(h.ZP,{blurIntensity:7,children:(0,r.jsx)(l.Z,{onClick:()=>I("actions"),"data-cellname":M,className:`${(0,i.iv)([s.W2.veryLargeText,{fontWeight:400,userSelect:"none",cursor:"pointer",color:R?s.rS.errorText:s.rS.pageTextPositive,marginBottom:-1,borderBottom:"1px solid transparent",":hover":{borderColor:R?s.rS.errorBorder:s.rS.pageTextPositive}},x])}`,children:P(A,"financial")})})}),_==="actions"&&(0,r.jsx)(m.u,{position:"bottom-center",width:200,style:{padding:0},onClose:()=>I(null),...b,children:(0,r.jsx)(c.Z,{onMenuSelect:t=>{if(t==="reset-buffer"){y(e,"reset-hold");I(null)}else{I(t)}},items:[{name:"transfer",text:"Move to a category"},{name:"buffer",text:"Hold for next month"},{name:"reset-buffer",text:"Reset next month’s buffer"}]})}),_==="buffer"&&(0,r.jsx)(C,{onClose:()=>I(null),onSubmit:t=>{y(e,"hold",{amount:t})},...k}),_==="transfer"&&(0,r.jsx)(T.Z,{initialAmount:O,onClose:()=>I(null),onSubmit:(t,n)=>{y(e,"transfer-available",{amount:t,category:n})},...j})]})]})}},28536:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(43188);var o=n(66204);var i=n(46055);var a=n(45492);var s=n(30715);var l=n(24924);var u=n(5320);var c=n(24307);var f=n(52582);var h=n(5291);var p=n(63541);function g({prevMonthName:e,style:t}){const n=(0,h.Z)();return(0,r.jsxs)(c.Z,{style:{flexDirection:"row",lineHeight:1.5,justifyContent:"center",...a.W2.smallText,...t},children:[(0,r.jsxs)(c.Z,{style:{textAlign:"right",marginRight:10,minWidth:50},children:[(0,r.jsx)(u.Z,{style:{flexShrink:0},renderContent:()=>(0,r.jsxs)(p.u,{width:200,style:{lineHeight:1.5,padding:"6px 10px"},children:[(0,r.jsx)(s.Z,{left:"Income:",right:(0,r.jsx)(f.Z,{binding:i.aK.totalIncome,type:"financial",privacyFilter:false})}),(0,r.jsx)(s.Z,{left:"From Last Month:",right:(0,r.jsx)(f.Z,{binding:i.aK.fromLastMonth,type:"financial",privacyFilter:false})})]}),children:(0,r.jsx)(f.Z,{binding:i.aK.incomeAvailable,type:"financial",style:{fontWeight:600}})}),(0,r.jsx)(f.Z,{binding:i.aK.lastMonthOverspent,type:"financial",formatter:e=>{let t=n(e,"financial");return e>0?"+"+t:e===0?"-"+t:t},style:{fontWeight:600,...a.W2.tnum}}),(0,r.jsx)(f.Z,{binding:i.aK.totalBudgeted,type:"financial",formatter:e=>{let t=n(e,"financial");return e>0?"+"+t:e===0?"-"+t:t},style:{fontWeight:600,...a.W2.tnum}}),(0,r.jsx)(f.Z,{binding:i.aK.forNextMonth,type:"financial",formatter:e=>{let t=parseInt(e)||0;let r=n(Math.abs(t),"financial");return t>=0?"-"+r:"+"+r},style:{fontWeight:600,...a.W2.tnum}})]}),(0,r.jsxs)(c.Z,{children:[(0,r.jsx)(l.Z,{children:"Available Funds"}),(0,r.jsxs)(l.Z,{children:["Overspent in ",e]}),(0,r.jsx)(l.Z,{children:"Budgeted"}),(0,r.jsx)(l.Z,{children:"For Next Month"})]})]})}},31038:function(e,t,n){"use strict";n.d(t,{Df:function(){return h},Gz:function(){return y},Rk:function(){return l},TV:function(){return c},UC:function(){return v},XE:function(){return f},hd:function(){return u},iX:function(){return s},jR:function(){return m},np:function(){return g},qc:function(){return p}});var r=n(84094);var o=n(73416);var i=n(45492);var a=n(24630);function s(e){return[{id:"to-be-budgeted",name:"To Be Budgeted",categories:[{id:"to-be-budgeted",name:"To Be Budgeted",cat_group:"to-be-budgeted",group:{id:"to-be-budgeted",name:"To Be Budgeted"}}]},...e]}function l(e){return[e.filter(e=>!e.is_income),e.find(e=>e.is_income)]}function u(e){return e===0||e==="0"||e===""||e==null?{color:i.rS.tableTextSubdued}:null}function c(e,t,n){if(e<0){return{color:i.rS.errorText}}if(t==null){const t=u(e);if(t){return t}}else{if(n<t){return{color:i.rS.warningText}}return{color:i.rS.noticeText}}}function f(e){return{color:e<0?i.rS.errorText:e===0?i.rS.tableTextSubdued:i.rS.noticeText}}function h(e,t,n){if(t==="top"){return{targetId:n}}else{let t=e.findIndex(e=>e.id===n);if(t===-1){throw new Error("findSort: item not found: "+n)}let r=t+1;if(r<e.length-1){return{targetId:e[r].id}}else{return{targetId:null}}}}function p(e,t,n){if(t==="bottom"){return{targetId:n}}else{let t=e.findIndex(e=>e.id===n);if(t===-1){throw new Error("findSort: item not found: "+n)}let r=t-1;if(r>=0){return{targetId:e[r].id}}else{return{targetId:null}}}}function g(){return Math.max(i.W2.scrollbarWidth-2,0)}async function v(e,t,n){let o=e==="report"?"report-budget-month":"rollover-budget-month";let i=await (0,r.lW)(o,{month:n});for(let e of i){t.prewarmCache(e.name,e)}}async function m(e,t,n,r){let i=3;n=(0,a.iU)(n,o.W9(r,1),o.zI(r,i+1));let s=o.Do(n.start,n.end);await Promise.all(s.map(n=>v(e,t,n)))}async function y(e,t,n,o,i){t.disableObservers();await (0,r.lW)("budget-set-type",{type:e});await m(e,t,n,o);t.enableObservers();await i?.()}},30715:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(43188);var o=n(24924);var i=n(24307);function a({left:e,right:t,style:n,leftStyle:a,rightStyle:s,truncate:l="left",...u}){const c={textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"};return(0,r.jsxs)(i.Z,{style:{flexDirection:"row",alignItems:"center",...n},...u,children:[(0,r.jsx)(o.Z,{style:{marginRight:10,...l==="left"&&c,...a},children:e}),(0,r.jsx)(o.Z,{style:{flex:1,textAlign:"right",...l==="right"&&c,...s},children:t})]})}},99147:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(43188);var o=n(59379);var i=n(45485);var a=n(99818);var s=n(45492);function l({to:e,style:t,activeStyle:n,children:l}){let u=(0,o.bS)({path:e});return(0,r.jsx)(i.OL,{to:e,className:`${(0,a.iv)([s.W2.smallText,t,u?n:null])}`,children:l})}},24924:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(43188);var o=n(99818);function i(e){const{className:t="",style:n,innerRef:i,...a}=e;return(0,r.jsx)("div",{...a,ref:i,className:`${t} ${(0,o.iv)(n)}`})}},56816:function(e,t,n){"use strict";n.d(t,{y:function(){return x}});var r=n(43188);var o=n(66204);var i=n(99818);var a=n(99458);var s=n(45492);var l=n(24307);const u={normal:s.rS.buttonNormalBackground,normalDisabled:s.rS.buttonNormalDisabledBackground,primary:s.rS.buttonPrimaryBackground,primaryDisabled:s.rS.buttonPrimaryDisabledBackground,bare:s.rS.buttonBareBackground,bareDisabled:s.rS.buttonBareDisabledBackground,menu:s.rS.buttonMenuBackground,menuSelected:s.rS.buttonMenuSelectedBackground,link:s.rS.buttonBareBackground};const c={normal:s.rS.buttonNormalBackgroundHover,primary:s.rS.buttonPrimaryBackgroundHover,bare:s.rS.buttonBareBackgroundHover,menu:s.rS.buttonMenuBackgroundHover,menuSelected:s.rS.buttonMenuSelectedBackgroundHover,link:s.rS.buttonBareBackground};const f={normal:s.rS.buttonNormalBorder,normalDisabled:s.rS.buttonNormalDisabledBorder,primary:s.rS.buttonPrimaryBorder,primaryDisabled:s.rS.buttonPrimaryDisabledBorder,menu:s.rS.buttonMenuBorder,menuSelected:s.rS.buttonMenuSelectedBorder,link:s.rS.buttonBareBackground};const h={normal:s.rS.buttonNormalText,normalDisabled:s.rS.buttonNormalDisabledText,primary:s.rS.buttonPrimaryText,primaryDisabled:s.rS.buttonPrimaryDisabledText,bare:s.rS.buttonBareText,bareDisabled:s.rS.buttonBareDisabledText,menu:s.rS.buttonMenuText,menuSelected:s.rS.buttonMenuSelectedText,link:s.rS.pageTextLink};const p={normal:s.rS.buttonNormalTextHover,primary:s.rS.buttonPrimaryTextHover,bare:s.rS.buttonBareTextHover,menu:s.rS.buttonMenuTextHover,menuSelected:s.rS.buttonMenuSelectedTextHover};const g={textDecoration:"underline",boxShadow:"none"};const v=(e,t)=>{switch(e){case"bare":case"link":return"none";default:return"1px solid "+f[t]}};const m=e=>{switch(e){case"bare":return"5px";case"link":return"0";default:return"5px 10px"}};const y=(e,t)=>{switch(e){case"bare":return{backgroundColor:s.rS.buttonBareBackgroundActive};case"link":return{transform:"none",boxShadow:"none"};default:return{transform:t&&"translateY(1px)",boxShadow:`0 1px 4px 0 ${e==="primary"?s.rS.buttonPrimaryShadow:s.rS.buttonNormalShadow}`,transition:"none"}}};const w=(0,o.forwardRef)(({children:e,pressed:t,hover:n,type:o="normal",isSubmit:a=o==="primary",color:l,style:f,disabled:w,hoveredStyle:x,activeStyle:b,bounce:S=true,as:k="button",...j},C)=>{let T=w?o+"Disabled":o;x={...o!=="bare"&&s.W2.shadow,...o==="link"&&g,backgroundColor:c[o],color:l||p[o],...x};b={...y(o,S),...b};let E=k;let _={alignItems:"center",justifyContent:"center",flexShrink:0,padding:m(o),margin:0,overflow:"hidden",display:o==="link"?"inline":"flex",borderRadius:4,backgroundColor:u[T],border:v(o,T),color:l||h[T],transition:"box-shadow .25s",WebkitAppRegion:"no-drag",...s.W2.smallText,":hover":!w&&x,":active":!w&&b,...n&&x,...t&&b,...f};return(0,r.jsx)(E,{ref:C,...typeof k==="string"?(0,i.iv)(_):{style:_},disabled:w,type:a?"submit":"button",...j,children:e})});const x=(0,o.forwardRef)((e,t)=>{let{loading:n,children:o,...i}=e;return(0,r.jsxs)(w,{...i,ref:t,style:{position:"relative",...i.style},children:[n&&(0,r.jsx)(l.Z,{style:{position:"absolute",top:0,left:0,right:0,bottom:0,alignItems:"center",justifyContent:"center"},children:(0,r.jsx)(a.Z,{style:{width:20,height:20}})}),(0,r.jsx)(l.Z,{style:{opacity:n?0:1,flexDirection:"row",alignItems:"center"},children:o})]})});t.Z=w},15633:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);var i=n(45492);let a={purple:i.rS.pageTextPositive,blue:i.rS.pageTextLink,muted:"inherit"};const s=(0,o.forwardRef)(({children:e,to:t,linkColor:n="blue"},o)=>(0,r.jsx)("a",{ref:o,href:t,target:"_blank",rel:"noopener noreferrer",style:{color:a[n]},children:e}));t.Z=s},5320:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(43188);var o=n(66204);var i=n(24307);function a({style:e,contentStyle:t,children:n,renderContent:a,disabled:s}){let[l,u]=(0,o.useState)(false);const c=(0,o.useCallback)(()=>{if(!s){u(true)}},[s]);const f=(0,o.useCallback)(()=>{if(!s){u(false)}},[s]);(0,o.useEffect)(()=>{if(s&&l){u(false)}},[s,l]);return(0,r.jsxs)(i.Z,{style:e,children:[(0,r.jsx)(i.Z,{onPointerEnter:c,onPointerLeave:f,style:t,children:n}),l&&a()]})}},91871:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(66204);function o({children:e}){let t=(0,r.useRef)(null);(0,r.useEffect)(()=>{if(t.current&&!n.g.IS_DESIGN_MODE){setTimeout(()=>{if(t.current){t.current.focus();t.current.setSelectionRange(0,1e4)}},0)}},[]);if(typeof e==="function"){return e(t)}return(0,r.cloneElement)(e,{inputRef:t})}},383:function(e,t,n){"use strict";n.d(t,{Tn:function(){return h},ZP:function(){return f},ZL:function(){return c}});var r=n(43188);var o=n(66204);function i(e){return function(t){e.forEach(function(e){if(typeof e==="function"){e(t)}else if(e!=null){e.current=t}})}}var a=i;var s=n(99818);var l=n(5904);var u=n(45492);const c={outline:0,backgroundColor:u.rS.tableBackground,color:u.rS.formInputText,margin:0,padding:5,borderRadius:4,border:"1px solid "+u.rS.formInputBorder};function f({style:e,inputRef:t,onEnter:n,onUpdate:i,focused:f,...h}){let p=(0,o.useRef)();(0,l.X)(p,f);return(0,r.jsx)("input",{ref:t?a([t,p]):p,className:`${(0,s.iv)(c,{whiteSpace:"nowrap",overflow:"hidden",flexShrink:0,":focus":{border:"1px solid "+u.rS.formInputBorderSelected,boxShadow:"0 1px 1px "+u.rS.formInputShadowSelected},"::placeholder":{color:u.rS.formInputTextPlaceholder}},u.W2.smallText,e)}`,...h,onKeyDown:e=>{if(e.key==="Enter"&&n){n(e)}h.onKeyDown?.(e)},onChange:e=>{if(i){i(e.target.value)}h.onChange?.(e)}})}function h(e){return(0,r.jsx)(f,{...e,style:{padding:10,fontSize:15,border:"none",...u.W2.shadow,":focus":{border:"none",...u.W2.shadow},...e.style}})}},46405:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(43188);var o=n(66204);var i=n(45492);var a=n(383);var s=n(24307);function l({leftContent:e,rightContent:t,inputStyle:n,focusStyle:l,style:u,getStyle:c,...f}){let[h,p]=(0,o.useState)(f.focused);return(0,r.jsxs)(s.Z,{style:{...a.ZL,padding:0,flexDirection:"row",alignItems:"center",...u,...h&&(l??{boxShadow:"0 0 0 1px "+i.rS.formInputShadowSelected}),...c&&c(h)},children:[e,(0,r.jsx)(a.ZP,{...f,focused:h,style:{...n,flex:1,"&, &:focus, &:hover":{border:0,backgroundColor:"transparent",boxShadow:"none",color:"inherit"}},onFocus:e=>{p(true);f.onFocus?.(e)},onBlur:e=>{p(false);f.onBlur?.(e)}}),t]})}},6755:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(43188);var o=n(66204);var i=n(59379);var a=n(45485);var s=n(99818);var l=n(24868);var u=n(45492);var c=n(56816);const f=({to:e,style:t,activeStyle:n,onClick:o,...a})=>{const s=(0,l.Z)();const u=(0,i.bS)({path:e});const f=t=>{o?.(t);s(e)};return(0,r.jsx)(c.Z,{style:{...t,...u?n:{}},activeStyle:n,...a,onClick:f})};const h=({to:e,style:t,activeStyle:n,children:o})=>{const l=(0,i.bS)({path:e});return(0,r.jsx)(a.OL,{to:e,className:`${(0,s.iv)([u.W2.smallText,t,l?n:null])}`,children:o})};function p({variant:e="anchor",...t}){switch(e){case"anchor":return(0,r.jsx)(h,{...t});case"button":return(0,r.jsx)(f,{...t});default:throw new Error(`Unrecognised link type: ${e}`)}}},21920:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(43188);var o=n(66204);var i=n(99818);var a=n(45492);function s({style:e,children:t,...n}){return(0,r.jsx)("button",{type:"button",className:`${(0,i.iv)([{textDecoration:"none",color:a.rS.pageTextLink,backgroundColor:"transparent",display:"inline",border:0,cursor:"pointer",padding:0,font:"inherit",":hover":{textDecoration:"underline",boxShadow:"none"},":focus":{boxShadow:"none"}},a.W2.smallText,e])}`,...n,children:t})}},31941:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(43188);var o=n(66204);var i=n(45492);var a=n(77644);var s=n(24307);function l({keyName:e}){return(0,r.jsx)(a.Z,{style:{fontSize:10,color:i.rS.menuKeybindingText},children:e})}function u({header:e,footer:t,items:n,onMenuSelect:c}){let f=(0,o.useRef)(null);let h=n.filter(e=>e);let[p,g]=(0,o.useState)(null);(0,o.useEffect)(()=>{const e=f.current;e.focus();let t=e=>{let t=h.filter(e=>e&&e!==u.line&&e.type!==u.label);let n=t.indexOf(h[p]);let r=e=>h.indexOf(t[e]);switch(e.key){case"ArrowUp":e.preventDefault();g(p===null?0:r(Math.max(n-1,0)));break;case"ArrowDown":e.preventDefault();g(p===null?0:r(Math.min(n+1,t.length-1)));break;case"Enter":e.preventDefault();const o=h[p];if(p!==null&&o!==u.line){c?.(o.name)}break;default:}};e.addEventListener("keydown",t);return()=>{e.removeEventListener("keydown",t)}},[p]);return(0,r.jsxs)(s.Z,{style:{outline:"none",borderRadius:4,overflow:"hidden"},tabIndex:1,innerRef:f,children:[e,h.map((e,t)=>{if(e===u.line){return(0,r.jsx)(s.Z,{style:{margin:"3px 0px"},children:(0,r.jsx)(s.Z,{style:{borderTop:"1px solid "+i.rS.menuBorder}})},t)}else if(e.type===u.label){return(0,r.jsx)(a.Z,{style:{color:i.rS.menuItemTextHeader,fontSize:11,lineHeight:"1em",textTransform:"uppercase",margin:"3px 9px",marginTop:5},children:e.name},e.name)}let n=h[t-1];return(0,r.jsxs)(s.Z,{role:"button",style:{cursor:"default",padding:"9px 10px",marginTop:t===0||n===u.line||n.type===u.label?0:-3,flexDirection:"row",alignItems:"center",color:i.rS.menuItemText,...e.disabled&&{color:i.rS.buttonBareDisabledText},...!e.disabled&&p===t&&{backgroundColor:i.rS.menuItemBackgroundHover,color:i.rS.menuItemTextHover}},onMouseEnter:()=>g(t),onMouseLeave:()=>g(null),onClick:t=>!e.disabled&&c&&c(e.name),children:[(0,r.jsx)(a.Z,{style:{lineHeight:0},children:e.icon&&(0,o.createElement)(e.icon,{width:e.iconSize||10,height:e.iconSize||10,style:{marginRight:7,width:10}})}),(0,r.jsx)(a.Z,{children:e.text}),(0,r.jsx)(s.Z,{style:{flex:1}}),e.key&&(0,r.jsx)(l,{keyName:e.key})]},e.name)}),t]})}const c=Symbol("menu-line");u.line=c;u.label=Symbol("menu-label")},8987:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(43188);var o=n(66204);var i=n(77216);var a=n.n(i);var s=n(81113);var l=n(99458);var u=n(72285);var c=n(45492);var f=n(90122);var h=n(56816);var p=n(77644);var g=n(24307);const v=({title:e,isCurrent:t,isHidden:i,size:v,padding:y=20,showHeader:w=true,showTitle:x=true,showClose:b=true,showOverlay:S=true,loading:k=false,noAnimation:j=false,focusAfterClose:C=true,stackIndex:T,parent:E,style:_,contentStyle:I,overlayStyle:M,children:D,onClose:P})=>{(0,o.useEffect)(()=>{let e=s.Z.getScope();s.Z.setScope("modal");return()=>s.Z.setScope(e)},[]);return(0,r.jsx)(a(),{isOpen:true,onRequestClose:P,shouldCloseOnOverlayClick:false,shouldFocusAfterRender:!n.g.IS_DESIGN_MODE,shouldReturnFocusAfterClose:C,appElement:document.querySelector("#root"),parentSelector:E&&(()=>E),style:{content:{top:0,left:0,right:0,bottom:0,display:"flex",justifyContent:"center",alignItems:"center",overflow:"visible",border:0,fontSize:14,backgroundColor:"transparent",padding:0,pointerEvents:"auto",...I},overlay:{zIndex:3e3,backgroundColor:S&&T===0?"rgba(0, 0, 0, .1)":"none",pointerEvents:S?"auto":"none",...M,...E?{position:"absolute",top:0,left:0,right:0,bottom:0}:{}}},children:(0,r.jsxs)(m,{noAnimation:j,isCurrent:t,size:v,style:{willChange:"opacity, transform",minWidth:"100%",minHeight:0,borderRadius:4,color:c.rS.pageText,backgroundColor:c.rS.modalBackground,opacity:i?0:1,[`@media (min-width: ${f.Z.breakpoint_small})`]:{minWidth:f.Z.breakpoint_small},...c.W2.shadowLarge,..._,...c.W2.lightScrollbar},children:[w&&(0,r.jsxs)(g.Z,{style:{padding:20,position:"relative",flexShrink:0},children:[x&&(0,r.jsx)(g.Z,{style:{flex:1,alignSelf:"center",textAlign:"center",width:"calc(100% - 40px)"},children:(0,r.jsx)(p.Z,{style:{fontSize:25,fontWeight:700,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e})}),(0,r.jsx)(g.Z,{style:{position:"absolute",right:0,top:0,bottom:0,justifyContent:"center",alignItems:"center"},children:(0,r.jsx)(g.Z,{style:{flexDirection:"row",marginRight:15},children:b&&(0,r.jsx)(h.Z,{type:"bare",onClick:P,style:{padding:"10px 10px"},"aria-label":"Close",children:(0,r.jsx)(u.Z,{width:10,style:{color:"inherit"}})})})})]}),(0,r.jsx)(g.Z,{style:{padding:y,paddingTop:0,flex:1},children:typeof D==="function"?D():D}),k&&(0,r.jsx)(g.Z,{style:{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:c.rS.pageBackground,alignItems:"center",justifyContent:"center",zIndex:1e3},children:(0,r.jsx)(l.Z,{style:{width:20,height:20},color:c.rS.pageText})})]})})};const m=({style:e,size:t,noAnimation:n,isCurrent:i,stackIndex:a,children:s})=>{let l=(0,o.useRef)(null);let u=(0,o.useRef)(false);let c=(0,o.useRef)(Math.random()*10-5);(0,o.useLayoutEffect)(()=>{if(l.current==null){return}function e(){if(i){l.current.style.transform="translateY(0px) scale(1)";l.current.style.pointerEvents="auto"}else{l.current.style.transform=`translateY(-40px) scale(.95) rotate(${c.current}deg)`;l.current.style.pointerEvents="none"}}if(!u.current){if(n){l.current.style.opacity=1;l.current.style.transform="translateY(0px) scale(1)";setTimeout(()=>{if(l.current){l.current.style.transition="opacity .1s, transform .1s cubic-bezier(.42, 0, .58, 1)"}},0)}else{l.current.style.opacity=0;l.current.style.transform="translateY(10px) scale(1)";setTimeout(()=>{if(l.current){u.current=true;l.current.style.transition="opacity .1s, transform .1s cubic-bezier(.42, 0, .58, 1)";l.current.style.opacity=1;e()}},0)}}else{e()}},[n,i,a]);return(0,r.jsx)(g.Z,{innerRef:l,style:{...e,...t&&{width:t.width,height:t.height},...n&&!i&&{display:"none"}},children:s})};const y=({style:e,leftContent:t,focusButton:n=false,children:i})=>{let a=(0,o.useRef)(null);(0,o.useEffect)(()=>{if(n&&a.current){let e=a.current.querySelector("button:not([data-hidden])");if(e){e.focus()}}},[n]);return(0,r.jsxs)(g.Z,{innerRef:a,style:{flexDirection:"row",marginTop:30,...e},children:[t,(0,r.jsx)(g.Z,{style:{flex:1}}),i]})};t.C=v},42994:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(43188);var o=n(99818);function i({style:e,isLast:t,children:n,...i}){return(0,r.jsx)("div",{...i,className:`${(0,o.iv)(!t&&{marginBottom:15},e,{lineHeight:"1.5em"})}`,children:n})}},24198:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(43188);var o=n(5202);var i=n(28339);var a=n(45492);var s=n(56816);var l=n(46405);function u({inputRef:e,value:t,onChange:n,placeholder:u,isInModal:c=false,width:f=250}){return(0,r.jsx)(l.Z,{inputRef:e,style:{width:f,flex:"",borderColor:c?null:"transparent",backgroundColor:c?null:a.rS.formInputBackground},focusStyle:c?null:{boxShadow:"0 0 0 1px "+a.rS.formInputShadowSelected,backgroundColor:a.rS.formInputBackgroundSelected},leftContent:(0,r.jsx)(i.Z,{style:{width:13,height:13,flexShrink:0,color:t?a.rS.menuItemTextSelected:"inherit",margin:5,marginRight:0}}),rightContent:t&&(0,r.jsx)(s.Z,{type:"bare",style:{padding:8},onClick:()=>n(""),title:"Clear search term",children:(0,r.jsx)(o.Z,{style:{width:8,height:8}})}),inputStyle:{"::placeholder":{color:a.rS.formInputTextPlaceholder,transition:"color .25s"},":focus":c?null:{"::placeholder":{color:a.rS.formInputTextPlaceholderSelected}}},value:t,placeholder:u,onKeyDown:e=>{if(e.key==="Escape")n("")},onChange:e=>n(e.target.value)})}},78628:function(e,t,n){"use strict";n.d(t,{Z:function(){return tJ}});var r=n(43188);var o=n(66204);var i=n.t(o,2);/**
97
- * @reach/utils v0.18.0
98
- *
99
- * Copyright (c) 2018-2022, React Training LLC
100
- *
101
- * This source code is licensed under the MIT license found in the
102
- * LICENSE.md file in the root directory of this source tree.
103
- *
104
- * @license MIT
105
- */function a(){return!!(typeof window!=="undefined"&&window.document&&window.document.createElement)}function s(e,t,...n){return isValidElement(e)?cloneElement(e,t,...n):e}function l(e,t){return n=>{e&&e(n);if(!n.defaultPrevented){return t(n)}}}function u(e){return typeof e==="boolean"}function c(e){return!!(e&&({}).toString.call(e)=="[object Function]")}function f(e){return typeof e==="number"&&!isNaN(e)}function h(e){return typeof e==="string"}function p(e,t){if(e==null)return;if(c(e)){e(t)}else{try{e.current=t}catch(n){throw new Error(`Cannot assign value "${t}" to ref "${e}"`)}}}function g(...e){return(0,o.useCallback)(t=>{for(let n of e){p(n,t)}},e)}function v(e){return a()?e?e.ownerDocument:document:null}function m(e){let t=v(e);return t?t.defaultView||window:null}function y(e){let t=m(e);if(t){return t.getComputedStyle(e,null)}return null}function w(e,t){return y(e)?.getPropertyValue(t)||null}function x(e,t){let n=o.createContext(t);n.displayName=e;return n}function b(e,t){let n=React.createContext(t);function r(e){let{children:t,...r}=e;let o=React.useMemo(()=>r,Object.values(r));return React.createElement(n.Provider,{value:o},t)}function o(r){let o=React.useContext(n);if(o){return o}if(t){return t}throw Error(`${r} must be rendered inside of a ${e} component.`)}n.displayName=`${e}Context`;r.displayName=`${e}Provider`;return[r,o]}function S(e,t,n){if(true){let r=(0,o.useRef)(e!=null);let i=(0,o.useRef)({componentName:n,controlledPropName:t});(0,o.useEffect)(()=>{i.current={componentName:n,controlledPropName:t}},[n,t]);(0,o.useEffect)(()=>{let{current:t}=r;let{componentName:n,controlledPropName:o}=i.current;let a=e!=null;if(t!==a){console.error(`A component is changing an ${t?"":"un"}controlled \`${o}\` state of ${n} to be ${t?"un":""}controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.
106
- More info: https://fb.me/react-controlled-components`)}},[e])}}function k(e){let t=v(e);let n=t.defaultView||window;if(!t){return{width:0,height:0}}return{width:t.documentElement.clientWidth??n.innerWidth,height:t.documentElement.clientHeight??n.innerHeight}}function j(e){let t=m(e);if(!t){return{scrollX:0,scrollY:0}}return{scrollX:t.scrollX,scrollY:t.scrollY}}function C(){try{if(window.innerWidth>document.documentElement.clientWidth){return window.innerWidth-document.documentElement.clientWidth}}catch(e){}return 0}function T(e){return"which"in e?e.which===3:"button"in e?e.button===2:false}function E(...e){return e.filter(e=>e!=null).join("--")}function _(){}function I(e){const t=(0,o.useRef)();if(!t.current){t.current={v:e()}}return t.current.v}function M({controlledValue:e,defaultValue:t,calledFrom:n="A component"}){let r=e!==void 0;let o=useRef3(r);if(true){if(!o.current&&r){console.warn(`${n} is changing from controlled to uncontrolled. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}if(o.current&&!r){console.warn(`${n} is changing from uncontrolled to controlled. Components should not switch from uncontrolled to controlled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}}let[i,a]=useState(o.current?e:t);let s=useCallback2(e=>{if(!o.current){a(e)}},[]);return[o.current?e:i,s]}function D(e,t,n=window){const r=useRef4(t);useEffect2(()=>{r.current=t},[t]);useEffect2(()=>{const t=n&&n.addEventListener;if(!t){if(true){console.warn("Event listener not supported on the element provided")}return}function o(e){r.current(e)}n.addEventListener(e,o);return()=>{n.removeEventListener(e,o)}},[e,n])}function P(e=console.log,t="focus",n=document){let r=useRef5(n.activeElement);useEffect3(()=>{r.current=n.activeElement;function o(t){if(r.current!==n.activeElement){e(n.activeElement,r.current,t);r.current=n.activeElement}}n.addEventListener(t,o,true);return()=>{n.removeEventListener(t,o)}},[t,e,n])}function O(){let[,e]=(0,o.useState)(Object.create(null));return(0,o.useCallback)(()=>{e(Object.create(null))},[])}var A=a()?o.useLayoutEffect:o.useEffect;function R(e){let t=useRef6(false);let n=useRef6();if(!t.current){t.current=true;n.current=e()}return n}function Z(e){const t=useRef7(null);useEffect5(()=>{t.current=e},[e]);return t.current}function z(e,t){let n=(0,o.useRef)(t);e(()=>{n.current=t});return(0,o.useCallback)((...e)=>{n.current&&n.current(...e)},[])}function N(e){return z(o.useEffect,e)}function L(e){return z(A,e)}function B(e,t){let[n,r]=(0,o.useState)(t);let i=(0,o.useCallback)(t=>{e.current=t;r(t)},[]);return[n,i]}function H(e,t){const n=useRef9(false);useEffect7(()=>{if(n.current){e()}else{n.current=true}},t)};/**
107
- * @reach/auto-id v0.18.0
108
- *
109
- * Copyright (c) 2018-2022, React Training LLC
110
- *
111
- * This source code is licensed under the MIT license found in the
112
- * LICENSE.md file in the root directory of this source tree.
113
- *
114
- * @license MIT
115
- */var F=false;var V=0;function W(){return++V}var U=i["useId".toString()];function K(e){if(U!==void 0){let t=U();return e??t}let t=e??(F?W():null);let[n,r]=o.useState(t);A(()=>{if(n===null){r(W())}},[]);o.useEffect(()=>{if(F===false){F=true}},[]);return e??n??void 0}var $=n(42457);/**
116
- * @reach/portal v0.18.0
117
- *
118
- * Copyright (c) 2018-2022, React Training LLC
119
- *
120
- * This source code is licensed under the MIT license found in the
121
- * LICENSE.md file in the root directory of this source tree.
122
- *
123
- * @license MIT
124
- */var q=({children:e,type:t="reach-portal",containerRef:n})=>{let r=o.useRef(null);let i=o.useRef(null);let a=O();if(true){o.useEffect(()=>{if(n!=null){if(typeof n!=="object"||!("current"in n)){console.warn("@reach/portal: Invalid value passed to the `containerRef` of a `Portal`. The portal will be appended to the document body, but if you want to attach it to another DOM node you must pass a valid React ref object to `containerRef`.")}else if(n.current==null){console.warn("@reach/portal: A ref was passed to the `containerRef` prop of a `Portal`, but no DOM node was attached to it. Be sure to pass the ref to a DOM component.\n\nIf you are forwarding the ref from another component, be sure to use the React.forwardRef API. See https://reactjs.org/docs/forwarding-refs.html.")}}},[n])}A(()=>{if(!r.current)return;let e=r.current.ownerDocument;let o=n?.current||e.body;i.current=e?.createElement(t);o.appendChild(i.current);a();return()=>{if(i.current&&o){o.removeChild(i.current)}}},[t,a,n]);return i.current?(0,$.createPortal)(e,i.current):o.createElement("span",{ref:r})};var Y=({unstable_skipInitialRender:e,...t})=>{let[n,r]=o.useState(false);o.useEffect(()=>{if(e){r(true)}},[e]);if(e&&!n){return null}return o.createElement(q,{...t})};Y.displayName="Portal";var G=["bottom","height","left","right","top","width"];var X=function e(e,t){if(e===void 0){e={}}if(t===void 0){t={}}return G.some(function(n){return e[n]!==t[n]})};var Q=new Map;var J;var ee=function e(){var t=[];Q.forEach(function(e,n){var r=n.getBoundingClientRect();if(X(r,e.rect)){e.rect=r;t.push(e)}});t.forEach(function(e){e.callbacks.forEach(function(t){return t(e.rect)})});J=window.requestAnimationFrame(e)};function et(e,t){return{observe:function n(){var n=Q.size===0;if(Q.has(e)){Q.get(e).callbacks.push(t)}else{Q.set(e,{rect:undefined,hasRectChanged:false,callbacks:[t]})}if(n)ee()},unobserve:function n(){var n=Q.get(e);if(n){var r=n.callbacks.indexOf(t);if(r>=0)n.callbacks.splice(r,1);if(!n.callbacks.length)Q["delete"](e);if(!Q.size)cancelAnimationFrame(J)}}}}var en=et;/**
125
- * @reach/rect v0.18.0
126
- *
127
- * Copyright (c) 2018-2022, React Training LLC
128
- *
129
- * This source code is licensed under the MIT license found in the
130
- * LICENSE.md file in the root directory of this source tree.
131
- *
132
- * @license MIT
133
- */var er=({onChange:e,observe:t=true,children:n})=>{const r=o.useRef(null);const i=eo(r,{observe:t,onChange:e});return n({ref:r,rect:i})};er.displayName="Rect";function eo(e,t,n){let r;let i;if(u(t)){r=t}else{r=t?.observe??true;i=t?.onChange}if(c(n)){i=n}if(true){o.useEffect(()=>{if(u(t)){console.warn("Passing `observe` as the second argument to `useRect` is deprecated and will be removed in a future version of Reach UI. Instead, you can pass an object of options with an `observe` property as the second argument (`useRect(ref, { observe })`).\nSee https://reach.tech/rect#userect-observe")}},[t]);o.useEffect(()=>{if(c(n)){console.warn("Passing `onChange` as the third argument to `useRect` is deprecated and will be removed in a future version of Reach UI. Instead, you can pass an object of options with an `onChange` property as the second argument (`useRect(ref, { onChange })`).\nSee https://reach.tech/rect#userect-onchange")}},[n])}let[a,s]=o.useState(e.current);let l=o.useRef(false);let f=o.useRef(false);let[h,p]=o.useState(null);let g=o.useRef(i);A(()=>{g.current=i;if(e.current!==a){s(e.current)}});A(()=>{if(a&&!l.current){l.current=true;p(a.getBoundingClientRect())}},[a]);A(()=>{if(!r){return}let t=a;if(!f.current){f.current=true;t=e.current}if(!t){if(true){console.warn("You need to place the ref")}return}let n=en(t,e=>{g.current?.(e);p(e)});n.observe();return()=>{n.unobserve()}},[r,a,e]);return h};/*!
134
- * tabbable 5.3.3
135
- * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
136
- */var ei=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"];var ea=ei.join(",");var es=typeof Element==="undefined";var el=es?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;var eu=!es&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument};var ec=function e(e,t,n){var r=Array.prototype.slice.apply(e.querySelectorAll(ea));if(t&&el.call(e,ea)){r.unshift(e)}r=r.filter(n);return r};var ed=function e(t,n,r){var o=[];var i=Array.from(t);while(i.length){var a=i.shift();if(a.tagName==="SLOT"){var s=a.assignedElements();var l=s.length?s:a.children;var u=e(l,true,r);if(r.flatten){o.push.apply(o,u)}else{o.push({scope:a,candidates:u})}}else{var c=el.call(a,ea);if(c&&r.filter(a)&&(n||!t.includes(a))){o.push(a)}var f=a.shadowRoot||typeof r.getShadowRoot==="function"&&r.getShadowRoot(a);var h=!r.shadowRootFilter||r.shadowRootFilter(a);if(f&&h){var p=e(f===true?a.children:f.children,true,r);if(r.flatten){o.push.apply(o,p)}else{o.push({scope:a,candidates:p})}}else{i.unshift.apply(i,a.children)}}}return o};var ef=function e(e,t){if(e.tabIndex<0){if((t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))){return 0}}return e.tabIndex};var eh=function e(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex};var ep=function e(e){return e.tagName==="INPUT"};var eg=function e(e){return ep(e)&&e.type==="hidden"};var ev=function e(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(e){return e.tagName==="SUMMARY"});return t};var em=function e(e,t){for(var n=0;n<e.length;n++){if(e[n].checked&&e[n].form===t){return e[n]}}};var ey=function e(e){if(!e.name){return true}var t=e.form||eu(e);var n=function e(e){return t.querySelectorAll('input[type="radio"][name="'+e+'"]')};var r;if(typeof window!=="undefined"&&typeof window.CSS!=="undefined"&&typeof window.CSS.escape==="function"){r=n(window.CSS.escape(e.name))}else{try{r=n(e.name)}catch(e){console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message);return false}}var o=em(r,e.form);return!o||o===e};var ew=function e(e){return ep(e)&&e.type==="radio"};var ex=function e(e){return ew(e)&&!ey(e)};var eb=function e(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return n===0&&r===0};var eS=function e(e,t){var n=t.displayCheck,r=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden"){return true}var o=el.call(e,"details>summary:first-of-type");var i=o?e.parentElement:e;if(el.call(i,"details:not([open]) *")){return true}var a=eu(e).host;var s=(a===null||a===void 0?void 0:a.ownerDocument.contains(a))||e.ownerDocument.contains(e);if(!n||n==="full"){if(typeof r==="function"){var l=e;while(e){var u=e.parentElement;var c=eu(e);if(u&&!u.shadowRoot&&r(u)===true){return eb(e)}else if(e.assignedSlot){e=e.assignedSlot}else if(!u&&c!==e.ownerDocument){e=c.host}else{e=u}}e=l}if(s){return!e.getClientRects().length}}else if(n==="non-zero-area"){return eb(e)}return false};var ek=function e(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName)){var t=e.parentElement;while(t){if(t.tagName==="FIELDSET"&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if(r.tagName==="LEGEND"){return el.call(t,"fieldset[disabled] *")?true:!r.contains(e)}}return true}t=t.parentElement}}return false};var ej=function e(e,t){if(t.disabled||eg(t)||eS(t,e)||ev(t)||ek(t)){return false}return true};var eC=function e(e,t){if(ex(t)||ef(t)<0||!ej(e,t)){return false}return true};var eT=function e(e){var t=parseInt(e.getAttribute("tabindex"),10);if(isNaN(t)||t>=0){return true}return false};var eE=function e(t){var n=[];var r=[];t.forEach(function(t,o){var i=!!t.scope;var a=i?t.scope:t;var s=ef(a,i);var l=i?e(t.candidates):a;if(s===0){i?n.push.apply(n,l):n.push(a)}else{r.push({documentOrder:o,tabIndex:s,item:t,isScope:i,content:l})}});return r.sort(eh).reduce(function(e,t){t.isScope?e.push.apply(e,t.content):e.push(t.content);return e},[]).concat(n)};var e_=function e(e,t){t=t||{};var n;if(t.getShadowRoot){n=ed([e],t.includeContainer,{filter:eC.bind(null,t),flatten:false,getShadowRoot:t.getShadowRoot,shadowRootFilter:eT})}else{n=ec(e,t.includeContainer,eC.bind(null,t))}return eE(n)};var eI=function e(e,t){t=t||{};var n;if(t.getShadowRoot){n=ed([e],t.includeContainer,{filter:ej.bind(null,t),flatten:true,getShadowRoot:t.getShadowRoot})}else{n=ec(e,t.includeContainer,ej.bind(null,t))}return n};var eM=function e(e,t){t=t||{};if(!e){throw new Error("No node provided")}if(el.call(e,ea)===false){return false}return eC(t,e)};var eD=null&&ei.concat("iframe").join(",");var eP=function e(e,t){t=t||{};if(!e){throw new Error("No node provided")}if(el.call(e,eD)===false){return false}return ej(t,e)};/**
137
- * @reach/popover v0.18.0
138
- *
139
- * Copyright (c) 2018-2022, React Training LLC
140
- *
141
- * This source code is licensed under the MIT license found in the
142
- * LICENSE.md file in the root directory of this source tree.
143
- *
144
- * @license MIT
145
- */var eO=o.forwardRef(function e({unstable_skipInitialPortalRender:e,...t},n){return o.createElement(Y,{unstable_skipInitialRender:e},o.createElement(eA,{ref:n,...t}))});eO.displayName="Popover";var eA=o.forwardRef(function e({as:e="div",targetRef:t,position:n=ez,unstable_observableRefs:r=[],...i},a){const s=o.useRef(null);const l=eo(s,{observe:!i.hidden});const u=eo(t,{observe:true});const c=g(s,a);eH(t,s);return o.createElement(e,{"data-reach-popover":"",ref:c,...i,style:{position:"absolute",...eR(n,u,l,...r),...i.style}})});eA.displayName="PopoverImpl";function eR(e,t,n,...r){return n?e(t,n,...r.map(e=>e.current)):{visibility:"hidden"}}function eZ(e,t,n){return{top:n?`${e.top-t.height+window.pageYOffset}px`:`${e.top+e.height+window.pageYOffset}px`}}var ez=(e,t)=>{if(!e||!t){return{}}const{directionRight:n,directionUp:r}=eB(e,t);return{left:n?`${e.right-t.width+window.pageXOffset}px`:`${e.left+window.pageXOffset}px`,...eZ(e,t,r)}};var eN=(e,t)=>{if(!e||!t){return{}}const{directionLeft:n,directionUp:r}=eB(e,t);return{left:n?`${e.left+window.pageXOffset}px`:`${e.right-t.width+window.pageXOffset}px`,...eZ(e,t,r)}};var eL=(e,t)=>{if(!e||!t){return{}}const{directionUp:n}=eB(e,t);return{width:e.width,left:e.left,...eZ(e,t,n)}};function eB(e,t,n=0,r=0){const o={top:e.top-t.height<0,right:window.innerWidth<e.left+t.width-n,bottom:window.innerHeight<e.bottom+t.height-r,left:e.left+e.width-t.width<0};const i=o.right&&!o.left;const a=o.left&&!o.right;const s=o.bottom&&!o.top;const l=o.top&&!o.bottom;return{directionRight:i,directionLeft:a,directionUp:s,directionDown:l}}function eH(e,t){const n=v(e.current);function r(e){if(e.key==="Tab"&&t.current&&e_(t.current).length===0){return}if(e.key==="Tab"&&e.shiftKey){if(c(e)){f(e)}else if(h(e)){p(e)}else if(m(e)){w()}}else if(e.key==="Tab"){if(a()){s(e)}else if(l()){u(e)}else if(g(e)){w()}}}o.useEffect(()=>{n.addEventListener("keydown",r);return()=>{n.removeEventListener("keydown",r)}},[]);function i(){const r=e_(n);const o=r&&e.current?r.indexOf(e.current):-1;const i=r&&r[o+1];return t.current&&t.current.contains(i||null)?false:i}function a(){return e.current?e.current===n.activeElement:false}function s(e){const n=t.current&&e_(t.current);if(n&&n[0]){e.preventDefault();n[0].focus()}}function l(){const e=t.current?t.current.contains(n.activeElement||null):false;if(e){const e=t.current&&e_(t.current);return Boolean(e&&e[e.length-1]===n.activeElement)}return false}function u(e){const t=i();if(t){e.preventDefault();t.focus()}}function c(e){if(!e.shiftKey)return;const t=i();return e.target===t}function f(e){const n=t.current&&e_(t.current);const r=n&&n[n.length-1];if(r){e.preventDefault();r.focus()}}function h(e){const n=t.current&&e_(t.current);if(n){return n.length===0?false:e.target===n[0]}return false}function p(t){t.preventDefault();e.current?.focus()}function g(e){const r=t.current?e_(n).filter(e=>!t.current.contains(e)):null;return r?e.target===r[r.length-1]:false}function m(e){return e.target===e_(n)[0]}let y=[];function w(){const e=t.current&&e_(t.current);if(e){e.forEach(e=>{y.push([e,e.tabIndex]);e.tabIndex=-1});n.addEventListener("focusin",x)}}function x(){n.removeEventListener("focusin",x);y.forEach(([e,t])=>{e.tabIndex=t})}};/**
146
- * @reach/descendants v0.18.0
147
- *
148
- * Copyright (c) 2018-2022, React Training LLC
149
- *
150
- * This source code is licensed under the MIT license found in the
151
- * LICENSE.md file in the root directory of this source tree.
152
- *
153
- * @license MIT
154
- */function eF(e,t={}){const n=[];let r=o.createContext({descendants:n,registerDescendant:()=>_,...t});r.displayName=e;return r}function eV(e,t,n){let r=O();let{registerDescendant:i,descendants:a}=o.useContext(t);let s=n??a.findIndex(t=>t.element===e.element);A(()=>{if(!e.element)r();return i({...e,index:s})},[e,r,s,i,...Object.values(e)]);return s}function eW(){return o.useState([])}function eU(e){return o.useContext(e).descendants}function eK({context:e,children:t,items:n,set:r}){let i=o.useCallback(({element:e,index:t,...n})=>{if(!e)return _;r(r=>{if(t!=null&&t!==-1){return eG(r,{element:e,index:t,...n},t)}if(r.length===0){return[{...n,element:e,index:0}]}if(true){if(r.find(t=>t.element===e)){console.warn("[reach-ui]: `useDescendant` was called with an element that was already registered.\n\nIf you are using the `@reach/descendants` package directly, make sure to only register descendants once. Registering a descendant more than once will lead to bugs in your app.\n\nIf you are using another `reach-ui` package, this is probably our bug!\n\nTo report a bug, open a new issue:\n\n https://github.com/reach/reach-ui/issues/new?assignees=&labels=&template=Bug_report.md\n\nIMPORTANT: this check will only run in the development build, so if you see this warning please be aware that your app may crash when deployed.");return eX(r)}}let o=eY(r,e);let i;if(o===-1){i=[...r,{...n,element:e,index:r.length}]}else{i=eG(r,{...n,element:e,index:o},o)}return i});return()=>{if(!e)return;r(t=>t.filter(t=>e!==t.element))}},[]);return o.createElement(e.Provider,{value:o.useMemo(()=>{return{descendants:n,registerDescendant:i}},[n,i])},t)}function e$(e,t){let{descendants:n}=o.useContext(e);let{callback:r,currentIndex:i,filter:a,key:s="index",orientation:l="vertical",rotate:u=true,rtl:c=false}=t;return function e(e){if(!["ArrowDown","ArrowUp","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(e.key)){return}let t=i??-1;let o=a?n.filter(a):n;if(!o.length){return}let f=o.findIndex(e=>e.index===i);function h(){let e=t===v().index;return e?u?g():o[f]:o[(f+1)%o.length]}function p(){let e=t===g().index;return e?u?v():o[f]:o[(f-1+o.length)%o.length]}function g(){return o[0]}function v(){return o[o.length-1]}switch(e.key){case"ArrowDown":if(l==="vertical"||l==="both"){e.preventDefault();let t=h();r(s==="option"?t:t[s])}break;case"ArrowUp":if(l==="vertical"||l==="both"){e.preventDefault();let t=p();r(s==="option"?t:t[s])}break;case"ArrowLeft":if(l==="horizontal"||l==="both"){e.preventDefault();let t=(c?h:p)();r(s==="option"?t:t[s])}break;case"ArrowRight":if(l==="horizontal"||l==="both"){e.preventDefault();let t=(c?p:h)();r(s==="option"?t:t[s])}break;case"PageUp":e.preventDefault();let m=(e.ctrlKey?p:g)();r(s==="option"?m:m[s]);break;case"Home":e.preventDefault();let y=g();r(s==="option"?y:y[s]);break;case"PageDown":e.preventDefault();let w=(e.ctrlKey?h:v)();r(s==="option"?w:w[s]);break;case"End":e.preventDefault();let x=v();r(s==="option"?x:x[s]);break}}}function eq(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function eY(e,t){if(!t)return-1;if(!e.length)return-1;let n=e.length;while(n--){let r=e[n].element;if(!r)continue;if(eq(r,t)){return n+1}}return-1}function eG(e,t,n){if(n==null||!(n in e)){return[...e,t]}return[...e.slice(0,n),t,...e.slice(n)]}function eX(e){return e.sort((e,t)=>!e.element||!t.element?0:eq(e.element,t.element)?-1:1).map((e,t)=>({...e,index:t}))};/*! *****************************************************************************
155
- Copyright (c) Microsoft Corporation. All rights reserved.
156
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
157
- this file except in compliance with the License. You may obtain a copy of the
158
- License at http://www.apache.org/licenses/LICENSE-2.0
159
-
160
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
161
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
162
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
163
- MERCHANTABLITY OR NON-INFRINGEMENT.
164
-
165
- See the Apache Version 2.0 License for specific language governing permissions
166
- and limitations under the License.
167
- ***************************************************************************** */var eQ;!function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(eQ||(eQ={}));var eJ={type:"xstate.init"};function e0(e){return void 0===e?[]:[].concat(e)}function e1(e){return{type:"xstate.assign",assignment:e}}function e2(e,t){return"string"==typeof(e="string"==typeof e&&t&&t[e]?t[e]:e)?{type:e}:"function"==typeof e?{type:e.name,exec:e}:e}function e4(e){return function(t){return e===t}}function e5(e){return"string"==typeof e?{type:e}:e}function e3(e,t){return{value:e,context:t,actions:[],changed:!1,matches:e4(e)}}function e8(e,t){void 0===t&&(t={});var n={config:e,_options:t,initialState:{value:e.initial,actions:e0(e.states[e.initial].entry).map(function(e){return e2(e,t.actions)}),context:e.context,matches:e4(e.initial)},transition:function(t,r){var o,i,a="string"==typeof t?{value:t,context:e.context}:t,s=a.value,l=a.context,u=e5(r),c=e.states[s];if(c.on){var f=e0(c.on[u.type]),h=function(t){if(void 0===t)return{value:e3(s,l)};var r="string"==typeof t?{target:t}:t,o=r.target,i=void 0===o?s:o,a=r.actions,f=void 0===a?[]:a,h=r.cond,p=l;if((void 0===h?function(){return!0}:h)(l,u)){var g=e.states[i],v=!1,m=[].concat(c.exit,f,g.entry).filter(function(e){return e}).map(function(e){return e2(e,n._options.actions)}).filter(function(e){if("xstate.assign"===e.type){v=!0;var t=Object.assign({},p);return"function"==typeof e.assignment?t=e.assignment(p,u):Object.keys(e.assignment).forEach(function(n){t[n]="function"==typeof e.assignment[n]?e.assignment[n](p,u):e.assignment[n]}),p=t,!1}return!0});return{value:{value:i,context:p,actions:m,changed:i!==s||m.length>0||v,matches:e4(i)}}}};try{for(var p=function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}(f),g=p.next();!g.done;g=p.next()){var v=h(g.value);if("object"==typeof v)return v.value}}catch(e){o={error:e}}finally{try{g&&!g.done&&(i=p.return)&&i.call(p)}finally{if(o)throw o.error}}}return e3(s,l)}};return n}var e6=function(e,t){return e.actions.forEach(function(n){var r=n.exec;return r&&r(e.context,t)})};function e7(e){var t=e.initialState,n=eQ.NotStarted,r=new Set,o={_machine:e,send:function(o){n===eQ.Running&&(t=e.transition(t,o),e6(t,e5(o)),r.forEach(function(e){return e(t)}))},subscribe:function(e){return r.add(e),e(t),{unsubscribe:function(){return r.delete(e)}}},start:function(){return n=eQ.Running,e6(t,eJ),o},stop:function(){return n=eQ.Stopped,r.clear(),o},get state(){return t},get status(){return n}};return o};/**
168
- * @reach/machine v0.18.0
169
- *
170
- * Copyright (c) 2018-2022, React Training LLC
171
- *
172
- * This source code is licensed under the MIT license found in the
173
- * LICENSE.md file in the root directory of this source tree.
174
- *
175
- * @license MIT
176
- */var e9=e=>{let t;e.subscribe(e=>{t=e}).unsubscribe();return t};function te(e,t,n){let r=o.useRef(e);let i=I(()=>e7(r.current).start());let a=o.useRef(null);let[s,l]=o.useState(()=>e9(i));let u=o.useCallback(e=>{let r=h(e)?{type:e}:e;let o=tt(t);i.send({...r,lastEventType:a.current,refs:o});a.current=r.type;if(true){if(n){console.group("Event Sent");console.log("Event:",r);console.groupEnd()}}},[n]);o.useEffect(()=>{i.subscribe(function e(e){if(e.changed){l(e)}});return()=>{i.stop()}},[i]);o.useEffect(()=>{if(true){if(n&&s.changed){console.group("State Updated");console.log("State:",s);console.groupEnd()}}},[n,s]);const c=o.useMemo(()=>({...s,matches:e=>e===s.value}),[s.changed,s.context,s.value]);return[c,u,i]}function tt(e){return Object.entries(e).reduce((e,[t,n])=>{e[t]=n.current;return e},{})}function tn(e,t){return I(()=>e8(e,t))};/**
177
- * @reach/listbox v0.18.0
178
- *
179
- * Copyright (c) 2018-2022, React Training LLC
180
- *
181
- * This source code is licensed under the MIT license found in the
182
- * LICENSE.md file in the root directory of this source tree.
183
- *
184
- * @license MIT
185
- */var tr=e1({navigationValue:null});var to=e1({typeaheadQuery:null});var ti=e1({value:(e,t)=>t.value});var ta=e1({value:(e,t)=>e.initialValue});var ts=e1({navigationValue:(e,t)=>t.value});var tl=e1({navigationValue:e=>{let t=tE(e.value,e.options);if(t&&!t.disabled){return e.value}else{return e.options.find(e=>!e.disabled)?.value||null}}});function tu(e,t){if(t.type==="BLUR"){let{list:e,popover:n}=t.refs;let{relatedTarget:r}=t;let o=v(n);return!!(o?.activeElement!==e&&n&&!n.contains(r||o?.activeElement))}return false}function tc(e,t){if(t.type==="OUTSIDE_MOUSE_DOWN"||t.type==="OUTSIDE_MOUSE_UP"){let{button:e,popover:n}=t.refs;let{relatedTarget:r}=t;return!!(r!==e&&e&&!e.contains(r)&&n&&!n.contains(r))}return false}function td(e,t){return!!e.options.find(t=>t.value===e.navigationValue)}function tf(e,t){let{popover:n,list:r}=t.refs;let{relatedTarget:o}=t;if(n&&o&&n.contains(o)&&o!==r){return false}return td(e,t)}function th(e,t){requestAnimationFrame(()=>{t.refs.list&&t.refs.list.focus()})}function tp(e,t){t.refs.button&&t.refs.button.focus()}function tg(e,t){return!t.disabled}function tv(e,t){return"isControlled"in t?!t.isControlled:false}function tm(e,t){if(t.type==="OPTION_TOUCH_START"){if(t&&t.disabled){return false}}return true}function ty(e,t){if("disabled"in t&&t.disabled){return false}if("value"in t){return t.value!=null}return e.navigationValue!=null}function tw(e,t){t.callback&&t.callback(t.value)}function tx(e,t){if(t.type!=="KEY_DOWN_ENTER"){return}let{hiddenInput:n}=t.refs;if(n&&n.form){let e=n.form.querySelector("button:not([type]),[type='submit']");e&&e.click()}}var tb=e1({typeaheadQuery:(e,t)=>{return(e.typeaheadQuery||"")+t.query}});var tS=e1({value:(e,t)=>{if(t.type==="UPDATE_AFTER_TYPEAHEAD"&&t.query){let n=tT(e.options,t.query);if(n&&!n.disabled){t.callback&&t.callback(n.value);return n.value}}return e.value}});var tk=e1({navigationValue:(e,t)=>{if(t.type==="UPDATE_AFTER_TYPEAHEAD"&&t.query){let n=tT(e.options,t.query);if(n&&!n.disabled){return n.value}}return e.navigationValue}});var tj={["GET_DERIVED_DATA"]:{actions:e1((e,t)=>{return{...e,...t.data}})},["VALUE_CHANGE"]:{actions:[ti,tw]}};var tC=({value:e})=>({id:"listbox",initial:"IDLE",context:{initialValue:e,value:e,options:[],navigationValue:null,typeaheadQuery:null},states:{["IDLE"]:{on:{...tj,["BUTTON_MOUSE_DOWN"]:{target:"OPEN",actions:[tl],cond:tg},["KEY_DOWN_SPACE"]:{target:"NAVIGATING",actions:[tl,th],cond:tg},["KEY_DOWN_SEARCH"]:{target:"IDLE",actions:tb,cond:tg},["UPDATE_AFTER_TYPEAHEAD"]:{target:"IDLE",actions:[tS],cond:tg},["CLEAR_TYPEAHEAD"]:{target:"IDLE",actions:to},["KEY_DOWN_NAVIGATE"]:{target:"NAVIGATING",actions:[tl,to,th],cond:tg},["KEY_DOWN_ENTER"]:{actions:[tx],cond:tg},["RESET_VALUE"]:{actions:[ta,tw],cond:tv}}},["INTERACTING"]:{entry:[tr],on:{...tj,["CLEAR_NAV_SELECTION"]:{actions:[tr,th]},["KEY_DOWN_ENTER"]:{target:"IDLE",actions:[ti,to,tp,tw],cond:ty},["KEY_DOWN_SPACE"]:{target:"IDLE",actions:[ti,to,tp,tw],cond:ty},["BUTTON_MOUSE_DOWN"]:{target:"IDLE",actions:[tp]},["KEY_DOWN_ESCAPE"]:{target:"IDLE",actions:[tp]},["OPTION_MOUSE_DOWN"]:{target:"DRAGGING"},["OUTSIDE_MOUSE_DOWN"]:[{target:"IDLE",cond:tc,actions:to},{target:"DRAGGING",actions:to,cond:td}],["OUTSIDE_MOUSE_UP"]:[{target:"IDLE",cond:tc,actions:to},{target:"NAVIGATING",cond:td},{target:"INTERACTING",actions:to}],["KEY_DOWN_ENTER"]:"INTERACTING",["BLUR"]:[{target:"IDLE",cond:tu,actions:to},{target:"NAVIGATING",cond:tf},{target:"INTERACTING",actions:to}],["OPTION_TOUCH_START"]:{target:"NAVIGATING",actions:[ts,to],cond:tm},["OPTION_CLICK"]:{target:"IDLE",actions:[ti,to,tp,tw],cond:ty},["OPTION_PRESS"]:{target:"IDLE",actions:[ti,to,tp,tw],cond:ty},["OPTION_MOUSE_ENTER"]:{target:"NAVIGATING",actions:[ts,to],cond:tm},["KEY_DOWN_NAVIGATE"]:{target:"NAVIGATING",actions:[ts,to,th]}}},["OPEN"]:{on:{...tj,["CLEAR_NAV_SELECTION"]:{actions:[tr]},["KEY_DOWN_ENTER"]:{target:"IDLE",actions:[ti,to,tp,tw],cond:ty},["KEY_DOWN_SPACE"]:{target:"IDLE",actions:[ti,to,tp,tw],cond:ty},["BUTTON_MOUSE_DOWN"]:{target:"IDLE",actions:[tp]},["KEY_DOWN_ESCAPE"]:{target:"IDLE",actions:[tp]},["OPTION_MOUSE_DOWN"]:{target:"DRAGGING"},["OUTSIDE_MOUSE_DOWN"]:[{target:"IDLE",cond:tc,actions:to},{target:"DRAGGING",cond:td},{target:"INTERACTING",actions:to}],["OUTSIDE_MOUSE_UP"]:[{target:"IDLE",cond:tc,actions:to},{target:"NAVIGATING",cond:td},{target:"INTERACTING",actions:to}],["BLUR"]:[{target:"IDLE",cond:tu,actions:to},{target:"NAVIGATING",cond:tf},{target:"INTERACTING",actions:to}],["BUTTON_MOUSE_UP"]:{target:"NAVIGATING",actions:[tl,th]},["LIST_MOUSE_UP"]:{target:"NAVIGATING",actions:[tl,th]},["OPTION_TOUCH_START"]:{target:"NAVIGATING",actions:[ts,to],cond:tm},["OPTION_CLICK"]:{target:"IDLE",actions:[ti,to,tp,tw],cond:ty},["OPTION_PRESS"]:{target:"IDLE",actions:[ti,to,tp,tw],cond:ty},["KEY_DOWN_NAVIGATE"]:{target:"NAVIGATING",actions:[ts,to,th]},["KEY_DOWN_SEARCH"]:{target:"NAVIGATING",actions:tb},["UPDATE_AFTER_TYPEAHEAD"]:{actions:[tk]},["CLEAR_TYPEAHEAD"]:{actions:to},["OPTION_MOUSE_MOVE"]:[{target:"DRAGGING",actions:[ts],cond:tm},{target:"DRAGGING"}]}},["DRAGGING"]:{on:{...tj,["CLEAR_NAV_SELECTION"]:{actions:[tr]},["KEY_DOWN_ENTER"]:{target:"IDLE",actions:[ti,to,tp,tw],cond:ty},["KEY_DOWN_SPACE"]:{target:"IDLE",actions:[ti,to,tp,tw],cond:ty},["BUTTON_MOUSE_DOWN"]:{target:"IDLE",actions:[tp]},["KEY_DOWN_ESCAPE"]:{target:"IDLE",actions:[tp]},["OPTION_MOUSE_DOWN"]:{target:"DRAGGING"},["OUTSIDE_MOUSE_DOWN"]:[{target:"IDLE",cond:tc,actions:to},{target:"NAVIGATING",cond:td},{target:"INTERACTING",actions:to}],["OUTSIDE_MOUSE_UP"]:[{target:"IDLE",cond:tc,actions:to},{target:"NAVIGATING",cond:td,actions:th},{target:"INTERACTING",actions:[to,th]}],["BLUR"]:[{target:"IDLE",cond:tu,actions:to},{target:"NAVIGATING",cond:tf},{target:"INTERACTING",actions:to}],["BUTTON_MOUSE_UP"]:{target:"NAVIGATING",actions:[tl,th]},["OPTION_TOUCH_START"]:{target:"NAVIGATING",actions:[ts,to],cond:tm},["OPTION_CLICK"]:{target:"IDLE",actions:[ti,to,tp,tw],cond:ty},["OPTION_PRESS"]:{target:"IDLE",actions:[ti,to,tp,tw],cond:ty},["OPTION_MOUSE_ENTER"]:{target:"DRAGGING",actions:[ts,to],cond:tm},["KEY_DOWN_NAVIGATE"]:{target:"NAVIGATING",actions:[ts,to,th]},["KEY_DOWN_SEARCH"]:{target:"NAVIGATING",actions:tb},["UPDATE_AFTER_TYPEAHEAD"]:{actions:[tk]},["CLEAR_TYPEAHEAD"]:{actions:to},["OPTION_MOUSE_MOVE"]:[{target:"NAVIGATING",actions:[ts],cond:tm},{target:"NAVIGATING"}],["OPTION_MOUSE_UP"]:{target:"IDLE",actions:[ti,to,tp,tw],cond:ty}}},["NAVIGATING"]:{on:{...tj,["CLEAR_NAV_SELECTION"]:{actions:[tr,th]},["KEY_DOWN_ENTER"]:{target:"IDLE",actions:[ti,to,tp,tw],cond:ty},["KEY_DOWN_SPACE"]:{target:"IDLE",actions:[ti,to,tp,tw],cond:ty},["BUTTON_MOUSE_DOWN"]:{target:"IDLE",actions:[tp]},["KEY_DOWN_ESCAPE"]:{target:"IDLE",actions:[tp]},["OPTION_MOUSE_DOWN"]:{target:"DRAGGING"},["OUTSIDE_MOUSE_DOWN"]:[{target:"IDLE",cond:tc,actions:to},{target:"NAVIGATING",cond:td},{target:"INTERACTING",actions:to}],["OUTSIDE_MOUSE_UP"]:[{target:"IDLE",cond:tc,actions:to},{target:"NAVIGATING",cond:td},{target:"INTERACTING",actions:to}],["BLUR"]:[{target:"IDLE",cond:tu,actions:to},{target:"NAVIGATING",cond:tf},{target:"INTERACTING",actions:to}],["BUTTON_MOUSE_UP"]:{target:"NAVIGATING",actions:[tl,th]},["OPTION_TOUCH_START"]:{target:"NAVIGATING",actions:[ts,to],cond:tm},["OPTION_CLICK"]:{target:"IDLE",actions:[ti,to,tp,tw],cond:ty},["OPTION_PRESS"]:{target:"IDLE",actions:[ti,to,tp,tw],cond:ty},["OPTION_MOUSE_ENTER"]:{target:"NAVIGATING",actions:[ts,to],cond:tm},["KEY_DOWN_NAVIGATE"]:{target:"NAVIGATING",actions:[ts,to,th]},["KEY_DOWN_SEARCH"]:{target:"NAVIGATING",actions:tb},["UPDATE_AFTER_TYPEAHEAD"]:{actions:[tk]},["CLEAR_TYPEAHEAD"]:{actions:to},["OPTION_MOUSE_MOVE"]:[{target:"NAVIGATING",actions:[ts],cond:tm},{target:"NAVIGATING"}]}}}});function tT(e,t=""){if(!t)return null;const n=e.find(e=>!e.disabled&&e.label&&e.label.toLowerCase().startsWith(t.toLowerCase()));return n||null}function tE(e,t){return e?t.find(t=>t.value===e):void 0}var t_=false;var tI=eF("ListboxDescendantContext");var tM=x("ListboxContext",{});var tD=x("ListboxGroupContext",{});var tP=o.forwardRef(function e({as:e="div","aria-labelledby":t,"aria-label":n,children:r,defaultValue:i,disabled:a=false,form:s,name:l,onChange:u,required:f,value:h,__componentName:p="ListboxInput",...v},m){let y=o.useRef(h!=null);let[w,x]=eW();let b=o.useRef(null);let k=o.useRef(null);let j=o.useRef(null);let C=o.useRef(null);let T=o.useRef(null);let _=o.useRef(null);let I=o.useRef(null);let M=tn(tC({value:(y.current?h:i)||null}));let[D,P]=te(M,{button:b,hiddenInput:k,highlightedOption:j,input:C,list:T,popover:_,selectedOption:I},t_);function O(e){if(e!==D.context.value){u?.(e)}}let R=K(v.id);let Z=v.id||E("listbox-input",R);let z=g(C,m);let N=o.useMemo(()=>{let e=w.find(e=>e.value===D.context.value);return e?e.label:null},[w,D.context.value]);let L=tU(D.value);let B={ariaLabel:n,ariaLabelledBy:t,buttonRef:b,disabled:a,highlightedOptionRef:j,isExpanded:L,listboxId:Z,listboxValueLabel:N,listRef:T,onValueChange:O,popoverRef:_,selectedOptionRef:I,send:P,state:D.value,stateData:D.context};let H=o.useRef(false);if(!y.current&&i==null&&!H.current&&w.length){H.current=true;let e=w.find(e=>!e.disabled);if(e&&e.value){P({type:"VALUE_CHANGE",value:e.value})}}S(h,"value",p);tY(h,D.context.value,()=>{P({type:"VALUE_CHANGE",value:h})});A(()=>{P({type:"GET_DERIVED_DATA",data:{options:w}})},[w,P]);o.useEffect(()=>{function e(e){let{target:t,relatedTarget:n}=e;if(!tq(_.current,t)){P({type:"OUTSIDE_MOUSE_DOWN",relatedTarget:n||t})}}if(L){window.addEventListener("mousedown",e)}return()=>{window.removeEventListener("mousedown",e)}},[P,L]);o.useEffect(()=>{function e(e){let{target:t,relatedTarget:n}=e;if(!tq(_.current,t)){P({type:"OUTSIDE_MOUSE_UP",relatedTarget:n||t})}}if(L){window.addEventListener("mouseup",e)}return()=>{window.removeEventListener("mouseup",e)}},[P,L]);o.useEffect(()=>{let e=k.current?.form;if(!e)return;function t(e){P({type:"RESET_VALUE",isControlled:y.current})}e.addEventListener("reset",t);return()=>{e?.removeEventListener("reset",t)}},[C,y,P]);return o.createElement(e,{...v,ref:z,"data-reach-listbox-input":"","data-state":L?"expanded":"closed","data-value":D.context.value,id:Z},o.createElement(tM.Provider,{value:B},o.createElement(eK,{context:tI,items:w,set:x},c(r)?r({id:Z,isExpanded:L,value:D.context.value,selectedOptionRef:I,highlightedOptionRef:j,valueLabel:N,expanded:L}):r,(s||l||f)&&o.createElement("input",{ref:k,"data-reach-listbox-hidden-input":"",disabled:a,form:s,name:l,readOnly:true,required:f,tabIndex:-1,type:"hidden",value:D.context.value||""}))))});tP.displayName="ListboxInput";var tO=o.forwardRef(function e({arrow:e="▼",button:t,children:n,portal:r=true,...i},a){return o.createElement(tP,{...i,__componentName:"Listbox",ref:a},({value:i,valueLabel:a})=>o.createElement(o.Fragment,null,o.createElement(tR,{arrow:e,children:t?c(t)?t({value:i,label:a}):t:void 0}),o.createElement(tL,{portal:r},o.createElement(tB,null,n))))});tO.displayName="Listbox";var tA=o.forwardRef(function e({"aria-label":e,arrow:t=false,as:n="span",children:r,onKeyDown:i,onMouseDown:a,onMouseUp:s,...f},h){let{buttonRef:p,send:v,ariaLabelledBy:m,disabled:y,isExpanded:w,listboxId:x,stateData:b,listboxValueLabel:S}=o.useContext(tM);let k=b.value;let j=g(p,h);let C=tK();function _(e){if(!T(e.nativeEvent)){e.preventDefault();e.stopPropagation();v({type:"BUTTON_MOUSE_DOWN",disabled:y})}}function I(e){if(!T(e.nativeEvent)){e.preventDefault();e.stopPropagation();v({type:"BUTTON_MOUSE_UP"})}}let M=E("button",x);let D=o.useMemo(()=>{if(!r){return S}else if(c(r)){return r({isExpanded:w,label:S,value:k,expanded:w})}return r},[r,S,w,k]);return o.createElement(n,{"aria-disabled":y||void 0,"aria-expanded":w||void 0,"aria-haspopup":"listbox","aria-labelledby":e?void 0:[m,M].filter(Boolean).join(" "),"aria-label":e,role:"button",tabIndex:y?-1:0,...f,ref:j,"data-reach-listbox-button":"",id:M,onKeyDown:l(i,C),onMouseDown:l(a,_),onMouseUp:l(s,I)},D,t&&o.createElement(tz,null,u(t)?null:t))});tA.displayName="ListboxButton";var tR=o.memo(tA);var tZ=o.forwardRef(function e({as:e="span",children:t,...n},r){let{isExpanded:i}=o.useContext(tM);return o.createElement(e,{"aria-hidden":true,...n,ref:r,"data-reach-listbox-arrow":"","data-expanded":i?"":void 0},c(t)?t({isExpanded:i,expanded:i}):t||"▼")});tZ.displayName="ListboxArrow";var tz=o.memo(tZ);var tN=o.forwardRef(function e({as:e="div",position:t=eL,onBlur:n,onKeyDown:r,onMouseUp:i,portal:a=true,unstable_observableRefs:s,...u},c){let{isExpanded:f,buttonRef:h,popoverRef:p,send:v}=o.useContext(tM);let m=g(p,c);let y=tK();function w(){v({type:"LIST_MOUSE_UP"})}let x={hidden:!f,tabIndex:-1,...u,ref:m,"data-reach-listbox-popover":"",onMouseUp:l(i,w),onBlur:l(n,b),onKeyDown:l(r,y)};function b(e){let{nativeEvent:t}=e;requestAnimationFrame(()=>{v({type:"BLUR",relatedTarget:t.relatedTarget||t.target})})}return a?o.createElement(eO,{...x,as:e,targetRef:h,position:t,unstable_observableRefs:s,unstable_skipInitialPortalRender:true}):o.createElement(e,{...x})});tN.displayName="ListboxPopover";var tL=o.memo(tN);var tB=o.forwardRef(function e({as:e="ul",...t},n){let{listRef:r,ariaLabel:i,ariaLabelledBy:a,isExpanded:s,listboxId:l,stateData:{value:u,navigationValue:c}}=o.useContext(tM);let f=g(n,r);return o.createElement(e,{"aria-activedescendant":t$(s?c:u),"aria-labelledby":i?void 0:a,"aria-label":i,role:"listbox",tabIndex:-1,...t,ref:f,"data-reach-listbox-list":"",id:E("listbox",l)})});tB.displayName="ListboxList";var tH=o.forwardRef(function e({as:e="li",children:t,disabled:n,index:r,label:i,onClick:a,onMouseDown:s,onMouseEnter:u,onMouseLeave:c,onMouseMove:f,onMouseUp:h,onTouchStart:p,value:v,...m},y){let{highlightedOptionRef:w,selectedOptionRef:x,send:b,isExpanded:S,onValueChange:k,state:j,stateData:{value:C,navigationValue:E}}=o.useContext(tM);let[_,I]=o.useState(i);let M=i||_||"";let D=o.useRef(null);let[P,O]=B(D,null);let A=o.useMemo(()=>{return{element:P,value:v,label:M,disabled:!!n}},[n,P,M,v]);eV(A,tI,r);let R=o.useCallback(e=>{if(!i&&e){I(t=>{if(e.textContent&&t!==e.textContent){return e.textContent}return t||""})}},[i]);let Z=E?E===v:false;let z=C===v;let N=g(R,y,O,z?x:null,Z?w:null);function L(){b({type:"OPTION_MOUSE_ENTER",value:v,disabled:!!n})}function H(){b({type:"OPTION_TOUCH_START",value:v,disabled:!!n})}function F(){b({type:"CLEAR_NAV_SELECTION"})}function V(e){if(!T(e.nativeEvent)){e.preventDefault();b({type:"OPTION_MOUSE_DOWN"})}}function W(e){if(!T(e.nativeEvent)){b({type:"OPTION_MOUSE_UP",value:v,callback:k,disabled:!!n})}}function U(e){if(!T(e.nativeEvent)){b({type:"OPTION_CLICK",value:v,callback:k,disabled:!!n})}}function K(){if(j==="OPEN"||E!==v){b({type:"OPTION_MOUSE_MOVE",value:v,disabled:!!n})}}return o.createElement(e,{"aria-selected":(S?Z:z)||void 0,"aria-disabled":n||void 0,role:"option",...m,ref:N,id:t$(v),"data-reach-listbox-option":"","data-current-nav":Z?"":void 0,"data-current-selected":z?"":void 0,"data-label":M,"data-value":v,onClick:l(a,U),onMouseDown:l(s,V),onMouseEnter:l(u,L),onMouseLeave:l(c,F),onMouseMove:l(f,K),onMouseUp:l(h,W),onTouchStart:l(p,H)},t)});tH.displayName="ListboxOption";var tF=o.forwardRef(function e({as:e="div",label:t,children:n,...r},i){let{listboxId:a}=o.useContext(tM);let s=E("label",K(r.id),a);return o.createElement(tD.Provider,{value:{labelId:s}},o.createElement(e,{"aria-labelledby":s,role:"group",...r,"data-reach-listbox-group":"",ref:i},t&&o.createElement(tV,null,t),n))});tF.displayName="ListboxGroup";var tV=o.forwardRef(function e({as:e="span",...t},n){let{labelId:r}=o.useContext(tD);return o.createElement(e,{role:"presentation",...t,ref:n,"data-reach-listbox-group-label":"",id:r})});tV.displayName="ListboxGroupLabel";function tW(){let{highlightedOptionRef:e,selectedOptionRef:t,listboxId:n,listboxValueLabel:r,isExpanded:o,stateData:{value:i}}=React.useContext(tM);return React.useMemo(()=>({id:n,isExpanded:o,selectedOptionRef:t,highlightedOptionRef:e,value:i,valueLabel:r}),[n,o,i,r,t,e])}function tU(e){return["NAVIGATING","OPEN","DRAGGING","INTERACTING"].includes(e)}function tK(){let{send:e,disabled:t,onValueChange:n,stateData:{navigationValue:r,typeaheadQuery:i}}=o.useContext(tM);let a=eU(tI);let s=N(n);o.useEffect(()=>{if(i){e({type:"UPDATE_AFTER_TYPEAHEAD",query:i,callback:s})}let t=window.setTimeout(()=>{if(i!=null){e({type:"CLEAR_TYPEAHEAD"})}},1e3);return()=>{window.clearTimeout(t)}},[s,e,i]);let u=a.findIndex(({value:e})=>e===r);let c=l(function(o){let{key:i}=o;let s=h(i)&&i.length===1;let l=a.find(e=>e.value===r);switch(i){case"Enter":e({type:"KEY_DOWN_ENTER",value:r,callback:n,disabled:!!(l?.disabled||t)});return;case" ":o.preventDefault();e({type:"KEY_DOWN_SPACE",value:r,callback:n,disabled:!!(l?.disabled||t)});return;case"Escape":e({type:"KEY_DOWN_ESCAPE"});return;case"Tab":let u=o.shiftKey?"KEY_DOWN_SHIFT_TAB":"KEY_DOWN_TAB";e({type:u});return;default:if(s){e({type:"KEY_DOWN_SEARCH",query:i,disabled:t})}return}},e$(tI,{currentIndex:u,orientation:"vertical",key:"index",rotate:true,filter:e=>!e.disabled,callback(n){e({type:"KEY_DOWN_NAVIGATE",value:a[n].value,disabled:t})}}));return c}function t$(e){let{listboxId:t}=o.useContext(tM);return e?E(`option-${e}`,t):void 0}function tq(e,t){return!!(e&&e.contains(t))}function tY(e,t,n){let{current:r}=o.useRef(e!=null);if(r&&e!==t){n()}}var tG=n(99818);var tX=n(67459);var tQ=n(45492);function tJ({bare:e,options:t,value:n,defaultLabel:o="",onChange:i,style:a,wrapperStyle:s,line:l,disabledKeys:u=[]}){const c=7;const f=a?.minHeight?a.minHeight:"18px";const h=t.filter(e=>e[0]===n);return(0,r.jsxs)(tP,{value:n,onChange:i,style:{color:e?"inherit":tQ.rS.formInputText,backgroundColor:e?"transparent":tQ.rS.cardBackground,borderRadius:tQ.W2.menuBorderRadius,border:e?"none":"1px solid "+tQ.rS.formInputBorder,lineHeight:"1em",...s},children:[(0,r.jsx)(tR,{className:`${(0,tG.iv)([{borderWidth:0,padding:5,borderRadius:4},a])}`,arrow:(0,r.jsx)(tX.Z,{style:{width:c,height:c,color:"inherit"}}),children:(0,r.jsx)("span",{style:{display:"flex",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:`calc(100% - ${c+5}px)`,alignItems:"center",minHeight:f},children:h.length!==0?h[0][1]:o})}),(0,r.jsx)(tL,{style:{zIndex:1e4,outline:0,borderRadius:tQ.W2.menuBorderRadius,backgroundColor:tQ.rS.menuBackground,color:tQ.rS.menuItemText,boxShadow:tQ.W2.cardShadow,border:"1px solid "+tQ.rS.menuBorder},className:`${(0,tG.iv)({"[data-reach-listbox-option]":{background:tQ.rS.menuItemBackground,color:tQ.rS.menuItemText},"[data-reach-listbox-option][data-current-nav]":{background:tQ.rS.menuItemBackgroundHover,color:tQ.rS.menuItemTextHover}})}`,children:!l?(0,r.jsx)(tB,{style:{maxHeight:250,overflowY:"auto"},children:t.map(([e,t])=>(0,r.jsx)(tH,{value:e,disabled:u.includes(e),children:t},e))}):(0,r.jsxs)(tB,{style:{maxHeight:250,overflowY:"auto"},children:[t.slice(0,l).map(([e,t])=>(0,r.jsx)(tH,{value:e,disabled:u.includes(e),children:t},e)),(0,r.jsx)("div",{style:{padding:"2px",marginTop:5,borderTop:"1px solid "+tQ.rS.menuBorder}}),t.slice(l,t.length).map(([e,t])=>(0,r.jsx)(tH,{value:e,disabled:u.includes(e),children:t},e))]})})]})}},84196:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);var i=n(77644);var a=n(24307);function s(e,t){return o.Children.toArray(t).reduce((t,n)=>{if(n){if(typeof n==="object"&&"type"in n&&n.type===o.Fragment){return t.concat(s(n.key,n.props.children))}t.push({key:e+n["key"],child:n});return t}return t},[])}const l=(0,o.forwardRef)(({direction:e="column",align:t,justify:n,spacing:l=3,children:u,debug:c,style:f,...h},p)=>{const g=e.endsWith("reverse");const v=e.startsWith("row");const m=s("",u);return(0,r.jsx)(a.Z,{style:{flexDirection:e,alignItems:t,justifyContent:n,...f},innerRef:p,...h,children:m.map(({key:e,child:t},n)=>{let a=m.length===n+1;let s;if(v){s=g?"marginLeft":"marginRight"}else{s=g?"marginTop":"marginBottom"}return(0,o.cloneElement)(typeof t==="string"?(0,r.jsx)(i.Z,{children:t}):t,{key:e,style:{...c&&{borderWidth:1,borderColor:"red"},...a?null:{[s]:l*5},...t.props?t.props.style:null}})})})});t.Z=l},77644:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);var i=n(99818);const a=e=>{const{className:t="",style:n,innerRef:o,...a}=e;return(0,r.jsx)("span",{...a,ref:o,className:`${t} ${(0,i.iv)(n)}`})};t.Z=a},42308:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(43188);var o=n(77644);function i({children:e,...t}){return(0,r.jsx)(o.Z,{...t,style:{...t.style,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"block"},children:e})}},24307:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);var i=n(99818);const a=e=>{const{className:t="",style:n,nativeStyle:o,innerRef:a,...s}=e;return(0,r.jsx)("div",{...s,ref:a,style:o,className:`view ${t} ${(0,i.iv)(n)}`})};t.Z=a},10730:function(e,t,n){"use strict";n.d(t,{Wi:function(){return f},XZ:function(){return h},eX:function(){return u},lX:function(){return c}});var r=n(43188);var o=n(66204);var i=n(99818);var a=n(45492);var s=n(77644);var l=n(24307);const u=({title:e,style:t})=>{return(0,r.jsx)(l.Z,{style:{fontWeight:500,textTransform:"uppercase",color:a.rS.formLabelText,marginBottom:5,lineHeight:"1em",...t},children:e})};const c=({style:e,title:t,id:n,htmlFor:o})=>{return(0,r.jsx)(s.Z,{style:{fontSize:13,marginBottom:3,color:a.rS.tableText,...e},children:(0,r.jsx)("label",{htmlFor:o,id:n,children:t})})};const f=({style:e,children:t})=>{return(0,r.jsx)(l.Z,{style:e,children:t})};const h=e=>{return(0,r.jsx)("input",{type:"checkbox",...e,className:`${(0,i.iv)([{position:"relative",margin:0,flexShrink:0,marginRight:6,width:15,height:15,appearance:"none",outline:0,border:"1px solid "+a.rS.formInputBorder,borderRadius:4,display:"flex",alignItems:"center",justifyContent:"center",color:a.rS.checkboxText,backgroundColor:a.rS.tableBackground,":checked":{border:"1px solid "+a.rS.checkboxBorderSelected,backgroundColor:a.rS.checkboxBackgroundSelected,"::after":{display:"block",background:a.rS.checkboxBackgroundSelected+' url(\'data:image/svg+xml; utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="white" d="M0 11l2-2 5 5L18 3l2 2L7 18z"/></svg>\') 9px 9px',width:9,height:9,content:" "}},"&.focus-visible:focus":{"::before":{position:"absolute",top:-5,bottom:-5,left:-5,right:-5,border:"2px solid "+a.rS.checkboxBorderSelected,borderRadius:6,content:" "}}}],e.style)}`})}},24605:function(e,t,n){"use strict";n.d(t,{Jz:function(){return R},Wy:function(){return A},ZP:function(){return Y}});var r=n(43188);var o=n(66204);var i=n(37496);var a=n(13910);var s=n(62829);var l=n(10959);var u=n(84094);var c=n(73416);var f=n(3189);var h=n(89362);var p=n(11892);var g=n(19450);var v=n(29325);var m=n(28799);var y=n(45492);var w=n(56816);var x=n(8987);var b=n(78628);var S=n(84196);var k=n(77644);var j=n(24307);var C=n(60002);var T=n(63541);var E=n(5646);var _=n(82345);var I=n(10464);var M=n(60279);function D(e,t,n){return e.map(e=>e===t?n():e)}function P(e,t){return e.map((e,n)=>{return{...e,error:t[n]}})}function O(e,t){let n=["date"];if(e.find(e=>e.field==="imported_payee")){n.push("imported_payee")}n.push("payee");if(t.find(e=>e.field==="category")){n.push("category")}else if(t.length>0&&!["payee","date","amount"].includes(t[0].field)){n.push(t[0].field)}n.push("amount");return n}function A({fields:e,style:t,value:n,onChange:o}){return(0,r.jsx)(j.Z,{style:{color:y.rS.pageTextPositive,...t},children:(0,r.jsx)(b.Z,{bare:true,options:e,value:n,onChange:e=>o("field",e)})})}function R({ops:e,type:t,style:n,wrapperStyle:o,value:i,formatOp:a=f.w8,onChange:s}){let l;if(t==="id"){e=e.filter(e=>e!=="contains"&&e!=="doesNotContain");l=e.length/2}if(t==="string"){l=e.length/2}return(0,r.jsx)(b.Z,{bare:true,options:e.map(e=>[e,a(e,t)]),value:i,onChange:e=>s("op",e),line:l,style:{minHeight:"1px",...n},wrapperStyle:o})}function Z({onAdd:e,onDelete:t,style:n}){return(0,r.jsxs)(r.Fragment,{children:[t&&(0,r.jsx)(w.Z,{type:"bare",onClick:t,style:{padding:7},"aria-label":"Delete entry",children:(0,r.jsx)(v.Z,{style:{width:8,height:8,color:"inherit"}})}),e&&(0,r.jsx)(w.Z,{type:"bare",onClick:e,style:{padding:7},"aria-label":"Add entry",children:(0,r.jsx)(g.Z,{style:{width:10,height:10,color:"inherit"}})})]})}function z({type:e}){return(0,r.jsx)(k.Z,{style:{fontSize:12,textAlign:"center",color:y.rS.errorText,marginBottom:5},children:(0,f.zQ)(e)})}function N({error:e,style:t,children:n}){return(0,r.jsxs)(j.Z,{style:t,"data-testid":"editor-row",children:[(0,r.jsx)(S.Z,{direction:"row",align:"center",spacing:1,style:{padding:"3px 5px"},children:n}),e&&(0,r.jsx)(z,{type:e})]})}function L({ops:e,condition:t,editorStyle:n,isSchedule:o,onChange:i,onDelete:a,onAdd:s}){let{field:l,op:u,value:c,type:f,options:h,error:p}=t;if(l==="amount"&&h){if(h.inflow){l="amount-inflow"}else if(h.outflow){l="amount-outflow"}}let g;if(f==="number"&&u==="isbetween"){g=(0,r.jsx)(_.I,{defaultValue:c,onChange:e=>i("value",e)})}else{g=(0,r.jsx)(M.Z,{field:l,type:f,value:c,multi:u==="oneOf"||u==="notOneOf",onChange:e=>i("value",e)})}return(0,r.jsxs)(N,{style:n,error:p,children:[(0,r.jsx)(A,{fields:q,value:l,onChange:i}),(0,r.jsx)(R,{ops:e,value:u,type:f,onChange:i}),(0,r.jsx)(j.Z,{style:{flex:1},children:g}),(0,r.jsx)(S.Z,{direction:"row",children:(0,r.jsx)(Z,{onAdd:s,onDelete:o&&l==="date"?null:a})})]})}function B(e){if(!e){return(0,h.zA)(0)}else if(typeof e==="number"){return(0,h.zA)(e)}else{return`${(0,h.zA)(e.num1)} to ${(0,h.zA)(e.num2)}`}}function H({id:e}){let t=(0,i.v9)(e=>{return e.prefs.local.dateFormat||"MM/dd/yyyy"});let n=(0,s.gZ)({transform:(0,o.useCallback)(t=>t.filter({id:e}),[])});if(n==null){return null}if(n.schedules.length===0){return(0,r.jsx)(j.Z,{style:{flex:1},children:e})}let[a]=n.schedules;let l=a&&n.statuses.get(a.id);return(0,r.jsxs)(j.Z,{style:{flex:1,flexDirection:"row",alignItems:"center"},children:[(0,r.jsxs)(j.Z,{style:{marginRight:15,flexDirection:"row"},children:[(0,r.jsxs)(k.Z,{style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:["Payee:"," ",(0,r.jsx)(I.Z,{type:"payees",id:a._payee,noneColor:y.rS.pageTextLight})]}),(0,r.jsx)(k.Z,{style:{margin:"0 5px"},children:" — "}),(0,r.jsxs)(k.Z,{style:{flexShrink:0},children:["Amount: ",B(a._amount)]}),(0,r.jsx)(k.Z,{style:{margin:"0 5px"},children:" — "}),(0,r.jsxs)(k.Z,{style:{flexShrink:0},children:["Next: ",c.WU(a.next_date,t)]})]}),(0,r.jsx)(C.O,{status:l})]})}let F=["category","payee","notes","cleared","account","date","amount"].map(e=>[e,(0,f.gL)(e)]);function V({ops:e,action:t,editorStyle:n,onChange:o,onDelete:i,onAdd:a}){let{field:s,op:l,value:u,type:c,error:h,inputKey:p="initial"}=t;return(0,r.jsxs)(N,{style:n,error:h,children:[l==="set"?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(j.Z,{style:{padding:"5px 10px",lineHeight:"1em"},children:(0,f.w8)(l)}),(0,r.jsx)(A,{fields:F,value:s,onChange:o}),(0,r.jsx)(j.Z,{style:{flex:1},children:(0,r.jsx)(M.Z,{field:s,type:c,op:l,value:u,onChange:e=>o("value",e)},p)})]}):l==="link-schedule"?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(j.Z,{style:{padding:"5px 10px",color:y.rS.pageTextPositive},children:(0,f.w8)(l)}),(0,r.jsx)(H,{id:u||null})]}):null,(0,r.jsx)(S.Z,{direction:"row",children:(0,r.jsx)(Z,{onAdd:a,onDelete:l!=="link-schedule"&&i})})]})}function W(){let[e,t]=(0,o.useState)();return(0,r.jsxs)(j.Z,{style:{position:"relative",marginLeft:5},children:[(0,r.jsx)(j.Z,{onMouseEnter:()=>t(true),onMouseLeave:()=>t(false),children:(0,r.jsx)(m.Z,{style:{width:11,height:11,color:y.rS.pageTextLight}})}),e&&(0,r.jsx)(T.u,{position:"bottom-left",style:{padding:10,color:y.rS.pageTextLight,maxWidth:450,lineHeight:1.5},children:"The stage of a rule allows you to force a specific order. Pre rules always run first, and post rules always run last. Within each stage rules are automatically ordered from least to most specific."})]})}function U({selected:e,children:t,style:n,onSelect:o}){return(0,r.jsx)(w.Z,{type:"bare",style:{fontSize:"inherit",...e&&{backgroundColor:y.rS.pillBackgroundSelected,":hover":{backgroundColor:y.rS.pillBackgroundSelected}},...n},onClick:o,children:t})}function K(e){return{...e,inputKey:""+Math.random()}}function $({conditionsOp:e,conditions:t,editorStyle:n,isSchedule:o,onChangeConditions:i}){function a(n){let r=q.map(e=>e[0]).filter(e=>e!=="amount-inflow"&&e!=="amount-outflow");if(t.length&&e==="or"){r=[t[0].field]}else{r=r.filter(e=>!t.some(t=>t.field.includes(e)||e.includes(t.field)))}let o=r[0]||"payee";let a=[...t];a.splice(n+1,0,{type:f.Z9.get(o),field:o,op:"is",value:null});i(a)}function s(){a(-1)}function l(e){i(t.filter(t=>t!==e))}function u(e,n,r){i(D(t,e,()=>{if(n==="field"){let t={field:r};if(r==="amount-inflow"){t.field="amount";t.options={inflow:true}}else if(r==="amount-outflow"){t.field="amount";t.options={outflow:true}}t.type=f.Z9.get(t.field);let n=f.Z9.get(e.field);if((n==="string"||n==="number")&&n===t.type&&e.op!=="isbetween"){t.op=e.op;return K((0,f.l1)(e.value,t))}else{t.op=f.wZ[t.type].ops[0];return K((0,f.l1)(null,t))}}else if(n==="op"){let t=r;if(e.op!=="oneOf"&&e.op!=="notOneOf"&&(t==="oneOf"||t==="notOneOf")){return K((0,f.l1)(e.value!=null?[e.value]:[],{...e,op:r}))}else if((e.op==="oneOf"||e.op==="notOneOf")&&t!=="oneOf"&&t!=="notOneOf"){return K((0,f.l1)(e.value.length>0?e.value[0]:null,{...e,op:r}))}else if(e.op!=="isbetween"&&t==="isbetween"){return(0,f.l1)({num1:(0,h.l9)(e.value),num2:(0,h.l9)(e.value)},{...e,op:r})}else if(e.op==="isbetween"&&t!=="isbetween"){return(0,f.l1)((0,h.Bf)(e.value.num1||0),{...e,op:r})}else{return{...e,op:r}}}else if(n==="value"){return(0,f.l1)(r,e)}return e}))}return t.length===0?(0,r.jsx)(w.Z,{style:{alignSelf:"flex-start"},onClick:s,children:"Add condition"}):(0,r.jsx)(S.Z,{spacing:2,"data-testid":"condition-list",children:t.map((e,t)=>{let i=f.wZ[e.type].ops;if(e.type==="date"&&e.value&&e.value.frequency){i=["is","isapprox"]}else if(e.options&&(e.options.inflow||e.options.outflow)){i=i.filter(e=>e!=="isbetween")}return(0,r.jsx)(j.Z,{children:(0,r.jsx)(L,{editorStyle:n,ops:i,condition:e,isSchedule:o,onChange:(t,n)=>{u(e,t,n)},onDelete:()=>l(e),onAdd:()=>a(t)})},t)})})}let q=["imported_payee","account","category","date","payee","notes","amount"].map(e=>[e,(0,f.gL)(e)]).concat([["amount-inflow",(0,f.gL)("amount",{inflow:true})],["amount-outflow",(0,f.gL)("amount",{outflow:true})]]);function Y({modalProps:e,defaultRule:t,onSave:n}){let[s,c]=(0,o.useState)(t.conditions.map(f.Qc));let[h,g]=(0,o.useState)(t.actions.map(f.Qc));let[v,m]=(0,o.useState)(t.stage);let[b,C]=(0,o.useState)(t.conditionsOp);let[T,_]=(0,o.useState)([]);let I=(0,i.I0)();let M=(0,o.useRef)();let R=h.some(e=>e.op==="link-schedule");(0,o.useEffect)(()=>{I((0,a.Rr)());(0,a.Ew)(false);return()=>(0,a.Ew)(true)},[]);(0,o.useEffect)(()=>{if(M.current){let e=M.current;let t=e.scrollTop;e.scrollTop=t+1;e.scrollTop=t}async function e(){let{filters:e}=await (0,u.lW)("make-filters-from-conditions",{conditions:s.map(f.Z2)});if(e.length>0){const t=b==="or"?"$or":"$and";let{data:n}=await (0,l.Vn)((0,l.ZP)("transactions").filter({[t]:e}).select("*"));_(n)}else{_([])}}e()},[h,s,b]);let Z=(0,p.ZP)("transactions",T,[]);function z(){N(-1)}function N(e){let t=F.map(e=>e[0]);for(let e of h){t=t.filter(t=>t!==e.field)}let n=t[0]||"category";let r=[...h];r.splice(e+1,0,{type:f.Z9.get(n),field:n,op:"set",value:null});g(r)}function L(e,t,n){g(D(h,e,()=>{let r={...e};r[t]=n;if(t==="field"){r.type=f.Z9.get(r.field);r.value=null;return K(r)}else if(t==="op"){r.value=null;r.inputKey=""+Math.random();return K(r)}return r}))}function B(e){m(e)}function H(e,t){C(t)}function q(e){g(h.filter(t=>t!==e))}function Y(){(0,u.lW)("rule-apply-actions",{transactionIds:[...Z.items],actions:h.map(f.Z2)}).then(()=>{g([...h])})}async function G(){let r={...t,stage:v,conditionsOp:b,conditions:s.map(f.Z2),actions:h.map(f.Z2)};let o=r.id?"rule-update":"rule-add";let{error:i,id:a}=await (0,u.lW)(o,r);if(i){if(i.conditionErrors){c(P(s,i.conditionErrors))}if(i.actionErrors){g(P(h,i.actionErrors))}}else{if(a){r.id=a}n?.(r);e.onClose()}}let X={color:y.rS.pillText,backgroundColor:y.rS.pillBackground,borderRadius:4};return(0,r.jsx)(x.C,{title:"Rule",padding:0,...e,style:{...e.style,flex:"inherit",maxWidth:"90%"},children:()=>(0,r.jsxs)(j.Z,{style:{maxWidth:"100%",width:900,height:"80vh",flexGrow:0,flexShrink:0,flexBasis:"auto",overflow:"hidden",color:y.rS.pageTextLight},children:[(0,r.jsxs)(j.Z,{style:{flexDirection:"row",alignItems:"center",marginBottom:15,padding:"0 20px"},children:[(0,r.jsx)(k.Z,{style:{marginRight:15},children:"Stage of rule:"}),(0,r.jsxs)(S.Z,{direction:"row",align:"center",spacing:1,children:[(0,r.jsx)(U,{selected:v==="pre",onSelect:()=>B("pre"),children:"Pre"}),(0,r.jsx)(U,{selected:v===null,onSelect:()=>B(null),children:"Default"}),(0,r.jsx)(U,{selected:v==="post",onSelect:()=>B("post"),children:"Post"}),(0,r.jsx)(W,{})]})]}),(0,r.jsx)(j.Z,{innerRef:M,style:{borderBottom:"1px solid "+y.rS.tableBorder,padding:20,overflow:"auto",maxHeight:"calc(100% - 300px)"},children:(0,r.jsxs)(j.Z,{style:{flexShrink:0},children:[(0,r.jsxs)(j.Z,{style:{marginBottom:30},children:[(0,r.jsxs)(k.Z,{style:{marginBottom:15},children:["If",(0,r.jsx)(A,{"data-testid":"conditions-op",style:{display:"inline-flex"},fields:[["and","all"],["or","any"]],value:b,onChange:H}),"of these conditions match:"]}),(0,r.jsx)($,{conditionsOp:b,conditions:s,editorStyle:X,isSchedule:R,onChangeConditions:e=>c(e)})]}),(0,r.jsx)(k.Z,{style:{marginBottom:15},children:"Then apply these actions:"}),(0,r.jsx)(j.Z,{style:{flex:1},children:h.length===0?(0,r.jsx)(w.Z,{style:{alignSelf:"flex-start"},onClick:z,children:"Add action"}):(0,r.jsx)(S.Z,{spacing:2,"data-testid":"action-list",children:h.map((e,t)=>(0,r.jsx)(j.Z,{children:(0,r.jsx)(V,{ops:["set","link-schedule"],action:e,editorStyle:X,onChange:(t,n)=>{L(e,t,n)},onDelete:()=>q(e),onAdd:()=>N(t)})},t))})})]})}),(0,r.jsx)(p.i5,{instance:Z,children:(0,r.jsxs)(j.Z,{style:{padding:"20px",flex:1},children:[(0,r.jsxs)(j.Z,{style:{flexDirection:"row",alignItems:"center",marginBottom:12},children:[(0,r.jsx)(k.Z,{style:{color:y.rS.pageTextLight,marginBottom:0},children:"This rule applies to these transactions:"}),(0,r.jsx)(j.Z,{style:{flex:1}}),(0,r.jsxs)(w.Z,{disabled:Z.items.size===0,onClick:Y,children:["Apply actions (",Z.items.size,")"]})]}),(0,r.jsx)(E.Z,{transactions:T,fields:O(s,h),style:{border:"1px solid "+y.rS.tableBorder,borderRadius:"6px 6px 0 0"}}),(0,r.jsxs)(S.Z,{direction:"row",justify:"flex-end",style:{marginTop:20},children:[(0,r.jsx)(w.Z,{onClick:()=>e.onClose(),children:"Cancel"}),(0,r.jsx)(w.Z,{type:"primary",onClick:()=>G(),children:"Save"})]})]})})]})})}},99012:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(43188);var o=n(66204);var i=n(37496);var a=n(79982);var s=n(41071);var l=n(73416);var u=n(11504);var c=n(89362);var f=n(9579);var h=n(45492);var p=n(21920);var g=n(77644);let v={color:h.rS.pageTextPositive};function m({value:e,field:t,valueIsRaw:n,inline:m=false,data:y,describe:w=e=>e.name}){let x=(0,i.v9)(e=>e.prefs.local.dateFormat||"MM/dd/yyyy");let b=(0,i.v9)(e=>e.queries.payees);let{list:S}=(0,f.Z)();let k=(0,i.v9)(e=>e.queries.accounts);let j=y||(t==="payee"?b:t==="category"?S:t==="account"?k:[]);let[C,T]=(0,o.useState)(false);function E(e){e.preventDefault();T(true)}function _(e){if(e==null||e===""){return"(nothing)"}else if(typeof e==="boolean"){return e?"true":"false"}else{switch(t){case"amount":return(0,c.zA)(e);case"date":if(e){if(e.frequency){return(0,u.o7)(e)}return(0,a.Z)((0,s.Z)(e),x)}return null;case"month":return e?(0,a.Z)((0,s.Z)(e),(0,l.LT)(x)):null;case"year":return e?(0,a.Z)((0,s.Z)(e),"yyyy"):null;case"notes":case"imported_payee":return e;case"payee":case"category":case"account":case"rule":if(n){return e}if(j&&Array.isArray(j)){let t=j.find(t=>t.id===e);if(t){return w(t)}else{return"(deleted)"}}return"…";default:throw new Error(`Unknown field ${t}`)}}}if(Array.isArray(e)){if(e.length===0){return(0,r.jsx)(g.Z,{style:v,children:"(empty)"})}else if(e.length===1){return(0,r.jsxs)(g.Z,{children:["[",(0,r.jsx)(g.Z,{style:v,children:_(e[0])}),"]"]})}let t=e;if(!C&&e.length>4){t=e.slice(0,3)}let n=e.length-t.length;return(0,r.jsxs)(g.Z,{style:{color:h.rS.tableText},children:["[",t.map((t,n)=>{let o=(0,r.jsx)(g.Z,{style:v,children:_(t)});let i;if(m){i=n!==0?" ":""}else{i=(0,r.jsxs)(r.Fragment,{children:[n===0&&(0,r.jsx)("br",{}),"\xa0\xa0"]})}return(0,r.jsxs)(g.Z,{children:[i,o,n===e.length-1?"":",",!m&&(0,r.jsx)("br",{})]},n)}),n>0&&(0,r.jsxs)(g.Z,{style:v,children:["\xa0\xa0",(0,r.jsxs)(p.Z,{onClick:E,style:v,children:[n," more items..."]}),!m&&(0,r.jsx)("br",{})]}),"]"]})}else if(e&&e.num1!=null&&e.num2!=null){const{num1:t,num2:n}=e;return(0,r.jsxs)(g.Z,{children:[(0,r.jsx)(g.Z,{style:v,children:_(t)})," and"," ",(0,r.jsx)(g.Z,{style:v,children:_(n)})]})}else{return(0,r.jsx)(g.Z,{style:v,children:_(e)})}}},75497:function(e,t,n){"use strict";n.d(t,{Pz:function(){return E},dN:function(){return j},zB:function(){return T}});var r=n(43188);var o=n(66204);var i=n(37496);var a=n(99548);var s=n(68761);var l=n(73416);var u=n(11504);var c=n(89362);var f=n(94276);var h=n(25136);var p=n(45492);var g=n(56816);var v=n(31941);var m=n(77644);var y=n(24307);var w=n(44710);var x=n(59128);var b=n(63541);var S=n(10464);var k=n(60002);const j=43;function C({schedule:e,status:t,onAction:n}){const[i,a]=(0,o.useState)(false);const s=()=>{const e=[];if(t==="due"){e.push({name:"post-transaction",text:"Post transaction"})}if(t==="completed"){e.push({name:"restart",text:"Restart"})}else{e.push({name:"skip",text:"Skip next date"},{name:"complete",text:"Complete"})}e.push({name:"delete",text:"Delete"});return e};return(0,r.jsxs)(y.Z,{children:[(0,r.jsx)(g.Z,{type:"bare",onClick:e=>{e.stopPropagation();a(true)},children:(0,r.jsx)(f.Z,{width:15,height:15,style:{transform:"rotateZ(90deg)"}})}),i&&(0,r.jsx)(b.u,{position:"bottom-right",width:150,style:{padding:0},onClose:()=>a(false),children:(0,r.jsx)(v.Z,{onMenuSelect:t=>{n(t,e.id);a(false)},items:s()})})]})}function T({amount:e,op:t}){const n=(0,u.lP)(e);const o=(0,c.zA)(Math.abs(n||0));const i=t==="isapprox"||t==="isbetween";return(0,r.jsxs)(x.bL,{width:100,plain:true,style:{textAlign:"right",flexDirection:"row",alignItems:"center",padding:"0 5px"},name:"amount",children:[i&&(0,r.jsx)(y.Z,{style:{textAlign:"left",color:p.rS.pageTextSubdued,lineHeight:"1em",marginRight:10},title:(i?"Approximately ":"")+o,children:"~"}),(0,r.jsx)(m.Z,{style:{flex:1,color:n>0?p.rS.noticeTextLight:p.rS.tableText,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},title:(i?"Approximately ":"")+o,children:(0,r.jsx)(w.ZP,{children:n>0?`+${o}`:`${o}`})})]})}function E({schedules:e,statuses:t,filter:n,minimal:f,allowCompleted:g,style:v,onSelect:w,onAction:b,tableStyle:E}){const _=(0,i.v9)(e=>{return e.prefs.local.dateFormat||"MM/dd/yyyy"});const[I,M]=(0,o.useState)(false);const D=(0,s.n4)();const P=(0,a.gM)();const O=(0,o.useMemo)(()=>{if(!n){return e}const r=e=>e?e.toLowerCase().includes(n.toLowerCase())||n.toLowerCase().includes(e.toLowerCase()):false;return e.filter(e=>{const n=D.find(t=>e._payee===t.id);const o=P.find(t=>e._account===t.id);const i=(0,u.lP)(e._amount);const a=(e._amountOp==="isapprox"||e._amountOp==="isbetween"?"~":"")+(i>0?"+":"")+(0,c.zA)(Math.abs(i||0));const s=e.next_date?(0,l.WU)(e.next_date,_):null;return r(e.name)||r(n&&n.name)||r(o&&o.name)||r(a)||r(t.get(e.id))||r(s)})},[e,n,t]);const A=(0,o.useMemo)(()=>{const e=O.filter(e=>!e.completed);if(!g){return e}if(I){return O}const t=O.find(e=>e.completed);if(!t)return e;return[...e,{id:"show-completed"}]},[O,I,g]);function R({schedule:e}){return(0,r.jsxs)(x.X2,{height:j,inset:15,onClick:()=>w(e.id),style:{cursor:"pointer",backgroundColor:p.rS.tableBackground,color:p.rS.tableText,":hover":{backgroundColor:p.rS.tableRowBackgroundHover}},children:[(0,r.jsx)(x.gN,{width:"flex",name:"name",children:(0,r.jsx)(m.Z,{style:e.name==null?{color:p.rS.buttonNormalDisabledText}:null,title:e.name?e.name:"",children:e.name?e.name:"None"})}),(0,r.jsx)(x.gN,{width:"flex",name:"payee",children:(0,r.jsx)(S.Z,{type:"payees",id:e._payee})}),(0,r.jsx)(x.gN,{width:"flex",name:"account",children:(0,r.jsx)(S.Z,{type:"accounts",id:e._account})}),(0,r.jsx)(x.gN,{width:110,name:"date",children:e.next_date?(0,l.WU)(e.next_date,_):null}),(0,r.jsx)(x.gN,{width:120,name:"status",style:{alignItems:"flex-start"},children:(0,r.jsx)(k.O,{status:t.get(e.id)})}),(0,r.jsx)(T,{amount:e._amount,op:e._amountOp}),!f&&(0,r.jsx)(x.gN,{width:80,style:{textAlign:"center"},children:e._date&&e._date.frequency&&(0,r.jsx)(h.Z,{style:{width:13,height:13}})}),!f&&(0,r.jsx)(x.gN,{width:40,name:"actions",children:(0,r.jsx)(C,{schedule:e,status:t.get(e.id),onAction:b})})]})}function Z({item:e}){if(e.id==="show-completed"){return(0,r.jsx)(x.X2,{height:j,inset:15,style:{cursor:"pointer",backgroundColor:"transparent",":hover":{backgroundColor:p.rS.tableRowBackgroundHover}},onClick:()=>M(true),children:(0,r.jsx)(x.gN,{width:"flex",style:{fontStyle:"italic",textAlign:"center",color:p.rS.tableText},children:"Show completed schedules"})})}return R({schedule:e})}return(0,r.jsxs)(y.Z,{style:{flex:1,...E},children:[(0,r.jsxs)(x.xD,{height:j,inset:15,version:"v2",children:[(0,r.jsx)(x.gN,{width:"flex",children:"Name"}),(0,r.jsx)(x.gN,{width:"flex",children:"Payee"}),(0,r.jsx)(x.gN,{width:"flex",children:"Account"}),(0,r.jsx)(x.gN,{width:110,children:"Next date"}),(0,r.jsx)(x.gN,{width:120,children:"Status"}),(0,r.jsx)(x.gN,{width:100,style:{textAlign:"right"},children:"Amount"}),!f&&(0,r.jsx)(x.gN,{width:80,style:{textAlign:"center"},children:"Recurring"}),!f&&(0,r.jsx)(x.gN,{width:40})]}),(0,r.jsx)(x.iA,{rowHeight:j,backgroundColor:"transparent",version:"v2",style:{flex:1,backgroundColor:"transparent",...v},items:A,renderItem:Z,renderEmpty:n?"No matching schedules":"No schedules",allowPopupsEscape:A.length<6})]})}},60002:function(e,t,n){"use strict";n.d(t,{O:function(){return w},V:function(){return y}});var r=n(43188);var o=n(66204);var i=n(89362);var a=n(79494);var s=n(48880);var l=n(6564);var u=n(93757);var c=n(50798);var f=n(26858);var h=n(64355);var p=n(69350);var g=n(45492);var v=n(77644);var m=n(24307);function y(e){switch(e){case"missed":return{color:g.rS.errorTextDarker,backgroundColor:g.rS.errorBackground,Icon:c.Z};case"due":return{color:g.rS.warningTextDark,backgroundColor:g.rS.warningBackground,Icon:a.Z};case"upcoming":return{color:g.rS.upcomingText,backgroundColor:g.rS.upcomingBackground,Icon:s.Z};case"paid":return{color:g.rS.noticeText,backgroundColor:g.rS.noticeBackgroundLight,Icon:p.Z};case"completed":return{color:g.rS.tableHeaderText,backgroundColor:g.rS.tableRowHeaderBackground,Icon:f.Z};case"pending":return{color:g.rS.noticeTextLight,backgroundColor:g.rS.noticeBackgroundLight,Icon:s.Z};case"scheduled":return{color:g.rS.tableRowHeaderText,backgroundColor:g.rS.tableRowHeaderBackground,Icon:s.Z};case"cleared":return{color:g.rS.noticeTextLight,backgroundColor:g.rS.tableRowHeaderBackground,Icon:l.Z};case"reconciled":return{color:g.rS.noticeTextLight,backgroundColor:g.rS.tableRowHeaderBackground,Icon:h.Z};default:return{color:g.rS.buttonNormalDisabledText,backgroundColor:g.rS.tableRowHeaderBackground,Icon:u.Z}}}function w({status:e}){const{color:t,backgroundColor:n,Icon:o}=y(e);return(0,r.jsxs)(m.Z,{style:{color:t,backgroundColor:n,padding:"6px 8px",borderRadius:4,flexDirection:"row",alignItems:"center",flexShrink:0},children:[(0,r.jsx)(o,{style:{width:13,height:13,marginRight:7}}),(0,r.jsx)(v.Z,{style:{lineHeight:"1em"},children:(0,i.VL)(e)})]})}},37998:function(e,t,n){"use strict";n.d(t,{Z:function(){return E}});var r=n(43188);var o=n(66204);var i=n(37496);var a=n(28548);var s=n(82862);var l=n(8780);var u=n(79982);var c=n(41071);var f=n(25432);var h=n(7851);var p=n.n(h);var g={};var v=n(73416);var m=n(89362);var y=n(45492);var w=n(383);var x=n(24307);var b=n(63541);var S="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAQAAACGG/bgAAAAQ0lEQVR4Ae3KIQ4AIBTD0N0/IeHGI3UIRA3ut/Zl+ltXc5++htVAmIAwAWECwgSEKbgthEoIlRAqIVRCqINQB9nDgQd7ktwFo6UpWQAAAABJRU5ErkJggg==";var k="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAQAAACGG/bgAAAAP0lEQVQ4y+3TMQoAMAgEwfwfAvvjTZ1uGzuvHhBPPGczEG+FRqqRaqQaqUaqkX6QBmmjacvQ6qEVTjsh+xizebvlaWptGXZAAAAAAElFTkSuQmCC";let j={"& .pika-single.actual-date-picker":{color:y.rS.calendarText,background:y.rS.calendarBackground,border:"none",boxShadow:"0 0px 4px rgba(0, 0, 0, .25)",borderRadius:4},"& .actual-date-picker":{"& .pika-lendar":{float:"none",width:"auto"},"& .pika-label":{backgroundColor:y.rS.calendarBackground},"& .pika-prev":{backgroundImage:`url(${S})`},"& .pika-next":{backgroundImage:`url(${k})`},"& .pika-table th":{color:y.rS.calendarItemText,"& abbr":{textDecoration:"none"}},"& .pika-button":{backgroundColor:y.rS.calendarItemBackground,color:y.rS.calendarItemText},"& .is-today .pika-button":{textDecoration:"underline"},"& .is-selected .pika-button":{backgroundColor:y.rS.calendarSelectedBackground,boxShadow:"none"}}};let C=(0,o.forwardRef)(({value:e,firstDayOfWeekIdx:t,dateFormat:n,onUpdate:i,onSelect:c},f)=>{let h=(0,o.useRef)(null);let g=(0,o.useRef)(null);(0,o.useImperativeHandle)(f,()=>({handleInputKeyDown(e){let t=null;switch(e.key){case"ArrowLeft":e.preventDefault();t=(0,a.Z)(h.current.getDate(),1);break;case"ArrowUp":e.preventDefault();t=(0,a.Z)(h.current.getDate(),7);break;case"ArrowRight":e.preventDefault();t=(0,s.Z)(h.current.getDate(),1);break;case"ArrowDown":e.preventDefault();t=(0,s.Z)(h.current.getDate(),7);break;default:}if(t){h.current.setDate(t,true);i?.(t)}}}),[]);(0,o.useLayoutEffect)(()=>{h.current=new(p())({theme:"actual-date-picker",keyboardInput:false,firstDay:(0,m.CD)(t),defaultDate:e?(0,l.Z)(e,n,(0,v.cQ)()):(0,v.cQ)(),setDefaultDate:true,toString(e){return(0,u.Z)(e,n)},parse(e){return(0,l.Z)(e,n,new Date)},onSelect:c});g.current.appendChild(h.current.el);return()=>{h.current.destroy()}},[]);(0,o.useEffect)(()=>{if(h.current.getDate()!==e){h.current.setDate((0,l.Z)(e,n,new Date),true)}},[e,n]);return(0,r.jsx)(x.Z,{style:{...j,flex:1},innerRef:g})});function T(e){return e.key==="Enter"}function E({containerProps:e,inputProps:t,tooltipStyle:n,value:a,isOpen:s,embedded:h,dateFormat:p="yyyy-MM-dd",focused:g,openOnFocus:m=true,inputRef:y,shouldSaveFromKey:S=T,tableBehavior:k,onUpdate:j,onSelect:E}){let _=(0,o.useMemo)(()=>{if(a){let e=(0,c.Z)(a);if((0,f.Z)(e)){return(0,u.Z)(e,p)}}return""},[a,p]);let I=(0,o.useRef)(null);let[M,D]=(0,o.useState)(_);let[P,O]=(0,o.useState)(h||s||false);let A=(0,o.useRef)(null);(0,o.useLayoutEffect)(()=>{if(y){y.current=A.current}},[]);let[R,Z]=(0,o.useState)(M);let z=(0,o.useRef)(R);const N=(0,i.v9)(e=>e.prefs.local?.firstDayOfWeekIdx?e.prefs.local.firstDayOfWeekIdx:"0");(0,o.useEffect)(()=>{z.current=M},[M]);(0,o.useEffect)(()=>D(_),[_]);(0,o.useEffect)(()=>{if((0,v.Ze)(p).test(M)){let e=(0,l.Z)(M,(0,v.D1)(p),new Date);if((0,f.Z)(e)){j?.((0,u.Z)(e,"yyyy-MM-dd"));Z((0,u.Z)(e,p))}}else if((0,v._y)(p).test(M)){let e=(0,l.Z)(M,(0,v.JC)(p),new Date);if((0,f.Z)(e)){j?.((0,u.Z)(e,"yyyy-MM-dd"));Z((0,u.Z)(e,p))}}else{let e=(0,l.Z)(M,p,new Date);if((0,f.Z)(e)){let t=(0,u.Z)(e,"yyyy-MM-dd");j?.(t);Z(M)}}},[M]);function L(e){if(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(e.key)&&!e.shiftKey&&!e.metaKey&&!e.altKey&&P){I.current.handleInputKeyDown(e)}else if(e.key==="Escape"){D(_);Z(_);if(_===M){if(P){if(!h){e.stopPropagation()}O(false)}}else{O(true);j?.(a)}}else if(S(e)){D(R);O(false);let n=(0,l.Z)(R,p,new Date);E((0,u.Z)(n,"yyyy-MM-dd"));if(P&&e.key==="Enter"){e.stopPropagation();e.preventDefault()}let{onKeyDown:r}=t||{};r?.(e)}else if(!P){O(true);if(A.current){A.current.setSelectionRange(0,1e4)}}}function B(e){D(e.target.value)}let H=e=>{return h?e:(0,r.jsx)(b.u,{position:"bottom-left",offset:2,style:{padding:0,minWidth:225,...n},"data-testid":"date-select-tooltip",children:e})};return(0,r.jsxs)(x.Z,{...e,children:[(0,r.jsx)(w.ZP,{focused:g,...t,inputRef:A,value:M,onPointerUp:e=>{if(!h){O(true)}},onKeyDown:L,onChange:B,onFocus:e=>{if(!h&&m){O(true)}t?.onFocus?.(e)},onBlur:e=>{if(!h){O(false)}t?.onBlur?.(e);if(!k){if(M===""){Z(null);E(null)}else{D(R||"");let e=(0,l.Z)(R,p,new Date);if(e instanceof Date&&!isNaN(e.valueOf())){E((0,u.Z)(e,"yyyy-MM-dd"))}}}}}),P&&H((0,r.jsx)(C,{ref:I,value:R,firstDayOfWeekIdx:N,dateFormat:p,onUpdate:e=>{Z((0,u.Z)(e,p));j?.((0,u.Z)(e,"yyyy-MM-dd"))},onSelect:e=>{D((0,u.Z)(e,p));E((0,u.Z)(e,"yyyy-MM-dd"));O(false)}}))]})}},14644:function(e,t,n){"use strict";n.d(t,{Z:function(){return Z}});var r=n(43188);var o=n(66204);var i=n(37496);var a=n(84094);var s=n(73416);var l=n(11504);var u=n(19450);var c=n(29325);var f=n(45492);var h=n(56816);var p=n(383);var g=n(78628);var v=n(84196);var m=n(77644);var y=n(24307);var w=n(10730);var x=n(63541);var b=n(37998);const S=5;const k=[{id:"daily",name:"Days"},{id:"weekly",name:"Weeks"},{id:"monthly",name:"Months"},{id:"yearly",name:"Years"}];const j=[...Array(31).keys()].map(e=>e+1);const C=[{id:"SU",name:"Sunday"},{id:"MO",name:"Monday"},{id:"TU",name:"Tuesday"},{id:"WE",name:"Wednesday"},{id:"TH",name:"Thursday"},{id:"FR",name:"Friday"},{id:"SA",name:"Saturday"}];function T(e){if(e==="last"){return-1}return Number(e)}function E(e){return e||{start:s.PR(),interval:1,frequency:"monthly",patterns:[I(s.PR())],skipWeekend:false,weekendSolveMode:"before"}}function _(e){return{...e,interval:O(e.interval)}}function I(e){return{value:parseInt(s.WU(e,"d")),type:"day"}}function M({field:e,value:t,recurrence:n}){if(e==="value"&&n.type!=="day"&&t>S||e==="type"&&t!=="day"&&n.value>S){return{[e]:t,value:S}}return{[e]:t}}function D(e,t){switch(t.type){case"replace-config":return{...e,config:t.config};case"change-field":return{...e,config:{...e.config,[t.field]:t.value,patterns:e.config.frequency!=="monthly"?[]:e.config.patterns}};case"update-recurrence":return{...e,config:{...e.config,patterns:e.config.patterns.map(e=>e===t.recurrence?{...t.recurrence,...M(t)}:e)}};case"add-recurrence":return{...e,config:{...e.config,patterns:[...e.config.patterns||[],I(e.config.start)]}};case"remove-recurrence":return{...e,config:{...e.config,patterns:e.config.patterns.filter(e=>e!==t.recurrence)}};case"set-skip-weekend":return{...e,config:{...e.config,skipWeekend:t.skipWeekend}};case"set-weekend-solve":return{...e,config:{...e.config,weekendSolveMode:t.value}};default:return e}}function P({previewDates:e}){const t=(0,i.v9)(e=>(e.prefs.local.dateFormat||"MM/dd/yyyy").replace("MM","M").replace("dd","d"));if(!e){return null}let n=null;if(typeof e==="string"){n=(0,r.jsx)(m.Z,{children:e})}else{n=(0,r.jsxs)(y.Z,{children:[(0,r.jsx)(m.Z,{style:{fontWeight:600},children:"Upcoming dates"}),(0,r.jsx)(v.Z,{direction:"row",spacing:4,style:{marginTop:10},children:e.map((e,n)=>(0,r.jsxs)(y.Z,{children:[(0,r.jsx)(m.Z,{children:s.WU(e,t)}),(0,r.jsx)(m.Z,{children:s.WU(e,"EEEE")})]},n))})]})}return(0,r.jsx)(v.Z,{direction:"column",spacing:1,style:{marginTop:15,color:f.rS.tableText},children:n})}function O(e){const t=parseInt(e);return Number.isInteger(t)&&t>0?t:1}function A({config:e,dispatch:t}){let n=(e,n,r)=>t({type:"update-recurrence",recurrence:e,field:n,value:r});return(0,r.jsx)(v.Z,{spacing:2,style:{marginTop:10},children:e.patterns.map((e,o)=>(0,r.jsxs)(y.Z,{style:{display:"flex",flexDirection:"row"},children:[(0,r.jsx)(g.Z,{options:[[-1,"Last"],["-","---"],...j.map(e=>[e,e])],value:e.value,onChange:t=>n(e,"value",T(t)),disabledKeys:["-"],wrapperStyle:{flex:1,marginRight:10},style:{minHeight:"1px",width:"100%"}}),(0,r.jsx)(g.Z,{options:[["day","Day"],["-","---"],...C.map(e=>[e.id,e.name])],value:e.type,onChange:t=>n(e,"type",t),disabledKeys:["-"],wrapperStyle:{flex:1,marginRight:10},style:{minHeight:"1px",width:"100%"}}),(0,r.jsx)(h.Z,{type:"bare",style:{padding:7},onClick:()=>t({type:"remove-recurrence",recurrence:e}),children:(0,r.jsx)(c.Z,{style:{width:8,height:8}})}),(0,r.jsx)(h.Z,{type:"bare",style:{padding:7,marginLeft:5},onClick:()=>t({type:"add-recurrence"}),children:(0,r.jsx)(u.Z,{style:{width:10,height:10}})})]},o))})}function R({config:e,onClose:t,onSave:n}){let[s,l]=(0,o.useState)(null);let[u,c]=(0,o.useReducer)(D,{config:E(e)});let S=u.config.hasOwnProperty("skipWeekend")?u.config.skipWeekend:false;let j=(0,i.v9)(e=>e.prefs.local.dateFormat||"MM/dd/yyyy");(0,o.useEffect)(()=>{c({type:"replace-config",config:E(e)})},[e]);let{config:C}=u;let T=(e,t)=>c({type:"change-field",field:e,value:t});(0,o.useEffect)(()=>{async function e(){let{data:e,error:t}=await (0,a.OK)("schedule/get-upcoming-dates",{config:_(C),count:4});l(t?"Invalid rule":e)}e()},[C]);if(s==null){return null}return(0,r.jsxs)(x.u,{style:{padding:10,width:380},offset:1,position:"bottom-left",onClose:t,children:[(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,r.jsx)("label",{htmlFor:"start",style:{marginRight:5},children:"Starts:"}),(0,r.jsx)(b.Z,{id:"start",inputProps:{placeholder:"Start Date"},value:C.start,onSelect:e=>T("start",e),containerProps:{style:{width:100}},dateFormat:j})]}),(0,r.jsxs)(v.Z,{direction:"row",align:"center",justify:"flex-start",style:{marginTop:10},spacing:2,children:[(0,r.jsx)(m.Z,{style:{whiteSpace:"nowrap"},children:"Repeat every"}),(0,r.jsx)(p.ZP,{id:"interval",style:{width:40},type:"text",onBlur:e=>T("interval",e.target.value),onEnter:e=>T("interval",e.target.value),defaultValue:C.interval||1}),(0,r.jsx)(g.Z,{bare:true,options:k.map(e=>[e.id,e.name]),value:C.frequency,onChange:e=>T("frequency",e),style:{border:"1px solid "+f.rS.formInputBorder,height:27.5}}),C.frequency==="monthly"&&(C.patterns==null||C.patterns.length===0)?(0,r.jsx)(h.Z,{style:{backgroundColor:f.rS.tableBackground,":hover":{backgroundColor:f.rS.tableBackground}},onClick:()=>c({type:"add-recurrence"}),children:"Add specific days"}):null]}),C.frequency==="monthly"&&C.patterns&&C.patterns.length>0&&(0,r.jsx)(A,{config:C,dispatch:c}),(0,r.jsx)(v.Z,{direction:"column",style:{marginTop:5},children:(0,r.jsxs)(y.Z,{style:{marginTop:5,flex:1,flexDirection:"row",alignItems:"center",userSelect:"none"},children:[(0,r.jsx)(w.XZ,{id:"form_skipwe",checked:S,onChange:e=>{c({type:"set-skip-weekend",skipWeekend:e.target.checked})}}),(0,r.jsxs)("label",{htmlFor:"form_skipwe",style:{userSelect:"none",marginRight:5},children:["Move schedule"," "]}),(0,r.jsx)(g.Z,{id:"solve_dropdown",options:[["before","before"],["after","after"]],value:u.config.weekendSolveMode,onChange:e=>c({type:"set-weekend-solve",value:e}),style:{minHeight:"1px",width:"5rem"}}),(0,r.jsxs)("label",{htmlFor:"solve_dropdown",style:{userSelect:"none",marginLeft:5},children:[" ","weekend"]})]})}),(0,r.jsx)(P,{previewDates:s}),(0,r.jsxs)("div",{style:{display:"flex",marginTop:15,justifyContent:"flex-end"},children:[(0,r.jsx)(h.Z,{onClick:t,children:"Cancel"}),(0,r.jsx)(h.Z,{type:"primary",onClick:()=>n(_(C)),style:{marginLeft:10},children:"Apply"})]})]})}function Z({value:e,buttonStyle:t,onChange:n}){let{isOpen:o,close:i,getOpenEvents:a}=(0,x.lL)();function s(e){n(e);i()}return(0,r.jsxs)(y.Z,{children:[(0,r.jsx)(h.Z,{...a(),style:{textAlign:"left",...t},children:e?(0,l.o7)(e):"No recurring date"}),o&&(0,r.jsx)(R,{config:e,onClose:i,onSave:s})]})}},84367:function(e,t,n){"use strict";n.d(t,{Hn:function(){return ed},ZP:function(){return ep},Ap:function(){return ef}});var r=n(43188);var o=n(66204);var i=n(37496);var a=n(76074);var s=n(24307);var l=n(67238);var u=n(96424);var c=n(78800);var f=n(48880);var h=n(45492);var p=n(74684);var g=n(99818);var v=n(30715);var m=n(99147);var y=n(35562);var w=n(52582);const x={marginTop:-2,marginBottom:2,paddingTop:4,paddingBottom:4,paddingRight:15,paddingLeft:10,textDecoration:"none",color:h.rS.sidebarItemText,":hover":{backgroundColor:h.rS.sidebarItemBackgroundHover},...h.W2.smallText};function b({name:e,account:t,connected:n,failed:o,updated:i,to:a,query:l,style:u,outerStyle:c,onDragChange:f,onDrop:p}){let b=t?t.closed?"account-closed":t.offbudget?"account-offbudget":"account-onbudget":"title";let{dragRef:S}=(0,y.O1)({type:b,onDragChange:f,item:{id:t&&t.id},canDrag:t!=null});let{dropRef:k,dropPos:j}=(0,y.Zj)({types:t?[b]:[],id:t&&t.id,onDrop:p});return(0,r.jsx)(s.Z,{innerRef:k,style:{flexShrink:0,...c},children:(0,r.jsxs)(s.Z,{children:[(0,r.jsx)(y.OJ,{pos:j}),(0,r.jsx)(s.Z,{innerRef:S,children:(0,r.jsxs)(m.Z,{to:a,style:{...x,...u,position:"relative",borderLeft:"4px solid transparent",...i&&{fontWeight:700}},activeStyle:{borderColor:h.rS.sidebarItemAccentSelected,color:h.rS.sidebarItemTextSelected,fontWeight:u&&u.fontWeight||"normal","& .dot":{backgroundColor:h.rS.sidebarItemAccentSelected,transform:"translateX(-4.5px)"}},children:[(0,r.jsx)(s.Z,{style:{position:"absolute",left:0,top:0,bottom:0,flexDirection:"row",alignItems:"center"},children:(0,r.jsx)("div",{className:`dot ${(0,g.iv)({marginRight:3,width:5,height:5,borderRadius:5,backgroundColor:o?h.rS.sidebarItemBackgroundFailed:h.rS.sidebarItemBackgroundPositive,marginLeft:2,transition:"transform .3s",opacity:n?1:0})}`})}),(0,r.jsx)(v.Z,{left:e,right:(0,r.jsx)(w.Z,{binding:l,type:"financial"})})]})})]})})}var S=b;var k=n(24924);function j({style:e,to:t,onClick:n,activeStyle:o,forceActive:i,children:a}){return n?(0,r.jsx)(s.Z,{role:"button",tabIndex:0,style:{...e,touchAction:"auto",userSelect:"none",userDrag:"none",cursor:"pointer",...i?o:{}},onClick:n,children:a}):(0,r.jsx)(m.Z,{to:t,style:e,activeStyle:o,children:a})}var C=j;const T=600;function E({Icon:e,title:t,style:n,to:o,onClick:i,bold:a,indent:l=0}){const u=(0,r.jsxs)(s.Z,{style:{flexDirection:"row",alignItems:"center",height:16},children:[e&&(0,r.jsx)(e,{width:12,height:12}),(0,r.jsx)(k.Z,{style:{marginLeft:e?8:0,color:"inherit"},children:t})]});return(0,r.jsx)(s.Z,{style:{flexShrink:0,...n},children:(0,r.jsx)(C,{style:{...x,color:h.rS.sidebarItemText,paddingLeft:14+l,fontWeight:a?T:null,":hover":{backgroundColor:h.rS.sidebarItemBackgroundHover}},to:o,onClick:i,activeStyle:{borderLeft:"4px solid "+h.rS.sidebarItemTextSelected,paddingLeft:14-4+l,color:h.rS.sidebarItemTextSelected,fontWeight:a?T:null},children:u})})}var _=E;const I=600;function M({accounts:e,failedAccounts:t,updatedAccounts:n,getAccountPath:i,allAccountsPath:a,budgetedAccountPath:l,offBudgetAccountPath:u,getBalanceQuery:c,getAllAccountBalance:f,getOnBudgetBalance:h,getOffBudgetBalance:g,showClosedAccounts:v,onAddAccount:m,onToggleClosedAccounts:y,onReorder:w}){let[x,b]=(0,o.useState)(false);let k=(0,o.useMemo)(()=>e.filter(e=>e.closed===0&&e.offbudget===1),[e]);let j=(0,o.useMemo)(()=>e.filter(e=>e.closed===0&&e.offbudget===0),[e]);let C=(0,o.useMemo)(()=>e.filter(e=>e.closed===1),[e]);function T(e){b(e.state==="start")}let E=(e,t)=>{if(e===0){return{paddingTop:x?15:0,marginTop:x?-15:0}}return null};return(0,r.jsxs)(s.Z,{children:[(0,r.jsx)(S,{name:"All accounts",to:a,query:f(),style:{fontWeight:I,marginTop:15}}),j.length>0&&(0,r.jsx)(S,{name:"For budget",to:l,query:h(),style:{fontWeight:I,marginTop:13}}),j.map((e,o)=>(0,r.jsx)(S,{name:e.name,account:e,connected:!!e.bank,failed:t&&t.has(e.id),updated:n&&n.includes(e.id),to:i(e),query:c(e),onDragChange:T,onDrop:w,outerStyle:E(o,j.length)},e.id)),k.length>0&&(0,r.jsx)(S,{name:"Off budget",to:u,query:g(),style:{fontWeight:I,marginTop:13}}),k.map((e,o)=>(0,r.jsx)(S,{name:e.name,account:e,connected:!!e.bank,failed:t&&t.has(e.id),updated:n&&n.includes(e.id),to:i(e),query:c(e),onDragChange:T,onDrop:w,outerStyle:E(o,k.length)},e.id)),C.length>0&&(0,r.jsx)(_,{style:{marginTop:15},title:"Closed accounts"+(v?"":"..."),onClick:y,bold:true}),v&&C.map((e,t)=>(0,r.jsx)(S,{name:e.name,account:e,to:i(e),query:c(e),onDragChange:T,onDrop:w},e.id)),(0,r.jsx)(_,{style:{marginTop:15,marginBottom:9},onClick:m,Icon:p.Z,title:"Add account"})]})}var D=M;function P({children:e,Icon:t,title:n,style:o,to:i,onClick:a,indent:l=0,forceHover:u=false,forceActive:c=false}){const f={backgroundColor:h.rS.sidebarItemBackgroundHover};const p=(0,r.jsxs)(s.Z,{style:{flexDirection:"row",alignItems:"center",height:20},children:[(0,r.jsx)(t,{width:15,height:15}),(0,r.jsx)(k.Z,{style:{marginLeft:8},children:n}),(0,r.jsx)(s.Z,{style:{flex:1}})]});return(0,r.jsxs)(s.Z,{style:{flexShrink:0,...o},children:[(0,r.jsx)(C,{style:{...h.W2.mediumText,paddingTop:9,paddingBottom:9,paddingLeft:19+l,paddingRight:10,textDecoration:"none",color:h.rS.sidebarItemText,...u?f:{},":hover":f},to:i,onClick:a,activeStyle:{borderLeft:"4px solid "+h.rS.sidebarItemTextSelected,paddingLeft:19+l-4,color:h.rS.sidebarItemTextSelected},forceActive:c,children:p}),e?(0,r.jsx)(s.Z,{style:{marginTop:5},children:e}):null]})}var O=P;var A=n(58534);var R=n(93641);var Z=n(56816);function z({style:e,isFloating:t,onFloat:n}){return(0,r.jsx)(s.Z,{className:"float",style:{...e,flexShrink:0},children:(0,r.jsx)(Z.Z,{type:"bare",onClick:n,color:h.rS.buttonMenuBorder,children:t?(0,r.jsx)(A.Z,{style:{margin:-2,width:15,height:15,transform:"rotate(45deg)"}}):(0,r.jsx)(R.Z,{style:{width:13,height:13}})})})}var N=z;var L=n(59379);var B=n(85025);var H=n(48164);var F=n(52506);var V=n(7122);var W=n(7056);function U(){let[e,t]=(0,o.useState)(false);let n=(0,o.useCallback)(()=>t(e=>!e),[]);let i=(0,L.TH)();const a=["/payees","/rules","/settings","/tools"].some(e=>i.pathname.startsWith(e));(0,o.useEffect)(()=>{if(a){t(true)}},[i.pathname]);return(0,r.jsxs)(s.Z,{style:{flexShrink:0},children:[(0,r.jsx)(O,{title:"More",Icon:e?B.Z:H.Z,onClick:n,style:{marginBottom:e?8:0},forceActive:!e&&a}),e&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(_,{title:"Payees",Icon:V.Z,to:"/payees",indent:15}),(0,r.jsx)(_,{title:"Rules",Icon:W.Z,to:"/rules",indent:15}),(0,r.jsx)(_,{title:"Settings",Icon:F.Z,to:"/settings",indent:15})]})]})}var K=U;const $=240;function q({style:e,budgetName:t,accounts:n,failedAccounts:o,updatedAccounts:i,getBalanceQuery:a,getAllAccountBalance:p,getOnBudgetBalance:g,getOffBudgetBalance:v,showClosedAccounts:m,isFloating:y,onFloat:w,onAddAccount:x,onToggleClosedAccounts:b,onReorder:S}){let k=!l.jU&&l.OS==="mac";const j=ef();return(0,r.jsxs)(s.Z,{style:{width:$,color:h.rS.sidebarItemText,backgroundColor:h.rS.sidebarBackground,"& .float":{opacity:y?1:0,transition:"opacity .25s, width .25s",width:k||y?null:0},"&:hover .float":{opacity:1,width:k?null:"auto"},...e},children:[(0,r.jsxs)(s.Z,{style:{paddingTop:35,height:30,flexDirection:"row",alignItems:"center",margin:"0 8px 23px 20px",transition:"padding .4s",...k&&{paddingTop:20,justifyContent:"flex-start"}},children:[t,(0,r.jsx)(s.Z,{style:{flex:1,flexDirection:"row"}}),!j.alwaysFloats&&(0,r.jsx)(N,{isFloating:y,onFloat:w})]}),(0,r.jsxs)(s.Z,{style:{overflow:"auto"},children:[(0,r.jsx)(O,{title:"Budget",Icon:c.Z,to:"/budget"}),(0,r.jsx)(O,{title:"Reports",Icon:u.Z,to:"/reports"}),(0,r.jsx)(O,{title:"Schedules",Icon:f.Z,to:"/schedules"}),(0,r.jsx)(K,{}),(0,r.jsx)(s.Z,{style:{height:1,backgroundColor:h.rS.sidebarItemBackgroundHover,marginTop:15,flexShrink:0}}),(0,r.jsx)(D,{accounts:n,failedAccounts:o,updatedAccounts:i,getAccountPath:e=>`/accounts/${e.id}`,allAccountsPath:"/accounts",budgetedAccountPath:"/accounts/budgeted",offBudgetAccountPath:"/accounts/offbudget",getBalanceQuery:a,getAllAccountBalance:p,getOnBudgetBalance:g,getOffBudgetBalance:v,showClosedAccounts:m,onAddAccount:x,onToggleClosedAccounts:b,onReorder:S})]})]})}var Y=q;var G=n(99103);var X=n(46055);var Q=n(84094);var J=n(1447);var ee=n(24868);var et=n(67459);var en=n(91871);var er=n(383);var eo=n(31941);var ei=n(77644);var ea=n(63541);function es({prefs:e,savePrefs:t}){let n=(0,i.I0)();let a=(0,ee.Z)();const[s,u]=(0,o.useState)(false);const[c,f]=(0,o.useState)(false);function p(e){f(false);switch(e){case"rename":u(true);break;case"settings":a("/settings");break;case"help":window.open("https://actualbudget.org/docs/","_blank");break;case"close":n((0,G.ej)());break;default:}}let g=[{name:"rename",text:"Rename budget"},{name:"settings",text:"Settings"},...l.jU?[{name:"help",text:"Help"}]:[],{name:"close",text:"Close file"}];if(s){return(0,r.jsx)(en.Z,{children:(0,r.jsx)(er.ZP,{style:{width:160,fontSize:16,fontWeight:500},defaultValue:e.budgetName,onEnter:async e=>{const n=e.target;const r=n.value;if(r.trim()!==""){await t({budgetName:n.value});u(false)}},onBlur:()=>u(false)})})}else{return(0,r.jsxs)(Z.Z,{type:"bare",color:h.rS.buttonNormalBorder,style:{fontSize:16,fontWeight:500,marginLeft:-5,flex:"0 auto"},onClick:()=>f(true),children:[(0,r.jsx)(ei.Z,{style:{whiteSpace:"nowrap",overflow:"hidden"},children:e.budgetName||"A budget has no name"}),(0,r.jsx)(et.Z,{width:7,height:7,style:{marginLeft:5}}),c&&(0,r.jsx)(ea.u,{position:"bottom-left",style:{padding:0},onClose:()=>f(false),children:(0,r.jsx)(eo.Z,{onMenuSelect:p,items:g})})]})}}function el(){let e=(0,i.v9)(e=>e.queries.accounts);let t=(0,i.v9)(e=>e.account.failedAccounts);let n=(0,i.v9)(e=>e.queries.updatedAccounts);let a=(0,i.v9)(e=>e.prefs.local);let s=(0,i.v9)(e=>e.prefs.global.floatingSidebar);let{getAccounts:l,replaceModal:u,savePrefs:c,saveGlobalPrefs:f}=(0,J.o)();(0,o.useEffect)(()=>void l(),[l]);async function p(t,n,r){if(n==="bottom"){let t=e.findIndex(e=>e.id===r)+1;r=t<e.length?e[t].id:null}await (0,Q.lW)("account-move",{id:t,targetId:r});await l()}return(0,r.jsx)(Y,{budgetName:(0,r.jsx)(es,{prefs:a,savePrefs:c}),isFloating:s,accounts:e,failedAccounts:t,updatedAccounts:n,getBalanceQuery:X.cW,getAllAccountBalance:X.Gm,getOnBudgetBalance:X.SZ,getOffBudgetBalance:X.An,onFloat:()=>f({floatingSidebar:!s}),onReorder:p,onAddAccount:()=>u("add-account"),showClosedAccounts:a["ui.showClosedAccounts"],onToggleClosedAccounts:()=>c({"ui.showClosedAccounts":!a["ui.showClosedAccounts"]}),style:{flex:1,...h.W2.darkScrollbar}})}var eu=el;const ec=(0,o.createContext)(null);function ed({children:e}){let t=(0,i.v9)(e=>e.prefs.global.floatingSidebar);let[n,s]=(0,o.useState)(true);let{width:l}=(0,a.F)();let u=l<668;let c=t||u;return(0,r.jsx)(ec.Provider,{value:{hidden:n,setHidden:s,floating:c,alwaysFloats:u},children:e})}function ef(){let{hidden:e,setHidden:t,floating:n,alwaysFloats:r}=(0,o.useContext)(ec);return(0,o.useMemo)(()=>({hidden:e,setHidden:t,floating:n,alwaysFloats:r}),[e,t,n,r])}function eh(){let e=(0,i.v9)(e=>e.prefs.global.floatingSidebar);let t=ef();let{isNarrowWidth:n}=(0,a.F)();let o=e||t.alwaysFloats;return n?null:(0,r.jsx)(s.Z,{onMouseOver:o?e=>{e.stopPropagation();t.setHidden(false)}:null,onMouseLeave:o?()=>t.setHidden(true):null,style:{position:o?"absolute":null,top:12,bottom:o?12:-50,zIndex:1001,borderRadius:o?"0 6px 6px 0":0,overflow:"hidden",boxShadow:!o||t.hidden?"none":"0 15px 30px 0 rgba(0,0,0,0.25), 0 3px 15px 0 rgba(0,0,0,.5)",transform:`translateY(${!o?-12:0}px)
186
- translateX(${o&&t.hidden?-$:0}px)`,transition:"transform .5s, box-shadow .5s, border-radius .5s, bottom .5s"},children:(0,r.jsx)(eu,{})})}var ep=eh},35562:function(e,t,n){"use strict";n.d(t,{OJ:function(){return ee},aB:function(){return J},O1:function(){return X},Zj:function(){return Q}});var r=n(43188);var o=n(66204);var i=n(21251);var a=n(28926);const s=typeof window!=="undefined"?o.useLayoutEffect:o.useEffect;function l(e,t,n){const[r,i]=(0,o.useState)(()=>t(e));const l=(0,o.useCallback)(()=>{const o=t(e);if(!a(r,o)){i(o);if(n){n()}}},[r,e,n]);s(l);return[r,l]};function u(e,t,n){const[r,o]=l(e,t,n);s(function t(){const t=e.getHandlerId();if(t==null){return}return e.subscribeToStateChange(o,{handlerIds:[t]})},[e,o]);return r};function c(e,t,n){return u(t,e||(()=>({})),()=>n.reconnect())};function f(e,t){const n=[...t||[]];if(t==null&&typeof e!=="function"){n.push(e)}return(0,o.useMemo)(()=>{return typeof e==="function"?e():e},n)};function h(e){return(0,o.useMemo)(()=>e.hooks.dragSource(),[e])}function p(e){return(0,o.useMemo)(()=>e.hooks.dragPreview(),[e])};function g(e,t,n,r){let o=n?n.call(r,e,t):void 0;if(o!==void 0){return!!o}if(e===t){return true}if(typeof e!=="object"||!e||typeof t!=="object"||!t){return false}const i=Object.keys(e);const a=Object.keys(t);if(i.length!==a.length){return false}const s=Object.prototype.hasOwnProperty.bind(t);for(let a=0;a<i.length;a++){const l=i[a];if(!s(l)){return false}const u=e[l];const c=t[l];o=n?n.call(r,u,c,l):void 0;if(o===false||o===void 0&&u!==c){return false}}return true};function v(e){return e!==null&&typeof e==="object"&&Object.prototype.hasOwnProperty.call(e,"current")};function m(e){if(typeof e.type==="string"){return}const t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+`You can either wrap ${t} into a <div>, or turn it into a `+"drag source or a drop target itself.")}function y(e){return(t=null,n=null)=>{if(!(0,o.isValidElement)(t)){const r=t;e(r,n);return r}const r=t;m(r);const i=n?t=>e(t,n):e;return b(r,i)}}function w(e){const t={};Object.keys(e).forEach(n=>{const r=e[n];if(n.endsWith("Ref")){t[n]=e[n]}else{const e=y(r);t[n]=()=>e}});return t}function x(e,t){if(typeof e==="function"){e(t)}else{e.current=t}}function b(e,t){const n=e.ref;(0,i.k)(typeof n!=="string","Cannot connect React DnD to an element with an existing string ref. "+"Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. "+"Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs");if(!n){return(0,o.cloneElement)(e,{ref:t})}else{return(0,o.cloneElement)(e,{ref:e=>{x(n,e);x(t,e)}})}};class S{receiveHandlerId(e){if(this.handlerId===e){return}this.handlerId=e;this.reconnect()}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource;const t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();if(t){this.disconnectDragSource()}if(!this.handlerId){return t}if(!e){this.lastConnectedDragSource=e;return t}if(t){this.lastConnectedHandlerId=this.handlerId;this.lastConnectedDragSource=e;this.lastConnectedDragSourceOptions=this.dragSourceOptions;this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)}return t}reconnectDragPreview(e=false){const t=this.dragPreview;const n=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(n){this.disconnectDragPreview()}if(!this.handlerId){return}if(!t){this.lastConnectedDragPreview=t;return}if(n){this.lastConnectedHandlerId=this.handlerId;this.lastConnectedDragPreview=t;this.lastConnectedDragPreviewOptions=this.dragPreviewOptions;this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!g(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!g(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){if(this.dragSourceUnsubscribe){this.dragSourceUnsubscribe();this.dragSourceUnsubscribe=undefined}}disconnectDragPreview(){if(this.dragPreviewUnsubscribe){this.dragPreviewUnsubscribe();this.dragPreviewUnsubscribe=undefined;this.dragPreviewNode=null;this.dragPreviewRef=null}}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null;this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null;this.dragPreviewRef=null}constructor(e){this.hooks=w({dragSource:(e,t)=>{this.clearDragSource();this.dragSourceOptions=t||null;if(v(e)){this.dragSourceRef=e}else{this.dragSourceNode=e}this.reconnectDragSource()},dragPreview:(e,t)=>{this.clearDragPreview();this.dragPreviewOptions=t||null;if(v(e)){this.dragPreviewRef=e}else{this.dragPreviewNode=e}this.reconnectDragPreview()}});this.handlerId=null;this.dragSourceRef=null;this.dragSourceOptionsInternal=null;this.dragPreviewRef=null;this.dragPreviewOptionsInternal=null;this.lastConnectedHandlerId=null;this.lastConnectedDragSource=null;this.lastConnectedDragSourceOptions=null;this.lastConnectedDragPreview=null;this.lastConnectedDragPreviewOptions=null;this.backend=e}}var k=n(13577);function j(){const{dragDropManager:e}=(0,o.useContext)(k.L);(0,i.k)(e!=null,"Expected drag drop context");return e};function C(e,t){const n=j();const r=(0,o.useMemo)(()=>new S(n.getBackend()),[n]);s(()=>{r.dragSourceOptions=e||null;r.reconnect();return()=>r.disconnectDragSource()},[r,e]);s(()=>{r.dragPreviewOptions=t||null;r.reconnect();return()=>r.disconnectDragPreview()},[r,t]);return r};let T=false;let E=false;class _{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){(0,i.k)(!T,"You may not call monitor.canDrag() inside your canDrag() implementation. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{T=true;return this.internalMonitor.canDragSource(this.sourceId)}finally{T=false}}isDragging(){if(!this.sourceId){return false}(0,i.k)(!E,"You may not call monitor.isDragging() inside your isDragging() implementation. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{E=true;return this.internalMonitor.isDraggingSource(this.sourceId)}finally{E=false}}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,t){return this.internalMonitor.isOverTarget(e,t)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null;this.internalMonitor=e.getMonitor()}};function I(){const e=j();return(0,o.useMemo)(()=>new _(e),[e])};function M(e,t,n){const r=n.getRegistry();const o=r.addTarget(e,t);return[o,()=>r.removeTarget(o)]}function D(e,t,n){const r=n.getRegistry();const o=r.addSource(e,t);return[o,()=>r.removeSource(o)]};class P{beginDrag(){const e=this.spec;const t=this.monitor;let n=null;if(typeof e.item==="object"){n=e.item}else if(typeof e.item==="function"){n=e.item(t)}else{n={}}return n!==null&&n!==void 0?n:null}canDrag(){const e=this.spec;const t=this.monitor;if(typeof e.canDrag==="boolean"){return e.canDrag}else if(typeof e.canDrag==="function"){return e.canDrag(t)}else{return true}}isDragging(e,t){const n=this.spec;const r=this.monitor;const{isDragging:o}=n;return o?o(r):t===e.getSourceId()}endDrag(){const e=this.spec;const t=this.monitor;const n=this.connector;const{end:r}=e;if(r){r(t.getItem(),t)}n.reconnect()}constructor(e,t,n){this.spec=e;this.monitor=t;this.connector=n}};function O(e,t,n){const r=(0,o.useMemo)(()=>new P(e,t,n),[t,n]);(0,o.useEffect)(()=>{r.spec=e},[e]);return r};function A(e){return(0,o.useMemo)(()=>{const t=e.type;(0,i.k)(t!=null,"spec.type must be defined");return t},[e])};function R(e,t,n){const r=j();const o=O(e,t,n);const i=A(e);s(function e(){if(i!=null){const[e,a]=D(i,o,r);t.receiveHandlerId(e);n.receiveHandlerId(e);return a}return},[r,t,n,o,i])};function Z(e,t){const n=f(e,t);(0,i.k)(!n.begin,`useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)`);const r=I();const o=C(n.options,n.previewOptions);R(n,r,o);return[c(n.collect,r,o),h(o),p(o)]};function z(e){return(0,o.useMemo)(()=>e.hooks.dropTarget(),[e])};class N{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();if(e){this.disconnectDropTarget()}const t=this.dropTarget;if(!this.handlerId){return}if(!t){this.lastConnectedDropTarget=t;return}if(e){this.lastConnectedHandlerId=this.handlerId;this.lastConnectedDropTarget=t;this.lastConnectedDropTargetOptions=this.dropTargetOptions;this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)}}receiveHandlerId(e){if(e===this.handlerId){return}this.handlerId=e;this.reconnect()}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!g(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){if(this.unsubscribeDropTarget){this.unsubscribeDropTarget();this.unsubscribeDropTarget=undefined}}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null;this.dropTargetNode=null}constructor(e){this.hooks=w({dropTarget:(e,t)=>{this.clearDropTarget();this.dropTargetOptions=t;if(v(e)){this.dropTargetRef=e}else{this.dropTargetNode=e}this.reconnect()}});this.handlerId=null;this.dropTargetRef=null;this.dropTargetOptionsInternal=null;this.lastConnectedHandlerId=null;this.lastConnectedDropTarget=null;this.lastConnectedDropTargetOptions=null;this.backend=e}};function L(e){const t=j();const n=(0,o.useMemo)(()=>new N(t.getBackend()),[t]);s(()=>{n.dropTargetOptions=e||null;n.reconnect();return()=>n.disconnectDropTarget()},[e]);return n};let B=false;class H{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId){return false}(0,i.k)(!B,"You may not call monitor.canDrop() inside your canDrop() implementation. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{B=true;return this.internalMonitor.canDropOnTarget(this.targetId)}finally{B=false}}isOver(e){if(!this.targetId){return false}return this.internalMonitor.isOverTarget(this.targetId,e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null;this.internalMonitor=e.getMonitor()}};function F(){const e=j();return(0,o.useMemo)(()=>new H(e),[e])};function V(e){const{accept:t}=e;return(0,o.useMemo)(()=>{(0,i.k)(e.accept!=null,"accept must be defined");return Array.isArray(t)?t:[t]},[t])};class W{canDrop(){const e=this.spec;const t=this.monitor;return e.canDrop?e.canDrop(t.getItem(),t):true}hover(){const e=this.spec;const t=this.monitor;if(e.hover){e.hover(t.getItem(),t)}}drop(){const e=this.spec;const t=this.monitor;if(e.drop){return e.drop(t.getItem(),t)}return}constructor(e,t){this.spec=e;this.monitor=t}};function U(e,t){const n=(0,o.useMemo)(()=>new W(e,t),[t]);(0,o.useEffect)(()=>{n.spec=e},[e]);return n};function K(e,t,n){const r=j();const o=U(e,t);const i=V(e);s(function e(){const[e,a]=M(i,o,r);t.receiveHandlerId(e);n.receiveHandlerId(e);return a},[r,t,o,n,i.map(e=>e.toString()).join("|")])};function $(e,t){const n=f(e,t);const r=F();const o=L(n.options);K(n,r,o);return[c(n.collect,r,o),z(o)]}var q=n(15685);var Y=n(45492);var G=n(24307);function X({item:e,type:t,canDrag:n,onDragChange:r}){let i=(0,o.useRef)(r);const[,a]=Z({type:t,item:()=>{i.current({state:"start-preview",type:t,item:e});setTimeout(()=>{i.current({state:"start"})},0);return{type:t,item:e}},collect:e=>({isDragging:e.isDragging()}),end(e){i.current({state:"end",type:t,item:e.item})},canDrag(){return n}});(0,o.useLayoutEffect)(()=>{i.current=r});return{dragRef:a}}function Q({types:e,id:t,onDrop:n,onLongHover:r}){let i=(0,o.useRef)(null);let[a,s]=(0,o.useState)(null);let[{isOver:l},u]=$({accept:e,drop({item:e}){n(e.id,a,t)},hover(e,t){let n=i.current.getBoundingClientRect();let r=(n.bottom-n.top)/2;let o=t.getClientOffset();let a=o.y-n.top;let l=a<r?"top":"bottom";s(l)},collect(e){return{isOver:e.isOver()}}});(0,o.useEffect)(()=>{let e;if(r&&l){e=setTimeout(r,700)}return()=>e&&clearTimeout(e)},[l]);return{dropRef:(0,q.r)(u,i),dropPos:l?a:null}}const J=(0,o.createContext)(null);function ee({pos:e,offset:t}){let n=(0,o.useContext)(J);if(e==null){return null}let i=(n==="first"?2:0)+(t?.top||0);let a=(n==="last"?2:0)+(t?.bottom||0);let s=e==="top"?{top:-2+i}:{bottom:-1+a};return(0,r.jsx)(G.Z,{style:{position:"absolute",left:2,right:2,borderRadius:3,height:3,background:Y.rS.pageTextLink,zIndex:1e4,pointerEvents:"none",...s}})}},52582:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);var i=n(45492);var a=n(77644);var s=n(44710);var l=n(5291);var u=n(50606);var c=n(57651);function f({binding:e,type:t,formatter:n,style:o,getStyle:f,privacyFilter:h,"data-testid":p,...g}){let{fullSheetName:v}=(0,u.Z)(e);let m=(0,c.Z)(e);let y=(0,l.Z)();return(0,r.jsx)(s.wq,{privacyFilter:h!=null?h:t==="financial"?true:undefined,children:(0,r.jsx)(a.Z,{style:{...t==="financial"&&i.W2.tnum,...o,...f&&f(m)},"data-testid":p||v,"data-cellname":v,...g,children:n?n(m):y(m,t)})})}t.Z=f},57201:function(e,t,n){"use strict";var r=n(66204);t.Z=(0,r.createContext)(undefined)},5291:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var r=n(66204);var o=n(37496);var i="NOT_FOUND";function a(e){var t;return{get:function n(n){if(t&&e(t.key,n)){return t.value}return i},put:function e(e,n){t={key:e,value:n}},getEntries:function e(){return t?[t]:[]},clear:function e(){t=undefined}}}function s(e,t){var n=[];function r(e){var r=n.findIndex(function(n){return t(e,n.key)});if(r>-1){var o=n[r];if(r>0){n.splice(r,1);n.unshift(o)}return o.value}return i}function o(t,o){if(r(t)===i){n.unshift({key:t,value:o});if(n.length>e){n.pop()}}}function a(){return n}function s(){n=[]}return{get:r,put:o,getEntries:a,clear:s}}var l=function e(e,t){return e===t};function u(e){return function t(t,n){if(t===null||n===null||t.length!==n.length){return false}var r=t.length;for(var o=0;o<r;o++){if(!e(t[o],n[o])){return false}}return true}}function c(e,t){var n=typeof t==="object"?t:{equalityCheck:t};var r=n.equalityCheck,o=r===void 0?l:r,c=n.maxSize,f=c===void 0?1:c,h=n.resultEqualityCheck;var p=u(o);var g=f===1?a(p):s(f,p);function v(){var t=g.get(arguments);if(t===i){t=e.apply(null,arguments);if(h){var n=g.getEntries();var r=n.find(function(e){return h(e.value,t)});if(r){t=r.value}}g.put(arguments,t)}return t}v.clearCache=function(){return g.clear()};return v};function f(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(e){return typeof e==="function"})){var n=t.map(function(e){return typeof e==="function"?"function "+(e.name||"unnamed")+"()":typeof e}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}function h(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++){n[r-1]=arguments[r]}var o=function t(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++){r[o]=arguments[o]}var i=0;var a;var s={memoizeOptions:undefined};var l=r.pop();if(typeof l==="object"){s=l;l=r.pop()}if(typeof l!=="function"){throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof l+"]")}var u=s,c=u.memoizeOptions,h=c===void 0?n:c;var p=Array.isArray(h)?h:[h];var g=f(r);var v=e.apply(void 0,[function e(){i++;return l.apply(null,arguments)}].concat(p));var m=e(function e(){var e=[];var t=g.length;for(var n=0;n<t;n++){e.push(g[n].apply(null,arguments))}a=v.apply(null,e);return a});Object.assign(m,{resultFunc:l,memoizedResultFunc:v,dependencies:g,lastResult:function e(){return a},recomputations:function e(){return i},resetRecomputations:function e(){return i=0}});return m};return o}var p=h(c);var g=function e(e,t){if(t===void 0){t=p}if(typeof e!=="object"){throw new Error("createStructuredSelector expects first argument to be an object "+("where each property is a selector, instead received a "+typeof e))}var n=Object.keys(e);var r=t(n.map(function(t){return e[t]}),function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++){t[r]=arguments[r]}return t.reduce(function(e,t,r){e[n[r]]=t;return e},{})});return r};var v=n(89362);const m=e=>e;const y=p(m,e=>e.prefs);const w=p(y,e=>e.local);const x=p(w,e=>(0,v.ff)({format:e.numberFormat,hideFraction:e.hideFraction}));function b(e,t="string",n){switch(t){case"string":const r=JSON.stringify(e);if(r.charAt(0)==='"'&&r.charAt(r.length-1)==='"'){return r.slice(1,-1)}return r;case"number":return""+e;case"financial-with-sign":let o=b(e,"financial",n);if(typeof e==="number"&&e>=0){return"+"+o}return o;case"financial":if(e==null||e===""||e===0){return(0,v.zA)(0,n)}else if(typeof e==="string"){const t=parseFloat(e);e=isNaN(t)?0:t}if(typeof e!=="number"){throw new Error("Value is not a number ("+typeof e+"): "+e)}return(0,v.zA)(e,n);default:throw new Error("Unknown format type: "+t)}}function S(){const e=(0,o.v9)(x);return(0,r.useCallback)((t,n="string")=>b(t,n,e.formatter),[e])}},50606:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(66204);var o=n(57201);function i(e){let t=e.indexOf("!");if(t!==-1){return{sheet:e.slice(0,t),name:e.slice(t+1)}}return{sheet:null,name:e}}function a(e){if(!e){throw new Error("Sheet binding is required")}const t=typeof e==="string";let a=t?e:e.name;if(n.g.IS_TESTING&&!t&&!a){a=e.value.toString()}if(a==null){throw new Error("Binding name is now required")}let s=(0,r.useContext)(o.Z)||"__global";let l=i(a);if(l.sheet){s=l.sheet;a=l.name}return{sheetName:s,bindingName:a,fullSheetName:`${s}!${a}`}}},57651:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(66204);var o=n(55833);var i=n(50606);function a(e,t){let{sheetName:n,fullSheetName:a}=(0,i.Z)(e);const s=typeof e==="string"?{name:e,value:null}:e;let l=(0,o.M)();let[u,c]=(0,r.useState)({name:a,value:s.value===undefined?null:s.value,query:s.query});let f=(0,r.useRef)(t);let h=(0,r.useRef)(u.value);(0,r.useLayoutEffect)(()=>{f.current=t;h.current=u.value});(0,r.useLayoutEffect)(()=>{if(s.query){l.createQuery(n,s.name,s.query)}return l.bind(n,e,null,e=>{if(f.current){f.current(e)}if(e.value!==h.current){c(e)}})},[n,s.name]);return u.value}},59128:function(e,t,n){"use strict";n.d(t,{bL:function(){return R},Sx:function(){return W},wh:function(){return F},nu:function(){return V},gN:function(){return O},F3:function(){return B},dN:function(){return D},X2:function(){return Z},_7:function(){return U},Vg:function(){return q},OX:function(){return K},iA:function(){return X},xD:function(){return $},pX:function(){return G},rt:function(){return A},wz:function(){return Q}});var r=n(43188);var o=n(66204);var i=n(37496);var a=n(38638);var s=n(5904);var l=n(11892);var u=n(99458);var c=n(72285);var f=n(67459);var h=n(29813);var p=n(45492);var g=n(56816);var v=n(383);var m=n(31941);var y=n(77644);var w=n(24307);var x=n(99024);var b=n(37418);const S=150;const k=(e,t)=>e;function j({onResize:e,children:t}){let n=(0,b.Z)(e);return t(n)}class C extends o.PureComponent{_outerRef;_resetIsScrollingTimeoutId=null;static defaultProps={direction:"ltr",renderRow:undefined,layout:"vertical",overscanCount:2,useIsScrolling:false,headerHeight:0};constructor(e){super(e);this.lastPositions=(0,o.createRef)();this.lastPositions.current=new Map;this.needsAnimationRerender=(0,o.createRef)();this.needsAnimationRerender.current=false;this.animationEnabled=false;this.state={instance:this,isScrolling:false,scrollDirection:"forward",scrollOffset:typeof this.props.initialScrollOffset==="number"?this.props.initialScrollOffset:0,scrollUpdateWasRequested:false}}scrollTo(e){e=Math.max(0,e);this.setState(t=>{if(t.scrollOffset===e){return null}this.requestScrollUpdateHandled=false;return{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:true}},this._resetIsScrollingDebounced)}scrollToItem(e,t="auto"){const{itemCount:n}=this.props;const{scrollOffset:r}=this.state;e=Math.max(0,Math.min(e,n-1));this.scrollTo(this.getOffsetForIndexAndAlignment(e,t,r))}componentDidMount(){const{initialScrollOffset:e}=this.props;if(typeof e==="number"&&this._outerRef!=null){let t=this._outerRef;t=this._outerRef;t.scrollTop=e}this._callPropsCallbacks()}getAnchoredScrollPos(){if(this.anchored&&this.props.indexForKey&&this._outerRef!=null){let e=this.props.indexForKey(this.anchored.key);let t=this.getOffsetForIndexAndAlignment(e,"start");return t+this.anchored.offset}return null}componentDidUpdate(){const{scrollOffset:e,scrollUpdateWasRequested:t}=this.state;let n=this.getAnchoredScrollPos();if(n!=null){const e=this._outerRef;e.scrollTop=n}else if(t&&!this.requestScrollUpdateHandled&&this._outerRef!=null){this.requestScrollUpdateHandled=true;const t=this._outerRef;t.scrollTop=e}if(this.needsAnimationRerender.current){this.needsAnimationRerender.current=false;this.rerenderTimeout=setTimeout(()=>{this.forceUpdate()},10)}this._callPropsCallbacks()}componentWillUnmount(){if(this._resetIsScrollingTimeoutId!==null){clearTimeout(this._resetIsScrollingTimeoutId)}}render(){const{className:e,height:t,header:n,innerRef:o,innerElementType:i,innerTagName:a,itemCount:s,renderRow:l,itemKey:u=k,outerElementType:c,outerTagName:f,style:h,useIsScrolling:p,width:g}=this.props;const{isScrolling:v}=this.state;const[m,y]=this._getRangeToRender();const x=new Map;const b=[];if(s>0){for(let e=m;e<=y;e++){let t=u(e);let n=this._getItemStyle(e);let r=this.lastPositions.current.get(t);let o=false;x.set(t,n.top);if(this.animationEnabled&&r!=null&&r!==n.top){n={...n,top:r};this.needsAnimationRerender.current=true;o=true}b.push(l({index:e,key:t,style:n,isScrolling:p?v:undefined,isAnimating:o}))}}this.lastPositions.current=x;let S=this.getEstimatedTotalSize();let C=c||f||"div";let T=i||a||"div";return(0,r.jsx)(j,{onResize:this.onHeaderResize,children:i=>(0,r.jsxs)(C,{className:e,onScroll:this._onScrollVertical,ref:this._outerRefSetter,style:{height:t,width:g,overflow:"hidden auto",...h},children:[(0,r.jsx)(w.Z,{innerRef:i,children:n}),(0,r.jsx)(T,{ref:o,style:{position:"relative",height:S,width:"100%",pointerEvents:v?"none":undefined},children:b})]})})}setRowAnimation=e=>{this.animationEnabled=e;let t=this._outerRef;if(t){if(this.animationEnabled){t.classList.add("animated")}else{t.classList.remove("animated")}}};onHeaderResize=e=>{};anchor(){let e=this.props.itemKey||k;let t=this._outerRef;let n=t?t.scrollTop:0;let r=this.getStartIndexForOffset(n);let o=e(r);this.anchored={key:o,offset:n-this.getItemOffset(r)}}unanchor(){this.anchored=null}isAnchored(){return this.anchored!=null}getItemOffset=e=>e*this.props.itemSize;getItemSize=e=>this.props.itemSize;getEstimatedTotalSize=()=>this.props.itemSize*this.props.itemCount;getOffsetForIndexAndAlignment=(e,t,n)=>{const r=this.props.height;const o=Math.max(0,this.props.itemCount*this.props.itemSize-r);const i=Math.min(o,e*this.props.itemSize);const a=Math.max(0,e*this.props.itemSize-r+this.props.itemSize);if(t==="smart"){if(n>=a-r&&n<=i+r){t="auto"}else{t="center"}}switch(t){case"start":return i;case"end":return a;case"center":{const e=Math.round(a+(i-a)/2);if(e<Math.ceil(r/2)){return 0}else if(e>o+Math.floor(r/2)){return o}else{return e}}case"auto":default:if(n>=a&&n<=i){return n}else if(n<a){return a}else{return i}}};getStartIndexForOffset=e=>Math.max(0,Math.min(this.props.itemCount-1,Math.floor(e/this.props.itemSize)));getStopIndexForStartIndex=(e,t)=>{const n=e*this.props.itemSize;const r=this.props.height;const o=Math.ceil((r+t-n)/this.props.itemSize);return Math.max(0,Math.min(this.props.itemCount-1,e+o-1))};_callOnItemsRendered=(0,x.Z)((e,t,n,r)=>this.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:r}));_callOnScroll=(0,x.Z)((e,t,n)=>this.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n}));_callPropsCallbacks(){if(typeof this.props.onItemsRendered==="function"){const{itemCount:e}=this.props;if(e>0){const[e,t,n,r]=this._getRangeToRender();this._callOnItemsRendered(e,t,n,r)}}if(typeof this.props.onScroll==="function"){const{scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n}=this.state;this._callOnScroll(e,t,n)}}_getItemStyle=e=>{const{direction:t,itemSize:n,layout:r}=this.props;const o=this._getItemStyleCache(n,r,t);let i;if(o.hasOwnProperty(e)){i=o[e]}else{const t=this.getItemOffset(e);const n=this.getItemSize(e);o[e]=i={position:"absolute",left:0,top:t,height:n,width:"100%"}}return i};_getItemStyleCache=(0,x.Z)((e,t,n)=>({}));_getRangeToRender(){let{itemCount:e,overscanCount:t}=this.props;let{isScrolling:n,scrollDirection:r,scrollOffset:o}=this.state;let i=this.getAnchoredScrollPos();if(i!=null){o=i}if(e===0){return[0,0,0,0]}const a=this.getStartIndexForOffset(o);const s=this.getStopIndexForStartIndex(a,o);const l=!n||r==="backward"?Math.max(1,t):1;const u=!n||r==="forward"?Math.max(1,t):1;return[Math.max(0,a-l),Math.max(0,Math.min(e-1,s+u)),a,s]}_onScrollVertical=e=>{let{scrollTop:t}=e.currentTarget;this.setState(e=>{if(e.scrollOffset===t){return null}let n=t;return{isScrolling:true,scrollDirection:e.scrollOffset<n?"forward":"backward",scrollOffset:n,scrollUpdateWasRequested:false}},this._resetIsScrollingDebounced)};_outerRefSetter=e=>{const{outerRef:t}=this.props;this._outerRef=e;if(typeof t==="function"){t(e)}else if(t!=null&&typeof t==="object"&&t.hasOwnProperty("current")){t.current=e}};_resetIsScrollingDebounced=()=>{if(this._resetIsScrollingTimeoutId!==null){clearTimeout(this._resetIsScrollingTimeoutId)}this._resetIsScrollingTimeoutId=setTimeout(this._resetIsScrolling,S)};_resetIsScrolling=()=>{this._resetIsScrollingTimeoutId=null;this.setState({isScrolling:false},()=>{this._getItemStyleCache(-1,null)})}}var T=n(39235);var E=n(44710);var _=n(5291);var I=n(57651);var M=n(63541);const D=32;function P(e,t){if(document.hasFocus()){e?.(t)}else{t.stopPropagation()}}const O=(0,o.forwardRef)(function e({width:e,name:t,truncate:n=true,children:o,style:i,contentStyle:a,...s},l){return(0,r.jsx)(w.Z,{innerRef:l,...s,style:{...e==="flex"?{flex:1,flexBasis:0}:{width:e},borderTopWidth:1,borderBottomWidth:1,borderColor:p.rS.tableBorder,...p.W2.smallText,...i},"data-testid":t,children:(0,r.jsx)(w.Z,{style:{flex:1,padding:"0 5px",justifyContent:"center",...a},children:n?(0,r.jsx)(y.Z,{style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:o}):o})})});function A({value:e,formatter:t}){return(0,r.jsx)(y.Z,{style:{flexGrow:1,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t?t(e):e})}function R({width:e,name:t,exposed:i,focused:a,value:l,formatter:u,textAlign:c,alignItems:f,onExpose:h,children:g,plain:v,style:m,valueStyle:y,unexposedContent:x,privacyFilter:b,...S}){let k=(0,o.useRef)(null);let j=(0,o.useRef)(null);(0,s.X)(j,a!==undefined?a:i);const C=e==="flex"?{flex:1,flexBasis:0}:{width:e};const T={position:"relative",textAlign:c||"left",justifyContent:"center",borderTopWidth:1,borderBottomWidth:1,borderColor:p.rS.tableBorder,alignItems:f};let _=(0,o.useMemo)(()=>(0,r.jsx)(E.wq,{privacyFilter:(0,E.JS)({activationFilters:[!a,!i],style:{position:"absolute",width:"100%",height:"100%"}},b),children:v?g:i?g():(0,r.jsx)(w.Z,{style:{flexDirection:"row",flex:1,padding:"0 5px",alignItems:"center",...p.W2.smallText,...y},onMouseDown:e=>k.current=[e.clientX,e.clientY],onClick:n.g.IS_TESTING?()=>h?.(t):e=>{if(k.current&&Math.abs(e.clientX-k.current[0])<5&&Math.abs(e.clientY-k.current[1])<5){h?.(t)}},children:x||(0,r.jsx)(A,{value:l,formatter:u})})}),[b,a,i,g,v,i,y,h,t,x,l,u]);return(0,r.jsx)(w.Z,{innerRef:j,style:{...C,...T,...m},...S,"data-testid":t,children:_})}function Z({inset:e=0,collapsed:t,children:n,height:o,style:i,...a}){return(0,r.jsxs)(w.Z,{style:{flexDirection:"row",height:o||D,flex:"0 0 "+(o||D)+"px",userSelect:"text",...t&&{marginTop:-1},...i},"data-testid":"row",...a,children:[e!==0&&(0,r.jsx)(O,{width:e}),n,e!==0&&(0,r.jsx)(O,{width:e})]})}const z={padding:"5px 3px",margin:"0 1px"};const N={backgroundColor:"transparent","::selection":{backgroundColor:p.rS.formInputTextReadOnlySelection}};function L({value:e,onUpdate:t,onBlur:n,...i}){let[a,s]=(0,o.useState)(e);function l(e){t?.(a);if(n){P(n,e)}}function u(n){if(n.key!=="Enter"&&n.key!=="Tab"){n.stopPropagation()}if(n.key==="Escape"){if(a!==e){s(e)}}else if(H(n)){t?.(a)}}return(0,r.jsx)(v.ZP,{...i,value:a,onUpdate:e=>s(e),onBlur:l,onKeyDown:u,style:{...z,...i.readOnly?N:null,...i.style}})}function B({inputProps:e,onUpdate:t,onBlur:n,textAlign:o,error:i,...a}){return(0,r.jsx)(R,{textAlign:o,...a,children:()=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(L,{value:a.value,onUpdate:t,onBlur:n,style:{textAlign:o,...e&&e.style},...e}),i&&(0,r.jsx)(M.u,{targetHeight:D,width:180,position:"bottom-left",children:i},"error")]})})}function H(e){switch(e.key){case"Tab":case"Enter":e.preventDefault();return true;default:}}function F({value:e,children:t,onUpdate:n,onBlur:i,...a}){let[s,l]=(0,o.useState)(e);let[u,c]=(0,o.useState)(e);if(u!==e){l(e);c(e)}function f(e){if(document.hasFocus()){n?.(s);P(i,e)}}function h(e){if(H(e)){n?.(s)}}return(0,r.jsx)(R,{...a,value:e,children:()=>t({onBlur:f,onKeyDown:h,onUpdate:e=>l(e),onSave:e=>{l(e);n?.(e)},shouldSaveFromKey:H,inputStyle:z})})}function V({onDelete:e,style:t,...n}){return(0,r.jsx)(R,{...n,name:"delete",width:20,style:{alignItems:"center",userSelect:"none",...t},onClick:t=>{t.stopPropagation();e?.()},children:()=>(0,r.jsx)(c.Z,{width:7,height:7})})}const W=(0,o.forwardRef)(({children:e,style:t,primary:n,bare:o,disabled:i,clickBehavior:a,onSelect:s,onEdit:l,className:u},c)=>{return(0,r.jsx)(w.Z,{innerRef:c,className:u,tabIndex:0,onKeyDown:e=>{if(e.key==="x"||e.key===" "){e.preventDefault();if(!i){s?.(e)}}},style:{flexDirection:"row",alignItems:"center",cursor:"default",transition:"box-shadow .15s",backgroundColor:o?"transparent":i?p.rS.buttonNormalDisabledBackground:n?p.rS.buttonPrimaryBackground:p.rS.buttonNormalBackground,border:o?"none":"1px solid "+(i?p.rS.buttonNormalDisabledBorder:n?p.rS.buttonPrimaryBorder:p.rS.buttonNormalBorder),color:o?"inherit":i?p.rS.buttonNormalDisabledText:n?p.rS.buttonPrimaryText:p.rS.buttonNormalText,":focus":o?null:{outline:0,boxShadow:`1px 1px 2px ${p.rS.buttonNormalShadow}`},...t},onFocus:()=>l&&l(),"data-testid":"cell-button",onClick:a==="none"?null:e=>{if(!i){s?.(e);l?.()}},children:e})});function U({focused:e,selected:t,style:n,onSelect:o,onEdit:i,buttonProps:a={},...s}){return(0,r.jsx)(R,{...s,focused:e,name:"select",width:20,style:{alignItems:"center",userSelect:"none",...n},onClick:e=>{e.stopPropagation();o?.(e);i?.()},children:()=>(0,r.jsx)(W,{style:{width:12,height:12,justifyContent:"center",alignItems:"center",borderRadius:3,border:t?"1px solid "+p.rS.checkboxBorderSelected:"1px solid "+p.rS.formInputBorder,color:p.rS.checkboxText,backgroundColor:t?p.rS.checkboxBackgroundSelected:p.rS.tableBackground,":focus":{border:"1px solid "+p.rS.checkboxBorderSelected,boxShadow:"0 1px 2px "+p.rS.checkboxShadowSelected}},onEdit:i,onSelect:o,clickBehavior:"none",...a,children:t&&(0,r.jsx)(h.Z,{width:6,height:6})})})}function K({valueProps:e,valueStyle:t,inputProps:n,textAlign:o,onSave:i,...a}){const{binding:s,type:l,getValueStyle:u,formatExpr:c,unformatExpr:f,privacyFilter:h}=e;let p=(0,I.Z)(s,e=>{if(a.exposed&&n&&n.onBlur){n.onBlur(e)}});let g=(0,_.Z)();return(0,r.jsx)(R,{valueStyle:u?{...t,...u(p)}:t,textAlign:o,...a,value:p,formatter:e=>a.formatter?a.formatter(e,l):g(e,l),privacyFilter:h!=null?h:l==="financial"?true:undefined,"data-cellname":p,children:()=>{return(0,r.jsx)(L,{value:c?c(p):p,onUpdate:e=>{i(f?f(e):e)},...n,style:{textAlign:o,...n?.style||{}}})}})}function $({headers:e,children:t,version:n,...o}){return(0,r.jsx)(w.Z,{style:{borderRadius:"6px 6px 0 0",overflow:"hidden",flexShrink:0},children:(0,r.jsx)(Z,{collapsed:true,...o,style:{color:p.rS.tableHeaderText,backgroundColor:p.rS.tableHeaderBackground,zIndex:200,fontWeight:500,...o.style},children:e?e.map(e=>{return(0,r.jsx)(R,{value:e.name,width:e.width,style:e.style,valueStyle:e.valueStyle},e.name)}):t})})}function q({name:e,keyHandlers:t,items:n,onSelect:i}){let a=(0,l.D9)();let[s,u]=(0,o.useState)(null);if(a.size===0){return null}return(0,r.jsxs)(w.Z,{style:{marginLeft:10,flexShrink:0},children:[(0,r.jsx)(T.U,{keys:t||{}}),(0,r.jsxs)(g.Z,{type:"bare",style:{color:p.rS.pageTextPositive},onClick:()=>u(true),children:[(0,r.jsx)(f.Z,{width:8,height:8,style:{marginRight:5,color:p.rS.pageText}}),a.size," ",e]}),s&&(0,r.jsx)(M.u,{position:"bottom-right",width:200,style:{padding:0,backgroundColor:p.rS.menuBackground},onClose:()=>u(false),children:(0,r.jsx)(m.Z,{onMenuSelect:e=>{i(e,[...a]);u(false)},items:n})})]})}let Y={position:"absolute",willChange:"transform",width:"100%"};const G=(0,o.forwardRef)(({fields:e,...t},n)=>{let o=Q(t.items,e);return(0,r.jsx)(X,{...t,navigator:o})});const X=(0,o.forwardRef)(({items:e,count:t,headers:n,contentHeader:i,loading:l,rowHeight:c=D,backgroundColor:f=p.rS.tableHeaderBackground,renderItem:h,renderEmpty:g,getItemKey:v,loadMore:m,style:y,navigator:x,onScroll:b,version:S="v1",allowPopupsEscape:k,isSelected:j,saveScrollWidth:T,...E},_)=>{if(!x){x={onEdit:()=>{},editingId:null,focusedField:null,getNavigatorProps:e=>e}}let{onEdit:I,editingId:P,focusedField:O,getNavigatorProps:A}=x;let R=(0,o.useRef)(null);let Z=(0,o.useRef)(null);let z=(0,o.useRef)(null);let N=(0,o.useRef)(null);let L=(0,o.useRef)(false);(0,o.useImperativeHandle)(_,()=>({scrollTo:(t,n="smart")=>{let r=e.findIndex(e=>e.id===t);if(r!==-1){if(!R.current){N.current=r}else{R.current.scrollToItem(r,n)}}},scrollToTop:()=>{R.current?.scrollTo(0)},getScrolledItem:()=>{if(z.current){let t=z.current.scrollTop;let n=R.current.getStartIndexForOffset(t);return e[n].id}return 0},setRowAnimation:e=>{R.current?.setRowAnimation(e)},edit(e,t,n){I(e,t);if(e&&n){_.scrollTo(e)}},anchor(){R.current?.anchor()},unanchor(){R.current?.unanchor()},isAnchored(){return R.current&&R.current.isAnchored()}}));(0,o.useLayoutEffect)(()=>{if(!L.current&&Z.current){R.current?.setRowAnimation(true);L.current=true}if(z.current&&T){T(z.current.offsetParent?z.current.offsetParent.clientWidth:0,z.current?z.current.clientWidth:0)}});function B({index:t,style:n,key:o}){let i=e[t];let a=P===i.id;let s=j&&j(i.id);let l=h({item:i,editing:a,focusedField:a&&O,onEdit:I,index:t,position:n.top});return(0,r.jsx)(w.Z,{style:{...Y,zIndex:a||s?101:"auto",transform:"translateY(var(--pos))"},nativeStyle:{"--pos":`${n.top-1}px`},"data-focus-key":i.id,children:l},o)}function H(e,t){return t*(c-1)+(c-1)/2-e/2+(c-1)*2}function F({overscanStartIndex:t,overscanStopIndex:n}){if(m&&n>e.length-100){m()}}function V(e){if(e==null){return null}else if(typeof e==="function"){return e()}return(0,r.jsx)(w.Z,{style:{justifyContent:"center",alignItems:"center",fontStyle:"italic",color:p.rS.tableText,flex:1},children:e})}if(l){return(0,r.jsx)(w.Z,{style:{flex:1,justifyContent:"center",alignItems:"center",backgroundColor:f},children:(0,r.jsx)(u.Z,{width:25,color:p.rS.tableText})})}let W=(t||e.length)===0;return(0,r.jsxs)(w.Z,{style:{flex:1,outline:"none",...y},tabIndex:1,...A(E),"data-testid":"table",children:[n&&(0,r.jsx)($,{height:c,...Array.isArray(n)?{headers:n}:{children:n}}),(0,r.jsx)(w.Z,{style:{flex:`1 1 ${c*Math.max(2,e.length)}px`,backgroundColor:f},children:W?V(g):(0,r.jsx)(a.Z,{children:({width:n,height:o})=>{if(n===0||o===0){return null}return(0,r.jsx)(M.Hp.Provider,{value:!k&&Z,children:(0,r.jsx)(s.M,{children:(0,r.jsx)(C,{ref:R,header:i,innerRef:Z,outerRef:z,width:n,height:o,renderRow:B,itemCount:t||e.length,itemSize:c-1,itemKey:v||((t,n)=>e[t].id),indexForKey:t=>e.findIndex(e=>e.id===t),initialScrollOffset:N.current?H(o,N.current):0,overscanCount:5,onItemsRendered:F,onScroll:b})})})}})})]})});function Q(e,t){let n=typeof t!=="function"?()=>t:t;let[r,a]=(0,o.useState)(null);let[s,l]=(0,o.useState)(null);let u=(0,o.useRef)();let c=(0,i.oR)();let f=(0,o.useRef)(0);let h=(0,o.useCallback)((e,t)=>{a(e);l(e?t:null)},[]);(0,o.useEffect)(()=>{f.current=c.getState().modals.modalStack.length},[]);function p(){u.current.focus();h(null);setTimeout(()=>{h(r,s)},100)}function g(){let t=e.findIndex(e=>e.id===r);if(t>0){let r=e[t-1];let o=n(r);h(r.id,o[o.length-1])}else{p()}}function v(){let t=e.findIndex(e=>e.id===r);if(t<e.length-1){let r=e[t+1];let o=n(r);h(r.id,o[0])}else{p()}}function m(t){if(r){let o=n(e.find(e=>e.id===r));let i=o.indexOf(s)+t;if(i<0){g()}else if(i>=o.length){v()}else{l(o[i])}}}function y(t){if(r){let o=e.findIndex(e=>e.id===r);let i=o;while(true){i=i+t;if(i>=0&&i<e.length){const t=e[i];if(n(t).includes(s)){h(t.id,s);break}}else{p();break}}}}function w(e){switch(e){case"left":m(-1);break;case"right":m(1);break;case"up":y(-1);break;case"down":y(1);break;default:throw new Error("Unknown direction: "+e)}}function x(e){return{...e,innerRef:u,onKeyDown:t=>{e?.onKeyDown?.(t);if(t.isPropagationStopped()){return}switch(t.key){case"ArrowUp":case"k":if(t.target.tagName!=="INPUT"){w("up")}break;case"ArrowDown":case"j":if(t.target.tagName!=="INPUT"){w("down")}break;case"Enter":case"Tab":t.preventDefault();t.stopPropagation();w(t.key==="Enter"?t.shiftKey?"up":"down":t.shiftKey?"left":"right");break;default:}},onBlur:e=>{let t=f.current;let n=c.getState().modals.modalStack.length;if(document.hasFocus()&&(e.relatedTarget==null||!u.current.contains(e.relatedTarget)||u.current===e.relatedTarget)&&t===n){h(null)}}}}return{onEdit:h,editingId:r,focusedField:s,getNavigatorProps:x}}},63541:function(e,t,n){"use strict";n.d(t,{Hp:function(){return l},lL:function(){return u},u:function(){return c}});var r=n(43188);var o=n(66204);var i=n(42457);var a=n(99818);var s=n(45492);const l=(0,o.createContext)();function u(){let[e,t]=(0,o.useState)(false);return{getOpenEvents:(e={})=>({onClick:n=>{n.stopPropagation();e.onClick?.(n);t(true)}}),isOpen:e,open:()=>t(true),close:()=>t(false)}}class c extends o.Component{static contextType=l;state={position:null};constructor(e){super(e);this.position=e.position||"bottom-right";this.contentRef=(0,o.createRef)()}setup(){this.layout();let e=e=>{let t=e.target;while(t&&t!==document.documentElement){if(t.dataset.istooltip||t.dataset.reachPopover!=null){break}t=t.parentNode}if(t===document.documentElement){this.props.onClose?.()}};let t=e=>{if(e.key==="Escape"){this.props.onClose?.()}};window.document.addEventListener("pointerdown",e,false);this.contentRef.current?.addEventListener("keydown",t,false);this.cleanup=()=>{window.document.removeEventListener("pointerdown",e,false);this.contentRef.current?.removeEventListener("keydown",t,false)}}componentDidMount(){if(this.getContainer()){this.setup()}else{this.forceUpdate(()=>{if(this.getContainer()){this.setup()}else{console.log("Warning: could not mount tooltip, container missing")}})}}componentDidUpdate(e){if(e.targetRect!==this.props.targetRect||e.forceTop!==this.props.forceTop||this.props.forceLayout){this.layout()}}getContainer(){let{ignoreBoundary:e=false}=this.props;if(!e&&this.context){return this.context.current}return document.body}getBoundsContainer(){let e=this.getContainer();if(e.parentNode&&e.parentNode.style.overflow==="auto"){return e.parentNode}return e}layout(){let{targetRect:e,offset:t=0}=this.props;let n=this.contentRef.current;if(!n){return}let r=n.getBoundingClientRect();let o=this.target.parentNode;let i=e||o.getBoundingClientRect();i={top:i.top,left:i.left,width:i.width,height:i.height};let a=this.getBoundsContainer();if(!a){return}let s=a.getBoundingClientRect();i.left-=s.left;i.top-=s.top;if(this.props.forceTop){i.top=this.props.forceTop}else{let e=r.height+t;let n=i.top-e;let o=i.top+i.height+e;if(this.position.indexOf("top")!==-1&&n<s.top||this.position.indexOf("bottom")!==-1&&o>s.height&&n>0){this.position=this.getOppositePosition(this.position)}i.top+=a.scrollTop}const l=this.getStyleForPosition(this.position,r,i,this.getContainer().getBoundingClientRect(),t);n.style.top=l.top;n.style.bottom=l.bottom;n.style.left=l.left;n.style.right=l.right;n.style.width=l.width}componentWillUnmount(){if(this.cleanup){this.cleanup()}}getOppositePosition(e){switch(e){case"top":case"top-left":return"bottom";case"top-right":return"bottom-right";case"bottom":case"bottom-left":return"top";case"bottom-right":return"top-right";case"bottom-stretch":return"top-stretch";case"top-stretch":return"bottom-stretch";case"bottom-center":return"top-center";case"top-center":return"bottom-center";case"right":return"right";default:}}getStyleForPosition(e,t,n,r,o){const i={top:"inherit",bottom:"inherit",left:"inherit",right:"inherit"};if(e==="top"||e==="top-right"||e==="top-left"){i.top=n.top-t.height-o+"px";if(e==="top-right"){i.left=n.left+(n.width-t.width)+"px"}else{i.left=n.left+"px"}}else if(e==="bottom"||e==="bottom-right"||e==="bottom-left"){i.top=n.top+n.height+o+"px";if(e==="bottom-right"){i.left=n.left+(n.width-t.width)+"px"}else{i.left=n.left+"px"}}else if(e==="bottom-center"){i.top=n.top+n.height+o+"px";i.left=n.left-(t.width-n.width)/2+"px"}else if(e==="top-center"){i.top=n.top-t.height-o+"px";i.left=n.left-(t.width-n.width)/2+"px"}else if(e==="left-center"){i.top=n.top-(t.height-n.height)/2+"px";i.left=n.left-t.width+"px"}else if(e==="top-stretch"){i.bottom=r.height-n.top+o+"px";i.left=n.left+"px";i.width=n.width+"px"}else if(e==="bottom-stretch"){i.top=n.top+n.height+o+"px";i.left=n.left+"px";i.width=n.width+"px"}else if(e==="right"){i.top=n.top+"px";i.left=n.left+n.width+o+"px"}else{throw new Error("Invalid position for Tooltip: "+e)}return i}render(){const{children:e,width:t,style:n}=this.props;const o={position:"absolute",zIndex:3e3,padding:5,width:t,...s.W2.shadowLarge,borderRadius:4,backgroundColor:s.rS.menuBackground,color:s.rS.menuItemText};if(!this.getContainer()){return null}return(0,r.jsx)("div",{ref:e=>this.target=e,children:i.createPortal((0,r.jsx)("div",{className:`${(0,a.iv)(o,n,s.W2.darkScrollbar)}`,ref:this.contentRef,"data-testid":this.props["data-testid"]||"tooltip","data-istooltip":true,onClick:e=>{e.stopPropagation()},children:e}),this.getContainer())})}}},33605:function(e,t,n){"use strict";n.d(t,{$:function(){return ty},z:function(){return tx}});var r=n(43188);var o=n(66204);var i=n(37496);var a=n(45485);var s=n(59379);var l=n(14313);var u=n(90696);var c=n(4689);function f(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":o,labelElementType:i="label"}=e;t=(0,u.Me)(t);let a=(0,u.Me)();let s={};if(n){r=r?`${a} ${r}`:a;s={id:a,htmlFor:i==="label"?t:undefined}}else if(!r&&!o)console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=(0,u.bE)({id:t,"aria-label":o,"aria-labelledby":r});return{labelProps:s,fieldProps:l}}function h(e){let{description:t,errorMessage:n,validationState:r}=e;let{labelProps:o,fieldProps:i}=(0,f)(e);let a=(0,$iD7q0$useSlotId)([Boolean(t),Boolean(n),r]);let s=(0,$iD7q0$useSlotId)([Boolean(t),Boolean(n),r]);i=(0,$iD7q0$mergeProps)(i,{"aria-describedby":[a,s,e["aria-describedby"]].filter(Boolean).join(" ")||undefined});return{labelProps:o,fieldProps:i,descriptionProps:{id:a},errorMessageProps:{id:s}}}var p=n(6860);const g=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]);const v=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function m(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize().script;return g.has(t)}let t=e.split("-")[0];return v.has(t)}function y(){let e=typeof navigator!=="undefined"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch(t){e="en-US"}return{locale:e,direction:(0,m)(e)?"rtl":"ltr"}}let w=y();let x=new Set;function b(){w=y();for(let e of x)e(w)}function S(){let e=(0,p.Av)();let[t,n]=(0,o.useState)(w);(0,o.useEffect)(()=>{if(x.size===0)window.addEventListener("languagechange",b);x.add(n);return()=>{x.delete(n);if(x.size===0)window.removeEventListener("languagechange",b)}},[]);if(e)return{locale:"en-US",direction:"ltr"};return t}const k=(0,o).createContext(null);function j(e){let{locale:t,children:n}=e;let r=(0,S)();let o=t?{locale:t,direction:(0,m)(t)?"rtl":"ltr"}:r;return(0,$iFADg$react).createElement(k.Provider,{value:o},n)}function C(){let e=(0,S)();let t=(0,o.useContext)(k);return t||e}var T={};"use strict";const E=new WeakMap;function _(e){let t=E.get(e);if(!t){t=new(0,$iFADg$LocalizedStringDictionary)(e);E.set(e,t)}return t}function I(e){let{locale:t}=(0,C)();let n=(0,$iFADg$useMemo)(()=>_(e),[e]);return(0,$iFADg$useMemo)(()=>new(0,$iFADg$LocalizedStringFormatter)(t,n),[t,n])}function M(e={}){let{locale:t}=(0,C)();return(0,$iFADg$useMemo)(()=>new Intl.ListFormat(t,e),[t,e])}function D(e){e=(0,$iFADg$useDeepMemo)(e,P);let{locale:t}=(0,C)();return(0,$iFADg$useMemo)(()=>new(0,$iFADg$DateFormatter)(t,e),[t,e])}function P(e,t){if(e===t)return true;let n=Object.keys(e);let r=Object.keys(t);if(n.length!==r.length)return false;for(let r of n){if(t[r]!==e[r])return false}return true}function O(e={}){let{locale:t}=(0,C)();return(0,$iFADg$useMemo)(()=>new(0,$iFADg$NumberFormatter)(t,e),[t,e])}let A=new Map;function R(e){let{locale:t}=(0,C)();let n=t+(e?Object.entries(e).sort((e,t)=>e[0]<t[0]?-1:1).join():"");if(A.has(n))return A.get(n);let r=new Intl.Collator(t,e);A.set(n,r);return r}function Z(e){let t=(0,R)({usage:"search",...e});let n=(0,$iFADg$useCallback)((e,n)=>{if(n.length===0)return true;e=e.normalize("NFC");n=n.normalize("NFC");return t.compare(e.slice(0,n.length),n)===0},[t]);let r=(0,$iFADg$useCallback)((e,n)=>{if(n.length===0)return true;e=e.normalize("NFC");n=n.normalize("NFC");return t.compare(e.slice(-n.length),n)===0},[t]);let o=(0,$iFADg$useCallback)((e,n)=>{if(n.length===0)return true;e=e.normalize("NFC");n=n.normalize("NFC");let r=0;let o=n.length;for(;r+o<=e.length;r++){let i=e.slice(r,r+o);if(t.compare(n,i)===0)return true}return false},[t]);return(0,$iFADg$useMemo)(()=>({startsWith:n,endsWith:r,contains:o}),[n,r,o])};function z(e){return(0,u.ad)()?e.altKey:e.ctrlKey}function N(e){if((0,u.V5)())return e.metaKey;return e.ctrlKey}const L=1e3;function B(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e;let i=(0,o.useRef)({search:"",timeout:null}).current;let a=e=>{let o=H(e.key);if(!o||e.ctrlKey||e.metaKey||!e.currentTarget.contains(e.target))return;if(o===" "&&i.search.trim().length>0){e.preventDefault();if(!("continuePropagation"in e))e.stopPropagation()}i.search+=o;let a=t.getKeyForSearch(i.search,n.focusedKey);if(a==null)a=t.getKeyForSearch(i.search);if(a!=null){n.setFocusedKey(a);if(r)r(a)}clearTimeout(i.timeout);i.timeout=setTimeout(()=>{i.search=""},L)};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?a:null}}}function H(e){if(e.length===1||!/^[A-Z]/i.test(e))return e;return""}function F(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=false,shouldFocusWrap:a=false,disallowEmptySelection:s=false,disallowSelectAll:f=false,selectOnFocus:h=t.selectionBehavior==="replace",disallowTypeAhead:p=false,shouldUseVirtualFocus:g,allowsTabNavigation:v=false,isVirtualized:m,scrollRef:y=r}=e;let{direction:w}=(0,C)();let x=e=>{if(e.altKey&&e.key==="Tab")e.preventDefault();if(!r.current.contains(e.target))return;const o=(n,r)=>{if(n!=null){t.setFocusedKey(n,r);if(e.shiftKey&&t.selectionMode==="multiple")t.extendSelection(n);else if(h&&!(0,z)(e))t.replaceSelection(n)}};switch(e.key){case"ArrowDown":if(n.getKeyBelow){var i,c;e.preventDefault();let r=t.focusedKey!=null?n.getKeyBelow(t.focusedKey):(i=n.getFirstKey)===null||i===void 0?void 0:i.call(n);if(r==null&&a)r=(c=n.getFirstKey)===null||c===void 0?void 0:c.call(n,t.focusedKey);o(r)}break;case"ArrowUp":if(n.getKeyAbove){var p,g;e.preventDefault();let r=t.focusedKey!=null?n.getKeyAbove(t.focusedKey):(p=n.getLastKey)===null||p===void 0?void 0:p.call(n);if(r==null&&a)r=(g=n.getLastKey)===null||g===void 0?void 0:g.call(n,t.focusedKey);o(r)}break;case"ArrowLeft":if(n.getKeyLeftOf){var m,y;e.preventDefault();let r=n.getKeyLeftOf(t.focusedKey);if(r==null&&a)r=w==="rtl"?(m=n.getFirstKey)===null||m===void 0?void 0:m.call(n,t.focusedKey):(y=n.getLastKey)===null||y===void 0?void 0:y.call(n,t.focusedKey);o(r,w==="rtl"?"first":"last")}break;case"ArrowRight":if(n.getKeyRightOf){var x,b;e.preventDefault();let r=n.getKeyRightOf(t.focusedKey);if(r==null&&a)r=w==="rtl"?(x=n.getLastKey)===null||x===void 0?void 0:x.call(n,t.focusedKey):(b=n.getFirstKey)===null||b===void 0?void 0:b.call(n,t.focusedKey);o(r,w==="rtl"?"last":"first")}break;case"Home":if(n.getFirstKey){e.preventDefault();let r=n.getFirstKey(t.focusedKey,(0,N)(e));t.setFocusedKey(r);if((0,N)(e)&&e.shiftKey&&t.selectionMode==="multiple")t.extendSelection(r);else if(h)t.replaceSelection(r)}break;case"End":if(n.getLastKey){e.preventDefault();let r=n.getLastKey(t.focusedKey,(0,N)(e));t.setFocusedKey(r);if((0,N)(e)&&e.shiftKey&&t.selectionMode==="multiple")t.extendSelection(r);else if(h)t.replaceSelection(r)}break;case"PageDown":if(n.getKeyPageBelow){e.preventDefault();let r=n.getKeyPageBelow(t.focusedKey);o(r)}break;case"PageUp":if(n.getKeyPageAbove){e.preventDefault();let r=n.getKeyPageAbove(t.focusedKey);o(r)}break;case"a":if((0,N)(e)&&t.selectionMode==="multiple"&&f!==true){e.preventDefault();t.selectAll()}break;case"Escape":e.preventDefault();if(!s)t.clearSelection();break;case"Tab":if(!v){if(e.shiftKey)r.current.focus();else{let e=(0,l.QL)(r.current,{tabbable:true});let t;let n;do{n=e.lastChild();if(n)t=n}while(n);if(t&&!t.contains(document.activeElement))(0,u.Ao)(t)}break}}};let b=(0,o.useRef)({top:0,left:0});(0,u.zX)(y,"scroll",m?null:()=>{b.current={top:y.current.scrollTop,left:y.current.scrollLeft}});let S=e=>{if(t.isFocused){if(!e.currentTarget.contains(e.target))t.setFocused(false);return}if(!e.currentTarget.contains(e.target))return;t.setFocused(true);if(t.focusedKey==null){let r=e=>{if(e!=null){t.setFocusedKey(e);if(h)t.replaceSelection(e)}};let a=e.relatedTarget;var o,i;if(a&&e.currentTarget.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_FOLLOWING)r((o=t.lastSelectedKey)!==null&&o!==void 0?o:n.getLastKey());else r((i=t.firstSelectedKey)!==null&&i!==void 0?i:n.getFirstKey())}else if(!m){y.current.scrollTop=b.current.top;y.current.scrollLeft=b.current.left}if(!m&&t.focusedKey!=null){let e=y.current.querySelector(`[data-key="${t.focusedKey}"]`);if(e){if(!e.contains(document.activeElement))(0,u.Ao)(e);let t=(0,c.Jz)();if(t==="keyboard")(0,u.Gt)(e,{containingElement:r.current})}}};let k=e=>{if(!e.currentTarget.contains(e.relatedTarget))t.setFocused(false)};const j=(0,o.useRef)(i);(0,o.useEffect)(()=>{if(j.current){let e=null;if(i==="first")e=n.getFirstKey();if(i==="last")e=n.getLastKey();let o=t.selectedKeys;if(o.size)e=o.values().next().value;t.setFocused(true);t.setFocusedKey(e);if(e==null&&!g)(0,l.ex)(r.current)}j.current=false},[]);let T=(0,o.useRef)(t.focusedKey);(0,o.useEffect)(()=>{let e=(0,c.Jz)();if(t.isFocused&&t.focusedKey!=null&&(y===null||y===void 0?void 0:y.current)){let n=y.current.querySelector(`[data-key="${t.focusedKey}"]`);if(n&&e==="keyboard"){if(!m)(0,u.zT)(y.current,n);(0,u.Gt)(n,{containingElement:r.current})}}if(t.isFocused&&t.focusedKey==null&&T.current!=null)(0,l.ex)(r.current);T.current=t.focusedKey},[m,y,t.focusedKey,t.isFocused,r]);let E={onKeyDown:x,onFocus:S,onBlur:k,onMouseDown(e){if(y.current===e.target)e.preventDefault()}};let{typeSelectProps:_}=(0,B)({keyboardDelegate:n,selectionManager:t});if(!p)E=(0,u.dG)(_,E);let I;if(!g)I=t.focusedKey==null?0:-1;return{collectionProps:{...E,tabIndex:I}}}function V(e){let{selectionManager:t,key:n,ref:r,shouldSelectOnPressUp:i,shouldUseVirtualFocus:a,focus:s,isDisabled:f,onAction:h,allowsDifferentPressOrigin:p}=e;let g=e=>{if(e.pointerType==="keyboard"&&(0,z)(e))t.toggleSelection(n);else{if(t.selectionMode==="none")return;if(t.selectionMode==="single"){if(t.isSelected(n)&&!t.disallowEmptySelection)t.toggleSelection(n);else t.replaceSelection(n)}else if(e&&e.shiftKey)t.extendSelection(n);else if(t.selectionBehavior==="toggle"||e&&((0,N)(e)||e.pointerType==="touch"||e.pointerType==="virtual"))t.toggleSelection(n);else t.replaceSelection(n)}};(0,o.useEffect)(()=>{let e=n===t.focusedKey;if(e&&t.isFocused&&!a){if(s)s();else if(document.activeElement!==r.current)(0,l.ex)(r.current)}},[r,n,t.focusedKey,t.childFocusStrategy,t.isFocused,a]);f=f||t.isDisabled(n);let v={};if(!a&&!f)v={tabIndex:n===t.focusedKey?0:-1,onFocus(e){if(e.target===r.current)t.setFocusedKey(n)}};else if(f)v.onMouseDown=e=>{e.preventDefault()};let m=!f&&t.canSelectItem(n);let y=h&&!f;let w=y&&(t.selectionBehavior==="replace"?!m:t.isEmpty);let x=y&&m&&t.selectionBehavior==="replace";let b=w||x;let S=(0,o.useRef)(null);let k=b&&m;let j=(0,o.useRef)(false);let C=(0,o.useRef)(false);let T={};if(i){T.onPressStart=e=>{S.current=e.pointerType;j.current=k;if(e.pointerType==="keyboard"&&(!b||U()))g(e)};if(!p)T.onPress=e=>{if(w||x&&e.pointerType!=="mouse"){if(e.pointerType==="keyboard"&&!W())return;h()}else if(e.pointerType!=="keyboard")g(e)};else{T.onPressUp=e=>{if(e.pointerType!=="keyboard")g(e)};T.onPress=w?()=>h():null}}else{T.onPressStart=e=>{S.current=e.pointerType;j.current=k;C.current=w;if(e.pointerType==="mouse"&&!w||e.pointerType==="keyboard"&&(!h||U()))g(e)};T.onPress=e=>{if(e.pointerType==="touch"||e.pointerType==="pen"||e.pointerType==="virtual"||e.pointerType==="keyboard"&&b&&W()||e.pointerType==="mouse"&&C.current){if(b)h();else g(e)}}}v["data-key"]=n;T.preventFocusOnPress=a;let{pressProps:E,isPressed:_}=(0,c.r7)(T);let I=x?e=>{if(S.current==="mouse"){e.stopPropagation();e.preventDefault();h()}}:undefined;let{longPressProps:M}=(0,c.TA)({isDisabled:!k,onLongPress(e){if(e.pointerType==="touch"){g(e);t.setSelectionBehavior("toggle")}}});let D=e=>{if(S.current==="touch"&&j.current)e.preventDefault()};return{itemProps:(0,u.dG)(v,m||w?E:{},k?M:{},{onDoubleClick:I,onDragStartCapture:D}),isPressed:_,isSelected:t.isSelected(n),isFocused:t.isFocused&&t.focusedKey===n,isDisabled:f,allowsSelection:m,hasAction:b}}function W(){let e=window.event;return(e===null||e===void 0?void 0:e.key)==="Enter"}function U(){let e=window.event;return(e===null||e===void 0?void 0:e.key)===" "||(e===null||e===void 0?void 0:e.code)==="Space"}class K{getNextKey(e){e=this.collection.getKeyAfter(e);while(e!=null){let t=this.collection.getItem(e);if(t.type==="item"&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyAfter(e)}return null}getPreviousKey(e){e=this.collection.getKeyBefore(e);while(e!=null){let t=this.collection.getItem(e);if(t.type==="item"&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyBefore(e)}return null}findKey(e,t,n){let r=this.getItem(e);if(!r)return null;let o=r.getBoundingClientRect();do{e=t(e);r=this.getItem(e)}while(r&&n(o,r.getBoundingClientRect()));return e}isSameRow(e,t){return e.top===t.top||e.left!==t.left}isSameColumn(e,t){return e.left===t.left||e.top!==t.top}getKeyBelow(e){if(this.layout==="grid"&&this.orientation==="vertical")return this.findKey(e,e=>this.getNextKey(e),this.isSameRow);else return this.getNextKey(e)}getKeyAbove(e){if(this.layout==="grid"&&this.orientation==="vertical")return this.findKey(e,e=>this.getPreviousKey(e),this.isSameRow);else return this.getPreviousKey(e)}getNextColumn(e,t){return t?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){if(this.layout==="grid"){if(this.orientation==="vertical")return this.getNextColumn(e,this.direction==="rtl");else return this.findKey(e,e=>this.getNextColumn(e,this.direction==="rtl"),this.isSameColumn)}else if(this.orientation==="horizontal")return this.getNextColumn(e,this.direction==="rtl");return null}getKeyLeftOf(e){if(this.layout==="grid"){if(this.orientation==="vertical")return this.getNextColumn(e,this.direction==="ltr");else return this.findKey(e,e=>this.getNextColumn(e,this.direction==="ltr"),this.isSameColumn)}else if(this.orientation==="horizontal")return this.getNextColumn(e,this.direction==="ltr");return null}getFirstKey(){let e=this.collection.getFirstKey();while(e!=null){let t=this.collection.getItem(e);if(t.type==="item"&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyAfter(e)}return null}getLastKey(){let e=this.collection.getLastKey();while(e!=null){let t=this.collection.getItem(e);if(t.type==="item"&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyBefore(e)}return null}getItem(e){return this.ref.current.querySelector(`[data-key="${e}"]`)}getKeyPageAbove(e){let t=this.ref.current;let n=this.getItem(e);if(!n)return null;if(!(0,u.a9)(t))return this.getFirstKey();let r=t.getBoundingClientRect();let o=n.getBoundingClientRect();if(this.orientation==="horizontal"){let i=r.x-t.scrollLeft;let a=Math.max(0,o.x-i+o.width-r.width);while(n&&o.x-i>a){e=this.getKeyAbove(e);n=e==null?null:this.getItem(e);o=n===null||n===void 0?void 0:n.getBoundingClientRect()}}else{let i=r.y-t.scrollTop;let a=Math.max(0,o.y-i+o.height-r.height);while(n&&o.y-i>a){e=this.getKeyAbove(e);n=e==null?null:this.getItem(e);o=n===null||n===void 0?void 0:n.getBoundingClientRect()}}return e!==null&&e!==void 0?e:this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current;let n=this.getItem(e);if(!n)return null;if(!(0,u.a9)(t))return this.getLastKey();let r=t.getBoundingClientRect();let o=n.getBoundingClientRect();if(this.orientation==="horizontal"){let i=r.x-t.scrollLeft;let a=Math.min(t.scrollWidth,o.x-i-o.width+r.width);while(n&&o.x-i<a){e=this.getKeyBelow(e);n=e==null?null:this.getItem(e);o=n===null||n===void 0?void 0:n.getBoundingClientRect()}}else{let i=r.y-t.scrollTop;let a=Math.min(t.scrollHeight,o.y-i-o.height+r.height);while(n&&o.y-i<a){e=this.getKeyBelow(e);n=e==null?null:this.getItem(e);o=n===null||n===void 0?void 0:n.getBoundingClientRect()}}return e!==null&&e!==void 0?e:this.getLastKey()}getKeyForSearch(e,t){if(!this.collator)return null;let n=this.collection;let r=t||this.getFirstKey();while(r!=null){let t=n.getItem(r);let o=t.textValue.slice(0,e.length);if(t.textValue&&this.collator.compare(o,e)===0)return r;r=this.getKeyBelow(r)}return null}constructor(...e){if(e.length===1){let t=e[0];this.collection=t.collection;this.ref=t.ref;this.disabledKeys=t.disabledKeys||new Set;this.orientation=t.orientation;this.direction=t.direction;this.layout=t.layout||"stack"}else{this.collection=e[0];this.disabledKeys=e[1];this.ref=e[2];this.collator=e[3];this.layout="stack";this.orientation="vertical"}if(this.layout==="stack"&&this.orientation==="vertical"){this.getKeyLeftOf=undefined;this.getKeyRightOf=undefined}}}function $(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:a,autoFocus:s,shouldFocusWrap:l,isVirtualized:u,disallowEmptySelection:c,selectOnFocus:f=t.selectionBehavior==="replace",disallowTypeAhead:h,shouldUseVirtualFocus:p,allowsTabNavigation:g}=e;let v=(0,R)({usage:"search",sensitivity:"base"});let m=t.disabledBehavior;let y=(0,o.useMemo)(()=>a||new(0,K)(n,m==="selection"?new Set:r,i,v),[a,n,r,i,v,m]);let{collectionProps:w}=(0,F)({ref:i,selectionManager:t,keyboardDelegate:y,autoFocus:s,shouldFocusWrap:l,disallowEmptySelection:c,selectOnFocus:f,disallowTypeAhead:h,shouldUseVirtualFocus:p,allowsTabNavigation:g,isVirtualized:u,scrollRef:i});return{listProps:w}};function q(e){return null}q.getCollectionNode=function* e(e,t){let{childItems:n,title:r,children:i}=e;let a=e.title||e.children;let s=e.textValue||(typeof a==="string"?a:"")||e["aria-label"]||"";if(!s&&!(t===null||t===void 0?void 0:t.suppressTextValueWarning))console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop.");yield{type:"item",props:e,rendered:a,textValue:s,"aria-label":e["aria-label"],hasChildNodes:Y(e),*childNodes(){if(n)for(let e of n)yield{type:"item",value:e};else if(r){let e=[];(0,o).Children.forEach(i,t=>{e.push({type:"item",element:t})});yield*e}}}};function Y(e){if(e.hasChildItems!=null)return e.hasChildItems;if(e.childItems)return true;if(e.title&&(0,o).Children.count(e.children)>0)return true;return false}let G=q;function X(e){return null}X.getCollectionNode=function* e(e){let{children:t,title:n,items:r}=e;yield{type:"section",props:e,hasChildNodes:true,rendered:n,"aria-label":e["aria-label"],*childNodes(){if(typeof t==="function"){if(!r)throw new Error("props.children was a function but props.items is missing");for(let e of r)yield{type:"item",value:e,renderer:t}}else{let e=[];(0,o).Children.forEach(t,t=>{e.push({type:"item",element:t})});yield*e}}}};let Q=X;class J{build(e,t){this.context=t;return ee(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:n}=e;if(typeof t==="function"){if(!n)throw new Error("props.children was a function but props.items is missing");for(let n of e.items)yield*this.getFullNode({value:n},{renderer:t})}else{let e=[];(0,o).Children.forEach(t,t=>{e.push(t)});let n=0;for(let t of e){let e=this.getFullNode({element:t,index:n},{});for(let t of e){n++;yield t}}}}getKey(e,t,n,r){if(e.key!=null)return e.key;if(t.type==="cell"&&t.key!=null)return`${r}${t.key}`;let o=t.value;if(o!=null){var i;let e=(i=o.key)!==null&&i!==void 0?i:o.id;if(e==null)throw new Error("No key found for item");return e}return r?`${r}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,n,r){let i=e.element;if(!i&&e.value&&t&&t.renderer){let n=this.cache.get(e.value);if(n&&(!n.shouldInvalidate||!n.shouldInvalidate(this.context))){n.index=e.index;n.parentKey=r?r.key:null;yield n;return}i=t.renderer(e.value)}if((0,o).isValidElement(i)){let o=i.type;if(typeof o!=="function"&&typeof o.getCollectionNode!=="function"){let e=typeof i.type==="function"?i.type.name:i.type;throw new Error(`Unknown element <${e}> in collection.`)}let a=o.getCollectionNode(i.props,this.context);let s=e.index;let l=a.next();while(!l.done&&l.value){let o=l.value;e.index=s;let u=o.key;if(!u)u=o.element?null:this.getKey(i,e,t,n);let c=this.getFullNode({...o,key:u,index:s,wrapper:et(e.wrapper,o.wrapper)},this.getChildState(t,o),n?`${n}${i.key}`:i.key,r);let f=[...c];for(let t of f){t.value=o.value||e.value;if(t.value)this.cache.set(t.value,t);if(e.type&&t.type!==e.type)throw new Error(`Unsupported type <${en(t.type)}> in <${en(r.type)}>. Only <${en(e.type)}> is supported.`);s++;yield t}l=a.next(f)}return}if(e.key==null)return;let a=this;let s={type:e.type,props:e.props,key:e.key,parentKey:r?r.key:null,value:e.value,level:r?r.level+1:0,index:e.index,rendered:e.rendered,textValue:e.textValue,"aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes,childNodes:ee(function*(){if(!e.hasChildNodes)return;let n=0;for(let r of e.childNodes()){if(r.key!=null)r.key=`${s.key}${r.key}`;r.index=n;let e=a.getFullNode(r,a.getChildState(t,r),s.key,s);for(let t of e){n++;yield t}}})};yield s}constructor(){this.cache=new WeakMap}}function ee(e){let t=[];let n=null;return{*[Symbol.iterator](){for(let e of t)yield e;if(!n)n=e();for(let e of n){t.push(e);yield e}}}}function et(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function en(e){return e[0].toUpperCase()+e.slice(1)}function er(e,t,n){let r=(0,o.useMemo)(()=>new(0,J),[]);let{children:i,items:a,collection:s}=e;let l=(0,o.useMemo)(()=>{if(s)return s;let e=r.build({children:i,items:a},n);return t(e)},[r,i,a,s,n,t]);return l}function eo(e,t){if(typeof t.getChildren==="function")return t.getChildren(e.key);return e.childNodes}function ei(e){return ea(e,0)}function ea(e,t){if(t<0)return undefined;let n=0;for(let r of e){if(n===t)return r;n++}}function es(e){let t=undefined;for(let n of e)t=n;return t}function el(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...eu(e,t),t];let o=[...eu(e,n),n];let i=r.slice(0,o.length).findIndex((e,t)=>e!==o[t]);if(i!==-1){t=r[i];n=o[i];return t.index-n.index}if(r.findIndex(e=>e===n)>=0)return 1;else if(o.findIndex(e=>e===t)>=0)return-1;return-1}function eu(e,t){let n=[];while((t===null||t===void 0?void 0:t.parentKey)!=null){t=e.getItem(t.parentKey);n.unshift(t)}return n}const ec=new WeakMap;function ed(e){let t=ec.get(e);if(t!=null)return t;t=0;let n=r=>{for(let o of r)if(o.type==="section")n((0,eo)(o,e));else t++};n(e);ec.set(e,t);return t};const ef=new WeakMap;function eh(e){if(typeof e==="string")return e.replace(/\s*/g,"");return""+e}function ep(e,t){let n=ef.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${eh(t)}`}function eg(e,t,n){let r=(0,u.zL)(e,{labelable:true});let{listProps:o}=(0,$)({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys});let{focusWithinProps:i}=(0,c.L_)({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange});let a=(0,u.Me)(e.id);(0,ef).set(t,{id:a,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction});let{labelProps:s,fieldProps:l}=(0,f)({...e,id:a,labelElementType:"span"});return{labelProps:s,listBoxProps:(0,u.dG)(r,i,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...(0,u.dG)(l,o)})}}function ev(e,t,n){let{key:r}=e;let o=(0,ef).get(t);var i;let a=(i=e.isDisabled)!==null&&i!==void 0?i:t.disabledKeys.has(r);var s;let l=(s=e.isSelected)!==null&&s!==void 0?s:t.selectionManager.isSelected(r);var f;let h=(f=e.shouldSelectOnPressUp)!==null&&f!==void 0?f:o===null||o===void 0?void 0:o.shouldSelectOnPressUp;var p;let g=(p=e.shouldFocusOnHover)!==null&&p!==void 0?p:o===null||o===void 0?void 0:o.shouldFocusOnHover;var v;let m=(v=e.shouldUseVirtualFocus)!==null&&v!==void 0?v:o===null||o===void 0?void 0:o.shouldUseVirtualFocus;var y;let w=(y=e.isVirtualized)!==null&&y!==void 0?y:o===null||o===void 0?void 0:o.isVirtualized;let x=(0,u.mp)();let b=(0,u.mp)();let S={role:"option","aria-disabled":a||undefined,"aria-selected":t.selectionManager.selectionMode!=="none"?l:undefined};if(!((0,u.V5)()&&(0,u.Pf)())){S["aria-label"]=e["aria-label"];S["aria-labelledby"]=x;S["aria-describedby"]=b}if(w){var k;let e=Number((k=t.collection.getItem(r))===null||k===void 0?void 0:k.index);S["aria-posinset"]=Number.isNaN(e)?undefined:e+1;S["aria-setsize"]=(0,ed)(t.collection)}let{itemProps:j,isPressed:C,isFocused:T,hasAction:E,allowsSelection:_}=(0,V)({selectionManager:t.selectionManager,key:r,ref:n,shouldSelectOnPressUp:h,allowsDifferentPressOrigin:h&&g,isVirtualized:w,shouldUseVirtualFocus:m,isDisabled:a,onAction:(o===null||o===void 0?void 0:o.onAction)?()=>{var e;return o===null||o===void 0?void 0:(e=o.onAction)===null||e===void 0?void 0:e.call(o,r)}:undefined});let{hoverProps:I}=(0,c.XI)({isDisabled:a||!g,onHoverStart(){if(!(0,c.E)()){t.selectionManager.setFocused(true);t.selectionManager.setFocusedKey(r)}}});return{optionProps:{...S,...(0,u.dG)(j,I),id:(0,ep)(t,r)},labelProps:{id:x},descriptionProps:{id:b},isFocused:T,isFocusVisible:T&&(0,c.E)(),isSelected:l,isDisabled:a,isPressed:C,allowsSelection:_,hasAction:E}}function em(e){let{heading:t,"aria-label":n}=e;let r=(0,u.Me)();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:undefined}}};function ey(e,t,n){let[r,i]=(0,o.useState)(e||t);let a=(0,o.useRef)(e!==undefined);let s=e!==undefined;(0,o.useEffect)(()=>{let e=a.current;if(e!==s)console.warn(`WARN: A component changed from ${e?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`);a.current=s},[s]);let l=s?e:r;let u=(0,o.useCallback)((e,...t)=>{let r=(e,...t)=>{if(n){if(!Object.is(l,e))n(e,...t)}if(!s)l=e};if(typeof e==="function"){console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320");let n=(n,...o)=>{let i=e(s?l:n,...o);r(i,...t);if(!s)return i;return n};i(n)}else{if(!s)i(e);r(e,...t)}},[s,l,n]);return[l,u]}function ew(e,t=-Infinity,n=Infinity){let r=Math.min(Math.max(e,t),n);return r}function ex(e,t,n,r){let o=(e-(isNaN(t)?0:t))%r;let i=Math.abs(o)*2>=r?e+Math.sign(o)*(r-Math.abs(o)):e-o;if(!isNaN(t)){if(i<t)i=t;else if(!isNaN(n)&&i>n)i=t+Math.floor((n-t)/r)*r}else if(!isNaN(n)&&i>n)i=Math.floor(n/r)*r;let a=r.toString();let s=a.indexOf(".");let l=s>=0?a.length-s:0;if(l>0){let e=Math.pow(10,l);i=Math.round(i*e)/e}return i}function eb(e,t,n=10){const r=Math.pow(n,t);return Math.round(e*r)/r};class eS extends Set{constructor(e,t,n){super(e);if(e instanceof eS){this.anchorKey=t||e.anchorKey;this.currentKey=n||e.currentKey}else{this.anchorKey=t;this.currentKey=n}}}function ek(e,t){if(e.size!==t.size)return false;for(let n of e){if(!t.has(n))return false}return true}function ej(e){let{selectionMode:t="none",disallowEmptySelection:n,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:a="all"}=e;let s=(0,o.useRef)(false);let[,l]=(0,o.useState)(false);let u=(0,o.useRef)(null);let c=(0,o.useRef)(null);let[,f]=(0,o.useState)(null);let h=(0,o.useMemo)(()=>eC(e.selectedKeys),[e.selectedKeys]);let p=(0,o.useMemo)(()=>eC(e.defaultSelectedKeys,new(0,eS)),[e.defaultSelectedKeys]);let[g,v]=(0,ey)(h,p,e.onSelectionChange);let m=(0,o.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]);let[y,w]=(0,o.useState)(i);if(i==="replace"&&y==="toggle"&&typeof g==="object"&&g.size===0)w("replace");let x=(0,o.useRef)(i);(0,o.useEffect)(()=>{if(i!==x.current){w(i);x.current=i}},[i]);return{selectionMode:t,disallowEmptySelection:n,selectionBehavior:y,setSelectionBehavior:w,get isFocused(){return s.current},setFocused(e){s.current=e;l(e)},get focusedKey(){return u.current},get childFocusStrategy(){return c.current},setFocusedKey(e,t="first"){u.current=e;c.current=t;f(e)},selectedKeys:g,setSelectedKeys(e){if(r||!ek(e,g))v(e)},disabledKeys:m,disabledBehavior:a}}function eC(e,t){if(!e)return t;return e==="all"?"all":new(0,eS)(e)}class eT{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){if(e==null||this.collection.getItem(e))this.state.setFocusedKey(e,t)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode==="none")return false;e=this.getKey(e);return this.state.selectedKeys==="all"?this.canSelectItem(e):this.state.selectedKeys.has(e)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return false;if(this.state.selectedKeys==="all")return true;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys();let t=this.state.selectedKeys;this._isSelectAll=e.every(e=>t.has(e));return this._isSelectAll}get firstSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);if(!e||n&&(0,el)(this.collection,n,e)<0)e=n}return e===null||e===void 0?void 0:e.key}get lastSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);if(!e||n&&(0,el)(this.collection,n,e)>0)e=n}return e===null||e===void 0?void 0:e.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(e);return}e=this.getKey(e);let t;if(this.state.selectedKeys==="all")t=new(0,eS)([e],e,e);else{let n=this.state.selectedKeys;let r=n.anchorKey||e;t=new(0,eS)(n,r,e);for(let o of this.getKeyRange(r,n.currentKey||e))t.delete(o);for(let n of this.getKeyRange(e,r))if(this.canSelectItem(n))t.add(n)}this.state.setSelectedKeys(t)}getKeyRange(e,t){let n=this.collection.getItem(e);let r=this.collection.getItem(t);if(n&&r){if((0,el)(this.collection,n,r)<=0)return this.getKeyRangeInternal(e,t);return this.getKeyRangeInternal(t,e)}return[]}getKeyRangeInternal(e,t){let n=[];let r=e;while(r){let e=this.collection.getItem(r);if(e&&e.type==="item"||e.type==="cell"&&this.allowsCellSelection)n.push(r);if(r===t)return n;r=this.collection.getKeyAfter(r)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t)return e;if(t.type==="cell"&&this.allowsCellSelection)return e;while(t.type!=="item"&&t.parentKey!=null)t=this.collection.getItem(t.parentKey);if(!t||t.type!=="item")return null;return t.key}toggleSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}e=this.getKey(e);if(e==null)return;let t=new(0,eS)(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);if(t.has(e))t.delete(e);else if(this.canSelectItem(e)){t.add(e);t.anchorKey=e;t.currentKey=e}if(this.disallowEmptySelection&&t.size===0)return;this.state.setSelectedKeys(t)}replaceSelection(e){if(this.selectionMode==="none")return;e=this.getKey(e);if(e==null)return;let t=this.canSelectItem(e)?new(0,eS)([e],e,e):new(0,eS);this.state.setSelectedKeys(t)}setSelectedKeys(e){if(this.selectionMode==="none")return;let t=new(0,eS);for(let n of e){n=this.getKey(n);if(n!=null){t.add(n);if(this.selectionMode==="single")break}}this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=[];let t=n=>{while(n){if(this.canSelectItem(n)){let r=this.collection.getItem(n);if(r.type==="item")e.push(n);if(r.hasChildNodes&&(this.allowsCellSelection||r.type!=="item"))t((0,ei)((0,eo)(r,this.collection)).key)}n=this.collection.getKeyAfter(n)}};t(this.collection.getFirstKey());return e}selectAll(){if(!this.isSelectAll&&this.selectionMode==="multiple")this.state.setSelectedKeys("all")}clearSelection(){if(!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0))this.state.setSelectedKeys(new(0,eS))}toggleSelectAll(){if(this.isSelectAll)this.clearSelection();else this.selectAll()}select(e,t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){if(this.isSelected(e)&&!this.disallowEmptySelection)this.toggleSelection(e);else this.replaceSelection(e)}else if(this.selectionBehavior==="toggle"||t&&(t.pointerType==="touch"||t.pointerType==="virtual"))this.toggleSelection(e);else this.replaceSelection(e)}isSelectionEqual(e){if(e===this.state.selectedKeys)return true;let t=this.selectedKeys;if(e.size!==t.size)return false;for(let n of e){if(!t.has(n))return false}for(let n of t){if(!e.has(n))return false}return true}canSelectItem(e){if(this.state.selectionMode==="none"||this.state.disabledKeys.has(e))return false;let t=this.collection.getItem(e);if(!t||t.type==="cell"&&!this.allowsCellSelection)return false;return true}isDisabled(e){return this.state.disabledKeys.has(e)&&this.state.disabledBehavior==="all"}constructor(e,t,n){this.collection=e;this.state=t;var r;this.allowsCellSelection=(r=n===null||n===void 0?void 0:n.allowsCellSelection)!==null&&r!==void 0?r:false;this._isSelectAll=null}};class eE{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){let t=this.keyMap.get(e);return(t===null||t===void 0?void 0:t.childNodes)||[]}constructor(e){this.keyMap=new Map;this.iterable=e;let t=e=>{this.keyMap.set(e.key,e);if(e.childNodes&&e.type==="section")for(let n of e.childNodes)t(n)};for(let n of e)t(n);let n;let r=0;for(let[e,t]of this.keyMap){if(n){n.nextKey=e;t.prevKey=n.key}else{this.firstKey=e;t.prevKey=undefined}if(t.type==="item")t.index=r++;n=t;n.nextKey=undefined}this.lastKey=n===null||n===void 0?void 0:n.key}}function e_(e){let{filter:t}=e;let n=(0,ej)(e);let r=(0,o.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]);let i=(0,o.useCallback)(e=>t?new(0,eE)(t(e)):new(0,eE)(e),[t]);let a=(0,o.useMemo)(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]);let s=(0,er)(e,i,a);let l=(0,o.useMemo)(()=>new(0,eT)(s,n),[s,n]);const u=(0,o.useRef)(null);(0,o.useEffect)(()=>{if(n.focusedKey!=null&&!s.getItem(n.focusedKey)){const e=u.current.getItem(n.focusedKey);const t=[...u.current.getKeys()].map(e=>{const t=u.current.getItem(e);return t.type==="item"?t:null}).filter(e=>e!==null);const r=[...s.getKeys()].map(e=>{const t=s.getItem(e);return t.type==="item"?t:null}).filter(e=>e!==null);const o=t.length-r.length;let i=Math.min(o>1?Math.max(e.index-o+1,0):e.index,r.length-1);let a;while(i>=0){if(!l.isDisabled(r[i].key)){a=r[i];break}if(i<r.length-1)i++;else{if(i>e.index)i=e.index;i--}}n.setFocusedKey(a?a.key:null)}u.current=s},[s,l,n,n.focusedKey]);return{collection:s,disabledKeys:r,selectionManager:l}}function eI(e){var t;let[n,r]=(0,$58Phs$useControlledState)(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange);let o=(0,$58Phs$useMemo)(()=>n!=null?[n]:[],[n]);let{collection:i,disabledKeys:a,selectionManager:s}=(0,e_)({...e,selectionMode:"single",disallowEmptySelection:true,allowDuplicateSelectionEvents:true,selectedKeys:o,onSelectionChange:t=>{let o=t.values().next().value;if(o===n&&e.onSelectionChange)e.onSelectionChange(o);r(o)}});let l=n!=null?i.getItem(n):null;return{collection:i,disabledKeys:a,selectionManager:s,selectedKey:n,setSelectedKey:r,selectedItem:l}}var eM=n(79982);var eD=n(41071);var eP=n(8780);var eO=n(25432);var eA=n(99818);var eR=n(99024);var eZ=n(10959);var ez=n(84094);var eN=n(73416);var eL=n(11504);var eB=n(76804);var eH=n(89362);var eF=n(1447);var eV=n(9579);var eW=n(24868);var eU=n(76926);var eK=n(74684);var e$=n(89116);var eq=n(86357);var eY=n(78393);var eG=n(6564);var eX=n(64355);var eQ=n(87107);var eJ=n(45492);var e0=n(56816);var e1=n(77644);var e2=n(42308);var e4=n(24307);function e5(e){const{value:t}=e;return t}class e3 extends o.PureComponent{static getDerivedStateFromProps(e,t){return{editing:t.text!==""||t.editing}}constructor(e){super(e);this.backgroundValue=0;this.id=Math.random().toString().slice(0,5);this.state={editing:false,text:"",value:0}}componentDidMount(){if(this.props.focused){this.focus()}}componentWillUnmount(){if(this.removeListeners){this.removeListeners()}}componentDidUpdate(e,t){if(!e.focused&&this.props.focused){this.focus()}if(e.value!==this.props.value){this.setState({editing:false,text:"",...this.getInitialValue()})}}parseText(){return(0,eH.sD)(this.state.text.replace(/[,.]/,(0,eH.ff)().separator))}onKeyPress=e=>{if(e.nativeEvent.key==="Backspace"&&this.state.text===""){this.setState({editing:true})}};getInitialValue(){return{value:Math.abs(this.props.value)}}focus(){this.input.focus();const e=this.getInitialValue();this.setState(e)}applyText=()=>{const{editing:e}=this.state;const t=this.parseText();const n=e?t:e5(this.state);this.setState({value:Math.abs(n),editing:false,text:""});return n};onBlur=()=>{const e=this.applyText();this.props.onBlur?.(e);if(this.removeListeners){this.removeListeners()}};onChangeText=e=>{let{onChange:t}=this.props;this.setState({text:e});t(e)};render(){const{style:e,textStyle:t}=this.props;const{editing:n,value:o,text:i}=this.state;let a=(0,r.jsx)("input",{type:"text",ref:e=>this.input=e,value:i,inputMode:"decimal",autoCapitalize:"none",onChange:e=>this.onChangeText(e.target.value),onBlur:this.onBlur,onKeyPress:this.onKeyPress,"data-testid":"amount-input",style:{flex:1,textAlign:"center",position:"absolute"}});return(0,r.jsxs)(e4.Z,{style:{justifyContent:"center",borderWidth:1,borderColor:eJ.rS.pillBorderSelected,borderRadius:4,padding:5,backgroundColor:eJ.rS.tableBackground,...e},children:[(0,r.jsx)(e4.Z,{style:{overflowY:"auto",overflowX:"hidden"},children:a}),(0,r.jsx)(e1.Z,{style:t,"data-testid":"amount-fake-input",pointerEvents:"none",children:n?i:(0,eH.eY)(o)})]})}}class e8 extends o.PureComponent{state={focused:false,isNegative:true};componentDidMount(){if(this.props.sign){this.setState({isNegative:this.props.sign==="negative"})}else if(this.props.value>0||!this.props.zeroIsNegative&&this.props.value===0){this.setState({isNegative:false})}}focus=()=>{this.setState({focused:true})};onFocus=()=>{this.focus()};toggleIsNegative=()=>{this.setState({isNegative:!this.state.isNegative},()=>{this.onBlur(this.props.value)})};maybeApplyNegative=e=>{const t=Math.abs(e);return this.state.isNegative?-t:t};onBlur=e=>{this.setState({focused:false,reallyFocused:false});this.props.onBlur?.(this.maybeApplyNegative(e))};onChange=e=>this.props.onChange?.(this.maybeApplyNegative(e));render(){const{textStyle:e,style:t,focusedStyle:n,buttonProps:o}=this.props;const{focused:i}=this.state;return(0,r.jsxs)(e4.Z,{children:[(0,r.jsx)(e3,{...this.props,ref:e=>this.amount=e,onChange:this.onChange,onBlur:this.onBlur,focused:i,style:{width:80,transform:[{translateX:6}],justifyContent:"center",...t,...n,...!i&&{opacity:0,position:"absolute",top:0}},textStyle:{fontSize:15,textAlign:"right",...e}}),(0,r.jsxs)(e4.Z,{children:[!i&&(0,r.jsx)(e0.Z,{style:{position:"absolute",right:"calc(100% + 5px)",top:"8px"},onClick:this.toggleIsNegative,children:this.state.isNegative?"−":"+"}),(0,r.jsx)(e0.Z,{onClick:this.onFocus,...o,style:{...o&&o.style,...i&&{display:"none"},":hover":{backgroundColor:"transparent"}},type:"bare",children:(0,r.jsx)(e4.Z,{style:{borderBottomWidth:1,borderColor:"#e0e0e0",justifyContent:"center",transform:[{translateY:.5}],...t},children:(0,r.jsx)(e1.Z,{style:{fontSize:15,userSelect:"none",...e},children:(0,eH.eY)(Math.abs(this.props.value))})})})]})]})}}var e6=n(383);const e7=40;function e9({title:e,flush:t,style:n}){return(0,r.jsx)(e1.Z,{style:{marginBottom:5,marginTop:t?0:25,fontSize:13,color:eJ.rS.tableRowHeaderText,paddingLeft:eJ.W2.mobileEditingPadding,textTransform:"uppercase",userSelect:"none",...n},children:e})}const te={borderWidth:1,borderColor:eJ.rS.formInputBorder,marginLeft:8,marginRight:8,height:e7,paddingHorizontal:eJ.W2.mobileEditingPadding};const tt=(0,o.forwardRef)(function e({disabled:e,style:t,onUpdate:n,...o},i){return(0,r.jsx)(e6.ZP,{ref:i,autoCorrect:"false",autoCapitalize:"none",disabled:e,onBlur:e=>{n?.(e.target.value)},style:{...te,...t,color:e?eJ.rS.tableTextInactive:eJ.rS.tableText,backgroundColor:e?eJ.rS.formInputTextReadOnlySelection:eJ.rS.tableBackground},...o})});function tn({value:e,children:t,disabled:n,rightContent:o,style:i,textStyle:a,onClick:s,...l}){return(0,r.jsxs)(e0.Z,{as:e4.Z,onClick:!n?s:undefined,style:{flexDirection:"row",alignItems:"center",...i,...te,backgroundColor:eJ.rS.tableBackground,...n&&{backgroundColor:eJ.rS.formInputTextReadOnlySelection}},bounce:false,activeStyle:{opacity:.5,boxShadow:"none"},hoveredStyle:{boxShadow:"none"},...l,children:[t?t:(0,r.jsx)(e1.Z,{style:{flex:1,userSelect:"none",...a},children:e}),!n&&o]})}function tr({checked:e,onUpdate:t,style:n,disabled:o=false}){return(0,r.jsx)("input",{disabled:o?true:undefined,type:"checkbox",checked:e,onChange:e=>t(e.target.checked),className:`${(0,eA.iv)([{marginInline:eJ.W2.mobileEditingPadding,flexShrink:0,appearance:"none",outline:0,border:"1px solid "+eJ.rS.formInputBorder,borderRadius:4,display:"flex",alignItems:"center",justifyContent:"center",color:eJ.rS.checkboxText,backgroundColor:eJ.rS.tableBackground,":checked":{border:"1px solid "+eJ.rS.checkboxBorderSelected,backgroundColor:eJ.rS.checkboxBackgroundSelected,"::after":{display:"block",background:eJ.rS.checkboxBackgroundSelected+' url(\'data:image/svg+xml; utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="white" d="M0 11l2-2 5 5L18 3l2 2L7 18z"/></svg>\') 15px 15px',width:15,height:15,content:" "}}},n])}`})};const to={SECTION_HEADING:10};let ti=(0,eR.Z)(e=>(0,eH.ZZ)(e));let ta=(0,eR.Z)(e=>(0,eH.ZZ)(e));function ts(e,t,n){let{amount:r}=e;if(n){return`Transfer ${r>0?"from":"to"} ${n.name}`}else if(t){return t.name}return""}function tl(e,t){let{date:n,amount:r}=e;return{...e,date:(0,eM.Z)((0,eD.Z)(n),t),amount:(0,eH.Bf)(r||0)}}function tu(e,t,n){let{amount:r,date:o,...i}=e;let a=eN.Ze(n);if(a.test(o)){let e=(0,eP.Z)(o,eN.D1(n),new Date);if((0,eO.Z)(e)){o=eN.is(e)}else{o=null}}else{let e=(0,eP.Z)(o,n,new Date);if(e.getFullYear()>2e3&&(0,eO.Z)(e)){o=eN.is(e)}else{o=null}}if(o==null){o=t&&t.date||eN.PR()}return{...i,date:o,amount:(0,eH.l9)(r||0)}}function tc(e,t){if(!t){return null}return e.find(e=>e.id===t)?.name}function td({status:e}){let t;switch(e){case"missed":t=eJ.rS.errorText;break;case"due":t=eJ.rS.warningText;break;case"upcoming":t=eJ.rS.tableHeaderText;break;default:}return(0,r.jsx)(e1.Z,{style:{fontSize:11,color:t,fontStyle:"italic",textAlign:"left"},children:(0,eH.VL)(e)})}const tf=70;const th=50;class tp extends o.PureComponent{constructor(e){super(e);this.state={transactions:e.transactions,editingChild:null}}serializeTransactions=(0,eR.Z)(e=>{return e.map(e=>tl(e,this.props.dateFormat))});componentDidMount(){if(this.props.adding){this.amount.focus()}}componentWillUnmount(){document.querySelector('meta[name="theme-color"]').setAttribute("content","#ffffff")}openChildEdit=e=>{this.setState({editingChild:e.id})};onAdd=()=>{this.onSave()};onSave=async()=>{let e=async()=>{let{transactions:e}=this.state;const[t,...n]=e;const{account:r}=t;let o=ta(this.props.accounts)[r];if(e.find(e=>e.account==null)){return}if(this._queuedChange){let[t,n,r]=this._queuedChange;e=await this.onEdit(t,n,r)}if(this.props.adding){e=(0,eB.V6)(e)}this.props.onSave(e);this.props.navigate(`/accounts/${o.id}`,{replace:true})};const{transactions:t}=this.state;const[n]=t;if(n.reconciled){this.props.pushModal("confirm-transaction-edit",{onConfirm:e,confirmReason:"editReconciled"})}else{e()}};onSaveChild=e=>{this.setState({editingChild:null})};onEdit=async(e,t,n)=>{let{transactions:r}=this.state;let o={...e,[t]:n};if(this.props.onEdit){o=await this.props.onEdit(o)}let{data:i}=(0,eB.Ld)(r,tu(o,null,this.props.dateFormat));this._queuedChange=null;this.setState({transactions:i});return i};onQueueChange=(e,t,n)=>{this._queuedChange=[e,t,n]};onClick=(e,t)=>{let{dateFormat:n}=this.props;this.props.pushModal("edit-field",{name:t,onSubmit:(t,r)=>{let{transactions:o}=this.state;let i=o.find(t=>t.id===e);this.onEdit(tl(i,n),t,r)}})};onDelete=()=>{let e=()=>{this.props.onDelete();const{transactions:e}=this.state;const[t,...n]=e;const{account:r}=t;if(r){this.props.navigate(`/accounts/${r}`,{replace:true})}else{this.props.navigate(-1)}};const{transactions:t}=this.state;const[n]=t;if(n.reconciled){this.props.pushModal("confirm-transaction-edit",{onConfirm:e,confirmReason:"deleteReconciled"})}else{e()}};render(){const{adding:e,categories:t,accounts:n,payees:o,renderChildEdit:i,navigate:s}=this.props;const{editingChild:l}=this.state;const u=this.serializeTransactions(this.state.transactions||[]);const[c,...f]=u;const{payee:h,category:p,account:g}=c;const v=c.amount<0?"negative":"positive";const m=ta(n)[g];const y=m&&!!m.offbudget;const w=o&&h&&ti(o)[h];const x=w&&w.transfer_acct&&ta(n)[w.transfer_acct];const b=x&&!x.offbudget;const S=ts(c,w,x);const k=(0,eP.Z)(c.date,this.props.dateFormat,new Date);const j=eN.is(k);return(0,r.jsx)(e4.Z,{style:{backgroundColor:eJ.rS.mobilePageBackground,flexGrow:1,shadowColor:eJ.rS.cardShadow,shadowOffset:{width:0,height:0},shadowRadius:4,shadowOpacity:1},children:(0,r.jsxs)(e4.Z,{style:{overflow:"hidden",display:"flex",flexGrow:1},children:[(0,r.jsxs)(e4.Z,{style:{flexShrink:0,height:th,flexDirection:"row",width:"100%",backgroundColor:eJ.rS.mobileHeaderBackground},children:[(0,r.jsxs)(e4.Z,{style:{width:tf,flexDirection:"row"},children:[(0,r.jsx)(e0.Z,{type:"bare",style:{...eJ.W2.noTapHighlight,color:eJ.rS.mobileHeaderText,justifyContent:"center",margin:10,paddingLeft:5,paddingRight:3},hoveredStyle:{color:eJ.rS.mobileHeaderText,background:eJ.rS.mobileHeaderTextHover},children:(0,r.jsxs)(a.rU,{to:-1,style:{alignItems:"center",display:"flex",textDecoration:"none"},children:[(0,r.jsx)(e$.Z,{style:{width:30,height:30,margin:-10,marginLeft:-5}}),(0,r.jsx)(e1.Z,{style:{...eJ.W2.text,fontWeight:500,marginLeft:5,marginRight:5},children:"Back"})]})}),(0,r.jsx)(e4.Z,{style:{flex:1}})]}),(0,r.jsx)(e4.Z,{style:{flex:1,justifyContent:"center",alignItems:"center",color:eJ.rS.mobileHeaderText},children:(0,r.jsx)(e2.Z,{style:{fontSize:16,fontWeight:500,userSelect:"none"},role:"heading",children:h==null?e?"New Transaction":"Transaction":S})}),(0,r.jsx)(e4.Z,{style:{width:tf}})]}),(0,r.jsxs)(e4.Z,{style:{overflowY:"auto",overflowX:"hidden",display:"block"},children:[(0,r.jsxs)(e4.Z,{style:{alignItems:"center",marginTop:20},children:[(0,r.jsx)(e9,{title:"Amount",flush:true,style:{marginBottom:0,paddingLeft:0}}),(0,r.jsx)(e8,{ref:e=>this.amount=e,value:c.amount,zeroIsNegative:true,onBlur:e=>this.onEdit(c,"amount",e.toString()),onChange:e=>this.onQueueChange(c,"amount",e),style:{transform:[]},focusedStyle:{width:"auto",padding:"5px",paddingLeft:"20px",paddingRight:"20px",minWidth:120,transform:[{translateY:-.5}]},textStyle:{fontSize:30,textAlign:"center"}})]}),(0,r.jsxs)(e4.Z,{children:[(0,r.jsx)(e9,{title:"Payee"}),(0,r.jsx)(tn,{value:S,onClick:()=>this.onClick(c.id,"payee"),"data-testid":"payee-field"})]}),(0,r.jsxs)(e4.Z,{children:[(0,r.jsx)(e9,{title:c.is_parent?"Categories (split)":"Category"}),!c.is_parent?(0,r.jsx)(tn,{style:{...(b||y)&&{fontStyle:"italic",color:eJ.rS.pageTextSubdued,fontWeight:300}},value:y?"Off Budget":b?"Transfer":tc(t,p),disabled:b||y,onClick:()=>this.onClick(c.id,"category"),"data-testid":"category-field"}):(0,r.jsx)(e1.Z,{style:{paddingLeft:eJ.W2.mobileEditingPadding},children:"Split transaction editing is not supported on mobile at this time."})]}),(0,r.jsxs)(e4.Z,{children:[(0,r.jsx)(e9,{title:"Account"}),(0,r.jsx)(tn,{disabled:!e,value:m?m.name:null,onClick:()=>this.onClick(c.id,"account"),"data-testid":"account-field"})]}),(0,r.jsxs)(e4.Z,{style:{flexDirection:"row"},children:[(0,r.jsxs)(e4.Z,{style:{flex:1},children:[(0,r.jsx)(e9,{title:"Date"}),(0,r.jsx)(tt,{type:"date",required:true,style:{color:eJ.rS.tableText,minWidth:"150px"},defaultValue:j,onUpdate:e=>this.onEdit(c,"date",(0,eM.Z)((0,eD.Z)(e),this.props.dateFormat)),onChange:e=>this.onQueueChange(c,"date",(0,eM.Z)((0,eD.Z)(e.target.value),this.props.dateFormat))})]}),c.reconciled?(0,r.jsxs)(e4.Z,{style:{marginLeft:0,marginRight:8},children:[(0,r.jsx)(e9,{title:"Reconciled"}),(0,r.jsx)(tr,{checked:true,style:{margin:"auto",width:22,height:22},disabled:true})]}):(0,r.jsxs)(e4.Z,{style:{marginLeft:0,marginRight:8},children:[(0,r.jsx)(e9,{title:"Cleared"}),(0,r.jsx)(tr,{checked:c.cleared,onUpdate:e=>this.onEdit(c,"cleared",e),style:{margin:"auto",width:22,height:22}})]})]}),(0,r.jsxs)(e4.Z,{children:[(0,r.jsx)(e9,{title:"Notes"}),(0,r.jsx)(tt,{defaultValue:c.notes,onUpdate:e=>this.onEdit(c,"notes",e),onChange:e=>this.onQueueChange(c,"notes",e.target.value),style:{marginBottom:10}})]}),!e&&(0,r.jsx)(e4.Z,{style:{alignItems:"center"},children:(0,r.jsxs)(e0.Z,{onClick:()=>this.onDelete(),style:{height:40,borderWidth:0,paddingVertical:5,marginLeft:eJ.W2.mobileEditingPadding,marginRight:eJ.W2.mobileEditingPadding,marginTop:10,marginBottom:15,backgroundColor:"transparent"},type:"bare",children:[(0,r.jsx)(eq.Z,{width:17,height:17,style:{color:eJ.rS.errorText}}),(0,r.jsx)(e1.Z,{style:{color:eJ.rS.errorText,marginLeft:5,userSelect:"none"},children:"Delete transaction"})]})})]}),(0,r.jsx)(e4.Z,{style:{paddingLeft:eJ.W2.mobileEditingPadding,paddingRight:eJ.W2.mobileEditingPadding,paddingTop:10,paddingBottom:10,backgroundColor:eJ.rS.tableHeaderBackground,borderTopWidth:1,borderColor:eJ.rS.tableBorder,marginTop:"auto",flexShrink:0},children:e?(0,r.jsxs)(e0.Z,{style:{height:40},onClick:()=>this.onAdd(),children:[(0,r.jsx)(eK.Z,{width:17,height:17,style:{color:eJ.rS.formLabelText}}),(0,r.jsx)(e1.Z,{style:{...eJ.W2.text,color:eJ.rS.formLabelText,marginLeft:5},children:"Add transaction"})]}):(0,r.jsxs)(e0.Z,{style:{height:40},onClick:()=>this.onSave(),children:[(0,r.jsx)(eQ.Z,{style:{width:16,height:16,color:eJ.rS.formInputText}}),(0,r.jsx)(e1.Z,{style:{...eJ.W2.text,marginLeft:6,color:eJ.rS.formInputText},children:"Save changes"})]})}),i({transaction:l&&u.find(e=>e.id===l),amountSign:v,getCategoryName:e=>tc(t,e),navigate:s,onEdit:this.onEdit,onStartClose:this.onSaveChild})]})})}}function tg(e){return e.id.indexOf("temp")===0}function tv(e,t){return[{id:"temp",date:t||eN.PR(),account:e,amount:0,cleared:false}]}function tm(e){const{categories:t,accounts:n,payees:i,lastTransaction:a,dateFormat:l}=e;let{id:u,transactionId:c}=(0,s.UO)();let f=(0,eW.Z)();let[h,p]=(0,o.useState)(null);let g=[];let v=false;let m=false;(0,eU.j)(eJ.rS.mobileViewTheme);(0,o.useEffect)(()=>{e.getCategories();e.getAccounts();e.getPayees();async function t(){let e=[];if(c){let{data:t}=await (0,eZ.Vn)((0,eZ.ZP)("transactions").filter({id:c}).select("*").options({splits:"grouped"}));e=(0,eB.Xt)(t);p(e)}}t()},[c]);if(t.length===0||n.length===0||c&&!h){return null}if(!c){g=tv(u||a&&a.account||null,a&&a.date);v=true}else{g=h}const y=async e=>{if(tg(e)){let t=await (0,ez.lW)("rules-run",{transaction:e});let n=(0,eH.k4)(e,t);let r={...e};if(n){Object.keys(n).forEach(e=>{if(r[e]==null){r[e]=n[e]}})}return r}return e};const w=async t=>{if(m){return}const n=(0,eH.Th)(g||[],t);if(n.added.length>0||n.updated.length>0||n.deleted.length){const e=await (0,ez.lW)("transactions-batch-update",{added:n.added,deleted:n.deleted,updated:n.updated})}if(v){e.setLastTransaction(t[0])}};const x=async()=>{if(v){m=true}else{const e={deleted:g};const t=await (0,ez.lW)("transactions-batch-update",e)}};return(0,r.jsx)(e4.Z,{style:{flex:1,backgroundColor:eJ.rS.pageBackground},children:(0,r.jsx)(tp,{transactions:g,adding:v,categories:t,accounts:n,payees:i,pushModal:e.pushModal,navigate:f,renderChildEdit:e=>{},dateFormat:l,onEdit:y,onSave:w,onDelete:x})})}const ty=e=>{const{list:t}=(0,eV.Z)();const n=(0,i.v9)(e=>e.queries.payees);const o=(0,i.v9)(e=>e.queries.lastTransaction);const a=(0,i.v9)(e=>e.queries.accounts);const s=(0,i.v9)(e=>e.prefs.local.dateFormat||"MM/dd/yyyy");const l=(0,eF.o)();return(0,r.jsx)(tm,{...e,...l,categories:t,payees:n,lastTransaction:o,accounts:a,dateFormat:s})};class tw extends o.PureComponent{render(){const{transaction:e,accounts:t,categories:n,payees:o,showCategory:i,added:a,onSelect:s,style:l}=this.props;let{id:u,payee:c,amount:f,category:h,cleared:p,is_parent:g,notes:v,schedule:m}=e;if((0,eB.J4)(u)){f=(0,eL.lP)(f)}let y=tc(n,h);let w=o&&c&&ti(o)[c];let x=w&&w.transfer_acct&&ta(t)[w.transfer_acct];let b=ts(e,w,x);let S=x?"Transfer":g?"Split":y;let k=(0,eB.J4)(u);let j=e.reconciled;let C=k&&{fontStyle:"italic",color:eJ.rS.pageTextLight};return(0,r.jsx)(e0.Z,{onClick:()=>s(e),style:{backgroundColor:eJ.rS.tableBackground,border:"none",width:"100%"},children:(0,r.jsxs)(tC,{style:{flex:1,height:60,padding:"5px 10px",...k&&{backgroundColor:eJ.rS.tableRowHeaderBackground},...l},children:[(0,r.jsxs)(e4.Z,{style:{flex:1},children:[(0,r.jsxs)(e4.Z,{style:{flexDirection:"row",alignItems:"center"},children:[m&&(0,r.jsx)(eY.Z,{style:{width:12,height:12,marginRight:5,color:C.color||eJ.rS.menuItemText}}),(0,r.jsx)(e2.Z,{style:{...eJ.W2.text,...C,fontSize:14,fontWeight:a?"600":"400",...b===""&&{color:eJ.rS.tableTextLight,fontStyle:"italic"}},children:b||"Empty"})]}),k?(0,r.jsx)(td,{status:v}):(0,r.jsxs)(e4.Z,{style:{flexDirection:"row",alignItems:"center",marginTop:3},children:[j?(0,r.jsx)(eX.Z,{style:{width:11,height:11,color:eJ.rS.noticeTextLight,marginRight:5}}):(0,r.jsx)(eG.Z,{style:{width:11,height:11,color:p?eJ.rS.noticeTextLight:eJ.rS.pageTextSubdued,marginRight:5}}),i&&(0,r.jsx)(e2.Z,{style:{fontSize:11,marginTop:1,fontWeight:"400",color:S?eJ.rS.tableTextSelected:eJ.rS.menuItemTextSelected,fontStyle:S?null:"italic",textAlign:"left"},children:S||"Uncategorized"})]})]}),(0,r.jsx)(e1.Z,{style:{...eJ.W2.text,...C,marginLeft:25,marginRight:5,fontSize:14},children:(0,eH.zA)(f)})]})})}}class tx extends o.Component{makeData=(0,eR.Z)(e=>{const t=[];e.forEach(e=>{if(t.length===0||e.date!==t[t.length-1].date){let n=t[t.length-1];if(n&&n.data.length>0){let e=n.data;e[e.length-1].isLast=true}t.push({id:`${(0,eB.J4)(e.id)?"preview/":""}${e.date}`,date:e.date,data:[]})}if(!e.is_child){t[t.length-1].data.push(e)}});return t});render(){const{transactions:e,scrollProps:t={},onLoadMore:n}=this.props;const o=this.makeData(e);return(0,r.jsxs)(r.Fragment,{children:[t.ListHeaderComponent,(0,r.jsxs)(tb,{...t,"aria-label":"transaction list",label:"",loadMore:n,selectionMode:"none",children:[o.length===0?(0,r.jsx)(Q,{children:(0,r.jsx)(G,{textValue:"No transactions",children:(0,r.jsx)("div",{style:{display:"flex",justifyContent:"center",width:"100%",backgroundColor:eJ.rS.mobilePageBackground},children:(0,r.jsx)(e1.Z,{style:{fontSize:15},children:"No transactions"})})})}):null,o.map(e=>{return(0,r.jsx)(Q,{title:(0,r.jsx)("span",{children:eN.WU(e.date,"MMMM dd, yyyy")}),children:e.data.map((e,t,n)=>{return(0,r.jsx)(G,{style:{fontSize:t===n.length-1?98:"inherit"},textValue:e.id,children:(0,r.jsx)(tw,{transaction:e,categories:this.props.categories,accounts:this.props.accounts,payees:this.props.payees,showCategory:this.props.showCategory,added:this.props.isNew(e.id),onSelect:this.props.onSelect})},e.id)})},e.id)})]})]})}}function tb(e){let t=e_(e);let n=(0,o.useRef)();let{listBoxProps:i,labelProps:a}=eg(e,t,n);(0,o.useEffect)(()=>{function t(){if(Math.abs(n.current.scrollHeight-n.current.clientHeight-n.current.scrollTop)<n.current.clientHeight){e.loadMore()}}n.current.addEventListener("scroll",t);return()=>{n.current?.removeEventListener("scroll",t)}},[t.collection]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{...a,children:e.label}),(0,r.jsx)("ul",{...i,ref:n,style:{padding:0,listStyle:"none",margin:0,width:"100%"},children:[...t.collection].map(e=>(0,r.jsx)(tS,{section:e,state:t},e.key))})]})}function tS({section:e,state:t}){let{itemProps:n,headingProps:o,groupProps:i}=em({heading:e.rendered,"aria-label":e["aria-label"]});return(0,r.jsxs)("li",{...n,style:{width:"100%"},children:[e.rendered&&(0,r.jsx)("div",{...o,className:`${(0,eA.iv)(eJ.W2.smallText,{backgroundColor:eJ.rS.pageBackground,borderBottom:`1px solid ${eJ.rS.tableBorder}`,borderTop:`1px solid ${eJ.rS.tableBorder}`,color:eJ.rS.tableHeaderText,display:"flex",justifyContent:"center",paddingBottom:4,paddingTop:4,position:"sticky",top:"0",width:"100%",zIndex:to.SECTION_HEADING})}`,children:e.rendered}),(0,r.jsx)("ul",{...i,style:{padding:0,listStyle:"none"},children:[...e.childNodes].map((e,n,o)=>(0,r.jsx)(tk,{item:e,state:t,isLast:n===o.length-1},e.key))})]})}function tk({isLast:e,item:t,state:n}){let i=(0,o.useRef)();let{optionProps:a,isSelected:s}=ev({key:t.key},n,i);let{isFocusVisible:c,focusProps:f}=(0,l.Fx)();return(0,r.jsx)("li",{...(0,u.dG)(a,f),ref:i,style:{background:s?eJ.rS.tableRowBackgroundHighlight:eJ.rS.tableBackground,color:s?eJ.rS.mobileModalText:null,outline:c?"2px solid orange":"none",...!e&&{borderBottom:`1px solid ${eJ.rS.tableBorder}`}},children:t.rendered})}const tj=50;const tC=(0,o.forwardRef)(({children:e,style:t,...n},o)=>{return(0,r.jsx)(e4.Z,{style:{height:tj,flexDirection:"row",alignItems:"center",paddingLeft:10,paddingRight:10,...t},ref:o,...n,children:e})})},5646:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r=n(43188);var o=n(66204);var i=n(37496);var a=n(25432);var s=n(41071);var l=n(79982);var u=n(18748);var c=n(89362);var f=n(9579);var h=n(11892);var p=n(78393);var g=n(45492);var v=n(59128);var m=n(10464);function y(e,t){let{date:n}=e;if(!(0,a.Z)((0,s.Z)(n))){n=null}return{...e,date:n?(0,l.Z)((0,s.Z)(n),t):null}}const w=(0,o.memo)(function e({transaction:e,fields:t,payees:n,categories:o,accounts:i,selected:a}){let s=(0,u.ch)(o)[e.category];let l=(0,u.gI)(i)[e.account];let f=(0,h.YP)();return(0,r.jsxs)(v.X2,{style:{color:g.rS.tableText},children:[(0,r.jsx)(v._7,{exposed:true,focused:false,onSelect:t=>{f({type:"select",id:e.id,event:t})},selected:a}),t.map((t,n)=>{switch(t){case"date":return(0,r.jsx)(v.gN,{width:100,children:e.date},n);case"imported_payee":return(0,r.jsx)(v.gN,{width:"flex",children:e.imported_payee},n);case"payee":return(0,r.jsx)(v.bL,{width:"flex",exposed:true,style:{flexDirection:"row",alignItems:"center",justifyContent:"flex-start"},children:()=>(0,r.jsxs)(r.Fragment,{children:[e.schedule&&(0,r.jsx)(p.Z,{style:{width:13,height:13,margin:"0 5px"}}),(0,r.jsx)(m.Z,{type:"payees",id:e.payee})]})},n);case"category":return(0,r.jsx)(v.gN,{width:"flex",title:s&&s.name,children:s?s.name:""},n);case"account":return(0,r.jsx)(v.gN,{width:"flex",title:l.name,children:l.name},n);case"notes":return(0,r.jsx)(v.gN,{width:"flex",title:e.notes,children:e.notes},n);case"amount":return(0,r.jsx)(v.gN,{width:75,style:{textAlign:"right",...g.W2.tnum},children:(0,c.zA)(e.amount)},n);default:return null}})]})});function x({transactions:e,schedules:t,renderEmpty:n,fields:a=["date","payee","amount"],style:s}){let{grouped:l}=(0,f.Z)();let{payees:u,accounts:c,dateFormat:p}=(0,i.v9)(e=>{return{payees:e.queries.payees,accounts:e.queries.accounts,dateFormat:e.prefs.local.dateFormat||"MM/dd/yyyy"}});let g=(0,h.D9)();let m=(0,h.YP)();let x=(0,o.useMemo)(()=>a,[JSON.stringify(a)]);let b=(0,o.useMemo)(()=>{return e.map(e=>y(e,p))},[e]);let S=(0,o.useCallback)(({item:e})=>{return(0,r.jsx)(w,{transaction:e,payees:u,categories:l,accounts:c,fields:x,selected:g&&g.has(e.id)})},[u,l,x,g]);return(0,r.jsx)(v.iA,{style:s,items:b,renderEmpty:n,headers:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(v._7,{exposed:true,focused:false,selected:g.size>0,width:20,onSelect:e=>m({type:"select-all",event:e})}),a.map((e,t)=>{switch(e){case"date":return(0,r.jsx)(v.gN,{width:100,children:"Date"},t);case"imported_payee":return(0,r.jsx)(v.gN,{width:"flex",children:"Imported payee"},t);case"payee":return(0,r.jsx)(v.gN,{width:"flex",children:"Payee"},t);case"category":return(0,r.jsx)(v.gN,{width:"flex",children:"Category"},t);case"account":return(0,r.jsx)(v.gN,{width:"flex",children:"Account"},t);case"notes":return(0,r.jsx)(v.gN,{width:"flex",children:"Notes"},t);case"amount":return(0,r.jsx)(v.gN,{width:75,style:{textAlign:"right"},children:"Amount"},t);default:return null}})]}),renderItem:S})}},82345:function(e,t,n){"use strict";n.d(t,{I:function(){return m},_:function(){return v}});var r=n(43188);var o=n(66204);var i=n(11535);var a=n(89362);var s=n(15685);var l=n(74684);var u=n(41883);var c=n(45492);var f=n(56816);var h=n(46405);var p=n(24307);var g=n(5291);function v({id:e,inputRef:t,initialValue:n,zeroSign:c="-",onChange:p,onBlur:v,style:m,textStyle:y,focused:w}){let x=(0,g.Z)();let[b,S]=(0,o.useState)(n===0&&c==="-"||n<0);let k=x(Math.abs(n),"financial");let[j,C]=(0,o.useState)(k);(0,o.useEffect)(()=>C(k),[k]);let T=(0,o.useRef)();function E(){S(!b);_(j,!b)}function _(e,t){let n=Math.abs((0,a.l9)((0,i.Z)(e,k)));let r=t?n*-1:n;p?.(r)}function I(e){C(e?e:"")}let M=(0,o.useRef)();let D=(0,s.r)(t,M);(0,o.useEffect)(()=>{if(w){M.current?.focus()}},[w]);function P(e){_(j,b);if(!M.current?.contains(e.relatedTarget)){v?.()}}return(0,r.jsx)(h.Z,{id:e,inputRef:D,inputMode:"decimal",leftContent:(0,r.jsx)(f.Z,{type:"bare",style:{padding:"0 7px"},onPointerUp:E,onPointerDown:e=>e.preventDefault(),ref:T,children:b?(0,r.jsx)(u.Z,{style:{width:8,height:8,color:"inherit"}}):(0,r.jsx)(l.Z,{style:{width:8,height:8,color:"inherit"}})}),value:j,focused:w,style:{flex:1,alignItems:"stretch",...m},inputStyle:{paddingLeft:0,...y},onKeyUp:e=>{if(e.key==="Enter"){_(j,b);v?.()}},onUpdate:I,onBlur:P})}function m({defaultValue:e,onChange:t}){let[n,i]=(0,o.useState)(e.num1);let[a,s]=(0,o.useState)(e.num2);return(0,r.jsxs)(p.Z,{style:{flexDirection:"row",alignItems:"center"},children:[(0,r.jsx)(v,{initialValue:n,onChange:e=>{i(e);t({num1:e,num2:a})},style:{color:c.rS.formInputText}}),(0,r.jsx)(p.Z,{style:{margin:"0 5px"},children:"and"}),(0,r.jsx)(v,{initialValue:a,onChange:e=>{s(e);t({num1:n,num2:e})},style:{color:c.rS.formInputText}})]})}},10464:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(43188);var o=n(66204);var i=n(99548);var a=n(68761);var s=n(45492);var l=n(77644);function u({type:e,id:t,noneColor:n=s.rS.pageTextSubdued}){let o;switch(e){case"payees":o=a.mp;break;case"accounts":o=i.Re;break;default:throw new Error("DisplayId: unknown object type: "+e)}return(0,r.jsx)(o,{idKey:true,children:e=>{let o=e[t];return(0,r.jsx)(l.Z,{style:o==null?{color:n}:null,title:o?o.name:"None",children:o?o.name:"None"})}})}},60279:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var r=n(43188);var o=n(66204);var i=n(37496);var a=n(73416);var s=n(9579);var l=n(49374);var u=n(25411);var c=n(44048);var f=n(5710);var h=n(17853);var p=n(45492);var g=n(24307);function v({items:e,getItemProps:t,highlightedIndex:n,embedded:i}){return(0,r.jsx)(g.Z,{children:(0,r.jsx)(g.Z,{style:{overflow:"auto",padding:"5px 0",...!i&&{maxHeight:175}},children:e.map((e,r)=>{return[(0,o.createElement)("div",{...t?t({item:e}):null,key:e.id,style:{backgroundColor:n===r?p.rS.menuAutoCompleteBackgroundHover:"transparent",padding:4,paddingLeft:20,borderRadius:i?4:0},"data-testid":`${e.name}-filter-item`,"data-highlighted":n===r||undefined},e.name)]})})})}function m({embedded:e,...t}){let n=(0,h.m)()||[];return(0,r.jsx)(u.ZP,{strict:true,highlightFirst:true,embedded:e,suggestions:n,renderItems:(t,n,o)=>(0,r.jsx)(v,{items:t,getItemProps:n,highlightedIndex:o,embedded:e}),...t})}var y=n(383);var w=n(10730);var x=n(37998);var b=n(14644);function S({field:e,subfield:t,type:n,multi:o,value:h,inputRef:p,style:v,onChange:S}){let{grouped:k}=(0,s.Z)();let j=(0,i.v9)(e=>e.queries.saved);let C=(0,i.v9)(e=>e.prefs.local.dateFormat||"MM/dd/yyyy");if(o&&!Array.isArray(h)){h=[]}else if(!o&&Array.isArray(h)){return null}let T=o?h.length===0:true;let E;switch(n){case"id":switch(e){case"payee":E=(0,r.jsx)(f.ZP,{multi:o,showMakeTransfer:false,openOnFocus:true,value:h,onSelect:S,inputProps:{inputRef:p,...T?{placeholder:"nothing"}:null}});break;case"account":E=(0,r.jsx)(l.ZP,{value:h,multi:o,openOnFocus:true,onSelect:S,inputProps:{inputRef:p,...T?{placeholder:"nothing"}:null}});break;case"category":E=(0,r.jsx)(c.ZP,{categoryGroups:k,value:h,multi:o,openOnFocus:true,onSelect:S,inputProps:{inputRef:p,...T?{placeholder:"nothing"}:null}});break;default:}break;case"saved":switch(e){case"saved":E=(0,r.jsx)(m,{saved:j,value:h,multi:o,openOnFocus:true,onSelect:S,inputProps:{inputRef:p,...T?{placeholder:"nothing"}:null}});break;default:}break;case"date":switch(t){case"month":E=(0,r.jsx)(y.ZP,{inputRef:p,defaultValue:h||"",placeholder:(0,a.LT)(C).toLowerCase(),onEnter:e=>S(e.target.value),onBlur:e=>S(e.target.value)});break;case"year":E=(0,r.jsx)(y.ZP,{inputRef:p,defaultValue:h||"",placeholder:"yyyy",onEnter:e=>S(e.target.value),onBlur:e=>S(e.target.value)});break;default:if(h&&h.frequency){E=(0,r.jsx)(b.Z,{value:h,buttonStyle:{justifyContent:"flex-start"},onChange:S})}else{E=(0,r.jsx)(x.Z,{value:h,dateFormat:C,openOnFocus:false,inputRef:p,inputProps:{placeholder:C.toLowerCase()},onSelect:S})}break}break;case"boolean":E=(0,r.jsx)(w.XZ,{checked:h,value:h,onChange:()=>S(!h)});break;default:if(o){E=(0,r.jsx)(u.ZP,{multi:true,suggestions:[],value:h,inputProps:{inputRef:p},onSelect:S})}else{E=(0,r.jsx)(y.ZP,{inputRef:p,defaultValue:h||"",placeholder:"nothing",onEnter:e=>S(e.target.value),onBlur:e=>S(e.target.value)})}break}return(0,r.jsx)(g.Z,{style:{flex:1,...v},children:E})}},70425:function(e,t,n){"use strict";n.d(t,{F:function(){return i}});var r=n(84094);function o(e,t,{onSuccess:n,onClose:o}){e("gocardless-external-msg",{onMoveExternal:async({institutionId:e})=>{const n=await (0,r.lW)("gocardless-create-web-token",{upgradingAccountId:t,institutionId:e,accessValidForDays:30});if("error"in n)return n;const{link:o,requisitionId:i}=n;window.Actual.openURLInBrowser(o);return(0,r.lW)("gocardless-poll-web-token",{upgradingAccountId:t,requisitionId:i})},onClose:o,onSuccess:n})}async function i(e,{upgradingAccountId:t}={}){o(e,t,{onSuccess:async n=>{e("select-linked-accounts",{accounts:n.accounts,requisitionId:n.id,upgradingAccountId:t})}})}},1447:function(e,t,n){"use strict";n.d(t,{o:function(){return s}});var r=n(66204);var o=n(37496);var i=n(65485);var a=n(43044);function s(){const e=(0,o.I0)();return(0,r.useMemo)(()=>{return(0,i.DE)(a,e)},[e])}},9579:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(66204);var o=n(37496);var i=n(1447);function a(){const{getCategories:e}=(0,i.o)();const t=(0,o.v9)(e=>e.queries.categories.list);(0,r.useEffect)(()=>{if(t.length===0){e()}},[]);return(0,o.v9)(e=>e.queries.categories)}},58068:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(37496);const o={categorySpendingReport:false,sankeyReport:false,reportBudget:false,goalTemplatesEnabled:false,customReports:false,experimentalOfxParser:true};function i(e){return(0,r.v9)(t=>{const n=t.prefs.local[`flags.${e}`];return n===undefined?o[e]||false:n})}},15685:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var r=n(66204);function o(e,t){return(0,r.useMemo)(()=>{function n(n){[e,t].forEach(e=>{if(typeof e==="function"){e(n)}else if(e!=null){e.current=n}})}return n},[e,t])}},24868:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(66204);var o=n(59379);function i(){const e=(0,o.TH)();const t=(0,o.s0)();return(0,r.useCallback)((n,r={})=>{if(typeof n==="number"){t(n)}else{const o={replace:r.replace||a(n,e)?true:undefined,...r,state:{...r?.state,previousLocation:e}};const{previousLocation:i,...s}=e.state||{};if(i==null||!a(n,i)||JSON.stringify(r?.state||{})!==JSON.stringify(s)){t(n,o)}else{t(-1)}}},[t,e])}function a(e,t){return e===t.pathname+t.search+t.hash}},69289:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(66204);function o(e){const t=(0,r.useRef)();(0,r.useEffect)(()=>{t.current=e},[e]);return t.current}},5904:function(e,t,n){"use strict";n.d(t,{M:function(){return l},X:function(){return u}});var r=n(43188);var o=n(66204);function i(e){let t=e;for(let e=0;e<10&&t;e++){const e="dataset"in t?t.dataset?.focusKey:undefined;if(e){return e}t=t.parentNode}return null}function a(e,t){if(t){const n=i(e);e.focus({preventScroll:n&&n===t.keyRef.current});t.onKeyChange(n)}else{e.focus()}if(e instanceof HTMLInputElement){e.setSelectionRange(0,1e4)}}const s=(0,o.createContext)(null);function l({children:e}){const t=(0,o.useRef)(null);const n=(0,o.useMemo)(()=>({keyRef:t,onKeyChange:e=>{t.current=e}}),[t]);return(0,r.jsx)(s.Provider,{value:n,children:e})}function u(e,t){const n=(0,o.useContext)(s);const r=(0,o.useRef)(null);(0,o.useLayoutEffect)(()=>{const o=r.current;const i=e.current;if(i&&t&&(o===null||o===false)){const e="input,button,div[tabindex]";const r=i.matches(e)?i:i.querySelector(e);if(t&&r){a(r,n)}}r.current=t},[t])}},37418:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(66204);function o(e){const t=(0,r.useRef)(null);if(!t.current){t.current=new ResizeObserver(t=>{e(t[0].contentRect)})}const n=(0,r.useCallback)(e=>{t.current.disconnect();if(e){t.current.observe(e,{box:"border-box"})}},[]);return n}},11892:function(e,t,n){"use strict";n.d(t,{D9:function(){return g},YP:function(){return p},ZP:function(){return c},i5:function(){return v},mL:function(){return m}});var r=n(43188);var o=n(66204);var i=n(37496);var a=n(84094);var s=n(57555);var l=n(50102);function u(e,t){const n=Math.min(e.start,e.end);const r=Math.max(e.start,e.end);for(let e=n;e<=r;e++){t(e)}}function c(e,t,n,r){const[l,c]=(0,o.useReducer)((e,n)=>{switch(n.type){case"select":{const{selectedRange:r}=e;const o=new Set(e.selectedItems);const{id:i,event:a}=n;if(a.shiftKey&&r){const n=t.findIndex(e=>e.id===i);const a=t.findIndex(e=>e.id===r.start);const s=t.findIndex(e=>e.id===r.end);let l;let c;if(s===-1){l={start:a,end:n}}else if(s<a){if(n<=a){l={start:a,end:n};if(n>s){c={start:n-1,end:s}}}else{l={start:s,end:n}}}else{if(n>=a){l={start:a,end:n};if(n<s){c={start:n+1,end:s}}}else{l={start:s,end:n}}}u(l,e=>o.add(t[e].id));if(c){u(c,e=>o.delete(t[e].id))}return{...e,selectedItems:o,selectedRange:{start:t[l.start].id,end:t[l.end].id}}}else{let t=null;if(!o.delete(i)){o.add(i);t={start:i,end:null}}return{...e,selectedItems:o,selectedRange:t}}}case"select-none":return{...e,selectedItems:new Set};case"select-all":let o=[];if(n.ids&&t&&r){const e=new Set(t.filter(r).map(e=>e.id));o=n.ids.filter(t=>e.has(t))}else if(t&&r){o=t.filter(r).map(e=>e.id)}else{o=n.ids||t.map(e=>e.id)}return{...e,selectedItems:new Set(o),selectedRange:n.ids&&n.ids.length===1?{start:n.ids[0],end:null}:null};default:throw new Error("Unexpected action: "+JSON.stringify(n))}},null,()=>({selectedItems:new Set(n||[]),selectedRange:n&&n.length===1?{start:n[0],end:null}:null}));const f=(0,o.useRef)(t);(0,o.useEffect)(()=>{if(l.selectedItems.size>0){const e=new Set(t.map(e=>e.id));const n=f.current.length===t.length&&f.current.every(t=>e.has(t.id));if(!n){const t=[...l.selectedItems];const n=t.filter(t=>e.has(t));if(t.length!==n.length){c({type:"select-all",ids:n})}}}f.current=t},[t,l.selectedItems]);(0,o.useEffect)(()=>{const t=s.a2("selectedItems");s.kp("selectedItems",{name:e,items:l.selectedItems});return()=>s.kp("selectedItems",t)},[l.selectedItems]);const h=(0,i.v9)(e=>e.app.lastUndoState);(0,o.useEffect)(()=>{function t({messages:t,undoTag:n}){const r=s.r8(n);const o=new Set(t.filter(e=>e.column==="tombstone"&&e.value===1).map(e=>e.row));if(r?.selectedItems?.name===e){c({type:"select-all",ids:[...r.selectedItems.items].filter(e=>!o.has(e))})}}if(h&&h.current){t(h.current)}return(0,a.oL)("undo-event",t)},[]);return{items:l.selectedItems,dispatch:c}}const f=(0,o.createContext)(null);const h=(0,o.createContext)(null);function p(){return(0,o.useContext)(f)}function g(){return(0,o.useContext)(h)}function v({instance:e,fetchAllIds:t,children:n}){const i=(0,o.useRef)(null);(0,o.useEffect)(()=>{i.current=e.items},[e.items]);const a=(0,o.useCallback)(async n=>{if(!n.event&&(0,l.Ry)()){throw new Error("SelectedDispatch actions must have an event")}if(n.type==="select-all"){if(i.current&&i.current.size>0){return e.dispatch({type:"select-none",event:n.event})}else{if(t){return e.dispatch({type:"select-all",ids:await t(),event:n.event})}return e.dispatch({type:"select-all",event:n.event})}}return e.dispatch(n)},[e.dispatch,t]);return(0,r.jsx)(h.Provider,{value:e.items,children:(0,r.jsx)(f.Provider,{value:a,children:n})})}function m({name:e,items:t,initialSelectedIds:n,fetchAllIds:i,registerDispatch:a,selectAllFilter:s,children:l}){const u=c(e,t,n,s);(0,o.useEffect)(()=>{a?.(u.dispatch)},[a]);return(0,r.jsx)(v,{instance:u,fetchAllIds:i,children:l})}},76926:function(e,t,n){"use strict";n.d(t,{j:function(){return i}});var r=n(66204);const o=/^var\((--.*)\)$/;function i(e){(0,r.useEffect)(()=>{a(s(e))},[e])}function a(e){const t=document.getElementsByTagName("meta");const n=[...t].find(e=>e.name==="theme-color");n.setAttribute("content",e)}function s(e){return o.test(e)?window.getComputedStyle(document.documentElement).getPropertyValue(e.match(o)[1]):e}},63495:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(37496);var o=n(11800);function i(){const e=(0,o.o1)();const t=(0,r.v9)(e=>e.user.data);if(!e){return"no-server"}return!t||t.offline?"offline":"online"}},99458:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(43188);var o=n(66204);var i=n(99818);const a=e=>{const{color:t="currentColor"}=e;const[n]=(0,o.useState)("gradient-"+Math.random());return(0,r.jsxs)("svg",{...e,viewBox:"0 0 38 38",style:{...e.style},children:[(0,r.jsx)("defs",{children:(0,r.jsxs)("linearGradient",{x1:"8.042%",y1:"0%",x2:"65.682%",y2:"23.865%",id:n,children:[(0,r.jsx)("stop",{stopColor:t,stopOpacity:0,offset:"0%"}),(0,r.jsx)("stop",{stopColor:t,stopOpacity:.631,offset:"63.146%"}),(0,r.jsx)("stop",{stopColor:t,offset:"100%"})]})}),(0,r.jsxs)("g",{transform:"translate(1 2)",fill:"none",fillRule:"evenodd",children:[(0,r.jsx)("path",{d:"M36 18c0-9.94-8.06-18-18-18",stroke:"url(#"+n+")",strokeWidth:2,fill:"none"}),(0,r.jsx)("circle",{fill:t,cx:36,cy:18,r:1})]})]})};var s=a;const l=(0,i.F4)({"0%":{transform:"rotate(-90deg)"},"100%":{transform:"rotate(666deg)"}});function u(e){return(0,r.jsx)("span",{className:`${(0,i.iv)({animationName:l,animationDuration:"1.6s",animationTimingFunction:"cubic-bezier(0.17, 0.67, 0.83, 0.67)",animationIterationCount:"infinite",lineHeight:0})}`,children:(0,r.jsx)(s,{...e})})}var c=u},19450:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsxs)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:[(0,r.jsx)("path",{d:"M23 11.5a1.5 1.5 0 0 1-1.5 1.5h-20a1.5 1.5 0 0 1 0-3h20a1.5 1.5 0 0 1 1.5 1.5Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M11.5 23a1.5 1.5 0 0 1-1.5-1.5v-20a1.5 1.5 0 0 1 3 0v20a1.5 1.5 0 0 1-1.5 1.5Z",fill:"currentColor"})]});t.Z=i},72285:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{fill:"none",stroke:"currentColor",d:"m2 2 20 20M22 2 2 22",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:4})});t.Z=i},67459:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 15",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{fill:"currentColor",d:"M24.483.576c-.309-.327-.674-.49-1.097-.49H1.56C1.137.086.771.25.463.576A1.635 1.635 0 0 0 0 1.737c0 .448.154.834.463 1.161l10.913 11.558c.31.327.675.49 1.097.49.422 0 .788-.163 1.096-.49L24.483 2.898c.308-.327.463-.713.463-1.16 0-.448-.155-.835-.463-1.162Z"})});t.Z=i},45219:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 91 51",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{fill:"currentColor",d:"M63.004.003a3 3 0 0 0-1.875 5.219L79.44 22.034H3.16a3.257 3.257 0 0 0-.313 0c-1.57.082-2.925 1.585-2.843 3.156.081 1.571 1.585 2.926 3.156 2.844H79.44L61.129 44.815a3 3 0 1 0 4.062 4.407l24-22a3 3 0 0 0 0-4.407l-24-22a3 3 0 0 0-2.187-.812Z"})});t.Z=i},29325:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M23 11.5a1.5 1.5 0 0 1-1.5 1.5h-20a1.5 1.5 0 0 1 0-3h20a1.5 1.5 0 0 1 1.5 1.5Z",fill:"currentColor"})});t.Z=i},74684:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsxs)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:[(0,r.jsx)("path",{fill:"currentColor",d:"M23 11.5a1.5 1.5 0 0 1-1.5 1.5h-20a1.5 1.5 0 0 1 0-3h20a1.5 1.5 0 0 1 1.5 1.5Z",className:"path"}),(0,r.jsx)("path",{fill:"currentColor",d:"M11.5 23a1.5 1.5 0 0 1-1.5-1.5v-20a1.5 1.5 0 0 1 3 0v20a1.5 1.5 0 0 1-1.5 1.5Z",className:"path"})]});t.Z=i},2483:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"m9 16.172-6.071-6.071-1.414 1.414L10 20l.707-.707 7.778-7.778-1.414-1.414L11 16.172V0H9z",fill:"currentColor"})});t.Z=i},93734:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"m3.828 9 6.071-6.071-1.414-1.414L0 10l.707.707 7.778 7.778 1.414-1.414L3.828 11H20V9H3.828z",fill:"currentColor"})});t.Z=i},21741:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"m3.828 9 6.071-6.071-1.414-1.414L0 10l.707.707 7.778 7.778 1.414-1.414L3.828 11H20V9H3.828z",fill:"currentColor"})});t.Z=i},75433:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"m16.172 9-6.071-6.071 1.414-1.414L20 10l-.707.707-7.778 7.778-1.414-1.414L16.172 11H0V9z",fill:"currentColor"})});t.Z=i},67473:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M9 3.828 2.929 9.899 1.515 8.485 10 0l.707.707 7.778 7.778-1.414 1.414L11 3.828V20H9V3.828z",fill:"currentColor"})});t.Z=i},1549:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M2 2c0-1.1.9-2 2-2h12a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V2zm3 1v2h10V3H5zm0 4v2h2V7H5zm4 0v2h2V7H9zm4 0v2h2V7h-2zm-8 4v2h2v-2H5zm4 0v2h2v-2H9zm4 0v6h2v-6h-2zm-8 4v2h2v-2H5zm4 0v2h2v-2H9z",fill:"currentColor"})});t.Z=i},29460:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M4.13 12H4a2 2 0 1 0 1.8 1.11L7.86 10a2.03 2.03 0 0 0 .65-.07l1.55 1.55a2 2 0 1 0 3.72-.37L15.87 8H16a2 2 0 1 0-1.8-1.11L12.14 10a2.03 2.03 0 0 0-.65.07L9.93 8.52a2 2 0 1 0-3.72.37L4.13 12zM0 4c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4z",fill:"currentColor"})});t.Z=i},82019:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M1 10h3v10H1V10zM6 0h3v20H6V0zm5 8h3v12h-3V8zm5-4h3v16h-3V4z",fill:"currentColor"})});t.Z=i},47953:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M19.95 11A10 10 0 1 1 9 .05V11h10.95zm-.08-2.6H11.6V.13a10 10 0 0 1 8.27 8.27z",fill:"currentColor"})});t.Z=i},29813:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"m0 11 2-2 5 5L18 3l2 2L7 18z",fill:"currentColor"})});t.Z=i},85025:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"m9.293 12.95.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z",fill:"currentColor"})});t.Z=i},89116:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M7.05 9.293 6.343 10 12 15.657l1.414-1.414L9.172 10l4.242-4.243L12 4.343z",fill:"currentColor"})});t.Z=i},48164:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"m12.95 10.707.707-.707L8 4.343 6.586 5.757 10.828 10l-4.242 4.243L8 15.657l4.95-4.95z",fill:"currentColor"})});t.Z=i},52267:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M10 8.586 2.929 1.515 1.515 2.929 8.586 10l-7.071 7.071 1.414 1.414L10 11.414l7.071 7.071 1.414-1.414L11.414 10l7.071-7.071-1.414-1.414L10 8.586z",fill:"currentColor"})});t.Z=i},28127:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsxs)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:[(0,r.jsx)("path",{d:"M24 11.113a5.765 5.765 0 0 0-5.216-5.952.249.249 0 0 1-.191-.12 7.684 7.684 0 0 0-14.1 2.294.251.251 0 0 1-.227.2A4.643 4.643 0 0 0 .624 9.774 4.47 4.47 0 0 0 0 12.223a4.293 4.293 0 0 0 1.235 3.1 4.624 4.624 0 0 0 1.78 1.062.963.963 0 0 0 1.243-.86v-.026a.985.985 0 0 0-.658-1.033 2.58 2.58 0 0 1-.96-.572A2.374 2.374 0 0 1 2 12.109a2.588 2.588 0 0 1 2.586-2.588 2.7 2.7 0 0 1 .535.054.989.989 0 0 0 .811-.184 1 1 0 0 0 .392-.779c.085-5.736 8.293-7.372 10.818-2.044a.974.974 0 0 0 .941.57 3.733 3.733 0 0 1 3 1.309 3.888 3.888 0 0 1 .9 2.812 3.428 3.428 0 0 1-1.473 2.667.973.973 0 0 0-.4.964l.01.059a.968.968 0 0 0 1.525.608A5.4 5.4 0 0 0 24 11.113Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M12.231 9.7a6.5 6.5 0 1 0 6.5 6.5 6.508 6.508 0 0 0-6.5-6.5Zm3.124 4.155a.75.75 0 0 1 .15 1.05l-2.905 3.87a1.493 1.493 0 0 1-1.1.6h-.111a1.485 1.485 0 0 1-1.055-.443l-1.5-1.5a.75.75 0 0 1 1.066-1.06l1.3 1.3a.249.249 0 0 0 .376-.026L14.305 14a.751.751 0 0 1 1.05-.149Z",fill:"currentColor"})]});t.Z=i},85554:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsxs)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:[(0,r.jsx)("path",{d:"M24 10.663A5.817 5.817 0 0 0 22.228 6.5a5.711 5.711 0 0 0-3.447-1.585.249.249 0 0 1-.191-.12 7.684 7.684 0 0 0-14.1 2.294.251.251 0 0 1-.227.2A4.59 4.59 0 0 0 0 11.859a4.324 4.324 0 0 0 1.236 3.21 5.529 5.529 0 0 0 3.605 1.377 1 1 0 0 0 .985-1.015 1.023 1.023 0 0 0-1.015-.985 3.3 3.3 0 0 1-2.172-.8A2.374 2.374 0 0 1 2 11.859a2.576 2.576 0 0 1 .954-2.007 2.6 2.6 0 0 1 2.167-.527 1 1 0 0 0 1.2-.919 5.686 5.686 0 0 1 10.82-2.088.959.959 0 0 0 .941.57 3.687 3.687 0 0 1 2.758 1.049A3.752 3.752 0 0 1 22 10.663a3.835 3.835 0 0 1-3.438 3.791 1 1 0 0 0 .132 1.992.961.961 0 0 0 .131-.009A5.807 5.807 0 0 0 24 10.663Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M15.5 17.446h-1.75a.25.25 0 0 1-.25-.25v-7.25a1.5 1.5 0 1 0-3 0V17.2a.25.25 0 0 1-.25.25H8.5a1 1 0 0 0-.707 1.707l3.5 3.5a1 1 0 0 0 1.414 0l3.5-3.5a1 1 0 0 0-.707-1.707Z",fill:"currentColor"})]});t.Z=i},52506:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M3.94 6.5 2.22 3.64l1.42-1.42L6.5 3.94c.52-.3 1.1-.54 1.7-.7L9 0h2l.8 3.24c.6.16 1.18.4 1.7.7l2.86-1.72 1.42 1.42-1.72 2.86c.3.52.54 1.1.7 1.7L20 9v2l-3.24.8c-.16.6-.4 1.18-.7 1.7l1.72 2.86-1.42 1.42-2.86-1.72c-.52.3-1.1.54-1.7.7L11 20H9l-.8-3.24c-.6-.16-1.18-.4-1.7-.7l-2.86 1.72-1.42-1.42 1.72-2.86c-.3-.52-.54-1.1-.7-1.7L0 11V9l3.24-.8c.16-.6.4-1.18.7-1.7zM10 13a3 3 0 1 0 0-6 3 3 0 0 0 0 6z",fill:"currentColor"})});t.Z=i},94276:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M10 12a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm0-6a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm0 12a2 2 0 1 1 0-4 2 2 0 0 1 0 4z",fill:"currentColor"})});t.Z=i},19318:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M2.93 17.07A10 10 0 1 1 17.07 2.93 10 10 0 0 1 2.93 17.07zm12.73-1.41A8 8 0 1 0 4.34 4.34a8 8 0 0 0 11.32 11.32zM9 5h2v6H9V5zm0 8h2v2H9v-2z",fill:"currentColor"})});t.Z=i},52715:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M21.941 3.607 18.87.554A1.912 1.912 0 0 0 17.527 0H8.9A1.9 1.9 0 0 0 7 1.9V5H3.4a1.9 1.9 0 0 0-1.9 1.9v15.21A1.9 1.9 0 0 0 3.4 24h11.7a1.9 1.9 0 0 0 1.9-1.895V19h3.6a1.9 1.9 0 0 0 1.9-1.895V4.949a1.882 1.882 0 0 0-.559-1.342ZM14.5 22H4a.5.5 0 0 1-.5-.5v-14A.5.5 0 0 1 4 7h7.784a.5.5 0 0 1 .35.143L14.85 9.8a.5.5 0 0 1 .15.357V21.5a.5.5 0 0 1-.5.5Zm5.5-5h-2.75a.25.25 0 0 1-.25-.25v-6.8a1.892 1.892 0 0 0-.558-1.341L13.37 5.554A1.9 1.9 0 0 0 12.028 5H9.25A.25.25 0 0 1 9 4.75V2.5a.5.5 0 0 1 .5-.5l7.756-.026a.5.5 0 0 1 .351.143L20.35 4.8a.5.5 0 0 1 .15.357V16.5a.5.5 0 0 1-.5.5Z",fill:"currentColor"})});t.Z=i},28799:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M2.93 17.07A10 10 0 1 1 17.07 2.93 10 10 0 0 1 2.93 17.07zm12.73-1.41A8 8 0 1 0 4.34 4.34a8 8 0 0 0 11.32 11.32zM9 11V9h2v6H9v-4zm0-6h2v2H9V5z",fill:"currentColor"})});t.Z=i},98405:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M1 4h2v2H1V4zm4 0h14v2H5V4zM1 9h2v2H1V9zm4 0h14v2H5V9zm-4 5h2v2H1v-2zm4 0h14v2H5v-2z",fill:"currentColor"})});t.Z=i},20493:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsxs)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:[(0,r.jsx)("g",{clipPath:"url(#a)",children:(0,r.jsx)("path",{fill:"currentColor",d:"M1.857 7.612H.98a.98.98 0 0 0-.98.98v2.224c0 .449.184.857.51 1.163.612.551 1.816 1.49 3.735 2.368a.571.571 0 0 1 .306.346l.939 3.286a.484.484 0 0 0 .469.347h1.47a.479.479 0 0 0 .469-.367l.47-1.817a.262.262 0 0 1 .326-.183c.571.122 1.183.163 1.795.163.613 0 1.225-.061 1.796-.163.143-.02.286.06.327.183l.47 1.817a.502.502 0 0 0 .468.367h1.47a.484.484 0 0 0 .47-.347l1.224-4.245a.487.487 0 0 1 .122-.224c.919-.98 1.53-2.163 1.735-3.47h.49c.53 0 .959-.448.938-.979-.02-.51-.47-.918-.98-.918h-.448C18.06 4.673 14.632 2 10.489 2c-1.775 0-3.428.49-4.755 1.326-.591-.408-1.469-.734-2.693-.632-.49.04-.715.612-.388.959.408.429.796 1 .877 1.735L1.857 7.612Zm3.122.98a.862.862 0 0 1-.857-.858c0-.469.388-.857.857-.857.47 0 .858.388.858.857 0 .47-.388.858-.858.858Z"})}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"a",children:(0,r.jsx)("path",{fill:"currentColor",d:"M0 0h20v20H0z"})})})]});t.Z=i},58534:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M11 12h6v-1l-3-1V2l3-1V0H3v1l3 1v8l-3 1v1h6v7l1 1 1-1v-7z",fill:"currentColor"})});t.Z=i},46890:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M0 2h20v4H0V2zm0 8h20v2H0v-2zm0 6h20v2H0v-2z",fill:"currentColor"})});t.Z=i},89456:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M10 3v2a5 5 0 0 0-3.54 8.54l-1.41 1.41A7 7 0 0 1 10 3zm4.95 2.05A7 7 0 0 1 10 17v-2a5 5 0 0 0 3.54-8.54l1.41-1.41zM10 20l-4-4 4-4v8zm0-12V0l4 4-4 4z",fill:"currentColor"})});t.Z=i},96424:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M19 18h-1v-8c0-.6-.4-1-1-1s-1 .4-1 1v8h-3V1c0-.6-.4-1-1-1s-1 .4-1 1v17H8V7c0-.6-.4-1-1-1s-1 .4-1 1v11H3V3c0-.6-.4-1-1-1s-1 .4-1 1v15c-.6 0-1 .4-1 1s.4 1 1 1h18c.6 0 1-.4 1-1s-.4-1-1-1z",fill:"currentColor"})});t.Z=i},7122:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M18 9.87V20H2V9.87a4.25 4.25 0 0 0 3-.38V14h10V9.5a4.26 4.26 0 0 0 3 .37zM3 0h4l-.67 6.03A3.43 3.43 0 0 1 3 9C1.34 9 .42 7.73.95 6.15L3 0zm5 0h4l.7 6.3c.17 1.5-.91 2.7-2.42 2.7h-.56A2.38 2.38 0 0 1 7.3 6.3L8 0zm5 0h4l2.05 6.15C19.58 7.73 18.65 9 17 9a3.42 3.42 0 0 1-3.33-2.97L13 0z",fill:"currentColor"})});t.Z=i},41883:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 23 3",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{fill:"currentColor",fillRule:"nonzero",d:"M23 1.5A1.5 1.5 0 0 1 21.5 3h-20a1.5 1.5 0 0 1 0-3h20A1.5 1.5 0 0 1 23 1.5z"})});t.Z=i},27285:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M0 10V2l2-2h8l10 10-10 10L0 10zm4.5-4a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z",fill:"currentColor"})});t.Z=i},86357:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"m6 2 2-2h4l2 2h4v2H2V2h4zM3 6h14l-1 14H4L3 6zm5 2v10h1V8H8zm3 0v10h1V8h-1z",fill:"currentColor"})});t.Z=i},7056:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M17 16v4h-2v-4h-2v-3h6v3h-2zM1 9h6v3H1V9zm6-4h6v3H7V5zM3 0h2v8H3V0zm12 0h2v12h-2V0zM9 0h2v4H9V0zM3 12h2v8H3v-8zm6-4h2v12H9V8z",fill:"currentColor"})});t.Z=i},78800:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M0 4c0-1.1.9-2 2-2h15a1 1 0 0 1 1 1v1H2v1h17a1 1 0 0 1 1 1v10a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4zm16.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z",fill:"currentColor"})});t.Z=i},85449:function(e,t,n){"use strict";n.d(t,{mm_:function(){return u.Z},wn$:function(){return rt}});var r=n(43188);var o=n(66204);const i=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M11 9h4v2h-4v4H9v-4H5V9h4V5h2v4zm-1 11a10 10 0 1 1 0-20 10 10 0 0 1 0 20zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16z",fill:"currentColor"})});var a=null&&i;const s=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M11 9V5H9v4H5v2h4v4h2v-4h4V9h-4zm-1 11a10 10 0 1 1 0-20 10 10 0 0 1 0 20z",fill:"currentColor"})});var l=null&&s;var u=n(74684);const c=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 2v16a8 8 0 1 0 0-16zm0 18a10 10 0 1 1 0-20 10 10 0 0 1 0 20z",fill:"currentColor"})});var f=null&&c;const h=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M8.4 12H2.8L1 15H0V5h1l1.8 3h5.6L6 0h2l4.8 8H18a2 2 0 1 1 0 4h-5.2L8 20H6l2.4-8z",fill:"currentColor"})});var p=null&&h;const g=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 0h20v20H0V0zm10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm0-5a3 3 0 1 1 0-6 3 3 0 0 1 0 6z",fill:"currentColor"})});var v=null&&g;const m=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M1 1h18v2H1V1zm0 8h18v2H1V9zm0 8h18v2H1v-2zM4 5h12v2H4V5zm0 8h12v2H4v-2z",fill:"currentColor"})});var y=null&&m;const w=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M1 1h18v2H1V1zm0 8h18v2H1V9zm0 8h18v2H1v-2zM1 5h18v2H1V5zm0 8h18v2H1v-2z",fill:"currentColor"})});var x=null&&w;const b=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M1 1h18v2H1V1zm0 8h18v2H1V9zm0 8h18v2H1v-2zM1 5h12v2H1V5zm0 8h12v2H1v-2z",fill:"currentColor"})});var S=null&&b;const k=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M1 1h18v2H1V1zm0 8h18v2H1V9zm0 8h18v2H1v-2zM7 5h12v2H7V5zm0 8h12v2H7v-2z",fill:"currentColor"})});var j=null&&k;const C=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M4.34 15.66A7.97 7.97 0 0 0 9 17.94V10H5V8h4V5.83a3 3 0 1 1 2 0V8h4v2h-4v7.94a7.97 7.97 0 0 0 4.66-2.28l-1.42-1.42h5.66l-2.83 2.83a10 10 0 0 1-14.14 0L.1 14.24h5.66l-1.42 1.42zM10 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2z",fill:"currentColor"})});var T=null&&C;const E=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M3 6c0-1.1.9-2 2-2h8l4-4h2v16h-2l-4-4H5a2 2 0 0 1-2-2H1V6h2zm8 9v5H8l-1.67-5H5v-2h8v2h-2z",fill:"currentColor"})});var _=null&&E;const I=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M7 0H6L0 3v6l4-1v12h12V8l4 1V3l-6-3h-1a3 3 0 0 1-6 0z",fill:"currentColor"})});var M=null&&I;var D=n(2483);var P=n(93734);const O=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 20a10 10 0 1 1 0-20 10 10 0 0 1 0 20zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm-2-8V5h4v5h3l-5 5-5-5h3z",fill:"currentColor"})});var A=null&&O;const R=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 10a10 10 0 1 1 20 0 10 10 0 0 1-20 0zm2 0a8 8 0 1 0 16 0 8 8 0 0 0-16 0zm8-2h5v4h-5v3l-5-5 5-5v3z",fill:"currentColor"})});var Z=null&&R;const z=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M20 10a10 10 0 1 1-20 0 10 10 0 0 1 20 0zm-2 0a8 8 0 1 0-16 0 8 8 0 0 0 16 0zm-8 2H5V8h5V5l5 5-5 5v-3z",fill:"currentColor"})});var N=null&&z;const L=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 0a10 10 0 1 1 0 20 10 10 0 0 1 0-20zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm2 8v5H8v-5H5l5-5 5 5h-3z",fill:"currentColor"})});var B=null&&L;const H=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m16.172 9-6.071-6.071 1.414-1.414L20 10l-.707.707-7.778 7.778-1.414-1.414L16.172 11H0V9z",fill:"currentColor"})});var F=null&&H;const V=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M7 10V2h6v8h5l-8 8-8-8h5z",fill:"currentColor"})});var W=null&&V;const U=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 13h8V7h-8V2l-8 8 8 8v-5z",fill:"currentColor"})});var K=null&&U;const $=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 7H2v6h8v5l8-8-8-8v5z",fill:"currentColor"})});var q=null&&$;const Y=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M7 10v8h6v-8h5l-8-8-8 8h5z",fill:"currentColor"})});var G=null&&Y;const X=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m9 16.172-6.071-6.071-1.414 1.414L10 20l.707-.707 7.778-7.778-1.414-1.414L11 16.172V0H9z",fill:"currentColor"})});var Q=null&&X;var J=n(21741);var ee=n(75433);const et=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M9 3.828 2.929 9.899 1.515 8.485 10 0l.707.707 7.778 7.778-1.414 1.414L11 3.828V20H9V3.828z",fill:"currentColor"})});var en=null&&et;var er=n(67473);const eo=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m15.75 8-3.74-3.75a3.99 3.99 0 0 1 6.82-3.08A4 4 0 0 1 15.75 8zm-13.9 7.3 9.2-9.19 2.83 2.83-9.2 9.2-2.82-2.84zm-1.4 2.83 2.11-2.12 1.42 1.42-2.12 2.12-1.42-1.42zM10 15l2-2v7h-2v-5z",fill:"currentColor"})});var ei=null&&eo;const ea=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M13.6 13.47A4.99 4.99 0 0 1 5 10a5 5 0 0 1 8-4V5h2v6.5a1.5 1.5 0 0 0 3 0V10a8 8 0 1 0-4.42 7.16l.9 1.79A10 10 0 1 1 20 10h-.18.17v1.5a3.5 3.5 0 0 1-6.4 1.97zM10 13a3 3 0 1 0 0-6 3 3 0 0 0 0 6z",fill:"currentColor"})});var es=null&&ea;const el=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M15 3H7a7 7 0 1 0 0 14h8v-2H7A5 5 0 0 1 7 5h8a3 3 0 0 1 0 6H7a1 1 0 0 1 0-2h8V7H7a3 3 0 1 0 0 6h8a5 5 0 0 0 0-10z",fill:"currentColor"})});var eu=null&&el;const ec=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m0 10 7-7h13v14H7l-7-7zm14.41 0 2.13-2.12-1.42-1.42L13 8.6l-2.12-2.13-1.42 1.42L11.6 10l-2.13 2.12 1.42 1.42L13 11.4l2.12 2.13 1.42-1.42L14.4 10z",fill:"currentColor"})});var ed=null&&ec;const ef=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M4 5h3v10H4V5zm12 0v10l-9-5 9-5z",fill:"currentColor"})});var eh=null&&ef;const ep=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M19 5v10l-9-5 9-5zm-9 0v10l-9-5 9-5z",fill:"currentColor"})});var eg=null&&ep;const ev=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 12a6 6 0 1 1 0-12 6 6 0 0 1 0 12zm0-3a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm4 2.75V20l-4-4-4 4v-8.25a6.97 6.97 0 0 0 8 0z",fill:"currentColor"})});var em=null&&ev;const ey=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 6c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6zm2 0v8h16V6H2zm1 1h4v6H3V7zm5 0h4v6H8V7zm5 0h4v6h-4V7z",fill:"currentColor"})});var ew=null&&ey;const ex=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 6c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6zm2 0v8h16V6H2zm1 1h4v6H3V7zm5 0h4v6H8V7z",fill:"currentColor"})});var eb=null&&ex;const eS=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 6c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6zm2 0v8h16V6H2zm1 1h4v6H3V7z",fill:"currentColor"})});var ek=null&&eS;const ej=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M9 18v-7L0 2V0h20v2l-9 9v7l5 1v1H4v-1l5-1zm2-10a2 2 0 1 0 0-4 2 2 0 0 0 0 4z",fill:"currentColor"})});var eC=null&&ej;const eT=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 10a10 10 0 1 1 20 0 10 10 0 0 1-20 0zm16.32-4.9L5.09 16.31A8 8 0 0 0 16.32 5.09zm-1.41-1.42A8 8 0 0 0 3.68 14.91L14.91 3.68z",fill:"currentColor"})});var eE=null&&eT;const e_=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m9.41 0 6 6-4 4 4 4-6 6H9v-7.59l-3.3 3.3-1.4-1.42L8.58 10l-4.3-4.3L5.7 4.3 9 7.58V0h.41zM11 4.41V7.6L12.59 6 11 4.41zM12.59 14 11 12.41v3.18L12.59 14z",fill:"currentColor"})});var eI=null&&e_;const eM=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M13 8V0L8.11 5.87 3 12h4v8L17 8h-4z",fill:"currentColor"})});var eD=null&&eM;const eP=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M6 4H5a1 1 0 1 1 0-2h11V1a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v16c0 1.1.9 2 2 2h12a2 2 0 0 0 2-2V5a1 1 0 0 0-1-1h-7v8l-2-2-2 2V4z",fill:"currentColor"})});var eO=null&&eP;const eA=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M18 12v1H8v5l-6-6 6-6v5h8V2h2z",fill:"currentColor"})});var eR=null&&eA;const eZ=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M3.5 13H12v5l6-6-6-6v5H4V2H2v11z",fill:"currentColor"})});var ez=null&&eZ;const eN=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M2 2c0-1.1.9-2 2-2h12a2 2 0 0 1 2 2v18l-8-4-8 4V2zm2 0v15l6-3 6 3V2H4zm5 5V5h2v2h2v2h-2v2H9V9H7V7h2z",fill:"currentColor"})});var eL=null&&eN;const eB=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M2 2c0-1.1.9-2 2-2h12a2 2 0 0 1 2 2v18l-8-4-8 4V2zm2 0v15l6-3 6 3V2H4z",fill:"currentColor"})});var eH=null&&eB;const eF=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M2 2c0-1.1.9-2 2-2h12a2 2 0 0 1 2 2v18l-8-4-8 4V2z",fill:"currentColor"})});var eV=null&&eF;const eW=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M11 11v6h6v-6h-6zm0-2h6V3h-6v6zm-2 2H3v6h6v-6zm0-2V3H3v6h6zm-8 9V1h18v18H1v-1z",fill:"currentColor"})});var eU=null&&eW;const eK=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M1 1h2v2H1V1zm0 4h2v2H1V5zm0 4h2v2H1V9zm0 4h2v2H1v-2zm0 4h18v2H1v-2zM5 1h2v2H5V1zm0 8h2v2H5V9zm4-8h2v2H9V1zm0 4h2v2H9V5zm0 4h2v2H9V9zm0 4h2v2H9v-2zm4-12h2v2h-2V1zm0 8h2v2h-2V9zm4-8h2v2h-2V1zm0 4h2v2h-2V5zm0 4h2v2h-2V9zm0 4h2v2h-2v-2z",fill:"currentColor"})});var e$=null&&eK;const eq=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M1 1h2v2H1V1zm0 4h2v2H1V5zm0 4h18v2H1V9zm0 4h2v2H1v-2zm0 4h2v2H1v-2zM5 1h2v2H5V1zm0 16h2v2H5v-2zM9 1h2v2H9V1zm0 4h2v2H9V5zm0 8h2v2H9v-2zm0 4h2v2H9v-2zm4-16h2v2h-2V1zm0 16h2v2h-2v-2zm4-16h2v2h-2V1zm0 4h2v2h-2V5zm0 8h2v2h-2v-2zm0 4h2v2h-2v-2z",fill:"currentColor"})});var eY=null&&eq;const eG=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M9 9V1h2v8h8v2h-8v8H9v-8H1V9h8zM1 1h2v2H1V1zm0 4h2v2H1V5zm0 8h2v2H1v-2zm0 4h2v2H1v-2zM5 1h2v2H5V1zm0 16h2v2H5v-2zm8-16h2v2h-2V1zm0 16h2v2h-2v-2zm4-16h2v2h-2V1zm0 4h2v2h-2V5zm0 8h2v2h-2v-2zm0 4h2v2h-2v-2z",fill:"currentColor"})});var eX=null&&eG;const eQ=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M1 1h2v18H1V1zm4 0h2v2H5V1zm0 8h2v2H5V9zm0 8h2v2H5v-2zM9 1h2v2H9V1zm0 4h2v2H9V5zm0 4h2v2H9V9zm0 4h2v2H9v-2zm0 4h2v2H9v-2zm4-16h2v2h-2V1zm0 8h2v2h-2V9zm0 8h2v2h-2v-2zm4-16h2v2h-2V1zm0 4h2v2h-2V5zm0 4h2v2h-2V9zm0 4h2v2h-2v-2zm0 4h2v2h-2v-2z",fill:"currentColor"})});var eJ=null&&eQ;const e0=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M1 1h2v2H1V1zm0 4h2v2H1V5zm0 4h2v2H1V9zm0 4h2v2H1v-2zm0 4h2v2H1v-2zM5 1h2v2H5V1zm0 8h2v2H5V9zm0 8h2v2H5v-2zM9 1h2v2H9V1zm0 4h2v2H9V5zm0 4h2v2H9V9zm0 4h2v2H9v-2zm0 4h2v2H9v-2zm4-16h2v2h-2V1zm0 8h2v2h-2V9zm0 8h2v2h-2v-2zm4-16h2v2h-2V1zm0 4h2v2h-2V5zm0 4h2v2h-2V9zm0 4h2v2h-2v-2zm0 4h2v2h-2v-2z",fill:"currentColor"})});var e1=null&&e0;const e2=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M2 19H1V1h18v18H2zm1-2h14V3H3v14zm10-8h2v2h-2V9zM9 9h2v2H9V9zM5 9h2v2H5V9zm4-4h2v2H9V5zm0 8h2v2H9v-2z",fill:"currentColor"})});var e4=null&&e2;const e5=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M5 1h2v2H5V1zm0 8h2v2H5V9zm0 8h2v2H5v-2zM9 1h2v2H9V1zm0 4h2v2H9V5zm0 4h2v2H9V9zm0 4h2v2H9v-2zm0 4h2v2H9v-2zm4-16h2v2h-2V1zm0 8h2v2h-2V9zm0 8h2v2h-2v-2zM1 1h2v2H1V1zm0 4h2v2H1V5zm0 4h2v2H1V9zm0 4h2v2H1v-2zm0 4h2v2H1v-2zM17 1h2v18h-2V1z",fill:"currentColor"})});var e3=null&&e5;const e8=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M1 1h18v2H1V1zm0 4h2v2H1V5zm0 4h2v2H1V9zm0 4h2v2H1v-2zm0 4h2v2H1v-2zm4-8h2v2H5V9zm0 8h2v2H5v-2zM9 5h2v2H9V5zm0 4h2v2H9V9zm0 4h2v2H9v-2zm0 4h2v2H9v-2zm4-8h2v2h-2V9zm0 8h2v2h-2v-2zm4-12h2v2h-2V5zm0 4h2v2h-2V9zm0 4h2v2h-2v-2zm0 4h2v2h-2v-2z",fill:"currentColor"})});var e6=null&&e8;const e7=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M1 1h2v2H1V1zm0 4h2v2H1V5zm0 4h2v2H1V9zm0 4h2v2H1v-2zm0 4h2v2H1v-2zM5 1h2v2H5V1zm0 8h2v2H5V9zm0 8h2v2H5v-2zM9 1h2v18H9V1zm4 0h2v2h-2V1zm0 8h2v2h-2V9zm0 8h2v2h-2v-2zm4-16h2v2h-2V1zm0 4h2v2h-2V5zm0 4h2v2h-2V9zm0 4h2v2h-2v-2zm0 4h2v2h-2v-2z",fill:"currentColor"})});var e9=null&&e7;const te=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 2C0 .9.9 0 2 0h16a2 2 0 0 1 2 2v2H0V2zm1 3h18v13a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V5zm6 2v2h6V7H7z",fill:"currentColor"})});var tt=null&&te;const tn=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 13a3 3 0 1 1 0-6 3 3 0 0 1 0 6zM9 4a1 1 0 1 1 2 0 1 1 0 1 1-2 0zm4.54 1.05a1 1 0 1 1 1.41 1.41 1 1 0 1 1-1.41-1.41zM16 9a1 1 0 1 1 0 2 1 1 0 1 1 0-2zm-1.05 4.54a1 1 0 1 1-1.41 1.41 1 1 0 1 1 1.41-1.41zM11 16a1 1 0 1 1-2 0 1 1 0 1 1 2 0zm-4.54-1.05a1 1 0 1 1-1.41-1.41 1 1 0 1 1 1.41 1.41zM4 11a1 1 0 1 1 0-2 1 1 0 1 1 0 2zm1.05-4.54a1 1 0 1 1 1.41-1.41 1 1 0 1 1-1.41 1.41z",fill:"currentColor"})});var tr=null&&tn;const to=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 14a4 4 0 1 1 0-8 4 4 0 0 1 0 8zM9 1a1 1 0 1 1 2 0v2a1 1 0 1 1-2 0V1zm6.65 1.94a1 1 0 1 1 1.41 1.41l-1.4 1.4a1 1 0 1 1-1.41-1.41l1.4-1.4zM18.99 9a1 1 0 1 1 0 2h-1.98a1 1 0 1 1 0-2h1.98zm-1.93 6.65a1 1 0 1 1-1.41 1.41l-1.4-1.4a1 1 0 1 1 1.41-1.41l1.4 1.4zM11 18.99a1 1 0 1 1-2 0v-1.98a1 1 0 1 1 2 0v1.98zm-6.65-1.93a1 1 0 1 1-1.41-1.41l1.4-1.4a1 1 0 1 1 1.41 1.41l-1.4 1.4zM1.01 11a1 1 0 1 1 0-2h1.98a1 1 0 1 1 0 2H1.01zm1.93-6.65a1 1 0 1 1 1.41-1.41l1.4 1.4a1 1 0 1 1-1.41 1.41l-1.4-1.4z",fill:"currentColor"})});var ti=null&&to;const ta=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M9 10V8h2v2h2v2h-2v2H9v-2H7v-2h2zM0 3c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3zm2 2v12h16V5H2z",fill:"currentColor"})});var ts=null&&ta;const tl=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 3c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3zm2 2v12h16V5H2zm8 3 4 5H6l4-5z",fill:"currentColor"})});var tu=null&&tl;const tc=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 3c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3zm2 2v12h16V5H2z",fill:"currentColor"})});var td=null&&tc;const tf=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m15.3 14.89 2.77 2.77a1 1 0 0 1 0 1.41 1 1 0 0 1-1.41 0l-2.59-2.58A5.99 5.99 0 0 1 11 18V9.04a1 1 0 0 0-2 0V18a5.98 5.98 0 0 1-3.07-1.51l-2.59 2.58a1 1 0 0 1-1.41 0 1 1 0 0 1 0-1.41l2.77-2.77A5.95 5.95 0 0 1 4.07 13H1a1 1 0 1 1 0-2h3V8.41L.93 5.34a1 1 0 0 1 0-1.41 1 1 0 0 1 1.41 0l2.1 2.1h11.12l2.1-2.1a1 1 0 0 1 1.41 0 1 1 0 0 1 0 1.41L16 8.41V11h3a1 1 0 1 1 0 2h-3.07c-.1.67-.32 1.31-.63 1.89zM15 5H5a5 5 0 1 1 10 0z",fill:"currentColor"})});var th=null&&tf;const tp=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M17.16 6.42a8.03 8.03 0 0 0-3.58-3.58l-1.34 2.69a5.02 5.02 0 0 1 2.23 2.23l2.69-1.34zm0 7.16-2.69-1.34a5.02 5.02 0 0 1-2.23 2.23l1.34 2.69a8.03 8.03 0 0 0 3.58-3.58zM6.42 2.84a8.03 8.03 0 0 0-3.58 3.58l2.69 1.34a5.02 5.02 0 0 1 2.23-2.23L6.42 2.84zM2.84 13.58a8.03 8.03 0 0 0 3.58 3.58l1.34-2.69a5.02 5.02 0 0 1-2.23-2.23l-2.69 1.34zM10 20a10 10 0 1 1 0-20 10 10 0 0 1 0 20zm0-7a3 3 0 1 0 0-6 3 3 0 0 0 0 6z",fill:"currentColor"})});var tg=null&&tp;var tv=n(1549);const tm=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M1 4c0-1.1.9-2 2-2h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V4zm2 2v12h14V6H3zm2-6h2v2H5V0zm8 0h2v2h-2V0zM5 9h2v2H5V9zm0 4h2v2H5v-2zm4-4h2v2H9V9zm0 4h2v2H9v-2zm4-4h2v2h-2V9zm0 4h2v2h-2v-2z",fill:"currentColor"})});var ty=null&&tm;const tw=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 6c0-1.1.9-2 2-2h3l2-2h6l2 2h3a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6zm10 10a5 5 0 1 0 0-10 5 5 0 0 0 0 10zm0-2a3 3 0 1 1 0-6 3 3 0 0 1 0 6z",fill:"currentColor"})});var tx=null&&tw;var tb=n(82019);var tS=n(47953);var tk=n(29460);const tj=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m10 15-4 4v-4H2a2 2 0 0 1-2-2V3c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-8zM5 7v2h2V7H5zm4 0v2h2V7H9zm4 0v2h2V7h-2z",fill:"currentColor"})});var tC=null&&tj;const tT=e=>_jsxs("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:[_jsx("path",{d:"M18.48 6.449a1.249 1.249 0 0 0-1.747.265l-5.924 8.04-3.767-3.014a1.251 1.251 0 0 0-1.563 1.953l4.783 3.826a1.263 1.263 0 0 0 1.787-.235l6.7-9.087a1.25 1.25 0 0 0-.269-1.748Z",fill:"currentColor"}),_jsx("path",{d:"M12 0a12 12 0 1 0 12 12A12.013 12.013 0 0 0 12 0Zm0 22a10 10 0 1 1 10-10 10.011 10.011 0 0 1-10 10Z",fill:"currentColor"})]});var tE=null&&tT;const t_=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M2.93 17.07A10 10 0 1 1 17.07 2.93 10 10 0 0 1 2.93 17.07zm12.73-1.41A8 8 0 1 0 4.34 4.34a8 8 0 0 0 11.32 11.32zM6.7 9.29 9 11.6l4.3-4.3 1.4 1.42L9 14.4l-3.7-3.7 1.4-1.42z",fill:"currentColor"})});var tI=null&&t_;var tM=n(29813);var tD=n(85025);var tP=n(89116);const tO=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M20 10a10 10 0 1 1-20 0 10 10 0 0 1 20 0zM10 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm-.7 10.54L5.75 9l1.41-1.41L10 10.4l2.83-2.82L14.24 9 10 13.24l-.7-.7z",fill:"currentColor"})});var tA=null&&tO;const tR=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 20a10 10 0 1 1 0-20 10 10 0 0 1 0 20zm8-10a8 8 0 1 0-16 0 8 8 0 0 0 16 0zM7.46 9.3 11 5.75l1.41 1.41L9.6 10l2.82 2.83L11 14.24 6.76 10l.7-.7z",fill:"currentColor"})});var tZ=null&&tR;const tz=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 0a10 10 0 1 1 0 20 10 10 0 0 1 0-20zM2 10a8 8 0 1 0 16 0 8 8 0 0 0-16 0zm10.54.7L9 14.25l-1.41-1.41L10.4 10 7.6 7.17 9 5.76 13.24 10l-.7.7z",fill:"currentColor"})});var tN=null&&tz;const tL=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 10a10 10 0 1 1 20 0 10 10 0 0 1-20 0zm10 8a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm.7-10.54L14.25 11l-1.41 1.41L10 9.6l-2.83 2.8L5.76 11 10 6.76l.7.7z",fill:"currentColor"})});var tB=null&&tL;var tH=n(48164);const tF=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10.707 7.05 10 6.343 4.343 12l1.414 1.414L10 9.172l4.243 4.242L15.657 12z",fill:"currentColor"})});var tV=null&&tF;const tW=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M7.03 2.6a3 3 0 0 1 5.94 0L15 3v1h1a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h1V3l2.03-.4zM5 6H4v12h12V6h-1v1H5V6zm5-2a1 1 0 1 0 0-2 1 1 0 0 0 0 2z",fill:"currentColor"})});var tU=null&&tW;const tK=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M2.93 17.07A10 10 0 1 1 17.07 2.93 10 10 0 0 1 2.93 17.07zm1.41-1.41A8 8 0 1 0 15.66 4.34 8 8 0 0 0 4.34 15.66zm9.9-8.49L11.41 10l2.83 2.83-1.41 1.41L10 11.41l-2.83 2.83-1.41-1.41L8.59 10 5.76 7.17l1.41-1.41L10 8.59l2.83-2.83 1.41 1.41z",fill:"currentColor"})});var t$=null&&tK;const tq=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M2.93 17.07A10 10 0 1 1 17.07 2.93 10 10 0 0 1 2.93 17.07zM11.4 10l2.83-2.83-1.41-1.41L10 8.59 7.17 5.76 5.76 7.17 8.59 10l-2.83 2.83 1.41 1.41L10 11.41l2.83 2.83 1.41-1.41L11.41 10z",fill:"currentColor"})});var tY=null&&tq;var tG=n(52267);var tX=n(28127);var tQ=n(85554);const tJ=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M16.88 9.1A4 4 0 0 1 16 17H5a5 5 0 0 1-1-9.9V7a3 3 0 0 1 4.52-2.59A4.98 4.98 0 0 1 17 8c0 .38-.04.74-.12 1.1zM11 11h3l-4-4-4 4h3v3h2v-3z",fill:"currentColor"})});var t0=null&&tJ;const t1=e=>_jsxs("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:[_jsx("path",{d:"M3.924 17.376a1 1 0 0 0 1.052-.534 1.018 1.018 0 0 0-.743-1.476 2.518 2.518 0 0 1-1.594-.707A2.371 2.371 0 0 1 2 12.874a2.588 2.588 0 0 1 2.586-2.587 2.635 2.635 0 0 1 .535.056 1.008 1.008 0 0 0 .811-.186 1 1 0 0 0 .392-.779 4.521 4.521 0 0 1 .961-3.012c3.357-3.8 8.227-2.47 9.856.966a1.024 1.024 0 0 0 .978.57 3.666 3.666 0 0 1 2.721 1.05A3.757 3.757 0 0 1 22 11.679a3.9 3.9 0 0 1-2.483 3.61.969.969 0 0 0-.586 1.373.956.956 0 0 0 1.162.47 5.6 5.6 0 0 0 3.9-5.2 5.769 5.769 0 0 0-5.215-6.007.252.252 0 0 1-.191-.12 7.685 7.685 0 0 0-14.1 2.3.251.251 0 0 1-.227.2 4.642 4.642 0 0 0-3.64 2.242A4.482 4.482 0 0 0 0 12.994a4.287 4.287 0 0 0 1.235 3.09 5.057 5.057 0 0 0 2.689 1.292Z",fill:"currentColor"}),_jsx("path",{d:"M13.281 10.2a1.45 1.45 0 0 0-2.562 0l-5.056 9.634a1.429 1.429 0 0 0 .049 1.408 1.454 1.454 0 0 0 1.233.687h10.111a1.456 1.456 0 0 0 1.233-.687 1.431 1.431 0 0 0 .048-1.408ZM12 20.179a1 1 0 1 1 1-1 1 1 0 0 1-1 1Zm-.75-6.75a.75.75 0 0 1 1.5 0v3a.75.75 0 0 1-1.5 0Z",fill:"currentColor"})]});var t2=null&&t1;const t4=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M16.88 9.1A4 4 0 0 1 16 17H5a5 5 0 0 1-1-9.9V7a3 3 0 0 1 4.52-2.59A4.98 4.98 0 0 1 17 8c0 .38-.04.74-.12 1.1z",fill:"currentColor"})});var t5=null&&t4;const t3=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m.7 9.3 4.8-4.8 1.4 1.42L2.84 10l4.07 4.07-1.41 1.42L0 10l.7-.7zm18.6 1.4.7-.7-5.49-5.49-1.4 1.42L17.16 10l-4.07 4.07 1.41 1.42 4.78-4.78z",fill:"currentColor"})});var t8=null&&t3;const t6=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M4 11H2a2 2 0 0 1-2-2V5c0-1.1.9-2 2-2h2V1h14v10a4 4 0 0 1-4 4H8a4 4 0 0 1-4-4zm0-2V5H2v4h2zm-2 8v-1h18v1l-4 2H6l-4-2z",fill:"currentColor"})});var t7=null&&t6;var t9=n(52506);const ne=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M9 20v-1.7l.01-.24L15.07 12h2.94c1.1 0 1.99.89 1.99 2v4a2 2 0 0 1-2 2H9zm0-3.34V5.34l2.08-2.07a1.99 1.99 0 0 1 2.82 0l2.83 2.83a2 2 0 0 1 0 2.82L9 16.66zM0 1.99C0 .9.89 0 2 0h4a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2zM4 17a1 1 0 1 0 0-2 1 1 0 0 0 0 2z",fill:"currentColor"})});var nt=null&&ne;const nn=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M2 4v14h14v-6l2-2v10H0V2h10L8 4H2zm10.3-.3 4 4L8 16H4v-4l8.3-8.3zm1.4-1.4L16 0l4 4-2.3 2.3-4-4z",fill:"currentColor"})});var no=null&&nn;const ni=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M7 17H2a2 2 0 0 1-2-2V2C0 .9.9 0 2 0h16a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2h-5l4 2v1H3v-1l4-2zM2 2v11h16V2H2z",fill:"currentColor"})});var na=null&&ni;const ns=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M18 16h2v1a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1v-1h2V4c0-1.1.9-2 2-2h12a2 2 0 0 1 2 2v12zM4 4v9h12V4H4zm4 11v1h4v-1H8z",fill:"currentColor"})});var nl=null&&ns;const nu=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M17 11v3l-3-3H8a2 2 0 0 1-2-2V2c0-1.1.9-2 2-2h10a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2h-1zm-3 2v2a2 2 0 0 1-2 2H6l-3 3v-3H2a2 2 0 0 1-2-2V8c0-1.1.9-2 2-2h2v3a4 4 0 0 0 4 4h6z",fill:"currentColor"})});var nc=null&&nu;const nd=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M6 6V2c0-1.1.9-2 2-2h10a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-4v4a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V8c0-1.1.9-2 2-2h4zm2 0h4a2 2 0 0 1 2 2v4h4V2H8v4zM2 8v10h10V8H2z",fill:"currentColor"})});var nf=null&&nd;const nh=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M18 6V4H2v2h16zm0 4H2v6h16v-6zM0 4c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4zm4 8h4v2H4v-2z",fill:"currentColor"})});var np=null&&nh;const ng=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 20a10 10 0 1 1 0-20 10 10 0 0 1 0 20zm1-5h1a3 3 0 0 0 0-6H7.99a1 1 0 0 1 0-2H14V5h-3V3H9v2H8a3 3 0 1 0 0 6h4a1 1 0 1 1 0 2H6v2h3v2h2v-2z",fill:"currentColor"})});var nv=null&&ng;const nm=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 20a10 10 0 1 1 0-20 10 10 0 0 1 0 20zm-5.6-4.29a9.95 9.95 0 0 1 11.2 0 8 8 0 1 0-11.2 0zm6.12-7.64 3.02-3.02 1.41 1.41-3.02 3.02a2 2 0 1 1-1.41-1.41z",fill:"currentColor"})});var ny=null&&nm;const nw=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M15 2h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V4c0-1.1.9-2 2-2h2V0h2v2h6V0h2v2zM3 6v12h14V6H3zm6 5V9h2v2h2v2h-2v2H9v-2H7v-2h2z",fill:"currentColor"})});var nx=null&&nw;const nb=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M5 4a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm5 0a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm5 0a2 2 0 1 1 0-4 2 2 0 0 1 0 4zM5 9a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm5 0a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm5 0a2 2 0 1 1 0-4 2 2 0 0 1 0 4zM5 14a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm5 0a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm0 6a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm5-6a2 2 0 1 1 0-4 2 2 0 0 1 0 4z",fill:"currentColor"})});var nS=null&&nb;const nk=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m10 0 10 10-10 10L0 10 10 0zM6 10v3h2v-3h3v3l4-4-4-4v3H8a2 2 0 0 0-2 2z",fill:"currentColor"})});var nj=null&&nk;const nC=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M9 10V8h2v2h2v2h-2v2H9v-2H7v-2h2zm-5 8h12V6h-4V2H4v16zm-2 1V0h12l4 4v16H2v-1z",fill:"currentColor"})});var nT=null&&nC;const nE=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M4 18h12V6h-4V2H4v16zm-2 1V0h12l4 4v16H2v-1z",fill:"currentColor"})});var n_=null&&nE;const nI=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 9a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm0 6a2 2 0 1 1 0-4 2 2 0 0 1 0 4z",fill:"currentColor"})});var nM=null&&nI;var nD=n(94276);const nP=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M13 8V2H7v6H2l8 8 8-8h-5zM0 18h20v2H0v-2z",fill:"currentColor"})});var nO=null&&nP;const nA=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M6 6V2c0-1.1.9-2 2-2h10a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-4v4a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V8c0-1.1.9-2 2-2h4zm2 0h4a2 2 0 0 1 2 2v4h4V2H8v4zM2 8v10h10V8H2zm4 4v-2h2v2h2v2H8v2H6v-2H4v-2h2z",fill:"currentColor"})});var nR=null&&nA;const nZ=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M6 6V2c0-1.1.9-2 2-2h10a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-4v4a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V8c0-1.1.9-2 2-2h4zm2 0h4a2 2 0 0 1 2 2v4h4V2H8v4zM2 8v10h10V8H2z",fill:"currentColor"})});var nz=null&&nZ;const nN=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M14 16H6a2 2 0 0 1-2-2V6H0V4h4V0h2v14h14v2h-4v4h-2v-4zm0-3V6H7V4h7a2 2 0 0 1 2 2v7h-2z",fill:"currentColor"})});var nL=null&&nN;const nB=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m9.77 11.5 5.34 3.91c.44.33 1.24.59 1.79.59H20L6.89 6.38A3.5 3.5 0 1 0 5.5 8.37L7.73 10 5.5 11.63a3.5 3.5 0 1 0 1.38 1.99l2.9-2.12zM3.5 7a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm0 9a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zM15.1 4.59A3.53 3.53 0 0 1 16.9 4H20l-7.5 5.5L10.45 8l4.65-3.41z",fill:"currentColor"})});var nH=null&&nB;const nF=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m12.3 3.7 4 4L4 20H0v-4L12.3 3.7zm1.4-1.4L16 0l4 4-2.3 2.3-4-4z",fill:"currentColor"})});var nV=null&&nF;const nW=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M3.33 8 10 12l10-6-10-6L0 6h10v2H3.33zM0 8v8l2-2.22V9.2L0 8zm10 12-5-3-2-1.2v-6l7 4.2 7-4.2v6L10 20z",fill:"currentColor"})});var nU=null&&nW;const nK=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M18 2a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4c0-1.1.9-2 2-2h16zm-4.37 9.1L20 16v-2l-5.12-3.9L20 6V4l-10 8L0 4v2l5.12 4.1L0 14v2l6.37-4.9L10 14l3.63-2.9z",fill:"currentColor"})});var n$=null&&nK;const nq=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 23 11",style:{color:"inherit",...e.style},children:_jsx("path",{fill:"currentColor",fillRule:"nonzero",d:"M23 1.5A1.5 1.5 0 0 1 21.5 3h-20a1.5 1.5 0 0 1 0-3h20A1.5 1.5 0 0 1 23 1.5zm0 8a1.5 1.5 0 0 1-1.5 1.5h-20a1.5 1.5 0 0 1 0-3h20A1.5 1.5 0 0 1 23 9.5z"})});var nY=null&&nq;var nG=n(19318);const nX=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M2.93 17.07A10 10 0 1 1 17.07 2.93 10 10 0 0 1 2.93 17.07zM9 5v6h2V5H9zm0 8v2h2v-2H9z",fill:"currentColor"})});var nQ=null&&nX;const nJ=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 20a10 10 0 1 1 0-20 10 10 0 0 1 0 20zM7.88 7.88l-3.54 7.78 7.78-3.54 3.54-7.78-7.78 3.54zM10 11a1 1 0 1 1 0-2 1 1 0 0 1 0 2z",fill:"currentColor"})});var n0=null&&nJ;const n1=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10.5 20H0V7l5 3.33V7l5 3.33V7l5 3.33V0h5v20h-9.5z",fill:"currentColor"})});var n2=null&&n1;const n4=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m1 5 9 5-9 5V5zm9 0 9 5-9 5V5z",fill:"currentColor"})});var n5=null&&n4;const n3=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M19 5v10l-9-5 9-5zm-9 0v10l-9-5 9-5z",fill:"currentColor"})});var n8=null&&n3;var n6=n(52715);const n7=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 4c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4zm6 0v12h8V4H6zM2 5v2h2V5H2zm0 4v2h2V9H2zm0 4v2h2v-2H2zm14-8v2h2V5h-2zm0 4v2h2V9h-2zm0 4v2h2v-2h-2zM8 7l5 3-5 3V7z",fill:"currentColor"})});var n9=null&&n7;const re=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"m12 12 8-8V0H0v4l8 8v8l4-4v-4z",fill:"currentColor"})});var rt=re;const rn=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M7.667 12H2v8H0V0h12l.333 2H20l-3 6 3 6H8l-.333-2z",fill:"currentColor"})});var ro=null&&rn;const ri=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M13 7v11a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2V7L5 5V3h10v2l-2 2zM9 8v1a1 1 0 1 0 2 0V8a1 1 0 0 0-2 0zM5 0h10v2H5V0z",fill:"currentColor"})});var ra=null&&ri;const rs=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 4c0-1.1.9-2 2-2h7l2 2h7a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4zm2 2v10h16V6H2zm7 4V8h2v2h2v2h-2v2H9v-2H7v-2h2z",fill:"currentColor"})});var rl=null&&rs;const ru=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 4c0-1.1.9-2 2-2h7l2 2h7a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4zm2 2v10h16V6H2z",fill:"currentColor"})});var rc=null&&ru;const rd=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 4c0-1.1.9-2 2-2h7l2 2h7a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4z",fill:"currentColor"})});var rf=null&&rd;const rh=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M3 19V1h8a5 5 0 0 1 3.88 8.16A5.5 5.5 0 0 1 11.5 19H3zm7.5-8H7v5h3.5a2.5 2.5 0 1 0 0-5zM7 4v4h3a2 2 0 1 0 0-4H7z",fill:"currentColor"})});var rp=null&&rh;const rg=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M16 9v8h-2V9h-4V7h10v2h-4zM8 5v12H6V5H0V3h15v2H8z",fill:"currentColor"})});var rv=null&&rg;const rm=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M8 1h9v2H8V1zm3 2h3L8 17H5l6-14zM2 17h9v2H2v-2z",fill:"currentColor"})});var ry=null&&rm;const rw=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M16 9v8h-2V9h-4V7h10v2h-4zM8 5v12H6V5H0V3h15v2H8z",fill:"currentColor"})});var rx=null&&rw;const rb=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M16 9A6 6 0 1 1 4 9V1h3v8a3 3 0 0 0 6 0V1h3v8zM2 17h16v2H2v-2z",fill:"currentColor"})});var rS=null&&rb;const rk=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M13 5h3v10h-3V5zM4 5l9 5-9 5V5z",fill:"currentColor"})});var rj=null&&rk;const rC=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m1 5 9 5-9 5V5zm9 0 9 5-9 5V5z",fill:"currentColor"})});var rT=null&&rC;const rE=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M14.83 4H20v6h-1v10H1V10H0V4h5.17A3 3 0 0 1 10 .76 3 3 0 0 1 14.83 4zM8 10H3v8h5v-8zm4 0v8h5v-8h-5zM8 6H2v2h6V6zm4 0v2h6V6h-6zM8 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm4 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2z",fill:"currentColor"})});var r_=null&&rE;const rI=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 20a10 10 0 1 1 0-20 10 10 0 0 1 0 20zm2-2.25a8 8 0 0 0 4-2.46V9a2 2 0 0 1-2-2V3.07a7.95 7.95 0 0 0-3-1V3a2 2 0 0 1-2 2v1a2 2 0 0 1-2 2v2h3a2 2 0 0 1 2 2v5.75zm-4 0V15a2 2 0 0 1-2-2v-1h-.5A1.5 1.5 0 0 1 4 10.5V8H2.25A8.01 8.01 0 0 0 8 17.75z",fill:"currentColor"})});var rM=null&&rI;const rD=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M17 16a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4.01V4a1 1 0 0 1 1-1 1 1 0 0 1 1 1v6h1V2a1 1 0 0 1 1-1 1 1 0 0 1 1 1v8h1V1a1 1 0 1 1 2 0v9h1V2a1 1 0 0 1 1-1 1 1 0 0 1 1 1v13h1V9a1 1 0 0 1 1-1h1v8z",fill:"currentColor"})});var rP=null&&rD;const rO=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M2 2c0-1.1.9-2 2-2h12a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V2zm10.4 5.6A5 5 0 1 0 15 12V5l-2.6 2.6zM10 14a2 2 0 1 1 0-4 2 2 0 0 1 0 4zM6 3v2h4V3H6zM4 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm0 16a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm12 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm0-16a1 1 0 1 0 0-2 1 1 0 0 0 0 2z",fill:"currentColor"})});var rA=null&&rO;const rR=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M16 8A6 6 0 1 0 4 8v11H2a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2V8a8 8 0 1 1 16 0v3a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-2V8zm-4 2h3v10h-3V10zm-7 0h3v10H5V10z",fill:"currentColor"})});var rZ=null&&rR;const rz=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m10 3.22-.61-.6a5.5 5.5 0 0 0-7.78 7.77L10 18.78l8.39-8.4a5.5 5.5 0 0 0-7.78-7.77l-.61.61z",fill:"currentColor"})});var rN=null&&rz;const rL=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M8 20H3V10H0L10 0l10 10h-3v10h-5v-6H8v6z",fill:"currentColor"})});var rB=null&&rL;const rH=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 0s8 7.58 8 12a8 8 0 1 1-16 0c0-1.5.91-3.35 2.12-5.15A3 3 0 0 0 10 6V0zM8 0a3 3 0 1 0 0 6V0z",fill:"currentColor"})});var rF=null&&rH;const rV=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M3 18a7 7 0 0 1 4-6.33V8.33A7 7 0 0 1 3 2H1V0h18v2h-2a7 7 0 0 1-4 6.33v3.34A7 7 0 0 1 17 18h2v2H1v-2h2zM5 2a5 5 0 0 0 4 4.9V10h2V6.9A5 5 0 0 0 15 2H5z",fill:"currentColor"})});var rW=null&&rV;const rU=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 2C0 .9.9 0 2 0h16a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2zm14 12h4V2H2v12h4c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2zM5 9l2-2 2 2 4-4 2 2-6 6-4-4z",fill:"currentColor"})});var rK=null&&rU;const r$=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 2C0 .9.9 0 2 0h16a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2zm14 12h4V2H2v12h4c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2zM9 8V5h2v3h3l-4 4-4-4h3z",fill:"currentColor"})});var rq=null&&r$;const rY=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M14 14h4V2H2v12h4c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2zM0 2C0 .9.9 0 2 0h16a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2zm4 2h12v2H4V4zm0 3h12v2H4V7zm0 3h12v2H4v-2z",fill:"currentColor"})});var rG=null&&rY;const rX=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 2C0 .9.9 0 2 0h16a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2zm14 12h4V2H2v12h4c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2z",fill:"currentColor"})});var rQ=null&&rX;const rJ=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M1 1h18v2H1V1zm6 8h12v2H7V9zm-6 8h18v2H1v-2zM7 5h12v2H7V5zm0 8h12v2H7v-2zM5 6v8l-4-4 4-4z",fill:"currentColor"})});var r0=null&&rJ;const r1=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M1 1h18v2H1V1zm6 8h12v2H7V9zm-6 8h18v2H1v-2zM7 5h12v2H7V5zm0 8h12v2H7v-2zM1 6l4 4-4 4V6z",fill:"currentColor"})});var r2=null&&r1;var r4=n(28799);const r5=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M2.93 17.07A10 10 0 1 1 17.07 2.93 10 10 0 0 1 2.93 17.07zM9 11v4h2V9H9v2zm0-6v2h2V5H9z",fill:"currentColor"})});var r3=null&&r5;const r8=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M12.26 11.74 10 14H8v2H6v2l-2 2H0v-4l8.26-8.26a6 6 0 1 1 4 4zm4.86-4.62A3 3 0 0 0 15 2a3 3 0 0 0-2.12.88l4.24 4.24z",fill:"currentColor"})});var r6=null&&r8;const r7=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 6c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6zm2 0v2h2V6H2zm1 3v2h2V9H3zm-1 3v2h2v-2H2zm3 0v2h10v-2H5zm11 0v2h2v-2h-2zM6 9v2h2V9H6zm3 0v2h2V9H9zm3 0v2h2V9h-2zm3 0v2h2V9h-2zM5 6v2h2V6H5zm3 0v2h2V6H8zm3 0v2h2V6h-2zm3 0v2h4V6h-4z",fill:"currentColor"})});var r9=null&&r7;const oe=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m10 1 10 6-10 6L0 7l10-6zm6.67 10L20 13l-10 6-10-6 3.33-2L10 15l6.67-4z",fill:"currentColor"})});var ot=null&&oe;const on=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m0 6 10-6 10 6v2H0V6zm0 12h20v2H0v-2zm2-2h16v2H2v-2zm0-8h4v8H2V8zm6 0h4v8H8V8zm6 0h4v8h-4V8z",fill:"currentColor"})});var oo=null&&on;const oi=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M7 13.33a7 7 0 1 1 6 0V16H7v-2.67zM7 17h6v1.5c0 .83-.67 1.5-1.5 1.5h-3A1.5 1.5 0 0 1 7 18.5V17zm2-5.1V14h2v-2.1a5 5 0 1 0-2 0z",fill:"currentColor"})});var oa=null&&oi;const os=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M9.26 13a2 2 0 0 1 .01-2.01A3 3 0 0 0 9 5H5a3 3 0 0 0 0 6h.08a6.06 6.06 0 0 0 0 2H5A5 5 0 0 1 5 3h4a5 5 0 0 1 .26 10zm1.48-6a2 2 0 0 1-.01 2.01A3 3 0 0 0 11 15h4a3 3 0 0 0 0-6h-.08a6.06 6.06 0 0 0 0-2H15a5 5 0 0 1 0 10h-4a5 5 0 0 1-.26-10z",fill:"currentColor"})});var ol=null&&os;const ou=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M15 9h-3v2h3v3h2v-3h3V9h-3V6h-2v3zM0 3h10v2H0V3zm0 8h10v2H0v-2zm0-4h10v2H0V7zm0 8h10v2H0v-2z",fill:"currentColor"})});var oc=null&&ou;var od=n(98405);const of=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M1 4h2v2H1V4zm4 0h14v2H5V4zM1 9h2v2H1V9zm4 0h14v2H5V9zm-4 5h2v2H1v-2zm4 0h14v2H5v-2z",fill:"currentColor"})});var oh=null&&of;const op=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M17 12h-6v4h1v4H8v-4h1v-4H3v4h1v4H0v-4h1v-4a2 2 0 0 1 2-2h6V6H7V0h6v6h-2v4h6a2 2 0 0 1 2 2v4h1v4h-4v-4h1v-4z",fill:"currentColor"})});var og=null&&op;const ov=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m0 0 20 8-8 4-2 8z",fill:"currentColor"})});var om=null&&ov;const oy=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M18 11v7a2 2 0 0 1-4 0v-5h-2V3a3 3 0 0 1 3-3h3v11zM4 10a2 2 0 0 1-2-2V1a1 1 0 0 1 2 0v4h1V1a1 1 0 0 1 2 0v4h1V1a1 1 0 0 1 2 0v7a2 2 0 0 1-2 2v8a2 2 0 0 1-4 0v-8z",fill:"currentColor"})});var ow=null&&oy;const ox=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M13 18h1v2H0v-2h1V2c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v16zM3 2v6h8V2H3zm10 8h1a2 2 0 0 1 2 2v3a1 1 0 0 0 2 0v-5l-2-2V6l-2-2 1-1 5 5v7a3 3 0 0 1-6 0v-3h-1v-2z",fill:"currentColor"})});var ob=null&&ox;const oS=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M2 12h18v6h-2v-2H2v2H0V2h2v10zm8-6h8a2 2 0 0 1 2 2v3H10V6zm-4 5a3 3 0 1 1 0-6 3 3 0 0 1 0 6z",fill:"currentColor"})});var ok=null&&oS;const oj=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M8 1.88V0h2v16h10l-4 4H2l-2-4h8v-2H0v-.26A24.03 24.03 0 0 0 8 1.88zM19.97 14H10v-.36A11.94 11.94 0 0 0 10 .36v-.2A16.01 16.01 0 0 1 19.97 14z",fill:"currentColor"})});var oC=null&&oj;const oT=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M5.33 12.77A4 4 0 1 1 3 5.13V5a4 4 0 0 1 5.71-3.62 3.5 3.5 0 0 1 6.26 1.66 2.5 2.5 0 0 1 2 2.08 4 4 0 1 1-2.7 7.49A5.02 5.02 0 0 1 12 14.58V18l2 1v1H6v-1l2-1v-3l-2.67-2.23zM5 10l3 3v-3H5z",fill:"currentColor"})});var oE=null&&oT;const o_=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M12 16H9l2-4.5V9c0-1.1.9-2 2-2h2a2 2 0 0 1 2 2v2.5l2 4.5h-3v4h-4v-4zm-5-3h2V9a2 2 0 0 0-2-2H3a2 2 0 0 0-2 2v4h2v7h4v-7zM5 6a3 3 0 1 1 0-6 3 3 0 0 1 0 6zm9 0a3 3 0 1 1 0-6 3 3 0 0 1 0 6z",fill:"currentColor"})});var oI=null&&o_;const oM=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M16 6v2h2l2 12H0L2 8h2V6a6 6 0 1 1 12 0zm-2 0a4 4 0 1 0-8 0v2h8V6zM4 10v2h2v-2H4zm10 0v2h2v-2h-2z",fill:"currentColor"})});var oD=null&&oM;const oP=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 20S3 10.87 3 7a7 7 0 1 1 14 0c0 3.87-7 13-7 13zm0-11a2 2 0 1 0 0-4 2 2 0 0 0 0 4z",fill:"currentColor"})});var oO=null&&oP;const oA=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M4 8V6a6 6 0 1 1 12 0v2h1a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2v-8c0-1.1.9-2 2-2h1zm5 6.73V17h2v-2.27a2 2 0 1 0-2 0zM7 6v2h6V6a3 3 0 0 0-6 0z",fill:"currentColor"})});var oR=null&&oA;const oZ=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M4 8V6a6 6 0 1 1 12 0h-3v2h4a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2v-8c0-1.1.9-2 2-2h1zm5 6.73V17h2v-2.27a2 2 0 1 0-2 0zM7 6v2h6V6a3 3 0 0 0-6 0z",fill:"currentColor"})});var oz=null&&oZ;const oN=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m0 0 6 4 8-4 6 4v16l-6-4-8 4-6-4V0zm7 6v11l6-3V3L7 6z",fill:"currentColor"})});var oL=null&&oN;const oB=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z",fill:"currentColor"})});var oH=null&&oB;const oF=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M9 18v-1.06A8 8 0 0 1 2 9h2a6 6 0 1 0 12 0h2a8 8 0 0 1-7 7.94V18h3v2H6v-2h3zM6 4a4 4 0 1 1 8 0v5a4 4 0 1 1-8 0V4z",fill:"currentColor"})});var oV=null&&oF;const oW=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 20a10 10 0 1 1 0-20 10 10 0 0 1 0 20zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm5-9v2H5V9h10z",fill:"currentColor"})});var oU=null&&oW;const oK=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 20a10 10 0 1 1 0-20 10 10 0 0 1 0 20zm5-11H5v2h10V9z",fill:"currentColor"})});var o$=null&&oK;const oq=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M17 6V5h-2V2H3v14h5v4h3.25H11a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6zm-5.75 14H3a2 2 0 0 1-2-2V2c0-1.1.9-2 2-2h12a2 2 0 0 1 2 2v4a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-5.75zM11 8v8h6V8h-6zm3 11a1 1 0 1 0 0-2 1 1 0 0 0 0 2z",fill:"currentColor"})});var oY=null&&oq;const oG=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M9 8h6a1 1 0 0 0 0-2H9a1 1 0 0 0 0 2ZM9.471 4.5a.5.5 0 0 0 .5.438h4.064a.5.5 0 0 0 .5-.438 9.165 9.165 0 0 1 1.206-3.049.5.5 0 0 0-.638-.7l-1.862.8a.25.25 0 0 1-.33-.137l-.441-1.1a.5.5 0 0 0-.928 0l-.441 1.1a.25.25 0 0 1-.33.137L8.9.755a.5.5 0 0 0-.638.7A9.165 9.165 0 0 1 9.471 4.5ZM15.438 9.121A.591.591 0 0 0 15.081 9H8.919a.585.585 0 0 0-.357.121c-2.551 1.95-5.4 5.4-5.4 8.4C3.16 21.75 5.518 24 12 24s8.84-2.25 8.84-6.482c0-2.995-2.85-6.447-5.402-8.397ZM12.955 20.13a.25.25 0 0 0-.205.246v.374a.75.75 0 0 1-1.5 0v-.323a.25.25 0 0 0-.25-.25h-.588a.75.75 0 1 1 0-1.5h2.152a.671.671 0 0 0 .25-1.294l-2.185-.873a2.164 2.164 0 0 1 .416-4.14.25.25 0 0 0 .205-.246v-.374a.75.75 0 0 1 1.5 0v.323a.25.25 0 0 0 .25.25h.588a.75.75 0 1 1 0 1.5h-2.152a.671.671 0 0 0-.25 1.294l2.185.873a2.164 2.164 0 0 1-.416 4.14Z",fill:"currentColor"})});var oX=null&&oG;const oQ=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 20a10 10 0 1 1 0-20 10 10 0 0 1 0 20zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zM6.5 9a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm7 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm2.16 3a6 6 0 0 1-11.32 0h11.32z",fill:"currentColor"})});var oJ=null&&oQ;const o0=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 20a10 10 0 1 1 0-20 10 10 0 0 1 0 20zM6.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm7 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm2.16 3H4.34a6 6 0 0 0 11.32 0z",fill:"currentColor"})});var o1=null&&o0;const o2=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 20a10 10 0 1 1 0-20 10 10 0 0 1 0 20zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zM6.5 9a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm7 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zM7 13h6a1 1 0 0 1 0 2H7a1 1 0 0 1 0-2z",fill:"currentColor"})});var o4=null&&o2;const o5=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 20a10 10 0 1 1 0-20 10 10 0 0 1 0 20zM6.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm7 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zM7 13a1 1 0 0 0 0 2h6a1 1 0 0 0 0-2H7z",fill:"currentColor"})});var o3=null&&o5;const o8=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 20a10 10 0 1 1 0-20 10 10 0 0 1 0 20zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zM6.5 9a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm7 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm2.16 6H4.34a6 6 0 0 1 11.32 0z",fill:"currentColor"})});var o6=null&&o8;const o7=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 20a10 10 0 1 1 0-20 10 10 0 0 1 0 20zM6.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm7 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm2.16 6a6 6 0 0 0-11.32 0h11.32z",fill:"currentColor"})});var o9=null&&o7;const ie=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M4 9V6A6 6 0 0 1 9 .08V9H4zm0 2v3a6 6 0 1 0 12 0v-3H4zm12-2V6a6 6 0 0 0-5-5.92V9h5z",fill:"currentColor"})});var it=null&&ie;const io=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M5.418 16.414a1 1 0 0 0 1.707-.707v-3.291a.25.25 0 0 1 .25-.25h13.542a.25.25 0 0 1 .25.25v5.208a1.25 1.25 0 0 0 2.5 0v-6.708a1.25 1.25 0 0 0-1.25-1.25H7.375a.25.25 0 0 1-.25-.25V6.124a1 1 0 0 0-1.707-.707L.626 10.209a1 1 0 0 0 0 1.414Z",fill:"currentColor"})});var ii=null&&io;const ia=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 0h20v20H0V0zm10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm0-5a3 3 0 1 1 0-6 3 3 0 0 1 0 6z",fill:"currentColor"})});var is=null&&ia;const il=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m15.75 8-3.74-3.75a3.99 3.99 0 0 1 6.82-3.08A4 4 0 0 1 15.75 8zm-13.9 7.3 9.2-9.19 2.83 2.83-9.2 9.2-2.82-2.84zm-1.4 2.83 2.11-2.12 1.42 1.42-2.12 2.12-1.42-1.42zM10 15l2-2v7h-2v-5z",fill:"currentColor"})});var iu=null&&il;const ic=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M20 2.5V0L6 2v12.17A3 3 0 0 0 5 14H3a3 3 0 0 0 0 6h2a3 3 0 0 0 3-3V5.71L18 4.3v7.88a3 3 0 0 0-1-.17h-2a3 3 0 0 0 0 6h2a3 3 0 0 0 3-3V2.5z",fill:"currentColor"})});var id=null&&ic;const ih=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M16 17a3 3 0 0 1-3 3h-2a3 3 0 0 1 0-6h2a3 3 0 0 1 1 .17V1l6-1v4l-4 .67V17zM0 3h12v2H0V3zm0 4h12v2H0V7zm0 4h12v2H0v-2zm0 4h6v2H0v-2z",fill:"currentColor"})});var ip=null&&ih;const ig=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M4 12a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm6 0a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm6 0a2 2 0 1 1 0-4 2 2 0 0 1 0 4z",fill:"currentColor"})});var iv=null&&ig;const im=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 20a10 10 0 1 1 0-20 10 10 0 0 1 0 20zm7.75-8a8.01 8.01 0 0 0 0-4h-3.82a28.81 28.81 0 0 1 0 4h3.82zm-.82 2h-3.22a14.44 14.44 0 0 1-.95 3.51A8.03 8.03 0 0 0 16.93 14zm-8.85-2h3.84a24.61 24.61 0 0 0 0-4H8.08a24.61 24.61 0 0 0 0 4zm.25 2c.41 2.4 1.13 4 1.67 4s1.26-1.6 1.67-4H8.33zm-6.08-2h3.82a28.81 28.81 0 0 1 0-4H2.25a8.01 8.01 0 0 0 0 4zm.82 2a8.03 8.03 0 0 0 4.17 3.51c-.42-.96-.74-2.16-.95-3.51H3.07zm13.86-8a8.03 8.03 0 0 0-4.17-3.51c.42.96.74 2.16.95 3.51h3.22zm-8.6 0h3.34c-.41-2.4-1.13-4-1.67-4S8.74 3.6 8.33 6zM3.07 6h3.22c.2-1.35.53-2.55.95-3.51A8.03 8.03 0 0 0 3.07 6z",fill:"currentColor"})});var iy=null&&im;const iw=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M16 2h4v15a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V0h16v2zm0 2v13a1 1 0 0 0 1 1 1 1 0 0 0 1-1V4h-2zM2 2v15a1 1 0 0 0 1 1h11.17a2.98 2.98 0 0 1-.17-1V2H2zm2 8h8v2H4v-2zm0 4h8v2H4v-2zM4 4h8v4H4V4z",fill:"currentColor"})});var ix=null&&iw;const ib=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M4 8a6 6 0 0 1 4.03-5.67 2 2 0 1 1 3.95 0A6 6 0 0 1 16 8v6l3 2v1H1v-1l3-2V8zm8 10a2 2 0 1 1-4 0h4z",fill:"currentColor"})});var iS=null&&ib;const ik=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M6 8v7h8V8a4 4 0 1 0-8 0zm2.03-5.67a2 2 0 1 1 3.95 0A6 6 0 0 1 16 8v6l3 2v1H1v-1l3-2V8a6 6 0 0 1 4.03-5.67zM12 18a2 2 0 1 1-4 0h4z",fill:"currentColor"})});var ij=null&&ik;const iC=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M4 8a6 6 0 0 1 4.03-5.67 2 2 0 1 1 3.95 0A6 6 0 0 1 16 8v6l3 2v1H1v-1l3-2V8zm8 10a2 2 0 1 1-4 0h4z",fill:"currentColor"})});var iT=null&&iC;const iE=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10.5 20H2a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h1V3l2.03-.4a3 3 0 0 1 5.94 0L13 3v1h1a2 2 0 0 1 2 2v1h-2V6h-1v1H3V6H2v12h5v2h3.5zM8 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm2 4h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-8a2 2 0 0 1-2-2v-8c0-1.1.9-2 2-2zm0 2v8h8v-8h-8z",fill:"currentColor"})});var i_=null&&iE;const iI=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M2.93 17.07A10 10 0 1 1 17.07 2.93 10 10 0 0 1 2.93 17.07zm12.73-1.41A8 8 0 1 0 4.34 4.34a8 8 0 0 0 11.32 11.32zM7 6h2v8H7V6zm4 0h2v8h-2V6z",fill:"currentColor"})});var iM=null&&iI;const iD=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M2.93 17.07A10 10 0 1 1 17.07 2.93 10 10 0 0 1 2.93 17.07zM7 6v8h2V6H7zm4 0v8h2V6h-2z",fill:"currentColor"})});var iP=null&&iD;const iO=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M5 4h3v12H5V4zm7 0h3v12h-3V4z",fill:"currentColor"})});var iA=null&&iO;const iR=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M11 9.27V0l6 11-4 6H7l-4-6L9 0v9.27a2 2 0 1 0 2 0zM6 18h8v2H6v-2z",fill:"currentColor"})});var iZ=null&&iR;const iz=e=>_jsxs("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:[_jsx("path",{d:"M13.937 15a1.977 1.977 0 0 1-.672.443L9.73 16.86a2.026 2.026 0 0 1-2.157-.442 2 2 0 0 1-.443-2.157l1.413-3.533a2.008 2.008 0 0 1 .444-.673l5.887-5.888a.251.251 0 0 0-.174-.427H3.368A3.118 3.118 0 0 0 .25 6.858v13.765a3.117 3.117 0 0 0 3.118 3.117h13.765a3.116 3.116 0 0 0 3.117-3.117V9.294a.25.25 0 0 0-.426-.177Z",fill:"currentColor"}),_jsx("path",{d:"M18.568 3.3a.514.514 0 0 0-.707 0l-7.813 7.814a.507.507 0 0 0-.111.168l-1.414 3.536a.5.5 0 0 0 .111.54.519.519 0 0 0 .539.11l3.535-1.414a.5.5 0 0 0 .168-.111L20.69 6.13a.5.5 0 0 0 0-.707ZM23.165 3.654a2 2 0 0 0 0-2.828 2.048 2.048 0 0 0-2.828 0l-1.061 1.061a.531.531 0 0 0-.042.063.49.49 0 0 0-.105.29.5.5 0 0 0 .147.354L21.4 4.715a.483.483 0 0 0 .649.039.452.452 0 0 0 .058-.039Z",fill:"currentColor"})]});var iN=null&&iz;const iL=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M20 18.35V19a1 1 0 0 1-1 1h-2A17 17 0 0 1 0 3V1a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v4c0 .56-.31 1.31-.7 1.7L3.16 8.84c1.52 3.6 4.4 6.48 8 8l2.12-2.12c.4-.4 1.15-.71 1.7-.71H19a1 1 0 0 1 .99 1v3.35z",fill:"currentColor"})});var iB=null&&iL;const iH=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 4c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4zm11 9-3-3-6 6h16l-5-5-2 2zm4-4a2 2 0 1 0 0-4 2 2 0 0 0 0 4z",fill:"currentColor"})});var iF=null&&iH;const iV=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{fillRule:"evenodd",d:"M10 12v8A10 10 0 0 1 8.17.17L10 2h5a5 5 0 0 1 5 4.99v9.02A4 4 0 0 1 16 20v-2a2 2 0 1 0 0-4h-4l-2-2zm5.5-3a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z",fill:"currentColor"})});var iW=null&&iV;var iU=n(20493);var iK=n(58534);const i$=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M2.93 17.07A10 10 0 1 1 17.07 2.93 10 10 0 0 1 2.93 17.07zm12.73-1.41A8 8 0 1 0 4.34 4.34a8 8 0 0 0 11.32 11.32zM7 6l8 4-8 4V6z",fill:"currentColor"})});var iq=null&&i$;const iY=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m4 4 12 6-12 6z",fill:"currentColor"})});var iG=null&&iY;const iX=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M16 17a3 3 0 0 1-3 3h-2a3 3 0 0 1 0-6h2a3 3 0 0 1 1 .17V1l6-1v4l-4 .67V17zM0 3h12v2H0V3zm0 4h12v2H0V7zm0 4h12v2H0v-2zm0 4h6v2H0v-2z",fill:"currentColor"})});var iQ=null&&iX;const iJ=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M20 14v4a2 2 0 0 1-2 2h-4v-2a2 2 0 0 0-2-2 2 2 0 0 0-2 2v2H6a2 2 0 0 1-2-2v-4H2a2 2 0 0 1-2-2 2 2 0 0 1 2-2h2V6c0-1.1.9-2 2-2h4V2a2 2 0 0 1 2-2 2 2 0 0 1 2 2v2h4a2 2 0 0 1 2 2v4h-2a2 2 0 0 0-2 2 2 2 0 0 0 2 2h2z",fill:"currentColor"})});var i0=null&&iJ;const i1=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M9 12H1v6a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-6h-8v2H9v-2zm0-1H0V5c0-1.1.9-2 2-2h4V2a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v1h4a2 2 0 0 1 2 2v6h-9V9H9v2zm3-8V2H8v1h4z",fill:"currentColor"})});var i2=null&&i1;const i4=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M4 16H0V6h20v10h-4v4H4v-4zm2-4v6h8v-6H6zM4 0h12v5H4V0zM2 8v2h2V8H2zm4 0v2h2V8H6z",fill:"currentColor"})});var i5=null&&i4;const i3=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M17.4 18H20v2H0v-2h2.6L8 0h4l5.4 18zm-3.2-4H5.8l-1.2 4h10.8l-1.2-4zm-2.4-8H8.2L7 10h6l-1.2-4z",fill:"currentColor"})});var i8=null&&i3;const i6=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 20a10 10 0 1 1 0-20 10 10 0 0 1 0 20zm2-13c0 .28-.21.8-.42 1L10 9.58c-.57.58-1 1.6-1 2.42v1h2v-1c0-.29.21-.8.42-1L13 9.42c.57-.58 1-1.6 1-2.42a4 4 0 1 0-8 0h2a2 2 0 1 1 4 0zm-3 8v2h2v-2H9z",fill:"currentColor"})});var i7=null&&i6;var i9=n(46890);const ae=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M12 10a2 2 0 0 1-3.41 1.41A2 2 0 0 1 10 8V0a9.97 9.97 0 0 1 10 10h-8zm7.9 1.41A10 10 0 1 1 8.59.1v2.03a8 8 0 1 0 9.29 9.29h2.02zm-4.07 0a6 6 0 1 1-7.25-7.25v2.1a3.99 3.99 0 0 0-1.4 6.57 4 4 0 0 0 6.56-1.42h2.1z",fill:"currentColor"})});var at=null&&ae;const ao=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M12 10a2 2 0 0 1-3.41 1.41A2 2 0 0 1 10 8V0a9.97 9.97 0 0 1 10 10h-8zm7.9 1.41A10 10 0 1 1 8.59.1v2.03a8 8 0 1 0 9.29 9.29h2.02zm-4.07 0a6 6 0 1 1-7.25-7.25v2.1a3.99 3.99 0 0 0-1.4 6.57 4 4 0 0 0 6.56-1.42h2.1z",fill:"currentColor"})});var ai=null&&ao;const aa=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M20 9v9a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V8c0-1.1.9-2 2-2h13.8L.74 1.97 1.26.03 20 5.06V9zm-5 9a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM2 8v2h16V8H2zm1.5 10a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm5 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm6.5-1a2 2 0 1 1 0-4 2 2 0 0 1 0 4z",fill:"currentColor"})});var as=null&&aa;var al=n(89456);const au=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M14.66 15.66A8 8 0 1 1 17 10h-2a6 6 0 1 0-1.76 4.24l1.42 1.42zM12 10h8l-4 4-4-4z",fill:"currentColor"})});var ac=null&&au;const ad=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M18 17v-2.99A4 4 0 0 0 14 10h-3v5L5 9l6-6v5h3a6 6 0 0 1 6 6v3h-2zM6 6V3L0 9l6 6v-3L3 9l3-3z",fill:"currentColor"})});var af=null&&ad;const ah=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M15 17v-2.99A4 4 0 0 0 11 10H8v5L2 9l6-6v5h3a6 6 0 0 1 6 6v3h-2z",fill:"currentColor"})});var ap=null&&ah;var ag=n(96424);const av=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M5 4a2 2 0 0 0-2 2v6H0l4 4 4-4H5V6h7l2-2H5zm10 4h-3l4-4 4 4h-3v6a2 2 0 0 1-2 2H6l2-2h7V8z",fill:"currentColor"})});var am=null&&av;const ay=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 2C0 .9.9 0 2 0h14l4 4v14a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2zm5 0v6h10V2H5zm6 1h3v4h-3V3z",fill:"currentColor"})});var aw=null&&ay;const ax=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M2.8 15.8 0 13v7h7l-2.8-2.8 4.34-4.32-1.42-1.42L2.8 15.8zM17.2 4.2 20 7V0h-7l2.8 2.8-4.34 4.32 1.42 1.42L17.2 4.2zm-1.4 13L13 20h7v-7l-2.8 2.8-4.32-4.34-1.42 1.42 4.33 4.33zM4.2 2.8 7 0H0v7l2.8-2.8 4.32 4.34 1.42-1.42L4.2 2.8z",fill:"currentColor"})});var ab=null&&ax;const aS=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M12.9 14.32a8 8 0 1 1 1.41-1.41l5.35 5.33-1.42 1.42-5.33-5.34zM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12z",fill:"currentColor"})});var ak=null&&aS;const aj=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m0 0 20 10L0 20V0zm0 8v4l10-2L0 8z",fill:"currentColor"})});var aC=null&&aj;const aT=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 2C0 .9.9 0 2 0h16a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2zm0 7c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V9zm0 7c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2zM12 2v2h2V2h-2zm4 0v2h2V2h-2zm-4 7v2h2V9h-2zm4 0v2h2V9h-2zm-4 7v2h2v-2h-2zm4 0v2h2v-2h-2z",fill:"currentColor"})});var aE=null&&aT;const a_=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M4 10c0-1.1.9-2 2-2h8c1.1 0 2 .9 2 2v8c0 1.1-.9 2-2 2H6c-1.1 0-2-.9-2-2v-8zm2 0v8h8v-8h-2V8H8v2H6zm3-6.17V16h2V3.83l3.07 3.07 1.42-1.41L10 0l-.7.7-4.8 4.8 1.42 1.4L9 3.84z",fill:"currentColor"})});var aI=null&&a_;const aM=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M5.08 12.16A2.99 2.99 0 0 1 0 10a3 3 0 0 1 5.08-2.16l8.94-4.47a3 3 0 1 1 .9 1.79L5.98 9.63a3.03 3.03 0 0 1 0 .74l8.94 4.47A2.99 2.99 0 0 1 20 17a3 3 0 1 1-5.98-.37l-8.94-4.47z",fill:"currentColor"})});var aD=null&&aM;const aP=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M4 10c0-1.1.9-2 2-2h8c1.1 0 2 .9 2 2v8c0 1.1-.9 2-2 2H6c-1.1 0-2-.9-2-2v-8zm2 0v8h8v-8h-2V8H8v2H6zm3-6.17V16h2V3.83l3.07 3.07 1.42-1.41L10 0l-.7.7-4.8 4.8 1.42 1.4L9 3.84z",fill:"currentColor"})});var aO=null&&aP;const aA=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M19 11a7.5 7.5 0 0 1-3.5 5.94L10 20l-5.5-3.06A7.5 7.5 0 0 1 1 11V3c3.38 0 6.5-1.12 9-3 2.5 1.89 5.62 3 9 3v8zm-9 1.08 2.92 2.04-1.03-3.41 2.84-2.15-3.56-.08L10 5.12 8.83 8.48l-3.56.08L8.1 10.7l-1.03 3.4L10 12.09z",fill:"currentColor"})});var aR=null&&aA;const aZ=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M4 2h16l-3 9H4a1 1 0 1 0 0 2h13v2H4a3 3 0 0 1 0-6h.33L3 5 2 2H0V0h3a1 1 0 0 1 1 1v1zm1 18a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm10 0a2 2 0 1 1 0-4 2 2 0 0 1 0 4z",fill:"currentColor"})});var az=null&&aZ;const aN=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M7 3H2v14h5V3zm2 0v14h9V3H9zM0 3c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3zm3 1h3v2H3V4zm0 3h3v2H3V7zm0 3h3v2H3v-2z",fill:"currentColor"})});var aL=null&&aN;const aB=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M6.59 12.83 4.4 15c-.58.58-1.59 1-2.4 1H0v-2h2c.29 0 .8-.2 1-.41l2.17-2.18 1.42 1.42zM16 4V1l4 4-4 4V6h-2c-.29 0-.8.2-1 .41l-2.17 2.18L9.4 7.17 11.6 5c.58-.58 1.59-1 2.41-1h2zm0 10v-3l4 4-4 4v-3h-2c-.82 0-1.83-.42-2.41-1l-8.6-8.59C2.8 6.21 2.3 6 2 6H0V4h2c.82 0 1.83.42 2.41 1l8.6 8.59c.2.2.7.41.99.41h2z",fill:"currentColor"})});var aH=null&&aB;const aF=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{fillRule:"evenodd",d:"m4.16 4.16 1.42 1.42A6.99 6.99 0 0 0 10 18a7 7 0 0 0 4.42-12.42l1.42-1.42a9 9 0 1 1-11.69 0zM9 0h2v8H9V0z",fill:"currentColor"})});var aV=null&&aF;const aW=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m10 15-5.878 3.09 1.123-6.545L.489 6.91l6.572-.955L10 0l2.939 5.955 6.572.955-4.756 4.635 1.123 6.545z",fill:"currentColor"})});var aU=null&&aW;const aK=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M9 11.73a2 2 0 1 1 2 0V20H9v-8.27zm5.24 2.51-1.41-1.41A3.99 3.99 0 0 0 10 6a4 4 0 0 0-2.83 6.83l-1.41 1.41a6 6 0 1 1 8.49 0zm2.83 2.83-1.41-1.41a8 8 0 1 0-11.31 0l-1.42 1.41a10 10 0 1 1 14.14 0z",fill:"currentColor"})});var a$=null&&aK;const aq=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M4 5h3v10H4V5zm12 0v10l-9-5 9-5z",fill:"currentColor"})});var aY=null&&aq;const aG=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M13 5h3v10h-3V5zM4 5l9 5-9 5V5z",fill:"currentColor"})});var aX=null&&aG;const aQ=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M17 10.27V4.99a1 1 0 0 0-2 0V15a5 5 0 0 1-10 0v-1.08A6 6 0 0 1 0 8V2C0 .9.9 0 2 0h1a1 1 0 0 1 1 1 1 1 0 0 1-1 1H2v6a4 4 0 1 0 8 0V2H9a1 1 0 0 1-1-1 1 1 0 0 1 1-1h1a2 2 0 0 1 2 2v6a6 6 0 0 1-5 5.92V15a3 3 0 0 0 6 0V5a3 3 0 0 1 6 0v5.27a2 2 0 1 1-2 0z",fill:"currentColor"})});var aJ=null&&aQ;var a0=n(7122);const a1=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 0h20v5H0V0zm0 7h20v4H0V7zm0 6h20v3H0v-3zm0 5h20v2H0v-2z",fill:"currentColor"})});var a2=null&&a1;const a4=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M18 12v1H8v5l-6-6 6-6v5h8V2h2z",fill:"currentColor"})});var a5=null&&a4;const a3=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M3.5 13H12v5l6-6-6-6v5H4V2H2v11z",fill:"currentColor"})});var a8=null&&a3;var a6=n(41883);const a7=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M9 6a4 4 0 1 1 8 0v8h3l-4 4-4-4h3V6a2 2 0 0 0-2-2 2 2 0 0 0-2 2v8a4 4 0 1 1-8 0V6H0l4-4 4 4H5v8a2 2 0 0 0 2 2 2 2 0 0 0 2-2V6z",fill:"currentColor"})});var a9=null&&a7;const se=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M2 2c0-1.1.9-2 2-2h12a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V2zm2 0v14h12V2H4zm6 17a1 1 0 1 0 0-2 1 1 0 0 0 0 2z",fill:"currentColor"})});var st=null&&se;var sn=n(27285);const so=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M17.94 11H13V9h4.94A8 8 0 0 0 11 2.06V7H9V2.06A8 8 0 0 0 2.06 9H7v2H2.06A8 8 0 0 0 9 17.94V13h2v4.94A8 8 0 0 0 17.94 11zM10 20a10 10 0 1 1 0-20 10 10 0 0 1 0 20z",fill:"currentColor"})});var si=null&&so;const sa=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 0h6v6H0V0zm2 2v2h2V2H2zm12-2h6v6h-6V0zm2 2v2h2V2h-2zm-2 12h6v6h-6v-6zm2 2v2h2v-2h-2zM0 14h6v6H0v-6zm2 2v2h2v-2H2zM6 2h8v2H6V2zm0 14h8v2H6v-2zM16 6h2v8h-2V6zM2 6h2v8H2V6zm5 1h6v2H7V7zm2 2h2v4H9V9z",fill:"currentColor"})});var ss=null&&sa;const sl=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M12 5h-2v12H8V3h8v2h-2v12h-2V5zM8 3a4 4 0 1 0 0 8V3z",fill:"currentColor"})});var su=null&&sl;const sc=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M9 11.17V7h2v4.17a3 3 0 1 1-2 0zm-1-.63a4 4 0 1 0 4 0V4a2 2 0 1 0-4 0v6.53zM6 9.53V4a4 4 0 0 1 8 0v5.53A5.99 5.99 0 0 1 10 20 6 6 0 0 1 6 9.53z",fill:"currentColor"})});var sd=null&&sc;const sf=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M11 20a2 2 0 0 1-2-2v-6H2a2 2 0 0 1-2-2V8l2.3-6.12A3.11 3.11 0 0 1 5 0h8a2 2 0 0 1 2 2v8l-3 7v3h-1zm6-10V0h3v10h-3z",fill:"currentColor"})});var sh=null&&sf;const sp=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M11 0h1v3l3 7v8a2 2 0 0 1-2 2H5c-1.1 0-2.31-.84-2.7-1.88L0 12v-2a2 2 0 0 1 2-2h7V2a2 2 0 0 1 2-2zm6 10h3v10h-3V10z",fill:"currentColor"})});var sg=null&&sp;const sv=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M20 12v5H0v-5a2 2 0 1 0 0-4V3h20v5a2 2 0 1 0 0 4zM3 5v10h14V5H3zm7 7.08-2.92 2.04L8.1 10.7 5.27 8.56l3.56-.08L10 5.12l1.17 3.36 3.56.08-2.84 2.15 1.03 3.4L10 12.09z",fill:"currentColor"})});var sm=null&&sv;const sy=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 20a10 10 0 1 1 0-20 10 10 0 0 1 0 20zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm-1-7.59V4h2v5.59l3.95 3.95-1.41 1.41L9 10.41z",fill:"currentColor"})});var sw=null&&sy;const sx=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M16.32 7.1A8 8 0 1 1 9 4.06V2h2v2.06c1.46.18 2.8.76 3.9 1.62l1.46-1.46 1.42 1.42-1.46 1.45zM10 18a6 6 0 1 0 0-12 6 6 0 0 0 0 12zM7 0h6v2H7V0zm5.12 8.46 1.42 1.42L10 13.4 8.59 12l3.53-3.54z",fill:"currentColor"})});var sb=null&&sx;const sS=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 0s8 7.58 8 12a8 8 0 1 1-16 0c0-1.5.91-3.35 2.12-5.15A3 3 0 0 0 10 6V0zM8 0a3 3 0 1 0 0 6V0z",fill:"currentColor"})});var sk=null&&sS;const sj=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m7.41 9 2.24 2.24-.83 2L6 10.4l-3.3 3.3-1.4-1.42L4.58 9l-.88-.88c-.53-.53-1-1.3-1.3-2.12h2.2c.15.28.33.53.51.7l.89.9.88-.88C7.48 6.1 8 4.84 8 4H0V2h5V0h2v2h5v2h-2c0 1.37-.74 3.15-1.7 4.12L7.4 9zm3.84 8L10 20H8l5-12h2l5 12h-2l-1.25-3h-5.5zm.83-2h3.84L14 10.4 12.08 15z",fill:"currentColor"})});var sC=null&&sj;var sT=n(86357);const sE=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M13 18H7v1a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-1a2 2 0 0 1-2-2V2c0-1.1.9-2 2-2h12a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2v1a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1v-1zM4 5v6h5V5H4zm7 0v6h5V5h-5zM5 2v1h10V2H5zm.5 14a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm9 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z",fill:"currentColor"})});var s_=null&&sE;const sI=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M2 14v-3H1a1 1 0 0 1-1-1 1 1 0 0 1 1-1h1l4-7h8l4 7h1a1 1 0 0 1 1 1 1 1 0 0 1-1 1h-1v6a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1v-1H5v1a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1v-3zm13.86-5L13 4H7L4.14 9h11.72zM5.5 14a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm9 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z",fill:"currentColor"})});var sM=null&&sI;const sD=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M14 5h2v14H4V5h2V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v1zm3 0h1a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1V5zM3 5v14H2a2 2 0 0 1-2-2V7c0-1.1.9-2 2-2h1zm5-1v1h4V4H8z",fill:"currentColor"})});var sP=null&&sD;const sO=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M12 3h2l4 7h1a1 1 0 0 1 1 1 1 1 0 0 1-1 1h-1v6a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1v-1H5v1a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1v-6H1a1 1 0 0 1-1-1 1 1 0 0 1 1-1h1l4-7h2V1h4v2zm3.86 7L13 5H7l-2.86 5h11.72zM5.5 15a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm9 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z",fill:"currentColor"})});var sA=null&&sO;const sR=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M12 18H8l-2 2H3l2-2a2 2 0 0 1-2-2V2c0-1.1.9-2 2-2h10a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2l2 2h-3l-2-2zM5 5v6h10V5H5zm1.5 11a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm7 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zM8 2v1h4V2H8z",fill:"currentColor"})});var sZ=null&&sR;const sz=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m11 7 1.44 2.16c.31.47 1.01.84 1.57.84H17V8h-3l-1.44-2.16a5.94 5.94 0 0 0-1.4-1.4l-1.32-.88a1.72 1.72 0 0 0-1.7-.04L4 6v5h2V7l2-1-3 14h2l2.35-7.65L11 14v6h2v-8l-2.7-2.7L11 7zm1-3a2 2 0 1 0 0-4 2 2 0 0 0 0 4z",fill:"currentColor"})});var sN=null&&sz;const sL=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M14 5h2v14H4V5h2V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v1zm3 0h1a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1V5zM3 5v14H2a2 2 0 0 1-2-2V7c0-1.1.9-2 2-2h1zm5-1v1h4V4H8z",fill:"currentColor"})});var sB=null&&sL;const sH=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M15 9a3 3 0 0 0 3-3h2a5 5 0 0 1-5.1 5 5 5 0 0 1-3.9 3.9V17l5 2v1H4v-1l5-2v-2.1A5 5 0 0 1 5.1 11H5a5 5 0 0 1-5-5h2a3 3 0 0 0 3 3V4H2v2H0V2h5V0h10v2h5v4h-2V4h-3v5z",fill:"currentColor"})});var sF=null&&sH;var sV=n(7056);const sW=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M13 10v6H7v-6H2l8-8 8 8h-5zM0 18h20v2H0v-2z",fill:"currentColor"})});var sU=null&&sW;const sK=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M15 8v2h-4V4h2l-3-4-3 4h2v8H5V9.73a2 2 0 1 0-2 0V12a2 2 0 0 0 2 2h4v2.27a2 2 0 1 0 2 0V12h4a2 2 0 0 0 2-2V8h1V4h-4v4h1z",fill:"currentColor"})});var s$=null&&sK;const sq=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M2 6H0v2h2v2h2V8h2V6H4V4H2v2zm7 0a3 3 0 0 1 6 0v2a3 3 0 0 1-6 0V6zm11 9.14A15.93 15.93 0 0 0 12 13c-2.91 0-5.65.78-8 2.14V18h16v-2.86z",fill:"currentColor"})});var sY=null&&sq;const sG=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M7 8a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm0 1c2.15 0 4.2.4 6.1 1.09L12 16h-1.25L10 20H4l-.75-4H2L.9 10.09A17.93 17.93 0 0 1 7 9zm8.31.17c1.32.18 2.59.48 3.8.92L18 16h-1.25L16 20h-3.96l.37-2h1.25l1.65-8.83zM13 0a4 4 0 1 1-1.33 7.76 5.96 5.96 0 0 0 0-7.52C12.1.1 12.53 0 13 0z",fill:"currentColor"})});var sX=null&&sG;const sQ=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 20a10 10 0 1 1 0-20 10 10 0 0 1 0 20zM7 6v2a3 3 0 1 0 6 0V6a3 3 0 1 0-6 0zm-3.65 8.44a8 8 0 0 0 13.3 0 15.94 15.94 0 0 0-13.3 0z",fill:"currentColor"})});var sJ=null&&sQ;const s0=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 2C0 .9.9 0 2 0h16a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2zm7 4v2a3 3 0 1 0 6 0V6a3 3 0 1 0-6 0zm11 9.14A15.93 15.93 0 0 0 10 13c-2.91 0-5.65.78-8 2.14V18h16v-2.86z",fill:"currentColor"})});var s1=null&&s0;const s2=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M5 5a5 5 0 0 1 10 0v2A5 5 0 0 1 5 7V5zM0 16.68A19.9 19.9 0 0 1 10 14c3.64 0 7.06.97 10 2.68V20H0v-3.32z",fill:"currentColor"})});var s4=null&&s2;const s5=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M12 4h4.27a2 2 0 1 1 0 2h-2.14a9 9 0 0 1 4.84 7.25 2 2 0 1 1-2 .04 7 7 0 0 0-4.97-6V8H8v-.71a7 7 0 0 0-4.96 6 2 2 0 1 1-2-.04A9 9 0 0 1 5.86 6H3.73a2 2 0 1 1 0-2H8V3h4v1z",fill:"currentColor"})});var s3=null&&s5;const s8=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m16 7 4-4v14l-4-4v3a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4c0-1.1.9-2 2-2h12a2 2 0 0 1 2 2v3zm-8 7a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm0-2a2 2 0 1 1 0-4 2 2 0 0 1 0 4z",fill:"currentColor"})});var s6=null&&s8;const s7=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M16 16v2H4v-2H0V4h4V2h12v2h4v12h-4zM14 5.5V4H6v12h8V5.5zm2 .5v8h2V6h-2zM4 6H2v8h2V6z",fill:"currentColor"})});var s9=null&&s7;const le=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M12 4H8v12h4V4zm2 0v12h4V4h-4zM6 4H2v12h4V4zM0 2h20v16H0V2z",fill:"currentColor"})});var lt=null&&le;const ln=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m12.81 4.36-1.77 1.78a4 4 0 0 0-4.9 4.9l-2.76 2.75C2.06 12.79.96 11.49.2 10a11 11 0 0 1 12.6-5.64zm3.8 1.85c1.33 1 2.43 2.3 3.2 3.79a11 11 0 0 1-12.62 5.64l1.77-1.78a4 4 0 0 0 4.9-4.9l2.76-2.75zm-.25-3.99 1.42 1.42L3.64 17.78l-1.42-1.42L16.36 2.22z",fill:"currentColor"})});var lo=null&&ln;const li=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 3h20v2H0V3zm0 4h20v2H0V7zm0 4h20v2H0v-2zm0 4h20v2H0v-2z",fill:"currentColor"})});var la=null&&li;const ls=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M.2 10a11 11 0 0 1 19.6 0A11 11 0 0 1 .2 10zm9.8 4a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm0-2a2 2 0 1 1 0-4 2 2 0 0 1 0 4z",fill:"currentColor"})});var ll=null&&ls;const lu=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 0h9v9H0V0zm2 2v5h5V2H2zm-2 9h9v9H0v-9zm2 2v5h5v-5H2zm9-13h9v9h-9V0zm2 2v5h5V2h-5zm-2 9h9v9h-9v-9zm2 2v5h5v-5h-5z",fill:"currentColor"})});var lc=null&&lu;const ld=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M7 7H3v6h4l5 5V2L7 7zm8.54 6.54-1.42-1.42a3 3 0 0 0 0-4.24l1.42-1.42a4.98 4.98 0 0 1 0 7.08z",fill:"currentColor"})});var lf=null&&ld;const lh=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M9 7H5v6h4l5 5V2L9 7z",fill:"currentColor"})});var lp=null&&lh;const lg=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m15 8.59-2.12-2.13-1.42 1.42L13.6 10l-2.13 2.12 1.42 1.42L15 11.4l2.12 2.13 1.42-1.42L16.4 10l2.13-2.12-1.42-1.42L15 8.6zM4 7H0v6h4l5 5V2L4 7z",fill:"currentColor"})});var lv=null&&lg;const lm=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M5 7H1v6h4l5 5V2L5 7zm11.36 9.36-1.41-1.41a6.98 6.98 0 0 0 0-9.9l1.41-1.41a8.97 8.97 0 0 1 0 12.72zm-2.82-2.82-1.42-1.42a3 3 0 0 0 0-4.24l1.42-1.42a4.98 4.98 0 0 1 0 7.08z",fill:"currentColor"})});var ly=null&&lm;var lw=n(78800);const lx=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M11 9h2v2H9V7h2v2zm-5.82 6.08a6.98 6.98 0 0 1 0-10.16L6 0h8l.82 4.92a6.98 6.98 0 0 1 0 10.16L14 20H6l-.82-4.92zM10 15a5 5 0 1 0 0-10 5 5 0 0 0 0 10z",fill:"currentColor"})});var lb=null&&lx;const lS=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M9 10V8h2v2h2v2h-2v2H9v-2H7v-2h2zM0 3c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3zm2 2v12h16V5H2z",fill:"currentColor"})});var lk=null&&lS;const lj=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 3c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3zm2 2v12h16V5H2zm8 3 4 5H6l4-5z",fill:"currentColor"})});var lC=null&&lj;const lT=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 3c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3zm2 2v12h16V5H2z",fill:"currentColor"})});var lE=null&&lT;const l_=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M6.47 9.8A5 5 0 0 1 .2 3.22l3.95 3.95 2.82-2.83L3.03.41a5 5 0 0 1 6.4 6.68l10 10-2.83 2.83L6.47 9.8z",fill:"currentColor"})});var lI=null&&l_;const lM=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{fillRule:"evenodd",d:"M10 20a10 10 0 1 1 0-20 10 10 0 0 1 0 20zm0-18a8 8 0 1 0 0 16 4 4 0 1 1 0-8 4 4 0 1 0 0-8zm0 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm0-8a1 1 0 1 1 0-2 1 1 0 0 1 0 2z",fill:"currentColor"})});var lD=null&&lM;const lP=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{fillRule:"evenodd",d:"M12.9 14.32a8 8 0 1 1 1.41-1.41l5.35 5.33-1.42 1.42-5.33-5.34zM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12zM7 7V5h2v2h2v2H9v2H7V9H5V7h2z",fill:"currentColor"})});var lO=null&&lP;const lA=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{fillRule:"evenodd",d:"M12.9 14.32a8 8 0 1 1 1.41-1.41l5.35 5.33-1.42 1.42-5.33-5.34zM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12zM5 7h6v2H5V7z",fill:"currentColor"})});var lR=null&&lA;},79494:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M23.119 20 13.772 2.15a2 2 0 0 0-3.543 0L.881 20a2 2 0 0 0 1.772 2.928h18.694A2 2 0 0 0 23.119 20ZM11 8.423a1 1 0 0 1 2 0v6a1 1 0 1 1-2 0Zm1.05 11.51h-.028a1.528 1.528 0 0 1-1.522-1.47 1.476 1.476 0 0 1 1.448-1.53h.028A1.527 1.527 0 0 1 13.5 18.4a1.475 1.475 0 0 1-1.45 1.533Z",fill:"currentColor"})});t.Z=i},93641:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsxs)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:[(0,r.jsx)("path",{d:"M10.416 12a2.643 2.643 0 0 1 .775-1.875L20.732.584a1.768 1.768 0 0 1 2.5 2.5l-8.739 8.739a.25.25 0 0 0 0 .354l8.739 8.739a1.768 1.768 0 0 1-2.5 2.5l-9.541-9.541A2.643 2.643 0 0 1 10.416 12Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M.25 12a2.643 2.643 0 0 1 .775-1.875L10.566.584a1.768 1.768 0 0 1 2.5 2.5l-8.739 8.739a.25.25 0 0 0 0 .354l8.739 8.739a1.768 1.768 0 0 1-2.5 2.5l-9.541-9.541A2.643 2.643 0 0 1 .25 12Z",fill:"currentColor"})]});t.Z=i},78393:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:(0,r.jsx)("g",{fill:"#000",children:(0,r.jsx)("path",{d:"m23.962 17.457-.82-3.297a1.287 1.287 0 0 0-1.56-.934l-3.294.823a1.286 1.286 0 0 0-.343 2.35L19 17.03A9.538 9.538 0 0 1 12 20.604a8.652 8.652 0 0 1-8.085-5.667 1.286 1.286 0 0 0-2.415.884A11.232 11.232 0 0 0 12 23.175a12.108 12.108 0 0 0 9.214-4.8l.839.503a1.286 1.286 0 0 0 1.91-1.415ZM2.422 10.774l3.295-.823a1.286 1.286 0 0 0 .352-2.35l-.972-.583A9.588 9.588 0 0 1 12 3.396a8.652 8.652 0 0 1 8.085 5.667A1.286 1.286 0 0 0 22.5 8.18 11.232 11.232 0 0 0 12 .825 12.242 12.242 0 0 0 2.866 5.68l-.919-.552a1.286 1.286 0 0 0-1.91 1.414l.82 3.297a1.287 1.287 0 0 0 1.246.974 1.311 1.311 0 0 0 .32-.04Z",fill:"currentColor"})})});t.Z=i},48880:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M21.5 3h-2.75a.25.25 0 0 1-.25-.25V1a1 1 0 0 0-2 0v4.75a.75.75 0 0 1-.75.75.75.75 0 0 1-.75-.75V3.5a.5.5 0 0 0-.5-.5H8.25A.25.25 0 0 1 8 2.751V1a1 1 0 1 0-2 0v4.75a.75.75 0 0 1-.75.75.75.75 0 0 1-.75-.75V3.5A.5.5 0 0 0 4 3H2.5a2 2 0 0 0-2 2v17a2 2 0 0 0 2 2h19a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2ZM21 22H3a.5.5 0 0 1-.5-.5v-12A.5.5 0 0 1 3 9h18a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5Z",fill:"currentColor"})});t.Z=i},25136:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{fill:"currentColor",d:"M6.847 21.429a3.408 3.408 0 0 1-2.662-1.34l-3.76-4.273a1.714 1.714 0 0 1 2.572-2.263l3.522 4.01a.429.429 0 0 0 .631.014L21.036 3.105a1.715 1.715 0 1 1 2.486 2.362l-14.06 14.8a3.327 3.327 0 0 1-2.615 1.162Z"})});t.Z=i},6564:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M12 0a12 12 0 1 0 12 12A12.014 12.014 0 0 0 12 0Zm6.927 8.2-6.845 9.289a1.011 1.011 0 0 1-1.43.188l-4.888-3.908a1 1 0 1 1 1.25-1.562l4.076 3.261 6.227-8.451a1 1 0 1 1 1.61 1.183Z",fill:"currentColor"})});t.Z=i},93757:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M12 0C1.308 0-4.044 12.925 3.516 20.484 11.075 28.044 24 22.692 24 12 23.992 5.376 18.624.008 12 0zm.01 1.988c5.521.007 9.995 4.48 10.002 10.002 0 8.912-10.774 13.373-17.075 7.072-6.3-6.3-1.839-17.074 7.073-17.074zm6.234 4.588a1 1 0 0 0-.928.442l-6.226 8.45-4.076-3.261a1 1 0 1 0-1.25 1.563l4.888 3.908a1.011 1.011 0 0 0 1.43-.19L18.928 8.2a1 1 0 0 0-.684-1.623z",fill:"currentColor"})});t.Z=i},27275:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsxs)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:[(0,r.jsx)("path",{d:"M3.566 15.457a1 1 0 0 0-.5-.844 2.248 2.248 0 0 1-.431-.329A2.371 2.371 0 0 1 2 12.5a2.588 2.588 0 0 1 2.585-2.588 2.645 2.645 0 0 1 .536.056A1 1 0 0 0 6.324 9c.081-5.754 8.3-7.363 10.818-2.045a.97.97 0 0 0 .941.571 3.7 3.7 0 0 1 3 1.3 3.874 3.874 0 0 1 .908 2.811 3.428 3.428 0 0 1-1.1 2.375 1.316 1.316 0 0 0-.42 1.089.912.912 0 0 0 1.476.628A5.408 5.408 0 0 0 24 11.418a5.763 5.763 0 0 0-5.22-5.866.25.25 0 0 1-.19-.12 7.685 7.685 0 0 0-14.1 2.3.251.251 0 0 1-.227.2 4.642 4.642 0 0 0-3.643 2.24A4.471 4.471 0 0 0 0 12.619a4.287 4.287 0 0 0 1.235 3.09 4.177 4.177 0 0 0 .852.645 1 1 0 0 0 1.478-.9Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M18.5 15.8a6.5 6.5 0 1 0-6.5 6.5 6.508 6.508 0 0 0 6.5-6.5Zm-7.25 1.25v-.55a1.257 1.257 0 0 1 .986-1.221 1.125 1.125 0 1 0-1.361-1.1.75.75 0 1 1-1.5 0 2.625 2.625 0 1 1 3.538 2.461.25.25 0 0 0-.163.234v.18a.75.75 0 0 1-1.5 0ZM12 18.8a1 1 0 1 1-1 1 1 1 0 0 1 1-1Z",fill:"currentColor"})]});t.Z=i},50798:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{fill:"currentColor",d:"M12 0a10.286 10.286 0 0 0-6.243 18.45 1.714 1.714 0 0 1 .672 1.36v1.619A2.571 2.571 0 0 0 9 24a1.714 1.714 0 0 0 1.714-1.714V21a1.286 1.286 0 0 1 2.572 0v1.286A1.714 1.714 0 0 0 15 24a2.571 2.571 0 0 0 2.571-2.571V19.81a1.714 1.714 0 0 1 .672-1.36A10.286 10.286 0 0 0 12 0ZM7.714 12.429a2.143 2.143 0 1 1 2.143-2.143 2.143 2.143 0 0 1-2.143 2.143Zm8.572 0a2.143 2.143 0 1 1 2.143-2.143 2.143 2.143 0 0 1-2.143 2.143Z"})});t.Z=i},26858:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{fill:"currentColor",d:"M23.91 9.113a1.785 1.785 0 0 0-1.453-1.227l-6.132-.926-2.714-5.506a1.863 1.863 0 0 0-3.222 0l-2.78 5.552-6.066.88a1.798 1.798 0 0 0-1 3.068l4.428 4.361-1.028 6.055a1.797 1.797 0 0 0 2.607 1.895l5.488-2.865 5.429 2.858a1.797 1.797 0 0 0 2.607-1.895l-1.011-6.128 4.394-4.286a1.786 1.786 0 0 0 .454-1.836Z"})});t.Z=i},54402:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M23.113 5.954 21.849 4.69l.881-.88a1.914 1.914 0 1 0-2.707-2.71L9.04 12.085a6.014 6.014 0 1 0 2.707 2.707l3.739-3.737.762.762a1.75 1.75 0 1 0 2.475-2.475l-.763-.762 1.416-1.417 1.264 1.263a1.788 1.788 0 0 0 2.473 0 1.751 1.751 0 0 0 0-2.472Zm-16.737 8.5a3 3 0 1 1-3 3 3 3 0 0 1 3-2.998Z",fill:"currentColor"})});t.Z=i},64355:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M4 8V6a6 6 0 1 1 12 0v2h1a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2v-8c0-1.1.9-2 2-2h1zm5 6.73V17h2v-2.27a2 2 0 1 0-2 0zM7 6v2h6V6a3 3 0 0 0-6 0z",fill:"currentColor"})});t.Z=i},25104:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsxs)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",className:"bi bi-moon-stars",viewBox:"0 0 16 16",style:{color:"inherit",...e.style},children:[(0,r.jsx)("path",{d:"M6 .278a.768.768 0 0 1 .08.858 7.208 7.208 0 0 0-.878 3.46c0 4.021 3.278 7.277 7.318 7.277.527 0 1.04-.055 1.533-.16a.787.787 0 0 1 .81.316.733.733 0 0 1-.031.893A8.349 8.349 0 0 1 8.344 16C3.734 16 0 12.286 0 7.71 0 4.266 2.114 1.312 5.124.06A.752.752 0 0 1 6 .278zM4.858 1.311A7.269 7.269 0 0 0 1.025 7.71c0 4.02 3.279 7.276 7.319 7.276a7.316 7.316 0 0 0 5.205-2.162c-.337.042-.68.063-1.029.063-4.61 0-8.343-3.714-8.343-8.29 0-1.167.242-2.278.681-3.286z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M10.794 3.148a.217.217 0 0 1 .412 0l.387 1.162c.173.518.579.924 1.097 1.097l1.162.387a.217.217 0 0 1 0 .412l-1.162.387a1.734 1.734 0 0 0-1.097 1.097l-.387 1.162a.217.217 0 0 1-.412 0l-.387-1.162A1.734 1.734 0 0 0 9.31 6.593l-1.162-.387a.217.217 0 0 1 0-.412l1.162-.387a1.734 1.734 0 0 0 1.097-1.097l.387-1.162zM13.863.099a.145.145 0 0 1 .274 0l.258.774c.115.346.386.617.732.732l.774.258a.145.145 0 0 1 0 .274l-.774.258a1.156 1.156 0 0 0-.732.732l-.258.774a.145.145 0 0 1-.274 0l-.258-.774a1.156 1.156 0 0 0-.732-.732l-.774-.258a.145.145 0 0 1 0-.274l.774-.258c.346-.115.617-.386.732-.732L13.863.1z",fill:"currentColor"})]});t.Z=i},68476:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsxs)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:[(0,r.jsx)("rect",{width:23,height:3,x:.5,y:2.5,rx:1,ry:1,fill:"currentColor"}),(0,r.jsx)("rect",{width:23,height:3,x:.5,y:10.5,rx:1,ry:1,fill:"currentColor"}),(0,r.jsx)("rect",{width:23,height:3,x:.5,y:18.5,rx:1,ry:1,fill:"currentColor"})]});t.Z=i},87107:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsxs)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:[(0,r.jsx)("path",{d:"M20 11.491a1 1 0 0 0-1 1v8.5a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1v-17a1 1 0 0 1 1-1h10a1 1 0 0 0 0-2H3a3 3 0 0 0-3 3v17a3 3 0 0 0 3 3h15a3 3 0 0 0 3-3v-8.5a1 1 0 0 0-1-1Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M18.818 3.051a.516.516 0 0 0-.707 0L10.3 10.865a.5.5 0 0 0-.111.168l-1.416 3.535a.5.5 0 0 0 .111.539.519.519 0 0 0 .539.11l3.535-1.417a.5.5 0 0 0 .168-.111L20.94 5.88a.5.5 0 0 0 0-.707ZM23.415.577a2.047 2.047 0 0 0-2.828 0l-1.061 1.06a.5.5 0 0 0 0 .707l2.12 2.121a.5.5 0 0 0 .707 0l1.061-1.06a2 2 0 0 0 0-2.828Z",fill:"currentColor"})]});t.Z=i},15988:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M10.664 20.073a1.249 1.249 0 1 0-.507 2.447A10.739 10.739 0 1 0 2.4 16.1a.25.25 0 0 1-.084.3l-1 .726a1 1 0 0 0 .377 1.787l3.946.849a1.062 1.062 0 0 0 .21.022 1 1 0 0 0 .978-.79l.945-4.4a1 1 0 0 0-1.565-1.02l-1.361.989a.25.25 0 0 1-.386-.128 8.255 8.255 0 1 1 6.205 5.643Z",fill:"currentColor"})});t.Z=i},5202:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M.439 21.44a1.5 1.5 0 0 0 2.122 2.121l9.262-9.261a.25.25 0 0 1 .354 0l9.262 9.263a1.5 1.5 0 1 0 2.122-2.121L14.3 12.177a.25.25 0 0 1 0-.354l9.263-9.262A1.5 1.5 0 0 0 21.439.44L12.177 9.7a.25.25 0 0 1-.354 0L2.561.44A1.5 1.5 0 0 0 .439 2.561L9.7 11.823a.25.25 0 0 1 0 .354Z",fill:"currentColor"})});t.Z=i},28339:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"m23.384 21.619-6.529-6.529a9.284 9.284 0 1 0-1.768 1.768l6.529 6.529a1.266 1.266 0 0 0 1.768 0 1.251 1.251 0 0 0 0-1.768ZM2.75 9.5a6.75 6.75 0 1 1 6.75 6.75A6.758 6.758 0 0 1 2.75 9.5Z",fill:"currentColor"})});t.Z=i},32455:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",className:"bi bi-sun",viewBox:"0 0 16 16",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M8 11a3 3 0 1 1 0-6 3 3 0 0 1 0 6zm0 1a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM8 0a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 0zm0 13a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 13zm8-5a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2a.5.5 0 0 1 .5.5zM3 8a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2A.5.5 0 0 1 3 8zm10.657-5.657a.5.5 0 0 1 0 .707l-1.414 1.415a.5.5 0 1 1-.707-.708l1.414-1.414a.5.5 0 0 1 .707 0zm-9.193 9.193a.5.5 0 0 1 0 .707L3.05 13.657a.5.5 0 0 1-.707-.707l1.414-1.414a.5.5 0 0 1 .707 0zm9.193 2.121a.5.5 0 0 1-.707 0l-1.414-1.414a.5.5 0 0 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .707zM4.464 4.465a.5.5 0 0 1-.707 0L2.343 3.05a.5.5 0 1 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .708z",fill:"currentColor"})});t.Z=i},69350:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{fill:"currentColor",d:"M7.176 22.5a4.111 4.111 0 0 1-3.17-1.486l-3.62-4.6a1.8 1.8 0 1 1 2.828-2.228l3.6 4.56a.384.384 0 0 0 .379.152.52.52 0 0 0 .408-.197L20.794 2.177a1.8 1.8 0 1 1 2.812 2.246L10.39 20.964A4.12 4.12 0 0 1 7.2 22.5Z"})});t.Z=i},38199:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"m12.81 4.36-1.77 1.78a4 4 0 0 0-4.9 4.9l-2.76 2.75C2.06 12.79.96 11.49.2 10a11 11 0 0 1 12.6-5.64zm3.8 1.85c1.33 1 2.43 2.3 3.2 3.79a11 11 0 0 1-12.62 5.64l1.77-1.78a4 4 0 0 0 4.9-4.9l2.76-2.75zm-.25-3.99 1.42 1.42L3.64 17.78l-1.42-1.42L16.36 2.22z",fill:"currentColor"})});t.Z=i},42632:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M.2 10a11 11 0 0 1 19.6 0A11 11 0 0 1 .2 10zm9.8 4a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm0-2a2 2 0 1 1 0-4 2 2 0 0 1 0 4z",fill:"currentColor"})});t.Z=i},45492:function(e,t,n){"use strict";n.d(t,{jy:function(){return u2},bA:function(){return u7},W2:function(){return u5},rS:function(){return u4},Jp:function(){return u0},Fg:function(){return u1}});var r={};n.r(r);n.d(r,{buttonBareBackground:function(){return rM},buttonBareBackgroundActive:function(){return rP},buttonBareBackgroundHover:function(){return rD},buttonBareDisabledBackground:function(){return rA},buttonBareDisabledText:function(){return rO},buttonBareText:function(){return r_},buttonBareTextHover:function(){return rI},buttonMenuBackground:function(){return n5},buttonMenuBackgroundHover:function(){return n3},buttonMenuBorder:function(){return n8},buttonMenuSelectedBackground:function(){return n9},buttonMenuSelectedBackgroundHover:function(){return re},buttonMenuSelectedBorder:function(){return rt},buttonMenuSelectedText:function(){return n6},buttonMenuSelectedTextHover:function(){return n7},buttonMenuText:function(){return n2},buttonMenuTextHover:function(){return n4},buttonNormalBackground:function(){return rp},buttonNormalBackgroundHover:function(){return rg},buttonNormalBorder:function(){return rv},buttonNormalDisabledBackground:function(){return rb},buttonNormalDisabledBorder:function(){return rS},buttonNormalDisabledText:function(){return rx},buttonNormalSelectedBackground:function(){return rw},buttonNormalSelectedText:function(){return ry},buttonNormalShadow:function(){return rm},buttonNormalText:function(){return rf},buttonNormalTextHover:function(){return rh},buttonPrimaryBackground:function(){return ri},buttonPrimaryBackgroundHover:function(){return ra},buttonPrimaryBorder:function(){return rs},buttonPrimaryDisabledBackground:function(){return rc},buttonPrimaryDisabledBorder:function(){return rd},buttonPrimaryDisabledText:function(){return ru},buttonPrimaryShadow:function(){return rl},buttonPrimaryText:function(){return rn},buttonPrimaryTextHover:function(){return ro},calendarBackground:function(){return rj},calendarItemBackground:function(){return rT},calendarItemText:function(){return rC},calendarSelectedBackground:function(){return rE},calendarText:function(){return rk},cardBackground:function(){return t5},cardBorder:function(){return t3},cardShadow:function(){return t8},checkboxBackgroundSelected:function(){return oc},checkboxBorderSelected:function(){return od},checkboxShadowSelected:function(){return of},checkboxText:function(){return ou},errorBackground:function(){return rq},errorBorder:function(){return rJ},errorText:function(){return rY},errorTextDark:function(){return rG},errorTextDarker:function(){return rX},errorTextMenu:function(){return rQ},formInputBackground:function(){return r3},formInputBackgroundSelected:function(){return r8},formInputBackgroundSelection:function(){return r6},formInputBorder:function(){return r7},formInputBorderSelected:function(){return oe},formInputShadowSelected:function(){return os},formInputText:function(){return ot},formInputTextHighlight:function(){return ol},formInputTextPlaceholder:function(){return oo},formInputTextPlaceholderSelected:function(){return oi},formInputTextReadOnlySelection:function(){return r9},formInputTextSelected:function(){return on},formInputTextSelection:function(){return oa},formLabelBackground:function(){return r5},formLabelText:function(){return r4},markdownDark:function(){return n0},markdownLight:function(){return n1},markdownNormal:function(){return nJ},menuAutoCompleteBackground:function(){return nO},menuAutoCompleteBackgroundHover:function(){return nA},menuAutoCompleteText:function(){return nR},menuAutoCompleteTextHeader:function(){return nZ},menuBackground:function(){return nk},menuBorder:function(){return nM},menuBorderHover:function(){return nD},menuItemBackground:function(){return nj},menuItemBackgroundHover:function(){return nC},menuItemText:function(){return nT},menuItemTextHeader:function(){return nI},menuItemTextHover:function(){return nE},menuItemTextSelected:function(){return n_},menuKeybindingText:function(){return nP},mobileAccountShadow:function(){return n$},mobileAccountText:function(){return nq},mobileConfigServerViewTheme:function(){return nQ},mobileHeaderBackground:function(){return nL},mobileHeaderText:function(){return nB},mobileHeaderTextHover:function(){return nF},mobileHeaderTextSubdued:function(){return nH},mobileModalBackground:function(){return nY},mobileModalText:function(){return nG},mobileNavBackground:function(){return nW},mobileNavItem:function(){return nU},mobileNavItemSelected:function(){return nK},mobilePageBackground:function(){return nV},mobileViewTheme:function(){return nX},modalBackground:function(){return nz},modalBorder:function(){return nN},noticeBackground:function(){return rR},noticeBackgroundDark:function(){return rz},noticeBackgroundLight:function(){return rZ},noticeBorder:function(){return rF},noticeText:function(){return rN},noticeTextDark:function(){return rB},noticeTextLight:function(){return rL},noticeTextMenu:function(){return rH},pageBackground:function(){return tW},pageBackgroundBottomRight:function(){return t$},pageBackgroundLineBottom:function(){return tG},pageBackgroundLineMid:function(){return tY},pageBackgroundLineTop:function(){return tq},pageBackgroundModalActive:function(){return tU},pageBackgroundTopLeft:function(){return tK},pageText:function(){return tX},pageTextDark:function(){return t0},pageTextLight:function(){return tQ},pageTextLink:function(){return t2},pageTextLinkLight:function(){return t4},pageTextPositive:function(){return t1},pageTextSubdued:function(){return tJ},pillBackground:function(){return oh},pillBackgroundLight:function(){return op},pillBackgroundSelected:function(){return ow},pillBorder:function(){return om},pillBorderDark:function(){return oy},pillBorderSelected:function(){return ob},pillText:function(){return og},pillTextHighlighted:function(){return ov},pillTextSelected:function(){return ox},reportsBlue:function(){return ok},reportsLabel:function(){return oj},reportsRed:function(){return oS},sidebarBackground:function(){return nv},sidebarItemAccnetSelected:function(){return nw},sidebarItemBackgroundFailed:function(){return ny},sidebarItemBackgroundHover:function(){return nx},sidebarItemBackgroundPositive:function(){return nm},sidebarItemText:function(){return nb},sidebarItemTextSelected:function(){return nS},tableBackground:function(){return t6},tableBorder:function(){return nl},tableBorderHover:function(){return nc},tableBorderSelected:function(){return nu},tableBorderSeparator:function(){return nd},tableHeaderBackground:function(){return ns},tableHeaderText:function(){return na},tableRowBackgroundHighlight:function(){return nf},tableRowBackgroundHighlightText:function(){return nh},tableRowBackgroundHover:function(){return t7},tableRowHeaderBackground:function(){return np},tableRowHeaderText:function(){return ng},tableText:function(){return t9},tableTextHover:function(){return no},tableTextInactive:function(){return ni},tableTextLight:function(){return ne},tableTextSelected:function(){return nn},tableTextSubdued:function(){return nt},upcomingBackground:function(){return r0},upcomingBorder:function(){return r2},upcomingText:function(){return r1},warningBackground:function(){return rV},warningBorder:function(){return r$},warningText:function(){return rW},warningTextDark:function(){return rK},warningTextLight:function(){return rU}});var o={};n.r(o);n.d(o,{buttonBareBackground:function(){return ap},buttonBareBackgroundActive:function(){return av},buttonBareBackgroundHover:function(){return ag},buttonBareDisabledBackground:function(){return ay},buttonBareDisabledText:function(){return am},buttonBareText:function(){return af},buttonBareTextHover:function(){return ah},buttonMenuBackground:function(){return iH},buttonMenuBackgroundHover:function(){return iF},buttonMenuBorder:function(){return iV},buttonMenuSelectedBackground:function(){return iK},buttonMenuSelectedBackgroundHover:function(){return i$},buttonMenuSelectedBorder:function(){return iq},buttonMenuSelectedText:function(){return iW},buttonMenuSelectedTextHover:function(){return iU},buttonMenuText:function(){return iL},buttonMenuTextHover:function(){return iB},buttonNormalBackground:function(){return i8},buttonNormalBackgroundHover:function(){return i6},buttonNormalBorder:function(){return i7},buttonNormalDisabledBackground:function(){return ai},buttonNormalDisabledBorder:function(){return aa},buttonNormalDisabledText:function(){return ao},buttonNormalSelectedBackground:function(){return at},buttonNormalSelectedText:function(){return ae},buttonNormalShadow:function(){return i9},buttonNormalText:function(){return i5},buttonNormalTextHover:function(){return i3},buttonPrimaryBackground:function(){return iX},buttonPrimaryBackgroundHover:function(){return iQ},buttonPrimaryBorder:function(){return iJ},buttonPrimaryDisabledBackground:function(){return i2},buttonPrimaryDisabledBorder:function(){return i4},buttonPrimaryDisabledText:function(){return i1},buttonPrimaryShadow:function(){return i0},buttonPrimaryText:function(){return iY},buttonPrimaryTextHover:function(){return iG},calendarBackground:function(){return al},calendarItemBackground:function(){return ac},calendarItemText:function(){return au},calendarSelectedBackground:function(){return ad},calendarText:function(){return as},cardBackground:function(){return oL},cardBorder:function(){return oB},cardShadow:function(){return oH},checkboxBackgroundSelected:function(){return a4},checkboxBorderSelected:function(){return a5},checkboxShadowSelected:function(){return a3},checkboxText:function(){return a2},errorBackground:function(){return aP},errorBorder:function(){return az},errorText:function(){return aO},errorTextDark:function(){return aA},errorTextDarker:function(){return aR},errorTextMenu:function(){return aZ},formInputBackground:function(){return aV},formInputBackgroundSelected:function(){return aW},formInputBackgroundSelection:function(){return aU},formInputBorder:function(){return aK},formInputBorderSelected:function(){return aq},formInputShadowSelected:function(){return a0},formInputText:function(){return aY},formInputTextHighlight:function(){return a1},formInputTextPlaceholder:function(){return aX},formInputTextPlaceholderSelected:function(){return aQ},formInputTextReadOnlySelection:function(){return a$},formInputTextSelected:function(){return aG},formInputTextSelection:function(){return aJ},formLabelBackground:function(){return aF},formLabelText:function(){return aH},markdownDark:function(){return iz},markdownLight:function(){return iN},markdownNormal:function(){return iZ},menuAutoCompleteBackground:function(){return iv},menuAutoCompleteBackgroundHover:function(){return im},menuAutoCompleteText:function(){return iy},menuAutoCompleteTextHeader:function(){return iw},menuBackground:function(){return ii},menuBorder:function(){return ih},menuBorderHover:function(){return ip},menuItemBackground:function(){return ia},menuItemBackgroundHover:function(){return is},menuItemText:function(){return il},menuItemTextHeader:function(){return id},menuItemTextHover:function(){return iu},menuItemTextSelected:function(){return ic},menuKeybindingText:function(){return ig},mobileAccountShadow:function(){return iM},mobileAccountText:function(){return iD},mobileConfigServerViewTheme:function(){return iR},mobileHeaderBackground:function(){return iS},mobileHeaderText:function(){return ik},mobileHeaderTextHover:function(){return iC},mobileHeaderTextSubdued:function(){return ij},mobileModalBackground:function(){return iP},mobileModalText:function(){return iO},mobileNavBackground:function(){return iE},mobileNavItem:function(){return i_},mobileNavItemSelected:function(){return iI},mobilePageBackground:function(){return iT},mobileViewTheme:function(){return iA},modalBackground:function(){return ix},modalBorder:function(){return ib},noticeBackground:function(){return aw},noticeBackgroundDark:function(){return ab},noticeBackgroundLight:function(){return ax},noticeBorder:function(){return aT},noticeText:function(){return aS},noticeTextDark:function(){return aj},noticeTextLight:function(){return ak},noticeTextMenu:function(){return aC},pageBackground:function(){return oC},pageBackgroundBottomRight:function(){return o_},pageBackgroundLineBottom:function(){return oD},pageBackgroundLineMid:function(){return oM},pageBackgroundLineTop:function(){return oI},pageBackgroundModalActive:function(){return oT},pageBackgroundTopLeft:function(){return oE},pageText:function(){return oP},pageTextDark:function(){return oR},pageTextLight:function(){return oO},pageTextLink:function(){return oz},pageTextLinkLight:function(){return oN},pageTextPositive:function(){return oZ},pageTextSubdued:function(){return oA},pillBackground:function(){return a8},pillBackgroundLight:function(){return a6},pillBackgroundSelected:function(){return sn},pillBorder:function(){return se},pillBorderDark:function(){return st},pillBorderSelected:function(){return si},pillText:function(){return a7},pillTextHighlighted:function(){return a9},pillTextSelected:function(){return so},reportsBlue:function(){return ss},reportsLabel:function(){return sl},reportsRed:function(){return sa},sidebarBackground:function(){return o8},sidebarItemAccentSelected:function(){return ie},sidebarItemBackgroundFailed:function(){return o7},sidebarItemBackgroundHover:function(){return o9},sidebarItemBackgroundPositive:function(){return o6},sidebarItemText:function(){return it},sidebarItemTextSelected:function(){return io},tableBackground:function(){return oF},tableBorder:function(){return oQ},tableBorderHover:function(){return o0},tableBorderSelected:function(){return oJ},tableBorderSeparator:function(){return o1},tableHeaderBackground:function(){return oX},tableHeaderText:function(){return oG},tableRowBackgroundHighlight:function(){return o2},tableRowBackgroundHighlightText:function(){return o4},tableRowBackgroundHover:function(){return oV},tableRowHeaderBackground:function(){return o5},tableRowHeaderText:function(){return o3},tableText:function(){return oW},tableTextHover:function(){return oq},tableTextInactive:function(){return oY},tableTextLight:function(){return oU},tableTextSelected:function(){return o$},tableTextSubdued:function(){return oK},upcomingBackground:function(){return aN},upcomingBorder:function(){return aB},upcomingText:function(){return aL},warningBackground:function(){return aE},warningBorder:function(){return aD},warningText:function(){return a_},warningTextDark:function(){return aM},warningTextLight:function(){return aI}});var i={};n.r(i);n.d(i,{buttonBareBackground:function(){return l5},buttonBareBackgroundActive:function(){return l8},buttonBareBackgroundHover:function(){return l3},buttonBareDisabledBackground:function(){return l7},buttonBareDisabledText:function(){return l6},buttonBareText:function(){return l2},buttonBareTextHover:function(){return l4},buttonMenuBackground:function(){return lk},buttonMenuBackgroundHover:function(){return lj},buttonMenuBorder:function(){return lC},buttonMenuSelectedBackground:function(){return l_},buttonMenuSelectedBackgroundHover:function(){return lI},buttonMenuSelectedBorder:function(){return lM},buttonMenuSelectedText:function(){return lT},buttonMenuSelectedTextHover:function(){return lE},buttonMenuText:function(){return lb},buttonMenuTextHover:function(){return lS},buttonNormalBackground:function(){return lF},buttonNormalBackgroundHover:function(){return lV},buttonNormalBorder:function(){return lW},buttonNormalDisabledBackground:function(){return lY},buttonNormalDisabledBorder:function(){return lG},buttonNormalDisabledText:function(){return lq},buttonNormalSelectedBackground:function(){return l$},buttonNormalSelectedText:function(){return lK},buttonNormalShadow:function(){return lU},buttonNormalText:function(){return lB},buttonNormalTextHover:function(){return lH},buttonPrimaryBackground:function(){return lO},buttonPrimaryBackgroundHover:function(){return lA},buttonPrimaryBorder:function(){return lR},buttonPrimaryDisabledBackground:function(){return lN},buttonPrimaryDisabledBorder:function(){return lL},buttonPrimaryDisabledText:function(){return lz},buttonPrimaryShadow:function(){return lZ},buttonPrimaryText:function(){return lD},buttonPrimaryTextHover:function(){return lP},calendarBackground:function(){return lQ},calendarItemBackground:function(){return l0},calendarItemText:function(){return lJ},calendarSelectedBackground:function(){return l1},calendarText:function(){return lX},cardBackground:function(){return sk},cardBorder:function(){return sj},cardShadow:function(){return sC},checkboxBackgroundSelected:function(){return uN},checkboxBorderSelected:function(){return uL},checkboxShadowSelected:function(){return uB},checkboxText:function(){return uz},errorBackground:function(){return uh},errorBorder:function(){return uy},errorText:function(){return up},errorTextDark:function(){return ug},errorTextDarker:function(){return uv},errorTextMenu:function(){return um},formInputBackground:function(){return uj},formInputBackgroundSelected:function(){return uC},formInputBackgroundSelection:function(){return uT},formInputBorder:function(){return uE},formInputBorderSelected:function(){return uI},formInputShadowSelected:function(){return uR},formInputText:function(){return uM},formInputTextHighlight:function(){return uZ},formInputTextPlaceholder:function(){return uP},formInputTextPlaceholderSelected:function(){return uO},formInputTextReadOnlySelection:function(){return u_},formInputTextSelected:function(){return uD},formInputTextSelection:function(){return uA},formLabelBackground:function(){return uk},formLabelText:function(){return uS},markdownDark:function(){return lw},markdownLight:function(){return lx},markdownNormal:function(){return ly},menuAutoCompleteBackground:function(){return s6},menuAutoCompleteBackgroundHover:function(){return s7},menuAutoCompleteText:function(){return s9},menuAutoCompleteTextHeader:function(){return le},menuBackground:function(){return sX},menuBorder:function(){return s5},menuBorderHover:function(){return s3},menuItemBackground:function(){return sQ},menuItemBackgroundHover:function(){return sJ},menuItemText:function(){return s0},menuItemTextHeader:function(){return s4},menuItemTextHover:function(){return s1},menuItemTextSelected:function(){return s2},menuKeybindingText:function(){return s8},mobileAccountShadow:function(){return lf},mobileAccountText:function(){return lh},mobileConfigServerViewTheme:function(){return lm},mobileHeaderBackground:function(){return lo},mobileHeaderText:function(){return li},mobileHeaderTextHover:function(){return ls},mobileHeaderTextSubdued:function(){return la},mobileModalBackground:function(){return lp},mobileModalText:function(){return lg},mobileNavBackground:function(){return lu},mobileNavItem:function(){return lc},mobileNavItemSelected:function(){return ld},mobilePageBackground:function(){return ll},mobileViewTheme:function(){return lv},modalBackground:function(){return lt},modalBorder:function(){return ln},noticeBackground:function(){return l9},noticeBackgroundDark:function(){return ut},noticeBackgroundLight:function(){return ue},noticeBorder:function(){return us},noticeText:function(){return un},noticeTextDark:function(){return ui},noticeTextLight:function(){return uo},noticeTextMenu:function(){return ua},pageBackground:function(){return su},pageBackgroundBottomRight:function(){return sf},pageBackgroundLineBottom:function(){return sg},pageBackgroundLineMid:function(){return sp},pageBackgroundLineTop:function(){return sh},pageBackgroundModalActive:function(){return sc},pageBackgroundTopLeft:function(){return sd},pageText:function(){return sv},pageTextDark:function(){return sw},pageTextLight:function(){return sm},pageTextLink:function(){return sb},pageTextLinkLight:function(){return sS},pageTextPositive:function(){return sx},pageTextSubdued:function(){return sy},pillBackground:function(){return uH},pillBackgroundLight:function(){return uF},pillBackgroundSelected:function(){return u$},pillBorder:function(){return uU},pillBorderDark:function(){return uK},pillBorderSelected:function(){return uY},pillText:function(){return uV},pillTextHighlighted:function(){return uW},pillTextSelected:function(){return uq},reportsBlue:function(){return uX},reportsLabel:function(){return uQ},reportsRed:function(){return uG},sidebarBackground:function(){return sW},sidebarItemAccentSelected:function(){return sq},sidebarItemBackgroundFailed:function(){return sK},sidebarItemBackgroundHover:function(){return s$},sidebarItemBackgroundPositive:function(){return sU},sidebarItemText:function(){return sY},sidebarItemTextSelected:function(){return sG},tableBackground:function(){return sT},tableBorder:function(){return sZ},tableBorderHover:function(){return sN},tableBorderSelected:function(){return sz},tableBorderSeparator:function(){return sL},tableHeaderBackground:function(){return sR},tableHeaderText:function(){return sA},tableRowBackgroundHighlight:function(){return sB},tableRowBackgroundHighlightText:function(){return sH},tableRowBackgroundHover:function(){return sE},tableRowHeaderBackground:function(){return sF},tableRowHeaderText:function(){return sV},tableText:function(){return s_},tableTextHover:function(){return sP},tableTextInactive:function(){return sO},tableTextLight:function(){return sI},tableTextSelected:function(){return sD},tableTextSubdued:function(){return sM},upcomingBackground:function(){return uw},upcomingBorder:function(){return ub},upcomingText:function(){return ux},warningBackground:function(){return ul},warningBorder:function(){return uf},warningText:function(){return uu},warningTextDark:function(){return ud},warningTextLight:function(){return uc}});var a=n(99818);var s=n(67238);var l=n(90122);var u=n(43188);var c=n(37496);var f=n(50102);const h="#733309";const p="#87540d";const g="#B88115";const v="#D4A31C";const m="#E6BB20";const y="#F2D047";const w="#F5E35D";const x="#FCF088";const b="#FFF7C4";const S="#FFFBEA";const k="#FFFEFA";const j="#610316";const C="#8A041A";const T="#AB091E";const E="#CF1124";const _="#E12D39";const I="#EF4E4E";const M="#F86A6A";const D="#FF9B9B";const P="#FFBDBD";const O="#FFE3E3";const A="#FFF1F1";const R="#034388";const Z="#0B5FA3";const z="#1271BF";const N="#1980D4";const L="#2B8FED";const B="#40A5F7";const H="#66B5FA";const F="#8BCAFD";const V="#B3D9FF";const W="#E3F0FF";const U="#F5FCFF";const K="#102A43";const $="#243B53";const q="#334E68";const Y="#486581";const G="#627D98";const X="#829AB1";const Q="#9FB3C8";const J="#BCCCDC";const ee="#D9E2EC";const et="#E8ECF0";const en="#F7FAFC";const er="#014D40";const eo="#0C6B58";const ei="#147D64";const ea="#199473";const es="#27AB83";const el="#3EBD93";const eu="#65D6AD";const ec="#8EEDC7";const ed="#C6F7E2";const ef="#EFFCF6";const eh="#FAFFFD";const ep="#44056E";const eg="#580A94";const ev="#690CB0";const em="#7A0ECC";const ey="#8719E0";const ew="#9446ED";const ex="#A368FC";const eb="#B990FF";const eS="#DAC4FF";const ek="#F2EBFE";const ej="#F9F6FE";const eC=null&&et;const eT="#fafafa";const eE=null&&V;const e_="#f6f8fa";const eI="#e8ecf0";const eM="#d4dae0";const eD="#bdc5cf";const eP="#98a1ae";const eO="#747c8b";const eA="#4d5768";const eR="#373b4a";const eZ="#242733";const ez="#141520";const eN="#080811";const eL=en;const eB=et;const eH=ee;const eF=J;const eV=Q;const eW=X;const eU=G;const eK=Y;const e$=q;const eq=$;const eY=K;const eG=U;const eX=W;const eQ=V;const eJ=F;const e0=H;const e1=B;const e2=L;const e4=N;const e5=z;const e3=Z;const e8=R;const e6=eh;const e7=ef;const e9=ed;const te=ec;const tt=eu;const tn=el;const tr=es;const to=ea;const ti=ei;const ta=eo;const ts=er;const tl=k;const tu=S;const tc=b;const td=x;const tf=w;const th=y;const tp=m;const tg=v;const tv=g;const tm=p;const ty=h;const tw=A;const tx=O;const tb=P;const tS=D;const tk=M;const tj=I;const tC=_;const tT=E;const tE=T;const t_=C;const tI=j;const tM=ej;const tD=ek;const tP=eS;const tO=eb;const tA=ex;const tR=ew;const tZ=ey;const tz=em;const tN=ev;const tL=eg;const tB=ep;const tH="#ffffff";const tF="#000000";const tV=eT;const tW=eN;const tU=ez;const tK=eq;const t$=eZ;const tq=tR;const tY=eY;const tG=eH;const tX=eH;const tQ=eV;const tJ=eU;const t0=eB;const t1=tO;const t2=tR;const t4=tO;const t5=ez;const t3=tR;const t8=e$;const t6=eq;const t7=e$;const t9=eH;const ne=t9;const nt=eH;const nn=eH;const no=eW;const ni=eU;const na=eV;const ns=e$;const nl=eK;const nu=tR;const nc=tA;const nd=eW;const nf=tL;const nh=eH;const np=e$;const ng=eH;const nv=eY;const nm=tr;const ny=tk;const nw=tO;const nx=e$;const nb=eH;const nS=tO;const nk=eK;const nj=eK;const nC=eU;const nT=eB;const nE=eL;const n_=tR;const nI=tZ;const nM=eq;const nD=tR;const nP=eU;const nO=eW;const nA=eV;const nR=eY;const nZ=nI;const nz=ez;const nN=eK;const nL=tL;const nB=eH;const nH=eD;const nF="rgba(200, 200, 200, .15)";const nV=e$;const nW=eq;const nU=eH;const nK=tR;const n$=t8;const nq=e3;const nY=eY;const nG=tH;const nX=nL;const nQ=tZ;const nJ=tN;const n0=tZ;const n1=tL;const n2=eY;const n4=n2;const n5="transparent";const n3="rgba(200, 200, 200, .25)";const n8=eU;const n6=ta;const n7=tm;const n9=td;const re=tf;const rt=n9;const rn=tH;const ro=rn;const ri=tR;const ra=ri;const rs=ri;const rl="rgba(0, 0, 0, 0.6)";const ru=e$;const rc=eW;const rd=rc;const rf=eH;const rh=eH;const rp=eq;const rg=eK;const rv=eV;const rm="rgba(0, 0, 0, 0.4)";const ry=tH;const rw=tz;const rx=eU;const rb=eq;const rS=eU;const rk=eL;const rj=eY;const rC=eH;const rT=eq;const rE=rw;const r_=rf;const rI=rf;const rM="transparent";const rD="rgba(200, 200, 200, .3)";const rP="rgba(200, 200, 200, .5)";const rO=rx;const rA=rM;const rR=ta;const rZ=ts;const rz=tr;const rN=tt;const rL=tr;const rB=e9;const rH=ta;const rF=ta;const rV=tm;const rW=tf;const rU=tp;const rK=tu;const r$=tp;const rq=t_;const rY=tk;const rG=tb;const rX=rG;const rQ=tC;const rJ=tC;const r0=tN;const r1=tD;const r2=nl;const r4=tP;const r5=e8;const r3=eq;const r8=e$;const r6=tR;const r7=eK;const r9=eq;const oe=tR;const ot=eH;const on=tF;const oo=eH;const oi=eB;const oa=eq;const os=tO;const ol=tR;const ou=t9;const oc=tA;const od=tA;const of=tZ;const oh=eq;const op=eK;const og=eF;const ov=tA;const om=e$;const oy=om;const ow=tz;const ox=eH;const ob=tR;const oS=tk;const ok=e1;const oj=tX;const oC=eB;const oT=eF;const oE=eB;const o_=eQ;const oI=tH;const oM=eB;const oD=eQ;const oP="#272630";const oO=eU;const oA=eV;const oR=eq;const oZ=tz;const oz=e4;const oN=e0;const oL=tH;const oB=tN;const oH=e$;const oF=tH;const oV=eL;const oW=oP;const oU=eW;const oK=eB;const o$=e$;const oq=eY;const oY=eU;const oG=eK;const oX=tH;const oQ=eB;const oJ=tZ;const o0=tR;const o1=eW;const o2=eQ;const o4=e$;const o5=eL;const o3=eq;const o8=eY;const o6=tr;const o7=tk;const o9=eq;const ie=tO;const it=eH;const io=tO;const ii=tH;const ia=eL;const is=eB;const il=eY;const iu=il;const ic=tA;const id=eW;const ih=eB;const ip=tD;const ig=eW;const iv=eY;const im=eK;const iy=tH;const iw=tc;const ix=tH;const ib=tH;const iS=tR;const ik=eL;const ij=eD;const iC="rgba(200, 200, 200, .15)";const iT=eL;const iE=tH;const i_=eP;const iI=tZ;const iM=eV;const iD=e3;const iP=eY;const iO=tH;const iA=iS;const iR=tZ;const iZ=tP;const iz=tR;const iN=tD;const iL=eB;const iB=eL;const iH="transparent";const iF="rgba(200, 200, 200, .25)";const iV=eU;const iW=ta;const iU=tm;const iK=td;const i$=tf;const iq=iK;const iY=tH;const iG=iY;const iX=tZ;const iQ=iX;const iJ=iX;const i0="rgba(0, 0, 0, 0.3)";const i1=tH;const i2=eV;const i4=i2;const i5=eY;const i3=i5;const i8=tH;const i6=i8;const i7=eH;const i9="rgba(0, 0, 0, 0.2)";const ae=tH;const at=e4;const ao=eV;const ai=i8;const aa=i7;const as=eL;const al=eY;const au=eH;const ac=eq;const ad=eU;const af=i5;const ah=i5;const ap="transparent";const ag="rgba(100, 100, 100, .15)";const av="rgba(100, 100, 100, .25)";const am=ao;const ay=ap;const aw=e9;const ax=e7;const ab=tr;const aS=ti;const ak=tr;const aj=ts;const aC=te;const aT=tr;const aE=td;const a_=tv;const aI=tp;const aM=ty;const aD=tp;const aP=tx;const aO=tC;const aA=tE;const aR=tI;const aZ=tS;const az=tC;const aN=tD;const aL=tN;const aB=tZ;const aH=e4;const aF=eJ;const aV=eL;const aW=tH;const aU=tZ;const aK=eH;const a$=eL;const aq=tZ;const aY=eY;const aG=eL;const aX=eV;const aQ=eF;const aJ=eB;const a0=tA;const a1=tO;const a2=oF;const a4=e2;const a5=e2;const a3=e0;const a8=eH;const a6=a8;const a7=eq;const a9=tz;const se=eH;const st=eV;const sn=eQ;const so=e8;const si=tZ;const sa=tk;const ss=e1;const sl=eY;const su=eB;const sc=eF;const sd=eB;const sf=eQ;const sh=tH;const sp=eB;const sg=eQ;const sv="#272630";const sm=eU;const sy=eV;const sw=eq;const sx=tz;const sb=e4;const sS=e0;const sk=tH;const sj=tN;const sC=e$;const sT=tH;const sE=eL;const s_=sv;const sI=eW;const sM=eB;const sD=e$;const sP=eY;const sO=eU;const sA=eK;const sR=tH;const sZ=eB;const sz=tZ;const sN=tR;const sL=eW;const sB=eQ;const sH=e$;const sF=eL;const sV=eq;const sW=eY;const sU=tr;const sK=tk;const s$=eq;const sq=tO;const sY=eH;const sG=tO;const sX=tH;const sQ=eL;const sJ=eB;const s0=eY;const s1=s0;const s2=tA;const s4=eW;const s5=eB;const s3=tD;const s8=eW;const s6=eY;const s7=eK;const s9=tH;const le=tc;const lt=tH;const ln=tH;const lo=tR;const li=eL;const la=eD;const ls="rgba(200, 200, 200, .15)";const ll=eL;const lu=tH;const lc=eP;const ld=tZ;const lf=eV;const lh=e3;const lp=eY;const lg=tH;const lv=lo;const lm=tZ;const ly=tP;const lw=tR;const lx=tD;const lb=eB;const lS=eL;const lk="transparent";const lj="rgba(200, 200, 200, .25)";const lC=eU;const lT=ta;const lE=tm;const l_=td;const lI=tf;const lM=l_;const lD=tH;const lP=lD;const lO=tZ;const lA=lO;const lR=lO;const lZ="rgba(0, 0, 0, 0.3)";const lz=tH;const lN=eV;const lL=lN;const lB=eY;const lH=lB;const lF=tH;const lV=lF;const lW=eH;const lU="rgba(0, 0, 0, 0.2)";const lK=tH;const l$=e4;const lq=eV;const lY=lF;const lG=lW;const lX=eL;const lQ=eY;const lJ=eH;const l0=eq;const l1=eU;const l2=lB;const l4=lB;const l5="transparent";const l3="rgba(100, 100, 100, .15)";const l8="rgba(100, 100, 100, .25)";const l6=lq;const l7=l5;const l9=e9;const ue=e7;const ut=tr;const un=ti;const uo=tr;const ui=ts;const ua=te;const us=tr;const ul=td;const uu=tv;const uc=tp;const ud=ty;const uf=tp;const uh=tx;const up=tC;const ug=tE;const uv=tI;const um=tS;const uy=tC;const uw=tD;const ux=tN;const ub=tZ;const uS=e4;const uk=eJ;const uj=eL;const uC=tH;const uT=tZ;const uE=eH;const u_=eL;const uI=tZ;const uM=eY;const uD=eL;const uP=eV;const uO=eF;const uA=eB;const uR=tA;const uZ=tO;const uz=sT;const uN=e2;const uL=e2;const uB=e0;const uH=eH;const uF=eB;const uV=eq;const uW=tz;const uU=eH;const uK=eV;const u$=eQ;const uq=e8;const uY=tZ;const uG=tk;const uX=e1;const uQ=eY;const uJ={light:{name:"Light",colors:i},dark:{name:"Dark",colors:r},...(0,f.Ry)()&&{development:{name:"Development",colors:o}}};const u0=Object.entries(uJ).map(([e,{name:t}])=>[e,t]);function u1(){return(0,c.v9)(e=>e.prefs.global?.theme)||"light"}function u2(){const e=u1();const t=uJ[e].colors;const n=Object.keys(t).map(e=>` --color-${e}: ${t[e]};`).join("\n");return(0,u.jsx)("style",{children:`:root {
187
- ${n}}`})}const u4=Object.fromEntries(Object.keys(i).map(e=>[e,`var(--color-${e})`]));const u5={incomeHeaderHeight:70,cardShadow:"0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24)",monthRightPadding:5,menuBorderRadius:4,mobileEditingPadding:12,altMenuMaxHeight:250,altMenuText:{fontSize:13},altMenuHeaderText:{fontSize:13,fontWeight:700},veryLargeText:{fontSize:30,fontWeight:600},largeText:{fontSize:20,fontWeight:700,letterSpacing:.5},mediumText:{fontSize:15,fontWeight:500},smallText:{fontSize:13},verySmallText:{fontSize:13},page:{flex:1,"@media (max-height: 550px)":{minHeight:700},paddingTop:8,[`@media (min-width: ${l.Z.breakpoint_small})`]:{paddingTop:36}},pageContent:{paddingLeft:2,paddingRight:2,[`@media (min-width: ${l.Z.breakpoint_small})`]:{paddingLeft:20,paddingRight:20}},settingsPageContent:{padding:20,[`@media (min-width: ${l.Z.breakpoint_small})`]:{padding:"inherit"}},staticText:{cursor:"default",userSelect:"none"},shadow:{boxShadow:"0 2px 4px 0 rgba(0,0,0,0.1)"},shadowLarge:{boxShadow:"0 15px 30px 0 rgba(0,0,0,0.11), 0 5px 15px 0 rgba(0,0,0,0.08)"},tnum:{fontFeatureSettings:'"tnum"'},notFixed:{fontFeatureSettings:""},text:{fontSize:16},delayedFadeIn:{animationName:(0,a.F4)({"0%":{opacity:0},"100%":{opacity:1}}),animationDuration:"1s",animationFillMode:"both",animationDelay:"0.5s"},underlinedText:{textDecoration:"underline",textDecorationThickness:2,textDecorationColor:u4.pillBorder},noTapHighlight:{WebkitTapHighlightColor:"transparent",":focus":{outline:"none"}},lineClamp:e=>{return{display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:"break-word"}},lightScrollbar:null,darkScrollbar:null,scrollbarWidth:null};let u3=false;function u8(){u5.lightScrollbar=!u3&&{"& ::-webkit-scrollbar":{width:11,backgroundColor:"rgba(200, 200, 200, .2)"},"& ::-webkit-scrollbar-thumb":{width:7,borderRadius:30,backgroundClip:"padding-box",border:"2px solid rgba(0, 0, 0, 0)"},"& ::-webkit-scrollbar-thumb:vertical":{backgroundColor:"#d0d0d0"}};u5.darkScrollbar=!u3&&{"& ::-webkit-scrollbar":{width:7,backgroundColor:"rgba(0, 0, 0, 0)"},"& ::-webkit-scrollbar-thumb:vertical":{backgroundColor:"rgba(200, 200, 200, .5)"}};u5.scrollbarWidth=u3?0:13}if(s.OB==="web"){function u6(){const e=document.createElement("div");e.innerHTML='<div style="width:100px;height:100px;overflow:scroll;position:absolute;top:-9999px;"/>';document.body.appendChild(e);const t=e.childNodes[0];if(t.offsetWidth===t.clientWidth){return true}return false}u3=u6();u8();window.addEventListener("focus",()=>{u3=u6();u8()})}const u7=()=>u3;},90122:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r;(function(e){e["small"]="small";e["medium"]="medium";e["wide"]="wide"})(r||(r={}));const o={small:512,medium:730,wide:1100};const i=Object.entries(o).reduce((e,[t,n])=>{e[`breakpoint_${t}`]=`${n}px`;return e},{});t.Z=i},55833:function(e,t,n){"use strict";n.d(t,{M:function(){return l},Y:function(){return c}});var r=n(66204);var o=n(42696);var i=n.n(o);var a=n(84094);const s=(0,r.createContext)(undefined);function l(){return(0,r.useContext)(s)}function u(){const e={};const t=new(i())({max:1200});const n={};let r=false;class o{observeCell(t,r){if(!e[t]){e[t]=[]}e[t].push(r);return()=>{e[t]=e[t].filter(e=>e!==r);if(e[t].length===0){n[t]=null}}}disableObservers(){r=true}enableObservers(){r=false}prewarmCache(e,n){t.set(e,n)}listen(){return(0,a.oL)("cells-changed",function(o){if(!r){o.forEach(r=>{const o=e[r.name];if(o){o.forEach(e=>e(r));n[r.name]=Promise.resolve(r);t.set(r.name,r)}})}})}bind(e="__global",r,o,i){r=typeof r==="string"?{name:r,value:null}:r;const a=`${e}!${r.name}`;const s=this.observeCell(a,i);if(t.has(a)){i(t.get(a))}if(n[a]!=null){n[a].then(i)}else{const o=this.get(e,r.name);n[a]=o;o.then(e=>{if(n[a]===o){t.set(a,e);i(e)}})}return s}get(e,t){return(0,a.lW)("getCell",{sheetName:e,name:t})}getCellNames(e){return(0,a.lW)("getCellNamesInSheet",{sheetName:e})}createQuery(e,t,n){return(0,a.lW)("create-query",{sheetName:e,name:t,query:n.serialize()})}}return new o}function c({children:e}){const t=(0,r.useMemo)(()=>u(),[]);(0,r.useEffect)(()=>{return t.listen()},[t]);return r.createElement(s.Provider,{value:t},e)}},13265:function(e,t,n){"use strict";n.d(t,{GL:function(){return a},KT:function(){return s},Np:function(){return i},cT:function(){return u},ht:function(){return l},si:function(){return c}});var r=n(84094);var o=n(62601);function i(e){return{type:o.wH,state:e}}function a(e){return()=>{(0,r.S1)(e)}}function s(){return async e=>{n.g.Actual.applyAppUpdate();e(i({updateInfo:null}))}}function l(e){return{type:o.HT,undoState:e}}function u(e,t){return()=>{return(0,r.lW)("upload-file-web",{filename:e,contents:t})}}function c(){return()=>{return(0,r.lW)("app-focused")}}},99103:function(e,t,n){"use strict";n.d(t,{$u:function(){return c},NK:function(){return h},S2:function(){return x},VM:function(){return g},aK:function(){return u},ef:function(){return y},ej:function(){return p},g4:function(){return b},il:function(){return w},nu:function(){return f},sX:function(){return v},xp:function(){return m}});var r=n(84094);var o=n(40400);var i=n(62601);var a=n(13265);var s=n(24418);var l=n(50389);function u(){return async e=>{const t=await (0,r.lW)("get-budgets");e({type:i.Ud,budgets:t})}}function c(){return async e=>{const t=await (0,r.lW)("get-remote-files");e({type:i.Oi,files:t})}}function f(){return async(e,t)=>{const n=await (0,r.lW)("get-budgets");const o=await (0,r.lW)("get-remote-files");e({type:i.GY,budgets:n,remoteFiles:o});return t().budgets.allFiles}}function h(e,t="",n={}){return async i=>{i((0,a.Np)({loadingText:t}));const{error:u}=await (0,r.lW)("load-budget",{id:e,...n});if(u){const t=(0,o.FL)(u,e);if(u==="out-of-sync-migrations"||u==="out-of-sync-data"){if(typeof window.confirm!=="undefined"){const n=window.confirm(t+" Make sure the app is up-to-date. Do you want to load a backup?");if(n){i((0,s.Ll)("load-backup",{budgetId:e}))}}else{alert(t+" Make sure the app is up-to-date.")}}else{alert(t)}i((0,a.Np)({loadingText:null}));return}i((0,s.Mr)());await i((0,l.D0)());i((0,a.Np)({loadingText:null}))}}function p(){return async(e,t)=>{const n=t().prefs.local;if(n&&n.id){e({type:i.DC});e((0,a.Np)({loadingText:"Closing..."}));await (0,r.lW)("close-budget");e((0,a.Np)({loadingText:null}));if(localStorage.getItem("SharedArrayBufferOverride")){window.location.reload()}}}}function g(){return async(e,t)=>{const n=t().prefs.local;if(n&&n.id){e({type:i.DC})}}}function v(e,t){return async n=>{await (0,r.lW)("delete-budget",{id:e,cloudFileId:t});await n(f())}}function m({testMode:e=false,demoMode:t=false}={}){return async n=>{n((0,a.Np)({loadingText:e||t?"Making demo...":""}));if(t){await (0,r.lW)("create-demo-budget")}else{await (0,r.lW)("create-budget",{testMode:e})}n((0,s.Mr)());await n(f());await n((0,l.D0)());n((0,a.Np)({loadingText:null}))}}function y(e,t){return async n=>{const{error:o}=await (0,r.lW)("import-budget",{filepath:e,type:t});if(o){throw new Error(o)}n((0,s.Mr)());await n((0,l.D0)());window.__navigate("/budget")}}function w(e){return async t=>{const{error:n}=await (0,r.lW)("upload-budget",{id:e});if(n){return{error:n}}await t(f());return{}}}function x(e){return async t=>{t((0,a.Np)({loadingText:"Downloading..."}));await t(p());t(b(e,{replace:true}))}}function b(e,{replace:t=false}={}){return async n=>{n((0,a.Np)({loadingText:"Downloading..."}));const{id:i,error:u}=await (0,r.lW)("download-budget",{fileId:e,replace:t});if(u){if(u.reason==="decrypt-failure"){const r={hasExistingKey:u.meta&&u.meta.isMissingKey,cloudFileId:e,onSuccess:()=>{n(b(e,{replace:t}))}};n((0,s.Ll)("fix-encryption-key",r));n((0,a.Np)({loadingText:null}))}else if(u.reason==="file-exists"){alert(`A file with id “${u.meta.id}” already exists with the name “${u.meta.name}.” `+"This file will be replaced. This probably happened because files were manually "+"moved around outside of Actual.");return n(b(e,{replace:true}))}else{n((0,a.Np)({loadingText:null}));alert((0,o.Ip)(u))}return null}else{await Promise.all([n((0,l.Pt)()),n(f()),n(h(i))]);n((0,a.Np)({loadingText:null}))}return i}}},43044:function(e,t,n){"use strict";n.r(t);n.d(t,{addGenericErrorNotification:function(){return a.R},addNotification:function(){return a.wN},applyBudgetAction:function(){return r.qu},closeAccount:function(){return r.Rc},closeAndDownloadBudget:function(){return j.S2},closeBudget:function(){return j.ej},closeBudgetUI:function(){return j.VM},closeModal:function(){return S.Mr},connectAccounts:function(){return p},connectGoCardlessAccounts:function(){return g},createAccount:function(){return r.o1},createBudget:function(){return j.xp},createCategory:function(){return r.k4},createGroup:function(){return r.sS},createPayee:function(){return r.fz},deleteBudget:function(){return j.sX},deleteCategory:function(){return r.uu},deleteGroup:function(){return r.iE},downloadBudget:function(){return j.g4},focused:function(){return C.si},forceCloseAccount:function(){return r.X_},getAccounts:function(){return r.T8},getCategories:function(){return r.CP},getPayees:function(){return r.WJ},getUserData:function(){return P.is},importBudget:function(){return j.ef},importTransactions:function(){return w},initiallyLoadPayees:function(){return r.Rr},linkAccount:function(){return h},loadAllFiles:function(){return j.nu},loadBackup:function(){return T},loadBudget:function(){return j.NK},loadBudgets:function(){return j.aK},loadGlobalPrefs:function(){return k.Pt},loadPrefs:function(){return k.D0},loadRemoteFiles:function(){return j.$u},loggedIn:function(){return P.Pl},makeBackup:function(){return E},markAccountFailed:function(){return l},markAccountRead:function(){return b},markAccountSuccess:function(){return u},moveCategory:function(){return r.Wr},moveCategoryGroup:function(){return r.eq},openAccountCloseModal:function(){return r.bJ},parseTransactions:function(){return y},popModal:function(){return S.GZ},pushModal:function(){return S.Ll},reconnect:function(){return C.GL},redo:function(){return r.KX},removeNotification:function(){return a.FV},reopenAccount:function(){return r.ly},replaceModal:function(){return S.OB},resetSync:function(){return I},saveGlobalPrefs:function(){return k.EY},savePrefs:function(){return k.p},setAccountsSyncing:function(){return s},setAppState:function(){return C.Np},setFailedAccounts:function(){return c},setLastTransaction:function(){return m},setLastUndoState:function(){return C.ht},setUndoEnabled:function(){return r.Ew},signOut:function(){return P.w7},sync:function(){return M},syncAccounts:function(){return v},syncAndDownload:function(){return D},undo:function(){return r.Yw},unlinkAccount:function(){return f},updateAccount:function(){return r.sG},updateApp:function(){return C.KT},updateCategory:function(){return r.yr},updateGroup:function(){return r.mD},updateNewTransactions:function(){return x},uploadBudget:function(){return j.il},uploadFile:function(){return C.cT}});var r=n(13910);var o=n(84094);var i=n(62601);var a=n(50898);function s(e){return{type:i._V,name:e}}function l(e,t,n){return{type:"ACCOUNT_SYNC_STATUS",id:e,failed:true,errorType:t,errorCode:n}}function u(e){return{type:"ACCOUNT_SYNC_STATUS",id:e,failed:false}}function c(e){return{type:i.Co,syncErrors:e}}function f(e){return async t=>{await (0,o.lW)("account-unlink",{id:e});t(u(e));t((0,r.T8)())}}function h(e,t,n){return async i=>{await (0,o.lW)("gocardless-accounts-link",{requisitionId:e,account:t,upgradingId:n});await i((0,r.WJ)());await i((0,r.T8)())}}function p(e,t,n,i){return async a=>{const s=await (0,o.lW)("accounts-connect",{institution:e,publicToken:t,accountIds:n,offbudgetIds:i});await a((0,r.WJ)());await a((0,r.T8)());return s}}function g(e,t,n,i){return async a=>{const s=await (0,o.lW)("gocardless-accounts-connect",{institution:e,publicToken:t,accountIds:n,offbudgetIds:i});await a((0,r.WJ)());await a((0,r.T8)());return s}}function v(e){return async(t,n)=>{if(n().account.accountsSyncing){return false}if(e){const r=n().queries.accounts.find(t=>t.id===e);t(s(r.name))}else{t(s("__all"))}const{errors:r,newTransactions:f,matchedTransactions:h,updatedAccounts:p}=await (0,o.lW)("gocardless-accounts-sync",{id:e});t(s(null));if(e){const n=r.find(t=>t.accountId===e);if(n){if(n.type==="SyncError"){t(l(e,n.category,n.code))}}else{t(u(e))}}else{t(c(r.filter(e=>e.type==="SyncError").map(e=>({id:e.accountId,type:e.category,code:e.code}))))}r.forEach(e=>{if(e.type==="SyncError"){t((0,a.wN)({type:"error",message:e.message}))}else{t((0,a.wN)({type:"error",message:e.message,internal:e.internal}))}});t({type:i.GZ,newTransactions:f,matchedTransactions:h,updatedAccounts:p});return f.length>0||h.length>0}}function m(e){return{type:i.Vi,transaction:e}}function y(e,t){return async n=>{return await (0,o.lW)("transactions-parse-file",{filepath:e,options:t})}}function w(e,t){return async n=>{const{errors:r=[],added:s,updated:l}=await (0,o.lW)("transactions-import",{accountId:e,transactions:t});r.forEach(e=>{n((0,a.wN)({type:"error",message:e.message}))});n({type:i.GZ,newTransactions:s,matchedTransactions:l,updatedAccounts:s.length>0?[e]:[]});return s.length>0||l.length>0}}function x(e){return{type:i.kY,changedId:e}}function b(e){return{type:i.ER,accountId:e}}var S=n(24418);var k=n(50389);var j=n(99103);var C=n(13265);function T(e,t){return async(n,r)=>{const i=r().prefs.local;if(i&&i.id){await n((0,j.ej)())}await (0,o.lW)("backup-load",{id:e,backupId:t});n((0,j.NK)(e))}}function E(){return async(e,t)=>{const n=t().prefs.local;if(n&&n.id){await (0,o.lW)("backup-make",{id:n.id})}}}var _=n(40400);function I(){return async e=>{const{error:t}=await (0,o.lW)("sync-reset");if(t){alert((0,_.wg)(t));if(t.reason==="encrypt-failure"&&t.meta.isMissingKey||t.reason==="file-has-new-key"){e((0,S.Ll)("fix-encryption-key",{onSuccess:()=>{e(I())}}))}else if(t.reason==="encrypt-failure"){e((0,S.Ll)("create-encryption-key",{recreate:true}))}}else{await e(M());await e((0,k.D0)())}}}function M(){return async(e,t)=>{const n=t().prefs.local;if(n&&n.id){const e=await (0,o.lW)("sync");if("error"in e){return{error:e.error}}return{}}}}function D(e){return async t=>{const n=await t(M());if(n.error){return{error:n.error}}const r=await t(v(e));if(r){const e=await t(M());if(e.error){return{error:e.error}}return true}return{hasUpdated:r}}}var P=n(92178);},24418:function(e,t,n){"use strict";n.d(t,{GZ:function(){return a},Ll:function(){return o},Mr:function(){return s},OB:function(){return i}});var r=n(62601);function o(e,t){const n={name:e,options:t};return{type:r.jw,modal:n}}function i(e,t){const n={name:e,options:t};return{type:r.JA,modal:n}}function a(){return{type:r.TZ}}function s(){return{type:r.et}}},50898:function(e,t,n){"use strict";n.d(t,{FV:function(){return s},R:function(){return a},wN:function(){return i}});var r=n(26505);var o=n(62601);function i(e){return{type:o.Dv,notification:{...e,id:e.id||(0,r.Z)()}}}function a(){return i({type:"error",message:"Something internally went wrong. You may want to restart the app if anything looks wrong. "+"Please report this as a new issue on Github."})}function s(e){return{type:o.Kf,id:e}}},50389:function(e,t,n){"use strict";n.d(t,{D0:function(){return a},EY:function(){return u},Pt:function(){return l},p:function(){return s}});var r=n(84094);var o=n(62601);var i=n(24418);function a(){return async(e,t)=>{const n=await (0,r.lW)("load-prefs");const a=t().prefs.local;if(n&&n.id&&!a){e((0,i.Mr)())}e({type:o.px,prefs:n,globalPrefs:await (0,r.lW)("load-global-prefs")});return n}}function s(e){return async t=>{await (0,r.lW)("save-prefs",e);t({type:o.uF,prefs:e})}}function l(){return async(e,t)=>{const n=await (0,r.lW)("load-global-prefs");e({type:o.px,prefs:t().prefs.local,globalPrefs:n});return n}}function u(e){return async t=>{await (0,r.lW)("save-global-prefs",e);t({type:o.CH,globalPrefs:e})}}},13910:function(e,t,n){"use strict";n.d(t,{CP:function(){return c},Ew:function(){return O},KX:function(){return R},Rc:function(){return E},Rr:function(){return b},T8:function(){return k},WJ:function(){return x},Wr:function(){return g},X_:function(){return I},Yw:function(){return A},bJ:function(){return T},eq:function(){return v},fz:function(){return S},iE:function(){return w},k4:function(){return f},ly:function(){return _},mD:function(){return y},o1:function(){return C},qu:function(){return u},sG:function(){return j},sS:function(){return m},uu:function(){return h},yr:function(){return p}});var r=n(49090);var o=n.n(r);var i=n(84094);var a=n(62601);var s=n(24418);var l=n(50898);function u(e,t,n){return async r=>{switch(t){case"budget-amount":await (0,i.lW)("budget/budget-amount",{month:e,category:n.category,amount:n.amount});break;case"copy-last":await (0,i.lW)("budget/copy-previous-month",{month:e});break;case"set-zero":await (0,i.lW)("budget/set-zero",{month:e});break;case"set-3-avg":await (0,i.lW)("budget/set-3month-avg",{month:e});break;case"check-templates":r((0,l.wN)(await (0,i.lW)("budget/check-templates")));break;case"apply-goal-template":await (0,i.lW)("budget/apply-goal-template",{month:e});break;case"overwrite-goal-template":await (0,i.lW)("budget/overwrite-goal-template",{month:e});break;case"cleanup-goal-template":r((0,l.wN)(await (0,i.lW)("budget/cleanup-goal-template",{month:e})));break;case"hold":await (0,i.lW)("budget/hold-for-next-month",{month:e,amount:n.amount});break;case"reset-hold":await (0,i.lW)("budget/reset-hold",{month:e});break;case"cover":await (0,i.lW)("budget/cover-overspending",{month:e,to:n.to,from:n.from});break;case"transfer-available":await (0,i.lW)("budget/transfer-available",{month:e,amount:n.amount,category:n.category});break;case"transfer-category":await (0,i.lW)("budget/transfer-category",{month:e,amount:n.amount,from:n.from,to:n.to});break;case"carryover":{await (0,i.lW)("budget/set-carryover",{startMonth:e,category:n.category,flag:n.flag});break}case"apply-single-category-template":await (0,i.lW)("budget/apply-single-template",{month:e,category:n.category});break;case"set-single-3-avg":await (0,i.lW)("budget/set-n-month-avg",{month:e,N:3,category:n.category});break;case"set-single-6-avg":await (0,i.lW)("budget/set-n-month-avg",{month:e,N:6,category:n.category});break;case"set-single-12-avg":await (0,i.lW)("budget/set-n-month-avg",{month:e,N:12,category:n.category});break;case"copy-single-last":await (0,i.lW)("budget/copy-single-month",{month:e,category:n.category});break;default:}}}function c(){return async e=>{const t=await (0,i.lW)("get-categories");e({type:a.X6,categories:t});return t}}function f(e,t,n){return async r=>{const o=await (0,i.lW)("category-create",{name:e,groupId:t,isIncome:n});r(c());return o}}function h(e,t){return async n=>{const{error:r}=await (0,i.lW)("category-delete",{id:e,transferId:t});if(r){switch(r){case"category-type":n((0,l.wN)({type:"error",message:"A category must be transferred to another of the same type (expense or income)"}));break;default:n((0,l.R)())}throw new Error(r)}else{n(c());n(x())}}}function p(e){return async t=>{await (0,i.lW)("category-update",e);t(c())}}function g(e,t,n){return async r=>{await (0,i.lW)("category-move",{id:e,groupId:t,targetId:n});await r(c())}}function v(e,t){return async n=>{await (0,i.lW)("category-group-move",{id:e,targetId:t});await n(c())}}function m(e){return async t=>{const n=await (0,i.lW)("category-group-create",{name:e});t(c());return n}}function y(e){const{categories:t,...n}=e;return async e=>{await (0,i.lW)("category-group-update",n);await e(c())}}function w(e,t){return async function(n,r){await (0,i.lW)("category-group-delete",{id:e,transferId:t});await n(c());await n(x())}}function x(){return async e=>{const t=await (0,i.lW)("payees-get");e({type:a.gp,payees:t});return t}}function b(){return async(e,t)=>{if(t().queries.payees.length===0){return e(x())}}}function S(e){return async()=>{return(0,i.lW)("payee-create",{name:e.trim()})}}function k(){return async e=>{const t=await (0,i.lW)("accounts-get");e({type:a.WF,accounts:t});return t}}function j(e){return async t=>{t({type:a.$E,account:e});await (0,i.lW)("account-update",e)}}function C(e,t,n){return async r=>{const o=await (0,i.lW)("account-create",{name:e,balance:t,offBudget:n});await r(k());await r(x());return o}}function T(e){return async(t,n)=>{const{balance:r,numTransactions:o}=await (0,i.lW)("account-properties",{id:e});const a=n().queries.accounts.find(t=>t.id===e);t((0,s.Ll)("close-account",{account:a,balance:r,canDelete:o===0}))}}function E(e,t,n,r){return async o=>{await (0,i.lW)("account-close",{id:e,transferAccountId:t,categoryId:n,forced:r});o(k())}}function _(e){return async t=>{await (0,i.lW)("account-reopen",{id:e});t(k())}}function I(e){return E(e,null,null,true)}const M=o()(()=>(0,i.lW)("undo"),100);const D=o()(()=>(0,i.lW)("redo"),100);let P=true;function O(e){P=e}function A(){return async()=>{if(P){M()}}}function R(){return async()=>{if(P){D()}}}},92178:function(e,t,n){"use strict";n.d(t,{Pl:function(){return l},is:function(){return s},w7:function(){return u}});var r=n(84094);var o=n(62601);var i=n(99103);var a=n(50389);function s(){return async e=>{const t=await (0,r.lW)("subscribe-get-user");e({type:o.q1,data:t});return t}}function l(){return async e=>{await e(s());e((0,i.nu)())}}function u(){return async e=>{await (0,r.lW)("subscribe-sign-out");e(s());e((0,a.Pt)());e((0,i.ej)());e({type:o.dp})}}},62601:function(e,t,n){"use strict";n.d(t,{$E:function(){return l},CH:function(){return p},Co:function(){return D},DC:function(){return y},Dv:function(){return j},ER:function(){return a},GY:function(){return m},GZ:function(){return r},HT:function(){return E},JA:function(){return b},Kf:function(){return C},Oi:function(){return v},TZ:function(){return k},Ud:function(){return g},VM:function(){return _},Vi:function(){return i},WF:function(){return s},X6:function(){return u},_V:function(){return I},cV:function(){return M},dp:function(){return P},et:function(){return S},gp:function(){return c},jw:function(){return x},kY:function(){return o},px:function(){return f},q1:function(){return T},uF:function(){return h},wH:function(){return w}});const r="SET_NEW_TRANSACTIONS";const o="UPDATE_NEW_TRANSACTIONS";const i="SET_LAST_TRANSACTION";const a="MARK_ACCOUNT_READ";const s="LOAD_ACCOUNTS";const l="UPDATE_ACCOUNT";const u="LOAD_CATEGORIES";const c="LOAD_PAYEES";const f="SET_PREFS";const h="MERGE_LOCAL_PREFS";const p="MERGE_GLOBAL_PREFS";const g="SET_BUDGETS";const v="SET_REMOTE_FILES";const m="SET_ALL_FILES";const y="CLOSE_BUDGET";const w="SET_APP_STATE";const x="PUSH_MODAL";const b="REPLACE_MODAL";const S="CLOSE_MODAL";const k="POP_MODAL";const j="ADD_NOTIFICATION";const C="REMOVE_NOTIFICATION";const T="GET_USER_DATA";const E="SET_LAST_UNDO_STATE";const _="SET_LAST_SPLIT_STATE";const I="SET_ACCOUNTS_SYNCING";const M="ACCOUNT_SYNC_STATUS";const D="ACCOUNT_SYNC_FAILURES";const P="SIGN_OUT"},99548:function(e,t,n){"use strict";n.d(t,{BB:function(){return u},Re:function(){return c},gM:function(){return f}});var r=n(66204);var o=n(10959);var i=n(69304);var a=n(18748);function s(){return(0,i.y)(()=>(0,o.ZP)("accounts").select("*"),[])}const l=(0,r.createContext)(null);function u({children:e}){const t=s();return r.createElement(l.Provider,{value:t,children:e})}function c({children:e,idKey:t}){const n=f({idKey:t});return e(n)}function f({idKey:e}={}){const t=(0,r.useContext)(l);return e&&t?(0,a.gI)(t):t}},17853:function(e,t,n){"use strict";n.d(t,{m:function(){return s}});var r=n(66204);var o=n(10959);var i=n(69304);function a(e){const t=e.map(e=>{return{...e.fields,id:e.id,name:e.name,tombstone:e.tombstone,conditionsOp:e.conditions_op,conditions:e.conditions}});return t}function s(){const e=a((0,i.y)(()=>(0,o.ZP)("transaction_filters").select("*"),[])||[]);function t(e){return e.sort((e,t)=>e.name.trim().localeCompare(t.name.trim(),{ignorePunctuation:true}))}return(0,r.useMemo)(()=>t(e),[e])}},68761:function(e,t,n){"use strict";n.d(t,{Zr:function(){return u},mp:function(){return c},n4:function(){return f}});var r=n(66204);var o=n(10959);var i=n(69304);var a=n(18748);function s(){return(0,i.y)(()=>(0,o.ZP)("payees").select("*"),[])}const l=(0,r.createContext)(null);function u({children:e}){const t=s();return r.createElement(l.Provider,{value:t,children:e})}function c({children:e,idKey:t}){const n=f({idKey:t});return e(n)}function f({idKey:e}={}){const t=(0,r.useContext)(l);return e&&t?(0,a.yG)(t):t}},62829:function(e,t,n){"use strict";n.d(t,{gZ:function(){return s},oF:function(){return c},up:function(){return u}});var r=n(66204);var o=n(11504);var i=n(10959);function a(e,t){return(0,i.Y1)((0,o.eJ)(e),t,{mapper:t=>{const n=new Set(t.filter(Boolean).map(e=>e.schedule));return new Map(e.map(e=>[e.id,(0,o.lR)(e.next_date,e.completed,n.has(e.id))]))}})}function s({transform:e}={}){const[t,n]=(0,r.useState)(null);(0,r.useEffect)(()=>{const t=(0,i.ZP)("schedules").select("*");let r;const o=(0,i.Y1)(e?e(t):t,async e=>{if(o){if(r){r.unsubscribe()}r=a(e,t=>n({schedules:e,statuses:t}))}});return()=>{if(o){o.unsubscribe()}if(r){r.unsubscribe()}}},[e]);return t}const l=(0,r.createContext)(null);function u({transform:e,children:t}){const n=s({transform:e});return r.createElement(l.Provider,{value:n,children:t})}function c(){return(0,r.useContext)(l)}},67238:function(e,t,n){"use strict";n.d(t,{$8:function(){return i},OB:function(){return s},OS:function(){return a},jU:function(){return l}});const r=navigator.platform&&navigator.platform.toLowerCase()==="win32";const o=navigator.platform&&navigator.platform.toUpperCase().indexOf("MAC")>=0;const i=navigator.userAgent==="playwright";const a=r?"windows":o?"mac":"linux";const s="web";const l=true},69247:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(37496);function o(){return(0,r.v9)(e=>e.prefs?.local?.isPrivacyEnabled??false)}},46055:function(e,t,n){"use strict";n.d(t,{An:function(){return g},Gm:function(){return h},PK:function(){return l},SZ:function(){return p},aK:function(){return w},cW:function(){return f},jS:function(){return c},sX:function(){return y},u8:function(){return x},yf:function(){return u}});var r=n(8780);var o=n(25432);var i=n(73416);var a=n(63654);var s=n(89362);function l(e,t="account"){if(e){if(e==="budgeted"){return{$and:[{[`${t}.offbudget`]:false},{[`${t}.closed`]:false}]}}else if(e==="offbudget"){return{$and:[{[`${t}.offbudget`]:true},{[`${t}.closed`]:false}]}}else if(e==="uncategorized"){return{[`${t}.offbudget`]:false,category:null,is_parent:false,$or:[{"payee.transfer_acct.offbudget":true,"payee.transfer_acct":null}]}}else{return{[t]:e}}}return null}function u(e){let t=(0,a.ZP)("transactions").options({splits:"grouped"});const n=l(e);if(n){t=t.filter(n)}return t}function c(e,t,n){const a=(0,s.Dz)(t);let l;if((0,i.Ze)(n).test(t)){l=(0,r.Z)(t,(0,i.D1)(n),new Date)}else if((0,i._y)(n).test(t)){l=(0,r.Z)(t,(0,i.JC)(n),new Date)}else{l=(0,r.Z)(t,n,new Date)}return e.filter({$or:{"payee.name":{$like:`%${t}%`},notes:{$like:`%${t}%`},"category.name":{$like:`%${t}%`},"account.name":{$like:`%${t}%`},$or:[(0,o.Z)(l)&&{date:(0,i.is)(l)},a!=null&&{amount:{$transform:"$abs",$eq:(0,s.l9)(a)}},a!=null&&Number.isInteger(a)&&{amount:{$transform:{$abs:{$idiv:["$",100]}},$eq:a}}].filter(Boolean)}})}function f(e){return{name:`balance-${e.id}`,query:(0,a.ZP)("transactions").filter({account:e.id}).options({splits:"none"}).calculate({$sum:"$amount"})}}function h(){return{query:(0,a.ZP)("transactions").filter({"account.closed":false}).calculate({$sum:"$amount"}),name:"accounts-balance"}}function p(){return{name:`budgeted-accounts-balance`,query:(0,a.ZP)("transactions").filter({"account.offbudget":false,"account.closed":false}).calculate({$sum:"$amount"})}}function g(){return{name:`offbudget-accounts-balance`,query:(0,a.ZP)("transactions").filter({"account.offbudget":true,"account.closed":false}).calculate({$sum:"$amount"})}}const v=(0,a.ZP)("transactions").filter({"account.offbudget":false,category:null,$or:[{"payee.transfer_acct.offbudget":true,"payee.transfer_acct":null}]});function m(){return{name:"uncategorized-balance",query:v.calculate({$sum:"$amount"})}}function y(){return{name:"uncategorized-amount",query:v.calculate({$count:"$id"})}}const w={incomeAvailable:"available-funds",lastMonthOverspent:"last-month-overspent",forNextMonth:"buffered",totalBudgeted:"total-budgeted",toBudget:"to-budget",fromLastMonth:"from-last-month",totalIncome:"total-income",totalSpent:"total-spent",totalBalance:"total-leftover",groupSumAmount:e=>`group-sum-amount-${e}`,groupIncomeReceived:"total-income",groupBudgeted:e=>`group-budget-${e}`,groupBalance:e=>`group-leftover-${e}`,catBudgeted:e=>`budget-${e}`,catSumAmount:e=>`sum-amount-${e}`,catBalance:e=>`leftover-${e}`,catCarryover:e=>`carryover-${e}`,catGoal:e=>`goal-${e}`};const x={totalBudgetedExpense:"total-budgeted",totalBudgetedIncome:"total-budget-income",totalBudgetedSaved:"total-saved",totalIncome:"total-income",totalSpent:"total-spent",totalSaved:"real-saved",totalLeftover:"total-leftover",groupSumAmount:e=>`group-sum-amount-${e}`,groupIncomeReceived:"total-income",groupBudgeted:e=>`group-budget-${e}`,groupBalance:e=>`group-leftover-${e}`,catBudgeted:e=>`budget-${e}`,catSumAmount:e=>`sum-amount-${e}`,catBalance:e=>`leftover-${e}`,catCarryover:e=>`carryover-${e}`,catGoal:e=>`goal-${e}`}},10959:function(e,t,n){"use strict";n.d(t,{Zn:function(){return f},ZP:function(){return s},Y1:function(){return u},Fr:function(){return c},Vn:function(){return l}});var r=n(84094);function o(e){const t={running:null,queue:[]};function n(){if(t.queue.length>0){const e=t.queue.shift();r(e.args,e.resolve,e.reject)}else{t.running=null}}function r(r,o,i){t.running=e(...r);t.running.then(e=>{n();o(e)},e=>{n();i(e)})}return(...e)=>{if(!t.running){return new Promise((t,n)=>{return r(e,t,n)})}else{return new Promise((n,r)=>{t.queue.push({resolve:n,reject:r,args:e})})}}}function i(e){let t=null;const n=(...n)=>{if(!t){t=e(...n).finally(()=>{t=null});return t}return t};return n}var a=n(63654);var s=a.ZP;async function l(e){return(0,r.lW)("query",e.serialize())}function u(e,t,n){const r=new f(e,t,n);r.run();return r}function c(e,t,n){const r=new h(e,t,n);r.run();return r}class f{_unsubscribe;data;dependencies;error;listeners;mappedData;mapper;onlySync;query;inflight;inflightRequestId;restart;constructor(e,t,n={}){this.error=new Error;this.query=e;this.data=null;this.mappedData=null;this.dependencies=null;this.mapper=n.mapper;this.onlySync=n.onlySync;this.listeners=[];this.inflight=false;this.restart=false;if(t){this.addListener(t)}}addListener(e){this.listeners.push(e);return()=>{this.listeners=this.listeners.filter(t=>t!==e)}}onData=(e,t)=>{for(let n=0;n<this.listeners.length;n++){this.listeners[n](e,t)}};onUpdate=e=>{if(this.dependencies==null||e.find(e=>this.dependencies.has(e))){this.run()}};run=()=>{this.subscribe();return this._fetchData(()=>l(this.query))};_fetchData=async e=>{const t=Math.random();this.inflightRequestId=t;const{data:n,dependencies:r}=await e();if(this.dependencies==null){this.dependencies=new Set(r)}if(this.inflightRequestId===t&&this._unsubscribe){const e=this.mappedData;this.data=n;this.mappedData=this.mapData(n);this.onData(this.mappedData,e);this.inflightRequestId=null}};subscribe=()=>{if(this._unsubscribe==null){this._unsubscribe=(0,r.oL)("sync-event",({type:e,tables:t})=>{const n=this.onlySync?["success"]:["applied","success"];if(n.indexOf(e)!==-1){this.onUpdate(t)}})}};unsubscribe=()=>{if(this._unsubscribe){this._unsubscribe();this._unsubscribe=null}};mapData=e=>{if(this.mapper){return this.mapper(e)}return e};getQuery=()=>{return this.query};getData=()=>{return this.mappedData};getNumListeners=()=>{return this.listeners.length};isRunning=()=>{return this._unsubscribe!=null};_optimisticUpdate=(e,t)=>{this.data=e(this.data);this.mappedData=t(this.mappedData)};optimisticUpdate=(e,t)=>{const n=this.mappedData;this._optimisticUpdate(e,t);this.onData(this.mappedData,n)}}class h extends f{done;onPageData;pageCount;runPromise;totalCount;constructor(e,t,n={}){super(e,t,n);this.totalCount=null;this.pageCount=n.pageCount||500;this.runPromise=null;this.done=false;this.onPageData=n.onPageData||(()=>{})}_fetchCount=()=>{return l(this.query.calculate({$count:"*"})).then(({data:e})=>{this.totalCount=e})};run=()=>{this.subscribe();this.runPromise=this._fetchData(async()=>{this.done=false;this._fetchCount();return l(this.query.limit(this.data==null?this.pageCount:Math.max(this.data.length,this.pageCount)))});return this.runPromise};refetchUpToRow=async(e,t)=>{this.runPromise=this._fetchData(async()=>{this.done=false;this._fetchCount();const n=(0,a.zW)(this.query,t);if(n==null){throw new Error(`refetchUpToRow requires a query with orderBy`)}const{field:r,order:o}=n;let i=await l(this.query.filter({id:e}).select(r));if(i.data.length===0){return}const s=i.data[0];i=await l(this.query.filter({[r]:{[o==="asc"?"$lte":"$gte"]:s[r]}}));const u=i.data;i=await l(this.query.filter({[r]:{[o==="asc"?"$gt":"$lt"]:s[r]}}).limit(this.pageCount));return{data:u.concat(i.data),dependencies:i.dependencies}});return this.runPromise};_fetchNext=async()=>{while(this.inflightRequestId){await this.runPromise}const e=this.data;if(!this.done){const{data:t}=await l(this.query.limit(this.pageCount).offset(e.length));if(this.inflightRequestId||e!==this.data){return this._fetchNext()}else{if(t.length===0){this.done=true}else{this.done=t.length<this.pageCount;this.data=this.data.concat(t);const e=this.mappedData;const n=this.mapData(t);this.mappedData=this.mappedData.concat(n);this.onPageData(n);this.onData(this.mappedData,e)}}}};fetchNext=i(this._fetchNext);isFinished=()=>{return this.done};getTotalCount=()=>{return this.totalCount};optimisticUpdate=(e,t)=>{const n=this.data;const r=this.mappedData;this._optimisticUpdate(e,t);this.totalCount+=this.data.length-n.length;this.onData(this.mappedData,r)}}},69304:function(e,t,n){"use strict";n.d(t,{n:function(){return a},y:function(){return s}});var r=n(66204);var o=n(10959);function i(e,t,n){const o=new n(e,null,t);const i=(0,r.createContext)(null);function a({children:e}){const[t,n]=(0,r.useState)(o.getData());const a=(0,r.useMemo)(()=>({data:t,query:o}),[t,o]);(0,r.useEffect)(()=>{if(o.getNumListeners()!==0){throw new Error("Query already has listeners. You cannot use the same query context `Provider` twice")}const e=o.addListener(e=>n(e));if(!o.isRunning()){o.run()}n(o.getData());return()=>{e();o.unsubscribe()}},[]);return r.createElement(i.Provider,{value:a,children:e})}function s(){const e=(0,r.useContext)(i);if(e==null){throw new Error("`useQuery` tried to access a query that hasn’t been run. You need to put its `Provider` in a parent component")}return e}return{Provider:a,useQuery:s}}function a(e,t){return i(e,t,o.Zn)}function s(e,t){const[n,i]=(0,r.useState)(null);const a=(0,r.useMemo)(e,t);(0,r.useEffect)(()=>{let e=(0,o.Y1)(a,async t=>{if(e){i(t)}});return()=>{e.unsubscribe();e=null}},[a]);return n}},18748:function(e,t,n){"use strict";n.d(t,{ZP:function(){return s},ch:function(){return c},gI:function(){return l},nc:function(){return f},yG:function(){return u}});var r=n(99024);var o=n(89362);var i=n(62601);const a={newTransactions:[],matchedTransactions:[],lastTransaction:null,updatedAccounts:[],accounts:[],categories:{grouped:[],list:[]},payees:[],earliestTransaction:null};function s(e=a,t){switch(t.type){case i.GZ:return{...e,newTransactions:t.newTransactions||[],matchedTransactions:t.matchedTransactions||[],updatedAccounts:t.updatedAccounts||[]};case i.kY:return{...e,newTransactions:e.newTransactions.filter(e=>e!==t.changedId),matchedTransactions:e.matchedTransactions.filter(e=>e!==t.changedId)};case i.Vi:return{...e,lastTransaction:t.transaction};case i.ER:return{...e,updatedAccounts:e.updatedAccounts.filter(e=>e!==t.accountId)};case i.WF:return{...e,accounts:t.accounts};case i.$E:{return{...e,accounts:e.accounts.map(e=>{if(e.id===t.account.id){return{...e,...t.account}}return e})}}case i.X6:return{...e,categories:t.categories};case i.gp:return{...e,payees:t.payees};default:}return e}const l=(0,r.Z)(e=>(0,o.ZZ)(e));const u=(0,r.Z)(e=>(0,o.ZZ)(e));const c=(0,r.Z)(e=>{const t={};e.forEach(e=>{e.categories.forEach(e=>{t[e.id]=e})});return t});const f=(0,r.Z)((e,t)=>{const n=l(t);return e.filter(e=>{if(e.transfer_acct){const t=n[e.transfer_acct];return t!=null&&!t.closed}return true})})},84094:function(e,t,n){"use strict";n.d(t,{S1:function(){return g},oL:function(){return y},lW:function(){return v},OK:function(){return m},Ev:function(){return w}});var r=n(26505);const o=function(e){console.log("[Exception]",e)};const i=function(e){};var a=n(57555);const s=new Map;const l=new Map;let u=[];let c=null;class f extends Error{url;line;column;constructor(e,t,n,r,o){super(e);this.name=this.constructor.name;this.message=e;Object.defineProperty(this,"stack",{get:function(){return"extended "+this._stack},set:function(e){this._stack=e}});this.stack=t;this.url=n;this.line=r;this.column=o}}function h(e){if(e.type==="error"){const{id:t}=e;s.delete(t)}else if(e.type==="reply"){const{id:t,result:n,mutated:r,undoTag:o}=e;const i=s.get(t);if(i){s.delete(t);if(!r){a.gc(o)}i.resolve(n)}}else if(e.type==="push"){const{name:t,args:n}=e;const r=l.get(t);if(r){for(let e=0;e<r.length;e++){const t=r[e](n);if(t===true){break}}}}else{if(!e.type.startsWith("__")){throw new Error("Unknown message type: "+JSON.stringify(e))}}}function p(e,t,n){c=e;e.onmessage=r=>{const a=r.data;if(a.type==="connect"){if(u.length>0){u.forEach(t=>e.postMessage(t));u=null}t()}else if(a.type==="app-init-failure"){n(a)}else if(a.type==="capture-exception"){o(a.stack?new f(a.message,a.stack,a.url,a.line,a.column):a.exc);if(a.message&&a.message.includes("indexeddb-quota-error")){alert("We hit a limit on the local storage available. Edits may not be saved. Please get in touch https://actualbudget.org/contact/ so we can help debug this.")}}else if(a.type==="capture-breadcrumb"){i(a.data)}else{h(a)}};if(e instanceof MessagePort){e.start()}}const g=async function(e){return new Promise((t,n)=>p(e,t,n))};const v=function(e,t,{catchErrors:n=false}={}){return new Promise((o,i)=>{const l=(0,r.Z)();s.set(l,{resolve:o,reject:i});const f={id:l,name:e,args:t,undoTag:a.CO(),catchErrors:n};if(u){u.push(f)}else{c.postMessage(f)}})};const m=function(e,t){return v(e,t,{catchErrors:true})};const y=function(e,t){if(!l.get(e)){l.set(e,[])}l.get(e).push(t);return()=>{const n=l.get(e);l.set(e,n.filter(e=>e!==t))}};const w=function(e){l.set(e,[])};const x=async function(){}},57555:function(e,t,n){"use strict";n.d(t,{CO:function(){return c},a2:function(){return l},gc:function(){return f},kp:function(){return s},r8:function(){return u}});var r=n(26505);const o=40;let i=[];const a={url:null,openModal:null,selectedItems:null};const s=function(e,t){a[e]=t;a.id=(0,r.Z)()};const l=function(e){return a[e]};const u=function(e){return i.find(t=>t.id===e)};const c=function(){const e={...a,id:(0,r.Z)()};i.unshift(e);i=i.slice(0,o);return e.id};const f=function(e){i=i.filter(t=>t.id!==e)}},11535:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(89362);function o(e,t){throw new Error(t+": "+JSON.stringify(e.str.slice(e.index,10)))}function i(e){return e.str[e.index]}function a(e){if(e.index>=e.str.length){return null}const t=i(e);e.index++;return t}function s(e,t){if(i(e)===t){a(e);return true}return false}function l(e){const t=i(e)==="-";if(t){a(e)}if(/\p{Sc}/u.test(i(e))){a(e)}let n="";while(i(e)&&i(e).match(/[0-9,.]/)){const t=(0,r.ff)().separator===","?".":",";if(i(e)===t){a(e)}else{n+=a(e)}}if(n===""){o(e,"Unexpected character")}const s=parseFloat(n.replace((0,r.ff)().separator,"."));return t?-s:s}function u(e){if(i(e)==="("){a(e);const t=f(e);if(i(e)!==")"){o(e,"Unbalanced parentheses")}a(e);return t}return l(e)}function c(...e){return e.reduce((e,t)=>{return n=>{let r=e(n);while(s(n,t)){r={op:t,left:r,right:e(n)}}return r}},u)}const f=c("^","/","*","-","+");function h(e){const t={str:e.replace(/\s/g,""),index:0};return f(t)}function p(e){if(typeof e==="number"){return e}const{left:t,right:n,op:r}=e;switch(r){case"+":return p(t)+p(n);case"-":return p(t)-p(n);case"*":return p(t)*p(n);case"/":return p(t)/p(n);case"^":return Math.pow(p(t),p(n));default:throw new Error("Unknown operator: "+r)}}function g(e,t=null){if(e===""){return t}let n;try{n=p(h(e))}catch(e){return t}return isNaN(n)?t:n}},50102:function(e,t,n){"use strict";n.d(t,{Ry:function(){return i},d:function(){return a}});function r(){return String({"NODE_ENV":"production","PUBLIC_URL":"","WDS_SOCKET_HOST":undefined,"WDS_SOCKET_PATH":undefined,"WDS_SOCKET_PORT":undefined,"FAST_REFRESH":true,"REACT_APP_BACKEND_WORKER_HASH":"676aa69de34599d64b7b"}.REACT_APP_NETLIFY)==="true"}function o(){return"production"==="development"}function i(){return r()||o()}function a(){if(navigator.userAgent.indexOf("Electron")>=0){return true}return false}},40400:function(e,t,n){"use strict";n.d(t,{Ez:function(){return a},FL:function(){return s},Ip:function(){return o},wg:function(){return r},zJ:function(){return i}});function r({reason:e,meta:t}){switch(e){case"unauthorized":return"You are not logged in.";case"encrypt-failure":if(t.isMissingKey){return"Encrypting your file failed because you are missing your encryption key. Create your key in the next step."}return"Encrypting the file failed. You have the correct key so this is an internal bug. To fix this, generate a new key in the next step.";case"file-has-reset":return"Something went wrong while resetting your file. Please try again.";case"file-has-new-key":return"Unable to encrypt your data because you are missing the key. Create the latest key in the next step.";case"network":return"Uploading the file failed. Check your network connection.";default:return`An internal error occurred, sorry! Visit https://actualbudget.org/contact/ for support. (ref: ${e})`}}function o({reason:e,meta:t,fileName:n}){switch(e){case"network":case"download-failure":return"Downloading the file failed. Check your network connection.";case"not-zip-file":case"invalid-zip-file":case"invalid-meta-file":return"Downloaded file is invalid, sorry! Visit https://actualbudget.org/contact/ for support.";case"decrypt-failure":return"Unable to decrypt file "+(n||"(unknown)")+". To change your key, first "+"download this file with the proper password.";case"out-of-sync-migrations":return"This budget cannot be loaded with this version of the app. "+"Make sure the app is up-to-date.";default:const r=t&&t.fileId?`, fileId: ${t.fileId}`:"";return"Something went wrong trying to download that file, sorry! "+"Visit https://actualbudget.org/contact/ for support. "+`(reason: ${e}${r})`}}function i(e){return r(e)}function a({reason:e}){switch(e){case"network":return"Unable to connect to the server. We need to access the server to get some information about your keys.";case"old-key-style":return"This file is encrypted with an old unsupported key style. Recreate the key "+"on a device where the file is available, or use an older version of Actual to download "+"it.";case"decrypt-failure":return"Unable to decrypt file with this password. Please try again.";default:return"Something went wrong trying to create a key, sorry! Visit https://actualbudget.org/contact/ for support."}}function s(e,t){if(e==="out-of-sync-migrations"||e==="out-of-sync-data"){return"This budget cannot be loaded with this version of the app."}else if(e==="budget-not-found"){return`Budget “${t}” not found. Check the id of your budget in the Advanced section of the settings page.`}else{return`We had an unknown problem opening “${t}”.`}}},73416:function(e,t,n){"use strict";n.d(t,{E4:function(){return O},zI:function(){return _},cQ:function(){return k},PR:function(){return j},dK:function(){return S},is:function(){return b},Gn:function(){return V},WU:function(){return Q},D1:function(){return ee},Ze:function(){return et},jw:function(){return $},sl:function(){return W},yl:function(){return U},LT:function(){return en},JC:function(){return eo},_y:function(){return ei},So:function(){return K},Q9:function(){return Y},W8:function(){return q},Ax:function(){return Z},DT:function(){return x},dy:function(){return E},D$:function(){return T},Do:function(){return B},cv:function(){return G},kw:function(){return A},W9:function(){return P}});var r=n(79982);var o=n(8780);var i=n(71578);var a=n(2864);var s=n(78354);function l(e,t){(0,s.Z)(2,arguments);var n=(0,a.Z)(e);var r=(0,i.Z)(t);if(isNaN(r)){return new Date(NaN)}if(!r){return n}var o=n.getDate();var l=new Date(n.getTime());l.setMonth(n.getMonth()+r+1,0);var u=l.getDate();if(o>=u){return l}else{n.setFullYear(l.getFullYear(),l.getMonth(),o);return n}};function u(e,t){(0,s.Z)(2,arguments);var n=(0,i.Z)(t);return l(e,-n)}var c=n(82862);var f=n(28548);function h(e,t){(0,s.Z)(2,arguments);var n=(0,a.Z)(e);var r=(0,a.Z)(t);return n.getTime()>r.getTime()};function p(e,t){(0,s.Z)(2,arguments);var n=(0,a.Z)(e);var r=(0,a.Z)(t);return n.getTime()<r.getTime()}var g=n(99024);var v=n(67238);function m(e){if(typeof e==="string"){const[t,n,r]=e.split("-");if(r!=null){return new Date(parseInt(t),parseInt(n)-1,parseInt(r),12)}else if(n!=null){return new Date(parseInt(t),parseInt(n)-1,1,12)}else{return new Date(parseInt(t),0,1,12)}}if(typeof e==="number"){return new Date(e)}return e}const y=null&&m;function w(e){return d.format(m(e),"yyyy")}function x(e){return r.Z(m(e),"yyyy-MM")}function b(e){return r.Z(m(e),"yyyy-MM-dd")}function S(){if(n.g.IS_TESTING||v.$8){return n.g.currentMonth||"2017-01"}else{return r.Z(new Date,"yyyy-MM")}}function k(){if(n.g.IS_TESTING||v.$8){return o.Z(j(),"yyyy-MM-dd",new Date)}return new Date}function j(){if(n.g.IS_TESTING||v.$8){return"2017-01-01"}else{return r.Z(new Date,"yyyy-MM-dd")}}function C(e){return d.format(d.addMonths(m(e),1),"yyyy-MM")}function T(e){return r.Z(u(m(e),12),"yyyy-MM")}function E(e){return r.Z(u(m(e),1),"yyyy-MM")}function _(e,t){return r.Z(l(m(e),t),"yyyy-MM")}function I(e,t){return d.format(d.addWeeks(m(e),t),"yyyy-MM-dd")}function M(e,t){return d.differenceInCalendarMonths(m(e),m(t))}function D(e,t){return d.differenceInCalendarDays(m(e),m(t))}function P(e,t){return r.Z(u(m(e),t),"yyyy-MM")}function O(e,t){return r.Z(c.Z(m(e),t),"yyyy-MM-dd")}function A(e,t){return r.Z(f.Z(m(e),t),"yyyy-MM-dd")}function R(e,t){return d.isBefore(m(e),m(t))}function Z(e,t){return h(m(e),m(t))}function z(e){return{start:parseInt(d.format(d.startOfMonth(m(e)),"yyyyMMdd")),end:parseInt(d.format(d.endOfMonth(m(e)),"yyyyMMdd"))}}function N(e,t,n=false){const r=[];let o=x(e);while(p(m(o),m(t))){r.push(o);o=_(o,1)}if(n){r.push(o)}return r}function L(e,t){return N(e,t)}function B(e,t){return N(e,t,true)}function H(e,t,n=false){const r=[];let o=e;while(p(m(o),m(t))){r.push(o);o=O(o,1)}if(n){r.push(o)}return r}function F(e,t){return H(e,t)}function V(e,t){return H(e,t,true)}function W(e,t){const n=`${t+1}`.padStart(2,"0");return`${e}-${n}`}function U(e){return parseInt(e.slice(5,7))-1}function K(e){return e.slice(0,4)}function $(e){return e.slice(0,7)}function q(e){return K(e)+"-01"}function Y(e){return K(e)+"-12"}function G(e){return"budget"+e.replace("-","")}function X(e){return d.format(m(e),"MMMM 'yy")}function Q(e,t){return r.Z(m(e),t)}const J=(0,g.Z)(e=>{return new RegExp(e.replace(/d+/g,"\\d{1,2}").replace(/M+/g,"\\d{1,2}").replace(/y+/g,"\\d{4}"))});const ee=(0,g.Z)(e=>{return e.replace(/y+/g,"").replace(/[^\w]$/,"").replace(/^[^\w]/,"")});const et=(0,g.Z)(e=>{const t=e.replace(/y+/g,"").replace(/[^\w]$/,"").replace(/^[^\w]/,"").replace(/d+/g,"\\d{1,2}").replace(/M+/g,"\\d{1,2}");return new RegExp("^"+t+"$")});const en=(0,g.Z)(e=>{return e.replace(/d+/g,"").replace(/[^\w]$/,"").replace(/^[^\w]/,"").replace(/\/\//,"/").replace(/\.\./,".").replace(/--/,"-")});const er=(0,g.Z)(e=>{const t=e.replace(/d+/g,"").replace(/[^\w]$/,"").replace(/^[^\w]/,"").replace(/\/\//,"/").replace(/M+/g,"\\d{1,2}").replace(/y+/g,"\\d{2,4}");return new RegExp("^"+t+"$")});const eo=(0,g.Z)(e=>{return e.replace(/y+/g,"yy")});const ei=(0,g.Z)(e=>{const t=e.replace(/[^\w]$/,"").replace(/^[^\w]/,"").replace(/d+/g,"\\d{1,2}").replace(/M+/g,"\\d{1,2}").replace(/y+/g,"\\d{2}");return new RegExp("^"+t+"$")})},63654:function(e,t,n){"use strict";n.d(t,{ZP:function(){return i},zW:function(){return o}});class r{state;constructor(e){this.state={filterExpressions:e.filterExpressions||[],selectExpressions:e.selectExpressions||[],groupExpressions:e.groupExpressions||[],orderExpressions:e.orderExpressions||[],calculation:false,rawMode:false,withDead:false,validateRefs:true,limit:null,offset:null,...e}}filter(e){return new r({...this.state,filterExpressions:[...this.state.filterExpressions,e]})}unfilter(e){const t=new Set(e);return new r({...this.state,filterExpressions:this.state.filterExpressions.filter(e=>!t.has(Object.keys(e)[0]))})}select(e=[]){if(!Array.isArray(e)){e=[e]}const t=new r({...this.state,selectExpressions:e});t.state.calculation=false;return t}calculate(e){const t=this.select({result:e});t.state.calculation=true;return t}groupBy(e){if(!Array.isArray(e)){e=[e]}return new r({...this.state,groupExpressions:[...this.state.groupExpressions,...e]})}orderBy(e){if(!Array.isArray(e)){e=[e]}return new r({...this.state,orderExpressions:[...this.state.orderExpressions,...e]})}limit(e){return new r({...this.state,limit:e})}offset(e){return new r({...this.state,offset:e})}raw(){return new r({...this.state,rawMode:true})}withDead(){return new r({...this.state,withDead:true})}withoutValidatedRefs(){return new r({...this.state,validateRefs:false})}options(e){return new r({...this.state,tableOptions:e})}serialize(){return this.state}}function o(e,t){const n=e.serialize().orderExpressions;if(n.length===0){if(t){return{order:"asc",...t}}return null}const r=n[0];if(typeof r==="string"){return{field:r,order:"asc"}}const[o]=Object.keys(r);return{field:o,order:r[o]}}function i(e){return new r({table:e})}},3189:function(e,t,n){"use strict";n.d(t,{Qc:function(){return f},Z:function(){return l},Z2:function(){return h},Z9:function(){return i},gL:function(){return a},l1:function(){return p},w8:function(){return s},wZ:function(){return o},zQ:function(){return u}});var r=n(89362);const o={date:{ops:["is","isapprox","gt","gte","lt","lte"],nullable:false},id:{ops:["is","contains","oneOf","isNot","doesNotContain","notOneOf"],nullable:true},saved:{ops:[],nullable:false},string:{ops:["is","contains","oneOf","isNot","doesNotContain","notOneOf"],nullable:true},number:{ops:["is","isapprox","isbetween","gt","gte","lt","lte"],nullable:false},boolean:{ops:["is"],nullable:false}};const i=new Map(Object.entries({imported_payee:"string",payee:"id",date:"date",notes:"string",amount:"number",amountInflow:"number",amountOutfow:"number",category:"id",account:"id",cleared:"boolean",saved:"saved"}));function a(e,t){t=t||{};switch(e){case"imported_payee":return"imported payee";case"amount":if(t.inflow){return"amount (inflow)"}else if(t.outflow){return"amount (outflow)"}return"amount";case"amount-inflow":return"amount (inflow)";case"amount-outflow":return"amount (outflow)";default:return e}}function s(e,t){switch(e){case"oneOf":return"one of";case"notOneOf":return"not one of";case"is":return"is";case"isNot":return"is not";case"isapprox":return"is approx";case"isbetween":return"is between";case"contains":return"contains";case"doesNotContain":return"does not contain";case"gt":if(t==="date"){return"is after"}return"is greater than";case"gte":if(t==="date"){return"is after or equals"}return"is greater than or equals";case"lt":if(t==="date"){return"is before"}return"is less than";case"lte":if(t==="date"){return"is before or equals"}return"is less than or equals";case"true":return"is true";case"false":return"is false";case"set":return"set";case"link-schedule":return"link schedule";case"and":return"and";case"or":return"or";default:return""}}function l(e){if(e==="amount-inflow"){return{field:"amount",options:{inflow:true}}}else if(e==="amount-outflow"){return{field:"amount",options:{outflow:true}}}else{return{field:e}}}function u(e){switch(e){case"date-format":return"Invalid date format";case"no-null":case"no-empty-array":case"no-empty-string":return"Value cannot be empty";case"not-number":return"Value must be a number";case"invalid-field":return"Please choose a valid field for this type of rule";default:return"Internal error, sorry! Please get in touch https://actualbudget.org/contact/ for support"}}function c(e,t){if(e<t){return[e,t]}return[t,e]}function f(e){switch(e.type){case"number":{let t=e.value;if(e.field==="amount"&&e.op!=="isbetween"&&t!=null){t=(0,r.Bf)(t)}return{...e,value:t}}case"string":{const t=e.value==null?"":e.value;return{...e,value:t}}case"boolean":{const t=e.value;return{...e,value:t}}default:}return{...e,error:null}}function h({error:e,inputKey:t,...n}){switch(n.type){case"number":{let e=n.value;if(n.field==="amount"&&n.op!=="isbetween"){e=(0,r.l9)(e)}return{...n,value:e}}case"string":{const e=n.value==null?"":n.value;return{...n,value:e}}case"boolean":{const e=n.value==null?false:n.value;return{...n,value:e}}default:}return n}function p(e,t){switch(t.type){case"number":{if(t.op!=="isbetween"){return{...t,error:null,value:e?(0,r.Dz)(String(e))||0:0}}break}default:}return{...t,error:null,value:e}}function g(e){return Math.round(Math.abs(e)*.075)}},11504:function(e,t,n){"use strict";n.d(t,{b5:function(){return p},eJ:function(){return a},lP:function(){return h},lR:function(){return i},lq:function(){return f},o7:function(){return u}});var r=n(73416);var o=n(63654);function i(e,t,n){const o=r.PR();if(t){return"completed"}else if(n){return"paid"}else if(e===o){return"due"}else if(e>o&&e<=r.E4(o,7)){return"upcoming"}else if(e<o){return"missed"}else{return"scheduled"}}function a(e){const t=e.map(e=>{const t=e._conditions.find(e=>e.field==="date");return{$and:{schedule:e.id,date:{$gte:t&&t.op==="is"?e.next_date:r.kw(e.next_date,2)}}}});return(0,o.ZP)("transactions").filter({$or:t}).orderBy({date:"desc"}).groupBy("schedule").select(["schedule","date"])}function s(e){return r.WU(new Date(2020,0,e,12),"do")}function l(e){const t={SU:"Sunday",MO:"Monday",TU:"Tuesday",WE:"Wednesday",TH:"Thursday",FR:"Friday",SA:"Saturday"};return t[e]}function u(e){const t=e.interval||1;const n=e.skipWeekend?` (${e.weekendSolveMode} weekend) `:"";switch(e.frequency){case"daily":{let e="Every ";e+=t!==1?`${t} days`:"day";return e+n}case"weekly":{let o="Every ";o+=t!==1?`${t} weeks`:"week";o+=" on "+r.WU(e.start,"EEEE");return o+n}case"monthly":{let o="Every ";o+=t!==1?`${t} months`:"month";if(e.patterns&&e.patterns.length>0){let t=[...e.patterns].sort((e,t)=>{const n=(e.type==="day"?1:0)-(t.type==="day"?1:0);const r=e.value-t.value;if(n===0){return r}return n}).filter(e=>e.value!==-1);t=t.concat(e.patterns.filter(e=>e.value===-1));o+=" on the ";const n=[];const r=new Set(t.map(e=>e.type));const i=r.size===1&&!r.has("day");for(const e of t){if(e.type==="day"){if(e.value===-1){n.push("last day")}else{n.push(s(e.value))}}else{const t=i?"":" "+l(e.type);if(e.value===-1){n.push("last"+t)}else{n.push(s(e.value)+t)}}}if(n.length>2){o+=n.slice(0,n.length-1).join(", ");o+=", and ";o+=n[n.length-1]}else{o+=n.join(" and ")}if(i){o+=" "+l(t[0].type)}}else{o+=" on the "+r.WU(e.start,"do")}return o+n}case"yearly":{let o="Every ";o+=t!==1?`${t} years`:"year";o+=" on "+r.WU(e.start,"LLL do");return o+n}default:return"Recurring error"}}function c(e){const t={start:monthUtils.parseDate(e.start),frequency:e.frequency.toUpperCase(),byHourOfDay:[12]};if(e.interval){t.interval=e.interval}const n=e=>e.slice(0,2).toUpperCase();switch(e.frequency){case"daily":return[t];case"weekly":return[t];case"monthly":if(e.patterns&&e.patterns.length>0){const r=e.patterns.filter(e=>e.type==="day");const o=e.patterns.filter(e=>e.type!=="day");return[r.length>0&&{...t,byDayOfMonth:r.map(e=>e.value)},o.length>0&&{...t,byDayOfWeek:o.map(e=>[n(e.type),e.value])}].filter(Boolean)}else{return[t]}case"yearly":return[t];default:throw new Error("Invalid recurring date config")}}function f(e){return{payee:e.find(e=>e.op==="is"&&e.field==="payee")||e.find(e=>e.op==="is"&&e.field==="description")||null,account:e.find(e=>e.op==="is"&&e.field==="account")||e.find(e=>e.op==="is"&&e.field==="acct")||null,amount:e.find(e=>(e.op==="is"||e.op==="isapprox"||e.op==="isbetween")&&e.field==="amount")||null,date:e.find(e=>(e.op==="is"||e.op==="isapprox")&&e.field==="date")||null}}function h(e){if(e&&typeof e!=="number"){return Math.round((e.num1+e.num2)/2)}return e}function p(e,t){if(t){return`${t.name} (${e.next_date})`}else{return`Next: ${e.next_date}`}}},76804:function(e,t,n){"use strict";n.d(t,{CX:function(){return y},F6:function(){return g},J4:function(){return i},Ks:function(){return x},Ld:function(){return w},V6:function(){return S},Xt:function(){return h},_n:function(){return v},oQ:function(){return b}});var r=n(26505);var o=n(89362);function i(e){return e.indexOf("preview/")!==-1}function a(e){return typeof e==="number"?e:0}function s(e,t){const n=a(t.amount)-e;return{type:"SplitTransactionError",version:1,difference:n}}function l(e,t){const n=e.id==="temp"?"temp":"";return{amount:0,...t,payee:t.payee||e.payee,id:t.id?t.id:n+(0,r.Z)(),account:e.account,date:e.date,cleared:e.cleared!=null?e.cleared:null,starting_balance_flag:e.starting_balance_flag!=null?e.starting_balance_flag:null,is_child:true,parent_id:e.id,error:null}}function u(e){const t=e.subtransactions.reduce((e,t)=>e+a(t.amount),0);return{...e,error:t===a(e.amount)?null:s(t,e)}}function c(e,t){while(t>=0){const n=e[t];if(n.is_parent){return t}t--}return null}function f(e,t){const n=[e[t]];let r=t+1;while(r<e.length&&e[r].is_child){n.push(e[r]);r++}return n}function h(e){const t=e.reduce((e,t)=>{const{subtransactions:n,...r}=t;const o=n||[];e.push(r);for(let t=0;t<o.length;t++){e.push(o[t])}return e},[]);return t}function p(e){return{...e[0],subtransactions:e.slice(1)}}function g(e){if(e==null){return null}return h([e])}function v(e,t){return p((0,o.zb)(t,g(e)))}function m(e,t,n){const r=e.findIndex(e=>e.id===t);const i=e[r];const a=[...e];if(r===-1){throw new Error("Tried to edit unknown transaction id: "+t)}if(i.is_parent||i.is_child){const t=c(e,r);if(t==null){console.log("Cannot find parent index");return{diff:{deleted:[],updated:[]}}}const i=f(e,t);let s=n(p(i));const l=g(s);let u;if(l==null){u={deleted:[{id:i[0].id}],updated:[]};s={id:i[0].id,_deleted:true};a.splice(t,i.length)}else{u=(0,o.Th)(i,l);a.splice(t,i.length,...l)}return{data:a,newTransaction:s,diff:u}}else{const e=n(i);const t=g(e)||[];if(e){e.subtransactions=e.subtransactions||[]}a.splice(r,1,...t);return{data:a,newTransaction:e||{id:i.id,_deleted:true},diff:(0,o.Th)([i],t)}}}function y(e,t){return m(e,t,e=>{if(!e.is_parent){return e}const t=(0,o.Z$)(e.subtransactions);e.subtransactions.push(l(e,{amount:0,sort_order:a(t&&t.sort_order)-1}));return e})}function w(e,t){return m(e,t.id,e=>{if(e.is_parent){const n=e.id===t.id?t:e;const r=e.subtransactions.map(r=>{let o=r;if(e.id===t.id){o={...r,payee:r.payee===e.payee?t.payee:r.payee}}else if(r.id===t.id){o=t}return l(n,o)});return u({...n,subtransactions:r})}else{return t}})}function x(e,t){return m(e,t,e=>{if(e.is_parent){if(e.id===t){return null}else if(e.subtransactions.length===1){return{...e,subtransactions:null,is_parent:false,error:null}}else{const n=e.subtransactions.filter(e=>e.id!==t);return u({...e,subtransactions:n})}}else{return null}})}function b(e,t){return m(e,t,e=>{if(e.is_parent||e.is_child){return e}return{...e,is_parent:true,error:a(e.amount)===0?null:s(0,e),subtransactions:[l(e,{amount:0,sort_order:-1})]}})}function S(e){let t=e.find(e=>!e.is_child);t={...t,id:(0,r.Z)()};const n=e.filter(e=>e.is_child);return[t,...n.map(e=>({...e,id:(0,r.Z)(),parent_id:t.id}))]}},89362:function(e,t,n){"use strict";n.d(t,{Bf:function(){return D},CD:function(){return I},Dz:function(){return E},Th:function(){return c},VL:function(){return v},Z$:function(){return r},ZZ:function(){return f},eY:function(){return T},ff:function(){return x},id:function(){return m},k4:function(){return o},l9:function(){return M},qP:function(){return P},qT:function(){return _},sD:function(){return j},yC:function(){return w},zA:function(){return C},zb:function(){return a}});function r(e){return e[e.length-1]}function o(e,t){const n=e.id?{id:e.id}:{};const r=Object.keys(t);let o=false;for(let i=0;i<r.length;i++){const a=r[i];if(e[a]!==t[a]){n[a]=t[a];o=true}}return o?n:null}function i(e,t,n){let r=false;for(let o=0;o<n.length;o++){const i=n[o];if(e[i]!==t[i]){r=true;break}}return r}function a(e,t){t=[...t];if(e.added){e.added.forEach(e=>{t.push(e)})}if(e.updated){e.updated.forEach(({id:e,...n})=>{const r=t.findIndex(t=>t.id===e);t[r]={...t[r],...n}})}if(e.deleted){e.deleted.forEach(e=>{const n=t.findIndex(t=>e.id===t.id);if(n!==-1){t.splice(n,1)}})}return t}function s(e,t){const n=new Map;for(let r=0;r<e.length;r++){const o=e[r];const i=o[t];const a=n.get(i)||[];a.push(o);n.set(i,a)}return n}function l(e,t){const n=new Map;for(let r=0;r<e.length;r++){const o=e[r];const i=o[t];const a=n.get(i)||[];n.set(i,a.concat([o]))}return n}function u(e){const t=new Map;for(let n=0;n<e.length;n++){const r=e[n];t.set(r.id,r)}return t}function c(e,t){const n=u(e);const r=u(t);const i=[];const a=[];const s=e.filter(e=>!r.has(e.id)).map(e=>({id:e.id}));t.forEach(e=>{const t=n.get(e.id);if(!t){i.push(e)}else{const n=o(t,e);if(n){a.push(n)}}});return{added:i,updated:a,deleted:s}}function f(e){const t={};for(let n=0;n<e.length;n++){const r=e[n];t[r.id]=r}return t}function h(e,t,n){for(let r=0;r<t.length;r++){const o=t[r];if(r===t.length-1){e.set(o,n)}else{if(!e.has(o)){e.set(o,new Map)}e=e.get(o)}}}function p(e,t){let n=e;for(let e=0;e<t.length;e++){n=n.get(t[e]);if(n==null){return n}}return n}function g(e,t){const n=new Set(e);const r=t.values();let o=r.next();while(!o.done){n.add(o.value);o=r.next()}return n}function v(e){return e[0].toUpperCase()+e.slice(1)}const m=[{value:"comma-dot",label:"1,000.33",labelNoFraction:"1,000"},{value:"dot-comma",label:"1.000,33",labelNoFraction:"1.000"},{value:"space-comma",label:"1 000,33",labelNoFraction:"1 000"},{value:"space-dot",label:"1 000.33",labelNoFraction:"1 000"},{value:"comma-dot-in",label:"1,00,000.33",labelNoFraction:"1,00,000"}];let y={format:"comma-dot",hideFraction:false};function w(e){y=e}function x({format:e,hideFraction:t}=y){let n,r,o;switch(e){case"space-comma":n="en-SE";r=/[^-0-9,]/g;o=",";break;case"dot-comma":n="de-DE";r=/[^-0-9,]/g;o=",";break;case"space-dot":n="dje";r=/[^-0-9.]/g;o=".";break;case"comma-dot-in":n="en-IN";r=/[^-0-9.]/g;o=".";break;case"comma-dot":default:n="en-US";r=/[^-0-9.]/g;o="."}return{value:e,separator:o,formatter:new Intl.NumberFormat(n,{minimumFractionDigits:t?0:2,maximumFractionDigits:t?0:2}),regex:r}}const b=2**51-1;const S=-b;function k(e){if(!Number.isInteger(e)){throw new Error("safeNumber: number is not an integer: "+JSON.stringify(e))}if(e>b||e<S){throw new Error("safeNumber: can’t safely perform arithmetic with number: "+e)}return e}function j(e){return D(_(e)||0)}function C(e,t=x().formatter){return t.format(k(e)/100)}function T(e){return x().formatter.format(e)}function E(e){const t=parseFloat(e.replace(x().regex,"").replace(x().separator,"."));return isNaN(t)?null:t}function _(e){const t=E(e);return t==null?null:M(t)}function I(e){const t=parseInt(e.replace(/[^-0-9.,]/g,""));if(!isNaN(t)){return t}return null}function M(e){return Math.round(e*100)}function D(e){return parseFloat((k(e)/100).toFixed(2))}function P(e){function t(e){return isNaN(e)?null:e}function n(e){return e.replace(/[^0-9-]/g,"")}if(e.startsWith("(")&&e.endsWith(")")){e=e.replace("(","-").replace(")","")}const r=e.match(/[.,][^.,]*$/);if(!r||r.index===0){return t(parseFloat(n(e)))}const o=n(e.slice(0,r.index));const i=n(e.slice(r.index+1));return t(parseFloat(o+"."+i))}function O(e,t){return[...e].sort((e,n)=>{if(e[t]<n[t]){return-1}else if(e[t]>n[t]){return 1}return 0})}},1718:function(e,t,n){"use strict";e.exports=n.p+"static/media/browser-server.4fea7aa4628e0f1edc35.js"},80753:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});function r(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}},56666:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(45850);function o(e,t,n){t=(0,r.Z)(t);if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}},7896:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});function r(){r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n){if(Object.prototype.hasOwnProperty.call(n,r)){e[r]=n[r]}}}return e};return r.apply(this,arguments)}},88960:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});function r(e,t){r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function e(e,t){e.__proto__=t;return e};return r(e,t)}},45850:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(86522);function o(e,t){if((0,r.Z)(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==undefined){var o=n.call(e,t||"default");if((0,r.Z)(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)};function i(e){var t=o(e,"string");return(0,r.Z)(t)==="symbol"?t:String(t)}},86522:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});function r(e){"@babel/helpers - typeof";return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}},14313:function(e,t,n){"use strict";n.d(t,{Fx:function(){return L},MT:function(){return h},QL:function(){return O},ex:function(){return a}});var r=n(66204);var o=n(90696);var i=n(4689);function a(e){if((0,i.Jz)()==="virtual"){let t=document.activeElement;(0,o.QB)(()=>{if(document.activeElement===t&&document.contains(e))(0,o.Ao)(e)})}else(0,o.Ao)(e)}function s(e){if(!(e instanceof HTMLElement)&&!(e instanceof SVGElement))return false;let{display:t,visibility:n}=e.style;let r=t!=="none"&&n!=="hidden"&&n!=="collapse";if(r){const{getComputedStyle:t}=e.ownerDocument.defaultView;let{display:n,visibility:o}=t(e);r=n!=="none"&&o!=="hidden"&&o!=="collapse"}return r}function l(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):true)}function u(e,t){return e.nodeName!=="#comment"&&s(e)&&l(e,t)&&(!e.parentElement||u(e.parentElement,e))}const c=(0,r).createContext(null);let f=null;function h(e){let{children:t,contain:n,restoreFocus:i,autoFocus:a}=e;let s=(0,r.useRef)();let l=(0,r.useRef)();let u=(0,r.useRef)([]);let{parentNode:h}=(0,r.useContext)(c)||{};let p=(0,r.useMemo)(()=>new z({scopeRef:u}),[u]);(0,o.bt)(()=>{let e=h||N.root;if(N.getTreeNode(e.scopeRef)&&f&&!T(f,e.scopeRef)){let t=N.getTreeNode(f);if(t)e=t}e.addChild(p);N.addNode(p)},[p,h]);(0,o.bt)(()=>{let e=N.getTreeNode(u);e.contain=n},[n]);(0,o.bt)(()=>{let e=s.current.nextSibling;let t=[];while(e&&e!==l.current){t.push(e);e=e.nextSibling}u.current=t},[t]);M(u,i,n);b(u,n);P(u,i,n);I(u,a);(0,r.useEffect)(()=>{if(u){let e=document.activeElement;let t=null;if(k(e,u.current)){for(let n of N.traverse())if(k(e,n.scopeRef.current))t=n;if(t===N.getTreeNode(u))f=t.scopeRef}return()=>{let e=N.getTreeNode(u).parent.scopeRef;if((u===f||T(u,f))&&(!e||N.getTreeNode(e)))f=e;N.removeTreeNode(u)}}},[u]);let v=(0,r.useMemo)(()=>g(u),[]);let m=(0,r.useMemo)(()=>({focusManager:v,parentNode:p}),[p,v]);return(0,r).createElement(c.Provider,{value:m},(0,r).createElement("span",{"data-focus-scope-start":true,hidden:true,ref:s}),t,(0,r).createElement("span",{"data-focus-scope-end":true,hidden:true,ref:l}))}function p(){var e;return(e=(0,$6nfFC$useContext)(c))===null||e===void 0?void 0:e.focusManager}function g(e){return{focusNext(t={}){let n=e.current;let{from:r,tabbable:o,wrap:i,accept:a}=t;let s=r||document.activeElement;let l=n[0].previousElementSibling;let u=O(w(n),{tabbable:o,accept:a},n);u.currentNode=k(s,n)?s:l;let c=u.nextNode();if(!c&&i){u.currentNode=l;c=u.nextNode()}if(c)E(c,true);return c},focusPrevious(t={}){let n=e.current;let{from:r,tabbable:o,wrap:i,accept:a}=t;let s=r||document.activeElement;let l=n[n.length-1].nextElementSibling;let u=O(w(n),{tabbable:o,accept:a},n);u.currentNode=k(s,n)?s:l;let c=u.previousNode();if(!c&&i){u.currentNode=l;c=u.previousNode()}if(c)E(c,true);return c},focusFirst(t={}){let n=e.current;let{tabbable:r,accept:o}=t;let i=O(w(n),{tabbable:r,accept:o},n);i.currentNode=n[0].previousElementSibling;let a=i.nextNode();if(a)E(a,true);return a},focusLast(t={}){let n=e.current;let{tabbable:r,accept:o}=t;let i=O(w(n),{tabbable:r,accept:o},n);i.currentNode=n[n.length-1].nextElementSibling;let a=i.previousNode();if(a)E(a,true);return a}}}const v=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"];const m=v.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";v.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const y=v.join(':not([hidden]):not([tabindex="-1"]),');function w(e){return e[0].parentElement}function x(e){let t=N.getTreeNode(f);while(t&&t.scopeRef!==e){if(t.contain)return false;t=t.parent}return true}function b(e,t){let n=(0,r.useRef)();let i=(0,r.useRef)(null);(0,o.bt)(()=>{let r=e.current;if(!t){if(i.current){cancelAnimationFrame(i.current);i.current=null}return}let o=t=>{if(t.key!=="Tab"||t.altKey||t.ctrlKey||t.metaKey||!x(e))return;let n=document.activeElement;let r=e.current;if(!k(n,r))return;let o=O(w(r),{tabbable:true},r);o.currentNode=n;let i=t.shiftKey?o.previousNode():o.nextNode();if(!i){o.currentNode=t.shiftKey?r[r.length-1].nextElementSibling:r[0].previousElementSibling;i=t.shiftKey?o.previousNode():o.nextNode()}t.preventDefault();if(i)E(i,true)};let a=t=>{if((!f||T(f,e))&&k(t.target,e.current)){f=e;n.current=t.target}else if(x(e)&&!j(t.target,e)){if(n.current)n.current.focus();else if(f)_(f.current)}else if(x(e))n.current=t.target};let s=t=>{if(i.current)cancelAnimationFrame(i.current);i.current=requestAnimationFrame(()=>{if(x(e)&&!j(document.activeElement,e)){f=e;if(document.body.contains(t.target)){n.current=t.target;n.current.focus()}else if(f)_(f.current)}})};document.addEventListener("keydown",o,false);document.addEventListener("focusin",a,false);r.forEach(e=>e.addEventListener("focusin",a,false));r.forEach(e=>e.addEventListener("focusout",s,false));return()=>{document.removeEventListener("keydown",o,false);document.removeEventListener("focusin",a,false);r.forEach(e=>e.removeEventListener("focusin",a,false));r.forEach(e=>e.removeEventListener("focusout",s,false))}},[e,t]);(0,o.bt)(()=>{return()=>{if(i.current)cancelAnimationFrame(i.current)}},[i])}function S(e){return j(e)}function k(e,t){return t.some(t=>t.contains(e))}function j(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return true;for(let{scopeRef:n}of N.traverse(N.getTreeNode(t))){if(k(e,n.current))return true}return false}function C(e){return j(e,f)}function T(e,t){var n;let r=(n=N.getTreeNode(t))===null||n===void 0?void 0:n.parent;while(r){if(r.scopeRef===e)return true;r=r.parent}return false}function E(e,t=false){if(e!=null&&!t)try{(0,a)(e)}catch(e){}else if(e!=null)try{e.focus()}catch(e){}}function _(e,t=true){let n=e[0].previousElementSibling;let r=O(w(e),{tabbable:t},e);r.currentNode=n;let o=r.nextNode();if(t&&!o){r=O(w(e),{tabbable:false},e);r.currentNode=n;o=r.nextNode()}E(o)}function I(e,t){const n=(0,r).useRef(t);(0,r.useEffect)(()=>{if(n.current){f=e;if(!k(document.activeElement,f.current))_(e.current)}n.current=false},[e])}function M(e,t,n){(0,o.bt)(()=>{if(t||n)return;let r=e.current;let o=t=>{let n=t.target;if(k(n,e.current))f=e;else if(!S(n))f=null};document.addEventListener("focusin",o,false);r.forEach(e=>e.addEventListener("focusin",o,false));return()=>{document.removeEventListener("focusin",o,false);r.forEach(e=>e.removeEventListener("focusin",o,false))}},[e,t,n])}function D(e){let t=N.getTreeNode(f);while(t&&t.scopeRef!==e){if(t.nodeToRestore)return false;t=t.parent}return(t===null||t===void 0?void 0:t.scopeRef)===e}function P(e,t,n){const i=(0,r.useRef)(typeof document!=="undefined"?document.activeElement:null);(0,o.bt)(()=>{let r=e.current;if(!t||n)return;let o=()=>{if((!f||T(f,e))&&k(document.activeElement,e.current))f=e};document.addEventListener("focusin",o,false);r.forEach(e=>e.addEventListener("focusin",o,false));return()=>{document.removeEventListener("focusin",o,false);r.forEach(e=>e.removeEventListener("focusin",o,false))}},[e,n]);(0,o.bt)(()=>{if(!t)return;let r=t=>{if(t.key!=="Tab"||t.altKey||t.ctrlKey||t.metaKey||!x(e))return;let n=document.activeElement;if(!k(n,e.current))return;let r=N.getTreeNode(e).nodeToRestore;let o=O(document.body,{tabbable:true});o.currentNode=n;let i=t.shiftKey?o.previousNode():o.nextNode();if(!document.body.contains(r)||r===document.body){r=null;N.getTreeNode(e).nodeToRestore=null}if((!i||!k(i,e.current))&&r){o.currentNode=r;do i=t.shiftKey?o.previousNode():o.nextNode();while(k(i,e.current));t.preventDefault();t.stopPropagation();if(i)E(i,true);else if(!S(r))n.blur();else E(r,true)}};if(!n)document.addEventListener("keydown",r,true);return()=>{if(!n)document.removeEventListener("keydown",r,true)}},[e,t,n]);(0,o.bt)(()=>{if(!t)return;N.getTreeNode(e).nodeToRestore=i.current;return()=>{let n=N.getTreeNode(e).nodeToRestore;if(t&&n&&(k(document.activeElement,e.current)||document.activeElement===document.body&&D(e))){let t=N.clone();requestAnimationFrame(()=>{if(document.activeElement===document.body){let n=t.getTreeNode(e);while(n){if(n.nodeToRestore&&document.body.contains(n.nodeToRestore)){E(n.nodeToRestore);return}n=n.parent}n=t.getTreeNode(e);while(n){if(n.scopeRef&&N.getTreeNode(n.scopeRef)){_(n.scopeRef.current,true);return}n=n.parent}}})}}},[e,t])}function O(e,t,n){let r=(t===null||t===void 0?void 0:t.tabbable)?y:m;let o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){var o;if(t===null||t===void 0?void 0:(o=t.from)===null||o===void 0?void 0:o.contains(e))return NodeFilter.FILTER_REJECT;if(e.matches(r)&&(0,u)(e)&&(!n||k(e,n))&&(!(t===null||t===void 0?void 0:t.accept)||t.accept(e)))return NodeFilter.FILTER_ACCEPT;return NodeFilter.FILTER_SKIP}});if(t===null||t===void 0?void 0:t.from)o.currentNode=t.from;return o}function A(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return;let{from:o,tabbable:i=t.tabbable,wrap:a=t.wrap,accept:s=t.accept}=n;let l=o||document.activeElement;let u=O(r,{tabbable:i,accept:s});if(r.contains(l))u.currentNode=l;let c=u.nextNode();if(!c&&a){u.currentNode=r;c=u.nextNode()}if(c)E(c,true);return c},focusPrevious(n=t){let r=e.current;if(!r)return;let{from:o,tabbable:i=t.tabbable,wrap:a=t.wrap,accept:s=t.accept}=n;let l=o||document.activeElement;let u=O(r,{tabbable:i,accept:s});if(r.contains(l))u.currentNode=l;else{let e=R(u);if(e)E(e,true);return e}let c=u.previousNode();if(!c&&a){u.currentNode=r;c=R(u)}if(c)E(c,true);return c},focusFirst(n=t){let r=e.current;if(!r)return;let{tabbable:o=t.tabbable,accept:i=t.accept}=n;let a=O(r,{tabbable:o,accept:i});let s=a.nextNode();if(s)E(s,true);return s},focusLast(n=t){let r=e.current;if(!r)return;let{tabbable:o=t.tabbable,accept:i=t.accept}=n;let a=O(r,{tabbable:o,accept:i});let s=R(a);if(s)E(s,true);return s}}}function R(e){let t;let n;do{n=e.lastChild();if(n)t=n}while(n);return t}class Z{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(t!==null&&t!==void 0?t:null);let o=new z({scopeRef:e});r.addChild(o);o.parent=r;this.fastMap.set(e,o);if(n)o.nodeToRestore=n}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let t=this.fastMap.get(e);let n=t.parent;for(let e of this.traverse())if(e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef.current&&k(e.nodeToRestore,t.scopeRef.current))e.nodeToRestore=t.nodeToRestore;let r=t.children;n.removeChild(t);if(r.size>0)r.forEach(e=>n.addChild(e));this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null)yield e;if(e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){let e=new Z;for(let t of this.traverse())e.addTreeNode(t.scopeRef,t.parent.scopeRef,t.nodeToRestore);return e}constructor(){this.fastMap=new Map;this.root=new z({scopeRef:null});this.fastMap.set(null,this.root)}}class z{addChild(e){this.children.add(e);e.parent=this}removeChild(e){this.children.delete(e);e.parent=undefined}constructor(e){this.children=new Set;this.contain=false;this.scopeRef=e.scopeRef}}let N=new Z;function L(e={}){let{autoFocus:t=false,isTextInput:n,within:o}=e;let a=(0,r.useRef)({isFocused:false,isFocusVisible:t||(0,i.E)()});let[s,l]=(0,r.useState)(false);let[u,c]=(0,r.useState)(()=>a.current.isFocused&&a.current.isFocusVisible);let f=(0,r.useCallback)(()=>c(a.current.isFocused&&a.current.isFocusVisible),[]);let h=(0,r.useCallback)(e=>{a.current.isFocused=e;l(e);f()},[f]);(0,i.mG)(e=>{a.current.isFocusVisible=e;f()},[],{isTextInput:n});let{focusProps:p}=(0,i.KK)({isDisabled:o,onFocusChange:h});let{focusWithinProps:g}=(0,i.L_)({isDisabled:!o,onFocusWithinChange:h});return{isFocused:s,isFocusVisible:u,focusProps:o?g:p}}function B(e){let{children:t,focusClass:n,focusRingClass:r}=e;let{isFocused:o,isFocusVisible:i,focusProps:a}=(0,L)(e);let s=(0,$6nfFC$react).Children.only(t);return(0,$6nfFC$react).cloneElement(s,(0,$6nfFC$mergeProps)(s.props,{...a,className:(0,$6nfFC$clsx)({[n||""]:o,[r||""]:i})}))}let H=null&&(0,$6nfFC$react).createContext(null);function F(e){let t=(0,$6nfFC$useContext)(H)||{};(0,$6nfFC$useSyncRef)(t,e);let{ref:n,...r}=t;return r}function V(e,t){let{children:n,...r}=e;let o={...r,ref:t};return(0,$6nfFC$react).createElement(H.Provider,{value:o},n)}let W=null&&(0,$6nfFC$react).forwardRef(V);function U(e,t){let{focusProps:n}=(0,$6nfFC$useFocus)(e);let{keyboardProps:r}=(0,$6nfFC$useKeyboard)(e);let o=(0,$6nfFC$mergeProps)(n,r);let i=F(t);let s=e.isDisabled?{}:i;let l=(0,$6nfFC$useRef)(e.autoFocus);(0,$6nfFC$useEffect)(()=>{if(l.current&&t.current)(0,a)(t.current);l.current=false},[t]);return{focusableProps:(0,$6nfFC$mergeProps)({...o,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:undefined},s)}}function K(e,t){let n=t===null||t===void 0?void 0:t.isDisabled;let[r,o]=(0,$6nfFC$useState)(false);(0,$6nfFC$useLayoutEffect)(()=>{if((e===null||e===void 0?void 0:e.current)&&!n){let t=()=>{if(e.current){let t=(0,O)(e.current,{tabbable:true});o(!!t.nextNode())}};t();let n=new MutationObserver(t);n.observe(e.current,{subtree:true,childList:true,attributes:true,attributeFilter:["tabIndex","disabled"]});return()=>{n.disconnect()}}});return n?false:r}},4689:function(e,t,n){"use strict";n.d(t,{Jz:function(){return et},E:function(){return ee},KK:function(){return L},mG:function(){return ea},L_:function(){return es},XI:function(){return eh},TA:function(){return eb},r7:function(){return S}});var r=n(90696);var o=n(66204);function i(e,t){if(t.get)return t.get.call(e);return t.value};function a(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)};function s(e,t){var n=a(e,t,"get");return i(e,n)};function l(e,t){if(t.has(e)){throw new TypeError("Cannot initialize the same private elements twice on an object")}};function u(e,t,n){l(e,t);t.set(e,n)};function c(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable){throw new TypeError("attempted to set read only private field")}t.value=n}};function f(e,t,n){var r=a(e,t,"set");c(e,r,n);return n};let h="default";let p="";let g=new WeakMap;function v(e){if((0,r.gn)()){if(h==="default"){p=document.documentElement.style.webkitUserSelect;document.documentElement.style.webkitUserSelect="none"}h="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){g.set(e,e.style.userSelect);e.style.userSelect="none"}}function m(e){if((0,r.gn)()){if(h!=="disabled")return;h="restoring";setTimeout(()=>{(0,r.QB)(()=>{if(h==="restoring"){if(document.documentElement.style.webkitUserSelect==="none")document.documentElement.style.webkitUserSelect=p||"";p="";h="default"}})},300)}else if(e instanceof HTMLElement||e instanceof SVGElement){if(e&&g.has(e)){let t=g.get(e);if(e.style.userSelect==="none")e.style.userSelect=t;if(e.getAttribute("style")==="")e.removeAttribute("style");g.delete(e)}}}const y=(0,o).createContext(null);y.displayName="PressResponderContext";function w(e){let t=(0,o.useContext)((0,y));if(t){let{register:n,...o}=t;e=(0,r.dG)(o,e);n()}(0,r.lE)(t,e.ref);return e}var x=new WeakMap;class b{continuePropagation(){(0,f)(this,x,false)}get shouldStopPropagation(){return(0,s)(this,x)}constructor(e,t,n){(0,u)(this,x,{writable:true,value:void 0});(0,f)(this,x,true);this.type=e;this.pointerType=t;this.target=n.currentTarget;this.shiftKey=n.shiftKey;this.metaKey=n.metaKey;this.ctrlKey=n.ctrlKey;this.altKey=n.altKey}}function S(e){let{onPress:t,onPressChange:n,onPressStart:i,onPressEnd:a,onPressUp:s,isDisabled:l,isPressed:u,preventFocusOnPress:c,shouldCancelOnPointerExit:f,allowTextSelectionOnPress:h,ref:p,...g}=w(e);let[y,x]=(0,o.useState)(false);let S=(0,o.useRef)({isPressed:false,ignoreEmulatedMouseEvents:false,ignoreClickAfterPress:false,didFirePressStart:false,activePointerId:null,target:null,isOverTarget:false,pointerType:null});let{addGlobalListener:_,removeAllGlobalListeners:I}=(0,r.xi)();let O=(0,r.iW)((e,t)=>{let r=S.current;if(l||r.didFirePressStart)return;let o=true;if(i){let n=new b("pressstart",t,e);i(n);o=n.shouldStopPropagation}if(n)n(true);r.didFirePressStart=true;x(true);return o});let A=(0,r.iW)((e,r,o=true)=>{let i=S.current;if(!i.didFirePressStart)return;i.ignoreClickAfterPress=true;i.didFirePressStart=false;let s=true;if(a){let t=new b("pressend",r,e);a(t);s=t.shouldStopPropagation}if(n)n(false);x(false);if(t&&o&&!l){let n=new b("press",r,e);t(n);s&&(s=n.shouldStopPropagation)}return s});let R=(0,r.iW)((e,t)=>{if(l)return;if(s){let n=new b("pressup",t,e);s(n);return n.shouldStopPropagation}return true});let Z=(0,r.iW)(e=>{let t=S.current;if(t.isPressed){if(t.isOverTarget)A(E(t.target,e),t.pointerType,false);t.isPressed=false;t.isOverTarget=false;t.activePointerId=null;t.pointerType=null;I();if(!h)(0,m)(t.target)}});let z=(0,r.iW)(e=>{if(f)Z(e)});let N=(0,o.useMemo)(()=>{let e=S.current;let t={onKeyDown(t){if(j(t.nativeEvent,t.currentTarget)&&t.currentTarget.contains(t.target)){if(P(t.target,t.key))t.preventDefault();let r=true;if(!e.isPressed&&!t.repeat){e.target=t.currentTarget;e.isPressed=true;r=O(t,"keyboard");_(document,"keyup",n,false)}if(r)t.stopPropagation()}else if(t.key==="Enter"&&k(t.currentTarget))t.stopPropagation()},onKeyUp(t){if(j(t.nativeEvent,t.currentTarget)&&!t.repeat&&t.currentTarget.contains(t.target))R(E(e.target,t),"keyboard")},onClick(t){if(t&&!t.currentTarget.contains(t.target))return;if(t&&t.button===0){let n=true;if(l)t.preventDefault();if(!e.ignoreClickAfterPress&&!e.ignoreEmulatedMouseEvents&&(e.pointerType==="virtual"||(0,r.Zj)(t.nativeEvent))){if(!l&&!c)(0,r.Ao)(t.currentTarget);let e=O(t,"virtual");let o=R(t,"virtual");let i=A(t,"virtual");n=e&&o&&i}e.ignoreEmulatedMouseEvents=false;e.ignoreClickAfterPress=false;if(n)t.stopPropagation()}}};let n=t=>{if(e.isPressed&&j(t,e.target)){if(P(t.target,t.key))t.preventDefault();e.isPressed=false;let n=t.target;let r=A(E(e.target,t),"keyboard",e.target.contains(n));I();if(r)t.stopPropagation();if(e.target instanceof HTMLElement&&e.target.contains(n)&&(k(e.target)||e.target.getAttribute("role")==="link"))e.target.click()}};if(typeof PointerEvent!=="undefined"){t.onPointerDown=t=>{if(t.button!==0||!t.currentTarget.contains(t.target))return;if((0,r.cr)(t.nativeEvent)){e.pointerType="virtual";return}if(D(t.currentTarget))t.preventDefault();e.pointerType=t.pointerType;let a=true;if(!e.isPressed){e.isPressed=true;e.isOverTarget=true;e.activePointerId=t.pointerId;e.target=t.currentTarget;if(!l&&!c)(0,r.Ao)(t.currentTarget);if(!h)(0,v)(e.target);a=O(t,e.pointerType);_(document,"pointermove",n,false);_(document,"pointerup",o,false);_(document,"pointercancel",i,false)}if(a)t.stopPropagation()};t.onMouseDown=e=>{if(!e.currentTarget.contains(e.target))return;if(e.button===0){if(D(e.currentTarget))e.preventDefault();e.stopPropagation()}};t.onPointerUp=t=>{if(!t.currentTarget.contains(t.target)||e.pointerType==="virtual")return;if(t.button===0&&M(t,t.currentTarget))R(t,e.pointerType||t.pointerType)};let n=t=>{if(t.pointerId!==e.activePointerId)return;if(M(t,e.target)){if(!e.isOverTarget){e.isOverTarget=true;O(E(e.target,t),e.pointerType)}}else if(e.isOverTarget){e.isOverTarget=false;A(E(e.target,t),e.pointerType,false);z(t)}};let o=t=>{if(t.pointerId===e.activePointerId&&e.isPressed&&t.button===0){if(M(t,e.target))A(E(e.target,t),e.pointerType);else if(e.isOverTarget)A(E(e.target,t),e.pointerType,false);e.isPressed=false;e.isOverTarget=false;e.activePointerId=null;e.pointerType=null;I();if(!h)(0,m)(e.target)}};let i=e=>{Z(e)};t.onDragStart=e=>{if(!e.currentTarget.contains(e.target))return;Z(e)}}else{t.onMouseDown=t=>{if(t.button!==0||!t.currentTarget.contains(t.target))return;if(D(t.currentTarget))t.preventDefault();if(e.ignoreEmulatedMouseEvents){t.stopPropagation();return}e.isPressed=true;e.isOverTarget=true;e.target=t.currentTarget;e.pointerType=(0,r.Zj)(t.nativeEvent)?"virtual":"mouse";if(!l&&!c)(0,r.Ao)(t.currentTarget);let o=O(t,e.pointerType);if(o)t.stopPropagation();_(document,"mouseup",n,false)};t.onMouseEnter=t=>{if(!t.currentTarget.contains(t.target))return;let n=true;if(e.isPressed&&!e.ignoreEmulatedMouseEvents){e.isOverTarget=true;n=O(t,e.pointerType)}if(n)t.stopPropagation()};t.onMouseLeave=t=>{if(!t.currentTarget.contains(t.target))return;let n=true;if(e.isPressed&&!e.ignoreEmulatedMouseEvents){e.isOverTarget=false;n=A(t,e.pointerType,false);z(t)}if(n)t.stopPropagation()};t.onMouseUp=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.ignoreEmulatedMouseEvents&&t.button===0)R(t,e.pointerType)};let n=t=>{if(t.button!==0)return;e.isPressed=false;I();if(e.ignoreEmulatedMouseEvents){e.ignoreEmulatedMouseEvents=false;return}if(M(t,e.target))A(E(e.target,t),e.pointerType);else if(e.isOverTarget)A(E(e.target,t),e.pointerType,false);e.isOverTarget=false};t.onTouchStart=t=>{if(!t.currentTarget.contains(t.target))return;let n=C(t.nativeEvent);if(!n)return;e.activePointerId=n.identifier;e.ignoreEmulatedMouseEvents=true;e.isOverTarget=true;e.isPressed=true;e.target=t.currentTarget;e.pointerType="touch";if(!l&&!c)(0,r.Ao)(t.currentTarget);if(!h)(0,v)(e.target);let i=O(t,e.pointerType);if(i)t.stopPropagation();_(window,"scroll",o,true)};t.onTouchMove=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed){t.stopPropagation();return}let n=T(t.nativeEvent,e.activePointerId);let r=true;if(n&&M(n,t.currentTarget)){if(!e.isOverTarget){e.isOverTarget=true;r=O(t,e.pointerType)}}else if(e.isOverTarget){e.isOverTarget=false;r=A(t,e.pointerType,false);z(t)}if(r)t.stopPropagation()};t.onTouchEnd=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed){t.stopPropagation();return}let n=T(t.nativeEvent,e.activePointerId);let r=true;if(n&&M(n,t.currentTarget)){R(t,e.pointerType);r=A(t,e.pointerType)}else if(e.isOverTarget)r=A(t,e.pointerType,false);if(r)t.stopPropagation();e.isPressed=false;e.activePointerId=null;e.isOverTarget=false;e.ignoreEmulatedMouseEvents=true;if(!h)(0,m)(e.target);I()};t.onTouchCancel=t=>{if(!t.currentTarget.contains(t.target))return;t.stopPropagation();if(e.isPressed)Z(t)};let o=t=>{if(e.isPressed&&t.target.contains(e.target))Z({currentTarget:e.target,shiftKey:false,ctrlKey:false,metaKey:false,altKey:false})};t.onDragStart=e=>{if(!e.currentTarget.contains(e.target))return;Z(e)}}return t},[_,l,c,I,h,Z,z,A,O,R]);(0,o.useEffect)(()=>{return()=>{if(!h)(0,m)(S.current.target)}},[h]);return{isPressed:u||y,pressProps:(0,r.dG)(g,N)}}function k(e){return e.tagName==="A"&&e.hasAttribute("href")}function j(e,t){const{key:n,code:r}=e;const o=t;const i=o.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(o instanceof HTMLInputElement&&!A(o,n)||o instanceof HTMLTextAreaElement||o.isContentEditable)&&(!k(o)||i==="button"&&n!=="Enter")&&!(i==="link"&&n!=="Enter")}function C(e){const{targetTouches:t}=e;if(t.length>0)return t[0];return null}function T(e,t){const n=e.changedTouches;for(let e=0;e<n.length;e++){const r=n[e];if(r.identifier===t)return r}return null}function E(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function _(e){let t=e.width/2||e.radiusX||0;let n=e.height/2||e.radiusY||0;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function I(e,t){if(e.left>t.right||t.left>e.right)return false;if(e.top>t.bottom||t.top>e.bottom)return false;return true}function M(e,t){let n=t.getBoundingClientRect();let r=_(e);return I(n,r)}function D(e){return!(e instanceof HTMLElement)||!e.draggable}function P(e,t){if(e instanceof HTMLInputElement)return!A(e,t);if(e instanceof HTMLButtonElement)return e.type!=="submit"&&e.type!=="reset";return true}const O=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function A(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":O.has(e.type)}const R=null&&(0,$bx7SL$react).forwardRef(({children:e,...t},n)=>{let r=(0,$bx7SL$useRef)();n=n!==null&&n!==void 0?n:r;let{pressProps:o}=(0,S)({...t,ref:n});let i=(0,$bx7SL$react).Children.only(e);return(0,$bx7SL$react).cloneElement(i,{ref:n,...(0,$bx7SL$mergeProps)(i.props,o)})});const Z=null&&(0,$bx7SL$react).forwardRef(({children:e,...t},n)=>{let r=(0,$bx7SL$useRef)(false);let o=(0,$bx7SL$useContext)((0,y));let i=(0,$bx7SL$mergeProps)(o||{},{...t,ref:n||(o===null||o===void 0?void 0:o.ref),register(){r.current=true;if(o)o.register()}});(0,$bx7SL$useSyncRef)(o,n);(0,$bx7SL$useEffect)(()=>{if(!r.current){console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component.");r.current=true}},[]);return(0,$bx7SL$react).createElement((0,y).Provider,{value:i},e)});class z{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=true;this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation();this.isPropagationStopped=()=>true}isPropagationStopped(){return false}persist(){}constructor(e,t){this.nativeEvent=t;this.target=t.target;this.currentTarget=t.currentTarget;this.relatedTarget=t.relatedTarget;this.bubbles=t.bubbles;this.cancelable=t.cancelable;this.defaultPrevented=t.defaultPrevented;this.eventPhase=t.eventPhase;this.isTrusted=t.isTrusted;this.timeStamp=t.timeStamp;this.type=e}}function N(e){let t=(0,o.useRef)({isFocused:false,observer:null});(0,r.bt)(()=>{const e=t.current;return()=>{if(e.observer){e.observer.disconnect();e.observer=null}}},[]);let n=(0,r.iW)(t=>{e===null||e===void 0?void 0:e(t)});return(0,o.useCallback)(e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=true;let r=e.target;let o=e=>{t.current.isFocused=false;if(r.disabled)n(new z("blur",e));if(t.current.observer){t.current.observer.disconnect();t.current.observer=null}};r.addEventListener("focusout",o,{once:true});t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){t.current.observer.disconnect();let e=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:e}));r.dispatchEvent(new FocusEvent("focusout",{bubbles:true,relatedTarget:e}))}});t.current.observer.observe(r,{attributes:true,attributeFilter:["disabled"]})}},[n])}function L(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const a=(0,o.useCallback)(e=>{if(e.target===e.currentTarget){if(r)r(e);if(i)i(false);return true}},[r,i]);const s=(0,N)(a);const l=(0,o.useCallback)(e=>{if(e.target===e.currentTarget&&document.activeElement===e.target){if(n)n(e);if(i)i(true);s(e)}},[i,n,s]);return{focusProps:{onFocus:!t&&(n||i||r)?l:undefined,onBlur:!t&&(r||i)?a:undefined}}}let B=null;let H=new Set;let F=false;let V=false;let W=false;const U={Tab:true,Escape:true};function K(e,t){for(let n of H)n(e,t)}function $(e){return!(e.metaKey||!(0,r.V5)()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function q(e){V=true;if($(e)){B="keyboard";K("keyboard",e)}}function Y(e){B="pointer";if(e.type==="mousedown"||e.type==="pointerdown"){V=true;K("pointer",e)}}function G(e){if((0,r.Zj)(e)){V=true;B="virtual"}}function X(e){if(e.target===window||e.target===document)return;if(!V&&!W){B="virtual";K("virtual",e)}V=false;W=false}function Q(){V=false;W=true}function J(){if(typeof window==="undefined"||F)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){V=true;e.apply(this,arguments)};document.addEventListener("keydown",q,true);document.addEventListener("keyup",q,true);document.addEventListener("click",G,true);window.addEventListener("focus",X,true);window.addEventListener("blur",Q,false);if(typeof PointerEvent!=="undefined"){document.addEventListener("pointerdown",Y,true);document.addEventListener("pointermove",Y,true);document.addEventListener("pointerup",Y,true)}else{document.addEventListener("mousedown",Y,true);document.addEventListener("mousemove",Y,true);document.addEventListener("mouseup",Y,true)}F=true}if(typeof document!=="undefined"){if(document.readyState!=="loading")J();else document.addEventListener("DOMContentLoaded",J)}function ee(){return B!=="pointer"}function et(){return B}function en(e){B=e;K(e,null)}function er(){J();let[e,t]=(0,$bx7SL$useState)(B);(0,$bx7SL$useEffect)(()=>{let e=()=>{t(B)};H.add(e);return()=>{H.delete(e)}},[]);return(0,$bx7SL$useIsSSR)()?null:e}function eo(e,t,n){return!(e&&t==="keyboard"&&n instanceof KeyboardEvent&&!U[n.key])}function ei(e={}){let{isTextInput:t,autoFocus:n}=e;let[r,o]=(0,$bx7SL$useState)(n||ee());ea(e=>{o(e)},[t],{isTextInput:t});return{isFocusVisible:r}}function ea(e,t,n){J();(0,o.useEffect)(()=>{let t=(t,r)=>{if(!eo(n===null||n===void 0?void 0:n.isTextInput,t,r))return;e(ee())};H.add(t);return()=>{H.delete(t)}},t)}function es(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e;let a=(0,o.useRef)({isFocusWithin:false});let s=(0,o.useCallback)(e=>{if(a.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)){a.current.isFocusWithin=false;if(n)n(e);if(i)i(false)}},[n,i,a]);let l=(0,N)(s);let u=(0,o.useCallback)(e=>{if(!a.current.isFocusWithin&&document.activeElement===e.target){if(r)r(e);if(i)i(true);a.current.isFocusWithin=true;l(e)}},[r,i,l]);if(t)return{focusWithinProps:{onFocus:null,onBlur:null}};return{focusWithinProps:{onFocus:u,onBlur:s}}}let el=false;let eu=0;function ec(){el=true;setTimeout(()=>{el=false},50)}function ed(e){if(e.pointerType==="touch")ec()}function ef(){if(typeof document==="undefined")return;if(typeof PointerEvent!=="undefined")document.addEventListener("pointerup",ed);else document.addEventListener("touchend",ec);eu++;return()=>{eu--;if(eu>0)return;if(typeof PointerEvent!=="undefined")document.removeEventListener("pointerup",ed);else document.removeEventListener("touchend",ec)}}function eh(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e;let[a,s]=(0,o.useState)(false);let l=(0,o.useRef)({isHovered:false,ignoreEmulatedMouseEvents:false,pointerType:"",target:null}).current;(0,o.useEffect)(ef,[]);let{hoverProps:u,triggerHoverEnd:c}=(0,o.useMemo)(()=>{let e=(e,r)=>{l.pointerType=r;if(i||r==="touch"||l.isHovered||!e.currentTarget.contains(e.target))return;l.isHovered=true;let o=e.currentTarget;l.target=o;if(t)t({type:"hoverstart",target:o,pointerType:r});if(n)n(true);s(true)};let o=(e,t)=>{l.pointerType="";l.target=null;if(t==="touch"||!l.isHovered)return;l.isHovered=false;let o=e.currentTarget;if(r)r({type:"hoverend",target:o,pointerType:t});if(n)n(false);s(false)};let a={};if(typeof PointerEvent!=="undefined"){a.onPointerEnter=t=>{if(el&&t.pointerType==="mouse")return;e(t,t.pointerType)};a.onPointerLeave=e=>{if(!i&&e.currentTarget.contains(e.target))o(e,e.pointerType)}}else{a.onTouchStart=()=>{l.ignoreEmulatedMouseEvents=true};a.onMouseEnter=t=>{if(!l.ignoreEmulatedMouseEvents&&!el)e(t,"mouse");l.ignoreEmulatedMouseEvents=false};a.onMouseLeave=e=>{if(!i&&e.currentTarget.contains(e.target))o(e,"mouse")}}return{hoverProps:a,triggerHoverEnd:o}},[t,n,r,i,l]);(0,o.useEffect)(()=>{if(i)c({currentTarget:l.target},l.pointerType)},[i]);return{hoverProps:u,isHovered:a}}function ep(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=e;let i=(0,$bx7SL$useRef)({isPointerDown:false,ignoreEmulatedMouseEvents:false});let a=(0,$bx7SL$useEffectEvent)(e=>{if(n&&eg(e,t)){if(o)o(e);i.current.isPointerDown=true}});let s=(0,$bx7SL$useEffectEvent)(e=>{if(n)n(e)});(0,$bx7SL$useEffect)(()=>{let e=i.current;if(r)return;if(typeof PointerEvent!=="undefined"){let n=n=>{if(e.isPointerDown&&eg(n,t))s(n);e.isPointerDown=false};document.addEventListener("pointerdown",a,true);document.addEventListener("pointerup",n,true);return()=>{document.removeEventListener("pointerdown",a,true);document.removeEventListener("pointerup",n,true)}}else{let n=n=>{if(e.ignoreEmulatedMouseEvents)e.ignoreEmulatedMouseEvents=false;else if(e.isPointerDown&&eg(n,t))s(n);e.isPointerDown=false};let r=n=>{e.ignoreEmulatedMouseEvents=true;if(e.isPointerDown&&eg(n,t))s(n);e.isPointerDown=false};document.addEventListener("mousedown",a,true);document.addEventListener("mouseup",n,true);document.addEventListener("touchstart",a,true);document.addEventListener("touchend",r,true);return()=>{document.removeEventListener("mousedown",a,true);document.removeEventListener("mouseup",n,true);document.removeEventListener("touchstart",a,true);document.removeEventListener("touchend",r,true)}}},[t,r,a,s])}function eg(e,t){if(e.button>0)return false;if(e.target){const t=e.target.ownerDocument;if(!t||!t.documentElement.contains(e.target))return false;if(e.target.closest("[data-react-aria-top-layer]"))return false}return t.current&&!t.current.contains(e.target)}function ev(e){if(!e)return;let t=true;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=false}};e(r);if(t)n.stopPropagation()}}function em(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:(0,ev)(e.onKeyDown),onKeyUp:(0,ev)(e.onKeyUp)}}}function ey(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e;let o=(0,$bx7SL$useRef)({didMove:false,lastPosition:null,id:null});let{addGlobalListener:i,removeGlobalListener:a}=(0,$bx7SL$useGlobalListeners)();let s=(0,$bx7SL$useEffectEvent)((e,r,i,a)=>{if(i===0&&a===0)return;if(!o.current.didMove){o.current.didMove=true;t===null||t===void 0?void 0:t({type:"movestart",pointerType:r,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})}n({type:"move",pointerType:r,deltaX:i,deltaY:a,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})});let l=(0,$bx7SL$useEffectEvent)((e,t)=>{(0,m)();if(o.current.didMove)r===null||r===void 0?void 0:r({type:"moveend",pointerType:t,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})});let u=(0,$bx7SL$useMemo)(()=>{let e={};let t=()=>{(0,v)();o.current.didMove=false};if(typeof PointerEvent==="undefined"){let n=e=>{if(e.button===0){s(e,"mouse",e.pageX-o.current.lastPosition.pageX,e.pageY-o.current.lastPosition.pageY);o.current.lastPosition={pageX:e.pageX,pageY:e.pageY}}};let r=e=>{if(e.button===0){l(e,"mouse");a(window,"mousemove",n,false);a(window,"mouseup",r,false)}};e.onMouseDown=e=>{if(e.button===0){t();e.stopPropagation();e.preventDefault();o.current.lastPosition={pageX:e.pageX,pageY:e.pageY};i(window,"mousemove",n,false);i(window,"mouseup",r,false)}};let u=e=>{let t=[...e.changedTouches].findIndex(({identifier:e})=>e===o.current.id);if(t>=0){let{pageX:n,pageY:r}=e.changedTouches[t];s(e,"touch",n-o.current.lastPosition.pageX,r-o.current.lastPosition.pageY);o.current.lastPosition={pageX:n,pageY:r}}};let c=e=>{let t=[...e.changedTouches].findIndex(({identifier:e})=>e===o.current.id);if(t>=0){l(e,"touch");o.current.id=null;a(window,"touchmove",u);a(window,"touchend",c);a(window,"touchcancel",c)}};e.onTouchStart=e=>{if(e.changedTouches.length===0||o.current.id!=null)return;let{pageX:n,pageY:r,identifier:a}=e.changedTouches[0];t();e.stopPropagation();e.preventDefault();o.current.lastPosition={pageX:n,pageY:r};o.current.id=a;i(window,"touchmove",u,false);i(window,"touchend",c,false);i(window,"touchcancel",c,false)}}else{let n=e=>{if(e.pointerId===o.current.id){let t=e.pointerType||"mouse";s(e,t,e.pageX-o.current.lastPosition.pageX,e.pageY-o.current.lastPosition.pageY);o.current.lastPosition={pageX:e.pageX,pageY:e.pageY}}};let r=e=>{if(e.pointerId===o.current.id){let t=e.pointerType||"mouse";l(e,t);o.current.id=null;a(window,"pointermove",n,false);a(window,"pointerup",r,false);a(window,"pointercancel",r,false)}};e.onPointerDown=e=>{if(e.button===0&&o.current.id==null){t();e.stopPropagation();e.preventDefault();o.current.lastPosition={pageX:e.pageX,pageY:e.pageY};o.current.id=e.pointerId;i(window,"pointermove",n,false);i(window,"pointerup",r,false);i(window,"pointercancel",r,false)}}}let n=(e,n,r)=>{t();s(e,"keyboard",n,r);l(e,"keyboard")};e.onKeyDown=e=>{switch(e.key){case"Left":case"ArrowLeft":e.preventDefault();e.stopPropagation();n(e,-1,0);break;case"Right":case"ArrowRight":e.preventDefault();e.stopPropagation();n(e,1,0);break;case"Up":case"ArrowUp":e.preventDefault();e.stopPropagation();n(e,0,-1);break;case"Down":case"ArrowDown":e.preventDefault();e.stopPropagation();n(e,0,1);break}};return e},[o,i,a,s,l]);return{moveProps:u}}function ew(e,t){let{onScroll:n,isDisabled:r}=e;let o=(0,$bx7SL$useCallback)(e=>{if(e.ctrlKey)return;e.preventDefault();e.stopPropagation();if(n)n({deltaX:e.deltaX,deltaY:e.deltaY})},[n]);(0,$bx7SL$useEvent)(t,"wheel",r?null:o)}const ex=500;function eb(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:i,onLongPress:a,threshold:s=ex,accessibilityDescription:l}=e;const u=(0,o.useRef)(null);let{addGlobalListener:c,removeGlobalListener:f}=(0,r.xi)();let{pressProps:h}=(0,S)({isDisabled:t,onPressStart(e){e.continuePropagation();if(e.pointerType==="mouse"||e.pointerType==="touch"){if(n)n({...e,type:"longpressstart"});u.current=setTimeout(()=>{e.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:true}));if(a)a({...e,type:"longpress"});u.current=null},s);if(e.pointerType==="touch"){let t=e=>{e.preventDefault()};c(e.target,"contextmenu",t,{once:true});c(window,"pointerup",()=>{setTimeout(()=>{f(e.target,"contextmenu",t)},30)},{once:true})}}},onPressEnd(e){if(u.current)clearTimeout(u.current);if(i&&(e.pointerType==="mouse"||e.pointerType==="touch"))i({...e,type:"longpressend"})}});let p=(0,r.PK)(a&&!t?l:null);return{longPressProps:(0,r.dG)(h,p)}}},6860:function(e,t,n){"use strict";n.d(t,{Av:function(){return w},gP:function(){return g}});var r=n(66204);const o={prefix:String(Math.round(Math.random()*1e10)),current:0,isSSR:false};const i=(0,r).createContext(o);function a(e){let t=(0,$73SJx$useContext)(i);let n=f(t===o);let[r,a]=(0,$73SJx$useState)(true);let s=(0,$73SJx$useMemo)(()=>({prefix:t===o?"":`${t.prefix}-${n}`,current:0,isSSR:r}),[t,n,r]);if(typeof document!=="undefined")(0,$73SJx$useLayoutEffect)(()=>{a(false)},[]);return(0,$73SJx$react).createElement(i.Provider,{value:s},e.children)}let s=false;function l(e){if(typeof(0,$73SJx$react)["useId"]==="function"){if(true&&!s){console.warn("In React 18, SSRProvider is not necessary and is a noop. You can remove it from your app.");s=true}return(0,$73SJx$react).createElement((0,$73SJx$react).Fragment,null,e.children)}return(0,$73SJx$react).createElement(a,e)}let u=Boolean(typeof window!=="undefined"&&window.document&&window.document.createElement);let c=new WeakMap;function f(e=false){let t=(0,r.useContext)(i);let n=(0,r.useRef)(null);if(n.current===null&&!e){var o,a;let e=(o=(0,r).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0?void 0:(a=o.ReactCurrentOwner)===null||a===void 0?void 0:a.current;if(e){let n=c.get(e);if(n==null)c.set(e,{id:t.current,state:e.memoizedState});else if(e.memoizedState!==n.state){t.current=n.id;c.delete(e)}}n.current=++t.current}return n.current}function h(e){let t=(0,r.useContext)(i);if(t===o&&!u)console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=f(!!e);let a=t===o&&"production"==="test"?0:`react-aria${t.prefix}`;return e||`${a}-${n}`}function p(e){let t=(0,r).useId();let[n]=(0,r.useState)(w());let i=n||"production"==="test"?"react-aria":`react-aria${o.prefix}`;return e||`${i}-${t}`}const g=typeof(0,r)["useId"]==="function"?p:h;function v(){return false}function m(){return true}function y(e){return()=>{}}function w(){if(typeof(0,r)["useSyncExternalStore"]==="function")return(0,r)["useSyncExternalStore"](y,v,m);let e=(0,r.useContext)(i);return e.isSSR}},90696:function(e,t,n){"use strict";n.d(t,{zL:function(){return b},Ao:function(){return S},ad:function(){return et},gn:function(){return ee},V5:function(){return X},a9:function(){return F},Zj:function(){return ec},cr:function(){return ed},Pf:function(){return en},dG:function(){return v},QB:function(){return D},zT:function(){return es},Gt:function(){return eu},PK:function(){return q},iW:function(){return ei},zX:function(){return ea},xi:function(){return A},Me:function(){return f},bE:function(){return R},bt:function(){return l},mp:function(){return p},lE:function(){return B},nP:function(){return W}});var r=n(66204);var o=n(6860);function i(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=i(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function a(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=i(e))&&(r&&(r+=" "),r+=t);return r}var s=a;const l=typeof document!=="undefined"?(0,r).useLayoutEffect:()=>{};function u(e){let[t,n]=(0,r.useState)(e);let o=(0,r.useRef)(t);let i=(0,r.useRef)(null);let a=(0,r.useCallback)(()=>{let e=i.current.next();while(!e.done&&o.current===e.value)e=i.current.next();if(e.done){i.current=null;return}n(e.value);o.current=e.value},[n,o,i]);(0,l)(()=>{if(i.current)a()});let s=(0,r.useCallback)(e=>{i.current=e(o.current);a()},[a,i,o]);return[t,s]}let c=new Map;function f(e){let[t,n]=(0,r.useState)(e);let i=(0,r.useRef)(null);let a=(0,o.gP)(t);let s=(0,r.useCallback)(e=>{i.current=e},[]);c.set(a,s);(0,l)(()=>{let e=a;return()=>{c.delete(e)}},[a]);(0,r.useEffect)(()=>{let e=i.current;if(e){i.current=null;n(e)}});return a}function h(e,t){if(e===t)return e;let n=c.get(e);if(n){n(t);return t}let r=c.get(t);if(r){r(e);return e}return t}function p(e=[]){let t=f();let[n,o]=(0,u)(t);let i=(0,r.useCallback)(()=>{o(function*(){yield t;yield document.getElementById(t)?t:undefined})},[t,o]);(0,l)(i,[t,i,...e]);return n}function g(...e){return(...t)=>{for(let n of e)if(typeof n==="function")n(...t)}}function v(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e];let o=r[e];if(typeof n==="function"&&typeof o==="function"&&e[0]==="o"&&e[1]==="n"&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90)t[e]=(0,g)(n,o);else if((e==="className"||e==="UNSAFE_className")&&typeof n==="string"&&typeof o==="string")t[e]=(0,s)(n,o);else if(e==="id"&&n&&o)t.id=(0,h)(n,o);else t[e]=o!==undefined?o:n}}return t}function m(...e){if(e.length===1)return e[0];return t=>{for(let n of e){if(typeof n==="function")n(t);else if(n!=null)n.current=t}}}const y=new Set(["id"]);const w=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]);const x=/^(data-.*)$/;function b(e,t={}){let{labelable:n,propNames:r}=t;let o={};for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&(y.has(t)||n&&w.has(t)||(r===null||r===void 0?void 0:r.has(t))||x.test(t)))o[t]=e[t];return o}function S(e){if(j())e.focus({preventScroll:true});else{let t=C(e);e.focus();T(t)}}let k=null;function j(){if(k==null){k=false;try{var e=document.createElement("div");e.focus({get preventScroll(){k=true;return true}})}catch(e){}}return k}function C(e){var t=e.parentNode;var n=[];var r=document.scrollingElement||document.documentElement;while(t instanceof HTMLElement&&t!==r){if(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft});t=t.parentNode}if(r instanceof HTMLElement)n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft});return n}function T(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e){t.scrollTop=n;t.scrollLeft=r}}function E(e,t,n="horizontal"){let r=e.getBoundingClientRect();if(t)return n==="horizontal"?r.right:r.bottom;return n==="horizontal"?r.left:r.top}let _=new Map;let I=new Set;function M(){if(typeof window==="undefined")return;let e=e=>{let n=_.get(e.target);if(!n){n=new Set;_.set(e.target,n);e.target.addEventListener("transitioncancel",t)}n.add(e.propertyName)};let t=e=>{let n=_.get(e.target);if(!n)return;n.delete(e.propertyName);if(n.size===0){e.target.removeEventListener("transitioncancel",t);_.delete(e.target)}if(_.size===0){for(let e of I)e();I.clear()}};document.body.addEventListener("transitionrun",e);document.body.addEventListener("transitionend",t)}if(typeof document!=="undefined"){if(document.readyState!=="loading")M();else document.addEventListener("DOMContentLoaded",M)}function D(e){requestAnimationFrame(()=>{if(_.size===0)e();else I.add(e)})}const P=null&&[];function O(e){console.warn("useDrag1D is deprecated, please use `useMove` instead https://react-spectrum.adobe.com/react-aria/useMove.html");let{containerRef:t,reverse:n,orientation:r,onHover:o,onDrag:i,onPositionChange:a,onIncrement:s,onDecrement:l,onIncrementToMax:u,onDecrementToMin:c,onCollapseToggle:f}=e;let h=e=>r==="horizontal"?e.clientX:e.clientY;let p=e=>{let o=(0,E)(t.current,n,r);let i=h(e);let a=n?o-i:i-o;return a};let g=(0,$12uGp$useRef)(false);let v=(0,$12uGp$useRef)(0);let m=(0,$12uGp$useRef)({onPositionChange:a,onDrag:i});m.current.onDrag=i;m.current.onPositionChange=a;let y=e=>{e.preventDefault();let t=p(e);if(!g.current){g.current=true;if(m.current.onDrag)m.current.onDrag(true);if(m.current.onPositionChange)m.current.onPositionChange(t)}if(v.current===t)return;v.current=t;if(a)a(t)};let w=e=>{const t=e.target;g.current=false;let n=p(e);if(m.current.onDrag)m.current.onDrag(false);if(m.current.onPositionChange)m.current.onPositionChange(n);P.splice(P.indexOf(t),1);window.removeEventListener("mouseup",w,false);window.removeEventListener("mousemove",y,false)};let x=e=>{const t=e.currentTarget;if(P.some(e=>t.contains(e)))return;P.push(t);window.addEventListener("mousemove",y,false);window.addEventListener("mouseup",w,false)};let b=()=>{if(o)o(true)};let S=()=>{if(o)o(false)};let k=e=>{switch(e.key){case"Left":case"ArrowLeft":if(r==="horizontal"){e.preventDefault();if(l&&!n)l();else if(s&&n)s()}break;case"Up":case"ArrowUp":if(r==="vertical"){e.preventDefault();if(l&&!n)l();else if(s&&n)s()}break;case"Right":case"ArrowRight":if(r==="horizontal"){e.preventDefault();if(s&&!n)s();else if(l&&n)l()}break;case"Down":case"ArrowDown":if(r==="vertical"){e.preventDefault();if(s&&!n)s();else if(l&&n)l()}break;case"Home":e.preventDefault();if(c)c();break;case"End":e.preventDefault();if(u)u();break;case"Enter":e.preventDefault();if(f)f();break}};return{onMouseDown:x,onMouseEnter:b,onMouseOut:S,onKeyDown:k}}function A(){let e=(0,r.useRef)(new Map);let t=(0,r.useCallback)((t,n,r,o)=>{let i=(o===null||o===void 0?void 0:o.once)?(...t)=>{e.current.delete(r);r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:i,options:o});t.addEventListener(n,r,o)},[]);let n=(0,r.useCallback)((t,n,r,o)=>{var i;let a=((i=e.current.get(r))===null||i===void 0?void 0:i.fn)||r;t.removeEventListener(n,a,o);e.current.delete(r)},[]);let o=(0,r.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);(0,r.useEffect)(()=>{return o},[o]);return{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:o}}function R(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;n=(0,f)(n);if(o&&r){let e=new Set([n,...o.trim().split(/\s+/)]);o=[...e].join(" ")}else if(o)o=o.trim().split(/\s+/).join(" ");if(!r&&!o&&t)r=t;return{id:n,"aria-label":r,"aria-labelledby":o}}function Z(e){const t=(0,$12uGp$useRef)();return(0,$12uGp$useMemo)(()=>({get current(){return t.current},set current(value){t.current=value;if(typeof e==="function")e(value);else if(e)e.current=value}}),[e])}function z(e,t){const n=(0,$12uGp$useRef)(true);const r=(0,$12uGp$useRef)(null);(0,$12uGp$useEffect)(()=>{n.current=true;return()=>{n.current=false}},[]);(0,$12uGp$useEffect)(()=>{if(n.current)n.current=false;else if(!r.current||t.some((e,t)=>!Object.is(e,r[t])))e();r.current=t},t)}function N(){return typeof window.ResizeObserver!=="undefined"}function L(e){const{ref:t,onResize:n}=e;(0,$12uGp$useEffect)(()=>{let e=t===null||t===void 0?void 0:t.current;if(!e)return;if(!N()){window.addEventListener("resize",n,false);return()=>{window.removeEventListener("resize",n,false)}}else{const t=new window.ResizeObserver(e=>{if(!e.length)return;n()});t.observe(e);return()=>{if(e)t.unobserve(e)}}},[n,t])}function B(e,t){(0,l)(()=>{if(e&&e.ref&&t){e.ref.current=t.current;return()=>{e.ref.current=null}}},[e,t])}function H(e){if(F(e))e=e.parentElement;while(e&&!F(e))e=e.parentElement;return e||document.scrollingElement||document.documentElement}function F(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}let V=typeof document!=="undefined"&&window.visualViewport;function W(){let[e,t]=(0,r.useState)(()=>U());(0,r.useEffect)(()=>{let e=()=>{t(e=>{let t=U();if(t.width===e.width&&t.height===e.height)return e;return t})};if(!V)window.addEventListener("resize",e);else V.addEventListener("resize",e);return()=>{if(!V)window.removeEventListener("resize",e);else V.removeEventListener("resize",e)}},[]);return e}function U(){return{width:(V===null||V===void 0?void 0:V.width)||window.innerWidth,height:(V===null||V===void 0?void 0:V.height)||window.innerHeight}}let K=0;const $=new Map;function q(e){let[t,n]=(0,r.useState)(undefined);(0,l)(()=>{if(!e)return;let t=$.get(e);if(!t){let r=`react-aria-description-${K++}`;n(r);let o=document.createElement("div");o.id=r;o.style.display="none";o.textContent=e;document.body.appendChild(o);t={refCount:0,element:o};$.set(e,t)}else n(t.element.id);t.refCount++;return()=>{if(--t.refCount===0){t.element.remove();$.delete(e)}}},[e]);return{"aria-describedby":e?t:undefined}}function Y(e){var t;if(typeof window==="undefined"||window.navigator==null)return false;return((t=window.navigator["userAgentData"])===null||t===void 0?void 0:t.brands.some(t=>e.test(t.brand)))||e.test(window.navigator.userAgent)}function G(e){var t;return typeof window!=="undefined"&&window.navigator!=null?e.test(((t=window.navigator["userAgentData"])===null||t===void 0?void 0:t.platform)||window.navigator.platform):false}function X(){return G(/^Mac/i)}function Q(){return G(/^iPhone/i)}function J(){return G(/^iPad/i)||X()&&navigator.maxTouchPoints>1}function ee(){return Q()||J()}function et(){return X()||ee()}function en(){return Y(/AppleWebKit/i)&&!er()}function er(){return Y(/Chrome/i)}function eo(){return Y(/Android/i)}function ei(e){const t=(0,r.useRef)(null);(0,l)(()=>{t.current=e},[e]);return(0,r.useCallback)((...e)=>{const n=t.current;return n(...e)},[])}function ea(e,t,n,o){let i=(0,ei)(n);let a=n==null;(0,r.useEffect)(()=>{if(a)return;let n=e.current;n.addEventListener(t,i,o);return()=>{n.removeEventListener(t,i,o)}},[e,t,o,a,i])}function es(e,t){let n=el(e,t,"left");let r=el(e,t,"top");let o=t.offsetWidth;let i=t.offsetHeight;let a=e.scrollLeft;let s=e.scrollTop;let{borderTopWidth:l,borderLeftWidth:u}=getComputedStyle(e);let c=e.scrollLeft+parseInt(u,10);let f=e.scrollTop+parseInt(l,10);let h=c+e.clientWidth;let p=f+e.clientHeight;if(n<=a)a=n-parseInt(u,10);else if(n+o>h)a+=n+o-h;if(r<=f)s=r-parseInt(l,10);else if(r+i>p)s+=r+i-p;e.scrollLeft=a;e.scrollTop=s}function el(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let o=0;while(t.offsetParent){o+=t[r];if(t.offsetParent===e)break;else if(t.offsetParent.contains(e)){o-=e[r];break}t=t.offsetParent}return o}function eu(e,t){if(document.contains(e)){let a=document.scrollingElement||document.documentElement;let s=window.getComputedStyle(a).overflow==="hidden";if(!s){var n;let{left:a,top:s}=e.getBoundingClientRect();e===null||e===void 0?void 0:(n=e.scrollIntoView)===null||n===void 0?void 0:n.call(e,{block:"nearest"});let{left:l,top:u}=e.getBoundingClientRect();if(Math.abs(a-l)>1||Math.abs(s-u)>1){var r,o,i;t===null||t===void 0?void 0:(r=t.containingElement)===null||r===void 0?void 0:(o=r.scrollIntoView)===null||o===void 0?void 0:o.call(r,{block:"center",inline:"center"});(i=e.scrollIntoView)===null||i===void 0?void 0:i.call(e,{block:"nearest"})}}else{let t=(0,H)(e);while(e&&t&&e!==a&&t!==a){es(t,e);e=t;t=(0,H)(e)}}}}function ec(e){if(e.mozInputSource===0&&e.isTrusted)return true;if((0,eo)()&&e.pointerType)return e.type==="click"&&e.buttons===1;return e.detail===0&&!e.pointerType}function ed(e){return e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function ef(e,t){let n=(0,$12uGp$useRef)(null);if(e&&n.current&&t(e,n.current))e=n.current;n.current=e;return e}function eh(e,t,n){let r=(0,$12uGp$useRef)(t);let o=(0,ei)(()=>{if(n)n(r.current)});(0,$12uGp$useEffect)(()=>{var t;let n=e===null||e===void 0?void 0:(t=e.current)===null||t===void 0?void 0:t.form;n===null||n===void 0?void 0:n.addEventListener("reset",o);return()=>{n===null||n===void 0?void 0:n.removeEventListener("reset",o)}},[e,o])}},21251:function(e,t,n){"use strict";n.d(t,{k:function(){return r}});function r(e,t,...n){if(o()){if(t===undefined){throw new Error("invariant requires an error message argument")}}if(!e){let e;if(t===undefined){e=new Error("Minified exception occurred; use the non-minified dev environment "+"for the full error message and additional helpful warnings.")}else{let r=0;e=new Error(t.replace(/%s/g,function(){return n[r++]}));e.name="Invariant Violation"}e.framesToPop=1;throw e}}function o(){return typeof process!=="undefined"&&"production"==="production"}},13577:function(e,t,n){"use strict";n.d(t,{L:function(){return o}});var r=n(66204);const o=(0,r.createContext)({dragDropManager:undefined})}};var t={};function n(r){var o=t[r];if(o!==undefined){return o.exports}var i=t[r]={id:r,loaded:false,exports:{}};e[r].call(i.exports,i,i.exports,n);i.loaded=true;return i.exports}n.m=e;!function(){n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};n.d(t,{a:t});return t}}();!function(){var e=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};var t;n.t=function(r,o){if(o&1)r=this(r);if(o&8)return r;if(typeof r==="object"&&r){if(o&4&&r.__esModule)return r;if(o&16&&typeof r.then==="function")return r}var i=Object.create(null);n.r(i);var a={};t=t||[null,e({}),e([]),e(e)];for(var s=o&2&&r;typeof s=="object"&&!~t.indexOf(s);s=e(s)){Object.getOwnPropertyNames(s).forEach(function(e){a[e]=function(){return r[e]}})}a["default"]=function(){return r};n.d(i,a);return i}}();!function(){n.d=function(e,t){for(var r in t){if(n.o(t,r)&&!n.o(e,r)){Object.defineProperty(e,r,{enumerable:true,get:t[r]})}}}}();!function(){n.f={};n.e=function(e){return Promise.all(Object.keys(n.f).reduce(function(t,r){n.f[r](e,t);return t},[]))}}();!function(){n.u=function(e){return"static/js/"+(({"162":"wide-components","447":"narrow-components","737":"resize-observer-polyfill","992":"reports"})[e]||e)+"."+({"162":"eb0a5f91","226":"8132a539","231":"370f17f8","444":"301f7ece","447":"b0c96dd8","473":"02c273e8","665":"ae7f6f2a","737":"98a18736","992":"dec86016"})[e]+".chunk.js"}}();!function(){n.miniCssF=function(e){return undefined}}();!function(){n.g=function(){if(typeof globalThis==="object")return globalThis;try{return this||new Function("return this")()}catch(e){if(typeof window==="object")return window}}()}();!function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}();!function(){var e={};var t="@actual-app/web:";n.l=function(r,o,i,a){if(e[r]){e[r].push(o);return}var s,l;if(i!==undefined){var u=document.getElementsByTagName("script");for(var c=0;c<u.length;c++){var f=u[c];if(f.getAttribute("src")==r||f.getAttribute("data-webpack")==t+i){s=f;break}}}if(!s){l=true;s=document.createElement("script");s.charset="utf-8";s.timeout=120;if(n.nc){s.setAttribute("nonce",n.nc)}s.setAttribute("data-webpack",t+i);s.src=r}e[r]=[o];var h=function(t,n){s.onerror=s.onload=null;clearTimeout(p);var o=e[r];delete e[r];s.parentNode&&s.parentNode.removeChild(s);o&&o.forEach(function(e){return e(n)});if(t)return t(n)};var p=setTimeout(h.bind(null,undefined,{type:"timeout",target:s}),12e4);s.onerror=h.bind(null,s.onerror);s.onload=h.bind(null,s.onload);l&&document.head.appendChild(s)}}();!function(){n.r=function(e){if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}}();!function(){n.nmd=function(e){e.paths=[];if(!e.children)e.children=[];return e}}();!function(){n.p="/"}();!function(){n.b=document.baseURI||self.location.href;var e={179:0};n.f.j=function(t,r){var o=n.o(e,t)?e[t]:undefined;if(o!==0){if(o){r.push(o[2])}else{if(true){var i=new Promise(function(n,r){o=e[t]=[n,r]});r.push(o[2]=i);var a=n.p+n.u(t);var s=new Error;var l=function(r){if(n.o(e,t)){o=e[t];if(o!==0)e[t]=undefined;if(o){var i=r&&(r.type==="load"?"missing":r.type);var a=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+a+")";s.name="ChunkLoadError";s.type=i;s.request=a;o[1](s)}}};n.l(a,l,"chunk-"+t,t)}}}};var t=function(t,r){var o=r[0];var i=r[1];var a=r[2];var s,l,u=0;if(o.some(function(t){return e[t]!==0})){for(s in i){if(n.o(i,s)){n.m[s]=i[s]}}if(a)var c=a(n)}if(t)t(r);for(;u<o.length;u++){l=o[u];if(n.o(e,l)&&e[l]){e[l][0]()}e[l]=0}};var r=self["webpackChunk_actual_app_web"]=self["webpackChunk_actual_app_web"]||[];r.forEach(t.bind(null,0));r.push=t.bind(null,r.push.bind(r))}();var r={};!function(){"use strict";var e={};n.r(e);n.d(e,{FILE:function(){return nc},HTML:function(){return nh},TEXT:function(){return nf},URL:function(){return nd}});var t=n(43188);function r(){return typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope}function o(e){return(t,n,o)=>{if(r()){throw new Error("`startWorkerFromMain` should only be called from the main thread")}if(typeof Worker==="undefined"){throw new Error("Web workers not available. sqlite3 requires web workers to work.")}e().then(({default:e})=>{let r=new e;r.postMessage({type:"init",buffers:[t,n]});r.addEventListener("message",e=>{o.postMessage(e.data)})})}}function i(e,t){const n=o(t);return t=>{t.addEventListener("message",r=>{switch(r.data.type){case e:n(r.data.argBuffer,r.data.resultBuffer,t);break}})}}const a=i("__absurd:spawn-idb-worker",()=>n.e(473).then(n.bind(n,83473)));var s=n(67238);var l={"i8":"23.12.0"};const u=new URL(n(1718),n.b);const c="production"==="development";const f=s.$8?"99.9.9":l.i8;let h;function p(){h=new Worker(u);a(h);if(window.SharedArrayBuffer){localStorage.removeItem("SharedArrayBufferOverride")}h.postMessage({type:"init",version:f,isDev:c,publicUrl:"",hash:"676aa69de34599d64b7b",isSharedArrayBufferOverrideEnabled:localStorage.getItem("SharedArrayBufferOverride")})}p();n.g.Actual={IS_DEV:c,ACTUAL_VERSION:f,logToTerminal:(...e)=>{console.log(...e)},relaunch:()=>{window.location.reload()},openFileDialog:async({filters:e=[],properties:t})=>{return new Promise(t=>{let n=false;let r=document.body.querySelector('input[id="open-file-dialog-input"]');if(!r){n=true;r=document.createElement("input")}r.type="file";r.id="open-file-dialog-input";r.value=null;const o=e.find(e=>e.extensions);if(o){r.accept=o.extensions.map(e=>"."+e).join(",")}r.style.position="absolute";r.style.top="0px";r.style.left="0px";r.style.display="none";r.onchange=e=>{const n=e.target.files[0];const r=n.name.replace(/.*(\.[^.]*)/,"file$1");if(n){const e=new FileReader;e.readAsArrayBuffer(n);e.onload=async function(e){const n=`/uploads/${r}`;window.__actionsForMenu.uploadFile(r,e.target.result).then(()=>t([n]))};e.onerror=function(e){alert("Error reading file")}}};if(n){document.body.appendChild(r)}r.click()})},saveFile:(e,t,n)=>{const r=document.createElement("a");r.style="display: none";r.download=t;r.rel="noopener";const o=new Blob([e]);r.href=URL.createObjectURL(o);r.dispatchEvent(new MouseEvent("click"))},openURLInBrowser:e=>{window.open(e,"_blank")},onEventFromMain:(e,t)=>{},applyAppUpdate:()=>{},updateAppMenu:e=>{},getServerSocket:async()=>{return h},setTheme:e=>{window.__actionsForMenu.saveGlobalPrefs({theme:e})}};document.addEventListener("keydown",e=>{if(e.metaKey||e.ctrlKey){if(e.key==="o"){e.preventDefault();window.__actionsForMenu.closeBudget()}else if(e.key.toLowerCase()==="z"){if(e.target.tagName==="INPUT"||e.target.tagName==="TEXTAREA"||e.target.isContentEditable){return}e.preventDefault();if(e.shiftKey){window.__actionsForMenu.redo()}else{window.__actionsForMenu.undo()}}}});var g={};var v={};var m=n(66204);var y=n(37496);var w=n(6279);var x=n(65485);function b(e){var t=function t(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){if(typeof o==="function"){return o(n,r,e)}return t(o)}}};return t}var S=b();S.withExtraArgument=b;var k=S;var j=n(43044);var C=n(62601);var T=n(10959);const E={failedAccounts:new Map,accountsSyncing:null};function _(e=E,t){switch(t.type){case C._V:return{...e,accountsSyncing:t.name};case C.cV:{const n=new Map(e.failedAccounts);if(t.failed){n.set(t.id,{type:t.errorType,code:t.errorCode})}else{n.delete(t.id)}return{...e,failedAccounts:n}}case C.Co:{const n=new Map;t.syncErrors.forEach(e=>{n.set(e.id,{type:e.type,code:e.code})});return{...e,failedAccounts:n}}default:}return e};const I={loadingText:null,updateInfo:null,showUpdateNotification:true,managerHasInitialized:false,lastUndoState:{current:null},lastSplitState:{current:null}};function M(e=I,t){switch(t.type){case C.wH:return{...e,...t.state};case C.HT:e.lastUndoState.current=t.undoState;return e;case C.VM:e.lastSplitState.current=t.splitState;return e;default:}return e};function D(e){e.sort((e,t)=>{const n=e.name.toLowerCase();const r=t.name.toLowerCase();let o=n<r?-1:n>r?1:0;if(o===0){const t=e.state==="remote"?e.cloudFileId:e.id;const n=e.state==="remote"?e.cloudFileId:e.id;o=t<n?-1:t>n?1:0}return o});return e}function P(e,t){const n=new Set;const r=e.map(e=>{const{cloudFileId:r,groupId:o}=e;if(r&&o){if(t==null){return{...e,cloudFileId:r,groupId:o,deleted:false,state:"unknown"}}const i=t.find(t=>e.cloudFileId===t.fileId);if(i){n.add(i.fileId);if(i.groupId===e.groupId){return{...e,cloudFileId:r,groupId:o,name:i.name,deleted:i.deleted,encryptKeyId:i.encryptKeyId,hasKey:i.hasKey,state:"synced"}}else{return{...e,cloudFileId:r,groupId:o,name:i.name,deleted:i.deleted,encryptKeyId:i.encryptKeyId,hasKey:i.hasKey,state:"detached"}}}else{return{...e,cloudFileId:r,groupId:o,deleted:false,state:"broken"}}}else{return{...e,deleted:false,state:"local"}}});const o=D(r.concat((t||[]).filter(e=>!n.has(e.fileId)).map(e=>{return{cloudFileId:e.fileId,groupId:e.groupId,name:e.name,deleted:e.deleted,encryptKeyId:e.encryptKeyId,hasKey:e.hasKey,state:"remote"}})).filter(e=>!e.deleted));return o.filter(e=>e.state!=="broken").concat(o.filter(e=>e.state==="broken"))}const O={budgets:[],remoteFiles:null,allFiles:null};function A(e=O,t){switch(t.type){case C.Ud:return{...e,budgets:t.budgets,allFiles:P(t.budgets,e.remoteFiles)};case C.Oi:return{...e,remoteFiles:t.files,allFiles:P(e.budgets,t.files)};case C.GY:return{...e,budgets:t.budgets,remoteFiles:t.remoteFiles,allFiles:P(t.budgets,t.remoteFiles)};case C.dp:return{...e,allFiles:null};default:}return e};const R={modalStack:[],isHidden:false};function Z(e=R,t){switch(t.type){case C.jw:return{...e,modalStack:[...e.modalStack,t.modal]};case C.JA:return{...e,modalStack:[t.modal]};case C.TZ:return{...e,modalStack:e.modalStack.slice(0,-1)};case C.et:return{...e,modalStack:[]};case C.wH:if("loadingText"in t.state){return{...e,isHidden:t.state.loadingText!=null}}break;case C.dp:return R;default:}return e}var z=Z;const N={notifications:[]};function L(e=N,t){switch(t.type){case C.Dv:if(e.notifications.find(e=>e.id===t.notification.id)){return e}return{...e,notifications:[...e.notifications,t.notification]};case C.Kf:return{...e,notifications:e.notifications.filter(e=>e.id!==t.id)};default:}return e}var B=n(89362);const H={local:null,global:null};function F(e=H,t){switch(t.type){case C.px:if(t.prefs){(0,B.yC)({format:t.prefs.numberFormat||"comma-dot",hideFraction:t.prefs.hideFraction})}return{local:t.prefs,global:t.globalPrefs};case C.uF:if(t.prefs.numberFormat||t.prefs.hideFraction!=null){(0,B.yC)({format:t.prefs.numberFormat||e.local.numberFormat,hideFraction:t.prefs.hideFraction!=null?t.prefs.hideFraction:e.local.hideFraction})}return{...e,local:{...e.local,...t.prefs}};case C.CH:return{...e,global:{...e.global,...t.globalPrefs}};default:}return e}var V=n(18748);const W={data:null};function U(e=W,t){switch(t.type){case C.q1:return{...e,data:t.data};default:}return e};const K={app:M,queries:V.ZP,account:_,prefs:F,modals:z,notifications:L,budgets:A,user:U};var $=K;var q=n(84094);"use client";const Y=(0,m.createContext)(null);const G={didCatch:false,error:null};class X extends m.Component{constructor(e){super(e);this.resetErrorBoundary=this.resetErrorBoundary.bind(this);this.state=G}static getDerivedStateFromError(e){return{didCatch:true,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(e!==null){var t,n;for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}(t=(n=this.props).onReset)===null||t===void 0?void 0:t.call(n,{args:o,reason:"imperative-api"});this.setState(G)}}componentDidCatch(e,t){var n,r;(n=(r=this.props).onError)===null||n===void 0?void 0:n.call(r,e,t)}componentDidUpdate(e,t){const{didCatch:n}=this.state;const{resetKeys:r}=this.props;if(n&&t.error!==null&&Q(e.resetKeys,r)){var o,i;(o=(i=this.props).onReset)===null||o===void 0?void 0:o.call(i,{next:r,prev:e.resetKeys,reason:"keys"});this.setState(G)}}render(){const{children:e,fallbackRender:t,FallbackComponent:n,fallback:r}=this.props;const{didCatch:o,error:i}=this.state;let a=e;if(o){const e={error:i,resetErrorBoundary:this.resetErrorBoundary};if((0,m.isValidElement)(r)){a=r}else if(typeof t==="function"){a=t(e)}else if(n){a=(0,m.createElement)(n,e)}else{throw i}}return(0,m.createElement)(Y.Provider,{value:{didCatch:o,error:i,resetErrorBoundary:this.resetErrorBoundary}},a)}}function Q(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];return e.length!==t.length||e.some((e,n)=>!Object.is(e,t[n]))}function J(e){if(e==null||typeof e.didCatch!=="boolean"||typeof e.resetErrorBoundary!=="function"){throw new Error("ErrorBoundaryContext not found")}return true}function ee(){const e=(0,m.useContext)(Y);J(e);const[t,n]=(0,m.useState)({error:null,hasError:false});const r=(0,m.useMemo)(()=>({resetBoundary:()=>{e===null||e===void 0?void 0:e.resetErrorBoundary();n({error:null,hasError:false})},showBoundary:e=>n({error:e,hasError:true})}),[e===null||e===void 0?void 0:e.resetErrorBoundary]);if(t.hasError){throw t.error}return r}function et(e,t){const n=forwardRef((n,r)=>createElement(X,t,createElement(e,{...n,ref:r})));const r=e.displayName||e.name||"Unknown";n.displayName="withErrorBoundary(".concat(r,")");return n}var en=n(1447);async function er(){if("ResizeObserver"in window===false){const e=await n.e(737).then(n.bind(n,81518));window.ResizeObserver=e.ResizeObserver}}var eo=n(76074);var ei=n(45492);var ea=n(99818);var es=n(99458);var el=n(24924);var eu=n(24307);function ec(e){return(0,t.jsx)(ed,{...e},e.name)}function ed({name:e,message:n,importer:r}){let[o,i]=(0,m.useState)(null);(0,m.useEffect)(()=>{r().then(t=>i(()=>t[e]))},[e,r]);if(!o){return(0,t.jsxs)(eu.Z,{style:{flex:1,gap:20,justifyContent:"center",alignItems:"center",...ei.W2.delayedFadeIn},children:[n&&(0,t.jsx)(el.Z,{style:{marginBottom:20,fontSize:18},children:n}),(0,t.jsx)(es.Z,{width:25,color:ei.rS.pageTextDark})]})}return(0,t.jsx)(o,{})};function ef(){return(0,t.jsx)("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0,backgroundColor:ei.rS.pageBackground},children:(0,t.jsxs)("svg",{viewBox:"0 0 642 535",fill:"none",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"none",style:{position:"absolute",top:0,left:0,height:"100%",width:"100%"},children:[(0,t.jsx)("path",{fill:"url(#paint0_linear)",d:"M0 0h642v535H0z"}),(0,t.jsx)("defs",{children:(0,t.jsxs)("linearGradient",{id:"paint0_linear",x1:"162",y1:"23.261",x2:"468.904",y2:"520.44",gradientUnits:"userSpaceOnUse",children:[(0,t.jsx)("stop",{stopColor:ei.rS.pageBackgroundTopLeft}),(0,t.jsx)("stop",{offset:"1",stopColor:ei.rS.pageBackgroundBottomRight,stopOpacity:"0.5"})]})}),(0,t.jsx)(ec,{importer:()=>n.e(231).then(n.bind(n,31231)),name:"BackgroundImage"})]})})};function eh({initializing:e,loadingText:n}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ef,{}),(n!=null||e)&&(0,t.jsxs)(eu.Z,{className:`${(0,ea.iv)({position:"absolute",top:0,left:0,right:0,padding:50,paddingTop:200,color:ei.rS.pageText,alignItems:"center"})}`,children:[(0,t.jsx)(el.Z,{style:{marginBottom:20,fontSize:18},children:n}),(0,t.jsx)(es.Z,{width:25,color:ei.rS.pageText})]})]})}var ep=eh;var eg=n(15633);function ev(){return(0,t.jsxs)(eu.Z,{style:{padding:"6px 20px",display:"flex",flexDirection:"row",justifyContent:"space-between",color:ei.rS.warningText,backgroundColor:ei.rS.warningBackground,borderBottom:`1px solid ${ei.rS.warningBorder}`,zIndex:1,flexShrink:0},children:[(0,t.jsx)(eu.Z,{children:"This is a demo build of Actual."}),(0,t.jsx)(eu.Z,{children:(0,t.jsxs)(eg.Z,{linkColor:"purple",to:`https://github.com/actualbudget/actual/pull/${{"NODE_ENV":"production","PUBLIC_URL":"","WDS_SOCKET_HOST":undefined,"WDS_SOCKET_PATH":undefined,"WDS_SOCKET_PORT":undefined,"FAST_REFRESH":true,"REACT_APP_BACKEND_WORKER_HASH":"676aa69de34599d64b7b"}.REACT_APP_REVIEW_ID}`,children:["Open the PR: #",{"NODE_ENV":"production","PUBLIC_URL":"","WDS_SOCKET_HOST":undefined,"WDS_SOCKET_PATH":undefined,"WDS_SOCKET_PORT":undefined,"FAST_REFRESH":true,"REACT_APP_BACKEND_WORKER_HASH":"676aa69de34599d64b7b"}.REACT_APP_REVIEW_ID]})})]})}var em=n(56816);var ey=n(21920);var ew=n(8987);var ex=n(42994);var eb=n(84196);var eS=n(77644);var ek=n(10730);function ej({error:e}){let n;if("IDBFailure"in e&&e.IDBFailure){n=(0,t.jsx)(eS.Z,{children:"Your browser doesn’t support IndexedDB in this environment, a feature that Actual requires to run. This might happen if you are in private browsing mode. Please try a different browser or turn off private browsing."})}else if("SharedArrayBufferMissing"in e&&e.SharedArrayBufferMissing){n=(0,t.jsxs)(eS.Z,{children:["Actual requires access to ",(0,t.jsx)("code",{children:"SharedArrayBuffer"})," in order to function properly. If you’re seeing this error, either your browser does not support ",(0,t.jsx)("code",{children:"SharedArrayBuffer"}),", or your server is not sending the appropriate headers, or you are not using HTTPS. See"," ",(0,t.jsx)(eg.Z,{linkColor:"muted",to:"https://actualbudget.org/docs/troubleshooting/shared-array-buffer",children:"our troubleshooting documentation"})," ","to learn more. ",(0,t.jsx)(eT,{})]})}else{n=(0,t.jsxs)(eS.Z,{children:["There was a problem loading the app in this browser version. If this continues to be a problem, you can"," ",(0,t.jsx)(eg.Z,{linkColor:"muted",to:"https://github.com/actualbudget/releases",children:"download the desktop app"}),"."]})}return(0,t.jsxs)(eb.Z,{style:{paddingBottom:15,lineHeight:"1.5em",fontSize:15},children:[(0,t.jsx)(eS.Z,{children:n}),(0,t.jsxs)(eS.Z,{children:["Please get"," ",(0,t.jsx)(eg.Z,{linkColor:"muted",to:"https://actualbudget.org/contact",children:"in touch"})," ","for support"]})]})}function eC(){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ex.Z,{children:"There was an unrecoverable error in the UI. Sorry!"}),(0,t.jsxs)(ex.Z,{children:["If this error persists, please get"," ",(0,t.jsx)(eg.Z,{to:"https://actualbudget.org/contact",children:"in touch"})," ","so it can be investigated."]})]})}function eT(){let[e,n]=(0,m.useState)(false);let[r,o]=(0,m.useState)(false);return e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(ex.Z,{style:{marginTop:10},children:["Actual uses ",(0,t.jsx)("code",{children:"SharedArrayBuffer"})," to allow usage from multiple tabs at once and to ensure correct behavior when switching files. While it can run without access to ",(0,t.jsx)("code",{children:"SharedArrayBuffer"}),", you may encounter data loss or notice multiple budget files being merged with each other."]}),(0,t.jsxs)("label",{style:{display:"flex",alignItems:"center",marginBottom:10},children:[(0,t.jsx)(ek.XZ,{checked:r,onChange:e=>o(!r)})," ","I understand the risks, run Actual in the unsupported fallback mode"]}),(0,t.jsx)(em.Z,{disabled:!r,onClick:()=>{window.localStorage.setItem("SharedArrayBufferOverride","true");window.location.reload()},children:"Open Actual"})]}):(0,t.jsx)(ey.Z,{onClick:()=>n(true),style:{marginLeft:5},children:"Advanced options"})}function eE({buttonText:e,error:n}){let[r,o]=(0,m.useState)(false);const i="type"in n&&n.type==="app-init-failure";return(0,t.jsx)(ew.C,{isCurrent:true,showClose:false,title:"Fatal Error",children:(0,t.jsxs)(eu.Z,{style:{maxWidth:500},children:[i?(0,t.jsx)(ej,{error:n}):(0,t.jsx)(eC,{}),(0,t.jsx)(ex.Z,{children:(0,t.jsx)(em.Z,{onClick:()=>window.Actual.relaunch(),children:e})}),(0,t.jsxs)(ex.Z,{isLast:true,style:{fontSize:11},children:[(0,t.jsx)(ey.Z,{onClick:()=>o(true),children:"Show Error"}),r&&(0,t.jsx)(el.Z,{style:{marginTop:5,height:100,overflow:"auto"},children:n.stack})]})]})})}var e_=eE;var eI=n(21251);function eM(e,t,n){return t.split(".").reduce((e,t)=>e&&e[t]?e[t]:n||null,e)}function eD(e,t){return e.filter(e=>e!==t)}function eP(e){return typeof e==="string"}function eO(e){return typeof e==="object"}function eA(e,t){const n=new Map;const r=e=>{n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r);t.forEach(r);const o=[];n.forEach((e,t)=>{if(e===1){o.push(t)}});return o}function eR(e,t){return e.filter(e=>t.indexOf(e)>-1)};const eZ="dnd-core/INIT_COORDS";const ez="dnd-core/BEGIN_DRAG";const eN="dnd-core/PUBLISH_DRAG_SOURCE";const eL="dnd-core/HOVER";const eB="dnd-core/DROP";const eH="dnd-core/END_DRAG";function eF(e,t){return{type:eZ,payload:{sourceClientOffset:t||null,clientOffset:e||null}}};const eV={type:eZ,payload:{clientOffset:null,sourceClientOffset:null}};function eW(e){return function t(t=[],n={publishSource:true}){const{publishSource:r=true,clientOffset:o,getSourceClientOffset:i}=n;const a=e.getMonitor();const s=e.getRegistry();e.dispatch(eF(o));eU(t,a,s);const l=eq(t,a);if(l==null){e.dispatch(eV);return}let u=null;if(o){if(!i){throw new Error("getSourceClientOffset must be defined")}eK(i);u=i(l)}e.dispatch(eF(o,u));const c=s.getSource(l);const f=c.beginDrag(a,l);if(f==null){return undefined}e$(f);s.pinSource(l);const h=s.getSourceType(l);return{type:ez,payload:{itemType:h,item:f,sourceId:l,clientOffset:o||null,sourceClientOffset:u||null,isSourcePublic:!!r}}}}function eU(e,t,n){(0,eI.k)(!t.isDragging(),"Cannot call beginDrag while dragging.");e.forEach(function(e){(0,eI.k)(n.getSource(e),"Expected sourceIds to be registered.")})}function eK(e){(0,eI.k)(typeof e==="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function e$(e){(0,eI.k)(eO(e),"Item must be an object.")}function eq(e,t){let n=null;for(let r=e.length-1;r>=0;r--){if(t.canDragSource(e[r])){n=e[r];break}}return n};function eY(e,t,n){if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}function eG(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};var r=Object.keys(n);if(typeof Object.getOwnPropertySymbols==="function"){r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))}r.forEach(function(t){eY(e,t,n[t])})}return e}function eX(e){return function t(t={}){const n=e.getMonitor();const r=e.getRegistry();eQ(n);const o=e1(n);o.forEach((o,i)=>{const a=eJ(o,i,r,n);const s={type:eB,payload:{dropResult:eG({},t,a)}};e.dispatch(s)})}}function eQ(e){(0,eI.k)(e.isDragging(),"Cannot call drop while not dragging.");(0,eI.k)(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function eJ(e,t,n,r){const o=n.getTarget(e);let i=o?o.drop(r,e):undefined;e0(i);if(typeof i==="undefined"){i=t===0?{}:r.getDropResult()}return i}function e0(e){(0,eI.k)(typeof e==="undefined"||eO(e),"Drop result must either be an object or undefined.")}function e1(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);t.reverse();return t};function e2(e){return function t(){const t=e.getMonitor();const n=e.getRegistry();e4(t);const r=t.getSourceId();if(r!=null){const e=n.getSource(r,true);e.endDrag(t,r);n.unpinSource()}return{type:eH}}}function e4(e){(0,eI.k)(e.isDragging(),"Cannot call endDrag while not dragging.")};function e5(e,t){if(t===null){return e===null}return Array.isArray(e)?e.some(e=>e===t):e===t};function e3(e){return function t(t,{clientOffset:n}={}){e8(t);const r=t.slice(0);const o=e.getMonitor();const i=e.getRegistry();const a=o.getItemType();e7(r,i,a);e6(r,o,i);e9(r,o,i);return{type:eL,payload:{targetIds:r,clientOffset:n||null}}}}function e8(e){(0,eI.k)(Array.isArray(e),"Expected targetIds to be an array.")}function e6(e,t,n){(0,eI.k)(t.isDragging(),"Cannot call hover while not dragging.");(0,eI.k)(!t.didDrop(),"Cannot call hover after drop.");for(let t=0;t<e.length;t++){const r=e[t];(0,eI.k)(e.lastIndexOf(r)===t,"Expected targetIds to be unique in the passed array.");const o=n.getTarget(r);(0,eI.k)(o,"Expected targetIds to be registered.")}}function e7(e,t,n){for(let r=e.length-1;r>=0;r--){const o=e[r];const i=t.getTargetType(o);if(!e5(i,n)){e.splice(r,1)}}}function e9(e,t,n){e.forEach(function(e){const r=n.getTarget(e);r.hover(t,e)})};function te(e){return function t(){const t=e.getMonitor();if(t.isDragging()){return{type:eN}}return}};function tt(e){return{beginDrag:eW(e),publishDragSource:te(e),hover:e3(e),drop:eX(e),endDrag:e2(e)}};class tn{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this;const{dispatch:t}=this.store;function n(n){return(...r)=>{const o=n.apply(e,r);if(typeof o!=="undefined"){t(o)}}}const r=tt(this);return Object.keys(r).reduce((e,t)=>{const o=r[t];e[t]=n(o);return e},{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=false;this.handleRefCountChange=()=>{const e=this.store.getState().refCount>0;if(this.backend){if(e&&!this.isSetUp){this.backend.setup();this.isSetUp=true}else if(!e&&this.isSetUp){this.backend.teardown();this.isSetUp=false}}};this.store=e;this.monitor=t;e.subscribe(this.handleRefCountChange)}};function tr(e,t){return{x:e.x+t.x,y:e.y+t.y}}function to(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ti(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;if(!t||!n||!r){return null}return to(tr(t,r),n)}function ta(e){const{clientOffset:t,initialClientOffset:n}=e;if(!t||!n){return null}return to(t,n)};const ts=[];const tl=[];ts.__IS_NONE__=true;tl.__IS_ALL__=true;function tu(e,t){if(e===ts){return false}if(e===tl||typeof t==="undefined"){return true}const n=eR(t,e);return n.length>0};class tc{subscribeToStateChange(e,t={}){const{handlerIds:n}=t;(0,eI.k)(typeof e==="function","listener must be a function.");(0,eI.k)(typeof n==="undefined"||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let r=this.store.getState().stateId;const o=()=>{const t=this.store.getState();const o=t.stateId;try{const i=o===r||o===r+1&&!tu(t.dirtyHandlerIds,n);if(!i){e()}}finally{r=o}};return this.store.subscribe(o)}subscribeToOffsetChange(e){(0,eI.k)(typeof e==="function","listener must be a function.");let t=this.store.getState().dragOffset;const n=()=>{const n=this.store.getState().dragOffset;if(n===t){return}t=n;e()};return this.store.subscribe(n)}canDragSource(e){if(!e){return false}const t=this.registry.getSource(e);(0,eI.k)(t,`Expected to find a valid source. sourceId=${e}`);if(this.isDragging()){return false}return t.canDrag(this,e)}canDropOnTarget(e){if(!e){return false}const t=this.registry.getTarget(e);(0,eI.k)(t,`Expected to find a valid target. targetId=${e}`);if(!this.isDragging()||this.didDrop()){return false}const n=this.registry.getTargetType(e);const r=this.getItemType();return e5(n,r)&&t.canDrop(this,e)}isDragging(){return Boolean(this.getItemType())}isDraggingSource(e){if(!e){return false}const t=this.registry.getSource(e,true);(0,eI.k)(t,`Expected to find a valid source. sourceId=${e}`);if(!this.isDragging()||!this.isSourcePublic()){return false}const n=this.registry.getSourceType(e);const r=this.getItemType();if(n!==r){return false}return t.isDragging(this,e)}isOverTarget(e,t={shallow:false}){if(!e){return false}const{shallow:n}=t;if(!this.isDragging()){return false}const r=this.registry.getTargetType(e);const o=this.getItemType();if(o&&!e5(r,o)){return false}const i=this.getTargetIds();if(!i.length){return false}const a=i.indexOf(e);if(n){return a===i.length-1}else{return a>-1}}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return ti(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return ta(this.store.getState().dragOffset)}constructor(e,t){this.store=e;this.registry=t}};const td=typeof global!=="undefined"?global:self;const tf=td.MutationObserver||td.WebKitMutationObserver;function th(e){return function t(){const t=setTimeout(r,0);const n=setInterval(r,50);function r(){clearTimeout(t);clearInterval(n);e()}}}function tp(e){let t=1;const n=new tf(e);const r=document.createTextNode("");n.observe(r,{characterData:true});return function e(){t=-t;r.data=t}}const tg=typeof tf==="function"?tp:th;class tv{enqueueTask(e){const{queue:t,requestFlush:n}=this;if(!t.length){n();this.flushing=true}t[t.length]=e}constructor(){this.queue=[];this.pendingErrors=[];this.flushing=false;this.index=0;this.capacity=1024;this.flush=()=>{const{queue:e}=this;while(this.index<e.length){const t=this.index;this.index++;e[t].call();if(this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++){e[t]=e[t+this.index]}e.length-=this.index;this.index=0}}e.length=0;this.index=0;this.flushing=false};this.registerPendingError=e=>{this.pendingErrors.push(e);this.requestErrorThrow()};this.requestFlush=tg(this.flush);this.requestErrorThrow=th(()=>{if(this.pendingErrors.length){throw this.pendingErrors.shift()}})}};class tm{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null;this.release(this)}}constructor(e,t){this.onError=e;this.release=t;this.task=null}};class ty{create(e){const t=this.freeTasks;const n=t.length?t.pop():new tm(this.onError,e=>t[t.length]=e);n.task=e;return n}constructor(e){this.onError=e;this.freeTasks=[]}};const tw=new tv;const tx=new ty(tw.registerPendingError);function tb(e){tw.enqueueTask(tx.create(e))};;const tS="dnd-core/ADD_SOURCE";const tk="dnd-core/ADD_TARGET";const tj="dnd-core/REMOVE_SOURCE";const tC="dnd-core/REMOVE_TARGET";function tT(e){return{type:tS,payload:{sourceId:e}}}function tE(e){return{type:tk,payload:{targetId:e}}}function t_(e){return{type:tj,payload:{sourceId:e}}}function tI(e){return{type:tC,payload:{targetId:e}}};function tM(e){(0,eI.k)(typeof e.canDrag==="function","Expected canDrag to be a function.");(0,eI.k)(typeof e.beginDrag==="function","Expected beginDrag to be a function.");(0,eI.k)(typeof e.endDrag==="function","Expected endDrag to be a function.")}function tD(e){(0,eI.k)(typeof e.canDrop==="function","Expected canDrop to be a function.");(0,eI.k)(typeof e.hover==="function","Expected hover to be a function.");(0,eI.k)(typeof e.drop==="function","Expected beginDrag to be a function.")}function tP(e,t){if(t&&Array.isArray(e)){e.forEach(e=>tP(e,false));return}(0,eI.k)(typeof e==="string"||typeof e==="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")};var tO;(function(e){e["SOURCE"]="SOURCE";e["TARGET"]="TARGET"})(tO||(tO={}));let tA=0;function tR(){return tA++};function tZ(e){const t=tR().toString();switch(e){case tO.SOURCE:return`S${t}`;case tO.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function tz(e){switch(e[0]){case"S":return tO.SOURCE;case"T":return tO.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function tN(e,t){const n=e.entries();let r=false;do{const{done:e,value:[,o]}=n.next();if(o===t){return true}r=!!e}while(!r);return false}class tL{addSource(e,t){tP(e);tM(t);const n=this.addHandler(tO.SOURCE,e,t);this.store.dispatch(tT(n));return n}addTarget(e,t){tP(e,true);tD(t);const n=this.addHandler(tO.TARGET,e,t);this.store.dispatch(tE(n));return n}containsHandler(e){return tN(this.dragSources,e)||tN(this.dropTargets,e)}getSource(e,t=false){(0,eI.k)(this.isSourceId(e),"Expected a valid source ID.");const n=t&&e===this.pinnedSourceId;const r=n?this.pinnedSource:this.dragSources.get(e);return r}getTarget(e){(0,eI.k)(this.isTargetId(e),"Expected a valid target ID.");return this.dropTargets.get(e)}getSourceType(e){(0,eI.k)(this.isSourceId(e),"Expected a valid source ID.");return this.types.get(e)}getTargetType(e){(0,eI.k)(this.isTargetId(e),"Expected a valid target ID.");return this.types.get(e)}isSourceId(e){const t=tz(e);return t===tO.SOURCE}isTargetId(e){const t=tz(e);return t===tO.TARGET}removeSource(e){(0,eI.k)(this.getSource(e),"Expected an existing source.");this.store.dispatch(t_(e));tb(()=>{this.dragSources.delete(e);this.types.delete(e)})}removeTarget(e){(0,eI.k)(this.getTarget(e),"Expected an existing target.");this.store.dispatch(tI(e));this.dropTargets.delete(e);this.types.delete(e)}pinSource(e){const t=this.getSource(e);(0,eI.k)(t,"Expected an existing source.");this.pinnedSourceId=e;this.pinnedSource=t}unpinSource(){(0,eI.k)(this.pinnedSource,"No source is pinned at the time.");this.pinnedSourceId=null;this.pinnedSource=null}addHandler(e,t,n){const r=tZ(e);this.types.set(r,t);if(e===tO.SOURCE){this.dragSources.set(r,n)}else if(e===tO.TARGET){this.dropTargets.set(r,n)}return r}constructor(e){this.types=new Map;this.dragSources=new Map;this.dropTargets=new Map;this.pinnedSourceId=null;this.pinnedSource=null;this.store=e}};const tB=(e,t)=>e===t;function tH(e,t){if(!e&&!t){return true}else if(!e||!t){return false}else{return e.x===t.x&&e.y===t.y}}function tF(e,t,n=tB){if(e.length!==t.length){return false}for(let r=0;r<e.length;++r){if(!n(e[r],t[r])){return false}}return true};function tV(e=ts,t){switch(t.type){case eL:break;case tS:case tk:case tC:case tj:return ts;case ez:case eN:case eH:case eB:default:return tl}const{targetIds:n=[],prevTargetIds:r=[]}=t.payload;const o=eA(n,r);const i=o.length>0||!tF(n,r);if(!i){return ts}const a=r[r.length-1];const s=n[n.length-1];if(a!==s){if(a){o.push(a)}if(s){o.push(s)}}return o};function tW(e,t,n){if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}function tU(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};var r=Object.keys(n);if(typeof Object.getOwnPropertySymbols==="function"){r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))}r.forEach(function(t){tW(e,t,n[t])})}return e}const tK={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function t$(e=tK,t){const{payload:n}=t;switch(t.type){case eZ:case ez:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case eL:if(tH(e.clientOffset,n.clientOffset)){return e}return tU({},e,{clientOffset:n.clientOffset});case eH:case eB:return tK;default:return e}};function tq(e,t,n){if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}function tY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};var r=Object.keys(n);if(typeof Object.getOwnPropertySymbols==="function"){r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))}r.forEach(function(t){tq(e,t,n[t])})}return e}const tG={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:false,isSourcePublic:null};function tX(e=tG,t){const{payload:n}=t;switch(t.type){case ez:return tY({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:false});case eN:return tY({},e,{isSourcePublic:true});case eL:return tY({},e,{targetIds:n.targetIds});case tC:if(e.targetIds.indexOf(n.targetId)===-1){return e}return tY({},e,{targetIds:eD(e.targetIds,n.targetId)});case eB:return tY({},e,{dropResult:n.dropResult,didDrop:true,targetIds:[]});case eH:return tY({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:false,isSourcePublic:null,targetIds:[]});default:return e}};function tQ(e=0,t){switch(t.type){case tS:case tk:return e+1;case tj:case tC:return e-1;default:return e}};function tJ(e=0){return e+1};function t0(e,t,n){if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}function t1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};var r=Object.keys(n);if(typeof Object.getOwnPropertySymbols==="function"){r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))}r.forEach(function(t){t0(e,t,n[t])})}return e}function t2(e={},t){return{dirtyHandlerIds:tV(e.dirtyHandlerIds,{type:t.type,payload:t1({},t.payload,{prevTargetIds:eM(e,"dragOperation.targetIds",[])})}),dragOffset:t$(e.dragOffset,t),refCount:tQ(e.refCount,t),dragOperation:tX(e.dragOperation,t),stateId:tJ(e.stateId)}};function t4(e,t=undefined,n={},r=false){const o=t5(r);const i=new tc(o,new tL(o));const a=new tn(o,i);const s=e(a,t,n);a.receiveBackend(s);return a}function t5(e){const t=typeof window!=="undefined"&&window.__REDUX_DEVTOOLS_EXTENSION__;return(0,x.MT)(t2,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}var t3=n(13577);function t8(e,t){if(e==null)return{};var n=t6(e,t);var r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++){r=i[o];if(t.indexOf(r)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(e,r))continue;n[r]=e[r]}}return n}function t6(e,t){if(e==null)return{};var n={};var r=Object.keys(e);var o,i;for(i=0;i<r.length;i++){o=r[i];if(t.indexOf(o)>=0)continue;n[o]=e[o]}return n}let t7=0;const t9=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var ne=(0,m.memo)(function e(e){var{children:n}=e,r=t8(e,["children"]);const[o,i]=nt(r);(0,m.useEffect)(()=>{if(i){const e=no();++t7;return()=>{if(--t7===0){e[t9]=null}}}return},[]);return(0,t.jsx)(t3.L.Provider,{value:o,children:n})});function nt(e){if("manager"in e){const t={dragDropManager:e.manager};return[t,false]}const t=nn(e.backend,e.context,e.options,e.debugMode);const n=!e.context;return[t,n]}function nn(e,t=no(),n,r){const o=t;if(!o[t9]){o[t9]={dragDropManager:t4(e,t,n,r)}}return o[t9]}function no(){return typeof global!=="undefined"?global:window};function ni(e){let t=null;const n=()=>{if(t==null){t=e()}return t};return n}function na(e,t){return e.filter(e=>e!==t)}function ns(e,t){const n=new Set;const r=e=>n.add(e);e.forEach(r);t.forEach(r);const o=[];n.forEach(e=>o.push(e));return o};class nl{enter(e){const t=this.entered.length;const n=t=>this.isNodeInDocument(t)&&(!t.contains||t.contains(e));this.entered=ns(this.entered.filter(n),[e]);return t===0&&this.entered.length>0}leave(e){const t=this.entered.length;this.entered=na(this.entered.filter(this.isNodeInDocument),e);return t>0&&this.entered.length===0}reset(){this.entered=[]}constructor(e){this.entered=[];this.isNodeInDocument=e}};class nu{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:true,enumerable:true,get(){console.warn(`Browser doesn't allow reading "${e}" until the drop event.`);return null}})})}loadDataTransfer(e){if(e){const t={};Object.keys(this.config.exposeProperties).forEach(n=>{const r=this.config.exposeProperties[n];if(r!=null){t[n]={value:r(e,this.config.matchesTypes),configurable:true,enumerable:true}}});Object.defineProperties(this.item,t)}}canDrag(){return true}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e;this.item={};this.initializeExposedProperties()}};const nc="__NATIVE_FILE__";const nd="__NATIVE_URL__";const nf="__NATIVE_TEXT__";const nh="__NATIVE_HTML__";function np(e,t,n){const r=t.reduce((t,n)=>t||e.getData(n),"");return r!=null?r:n};const ng={[nc]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[nh]:{exposeProperties:{html:(e,t)=>np(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[nd]:{exposeProperties:{urls:(e,t)=>np(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[nf]:{exposeProperties:{text:(e,t)=>np(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function nv(e,t){const n=ng[e];if(!n){throw new Error(`native type ${e} has no configuration`)}const r=new nu(n);r.loadDataTransfer(t);return r}function nm(e){if(!e){return null}const t=Array.prototype.slice.call(e.types||[]);return Object.keys(ng).filter(e=>{const n=ng[e];if(!(n===null||n===void 0?void 0:n.matchesTypes)){return false}return n.matchesTypes.some(e=>t.indexOf(e)>-1)})[0]||null};const ny=ni(()=>/firefox/i.test(navigator.userAgent));const nw=ni(()=>Boolean(window.safari));class nx{interpolate(e){const{xs:t,ys:n,c1s:r,c2s:o,c3s:i}=this;let a=t.length-1;if(e===t[a]){return n[a]}let s=0;let l=i.length-1;let u;while(s<=l){u=Math.floor(.5*(s+l));const r=t[u];if(r<e){s=u+1}else if(r>e){l=u-1}else{return n[u]}}a=Math.max(0,l);const c=e-t[a];const f=c*c;return n[a]+r[a]*c+o[a]*f+i[a]*c*f}constructor(e,t){const{length:n}=e;const r=[];for(let e=0;e<n;e++){r.push(e)}r.sort((t,n)=>e[t]<e[n]?-1:1);const o=[];const i=[];const a=[];let s;let l;for(let r=0;r<n-1;r++){s=e[r+1]-e[r];l=t[r+1]-t[r];i.push(s);o.push(l);a.push(l/s)}const u=[a[0]];for(let e=0;e<i.length-1;e++){const t=a[e];const n=a[e+1];if(t*n<=0){u.push(0)}else{s=i[e];const r=i[e+1];const o=s+r;u.push(3*o/((o+r)/t+(o+s)/n))}}u.push(a[a.length-1]);const c=[];const f=[];let h;for(let e=0;e<u.length-1;e++){h=a[e];const t=u[e];const n=1/i[e];const r=t+u[e+1]-h-h;c.push((h-t-r)*n);f.push(r*n*n)}this.xs=e;this.ys=t;this.c1s=u;this.c2s=c;this.c3s=f}};const nb=1;function nS(e){const t=e.nodeType===nb?e:e.parentElement;if(!t){return null}const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function nk(e){return{x:e.clientX,y:e.clientY}}function nj(e){var t;return e.nodeName==="IMG"&&(ny()||!((t=document.documentElement)===null||t===void 0?void 0:t.contains(e)))}function nC(e,t,n,r){let o=e?t.width:n;let i=e?t.height:r;if(nw()&&e){i/=window.devicePixelRatio;o/=window.devicePixelRatio}return{dragPreviewWidth:o,dragPreviewHeight:i}}function nT(e,t,n,r,o){const i=nj(t);const a=i?e:t;const s=nS(a);const l={x:n.x-s.x,y:n.y-s.y};const{offsetWidth:u,offsetHeight:c}=e;const{anchorX:f,anchorY:h}=r;const{dragPreviewWidth:p,dragPreviewHeight:g}=nC(i,t,u,c);const v=()=>{const e=new nx([0,.5,1],[l.y,l.y/c*g,l.y+g-c]);let t=e.interpolate(h);if(nw()&&i){t+=(window.devicePixelRatio-1)*g}return t};const m=()=>{const e=new nx([0,.5,1],[l.x,l.x/u*p,l.x+p-u]);return e.interpolate(f)};const{offsetX:y,offsetY:w}=o;const x=y===0||y;const b=w===0||w;return{x:x?y:m(),y:b?w:v()}};class nE{get window(){if(this.globalContext){return this.globalContext}else if(typeof window!=="undefined"){return window}return undefined}get document(){var e;if((e=this.globalContext)===null||e===void 0?void 0:e.document){return this.globalContext.document}else if(this.window){return this.window.document}else{return undefined}}get rootElement(){var e;return((e=this.optionsArgs)===null||e===void 0?void 0:e.rootElement)||this.window}constructor(e,t){this.ownerDocument=null;this.globalContext=e;this.optionsArgs=t}};function n_(e,t,n){if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}function nI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};var r=Object.keys(n);if(typeof Object.getOwnPropertySymbols==="function"){r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))}r.forEach(function(t){n_(e,t,n[t])})}return e}class nM{profile(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((e=this.dragStartSourceIds)===null||e===void 0?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((t=this.dragOverTargetIds)===null||t===void 0?void 0:t.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(e===undefined){return}if(e.__isReactDndBackendSetUp){throw new Error("Cannot have two HTML5 backends at the same time.")}e.__isReactDndBackendSetUp=true;this.addEventListeners(e)}teardown(){const e=this.rootElement;if(e===undefined){return}e.__isReactDndBackendSetUp=false;this.removeEventListeners(this.rootElement);this.clearCurrentDragSourceNode();if(this.asyncEndDragFrameId){var t;(t=this.window)===null||t===void 0?void 0:t.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(e,t,n){this.sourcePreviewNodeOptions.set(e,n);this.sourcePreviewNodes.set(e,t);return()=>{this.sourcePreviewNodes.delete(e);this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,n){this.sourceNodes.set(e,t);this.sourceNodeOptions.set(e,n);const r=t=>this.handleDragStart(t,e);const o=e=>this.handleSelectStart(e);t.setAttribute("draggable","true");t.addEventListener("dragstart",r);t.addEventListener("selectstart",o);return()=>{this.sourceNodes.delete(e);this.sourceNodeOptions.delete(e);t.removeEventListener("dragstart",r);t.removeEventListener("selectstart",o);t.setAttribute("draggable","false")}}connectDropTarget(e,t){const n=t=>this.handleDragEnter(t,e);const r=t=>this.handleDragOver(t,e);const o=t=>this.handleDrop(t,e);t.addEventListener("dragenter",n);t.addEventListener("dragover",r);t.addEventListener("drop",o);return()=>{t.removeEventListener("dragenter",n);t.removeEventListener("dragover",r);t.removeEventListener("drop",o)}}addEventListeners(e){if(!e.addEventListener){return}e.addEventListener("dragstart",this.handleTopDragStart);e.addEventListener("dragstart",this.handleTopDragStartCapture,true);e.addEventListener("dragend",this.handleTopDragEndCapture,true);e.addEventListener("dragenter",this.handleTopDragEnter);e.addEventListener("dragenter",this.handleTopDragEnterCapture,true);e.addEventListener("dragleave",this.handleTopDragLeaveCapture,true);e.addEventListener("dragover",this.handleTopDragOver);e.addEventListener("dragover",this.handleTopDragOverCapture,true);e.addEventListener("drop",this.handleTopDrop);e.addEventListener("drop",this.handleTopDropCapture,true)}removeEventListeners(e){if(!e.removeEventListener){return}e.removeEventListener("dragstart",this.handleTopDragStart);e.removeEventListener("dragstart",this.handleTopDragStartCapture,true);e.removeEventListener("dragend",this.handleTopDragEndCapture,true);e.removeEventListener("dragenter",this.handleTopDragEnter);e.removeEventListener("dragenter",this.handleTopDragEnterCapture,true);e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,true);e.removeEventListener("dragover",this.handleTopDragOver);e.removeEventListener("dragover",this.handleTopDragOverCapture,true);e.removeEventListener("drop",this.handleTopDrop);e.removeEventListener("drop",this.handleTopDropCapture,true)}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId();const t=this.sourceNodeOptions.get(e);return nI({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){if(this.isDraggingNativeItem()){return"copy"}return this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId();const t=this.sourcePreviewNodeOptions.get(e);return nI({anchorX:.5,anchorY:.5,captureDraggingState:false},t||{})}isDraggingNativeItem(){const t=this.monitor.getItemType();return Object.keys(e).some(n=>e[n]===t)}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode();this.currentNativeSource=nv(e,t);this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource);this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode();this.currentDragSourceNode=e;const t=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var e;return(e=this.rootElement)===null||e===void 0?void 0:e.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,true)},t)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){this.currentDragSourceNode=null;if(this.rootElement){var e;(e=this.window)===null||e===void 0?void 0:e.clearTimeout(this.mouseMoveTimeoutTimer||undefined);this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,true)}this.mouseMoveTimeoutTimer=null;return true}return false}handleDragStart(e,t){if(e.defaultPrevented){return}if(!this.dragStartSourceIds){this.dragStartSourceIds=[]}this.dragStartSourceIds.unshift(t)}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){if(this.dragOverTargetIds===null){this.dragOverTargetIds=[]}this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,n){this.sourcePreviewNodes=new Map;this.sourcePreviewNodeOptions=new Map;this.sourceNodes=new Map;this.sourceNodeOptions=new Map;this.dragStartSourceIds=null;this.dropTargetIds=[];this.dragEnterTargetIds=[];this.currentNativeSource=null;this.currentNativeHandle=null;this.currentDragSourceNode=null;this.altKeyPressed=false;this.mouseMoveTimeoutTimer=null;this.asyncEndDragFrameId=null;this.dragOverTargetIds=null;this.lastClientOffset=null;this.hoverRafId=null;this.getSourceClientOffset=e=>{const t=this.sourceNodes.get(e);return t&&nS(t)||null};this.endDragNativeItem=()=>{if(!this.isDraggingNativeItem()){return}this.actions.endDrag();if(this.currentNativeHandle){this.registry.removeSource(this.currentNativeHandle)}this.currentNativeHandle=null;this.currentNativeSource=null};this.isNodeInDocument=e=>{return Boolean(e&&this.document&&this.document.body&&this.document.body.contains(e))};this.endDragIfSourceWasRemovedFromDOM=()=>{const e=this.currentDragSourceNode;if(e==null||this.isNodeInDocument(e)){return}if(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()){this.actions.endDrag()}this.cancelHover()};this.scheduleHover=e=>{if(this.hoverRafId===null&&typeof requestAnimationFrame!=="undefined"){this.hoverRafId=requestAnimationFrame(()=>{if(this.monitor.isDragging()){this.actions.hover(e||[],{clientOffset:this.lastClientOffset})}this.hoverRafId=null})}};this.cancelHover=()=>{if(this.hoverRafId!==null&&typeof cancelAnimationFrame!=="undefined"){cancelAnimationFrame(this.hoverRafId);this.hoverRafId=null}};this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode();this.dragStartSourceIds=[]};this.handleTopDragStart=e=>{if(e.defaultPrevented){return}const{dragStartSourceIds:t}=this;this.dragStartSourceIds=null;const n=nk(e);if(this.monitor.isDragging()){this.actions.endDrag();this.cancelHover()}this.actions.beginDrag(t||[],{publishSource:false,getSourceClientOffset:this.getSourceClientOffset,clientOffset:n});const{dataTransfer:r}=e;const o=nm(r);if(this.monitor.isDragging()){if(r&&typeof r.setDragImage==="function"){const e=this.monitor.getSourceId();const t=this.sourceNodes.get(e);const o=this.sourcePreviewNodes.get(e)||t;if(o){const{anchorX:e,anchorY:i,offsetX:a,offsetY:s}=this.getCurrentSourcePreviewNodeOptions();const l={anchorX:e,anchorY:i};const u={offsetX:a,offsetY:s};const c=nT(t,o,n,l,u);r.setDragImage(o,c.x,c.y)}}try{r===null||r===void 0?void 0:r.setData("application/json",{})}catch(e){}this.setCurrentDragSourceNode(e.target);const{captureDraggingState:t}=this.getCurrentSourcePreviewNodeOptions();if(!t){setTimeout(()=>this.actions.publishDragSource(),0)}else{this.actions.publishDragSource()}}else if(o){this.beginDragNativeItem(o)}else if(r&&!r.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable"))){return}else{e.preventDefault()}};this.handleTopDragEndCapture=()=>{if(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()){this.actions.endDrag()}this.cancelHover()};this.handleTopDragEnterCapture=e=>{this.dragEnterTargetIds=[];if(this.isDraggingNativeItem()){var t;(t=this.currentNativeSource)===null||t===void 0?void 0:t.loadDataTransfer(e.dataTransfer)}const n=this.enterLeaveCounter.enter(e.target);if(!n||this.monitor.isDragging()){return}const{dataTransfer:r}=e;const o=nm(r);if(o){this.beginDragNativeItem(o,r)}};this.handleTopDragEnter=e=>{const{dragEnterTargetIds:t}=this;this.dragEnterTargetIds=[];if(!this.monitor.isDragging()){return}this.altKeyPressed=e.altKey;if(t.length>0){this.actions.hover(t,{clientOffset:nk(e)})}const n=t.some(e=>this.monitor.canDropOnTarget(e));if(n){e.preventDefault();if(e.dataTransfer){e.dataTransfer.dropEffect=this.getCurrentDropEffect()}}};this.handleTopDragOverCapture=e=>{this.dragOverTargetIds=[];if(this.isDraggingNativeItem()){var t;(t=this.currentNativeSource)===null||t===void 0?void 0:t.loadDataTransfer(e.dataTransfer)}};this.handleTopDragOver=e=>{const{dragOverTargetIds:t}=this;this.dragOverTargetIds=[];if(!this.monitor.isDragging()){e.preventDefault();if(e.dataTransfer){e.dataTransfer.dropEffect="none"}return}this.altKeyPressed=e.altKey;this.lastClientOffset=nk(e);this.scheduleHover(t);const n=(t||[]).some(e=>this.monitor.canDropOnTarget(e));if(n){e.preventDefault();if(e.dataTransfer){e.dataTransfer.dropEffect=this.getCurrentDropEffect()}}else if(this.isDraggingNativeItem()){e.preventDefault()}else{e.preventDefault();if(e.dataTransfer){e.dataTransfer.dropEffect="none"}}};this.handleTopDragLeaveCapture=e=>{if(this.isDraggingNativeItem()){e.preventDefault()}const t=this.enterLeaveCounter.leave(e.target);if(!t){return}if(this.isDraggingNativeItem()){setTimeout(()=>this.endDragNativeItem(),0)}this.cancelHover()};this.handleTopDropCapture=e=>{this.dropTargetIds=[];if(this.isDraggingNativeItem()){var t;e.preventDefault();(t=this.currentNativeSource)===null||t===void 0?void 0:t.loadDataTransfer(e.dataTransfer)}else if(nm(e.dataTransfer)){e.preventDefault()}this.enterLeaveCounter.reset()};this.handleTopDrop=e=>{const{dropTargetIds:t}=this;this.dropTargetIds=[];this.actions.hover(t,{clientOffset:nk(e)});this.actions.drop({dropEffect:this.getCurrentDropEffect()});if(this.isDraggingNativeItem()){this.endDragNativeItem()}else if(this.monitor.isDragging()){this.actions.endDrag()}this.cancelHover()};this.handleSelectStart=e=>{const t=e.target;if(typeof t.dragDrop!=="function"){return}if(t.tagName==="INPUT"||t.tagName==="SELECT"||t.tagName==="TEXTAREA"||t.isContentEditable){return}e.preventDefault();t.dragDrop()};this.options=new nE(t,n);this.actions=e.getActions();this.monitor=e.getMonitor();this.registry=e.getRegistry();this.enterLeaveCounter=new nl(this.isNodeInDocument)}};const nD=function e(e,t,n){return new nM(e,t,n)};var nP=n(59379);var nO=n(45485);var nA=n(81113);var nR=n(99548);var nZ=n(68761);var nz=n(55833);async function nN(e,t,n,r,o){const i=await n();const a=await t(i);if(!a||(await r())["flags.updateNotificationShownForVersion"]===i){return}e({type:"message",title:"A new version of Actual is available!",message:`Version ${i} of Actual was recently released.`,sticky:true,id:"update-notification",button:{title:"Open changelog",action:()=>{window.open("https://actualbudget.org/docs/releases")}},onClose:async()=>{await o({"flags.updateNotificationShownForVersion":i})}})}var nL=n(57555);var nB=n(24868);function nH(){const e=(0,nB.Z)();(0,m.useLayoutEffect)(()=>{window.__navigate=e},[e]);return null};function nF(e){return e.replace("v","").split(".").map(e=>parseInt(e))}function nV(e,t){const n=nF(e);const r=nF(t);return n[0]-r[0]||n[1]-r[1]||n[2]-r[2]}async function nW(){if(s.$8){return Promise.resolve("v99.9.9")}try{const e=await fetch("https://api.github.com/repos/actualbudget/actual/tags");const t=await e.json();const n=t.map(e=>e.name).concat([`v${window.Actual.ACTUAL_VERSION}`]);n.sort(nV);return n[n.length-1]}catch{return"unknown"}}async function nU(e){const t=window.Actual.ACTUAL_VERSION;if(e==="unknown"){return Promise.resolve(false)}return nV(t,e)<0}var nK=n(13015);var n$=n(6083);function nq(){let e=(0,y.v9)(e=>e.account.accountsSyncing);let n=e?e==="__all"?"accounts":e:null;const r=(0,nK.Yz)(n,{from:{opacity:0,transform:"translateY(-100px)"},enter:{opacity:1,transform:"translateY(0)"},leave:{opacity:0,transform:"translateY(-100px)"},unique:true});return(0,t.jsx)(eu.Z,{style:{position:"absolute",top:0,left:0,right:0,marginTop:5,alignItems:"center",zIndex:501},children:r((e,n)=>n&&(0,t.jsx)(nK.q.div,{style:e,children:(0,t.jsxs)(eu.Z,{style:{borderRadius:4,backgroundColor:ei.rS.pillBackgroundSelected,color:ei.rS.pillTextSelected,padding:"5px 13px",flexDirection:"row",alignItems:"center",...ei.W2.shadow},children:[(0,t.jsx)(n$.Z,{animating:true,iconStyle:{color:ei.rS.pillTextSelected}}),(0,t.jsxs)(eS.Z,{children:["Syncing ",n]})]})},n))})}var nY=n(75025);function nG(){let e=(0,nB.Z)();(0,m.useEffect)(()=>{const t=t=>{if(s.jU){return}if(t.metaKey){switch(t.key){case"1":e("/budget");break;case"2":e("/reports");break;case"3":e("/accounts");break;case",":if(s.OS==="mac"){e("/settings")}break;default:}}};document.addEventListener("keydown",t);return()=>document.removeEventListener("keydown",t)},[]);return null}var nX=n(24418);var nQ=n(13910);var nJ=n(3189);var n0=n(11504);var n1=n(9579);var n2=n(11892);var n4=n(24198);var n5=n(59128);function n3(){let e=(0,n2.D9)();let n=(0,n2.YP)();return(0,t.jsxs)(n5.xD,{version:"v2",style:{},children:[(0,t.jsx)(n5._7,{exposed:true,focused:false,selected:e.size>0,onSelect:e=>n({type:"select-all",event:e})}),(0,t.jsx)(n5.bL,{value:"Stage",width:50}),(0,t.jsx)(n5.bL,{value:"Rule",width:"flex"})]})}var n8=n(45219);var n6=n(69304);const n7=(0,n6.n)((0,T.ZP)("schedules").select("*"));var n9=n(99012);function re({value:e}){let n=(0,y.v9)(e=>e.queries.payees);let r=(0,V.yG)(n);let{data:o}=n7.useQuery();return(0,t.jsx)(n9.Z,{value:e,field:"rule",data:o,describe:e=>(0,n0.b5)(e,r[e._payee])})};let rt={color:ei.rS.pageTextPositive};function rn({style:e,...n}){return(0,t.jsx)(eu.Z,{style:{display:"block",maxWidth:"100%",color:ei.rS.pillText,backgroundColor:ei.rS.pillBackgroundLight,borderRadius:4,padding:"3px 5px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",...e},children:n.op==="set"?(0,t.jsx)(ro,{...n}):n.op==="link-schedule"?(0,t.jsx)(ri,{...n}):null})}function ro({op:e,field:n,value:r,options:o}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(eS.Z,{children:(0,nJ.w8)(e)})," ",(0,t.jsx)(eS.Z,{style:rt,children:(0,nJ.gL)(n,o)})," ",(0,t.jsx)(eS.Z,{children:"to "}),(0,t.jsx)(n9.Z,{value:r,field:n})]})}function ri({op:e,value:n}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(eS.Z,{children:(0,nJ.w8)(e)})," ",(0,t.jsx)(re,{value:n})]})};let ra={color:ei.rS.pageTextPositive};function rs({field:e,op:n,value:r,options:o,prefix:i,style:a,inline:s}){return(0,t.jsxs)(eu.Z,{style:{display:"block",maxWidth:"100%",color:ei.rS.pillText,backgroundColor:ei.rS.pillBackgroundLight,borderRadius:4,padding:"3px 5px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",...a},children:[i&&(0,t.jsxs)(eS.Z,{children:[i," "]}),(0,t.jsx)(eS.Z,{style:ra,children:(0,nJ.gL)(e,o)})," ",(0,t.jsx)(eS.Z,{children:(0,nJ.w8)(n)})," ",(0,t.jsx)(n9.Z,{value:r,field:e,inline:s})]})};const rl=(0,m.memo)(({rule:e,hovered:n,selected:r,onHover:o,onEditRule:i})=>{let a=(0,n2.YP)();let s=r?ei.rS.tableBorderSelected:"none";let l=n;return(0,t.jsxs)(n5.X2,{height:"auto",style:{fontSize:13,zIndex:r?101:"auto",borderColor:s,backgroundColor:r?ei.rS.tableRowBackgroundHighlight:l?ei.rS.tableRowBackgroundHover:ei.rS.tableBackground},collapsed:true,onMouseEnter:()=>o&&o(e.id),onMouseLeave:()=>o&&o(null),children:[(0,t.jsx)(n5._7,{exposed:n||r,focused:true,onSelect:t=>{a({type:"select",id:e.id,event:t})},selected:r}),(0,t.jsx)(n5.bL,{name:"stage",width:50,plain:true,style:{color:ei.rS.tableText},children:e.stage&&(0,t.jsx)(eu.Z,{style:{alignSelf:"flex-start",margin:5,backgroundColor:ei.rS.pillBackgroundSelected,color:ei.rS.pillTextSelected,borderRadius:4,padding:"3px 5px"},children:e.stage})}),(0,t.jsx)(n5.gN,{width:"flex",style:{padding:"15px 0"},truncate:false,children:(0,t.jsxs)(eb.Z,{direction:"row",align:"center",children:[(0,t.jsx)(eu.Z,{style:{flex:1,alignItems:"flex-start"},"data-testid":"conditions",children:e.conditions.map((n,r)=>(0,t.jsx)(rs,{field:n.field,op:n.op,inline:true,value:n.value,options:n.options,prefix:r>0?(0,nJ.w8)(e.conditionsOp):null,style:r!==0&&{marginTop:3}},r))}),(0,t.jsx)(eS.Z,{children:(0,t.jsx)(n8.Z,{style:{width:12,height:12,color:ei.rS.tableText}})}),(0,t.jsx)(eu.Z,{style:{flex:1,alignItems:"flex-start"},"data-testid":"actions",children:e.actions.map((e,n)=>(0,t.jsx)(rn,{...e,style:n!==0&&{marginTop:3}},n))})]})}),(0,t.jsx)(n5.bL,{name:"edit",plain:true,style:{padding:"0 15px",paddingLeft:5},children:(0,t.jsx)(em.Z,{as:n5.Sx,onSelect:()=>i(e),children:"Edit"})})]})});var ru=rl;function rc({rules:e,selectedItems:n,hoveredRule:r,onHover:o,onEditRule:i}){if(e.length===0){return null}return(0,t.jsx)(eu.Z,{children:e.map(e=>{let a=r===e.id;let s=n.has(e.id);return(0,t.jsx)(ru,{rule:e,hovered:a,selected:s,onHover:o,onEditRule:i},e.id)})})};function rd({data:e,loadMore:n,style:r,onHoverLeave:o,children:i}){let a=(0,m.useRef)();let s=(0,m.useRef)();let l=(0,m.useRef)();function u(e){if(s.current!=null){if(n&&e.target.scrollTop>s.current-750){n()}}}(0,m.useEffect)(()=>{if(a.current){s.current=a.current.getBoundingClientRect().height}else{s.current=null}},[a.current,e]);return(0,t.jsx)(eu.Z,{style:{flex:1,outline:"none","& .animated .animated-row":{transition:".25s transform"},...r},tabIndex:1,"data-testid":"table",children:(0,t.jsx)(eu.Z,{innerRef:l,style:{maxWidth:"100%",overflow:"auto"},onScroll:u,children:(0,t.jsx)("div",{ref:a,onMouseLeave:o,children:i})})})};function rf(e,t,{payees:n,categories:r,accounts:o}){if(!t)return"";let i=null;if(e==="payee"){i=n.find(e=>e.id===t)}else if(e==="category"){i=r.find(e=>e.id===t)}else if(e==="account"){i=o.find(e=>e.id===t)}else{return t}if(i){return i.name}return"(deleted)"}function rh(e,t){let n=e.conditions.flatMap(e=>[(0,nJ.gL)(e.field),(0,nJ.w8)(e.op),e.op==="oneOf"||e.op==="notOneOf"?e.value.map(n=>rf(e.field,n,t)).join(", "):rf(e.field,e.value,t)]);let r=e.actions.flatMap(e=>{if(e.op==="set"){return[(0,nJ.w8)(e.op),(0,nJ.gL)(e.field),"to",rf(e.field,e.value,t)]}else if(e.op==="link-schedule"){let n=t.schedules.find(t=>t.id===e.value);return[(0,nJ.w8)(e.op),(0,n0.b5)(n,t.payees.find(e=>e.id===n._payee))]}else{return[]}});return(e.stage||"")+" "+n.join(" ")+" "+r.join(" ")}function rp({isModal:e,payeeId:n,setLoading:r}){let[o,i]=(0,m.useState)(null);let[a,s]=(0,m.useState)(null);let[l,u]=(0,m.useState)("");let c=(0,y.I0)();let{data:f}=n7.useQuery();let{list:h}=(0,n1.Z)();let p=(0,y.v9)(e=>({payees:e.queries.payees,accounts:e.queries.accounts,schedules:f}));let g=(0,m.useMemo)(()=>({...p,categories:h}),[p,h]);let v=(0,m.useMemo)(()=>l===""||!a?a:a.filter(e=>rh(e,g).toLowerCase().includes(l.toLowerCase())),[a,l,g]);let w=(0,n2.ZP)("manage-rules",o,[]);let[x,b]=(0,m.useState)(null);async function S(){r(true);let e=null;if(n){e=await (0,q.lW)("payees-get-rules",{id:n})}else{e=await (0,q.lW)("rules-get")}i(e);return e}(0,m.useEffect)(()=>{async function e(){let e=await S();s(e.slice(0,100));r(false);await c((0,nQ.Rr)())}if(n){nL.kp("openModal","manage-rules")}e();return()=>{nL.kp("openModal",null)}},[]);function k(){s(a.concat(o.slice(a.length,a.length+50)))}async function j(){r(true);let{someDeletionsFailed:e}=await (0,q.lW)("rule-delete-all",[...w.items]);if(e){alert("Some rules were not deleted because they are linked to schedules")}let t=await S();s(e=>{return t.slice(0,e.length)});w.dispatch({type:"select-none"});r(false)}let C=(0,m.useCallback)(e=>{c((0,nX.Ll)("edit-rule",{rule:e,onSave:async e=>{let t=await S();s(n=>{let r=t.findIndex(t=>t.id===e.id);if(r>n.length){return t.slice(0,r+75)}else{return t.slice(0,n.length)}});r(false)}}))},[]);function T(){let e={stage:null,conditionsOp:"and",conditions:[{field:"payee",op:"is",value:n||null,type:"id"}],actions:[{op:"set",field:"category",value:null,type:"id"}]};c((0,nX.Ll)("edit-rule",{rule:e,onSave:async e=>{let t=await S();s(n=>{let r=t.findIndex(t=>t.id===e.id);return t.slice(0,r+75)});r(false)}}))}let E=(0,m.useCallback)(e=>{b(e)},[]);if(a===null){return null}return(0,t.jsx)(n2.i5,{instance:w,children:(0,t.jsxs)(eu.Z,{children:[(0,t.jsxs)(eu.Z,{style:{flexDirection:"row",alignItems:"center",padding:e?"0 13px 15px":"0 0 15px",flexShrink:0},children:[(0,t.jsx)(eu.Z,{style:{color:ei.rS.pageTextLight,flexDirection:"row",alignItems:"center",width:"50%"},children:(0,t.jsxs)(eS.Z,{children:["Rules are always run in the order that you see them."," ",(0,t.jsx)(eg.Z,{to:"https://actualbudget.org/docs/budgeting/rules/",linkColor:"muted",children:"Learn more"})]})}),(0,t.jsx)(eu.Z,{style:{flex:1}}),(0,t.jsx)(n4.Z,{placeholder:"Filter rules...",value:l,onChange:u})]}),(0,t.jsxs)(eu.Z,{style:{flex:1},children:[(0,t.jsx)(n3,{}),(0,t.jsx)(rd,{data:v,loadMore:k,style:{marginBottom:-1},children:(0,t.jsx)(rc,{rules:v,selectedItems:w.items,hoveredRule:x,onHover:E,onEditRule:C})})]}),(0,t.jsx)(eu.Z,{style:{paddingBlock:15,paddingInline:e?13:0,borderTop:e&&"1px solid "+ei.rS.pillBorder,flexShrink:0},children:(0,t.jsxs)(eb.Z,{direction:"row",align:"center",justify:"flex-end",spacing:2,children:[w.items.size>0&&(0,t.jsxs)(em.Z,{onClick:j,children:["Delete ",w.items.size," rules"]}),(0,t.jsx)(em.Z,{type:"primary",onClick:T,children:"Create new rule"})]})})]})})}function rg({isModal:e,payeeId:n,setLoading:r=()=>{}}){return(0,t.jsx)(n7.Provider,{children:(0,t.jsx)(rp,{isModal:e,payeeId:n,setLoading:r})})}var rv=n(13308);function rm(){return(0,t.jsx)(rv.T,{title:"Rules",children:(0,t.jsx)(rg,{isModal:false,payeeId:null})})};function ry(e,t,n){return Math.max(t,Math.min(e,n))}const rw={toVector(e,t){if(e===undefined)e=t;return Array.isArray(e)?e:[e,e]},add(e,t){return[e[0]+t[0],e[1]+t[1]]},sub(e,t){return[e[0]-t[0],e[1]-t[1]]},addTo(e,t){e[0]+=t[0];e[1]+=t[1]},subTo(e,t){e[0]-=t[0];e[1]-=t[1]}};function rx(e,t,n){if(t===0||Math.abs(t)===Infinity)return Math.pow(e,n*5);return e*t*n/(t+n*e)}function rb(e,t,n,r=.15){if(r===0)return ry(e,t,n);if(e<t)return-rx(t-e,n-t,r)+t;if(e>n)return+rx(e-n,n-t,r)+n;return e}function rS(e,[t,n],[r,o]){const[[i,a],[s,l]]=e;return[rb(t,i,a,r),rb(n,s,l,o)]};function rk(e,t){if(typeof e!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==undefined){var r=n.call(e,t||"default");if(typeof r!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rj(e){var t=rk(e,"string");return typeof t==="symbol"?t:String(t)}function rC(e,t,n){t=rj(t);if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}function rT(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 rE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rT(Object(n),!0).forEach(function(t){rC(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rT(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const r_={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function rI(e){if(!e)return"";return e[0].toUpperCase()+e.slice(1)}const rM=["enter","leave"];function rD(e=false,t){return e&&!rM.includes(t)}function rP(e,t="",n=false){const r=r_[e];const o=r?r[t]||t:t;return"on"+rI(e)+rI(o)+(rD(n,o)?"Capture":"")}const rO=["gotpointercapture","lostpointercapture"];function rA(e){let t=e.substring(2).toLowerCase();const n=!!~t.indexOf("passive");if(n)t=t.replace("passive","");const r=rO.includes(t)?"capturecapture":"capture";const o=!!~t.indexOf(r);if(o)t=t.replace("capture","");return{device:t,capture:o,passive:n}}function rR(e,t=""){const n=r_[e];const r=n?n[t]||t:t;return e+r}function rZ(e){return"touches"in e}function rz(e){if(rZ(e))return"touch";if("pointerType"in e)return e.pointerType;return"mouse"}function rN(e){return Array.from(e.touches).filter(t=>{var n,r;return t.target===e.currentTarget||((n=e.currentTarget)===null||n===void 0||(r=n.contains)===null||r===void 0?void 0:r.call(n,t.target))})}function rL(e){return e.type==="touchend"||e.type==="touchcancel"?e.changedTouches:e.targetTouches}function rB(e){return rZ(e)?rL(e)[0]:e}function rH(e,t){try{const n=t.clientX-e.clientX;const r=t.clientY-e.clientY;const o=(t.clientX+e.clientX)/2;const i=(t.clientY+e.clientY)/2;const a=Math.hypot(n,r);const s=-(Math.atan2(n,r)*180)/Math.PI;const l=[o,i];return{angle:s,distance:a,origin:l}}catch(e){}return null}function rF(e){return rN(e).map(e=>e.identifier)}function rV(e,t){const[n,r]=Array.from(e.touches).filter(e=>t.includes(e.identifier));return rH(n,r)}function rW(e){const t=rB(e);return rZ(e)?t.identifier:t.pointerId}function rU(e){const t=rB(e);return[t.clientX,t.clientY]}const rK=40;const r$=800;function rq(e){let{deltaX:t,deltaY:n,deltaMode:r}=e;if(r===1){t*=rK;n*=rK}else if(r===2){t*=r$;n*=r$}return[t,n]}function rY(e){var t,n;const{scrollX:r,scrollY:o,scrollLeft:i,scrollTop:a}=e.currentTarget;return[(t=r!==null&&r!==void 0?r:i)!==null&&t!==void 0?t:0,(n=o!==null&&o!==void 0?o:a)!==null&&n!==void 0?n:0]}function rG(e){const t={};if("buttons"in e)t.buttons=e.buttons;if("shiftKey"in e){const{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i}=e;Object.assign(t,{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i})}return t}function rX(e,...t){if(typeof e==="function"){return e(...t)}else{return e}}function rQ(){}function rJ(...e){if(e.length===0)return rQ;if(e.length===1)return e[0];return function(){let t;for(const n of e){t=n.apply(this,arguments)||t}return t}}function r0(e,t){return Object.assign({},t,e||{})}const r1=32;class r2{constructor(e,t,n){this.ctrl=e;this.args=t;this.key=n;if(!this.state){this.state={};this.computeValues([0,0]);this.computeInitial();if(this.init)this.init();this.reset()}}get state(){return this.ctrl.state[this.key]}set state(e){this.ctrl.state[this.key]=e}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:e,shared:t,ingKey:n,args:r}=this;t[n]=e._active=e.active=e._blocked=e._force=false;e._step=[false,false];e.intentional=false;e._movement=[0,0];e._distance=[0,0];e._direction=[0,0];e._delta=[0,0];e._bounds=[[-Infinity,Infinity],[-Infinity,Infinity]];e.args=r;e.axis=undefined;e.memo=undefined;e.elapsedTime=e.timeDelta=0;e.direction=[0,0];e.distance=[0,0];e.overflow=[0,0];e._movementBound=[false,false];e.velocity=[0,0];e.movement=[0,0];e.delta=[0,0];e.timeStamp=0}start(e){const t=this.state;const n=this.config;if(!t._active){this.reset();this.computeInitial();t._active=true;t.target=e.target;t.currentTarget=e.currentTarget;t.lastOffset=n.from?rX(n.from,t):t.offset;t.offset=t.lastOffset;t.startTime=t.timeStamp=e.timeStamp}}computeValues(e){const t=this.state;t._values=e;t.values=this.config.transform(e)}computeInitial(){const e=this.state;e._initial=e._values;e.initial=e.values}compute(e){const{state:t,config:n,shared:r}=this;t.args=this.args;let o=0;if(e){t.event=e;if(n.preventDefault&&e.cancelable)t.event.preventDefault();t.type=e.type;r.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size;r.locked=!!document.pointerLockElement;Object.assign(r,rG(e));r.down=r.pressed=r.buttons%2===1||r.touches>0;o=e.timeStamp-t.timeStamp;t.timeStamp=e.timeStamp;t.elapsedTime=t.timeStamp-t.startTime}if(t._active){const e=t._delta.map(Math.abs);rw.addTo(t._distance,e)}if(this.axisIntent)this.axisIntent(e);const[i,a]=t._movement;const[s,l]=n.threshold;const{_step:u,values:c}=t;if(n.hasCustomTransform){if(u[0]===false)u[0]=Math.abs(i)>=s&&c[0];if(u[1]===false)u[1]=Math.abs(a)>=l&&c[1]}else{if(u[0]===false)u[0]=Math.abs(i)>=s&&Math.sign(i)*s;if(u[1]===false)u[1]=Math.abs(a)>=l&&Math.sign(a)*l}t.intentional=u[0]!==false||u[1]!==false;if(!t.intentional)return;const f=[0,0];if(n.hasCustomTransform){const[e,t]=c;f[0]=u[0]!==false?e-u[0]:0;f[1]=u[1]!==false?t-u[1]:0}else{f[0]=u[0]!==false?i-u[0]:0;f[1]=u[1]!==false?a-u[1]:0}if(this.restrictToAxis&&!t._blocked)this.restrictToAxis(f);const h=t.offset;const p=t._active&&!t._blocked||t.active;if(p){t.first=t._active&&!t.active;t.last=!t._active&&t.active;t.active=r[this.ingKey]=t._active;if(e){if(t.first){if("bounds"in n)t._bounds=rX(n.bounds,t);if(this.setup)this.setup()}t.movement=f;this.computeOffset()}}const[g,v]=t.offset;const[[m,y],[w,x]]=t._bounds;t.overflow=[g<m?-1:g>y?1:0,v<w?-1:v>x?1:0];t._movementBound[0]=t.overflow[0]?t._movementBound[0]===false?t._movement[0]:t._movementBound[0]:false;t._movementBound[1]=t.overflow[1]?t._movementBound[1]===false?t._movement[1]:t._movementBound[1]:false;const b=t._active?n.rubberband||[0,0]:[0,0];t.offset=rS(t._bounds,t.offset,b);t.delta=rw.sub(t.offset,h);this.computeMovement();if(p&&(!t.last||o>r1)){t.delta=rw.sub(t.offset,h);const e=t.delta.map(Math.abs);rw.addTo(t.distance,e);t.direction=t.delta.map(Math.sign);t._direction=t._delta.map(Math.sign);if(!t.first&&o>0){t.velocity=[e[0]/o,e[1]/o];t.timeDelta=o}}}emit(){const e=this.state;const t=this.shared;const n=this.config;if(!e._active)this.clean();if((e._blocked||!e.intentional)&&!e._force&&!n.triggerAllEvents)return;const r=this.handler(rE(rE(rE({},t),e),{},{[this.aliasKey]:e.values}));if(r!==undefined)e.memo=r}clean(){this.eventStore.clean();this.timeoutStore.clean()}}function r4([e,t],n){const r=Math.abs(e);const o=Math.abs(t);if(r>o&&r>n){return"x"}if(o>r&&o>n){return"y"}return undefined}class r5 extends r2{constructor(...e){super(...e);rC(this,"aliasKey","xy")}reset(){super.reset();this.state.axis=undefined}init(){this.state.offset=[0,0];this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=rw.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=rw.sub(this.state.offset,this.state.lastOffset)}axisIntent(e){const t=this.state;const n=this.config;if(!t.axis&&e){const r=typeof n.axisThreshold==="object"?n.axisThreshold[rz(e)]:n.axisThreshold;t.axis=r4(t._movement,r)}t._blocked=(n.lockDirection||!!n.axis)&&!t.axis||!!n.axis&&n.axis!==t.axis}restrictToAxis(e){if(this.config.axis||this.config.lockDirection){switch(this.state.axis){case"x":e[1]=0;break;case"y":e[0]=0;break}}}}const r3=e=>e;const r8=.15;const r6={enabled(e=true){return e},eventOptions(e,t,n){return rE(rE({},n.shared.eventOptions),e)},preventDefault(e=false){return e},triggerAllEvents(e=false){return e},rubberband(e=0){switch(e){case true:return[r8,r8];case false:return[0,0];default:return rw.toVector(e)}},from(e){if(typeof e==="function")return e;if(e!=null)return rw.toVector(e)},transform(e,t,n){const r=e||n.shared.transform;this.hasCustomTransform=!!r;if(false){}return r||r3},threshold(e){return rw.toVector(e,0)}};if(false){}const r7=0;const r9=rE(rE({},r6),{},{axis(e,t,{axis:n}){this.lockDirection=n==="lock";if(!this.lockDirection)return n},axisThreshold(e=r7){return e},bounds(e={}){if(typeof e==="function"){return t=>r9.bounds(e(t))}if("current"in e){return()=>e.current}if(typeof HTMLElement==="function"&&e instanceof HTMLElement){return e}const{left:t=-Infinity,right:n=Infinity,top:r=-Infinity,bottom:o=Infinity}=e;return[[t,n],[r,o]]}});const oe={ArrowRight:(e,t=1)=>[e*t,0],ArrowLeft:(e,t=1)=>[-1*e*t,0],ArrowUp:(e,t=1)=>[0,-1*e*t],ArrowDown:(e,t=1)=>[0,e*t]};class ot extends r5{constructor(...e){super(...e);rC(this,"ingKey","dragging")}reset(){super.reset();const e=this.state;e._pointerId=undefined;e._pointerActive=false;e._keyboardActive=false;e._preventScroll=false;e._delayed=false;e.swipe=[0,0];e.tap=false;e.canceled=false;e.cancel=this.cancel.bind(this)}setup(){const e=this.state;if(e._bounds instanceof HTMLElement){const t=e._bounds.getBoundingClientRect();const n=e.currentTarget.getBoundingClientRect();const r={left:t.left-n.left+e.offset[0],right:t.right-n.right+e.offset[0],top:t.top-n.top+e.offset[1],bottom:t.bottom-n.bottom+e.offset[1]};e._bounds=r9.bounds(r)}}cancel(){const e=this.state;if(e.canceled)return;e.canceled=true;e._active=false;setTimeout(()=>{this.compute();this.emit()},0)}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean();this.state._pointerActive=false;this.state._keyboardActive=false;super.clean()}pointerDown(e){const t=this.config;const n=this.state;if(e.buttons!=null&&(Array.isArray(t.pointerButtons)?!t.pointerButtons.includes(e.buttons):t.pointerButtons!==-1&&t.pointerButtons!==e.buttons))return;const r=this.ctrl.setEventIds(e);if(t.pointerCapture){e.target.setPointerCapture(e.pointerId)}if(r&&r.size>1&&n._pointerActive)return;this.start(e);this.setupPointer(e);n._pointerId=rW(e);n._pointerActive=true;this.computeValues(rU(e));this.computeInitial();if(t.preventScrollAxis&&rz(e)!=="mouse"){n._active=false;this.setupScrollPrevention(e)}else if(t.delay>0){this.setupDelayTrigger(e);if(t.triggerAllEvents){this.compute(e);this.emit()}}else{this.startPointerDrag(e)}}startPointerDrag(e){const t=this.state;t._active=true;t._preventScroll=true;t._delayed=false;this.compute(e);this.emit()}pointerMove(e){const t=this.state;const n=this.config;if(!t._pointerActive)return;const r=rW(e);if(t._pointerId!==undefined&&r!==t._pointerId)return;const o=rU(e);if(document.pointerLockElement===e.target){t._delta=[e.movementX,e.movementY]}else{t._delta=rw.sub(o,t._values);this.computeValues(o)}rw.addTo(t._movement,t._delta);this.compute(e);if(t._delayed&&t.intentional){this.timeoutStore.remove("dragDelay");t.active=false;this.startPointerDrag(e);return}if(n.preventScrollAxis&&!t._preventScroll){if(t.axis){if(t.axis===n.preventScrollAxis||n.preventScrollAxis==="xy"){t._active=false;this.clean();return}else{this.timeoutStore.remove("startPointerDrag");this.startPointerDrag(e);return}}else{return}}this.emit()}pointerUp(e){this.ctrl.setEventIds(e);try{if(this.config.pointerCapture&&e.target.hasPointerCapture(e.pointerId)){;e.target.releasePointerCapture(e.pointerId)}}catch(e){if(false){}}const t=this.state;const n=this.config;if(!t._active||!t._pointerActive)return;const r=rW(e);if(t._pointerId!==undefined&&r!==t._pointerId)return;this.state._pointerActive=false;this.setActive();this.compute(e);const[o,i]=t._distance;t.tap=o<=n.tapsThreshold&&i<=n.tapsThreshold;if(t.tap&&n.filterTaps){t._force=true}else{const[e,r]=t._delta;const[o,i]=t._movement;const[a,s]=n.swipe.velocity;const[l,u]=n.swipe.distance;const c=n.swipe.duration;if(t.elapsedTime<c){const n=Math.abs(e/t.timeDelta);const c=Math.abs(r/t.timeDelta);if(n>a&&Math.abs(o)>l)t.swipe[0]=Math.sign(e);if(c>s&&Math.abs(i)>u)t.swipe[1]=Math.sign(r)}}this.emit()}pointerClick(e){if(!this.state.tap&&e.detail>0){e.preventDefault();e.stopPropagation()}}setupPointer(e){const t=this.config;const n=t.device;if(false){}if(t.pointerLock){e.currentTarget.requestPointerLock()}if(!t.pointerCapture){this.eventStore.add(this.sharedConfig.window,n,"change",this.pointerMove.bind(this));this.eventStore.add(this.sharedConfig.window,n,"end",this.pointerUp.bind(this));this.eventStore.add(this.sharedConfig.window,n,"cancel",this.pointerUp.bind(this))}}pointerClean(){if(this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget){document.exitPointerLock()}}preventScroll(e){if(this.state._preventScroll&&e.cancelable){e.preventDefault()}}setupScrollPrevention(e){this.state._preventScroll=false;on(e);const t=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:false});this.eventStore.add(this.sharedConfig.window,"touch","end",t);this.eventStore.add(this.sharedConfig.window,"touch","cancel",t);this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,e)}setupDelayTrigger(e){this.state._delayed=true;this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0];this.startPointerDrag(e)},this.config.delay)}keyDown(e){const t=oe[e.key];if(t){const n=this.state;const r=e.shiftKey?10:e.altKey?.1:1;this.start(e);n._delta=t(this.config.keyboardDisplacement,r);n._keyboardActive=true;rw.addTo(n._movement,n._delta);this.compute(e);this.emit()}}keyUp(e){if(!(e.key in oe))return;this.state._keyboardActive=false;this.setActive();this.compute(e);this.emit()}bind(e){const t=this.config.device;e(t,"start",this.pointerDown.bind(this));if(this.config.pointerCapture){e(t,"change",this.pointerMove.bind(this));e(t,"end",this.pointerUp.bind(this));e(t,"cancel",this.pointerUp.bind(this));e("lostPointerCapture","",this.pointerUp.bind(this))}if(this.config.keys){e("key","down",this.keyDown.bind(this));e("key","up",this.keyUp.bind(this))}if(this.config.filterTaps){e("click","",this.pointerClick.bind(this),{capture:true,passive:false})}}}function on(e){"persist"in e&&typeof e.persist==="function"&&e.persist()}const oo=typeof window!=="undefined"&&window.document&&window.document.createElement;function oi(){return oo&&"ontouchstart"in window}function oa(){return oi()||oo&&window.navigator.maxTouchPoints>1}function os(){return oo&&"onpointerdown"in window}function ol(){return oo&&"exitPointerLock"in window.document}function ou(){try{return"constructor"in GestureEvent}catch(e){return false}}const oc={isBrowser:oo,gesture:ou(),touch:oi(),touchscreen:oa(),pointer:os(),pointerLock:ol()};const od=250;const of=180;const oh=.5;const op=50;const og=250;const ov=10;const om={mouse:0,touch:0,pen:8};const oy=rE(rE({},r9),{},{device(e,t,{pointer:{touch:n=false,lock:r=false,mouse:o=false}={}}){this.pointerLock=r&&oc.pointerLock;if(oc.touch&&n)return"touch";if(this.pointerLock)return"mouse";if(oc.pointer&&!o)return"pointer";if(oc.touch)return"touch";return"mouse"},preventScrollAxis(e,t,{preventScroll:n}){this.preventScrollDelay=typeof n==="number"?n:n||n===undefined&&e?od:undefined;if(!oc.touchscreen||n===false)return undefined;return e?e:n!==undefined?"y":undefined},pointerCapture(e,t,{pointer:{capture:n=true,buttons:r=1,keys:o=true}={}}){this.pointerButtons=r;this.keys=o;return!this.pointerLock&&this.device==="pointer"&&n},threshold(e,t,{filterTaps:n=false,tapsThreshold:r=3,axis:o=undefined}){const i=rw.toVector(e,n?r:o?1:0);this.filterTaps=n;this.tapsThreshold=r;return i},swipe({velocity:e=oh,distance:t=op,duration:n=og}={}){return{velocity:this.transform(rw.toVector(e)),distance:this.transform(rw.toVector(t)),duration:n}},delay(e=0){switch(e){case true:return of;case false:return 0;default:return e}},axisThreshold(e){if(!e)return om;return rE(rE({},om),e)},keyboardDisplacement(e=ov){return e}});if(false){}function ow(e){const[t,n]=e.overflow;const[r,o]=e._delta;const[i,a]=e._direction;if(t<0&&r>0&&i<0||t>0&&r<0&&i>0){e._movement[0]=e._movementBound[0]}if(n<0&&o>0&&a<0||n>0&&o<0&&a>0){e._movement[1]=e._movementBound[1]}}const ox=30;const ob=100;class oS extends r2{constructor(...e){super(...e);rC(this,"ingKey","pinching");rC(this,"aliasKey","da")}init(){this.state.offset=[1,0];this.state.lastOffset=[1,0];this.state._pointerEvents=new Map}reset(){super.reset();const e=this.state;e._touchIds=[];e.canceled=false;e.cancel=this.cancel.bind(this);e.turns=0}computeOffset(){const{type:e,movement:t,lastOffset:n}=this.state;if(e==="wheel"){this.state.offset=rw.add(t,n)}else{this.state.offset=[(1+t[0])*n[0],t[1]+n[1]]}}computeMovement(){const{offset:e,lastOffset:t}=this.state;this.state.movement=[e[0]/t[0],e[1]-t[1]]}axisIntent(){const e=this.state;const[t,n]=e._movement;if(!e.axis){const r=Math.abs(t)*ox-Math.abs(n);if(r<0)e.axis="angle";else if(r>0)e.axis="scale"}}restrictToAxis(e){if(this.config.lockDirection){if(this.state.axis==="scale")e[1]=0;else if(this.state.axis==="angle")e[0]=0}}cancel(){const e=this.state;if(e.canceled)return;setTimeout(()=>{e.canceled=true;e._active=false;this.compute();this.emit()},0)}touchStart(e){this.ctrl.setEventIds(e);const t=this.state;const n=this.ctrl.touchIds;if(t._active){if(t._touchIds.every(e=>n.has(e)))return}if(n.size<2)return;this.start(e);t._touchIds=Array.from(n).slice(0,2);const r=rV(e,t._touchIds);if(!r)return;this.pinchStart(e,r)}pointerStart(e){if(e.buttons!=null&&e.buttons%2!==1)return;this.ctrl.setEventIds(e);e.target.setPointerCapture(e.pointerId);const t=this.state;const n=t._pointerEvents;const r=this.ctrl.pointerIds;if(t._active){if(Array.from(n.keys()).every(e=>r.has(e)))return}if(n.size<2){n.set(e.pointerId,e)}if(t._pointerEvents.size<2)return;this.start(e);const o=rH(...Array.from(n.values()));if(!o)return;this.pinchStart(e,o)}pinchStart(e,t){const n=this.state;n.origin=t.origin;this.computeValues([t.distance,t.angle]);this.computeInitial();this.compute(e);this.emit()}touchMove(e){if(!this.state._active)return;const t=rV(e,this.state._touchIds);if(!t)return;this.pinchMove(e,t)}pointerMove(e){const t=this.state._pointerEvents;if(t.has(e.pointerId)){t.set(e.pointerId,e)}if(!this.state._active)return;const n=rH(...Array.from(t.values()));if(!n)return;this.pinchMove(e,n)}pinchMove(e,t){const n=this.state;const r=n._values[1];const o=t.angle-r;let i=0;if(Math.abs(o)>270)i+=Math.sign(o);this.computeValues([t.distance,t.angle-360*i]);n.origin=t.origin;n.turns=i;n._movement=[n._values[0]/n._initial[0]-1,n._values[1]-n._initial[1]];this.compute(e);this.emit()}touchEnd(e){this.ctrl.setEventIds(e);if(!this.state._active)return;if(this.state._touchIds.some(e=>!this.ctrl.touchIds.has(e))){this.state._active=false;this.compute(e);this.emit()}}pointerEnd(e){const t=this.state;this.ctrl.setEventIds(e);try{e.target.releasePointerCapture(e.pointerId)}catch(e){}if(t._pointerEvents.has(e.pointerId)){t._pointerEvents.delete(e.pointerId)}if(!t._active)return;if(t._pointerEvents.size<2){t._active=false;this.compute(e);this.emit()}}gestureStart(e){if(e.cancelable)e.preventDefault();const t=this.state;if(t._active)return;this.start(e);this.computeValues([e.scale,e.rotation]);t.origin=[e.clientX,e.clientY];this.compute(e);this.emit()}gestureMove(e){if(e.cancelable)e.preventDefault();if(!this.state._active)return;const t=this.state;this.computeValues([e.scale,e.rotation]);t.origin=[e.clientX,e.clientY];const n=t._movement;t._movement=[e.scale-1,e.rotation];t._delta=rw.sub(t._movement,n);this.compute(e);this.emit()}gestureEnd(e){if(!this.state._active)return;this.state._active=false;this.compute(e);this.emit()}wheel(e){const t=this.config.modifierKey;if(t&&(Array.isArray(t)?!t.find(t=>e[t]):!e[t]))return;if(!this.state._active)this.wheelStart(e);else this.wheelChange(e);this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this))}wheelStart(e){this.start(e);this.wheelChange(e)}wheelChange(e){const t="uv"in e;if(!t){if(e.cancelable){e.preventDefault()}if(false){}}const n=this.state;n._delta=[-rq(e)[1]/ob*n.offset[0],0];rw.addTo(n._movement,n._delta);ow(n);this.state.origin=[e.clientX,e.clientY];this.compute(e);this.emit()}wheelEnd(){if(!this.state._active)return;this.state._active=false;this.compute();this.emit()}bind(e){const t=this.config.device;if(!!t){e(t,"start",this[t+"Start"].bind(this));e(t,"change",this[t+"Move"].bind(this));e(t,"end",this[t+"End"].bind(this));e(t,"cancel",this[t+"End"].bind(this));e("lostPointerCapture","",this[t+"End"].bind(this))}if(this.config.pinchOnWheel){e("wheel","",this.wheel.bind(this),{passive:false})}}}const ok=rE(rE({},r6),{},{device(e,t,{shared:n,pointer:{touch:r=false}={}}){const o=n;if(o.target&&!oc.touch&&oc.gesture)return"gesture";if(oc.touch&&r)return"touch";if(oc.touchscreen){if(oc.pointer)return"pointer";if(oc.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:r={}}){const o=e=>{const t=r0(rX(n,e),{min:-Infinity,max:Infinity});return[t.min,t.max]};const i=e=>{const t=r0(rX(r,e),{min:-Infinity,max:Infinity});return[t.min,t.max]};if(typeof n!=="function"&&typeof r!=="function")return[o(),i()];return e=>[o(e),i(e)]},threshold(e,t,n){this.lockDirection=n.axis==="lock";const r=rw.toVector(e,this.lockDirection?[.1,3]:0);return r},modifierKey(e){if(e===undefined)return"ctrlKey";return e},pinchOnWheel(e=true){return e}});class oj extends r5{constructor(...e){super(...e);rC(this,"ingKey","moving")}move(e){if(this.config.mouseOnly&&e.pointerType!=="mouse")return;if(!this.state._active)this.moveStart(e);else this.moveChange(e);this.timeoutStore.add("moveEnd",this.moveEnd.bind(this))}moveStart(e){this.start(e);this.computeValues(rU(e));this.compute(e);this.computeInitial();this.emit()}moveChange(e){if(!this.state._active)return;const t=rU(e);const n=this.state;n._delta=rw.sub(t,n._values);rw.addTo(n._movement,n._delta);this.computeValues(t);this.compute(e);this.emit()}moveEnd(e){if(!this.state._active)return;this.state._active=false;this.compute(e);this.emit()}bind(e){e("pointer","change",this.move.bind(this));e("pointer","leave",this.moveEnd.bind(this))}}const oC=rE(rE({},r9),{},{mouseOnly:(e=true)=>e});class oT extends r5{constructor(...e){super(...e);rC(this,"ingKey","scrolling")}scroll(e){if(!this.state._active)this.start(e);this.scrollChange(e);this.timeoutStore.add("scrollEnd",this.scrollEnd.bind(this))}scrollChange(e){if(e.cancelable)e.preventDefault();const t=this.state;const n=rY(e);t._delta=rw.sub(n,t._values);rw.addTo(t._movement,t._delta);this.computeValues(n);this.compute(e);this.emit()}scrollEnd(){if(!this.state._active)return;this.state._active=false;this.compute();this.emit()}bind(e){e("scroll","",this.scroll.bind(this))}}const oE=r9;class o_ extends r5{constructor(...e){super(...e);rC(this,"ingKey","wheeling")}wheel(e){if(!this.state._active)this.start(e);this.wheelChange(e);this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this))}wheelChange(e){const t=this.state;t._delta=rq(e);rw.addTo(t._movement,t._delta);ow(t);this.compute(e);this.emit()}wheelEnd(){if(!this.state._active)return;this.state._active=false;this.compute();this.emit()}bind(e){e("wheel","",this.wheel.bind(this))}}const oI=r9;class oM extends r5{constructor(...e){super(...e);rC(this,"ingKey","hovering")}enter(e){if(this.config.mouseOnly&&e.pointerType!=="mouse")return;this.start(e);this.computeValues(rU(e));this.compute(e);this.emit()}leave(e){if(this.config.mouseOnly&&e.pointerType!=="mouse")return;const t=this.state;if(!t._active)return;t._active=false;const n=rU(e);t._movement=t._delta=rw.sub(n,t._values);this.computeValues(n);this.compute(e);t.delta=t.movement;this.emit()}bind(e){e("pointer","enter",this.enter.bind(this));e("pointer","leave",this.leave.bind(this))}}const oD=rE(rE({},r9),{},{mouseOnly:(e=true)=>e});const oP=new Map;const oO=new Map;function oA(e){oP.set(e.key,e.engine);oO.set(e.key,e.resolver)}const oR={key:"drag",engine:ot,resolver:oy};const oZ={key:"hover",engine:oM,resolver:oD};const oz={key:"move",engine:oj,resolver:oC};const oN={key:"pinch",engine:oS,resolver:ok};const oL={key:"scroll",engine:oT,resolver:oE};const oB={key:"wheel",engine:o_,resolver:oI};function oH(e,t){if(e==null)return{};var n={};var r=Object.keys(e);var o,i;for(i=0;i<r.length;i++){o=r[i];if(t.indexOf(o)>=0)continue;n[o]=e[o]}return n}function oF(e,t){if(e==null)return{};var n=oH(e,t);var r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++){r=i[o];if(t.indexOf(r)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(e,r))continue;n[r]=e[r]}}return n}const oV={target(e){if(e){return()=>"current"in e?e.current:e}return undefined},enabled(e=true){return e},window(e=oc.isBrowser?window:undefined){return e},eventOptions({passive:e=true,capture:t=false}={}){return{passive:e,capture:t}},transform(e){return e}};const oW=["target","eventOptions","window","enabled","transform"];function oU(e={},t){const n={};for(const[r,o]of Object.entries(t)){switch(typeof o){case"function":if(false){}else{n[r]=o.call(n,e[r],r,e)}break;case"object":n[r]=oU(e[r],o);break;case"boolean":if(o)n[r]=e[r];break}}return n}function oK(e,t,n={}){const r=e,{target:o,eventOptions:i,window:a,enabled:s,transform:l}=r,u=oF(r,oW);n.shared=oU({target:o,eventOptions:i,window:a,enabled:s,transform:l},oV);if(t){const e=oO.get(t);n[t]=oU(rE({shared:n.shared},u),e)}else{for(const e in u){const t=oO.get(e);if(t){n[e]=oU(rE({shared:n.shared},u[e]),t)}else if(false){}}}return n}class o${constructor(e,t){rC(this,"_listeners",new Set);this._ctrl=e;this._gestureKey=t}add(e,t,n,r,o){const i=this._listeners;const a=rR(t,n);const s=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{};const l=rE(rE({},s),o);e.addEventListener(a,r,l);const u=()=>{e.removeEventListener(a,r,l);i.delete(u)};i.add(u);return u}clean(){this._listeners.forEach(e=>e());this._listeners.clear()}}class oq{constructor(){rC(this,"_timeouts",new Map)}add(e,t,n=140,...r){this.remove(e);this._timeouts.set(e,window.setTimeout(t,n,...r))}remove(e){const t=this._timeouts.get(e);if(t)window.clearTimeout(t)}clean(){this._timeouts.forEach(e=>void window.clearTimeout(e));this._timeouts.clear()}}class oY{constructor(e){rC(this,"gestures",new Set);rC(this,"_targetEventStore",new o$(this));rC(this,"gestureEventStores",{});rC(this,"gestureTimeoutStores",{});rC(this,"handlers",{});rC(this,"config",{});rC(this,"pointerIds",new Set);rC(this,"touchIds",new Set);rC(this,"state",{shared:{shiftKey:false,metaKey:false,ctrlKey:false,altKey:false}});oX(this,e)}setEventIds(e){if(rZ(e)){this.touchIds=new Set(rF(e));return this.touchIds}else if("pointerId"in e){if(e.type==="pointerup"||e.type==="pointercancel")this.pointerIds.delete(e.pointerId);else if(e.type==="pointerdown")this.pointerIds.add(e.pointerId);return this.pointerIds}}applyHandlers(e,t){this.handlers=e;this.nativeHandlers=t}applyConfig(e,t){this.config=oK(e,t,this.config)}clean(){this._targetEventStore.clean();for(const e of this.gestures){this.gestureEventStores[e].clean();this.gestureTimeoutStores[e].clean()}}effect(){if(this.config.shared.target)this.bind();return()=>this._targetEventStore.clean()}bind(...e){const t=this.config.shared;const n={};let r;if(t.target){r=t.target();if(!r)return}if(t.enabled){for(const t of this.gestures){const o=this.config[t];const i=oQ(n,o.eventOptions,!!r);if(o.enabled){const n=oP.get(t);new n(this,e,t).bind(i)}}const o=oQ(n,t.eventOptions,!!r);for(const t in this.nativeHandlers){o(t,"",n=>this.nativeHandlers[t](rE(rE({},this.state.shared),{},{event:n,args:e})),undefined,true)}}for(const e in n){n[e]=rJ(...n[e])}if(!r)return n;for(const e in n){const{device:t,capture:o,passive:i}=rA(e);this._targetEventStore.add(r,t,"",n[e],{capture:o,passive:i})}}}function oG(e,t){e.gestures.add(t);e.gestureEventStores[t]=new o$(e,t);e.gestureTimeoutStores[t]=new oq}function oX(e,t){if(t.drag)oG(e,"drag");if(t.wheel)oG(e,"wheel");if(t.scroll)oG(e,"scroll");if(t.move)oG(e,"move");if(t.pinch)oG(e,"pinch");if(t.hover)oG(e,"hover")}const oQ=(e,t,n)=>(r,o,i,a={},s=false)=>{var l,u;const c=(l=a.capture)!==null&&l!==void 0?l:t.capture;const f=(u=a.passive)!==null&&u!==void 0?u:t.passive;let h=s?r:rP(r,o,c);if(n&&f)h+="Passive";e[h]=e[h]||[];e[h].push(i)};const oJ=/^on(Drag|Wheel|Scroll|Move|Pinch|Hover)/;function o0(e){const t={};const n={};const r=new Set;for(let o in e){if(oJ.test(o)){r.add(RegExp.lastMatch);n[o]=e[o]}else{t[o]=e[o]}}return[n,t,r]}function o1(e,t,n,r,o,i){if(!e.has(n))return;if(!EngineMap.has(r)){if(false){}return}const a=n+"Start";const s=n+"End";const l=e=>{let r=undefined;if(e.first&&a in t)t[a](e);if(n in t)r=t[n](e);if(e.last&&s in t)t[s](e);return r};o[r]=l;i[r]=i[r]||{}}function o2(e,t){const[n,r,o]=o0(e);const i={};o1(o,n,"onDrag","drag",i,t);o1(o,n,"onWheel","wheel",i,t);o1(o,n,"onScroll","scroll",i,t);o1(o,n,"onPinch","pinch",i,t);o1(o,n,"onMove","move",i,t);o1(o,n,"onHover","hover",i,t);return{handlers:i,config:t,nativeHandlers:r}};function o4(e,t={},n,r){const o=m.useMemo(()=>new oY(e),[]);o.applyHandlers(e,r);o.applyConfig(t,n);m.useEffect(o.effect.bind(o));m.useEffect(()=>{return o.clean.bind(o)},[]);if(t.target===undefined){return o.bind.bind(o)}return undefined}function o5(e,t){oA(oR);return o4({drag:e},t||{},"drag")}function o3(e,t){registerAction(pinchAction);return o4({pinch:e},t||{},"pinch")}function o8(e,t){registerAction(wheelAction);return o4({wheel:e},t||{},"wheel")}function o6(e,t){registerAction(scrollAction);return o4({scroll:e},t||{},"scroll")}function o7(e,t){registerAction(moveAction);return o4({move:e},t||{},"move")}function o9(e,t){registerAction(hoverAction);return o4({hover:e},t||{},"hover")}function ie(e){e.forEach(registerAction);return function e(e,t){const{handlers:n,nativeHandlers:r,config:o}=parseMergedHandlers(e,t||{});return o4(n,o,undefined,r)}}function it(e,t){const n=ie([dragAction,pinchAction,scrollAction,wheelAction,moveAction,hoverAction]);return n(e,t||{})}var io=n(69289);var ii=n(74684);var ia=n(52506);var is=n(20493);var il=n(7122);var iu=n(7056);var ic=n(78800);var id=n(48880);var ih=n(82478);var ip=n.n(ih);const ig=(0,m.createContext)(undefined);function iv({children:e}){const[n,r]=(0,m.useState)(undefined);const[o,i]=(0,m.useState)(false);(0,m.useEffect)(()=>{const e=ip()(e=>{r(e.target?.scrollTop||0);i(e.target?.scrollHeight-e.target?.scrollTop<=e.target?.clientHeight)},10);window.addEventListener("scroll",e,{capture:true,passive:true});return()=>window.removeEventListener("scroll",e,{capture:true})},[]);return(0,t.jsx)(ig.Provider,{value:{scrollY:n,isBottomReached:o},children:e})}function im(){return(0,m.useContext)(ig)};const iy=70;const iw=3;function ix(){const{isNarrowWidth:e}=(0,eo.F)();const{scrollY:n}=im();const r={flex:`1 1 ${100/iw}%`,height:iy,padding:10};const o=[{name:"Budget",path:"/budget",style:r,Icon:ic.Z},{name:"Transaction",path:"/transactions/new",style:r,Icon:ii.Z},{name:"Accounts",path:"/accounts",style:r,Icon:is.Z},{name:"Schedules (Soon)",path:"/schedules/soon",style:r,Icon:id.Z},{name:"Payees (Soon)",path:"/payees/soon",style:r,Icon:il.Z},{name:"Rules (Soon)",path:"/rules/soon",style:r,Icon:iu.Z},{name:"Settings",path:"/settings",style:r,Icon:ia.Z}].map(e=>(0,t.jsx)(ib,{...e},e.path));const i=iw-o.length%iw;const a=Array.from({length:i}).map((e,n)=>(0,t.jsx)("div",{style:r},n));const s=iy*iw;const l=0;const u=s-iy;const c=s;const[{y:f},h]=(0,nK.q_)(()=>({y:s}));const p=({canceled:e})=>{h.start({y:l,immediate:false,config:e?nK.vc.wobbly:nK.vc.stiff})};const g=(e=0)=>{h.start({y:u,immediate:false,config:{...nK.vc.stiff,velocity:e}})};const v=(e=0)=>{h.start({y:c,immediate:false,config:{...nK.vc.stiff,velocity:e}})};const y=(0,io.Z)(n);(0,m.useEffect)(()=>{if(n&&y&&n>y&&y!==0){v()}else{g()}},[n]);const w=o5(({last:e,velocity:[,t],direction:[,n],offset:[,r],cancel:o,canceled:i})=>{if(r<0){o()}if(e){if(r>iy*.5||t>.5&&n>0){g(t)}else{p({canceled:i})}}else{h.start({y:r,immediate:true})}},{from:()=>[0,f.get()],filterTaps:true,bounds:{top:-s,bottom:s-iy},axis:"y",rubberband:true});return(0,t.jsx)(nK.q.div,{role:"navigation",...w(),style:{y:f,touchAction:"pan-x",backgroundColor:ei.rS.mobileNavBackground,borderTop:`1px solid ${ei.rS.menuBorder}`,...ei.W2.shadow,height:s,width:"100%",position:"fixed",zIndex:100,bottom:0,...!e&&{display:"none"}},children:(0,t.jsx)(eu.Z,{style:{flexDirection:"row",flexWrap:"wrap",height:s,width:"100%"},children:[o,a]})})}function ib({Icon:e,name:n,path:r,style:o}){return(0,t.jsxs)(nO.OL,{to:r,style:({isActive:e})=>({...ei.W2.noTapHighlight,alignItems:"center",color:e?ei.rS.mobileNavItemSelected:ei.rS.mobileNavItem,display:"flex",flexDirection:"column",textDecoration:"none",textAlign:"center",...o}),children:[(0,t.jsx)(e,{width:22,height:22}),n]})}var iS=n(63495);var ik=n(49374);var ij=n(44048);function iC({style:e,children:n}){return(0,t.jsx)(eu.Z,{style:{color:"red",fontSize:13,...e},children:n})};function iT(e,t,n){const r=n.find(e=>e.id===t);const o=r&&r.offbudget===1;return e.offbudget===0&&o}function iE({account:e,accounts:n,categoryGroups:r,balance:o,canDelete:i,actions:a,modalProps:s}){let[l,u]=(0,m.useState)(false);let[c,f]=(0,m.useState)("");let[h,p]=(0,m.useState)("");let[g,v]=(0,m.useState)(false);let[y,w]=(0,m.useState)(false);return(0,t.jsx)(ew.C,{title:"Close Account",...s,style:{flex:0},loading:l,children:()=>(0,t.jsxs)(eu.Z,{children:[(0,t.jsxs)(ex.Z,{children:["Are you sure you want to close ",(0,t.jsx)("strong",{children:e.name}),"?"," ",i?(0,t.jsx)("span",{children:"This account has no transactions so it will be permanently deleted."}):(0,t.jsx)("span",{children:"This account has transactions so we can’t permanently delete it."})]}),(0,t.jsxs)("form",{onSubmit:t=>{t.preventDefault();let r=o!==0&&c==="";v(r);let i=iT(e,c,n)&&h==="";w(i);if(!r&&!i){u(true);a.closeAccount(e.id,c||null,h||null).then(()=>{s.onClose()})}},children:[o!==0&&(0,t.jsxs)(eu.Z,{children:[(0,t.jsxs)(ex.Z,{children:["This account has a balance of"," ",(0,t.jsx)("strong",{children:(0,B.zA)(o)}),". To close this account, select a different account to transfer this balance to:"]}),(0,t.jsx)(eu.Z,{style:{marginBottom:15},children:(0,t.jsx)(ik.ZP,{includeClosedAccounts:false,value:c,inputProps:{placeholder:"Select account..."},onSelect:e=>{f(e);if(g&&e){v(false)}}})}),g&&(0,t.jsx)(iC,{style:{marginBottom:15},children:"Transfer is required"}),iT(e,c,n)&&(0,t.jsxs)(eu.Z,{style:{marginBottom:15},children:[(0,t.jsx)(ex.Z,{children:"Since you are transferring the balance from a budgeted account to an off-budget account, this transaction must be categorized. Select a category:"}),(0,t.jsx)(ij.ZP,{categoryGroups:r,value:h,inputProps:{placeholder:"Select category..."},onSelect:e=>{p(e);if(y&&e){w(false)}}}),y&&(0,t.jsx)(iC,{children:"Category is required"})]})]}),!i&&(0,t.jsx)(eu.Z,{style:{marginBottom:15},children:(0,t.jsxs)(eS.Z,{style:{fontSize:12},children:["You can also"," ",(0,t.jsx)(ey.Z,{onClick:()=>{u(true);a.forceCloseAccount(e.id).then(()=>s.onClose())},style:{color:ei.rS.errorText},children:"force close"})," ","the account which will delete it and all its transactions permanently. Doing so may change your budget unexpectedly since money in it may vanish."]})}),(0,t.jsxs)(eu.Z,{style:{flexDirection:"row",justifyContent:"flex-end"},children:[(0,t.jsx)(em.Z,{style:{marginRight:10},onClick:s.onClose,children:"Cancel"}),(0,t.jsx)(em.Z,{type:"primary",children:"Close Account"})]})]})]})})}var i_=iE;function iI({modalProps:e,category:n,group:r,categoryGroups:o,onDelete:i}){const[a,s]=(0,m.useState)(null);const[l,u]=(0,m.useState)(null);const c=e=>{let n;switch(e){case"required-transfer":n="You must select a category";break;default:n="Something bad happened, sorry!"}return(0,t.jsx)(eS.Z,{style:{marginTop:15,color:ei.rS.errorText},children:n})};const f=!!(n||r).is_income;return(0,t.jsx)(ew.C,{title:"Confirm Delete",...e,style:{flex:0},children:()=>(0,t.jsxs)(eu.Z,{style:{lineHeight:1.5},children:[r?(0,t.jsxs)(el.Z,{children:["Categories in the group ",(0,t.jsx)("strong",{children:r.name})," are used by existing transaction",!f&&" or it has a positive leftover balance currently","."," ",(0,t.jsx)("strong",{children:"Are you sure you want to delete it?"})," If so, you must select another category to transfer existing transactions and balance to."]}):(0,t.jsxs)(el.Z,{children:[(0,t.jsx)("strong",{children:n.name})," is used by existing transactions",!f&&" or it has a positive leftover balance currently","."," ",(0,t.jsx)("strong",{children:"Are you sure you want to delete it?"})," If so, you must select another category to transfer existing transactions and balance to."]}),l&&c(l),(0,t.jsxs)(eu.Z,{style:{marginTop:20,flexDirection:"row",justifyContent:"flex-start",alignItems:"center"},children:[(0,t.jsx)(eS.Z,{children:"Transfer to:"}),(0,t.jsx)(eu.Z,{style:{flex:1,marginLeft:10,marginRight:30},children:(0,t.jsx)(ij.ZP,{categoryGroups:r?o.filter(e=>e.id!==r.id&&!!e.is_income===f):o.filter(e=>!!e.is_income===f).map(e=>({...e,categories:e.categories.filter(e=>e.id!==n.id)})),value:a,inputProps:{placeholder:"Select category..."},onSelect:e=>s(e)})}),(0,t.jsx)(em.Z,{type:"primary",onClick:()=>{if(!a){u("required-transfer")}else{i(a);e.onClose()}},children:"Delete"})]})]})})};function iM({modalProps:e,onConfirm:n,confirmReason:r}){return(0,t.jsx)(ew.C,{title:"Reconciled Transaction",...e,style:{flex:0},children:()=>(0,t.jsxs)(eu.Z,{style:{lineHeight:1.5},children:[r==="batchDeleteWithReconciled"?(0,t.jsx)(el.Z,{children:"Deleting reconciled transactions may bring your reconciliation out of balance."}):r==="batchEditWithReconciled"?(0,t.jsx)(el.Z,{children:"Editing reconciled transactions may bring your reconciliation out of balance."}):r==="batchDuplicateWithReconciled"?(0,t.jsx)(el.Z,{children:"Duplicating reconciled transactions may bring your reconciliation out of balance."}):r==="editReconciled"?(0,t.jsx)(el.Z,{children:"Saving your changes to this reconciled transaction may bring your reconciliation out of balance."}):r==="deleteReconciled"?(0,t.jsx)(el.Z,{children:"Deleting this reconciled transaction may bring your reconciliation out of balance."}):(0,t.jsx)(el.Z,{children:"Are you sure you want to edit this transaction?"}),(0,t.jsx)(eu.Z,{style:{marginTop:20,flexDirection:"row",justifyContent:"flex-start",alignItems:"center"},children:(0,t.jsxs)(eu.Z,{style:{flexDirection:"row",justifyContent:"flex-end"},children:[(0,t.jsx)(em.Z,{style:{marginRight:10},onClick:e.onClose,children:"Cancel"}),(0,t.jsx)(em.Z,{type:"primary",onClick:()=>{e.onClose();n()},children:"Confirm"})]})})]})})}var iD=iM;var iP=n(70425);function iO(){const[e,t]=(0,m.useState)(null);const[n,r]=(0,m.useState)(false);const o=(0,iS.Z)();(0,m.useEffect)(()=>{async function e(){r(true);const e=await (0,q.lW)("gocardless-status");t(e.configured||false);r(false)}if(o==="online"){e()}},[o]);return{configured:e,isLoading:n}};function iA({modalProps:e,syncServerStatus:n}){const r=(0,en.o)();const[o,i]=(0,m.useState)(null);const a=()=>{if(!o){s();return}(0,iP.F)(r.pushModal)};const s=()=>{r.pushModal("gocardless-init",{onSuccess:()=>i(true)})};const l=()=>{r.pushModal("add-local-account")};const{configured:u}=iO();(0,m.useEffect)(()=>{i(u)},[u]);return(0,t.jsx)(ew.C,{title:"Add Account",...e,children:()=>(0,t.jsxs)(eu.Z,{style:{maxWidth:500,gap:30,color:ei.rS.pageText},children:[(0,t.jsxs)(eu.Z,{style:{gap:10},children:[(0,t.jsx)(em.Z,{type:"primary",style:{padding:"10px 0",fontSize:15,fontWeight:600},onClick:l,children:"Create local account"}),(0,t.jsx)(eu.Z,{style:{lineHeight:"1.4em",fontSize:15},children:(0,t.jsxs)(eS.Z,{children:[(0,t.jsx)("strong",{children:"Create a local account"})," if you want to add transactions manually. You can also"," ",(0,t.jsx)(eg.Z,{to:"https://actualbudget.org/docs/transactions/importing",linkColor:"muted",children:"import QIF/OFX/QFX files into a local account"}),"."]})})]}),(0,t.jsx)(eu.Z,{style:{gap:10},children:n==="online"?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(em.y,{disabled:n!=="online",style:{padding:"10px 0",fontSize:15,fontWeight:600,flex:1},onClick:a,children:o?"Link bank account with GoCardless":"Set up GoCardless for bank sync"}),(0,t.jsxs)(eS.Z,{style:{lineHeight:"1.4em",fontSize:15},children:[(0,t.jsx)("strong",{children:"Link a bank account"})," to automatically download transactions. GoCardless provides reliable, up-to-date information from hundreds of banks."]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(em.Z,{disabled:true,style:{padding:"10px 0",fontSize:15,fontWeight:600},children:"Set up GoCardless for bank sync"}),(0,t.jsxs)(ex.Z,{style:{fontSize:15},children:["Connect to an Actual server to set up"," ",(0,t.jsx)(eg.Z,{to:"https://actualbudget.org/docs/advanced/bank-sync",linkColor:"muted",children:"automatic syncing with GoCardless"}),"."]})]})})]})})}var iR=n(40400);var iZ=n(91871);var iz=n(383);function iN({modalProps:e,actions:n,options:r={}}){let[o,i]=(0,m.useState)("");let[a,s]=(0,m.useState)(false);let[l,u]=(0,m.useState)("");let[c,f]=(0,m.useState)(false);let h=r.recreate;async function p(){if(o!==""&&!a){s(true);u(null);let e=await (0,q.lW)("key-make",{password:o});if(e.error){s(null);u((0,iR.zJ)(e.error));return}n.loadGlobalPrefs();n.loadAllFiles();n.sync();s(false);n.popModal()}}return(0,t.jsx)(ew.C,{...e,style:{width:600},title:h?"Generate new key":"Enable encryption",onClose:()=>n.popModal(),children:()=>(0,t.jsxs)(t.Fragment,{children:[!h?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(ex.Z,{style:{marginTop:5},children:["To enable end-to-end encryption, you need to create a key. We will generate a key based on a password and use it to encrypt from now on. ",(0,t.jsx)("strong",{children:"This requires a sync reset"})," and all other devices will have to revert to this version of your data."," ",(0,t.jsx)(eg.Z,{to:"https://actualbudget.org/docs/getting-started/sync/#end-to-end-encryption",linkColor:"purple",children:"Learn more"})]}),(0,t.jsx)(ex.Z,{children:(0,t.jsxs)("ul",{className:`${(0,ea.iv)({marginTop:0,"& li":{marginBottom:8}})}`,children:[(0,t.jsxs)("li",{children:[(0,t.jsx)("strong",{children:"Important:"})," if you forget this password"," ",(0,t.jsx)("em",{children:"and"})," you don’t have any local copies of your data, you will lose access to all your data. The data cannot be decrypted without the password."]}),(0,t.jsx)("li",{children:"This key only applies to this file. You will need to generate a new key for each file you want to encrypt."}),(0,t.jsx)("li",{children:"If you’ve already downloaded your data on other devices, you will need to reset them. Actual will automatically take you through this process."}),(0,t.jsx)("li",{children:"It is recommended for the encryption password to be different than the log-in password in order to better protect your data."})]})})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(ex.Z,{style:{marginTop:5},children:["This will generate a new key for encrypting your data."," ",(0,t.jsx)("strong",{children:"This requires a sync reset"})," and all other devices will have to revert to this version of your data. Actual will take you through that process on those devices."," ",(0,t.jsx)(eg.Z,{to:"https://actualbudget.org/docs/getting-started/sync/#end-to-end-encryption",linkColor:"purple",children:"Learn more"})]}),(0,t.jsx)(ex.Z,{children:"Key generation is randomized. The same password will create different keys, so this will change your key regardless of the password being different."})]}),(0,t.jsxs)("form",{onSubmit:e=>{e.preventDefault();p()},children:[(0,t.jsxs)(eu.Z,{style:{alignItems:"center"},children:[(0,t.jsx)(eS.Z,{style:{fontWeight:600,marginBottom:3},children:"Password"}),l&&(0,t.jsx)(eu.Z,{style:{color:ei.rS.errorText,textAlign:"center",fontSize:13,marginBottom:3},children:l}),(0,t.jsx)(iZ.Z,{children:(0,t.jsx)(iz.ZP,{type:c?"text":"password",style:{width:300},onChange:e=>i(e.target.value)})}),(0,t.jsx)(eS.Z,{style:{marginTop:5},children:(0,t.jsxs)("label",{style:{userSelect:"none"},children:[(0,t.jsx)("input",{type:"checkbox",onClick:()=>f(!c)})," ","Show password"]})})]}),(0,t.jsx)(ew.Z,{style:{marginTop:20},children:(0,t.jsx)(em.y,{loading:a,type:"primary",children:"Enable"})})]})]})})};function iL({label:e,labelWidth:n,children:r,width:o,style:i}){return(0,t.jsxs)("label",{className:`${(0,ea.iv)({display:"flex",flexDirection:"row",alignItems:"center",margin:"7px 0",width:o},i)}`,children:[(0,t.jsxs)("div",{style:{width:n||75,textAlign:"right",paddingRight:10},children:[e,":"]}),r]})};function iB({modalProps:e,actions:n}){let r=(0,nB.Z)();let[o,i]=(0,m.useState)("");let[a,s]=(0,m.useState)(false);let[l,u]=(0,m.useState)("0");let[c,f]=(0,m.useState)(false);let[h,p]=(0,m.useState)(false);let g=e=>!isNaN(parseFloat(e));return(0,t.jsx)(ew.C,{title:"Create Local Account",...e,children:()=>(0,t.jsx)(eu.Z,{children:(0,t.jsxs)("form",{onSubmit:async e=>{e.preventDefault();let t=!o;f(t);let i=!g(l);p(i);if(!t&&!i){n.closeModal();let e=await n.createAccount(o,(0,B.sD)(l),a);r("/accounts/"+e)}},children:[(0,t.jsx)(iL,{label:"Name",width:"75%",children:(0,t.jsx)(iZ.Z,{children:(0,t.jsx)(iz.ZP,{name:"name",value:o,onChange:e=>i(e.target.value),onBlur:e=>{let t=e.target.value.trim();i(t);if(t&&c){f(false)}},style:{flex:1}})})}),c&&(0,t.jsx)(iC,{style:{marginLeft:75},children:"Name is required"}),(0,t.jsx)(eu.Z,{style:{width:"75%",flexDirection:"row",justifyContent:"flex-end"},children:(0,t.jsxs)(eu.Z,{style:{flexDirection:"column"},children:[(0,t.jsxs)(eu.Z,{style:{flexDirection:"row",justifyContent:"flex-end"},children:[(0,t.jsx)(ek.XZ,{id:"offbudget",name:"offbudget",checked:a,onChange:()=>s(!a)}),(0,t.jsx)("label",{htmlFor:"offbudget",style:{userSelect:"none",verticalAlign:"center"},children:"Off-budget"})]}),(0,t.jsx)("div",{style:{textAlign:"right",fontSize:"0.7em",color:ei.rS.pageTextLight,marginTop:3},children:(0,t.jsxs)(eS.Z,{children:["This cannot be changed later. ",(0,t.jsx)("br",{})," ","\n","See"," ",(0,t.jsx)(eg.Z,{linkColor:"muted",to:"https://actualbudget.org/docs/accounts/#off-budget-accounts",children:"Accounts Overview"})," ","for more information."]})})]})}),(0,t.jsx)(iL,{label:"Balance",width:"75%",children:(0,t.jsx)(iz.ZP,{name:"balance",inputMode:"decimal",value:l,onChange:e=>u(e.target.value),onBlur:e=>{let t=e.target.value.trim();u(t);if(g(t)&&h){p(false)}},style:{flex:1}})}),h&&(0,t.jsx)(iC,{style:{marginLeft:75},children:"Balance must be a number"}),(0,t.jsxs)(ew.Z,{children:[(0,t.jsx)(em.Z,{onClick:()=>e.onBack(),children:"Back"}),(0,t.jsx)(em.Z,{type:"primary",style:{marginLeft:10},children:"Create"})]})]})})})}var iH=iB;var iF=n(79982);var iV=n(41071);var iW=n(8780);var iU=n(73416);var iK=n(85449);var i$=n(5710);var iq=n(37998);function iY(e){return(0,t.jsx)(iK.mm_,{...e,width:14,height:14})}function iG({modalProps:e,name:n,onSubmit:r}){let o=(0,y.v9)(e=>e.prefs.local.dateFormat||"MM/dd/yyyy");let{grouped:i}=(0,n1.Z)();let a=(0,y.v9)(e=>e.queries.accounts);let s=(0,y.v9)(e=>e.queries.payees);let{createPayee:l}=(0,en.o)();function u(t){if(t!=null){if(n==="amount"){t=(0,B.l9)(t)}r(n,t)}e.onClose()}const c={fontSize:17,fontWeight:400,paddingTop:8,paddingBottom:8};const{isNarrowWidth:f}=(0,eo.F)();let h,p,g;let v={":focus":{boxShadow:0},...f&&c};let m={inputProps:{style:v},containerProps:{style:{height:f?"90vh":275}}};switch(n){case"date":{let e=(0,iU.PR)();h="Date";g=350;p=(0,t.jsx)(iq.Z,{value:(0,iF.Z)((0,iV.Z)(e),o),dateFormat:o,focused:true,embedded:true,onUpdate:()=>{},onSelect:e=>{u((0,iU.is)((0,iW.Z)(e,"yyyy-MM-dd",new Date)))}});break}case"account":h="Account";p=(0,t.jsx)(ik.ZP,{value:null,accounts:a,focused:true,embedded:true,closeOnBlur:false,onSelect:e=>{if(e){u(e)}},renderAccountItemGroupHeader:e=>(0,t.jsx)(ik.pn,{...e,style:{...ei.W2.largeText,color:ei.rS.menuItemTextHeader,paddingTop:10,paddingBottom:10}}),renderAccountItem:e=>(0,t.jsx)(ik.NB,{...e,style:{...c,color:ei.rS.menuItemText,borderRadius:0,borderTop:`1px solid ${ei.rS.pillBorder}`}}),...m});break;case"payee":h="Payee";p=(0,t.jsx)(i$.ZP,{payees:s,accounts:a,value:null,focused:true,embedded:true,closeOnBlur:false,showManagePayees:false,showMakeTransfer:!f,onSelect:async e=>{if(e&&e.startsWith("new:")){e=await l(e.slice("new:".length))}u(e)},isCreatable:true,renderCreatePayeeButton:e=>(0,t.jsx)(i$.GP,{...e,Icon:iY,style:c}),renderPayeeItemGroupHeader:e=>(0,t.jsx)(i$.nr,{...e,style:{...ei.W2.largeText,color:ei.rS.menuItemTextHeader,paddingTop:10,paddingBottom:10}}),renderPayeeItem:e=>(0,t.jsx)(i$.hA,{...e,style:{...c,color:ei.rS.menuItemText,borderRadius:0,borderTop:`1px solid ${ei.rS.pillBorder}`}}),...m});break;case"notes":h="Notes";p=(0,t.jsx)(iz.ZP,{focused:true,onEnter:e=>u(e.target.value),style:v});break;case"category":h="Category";p=(0,t.jsx)(ij.ZP,{categoryGroups:i,value:null,focused:true,embedded:true,closeOnBlur:false,showSplitOption:false,onUpdate:()=>{},onSelect:e=>{u(e)},renderCategoryItemGroupHeader:e=>(0,t.jsx)(ij.UH,{...e,style:{...ei.W2.largeText,color:ei.rS.menuItemTextHeader,paddingTop:10,paddingBottom:10}}),renderCategoryItem:e=>(0,t.jsx)(ij.PM,{...e,style:{...c,color:ei.rS.menuItemText,borderRadius:0,borderTop:`1px solid ${ei.rS.pillBorder}`}}),...m});break;case"amount":h="Amount";p=(0,t.jsx)(iz.ZP,{focused:true,onEnter:e=>u(e.target.value),style:v});break;default:}return(0,t.jsx)(ew.C,{title:h,noAnimation:!f,showHeader:f,focusAfterClose:false,...e,padding:0,style:{flex:0,height:f?"85vh":275,padding:"15px 10px",borderRadius:"6px",...g&&{minWidth:g},...!f&&{backgroundColor:ei.rS.mobileModalBackground,color:ei.rS.mobileModalText}},children:()=>(0,t.jsxs)(eu.Z,{children:[!f&&(0,t.jsx)(ek.eX,{title:h,style:{alignSelf:"center",color:ei.rS.mobileModalText,marginBottom:10}}),(0,t.jsx)(eu.Z,{style:{flex:1},children:p})]})})}var iX=n(24605);function iQ({modalProps:e,actions:n,options:r={}}){let{hasExistingKey:o,cloudFileId:i,onSuccess:a}=r;let[s,l]=(0,m.useState)("");let[u,c]=(0,m.useState)("");let[f,h]=(0,m.useState)(false);let[p,g]=(0,m.useState)(false);async function v(){if(s!==""&&!f){h(true);c(null);let{error:e}=await (0,q.lW)("key-test",{password:s,fileId:i});if(e){c((0,iR.Ez)(e));h(false);return}n.popModal();a?.()}}return(0,t.jsx)(ew.C,{...e,showHeader:false,style:{width:600},children:()=>(0,t.jsxs)(eu.Z,{style:{flex:1},children:[(0,t.jsx)(eS.Z,{style:{fontSize:25,fontWeight:700,color:ei.rS.pageTextDark,margin:"20px 0"},children:o?"Unable to decrypt file":"This file is encrypted"}),o?(0,t.jsxs)(ex.Z,{children:["This file was encrypted with a different key than you are currently using. This probably means you changed your password. Enter your current password to update your key."," ",(0,t.jsx)(eg.Z,{to:"https://actualbudget.org/docs/getting-started/sync/#end-to-end-encryption",children:"Learn more"})]}):(0,t.jsxs)(ex.Z,{children:["We don’t have a key that encrypts or decrypts this file. Enter the password for this file to create the key for encryption."," ",(0,t.jsx)(eg.Z,{to:"https://actualbudget.org/docs/getting-started/sync/#end-to-end-encryption",children:"Learn more"})]}),(0,t.jsxs)("form",{onSubmit:e=>{e.preventDefault();v()},children:[(0,t.jsxs)(eu.Z,{style:{marginTop:15,flexDirection:"column",alignItems:"center"},children:[(0,t.jsx)(eS.Z,{style:{fontWeight:600,marginBottom:5},children:"Password"})," ",u&&(0,t.jsx)(eu.Z,{style:{color:ei.rS.errorText,textAlign:"center",fontSize:13,marginBottom:3},children:u}),(0,t.jsx)(iZ.Z,{children:(0,t.jsx)(iz.ZP,{type:p?"text":"password",style:{width:"50%"},onChange:e=>l(e.target.value)})}),(0,t.jsx)(eS.Z,{style:{marginTop:5},children:(0,t.jsxs)("label",{style:{userSelect:"none"},children:[(0,t.jsx)("input",{type:"checkbox",onClick:()=>g(!p)})," ","Show password"]})})]}),(0,t.jsxs)(ew.Z,{style:{marginTop:20},children:[(0,t.jsx)(em.Z,{style:{marginRight:10},onClick:()=>e.onBack(),type:"normal",children:"Back"}),(0,t.jsx)(em.y,{type:"primary",loading:f,onClick:v,children:o?"Update key":"Create key"})]})]})]})})}var iJ=n(94276);var i0=n(19318);var i1=n(28799);const i2=({icon:e,color:n,backgroundColor:r,style:o,children:i})=>{return(0,t.jsxs)(eu.Z,{style:{color:n,fontSize:13,...ei.W2.shadow,borderRadius:4,backgroundColor:r,padding:10,flexDirection:"row","& a, & a:active, & a:visited":{color:ei.rS.formLabelText},...o},children:[(0,t.jsx)(eu.Z,{style:{paddingLeft:2,paddingTop:".11em",alignSelf:"stretch",flexShrink:0,marginRight:5},children:(0,t.jsx)(e,{width:13,style:{marginTop:2}})}),(0,t.jsx)(eS.Z,{style:{zIndex:1,lineHeight:1.5},children:i})]})};const i4=({style:e,children:n})=>{return(0,t.jsx)(i2,{icon:i1.Z,color:ei.rS.pageTextLight,backgroundColor:"transparent",style:{...e,boxShadow:"none",padding:5},children:n})};const i5=({style:e,children:n})=>{return(0,t.jsx)(i2,{icon:i0.Z,color:ei.rS.warningText,backgroundColor:ei.rS.warningBackground,style:e,children:n})};const i3=({style:e,children:n})=>{return(0,t.jsx)(i2,{icon:i0.Z,color:ei.rS.errorTextDarker,backgroundColor:ei.rS.errorBackground,style:e,children:n})};var i8=n(25411);var i6=n(31941);var i7=n(63541);const i9=[{id:"AT",name:"Austria"},{id:"BE",name:"Belgium"},{id:"BG",name:"Bulgaria"},{id:"HR",name:"Croatia"},{id:"CY",name:"Cyprus"},{id:"CZ",name:"Czechia"},{id:"DK",name:"Denmark"},{id:"EE",name:"Estonia"},{id:"FI",name:"Finland"},{id:"FR",name:"France"},{id:"DE",name:"Germany"},{id:"GR",name:"Greece"},{id:"HU",name:"Hungary"},{id:"IS",name:"Iceland"},{id:"IE",name:"Ireland"},{id:"IT",name:"Italy"},{id:"LV",name:"Latvia"},{id:"LI",name:"Liechtenstein"},{id:"LT",name:"Lithuania"},{id:"LU",name:"Luxembourg"},{id:"MT",name:"Malta"},{id:"NL",name:"Netherlands"},{id:"NO",name:"Norway"},{id:"PL",name:"Poland"},{id:"PT",name:"Portugal"},{id:"RO",name:"Romania"},{id:"SK",name:"Slovakia"},{id:"SI",name:"Slovenia"},{id:"ES",name:"Spain"},{id:"SE",name:"Sweden"},{id:"GB",name:"United Kingdom"}];function ae(e){const[t,n]=(0,m.useState)([]);const[r,o]=(0,m.useState)(false);const[i,a]=(0,m.useState)(false);(0,m.useEffect)(()=>{async function t(){a(false);if(!e){n([]);o(false);return}o(true);const{data:t,error:r}=await (0,q.OK)("gocardless-get-banks",e);if(r){a(true);n([])}else{n(t)}o(false)}t()},[n,o,e]);return{data:t,isLoading:r,isError:i}}function at(e){return(0,t.jsx)(i3,{style:{alignSelf:"center"},children:e==="timeout"?"Timed out. Please try again.":"An error occurred while linking your account, sorry!"})}function ao({modalProps:e,onMoveExternal:n,onSuccess:r,onClose:o}){const i=(0,y.I0)();let[a,s]=(0,m.useState)(null);let[l,u]=(0,m.useState)(false);let[c,f]=(0,m.useState)();let[h,p]=(0,m.useState)();let[g,v]=(0,m.useState)(null);let[w,x]=(0,m.useState)(null);let[b,S]=(0,m.useState)(false);let k=(0,m.useRef)(null);const{data:j,isLoading:C,isError:T}=ae(h);const{configured:E,isLoading:_}=iO();async function I(){v(null);s("browser");let e=await n({institutionId:c});if(e.error){v(e.error);s(null);return}k.current=e.data;s(null);u(true)}function M(){o?.();e.onClose()}async function D(){s("accounts");await r(k.current);s(null)}const P=()=>{i((0,nX.Ll)("gocardless-init",{onSuccess:()=>x(true)}))};const O=()=>{return(0,t.jsxs)(eu.Z,{style:{gap:10},children:[(0,t.jsxs)(ek.Wi,{children:[(0,t.jsx)(ek.lX,{title:"Choose your country:",htmlFor:"country-field"}),(0,t.jsx)(i8.ZP,{strict:true,highlightFirst:true,suggestions:i9,onSelect:p,value:h,inputProps:{id:"country-field",placeholder:"(please select)"}})]}),T?(0,t.jsxs)(i3,{children:["Failed loading available banks: GoCardless access credentials might be misconfigured. Please"," ",(0,t.jsx)(ey.Z,{onClick:P,style:{color:ei.rS.formLabelText,display:"inline"},children:"set them up"})," ","again."]}):h&&(C?"Loading banks...":(0,t.jsxs)(ek.Wi,{children:[(0,t.jsx)(ek.lX,{title:"Choose your bank:",htmlFor:"bank-field"}),(0,t.jsx)(i8.ZP,{focused:true,strict:true,highlightFirst:true,suggestions:j,onSelect:f,value:c,inputProps:{id:"bank-field",placeholder:"(please select)"}})]})),(0,t.jsxs)(i5,{children:["By enabling bank-sync, you will be granting GoCardless (a third party service) read-only access to your entire account’s transaction history. This service is not affiliated with Actual in any way. Make sure you’ve read and understand GoCardless’s"," ",(0,t.jsx)(eg.Z,{to:"https://gocardless.com/privacy/",linkColor:"purple",children:"Privacy Policy"})," ","before proceeding."]}),(0,t.jsxs)(eu.Z,{style:{flexDirection:"row",gap:10,alignItems:"center"},children:[(0,t.jsx)(em.Z,{type:"primary",style:{padding:"10px 0",fontSize:15,fontWeight:600,flexGrow:1},onClick:I,disabled:!c||!h,children:"Link bank in browser →"}),(0,t.jsxs)(em.Z,{type:"bare",onClick:()=>S(true),"aria-label":"Menu",children:[(0,t.jsx)(iJ.Z,{width:15,height:15,style:{transform:"rotateZ(90deg)"}}),b&&(0,t.jsx)(i7.u,{position:"bottom-right",width:200,style:{padding:0},onClose:()=>S(false),children:(0,t.jsx)(i6.Z,{onMenuSelect:e=>{if(e==="reconfigure"){P()}},items:[{name:"reconfigure",text:"Set new API secrets"}]})})]})]})]})};return(0,t.jsx)(ew.C,{title:"Link Your Bank",...e,onClose:M,style:{flex:0},children:()=>(0,t.jsxs)(eu.Z,{children:[(0,t.jsx)(ex.Z,{style:{fontSize:15},children:"To link your bank account, you will be redirected to a new page where GoCardless will ask to connect to your bank. GoCardless will not be able to withdraw funds from your accounts."}),g&&at(g),a||_?(0,t.jsxs)(eu.Z,{style:{alignItems:"center",marginTop:15},children:[(0,t.jsx)(es.Z,{color:ei.rS.pageTextDark,style:{width:20,height:20}}),(0,t.jsx)(eu.Z,{style:{marginTop:10,color:ei.rS.pageText},children:_?"Checking GoCardless configuration..":a==="browser"?"Waiting on GoCardless...":a==="accounts"?"Loading accounts...":null}),a==="browser"&&(0,t.jsx)(ey.Z,{onClick:I,style:{marginTop:10},children:"(Account linking not opening in a new tab? Click here)"})]}):l?(0,t.jsx)(em.Z,{type:"primary",style:{padding:"10px 0",fontSize:15,fontWeight:600,marginTop:10},onClick:D,children:"Success! Click to continue →"}):E||w?O():(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ex.Z,{style:{color:ei.rS.errorText},children:"GoCardless integration has not yet been configured."}),(0,t.jsx)(em.Z,{type:"primary",onClick:P,children:"Configure GoCardless integration"})]})]})})};const ai=({modalProps:e,onSuccess:n})=>{const[r,o]=(0,m.useState)("");const[i,a]=(0,m.useState)("");const[s,l]=(0,m.useState)(true);const[u,c]=(0,m.useState)(false);const f=async()=>{if(!r||!i){l(false);return}c(true);await Promise.all([(0,q.lW)("secret-set",{name:"nordigen_secretId",value:r}),(0,q.lW)("secret-set",{name:"nordigen_secretKey",value:i})]);n();e.onClose();c(false)};return(0,t.jsxs)(ew.C,{title:"Set-up GoCardless",size:{width:300},...e,children:[(0,t.jsxs)(eu.Z,{style:{display:"flex",gap:10},children:[(0,t.jsxs)(eS.Z,{children:["In order to enable bank-sync via GoCardless (only for EU banks) you will need to create access credentials. This can be done by creating an account with"," ",(0,t.jsx)(eg.Z,{to:"https://gocardless.com/",linkColor:"purple",children:"GoCardless"}),"."]}),(0,t.jsxs)(ek.Wi,{children:[(0,t.jsx)(ek.lX,{title:"Secret ID:",htmlFor:"secret-id-field"}),(0,t.jsx)(iz.ZP,{id:"secret-id-field",type:"password",value:r,onUpdate:o,onChange:()=>l(true)})]}),(0,t.jsxs)(ek.Wi,{children:[(0,t.jsx)(ek.lX,{title:"Secret Key:",htmlFor:"secret-key-field"}),(0,t.jsx)(iz.ZP,{id:"secret-key-field",type:"password",value:i,onUpdate:a,onChange:()=>l(true)})]}),!s&&(0,t.jsx)(i3,{children:"It is required to provide both the secret id and secret key."})]}),(0,t.jsx)(ew.Z,{children:(0,t.jsx)(em.y,{type:"primary",loading:u,onClick:f,children:"Save and continue"})})]})};var aa=ai;var as=n(25432);var al=n(58068);var au=n(78628);let ac=[{format:"yyyy mm dd",label:"YYYY MM DD"},{format:"yy mm dd",label:"YY MM DD"},{format:"mm dd yyyy",label:"MM DD YYYY"},{format:"mm dd yy",label:"MM DD YY"},{format:"dd mm yyyy",label:"DD MM YYYY"},{format:"dd mm yy",label:"DD MM YY"}];function ad(e,t){if(typeof e!=="string"){return null}function n(e){return e&&e.length===1?"0"+e:e}const r=(e,t)=>n=>{const r=n.replace(/\bjan(\.|uary)?\b/i,"01").replace(/\bfeb(\.|ruary)?\b/i,"02").replace(/\bmar(\.|ch)?\b/i,"03").replace(/\bapr(\.|il)?\b/i,"04").replace(/\bmay\.?\b/i,"05").replace(/\bjun(\.|e)?\b/i,"06").replace(/\bjul(\.|y)?\b/i,"07").replace(/\baug(\.|ust)?\b/i,"08").replace(/\bsep(\.|tember)?\b/i,"09").replace(/\boct(\.|ober)?\b/i,"10").replace(/\bnov(\.|ember)?\b/i,"11").replace(/\bdec(\.|ember)?\b/i,"12").replace(/^[^\d]+/,"").replace(/[^\d]+$/,"").split(/[^\d]+/);if(r.length>=3){return r.slice(0,3)}const o=n.replace(/[^\d]/g,"");return[o.slice(0,e),o.slice(e,e+t),o.slice(e+t)]};const o=r(4,2);const i=r(2,2);let a,s,l,u;switch(t){case"dd mm yyyy":a=i(e);s=a[2];l=a[1];u=a[0];break;case"dd mm yy":a=i(e);s=`20${a[2]}`;l=a[1];u=a[0];break;case"yyyy mm dd":a=o(e);s=a[0];l=a[1];u=a[2];break;case"yy mm dd":a=i(e);s=`20${a[0]}`;l=a[1];u=a[2];break;case"mm dd yy":a=i(e);s=`20${a[2]}`;l=a[0];u=a[1];break;default:case"mm dd yyyy":a=i(e);s=a[2];l=a[0];u=a[1]}let c=`${s}-${n(l)}-${n(u)}`;if(!as.Z(iV.Z(c))){return null}return c}function af(e,t){if(!e){return null}try{return(0,iU.WU)(e,t)}catch(e){}return null}function ah(e){let t=e.match(/\.([^.]*)$/);if(!t)return"ofx";let n=t[1].toLowerCase();if(n==="tsv")return"csv";return n}function ap({parseDateFormat:e,showParsed:n,dateFormat:r,date:o}){let i=o&&af(e?ad(o,e):o,r);return(0,t.jsxs)(eS.Z,{children:[(0,t.jsxs)(eS.Z,{children:[o||(0,t.jsx)(eS.Z,{style:{color:ei.rS.pageTextLight,fontStyle:"italic"},children:"Empty"})," ","→"," "]}),(0,t.jsx)(eS.Z,{style:{color:i?ei.rS.noticeTextLight:ei.rS.errorText},children:i||"Invalid"})]})}function ag(e,t){if(e.length===0||t.date==null){return"yyyy mm dd"}let n=e[0];let r=n[t.date];let o=r==null?null:ac.find(e=>ad(r,e.format)!=null);return o?o.format:"mm dd yyyy"}function av(e){if(e.length===0){return{}}let t=e[0];let n=Object.entries(t);function r(e){return e?e[0]:null}let o=r(n.find(([e,t])=>e.toLowerCase().includes("date"))||n.find(([e,t])=>t.match(/^\d+[-/]\d+[-/]\d+$/)));let i=r(n.find(([e,t])=>e.toLowerCase().includes("amount"))||n.find(([e,t])=>t.match(/^-?[.,\d]+$/)));let a=r(n.find(([e,t])=>e!==o&&e!==i));let s=r(n.find(([e,t])=>e!==o&&e!==i&&e!==a));let l=r(n.find(([e,t])=>e!==o&&e!==i&&e!==a&&e!==s));return{date:o,amount:i,payee:a,notes:s,inOut:l}}function am(e,t){let n={};for(let[r,o]of Object.entries(t)){if(r==="payee"){r="payee_name"}n[r]=e[o||r]}return n}function ay(e,t){if(e==null){return null}let n=typeof e==="string"?(0,B.qP)(e):e;let r=t(n);return r}function aw(e,t,n,r,o,i){const a=parseFloat(i)||1;if(t){let t=ay(e.outflow,e=>-Math.abs(e))*a;let n=t?0:ay(e.inflow,e=>Math.abs(e))*a;return{amount:t||n,outflow:t,inflow:n}}if(n){return{amount:ay(e.amount,t=>e.inOut===r?Math.abs(t)*-1:Math.abs(t))*a,outflow:null,inflow:null}}return{amount:ay(e.amount,e=>o?e*-1:e)*a,outflow:null,inflow:null}}function ax({transaction:e,fieldMappings:n,showParsed:r,parseDateFormat:o,dateFormat:i,splitMode:a,inOutMode:s,outValue:l,flipAmount:u,multiplierAmount:c}){let f=(0,m.useMemo)(()=>n?am(e,n):e,[e,n]);let{amount:h,outflow:p,inflow:g}=aw(f,a,s,l,u,c);h=(0,B.eY)(h);p=(0,B.eY)(p);g=(0,B.eY)(g);return(0,t.jsxs)(n5.X2,{style:{backgroundColor:ei.rS.tableBackground},children:[(0,t.jsx)(n5.gN,{width:200,children:r?(0,t.jsx)(ap,{parseDateFormat:o,dateFormat:i,date:f.date}):af(f.date,i)}),(0,t.jsx)(n5.gN,{width:"flex",title:f.imported_payee||f.payee_name,children:f.payee_name}),(0,t.jsx)(n5.gN,{width:"flex",title:f.notes,children:f.notes}),a?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n5.gN,{width:90,contentStyle:{textAlign:"right",...ei.W2.tnum},title:p,children:p}),(0,t.jsx)(n5.gN,{width:90,contentStyle:{textAlign:"right",...ei.W2.tnum},title:g,children:g})]}):(0,t.jsxs)(t.Fragment,{children:[s&&(0,t.jsx)(n5.gN,{width:90,contentStyle:{textAlign:"left",...ei.W2.tnum},title:f.inOut,children:f.inOut}),(0,t.jsx)(n5.gN,{width:90,contentStyle:{textAlign:"right",...ei.W2.tnum},title:h,children:h})]})]})}function ab({title:e}){return(0,t.jsx)(eS.Z,{style:{fontSize:13,marginBottom:3,color:ei.rS.pageText},children:e})}function aS({style:e,options:n,value:r,onChange:o,hasHeaderRow:i,firstTransaction:a}){return(0,t.jsx)(au.Z,{options:[["choose-field","Choose field..."],...n.map(e=>[e,i?e:`Column ${parseInt(e)+1} (${a[e]})`])],value:r===null?"choose-field":r,style:{width:"100%"},wrapperStyle:e,onChange:e=>o(e)})}function ak({transactions:e,fieldMappings:n,parseDateFormat:r,onChange:o}){let i="-";if(e.length>0&&n&&n.date!=null){let t=e[0][n.date];let r=t&&t.match(/[/.,-/\\]/);i=r?r[0]:" "}return(0,t.jsxs)(eu.Z,{style:{width:120},children:[(0,t.jsx)(ek.eX,{title:"Date format"}),(0,t.jsx)(au.Z,{options:ac.map(e=>[e.format,e.label.replace(/ /g,i)]),value:r||"",onChange:e=>o(e),style:{width:"100%"}})]})}function aj({id:e,checked:n,disabled:r,onChange:o,children:i,style:a}){return(0,t.jsxs)(eu.Z,{style:{flex:1,flexDirection:"row",alignItems:"center",userSelect:"none",minHeight:28,...a},children:[(0,t.jsx)(ek.XZ,{id:e,checked:n,disabled:r,onChange:o}),(0,t.jsx)("label",{htmlFor:e,style:{userSelect:"none",color:r?ei.rS.pageTextSubdued:null},children:i})]})}function aC({multiplierEnabled:e,multiplierAmount:n,onToggle:r,onChangeAmount:o}){return(0,t.jsxs)(eu.Z,{style:{flexDirection:"row",gap:10,height:28},children:[(0,t.jsx)(aj,{id:"add_multiplier",checked:e,onChange:r,children:"Add multiplier"}),(0,t.jsx)(iz.ZP,{type:"text",style:{display:e?"inherit":"none"},value:n,placeholder:"Multiplier",onUpdate:o})]})}function aT({inOutMode:e,outValue:n,disabled:r,onToggle:o,onChangeText:i}){return(0,t.jsxs)(eu.Z,{style:{flexDirection:"row",gap:10,height:28},children:[(0,t.jsx)(aj,{id:"form_inOut",checked:e,disabled:r,onChange:o,children:e?"in/out identifier":"Select column to specify if amount goes in/out"}),e&&(0,t.jsx)(iz.ZP,{type:"text",value:n,onUpdate:i,placeholder:"Value for out rows, i.e. Credit"})]})}function aE({transactions:e,mappings:n,onChange:r,splitMode:o,inOutMode:i,hasHeaderRow:a}){if(e.length===0){return null}let s=Object.keys(e[0]);n=n||{};return(0,t.jsxs)(eu.Z,{children:[(0,t.jsx)(ek.eX,{title:"CSV FIELDS"}),(0,t.jsxs)(eb.Z,{direction:"row",align:"flex-start",spacing:1,style:{marginTop:5},children:[(0,t.jsxs)(eu.Z,{style:{flex:1},children:[(0,t.jsx)(ab,{title:"Date"}),(0,t.jsx)(aS,{options:s,value:n.date,style:{marginRight:5},onChange:e=>r("date",e),hasHeaderRow:a,firstTransaction:e[0]})]}),(0,t.jsxs)(eu.Z,{style:{flex:1},children:[(0,t.jsx)(ab,{title:"Payee"}),(0,t.jsx)(aS,{options:s,value:n.payee,style:{marginRight:5},onChange:e=>r("payee",e),hasHeaderRow:a,firstTransaction:e[0]})]}),(0,t.jsxs)(eu.Z,{style:{flex:1},children:[(0,t.jsx)(ab,{title:"Notes"}),(0,t.jsx)(aS,{options:s,value:n.notes,style:{marginRight:5},onChange:e=>r("notes",e),hasHeaderRow:a,firstTransaction:e[0]})]}),o?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(eu.Z,{style:{flex:.5},children:[(0,t.jsx)(ab,{title:"Outflow"}),(0,t.jsx)(aS,{options:s,value:n.outflow,onChange:e=>r("outflow",e),hasHeaderRow:a,firstTransaction:e[0]})]}),(0,t.jsxs)(eu.Z,{style:{flex:.5},children:[(0,t.jsx)(ab,{title:"Inflow"}),(0,t.jsx)(aS,{options:s,value:n.inflow,onChange:e=>r("inflow",e),hasHeaderRow:a,firstTransaction:e[0]})]})]}):(0,t.jsxs)(t.Fragment,{children:[i&&(0,t.jsxs)(eu.Z,{style:{flex:1},children:[(0,t.jsx)(ab,{title:"In/Out"}),(0,t.jsx)(aS,{options:s,value:n.inOut,onChange:e=>r("inOut",e),hasHeaderRow:a,firstTransaction:e[0]})]}),(0,t.jsxs)(eu.Z,{style:{flex:1},children:[(0,t.jsx)(ab,{title:"Amount"}),(0,t.jsx)(aS,{options:s,value:n.amount,onChange:e=>r("amount",e),hasHeaderRow:a,firstTransaction:e[0]})]})]})]})]})}function a_({modalProps:e,options:n}){let r=(0,y.v9)(e=>e.prefs.local.dateFormat||"MM/dd/yyyy");let o=(0,y.v9)(e=>e.prefs.local);let{parseTransactions:i,importTransactions:a,getPayees:s,savePrefs:l}=(0,en.o)();let[u,c]=(0,m.useState)("");let[f,h]=(0,m.useState)("parsing");let[p,g]=(0,m.useState)(null);let[v,w]=(0,m.useState)(n.filename);let[x,b]=(0,m.useState)([]);let[S,k]=(0,m.useState)(null);let[j,C]=(0,m.useState)(null);let[T,E]=(0,m.useState)(false);let[_,I]=(0,m.useState)(false);let[M,D]=(0,m.useState)("");let[P,O]=(0,m.useState)(false);let[A,R]=(0,m.useState)(false);let{accountId:Z,onImported:z}=n;let[N,L]=(0,m.useState)(o[`csv-delimiter-${Z}`]||(v.endsWith(".tsv")?" ":","));let[H,F]=(0,m.useState)(o[`csv-has-header-${Z}`]??true);let[V,W]=(0,m.useState)(o[`ofx-fallback-missing-payee-${Z}`]??true);let[U,K]=(0,m.useState)(null);let[$,q]=(0,m.useState)(true);const Y=(0,al.Z)("experimentalOfxParser");async function G(e,t){h("parsing");let n=ah(e);w(e);k(n);t={...t,enableExperimentalOfxParser:Y};let{errors:r,transactions:a}=await i(e,t);h(null);g(null);if(r.length>0){g({parsed:true,message:r[0].message||"Internal error"})}else{if(n==="csv"||n==="qif"){O(o[`flip-amount-${Z}-${n}`]||false)}if(n==="csv"){let e=o[`csv-mappings-${Z}`];e=e?JSON.parse(e):av(a);C(e);let t=!!(e.outflow||e.inflow);E(t);K(o[`parse-date-${Z}-${n}`]||ag(a,e))}else if(n==="qif"){K(o[`parse-date-${Z}-${n}`]||ag(a,{date:"date"}))}else{C(null);K(null)}b(a.reverse())}}function X(e){const t=e;if(!t||t.match(/^\d{1,}(\.\d{0,4})?$/)){c(t)}}(0,m.useEffect)(()=>{const e=ah(n.filename);const t=aI(e,{delimiter:N,hasHeaderRow:H,fallbackMissingPayeeToMemo:V});G(n.filename,t)},[i,n.filename]);function Q(){if(j==null){return}if(P===true){O(!P)}let e=!T;E(e);I(false);O(false);let t=av(x);let n=e?{amount:null,outflow:t.amount,inflow:null}:{amount:t.amount,outflow:null,inflow:null};C({...j,...n})}async function J(){const e=await window.Actual.openFileDialog({filters:[{name:"Financial Files",extensions:["qif","ofx","qfx","csv","tsv"]}]});const t=ah(e[0]);const n=aI(t,{delimiter:N,hasHeaderRow:H,fallbackMissingPayeeToMemo:V});G(e[0],n)}function ee(e,t){C({...j,[e]:t===""?null:t})}async function et(){h("importing");let t=[];let n;for(let e of x){e=j?am(e,j):e;let r=aM(S)?e.date:ad(e.date,U);if(r==null){n=`Unable to parse date ${e.date||"(empty)"} with given date format`;break}let{amount:o}=aw(e,T,_,M,P,u);if(o==null){n=`Transaction on ${e.date} has no amount`;break}let{inflow:i,outflow:a,inOut:s,...l}=e;t.push({...l,date:r,amount:(0,B.l9)(o),cleared:$})}if(n){h(null);g({parsed:false,message:n});return}if(!aM(S)){let e=`parse-date-${Z}-${S}`;l({[e]:U})}if(aM(S)){l({[`ofx-fallback-missing-payee-${Z}`]:V})}if(S==="csv"){l({[`csv-mappings-${Z}`]:JSON.stringify(j)});l({[`csv-delimiter-${Z}`]:N})}if(S==="csv"||S==="qif"){l({[`flip-amount-${Z}-${S}`]:P})}let r=await a(Z,t);if(r){await s()}if(z){z(r)}e.onClose()}let er=[{name:"Date",width:200},{name:"Payee",width:"flex"},{name:"Notes",width:"flex"}];if(_){er.push({name:"In/Out",width:90,style:{textAlign:"left"}})}if(T){er.push({name:"Outflow",width:90,style:{textAlign:"right"}});er.push({name:"Inflow",width:90,style:{textAlign:"right"}})}else{er.push({name:"Amount",width:90,style:{textAlign:"right"}})}return(0,t.jsxs)(ew.C,{title:"Import transactions"+(S?` (${S.toUpperCase()})`:""),...e,loading:f==="parsing",style:{width:800},children:[p&&!p.parsed&&(0,t.jsx)(eu.Z,{style:{alignItems:"center",marginBottom:15},children:(0,t.jsxs)(eS.Z,{style:{marginRight:10,color:ei.rS.errorText},children:[(0,t.jsx)("strong",{children:"Error:"})," ",p.message]})}),(!p||!p.parsed)&&(0,t.jsxs)(eu.Z,{style:{flex:"unset",height:300,border:"1px solid "+ei.rS.tableBorder},children:[(0,t.jsx)(n5.xD,{headers:er}),(0,t.jsx)(n5.pX,{items:x,fields:["payee","amount"],style:{backgroundColor:ei.rS.tableHeaderBackground},getItemKey:e=>e,renderEmpty:()=>{return(0,t.jsx)(eu.Z,{style:{textAlign:"center",marginTop:25,color:ei.rS.tableHeaderText,fontStyle:"italic"},children:"No transactions found"})},renderItem:({key:e,style:n,item:o,editing:i,focusedField:a})=>(0,t.jsx)(eu.Z,{style:n,children:(0,t.jsx)(ax,{transaction:o,showParsed:S==="csv"||S==="qif",parseDateFormat:U,dateFormat:r,fieldMappings:j,splitMode:T,inOutMode:_,outValue:M,flipAmount:P,multiplierAmount:u})},e)})]}),p&&p.parsed&&(0,t.jsxs)(eu.Z,{style:{color:ei.rS.errorText,alignItems:"center",marginTop:10},children:[(0,t.jsxs)(eS.Z,{style:{maxWidth:450,marginBottom:15},children:[(0,t.jsx)("strong",{children:"Error:"})," ",p.message]}),p.parsed&&(0,t.jsx)(em.Z,{onClick:()=>J(),children:"Select new file..."})]}),S==="csv"&&(0,t.jsx)(eu.Z,{style:{marginTop:25},children:(0,t.jsx)(aE,{transactions:x,onChange:ee,mappings:j,splitMode:T,inOutMode:_,hasHeaderRow:H})}),aM(S)&&(0,t.jsx)(aj,{id:"form_fallback_missing_payee",checked:V,onChange:()=>{W(e=>!e);G(v,aI("ofx",{fallbackMissingPayeeToMemo:!V}))},children:"Use Memo as a fallback for empty Payees"}),(S==="qif"||S==="csv")&&(0,t.jsx)(eu.Z,{style:{marginTop:25},children:(0,t.jsxs)(eb.Z,{direction:"row",align:"flex-start",spacing:1,style:{marginTop:5},children:[(0,t.jsx)(eu.Z,{children:(S==="qif"||S==="csv")&&(0,t.jsx)(ak,{transactions:x,fieldMappings:j,parseDateFormat:U,onChange:K})}),S==="csv"&&(0,t.jsxs)(eu.Z,{style:{marginLeft:25,gap:5},children:[(0,t.jsx)(ek.eX,{title:"CSV OPTIONS"}),(0,t.jsxs)("label",{style:{display:"flex",flexDirection:"row",gap:5,alignItems:"baseline"},children:["Delimiter:",(0,t.jsx)(au.Z,{options:[[",",","],[";",";"],["|","|"],[" ","tab"]],value:N,onChange:e=>{L(e);G(v,aI("csv",{delimiter:e,hasHeaderRow:H}))},style:{width:50}})]}),(0,t.jsx)(aj,{id:"form_has_header",checked:H,onChange:()=>{F(!H);G(v,aI("csv",{delimiter:N,hasHeaderRow:!H}))},children:"File has header row"}),(0,t.jsx)(aj,{id:"clear_on_import",checked:$,onChange:()=>{q(!$)},children:"Clear transactions on import"})]}),(0,t.jsx)(eu.Z,{style:{flex:1}}),(0,t.jsxs)(eu.Z,{style:{marginRight:25,gap:5},children:[(0,t.jsx)(ek.eX,{title:"AMOUNT OPTIONS"}),(0,t.jsx)(aj,{id:"form_flip",checked:P,disabled:T||_,onChange:()=>O(!P),children:"Flip amount"}),S==="csv"&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(aj,{id:"form_split",checked:T,disabled:_||P,onChange:Q,children:"Split amount into separate inflow/outflow columns"}),(0,t.jsx)(aT,{inOutMode:_,outValue:M,disabled:T||P,onToggle:()=>I(!_),onChangeText:D})]}),(0,t.jsx)(aC,{multiplierEnabled:A,multiplierAmount:u,onToggle:()=>{R(!A);c("")},onChangeAmount:X})]})]})}),(0,t.jsx)(eu.Z,{style:{flexDirection:"row",marginTop:5},children:(0,t.jsx)(eu.Z,{style:{alignSelf:"flex-end",flexDirection:"row",alignItems:"center"},children:(0,t.jsxs)(em.y,{type:"primary",disabled:x.length===0,loading:f==="importing",onClick:et,children:["Import ",x.length," transactions"]})})})]})}function aI(e,t={}){if(e==="csv"){const{delimiter:e,hasHeaderRow:n}=t;return{delimiter:e,hasHeaderRow:n}}else if(aM(e)){const{fallbackMissingPayeeToMemo:e}=t;return{fallbackMissingPayeeToMemo:e}}return{}}function aM(e){return e==="ofx"||e==="qfx"};class aD extends m.Component{state={hoveredBackup:null};onHover=e=>{this.setState({hoveredBackup:e})};render(){const{backups:e,onSelect:n}=this.props;const{hoveredBackup:r}=this.state;return(0,t.jsx)(eu.Z,{style:{flex:1,maxHeight:200,overflow:"auto"},onMouseLeave:()=>this.onHover(null),children:e.map((e,o)=>(0,t.jsx)(n5.X2,{collapsed:o!==0,focused:r===e.id,onMouseEnter:()=>this.onHover(e.id),onClick:()=>n(e.id),style:{cursor:"pointer"},children:(0,t.jsx)(n5.bL,{width:"flex",value:e.date?e.date:"Revert to Latest",valueStyle:{paddingLeft:20}})},e.id))})}}function aP({budgetId:e,watchUpdates:n,backupDisabled:r,actions:o,modalProps:i}){let[a,s]=(0,m.useState)([]);(0,m.useEffect)(()=>{(0,q.lW)("backups-get",{id:e}).then(s)},[e]);(0,m.useEffect)(()=>{if(n){(0,q.oL)("backups-updated",s);return()=>(0,q.Ev)("backups-updated",s)}},[n]);const l=a.find(e=>e.isLatest);const u=a.filter(e=>!e.isLatest);return(0,t.jsx)(ew.C,{title:"Load Backup",padding:0,...i,style:{flex:0},children:()=>(0,t.jsxs)(eu.Z,{style:{marginBottom:30},children:[(0,t.jsx)(eu.Z,{style:{margin:20,marginTop:0,marginBottom:15,lineHeight:1.5},children:l?(0,t.jsxs)(el.Z,{children:[(0,t.jsxs)(el.Z,{style:{marginBottom:10},children:[(0,t.jsx)(eS.Z,{style:{fontWeight:600},children:"You are currently working from a backup."})," ","You can load a different backup or revert to the original version below."]}),(0,t.jsx)(em.Z,{type:"primary",onClick:()=>o.loadBackup(e,l.id),children:"Revert to original version"})]}):(0,t.jsxs)(eu.Z,{style:{alignItems:"flex-start"},children:[(0,t.jsxs)(el.Z,{style:{marginBottom:10},children:["Select a backup to load. After loading a backup, you will have a chance to revert to the current version in this screen."," ",(0,t.jsx)(eS.Z,{style:{fontWeight:600},children:"If you use a backup, you will have to setup all your devices to sync from the new budget."})]}),(0,t.jsx)(em.Z,{type:"primary",disabled:r,onClick:()=>o.makeBackup(),children:"Backup Now"})]})}),u.length===0?(0,t.jsx)(el.Z,{style:{color:ei.rS.tableTextLight,marginLeft:20},children:"No backups available"}):(0,t.jsx)(aD,{backups:u,onSelect:t=>o.loadBackup(e,t)})]})})}var aO=aP;var aA=n(50102);function aR({modalProps:e,payeeId:n}){let[r,o]=(0,m.useState)(true);let i=(0,nP.TH)();if((0,aA.Ry)()){if(i.pathname!=="/payees"){throw new Error(`Possibly invalid use of ManageRulesModal, add the current url \`${i.pathname}\` to the allowlist if you’re confident the modal can never appear on top of the \`/rules\` page.`)}}return(0,t.jsx)(ew.C,{title:"Rules",padding:0,loading:r,...e,style:{flex:1,maxWidth:"90%",maxHeight:"90%"},children:()=>(0,t.jsx)(rg,{isModal:true,payeeId:n,setLoading:o})})};let aZ={color:ei.rS.pageTextPositive};function az({modalProps:e,payeeIds:n,targetPayeeId:r}){let{payees:o,modalStack:i}=(0,y.v9)(e=>({payees:e.queries.payees,modalStack:e.modals.modalStack}));let a=!!i.find(e=>e.name==="edit-rule");let s=(0,y.I0)();let[l,u]=(0,m.useState)(true);let c=(0,m.useRef)(null);(0,m.useEffect)(()=>{if(c.current){let e=c.current;let t=e.scrollTop;e.scrollTop=t+1;e.scrollTop=t}},[c.current,true]);let[f]=(0,m.useState)(()=>n.map(e=>o.find(t=>t.id===e)));let h=o.find(e=>e.id===r);if(!h){return null}async function p(){await (0,q.lW)("payees-merge",{targetId:h.id,mergeIds:f.map(e=>e.id)});let t;if(l&&!a){let e=await (0,q.lW)("rule-add-payee-rename",{fromNames:f.map(e=>e.name),to:h.id});t=e}e.onClose();return t}async function g(){let e=await p();if(e){let t=await (0,q.lW)("rule-get",{id:e});s((0,nX.OB)("edit-rule",{rule:t}))}}return(0,t.jsx)(ew.C,{title:"Merge payee?",padding:0,showHeader:false,...e,style:e.style,children:()=>(0,t.jsx)(eu.Z,{style:{padding:20,maxWidth:500},children:(0,t.jsxs)(eu.Z,{children:[(0,t.jsx)(ex.Z,{style:{marginBottom:10,fontWeight:500},children:f.length===1?(0,t.jsxs)(t.Fragment,{children:["The payee ",(0,t.jsx)(eS.Z,{style:aZ,children:f[0].name})," ","is not used by transactions any more. Would like to merge it with ",(0,t.jsx)(eS.Z,{style:aZ,children:h.name}),"?"]}):(0,t.jsxs)(t.Fragment,{children:["The following payees are not used by transactions any more. Would like to merge them with"," ",(0,t.jsx)(eS.Z,{style:aZ,children:h.name}),"?",(0,t.jsx)("ul",{ref:c,style:{margin:0,marginTop:10,maxHeight:140,overflow:"auto"},children:f.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(eS.Z,{style:aZ,children:e.name})},e.id))})]})}),(0,t.jsxs)(i4,{children:["Merging will remove the payee and transfer any existing rules to the new payee.",!a&&(0,t.jsxs)(t.Fragment,{children:[" ","If checked below, a rule will be created to do this rename while importing transactions."]})]}),!a&&(0,t.jsxs)("label",{style:{fontSize:13,marginTop:10,color:ei.rS.pageTextLight,userSelect:"none",display:"flex",alignItems:"center",justifyContent:"center"},children:[(0,t.jsx)("input",{type:"checkbox",checked:l,onChange:e=>u(e.target.checked)}),(0,t.jsxs)(eS.Z,{style:{marginLeft:3},children:["Automatically rename"," ",f.length===1?"this payee":"these payees"," in the future"]})]}),(0,t.jsxs)(ew.Z,{style:{marginTop:20},focusButton:true,children:[(0,t.jsx)(em.Z,{type:"primary",isSubmit:false,style:{marginRight:10},onClick:p,children:"Merge"}),!a&&(0,t.jsx)(em.Z,{style:{marginRight:10},onClick:g,children:"Merge and edit rule"}),(0,t.jsx)(em.Z,{style:{marginRight:10},onClick:()=>e.onBack(),children:"Do nothing"})]})]})})})};function aN(e){return(0,t.jsx)(i3,{style:{alignSelf:"center"},children:e==="timeout"?"Timed out. Please try again.":"An error occurred while linking your account, sorry!"})}function aL({modalProps:e,onMoveExternal:n,onSuccess:r,onClose:o}){let[i,a]=(0,m.useState)(null);let[s,l]=(0,m.useState)(false);let[u,c]=(0,m.useState)(null);let f=(0,m.useRef)(null);async function h(){c(null);a("browser");let e=await n();if(e.error){c(e.error);a(null);return}f.current=e.data;a(null);l(true)}function p(){o?.();e.onClose()}async function g(){a("accounts");await r(f.current);a(null)}return(0,t.jsx)(ew.C,{title:"Link Your Bank",...e,onClose:p,style:{flex:0},children:()=>(0,t.jsxs)(eu.Z,{children:[(0,t.jsx)(ex.Z,{style:{fontSize:15},children:"To link your bank account, you will be moved to your browser for enhanced security. Click below and Actual will automatically resume when you have given your bank’s credentials."}),u&&aN(u),i?(0,t.jsxs)(eu.Z,{style:{alignItems:"center",marginTop:15},children:[(0,t.jsx)(es.Z,{color:ei.rS.pageTextDark,style:{width:20,height:20}}),(0,t.jsx)(eu.Z,{style:{marginTop:10,color:ei.rS.pageText},children:i==="browser"?"Waiting on browser...":i==="accounts"?"Loading accounts...":null})]}):s?(0,t.jsx)(em.Z,{type:"primary",style:{padding:"10px 0",fontSize:15,fontWeight:600,marginTop:10},onClick:g,children:"Success! Click to continue →"}):(0,t.jsx)(em.Z,{type:"primary",style:{padding:"10px 0",fontSize:15,fontWeight:600,marginTop:10},onClick:h,children:"Link bank in browser →"}),(0,t.jsx)("div",{style:{marginTop:i?30:35},children:(0,t.jsx)(eS.Z,{style:{color:ei.rS.pageText,fontWeight:600},children:"Why not link it in the app?"})}),(0,t.jsx)(eS.Z,{style:{marginTop:10,color:ei.rS.pageText,fontSize:13,"& a, & a:visited":{color:ei.rS.pageText}},children:"Typing your bank’s username and password is one of the most security-sensitive things you can do, and the browser is the most secure app in the world. Why not use it to make sure your information is safe? [TODO: Link to docs article]"}),(0,t.jsx)(ew.Z,{style:{marginTop:10},children:(0,t.jsx)(em.Z,{onClick:()=>e.onBack(),children:"Back"})})]})})}var aB=n(78125);var aH=n(28376);var aF=n(59343);var aV=n(57201);function aW({month:e,modalProps:n}){const r=iU.dK();return(0,t.jsx)(ew.C,{title:"Budget Summary",...n,children:()=>(0,t.jsxs)(aV.Z.Provider,{value:(0,iU.cv)(e),children:[(0,t.jsxs)(eb.Z,{spacing:2,style:{alignSelf:"center",backgroundColor:"transparent",borderRadius:4},children:[(0,t.jsx)(aH.Z,{style:{...ei.W2.mediumText}}),(0,t.jsx)(aB.Z,{style:{...ei.W2.mediumText}})]}),(0,t.jsx)(aF.Z,{projected:e>=r,style:{...ei.W2.mediumText,marginTop:20}})]})})}var aU=n(36467);var aK=n(28536);function a$({month:e,onBudgetAction:n,modalProps:r}){const o=(0,iU.WU)((0,iU.dy)(e),"MMM");return(0,t.jsx)(ew.C,{title:"Budget Summary",...r,children:()=>(0,t.jsxs)(aV.Z.Provider,{value:(0,iU.cv)(e),children:[(0,t.jsx)(aK.Z,{prevMonthName:o,style:{...ei.W2.mediumText}}),(0,t.jsx)(aU.Z,{month:e,prevMonthName:o,onBudgetAction:n,style:{...ei.W2.mediumText,marginTop:15},amountStyle:{...ei.W2.underlinedText},totalsTooltipProps:{position:"bottom-center"},holdTooltipProps:{position:"bottom-center"},transferTooltipProps:{position:"bottom-center"}})]})})};const aq={id:"new",name:"Create new account"};function aY({modalProps:e,requisitionId:n,externalAccounts:r,localAccounts:o,actions:i}){const[a,s]=(0,m.useState)(()=>{return Object.fromEntries(o.filter(e=>e.account_id).map(e=>[e.account_id,e.id]))});async function l(){const e=Object.values(a);o.filter(e=>e.account_id).filter(t=>!e.includes(t.id)).forEach(e=>i.unlinkAccount(e.id));Object.entries(a).forEach(([e,t])=>{const o=r.find(t=>t.account_id===e);if(!o){return}i.linkAccount(n,o,t!==aq.id?t:undefined)});i.closeModal()}const u=o.filter(e=>!Object.values(a).includes(e.id));function c(e,t){s(n=>{const r={...n};if(t){r[e.account_id]=t}else{delete r[e.account_id]}return r})}return(0,t.jsx)(ew.C,{title:"Link Accounts",...e,style:{width:800},children:()=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(eS.Z,{style:{marginBottom:10},children:"We found the following accounts. Select which ones you want to add:"}),(0,t.jsxs)(eu.Z,{style:{flex:"unset",height:300,border:"1px solid "+ei.rS.tableBorder},children:[(0,t.jsx)(n5.xD,{headers:[{name:"Bank Account To Sync",width:200},{name:"Account in Actual",width:"flex"},{name:"Actions",width:"flex"}]}),(0,t.jsx)(n5.iA,{items:r,style:{backgroundColor:ei.rS.tableHeaderBackground},getItemKey:e=>e,renderItem:({key:e,item:n})=>(0,t.jsx)(eu.Z,{children:(0,t.jsx)(aG,{externalAccount:n,chosenAccount:a[n.account_id]===aq.id?aq:o.find(e=>a[n.account_id]===e.id),unlinkedAccounts:u,onSetLinkedAccount:c})},e)})]}),(0,t.jsx)(eu.Z,{style:{flexDirection:"row",justifyContent:"flex-end",marginTop:10},children:(0,t.jsx)(em.Z,{type:"primary",onClick:l,disabled:!Object.keys(a).length,children:"Link accounts"})})]})})}function aG({externalAccount:e,chosenAccount:n,unlinkedAccounts:r,onSetLinkedAccount:o}){const[i,a]=(0,m.useState)(null);const s=[...r,n?.id!==aq.id&&n,aq].filter(Boolean);return(0,t.jsxs)(n5.X2,{style:{backgroundColor:ei.rS.tableBackground},children:[(0,t.jsx)(n5.gN,{width:200,children:e.name}),(0,t.jsx)(n5.gN,{width:"flex",truncate:i!=="account",onClick:()=>a("account"),children:i==="account"?(0,t.jsx)(i8.ZP,{focused:true,strict:true,highlightFirst:true,suggestions:s,onSelect:t=>{o(e,t)},inputProps:{onBlur:()=>a(null)},value:n?.id}):(n?.name)}),(0,t.jsx)(n5.gN,{width:"flex",children:n?(0,t.jsx)(em.Z,{onClick:()=>{o(e,null)},style:{float:"right"},children:"Remove bank-sync"}):(0,t.jsx)(em.Z,{type:"primary",onClick:()=>{a("account")},style:{float:"right"},children:"Setup bank-sync"})})]})};function aX({modalProps:e,title:n,buttonText:r,onSubmit:o,onValidate:i,inputPlaceholder:a}){const[s,l]=(0,m.useState)("");const[u,c]=(0,m.useState)(null);const f=t=>{const n=i?.(t);if(n){c(n);return}o?.(t);e.onClose()};return(0,t.jsx)(ew.C,{title:n,...e,children:()=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(eu.Z,{style:{flexDirection:"row",justifyContent:"center",paddingBottom:15},children:(0,t.jsxs)(eu.Z,{style:{flexDirection:"column",flex:1},children:[(0,t.jsx)(iZ.Z,{children:(0,t.jsx)(iz.ZP,{placeholder:a,onUpdate:l,onEnter:e=>f(e.currentTarget.value)})}),u&&(0,t.jsxs)(iC,{style:{paddingTop:5},children:["* ",u]})]})}),(0,t.jsx)(eu.Z,{style:{flexDirection:"row",justifyContent:"center",paddingBottom:15},children:(0,t.jsx)(em.Z,{onPointerUp:e=>f(s),children:r})})]})})}var aQ=aX;function aJ({modalProps:e,onSwitch:n}){const r=(0,y.v9)(e=>e.prefs.local.budgetType);return(0,t.jsx)(ew.C,{title:"Switch budget type?",...e,children:()=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(ex.Z,{children:["You are currently using a"," ",(0,t.jsxs)(eS.Z,{style:{fontWeight:600},children:[r==="report"?"Report budget":"Rollover budget","."]})," ","Switching will not lose any data and you can always switch back."]}),(0,t.jsxs)(em.Z,{type:"primary",onClick:()=>{n();e.onClose?.()},children:["Switch to a"," ",r==="report"?"Rollover budget":"Report budget"]}),(0,t.jsx)(ex.Z,{isLast:true,style:{marginTop:10},children:(0,t.jsx)(eg.Z,{to:"https://actualbudget.org/docs/experimental/report-budget",linkColor:"muted",children:"How do these types of budgeting work?"})})]})})};function a0(e,t,n){const[r,o]=(0,m.useState)(null);const[i,a]=(0,m.useState)(null);(0,m.useEffect)(()=>{async function r(){a(true);o(await (0,q.lW)(e,t,n));a(false)}r()},[e,t,n]);return{data:r,isLoading:i}}var a1=n(10464);var a2=n(75497);const a4=43;function a5({schedules:e,loading:n}){const r=(0,n2.D9)();const o=(0,n2.YP)();function i({item:e}){const n=r.has(e.id);const i=e._conditions.find(e=>e.field==="amount").op;const a=(0,n0.o7)(e.date);return(0,t.jsxs)(n5.X2,{height:a4,inset:15,onClick:t=>{o({type:"select",id:e.id,event:t})},style:{borderColor:n?ei.rS.tableBorderSelected:ei.rS.tableBorder,cursor:"pointer",color:n?ei.rS.tableRowBackgroundHighlightText:ei.rS.tableText,backgroundColor:n?ei.rS.tableRowBackgroundHighlight:ei.rS.tableBackground,":hover":{backgroundColor:ei.rS.tableRowBackgroundHover,color:ei.rS.tableText}},children:[(0,t.jsx)(n5._7,{exposed:true,focused:false,selected:n,onSelect:t=>{o({type:"select",id:e.id,event:t})}}),(0,t.jsx)(n5.gN,{width:"flex",children:(0,t.jsx)(a1.Z,{type:"payees",id:e.payee})}),(0,t.jsx)(n5.gN,{width:"flex",children:(0,t.jsx)(a1.Z,{type:"accounts",id:e.account})}),(0,t.jsx)(n5.gN,{width:"auto",title:a,style:{flex:1.5},children:a}),(0,t.jsx)(a2.zB,{amount:e.amount,op:i})]})}return(0,t.jsxs)(eu.Z,{style:{flex:1},children:[(0,t.jsxs)(n5.xD,{height:a4,inset:15,children:[(0,t.jsx)(n5._7,{exposed:!n,focused:false,selected:r.size>0,onSelect:e=>o({type:"select-all",event:e})}),(0,t.jsx)(n5.gN,{width:"flex",children:"Payee"}),(0,t.jsx)(n5.gN,{width:"flex",children:"Account"}),(0,t.jsx)(n5.gN,{width:"auto",style:{flex:1.5},children:"When"}),(0,t.jsx)(n5.gN,{width:100,style:{textAlign:"right"},children:"Amount"})]}),(0,t.jsx)(n5.iA,{rowHeight:a4,style:{flex:1,backgroundColor:"transparent"},items:e,loading:n,isSelected:e=>r.has(e),renderItem:i,renderEmpty:"No schedules found"})]})}function a3({modalProps:e,actions:n}){const{data:r,isLoading:o}=a0("schedule/discover");const i=r||[];const[a,s]=(0,m.useState)(false);const l=(0,n2.ZP)("discover-schedules",i,[]);async function u(){const e=i.filter(e=>l.items.has(e.id));s(true);for(let t of e){const e=await (0,q.lW)("schedule/create",{conditions:t._conditions,schedule:{}});const{filters:n}=await (0,q.lW)("make-filters-from-conditions",{conditions:t._conditions});if(n.length>0){const{data:t}=await (0,T.Vn)((0,T.ZP)("transactions").filter({$and:n}).select("id"));await (0,q.lW)("transactions-batch-update",{updated:t.map(t=>({id:t.id,schedule:e}))})}}s(false);n.popModal()}return(0,t.jsxs)(ew.C,{title:"Found schedules",size:{width:850,height:650},...e,children:[(0,t.jsx)(ex.Z,{children:"We found some possible schedules in your current transactions. Select the ones you want to create."}),(0,t.jsx)(ex.Z,{children:"If you expected a schedule here and don’t see it, it might be because the payees of the transactions don’t match. Make sure you rename payees on all transactions for a schedule to be the same payee."}),(0,t.jsx)(n2.i5,{instance:l,children:(0,t.jsx)(a5,{loading:o,schedules:i})}),(0,t.jsx)(eb.Z,{direction:"row",align:"center",justify:"flex-end",style:{paddingTop:20,paddingBottom:0},children:(0,t.jsx)(em.y,{type:"primary",loading:a,disabled:l.items.size===0,onClick:u,children:"Create schedules"})})]})}var a8=n(14644);var a6=n(5646);var a7=n(82345);var a9=n(60279);function se(e,t){let n=(0,n0.lq)(e._conditions);let r=(e,t,n,r)=>{if(e){return{...e,value:r}}if(r!=null){return{op:t,field:n,value:r}}return null};if(t.date==null){return{error:"Date is required"}}if(t.amount==null){return{error:"A valid amount is required"}}return{conditions:[r(n.payee,"is","payee",t.payee),r(n.account,"is","account",t.account),r(n.date,"isapprox","date",t.date),{op:t.amountOp,field:"amount",value:t.amount}].filter(Boolean)}}function st({modalProps:e,actions:n,id:r}){let o=r==null;let i=(0,nZ.n4)({idKey:true});let a=(0,y.I0)();let s=(0,y.v9)(e=>{return e.prefs.local.dateFormat||"MM/dd/yyyy"});let[l,u]=(0,m.useReducer)((e,t)=>{switch(t.type){case"set-schedule":{let n=t.schedule;let r=(0,n0.lq)(n._conditions);let o=new Set(Object.values(r));let i=n._conditions.find(e=>!o.has(e))||n._actions.find(e=>e.op!=="link-schedule");return{...e,schedule:t.schedule,isCustom:i,fields:{payee:n._payee,account:n._account,amount:n._amount||0,amountOp:n._amountOp||"isapprox",date:n._date,posts_transaction:t.schedule.posts_transaction,name:n.name}}}case"set-field":if(!(t.field in e.fields)){throw new Error("Unknown field: "+t.field)}let n={[t.field]:t.value};if(t.field==="amountOp"&&t.value!==e.fields.amountOp){if(t.value==="isbetween"){n.amount=typeof e.fields.amount==="number"?{num1:e.fields.amount,num2:e.fields.amount}:{num1:0,num2:0}}else if(e.fields.amountOp==="isbetween"){n.amount=typeof e.fields.amount==="number"?e.fields.amount:e.fields.amount.num1}}return{...e,fields:{...e.fields,...n}};case"set-transactions":return{...e,transactions:t.transactions};case"set-repeats":return{...e,fields:{...e.fields,date:t.repeats?{frequency:"monthly",start:iU.PR(),patterns:[]}:iU.PR()}};case"set-upcoming-dates":return{...e,upcomingDates:t.dates};case"form-error":return{...e,error:t.error};case"switch-transactions":return{...e,transactionsMode:t.mode};default:throw new Error("Unknown action: "+t.type)}},{schedule:null,upcomingDates:null,error:null,fields:{payee:null,account:null,amount:null,amountOp:null,date:null,posts_transaction:false,name:null},transactions:[],transactionsMode:o?"matched":"linked"});async function c(){let{data:e}=await (0,T.Vn)((0,T.ZP)("schedules").filter({id:r}).select("*"));return e[0]}(0,m.useEffect)(()=>{async function e(){if(o){let e={start:iU.PR(),frequency:"monthly",patterns:[],skipWeekend:false,weekendSolveMode:"after"};let t={posts_transaction:false,_date:e,_conditions:[{op:"isapprox",field:"date",value:e}],_actions:[]};u({type:"set-schedule",schedule:t})}else{let e=await c();if(e&&l.schedule==null){u({type:"set-schedule",schedule:e})}}}e()},[]);(0,m.useEffect)(()=>{async function e(){let e=l.fields.date;if(e==null){u({type:"set-upcoming-dates",dates:null})}else{if(e.frequency){let{data:t}=await (0,q.OK)("schedule/get-upcoming-dates",{config:e,count:3});u({type:"set-upcoming-dates",dates:t})}else{let t=iU.PR();if(e===t||iU.Ax(e,t)){u({type:"set-upcoming-dates",dates:[e]})}else{u({type:"set-upcoming-dates",dates:null})}}}}e()},[l.fields.date]);(0,m.useEffect)(()=>{if(l.schedule&&l.schedule.id&&l.transactionsMode==="linked"){let e=(0,T.Y1)((0,T.ZP)("transactions").filter({schedule:l.schedule.id}).select("*").options({splits:"all"}),e=>u({type:"set-transactions",transactions:e}));return e.unsubscribe}},[l.schedule,l.transactionsMode]);(0,m.useEffect)(()=>{let e=true;let t;if(l.schedule&&l.transactionsMode==="matched"){let{error:n,conditions:r}=se(l.schedule,l.fields);if(n){u({type:"form-error",error:n});return}r=r.map(e=>{if(e.field==="description"){return{...e,field:"payee"}}else if(e.field==="acct"){return{...e,field:"account"}}return e});(0,q.lW)("make-filters-from-conditions",{conditions:r}).then(({filters:n})=>{if(e){let e=(0,T.Y1)((0,T.ZP)("transactions").filter({$and:n}).select("*").options({splits:"all"}),e=>u({type:"set-transactions",transactions:e}));t=e.unsubscribe}})}return()=>{e=false;if(t){t()}}},[l.schedule,l.transactionsMode,l.fields]);let f=(0,n2.ZP)("transactions",l.transactions,[]);async function h(){u({type:"form-error",error:null});if(l.fields.name){let{data:e}=await (0,T.Vn)((0,T.ZP)("schedules").filter({name:l.fields.name}).select("id"));if(e.length>0&&e[0].id!==l.schedule.id){u({type:"form-error",error:"There is already a schedule with this name"});return}}let{error:e,conditions:t}=se(l.schedule,l.fields);if(e){u({type:"form-error",error:e});return}let r=await (0,q.OK)(o?"schedule/create":"schedule/update",{schedule:{id:l.schedule.id,posts_transaction:l.fields.posts_transaction,name:l.fields.name},conditions:t});if(r.error){u({type:"form-error",error:"An error occurred while saving. Please visit https://actualbudget.org/contact/ for support."})}else{if(o){await g([...f.items],r.data)}n.popModal()}}async function p(e){let t=await (0,q.lW)("rule-get",{id:e||l.schedule.rule});a((0,nX.Ll)("edit-rule",{rule:t,onSave:async()=>{let e=await c();u({type:"set-schedule",schedule:e})}}))}async function g(e,t){await (0,q.lW)("transactions-batch-update",{updated:e.map(e=>({id:e,schedule:t||l.schedule.id}))});f.dispatch({type:"select-none"})}async function v(e){await (0,q.lW)("transactions-batch-update",{updated:e.map(e=>({id:e,schedule:null}))});f.dispatch({type:"select-none"})}if(l.schedule==null){return null}function w(e){u({type:"switch-transactions",mode:e});f.dispatch({type:"select-none"})}let x=i?i[l.fields.payee]:null;let b=l.fields.date?!!l.fields.date.frequency:false;return(0,t.jsxs)(ew.C,{title:x?`Schedule: ${x.name}`:"Schedule",size:"medium",...e,children:[(0,t.jsx)(eb.Z,{direction:"row",style:{marginTop:10},children:(0,t.jsxs)(ek.Wi,{style:{flex:1},children:[(0,t.jsx)(ek.lX,{title:"Schedule Name",htmlFor:"name-field"}),(0,t.jsx)(a9.Z,{field:"string",type:"string",value:l.fields.name,multi:false,onChange:e=>{u({type:"set-field",field:"name",value:e})}})]})}),(0,t.jsxs)(eb.Z,{direction:"row",style:{marginTop:20},children:[(0,t.jsxs)(ek.Wi,{style:{flex:1},children:[(0,t.jsx)(ek.lX,{title:"Payee",id:"payee-label",htmlFor:"payee-field"}),(0,t.jsx)(i$.ZP,{value:l.fields.payee,labelProps:{id:"payee-label"},inputProps:{id:"payee-field",placeholder:"(none)"},onSelect:e=>u({type:"set-field",field:"payee",value:e}),isCreatable:true})]}),(0,t.jsxs)(ek.Wi,{style:{flex:1},children:[(0,t.jsx)(ek.lX,{title:"Account",id:"account-label",htmlFor:"account-field"}),(0,t.jsx)(ik.ZP,{includeClosedAccounts:false,value:l.fields.account,labelProps:{id:"account-label"},inputProps:{id:"account-field",placeholder:"(none)"},onSelect:e=>u({type:"set-field",field:"account",value:e})})]}),(0,t.jsxs)(ek.Wi,{style:{flex:1},children:[(0,t.jsxs)(eb.Z,{direction:"row",align:"center",style:{marginBottom:3},children:[(0,t.jsx)(ek.lX,{title:"Amount",htmlFor:"amount-field",style:{margin:0,flex:1}}),(0,t.jsx)(iX.Jz,{ops:["isapprox","is","isbetween"],value:l.fields.amountOp,formatOp:e=>{switch(e){case"is":return"is exactly";case"isapprox":return"is approximately";case"isbetween":return"is between";default:throw new Error("Invalid op for select: "+e)}},style:{padding:"0 10px",color:ei.rS.pageTextLight,fontSize:12},onChange:(e,t)=>u({type:"set-field",field:"amountOp",value:t})})]}),l.fields.amountOp==="isbetween"?(0,t.jsx)(a7.I,{defaultValue:l.fields.amount,onChange:e=>u({type:"set-field",field:"amount",value:e})}):(0,t.jsx)(a7._,{id:"amount-field",initialValue:l.fields.amount,onChange:e=>u({type:"set-field",field:"amount",value:e})})]})]}),(0,t.jsx)(eu.Z,{style:{marginTop:20},children:(0,t.jsx)(ek.lX,{title:"Date"})}),(0,t.jsxs)(eb.Z,{direction:"row",align:"flex-start",justify:"space-between",children:[(0,t.jsxs)(eu.Z,{style:{width:"13.44rem"},children:[b?(0,t.jsx)(a8.Z,{value:l.fields.date,onChange:e=>u({type:"set-field",field:"date",value:e})}):(0,t.jsx)(iq.Z,{value:l.fields.date,onSelect:e=>u({type:"set-field",field:"date",value:e}),dateFormat:s}),l.upcomingDates&&(0,t.jsxs)(eu.Z,{style:{fontSize:13,marginTop:20},children:[(0,t.jsx)(eS.Z,{style:{color:ei.rS.pageTextLight,fontWeight:600},children:"Upcoming dates"}),(0,t.jsx)(eb.Z,{direction:"column",spacing:1,style:{marginTop:10,color:ei.rS.pageTextLight},children:l.upcomingDates.map(e=>(0,t.jsx)(eu.Z,{children:iU.WU(e,`${s} EEEE`)},e))})]})]}),(0,t.jsxs)(eu.Z,{style:{marginTop:5,flexDirection:"row",alignItems:"center",userSelect:"none"},children:[(0,t.jsx)(ek.XZ,{id:"form_repeats",checked:b,onChange:e=>{u({type:"set-repeats",repeats:e.target.checked})}}),(0,t.jsx)("label",{htmlFor:"form_repeats",style:{userSelect:"none"},children:"Repeats"})]}),(0,t.jsxs)(eb.Z,{align:"flex-end",children:[(0,t.jsxs)(eu.Z,{style:{marginTop:5,flexDirection:"row",alignItems:"center",userSelect:"none",justifyContent:"flex-end"},children:[(0,t.jsx)(ek.XZ,{id:"form_posts_transaction",checked:l.fields.posts_transaction,onChange:e=>{u({type:"set-field",field:"posts_transaction",value:e.target.checked})}}),(0,t.jsx)("label",{htmlFor:"form_posts_transaction",style:{userSelect:"none"},children:"Automatically add transaction"})]}),(0,t.jsx)(eS.Z,{style:{width:350,textAlign:"right",color:ei.rS.pageTextLight,marginTop:10,fontSize:13,lineHeight:"1.4em"},children:"If checked, the schedule will automatically create transactions for you in the specified account"}),!o&&l.schedule.rule&&(0,t.jsxs)(eb.Z,{direction:"row",align:"center",style:{marginTop:20},children:[l.isCustom&&(0,t.jsx)(eS.Z,{style:{color:ei.rS.pageTextLight,fontSize:13,textAlign:"right",width:350},children:"This schedule has custom conditions and actions"}),(0,t.jsx)(em.Z,{onClick:()=>p(),disabled:o,children:"Edit as rule"})]})]})]}),(0,t.jsx)(eu.Z,{style:{marginTop:30,flex:1},children:(0,t.jsxs)(n2.i5,{instance:f,children:[o?(0,t.jsxs)(eu.Z,{style:{flexDirection:"row",padding:"5px 0"},children:[(0,t.jsx)(eS.Z,{style:{color:ei.rS.pageTextLight},children:"These transactions match this schedule:"}),(0,t.jsx)(eu.Z,{style:{flex:1}}),(0,t.jsx)(eS.Z,{style:{color:ei.rS.pageTextLight},children:"Select transactions to link on save"})]}):(0,t.jsxs)(eu.Z,{style:{flexDirection:"row",alignItems:"center"},children:[(0,t.jsx)(em.Z,{type:"bare",style:{color:l.transactionsMode==="linked"?ei.rS.pageTextLink:ei.rS.pageTextSubdued,marginRight:10,fontSize:14},onClick:()=>w("linked"),children:"Linked transactions"})," ",(0,t.jsx)(em.Z,{type:"bare",style:{color:l.transactionsMode==="matched"?ei.rS.pageTextLink:ei.rS.pageTextSubdued,fontSize:14},onClick:()=>w("matched"),children:"Find matching transactions"}),(0,t.jsx)(eu.Z,{style:{flex:1}}),(0,t.jsx)(n5.Vg,{name:"transactions",items:l.transactionsMode==="linked"?[{name:"unlink",text:"Unlink from schedule"}]:[{name:"link",text:"Link to schedule"}],onSelect:(e,t)=>{switch(e){case"link":g(t);break;case"unlink":v(t);break;default:}}})]}),(0,t.jsx)(a6.Z,{renderEmpty:(0,t.jsx)(sn,{error:l.error,transactionsMode:l.transactionsMode}),transactions:l.transactions,fields:["date","payee","amount"],style:{border:"1px solid "+ei.rS.tableBorder,borderRadius:4,overflow:"hidden",marginTop:5,maxHeight:200}})]})}),(0,t.jsxs)(eb.Z,{direction:"row",justify:"flex-end",align:"center",style:{marginTop:20},children:[l.error&&(0,t.jsx)(eS.Z,{style:{color:ei.rS.errorText},children:l.error}),(0,t.jsx)(em.Z,{style:{marginRight:10},onClick:n.popModal,children:"Cancel"}),(0,t.jsx)(em.Z,{type:"primary",onClick:h,children:o?"Add":"Save"})]})]})}function sn(e){return(0,t.jsx)(eu.Z,{style:{padding:20,color:ei.rS.pageTextLight,textAlign:"center"},children:e.error?(0,t.jsxs)(eS.Z,{style:{color:ei.rS.errorText},children:["Could not search: ",e.error]}):e.transactionsMode==="matched"?"No matching transactions":"No linked transactions"})}var so=n(62829);function si({modalProps:e,actions:n,transactionIds:r}){let[o,i]=(0,m.useState)("");let a=(0,so.gZ)({transform:(0,m.useCallback)(e=>e.filter({completed:false}),[])});let s=(0,m.useRef)(null);if(a==null){return null}let{schedules:l,statuses:u}=a;async function c(e){if(r?.length>0){await (0,q.lW)("transactions-batch-update",{updated:r.map(t=>({id:t,schedule:e}))})}n.popModal()}return(0,t.jsxs)(ew.C,{title:"Link Schedule",size:{width:600},...e,children:[(0,t.jsxs)(eu.Z,{style:{flexDirection:"row",gap:4,marginBottom:20,alignItems:"center"},children:[(0,t.jsxs)(eS.Z,{children:["Choose the schedule"," ",r?.length>1?`these ${r.length} transactions belong`:`this transaction belongs`," ","to:"]}),(0,t.jsx)(n4.Z,{inputRef:s,isInModal:true,width:300,placeholder:"Filter schedules…",value:o,onChange:i})]}),(0,t.jsx)(eu.Z,{style:{flex:`1 1 ${(a2.dN-1)*(Math.max(l.length,1)+1)}px`,marginTop:15,maxHeight:"50vh"},children:(0,t.jsx)(a2.Pz,{allowCompleted:false,filter:o,minimal:true,onAction:()=>{},onSelect:c,schedules:l,statuses:u,style:null,tableStyle:{marginInline:-20}})})]})};function sa({modalProps:e,actions:n}){let r=(0,nP.TH)();let o=r.state&&r.state.payees||[];let i=o.length>1;async function a(){await (0,q.lW)("schedule/force-run-service");n.popModal()}return(0,t.jsxs)(ew.C,{title:"Post transactions?",size:"small",...e,children:[(0,t.jsxs)(ex.Z,{children:[o.length>0?(0,t.jsxs)(eS.Z,{children:["The ",i?"payees ":"payee ",o.map((e,n)=>(0,t.jsxs)(eS.Z,{children:[(0,t.jsx)(eS.Z,{style:{color:ei.rS.pageTextPositive},children:(0,t.jsx)(a1.Z,{id:e,type:"payees"})}),n===o.length-1?" ":n===o.length-2?", and ":", "]},e))]}):(0,t.jsxs)(eS.Z,{children:["There ",i?"are payees ":"is a payee "," that "]}),(0,t.jsxs)(eS.Z,{children:[i?"have ":"has "," schedules that are due today. Usually we automatically post transactions for these, but you are offline or syncing failed. In order to avoid duplicate transactions, we let you choose whether or not to create transactions for these schedules."]})]}),(0,t.jsx)(ex.Z,{children:"Be aware that other devices may have already created these transactions. If you have multiple devices, make sure you only do this on one device or you will have duplicate transactions."}),(0,t.jsx)(ex.Z,{children:"You can always manually post a transaction later for a due schedule by selecting the schedule and clicking “Post transaction” in the action menu."}),(0,t.jsxs)(eb.Z,{direction:"row",justify:"flex-end",style:{marginTop:20},spacing:2,children:[(0,t.jsx)(em.Z,{onClick:n.popModal,children:"Decide later"}),(0,t.jsx)(em.Z,{type:"primary",onClick:a,children:"Post transactions"})]})]})};function ss(){const e=(0,y.v9)(e=>e.modals.modalStack);const n=(0,y.v9)(e=>e.modals.isHidden);const r=(0,y.v9)(e=>e.queries.accounts);const{grouped:o,list:i}=(0,n1.Z)();const a=(0,y.v9)(e=>e.prefs.local&&e.prefs.local.id);const s=(0,en.o)();const l=(0,nP.TH)();(0,m.useEffect)(()=>{if(e.length>0){s.closeModal()}},[l]);const u=(0,iS.Z)();let c=e.map(({name:l,options:c},f)=>{const h={onClose:s.popModal,onBack:s.popModal,showBack:f>0,isCurrent:f===e.length-1,isHidden:n,stackIndex:f};switch(l){case"import-transactions":return(0,t.jsx)(a_,{modalProps:h,options:c});case"add-account":return(0,t.jsx)(iA,{modalProps:h,syncServerStatus:u});case"add-local-account":return(0,t.jsx)(iH,{modalProps:h,actions:s});case"close-account":return(0,t.jsx)(i_,{modalProps:h,account:c.account,balance:c.balance,canDelete:c.canDelete,accounts:r.filter(e=>e.closed===0),categoryGroups:o,actions:s});case"select-linked-accounts":return(0,t.jsx)(aY,{modalProps:h,externalAccounts:c.accounts,requisitionId:c.requisitionId,localAccounts:r.filter(e=>e.closed===0),actions:s});case"confirm-category-delete":return(0,t.jsx)(iI,{modalProps:h,category:"category"in c&&i.find(e=>e.id===c.category),group:"group"in c&&o.find(e=>e.id===c.group),categoryGroups:o,onDelete:c.onDelete});case"confirm-transaction-edit":return(0,t.jsx)(iD,{modalProps:h,onConfirm:c.onConfirm,confirmReason:c.confirmReason});case"load-backup":return(0,t.jsx)(aO,{watchUpdates:true,budgetId:a,modalProps:h,actions:s,backupDisabled:false});case"manage-rules":return(0,t.jsx)(aR,{modalProps:h,payeeId:c?.payeeId});case"edit-rule":return(0,t.jsx)(iX.ZP,{modalProps:h,defaultRule:c.rule,onSave:c.onSave});case"merge-unused-payees":return(0,t.jsx)(az,{modalProps:h,payeeIds:c.payeeIds,targetPayeeId:c.targetPayeeId});case"plaid-external-msg":return(0,t.jsx)(aL,{modalProps:h,onMoveExternal:c.onMoveExternal,onClose:()=>{c.onClose?.();(0,q.lW)("poll-web-token-stop")},onSuccess:c.onSuccess});case"gocardless-init":return(0,t.jsx)(aa,{modalProps:h,onSuccess:c.onSuccess});case"gocardless-external-msg":return(0,t.jsx)(ao,{modalProps:h,onMoveExternal:c.onMoveExternal,onClose:()=>{c.onClose?.();(0,q.lW)("gocardless-poll-web-token-stop")},onSuccess:c.onSuccess});case"create-encryption-key":return(0,t.jsx)(iN,{modalProps:h,actions:s,options:c},l);case"fix-encryption-key":return(0,t.jsx)(iQ,{modalProps:h,actions:s,options:c},l);case"edit-field":return(0,t.jsx)(iG,{modalProps:h,name:c.name,onSubmit:c.onSubmit},l);case"new-category":return(0,t.jsx)(aQ,{modalProps:h,title:"New Category",inputPlaceholder:"Name",buttonText:"Add",onValidate:c.onValidate,onSubmit:c.onSubmit});case"new-category-group":return(0,t.jsx)(aQ,{modalProps:h,title:"New Category Group",inputPlaceholder:"Name",buttonText:"Add",onValidate:c.onValidate,onSubmit:c.onSubmit});case"rollover-budget-summary":return(0,t.jsx)(a$,{modalProps:h,month:c.month,onBudgetAction:c.onBudgetAction},l);case"report-budget-summary":return(0,t.jsx)(aW,{modalProps:h,month:c.month},l);case"schedule-edit":return(0,t.jsx)(st,{modalProps:h,id:c?.id||null,actions:s},l);case"schedule-link":return(0,t.jsx)(si,{modalProps:h,actions:s,transactionIds:c?.transactionIds},l);case"schedules-discover":return(0,t.jsx)(a3,{modalProps:h,actions:s},l);case"schedule-posts-offline-notification":return(0,t.jsx)(sa,{modalProps:h,actions:s},l);case"switch-budget-type":return(0,t.jsx)(aJ,{modalProps:h,onSwitch:c?.onSwitch},l);default:console.error("Unknown modal:",l);return null}}).map((n,r)=>(0,t.jsx)(m.Fragment,{children:n},e[r].name));return(0,t.jsx)(t.Fragment,{children:c})}var sl=n(72285);function su(e,n,r,o){return(0,t.jsx)(eb.Z,{spacing:2,children:e.split(/\n\n/).map((e,i)=>{let a=e.split(/(\[[^\]]*\]\([^)]*\))/g);return(0,t.jsx)(eS.Z,{style:{lineHeight:"1.4em"},children:a.map((e,i)=>{let a=e.match(/\[([^\]]*)\]\(([^)]*)\)/);if(a){let[e,s,l]=a;if(l[0]==="#"){let e=l.slice(1);return(0,t.jsx)(ey.Z,{onClick:async t=>{t.preventDefault();if(n[e]){r(true);await n[e]();o()}},children:s},i)}return(0,t.jsx)(eg.Z,{linkColor:"purple",to:a[2],children:a[1]},i)}return(0,t.jsx)(eS.Z,{children:e},i)})},i)})})}function sc({notification:e,onRemove:n}){let{type:r,title:o,message:i,pre:a,messageActions:s,sticky:l,internal:u,button:c}=e;let[f,h]=(0,m.useState)(false);let[p,g]=(0,m.useState)(false);(0,m.useEffect)(()=>{if(r==="error"&&u){console.error("Internal error:",u)}if(!l){setTimeout(n,6500)}},[]);let v=r==="message";let y=r==="error";let w=(0,m.useMemo)(()=>su(i,s,g,n),[i,s]);return(0,t.jsxs)(eu.Z,{style:{marginTop:10,color:v?ei.rS.noticeText:y?ei.rS.errorTextDark:ei.rS.warningTextDark},children:[(0,t.jsxs)(eb.Z,{align:"center",direction:"row",style:{padding:"14px 14px",fontSize:14,backgroundColor:v?ei.rS.noticeBackgroundLight:y?ei.rS.errorBackground:ei.rS.warningBackground,borderTop:`3px solid ${v?ei.rS.noticeBorder:y?ei.rS.errorBorder:ei.rS.warningBorder}`,...ei.W2.shadowLarge,maxWidth:550,"& a":{color:"currentColor"}},children:[(0,t.jsxs)(eb.Z,{align:"flex-start",children:[o&&(0,t.jsx)(eu.Z,{style:{fontWeight:700,marginBottom:10},children:o}),(0,t.jsx)(eu.Z,{children:w}),a?a.split("\n\n").map((e,n)=>(0,t.jsx)(eu.Z,{style:{whiteSpace:"pre-wrap",fontFamily:"monospace",fontSize:12,backgroundColor:"rgba(0, 0, 0, .05)",padding:10,borderRadius:4},children:e},n)):null,c&&(0,t.jsx)(em.y,{type:"bare",loading:f,onClick:async()=>{h(true);await c.action();n();h(false)},style:{backgroundColor:"transparent",border:`1px solid ${v?ei.rS.noticeBorder:y?ei.rS.errorBorder:ei.rS.warningBorder}`,color:"currentColor",fontSize:14,flexShrink:0,"&:hover, &:active":{backgroundColor:v?ei.rS.noticeBackground:y?ei.rS.errorBackground:ei.rS.warningBackground}},children:c.title})]}),l&&(0,t.jsx)(em.Z,{type:"bare",style:{flexShrink:0,color:"currentColor"},onClick:n,children:(0,t.jsx)(sl.Z,{style:{width:9,height:9,color:"currentColor"}})})]}),p&&(0,t.jsx)(eu.Z,{style:{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:ei.rS.tableBackground,alignItems:"center",justifyContent:"center"},children:(0,t.jsx)(es.Z,{style:{width:20,height:20,color:"currentColor"}})})]})}function sd({style:e}){let{removeNotification:n}=(0,en.o)();let r=(0,y.v9)(e=>e.notifications.notifications);return(0,t.jsx)(eu.Z,{style:{position:"fixed",bottom:20,right:13,zIndex:1e4,...e},children:r.map(e=>(0,t.jsx)(sc,{notification:e,onRemove:()=>{if(e.onClose){e.onClose()}n(e.id)}},e.id))})}var sf=n(99024);function sh(e){const t=(0,m.useRef)();const n=(0,m.useCallback)((...e)=>t.current&&t.current(...e),[]);(0,m.useLayoutEffect)(()=>{t.current=e});return n}var sp=n(67459);const sg=e=>(0,t.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 32",style:{color:"inherit",...e.style},children:(0,t.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:3.5,d:"M24 29h5.333M8 29H2.667M16 21l-8 8M16 21l8 8M16 2.667v18.666M16 2.667 8 9.333M16 2.667l8 6.666"})});var sv=sg;function sm({payeesById:e,selectedPayees:n,onDelete:r,onMerge:o,onClose:i}){let a=[...n].some(t=>e[t]==null||e[t].transfer_acct);return(0,t.jsx)(i7.u,{position:"bottom",width:250,style:{padding:0},onClose:i,children:(0,t.jsx)(i6.Z,{onMenuSelect:e=>{i();switch(e){case"delete":r();break;case"merge":o();break;default:}},footer:(0,t.jsx)(eu.Z,{style:{padding:3,fontSize:11,fontStyle:"italic",color:ei.rS.pageTextSubdued},children:[...n].slice(0,4).map(t=>e[t].name).join(", ")+(n.size>4?", and more":"")}),items:[{icon:sl.Z,name:"delete",text:"Delete",disabled:a},{icon:sv,iconSize:9,name:"merge",text:"Merge",disabled:a||n.size<2},i6.Z.line]})})}var sy=n(75433);function sw({ruleCount:e,focused:n,onEdit:r,onClick:o}){return(0,t.jsx)(n5.bL,{name:"rule-count",width:"auto",focused:n,style:{padding:"0 10px"},plain:true,children:(0,t.jsxs)(n5.Sx,{style:{borderRadius:4,padding:"3px 6px",backgroundColor:ei.rS.noticeBackground,border:"1px solid "+ei.rS.noticeBackground,color:ei.rS.noticeTextDark,fontSize:12},onEdit:r,onSelect:o,children:[(0,t.jsx)(eS.Z,{style:{paddingRight:5},children:e>0?(0,t.jsxs)(t.Fragment,{children:[e," associated ",e===1?"rule":"rules"]}):(0,t.jsx)(t.Fragment,{children:"Create rule"})}),(0,t.jsx)(sy.Z,{style:{width:8,height:8}})]})})}const sx=(0,m.memo)(({payee:e,ruleCount:n,selected:r,hovered:o,editing:i,focusedField:a,onViewRules:s,onCreateRule:l,onHover:u,onEdit:c,onUpdate:f,style:h})=>{let{id:p}=e;let g=(0,n2.YP)();let v=r?ei.rS.tableBorderSelected:ei.rS.tableBorder;let m=o||a==="select";return(0,t.jsxs)(n5.X2,{style:{alignItems:"stretch",...h,borderColor:v,backgroundColor:o?ei.rS.tableRowBackgroundHover:r?ei.rS.tableRowBackgroundHighlight:m?ei.rS.tableRowBackgroundHover:ei.rS.tableBackground,...r&&{backgroundColor:ei.rS.tableRowBackgroundHighlight,zIndex:100}},"data-focus-key":e.id,onMouseEnter:()=>u&&u(e.id),children:[(0,t.jsx)(n5._7,{exposed:e.transfer_acct==null&&(o||r||i),focused:a==="select",selected:r,onSelect:t=>{g({type:"select",id:e.id,event:t})}}),(0,t.jsx)(n5.F3,{value:(e.transfer_acct?"Transfer: ":"")+e.name,valueStyle:!r&&e.transfer_acct&&{color:ei.rS.pageTextSubdued},exposed:a==="name",width:"flex",onUpdate:t=>!e.transfer_acct&&f(p,"name",t),onExpose:()=>c(p,"name"),inputProps:{readOnly:!!e.transfer_acct}}),(0,t.jsx)(sw,{ruleCount:n,focused:a==="rule-count",onEdit:()=>c(p,"rule-count"),onClick:()=>n>0?s(e.id):l(e.id)})]})});var sb=sx;const sS=(0,m.forwardRef)(({payees:e,ruleCounts:n,navigator:r,onUpdate:o,onViewRules:i,onCreateRule:a},s)=>{let[l,u]=(0,m.useState)(null);let c=(0,n2.D9)();(0,m.useLayoutEffect)(()=>{let e=[...c][0];if(typeof s!=="function"){s.current.scrollTo(e,"center")}r.onEdit(e,"select")},[]);let f=(0,m.useCallback)(e=>{u(e)},[]);return(0,t.jsx)(eu.Z,{style:{flex:1},onMouseLeave:()=>u(null),children:(0,t.jsx)(n5.iA,{ref:s,items:e,navigator:r,renderItem:({item:e,editing:r,focusedField:s,onEdit:u})=>{return(0,t.jsx)(sb,{payee:e,ruleCount:n.get(e.id)||0,selected:c.has(e.id),editing:r,focusedField:s,hovered:l===e.id,onHover:f,onEdit:u,onUpdate:o,onViewRules:i,onCreateRule:a})}})})});var sk=sS;let sj=(0,sf.Z)(e=>(0,B.ZZ)(e));function sC(e,t,n){return e===1?t:n}function sT(){let e=ei.rS.tableborder;let n=(0,n2.YP)();let r=(0,n2.D9)();return(0,t.jsx)(eu.Z,{children:(0,t.jsxs)(n5.xD,{style:{borderColor:e,backgroundColor:ei.rS.tableBackground,color:ei.rS.pageTextLight,zIndex:200,userSelect:"none"},collapsed:true,children:[(0,t.jsx)(n5._7,{exposed:true,focused:false,selected:r.size>0,onSelect:e=>n({type:"select-all",event:e})}),(0,t.jsx)(n5.bL,{value:"Name",width:"flex"})]})})}function sE({text:e,style:n}){return(0,t.jsx)(eu.Z,{style:{textAlign:"center",color:ei.rS.pageTextSubdued,fontStyle:"italic",fontSize:13,marginTop:5,style:n},children:e})}const s_=(0,m.forwardRef)(({payees:e,ruleCounts:n,orphanedPayees:r,categoryGroups:o,initialSelectedIds:i,ruleActions:a,onBatchChange:s,onViewRules:l,onCreateRule:u,...c},f)=>{let[h,p]=(0,m.useState)(null);let[g,v]=(0,m.useState)("");let y=(0,m.useRef)(null);let w=(0,m.useRef)(null);let x=(0,m.useRef)(false);const[b,S]=(0,m.useState)(false);let k=(0,m.useMemo)(()=>{let t=e;if(g){t=t.filter(e=>e.name.toLowerCase().includes(g.toLowerCase()))}if(b){t=t.filter(e=>r.map(e=>e.id).includes(e.id))}return t},[e,g,b]);let j=(0,n2.ZP)("payees",k,i);function C(e){if(g!==e){y.current?.setRowAnimation(false);v(e);x.current=true}}function T(e){C("");w.current=e}(0,m.useEffect)(()=>{if(x.current){setTimeout(()=>{y.current?.setRowAnimation(true)},0);x.current=false}});(0,m.useImperativeHandle)(f,()=>({selectRows:(e,t)=>{P.onEdit(null);j.dispatch({type:"select-all",ids:e});p(null);if(t&&e.length>0){T(e[0])}},highlightRow:e=>{P.onEdit(null);p(new Set([e]));T(e)}}));(0,m.useEffect)(()=>{if(h){p(null)}},[h]);(0,m.useLayoutEffect)(()=>{if(w.current){y.current.scrollTo(w.current);w.current=null}});let E=sh((t,n,r)=>{let o=e.find(e=>e.id===t);if(o[n]!==r){s({updated:[{id:t,[n]:r}]})}});let _=(0,m.useCallback)(()=>{return k.filter(e=>e.transfer_acct==null).map(e=>e.id)},[k]);function I(){s({deleted:[...j.items].map(e=>({id:e}))});j.dispatch({type:"select-none"})}async function M(){let e=[...j.items];await c.onMerge(e);P.onEdit(e[0],"name");j.dispatch({type:"select-none"});T(e[0])}let D=j.items.size===0;let P=(0,n5.wz)(k,e=>["select","name","rule-count"].filter(t=>{switch(t){case"select":return e.transfer_acct==null;default:return true}}));let O=sj(e);let[A,R]=(0,m.useState)(false);return(0,t.jsxs)(eu.Z,{style:{height:"100%"},children:[(0,t.jsxs)(eu.Z,{style:{flexDirection:"row",alignItems:"center",padding:"0 0 15px"},children:[(0,t.jsxs)(eu.Z,{style:{flexShrink:0},children:[(0,t.jsxs)(em.Z,{type:"bare",style:{marginRight:10},disabled:D,onClick:()=>R(true),children:[D?"No payees selected":j.items.size+" "+sC(j.items.size,"payee","payees"),(0,t.jsx)(sp.Z,{width:8,height:8,style:{marginLeft:5}})]}),A&&(0,t.jsx)(sm,{payeesById:O,selectedPayees:j.items,onClose:()=>R(false),onDelete:I,onMerge:M})]}),(0,t.jsx)(eu.Z,{style:{flexShrink:0},children:(b||r&&r.length>0)&&(0,t.jsx)(em.Z,{type:"bare",style:{marginRight:10},onClick:()=>{S(!b);C(g);P.onEdit(null)},children:b?"Show all payees":`Show ${r.length===1?"1 unused payee":`${r.length} unused payees`}`})}),(0,t.jsx)(eu.Z,{style:{flex:1}}),(0,t.jsx)(n4.Z,{id:"filter-input",placeholder:"Filter payees...",value:g,onChange:C})]}),(0,t.jsx)(n2.i5,{instance:j,fetchAllIds:_,children:(0,t.jsxs)(eu.Z,{style:{flex:1,border:"1px solid "+ei.rS.tableBorder,borderTopLeftRadius:4,borderTopRightRadius:4,overflow:"hidden"},children:[(0,t.jsx)(sT,{}),k.length===0?(0,t.jsx)(sE,{text:"No payees",style:{marginTop:15}}):(0,t.jsx)(sk,{ref:y,payees:k,ruleCounts:n,categoryGroups:o,navigator:P,onUpdate:E,onViewRules:l,onCreateRule:u})]})})]})});function sI({initialSelectedIds:e}){let n=(0,y.v9)(e=>e.queries.payees);let r=(0,y.v9)(e=>e.app.lastUndoState);let{grouped:o}=(0,n1.Z)();let{initiallyLoadPayees:i,getPayees:a,setLastUndoState:s,pushModal:l}=(0,en.o)();let[u,c]=(0,m.useState)(n);let[f,h]=(0,m.useState)({value:new Map});let[p,g]=(0,m.useState)({value:new Map});let v=(0,m.useRef)();async function w(){let e=await (0,q.lW)("payees-get-orphaned");g(e)}async function x(){let e=await (0,q.lW)("payees-get-rule-counts");e=new Map(Object.entries(e));h({value:e})}(0,m.useEffect)(()=>{async function e(){let e=await i();await new Promise(e=>setTimeout(e,100));if(e){c(e)}x();w()}e();let t=(0,q.oL)("sync-event",async({type:e,tables:t})=>{if(e==="applied"){if(t.includes("rules")){x()}}});return()=>{t()}},[]);async function b({tables:e,messages:t,meta:n,url:r},o=false){if(!e.includes("payees")&&!e.includes("payee_mapping")){return}c(await a());w();if(n&&n.targetId||t.find(e=>e.dataset==="rules")){x()}s(null)}(0,m.useEffect)(()=>{if(r.current){b(r.current,true)}return(0,q.oL)("undo-event",b)},[]);function S(e){l("manage-rules",{payeeId:e})}function k(e){let t={stage:null,conditionsOp:"and",conditions:[{field:"payee",op:"is",value:e,type:"id"}],actions:[{op:"set",field:"category",value:null,type:"id"}]};l("edit-rule",{rule:t})}return(0,t.jsx)(s_,{ref:v,payees:u,ruleCounts:f.value,orphanedPayees:p,categoryGroups:o,initialSelectedIds:e,lastUndoState:r,onBatchChange:e=>{(0,q.lW)("payees-batch-change",e);c((0,B.zb)(e,u));g((0,B.zb)(e,p))},onMerge:async([e,...t])=>{await (0,q.lW)("payees-merge",{targetId:e,mergeIds:t});let n=p.map(e=>e.id).includes(e);let r=t.filter(e=>p.map(e=>e.id).includes(e));if(n&&r.length!==t.length){p=p.filter(t=>t.id!==e)}p=p.filter(e=>!t.includes(e.id));let o=u.filter(e=>!t.includes(e.id));t.forEach(t=>{let n=f.value.get(t)||0;f.value.set(e,(f.value.get(e)||0)+n)});c(o);g(p);h({value:f.value})},onViewRules:S,onCreateRule:k})};function sM(){let e=(0,nP.TH)();return(0,t.jsx)(rv.T,{title:"Payees",children:(0,t.jsx)(sI,{initialSelectedIds:e.state&&e.state.selectedPayee?[e.state.selectedPayee]:null})})};function sD(){return(0,t.jsx)(eu.Z,{style:{flex:1},"data-testid":"reports-page",children:(0,t.jsx)(ec,{name:"ReportRouter",message:"Loading reports...",importer:()=>Promise.all([n.e(665),n.e(226),n.e(992)]).then(n.bind(n,38912))})})};let sP=()=>n.e(447).then(n.bind(n,23458));let sO=()=>Promise.all([n.e(444),n.e(226),n.e(162)]).then(n.bind(n,7831));function sA({name:e}){return(0,t.jsx)(ec,{name:e,importer:sO})}function sR({name:e}){const{isNarrowWidth:n}=(0,eo.F)();return(0,t.jsx)(ec,{name:e,importer:n?sP:sO})};function sZ(){const[e,t]=(0,m.useState)(false);const n=sz();(0,m.useEffect)(()=>{(async()=>{t(await nU(n))})()},[n]);return e}function sz(){const[e,t]=(0,m.useState)("");(0,m.useEffect)(()=>{(async()=>{t(await nW())})()},[]);return e}var sN=sz;var sL=n(76926);var sB=n(90122);var sH=n(11800);const sF=({primaryAction:e,style:n,children:r})=>{return(0,t.jsxs)(eu.Z,{className:`${(0,ea.iv)([{backgroundColor:ei.rS.pillBackground,alignSelf:"flex-start",alignItems:"flex-start",padding:15,borderRadius:4,border:"1px solid "+ei.rS.pillBorderDark,width:"100%"},n])}`,children:[(0,t.jsx)(eu.Z,{style:{marginBottom:e?10:0,maxWidth:500,lineHeight:1.5,gap:10},children:r}),e||null]})};const sV=({children:e})=>{let n=(0,nP.TH)();let[r,o]=(0,m.useState)(n.hash==="#advanced");return r?(0,t.jsxs)(eu.Z,{id:"advanced",style:{gap:20,alignItems:"flex-start",marginBottom:25,width:"100%"},className:`${(0,ea.BC)(`(min-width: ${sB.Z.breakpoint_small})`,{width:"auto"})}`,innerRef:e=>{if(e&&n.hash==="#advanced"){e.scrollIntoView(true)}},children:[(0,t.jsx)(eu.Z,{style:{fontSize:20,fontWeight:500,flexShrink:0},children:"Advanced Settings"}),e]}):(0,t.jsx)(em.Z,{id:"advanced",type:"link",onClick:()=>o(true),style:{flexShrink:0,alignSelf:"flex-start",color:ei.rS.pageTextPositive,marginBottom:25},children:"Show advanced settings"})};function sW(){const{pushModal:e}=(0,en.o)();const n=(0,sH.o1)();const r=(0,y.v9)(e=>e.prefs.local.encryptKeyId);const o=!(window.crypto&&crypto.subtle);function i(){e("create-encryption-key",{recreate:true})}return r?(0,t.jsx)(sF,{primaryAction:(0,t.jsx)(em.Z,{onClick:i,children:"Generate new key"}),children:(0,t.jsxs)(eS.Z,{children:[(0,t.jsx)(eS.Z,{style:{color:ei.rS.noticeTextLight,fontWeight:600},children:"End-to-end Encryption is turned on."})," ","Your data is encrypted with a key that only you have before sending it it out to the cloud. Local data remains unencrypted so if you forget your password you can re-encrypt it."," ",(0,t.jsx)(eg.Z,{to:"https://actualbudget.org/docs/getting-started/sync/#end-to-end-encryption",linkColor:"purple",children:"Learn more…"})]})}):o?(0,t.jsx)(sF,{primaryAction:(0,t.jsx)(em.Z,{disabled:true,children:"Enable encryption…"}),children:(0,t.jsxs)(eS.Z,{children:[(0,t.jsx)("strong",{children:"End-to-end encryption"})," is not available when making an unencrypted connection to a remote server. You’ll need to enable HTTPS on your server to use end-to-end encryption. This problem may also occur if your browser is too old to work with Actual."," ",(0,t.jsx)(eg.Z,{to:"https://actualbudget.org/docs/config/https",linkColor:"purple",children:"Learn more…"})]})}):n?(0,t.jsx)(sF,{primaryAction:(0,t.jsx)(em.Z,{onClick:()=>e("create-encryption-key"),children:"Enable encryption…"}),children:(0,t.jsxs)(eS.Z,{children:[(0,t.jsx)("strong",{children:"End-to-end encryption"})," is not enabled. Any data on the server is still protected by the server password, but it’s not end-to-end encrypted which means the server owners have the ability to read it. If you want, you can use an additional password to encrypt your data on the server."," ",(0,t.jsx)(eg.Z,{to:"https://actualbudget.org/docs/getting-started/sync/#end-to-end-encryption",linkColor:"purple",children:"Learn more…"})]})}):(0,t.jsx)(sF,{primaryAction:(0,t.jsx)(em.Z,{disabled:true,children:"Enable encryption…"}),children:(0,t.jsxs)(eS.Z,{children:[(0,t.jsx)("strong",{children:"End-to-end encryption"})," is not available when running without a server. Budget files are always kept unencrypted locally, and encryption is only applied when sending data to a server."," ",(0,t.jsx)(eg.Z,{to:"https://actualbudget.org/docs/getting-started/sync/#end-to-end-encryption",linkColor:"purple",children:"Learn more…"})]})})};function sU({flag:e,disableToggle:n=false,error:r,children:o}){let{savePrefs:i}=(0,en.o)();let a=(0,al.Z)(e);return(0,t.jsxs)("label",{style:{display:"flex"},children:[(0,t.jsx)(ek.XZ,{checked:a,onChange:()=>{i({[`flags.${e}`]:!a})},disabled:n}),(0,t.jsxs)(eu.Z,{style:{color:n?ei.rS.pageTextSubdued:"inherit"},children:[o,n&&(0,t.jsx)(eS.Z,{style:{color:ei.rS.errorText,fontWeight:500},children:r})]})]})}function sK(){let e=(0,y.v9)(e=>e.prefs.local?.budgetType);let n=(0,al.Z)("reportBudget");let r=e==="report"&&n;return(0,t.jsx)(sU,{flag:"reportBudget",disableToggle:r,error:"Switch to a rollover budget before turning off this feature",children:"Budget mode toggle"})}function s$(){let[e,n]=(0,m.useState)(false);return(0,t.jsx)(sF,{primaryAction:e?(0,t.jsxs)(eu.Z,{style:{gap:"1em"},children:[(0,t.jsx)(sU,{flag:"categorySpendingReport",children:"Category spending report"}),(0,t.jsx)(sU,{flag:"customReports",children:"Custom reports"}),(0,t.jsx)(sU,{flag:"sankeyReport",children:"Sankey report"}),(0,t.jsx)(sK,{}),(0,t.jsx)(sU,{flag:"goalTemplatesEnabled",children:"Goal templates"}),(0,t.jsx)(sU,{flag:"experimentalOfxParser",children:"Experimental OFX parser"})]}):(0,t.jsx)(ey.Z,{onClick:()=>n(true),style:{flexShrink:0,alignSelf:"flex-start",color:ei.rS.pageTextPositive},children:"I understand the risks, show experimental features"}),children:(0,t.jsxs)(eS.Z,{children:[(0,t.jsx)("strong",{children:"Experimental features."})," These features are not fully tested and may not work as expected. THEY MAY CAUSE IRRECOVERABLE DATA LOSS. They may do nothing at all. Only enable them if you know what you are doing."]})})};function sq(){let[e,n]=(0,m.useState)(false);let[r,o]=(0,m.useState)(null);let i=(0,y.v9)(e=>e.prefs.local.id);let a=(0,y.v9)(e=>e.prefs.local.encryptKeyId);async function s(){n(true);o(null);let e=await (0,q.lW)("export-budget");if("error"in e){o(e.error);n(false);console.log("Export error code:",e.error);return}window.Actual.saveFile(e.data,`${(0,iF.Z)(new Date,"yyyy-MM-dd")}-${i}.zip`,"Export budget");n(false)}return(0,t.jsxs)(sF,{primaryAction:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(em.y,{onClick:s,loading:e,children:"Export data"}),r&&(0,t.jsx)(el.Z,{style:{color:ei.rS.errorText,marginTop:15},children:"An unknown error occurred while exporting. Please report this as a new issue on Github."})]}),children:[(0,t.jsxs)(eS.Z,{children:[(0,t.jsx)("strong",{children:"Export"})," your data as a zip file containing"," ",(0,t.jsx)("code",{children:"db.sqlite"})," and ",(0,t.jsx)("code",{children:"metadata.json"})," files. It can be imported into another Actual instance by closing an open file (if any), then clicking the “Import file” button, then choosing “Actual.”"]}),a?(0,t.jsx)(eS.Z,{children:"Even though encryption is enabled, the exported zip file will not have any encryption."}):null]})};function sY(e){let{numBlankPayees:n,numCleared:r,numDeleted:o}=e;let i="";if(n===0&&r===0&&o===0){i="No split transactions found needing repair."}else{if(n>0){i+=`Fixed ${n} splits with a blank payee.`}if(r>0){if(i!==""){i+="\n"}i+=`Fixed ${r} splits with the wrong cleared flag.`}if(o>0){if(i!==""){i+="\n"}i+=`Fixed ${o} splits that weren’t properly deleted.`}}return(0,t.jsx)(ex.Z,{style:{color:ei.rS.noticeTextLight,marginBottom:0,marginLeft:"1em",textAlign:"right",whiteSpace:"pre-wrap"},children:i})}function sG(){let[e,n]=(0,m.useState)(false);let[r,o]=(0,m.useState)(null);async function i(){n(true);let e=await (0,q.lW)("tools/fix-split-transactions");o(e);n(false)}return(0,t.jsxs)(sF,{primaryAction:(0,t.jsxs)(eu.Z,{style:{flexDirection:"row",justifyContent:"space-between",maxWidth:500,width:"100%",alignItems:"center"},children:[(0,t.jsx)(em.y,{loading:e,onClick:i,children:"Repair split transactions"}),r&&sY(r)]}),children:[(0,t.jsxs)(eS.Z,{children:[(0,t.jsx)("strong",{children:"Repair split transactions"})," if you are experiencing bugs relating to split transactions and the “Reset budget cache” button above does not help, this tool may fix them. Some examples of bugs include seeing blank payees on splits or incorrect account balances. This tool does two things:"]}),(0,t.jsxs)("ul",{style:{margin:0,paddingLeft:"1.5em"},children:[(0,t.jsx)("li",{style:{marginBottom:"0.5em"},children:"Ensures that deleted split transactions are fully deleted. In previous versions of the app, certain split transactions may appear deleted but not all of them are actually deleted. This causes the transactions list to look correct, but certain balances may be incorrect when filtering."}),(0,t.jsx)("li",{children:"Sync the payee and cleared flag of a split transaction to the main or “parent” transaction, if appropriate. The payee will only be set if it currently doesn’t have one."})]})]})}var sX=n(84367);let sQ=[{value:"0",label:"Sunday"},{value:"1",label:"Monday"},{value:"2",label:"Tuesday"},{value:"3",label:"Wednesday"},{value:"4",label:"Thursday"},{value:"5",label:"Friday"},{value:"6",label:"Saturday"}];let sJ=[{value:"MM/dd/yyyy",label:"MM/DD/YYYY"},{value:"dd/MM/yyyy",label:"DD/MM/YYYY"},{value:"yyyy-MM-dd",label:"YYYY-MM-DD"},{value:"MM.dd.yyyy",label:"MM.DD.YYYY"},{value:"dd.MM.yyyy",label:"DD.MM.YYYY"}];function s0({title:e,children:n}){return(0,t.jsxs)(eu.Z,{style:{alignItems:"flex-start",flexGrow:1,gap:"0.5em",width:"100%"},children:[(0,t.jsx)(eS.Z,{style:{fontWeight:500},children:e}),(0,t.jsx)(eu.Z,{style:{alignItems:"flex-start",gap:"1em"},children:n})]})}function s1(){let{savePrefs:e}=(0,en.o)();let n=(0,sX.Ap)();let r=(0,y.v9)(e=>e.prefs.local.firstDayOfWeekIdx||"0");let o=(0,y.v9)(e=>e.prefs.local.dateFormat||"MM/dd/yyyy");let i=(0,y.v9)(e=>e.prefs.local.numberFormat||"comma-dot");let a=(0,y.v9)(e=>e.prefs.local.hideFraction);return(0,t.jsx)(sF,{primaryAction:(0,t.jsxs)(eu.Z,{style:{flexDirection:"column",gap:"1em",width:"100%",[`@media (min-width: ${n.floating?sB.Z.breakpoint_small:sB.Z.breakpoint_medium})`]:{flexDirection:"row"}},children:[(0,t.jsxs)(s0,{title:"Numbers",children:[(0,t.jsx)(em.Z,{bounce:false,style:{padding:0},children:(0,t.jsx)(au.Z,{bare:true,value:i,onChange:t=>e({numberFormat:t}),options:B.id.map(e=>[e.value,a?e.labelNoFraction:e.label]),style:{padding:"2px 10px",fontSize:15}},String(a))}),(0,t.jsxs)(eS.Z,{style:{display:"flex"},children:[(0,t.jsx)(ek.XZ,{id:"settings-textDecimal",checked:!!a,onChange:t=>e({hideFraction:t.currentTarget.checked})}),(0,t.jsx)("label",{htmlFor:"settings-textDecimal",children:"Hide decimal places"})]})]}),(0,t.jsx)(s0,{title:"Dates",children:(0,t.jsx)(em.Z,{bounce:false,style:{padding:0},children:(0,t.jsx)(au.Z,{bare:true,value:o,onChange:t=>e({dateFormat:t}),options:sJ.map(e=>[e.value,e.label]),style:{padding:"2px 10px",fontSize:15}})})}),(0,t.jsx)(s0,{title:"First day of the week",children:(0,t.jsx)(em.Z,{bounce:false,style:{padding:0},children:(0,t.jsx)(au.Z,{bare:true,value:r,onChange:t=>e({firstDayOfWeekIdx:t}),options:sQ.map(e=>[e.value,e.label]),style:{padding:"2px 10px",fontSize:15}})})})]}),children:(0,t.jsxs)(eS.Z,{children:[(0,t.jsx)("strong",{children:"Formatting"})," does not affect how budget data is stored, and can be changed at any time."]})})};function s2(){let e=(0,y.v9)(e=>e.prefs.global.documentDir);let{saveGlobalPrefs:n}=(0,en.o)();let[r,o]=(0,m.useState)(false);let i=(0,m.useRef)(null);(0,m.useEffect)(()=>{if(i.current){i.current.scrollTo(1e4,0)}},[]);async function a(){let e=await window.Actual.openFileDialog({properties:["openDirectory"]});if(e){n({documentDir:e[0]});o(true)}}return(0,t.jsxs)(sF,{primaryAction:(0,t.jsxs)(eu.Z,{style:{flexDirection:"row"},children:[(0,t.jsx)(em.Z,{onClick:a,children:"Change location"}),r&&(0,t.jsx)(i4,{children:"A restart is required for this change to take effect"})]}),children:[(0,t.jsxs)(eS.Z,{children:[(0,t.jsx)("strong",{children:"Actual’s files"})," are stored in a folder on your computer. Currently, that’s:"]}),(0,t.jsx)(eS.Z,{innerRef:i,style:{backgroundColor:ei.rS.pageBackground,padding:"7px 10px",borderRadius:4,overflow:"auto",whiteSpace:"nowrap","::-webkit-scrollbar":{display:"none"}},children:e})]})};function s4(){let[e,n]=(0,m.useState)(false);async function r(){n(true);await (0,q.lW)("reset-budget-cache");n(false)}return(0,t.jsx)(sF,{primaryAction:(0,t.jsx)(em.y,{loading:e,onClick:r,children:"Reset budget cache"}),children:(0,t.jsxs)(eS.Z,{children:[(0,t.jsx)("strong",{children:"Reset budget cache"})," will clear all cached values for the budget and recalculate the entire budget. All values in the budget are cached for performance reasons, and if there is a bug in the cache you won’t see correct values. There is no danger in resetting the cache. Hopefully you never have to do this."]})})}function s5(){let e=(0,y.v9)(e=>!!e.prefs.local.groupId);let{resetSync:n}=(0,en.o)();let[r,o]=(0,m.useState)(false);async function i(){o(true);await n();o(false)}return(0,t.jsx)(sF,{primaryAction:(0,t.jsx)(em.y,{loading:r,disabled:!e,onClick:i,children:"Reset sync"}),children:e?(0,t.jsxs)(eS.Z,{children:[(0,t.jsx)("strong",{children:"Reset sync"})," will remove all local data used to track changes for syncing, and create a fresh sync ID on the server. This file on other devices will have to be re-downloaded to use the new sync ID. Use this if there is a problem with syncing and you want to start fresh."]}):(0,t.jsxs)(eS.Z,{children:[(0,t.jsx)("strong",{children:"Reset sync"})," is only available when syncing is enabled."]})})};function s3(){let e=(0,ei.Fg)();let{saveGlobalPrefs:n}=(0,en.o)();return(0,t.jsx)(sF,{primaryAction:(0,t.jsx)(em.Z,{bounce:false,style:{padding:0},children:(0,t.jsx)(au.Z,{bare:true,onChange:e=>{n({theme:e})},value:e,options:ei.Jp,style:{padding:"2px 10px",fontSize:15}})}),children:(0,t.jsxs)(eS.Z,{children:[(0,t.jsx)("strong",{children:"Themes"})," change the user interface colors."]})})};function s8(){const e=(0,sH.Mx)();const n=sN();const r=sZ();return(0,t.jsxs)(sF,{children:[(0,t.jsxs)(eS.Z,{children:[(0,t.jsx)("strong",{children:"Actual"})," is a super fast privacy-focused app for managing your finances."]}),(0,t.jsxs)(eu.Z,{style:{flexDirection:"column",gap:10},className:`${(0,ea.BC)(`(min-width: ${sB.Z.breakpoint_small})`,{display:"grid",gridTemplateRows:"1fr 1fr",gridTemplateColumns:"50% 50%",columnGap:"2em",gridAutoFlow:"column"})}`,"data-vrt-mask":true,children:[(0,t.jsxs)(eS.Z,{children:["Client version: v",window.Actual.ACTUAL_VERSION]}),(0,t.jsxs)(eS.Z,{children:["Server version: ",e]}),r?(0,t.jsxs)(eg.Z,{to:"https://actualbudget.org/docs/releases",linkColor:"purple",children:["New version available: ",n]}):(0,t.jsx)(eS.Z,{style:{color:ei.rS.noticeText,fontWeight:600},children:"You’re up to date!"}),(0,t.jsx)(eS.Z,{children:(0,t.jsx)(eg.Z,{to:"https://actualbudget.org/docs/releases",linkColor:"purple",children:"Release Notes"})})]})]})}function s6({children:e}){return(0,t.jsx)(eS.Z,{style:{fontWeight:500},children:e})}function s7(){let e=(0,y.v9)(e=>e.prefs.local.id);let n=(0,y.v9)(e=>e.prefs.local.groupId);return(0,t.jsxs)(sF,{children:[(0,t.jsxs)(eS.Z,{children:[(0,t.jsx)("strong",{children:"IDs"})," are the names Actual uses to identify your budget internally. There are several different IDs associated with your budget. The Budget ID is used to identify your budget file. The Sync ID is used to access the budget on the server."]}),(0,t.jsxs)(eS.Z,{children:[(0,t.jsx)(s6,{children:"Budget ID:"})," ",e]}),(0,t.jsxs)(eS.Z,{style:{color:ei.rS.pageText},children:[(0,t.jsx)(s6,{children:"Sync ID:"})," ",n||"(none)"]})]})}function s9(){let e=(0,y.v9)(e=>e.prefs.global.floatingSidebar);let n=(0,y.v9)(e=>e.prefs.local.budgetName);let{loadPrefs:r,closeBudget:o}=(0,en.o)();(0,m.useEffect)(()=>{let e=(0,q.oL)("prefs-updated",()=>{r()});r();return()=>e()},[r]);const{isNarrowWidth:i}=(0,eo.F)();(0,sL.j)(ei.rS.mobileViewTheme);return(0,t.jsx)(eu.Z,{style:{backgroundColor:i&&ei.rS.mobilePageBackground,marginInline:e&&!i?"auto":0},children:(0,t.jsx)(rv.T,{title:"Settings",titleStyle:i?{backgroundColor:ei.rS.mobileHeaderBackground,color:ei.rS.mobileHeaderText,fontSize:16,fontWeight:500}:undefined,children:(0,t.jsxs)(eu.Z,{style:{flexShrink:0,gap:30},children:[i&&(0,t.jsxs)(eu.Z,{style:{gap:10,flexDirection:"row",alignItems:"flex-end"},children:[(0,t.jsxs)(ek.Wi,{children:[(0,t.jsx)(ek.lX,{title:"Budget Name"}),(0,t.jsx)(iz.ZP,{value:n,disabled:true,style:{color:ei.rS.buttonNormalDisabledText}})]}),(0,t.jsx)(em.Z,{onClick:o,children:"Close Budget"})]}),(0,t.jsx)(s8,{}),!s.jU&&(0,t.jsx)(s2,{}),(0,t.jsx)(s3,{}),(0,t.jsx)(s1,{}),(0,t.jsx)(sW,{}),(0,t.jsx)(sq,{}),(0,t.jsxs)(sV,{children:[(0,t.jsx)(s7,{}),(0,t.jsx)(s4,{}),(0,t.jsx)(s5,{}),(0,t.jsx)(sG,{}),(0,t.jsx)(s$,{})]})]})})})}var le=n(39717);var lt=n(33605);function ln({redirectTo:e="/budget",children:t}){const{isNarrowWidth:n}=(0,eo.F)();const r=(0,nP.s0)();(0,m.useEffect)(()=>{if(n){r(e)}},[n,r,e]);return n?null:t}function lo({children:e,redirectTo:t="/budget"}){const{isNarrowWidth:n}=(0,eo.F)();const r=(0,nP.s0)();(0,m.useEffect)(()=>{if(!n){r(t)}},[n,r,t]);return n?e:null}function li({getAccounts:e}){let t=(0,nP.s0)();(0,m.useEffect)(()=>{e().then(e=>{if(e.length===0){t("/accounts")}})},[]);let n=(0,nP.TH)();let r=(0,nP.oQ)(n);(0,m.useEffect)(()=>{nL.kp("url",r)},[r]);return null}function la(){let e=(0,en.o)();(0,m.useEffect)(()=>{nA.Z.setScope("app");setTimeout(async()=>{await e.sync();await nN(e.addNotification,nU,nW,e.loadPrefs,e.savePrefs)},100)},[]);return(0,t.jsxs)(nO.VK,{children:[(0,t.jsx)(li,{getAccounts:e.getAccounts}),(0,t.jsx)(nH,{}),(0,t.jsxs)(eu.Z,{style:{height:"100%"},children:[(0,t.jsx)(nG,{}),(0,t.jsxs)(eu.Z,{style:{flexDirection:"row",flex:1},children:[(0,t.jsx)(sX.ZP,{}),(0,t.jsxs)(eu.Z,{style:{color:ei.rS.pageText,backgroundColor:ei.rS.pageBackground,flex:1,overflow:"hidden",width:"100%"},children:[(0,t.jsxs)("div",{style:{flex:1,display:"flex",overflow:"auto",position:"relative"},children:[(0,t.jsx)(le.ZP,{style:{WebkitAppRegion:"drag",position:"absolute",top:0,left:0,right:0,zIndex:1e3}}),(0,t.jsx)(sd,{}),(0,t.jsx)(nq,{}),(0,t.jsxs)(nP.Z5,{children:[(0,t.jsx)(nP.AW,{path:"/",element:(0,t.jsx)(nP.Fg,{to:"/budget",replace:true})}),(0,t.jsx)(nP.AW,{path:"/reports/*",element:(0,t.jsx)(ln,{children:(0,t.jsx)(sD,{})})}),(0,t.jsx)(nP.AW,{path:"/budget",element:(0,t.jsx)(sR,{name:"Budget"})}),(0,t.jsx)(nP.AW,{path:"/schedules",element:(0,t.jsx)(ln,{children:(0,t.jsx)(sA,{name:"Schedules"})})}),(0,t.jsx)(nP.AW,{path:"/payees",element:(0,t.jsx)(sM,{})}),(0,t.jsx)(nP.AW,{path:"/rules",element:(0,t.jsx)(rm,{})}),(0,t.jsx)(nP.AW,{path:"/settings",element:(0,t.jsx)(s9,{})}),(0,t.jsx)(nP.AW,{path:"/gocardless/link",element:(0,t.jsx)(ln,{children:(0,t.jsx)(sA,{name:"GoCardlessLink"})})}),(0,t.jsx)(nP.AW,{path:"/accounts",element:(0,t.jsx)(sR,{name:"Accounts"})}),(0,t.jsx)(nP.AW,{path:"/accounts/:id",element:(0,t.jsx)(sR,{name:"Account"})}),(0,t.jsx)(nP.AW,{path:"/accounts/:id/transactions/:transactionId",element:(0,t.jsx)(lo,{children:(0,t.jsx)(lt.$,{})})}),(0,t.jsx)(nP.AW,{path:"/accounts/:id/transactions/new",element:(0,t.jsx)(lo,{children:(0,t.jsx)(lt.$,{})})}),(0,t.jsx)(nP.AW,{path:"/transactions/new",element:(0,t.jsx)(lo,{children:(0,t.jsx)(lt.$,{})})}),(0,t.jsx)(nP.AW,{path:"/*",element:(0,t.jsx)(nP.Fg,{to:"/budget",replace:true})})]}),(0,t.jsx)(ss,{})]}),(0,t.jsxs)(nP.Z5,{children:[(0,t.jsx)(nP.AW,{path:"/budget",element:(0,t.jsx)(ix,{})}),(0,t.jsx)(nP.AW,{path:"/accounts",element:(0,t.jsx)(ix,{})}),(0,t.jsx)(nP.AW,{path:"/settings",element:(0,t.jsx)(ix,{})}),(0,t.jsx)(nP.AW,{path:"*",element:null})]})]})]})]})]})}function ls(){let e=(0,m.useMemo)(()=>(0,t.jsx)(la,{}),[]);return(0,t.jsx)(nz.Y,{children:(0,t.jsx)(le.TE,{children:(0,t.jsx)(sX.Hn,{children:(0,t.jsx)(nY.j,{children:(0,t.jsx)(nZ.Zr,{children:(0,t.jsx)(nR.BB,{children:(0,t.jsx)(ne,{backend:nD,children:(0,t.jsx)(iv,{children:e})})})})})})})})}var ll=n(49886);var lu=n(28127);var lc=n(85554);var ld=n(52715);var lf=n(27275);var lh=n(54402);var lp=n(15988);function lg(e){if(e.state==="unknown"){return"This is a cloud-based file but its state is unknown because you "+"are offline."}if(e.encryptKeyId){if(e.hasKey){return"This file is encrypted and you have key to access it."}return"This file is encrypted and you do not have the key for it."}return null}function lv({onDelete:e,onClose:n}){function r(t){n();switch(t){case"delete":e();break;default:}}let o=[{name:"delete",text:"Delete"}];return(0,t.jsx)(i6.Z,{onMenuSelect:r,items:o})}function lm({state:e,onDelete:n}){let[r,o]=(0,m.useState)(false);return(0,t.jsxs)(eu.Z,{children:[(0,t.jsx)(em.Z,{type:"bare",onClick:e=>{e.stopPropagation();o(true)},children:(0,t.jsx)(iJ.Z,{style:{width:16,height:16}})}),r&&(0,t.jsx)(i7.u,{position:"bottom-right",style:{padding:0},onClose:()=>o(false),children:(0,t.jsx)(lv,{state:e,onDelete:n,onClose:()=>o(false)})})]})}function ly({file:e}){let n;let r;let o;switch(e.state){case"unknown":n=lf.Z;r="Network unavailable";o=ei.rS.buttonNormalDisabledText;break;case"remote":n=lc.Z;r="Available for download";break;case"local":case"broken":n=ld.Z;r="Local";break;default:n=lu.Z;r="Syncing";break}return(0,t.jsxs)(eu.Z,{style:{color:o,alignItems:"center",flexDirection:"row",marginTop:8},children:[(0,t.jsx)(n,{style:{width:18,height:18,color:"currentColor"}}),(0,t.jsx)(eS.Z,{style:{marginLeft:5},children:r})]})}function lw({file:e,onSelect:n,onDelete:r}){let o=(0,m.useRef)(false);async function i(e){if(!o.current){o.current=true;await n(e);o.current=false}}return(0,t.jsxs)(eu.Z,{onClick:()=>i(e),title:lg(e),style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",...ei.W2.shadow,margin:10,padding:"12px 15px",backgroundColor:ei.rS.buttonNormalBackground,borderRadius:6,flexShrink:0,cursor:"pointer",":hover":{backgroundColor:ei.rS.hover}},children:[(0,t.jsxs)(eu.Z,{style:{alignItems:"flex-start"},children:[(0,t.jsx)(eS.Z,{style:{fontSize:16,fontWeight:700},children:e.name}),(0,t.jsx)(ly,{file:e})]}),(0,t.jsxs)(eu.Z,{style:{flex:"0 0 auto",flexDirection:"row",alignItems:"center"},children:[e.encryptKeyId&&(0,t.jsx)(lh.Z,{style:{width:13,height:13,marginRight:8,color:e.hasKey?ei.rS.formLabelText:ei.rS.buttonNormalDisabledText}}),(0,t.jsx)(lm,{state:e.state,onDelete:()=>r(e)})]})]})}function lx({files:e,onSelect:n,onDelete:r}){return(0,t.jsx)(eu.Z,{style:{flexGrow:1,[`@media (min-width: ${sB.Z.breakpoint_small})`]:{flexGrow:0,maxHeight:310},overflow:"auto","& *":{userSelect:"none"}},children:e.map(e=>(0,t.jsx)(lw,{file:e,onSelect:n,onDelete:r},e.id||e.cloudFileId))})}function lb({onRefresh:e}){let[n,r]=(0,m.useState)(false);async function o(){r(true);await e();r(false)}let i=n?es.Z:lp.Z;return(0,t.jsx)(em.Z,{type:"bare",style:{padding:10,marginRight:5},onClick:o,children:(0,t.jsx)(i,{style:{width:18,height:18}})})}function lS(){let e=(0,y.v9)(e=>e.budgets.allFiles||[]);let{getUserData:n,loadAllFiles:r,pushModal:o,loadBudget:i,createBudget:a,downloadBudget:s}=(0,en.o)();const[l,u]=(0,m.useState)(false);const c=({testMode:e}={})=>{if(!l){u(true);a({testMode:e})}};return(0,t.jsxs)(eu.Z,{style:{flex:1,justifyContent:"center",marginInline:-20,marginTop:20,width:"100vw",[`@media (min-width: ${sB.Z.breakpoint_small})`]:{maxWidth:sB.Z.breakpoint_small,width:"100%"}},children:[(0,t.jsxs)(eu.Z,{children:[(0,t.jsx)(eS.Z,{style:{...ei.W2.veryLargeText,margin:20},children:"Files"}),(0,t.jsx)(eu.Z,{style:{position:"absolute",right:0,top:0,bottom:0,justifyContent:"center",marginRight:5},children:(0,t.jsx)(lb,{onRefresh:()=>{n();r()}})})]}),(0,t.jsx)(lx,{files:e,actions:j,onSelect:e=>{if(e.state==="remote"){s(e.cloudFileId)}else{i(e.id)}},onDelete:e=>o("delete-budget",{file:e})}),(0,t.jsxs)(eu.Z,{style:{flexDirection:"row",justifyContent:"flex-end",padding:25,paddingLeft:5},children:[(0,t.jsx)(em.Z,{type:"bare",style:{marginLeft:10,color:ei.rS.pageTextLight},onClick:e=>{e.preventDefault();o("import")},children:"Import file"}),(0,t.jsx)(em.Z,{type:"primary",onClick:c,style:{marginLeft:15},children:"Create new file"}),(0,aA.Ry)()&&(0,t.jsx)(em.Z,{type:"primary",isSubmit:false,onClick:()=>c({testMode:true}),style:{marginLeft:15},children:"Create test file"})]})]})};function lk(){let[e,t]=(0,m.useState)(false);let n=(0,nB.Z)();let r=(0,nP.TH)();let o=(0,sH.q3)();(0,m.useEffect)(()=>{async function e(){let e=e=>{if(r.pathname!==e){n(e)}else{t(true)}};let i=await (0,q.lW)("get-server-url");let a=await (0,q.lW)("get-did-bootstrap");if(i==null&&!a){let t=window.location.origin;let r=await (0,q.lW)("subscribe-needs-bootstrap",{url:t});if("error"in r||!r.hasServer){console.log("error"in r&&r.error);n("/config-server");return}await o(t,{validate:false});if(r.bootstrapped){e("/login")}else{e("/bootstrap")}}else{let t=await (0,q.lW)("subscribe-needs-bootstrap");if("error"in t){n("/error",{state:{error:t.error}})}else if(t.bootstrapped){e("/login")}else{e("/bootstrap")}}}e()},[r]);return{checked:e}}function lj({text:e}){return(0,t.jsx)("h1",{style:{fontSize:40,fontWeight:700,color:ei.rS.pageTextPositive,marginBottom:20},children:e})};function lC(){(0,sL.j)(ei.rS.mobileConfigServerViewTheme);let{createBudget:e,signOut:n,loggedIn:r}=(0,en.o)();let o=(0,nB.Z)();let[i,a]=(0,m.useState)("");let s=(0,sH.o1)();let l=(0,sH.q3)();(0,m.useEffect)(()=>{a(s)},[s]);let[u,c]=(0,m.useState)(false);let[f,h]=(0,m.useState)(null);function p(e){switch(e){case"network-failure":return"Server is not running at this URL. Make sure you have HTTPS set up properly.";default:return"Server does not look like an Actual server. Is it set up correctly?"}}async function g(){if(i===""||u){return}h(null);c(true);let{error:e}=await l(i);if(["network-failure","get-server-failure"].includes(e)&&!i.startsWith("http://")&&!i.startsWith("https://")){let{error:e}=await l("https://"+i);if(e){a("https://"+i);h(e)}else{await n();o("/")}c(false)}else if(e){c(false);h(e)}else{c(false);await n();o("/")}}function v(){a(window.location.origin)}async function y(){await l(null);await r();o("/")}async function w(){await l(null);await e({testMode:true});window.__navigate("/")}return(0,t.jsxs)(eu.Z,{style:{maxWidth:500,marginTop:-30},children:[(0,t.jsx)(lj,{text:"Where’s the server?"}),(0,t.jsx)(eS.Z,{style:{fontSize:16,color:ei.rS.tableRowHeaderText,lineHeight:1.5},children:s?(0,t.jsx)(t.Fragment,{children:"Existing sessions will be logged out and you will log in to this server. We will validate that Actual is running at this URL."}):(0,t.jsx)(t.Fragment,{children:"There is no server configured. After running the server, specify the URL here to use the app. You can always change this later. We will validate that Actual is running at this URL."})}),f&&(0,t.jsx)(eS.Z,{style:{marginTop:20,color:ei.rS.errorText,borderRadius:4,fontSize:15},children:p(f)}),(0,t.jsxs)("form",{style:{display:"flex",flexDirection:"row",marginTop:30},onSubmit:e=>{e.preventDefault();g()},children:[(0,t.jsx)(iz.Tn,{autoFocus:true,placeholder:"https://example.com",value:i||"",onUpdate:a,style:{flex:1,marginRight:10}}),(0,t.jsx)(em.y,{type:"primary",loading:u,style:{fontSize:15},children:"OK"}),s&&(0,t.jsx)(em.Z,{type:"bare",style:{fontSize:15,marginLeft:10},onClick:()=>o(-1),children:"Cancel"})]}),(0,t.jsx)(eu.Z,{style:{flexDirection:"row",flexFlow:"row wrap",justifyContent:"center",marginTop:15},children:s?(0,t.jsx)(em.Z,{type:"bare",style:{color:ei.rS.pageTextLight},onClick:y,children:"Stop using a server"}):(0,t.jsxs)(t.Fragment,{children:[!(0,aA.d)()&&(0,t.jsx)(em.Z,{type:"bare",style:{color:ei.rS.pageTextLight,margin:5,marginRight:15},onClick:v,children:"Use current domain"}),(0,t.jsx)(em.Z,{type:"bare",style:{color:ei.rS.pageTextLight,margin:5},onClick:y,children:"Don’t use a server"}),(0,aA.Ry)()&&(0,t.jsx)(em.Z,{type:"primary",style:{marginLeft:15},onClick:w,children:"Create test file"})]})})]})};function lT({modalProps:e,actions:n,file:r}){let[o,i]=(0,m.useState)(null);async function a(){i("cloud");await n.deleteBudget(r.id,r.cloudFileId);i(null);e.onBack()}async function s(){i("local");await n.deleteBudget(r.id);i(null);e.onBack()}let l=r.cloudFileId&&r.state!=="broken";return(0,t.jsx)(ew.C,{...e,title:"Delete "+r.name,padding:0,showOverlay:false,onClose:e.onBack,children:()=>(0,t.jsxs)(eu.Z,{style:{padding:15,gap:15,paddingTop:0,paddingBottom:25,maxWidth:512,lineHeight:"1.5em"},children:[l&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(eS.Z,{children:["This is a ",(0,t.jsx)("strong",{children:"hosted file"})," which means it is stored on your server to make it available for download on any device. You can delete it from the server, which will also remove it from all of your devices."]}),(0,t.jsx)(em.y,{type:"primary",loading:o==="cloud",style:{backgroundColor:ei.rS.errorText,alignSelf:"center",border:0,padding:"10px 30px",fontSize:14},onClick:a,children:"Delete file from all devices"})]}),r.id&&(0,t.jsxs)(t.Fragment,{children:[l?(0,t.jsx)(eS.Z,{children:"You can also delete just the local copy. This will remove all local data and the file will be listed as available for download."}):(0,t.jsxs)(eS.Z,{children:[r.state==="broken"?(0,t.jsxs)(t.Fragment,{children:["This is a ",(0,t.jsx)("strong",{children:"hosted file"})," but it was created by another user. You can only delete the local copy."]}):(0,t.jsxs)(t.Fragment,{children:["This a ",(0,t.jsx)("strong",{children:"local file"})," which is not stored on a server."]})," ","Deleting it will remove it and all of its backups permanently."]}),(0,t.jsx)(em.y,{type:l?"normal":"primary",loading:o==="local",style:{alignSelf:"center",marginTop:10,padding:"10px 30px",fontSize:14,...l?{color:ei.rS.errorText,borderColor:ei.rS.errorText}:{border:0,backgroundColor:ei.rS.errorText}},onClick:s,children:"Delete file locally"})]})]})})};function lE(e){switch(e){case"not-ynab4":return"This file is not valid. Please select a .ynab4 file";default:return"An unknown error occurred while importing. Please report this as a new issue on Github."}}function l_({modalProps:e,actions:n}){const[r]=(0,m.useState)(false);function o(e){switch(e){case"ynab4":n.pushModal("import-ynab4");break;case"ynab5":n.pushModal("import-ynab5");break;case"actual":n.pushModal("import-actual");break;default:}}let i={padding:10,border:"1px solid "+ei.rS.tableBorder,borderRadius:6,marginBottom:10,display:"block"};return(0,t.jsx)(ew.C,{...e,title:"Import From",style:{width:400},children:()=>(0,t.jsxs)(eu.Z,{style:{...ei.W2.smallText,lineHeight:1.5},children:[r&&(0,t.jsx)(el.Z,{style:{color:ei.rS.errorText,marginBottom:15},children:lE(r)}),(0,t.jsx)(eS.Z,{style:{marginBottom:15},children:"Select an app to import from, and we’ll guide you through the process."}),(0,t.jsxs)(em.Z,{style:i,onClick:()=>o("ynab4"),children:[(0,t.jsx)("span",{style:{fontWeight:700},children:"YNAB4"}),(0,t.jsx)(eu.Z,{style:{color:ei.rS.pageTextLight},children:"The old unsupported desktop app"})]}),(0,t.jsxs)(em.Z,{style:i,onClick:()=>o("ynab5"),children:[(0,t.jsx)("span",{style:{fontWeight:700},children:"nYNAB"}),(0,t.jsx)(eu.Z,{style:{color:ei.rS.pageTextLight},children:(0,t.jsx)("div",{children:"The newer web app"})})]}),(0,t.jsxs)(em.Z,{style:i,onClick:()=>o("actual"),children:[(0,t.jsx)("span",{style:{fontWeight:700},children:"Actual"}),(0,t.jsx)(eu.Z,{style:{color:ei.rS.pageTextLight},children:(0,t.jsx)("div",{children:"Import a file exported from Actual"})})]})]})})}var lI=l_;var lM=n(99103);function lD(e){switch(e){case"parse-error":return"Unable to parse file. Please select a JSON file exported from nYNAB.";case"not-ynab5":return"This file is not valid. Please select a JSON file exported from nYNAB.";case"not-zip-file":return"This file is not valid. Please select an unencrypted archive of Actual data.";case"invalid-zip-file":return"This archive is not a valid Actual export file.";case"invalid-metadata-file":return"The metadata file in the given archive is corrupted.";default:return"An unknown error occurred while importing. Please report this as a new issue on Github."}}function lP({modalProps:e}){const n=(0,y.I0)();const[r,o]=(0,m.useState)(null);const[i,a]=(0,m.useState)(false);async function s(){const e=await window.Actual.openFileDialog({properties:["openFile"],filters:[{name:"actual",extensions:["zip","blob"]}]});if(e){a(true);o(null);try{await n((0,lM.ef)(e[0],"actual"))}catch(e){o(e.message)}finally{a(false)}}}return(0,t.jsx)(ew.C,{...e,title:"Import from Actual export",style:{width:400},children:()=>(0,t.jsxs)(eu.Z,{style:{...ei.W2.smallText,lineHeight:1.5,marginTop:20},children:[r&&(0,t.jsx)(el.Z,{style:{color:ei.rS.errorText,marginBottom:15},children:lD(r)}),(0,t.jsxs)(eu.Z,{style:{"& > div":{lineHeight:"1.7em"}},children:[(0,t.jsxs)(ex.Z,{children:["You can import data from another Actual account or instance. First export your data from a different account, and it will give you a compressed file. This file is a simple zip file that contains the"," ",(0,t.jsx)("code",{children:"db.sqlite"})," and ",(0,t.jsx)("code",{children:"metadata.json"})," files."]}),(0,t.jsx)(ex.Z,{children:"Select one of these compressed files and import it here."}),(0,t.jsx)(eu.Z,{style:{alignSelf:"center"},children:(0,t.jsx)(em.y,{type:"primary",loading:i,onClick:s,children:"Select file..."})})]})]})})}var lO=lP;function lA(e){switch(e){case"not-ynab4":return"This file is not valid. Please select a compressed ynab4 zip file.";default:return"An unknown error occurred while importing. Please report this as a new issue on Github."}}function lR({modalProps:e}){const n=(0,y.I0)();const[r,o]=(0,m.useState)(null);const[i,a]=(0,m.useState)(false);async function s(){const e=await window.Actual.openFileDialog({properties:["openFile"],filters:[{name:"ynab",extensions:["zip"]}]});if(e){a(true);o(null);try{await n((0,lM.ef)(e[0],"ynab4"))}catch(e){o(e.message)}finally{a(false)}}}return(0,t.jsx)(ew.C,{...e,title:"Import from YNAB4",style:{width:400},children:()=>(0,t.jsxs)(eu.Z,{style:{...ei.W2.smallText,lineHeight:1.5,marginTop:20},children:[r&&(0,t.jsx)(el.Z,{style:{color:ei.rS.errorText,marginBottom:15},children:lA(r)}),(0,t.jsxs)(eu.Z,{style:{alignItems:"center"},children:[(0,t.jsxs)(ex.Z,{children:["To import data from YNAB4, locate where your YNAB4 data is stored. It is usually in your Documents folder under YNAB. Your data is a directory inside that with the ",(0,t.jsx)("code",{children:".ynab4"})," suffix."]}),(0,t.jsxs)(ex.Z,{children:["When you’ve located your data,"," ",(0,t.jsx)("strong",{children:"compress it into a zip file"}),". On macOS, right-click the folder and select “Compress”. On Windows, right-click and select “Send to → Compressed (zipped) folder”. Upload the zipped folder for importing."]}),(0,t.jsx)(eu.Z,{children:(0,t.jsx)(em.y,{type:"primary",loading:i,onClick:s,children:"Select zip file..."})})]})]})})}var lZ=lR;function lz(e){switch(e){case"parse-error":return"Unable to parse file. Please select a JSON file exported from nYNAB.";case"not-ynab5":return"This file is not valid. Please select a JSON file exported from nYNAB.";default:return"An unknown error occurred while importing. Please report this as a new issue on Github."}}function lN({modalProps:e}){const n=(0,y.I0)();const[r,o]=(0,m.useState)(null);const[i,a]=(0,m.useState)(false);async function s(){const e=await window.Actual.openFileDialog({properties:["openFile"],filters:[{name:"ynab",extensions:["json"]}]});if(e){a(true);o(null);try{await n((0,lM.ef)(e[0],"ynab5"))}catch(e){o(e.message)}finally{a(false)}}}return(0,t.jsx)(ew.C,{...e,title:"Import from nYNAB",style:{width:400},children:()=>(0,t.jsxs)(eu.Z,{style:{...ei.W2.smallText,lineHeight:1.5,marginTop:20},children:[r&&(0,t.jsx)(el.Z,{style:{color:ei.rS.errorText,marginBottom:15},children:lz(r)}),(0,t.jsxs)(eu.Z,{style:{alignItems:"center","& > div":{lineHeight:"1.7em"}},children:[(0,t.jsxs)(ex.Z,{children:[(0,t.jsx)(eg.Z,{to:"https://actualbudget.org/docs/migration/nynab",children:"Read here"})," ","for instructions on how to migrate your data from YNAB. You need to export your data as JSON, and that page explains how to do that."]}),(0,t.jsx)(ex.Z,{children:"Once you have exported your data, select the file and Actual will import it. Budgets may not match up exactly because things work slightly differently, but you should be able to fix up any problems."}),(0,t.jsx)(eu.Z,{children:(0,t.jsx)(em.y,{type:"primary",loading:i,onClick:s,children:"Select file..."})})]})]})})}var lL=lN;function lB(){let e=(0,y.v9)(e=>e.modals.modalStack);let n=(0,y.v9)(e=>e.modals.isHidden);let r=(0,en.o)();let o=e.map(({name:o,options:i={}},a)=>{const s={onClose:r.popModal,onPush:r.pushModal,onBack:r.popModal,isCurrent:a===e.length-1,isHidden:n,stackIndex:a};switch(o){case"delete-budget":return(0,t.jsx)(lT,{modalProps:s,actions:r,file:i.file},o);case"import":return(0,t.jsx)(lI,{modalProps:s,actions:r},o);case"import-ynab4":return(0,t.jsx)(lZ,{modalProps:s,actions:r},o);case"import-ynab5":return(0,t.jsx)(lL,{modalProps:s,actions:r},o);case"import-actual":return(0,t.jsx)(lO,{modalProps:s,actions:r},o);case"load-backup":{return(0,t.jsx)(aO,{budgetId:i.budgetId,modalProps:{...s,onClose:r.popModal},backupDisabled:true,actions:r})}case"create-encryption-key":return(0,t.jsx)(iN,{modalProps:s,actions:r,options:i},o);case"fix-encryption-key":return(0,t.jsx)(iQ,{modalProps:s,actions:r,options:i},o);default:throw new Error("Unknown modal: "+o)}});return(0,t.jsx)(eu.Z,{style:{flex:1,padding:50},children:o})}var lH=n(6755);function lF(){const e=(0,sH.o1)();return(0,t.jsxs)(eu.Z,{style:{position:"absolute",bottom:0,left:0,right:0,justifyContent:"center",flexDirection:"row",marginBottom:15,zIndex:5e3},children:[(0,t.jsx)(eS.Z,{children:e?(0,t.jsxs)(t.Fragment,{children:["Using server: ",(0,t.jsx)("strong",{children:e})]}):(0,t.jsx)("strong",{children:"No server configured"})}),(0,t.jsx)(lH.Z,{to:"/config-server",style:{marginLeft:15},children:"Change"})]})}var lV=n(92178);function lW({buttons:e,onSetPassword:n,onError:r}){let[o,i]=(0,m.useState)("");let[a,s]=(0,m.useState)("");let[l,u]=(0,m.useState)(false);let[c,f]=(0,m.useState)(false);async function h(e){e.preventDefault();if(c){return}if(o===a){f(true);await n(o);f(false)}else{r("password-match")}}function p(e){u(e.target.checked)}return(0,t.jsxs)("form",{style:{display:"flex",flexDirection:"column",alignItems:"stretch",marginTop:30},onSubmit:h,children:[(0,t.jsx)(iz.Tn,{autoFocus:true,placeholder:"Password",type:l?"text":"password",value:o,onChange:e=>i(e.target.value),onEnter:h}),(0,t.jsx)(iz.Tn,{placeholder:"Confirm password",type:l?"text":"password",value:a,onChange:e=>s(e.target.value),style:{marginTop:10},onEnter:h}),(0,t.jsxs)(eu.Z,{style:{flexDirection:"row",alignItems:"center",fontSize:15,marginTop:20},children:[(0,t.jsxs)("label",{style:{userSelect:"none"},children:[(0,t.jsx)("input",{type:"checkbox",onChange:p})," Show password"]}),(0,t.jsx)(eu.Z,{style:{flex:1}}),e,(0,t.jsx)(em.y,{type:"primary",loading:c,children:"OK"})]})]})};function lU(){let e=(0,y.I0)();let[n,r]=(0,m.useState)(null);let{checked:o}=lk();function i(e){switch(e){case"invalid-password":return"Password cannot be empty";case"password-match":return"Passwords do not match";case"network-failure":return"Unable to contact the server";default:return`An unknown error occurred: ${e}`}}async function a(t){r(null);let{error:n}=await (0,q.lW)("subscribe-bootstrap",{password:t});if(n){r(n)}else{e((0,lV.Pl)())}}async function s(){await e((0,lM.xp)({demoMode:true}))}if(!o){return null}return(0,t.jsxs)(eu.Z,{style:{maxWidth:450,marginTop:-30},children:[(0,t.jsx)(lj,{text:"Welcome to Actual!"}),(0,t.jsx)(ex.Z,{style:{fontSize:16,color:ei.rS.pageTextDark},children:"Actual is a super fast privacy-focused app for managing your finances. To secure your data, you’ll need to set a password for your server."}),(0,t.jsxs)(ex.Z,{isLast:true,style:{fontSize:16,color:ei.rS.pageTextDark},children:["Consider opening"," ",(0,t.jsx)(eg.Z,{to:"https://actualbudget.org/docs/tour/",children:"our tour"})," ","in a new tab for some guidance on what to do when you’ve set your password."]}),n&&(0,t.jsx)(eS.Z,{style:{marginTop:20,color:ei.rS.errorText,borderRadius:4,fontSize:15},children:i(n)}),(0,t.jsx)(lW,{buttons:(0,t.jsx)(em.Z,{type:"bare",style:{fontSize:15,color:ei.rS.pageTextLink,marginRight:15},onClick:s,children:"Try Demo"}),onSetPassword:a,onError:r})]})};function lK(){let e=(0,nB.Z)();let[n,r]=(0,m.useState)(null);let[o,i]=(0,m.useState)(null);function a(e){switch(e){case"invalid-password":return"Password cannot be empty";case"password-match":return"Passwords do not match";case"network-failure":return"Unable to contact the server";default:return"Internal server error"}}async function s(t){r(null);let{error:n}=await (0,q.lW)("subscribe-change-password",{password:t});if(n){r(n)}else{i("Password successfully changed");await (0,q.lW)("subscribe-sign-in",{password:t});e("/")}}return(0,t.jsxs)(eu.Z,{style:{maxWidth:500,marginTop:-30},children:[(0,t.jsx)(lj,{text:"Change server password"}),(0,t.jsx)(eS.Z,{style:{fontSize:16,color:ei.rS.pageTextDark,lineHeight:1.4},children:"This will change the password for this server instance. All existing sessions will stay logged in."}),n&&(0,t.jsx)(eS.Z,{style:{marginTop:20,color:ei.rS.errorText,borderRadius:4,fontSize:15},children:a(n)}),o&&(0,t.jsx)(eS.Z,{style:{marginTop:20,color:ei.rS.noticeTextLight,borderRadius:4,fontSize:15},children:o}),(0,t.jsx)(lW,{buttons:(0,t.jsx)(em.Z,{type:"bare",style:{fontSize:15,marginRight:10},onClick:()=>e("/"),children:"Cancel"}),onSetPassword:s,onError:r})]})};function l$(e){switch(e){case"network-failure":return"Unable to access server. Make sure the configured URL for the server is accessible.";default:return"Server returned an error while checking its status."}}function lq(){let e=(0,nB.Z)();let n=(0,nP.TH)();let{error:r}=n.state||{};function o(){e("/")}return(0,t.jsxs)(eu.Z,{style:{alignItems:"center",color:ei.rS.pageText},children:[(0,t.jsx)(eS.Z,{style:{fontSize:16,color:ei.rS.pageTextDark,lineHeight:1.4},children:l$(r)}),(0,t.jsx)(em.Z,{onClick:o,style:{marginTop:20},children:"Try again"})]})};function lY(){let e=(0,y.I0)();let[n,r]=(0,m.useState)("");let[o,i]=(0,m.useState)(false);let[a,s]=(0,m.useState)(null);let{checked:l}=lk();function u(e){switch(e){case"invalid-password":return"Invalid password";case"network-failure":return"Unable to contact the server";default:return`An unknown error occurred: ${e}`}}async function c(t){t.preventDefault();if(n===""||o){return}s(null);i(true);let{error:r}=await (0,q.lW)("subscribe-sign-in",{password:n});i(false);if(r){s(r)}else{e((0,lV.Pl)())}}async function f(){await e((0,lM.xp)({demoMode:true}))}if(!l){return null}return(0,t.jsxs)(eu.Z,{style:{maxWidth:450,marginTop:-30,color:ei.rS.pageText},children:[(0,t.jsx)(lj,{text:"Sign in to this Actual instance"}),(0,t.jsx)(eS.Z,{style:{fontSize:16,color:ei.rS.pageTextDark,lineHeight:1.4},children:"If you lost your password, you likely still have access to your server to manually reset it."}),a&&(0,t.jsx)(eS.Z,{style:{marginTop:20,color:ei.rS.errorText,borderRadius:4,fontSize:15},children:u(a)}),(0,t.jsxs)("form",{style:{display:"flex",flexDirection:"row",marginTop:30},onSubmit:c,children:[(0,t.jsx)(iz.Tn,{autoFocus:true,placeholder:"Password",type:"password",onChange:e=>r(e.target.value),style:{flex:1,marginRight:10}}),(0,t.jsx)(em.y,{type:"primary",loading:o,style:{fontSize:15},children:"Sign in"})]}),(0,t.jsx)(eu.Z,{style:{flexDirection:"row",justifyContent:"center",marginTop:15},children:(0,t.jsx)(em.Z,{type:"bare",style:{fontSize:15,color:ei.rS.pageTextLink,marginLeft:10},onClick:f,children:"Try Demo →"})})]})};function lG(){let{createBudget:e,pushModal:n}=(0,en.o)();return(0,t.jsxs)(eu.Z,{style:{gap:10,maxWidth:500,fontSize:15,maxHeight:"100vh",marginBlock:20},children:[(0,t.jsx)(eS.Z,{style:ei.W2.veryLargeText,children:"Let’s get started!"}),(0,t.jsxs)(eu.Z,{style:{overflowY:"auto"},children:[(0,t.jsxs)(ex.Z,{children:["Actual is a personal finance tool that focuses on beautiful design and a slick user experience."," ",(0,t.jsx)("strong",{children:"Editing your data should be as fast as possible."})," On top of that, we want to provide powerful tools to allow you to do whatever you want with your data."]}),(0,t.jsxs)(ex.Z,{children:["Currently, Actual implements budgeting based on a"," ",(0,t.jsx)(eg.Z,{to:"https://actualbudget.org/docs/budgeting/",linkColor:"purple",children:"monthly envelope system"}),". Consider taking our"," ",(0,t.jsx)(eg.Z,{to:"https://actualbudget.org/docs/tour/",linkColor:"purple",children:"guided tour"})," ","to help you get your bearings, and check out the rest of the documentation while you’re there to learn more about advanced topics."]}),(0,t.jsx)(ex.Z,{style:{color:ei.rS.pageTextLight},children:"Get started by importing an existing budget file from Actual or another budgeting app, or start fresh with an empty budget. You can always create or import another budget later."})]}),(0,t.jsxs)(eu.Z,{style:{flexDirection:"row",justifyContent:"space-between",alignItems:"flex-end",flexShrink:0},children:[(0,t.jsx)(em.Z,{onClick:()=>n("import"),children:"Import my budget"}),(0,t.jsx)(em.Z,{type:"primary",onClick:e,children:"Start fresh"})]})]})};function lX(){const e=(0,sH.Mx)();return(0,t.jsx)(eS.Z,{style:{color:ei.rS.pageTextSubdued,":hover":{color:ei.rS.pageText},margin:15,marginLeft:17,[`@media (min-width: ${sB.Z.breakpoint_small})`]:{position:"absolute",bottom:0,right:0,marginLeft:15,marginRight:17,zIndex:5001}},children:`App: v${window.Actual.ACTUAL_VERSION} | Server: ${e}`})}function lQ({isLoading:e}){let n=(0,y.v9)(e=>e.budgets.allFiles);let r=(0,y.v9)(e=>e.user.data);let o=(0,y.v9)(e=>e.app.managerHasInitialized);let{setAppState:i,getUserData:a,loadAllFiles:s}=(0,en.o)();(0,m.useEffect)(()=>{if(!o){if(!e){i({loadingText:""})}}async function t(){let t=await a();if(t){await s()}i({managerHasInitialized:true,...!e?{loadingText:null}:null})}t()},[]);if(!o){return null}if(e){return null}return(0,t.jsxs)(nO.VK,{children:[(0,t.jsx)(nH,{}),(0,t.jsxs)(eu.Z,{style:{height:"100%",color:ei.rS.pageText},children:[(0,t.jsx)(eu.Z,{style:{position:"absolute",top:0,left:0,right:0,height:40,WebkitAppRegion:"drag"}}),(0,t.jsx)(eu.Z,{style:{position:"absolute",bottom:40,right:15},children:(0,t.jsx)(sd,{style:{position:"relative",left:"initial",right:"initial"}})}),o&&(0,t.jsx)(eu.Z,{style:{alignItems:"center",bottom:0,justifyContent:"center",left:0,padding:20,position:"absolute",right:0,top:0},children:r&&n?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(nP.Z5,{children:[(0,t.jsx)(nP.AW,{path:"/config-server",element:(0,t.jsx)(lC,{})}),(0,t.jsx)(nP.AW,{path:"/change-password",element:(0,t.jsx)(lK,{})}),n&&n.length>0?(0,t.jsx)(nP.AW,{path:"/",element:(0,t.jsx)(lS,{})}):(0,t.jsx)(nP.AW,{path:"/",element:(0,t.jsx)(lG,{})}),(0,t.jsx)(nP.AW,{path:"/*",element:(0,t.jsx)(nP.Fg,{to:"/"})})]}),(0,t.jsx)(eu.Z,{style:{position:"absolute",top:0,right:0,padding:"6px 10px",zIndex:4e3},children:(0,t.jsxs)(nP.Z5,{children:[(0,t.jsx)(nP.AW,{path:"/config-server",element:null}),(0,t.jsx)(nP.AW,{path:"/*",element:(0,t.jsx)(ll.Z,{hideIfNoServer:true,style:{padding:"4px 7px"}})})]})})]}):(0,t.jsxs)(nP.Z5,{children:[(0,t.jsx)(nP.AW,{path:"/login",element:(0,t.jsx)(lY,{})}),(0,t.jsx)(nP.AW,{path:"/error",element:(0,t.jsx)(lq,{})}),(0,t.jsx)(nP.AW,{path:"/config-server",element:(0,t.jsx)(lC,{})}),(0,t.jsx)(nP.AW,{path:"/bootstrap",element:(0,t.jsx)(lU,{})}),(0,t.jsx)(nP.AW,{path:"/*",element:(0,t.jsx)(nP.Fg,{to:"/bootstrap",replace:true})})]})}),(0,t.jsxs)(nP.Z5,{children:[(0,t.jsx)(nP.AW,{path:"/config-server",element:null}),(0,t.jsx)(nP.AW,{path:"/*",element:(0,t.jsx)(lF,{})})]}),(0,t.jsx)(lX,{})]}),(0,t.jsx)(lB,{})]})};let lJ={border:0,fontSize:15,padding:"10px 13px"};function l0(){const e=(0,y.v9)(e=>{return e.prefs.local&&e.prefs.local.hideMobileMessage||true});const{isNarrowWidth:n}=(0,eo.F)();let[r,o]=(0,m.useState)(n&&!e&&!document.cookie.match(/hideMobileMessage=true/));let[i,a]=(0,m.useState)(false);let s=(0,y.I0)();function l(){o(false);if(i){s((0,j.savePrefs)({hideMobileMessage:true}))}else{let e=new Date;e.setTime(e.getTime()+1e3*60*5);document.cookie="hideMobileMessage=true;path=/;expires="+e.toUTCString()}}if(!r){return null}return(0,t.jsxs)(eu.Z,{style:{position:"absolute",bottom:0,left:0,right:0,backgroundColor:ei.rS.mobileModalBackground,color:ei.rS.mobileModalText,padding:10,margin:10,borderRadius:6,zIndex:1e4,fontSize:15,...ei.W2.shadowLarge},children:[(0,t.jsxs)(eS.Z,{style:{lineHeight:"1.5em"},children:[(0,t.jsx)("strong",{children:"Actual features are limited on small screens."}),(0,t.jsx)("br",{}),(0,t.jsx)("span",{children:"While we work to improve this experience, you may find the full Actual feature set on devices with larger screens."})]}),(0,t.jsxs)(eu.Z,{style:{gap:16,marginTop:20,justifyContent:"center"},children:[(0,t.jsx)(em.Z,{style:lJ,onClick:l,children:"Try it anyway"}),(0,t.jsxs)(eu.Z,{style:{alignItems:"center",flexDirection:"row",justifyContent:"flex-end"},children:[(0,t.jsx)(ek.XZ,{id:"dont_remind_me",checked:i,onChange:()=>{a(!i)}}),(0,t.jsx)("label",{htmlFor:"dont_remind_me",style:{userSelect:"none"},children:"Don’t remind me again"})]})]})]})}var l1=n(52267);function l2(e){e({updateInfo:null,showUpdateNotification:false})}function l4(){let e=(0,y.v9)(e=>e.app.updateInfo);let n=(0,y.v9)(e=>e.app.showUpdateNotification);let{updateApp:r,setAppState:o}=(0,en.o)();if(e&&n){let n=e.releaseNotes;return(0,t.jsxs)(eu.Z,{style:{position:"absolute",bottom:0,right:0,margin:"15px 17px",backgroundColor:ei.rS.pageTextPositive,color:ei.rS.tableBackground,padding:"7px 10px",borderRadius:4,zIndex:1e4,maxWidth:450},children:[(0,t.jsxs)(eu.Z,{style:{flexDirection:"row",alignItems:"center"},children:[(0,t.jsx)(eu.Z,{style:{marginRight:10,fontWeight:700},children:(0,t.jsxs)(eS.Z,{children:["App updated to ",e.version]})}),(0,t.jsx)(eu.Z,{style:{flex:1}}),(0,t.jsx)(eu.Z,{style:{marginTop:-1},children:(0,t.jsxs)(eS.Z,{children:[(0,t.jsx)(ey.Z,{onClick:r,style:{color:ei.rS.buttonPrimaryText,textDecoration:"underline"},children:"Restart"})," ","(",(0,t.jsx)(ey.Z,{style:{color:ei.rS.buttonPrimaryText,textDecoration:"underline"},onClick:()=>window.Actual.openURLInBrowser("https://actualbudget.org/docs/releases"),children:"notes"}),")",(0,t.jsx)(em.Z,{type:"bare",style:{display:"inline",padding:"1px 7px 2px 7px"},onClick:()=>l2(o),children:(0,t.jsx)(l1.Z,{width:9,style:{color:ei.rS.buttonPrimaryText}})})]})})]}),n&&(0,t.jsx)(eu.Z,{style:{marginTop:10,fontWeight:500},children:n})]})}return null};function l5({budgetId:e,cloudFileId:r,loadingText:o,loadBudget:i,closeBudget:a,loadGlobalPrefs:s}){const[l,u]=(0,m.useState)(true);const{showBoundary:c}=ee();async function f(){const e=await n.g.Actual.getServerSocket();await (0,q.S1)(e);await s();const t=await (0,q.lW)("get-last-opened-backup");if(t){await i(t);(0,q.lW)("get-remote-files").then(e=>{if(e){let t=e.find(e=>e.fileId===r);if(t&&t.deleted){a()}}})}}(0,m.useEffect)(()=>{async function e(){await Promise.all([er(),f()]);u(false)}e().catch(c)},[]);(0,m.useEffect)(()=>{n.g.Actual.updateAppMenu(!!e)},[e]);return(0,t.jsxs)(t.Fragment,{children:[l?(0,t.jsx)(ep,{initializing:l,loadingText:o}):e?(0,t.jsx)(ls,{}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ep,{initializing:l,loadingText:o}),(0,t.jsx)(lQ,{isLoading:o!=null})]}),(0,t.jsx)(l4,{}),(0,t.jsx)(l0,{})]})}function l3({error:e}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ep,{}),(0,t.jsx)(e_,{error:e,buttonText:"Restart app"})]})}function l8(){let e=(0,y.v9)(e=>e.prefs.local&&e.prefs.local.id);let n=(0,y.v9)(e=>e.prefs.local&&e.prefs.local.cloudFileId);let r=(0,y.v9)(e=>e.app.loadingText);let{loadBudget:o,closeBudget:i,loadGlobalPrefs:a,sync:l}=(0,en.o)();const[u,c]=(0,m.useState)((0,ei.bA)());(0,m.useEffect)(()=>{function e(){if(u!==(0,ei.bA)()){c((0,ei.bA)())}}let t=false;async function n(){if(!t){console.debug("triggering sync because of visibility change");t=true;await l();t=false}}window.addEventListener("focus",e);window.addEventListener("visibilitychange",n);return()=>{window.removeEventListener("focus",e);window.removeEventListener("visibilitychange",n)}},[l]);return(0,t.jsx)(eo.$,{children:(0,t.jsx)(eu.Z,{style:{height:"100%",display:"flex",flexDirection:"column"},children:(0,t.jsxs)(eu.Z,{style:{flexGrow:1,overflow:"hidden",...ei.W2.lightScrollbar},children:[(0,t.jsxs)(X,{FallbackComponent:l3,children:[{"NODE_ENV":"production","PUBLIC_URL":"","WDS_SOCKET_HOST":undefined,"WDS_SOCKET_PATH":undefined,"WDS_SOCKET_PORT":undefined,"FAST_REFRESH":true,"REACT_APP_BACKEND_WORKER_HASH":"676aa69de34599d64b7b"}.REACT_APP_REVIEW_ID&&!s.$8&&(0,t.jsx)(ev,{}),(0,t.jsx)(l5,{budgetId:e,cloudFileId:n,loadingText:r,loadBudget:o,closeBudget:i,loadGlobalPrefs:a})]}),(0,t.jsx)(ei.jy,{})]},u?"hidden-scrollbars":"scrollbars")})})}var l6=l8;function l7(e,t){let n=false;(0,q.oL)("sync-event",r=>{const{type:o,subtype:i,meta:a,tables:s}=r;const l=t.getState().prefs.local;if(!l||!l.id){return}if(o==="success"){if(n){n=false;e.addNotification({title:"Syncing has been fixed!",message:"Happy budgeting!",type:"message"})}if(s.includes("prefs")){e.loadPrefs()}if(s.includes("categories")||s.includes("category_groups")||s.includes("category_mapping")){e.getCategories()}if(s.includes("payees")||s.includes("payee_mapping")){e.getPayees()}if(s.includes("accounts")){e.getAccounts()}}else if(o==="error"){let o=null;const s="[Learn more](https://actualbudget.org/docs/getting-started/sync/#debugging-sync-issues)";const l="https://github.com/actualbudget/actual/issues/new?assignees=&labels=bug&template=bug-report.yml&title=%5BBug%5D%3A+";switch(i){case"out-of-sync":if(n){o={title:"Your data is still out of sync",message:"We were unable to repair your sync state, sorry! You need to reset your sync state. "+s,sticky:true,id:"reset-sync",button:{title:"Reset sync",action:e.resetSync}}}else{o={title:"Your data is out of sync",message:"There was a problem syncing your data. We can try to repair your sync state "+"to fix it. "+s,type:"warning",sticky:true,id:"repair-sync",button:{title:"Repair",action:async()=>{n=true;await (0,q.lW)("sync-repair");e.sync()}}}}break;case"file-old-version":o={title:"Actual has updated the syncing format",message:"This happens rarely (if ever again). The internal syncing format "+"has changed and you need to reset sync. This will upload data from "+"this device and revert all other devices. "+"[Learn more about what this means](https://actualbudget.org/docs/getting-started/sync/#what-does-resetting-sync-mean)."+"\n\nOld encryption keys are not migrated. If using "+"encryption, [reset encryption here](#makeKey).",messageActions:{makeKey:()=>e.pushModal("create-encryption-key")},sticky:true,id:"old-file",button:{title:"Reset sync",action:e.resetSync}};break;case"file-key-mismatch":o={title:"Your encryption key need to be reset",message:"Something went wrong when registering your encryption key id. "+"You need to recreate your key. "+s,sticky:true,id:"invalid-key-state",button:{title:"Reset key",action:()=>e.pushModal("create-encryption-key")}};break;case"file-not-found":o={title:"This file is not a cloud file",message:"You need to register it to take advantage "+"of syncing which allows you to use it across devices and never worry "+"about losing your data. "+s,type:"warning",sticky:true,id:"register-file",button:{title:"Register",action:async()=>{await e.uploadBudget();e.sync();e.loadPrefs()}}};break;case"file-needs-upload":o={title:"File needs upload",message:"Something went wrong when creating this cloud file. You need "+"to upload this file to fix it. "+s,sticky:true,id:"upload-file",button:{title:"Upload",action:e.resetSync}};break;case"file-has-reset":case"file-has-new-key":const{cloudFileId:u}=t.getState().prefs.local;o={title:"Syncing has been reset on this cloud file",message:"You need to revert it to continue syncing. Any unsynced "+"data will be lost. If you like, you can instead "+"[upload this file](#upload) to be the latest version. "+s,messageActions:{upload:e.resetSync},sticky:true,id:"needs-revert",button:{title:"Revert",action:()=>e.closeAndDownloadBudget(u)}};break;case"encrypt-failure":case"decrypt-failure":if(a.isMissingKey){o={title:"Missing encryption key",message:"Unable to encrypt your data because you are missing the key. "+"Create your key to sync your data.",sticky:true,id:"encrypt-failure-missing",button:{title:"Create key",action:()=>e.pushModal("fix-encryption-key",{onSuccess:()=>e.sync()})}}}else{o={message:"Unable to encrypt your data. You have the correct "+"key so this is likely an internal failure. To fix this, "+"reset your sync data with a new key.",sticky:true,id:"encrypt-failure",button:{title:"Reset key",action:()=>e.pushModal("create-encryption-key",{onSuccess:()=>e.sync()})}}}break;case"invalid-schema":console.trace("invalid-schema",a);o={title:"Update required",message:"We couldn’t apply changes from the server. This probably means you "+"need to update the app to support the latest database.",type:"warning"};break;case"apply-failure":console.trace("apply-failure",a);o={message:`We couldn’t apply that change to the database. Please report this as a bug by [opening a Github issue](${l}).`};break;case"network":break;default:console.trace("unkown error",r);o={message:`We had problems syncing your changes. Please report this as a bug by [opening a Github issue](${l}).`}}if(o){e.addNotification({type:"error",...o})}}})};function l9(e,t){n.g.Actual.onEventFromMain("update-downloaded",(t,n)=>{e.setAppState({updateInfo:n})});n.g.Actual.onEventFromMain("update-error",()=>{});(0,q.oL)("server-error",()=>{e.addGenericErrorNotification()});(0,q.oL)("orphaned-payees",({orphanedIds:t,updatedPayeeIds:n})=>{e.pushModal("merge-unused-payees",{payeeIds:t,targetPayeeId:n[0]})});(0,q.oL)("schedules-offline",({payees:t})=>{e.pushModal("schedule-posts-offline-notification",{payees:t})});(0,q.oL)("sync-event",async({type:n,tables:r})=>{const o=t.getState().prefs.local;if(o&&o.id){if(n==="applied"){if(r.includes("payees")||r.includes("payee_mapping")){e.getPayees()}}}});(0,q.oL)("sync-event",async({type:t})=>{if(t==="unauthorized"){e.addNotification({type:"warning",message:"Unable to authenticate with server",sticky:true,id:"auth-issue"})}});l7(e,t);(0,q.oL)("undo-event",n=>{const{tables:r,undoTag:o}=n;const i=[];if(r.includes("categories")||r.includes("category_groups")||r.includes("category_mapping")){i.push(e.getCategories())}if(r.includes("accounts")){i.push(e.getAccounts())}const a=nL.r8(o);if(a){Promise.all(i).then(()=>{e.setLastUndoState(n);if(a.openModal){const{modalStack:n}=t.getState().modals;if(n.length===0||n[n.length-1].name!==a.openModal){e.replaceModal(a.openModal)}}else{e.closeModal();if(window.location.href.replace(window.location.origin,"")!==a.url){window.__navigate(a.url);return true}}})}});(0,q.oL)("fallback-write-error",()=>{e.addNotification({type:"error",title:"Unable to save changes",sticky:true,message:"This browser only supports using the app in one tab at a time, "+"and another tab has opened the app. No changes will be saved "+"from this tab; please close it and continue working in the other one."})});(0,q.oL)("start-load",()=>{e.closeBudgetUI();e.setAppState({loadingText:""})});(0,q.oL)("finish-load",()=>{e.closeModal();e.setAppState({loadingText:null});e.loadPrefs()});(0,q.oL)("start-import",()=>{e.closeBudgetUI()});(0,q.oL)("finish-import",()=>{e.closeModal();e.setAppState({loadingText:null});e.loadPrefs()});(0,q.oL)("show-budgets",()=>{e.closeBudgetUI();e.setAppState({loadingText:null})})}var ue=n(17401);const ut=(0,x.UY)($);function un(e,t){if(t.type===C.DC){e={budgets:e.budgets,user:e.user,prefs:{local:null,global:e.prefs.global},app:{...I,updateInfo:e.updateInfo,showUpdateNotification:e.showUpdateNotification,managerHasInitialized:e.app.managerHasInitialized,loadingText:e.app.loadingText}}}return ut(e,t)}const uo=(0,x.MT)(un,undefined,(0,x.md)(k));const ui=(0,x.DE)(j,uo.dispatch);l9(ui,uo);window.__actionsForMenu=ui;window.$send=q.lW;window.$query=T.Vn;window.$q=T.ZP;const ua=document.getElementById("root");const us=(0,w.s)(ua);us.render((0,t.jsx)(y.zt,{store:uo,children:(0,t.jsx)(sH.qc,{children:(0,t.jsx)(l6,{})})}))}()})();
188
- //# sourceMappingURL=main.39d3269d.js.map