From 2fec4b55bac0713b08931fd4be08ed5ffde3bbe0 Mon Sep 17 00:00:00 2001 From: Deploy Bot Date: Fri, 8 Nov 2024 09:26:25 +0000 Subject: [PATCH] Updates --- 404.html | 4 ++-- 404/index.html | 4 ++-- annulla-iscrizione/index.html | 4 ++-- app-4879c6d2344bdd1e4a91.js => app-723ca737657560b19155.js | 6 +++--- ...s.LICENSE.txt => app-723ca737657560b19155.js.LICENSE.txt | 0 ...d2344bdd1e4a91.js.map => app-723ca737657560b19155.js.map | 2 +- chunk-map.json | 2 +- come-partecipare/candida-pa/index.html | 4 ++-- come-partecipare/classifica-pa/index.html | 4 ++-- come-partecipare/crea-profilo/index.html | 4 ++-- come-partecipare/gestire-le-utenze/index.html | 4 ++-- come-partecipare/gestire-progetto/index.html | 4 ++-- come-partecipare/index.html | 4 ++-- come-partecipare/inviare-piano-migrazione/index.html | 4 ++-- come-partecipare/raggiungere-obiettivi/index.html | 4 ++-- come-partecipare/ricevi-assistenza/index.html | 4 ++-- conferma/index.html | 4 ++-- index.html | 4 ++-- indirizzo-da-confermare/index.html | 4 ++-- informativa-privacy/index.html | 6 +++--- iniziativa/index.html | 4 ++-- iniziativa/presentazione-progetti/index.html | 4 ++-- iniziativa/soluzioni-standard/index.html | 4 ++-- misure/index.html | 6 +++--- note-legali/index.html | 6 +++--- opendata/index.html | 6 +++--- page-data/app-data.json | 2 +- page-data/sq/d/2983703960.json | 2 +- ricevi-aggiornamenti/index.html | 4 ++-- richiesta-errore/index.html | 4 ++-- richiesta-inviata/index.html | 4 ++-- supporto/assistenza/index.html | 4 ++-- supporto/domande-frequenti/index.html | 4 ++-- supporto/faq/index.html | 4 ++-- supporto/index.html | 4 ++-- supporto/materiali-e-risorse/index.html | 4 ++-- team-territoriali/index.html | 6 +++--- webpack.stats.json | 2 +- 38 files changed, 75 insertions(+), 75 deletions(-) rename app-4879c6d2344bdd1e4a91.js => app-723ca737657560b19155.js (99%) rename app-4879c6d2344bdd1e4a91.js.LICENSE.txt => app-723ca737657560b19155.js.LICENSE.txt (100%) rename app-4879c6d2344bdd1e4a91.js.map => app-723ca737657560b19155.js.map (99%) diff --git a/404.html b/404.html index 4298cccd6..1bacbc267 100644 --- a/404.html +++ b/404.html @@ -894,7 +894,7 @@ } .statusCode-0-2-26 { font-size: 7em; - }Pagina non trovata - PA digitale 2026
\ No newline at end of file + \ No newline at end of file diff --git a/404/index.html b/404/index.html index 97562bbaf..2343ab8ad 100644 --- a/404/index.html +++ b/404/index.html @@ -894,7 +894,7 @@ } .statusCode-0-2-26 { font-size: 7em; - }Pagina non trovata - PA digitale 2026
\ No newline at end of file + \ No newline at end of file diff --git a/annulla-iscrizione/index.html b/annulla-iscrizione/index.html index 4c1d239aa..7c0309f7d 100644 --- a/annulla-iscrizione/index.html +++ b/annulla-iscrizione/index.html @@ -909,7 +909,7 @@ } .button-0-2-28 { min-width: 11.111rem; - }Annulla iscrizione Email - PA digitale 2026
\ No newline at end of file + \ No newline at end of file diff --git a/app-4879c6d2344bdd1e4a91.js b/app-723ca737657560b19155.js similarity index 99% rename from app-4879c6d2344bdd1e4a91.js rename to app-723ca737657560b19155.js index 087403ef7..06c57c81c 100644 --- a/app-4879c6d2344bdd1e4a91.js +++ b/app-723ca737657560b19155.js @@ -1,3 +1,3 @@ -/*! For license information please see app-4879c6d2344bdd1e4a91.js.LICENSE.txt */ -(self.webpackChunkpadigitale2026=self.webpackChunkpadigitale2026||[]).push([[143],{2393:function(e,t){"use strict";var n=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},l=u.state,c=u.replace,d=void 0!==c&&c;if("number"==typeof t)e.history.go(t);else{l=n({},l,{key:Date.now()+""});try{a||d?e.history.replaceState(l,null,t):e.history.pushState(l,null,t)}catch(f){e.location[d?"replace":"assign"](t)}}o=r(e),a=!0;var p=new Promise((function(e){return s=e}));return i.forEach((function(e){return e({location:o,action:"PUSH"})})),p}}},o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=e.indexOf("?"),n={pathname:t>-1?e.substr(0,t):e,search:t>-1?e.substr(t):""},r=0,i=[n],o=[null];return{get location(){return i[r]},addEventListener:function(e,t){},removeEventListener:function(e,t){},history:{get entries(){return i},get index(){return r},get state(){return o[r]},pushState:function(e,t,n){var a=n.split("?"),s=a[0],u=a[1],l=void 0===u?"":u;r++,i.push({pathname:s,search:l.length?"?"+l:l}),o.push(e)},replaceState:function(e,t,n){var a=n.split("?"),s=a[0],u=a[1],l=void 0===u?"":u;i[r]={pathname:s,search:l},o[r]=e},go:function(e){var t=r+e;t<0||t>o.length-1||(r=t)}}}},a=!("undefined"==typeof window||!window.document||!window.document.createElement),s=i(a?window:o()),u=s.navigate;t.V5=s},2098:function(e,t,n){"use strict";t.__esModule=!0,t.shallowCompare=t.validateRedirect=t.insertParams=t.resolve=t.match=t.pick=t.startsWith=void 0;var r,i=n(1143),o=(r=i)&&r.__esModule?r:{default:r};var a=function(e,t){return e.substr(0,t.length)===t},s=function(e,t){for(var n=void 0,r=void 0,i=t.split("?")[0],a=f(i),s=""===a[0],l=p(e),d=0,h=l.length;dt.score?-1:e.index-t.index}))},f=function(e){return e.replace(/(^\/+|\/+$)/g,"").split("/")},h=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r0})))&&n.length>0?"?"+n.join("&"):"")},m=["uri","path"];t.startsWith=a,t.pick=s,t.match=function(e,t){return s([{path:e}],t)},t.resolve=function(e,t){if(a(e,"/"))return e;var n=e.split("?"),r=n[0],i=n[1],o=t.split("?")[0],s=f(r),u=f(o);if(""===s[0])return h(o,i);if(!a(s[0],".")){var l=u.concat(s).join("/");return h(("/"===o?"":"/")+l,i)}for(var c=u.concat(s),d=[],p=0,m=c.length;p=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 o,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=65&&r.charCodeAt(2)<=90?e[r]=N(i,o):"className"!==r&&"UNSAFE_className"!==r||"string"!=typeof i||"string"!=typeof o?"id"===r&&i&&o?e.id=R(i,o):e[r]=void 0!==o?o:i:e[r]=O(i,o)}}return e}(a,u),t)}var U=n(3935),Z=o.createRef(),H=null,W=0;function q(e,t,n){void 0===t&&(t="assertive"),void 0===n&&(n=7e3),$((function(r){return r.announce(e,t,n)}))}function $(e){Z.current?e(Z.current):((H=document.createElement("div")).dataset.liveAnnouncer="true",document.body.prepend(H),U.render(o.createElement(G,{ref:Z}),H,(function(){return e(Z.current)})))}var G=o.forwardRef((function(e,t){var n=(0,o.useState)([]),a=(0,i.Z)(n,2),s=a[0],u=a[1],l=(0,o.useState)([]),c=(0,i.Z)(l,2),d=c[0],p=c[1],f=function(e){e&&"assertive"!==e||u([]),e&&"polite"!==e||p([])},h=function(e,t,n){void 0===t&&(t="assertive"),void 0===n&&(n=7e3);var i=W++;"assertive"===t?u((function(t){return[].concat((0,r.Z)(t),[{id:i,text:e}])})):p((function(t){return[].concat((0,r.Z)(t),[{id:i,text:e}])})),""!==e&&setTimeout((function(){"assertive"===t?u((function(e){return e.filter((function(e){return e.id!==i}))})):p((function(e){return e.filter((function(e){return e.id!==i}))}))}),n)};return(0,o.useImperativeHandle)(t,(function(){return{announce:h,clear:f}})),o.createElement(o.Fragment,null,o.createElement(Q,{"aria-live":"assertive"},s.map((function(e){return o.createElement("div",{key:e.id},e.text)}))),o.createElement(Q,{"aria-live":"polite"},d.map((function(e){return o.createElement("div",{key:e.id},e.text)}))))}));function Q(e){var t=e.children,n=e["aria-live"];return o.createElement(V,{role:"log","aria-live":n,"aria-relevant":"additions"},t)}},4811:function(e){"use strict";var t=function(e,t){if("string"!=typeof e&&!Array.isArray(e))throw new TypeError("Expected the input to be `string | string[]`");t=Object.assign({pascalCase:!1},t);var n;return e=Array.isArray(e)?e.map((function(e){return e.trim()})).filter((function(e){return e.length})).join("-"):e.trim(),0===e.length?"":1===e.length?t.pascalCase?e.toUpperCase():e.toLowerCase():(e!==e.toLowerCase()&&(e=function(e){for(var t=!1,n=!1,r=!1,i=0;i1?n-1:0),i=1;i0&&Array.isArray(r[0])&&(r=r[0]),this.transformers=r.map((function(e){return"function"==typeof e?e():e})),this.tag}return n(e,[{key:"interimTag",value:function(e,t){for(var n=arguments.length,i=Array(n>2?n-2:0),o=2;o0&&void 0!==arguments[0]?arguments[0]:s;return{onSubstitution:function(t,n){if(Array.isArray(t)){var r=t.length,i=e.separator,o=e.conjunction,a=e.serial,s=n.match(/(\n?[^\S\n]+)$/);if(t=s?t.join(i+s[1]):t.join(i+" "),o&&r>1){var u=t.lastIndexOf(i);t=t.slice(0,u)+(a?i:"")+" "+o+t.slice(u+1)}}return t}}};function l(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:"initial";return{onEndResult:function(t){if("initial"===e){var n=t.match(/^[^\S\n]*(?=\S)/gm),r=n&&Math.min.apply(Math,l(n.map((function(e){return e.length}))));if(r){var i=new RegExp("^.{"+r+"}","gm");return t.replace(i,"")}return t}if("all"===e)return t.replace(/^[^\S\n]+/gm,"");throw new Error("Unknown type: "+e)}}},d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return{onEndResult:function(t){if(""===e)return t.trim();if("start"===(e=e.toLowerCase())||"left"===e)return t.replace(/^\s*/,"");if("end"===e||"right"===e)return t.replace(/\s*$/,"");throw new Error("Side not supported: "+e)}}},p=(new a(u({separator:","}),c,d),new a(u({separator:",",conjunction:"and"}),c,d),new a(u({separator:",",conjunction:"or"}),c,d),function(e){return{onSubstitution:function(t,n){if(null==e||"string"!=typeof e)throw new Error("You need to specify a string character to split by.");return"string"==typeof t&&t.includes(e)&&(t=t.split(e)),t}}}),f=function(e){return null!=e&&!Number.isNaN(e)&&"boolean"!=typeof e},h=function(){return{onSubstitution:function(e){return Array.isArray(e)?e.filter(f):f(e)?e:""}}},m=(new a(p("\n"),h,u,c,d),function(e,t){return{onSubstitution:function(n,r){if(null==e||null==t)throw new Error("replaceSubstitutionTransformer requires at least 2 arguments.");return null==n?n:n.toString().replace(e,t)}}}),g=(new a(p("\n"),u,c,d,m(/&/g,"&"),m(//g,">"),m(/"/g,"""),m(/'/g,"'"),m(/`/g,"`")),function(e,t){return{onEndResult:function(n){if(null==e||null==t)throw new Error("replaceResultTransformer requires at least 2 arguments.");return n.replace(e,t)}}});new a(g(/(?:\n(?:\s*))+/g," "),d),new a(g(/(?:\n\s*)/g,""),d),new a(u({separator:","}),g(/(?:\s+)/g," "),d),new a(u({separator:",",conjunction:"or"}),g(/(?:\s+)/g," "),d),new a(u({separator:",",conjunction:"and"}),g(/(?:\s+)/g," "),d),new a(u,c,d),new a(u,g(/(?:\s+)/g," "),d),new a(c,d),new a(c("all"),d)},6494:function(e){"use strict";e.exports=Object.assign},5706:function(e,t,n){"use strict";var r=n(8812),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var l=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var i=f(n);i&&i!==h&&e(t,i,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var s=u(t),m=u(n),g=0;g0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1] "+a.SCRIPT_NOT_AVAILABLE)},onError:function(){s("Error loading google recaptcha script")}}),function(){!function(e){var t=document.querySelector(".grecaptcha-badge");t&&t.parentNode&&document.body.removeChild(t.parentNode);var n=document.querySelector("#"+e);n&&n.remove(),function(){var e=document.querySelector("script[src^='https://www.gstatic.com/recaptcha/releases']");e&&e.remove()}()}(e)}}s(" recaptcha key not provided")}),[c,p,f,h,n]);var y=(0,r.useCallback)((function(e){return i(t,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:if(!v||!v.execute)throw new Error(" Google Recaptcha has not been loaded");return[4,v.execute(n,{action:e})];case 1:return[2,t.sent()]}}))}))}),[v]),D=(0,r.useMemo)((function(){return{executeRecaptcha:v?y:void 0}}),[y,v]);return r.createElement(u.Provider,{value:D},m)}var c=function(){return(0,r.useContext)(u)};function d(e,t){return e(t={exports:{}},t.exports),t.exports}var p="function"==typeof Symbol&&Symbol.for,f=p?Symbol.for("react.element"):60103,h=p?Symbol.for("react.portal"):60106,m=p?Symbol.for("react.fragment"):60107,g=p?Symbol.for("react.strict_mode"):60108,v=p?Symbol.for("react.profiler"):60114,b=p?Symbol.for("react.provider"):60109,y=p?Symbol.for("react.context"):60110,D=p?Symbol.for("react.async_mode"):60111,w=p?Symbol.for("react.concurrent_mode"):60111,E=p?Symbol.for("react.forward_ref"):60112,C=p?Symbol.for("react.suspense"):60113,x=p?Symbol.for("react.suspense_list"):60120,A=p?Symbol.for("react.memo"):60115,S=p?Symbol.for("react.lazy"):60116,k=p?Symbol.for("react.block"):60121,F=p?Symbol.for("react.fundamental"):60117,O=p?Symbol.for("react.responder"):60118,P=p?Symbol.for("react.scope"):60119;function T(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case f:switch(e=e.type){case D:case w:case m:case v:case g:case C:return e;default:switch(e=e&&e.$$typeof){case y:case E:case S:case A:case b:return e;default:return t}}case h:return t}}}function L(e){return T(e)===w}var z={AsyncMode:D,ConcurrentMode:w,ContextConsumer:y,ContextProvider:b,Element:f,ForwardRef:E,Fragment:m,Lazy:S,Memo:A,Portal:h,Profiler:v,StrictMode:g,Suspense:C,isAsyncMode:function(e){return L(e)||T(e)===D},isConcurrentMode:L,isContextConsumer:function(e){return T(e)===y},isContextProvider:function(e){return T(e)===b},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===f},isForwardRef:function(e){return T(e)===E},isFragment:function(e){return T(e)===m},isLazy:function(e){return T(e)===S},isMemo:function(e){return T(e)===A},isPortal:function(e){return T(e)===h},isProfiler:function(e){return T(e)===v},isStrictMode:function(e){return T(e)===g},isSuspense:function(e){return T(e)===C},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===m||e===w||e===v||e===g||e===C||e===x||"object"==typeof e&&null!==e&&(e.$$typeof===S||e.$$typeof===A||e.$$typeof===b||e.$$typeof===y||e.$$typeof===E||e.$$typeof===F||e.$$typeof===O||e.$$typeof===P||e.$$typeof===k)},typeOf:T},R=d((function(e,t){})),N=(R.AsyncMode,R.ConcurrentMode,R.ContextConsumer,R.ContextProvider,R.Element,R.ForwardRef,R.Fragment,R.Lazy,R.Memo,R.Portal,R.Profiler,R.StrictMode,R.Suspense,R.isAsyncMode,R.isConcurrentMode,R.isContextConsumer,R.isContextProvider,R.isElement,R.isForwardRef,R.isFragment,R.isLazy,R.isMemo,R.isPortal,R.isProfiler,R.isStrictMode,R.isSuspense,R.isValidElementType,R.typeOf,d((function(e){e.exports=z}))),M={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},j={};j[N.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},j[N.Memo]=M;Object.defineProperty,Object.getOwnPropertyNames,Object.getOwnPropertySymbols,Object.getOwnPropertyDescriptor,Object.getPrototypeOf,Object.prototype},3797:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(l){return void n(l)}s.done?t(u):Promise.resolve(u).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function s(e){r(a,i,o,s,u,"next",e)}function u(e){r(a,i,o,s,u,"throw",e)}s(void 0)}))}}n.d(t,{Qr:function(){return G},cI:function(){return _e}});var o=n(9907),a=n(5626),s=n(5774),u=n(1245),l=n(3427),c=n(2917),d=n.n(c),p=n(7294);function f(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n3&&void 0!==arguments[3])||arguments[3];function i(i){return function(){if(i in e)return t[i]!==T&&(t[i]=!r||T),n&&(n[i]=!0),e[i]}}var o={};for(var a in e)Object.defineProperty(o,a,{get:i(a)});return o},Z=function(e){return y(e)&&!Object.keys(e).length},H=function(e,t,n){var r=B(e,"name");return Z(r)||Object.keys(r).length>=Object.keys(t).length||Object.keys(r).find((function(e){return t[e]===(!n||T)}))},W=function(e){return Array.isArray(e)?e:[e]};function q(e){var t=e.disabled,n=e.subject,r=e.callback,i=p.useRef(n),o=p.useRef();t?i.current&&(o.current&&o.current.unsubscribe(),i.current=o.current=void 0):(i.current||(i.current=n),!o.current&&i.current&&(o.current=i.current.subscribe({next:r}))),p.useEffect((function(){return function(){o.current&&o.current.unsubscribe()}}),[])}function $(e){var t=V(),n=e.name,r=e.control,i=void 0===r?t.control:r,o=e.shouldUnregister,a=p.useState(x(i._formValues,n,x(i._defaultValues,n,e.defaultValue))),s=(0,u.Z)(a,2),l=s[0],c=s[1],d=function(e){var t=V(),n=e||{},r=n.control,i=void 0===r?t.control:r,o=n.disabled,a=n.name,s=p.useState(i._formState),l=(0,u.Z)(s,2),c=l[0],d=l[1],f=p.useRef({isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),h=p.useRef(a);return h.current=a,q({disabled:o,callback:function(e){return(!h.current||!e.name||W(h.current).includes(e.name))&&H(e,f.current)&&d(Object.assign(Object.assign({},i._formState),e))},subject:i._subjects.state}),U(c,i._proxyFormState,f.current,!1)}({control:i||t.control,name:n}),f=p.useRef(n);f.current=n,q({subject:i._subjects.control,callback:function(e){return(!e.name||f.current===e.name)&&c(x(e.values,n))}});var h=i.register(n,Object.assign(Object.assign({},e.rules),{value:l})),g=p.useCallback((function(e,t){var n=x(i._fields,e);n&&(n._f.mount=t)}),[i]);return p.useEffect((function(){return g(n,!0),function(){var e=i._options.shouldUnregister||o;(w(i._names.array,n)?e&&!i._stateFlags.action:e)?i.unregister(n):g(n,!1)}}),[n,i,o,g]),{field:{onChange:function(e){var t=function(e){return y(e)&&e.target?m(e.target)?e.target.checked:e.target.value:e}(e);c(t),h.onChange({target:{value:t,name:n},type:S})},onBlur:function(){h.onBlur({target:{value:l,name:n},type:A})},name:n,value:l,ref:function(e){var t=x(i._fields,n);e&&t&&e.focus&&(t._f.ref={focus:function(){return e.focus()},setCustomValidity:function(t){return e.setCustomValidity(t)},reportValidity:function(){return e.reportValidity()}})}},formState:d,fieldState:{invalid:!!x(d.errors,n),isDirty:!!x(d.dirtyFields,n),isTouched:!!x(d.touchedFields,n),error:x(d.errors,n)}}}var G=function(e){return e.render($(e))},Q=function(e,t,n,r,i){return t?Object.assign(Object.assign({},n[e]),{types:Object.assign(Object.assign({},n[e]&&n[e].types?n[e].types:{}),(0,s.Z)({},r,i||!0))}):{}},Y=function(e){return/^\w*$/.test(e)},K=function(e){return E(e.replace(/["|']|\]/g,"").split(/\.|\[/))};function J(e,t,n){for(var r=-1,i=Y(t)?[t]:K(t),o=i.length,a=o-1;++r0&&(n=e);++s1){var t=e.filter((function(e){return e&&e.checked&&!e.disabled})).map((function(e){return e.value}));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!C(e[0].attributes.value)?C(e[0].value)||""===e[0].value?ye:{value:e[0].value,isValid:!0}:ye:be}return be},we=function(e,t){var n=t.valueAsNumber,r=t.valueAsDate,i=t.setValueAs;return C(e)?e:n?""===e?NaN:+e:r?new Date(e):i?i(e):e},Ee={isValid:!1,value:null},Ce=function(e){return Array.isArray(e)?e.reduce((function(e,t){return t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e}),Ee):Ee};function xe(e){var t=e.ref;if(!(e.refs?e.refs.every((function(e){return e.disabled})):t.disabled))return ve(t)?t.files:ue(t)?Ce(e.refs).value:se(t)?(0,l.Z)(t.selectedOptions).map((function(e){return e.value})):m(t)?De(e.refs).value:we(C(t.value)?e.ref.value:t.value,e)}var Ae=function(e,t,n,r){var i,o={},a=f(e);try{for(a.s();!(i=a.n()).done;){var s=i.value,u=x(t,s);u&&J(o,s,u._f)}}catch(c){a.e(c)}finally{a.f()}return{criteriaMode:n,names:(0,l.Z)(e),fields:o,shouldUseNativeValidation:r}},Se=function(e){return e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate)};function ke(e,t){if(te(e)||te(t))return t;for(var n in t){var r=e[n],i=t[n];try{e[n]=y(r)&&y(i)||Array.isArray(r)&&Array.isArray(i)?ke(r,i):i}catch(o){}}return e}function Fe(e,t,n,r,i){for(var o=-1;++o2&&void 0!==arguments[2]?arguments[2]:"validate";if(Le(e)||Array.isArray(e)&&e.every(Le)||ie(e)&&!e)return{type:n,message:Le(e)?e:"",ref:t}}var Ne=function(e){return y(e)&&!ze(e)?e:{value:e,message:""}},Me=function(){var e=i(d().mark((function e(t,n,r,i){var o,a,s,u,l,c,p,f,h,g,b,D,w,E,C,x,A,S,k,F,O,P,T,B,_,V,U,H,W,q,$,G,Y,K,J,X,ee,te,ne,re,ae,se,le,de;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=t._f,a=o.ref,s=o.refs,u=o.required,l=o.maxLength,c=o.minLength,p=o.min,f=o.max,h=o.pattern,g=o.validate,b=o.name,D=o.valueAsNumber,w=o.mount,E=o.disabled,w&&!E){e.next=3;break}return e.abrupt("return",{});case 3:if(C=s?s[0]:a,x=function(e){i&&C.reportValidity&&(C.setCustomValidity(ie(e)?"":e||" "),C.reportValidity())},A={},S=ue(a),k=m(a),F=S||k,O=(D||ve(a))&&!a.value||""===n||Array.isArray(n)&&!n.length,P=Q.bind(null,b,r,A),T=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:R,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:N,o=e?t:n;A[b]=Object.assign({type:e?r:i,message:o,ref:a},P(e?r:i,o))},!u||!(!F&&(O||v(n))||ie(n)&&!n||k&&!De(s).isValid||S&&!Ce(s).isValid)){e.next=19;break}if(B=Le(u)?{value:!!u,message:u}:Ne(u),_=B.value,V=B.message,!_){e.next=19;break}if(A[b]=Object.assign({type:j,message:V,ref:C},P(j,V)),r){e.next=19;break}return x(V),e.abrupt("return",A);case 19:if(O||v(p)&&v(f)){e.next=28;break}if(W=Ne(f),q=Ne(p),isNaN(n)?(G=a.valueAsDate||new Date(n),ce(W.value)&&(U=G>new Date(W.value)),ce(q.value)&&(H=GW.value),v(q.value)||(H=$Y.value,X=!v(K.value)&&n.length0&&void 0!==arguments[0]?arguments[0]:{},n=Object.assign(Object.assign({},je),t),r={isDirty:!1,isValidating:!1,dirtyFields:{},isSubmitted:!1,submitCount:0,touchedFields:{},isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,errors:{}},o={},a=n.defaultValues||{},u=n.shouldUnregister?{}:ee(a),c={action:!1,mount:!1,watch:!1},p={mount:new Set,unMount:new Set,array:new Set,watch:new Set},h=0,b={},y={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},S={watch:new me,control:new me,array:new me,state:new me},k=re(n.mode),F=re(n.reValidateMode),O=n.criteriaMode===T,P=function(e,t){return function(){for(var n=arguments.length,r=new Array(n),i=0;i3&&void 0!==arguments[3]?arguments[3]:[],a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if(c.action=!0,s&&x(o,e)){var u=t(x(o,e),n.argA,n.argB);a&&J(o,e,u)}if(Array.isArray(x(r.errors,e))){var l=t(x(r.errors,e),n.argA,n.argB);a&&J(r.errors,e,l),Te(r.errors,e)}if(y.touchedFields&&x(r.touchedFields,e)){var d=t(x(r.touchedFields,e),n.argA,n.argB);a&&J(r.touchedFields,e,d),Te(r.touchedFields,e)}(y.dirtyFields||y.isDirty)&&I(e,i),S.state.next({isDirty:$(e,i),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})},N=function(e,t){return J(r.errors,e,t),S.state.next({errors:r.errors})},M=function(e,t,n){var r=x(o,e);if(r){var i=x(u,e,x(a,e));C(i)||n&&n.defaultChecked||t?J(u,e,t?i:xe(r._f)):Y(e,i)}c.mount&&z()},j=function(e,t,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=!1,s={name:e},u=x(r.touchedFields,e);if(y.isDirty){var l=r.isDirty;r.isDirty=s.isDirty=$(),o=l!==s.isDirty}if(y.dirtyFields&&!n){var c=x(r.dirtyFields,e),d=ne(x(a,e),t);d?ge(r.dirtyFields,e):J(r.dirtyFields,e,!0),s.dirtyFields=r.dirtyFields,o=o||c!==x(r.dirtyFields,e)}return n&&!u&&(J(r.touchedFields,e,n),s.touchedFields=r.touchedFields,o=o||y.touchedFields&&u!==n),o&&i&&S.state.next(s),o?s:{}},I=function(e,t){return J(r.dirtyFields,e,Oe(t,x(a,e,[]),x(r.dirtyFields,e,[]))),Te(r.dirtyFields,e)},_=function(){var n=i(d().mark((function n(i,o,a,s,u){var l,c,p;return d().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:l=x(r.errors,o),c=y.isValid&&r.isValid!==a,t.delayError&&s?(e=e||P(N,t.delayError))(o,s):(clearTimeout(h),s?J(r.errors,o,s):ge(r.errors,o)),(s?ne(l,s):!l)&&Z(u)&&!c||i||(p=Object.assign(Object.assign(Object.assign({},u),c?{isValid:a}:{}),{errors:r.errors,name:o}),r=Object.assign(Object.assign({},r),p),S.state.next(p)),b[o]--,y.isValidating&&!b[o]&&(S.state.next({isValidating:!1}),b={});case 6:case"end":return n.stop()}}),n)})));return function(e,t,r,i,o){return n.apply(this,arguments)}}(),V=function(){var e=i(d().mark((function e(t){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n.resolver){e.next=6;break}return e.next=3,n.resolver(Object.assign({},u),n.context,Ae(t||p.mount,o,n.criteriaMode,n.shouldUseNativeValidation));case 3:e.t0=e.sent,e.next=7;break;case 6:e.t0={};case 7:return e.abrupt("return",e.t0);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),U=function(){var e=i(d().mark((function e(t){var n,i,o,a,s,u;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,V();case 2:if(n=e.sent,i=n.errors,t){o=f(t);try{for(o.s();!(a=o.n()).done;)s=a.value,(u=x(i,s))?J(r.errors,s,u):ge(r.errors,s)}catch(l){o.e(l)}finally{o.f()}}else r.errors=i;return e.abrupt("return",i);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),H=function(){var e=i(d().mark((function e(t,i){var o,a,s,l,c,p,f=arguments;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=f.length>2&&void 0!==f[2]?f[2]:{valid:!0},e.t0=d().keys(t);case 2:if((e.t1=e.t0()).done){e.next=23;break}if(a=e.t1.value,!(s=t[a])){e.next=21;break}if(l=s._f,c=B(s,"_f"),!l){e.next=17;break}return e.next=11,Me(s,x(u,l.name),O,n.shouldUseNativeValidation);case 11:if(!(p=e.sent)[l.name]){e.next=16;break}if(o.valid=!1,!i){e.next=16;break}return e.abrupt("break",23);case 16:i||(p[l.name]?J(r.errors,l.name,p[l.name]):ge(r.errors,l.name));case 17:if(e.t2=c,!e.t2){e.next=21;break}return e.next=21,H(c,i,o);case 21:e.next=2;break;case 23:return e.abrupt("return",o.valid);case 24:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),q=function(){var e,t=f(p.unMount);try{for(t.s();!(e=t.n()).done;){var n=e.value,r=x(o,n);r&&(r._f.refs?r._f.refs.every(pe):pe(r._f.ref))&&Ee(n)}}catch(i){t.e(i)}finally{t.f()}p.unMount=new Set},$=function(e,t){return e&&t&&J(u,e,t),!ne(ve(),a)},G=function(e,t,n){var r=Object.assign({},c.mount?u:C(t)?a:ce(e)?(0,s.Z)({},e,t):t);if(e){var i=W(e).map((function(e){return n&&p.watch.add(e),x(r,e)}));return Array.isArray(e)?i:i[0]}return n&&(p.watchAll=!0),r},Q=function(e){return x(c.mount?u:a,e,[])},Y=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,i=x(o,e),a=t;if(i){var s=i._f;s&&(J(u,e,we(t,s)),a=de&&ae(s.ref)&&v(t)?"":t,se(s.ref)?(0,l.Z)(s.ref.options).forEach((function(e){return e.selected=a.includes(e.value)})):s.refs?m(s.ref)?s.refs.length>1?s.refs.forEach((function(e){return e.checked=Array.isArray(a)?!!a.find((function(t){return t===e.value})):a===e.value})):s.refs[0].checked=!!a:s.refs.forEach((function(e){return e.checked=e.value===a})):s.ref.value=a,r&&S.control.next({values:u,name:e}))}(n.shouldDirty||n.shouldTouch)&&j(e,a,n.shouldTouch),n.shouldValidate&&he(e)},K=function e(t,n,r){for(var i in n){var a=n[i],s="".concat(t,".").concat(i),u=x(o,s);!p.array.has(t)&&te(a)&&(!u||u._f)||g(a)?Y(s,a,r,!0):e(s,a,r)}},ue=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=x(o,e),a=p.array.has(e);J(u,e,t),a?(S.array.next({name:e,values:u}),(y.isDirty||y.dirtyFields)&&n.shouldDirty&&(I(e,t),S.state.next({name:e,dirtyFields:r.dirtyFields,isDirty:$(e,t)}))):!i||i._f||v(t)?Y(e,t,n,!0):K(e,t,n),L(e)&&S.state.next({}),S.watch.next({name:e})},fe=function(){var e=i(d().mark((function e(t){var i,a,s,l,c,p,f,h,g,v,w,E,C,P,T,R;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=t.target,a=i.name,!(s=x(o,a))){e.next=37;break}if(p=i.type?xe(s._f):i.value,f=t.type===A,h=!Se(s._f)&&!n.resolver&&!x(r.errors,a)&&!s._f.deps||Pe(f,x(r.touchedFields,a),r.isSubmitted,F,k),g=L(a,f),f&&s._f.onBlur?s._f.onBlur(t):s._f.onChange&&s._f.onChange(t),J(u,a,p),v=j(a,p,f,!1),w=!Z(v)||g,!f&&S.watch.next({name:a,type:t.type}),!h){e.next=15;break}return e.abrupt("return",w&&S.state.next(Object.assign({name:a},g?{}:v)));case 15:if(!f&&g&&S.state.next({}),b[a]=(b[a],1),y.isValidating&&S.state.next({isValidating:!0}),!n.resolver){e.next=28;break}return e.next=21,V([a]);case 21:E=e.sent,C=E.errors,l=x(C,a),m(i)&&!l&&(P=D(a),T=x(o,P),Array.isArray(T)&&T.every((function(e){return e._f&&m(e._f.ref)}))&&((R=x(C,P,{})).type&&(l=R),a=P)),c=Z(C),e.next=35;break;case 28:return e.next=30,Me(s,x(u,a),O,n.shouldUseNativeValidation);case 30:return e.t0=a,l=e.sent[e.t0],e.next=34,z(!0);case 34:c=e.sent;case 35:s._f.deps&&he(s._f.deps),_(!1,a,c,l,v);case 37:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),he=function(){var e=i(d().mark((function e(t){var a,u,l,c,f,h=arguments;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=h.length>1&&void 0!==h[1]?h[1]:{},c=W(t),S.state.next({isValidating:!0}),!n.resolver){e.next=11;break}return e.next=6,U(C(t)?t:c);case 6:f=e.sent,u=Z(f),l=t?!c.some((function(e){return x(f,e)})):u,e.next=21;break;case 11:if(!t){e.next=18;break}return e.next=14,Promise.all(c.map(function(){var e=i(d().mark((function e(t){var n;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=x(o,t),e.next=3,H(n&&n._f?(0,s.Z)({},t,n):n);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 14:l=e.sent.every(Boolean),z(),e.next=21;break;case 18:return e.next=20,H(o);case 20:l=u=e.sent;case 21:return S.state.next(Object.assign(Object.assign({},ce(t)&&u===r.isValid?{name:t}:{}),{errors:r.errors,isValid:u,isValidating:!1})),a.shouldFocus&&!l&&X(o,(function(e){return x(r.errors,e)}),t?c:p.mount),e.abrupt("return",l);case 24:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ve=function(e){var t=Object.assign(Object.assign({},a),c.mount?u:{});return C(e)?t:ce(e)?x(t,e):e.map((function(e){return x(t,e)}))},be=function(e){e?W(e).forEach((function(e){return ge(r.errors,e)})):r.errors={},S.state.next({errors:r.errors})},ye=function(e,t,n){var i=(x(o,e,{_f:{}})._f||{}).ref;J(r.errors,e,Object.assign(Object.assign({},t),{ref:i})),S.state.next({name:e,errors:r.errors,isValid:!1}),n&&n.shouldFocus&&i&&i.focus&&i.focus()},De=function(e,t){return oe(e)?S.watch.subscribe({next:function(n){return e(G(void 0,t),n)}}):G(e,t,!0)},Ee=function(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=f(e?W(e):p.mount);try{for(s.s();!(t=s.n()).done;){var l=t.value;p.mount.delete(l),p.array.delete(l),x(o,l)&&(i.keepValue||(ge(o,l),ge(u,l)),!i.keepError&&ge(r.errors,l),!i.keepDirty&&ge(r.dirtyFields,l),!i.keepTouched&&ge(r.touchedFields,l),!n.shouldUnregister&&!i.keepDefaultValue&&ge(a,l))}}catch(c){s.e(c)}finally{s.f()}S.watch.next({}),S.state.next(Object.assign(Object.assign({},r),i.keepDirty?{isDirty:$()}:{})),!i.keepIsValid&&z()},Ce=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=x(o,t);return J(o,t,{_f:Object.assign(Object.assign(Object.assign({},i&&i._f?i._f:{ref:{name:t}}),{name:t,mount:!0}),r)}),p.mount.add(t),!C(r.value)&&J(u,t,r.value),i?ie(r.disabled)&&J(u,t,r.disabled?void 0:x(u,t,xe(i._f))):M(t,!0),Ie?{name:t}:Object.assign(Object.assign({name:t},ie(r.disabled)?{disabled:r.disabled}:{}),{onChange:fe,onBlur:fe,ref:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(i){if(i){e(t,r);var a=x(o,t),s=C(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,u=le(s);if(s===a._f.ref||u&&E(a._f.refs||[]).find((function(e){return e===s})))return;a={_f:u?Object.assign(Object.assign({},a._f),{refs:[].concat((0,l.Z)(E(a._f.refs||[]).filter((function(e){return ae(e)&&document.contains(e)}))),[s]),ref:{type:s.type,name:t}}):Object.assign(Object.assign({},a._f),{ref:s})},J(o,t,a),(!r||!r.disabled)&&M(t,!1,s)}else{var d=x(o,t,{}),f=n.shouldUnregister||r.shouldUnregister;d._f&&(d._f.mount=!1),f&&(!w(p.array,t)||!c.action)&&p.unMount.add(t)}}))})},ke=function(e,t){return function(){var a=i(d().mark((function i(a){var s,l,c,f,h;return d().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(a&&(a.preventDefault&&a.preventDefault(),a.persist&&a.persist()),s=!0,l=Object.assign({},u),S.state.next({isSubmitting:!0}),i.prev=4,!n.resolver){i.next=15;break}return i.next=8,V();case 8:c=i.sent,f=c.errors,h=c.values,r.errors=f,l=h,i.next=17;break;case 15:return i.next=17,H(o);case 17:if(!Z(r.errors)||!Object.keys(r.errors).every((function(e){return x(l,e)}))){i.next=23;break}return S.state.next({errors:{},isSubmitting:!0}),i.next=21,e(l,a);case 21:i.next=28;break;case 23:if(i.t0=t,!i.t0){i.next=27;break}return i.next=27,t(r.errors,a);case 27:n.shouldFocusError&&X(o,(function(e){return x(r.errors,e)}),p.mount);case 28:i.next=34;break;case 30:throw i.prev=30,i.t1=i.catch(4),s=!1,i.t1;case 34:return i.prev=34,r.isSubmitted=!0,S.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Z(r.errors)&&s,submitCount:r.submitCount+1,errors:r.errors}),i.finish(34);case 38:case"end":return i.stop()}}),i,null,[[4,30,34,38]])})));return function(e){return a.apply(this,arguments)}}()},Fe=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e||a,s=ee(i);if(!n.keepValues&&(u=t.shouldUnregister?{}:s,de)){var l,d=f(p.mount);try{for(d.s();!(l=d.n()).done;){var h=l.value,m=x(o,h);if(m&&m._f){var g=Array.isArray(m._f.refs)?m._f.refs[0]:m._f.ref;try{ae(g)&&g.closest("form").reset();break}catch(v){}}}}catch(b){d.e(b)}finally{d.f()}}n.keepDefaultValues||(a=Object.assign({},i)),n.keepValues||(o={},S.control.next({values:n.keepDefaultValues?a:Object.assign({},i)}),S.watch.next({}),S.array.next({values:s})),p={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},S.state.next({submitCount:n.keepSubmitCount?r.submitCount:0,isDirty:n.keepDirty?r.isDirty:!!n.keepDefaultValues&&ne(e,a),isSubmitted:!!n.keepIsSubmitted&&r.isSubmitted,dirtyFields:n.keepDirty?r.dirtyFields:{},touchedFields:n.keepTouched?r.touchedFields:{},errors:n.keepErrors?r.errors:{},isSubmitting:!1,isSubmitSuccessful:!1}),c.mount=!y.isValid||!!n.keepIsValid,c.watch=!!t.shouldUnregister},Le=function(e){return x(o,e)._f.ref.focus()};return{control:{register:Ce,unregister:Ee,_getWatch:G,_getDirty:$,_updateValid:z,_removeUnmounted:q,_updateFieldArray:R,_getFieldArray:Q,_subjects:S,_proxyFormState:y,get _fields(){return o},set _fields(e){o=e},get _formValues(){return u},set _formValues(e){u=e},get _stateFlags(){return c},set _stateFlags(e){c=e},get _defaultValues(){return a},set _defaultValues(e){a=e},get _names(){return p},set _names(e){p=e},get _formState(){return r},set _formState(e){r=e},get _options(){return n},set _options(e){n=Object.assign(Object.assign({},n),e)}},trigger:he,register:Ce,handleSubmit:ke,watch:De,setValue:ue,getValues:ve,reset:Fe,clearErrors:be,unregister:Ee,setError:ye,setFocus:Le}}function _e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=p.useRef(),n=p.useState({isDirty:!1,isValidating:!1,dirtyFields:{},isSubmitted:!1,submitCount:0,touchedFields:{},isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,errors:{}}),r=(0,u.Z)(n,2),i=r[0],o=r[1];t.current?t.current.control._options=e:t.current=Object.assign(Object.assign({},Be(e)),{formState:i});var a=t.current.control;return q({subject:a._subjects.state,callback:function(e){H(e,a._proxyFormState,!0)&&(a._formState=Object.assign(Object.assign({},a._formState),e),o(Object.assign({},a._formState)))}}),p.useEffect((function(){a._stateFlags.mount||(a._proxyFormState.isValid&&a._updateValid(),a._stateFlags.mount=!0),a._stateFlags.watch&&(a._stateFlags.watch=!1,a._subjects.state.next({})),a._removeUnmounted()})),t.current.formState=U(i,a._proxyFormState),t.current}},165:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,D=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case o:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case l:case p:case g:case m:case u:return e;default:return t}}case i:return t}}}function E(e){return w(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=u,t.Element=r,t.ForwardRef=p,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return E(e)||w(e)===c},t.isConcurrentMode=E,t.isContextConsumer=function(e){return w(e)===l},t.isContextProvider=function(e){return w(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===a||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===u||e.$$typeof===l||e.$$typeof===p||e.$$typeof===b||e.$$typeof===y||e.$$typeof===D||e.$$typeof===v)},t.typeOf=w},8812:function(e,t,n){"use strict";e.exports=n(165)},9063:function(e,t,n){"use strict";n.d(t,{f6:function(){return v},QM:function(){return Qn}});var r=n(4038),i=n(1531),o=n(7294),a=n(5706),s=n.n(a);n(2352);function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(){return l=Object.assign||function(e){for(var t=1;t<+~=|^:(),"'`\s])/g,z="undefined"!=typeof CSS&&CSS.escape,R=function(e){return z?z(e):e.replace(L,"\\$1")},N=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,i=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var i=t;n&&!1===n.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==i||!1===i,a=e in this.style;if(o&&!a&&!r)return this;var s=o&&a;if(s?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var u=this.options.sheet;return u&&u.attached,this},e}(),M=function(e){function t(t,n,r){var i;i=e.call(this,t,n,r)||this;var o=r.selector,a=r.scoped,s=r.sheet,u=r.generateId;return o?i.selectorText=o:!1!==a&&(i.id=u((0,C.Z)((0,C.Z)(i)),s),i.selectorText="."+R(i.id)),i}(0,E.Z)(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=F(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?(0,r.Z)({},e,{allowEmpty:!0}):e;return T(this.selectorText,this.style,n)},(0,w.Z)(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(N),j={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new M(e,t,n)}},I={indent:1,children:!0},B=/@([\w-]+)/,_=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var i=e.match(B);for(var o in this.at=i?i[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new ce((0,r.Z)({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.toString=function(e){void 0===e&&(e=I);var t=O(e).linebreak;if(null==e.indent&&(e.indent=I.indent),null==e.children&&(e.children=I.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),V=/@media|@supports\s+/,U={onCreateRule:function(e,t,n){return V.test(e)?new _(e,t,n):null}},Z={indent:1,children:!0},H=/@keyframes\s+([\w-]+)/,W=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var i=e.match(H);i&&i[1]?this.name=i[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,a=n.sheet,s=n.generateId;for(var u in this.id=!1===o?this.name:R(s(this,a)),this.rules=new ce((0,r.Z)({},n,{parent:this})),t)this.rules.add(u,t[u],(0,r.Z)({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=Z);var t=O(e).linebreak;if(null==e.indent&&(e.indent=Z.indent),null==e.children&&(e.children=Z.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),q=/@keyframes\s+/,$=/\$([\w-]+)/g,G=function(e,t){return"string"==typeof e?e.replace($,(function(e,n){return n in t?t[n]:e})):e},Q=function(e,t,n){var r=e[t],i=G(r,n);i!==r&&(e[t]=i)},Y={onCreateRule:function(e,t,n){return"string"==typeof e&&q.test(e)?new W(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&Q(e,"animation-name",n.keyframes),"animation"in e&&Q(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return G(e,r.keyframes);default:return e}}},K=function(e){function t(){return e.apply(this,arguments)||this}return(0,E.Z)(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?(0,r.Z)({},e,{allowEmpty:!0}):e;return T(this.key,this.style,n)},t}(N),J={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new K(e,t,n):null}},X=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=O(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r=this.index)t.push(e);else for(var r=0;rn)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=(0,i.Z)(t,["attached"]),o=O(r).linebreak,a="",s=0;s0){var n=function(e,t){for(var n=0;nt.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var i=function(e){for(var t=xe(),n=0;nn?n:t},Oe=function(){function e(e){this.getPropertyValue=De,this.setProperty=we,this.removeProperty=Ee,this.setSelector=Ce,this.hasInsertedRules=!1,this.cssRules=[],e&&he.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,i=t.element;this.element=i||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var o=Se();o&&this.element.setAttribute("nonce",o)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=Ae(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var i=n,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling)}else xe().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n0&&(t.refs--,0===t.refs&&t.sheet.detach()):D(!1,"SheetsManager: can't find sheet to unmanage")},(0,w.Z)(e,[{key:"size",get:function(){return this.length}}]),e}(),Re="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Ne(e){var t=null;for(var n in e){var r=e[n],i=typeof r;if("function"===i)t||(t={}),t[n]=r;else if("object"===i&&null!==r&&!Array.isArray(r)){var o=Ne(r);o&&(t||(t={}),t[n]=o)}}return t}Le();var Me=Date.now(),je="fnValues"+Me,Ie="fnStyle"+ ++Me,Be=function(){return{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=S(e,{},n);return r[Ie]=t,r},onProcessStyle:function(e,t){if(je in t||Ie in t)return e;var n={};for(var r in e){var i=e[r];"function"==typeof i&&(delete e[r],n[r]=i)}return t[je]=n,e},onUpdate:function(e,t,n,r){var i=t,o=i[Ie];o&&(i.style=o(e)||{});var a=i[je];if(a)for(var s in a)i.prop(s,a[s](e),r)}}},_e=n(8389),Ve=function(e){return e&&e[_e.Z]&&e===e[_e.Z]()},Ue=function(e){return{onCreateRule:function(t,n,r){if(!Ve(n))return null;var i=n,o=S(t,{},r);return i.subscribe((function(t){for(var n in t)o.prop(n,t[n],e)})),o},onProcessRule:function(t){if(!t||"style"===t.type){var n=t,r=n.style,i=function(t){var i=r[t];if(!Ve(i))return"continue";delete r[t],i.subscribe({next:function(r){n.prop(t,r,e)}})};for(var o in r)i(o)}}}},Ze=/;\n/,He=function(e){"string"==typeof e.style&&(e.style=function(e){for(var t={},n=e.split(Ze),r=0;r-1)return st(e,t.split(" "));var r=e.options.parent;if("$"===t[0]){var i=r.getRule(t.substr(1));return!!i&&(i!==e&&(r.classes[e.key]+=" "+r.classes[i.key],!0))}return r.classes[e.key]+=" "+t,!0}var ut=function(){return{onProcessStyle:function(e,t){return"composes"in e?(st(t,e.composes),delete e.composes,e):e}}},lt=/[A-Z]/g,ct=/^ms-/,dt={};function pt(e){return"-"+e.toLowerCase()}var ft=function(e){if(dt.hasOwnProperty(e))return dt[e];var t=e.replace(lt,pt);return dt[e]=ct.test(t)?"-"+t:t};function ht(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:ft(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(ht):t.fallbacks=ht(e.fallbacks)),t}var mt=function(){return{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t-1){var i=fn[e];if(!Array.isArray(i))return _t+Yt(i)in t&&Vt+i;if(!r)return!1;for(var o=0;ot?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},i=Object.keys(t).sort(e),o=0;o1e4)&&(t=e.createStyleSheet().attach()),t};function o(){var e=arguments,t=JSON.stringify(e),o=n.get(t);if(o)return o.className;var a=[];for(var s in e){var u=e[s];if(Array.isArray(u))for(var l=0;l1&&void 0!==arguments[1]?arguments[1]:100;return function(){var i=+new Date;!!t&&i0?d(w,--y):0,v--,10===D&&(v=1,g--),D}function A(){return D=y2||O(D)>3?"":" "}function R(e,t){for(;--t&&A()&&!(D<48||D>102||D>57&&D<65||D>70&&D<97););return F(e,k()+(t<6&&32==S()&&32==A()))}function N(e){for(;A();)switch(D){case e:return y;case 34:case 39:return N(34===e||39===e?e:D);case 40:41===e&&N(e);break;case 92:A()}return y}function M(e,t){for(;A()&&e+D!==57&&(e+D!==84||47!==S()););return"/*"+F(t,y-1)+"*"+s(47===e?e:A())}function j(e){for(;!O(S());)A();return F(e,y)}var I="-ms-",B="-moz-",_="-webkit-",V="comm",U="rule",Z="decl";function H(e,t){for(var n="",r=h(e),i=0;i6)switch(d(e,t+1)){case 109:if(45!==d(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+B+(108==d(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?q(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==d(e,t+1))break;case 6444:switch(d(e,f(e)-3-(~c(e,"!important")&&10))){case 107:return l(e,":",":"+_)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+_+(45===d(e,14)?"inline-":"")+"box$3$1"+_+"$2$3$1"+I+"$2box$3")+e}break;case 5936:switch(d(e,t+11)){case 114:return _+e+I+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return _+e+I+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return _+e+I+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return _+e+I+e+e}return e}function $(e){var t=h(e);return function(n,r,i,o){for(var a="",s=0;s0&&f(T)-h&&m(v>32?ee(T+";",r,n,h-1):ee(l(T," ","")+";",r,n,h-2),c);break;case 59:T+=";";default:if(m(P=J(T,t,n,d,p,i,u,C,F=[],O=[],h),o),123===E)if(0===p)K(T,t,P,P,F,o,h,u,O);else switch(g){case 100:case 109:case 115:K(e,P,P,r&&m(J(e,P,P,0,0,i,u,C,i,F=[],h),O),i,O,h,u,r?F:O);break;default:K(T,P,P,P,[""],O,h,u,O)}}d=p=v=0,y=w=1,C=T="",h=a;break;case 58:h=1+f(T),v=b;default:if(y<1)if(123==E)--y;else if(125==E&&0==y++&&125==x())continue;switch(T+=s(E),E*y){case 38:w=p>0?1:(T+="\f",-1);break;case 44:u[d++]=(f(T)-1)*w,w=1;break;case 64:45===S()&&(T+=L(A())),g=S(),p=f(C=T+=j(k())),E++;break;case 45:45===b&&2==f(T)&&(y=0)}}return o}function J(e,t,n,r,i,o,s,c,d,f,m){for(var g=i-1,v=0===i?o:[""],b=h(v),y=0,D=0,w=0;y0?v[C]+" "+x:l(x,/&\f/g,v[C])))&&(d[w++]=A);return E(e,t,n,0===i?U:c,d,f,m)}function X(e,t,n){return E(e,t,n,V,s(D),p(e,2,-2),0)}function ee(e,t,n,r){return E(e,t,n,Z,p(e,0,r),p(e,r+1,-1),r)}var te=function(e,t,n){for(var r=0,i=0;r=i,i=S(),38===r&&12===i&&(t[n]=1),!O(i);)A();return F(e,y)},ne=function(e,t){return T(function(e,t){var n=-1,r=44;do{switch(O(r)){case 0:38===r&&12===S()&&(t[n]=1),e[n]+=te(y-1,t,n);break;case 2:e[n]+=L(r);break;case 4:if(44===r){e[++n]=58===S()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=s(r)}}while(r=A());return e}(P(e),t))},re=new WeakMap,ie=function(e){if("rule"===e.type&&e.parent&&e.length){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||re.get(n))&&!r){re.set(e,!0);for(var i=[],o=ne(t,i),a=n.props,s=0,u=0;s=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},de={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var pe=/[A-Z]|^ms/g,fe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,he=function(e){return 45===e.charCodeAt(1)},me=function(e){return null!=e&&"boolean"!=typeof e},ge=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return he(e)?e:e.replace(pe,"-$&").toLowerCase()})),ve=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(fe,(function(e,t,n){return ye={name:t,styles:n,next:ye},t}))}return 1===de[e]||he(e)||"number"!=typeof t||0===t?t:t+"px"};function be(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return ye={name:n.name,styles:n.styles,next:ye},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)ye={name:r.name,styles:r.styles,next:ye},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function je(e){return je="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},je(e)}function Ie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Be=n(6838),_e=n(6024);function Ve(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&(0,_e.Z)(e,t)}var Ue=n(6552),Ze=n(3935);function He(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function We(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 qe(e){for(var t=1;t-1}function rt(e){return nt(e)?window.pageYOffset:e.scrollTop}function it(e,t){nt(e)?window.scrollTo(0,t):e.scrollTop=t}function ot(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function at(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ke,i=rt(e),o=t-i,a=10,s=0;function u(){var t=ot(s+=a,i,o,n);it(e,t),s=f)return{placement:"bottom",maxHeight:t};if(C>=f&&!a)return o&&at(u,x,S),{placement:"bottom",maxHeight:t};if(!a&&C>=r||a&&w>=r)return o&&at(u,x,S),{placement:"bottom",maxHeight:a?w-b:C-b};if("auto"===i||a){var k=t,F=a?D:E;return F>=r&&(k=Math.min(F-b-s.controlHeight,t)),{placement:"top",maxHeight:k}}if("bottom"===i)return o&&it(u,x),{placement:"bottom",maxHeight:t};break;case"top":if(D>=f)return{placement:"top",maxHeight:t};if(E>=f&&!a)return o&&at(u,A,S),{placement:"top",maxHeight:t};if(!a&&E>=r||a&&D>=r){var O=t;return(!a&&E>=r||a&&D>=r)&&(O=a?D-y:E-y),o&&at(u,A,S),{placement:"top",maxHeight:O}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return l}var mt=function(e){return"auto"===e?"bottom":e},gt=(0,i.createContext)({getPortalPlacement:null}),vt=function(e){Ve(n,e);var t=Qe(n);function n(){var e;Ie(this,n);for(var r=arguments.length,i=new Array(r),o=0;o1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return"option ".concat(r,o?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,i=e.label,o=void 0===i?"":i,a=e.selectValue,s=e.isDisabled,u=e.isSelected,l=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(o," focused, ").concat(l(a,n),".");if("menu"===t){var c=s?" disabled":"",d="".concat(u?"selected":"focused").concat(c);return"option ".concat(o," ").concat(d,", ").concat(l(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},Yt=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,a=e.isFocused,s=e.selectValue,u=e.selectProps,l=e.id,c=u.ariaLiveMessages,d=u.getOptionLabel,p=u.inputValue,f=u.isMulti,h=u.isOptionDisabled,m=u.isSearchable,g=u.menuIsOpen,v=u.options,b=u.screenReaderStatus,y=u.tabSelectsValue,D=u["aria-label"],w=u["aria-live"],E=(0,i.useMemo)((function(){return qe(qe({},Qt),c||{})}),[c]),C=(0,i.useMemo)((function(){var e,n="";if(t&&E.onChange){var r=t.option,i=t.options,o=t.removedValue,a=t.removedValues,u=t.value,l=o||r||(e=u,Array.isArray(e)?null:e),c=l?d(l):"",p=i||a||void 0,f=p?p.map(d):[],m=qe({isDisabled:l&&h(l,s),label:c,labels:f},t);n=E.onChange(m)}return n}),[t,E,h,s,d]),x=(0,i.useMemo)((function(){var e="",t=n||r,i=!!(n&&s&&s.includes(n));if(t&&E.onFocus){var o={focused:t,label:d(t),isDisabled:h(t,s),isSelected:i,options:v,context:t===n?"menu":"value",selectValue:s};e=E.onFocus(o)}return e}),[n,r,d,h,E,v,s]),A=(0,i.useMemo)((function(){var e="";if(g&&v.length&&E.onFilter){var t=b({count:o.length});e=E.onFilter({inputValue:p,resultsMessage:t})}return e}),[o,p,g,E,v,b]),S=(0,i.useMemo)((function(){var e="";if(E.guidance){var t=r?"value":g?"menu":"input";e=E.guidance({"aria-label":D,context:t,isDisabled:n&&h(n,s),isMulti:f,isSearchable:m,tabSelectsValue:y})}return e}),[D,n,r,f,h,m,g,E,s,y]),k="".concat(x," ").concat(A," ").concat(S),F=Pe(i.Fragment,null,Pe("span",{id:"aria-selection"},C),Pe("span",{id:"aria-context"},k)),O="initial-input-focus"===(null==t?void 0:t.action);return Pe(i.Fragment,null,Pe(Gt,{id:l},O&&F),Pe(Gt,{"aria-live":w,"aria-atomic":"false","aria-relevant":"additions text"},a&&!O&&F))},Kt=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Jt=new RegExp("["+Kt.map((function(e){return e.letters})).join("")+"]","g"),Xt={},en=0;en0,m=d-p-l,g=!1;m>t&&s.current&&(r&&r(e),s.current=!1),h&&u.current&&(a&&a(e),u.current=!1),h&&t>m?(n&&!s.current&&n(e),f.scrollTop=d,g=!0,s.current=!0):!h&&-t>l&&(o&&!u.current&&o(e),f.scrollTop=0,g=!0,u.current=!0),g&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[n,r,o,a]),p=(0,i.useCallback)((function(e){d(e,e.deltaY)}),[d]),f=(0,i.useCallback)((function(e){l.current=e.changedTouches[0].clientY}),[]),h=(0,i.useCallback)((function(e){var t=l.current-e.changedTouches[0].clientY;d(e,t)}),[d]),m=(0,i.useCallback)((function(e){if(e){var t=!!dt&&{passive:!1};e.addEventListener("wheel",p,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",h,t)}}),[h,f,p]),g=(0,i.useCallback)((function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",h,!1))}),[h,f,p]);return(0,i.useEffect)((function(){if(t){var e=c.current;return m(e),function(){g(e)}}}),[t,m,g]),function(e){c.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),a=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,i.useRef)({}),a=(0,i.useRef)(null),s=(0,i.useCallback)((function(e){if(gn){var t=document.body,n=t&&t.style;if(r&&cn.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&vn<1){var i=parseInt(o.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+i||0;Object.keys(dn).forEach((function(e){var t=dn[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&mn()&&(t.addEventListener("touchmove",pn,bn),e&&(e.addEventListener("touchstart",hn,bn),e.addEventListener("touchmove",fn,bn))),vn+=1}}),[r]),u=(0,i.useCallback)((function(e){if(gn){var t=document.body,n=t&&t.style;vn=Math.max(vn-1,0),r&&vn<1&&cn.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&mn()&&(t.removeEventListener("touchmove",pn,bn),e&&(e.removeEventListener("touchstart",hn,bn),e.removeEventListener("touchmove",fn,bn)))}}),[r]);return(0,i.useEffect)((function(){if(t){var e=a.current;return s(e),function(){u(e)}}}),[t,s,u]),function(e){a.current=e}}({isEnabled:n});return Pe(i.Fragment,null,n&&Pe("div",{onClick:yn,css:Dn}),t((function(e){o(e),a(e)})))}var En={clearIndicator:Rt,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,i=r.colors,o=r.borderRadius,a=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?i.neutral5:i.neutral0,borderColor:t?i.neutral10:n?i.primary:i.neutral20,borderRadius:o,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(i.primary):void 0,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?i.primary:i.neutral30}}},dropdownIndicator:zt,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,i=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?i.neutral10:i.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.value,r=e.theme,i=r.spacing,o=r.colors;return qe({margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,visibility:t?"hidden":"visible",color:o.neutral80,transform:n?"translateZ(0)":""},Vt)},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,i=r.colors,o=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?i.neutral60:i.neutral20,display:"flex",padding:2*o,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:Dt,menu:function(e){var t,n=e.placement,r=e.theme,i=r.borderRadius,o=r.spacing,a=r.colors;return t={label:"menu"},(0,Ue.Z)(t,function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),(0,Ue.Z)(t,"backgroundColor",a.neutral0),(0,Ue.Z)(t,"borderRadius",i),(0,Ue.Z)(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),(0,Ue.Z)(t,"marginBottom",o.menuGutter),(0,Ue.Z)(t,"marginTop",o.menuGutter),(0,Ue.Z)(t,"position","absolute"),(0,Ue.Z)(t,"width","100%"),(0,Ue.Z)(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,r=t.colors,i=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,i=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused?i.dangerLight:void 0,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}}},noOptionsMessage:yt,option:function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,i=e.theme,o=i.spacing,a=i.colors;return{label:"option",backgroundColor:r?a.primary:n?a.primary25:"transparent",color:t?a.neutral20:r?a.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*o.baseUnit,"px ").concat(3*o.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:t?void 0:r?a.primary:a.primary50}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,gridArea:"1 / 1 / 2 / 3",marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2}},singleValue:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,i=n.colors;return{label:"singleValue",color:t?i.neutral40:i.neutral80,gridArea:"1 / 1 / 2 / 3",marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},valueContainer:function(e){var t=e.theme.spacing,n=e.isMulti,r=e.hasValue,i=e.selectProps.controlShouldRenderValue;return{alignItems:"center",display:n&&r&&i?"flex":"grid",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}};var Cn,xn={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},An={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:st(),captureMenuScroll:!st(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=qe({ignoreCase:!0,ignoreAccents:!0,stringify:sn,trim:!0,matchFrom:"any"},Cn),r=n.ignoreCase,i=n.ignoreAccents,o=n.stringify,a=n.trim,s=n.matchFrom,u=a?an(t):t,l=a?an(o(e)):o(e);return r&&(u=u.toLowerCase(),l=l.toLowerCase()),i&&(u=on(u),l=rn(l)),"start"===s?l.substr(0,u.length)===u:l.indexOf(u)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0};function Sn(e,t,n,r){return{type:"option",data:t,isDisabled:Ln(e,t,n),isSelected:zn(e,t,n),label:Pn(e,t),value:Tn(e,t),index:r}}function kn(e,t){return e.options.map((function(n,r){if("options"in n){var i=n.options.map((function(n,r){return Sn(e,n,t,r)})).filter((function(t){return On(e,t)}));return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=Sn(e,n,t,r);return On(e,o)?o:void 0})).filter(pt)}function Fn(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,(0,Wt.Z)(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function On(e,t){var n=e.inputValue,r=void 0===n?"":n,i=t.data,o=t.isSelected,a=t.label,s=t.value;return(!Nn(e)||!o)&&Rn(e,{label:a,value:s,data:i},r)}var Pn=function(e,t){return e.getOptionLabel(t)},Tn=function(e,t){return e.getOptionValue(t)};function Ln(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function zn(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Tn(e,t);return n.some((function(t){return Tn(e,t)===r}))}function Rn(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Nn=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Mn=1,jn=function(e){Ve(n,e);var t=Qe(n);function n(e){var r;return Ie(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.instancePrefix="",r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,i=n.onChange,o=n.name;t.name=o,r.ariaOnChange(e,t),i(e,t)},r.setValue=function(e,t,n){var i=r.props,o=i.closeMenuOnSelect,a=i.isMulti,s=i.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:s}),o&&(r.setState({inputIsHiddenAfterUpdate:!a}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,i=t.isMulti,o=t.name,a=r.state.selectValue,s=i&&r.isOptionSelected(e,a),u=r.isOptionDisabled(e,a);if(s){var l=r.getOptionValue(e);r.setValue(a.filter((function(e){return r.getOptionValue(e)!==l})),"deselect-option",e)}else{if(u)return void r.ariaOnChange(e,{action:"select-option",option:e,name:o});i?r.setValue([].concat((0,Wt.Z)(a),[e]),"select-option",e):r.setValue(e,"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,i=r.getOptionValue(e),o=n.filter((function(e){return r.getOptionValue(e)!==i})),a=ft(t,o,o[0]||null);r.onChange(a,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(ft(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],i=t.slice(0,t.length-1),o=ft(e,i,i[0]||null);r.onChange(o,{action:"pop-value",removedValue:n})},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n5||o>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=r.props.inputValue,n=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(n,{action:"input-change",prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:t}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){r.blockOptionHover||r.state.focusedOption===e||r.setState({focusedOption:e})},r.shouldHideSelectedOptions=function(){return Nn(r.props)},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,i=t.backspaceRemovesValue,o=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,u=t.isDisabled,l=t.menuIsOpen,c=t.onKeyDown,d=t.tabSelectsValue,p=t.openMenuOnFocus,f=r.state,h=f.focusedOption,m=f.focusedValue,g=f.selectValue;if(!(u||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;r.focusValue("previous");break;case"ArrowRight":if(!n||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)r.removeValue(m);else{if(!i)return;n?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!l||!d||!h||p&&r.isOptionSelected(h,g))return;r.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(l){if(!h)return;if(r.isComposing)return;r.selectOption(h);break}return;case"Escape":l?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:a}),r.onMenuClose()):s&&o&&r.clearValue();break;case" ":if(a)return;if(!l){r.openMenu("first");break}if(!h)return;r.selectOption(h);break;case"ArrowUp":l?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":l?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!l)return;r.focusOption("pageup");break;case"PageDown":if(!l)return;r.focusOption("pagedown");break;case"Home":if(!l)return;r.focusOption("first");break;case"End":if(!l)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.instancePrefix="react-select-"+(r.props.instanceId||++Mn),r.state.selectValue=et(e.value),r}return(0,Be.Z)(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"componentDidUpdate",value:function(e){var t,n,r,i,o,a=this.props,s=a.isDisabled,u=a.menuIsOpen,l=this.state.isFocused;(l&&!s&&e.isDisabled||l&&u&&!e.menuIsOpen)&&this.focusInput(),l&&s&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,r=t.getBoundingClientRect(),i=n.getBoundingClientRect(),o=n.offsetHeight/3,i.bottom+o>r.bottom?it(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+o,t.scrollHeight)):i.top-o-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:o[a]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=n.indexOf(r);r||(i=-1);var o=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===i?0:-1===i?o:i-1;break;case"next":i>-1&&i0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var i=0,o=r.indexOf(n);n||(o=-1),"up"===e?i=o>0?o-1:r.length-1:"down"===e?i=(o+1)%r.length:"pageup"===e?(i=o-t)<0&&(i=0):"pagedown"===e?(i=o+t)>r.length-1&&(i=r.length-1):"last"===e&&(i=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[i],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(xn):qe(qe({},xn),this.props.theme):xn}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getValue,i=this.selectOption,o=this.setValue,a=this.props,s=a.isMulti,u=a.isRtl,l=a.options;return{clearValue:e,cx:t,getStyles:n,getValue:r,hasValue:this.hasValue(),isMulti:s,isRtl:u,options:l,selectOption:i,selectProps:a,setValue:o,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return Ln(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return zn(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Rn(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,o=e.inputId,a=e.inputValue,s=e.tabIndex,u=e.form,l=e.menuIsOpen,c=this.getComponents().Input,d=this.state,p=d.inputIsHidden,f=d.ariaSelection,h=this.commonProps,m=o||this.getElementId("input"),g=qe(qe({"aria-autocomplete":"list","aria-expanded":l,"aria-haspopup":!0,"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox"),"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],role:"combobox"},!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?i.createElement(c,(0,r.Z)({},h,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:t,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:s,form:u,type:"text",value:a},g)):i.createElement(ln,(0,r.Z)({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Ke,onFocus:this.onInputFocus,disabled:t,tabIndex:s,inputMode:"none",form:u,value:""},g))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,o=t.MultiValueContainer,a=t.MultiValueLabel,s=t.MultiValueRemove,u=t.SingleValue,l=t.Placeholder,c=this.commonProps,d=this.props,p=d.controlShouldRenderValue,f=d.isDisabled,h=d.isMulti,m=d.inputValue,g=d.placeholder,v=this.state,b=v.selectValue,y=v.focusedValue,D=v.isFocused;if(!this.hasValue()||!p)return m?null:i.createElement(l,(0,r.Z)({},c,{key:"placeholder",isDisabled:f,isFocused:D,innerProps:{id:this.getElementId("placeholder")}}),g);if(h)return b.map((function(t,u){var l=t===y,d="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return i.createElement(n,(0,r.Z)({},c,{components:{Container:o,Label:a,Remove:s},isFocused:l,isDisabled:f,key:d,index:u,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))}));if(m)return null;var w=b[0];return i.createElement(u,(0,r.Z)({},c,{data:w,isDisabled:f}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,a=n.isLoading,s=this.state.isFocused;if(!this.isClearable()||!e||o||!this.hasValue()||a)return null;var u={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return i.createElement(e,(0,r.Z)({},t,{innerProps:u,isFocused:s}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,a=n.isLoading,s=this.state.isFocused;if(!e||!a)return null;return i.createElement(e,(0,r.Z)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:s}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var o=this.commonProps,a=this.props.isDisabled,s=this.state.isFocused;return i.createElement(n,(0,r.Z)({},o,{isDisabled:a,isFocused:s}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,o=this.state.isFocused,a={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return i.createElement(e,(0,r.Z)({},t,{innerProps:a,isDisabled:n,isFocused:o}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,o=t.GroupHeading,a=t.Menu,s=t.MenuList,u=t.MenuPortal,l=t.LoadingMessage,c=t.NoOptionsMessage,d=t.Option,p=this.commonProps,f=this.state.focusedOption,h=this.props,m=h.captureMenuScroll,g=h.inputValue,v=h.isLoading,b=h.loadingMessage,y=h.minMenuHeight,D=h.maxMenuHeight,w=h.menuIsOpen,E=h.menuPlacement,C=h.menuPosition,x=h.menuPortalTarget,A=h.menuShouldBlockScroll,S=h.menuShouldScrollIntoView,k=h.noOptionsMessage,F=h.onMenuScrollToTop,O=h.onMenuScrollToBottom;if(!w)return null;var P,T=function(t,n){var o=t.type,a=t.data,s=t.isDisabled,u=t.isSelected,l=t.label,c=t.value,h=f===a,m=s?void 0:function(){return e.onOptionHover(a)},g=s?void 0:function(){return e.selectOption(a)},v="".concat(e.getElementId("option"),"-").concat(n),b={id:v,onClick:g,onMouseMove:m,onMouseOver:m,tabIndex:-1};return i.createElement(d,(0,r.Z)({},p,{innerProps:b,data:a,isDisabled:s,isSelected:u,key:v,label:l,type:o,value:c,isFocused:h,innerRef:h?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())P=this.getCategorizedOptions().map((function(t){if("group"===t.type){var a=t.data,s=t.options,u=t.index,l="".concat(e.getElementId("group"),"-").concat(u),c="".concat(l,"-heading");return i.createElement(n,(0,r.Z)({},p,{key:l,data:a,options:s,Heading:o,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return T(e,"".concat(u,"-").concat(e.index))})))}if("option"===t.type)return T(t,"".concat(t.index))}));else if(v){var L=b({inputValue:g});if(null===L)return null;P=i.createElement(l,p,L)}else{var z=k({inputValue:g});if(null===z)return null;P=i.createElement(c,p,z)}var R={minMenuHeight:y,maxMenuHeight:D,menuPlacement:E,menuPosition:C,menuShouldScrollIntoView:S},N=i.createElement(vt,(0,r.Z)({},p,R),(function(t){var n=t.ref,o=t.placerProps,u=o.placement,l=o.maxHeight;return i.createElement(a,(0,r.Z)({},p,R,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:v,placement:u}),i.createElement(wn,{captureEnabled:m,onTopArrive:F,onBottomArrive:O,lockEnabled:A},(function(t){return i.createElement(s,(0,r.Z)({},p,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:v,maxHeight:l,focusedOption:f}),P)})))}));return x||"fixed"===C?i.createElement(u,(0,r.Z)({},p,{appendTo:x,controlElement:this.controlRef,menuPlacement:E,menuPosition:C}),N):N}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,a=t.name,s=this.state.selectValue;if(a&&!r){if(o){if(n){var u=s.map((function(t){return e.getOptionValue(t)})).join(n);return i.createElement("input",{name:a,type:"hidden",value:u})}var l=s.length>0?s.map((function(t,n){return i.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):i.createElement("input",{name:a,type:"hidden"});return i.createElement("div",null,l)}var c=s[0]?this.getOptionValue(s[0]):"";return i.createElement("input",{name:a,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,o=t.focusedOption,a=t.focusedValue,s=t.isFocused,u=t.selectValue,l=this.getFocusableOptions();return i.createElement(Yt,(0,r.Z)({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:o,focusedValue:a,isFocused:s,selectValue:u,focusableOptions:l}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,o=e.SelectContainer,a=e.ValueContainer,s=this.props,u=s.className,l=s.id,c=s.isDisabled,d=s.menuIsOpen,p=this.state.isFocused,f=this.commonProps=this.getCommonProps();return i.createElement(o,(0,r.Z)({},f,{className:u,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:p}),this.renderLiveRegion(),i.createElement(t,(0,r.Z)({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:p,menuIsOpen:d}),i.createElement(a,(0,r.Z)({},f,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),i.createElement(n,(0,r.Z)({},f,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,i=t.inputIsHiddenAfterUpdate,o=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,u=e.options,l=e.value,c=e.menuIsOpen,d=e.inputValue,p=e.isMulti,f=et(l),h={};if(n&&(l!==n.value||u!==n.options||c!==n.menuIsOpen||d!==n.inputValue)){var m=c?function(e,t){return Fn(kn(e,t))}(e,f):[],g=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r-1?n:t[0]}(t,m);h={selectValue:f,focusedOption:v,focusedValue:g,clearFocusValueOnUpdate:!1}}var b=null!=i&&e!==n?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},y=o,D=a&&s;return a&&!D&&(y={value:ft(p,f,f[0]||null),options:f,action:"initial-input-focus"},D=!s),"initial-input-focus"===(null==o?void 0:o.action)&&(y=null),qe(qe(qe({},h),b),{},{prevProps:e,ariaSelection:y,prevWasFocused:D})}}]),n}(i.Component);jn.defaultProps=An;var In=n(112);function Bn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||(0,In.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var _n=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];var Vn=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;tt.x:return!1;case e===t.x:return t.isScrollingLeft;default:throw new Error("Could not calculate isScrollingLeft")}},y=function(e,t){switch(!0){case e>t.x:return!0;case et.y:return!1;case e===t.y:return t.isScrollingUp;default:throw new Error("Could not calculate isScrollingUp")}},w=function(e,t){switch(!0){case e>t.y:return!0;case e1e3)&&(e={scroll:v(),dimensions:g()},t=h()),e}},S=(0,r.createContext)({removeViewportChangeListener:function(e){},scheduleReinitializeChangeHandler:function(e){},addViewportChangeListener:function(e,t){},getCurrentViewport:A(),hasRootProviderAsParent:!1,version:"1.12.1"}),k=function(e){function t(t){var n=e.call(this,t)||this;return n.listeners=[],n.triggerUpdateToListeners=function(e,t,r){var i=t.scrollDidUpdate,o=t.dimensionsDidUpdate,a=m(),s=Object.assign({isIdle:!1,shouldInitialize:!1},r),u=s.isIdle,l=s.shouldInitialize,c=n.listeners.filter((function(e){var t=e.notifyScroll,n=e.notifyDimensions,r=e.notifyOnlyWhenIdle,a=e.skippedIterations,s=e.initialized,c=a>0;if(r()!==u&&!c)return!1;if(l&&!s)return!0;var d=t()&&i,p=n()&&o;return d||p}));if(n.props.experimentalSchedulerEnabled&&!u){var d=16/c.length;c=c.filter((function(e){var t=!!e.initialized&&function(e,t){var n=e.priority,r=e.averageExecutionCost,i=e.skippedIterations,o=n();if("highest"===o)return!1;if("low"!==o&&r<=t)return!1;if(r<=t/10)return!1;var a=i/function(e){switch(e){case"highest":return 0;case"high":return 4;case"normal":return 16;case"low":return 64}}(o);return!(a>=1)&&Math.random()>a}(e,d);return t?(e.skippedIterations++,!1):(e.skippedIterations=0,!0)}))}var p=c.map((function(t){var n=t.recalculateLayoutBeforeUpdate;if(n){var r=m();return[n(e),r()]}return null})),f=0;c.forEach((function(t,n){var r=t.handler,i=t.averageExecutionCost,o=t.iterations,a=p[n]||[null,0],s=a[0],u=a[1],l=m();r(e,s);var c=u+l(),d=c-i,h=o+1;t.averageExecutionCost=i+d/h,t.iterations=h,t.initialized=!0,f+=c})),n.props.experimentalSchedulerLayoutCalculatorEnabled&&c.length&&setTimeout((function(){var e=(a()-f)/c.length;c.forEach((function(t){t.averageExecutionCost=t.averageExecutionCost+e/t.iterations}))}),0)},n.addViewportChangeListener=function(e,t){n.listeners.push(s({handler:e,iterations:0,averageExecutionCost:0,skippedIterations:0,initialized:!1},t)),n.handleListenerUpdate()},n.scheduleReinitializeChangeHandler=function(e){var t=n.listeners.find((function(t){return t.handler===e}));t&&t.initialized&&(t.initialized=!1,n.handleListenerUpdate())},n.removeViewportChangeListener=function(e){n.listeners=n.listeners.filter((function(t){return t.handler!==e})),n.handleListenerUpdate()},n.collector=(0,r.createRef)(),n.getCurrentDefaultViewport=A(),n.contextValue={addViewportChangeListener:n.addViewportChangeListener,removeViewportChangeListener:n.removeViewportChangeListener,scheduleReinitializeChangeHandler:n.scheduleReinitializeChangeHandler,getCurrentViewport:function(){return n.collector.current&&n.collector.current.syncedStateOnce?n.collector.current.getPropsFromState():n.getCurrentDefaultViewport()},hasRootProviderAsParent:!0,version:"1.12.1"},n.renderChildren=function(e){return e.hasRootProviderAsParent?n.props.children:(0,r.createElement)(r.Fragment,null,n.state.hasListeners&&(0,r.createElement)(x,{ref:n.collector,onUpdate:n.triggerUpdateToListeners,onIdledUpdate:function(e,t){return n.triggerUpdateToListeners(e,t,{isIdle:!0})}}),(0,r.createElement)(S.Provider,{value:n.contextValue},n.props.children))},n.state={hasListeners:!1},n}return a(t,e),t.prototype.componentWillUnmount=function(){"number"==typeof this.updateListenersTick&&clearTimeout(this.updateListenersTick),"number"==typeof this.initializeListenersTick&&f(this.initializeListenersTick)},t.prototype.handleListenerUpdate=function(){var e=this;void 0===this.updateListenersTick&&(this.updateListenersTick=setTimeout((function(){var t=0!==e.listeners.length;e.state.hasListeners!==t&&e.setState({hasListeners:0!==e.listeners.length}),e.updateListenersTick=void 0}),1)),void 0===this.initializeListenersTick&&(this.initializeListenersTick=p((function(){e.collector.current&&e.collector.current.syncedStateOnce&&e.listeners.some((function(e){return!e.initialized}))&&e.triggerUpdateToListeners(e.collector.current.getPropsFromState(),{dimensionsDidUpdate:!1,scrollDidUpdate:!1},{isIdle:!1,shouldInitialize:!0}),e.initializeListenersTick=void 0})))},t.prototype.render=function(){return(0,r.createElement)(S.Consumer,null,this.renderChildren)},t}(r.PureComponent),F=function(e){function t(t){var n=e.call(this,t)||this;return n.handleViewportUpdate=function(e,t){n.props.onUpdate&&n.props.onUpdate(e,t),n.props.children&&n.syncState(e)},n.registerViewportListeners=function(e){var t=e.addViewportChangeListener,r=e.removeViewportChangeListener,i=e.scheduleReinitializeChangeHandler,o=e.hasRootProviderAsParent,a=e.getCurrentViewport;return o&&n.removeViewportChangeListener!==r?(n.removeViewportChangeListener&&n.removeViewportChangeListener(n.handleViewportUpdate),n.removeViewportChangeListener=r,n.scheduleReinitializeChangeHandler=i,t(n.handleViewportUpdate,{notifyScroll:function(){return!n.props.disableScrollUpdates},notifyDimensions:function(){return!n.props.disableDimensionsUpdates},notifyOnlyWhenIdle:function(){return n.props.deferUpdateUntilIdle},priority:function(){return n.props.priority},recalculateLayoutBeforeUpdate:function(e){return n.props.recalculateLayoutBeforeUpdate?n.props.recalculateLayoutBeforeUpdate(e):null}}),n.props.children&&n.syncState(a()),null):null},n.state={scroll:E(),dimensions:C()},n}return a(t,e),t.prototype.componentDidUpdate=function(e){var t=!this.props.disableDimensionsUpdates&&e.disableDimensionsUpdates,n=!this.props.disableScrollUpdates&&e.disableScrollUpdates;"function"==typeof this.scheduleReinitializeChangeHandler&&(t||n)&&this.scheduleReinitializeChangeHandler(this.handleViewportUpdate)},t.prototype.componentWillUnmount=function(){this.removeViewportChangeListener&&this.removeViewportChangeListener(this.handleViewportUpdate),this.removeViewportChangeListener=void 0,this.scheduleReinitializeChangeHandler=void 0,"number"==typeof this.tickId&&f(this.tickId)},t.prototype.syncState=function(e){var t=this;this.nextViewport=e,void 0===this.tickId&&(this.tickId=p((function(){t.nextViewport&&t.setState(t.nextViewport),t.tickId=void 0,t.nextViewport=void 0})))},Object.defineProperty(t.prototype,"optionNotifyScroll",{get:function(){return!this.props.disableScrollUpdates},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"optionNotifyDimensions",{get:function(){return!this.props.disableDimensionsUpdates},enumerable:!0,configurable:!0}),t.prototype.render=function(){var e=this.props.children;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(S.Consumer,null,this.registerViewportListeners),e?e(this.state):null)},t.defaultProps={disableScrollUpdates:!1,disableDimensionsUpdates:!1,deferUpdateUntilIdle:!1,priority:"normal"},t}(r.Component);!function(e){function t(t){var n=e.call(this,t)||this;return n.syncState=function(){var e=n.props.node;if(e&&e.current){var t=n.getRectFromNode();!t||n.state.isInitialized?n.setState(t):n.setState(s(s({},t),{isInitialized:!0}))}},n.state={top:0,right:0,bottom:0,left:0,height:0,width:0,isInitialized:!1},n}a(t,e),t.prototype.componentDidMount=function(){this.tick(this.syncState)},t.prototype.componentDidUpdate=function(e,t){var n,r,i=this.getRectFromState(),o=this.getRectFromState(t);i&&(this.props.onInit&&!t.isInitialized&&this.state.isInitialized&&this.props.onInit(i),this.props.onUpdate&&(null!==o&&((n=i)===(r=o)||n.top===r.top&&n.right===r.right&&n.bottom===r.bottom&&n.left===r.left&&n.height===r.height&&n.width===r.width)||this.props.onUpdate(i)))},t.prototype.componentWillUnmount=function(){"number"==typeof this.tickId&&f(this.tickId)},t.prototype.tick=function(e){var t=this;this.tickId=p((function(){e(),t.tick(e)}))},t.prototype.getRectFromState=function(e){return void 0===e&&(e=this.state),e.isInitialized?{height:e.height,width:e.width,top:e.top,bottom:e.bottom,left:e.left,right:e.right}:null},t.prototype.getRectFromNode=function(){var e=this.props.node;if(!e||!e.current)return null;var t=e.current.getBoundingClientRect();return{height:t.height,width:t.width,top:t.top,bottom:t.bottom,left:t.left,right:t.right}},t.prototype.render=function(){var e=this.props.children;return"function"==typeof e?e(this.getRectFromState()):null}}(r.PureComponent);var O=function(e,t){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},O(e,t)};function P(e,t){function n(){this.constructor=e}O(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var T=function(){return T=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0},t.getOverflowScrollType=function(e,n){return"flow"===t.props.overflowScroll&&t.calcHeightDifference(e,n)>0?"flow":"end"},t.isSticky=function(e,n,r){if(!t.hasContainer())return Math.round(n.top)<=t.offsetTop;if(Math.round(n.top)>t.offsetTop)return!1;var i="flow"===t.props.overflowScroll?Math.min(e.height,r.height):e.height;return!(Math.round(n.bottom)-t.offsetTopn.height)return!1;var i="flow"===t.props.overflowScroll?Math.min(e.height,r.height):e.height;return!(Math.round(n.bottom)-t.offsetTop>=i)},t.recalculateLayoutBeforeUpdate=function(){var e=t.container.current.getBoundingClientRect();return{stickyRect:t.stickyRef.current.getBoundingClientRect(),containerRect:e}},t.handleScrollUpdate=function(e,n){var r=e.scroll,i=e.dimensions,o=n.stickyRect,a=n.containerRect;if(!t.props.disabled){var s="function"==typeof t.props.children,u=t.getOverflowScrollType(o,i),l=t.shouldUseNativeSticky(u),c=l?{}:t.getStickyStyles(o,a,r,i),d=t.state.styles,p=!V(c,d),f=!!s&&t.isSticky(o,a,i),h=!!s&&t.isDockedToBottom(o,a,i),m=t.isNearToViewport(o),g=t.state.useNativeSticky!==l,v=t.state.isSticky!==f,b=t.state.isDockedToBottom!==h,y=t.state.isNearToViewport!==m,D=u!==t.state.appliedOverflowScroll;(g||p||v||b||y||D)&&t.setState({useNativeSticky:l,isSticky:f,isDockedToBottom:h,isNearToViewport:m,appliedOverflowScroll:u,styles:p?c:d})}},t.renderSticky=function(e){var n=e.isRecalculating,i=t.props,o=i.children,a=i.disabled,s=i.stickyProps;return(0,r.createElement)(M,T({forwardRef:t.stickyRef,positionStyle:t.state.styles,disabled:a||n,children:o,renderArgs:{isSticky:t.state.isSticky,isDockedToBottom:t.state.isDockedToBottom,isNearToViewport:t.state.isNearToViewport,appliedOverflowScroll:t.state.appliedOverflowScroll}},s))},t}return P(t,e),Object.defineProperty(t.prototype,"container",{get:function(){return this.props.container||this.placeholderRef},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"offsetTop",{get:function(){return this.props.stickyOffset.top+this.props.defaultOffsetTop},enumerable:!1,configurable:!0}),t.prototype.calcHeightDifference=function(e,t){return t?Math.max(0,Math.round(e.height)-t.height):0},t.prototype.calcOverflowScrollFlowStickyStyles=function(e,t,n,r){var i=Math.round(t.top),o=Math.round(e.top),a=Math.round(n.y),s=Math.round(n.yTurn),u=this.calcHeightDifference(e,r),l=i+a-this.props.stickyOffset.height,c=Math.round(e.bottom)<=r.height,d=il+t.height,m=!(f||h);if(n.isScrollingDown&&!c&&!m||n.isScrollingUp&&!d||n.isScrollingUp&&p&&!m)return{position:"absolute",top:0};if(n.isScrollingDown&&c)return{position:"fixed",top:-u};var g=o>=this.offsetTop;return n.isScrollingDown&&m||n.isScrollingUp&&!f&&!g?{position:"absolute",top:Math.abs(a-o+(i-a))}:{position:"fixed",top:this.offsetTop}},t.prototype.calcPositionStyles=function(e,t,n,r){if(this.isSticky(e,t,r)){if("flow"===this.getOverflowScrollType(e,r))return this.calcOverflowScrollFlowStickyStyles(e,t,n,r);var i=this.props.stickyOffset.top,o=this.props.stickyOffset.height;return i>0&&i0&&a=0,u=o+e.height<=0;return s||u?a<=i?{position:"absolute",top:0}:0===Math.round(t.yDTurn)?u?{position:"absolute",top:Math.round(t.yTurn)-i-e.height}:{position:"absolute",top:Math.max(a-i,0)}:{position:"fixed",top:0}:{position:"absolute",top:a-i+o}}(e,n,{offsetTop:isNaN(this.props.defaultOffsetTop)?Math.round(t.top)+Math.round(n.y):this.props.defaultOffsetTop});if(!this.props.disableHardwareAcceleration){var i=this.isNearToViewport(e);B?r.willChange=i?"position, top":null:r.transform=i?"translateZ(0)":null}return r},t.prototype.render=function(){var e=this.props,t=e.disabled,n=e.disableResizing,i=e.style,o=e.className;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(I,{className:o,style:i,disabled:t,stickyRef:this.stickyRef,disableResizing:n,forwardRef:this.placeholderRef},this.renderSticky),(0,r.createElement)(F,{disableScrollUpdates:t,disableDimensionsUpdates:!0,onUpdate:this.handleViewportUpdate,recalculateLayoutBeforeUpdate:this.recalculateLayoutBeforeUpdate,priority:this.state.isNearToViewport?"highest":"low"}))},t.defaultProps={disableHardwareAcceleration:!1,disableResizing:!1,style:{}},t}(r.PureComponent);z()(H)},8090:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;!function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}t.default=e}(n(5697));var r=s(n(8141)),i=s(n(602)),o=s(n(7294)),a=s(n(8532));n(279);function s(e){return e&&e.__esModule?e:{default:e}}function u(){return u=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,["children","in"]),a=r.default.Children.toArray(t),s=a[0],u=a[1];return delete i.onEnter,delete i.onEntering,delete i.onEntered,delete i.onExit,delete i.onExiting,delete i.onExited,r.default.createElement(o.default,i,n?r.default.cloneElement(s,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):r.default.cloneElement(u,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},a}(r.default.Component);s.propTypes={};var u=s;t.default=u,e.exports=t.default},8532:function(e,t,n){"use strict";t.__esModule=!0,t.default=t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(5697)),i=s(n(7294)),o=s(n(3935)),a=n(3639);n(279);function s(e){return e&&e.__esModule?e:{default:e}}var u="unmounted";t.UNMOUNTED=u;var l="exited";t.EXITED=l;var c="entering";t.ENTERING=c;var d="entered";t.ENTERED=d;var p="exiting";t.EXITING=p;var f=function(e){var t,n;function r(t,n){var r;r=e.call(this,t,n)||this;var i,o=n.transitionGroup,a=o&&!o.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(i=l,r.appearStatus=c):i=d:i=t.unmountOnExit||t.mountOnEnter?u:l,r.state={status:i},r.nextCallback=null,r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.getChildContext=function(){return{transitionGroup:null}},r.getDerivedStateFromProps=function(e,t){return e.in&&t.status===u?{status:l}:null},a.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},a.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==c&&n!==d&&(t=c):n!==c&&n!==d||(t=p)}this.updateStatus(!1,t)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},a.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=o.default.findDOMNode(this);t===c?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===l&&this.setState({status:u})},a.performEnter=function(e,t){var n=this,r=this.props.enter,i=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,o=this.getTimeouts(),a=i?o.appear:o.enter;t||r?(this.props.onEnter(e,i),this.safeSetState({status:c},(function(){n.props.onEntering(e,i),n.onTransitionEnd(e,a,(function(){n.safeSetState({status:d},(function(){n.props.onEntered(e,i)}))}))}))):this.safeSetState({status:d},(function(){n.props.onEntered(e)}))},a.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();n?(this.props.onExit(e),this.safeSetState({status:p},(function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,(function(){t.safeSetState({status:l},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:l},(function(){t.props.onExited(e)}))},a.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},a.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},a.onTransitionEnd=function(e,t,n){this.setNextCallback(n);var r=null==t&&!this.props.addEndListener;e&&!r?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},a.render=function(){var e=this.state.status;if(e===u)return null;var t=this.props,n=t.children,r=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"==typeof n)return n(e,r);var o=i.default.Children.only(n);return i.default.cloneElement(o,r)},r}(i.default.Component);function h(){}f.contextTypes={transitionGroup:r.object},f.childContextTypes={transitionGroup:function(){}},f.propTypes={},f.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:h,onEntering:h,onEntered:h,onExit:h,onExiting:h,onExited:h},f.UNMOUNTED=0,f.EXITED=1,f.ENTERING=2,f.ENTERED=3,f.EXITING=4;var m=(0,a.polyfill)(f);t.default=m},2643:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=s(n(5697)),i=s(n(7294)),o=n(3639),a=n(1777);function s(e){return e&&e.__esModule?e:{default:e}}function u(){return u=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,["component","childFactory"]),o=c(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?o:i.default.createElement(t,r,o)},r}(i.default.Component);d.childContextTypes={transitionGroup:r.default.object.isRequired},d.propTypes={},d.defaultProps={component:"div",childFactory:function(e){return e}};var p=(0,o.polyfill)(d);t.default=p,e.exports=t.default},5999:function(e,t,n){"use strict";var r=s(n(8090)),i=s(n(8577)),o=s(n(2643)),a=s(n(8532));function s(e){return e&&e.__esModule?e:{default:e}}e.exports={Transition:a.default,TransitionGroup:o.default,ReplaceTransition:i.default,CSSTransition:r.default}},1777:function(e,t,n){"use strict";t.__esModule=!0,t.getChildMapping=i,t.mergeChildMappings=o,t.getInitialChildMapping=function(e,t){return i(e.children,(function(n){return(0,r.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:a(n,"appear",e),enter:a(n,"enter",e),exit:a(n,"exit",e)})}))},t.getNextChildMapping=function(e,t,n){var s=i(e.children),u=o(t,s);return Object.keys(u).forEach((function(i){var o=u[i];if((0,r.isValidElement)(o)){var l=i in t,c=i in s,d=t[i],p=(0,r.isValidElement)(d)&&!d.props.in;!c||l&&!p?c||!l||p?c&&l&&(0,r.isValidElement)(d)&&(u[i]=(0,r.cloneElement)(o,{onExited:n.bind(null,o),in:d.props.in,exit:a(o,"exit",e),enter:a(o,"enter",e)})):u[i]=(0,r.cloneElement)(o,{in:!1}):u[i]=(0,r.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:a(o,"exit",e),enter:a(o,"enter",e)})}})),u};var r=n(7294);function i(e,t){var n=Object.create(null);return e&&r.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,r.isValidElement)(e)?t(e):e}(e)})),n}function o(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var u in t){if(i[u])for(r=0;r-1,b=new RegExp("\\D","g"),y=p||("select"===o||"textarea"===o?o:"input"),D="form-control";h?(D+="-plaintext",y=p||"input"):"file"===o?D+="-file":"range"===o?D+="-range":v&&(D=f?null:"form-check-input"),g.size&&b.test(g.size)&&((0,c.O4)('Please use the prop "bsSize" instead of the "size" to bootstrap\'s input sizing.'),a=g.size,delete g.size);var w=(0,c.mx)(l()(t,d&&"is-invalid",u&&"is-valid",!!a&&"form-control-"+a,D),n);return("input"===y||p&&"function"==typeof p)&&(g.type=o),g.children&&!h&&"select"!==o&&"string"==typeof y&&"select"!==y&&((0,c.O4)('Input with a type of "'+o+'" cannot have children. Please use "value"/"defaultValue" instead.'),delete g.children),s.createElement(y,(0,r.Z)({},g,{ref:m,className:w,"aria-invalid":d}))},t}(s.Component);d.defaultProps={type:"text"},t.Z=d},916:function(e,t,n){"use strict";var r=n(4038),i=n(1531),o=n(7294),a=n(2565),s=n.n(a),u=n(3033),l=function(e){var t=e.className,n=e.cssModule,a=e.tag,l=e.fluid,c=(0,i.Z)(e,["className","cssModule","tag","fluid"]),d=(0,u.mx)(s()(t,"jumbotron",!!l&&"jumbotron-fluid"),n);return o.createElement(a,(0,r.Z)({},c,{className:d}))};l.defaultProps={tag:"div"},t.Z=l},5857:function(e,t,n){"use strict";var r=n(4038),i=n(1531),o=n(7294),a=n(2565),s=n.n(a),u=n(3033),l=function(e,t,n){return!0===n||""===n?e?"col":"col-"+t:"auto"===n?e?"col-auto":"col-"+t+"-auto":e?"col-"+n:"col-"+t+"-"+n},c=function(e){var t=e.className,n=e.cssModule,a=e.hidden,c=e.widths,d=e.tag,p=e.check,f=e.size,h=e.for,m=(0,i.Z)(e,["className","cssModule","hidden","widths","tag","check","size","for"]),g=[];c.forEach((function(t,r){var i=e[t];if(delete m[t],i||""===i){var o,a=!r;if((0,u.Kn)(i)){var c,d=a?"-":"-"+t+"-";o=l(a,t,i.size),g.push((0,u.mx)(s()(((c={})[o]=i.size||""===i.size,c["order"+d+i.order]=i.order||0===i.order,c["offset"+d+i.offset]=i.offset||0===i.offset,c))),n)}else o=l(a,t,i),g.push(o)}}));var v=(0,u.mx)(s()(t,!!a&&"sr-only",!!p&&"form-check-label",!!f&&"col-form-label-"+f,g,!!g.length&&"col-form-label"),n);return o.createElement(d,(0,r.Z)({htmlFor:h},m,{className:v}))};c.defaultProps={tag:"label",widths:["xs","sm","md","lg","xl"]},t.Z=c},2361:function(e,t,n){"use strict";var r=n(4038),i=n(1531),o=n(7294),a=n(2565),s=n.n(a),u=n(3033),l=function(e){var t=e.className,n=e.cssModule,a=e.tabs,l=e.pills,c=e.vertical,d=e.horizontal,p=e.justified,f=e.fill,h=e.navbar,m=e.card,g=e.tag,v=(0,i.Z)(e,["className","cssModule","tabs","pills","vertical","horizontal","justified","fill","navbar","card","tag"]),b=(0,u.mx)(s()(t,h?"navbar-nav":"nav",!!d&&"justify-content-"+d,function(e){return!1!==e&&(!0===e||"xs"===e?"flex-column":"flex-"+e+"-column")}(c),{"nav-tabs":a,"card-header-tabs":m&&a,"nav-pills":l,"card-header-pills":m&&l,"nav-justified":p,"nav-fill":f}),n);return o.createElement(g,(0,r.Z)({},v,{className:b}))};l.defaultProps={tag:"ul",vertical:!1},t.Z=l},7631:function(e,t,n){"use strict";var r=n(4038),i=n(1531),o=n(7294),a=n(2565),s=n.n(a),u=n(3033),l=function(e){var t,n=e.expand,a=e.className,l=e.cssModule,c=e.light,d=e.dark,p=e.fixed,f=e.sticky,h=e.color,m=e.tag,g=(0,i.Z)(e,["expand","className","cssModule","light","dark","fixed","sticky","color","tag"]),v=(0,u.mx)(s()(a,"navbar",function(e){return!1!==e&&(!0===e||"xs"===e?"navbar-expand":"navbar-expand-"+e)}(n),((t={"navbar-light":c,"navbar-dark":d})["bg-"+h]=h,t["fixed-"+p]=p,t["sticky-"+f]=f,t)),l);return o.createElement(m,(0,r.Z)({},g,{className:v}))};l.defaultProps={tag:"nav",expand:!1},t.Z=l},5027:function(e,t,n){"use strict";var r=n(4038),i=n(1531),o=n(7294),a=n(2565),s=n.n(a),u=n(3033),l=function(e){var t=e.className,n=e.cssModule,a=e.tag,l=(0,i.Z)(e,["className","cssModule","tag"]),c=(0,u.mx)(s()(t,"navbar-brand"),n);return o.createElement(a,(0,r.Z)({},l,{className:c}))};l.defaultProps={tag:"a"},t.Z=l},1153:function(e,t,n){"use strict";var r=n(4038),i=n(1531),o=n(7294),a=n(2565),s=n.n(a),u=n(3033),l=function(e){var t=e.className,n=e.cssModule,a=e.children,l=e.tag,c=(0,i.Z)(e,["className","cssModule","children","tag"]),d=(0,u.mx)(s()(t,"navbar-toggler"),n);return o.createElement(l,(0,r.Z)({"aria-label":"Toggle navigation"},c,{className:d}),a||o.createElement("span",{className:(0,u.mx)("navbar-toggler-icon",n)}))};l.defaultProps={tag:"button",type:"button"},t.Z=l},6667:function(e,t,n){"use strict";var r=n(4038),i=n(1531),o=n(7294),a=n(2565),s=n.n(a),u=n(3033),l=function(e){var t=e.className,n=e.cssModule,a=e.noGutters,l=e.tag,c=e.form,d=e.widths,p=(0,i.Z)(e,["className","cssModule","noGutters","tag","form","widths"]),f=[];d.forEach((function(t,n){var r=e[t];if(delete p[t],r){var i=!n;f.push(i?"row-cols-"+r:"row-cols-"+t+"-"+r)}}));var h=(0,u.mx)(s()(t,a?"no-gutters":null,c?"form-row":"row",f),n);return o.createElement(l,(0,r.Z)({},p,{className:h}))};l.defaultProps={tag:"div",widths:["xs","sm","md","lg","xl"]},t.Z=l},3033:function(e,t,n){"use strict";n.d(t,{pp:function(){return a},X9:function(){return s},Rf:function(){return u},mx:function(){return l},CE:function(){return c},ei:function(){return d},O4:function(){return f},x9:function(){return h},qW:function(){return g},wF:function(){return v},rb:function(){return b},E5:function(){return y},Do:function(){return D},Nq:function(){return w},Kn:function(){return C},U9:function(){return S},ku:function(){return k}});var r,i=n(5697),o=n.n(i);function a(e){document.body.style.paddingRight=e>0?e+"px":null}function s(){var e=window.getComputedStyle(document.body,null);return parseInt(e&&e.getPropertyValue("padding-right")||0,10)}function u(){var e=function(){var e=document.createElement("div");e.style.position="absolute",e.style.top="-9999px",e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}(),t=document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")[0],n=t?parseInt(t.style.paddingRight||0,10):0;document.body.clientWidth0;)o[n=r[i-=1]]=e[n];return o}var p={};function f(e){p[e]||("undefined"!=typeof console&&console.error(e),p[e]=!0)}function h(e,t){return function(n,r,i){null!==n[r]&&void 0!==n[r]&&f('"'+r+'" property of "'+i+'" has been deprecated.\n'+t);for(var o=arguments.length,a=new Array(o>3?o-3:0),s=3;s=t.f?i():e.fonts.load(function(e){return A(e)+" "+e.f+"00 300px "+C(e.c)}(t.a),t.h).then((function(e){1<=e.length?r():setTimeout(o,25)}),(function(){i()}))}()})),i=null,o=new Promise((function(e,n){i=setTimeout(n,t.f)}));Promise.race([o,r]).then((function(){i&&(clearTimeout(i),i=null),t.g(t.a)}),(function(){t.j(t.a)}))};var M={D:"serif",C:"sans-serif"},j=null;function I(){if(null===j){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);j=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return j}function B(e,t,n){for(var r in M)if(M.hasOwnProperty(r)&&t===e.f[M[r]]&&n===e.f[M[r]])return!0;return!1}function _(e){var t,n=e.g.a.offsetWidth,r=e.h.a.offsetWidth;(t=n===e.f.serif&&r===e.f["sans-serif"])||(t=I()&&B(e,n,r)),t?s()-e.A>=e.w?I()&&B(e,n,r)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?V(e,e.v):V(e,e.B):function(e){setTimeout(a((function(){_(this)}),e),50)}(e):V(e,e.v)}function V(e,t){setTimeout(a((function(){p(this.g.a),p(this.h.a),p(this.j.a),p(this.m.a),t(this.a)}),e),0)}function U(e,t,n){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=n}N.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=s(),_(this)};var Z=null;function H(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&f(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),O(e,"active")):F(e.a))}function W(e){this.j=e,this.a=new P,this.h=0,this.f=this.g=!0}function q(e,t,n,r,i){var o=0==--e.h;(e.f||e.g)&&setTimeout((function(){var e=i||null,s=r||{};if(0===n.length&&o)F(t.a);else{t.f+=n.length,o&&(t.j=o);var u,l=[];for(u=0;u0)&&(r.unobserve(t),r.disconnect(),n())}))}))).observe(t),{instance:r,el:t}))},n.render=function(){var e=this,t=this.props,n=t.to,r=t.getProps,o=void 0===r?this.defaultGetProps:r,a=t.onClick,u=t.onMouseEnter,d=(t.activeClassName,t.activeStyle,t.innerRef,t.partiallyActive,t.state),h=t.replace,m=t._location,g=(0,i.default)(t,f);var v=y(n,m.pathname);return b(v)?l.default.createElement(c.Link,(0,s.default)({to:v,state:d,getProps:o,innerRef:this.handleRef,onMouseEnter:function(e){u&&u(e),___loader.hovering((0,p.parsePath)(v).pathname)},onClick:function(t){if(a&&a(t),!(0!==t.button||e.props.target||t.defaultPrevented||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)){t.preventDefault();var n=h,r=encodeURI(v)===m.pathname;"boolean"!=typeof h&&r&&(n=!0),window.___navigate(v,{state:d,replace:n})}return!0}},g)):l.default.createElement("a",(0,s.default)({href:v},g))},t}(l.default.Component);E.propTypes=(0,s.default)({},D,{onClick:u.default.func,to:u.default.string.isRequired,replace:u.default.bool,state:u.default.object});var C=l.default.forwardRef((function(e,t){return l.default.createElement(w,(0,s.default)({innerRef:t},e))}));t.ZP=C;t.c4=function(e,t){window.___navigate(y(e,window.location.pathname),t)}},1752:function(e,t){"use strict";t.__esModule=!0,t.parsePath=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");-1!==o&&(n=t.substr(o),t=t.substr(0,o));return{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}},9679:function(e,t,n){"use strict";t.$C=void 0;var r=n(1432);t.$C=r.ScrollHandler,n(4855).useScrollRestoration},1432:function(e,t,n){"use strict";var r=n(8580);t.__esModule=!0,t.ScrollHandler=t.ScrollContext=void 0;var i=r(n(5666)),o=r(n(3793)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,n&&n.set(e,r);return r}(n(7294)),s=r(n(5697)),u=n(1142);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}var c=a.createContext(new u.SessionStorage);t.ScrollContext=c,c.displayName="GatsbyScrollContext";var d=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o0?u:n?[n]:[]},t.I=function(e,t,n){return r.reduce((function(n,r){return r.plugin[e]?n.then((function(){return r.plugin[e](t,r.options)})):n}),Promise.resolve())}},8110:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var r=function(e){return e=e||Object.create(null),{on:function(t,n){(e[t]||(e[t]=[])).push(n)},off:function(t,n){e[t]&&e[t].splice(e[t].indexOf(n)>>>0,1)},emit:function(t,n){(e[t]||[]).slice().map((function(e){e(n)})),(e["*"]||[]).slice().map((function(e){e(t,n)}))}}}()},2257:function(e,t,n){"use strict";n.d(t,{UD:function(){return p},Cj:function(){return h},GA:function(){return f},DS:function(){return d}});var r=n(2098),i=n(1578),o=function(e){return void 0===e?e:"/"===e?"/":"/"===e.charAt(e.length-1)?e.slice(0,-1):e},a=n(969),s=new Map,u=[],l=function(e){var t=decodeURIComponent(e);return(0,i.Z)(t,decodeURIComponent("")).split("#")[0].split("?")[0]};function c(e){return e.startsWith("/")||e.startsWith("https://")||e.startsWith("http://")?e:new URL(e,window.location.href+(window.location.href.endsWith("/")?"":"/")).pathname}var d=function(e){u=e},p=function(e){var t=m(e),n=u.map((function(e){var t=e.path;return{path:e.matchPath,originalPath:t}})),i=(0,r.pick)(n,t);return i?o(i.route.originalPath):null},f=function(e){var t=m(e),n=u.map((function(e){var t=e.path;return{path:e.matchPath,originalPath:t}})),i=(0,r.pick)(n,t);return i?i.params:{}},h=function e(t){var n=l(c(t));if(s.has(n))return s.get(n);var r=(0,a.J)(t);if(r)return e(r.toPath);var i=p(n);return i||(i=m(t)),s.set(n,i),i},m=function(e){var t=l(c(e));return"/index.html"===t&&(t="/"),t=o(t)}},5444:function(e,t,n){"use strict";n.d(t,{rU:function(){return i.ZP},c4:function(){return i.c4},B9:function(){return o},K2:function(){return a}});var r=n(7294),i=n(8037),o=(n(9679),n(861),n(8741).ZP.enqueue,r.createContext({}));var a=function(e){var t;r.useContext;var n=r.useContext(o);if(isNaN(Number(e)))throw new Error("useStaticQuery was called with a string but expects to be called using `graphql`. Try this:\n\nimport { useStaticQuery, graphql } from 'gatsby';\n\nuseStaticQuery(graphql`"+e+"`);\n");if(null!==(t=n[e])&&void 0!==t&&t.data)return n[e].data;throw new Error("The result of this StaticQuery could not be fetched.\n\nThis is likely a bug in Gatsby and if refreshing the page does not fix it, please open an issue in https://github.com/gatsbyjs/gatsby/issues")}},8741:function(e,t,n){"use strict";n.d(t,{uQ:function(){return c},kL:function(){return b},ZP:function(){return w},hs:function(){return E},jN:function(){return D},N1:function(){return y}});var r=n(366),i=n(1572),o=function(e){if("undefined"==typeof document)return!1;var t=document.createElement("link");try{if(t.relList&&"function"==typeof t.relList.supports)return t.relList.supports(e)}catch(n){return!1}return!1}("prefetch")?function(e,t){return new Promise((function(n,r){if("undefined"!=typeof document){var i=document.createElement("link");i.setAttribute("rel","prefetch"),i.setAttribute("href",e),Object.keys(t).forEach((function(e){i.setAttribute(e,t[e])})),i.onload=n,i.onerror=r,(document.getElementsByTagName("head")[0]||document.getElementsByName("script")[0].parentNode).appendChild(i)}else r()}))}:function(e){return new Promise((function(t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.onload=function(){200===r.status?t():n()},r.send(null)}))},a={},s=function(e,t){return new Promise((function(n){a[e]?n():o(e,t).then((function(){n(),a[e]=!0})).catch((function(){}))}))},u=n(8110),l=n(2257),c={Error:"error",Success:"success"},d=function(e){return e&&e.default||e},p=function(e){return"/page-data/"+("/"===e?"index":function(e){return(e="/"===e[0]?e.slice(1):e).endsWith("/")?e.slice(0,-1):e}(e))+"/page-data.json"};function f(e,t){return void 0===t&&(t="GET"),new Promise((function(n,r){var i=new XMLHttpRequest;i.open(t,e,!0),i.onreadystatechange=function(){4==i.readyState&&n(i)},i.send(null)}))}var h,m=function(e,t){void 0===t&&(t=null);var n={componentChunkName:e.componentChunkName,path:e.path,webpackCompilationHash:e.webpackCompilationHash,matchPath:e.matchPath,staticQueryHashes:e.staticQueryHashes};return{component:t,json:e.result,page:n}},g=function(){function e(e,t){this.inFlightNetworkRequests=new Map,this.pageDb=new Map,this.inFlightDb=new Map,this.staticQueryDb={},this.pageDataDb=new Map,this.prefetchTriggered=new Set,this.prefetchCompleted=new Set,this.loadComponent=e,(0,l.DS)(t)}var t=e.prototype;return t.memoizedGet=function(e){var t=this,n=this.inFlightNetworkRequests.get(e);return n||(n=f(e,"GET"),this.inFlightNetworkRequests.set(e,n)),n.then((function(n){return t.inFlightNetworkRequests.delete(e),n})).catch((function(n){throw t.inFlightNetworkRequests.delete(e),n}))},t.setApiRunner=function(e){this.apiRunner=e,this.prefetchDisabled=e("disableCorePrefetching").some((function(e){return e}))},t.fetchPageDataJson=function(e){var t=this,n=e.pagePath,r=e.retries,i=void 0===r?0:r,o=p(n);return this.memoizedGet(o).then((function(r){var o=r.status,a=r.responseText;if(200===o)try{var s=JSON.parse(a);if(void 0===s.path)throw new Error("not a valid pageData response");return Object.assign(e,{status:c.Success,payload:s})}catch(u){}return 404===o||200===o?"/404.html"===n?Object.assign(e,{status:c.Error}):t.fetchPageDataJson(Object.assign(e,{pagePath:"/404.html",notFound:!0})):500===o?Object.assign(e,{status:c.Error}):i<3?t.fetchPageDataJson(Object.assign(e,{retries:i+1})):Object.assign(e,{status:c.Error})}))},t.loadPageDataJson=function(e){var t=this,n=(0,l.Cj)(e);if(this.pageDataDb.has(n)){var r=this.pageDataDb.get(n);return Promise.resolve(r)}return this.fetchPageDataJson({pagePath:n}).then((function(e){return t.pageDataDb.set(n,e),e}))},t.findMatchPath=function(e){return(0,l.UD)(e)},t.loadPage=function(e){var t=this,n=(0,l.Cj)(e);if(this.pageDb.has(n)){var r=this.pageDb.get(n);return r.error?{error:r.error,status:r.status}:Promise.resolve(r.payload)}if(this.inFlightDb.has(n))return this.inFlightDb.get(n);var i=Promise.all([this.loadAppData(),this.loadPageDataJson(n)]).then((function(e){var r=e[1];if(r.status===c.Error)return{status:c.Error};var i=r.payload,o=i,a=o.componentChunkName,s=o.staticQueryHashes,l=void 0===s?[]:s,d={},p=t.loadComponent(a).then((function(t){var n;return d.createdAt=new Date,!t||t instanceof Error?(d.status=c.Error,d.error=t):(d.status=c.Success,!0===r.notFound&&(d.notFound=!0),i=Object.assign(i,{webpackCompilationHash:e[0]?e[0].webpackCompilationHash:""}),n=m(i,t)),n})),f=Promise.all(l.map((function(e){if(t.staticQueryDb[e]){var n=t.staticQueryDb[e];return{staticQueryHash:e,jsonPayload:n}}return t.memoizedGet("/page-data/sq/d/"+e+".json").then((function(t){var n=JSON.parse(t.responseText);return{staticQueryHash:e,jsonPayload:n}})).catch((function(){throw new Error("We couldn't load \"/page-data/sq/d/"+e+'.json"')}))}))).then((function(e){var n={};return e.forEach((function(e){var r=e.staticQueryHash,i=e.jsonPayload;n[r]=i,t.staticQueryDb[r]=i})),n}));return Promise.all([p,f]).then((function(e){var r,i=e[0],o=e[1];return i&&(r=Object.assign({},i,{staticQueryResults:o}),d.payload=r,u.Z.emit("onPostLoadPageResources",{page:r,pageResources:r})),t.pageDb.set(n,d),d.error?{error:d.error,status:d.status}:r})).catch((function(e){return{error:e,status:c.Error}}))}));return i.then((function(){t.inFlightDb.delete(n)})).catch((function(e){throw t.inFlightDb.delete(n),e})),this.inFlightDb.set(n,i),i},t.loadPageSync=function(e,t){void 0===t&&(t={});var n=(0,l.Cj)(e);if(this.pageDb.has(n)){var r,i=this.pageDb.get(n);if(i.payload)return i.payload;if(null!==(r=t)&&void 0!==r&&r.withErrorDetails)return{error:i.error,status:i.status}}},t.shouldPrefetch=function(e){return!!function(){if("connection"in navigator&&void 0!==navigator.connection){if((navigator.connection.effectiveType||"").includes("2g"))return!1;if(navigator.connection.saveData)return!1}return!0}()&&!this.pageDb.has(e)},t.prefetch=function(e){var t=this;if(!this.shouldPrefetch(e))return!1;if(this.prefetchTriggered.has(e)||(this.apiRunner("onPrefetchPathname",{pathname:e}),this.prefetchTriggered.add(e)),this.prefetchDisabled)return!1;var n=(0,l.Cj)(e);return this.doPrefetch(n).then((function(){t.prefetchCompleted.has(e)||(t.apiRunner("onPostPrefetchPathname",{pathname:e}),t.prefetchCompleted.add(e))})),!0},t.doPrefetch=function(e){var t=this,n=p(e);return s(n,{crossOrigin:"anonymous",as:"fetch"}).then((function(){return t.loadPageDataJson(e)}))},t.hovering=function(e){this.loadPage(e)},t.getResourceURLsForPathname=function(e){var t=(0,l.Cj)(e),n=this.pageDataDb.get(t);if(n){var r=m(n.payload);return[].concat((0,i.Z)(v(r.page.componentChunkName)),[p(t)])}return null},t.isPageNotFound=function(e){var t=(0,l.Cj)(e),n=this.pageDb.get(t);return!n||n.notFound},t.loadAppData=function(e){var t=this;return void 0===e&&(e=0),this.memoizedGet("/page-data/app-data.json").then((function(n){var r,i=n.status,o=n.responseText;if(200!==i&&e<3)return t.loadAppData(e+1);if(200===i)try{var a=JSON.parse(o);if(void 0===a.webpackCompilationHash)throw new Error("not a valid app-data response");r=a}catch(s){}return r}))},e}(),v=function(e){return(window.___chunkMapping[e]||[]).map((function(e){return""+e}))},b=function(e){function t(t,n,r){var i;return i=e.call(this,(function(e){if(!t.components[e])throw new Error("We couldn't find the correct component chunk with the name "+e);return t.components[e]().then(d).catch((function(e){return e}))}),n)||this,r&&i.pageDataDb.set(r.path,{pagePath:r.path,payload:r,status:"success"}),i}(0,r.Z)(t,e);var n=t.prototype;return n.doPrefetch=function(t){return e.prototype.doPrefetch.call(this,t).then((function(e){if(e.status!==c.Success)return Promise.resolve();var t=e.payload,n=t.componentChunkName,r=v(n);return Promise.all(r.map(s)).then((function(){return t}))}))},n.loadPageDataJson=function(t){return e.prototype.loadPageDataJson.call(this,t).then((function(e){return e.notFound?f(t,"HEAD").then((function(t){return 200===t.status?{status:c.Error}:e})):e}))},t}(g),y=function(e){h=e},D={enqueue:function(e){return h.prefetch(e)},getResourceURLsForPathname:function(e){return h.getResourceURLsForPathname(e)},loadPage:function(e){return h.loadPage(e)},loadPageSync:function(e,t){return void 0===t&&(t={}),h.loadPageSync(e,t)},prefetch:function(e){return h.prefetch(e)},isPageNotFound:function(e){return h.isPageNotFound(e)},hovering:function(e){return h.hovering(e)},loadAppData:function(){return h.loadAppData()}},w=D;function E(){return h?h.staticQueryDb:{}}},804:function(e,t,n){"use strict";var r=n(366),i=n(7294),o=n(7343),a=n(2257),s=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.Z)(t,e),t.prototype.render=function(){var e=Object.assign({},this.props,{params:Object.assign({},(0,a.GA)(this.props.location.pathname),this.props.pageResources.json.pageContext.__params)}),t=(0,i.createElement)(this.props.pageResources.component,Object.assign({},e,{key:this.props.path||this.props.pageResources.page.path}));return(0,o.h)("wrapPageElement",{element:t,props:e},t,(function(t){return{element:t.result,props:e}})).pop()},t}(i.Component);t.Z=s},9917:function(e,t,n){"use strict";var r=n(366),i=n(7343),o=n(7294),a=n(3935),s=n(9499),u=n(9679),l=n(5444),c=n(8741),d=n(969),p=n(8110),f={id:"gatsby-announcer",style:{position:"absolute",top:0,width:1,height:1,padding:0,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0},"aria-live":"assertive","aria-atomic":"true"},h=n(2393),m=n(8037);function g(e){var t=(0,d.J)(e),n=window.location,r=n.hash,i=n.search;return null!=t&&(window.___replace(t.toPath+i+r),!0)}var v="";window.addEventListener("unhandledrejection",(function(e){/loading chunk \d* failed./i.test(e.reason)&&v&&(window.location.pathname=v)}));var b=function(e,t){g(e.pathname)||(v=e.pathname,(0,i.h)("onPreRouteUpdate",{location:e,prevLocation:t}))},y=function(e,t){g(e.pathname)||(0,i.h)("onRouteUpdate",{location:e,prevLocation:t})},D=function(e,t){if(void 0===t&&(t={}),"number"!=typeof e){var n=(0,m.cP)(e),r=n.pathname,o=n.search,a=n.hash,u=(0,d.J)(r);if(u&&(e=u.toPath+o+a),window.___swUpdated)window.location=r+o+a;else{var l=setTimeout((function(){p.Z.emit("onDelayedLoadPageResources",{pathname:r}),(0,i.h)("onRouteUpdateDelayed",{location:window.location})}),1e3);c.ZP.loadPage(r).then((function(n){if(!n||n.status===c.uQ.Error)return window.history.replaceState({},"",location.href),window.location=r,void clearTimeout(l);n&&n.page.webpackCompilationHash!==window.___webpackCompilationHash&&("serviceWorker"in navigator&&null!==navigator.serviceWorker.controller&&"activated"===navigator.serviceWorker.controller.state&&navigator.serviceWorker.controller.postMessage({gatsbyApi:"clearPathResources"}),window.location=r+o+a),(0,s.navigate)(e,t),clearTimeout(l)}))}}else h.V5.navigate(e)};function w(e,t){var n=this,r=t.location,o=r.pathname,a=r.hash,s=(0,i.h)("shouldUpdateScroll",{prevRouterProps:e,pathname:o,routerProps:{location:r},getSavedScrollPosition:function(e){return[0,n._stateStorage.read(e,e.key)]}});if(s.length>0)return s[s.length-1];if(e&&e.location.pathname===o)return a?decodeURI(a.slice(1)):[0,0];return!0}var E=function(e){function t(t){var n;return(n=e.call(this,t)||this).announcementRef=o.createRef(),n}(0,r.Z)(t,e);var n=t.prototype;return n.componentDidUpdate=function(e,t){var n=this;requestAnimationFrame((function(){var e="new page at "+n.props.location.pathname;document.title&&(e=document.title);var t=document.querySelectorAll("#gatsby-focus-wrapper h1");t&&t.length&&(e=t[0].textContent);var r="Navigated to "+e;n.announcementRef.current&&(n.announcementRef.current.innerText!==r&&(n.announcementRef.current.innerText=r))}))},n.render=function(){return o.createElement("div",Object.assign({},f,{ref:this.announcementRef}))},t}(o.Component),C=function(e,t){var n,r;return e.href!==t.href||(null==e||null===(n=e.state)||void 0===n?void 0:n.key)!==(null==t||null===(r=t.state)||void 0===r?void 0:r.key)},x=function(e){function t(t){var n;return n=e.call(this,t)||this,b(t.location,null),n}(0,r.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){y(this.props.location,null)},n.shouldComponentUpdate=function(e){return!!C(e.location,this.props.location)&&(b(this.props.location,e.location),!0)},n.componentDidUpdate=function(e){C(e.location,this.props.location)&&y(this.props.location,e.location)},n.render=function(){return o.createElement(o.Fragment,null,this.props.children,o.createElement(E,{location:location}))},t}(o.Component),A=n(804),S=n(4999);function k(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}var F=function(e){function t(t){var n;n=e.call(this)||this;var r=t.location,i=t.pageResources;return n.state={location:Object.assign({},r),pageResources:i||c.ZP.loadPageSync(r.pathname,{withErrorDetails:!0})},n}(0,r.Z)(t,e),t.getDerivedStateFromProps=function(e,t){var n=e.location;return t.location.href!==n.href?{pageResources:c.ZP.loadPageSync(n.pathname,{withErrorDetails:!0}),location:Object.assign({},n)}:{location:Object.assign({},n)}};var n=t.prototype;return n.loadResources=function(e){var t=this;c.ZP.loadPage(e).then((function(n){n&&n.status!==c.uQ.Error?t.setState({location:Object.assign({},window.location),pageResources:n}):(window.history.replaceState({},"",location.href),window.location=e)}))},n.shouldComponentUpdate=function(e,t){return t.pageResources?this.state.pageResources!==t.pageResources||(this.state.pageResources.component!==t.pageResources.component||(this.state.pageResources.json!==t.pageResources.json||(!(this.state.location.key===t.location.key||!t.pageResources.page||!t.pageResources.page.matchPath&&!t.pageResources.page.path)||function(e,t,n){return k(e.props,t)||k(e.state,n)}(this,e,t)))):(this.loadResources(e.location.pathname),!1)},n.render=function(){return this.props.children(this.state)},t}(o.Component),O=n(1578),P=new c.kL(S,[],window.pageData);(0,c.N1)(P),P.setApiRunner(i.h),window.asyncRequires=S,window.___emitter=p.Z,window.___loader=c.jN,h.V5.listen((function(e){e.location.action=e.action})),window.___push=function(e){return D(e,{replace:!1})},window.___replace=function(e){return D(e,{replace:!0})},window.___navigate=function(e,t){return D(e,t)},g(window.location.pathname),(0,i.I)("onClientEntry").then((function(){(0,i.h)("registerServiceWorker").filter(Boolean).length>0&&n(154);var e=function(e){return o.createElement(s.BaseContext.Provider,{value:{baseuri:"/",basepath:"/"}},o.createElement(A.Z,e))},t=o.createContext({}),d=function(e){function n(){return e.apply(this,arguments)||this}return(0,r.Z)(n,e),n.prototype.render=function(){var e=this.props.children;return o.createElement(s.Location,null,(function(n){var r=n.location;return o.createElement(F,{location:r},(function(n){var r=n.pageResources,i=n.location,a=(0,c.hs)();return o.createElement(l.B9.Provider,{value:a},o.createElement(t.Provider,{value:{pageResources:r,location:i}},e))}))}))},n}(o.Component),p=function(n){function i(){return n.apply(this,arguments)||this}return(0,r.Z)(i,n),i.prototype.render=function(){var n=this;return o.createElement(t.Consumer,null,(function(t){var r=t.pageResources,i=t.location;return o.createElement(x,{location:i},o.createElement(u.$C,{location:i,shouldUpdateScroll:w},o.createElement(s.Router,{basepath:"",location:i,id:"gatsby-focus-wrapper"},o.createElement(e,Object.assign({path:"/404.html"===r.page.path?(0,O.Z)(i.pathname,""):encodeURI(r.page.matchPath||r.page.path)},n.props,{location:i,pageResources:r},r.json)))))}))},i}(o.Component),f=window,h=f.pagePath,m=f.location;h&&""+h!==m.pathname&&!(P.findMatchPath((0,O.Z)(m.pathname,""))||"/404.html"===h||h.match(/^\/404\/?$/)||h.match(/^\/offline-plugin-app-shell-fallback\/?$/))&&(0,s.navigate)(""+h+m.search+m.hash,{replace:!0}),c.jN.loadPage(m.pathname).then((function(e){if(!e||e.status===c.uQ.Error){var t="page resources for "+m.pathname+" not found. Not rendering React";if(e&&e.error)throw console.error(t),e.error;throw new Error(t)}window.___webpackCompilationHash=e.page.webpackCompilationHash;var n=(0,i.h)("wrapRootElement",{element:o.createElement(p,null)},o.createElement(p,null),(function(e){return{element:e.result}})).pop(),r=function(){var e=o.useRef(!1);return o.useEffect((function(){e.current||(e.current=!0,performance.mark&&performance.mark("onInitialClientRender"),(0,i.h)("onInitialClientRender"))}),[]),o.createElement(d,null,n)},s=(0,i.h)("replaceHydrateFunction",void 0,a.hydrateRoot?a.hydrateRoot:a.hydrate)[0];function u(){var e="undefined"!=typeof window?document.getElementById("___gatsby"):null;s===a.hydrateRoot?s(e,o.createElement(r,null)):s(o.createElement(r,null),e)}var l=document;if("complete"===l.readyState||"loading"!==l.readyState&&!l.documentElement.doScroll)setTimeout((function(){u()}),0);else{var f=function e(){l.removeEventListener("DOMContentLoaded",e,!1),window.removeEventListener("load",e,!1),u()};l.addEventListener("DOMContentLoaded",f,!1),window.addEventListener("load",f,!1)}}))}))},6947:function(e,t,n){"use strict";n.r(t);var r=n(7294),i=n(8741),o=n(804);t.default=function(e){var t=e.location,n=i.ZP.loadPageSync(t.pathname);return n?r.createElement(o.Z,Object.assign({location:t,pageResources:n},n.json)):null}},861:function(e,t,n){var r;e.exports=(r=n(6947))&&r.default||r},3639:function(e,t){t.polyfill=function(e){return e}},969:function(e,t,n){"use strict";n.d(t,{J:function(){return o}});var r=new Map,i=new Map;function o(e){var t=r.get(e);return t||(t=i.get(e.toLowerCase())),t}[].forEach((function(e){e.ignoreCase?i.set(e.fromPath,e):r.set(e.fromPath,e)}))},154:function(e,t,n){"use strict";n.r(t);var r=n(7343);"https:"!==window.location.protocol&&"localhost"!==window.location.hostname?console.error("Service workers can only be used over HTTPS, or on localhost for development"):"serviceWorker"in navigator&&navigator.serviceWorker.register("/sw.js").then((function(e){e.addEventListener("updatefound",(function(){(0,r.h)("onServiceWorkerUpdateFound",{serviceWorker:e});var t=e.installing;console.log("installingWorker",t),t.addEventListener("statechange",(function(){switch(t.state){case"installed":navigator.serviceWorker.controller?(window.___swUpdated=!0,(0,r.h)("onServiceWorkerUpdateReady",{serviceWorker:e}),window.___failedResources&&(console.log("resources failed, SW updated - reloading"),window.location.reload())):(console.log("Content is now available offline!"),(0,r.h)("onServiceWorkerInstalled",{serviceWorker:e}));break;case"redundant":console.error("The installing service worker became redundant."),(0,r.h)("onServiceWorkerRedundant",{serviceWorker:e});break;case"activated":(0,r.h)("onServiceWorkerActive",{serviceWorker:e})}}))}))})).catch((function(e){console.error("Error during service worker registration:",e)}))},1578:function(e,t,n){"use strict";function r(e,t){return void 0===t&&(t=""),t?e===t?"/":e.startsWith(t+"/")?e.slice(t.length):e:e}n.d(t,{Z:function(){return r}})},8896:function(e,t,n){"use strict";n.r(t),n.d(t,{onRouteUpdate:function(){return Ge},wrapPageElement:function(){return $e}});var r=n(7294),i=n(5444),o=n(9063),a=n(1009),s=n(974),u=n(8278),l=n(8634),c=n(2656),d=n.n(c),p=n(3797),f=n(2980),h=n(6552),m=n(4038),g=n(1083),v=n(366),b=n(5697),y=n.n(b),D=n(2565),w=n.n(D),E=n(3935),C=n(3033),x={children:y().node.isRequired,node:y().any},A=function(e){function t(){return e.apply(this,arguments)||this}(0,v.Z)(t,e);var n=t.prototype;return n.componentWillUnmount=function(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null},n.render=function(){return C.Nq?(this.props.node||this.defaultNode||(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),E.createPortal(this.props.children,this.props.node||this.defaultNode)):null},t}(r.Component);A.propTypes=x;var S=A,k=n(8663);function F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;t0&&(e.preventDefault(),e.stopPropagation(),n[0].focus())}},n.onOpened=function(e,t){this.props.onOpened(),(this.props.modalTransition.onEntered||P)(e,t)},n.onClosed=function(e){var t=this.props.unmountOnClose;this.props.onClosed(),(this.props.modalTransition.onExited||P)(e),t&&this.destroy(),this.close(),this._isMounted&&this.setState({isOpen:!1})},n.setFocus=function(){this._dialog&&this._dialog.parentNode&&"function"==typeof this._dialog.parentNode.focus&&this._dialog.parentNode.focus()},n.getFocusableChildren=function(){return this._element.querySelectorAll(C.ku.join(", "))},n.getFocusedChild=function(){var e,t=this.getFocusableChildren();try{e=document.activeElement}catch(n){e=t[0]}return e},n.handleBackdropClick=function(e){if(e.target===this._mouseDownElement){e.stopPropagation();var t=this._dialog?this._dialog.parentNode:null;if(t&&e.target===t&&"static"===this.props.backdrop&&this.handleStaticBackdropAnimation(),!this.props.isOpen||!0!==this.props.backdrop)return;t&&e.target===t&&this.props.toggle&&this.props.toggle(e)}},n.handleTab=function(e){if(9===e.which&&!(this.modalIndex=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function K(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n