From 517a443636daa1e8085cb4e5325524a54e8a8fd7 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 17 Oct 2023 11:30:23 +0200 Subject: Merging upstream version 1.43.0. Signed-off-by: Daniel Baumann --- web/gui/v2/6290.cf33d7ac6ef66c65cff4.js | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 web/gui/v2/6290.cf33d7ac6ef66c65cff4.js (limited to 'web/gui/v2/6290.cf33d7ac6ef66c65cff4.js') diff --git a/web/gui/v2/6290.cf33d7ac6ef66c65cff4.js b/web/gui/v2/6290.cf33d7ac6ef66c65cff4.js new file mode 100644 index 00000000..8cff607e --- /dev/null +++ b/web/gui/v2/6290.cf33d7ac6ef66c65cff4.js @@ -0,0 +1,2 @@ +/*! For license information please see 6290.cf33d7ac6ef66c65cff4.js.LICENSE.txt */ +!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4d385d48-417e-4cd6-9062-590f770c1024",e._sentryDebugIdIdentifier="sentry-dbid-4d385d48-417e-4cd6-9062-590f770c1024")}catch(e){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"0c0a7a41a0e7ecb4870dbce38dbd7d5e0913bb7f"},(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[6290],{17563:function(e,t,n){const r=n(70610),o=n(44020),i=n(80500),a=n(92806),s=Symbol("encodeFragmentIdentifier");function u(e){if("string"!==typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function l(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function c(e,t){return t.decode?o(e):e}function d(e){return Array.isArray(e)?e.sort():"object"===typeof e?d(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function f(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function p(e){const t=(e=f(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function v(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"===typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function h(e,t){u((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"colon-list-separator":return(e,n,r)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const o="string"===typeof n&&n.includes(e.arrayFormatSeparator),i="string"===typeof n&&!o&&c(n,e).includes(e.arrayFormatSeparator);n=i?c(n,e):n;const a=o||i?n.split(e.arrayFormatSeparator).map((t=>c(t,e))):null===n?n:c(n,e);r[t]=a};case"bracket-separator":return(t,n,r)=>{const o=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!o)return void(r[t]=n?c(n,e):n);const i=null===n?[]:n.split(e.arrayFormatSeparator).map((t=>c(t,e)));void 0!==r[t]?r[t]=[].concat(r[t],i):r[t]=i};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!==typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const o of e.split("&")){if(""===o)continue;let[e,a]=i(t.decode?o.replace(/\+/g," "):o,"=");a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:c(a,t),n(c(e,t),a,r)}for(const o of Object.keys(r)){const e=r[o];if("object"===typeof e&&null!==e)for(const n of Object.keys(e))e[n]=v(e[n],t);else r[o]=v(e,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const n=r[t];return Boolean(n)&&"object"===typeof n&&!Array.isArray(n)?e[t]=d(n):e[t]=n,e}),Object.create(null))}t.extract=p,t.parse=h,t.stringify=(e,t)=>{if(!e)return"";u((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>{return t.skipNull&&(null===(r=e[n])||void 0===r)||t.skipEmptyString&&""===e[n];var r},r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const o=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[l(t,e),"[",o,"]"].join("")]:[...n,[l(t,e),"[",l(o,e),"]=",l(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[l(t,e),"[]"].join("")]:[...n,[l(t,e),"[]=",l(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[l(t,e),":list="].join("")]:[...n,[l(t,e),":list=",l(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?r:(o=null===o?"":o,0===r.length?[[l(n,e),t,l(o,e)].join("")]:[[r,l(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,l(t,e)]:[...n,[l(t,e),"=",l(r,e)].join("")]}}(t),o={};for(const a of Object.keys(e))n(a)||(o[a]=e[a]);const i=Object.keys(o);return!1!==t.sort&&i.sort(t.sort),i.map((n=>{const o=e[n];return void 0===o?"":null===o?l(n,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?l(n,t)+"[]":o.reduce(r(n),[]).join("&"):l(n,t)+"="+l(o,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[n,r]=i(e,"#");return Object.assign({url:n.split("?")[0]||"",query:h(p(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:c(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0,[s]:!0},n);const r=f(e.url).split("?")[0]||"",o=t.extract(e.url),i=t.parse(o,{sort:!1}),a=Object.assign(i,e.query);let u=t.stringify(a,n);u&&(u=`?${u}`);let c=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(c=`#${n[s]?l(e.fragmentIdentifier,n):e.fragmentIdentifier}`),`${r}${u}${c}`},t.pick=(e,n,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[s]:!1},r);const{url:o,query:i,fragmentIdentifier:u}=t.parseUrl(e,r);return t.stringifyUrl({url:o,query:a(i,n),fragmentIdentifier:u},r)},t.exclude=(e,n,r)=>{const o=Array.isArray(n)?e=>!n.includes(e):(e,t)=>!n(e,t);return t.pick(e,o,r)}},83656:function(e,t,n){n.d(t,{Z5:function(){return xo},_l:function(){return li},bK:function(){return pi}});var r=n(67294),o=n(94578),i=n(87462),a=n(1413);function s(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var u="function"===typeof Symbol&&Symbol.observable||"@@observable",l=function(){return Math.random().toString(36).substring(7).split("").join(".")},c={INIT:"@@redux/INIT"+l(),REPLACE:"@@redux/REPLACE"+l(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+l()}};function d(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function f(e,t,n){var r;if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(s(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(s(1));return n(f)(e,t)}if("function"!==typeof e)throw new Error(s(2));var o=e,i=t,a=[],l=a,p=!1;function v(){l===a&&(l=a.slice())}function h(){if(p)throw new Error(s(3));return i}function m(e){if("function"!==typeof e)throw new Error(s(4));if(p)throw new Error(s(5));var t=!0;return v(),l.push(e),function(){if(t){if(p)throw new Error(s(6));t=!1,v();var n=l.indexOf(e);l.splice(n,1),a=null}}}function g(e){if(!d(e))throw new Error(s(7));if("undefined"===typeof e.type)throw new Error(s(8));if(p)throw new Error(s(9));try{p=!0,i=o(i,e)}finally{p=!1}for(var t=a=l,n=0;n=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function X(e,t){return e===t}function Q(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?M:n,o=t.mapStateToPropsFactories,a=void 0===o?j:o,s=t.mapDispatchToPropsFactories,u=void 0===s?G:s,l=t.mergePropsFactories,c=void 0===l?z:l,d=t.selectorFactory,f=void 0===d?Y:d;return function(e,t,n,o){void 0===o&&(o={});var s=o,l=s.pure,d=void 0===l||l,p=s.areStatesEqual,v=void 0===p?X:p,h=s.areOwnPropsEqual,m=void 0===h?V:h,g=s.areStatePropsEqual,b=void 0===g?V:g,y=s.areMergedPropsEqual,S=void 0===y?V:y,E=(0,_.Z)(s,K),w=J(e,a,"mapStateToProps"),I=J(t,u,"mapDispatchToProps"),R=J(n,c,"mergeProps");return r(f,(0,i.Z)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:w,initMapDispatchToProps:I,initMergeProps:R,pure:d,areStatesEqual:v,areOwnPropsEqual:m,areStatePropsEqual:b,areMergedPropsEqual:S},E))}}var ee=Q();var te,ne=n(73935);te=ne.unstable_batchedUpdates,g=te;var re=n(51163),oe=n(27642),ie=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function ae(e,t){if(e.length!==t.length)return!1;for(var n=0;n");return t.callbacks},t.setCallbacks=function(e){t.callbacks=e},t}(0,o.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.unbind=de(window,[{eventName:"error",fn:this.onWindowError}])},n.componentDidCatch=function(e){if(!(e instanceof ve))throw e;this.setState({})},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},t}(r.Component),ge=function(e){return e+1},be=function(e,t){var n=e.droppableId===t.droppableId,r=ge(e.index),o=ge(t.index);return n?"\n You have moved the item from position "+r+"\n to position "+o+"\n ":"\n You have moved the item from position "+r+"\n in list "+e.droppableId+"\n to list "+t.droppableId+"\n in position "+o+"\n "},ye=function(e,t,n){return t.droppableId===n.droppableId?"\n The item "+e+"\n has been combined with "+n.draggableId:"\n The item "+e+"\n in list "+t.droppableId+"\n has been combined with "+n.draggableId+"\n in list "+n.droppableId+"\n "},Se=function(e){return"\n The item has returned to its starting position\n of "+ge(e.index)+"\n"},Ee={dragHandleUsageInstructions:"\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n",onDragStart:function(e){return"\n You have lifted an item in position "+ge(e.source.index)+"\n"},onDragUpdate:function(e){var t=e.destination;if(t)return be(e.source,t);var n=e.combine;return n?ye(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},onDragEnd:function(e){if("CANCEL"===e.reason)return"\n Movement cancelled.\n "+Se(e.source)+"\n ";var t=e.destination,n=e.combine;return t?"\n You have dropped the item.\n "+be(e.source,t)+"\n ":n?"\n You have dropped the item.\n "+ye(e.draggableId,e.source,n)+"\n ":"\n The item has been dropped while not over a drop area.\n "+Se(e.source)+"\n "}},we={x:0,y:0},_e=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},Ie=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},Re=function(e,t){return e.x===t.x&&e.y===t.y},Ce=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},xe=function(e,t,n){var r;return void 0===n&&(n=0),(r={})[e]=t,r["x"===e?"y":"x"]=n,r},Te=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},De=function(e,t){return Math.min.apply(Math,t.map((function(t){return Te(e,t)})))},Oe=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}},Ae=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},Ne=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},Pe=function(e,t){return t&&t.shouldClipSubject?function(e,t){var n=(0,oe.Dz)({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n}(t.pageMarginBox,e):(0,oe.Dz)(e)},Le=function(e){var t=e.page,n=e.withPlaceholder,r=e.axis,o=e.frame,a=function(e,t){return t?Ae(e,t.scroll.diff.displacement):e}(t.marginBox,o),s=function(e,t,n){var r;return n&&n.increasedBy?(0,i.Z)({},e,((r={})[t.end]=e[t.end]+n.increasedBy[t.line],r)):e}(a,r,n);return{page:t,withPlaceholder:n,active:Pe(s,o)}},ke=function(e,t){e.frame||he(!1);var n=e.frame,r=Ie(t,n.scroll.initial),o=Ce(r),a=(0,i.Z)({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:o},max:n.scroll.max}}),s=Le({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:a});return(0,i.Z)({},e,{frame:a,subject:s})};function Me(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function Be(e,t){if(e.findIndex)return e.findIndex(t);for(var n=0;ne.bottom,s=r.lefte.right;return!(!a||!s)||(a&&i||s&&o)}},et=function(e){var t=Xe(e.top,e.bottom),n=Xe(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)}},tt={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},nt={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},rt=function(e){var t=e.target,n=e.destination,r=e.viewport,o=e.withDroppableDisplacement,i=e.isVisibleThroughFrameFn,a=o?function(e,t){var n=t.frame?t.frame.scroll.diff.displacement:we;return Ae(e,n)}(t,n):t;return function(e,t,n){return!!t.subject.active&&n(t.subject.active)(e)}(a,n,i)&&function(e,t,n){return n(t)(e)}(a,r,i)},ot=function(e){return rt((0,i.Z)({},e,{isVisibleThroughFrameFn:Qe}))},it=function(e){return rt((0,i.Z)({},e,{isVisibleThroughFrameFn:et}))},at=function(e,t,n){if("boolean"===typeof n)return n;if(!t)return!0;var r=t.invisible,o=t.visible;if(r[e])return!1;var i=o[e];return!i||i.shouldAnimate};function st(e){var t=e.afterDragging,n=e.destination,r=e.displacedBy,o=e.viewport,i=e.forceShouldAnimate,a=e.last;return t.reduce((function(e,t){var s=function(e,t){var n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return(0,oe.Dz)((0,oe.jn)(n,r))}(t,r),u=t.descriptor.id;if(e.all.push(u),!ot({target:s,destination:n,viewport:o,withDroppableDisplacement:!0}))return e.invisible[t.descriptor.id]=!0,e;var l={draggableId:u,shouldAnimate:at(u,a,i)};return e.visible[u]=l,e}),{all:[],visible:{},invisible:{}})}function ut(e){var t=e.insideDestination,n=e.inHomeList,r=e.displacedBy,o=e.destination,i=function(e,t){if(!e.length)return 0;var n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}(t,{inHomeList:n});return{displaced:Ke,displacedBy:r,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:i}}}}function lt(e){var t=e.draggable,n=e.insideDestination,r=e.destination,o=e.viewport,i=e.displacedBy,a=e.last,s=e.index,u=e.forceShouldAnimate,l=qe(t,r);if(null==s)return ut({insideDestination:n,inHomeList:l,displacedBy:i,destination:r});var c=Ve(n,(function(e){return e.descriptor.index===s}));if(!c)return ut({insideDestination:n,inHomeList:l,displacedBy:i,destination:r});var d=$e(t,n),f=n.indexOf(c);return{displaced:st({afterDragging:d.slice(f),destination:r,displacedBy:i,last:a,viewport:o.frame,forceShouldAnimate:u}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:s}}}}function ct(e,t){return Boolean(t.effected[e])}var dt=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,o=e.draggables,i=e.destination,a=e.insideDestination,s=e.previousImpact,u=e.viewport,l=e.afterCritical,c=s.at;if(c||he(!1),"REORDER"===c.type){var d=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.insideDestination,o=e.location;if(!r.length)return null;var i=o.index,a=t?i+1:i-1,s=r[0].descriptor.index,u=r[r.length-1].descriptor.index;return a(n?u:u+1)?null:a}({isMovingForward:t,isInHomeList:n,location:c.destination,insideDestination:a});return null==d?null:lt({draggable:r,insideDestination:a,destination:i,viewport:u,last:s.displaced,displacedBy:s.displacedBy,index:d})}var f=function(e){var t=e.isMovingForward,n=e.destination,r=e.draggables,o=e.combine,i=e.afterCritical;if(!n.isCombineEnabled)return null;var a=o.draggableId,s=r[a].descriptor.index;return ct(a,i)?t?s:s-1:t?s+1:s}({isMovingForward:t,destination:i,displaced:s.displaced,draggables:o,combine:c.combine,afterCritical:l});return null==f?null:lt({draggable:r,insideDestination:a,destination:i,viewport:u,last:s.displaced,displacedBy:s.displacedBy,index:f})},ft=function(e){var t=e.afterCritical,n=e.impact,r=e.draggables,o=We(n);o||he(!1);var i=o.draggableId,a=r[i].page.borderBox.center,s=function(e){var t=e.displaced,n=e.afterCritical,r=e.combineWith,o=e.displacedBy,i=Boolean(t.visible[r]||t.invisible[r]);return ct(r,n)?i?we:Ce(o.point):i?o.point:we}({displaced:n.displaced,afterCritical:t,combineWith:i,displacedBy:n.displacedBy});return _e(a,s)},pt=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},vt=function(e,t,n){return t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2},ht=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return xe(t.line,n.marginBox[t.end]+pt(t,r),vt(t,n.marginBox,r))},mt=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return xe(t.line,n.marginBox[t.start]-function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2}(t,r),vt(t,n.marginBox,r))},gt=function(e){var t=e.impact,n=e.draggable,r=e.draggables,o=e.droppable,i=e.afterCritical,a=He(o.descriptor.id,r),s=n.page,u=o.axis;if(!a.length)return function(e){var t=e.axis,n=e.moveInto,r=e.isMoving;return xe(t.line,n.contentBox[t.start]+pt(t,r),vt(t,n.contentBox,r))}({axis:u,moveInto:o.page,isMoving:s});var l=t.displaced,c=t.displacedBy,d=l.all[0];if(d){var f=r[d];if(ct(d,i))return mt({axis:u,moveRelativeTo:f.page,isMoving:s});var p=(0,oe.cv)(f.page,c.point);return mt({axis:u,moveRelativeTo:p,isMoving:s})}var v=a[a.length-1];if(v.descriptor.id===n.descriptor.id)return s.borderBox.center;if(ct(v.descriptor.id,i)){var h=(0,oe.cv)(v.page,Ce(i.displacedBy.point));return ht({axis:u,moveRelativeTo:h,isMoving:s})}return ht({axis:u,moveRelativeTo:v.page,isMoving:s})},bt=function(e,t){var n=e.frame;return n?_e(t,n.scroll.diff.displacement):t},yt=function(e){var t=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,i=e.afterCritical,a=n.page.borderBox.center,s=t.at;return r&&s?"REORDER"===s.type?gt({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:i}):ft({impact:t,draggables:o,afterCritical:i}):a}(e),n=e.droppable;return n?bt(n,t):t},St=function(e,t){var n=Ie(t,e.scroll.initial),r=Ce(n);return{frame:(0,oe.Dz)({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function Et(e,t){return e.map((function(e){return t[e]}))}var wt=function(e){var t=e.pageBorderBoxCenter,n=e.draggable,r=function(e,t){return _e(e.scroll.diff.displacement,t)}(e.viewport,t),o=Ie(r,n.page.borderBox.center);return _e(n.client.borderBox.center,o)},_t=function(e){var t=e.draggable,n=e.destination,r=e.newPageBorderBoxCenter,o=e.viewport,a=e.withDroppableDisplacement,s=e.onlyOnMainAxis,u=void 0!==s&&s,l=Ie(r,t.page.borderBox.center),c={target:Ae(t.page.borderBox,l),destination:n,withDroppableDisplacement:a,viewport:o};return u?function(e){return rt((0,i.Z)({},e,{isVisibleThroughFrameFn:(t=e.destination.axis,function(e){var n=Xe(e.top,e.bottom),r=Xe(e.left,e.right);return function(e){return t===tt?n(e.top)&&n(e.bottom):r(e.left)&&r(e.right)}})}));var t}(c):it(c)},It=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.draggables,a=e.previousImpact,s=e.viewport,u=e.previousPageBorderBoxCenter,l=e.previousClientSelection,c=e.afterCritical;if(!r.isEnabled)return null;var d=He(r.descriptor.id,o),f=qe(n,r),p=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.insideDestination,a=e.previousImpact;if(!r.isCombineEnabled)return null;if(!ze(a))return null;function s(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return(0,i.Z)({},a,{at:t})}var u=a.displaced.all,l=u.length?u[0]:null;if(t)return l?s(l):null;var c=$e(n,o);if(!l)return c.length?s(c[c.length-1].descriptor.id):null;var d=Be(c,(function(e){return e.descriptor.id===l}));-1===d&&he(!1);var f=d-1;return f<0?null:s(c[f].descriptor.id)}({isMovingForward:t,draggable:n,destination:r,insideDestination:d,previousImpact:a})||dt({isMovingForward:t,isInHomeList:f,draggable:n,draggables:o,destination:r,insideDestination:d,previousImpact:a,viewport:s,afterCritical:c});if(!p)return null;var v=yt({impact:p,draggable:n,droppable:r,draggables:o,afterCritical:c});if(_t({draggable:n,destination:r,newPageBorderBoxCenter:v,viewport:s.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:wt({pageBorderBoxCenter:v,draggable:n,viewport:s}),impact:p,scrollJumpRequest:null};var h=Ie(v,u),m=function(e){var t=e.impact,n=e.viewport,r=e.destination,o=e.draggables,a=e.maxScrollChange,s=St(n,_e(n.scroll.current,a)),u=r.frame?ke(r,_e(r.frame.scroll.current,a)):r,l=t.displaced,c=st({afterDragging:Et(l.all,o),destination:r,displacedBy:t.displacedBy,viewport:s.frame,last:l,forceShouldAnimate:!1}),d=st({afterDragging:Et(l.all,o),destination:u,displacedBy:t.displacedBy,viewport:n.frame,last:l,forceShouldAnimate:!1}),f={},p={},v=[l,c,d];return l.all.forEach((function(e){var t=function(e,t){for(var n=0;n1?c.sort((function(e,t){return Rt(e)[s.start]-Rt(t)[s.start]}))[0]:l.sort((function(e,t){var r=De(n,Ne(Rt(e))),o=De(n,Ne(Rt(t)));return r!==o?r-o:Rt(e)[s.start]-Rt(t)[s.start]}))[0]}({isMovingForward:t,pageBorderBoxCenter:n,source:o,droppables:a,viewport:s});if(!l)return null;var c=He(l.descriptor.id,i),d=function(e){var t=e.pageBorderBoxCenter,n=e.viewport,r=e.destination,o=e.insideDestination,i=e.afterCritical,a=o.filter((function(e){return it({target:xt(e,i),destination:r,viewport:n.frame,withDroppableDisplacement:!0})})).sort((function(e,n){var o=Te(t,bt(r,Ct(e,i))),a=Te(t,bt(r,Ct(n,i)));return or.left&&n.topr.top))return!1;if(kt(o)(t.center))return!0;var i=e.axis,a=o.center[i.crossAxisLine],s=t[i.crossAxisStart],u=t[i.crossAxisEnd],l=Xe(o[i.crossAxisStart],o[i.crossAxisEnd]),c=l(s),d=l(u);return!c&&!d||(c?sa)}));return o.length?1===o.length?o[0].descriptor.id:function(e){var t=e.pageBorderBox,n=e.draggable,r=e.candidates,o=n.page.borderBox.center,i=r.map((function(e){var n=e.axis,r=xe(e.axis.line,t.center[n.line],e.page.borderBox.center[n.crossAxisLine]);return{id:e.descriptor.id,distance:Te(o,r)}})).sort((function(e,t){return t.distance-e.distance}));return i[0]?i[0].id:null}({pageBorderBox:t,draggable:n,candidates:o}):null}var Bt=function(e,t){return(0,oe.Dz)(Ae(e,t))};function Vt(e){var t=e.displaced,n=e.id;return Boolean(t.visible[n]||t.invisible[n])}var Ft=function(e){var t=e.pageOffset,n=e.draggable,r=e.draggables,o=e.droppables,i=e.previousImpact,a=e.viewport,s=e.afterCritical,u=Bt(n.page.borderBox,t),l=Mt({pageBorderBox:u,draggable:n,droppables:o});if(!l)return Je;var c=o[l],d=He(c.descriptor.id,r),f=function(e,t){var n=e.frame;return n?Bt(t,n.scroll.diff.value):t}(c,u);return function(e){var t=e.draggable,n=e.pageBorderBoxWithDroppableScroll,r=e.previousImpact,o=e.destination,i=e.insideDestination,a=e.afterCritical;if(!o.isCombineEnabled)return null;var s=o.axis,u=Tt(o.axis,t.displaceBy),l=u.value,c=n[s.start],d=n[s.end],f=Ve($e(t,i),(function(e){var t=e.descriptor.id,n=e.page.borderBox,o=n[s.size]/4,i=ct(t,a),u=Vt({displaced:r.displaced,id:t});return i?u?d>n[s.start]+o&&dn[s.start]-l+o&&cn[s.start]+l+o&&dn[s.start]+o&&ct.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}({draggable:n,closest:Ve($e(n,o),(function(e){var t=e.descriptor.id,n=e.page.borderBox.center[u.line],r=ct(t,s),o=Vt({displaced:i,id:t});return r?o?f<=n:d=1500)return Rn;var i=In+Cn*(o/1500);return Number(("CANCEL"===r?.6*i:i).toFixed(2))}({current:o.current.client.offset,destination:g,reason:a});n(function(e){return{type:"DROP_ANIMATE",payload:e}}({newHomeClientOffset:g,dropDuration:y,completed:b}))}else n(vn({completed:b}))}}else n(function(e){return{type:"DROP_PENDING",payload:e}}({reason:a}))}else e(r)}}},Tn=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Dn(e){var t=e.onWindowScroll;var n=ue((function(){t(Tn())})),r=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(t){t.target!==window&&t.target!==window.document||e()}}}(n),o=ce;function i(){return o!==ce}return{start:function(){i()&&he(!1),o=de(window,[r])},stop:function(){i()||he(!1),n.cancel(),o(),o=ce},isActive:i}}var On=function(e){var t=Dn({onWindowScroll:function(t){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return function(e){return function(n){t.isActive()||"INITIAL_PUBLISH"!==n.type||t.start(),t.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n)&&t.stop(),e(n)}}},An=function(){var e=[];return{add:function(t){var n=setTimeout((function(){return function(t){var n=Be(e,(function(e){return e.timerId===t}));-1===n&&he(!1),e.splice(n,1)[0].callback()}(n)})),r={timerId:n,callback:t};e.push(r)},flush:function(){if(e.length){var t=[].concat(e);e.length=0,t.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}},Nn=function(e,t){$t(),t(),qt()},Pn=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},Ln=function(e,t,n,r){if(e){var o=function(e){var t=!1,n=!1,r=setTimeout((function(){n=!0})),o=function(o){t||n||(t=!0,e(o),clearTimeout(r))};return o.wasCalled=function(){return t},o}(n);e(t,{announce:o}),o.wasCalled()||n(r(t))}else n(r(t))},kn=function(e,t){var n=function(e,t){var n=An(),r=null,o=function(n){r||he(!1),r=null,Nn(0,(function(){return Ln(e().onDragEnd,n,t,Ee.onDragEnd)}))};return{beforeCapture:function(t,n){r&&he(!1),Nn(0,(function(){var r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})}))},beforeStart:function(t,n){r&&he(!1),Nn(0,(function(){var r=e().onBeforeDragStart;r&&r(Pn(t,n))}))},start:function(o,i){r&&he(!1);var a=Pn(o,i);r={mode:i,lastCritical:o,lastLocation:a.source,lastCombine:null},n.add((function(){Nn(0,(function(){return Ln(e().onDragStart,a,t,Ee.onDragStart)}))}))},update:function(o,a){var s=ze(a),u=We(a);r||he(!1);var l=!function(e,t){if(e===t)return!0;var n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r}(o,r.lastCritical);l&&(r.lastCritical=o);var c,d,f=(d=s,!(null==(c=r.lastLocation)&&null==d||null!=c&&null!=d&&c.droppableId===d.droppableId&&c.index===d.index));f&&(r.lastLocation=s);var p=!function(e,t){return null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId}(r.lastCombine,u);if(p&&(r.lastCombine=u),l||f||p){var v=(0,i.Z)({},Pn(o,r.mode),{combine:u,destination:s});n.add((function(){Nn(0,(function(){return Ln(e().onDragUpdate,v,t,Ee.onDragUpdate)}))}))}},flush:function(){r||he(!1),n.flush()},drop:o,abort:function(){if(r){var e=(0,i.Z)({},Pn(r.lastCritical,r.mode),{combine:null,destination:null,reason:"CANCEL"});o(e)}}}}(e,t);return function(e){return function(t){return function(r){if("BEFORE_INITIAL_CAPTURE"!==r.type){if("INITIAL_PUBLISH"===r.type){var o=r.payload.critical;return n.beforeStart(o,r.payload.movementMode),t(r),void n.start(o,r.payload.movementMode)}if("DROP_COMPLETE"===r.type){var i=r.payload.completed.result;return n.flush(),t(r),void n.drop(i)}if(t(r),"FLUSH"!==r.type){var a=e.getState();"DRAGGING"===a.phase&&n.update(a.critical,a.impact)}else n.abort()}else n.beforeCapture(r.payload.draggableId,r.payload.movementMode)}}}},Mn=function(e){return function(t){return function(n){if("DROP_ANIMATION_FINISHED"===n.type){var r=e.getState();"DROP_ANIMATING"!==r.phase&&he(!1),e.dispatch(vn({completed:r.completed}))}else t(n)}}},Bn=function(e){var t=null,n=null;return function(r){return function(o){if("FLUSH"!==o.type&&"DROP_COMPLETE"!==o.type&&"DROP_ANIMATION_FINISHED"!==o.type||(n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)),r(o),"DROP_ANIMATE"===o.type){var i={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};n=requestAnimationFrame((function(){n=null,t=de(window,[i])}))}}}},Vn=function(e){return function(t){return function(n){if(t(n),"PUBLISH_WHILE_DRAGGING"===n.type){var r=e.getState();"DROP_PENDING"===r.phase&&(r.isWaiting||e.dispatch(hn({reason:r.reason})))}}}},Fn=h,Un=function(e){var t,n=e.dimensionMarshal,r=e.focusMarshal,o=e.styleMarshal,i=e.getResponders,u=e.announce,l=e.autoScroller;return f(en,Fn(function(){for(var e=arguments.length,t=new Array(e),n=0;nt.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return Qn;if(e===t.startScrollingFrom)return 1;var n=nr({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),r=Qn*er(1-n);return Math.ceil(r)}(t,n);return 0===i?0:o?Math.max(function(e,t){var n=t,r=or,o=Date.now()-n;if(o>=or)return e;if(ot.height,i=n.width>t.width;return i||o?i&&o?null:{x:i?0:r.x,y:o?0:r.y}:r}({container:n,subject:r,proposedScroll:l});return c?Re(c,we)?null:c:null},lr=Oe((function(e){return 0===e?0:e>0?1:-1})),cr=function(){var e=function(e,t){return e<0?e:e>t?e-t:0};return function(t){var n=t.current,r=t.max,o=t.change,i=_e(n,o),a={x:e(i.x,r.x),y:e(i.y,r.y)};return Re(a,we)?null:a}}(),dr=function(e){var t=e.max,n=e.current,r=e.change,o={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},i=lr(r),a=cr({max:o,current:n,change:i});return!a||(0!==i.x&&0===a.x||0!==i.y&&0===a.y)},fr=function(e,t){return dr({current:e.scroll.current,max:e.scroll.max,change:t})},pr=function(e,t){var n=e.frame;return!!n&&dr({current:n.scroll.current,max:n.scroll.max,change:t})},vr=function(e){var t=e.state,n=e.dragStartTime,r=e.shouldUseTimeDampening,o=e.scrollWindow,i=e.scrollDroppable,a=t.current.page.borderBoxCenter,s=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){var u=function(e){var t=e.viewport,n=e.subject,r=e.center,o=e.dragStartTime,i=e.shouldUseTimeDampening,a=ur({dragStartTime:o,container:t.frame,subject:n,center:r,shouldUseTimeDampening:i});return a&&fr(t,a)?a:null}({dragStartTime:n,viewport:t.viewport,subject:s,center:a,shouldUseTimeDampening:r});if(u)return void o(u)}var l=Kn({center:a,destination:Nt(t.impact),droppables:t.dimensions.droppables});if(l){var c=function(e){var t=e.droppable,n=e.subject,r=e.center,o=e.dragStartTime,i=e.shouldUseTimeDampening,a=t.frame;if(!a)return null;var s=ur({dragStartTime:o,container:a.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:i});return s&&pr(t,s)?s:null}({dragStartTime:n,droppable:l,subject:s,center:a,shouldUseTimeDampening:r});c&&i(l.descriptor.id,c)}},hr=function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow,o=function(e,t){if(!pr(e,t))return t;var r=function(e,t){var n=e.frame;return n&&pr(e,t)?cr({current:n.scroll.current,max:n.scroll.max,change:t}):null}(e,t);if(!r)return n(e.descriptor.id,t),null;var o=Ie(t,r);return n(e.descriptor.id,o),Ie(t,o)},i=function(e,t,n){if(!e)return n;if(!fr(t,n))return n;var o=function(e,t){if(!fr(e,t))return null;var n=e.scroll.max,r=e.scroll.current;return cr({current:r,max:n,change:t})}(t,n);if(!o)return r(n),null;var i=Ie(n,o);return r(i),Ie(n,i)};return function(e){var n=e.scrollJumpRequest;if(n){var r=Nt(e.impact);r||he(!1);var a=o(e.dimensions.droppables[r],n);if(a){var s=e.viewport,u=i(e.isWindowScrollAllowed,s,a);u&&function(e,n){var r=_e(e.current.client.selection,n);t({client:r})}(e,u)}}}},mr=function(e){var t=e.scrollDroppable,n=e.scrollWindow,r=e.move,o=function(e){var t=e.scrollWindow,n=e.scrollDroppable,r=ue(t),o=ue(n),i=null,a=function(e){i||he(!1);var t=i,n=t.shouldUseTimeDampening,a=t.dragStartTime;vr({state:e,scrollWindow:r,scrollDroppable:o,dragStartTime:a,shouldUseTimeDampening:n})};return{start:function(e){$t(),i&&he(!1);var t=Date.now(),n=!1,r=function(){n=!0};vr({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:r,scrollDroppable:r}),i={dragStartTime:t,shouldUseTimeDampening:n},qt(),n&&a(e)},stop:function(){i&&(r.cancel(),o.cancel(),i=null)},scroll:a}}({scrollWindow:n,scrollDroppable:t}),i=hr({move:r,scrollWindow:n,scrollDroppable:t});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&i(e):o.scroll(e))},start:o.start,stop:o.stop}},gr="data-rbd",br=function(){var e=gr+"-drag-handle";return{base:e,draggableId:e+"-draggable-id",contextId:e+"-context-id"}}(),yr=function(){var e=gr+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),Sr=function(){var e=gr+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),Er={contextId:gr+"-scroll-container-context-id"},wr=function(e,t){return e.map((function(e){var n=e.styles[t];return n?e.selector+" { "+n+" }":""})).join(" ")},_r=function(e){var t,n=(t=e,function(e){return"["+e+'="'+t+'"]'}),r=function(){var e="\n cursor: -webkit-grab;\n cursor: grab;\n ";return{selector:n(br.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:e,dragging:"pointer-events: none;",dropAnimating:e}}}(),o=[function(){var e="\n transition: "+En.outOfTheWay+";\n ";return{selector:n(yr.contextId),styles:{dragging:e,dropAnimating:e,userCancel:e}}}(),r,{selector:n(Sr.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "}}];return{always:wr(o,"always"),resting:wr(o,"resting"),dragging:wr(o,"dragging"),dropAnimating:wr(o,"dropAnimating"),userCancel:wr(o,"userCancel")}},Ir="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?r.useLayoutEffect:r.useEffect,Rr=function(){var e=document.querySelector("head");return e||he(!1),e},Cr=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};var xr=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function Tr(e){return e instanceof xr(e).HTMLElement}function Dr(e,t){var n="["+br.contextId+'="'+e+'"]',r=Fe(document.querySelectorAll(n));if(!r.length)return null;var o=Ve(r,(function(e){return e.getAttribute(br.draggableId)===t}));return o&&Tr(o)?o:null}function Or(){var e={draggables:{},droppables:{}},t=[];function n(e){t.length&&t.forEach((function(t){return t(e)}))}function r(t){return e.draggables[t]||null}function o(t){return e.droppables[t]||null}return{draggable:{register:function(t){e.draggables[t.descriptor.id]=t,n({type:"ADDITION",value:t})},update:function(t,n){var r=e.draggables[n.descriptor.id];r&&r.uniqueId===t.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:function(t){var o=t.descriptor.id,i=r(o);i&&t.uniqueId===i.uniqueId&&(delete e.draggables[o],n({type:"REMOVAL",value:t}))},getById:function(e){var t=r(e);return t||he(!1),t},findById:r,exists:function(e){return Boolean(r(e))},getAllByType:function(t){return Me(e.draggables).filter((function(e){return e.descriptor.type===t}))}},droppable:{register:function(t){e.droppables[t.descriptor.id]=t},unregister:function(t){var n=o(t.descriptor.id);n&&t.uniqueId===n.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){var t=o(e);return t||he(!1),t},findById:o,exists:function(e){return Boolean(o(e))},getAllByType:function(t){return Me(e.droppables).filter((function(e){return e.descriptor.type===t}))}},subscribe:function(e){return t.push(e),function(){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var Ar=r.createContext(null),Nr=function(){var e=document.body;return e||he(!1),e},Pr={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Lr=function(e){return"rbd-announcement-"+e};var kr=0,Mr={separator:"::"};function Br(e,t){return void 0===t&&(t=Mr),(0,re.Ye)((function(){return""+e+t.separator+kr++}),[t.separator,e])}var Vr=r.createContext(null);function Fr(e){0}function Ur(e,t){Fr()}function Zr(e){var t=(0,r.useRef)(e);return(0,r.useEffect)((function(){t.current=e})),t}var Gr,jr=27,Hr=32,zr=37,Wr=38,$r=39,qr=40,Yr=((Gr={})[13]=!0,Gr[9]=!0,Gr),Kr=function(e){Yr[e.keyCode]&&e.preventDefault()},Jr=function(){var e="visibilitychange";return"undefined"===typeof document?e:Ve([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}(),Xr=0,Qr=5;var eo,to={type:"IDLE"};function no(e){var t=e.cancel,n=e.completed,r=e.getPhase,o=e.setPhase;return[{eventName:"mousemove",fn:function(e){var t=e.button,n=e.clientX,i=e.clientY;if(t===Xr){var a={x:n,y:i},s=r();if("DRAGGING"===s.type)return e.preventDefault(),void s.actions.move(a);"PENDING"!==s.type&&he(!1);var u=s.point;if(l=u,c=a,Math.abs(c.x-l.x)>=Qr||Math.abs(c.y-l.y)>=Qr){var l,c;e.preventDefault();var d=s.actions.fluidLift(a);o({type:"DRAGGING",actions:d})}}}},{eventName:"mouseup",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===r().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:function(e){if("PENDING"!==r().type)return e.keyCode===jr?(e.preventDefault(),void t()):void Kr(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===r().type&&t()}},{eventName:"webkitmouseforcedown",fn:function(e){var n=r();"IDLE"===n.type&&he(!1),n.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:Jr,fn:t}]}function ro(){}var oo=((eo={})[34]=!0,eo[33]=!0,eo[36]=!0,eo[35]=!0,eo);function io(e,t){function n(){t(),e.cancel()}return[{eventName:"keydown",fn:function(r){return r.keyCode===jr?(r.preventDefault(),void n()):r.keyCode===Hr?(r.preventDefault(),t(),void e.drop()):r.keyCode===qr?(r.preventDefault(),void e.moveDown()):r.keyCode===Wr?(r.preventDefault(),void e.moveUp()):r.keyCode===$r?(r.preventDefault(),void e.moveRight()):r.keyCode===zr?(r.preventDefault(),void e.moveLeft()):void(oo[r.keyCode]?r.preventDefault():Kr(r))}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:Jr,fn:n}]}var ao={type:"IDLE"},so=.15;var uo={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function lo(e,t){if(null==t)return!1;if(Boolean(uo[t.tagName.toLowerCase()]))return!0;var n=t.getAttribute("contenteditable");return"true"===n||""===n||t!==e&&lo(e,t.parentElement)}function co(e,t){var n=t.target;return!!Tr(n)&&lo(e,n)}var fo=function(e){return(0,oe.Dz)(e.getBoundingClientRect()).center};var po=function(){var e="matches";return"undefined"===typeof document?e:Ve([e,"msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||e}();function vo(e,t){return null==e?null:e[po](t)?e:vo(e.parentElement,t)}function ho(e,t){return e.closest?e.closest(t):vo(e,t)}function mo(e,t){var n,r=t.target;if(!((n=r)instanceof xr(n).Element))return null;var o=function(e){return"["+br.contextId+'="'+e+'"]'}(e),i=ho(r,o);return i&&Tr(i)?i:null}function go(e){e.preventDefault()}function bo(e){var t=e.expected,n=e.phase,r=e.isLockActive;e.shouldWarn;return!!r()&&t===n}function yo(e){var t=e.lockAPI,n=e.store,r=e.registry,o=e.draggableId;if(t.isClaimed())return!1;var i=r.draggable.findById(o);return!!i&&(!!i.options.isEnabled&&!!$n(n.getState(),o))}function So(e){var t=e.lockAPI,n=e.contextId,r=e.store,o=e.registry,a=e.draggableId,s=e.forceSensorStop,u=e.sourceEvent;if(!yo({lockAPI:t,store:r,registry:o,draggableId:a}))return null;var l=o.draggable.getById(a),c=function(e,t){var n="["+yr.contextId+'="'+e+'"]',r=Ve(Fe(document.querySelectorAll(n)),(function(e){return e.getAttribute(yr.id)===t}));return r&&Tr(r)?r:null}(n,l.descriptor.id);if(!c)return null;if(u&&!l.options.canDragInteractiveElements&&co(c,u))return null;var d=t.claim(s||ce),f="PRE_DRAG";function p(){return l.options.shouldRespectForcePress}function v(){return t.isActive(d)}var h=function(e,t){bo({expected:e,phase:f,isLockActive:v,shouldWarn:!0})&&r.dispatch(t())}.bind(null,"DRAGGING");function m(e){function n(){t.release(),f="COMPLETED"}function o(t,o){if(void 0===o&&(o={shouldBlockNextClick:!1}),e.cleanup(),o.shouldBlockNextClick){var i=de(window,[{eventName:"click",fn:go,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(i)}n(),r.dispatch(hn({reason:t}))}return"PRE_DRAG"!==f&&(n(),"PRE_DRAG"!==f&&he(!1)),r.dispatch(tn(e.liftActionArgs)),f="DRAGGING",(0,i.Z)({isActive:function(){return bo({expected:"DRAGGING",phase:f,isLockActive:v,shouldWarn:!1})},shouldRespectForcePress:p,drop:function(e){return o("DROP",e)},cancel:function(e){return o("CANCEL",e)}},e.actions)}return{isActive:function(){return bo({expected:"PRE_DRAG",phase:f,isLockActive:v,shouldWarn:!1})},shouldRespectForcePress:p,fluidLift:function(e){var t=ue((function(e){h((function(){return un({client:e})}))})),n=m({liftActionArgs:{id:a,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}});return(0,i.Z)({},n,{move:t})},snapLift:function(){var e={moveUp:function(){return h(ln)},moveRight:function(){return h(dn)},moveDown:function(){return h(cn)},moveLeft:function(){return h(fn)}};return m({liftActionArgs:{id:a,clientSelection:fo(c),movementMode:"SNAP"},cleanup:ce,actions:e})},abort:function(){bo({expected:"PRE_DRAG",phase:f,isLockActive:v,shouldWarn:!0})&&t.release()}}}var Eo=[function(e){var t=(0,r.useRef)(to),n=(0,r.useRef)(ce),o=(0,re.Ye)((function(){return{eventName:"mousedown",fn:function(t){if(!t.defaultPrevented&&t.button===Xr&&!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)){var r=e.findClosestDraggableId(t);if(r){var o=e.tryGetLock(r,s,{sourceEvent:t});if(o){t.preventDefault();var i={x:t.clientX,y:t.clientY};n.current(),c(o,i)}}}}}}),[e]),i=(0,re.Ye)((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(t){if(!t.defaultPrevented){var n=e.findClosestDraggableId(t);if(n){var r=e.findOptionsForDraggable(n);r&&(r.shouldRespectForcePress||e.canGetLock(n)&&t.preventDefault())}}}}}),[e]),a=(0,re.I4)((function(){n.current=de(window,[i,o],{passive:!1,capture:!0})}),[i,o]),s=(0,re.I4)((function(){"IDLE"!==t.current.type&&(t.current=to,n.current(),a())}),[a]),u=(0,re.I4)((function(){var e=t.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[s]),l=(0,re.I4)((function(){var e=no({cancel:u,completed:s,getPhase:function(){return t.current},setPhase:function(e){t.current=e}});n.current=de(window,e,{capture:!0,passive:!1})}),[u,s]),c=(0,re.I4)((function(e,n){"IDLE"!==t.current.type&&he(!1),t.current={type:"PENDING",point:n,actions:e},l()}),[l]);Ir((function(){return a(),function(){n.current()}}),[a])},function(e){var t=(0,r.useRef)(ro),n=(0,re.Ye)((function(){return{eventName:"keydown",fn:function(n){if(!n.defaultPrevented&&n.keyCode===Hr){var r=e.findClosestDraggableId(n);if(r){var i=e.tryGetLock(r,u,{sourceEvent:n});if(i){n.preventDefault();var a=!0,s=i.snapLift();t.current(),t.current=de(window,io(s,u),{capture:!0,passive:!1})}}}function u(){a||he(!1),a=!1,t.current(),o()}}}}),[e]),o=(0,re.I4)((function(){t.current=de(window,[n],{passive:!1,capture:!0})}),[n]);Ir((function(){return o(),function(){t.current()}}),[o])},function(e){var t=(0,r.useRef)(ao),n=(0,r.useRef)(ce),o=(0,re.I4)((function(){return t.current}),[]),i=(0,re.I4)((function(e){t.current=e}),[]),a=(0,re.Ye)((function(){return{eventName:"touchstart",fn:function(t){if(!t.defaultPrevented){var r=e.findClosestDraggableId(t);if(r){var o=e.tryGetLock(r,u,{sourceEvent:t});if(o){var i=t.touches[0],a={x:i.clientX,y:i.clientY};n.current(),f(o,a)}}}}}}),[e]),s=(0,re.I4)((function(){n.current=de(window,[a],{capture:!0,passive:!1})}),[a]),u=(0,re.I4)((function(){var e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),i(ao),n.current(),s())}),[s,i]),l=(0,re.I4)((function(){var e=t.current;u(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[u]),c=(0,re.I4)((function(){var e={capture:!0,passive:!1},t={cancel:l,completed:u,getPhase:o},r=de(window,function(e){var t=e.cancel,n=e.completed,r=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var n=r();if("DRAGGING"===n.type){n.hasMoved=!0;var o=e.touches[0],i={x:o.clientX,y:o.clientY};e.preventDefault(),n.actions.move(i)}else t()}},{eventName:"touchend",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===r().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:function(e){var n=r();"IDLE"===n.type&&he(!1);var o=e.touches[0];if(o&&o.force>=so){var i=n.actions.shouldRespectForcePress();if("PENDING"!==n.type)return i?n.hasMoved?void e.preventDefault():void t():void e.preventDefault();i&&t()}}},{eventName:Jr,fn:t}]}(t),e),i=de(window,function(e){var t=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===n().type?(e.keyCode===jr&&e.preventDefault(),t()):t()}},{eventName:Jr,fn:t}]}(t),e);n.current=function(){r(),i()}}),[l,o,u]),d=(0,re.I4)((function(){var e=o();"PENDING"!==e.type&&he(!1);var t=e.actions.fluidLift(e.point);i({type:"DRAGGING",actions:t,hasMoved:!1})}),[o,i]),f=(0,re.I4)((function(e,t){"IDLE"!==o().type&&he(!1);var n=setTimeout(d,120);i({type:"PENDING",point:t,actions:e,longPressTimerId:n}),c()}),[c,o,i,d]);Ir((function(){return s(),function(){n.current();var e=o();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),i(ao))}}),[o,s,i]),Ir((function(){return de(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}];function wo(e){var t=e.contextId,n=e.store,o=e.registry,i=e.customSensors,a=e.enableDefaultSensors,s=[].concat(a?Eo:[],i||[]),u=(0,r.useState)((function(){return function(){var e=null;function t(){e||he(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&he(!1);var n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()}))[0],l=(0,re.I4)((function(e,t){e.isDragging&&!t.isDragging&&u.tryAbandon()}),[u]);Ir((function(){var e=n.getState();return n.subscribe((function(){var t=n.getState();l(e,t),e=t}))}),[u,n,l]),Ir((function(){return u.tryAbandon}),[u.tryAbandon]);var c=(0,re.I4)((function(e){return yo({lockAPI:u,registry:o,store:n,draggableId:e})}),[u,o,n]),d=(0,re.I4)((function(e,r,i){return So({lockAPI:u,registry:o,contextId:t,store:n,draggableId:e,forceSensorStop:r,sourceEvent:i&&i.sourceEvent?i.sourceEvent:null})}),[t,u,o,n]),f=(0,re.I4)((function(e){return function(e,t){var n=mo(e,t);return n?n.getAttribute(br.draggableId):null}(t,e)}),[t]),p=(0,re.I4)((function(e){var t=o.draggable.findById(e);return t?t.options:null}),[o.draggable]),v=(0,re.I4)((function(){u.isClaimed()&&(u.tryAbandon(),"IDLE"!==n.getState().phase&&n.dispatch(pn()))}),[u,n]),h=(0,re.I4)(u.isClaimed,[u]),m=(0,re.Ye)((function(){return{canGetLock:c,tryGetLock:d,findClosestDraggableId:f,findOptionsForDraggable:p,tryReleaseLock:v,isLockClaimed:h}}),[c,d,f,p,v,h]);Fr();for(var g=0;g=0||(o[n]=e[n]);return o}function l(e){return void 0===e&&(e=""),new URLSearchParams("string"===typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map((e=>[n,e])):[[n,r]])}),[]))}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const c=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];const d=(r||(r=n.t(o,2))).startTransition;function f(e){let{basename:t,children:n,future:r,history:a}=e,[s,u]=o.useState({action:a.action,location:a.location}),{v7_startTransition:l}=r||{},c=o.useCallback((e=>{l&&d?d((()=>u(e))):u(e)}),[u,l]);return o.useLayoutEffect((()=>a.listen(c)),[a,c]),o.createElement(i.F0,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:a})}const p="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,v=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,h=o.forwardRef((function(e,t){let n,{onClick:r,relative:l,reloadDocument:d,replace:f,state:h,target:m,to:g,preventScrollReset:b}=e,y=u(e,c),{basename:S}=o.useContext(i.Us),E=!1;if("string"===typeof g&&v.test(g)&&(n=g,p))try{let e=new URL(window.location.href),t=g.startsWith("//")?new URL(e.protocol+g):new URL(g),n=(0,a.Zn)(t.pathname,S);t.origin===e.origin&&null!=n?g=n+t.search+t.hash:E=!0}catch(I){}let w=(0,i.oQ)(g,{relative:l}),_=function(e,t){let{target:n,replace:r,state:s,preventScrollReset:u,relative:l}=void 0===t?{}:t,c=(0,i.s0)(),d=(0,i.TH)(),f=(0,i.WU)(e,{relative:l});return o.useCallback((t=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,n)){t.preventDefault();let n=void 0!==r?r:(0,a.Ep)(d)===(0,a.Ep)(f);c(e,{replace:n,state:s,preventScrollReset:u,relative:l})}}),[d,c,f,r,s,n,e,u,l])}(g,{replace:f,state:h,target:m,preventScrollReset:b,relative:l});return o.createElement("a",s({},y,{href:n||w,onClick:E||d?r:function(e){r&&r(e),e.defaultPrevented||_(e)},ref:t,target:m}))}));var m,g;function b(e){let t=o.useRef(l(e)),n=o.useRef(!1),r=(0,i.TH)(),a=o.useMemo((()=>function(e,t){let n=l(e);return t&&t.forEach(((e,r)=>{n.has(r)||t.getAll(r).forEach((e=>{n.append(r,e)}))})),n}(r.search,n.current?null:t.current)),[r.search]),s=(0,i.s0)(),u=o.useCallback(((e,t)=>{const r=l("function"===typeof e?e(a):e);n.current=!0,s("?"+r,t)}),[s,a]);return[a,u]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(m||(m={})),function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(g||(g={}))},89250:function(e,t,n){var r;n.d(t,{AW:function(){return P},F0:function(){return L},Fg:function(){return N},TH:function(){return h},UO:function(){return y},Us:function(){return l},WU:function(){return S},Z5:function(){return k},bS:function(){return m},oQ:function(){return p},s0:function(){return b}});var o=n(67294),i=n(12599);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t(0,i.LX)(e,t)),[t,e])}function g(e){o.useContext(l).static||o.useLayoutEffect(e)}function b(){let{isDataRoute:e}=o.useContext(d);return e?function(){let{router:e}=D(x.UseNavigateStable),t=A(T.UseNavigateStable),n=o.useRef(!1);return g((()=>{n.current=!0})),o.useCallback((function(r,o){void 0===o&&(o={}),n.current&&("number"===typeof r?e.navigate(r):e.navigate(r,a({fromRouteId:t},o)))}),[e,t])}():function(){v()||(0,i.J0)(!1);let e=o.useContext(s),{basename:t,navigator:n}=o.useContext(l),{matches:r}=o.useContext(d),{pathname:a}=h(),u=JSON.stringify((0,i.Zq)(r).map((e=>e.pathnameBase))),c=o.useRef(!1);return g((()=>{c.current=!0})),o.useCallback((function(r,o){if(void 0===o&&(o={}),!c.current)return;if("number"===typeof r)return void n.go(r);let s=(0,i.pC)(r,JSON.parse(u),a,"path"===o.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:(0,i.RQ)([t,s.pathname])),(o.replace?n.replace:n.push)(s,o.state,o)}),[t,n,u,a,e])}()}function y(){let{matches:e}=o.useContext(d),t=e[e.length-1];return t?t.params:{}}function S(e,t){let{relative:n}=void 0===t?{}:t,{matches:r}=o.useContext(d),{pathname:a}=h(),s=JSON.stringify((0,i.Zq)(r).map((e=>e.pathnameBase)));return o.useMemo((()=>(0,i.pC)(e,JSON.parse(s),a,"path"===n)),[e,s,a,n])}function E(e,t,n){v()||(0,i.J0)(!1);let{navigator:r}=o.useContext(l),{matches:s}=o.useContext(d),u=s[s.length-1],f=u?u.params:{},p=(u&&u.pathname,u?u.pathnameBase:"/");u&&u.route;let m,g=h();if(t){var b;let e="string"===typeof t?(0,i.cP)(t):t;"/"===p||(null==(b=e.pathname)?void 0:b.startsWith(p))||(0,i.J0)(!1),m=e}else m=g;let y=m.pathname||"/",S="/"===p?y:y.slice(p.length)||"/",E=(0,i.fp)(e,{pathname:S});let w=C(E&&E.map((e=>Object.assign({},e,{params:Object.assign({},f,e.params),pathname:(0,i.RQ)([p,r.encodeLocation?r.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?p:(0,i.RQ)([p,r.encodeLocation?r.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),s,n);return t&&w?o.createElement(c.Provider,{value:{location:a({pathname:"/",search:"",hash:"",state:null,key:"default"},m),navigationType:i.aU.Pop}},w):w}function w(){let e=function(){var e;let t=o.useContext(f),n=O(T.UseRouteError),r=A(T.UseRouteError);if(t)return t;return null==(e=n.errors)?void 0:e[r]}(),t=(0,i.WK)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r};return o.createElement(o.Fragment,null,o.createElement("h2",null,"Unexpected Application Error!"),o.createElement("h3",{style:{fontStyle:"italic"}},t),n?o.createElement("pre",{style:a},n):null,null)}const _=o.createElement(w,null);class I extends o.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?o.createElement(d.Provider,{value:this.props.routeContext},o.createElement(f.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function R(e){let{routeContext:t,match:n,children:r}=e,i=o.useContext(s);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),o.createElement(d.Provider,{value:t},r)}function C(e,t,n){var r;if(void 0===t&&(t=[]),void 0===n&&(n=null),null==e){var a;if(null==(a=n)||!a.errors)return null;e=n.matches}let s=e,u=null==(r=n)?void 0:r.errors;if(null!=u){let e=s.findIndex((e=>e.route.id&&(null==u?void 0:u[e.route.id])));e>=0||(0,i.J0)(!1),s=s.slice(0,Math.min(s.length,e+1))}return s.reduceRight(((e,r,i)=>{let a=r.route.id?null==u?void 0:u[r.route.id]:null,l=null;n&&(l=r.route.errorElement||_);let c=t.concat(s.slice(0,i+1)),d=()=>{let t;return t=a?l:r.route.Component?o.createElement(r.route.Component,null):r.route.element?r.route.element:e,o.createElement(R,{match:r,routeContext:{outlet:e,matches:c,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===i)?o.createElement(I,{location:n.location,revalidation:n.revalidation,component:l,error:a,children:d(),routeContext:{outlet:null,matches:c,isDataRoute:!0}}):d()}),null)}var x=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(x||{}),T=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(T||{});function D(e){let t=o.useContext(s);return t||(0,i.J0)(!1),t}function O(e){let t=o.useContext(u);return t||(0,i.J0)(!1),t}function A(e){let t=function(e){let t=o.useContext(d);return t||(0,i.J0)(!1),t}(),n=t.matches[t.matches.length-1];return n.route.id||(0,i.J0)(!1),n.route.id}(r||(r=n.t(o,2))).startTransition;function N(e){let{to:t,replace:n,state:r,relative:a}=e;v()||(0,i.J0)(!1);let{matches:s}=o.useContext(d),{pathname:u}=h(),l=b(),c=(0,i.pC)(t,(0,i.Zq)(s).map((e=>e.pathnameBase)),u,"path"===a),f=JSON.stringify(c);return o.useEffect((()=>l(JSON.parse(f),{replace:n,state:r,relative:a})),[l,f,a,n,r]),null}function P(e){(0,i.J0)(!1)}function L(e){let{basename:t="/",children:n=null,location:r,navigationType:a=i.aU.Pop,navigator:s,static:u=!1}=e;v()&&(0,i.J0)(!1);let d=t.replace(/^\/*/,"/"),f=o.useMemo((()=>({basename:d,navigator:s,static:u})),[d,s,u]);"string"===typeof r&&(r=(0,i.cP)(r));let{pathname:p="/",search:h="",hash:m="",state:g=null,key:b="default"}=r,y=o.useMemo((()=>{let e=(0,i.Zn)(p,d);return null==e?null:{location:{pathname:e,search:h,hash:m,state:g,key:b},navigationType:a}}),[d,p,h,m,g,b,a]);return null==y?null:o.createElement(l.Provider,{value:f},o.createElement(c.Provider,{children:n,value:y}))}function k(e){let{children:t,location:n}=e;return E(B(t),n)}new Promise((()=>{}));class M extends o.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){console.error(" caught the following error during render",e,t)}render(){let{children:e,errorElement:t,resolve:n}=this.props,r=null,a=AwaitRenderStatus.pending;if(n instanceof Promise)if(this.state.error){AwaitRenderStatus.error;let e=this.state.error;Promise.reject().catch((()=>{})),Object.defineProperty(r,"_tracked",{get:()=>!0}),Object.defineProperty(r,"_error",{get:()=>e})}else n._tracked?(n,void 0!==r._error?AwaitRenderStatus.error:void 0!==r._data?AwaitRenderStatus.success:AwaitRenderStatus.pending):(AwaitRenderStatus.pending,Object.defineProperty(n,"_tracked",{get:()=>!0}),n.then((e=>Object.defineProperty(n,"_data",{get:()=>e})),(e=>Object.defineProperty(n,"_error",{get:()=>e}))));else AwaitRenderStatus.success,Promise.resolve(),Object.defineProperty(r,"_tracked",{get:()=>!0}),Object.defineProperty(r,"_data",{get:()=>n});if(a===AwaitRenderStatus.error&&r._error instanceof i.X3)throw neverSettledPromise;if(a===AwaitRenderStatus.error&&!t)throw r._error;if(a===AwaitRenderStatus.error)return o.createElement(AwaitContext.Provider,{value:r,children:t});if(a===AwaitRenderStatus.success)return o.createElement(AwaitContext.Provider,{value:r,children:e});throw r}}function B(e,t){void 0===t&&(t=[]);let n=[];return o.Children.forEach(e,((e,r)=>{if(!o.isValidElement(e))return;let a=[...t,r];if(e.type===o.Fragment)return void n.push.apply(n,B(e.props.children,a));e.type!==P&&(0,i.J0)(!1),e.props.index&&e.props.children&&(0,i.J0)(!1);let s={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(s.children=B(e.props.children,a)),n.push(s)})),n}},877:function(e,t,n){n.d(t,{A:function(){return T},B:function(){return M},C:function(){return k},D:function(){return L},E:function(){return b},F:function(){return Le},G:function(){return w},H:function(){return y},I:function(){return C},J:function(){return m},K:function(){return P},M:function(){return z},a:function(){return le},b:function(){return X},c:function(){return Pe},d:function(){return ve},e:function(){return ue},f:function(){return be},g:function(){return ge},h:function(){return ce},i:function(){return ee},j:function(){return Ee},k:function(){return K},l:function(){return fe},m:function(){return j},n:function(){return $},o:function(){return J},p:function(){return Re},q:function(){return Ce},r:function(){return B},s:function(){return N},t:function(){return xe},u:function(){return Y},v:function(){return Oe},w:function(){return Ae},x:function(){return Ne},y:function(){return Q},z:function(){return x}});var r=n(1413),o=n(87462),i=n(42849),a=n(29439),s=n(45987),u=n(71002),l=n(30168),c=n(4942),d=n(67294),f=n(73935),p=n(7991),v=n(73469),h=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],m=function(){};function g(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function b(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o-1}function _(e){return w(e)?window.pageYOffset:e.scrollTop}function I(e,t){w(e)?window.scrollTo(0,t):e.scrollTop=t}function R(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:m,o=_(e),i=t-o,a=0;!function t(){var s,u=i*((s=(s=a+=10)/n-1)*s*s+1)+o;I(e,u),an.bottom?I(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o1?t-1:0),r=1;r=v)return{placement:"bottom",maxHeight:t};if(T>=v&&!a)return i&&R(u,D,A),{placement:"bottom",maxHeight:t};if(!a&&T>=r||a&&C>=r)return i&&R(u,D,A),{placement:"bottom",maxHeight:a?C-y:T-y};if("auto"===o||a){var N=t,P=a?E:x;return P>=r&&(N=Math.min(P-y-s,t)),{placement:"top",maxHeight:N}}if("bottom"===o)return i&&I(u,D),{placement:"bottom",maxHeight:t};break;case"top":if(E>=v)return{placement:"top",maxHeight:t};if(x>=v&&!a)return i&&R(u,O,A),{placement:"top",maxHeight:t};if(!a&&x>=r||a&&E>=r){var L=t;return(!a&&x>=r||a&&E>=r)&&(L=a?E-S:x-S),i&&R(u,O,A),{placement:"top",maxHeight:L}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return l}var Z,G=function(e){return"auto"===e?"bottom":e},j=function(e,t){var n,o=e.placement,i=e.theme,a=i.borderRadius,s=i.spacing,u=i.colors;return(0,r.Z)((n={label:"menu"},(0,c.Z)(n,function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(o),"100%"),(0,c.Z)(n,"position","absolute"),(0,c.Z)(n,"width","100%"),(0,c.Z)(n,"zIndex",1),n),t?{}:{backgroundColor:u.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},H=(0,d.createContext)(null),z=function(e){var t=e.children,n=e.minMenuHeight,o=e.maxMenuHeight,i=e.menuPlacement,s=e.menuPosition,u=e.menuShouldScrollIntoView,l=e.theme,c=((0,d.useContext)(H)||{}).setPortalPlacement,f=(0,d.useRef)(null),p=(0,d.useState)(o),h=(0,a.Z)(p,2),m=h[0],g=h[1],b=(0,d.useState)(null),y=(0,a.Z)(b,2),S=y[0],E=y[1],w=l.spacing.controlHeight;return(0,v.Z)((function(){var e=f.current;if(e){var t="fixed"===s,r=U({maxHeight:o,menuEl:e,minHeight:n,placement:i,shouldScroll:u&&!t,isFixedPosition:t,controlHeight:w});g(r.maxHeight),E(r.placement),null===c||void 0===c||c(r.placement)}}),[o,i,s,u,n,c,w]),t({ref:f,placerProps:(0,r.Z)((0,r.Z)({},e),{},{placement:S||G(i),maxHeight:m})})},W=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return(0,i.tZ)("div",(0,o.Z)({},E(e,"menu",{menu:!0}),{ref:n},r),t)},$=function(e,t){var n=e.maxHeight,o=e.theme.spacing.baseUnit;return(0,r.Z)({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:o,paddingTop:o})},q=function(e,t){var n=e.theme,o=n.spacing.baseUnit,i=n.colors;return(0,r.Z)({textAlign:"center"},t?{}:{color:i.neutral40,padding:"".concat(2*o,"px ").concat(3*o,"px")})},Y=q,K=q,J=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}},X=function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},Q=function(e,t){var n=e.theme.spacing,o=e.isMulti,i=e.hasValue,a=e.selectProps.controlShouldRenderValue;return(0,r.Z)({alignItems:"center",display:o&&i&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})},ee=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},te=["size"],ne=["innerProps","isRtl","size"];var re={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},oe=function(e){var t=e.size,n=(0,s.Z)(e,te);return(0,i.tZ)("svg",(0,o.Z)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:re},n))},ie=function(e){return(0,i.tZ)(oe,(0,o.Z)({size:20},e),(0,i.tZ)("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},ae=function(e){return(0,i.tZ)(oe,(0,o.Z)({size:20},e),(0,i.tZ)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},se=function(e,t){var n=e.isFocused,o=e.theme,i=o.spacing.baseUnit,a=o.colors;return(0,r.Z)({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*i,":hover":{color:n?a.neutral80:a.neutral40}})},ue=se,le=se,ce=function(e,t){var n=e.isDisabled,o=e.theme,i=o.spacing.baseUnit,a=o.colors;return(0,r.Z)({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:2*i,marginTop:2*i})},de=(0,i.F4)(Z||(Z=(0,l.Z)(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]))),fe=function(e,t){var n=e.isFocused,o=e.size,i=e.theme,a=i.colors,s=i.spacing.baseUnit;return(0,r.Z)({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*s})},pe=function(e){var t=e.delay,n=e.offset;return(0,i.tZ)("span",{css:(0,i.iv)({animation:"".concat(de," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},ve=function(e,t){var n=e.isDisabled,o=e.isFocused,i=e.theme,a=i.colors,s=i.borderRadius,u=i.spacing;return(0,r.Z)({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:u.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:o?a.primary:a.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:o?a.primary:a.neutral30}})},he=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,a=e.innerRef,s=e.innerProps,u=e.menuIsOpen;return(0,i.tZ)("div",(0,o.Z)({ref:a},E(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":u}),s,{"aria-disabled":n||void 0}),t)},me=["data"],ge=function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},be=function(e,t){var n=e.theme,o=n.colors,i=n.spacing;return(0,r.Z)({label:"group",cursor:"default",display:"block"},t?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*i.baseUnit,paddingRight:3*i.baseUnit,textTransform:"uppercase"})},ye=function(e){var t=e.children,n=e.cx,r=e.getStyles,a=e.getClassNames,s=e.Heading,u=e.headingProps,l=e.innerProps,c=e.label,d=e.theme,f=e.selectProps;return(0,i.tZ)("div",(0,o.Z)({},E(e,"group",{group:!0}),l),(0,i.tZ)(s,(0,o.Z)({},u,{selectProps:f,theme:d,getStyles:r,getClassNames:a,cx:n}),c),(0,i.tZ)("div",null,t))},Se=["innerRef","isDisabled","isHidden","inputClassName"],Ee=function(e,t){var n=e.isDisabled,o=e.value,i=e.theme,a=i.spacing,s=i.colors;return(0,r.Z)((0,r.Z)({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},_e),t?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:s.neutral80})},we={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},_e={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":(0,r.Z)({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},we)},Ie=function(e){return(0,r.Z)({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},we)},Re=function(e,t){var n=e.theme,o=n.spacing,i=n.borderRadius,a=n.colors;return(0,r.Z)({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:a.neutral10,borderRadius:i/2,margin:o.baseUnit/2})},Ce=function(e,t){var n=e.theme,o=n.borderRadius,i=n.colors,a=e.cropWithEllipsis;return(0,r.Z)({overflow:"hidden",textOverflow:a||void 0===a?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:o/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},xe=function(e,t){var n=e.theme,o=n.spacing,i=n.borderRadius,a=n.colors,s=e.isFocused;return(0,r.Z)({alignItems:"center",display:"flex"},t?{}:{borderRadius:i/2,backgroundColor:s?a.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},Te=function(e){var t=e.children,n=e.innerProps;return(0,i.tZ)("div",n,t)};var De=function(e){var t=e.children,n=e.components,o=e.data,a=e.innerProps,s=e.isDisabled,u=e.removeProps,l=e.selectProps,c=n.Container,d=n.Label,f=n.Remove;return(0,i.tZ)(c,{data:o,innerProps:(0,r.Z)((0,r.Z)({},E(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":s})),a),selectProps:l},(0,i.tZ)(d,{data:o,innerProps:(0,r.Z)({},E(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},t),(0,i.tZ)(f,{data:o,innerProps:(0,r.Z)((0,r.Z)({},E(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},u),selectProps:l}))},Oe=function(e,t){var n=e.isDisabled,o=e.isFocused,i=e.isSelected,a=e.theme,s=a.spacing,u=a.colors;return(0,r.Z)({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:i?u.primary:o?u.primary25:"transparent",color:n?u.neutral20:i?u.neutral0:"inherit",padding:"".concat(2*s.baseUnit,"px ").concat(3*s.baseUnit,"px"),":active":{backgroundColor:n?void 0:i?u.primary:u.primary50}})},Ae=function(e,t){var n=e.theme,o=n.spacing,i=n.colors;return(0,r.Z)({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:i.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},Ne=function(e,t){var n=e.isDisabled,o=e.theme,i=o.spacing,a=o.colors;return(0,r.Z)({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?a.neutral40:a.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},Pe={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return(0,i.tZ)("div",(0,o.Z)({},E(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||(0,i.tZ)(ie,null))},Control:he,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return(0,i.tZ)("div",(0,o.Z)({},E(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||(0,i.tZ)(ae,null))},DownChevron:ae,CrossIcon:ie,Group:ye,GroupHeading:function(e){var t=S(e);t.data;var n=(0,s.Z)(t,me);return(0,i.tZ)("div",(0,o.Z)({},E(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return(0,i.tZ)("div",(0,o.Z)({},E(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return(0,i.tZ)("span",(0,o.Z)({},t,E(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=S(e),a=r.innerRef,u=r.isDisabled,l=r.isHidden,c=r.inputClassName,d=(0,s.Z)(r,Se);return(0,i.tZ)("div",(0,o.Z)({},E(e,"input",{"input-container":!0}),{"data-value":n||""}),(0,i.tZ)("input",(0,o.Z)({className:t({input:!0},c),ref:a,style:Ie(l),disabled:u},d)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,a=e.size,u=void 0===a?4:a,l=(0,s.Z)(e,ne);return(0,i.tZ)("div",(0,o.Z)({},E((0,r.Z)((0,r.Z)({},l),{},{innerProps:t,isRtl:n,size:u}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),(0,i.tZ)(pe,{delay:0,offset:n}),(0,i.tZ)(pe,{delay:160,offset:!0}),(0,i.tZ)(pe,{delay:320,offset:!n}))},Menu:W,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,a=e.isMulti;return(0,i.tZ)("div",(0,o.Z)({},E(e,"menuList",{"menu-list":!0,"menu-list--is-multi":a}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,s=e.controlElement,u=e.innerProps,l=e.menuPlacement,c=e.menuPosition,h=(0,d.useRef)(null),m=(0,d.useRef)(null),g=(0,d.useState)(G(l)),b=(0,a.Z)(g,2),y=b[0],S=b[1],w=(0,d.useMemo)((function(){return{setPortalPlacement:S}}),[]),_=(0,d.useState)(null),I=(0,a.Z)(_,2),R=I[0],C=I[1],x=(0,d.useCallback)((function(){if(s){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(s),t="fixed"===c?0:window.pageYOffset,n=e[y]+t;n===(null===R||void 0===R?void 0:R.offset)&&e.left===(null===R||void 0===R?void 0:R.rect.left)&&e.width===(null===R||void 0===R?void 0:R.rect.width)||C({offset:n,rect:e})}}),[s,c,y,null===R||void 0===R?void 0:R.offset,null===R||void 0===R?void 0:R.rect.left,null===R||void 0===R?void 0:R.rect.width]);(0,v.Z)((function(){x()}),[x]);var T=(0,d.useCallback)((function(){"function"===typeof m.current&&(m.current(),m.current=null),s&&h.current&&(m.current=(0,p.Me)(s,h.current,x,{elementResize:"ResizeObserver"in window}))}),[s,x]);(0,v.Z)((function(){T()}),[T]);var D=(0,d.useCallback)((function(e){h.current=e,T()}),[T]);if(!t&&"fixed"!==c||!R)return null;var O=(0,i.tZ)("div",(0,o.Z)({ref:D},E((0,r.Z)((0,r.Z)({},e),{},{offset:R.offset,position:c,rect:R.rect}),"menuPortal",{"menu-portal":!0}),u),n);return(0,i.tZ)(H.Provider,{value:w},t?(0,f.createPortal)(O,t):O)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,a=e.innerProps,u=(0,s.Z)(e,F);return(0,i.tZ)("div",(0,o.Z)({},E((0,r.Z)((0,r.Z)({},u),{},{children:n,innerProps:a}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),a),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,a=e.innerProps,u=(0,s.Z)(e,V);return(0,i.tZ)("div",(0,o.Z)({},E((0,r.Z)((0,r.Z)({},u),{},{children:n,innerProps:a}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),a),n)},MultiValue:De,MultiValueContainer:Te,MultiValueLabel:Te,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return(0,i.tZ)("div",(0,o.Z)({role:"button"},n),t||(0,i.tZ)(ie,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,a=e.isSelected,s=e.innerRef,u=e.innerProps;return(0,i.tZ)("div",(0,o.Z)({},E(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":a}),{ref:s,"aria-disabled":n},u),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return(0,i.tZ)("div",(0,o.Z)({},E(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,a=e.isRtl;return(0,i.tZ)("div",(0,o.Z)({},E(e,"container",{"--is-disabled":r,"--is-rtl":a}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return(0,i.tZ)("div",(0,o.Z)({},E(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,a=e.hasValue;return(0,i.tZ)("div",(0,o.Z)({},E(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":a}),n),t)}},Le=function(e){return(0,r.Z)((0,r.Z)({},Pe),e.components)}},2926:function(e,t,n){n.d(t,{ZP:function(){return de}});var r=n(1413),o=n(29439),i=n(45987),a=n(67294),s=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];var u=n(87462),l=n(15671),c=n(43144),d=n(60136),f=n(29388),p=n(93433),v=n(877),h=n(42849),m=n(30845);for(var g={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},b=function(e){return(0,h.tZ)("span",(0,u.Z)({css:g},e))},y={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.isDisabled,o=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(r?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,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(i," focused, ").concat(l(a,n),".");if("menu"===t){var c=s?" disabled":"",d="".concat(u?"selected":"focused").concat(c);return"option ".concat(i," ").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:"",".")}},S=function(e){var t=e.ariaSelection,n=e.focusedOption,o=e.focusedValue,i=e.focusableOptions,s=e.isFocused,u=e.selectValue,l=e.selectProps,c=e.id,d=l.ariaLiveMessages,f=l.getOptionLabel,p=l.inputValue,v=l.isMulti,m=l.isOptionDisabled,g=l.isSearchable,S=l.menuIsOpen,E=l.options,w=l.screenReaderStatus,_=l.tabSelectsValue,I=l["aria-label"],R=l["aria-live"],C=(0,a.useMemo)((function(){return(0,r.Z)((0,r.Z)({},y),d||{})}),[d]),x=(0,a.useMemo)((function(){var e,n="";if(t&&C.onChange){var o=t.option,i=t.options,a=t.removedValue,s=t.removedValues,l=t.value,c=a||o||(e=l,Array.isArray(e)?null:e),d=c?f(c):"",p=i||s||void 0,v=p?p.map(f):[],h=(0,r.Z)({isDisabled:c&&m(c,u),label:d,labels:v},t);n=C.onChange(h)}return n}),[t,C,m,u,f]),T=(0,a.useMemo)((function(){var e="",t=n||o,r=!!(n&&u&&u.includes(n));if(t&&C.onFocus){var a={focused:t,label:f(t),isDisabled:m(t,u),isSelected:r,options:i,context:t===n?"menu":"value",selectValue:u};e=C.onFocus(a)}return e}),[n,o,f,m,C,i,u]),D=(0,a.useMemo)((function(){var e="";if(S&&E.length&&C.onFilter){var t=w({count:i.length});e=C.onFilter({inputValue:p,resultsMessage:t})}return e}),[i,p,S,C,E,w]),O=(0,a.useMemo)((function(){var e="";if(C.guidance){var t=o?"value":S?"menu":"input";e=C.guidance({"aria-label":I,context:t,isDisabled:n&&m(n,u),isMulti:v,isSearchable:g,tabSelectsValue:_})}return e}),[I,n,o,v,m,g,S,C,u,_]),A="".concat(T," ").concat(D," ").concat(O),N=(0,h.tZ)(a.Fragment,null,(0,h.tZ)("span",{id:"aria-selection"},x),(0,h.tZ)("span",{id:"aria-context"},A)),P="initial-input-focus"===(null===t||void 0===t?void 0:t.action);return(0,h.tZ)(a.Fragment,null,(0,h.tZ)(b,{id:c},P&&N),(0,h.tZ)(b,{"aria-live":R,"aria-atomic":"false","aria-relevant":"additions text"},s&&!P&&N))},E=[{base:"A",letters:"A\u24b6\uff21\xc0\xc1\xc2\u1ea6\u1ea4\u1eaa\u1ea8\xc3\u0100\u0102\u1eb0\u1eae\u1eb4\u1eb2\u0226\u01e0\xc4\u01de\u1ea2\xc5\u01fa\u01cd\u0200\u0202\u1ea0\u1eac\u1eb6\u1e00\u0104\u023a\u2c6f"},{base:"AA",letters:"\ua732"},{base:"AE",letters:"\xc6\u01fc\u01e2"},{base:"AO",letters:"\ua734"},{base:"AU",letters:"\ua736"},{base:"AV",letters:"\ua738\ua73a"},{base:"AY",letters:"\ua73c"},{base:"B",letters:"B\u24b7\uff22\u1e02\u1e04\u1e06\u0243\u0182\u0181"},{base:"C",letters:"C\u24b8\uff23\u0106\u0108\u010a\u010c\xc7\u1e08\u0187\u023b\ua73e"},{base:"D",letters:"D\u24b9\uff24\u1e0a\u010e\u1e0c\u1e10\u1e12\u1e0e\u0110\u018b\u018a\u0189\ua779"},{base:"DZ",letters:"\u01f1\u01c4"},{base:"Dz",letters:"\u01f2\u01c5"},{base:"E",letters:"E\u24ba\uff25\xc8\xc9\xca\u1ec0\u1ebe\u1ec4\u1ec2\u1ebc\u0112\u1e14\u1e16\u0114\u0116\xcb\u1eba\u011a\u0204\u0206\u1eb8\u1ec6\u0228\u1e1c\u0118\u1e18\u1e1a\u0190\u018e"},{base:"F",letters:"F\u24bb\uff26\u1e1e\u0191\ua77b"},{base:"G",letters:"G\u24bc\uff27\u01f4\u011c\u1e20\u011e\u0120\u01e6\u0122\u01e4\u0193\ua7a0\ua77d\ua77e"},{base:"H",letters:"H\u24bd\uff28\u0124\u1e22\u1e26\u021e\u1e24\u1e28\u1e2a\u0126\u2c67\u2c75\ua78d"},{base:"I",letters:"I\u24be\uff29\xcc\xcd\xce\u0128\u012a\u012c\u0130\xcf\u1e2e\u1ec8\u01cf\u0208\u020a\u1eca\u012e\u1e2c\u0197"},{base:"J",letters:"J\u24bf\uff2a\u0134\u0248"},{base:"K",letters:"K\u24c0\uff2b\u1e30\u01e8\u1e32\u0136\u1e34\u0198\u2c69\ua740\ua742\ua744\ua7a2"},{base:"L",letters:"L\u24c1\uff2c\u013f\u0139\u013d\u1e36\u1e38\u013b\u1e3c\u1e3a\u0141\u023d\u2c62\u2c60\ua748\ua746\ua780"},{base:"LJ",letters:"\u01c7"},{base:"Lj",letters:"\u01c8"},{base:"M",letters:"M\u24c2\uff2d\u1e3e\u1e40\u1e42\u2c6e\u019c"},{base:"N",letters:"N\u24c3\uff2e\u01f8\u0143\xd1\u1e44\u0147\u1e46\u0145\u1e4a\u1e48\u0220\u019d\ua790\ua7a4"},{base:"NJ",letters:"\u01ca"},{base:"Nj",letters:"\u01cb"},{base:"O",letters:"O\u24c4\uff2f\xd2\xd3\xd4\u1ed2\u1ed0\u1ed6\u1ed4\xd5\u1e4c\u022c\u1e4e\u014c\u1e50\u1e52\u014e\u022e\u0230\xd6\u022a\u1ece\u0150\u01d1\u020c\u020e\u01a0\u1edc\u1eda\u1ee0\u1ede\u1ee2\u1ecc\u1ed8\u01ea\u01ec\xd8\u01fe\u0186\u019f\ua74a\ua74c"},{base:"OI",letters:"\u01a2"},{base:"OO",letters:"\ua74e"},{base:"OU",letters:"\u0222"},{base:"P",letters:"P\u24c5\uff30\u1e54\u1e56\u01a4\u2c63\ua750\ua752\ua754"},{base:"Q",letters:"Q\u24c6\uff31\ua756\ua758\u024a"},{base:"R",letters:"R\u24c7\uff32\u0154\u1e58\u0158\u0210\u0212\u1e5a\u1e5c\u0156\u1e5e\u024c\u2c64\ua75a\ua7a6\ua782"},{base:"S",letters:"S\u24c8\uff33\u1e9e\u015a\u1e64\u015c\u1e60\u0160\u1e66\u1e62\u1e68\u0218\u015e\u2c7e\ua7a8\ua784"},{base:"T",letters:"T\u24c9\uff34\u1e6a\u0164\u1e6c\u021a\u0162\u1e70\u1e6e\u0166\u01ac\u01ae\u023e\ua786"},{base:"TZ",letters:"\ua728"},{base:"U",letters:"U\u24ca\uff35\xd9\xda\xdb\u0168\u1e78\u016a\u1e7a\u016c\xdc\u01db\u01d7\u01d5\u01d9\u1ee6\u016e\u0170\u01d3\u0214\u0216\u01af\u1eea\u1ee8\u1eee\u1eec\u1ef0\u1ee4\u1e72\u0172\u1e76\u1e74\u0244"},{base:"V",letters:"V\u24cb\uff36\u1e7c\u1e7e\u01b2\ua75e\u0245"},{base:"VY",letters:"\ua760"},{base:"W",letters:"W\u24cc\uff37\u1e80\u1e82\u0174\u1e86\u1e84\u1e88\u2c72"},{base:"X",letters:"X\u24cd\uff38\u1e8a\u1e8c"},{base:"Y",letters:"Y\u24ce\uff39\u1ef2\xdd\u0176\u1ef8\u0232\u1e8e\u0178\u1ef6\u1ef4\u01b3\u024e\u1efe"},{base:"Z",letters:"Z\u24cf\uff3a\u0179\u1e90\u017b\u017d\u1e92\u1e94\u01b5\u0224\u2c7f\u2c6b\ua762"},{base:"a",letters:"a\u24d0\uff41\u1e9a\xe0\xe1\xe2\u1ea7\u1ea5\u1eab\u1ea9\xe3\u0101\u0103\u1eb1\u1eaf\u1eb5\u1eb3\u0227\u01e1\xe4\u01df\u1ea3\xe5\u01fb\u01ce\u0201\u0203\u1ea1\u1ead\u1eb7\u1e01\u0105\u2c65\u0250"},{base:"aa",letters:"\ua733"},{base:"ae",letters:"\xe6\u01fd\u01e3"},{base:"ao",letters:"\ua735"},{base:"au",letters:"\ua737"},{base:"av",letters:"\ua739\ua73b"},{base:"ay",letters:"\ua73d"},{base:"b",letters:"b\u24d1\uff42\u1e03\u1e05\u1e07\u0180\u0183\u0253"},{base:"c",letters:"c\u24d2\uff43\u0107\u0109\u010b\u010d\xe7\u1e09\u0188\u023c\ua73f\u2184"},{base:"d",letters:"d\u24d3\uff44\u1e0b\u010f\u1e0d\u1e11\u1e13\u1e0f\u0111\u018c\u0256\u0257\ua77a"},{base:"dz",letters:"\u01f3\u01c6"},{base:"e",letters:"e\u24d4\uff45\xe8\xe9\xea\u1ec1\u1ebf\u1ec5\u1ec3\u1ebd\u0113\u1e15\u1e17\u0115\u0117\xeb\u1ebb\u011b\u0205\u0207\u1eb9\u1ec7\u0229\u1e1d\u0119\u1e19\u1e1b\u0247\u025b\u01dd"},{base:"f",letters:"f\u24d5\uff46\u1e1f\u0192\ua77c"},{base:"g",letters:"g\u24d6\uff47\u01f5\u011d\u1e21\u011f\u0121\u01e7\u0123\u01e5\u0260\ua7a1\u1d79\ua77f"},{base:"h",letters:"h\u24d7\uff48\u0125\u1e23\u1e27\u021f\u1e25\u1e29\u1e2b\u1e96\u0127\u2c68\u2c76\u0265"},{base:"hv",letters:"\u0195"},{base:"i",letters:"i\u24d8\uff49\xec\xed\xee\u0129\u012b\u012d\xef\u1e2f\u1ec9\u01d0\u0209\u020b\u1ecb\u012f\u1e2d\u0268\u0131"},{base:"j",letters:"j\u24d9\uff4a\u0135\u01f0\u0249"},{base:"k",letters:"k\u24da\uff4b\u1e31\u01e9\u1e33\u0137\u1e35\u0199\u2c6a\ua741\ua743\ua745\ua7a3"},{base:"l",letters:"l\u24db\uff4c\u0140\u013a\u013e\u1e37\u1e39\u013c\u1e3d\u1e3b\u017f\u0142\u019a\u026b\u2c61\ua749\ua781\ua747"},{base:"lj",letters:"\u01c9"},{base:"m",letters:"m\u24dc\uff4d\u1e3f\u1e41\u1e43\u0271\u026f"},{base:"n",letters:"n\u24dd\uff4e\u01f9\u0144\xf1\u1e45\u0148\u1e47\u0146\u1e4b\u1e49\u019e\u0272\u0149\ua791\ua7a5"},{base:"nj",letters:"\u01cc"},{base:"o",letters:"o\u24de\uff4f\xf2\xf3\xf4\u1ed3\u1ed1\u1ed7\u1ed5\xf5\u1e4d\u022d\u1e4f\u014d\u1e51\u1e53\u014f\u022f\u0231\xf6\u022b\u1ecf\u0151\u01d2\u020d\u020f\u01a1\u1edd\u1edb\u1ee1\u1edf\u1ee3\u1ecd\u1ed9\u01eb\u01ed\xf8\u01ff\u0254\ua74b\ua74d\u0275"},{base:"oi",letters:"\u01a3"},{base:"ou",letters:"\u0223"},{base:"oo",letters:"\ua74f"},{base:"p",letters:"p\u24df\uff50\u1e55\u1e57\u01a5\u1d7d\ua751\ua753\ua755"},{base:"q",letters:"q\u24e0\uff51\u024b\ua757\ua759"},{base:"r",letters:"r\u24e1\uff52\u0155\u1e59\u0159\u0211\u0213\u1e5b\u1e5d\u0157\u1e5f\u024d\u027d\ua75b\ua7a7\ua783"},{base:"s",letters:"s\u24e2\uff53\xdf\u015b\u1e65\u015d\u1e61\u0161\u1e67\u1e63\u1e69\u0219\u015f\u023f\ua7a9\ua785\u1e9b"},{base:"t",letters:"t\u24e3\uff54\u1e6b\u1e97\u0165\u1e6d\u021b\u0163\u1e71\u1e6f\u0167\u01ad\u0288\u2c66\ua787"},{base:"tz",letters:"\ua729"},{base:"u",letters:"u\u24e4\uff55\xf9\xfa\xfb\u0169\u1e79\u016b\u1e7b\u016d\xfc\u01dc\u01d8\u01d6\u01da\u1ee7\u016f\u0171\u01d4\u0215\u0217\u01b0\u1eeb\u1ee9\u1eef\u1eed\u1ef1\u1ee5\u1e73\u0173\u1e77\u1e75\u0289"},{base:"v",letters:"v\u24e5\uff56\u1e7d\u1e7f\u028b\ua75f\u028c"},{base:"vy",letters:"\ua761"},{base:"w",letters:"w\u24e6\uff57\u1e81\u1e83\u0175\u1e87\u1e85\u1e98\u1e89\u2c73"},{base:"x",letters:"x\u24e7\uff58\u1e8b\u1e8d"},{base:"y",letters:"y\u24e8\uff59\u1ef3\xfd\u0177\u1ef9\u0233\u1e8f\xff\u1ef7\u1e99\u1ef5\u01b4\u024f\u1eff"},{base:"z",letters:"z\u24e9\uff5a\u017a\u1e91\u017c\u017e\u1e93\u1e95\u01b6\u0225\u0240\u2c6c\ua763"}],w=new RegExp("["+E.map((function(e){return e.letters})).join("")+"]","g"),_={},I=0;I0,h=d-f-l,m=!1;h>t&&s.current&&(r&&r(e),s.current=!1),v&&u.current&&(i&&i(e),u.current=!1),v&&t>h?(n&&!s.current&&n(e),p.scrollTop=d,m=!0,s.current=!0):!v&&-t>l&&(o&&!u.current&&o(e),p.scrollTop=0,m=!0,u.current=!0),m&&P(e)}}),[n,r,o,i]),f=(0,a.useCallback)((function(e){d(e,e.deltaY)}),[d]),p=(0,a.useCallback)((function(e){l.current=e.changedTouches[0].clientY}),[]),h=(0,a.useCallback)((function(e){var t=l.current-e.changedTouches[0].clientY;d(e,t)}),[d]),m=(0,a.useCallback)((function(e){if(e){var t=!!v.s&&{passive:!1};e.addEventListener("wheel",f,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",h,t)}}),[h,p,f]),g=(0,a.useCallback)((function(e){e&&(e.removeEventListener("wheel",f,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",h,!1))}),[h,p,f]);return(0,a.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}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,a.useRef)({}),i=(0,a.useRef)(null),s=(0,a.useCallback)((function(e){if(U){var t=document.body,n=t&&t.style;if(r&&L.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&Z<1){var i=parseInt(o.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+i||0;Object.keys(k).forEach((function(e){var t=k[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&F()&&(t.addEventListener("touchmove",M,G),e&&(e.addEventListener("touchstart",V,G),e.addEventListener("touchmove",B,G))),Z+=1}}),[r]),u=(0,a.useCallback)((function(e){if(U){var t=document.body,n=t&&t.style;Z=Math.max(Z-1,0),r&&Z<1&&L.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&F()&&(t.removeEventListener("touchmove",M,G),e&&(e.removeEventListener("touchstart",V,G),e.removeEventListener("touchmove",B,G)))}}),[r]);return(0,a.useEffect)((function(){if(t){var e=i.current;return s(e),function(){u(e)}}}),[t,s,u]),function(e){i.current=e}}({isEnabled:n});return(0,h.tZ)(a.Fragment,null,n&&(0,h.tZ)("div",{onClick:j,css:H}),t((function(e){o(e),i(e)})))}var W={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},$=function(e){var t=e.name,n=e.onFocus;return(0,h.tZ)("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:W,value:"",onChange:function(){}})},q={clearIndicator:v.a,container:v.b,control:v.d,dropdownIndicator:v.e,group:v.g,groupHeading:v.f,indicatorsContainer:v.i,indicatorSeparator:v.h,input:v.j,loadingIndicator:v.l,loadingMessage:v.k,menu:v.m,menuList:v.n,menuPortal:v.o,multiValue:v.p,multiValueLabel:v.q,multiValueRemove:v.t,noOptionsMessage:v.u,option:v.v,placeholder:v.w,singleValue:v.x,valueContainer:v.y};var Y,K={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}},J={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:(0,v.z)(),captureMenuScroll:!(0,v.z)(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=(0,r.Z)({ignoreCase:!0,ignoreAccents:!0,stringify:O,trim:!0,matchFrom:"any"},Y),o=n.ignoreCase,i=n.ignoreAccents,a=n.stringify,s=n.trim,u=n.matchFrom,l=s?D(t):t,c=s?D(a(e)):a(e);return o&&(l=l.toLowerCase(),c=c.toLowerCase()),i&&(l=T(l),c=x(c)),"start"===u?c.substr(0,l.length)===l:c.indexOf(l)>-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:!(0,v.A)(),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,unstyled:!1};function X(e,t,n,r){return{type:"option",data:t,isDisabled:oe(e,t,n),isSelected:ie(e,t,n),label:ne(e,t),value:re(e,t),index:r}}function Q(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return X(e,n,t,r)})).filter((function(t){return te(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=X(e,n,t,r);return te(e,i)?i:void 0})).filter(v.K)}function ee(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,(0,p.Z)(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function te(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,s=t.value;return(!se(e)||!i)&&ae(e,{label:a,value:s,data:o},r)}var ne=function(e,t){return e.getOptionLabel(t)},re=function(e,t){return e.getOptionValue(t)};function oe(e,t,n){return"function"===typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function ie(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"===typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=re(e,t);return n.some((function(t){return re(e,t)===r}))}function ae(e,t,n){return!e.filterOption||e.filterOption(t,n)}var se=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},ue=1,le=function(e){(0,d.Z)(n,e);var t=(0,f.Z)(n);function n(e){var o;if((0,l.Z)(this,n),(o=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},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.instancePrefix="",o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.controlRef=null,o.getControlRef=function(e){o.controlRef=e},o.focusedOptionRef=null,o.getFocusedOptionRef=function(e){o.focusedOptionRef=e},o.menuListRef=null,o.getMenuListRef=function(e){o.menuListRef=e},o.inputRef=null,o.getInputRef=function(e){o.inputRef=e},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(e,t){var n=o.props,r=n.onChange,i=n.name;t.name=i,o.ariaOnChange(e,t),r(e,t)},o.setValue=function(e,t,n){var r=o.props,i=r.closeMenuOnSelect,a=r.isMulti,s=r.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(o.setState({inputIsHiddenAfterUpdate:!a}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(e,{action:t,option:n})},o.selectOption=function(e){var t=o.props,n=t.blurInputOnSelect,r=t.isMulti,i=t.name,a=o.state.selectValue,s=r&&o.isOptionSelected(e,a),u=o.isOptionDisabled(e,a);if(s){var l=o.getOptionValue(e);o.setValue((0,v.B)(a.filter((function(e){return o.getOptionValue(e)!==l}))),"deselect-option",e)}else{if(u)return void o.ariaOnChange((0,v.C)(e),{action:"select-option",option:e,name:i});r?o.setValue((0,v.B)([].concat((0,p.Z)(a),[e])),"select-option",e):o.setValue((0,v.C)(e),"select-option")}n&&o.blurInput()},o.removeValue=function(e){var t=o.props.isMulti,n=o.state.selectValue,r=o.getOptionValue(e),i=n.filter((function(e){return o.getOptionValue(e)!==r})),a=(0,v.D)(t,i,i[0]||null);o.onChange(a,{action:"remove-value",removedValue:e}),o.focusInput()},o.clearValue=function(){var e=o.state.selectValue;o.onChange((0,v.D)(o.props.isMulti,[],null),{action:"clear",removedValues:e})},o.popValue=function(){var e=o.props.isMulti,t=o.state.selectValue,n=t[t.length-1],r=t.slice(0,t.length-1),i=(0,v.D)(e,r,r[0]||null);o.onChange(i,{action:"pop-value",removedValue:n})},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n5||i>5}},o.onTouchEnd=function(e){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(e.target)&&o.menuListRef&&!o.menuListRef.contains(e.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(e){o.userIsDragging||o.onControlMouseDown(e)},o.onClearIndicatorTouchEnd=function(e){o.userIsDragging||o.onClearIndicatorMouseDown(e)},o.onDropdownIndicatorTouchEnd=function(e){o.userIsDragging||o.onDropdownIndicatorMouseDown(e)},o.handleInputChange=function(e){var t=o.props.inputValue,n=e.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(n,{action:"input-change",prevInputValue:t}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(e){o.props.onFocus&&o.props.onFocus(e),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(e){var t=o.props.inputValue;o.menuListRef&&o.menuListRef.contains(document.activeElement)?o.inputRef.focus():(o.props.onBlur&&o.props.onBlur(e),o.onInputChange("",{action:"input-blur",prevInputValue:t}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1}))},o.onOptionHover=function(e){o.blockOptionHover||o.state.focusedOption===e||o.setState({focusedOption:e})},o.shouldHideSelectedOptions=function(){return se(o.props)},o.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),o.focus()},o.onKeyDown=function(e){var t=o.props,n=t.isMulti,r=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,u=t.isDisabled,l=t.menuIsOpen,c=t.onKeyDown,d=t.tabSelectsValue,f=t.openMenuOnFocus,p=o.state,v=p.focusedOption,h=p.focusedValue,m=p.selectValue;if(!u&&("function"!==typeof c||(c(e),!e.defaultPrevented))){switch(o.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;o.focusValue("previous");break;case"ArrowRight":if(!n||a)return;o.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(h)o.removeValue(h);else{if(!r)return;n?o.popValue():s&&o.clearValue()}break;case"Tab":if(o.isComposing)return;if(e.shiftKey||!l||!d||!v||f&&o.isOptionSelected(v,m))return;o.selectOption(v);break;case"Enter":if(229===e.keyCode)break;if(l){if(!v)return;if(o.isComposing)return;o.selectOption(v);break}return;case"Escape":l?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:a}),o.onMenuClose()):s&&i&&o.clearValue();break;case" ":if(a)return;if(!l){o.openMenu("first");break}if(!v)return;o.selectOption(v);break;case"ArrowUp":l?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":l?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!l)return;o.focusOption("pageup");break;case"PageDown":if(!l)return;o.focusOption("pagedown");break;case"Home":if(!l)return;o.focusOption("first");break;case"End":if(!l)return;o.focusOption("last");break;default:return}e.preventDefault()}},o.instancePrefix="react-select-"+(o.props.instanceId||++ue),o.state.selectValue=(0,v.H)(e.value),e.menuIsOpen&&o.state.selectValue.length){var i=o.buildFocusableOptions(),a=i.indexOf(o.state.selectValue[0]);o.state.focusedOption=i[a]}return o}return(0,c.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(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&(0,v.I)(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&((0,v.I)(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[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 o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"===typeof this.props.theme?this.props.theme(K):(0,r.Z)((0,r.Z)({},K),this.props.theme):K}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,a=this.setValue,s=this.props,u=s.isMulti,l=s.isRtl,c=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:u,isRtl:l,options:c,selectOption:i,selectProps:s,setValue:a,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 oe(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return ie(this.props,e,t)}},{key:"filterOption",value:function(e,t){return ae(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,i=e.inputValue,s=e.tabIndex,l=e.form,c=e.menuIsOpen,d=e.required,f=this.getComponents().Input,p=this.state,h=p.inputIsHidden,m=p.ariaSelection,g=this.commonProps,b=o||this.getElementId("input"),y=(0,r.Z)((0,r.Z)((0,r.Z)({"aria-autocomplete":"list","aria-expanded":c,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":d,role:"combobox"},c&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null===m||void 0===m?void 0:m.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?a.createElement(f,(0,u.Z)({},g,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:b,innerRef:this.getInputRef,isDisabled:t,isHidden:h,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:s,form:l,type:"text",value:i},y)):a.createElement(N,(0,u.Z)({id:b,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:v.J,onFocus:this.onInputFocus,disabled:t,tabIndex:s,inputMode:"none",form:l,value:""},y))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,i=t.MultiValueRemove,s=t.SingleValue,l=t.Placeholder,c=this.commonProps,d=this.props,f=d.controlShouldRenderValue,p=d.isDisabled,v=d.isMulti,h=d.inputValue,m=d.placeholder,g=this.state,b=g.selectValue,y=g.focusedValue,S=g.isFocused;if(!this.hasValue()||!f)return h?null:a.createElement(l,(0,u.Z)({},c,{key:"placeholder",isDisabled:p,isFocused:S,innerProps:{id:this.getElementId("placeholder")}}),m);if(v)return b.map((function(t,s){var l=t===y,d="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return a.createElement(n,(0,u.Z)({},c,{components:{Container:r,Label:o,Remove:i},isFocused:l,isDisabled:p,key:d,index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(h)return null;var E=b[0];return a.createElement(s,(0,u.Z)({},c,{data:E,isDisabled:p}),this.formatOptionLabel(E,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return a.createElement(e,(0,u.Z)({},t,{innerProps:s,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!e||!o)return null;return a.createElement(e,(0,u.Z)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:i}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,i=this.state.isFocused;return a.createElement(n,(0,u.Z)({},r,{isDisabled:o,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return a.createElement(e,(0,u.Z)({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,i=t.MenuList,s=t.MenuPortal,l=t.LoadingMessage,c=t.NoOptionsMessage,d=t.Option,f=this.commonProps,p=this.state.focusedOption,h=this.props,m=h.captureMenuScroll,g=h.inputValue,b=h.isLoading,y=h.loadingMessage,S=h.minMenuHeight,E=h.maxMenuHeight,w=h.menuIsOpen,_=h.menuPlacement,I=h.menuPosition,R=h.menuPortalTarget,C=h.menuShouldBlockScroll,x=h.menuShouldScrollIntoView,T=h.noOptionsMessage,D=h.onMenuScrollToTop,O=h.onMenuScrollToBottom;if(!w)return null;var A,N=function(t,n){var r=t.type,o=t.data,i=t.isDisabled,s=t.isSelected,l=t.label,c=t.value,v=p===o,h=i?void 0:function(){return e.onOptionHover(o)},m=i?void 0:function(){return e.selectOption(o)},g="".concat(e.getElementId("option"),"-").concat(n),b={id:g,onClick:m,onMouseMove:h,onMouseOver:h,tabIndex:-1};return a.createElement(d,(0,u.Z)({},f,{innerProps:b,data:o,isDisabled:i,isSelected:s,key:g,label:l,type:r,value:c,isFocused:v,innerRef:v?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())A=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,i=t.options,s=t.index,l="".concat(e.getElementId("group"),"-").concat(s),c="".concat(l,"-heading");return a.createElement(n,(0,u.Z)({},f,{key:l,data:o,options:i,Heading:r,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return N(e,"".concat(s,"-").concat(e.index))})))}if("option"===t.type)return N(t,"".concat(t.index))}));else if(b){var P=y({inputValue:g});if(null===P)return null;A=a.createElement(l,f,P)}else{var L=T({inputValue:g});if(null===L)return null;A=a.createElement(c,f,L)}var k={minMenuHeight:S,maxMenuHeight:E,menuPlacement:_,menuPosition:I,menuShouldScrollIntoView:x},M=a.createElement(v.M,(0,u.Z)({},f,k),(function(t){var n=t.ref,r=t.placerProps,s=r.placement,l=r.maxHeight;return a.createElement(o,(0,u.Z)({},f,k,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:b,placement:s}),a.createElement(z,{captureEnabled:m,onTopArrive:D,onBottomArrive:O,lockEnabled:C},(function(t){return a.createElement(i,(0,u.Z)({},f,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:b,maxHeight:l,focusedOption:p}),A)})))}));return R||"fixed"===I?a.createElement(s,(0,u.Z)({},f,{appendTo:R,controlElement:this.controlRef,menuPlacement:_,menuPosition:I}),M):M}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,s=t.required,u=this.state.selectValue;if(s&&!this.hasValue()&&!r)return a.createElement($,{name:i,onFocus:this.onValueInputFocus});if(i&&!r){if(o){if(n){var l=u.map((function(t){return e.getOptionValue(t)})).join(n);return a.createElement("input",{name:i,type:"hidden",value:l})}var c=u.length>0?u.map((function(t,n){return a.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):a.createElement("input",{name:i,type:"hidden",value:""});return a.createElement("div",null,c)}var d=u[0]?this.getOptionValue(u[0]):"";return a.createElement("input",{name:i,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.isFocused,s=t.selectValue,l=this.getFocusableOptions();return a.createElement(S,(0,u.Z)({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:i,selectValue:s,focusableOptions:l}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,i=this.props,s=i.className,l=i.id,c=i.isDisabled,d=i.menuIsOpen,f=this.state.isFocused,p=this.commonProps=this.getCommonProps();return a.createElement(r,(0,u.Z)({},p,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:f}),this.renderLiveRegion(),a.createElement(t,(0,u.Z)({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:f,menuIsOpen:d}),a.createElement(o,(0,u.Z)({},p,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),a.createElement(n,(0,u.Z)({},p,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,o=t.clearFocusValueOnUpdate,i=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,s=t.isFocused,u=t.prevWasFocused,l=e.options,c=e.value,d=e.menuIsOpen,f=e.inputValue,p=e.isMulti,h=(0,v.H)(c),m={};if(n&&(c!==n.value||l!==n.options||d!==n.menuIsOpen||f!==n.inputValue)){var g=d?function(e,t){return ee(Q(e,t))}(e,h):[],b=o?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,g);m={selectValue:h,focusedOption:y,focusedValue:b,clearFocusValueOnUpdate:!1}}var S=null!=i&&e!==n?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},E=a,w=s&&u;return s&&!w&&(E={value:(0,v.D)(p,h,h[0]||null),options:h,action:"initial-input-focus"},w=!u),"initial-input-focus"===(null===a||void 0===a?void 0:a.action)&&(E=null),(0,r.Z)((0,r.Z)((0,r.Z)({},m),S),{},{prevProps:e,ariaSelection:E,prevWasFocused:w})}}]),n}(a.Component);le.defaultProps=J;n(63394),n(73935),n(73469);var ce=(0,a.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,u=e.defaultMenuIsOpen,l=void 0!==u&&u,c=e.defaultValue,d=void 0===c?null:c,f=e.inputValue,p=e.menuIsOpen,v=e.onChange,h=e.onInputChange,m=e.onMenuClose,g=e.onMenuOpen,b=e.value,y=(0,i.Z)(e,s),S=(0,a.useState)(void 0!==f?f:n),E=(0,o.Z)(S,2),w=E[0],_=E[1],I=(0,a.useState)(void 0!==p?p:l),R=(0,o.Z)(I,2),C=R[0],x=R[1],T=(0,a.useState)(void 0!==b?b:d),D=(0,o.Z)(T,2),O=D[0],A=D[1],N=(0,a.useCallback)((function(e,t){"function"===typeof v&&v(e,t),A(e)}),[v]),P=(0,a.useCallback)((function(e,t){var n;"function"===typeof h&&(n=h(e,t)),_(void 0!==n?n:e)}),[h]),L=(0,a.useCallback)((function(){"function"===typeof g&&g(),x(!0)}),[g]),k=(0,a.useCallback)((function(){"function"===typeof m&&m(),x(!1)}),[m]),M=void 0!==f?f:w,B=void 0!==p?p:C,V=void 0!==b?b:O;return(0,r.Z)((0,r.Z)({},y),{},{inputValue:M,menuIsOpen:B,onChange:N,onInputChange:P,onMenuClose:k,onMenuOpen:L,value:V})}(e);return a.createElement(le,(0,u.Z)({ref:t},n))})),de=ce},57762:function(e,t,n){n.d(t,{ZP:function(){return m}});var r=n(63366),o=n(94578),i=n(67294),a=n(73935),s=!1,u=i.createContext(null),l="unmounted",c="exited",d="entering",f="entered",p="exiting",v=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=c,r.appearStatus=d):o=f:o=t.unmountOnExit||t.mountOnEnter?l:c,r.state={status:o},r.nextCallback=null,r}(0,o.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===l?{status:c}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==d&&n!==f&&(t=d):n!==d&&n!==f||(t=p)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.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}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===d){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===c&&this.setState({status:l})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[a.findDOMNode(this),r],i=o[0],u=o[1],l=this.getTimeouts(),c=r?l.appear:l.enter;!e&&!n||s?this.safeSetState({status:f},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,u),this.safeSetState({status:d},(function(){t.props.onEntering(i,u),t.onTransitionEnd(c,(function(){t.safeSetState({status:f},(function(){t.props.onEntered(i,u)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:a.findDOMNode(this);t&&!s?(this.props.onExit(r),this.safeSetState({status:p},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:c},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:c},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.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},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],s=o[1];this.props.addEndListener(i,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===l)return null;var t=this.props,n=t.children,o=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,r.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return i.createElement(u.Provider,{value:null},"function"===typeof n?n(e,o):i.cloneElement(i.Children.only(n),o))},t}(i.Component);function h(){}v.contextType=u,v.propTypes={},v.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},v.UNMOUNTED=l,v.EXITED=c,v.ENTERING=d,v.ENTERED=f,v.EXITING=p;var m=v},30644:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(67294);function o(){var e=(0,r.useRef)(!0);return e.current?(e.current=!1,!0):e.current}},48286:function(e,t,n){var r=n(67294),o=n(30644);t.Z=function(e,t){var n=(0,o.Z)();(0,r.useEffect)((function(){if(!n)return e()}),t)}},88387:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isNavigator=t.isBrowser=t.off=t.on=t.noop=void 0;t.noop=function(){},t.on=function(e){for(var t=[],n=1;n=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function u(e,t){return function(n,r){t(n,r,e)}}function l(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function s(e){try{u(r.throw(e))}catch(t){i(t)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function d(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function h(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function m(){for(var e=[],t=0;t1||s(e,t)}))})}function s(e,t){try{(n=o[e](t)).value instanceof y?Promise.resolve(n.value.v).then(u,l):c(i[0][2],n)}catch(r){c(i[0][3],r)}var n}function u(e){s("next",e)}function l(e){s("throw",e)}function c(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function E(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:y(e[r](t)),done:"return"===r}:o?o(t):t}:o}}function w(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=v(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}}function _(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var I=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function R(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&f(t,e,n);return I(t,e),t}function C(e){return e&&e.__esModule?e:{default:e}}function x(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function T(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n}function D(e,t){if(null===t||"object"!==typeof t&&"function"!==typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"===typeof e?t===e:e.has(t)}},72408:function(e,t){var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,m={};function g(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||v}function b(){}function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||v}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=g.prototype;var S=y.prototype=new b;S.constructor=y,h(S,g.prototype),S.isPureReactComponent=!0;var E=Array.isArray,w=Object.prototype.hasOwnProperty,_={current:null},I={key:!0,ref:!0,__self:!0,__source:!0};function R(e,t,r){var o,i={},a=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)w.call(t,o)&&!I.hasOwnProperty(o)&&(i[o]=t[o]);var u=arguments.length-2;if(1===u)i.children=r;else if(1this.map(e)))):v(t)}}}class d extends l{constructor(e){super(),u(this,"state","hasError"),u(this,"contents",void 0),this.contents=e}getValue(){throw this.contents}toPromise(){return Promise.reject(this.contents)}valueMaybe(){}promiseMaybe(){}errorMaybe(){return this.contents}errorOrThrow(){return this.contents}map(e){return this}}class f extends l{constructor(e){super(),u(this,"state","loading"),u(this,"contents",void 0),this.contents=e}getValue(){throw this.contents}toPromise(){return this.contents}valueMaybe(){}promiseMaybe(){return this.contents}promiseOrThrow(){return this.contents}errorMaybe(){}map(e){return h(this.contents.then((t=>{const n=e(t);if(b(n)){const e=n;switch(e.state){case"hasValue":case"loading":return e.contents;case"hasError":throw e.contents}}return n})).catch((t=>{if(a(t))return t.then((()=>this.map(e).contents));throw t})))}}function p(e){return Object.freeze(new c(e))}function v(e){return Object.freeze(new d(e))}function h(e){return Object.freeze(new f(e))}function m(){return Object.freeze(new f(new Promise((()=>{}))))}function g(e){const t=function(e){return e.every((e=>"hasValue"===e.state))?p(e.map((e=>e.contents))):e.some((e=>"hasError"===e.state))?v(s(e.find((e=>"hasError"===e.state)),"Invalid loadable passed to loadableAll").contents):h(Promise.all(e.map((e=>e.contents))))}((Array.isArray(e)?e:Object.getOwnPropertyNames(e).map((t=>e[t]))).map((e=>b(e)?e:a(e)?h(e):p(e))));return Array.isArray(e)?t:t.map((t=>Object.getOwnPropertyNames(e).reduce(((e,n,r)=>({...e,[n]:t[r]})),{})))}function b(e){return e instanceof l}const y={of:e=>a(e)?h(e):b(e)?e:p(e),error:e=>v(e),loading:()=>m(),all:g,isLoadable:b};var S={loadableWithValue:p,loadableWithError:v,loadableWithPromise:h,loadableLoading:m,loadableAll:g,isLoadable:b,RecoilLoadable:y},E=S.loadableWithValue,w=S.loadableWithError,_=S.loadableWithPromise,I=S.loadableLoading,R=S.loadableAll,C=S.isLoadable,x=S.RecoilLoadable,T=Object.freeze({__proto__:null,loadableWithValue:E,loadableWithError:w,loadableWithPromise:_,loadableLoading:I,loadableAll:R,isLoadable:C,RecoilLoadable:x});const D={RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED:!0,RECOIL_GKS_ENABLED:new Set(["recoil_hamt_2020","recoil_sync_external_store","recoil_suppress_rerender_in_callback","recoil_memory_managament_2020"])};!function(){var e;"undefined"!==typeof process&&null!=(null===(e=process)||void 0===e?void 0:e.env)&&(function(e,t){var n,r;const o=null===(n=process.env[e])||void 0===n||null===(r=n.toLowerCase())||void 0===r?void 0:r.trim();if(null==o||""===o)return;if(!["true","false"].includes(o))throw i(`process.env.${e} value must be 'true', 'false', or empty: ${o}`);t("true"===o)}("RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED",(e=>{D.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED=e})),function(e,t){var n;const r=null===(n=process.env[e])||void 0===n?void 0:n.trim();null!=r&&""!==r&&t(r.split(/\s*,\s*|\s+/))}("RECOIL_GKS_ENABLED",(e=>{e.forEach((e=>{D.RECOIL_GKS_ENABLED.add(e)}))})))}();var O=D;function A(e){return O.RECOIL_GKS_ENABLED.has(e)}A.setPass=e=>{O.RECOIL_GKS_ENABLED.add(e)},A.setFail=e=>{O.RECOIL_GKS_ENABLED.delete(e)},A.clear=()=>{O.RECOIL_GKS_ENABLED.clear()};var N=A;var P,L,k,M=function(e,t,{error:n}={}){return null};const B=null!==(P=r.createMutableSource)&&void 0!==P?P:r.unstable_createMutableSource,V=null!==(L=r.useMutableSource)&&void 0!==L?L:r.unstable_useMutableSource,F=null!==(k=r.useSyncExternalStore)&&void 0!==k?k:r.unstable_useSyncExternalStore;let U=!1;var Z={createMutableSource:B,useMutableSource:V,useSyncExternalStore:F,currentRendererSupportsUseSyncExternalStore:function(){var e;const{ReactCurrentDispatcher:t,ReactCurrentOwner:n}=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,o=null!=(null!==(e=null===t||void 0===t?void 0:t.current)&&void 0!==e?e:n.currentDispatcher).useSyncExternalStore;return!F||o||U||(U=!0,M("A React renderer without React 18+ API support is being used with React 18+.")),o},reactMode:function(){return N("recoil_transition_support")?{mode:"TRANSITION_SUPPORT",early:!0,concurrent:!0}:N("recoil_sync_external_store")&&null!=F?{mode:"SYNC_EXTERNAL_STORE",early:!0,concurrent:!1}:N("recoil_mutable_source")&&null!=V&&"undefined"!==typeof window&&!window.$disableRecoilValueMutableSource_TEMP_HACK_DO_NOT_USE?N("recoil_suppress_rerender_in_callback")?{mode:"MUTABLE_SOURCE",early:!0,concurrent:!0}:{mode:"MUTABLE_SOURCE",early:!1,concurrent:!1}:N("recoil_suppress_rerender_in_callback")?{mode:"LEGACY",early:!0,concurrent:!1}:{mode:"LEGACY",early:!1,concurrent:!1}},isFastRefreshEnabled:function(){return!1}};class G{constructor(e){u(this,"key",void 0),this.key=e}toJSON(){return{key:this.key}}}class j extends G{}class H extends G{}var z={AbstractRecoilValue:G,RecoilState:j,RecoilValueReadOnly:H,isRecoilValue:function(e){return e instanceof j||e instanceof H}},W=z.AbstractRecoilValue,$=z.RecoilState,q=z.RecoilValueReadOnly,Y=z.isRecoilValue,K=Object.freeze({__proto__:null,AbstractRecoilValue:W,RecoilState:$,RecoilValueReadOnly:q,isRecoilValue:Y});var J=function(e,...t){0};var X=function(e,t){return function*(){let n=0;for(const r of e)yield t(r,n++)}()};const{isFastRefreshEnabled:Q}=Z;class ee{}const te=new ee,ne=new Map,re=new Map;class oe extends Error{}const ie=new Map;function ae(e){return ie.get(e)}var se={nodes:ne,recoilValues:re,registerNode:function(e){O.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED&&function(e){if(ne.has(e)){const t=`Duplicate atom key "${e}". This is a FATAL ERROR in\n production. But it is safe to ignore this warning if it occurred because of\n hot module replacement.`;console.warn(t)}}(e.key),ne.set(e.key,e);const t=null==e.set?new K.RecoilValueReadOnly(e.key):new K.RecoilState(e.key);return re.set(e.key,t),t},getNode:function(e){const t=ne.get(e);if(null==t)throw new oe(`Missing definition for RecoilValue: "${e}""`);return t},getNodeMaybe:function(e){return ne.get(e)},deleteNodeConfigIfPossible:function(e){var t;if(!N("recoil_memory_managament_2020"))return;const n=ne.get(e);var r;null!==n&&void 0!==n&&null!==(t=n.shouldDeleteConfigOnRelease)&&void 0!==t&&t.call(n)&&(ne.delete(e),null===(r=ae(e))||void 0===r||r(),ie.delete(e))},setConfigDeletionHandler:function(e,t){N("recoil_memory_managament_2020")&&(void 0===t?ie.delete(e):ie.set(e,t))},getConfigDeletionHandler:ae,recoilValuesForKeys:function(e){return X(e,(e=>s(re.get(e))))},NodeMissingError:oe,DefaultValue:ee,DEFAULT_VALUE:te};var ue={enqueueExecution:function(e,t){t()}};var le,ce,de=(le=function(e){var t="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},n={},r=Math.pow(2,5),o=r-1,i=r/2,a=r/4,s={},u=function(e){return function(){return e}},l=n.hash=function(e){var n="undefined"===typeof e?"undefined":t(e);if("number"===n)return e;"string"!==n&&(e+="");for(var r=0,o=0,i=e.length;o>>e&o},d=function(e){return 1<>1&1431655765))+(n>>2&858993459))+(n>>4)&252645135,127&(n+=n>>8)+(n>>16);var n},p=function(e,t,n,r){var o=r;if(!e){var i=r.length;o=new Array(i);for(var a=0;a1?b(e,this.hash,u):u[0]}var l=r();return l===s?this:(++a.value,E(e,n,this.hash,this,o,g(e,o,i,l)))},R=function(e,t,n,r,o,a,s){var u=this.mask,l=this.children,g=c(n,o),b=d(g),E=f(u,b),_=u&b,I=_?l[E]:h,R=I._modify(e,t,n+5,r,o,a,s);if(I===R)return this;var C,x=w(e,this),T=u,D=void 0;if(_&&m(R)){if(!(T&=~b))return h;if(l.length<=2&&((C=l[1^E])===h||1===C.type||2===C.type))return l[1^E];D=v(x,E,l)}else if(_||m(R))D=p(x,E,R,l);else{if(l.length>=i)return function(e,t,n,r,o){for(var i=[],a=r,s=0,u=0;a;++u)1&a&&(i[u]=o[s++]),a>>>=1;return i[t]=n,S(e,s+1,i)}(e,g,R,u,l);T|=b,D=function(e,t,n,r){var o=r.length;if(e){for(var i=o;i>=t;)r[i--]=r[i];return r[t]=n,r}for(var a=0,s=0,u=new Array(o+1);a{n.set(r,t(e,r))})),n};function ye(e,t,n,r){const{nodeDeps:o,nodeToNodeSubscriptions:i}=n,a=o.get(e);if(a&&r&&a!==r.nodeDeps.get(e))return;o.set(e,t);const u=null==a?t:ge(t,a);for(const l of u){i.has(l)||i.set(l,new Set);s(i.get(l)).add(e)}if(a){const n=ge(a,t);for(const t of n){if(!i.has(t))return;const n=s(i.get(t));n.delete(e),0===n.size&&i.delete(t)}}}var Se={cloneGraph:function(e){return{nodeDeps:be(e.nodeDeps,(e=>new Set(e))),nodeToNodeSubscriptions:be(e.nodeToNodeSubscriptions,(e=>new Set(e)))}},graph:function(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}},saveDepsToStore:function(e,t,n,r){var o,i,a,s;const u=n.getState();r!==u.currentTree.version&&r!==(null===(o=u.nextTree)||void 0===o?void 0:o.version)&&r!==(null===(i=u.previousTree)||void 0===i?void 0:i.version)&&M("Tried to save dependencies to a discarded tree");const l=n.getGraph(r);if(ye(e,t,l),r===(null===(a=u.previousTree)||void 0===a?void 0:a.version)){ye(e,t,n.getGraph(u.currentTree.version),l)}if(r===(null===(s=u.previousTree)||void 0===s?void 0:s.version)||r===u.currentTree.version){var c;const r=null===(c=u.nextTree)||void 0===c?void 0:c.version;if(void 0!==r){ye(e,t,n.getGraph(r),l)}}}};let Ee=0;let we=0;let _e=0;var Ie={getNextTreeStateVersion:()=>Ee++,getNextStoreID:()=>we++,getNextComponentID:()=>_e++};const{persistentMap:Re}=me,{graph:Ce}=Se,{getNextTreeStateVersion:xe}=Ie;function Te(){const e=xe();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:Re(),nonvalidatedAtoms:Re()}}var De={makeEmptyTreeState:Te,makeEmptyStoreState:function(){const e=Te();return{currentTree:e,nextTree:null,previousTree:null,commitDepth:0,knownAtoms:new Set,knownSelectors:new Set,transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:(new Map).set(e.version,Ce()),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}},getNextTreeStateVersion:xe};class Oe{}var Ae={RetentionZone:Oe,retentionZone:function(){return new Oe}};var Ne={setByAddingToSet:function(e,t){const n=new Set(e);return n.add(t),n},setByDeletingFromSet:function(e,t){const n=new Set(e);return n.delete(t),n},mapBySettingInMap:function(e,t,n){const r=new Map(e);return r.set(t,n),r},mapByUpdatingInMap:function(e,t,n){const r=new Map(e);return r.set(t,n(r.get(t))),r},mapByDeletingFromMap:function(e,t){const n=new Map(e);return n.delete(t),n},mapByDeletingMultipleFromMap:function(e,t){const n=new Map(e);return t.forEach((e=>n.delete(e))),n}};var Pe=function*(e,t){let n=0;for(const r of e)t(r,n++)&&(yield r)};var Le=function(e,t){return new Proxy(e,{get:(e,n)=>(!(n in e)&&n in t&&(e[n]=t[n]()),e[n]),ownKeys:e=>Object.keys(e)})};const{getNode:ke,getNodeMaybe:Me,recoilValuesForKeys:Be}=se,{RetentionZone:Ve}=Ae,{setByAddingToSet:Fe}=Ne,Ue=Object.freeze(new Set);class Ze extends Error{}function Ge(e,t,n,r){const o=e.getState();if(o.nodeCleanupFunctions.has(n))return;const i=ke(n),a=function(e,t,n){if(!N("recoil_memory_managament_2020"))return()=>{};const{nodesRetainedByZone:r}=e.getState().retention;function o(e){let n=r.get(e);n||r.set(e,n=new Set),n.add(t)}if(n instanceof Ve)o(n);else if(Array.isArray(n))for(const i of n)o(i);return()=>{if(!N("recoil_memory_managament_2020"))return;const{retention:r}=e.getState();function o(e){const n=r.nodesRetainedByZone.get(e);null===n||void 0===n||n.delete(t),n&&0===n.size&&r.nodesRetainedByZone.delete(e)}if(n instanceof Ve)o(n);else if(Array.isArray(n))for(const e of n)o(e)}}(e,n,i.retainedBy),s=i.init(e,t,r);o.nodeCleanupFunctions.set(n,(()=>{s(),a()}))}function je(e,t,n){return ke(n).peek(e,t)}function He(e,t,n){const r=new Set,o=Array.from(n),i=e.getGraph(t.version);for(let s=o.pop();s;s=o.pop()){var a;r.add(s);const e=null!==(a=i.nodeToNodeSubscriptions.get(s))&&void 0!==a?a:Ue;for(const t of e)r.has(t)||o.push(t)}return r}var ze={getNodeLoadable:function(e,t,n){return Ge(e,t,n,"get"),ke(n).get(e,t)},peekNodeLoadable:je,setNodeValue:function(e,t,n,r){const o=ke(n);if(null==o.set)throw new Ze(`Attempt to set read-only RecoilValue: ${n}`);const i=o.set;return Ge(e,t,n,"set"),i(e,t,r)},initializeNode:function(e,t,n){Ge(e,e.getState().currentTree,t,n)},cleanUpNode:function(e,t){var n;const r=e.getState();null===(n=r.nodeCleanupFunctions.get(t))||void 0===n||n(),r.nodeCleanupFunctions.delete(t)},setUnvalidatedAtomValue_DEPRECATED:function(e,t,n){var r;const o=Me(t);return null===o||void 0===o||null===(r=o.invalidate)||void 0===r||r.call(o,e),{...e,atomValues:e.atomValues.clone().delete(t),nonvalidatedAtoms:e.nonvalidatedAtoms.clone().set(t,n),dirtyAtoms:Fe(e.dirtyAtoms,t)}},peekNodeInfo:function(e,t,n){const r=e.getState(),o=e.getGraph(t.version),i=ke(n).nodeType;return Le({type:i},{loadable:()=>je(e,t,n),isActive:()=>r.knownAtoms.has(n)||r.knownSelectors.has(n),isSet:()=>"selector"!==i&&t.atomValues.has(n),isModified:()=>t.dirtyAtoms.has(n),deps:()=>{var e;return Be(null!==(e=o.nodeDeps.get(n))&&void 0!==e?e:[])},subscribers:()=>{var o,i;return{nodes:Be(Pe(He(e,t,new Set([n])),(e=>e!==n))),components:X(null!==(o=null===(i=r.nodeToComponentSubscriptions.get(n))||void 0===i?void 0:i.values())&&void 0!==o?o:[],(([e])=>({name:e})))}}})},getDownstreamNodes:He};let We=null;var $e={setInvalidateMemoizedSnapshot:function(e){We=e},invalidateMemoizedSnapshot:function(){var e;null===(e=We)||void 0===e||e()}};const{getDownstreamNodes:qe,getNodeLoadable:Ye,setNodeValue:Ke}=ze,{getNextComponentID:Je}=Ie,{getNode:Xe,getNodeMaybe:Qe}=se,{DefaultValue:et}=se,{reactMode:tt}=Z,{AbstractRecoilValue:nt,RecoilState:rt,RecoilValueReadOnly:ot,isRecoilValue:it}=K,{invalidateMemoizedSnapshot:at}=$e;function st(e,t,n){if("set"===n.type){const{recoilValue:r,valueOrUpdater:o}=n,a=function(e,t,{key:n},r){if("function"===typeof r){const o=Ye(e,t,n);if("loading"===o.state){const e=`Tried to set atom or selector "${n}" using an updater function while the current state is pending, this is not currently supported.`;throw M(e),i(e)}if("hasError"===o.state)throw o.contents;return r(o.contents)}return r}(e,t,r,o),s=Ke(e,t,r.key,a);for(const[e,n]of s.entries())ut(t,e,n)}else if("setLoadable"===n.type){const{recoilValue:{key:e},loadable:r}=n;ut(t,e,r)}else if("markModified"===n.type){const{recoilValue:{key:e}}=n;t.dirtyAtoms.add(e)}else if("setUnvalidated"===n.type){var r;const{recoilValue:{key:e},unvalidatedValue:o}=n,i=Qe(e);null===i||void 0===i||null===(r=i.invalidate)||void 0===r||r.call(i,t),t.atomValues.delete(e),t.nonvalidatedAtoms.set(e,o),t.dirtyAtoms.add(e)}else M(`Unknown action ${n.type}`)}function ut(e,t,n){"hasValue"===n.state&&n.contents instanceof et?e.atomValues.delete(t):e.atomValues.set(t,n),e.dirtyAtoms.add(t),e.nonvalidatedAtoms.delete(t)}function lt(e,t){e.replaceState((n=>{const r=ft(n);for(const o of t)st(e,r,o);return pt(e,r),at(),r}))}function ct(e,t){if(dt.length){const n=dt[dt.length-1];let r=n.get(e);r||n.set(e,r=[]),r.push(t)}else lt(e,[t])}const dt=[];function ft(e){return{...e,atomValues:e.atomValues.clone(),nonvalidatedAtoms:e.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(e.dirtyAtoms)}}function pt(e,t){const n=qe(e,t,t.dirtyAtoms);for(const i of n){var r,o;null===(r=Qe(i))||void 0===r||null===(o=r.invalidate)||void 0===o||o.call(r,t)}}function vt(e,t,n){ct(e,{type:"set",recoilValue:t,valueOrUpdater:n})}var ht={RecoilValueReadOnly:ot,AbstractRecoilValue:nt,RecoilState:rt,getRecoilValueAsLoadable:function(e,{key:t},n=e.getState().currentTree){var r,o;const i=e.getState();n.version!==i.currentTree.version&&n.version!==(null===(r=i.nextTree)||void 0===r?void 0:r.version)&&n.version!==(null===(o=i.previousTree)||void 0===o?void 0:o.version)&&M("Tried to read from a discarded tree");const a=Ye(e,n,t);return"loading"===a.state&&a.contents.catch((()=>{})),a},setRecoilValue:vt,setRecoilValueLoadable:function(e,t,n){if(n instanceof et)return vt(e,t,n);ct(e,{type:"setLoadable",recoilValue:t,loadable:n})},markRecoilValueModified:function(e,t){ct(e,{type:"markModified",recoilValue:t})},setUnvalidatedRecoilValue:function(e,t,n){ct(e,{type:"setUnvalidated",recoilValue:t,unvalidatedValue:n})},subscribeToRecoilValue:function(e,{key:t},n,r=null){const o=Je(),i=e.getState();i.nodeToComponentSubscriptions.has(t)||i.nodeToComponentSubscriptions.set(t,new Map),s(i.nodeToComponentSubscriptions.get(t)).set(o,[null!==r&&void 0!==r?r:"",n]);const a=tt();if(a.early&&("LEGACY"===a.mode||"MUTABLE_SOURCE"===a.mode)){const r=e.getState().nextTree;r&&r.dirtyAtoms.has(t)&&n(r)}return{release:()=>{const n=e.getState(),r=n.nodeToComponentSubscriptions.get(t);void 0!==r&&r.has(o)?(r.delete(o),0===r.size&&n.nodeToComponentSubscriptions.delete(t)):M(`Subscription missing at release time for atom ${t}. This is a bug in Recoil.`)}}},isRecoilValue:it,applyAtomValueWrites:function(e,t){const n=e.clone();return t.forEach(((e,t)=>{"hasValue"===e.state&&e.contents instanceof et?n.delete(t):n.set(t,e)})),n},batchStart:function(){const e=new Map;return dt.push(e),()=>{for(const[t,n]of e)lt(t,n);dt.pop()!==e&&M("Incorrect order of batch popping")}},writeLoadableToTreeState:ut,invalidateDownstreams:pt,copyTreeState:ft,refreshRecoilValue:function(e,t){var n;const{currentTree:r}=e.getState(),o=Xe(t.key);null===(n=o.clearCache)||void 0===n||n.call(o,e,r)}};var mt=function(e,t,n){const r=e.entries();let o=r.next();for(;!o.done;){const i=o.value;if(t.call(n,i[1],i[0],e))return!0;o=r.next()}return!1};const{cleanUpNode:gt}=ze,{deleteNodeConfigIfPossible:bt,getNode:yt}=se,{RetentionZone:St}=Ae,Et=new Set;function wt(e,t){const n=e.getState(),r=n.currentTree;if(n.nextTree)return void M("releaseNodesNowOnCurrentTree should only be called at the end of a batch");const o=new Set;for(const a of t)if(a instanceof St)for(const e of It(n,a))o.add(e);else o.add(a);const i=function(e,t){const n=e.getState(),r=n.currentTree,o=e.getGraph(r.version),i=new Set,a=new Set;return u(t),i;function u(t){const l=new Set,c=function(e,t,n,r,o){const i=e.getGraph(t.version),a=[],u=new Set;for(;n.size>0;)l(s(n.values().next().value));return a;function l(e){if(r.has(e)||o.has(e))return void n.delete(e);if(u.has(e))return;const t=i.nodeToNodeSubscriptions.get(e);if(t)for(const n of t)l(n);u.add(e),n.delete(e),a.push(e)}}(e,r,t,i,a);for(const e of c){var d;if("recoilRoot"===yt(e).retainedBy){a.add(e);continue}if((null!==(d=n.retention.referenceCounts.get(e))&&void 0!==d?d:0)>0){a.add(e);continue}if(Rt(e).some((e=>n.retention.referenceCounts.get(e)))){a.add(e);continue}const t=o.nodeToNodeSubscriptions.get(e);t&&mt(t,(e=>a.has(e)))?a.add(e):(i.add(e),l.add(e))}const f=new Set;for(const e of l)for(const t of null!==(p=o.nodeDeps.get(e))&&void 0!==p?p:Et){var p;i.has(t)||f.add(t)}f.size&&u(f)}}(e,o);for(const a of i)_t(e,r,a)}function _t(e,t,n){if(!N("recoil_memory_managament_2020"))return;gt(e,n);const r=e.getState();r.knownAtoms.delete(n),r.knownSelectors.delete(n),r.nodeTransactionSubscriptions.delete(n),r.retention.referenceCounts.delete(n);const o=Rt(n);for(const u of o){var i;null===(i=r.retention.nodesRetainedByZone.get(u))||void 0===i||i.delete(n)}t.atomValues.delete(n),t.dirtyAtoms.delete(n),t.nonvalidatedAtoms.delete(n);const a=r.graphsByVersion.get(t.version);if(a){const e=a.nodeDeps.get(n);if(void 0!==e){a.nodeDeps.delete(n);for(const t of e){var s;null===(s=a.nodeToNodeSubscriptions.get(t))||void 0===s||s.delete(n)}}a.nodeToNodeSubscriptions.delete(n)}bt(n)}function It(e,t){var n;return null!==(n=e.retention.nodesRetainedByZone.get(t))&&void 0!==n?n:Et}function Rt(e){const t=yt(e).retainedBy;return void 0===t||"components"===t||"recoilRoot"===t?[]:t instanceof St?[t]:t}function Ct(e,t){if(!N("recoil_memory_managament_2020"))return;e.getState().retention.referenceCounts.delete(t),function(e,t){const n=e.getState();n.nextTree?n.retention.retainablesToCheckForRelease.add(t):wt(e,new Set([t]))}(e,t)}var xt={SUSPENSE_TIMEOUT_MS:12e4,updateRetainCount:function(e,t,n){var r;if(!N("recoil_memory_managament_2020"))return;const o=e.getState().retention.referenceCounts,i=(null!==(r=o.get(t))&&void 0!==r?r:0)+n;0===i?Ct(e,t):o.set(t,i)},updateRetainCountToZero:Ct,releaseScheduledRetainablesNow:function(e){if(!N("recoil_memory_managament_2020"))return;const t=e.getState();wt(e,t.retention.retainablesToCheckForRelease),t.retention.retainablesToCheckForRelease.clear()},retainedByOptionWithDefault:function(e){return void 0===e?"recoilRoot":e}};const{unstable_batchedUpdates:Tt}=o;var Dt={unstable_batchedUpdates:Tt};const{unstable_batchedUpdates:Ot}=Dt;var At={unstable_batchedUpdates:Ot};const{batchStart:Nt}=ht,{unstable_batchedUpdates:Pt}=At;let Lt=Pt||(e=>e());var kt={getBatcher:()=>Lt,setBatcher:e=>{Lt=e},batchUpdates:e=>{Lt((()=>{let t=()=>{};try{t=Nt(),e()}finally{t()}}))}};var Mt=function*(e){for(const t of e)for(const e of t)yield e};const Bt="undefined"===typeof Window||"undefined"===typeof window,Vt="undefined"!==typeof navigator&&"ReactNative"===navigator.product;var Ft={isSSR:Bt,isReactNative:Vt,isWindow:e=>!Bt&&(e===window||e instanceof Window)};var Ut={memoizeWithArgsHash:function(e,t){let n;return(...r)=>{n||(n={});const o=t(...r);return Object.hasOwnProperty.call(n,o)||(n[o]=e(...r)),n[o]}},memoizeOneWithArgsHash:function(e,t){let n,r;return(...o)=>{const i=t(...o);return n===i||(n=i,r=e(...o)),r}},memoizeOneWithArgsHashAndInvalidation:function(e,t){let n,r;return[(...o)=>{const i=t(...o);return n===i||(n=i,r=e(...o)),r},()=>{n=null}]}};const{batchUpdates:Zt}=kt,{initializeNode:Gt,peekNodeInfo:jt}=ze,{graph:Ht}=Se,{getNextStoreID:zt}=Ie,{DEFAULT_VALUE:Wt,recoilValues:$t,recoilValuesForKeys:qt}=se,{AbstractRecoilValue:Yt,getRecoilValueAsLoadable:Kt,setRecoilValue:Jt,setUnvalidatedRecoilValue:Xt}=ht,{updateRetainCount:Qt}=xt,{setInvalidateMemoizedSnapshot:en}=$e,{getNextTreeStateVersion:tn,makeEmptyStoreState:nn}=De,{isSSR:rn}=Ft,{memoizeOneWithArgsHashAndInvalidation:on}=Ut;class an{constructor(e,t){u(this,"_store",void 0),u(this,"_refCount",1),u(this,"getLoadable",(e=>(this.checkRefCount_INTERNAL(),Kt(this._store,e)))),u(this,"getPromise",(e=>(this.checkRefCount_INTERNAL(),this.getLoadable(e).toPromise()))),u(this,"getNodes_UNSTABLE",(e=>{if(this.checkRefCount_INTERNAL(),!0===(null===e||void 0===e?void 0:e.isModified)){if(!1===(null===e||void 0===e?void 0:e.isInitialized))return[];const t=this._store.getState().currentTree;return qt(t.dirtyAtoms)}const t=this._store.getState().knownAtoms,n=this._store.getState().knownSelectors;return null==(null===e||void 0===e?void 0:e.isInitialized)?$t.values():!0===e.isInitialized?qt(Mt([t,n])):Pe($t.values(),(({key:e})=>!t.has(e)&&!n.has(e)))})),u(this,"getInfo_UNSTABLE",(({key:e})=>(this.checkRefCount_INTERNAL(),jt(this._store,this._store.getState().currentTree,e)))),u(this,"map",(e=>{this.checkRefCount_INTERNAL();const t=new cn(this,Zt);return e(t),t})),u(this,"asyncMap",(async e=>{this.checkRefCount_INTERNAL();const t=new cn(this,Zt);return t.retain(),await e(t),t.autoRelease_INTERNAL(),t})),this._store={storeID:zt(),parentStoreID:t,getState:()=>e,replaceState:t=>{e.currentTree=t(e.currentTree)},getGraph:t=>{const n=e.graphsByVersion;if(n.has(t))return s(n.get(t));const r=Ht();return n.set(t,r),r},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw i("Cannot subscribe to Snapshots")}};for(const n of this._store.getState().knownAtoms)Gt(this._store,n,"get"),Qt(this._store,n,1);this.autoRelease_INTERNAL()}retain(){this._refCount<=0&&M("Attempt to retain() Snapshot that was already released."),this._refCount++;let e=!1;return()=>{e||(e=!0,this._release())}}autoRelease_INTERNAL(){rn||window.setTimeout((()=>this._release()),10)}_release(){if(this._refCount--,0===this._refCount){if(this._store.getState().nodeCleanupFunctions.forEach((e=>e())),this._store.getState().nodeCleanupFunctions.clear(),!N("recoil_memory_managament_2020"))return}else this._refCount}isRetained(){return this._refCount>0}checkRefCount_INTERNAL(){N("recoil_memory_managament_2020")&&this._refCount}getStore_INTERNAL(){return this.checkRefCount_INTERNAL(),this._store}getID(){return this.checkRefCount_INTERNAL(),this._store.getState().currentTree.stateID}getStoreID(){return this.checkRefCount_INTERNAL(),this._store.storeID}}function sn(e,t,n=!1){const r=e.getState(),o=n?tn():t.version;return{currentTree:{version:n?o:t.version,stateID:n?o:t.stateID,transactionMetadata:{...t.transactionMetadata},dirtyAtoms:new Set(t.dirtyAtoms),atomValues:t.atomValues.clone(),nonvalidatedAtoms:t.nonvalidatedAtoms.clone()},commitDepth:0,nextTree:null,previousTree:null,knownAtoms:new Set(r.knownAtoms),knownSelectors:new Set(r.knownSelectors),transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:(new Map).set(o,e.getGraph(t.version)),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map(X(r.nodeCleanupFunctions.entries(),(([e])=>[e,()=>{}])))}}const[un,ln]=on(((e,t)=>{var n;const r=e.getState(),o="latest"===t?null!==(n=r.nextTree)&&void 0!==n?n:r.currentTree:s(r.previousTree);return new an(sn(e,o),e.storeID)}),((e,t)=>{var n,r;return String(t)+String(e.storeID)+String(null===(n=e.getState().nextTree)||void 0===n?void 0:n.version)+String(e.getState().currentTree.version)+String(null===(r=e.getState().previousTree)||void 0===r?void 0:r.version)}));en(ln);class cn extends an{constructor(e,t){super(sn(e.getStore_INTERNAL(),e.getStore_INTERNAL().getState().currentTree,!0),e.getStoreID()),u(this,"_batch",void 0),u(this,"set",((e,t)=>{this.checkRefCount_INTERNAL();const n=this.getStore_INTERNAL();this._batch((()=>{Qt(n,e.key,1),Jt(this.getStore_INTERNAL(),e,t)}))})),u(this,"reset",(e=>{this.checkRefCount_INTERNAL();const t=this.getStore_INTERNAL();this._batch((()=>{Qt(t,e.key,1),Jt(this.getStore_INTERNAL(),e,Wt)}))})),u(this,"setUnvalidatedAtomValues_DEPRECATED",(e=>{this.checkRefCount_INTERNAL();const t=this.getStore_INTERNAL();Zt((()=>{for(const[n,r]of e.entries())Qt(t,n,1),Xt(t,new Yt(n),r)}))})),this._batch=t}}var dn={Snapshot:an,MutableSnapshot:cn,freshSnapshot:function(e){const t=new an(nn());return null!=e?t.map(e):t},cloneSnapshot:function(e,t="latest"){const n=un(e,t);return n.isRetained()?n:(ln(),un(e,t))}},fn=dn.Snapshot,pn=dn.MutableSnapshot,vn=dn.freshSnapshot,hn=dn.cloneSnapshot,mn=Object.freeze({__proto__:null,Snapshot:fn,MutableSnapshot:pn,freshSnapshot:vn,cloneSnapshot:hn});var gn=function(...e){const t=new Set;for(const n of e)for(const e of n)t.add(e);return t};const{useRef:bn}=r;var yn=function(e){const t=bn(e);return t.current===e&&"function"===typeof e&&(t.current=e()),t};const{getNextTreeStateVersion:Sn,makeEmptyStoreState:En}=De,{cleanUpNode:wn,getDownstreamNodes:_n,initializeNode:In,setNodeValue:Rn,setUnvalidatedAtomValue_DEPRECATED:Cn}=ze,{graph:xn}=Se,{cloneGraph:Tn}=Se,{getNextStoreID:Dn}=Ie,{createMutableSource:On,reactMode:An}=Z,{applyAtomValueWrites:Nn}=ht,{releaseScheduledRetainablesNow:Pn}=xt,{freshSnapshot:Ln}=mn,{useCallback:kn,useContext:Mn,useEffect:Bn,useMemo:Vn,useRef:Fn,useState:Un}=r;function Zn(){throw i("This component must be used inside a component.")}const Gn=Object.freeze({storeID:Dn(),getState:Zn,replaceState:Zn,getGraph:Zn,subscribeToTransactions:Zn,addTransactionMetadata:Zn});let jn=!1;function Hn(e){if(jn)throw i("An atom update was triggered within the execution of a state updater function. State updater functions provided to Recoil must be pure functions.");const t=e.getState();if(null===t.nextTree){N("recoil_memory_managament_2020")&&N("recoil_release_on_cascading_update_killswitch_2021")&&t.commitDepth>0&&Pn(e);const n=t.currentTree.version,r=Sn();t.nextTree={...t.currentTree,version:r,stateID:r,dirtyAtoms:new Set,transactionMetadata:{}},t.graphsByVersion.set(r,Tn(s(t.graphsByVersion.get(n))))}}const zn=r.createContext({current:Gn}),Wn=()=>Mn(zn),$n=r.createContext(null);function qn(e,t,n){const r=_n(e,n,n.dirtyAtoms);for(const o of r){const e=t.nodeToComponentSubscriptions.get(o);if(e)for(const[t,[r,o]]of e)o(n)}}function Yn(e){const t=e.getState(),n=t.currentTree,r=n.dirtyAtoms;if(r.size){for(const[n,o]of t.nodeTransactionSubscriptions)if(r.has(n))for(const[t,r]of o)r(e);for(const[n,r]of t.transactionSubscriptions)r(e);(!An().early||t.suspendedComponentResolvers.size>0)&&(qn(e,t,n),t.suspendedComponentResolvers.forEach((e=>e())),t.suspendedComponentResolvers.clear())}t.queuedComponentCallbacks_DEPRECATED.forEach((e=>e(n))),t.queuedComponentCallbacks_DEPRECATED.splice(0,t.queuedComponentCallbacks_DEPRECATED.length)}function Kn({setNotifyBatcherOfChange:e}){const t=Wn(),[,n]=Un([]);return e((()=>n({}))),Bn((()=>(e((()=>n({}))),()=>{e((()=>{}))})),[e]),Bn((()=>{ue.enqueueExecution("Batcher",(()=>{!function(e){const t=e.getState();t.commitDepth++;try{const{nextTree:n}=t;if(null==n)return;t.previousTree=t.currentTree,t.currentTree=n,t.nextTree=null,Yn(e),null!=t.previousTree?t.graphsByVersion.delete(t.previousTree.version):M("Ended batch with no previous state, which is unexpected","recoil"),t.previousTree=null,N("recoil_memory_managament_2020")&&null==n&&Pn(e)}finally{t.commitDepth--}}(t.current)}))})),null}let Jn=0;function Xn({initializeState_DEPRECATED:e,initializeState:t,store_INTERNAL:n,children:o}){let i;const a=e=>{const t=i.current.graphsByVersion;if(t.has(e))return s(t.get(e));const n=xn();return t.set(e,n),n},u=(e,t)=>{if(null==t){const{transactionSubscriptions:t}=p.current.getState(),n=Jn++;return t.set(n,e),{release:()=>{t.delete(n)}}}{const{nodeTransactionSubscriptions:n}=p.current.getState();n.has(t)||n.set(t,new Map);const r=Jn++;return s(n.get(t)).set(r,e),{release:()=>{const e=n.get(t);e&&(e.delete(r),0===e.size&&n.delete(t))}}}},l=e=>{Hn(p.current);for(const t of Object.keys(e))s(p.current.getState().nextTree).transactionMetadata[t]=e[t]},c=e=>{Hn(p.current);const t=s(i.current.nextTree);let n;try{jn=!0,n=e(t)}finally{jn=!1}n!==t&&(i.current.nextTree=n,An().early&&qn(p.current,i.current,n),s(d.current)())},d=Fn(null),f=kn((e=>{d.current=e}),[d]),p=yn((()=>null!==n&&void 0!==n?n:{storeID:Dn(),getState:()=>i.current,replaceState:c,getGraph:a,subscribeToTransactions:u,addTransactionMetadata:l}));null!=n&&(p.current=n),i=yn((()=>null!=e?function(e,t){const n=En();return t({set:(t,r)=>{const o=n.currentTree,i=Rn(e,o,t.key,r),a=new Set(i.keys()),s=o.nonvalidatedAtoms.clone();for(const e of a)s.delete(e);n.currentTree={...o,dirtyAtoms:gn(o.dirtyAtoms,a),atomValues:Nn(o.atomValues,i),nonvalidatedAtoms:s}},setUnvalidatedAtomValues:e=>{e.forEach(((e,t)=>{n.currentTree=Cn(n.currentTree,t,e)}))}}),n}(p.current,e):null!=t?function(e){const t=Ln(e),n=t.getStore_INTERNAL().getState();return t.retain(),n.nodeCleanupFunctions.forEach((e=>e())),n.nodeCleanupFunctions.clear(),n}(t):En()));const v=Vn((()=>null===On||void 0===On?void 0:On(i,(()=>i.current.currentTree.version))),[i]);return Bn((()=>{const e=p.current;for(const t of new Set(e.getState().knownAtoms))In(e,t,"get");return()=>{for(const t of e.getState().knownAtoms)wn(e,t)}}),[p]),r.createElement(zn.Provider,{value:p},r.createElement($n.Provider,{value:v},r.createElement(Kn,{setNotifyBatcherOfChange:f}),o))}var Qn={RecoilRoot:function(e){const{override:t,...n}=e,o=Wn();return!1===t&&o.current!==Gn?e.children:r.createElement(Xn,n)},useStoreRef:Wn,useRecoilMutableSource:function(){const e=Mn($n);return null==e&&J("Attempted to use a Recoil hook outside of a . must be an ancestor of any component that uses Recoil hooks."),e},useRecoilStoreID:function(){return Wn().current.storeID},notifyComponents_FOR_TESTING:qn,sendEndOfBatchNotifications_FOR_TESTING:Yn};var er=function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0,r=e.length;n{t.current=e})),t.current};const{useStoreRef:or}=Qn,{SUSPENSE_TIMEOUT_MS:ir}=xt,{updateRetainCount:ar}=xt,{RetentionZone:sr}=Ae,{useEffect:ur,useRef:lr}=r,{isSSR:cr}=Ft;var dr=function(e){if(N("recoil_memory_managament_2020"))return function(e){const t=Array.isArray(e)?e:[e],n=t.map((e=>e instanceof sr?e:e.key)),r=or();ur((()=>{if(!N("recoil_memory_managament_2020"))return;const e=r.current;if(o.current&&!cr)window.clearTimeout(o.current),o.current=null;else for(const t of n)ar(e,t,1);return()=>{for(const t of n)ar(e,t,-1)}}),[r,...n]);const o=lr(),i=rr(n);if(!cr&&(void 0===i||!er(i,n))){const e=r.current;for(const t of n)ar(e,t,1);if(i)for(const t of i)ar(e,t,-1);o.current&&window.clearTimeout(o.current),o.current=window.setTimeout((()=>{o.current=null;for(const t of n)ar(e,t,-1)}),ir)}}(e)};var fr=function(){return""};const{batchUpdates:pr}=kt,{DEFAULT_VALUE:vr}=se,{currentRendererSupportsUseSyncExternalStore:hr,reactMode:mr,useMutableSource:gr,useSyncExternalStore:br}=Z,{useRecoilMutableSource:yr,useStoreRef:Sr}=Qn,{isRecoilValue:Er}=K,{AbstractRecoilValue:wr,getRecoilValueAsLoadable:_r,setRecoilValue:Ir,setUnvalidatedRecoilValue:Rr,subscribeToRecoilValue:Cr}=ht,{useCallback:xr,useEffect:Tr,useMemo:Dr,useRef:Or,useState:Ar}=r,{setByAddingToSet:Nr}=Ne,{isSSR:Pr}=Ft;function Lr(e,t,n){if("hasValue"===e.state)return e.contents;if("loading"===e.state){throw new Promise((t=>{const r=n.current.getState().suspendedComponentResolvers;r.add(t),Pr&&a(e.contents)&&e.contents.finally((()=>{r.delete(t)}))}))}throw"hasError"===e.state?e.contents:i(`Invalid value of loadable atom "${t.key}"`)}function kr(e){const t=Sr(),n=fr(),r=xr((()=>{var n;const r=t.current,o=r.getState(),i=mr().early&&null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree;return{loadable:_r(r,e,i),key:e.key}}),[t,e]),o=xr((e=>{let t;return()=>{var n,r;const o=e();return null!==(n=t)&&void 0!==n&&n.loadable.is(o.loadable)&&(null===(r=t)||void 0===r?void 0:r.key)===o.key?t:(t=o,o)}}),[]),i=Dr((()=>o(r)),[r,o]),a=xr((r=>{const o=t.current;return Cr(o,e,r,n).release}),[t,e,n]);return br(a,i,i).loadable}function Mr(e){const t=Sr(),n=xr((()=>{var n;const r=t.current,o=r.getState(),i=mr().early&&null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree;return _r(r,e,i)}),[t,e]),r=xr((()=>n()),[n]),o=fr(),a=xr(((r,i)=>{const a=t.current;return Cr(a,e,(()=>{if(!N("recoil_suppress_rerender_in_callback"))return i();const e=n();l.current.is(e)||i(),l.current=e}),o).release}),[t,e,o,n]),s=yr();if(null==s)throw i("Recoil hooks must be used in components contained within a component.");const u=gr(s,r,a),l=Or(u);return Tr((()=>{l.current=u})),u}function Br(e){const t=Sr(),n=fr(),r=xr((()=>{var n;const r=t.current,o=r.getState(),i=mr().early&&null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree;return _r(r,e,i)}),[t,e]),o=xr((()=>({loadable:r(),key:e.key})),[r,e.key]),i=xr((e=>{const t=o();return e.loadable.is(t.loadable)&&e.key===t.key?e:t}),[o]);Tr((()=>{const r=Cr(t.current,e,(e=>{s(i)}),n);return s(i),r.release}),[n,e,t,i]);const[a,s]=Ar(o);return a.key!==e.key?o().loadable:a.loadable}function Vr(e){const t=Sr(),[,n]=Ar([]),r=fr(),o=xr((()=>{var n;const r=t.current,o=r.getState(),i=mr().early&&null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree;return _r(r,e,i)}),[t,e]),i=o(),a=Or(i);return Tr((()=>{a.current=i})),Tr((()=>{const i=t.current,s=i.getState(),u=Cr(i,e,(e=>{var t;if(!N("recoil_suppress_rerender_in_callback"))return n([]);const r=o();null!==(t=a.current)&&void 0!==t&&t.is(r)||n(r),a.current=r}),r);if(s.nextTree)i.getState().queuedComponentCallbacks_DEPRECATED.push((()=>{a.current=null,n([])}));else{var l;if(!N("recoil_suppress_rerender_in_callback"))return n([]);const e=o();null!==(l=a.current)&&void 0!==l&&l.is(e)||n(e),a.current=e}return u.release}),[r,o,e,t]),i}function Fr(e){return N("recoil_memory_managament_2020")&&dr(e),{TRANSITION_SUPPORT:Br,SYNC_EXTERNAL_STORE:hr()?kr:Br,MUTABLE_SOURCE:Mr,LEGACY:Vr}[mr().mode](e)}function Ur(e){const t=Sr();return Lr(Fr(e),e,t)}function Zr(e){const t=Sr();return xr((n=>{Ir(t.current,e,n)}),[t,e])}function Gr(e){return N("recoil_memory_managament_2020")&&dr(e),Br(e)}function jr(e){const t=Sr();return Lr(Gr(e),e,t)}var Hr={recoilComponentGetRecoilValueCount_FOR_TESTING:{current:0},useRecoilInterface:function(){const e=fr(),t=Sr(),[,n]=Ar([]),r=Or(new Set);r.current=new Set;const o=Or(new Set),i=Or(new Map),a=xr((e=>{const t=i.current.get(e);t&&(t.release(),i.current.delete(e))}),[i]),s=xr(((e,t)=>{i.current.has(t)&&n([])}),[]);return Tr((()=>{const n=t.current;ge(r.current,o.current).forEach((t=>{if(i.current.has(t))return void J(`Double subscription to RecoilValue "${t}"`);const r=Cr(n,new wr(t),(e=>s(e,t)),e);i.current.set(t,r);n.getState().nextTree?n.getState().queuedComponentCallbacks_DEPRECATED.push((()=>{s(n.getState(),t)})):s(n.getState(),t)})),ge(o.current,r.current).forEach((e=>{a(e)})),o.current=r.current})),Tr((()=>{const n=i.current;return ge(r.current,new Set(n.keys())).forEach((r=>{const o=Cr(t.current,new wr(r),(e=>s(e,r)),e);n.set(r,o)})),()=>n.forEach(((e,t)=>a(t)))}),[e,t,a,s]),Dr((()=>{function e(e){return n=>{Ir(t.current,e,n)}}function n(e){var n;r.current.has(e.key)||(r.current=Nr(r.current,e.key));const o=t.current.getState();return _r(t.current,e,mr().early&&null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree)}function o(e){return Lr(n(e),e,t)}return{getRecoilValue:o,getRecoilValueLoadable:n,getRecoilState:function(t){return[o(t),e(t)]},getRecoilStateLoadable:function(t){return[n(t),e(t)]},getSetRecoilState:e,getResetRecoilState:function(e){return()=>Ir(t.current,e,vr)}}}),[r,t])},useRecoilState:function(e){return[Ur(e),Zr(e)]},useRecoilStateLoadable:function(e){return[Fr(e),Zr(e)]},useRecoilValue:Ur,useRecoilValueLoadable:Fr,useResetRecoilState:function(e){const t=Sr();return xr((()=>{Ir(t.current,e,vr)}),[t,e])},useSetRecoilState:Zr,useSetUnvalidatedAtomValues:function(){const e=Sr();return(t,n={})=>{pr((()=>{e.current.addTransactionMetadata(n),t.forEach(((t,n)=>Rr(e.current,new wr(n),t)))}))}},useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Gr,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:jr,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:function(e){return[jr(e),Zr(e)]}};var zr=function(e,t){const n=new Map;for(const[r,o]of e)t(o,r)&&n.set(r,o);return n};var Wr=function(e,t){const n=new Set;for(const r of e)t(r)&&n.add(r);return n};var $r=function(...e){const t=new Map;for(let n=0;nt.current.subscribeToTransactions(e).release),[e,t])}function lo(e){const t=e.atomValues.toMap(),n=be(zr(t,((e,t)=>{const n=Kr(t).persistence_UNSTABLE;return null!=n&&"none"!==n.type&&"hasValue"===e.state})),(e=>e.contents));return $r(e.nonvalidatedAtoms.toMap(),n)}function co(e,t){var n;const r=e.getState(),o=null!==(n=r.nextTree)&&void 0!==n?n:r.currentTree,i=t.getStore_INTERNAL().getState().currentTree;qr((()=>{const n=new Set;for(const e of[o.atomValues.keys(),i.atomValues.keys()])for(const t of e){var r,a;(null===(r=o.atomValues.get(t))||void 0===r?void 0:r.contents)!==(null===(a=i.atomValues.get(t))||void 0===a?void 0:a.contents)&&Kr(t).shouldRestoreFromSnapshots&&n.add(t)}n.forEach((t=>{eo(e,new Qr(t),i.atomValues.has(t)?s(i.atomValues.get(t)):Yr)})),e.replaceState((e=>({...e,stateID:t.getID()})))}))}var fo={useRecoilSnapshot:function(){const e=Xr(),[t,n]=ao((()=>no(e.current))),r=rr(t),o=io(),i=io();if(uo(ro((e=>n(no(e))),[])),oo((()=>{const e=t.retain();var n;o.current&&!so&&(window.clearTimeout(o.current),o.current=null,null===(n=i.current)||void 0===n||n.call(i),i.current=null);return()=>{window.setTimeout(e,10)}}),[t]),r!==t&&!so){var a;if(o.current)window.clearTimeout(o.current),o.current=null,null===(a=i.current)||void 0===a||a.call(i),i.current=null;i.current=t.retain(),o.current=window.setTimeout((()=>{var e;o.current=null,null===(e=i.current)||void 0===e||e.call(i),i.current=null}),to)}return t},gotoSnapshot:co,useGotoRecoilSnapshot:function(){const e=Xr();return ro((t=>co(e.current,t)),[e])},useRecoilTransactionObserver:function(e){uo(ro((t=>{const n=no(t,"latest"),r=no(t,"previous");e({snapshot:n,previousSnapshot:r})}),[e]))},useTransactionObservation_DEPRECATED:function(e){uo(ro((t=>{let n=t.getState().previousTree;const r=t.getState().currentTree;n||(M("Transaction subscribers notified without a previous tree being present -- this is a bug in Recoil"),n=t.getState().currentTree);const o=lo(r),i=lo(n),a=be(Jr,(e=>{var t,n,r,o;return{persistence_UNSTABLE:{type:null!==(t=null===(n=e.persistence_UNSTABLE)||void 0===n?void 0:n.type)&&void 0!==t?t:"none",backButton:null!==(r=null===(o=e.persistence_UNSTABLE)||void 0===o?void 0:o.backButton)&&void 0!==r&&r}}})),s=Wr(r.dirtyAtoms,(e=>o.has(e)||i.has(e)));e({atomValues:o,previousAtomValues:i,atomInfo:a,modifiedAtoms:s,transactionMetadata:{...r.transactionMetadata}})}),[e]))},useTransactionSubscription_DEPRECATED:uo};const{peekNodeInfo:po}=ze,{useStoreRef:vo}=Qn;var ho=function(){const e=vo();return({key:t})=>po(e.current,e.current.getState().currentTree,t)};const{reactMode:mo}=Z,{RecoilRoot:go,useStoreRef:bo}=Qn,{useMemo:yo}=r;var So=function(){"MUTABLE_SOURCE"===mo().mode&&console.warn("Warning: There are known issues using useRecoilBridgeAcrossReactRoots() in recoil_mutable_source rendering mode. Please consider upgrading to recoil_sync_external_store mode.");const e=bo().current;return yo((()=>function({children:t}){return r.createElement(go,{store_INTERNAL:e},t)}),[e])};const{loadableWithValue:Eo}=T,{initializeNode:wo}=ze,{DEFAULT_VALUE:_o,getNode:Io}=se,{copyTreeState:Ro,getRecoilValueAsLoadable:Co,invalidateDownstreams:xo,writeLoadableToTreeState:To}=ht;function Do(e){return"atom"===Io(e.key).nodeType}class Oo{constructor(e,t){u(this,"_store",void 0),u(this,"_treeState",void 0),u(this,"_changes",void 0),u(this,"get",(e=>{if(this._changes.has(e.key))return this._changes.get(e.key);if(!Do(e))throw i("Reading selectors within atomicUpdate is not supported");const t=Co(this._store,e,this._treeState);if("hasValue"===t.state)return t.contents;throw"hasError"===t.state?t.contents:i(`Expected Recoil atom ${e.key} to have a value, but it is in a loading state.`)})),u(this,"set",((e,t)=>{if(!Do(e))throw i("Setting selectors within atomicUpdate is not supported");if("function"===typeof t){const n=this.get(e);this._changes.set(e.key,t(n))}else wo(this._store,e.key,"set"),this._changes.set(e.key,t)})),u(this,"reset",(e=>{this.set(e,_o)})),this._store=e,this._treeState=t,this._changes=new Map}newTreeState_INTERNAL(){if(0===this._changes.size)return this._treeState;const e=Ro(this._treeState);for(const[t,n]of this._changes)To(e,t,Eo(n));return xo(this._store,e),e}}var Ao=function(e){return t=>{e.replaceState((n=>{const r=new Oo(e,n);return t(r),r.newTreeState_INTERNAL()}))}},No=Ao,Po=Object.freeze({__proto__:null,atomicUpdater:No});var Lo=function(e,t){if(!e)throw new Error(t)};const{atomicUpdater:ko}=Po,{batchUpdates:Mo}=kt,{DEFAULT_VALUE:Bo}=se,{useStoreRef:Vo}=Qn,{refreshRecoilValue:Fo,setRecoilValue:Uo}=ht,{cloneSnapshot:Zo}=mn,{gotoSnapshot:Go}=fo,{useCallback:jo}=r;class Ho{}const zo=new Ho;function Wo(e,t,n,r){let o,s=zo;var u;(Mo((()=>{const a="useRecoilCallback() expects a function that returns a function: it accepts a function of the type (RecoilInterface) => (Args) => ReturnType and returns a callback function (Args) => ReturnType, where RecoilInterface is an object {snapshot, set, ...} and Args and ReturnType are the argument and return types of the callback you want to create. Please see the docs at recoiljs.org for details.";if("function"!==typeof t)throw i(a);const u=Le({...null!==r&&void 0!==r?r:{},set:(t,n)=>Uo(e,t,n),reset:t=>Uo(e,t,Bo),refresh:t=>Fo(e,t),gotoSnapshot:t=>Go(e,t),transact_UNSTABLE:t=>ko(e)(t)},{snapshot:()=>{const t=Zo(e);return o=t.retain(),t}}),l=t(u);if("function"!==typeof l)throw i(a);s=l(...n)})),s instanceof Ho&&Lo(!1),a(s))?s=s.finally((()=>{var e;null===(e=o)||void 0===e||e()})):null===(u=o)||void 0===u||u();return s}var $o={recoilCallback:Wo,useRecoilCallback:function(e,t){const n=Vo();return jo(((...t)=>Wo(n.current,e,t)),null!=t?[...t,n]:void 0)}};const{useStoreRef:qo}=Qn,{refreshRecoilValue:Yo}=ht,{useCallback:Ko}=r;var Jo=function(e){const t=qo();return Ko((()=>{const n=t.current;Yo(n,e)}),[e,t])};const{atomicUpdater:Xo}=Po,{useStoreRef:Qo}=Qn,{useMemo:ei}=r;var ti=function(e,t){const n=Qo();return ei((()=>(...t)=>{Xo(n.current)((n=>{e(n)(...t)}))}),null!=t?[...t,n]:void 0)};var ni=class{constructor(e){u(this,"value",void 0),this.value=e}},ri=Object.freeze({__proto__:null,WrappedValue:ni});const{isFastRefreshEnabled:oi}=Z;class ii extends Error{}var ai=class{constructor(e){var t,n,r;u(this,"_name",void 0),u(this,"_numLeafs",void 0),u(this,"_root",void 0),u(this,"_onHit",void 0),u(this,"_onSet",void 0),u(this,"_mapNodeValue",void 0),this._name=null===e||void 0===e?void 0:e.name,this._numLeafs=0,this._root=null,this._onHit=null!==(t=null===e||void 0===e?void 0:e.onHit)&&void 0!==t?t:()=>{},this._onSet=null!==(n=null===e||void 0===e?void 0:e.onSet)&&void 0!==n?n:()=>{},this._mapNodeValue=null!==(r=null===e||void 0===e?void 0:e.mapNodeValue)&&void 0!==r?r:e=>e}size(){return this._numLeafs}root(){return this._root}get(e,t){var n;return null===(n=this.getLeafNode(e,t))||void 0===n?void 0:n.value}getLeafNode(e,t){if(null==this._root)return;let n=this._root;for(;n;){if(null===t||void 0===t||t.onNodeVisit(n),"leaf"===n.type)return this._onHit(n),n;const r=this._mapNodeValue(e(n.nodeKey));n=n.branches.get(r)}}set(e,t,n){const r=()=>{var r,o,i,a;let s,u;for(const[t,v]of e){var l,c,d;const e=this._root;if("leaf"===(null===e||void 0===e?void 0:e.type))throw this.invalidCacheError();const r=s;if(s=r?r.branches.get(u):e,s=null!==(l=s)&&void 0!==l?l:{type:"branch",nodeKey:t,parent:r,branches:new Map,branchKey:u},"branch"!==s.type||s.nodeKey!==t)throw this.invalidCacheError();null===r||void 0===r||r.branches.set(u,s),null===n||void 0===n||null===(c=n.onNodeVisit)||void 0===c||c.call(n,s),u=this._mapNodeValue(v),this._root=null!==(d=this._root)&&void 0!==d?d:s}const f=s?null===(r=s)||void 0===r?void 0:r.branches.get(u):this._root;if(null!=f&&("leaf"!==f.type||f.branchKey!==u))throw this.invalidCacheError();const p={type:"leaf",value:t,parent:s,branchKey:u};null===(o=s)||void 0===o||o.branches.set(u,p),this._root=null!==(i=this._root)&&void 0!==i?i:p,this._numLeafs++,this._onSet(p),null===n||void 0===n||null===(a=n.onNodeVisit)||void 0===a||a.call(n,p)};try{r()}catch(o){if(!(o instanceof ii))throw o;this.clear(),r()}}delete(e){const t=this.root();if(!t)return!1;if(e===t)return this._root=null,this._numLeafs=0,!0;let n=e.parent,r=e.branchKey;for(;n;){var o;if(n.branches.delete(r),n===t)return 0===n.branches.size?(this._root=null,this._numLeafs=0):this._numLeafs--,!0;if(n.branches.size>0)break;r=null===(o=n)||void 0===o?void 0:o.branchKey,n=n.parent}for(;n!==t;n=n.parent)if(null==n)return!1;return this._numLeafs--,!0}clear(){this._numLeafs=0,this._root=null}invalidCacheError(){const e=oi()?"Possible Fast Refresh module reload detected. This may also be caused by an selector returning inconsistent values. Resetting cache.":"Invalid cache values. This happens when selectors do not return consistent values for the same input dependency values. That may also be caused when using Fast Refresh to change a selector implementation. Resetting cache.";throw M(e+(null!=this._name?` - ${this._name}`:"")),new ii}},si=Object.freeze({__proto__:null,TreeCache:ai});var ui=class{constructor(e){var t;u(this,"_maxSize",void 0),u(this,"_size",void 0),u(this,"_head",void 0),u(this,"_tail",void 0),u(this,"_map",void 0),u(this,"_keyMapper",void 0),this._maxSize=e.maxSize,this._size=0,this._head=null,this._tail=null,this._map=new Map,this._keyMapper=null!==(t=e.mapKey)&&void 0!==t?t:e=>e}head(){return this._head}tail(){return this._tail}size(){return this._size}maxSize(){return this._maxSize}has(e){return this._map.has(this._keyMapper(e))}get(e){const t=this._keyMapper(e),n=this._map.get(t);if(n)return this.set(e,n.value),n.value}set(e,t){const n=this._keyMapper(e);this._map.get(n)&&this.delete(e);const r=this.head(),o={key:e,right:r,left:null,value:t};r?r.left=o:this._tail=o,this._map.set(n,o),this._head=o,this._size++,this._maybeDeleteLRU()}_maybeDeleteLRU(){this.size()>this.maxSize()&&this.deleteLru()}deleteLru(){const e=this.tail();e&&this.delete(e.key)}delete(e){const t=this._keyMapper(e);if(!this._size||!this._map.has(t))return;const n=s(this._map.get(t)),r=n.right,o=n.left;r&&(r.left=n.left),o&&(o.right=n.right),n===this.head()&&(this._head=r),n===this.tail()&&(this._tail=o),this._map.delete(t),this._size--}clear(){this._size=0,this._head=null,this._tail=null,this._map=new Map}},li=Object.freeze({__proto__:null,LRUCache:ui});const{LRUCache:ci}=li,{TreeCache:di}=si;var fi=function({name:e,maxSize:t,mapNodeValue:n=(e=>e)}){const r=new ci({maxSize:t}),o=new di({name:e,mapNodeValue:n,onHit:e=>{r.set(e,!0)},onSet:e=>{const n=r.tail();r.set(e,!0),n&&o.size()>t&&o.delete(n.key)}});return o};function pi(e,t,n){if("string"===typeof e&&!e.includes('"')&&!e.includes("\\"))return`"${e}"`;switch(typeof e){case"undefined":return"";case"boolean":return e?"true":"false";case"number":case"symbol":return String(e);case"string":return JSON.stringify(e);case"function":if(!0!==(null===t||void 0===t?void 0:t.allowFunctions))throw i("Attempt to serialize function in a Recoil cache key");return`__FUNCTION(${e.name})__`}if(null===e)return"null";var r;if("object"!==typeof e)return null!==(r=JSON.stringify(e))&&void 0!==r?r:"";if(a(e))return"__PROMISE__";if(Array.isArray(e))return`[${e.map(((e,n)=>pi(e,t,n.toString())))}]`;if("function"===typeof e.toJSON)return pi(e.toJSON(n),t,n);if(e instanceof Map){const r={};for(const[n,o]of e)r["string"===typeof n?n:pi(n,t)]=o;return pi(r,t,n)}return e instanceof Set?pi(Array.from(e).sort(((e,n)=>pi(e,t).localeCompare(pi(n,t)))),t,n):void 0!==Symbol&&null!=e[Symbol.iterator]&&"function"===typeof e[Symbol.iterator]?pi(Array.from(e),t,n):`{${Object.keys(e).filter((t=>void 0!==e[t])).sort().map((n=>`${pi(n,t)}:${pi(e[n],t,n)}`)).join(",")}}`}var vi=function(e,t={allowFunctions:!1}){return pi(e,t)};const{TreeCache:hi}=si,mi={equality:"reference",eviction:"keep-all",maxSize:1/0};var gi=function({equality:e=mi.equality,eviction:t=mi.eviction,maxSize:n=mi.maxSize}=mi,r){const o=function(e){switch(e){case"reference":return e=>e;case"value":return e=>vi(e)}throw i(`Unrecognized equality policy ${e}`)}(e);return function(e,t,n,r){switch(e){case"keep-all":return new hi({name:r,mapNodeValue:n});case"lru":return fi({name:r,maxSize:s(t),mapNodeValue:n});case"most-recent":return fi({name:r,maxSize:1,mapNodeValue:n})}throw i(`Unrecognized eviction policy ${e}`)}(t,n,o,r)};const{isReactNative:bi,isWindow:yi}=Ft;var Si={startPerfBlock:function(e){return()=>null}};const{isLoadable:Ei,loadableWithError:wi,loadableWithPromise:_i,loadableWithValue:Ii}=T,{WrappedValue:Ri}=ri,{getNodeLoadable:Ci,peekNodeLoadable:xi,setNodeValue:Ti}=ze,{saveDepsToStore:Di}=Se,{DEFAULT_VALUE:Oi,getConfigDeletionHandler:Ai,getNode:Ni,registerNode:Pi}=se,{isRecoilValue:Li}=K,{markRecoilValueModified:ki}=ht,{retainedByOptionWithDefault:Mi}=xt,{recoilCallback:Bi}=$o,{startPerfBlock:Vi}=Si;class Fi{}const Ui=new Fi,Zi=[],Gi=new Map,ji=(()=>{let e=0;return()=>e++})();function Hi(e){let t=null;const{key:n,get:r,cachePolicy_UNSTABLE:o}=e,u=null!=e.set?e.set:void 0;const l=new Set,c=gi(null!==o&&void 0!==o?o:{equality:"reference",eviction:"keep-all"},n),d=Mi(e.retainedBy_UNSTABLE),f=new Map;let p=0;function v(){return!N("recoil_memory_managament_2020")||p>0}function h(e){return e.getState().knownSelectors.add(n),p++,()=>{p--}}function m(){return void 0!==Ai(n)&&!v()}function g(e,t,n,r,o){O(t,r,o),b(e,n)}function b(e,t){D(e,t)&&T(e),y(t,!0)}function y(e,n){const r=Gi.get(e);if(null!=r){for(const e of r)ki(e,s(t));n&&Gi.delete(e)}}function S(e,t){let n=Gi.get(t);null==n&&Gi.set(t,n=new Set),n.add(e)}function E(e,t,n,r,o,i){return t.then((r=>{if(!v())throw T(e),Ui;null!=i.loadingDepKey&&i.loadingDepPromise===t?n.atomValues.set(i.loadingDepKey,Ii(r)):e.getState().knownSelectors.forEach((e=>{n.atomValues.delete(e)}));const a=I(e,n);if(a&&"loading"!==a.state){if((D(e,o)||null==x(e))&&b(e,o),"hasValue"===a.state)return a.contents;throw a.contents}if(!D(e,o)){const t=C(e,n);if(null!=t)return t.loadingLoadable.contents}const[s,u]=_(e,n,o);if("loading"!==s.state&&g(e,n,o,s,u),"hasError"===s.state)throw s.contents;return s.contents})).catch((t=>{if(t instanceof Fi)throw Ui;if(!v())throw T(e),Ui;const i=wi(t);throw g(e,n,o,i,r),t}))}function w(e,t,r,o){var i,a,s,u,c,d,f;(D(e,o)||t.version===(null===(i=e.getState())||void 0===i||null===(a=i.currentTree)||void 0===a?void 0:a.version)||t.version===(null===(s=e.getState())||void 0===s||null===(u=s.nextTree)||void 0===u?void 0:u.version))&&Di(n,r,e,null!==(c=null===(d=e.getState())||void 0===d||null===(f=d.nextTree)||void 0===f?void 0:f.version)&&void 0!==c?c:e.getState().currentTree.version);for(const n of r)l.add(n)}function _(e,o,u){const l=Vi(n);let c=!0,d=!0;const f=()=>{l(),d=!1};let p,h,m=!1;const b={loadingDepKey:null,loadingDepPromise:null},S=new Map;function _({key:t}){const n=Ci(e,o,t);switch(S.set(t,n),c||(w(e,o,new Set(S.keys()),u),function(e,t){D(e,t)&&(s(x(e)).stateVersions.clear(),y(t,!1))}(e,u)),n.state){case"hasValue":return n.contents;case"hasError":throw n.contents;case"loading":throw b.loadingDepKey=t,b.loadingDepPromise=n.contents,n.contents}throw i("Invalid Loadable state")}const I=n=>(...r)=>{if(d)throw i("Callbacks from getCallback() should only be called asynchronously after the selector is evalutated. It can be used for selectors to return objects with callbacks that can work with Recoil state without a subscription.");return null==t&&Lo(!1),Bi(e,n,r,{node:t})};try{p=r({get:_,getCallback:I}),p=Li(p)?_(p):p,Ei(p)&&("hasError"===p.state&&(m=!0),p=p.contents),a(p)?p=function(e,t,n,r,o,i){return t.then((t=>{if(!v())throw T(e),Ui;const i=Ii(t);return g(e,n,o,i,r),t})).catch((t=>{if(!v())throw T(e),Ui;if(a(t))return E(e,t,n,r,o,i);const s=wi(t);throw g(e,n,o,s,r),t}))}(e,p,o,S,u,b).finally(f):f(),p=p instanceof Ri?p.value:p}catch(R){p=R,a(p)?p=E(e,p,o,S,u,b).finally(f):(m=!0,f())}return h=m?wi(p):a(p)?_i(p):Ii(p),c=!1,function(e,t,n){if(D(e,t)){const t=x(e);null!=t&&(t.depValuesDiscoveredSoFarDuringAsyncWork=n)}}(e,u,S),w(e,o,new Set(S.keys()),u),[h,S]}function I(e,t){let r=t.atomValues.get(n);if(null!=r)return r;const o=new Set;try{r=c.get((n=>("string"!==typeof n&&Lo(!1),Ci(e,t,n).contents)),{onNodeVisit:e=>{"branch"===e.type&&e.nodeKey!==n&&o.add(e.nodeKey)}})}catch(s){throw i(`Problem with cache lookup for selector "${n}": ${s.message}`)}var a;r&&(t.atomValues.set(n,r),w(e,t,o,null===(a=x(e))||void 0===a?void 0:a.executionID));return r}function R(e,t){const n=I(e,t);if(null!=n)return T(e),n;const r=C(e,t);var o;if(null!=r)return"loading"===(null===(o=r.loadingLoadable)||void 0===o?void 0:o.state)&&S(e,r.executionID),r.loadingLoadable;const i=ji(),[a,s]=_(e,t,i);return"loading"===a.state?(!function(e,t,n,r,o){f.set(e,{depValuesDiscoveredSoFarDuringAsyncWork:r,executionID:t,loadingLoadable:n,stateVersions:new Map([[o.version,!0]])})}(e,i,a,s,t),S(e,i)):(T(e),O(t,a,s)),a}function C(e,t){const n=Mt([f.has(e)?[s(f.get(e))]:[],X(Pe(f,(([t])=>t!==e)),(([,e])=>e))]);function r(n){for(const[r,o]of n)if(!Ci(e,t,r).is(o))return!0;return!1}for(const o of n){if(o.stateVersions.get(t.version)||!r(o.depValuesDiscoveredSoFarDuringAsyncWork))return o.stateVersions.set(t.version,!0),o;o.stateVersions.set(t.version,!1)}}function x(e){return f.get(e)}function T(e){f.delete(e)}function D(e,t){var n;return t===(null===(n=x(e))||void 0===n?void 0:n.executionID)}function O(e,t,r){e.atomValues.set(n,t);try{c.set(function(e){return Array.from(e.entries()).map((([e,t])=>[e,t.contents]))}(r),t)}catch(o){throw i(`Problem with setting cache for selector "${n}": ${o.message}`)}}function A(e,t){const r=t.atomValues.get(n);return null!=r?r:c.get((n=>{var r;return"string"!==typeof n&&Lo(!1),null===(r=xi(e,t,n))||void 0===r?void 0:r.contents}))}function P(e,t){return function(e){if(Zi.includes(n)){const e=`Recoil selector has circular dependencies: ${Zi.slice(Zi.indexOf(n)).join(" \u2192 ")}`;return wi(i(e))}Zi.push(n);try{return e()}finally{Zi.pop()}}((()=>R(e,t)))}function L(e){e.atomValues.delete(n)}function k(e,n){null==t&&Lo(!1);for(const t of l){var r;const o=Ni(t);null===(r=o.clearCache)||void 0===r||r.call(o,e,n)}l.clear(),L(n),c.clear(),ki(e,t)}if(null!=u){return t=Pi({key:n,nodeType:"selector",peek:A,get:P,set:(e,t,r)=>{let o=!1;const s=new Map;function l({key:r}){if(o)throw i("Recoil: Async selector sets are not currently supported.");const a=Ci(e,t,r);if("hasValue"===a.state)return a.contents;if("loading"===a.state){const e=`Getting value of asynchronous atom or selector "${r}" in a pending state while setting selector "${n}" is not yet supported.`;throw M(e),i(e)}throw a.contents}function c(n,r){if(o){const e="Recoil: Async selector sets are not currently supported.";throw M(e),i(e)}const a="function"===typeof r?r(l(n)):r;Ti(e,t,n.key,a).forEach(((e,t)=>s.set(t,e)))}const d=u({set:c,get:l,reset:function(e){c(e,Oi)}},r);if(void 0!==d)throw a(d)?i("Recoil: Async selector sets are not currently supported."):i("Recoil: selector set should be a void function.");return o=!0,s},init:h,invalidate:L,clearCache:k,shouldDeleteConfigOnRelease:m,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:d})}return t=Pi({key:n,nodeType:"selector",peek:A,get:P,init:h,invalidate:L,clearCache:k,shouldDeleteConfigOnRelease:m,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:d})}Hi.value=e=>new Ri(e);var zi=Hi;const{isLoadable:Wi,loadableWithError:$i,loadableWithPromise:qi,loadableWithValue:Yi}=T,{WrappedValue:Ki}=ri,{peekNodeInfo:Ji}=ze,{DEFAULT_VALUE:Xi,DefaultValue:Qi,getConfigDeletionHandler:ea,registerNode:ta,setConfigDeletionHandler:na}=se,{isRecoilValue:ra}=K,{getRecoilValueAsLoadable:oa,markRecoilValueModified:ia,setRecoilValue:aa,setRecoilValueLoadable:sa}=ht,{retainedByOptionWithDefault:ua}=xt,la=e=>e instanceof Ki?e.value:e;function ca(e){const{key:t,persistence_UNSTABLE:n}=e,r=ua(e.retainedBy_UNSTABLE);let o=0;function u(e){return qi(e.then((e=>(c=Yi(e),e))).catch((e=>{throw c=$i(e),e})))}let l,c=a(e.default)?u(e.default):Wi(e.default)?"loading"===e.default.state?u(e.default.contents):e.default:Yi(la(e.default));f(c.contents);const d=new Map;function f(e){return e}function p(e,n){var r,o;return null!==(r=null!==(o=n.atomValues.get(t))&&void 0!==o?o:l)&&void 0!==r?r:c}const v=ta({key:t,nodeType:"atom",peek:p,get:function(e,r){if(r.atomValues.has(t))return s(r.atomValues.get(t));if(r.nonvalidatedAtoms.has(t)){if(null!=l)return l;if(null==n)return J(`Tried to restore a persisted value for atom ${t} but it has no persistence settings.`),c;const e=r.nonvalidatedAtoms.get(t),o=n.validator(e,Xi),i=o instanceof Qi?c:Yi(o);return l=i,l}return c},set:function(e,n,r){if(n.atomValues.has(t)){const e=s(n.atomValues.get(t));if("hasValue"===e.state&&r===e.contents)return new Map}else if(!n.nonvalidatedAtoms.has(t)&&r instanceof Qi)return new Map;return l=void 0,(new Map).set(t,Yi(r))},init:function(n,r,s){var u;if(o++,n.getState().knownAtoms.add(t),"loading"===c.state){const S=()=>{var e;(null!==(e=n.getState().nextTree)&&void 0!==e?e:n.getState().currentTree).atomValues.has(t)||ia(n,v)};c.contents.finally(S)}const l=null!==(u=e.effects)&&void 0!==u?u:e.effects_UNSTABLE;if(null!=l){let E=Xi,w=!0,_=!1,I=null;function f(e){if(w&&e.key===t){const e=E;return e instanceof Qi?p(n,r):a(e)?qi(e.then((e=>e instanceof Qi?c.toPromise():e))):Yi(e)}return oa(n,e)}function h(e){return f(e).toPromise()}function m(e){var r;const o=Ji(n,null!==(r=n.getState().nextTree)&&void 0!==r?r:n.getState().currentTree,e.key);return!w||e.key!==t||E instanceof Qi?o:{...o,isSet:!0,loadable:f(e)}}const R=e=>t=>{if(w){const n=f(v),r="hasValue"===n.state?n.contents:Xi;E="function"===typeof t?t(r):t,a(E)&&(E=E.then((t=>(I={effect:e,value:t},t))))}else{if(a(t))throw i("Setting atoms to async values is not implemented.");"function"!==typeof t&&(I={effect:e,value:la(t)}),aa(n,v,"function"===typeof t?n=>{const r=la(t(n));return I={effect:e,value:r},r}:la(t))}},C=e=>()=>R(e)(Xi),x=e=>r=>{var o;const{release:i}=n.subscribeToTransactions((n=>{var o;let{currentTree:i,previousTree:a}=n.getState();a||(M("Transaction subscribers notified without a next tree being present -- this is a bug in Recoil"),a=i);const s=null!==(o=i.atomValues.get(t))&&void 0!==o?o:c;if("hasValue"===s.state){var u,l,d,f;const n=s.contents,o=null!==(u=a.atomValues.get(t))&&void 0!==u?u:c,p="hasValue"===o.state?o.contents:Xi;(null===(l=I)||void 0===l?void 0:l.effect)!==e||(null===(d=I)||void 0===d?void 0:d.value)!==n?r(n,p,!i.atomValues.has(t)):(null===(f=I)||void 0===f?void 0:f.effect)===e&&(I=null)}}),t);d.set(n,[...null!==(o=d.get(n))&&void 0!==o?o:[],i])};for(const T of l)try{const D=T({node:v,storeID:n.storeID,parentStoreID_UNSTABLE:n.parentStoreID,trigger:s,setSelf:R(T),resetSelf:C(T),onSet:x(T),getPromise:h,getLoadable:f,getInfo_UNSTABLE:m});var g;if(null!=D)d.set(n,[...null!==(g=d.get(n))&&void 0!==g?g:[],D])}catch(y){E=y,_=!0}if(w=!1,!(E instanceof Qi)){var b;const O=_?$i(E):a(E)?qi(function(e,n){const r=n.then((n=>{var o,i;return(null===(i=(null!==(o=e.getState().nextTree)&&void 0!==o?o:e.getState().currentTree).atomValues.get(t))||void 0===i?void 0:i.contents)===r&&aa(e,v,n),n})).catch((n=>{var o,i;throw(null===(i=(null!==(o=e.getState().nextTree)&&void 0!==o?o:e.getState().currentTree).atomValues.get(t))||void 0===i?void 0:i.contents)===r&&sa(e,v,$i(n)),n}));return r}(n,E)):Yi(la(E));O.contents,r.atomValues.set(t,O),null===(b=n.getState().nextTree)||void 0===b||b.atomValues.set(t,O)}}return()=>{var e;o--,null===(e=d.get(n))||void 0===e||e.forEach((e=>e())),d.delete(n)}},invalidate:function(){l=void 0},shouldDeleteConfigOnRelease:function(){return void 0!==ea(t)&&o<=0},dangerouslyAllowMutability:e.dangerouslyAllowMutability,persistence_UNSTABLE:e.persistence_UNSTABLE?{type:e.persistence_UNSTABLE.type,backButton:e.persistence_UNSTABLE.backButton}:void 0,shouldRestoreFromSnapshots:!0,retainedBy:r});return v}function da(e){const{...t}=e,n="default"in e?e.default:new Promise((()=>{}));return ra(n)?function(e){const t=da({...e,default:Xi,persistence_UNSTABLE:void 0===e.persistence_UNSTABLE?void 0:{...e.persistence_UNSTABLE,validator:t=>t instanceof Qi?t:s(e.persistence_UNSTABLE).validator(t,Xi)},effects:e.effects,effects_UNSTABLE:e.effects_UNSTABLE}),n=zi({key:`${e.key}__withFallback`,get:({get:n})=>{const r=n(t);return r instanceof Qi?e.default:r},set:({set:e},n)=>e(t,n),cachePolicy_UNSTABLE:{eviction:"most-recent"},dangerouslyAllowMutability:e.dangerouslyAllowMutability});return na(n.key,ea(e.key)),n}({...t,default:n}):ca({...t,default:n})}da.value=e=>new Ki(e);var fa=da;var pa=class{constructor(e){var t;u(this,"_map",void 0),u(this,"_keyMapper",void 0),this._map=new Map,this._keyMapper=null!==(t=null===e||void 0===e?void 0:e.mapKey)&&void 0!==t?t:e=>e}size(){return this._map.size}has(e){return this._map.has(this._keyMapper(e))}get(e){return this._map.get(this._keyMapper(e))}set(e,t){this._map.set(this._keyMapper(e),t)}delete(e){this._map.delete(this._keyMapper(e))}clear(){this._map.clear()}},va=Object.freeze({__proto__:null,MapCache:pa});const{LRUCache:ha}=li,{MapCache:ma}=va,ga={equality:"reference",eviction:"none",maxSize:1/0};var ba=function({equality:e=ga.equality,eviction:t=ga.eviction,maxSize:n=ga.maxSize}=ga){const r=function(e){switch(e){case"reference":return e=>e;case"value":return e=>vi(e)}throw i(`Unrecognized equality policy ${e}`)}(e);return function(e,t,n){switch(e){case"keep-all":return new ma({mapKey:n});case"lru":return new ha({mapKey:n,maxSize:s(t)});case"most-recent":return new ha({mapKey:n,maxSize:1})}throw i(`Unrecognized eviction policy ${e}`)}(t,n,r)};const{setConfigDeletionHandler:ya}=se;var Sa=function(e){var t,n;const r=ba({equality:null!==(t=null===(n=e.cachePolicyForParams_UNSTABLE)||void 0===n?void 0:n.equality)&&void 0!==t?t:"value",eviction:"keep-all"});return t=>{var n,o;const i=r.get(t);if(null!=i)return i;const{cachePolicyForParams_UNSTABLE:a,...s}=e,u="default"in e?e.default:new Promise((()=>{})),l=fa({...s,key:`${e.key}__${null!==(n=vi(t))&&void 0!==n?n:"void"}`,default:"function"===typeof u?u(t):u,retainedBy_UNSTABLE:"function"===typeof e.retainedBy_UNSTABLE?e.retainedBy_UNSTABLE(t):e.retainedBy_UNSTABLE,effects:"function"===typeof e.effects?e.effects(t):"function"===typeof e.effects_UNSTABLE?e.effects_UNSTABLE(t):null!==(o=e.effects)&&void 0!==o?o:e.effects_UNSTABLE});return r.set(t,l),ya(l.key,(()=>{r.delete(t)})),l}};const{setConfigDeletionHandler:Ea}=se;let wa=0;var _a=function(e){var t,n;const r=ba({equality:null!==(t=null===(n=e.cachePolicyForParams_UNSTABLE)||void 0===n?void 0:n.equality)&&void 0!==t?t:"value",eviction:"keep-all"});return t=>{var n;let o;try{o=r.get(t)}catch(d){throw i(`Problem with cache lookup for selector ${e.key}: ${d.message}`)}if(null!=o)return o;const a=`${e.key}__selectorFamily/${null!==(n=vi(t,{allowFunctions:!0}))&&void 0!==n?n:"void"}/${wa++}`,s=n=>e.get(t)(n),u=e.cachePolicy_UNSTABLE,l="function"===typeof e.retainedBy_UNSTABLE?e.retainedBy_UNSTABLE(t):e.retainedBy_UNSTABLE;let c;if(null!=e.set){const n=e.set;c=zi({key:a,get:s,set:(e,r)=>n(t)(e,r),cachePolicy_UNSTABLE:u,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:l})}else c=zi({key:a,get:s,cachePolicy_UNSTABLE:u,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:l});return r.set(t,c),Ea(c.key,(()=>{r.delete(t)})),c}};const Ia=_a({key:"__constant",get:e=>()=>e,cachePolicyForParams_UNSTABLE:{equality:"reference"}});var Ra=function(e){return Ia(e)};const Ca=_a({key:"__error",get:e=>()=>{throw i(e)},cachePolicyForParams_UNSTABLE:{equality:"reference"}});var xa=function(e){return Ca(e)};var Ta=function(e){return e};const{loadableWithError:Da,loadableWithPromise:Oa,loadableWithValue:Aa}=T;function Na(e,t){const n=Array(t.length).fill(void 0),r=Array(t.length).fill(void 0);for(const[i,a]of t.entries())try{n[i]=e(a)}catch(o){r[i]=o}return[n,r]}function Pa(e){return null!=e&&!a(e)}function La(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map((t=>e[t]))}function ka(e,t){return Array.isArray(e)?t:Object.getOwnPropertyNames(e).reduce(((e,n,r)=>({...e,[n]:t[r]})),{})}function Ma(e,t,n){return ka(e,n.map(((e,n)=>null==e?Aa(t[n]):a(e)?Oa(e):Da(e))))}var Ba={waitForNone:_a({key:"__waitForNone",get:e=>({get:t})=>{const n=La(e),[r,o]=Na(t,n);return Ma(e,r,o)},dangerouslyAllowMutability:!0}),waitForAny:_a({key:"__waitForAny",get:e=>({get:t})=>{const n=La(e),[r,o]=Na(t,n);return o.some((e=>!a(e)))?Ma(e,r,o):new Promise((t=>{for(const[n,i]of o.entries())a(i)&&i.then((i=>{r[n]=i,o[n]=void 0,t(Ma(e,r,o))})).catch((i=>{o[n]=i,t(Ma(e,r,o))}))}))},dangerouslyAllowMutability:!0}),waitForAll:_a({key:"__waitForAll",get:e=>({get:t})=>{const n=La(e),[r,o]=Na(t,n);if(o.every((e=>null==e)))return ka(e,r);const i=o.find(Pa);if(null!=i)throw i;return Promise.all(o).then((t=>{return ka(e,(n=r,t.map(((e,t)=>void 0===e?n[t]:e))));var n}))},dangerouslyAllowMutability:!0}),waitForAllSettled:_a({key:"__waitForAllSettled",get:e=>({get:t})=>{const n=La(e),[r,o]=Na(t,n);return o.every((e=>!a(e)))?Ma(e,r,o):Promise.all(o.map(((e,t)=>a(e)?e.then((e=>{r[t]=e,o[t]=void 0})).catch((e=>{r[t]=void 0,o[t]=e})):null))).then((()=>Ma(e,r,o)))},dangerouslyAllowMutability:!0}),noWait:_a({key:"__noWait",get:e=>({get:t})=>{try{return zi.value(Aa(t(e)))}catch(n){return zi.value(a(n)?Oa(n):Da(n))}},dangerouslyAllowMutability:!0})};const{RecoilLoadable:Va}=T,{DefaultValue:Fa}=se,{RecoilRoot:Ua,useRecoilStoreID:Za}=Qn,{isRecoilValue:Ga}=K,{retentionZone:ja}=Ae,{freshSnapshot:Ha}=mn,{useRecoilState:za,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:Wa,useRecoilStateLoadable:$a,useRecoilValue:qa,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Ya,useRecoilValueLoadable:Ka,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Ja,useResetRecoilState:Xa,useSetRecoilState:Qa}=Hr,{useGotoRecoilSnapshot:es,useRecoilSnapshot:ts,useRecoilTransactionObserver:ns}=fo,{useRecoilCallback:rs}=$o,{noWait:os,waitForAll:is,waitForAllSettled:as,waitForAny:ss,waitForNone:us}=Ba;var ls={DefaultValue:Fa,isRecoilValue:Ga,RecoilLoadable:Va,RecoilEnv:O,RecoilRoot:Ua,useRecoilStoreID:Za,useRecoilBridgeAcrossReactRoots_UNSTABLE:So,atom:fa,selector:zi,atomFamily:Sa,selectorFamily:_a,constSelector:Ra,errorSelector:xa,readOnlySelector:Ta,noWait:os,waitForNone:us,waitForAny:ss,waitForAll:is,waitForAllSettled:as,useRecoilValue:qa,useRecoilValueLoadable:Ka,useRecoilState:za,useRecoilStateLoadable:$a,useSetRecoilState:Qa,useResetRecoilState:Xa,useGetRecoilValueInfo_UNSTABLE:ho,useRecoilRefresher_UNSTABLE:Jo,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Ja,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Ya,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:Wa,useRecoilCallback:rs,useRecoilTransaction_UNSTABLE:ti,useGotoRecoilSnapshot:es,useRecoilSnapshot:ts,useRecoilTransactionObserver_UNSTABLE:ns,snapshot_UNSTABLE:Ha,useRetain:dr,retentionZone:ja},cs=ls.RecoilRoot,ds=ls.atom,fs=ls.selector,ps=ls.atomFamily,vs=ls.selectorFamily,hs=ls.useRecoilValue,ms=ls.useRecoilValueLoadable,gs=ls.useRecoilState,bs=ls.useSetRecoilState,ys=ls.useResetRecoilState,Ss=ls.useRecoilRefresher_UNSTABLE,Es=ls.useRecoilCallback},55678:function(e,t,n){n.d(t,{Am:function(){return L},Ix:function(){return I}});var r=n(67294),o=n(86010);const i=e=>"number"==typeof e&&!isNaN(e),a=e=>"string"==typeof e,s=e=>"function"==typeof e,u=e=>a(e)||s(e)?e:null,l=e=>(0,r.isValidElement)(e)||a(e)||s(e)||i(e);function c(e){let{enter:t,exit:n,appendPosition:o=!1,collapse:i=!0,collapseDuration:a=300}=e;return function(e){let{children:s,position:u,preventExitTransition:l,done:c,nodeRef:d,isIn:f}=e;const p=o?`${t}--${u}`:t,v=o?`${n}--${u}`:n,h=(0,r.useRef)(0);return(0,r.useLayoutEffect)((()=>{const e=d.current,t=p.split(" "),n=r=>{r.target===d.current&&(e.dispatchEvent(new Event("d")),e.removeEventListener("animationend",n),e.removeEventListener("animationcancel",n),0===h.current&&"animationcancel"!==r.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",n),e.addEventListener("animationcancel",n)}),[]),(0,r.useEffect)((()=>{const e=d.current,t=()=>{e.removeEventListener("animationend",t),i?function(e,t,n){void 0===n&&(n=300);const{scrollHeight:r,style:o}=e;requestAnimationFrame((()=>{o.minHeight="initial",o.height=r+"px",o.transition=`all ${n}ms`,requestAnimationFrame((()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,n)}))}))}(e,c,a):c()};f||(l?t():(h.current=1,e.className+=` ${v}`,e.addEventListener("animationend",t)))}),[f]),r.createElement(r.Fragment,null,s)}}function d(e,t){return null!=e?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const f={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){const n=this.list.get(e).filter((e=>e!==t));return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit(e){const t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach((t=>{const n=setTimeout((()=>{t(...[].slice.call(arguments,1))}),0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(n)}))}},p=e=>{let{theme:t,type:n,...o}=e;return r.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===t?"currentColor":`var(--toastify-icon-color-${n})`,...o})},v={info:function(e){return r.createElement(p,{...e},r.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return r.createElement(p,{...e},r.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return r.createElement(p,{...e},r.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return r.createElement(p,{...e},r.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return r.createElement("div",{className:"Toastify__spinner"})}};function h(e){const[,t]=(0,r.useReducer)((e=>e+1),0),[n,o]=(0,r.useState)([]),c=(0,r.useRef)(null),p=(0,r.useRef)(new Map).current,h=e=>-1!==n.indexOf(e),m=(0,r.useRef)({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:h,getToast:e=>p.get(e)}).current;function g(e){let{containerId:t}=e;const{limit:n}=m.props;!n||t&&m.containerId!==t||(m.count-=m.queue.length,m.queue=[])}function b(e){o((t=>null==e?[]:t.filter((t=>t!==e))))}function y(){const{toastContent:e,toastProps:t,staleId:n}=m.queue.shift();E(e,t,n)}function S(e,n){let{delay:o,staleId:h,...g}=n;if(!l(e)||function(e){return!c.current||m.props.enableMultiContainer&&e.containerId!==m.props.containerId||p.has(e.toastId)&&null==e.updateId}(g))return;const{toastId:S,updateId:w,data:_}=g,{props:I}=m,R=()=>b(S),C=null==w;C&&m.count++;const x={...I,style:I.toastStyle,key:m.toastKey++,...Object.fromEntries(Object.entries(g).filter((e=>{let[t,n]=e;return null!=n}))),toastId:S,updateId:w,data:_,closeToast:R,isIn:!1,className:u(g.className||I.toastClassName),bodyClassName:u(g.bodyClassName||I.bodyClassName),progressClassName:u(g.progressClassName||I.progressClassName),autoClose:!g.isLoading&&(T=g.autoClose,D=I.autoClose,!1===T||i(T)&&T>0?T:D),deleteToast(){const e=d(p.get(S),"removed");p.delete(S),f.emit(4,e);const n=m.queue.length;if(m.count=null==S?m.count-m.displayedToast:m.count-1,m.count<0&&(m.count=0),n>0){const e=null==S?m.props.limit:1;if(1===n||1===e)m.displayedToast++,y();else{const t=e>n?n:e;m.displayedToast=t;for(let e=0;ee in v)(n)&&(l=v[n](c))),l}(x),s(g.onOpen)&&(x.onOpen=g.onOpen),s(g.onClose)&&(x.onClose=g.onClose),x.closeButton=I.closeButton,!1===g.closeButton||l(g.closeButton)?x.closeButton=g.closeButton:!0===g.closeButton&&(x.closeButton=!l(I.closeButton)||I.closeButton);let O=e;(0,r.isValidElement)(e)&&!a(e.type)?O=(0,r.cloneElement)(e,{closeToast:R,toastProps:x,data:_}):s(e)&&(O=e({closeToast:R,toastProps:x,data:_})),I.limit&&I.limit>0&&m.count>I.limit&&C?m.queue.push({toastContent:O,toastProps:x,staleId:h}):i(o)?setTimeout((()=>{E(O,x,h)}),o):E(O,x,h)}function E(e,t,n){const{toastId:r}=t;n&&p.delete(n);const i={content:e,props:t};p.set(r,i),o((e=>[...e,r].filter((e=>e!==n)))),f.emit(4,d(i,null==i.props.updateId?"added":"updated"))}return(0,r.useEffect)((()=>(m.containerId=e.containerId,f.cancelEmit(3).on(0,S).on(1,(e=>c.current&&b(e))).on(5,g).emit(2,m),()=>{p.clear(),f.emit(3,m)})),[]),(0,r.useEffect)((()=>{m.props=e,m.isToastActive=h,m.displayedToast=n.length})),{getToastToRender:function(t){const n=new Map,r=Array.from(p.values());return e.newestOnTop&&r.reverse(),r.forEach((e=>{const{position:t}=e.props;n.has(t)||n.set(t,[]),n.get(t).push(e)})),Array.from(n,(e=>t(e[0],e[1])))},containerRef:c,isToastActive:h}}function m(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function g(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function b(e){const[t,n]=(0,r.useState)(!1),[o,i]=(0,r.useState)(!1),a=(0,r.useRef)(null),u=(0,r.useRef)({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,l=(0,r.useRef)(e),{autoClose:c,pauseOnHover:d,closeToast:f,onClick:p,closeOnClick:v}=e;function h(t){if(e.draggable){"touchstart"===t.nativeEvent.type&&t.nativeEvent.preventDefault(),u.didMove=!1,document.addEventListener("mousemove",E),document.addEventListener("mouseup",w),document.addEventListener("touchmove",E),document.addEventListener("touchend",w);const n=a.current;u.canCloseOnClick=!0,u.canDrag=!0,u.boundingRect=n.getBoundingClientRect(),n.style.transition="",u.x=m(t.nativeEvent),u.y=g(t.nativeEvent),"x"===e.draggableDirection?(u.start=u.x,u.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(u.start=u.y,u.removalDistance=n.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent/100))}}function b(t){if(u.boundingRect){const{top:n,bottom:r,left:o,right:i}=u.boundingRect;"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&u.x>=o&&u.x<=i&&u.y>=n&&u.y<=r?S():y()}}function y(){n(!0)}function S(){n(!1)}function E(n){const r=a.current;u.canDrag&&r&&(u.didMove=!0,t&&S(),u.x=m(n),u.y=g(n),u.delta="x"===e.draggableDirection?u.x-u.start:u.y-u.start,u.start!==u.x&&(u.canCloseOnClick=!1),r.style.transform=`translate${e.draggableDirection}(${u.delta}px)`,r.style.opacity=""+(1-Math.abs(u.delta/u.removalDistance)))}function w(){document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",w),document.removeEventListener("touchmove",E),document.removeEventListener("touchend",w);const t=a.current;if(u.canDrag&&u.didMove&&t){if(u.canDrag=!1,Math.abs(u.delta)>u.removalDistance)return i(!0),void e.closeToast();t.style.transition="transform 0.2s, opacity 0.2s",t.style.transform=`translate${e.draggableDirection}(0)`,t.style.opacity="1"}}(0,r.useEffect)((()=>{l.current=e})),(0,r.useEffect)((()=>(a.current&&a.current.addEventListener("d",y,{once:!0}),s(e.onOpen)&&e.onOpen((0,r.isValidElement)(e.children)&&e.children.props),()=>{const e=l.current;s(e.onClose)&&e.onClose((0,r.isValidElement)(e.children)&&e.children.props)})),[]),(0,r.useEffect)((()=>(e.pauseOnFocusLoss&&(document.hasFocus()||S(),window.addEventListener("focus",y),window.addEventListener("blur",S)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",y),window.removeEventListener("blur",S))})),[e.pauseOnFocusLoss]);const _={onMouseDown:h,onTouchStart:h,onMouseUp:b,onTouchEnd:b};return c&&d&&(_.onMouseEnter=S,_.onMouseLeave=y),v&&(_.onClick=e=>{p&&p(e),u.canCloseOnClick&&f()}),{playToast:y,pauseToast:S,isRunning:t,preventExitTransition:o,toastRef:a,eventHandlers:_}}function y(e){let{closeToast:t,theme:n,ariaLabel:o="close"}=e;return r.createElement("button",{className:`Toastify__close-button Toastify__close-button--${n}`,type:"button",onClick:e=>{e.stopPropagation(),t(e)},"aria-label":o},r.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},r.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function S(e){let{delay:t,isRunning:n,closeToast:i,type:a="default",hide:u,className:l,style:c,controlledProgress:d,progress:f,rtl:p,isIn:v,theme:h}=e;const m=u||d&&0===f,g={...c,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused",opacity:m?0:1};d&&(g.transform=`scaleX(${f})`);const b=(0,o.default)("Toastify__progress-bar",d?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${h}`,`Toastify__progress-bar--${a}`,{"Toastify__progress-bar--rtl":p}),y=s(l)?l({rtl:p,type:a,defaultClassName:b}):(0,o.default)(b,l);return r.createElement("div",{role:"progressbar","aria-hidden":m?"true":"false","aria-label":"notification timer",className:y,style:g,[d&&f>=1?"onTransitionEnd":"onAnimationEnd"]:d&&f<1?null:()=>{v&&i()}})}const E=e=>{const{isRunning:t,preventExitTransition:n,toastRef:i,eventHandlers:a}=b(e),{closeButton:u,children:l,autoClose:c,onClick:d,type:f,hideProgressBar:p,closeToast:v,transition:h,position:m,className:g,style:E,bodyClassName:w,bodyStyle:_,progressClassName:I,progressStyle:R,updateId:C,role:x,progress:T,rtl:D,toastId:O,deleteToast:A,isIn:N,isLoading:P,iconOut:L,closeOnClick:k,theme:M}=e,B=(0,o.default)("Toastify__toast",`Toastify__toast-theme--${M}`,`Toastify__toast--${f}`,{"Toastify__toast--rtl":D},{"Toastify__toast--close-on-click":k}),V=s(g)?g({rtl:D,position:m,type:f,defaultClassName:B}):(0,o.default)(B,g),F=!!T||!c,U={closeToast:v,type:f,theme:M};let Z=null;return!1===u||(Z=s(u)?u(U):(0,r.isValidElement)(u)?(0,r.cloneElement)(u,U):y(U)),r.createElement(h,{isIn:N,done:A,position:m,preventExitTransition:n,nodeRef:i},r.createElement("div",{id:O,onClick:d,className:V,...a,style:E,ref:i},r.createElement("div",{...N&&{role:x},className:s(w)?w({type:f}):(0,o.default)("Toastify__toast-body",w),style:_},null!=L&&r.createElement("div",{className:(0,o.default)("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!P})},L),r.createElement("div",null,l)),Z,r.createElement(S,{...C&&!F?{key:`pb-${C}`}:{},rtl:D,theme:M,delay:c,isRunning:t,isIn:N,closeToast:v,hide:p,type:f,style:R,className:I,controlledProgress:F,progress:T||0})))},w=function(e,t){return void 0===t&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},_=c(w("bounce",!0)),I=(c(w("slide",!0)),c(w("zoom")),c(w("flip")),(0,r.forwardRef)(((e,t)=>{const{getToastToRender:n,containerRef:i,isToastActive:a}=h(e),{className:l,style:c,rtl:d,containerId:f}=e;function p(e){const t=(0,o.default)("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":d});return s(l)?l({position:e,rtl:d,defaultClassName:t}):(0,o.default)(t,u(l))}return(0,r.useEffect)((()=>{t&&(t.current=i.current)}),[]),r.createElement("div",{ref:i,className:"Toastify",id:f},n(((e,t)=>{const n=t.length?{...c}:{...c,pointerEvents:"none"};return r.createElement("div",{className:p(e),style:n,key:`container-${e}`},t.map(((e,n)=>{let{content:o,props:i}=e;return r.createElement(E,{...i,isIn:a(i.toastId),style:{...i.style,"--nth":n+1,"--len":t.length},key:`toast-${i.key}`},o)})))})))})));I.displayName="ToastContainer",I.defaultProps={position:"top-right",transition:_,autoClose:5e3,closeButton:y,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let R,C=new Map,x=[],T=1;function D(){return""+T++}function O(e){return e&&(a(e.toastId)||i(e.toastId))?e.toastId:D()}function A(e,t){return C.size>0?f.emit(0,e,t):x.push({content:e,options:t}),t.toastId}function N(e,t){return{...t,type:t&&t.type||e,toastId:O(t)}}function P(e){return(t,n)=>A(t,N(e,n))}function L(e,t){return A(e,N("default",t))}L.loading=(e,t)=>A(e,N("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),L.promise=function(e,t,n){let r,{pending:o,error:i,success:u}=t;o&&(r=a(o)?L.loading(o,n):L.loading(o.render,{...n,...o}));const l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},c=(e,t,o)=>{if(null==t)return void L.dismiss(r);const i={type:e,...l,...n,data:o},s=a(t)?{render:t}:t;return r?L.update(r,{...i,...s}):L(s.render,{...i,...s}),o},d=s(e)?e():e;return d.then((e=>c("success",u,e))).catch((e=>c("error",i,e))),d},L.success=P("success"),L.info=P("info"),L.error=P("error"),L.warning=P("warning"),L.warn=L.warning,L.dark=(e,t)=>A(e,N("default",{theme:"dark",...t})),L.dismiss=e=>{C.size>0?f.emit(1,e):x=x.filter((t=>null!=e&&t.options.toastId!==e))},L.clearWaitingQueue=function(e){return void 0===e&&(e={}),f.emit(5,e)},L.isActive=e=>{let t=!1;return C.forEach((n=>{n.isToastActive&&n.isToastActive(e)&&(t=!0)})),t},L.update=function(e,t){void 0===t&&(t={}),setTimeout((()=>{const n=function(e,t){let{containerId:n}=t;const r=C.get(n||R);return r&&r.getToast(e)}(e,t);if(n){const{props:r,content:o}=n,i={delay:100,...r,...t,toastId:t.toastId||e,updateId:D()};i.toastId!==e&&(i.staleId=e);const a=i.render||o;delete i.render,A(a,i)}}),0)},L.done=e=>{L.update(e,{progress:1})},L.onChange=e=>(f.on(4,e),()=>{f.off(4,e)}),L.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},L.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},f.on(2,(e=>{R=e.containerId||e,C.set(R,e),x.forEach((e=>{f.emit(0,e.content,e.options)})),x=[]})).on(3,(e=>{C.delete(e.containerId||e),0===C.size&&f.off(0).off(1).off(5)}))}}]); \ No newline at end of file -- cgit v1.2.3