@hiver/connector-admin 3.0.3 → 3.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/connectors/pages/settings/index.d.ts.map +1 -1
- package/index.es.js +3364 -3358
- package/index.umd.js +78 -78
- package/package.json +1 -1
package/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(Ve,S){typeof exports=="object"&&typeof module<"u"?S(exports,require("react"),require("react-dom"),require("@hiver/hiver-ui-kit")):typeof define=="function"&&define.amd?define(["exports","react","react-dom","@hiver/hiver-ui-kit"],S):(Ve=typeof globalThis<"u"?globalThis:Ve||self,S(Ve["@hiver/connector-admin"]={},Ve.React,Ve.ReactDOM,Ve.hiverUiKit))})(this,function(Ve,S,Qe,w){"use strict";var J9=Object.defineProperty;var Ay=Ve=>{throw TypeError(Ve)};var Q9=(Ve,S,Qe)=>S in Ve?J9(Ve,S,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):Ve[S]=Qe;var Of=(Ve,S,Qe)=>Q9(Ve,typeof S!="symbol"?S+"":S,Qe),Rf=(Ve,S,Qe)=>S.has(Ve)||Ay("Cannot "+Qe);var D=(Ve,S,Qe)=>(Rf(Ve,S,"read from private field"),Qe?Qe.call(Ve):S.get(Ve)),De=(Ve,S,Qe)=>S.has(Ve)?Ay("Cannot add the same private member more than once"):S instanceof WeakSet?S.add(Ve):S.set(Ve,Qe),Ce=(Ve,S,Qe,w)=>(Rf(Ve,S,"write to private field"),w?w.call(Ve,Qe):S.set(Ve,Qe),Qe),We=(Ve,S,Qe)=>(Rf(Ve,S,"access private method"),Qe);var cu=(Ve,S,Qe,w)=>({set _(cs){Ce(Ve,S,cs,Qe)},get _(){return D(Ve,S,w)}});var $o,mo,Vi,my,Gi,bo,Wi,by,Ko,vy,Hi,zi,Kn,ei,un,rs,ti,hr,Jr,yy,Dr,Ey,Pr,yn,ni,kr,Oo,xy,Xr,gr,os,Cy,Nt,vo,yo,Xi,Zi,Eo,Yi,Ui,wy,On,Ze,is,En,ri,qi,xo,Lr,as,Ji,Qi,oi,ii,Co,$i,
|
|
1
|
+
(function(Ve,S){typeof exports=="object"&&typeof module<"u"?S(exports,require("react"),require("react-dom"),require("@hiver/hiver-ui-kit")):typeof define=="function"&&define.amd?define(["exports","react","react-dom","@hiver/hiver-ui-kit"],S):(Ve=typeof globalThis<"u"?globalThis:Ve||self,S(Ve["@hiver/connector-admin"]={},Ve.React,Ve.ReactDOM,Ve.hiverUiKit))})(this,function(Ve,S,Qe,w){"use strict";var J9=Object.defineProperty;var Ay=Ve=>{throw TypeError(Ve)};var Q9=(Ve,S,Qe)=>S in Ve?J9(Ve,S,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):Ve[S]=Qe;var Of=(Ve,S,Qe)=>Q9(Ve,typeof S!="symbol"?S+"":S,Qe),Rf=(Ve,S,Qe)=>S.has(Ve)||Ay("Cannot "+Qe);var D=(Ve,S,Qe)=>(Rf(Ve,S,"read from private field"),Qe?Qe.call(Ve):S.get(Ve)),De=(Ve,S,Qe)=>S.has(Ve)?Ay("Cannot add the same private member more than once"):S instanceof WeakSet?S.add(Ve):S.set(Ve,Qe),Ce=(Ve,S,Qe,w)=>(Rf(Ve,S,"write to private field"),w?w.call(Ve,Qe):S.set(Ve,Qe),Qe),We=(Ve,S,Qe)=>(Rf(Ve,S,"access private method"),Qe);var cu=(Ve,S,Qe,w)=>({set _(cs){Ce(Ve,S,cs,Qe)},get _(){return D(Ve,S,w)}});var $o,mo,Vi,my,Gi,bo,Wi,by,Ko,vy,Hi,zi,Kn,ei,un,rs,ti,hr,Jr,yy,Dr,Ey,Pr,yn,ni,kr,Oo,xy,Xr,gr,os,Cy,Nt,vo,yo,Xi,Zi,Eo,Yi,Ui,wy,On,Ze,is,En,ri,qi,xo,Lr,as,Ji,Qi,oi,ii,Co,$i,ft,us,Nf,Df,Pf,kf,Lf,Ff,Mf,_y,Iy,wo,Io,Rn,Zr,Yr,du,Bf,Sy,Ty;function cs(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const P=cs(S),Oy=cs(Qe);var Be=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ds(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ry(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var fu={exports:{}},ta={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var jf;function Ny(){if(jf)return ta;jf=1;var e=S,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(s,
|
|
9
|
+
*/var jf;function Ny(){if(jf)return ta;jf=1;var e=S,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(l,s,u){var c,f={},b=null,y=null;u!==void 0&&(b=""+u),s.key!==void 0&&(b=""+s.key),s.ref!==void 0&&(y=s.ref);for(c in s)r.call(s,c)&&!i.hasOwnProperty(c)&&(f[c]=s[c]);if(l&&l.defaultProps)for(c in s=l.defaultProps,s)f[c]===void 0&&(f[c]=s[c]);return{$$typeof:t,type:l,key:b,ref:y,props:f,_owner:o.current}}return ta.Fragment=n,ta.jsx=a,ta.jsxs=a,ta}var na={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,20 +14,20 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Vf;function Dy(){return Vf||(Vf=1,process.env.NODE_ENV!=="production"&&function(){var e=S,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),
|
|
18
|
-
`+ge+_}}var Ae=!1,me;{var ze=typeof WeakMap=="function"?WeakMap:Map;me=new ze}function V(_,F){if(!_||Ae)return"";{var
|
|
17
|
+
*/var Vf;function Dy(){return Vf||(Vf=1,process.env.NODE_ENV!=="production"&&function(){var e=S,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),v=Symbol.iterator,d="@@iterator";function p(_){if(_===null||typeof _!="object")return null;var F=v&&_[v]||_[d];return typeof F=="function"?F:null}var h=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function g(_){{for(var F=arguments.length,J=new Array(F>1?F-1:0),ce=1;ce<F;ce++)J[ce-1]=arguments[ce];m("error",_,J)}}function m(_,F,J){{var ce=h.ReactDebugCurrentFrame,ne=ce.getStackAddendum();ne!==""&&(F+="%s",J=J.concat([ne]));var be=J.map(function(le){return String(le)});be.unshift("Warning: "+F),Function.prototype.apply.call(console[_],console,be)}}var E=!1,x=!1,A=!1,T=!1,C=!1,O;O=Symbol.for("react.module.reference");function M(_){return!!(typeof _=="string"||typeof _=="function"||_===r||_===i||C||_===o||_===u||_===c||T||_===y||E||x||A||typeof _=="object"&&_!==null&&(_.$$typeof===b||_.$$typeof===f||_.$$typeof===a||_.$$typeof===l||_.$$typeof===s||_.$$typeof===O||_.getModuleId!==void 0))}function B(_,F,J){var ce=_.displayName;if(ce)return ce;var ne=F.displayName||F.name||"";return ne!==""?J+"("+ne+")":J}function U(_){return _.displayName||"Context"}function G(_){if(_==null)return null;if(typeof _.tag=="number"&&g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof _=="function")return _.displayName||_.name||null;if(typeof _=="string")return _;switch(_){case r:return"Fragment";case n:return"Portal";case i:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case c:return"SuspenseList"}if(typeof _=="object")switch(_.$$typeof){case l:var F=_;return U(F)+".Consumer";case a:var J=_;return U(J._context)+".Provider";case s:return B(_,_.render,"ForwardRef");case f:var ce=_.displayName||null;return ce!==null?ce:G(_.type)||"Memo";case b:{var ne=_,be=ne._payload,le=ne._init;try{return G(le(be))}catch{return null}}}return null}var X=Object.assign,q=0,$,ue,se,ve,W,te,re;function K(){}K.__reactDisabledLog=!0;function oe(){{if(q===0){$=console.log,ue=console.info,se=console.warn,ve=console.error,W=console.group,te=console.groupCollapsed,re=console.groupEnd;var _={configurable:!0,enumerable:!0,value:K,writable:!0};Object.defineProperties(console,{info:_,log:_,warn:_,error:_,group:_,groupCollapsed:_,groupEnd:_})}q++}}function de(){{if(q--,q===0){var _={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:X({},_,{value:$}),info:X({},_,{value:ue}),warn:X({},_,{value:se}),error:X({},_,{value:ve}),group:X({},_,{value:W}),groupCollapsed:X({},_,{value:te}),groupEnd:X({},_,{value:re})})}q<0&&g("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ie=h.ReactCurrentDispatcher,ge;function Ee(_,F,J){{if(ge===void 0)try{throw Error()}catch(ne){var ce=ne.stack.trim().match(/\n( *(at )?)/);ge=ce&&ce[1]||""}return`
|
|
18
|
+
`+ge+_}}var Ae=!1,me;{var ze=typeof WeakMap=="function"?WeakMap:Map;me=new ze}function V(_,F){if(!_||Ae)return"";{var J=me.get(_);if(J!==void 0)return J}var ce;Ae=!0;var ne=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var be;be=ie.current,ie.current=null,oe();try{if(F){var le=function(){throw Error()};if(Object.defineProperty(le.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(le,[])}catch(Dt){ce=Dt}Reflect.construct(_,[],le)}else{try{le.call()}catch(Dt){ce=Dt}_.call(le.prototype)}}else{try{throw Error()}catch(Dt){ce=Dt}_()}}catch(Dt){if(Dt&&ce&&typeof Dt.stack=="string"){for(var ae=Dt.stack.split(`
|
|
19
19
|
`),ke=ce.stack.split(`
|
|
20
20
|
`),Ne=ae.length-1,Fe=ke.length-1;Ne>=1&&Fe>=0&&ae[Ne]!==ke[Fe];)Fe--;for(;Ne>=1&&Fe>=0;Ne--,Fe--)if(ae[Ne]!==ke[Fe]){if(Ne!==1||Fe!==1)do if(Ne--,Fe--,Fe<0||ae[Ne]!==ke[Fe]){var Me=`
|
|
21
|
-
`+ae[Ne].replace(" at new "," at ");return _.displayName&&Me.includes("<anonymous>")&&(Me=Me.replace("<anonymous>",_.displayName)),typeof _=="function"&&me.set(_,Me),Me}while(Ne>=1&&Fe>=0);break}}}finally{Ae=!1,ie.current=be,de(),Error.prepareStackTrace=ne}var bt=_?_.displayName||_.name:"",
|
|
21
|
+
`+ae[Ne].replace(" at new "," at ");return _.displayName&&Me.includes("<anonymous>")&&(Me=Me.replace("<anonymous>",_.displayName)),typeof _=="function"&&me.set(_,Me),Me}while(Ne>=1&&Fe>=0);break}}}finally{Ae=!1,ie.current=be,de(),Error.prepareStackTrace=ne}var bt=_?_.displayName||_.name:"",ot=bt?Ee(bt):"";return typeof _=="function"&&me.set(_,ot),ot}function Ye(_,F,J){return V(_,!1)}function Le(_){var F=_.prototype;return!!(F&&F.isReactComponent)}function Ue(_,F,J){if(_==null)return"";if(typeof _=="function")return V(_,Le(_));if(typeof _=="string")return Ee(_);switch(_){case u:return Ee("Suspense");case c:return Ee("SuspenseList")}if(typeof _=="object")switch(_.$$typeof){case s:return Ye(_.render);case f:return Ue(_.type,F,J);case b:{var ce=_,ne=ce._payload,be=ce._init;try{return Ue(be(ne),F,J)}catch{}}}return""}var Pt=Object.prototype.hasOwnProperty,Nn={},kt=h.ReactDebugCurrentFrame;function Ut(_){if(_){var F=_._owner,J=Ue(_.type,_._source,F?F.type:null);kt.setExtraStackFrame(J)}else kt.setExtraStackFrame(null)}function mt(_,F,J,ce,ne){{var be=Function.call.bind(Pt);for(var le in _)if(be(_,le)){var ae=void 0;try{if(typeof _[le]!="function"){var ke=Error((ce||"React class")+": "+J+" type `"+le+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof _[le]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ke.name="Invariant Violation",ke}ae=_[le](F,le,ce,J,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ne){ae=Ne}ae&&!(ae instanceof Error)&&(Ut(ne),g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ce||"React class",J,le,typeof ae),Ut(null)),ae instanceof Error&&!(ae.message in Nn)&&(Nn[ae.message]=!0,Ut(ne),g("Failed %s type: %s",J,ae.message),Ut(null))}}}var zn=Array.isArray;function cn(_){return zn(_)}function So(_){{var F=typeof Symbol=="function"&&Symbol.toStringTag,J=F&&_[Symbol.toStringTag]||_.constructor.name||"Object";return J}}function To(_){try{return Ao(_),!1}catch{return!0}}function Ao(_){return""+_}function Dn(_){if(To(_))return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",So(_)),Ao(_)}var Vt=h.ReactCurrentOwner,Xn={key:!0,ref:!0,__self:!0,__source:!0},dn,fn,Ct;Ct={};function Ur(_){if(Pt.call(_,"ref")){var F=Object.getOwnPropertyDescriptor(_,"ref").get;if(F&&F.isReactWarning)return!1}return _.ref!==void 0}function Fr(_){if(Pt.call(_,"key")){var F=Object.getOwnPropertyDescriptor(_,"key").get;if(F&&F.isReactWarning)return!1}return _.key!==void 0}function _o(_,F){if(typeof _.ref=="string"&&Vt.current&&F&&Vt.current.stateNode!==F){var J=G(Vt.current.type);Ct[J]||(g('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',G(Vt.current.type),_.ref),Ct[J]=!0)}}function pn(_,F){{var J=function(){dn||(dn=!0,g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",F))};J.isReactWarning=!0,Object.defineProperty(_,"key",{get:J,configurable:!0})}}function qr(_,F){{var J=function(){fn||(fn=!0,g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",F))};J.isReactWarning=!0,Object.defineProperty(_,"ref",{get:J,configurable:!0})}}var we=function(_,F,J,ce,ne,be,le){var ae={$$typeof:t,type:_,key:F,ref:J,props:le,_owner:be};return ae._store={},Object.defineProperty(ae._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ae,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ce}),Object.defineProperty(ae,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ne}),Object.freeze&&(Object.freeze(ae.props),Object.freeze(ae)),ae};function mr(_,F,J,ce,ne){{var be,le={},ae=null,ke=null;J!==void 0&&(Dn(J),ae=""+J),Fr(F)&&(Dn(F.key),ae=""+F.key),Ur(F)&&(ke=F.ref,_o(F,ne));for(be in F)Pt.call(F,be)&&!Xn.hasOwnProperty(be)&&(le[be]=F[be]);if(_&&_.defaultProps){var Ne=_.defaultProps;for(be in Ne)le[be]===void 0&&(le[be]=Ne[be])}if(ae||ke){var Fe=typeof _=="function"?_.displayName||_.name||"Unknown":_;ae&&pn(le,Fe),ke&&qr(le,Fe)}return we(_,ae,ke,ne,ce,Vt.current,le)}}var er=h.ReactCurrentOwner,wt=h.ReactDebugCurrentFrame;function $e(_){if(_){var F=_._owner,J=Ue(_.type,_._source,F?F.type:null);wt.setExtraStackFrame(J)}else wt.setExtraStackFrame(null)}var ht;ht=!1;function At(_){return typeof _=="object"&&_!==null&&_.$$typeof===t}function _t(){{if(er.current){var _=G(er.current.type);if(_)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+_+"`."}return""}}function rn(_){return""}var Lt={};function Gt(_){{var F=_t();if(!F){var
|
|
23
|
+
Check the render method of \``+_+"`."}return""}}function rn(_){return""}var Lt={};function Gt(_){{var F=_t();if(!F){var J=typeof _=="string"?_:_.displayName||_.name;J&&(F=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+
|
|
25
|
+
Check the top-level render call using <`+J+">.")}return F}}function Kt(_,F){{if(!_._store||_._store.validated||_.key!=null)return;_._store.validated=!0;var J=Gt(F);if(Lt[J])return;Lt[J]=!0;var ce="";_&&_._owner&&_._owner!==er.current&&(ce=" It was passed a child from "+G(_._owner.type)+"."),$e(_),g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',J,ce),$e(null)}}function Pn(_,F){{if(typeof _!="object")return;if(cn(_))for(var J=0;J<_.length;J++){var ce=_[J];At(ce)&&Kt(ce,F)}else if(At(_))_._store&&(_._store.validated=!0);else if(_){var ne=p(_);if(typeof ne=="function"&&ne!==_.entries)for(var be=ne.call(_),le;!(le=be.next()).done;)At(le.value)&&Kt(le.value,F)}}}function Wt(_){{var F=_.type;if(F==null||typeof F=="string")return;var J;if(typeof F=="function")J=F.propTypes;else if(typeof F=="object"&&(F.$$typeof===s||F.$$typeof===f))J=F.propTypes;else return;if(J){var ce=G(F);mt(J,_.props,"prop",ce,_)}else if(F.PropTypes!==void 0&&!ht){ht=!0;var ne=G(F);g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ne||"Unknown")}typeof F.getDefaultProps=="function"&&!F.getDefaultProps.isReactClassApproved&&g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function xt(_){{for(var F=Object.keys(_.props),J=0;J<F.length;J++){var ce=F[J];if(ce!=="children"&&ce!=="key"){$e(_),g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ce),$e(null);break}}_.ref!==null&&($e(_),g("Invalid attribute `ref` supplied to `React.Fragment`."),$e(null))}}var Zn={};function Yn(_,F,J,ce,ne,be){{var le=M(_);if(!le){var ae="";(_===void 0||typeof _=="object"&&_!==null&&Object.keys(_).length===0)&&(ae+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ke=rn();ke?ae+=ke:ae+=_t();var Ne;_===null?Ne="null":cn(_)?Ne="array":_!==void 0&&_.$$typeof===t?(Ne="<"+(G(_.type)||"Unknown")+" />",ae=" Did you accidentally export a JSX literal instead of a component?"):Ne=typeof _,g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ne,ae)}var Fe=mr(_,F,J,ne,be);if(Fe==null)return Fe;if(le){var Me=F.children;if(Me!==void 0)if(ce)if(cn(Me)){for(var bt=0;bt<Me.length;bt++)Pn(Me[bt],_);Object.freeze&&Object.freeze(Me)}else g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Pn(Me,_)}if(Pt.call(F,"key")){var ot=G(_),Dt=Object.keys(F).filter(function(tr){return tr!=="key"}),gn=Dt.length>0?"{key: someKey, "+Dt.join(": ..., ")+": ...}":"{key: someKey}";if(!Zn[ot+gn]){var Mr=Dt.length>0?"{"+Dt.join(": ..., ")+": ...}":"{}";g(`A props object containing a "key" prop is being spread into JSX:
|
|
26
26
|
let props = %s;
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,gn,rt,Mr,rt),Zn[rt+gn]=!0}}return _===r?xt(Fe):Wt(Fe),Fe}}function hn(_,F,U){return Yn(_,F,U,!0)}function R(_,F,U){return Yn(_,F,U,!1)}var k=R,j=hn;na.Fragment=r,na.jsx=k,na.jsxs=j}()),na}process.env.NODE_ENV==="production"?fu.exports=Ny():fu.exports=Dy();var I=fu.exports;function Gf(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Gf(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Qr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Gf(e))&&(r&&(r+=" "),r+=t);return r}const ra=e=>typeof e=="number"&&!isNaN(e),Ro=e=>typeof e=="string",Ln=e=>typeof e=="function",fs=e=>Ro(e)||Ln(e)?e:null,pu=e=>S.isValidElement(e)||Ro(e)||Ln(e)||ra(e);function Py(e,t,n){n===void 0&&(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)})})}function ps(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:o=!0,collapseDuration:i=300}=e;return function(a){let{children:s,position:l,preventExitTransition:u,done:c,nodeRef:d,isIn:v,playToast:y}=a;const g=r?`${t}--${l}`:t,f=r?`${n}--${l}`:n,p=S.useRef(0);return S.useLayoutEffect(()=>{const h=d.current,m=g.split(" "),b=E=>{E.target===d.current&&(y(),h.removeEventListener("animationend",b),h.removeEventListener("animationcancel",b),p.current===0&&E.type!=="animationcancel"&&h.classList.remove(...m))};h.classList.add(...m),h.addEventListener("animationend",b),h.addEventListener("animationcancel",b)},[]),S.useEffect(()=>{const h=d.current,m=()=>{h.removeEventListener("animationend",m),o?Py(h,c,i):c()};v||(u?m():(p.current=1,h.className+=` ${f}`,h.addEventListener("animationend",m)))},[v]),S.createElement(S.Fragment,null,s)}}function Wf(e,t){return e!=null?{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 mn=new Map;let oa=[];const hu=new Set,ky=e=>hu.forEach(t=>t(e)),Hf=()=>mn.size>0;function zf(e,t){var n;if(t)return!((n=mn.get(t))==null||!n.isToastActive(e));let r=!1;return mn.forEach(o=>{o.isToastActive(e)&&(r=!0)}),r}function Xf(e,t){pu(e)&&(Hf()||oa.push({content:e,options:t}),mn.forEach(n=>{n.buildToast(e,t)}))}function Zf(e,t){mn.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}function Ly(e){const{subscribe:t,getSnapshot:n,setProps:r}=S.useRef(function(i){const a=i.containerId||1;return{subscribe(s){const l=function(c,d,v){let y=1,g=0,f=[],p=[],h=[],m=d;const b=new Map,E=new Set,x=()=>{h=Array.from(b.values()),E.forEach(C=>C())},T=C=>{p=C==null?[]:p.filter(O=>O!==C),x()},A=C=>{const{toastId:O,onOpen:B,updateId:M,children:Q}=C.props,G=M==null;C.staleId&&b.delete(C.staleId),b.set(O,C),p=[...p,C.props.toastId].filter(W=>W!==C.staleId),x(),v(Wf(C,G?"added":"updated")),G&&Ln(B)&&B(S.isValidElement(Q)&&Q.props)};return{id:c,props:m,observe:C=>(E.add(C),()=>E.delete(C)),toggle:(C,O)=>{b.forEach(B=>{O!=null&&O!==B.props.toastId||Ln(B.toggle)&&B.toggle(C)})},removeToast:T,toasts:b,clearQueue:()=>{g-=f.length,f=[]},buildToast:(C,O)=>{if((re=>{let{containerId:$,toastId:oe,updateId:de}=re;const ie=$?$!==c:c!==1,ge=b.has(oe)&&de==null;return ie||ge})(O))return;const{toastId:B,updateId:M,data:Q,staleId:G,delay:W}=O,q=()=>{T(B)},ee=M==null;ee&&g++;const ue={...m,style:m.toastStyle,key:y++,...Object.fromEntries(Object.entries(O).filter(re=>{let[$,oe]=re;return oe!=null})),toastId:B,updateId:M,data:Q,closeToast:q,isIn:!1,className:fs(O.className||m.toastClassName),bodyClassName:fs(O.bodyClassName||m.bodyClassName),progressClassName:fs(O.progressClassName||m.progressClassName),autoClose:!O.isLoading&&(se=O.autoClose,ve=m.autoClose,se===!1||ra(se)&&se>0?se:ve),deleteToast(){const re=b.get(B),{onClose:$,children:oe}=re.props;Ln($)&&$(S.isValidElement(oe)&&oe.props),v(Wf(re,"removed")),b.delete(B),g--,g<0&&(g=0),f.length>0?A(f.shift()):x()}};var se,ve;ue.closeButton=m.closeButton,O.closeButton===!1||pu(O.closeButton)?ue.closeButton=O.closeButton:O.closeButton===!0&&(ue.closeButton=!pu(m.closeButton)||m.closeButton);let H=C;S.isValidElement(C)&&!Ro(C.type)?H=S.cloneElement(C,{closeToast:q,toastProps:ue,data:Q}):Ln(C)&&(H=C({closeToast:q,toastProps:ue,data:Q}));const te={content:H,props:ue,staleId:G};m.limit&&m.limit>0&&g>m.limit&&ee?f.push(te):ra(W)?setTimeout(()=>{A(te)},W):A(te)},setProps(C){m=C},setToggle:(C,O)=>{b.get(C).toggle=O},isToastActive:C=>p.some(O=>O===C),getSnapshot:()=>m.newestOnTop?h.reverse():h}}(a,i,ky);mn.set(a,l);const u=l.observe(s);return oa.forEach(c=>Xf(c.content,c.options)),oa=[],()=>{u(),mn.delete(a)}},setProps(s){var l;(l=mn.get(a))==null||l.setProps(s)},getSnapshot(){var s;return(s=mn.get(a))==null?void 0:s.getSnapshot()}}}(e)).current;r(e);const o=S.useSyncExternalStore(t,n,n);return{getToastToRender:function(i){if(!o)return[];const a=new Map;return o.forEach(s=>{const{position:l}=s.props;a.has(l)||a.set(l,[]),a.get(l).push(s)}),Array.from(a,s=>i(s[0],s[1]))},isToastActive:zf,count:o==null?void 0:o.length}}function Fy(e){const[t,n]=S.useState(!1),[r,o]=S.useState(!1),i=S.useRef(null),a=S.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:s,pauseOnHover:l,closeToast:u,onClick:c,closeOnClick:d}=e;var v,y;function g(){n(!0)}function f(){n(!1)}function p(b){const E=i.current;a.canDrag&&E&&(a.didMove=!0,t&&f(),a.delta=e.draggableDirection==="x"?b.clientX-a.start:b.clientY-a.start,a.start!==b.clientX&&(a.canCloseOnClick=!1),E.style.transform=`translate3d(${e.draggableDirection==="x"?`${a.delta}px, var(--y)`:`0, calc(${a.delta}px + var(--y))`},0)`,E.style.opacity=""+(1-Math.abs(a.delta/a.removalDistance)))}function h(){document.removeEventListener("pointermove",p),document.removeEventListener("pointerup",h);const b=i.current;if(a.canDrag&&a.didMove&&b){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance)return o(!0),e.closeToast(),void e.collapseAll();b.style.transition="transform 0.2s, opacity 0.2s",b.style.removeProperty("transform"),b.style.removeProperty("opacity")}}(y=mn.get((v={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||y.setToggle(v.id,v.fn),S.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||f(),window.addEventListener("focus",g),window.addEventListener("blur",f),()=>{window.removeEventListener("focus",g),window.removeEventListener("blur",f)}},[e.pauseOnFocusLoss]);const m={onPointerDown:function(b){if(e.draggable===!0||e.draggable===b.pointerType){a.didMove=!1,document.addEventListener("pointermove",p),document.addEventListener("pointerup",h);const E=i.current;a.canCloseOnClick=!0,a.canDrag=!0,E.style.transition="none",e.draggableDirection==="x"?(a.start=b.clientX,a.removalDistance=E.offsetWidth*(e.draggablePercent/100)):(a.start=b.clientY,a.removalDistance=E.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(b){const{top:E,bottom:x,left:T,right:A}=i.current.getBoundingClientRect();b.nativeEvent.type!=="touchend"&&e.pauseOnHover&&b.clientX>=T&&b.clientX<=A&&b.clientY>=E&&b.clientY<=x?f():g()}};return s&&l&&(m.onMouseEnter=f,e.stacked||(m.onMouseLeave=g)),d&&(m.onClick=b=>{c&&c(b),a.canCloseOnClick&&u()}),{playToast:g,pauseToast:f,isRunning:t,preventExitTransition:r,toastRef:i,eventHandlers:m}}function My(e){let{delay:t,isRunning:n,closeToast:r,type:o="default",hide:i,className:a,style:s,controlledProgress:l,progress:u,rtl:c,isIn:d,theme:v}=e;const y=i||l&&u===0,g={...s,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};l&&(g.transform=`scaleX(${u})`);const f=Qr("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${v}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":c}),p=Ln(a)?a({rtl:c,type:o,defaultClassName:f}):Qr(f,a),h={[l&&u>=1?"onTransitionEnd":"onAnimationEnd"]:l&&u<1?null:()=>{d&&r()}};return S.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":y},S.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${v} Toastify__progress-bar--${o}`}),S.createElement("div",{role:"progressbar","aria-hidden":y?"true":"false","aria-label":"notification timer",className:p,style:g,...h}))}let By=1;const Yf=()=>""+By++;function jy(e){return e&&(Ro(e.toastId)||ra(e.toastId))?e.toastId:Yf()}function ia(e,t){return Xf(e,t),t.toastId}function hs(e,t){return{...t,type:t&&t.type||e,toastId:jy(t)}}function gs(e){return(t,n)=>ia(t,hs(e,n))}function it(e,t){return ia(e,hs("default",t))}it.loading=(e,t)=>ia(e,hs("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),it.promise=function(e,t,n){let r,{pending:o,error:i,success:a}=t;o&&(r=Ro(o)?it.loading(o,n):it.loading(o.render,{...n,...o}));const s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(c,d,v)=>{if(d==null)return void it.dismiss(r);const y={type:c,...s,...n,data:v},g=Ro(d)?{render:d}:d;return r?it.update(r,{...y,...g}):it(g.render,{...y,...g}),v},u=Ln(e)?e():e;return u.then(c=>l("success",a,c)).catch(c=>l("error",i,c)),u},it.success=gs("success"),it.info=gs("info"),it.error=gs("error"),it.warning=gs("warning"),it.warn=it.warning,it.dark=(e,t)=>ia(e,hs("default",{theme:"dark",...t})),it.dismiss=function(e){(function(t){var n;if(Hf()){if(t==null||Ro(n=t)||ra(n))mn.forEach(r=>{r.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const r=mn.get(t.containerId);r?r.removeToast(t.id):mn.forEach(o=>{o.removeToast(t.id)})}}else oa=oa.filter(r=>t!=null&&r.options.toastId!==t)})(e)},it.clearWaitingQueue=function(e){e===void 0&&(e={}),mn.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},it.isActive=zf,it.update=function(e,t){t===void 0&&(t={});const n=((r,o)=>{var i;let{containerId:a}=o;return(i=mn.get(a||1))==null?void 0:i.toasts.get(r)})(e,t);if(n){const{props:r,content:o}=n,i={delay:100,...r,...t,toastId:t.toastId||e,updateId:Yf()};i.toastId!==e&&(i.staleId=e);const a=i.render||o;delete i.render,ia(a,i)}},it.done=e=>{it.update(e,{progress:1})},it.onChange=function(e){return hu.add(e),()=>{hu.delete(e)}},it.play=e=>Zf(!0,e),it.pause=e=>Zf(!1,e);const Vy=typeof window<"u"?S.useLayoutEffect:S.useEffect,ms=e=>{let{theme:t,type:n,isLoading:r,...o}=e;return S.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...o})},gu={info:function(e){return S.createElement(ms,{...e},S.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 S.createElement(ms,{...e},S.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 S.createElement(ms,{...e},S.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 S.createElement(ms,{...e},S.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 S.createElement("div",{className:"Toastify__spinner"})}},Gy=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:o,playToast:i}=Fy(e),{closeButton:a,children:s,autoClose:l,onClick:u,type:c,hideProgressBar:d,closeToast:v,transition:y,position:g,className:f,style:p,bodyClassName:h,bodyStyle:m,progressClassName:b,progressStyle:E,updateId:x,role:T,progress:A,rtl:C,toastId:O,deleteToast:B,isIn:M,isLoading:Q,closeOnClick:G,theme:W}=e,q=Qr("Toastify__toast",`Toastify__toast-theme--${W}`,`Toastify__toast--${c}`,{"Toastify__toast--rtl":C},{"Toastify__toast--close-on-click":G}),ee=Ln(f)?f({rtl:C,position:g,type:c,defaultClassName:q}):Qr(q,f),ue=function(te){let{theme:re,type:$,isLoading:oe,icon:de}=te,ie=null;const ge={theme:re,type:$};return de===!1||(Ln(de)?ie=de({...ge,isLoading:oe}):S.isValidElement(de)?ie=S.cloneElement(de,ge):oe?ie=gu.spinner():(Ee=>Ee in gu)($)&&(ie=gu[$](ge))),ie}(e),se=!!A||!l,ve={closeToast:v,type:c,theme:W};let H=null;return a===!1||(H=Ln(a)?a(ve):S.isValidElement(a)?S.cloneElement(a,ve):function(te){let{closeToast:re,theme:$,ariaLabel:oe="close"}=te;return S.createElement("button",{className:`Toastify__close-button Toastify__close-button--${$}`,type:"button",onClick:de=>{de.stopPropagation(),re(de)},"aria-label":oe},S.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},S.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"})))}(ve)),S.createElement(y,{isIn:M,done:B,position:g,preventExitTransition:n,nodeRef:r,playToast:i},S.createElement("div",{id:O,onClick:u,"data-in":M,className:ee,...o,style:p,ref:r},S.createElement("div",{...M&&{role:T},className:Ln(h)?h({type:c}):Qr("Toastify__toast-body",h),style:m},ue!=null&&S.createElement("div",{className:Qr("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!Q})},ue),S.createElement("div",null,s)),H,S.createElement(My,{...x&&!se?{key:`pb-${x}`}:{},rtl:C,theme:W,delay:l,isRunning:t,isIn:M,closeToast:v,hide:d,type:c,style:E,className:b,controlledProgress:se,progress:A||0})))},bs=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},Wy=ps(bs("bounce",!0));ps(bs("slide",!0)),ps(bs("zoom")),ps(bs("flip"));const Hy={position:"top-right",transition:Wy,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function zy(e){let t={...Hy,...e};const n=e.stacked,[r,o]=S.useState(!0),i=S.useRef(null),{getToastToRender:a,isToastActive:s,count:l}=Ly(t),{className:u,style:c,rtl:d,containerId:v}=t;function y(f){const p=Qr("Toastify__toast-container",`Toastify__toast-container--${f}`,{"Toastify__toast-container--rtl":d});return Ln(u)?u({position:f,rtl:d,defaultClassName:p}):Qr(p,fs(u))}function g(){n&&(o(!0),it.play())}return Vy(()=>{if(n){var f;const p=i.current.querySelectorAll('[data-in="true"]'),h=12,m=(f=t.position)==null?void 0:f.includes("top");let b=0,E=0;Array.from(p).reverse().forEach((x,T)=>{const A=x;A.classList.add("Toastify__toast--stacked"),T>0&&(A.dataset.collapsed=`${r}`),A.dataset.pos||(A.dataset.pos=m?"top":"bot");const C=b*(r?.2:1)+(r?0:h*T);A.style.setProperty("--y",`${m?C:-1*C}px`),A.style.setProperty("--g",`${h}`),A.style.setProperty("--s",""+(1-(r?E:0))),b+=A.offsetHeight,E+=.025})}},[r,l,n]),S.createElement("div",{ref:i,className:"Toastify",id:v,onMouseEnter:()=>{n&&(o(!1),it.pause())},onMouseLeave:g},a((f,p)=>{const h=p.length?{...c}:{...c,pointerEvents:"none"};return S.createElement("div",{className:y(f),style:h,key:`container-${f}`},p.map(m=>{let{content:b,props:E}=m;return S.createElement(Gy,{...E,stacked:n,collapseAll:g,isIn:s(E.toastId,E.containerId),style:E.style,key:`toast-${E.key}`},b)}))}))}var mu={exports:{}},bu={};/**
|
|
30
|
+
<%s key={someKey} {...props} />`,gn,ot,Mr,ot),Zn[ot+gn]=!0}}return _===r?xt(Fe):Wt(Fe),Fe}}function hn(_,F,J){return Yn(_,F,J,!0)}function R(_,F,J){return Yn(_,F,J,!1)}var k=R,j=hn;na.Fragment=r,na.jsx=k,na.jsxs=j}()),na}process.env.NODE_ENV==="production"?fu.exports=Ny():fu.exports=Dy();var I=fu.exports;function Gf(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Gf(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Qr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Gf(e))&&(r&&(r+=" "),r+=t);return r}const ra=e=>typeof e=="number"&&!isNaN(e),Ro=e=>typeof e=="string",Ln=e=>typeof e=="function",fs=e=>Ro(e)||Ln(e)?e:null,pu=e=>S.isValidElement(e)||Ro(e)||Ln(e)||ra(e);function Py(e,t,n){n===void 0&&(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)})})}function ps(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:o=!0,collapseDuration:i=300}=e;return function(a){let{children:l,position:s,preventExitTransition:u,done:c,nodeRef:f,isIn:b,playToast:y}=a;const v=r?`${t}--${s}`:t,d=r?`${n}--${s}`:n,p=S.useRef(0);return S.useLayoutEffect(()=>{const h=f.current,g=v.split(" "),m=E=>{E.target===f.current&&(y(),h.removeEventListener("animationend",m),h.removeEventListener("animationcancel",m),p.current===0&&E.type!=="animationcancel"&&h.classList.remove(...g))};h.classList.add(...g),h.addEventListener("animationend",m),h.addEventListener("animationcancel",m)},[]),S.useEffect(()=>{const h=f.current,g=()=>{h.removeEventListener("animationend",g),o?Py(h,c,i):c()};b||(u?g():(p.current=1,h.className+=` ${d}`,h.addEventListener("animationend",g)))},[b]),S.createElement(S.Fragment,null,l)}}function Wf(e,t){return e!=null?{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 mn=new Map;let oa=[];const hu=new Set,ky=e=>hu.forEach(t=>t(e)),Hf=()=>mn.size>0;function zf(e,t){var n;if(t)return!((n=mn.get(t))==null||!n.isToastActive(e));let r=!1;return mn.forEach(o=>{o.isToastActive(e)&&(r=!0)}),r}function Xf(e,t){pu(e)&&(Hf()||oa.push({content:e,options:t}),mn.forEach(n=>{n.buildToast(e,t)}))}function Zf(e,t){mn.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}function Ly(e){const{subscribe:t,getSnapshot:n,setProps:r}=S.useRef(function(i){const a=i.containerId||1;return{subscribe(l){const s=function(c,f,b){let y=1,v=0,d=[],p=[],h=[],g=f;const m=new Map,E=new Set,x=()=>{h=Array.from(m.values()),E.forEach(C=>C())},A=C=>{p=C==null?[]:p.filter(O=>O!==C),x()},T=C=>{const{toastId:O,onOpen:M,updateId:B,children:U}=C.props,G=B==null;C.staleId&&m.delete(C.staleId),m.set(O,C),p=[...p,C.props.toastId].filter(X=>X!==C.staleId),x(),b(Wf(C,G?"added":"updated")),G&&Ln(M)&&M(S.isValidElement(U)&&U.props)};return{id:c,props:g,observe:C=>(E.add(C),()=>E.delete(C)),toggle:(C,O)=>{m.forEach(M=>{O!=null&&O!==M.props.toastId||Ln(M.toggle)&&M.toggle(C)})},removeToast:A,toasts:m,clearQueue:()=>{v-=d.length,d=[]},buildToast:(C,O)=>{if((re=>{let{containerId:K,toastId:oe,updateId:de}=re;const ie=K?K!==c:c!==1,ge=m.has(oe)&&de==null;return ie||ge})(O))return;const{toastId:M,updateId:B,data:U,staleId:G,delay:X}=O,q=()=>{A(M)},$=B==null;$&&v++;const ue={...g,style:g.toastStyle,key:y++,...Object.fromEntries(Object.entries(O).filter(re=>{let[K,oe]=re;return oe!=null})),toastId:M,updateId:B,data:U,closeToast:q,isIn:!1,className:fs(O.className||g.toastClassName),bodyClassName:fs(O.bodyClassName||g.bodyClassName),progressClassName:fs(O.progressClassName||g.progressClassName),autoClose:!O.isLoading&&(se=O.autoClose,ve=g.autoClose,se===!1||ra(se)&&se>0?se:ve),deleteToast(){const re=m.get(M),{onClose:K,children:oe}=re.props;Ln(K)&&K(S.isValidElement(oe)&&oe.props),b(Wf(re,"removed")),m.delete(M),v--,v<0&&(v=0),d.length>0?T(d.shift()):x()}};var se,ve;ue.closeButton=g.closeButton,O.closeButton===!1||pu(O.closeButton)?ue.closeButton=O.closeButton:O.closeButton===!0&&(ue.closeButton=!pu(g.closeButton)||g.closeButton);let W=C;S.isValidElement(C)&&!Ro(C.type)?W=S.cloneElement(C,{closeToast:q,toastProps:ue,data:U}):Ln(C)&&(W=C({closeToast:q,toastProps:ue,data:U}));const te={content:W,props:ue,staleId:G};g.limit&&g.limit>0&&v>g.limit&&$?d.push(te):ra(X)?setTimeout(()=>{T(te)},X):T(te)},setProps(C){g=C},setToggle:(C,O)=>{m.get(C).toggle=O},isToastActive:C=>p.some(O=>O===C),getSnapshot:()=>g.newestOnTop?h.reverse():h}}(a,i,ky);mn.set(a,s);const u=s.observe(l);return oa.forEach(c=>Xf(c.content,c.options)),oa=[],()=>{u(),mn.delete(a)}},setProps(l){var s;(s=mn.get(a))==null||s.setProps(l)},getSnapshot(){var l;return(l=mn.get(a))==null?void 0:l.getSnapshot()}}}(e)).current;r(e);const o=S.useSyncExternalStore(t,n,n);return{getToastToRender:function(i){if(!o)return[];const a=new Map;return o.forEach(l=>{const{position:s}=l.props;a.has(s)||a.set(s,[]),a.get(s).push(l)}),Array.from(a,l=>i(l[0],l[1]))},isToastActive:zf,count:o==null?void 0:o.length}}function Fy(e){const[t,n]=S.useState(!1),[r,o]=S.useState(!1),i=S.useRef(null),a=S.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:l,pauseOnHover:s,closeToast:u,onClick:c,closeOnClick:f}=e;var b,y;function v(){n(!0)}function d(){n(!1)}function p(m){const E=i.current;a.canDrag&&E&&(a.didMove=!0,t&&d(),a.delta=e.draggableDirection==="x"?m.clientX-a.start:m.clientY-a.start,a.start!==m.clientX&&(a.canCloseOnClick=!1),E.style.transform=`translate3d(${e.draggableDirection==="x"?`${a.delta}px, var(--y)`:`0, calc(${a.delta}px + var(--y))`},0)`,E.style.opacity=""+(1-Math.abs(a.delta/a.removalDistance)))}function h(){document.removeEventListener("pointermove",p),document.removeEventListener("pointerup",h);const m=i.current;if(a.canDrag&&a.didMove&&m){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance)return o(!0),e.closeToast(),void e.collapseAll();m.style.transition="transform 0.2s, opacity 0.2s",m.style.removeProperty("transform"),m.style.removeProperty("opacity")}}(y=mn.get((b={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||y.setToggle(b.id,b.fn),S.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||d(),window.addEventListener("focus",v),window.addEventListener("blur",d),()=>{window.removeEventListener("focus",v),window.removeEventListener("blur",d)}},[e.pauseOnFocusLoss]);const g={onPointerDown:function(m){if(e.draggable===!0||e.draggable===m.pointerType){a.didMove=!1,document.addEventListener("pointermove",p),document.addEventListener("pointerup",h);const E=i.current;a.canCloseOnClick=!0,a.canDrag=!0,E.style.transition="none",e.draggableDirection==="x"?(a.start=m.clientX,a.removalDistance=E.offsetWidth*(e.draggablePercent/100)):(a.start=m.clientY,a.removalDistance=E.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(m){const{top:E,bottom:x,left:A,right:T}=i.current.getBoundingClientRect();m.nativeEvent.type!=="touchend"&&e.pauseOnHover&&m.clientX>=A&&m.clientX<=T&&m.clientY>=E&&m.clientY<=x?d():v()}};return l&&s&&(g.onMouseEnter=d,e.stacked||(g.onMouseLeave=v)),f&&(g.onClick=m=>{c&&c(m),a.canCloseOnClick&&u()}),{playToast:v,pauseToast:d,isRunning:t,preventExitTransition:r,toastRef:i,eventHandlers:g}}function My(e){let{delay:t,isRunning:n,closeToast:r,type:o="default",hide:i,className:a,style:l,controlledProgress:s,progress:u,rtl:c,isIn:f,theme:b}=e;const y=i||s&&u===0,v={...l,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};s&&(v.transform=`scaleX(${u})`);const d=Qr("Toastify__progress-bar",s?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${b}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":c}),p=Ln(a)?a({rtl:c,type:o,defaultClassName:d}):Qr(d,a),h={[s&&u>=1?"onTransitionEnd":"onAnimationEnd"]:s&&u<1?null:()=>{f&&r()}};return S.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":y},S.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${b} Toastify__progress-bar--${o}`}),S.createElement("div",{role:"progressbar","aria-hidden":y?"true":"false","aria-label":"notification timer",className:p,style:v,...h}))}let By=1;const Yf=()=>""+By++;function jy(e){return e&&(Ro(e.toastId)||ra(e.toastId))?e.toastId:Yf()}function ia(e,t){return Xf(e,t),t.toastId}function hs(e,t){return{...t,type:t&&t.type||e,toastId:jy(t)}}function gs(e){return(t,n)=>ia(t,hs(e,n))}function at(e,t){return ia(e,hs("default",t))}at.loading=(e,t)=>ia(e,hs("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),at.promise=function(e,t,n){let r,{pending:o,error:i,success:a}=t;o&&(r=Ro(o)?at.loading(o,n):at.loading(o.render,{...n,...o}));const l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},s=(c,f,b)=>{if(f==null)return void at.dismiss(r);const y={type:c,...l,...n,data:b},v=Ro(f)?{render:f}:f;return r?at.update(r,{...y,...v}):at(v.render,{...y,...v}),b},u=Ln(e)?e():e;return u.then(c=>s("success",a,c)).catch(c=>s("error",i,c)),u},at.success=gs("success"),at.info=gs("info"),at.error=gs("error"),at.warning=gs("warning"),at.warn=at.warning,at.dark=(e,t)=>ia(e,hs("default",{theme:"dark",...t})),at.dismiss=function(e){(function(t){var n;if(Hf()){if(t==null||Ro(n=t)||ra(n))mn.forEach(r=>{r.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const r=mn.get(t.containerId);r?r.removeToast(t.id):mn.forEach(o=>{o.removeToast(t.id)})}}else oa=oa.filter(r=>t!=null&&r.options.toastId!==t)})(e)},at.clearWaitingQueue=function(e){e===void 0&&(e={}),mn.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},at.isActive=zf,at.update=function(e,t){t===void 0&&(t={});const n=((r,o)=>{var i;let{containerId:a}=o;return(i=mn.get(a||1))==null?void 0:i.toasts.get(r)})(e,t);if(n){const{props:r,content:o}=n,i={delay:100,...r,...t,toastId:t.toastId||e,updateId:Yf()};i.toastId!==e&&(i.staleId=e);const a=i.render||o;delete i.render,ia(a,i)}},at.done=e=>{at.update(e,{progress:1})},at.onChange=function(e){return hu.add(e),()=>{hu.delete(e)}},at.play=e=>Zf(!0,e),at.pause=e=>Zf(!1,e);const Vy=typeof window<"u"?S.useLayoutEffect:S.useEffect,ms=e=>{let{theme:t,type:n,isLoading:r,...o}=e;return S.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...o})},gu={info:function(e){return S.createElement(ms,{...e},S.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 S.createElement(ms,{...e},S.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 S.createElement(ms,{...e},S.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 S.createElement(ms,{...e},S.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 S.createElement("div",{className:"Toastify__spinner"})}},Gy=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:o,playToast:i}=Fy(e),{closeButton:a,children:l,autoClose:s,onClick:u,type:c,hideProgressBar:f,closeToast:b,transition:y,position:v,className:d,style:p,bodyClassName:h,bodyStyle:g,progressClassName:m,progressStyle:E,updateId:x,role:A,progress:T,rtl:C,toastId:O,deleteToast:M,isIn:B,isLoading:U,closeOnClick:G,theme:X}=e,q=Qr("Toastify__toast",`Toastify__toast-theme--${X}`,`Toastify__toast--${c}`,{"Toastify__toast--rtl":C},{"Toastify__toast--close-on-click":G}),$=Ln(d)?d({rtl:C,position:v,type:c,defaultClassName:q}):Qr(q,d),ue=function(te){let{theme:re,type:K,isLoading:oe,icon:de}=te,ie=null;const ge={theme:re,type:K};return de===!1||(Ln(de)?ie=de({...ge,isLoading:oe}):S.isValidElement(de)?ie=S.cloneElement(de,ge):oe?ie=gu.spinner():(Ee=>Ee in gu)(K)&&(ie=gu[K](ge))),ie}(e),se=!!T||!s,ve={closeToast:b,type:c,theme:X};let W=null;return a===!1||(W=Ln(a)?a(ve):S.isValidElement(a)?S.cloneElement(a,ve):function(te){let{closeToast:re,theme:K,ariaLabel:oe="close"}=te;return S.createElement("button",{className:`Toastify__close-button Toastify__close-button--${K}`,type:"button",onClick:de=>{de.stopPropagation(),re(de)},"aria-label":oe},S.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},S.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"})))}(ve)),S.createElement(y,{isIn:B,done:M,position:v,preventExitTransition:n,nodeRef:r,playToast:i},S.createElement("div",{id:O,onClick:u,"data-in":B,className:$,...o,style:p,ref:r},S.createElement("div",{...B&&{role:A},className:Ln(h)?h({type:c}):Qr("Toastify__toast-body",h),style:g},ue!=null&&S.createElement("div",{className:Qr("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!U})},ue),S.createElement("div",null,l)),W,S.createElement(My,{...x&&!se?{key:`pb-${x}`}:{},rtl:C,theme:X,delay:s,isRunning:t,isIn:B,closeToast:b,hide:f,type:c,style:E,className:m,controlledProgress:se,progress:T||0})))},bs=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},Wy=ps(bs("bounce",!0));ps(bs("slide",!0)),ps(bs("zoom")),ps(bs("flip"));const Hy={position:"top-right",transition:Wy,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function zy(e){let t={...Hy,...e};const n=e.stacked,[r,o]=S.useState(!0),i=S.useRef(null),{getToastToRender:a,isToastActive:l,count:s}=Ly(t),{className:u,style:c,rtl:f,containerId:b}=t;function y(d){const p=Qr("Toastify__toast-container",`Toastify__toast-container--${d}`,{"Toastify__toast-container--rtl":f});return Ln(u)?u({position:d,rtl:f,defaultClassName:p}):Qr(p,fs(u))}function v(){n&&(o(!0),at.play())}return Vy(()=>{if(n){var d;const p=i.current.querySelectorAll('[data-in="true"]'),h=12,g=(d=t.position)==null?void 0:d.includes("top");let m=0,E=0;Array.from(p).reverse().forEach((x,A)=>{const T=x;T.classList.add("Toastify__toast--stacked"),A>0&&(T.dataset.collapsed=`${r}`),T.dataset.pos||(T.dataset.pos=g?"top":"bot");const C=m*(r?.2:1)+(r?0:h*A);T.style.setProperty("--y",`${g?C:-1*C}px`),T.style.setProperty("--g",`${h}`),T.style.setProperty("--s",""+(1-(r?E:0))),m+=T.offsetHeight,E+=.025})}},[r,s,n]),S.createElement("div",{ref:i,className:"Toastify",id:b,onMouseEnter:()=>{n&&(o(!1),at.pause())},onMouseLeave:v},a((d,p)=>{const h=p.length?{...c}:{...c,pointerEvents:"none"};return S.createElement("div",{className:y(d),style:h,key:`container-${d}`},p.map(g=>{let{content:m,props:E}=g;return S.createElement(Gy,{...E,stacked:n,collapseAll:v,isIn:l(E.toastId,E.containerId),style:E.style,key:`toast-${E.key}`},m)}))}))}var mu={exports:{}},bu={};/**
|
|
31
31
|
* @license React
|
|
32
32
|
* use-sync-external-store-with-selector.production.min.js
|
|
33
33
|
*
|
|
@@ -35,7 +35,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
35
35
|
*
|
|
36
36
|
* This source code is licensed under the MIT license found in the
|
|
37
37
|
* LICENSE file in the root directory of this source tree.
|
|
38
|
-
*/var Uf;function Xy(){if(Uf)return bu;Uf=1;var e=S;function t(
|
|
38
|
+
*/var Uf;function Xy(){if(Uf)return bu;Uf=1;var e=S;function t(s,u){return s===u&&(s!==0||1/s===1/u)||s!==s&&u!==u}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,o=e.useRef,i=e.useEffect,a=e.useMemo,l=e.useDebugValue;return bu.useSyncExternalStoreWithSelector=function(s,u,c,f,b){var y=o(null);if(y.current===null){var v={hasValue:!1,value:null};y.current=v}else v=y.current;y=a(function(){function p(x){if(!h){if(h=!0,g=x,x=f(x),b!==void 0&&v.hasValue){var A=v.value;if(b(A,x))return m=A}return m=x}if(A=m,n(g,x))return A;var T=f(x);return b!==void 0&&b(A,T)?A:(g=x,m=T)}var h=!1,g,m,E=c===void 0?null:c;return[function(){return p(u())},E===null?void 0:function(){return p(E())}]},[u,c,f,b]);var d=r(s,y[0],y[1]);return i(function(){v.hasValue=!0,v.value=d},[d]),l(d),d},bu}var vu={};/**
|
|
39
39
|
* @license React
|
|
40
40
|
* use-sync-external-store-with-selector.development.js
|
|
41
41
|
*
|
|
@@ -43,28 +43,28 @@ React keys must be passed directly to JSX without using spread:
|
|
|
43
43
|
*
|
|
44
44
|
* This source code is licensed under the MIT license found in the
|
|
45
45
|
* LICENSE file in the root directory of this source tree.
|
|
46
|
-
*/var qf;function Zy(){return qf||(qf=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=S;function t(u,c){return u===c&&(u!==0||1/u===1/c)||u!==u&&c!==c}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,o=e.useRef,i=e.useEffect,a=e.useMemo,
|
|
47
|
-
Selectors that return a new reference (such as an object or an array) should be memoized: https://redux.js.org/usage/deriving-data-selectors#optimizing-selectors-with-memoization`,{state:
|
|
48
|
-
Selectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.`,{stack:b})}v.current&&(v.current=!1)}return p}}[r.name],[r,c,a.stabilityCheck]),g=Kf(l.addNestedSub,s.getState,u||s.getState,y,i);return Fn.useDebugValue(g),g};return Object.assign(n,{withTypes:()=>n}),n}var Ky=$y();function e1(e){e()}function t1(){let e=null,t=null;return{clear(){e=null,t=null},notify(){e1(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!r||e===null||(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var ep={notify(){},get:()=>[]};function n1(e,t){let n,r=ep,o=0,i=!1;function a(f){c();const p=r.subscribe(f);let h=!1;return()=>{h||(h=!0,p(),d())}}function s(){r.notify()}function l(){g.onStateChange&&g.onStateChange()}function u(){return i}function c(){o++,n||(n=e.subscribe(l),r=t1())}function d(){o--,n&&o===0&&(n(),n=void 0,r.clear(),r=ep)}function v(){i||(i=!0,c())}function y(){i&&(i=!1,d())}const g={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:u,trySubscribe:v,tryUnsubscribe:y,getListeners:()=>r};return g}var r1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",o1=typeof navigator<"u"&&navigator.product==="ReactNative",i1=r1||o1?Fn.useLayoutEffect:Fn.useEffect;function a1({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",identityFunctionCheck:i="once"}){const a=Fn.useMemo(()=>{const u=n1(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:i}},[e,r,o,i]),s=Fn.useMemo(()=>e.getState(),[e]);i1(()=>{const{subscription:u}=a;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),s!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[a,s]);const l=t||$r;return Fn.createElement(l.Provider,{value:a},n)}var s1=a1;function tp(e=$r){const t=e===$r?$f:yu(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var l1=tp();function u1(e=$r){const t=e===$r?l1:tp(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var c1=u1();Jy(Yy.useSyncExternalStoreWithSelector);function en(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 d1=typeof Symbol=="function"&&Symbol.observable||"@@observable",np=d1,Eu=()=>Math.random().toString(36).substring(7).split("").join("."),f1={INIT:`@@redux/INIT${Eu()}`,REPLACE:`@@redux/REPLACE${Eu()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Eu()}`},No=f1;function aa(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function p1(e){if(e===void 0)return"undefined";if(e===null)return"null";const t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(m1(e))return"date";if(g1(e))return"error";const n=h1(e);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function h1(e){return typeof e.constructor=="function"?e.constructor.name:null}function g1(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function m1(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Kr(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=p1(e)),t}function rp(e,t,n){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?en(2):`Expected the root reducer to be a function. Instead, received: '${Kr(e)}'`);if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?en(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?en(1):`Expected the enhancer to be a function. Instead, received: '${Kr(n)}'`);return n(rp)(e,t)}let r=e,o=t,i=new Map,a=i,s=0,l=!1;function u(){a===i&&(a=new Map,i.forEach((p,h)=>{a.set(h,p)}))}function c(){if(l)throw new Error(process.env.NODE_ENV==="production"?en(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function d(p){if(typeof p!="function")throw new Error(process.env.NODE_ENV==="production"?en(4):`Expected the listener to be a function. Instead, received: '${Kr(p)}'`);if(l)throw new Error(process.env.NODE_ENV==="production"?en(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let h=!0;u();const m=s++;return a.set(m,p),function(){if(h){if(l)throw new Error(process.env.NODE_ENV==="production"?en(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");h=!1,u(),a.delete(m),i=null}}}function v(p){if(!aa(p))throw new Error(process.env.NODE_ENV==="production"?en(7):`Actions must be plain objects. Instead, the actual type was: '${Kr(p)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof p.type>"u")throw new Error(process.env.NODE_ENV==="production"?en(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof p.type!="string")throw new Error(process.env.NODE_ENV==="production"?en(17):`Action "type" property must be a string. Instead, the actual type was: '${Kr(p.type)}'. Value was: '${p.type}' (stringified)`);if(l)throw new Error(process.env.NODE_ENV==="production"?en(9):"Reducers may not dispatch actions.");try{l=!0,o=r(o,p)}finally{l=!1}return(i=a).forEach(m=>{m()}),p}function y(p){if(typeof p!="function")throw new Error(process.env.NODE_ENV==="production"?en(10):`Expected the nextReducer to be a function. Instead, received: '${Kr(p)}`);r=p,v({type:No.REPLACE})}function g(){const p=d;return{subscribe(h){if(typeof h!="object"||h===null)throw new Error(process.env.NODE_ENV==="production"?en(11):`Expected the observer to be an object. Instead, received: '${Kr(h)}'`);function m(){const E=h;E.next&&E.next(c())}return m(),{unsubscribe:p(m)}},[np](){return this}}}return v({type:No.INIT}),{dispatch:v,subscribe:d,getState:c,replaceReducer:y,[np]:g}}function op(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function b1(e,t,n,r){const o=Object.keys(t),i=n&&n.type===No.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(o.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!aa(e))return`The ${i} has unexpected type of "${Kr(e)}". Expected argument to be an object with the following keys: "${o.join('", "')}"`;const a=Object.keys(e).filter(s=>!t.hasOwnProperty(s)&&!r[s]);if(a.forEach(s=>{r[s]=!0}),!(n&&n.type===No.REPLACE)&&a.length>0)return`Unexpected ${a.length>1?"keys":"key"} "${a.join('", "')}" found in ${i}. Expected to find one of the known reducer keys instead: "${o.join('", "')}". Unexpected keys will be ignored.`}function v1(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:No.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?en(12):`The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof n(void 0,{type:No.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?en(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${No.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function ip(e){const t=Object.keys(e),n={};for(let a=0;a<t.length;a++){const s=t[a];process.env.NODE_ENV!=="production"&&typeof e[s]>"u"&&op(`No reducer provided for key "${s}"`),typeof e[s]=="function"&&(n[s]=e[s])}const r=Object.keys(n);let o;process.env.NODE_ENV!=="production"&&(o={});let i;try{v1(n)}catch(a){i=a}return function(s={},l){if(i)throw i;if(process.env.NODE_ENV!=="production"){const d=b1(s,n,l,o);d&&op(d)}let u=!1;const c={};for(let d=0;d<r.length;d++){const v=r[d],y=n[v],g=s[v],f=y(g,l);if(typeof f>"u"){const p=l&&l.type;throw new Error(process.env.NODE_ENV==="production"?en(14):`When called with an action of type ${p?`"${String(p)}"`:"(unknown type)"}, the slice reducer for key "${v}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}c[v]=f,u=u||f!==g}return u=u||r.length!==Object.keys(s).length,u?c:s}}function vs(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function y1(...e){return t=>(n,r)=>{const o=t(n,r);let i=()=>{throw new Error(process.env.NODE_ENV==="production"?en(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const a={getState:o.getState,dispatch:(l,...u)=>i(l,...u)},s=e.map(l=>l(a));return i=vs(...s)(o.dispatch),{...o,dispatch:i}}}function ap(e){return aa(e)&&"type"in e&&typeof e.type=="string"}var sp=Symbol.for("immer-nothing"),lp=Symbol.for("immer-draftable"),Mn=Symbol.for("immer-state"),E1=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function xn(e,...t){if(process.env.NODE_ENV!=="production"){const n=E1[e],r=typeof n=="function"?n.apply(null,t):n;throw new Error(`[Immer] ${r}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ai=Object.getPrototypeOf;function Do(e){return!!e&&!!e[Mn]}function Br(e){var t;return e?up(e)||Array.isArray(e)||!!e[lp]||!!((t=e.constructor)!=null&&t[lp])||xs(e)||Cs(e):!1}var x1=Object.prototype.constructor.toString();function up(e){if(!e||typeof e!="object")return!1;const t=ai(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===x1}function ys(e,t){Es(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Es(e){const t=e[Mn];return t?t.type_:Array.isArray(e)?1:xs(e)?2:Cs(e)?3:0}function xu(e,t){return Es(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function cp(e,t,n){const r=Es(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function C1(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function xs(e){return e instanceof Map}function Cs(e){return e instanceof Set}function Po(e){return e.copy_||e.base_}function Cu(e,t){if(xs(e))return new Map(e);if(Cs(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=up(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[Mn];let o=Reflect.ownKeys(r);for(let i=0;i<o.length;i++){const a=o[i],s=r[a];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(r[a]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[a]})}return Object.create(ai(e),r)}else{const r=ai(e);if(r!==null&&n)return{...e};const o=Object.create(r);return Object.assign(o,e)}}function wu(e,t=!1){return ws(e)||Do(e)||!Br(e)||(Es(e)>1&&(e.set=e.add=e.clear=e.delete=w1),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>wu(r,!0))),e}function w1(){xn(2)}function ws(e){return Object.isFrozen(e)}var I1={};function ko(e){const t=I1[e];return t||xn(0,e),t}var sa;function dp(){return sa}function S1(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function fp(e,t){t&&(ko("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Iu(e){Su(e),e.drafts_.forEach(T1),e.drafts_=null}function Su(e){e===sa&&(sa=e.parent_)}function pp(e){return sa=S1(sa,e)}function T1(e){const t=e[Mn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function hp(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Mn].modified_&&(Iu(t),xn(4)),Br(e)&&(e=Is(t,e),t.parent_||Ss(t,e)),t.patches_&&ko("Patches").generateReplacementPatches_(n[Mn].base_,e,t.patches_,t.inversePatches_)):e=Is(t,n,[]),Iu(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==sp?e:void 0}function Is(e,t,n){if(ws(t))return t;const r=t[Mn];if(!r)return ys(t,(o,i)=>gp(e,r,t,o,i,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return Ss(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const o=r.copy_;let i=o,a=!1;r.type_===3&&(i=new Set(o),o.clear(),a=!0),ys(i,(s,l)=>gp(e,r,o,s,l,n,a)),Ss(e,o,!1),n&&e.patches_&&ko("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function gp(e,t,n,r,o,i,a){if(process.env.NODE_ENV!=="production"&&o===n&&xn(5),Do(o)){const s=i&&t&&t.type_!==3&&!xu(t.assigned_,r)?i.concat(r):void 0,l=Is(e,o,s);if(cp(n,r,l),Do(l))e.canAutoFreeze_=!1;else return}else a&&n.add(o);if(Br(o)&&!ws(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Is(e,o),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&Ss(e,o)}}function Ss(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&wu(t,n)}function A1(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:dp(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=Tu;n&&(o=[r],i=la);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return r.draft_=s,r.revoke_=a,s}var Tu={get(e,t){if(t===Mn)return e;const n=Po(e);if(!xu(n,t))return _1(e,n,t);const r=n[t];return e.finalized_||!Br(r)?r:r===Au(e.base_,t)?(Ou(e),e.copy_[t]=Ru(r,e)):r},has(e,t){return t in Po(e)},ownKeys(e){return Reflect.ownKeys(Po(e))},set(e,t,n){const r=mp(Po(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=Au(Po(e),t),i=o==null?void 0:o[Mn];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(C1(n,o)&&(n!==void 0||xu(e.base_,t)))return!0;Ou(e),_u(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Au(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Ou(e),_u(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Po(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){xn(11)},getPrototypeOf(e){return ai(e.base_)},setPrototypeOf(){xn(12)}},la={};ys(Tu,(e,t)=>{la[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),la.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&xn(13),la.set.call(this,e,t,void 0)},la.set=function(e,t,n){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&xn(14),Tu.set.call(this,e[0],t,n,e[0])};function Au(e,t){const n=e[Mn];return(n?Po(n):e)[t]}function _1(e,t,n){var o;const r=mp(t,n);return r?"value"in r?r.value:(o=r.get)==null?void 0:o.call(e.draft_):void 0}function mp(e,t){if(!(t in e))return;let n=ai(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=ai(n)}}function _u(e){e.modified_||(e.modified_=!0,e.parent_&&_u(e.parent_))}function Ou(e){e.copy_||(e.copy_=Cu(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var O1=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const i=n;n=t;const a=this;return function(l=i,...u){return a.produce(l,c=>n.call(this,c,...u))}}typeof n!="function"&&xn(6),r!==void 0&&typeof r!="function"&&xn(7);let o;if(Br(t)){const i=pp(this),a=Ru(t,void 0);let s=!0;try{o=n(a),s=!1}finally{s?Iu(i):Su(i)}return fp(i,r),hp(o,i)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===sp&&(o=void 0),this.autoFreeze_&&wu(o,!0),r){const i=[],a=[];ko("Patches").generateReplacementPatches_(t,o,i,a),r(i,a)}return o}else xn(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...s)=>this.produceWithPatches(a,l=>t(l,...s));let r,o;return[this.produce(t,n,(a,s)=>{r=a,o=s}),r,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Br(e)||xn(8),Do(e)&&(e=R1(e));const t=pp(this),n=Ru(e,void 0);return n[Mn].isManual_=!0,Su(t),n}finishDraft(e,t){const n=e&&e[Mn];(!n||!n.isManual_)&&xn(9);const{scope_:r}=n;return fp(r,t),hp(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const r=ko("Patches").applyPatches_;return Do(e)?r(e,t):this.produce(e,o=>r(o,t))}};function Ru(e,t){const n=xs(e)?ko("MapSet").proxyMap_(e,t):Cs(e)?ko("MapSet").proxySet_(e,t):A1(e,t);return(t?t.scope_:dp()).drafts_.push(n),n}function R1(e){return Do(e)||xn(10,e),bp(e)}function bp(e){if(!Br(e)||ws(e))return e;const t=e[Mn];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Cu(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Cu(e,!0);return ys(n,(r,o)=>{cp(n,r,bp(o))}),t&&(t.finalized_=!1),n}var Bn=new O1,vp=Bn.produce;Bn.produceWithPatches.bind(Bn),Bn.setAutoFreeze.bind(Bn),Bn.setUseStrictShallowCopy.bind(Bn),Bn.applyPatches.bind(Bn),Bn.createDraft.bind(Bn),Bn.finishDraft.bind(Bn);var N1=(e,t,n)=>{if(t.length===1&&t[0]===n){let r=!1;try{const o={};e(o)===o&&(r=!0)}catch{}if(r){let o;try{throw new Error}catch(i){({stack:o}=i)}console.warn(`The result function returned its own inputs without modification. e.g
|
|
46
|
+
*/var qf;function Zy(){return qf||(qf=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=S;function t(u,c){return u===c&&(u!==0||1/u===1/c)||u!==u&&c!==c}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,o=e.useRef,i=e.useEffect,a=e.useMemo,l=e.useDebugValue;function s(u,c,f,b,y){var v=o(null),d;v.current===null?(d={hasValue:!1,value:null},v.current=d):d=v.current;var p=a(function(){var E=!1,x,A,T=function(B){if(!E){E=!0,x=B;var U=b(B);if(y!==void 0&&d.hasValue){var G=d.value;if(y(G,U))return A=G,G}return A=U,U}var X=x,q=A;if(n(X,B))return q;var $=b(B);return y!==void 0&&y(q,$)?q:(x=B,A=$,$)},C=f===void 0?null:f,O=function(){return T(c())},M=C===null?void 0:function(){return T(C())};return[O,M]},[c,f,b,y]),h=p[0],g=p[1],m=r(u,h,g);return i(function(){d.hasValue=!0,d.value=m},[m]),l(m),m}vu.useSyncExternalStoreWithSelector=s,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),vu}process.env.NODE_ENV==="production"?mu.exports=Xy():mu.exports=Zy();var Yy=mu.exports,Fn="default"in P?P.default:P,Jf=Symbol.for("react-redux-context"),Qf=typeof globalThis<"u"?globalThis:{};function Uy(){if(!Fn.createContext)return{};const e=Qf[Jf]??(Qf[Jf]=new Map);let t=e.get(Fn.createContext);return t||(t=Fn.createContext(null),process.env.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(Fn.createContext,t)),t}var $r=Uy(),qy=()=>{throw new Error("uSES not initialized!")};function yu(e=$r){return function(){const n=Fn.useContext(e);if(process.env.NODE_ENV!=="production"&&!n)throw new Error("could not find react-redux context value; please ensure the component is wrapped in a <Provider>");return n}}var $f=yu(),Kf=qy,Jy=e=>{Kf=e},Qy=(e,t)=>e===t;function $y(e=$r){const t=e===$r?$f:yu(e),n=(r,o={})=>{const{equalityFn:i=Qy,devModeChecks:a={}}=typeof o=="function"?{equalityFn:o}:o;if(process.env.NODE_ENV!=="production"){if(!r)throw new Error("You must pass a selector to useSelector");if(typeof r!="function")throw new Error("You must pass a function as a selector to useSelector");if(typeof i!="function")throw new Error("You must pass a function as an equality function to useSelector")}const{store:l,subscription:s,getServerState:u,stabilityCheck:c,identityFunctionCheck:f}=t(),b=Fn.useRef(!0),y=Fn.useCallback({[r.name](d){const p=r(d);if(process.env.NODE_ENV!=="production"){const{identityFunctionCheck:h,stabilityCheck:g}={stabilityCheck:c,identityFunctionCheck:f,...a};if(g==="always"||g==="once"&&b.current){const m=r(d);if(!i(p,m)){let E;try{throw new Error}catch(x){({stack:E}=x)}console.warn("Selector "+(r.name||"unknown")+` returned a different result when called with the same parameters. This can lead to unnecessary rerenders.
|
|
47
|
+
Selectors that return a new reference (such as an object or an array) should be memoized: https://redux.js.org/usage/deriving-data-selectors#optimizing-selectors-with-memoization`,{state:d,selected:p,selected2:m,stack:E})}}if((h==="always"||h==="once"&&b.current)&&p===d){let m;try{throw new Error}catch(E){({stack:m}=E)}console.warn("Selector "+(r.name||"unknown")+` returned the root state when called. This can lead to unnecessary rerenders.
|
|
48
|
+
Selectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.`,{stack:m})}b.current&&(b.current=!1)}return p}}[r.name],[r,c,a.stabilityCheck]),v=Kf(s.addNestedSub,l.getState,u||l.getState,y,i);return Fn.useDebugValue(v),v};return Object.assign(n,{withTypes:()=>n}),n}var Ky=$y();function e1(e){e()}function t1(){let e=null,t=null;return{clear(){e=null,t=null},notify(){e1(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!r||e===null||(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var ep={notify(){},get:()=>[]};function n1(e,t){let n,r=ep,o=0,i=!1;function a(d){c();const p=r.subscribe(d);let h=!1;return()=>{h||(h=!0,p(),f())}}function l(){r.notify()}function s(){v.onStateChange&&v.onStateChange()}function u(){return i}function c(){o++,n||(n=e.subscribe(s),r=t1())}function f(){o--,n&&o===0&&(n(),n=void 0,r.clear(),r=ep)}function b(){i||(i=!0,c())}function y(){i&&(i=!1,f())}const v={addNestedSub:a,notifyNestedSubs:l,handleChangeWrapper:s,isSubscribed:u,trySubscribe:b,tryUnsubscribe:y,getListeners:()=>r};return v}var r1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",o1=typeof navigator<"u"&&navigator.product==="ReactNative",i1=r1||o1?Fn.useLayoutEffect:Fn.useEffect;function a1({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",identityFunctionCheck:i="once"}){const a=Fn.useMemo(()=>{const u=n1(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:i}},[e,r,o,i]),l=Fn.useMemo(()=>e.getState(),[e]);i1(()=>{const{subscription:u}=a;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),l!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[a,l]);const s=t||$r;return Fn.createElement(s.Provider,{value:a},n)}var s1=a1;function tp(e=$r){const t=e===$r?$f:yu(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var l1=tp();function u1(e=$r){const t=e===$r?l1:tp(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var c1=u1();Jy(Yy.useSyncExternalStoreWithSelector);function en(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 d1=typeof Symbol=="function"&&Symbol.observable||"@@observable",np=d1,Eu=()=>Math.random().toString(36).substring(7).split("").join("."),f1={INIT:`@@redux/INIT${Eu()}`,REPLACE:`@@redux/REPLACE${Eu()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Eu()}`},No=f1;function aa(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function p1(e){if(e===void 0)return"undefined";if(e===null)return"null";const t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(m1(e))return"date";if(g1(e))return"error";const n=h1(e);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function h1(e){return typeof e.constructor=="function"?e.constructor.name:null}function g1(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function m1(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Kr(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=p1(e)),t}function rp(e,t,n){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?en(2):`Expected the root reducer to be a function. Instead, received: '${Kr(e)}'`);if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?en(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?en(1):`Expected the enhancer to be a function. Instead, received: '${Kr(n)}'`);return n(rp)(e,t)}let r=e,o=t,i=new Map,a=i,l=0,s=!1;function u(){a===i&&(a=new Map,i.forEach((p,h)=>{a.set(h,p)}))}function c(){if(s)throw new Error(process.env.NODE_ENV==="production"?en(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function f(p){if(typeof p!="function")throw new Error(process.env.NODE_ENV==="production"?en(4):`Expected the listener to be a function. Instead, received: '${Kr(p)}'`);if(s)throw new Error(process.env.NODE_ENV==="production"?en(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let h=!0;u();const g=l++;return a.set(g,p),function(){if(h){if(s)throw new Error(process.env.NODE_ENV==="production"?en(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");h=!1,u(),a.delete(g),i=null}}}function b(p){if(!aa(p))throw new Error(process.env.NODE_ENV==="production"?en(7):`Actions must be plain objects. Instead, the actual type was: '${Kr(p)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof p.type>"u")throw new Error(process.env.NODE_ENV==="production"?en(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof p.type!="string")throw new Error(process.env.NODE_ENV==="production"?en(17):`Action "type" property must be a string. Instead, the actual type was: '${Kr(p.type)}'. Value was: '${p.type}' (stringified)`);if(s)throw new Error(process.env.NODE_ENV==="production"?en(9):"Reducers may not dispatch actions.");try{s=!0,o=r(o,p)}finally{s=!1}return(i=a).forEach(g=>{g()}),p}function y(p){if(typeof p!="function")throw new Error(process.env.NODE_ENV==="production"?en(10):`Expected the nextReducer to be a function. Instead, received: '${Kr(p)}`);r=p,b({type:No.REPLACE})}function v(){const p=f;return{subscribe(h){if(typeof h!="object"||h===null)throw new Error(process.env.NODE_ENV==="production"?en(11):`Expected the observer to be an object. Instead, received: '${Kr(h)}'`);function g(){const E=h;E.next&&E.next(c())}return g(),{unsubscribe:p(g)}},[np](){return this}}}return b({type:No.INIT}),{dispatch:b,subscribe:f,getState:c,replaceReducer:y,[np]:v}}function op(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function b1(e,t,n,r){const o=Object.keys(t),i=n&&n.type===No.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(o.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!aa(e))return`The ${i} has unexpected type of "${Kr(e)}". Expected argument to be an object with the following keys: "${o.join('", "')}"`;const a=Object.keys(e).filter(l=>!t.hasOwnProperty(l)&&!r[l]);if(a.forEach(l=>{r[l]=!0}),!(n&&n.type===No.REPLACE)&&a.length>0)return`Unexpected ${a.length>1?"keys":"key"} "${a.join('", "')}" found in ${i}. Expected to find one of the known reducer keys instead: "${o.join('", "')}". Unexpected keys will be ignored.`}function v1(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:No.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?en(12):`The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof n(void 0,{type:No.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?en(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${No.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function ip(e){const t=Object.keys(e),n={};for(let a=0;a<t.length;a++){const l=t[a];process.env.NODE_ENV!=="production"&&typeof e[l]>"u"&&op(`No reducer provided for key "${l}"`),typeof e[l]=="function"&&(n[l]=e[l])}const r=Object.keys(n);let o;process.env.NODE_ENV!=="production"&&(o={});let i;try{v1(n)}catch(a){i=a}return function(l={},s){if(i)throw i;if(process.env.NODE_ENV!=="production"){const f=b1(l,n,s,o);f&&op(f)}let u=!1;const c={};for(let f=0;f<r.length;f++){const b=r[f],y=n[b],v=l[b],d=y(v,s);if(typeof d>"u"){const p=s&&s.type;throw new Error(process.env.NODE_ENV==="production"?en(14):`When called with an action of type ${p?`"${String(p)}"`:"(unknown type)"}, the slice reducer for key "${b}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}c[b]=d,u=u||d!==v}return u=u||r.length!==Object.keys(l).length,u?c:l}}function vs(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function y1(...e){return t=>(n,r)=>{const o=t(n,r);let i=()=>{throw new Error(process.env.NODE_ENV==="production"?en(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const a={getState:o.getState,dispatch:(s,...u)=>i(s,...u)},l=e.map(s=>s(a));return i=vs(...l)(o.dispatch),{...o,dispatch:i}}}function ap(e){return aa(e)&&"type"in e&&typeof e.type=="string"}var sp=Symbol.for("immer-nothing"),lp=Symbol.for("immer-draftable"),Mn=Symbol.for("immer-state"),E1=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function xn(e,...t){if(process.env.NODE_ENV!=="production"){const n=E1[e],r=typeof n=="function"?n.apply(null,t):n;throw new Error(`[Immer] ${r}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ai=Object.getPrototypeOf;function Do(e){return!!e&&!!e[Mn]}function Br(e){var t;return e?up(e)||Array.isArray(e)||!!e[lp]||!!((t=e.constructor)!=null&&t[lp])||xs(e)||Cs(e):!1}var x1=Object.prototype.constructor.toString();function up(e){if(!e||typeof e!="object")return!1;const t=ai(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===x1}function ys(e,t){Es(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Es(e){const t=e[Mn];return t?t.type_:Array.isArray(e)?1:xs(e)?2:Cs(e)?3:0}function xu(e,t){return Es(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function cp(e,t,n){const r=Es(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function C1(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function xs(e){return e instanceof Map}function Cs(e){return e instanceof Set}function Po(e){return e.copy_||e.base_}function Cu(e,t){if(xs(e))return new Map(e);if(Cs(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=up(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[Mn];let o=Reflect.ownKeys(r);for(let i=0;i<o.length;i++){const a=o[i],l=r[a];l.writable===!1&&(l.writable=!0,l.configurable=!0),(l.get||l.set)&&(r[a]={configurable:!0,writable:!0,enumerable:l.enumerable,value:e[a]})}return Object.create(ai(e),r)}else{const r=ai(e);if(r!==null&&n)return{...e};const o=Object.create(r);return Object.assign(o,e)}}function wu(e,t=!1){return ws(e)||Do(e)||!Br(e)||(Es(e)>1&&(e.set=e.add=e.clear=e.delete=w1),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>wu(r,!0))),e}function w1(){xn(2)}function ws(e){return Object.isFrozen(e)}var I1={};function ko(e){const t=I1[e];return t||xn(0,e),t}var sa;function dp(){return sa}function S1(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function fp(e,t){t&&(ko("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Iu(e){Su(e),e.drafts_.forEach(T1),e.drafts_=null}function Su(e){e===sa&&(sa=e.parent_)}function pp(e){return sa=S1(sa,e)}function T1(e){const t=e[Mn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function hp(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Mn].modified_&&(Iu(t),xn(4)),Br(e)&&(e=Is(t,e),t.parent_||Ss(t,e)),t.patches_&&ko("Patches").generateReplacementPatches_(n[Mn].base_,e,t.patches_,t.inversePatches_)):e=Is(t,n,[]),Iu(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==sp?e:void 0}function Is(e,t,n){if(ws(t))return t;const r=t[Mn];if(!r)return ys(t,(o,i)=>gp(e,r,t,o,i,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return Ss(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const o=r.copy_;let i=o,a=!1;r.type_===3&&(i=new Set(o),o.clear(),a=!0),ys(i,(l,s)=>gp(e,r,o,l,s,n,a)),Ss(e,o,!1),n&&e.patches_&&ko("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function gp(e,t,n,r,o,i,a){if(process.env.NODE_ENV!=="production"&&o===n&&xn(5),Do(o)){const l=i&&t&&t.type_!==3&&!xu(t.assigned_,r)?i.concat(r):void 0,s=Is(e,o,l);if(cp(n,r,s),Do(s))e.canAutoFreeze_=!1;else return}else a&&n.add(o);if(Br(o)&&!ws(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Is(e,o),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&Ss(e,o)}}function Ss(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&wu(t,n)}function A1(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:dp(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=Tu;n&&(o=[r],i=la);const{revoke:a,proxy:l}=Proxy.revocable(o,i);return r.draft_=l,r.revoke_=a,l}var Tu={get(e,t){if(t===Mn)return e;const n=Po(e);if(!xu(n,t))return _1(e,n,t);const r=n[t];return e.finalized_||!Br(r)?r:r===Au(e.base_,t)?(Ou(e),e.copy_[t]=Ru(r,e)):r},has(e,t){return t in Po(e)},ownKeys(e){return Reflect.ownKeys(Po(e))},set(e,t,n){const r=mp(Po(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=Au(Po(e),t),i=o==null?void 0:o[Mn];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(C1(n,o)&&(n!==void 0||xu(e.base_,t)))return!0;Ou(e),_u(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Au(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Ou(e),_u(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Po(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){xn(11)},getPrototypeOf(e){return ai(e.base_)},setPrototypeOf(){xn(12)}},la={};ys(Tu,(e,t)=>{la[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),la.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&xn(13),la.set.call(this,e,t,void 0)},la.set=function(e,t,n){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&xn(14),Tu.set.call(this,e[0],t,n,e[0])};function Au(e,t){const n=e[Mn];return(n?Po(n):e)[t]}function _1(e,t,n){var o;const r=mp(t,n);return r?"value"in r?r.value:(o=r.get)==null?void 0:o.call(e.draft_):void 0}function mp(e,t){if(!(t in e))return;let n=ai(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=ai(n)}}function _u(e){e.modified_||(e.modified_=!0,e.parent_&&_u(e.parent_))}function Ou(e){e.copy_||(e.copy_=Cu(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var O1=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const i=n;n=t;const a=this;return function(s=i,...u){return a.produce(s,c=>n.call(this,c,...u))}}typeof n!="function"&&xn(6),r!==void 0&&typeof r!="function"&&xn(7);let o;if(Br(t)){const i=pp(this),a=Ru(t,void 0);let l=!0;try{o=n(a),l=!1}finally{l?Iu(i):Su(i)}return fp(i,r),hp(o,i)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===sp&&(o=void 0),this.autoFreeze_&&wu(o,!0),r){const i=[],a=[];ko("Patches").generateReplacementPatches_(t,o,i,a),r(i,a)}return o}else xn(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...l)=>this.produceWithPatches(a,s=>t(s,...l));let r,o;return[this.produce(t,n,(a,l)=>{r=a,o=l}),r,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Br(e)||xn(8),Do(e)&&(e=R1(e));const t=pp(this),n=Ru(e,void 0);return n[Mn].isManual_=!0,Su(t),n}finishDraft(e,t){const n=e&&e[Mn];(!n||!n.isManual_)&&xn(9);const{scope_:r}=n;return fp(r,t),hp(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const r=ko("Patches").applyPatches_;return Do(e)?r(e,t):this.produce(e,o=>r(o,t))}};function Ru(e,t){const n=xs(e)?ko("MapSet").proxyMap_(e,t):Cs(e)?ko("MapSet").proxySet_(e,t):A1(e,t);return(t?t.scope_:dp()).drafts_.push(n),n}function R1(e){return Do(e)||xn(10,e),bp(e)}function bp(e){if(!Br(e)||ws(e))return e;const t=e[Mn];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Cu(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Cu(e,!0);return ys(n,(r,o)=>{cp(n,r,bp(o))}),t&&(t.finalized_=!1),n}var Bn=new O1,vp=Bn.produce;Bn.produceWithPatches.bind(Bn),Bn.setAutoFreeze.bind(Bn),Bn.setUseStrictShallowCopy.bind(Bn),Bn.applyPatches.bind(Bn),Bn.createDraft.bind(Bn),Bn.finishDraft.bind(Bn);var N1=(e,t,n)=>{if(t.length===1&&t[0]===n){let r=!1;try{const o={};e(o)===o&&(r=!0)}catch{}if(r){let o;try{throw new Error}catch(i){({stack:o}=i)}console.warn(`The result function returned its own inputs without modification. e.g
|
|
49
49
|
\`createSelector([state => state.todos], todos => todos)\`
|
|
50
50
|
This could lead to inefficient memoization and unnecessary re-renders.
|
|
51
|
-
Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:o})}}},D1=(e,t,n)=>{const{memoize:r,memoizeOptions:o}=t,{inputSelectorResults:i,inputSelectorResultsCopy:a}=e,
|
|
51
|
+
Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:o})}}},D1=(e,t,n)=>{const{memoize:r,memoizeOptions:o}=t,{inputSelectorResults:i,inputSelectorResultsCopy:a}=e,l=r(()=>({}),...o);if(!(l.apply(null,i)===l.apply(null,a))){let u;try{throw new Error}catch(c){({stack:u}=c)}console.warn(`An input selector returned a different result when passed same arguments.
|
|
52
52
|
This means your output selector will likely run more frequently than intended.
|
|
53
53
|
Avoid returning a new reference inside your input selector, e.g.
|
|
54
|
-
\`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:n,firstInputs:i,secondInputs:a,stack:u})}},P1={inputStabilityCheck:"once",identityFunctionCheck:"once"};function k1(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function L1(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function F1(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var yp=e=>Array.isArray(e)?e:[e];function M1(e){const t=Array.isArray(e[0])?e[0]:e;return F1(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Ep(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}var B1=(e,t)=>{const{identityFunctionCheck:n,inputStabilityCheck:r}={...P1,...t};return{identityFunctionCheck:{shouldRun:n==="always"||n==="once"&&e,run:N1},inputStabilityCheck:{shouldRun:r==="always"||r==="once"&&e,run:D1}}},j1=class{constructor(e){this.value=e}deref(){return this.value}},V1=typeof WeakRef<"u"?WeakRef:j1,G1=0,xp=1;function Ts(){return{s:G1,v:void 0,o:null,p:null}}function Cp(e,t={}){let n=Ts();const{resultEqualityCheck:r}=t;let o,i=0;function a(){var
|
|
54
|
+
\`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:n,firstInputs:i,secondInputs:a,stack:u})}},P1={inputStabilityCheck:"once",identityFunctionCheck:"once"};function k1(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function L1(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function F1(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var yp=e=>Array.isArray(e)?e:[e];function M1(e){const t=Array.isArray(e[0])?e[0]:e;return F1(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Ep(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}var B1=(e,t)=>{const{identityFunctionCheck:n,inputStabilityCheck:r}={...P1,...t};return{identityFunctionCheck:{shouldRun:n==="always"||n==="once"&&e,run:N1},inputStabilityCheck:{shouldRun:r==="always"||r==="once"&&e,run:D1}}},j1=class{constructor(e){this.value=e}deref(){return this.value}},V1=typeof WeakRef<"u"?WeakRef:j1,G1=0,xp=1;function Ts(){return{s:G1,v:void 0,o:null,p:null}}function Cp(e,t={}){let n=Ts();const{resultEqualityCheck:r}=t;let o,i=0;function a(){var f;let l=n;const{length:s}=arguments;for(let b=0,y=s;b<y;b++){const v=arguments[b];if(typeof v=="function"||typeof v=="object"&&v!==null){let d=l.o;d===null&&(l.o=d=new WeakMap);const p=d.get(v);p===void 0?(l=Ts(),d.set(v,l)):l=p}else{let d=l.p;d===null&&(l.p=d=new Map);const p=d.get(v);p===void 0?(l=Ts(),d.set(v,l)):l=p}}const u=l;let c;if(l.s===xp)c=l.v;else if(c=e.apply(null,arguments),i++,r){const b=((f=o==null?void 0:o.deref)==null?void 0:f.call(o))??o;b!=null&&r(b,c)&&(c=b,i!==0&&i--),o=typeof c=="object"&&c!==null||typeof c=="function"?new V1(c):c}return u.s=xp,u.v=c,c}return a.clearCache=()=>{n=Ts(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function W1(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...o)=>{let i=0,a=0,l,s={},u=o.pop();typeof u=="object"&&(s=u,u=o.pop()),k1(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const c={...n,...s},{memoize:f,memoizeOptions:b=[],argsMemoize:y=Cp,argsMemoizeOptions:v=[],devModeChecks:d={}}=c,p=yp(b),h=yp(v),g=M1(o),m=f(function(){return i++,u.apply(null,arguments)},...p);let E=!0;const x=y(function(){a++;const T=Ep(g,arguments);if(l=m.apply(null,T),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:C,inputStabilityCheck:O}=B1(E,d);if(C.shouldRun&&C.run(u,T,l),O.shouldRun){const M=Ep(g,arguments);O.run({inputSelectorResults:T,inputSelectorResultsCopy:M},{memoize:f,memoizeOptions:p},arguments)}E&&(E=!1)}return l},...h);return Object.assign(x,{resultFunc:u,memoizedResultFunc:m,dependencies:g,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>l,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:f,argsMemoize:y})};return Object.assign(r,{withTypes:()=>r}),r}var H1=W1(Cp),z1=Object.assign((e,t=H1)=>{L1(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(i=>e[i]);return t(r,(...i)=>i.reduce((a,l,s)=>(a[n[s]]=l,a),{}))},{withTypes:()=>z1});function wp(e){return({dispatch:n,getState:r})=>o=>i=>typeof i=="function"?i(n,r,e):o(i)}var X1=wp(),Z1=wp,Y1=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?vs:vs.apply(null,arguments)},Ip=e=>e&&typeof e.match=="function";function ua(e,t){function n(...r){if(t){let o=t(...r);if(!o)throw new Error(process.env.NODE_ENV==="production"?vt(0):"prepareAction did not return an object");return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>ap(r)&&r.type===e,n}function U1(e){return typeof e=="function"&&"type"in e&&Ip(e)}function q1(e){const t=e?`${e}`.split("/"):[],n=t[t.length-1]||"actionCreator";return`Detected an action creator with type "${e||"unknown"}" being dispatched.
|
|
55
55
|
Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${n}())\` instead of \`dispatch(${n})\`. This is necessary even if the action has no payload.`}function J1(e={}){if(process.env.NODE_ENV==="production")return()=>n=>r=>n(r);const{isActionCreator:t=U1}=e;return()=>n=>r=>(t(r)&&console.warn(q1(r.type)),n(r))}function Sp(e,t){let n=0;return{measureTime(r){const o=Date.now();try{return r()}finally{const i=Date.now();n+=i-o}},warnIfExceeded(){n>e&&console.warn(`${t} took ${n}ms, which is more than the warning threshold of ${e}ms.
|
|
56
56
|
If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.
|
|
57
|
-
It is disabled in production builds, so you don't need to worry about that.`)}}}var Tp=class ls extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,ls.prototype)}static get[Symbol.species](){return ls}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new ls(...t[0].concat(this)):new ls(...t.concat(this))}};function Ap(e){return Br(e)?vp(e,()=>{}):e}function _p(e,t,n){if(e.has(t)){let o=e.get(t);return n.update&&(o=n.update(o,t,e),e.set(t,o)),o}if(!n.insert)throw new Error(process.env.NODE_ENV==="production"?vt(10):"No insert provided for key not already in map");const r=n.insert(t,e);return e.set(t,r),r}function Q1(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function $1(e,t,n){const r=Op(e,t,n);return{detectMutations(){return Rp(e,t,r,n)}}}function Op(e,t=[],n,r="",o=new Set){const i={value:n};if(!e(n)&&!o.has(n)){o.add(n),i.children={};for(const a in n){const
|
|
57
|
+
It is disabled in production builds, so you don't need to worry about that.`)}}}var Tp=class ls extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,ls.prototype)}static get[Symbol.species](){return ls}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new ls(...t[0].concat(this)):new ls(...t.concat(this))}};function Ap(e){return Br(e)?vp(e,()=>{}):e}function _p(e,t,n){if(e.has(t)){let o=e.get(t);return n.update&&(o=n.update(o,t,e),e.set(t,o)),o}if(!n.insert)throw new Error(process.env.NODE_ENV==="production"?vt(10):"No insert provided for key not already in map");const r=n.insert(t,e);return e.set(t,r),r}function Q1(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function $1(e,t,n){const r=Op(e,t,n);return{detectMutations(){return Rp(e,t,r,n)}}}function Op(e,t=[],n,r="",o=new Set){const i={value:n};if(!e(n)&&!o.has(n)){o.add(n),i.children={};for(const a in n){const l=r?r+"."+a:a;t.length&&t.indexOf(l)!==-1||(i.children[a]=Op(e,t,n[a],l))}}return i}function Rp(e,t=[],n,r,o=!1,i=""){const a=n?n.value:void 0,l=a===r;if(o&&!l&&!Number.isNaN(r))return{wasMutated:!0,path:i};if(e(a)||e(r))return{wasMutated:!1};const s={};for(let c in n.children)s[c]=!0;for(let c in r)s[c]=!0;const u=t.length>0;for(let c in s){const f=i?i+"."+c:c;if(u&&t.some(v=>v instanceof RegExp?v.test(f):f===v))continue;const b=Rp(e,t,n.children[c],r[c],l,f);if(b.wasMutated)return b}return{wasMutated:!1}}function K1(e={}){if(process.env.NODE_ENV==="production")return()=>t=>n=>t(n);{let t=function(l,s,u,c){return JSON.stringify(l,n(s,c),u)},n=function(l,s){let u=[],c=[];return s||(s=function(f,b){return u[0]===b?"[Circular ~]":"[Circular ~."+c.slice(0,u.indexOf(b)).join(".")+"]"}),function(f,b){if(u.length>0){var y=u.indexOf(this);~y?u.splice(y+1):u.push(this),~y?c.splice(y,1/0,f):c.push(f),~u.indexOf(b)&&(b=s.call(this,f,b))}else u.push(b);return l==null?b:l.call(this,f,b)}},{isImmutable:r=Q1,ignoredPaths:o,warnAfter:i=32}=e;const a=$1.bind(null,r,o);return({getState:l})=>{let s=l(),u=a(s),c;return f=>b=>{const y=Sp(i,"ImmutableStateInvariantMiddleware");y.measureTime(()=>{if(s=l(),c=u.detectMutations(),u=a(s),c.wasMutated)throw new Error(process.env.NODE_ENV==="production"?vt(19):`A state mutation was detected between dispatches, in the path '${c.path||""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)});const v=f(b);return y.measureTime(()=>{if(s=l(),c=u.detectMutations(),u=a(s),c.wasMutated)throw new Error(process.env.NODE_ENV==="production"?vt(20):`A state mutation was detected inside a dispatch, in the path: ${c.path||""}. Take a look at the reducer(s) handling the action ${t(b)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)}),y.warnIfExceeded(),v}}}}function Np(e){const t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||aa(e)}function Nu(e,t="",n=Np,r,o=[],i){let a;if(!n(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null||i!=null&&i.has(e))return!1;const l=r!=null?r(e):Object.entries(e),s=o.length>0;for(const[u,c]of l){const f=t?t+"."+u:u;if(!(s&&o.some(y=>y instanceof RegExp?y.test(f):f===y))){if(!n(c))return{keyPath:f,value:c};if(typeof c=="object"&&(a=Nu(c,f,n,r,o,i),a))return a}}return i&&Dp(e)&&i.add(e),!1}function Dp(e){if(!Object.isFrozen(e))return!1;for(const t of Object.values(e))if(!(typeof t!="object"||t===null)&&!Dp(t))return!1;return!0}function eE(e={}){if(process.env.NODE_ENV==="production")return()=>t=>n=>t(n);{const{isSerializable:t=Np,getEntries:n,ignoredActions:r=[],ignoredActionPaths:o=["meta.arg","meta.baseQueryMeta"],ignoredPaths:i=[],warnAfter:a=32,ignoreState:l=!1,ignoreActions:s=!1,disableCache:u=!1}=e,c=!u&&WeakSet?new WeakSet:void 0;return f=>b=>y=>{if(!ap(y))return b(y);const v=b(y),d=Sp(a,"SerializableStateInvariantMiddleware");return!s&&!(r.length&&r.indexOf(y.type)!==-1)&&d.measureTime(()=>{const p=Nu(y,"",t,n,o,c);if(p){const{keyPath:h,value:g}=p;console.error(`A non-serializable value was detected in an action, in the path: \`${h}\`. Value:`,g,`
|
|
58
58
|
Take a look at the logic that dispatched this action: `,y,`
|
|
59
59
|
(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,`
|
|
60
|
-
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),
|
|
60
|
+
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),l||(d.measureTime(()=>{const p=f.getState(),h=Nu(p,"",t,n,i,c);if(h){const{keyPath:g,value:m}=h;console.error(`A non-serializable value was detected in the state, in the path: \`${g}\`. Value:`,m,`
|
|
61
61
|
Take a look at the reducer(s) handling this action type: ${y.type}.
|
|
62
|
-
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),f.warnIfExceeded()),g}}}function As(e){return typeof e=="boolean"}var tE=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:o=!0,actionCreatorCheck:i=!0}=t??{};let a=new Tp;if(n&&(As(n)?a.push(X1):a.push(Z1(n.extraArgument))),process.env.NODE_ENV!=="production"){if(r){let s={};As(r)||(s=r),a.unshift(K1(s))}if(o){let s={};As(o)||(s=o),a.push(eE(s))}if(i){let s={};As(i)||(s=i),a.unshift(J1(s))}}return a},nE="RTK_autoBatch",Pp=e=>t=>{setTimeout(t,e)},rE=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Pp(10),oE=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let o=!0,i=!1,a=!1;const s=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?rE:e.type==="callback"?e.queueNotification:Pp(e.timeout),u=()=>{a=!1,i&&(i=!1,s.forEach(c=>c()))};return Object.assign({},r,{subscribe(c){const d=()=>o&&c(),v=r.subscribe(d);return s.add(c),()=>{v(),s.delete(c)}},dispatch(c){var d;try{return o=!((d=c==null?void 0:c.meta)!=null&&d[nE]),i=!o,i&&(a||(a=!0,l(u))),r.dispatch(c)}finally{o=!0}}})},iE=e=>function(n){const{autoBatch:r=!0}=n??{};let o=new Tp(e);return r&&o.push(oE(typeof r=="object"?r:void 0)),o};function aE(e){const t=tE(),{reducer:n=void 0,middleware:r,devTools:o=!0,preloadedState:i=void 0,enhancers:a=void 0}=e||{};let s;if(typeof n=="function")s=n;else if(aa(n))s=ip(n);else throw new Error(process.env.NODE_ENV==="production"?vt(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(process.env.NODE_ENV!=="production"&&r&&typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?vt(2):"`middleware` field must be a callback");let l;if(typeof r=="function"){if(l=r(t),process.env.NODE_ENV!=="production"&&!Array.isArray(l))throw new Error(process.env.NODE_ENV==="production"?vt(3):"when using a middleware builder function, an array of middleware must be returned")}else l=t();if(process.env.NODE_ENV!=="production"&&l.some(g=>typeof g!="function"))throw new Error(process.env.NODE_ENV==="production"?vt(4):"each middleware provided to configureStore must be a function");let u=vs;o&&(u=Y1({trace:process.env.NODE_ENV!=="production",...typeof o=="object"&&o}));const c=y1(...l),d=iE(c);if(process.env.NODE_ENV!=="production"&&a&&typeof a!="function")throw new Error(process.env.NODE_ENV==="production"?vt(5):"`enhancers` field must be a callback");let v=typeof a=="function"?a(d):d();if(process.env.NODE_ENV!=="production"&&!Array.isArray(v))throw new Error(process.env.NODE_ENV==="production"?vt(6):"`enhancers` callback must return an array");if(process.env.NODE_ENV!=="production"&&v.some(g=>typeof g!="function"))throw new Error(process.env.NODE_ENV==="production"?vt(7):"each enhancer provided to configureStore must be a function");process.env.NODE_ENV!=="production"&&l.length&&!v.includes(c)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const y=u(...v);return rp(s,i,y)}function kp(e){const t={},n=[];let r;const o={addCase(i,a){if(process.env.NODE_ENV!=="production"){if(n.length>0)throw new Error(process.env.NODE_ENV==="production"?vt(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(r)throw new Error(process.env.NODE_ENV==="production"?vt(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const s=typeof i=="string"?i:i.type;if(!s)throw new Error(process.env.NODE_ENV==="production"?vt(28):"`builder.addCase` cannot be called with an empty action type");if(s in t)throw new Error(process.env.NODE_ENV==="production"?vt(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${s}'`);return t[s]=a,o},addMatcher(i,a){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?vt(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return n.push({matcher:i,reducer:a}),o},addDefaultCase(i){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?vt(31):"`builder.addDefaultCase` can only be called once");return r=i,o}};return e(o),[t,n,r]}function sE(e){return typeof e=="function"}function lE(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?vt(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[n,r,o]=kp(t),i;if(sE(e))i=()=>Ap(e());else{const s=Ap(e);i=()=>s}function a(s=i(),l){let u=[n[l.type],...r.filter(({matcher:c})=>c(l)).map(({reducer:c})=>c)];return u.filter(c=>!!c).length===0&&(u=[o]),u.reduce((c,d)=>{if(d)if(Do(c)){const y=d(c,l);return y===void 0?c:y}else{if(Br(c))return vp(c,v=>d(v,l));{const v=d(c,l);if(v===void 0){if(c===null)return c;throw new Error(process.env.NODE_ENV==="production"?vt(9):"A case reducer on a non-draftable value must not return undefined")}return v}}return c},s)}return a.getInitialState=i,a}var uE=(e,t)=>Ip(e)?e.match(t):e(t);function cE(...e){return t=>e.some(n=>uE(n,t))}var dE="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",fE=(e=21)=>{let t="",n=e;for(;n--;)t+=dE[Math.random()*64|0];return t},pE=["name","message","stack","code"],Du=class{constructor(e,t){Of(this,"_type");this.payload=e,this.meta=t}},Lp=class{constructor(e,t){Of(this,"_type");this.payload=e,this.meta=t}},hE=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of pE)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},Cn=(()=>{function e(t,n,r){const o=ua(t+"/fulfilled",(l,u,c,d)=>({payload:l,meta:{...d||{},arg:c,requestId:u,requestStatus:"fulfilled"}})),i=ua(t+"/pending",(l,u,c)=>({payload:void 0,meta:{...c||{},arg:u,requestId:l,requestStatus:"pending"}})),a=ua(t+"/rejected",(l,u,c,d,v)=>({payload:d,error:(r&&r.serializeError||hE)(l||"Rejected"),meta:{...v||{},arg:c,requestId:u,rejectedWithValue:!!d,requestStatus:"rejected",aborted:(l==null?void 0:l.name)==="AbortError",condition:(l==null?void 0:l.name)==="ConditionError"}}));function s(l){return(u,c,d)=>{const v=r!=null&&r.idGenerator?r.idGenerator(l):fE(),y=new AbortController;let g,f;function p(m){f=m,y.abort()}const h=async function(){var E,x;let m;try{let T=(E=r==null?void 0:r.condition)==null?void 0:E.call(r,l,{getState:c,extra:d});if(mE(T)&&(T=await T),T===!1||y.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const A=new Promise((C,O)=>{g=()=>{O({name:"AbortError",message:f||"Aborted"})},y.signal.addEventListener("abort",g)});u(i(v,l,(x=r==null?void 0:r.getPendingMeta)==null?void 0:x.call(r,{requestId:v,arg:l},{getState:c,extra:d}))),m=await Promise.race([A,Promise.resolve(n(l,{dispatch:u,getState:c,extra:d,requestId:v,signal:y.signal,abort:p,rejectWithValue:(C,O)=>new Du(C,O),fulfillWithValue:(C,O)=>new Lp(C,O)})).then(C=>{if(C instanceof Du)throw C;return C instanceof Lp?o(C.payload,v,l,C.meta):o(C,v,l)})])}catch(T){m=T instanceof Du?a(null,v,l,T.payload,T.meta):a(T,v,l)}finally{g&&y.signal.removeEventListener("abort",g)}return r&&!r.dispatchConditionRejection&&a.match(m)&&m.meta.condition||u(m),m}();return Object.assign(h,{abort:p,requestId:v,arg:l,unwrap(){return h.then(gE)}})}}return Object.assign(s,{pending:i,rejected:a,fulfilled:o,settled:cE(a,o),typePrefix:t})}return e.withTypes=()=>e,e})();function gE(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function mE(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var bE=Symbol.for("rtk-slice-createasyncthunk");function vE(e,t){return`${e}/${t}`}function yE({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[bE];return function(o){const{name:i,reducerPath:a=i}=o;if(!i)throw new Error(process.env.NODE_ENV==="production"?vt(11):"`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&o.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const s=(typeof o.reducers=="function"?o.reducers(xE()):o.reducers)||{},l=Object.keys(s),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(b,E){const x=typeof b=="string"?b:b.type;if(!x)throw new Error(process.env.NODE_ENV==="production"?vt(12):"`context.addCase` cannot be called with an empty action type");if(x in u.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?vt(13):"`context.addCase` cannot be called with two reducers for the same action type: "+x);return u.sliceCaseReducersByType[x]=E,c},addMatcher(b,E){return u.sliceMatchers.push({matcher:b,reducer:E}),c},exposeAction(b,E){return u.actionCreators[b]=E,c},exposeCaseReducer(b,E){return u.sliceCaseReducersByName[b]=E,c}};l.forEach(b=>{const E=s[b],x={reducerName:b,type:vE(i,b),createNotation:typeof o.reducers=="function"};wE(E)?SE(x,E,c,t):CE(x,E,c)});function d(){if(process.env.NODE_ENV!=="production"&&typeof o.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?vt(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[b={},E=[],x=void 0]=typeof o.extraReducers=="function"?kp(o.extraReducers):[o.extraReducers],T={...b,...u.sliceCaseReducersByType};return lE(o.initialState,A=>{for(let C in T)A.addCase(C,T[C]);for(let C of u.sliceMatchers)A.addMatcher(C.matcher,C.reducer);for(let C of E)A.addMatcher(C.matcher,C.reducer);x&&A.addDefaultCase(x)})}const v=b=>b,y=new Map;let g;function f(b,E){return g||(g=d()),g(b,E)}function p(){return g||(g=d()),g.getInitialState()}function h(b,E=!1){function x(A){let C=A[b];if(typeof C>"u"){if(E)C=p();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?vt(15):"selectSlice returned undefined for an uninjected slice reducer")}return C}function T(A=v){const C=_p(y,E,{insert:()=>new WeakMap});return _p(C,A,{insert:()=>{const O={};for(const[B,M]of Object.entries(o.selectors??{}))O[B]=EE(M,A,p,E);return O}})}return{reducerPath:b,getSelectors:T,get selectors(){return T(x)},selectSlice:x}}const m={name:i,reducer:f,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:p,...h(a),injectInto(b,{reducerPath:E,...x}={}){const T=E??a;return b.inject({reducerPath:T,reducer:f},x),{...m,...h(T,!0)}}};return m}}function EE(e,t,n,r){function o(i,...a){let s=t(i);if(typeof s>"u"){if(r)s=n();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?vt(16):"selectState returned undefined for an uninjected slice reducer")}return e(s,...a)}return o.unwrapped=e,o}var ca=yE();function xE(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function CE({type:e,reducerName:t,createNotation:n},r,o){let i,a;if("reducer"in r){if(n&&!IE(r))throw new Error(process.env.NODE_ENV==="production"?vt(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");i=r.reducer,a=r.prepare}else i=r;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?ua(e,a):ua(e))}function wE(e){return e._reducerDefinitionType==="asyncThunk"}function IE(e){return e._reducerDefinitionType==="reducerWithPrepare"}function SE({type:e,reducerName:t},n,r,o){if(!o)throw new Error(process.env.NODE_ENV==="production"?vt(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:i,fulfilled:a,pending:s,rejected:l,settled:u,options:c}=n,d=o(e,i,c);r.exposeAction(t,d),a&&r.addCase(d.fulfilled,a),s&&r.addCase(d.pending,s),l&&r.addCase(d.rejected,l),u&&r.addMatcher(d.settled,u),r.exposeCaseReducer(t,{fulfilled:a||_s,pending:s||_s,rejected:l||_s,settled:u||_s})}function _s(){}function vt(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const TE=ca({name:"counter",initialState:{value:1,status:"idle"},reducers:{increment:e=>{e.value+=1},decrement:e=>{e.value-=1},incrementByAmount:(e,t)=>{e.value+=t.payload}},extraReducers:e=>{e.addCase(Pu.pending,t=>{t.status="loading"}).addCase(Pu.fulfilled,(t,n)=>{t.status="idle",t.value+=n.payload}).addCase(Pu.rejected,t=>{t.status="failed"})}}),Pu=Cn("counter/fetchCount",async e=>(await new Promise(n=>{setTimeout(()=>{n({data:e+10})})})).data),AE=TE.reducer,_E="rls-connectors-enabled",OE="ftr-connectors-enabled",RE="ftr-connector-blue-dot",NE="ftr-connectors-admin-schedule-call",DE="ftr-connectors-admin-guide-links",PE="ftr-connectors-enhancements",kE="ftr-connector-preview",LE="ftr-connectors-oauth-flow-improvements",FE="On a higher plan",ME="Create, authenticate and enable powerful integrations to enhance your team's productivity within Gmail.",BE="Upgrade",jE="Learn more",VE="Have any questions?",Fp="Contact us",GE="https://cdn.hiverhq.com/chat-support/hiver-chat.html",WE="Hiver Chat Support",HE="Copy",zE="Authentication failed",da="hiver_connectors",XE="enableAllConnectorFtr";function Mp(e,t){const n={};return e.forEach(r=>{const o=t(r);n[o]=r}),n}function Bp(e,t){return e.map(t)}function jp(e){const t={};return e.forEach(n=>{n.formFields.forEach(r=>{t[r.name]={...r}})}),t}const br=(e={},t)=>e&&typeof e[t]>"u"?(e==null?void 0:e[XE])===!0:(e==null?void 0:e[t])===!0,ZE=e=>br(e,_E)&&!br(e,OE),fa=e=>br(e,RE),Vp=e=>br(e,PE),Gp=(e,t,n)=>{const r="?email=&name=&referrer=",s=window.innerWidth-388,l=window.open(`${GE}${r}`,WE,`scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no,width=364,height=533,left=${s}`);if(l){const u=window.outerHeight-(l.outerHeight+24);l.moveBy(0,u)}},YE=(e,t)=>{const n=document.createElement("input");document.body.appendChild(n),n.value=e,n.focus(),n.select();try{const r=document.execCommand("copy");t==null||t(!r)}catch{t==null||t(!0)}n.remove()},UE=async(e,t)=>{navigator.clipboard.writeText(e).then(()=>{console.log("successfully copied"),t==null||t(!1)}).catch(()=>{console.log("something went wrong while copying using navigator.clipboard function. Trying fallback copy"),YE(e,t)})},qE=e=>["sm.full"].some(n=>e.includes(n)),Wp=e=>Object.keys(e).filter(t=>e[t]).join(" "),Os=(e,t)=>Array.from({length:e},(n,r)=>t(r)),Hp=(e,t)=>e.replace(/:(\w+)/g,(n,r)=>String(t[r])||""),wn={GET:"GET",POST:"POST",DELETE:"DELETE",PATCH:"PATCH",PUT:"PUT"},Ie={IDLE:"idle",LOADING:"loading",FAILED:"failed"},jn="/v1/api",JE={connectorTemplates:null,connectorTemplateList:[],templateListApiStatus:Ie.IDLE,connectorsApiStatus:Ie.IDLE,templateDetailsApiStatus:Ie.IDLE,selectedTemplateData:null};var ku={},Lo={};function zp(e,t){return function(){return e.apply(t,arguments)}}const{toString:QE}=Object.prototype,{getPrototypeOf:Lu}=Object,Rs=(e=>t=>{const n=QE.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),rr=e=>(e=e.toLowerCase(),t=>Rs(t)===e),Ns=e=>t=>typeof t===e,{isArray:si}=Array,pa=Ns("undefined");function $E(e){return e!==null&&!pa(e)&&e.constructor!==null&&!pa(e.constructor)&&Vn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Xp=rr("ArrayBuffer");function KE(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Xp(e.buffer),t}const ex=Ns("string"),Vn=Ns("function"),Zp=Ns("number"),Ds=e=>e!==null&&typeof e=="object",tx=e=>e===!0||e===!1,Ps=e=>{if(Rs(e)!=="object")return!1;const t=Lu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},nx=rr("Date"),rx=rr("File"),ox=rr("Blob"),ix=rr("FileList"),ax=e=>Ds(e)&&Vn(e.pipe),sx=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Vn(e.append)&&((t=Rs(e))==="formdata"||t==="object"&&Vn(e.toString)&&e.toString()==="[object FormData]"))},lx=rr("URLSearchParams"),[ux,cx,dx,fx]=["ReadableStream","Request","Response","Headers"].map(rr),px=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ha(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),si(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let s;for(r=0;r<a;r++)s=i[r],t.call(null,e[s],s,e)}}function Yp(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Fo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:Be,Up=e=>!pa(e)&&e!==Fo;function Fu(){const{caseless:e}=Up(this)&&this||{},t={},n=(r,o)=>{const i=e&&Yp(t,o)||o;Ps(t[i])&&Ps(r)?t[i]=Fu(t[i],r):Ps(r)?t[i]=Fu({},r):si(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&ha(arguments[r],n);return t}const hx=(e,t,n,{allOwnKeys:r}={})=>(ha(t,(o,i)=>{n&&Vn(o)?e[i]=zp(o,n):e[i]=o},{allOwnKeys:r}),e),gx=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),mx=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},bx=(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&Lu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},vx=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},yx=e=>{if(!e)return null;if(si(e))return e;let t=e.length;if(!Zp(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Ex=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Lu(Uint8Array)),xx=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},Cx=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},wx=rr("HTMLFormElement"),Ix=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),qp=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Sx=rr("RegExp"),Jp=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ha(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(r[i]=a||o)}),Object.defineProperties(e,r)},Tx=e=>{Jp(e,(t,n)=>{if(Vn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Vn(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Ax=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return si(e)?r(e):r(String(e).split(t)),n},_x=()=>{},Ox=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Mu="abcdefghijklmnopqrstuvwxyz",Qp="0123456789",$p={DIGIT:Qp,ALPHA:Mu,ALPHA_DIGIT:Mu+Mu.toUpperCase()+Qp},Rx=(e=16,t=$p.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Nx(e){return!!(e&&Vn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Dx=e=>{const t=new Array(10),n=(r,o)=>{if(Ds(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=si(r)?[]:{};return ha(r,(a,s)=>{const l=n(a,o+1);!pa(l)&&(i[s]=l)}),t[o]=void 0,i}}return r};return n(e,0)},Px=rr("AsyncFunction"),kx=e=>e&&(Ds(e)||Vn(e))&&Vn(e.then)&&Vn(e.catch),Kp=((e,t)=>e?setImmediate:t?((n,r)=>(Fo.addEventListener("message",({source:o,data:i})=>{o===Fo&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Fo.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Vn(Fo.postMessage)),Lx=typeof queueMicrotask<"u"?queueMicrotask.bind(Fo):typeof process<"u"&&process.nextTick||Kp;var Y={isArray:si,isArrayBuffer:Xp,isBuffer:$E,isFormData:sx,isArrayBufferView:KE,isString:ex,isNumber:Zp,isBoolean:tx,isObject:Ds,isPlainObject:Ps,isReadableStream:ux,isRequest:cx,isResponse:dx,isHeaders:fx,isUndefined:pa,isDate:nx,isFile:rx,isBlob:ox,isRegExp:Sx,isFunction:Vn,isStream:ax,isURLSearchParams:lx,isTypedArray:Ex,isFileList:ix,forEach:ha,merge:Fu,extend:hx,trim:px,stripBOM:gx,inherits:mx,toFlatObject:bx,kindOf:Rs,kindOfTest:rr,endsWith:vx,toArray:yx,forEachEntry:xx,matchAll:Cx,isHTMLForm:wx,hasOwnProperty:qp,hasOwnProp:qp,reduceDescriptors:Jp,freezeMethods:Tx,toObjectSet:Ax,toCamelCase:Ix,noop:_x,toFiniteNumber:Ox,findKey:Yp,global:Fo,isContextDefined:Up,ALPHABET:$p,generateString:Rx,isSpecCompliantForm:Nx,toJSONObject:Dx,isAsyncFn:Px,isThenable:kx,setImmediate:Kp,asap:Lx};function je(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}Y.inherits(je,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Y.toJSONObject(this.config),code:this.code,status:this.status}}});const eh=je.prototype,th={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{th[e]={value:e}}),Object.defineProperties(je,th),Object.defineProperty(eh,"isAxiosError",{value:!0}),je.from=(e,t,n,r,o,i)=>{const a=Object.create(eh);return Y.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),je.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};var Fx=null;function Bu(e){return Y.isPlainObject(e)||Y.isArray(e)}function nh(e){return Y.endsWith(e,"[]")?e.slice(0,-2):e}function rh(e,t,n){return e?e.concat(t).map(function(o,i){return o=nh(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function Mx(e){return Y.isArray(e)&&!e.some(Bu)}const Bx=Y.toFlatObject(Y,{},null,function(t){return/^is[A-Z]/.test(t)});function ks(e,t,n){if(!Y.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Y.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,p){return!Y.isUndefined(p[f])});const r=n.metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&Y.isSpecCompliantForm(t);if(!Y.isFunction(o))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(Y.isDate(g))return g.toISOString();if(!l&&Y.isBlob(g))throw new je("Blob is not supported. Use a Buffer instead.");return Y.isArrayBuffer(g)||Y.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function c(g,f,p){let h=g;if(g&&!p&&typeof g=="object"){if(Y.endsWith(f,"{}"))f=r?f:f.slice(0,-2),g=JSON.stringify(g);else if(Y.isArray(g)&&Mx(g)||(Y.isFileList(g)||Y.endsWith(f,"[]"))&&(h=Y.toArray(g)))return f=nh(f),h.forEach(function(b,E){!(Y.isUndefined(b)||b===null)&&t.append(a===!0?rh([f],E,i):a===null?f:f+"[]",u(b))}),!1}return Bu(g)?!0:(t.append(rh(p,f,i),u(g)),!1)}const d=[],v=Object.assign(Bx,{defaultVisitor:c,convertValue:u,isVisitable:Bu});function y(g,f){if(!Y.isUndefined(g)){if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+f.join("."));d.push(g),Y.forEach(g,function(h,m){(!(Y.isUndefined(h)||h===null)&&o.call(t,h,Y.isString(m)?m.trim():m,f,v))===!0&&y(h,f?f.concat(m):[m])}),d.pop()}}if(!Y.isObject(e))throw new TypeError("data must be an object");return y(e),t}function oh(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function ju(e,t){this._pairs=[],e&&ks(e,this,t)}const ih=ju.prototype;ih.append=function(t,n){this._pairs.push([t,n])},ih.toString=function(t){const n=t?function(r){return t.call(this,r,oh)}:oh;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function jx(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ah(e,t,n){if(!t)return e;const r=n&&n.encode||jx,o=n&&n.serialize;let i;if(o?i=o(t,n):i=Y.isURLSearchParams(t)?t.toString():new ju(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Vx{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Y.forEach(this.handlers,function(r){r!==null&&t(r)})}}var sh=Vx,lh={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Gx=typeof URLSearchParams<"u"?URLSearchParams:ju,Wx=typeof FormData<"u"?FormData:null,Hx=typeof Blob<"u"?Blob:null,zx={isBrowser:!0,classes:{URLSearchParams:Gx,FormData:Wx,Blob:Hx},protocols:["http","https","file","blob","url","data"]};const Vu=typeof window<"u"&&typeof document<"u",Gu=typeof navigator=="object"&&navigator||void 0,Xx=Vu&&(!Gu||["ReactNative","NativeScript","NS"].indexOf(Gu.product)<0),Zx=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Yx=Vu&&window.location.href||"http://localhost";var Ux=Object.freeze({__proto__:null,hasBrowserEnv:Vu,hasStandardBrowserWebWorkerEnv:Zx,hasStandardBrowserEnv:Xx,navigator:Gu,origin:Yx}),In={...Ux,...zx};function qx(e,t){return ks(e,new In.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return In.isNode&&Y.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Jx(e){return Y.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Qx(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function uh(e){function t(n,r,o,i){let a=n[i++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),l=i>=n.length;return a=!a&&Y.isArray(o)?o.length:a,l?(Y.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!s):((!o[a]||!Y.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&&Y.isArray(o[a])&&(o[a]=Qx(o[a])),!s)}if(Y.isFormData(e)&&Y.isFunction(e.entries)){const n={};return Y.forEachEntry(e,(r,o)=>{t(Jx(r),o,n,0)}),n}return null}function $x(e,t,n){if(Y.isString(e))try{return(t||JSON.parse)(e),Y.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const Wu={transitional:lh,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=Y.isObject(t);if(i&&Y.isHTMLForm(t)&&(t=new FormData(t)),Y.isFormData(t))return o?JSON.stringify(uh(t)):t;if(Y.isArrayBuffer(t)||Y.isBuffer(t)||Y.isStream(t)||Y.isFile(t)||Y.isBlob(t)||Y.isReadableStream(t))return t;if(Y.isArrayBufferView(t))return t.buffer;if(Y.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return qx(t,this.formSerializer).toString();if((s=Y.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return ks(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),$x(t)):t}],transformResponse:[function(t){const n=this.transitional||Wu.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(Y.isResponse(t)||Y.isReadableStream(t))return t;if(t&&Y.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?je.from(s,je.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:In.classes.FormData,Blob:In.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Y.forEach(["delete","get","head","post","put","patch"],e=>{Wu.headers[e]={}});var Hu=Wu;const Kx=Y.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var eC=e=>{const t={};let n,r,o;return e&&e.split(`
|
|
63
|
-
`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&Kx[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};const ch=Symbol("internals");function ga(e){return e&&String(e).trim().toLowerCase()}function Ls(e){return e===!1||e==null?e:Y.isArray(e)?e.map(Ls):String(e)}function tC(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const nC=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function zu(e,t,n,r,o){if(Y.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Y.isString(t)){if(Y.isString(r))return t.indexOf(r)!==-1;if(Y.isRegExp(r))return r.test(t)}}function rC(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function oC(e,t){const n=Y.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}class Fs{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(s,
|
|
64
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[ch]=this[ch]={accessors:{}}).accessors,o=this.prototype;function i(a){const s=ga(a);r[s]||(oC(o,a),r[s]=!0)}return Y.isArray(t)?t.forEach(i):i(t),this}}Fs.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Y.reduceDescriptors(Fs.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),Y.freezeMethods(Fs);var or=Fs;function Xu(e,t){const n=this||Hu,r=t||n,o=or.from(r.headers);let i=r.data;return Y.forEach(e,function(s){i=s.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function dh(e){return!!(e&&e.__CANCEL__)}function li(e,t,n){je.call(this,e??"canceled",je.ERR_CANCELED,t,n),this.name="CanceledError"}Y.inherits(li,je,{__CANCEL__:!0});function fh(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new je("Request failed with status code "+n.status,[je.ERR_BAD_REQUEST,je.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function iC(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function aC(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[i];a||(a=u),n[o]=l,r[o]=u;let d=i,v=0;for(;d!==o;)v+=n[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-a<t)return;const y=c&&u-c;return y?Math.round(v*1e3/y):void 0}}function sC(e,t){let n=0,r=1e3/t,o,i;const a=(u,c=Date.now())=>{n=c,o=null,i&&(clearTimeout(i),i=null),e.apply(null,u)};return[(...u)=>{const c=Date.now(),d=c-n;d>=r?a(u,c):(o=u,i||(i=setTimeout(()=>{i=null,a(o)},r-d)))},()=>o&&a(o)]}const Ms=(e,t,n=3)=>{let r=0;const o=aC(50,250);return sC(i=>{const a=i.loaded,s=i.lengthComputable?i.total:void 0,l=a-r,u=o(l),c=a<=s;r=a;const d={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&c?(s-a)/u:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(d)},n)},ph=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},hh=e=>(...t)=>Y.asap(()=>e(...t));var lC=In.hasStandardBrowserEnv?function(){const t=In.navigator&&/(msie|trident)/i.test(In.navigator.userAgent),n=document.createElement("a");let r;function o(i){let a=i;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(a){const s=Y.isString(a)?o(a):a;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}(),uC=In.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Y.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Y.isString(r)&&a.push("path="+r),Y.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function cC(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function dC(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function gh(e,t){return e&&!cC(t)?dC(e,t):t}const mh=e=>e instanceof or?{...e}:e;function Mo(e,t){t=t||{};const n={};function r(u,c,d){return Y.isPlainObject(u)&&Y.isPlainObject(c)?Y.merge.call({caseless:d},u,c):Y.isPlainObject(c)?Y.merge({},c):Y.isArray(c)?c.slice():c}function o(u,c,d){if(Y.isUndefined(c)){if(!Y.isUndefined(u))return r(void 0,u,d)}else return r(u,c,d)}function i(u,c){if(!Y.isUndefined(c))return r(void 0,c)}function a(u,c){if(Y.isUndefined(c)){if(!Y.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function s(u,c,d){if(d in t)return r(u,c);if(d in e)return r(void 0,u)}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(u,c)=>o(mh(u),mh(c),!0)};return Y.forEach(Object.keys(Object.assign({},e,t)),function(c){const d=l[c]||o,v=d(e[c],t[c],c);Y.isUndefined(v)&&d!==s||(n[c]=v)}),n}var bh=e=>{const t=Mo({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=t;t.headers=a=or.from(a),t.url=ah(gh(t.baseURL,t.url),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(Y.isFormData(n)){if(In.hasStandardBrowserEnv||In.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[u,...c]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...c].join("; "))}}if(In.hasStandardBrowserEnv&&(r&&Y.isFunction(r)&&(r=r(t)),r||r!==!1&&lC(t.url))){const u=o&&i&&uC.read(i);u&&a.set(o,u)}return t},fC=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const o=bh(e);let i=o.data;const a=or.from(o.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=o,c,d,v,y,g;function f(){y&&y(),g&&g(),o.cancelToken&&o.cancelToken.unsubscribe(c),o.signal&&o.signal.removeEventListener("abort",c)}let p=new XMLHttpRequest;p.open(o.method.toUpperCase(),o.url,!0),p.timeout=o.timeout;function h(){if(!p)return;const b=or.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),x={data:!s||s==="text"||s==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:b,config:e,request:p};fh(function(A){n(A),f()},function(A){r(A),f()},x),p=null}"onloadend"in p?p.onloadend=h:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(h)},p.onabort=function(){p&&(r(new je("Request aborted",je.ECONNABORTED,e,p)),p=null)},p.onerror=function(){r(new je("Network Error",je.ERR_NETWORK,e,p)),p=null},p.ontimeout=function(){let E=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const x=o.transitional||lh;o.timeoutErrorMessage&&(E=o.timeoutErrorMessage),r(new je(E,x.clarifyTimeoutError?je.ETIMEDOUT:je.ECONNABORTED,e,p)),p=null},i===void 0&&a.setContentType(null),"setRequestHeader"in p&&Y.forEach(a.toJSON(),function(E,x){p.setRequestHeader(x,E)}),Y.isUndefined(o.withCredentials)||(p.withCredentials=!!o.withCredentials),s&&s!=="json"&&(p.responseType=o.responseType),u&&([v,g]=Ms(u,!0),p.addEventListener("progress",v)),l&&p.upload&&([d,y]=Ms(l),p.upload.addEventListener("progress",d),p.upload.addEventListener("loadend",y)),(o.cancelToken||o.signal)&&(c=b=>{p&&(r(!b||b.type?new li(null,e,p):b),p.abort(),p=null)},o.cancelToken&&o.cancelToken.subscribe(c),o.signal&&(o.signal.aborted?c():o.signal.addEventListener("abort",c)));const m=iC(o.url);if(m&&In.protocols.indexOf(m)===-1){r(new je("Unsupported protocol "+m+":",je.ERR_BAD_REQUEST,e));return}p.send(i||null)})},pC=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(u){if(!o){o=!0,s();const c=u instanceof Error?u:this.reason;r.abort(c instanceof je?c:new li(c instanceof Error?c.message:c))}};let a=t&&setTimeout(()=>{a=null,i(new je(`timeout ${t} of ms exceeded`,je.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),e=null)};e.forEach(u=>u.addEventListener("abort",i));const{signal:l}=r;return l.unsubscribe=()=>Y.asap(s),l}};const hC=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},gC=async function*(e,t){for await(const n of mC(e))yield*hC(n,t)},mC=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},vh=(e,t,n,r)=>{const o=gC(e,t);let i=0,a,s=l=>{a||(a=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:u,value:c}=await o.next();if(u){s(),l.close();return}let d=c.byteLength;if(n){let v=i+=d;n(v)}l.enqueue(new Uint8Array(c))}catch(u){throw s(u),u}},cancel(l){return s(l),o.return()}},{highWaterMark:2})},Bs=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",yh=Bs&&typeof ReadableStream=="function",bC=Bs&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Eh=(e,...t)=>{try{return!!e(...t)}catch{return!1}},vC=yh&&Eh(()=>{let e=!1;const t=new Request(In.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),xh=64*1024,Zu=yh&&Eh(()=>Y.isReadableStream(new Response("").body)),js={stream:Zu&&(e=>e.body)};Bs&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!js[t]&&(js[t]=Y.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new je(`Response type '${t}' is not supported`,je.ERR_NOT_SUPPORT,r)})})})(new Response);const yC=async e=>{if(e==null)return 0;if(Y.isBlob(e))return e.size;if(Y.isSpecCompliantForm(e))return(await new Request(In.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Y.isArrayBufferView(e)||Y.isArrayBuffer(e))return e.byteLength;if(Y.isURLSearchParams(e)&&(e=e+""),Y.isString(e))return(await bC(e)).byteLength},EC=async(e,t)=>{const n=Y.toFiniteNumber(e.getContentLength());return n??yC(t)};var xC=Bs&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:u,headers:c,withCredentials:d="same-origin",fetchOptions:v}=bh(e);u=u?(u+"").toLowerCase():"text";let y=pC([o,i&&i.toAbortSignal()],a),g;const f=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let p;try{if(l&&vC&&n!=="get"&&n!=="head"&&(p=await EC(c,r))!==0){let x=new Request(t,{method:"POST",body:r,duplex:"half"}),T;if(Y.isFormData(r)&&(T=x.headers.get("content-type"))&&c.setContentType(T),x.body){const[A,C]=ph(p,Ms(hh(l)));r=vh(x.body,xh,A,C)}}Y.isString(d)||(d=d?"include":"omit");const h="credentials"in Request.prototype;g=new Request(t,{...v,signal:y,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",credentials:h?d:void 0});let m=await fetch(g);const b=Zu&&(u==="stream"||u==="response");if(Zu&&(s||b&&f)){const x={};["status","statusText","headers"].forEach(O=>{x[O]=m[O]});const T=Y.toFiniteNumber(m.headers.get("content-length")),[A,C]=s&&ph(T,Ms(hh(s),!0))||[];m=new Response(vh(m.body,xh,A,()=>{C&&C(),f&&f()}),x)}u=u||"text";let E=await js[Y.findKey(js,u)||"text"](m,e);return!b&&f&&f(),await new Promise((x,T)=>{fh(x,T,{data:E,headers:or.from(m.headers),status:m.status,statusText:m.statusText,config:e,request:g})})}catch(h){throw f&&f(),h&&h.name==="TypeError"&&/fetch/i.test(h.message)?Object.assign(new je("Network Error",je.ERR_NETWORK,e,g),{cause:h.cause||h}):je.from(h,h&&h.code,e,g)}});const Yu={http:Fx,xhr:fC,fetch:xC};Y.forEach(Yu,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ch=e=>`- ${e}`,CC=e=>Y.isFunction(e)||e===null||e===!1;var wh={getAdapter:e=>{e=Y.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){n=e[i];let a;if(r=n,!CC(n)&&(r=Yu[(a=String(n)).toLowerCase()],r===void 0))throw new je(`Unknown adapter '${a}'`);if(r)break;o[a||"#"+i]=r}if(!r){const i=Object.entries(o).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since :
|
|
62
|
+
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),d.warnIfExceeded()),v}}}function As(e){return typeof e=="boolean"}var tE=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:o=!0,actionCreatorCheck:i=!0}=t??{};let a=new Tp;if(n&&(As(n)?a.push(X1):a.push(Z1(n.extraArgument))),process.env.NODE_ENV!=="production"){if(r){let l={};As(r)||(l=r),a.unshift(K1(l))}if(o){let l={};As(o)||(l=o),a.push(eE(l))}if(i){let l={};As(i)||(l=i),a.unshift(J1(l))}}return a},nE="RTK_autoBatch",Pp=e=>t=>{setTimeout(t,e)},rE=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Pp(10),oE=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let o=!0,i=!1,a=!1;const l=new Set,s=e.type==="tick"?queueMicrotask:e.type==="raf"?rE:e.type==="callback"?e.queueNotification:Pp(e.timeout),u=()=>{a=!1,i&&(i=!1,l.forEach(c=>c()))};return Object.assign({},r,{subscribe(c){const f=()=>o&&c(),b=r.subscribe(f);return l.add(c),()=>{b(),l.delete(c)}},dispatch(c){var f;try{return o=!((f=c==null?void 0:c.meta)!=null&&f[nE]),i=!o,i&&(a||(a=!0,s(u))),r.dispatch(c)}finally{o=!0}}})},iE=e=>function(n){const{autoBatch:r=!0}=n??{};let o=new Tp(e);return r&&o.push(oE(typeof r=="object"?r:void 0)),o};function aE(e){const t=tE(),{reducer:n=void 0,middleware:r,devTools:o=!0,preloadedState:i=void 0,enhancers:a=void 0}=e||{};let l;if(typeof n=="function")l=n;else if(aa(n))l=ip(n);else throw new Error(process.env.NODE_ENV==="production"?vt(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(process.env.NODE_ENV!=="production"&&r&&typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?vt(2):"`middleware` field must be a callback");let s;if(typeof r=="function"){if(s=r(t),process.env.NODE_ENV!=="production"&&!Array.isArray(s))throw new Error(process.env.NODE_ENV==="production"?vt(3):"when using a middleware builder function, an array of middleware must be returned")}else s=t();if(process.env.NODE_ENV!=="production"&&s.some(v=>typeof v!="function"))throw new Error(process.env.NODE_ENV==="production"?vt(4):"each middleware provided to configureStore must be a function");let u=vs;o&&(u=Y1({trace:process.env.NODE_ENV!=="production",...typeof o=="object"&&o}));const c=y1(...s),f=iE(c);if(process.env.NODE_ENV!=="production"&&a&&typeof a!="function")throw new Error(process.env.NODE_ENV==="production"?vt(5):"`enhancers` field must be a callback");let b=typeof a=="function"?a(f):f();if(process.env.NODE_ENV!=="production"&&!Array.isArray(b))throw new Error(process.env.NODE_ENV==="production"?vt(6):"`enhancers` callback must return an array");if(process.env.NODE_ENV!=="production"&&b.some(v=>typeof v!="function"))throw new Error(process.env.NODE_ENV==="production"?vt(7):"each enhancer provided to configureStore must be a function");process.env.NODE_ENV!=="production"&&s.length&&!b.includes(c)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const y=u(...b);return rp(l,i,y)}function kp(e){const t={},n=[];let r;const o={addCase(i,a){if(process.env.NODE_ENV!=="production"){if(n.length>0)throw new Error(process.env.NODE_ENV==="production"?vt(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(r)throw new Error(process.env.NODE_ENV==="production"?vt(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const l=typeof i=="string"?i:i.type;if(!l)throw new Error(process.env.NODE_ENV==="production"?vt(28):"`builder.addCase` cannot be called with an empty action type");if(l in t)throw new Error(process.env.NODE_ENV==="production"?vt(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${l}'`);return t[l]=a,o},addMatcher(i,a){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?vt(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return n.push({matcher:i,reducer:a}),o},addDefaultCase(i){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?vt(31):"`builder.addDefaultCase` can only be called once");return r=i,o}};return e(o),[t,n,r]}function sE(e){return typeof e=="function"}function lE(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?vt(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[n,r,o]=kp(t),i;if(sE(e))i=()=>Ap(e());else{const l=Ap(e);i=()=>l}function a(l=i(),s){let u=[n[s.type],...r.filter(({matcher:c})=>c(s)).map(({reducer:c})=>c)];return u.filter(c=>!!c).length===0&&(u=[o]),u.reduce((c,f)=>{if(f)if(Do(c)){const y=f(c,s);return y===void 0?c:y}else{if(Br(c))return vp(c,b=>f(b,s));{const b=f(c,s);if(b===void 0){if(c===null)return c;throw new Error(process.env.NODE_ENV==="production"?vt(9):"A case reducer on a non-draftable value must not return undefined")}return b}}return c},l)}return a.getInitialState=i,a}var uE=(e,t)=>Ip(e)?e.match(t):e(t);function cE(...e){return t=>e.some(n=>uE(n,t))}var dE="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",fE=(e=21)=>{let t="",n=e;for(;n--;)t+=dE[Math.random()*64|0];return t},pE=["name","message","stack","code"],Du=class{constructor(e,t){Of(this,"_type");this.payload=e,this.meta=t}},Lp=class{constructor(e,t){Of(this,"_type");this.payload=e,this.meta=t}},hE=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of pE)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},Cn=(()=>{function e(t,n,r){const o=ua(t+"/fulfilled",(s,u,c,f)=>({payload:s,meta:{...f||{},arg:c,requestId:u,requestStatus:"fulfilled"}})),i=ua(t+"/pending",(s,u,c)=>({payload:void 0,meta:{...c||{},arg:u,requestId:s,requestStatus:"pending"}})),a=ua(t+"/rejected",(s,u,c,f,b)=>({payload:f,error:(r&&r.serializeError||hE)(s||"Rejected"),meta:{...b||{},arg:c,requestId:u,rejectedWithValue:!!f,requestStatus:"rejected",aborted:(s==null?void 0:s.name)==="AbortError",condition:(s==null?void 0:s.name)==="ConditionError"}}));function l(s){return(u,c,f)=>{const b=r!=null&&r.idGenerator?r.idGenerator(s):fE(),y=new AbortController;let v,d;function p(g){d=g,y.abort()}const h=async function(){var E,x;let g;try{let A=(E=r==null?void 0:r.condition)==null?void 0:E.call(r,s,{getState:c,extra:f});if(mE(A)&&(A=await A),A===!1||y.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const T=new Promise((C,O)=>{v=()=>{O({name:"AbortError",message:d||"Aborted"})},y.signal.addEventListener("abort",v)});u(i(b,s,(x=r==null?void 0:r.getPendingMeta)==null?void 0:x.call(r,{requestId:b,arg:s},{getState:c,extra:f}))),g=await Promise.race([T,Promise.resolve(n(s,{dispatch:u,getState:c,extra:f,requestId:b,signal:y.signal,abort:p,rejectWithValue:(C,O)=>new Du(C,O),fulfillWithValue:(C,O)=>new Lp(C,O)})).then(C=>{if(C instanceof Du)throw C;return C instanceof Lp?o(C.payload,b,s,C.meta):o(C,b,s)})])}catch(A){g=A instanceof Du?a(null,b,s,A.payload,A.meta):a(A,b,s)}finally{v&&y.signal.removeEventListener("abort",v)}return r&&!r.dispatchConditionRejection&&a.match(g)&&g.meta.condition||u(g),g}();return Object.assign(h,{abort:p,requestId:b,arg:s,unwrap(){return h.then(gE)}})}}return Object.assign(l,{pending:i,rejected:a,fulfilled:o,settled:cE(a,o),typePrefix:t})}return e.withTypes=()=>e,e})();function gE(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function mE(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var bE=Symbol.for("rtk-slice-createasyncthunk");function vE(e,t){return`${e}/${t}`}function yE({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[bE];return function(o){const{name:i,reducerPath:a=i}=o;if(!i)throw new Error(process.env.NODE_ENV==="production"?vt(11):"`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&o.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const l=(typeof o.reducers=="function"?o.reducers(xE()):o.reducers)||{},s=Object.keys(l),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(m,E){const x=typeof m=="string"?m:m.type;if(!x)throw new Error(process.env.NODE_ENV==="production"?vt(12):"`context.addCase` cannot be called with an empty action type");if(x in u.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?vt(13):"`context.addCase` cannot be called with two reducers for the same action type: "+x);return u.sliceCaseReducersByType[x]=E,c},addMatcher(m,E){return u.sliceMatchers.push({matcher:m,reducer:E}),c},exposeAction(m,E){return u.actionCreators[m]=E,c},exposeCaseReducer(m,E){return u.sliceCaseReducersByName[m]=E,c}};s.forEach(m=>{const E=l[m],x={reducerName:m,type:vE(i,m),createNotation:typeof o.reducers=="function"};wE(E)?SE(x,E,c,t):CE(x,E,c)});function f(){if(process.env.NODE_ENV!=="production"&&typeof o.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?vt(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[m={},E=[],x=void 0]=typeof o.extraReducers=="function"?kp(o.extraReducers):[o.extraReducers],A={...m,...u.sliceCaseReducersByType};return lE(o.initialState,T=>{for(let C in A)T.addCase(C,A[C]);for(let C of u.sliceMatchers)T.addMatcher(C.matcher,C.reducer);for(let C of E)T.addMatcher(C.matcher,C.reducer);x&&T.addDefaultCase(x)})}const b=m=>m,y=new Map;let v;function d(m,E){return v||(v=f()),v(m,E)}function p(){return v||(v=f()),v.getInitialState()}function h(m,E=!1){function x(T){let C=T[m];if(typeof C>"u"){if(E)C=p();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?vt(15):"selectSlice returned undefined for an uninjected slice reducer")}return C}function A(T=b){const C=_p(y,E,{insert:()=>new WeakMap});return _p(C,T,{insert:()=>{const O={};for(const[M,B]of Object.entries(o.selectors??{}))O[M]=EE(B,T,p,E);return O}})}return{reducerPath:m,getSelectors:A,get selectors(){return A(x)},selectSlice:x}}const g={name:i,reducer:d,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:p,...h(a),injectInto(m,{reducerPath:E,...x}={}){const A=E??a;return m.inject({reducerPath:A,reducer:d},x),{...g,...h(A,!0)}}};return g}}function EE(e,t,n,r){function o(i,...a){let l=t(i);if(typeof l>"u"){if(r)l=n();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?vt(16):"selectState returned undefined for an uninjected slice reducer")}return e(l,...a)}return o.unwrapped=e,o}var ca=yE();function xE(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function CE({type:e,reducerName:t,createNotation:n},r,o){let i,a;if("reducer"in r){if(n&&!IE(r))throw new Error(process.env.NODE_ENV==="production"?vt(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");i=r.reducer,a=r.prepare}else i=r;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?ua(e,a):ua(e))}function wE(e){return e._reducerDefinitionType==="asyncThunk"}function IE(e){return e._reducerDefinitionType==="reducerWithPrepare"}function SE({type:e,reducerName:t},n,r,o){if(!o)throw new Error(process.env.NODE_ENV==="production"?vt(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:i,fulfilled:a,pending:l,rejected:s,settled:u,options:c}=n,f=o(e,i,c);r.exposeAction(t,f),a&&r.addCase(f.fulfilled,a),l&&r.addCase(f.pending,l),s&&r.addCase(f.rejected,s),u&&r.addMatcher(f.settled,u),r.exposeCaseReducer(t,{fulfilled:a||_s,pending:l||_s,rejected:s||_s,settled:u||_s})}function _s(){}function vt(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const TE=ca({name:"counter",initialState:{value:1,status:"idle"},reducers:{increment:e=>{e.value+=1},decrement:e=>{e.value-=1},incrementByAmount:(e,t)=>{e.value+=t.payload}},extraReducers:e=>{e.addCase(Pu.pending,t=>{t.status="loading"}).addCase(Pu.fulfilled,(t,n)=>{t.status="idle",t.value+=n.payload}).addCase(Pu.rejected,t=>{t.status="failed"})}}),Pu=Cn("counter/fetchCount",async e=>(await new Promise(n=>{setTimeout(()=>{n({data:e+10})})})).data),AE=TE.reducer,_E="rls-connectors-enabled",OE="ftr-connectors-enabled",RE="ftr-connector-blue-dot",NE="ftr-connectors-admin-schedule-call",DE="ftr-connectors-admin-guide-links",PE="ftr-connectors-enhancements",kE="ftr-connector-preview",LE="ftr-connectors-oauth-flow-improvements",FE="On a higher plan",ME="Create, authenticate and enable powerful integrations to enhance your team's productivity within Gmail.",BE="Upgrade",jE="Learn more",VE="Have any questions?",Fp="Contact us",GE="https://cdn.hiverhq.com/chat-support/hiver-chat.html",WE="Hiver Chat Support",HE="Copy",zE="Authentication failed",da="hiver_connectors",XE="enableAllConnectorFtr";function Mp(e,t){const n={};return e.forEach(r=>{const o=t(r);n[o]=r}),n}function Bp(e,t){return e.map(t)}function jp(e){const t={};return e.forEach(n=>{n.formFields.forEach(r=>{t[r.name]={...r}})}),t}const br=(e={},t)=>e&&typeof e[t]>"u"?(e==null?void 0:e[XE])===!0:(e==null?void 0:e[t])===!0,ZE=e=>br(e,_E)&&!br(e,OE),fa=e=>br(e,RE),Vp=e=>br(e,PE),Gp=(e,t,n)=>{const r="?email=&name=&referrer=",l=window.innerWidth-388,s=window.open(`${GE}${r}`,WE,`scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no,width=364,height=533,left=${l}`);if(s){const u=window.outerHeight-(s.outerHeight+24);s.moveBy(0,u)}},YE=(e,t)=>{const n=document.createElement("input");document.body.appendChild(n),n.value=e,n.focus(),n.select();try{const r=document.execCommand("copy");t==null||t(!r)}catch{t==null||t(!0)}n.remove()},UE=async(e,t)=>{navigator.clipboard.writeText(e).then(()=>{console.log("successfully copied"),t==null||t(!1)}).catch(()=>{console.log("something went wrong while copying using navigator.clipboard function. Trying fallback copy"),YE(e,t)})},qE=e=>["sm.full"].some(n=>e.includes(n)),Wp=e=>Object.keys(e).filter(t=>e[t]).join(" "),Os=(e,t)=>Array.from({length:e},(n,r)=>t(r)),Hp=(e,t)=>e.replace(/:(\w+)/g,(n,r)=>String(t[r])||""),wn={GET:"GET",POST:"POST",DELETE:"DELETE",PATCH:"PATCH",PUT:"PUT"},Ie={IDLE:"idle",LOADING:"loading",FAILED:"failed"},jn="/v1/api",JE={connectorTemplates:null,connectorTemplateList:[],templateListApiStatus:Ie.IDLE,connectorsApiStatus:Ie.IDLE,templateDetailsApiStatus:Ie.IDLE,selectedTemplateData:null};var ku={},Lo={};function zp(e,t){return function(){return e.apply(t,arguments)}}const{toString:QE}=Object.prototype,{getPrototypeOf:Lu}=Object,Rs=(e=>t=>{const n=QE.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),rr=e=>(e=e.toLowerCase(),t=>Rs(t)===e),Ns=e=>t=>typeof t===e,{isArray:si}=Array,pa=Ns("undefined");function $E(e){return e!==null&&!pa(e)&&e.constructor!==null&&!pa(e.constructor)&&Vn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Xp=rr("ArrayBuffer");function KE(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Xp(e.buffer),t}const ex=Ns("string"),Vn=Ns("function"),Zp=Ns("number"),Ds=e=>e!==null&&typeof e=="object",tx=e=>e===!0||e===!1,Ps=e=>{if(Rs(e)!=="object")return!1;const t=Lu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},nx=rr("Date"),rx=rr("File"),ox=rr("Blob"),ix=rr("FileList"),ax=e=>Ds(e)&&Vn(e.pipe),sx=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Vn(e.append)&&((t=Rs(e))==="formdata"||t==="object"&&Vn(e.toString)&&e.toString()==="[object FormData]"))},lx=rr("URLSearchParams"),[ux,cx,dx,fx]=["ReadableStream","Request","Response","Headers"].map(rr),px=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ha(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),si(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let l;for(r=0;r<a;r++)l=i[r],t.call(null,e[l],l,e)}}function Yp(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Fo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:Be,Up=e=>!pa(e)&&e!==Fo;function Fu(){const{caseless:e}=Up(this)&&this||{},t={},n=(r,o)=>{const i=e&&Yp(t,o)||o;Ps(t[i])&&Ps(r)?t[i]=Fu(t[i],r):Ps(r)?t[i]=Fu({},r):si(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&ha(arguments[r],n);return t}const hx=(e,t,n,{allOwnKeys:r}={})=>(ha(t,(o,i)=>{n&&Vn(o)?e[i]=zp(o,n):e[i]=o},{allOwnKeys:r}),e),gx=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),mx=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},bx=(e,t,n,r)=>{let o,i,a;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!l[a]&&(t[a]=e[a],l[a]=!0);e=n!==!1&&Lu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},vx=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},yx=e=>{if(!e)return null;if(si(e))return e;let t=e.length;if(!Zp(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Ex=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Lu(Uint8Array)),xx=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},Cx=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},wx=rr("HTMLFormElement"),Ix=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),qp=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Sx=rr("RegExp"),Jp=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ha(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(r[i]=a||o)}),Object.defineProperties(e,r)},Tx=e=>{Jp(e,(t,n)=>{if(Vn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Vn(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Ax=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return si(e)?r(e):r(String(e).split(t)),n},_x=()=>{},Ox=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Mu="abcdefghijklmnopqrstuvwxyz",Qp="0123456789",$p={DIGIT:Qp,ALPHA:Mu,ALPHA_DIGIT:Mu+Mu.toUpperCase()+Qp},Rx=(e=16,t=$p.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Nx(e){return!!(e&&Vn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Dx=e=>{const t=new Array(10),n=(r,o)=>{if(Ds(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=si(r)?[]:{};return ha(r,(a,l)=>{const s=n(a,o+1);!pa(s)&&(i[l]=s)}),t[o]=void 0,i}}return r};return n(e,0)},Px=rr("AsyncFunction"),kx=e=>e&&(Ds(e)||Vn(e))&&Vn(e.then)&&Vn(e.catch),Kp=((e,t)=>e?setImmediate:t?((n,r)=>(Fo.addEventListener("message",({source:o,data:i})=>{o===Fo&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Fo.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Vn(Fo.postMessage)),Lx=typeof queueMicrotask<"u"?queueMicrotask.bind(Fo):typeof process<"u"&&process.nextTick||Kp;var Y={isArray:si,isArrayBuffer:Xp,isBuffer:$E,isFormData:sx,isArrayBufferView:KE,isString:ex,isNumber:Zp,isBoolean:tx,isObject:Ds,isPlainObject:Ps,isReadableStream:ux,isRequest:cx,isResponse:dx,isHeaders:fx,isUndefined:pa,isDate:nx,isFile:rx,isBlob:ox,isRegExp:Sx,isFunction:Vn,isStream:ax,isURLSearchParams:lx,isTypedArray:Ex,isFileList:ix,forEach:ha,merge:Fu,extend:hx,trim:px,stripBOM:gx,inherits:mx,toFlatObject:bx,kindOf:Rs,kindOfTest:rr,endsWith:vx,toArray:yx,forEachEntry:xx,matchAll:Cx,isHTMLForm:wx,hasOwnProperty:qp,hasOwnProp:qp,reduceDescriptors:Jp,freezeMethods:Tx,toObjectSet:Ax,toCamelCase:Ix,noop:_x,toFiniteNumber:Ox,findKey:Yp,global:Fo,isContextDefined:Up,ALPHABET:$p,generateString:Rx,isSpecCompliantForm:Nx,toJSONObject:Dx,isAsyncFn:Px,isThenable:kx,setImmediate:Kp,asap:Lx};function je(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}Y.inherits(je,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Y.toJSONObject(this.config),code:this.code,status:this.status}}});const eh=je.prototype,th={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{th[e]={value:e}}),Object.defineProperties(je,th),Object.defineProperty(eh,"isAxiosError",{value:!0}),je.from=(e,t,n,r,o,i)=>{const a=Object.create(eh);return Y.toFlatObject(e,a,function(s){return s!==Error.prototype},l=>l!=="isAxiosError"),je.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};var Fx=null;function Bu(e){return Y.isPlainObject(e)||Y.isArray(e)}function nh(e){return Y.endsWith(e,"[]")?e.slice(0,-2):e}function rh(e,t,n){return e?e.concat(t).map(function(o,i){return o=nh(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function Mx(e){return Y.isArray(e)&&!e.some(Bu)}const Bx=Y.toFlatObject(Y,{},null,function(t){return/^is[A-Z]/.test(t)});function ks(e,t,n){if(!Y.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Y.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,p){return!Y.isUndefined(p[d])});const r=n.metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||typeof Blob<"u"&&Blob)&&Y.isSpecCompliantForm(t);if(!Y.isFunction(o))throw new TypeError("visitor must be a function");function u(v){if(v===null)return"";if(Y.isDate(v))return v.toISOString();if(!s&&Y.isBlob(v))throw new je("Blob is not supported. Use a Buffer instead.");return Y.isArrayBuffer(v)||Y.isTypedArray(v)?s&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function c(v,d,p){let h=v;if(v&&!p&&typeof v=="object"){if(Y.endsWith(d,"{}"))d=r?d:d.slice(0,-2),v=JSON.stringify(v);else if(Y.isArray(v)&&Mx(v)||(Y.isFileList(v)||Y.endsWith(d,"[]"))&&(h=Y.toArray(v)))return d=nh(d),h.forEach(function(m,E){!(Y.isUndefined(m)||m===null)&&t.append(a===!0?rh([d],E,i):a===null?d:d+"[]",u(m))}),!1}return Bu(v)?!0:(t.append(rh(p,d,i),u(v)),!1)}const f=[],b=Object.assign(Bx,{defaultVisitor:c,convertValue:u,isVisitable:Bu});function y(v,d){if(!Y.isUndefined(v)){if(f.indexOf(v)!==-1)throw Error("Circular reference detected in "+d.join("."));f.push(v),Y.forEach(v,function(h,g){(!(Y.isUndefined(h)||h===null)&&o.call(t,h,Y.isString(g)?g.trim():g,d,b))===!0&&y(h,d?d.concat(g):[g])}),f.pop()}}if(!Y.isObject(e))throw new TypeError("data must be an object");return y(e),t}function oh(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function ju(e,t){this._pairs=[],e&&ks(e,this,t)}const ih=ju.prototype;ih.append=function(t,n){this._pairs.push([t,n])},ih.toString=function(t){const n=t?function(r){return t.call(this,r,oh)}:oh;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function jx(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ah(e,t,n){if(!t)return e;const r=n&&n.encode||jx,o=n&&n.serialize;let i;if(o?i=o(t,n):i=Y.isURLSearchParams(t)?t.toString():new ju(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Vx{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Y.forEach(this.handlers,function(r){r!==null&&t(r)})}}var sh=Vx,lh={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Gx=typeof URLSearchParams<"u"?URLSearchParams:ju,Wx=typeof FormData<"u"?FormData:null,Hx=typeof Blob<"u"?Blob:null,zx={isBrowser:!0,classes:{URLSearchParams:Gx,FormData:Wx,Blob:Hx},protocols:["http","https","file","blob","url","data"]};const Vu=typeof window<"u"&&typeof document<"u",Gu=typeof navigator=="object"&&navigator||void 0,Xx=Vu&&(!Gu||["ReactNative","NativeScript","NS"].indexOf(Gu.product)<0),Zx=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Yx=Vu&&window.location.href||"http://localhost";var Ux=Object.freeze({__proto__:null,hasBrowserEnv:Vu,hasStandardBrowserWebWorkerEnv:Zx,hasStandardBrowserEnv:Xx,navigator:Gu,origin:Yx}),In={...Ux,...zx};function qx(e,t){return ks(e,new In.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return In.isNode&&Y.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Jx(e){return Y.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Qx(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function uh(e){function t(n,r,o,i){let a=n[i++];if(a==="__proto__")return!0;const l=Number.isFinite(+a),s=i>=n.length;return a=!a&&Y.isArray(o)?o.length:a,s?(Y.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!l):((!o[a]||!Y.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&&Y.isArray(o[a])&&(o[a]=Qx(o[a])),!l)}if(Y.isFormData(e)&&Y.isFunction(e.entries)){const n={};return Y.forEachEntry(e,(r,o)=>{t(Jx(r),o,n,0)}),n}return null}function $x(e,t,n){if(Y.isString(e))try{return(t||JSON.parse)(e),Y.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const Wu={transitional:lh,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=Y.isObject(t);if(i&&Y.isHTMLForm(t)&&(t=new FormData(t)),Y.isFormData(t))return o?JSON.stringify(uh(t)):t;if(Y.isArrayBuffer(t)||Y.isBuffer(t)||Y.isStream(t)||Y.isFile(t)||Y.isBlob(t)||Y.isReadableStream(t))return t;if(Y.isArrayBufferView(t))return t.buffer;if(Y.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return qx(t,this.formSerializer).toString();if((l=Y.isFileList(t))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return ks(l?{"files[]":t}:t,s&&new s,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),$x(t)):t}],transformResponse:[function(t){const n=this.transitional||Wu.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(Y.isResponse(t)||Y.isReadableStream(t))return t;if(t&&Y.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(a)throw l.name==="SyntaxError"?je.from(l,je.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:In.classes.FormData,Blob:In.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Y.forEach(["delete","get","head","post","put","patch"],e=>{Wu.headers[e]={}});var Hu=Wu;const Kx=Y.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var eC=e=>{const t={};let n,r,o;return e&&e.split(`
|
|
63
|
+
`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&Kx[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};const ch=Symbol("internals");function ga(e){return e&&String(e).trim().toLowerCase()}function Ls(e){return e===!1||e==null?e:Y.isArray(e)?e.map(Ls):String(e)}function tC(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const nC=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function zu(e,t,n,r,o){if(Y.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Y.isString(t)){if(Y.isString(r))return t.indexOf(r)!==-1;if(Y.isRegExp(r))return r.test(t)}}function rC(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function oC(e,t){const n=Y.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}class Fs{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(l,s,u){const c=ga(s);if(!c)throw new Error("header name must be a non-empty string");const f=Y.findKey(o,c);(!f||o[f]===void 0||u===!0||u===void 0&&o[f]!==!1)&&(o[f||s]=Ls(l))}const a=(l,s)=>Y.forEach(l,(u,c)=>i(u,c,s));if(Y.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(Y.isString(t)&&(t=t.trim())&&!nC(t))a(eC(t),n);else if(Y.isHeaders(t))for(const[l,s]of t.entries())i(s,l,r);else t!=null&&i(n,t,r);return this}get(t,n){if(t=ga(t),t){const r=Y.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return tC(o);if(Y.isFunction(n))return n.call(this,o,r);if(Y.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ga(t),t){const r=Y.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||zu(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(a){if(a=ga(a),a){const l=Y.findKey(r,a);l&&(!n||zu(r,r[l],l,n))&&(delete r[l],o=!0)}}return Y.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||zu(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return Y.forEach(this,(o,i)=>{const a=Y.findKey(r,i);if(a){n[a]=Ls(o),delete n[i];return}const l=t?rC(i):String(i).trim();l!==i&&delete n[i],n[l]=Ls(o),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Y.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Y.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
64
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[ch]=this[ch]={accessors:{}}).accessors,o=this.prototype;function i(a){const l=ga(a);r[l]||(oC(o,a),r[l]=!0)}return Y.isArray(t)?t.forEach(i):i(t),this}}Fs.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Y.reduceDescriptors(Fs.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),Y.freezeMethods(Fs);var or=Fs;function Xu(e,t){const n=this||Hu,r=t||n,o=or.from(r.headers);let i=r.data;return Y.forEach(e,function(l){i=l.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function dh(e){return!!(e&&e.__CANCEL__)}function li(e,t,n){je.call(this,e??"canceled",je.ERR_CANCELED,t,n),this.name="CanceledError"}Y.inherits(li,je,{__CANCEL__:!0});function fh(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new je("Request failed with status code "+n.status,[je.ERR_BAD_REQUEST,je.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function iC(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function aC(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(s){const u=Date.now(),c=r[i];a||(a=u),n[o]=s,r[o]=u;let f=i,b=0;for(;f!==o;)b+=n[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-a<t)return;const y=c&&u-c;return y?Math.round(b*1e3/y):void 0}}function sC(e,t){let n=0,r=1e3/t,o,i;const a=(u,c=Date.now())=>{n=c,o=null,i&&(clearTimeout(i),i=null),e.apply(null,u)};return[(...u)=>{const c=Date.now(),f=c-n;f>=r?a(u,c):(o=u,i||(i=setTimeout(()=>{i=null,a(o)},r-f)))},()=>o&&a(o)]}const Ms=(e,t,n=3)=>{let r=0;const o=aC(50,250);return sC(i=>{const a=i.loaded,l=i.lengthComputable?i.total:void 0,s=a-r,u=o(s),c=a<=l;r=a;const f={loaded:a,total:l,progress:l?a/l:void 0,bytes:s,rate:u||void 0,estimated:u&&l&&c?(l-a)/u:void 0,event:i,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},n)},ph=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},hh=e=>(...t)=>Y.asap(()=>e(...t));var lC=In.hasStandardBrowserEnv?function(){const t=In.navigator&&/(msie|trident)/i.test(In.navigator.userAgent),n=document.createElement("a");let r;function o(i){let a=i;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(a){const l=Y.isString(a)?o(a):a;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}(),uC=In.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Y.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Y.isString(r)&&a.push("path="+r),Y.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function cC(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function dC(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function gh(e,t){return e&&!cC(t)?dC(e,t):t}const mh=e=>e instanceof or?{...e}:e;function Mo(e,t){t=t||{};const n={};function r(u,c,f){return Y.isPlainObject(u)&&Y.isPlainObject(c)?Y.merge.call({caseless:f},u,c):Y.isPlainObject(c)?Y.merge({},c):Y.isArray(c)?c.slice():c}function o(u,c,f){if(Y.isUndefined(c)){if(!Y.isUndefined(u))return r(void 0,u,f)}else return r(u,c,f)}function i(u,c){if(!Y.isUndefined(c))return r(void 0,c)}function a(u,c){if(Y.isUndefined(c)){if(!Y.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function l(u,c,f){if(f in t)return r(u,c);if(f in e)return r(void 0,u)}const s={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(u,c)=>o(mh(u),mh(c),!0)};return Y.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=s[c]||o,b=f(e[c],t[c],c);Y.isUndefined(b)&&f!==l||(n[c]=b)}),n}var bh=e=>{const t=Mo({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:l}=t;t.headers=a=or.from(a),t.url=ah(gh(t.baseURL,t.url),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let s;if(Y.isFormData(n)){if(In.hasStandardBrowserEnv||In.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((s=a.getContentType())!==!1){const[u,...c]=s?s.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...c].join("; "))}}if(In.hasStandardBrowserEnv&&(r&&Y.isFunction(r)&&(r=r(t)),r||r!==!1&&lC(t.url))){const u=o&&i&&uC.read(i);u&&a.set(o,u)}return t},fC=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const o=bh(e);let i=o.data;const a=or.from(o.headers).normalize();let{responseType:l,onUploadProgress:s,onDownloadProgress:u}=o,c,f,b,y,v;function d(){y&&y(),v&&v(),o.cancelToken&&o.cancelToken.unsubscribe(c),o.signal&&o.signal.removeEventListener("abort",c)}let p=new XMLHttpRequest;p.open(o.method.toUpperCase(),o.url,!0),p.timeout=o.timeout;function h(){if(!p)return;const m=or.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),x={data:!l||l==="text"||l==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:m,config:e,request:p};fh(function(T){n(T),d()},function(T){r(T),d()},x),p=null}"onloadend"in p?p.onloadend=h:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(h)},p.onabort=function(){p&&(r(new je("Request aborted",je.ECONNABORTED,e,p)),p=null)},p.onerror=function(){r(new je("Network Error",je.ERR_NETWORK,e,p)),p=null},p.ontimeout=function(){let E=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const x=o.transitional||lh;o.timeoutErrorMessage&&(E=o.timeoutErrorMessage),r(new je(E,x.clarifyTimeoutError?je.ETIMEDOUT:je.ECONNABORTED,e,p)),p=null},i===void 0&&a.setContentType(null),"setRequestHeader"in p&&Y.forEach(a.toJSON(),function(E,x){p.setRequestHeader(x,E)}),Y.isUndefined(o.withCredentials)||(p.withCredentials=!!o.withCredentials),l&&l!=="json"&&(p.responseType=o.responseType),u&&([b,v]=Ms(u,!0),p.addEventListener("progress",b)),s&&p.upload&&([f,y]=Ms(s),p.upload.addEventListener("progress",f),p.upload.addEventListener("loadend",y)),(o.cancelToken||o.signal)&&(c=m=>{p&&(r(!m||m.type?new li(null,e,p):m),p.abort(),p=null)},o.cancelToken&&o.cancelToken.subscribe(c),o.signal&&(o.signal.aborted?c():o.signal.addEventListener("abort",c)));const g=iC(o.url);if(g&&In.protocols.indexOf(g)===-1){r(new je("Unsupported protocol "+g+":",je.ERR_BAD_REQUEST,e));return}p.send(i||null)})},pC=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(u){if(!o){o=!0,l();const c=u instanceof Error?u:this.reason;r.abort(c instanceof je?c:new li(c instanceof Error?c.message:c))}};let a=t&&setTimeout(()=>{a=null,i(new je(`timeout ${t} of ms exceeded`,je.ETIMEDOUT))},t);const l=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),e=null)};e.forEach(u=>u.addEventListener("abort",i));const{signal:s}=r;return s.unsubscribe=()=>Y.asap(l),s}};const hC=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},gC=async function*(e,t){for await(const n of mC(e))yield*hC(n,t)},mC=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},vh=(e,t,n,r)=>{const o=gC(e,t);let i=0,a,l=s=>{a||(a=!0,r&&r(s))};return new ReadableStream({async pull(s){try{const{done:u,value:c}=await o.next();if(u){l(),s.close();return}let f=c.byteLength;if(n){let b=i+=f;n(b)}s.enqueue(new Uint8Array(c))}catch(u){throw l(u),u}},cancel(s){return l(s),o.return()}},{highWaterMark:2})},Bs=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",yh=Bs&&typeof ReadableStream=="function",bC=Bs&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Eh=(e,...t)=>{try{return!!e(...t)}catch{return!1}},vC=yh&&Eh(()=>{let e=!1;const t=new Request(In.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),xh=64*1024,Zu=yh&&Eh(()=>Y.isReadableStream(new Response("").body)),js={stream:Zu&&(e=>e.body)};Bs&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!js[t]&&(js[t]=Y.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new je(`Response type '${t}' is not supported`,je.ERR_NOT_SUPPORT,r)})})})(new Response);const yC=async e=>{if(e==null)return 0;if(Y.isBlob(e))return e.size;if(Y.isSpecCompliantForm(e))return(await new Request(In.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Y.isArrayBufferView(e)||Y.isArrayBuffer(e))return e.byteLength;if(Y.isURLSearchParams(e)&&(e=e+""),Y.isString(e))return(await bC(e)).byteLength},EC=async(e,t)=>{const n=Y.toFiniteNumber(e.getContentLength());return n??yC(t)};var xC=Bs&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:l,onUploadProgress:s,responseType:u,headers:c,withCredentials:f="same-origin",fetchOptions:b}=bh(e);u=u?(u+"").toLowerCase():"text";let y=pC([o,i&&i.toAbortSignal()],a),v;const d=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let p;try{if(s&&vC&&n!=="get"&&n!=="head"&&(p=await EC(c,r))!==0){let x=new Request(t,{method:"POST",body:r,duplex:"half"}),A;if(Y.isFormData(r)&&(A=x.headers.get("content-type"))&&c.setContentType(A),x.body){const[T,C]=ph(p,Ms(hh(s)));r=vh(x.body,xh,T,C)}}Y.isString(f)||(f=f?"include":"omit");const h="credentials"in Request.prototype;v=new Request(t,{...b,signal:y,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",credentials:h?f:void 0});let g=await fetch(v);const m=Zu&&(u==="stream"||u==="response");if(Zu&&(l||m&&d)){const x={};["status","statusText","headers"].forEach(O=>{x[O]=g[O]});const A=Y.toFiniteNumber(g.headers.get("content-length")),[T,C]=l&&ph(A,Ms(hh(l),!0))||[];g=new Response(vh(g.body,xh,T,()=>{C&&C(),d&&d()}),x)}u=u||"text";let E=await js[Y.findKey(js,u)||"text"](g,e);return!m&&d&&d(),await new Promise((x,A)=>{fh(x,A,{data:E,headers:or.from(g.headers),status:g.status,statusText:g.statusText,config:e,request:v})})}catch(h){throw d&&d(),h&&h.name==="TypeError"&&/fetch/i.test(h.message)?Object.assign(new je("Network Error",je.ERR_NETWORK,e,v),{cause:h.cause||h}):je.from(h,h&&h.code,e,v)}});const Yu={http:Fx,xhr:fC,fetch:xC};Y.forEach(Yu,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ch=e=>`- ${e}`,CC=e=>Y.isFunction(e)||e===null||e===!1;var wh={getAdapter:e=>{e=Y.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){n=e[i];let a;if(r=n,!CC(n)&&(r=Yu[(a=String(n)).toLowerCase()],r===void 0))throw new je(`Unknown adapter '${a}'`);if(r)break;o[a||"#"+i]=r}if(!r){const i=Object.entries(o).map(([l,s])=>`adapter ${l} `+(s===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since :
|
|
65
65
|
`+i.map(Ch).join(`
|
|
66
|
-
`):" "+Ch(i[0]):"as no adapter specified";throw new je("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:Yu};function Uu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new li(null,e)}function Ih(e){return Uu(e),e.headers=or.from(e.headers),e.data=Xu.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),wh.getAdapter(e.adapter||Hu.adapter)(e).then(function(r){return Uu(e),r.data=Xu.call(e,e.transformResponse,r),r.headers=or.from(r.headers),r},function(r){return dh(r)||(Uu(e),r&&r.response&&(r.response.data=Xu.call(e,e.transformResponse,r.response),r.response.headers=or.from(r.response.headers))),Promise.reject(r)})}const Sh="1.7.7",qu={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{qu[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Th={};qu.transitional=function(t,n,r){function o(i,a){return"[Axios v"+Sh+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,
|
|
67
|
-
`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Mo(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&Ju.assertOptions(r,{silentJSONParsing:eo.transitional(eo.boolean),forcedJSONParsing:eo.transitional(eo.boolean),clarifyTimeoutError:eo.transitional(eo.boolean)},!1),o!=null&&(Y.isFunction(o)?n.paramsSerializer={serialize:o}:Ju.assertOptions(o,{encode:eo.function,serialize:eo.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&Y.merge(i.common,i[n.method]);i&&Y.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),n.headers=or.concat(a,i);const s=[];let l=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(n)===!1||(l=l&&f.synchronous,s.unshift(f.fulfilled,f.rejected))});const u=[];this.interceptors.response.forEach(function(f){u.push(f.fulfilled,f.rejected)});let c,d=0,v;if(!l){const g=[Ih.bind(this),void 0];for(g.unshift.apply(g,s),g.push.apply(g,u),v=g.length,c=Promise.resolve(n);d<v;)c=c.then(g[d++],g[d++]);return c}v=s.length;let y=n;for(d=0;d<v;){const g=s[d++],f=s[d++];try{y=g(y)}catch(p){f.call(this,p);break}}try{c=Ih.call(this,y)}catch(g){return Promise.reject(g)}for(d=0,v=u.length;d<v;)c=c.then(u[d++],u[d++]);return c}getUri(t){t=Mo(this.defaults,t);const n=gh(t.baseURL,t.url);return ah(n,t.params,t.paramsSerializer)}};Y.forEach(["delete","get","head","options"],function(t){Vs.prototype[t]=function(n,r){return this.request(Mo(r||{},{method:t,url:n,data:(r||{}).data}))}}),Y.forEach(["post","put","patch"],function(t){function n(r){return function(i,a,s){return this.request(Mo(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Vs.prototype[t]=n(),Vs.prototype[t+"Form"]=n(!0)});var Gs=Vs;class Qu{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(s=>{r.subscribe(s),i=s}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,s){r.reason||(r.reason=new li(i,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Qu(function(o){t=o}),cancel:t}}}var IC=Qu;function SC(e){return function(n){return e.apply(null,n)}}function TC(e){return Y.isObject(e)&&e.isAxiosError===!0}const $u={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries($u).forEach(([e,t])=>{$u[t]=e});var AC=$u;function Ah(e){const t=new Gs(e),n=zp(Gs.prototype.request,t);return Y.extend(n,Gs.prototype,t,{allOwnKeys:!0}),Y.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Ah(Mo(e,o))},n}const Ft=Ah(Hu);Ft.Axios=Gs,Ft.CanceledError=li,Ft.CancelToken=IC,Ft.isCancel=dh,Ft.VERSION=Sh,Ft.toFormData=ks,Ft.AxiosError=je,Ft.Cancel=Ft.CanceledError,Ft.all=function(t){return Promise.all(t)},Ft.spread=SC,Ft.isAxiosError=TC,Ft.mergeConfig=Mo,Ft.AxiosHeaders=or,Ft.formToJSON=e=>uh(Y.isHTMLForm(e)?new FormData(e):e),Ft.getAdapter=wh.getAdapter,Ft.HttpStatusCode=AC,Ft.default=Ft;var _h=Ft,et={},to={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PLATFORM=e.TENANT_PLATFORM=e.API_CALL_ORIGIN=e.TIERS=e.APP_UI=e.CONFIG_HIVER=e.DEFAULT_INIT_CONFIG_HIVER=e.TWO_MINUTES_IN_MS=e.REFETCH_CHECK_DELAY=e.RETRY_DELAY_IN_CASE_OF_CORRUPTED_EXPIRY=e.INITIAL_RETRY_DELAY=e.MAX_BACKOFF_LIMIT=e.MAX_CONFLICT_RETRY_DELAY=e.MAX_RETRY_DELAY=e.GET_METHOD=void 0,e.GET_METHOD="GET",e.MAX_RETRY_DELAY=18e4,e.MAX_CONFLICT_RETRY_DELAY=63e3,e.MAX_BACKOFF_LIMIT=8e3,e.INITIAL_RETRY_DELAY=1e3,e.RETRY_DELAY_IN_CASE_OF_CORRUPTED_EXPIRY=3e3,e.REFETCH_CHECK_DELAY=168e4,e.TWO_MINUTES_IN_MS=2*60*1e3,e.DEFAULT_INIT_CONFIG_HIVER={getToken:!0,isHiverApiDomain:!0,fetchCsrfToken:function(){return""}},e.CONFIG_HIVER={getToken:!1,fetchCsrfToken:function(){return""},isHiverApiDomain:!0},e.APP_UI={COLLAB_SPACE:"collab-space",DEFAULT:"default"},e.TIERS={DEV:"dev",SIT:"sit",QA:"qa",PRODUCTION:"production",PROD:"prod"},e.API_CALL_ORIGIN={API_RETRY:"Api Retry"},e.TENANT_PLATFORM={GMAIL:"GMAIL",HIVERWEB:"HIVERWEB"},function(t){t[t.WEB=0]="WEB",t[t.MOBILE=1]="MOBILE"}(e.PLATFORM||(e.PLATFORM={}))})(to);var Sn={};Object.defineProperty(Sn,"__esModule",{value:!0}),Sn.getProdHqConfig=Sn.getProdApiConfig=Sn.getSitHqConfig=Sn.getSitApiConfig=Sn.getDevHqConfig=Sn.getDevApiConfig=void 0;var ui={heimdallTokenFetch:"/v1/token/get",heimdallLogin:"/v1/login/code",heimdallLogout:"/v1/logout",v2Login:"/api/auth/login/code",hotLogin:"/api/auth/login/code"},_C=function(){return{v2Url:"https://v2dev.hiver.space",heimdallUrl:"https://dev.hiver.space/api/heimdall-api",hotUrl:"http://local.hiverhq.co.in:3000",apiEndpoints:ui}};Sn.getDevApiConfig=_C;var OC=function(){return{v2Url:"https://v2dev.hiver.space",heimdallUrl:"https://dev.hiver.space/api/heimdall-api2",hotUrl:"http://local.hiverhq.co.in:3000",apiEndpoints:ui}};Sn.getDevHqConfig=OC;var RC=function(e){return{v2Url:"https://v2".concat(e,".hiver.space"),heimdallUrl:"https://".concat(e,".hiver.space/api/heimdall-api"),hotUrl:"https://api-staging.hiverhq.co.in",apiEndpoints:ui}};Sn.getSitApiConfig=RC;var NC=function(e){return{v2Url:"https://v2".concat(e,".hiver.space"),heimdallUrl:"https://".concat(e,".hiver.space/api/heimdall-api2"),hotUrl:"https://api-staging.hiverhq.co.in",apiEndpoints:ui}};Sn.getSitHqConfig=NC;var DC=function(){return{v2Url:"https://v2.hiverhq.com",heimdallUrl:"https://heimdall.hiverapi.com",hotUrl:"https://app.hiverhq.com",apiEndpoints:ui}};Sn.getProdApiConfig=DC;var PC=function(){return{v2Url:"https://v2.hiverhq.com",heimdallUrl:"https://heimdall2.hiverhq.com",hotUrl:"https://app.hiverhq.com",apiEndpoints:ui}};Sn.getProdHqConfig=PC;var vr={},yr={};Object.defineProperty(yr,"__esModule",{value:!0}),yr.removeValue=yr.getValue=yr.setValue=void 0;var Ku={};function kC(e,t){Ku[e]=t}yr.setValue=kC;function LC(e){return Ku[e]}yr.getValue=LC;function FC(e){delete Ku[e]}yr.removeValue=FC,Object.defineProperty(vr,"__esModule",{value:!0}),vr.removeItemFromStorage=vr.setItemInStorage=vr.getItemFromStorage=void 0;var ci=to,di=yr,MC=function(e,t){switch(t===void 0&&(t=(0,di.getValue)("PLATFORM")),t){case ci.PLATFORM.WEB:return sessionStorage.getItem(e);case ci.PLATFORM.MOBILE:return(0,di.getValue)(e);default:throw Error("Invalid PLATFORM ".concat(t))}};vr.getItemFromStorage=MC;var BC=function(e,t,n){switch(n===void 0&&(n=(0,di.getValue)("PLATFORM")),n){case ci.PLATFORM.WEB:return sessionStorage.setItem(e,t);case ci.PLATFORM.MOBILE:return(0,di.setValue)(e,t);default:throw Error("Invalid PLATFORM ".concat(n))}};vr.setItemInStorage=BC;var jC=function(e,t){switch(t===void 0&&(t=(0,di.getValue)("PLATFORM")),t){case ci.PLATFORM.WEB:sessionStorage.removeItem(e);break;case ci.PLATFORM.MOBILE:(0,di.removeValue)(e);break;default:throw Error("Invalid PLATFORM ".concat(t))}};vr.removeItemFromStorage=jC;var VC=Be&&Be.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(c){try{u(r.next(c))}catch(d){a(d)}}function l(c){try{u(r.throw(c))}catch(d){a(d)}}function u(c){c.done?i(c.value):o(c.value).then(s,l)}u((r=r.apply(e,t||[])).next())})},GC=Be&&Be.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(c){return l([u,c])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(n=0)),n;)try{if(r=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,o=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){n.label=u[1];break}if(u[0]===6&&n.label<i[1]){n.label=i[1],i=u;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(u);break}i[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(c){u=[6,c],o=0}finally{r=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}};Object.defineProperty(et,"__esModule",{value:!0}),et.expireToken=et.invalidateToken=et.validateToken=et.validateAccount=et.getConfig=et.introduceDelay=et.isTokenInExpiryWindow=et.getStoredAuthData=et.setUserDetails=et.getRefreshInterval=et.setTokenAndExpiry=et.getRandomDelay=et.hasValidToken=void 0;var jr=to,fi=Sn,Gn=vr,ec=function(){var e=new Date,t=new Date(e.getTime()+e.getTimezoneOffset()*6e4);return t},tc=function(e){var t=parseInt((0,Gn.getItemFromStorage)("hiverAuthUserId")||"0"),n=parseInt((0,Gn.getItemFromStorage)("hiverAuthUserGroupId")||"0"),r=e.userId,o=e.usergroupId;return t===r&&o===n};et.validateAccount=tc;var WC=function(e){var t=tc(e);return!Oh()&&t};et.validateToken=WC;var HC=function(e){return e.apiRetry?e.apiRetry>0:!1};et.invalidateToken=HC;var zC=function(){try{sessionStorage.removeItem("hiverAuthTokenExpiry")}catch{console.log("Heimdall: Unable to Remove token.")}};et.expireToken=zC;var XC=function(e){var t=(0,Gn.getItemFromStorage)("hiverAuthTokenExpiry")||"",n=new Date(t),r=ec(),o=tc(e);return console.log("Heimdall: checking if there is a valid token",r<n&&o),r<n&&o};et.hasValidToken=XC;var ZC=function(){return Math.floor(Math.random()*6e4)+6e4};et.getRandomDelay=ZC;var YC=function(e,t){if(!e||!t)throw new Error("User Id or user group Id not found in the response");(0,Gn.setItemInStorage)("hiverAuthUserId",e),(0,Gn.setItemInStorage)("hiverAuthUserGroupId",t)};et.setUserDetails=YC;var UC=function(e,t){if(!e)throw new Error("Token not found in the response");(0,Gn.setItemInStorage)("hiverAuthToken",e),(0,Gn.setItemInStorage)("hiverAuthTokenExpiry",t)};et.setTokenAndExpiry=UC;var qC=function(){var e=(0,Gn.getItemFromStorage)("hiverAuthTokenExpiry"),t=(0,Gn.getItemFromStorage)("hiverAuthToken"),n=(0,Gn.getItemFromStorage)("hiverAuthUserId"),r=(0,Gn.getItemFromStorage)("hiverAuthUserGroupId");return{token:t,expiryTime:e,userId:n,usergroupId:r}};et.getStoredAuthData=qC;var Oh=function(){var e=(0,Gn.getItemFromStorage)("hiverAuthTokenExpiry")||"";if(!e)return!0;var t=ec(),n=new Date(e),r=4*60*1e3,o=n.getTime()-t.getTime()<r;return console.log({currentTime:t,expiry:n,isInExpiryWindow:o}),o};et.isTokenInExpiryWindow=Oh;var JC=function(e){return VC(void 0,void 0,void 0,function(){return GC(this,function(t){switch(t.label){case 0:return[4,new Promise(function(n){return setTimeout(n,e)})];case 1:return t.sent(),[2]}})})};et.introduceDelay=JC;var QC=function(e,t,n){switch(n===void 0&&(n=!0),t){case jr.TIERS.SIT:case jr.TIERS.QA:return n?(0,fi.getSitApiConfig)(e):(0,fi.getSitHqConfig)(e);case jr.TIERS.PRODUCTION:case jr.TIERS.PROD:return n?(0,fi.getProdApiConfig)():(0,fi.getProdHqConfig)();case jr.TIERS.DEV:default:return n?(0,fi.getDevApiConfig)():(0,fi.getDevHqConfig)()}};et.getConfig=QC;var $C=function(){try{var e=(0,Gn.getItemFromStorage)("hiverAuthTokenExpiry");if(!e)return jr.RETRY_DELAY_IN_CASE_OF_CORRUPTED_EXPIRY;var t=new Date(e),n=ec();return t.getTime()-n.getTime()>jr.TWO_MINUTES_IN_MS?t.getTime()-jr.TWO_MINUTES_IN_MS:t.getTime()-n.getTime()}catch(r){return console.error("Heimdall: Error in getRefreshInterval",r),jr.REFETCH_CHECK_DELAY}};et.getRefreshInterval=$C;var ma={},ir={},Rh;function Nh(){if(Rh)return ir;Rh=1;var e=Be&&Be.__awaiter||function(g,f,p,h){function m(b){return b instanceof p?b:new p(function(E){E(b)})}return new(p||(p=Promise))(function(b,E){function x(C){try{A(h.next(C))}catch(O){E(O)}}function T(C){try{A(h.throw(C))}catch(O){E(O)}}function A(C){C.done?b(C.value):m(C.value).then(x,T)}A((h=h.apply(g,f||[])).next())})},t=Be&&Be.__generator||function(g,f){var p={label:0,sent:function(){if(b[0]&1)throw b[1];return b[1]},trys:[],ops:[]},h,m,b,E;return E={next:x(0),throw:x(1),return:x(2)},typeof Symbol=="function"&&(E[Symbol.iterator]=function(){return this}),E;function x(A){return function(C){return T([A,C])}}function T(A){if(h)throw new TypeError("Generator is already executing.");for(;E&&(E=0,A[0]&&(p=0)),p;)try{if(h=1,m&&(b=A[0]&2?m.return:A[0]?m.throw||((b=m.return)&&b.call(m),0):m.next)&&!(b=b.call(m,A[1])).done)return b;switch(m=0,b&&(A=[A[0]&2,b.value]),A[0]){case 0:case 1:b=A;break;case 4:return p.label++,{value:A[1],done:!1};case 5:p.label++,m=A[1],A=[0];continue;case 7:A=p.ops.pop(),p.trys.pop();continue;default:if(b=p.trys,!(b=b.length>0&&b[b.length-1])&&(A[0]===6||A[0]===2)){p=0;continue}if(A[0]===3&&(!b||A[1]>b[0]&&A[1]<b[3])){p.label=A[1];break}if(A[0]===6&&p.label<b[1]){p.label=b[1],b=A;break}if(b&&p.label<b[2]){p.label=b[2],p.ops.push(A);break}b[2]&&p.ops.pop(),p.trys.pop();continue}A=f.call(g,p)}catch(C){A=[6,C],m=0}finally{h=b=0}if(A[0]&5)throw A[1];return{value:A[0]?A[1]:void 0,done:!0}}};Object.defineProperty(ir,"__esModule",{value:!0}),ir.logoutFromHeimdall=ir.getTenantLoginCode=ir.getLoginToken=ir.getAccessToken=void 0;var n=to,r=Fh(),o=et,i=function(g,f,p,h){var m=(0,o.getStoredAuthData)(),b=p===n.TENANT_PLATFORM.HIVERWEB?n.TENANT_PLATFORM.HIVERWEB:n.TENANT_PLATFORM.GMAIL;return{root_url:g.heimdallUrl,url:g.apiEndpoints.heimdallTokenFetch,method:n.GET_METHOD,headers:{"x-hiver-tenant":b},data:{user_id:f.userId,usergroup_id:f.usergroupId,access_token:(m==null?void 0:m.token)||"",source:h}}},a=function(g,f,p,h,m){var b=p===n.TENANT_PLATFORM.HIVERWEB?n.TENANT_PLATFORM.HIVERWEB:n.TENANT_PLATFORM.GMAIL;return{root_url:f.heimdallUrl,url:f.apiEndpoints.heimdallLogin,method:n.GET_METHOD,data:{code:g},headers:{"x-hiver-tenant":b,"x-hiver-userid":h,"x-hiver-usergroupid":m}}},s=function(g,f){var p=f===n.TENANT_PLATFORM.HIVERWEB?n.TENANT_PLATFORM.HIVERWEB:n.TENANT_PLATFORM.GMAIL;return{root_url:g.heimdallUrl,url:g.apiEndpoints.heimdallLogout,method:n.GET_METHOD,headers:{"x-hiver-tenant":p}}},l=function(g){return parseInt(g,10)},u=function(g,f,p,h){return{root_url:p===n.TENANT_PLATFORM.HIVERWEB?g.hotUrl:g.v2Url,url:p===n.TENANT_PLATFORM.HIVERWEB?g.apiEndpoints.hotLogin:g.apiEndpoints.v2Login,method:n.GET_METHOD,data:{usersession:l(f.userId),app:h||n.APP_UI.DEFAULT}}},c=function(g,f,p,h,m){return e(void 0,void 0,void 0,function(){var b,E,x,T,A,C,O;return t(this,function(B){switch(B.label){case 0:console.log("GETTOKEN tenantPlatform -> ",h),B.label=1;case 1:return B.trys.push([1,5,,6]),!(0,o.validateToken)(p)||(0,o.invalidateToken)(p)?(console.log("HEIMDALL: No valid token, fetching token"),b=i(f,p,h,m),[4,(0,r.performAxiosCall)(b)]):[3,3];case 2:return E=B.sent(),[2,{atToken:(T=E==null?void 0:E.data.at)===null||T===void 0?void 0:T.token,expiryTime:(A=E==null?void 0:E.data.at)===null||A===void 0?void 0:A.expires_at,userId:(C=E==null?void 0:E.data)===null||C===void 0?void 0:C.user_id,userGroupId:(O=E==null?void 0:E.data)===null||O===void 0?void 0:O.usergroup_id}];case 3:return console.log("Heimdall: Valid token already exists"),[2,{}];case 4:return[3,6];case 5:throw x=B.sent(),x;case 6:return[2]}})})};ir.getAccessToken=c;var d=function(g,f,p,h,m,b){return e(void 0,void 0,void 0,function(){var E,x,T,A,C,O,B;return t(this,function(M){switch(M.label){case 0:E=a(g,p,h,m,b),M.label=1;case 1:return M.trys.push([1,3,,4]),[4,(0,r.performAxiosCall)(E)];case 2:return x=M.sent(),[2,{userId:(A=x==null?void 0:x.data)===null||A===void 0?void 0:A.user_id,userGroupId:(C=x==null?void 0:x.data)===null||C===void 0?void 0:C.usergroup_id,atToken:(O=x==null?void 0:x.data.at)===null||O===void 0?void 0:O.token,expiryTime:(B=x==null?void 0:x.data.at)===null||B===void 0?void 0:B.expires_at}];case 3:throw T=M.sent(),T;case 4:return[2]}})})};ir.getLoginToken=d;var v=function(g,f,p,h,m){return e(void 0,void 0,void 0,function(){var b,E,x;return t(this,function(T){switch(T.label){case 0:return T.trys.push([0,2,,3]),console.log("ERROR debug: in getTenantLoginCode:",m),b=u(f,p,h,m),[4,(0,r.performAxiosCall)(b)];case 1:return E=T.sent(),[2,E==null?void 0:E.data.code];case 2:throw x=T.sent(),x;case 3:return[2]}})})};ir.getTenantLoginCode=v;var y=function(g,f,p){return p===void 0&&(p=0),e(void 0,void 0,void 0,function(){var h,m,b;return t(this,function(E){switch(E.label){case 0:return E.trys.push([0,2,,5]),h=s(g,f),[4,(0,r.performAxiosCall)(h)];case 1:return m=E.sent(),[2,m==null?void 0:m.status];case 2:return b=E.sent(),p<2?[4,y(g,f,p+1)]:[3,4];case 3:E.sent(),E.label=4;case 4:throw b;case 5:return[2]}})})};return ir.logoutFromHeimdall=y,ir}var Ws={},KC=Be&&Be.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(c){try{u(r.next(c))}catch(d){a(d)}}function l(c){try{u(r.throw(c))}catch(d){a(d)}}function u(c){c.done?i(c.value):o(c.value).then(s,l)}u((r=r.apply(e,t||[])).next())})},ew=Be&&Be.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(c){return l([u,c])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(n=0)),n;)try{if(r=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,o=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){n.label=u[1];break}if(u[0]===6&&n.label<i[1]){n.label=i[1],i=u;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(u);break}i[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(c){u=[6,c],o=0}finally{r=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}};Object.defineProperty(Ws,"__esModule",{value:!0}),Ws.subscribeToOnlineEvent=void 0;var Dh=to,tw=yr,nw=function(e,t){switch(t===void 0&&(t=(0,tw.getValue)("PLATFORM")),console.log("Online status detected. Fetching token..."),t){case Dh.PLATFORM.WEB:return window.addEventListener("online",function(){return KC(void 0,void 0,void 0,function(){return ew(this,function(n){switch(n.label){case 0:return console.log("Online status detected. Fetching token..."),[4,e()];case 1:return n.sent(),[2]}})})});case Dh.PLATFORM.MOBILE:e();return;default:throw Error("Invalid PLATFORM ".concat(t))}};Ws.subscribeToOnlineEvent=nw;var Ph;function kh(){if(Ph)return ma;Ph=1;var e=Be&&Be.__awaiter||function(g,f,p,h){function m(b){return b instanceof p?b:new p(function(E){E(b)})}return new(p||(p=Promise))(function(b,E){function x(C){try{A(h.next(C))}catch(O){E(O)}}function T(C){try{A(h.throw(C))}catch(O){E(O)}}function A(C){C.done?b(C.value):m(C.value).then(x,T)}A((h=h.apply(g,f||[])).next())})},t=Be&&Be.__generator||function(g,f){var p={label:0,sent:function(){if(b[0]&1)throw b[1];return b[1]},trys:[],ops:[]},h,m,b,E;return E={next:x(0),throw:x(1),return:x(2)},typeof Symbol=="function"&&(E[Symbol.iterator]=function(){return this}),E;function x(A){return function(C){return T([A,C])}}function T(A){if(h)throw new TypeError("Generator is already executing.");for(;E&&(E=0,A[0]&&(p=0)),p;)try{if(h=1,m&&(b=A[0]&2?m.return:A[0]?m.throw||((b=m.return)&&b.call(m),0):m.next)&&!(b=b.call(m,A[1])).done)return b;switch(m=0,b&&(A=[A[0]&2,b.value]),A[0]){case 0:case 1:b=A;break;case 4:return p.label++,{value:A[1],done:!1};case 5:p.label++,m=A[1],A=[0];continue;case 7:A=p.ops.pop(),p.trys.pop();continue;default:if(b=p.trys,!(b=b.length>0&&b[b.length-1])&&(A[0]===6||A[0]===2)){p=0;continue}if(A[0]===3&&(!b||A[1]>b[0]&&A[1]<b[3])){p.label=A[1];break}if(A[0]===6&&p.label<b[1]){p.label=b[1],b=A;break}if(b&&p.label<b[2]){p.label=b[2],p.ops.push(A);break}b[2]&&p.ops.pop(),p.trys.pop();continue}A=f.call(g,p)}catch(C){A=[6,C],m=0}finally{h=b=0}if(A[0]&5)throw A[1];return{value:A[0]?A[1]:void 0,done:!0}}};Object.defineProperty(ma,"__esModule",{value:!0}),ma.fetchAccessToken=void 0;var n=Nh(),r=to,o=et,i=Ws,a,s,l,u=function(g,f,p,h,m,b){return b===void 0&&(b=r.APP_UI.DEFAULT),e(void 0,void 0,void 0,function(){var E,x,T,A,C,O,B,M,Q;return t(this,function(G){switch(G.label){case 0:E=2,G.label=1;case 1:return G.trys.push([1,7,,12]),console.log("ERROR debug: in login:",b,h),x=void 0,m?[4,m()]:[3,3];case 2:return x=G.sent(),[3,5];case 3:return[4,(0,n.getTenantLoginCode)(r.CONFIG_HIVER,g,f,h,b)];case 4:x=G.sent(),G.label=5;case 5:return[4,(0,n.getLoginToken)(x,r.CONFIG_HIVER,g,h,f.userId,f.usergroupId)];case 6:return T=G.sent(),A=T.userId,C=T.userGroupId,O=T.atToken,B=T.expiryTime,(0,o.setTokenAndExpiry)(O,B),(0,o.setUserDetails)(A,C),[3,12];case 7:M=G.sent(),console.log("ERROR debug: in error login:",M,b),Q=p,G.label=8;case 8:return Q<E?[4,u(g,f,Q+1,h,m,b)]:[3,11];case 9:G.sent(),G.label=10;case 10:return Q++,[3,8];case 11:throw M;case 12:return[2]}})})},c=function(g,f,p,h,m){return e(void 0,void 0,void 0,function(){var b,E,x,T;return t(this,function(A){switch(A.label){case 0:return f<r.MAX_CONFLICT_RETRY_DELAY?[4,new Promise(function(C){return setTimeout(C,g)})]:[3,3];case 1:return A.sent(),f+=g,g*2<=r.MAX_BACKOFF_LIMIT?g*=2:g=r.MAX_BACKOFF_LIMIT,console.log("Heimdall: Fetch token post doubling conflict retry delay",g),b=p.retryDelay,E=p.configs,x=p.apiParams,T=p.appUI,[4,d(b,g,f,E,x,h,m,T)];case 2:A.sent(),A.label=3;case 3:return[2]}})})},d=function(g,f,p,h,m,b,E,x,T){return x===void 0&&(x="default"),e(void 0,void 0,void 0,function(){var A,C,O,B,M,Q,G,W,q,ee,ue,se,ve,H;return t(this,function(te){switch(te.label){case 0:return te.trys.push([0,2,,12]),console.log("Heimdall: Interval Set on fetch token in fetchAndSaveToken:",l),[4,(0,n.getAccessToken)(r.CONFIG_HIVER,h,m,b,x)];case 1:return A=te.sent(),C=A.atToken,O=A.expiryTime,B=A.userId,M=A.userGroupId,C&&O&&(0,o.setTokenAndExpiry)(C,O),B&&M&&(0,o.setUserDetails)(B,M),g=r.INITIAL_RETRY_DELAY,f=r.INITIAL_RETRY_DELAY,p=0,[3,12];case 2:return Q=te.sent(),console.log("ERROR: Heimdall fetch token",Q),((q=Q.response)===null||q===void 0?void 0:q.status)===401||((ee=Q.request)===null||ee===void 0?void 0:ee.status)===401?(G=1,[4,u(h,m,G,b,E,T)]):[3,4];case 3:return te.sent(),[3,11];case 4:return((ue=Q.response)===null||ue===void 0?void 0:ue.status)===409||((se=Q.request)===null||se===void 0?void 0:se.status)===409?(console.log("Heimdall: Fetching token post 409 in fetch And Save Token"),W={retryDelay:g,configs:h,apiParams:m,appUI:T},[4,c(f,p,W,b,E)]):[3,6];case 5:if(te.sent(),p>=r.MAX_CONFLICT_RETRY_DELAY)throw Q;return[3,11];case 6:if(!(((ve=Q.response)===null||ve===void 0?void 0:ve.status)===422||((H=Q.request)===null||H===void 0?void 0:H.status)===422))return[3,7];throw console.log("ERROR: Throwing error",Q.response.status),Q;case 7:return g<=r.MAX_RETRY_DELAY?[4,new Promise(function(re){return setTimeout(re,g)})]:[3,10];case 8:return te.sent(),g*=2,console.log("Heimdall: Fetch token post doubling retry delay",g),[4,d(g,f,p,h,m,b,E,T)];case 9:return te.sent(),[3,11];case 10:throw Q;case 11:return[3,12];case 12:return[2]}})})},v=function(g,f,p,h,m,b,E,x){return p===void 0&&(p=r.INITIAL_RETRY_DELAY),h===void 0&&(h=r.INITIAL_RETRY_DELAY),e(void 0,void 0,void 0,function(){var T,A,C;return t(this,function(O){switch(O.label){case 0:return O.trys.push([0,4,,5]),T=(0,o.isTokenInExpiryWindow)(),T?(A=(0,o.getRandomDelay)(),[4,(0,o.introduceDelay)(A)]):[3,3];case 1:return O.sent(),console.log("Heimdall: Fetching token - in expiry window"),[4,d(p,h,m,g,f,b,E,x)];case 2:O.sent(),O.label=3;case 3:return[3,5];case 4:throw C=O.sent(),C;case 5:return[2]}})})},y=function(g,f,p,h,m,b,E){return e(void 0,void 0,void 0,function(){var x,T,A,C,O,B;return t(this,function(M){switch(M.label){case 0:a=g,s=f,x=r.INITIAL_RETRY_DELAY,T=r.INITIAL_RETRY_DELAY,A=0,C=(0,o.getConfig)(a,s),console.log("Instance: Fetch Call"),M.label=1;case 1:return M.trys.push([1,3,,4]),[4,d(x,T,A,C,p,h,m,b,E)];case 2:return M.sent(),console.log("Heimdall: Interval Set on fetch token when fetch token is called:",l),clearInterval(l),l=setInterval(function(){return v(C,p,r.INITIAL_RETRY_DELAY,r.INITIAL_RETRY_DELAY,0,h,m,E)},r.REFETCH_CHECK_DELAY),O=function(){return e(void 0,void 0,void 0,function(){return t(this,function(Q){switch(Q.label){case 0:return[4,v(C,p,r.INITIAL_RETRY_DELAY,r.INITIAL_RETRY_DELAY,0,h,m,E)];case 1:return Q.sent(),[2]}})})},console.log("Heimdall: Interval Set on fetch token:",l),(0,i.subscribeToOnlineEvent)(O),[3,4];case 3:return B=M.sent(),console.log("ERROR: Fetching token failed",B),[3,4];case 4:return[2]}})})};return ma.fetchAccessToken=y,ma}var Lh;function Fh(){if(Lh)return Lo;Lh=1;var e=Be&&Be.__assign||function(){return e=Object.assign||function(f){for(var p,h=1,m=arguments.length;h<m;h++){p=arguments[h];for(var b in p)Object.prototype.hasOwnProperty.call(p,b)&&(f[b]=p[b])}return f},e.apply(this,arguments)},t=Be&&Be.__awaiter||function(f,p,h,m){function b(E){return E instanceof h?E:new h(function(x){x(E)})}return new(h||(h=Promise))(function(E,x){function T(O){try{C(m.next(O))}catch(B){x(B)}}function A(O){try{C(m.throw(O))}catch(B){x(B)}}function C(O){O.done?E(O.value):b(O.value).then(T,A)}C((m=m.apply(f,p||[])).next())})},n=Be&&Be.__generator||function(f,p){var h={label:0,sent:function(){if(E[0]&1)throw E[1];return E[1]},trys:[],ops:[]},m,b,E,x;return x={next:T(0),throw:T(1),return:T(2)},typeof Symbol=="function"&&(x[Symbol.iterator]=function(){return this}),x;function T(C){return function(O){return A([C,O])}}function A(C){if(m)throw new TypeError("Generator is already executing.");for(;x&&(x=0,C[0]&&(h=0)),h;)try{if(m=1,b&&(E=C[0]&2?b.return:C[0]?b.throw||((E=b.return)&&E.call(b),0):b.next)&&!(E=E.call(b,C[1])).done)return E;switch(b=0,E&&(C=[C[0]&2,E.value]),C[0]){case 0:case 1:E=C;break;case 4:return h.label++,{value:C[1],done:!1};case 5:h.label++,b=C[1],C=[0];continue;case 7:C=h.ops.pop(),h.trys.pop();continue;default:if(E=h.trys,!(E=E.length>0&&E[E.length-1])&&(C[0]===6||C[0]===2)){h=0;continue}if(C[0]===3&&(!E||C[1]>E[0]&&C[1]<E[3])){h.label=C[1];break}if(C[0]===6&&h.label<E[1]){h.label=E[1],E=C;break}if(E&&h.label<E[2]){h.label=E[2],h.ops.push(C);break}E[2]&&h.ops.pop(),h.trys.pop();continue}C=p.call(f,h)}catch(O){C=[6,O],b=0}finally{m=E=0}if(C[0]&5)throw C[1];return{value:C[0]?C[1]:void 0,done:!0}}};Object.defineProperty(Lo,"__esModule",{value:!0}),Lo.hiverAxiosCall=Lo.performAxiosCall=void 0;var r=_h,o=et,i=kh(),a=vr,s=to,l,u=2,c=function(f,p){var h=p.fetchCsrfToken();f.formData?f.formData.append("_csrf_token",h):(f.data=f.data||{},f.data._csrf_token=h)},d=function(f,p){var h={};!f.method||f.method.toLowerCase()==="get"?h={params:f.params?f.params:f.data}:h=f.params?{params:f,data:f.data}:{data:f.data};var m=e(e({method:f.method,url:"".concat(f.root_url).concat(f.url),headers:f.headers},h),{withCredentials:p,responseType:(f==null?void 0:f.responseType)||""});return m};function v(f,p){return p===void 0&&(p=!0),t(this,void 0,void 0,function(){var h;return n(this,function(m){return h=d(f,p),[2,(0,r.default)(h).then(function(b){return b}).catch(function(b){throw b})]})})}Lo.performAxiosCall=v;function y(f,p,h){return t(this,void 0,void 0,function(){var m,b,E;return n(this,function(x){switch(x.label){case 0:return x.trys.push([0,6,,8]),f.authTokenFetchingInProgress?[3,2]:(f.authTokenFetchingInProgress=!0,m=f.appEnv,b=f.tier,[4,(0,i.fetchAccessToken)(m,b,p,f.tenantPlatform,f.getTokenForLogin,h)]);case 1:return x.sent(),f.authTokenFetchingInProgress=!1,[3,5];case 2:return[4,new Promise(function(T){return setTimeout(T,100)})];case 3:return x.sent(),console.log("Heimdall: Retrying fetchAccessToken after 100ms..."),[4,y(f,p,h)];case 4:x.sent(),x.label=5;case 5:return[3,8];case 6:return E=x.sent(),console.log("Error while fetching Auth Token :",E),f.authTokenFetchingInProgress=!1,[4,y(f,p,h)];case 7:return x.sent(),[3,8];case 8:return[2]}})})}function g(f,p,h,m,b){var E,x;return b===void 0&&(b=0),t(this,void 0,void 0,function(){var T,A,C,O,B,M,Q;return n(this,function(G){switch(G.label){case 0:if(G.trys.push([0,4,,5]),!(h.getToken&&!(0,o.hasValidToken)(p)))return[3,2];if(T=f.appEnv,A=f.tier,!T||!A)throw Error("appEnv or tier missing : ".concat(T,"/").concat(A));return"userId"in p&&"usergroupId"in p?(C={userId:p.userId,usergroupId:p.usergroupId},[4,y(f,C,m)]):[3,2];case 1:G.sent(),G.label=2;case 2:return f.csrfToken&&c(p,h),O=f.tenantPlatform===s.TENANT_PLATFORM.HIVERWEB?s.TENANT_PLATFORM.HIVERWEB:s.TENANT_PLATFORM.GMAIL,p.headers=e(e({},p.headers),{"x-hiver-tenant":O,"x-hiver-userid":(0,a.getItemFromStorage)("hiverAuthUserId")||"0","x-hiver-usergroupid":(0,a.getItemFromStorage)("hiverAuthUserGroupId")||"0"}),h.getToken&&(l=(0,a.getItemFromStorage)("hiverAuthToken")||"",p.headers=e(e({},p.headers),{Authorization:"Bearer ".concat(l)})),console.log("Performing axios call for:",p),[4,v(p,f.withCredentials)];case 3:return B=G.sent(),p.onSuccess&&p.onSuccess(B),[2,B];case 4:if(M=G.sent(),Q=((E=M.response)===null||E===void 0?void 0:E.status)===403||((x=M.request)===null||x===void 0?void 0:x.status)===403,b<u&&Q)return(0,o.expireToken)(),[2,g(f,p,h,m,b+1)];if(b>=u&&Q||!Q)throw p.onFail&&p.onFail(M),console.log("ERROR: Reached make Axios",M),M;return[3,5];case 5:return[2]}})})}return Lo.hiverAxiosCall=g,Lo}var ba={},Et={},Ot={};Object.defineProperty(Ot,"__esModule",{value:!0}),Ot.TIERS=Ot.APP_UI=Ot.CONFIG_HIVER=Ot.REFETCH_CHECK_DELAY=Ot.INITIAL_RETRY_DELAY=Ot.MAX_BACKOFF_LIMIT=Ot.MAX_CONFLICT_RETRY_DELAY=Ot.MAX_RETRY_DELAY=Ot.GET_METHOD=void 0,Ot.GET_METHOD="GET",Ot.MAX_RETRY_DELAY=18e4,Ot.MAX_CONFLICT_RETRY_DELAY=63e3,Ot.MAX_BACKOFF_LIMIT=8e3,Ot.INITIAL_RETRY_DELAY=1e3,Ot.REFETCH_CHECK_DELAY=168e4,Ot.CONFIG_HIVER={getToken:!1,fetchCsrfToken:function(){return""},isHiverApiDomain:!0},Ot.APP_UI={COLLAB_SPACE:"collab-space",DEFAULT:"default"},Ot.TIERS={DEV:"dev",SIT:"sit",PROD:"production"};var Tn={};Object.defineProperty(Tn,"__esModule",{value:!0}),Tn.getProdHqConfig=Tn.getProdApiConfig=Tn.getSitHqConfig=Tn.getSitApiConfig=Tn.getDevHqConfig=Tn.getDevApiConfig=void 0;var pi={heimdallTokenFetch:"/v1/token/get",heimdallLogin:"/v1/login/code",v2Login:"/api/auth/login/code"},rw=function(){return{v2Url:"https://v2dev.hiver.space",heimdallUrl:"https://dev.hiver.space/api/heimdall-api",apiEndpoints:pi}};Tn.getDevApiConfig=rw;var ow=function(){return{v2Url:"https://v2dev.hiver.space",heimdallUrl:"https://dev.hiver.space/api/heimdall-api2",apiEndpoints:pi}};Tn.getDevHqConfig=ow;var iw=function(e){return{v2Url:"https://v2".concat(e,".hiver.space"),heimdallUrl:"https://".concat(e,".hiver.space/api/heimdall-api"),apiEndpoints:pi}};Tn.getSitApiConfig=iw;var aw=function(e){return{v2Url:"https://v2".concat(e,".hiver.space"),heimdallUrl:"https://".concat(e,".hiver.space/api/heimdall-api2"),apiEndpoints:pi}};Tn.getSitHqConfig=aw;var sw=function(){return{v2Url:"https://v2.hiverhq.com",heimdallUrl:"https://heimdall.hiverapi.com",apiEndpoints:pi}};Tn.getProdApiConfig=sw;var lw=function(){return{v2Url:"https://v2.hiverhq.com",heimdallUrl:"https://heimdall2.hiverhq.com",apiEndpoints:pi}};Tn.getProdHqConfig=lw;var uw=Be&&Be.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(c){try{u(r.next(c))}catch(d){a(d)}}function l(c){try{u(r.throw(c))}catch(d){a(d)}}function u(c){c.done?i(c.value):o(c.value).then(s,l)}u((r=r.apply(e,t||[])).next())})},cw=Be&&Be.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(c){return l([u,c])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(n=0)),n;)try{if(r=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,o=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){n.label=u[1];break}if(u[0]===6&&n.label<i[1]){n.label=i[1],i=u;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(u);break}i[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(c){u=[6,c],o=0}finally{r=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}};Object.defineProperty(Et,"__esModule",{value:!0}),Et.expireToken=Et.validateToken=Et.validateAccount=Et.getConfig=Et.introduceDelay=Et.isTokenInExpiryWindow=Et.getStoredAuthData=Et.setUserDetails=Et.setTokenAndExpiry=Et.getRandomDelay=Et.hasValidToken=void 0;var nc=Ot,Bo=Tn,Mh=function(){var e=new Date,t=new Date(e.getTime()+e.getTimezoneOffset()*6e4);return t},rc=function(e){var t=parseInt(sessionStorage.getItem("hiverAuthUserId")||"0"),n=parseInt(sessionStorage.getItem("hiverAuthUserGroupId")||"0"),r=e.userId,o=e.usergroupId;return t===r&&o===n};Et.validateAccount=rc;var dw=function(e){var t=rc(e);return!Bh()&&t};Et.validateToken=dw;var fw=function(){try{sessionStorage.removeItem("hiverAuthTokenExpiry")}catch{console.log("Heimdall: Unable to Remove token.")}};Et.expireToken=fw;var pw=function(e){console.log("Heimdall: checking if there is a valid token");var t=sessionStorage.getItem("hiverAuthTokenExpiry")||"",n=new Date(t),r=Mh(),o=rc(e);return r<n&&o};Et.hasValidToken=pw;var hw=function(){return Math.floor(Math.random()*6e4)+6e4};Et.getRandomDelay=hw;var gw=function(e,t){if(!e||!t)throw new Error("User Id or user group Id not found in the response");sessionStorage.setItem("hiverAuthUserId",e),sessionStorage.setItem("hiverAuthUserGroupId",t)};Et.setUserDetails=gw;var mw=function(e,t){if(!e)throw new Error("Token not found in the response");sessionStorage.setItem("hiverAuthToken",e),sessionStorage.setItem("hiverAuthTokenExpiry",t)};Et.setTokenAndExpiry=mw;var bw=function(){var e=sessionStorage.getItem("hiverAuthTokenExpiry"),t=sessionStorage.getItem("hiverAuthToken"),n=sessionStorage.getItem("hiverAuthUserId"),r=sessionStorage.getItem("hiverAuthUserGroupId");return{token:t,expiryTime:e,userId:n,usergroupId:r}};Et.getStoredAuthData=bw;var Bh=function(){var e=sessionStorage.getItem("hiverAuthTokenExpiry")||"";if(!e)return!0;var t=Mh(),n=new Date(e),r=4*60*1e3,o=n.getTime()-t.getTime()<r;return console.log({currentTime:t,expiry:n,isInExpiryWindow:o}),o};Et.isTokenInExpiryWindow=Bh;var vw=function(e){return uw(void 0,void 0,void 0,function(){return cw(this,function(t){switch(t.label){case 0:return[4,new Promise(function(n){return setTimeout(n,e)})];case 1:return t.sent(),[2]}})})};Et.introduceDelay=vw;var yw=function(e,t,n){switch(t){case nc.TIERS.SIT:return console.log("ISHIVERAPIDOMAIN:",n,(0,Bo.getSitHqConfig)(e)),n?(0,Bo.getSitApiConfig)(e):(0,Bo.getSitHqConfig)(e);case nc.TIERS.PROD:return n?(0,Bo.getProdApiConfig)():(0,Bo.getProdHqConfig)();case nc.TIERS.DEV:default:return n?(0,Bo.getDevApiConfig)():(0,Bo.getDevHqConfig)()}};Et.getConfig=yw;var va={},Vr={},jh;function Ew(){if(jh)return Vr;jh=1;var e=Be&&Be.__awaiter||function(v,y,g,f){function p(h){return h instanceof g?h:new g(function(m){m(h)})}return new(g||(g=Promise))(function(h,m){function b(T){try{x(f.next(T))}catch(A){m(A)}}function E(T){try{x(f.throw(T))}catch(A){m(A)}}function x(T){T.done?h(T.value):p(T.value).then(b,E)}x((f=f.apply(v,y||[])).next())})},t=Be&&Be.__generator||function(v,y){var g={label:0,sent:function(){if(h[0]&1)throw h[1];return h[1]},trys:[],ops:[]},f,p,h,m;return m={next:b(0),throw:b(1),return:b(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function b(x){return function(T){return E([x,T])}}function E(x){if(f)throw new TypeError("Generator is already executing.");for(;m&&(m=0,x[0]&&(g=0)),g;)try{if(f=1,p&&(h=x[0]&2?p.return:x[0]?p.throw||((h=p.return)&&h.call(p),0):p.next)&&!(h=h.call(p,x[1])).done)return h;switch(p=0,h&&(x=[x[0]&2,h.value]),x[0]){case 0:case 1:h=x;break;case 4:return g.label++,{value:x[1],done:!1};case 5:g.label++,p=x[1],x=[0];continue;case 7:x=g.ops.pop(),g.trys.pop();continue;default:if(h=g.trys,!(h=h.length>0&&h[h.length-1])&&(x[0]===6||x[0]===2)){g=0;continue}if(x[0]===3&&(!h||x[1]>h[0]&&x[1]<h[3])){g.label=x[1];break}if(x[0]===6&&g.label<h[1]){g.label=h[1],h=x;break}if(h&&g.label<h[2]){g.label=h[2],g.ops.push(x);break}h[2]&&g.ops.pop(),g.trys.pop();continue}x=y.call(v,g)}catch(T){x=[6,T],p=0}finally{f=h=0}if(x[0]&5)throw x[1];return{value:x[0]?x[1]:void 0,done:!0}}};Object.defineProperty(Vr,"__esModule",{value:!0}),Vr.getV2LoginCode=Vr.getLoginToken=Vr.getAccessToken=void 0;var n=Ot,r=Hh(),o=Et,i=function(v,y,g){var f=(0,o.getStoredAuthData)();return{root_url:v.heimdallUrl,url:v.apiEndpoints.heimdallTokenFetch,method:n.GET_METHOD,data:{user_id:y.userId,usergroup_id:y.usergroupId,access_token:(f==null?void 0:f.token)||"",source:g},withCredentials:!0}},a=function(v,y){return{root_url:y.heimdallUrl,url:y.apiEndpoints.heimdallLogin,method:n.GET_METHOD,data:{code:v},withCredentials:!0}},s=function(v){return parseInt(v,10)},l=function(v,y){return{root_url:v.v2Url,url:v.apiEndpoints.v2Login,method:n.GET_METHOD,withCredentials:!0,data:{usersession:s(localStorage.getItem("hiver-config.usersession")),app:y||n.APP_UI.DEFAULT}}},u=function(v,y,g,f){return e(void 0,void 0,void 0,function(){var p,h,m,b,E,x,T;return t(this,function(A){switch(A.label){case 0:return A.trys.push([0,4,,5]),(0,o.validateToken)(g)?[3,2]:(console.log("HEIMDALL: No valid token, fetching token"),p=i(y,g,f),[4,(0,r.makeAxiosCall)(p,v)]);case 1:return h=A.sent(),[2,{atToken:(b=h==null?void 0:h.data.at)===null||b===void 0?void 0:b.token,expiryTime:(E=h==null?void 0:h.data.at)===null||E===void 0?void 0:E.expires_at,userId:(x=h==null?void 0:h.data)===null||x===void 0?void 0:x.user_id,userGroupId:(T=h==null?void 0:h.data)===null||T===void 0?void 0:T.usergroup_id}];case 2:return console.log("Heimdall: Valid token already exists"),[2,{}];case 3:return[3,5];case 4:throw m=A.sent(),m;case 5:return[2]}})})};Vr.getAccessToken=u;var c=function(v,y,g){return e(void 0,void 0,void 0,function(){var f,p,h,m,b,E,x;return t(this,function(T){switch(T.label){case 0:f=a(v,g),T.label=1;case 1:return T.trys.push([1,3,,4]),[4,(0,r.makeAxiosCall)(f,y)];case 2:return p=T.sent(),[2,{userId:(m=p==null?void 0:p.data)===null||m===void 0?void 0:m.user_id,userGroupId:(b=p==null?void 0:p.data)===null||b===void 0?void 0:b.usergroup_id,atToken:(E=p==null?void 0:p.data.at)===null||E===void 0?void 0:E.token,expiryTime:(x=p==null?void 0:p.data.at)===null||x===void 0?void 0:x.expires_at}];case 3:throw h=T.sent(),h;case 4:return[2]}})})};Vr.getLoginToken=c;var d=function(v,y,g){return e(void 0,void 0,void 0,function(){var f,p,h;return t(this,function(m){switch(m.label){case 0:return m.trys.push([0,2,,3]),console.log("ERROR debug: in getV2loginCode:",g),f=l(y,g),[4,(0,r.makeAxiosCall)(f,v)];case 1:return p=m.sent(),console.log("DEBUG HEIMDALL: local storage:",p==null?void 0:p.data),[2,p==null?void 0:p.data.code];case 2:throw h=m.sent(),h;case 3:return[2]}})})};return Vr.getV2LoginCode=d,Vr}var Vh;function Gh(){if(Vh)return va;Vh=1;var e=Be&&Be.__awaiter||function(y,g,f,p){function h(m){return m instanceof f?m:new f(function(b){b(m)})}return new(f||(f=Promise))(function(m,b){function E(A){try{T(p.next(A))}catch(C){b(C)}}function x(A){try{T(p.throw(A))}catch(C){b(C)}}function T(A){A.done?m(A.value):h(A.value).then(E,x)}T((p=p.apply(y,g||[])).next())})},t=Be&&Be.__generator||function(y,g){var f={label:0,sent:function(){if(m[0]&1)throw m[1];return m[1]},trys:[],ops:[]},p,h,m,b;return b={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(b[Symbol.iterator]=function(){return this}),b;function E(T){return function(A){return x([T,A])}}function x(T){if(p)throw new TypeError("Generator is already executing.");for(;b&&(b=0,T[0]&&(f=0)),f;)try{if(p=1,h&&(m=T[0]&2?h.return:T[0]?h.throw||((m=h.return)&&m.call(h),0):h.next)&&!(m=m.call(h,T[1])).done)return m;switch(h=0,m&&(T=[T[0]&2,m.value]),T[0]){case 0:case 1:m=T;break;case 4:return f.label++,{value:T[1],done:!1};case 5:f.label++,h=T[1],T=[0];continue;case 7:T=f.ops.pop(),f.trys.pop();continue;default:if(m=f.trys,!(m=m.length>0&&m[m.length-1])&&(T[0]===6||T[0]===2)){f=0;continue}if(T[0]===3&&(!m||T[1]>m[0]&&T[1]<m[3])){f.label=T[1];break}if(T[0]===6&&f.label<m[1]){f.label=m[1],m=T;break}if(m&&f.label<m[2]){f.label=m[2],f.ops.push(T);break}m[2]&&f.ops.pop(),f.trys.pop();continue}T=g.call(y,f)}catch(A){T=[6,A],h=0}finally{p=m=0}if(T[0]&5)throw T[1];return{value:T[0]?T[1]:void 0,done:!0}}};Object.defineProperty(va,"__esModule",{value:!0}),va.fetchToken=void 0;var n=Ew(),r=Ot,o=Et,i,a,s,l=function(y,g,f){return f===void 0&&(f=r.APP_UI.DEFAULT),e(void 0,void 0,void 0,function(){var p,h,m,b,E,x,T,A,C;return t(this,function(O){switch(O.label){case 0:p=2,O.label=1;case 1:return O.trys.push([1,4,,9]),console.log("ERROR debug: in login:",f),[4,(0,n.getV2LoginCode)(r.CONFIG_HIVER,y,f)];case 2:return h=O.sent(),[4,(0,n.getLoginToken)(h,r.CONFIG_HIVER,y)];case 3:return m=O.sent(),b=m.userId,E=m.userGroupId,x=m.atToken,T=m.expiryTime,(0,o.setTokenAndExpiry)(x,T),(0,o.setUserDetails)(b,E),[3,9];case 4:A=O.sent(),console.log("ERROR debug: in error login:",A,f),C=g,O.label=5;case 5:return C<p?[4,l(y,C+1,f)]:[3,8];case 6:O.sent(),O.label=7;case 7:return C++,[3,5];case 8:throw A;case 9:return[2]}})})},u=function(y,g,f){return e(void 0,void 0,void 0,function(){var p,h,m,b;return t(this,function(E){switch(E.label){case 0:return g<r.MAX_CONFLICT_RETRY_DELAY?[4,new Promise(function(x){return setTimeout(x,y)})]:[3,3];case 1:return E.sent(),g+=y,y*2<=r.MAX_BACKOFF_LIMIT?y*=2:y=r.MAX_BACKOFF_LIMIT,console.log("Heimdall: Fetch token post doubling conflict retry delay",y),p=f.retryDelay,h=f.configs,m=f.api_params,b=f.appUI,[4,c(p,y,g,h,m,b)];case 2:E.sent(),E.label=3;case 3:return[2]}})})},c=function(y,g,f,p,h,m,b){return m===void 0&&(m="default"),e(void 0,void 0,void 0,function(){var E,x,T,A,C,O,B,M,Q,G,W,q,ee,ue;return t(this,function(se){switch(se.label){case 0:return se.trys.push([0,2,,12]),console.log("Heimdall: Interval Set on fetch token in fetchAndSaveToken:",s),[4,(0,n.getAccessToken)(r.CONFIG_HIVER,p,h,m)];case 1:return E=se.sent(),x=E.atToken,T=E.expiryTime,A=E.userId,C=E.userGroupId,x&&T&&(0,o.setTokenAndExpiry)(x,T),A&&C&&(0,o.setUserDetails)(A,C),y=r.INITIAL_RETRY_DELAY,g=r.INITIAL_RETRY_DELAY,f=0,[3,12];case 2:return O=se.sent(),console.log("ERROR: Heimdall fetch token",O),((Q=O.response)===null||Q===void 0?void 0:Q.status)===401||((G=O.request)===null||G===void 0?void 0:G.status)===401?(B=1,[4,l(p,B,b)]):[3,4];case 3:return se.sent(),[3,11];case 4:return((W=O.response)===null||W===void 0?void 0:W.status)===409||((q=O.request)===null||q===void 0?void 0:q.status)===409?(console.log("Heimdall: Fetching token post 409 in fetch And Save Token"),M={retryDelay:y,configs:p,api_params:h,appUI:b},[4,u(g,f,M)]):[3,6];case 5:if(se.sent(),f>=r.MAX_CONFLICT_RETRY_DELAY)throw O;return[3,11];case 6:if(!(((ee=O.response)===null||ee===void 0?void 0:ee.status)===422||((ue=O.request)===null||ue===void 0?void 0:ue.status)===422))return[3,7];throw console.log("ERROR: Throwing error",O.response.status),O;case 7:return y<=r.MAX_RETRY_DELAY?[4,new Promise(function(ve){return setTimeout(ve,y)})]:[3,10];case 8:return se.sent(),y*=2,console.log("Heimdall: Fetch token post doubling retry delay",y),[4,c(y,g,f,p,h,b)];case 9:return se.sent(),[3,11];case 10:throw O;case 11:return[3,12];case 12:return[2]}})})},d=function(y,g,f,p,h,m){return f===void 0&&(f=r.INITIAL_RETRY_DELAY),p===void 0&&(p=r.INITIAL_RETRY_DELAY),h===void 0&&(h=0),e(void 0,void 0,void 0,function(){var b,E,x;return t(this,function(T){switch(T.label){case 0:return T.trys.push([0,4,,5]),b=(0,o.isTokenInExpiryWindow)(),b?(E=(0,o.getRandomDelay)(),[4,(0,o.introduceDelay)(E)]):[3,3];case 1:return T.sent(),console.log("Heimdall: Fetching token - in expiry window"),[4,c(f,p,h,y,g,m)];case 2:T.sent(),T.label=3;case 3:return[3,5];case 4:throw x=T.sent(),x;case 5:return[2]}})})},v=function(y,g,f,p,h,m){return e(void 0,void 0,void 0,function(){var b,E,x,T,A;return t(this,function(C){switch(C.label){case 0:i=y,a=g,b=r.INITIAL_RETRY_DELAY,E=r.INITIAL_RETRY_DELAY,x=0,T=(0,o.getConfig)(i,a,p),C.label=1;case 1:return C.trys.push([1,3,,4]),[4,c(b,E,x,T,f,h,m)];case 2:return C.sent(),console.log("Heimdall: Interval Set on fetch token when fetch token is called:",s),clearInterval(s),s=setInterval(function(){return d(T,f)},r.REFETCH_CHECK_DELAY),console.log("Heimdall: Interval Set on fetch token:",s),window.addEventListener("online",function(){return e(void 0,void 0,void 0,function(){return t(this,function(O){switch(O.label){case 0:return console.log("Online status detected. Fetching token..."),[4,d(T,f)];case 1:return O.sent(),[2]}})})}),[3,4];case 3:throw A=C.sent(),A;case 4:return[2]}})})};return va.fetchToken=v,va}var Wh;function Hh(){if(Wh)return ba;Wh=1;var e=Be&&Be.__assign||function(){return e=Object.assign||function(v){for(var y,g=1,f=arguments.length;g<f;g++){y=arguments[g];for(var p in y)Object.prototype.hasOwnProperty.call(y,p)&&(v[p]=y[p])}return v},e.apply(this,arguments)},t=Be&&Be.__awaiter||function(v,y,g,f){function p(h){return h instanceof g?h:new g(function(m){m(h)})}return new(g||(g=Promise))(function(h,m){function b(T){try{x(f.next(T))}catch(A){m(A)}}function E(T){try{x(f.throw(T))}catch(A){m(A)}}function x(T){T.done?h(T.value):p(T.value).then(b,E)}x((f=f.apply(v,y||[])).next())})},n=Be&&Be.__generator||function(v,y){var g={label:0,sent:function(){if(h[0]&1)throw h[1];return h[1]},trys:[],ops:[]},f,p,h,m;return m={next:b(0),throw:b(1),return:b(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function b(x){return function(T){return E([x,T])}}function E(x){if(f)throw new TypeError("Generator is already executing.");for(;m&&(m=0,x[0]&&(g=0)),g;)try{if(f=1,p&&(h=x[0]&2?p.return:x[0]?p.throw||((h=p.return)&&h.call(p),0):p.next)&&!(h=h.call(p,x[1])).done)return h;switch(p=0,h&&(x=[x[0]&2,h.value]),x[0]){case 0:case 1:h=x;break;case 4:return g.label++,{value:x[1],done:!1};case 5:g.label++,p=x[1],x=[0];continue;case 7:x=g.ops.pop(),g.trys.pop();continue;default:if(h=g.trys,!(h=h.length>0&&h[h.length-1])&&(x[0]===6||x[0]===2)){g=0;continue}if(x[0]===3&&(!h||x[1]>h[0]&&x[1]<h[3])){g.label=x[1];break}if(x[0]===6&&g.label<h[1]){g.label=h[1],h=x;break}if(h&&g.label<h[2]){g.label=h[2],g.ops.push(x);break}h[2]&&g.ops.pop(),g.trys.pop();continue}x=y.call(v,g)}catch(T){x=[6,T],p=0}finally{f=h=0}if(x[0]&5)throw x[1];return{value:x[0]?x[1]:void 0,done:!0}}};Object.defineProperty(ba,"__esModule",{value:!0}),ba.makeAxiosCall=void 0;var r=_h,o=Et,i=Gh(),a,s=2,l=function(v,y){var g=y.fetchCsrfToken();v.formData?v.formData.append("_csrf_token",g):(v.data=v.data||{},v.data._csrf_token=g)},u=function(v){var y=!v.method||v.method.toLowerCase()==="get"?{params:v.data}:{data:v.data},g=e(e({method:v.method,url:"".concat(v.root_url).concat(v.url),headers:v.headers},y),{withCredentials:v.withCredentials,responseType:(v==null?void 0:v.responseType)||""});return g};function c(v){return t(this,void 0,void 0,function(){var y;return n(this,function(g){return y=u(v),[2,(0,r.default)(y).then(function(f){return f}).catch(function(f){throw f})]})})}function d(v,y,g,f){var p,h;return f===void 0&&(f=0),t(this,void 0,void 0,function(){var m,b,E,x,T,A;return n(this,function(C){switch(C.label){case 0:if(C.trys.push([0,4,,5]),!(y.getToken&&!(0,o.hasValidToken)(v)))return[3,2];if(m=v.app_env,b=v.tier,!m||!b)throw Error("app_env or tier missing : ".concat(m,"/").concat(b));return"userId"in v&&"usergroupId"in v?(E={userId:v.userId,usergroupId:v.usergroupId},typeof y.isHiverApiDomain!="boolean"&&(y.isHiverApiDomain=!0),[4,(0,i.fetchToken)(m,b,E,y.isHiverApiDomain,g)]):[3,2];case 1:C.sent(),C.label=2;case 2:return v.csrfToken&&l(v,y),y.getToken&&(a=sessionStorage.getItem("hiverAuthToken")||"",v.headers=e(e({},v.headers),{Authorization:"Bearer ".concat(a)})),[4,c(v)];case 3:return x=C.sent(),v.onSuccess&&v.onSuccess(x),[2,x];case 4:if(T=C.sent(),A=((p=T.response)===null||p===void 0?void 0:p.status)===403||((h=T.request)===null||h===void 0?void 0:h.status)===403,f<s&&A)return(0,o.expireToken)(),[2,d(v,y,g,f+1)];if(f>=s&&A||!A)throw v.onFail&&v.onFail(T),console.log("ERROR: Reached make Axios",T),T;return[3,5];case 5:return[2]}})})}return ba.makeAxiosCall=d,ba}(function(e){var t=Be&&Be.__awaiter||function(y,g,f,p){function h(m){return m instanceof f?m:new f(function(b){b(m)})}return new(f||(f=Promise))(function(m,b){function E(A){try{T(p.next(A))}catch(C){b(C)}}function x(A){try{T(p.throw(A))}catch(C){b(C)}}function T(A){A.done?m(A.value):h(A.value).then(E,x)}T((p=p.apply(y,g||[])).next())})},n=Be&&Be.__generator||function(y,g){var f={label:0,sent:function(){if(m[0]&1)throw m[1];return m[1]},trys:[],ops:[]},p,h,m,b;return b={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(b[Symbol.iterator]=function(){return this}),b;function E(T){return function(A){return x([T,A])}}function x(T){if(p)throw new TypeError("Generator is already executing.");for(;b&&(b=0,T[0]&&(f=0)),f;)try{if(p=1,h&&(m=T[0]&2?h.return:T[0]?h.throw||((m=h.return)&&m.call(h),0):h.next)&&!(m=m.call(h,T[1])).done)return m;switch(h=0,m&&(T=[T[0]&2,m.value]),T[0]){case 0:case 1:m=T;break;case 4:return f.label++,{value:T[1],done:!1};case 5:f.label++,h=T[1],T=[0];continue;case 7:T=f.ops.pop(),f.trys.pop();continue;default:if(m=f.trys,!(m=m.length>0&&m[m.length-1])&&(T[0]===6||T[0]===2)){f=0;continue}if(T[0]===3&&(!m||T[1]>m[0]&&T[1]<m[3])){f.label=T[1];break}if(T[0]===6&&f.label<m[1]){f.label=m[1],m=T;break}if(m&&f.label<m[2]){f.label=m[2],f.ops.push(T);break}m[2]&&f.ops.pop(),f.trys.pop();continue}T=g.call(y,f)}catch(A){T=[6,A],h=0}finally{p=m=0}if(T[0]&5)throw T[1];return{value:T[0]?T[1]:void 0,done:!0}}};Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_INIT_CONFIG_HIVER=e.TENANT_PLATFORM=e.fetchToken=e.makeAxiosCall=e.Bifrost=void 0;var r=Fh(),o=kh(),i=to;Object.defineProperty(e,"TENANT_PLATFORM",{enumerable:!0,get:function(){return i.TENANT_PLATFORM}}),Object.defineProperty(e,"DEFAULT_INIT_CONFIG_HIVER",{enumerable:!0,get:function(){return i.DEFAULT_INIT_CONFIG_HIVER}});var a=Nh(),s=et,l=vr,u=Hh();Object.defineProperty(e,"makeAxiosCall",{enumerable:!0,get:function(){return u.makeAxiosCall}});var c=Gh();Object.defineProperty(e,"fetchToken",{enumerable:!0,get:function(){return c.fetchToken}});var d=yr,v=function(){function y(g,f,p,h,m,b){p===void 0&&(p=i.TENANT_PLATFORM.GMAIL),h===void 0&&(h=null),m===void 0&&(m=!0),b===void 0&&(b=!1),this.setEnvironment(),this.appEnv=g,this.tier=f,this.tenantPlatform=p,this.authTokenFetchingInProgress=!1,this.getTokenForLogin=h,this.withCredentials=m,this.csrfToken=b}return y.prototype.setEnvironment=function(){typeof window<"u"&&window.document?(0,d.setValue)("PLATFORM",i.PLATFORM.WEB):(0,d.setValue)("PLATFORM",i.PLATFORM.MOBILE)},y.prototype.hiverAxios=function(g,f,p,h){return f===void 0&&(f=i.DEFAULT_INIT_CONFIG_HIVER),t(this,void 0,void 0,function(){var m,b;return n(this,function(E){switch(E.label){case 0:return E.trys.push([0,4,,5]),h&&h<2?(m={userId:g.userId,usergroupId:g.usergroupId,apiRetry:h},console.log("THIS IS THE TENNANTPLAORM -> ",this.tenantPlatform),[4,(0,o.fetchAccessToken)(this.appEnv,this.tier,m,this.tenantPlatform,this.getTokenForLogin,i.API_CALL_ORIGIN.API_RETRY)]):[3,2];case 1:E.sent(),E.label=2;case 2:return[4,(0,r.hiverAxiosCall)(this,g,f,p)];case 3:return[2,E.sent()];case 4:throw b=E.sent(),console.log("ERROR: Axios call failed",b),b;case 5:return[2]}})})},y.prototype.fetchAuthToken=function(g,f,p){return t(this,void 0,void 0,function(){var h;return n(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,7,8]),this.authTokenFetchingInProgress?[3,2]:(this.authTokenFetchingInProgress=!0,[4,(0,o.fetchAccessToken)(this.appEnv,this.tier,g,this.tenantPlatform,this.getTokenForLogin,f,p)]);case 1:return m.sent(),[3,3];case 2:console.log("Heimdall: AuthToken Fetching InProgress",this.authTokenFetchingInProgress),m.label=3;case 3:return[3,8];case 4:return h=m.sent(),console.log("ERROR: Fetching token failed",h),this.authTokenFetchingInProgress=!1,[4,new Promise(function(b){return setTimeout(b,100)})];case 5:return m.sent(),console.log("Heimdall: Retrying fetchAccessToken after 100ms..."),[4,this.fetchAuthToken(g,f,p)];case 6:return m.sent(),[3,8];case 7:return this.authTokenFetchingInProgress=!1,[7];case 8:return[2]}})})},y.prototype.logout=function(){return t(this,void 0,void 0,function(){var g,f;return n(this,function(p){switch(p.label){case 0:return p.trys.push([0,2,,3]),g=(0,s.getConfig)(this.appEnv,this.tier),[4,(0,a.logoutFromHeimdall)(g,this.tenantPlatform)];case 1:return p.sent(),(0,l.removeItemFromStorage)("hiverAuthToken"),(0,l.removeItemFromStorage)("hiverAuthTokenExpiry"),(0,l.removeItemFromStorage)("hiverAuthUserId"),(0,l.removeItemFromStorage)("hiverAuthUserGroupId"),[3,3];case 2:throw f=p.sent(),console.error("Heimdall: Logout failed",f),f;case 3:return[2]}})})},y.prototype.isTokenFetchingInProgress=function(){return this.authTokenFetchingInProgress},y}();e.Bifrost=v})(ku);const ar={userId:"",userGroupId:"",baseUrl:"",appEnv:"",tier:"",bifrost:null,isInitiated:!1},hi=()=>{if(!ar.isInitiated)return null;if(!ar.baseUrl)throw new Error("Base url is not setup. please call the initConnectorsBifrost function with the appropriate value");return ar},xw=({baseUrl:e,appEnv:t,tier:n,userId:r,userGroupId:o,tenantPlatform:i=ku.TENANT_PLATFORM.GMAIL,withCredentials:a=!0,getTokenForLogin:s})=>{ar.baseUrl=e,ar.appEnv=t,ar.tier=n,ar.userGroupId=o,ar.userId=r,ar.tenantPlatform=i,ar.bifrost=new ku.Bifrost(t,n,i,s,a),ar.isInitiated=!0},on=(({configHiver:e})=>async n=>{const r=hi();if(!r)throw new Error("Please call initConnectorsBifrost before making any api calls");const{bifrost:o,userGroupId:i,userId:a}=r,{url:s,method:l,root_url:u}=n,d={root_url:(u||r.baseUrl)+((n==null?void 0:n.prefix)||""),url:s,method:l,headers:n==null?void 0:n.headers,onSuccess:n==null?void 0:n.onSuccess,onFail:n==null?void 0:n.onFail,data:n==null?void 0:n.data,params:n==null?void 0:n.params,formData:n==null?void 0:n.formData,responseType:n==null?void 0:n.responseType,userId:Number(a),usergroupId:Number(i)};try{return await(o==null?void 0:o.hiverAxios(d,{...e,isHiverApiDomain:!0}))}catch(v){throw console.error("API call failed with error: ",v),v}})({configHiver:{getToken:!0,fetchCsrfToken:()=>"",isHiverApiDomain:!0},withCredentials:!0}),Cw=jn+"/template/list",ww=jn+"/template/{{templateId}}",Iw=()=>on({url:Cw,method:wn.GET}),Sw=e=>on({url:ww.replace("{{templateId}}",e),method:wn.GET}),zh=e=>e.templateLibrary.connectorTemplateList,oc=e=>e.templateLibrary.connectorTemplates,Tw=e=>e.templateLibrary.templateListApiStatus,Xh=e=>e.templateLibrary.templateDetailsApiStatus,Aw=ca({name:"templateLibrary",initialState:JE,reducers:{},extraReducers:e=>{e.addCase(Hs.pending,t=>{t.templateListApiStatus=Ie.LOADING}).addCase(Hs.fulfilled,(t,n)=>{t.templateListApiStatus=Ie.IDLE,t.connectorTemplateList=n.payload.connectorList,t.connectorTemplates=n.payload.connectors}).addCase(Hs.rejected,(t,n)=>{t.templateListApiStatus=Ie.FAILED,console.error(n.error)}).addCase(ya.pending,t=>{t.templateDetailsApiStatus=Ie.LOADING}).addCase(ya.fulfilled,(t,n)=>{t.templateDetailsApiStatus=Ie.IDLE;const{templateData:r,templateId:o}=n.payload;r&&o&&(t.connectorTemplates={...t.connectorTemplates,[o]:r})}).addCase(ya.rejected,(t,n)=>{t.templateDetailsApiStatus=Ie.FAILED,console.error(n.error)})}}),Hs=Cn("connectorLibrary/fetchConnectorTemplates",async()=>{const e=await Iw();if(!e||!e.data||!Array.isArray(e.data))return{connectorList:[],connectors:{}};const t=e.data,n=Mp(t,o=>o.id),r=Bp(t,o=>o.id);return{connectors:n,connectorList:r}}),ya=Cn("connectorLibrary/fetchTemplateDetails",async e=>{const t=await Sw(e);return!t||!t.data?{templateId:e,templateData:null}:{templateData:t.data,templateId:e}}),_w=Aw.reducer,Ow={connectors:null,connectorList:[],connectorsApiStatus:Ie.IDLE,selectedConnector:null,currentUpdatingConnectors:{},connectorDetailApiStatus:Ie.IDLE,connectorDetails:null,fetchInboxApiStatus:Ie.IDLE,chatInboxDetails:null,emailInboxDetails:null,rolesAndPermissions:null,rolesAndPermissionsApiStatus:Ie.IDLE,updateEnableConnectorsApiStatus:Ie.IDLE,cardCustomFields:{},cardCustomFieldsApiStatus:Ie.IDLE},Rw=jn+"/connectors/ug",Nw=jn+"/connectors/{{id}}",Dw=jn+"/connectors/{{id}}",Zh="{{card_id}}",Pw=jn+`/connectors/cards/${Zh}`,kw=jn+"/connectors/cards/:cardId/custom_fields",Lw=()=>on({url:Rw,method:wn.GET}),Fw=({id:e,enabled:t})=>on({url:Nw.replace("{{id}}",e),method:wn.PATCH,data:{enabled:t}}),Mw=e=>{const t=Dw.replace("{{id}}",e);return on({url:t,method:wn.GET})},Bw=({cardId:e,data:t})=>on({url:Pw.replace(Zh,e),method:wn.PATCH,data:t}),jw=e=>on({url:Hp(kw,{cardId:e}),method:wn.GET}),Vw=ca({name:"connectorLibrary",initialState:Ow,reducers:{},extraReducers:e=>{e.addCase(Us.pending,t=>{t.connectorsApiStatus=Ie.LOADING}).addCase(Us.fulfilled,(t,n)=>{t.connectorsApiStatus=Ie.IDLE,t.connectorList=n.payload.connectorList,t.connectors=n.payload.connectors}).addCase(Us.rejected,(t,n)=>{t.connectorsApiStatus=Ie.FAILED,console.error(n.error)}).addCase(zs.pending,(t,n)=>{var o;const{id:r}=((o=n==null?void 0:n.meta)==null?void 0:o.arg)||{};t.currentUpdatingConnectors={...t.currentUpdatingConnectors,[r]:Ie.LOADING}}).addCase(zs.fulfilled,(t,n)=>{var i,a;const{id:r="",enabled:o}=((i=n==null?void 0:n.meta)==null?void 0:i.arg)||{};t.currentUpdatingConnectors[r]&&(t.currentUpdatingConnectors[r]=Ie.IDLE),(a=t==null?void 0:t.connectors)!=null&&a[r]&&(t.connectors[r].isEnabled=o)}).addCase(zs.rejected,(t,n)=>{var o;const{id:r}=((o=n==null?void 0:n.meta)==null?void 0:o.arg)||{};t.currentUpdatingConnectors={...t.currentUpdatingConnectors,[r]:Ie.FAILED},console.error(n.error)}).addCase(Ea.pending,t=>{t.connectorDetailApiStatus=Ie.LOADING}).addCase(Ea.fulfilled,(t,n)=>{var i;t.connectorDetailApiStatus=Ie.IDLE;const{connector:r,connectorId:o}=n.payload;r&&(t.connectors={...t.connectors,[o]:{...(i=t.connectors)==null?void 0:i[o],...r}})}).addCase(Ea.rejected,(t,n)=>{t.connectorDetailApiStatus=Ie.FAILED,console.error(n.error)}).addCase(Xs.pending,t=>{t.fetchInboxApiStatus=Ie.LOADING}).addCase(Xs.fulfilled,(t,n)=>{t.fetchInboxApiStatus=Ie.IDLE;const{chatInbox:r,emailInbox:o}=n.payload;t.chatInboxDetails=r,t.emailInboxDetails=o}).addCase(Xs.rejected,(t,n)=>{t.fetchInboxApiStatus=Ie.FAILED,console.error(n.error)}).addCase(Ys.pending,t=>{t.rolesAndPermissionsApiStatus=Ie.LOADING}).addCase(Ys.fulfilled,(t,n)=>{t.rolesAndPermissionsApiStatus=Ie.IDLE;const{rolesAndPermissions:r}=n.payload;t.rolesAndPermissions=r}).addCase(Ys.rejected,(t,n)=>{t.rolesAndPermissionsApiStatus=Ie.FAILED,console.error(n.error)}).addCase(Zs.pending,t=>{t.updateEnableConnectorsApiStatus=Ie.LOADING}).addCase(Zs.fulfilled,(t,n)=>{var u;t.updateEnableConnectorsApiStatus=Ie.IDLE;const{cardId:r,data:o,currentConnector:i}=n.payload.params,{roles:a,inboxes:s,fields:l}=o;t!=null&&t.connectors&&(t.connectors[i].cardList=(u=t.connectors[i].cardList)==null?void 0:u.map(c=>(c.id===r&&(c={...c,inboxes:s,roles:a,fields:l}),c)))}).addCase(Zs.rejected,t=>{t.updateEnableConnectorsApiStatus=Ie.FAILED}).addCase(qs.pending,t=>{t.cardCustomFieldsApiStatus=Ie.LOADING}).addCase(qs.fulfilled,(t,n)=>{t.cardCustomFieldsApiStatus=Ie.IDLE;const{cardId:r,customFields:o}=n.payload;t.cardCustomFields={...t.cardCustomFields,[r]:o}}).addCase(qs.rejected,(t,n)=>{t.cardCustomFieldsApiStatus=Ie.FAILED,console.error(n.error)})}}),zs=Cn("connectorLibrary/updateConnectors",async e=>(await Fw(e),{params:e})),Xs=Cn("connectorLibrary/getInboxDetails",async e=>{const t=await e();return{chatInbox:t.chatInboxes,emailInbox:t.emailInboxes}}),Zs=Cn("connectorLibrary/updateEnableConnectors",async e=>(await Bw(e),{params:e})),Ys=Cn("connectorLibrary/getRolesAndPermissions",async e=>({rolesAndPermissions:(await e()).roles})),Us=Cn("connectorLibrary/fetchConnectors",async()=>{const e=await Lw();if(!e||!e.data||!Array.isArray(e.data))return{connectorList:[],connectors:{}};const t=e.data;t.forEach(o=>{o.cardList&&(o.cardList.sort((i,a)=>i.priority-a.priority),o.cardList.forEach(i=>{i.fields&&i.fields.sort((a,s)=>a.priority-s.priority)}))});const n=Mp(t,o=>o.id),r=Bp(t,o=>o.id);return{connectors:n,connectorList:r}}),Ea=Cn("auth/fetchConnector",async e=>{const t=await Mw(e);return!t||!t.data?{connectorId:e,connector:null}:{connector:t.data,connectorId:e}}),qs=Cn("auth/fetchCardsCustomFields",async e=>{const t=await jw(e);return!t||!t.data||!t.data.fields||!Array.isArray(t.data.fields)?{cardId:e,customFields:[]}:{customFields:t.data.fields,cardId:e}},{condition:(e,{getState:t})=>{const{connectorLirary:n}=t();return!(n.cardCustomFields[e]&&n.cardCustomFields[e].length!==0)}}),Gw=Vw.reducer,Yh={testApiStatus:Ie.IDLE,isAuthenticated:{},verifyTokenApiStatus:Ie.IDLE,authVerificationDone:!1,testApiData:null},Ww=jn+"/connector/auth",Hw=jn+"/connector/{{id}}/auth/test",zw=jn+"/connector/{{id}}/auth",Xw=jn+"/connectors/{{id}}/auth/validate_token",Zw=jn+"/connectors/:connectorId/status",Yw=(e,t)=>{const n=Hw.replace("{{id}}",t);return on({url:n,method:wn.POST,data:e})},Uw=(e,t)=>{const n=Xw.replace("{{id}}",t);return on({url:n,method:wn.POST,data:e})},Uh=ca({name:"auth",initialState:Yh,reducers:{resetState:()=>Yh},extraReducers:e=>{e.addCase(Js.pending,t=>{t.authVerificationDone=!1,t.verifyTokenApiStatus=Ie.LOADING}).addCase(Js.fulfilled,t=>{t.authVerificationDone=!0,t.verifyTokenApiStatus=Ie.IDLE}).addCase(Js.rejected,(t,n)=>{t.authVerificationDone=!0,t.verifyTokenApiStatus=Ie.FAILED,console.error(n.error)}).addCase(ic.pending,t=>{t.testApiStatus=Ie.LOADING}).addCase(ic.fulfilled,(t,n)=>{t.testApiStatus=Ie.IDLE,t.testApiData=n.payload}).addCase(ic.rejected,(t,n)=>{const r={response:n.error,statusCode:n.error.code||"400"};t.testApiStatus=Ie.FAILED,t.testApiData=r,console.error(n.error)})}}),ic=Cn("auth/testAuth",async({data:e,connectorId:t})=>{const n=await Yw(e,t);if(!n||!n.data)return{response:null,statusCode:""};const r=n.data;return{response:r.response||r.errorMessage,statusCode:String(r.statusCode)}}),Js=Cn("auth/verifyToken",async({data:e,connectorId:t})=>{await Uw(e,t)}),{resetState:qw}=Uh.actions,Jw=Uh.reducer,Qw={connectorRequestsApiStatus:Ie.IDLE,requestableConnectors:null,requestableApis:null},qh=jn+"/connectors/integration/requests",$w=()=>on({url:qh,method:wn.GET}),Kw=({type:e,values:t,description:n})=>on({url:qh,method:wn.POST,data:{type:e,values:t,description:n}}),eI=ca({name:"connectorLibrary",initialState:Qw,reducers:{},extraReducers:e=>{e.addCase(Qs.pending,t=>{t.connectorRequestsApiStatus=Ie.LOADING}).addCase(Qs.fulfilled,(t,n)=>{t.connectorRequestsApiStatus=Ie.IDLE,t.requestableConnectors=n.payload.requestableConnectors,t.requestableApis=n.payload.requestableApis}).addCase(Qs.rejected,t=>{t.connectorRequestsApiStatus=Ie.FAILED}).addCase($s.pending,t=>{t.connectorRequestsApiStatus=Ie.LOADING}).addCase($s.fulfilled,t=>{t.connectorRequestsApiStatus=Ie.IDLE}).addCase($s.rejected,t=>{t.connectorRequestsApiStatus=Ie.FAILED})}}),Qs=Cn("connectorLibrary/fetchConnectorRequests",async()=>{const e=await $w();if(!e||!e.data)return{requestableConnectors:[],requestableApis:[]};const n=e.data.requestableConnectors,r=e.data.requestableApis;return{requestableConnectors:n,requestableApis:r}}),$s=Cn("connectorLibrary/submitConnectorRequest",async e=>(await Kw(e),{params:e})),tI=eI.reducer,nI=ip({counter:AE,connectorLirary:Gw,templateLibrary:_w,auth:Jw,requestConnectorApi:tI}),rI=aE({reducer:nI,devTools:!0}),oI={currentSideBar:"",setCurrentSideBar:()=>{},currentConnector:"",setCurrentConnector:()=>{},currentAvailableConnectors:[],setCurrentAvailableConnectors:()=>{},baseUrls:{},availableFeatures:{},sendTrackingEvent:()=>{},userPermissions:[],metaData:void 0},qt=S.createContext(oI),Xe={BASEPATH:"/",CONNECTOR_SETTINGS:"connector/settings",DASHBOARD:"dashboard",AGENT:"agent",CONNECTOR_CONFIG:"connector",API_VIEW:"connector/apiView",AUTH_SUCCESS:"authSuccess"},ac="Custom Connectors",sc={id:"connectors_view",value:"Connectors",route:Xe.DASHBOARD},Jh={id:"agent_view",value:"Agent view",route:Xe.AGENT},iI=[sc,Jh],Qh={[sc.value]:[Xe.BASEPATH+Xe.DASHBOARD,Xe.BASEPATH+Xe.CONNECTOR_CONFIG,Xe.BASEPATH+Xe.CONNECTOR_SETTINGS,Xe.BASEPATH,Xe.BASEPATH+Xe.API_VIEW],[Jh.value]:[Xe.AGENT]},aI=({children:e,baseUrls:t,availableFeatures:n,extraParams:r,connectorFunctions:o})=>{const[i,a]=S.useState(sc.id),[s,l]=S.useState(""),[u,c]=S.useState([]);return I.jsx(qt.Provider,{value:{currentSideBar:i,setCurrentSideBar:a,currentConnector:s,setCurrentConnector:l,currentAvailableConnectors:u,setCurrentAvailableConnectors:c,baseUrls:t??{},availableFeatures:n??{},sendTrackingEvent:(r==null?void 0:r.sendTrackingEvent)??(()=>{}),userPermissions:(r==null?void 0:r.userPermissions)??[],metaData:r==null?void 0:r.metaData,connectorFunctions:o},children:e})};var gi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},jo=typeof window>"u"||"Deno"in globalThis;function Un(){}function sI(e,t){return typeof e=="function"?e(t):e}function lc(e){return typeof e=="number"&&e>=0&&e!==1/0}function $h(e,t){return Math.max(e+(t||0)-Date.now(),0)}function mi(e,t){return typeof e=="function"?e(t):e}function sr(e,t){return typeof e=="function"?e(t):e}function Kh(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:a,stale:s}=e;if(a){if(r){if(t.queryHash!==uc(a,t.options))return!1}else if(!xa(t.queryKey,a))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||o&&o!==t.state.fetchStatus||i&&!i(t))}function eg(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Vo(t.options.mutationKey)!==Vo(i))return!1}else if(!xa(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function uc(e,t){return((t==null?void 0:t.queryKeyHashFn)||Vo)(e)}function Vo(e){return JSON.stringify(e,(t,n)=>dc(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function xa(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!xa(e[n],t[n])):!1}function cc(e,t){if(e===t)return e;const n=tg(e)&&tg(t);if(n||dc(e)&&dc(t)){const r=n?e:Object.keys(e),o=r.length,i=n?t:Object.keys(t),a=i.length,s=n?[]:{};let l=0;for(let u=0;u<a;u++){const c=n?u:i[u];(!n&&r.includes(c)||n)&&e[c]===void 0&&t[c]===void 0?(s[c]=void 0,l++):(s[c]=cc(e[c],t[c]),s[c]===e[c]&&e[c]!==void 0&&l++)}return o===a&&l===o?e:s}return t}function Ks(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function tg(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function dc(e){if(!ng(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!ng(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function ng(e){return Object.prototype.toString.call(e)==="[object Object]"}function lI(e){return new Promise(t=>{setTimeout(t,e)})}function fc(e,t,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(e,t);if(n.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return cc(e,t)}catch(r){console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`)}return cc(e,t)}return t}function uI(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function cI(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var el=Symbol();function rg(e,t){return process.env.NODE_ENV!=="production"&&e.queryFn===el&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===el?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var dI=(my=class extends gi{constructor(){super();De(this,$o);De(this,mo);De(this,Vi);Ce(this,Vi,t=>{if(!jo&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){D(this,mo)||this.setEventListener(D(this,Vi))}onUnsubscribe(){var t;this.hasListeners()||((t=D(this,mo))==null||t.call(this),Ce(this,mo,void 0))}setEventListener(t){var n;Ce(this,Vi,t),(n=D(this,mo))==null||n.call(this),Ce(this,mo,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){D(this,$o)!==t&&(Ce(this,$o,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof D(this,$o)=="boolean"?D(this,$o):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},$o=new WeakMap,mo=new WeakMap,Vi=new WeakMap,my),pc=new dI,fI=(by=class extends gi{constructor(){super();De(this,Gi,!0);De(this,bo);De(this,Wi);Ce(this,Wi,t=>{if(!jo&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){D(this,bo)||this.setEventListener(D(this,Wi))}onUnsubscribe(){var t;this.hasListeners()||((t=D(this,bo))==null||t.call(this),Ce(this,bo,void 0))}setEventListener(t){var n;Ce(this,Wi,t),(n=D(this,bo))==null||n.call(this),Ce(this,bo,t(this.setOnline.bind(this)))}setOnline(t){D(this,Gi)!==t&&(Ce(this,Gi,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return D(this,Gi)}},Gi=new WeakMap,bo=new WeakMap,Wi=new WeakMap,by),tl=new fI;function hc(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function pI(e){return Math.min(1e3*2**e,3e4)}function og(e){return(e??"online")==="online"?tl.isOnline():!0}var ig=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function gc(e){return e instanceof ig}function ag(e){let t=!1,n=0,r=!1,o;const i=hc(),a=f=>{var p;r||(v(new ig(f)),(p=e.abort)==null||p.call(e))},s=()=>{t=!0},l=()=>{t=!1},u=()=>pc.isFocused()&&(e.networkMode==="always"||tl.isOnline())&&e.canRun(),c=()=>og(e.networkMode)&&e.canRun(),d=f=>{var p;r||(r=!0,(p=e.onSuccess)==null||p.call(e,f),o==null||o(),i.resolve(f))},v=f=>{var p;r||(r=!0,(p=e.onError)==null||p.call(e,f),o==null||o(),i.reject(f))},y=()=>new Promise(f=>{var p;o=h=>{(r||u())&&f(h)},(p=e.onPause)==null||p.call(e)}).then(()=>{var f;o=void 0,r||(f=e.onContinue)==null||f.call(e)}),g=()=>{if(r)return;let f;const p=n===0?e.initialPromise:void 0;try{f=p??e.fn()}catch(h){f=Promise.reject(h)}Promise.resolve(f).then(d).catch(h=>{var T;if(r)return;const m=e.retry??(jo?0:3),b=e.retryDelay??pI,E=typeof b=="function"?b(n,h):b,x=m===!0||typeof m=="number"&&n<m||typeof m=="function"&&m(n,h);if(t||!x){v(h);return}n++,(T=e.onFail)==null||T.call(e,n,h),lI(E).then(()=>u()?void 0:y()).then(()=>{t?v(h):g()})})};return{promise:i,cancel:a,continue:()=>(o==null||o(),i),cancelRetry:s,continueRetry:l,canStart:c,start:()=>(c()?g():y().then(g),i)}}function hI(){let e=[],t=0,n=s=>{s()},r=s=>{s()},o=s=>setTimeout(s,0);const i=s=>{t?e.push(s):o(()=>{n(s)})},a=()=>{const s=e;e=[],s.length&&o(()=>{r(()=>{s.forEach(l=>{n(l)})})})};return{batch:s=>{let l;t++;try{l=s()}finally{t--,t||a()}return l},batchCalls:s=>(...l)=>{i(()=>{s(...l)})},schedule:i,setNotifyFunction:s=>{n=s},setBatchNotifyFunction:s=>{r=s},setScheduler:s=>{o=s}}}var zt=hI(),sg=(vy=class{constructor(){De(this,Ko)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),lc(this.gcTime)&&Ce(this,Ko,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(jo?1/0:5*60*1e3))}clearGcTimeout(){D(this,Ko)&&(clearTimeout(D(this,Ko)),Ce(this,Ko,void 0))}},Ko=new WeakMap,vy),gI=(yy=class extends sg{constructor(t){super();De(this,hr);De(this,Hi);De(this,zi);De(this,Kn);De(this,ei);De(this,un);De(this,rs);De(this,ti);Ce(this,ti,!1),Ce(this,rs,t.defaultOptions),this.setOptions(t.options),this.observers=[],Ce(this,ei,t.client),Ce(this,Kn,D(this,ei).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Ce(this,Hi,mI(this.options)),this.state=t.state??D(this,Hi),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=D(this,un))==null?void 0:t.promise}setOptions(t){this.options={...D(this,rs),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&D(this,Kn).remove(this)}setData(t,n){const r=fc(this.state.data,t,this.options);return We(this,hr,Jr).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){We(this,hr,Jr).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=D(this,un))==null?void 0:r.promise;return(o=D(this,un))==null||o.cancel(t),n?n.then(Un).catch(Un):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(D(this,Hi))}isActive(){return this.observers.some(t=>sr(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===el||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!$h(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=D(this,un))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=D(this,un))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),D(this,Kn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(D(this,un)&&(D(this,ti)?D(this,un).cancel({revert:!0}):D(this,un).cancelRetry()),this.scheduleGc()),D(this,Kn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||We(this,hr,Jr).call(this,{type:"invalidate"})}fetch(t,n){var l,u,c;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(D(this,un))return D(this,un).continueRetry(),D(this,un).promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(v=>v.options.queryFn);d&&this.setOptions(d.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const r=new AbortController,o=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(Ce(this,ti,!0),r.signal)})},i=()=>{const d=rg(this.options,n),v={client:D(this,ei),queryKey:this.queryKey,meta:this.meta};return o(v),Ce(this,ti,!1),this.options.persister?this.options.persister(d,v,this):d(v)},a={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:D(this,ei),state:this.state,fetchFn:i};o(a),(l=this.options.behavior)==null||l.onFetch(a,this),Ce(this,zi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=a.fetchOptions)==null?void 0:u.meta))&&We(this,hr,Jr).call(this,{type:"fetch",meta:(c=a.fetchOptions)==null?void 0:c.meta});const s=d=>{var v,y,g,f;gc(d)&&d.silent||We(this,hr,Jr).call(this,{type:"error",error:d}),gc(d)||((y=(v=D(this,Kn).config).onError)==null||y.call(v,d,this),(f=(g=D(this,Kn).config).onSettled)==null||f.call(g,this.state.data,d,this)),this.scheduleGc()};return Ce(this,un,ag({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:d=>{var v,y,g,f;if(d===void 0){process.env.NODE_ENV!=="production"&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),s(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(p){s(p);return}(y=(v=D(this,Kn).config).onSuccess)==null||y.call(v,d,this),(f=(g=D(this,Kn).config).onSettled)==null||f.call(g,d,this.state.error,this),this.scheduleGc()},onError:s,onFail:(d,v)=>{We(this,hr,Jr).call(this,{type:"failed",failureCount:d,error:v})},onPause:()=>{We(this,hr,Jr).call(this,{type:"pause"})},onContinue:()=>{We(this,hr,Jr).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),D(this,un).start()}},Hi=new WeakMap,zi=new WeakMap,Kn=new WeakMap,ei=new WeakMap,un=new WeakMap,rs=new WeakMap,ti=new WeakMap,hr=new WeakSet,Jr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...lg(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return gc(o)&&o.revert&&D(this,zi)?{...D(this,zi),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),zt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),D(this,Kn).notify({query:this,type:"updated",action:t})})},yy);function lg(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:og(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function mI(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var bI=(Ey=class extends gi{constructor(t={}){super();De(this,Dr);this.config=t,Ce(this,Dr,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??uc(o,n);let a=this.get(i);return a||(a=new gI({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(a)),a}add(t){D(this,Dr).has(t.queryHash)||(D(this,Dr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=D(this,Dr).get(t.queryHash);n&&(t.destroy(),n===t&&D(this,Dr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){zt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return D(this,Dr).get(t)}getAll(){return[...D(this,Dr).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Kh(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Kh(t,r)):n}notify(t){zt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){zt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){zt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Dr=new WeakMap,Ey),vI=(xy=class extends sg{constructor(t){super();De(this,kr);De(this,Pr);De(this,yn);De(this,ni);this.mutationId=t.mutationId,Ce(this,yn,t.mutationCache),Ce(this,Pr,[]),this.state=t.state||ug(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){D(this,Pr).includes(t)||(D(this,Pr).push(t),this.clearGcTimeout(),D(this,yn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Ce(this,Pr,D(this,Pr).filter(n=>n!==t)),this.scheduleGc(),D(this,yn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){D(this,Pr).length||(this.state.status==="pending"?this.scheduleGc():D(this,yn).remove(this))}continue(){var t;return((t=D(this,ni))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,i,a,s,l,u,c,d,v,y,g,f,p,h,m,b,E,x,T,A;Ce(this,ni,ag({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(C,O)=>{We(this,kr,Oo).call(this,{type:"failed",failureCount:C,error:O})},onPause:()=>{We(this,kr,Oo).call(this,{type:"pause"})},onContinue:()=>{We(this,kr,Oo).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>D(this,yn).canRun(this)}));const n=this.state.status==="pending",r=!D(this,ni).canStart();try{if(!n){We(this,kr,Oo).call(this,{type:"pending",variables:t,isPaused:r}),await((i=(o=D(this,yn).config).onMutate)==null?void 0:i.call(o,t,this));const O=await((s=(a=this.options).onMutate)==null?void 0:s.call(a,t));O!==this.state.context&&We(this,kr,Oo).call(this,{type:"pending",context:O,variables:t,isPaused:r})}const C=await D(this,ni).start();return await((u=(l=D(this,yn).config).onSuccess)==null?void 0:u.call(l,C,t,this.state.context,this)),await((d=(c=this.options).onSuccess)==null?void 0:d.call(c,C,t,this.state.context)),await((y=(v=D(this,yn).config).onSettled)==null?void 0:y.call(v,C,null,this.state.variables,this.state.context,this)),await((f=(g=this.options).onSettled)==null?void 0:f.call(g,C,null,t,this.state.context)),We(this,kr,Oo).call(this,{type:"success",data:C}),C}catch(C){try{throw await((h=(p=D(this,yn).config).onError)==null?void 0:h.call(p,C,t,this.state.context,this)),await((b=(m=this.options).onError)==null?void 0:b.call(m,C,t,this.state.context)),await((x=(E=D(this,yn).config).onSettled)==null?void 0:x.call(E,void 0,C,this.state.variables,this.state.context,this)),await((A=(T=this.options).onSettled)==null?void 0:A.call(T,void 0,C,t,this.state.context)),C}finally{We(this,kr,Oo).call(this,{type:"error",error:C})}}finally{D(this,yn).runNext(this)}}},Pr=new WeakMap,yn=new WeakMap,ni=new WeakMap,kr=new WeakSet,Oo=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),zt.batch(()=>{D(this,Pr).forEach(r=>{r.onMutationUpdate(t)}),D(this,yn).notify({mutation:this,type:"updated",action:t})})},xy);function ug(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var yI=(Cy=class extends gi{constructor(t={}){super();De(this,Xr);De(this,gr);De(this,os);this.config=t,Ce(this,Xr,new Set),Ce(this,gr,new Map),Ce(this,os,0)}build(t,n,r){const o=new vI({mutationCache:this,mutationId:++cu(this,os)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){D(this,Xr).add(t);const n=nl(t);if(typeof n=="string"){const r=D(this,gr).get(n);r?r.push(t):D(this,gr).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(D(this,Xr).delete(t)){const n=nl(t);if(typeof n=="string"){const r=D(this,gr).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&D(this,gr).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=nl(t);if(typeof n=="string"){const r=D(this,gr).get(n),o=r==null?void 0:r.find(i=>i.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=nl(t);if(typeof n=="string"){const o=(r=D(this,gr).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){zt.batch(()=>{D(this,Xr).forEach(t=>{this.notify({type:"removed",mutation:t})}),D(this,Xr).clear(),D(this,gr).clear()})}getAll(){return Array.from(D(this,Xr))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>eg(n,r))}findAll(t={}){return this.getAll().filter(n=>eg(t,n))}notify(t){zt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return zt.batch(()=>Promise.all(t.map(n=>n.continue().catch(Un))))}},Xr=new WeakMap,gr=new WeakMap,os=new WeakMap,Cy);function nl(e){var t;return(t=e.options.scope)==null?void 0:t.id}function cg(e){return{onFetch:(t,n)=>{var c,d,v,y,g;const r=t.options,o=(v=(d=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:d.fetchMore)==null?void 0:v.direction,i=((y=t.state.data)==null?void 0:y.pages)||[],a=((g=t.state.data)==null?void 0:g.pageParams)||[];let s={pages:[],pageParams:[]},l=0;const u=async()=>{let f=!1;const p=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(t.signal.aborted?f=!0:t.signal.addEventListener("abort",()=>{f=!0}),t.signal)})},h=rg(t.options,t.fetchOptions),m=async(b,E,x)=>{if(f)return Promise.reject();if(E==null&&b.pages.length)return Promise.resolve(b);const T={client:t.client,queryKey:t.queryKey,pageParam:E,direction:x?"backward":"forward",meta:t.options.meta};p(T);const A=await h(T),{maxPages:C}=t.options,O=x?cI:uI;return{pages:O(b.pages,A,C),pageParams:O(b.pageParams,E,C)}};if(o&&i.length){const b=o==="backward",E=b?EI:dg,x={pages:i,pageParams:a},T=E(r,x);s=await m(x,T,b)}else{const b=e??i.length;do{const E=l===0?a[0]??r.initialPageParam:dg(r,s);if(l>0&&E==null)break;s=await m(s,E),l++}while(l<b)}return s};t.options.persister?t.fetchFn=()=>{var f,p;return(p=(f=t.options).persister)==null?void 0:p.call(f,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function dg(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function EI(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var xI=(wy=class{constructor(e={}){De(this,Nt);De(this,vo);De(this,yo);De(this,Xi);De(this,Zi);De(this,Eo);De(this,Yi);De(this,Ui);Ce(this,Nt,e.queryCache||new bI),Ce(this,vo,e.mutationCache||new yI),Ce(this,yo,e.defaultOptions||{}),Ce(this,Xi,new Map),Ce(this,Zi,new Map),Ce(this,Eo,0)}mount(){cu(this,Eo)._++,D(this,Eo)===1&&(Ce(this,Yi,pc.subscribe(async e=>{e&&(await this.resumePausedMutations(),D(this,Nt).onFocus())})),Ce(this,Ui,tl.subscribe(async e=>{e&&(await this.resumePausedMutations(),D(this,Nt).onOnline())})))}unmount(){var e,t;cu(this,Eo)._--,D(this,Eo)===0&&((e=D(this,Yi))==null||e.call(this),Ce(this,Yi,void 0),(t=D(this,Ui))==null||t.call(this),Ce(this,Ui,void 0))}isFetching(e){return D(this,Nt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return D(this,vo).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=D(this,Nt).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=D(this,Nt).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(mi(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return D(this,Nt).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=D(this,Nt).get(r.queryHash),i=o==null?void 0:o.state.data,a=sI(t,i);if(a!==void 0)return D(this,Nt).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return zt.batch(()=>D(this,Nt).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=D(this,Nt).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=D(this,Nt);zt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=D(this,Nt);return zt.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=zt.batch(()=>D(this,Nt).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(Un).catch(Un)}invalidateQueries(e,t={}){return zt.batch(()=>(D(this,Nt).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=zt.batch(()=>D(this,Nt).findAll(e).filter(o=>!o.isDisabled()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(Un)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Un)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=D(this,Nt).build(this,t);return n.isStaleByTime(mi(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Un).catch(Un)}fetchInfiniteQuery(e){return e.behavior=cg(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Un).catch(Un)}ensureInfiniteQueryData(e){return e.behavior=cg(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return tl.isOnline()?D(this,vo).resumePausedMutations():Promise.resolve()}getQueryCache(){return D(this,Nt)}getMutationCache(){return D(this,vo)}getDefaultOptions(){return D(this,yo)}setDefaultOptions(e){Ce(this,yo,e)}setQueryDefaults(e,t){D(this,Xi).set(Vo(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...D(this,Xi).values()],n={};return t.forEach(r=>{xa(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){D(this,Zi).set(Vo(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...D(this,Zi).values()],n={};return t.forEach(r=>{xa(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...D(this,yo).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=uc(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===el&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...D(this,yo).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){D(this,Nt).clear(),D(this,vo).clear()}},Nt=new WeakMap,vo=new WeakMap,yo=new WeakMap,Xi=new WeakMap,Zi=new WeakMap,Eo=new WeakMap,Yi=new WeakMap,Ui=new WeakMap,wy),CI=(Iy=class extends gi{constructor(t,n){super();De(this,dt);De(this,On);De(this,Ze);De(this,is);De(this,En);De(this,ri);De(this,qi);De(this,xo);De(this,Lr);De(this,as);De(this,Ji);De(this,Qi);De(this,oi);De(this,ii);De(this,Co);De(this,$i,new Set);this.options=n,Ce(this,On,t),Ce(this,Lr,null),Ce(this,xo,hc()),this.options.experimental_prefetchInRender||D(this,xo).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(D(this,Ze).addObserver(this),fg(D(this,Ze),this.options)?We(this,dt,us).call(this):this.updateResult(),We(this,dt,kf).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return mc(D(this,Ze),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return mc(D(this,Ze),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,We(this,dt,Lf).call(this),We(this,dt,Ff).call(this),D(this,Ze).removeObserver(this)}setOptions(t,n){const r=this.options,o=D(this,Ze);if(this.options=D(this,On).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof sr(this.options.enabled,D(this,Ze))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");We(this,dt,Mf).call(this),D(this,Ze).setOptions(this.options),r._defaulted&&!Ks(this.options,r)&&D(this,On).getQueryCache().notify({type:"observerOptionsUpdated",query:D(this,Ze),observer:this});const i=this.hasListeners();i&&pg(D(this,Ze),o,this.options,r)&&We(this,dt,us).call(this),this.updateResult(n),i&&(D(this,Ze)!==o||sr(this.options.enabled,D(this,Ze))!==sr(r.enabled,D(this,Ze))||mi(this.options.staleTime,D(this,Ze))!==mi(r.staleTime,D(this,Ze)))&&We(this,dt,Nf).call(this);const a=We(this,dt,Df).call(this);i&&(D(this,Ze)!==o||sr(this.options.enabled,D(this,Ze))!==sr(r.enabled,D(this,Ze))||a!==D(this,Co))&&We(this,dt,Pf).call(this,a)}getOptimisticResult(t){const n=D(this,On).getQueryCache().build(D(this,On),t),r=this.createResult(n,t);return II(this,r)&&(Ce(this,En,r),Ce(this,qi,this.options),Ce(this,ri,D(this,Ze).state)),r}getCurrentResult(){return D(this,En)}trackResult(t,n){const r={};return Object.keys(t).forEach(o=>{Object.defineProperty(r,o,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(o),n==null||n(o),t[o])})}),r}trackProp(t){D(this,$i).add(t)}getCurrentQuery(){return D(this,Ze)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=D(this,On).defaultQueryOptions(t),r=D(this,On).getQueryCache().build(D(this,On),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return We(this,dt,us).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),D(this,En)))}createResult(t,n){var C;const r=D(this,Ze),o=this.options,i=D(this,En),a=D(this,ri),s=D(this,qi),u=t!==r?t.state:D(this,is),{state:c}=t;let d={...c},v=!1,y;if(n._optimisticResults){const O=this.hasListeners(),B=!O&&fg(t,n),M=O&&pg(t,r,n,o);(B||M)&&(d={...d,...lg(c.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:g,errorUpdatedAt:f,status:p}=d;if(n.select&&d.data!==void 0)if(i&&d.data===(a==null?void 0:a.data)&&n.select===D(this,as))y=D(this,Ji);else try{Ce(this,as,n.select),y=n.select(d.data),y=fc(i==null?void 0:i.data,y,n),Ce(this,Ji,y),Ce(this,Lr,null)}catch(O){Ce(this,Lr,O)}else y=d.data;if(n.placeholderData!==void 0&&y===void 0&&p==="pending"){let O;if(i!=null&&i.isPlaceholderData&&n.placeholderData===(s==null?void 0:s.placeholderData))O=i.data;else if(O=typeof n.placeholderData=="function"?n.placeholderData((C=D(this,Qi))==null?void 0:C.state.data,D(this,Qi)):n.placeholderData,n.select&&O!==void 0)try{O=n.select(O),Ce(this,Lr,null)}catch(B){Ce(this,Lr,B)}O!==void 0&&(p="success",y=fc(i==null?void 0:i.data,O,n),v=!0)}D(this,Lr)&&(g=D(this,Lr),y=D(this,Ji),f=Date.now(),p="error");const h=d.fetchStatus==="fetching",m=p==="pending",b=p==="error",E=m&&h,x=y!==void 0,A={status:p,fetchStatus:d.fetchStatus,isPending:m,isSuccess:p==="success",isError:b,isInitialLoading:E,isLoading:E,data:y,dataUpdatedAt:d.dataUpdatedAt,error:g,errorUpdatedAt:f,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>u.dataUpdateCount||d.errorUpdateCount>u.errorUpdateCount,isFetching:h,isRefetching:h&&!m,isLoadingError:b&&!x,isPaused:d.fetchStatus==="paused",isPlaceholderData:v,isRefetchError:b&&x,isStale:bc(t,n),refetch:this.refetch,promise:D(this,xo)};if(this.options.experimental_prefetchInRender){const O=Q=>{A.status==="error"?Q.reject(A.error):A.data!==void 0&&Q.resolve(A.data)},B=()=>{const Q=Ce(this,xo,A.promise=hc());O(Q)},M=D(this,xo);switch(M.status){case"pending":t.queryHash===r.queryHash&&O(M);break;case"fulfilled":(A.status==="error"||A.data!==M.value)&&B();break;case"rejected":(A.status!=="error"||A.error!==M.reason)&&B();break}}return A}updateResult(t){const n=D(this,En),r=this.createResult(D(this,Ze),this.options);if(Ce(this,ri,D(this,Ze).state),Ce(this,qi,this.options),D(this,ri).data!==void 0&&Ce(this,Qi,D(this,Ze)),Ks(r,n))return;Ce(this,En,r);const o={},i=()=>{if(!n)return!0;const{notifyOnChangeProps:a}=this.options,s=typeof a=="function"?a():a;if(s==="all"||!s&&!D(this,$i).size)return!0;const l=new Set(s??D(this,$i));return this.options.throwOnError&&l.add("error"),Object.keys(D(this,En)).some(u=>{const c=u;return D(this,En)[c]!==n[c]&&l.has(c)})};(t==null?void 0:t.listeners)!==!1&&i()&&(o.listeners=!0),We(this,dt,_y).call(this,{...o,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&We(this,dt,kf).call(this)}},On=new WeakMap,Ze=new WeakMap,is=new WeakMap,En=new WeakMap,ri=new WeakMap,qi=new WeakMap,xo=new WeakMap,Lr=new WeakMap,as=new WeakMap,Ji=new WeakMap,Qi=new WeakMap,oi=new WeakMap,ii=new WeakMap,Co=new WeakMap,$i=new WeakMap,dt=new WeakSet,us=function(t){We(this,dt,Mf).call(this);let n=D(this,Ze).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Un)),n},Nf=function(){We(this,dt,Lf).call(this);const t=mi(this.options.staleTime,D(this,Ze));if(jo||D(this,En).isStale||!lc(t))return;const r=$h(D(this,En).dataUpdatedAt,t)+1;Ce(this,oi,setTimeout(()=>{D(this,En).isStale||this.updateResult()},r))},Df=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(D(this,Ze)):this.options.refetchInterval)??!1},Pf=function(t){We(this,dt,Ff).call(this),Ce(this,Co,t),!(jo||sr(this.options.enabled,D(this,Ze))===!1||!lc(D(this,Co))||D(this,Co)===0)&&Ce(this,ii,setInterval(()=>{(this.options.refetchIntervalInBackground||pc.isFocused())&&We(this,dt,us).call(this)},D(this,Co)))},kf=function(){We(this,dt,Nf).call(this),We(this,dt,Pf).call(this,We(this,dt,Df).call(this))},Lf=function(){D(this,oi)&&(clearTimeout(D(this,oi)),Ce(this,oi,void 0))},Ff=function(){D(this,ii)&&(clearInterval(D(this,ii)),Ce(this,ii,void 0))},Mf=function(){const t=D(this,On).getQueryCache().build(D(this,On),this.options);if(t===D(this,Ze))return;const n=D(this,Ze);Ce(this,Ze,t),Ce(this,is,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},_y=function(t){zt.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(D(this,En))}),D(this,On).getQueryCache().notify({query:D(this,Ze),type:"observerResultsUpdated"})})},Iy);function wI(e,t){return sr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function fg(e,t){return wI(e,t)||e.state.data!==void 0&&mc(e,t,t.refetchOnMount)}function mc(e,t,n){if(sr(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&bc(e,t)}return!1}function pg(e,t,n,r){return(e!==t||sr(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&bc(e,n)}function bc(e,t){return sr(t.enabled,e)!==!1&&e.isStaleByTime(mi(t.staleTime,e))}function II(e,t){return!Ks(e.getCurrentResult(),t)}var SI=(Sy=class extends gi{constructor(t,n){super();De(this,Yr);De(this,wo);De(this,Io);De(this,Rn);De(this,Zr);Ce(this,wo,t),this.setOptions(n),this.bindMethods(),We(this,Yr,du).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var r;const n=this.options;this.options=D(this,wo).defaultMutationOptions(t),Ks(this.options,n)||D(this,wo).getMutationCache().notify({type:"observerOptionsUpdated",mutation:D(this,Rn),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&Vo(n.mutationKey)!==Vo(this.options.mutationKey)?this.reset():((r=D(this,Rn))==null?void 0:r.state.status)==="pending"&&D(this,Rn).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=D(this,Rn))==null||t.removeObserver(this)}onMutationUpdate(t){We(this,Yr,du).call(this),We(this,Yr,Bf).call(this,t)}getCurrentResult(){return D(this,Io)}reset(){var t;(t=D(this,Rn))==null||t.removeObserver(this),Ce(this,Rn,void 0),We(this,Yr,du).call(this),We(this,Yr,Bf).call(this)}mutate(t,n){var r;return Ce(this,Zr,n),(r=D(this,Rn))==null||r.removeObserver(this),Ce(this,Rn,D(this,wo).getMutationCache().build(D(this,wo),this.options)),D(this,Rn).addObserver(this),D(this,Rn).execute(t)}},wo=new WeakMap,Io=new WeakMap,Rn=new WeakMap,Zr=new WeakMap,Yr=new WeakSet,du=function(){var n;const t=((n=D(this,Rn))==null?void 0:n.state)??ug();Ce(this,Io,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},Bf=function(t){zt.batch(()=>{var n,r,o,i,a,s,l,u;if(D(this,Zr)&&this.hasListeners()){const c=D(this,Io).variables,d=D(this,Io).context;(t==null?void 0:t.type)==="success"?((r=(n=D(this,Zr)).onSuccess)==null||r.call(n,t.data,c,d),(i=(o=D(this,Zr)).onSettled)==null||i.call(o,t.data,null,c,d)):(t==null?void 0:t.type)==="error"&&((s=(a=D(this,Zr)).onError)==null||s.call(a,t.error,c,d),(u=(l=D(this,Zr)).onSettled)==null||u.call(l,void 0,t.error,c,d))}this.listeners.forEach(c=>{c(D(this,Io))})})},Sy),hg=P.createContext(void 0),rl=e=>{const t=P.useContext(hg);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},TI=({client:e,children:t})=>(P.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),I.jsx(hg.Provider,{value:e,children:t})),gg=P.createContext(!1),AI=()=>P.useContext(gg);gg.Provider;function _I(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var OI=P.createContext(_I()),RI=()=>P.useContext(OI);function mg(e,t){return typeof e=="function"?e(...t):!!e}function vc(){}var NI=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},DI=e=>{P.useEffect(()=>{e.clearReset()},[e])},PI=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||mg(n,[e.error,r])),kI=e=>{const t=e.staleTime;e.suspense&&(e.staleTime=typeof t=="function"?(...n)=>Math.max(t(...n),1e3):Math.max(t??1e3,1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},LI=(e,t)=>e.isLoading&&e.isFetching&&!t,FI=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,bg=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function MI(e,t,n){var d,v,y,g,f;if(process.env.NODE_ENV!=="production"&&(typeof e!="object"||Array.isArray(e)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=rl(),o=AI(),i=RI(),a=r.defaultQueryOptions(e);(v=(d=r.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||v.call(d,a),process.env.NODE_ENV!=="production"&&(a.queryFn||console.error(`[${a.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`)),a._optimisticResults=o?"isRestoring":"optimistic",kI(a),NI(a,i),DI(i);const s=!r.getQueryCache().get(a.queryHash),[l]=P.useState(()=>new t(r,a)),u=l.getOptimisticResult(a),c=!o&&e.subscribed!==!1;if(P.useSyncExternalStore(P.useCallback(p=>{const h=c?l.subscribe(zt.batchCalls(p)):vc;return l.updateResult(),h},[l,c]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),P.useEffect(()=>{l.setOptions(a,{listeners:!1})},[a,l]),FI(a,u))throw bg(a,l,i);if(PI({result:u,errorResetBoundary:i,throwOnError:a.throwOnError,query:r.getQueryCache().get(a.queryHash),suspense:a.suspense}))throw u.error;if((g=(y=r.getDefaultOptions().queries)==null?void 0:y._experimental_afterQuery)==null||g.call(y,a,u),a.experimental_prefetchInRender&&!jo&&LI(u,o)){const p=s?bg(a,l,i):(f=r.getQueryCache().get(a.queryHash))==null?void 0:f.promise;p==null||p.catch(vc).finally(()=>{l.updateResult()})}return a.notifyOnChangeProps?u:l.trackResult(u)}function vg(e,t){return MI(e,CI)}function BI(e,t){const n=rl(),[r]=P.useState(()=>new SI(n,e));P.useEffect(()=>{r.setOptions(e)},[r,e]);const o=P.useSyncExternalStore(P.useCallback(a=>r.subscribe(zt.batchCalls(a)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=P.useCallback((a,s)=>{r.mutate(a,s).catch(vc)},[r]);if(o.error&&mg(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}const jI=({children:e})=>{const t=new xI;return I.jsx(TI,{client:t,children:e})},VI=e=>I.jsx(w.HiverProvider,{custom:!0,children:I.jsx(S.Suspense,{fallback:I.jsx(I.Fragment,{}),children:I.jsx(jI,{children:I.jsx(aI,{...e})})})}),GI=e=>I.jsx(s1,{store:rI,children:I.jsx(VI,{...e})});/**
|
|
66
|
+
`):" "+Ch(i[0]):"as no adapter specified";throw new je("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:Yu};function Uu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new li(null,e)}function Ih(e){return Uu(e),e.headers=or.from(e.headers),e.data=Xu.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),wh.getAdapter(e.adapter||Hu.adapter)(e).then(function(r){return Uu(e),r.data=Xu.call(e,e.transformResponse,r),r.headers=or.from(r.headers),r},function(r){return dh(r)||(Uu(e),r&&r.response&&(r.response.data=Xu.call(e,e.transformResponse,r.response),r.response.headers=or.from(r.response.headers))),Promise.reject(r)})}const Sh="1.7.7",qu={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{qu[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Th={};qu.transitional=function(t,n,r){function o(i,a){return"[Axios v"+Sh+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,l)=>{if(t===!1)throw new je(o(a," has been removed"+(n?" in "+n:"")),je.ERR_DEPRECATED);return n&&!Th[a]&&(Th[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,l):!0}};function wC(e,t,n){if(typeof e!="object")throw new je("options must be an object",je.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const l=e[i],s=l===void 0||a(l,i,e);if(s!==!0)throw new je("option "+i+" must be "+s,je.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new je("Unknown option "+i,je.ERR_BAD_OPTION)}}var Ju={assertOptions:wC,validators:qu};const eo=Ju.validators;let Vs=class{constructor(t){this.defaults=t,this.interceptors={request:new sh,response:new sh}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
67
|
+
`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Mo(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&Ju.assertOptions(r,{silentJSONParsing:eo.transitional(eo.boolean),forcedJSONParsing:eo.transitional(eo.boolean),clarifyTimeoutError:eo.transitional(eo.boolean)},!1),o!=null&&(Y.isFunction(o)?n.paramsSerializer={serialize:o}:Ju.assertOptions(o,{encode:eo.function,serialize:eo.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&Y.merge(i.common,i[n.method]);i&&Y.forEach(["delete","get","head","post","put","patch","common"],v=>{delete i[v]}),n.headers=or.concat(a,i);const l=[];let s=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(n)===!1||(s=s&&d.synchronous,l.unshift(d.fulfilled,d.rejected))});const u=[];this.interceptors.response.forEach(function(d){u.push(d.fulfilled,d.rejected)});let c,f=0,b;if(!s){const v=[Ih.bind(this),void 0];for(v.unshift.apply(v,l),v.push.apply(v,u),b=v.length,c=Promise.resolve(n);f<b;)c=c.then(v[f++],v[f++]);return c}b=l.length;let y=n;for(f=0;f<b;){const v=l[f++],d=l[f++];try{y=v(y)}catch(p){d.call(this,p);break}}try{c=Ih.call(this,y)}catch(v){return Promise.reject(v)}for(f=0,b=u.length;f<b;)c=c.then(u[f++],u[f++]);return c}getUri(t){t=Mo(this.defaults,t);const n=gh(t.baseURL,t.url);return ah(n,t.params,t.paramsSerializer)}};Y.forEach(["delete","get","head","options"],function(t){Vs.prototype[t]=function(n,r){return this.request(Mo(r||{},{method:t,url:n,data:(r||{}).data}))}}),Y.forEach(["post","put","patch"],function(t){function n(r){return function(i,a,l){return this.request(Mo(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Vs.prototype[t]=n(),Vs.prototype[t+"Form"]=n(!0)});var Gs=Vs;class Qu{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(l=>{r.subscribe(l),i=l}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,l){r.reason||(r.reason=new li(i,a,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Qu(function(o){t=o}),cancel:t}}}var IC=Qu;function SC(e){return function(n){return e.apply(null,n)}}function TC(e){return Y.isObject(e)&&e.isAxiosError===!0}const $u={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries($u).forEach(([e,t])=>{$u[t]=e});var AC=$u;function Ah(e){const t=new Gs(e),n=zp(Gs.prototype.request,t);return Y.extend(n,Gs.prototype,t,{allOwnKeys:!0}),Y.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Ah(Mo(e,o))},n}const Ft=Ah(Hu);Ft.Axios=Gs,Ft.CanceledError=li,Ft.CancelToken=IC,Ft.isCancel=dh,Ft.VERSION=Sh,Ft.toFormData=ks,Ft.AxiosError=je,Ft.Cancel=Ft.CanceledError,Ft.all=function(t){return Promise.all(t)},Ft.spread=SC,Ft.isAxiosError=TC,Ft.mergeConfig=Mo,Ft.AxiosHeaders=or,Ft.formToJSON=e=>uh(Y.isHTMLForm(e)?new FormData(e):e),Ft.getAdapter=wh.getAdapter,Ft.HttpStatusCode=AC,Ft.default=Ft;var _h=Ft,et={},to={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PLATFORM=e.TENANT_PLATFORM=e.API_CALL_ORIGIN=e.TIERS=e.APP_UI=e.CONFIG_HIVER=e.DEFAULT_INIT_CONFIG_HIVER=e.TWO_MINUTES_IN_MS=e.REFETCH_CHECK_DELAY=e.RETRY_DELAY_IN_CASE_OF_CORRUPTED_EXPIRY=e.INITIAL_RETRY_DELAY=e.MAX_BACKOFF_LIMIT=e.MAX_CONFLICT_RETRY_DELAY=e.MAX_RETRY_DELAY=e.GET_METHOD=void 0,e.GET_METHOD="GET",e.MAX_RETRY_DELAY=18e4,e.MAX_CONFLICT_RETRY_DELAY=63e3,e.MAX_BACKOFF_LIMIT=8e3,e.INITIAL_RETRY_DELAY=1e3,e.RETRY_DELAY_IN_CASE_OF_CORRUPTED_EXPIRY=3e3,e.REFETCH_CHECK_DELAY=168e4,e.TWO_MINUTES_IN_MS=2*60*1e3,e.DEFAULT_INIT_CONFIG_HIVER={getToken:!0,isHiverApiDomain:!0,fetchCsrfToken:function(){return""}},e.CONFIG_HIVER={getToken:!1,fetchCsrfToken:function(){return""},isHiverApiDomain:!0},e.APP_UI={COLLAB_SPACE:"collab-space",DEFAULT:"default"},e.TIERS={DEV:"dev",SIT:"sit",QA:"qa",PRODUCTION:"production",PROD:"prod"},e.API_CALL_ORIGIN={API_RETRY:"Api Retry"},e.TENANT_PLATFORM={GMAIL:"GMAIL",HIVERWEB:"HIVERWEB"},function(t){t[t.WEB=0]="WEB",t[t.MOBILE=1]="MOBILE"}(e.PLATFORM||(e.PLATFORM={}))})(to);var Sn={};Object.defineProperty(Sn,"__esModule",{value:!0}),Sn.getProdHqConfig=Sn.getProdApiConfig=Sn.getSitHqConfig=Sn.getSitApiConfig=Sn.getDevHqConfig=Sn.getDevApiConfig=void 0;var ui={heimdallTokenFetch:"/v1/token/get",heimdallLogin:"/v1/login/code",heimdallLogout:"/v1/logout",v2Login:"/api/auth/login/code",hotLogin:"/api/auth/login/code"},_C=function(){return{v2Url:"https://v2dev.hiver.space",heimdallUrl:"https://dev.hiver.space/api/heimdall-api",hotUrl:"http://local.hiverhq.co.in:3000",apiEndpoints:ui}};Sn.getDevApiConfig=_C;var OC=function(){return{v2Url:"https://v2dev.hiver.space",heimdallUrl:"https://dev.hiver.space/api/heimdall-api2",hotUrl:"http://local.hiverhq.co.in:3000",apiEndpoints:ui}};Sn.getDevHqConfig=OC;var RC=function(e){return{v2Url:"https://v2".concat(e,".hiver.space"),heimdallUrl:"https://".concat(e,".hiver.space/api/heimdall-api"),hotUrl:"https://api-staging.hiverhq.co.in",apiEndpoints:ui}};Sn.getSitApiConfig=RC;var NC=function(e){return{v2Url:"https://v2".concat(e,".hiver.space"),heimdallUrl:"https://".concat(e,".hiver.space/api/heimdall-api2"),hotUrl:"https://api-staging.hiverhq.co.in",apiEndpoints:ui}};Sn.getSitHqConfig=NC;var DC=function(){return{v2Url:"https://v2.hiverhq.com",heimdallUrl:"https://heimdall.hiverapi.com",hotUrl:"https://app.hiverhq.com",apiEndpoints:ui}};Sn.getProdApiConfig=DC;var PC=function(){return{v2Url:"https://v2.hiverhq.com",heimdallUrl:"https://heimdall2.hiverhq.com",hotUrl:"https://app.hiverhq.com",apiEndpoints:ui}};Sn.getProdHqConfig=PC;var vr={},yr={};Object.defineProperty(yr,"__esModule",{value:!0}),yr.removeValue=yr.getValue=yr.setValue=void 0;var Ku={};function kC(e,t){Ku[e]=t}yr.setValue=kC;function LC(e){return Ku[e]}yr.getValue=LC;function FC(e){delete Ku[e]}yr.removeValue=FC,Object.defineProperty(vr,"__esModule",{value:!0}),vr.removeItemFromStorage=vr.setItemInStorage=vr.getItemFromStorage=void 0;var ci=to,di=yr,MC=function(e,t){switch(t===void 0&&(t=(0,di.getValue)("PLATFORM")),t){case ci.PLATFORM.WEB:return sessionStorage.getItem(e);case ci.PLATFORM.MOBILE:return(0,di.getValue)(e);default:throw Error("Invalid PLATFORM ".concat(t))}};vr.getItemFromStorage=MC;var BC=function(e,t,n){switch(n===void 0&&(n=(0,di.getValue)("PLATFORM")),n){case ci.PLATFORM.WEB:return sessionStorage.setItem(e,t);case ci.PLATFORM.MOBILE:return(0,di.setValue)(e,t);default:throw Error("Invalid PLATFORM ".concat(n))}};vr.setItemInStorage=BC;var jC=function(e,t){switch(t===void 0&&(t=(0,di.getValue)("PLATFORM")),t){case ci.PLATFORM.WEB:sessionStorage.removeItem(e);break;case ci.PLATFORM.MOBILE:(0,di.removeValue)(e);break;default:throw Error("Invalid PLATFORM ".concat(t))}};vr.removeItemFromStorage=jC;var VC=Be&&Be.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(c){try{u(r.next(c))}catch(f){a(f)}}function s(c){try{u(r.throw(c))}catch(f){a(f)}}function u(c){c.done?i(c.value):o(c.value).then(l,s)}u((r=r.apply(e,t||[])).next())})},GC=Be&&Be.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(u){return function(c){return s([u,c])}}function s(u){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(n=0)),n;)try{if(r=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,o=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){n.label=u[1];break}if(u[0]===6&&n.label<i[1]){n.label=i[1],i=u;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(u);break}i[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(c){u=[6,c],o=0}finally{r=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}};Object.defineProperty(et,"__esModule",{value:!0}),et.expireToken=et.invalidateToken=et.validateToken=et.validateAccount=et.getConfig=et.introduceDelay=et.isTokenInExpiryWindow=et.getStoredAuthData=et.setUserDetails=et.getRefreshInterval=et.setTokenAndExpiry=et.getRandomDelay=et.hasValidToken=void 0;var jr=to,fi=Sn,Gn=vr,ec=function(){var e=new Date,t=new Date(e.getTime()+e.getTimezoneOffset()*6e4);return t},tc=function(e){var t=parseInt((0,Gn.getItemFromStorage)("hiverAuthUserId")||"0"),n=parseInt((0,Gn.getItemFromStorage)("hiverAuthUserGroupId")||"0"),r=e.userId,o=e.usergroupId;return t===r&&o===n};et.validateAccount=tc;var WC=function(e){var t=tc(e);return!Oh()&&t};et.validateToken=WC;var HC=function(e){return e.apiRetry?e.apiRetry>0:!1};et.invalidateToken=HC;var zC=function(){try{sessionStorage.removeItem("hiverAuthTokenExpiry")}catch{console.log("Heimdall: Unable to Remove token.")}};et.expireToken=zC;var XC=function(e){var t=(0,Gn.getItemFromStorage)("hiverAuthTokenExpiry")||"",n=new Date(t),r=ec(),o=tc(e);return console.log("Heimdall: checking if there is a valid token",r<n&&o),r<n&&o};et.hasValidToken=XC;var ZC=function(){return Math.floor(Math.random()*6e4)+6e4};et.getRandomDelay=ZC;var YC=function(e,t){if(!e||!t)throw new Error("User Id or user group Id not found in the response");(0,Gn.setItemInStorage)("hiverAuthUserId",e),(0,Gn.setItemInStorage)("hiverAuthUserGroupId",t)};et.setUserDetails=YC;var UC=function(e,t){if(!e)throw new Error("Token not found in the response");(0,Gn.setItemInStorage)("hiverAuthToken",e),(0,Gn.setItemInStorage)("hiverAuthTokenExpiry",t)};et.setTokenAndExpiry=UC;var qC=function(){var e=(0,Gn.getItemFromStorage)("hiverAuthTokenExpiry"),t=(0,Gn.getItemFromStorage)("hiverAuthToken"),n=(0,Gn.getItemFromStorage)("hiverAuthUserId"),r=(0,Gn.getItemFromStorage)("hiverAuthUserGroupId");return{token:t,expiryTime:e,userId:n,usergroupId:r}};et.getStoredAuthData=qC;var Oh=function(){var e=(0,Gn.getItemFromStorage)("hiverAuthTokenExpiry")||"";if(!e)return!0;var t=ec(),n=new Date(e),r=4*60*1e3,o=n.getTime()-t.getTime()<r;return console.log({currentTime:t,expiry:n,isInExpiryWindow:o}),o};et.isTokenInExpiryWindow=Oh;var JC=function(e){return VC(void 0,void 0,void 0,function(){return GC(this,function(t){switch(t.label){case 0:return[4,new Promise(function(n){return setTimeout(n,e)})];case 1:return t.sent(),[2]}})})};et.introduceDelay=JC;var QC=function(e,t,n){switch(n===void 0&&(n=!0),t){case jr.TIERS.SIT:case jr.TIERS.QA:return n?(0,fi.getSitApiConfig)(e):(0,fi.getSitHqConfig)(e);case jr.TIERS.PRODUCTION:case jr.TIERS.PROD:return n?(0,fi.getProdApiConfig)():(0,fi.getProdHqConfig)();case jr.TIERS.DEV:default:return n?(0,fi.getDevApiConfig)():(0,fi.getDevHqConfig)()}};et.getConfig=QC;var $C=function(){try{var e=(0,Gn.getItemFromStorage)("hiverAuthTokenExpiry");if(!e)return jr.RETRY_DELAY_IN_CASE_OF_CORRUPTED_EXPIRY;var t=new Date(e),n=ec();return t.getTime()-n.getTime()>jr.TWO_MINUTES_IN_MS?t.getTime()-jr.TWO_MINUTES_IN_MS:t.getTime()-n.getTime()}catch(r){return console.error("Heimdall: Error in getRefreshInterval",r),jr.REFETCH_CHECK_DELAY}};et.getRefreshInterval=$C;var ma={},ir={},Rh;function Nh(){if(Rh)return ir;Rh=1;var e=Be&&Be.__awaiter||function(v,d,p,h){function g(m){return m instanceof p?m:new p(function(E){E(m)})}return new(p||(p=Promise))(function(m,E){function x(C){try{T(h.next(C))}catch(O){E(O)}}function A(C){try{T(h.throw(C))}catch(O){E(O)}}function T(C){C.done?m(C.value):g(C.value).then(x,A)}T((h=h.apply(v,d||[])).next())})},t=Be&&Be.__generator||function(v,d){var p={label:0,sent:function(){if(m[0]&1)throw m[1];return m[1]},trys:[],ops:[]},h,g,m,E;return E={next:x(0),throw:x(1),return:x(2)},typeof Symbol=="function"&&(E[Symbol.iterator]=function(){return this}),E;function x(T){return function(C){return A([T,C])}}function A(T){if(h)throw new TypeError("Generator is already executing.");for(;E&&(E=0,T[0]&&(p=0)),p;)try{if(h=1,g&&(m=T[0]&2?g.return:T[0]?g.throw||((m=g.return)&&m.call(g),0):g.next)&&!(m=m.call(g,T[1])).done)return m;switch(g=0,m&&(T=[T[0]&2,m.value]),T[0]){case 0:case 1:m=T;break;case 4:return p.label++,{value:T[1],done:!1};case 5:p.label++,g=T[1],T=[0];continue;case 7:T=p.ops.pop(),p.trys.pop();continue;default:if(m=p.trys,!(m=m.length>0&&m[m.length-1])&&(T[0]===6||T[0]===2)){p=0;continue}if(T[0]===3&&(!m||T[1]>m[0]&&T[1]<m[3])){p.label=T[1];break}if(T[0]===6&&p.label<m[1]){p.label=m[1],m=T;break}if(m&&p.label<m[2]){p.label=m[2],p.ops.push(T);break}m[2]&&p.ops.pop(),p.trys.pop();continue}T=d.call(v,p)}catch(C){T=[6,C],g=0}finally{h=m=0}if(T[0]&5)throw T[1];return{value:T[0]?T[1]:void 0,done:!0}}};Object.defineProperty(ir,"__esModule",{value:!0}),ir.logoutFromHeimdall=ir.getTenantLoginCode=ir.getLoginToken=ir.getAccessToken=void 0;var n=to,r=Fh(),o=et,i=function(v,d,p,h){var g=(0,o.getStoredAuthData)(),m=p===n.TENANT_PLATFORM.HIVERWEB?n.TENANT_PLATFORM.HIVERWEB:n.TENANT_PLATFORM.GMAIL;return{root_url:v.heimdallUrl,url:v.apiEndpoints.heimdallTokenFetch,method:n.GET_METHOD,headers:{"x-hiver-tenant":m},data:{user_id:d.userId,usergroup_id:d.usergroupId,access_token:(g==null?void 0:g.token)||"",source:h}}},a=function(v,d,p,h,g){var m=p===n.TENANT_PLATFORM.HIVERWEB?n.TENANT_PLATFORM.HIVERWEB:n.TENANT_PLATFORM.GMAIL;return{root_url:d.heimdallUrl,url:d.apiEndpoints.heimdallLogin,method:n.GET_METHOD,data:{code:v},headers:{"x-hiver-tenant":m,"x-hiver-userid":h,"x-hiver-usergroupid":g}}},l=function(v,d){var p=d===n.TENANT_PLATFORM.HIVERWEB?n.TENANT_PLATFORM.HIVERWEB:n.TENANT_PLATFORM.GMAIL;return{root_url:v.heimdallUrl,url:v.apiEndpoints.heimdallLogout,method:n.GET_METHOD,headers:{"x-hiver-tenant":p}}},s=function(v){return parseInt(v,10)},u=function(v,d,p,h){return{root_url:p===n.TENANT_PLATFORM.HIVERWEB?v.hotUrl:v.v2Url,url:p===n.TENANT_PLATFORM.HIVERWEB?v.apiEndpoints.hotLogin:v.apiEndpoints.v2Login,method:n.GET_METHOD,data:{usersession:s(d.userId),app:h||n.APP_UI.DEFAULT}}},c=function(v,d,p,h,g){return e(void 0,void 0,void 0,function(){var m,E,x,A,T,C,O;return t(this,function(M){switch(M.label){case 0:console.log("GETTOKEN tenantPlatform -> ",h),M.label=1;case 1:return M.trys.push([1,5,,6]),!(0,o.validateToken)(p)||(0,o.invalidateToken)(p)?(console.log("HEIMDALL: No valid token, fetching token"),m=i(d,p,h,g),[4,(0,r.performAxiosCall)(m)]):[3,3];case 2:return E=M.sent(),[2,{atToken:(A=E==null?void 0:E.data.at)===null||A===void 0?void 0:A.token,expiryTime:(T=E==null?void 0:E.data.at)===null||T===void 0?void 0:T.expires_at,userId:(C=E==null?void 0:E.data)===null||C===void 0?void 0:C.user_id,userGroupId:(O=E==null?void 0:E.data)===null||O===void 0?void 0:O.usergroup_id}];case 3:return console.log("Heimdall: Valid token already exists"),[2,{}];case 4:return[3,6];case 5:throw x=M.sent(),x;case 6:return[2]}})})};ir.getAccessToken=c;var f=function(v,d,p,h,g,m){return e(void 0,void 0,void 0,function(){var E,x,A,T,C,O,M;return t(this,function(B){switch(B.label){case 0:E=a(v,p,h,g,m),B.label=1;case 1:return B.trys.push([1,3,,4]),[4,(0,r.performAxiosCall)(E)];case 2:return x=B.sent(),[2,{userId:(T=x==null?void 0:x.data)===null||T===void 0?void 0:T.user_id,userGroupId:(C=x==null?void 0:x.data)===null||C===void 0?void 0:C.usergroup_id,atToken:(O=x==null?void 0:x.data.at)===null||O===void 0?void 0:O.token,expiryTime:(M=x==null?void 0:x.data.at)===null||M===void 0?void 0:M.expires_at}];case 3:throw A=B.sent(),A;case 4:return[2]}})})};ir.getLoginToken=f;var b=function(v,d,p,h,g){return e(void 0,void 0,void 0,function(){var m,E,x;return t(this,function(A){switch(A.label){case 0:return A.trys.push([0,2,,3]),console.log("ERROR debug: in getTenantLoginCode:",g),m=u(d,p,h,g),[4,(0,r.performAxiosCall)(m)];case 1:return E=A.sent(),[2,E==null?void 0:E.data.code];case 2:throw x=A.sent(),x;case 3:return[2]}})})};ir.getTenantLoginCode=b;var y=function(v,d,p){return p===void 0&&(p=0),e(void 0,void 0,void 0,function(){var h,g,m;return t(this,function(E){switch(E.label){case 0:return E.trys.push([0,2,,5]),h=l(v,d),[4,(0,r.performAxiosCall)(h)];case 1:return g=E.sent(),[2,g==null?void 0:g.status];case 2:return m=E.sent(),p<2?[4,y(v,d,p+1)]:[3,4];case 3:E.sent(),E.label=4;case 4:throw m;case 5:return[2]}})})};return ir.logoutFromHeimdall=y,ir}var Ws={},KC=Be&&Be.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(c){try{u(r.next(c))}catch(f){a(f)}}function s(c){try{u(r.throw(c))}catch(f){a(f)}}function u(c){c.done?i(c.value):o(c.value).then(l,s)}u((r=r.apply(e,t||[])).next())})},ew=Be&&Be.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(u){return function(c){return s([u,c])}}function s(u){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(n=0)),n;)try{if(r=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,o=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){n.label=u[1];break}if(u[0]===6&&n.label<i[1]){n.label=i[1],i=u;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(u);break}i[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(c){u=[6,c],o=0}finally{r=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}};Object.defineProperty(Ws,"__esModule",{value:!0}),Ws.subscribeToOnlineEvent=void 0;var Dh=to,tw=yr,nw=function(e,t){switch(t===void 0&&(t=(0,tw.getValue)("PLATFORM")),console.log("Online status detected. Fetching token..."),t){case Dh.PLATFORM.WEB:return window.addEventListener("online",function(){return KC(void 0,void 0,void 0,function(){return ew(this,function(n){switch(n.label){case 0:return console.log("Online status detected. Fetching token..."),[4,e()];case 1:return n.sent(),[2]}})})});case Dh.PLATFORM.MOBILE:e();return;default:throw Error("Invalid PLATFORM ".concat(t))}};Ws.subscribeToOnlineEvent=nw;var Ph;function kh(){if(Ph)return ma;Ph=1;var e=Be&&Be.__awaiter||function(v,d,p,h){function g(m){return m instanceof p?m:new p(function(E){E(m)})}return new(p||(p=Promise))(function(m,E){function x(C){try{T(h.next(C))}catch(O){E(O)}}function A(C){try{T(h.throw(C))}catch(O){E(O)}}function T(C){C.done?m(C.value):g(C.value).then(x,A)}T((h=h.apply(v,d||[])).next())})},t=Be&&Be.__generator||function(v,d){var p={label:0,sent:function(){if(m[0]&1)throw m[1];return m[1]},trys:[],ops:[]},h,g,m,E;return E={next:x(0),throw:x(1),return:x(2)},typeof Symbol=="function"&&(E[Symbol.iterator]=function(){return this}),E;function x(T){return function(C){return A([T,C])}}function A(T){if(h)throw new TypeError("Generator is already executing.");for(;E&&(E=0,T[0]&&(p=0)),p;)try{if(h=1,g&&(m=T[0]&2?g.return:T[0]?g.throw||((m=g.return)&&m.call(g),0):g.next)&&!(m=m.call(g,T[1])).done)return m;switch(g=0,m&&(T=[T[0]&2,m.value]),T[0]){case 0:case 1:m=T;break;case 4:return p.label++,{value:T[1],done:!1};case 5:p.label++,g=T[1],T=[0];continue;case 7:T=p.ops.pop(),p.trys.pop();continue;default:if(m=p.trys,!(m=m.length>0&&m[m.length-1])&&(T[0]===6||T[0]===2)){p=0;continue}if(T[0]===3&&(!m||T[1]>m[0]&&T[1]<m[3])){p.label=T[1];break}if(T[0]===6&&p.label<m[1]){p.label=m[1],m=T;break}if(m&&p.label<m[2]){p.label=m[2],p.ops.push(T);break}m[2]&&p.ops.pop(),p.trys.pop();continue}T=d.call(v,p)}catch(C){T=[6,C],g=0}finally{h=m=0}if(T[0]&5)throw T[1];return{value:T[0]?T[1]:void 0,done:!0}}};Object.defineProperty(ma,"__esModule",{value:!0}),ma.fetchAccessToken=void 0;var n=Nh(),r=to,o=et,i=Ws,a,l,s,u=function(v,d,p,h,g,m){return m===void 0&&(m=r.APP_UI.DEFAULT),e(void 0,void 0,void 0,function(){var E,x,A,T,C,O,M,B,U;return t(this,function(G){switch(G.label){case 0:E=2,G.label=1;case 1:return G.trys.push([1,7,,12]),console.log("ERROR debug: in login:",m,h),x=void 0,g?[4,g()]:[3,3];case 2:return x=G.sent(),[3,5];case 3:return[4,(0,n.getTenantLoginCode)(r.CONFIG_HIVER,v,d,h,m)];case 4:x=G.sent(),G.label=5;case 5:return[4,(0,n.getLoginToken)(x,r.CONFIG_HIVER,v,h,d.userId,d.usergroupId)];case 6:return A=G.sent(),T=A.userId,C=A.userGroupId,O=A.atToken,M=A.expiryTime,(0,o.setTokenAndExpiry)(O,M),(0,o.setUserDetails)(T,C),[3,12];case 7:B=G.sent(),console.log("ERROR debug: in error login:",B,m),U=p,G.label=8;case 8:return U<E?[4,u(v,d,U+1,h,g,m)]:[3,11];case 9:G.sent(),G.label=10;case 10:return U++,[3,8];case 11:throw B;case 12:return[2]}})})},c=function(v,d,p,h,g){return e(void 0,void 0,void 0,function(){var m,E,x,A;return t(this,function(T){switch(T.label){case 0:return d<r.MAX_CONFLICT_RETRY_DELAY?[4,new Promise(function(C){return setTimeout(C,v)})]:[3,3];case 1:return T.sent(),d+=v,v*2<=r.MAX_BACKOFF_LIMIT?v*=2:v=r.MAX_BACKOFF_LIMIT,console.log("Heimdall: Fetch token post doubling conflict retry delay",v),m=p.retryDelay,E=p.configs,x=p.apiParams,A=p.appUI,[4,f(m,v,d,E,x,h,g,A)];case 2:T.sent(),T.label=3;case 3:return[2]}})})},f=function(v,d,p,h,g,m,E,x,A){return x===void 0&&(x="default"),e(void 0,void 0,void 0,function(){var T,C,O,M,B,U,G,X,q,$,ue,se,ve,W;return t(this,function(te){switch(te.label){case 0:return te.trys.push([0,2,,12]),console.log("Heimdall: Interval Set on fetch token in fetchAndSaveToken:",s),[4,(0,n.getAccessToken)(r.CONFIG_HIVER,h,g,m,x)];case 1:return T=te.sent(),C=T.atToken,O=T.expiryTime,M=T.userId,B=T.userGroupId,C&&O&&(0,o.setTokenAndExpiry)(C,O),M&&B&&(0,o.setUserDetails)(M,B),v=r.INITIAL_RETRY_DELAY,d=r.INITIAL_RETRY_DELAY,p=0,[3,12];case 2:return U=te.sent(),console.log("ERROR: Heimdall fetch token",U),((q=U.response)===null||q===void 0?void 0:q.status)===401||(($=U.request)===null||$===void 0?void 0:$.status)===401?(G=1,[4,u(h,g,G,m,E,A)]):[3,4];case 3:return te.sent(),[3,11];case 4:return((ue=U.response)===null||ue===void 0?void 0:ue.status)===409||((se=U.request)===null||se===void 0?void 0:se.status)===409?(console.log("Heimdall: Fetching token post 409 in fetch And Save Token"),X={retryDelay:v,configs:h,apiParams:g,appUI:A},[4,c(d,p,X,m,E)]):[3,6];case 5:if(te.sent(),p>=r.MAX_CONFLICT_RETRY_DELAY)throw U;return[3,11];case 6:if(!(((ve=U.response)===null||ve===void 0?void 0:ve.status)===422||((W=U.request)===null||W===void 0?void 0:W.status)===422))return[3,7];throw console.log("ERROR: Throwing error",U.response.status),U;case 7:return v<=r.MAX_RETRY_DELAY?[4,new Promise(function(re){return setTimeout(re,v)})]:[3,10];case 8:return te.sent(),v*=2,console.log("Heimdall: Fetch token post doubling retry delay",v),[4,f(v,d,p,h,g,m,E,A)];case 9:return te.sent(),[3,11];case 10:throw U;case 11:return[3,12];case 12:return[2]}})})},b=function(v,d,p,h,g,m,E,x){return p===void 0&&(p=r.INITIAL_RETRY_DELAY),h===void 0&&(h=r.INITIAL_RETRY_DELAY),e(void 0,void 0,void 0,function(){var A,T,C;return t(this,function(O){switch(O.label){case 0:return O.trys.push([0,4,,5]),A=(0,o.isTokenInExpiryWindow)(),A?(T=(0,o.getRandomDelay)(),[4,(0,o.introduceDelay)(T)]):[3,3];case 1:return O.sent(),console.log("Heimdall: Fetching token - in expiry window"),[4,f(p,h,g,v,d,m,E,x)];case 2:O.sent(),O.label=3;case 3:return[3,5];case 4:throw C=O.sent(),C;case 5:return[2]}})})},y=function(v,d,p,h,g,m,E){return e(void 0,void 0,void 0,function(){var x,A,T,C,O,M;return t(this,function(B){switch(B.label){case 0:a=v,l=d,x=r.INITIAL_RETRY_DELAY,A=r.INITIAL_RETRY_DELAY,T=0,C=(0,o.getConfig)(a,l),console.log("Instance: Fetch Call"),B.label=1;case 1:return B.trys.push([1,3,,4]),[4,f(x,A,T,C,p,h,g,m,E)];case 2:return B.sent(),console.log("Heimdall: Interval Set on fetch token when fetch token is called:",s),clearInterval(s),s=setInterval(function(){return b(C,p,r.INITIAL_RETRY_DELAY,r.INITIAL_RETRY_DELAY,0,h,g,E)},r.REFETCH_CHECK_DELAY),O=function(){return e(void 0,void 0,void 0,function(){return t(this,function(U){switch(U.label){case 0:return[4,b(C,p,r.INITIAL_RETRY_DELAY,r.INITIAL_RETRY_DELAY,0,h,g,E)];case 1:return U.sent(),[2]}})})},console.log("Heimdall: Interval Set on fetch token:",s),(0,i.subscribeToOnlineEvent)(O),[3,4];case 3:return M=B.sent(),console.log("ERROR: Fetching token failed",M),[3,4];case 4:return[2]}})})};return ma.fetchAccessToken=y,ma}var Lh;function Fh(){if(Lh)return Lo;Lh=1;var e=Be&&Be.__assign||function(){return e=Object.assign||function(d){for(var p,h=1,g=arguments.length;h<g;h++){p=arguments[h];for(var m in p)Object.prototype.hasOwnProperty.call(p,m)&&(d[m]=p[m])}return d},e.apply(this,arguments)},t=Be&&Be.__awaiter||function(d,p,h,g){function m(E){return E instanceof h?E:new h(function(x){x(E)})}return new(h||(h=Promise))(function(E,x){function A(O){try{C(g.next(O))}catch(M){x(M)}}function T(O){try{C(g.throw(O))}catch(M){x(M)}}function C(O){O.done?E(O.value):m(O.value).then(A,T)}C((g=g.apply(d,p||[])).next())})},n=Be&&Be.__generator||function(d,p){var h={label:0,sent:function(){if(E[0]&1)throw E[1];return E[1]},trys:[],ops:[]},g,m,E,x;return x={next:A(0),throw:A(1),return:A(2)},typeof Symbol=="function"&&(x[Symbol.iterator]=function(){return this}),x;function A(C){return function(O){return T([C,O])}}function T(C){if(g)throw new TypeError("Generator is already executing.");for(;x&&(x=0,C[0]&&(h=0)),h;)try{if(g=1,m&&(E=C[0]&2?m.return:C[0]?m.throw||((E=m.return)&&E.call(m),0):m.next)&&!(E=E.call(m,C[1])).done)return E;switch(m=0,E&&(C=[C[0]&2,E.value]),C[0]){case 0:case 1:E=C;break;case 4:return h.label++,{value:C[1],done:!1};case 5:h.label++,m=C[1],C=[0];continue;case 7:C=h.ops.pop(),h.trys.pop();continue;default:if(E=h.trys,!(E=E.length>0&&E[E.length-1])&&(C[0]===6||C[0]===2)){h=0;continue}if(C[0]===3&&(!E||C[1]>E[0]&&C[1]<E[3])){h.label=C[1];break}if(C[0]===6&&h.label<E[1]){h.label=E[1],E=C;break}if(E&&h.label<E[2]){h.label=E[2],h.ops.push(C);break}E[2]&&h.ops.pop(),h.trys.pop();continue}C=p.call(d,h)}catch(O){C=[6,O],m=0}finally{g=E=0}if(C[0]&5)throw C[1];return{value:C[0]?C[1]:void 0,done:!0}}};Object.defineProperty(Lo,"__esModule",{value:!0}),Lo.hiverAxiosCall=Lo.performAxiosCall=void 0;var r=_h,o=et,i=kh(),a=vr,l=to,s,u=2,c=function(d,p){var h=p.fetchCsrfToken();d.formData?d.formData.append("_csrf_token",h):(d.data=d.data||{},d.data._csrf_token=h)},f=function(d,p){var h={};!d.method||d.method.toLowerCase()==="get"?h={params:d.params?d.params:d.data}:h=d.params?{params:d,data:d.data}:{data:d.data};var g=e(e({method:d.method,url:"".concat(d.root_url).concat(d.url),headers:d.headers},h),{withCredentials:p,responseType:(d==null?void 0:d.responseType)||""});return g};function b(d,p){return p===void 0&&(p=!0),t(this,void 0,void 0,function(){var h;return n(this,function(g){return h=f(d,p),[2,(0,r.default)(h).then(function(m){return m}).catch(function(m){throw m})]})})}Lo.performAxiosCall=b;function y(d,p,h){return t(this,void 0,void 0,function(){var g,m,E;return n(this,function(x){switch(x.label){case 0:return x.trys.push([0,6,,8]),d.authTokenFetchingInProgress?[3,2]:(d.authTokenFetchingInProgress=!0,g=d.appEnv,m=d.tier,[4,(0,i.fetchAccessToken)(g,m,p,d.tenantPlatform,d.getTokenForLogin,h)]);case 1:return x.sent(),d.authTokenFetchingInProgress=!1,[3,5];case 2:return[4,new Promise(function(A){return setTimeout(A,100)})];case 3:return x.sent(),console.log("Heimdall: Retrying fetchAccessToken after 100ms..."),[4,y(d,p,h)];case 4:x.sent(),x.label=5;case 5:return[3,8];case 6:return E=x.sent(),console.log("Error while fetching Auth Token :",E),d.authTokenFetchingInProgress=!1,[4,y(d,p,h)];case 7:return x.sent(),[3,8];case 8:return[2]}})})}function v(d,p,h,g,m){var E,x;return m===void 0&&(m=0),t(this,void 0,void 0,function(){var A,T,C,O,M,B,U;return n(this,function(G){switch(G.label){case 0:if(G.trys.push([0,4,,5]),!(h.getToken&&!(0,o.hasValidToken)(p)))return[3,2];if(A=d.appEnv,T=d.tier,!A||!T)throw Error("appEnv or tier missing : ".concat(A,"/").concat(T));return"userId"in p&&"usergroupId"in p?(C={userId:p.userId,usergroupId:p.usergroupId},[4,y(d,C,g)]):[3,2];case 1:G.sent(),G.label=2;case 2:return d.csrfToken&&c(p,h),O=d.tenantPlatform===l.TENANT_PLATFORM.HIVERWEB?l.TENANT_PLATFORM.HIVERWEB:l.TENANT_PLATFORM.GMAIL,p.headers=e(e({},p.headers),{"x-hiver-tenant":O,"x-hiver-userid":(0,a.getItemFromStorage)("hiverAuthUserId")||"0","x-hiver-usergroupid":(0,a.getItemFromStorage)("hiverAuthUserGroupId")||"0"}),h.getToken&&(s=(0,a.getItemFromStorage)("hiverAuthToken")||"",p.headers=e(e({},p.headers),{Authorization:"Bearer ".concat(s)})),console.log("Performing axios call for:",p),[4,b(p,d.withCredentials)];case 3:return M=G.sent(),p.onSuccess&&p.onSuccess(M),[2,M];case 4:if(B=G.sent(),U=((E=B.response)===null||E===void 0?void 0:E.status)===403||((x=B.request)===null||x===void 0?void 0:x.status)===403,m<u&&U)return(0,o.expireToken)(),[2,v(d,p,h,g,m+1)];if(m>=u&&U||!U)throw p.onFail&&p.onFail(B),console.log("ERROR: Reached make Axios",B),B;return[3,5];case 5:return[2]}})})}return Lo.hiverAxiosCall=v,Lo}var ba={},Et={},Ot={};Object.defineProperty(Ot,"__esModule",{value:!0}),Ot.TIERS=Ot.APP_UI=Ot.CONFIG_HIVER=Ot.REFETCH_CHECK_DELAY=Ot.INITIAL_RETRY_DELAY=Ot.MAX_BACKOFF_LIMIT=Ot.MAX_CONFLICT_RETRY_DELAY=Ot.MAX_RETRY_DELAY=Ot.GET_METHOD=void 0,Ot.GET_METHOD="GET",Ot.MAX_RETRY_DELAY=18e4,Ot.MAX_CONFLICT_RETRY_DELAY=63e3,Ot.MAX_BACKOFF_LIMIT=8e3,Ot.INITIAL_RETRY_DELAY=1e3,Ot.REFETCH_CHECK_DELAY=168e4,Ot.CONFIG_HIVER={getToken:!1,fetchCsrfToken:function(){return""},isHiverApiDomain:!0},Ot.APP_UI={COLLAB_SPACE:"collab-space",DEFAULT:"default"},Ot.TIERS={DEV:"dev",SIT:"sit",PROD:"production"};var Tn={};Object.defineProperty(Tn,"__esModule",{value:!0}),Tn.getProdHqConfig=Tn.getProdApiConfig=Tn.getSitHqConfig=Tn.getSitApiConfig=Tn.getDevHqConfig=Tn.getDevApiConfig=void 0;var pi={heimdallTokenFetch:"/v1/token/get",heimdallLogin:"/v1/login/code",v2Login:"/api/auth/login/code"},rw=function(){return{v2Url:"https://v2dev.hiver.space",heimdallUrl:"https://dev.hiver.space/api/heimdall-api",apiEndpoints:pi}};Tn.getDevApiConfig=rw;var ow=function(){return{v2Url:"https://v2dev.hiver.space",heimdallUrl:"https://dev.hiver.space/api/heimdall-api2",apiEndpoints:pi}};Tn.getDevHqConfig=ow;var iw=function(e){return{v2Url:"https://v2".concat(e,".hiver.space"),heimdallUrl:"https://".concat(e,".hiver.space/api/heimdall-api"),apiEndpoints:pi}};Tn.getSitApiConfig=iw;var aw=function(e){return{v2Url:"https://v2".concat(e,".hiver.space"),heimdallUrl:"https://".concat(e,".hiver.space/api/heimdall-api2"),apiEndpoints:pi}};Tn.getSitHqConfig=aw;var sw=function(){return{v2Url:"https://v2.hiverhq.com",heimdallUrl:"https://heimdall.hiverapi.com",apiEndpoints:pi}};Tn.getProdApiConfig=sw;var lw=function(){return{v2Url:"https://v2.hiverhq.com",heimdallUrl:"https://heimdall2.hiverhq.com",apiEndpoints:pi}};Tn.getProdHqConfig=lw;var uw=Be&&Be.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(c){try{u(r.next(c))}catch(f){a(f)}}function s(c){try{u(r.throw(c))}catch(f){a(f)}}function u(c){c.done?i(c.value):o(c.value).then(l,s)}u((r=r.apply(e,t||[])).next())})},cw=Be&&Be.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(u){return function(c){return s([u,c])}}function s(u){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(n=0)),n;)try{if(r=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,o=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){n.label=u[1];break}if(u[0]===6&&n.label<i[1]){n.label=i[1],i=u;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(u);break}i[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(c){u=[6,c],o=0}finally{r=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}};Object.defineProperty(Et,"__esModule",{value:!0}),Et.expireToken=Et.validateToken=Et.validateAccount=Et.getConfig=Et.introduceDelay=Et.isTokenInExpiryWindow=Et.getStoredAuthData=Et.setUserDetails=Et.setTokenAndExpiry=Et.getRandomDelay=Et.hasValidToken=void 0;var nc=Ot,Bo=Tn,Mh=function(){var e=new Date,t=new Date(e.getTime()+e.getTimezoneOffset()*6e4);return t},rc=function(e){var t=parseInt(sessionStorage.getItem("hiverAuthUserId")||"0"),n=parseInt(sessionStorage.getItem("hiverAuthUserGroupId")||"0"),r=e.userId,o=e.usergroupId;return t===r&&o===n};Et.validateAccount=rc;var dw=function(e){var t=rc(e);return!Bh()&&t};Et.validateToken=dw;var fw=function(){try{sessionStorage.removeItem("hiverAuthTokenExpiry")}catch{console.log("Heimdall: Unable to Remove token.")}};Et.expireToken=fw;var pw=function(e){console.log("Heimdall: checking if there is a valid token");var t=sessionStorage.getItem("hiverAuthTokenExpiry")||"",n=new Date(t),r=Mh(),o=rc(e);return r<n&&o};Et.hasValidToken=pw;var hw=function(){return Math.floor(Math.random()*6e4)+6e4};Et.getRandomDelay=hw;var gw=function(e,t){if(!e||!t)throw new Error("User Id or user group Id not found in the response");sessionStorage.setItem("hiverAuthUserId",e),sessionStorage.setItem("hiverAuthUserGroupId",t)};Et.setUserDetails=gw;var mw=function(e,t){if(!e)throw new Error("Token not found in the response");sessionStorage.setItem("hiverAuthToken",e),sessionStorage.setItem("hiverAuthTokenExpiry",t)};Et.setTokenAndExpiry=mw;var bw=function(){var e=sessionStorage.getItem("hiverAuthTokenExpiry"),t=sessionStorage.getItem("hiverAuthToken"),n=sessionStorage.getItem("hiverAuthUserId"),r=sessionStorage.getItem("hiverAuthUserGroupId");return{token:t,expiryTime:e,userId:n,usergroupId:r}};Et.getStoredAuthData=bw;var Bh=function(){var e=sessionStorage.getItem("hiverAuthTokenExpiry")||"";if(!e)return!0;var t=Mh(),n=new Date(e),r=4*60*1e3,o=n.getTime()-t.getTime()<r;return console.log({currentTime:t,expiry:n,isInExpiryWindow:o}),o};Et.isTokenInExpiryWindow=Bh;var vw=function(e){return uw(void 0,void 0,void 0,function(){return cw(this,function(t){switch(t.label){case 0:return[4,new Promise(function(n){return setTimeout(n,e)})];case 1:return t.sent(),[2]}})})};Et.introduceDelay=vw;var yw=function(e,t,n){switch(t){case nc.TIERS.SIT:return console.log("ISHIVERAPIDOMAIN:",n,(0,Bo.getSitHqConfig)(e)),n?(0,Bo.getSitApiConfig)(e):(0,Bo.getSitHqConfig)(e);case nc.TIERS.PROD:return n?(0,Bo.getProdApiConfig)():(0,Bo.getProdHqConfig)();case nc.TIERS.DEV:default:return n?(0,Bo.getDevApiConfig)():(0,Bo.getDevHqConfig)()}};Et.getConfig=yw;var va={},Vr={},jh;function Ew(){if(jh)return Vr;jh=1;var e=Be&&Be.__awaiter||function(b,y,v,d){function p(h){return h instanceof v?h:new v(function(g){g(h)})}return new(v||(v=Promise))(function(h,g){function m(A){try{x(d.next(A))}catch(T){g(T)}}function E(A){try{x(d.throw(A))}catch(T){g(T)}}function x(A){A.done?h(A.value):p(A.value).then(m,E)}x((d=d.apply(b,y||[])).next())})},t=Be&&Be.__generator||function(b,y){var v={label:0,sent:function(){if(h[0]&1)throw h[1];return h[1]},trys:[],ops:[]},d,p,h,g;return g={next:m(0),throw:m(1),return:m(2)},typeof Symbol=="function"&&(g[Symbol.iterator]=function(){return this}),g;function m(x){return function(A){return E([x,A])}}function E(x){if(d)throw new TypeError("Generator is already executing.");for(;g&&(g=0,x[0]&&(v=0)),v;)try{if(d=1,p&&(h=x[0]&2?p.return:x[0]?p.throw||((h=p.return)&&h.call(p),0):p.next)&&!(h=h.call(p,x[1])).done)return h;switch(p=0,h&&(x=[x[0]&2,h.value]),x[0]){case 0:case 1:h=x;break;case 4:return v.label++,{value:x[1],done:!1};case 5:v.label++,p=x[1],x=[0];continue;case 7:x=v.ops.pop(),v.trys.pop();continue;default:if(h=v.trys,!(h=h.length>0&&h[h.length-1])&&(x[0]===6||x[0]===2)){v=0;continue}if(x[0]===3&&(!h||x[1]>h[0]&&x[1]<h[3])){v.label=x[1];break}if(x[0]===6&&v.label<h[1]){v.label=h[1],h=x;break}if(h&&v.label<h[2]){v.label=h[2],v.ops.push(x);break}h[2]&&v.ops.pop(),v.trys.pop();continue}x=y.call(b,v)}catch(A){x=[6,A],p=0}finally{d=h=0}if(x[0]&5)throw x[1];return{value:x[0]?x[1]:void 0,done:!0}}};Object.defineProperty(Vr,"__esModule",{value:!0}),Vr.getV2LoginCode=Vr.getLoginToken=Vr.getAccessToken=void 0;var n=Ot,r=Hh(),o=Et,i=function(b,y,v){var d=(0,o.getStoredAuthData)();return{root_url:b.heimdallUrl,url:b.apiEndpoints.heimdallTokenFetch,method:n.GET_METHOD,data:{user_id:y.userId,usergroup_id:y.usergroupId,access_token:(d==null?void 0:d.token)||"",source:v},withCredentials:!0}},a=function(b,y){return{root_url:y.heimdallUrl,url:y.apiEndpoints.heimdallLogin,method:n.GET_METHOD,data:{code:b},withCredentials:!0}},l=function(b){return parseInt(b,10)},s=function(b,y){return{root_url:b.v2Url,url:b.apiEndpoints.v2Login,method:n.GET_METHOD,withCredentials:!0,data:{usersession:l(localStorage.getItem("hiver-config.usersession")),app:y||n.APP_UI.DEFAULT}}},u=function(b,y,v,d){return e(void 0,void 0,void 0,function(){var p,h,g,m,E,x,A;return t(this,function(T){switch(T.label){case 0:return T.trys.push([0,4,,5]),(0,o.validateToken)(v)?[3,2]:(console.log("HEIMDALL: No valid token, fetching token"),p=i(y,v,d),[4,(0,r.makeAxiosCall)(p,b)]);case 1:return h=T.sent(),[2,{atToken:(m=h==null?void 0:h.data.at)===null||m===void 0?void 0:m.token,expiryTime:(E=h==null?void 0:h.data.at)===null||E===void 0?void 0:E.expires_at,userId:(x=h==null?void 0:h.data)===null||x===void 0?void 0:x.user_id,userGroupId:(A=h==null?void 0:h.data)===null||A===void 0?void 0:A.usergroup_id}];case 2:return console.log("Heimdall: Valid token already exists"),[2,{}];case 3:return[3,5];case 4:throw g=T.sent(),g;case 5:return[2]}})})};Vr.getAccessToken=u;var c=function(b,y,v){return e(void 0,void 0,void 0,function(){var d,p,h,g,m,E,x;return t(this,function(A){switch(A.label){case 0:d=a(b,v),A.label=1;case 1:return A.trys.push([1,3,,4]),[4,(0,r.makeAxiosCall)(d,y)];case 2:return p=A.sent(),[2,{userId:(g=p==null?void 0:p.data)===null||g===void 0?void 0:g.user_id,userGroupId:(m=p==null?void 0:p.data)===null||m===void 0?void 0:m.usergroup_id,atToken:(E=p==null?void 0:p.data.at)===null||E===void 0?void 0:E.token,expiryTime:(x=p==null?void 0:p.data.at)===null||x===void 0?void 0:x.expires_at}];case 3:throw h=A.sent(),h;case 4:return[2]}})})};Vr.getLoginToken=c;var f=function(b,y,v){return e(void 0,void 0,void 0,function(){var d,p,h;return t(this,function(g){switch(g.label){case 0:return g.trys.push([0,2,,3]),console.log("ERROR debug: in getV2loginCode:",v),d=s(y,v),[4,(0,r.makeAxiosCall)(d,b)];case 1:return p=g.sent(),console.log("DEBUG HEIMDALL: local storage:",p==null?void 0:p.data),[2,p==null?void 0:p.data.code];case 2:throw h=g.sent(),h;case 3:return[2]}})})};return Vr.getV2LoginCode=f,Vr}var Vh;function Gh(){if(Vh)return va;Vh=1;var e=Be&&Be.__awaiter||function(y,v,d,p){function h(g){return g instanceof d?g:new d(function(m){m(g)})}return new(d||(d=Promise))(function(g,m){function E(T){try{A(p.next(T))}catch(C){m(C)}}function x(T){try{A(p.throw(T))}catch(C){m(C)}}function A(T){T.done?g(T.value):h(T.value).then(E,x)}A((p=p.apply(y,v||[])).next())})},t=Be&&Be.__generator||function(y,v){var d={label:0,sent:function(){if(g[0]&1)throw g[1];return g[1]},trys:[],ops:[]},p,h,g,m;return m={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function E(A){return function(T){return x([A,T])}}function x(A){if(p)throw new TypeError("Generator is already executing.");for(;m&&(m=0,A[0]&&(d=0)),d;)try{if(p=1,h&&(g=A[0]&2?h.return:A[0]?h.throw||((g=h.return)&&g.call(h),0):h.next)&&!(g=g.call(h,A[1])).done)return g;switch(h=0,g&&(A=[A[0]&2,g.value]),A[0]){case 0:case 1:g=A;break;case 4:return d.label++,{value:A[1],done:!1};case 5:d.label++,h=A[1],A=[0];continue;case 7:A=d.ops.pop(),d.trys.pop();continue;default:if(g=d.trys,!(g=g.length>0&&g[g.length-1])&&(A[0]===6||A[0]===2)){d=0;continue}if(A[0]===3&&(!g||A[1]>g[0]&&A[1]<g[3])){d.label=A[1];break}if(A[0]===6&&d.label<g[1]){d.label=g[1],g=A;break}if(g&&d.label<g[2]){d.label=g[2],d.ops.push(A);break}g[2]&&d.ops.pop(),d.trys.pop();continue}A=v.call(y,d)}catch(T){A=[6,T],h=0}finally{p=g=0}if(A[0]&5)throw A[1];return{value:A[0]?A[1]:void 0,done:!0}}};Object.defineProperty(va,"__esModule",{value:!0}),va.fetchToken=void 0;var n=Ew(),r=Ot,o=Et,i,a,l,s=function(y,v,d){return d===void 0&&(d=r.APP_UI.DEFAULT),e(void 0,void 0,void 0,function(){var p,h,g,m,E,x,A,T,C;return t(this,function(O){switch(O.label){case 0:p=2,O.label=1;case 1:return O.trys.push([1,4,,9]),console.log("ERROR debug: in login:",d),[4,(0,n.getV2LoginCode)(r.CONFIG_HIVER,y,d)];case 2:return h=O.sent(),[4,(0,n.getLoginToken)(h,r.CONFIG_HIVER,y)];case 3:return g=O.sent(),m=g.userId,E=g.userGroupId,x=g.atToken,A=g.expiryTime,(0,o.setTokenAndExpiry)(x,A),(0,o.setUserDetails)(m,E),[3,9];case 4:T=O.sent(),console.log("ERROR debug: in error login:",T,d),C=v,O.label=5;case 5:return C<p?[4,s(y,C+1,d)]:[3,8];case 6:O.sent(),O.label=7;case 7:return C++,[3,5];case 8:throw T;case 9:return[2]}})})},u=function(y,v,d){return e(void 0,void 0,void 0,function(){var p,h,g,m;return t(this,function(E){switch(E.label){case 0:return v<r.MAX_CONFLICT_RETRY_DELAY?[4,new Promise(function(x){return setTimeout(x,y)})]:[3,3];case 1:return E.sent(),v+=y,y*2<=r.MAX_BACKOFF_LIMIT?y*=2:y=r.MAX_BACKOFF_LIMIT,console.log("Heimdall: Fetch token post doubling conflict retry delay",y),p=d.retryDelay,h=d.configs,g=d.api_params,m=d.appUI,[4,c(p,y,v,h,g,m)];case 2:E.sent(),E.label=3;case 3:return[2]}})})},c=function(y,v,d,p,h,g,m){return g===void 0&&(g="default"),e(void 0,void 0,void 0,function(){var E,x,A,T,C,O,M,B,U,G,X,q,$,ue;return t(this,function(se){switch(se.label){case 0:return se.trys.push([0,2,,12]),console.log("Heimdall: Interval Set on fetch token in fetchAndSaveToken:",l),[4,(0,n.getAccessToken)(r.CONFIG_HIVER,p,h,g)];case 1:return E=se.sent(),x=E.atToken,A=E.expiryTime,T=E.userId,C=E.userGroupId,x&&A&&(0,o.setTokenAndExpiry)(x,A),T&&C&&(0,o.setUserDetails)(T,C),y=r.INITIAL_RETRY_DELAY,v=r.INITIAL_RETRY_DELAY,d=0,[3,12];case 2:return O=se.sent(),console.log("ERROR: Heimdall fetch token",O),((U=O.response)===null||U===void 0?void 0:U.status)===401||((G=O.request)===null||G===void 0?void 0:G.status)===401?(M=1,[4,s(p,M,m)]):[3,4];case 3:return se.sent(),[3,11];case 4:return((X=O.response)===null||X===void 0?void 0:X.status)===409||((q=O.request)===null||q===void 0?void 0:q.status)===409?(console.log("Heimdall: Fetching token post 409 in fetch And Save Token"),B={retryDelay:y,configs:p,api_params:h,appUI:m},[4,u(v,d,B)]):[3,6];case 5:if(se.sent(),d>=r.MAX_CONFLICT_RETRY_DELAY)throw O;return[3,11];case 6:if(!((($=O.response)===null||$===void 0?void 0:$.status)===422||((ue=O.request)===null||ue===void 0?void 0:ue.status)===422))return[3,7];throw console.log("ERROR: Throwing error",O.response.status),O;case 7:return y<=r.MAX_RETRY_DELAY?[4,new Promise(function(ve){return setTimeout(ve,y)})]:[3,10];case 8:return se.sent(),y*=2,console.log("Heimdall: Fetch token post doubling retry delay",y),[4,c(y,v,d,p,h,m)];case 9:return se.sent(),[3,11];case 10:throw O;case 11:return[3,12];case 12:return[2]}})})},f=function(y,v,d,p,h,g){return d===void 0&&(d=r.INITIAL_RETRY_DELAY),p===void 0&&(p=r.INITIAL_RETRY_DELAY),h===void 0&&(h=0),e(void 0,void 0,void 0,function(){var m,E,x;return t(this,function(A){switch(A.label){case 0:return A.trys.push([0,4,,5]),m=(0,o.isTokenInExpiryWindow)(),m?(E=(0,o.getRandomDelay)(),[4,(0,o.introduceDelay)(E)]):[3,3];case 1:return A.sent(),console.log("Heimdall: Fetching token - in expiry window"),[4,c(d,p,h,y,v,g)];case 2:A.sent(),A.label=3;case 3:return[3,5];case 4:throw x=A.sent(),x;case 5:return[2]}})})},b=function(y,v,d,p,h,g){return e(void 0,void 0,void 0,function(){var m,E,x,A,T;return t(this,function(C){switch(C.label){case 0:i=y,a=v,m=r.INITIAL_RETRY_DELAY,E=r.INITIAL_RETRY_DELAY,x=0,A=(0,o.getConfig)(i,a,p),C.label=1;case 1:return C.trys.push([1,3,,4]),[4,c(m,E,x,A,d,h,g)];case 2:return C.sent(),console.log("Heimdall: Interval Set on fetch token when fetch token is called:",l),clearInterval(l),l=setInterval(function(){return f(A,d)},r.REFETCH_CHECK_DELAY),console.log("Heimdall: Interval Set on fetch token:",l),window.addEventListener("online",function(){return e(void 0,void 0,void 0,function(){return t(this,function(O){switch(O.label){case 0:return console.log("Online status detected. Fetching token..."),[4,f(A,d)];case 1:return O.sent(),[2]}})})}),[3,4];case 3:throw T=C.sent(),T;case 4:return[2]}})})};return va.fetchToken=b,va}var Wh;function Hh(){if(Wh)return ba;Wh=1;var e=Be&&Be.__assign||function(){return e=Object.assign||function(b){for(var y,v=1,d=arguments.length;v<d;v++){y=arguments[v];for(var p in y)Object.prototype.hasOwnProperty.call(y,p)&&(b[p]=y[p])}return b},e.apply(this,arguments)},t=Be&&Be.__awaiter||function(b,y,v,d){function p(h){return h instanceof v?h:new v(function(g){g(h)})}return new(v||(v=Promise))(function(h,g){function m(A){try{x(d.next(A))}catch(T){g(T)}}function E(A){try{x(d.throw(A))}catch(T){g(T)}}function x(A){A.done?h(A.value):p(A.value).then(m,E)}x((d=d.apply(b,y||[])).next())})},n=Be&&Be.__generator||function(b,y){var v={label:0,sent:function(){if(h[0]&1)throw h[1];return h[1]},trys:[],ops:[]},d,p,h,g;return g={next:m(0),throw:m(1),return:m(2)},typeof Symbol=="function"&&(g[Symbol.iterator]=function(){return this}),g;function m(x){return function(A){return E([x,A])}}function E(x){if(d)throw new TypeError("Generator is already executing.");for(;g&&(g=0,x[0]&&(v=0)),v;)try{if(d=1,p&&(h=x[0]&2?p.return:x[0]?p.throw||((h=p.return)&&h.call(p),0):p.next)&&!(h=h.call(p,x[1])).done)return h;switch(p=0,h&&(x=[x[0]&2,h.value]),x[0]){case 0:case 1:h=x;break;case 4:return v.label++,{value:x[1],done:!1};case 5:v.label++,p=x[1],x=[0];continue;case 7:x=v.ops.pop(),v.trys.pop();continue;default:if(h=v.trys,!(h=h.length>0&&h[h.length-1])&&(x[0]===6||x[0]===2)){v=0;continue}if(x[0]===3&&(!h||x[1]>h[0]&&x[1]<h[3])){v.label=x[1];break}if(x[0]===6&&v.label<h[1]){v.label=h[1],h=x;break}if(h&&v.label<h[2]){v.label=h[2],v.ops.push(x);break}h[2]&&v.ops.pop(),v.trys.pop();continue}x=y.call(b,v)}catch(A){x=[6,A],p=0}finally{d=h=0}if(x[0]&5)throw x[1];return{value:x[0]?x[1]:void 0,done:!0}}};Object.defineProperty(ba,"__esModule",{value:!0}),ba.makeAxiosCall=void 0;var r=_h,o=Et,i=Gh(),a,l=2,s=function(b,y){var v=y.fetchCsrfToken();b.formData?b.formData.append("_csrf_token",v):(b.data=b.data||{},b.data._csrf_token=v)},u=function(b){var y=!b.method||b.method.toLowerCase()==="get"?{params:b.data}:{data:b.data},v=e(e({method:b.method,url:"".concat(b.root_url).concat(b.url),headers:b.headers},y),{withCredentials:b.withCredentials,responseType:(b==null?void 0:b.responseType)||""});return v};function c(b){return t(this,void 0,void 0,function(){var y;return n(this,function(v){return y=u(b),[2,(0,r.default)(y).then(function(d){return d}).catch(function(d){throw d})]})})}function f(b,y,v,d){var p,h;return d===void 0&&(d=0),t(this,void 0,void 0,function(){var g,m,E,x,A,T;return n(this,function(C){switch(C.label){case 0:if(C.trys.push([0,4,,5]),!(y.getToken&&!(0,o.hasValidToken)(b)))return[3,2];if(g=b.app_env,m=b.tier,!g||!m)throw Error("app_env or tier missing : ".concat(g,"/").concat(m));return"userId"in b&&"usergroupId"in b?(E={userId:b.userId,usergroupId:b.usergroupId},typeof y.isHiverApiDomain!="boolean"&&(y.isHiverApiDomain=!0),[4,(0,i.fetchToken)(g,m,E,y.isHiverApiDomain,v)]):[3,2];case 1:C.sent(),C.label=2;case 2:return b.csrfToken&&s(b,y),y.getToken&&(a=sessionStorage.getItem("hiverAuthToken")||"",b.headers=e(e({},b.headers),{Authorization:"Bearer ".concat(a)})),[4,c(b)];case 3:return x=C.sent(),b.onSuccess&&b.onSuccess(x),[2,x];case 4:if(A=C.sent(),T=((p=A.response)===null||p===void 0?void 0:p.status)===403||((h=A.request)===null||h===void 0?void 0:h.status)===403,d<l&&T)return(0,o.expireToken)(),[2,f(b,y,v,d+1)];if(d>=l&&T||!T)throw b.onFail&&b.onFail(A),console.log("ERROR: Reached make Axios",A),A;return[3,5];case 5:return[2]}})})}return ba.makeAxiosCall=f,ba}(function(e){var t=Be&&Be.__awaiter||function(y,v,d,p){function h(g){return g instanceof d?g:new d(function(m){m(g)})}return new(d||(d=Promise))(function(g,m){function E(T){try{A(p.next(T))}catch(C){m(C)}}function x(T){try{A(p.throw(T))}catch(C){m(C)}}function A(T){T.done?g(T.value):h(T.value).then(E,x)}A((p=p.apply(y,v||[])).next())})},n=Be&&Be.__generator||function(y,v){var d={label:0,sent:function(){if(g[0]&1)throw g[1];return g[1]},trys:[],ops:[]},p,h,g,m;return m={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function E(A){return function(T){return x([A,T])}}function x(A){if(p)throw new TypeError("Generator is already executing.");for(;m&&(m=0,A[0]&&(d=0)),d;)try{if(p=1,h&&(g=A[0]&2?h.return:A[0]?h.throw||((g=h.return)&&g.call(h),0):h.next)&&!(g=g.call(h,A[1])).done)return g;switch(h=0,g&&(A=[A[0]&2,g.value]),A[0]){case 0:case 1:g=A;break;case 4:return d.label++,{value:A[1],done:!1};case 5:d.label++,h=A[1],A=[0];continue;case 7:A=d.ops.pop(),d.trys.pop();continue;default:if(g=d.trys,!(g=g.length>0&&g[g.length-1])&&(A[0]===6||A[0]===2)){d=0;continue}if(A[0]===3&&(!g||A[1]>g[0]&&A[1]<g[3])){d.label=A[1];break}if(A[0]===6&&d.label<g[1]){d.label=g[1],g=A;break}if(g&&d.label<g[2]){d.label=g[2],d.ops.push(A);break}g[2]&&d.ops.pop(),d.trys.pop();continue}A=v.call(y,d)}catch(T){A=[6,T],h=0}finally{p=g=0}if(A[0]&5)throw A[1];return{value:A[0]?A[1]:void 0,done:!0}}};Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_INIT_CONFIG_HIVER=e.TENANT_PLATFORM=e.fetchToken=e.makeAxiosCall=e.Bifrost=void 0;var r=Fh(),o=kh(),i=to;Object.defineProperty(e,"TENANT_PLATFORM",{enumerable:!0,get:function(){return i.TENANT_PLATFORM}}),Object.defineProperty(e,"DEFAULT_INIT_CONFIG_HIVER",{enumerable:!0,get:function(){return i.DEFAULT_INIT_CONFIG_HIVER}});var a=Nh(),l=et,s=vr,u=Hh();Object.defineProperty(e,"makeAxiosCall",{enumerable:!0,get:function(){return u.makeAxiosCall}});var c=Gh();Object.defineProperty(e,"fetchToken",{enumerable:!0,get:function(){return c.fetchToken}});var f=yr,b=function(){function y(v,d,p,h,g,m){p===void 0&&(p=i.TENANT_PLATFORM.GMAIL),h===void 0&&(h=null),g===void 0&&(g=!0),m===void 0&&(m=!1),this.setEnvironment(),this.appEnv=v,this.tier=d,this.tenantPlatform=p,this.authTokenFetchingInProgress=!1,this.getTokenForLogin=h,this.withCredentials=g,this.csrfToken=m}return y.prototype.setEnvironment=function(){typeof window<"u"&&window.document?(0,f.setValue)("PLATFORM",i.PLATFORM.WEB):(0,f.setValue)("PLATFORM",i.PLATFORM.MOBILE)},y.prototype.hiverAxios=function(v,d,p,h){return d===void 0&&(d=i.DEFAULT_INIT_CONFIG_HIVER),t(this,void 0,void 0,function(){var g,m;return n(this,function(E){switch(E.label){case 0:return E.trys.push([0,4,,5]),h&&h<2?(g={userId:v.userId,usergroupId:v.usergroupId,apiRetry:h},console.log("THIS IS THE TENNANTPLAORM -> ",this.tenantPlatform),[4,(0,o.fetchAccessToken)(this.appEnv,this.tier,g,this.tenantPlatform,this.getTokenForLogin,i.API_CALL_ORIGIN.API_RETRY)]):[3,2];case 1:E.sent(),E.label=2;case 2:return[4,(0,r.hiverAxiosCall)(this,v,d,p)];case 3:return[2,E.sent()];case 4:throw m=E.sent(),console.log("ERROR: Axios call failed",m),m;case 5:return[2]}})})},y.prototype.fetchAuthToken=function(v,d,p){return t(this,void 0,void 0,function(){var h;return n(this,function(g){switch(g.label){case 0:return g.trys.push([0,4,7,8]),this.authTokenFetchingInProgress?[3,2]:(this.authTokenFetchingInProgress=!0,[4,(0,o.fetchAccessToken)(this.appEnv,this.tier,v,this.tenantPlatform,this.getTokenForLogin,d,p)]);case 1:return g.sent(),[3,3];case 2:console.log("Heimdall: AuthToken Fetching InProgress",this.authTokenFetchingInProgress),g.label=3;case 3:return[3,8];case 4:return h=g.sent(),console.log("ERROR: Fetching token failed",h),this.authTokenFetchingInProgress=!1,[4,new Promise(function(m){return setTimeout(m,100)})];case 5:return g.sent(),console.log("Heimdall: Retrying fetchAccessToken after 100ms..."),[4,this.fetchAuthToken(v,d,p)];case 6:return g.sent(),[3,8];case 7:return this.authTokenFetchingInProgress=!1,[7];case 8:return[2]}})})},y.prototype.logout=function(){return t(this,void 0,void 0,function(){var v,d;return n(this,function(p){switch(p.label){case 0:return p.trys.push([0,2,,3]),v=(0,l.getConfig)(this.appEnv,this.tier),[4,(0,a.logoutFromHeimdall)(v,this.tenantPlatform)];case 1:return p.sent(),(0,s.removeItemFromStorage)("hiverAuthToken"),(0,s.removeItemFromStorage)("hiverAuthTokenExpiry"),(0,s.removeItemFromStorage)("hiverAuthUserId"),(0,s.removeItemFromStorage)("hiverAuthUserGroupId"),[3,3];case 2:throw d=p.sent(),console.error("Heimdall: Logout failed",d),d;case 3:return[2]}})})},y.prototype.isTokenFetchingInProgress=function(){return this.authTokenFetchingInProgress},y}();e.Bifrost=b})(ku);const ar={userId:"",userGroupId:"",baseUrl:"",appEnv:"",tier:"",bifrost:null,isInitiated:!1},hi=()=>{if(!ar.isInitiated)return null;if(!ar.baseUrl)throw new Error("Base url is not setup. please call the initConnectorsBifrost function with the appropriate value");return ar},xw=({baseUrl:e,appEnv:t,tier:n,userId:r,userGroupId:o,tenantPlatform:i=ku.TENANT_PLATFORM.GMAIL,withCredentials:a=!0,getTokenForLogin:l})=>{ar.baseUrl=e,ar.appEnv=t,ar.tier=n,ar.userGroupId=o,ar.userId=r,ar.tenantPlatform=i,ar.bifrost=new ku.Bifrost(t,n,i,l,a),ar.isInitiated=!0},on=(({configHiver:e})=>async n=>{const r=hi();if(!r)throw new Error("Please call initConnectorsBifrost before making any api calls");const{bifrost:o,userGroupId:i,userId:a}=r,{url:l,method:s,root_url:u}=n,f={root_url:(u||r.baseUrl)+((n==null?void 0:n.prefix)||""),url:l,method:s,headers:n==null?void 0:n.headers,onSuccess:n==null?void 0:n.onSuccess,onFail:n==null?void 0:n.onFail,data:n==null?void 0:n.data,params:n==null?void 0:n.params,formData:n==null?void 0:n.formData,responseType:n==null?void 0:n.responseType,userId:Number(a),usergroupId:Number(i)};try{return await(o==null?void 0:o.hiverAxios(f,{...e,isHiverApiDomain:!0}))}catch(b){throw console.error("API call failed with error: ",b),b}})({configHiver:{getToken:!0,fetchCsrfToken:()=>"",isHiverApiDomain:!0},withCredentials:!0}),Cw=jn+"/template/list",ww=jn+"/template/{{templateId}}",Iw=()=>on({url:Cw,method:wn.GET}),Sw=e=>on({url:ww.replace("{{templateId}}",e),method:wn.GET}),zh=e=>e.templateLibrary.connectorTemplateList,oc=e=>e.templateLibrary.connectorTemplates,Tw=e=>e.templateLibrary.templateListApiStatus,Xh=e=>e.templateLibrary.templateDetailsApiStatus,Aw=ca({name:"templateLibrary",initialState:JE,reducers:{},extraReducers:e=>{e.addCase(Hs.pending,t=>{t.templateListApiStatus=Ie.LOADING}).addCase(Hs.fulfilled,(t,n)=>{t.templateListApiStatus=Ie.IDLE,t.connectorTemplateList=n.payload.connectorList,t.connectorTemplates=n.payload.connectors}).addCase(Hs.rejected,(t,n)=>{t.templateListApiStatus=Ie.FAILED,console.error(n.error)}).addCase(ya.pending,t=>{t.templateDetailsApiStatus=Ie.LOADING}).addCase(ya.fulfilled,(t,n)=>{t.templateDetailsApiStatus=Ie.IDLE;const{templateData:r,templateId:o}=n.payload;r&&o&&(t.connectorTemplates={...t.connectorTemplates,[o]:r})}).addCase(ya.rejected,(t,n)=>{t.templateDetailsApiStatus=Ie.FAILED,console.error(n.error)})}}),Hs=Cn("connectorLibrary/fetchConnectorTemplates",async()=>{const e=await Iw();if(!e||!e.data||!Array.isArray(e.data))return{connectorList:[],connectors:{}};const t=e.data,n=Mp(t,o=>o.id),r=Bp(t,o=>o.id);return{connectors:n,connectorList:r}}),ya=Cn("connectorLibrary/fetchTemplateDetails",async e=>{const t=await Sw(e);return!t||!t.data?{templateId:e,templateData:null}:{templateData:t.data,templateId:e}}),_w=Aw.reducer,Ow={connectors:null,connectorList:[],connectorsApiStatus:Ie.IDLE,selectedConnector:null,currentUpdatingConnectors:{},connectorDetailApiStatus:Ie.IDLE,connectorDetails:null,fetchInboxApiStatus:Ie.IDLE,chatInboxDetails:null,emailInboxDetails:null,rolesAndPermissions:null,rolesAndPermissionsApiStatus:Ie.IDLE,updateEnableConnectorsApiStatus:Ie.IDLE,cardCustomFields:{},cardCustomFieldsApiStatus:Ie.IDLE},Rw=jn+"/connectors/ug",Nw=jn+"/connectors/{{id}}",Dw=jn+"/connectors/{{id}}",Zh="{{card_id}}",Pw=jn+`/connectors/cards/${Zh}`,kw=jn+"/connectors/cards/:cardId/custom_fields",Lw=()=>on({url:Rw,method:wn.GET}),Fw=({id:e,enabled:t})=>on({url:Nw.replace("{{id}}",e),method:wn.PATCH,data:{enabled:t}}),Mw=e=>{const t=Dw.replace("{{id}}",e);return on({url:t,method:wn.GET})},Bw=({cardId:e,data:t})=>on({url:Pw.replace(Zh,e),method:wn.PATCH,data:t}),jw=e=>on({url:Hp(kw,{cardId:e}),method:wn.GET}),Vw=ca({name:"connectorLibrary",initialState:Ow,reducers:{},extraReducers:e=>{e.addCase(Us.pending,t=>{t.connectorsApiStatus=Ie.LOADING}).addCase(Us.fulfilled,(t,n)=>{t.connectorsApiStatus=Ie.IDLE,t.connectorList=n.payload.connectorList,t.connectors=n.payload.connectors}).addCase(Us.rejected,(t,n)=>{t.connectorsApiStatus=Ie.FAILED,console.error(n.error)}).addCase(zs.pending,(t,n)=>{var o;const{id:r}=((o=n==null?void 0:n.meta)==null?void 0:o.arg)||{};t.currentUpdatingConnectors={...t.currentUpdatingConnectors,[r]:Ie.LOADING}}).addCase(zs.fulfilled,(t,n)=>{var i,a;const{id:r="",enabled:o}=((i=n==null?void 0:n.meta)==null?void 0:i.arg)||{};t.currentUpdatingConnectors[r]&&(t.currentUpdatingConnectors[r]=Ie.IDLE),(a=t==null?void 0:t.connectors)!=null&&a[r]&&(t.connectors[r].isEnabled=o)}).addCase(zs.rejected,(t,n)=>{var o;const{id:r}=((o=n==null?void 0:n.meta)==null?void 0:o.arg)||{};t.currentUpdatingConnectors={...t.currentUpdatingConnectors,[r]:Ie.FAILED},console.error(n.error)}).addCase(Ea.pending,t=>{t.connectorDetailApiStatus=Ie.LOADING}).addCase(Ea.fulfilled,(t,n)=>{var i;t.connectorDetailApiStatus=Ie.IDLE;const{connector:r,connectorId:o}=n.payload;r&&(t.connectors={...t.connectors,[o]:{...(i=t.connectors)==null?void 0:i[o],...r}})}).addCase(Ea.rejected,(t,n)=>{t.connectorDetailApiStatus=Ie.FAILED,console.error(n.error)}).addCase(Xs.pending,t=>{t.fetchInboxApiStatus=Ie.LOADING}).addCase(Xs.fulfilled,(t,n)=>{t.fetchInboxApiStatus=Ie.IDLE;const{chatInbox:r,emailInbox:o}=n.payload;t.chatInboxDetails=r,t.emailInboxDetails=o}).addCase(Xs.rejected,(t,n)=>{t.fetchInboxApiStatus=Ie.FAILED,console.error(n.error)}).addCase(Ys.pending,t=>{t.rolesAndPermissionsApiStatus=Ie.LOADING}).addCase(Ys.fulfilled,(t,n)=>{t.rolesAndPermissionsApiStatus=Ie.IDLE;const{rolesAndPermissions:r}=n.payload;t.rolesAndPermissions=r}).addCase(Ys.rejected,(t,n)=>{t.rolesAndPermissionsApiStatus=Ie.FAILED,console.error(n.error)}).addCase(Zs.pending,t=>{t.updateEnableConnectorsApiStatus=Ie.LOADING}).addCase(Zs.fulfilled,(t,n)=>{var u;t.updateEnableConnectorsApiStatus=Ie.IDLE;const{cardId:r,data:o,currentConnector:i}=n.payload.params,{roles:a,inboxes:l,fields:s}=o;t!=null&&t.connectors&&(t.connectors[i].cardList=(u=t.connectors[i].cardList)==null?void 0:u.map(c=>(c.id===r&&(c={...c,inboxes:l,roles:a,fields:s}),c)))}).addCase(Zs.rejected,t=>{t.updateEnableConnectorsApiStatus=Ie.FAILED}).addCase(qs.pending,t=>{t.cardCustomFieldsApiStatus=Ie.LOADING}).addCase(qs.fulfilled,(t,n)=>{t.cardCustomFieldsApiStatus=Ie.IDLE;const{cardId:r,customFields:o}=n.payload;t.cardCustomFields={...t.cardCustomFields,[r]:o}}).addCase(qs.rejected,(t,n)=>{t.cardCustomFieldsApiStatus=Ie.FAILED,console.error(n.error)})}}),zs=Cn("connectorLibrary/updateConnectors",async e=>(await Fw(e),{params:e})),Xs=Cn("connectorLibrary/getInboxDetails",async e=>{const t=await e();return{chatInbox:t.chatInboxes,emailInbox:t.emailInboxes}}),Zs=Cn("connectorLibrary/updateEnableConnectors",async e=>(await Bw(e),{params:e})),Ys=Cn("connectorLibrary/getRolesAndPermissions",async e=>({rolesAndPermissions:(await e()).roles})),Us=Cn("connectorLibrary/fetchConnectors",async()=>{const e=await Lw();if(!e||!e.data||!Array.isArray(e.data))return{connectorList:[],connectors:{}};const t=e.data;t.forEach(o=>{o.cardList&&(o.cardList.sort((i,a)=>i.priority-a.priority),o.cardList.forEach(i=>{i.fields&&i.fields.sort((a,l)=>a.priority-l.priority)}))});const n=Mp(t,o=>o.id),r=Bp(t,o=>o.id);return{connectors:n,connectorList:r}}),Ea=Cn("auth/fetchConnector",async e=>{const t=await Mw(e);return!t||!t.data?{connectorId:e,connector:null}:{connector:t.data,connectorId:e}}),qs=Cn("auth/fetchCardsCustomFields",async e=>{const t=await jw(e);return!t||!t.data||!t.data.fields||!Array.isArray(t.data.fields)?{cardId:e,customFields:[]}:{customFields:t.data.fields,cardId:e}},{condition:(e,{getState:t})=>{const{connectorLirary:n}=t();return!(n.cardCustomFields[e]&&n.cardCustomFields[e].length!==0)}}),Gw=Vw.reducer,Yh={testApiStatus:Ie.IDLE,isAuthenticated:{},verifyTokenApiStatus:Ie.IDLE,authVerificationDone:!1,testApiData:null},Ww=jn+"/connector/auth",Hw=jn+"/connector/{{id}}/auth/test",zw=jn+"/connector/{{id}}/auth",Xw=jn+"/connectors/{{id}}/auth/validate_token",Zw=jn+"/connectors/:connectorId/status",Yw=(e,t)=>{const n=Hw.replace("{{id}}",t);return on({url:n,method:wn.POST,data:e})},Uw=(e,t)=>{const n=Xw.replace("{{id}}",t);return on({url:n,method:wn.POST,data:e})},Uh=ca({name:"auth",initialState:Yh,reducers:{resetState:()=>Yh},extraReducers:e=>{e.addCase(Js.pending,t=>{t.authVerificationDone=!1,t.verifyTokenApiStatus=Ie.LOADING}).addCase(Js.fulfilled,t=>{t.authVerificationDone=!0,t.verifyTokenApiStatus=Ie.IDLE}).addCase(Js.rejected,(t,n)=>{t.authVerificationDone=!0,t.verifyTokenApiStatus=Ie.FAILED,console.error(n.error)}).addCase(ic.pending,t=>{t.testApiStatus=Ie.LOADING}).addCase(ic.fulfilled,(t,n)=>{t.testApiStatus=Ie.IDLE,t.testApiData=n.payload}).addCase(ic.rejected,(t,n)=>{const r={response:n.error,statusCode:n.error.code||"400"};t.testApiStatus=Ie.FAILED,t.testApiData=r,console.error(n.error)})}}),ic=Cn("auth/testAuth",async({data:e,connectorId:t})=>{const n=await Yw(e,t);if(!n||!n.data)return{response:null,statusCode:""};const r=n.data;return{response:r.response||r.errorMessage,statusCode:String(r.statusCode)}}),Js=Cn("auth/verifyToken",async({data:e,connectorId:t})=>{await Uw(e,t)}),{resetState:qw}=Uh.actions,Jw=Uh.reducer,Qw={connectorRequestsApiStatus:Ie.IDLE,requestableConnectors:null,requestableApis:null},qh=jn+"/connectors/integration/requests",$w=()=>on({url:qh,method:wn.GET}),Kw=({type:e,values:t,description:n})=>on({url:qh,method:wn.POST,data:{type:e,values:t,description:n}}),eI=ca({name:"connectorLibrary",initialState:Qw,reducers:{},extraReducers:e=>{e.addCase(Qs.pending,t=>{t.connectorRequestsApiStatus=Ie.LOADING}).addCase(Qs.fulfilled,(t,n)=>{t.connectorRequestsApiStatus=Ie.IDLE,t.requestableConnectors=n.payload.requestableConnectors,t.requestableApis=n.payload.requestableApis}).addCase(Qs.rejected,t=>{t.connectorRequestsApiStatus=Ie.FAILED}).addCase($s.pending,t=>{t.connectorRequestsApiStatus=Ie.LOADING}).addCase($s.fulfilled,t=>{t.connectorRequestsApiStatus=Ie.IDLE}).addCase($s.rejected,t=>{t.connectorRequestsApiStatus=Ie.FAILED})}}),Qs=Cn("connectorLibrary/fetchConnectorRequests",async()=>{const e=await $w();if(!e||!e.data)return{requestableConnectors:[],requestableApis:[]};const n=e.data.requestableConnectors,r=e.data.requestableApis;return{requestableConnectors:n,requestableApis:r}}),$s=Cn("connectorLibrary/submitConnectorRequest",async e=>(await Kw(e),{params:e})),tI=eI.reducer,nI=ip({counter:AE,connectorLirary:Gw,templateLibrary:_w,auth:Jw,requestConnectorApi:tI}),rI=aE({reducer:nI,devTools:!0}),oI={currentSideBar:"",setCurrentSideBar:()=>{},currentConnector:"",setCurrentConnector:()=>{},currentAvailableConnectors:[],setCurrentAvailableConnectors:()=>{},baseUrls:{},availableFeatures:{},sendTrackingEvent:()=>{},userPermissions:[],metaData:void 0},qt=S.createContext(oI),Xe={BASEPATH:"/",CONNECTOR_SETTINGS:"connector/settings",DASHBOARD:"dashboard",AGENT:"agent",CONNECTOR_CONFIG:"connector",API_VIEW:"connector/apiView",AUTH_SUCCESS:"authSuccess"},ac="Custom Connectors",sc={id:"connectors_view",value:"Connectors",route:Xe.DASHBOARD},Jh={id:"agent_view",value:"Agent view",route:Xe.AGENT},iI=[sc,Jh],Qh={[sc.value]:[Xe.BASEPATH+Xe.DASHBOARD,Xe.BASEPATH+Xe.CONNECTOR_CONFIG,Xe.BASEPATH+Xe.CONNECTOR_SETTINGS,Xe.BASEPATH,Xe.BASEPATH+Xe.API_VIEW],[Jh.value]:[Xe.AGENT]},aI=({children:e,baseUrls:t,availableFeatures:n,extraParams:r,connectorFunctions:o})=>{const[i,a]=S.useState(sc.id),[l,s]=S.useState(""),[u,c]=S.useState([]);return I.jsx(qt.Provider,{value:{currentSideBar:i,setCurrentSideBar:a,currentConnector:l,setCurrentConnector:s,currentAvailableConnectors:u,setCurrentAvailableConnectors:c,baseUrls:t??{},availableFeatures:n??{},sendTrackingEvent:(r==null?void 0:r.sendTrackingEvent)??(()=>{}),userPermissions:(r==null?void 0:r.userPermissions)??[],metaData:r==null?void 0:r.metaData,connectorFunctions:o},children:e})};var gi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},jo=typeof window>"u"||"Deno"in globalThis;function Un(){}function sI(e,t){return typeof e=="function"?e(t):e}function lc(e){return typeof e=="number"&&e>=0&&e!==1/0}function $h(e,t){return Math.max(e+(t||0)-Date.now(),0)}function mi(e,t){return typeof e=="function"?e(t):e}function sr(e,t){return typeof e=="function"?e(t):e}function Kh(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:a,stale:l}=e;if(a){if(r){if(t.queryHash!==uc(a,t.options))return!1}else if(!xa(t.queryKey,a))return!1}if(n!=="all"){const s=t.isActive();if(n==="active"&&!s||n==="inactive"&&s)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||o&&o!==t.state.fetchStatus||i&&!i(t))}function eg(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Vo(t.options.mutationKey)!==Vo(i))return!1}else if(!xa(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function uc(e,t){return((t==null?void 0:t.queryKeyHashFn)||Vo)(e)}function Vo(e){return JSON.stringify(e,(t,n)=>dc(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function xa(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!xa(e[n],t[n])):!1}function cc(e,t){if(e===t)return e;const n=tg(e)&&tg(t);if(n||dc(e)&&dc(t)){const r=n?e:Object.keys(e),o=r.length,i=n?t:Object.keys(t),a=i.length,l=n?[]:{};let s=0;for(let u=0;u<a;u++){const c=n?u:i[u];(!n&&r.includes(c)||n)&&e[c]===void 0&&t[c]===void 0?(l[c]=void 0,s++):(l[c]=cc(e[c],t[c]),l[c]===e[c]&&e[c]!==void 0&&s++)}return o===a&&s===o?e:l}return t}function Ks(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function tg(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function dc(e){if(!ng(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!ng(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function ng(e){return Object.prototype.toString.call(e)==="[object Object]"}function lI(e){return new Promise(t=>{setTimeout(t,e)})}function fc(e,t,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(e,t);if(n.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return cc(e,t)}catch(r){console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`)}return cc(e,t)}return t}function uI(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function cI(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var el=Symbol();function rg(e,t){return process.env.NODE_ENV!=="production"&&e.queryFn===el&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===el?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var dI=(my=class extends gi{constructor(){super();De(this,$o);De(this,mo);De(this,Vi);Ce(this,Vi,t=>{if(!jo&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){D(this,mo)||this.setEventListener(D(this,Vi))}onUnsubscribe(){var t;this.hasListeners()||((t=D(this,mo))==null||t.call(this),Ce(this,mo,void 0))}setEventListener(t){var n;Ce(this,Vi,t),(n=D(this,mo))==null||n.call(this),Ce(this,mo,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){D(this,$o)!==t&&(Ce(this,$o,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof D(this,$o)=="boolean"?D(this,$o):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},$o=new WeakMap,mo=new WeakMap,Vi=new WeakMap,my),pc=new dI,fI=(by=class extends gi{constructor(){super();De(this,Gi,!0);De(this,bo);De(this,Wi);Ce(this,Wi,t=>{if(!jo&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){D(this,bo)||this.setEventListener(D(this,Wi))}onUnsubscribe(){var t;this.hasListeners()||((t=D(this,bo))==null||t.call(this),Ce(this,bo,void 0))}setEventListener(t){var n;Ce(this,Wi,t),(n=D(this,bo))==null||n.call(this),Ce(this,bo,t(this.setOnline.bind(this)))}setOnline(t){D(this,Gi)!==t&&(Ce(this,Gi,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return D(this,Gi)}},Gi=new WeakMap,bo=new WeakMap,Wi=new WeakMap,by),tl=new fI;function hc(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function pI(e){return Math.min(1e3*2**e,3e4)}function og(e){return(e??"online")==="online"?tl.isOnline():!0}var ig=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function gc(e){return e instanceof ig}function ag(e){let t=!1,n=0,r=!1,o;const i=hc(),a=d=>{var p;r||(b(new ig(d)),(p=e.abort)==null||p.call(e))},l=()=>{t=!0},s=()=>{t=!1},u=()=>pc.isFocused()&&(e.networkMode==="always"||tl.isOnline())&&e.canRun(),c=()=>og(e.networkMode)&&e.canRun(),f=d=>{var p;r||(r=!0,(p=e.onSuccess)==null||p.call(e,d),o==null||o(),i.resolve(d))},b=d=>{var p;r||(r=!0,(p=e.onError)==null||p.call(e,d),o==null||o(),i.reject(d))},y=()=>new Promise(d=>{var p;o=h=>{(r||u())&&d(h)},(p=e.onPause)==null||p.call(e)}).then(()=>{var d;o=void 0,r||(d=e.onContinue)==null||d.call(e)}),v=()=>{if(r)return;let d;const p=n===0?e.initialPromise:void 0;try{d=p??e.fn()}catch(h){d=Promise.reject(h)}Promise.resolve(d).then(f).catch(h=>{var A;if(r)return;const g=e.retry??(jo?0:3),m=e.retryDelay??pI,E=typeof m=="function"?m(n,h):m,x=g===!0||typeof g=="number"&&n<g||typeof g=="function"&&g(n,h);if(t||!x){b(h);return}n++,(A=e.onFail)==null||A.call(e,n,h),lI(E).then(()=>u()?void 0:y()).then(()=>{t?b(h):v()})})};return{promise:i,cancel:a,continue:()=>(o==null||o(),i),cancelRetry:l,continueRetry:s,canStart:c,start:()=>(c()?v():y().then(v),i)}}function hI(){let e=[],t=0,n=l=>{l()},r=l=>{l()},o=l=>setTimeout(l,0);const i=l=>{t?e.push(l):o(()=>{n(l)})},a=()=>{const l=e;e=[],l.length&&o(()=>{r(()=>{l.forEach(s=>{n(s)})})})};return{batch:l=>{let s;t++;try{s=l()}finally{t--,t||a()}return s},batchCalls:l=>(...s)=>{i(()=>{l(...s)})},schedule:i,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{o=l}}}var zt=hI(),sg=(vy=class{constructor(){De(this,Ko)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),lc(this.gcTime)&&Ce(this,Ko,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(jo?1/0:5*60*1e3))}clearGcTimeout(){D(this,Ko)&&(clearTimeout(D(this,Ko)),Ce(this,Ko,void 0))}},Ko=new WeakMap,vy),gI=(yy=class extends sg{constructor(t){super();De(this,hr);De(this,Hi);De(this,zi);De(this,Kn);De(this,ei);De(this,un);De(this,rs);De(this,ti);Ce(this,ti,!1),Ce(this,rs,t.defaultOptions),this.setOptions(t.options),this.observers=[],Ce(this,ei,t.client),Ce(this,Kn,D(this,ei).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Ce(this,Hi,mI(this.options)),this.state=t.state??D(this,Hi),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=D(this,un))==null?void 0:t.promise}setOptions(t){this.options={...D(this,rs),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&D(this,Kn).remove(this)}setData(t,n){const r=fc(this.state.data,t,this.options);return We(this,hr,Jr).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){We(this,hr,Jr).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=D(this,un))==null?void 0:r.promise;return(o=D(this,un))==null||o.cancel(t),n?n.then(Un).catch(Un):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(D(this,Hi))}isActive(){return this.observers.some(t=>sr(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===el||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!$h(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=D(this,un))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=D(this,un))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),D(this,Kn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(D(this,un)&&(D(this,ti)?D(this,un).cancel({revert:!0}):D(this,un).cancelRetry()),this.scheduleGc()),D(this,Kn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||We(this,hr,Jr).call(this,{type:"invalidate"})}fetch(t,n){var s,u,c;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(D(this,un))return D(this,un).continueRetry(),D(this,un).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(b=>b.options.queryFn);f&&this.setOptions(f.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const r=new AbortController,o=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(Ce(this,ti,!0),r.signal)})},i=()=>{const f=rg(this.options,n),b={client:D(this,ei),queryKey:this.queryKey,meta:this.meta};return o(b),Ce(this,ti,!1),this.options.persister?this.options.persister(f,b,this):f(b)},a={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:D(this,ei),state:this.state,fetchFn:i};o(a),(s=this.options.behavior)==null||s.onFetch(a,this),Ce(this,zi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=a.fetchOptions)==null?void 0:u.meta))&&We(this,hr,Jr).call(this,{type:"fetch",meta:(c=a.fetchOptions)==null?void 0:c.meta});const l=f=>{var b,y,v,d;gc(f)&&f.silent||We(this,hr,Jr).call(this,{type:"error",error:f}),gc(f)||((y=(b=D(this,Kn).config).onError)==null||y.call(b,f,this),(d=(v=D(this,Kn).config).onSettled)==null||d.call(v,this.state.data,f,this)),this.scheduleGc()};return Ce(this,un,ag({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var b,y,v,d;if(f===void 0){process.env.NODE_ENV!=="production"&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(p){l(p);return}(y=(b=D(this,Kn).config).onSuccess)==null||y.call(b,f,this),(d=(v=D(this,Kn).config).onSettled)==null||d.call(v,f,this.state.error,this),this.scheduleGc()},onError:l,onFail:(f,b)=>{We(this,hr,Jr).call(this,{type:"failed",failureCount:f,error:b})},onPause:()=>{We(this,hr,Jr).call(this,{type:"pause"})},onContinue:()=>{We(this,hr,Jr).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),D(this,un).start()}},Hi=new WeakMap,zi=new WeakMap,Kn=new WeakMap,ei=new WeakMap,un=new WeakMap,rs=new WeakMap,ti=new WeakMap,hr=new WeakSet,Jr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...lg(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return gc(o)&&o.revert&&D(this,zi)?{...D(this,zi),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),zt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),D(this,Kn).notify({query:this,type:"updated",action:t})})},yy);function lg(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:og(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function mI(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var bI=(Ey=class extends gi{constructor(t={}){super();De(this,Dr);this.config=t,Ce(this,Dr,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??uc(o,n);let a=this.get(i);return a||(a=new gI({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(a)),a}add(t){D(this,Dr).has(t.queryHash)||(D(this,Dr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=D(this,Dr).get(t.queryHash);n&&(t.destroy(),n===t&&D(this,Dr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){zt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return D(this,Dr).get(t)}getAll(){return[...D(this,Dr).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Kh(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Kh(t,r)):n}notify(t){zt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){zt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){zt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Dr=new WeakMap,Ey),vI=(xy=class extends sg{constructor(t){super();De(this,kr);De(this,Pr);De(this,yn);De(this,ni);this.mutationId=t.mutationId,Ce(this,yn,t.mutationCache),Ce(this,Pr,[]),this.state=t.state||ug(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){D(this,Pr).includes(t)||(D(this,Pr).push(t),this.clearGcTimeout(),D(this,yn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Ce(this,Pr,D(this,Pr).filter(n=>n!==t)),this.scheduleGc(),D(this,yn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){D(this,Pr).length||(this.state.status==="pending"?this.scheduleGc():D(this,yn).remove(this))}continue(){var t;return((t=D(this,ni))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,i,a,l,s,u,c,f,b,y,v,d,p,h,g,m,E,x,A,T;Ce(this,ni,ag({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(C,O)=>{We(this,kr,Oo).call(this,{type:"failed",failureCount:C,error:O})},onPause:()=>{We(this,kr,Oo).call(this,{type:"pause"})},onContinue:()=>{We(this,kr,Oo).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>D(this,yn).canRun(this)}));const n=this.state.status==="pending",r=!D(this,ni).canStart();try{if(!n){We(this,kr,Oo).call(this,{type:"pending",variables:t,isPaused:r}),await((i=(o=D(this,yn).config).onMutate)==null?void 0:i.call(o,t,this));const O=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));O!==this.state.context&&We(this,kr,Oo).call(this,{type:"pending",context:O,variables:t,isPaused:r})}const C=await D(this,ni).start();return await((u=(s=D(this,yn).config).onSuccess)==null?void 0:u.call(s,C,t,this.state.context,this)),await((f=(c=this.options).onSuccess)==null?void 0:f.call(c,C,t,this.state.context)),await((y=(b=D(this,yn).config).onSettled)==null?void 0:y.call(b,C,null,this.state.variables,this.state.context,this)),await((d=(v=this.options).onSettled)==null?void 0:d.call(v,C,null,t,this.state.context)),We(this,kr,Oo).call(this,{type:"success",data:C}),C}catch(C){try{throw await((h=(p=D(this,yn).config).onError)==null?void 0:h.call(p,C,t,this.state.context,this)),await((m=(g=this.options).onError)==null?void 0:m.call(g,C,t,this.state.context)),await((x=(E=D(this,yn).config).onSettled)==null?void 0:x.call(E,void 0,C,this.state.variables,this.state.context,this)),await((T=(A=this.options).onSettled)==null?void 0:T.call(A,void 0,C,t,this.state.context)),C}finally{We(this,kr,Oo).call(this,{type:"error",error:C})}}finally{D(this,yn).runNext(this)}}},Pr=new WeakMap,yn=new WeakMap,ni=new WeakMap,kr=new WeakSet,Oo=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),zt.batch(()=>{D(this,Pr).forEach(r=>{r.onMutationUpdate(t)}),D(this,yn).notify({mutation:this,type:"updated",action:t})})},xy);function ug(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var yI=(Cy=class extends gi{constructor(t={}){super();De(this,Xr);De(this,gr);De(this,os);this.config=t,Ce(this,Xr,new Set),Ce(this,gr,new Map),Ce(this,os,0)}build(t,n,r){const o=new vI({mutationCache:this,mutationId:++cu(this,os)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){D(this,Xr).add(t);const n=nl(t);if(typeof n=="string"){const r=D(this,gr).get(n);r?r.push(t):D(this,gr).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(D(this,Xr).delete(t)){const n=nl(t);if(typeof n=="string"){const r=D(this,gr).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&D(this,gr).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=nl(t);if(typeof n=="string"){const r=D(this,gr).get(n),o=r==null?void 0:r.find(i=>i.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=nl(t);if(typeof n=="string"){const o=(r=D(this,gr).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){zt.batch(()=>{D(this,Xr).forEach(t=>{this.notify({type:"removed",mutation:t})}),D(this,Xr).clear(),D(this,gr).clear()})}getAll(){return Array.from(D(this,Xr))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>eg(n,r))}findAll(t={}){return this.getAll().filter(n=>eg(t,n))}notify(t){zt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return zt.batch(()=>Promise.all(t.map(n=>n.continue().catch(Un))))}},Xr=new WeakMap,gr=new WeakMap,os=new WeakMap,Cy);function nl(e){var t;return(t=e.options.scope)==null?void 0:t.id}function cg(e){return{onFetch:(t,n)=>{var c,f,b,y,v;const r=t.options,o=(b=(f=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:f.fetchMore)==null?void 0:b.direction,i=((y=t.state.data)==null?void 0:y.pages)||[],a=((v=t.state.data)==null?void 0:v.pageParams)||[];let l={pages:[],pageParams:[]},s=0;const u=async()=>{let d=!1;const p=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(t.signal.aborted?d=!0:t.signal.addEventListener("abort",()=>{d=!0}),t.signal)})},h=rg(t.options,t.fetchOptions),g=async(m,E,x)=>{if(d)return Promise.reject();if(E==null&&m.pages.length)return Promise.resolve(m);const A={client:t.client,queryKey:t.queryKey,pageParam:E,direction:x?"backward":"forward",meta:t.options.meta};p(A);const T=await h(A),{maxPages:C}=t.options,O=x?cI:uI;return{pages:O(m.pages,T,C),pageParams:O(m.pageParams,E,C)}};if(o&&i.length){const m=o==="backward",E=m?EI:dg,x={pages:i,pageParams:a},A=E(r,x);l=await g(x,A,m)}else{const m=e??i.length;do{const E=s===0?a[0]??r.initialPageParam:dg(r,l);if(s>0&&E==null)break;l=await g(l,E),s++}while(s<m)}return l};t.options.persister?t.fetchFn=()=>{var d,p;return(p=(d=t.options).persister)==null?void 0:p.call(d,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function dg(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function EI(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var xI=(wy=class{constructor(e={}){De(this,Nt);De(this,vo);De(this,yo);De(this,Xi);De(this,Zi);De(this,Eo);De(this,Yi);De(this,Ui);Ce(this,Nt,e.queryCache||new bI),Ce(this,vo,e.mutationCache||new yI),Ce(this,yo,e.defaultOptions||{}),Ce(this,Xi,new Map),Ce(this,Zi,new Map),Ce(this,Eo,0)}mount(){cu(this,Eo)._++,D(this,Eo)===1&&(Ce(this,Yi,pc.subscribe(async e=>{e&&(await this.resumePausedMutations(),D(this,Nt).onFocus())})),Ce(this,Ui,tl.subscribe(async e=>{e&&(await this.resumePausedMutations(),D(this,Nt).onOnline())})))}unmount(){var e,t;cu(this,Eo)._--,D(this,Eo)===0&&((e=D(this,Yi))==null||e.call(this),Ce(this,Yi,void 0),(t=D(this,Ui))==null||t.call(this),Ce(this,Ui,void 0))}isFetching(e){return D(this,Nt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return D(this,vo).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=D(this,Nt).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=D(this,Nt).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(mi(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return D(this,Nt).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=D(this,Nt).get(r.queryHash),i=o==null?void 0:o.state.data,a=sI(t,i);if(a!==void 0)return D(this,Nt).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return zt.batch(()=>D(this,Nt).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=D(this,Nt).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=D(this,Nt);zt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=D(this,Nt);return zt.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=zt.batch(()=>D(this,Nt).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(Un).catch(Un)}invalidateQueries(e,t={}){return zt.batch(()=>(D(this,Nt).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=zt.batch(()=>D(this,Nt).findAll(e).filter(o=>!o.isDisabled()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(Un)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Un)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=D(this,Nt).build(this,t);return n.isStaleByTime(mi(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Un).catch(Un)}fetchInfiniteQuery(e){return e.behavior=cg(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Un).catch(Un)}ensureInfiniteQueryData(e){return e.behavior=cg(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return tl.isOnline()?D(this,vo).resumePausedMutations():Promise.resolve()}getQueryCache(){return D(this,Nt)}getMutationCache(){return D(this,vo)}getDefaultOptions(){return D(this,yo)}setDefaultOptions(e){Ce(this,yo,e)}setQueryDefaults(e,t){D(this,Xi).set(Vo(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...D(this,Xi).values()],n={};return t.forEach(r=>{xa(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){D(this,Zi).set(Vo(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...D(this,Zi).values()],n={};return t.forEach(r=>{xa(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...D(this,yo).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=uc(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===el&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...D(this,yo).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){D(this,Nt).clear(),D(this,vo).clear()}},Nt=new WeakMap,vo=new WeakMap,yo=new WeakMap,Xi=new WeakMap,Zi=new WeakMap,Eo=new WeakMap,Yi=new WeakMap,Ui=new WeakMap,wy),CI=(Iy=class extends gi{constructor(t,n){super();De(this,ft);De(this,On);De(this,Ze);De(this,is);De(this,En);De(this,ri);De(this,qi);De(this,xo);De(this,Lr);De(this,as);De(this,Ji);De(this,Qi);De(this,oi);De(this,ii);De(this,Co);De(this,$i,new Set);this.options=n,Ce(this,On,t),Ce(this,Lr,null),Ce(this,xo,hc()),this.options.experimental_prefetchInRender||D(this,xo).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(D(this,Ze).addObserver(this),fg(D(this,Ze),this.options)?We(this,ft,us).call(this):this.updateResult(),We(this,ft,kf).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return mc(D(this,Ze),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return mc(D(this,Ze),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,We(this,ft,Lf).call(this),We(this,ft,Ff).call(this),D(this,Ze).removeObserver(this)}setOptions(t,n){const r=this.options,o=D(this,Ze);if(this.options=D(this,On).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof sr(this.options.enabled,D(this,Ze))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");We(this,ft,Mf).call(this),D(this,Ze).setOptions(this.options),r._defaulted&&!Ks(this.options,r)&&D(this,On).getQueryCache().notify({type:"observerOptionsUpdated",query:D(this,Ze),observer:this});const i=this.hasListeners();i&&pg(D(this,Ze),o,this.options,r)&&We(this,ft,us).call(this),this.updateResult(n),i&&(D(this,Ze)!==o||sr(this.options.enabled,D(this,Ze))!==sr(r.enabled,D(this,Ze))||mi(this.options.staleTime,D(this,Ze))!==mi(r.staleTime,D(this,Ze)))&&We(this,ft,Nf).call(this);const a=We(this,ft,Df).call(this);i&&(D(this,Ze)!==o||sr(this.options.enabled,D(this,Ze))!==sr(r.enabled,D(this,Ze))||a!==D(this,Co))&&We(this,ft,Pf).call(this,a)}getOptimisticResult(t){const n=D(this,On).getQueryCache().build(D(this,On),t),r=this.createResult(n,t);return II(this,r)&&(Ce(this,En,r),Ce(this,qi,this.options),Ce(this,ri,D(this,Ze).state)),r}getCurrentResult(){return D(this,En)}trackResult(t,n){const r={};return Object.keys(t).forEach(o=>{Object.defineProperty(r,o,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(o),n==null||n(o),t[o])})}),r}trackProp(t){D(this,$i).add(t)}getCurrentQuery(){return D(this,Ze)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=D(this,On).defaultQueryOptions(t),r=D(this,On).getQueryCache().build(D(this,On),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return We(this,ft,us).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),D(this,En)))}createResult(t,n){var C;const r=D(this,Ze),o=this.options,i=D(this,En),a=D(this,ri),l=D(this,qi),u=t!==r?t.state:D(this,is),{state:c}=t;let f={...c},b=!1,y;if(n._optimisticResults){const O=this.hasListeners(),M=!O&&fg(t,n),B=O&&pg(t,r,n,o);(M||B)&&(f={...f,...lg(c.data,t.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:v,errorUpdatedAt:d,status:p}=f;if(n.select&&f.data!==void 0)if(i&&f.data===(a==null?void 0:a.data)&&n.select===D(this,as))y=D(this,Ji);else try{Ce(this,as,n.select),y=n.select(f.data),y=fc(i==null?void 0:i.data,y,n),Ce(this,Ji,y),Ce(this,Lr,null)}catch(O){Ce(this,Lr,O)}else y=f.data;if(n.placeholderData!==void 0&&y===void 0&&p==="pending"){let O;if(i!=null&&i.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData))O=i.data;else if(O=typeof n.placeholderData=="function"?n.placeholderData((C=D(this,Qi))==null?void 0:C.state.data,D(this,Qi)):n.placeholderData,n.select&&O!==void 0)try{O=n.select(O),Ce(this,Lr,null)}catch(M){Ce(this,Lr,M)}O!==void 0&&(p="success",y=fc(i==null?void 0:i.data,O,n),b=!0)}D(this,Lr)&&(v=D(this,Lr),y=D(this,Ji),d=Date.now(),p="error");const h=f.fetchStatus==="fetching",g=p==="pending",m=p==="error",E=g&&h,x=y!==void 0,T={status:p,fetchStatus:f.fetchStatus,isPending:g,isSuccess:p==="success",isError:m,isInitialLoading:E,isLoading:E,data:y,dataUpdatedAt:f.dataUpdatedAt,error:v,errorUpdatedAt:d,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:h,isRefetching:h&&!g,isLoadingError:m&&!x,isPaused:f.fetchStatus==="paused",isPlaceholderData:b,isRefetchError:m&&x,isStale:bc(t,n),refetch:this.refetch,promise:D(this,xo)};if(this.options.experimental_prefetchInRender){const O=U=>{T.status==="error"?U.reject(T.error):T.data!==void 0&&U.resolve(T.data)},M=()=>{const U=Ce(this,xo,T.promise=hc());O(U)},B=D(this,xo);switch(B.status){case"pending":t.queryHash===r.queryHash&&O(B);break;case"fulfilled":(T.status==="error"||T.data!==B.value)&&M();break;case"rejected":(T.status!=="error"||T.error!==B.reason)&&M();break}}return T}updateResult(t){const n=D(this,En),r=this.createResult(D(this,Ze),this.options);if(Ce(this,ri,D(this,Ze).state),Ce(this,qi,this.options),D(this,ri).data!==void 0&&Ce(this,Qi,D(this,Ze)),Ks(r,n))return;Ce(this,En,r);const o={},i=()=>{if(!n)return!0;const{notifyOnChangeProps:a}=this.options,l=typeof a=="function"?a():a;if(l==="all"||!l&&!D(this,$i).size)return!0;const s=new Set(l??D(this,$i));return this.options.throwOnError&&s.add("error"),Object.keys(D(this,En)).some(u=>{const c=u;return D(this,En)[c]!==n[c]&&s.has(c)})};(t==null?void 0:t.listeners)!==!1&&i()&&(o.listeners=!0),We(this,ft,_y).call(this,{...o,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&We(this,ft,kf).call(this)}},On=new WeakMap,Ze=new WeakMap,is=new WeakMap,En=new WeakMap,ri=new WeakMap,qi=new WeakMap,xo=new WeakMap,Lr=new WeakMap,as=new WeakMap,Ji=new WeakMap,Qi=new WeakMap,oi=new WeakMap,ii=new WeakMap,Co=new WeakMap,$i=new WeakMap,ft=new WeakSet,us=function(t){We(this,ft,Mf).call(this);let n=D(this,Ze).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Un)),n},Nf=function(){We(this,ft,Lf).call(this);const t=mi(this.options.staleTime,D(this,Ze));if(jo||D(this,En).isStale||!lc(t))return;const r=$h(D(this,En).dataUpdatedAt,t)+1;Ce(this,oi,setTimeout(()=>{D(this,En).isStale||this.updateResult()},r))},Df=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(D(this,Ze)):this.options.refetchInterval)??!1},Pf=function(t){We(this,ft,Ff).call(this),Ce(this,Co,t),!(jo||sr(this.options.enabled,D(this,Ze))===!1||!lc(D(this,Co))||D(this,Co)===0)&&Ce(this,ii,setInterval(()=>{(this.options.refetchIntervalInBackground||pc.isFocused())&&We(this,ft,us).call(this)},D(this,Co)))},kf=function(){We(this,ft,Nf).call(this),We(this,ft,Pf).call(this,We(this,ft,Df).call(this))},Lf=function(){D(this,oi)&&(clearTimeout(D(this,oi)),Ce(this,oi,void 0))},Ff=function(){D(this,ii)&&(clearInterval(D(this,ii)),Ce(this,ii,void 0))},Mf=function(){const t=D(this,On).getQueryCache().build(D(this,On),this.options);if(t===D(this,Ze))return;const n=D(this,Ze);Ce(this,Ze,t),Ce(this,is,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},_y=function(t){zt.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(D(this,En))}),D(this,On).getQueryCache().notify({query:D(this,Ze),type:"observerResultsUpdated"})})},Iy);function wI(e,t){return sr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function fg(e,t){return wI(e,t)||e.state.data!==void 0&&mc(e,t,t.refetchOnMount)}function mc(e,t,n){if(sr(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&bc(e,t)}return!1}function pg(e,t,n,r){return(e!==t||sr(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&bc(e,n)}function bc(e,t){return sr(t.enabled,e)!==!1&&e.isStaleByTime(mi(t.staleTime,e))}function II(e,t){return!Ks(e.getCurrentResult(),t)}var SI=(Sy=class extends gi{constructor(t,n){super();De(this,Yr);De(this,wo);De(this,Io);De(this,Rn);De(this,Zr);Ce(this,wo,t),this.setOptions(n),this.bindMethods(),We(this,Yr,du).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var r;const n=this.options;this.options=D(this,wo).defaultMutationOptions(t),Ks(this.options,n)||D(this,wo).getMutationCache().notify({type:"observerOptionsUpdated",mutation:D(this,Rn),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&Vo(n.mutationKey)!==Vo(this.options.mutationKey)?this.reset():((r=D(this,Rn))==null?void 0:r.state.status)==="pending"&&D(this,Rn).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=D(this,Rn))==null||t.removeObserver(this)}onMutationUpdate(t){We(this,Yr,du).call(this),We(this,Yr,Bf).call(this,t)}getCurrentResult(){return D(this,Io)}reset(){var t;(t=D(this,Rn))==null||t.removeObserver(this),Ce(this,Rn,void 0),We(this,Yr,du).call(this),We(this,Yr,Bf).call(this)}mutate(t,n){var r;return Ce(this,Zr,n),(r=D(this,Rn))==null||r.removeObserver(this),Ce(this,Rn,D(this,wo).getMutationCache().build(D(this,wo),this.options)),D(this,Rn).addObserver(this),D(this,Rn).execute(t)}},wo=new WeakMap,Io=new WeakMap,Rn=new WeakMap,Zr=new WeakMap,Yr=new WeakSet,du=function(){var n;const t=((n=D(this,Rn))==null?void 0:n.state)??ug();Ce(this,Io,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},Bf=function(t){zt.batch(()=>{var n,r,o,i,a,l,s,u;if(D(this,Zr)&&this.hasListeners()){const c=D(this,Io).variables,f=D(this,Io).context;(t==null?void 0:t.type)==="success"?((r=(n=D(this,Zr)).onSuccess)==null||r.call(n,t.data,c,f),(i=(o=D(this,Zr)).onSettled)==null||i.call(o,t.data,null,c,f)):(t==null?void 0:t.type)==="error"&&((l=(a=D(this,Zr)).onError)==null||l.call(a,t.error,c,f),(u=(s=D(this,Zr)).onSettled)==null||u.call(s,void 0,t.error,c,f))}this.listeners.forEach(c=>{c(D(this,Io))})})},Sy),hg=P.createContext(void 0),rl=e=>{const t=P.useContext(hg);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},TI=({client:e,children:t})=>(P.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),I.jsx(hg.Provider,{value:e,children:t})),gg=P.createContext(!1),AI=()=>P.useContext(gg);gg.Provider;function _I(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var OI=P.createContext(_I()),RI=()=>P.useContext(OI);function mg(e,t){return typeof e=="function"?e(...t):!!e}function vc(){}var NI=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},DI=e=>{P.useEffect(()=>{e.clearReset()},[e])},PI=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||mg(n,[e.error,r])),kI=e=>{const t=e.staleTime;e.suspense&&(e.staleTime=typeof t=="function"?(...n)=>Math.max(t(...n),1e3):Math.max(t??1e3,1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},LI=(e,t)=>e.isLoading&&e.isFetching&&!t,FI=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,bg=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function MI(e,t,n){var f,b,y,v,d;if(process.env.NODE_ENV!=="production"&&(typeof e!="object"||Array.isArray(e)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=rl(),o=AI(),i=RI(),a=r.defaultQueryOptions(e);(b=(f=r.getDefaultOptions().queries)==null?void 0:f._experimental_beforeQuery)==null||b.call(f,a),process.env.NODE_ENV!=="production"&&(a.queryFn||console.error(`[${a.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`)),a._optimisticResults=o?"isRestoring":"optimistic",kI(a),NI(a,i),DI(i);const l=!r.getQueryCache().get(a.queryHash),[s]=P.useState(()=>new t(r,a)),u=s.getOptimisticResult(a),c=!o&&e.subscribed!==!1;if(P.useSyncExternalStore(P.useCallback(p=>{const h=c?s.subscribe(zt.batchCalls(p)):vc;return s.updateResult(),h},[s,c]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),P.useEffect(()=>{s.setOptions(a,{listeners:!1})},[a,s]),FI(a,u))throw bg(a,s,i);if(PI({result:u,errorResetBoundary:i,throwOnError:a.throwOnError,query:r.getQueryCache().get(a.queryHash),suspense:a.suspense}))throw u.error;if((v=(y=r.getDefaultOptions().queries)==null?void 0:y._experimental_afterQuery)==null||v.call(y,a,u),a.experimental_prefetchInRender&&!jo&&LI(u,o)){const p=l?bg(a,s,i):(d=r.getQueryCache().get(a.queryHash))==null?void 0:d.promise;p==null||p.catch(vc).finally(()=>{s.updateResult()})}return a.notifyOnChangeProps?u:s.trackResult(u)}function vg(e,t){return MI(e,CI)}function BI(e,t){const n=rl(),[r]=P.useState(()=>new SI(n,e));P.useEffect(()=>{r.setOptions(e)},[r,e]);const o=P.useSyncExternalStore(P.useCallback(a=>r.subscribe(zt.batchCalls(a)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=P.useCallback((a,l)=>{r.mutate(a,l).catch(vc)},[r]);if(o.error&&mg(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}const jI=({children:e})=>{const t=new xI;return I.jsx(TI,{client:t,children:e})},VI=e=>I.jsx(w.HiverProvider,{custom:!0,children:I.jsx(S.Suspense,{fallback:I.jsx(I.Fragment,{}),children:I.jsx(jI,{children:I.jsx(aI,{...e})})})}),GI=e=>I.jsx(s1,{store:rI,children:I.jsx(VI,{...e})});/**
|
|
68
68
|
* @remix-run/router v1.19.2
|
|
69
69
|
*
|
|
70
70
|
* Copyright (c) Remix Software Inc.
|
|
@@ -73,9 +73,9 @@ Take a look at the reducer(s) handling this action type: ${y.type}.
|
|
|
73
73
|
* LICENSE.md file in the root directory of this source tree.
|
|
74
74
|
*
|
|
75
75
|
* @license MIT
|
|
76
|
-
*/function It(){return It=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},It.apply(this,arguments)}var Mt;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Mt||(Mt={}));const yg="popstate";function WI(e){e===void 0&&(e={});function t(r,o){let{pathname:i,search:a,hash:s}=r.location;return Ca("",{pathname:i,search:a,hash:s},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:no(o)}return zI(t,n,null,e)}function Oe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Xt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function HI(){return Math.random().toString(36).substr(2,8)}function Eg(e,t){return{usr:e.state,key:e.key,idx:t}}function Ca(e,t,n,r){return n===void 0&&(n=null),It({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ro(t):t,{state:n,key:t&&t.key||r||HI()})}function no(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function ro(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function zI(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s=Mt.Pop,l=null,u=c();u==null&&(u=0,a.replaceState(It({},a.state,{idx:u}),""));function c(){return(a.state||{idx:null}).idx}function d(){s=Mt.Pop;let p=c(),h=p==null?null:p-u;u=p,l&&l({action:s,location:f.location,delta:h})}function v(p,h){s=Mt.Push;let m=Ca(f.location,p,h);u=c()+1;let b=Eg(m,u),E=f.createHref(m);try{a.pushState(b,"",E)}catch(x){if(x instanceof DOMException&&x.name==="DataCloneError")throw x;o.location.assign(E)}i&&l&&l({action:s,location:f.location,delta:1})}function y(p,h){s=Mt.Replace;let m=Ca(f.location,p,h);u=c();let b=Eg(m,u),E=f.createHref(m);a.replaceState(b,"",E),i&&l&&l({action:s,location:f.location,delta:0})}function g(p){let h=o.location.origin!=="null"?o.location.origin:o.location.href,m=typeof p=="string"?p:no(p);return m=m.replace(/ $/,"%20"),Oe(h,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,h)}let f={get action(){return s},get location(){return e(o,a)},listen(p){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(yg,d),l=p,()=>{o.removeEventListener(yg,d),l=null}},createHref(p){return t(o,p)},createURL:g,encodeLocation(p){let h=g(p);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:v,replace:y,go(p){return a.go(p)}};return f}var ht;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ht||(ht={}));const XI=new Set(["lazy","caseSensitive","path","id","index","children"]);function ZI(e){return e.index===!0}function wa(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let a=[...n,String(i)],s=typeof o.id=="string"?o.id:a.join("-");if(Oe(o.index!==!0||!o.children,"Cannot specify children on an index route"),Oe(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),ZI(o)){let l=It({},o,t(o),{id:s});return r[s]=l,l}else{let l=It({},o,t(o),{id:s,children:void 0});return r[s]=l,o.children&&(l.children=wa(o.children,t,a,r)),l}})}function Go(e,t,n){return n===void 0&&(n="/"),ol(e,t,n,!1)}function ol(e,t,n,r){let o=typeof t=="string"?ro(t):t,i=lr(o.pathname||"/",n);if(i==null)return null;let a=xg(e);UI(a);let s=null;for(let l=0;s==null&&l<a.length;++l){let u=i2(i);s=r2(a[l],u,r)}return s}function YI(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],handle:n.handle}}function xg(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(i,a,s)=>{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};l.relativePath.startsWith("/")&&(Oe(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Er([r,l.relativePath]),c=n.concat(l);i.children&&i.children.length>0&&(Oe(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),xg(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:t2(u,i.index),routesMeta:c})};return e.forEach((i,a)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,a);else for(let l of Cg(i.path))o(i,a,l)}),t}function Cg(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=Cg(r.join("/")),s=[];return s.push(...a.map(l=>l===""?i:[i,l].join("/"))),o&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function UI(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:n2(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const qI=/^:[\w-]+$/,JI=3,QI=2,$I=1,KI=10,e2=-2,wg=e=>e==="*";function t2(e,t){let n=e.split("/"),r=n.length;return n.some(wg)&&(r+=e2),t&&(r+=QI),n.filter(o=>!wg(o)).reduce((o,i)=>o+(qI.test(i)?JI:i===""?$I:KI),r)}function n2(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function r2(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,o={},i="/",a=[];for(let s=0;s<r.length;++s){let l=r[s],u=s===r.length-1,c=i==="/"?t:t.slice(i.length)||"/",d=il({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},c),v=l.route;if(!d&&u&&n&&!r[r.length-1].route.index&&(d=il({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},c)),!d)return null;Object.assign(o,d.params),a.push({params:o,pathname:Er([i,d.pathname]),pathnameBase:l2(Er([i,d.pathnameBase])),route:v}),d.pathnameBase!=="/"&&(i=Er([i,d.pathnameBase]))}return a}function il(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=o2(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:r.reduce((u,c,d)=>{let{paramName:v,isOptional:y}=c;if(v==="*"){let f=s[d]||"";a=i.slice(0,i.length-f.length).replace(/(.)\/+$/,"$1")}const g=s[d];return y&&!g?u[v]=void 0:u[v]=(g||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:a,pattern:e}}function o2(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Xt(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function i2(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Xt(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function lr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function a2(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?ro(e):e;return{pathname:n?n.startsWith("/")?n:s2(n,t):t,search:u2(r),hash:c2(o)}}function s2(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function yc(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Ig(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Ec(e,t){let n=Ig(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function xc(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=ro(e):(o=It({},e),Oe(!o.pathname||!o.pathname.includes("?"),yc("?","pathname","search",o)),Oe(!o.pathname||!o.pathname.includes("#"),yc("#","pathname","hash",o)),Oe(!o.search||!o.search.includes("#"),yc("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(a==null)s=n;else{let d=t.length-1;if(!r&&a.startsWith("..")){let v=a.split("/");for(;v[0]==="..";)v.shift(),d-=1;o.pathname=v.join("/")}s=d>=0?t[d]:"/"}let l=a2(o,s),u=a&&a!=="/"&&a.endsWith("/"),c=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const Er=e=>e.join("/").replace(/\/\/+/g,"/"),l2=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),u2=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,c2=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class al{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function sl(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Sg=["post","put","patch","delete"],d2=new Set(Sg),f2=["get",...Sg],p2=new Set(f2),h2=new Set([301,302,303,307,308]),g2=new Set([307,308]),Cc={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},m2={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ia={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},wc=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,b2=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Tg="remix-router-transitions";function v2(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;Oe(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let R=e.detectErrorBoundary;o=k=>({hasErrorBoundary:R(k)})}else o=b2;let i={},a=wa(e.routes,o,void 0,i),s,l=e.basename||"/",u=e.unstable_dataStrategy||I2,c=e.unstable_patchRoutesOnNavigation,d=It({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),v=null,y=new Set,g=1e3,f=new Set,p=null,h=null,m=null,b=e.hydrationData!=null,E=Go(a,e.history.location,l),x=null;if(E==null&&!c){let R=bn(404,{pathname:e.history.location.pathname}),{matches:k,route:j}=Mg(a);E=k,x={[j.id]:R}}E&&!e.hydrationData&&Wt(E,a,e.history.location.pathname).active&&(E=null);let T;if(E)if(E.some(R=>R.route.lazy))T=!1;else if(!E.some(R=>R.route.loader))T=!0;else if(d.v7_partialHydration){let R=e.hydrationData?e.hydrationData.loaderData:null,k=e.hydrationData?e.hydrationData.errors:null,j=_=>_.route.loader?typeof _.route.loader=="function"&&_.route.loader.hydrate===!0?!1:R&&R[_.route.id]!==void 0||k&&k[_.route.id]!==void 0:!0;if(k){let _=E.findIndex(F=>k[F.route.id]!==void 0);T=E.slice(0,_+1).every(j)}else T=E.every(j)}else T=e.hydrationData!=null;else if(T=!1,E=[],d.v7_partialHydration){let R=Wt(null,a,e.history.location.pathname);R.active&&R.matches&&(E=R.matches)}let A,C={historyAction:e.history.action,location:e.history.location,matches:E,initialized:T,navigation:Cc,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||x,fetchers:new Map,blockers:new Map},O=Mt.Pop,B=!1,M,Q=!1,G=new Map,W=null,q=!1,ee=!1,ue=[],se=new Set,ve=new Map,H=0,te=-1,re=new Map,$=new Set,oe=new Map,de=new Map,ie=new Set,ge=new Map,Ee=new Map,Ae=new Map,me;function ze(){if(v=e.history.listen(R=>{let{action:k,location:j,delta:_}=R;if(me){me(),me=void 0;return}Xt(Ee.size===0||_!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let F=pt({currentLocation:C.location,nextLocation:j,historyAction:k});if(F&&_!=null){let U=new Promise(ce=>{me=ce});e.history.go(_*-1),$e(F,{state:"blocked",location:j,proceed(){$e(F,{state:"proceeding",proceed:void 0,reset:void 0,location:j}),U.then(()=>e.history.go(_))},reset(){let ce=new Map(C.blockers);ce.set(F,Ia),Le({blockers:ce})}});return}return kt(k,j)}),n){j2(t,G);let R=()=>V2(t,G);t.addEventListener("pagehide",R),W=()=>t.removeEventListener("pagehide",R)}return C.initialized||kt(Mt.Pop,C.location,{initialHydration:!0}),A}function V(){v&&v(),W&&W(),y.clear(),M&&M.abort(),C.fetchers.forEach((R,k)=>Fr(k)),C.blockers.forEach((R,k)=>wt(k))}function Ye(R){return y.add(R),()=>y.delete(R)}function Le(R,k){k===void 0&&(k={}),C=It({},C,R);let j=[],_=[];d.v7_fetcherPersist&&C.fetchers.forEach((F,U)=>{F.state==="idle"&&(ie.has(U)?_.push(U):j.push(U))}),[...y].forEach(F=>F(C,{deletedFetchers:_,unstable_viewTransitionOpts:k.viewTransitionOpts,unstable_flushSync:k.flushSync===!0})),d.v7_fetcherPersist&&(j.forEach(F=>C.fetchers.delete(F)),_.forEach(F=>Fr(F)))}function Ue(R,k,j){var _,F;let{flushSync:U}=j===void 0?{}:j,ce=C.actionData!=null&&C.navigation.formMethod!=null&&ur(C.navigation.formMethod)&&C.navigation.state==="loading"&&((_=R.state)==null?void 0:_._isRedirect)!==!0,ne;k.actionData?Object.keys(k.actionData).length>0?ne=k.actionData:ne=null:ce?ne=C.actionData:ne=null;let be=k.loaderData?Lg(C.loaderData,k.loaderData,k.matches||[],k.errors):C.loaderData,le=C.blockers;le.size>0&&(le=new Map(le),le.forEach((Ne,Fe)=>le.set(Fe,Ia)));let ae=B===!0||C.navigation.formMethod!=null&&ur(C.navigation.formMethod)&&((F=R.state)==null?void 0:F._isRedirect)!==!0;s&&(a=s,s=void 0),q||O===Mt.Pop||(O===Mt.Push?e.history.push(R,R.state):O===Mt.Replace&&e.history.replace(R,R.state));let ke;if(O===Mt.Pop){let Ne=G.get(C.location.pathname);Ne&&Ne.has(R.pathname)?ke={currentLocation:C.location,nextLocation:R}:G.has(R.pathname)&&(ke={currentLocation:R,nextLocation:C.location})}else if(Q){let Ne=G.get(C.location.pathname);Ne?Ne.add(R.pathname):(Ne=new Set([R.pathname]),G.set(C.location.pathname,Ne)),ke={currentLocation:C.location,nextLocation:R}}Le(It({},k,{actionData:ne,loaderData:be,historyAction:O,location:R,initialized:!0,navigation:Cc,revalidation:"idle",restoreScrollPosition:Pn(R,k.matches||C.matches),preventScrollReset:ae,blockers:le}),{viewTransitionOpts:ke,flushSync:U===!0}),O=Mt.Pop,B=!1,Q=!1,q=!1,ee=!1,ue=[]}async function Pt(R,k){if(typeof R=="number"){e.history.go(R);return}let j=Ic(C.location,C.matches,l,d.v7_prependBasename,R,d.v7_relativeSplatPath,k==null?void 0:k.fromRouteId,k==null?void 0:k.relative),{path:_,submission:F,error:U}=Ag(d.v7_normalizeFormMethod,!1,j,k),ce=C.location,ne=Ca(C.location,_,k&&k.state);ne=It({},ne,e.history.encodeLocation(ne));let be=k&&k.replace!=null?k.replace:void 0,le=Mt.Push;be===!0?le=Mt.Replace:be===!1||F!=null&&ur(F.formMethod)&&F.formAction===C.location.pathname+C.location.search&&(le=Mt.Replace);let ae=k&&"preventScrollReset"in k?k.preventScrollReset===!0:void 0,ke=(k&&k.unstable_flushSync)===!0,Ne=pt({currentLocation:ce,nextLocation:ne,historyAction:le});if(Ne){$e(Ne,{state:"blocked",location:ne,proceed(){$e(Ne,{state:"proceeding",proceed:void 0,reset:void 0,location:ne}),Pt(R,k)},reset(){let Fe=new Map(C.blockers);Fe.set(Ne,Ia),Le({blockers:Fe})}});return}return await kt(le,ne,{submission:F,pendingError:U,preventScrollReset:ae,replace:k&&k.replace,enableViewTransition:k&&k.unstable_viewTransition,flushSync:ke})}function Nn(){if(dn(),Le({revalidation:"loading"}),C.navigation.state!=="submitting"){if(C.navigation.state==="idle"){kt(C.historyAction,C.location,{startUninterruptedRevalidation:!0});return}kt(O||C.historyAction,C.navigation.location,{overrideNavigation:C.navigation,enableViewTransition:Q===!0})}}async function kt(R,k,j){M&&M.abort(),M=null,O=R,q=(j&&j.startUninterruptedRevalidation)===!0,Kt(C.location,C.matches),B=(j&&j.preventScrollReset)===!0,Q=(j&&j.enableViewTransition)===!0;let _=s||a,F=j&&j.overrideNavigation,U=Go(_,k,l),ce=(j&&j.flushSync)===!0,ne=Wt(U,_,k.pathname);if(ne.active&&ne.matches&&(U=ne.matches),!U){let{error:Me,notFoundMatches:bt,route:rt}=At(k.pathname);Ue(k,{matches:bt,loaderData:{},errors:{[rt.id]:Me}},{flushSync:ce});return}if(C.initialized&&!ee&&R2(C.location,k)&&!(j&&j.submission&&ur(j.submission.formMethod))){Ue(k,{matches:U},{flushSync:ce});return}M=new AbortController;let be=bi(e.history,k,M.signal,j&&j.submission),le;if(j&&j.pendingError)le=[vi(U).route.id,{type:ht.error,error:j.pendingError}];else if(j&&j.submission&&ur(j.submission.formMethod)){let Me=await Ut(be,k,j.submission,U,ne.active,{replace:j.replace,flushSync:ce});if(Me.shortCircuited)return;if(Me.pendingActionResult){let[bt,rt]=Me.pendingActionResult;if(Wn(rt)&&sl(rt.error)&&rt.error.status===404){M=null,Ue(k,{matches:Me.matches,loaderData:{},errors:{[bt]:rt.error}});return}}U=Me.matches||U,le=Me.pendingActionResult,F=_c(k,j.submission),ce=!1,ne.active=!1,be=bi(e.history,be.url,be.signal)}let{shortCircuited:ae,matches:ke,loaderData:Ne,errors:Fe}=await mt(be,k,U,ne.active,F,j&&j.submission,j&&j.fetcherSubmission,j&&j.replace,j&&j.initialHydration===!0,ce,le);ae||(M=null,Ue(k,It({matches:ke||U},Fg(le),{loaderData:Ne,errors:Fe})))}async function Ut(R,k,j,_,F,U){U===void 0&&(U={}),dn();let ce=M2(k,j);if(Le({navigation:ce},{flushSync:U.flushSync===!0}),F){let le=await xt(_,k.pathname,R.signal);if(le.type==="aborted")return{shortCircuited:!0};if(le.type==="error"){let{boundaryId:ae,error:ke}=_t(k.pathname,le);return{matches:le.partialMatches,pendingActionResult:[ae,{type:ht.error,error:ke}]}}else if(le.matches)_=le.matches;else{let{notFoundMatches:ae,error:ke,route:Ne}=At(k.pathname);return{matches:ae,pendingActionResult:[Ne.id,{type:ht.error,error:ke}]}}}let ne,be=Sa(_,k);if(!be.route.action&&!be.route.lazy)ne={type:ht.error,error:bn(405,{method:R.method,pathname:k.pathname,routeId:be.route.id})};else if(ne=(await Vt("action",C,R,[be],_,null))[be.route.id],R.signal.aborted)return{shortCircuited:!0};if(Wo(ne)){let le;return U&&U.replace!=null?le=U.replace:le=Dg(ne.response.headers.get("Location"),new URL(R.url),l)===C.location.pathname+C.location.search,await Dn(R,ne,!0,{submission:j,replace:le}),{shortCircuited:!0}}if(oo(ne))throw bn(400,{type:"defer-action"});if(Wn(ne)){let le=vi(_,be.route.id);return(U&&U.replace)!==!0&&(O=Mt.Push),{matches:_,pendingActionResult:[le.route.id,ne]}}return{matches:_,pendingActionResult:[be.route.id,ne]}}async function mt(R,k,j,_,F,U,ce,ne,be,le,ae){let ke=F||_c(k,U),Ne=U||ce||Gg(ke),Fe=!q&&(!d.v7_partialHydration||!be);if(_){if(Fe){let X=zn(ae);Le(It({navigation:ke},X!==void 0?{actionData:X}:{}),{flushSync:le})}let L=await xt(j,k.pathname,R.signal);if(L.type==="aborted")return{shortCircuited:!0};if(L.type==="error"){let{boundaryId:X,error:J}=_t(k.pathname,L);return{matches:L.partialMatches,loaderData:{},errors:{[X]:J}}}else if(L.matches)j=L.matches;else{let{error:X,notFoundMatches:J,route:K}=At(k.pathname);return{matches:J,loaderData:{},errors:{[K.id]:X}}}}let Me=s||a,[bt,rt]=_g(e.history,C,j,Ne,k,d.v7_partialHydration&&be===!0,d.v7_skipActionErrorRevalidation,ee,ue,se,ie,oe,$,Me,l,ae);if(rn(L=>!(j&&j.some(X=>X.route.id===L))||bt&&bt.some(X=>X.route.id===L)),te=++H,bt.length===0&&rt.length===0){let L=we();return Ue(k,It({matches:j,loaderData:{},errors:ae&&Wn(ae[1])?{[ae[0]]:ae[1].error}:null},Fg(ae),L?{fetchers:new Map(C.fetchers)}:{}),{flushSync:le}),{shortCircuited:!0}}if(Fe){let L={};if(!_){L.navigation=ke;let X=zn(ae);X!==void 0&&(L.actionData=X)}rt.length>0&&(L.fetchers=cn(rt)),Le(L,{flushSync:le})}rt.forEach(L=>{ve.has(L.key)&&pn(L.key),L.controller&&ve.set(L.key,L.controller)});let Dt=()=>rt.forEach(L=>pn(L.key));M&&M.signal.addEventListener("abort",Dt);let{loaderResults:gn,fetcherResults:Mr}=await Xn(C,j,bt,rt,R);if(R.signal.aborted)return{shortCircuited:!0};M&&M.signal.removeEventListener("abort",Dt),rt.forEach(L=>ve.delete(L.key));let tr=ll(gn);if(tr)return await Dn(R,tr.result,!0,{replace:ne}),{shortCircuited:!0};if(tr=ll(Mr),tr)return $.add(tr.key),await Dn(R,tr.result,!0,{replace:ne}),{shortCircuited:!0};let{loaderData:Ki,errors:nr}=kg(C,j,bt,gn,ae,rt,Mr,ge);ge.forEach((L,X)=>{L.subscribe(J=>{(J||L.done)&&ge.delete(X)})}),d.v7_partialHydration&&be&&C.errors&&Object.entries(C.errors).filter(L=>{let[X]=L;return!bt.some(J=>J.route.id===X)}).forEach(L=>{let[X,J]=L;nr=Object.assign(nr||{},{[X]:J})});let Z=we(),N=mr(te),z=Z||N||rt.length>0;return It({matches:j,loaderData:Ki,errors:nr},z?{fetchers:new Map(C.fetchers)}:{})}function zn(R){if(R&&!Wn(R[1]))return{[R[0]]:R[1].data};if(C.actionData)return Object.keys(C.actionData).length===0?null:C.actionData}function cn(R){return R.forEach(k=>{let j=C.fetchers.get(k.key),_=Ta(void 0,j?j.data:void 0);C.fetchers.set(k.key,_)}),new Map(C.fetchers)}function So(R,k,j,_){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");ve.has(R)&&pn(R);let F=(_&&_.unstable_flushSync)===!0,U=s||a,ce=Ic(C.location,C.matches,l,d.v7_prependBasename,j,d.v7_relativeSplatPath,k,_==null?void 0:_.relative),ne=Go(U,ce,l),be=Wt(ne,U,ce);if(be.active&&be.matches&&(ne=be.matches),!ne){Ct(R,k,bn(404,{pathname:ce}),{flushSync:F});return}let{path:le,submission:ae,error:ke}=Ag(d.v7_normalizeFormMethod,!0,ce,_);if(ke){Ct(R,k,ke,{flushSync:F});return}let Ne=Sa(ne,le);if(B=(_&&_.preventScrollReset)===!0,ae&&ur(ae.formMethod)){To(R,k,le,Ne,ne,be.active,F,ae);return}oe.set(R,{routeId:k,path:le}),Ao(R,k,le,Ne,ne,be.active,F,ae)}async function To(R,k,j,_,F,U,ce,ne){dn(),oe.delete(R);function be(K){if(!K.route.action&&!K.route.lazy){let pe=bn(405,{method:ne.formMethod,pathname:j,routeId:k});return Ct(R,k,pe,{flushSync:ce}),!0}return!1}if(!U&&be(_))return;let le=C.fetchers.get(R);fn(R,B2(ne,le),{flushSync:ce});let ae=new AbortController,ke=bi(e.history,j,ae.signal,ne);if(U){let K=await xt(F,j,ke.signal);if(K.type==="aborted")return;if(K.type==="error"){let{error:pe}=_t(j,K);Ct(R,k,pe,{flushSync:ce});return}else if(K.matches){if(F=K.matches,_=Sa(F,j),be(_))return}else{Ct(R,k,bn(404,{pathname:j}),{flushSync:ce});return}}ve.set(R,ae);let Ne=H,Me=(await Vt("action",C,ke,[_],F,R))[_.route.id];if(ke.signal.aborted){ve.get(R)===ae&&ve.delete(R);return}if(d.v7_fetcherPersist&&ie.has(R)){if(Wo(Me)||Wn(Me)){fn(R,io(void 0));return}}else{if(Wo(Me))if(ve.delete(R),te>Ne){fn(R,io(void 0));return}else return $.add(R),fn(R,Ta(ne)),Dn(ke,Me,!1,{fetcherSubmission:ne});if(Wn(Me)){Ct(R,k,Me.error);return}}if(oo(Me))throw bn(400,{type:"defer-action"});let bt=C.navigation.location||C.location,rt=bi(e.history,bt,ae.signal),Dt=s||a,gn=C.navigation.state!=="idle"?Go(Dt,C.navigation.location,l):C.matches;Oe(gn,"Didn't find any matches after fetcher action");let Mr=++H;re.set(R,Mr);let tr=Ta(ne,Me.data);C.fetchers.set(R,tr);let[Ki,nr]=_g(e.history,C,gn,ne,bt,!1,d.v7_skipActionErrorRevalidation,ee,ue,se,ie,oe,$,Dt,l,[_.route.id,Me]);nr.filter(K=>K.key!==R).forEach(K=>{let pe=K.key,fe=C.fetchers.get(pe),he=Ta(void 0,fe?fe.data:void 0);C.fetchers.set(pe,he),ve.has(pe)&&pn(pe),K.controller&&ve.set(pe,K.controller)}),Le({fetchers:new Map(C.fetchers)});let Z=()=>nr.forEach(K=>pn(K.key));ae.signal.addEventListener("abort",Z);let{loaderResults:N,fetcherResults:z}=await Xn(C,gn,Ki,nr,rt);if(ae.signal.aborted)return;ae.signal.removeEventListener("abort",Z),re.delete(R),ve.delete(R),nr.forEach(K=>ve.delete(K.key));let L=ll(N);if(L)return Dn(rt,L.result,!1);if(L=ll(z),L)return $.add(L.key),Dn(rt,L.result,!1);let{loaderData:X,errors:J}=kg(C,gn,Ki,N,void 0,nr,z,ge);if(C.fetchers.has(R)){let K=io(Me.data);C.fetchers.set(R,K)}mr(Mr),C.navigation.state==="loading"&&Mr>te?(Oe(O,"Expected pending action"),M&&M.abort(),Ue(C.navigation.location,{matches:gn,loaderData:X,errors:J,fetchers:new Map(C.fetchers)})):(Le({errors:J,loaderData:Lg(C.loaderData,X,gn,J),fetchers:new Map(C.fetchers)}),ee=!1)}async function Ao(R,k,j,_,F,U,ce,ne){let be=C.fetchers.get(R);fn(R,Ta(ne,be?be.data:void 0),{flushSync:ce});let le=new AbortController,ae=bi(e.history,j,le.signal);if(U){let Me=await xt(F,j,ae.signal);if(Me.type==="aborted")return;if(Me.type==="error"){let{error:bt}=_t(j,Me);Ct(R,k,bt,{flushSync:ce});return}else if(Me.matches)F=Me.matches,_=Sa(F,j);else{Ct(R,k,bn(404,{pathname:j}),{flushSync:ce});return}}ve.set(R,le);let ke=H,Fe=(await Vt("loader",C,ae,[_],F,R))[_.route.id];if(oo(Fe)&&(Fe=await Tc(Fe,ae.signal,!0)||Fe),ve.get(R)===le&&ve.delete(R),!ae.signal.aborted){if(ie.has(R)){fn(R,io(void 0));return}if(Wo(Fe))if(te>ke){fn(R,io(void 0));return}else{$.add(R),await Dn(ae,Fe,!1);return}if(Wn(Fe)){Ct(R,k,Fe.error);return}Oe(!oo(Fe),"Unhandled fetcher deferred data"),fn(R,io(Fe.data))}}async function Dn(R,k,j,_){let{submission:F,fetcherSubmission:U,replace:ce}=_===void 0?{}:_;k.response.headers.has("X-Remix-Revalidate")&&(ee=!0);let ne=k.response.headers.get("Location");Oe(ne,"Expected a Location header on the redirect Response"),ne=Dg(ne,new URL(R.url),l);let be=Ca(C.location,ne,{_isRedirect:!0});if(n){let Me=!1;if(k.response.headers.has("X-Remix-Reload-Document"))Me=!0;else if(wc.test(ne)){const bt=e.history.createURL(ne);Me=bt.origin!==t.location.origin||lr(bt.pathname,l)==null}if(Me){ce?t.location.replace(ne):t.location.assign(ne);return}}M=null;let le=ce===!0||k.response.headers.has("X-Remix-Replace")?Mt.Replace:Mt.Push,{formMethod:ae,formAction:ke,formEncType:Ne}=C.navigation;!F&&!U&&ae&&ke&&Ne&&(F=Gg(C.navigation));let Fe=F||U;if(g2.has(k.response.status)&&Fe&&ur(Fe.formMethod))await kt(le,be,{submission:It({},Fe,{formAction:ne}),preventScrollReset:B,enableViewTransition:j?Q:void 0});else{let Me=_c(be,F);await kt(le,be,{overrideNavigation:Me,fetcherSubmission:U,preventScrollReset:B,enableViewTransition:j?Q:void 0})}}async function Vt(R,k,j,_,F,U){let ce,ne={};try{ce=await S2(u,R,k,j,_,F,U,i,o)}catch(be){return _.forEach(le=>{ne[le.route.id]={type:ht.error,error:be}}),ne}for(let[be,le]of Object.entries(ce))if(D2(le)){let ae=le.result;ne[be]={type:ht.redirect,response:_2(ae,j,be,F,l,d.v7_relativeSplatPath)}}else ne[be]=await A2(le);return ne}async function Xn(R,k,j,_,F){let U=R.matches,ce=Vt("loader",R,F,j,k,null),ne=Promise.all(_.map(async ae=>{if(ae.matches&&ae.match&&ae.controller){let Ne=(await Vt("loader",R,bi(e.history,ae.path,ae.controller.signal),[ae.match],ae.matches,ae.key))[ae.match.route.id];return{[ae.key]:Ne}}else return Promise.resolve({[ae.key]:{type:ht.error,error:bn(404,{pathname:ae.path})}})})),be=await ce,le=(await ne).reduce((ae,ke)=>Object.assign(ae,ke),{});return await Promise.all([L2(k,be,F.signal,U,R.loaderData),F2(k,le,_)]),{loaderResults:be,fetcherResults:le}}function dn(){ee=!0,ue.push(...rn()),oe.forEach((R,k)=>{ve.has(k)&&(se.add(k),pn(k))})}function fn(R,k,j){j===void 0&&(j={}),C.fetchers.set(R,k),Le({fetchers:new Map(C.fetchers)},{flushSync:(j&&j.flushSync)===!0})}function Ct(R,k,j,_){_===void 0&&(_={});let F=vi(C.matches,k);Fr(R),Le({errors:{[F.route.id]:j},fetchers:new Map(C.fetchers)},{flushSync:(_&&_.flushSync)===!0})}function Ur(R){return d.v7_fetcherPersist&&(de.set(R,(de.get(R)||0)+1),ie.has(R)&&ie.delete(R)),C.fetchers.get(R)||m2}function Fr(R){let k=C.fetchers.get(R);ve.has(R)&&!(k&&k.state==="loading"&&re.has(R))&&pn(R),oe.delete(R),re.delete(R),$.delete(R),ie.delete(R),se.delete(R),C.fetchers.delete(R)}function _o(R){if(d.v7_fetcherPersist){let k=(de.get(R)||0)-1;k<=0?(de.delete(R),ie.add(R)):de.set(R,k)}else Fr(R);Le({fetchers:new Map(C.fetchers)})}function pn(R){let k=ve.get(R);Oe(k,"Expected fetch controller: "+R),k.abort(),ve.delete(R)}function qr(R){for(let k of R){let j=Ur(k),_=io(j.data);C.fetchers.set(k,_)}}function we(){let R=[],k=!1;for(let j of $){let _=C.fetchers.get(j);Oe(_,"Expected fetcher: "+j),_.state==="loading"&&($.delete(j),R.push(j),k=!0)}return qr(R),k}function mr(R){let k=[];for(let[j,_]of re)if(_<R){let F=C.fetchers.get(j);Oe(F,"Expected fetcher: "+j),F.state==="loading"&&(pn(j),re.delete(j),k.push(j))}return qr(k),k.length>0}function er(R,k){let j=C.blockers.get(R)||Ia;return Ee.get(R)!==k&&Ee.set(R,k),j}function wt(R){C.blockers.delete(R),Ee.delete(R)}function $e(R,k){let j=C.blockers.get(R)||Ia;Oe(j.state==="unblocked"&&k.state==="blocked"||j.state==="blocked"&&k.state==="blocked"||j.state==="blocked"&&k.state==="proceeding"||j.state==="blocked"&&k.state==="unblocked"||j.state==="proceeding"&&k.state==="unblocked","Invalid blocker state transition: "+j.state+" -> "+k.state);let _=new Map(C.blockers);_.set(R,k),Le({blockers:_})}function pt(R){let{currentLocation:k,nextLocation:j,historyAction:_}=R;if(Ee.size===0)return;Ee.size>1&&Xt(!1,"A router only supports one blocker at a time");let F=Array.from(Ee.entries()),[U,ce]=F[F.length-1],ne=C.blockers.get(U);if(!(ne&&ne.state==="proceeding")&&ce({currentLocation:k,nextLocation:j,historyAction:_}))return U}function At(R){let k=bn(404,{pathname:R}),j=s||a,{matches:_,route:F}=Mg(j);return rn(),{notFoundMatches:_,route:F,error:k}}function _t(R,k){return{boundaryId:vi(k.partialMatches).route.id,error:bn(400,{type:"route-discovery",pathname:R,message:k.error!=null&&"message"in k.error?k.error:String(k.error)})}}function rn(R){let k=[];return ge.forEach((j,_)=>{(!R||R(_))&&(j.cancel(),k.push(_),ge.delete(_))}),k}function Lt(R,k,j){if(p=R,m=k,h=j||null,!b&&C.navigation===Cc){b=!0;let _=Pn(C.location,C.matches);_!=null&&Le({restoreScrollPosition:_})}return()=>{p=null,m=null,h=null}}function Gt(R,k){return h&&h(R,k.map(_=>YI(_,C.loaderData)))||R.key}function Kt(R,k){if(p&&m){let j=Gt(R,k);p[j]=m()}}function Pn(R,k){if(p){let j=Gt(R,k),_=p[j];if(typeof _=="number")return _}return null}function Wt(R,k,j){if(c){if(f.has(j))return{active:!1,matches:R};if(R){if(Object.keys(R[0].params).length>0)return{active:!0,matches:ol(k,j,l,!0)}}else return{active:!0,matches:ol(k,j,l,!0)||[]}}return{active:!1,matches:null}}async function xt(R,k,j){let _=R;for(;;){let F=s==null,U=s||a;try{await C2(c,k,_,U,i,o,Ae,j)}catch(be){return{type:"error",error:be,partialMatches:_}}finally{F&&(a=[...a])}if(j.aborted)return{type:"aborted"};let ce=Go(U,k,l);if(ce)return Zn(k,f),{type:"success",matches:ce};let ne=ol(U,k,l,!0);if(!ne||_.length===ne.length&&_.every((be,le)=>be.route.id===ne[le].route.id))return Zn(k,f),{type:"success",matches:null};_=ne}}function Zn(R,k){if(k.size>=g){let j=k.values().next().value;k.delete(j)}k.add(R)}function Yn(R){i={},s=wa(R,o,void 0,i)}function hn(R,k){let j=s==null;Ng(R,k,s||a,i,o),j&&(a=[...a],Le({}))}return A={get basename(){return l},get future(){return d},get state(){return C},get routes(){return a},get window(){return t},initialize:ze,subscribe:Ye,enableScrollRestoration:Lt,navigate:Pt,fetch:So,revalidate:Nn,createHref:R=>e.history.createHref(R),encodeLocation:R=>e.history.encodeLocation(R),getFetcher:Ur,deleteFetcher:_o,dispose:V,getBlocker:er,deleteBlocker:wt,patchRoutes:hn,_internalFetchControllers:ve,_internalActiveDeferreds:ge,_internalSetRoutes:Yn},A}function y2(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Ic(e,t,n,r,o,i,a,s){let l,u;if(a){l=[];for(let d of t)if(l.push(d),d.route.id===a){u=d;break}}else l=t,u=t[t.length-1];let c=xc(o||".",Ec(l,i),lr(e.pathname,n)||e.pathname,s==="path");return o==null&&(c.search=e.search,c.hash=e.hash),(o==null||o===""||o===".")&&u&&u.route.index&&!Ac(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:Er([n,c.pathname])),no(c)}function Ag(e,t,n,r){if(!r||!y2(r))return{path:n};if(r.formMethod&&!k2(r.formMethod))return{path:n,error:bn(405,{method:r.formMethod})};let o=()=>({path:n,error:bn(400,{type:"invalid-body"})}),i=r.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),s=Bg(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!ur(a))return o();let v=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((y,g)=>{let[f,p]=g;return""+y+f+"="+p+`
|
|
77
|
-
`},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:v}}}else if(r.formEncType==="application/json"){if(!ur(a))return o();try{let v=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:v,text:void 0}}}catch{return o()}}}Oe(typeof FormData=="function","FormData is not available in this environment");let l,u;if(r.formData)l=Sc(r.formData),u=r.formData;else if(r.body instanceof FormData)l=Sc(r.body),u=r.body;else if(r.body instanceof URLSearchParams)l=r.body,u=Pg(l);else if(r.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(r.body),u=Pg(l)}catch{return o()}let c={formMethod:a,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(ur(c.formMethod))return{path:n,submission:c};let d=ro(n);return t&&d.search&&Ac(d.search)&&l.append("index",""),d.search="?"+l,{path:no(d),submission:c}}function E2(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function _g(e,t,n,r,o,i,a,s,l,u,c,d,v,y,g,f){let p=f?Wn(f[1])?f[1].error:f[1].data:void 0,h=e.createURL(t.location),m=e.createURL(o),b=f&&Wn(f[1])?f[0]:void 0,E=b?E2(n,b):n,x=f?f[1].statusCode:void 0,T=a&&x&&x>=400,A=E.filter((O,B)=>{let{route:M}=O;if(M.lazy)return!0;if(M.loader==null)return!1;if(i)return typeof M.loader!="function"||M.loader.hydrate?!0:t.loaderData[M.id]===void 0&&(!t.errors||t.errors[M.id]===void 0);if(x2(t.loaderData,t.matches[B],O)||l.some(W=>W===O.route.id))return!0;let Q=t.matches[B],G=O;return Rg(O,It({currentUrl:h,currentParams:Q.params,nextUrl:m,nextParams:G.params},r,{actionResult:p,actionStatus:x,defaultShouldRevalidate:T?!1:s||h.pathname+h.search===m.pathname+m.search||h.search!==m.search||Og(Q,G)}))}),C=[];return d.forEach((O,B)=>{if(i||!n.some(q=>q.route.id===O.routeId)||c.has(B))return;let M=Go(y,O.path,g);if(!M){C.push({key:B,routeId:O.routeId,path:O.path,matches:null,match:null,controller:null});return}let Q=t.fetchers.get(B),G=Sa(M,O.path),W=!1;v.has(B)?W=!1:u.has(B)?(u.delete(B),W=!0):Q&&Q.state!=="idle"&&Q.data===void 0?W=s:W=Rg(G,It({currentUrl:h,currentParams:t.matches[t.matches.length-1].params,nextUrl:m,nextParams:n[n.length-1].params},r,{actionResult:p,actionStatus:x,defaultShouldRevalidate:T?!1:s})),W&&C.push({key:B,routeId:O.routeId,path:O.path,matches:M,match:G,controller:new AbortController})}),[A,C]}function x2(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function Og(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Rg(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function C2(e,t,n,r,o,i,a,s){let l=[t,...n.map(u=>u.route.id)].join("-");try{let u=a.get(l);u||(u=e({path:t,matches:n,patch:(c,d)=>{s.aborted||Ng(c,d,r,o,i)}}),a.set(l,u)),u&&N2(u)&&await u}finally{a.delete(l)}}function Ng(e,t,n,r,o){if(e){var i;let a=r[e];Oe(a,"No route found to patch children into: routeId = "+e);let s=wa(t,o,[e,"patch",String(((i=a.children)==null?void 0:i.length)||"0")],r);a.children?a.children.push(...s):a.children=s}else{let a=wa(t,o,["patch",String(n.length||"0")],r);n.push(...a)}}async function w2(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];Oe(o,"No route found in manifest");let i={};for(let a in r){let l=o[a]!==void 0&&a!=="hasErrorBoundary";Xt(!l,'Route "'+o.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!l&&!XI.has(a)&&(i[a]=r[a])}Object.assign(o,i),Object.assign(o,It({},t(o),{lazy:void 0}))}async function I2(e){let{matches:t}=e,n=t.filter(o=>o.shouldLoad);return(await Promise.all(n.map(o=>o.resolve()))).reduce((o,i,a)=>Object.assign(o,{[n[a].route.id]:i}),{})}async function S2(e,t,n,r,o,i,a,s,l,u){let c=i.map(y=>y.route.lazy?w2(y.route,l,s):void 0),d=i.map((y,g)=>{let f=c[g],p=o.some(m=>m.route.id===y.route.id);return It({},y,{shouldLoad:p,resolve:async m=>(m&&r.method==="GET"&&(y.route.lazy||y.route.loader)&&(p=!0),p?T2(t,r,y,f,m,u):Promise.resolve({type:ht.data,result:void 0}))})}),v=await e({matches:d,request:r,params:i[0].params,fetcherKey:a,context:u});try{await Promise.all(c)}catch{}return v}async function T2(e,t,n,r,o,i){let a,s,l=u=>{let c,d=new Promise((g,f)=>c=f);s=()=>c(),t.signal.addEventListener("abort",s);let v=g=>typeof u!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):u({request:t,params:n.params,context:i},...g!==void 0?[g]:[]),y=(async()=>{try{return{type:"data",result:await(o?o(f=>v(f)):v())}}catch(g){return{type:"error",result:g}}})();return Promise.race([y,d])};try{let u=n.route[e];if(r)if(u){let c,[d]=await Promise.all([l(u).catch(v=>{c=v}),r]);if(c!==void 0)throw c;a=d}else if(await r,u=n.route[e],u)a=await l(u);else if(e==="action"){let c=new URL(t.url),d=c.pathname+c.search;throw bn(405,{method:t.method,pathname:d,routeId:n.route.id})}else return{type:ht.data,result:void 0};else if(u)a=await l(u);else{let c=new URL(t.url),d=c.pathname+c.search;throw bn(404,{pathname:d})}Oe(a.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(u){return{type:ht.error,result:u}}finally{s&&t.signal.removeEventListener("abort",s)}return a}async function A2(e){let{result:t,type:n}=e;if(Vg(t)){let u;try{let c=t.headers.get("Content-Type");c&&/\bapplication\/json\b/.test(c)?t.body==null?u=null:u=await t.json():u=await t.text()}catch(c){return{type:ht.error,error:c}}return n===ht.error?{type:ht.error,error:new al(t.status,t.statusText,u),statusCode:t.status,headers:t.headers}:{type:ht.data,data:u,statusCode:t.status,headers:t.headers}}if(n===ht.error){if(jg(t)){var r;if(t.data instanceof Error){var o;return{type:ht.error,error:t.data,statusCode:(o=t.init)==null?void 0:o.status}}t=new al(((r=t.init)==null?void 0:r.status)||500,void 0,t.data)}return{type:ht.error,error:t,statusCode:sl(t)?t.status:void 0}}if(P2(t)){var i,a;return{type:ht.deferred,deferredData:t,statusCode:(i=t.init)==null?void 0:i.status,headers:((a=t.init)==null?void 0:a.headers)&&new Headers(t.init.headers)}}if(jg(t)){var s,l;return{type:ht.data,data:t.data,statusCode:(s=t.init)==null?void 0:s.status,headers:(l=t.init)!=null&&l.headers?new Headers(t.init.headers):void 0}}return{type:ht.data,data:t}}function _2(e,t,n,r,o,i){let a=e.headers.get("Location");if(Oe(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!wc.test(a)){let s=r.slice(0,r.findIndex(l=>l.route.id===n)+1);a=Ic(new URL(t.url),s,o,!0,a,i),e.headers.set("Location",a)}return e}function Dg(e,t,n){if(wc.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),i=lr(o.pathname,n)!=null;if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function bi(e,t,n,r){let o=e.createURL(Bg(t)).toString(),i={signal:n};if(r&&ur(r.formMethod)){let{formMethod:a,formEncType:s}=r;i.method=a.toUpperCase(),s==="application/json"?(i.headers=new Headers({"Content-Type":s}),i.body=JSON.stringify(r.json)):s==="text/plain"?i.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?i.body=Sc(r.formData):i.body=r.formData}return new Request(o,i)}function Sc(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Pg(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function O2(e,t,n,r,o){let i={},a=null,s,l=!1,u={},c=n&&Wn(n[1])?n[1].error:void 0;return e.forEach(d=>{if(!(d.route.id in t))return;let v=d.route.id,y=t[v];if(Oe(!Wo(y),"Cannot handle redirect results in processLoaderData"),Wn(y)){let g=y.error;c!==void 0&&(g=c,c=void 0),a=a||{};{let f=vi(e,v);a[f.route.id]==null&&(a[f.route.id]=g)}i[v]=void 0,l||(l=!0,s=sl(y.error)?y.error.status:500),y.headers&&(u[v]=y.headers)}else oo(y)?(r.set(v,y.deferredData),i[v]=y.deferredData.data,y.statusCode!=null&&y.statusCode!==200&&!l&&(s=y.statusCode),y.headers&&(u[v]=y.headers)):(i[v]=y.data,y.statusCode&&y.statusCode!==200&&!l&&(s=y.statusCode),y.headers&&(u[v]=y.headers))}),c!==void 0&&n&&(a={[n[0]]:c},i[n[0]]=void 0),{loaderData:i,errors:a,statusCode:s||200,loaderHeaders:u}}function kg(e,t,n,r,o,i,a,s){let{loaderData:l,errors:u}=O2(t,r,o,s);return i.forEach(c=>{let{key:d,match:v,controller:y}=c,g=a[d];if(Oe(g,"Did not find corresponding fetcher result"),!(y&&y.signal.aborted))if(Wn(g)){let f=vi(e.matches,v==null?void 0:v.route.id);u&&u[f.route.id]||(u=It({},u,{[f.route.id]:g.error})),e.fetchers.delete(d)}else if(Wo(g))Oe(!1,"Unhandled fetcher revalidation redirect");else if(oo(g))Oe(!1,"Unhandled fetcher deferred data");else{let f=io(g.data);e.fetchers.set(d,f)}}),{loaderData:l,errors:u}}function Lg(e,t,n,r){let o=It({},t);for(let i of n){let a=i.route.id;if(t.hasOwnProperty(a)?t[a]!==void 0&&(o[a]=t[a]):e[a]!==void 0&&i.route.loader&&(o[a]=e[a]),r&&r.hasOwnProperty(a))break}return o}function Fg(e){return e?Wn(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function vi(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Mg(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function bn(e,t){let{pathname:n,routeId:r,method:o,type:i,message:a}=t===void 0?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(s="Bad Request",i==="route-discovery"?l='Unable to match URL "'+n+'" - the `unstable_patchRoutesOnNavigation()` '+(`function threw the following error:
|
|
78
|
-
`+a):o&&n&&r?
|
|
76
|
+
*/function It(){return It=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},It.apply(this,arguments)}var Mt;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Mt||(Mt={}));const yg="popstate";function WI(e){e===void 0&&(e={});function t(r,o){let{pathname:i,search:a,hash:l}=r.location;return Ca("",{pathname:i,search:a,hash:l},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:no(o)}return zI(t,n,null,e)}function Oe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Xt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function HI(){return Math.random().toString(36).substr(2,8)}function Eg(e,t){return{usr:e.state,key:e.key,idx:t}}function Ca(e,t,n,r){return n===void 0&&(n=null),It({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ro(t):t,{state:n,key:t&&t.key||r||HI()})}function no(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function ro(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function zI(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,l=Mt.Pop,s=null,u=c();u==null&&(u=0,a.replaceState(It({},a.state,{idx:u}),""));function c(){return(a.state||{idx:null}).idx}function f(){l=Mt.Pop;let p=c(),h=p==null?null:p-u;u=p,s&&s({action:l,location:d.location,delta:h})}function b(p,h){l=Mt.Push;let g=Ca(d.location,p,h);u=c()+1;let m=Eg(g,u),E=d.createHref(g);try{a.pushState(m,"",E)}catch(x){if(x instanceof DOMException&&x.name==="DataCloneError")throw x;o.location.assign(E)}i&&s&&s({action:l,location:d.location,delta:1})}function y(p,h){l=Mt.Replace;let g=Ca(d.location,p,h);u=c();let m=Eg(g,u),E=d.createHref(g);a.replaceState(m,"",E),i&&s&&s({action:l,location:d.location,delta:0})}function v(p){let h=o.location.origin!=="null"?o.location.origin:o.location.href,g=typeof p=="string"?p:no(p);return g=g.replace(/ $/,"%20"),Oe(h,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,h)}let d={get action(){return l},get location(){return e(o,a)},listen(p){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener(yg,f),s=p,()=>{o.removeEventListener(yg,f),s=null}},createHref(p){return t(o,p)},createURL:v,encodeLocation(p){let h=v(p);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:b,replace:y,go(p){return a.go(p)}};return d}var gt;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(gt||(gt={}));const XI=new Set(["lazy","caseSensitive","path","id","index","children"]);function ZI(e){return e.index===!0}function wa(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let a=[...n,String(i)],l=typeof o.id=="string"?o.id:a.join("-");if(Oe(o.index!==!0||!o.children,"Cannot specify children on an index route"),Oe(!r[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),ZI(o)){let s=It({},o,t(o),{id:l});return r[l]=s,s}else{let s=It({},o,t(o),{id:l,children:void 0});return r[l]=s,o.children&&(s.children=wa(o.children,t,a,r)),s}})}function Go(e,t,n){return n===void 0&&(n="/"),ol(e,t,n,!1)}function ol(e,t,n,r){let o=typeof t=="string"?ro(t):t,i=lr(o.pathname||"/",n);if(i==null)return null;let a=xg(e);UI(a);let l=null;for(let s=0;l==null&&s<a.length;++s){let u=i2(i);l=r2(a[s],u,r)}return l}function YI(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],handle:n.handle}}function xg(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(i,a,l)=>{let s={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};s.relativePath.startsWith("/")&&(Oe(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let u=Er([r,s.relativePath]),c=n.concat(s);i.children&&i.children.length>0&&(Oe(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),xg(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:t2(u,i.index),routesMeta:c})};return e.forEach((i,a)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,a);else for(let s of Cg(i.path))o(i,a,s)}),t}function Cg(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=Cg(r.join("/")),l=[];return l.push(...a.map(s=>s===""?i:[i,s].join("/"))),o&&l.push(...a),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function UI(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:n2(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const qI=/^:[\w-]+$/,JI=3,QI=2,$I=1,KI=10,e2=-2,wg=e=>e==="*";function t2(e,t){let n=e.split("/"),r=n.length;return n.some(wg)&&(r+=e2),t&&(r+=QI),n.filter(o=>!wg(o)).reduce((o,i)=>o+(qI.test(i)?JI:i===""?$I:KI),r)}function n2(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function r2(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,o={},i="/",a=[];for(let l=0;l<r.length;++l){let s=r[l],u=l===r.length-1,c=i==="/"?t:t.slice(i.length)||"/",f=il({path:s.relativePath,caseSensitive:s.caseSensitive,end:u},c),b=s.route;if(!f&&u&&n&&!r[r.length-1].route.index&&(f=il({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},c)),!f)return null;Object.assign(o,f.params),a.push({params:o,pathname:Er([i,f.pathname]),pathnameBase:l2(Er([i,f.pathnameBase])),route:b}),f.pathnameBase!=="/"&&(i=Er([i,f.pathnameBase]))}return a}function il(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=o2(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:r.reduce((u,c,f)=>{let{paramName:b,isOptional:y}=c;if(b==="*"){let d=l[f]||"";a=i.slice(0,i.length-d.length).replace(/(.)\/+$/,"$1")}const v=l[f];return y&&!v?u[b]=void 0:u[b]=(v||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:a,pattern:e}}function o2(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Xt(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,s)=>(r.push({paramName:l,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function i2(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Xt(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function lr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function a2(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?ro(e):e;return{pathname:n?n.startsWith("/")?n:s2(n,t):t,search:u2(r),hash:c2(o)}}function s2(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function yc(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Ig(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Ec(e,t){let n=Ig(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function xc(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=ro(e):(o=It({},e),Oe(!o.pathname||!o.pathname.includes("?"),yc("?","pathname","search",o)),Oe(!o.pathname||!o.pathname.includes("#"),yc("#","pathname","hash",o)),Oe(!o.search||!o.search.includes("#"),yc("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,l;if(a==null)l=n;else{let f=t.length-1;if(!r&&a.startsWith("..")){let b=a.split("/");for(;b[0]==="..";)b.shift(),f-=1;o.pathname=b.join("/")}l=f>=0?t[f]:"/"}let s=a2(o,l),u=a&&a!=="/"&&a.endsWith("/"),c=(i||a===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}const Er=e=>e.join("/").replace(/\/\/+/g,"/"),l2=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),u2=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,c2=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class al{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function sl(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Sg=["post","put","patch","delete"],d2=new Set(Sg),f2=["get",...Sg],p2=new Set(f2),h2=new Set([301,302,303,307,308]),g2=new Set([307,308]),Cc={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},m2={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ia={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},wc=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,b2=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Tg="remix-router-transitions";function v2(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;Oe(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let R=e.detectErrorBoundary;o=k=>({hasErrorBoundary:R(k)})}else o=b2;let i={},a=wa(e.routes,o,void 0,i),l,s=e.basename||"/",u=e.unstable_dataStrategy||I2,c=e.unstable_patchRoutesOnNavigation,f=It({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),b=null,y=new Set,v=1e3,d=new Set,p=null,h=null,g=null,m=e.hydrationData!=null,E=Go(a,e.history.location,s),x=null;if(E==null&&!c){let R=bn(404,{pathname:e.history.location.pathname}),{matches:k,route:j}=Mg(a);E=k,x={[j.id]:R}}E&&!e.hydrationData&&Wt(E,a,e.history.location.pathname).active&&(E=null);let A;if(E)if(E.some(R=>R.route.lazy))A=!1;else if(!E.some(R=>R.route.loader))A=!0;else if(f.v7_partialHydration){let R=e.hydrationData?e.hydrationData.loaderData:null,k=e.hydrationData?e.hydrationData.errors:null,j=_=>_.route.loader?typeof _.route.loader=="function"&&_.route.loader.hydrate===!0?!1:R&&R[_.route.id]!==void 0||k&&k[_.route.id]!==void 0:!0;if(k){let _=E.findIndex(F=>k[F.route.id]!==void 0);A=E.slice(0,_+1).every(j)}else A=E.every(j)}else A=e.hydrationData!=null;else if(A=!1,E=[],f.v7_partialHydration){let R=Wt(null,a,e.history.location.pathname);R.active&&R.matches&&(E=R.matches)}let T,C={historyAction:e.history.action,location:e.history.location,matches:E,initialized:A,navigation:Cc,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||x,fetchers:new Map,blockers:new Map},O=Mt.Pop,M=!1,B,U=!1,G=new Map,X=null,q=!1,$=!1,ue=[],se=new Set,ve=new Map,W=0,te=-1,re=new Map,K=new Set,oe=new Map,de=new Map,ie=new Set,ge=new Map,Ee=new Map,Ae=new Map,me;function ze(){if(b=e.history.listen(R=>{let{action:k,location:j,delta:_}=R;if(me){me(),me=void 0;return}Xt(Ee.size===0||_!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let F=ht({currentLocation:C.location,nextLocation:j,historyAction:k});if(F&&_!=null){let J=new Promise(ce=>{me=ce});e.history.go(_*-1),$e(F,{state:"blocked",location:j,proceed(){$e(F,{state:"proceeding",proceed:void 0,reset:void 0,location:j}),J.then(()=>e.history.go(_))},reset(){let ce=new Map(C.blockers);ce.set(F,Ia),Le({blockers:ce})}});return}return kt(k,j)}),n){j2(t,G);let R=()=>V2(t,G);t.addEventListener("pagehide",R),X=()=>t.removeEventListener("pagehide",R)}return C.initialized||kt(Mt.Pop,C.location,{initialHydration:!0}),T}function V(){b&&b(),X&&X(),y.clear(),B&&B.abort(),C.fetchers.forEach((R,k)=>Fr(k)),C.blockers.forEach((R,k)=>wt(k))}function Ye(R){return y.add(R),()=>y.delete(R)}function Le(R,k){k===void 0&&(k={}),C=It({},C,R);let j=[],_=[];f.v7_fetcherPersist&&C.fetchers.forEach((F,J)=>{F.state==="idle"&&(ie.has(J)?_.push(J):j.push(J))}),[...y].forEach(F=>F(C,{deletedFetchers:_,unstable_viewTransitionOpts:k.viewTransitionOpts,unstable_flushSync:k.flushSync===!0})),f.v7_fetcherPersist&&(j.forEach(F=>C.fetchers.delete(F)),_.forEach(F=>Fr(F)))}function Ue(R,k,j){var _,F;let{flushSync:J}=j===void 0?{}:j,ce=C.actionData!=null&&C.navigation.formMethod!=null&&ur(C.navigation.formMethod)&&C.navigation.state==="loading"&&((_=R.state)==null?void 0:_._isRedirect)!==!0,ne;k.actionData?Object.keys(k.actionData).length>0?ne=k.actionData:ne=null:ce?ne=C.actionData:ne=null;let be=k.loaderData?Lg(C.loaderData,k.loaderData,k.matches||[],k.errors):C.loaderData,le=C.blockers;le.size>0&&(le=new Map(le),le.forEach((Ne,Fe)=>le.set(Fe,Ia)));let ae=M===!0||C.navigation.formMethod!=null&&ur(C.navigation.formMethod)&&((F=R.state)==null?void 0:F._isRedirect)!==!0;l&&(a=l,l=void 0),q||O===Mt.Pop||(O===Mt.Push?e.history.push(R,R.state):O===Mt.Replace&&e.history.replace(R,R.state));let ke;if(O===Mt.Pop){let Ne=G.get(C.location.pathname);Ne&&Ne.has(R.pathname)?ke={currentLocation:C.location,nextLocation:R}:G.has(R.pathname)&&(ke={currentLocation:R,nextLocation:C.location})}else if(U){let Ne=G.get(C.location.pathname);Ne?Ne.add(R.pathname):(Ne=new Set([R.pathname]),G.set(C.location.pathname,Ne)),ke={currentLocation:C.location,nextLocation:R}}Le(It({},k,{actionData:ne,loaderData:be,historyAction:O,location:R,initialized:!0,navigation:Cc,revalidation:"idle",restoreScrollPosition:Pn(R,k.matches||C.matches),preventScrollReset:ae,blockers:le}),{viewTransitionOpts:ke,flushSync:J===!0}),O=Mt.Pop,M=!1,U=!1,q=!1,$=!1,ue=[]}async function Pt(R,k){if(typeof R=="number"){e.history.go(R);return}let j=Ic(C.location,C.matches,s,f.v7_prependBasename,R,f.v7_relativeSplatPath,k==null?void 0:k.fromRouteId,k==null?void 0:k.relative),{path:_,submission:F,error:J}=Ag(f.v7_normalizeFormMethod,!1,j,k),ce=C.location,ne=Ca(C.location,_,k&&k.state);ne=It({},ne,e.history.encodeLocation(ne));let be=k&&k.replace!=null?k.replace:void 0,le=Mt.Push;be===!0?le=Mt.Replace:be===!1||F!=null&&ur(F.formMethod)&&F.formAction===C.location.pathname+C.location.search&&(le=Mt.Replace);let ae=k&&"preventScrollReset"in k?k.preventScrollReset===!0:void 0,ke=(k&&k.unstable_flushSync)===!0,Ne=ht({currentLocation:ce,nextLocation:ne,historyAction:le});if(Ne){$e(Ne,{state:"blocked",location:ne,proceed(){$e(Ne,{state:"proceeding",proceed:void 0,reset:void 0,location:ne}),Pt(R,k)},reset(){let Fe=new Map(C.blockers);Fe.set(Ne,Ia),Le({blockers:Fe})}});return}return await kt(le,ne,{submission:F,pendingError:J,preventScrollReset:ae,replace:k&&k.replace,enableViewTransition:k&&k.unstable_viewTransition,flushSync:ke})}function Nn(){if(dn(),Le({revalidation:"loading"}),C.navigation.state!=="submitting"){if(C.navigation.state==="idle"){kt(C.historyAction,C.location,{startUninterruptedRevalidation:!0});return}kt(O||C.historyAction,C.navigation.location,{overrideNavigation:C.navigation,enableViewTransition:U===!0})}}async function kt(R,k,j){B&&B.abort(),B=null,O=R,q=(j&&j.startUninterruptedRevalidation)===!0,Kt(C.location,C.matches),M=(j&&j.preventScrollReset)===!0,U=(j&&j.enableViewTransition)===!0;let _=l||a,F=j&&j.overrideNavigation,J=Go(_,k,s),ce=(j&&j.flushSync)===!0,ne=Wt(J,_,k.pathname);if(ne.active&&ne.matches&&(J=ne.matches),!J){let{error:Me,notFoundMatches:bt,route:ot}=At(k.pathname);Ue(k,{matches:bt,loaderData:{},errors:{[ot.id]:Me}},{flushSync:ce});return}if(C.initialized&&!$&&R2(C.location,k)&&!(j&&j.submission&&ur(j.submission.formMethod))){Ue(k,{matches:J},{flushSync:ce});return}B=new AbortController;let be=bi(e.history,k,B.signal,j&&j.submission),le;if(j&&j.pendingError)le=[vi(J).route.id,{type:gt.error,error:j.pendingError}];else if(j&&j.submission&&ur(j.submission.formMethod)){let Me=await Ut(be,k,j.submission,J,ne.active,{replace:j.replace,flushSync:ce});if(Me.shortCircuited)return;if(Me.pendingActionResult){let[bt,ot]=Me.pendingActionResult;if(Wn(ot)&&sl(ot.error)&&ot.error.status===404){B=null,Ue(k,{matches:Me.matches,loaderData:{},errors:{[bt]:ot.error}});return}}J=Me.matches||J,le=Me.pendingActionResult,F=_c(k,j.submission),ce=!1,ne.active=!1,be=bi(e.history,be.url,be.signal)}let{shortCircuited:ae,matches:ke,loaderData:Ne,errors:Fe}=await mt(be,k,J,ne.active,F,j&&j.submission,j&&j.fetcherSubmission,j&&j.replace,j&&j.initialHydration===!0,ce,le);ae||(B=null,Ue(k,It({matches:ke||J},Fg(le),{loaderData:Ne,errors:Fe})))}async function Ut(R,k,j,_,F,J){J===void 0&&(J={}),dn();let ce=M2(k,j);if(Le({navigation:ce},{flushSync:J.flushSync===!0}),F){let le=await xt(_,k.pathname,R.signal);if(le.type==="aborted")return{shortCircuited:!0};if(le.type==="error"){let{boundaryId:ae,error:ke}=_t(k.pathname,le);return{matches:le.partialMatches,pendingActionResult:[ae,{type:gt.error,error:ke}]}}else if(le.matches)_=le.matches;else{let{notFoundMatches:ae,error:ke,route:Ne}=At(k.pathname);return{matches:ae,pendingActionResult:[Ne.id,{type:gt.error,error:ke}]}}}let ne,be=Sa(_,k);if(!be.route.action&&!be.route.lazy)ne={type:gt.error,error:bn(405,{method:R.method,pathname:k.pathname,routeId:be.route.id})};else if(ne=(await Vt("action",C,R,[be],_,null))[be.route.id],R.signal.aborted)return{shortCircuited:!0};if(Wo(ne)){let le;return J&&J.replace!=null?le=J.replace:le=Dg(ne.response.headers.get("Location"),new URL(R.url),s)===C.location.pathname+C.location.search,await Dn(R,ne,!0,{submission:j,replace:le}),{shortCircuited:!0}}if(oo(ne))throw bn(400,{type:"defer-action"});if(Wn(ne)){let le=vi(_,be.route.id);return(J&&J.replace)!==!0&&(O=Mt.Push),{matches:_,pendingActionResult:[le.route.id,ne]}}return{matches:_,pendingActionResult:[be.route.id,ne]}}async function mt(R,k,j,_,F,J,ce,ne,be,le,ae){let ke=F||_c(k,J),Ne=J||ce||Gg(ke),Fe=!q&&(!f.v7_partialHydration||!be);if(_){if(Fe){let z=zn(ae);Le(It({navigation:ke},z!==void 0?{actionData:z}:{}),{flushSync:le})}let L=await xt(j,k.pathname,R.signal);if(L.type==="aborted")return{shortCircuited:!0};if(L.type==="error"){let{boundaryId:z,error:Q}=_t(k.pathname,L);return{matches:L.partialMatches,loaderData:{},errors:{[z]:Q}}}else if(L.matches)j=L.matches;else{let{error:z,notFoundMatches:Q,route:ee}=At(k.pathname);return{matches:Q,loaderData:{},errors:{[ee.id]:z}}}}let Me=l||a,[bt,ot]=_g(e.history,C,j,Ne,k,f.v7_partialHydration&&be===!0,f.v7_skipActionErrorRevalidation,$,ue,se,ie,oe,K,Me,s,ae);if(rn(L=>!(j&&j.some(z=>z.route.id===L))||bt&&bt.some(z=>z.route.id===L)),te=++W,bt.length===0&&ot.length===0){let L=we();return Ue(k,It({matches:j,loaderData:{},errors:ae&&Wn(ae[1])?{[ae[0]]:ae[1].error}:null},Fg(ae),L?{fetchers:new Map(C.fetchers)}:{}),{flushSync:le}),{shortCircuited:!0}}if(Fe){let L={};if(!_){L.navigation=ke;let z=zn(ae);z!==void 0&&(L.actionData=z)}ot.length>0&&(L.fetchers=cn(ot)),Le(L,{flushSync:le})}ot.forEach(L=>{ve.has(L.key)&&pn(L.key),L.controller&&ve.set(L.key,L.controller)});let Dt=()=>ot.forEach(L=>pn(L.key));B&&B.signal.addEventListener("abort",Dt);let{loaderResults:gn,fetcherResults:Mr}=await Xn(C,j,bt,ot,R);if(R.signal.aborted)return{shortCircuited:!0};B&&B.signal.removeEventListener("abort",Dt),ot.forEach(L=>ve.delete(L.key));let tr=ll(gn);if(tr)return await Dn(R,tr.result,!0,{replace:ne}),{shortCircuited:!0};if(tr=ll(Mr),tr)return K.add(tr.key),await Dn(R,tr.result,!0,{replace:ne}),{shortCircuited:!0};let{loaderData:Ki,errors:nr}=kg(C,j,bt,gn,ae,ot,Mr,ge);ge.forEach((L,z)=>{L.subscribe(Q=>{(Q||L.done)&&ge.delete(z)})}),f.v7_partialHydration&&be&&C.errors&&Object.entries(C.errors).filter(L=>{let[z]=L;return!bt.some(Q=>Q.route.id===z)}).forEach(L=>{let[z,Q]=L;nr=Object.assign(nr||{},{[z]:Q})});let Z=we(),N=mr(te),H=Z||N||ot.length>0;return It({matches:j,loaderData:Ki,errors:nr},H?{fetchers:new Map(C.fetchers)}:{})}function zn(R){if(R&&!Wn(R[1]))return{[R[0]]:R[1].data};if(C.actionData)return Object.keys(C.actionData).length===0?null:C.actionData}function cn(R){return R.forEach(k=>{let j=C.fetchers.get(k.key),_=Ta(void 0,j?j.data:void 0);C.fetchers.set(k.key,_)}),new Map(C.fetchers)}function So(R,k,j,_){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");ve.has(R)&&pn(R);let F=(_&&_.unstable_flushSync)===!0,J=l||a,ce=Ic(C.location,C.matches,s,f.v7_prependBasename,j,f.v7_relativeSplatPath,k,_==null?void 0:_.relative),ne=Go(J,ce,s),be=Wt(ne,J,ce);if(be.active&&be.matches&&(ne=be.matches),!ne){Ct(R,k,bn(404,{pathname:ce}),{flushSync:F});return}let{path:le,submission:ae,error:ke}=Ag(f.v7_normalizeFormMethod,!0,ce,_);if(ke){Ct(R,k,ke,{flushSync:F});return}let Ne=Sa(ne,le);if(M=(_&&_.preventScrollReset)===!0,ae&&ur(ae.formMethod)){To(R,k,le,Ne,ne,be.active,F,ae);return}oe.set(R,{routeId:k,path:le}),Ao(R,k,le,Ne,ne,be.active,F,ae)}async function To(R,k,j,_,F,J,ce,ne){dn(),oe.delete(R);function be(ee){if(!ee.route.action&&!ee.route.lazy){let pe=bn(405,{method:ne.formMethod,pathname:j,routeId:k});return Ct(R,k,pe,{flushSync:ce}),!0}return!1}if(!J&&be(_))return;let le=C.fetchers.get(R);fn(R,B2(ne,le),{flushSync:ce});let ae=new AbortController,ke=bi(e.history,j,ae.signal,ne);if(J){let ee=await xt(F,j,ke.signal);if(ee.type==="aborted")return;if(ee.type==="error"){let{error:pe}=_t(j,ee);Ct(R,k,pe,{flushSync:ce});return}else if(ee.matches){if(F=ee.matches,_=Sa(F,j),be(_))return}else{Ct(R,k,bn(404,{pathname:j}),{flushSync:ce});return}}ve.set(R,ae);let Ne=W,Me=(await Vt("action",C,ke,[_],F,R))[_.route.id];if(ke.signal.aborted){ve.get(R)===ae&&ve.delete(R);return}if(f.v7_fetcherPersist&&ie.has(R)){if(Wo(Me)||Wn(Me)){fn(R,io(void 0));return}}else{if(Wo(Me))if(ve.delete(R),te>Ne){fn(R,io(void 0));return}else return K.add(R),fn(R,Ta(ne)),Dn(ke,Me,!1,{fetcherSubmission:ne});if(Wn(Me)){Ct(R,k,Me.error);return}}if(oo(Me))throw bn(400,{type:"defer-action"});let bt=C.navigation.location||C.location,ot=bi(e.history,bt,ae.signal),Dt=l||a,gn=C.navigation.state!=="idle"?Go(Dt,C.navigation.location,s):C.matches;Oe(gn,"Didn't find any matches after fetcher action");let Mr=++W;re.set(R,Mr);let tr=Ta(ne,Me.data);C.fetchers.set(R,tr);let[Ki,nr]=_g(e.history,C,gn,ne,bt,!1,f.v7_skipActionErrorRevalidation,$,ue,se,ie,oe,K,Dt,s,[_.route.id,Me]);nr.filter(ee=>ee.key!==R).forEach(ee=>{let pe=ee.key,fe=C.fetchers.get(pe),he=Ta(void 0,fe?fe.data:void 0);C.fetchers.set(pe,he),ve.has(pe)&&pn(pe),ee.controller&&ve.set(pe,ee.controller)}),Le({fetchers:new Map(C.fetchers)});let Z=()=>nr.forEach(ee=>pn(ee.key));ae.signal.addEventListener("abort",Z);let{loaderResults:N,fetcherResults:H}=await Xn(C,gn,Ki,nr,ot);if(ae.signal.aborted)return;ae.signal.removeEventListener("abort",Z),re.delete(R),ve.delete(R),nr.forEach(ee=>ve.delete(ee.key));let L=ll(N);if(L)return Dn(ot,L.result,!1);if(L=ll(H),L)return K.add(L.key),Dn(ot,L.result,!1);let{loaderData:z,errors:Q}=kg(C,gn,Ki,N,void 0,nr,H,ge);if(C.fetchers.has(R)){let ee=io(Me.data);C.fetchers.set(R,ee)}mr(Mr),C.navigation.state==="loading"&&Mr>te?(Oe(O,"Expected pending action"),B&&B.abort(),Ue(C.navigation.location,{matches:gn,loaderData:z,errors:Q,fetchers:new Map(C.fetchers)})):(Le({errors:Q,loaderData:Lg(C.loaderData,z,gn,Q),fetchers:new Map(C.fetchers)}),$=!1)}async function Ao(R,k,j,_,F,J,ce,ne){let be=C.fetchers.get(R);fn(R,Ta(ne,be?be.data:void 0),{flushSync:ce});let le=new AbortController,ae=bi(e.history,j,le.signal);if(J){let Me=await xt(F,j,ae.signal);if(Me.type==="aborted")return;if(Me.type==="error"){let{error:bt}=_t(j,Me);Ct(R,k,bt,{flushSync:ce});return}else if(Me.matches)F=Me.matches,_=Sa(F,j);else{Ct(R,k,bn(404,{pathname:j}),{flushSync:ce});return}}ve.set(R,le);let ke=W,Fe=(await Vt("loader",C,ae,[_],F,R))[_.route.id];if(oo(Fe)&&(Fe=await Tc(Fe,ae.signal,!0)||Fe),ve.get(R)===le&&ve.delete(R),!ae.signal.aborted){if(ie.has(R)){fn(R,io(void 0));return}if(Wo(Fe))if(te>ke){fn(R,io(void 0));return}else{K.add(R),await Dn(ae,Fe,!1);return}if(Wn(Fe)){Ct(R,k,Fe.error);return}Oe(!oo(Fe),"Unhandled fetcher deferred data"),fn(R,io(Fe.data))}}async function Dn(R,k,j,_){let{submission:F,fetcherSubmission:J,replace:ce}=_===void 0?{}:_;k.response.headers.has("X-Remix-Revalidate")&&($=!0);let ne=k.response.headers.get("Location");Oe(ne,"Expected a Location header on the redirect Response"),ne=Dg(ne,new URL(R.url),s);let be=Ca(C.location,ne,{_isRedirect:!0});if(n){let Me=!1;if(k.response.headers.has("X-Remix-Reload-Document"))Me=!0;else if(wc.test(ne)){const bt=e.history.createURL(ne);Me=bt.origin!==t.location.origin||lr(bt.pathname,s)==null}if(Me){ce?t.location.replace(ne):t.location.assign(ne);return}}B=null;let le=ce===!0||k.response.headers.has("X-Remix-Replace")?Mt.Replace:Mt.Push,{formMethod:ae,formAction:ke,formEncType:Ne}=C.navigation;!F&&!J&&ae&&ke&&Ne&&(F=Gg(C.navigation));let Fe=F||J;if(g2.has(k.response.status)&&Fe&&ur(Fe.formMethod))await kt(le,be,{submission:It({},Fe,{formAction:ne}),preventScrollReset:M,enableViewTransition:j?U:void 0});else{let Me=_c(be,F);await kt(le,be,{overrideNavigation:Me,fetcherSubmission:J,preventScrollReset:M,enableViewTransition:j?U:void 0})}}async function Vt(R,k,j,_,F,J){let ce,ne={};try{ce=await S2(u,R,k,j,_,F,J,i,o)}catch(be){return _.forEach(le=>{ne[le.route.id]={type:gt.error,error:be}}),ne}for(let[be,le]of Object.entries(ce))if(D2(le)){let ae=le.result;ne[be]={type:gt.redirect,response:_2(ae,j,be,F,s,f.v7_relativeSplatPath)}}else ne[be]=await A2(le);return ne}async function Xn(R,k,j,_,F){let J=R.matches,ce=Vt("loader",R,F,j,k,null),ne=Promise.all(_.map(async ae=>{if(ae.matches&&ae.match&&ae.controller){let Ne=(await Vt("loader",R,bi(e.history,ae.path,ae.controller.signal),[ae.match],ae.matches,ae.key))[ae.match.route.id];return{[ae.key]:Ne}}else return Promise.resolve({[ae.key]:{type:gt.error,error:bn(404,{pathname:ae.path})}})})),be=await ce,le=(await ne).reduce((ae,ke)=>Object.assign(ae,ke),{});return await Promise.all([L2(k,be,F.signal,J,R.loaderData),F2(k,le,_)]),{loaderResults:be,fetcherResults:le}}function dn(){$=!0,ue.push(...rn()),oe.forEach((R,k)=>{ve.has(k)&&(se.add(k),pn(k))})}function fn(R,k,j){j===void 0&&(j={}),C.fetchers.set(R,k),Le({fetchers:new Map(C.fetchers)},{flushSync:(j&&j.flushSync)===!0})}function Ct(R,k,j,_){_===void 0&&(_={});let F=vi(C.matches,k);Fr(R),Le({errors:{[F.route.id]:j},fetchers:new Map(C.fetchers)},{flushSync:(_&&_.flushSync)===!0})}function Ur(R){return f.v7_fetcherPersist&&(de.set(R,(de.get(R)||0)+1),ie.has(R)&&ie.delete(R)),C.fetchers.get(R)||m2}function Fr(R){let k=C.fetchers.get(R);ve.has(R)&&!(k&&k.state==="loading"&&re.has(R))&&pn(R),oe.delete(R),re.delete(R),K.delete(R),ie.delete(R),se.delete(R),C.fetchers.delete(R)}function _o(R){if(f.v7_fetcherPersist){let k=(de.get(R)||0)-1;k<=0?(de.delete(R),ie.add(R)):de.set(R,k)}else Fr(R);Le({fetchers:new Map(C.fetchers)})}function pn(R){let k=ve.get(R);Oe(k,"Expected fetch controller: "+R),k.abort(),ve.delete(R)}function qr(R){for(let k of R){let j=Ur(k),_=io(j.data);C.fetchers.set(k,_)}}function we(){let R=[],k=!1;for(let j of K){let _=C.fetchers.get(j);Oe(_,"Expected fetcher: "+j),_.state==="loading"&&(K.delete(j),R.push(j),k=!0)}return qr(R),k}function mr(R){let k=[];for(let[j,_]of re)if(_<R){let F=C.fetchers.get(j);Oe(F,"Expected fetcher: "+j),F.state==="loading"&&(pn(j),re.delete(j),k.push(j))}return qr(k),k.length>0}function er(R,k){let j=C.blockers.get(R)||Ia;return Ee.get(R)!==k&&Ee.set(R,k),j}function wt(R){C.blockers.delete(R),Ee.delete(R)}function $e(R,k){let j=C.blockers.get(R)||Ia;Oe(j.state==="unblocked"&&k.state==="blocked"||j.state==="blocked"&&k.state==="blocked"||j.state==="blocked"&&k.state==="proceeding"||j.state==="blocked"&&k.state==="unblocked"||j.state==="proceeding"&&k.state==="unblocked","Invalid blocker state transition: "+j.state+" -> "+k.state);let _=new Map(C.blockers);_.set(R,k),Le({blockers:_})}function ht(R){let{currentLocation:k,nextLocation:j,historyAction:_}=R;if(Ee.size===0)return;Ee.size>1&&Xt(!1,"A router only supports one blocker at a time");let F=Array.from(Ee.entries()),[J,ce]=F[F.length-1],ne=C.blockers.get(J);if(!(ne&&ne.state==="proceeding")&&ce({currentLocation:k,nextLocation:j,historyAction:_}))return J}function At(R){let k=bn(404,{pathname:R}),j=l||a,{matches:_,route:F}=Mg(j);return rn(),{notFoundMatches:_,route:F,error:k}}function _t(R,k){return{boundaryId:vi(k.partialMatches).route.id,error:bn(400,{type:"route-discovery",pathname:R,message:k.error!=null&&"message"in k.error?k.error:String(k.error)})}}function rn(R){let k=[];return ge.forEach((j,_)=>{(!R||R(_))&&(j.cancel(),k.push(_),ge.delete(_))}),k}function Lt(R,k,j){if(p=R,g=k,h=j||null,!m&&C.navigation===Cc){m=!0;let _=Pn(C.location,C.matches);_!=null&&Le({restoreScrollPosition:_})}return()=>{p=null,g=null,h=null}}function Gt(R,k){return h&&h(R,k.map(_=>YI(_,C.loaderData)))||R.key}function Kt(R,k){if(p&&g){let j=Gt(R,k);p[j]=g()}}function Pn(R,k){if(p){let j=Gt(R,k),_=p[j];if(typeof _=="number")return _}return null}function Wt(R,k,j){if(c){if(d.has(j))return{active:!1,matches:R};if(R){if(Object.keys(R[0].params).length>0)return{active:!0,matches:ol(k,j,s,!0)}}else return{active:!0,matches:ol(k,j,s,!0)||[]}}return{active:!1,matches:null}}async function xt(R,k,j){let _=R;for(;;){let F=l==null,J=l||a;try{await C2(c,k,_,J,i,o,Ae,j)}catch(be){return{type:"error",error:be,partialMatches:_}}finally{F&&(a=[...a])}if(j.aborted)return{type:"aborted"};let ce=Go(J,k,s);if(ce)return Zn(k,d),{type:"success",matches:ce};let ne=ol(J,k,s,!0);if(!ne||_.length===ne.length&&_.every((be,le)=>be.route.id===ne[le].route.id))return Zn(k,d),{type:"success",matches:null};_=ne}}function Zn(R,k){if(k.size>=v){let j=k.values().next().value;k.delete(j)}k.add(R)}function Yn(R){i={},l=wa(R,o,void 0,i)}function hn(R,k){let j=l==null;Ng(R,k,l||a,i,o),j&&(a=[...a],Le({}))}return T={get basename(){return s},get future(){return f},get state(){return C},get routes(){return a},get window(){return t},initialize:ze,subscribe:Ye,enableScrollRestoration:Lt,navigate:Pt,fetch:So,revalidate:Nn,createHref:R=>e.history.createHref(R),encodeLocation:R=>e.history.encodeLocation(R),getFetcher:Ur,deleteFetcher:_o,dispose:V,getBlocker:er,deleteBlocker:wt,patchRoutes:hn,_internalFetchControllers:ve,_internalActiveDeferreds:ge,_internalSetRoutes:Yn},T}function y2(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Ic(e,t,n,r,o,i,a,l){let s,u;if(a){s=[];for(let f of t)if(s.push(f),f.route.id===a){u=f;break}}else s=t,u=t[t.length-1];let c=xc(o||".",Ec(s,i),lr(e.pathname,n)||e.pathname,l==="path");return o==null&&(c.search=e.search,c.hash=e.hash),(o==null||o===""||o===".")&&u&&u.route.index&&!Ac(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:Er([n,c.pathname])),no(c)}function Ag(e,t,n,r){if(!r||!y2(r))return{path:n};if(r.formMethod&&!k2(r.formMethod))return{path:n,error:bn(405,{method:r.formMethod})};let o=()=>({path:n,error:bn(400,{type:"invalid-body"})}),i=r.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),l=Bg(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!ur(a))return o();let b=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((y,v)=>{let[d,p]=v;return""+y+d+"="+p+`
|
|
77
|
+
`},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:l,formEncType:r.formEncType,formData:void 0,json:void 0,text:b}}}else if(r.formEncType==="application/json"){if(!ur(a))return o();try{let b=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:l,formEncType:r.formEncType,formData:void 0,json:b,text:void 0}}}catch{return o()}}}Oe(typeof FormData=="function","FormData is not available in this environment");let s,u;if(r.formData)s=Sc(r.formData),u=r.formData;else if(r.body instanceof FormData)s=Sc(r.body),u=r.body;else if(r.body instanceof URLSearchParams)s=r.body,u=Pg(s);else if(r.body==null)s=new URLSearchParams,u=new FormData;else try{s=new URLSearchParams(r.body),u=Pg(s)}catch{return o()}let c={formMethod:a,formAction:l,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(ur(c.formMethod))return{path:n,submission:c};let f=ro(n);return t&&f.search&&Ac(f.search)&&s.append("index",""),f.search="?"+s,{path:no(f),submission:c}}function E2(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function _g(e,t,n,r,o,i,a,l,s,u,c,f,b,y,v,d){let p=d?Wn(d[1])?d[1].error:d[1].data:void 0,h=e.createURL(t.location),g=e.createURL(o),m=d&&Wn(d[1])?d[0]:void 0,E=m?E2(n,m):n,x=d?d[1].statusCode:void 0,A=a&&x&&x>=400,T=E.filter((O,M)=>{let{route:B}=O;if(B.lazy)return!0;if(B.loader==null)return!1;if(i)return typeof B.loader!="function"||B.loader.hydrate?!0:t.loaderData[B.id]===void 0&&(!t.errors||t.errors[B.id]===void 0);if(x2(t.loaderData,t.matches[M],O)||s.some(X=>X===O.route.id))return!0;let U=t.matches[M],G=O;return Rg(O,It({currentUrl:h,currentParams:U.params,nextUrl:g,nextParams:G.params},r,{actionResult:p,actionStatus:x,defaultShouldRevalidate:A?!1:l||h.pathname+h.search===g.pathname+g.search||h.search!==g.search||Og(U,G)}))}),C=[];return f.forEach((O,M)=>{if(i||!n.some(q=>q.route.id===O.routeId)||c.has(M))return;let B=Go(y,O.path,v);if(!B){C.push({key:M,routeId:O.routeId,path:O.path,matches:null,match:null,controller:null});return}let U=t.fetchers.get(M),G=Sa(B,O.path),X=!1;b.has(M)?X=!1:u.has(M)?(u.delete(M),X=!0):U&&U.state!=="idle"&&U.data===void 0?X=l:X=Rg(G,It({currentUrl:h,currentParams:t.matches[t.matches.length-1].params,nextUrl:g,nextParams:n[n.length-1].params},r,{actionResult:p,actionStatus:x,defaultShouldRevalidate:A?!1:l})),X&&C.push({key:M,routeId:O.routeId,path:O.path,matches:B,match:G,controller:new AbortController})}),[T,C]}function x2(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function Og(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Rg(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function C2(e,t,n,r,o,i,a,l){let s=[t,...n.map(u=>u.route.id)].join("-");try{let u=a.get(s);u||(u=e({path:t,matches:n,patch:(c,f)=>{l.aborted||Ng(c,f,r,o,i)}}),a.set(s,u)),u&&N2(u)&&await u}finally{a.delete(s)}}function Ng(e,t,n,r,o){if(e){var i;let a=r[e];Oe(a,"No route found to patch children into: routeId = "+e);let l=wa(t,o,[e,"patch",String(((i=a.children)==null?void 0:i.length)||"0")],r);a.children?a.children.push(...l):a.children=l}else{let a=wa(t,o,["patch",String(n.length||"0")],r);n.push(...a)}}async function w2(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];Oe(o,"No route found in manifest");let i={};for(let a in r){let s=o[a]!==void 0&&a!=="hasErrorBoundary";Xt(!s,'Route "'+o.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!s&&!XI.has(a)&&(i[a]=r[a])}Object.assign(o,i),Object.assign(o,It({},t(o),{lazy:void 0}))}async function I2(e){let{matches:t}=e,n=t.filter(o=>o.shouldLoad);return(await Promise.all(n.map(o=>o.resolve()))).reduce((o,i,a)=>Object.assign(o,{[n[a].route.id]:i}),{})}async function S2(e,t,n,r,o,i,a,l,s,u){let c=i.map(y=>y.route.lazy?w2(y.route,s,l):void 0),f=i.map((y,v)=>{let d=c[v],p=o.some(g=>g.route.id===y.route.id);return It({},y,{shouldLoad:p,resolve:async g=>(g&&r.method==="GET"&&(y.route.lazy||y.route.loader)&&(p=!0),p?T2(t,r,y,d,g,u):Promise.resolve({type:gt.data,result:void 0}))})}),b=await e({matches:f,request:r,params:i[0].params,fetcherKey:a,context:u});try{await Promise.all(c)}catch{}return b}async function T2(e,t,n,r,o,i){let a,l,s=u=>{let c,f=new Promise((v,d)=>c=d);l=()=>c(),t.signal.addEventListener("abort",l);let b=v=>typeof u!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):u({request:t,params:n.params,context:i},...v!==void 0?[v]:[]),y=(async()=>{try{return{type:"data",result:await(o?o(d=>b(d)):b())}}catch(v){return{type:"error",result:v}}})();return Promise.race([y,f])};try{let u=n.route[e];if(r)if(u){let c,[f]=await Promise.all([s(u).catch(b=>{c=b}),r]);if(c!==void 0)throw c;a=f}else if(await r,u=n.route[e],u)a=await s(u);else if(e==="action"){let c=new URL(t.url),f=c.pathname+c.search;throw bn(405,{method:t.method,pathname:f,routeId:n.route.id})}else return{type:gt.data,result:void 0};else if(u)a=await s(u);else{let c=new URL(t.url),f=c.pathname+c.search;throw bn(404,{pathname:f})}Oe(a.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(u){return{type:gt.error,result:u}}finally{l&&t.signal.removeEventListener("abort",l)}return a}async function A2(e){let{result:t,type:n}=e;if(Vg(t)){let u;try{let c=t.headers.get("Content-Type");c&&/\bapplication\/json\b/.test(c)?t.body==null?u=null:u=await t.json():u=await t.text()}catch(c){return{type:gt.error,error:c}}return n===gt.error?{type:gt.error,error:new al(t.status,t.statusText,u),statusCode:t.status,headers:t.headers}:{type:gt.data,data:u,statusCode:t.status,headers:t.headers}}if(n===gt.error){if(jg(t)){var r;if(t.data instanceof Error){var o;return{type:gt.error,error:t.data,statusCode:(o=t.init)==null?void 0:o.status}}t=new al(((r=t.init)==null?void 0:r.status)||500,void 0,t.data)}return{type:gt.error,error:t,statusCode:sl(t)?t.status:void 0}}if(P2(t)){var i,a;return{type:gt.deferred,deferredData:t,statusCode:(i=t.init)==null?void 0:i.status,headers:((a=t.init)==null?void 0:a.headers)&&new Headers(t.init.headers)}}if(jg(t)){var l,s;return{type:gt.data,data:t.data,statusCode:(l=t.init)==null?void 0:l.status,headers:(s=t.init)!=null&&s.headers?new Headers(t.init.headers):void 0}}return{type:gt.data,data:t}}function _2(e,t,n,r,o,i){let a=e.headers.get("Location");if(Oe(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!wc.test(a)){let l=r.slice(0,r.findIndex(s=>s.route.id===n)+1);a=Ic(new URL(t.url),l,o,!0,a,i),e.headers.set("Location",a)}return e}function Dg(e,t,n){if(wc.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),i=lr(o.pathname,n)!=null;if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function bi(e,t,n,r){let o=e.createURL(Bg(t)).toString(),i={signal:n};if(r&&ur(r.formMethod)){let{formMethod:a,formEncType:l}=r;i.method=a.toUpperCase(),l==="application/json"?(i.headers=new Headers({"Content-Type":l}),i.body=JSON.stringify(r.json)):l==="text/plain"?i.body=r.text:l==="application/x-www-form-urlencoded"&&r.formData?i.body=Sc(r.formData):i.body=r.formData}return new Request(o,i)}function Sc(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Pg(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function O2(e,t,n,r,o){let i={},a=null,l,s=!1,u={},c=n&&Wn(n[1])?n[1].error:void 0;return e.forEach(f=>{if(!(f.route.id in t))return;let b=f.route.id,y=t[b];if(Oe(!Wo(y),"Cannot handle redirect results in processLoaderData"),Wn(y)){let v=y.error;c!==void 0&&(v=c,c=void 0),a=a||{};{let d=vi(e,b);a[d.route.id]==null&&(a[d.route.id]=v)}i[b]=void 0,s||(s=!0,l=sl(y.error)?y.error.status:500),y.headers&&(u[b]=y.headers)}else oo(y)?(r.set(b,y.deferredData),i[b]=y.deferredData.data,y.statusCode!=null&&y.statusCode!==200&&!s&&(l=y.statusCode),y.headers&&(u[b]=y.headers)):(i[b]=y.data,y.statusCode&&y.statusCode!==200&&!s&&(l=y.statusCode),y.headers&&(u[b]=y.headers))}),c!==void 0&&n&&(a={[n[0]]:c},i[n[0]]=void 0),{loaderData:i,errors:a,statusCode:l||200,loaderHeaders:u}}function kg(e,t,n,r,o,i,a,l){let{loaderData:s,errors:u}=O2(t,r,o,l);return i.forEach(c=>{let{key:f,match:b,controller:y}=c,v=a[f];if(Oe(v,"Did not find corresponding fetcher result"),!(y&&y.signal.aborted))if(Wn(v)){let d=vi(e.matches,b==null?void 0:b.route.id);u&&u[d.route.id]||(u=It({},u,{[d.route.id]:v.error})),e.fetchers.delete(f)}else if(Wo(v))Oe(!1,"Unhandled fetcher revalidation redirect");else if(oo(v))Oe(!1,"Unhandled fetcher deferred data");else{let d=io(v.data);e.fetchers.set(f,d)}}),{loaderData:s,errors:u}}function Lg(e,t,n,r){let o=It({},t);for(let i of n){let a=i.route.id;if(t.hasOwnProperty(a)?t[a]!==void 0&&(o[a]=t[a]):e[a]!==void 0&&i.route.loader&&(o[a]=e[a]),r&&r.hasOwnProperty(a))break}return o}function Fg(e){return e?Wn(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function vi(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Mg(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function bn(e,t){let{pathname:n,routeId:r,method:o,type:i,message:a}=t===void 0?{}:t,l="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(l="Bad Request",i==="route-discovery"?s='Unable to match URL "'+n+'" - the `unstable_patchRoutesOnNavigation()` '+(`function threw the following error:
|
|
78
|
+
`+a):o&&n&&r?s="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?s="defer() is not supported in actions":i==="invalid-body"&&(s="Unable to encode submission body")):e===403?(l="Forbidden",s='Route "'+r+'" does not match URL "'+n+'"'):e===404?(l="Not Found",s='No route matches URL "'+n+'"'):e===405&&(l="Method Not Allowed",o&&n&&r?s="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(s='Invalid request method "'+o.toUpperCase()+'"')),new al(e||500,l,new Error(s),!0)}function ll(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,o]=t[n];if(Wo(o))return{key:r,result:o}}}function Bg(e){let t=typeof e=="string"?ro(e):e;return no(It({},t,{hash:""}))}function R2(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function N2(e){return typeof e=="object"&&e!=null&&"then"in e}function D2(e){return Vg(e.result)&&h2.has(e.result.status)}function oo(e){return e.type===gt.deferred}function Wn(e){return e.type===gt.error}function Wo(e){return(e&&e.type)===gt.redirect}function jg(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function P2(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function Vg(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function k2(e){return p2.has(e.toLowerCase())}function ur(e){return d2.has(e.toLowerCase())}async function L2(e,t,n,r,o){let i=Object.entries(t);for(let a=0;a<i.length;a++){let[l,s]=i[a],u=e.find(b=>(b==null?void 0:b.route.id)===l);if(!u)continue;let c=r.find(b=>b.route.id===u.route.id),f=c!=null&&!Og(c,u)&&(o&&o[u.route.id])!==void 0;oo(s)&&f&&await Tc(s,n,!1).then(b=>{b&&(t[l]=b)})}}async function F2(e,t,n){for(let r=0;r<n.length;r++){let{key:o,routeId:i,controller:a}=n[r],l=t[o];e.find(u=>(u==null?void 0:u.route.id)===i)&&oo(l)&&(Oe(a,"Expected an AbortController for revalidating fetcher deferred result"),await Tc(l,a.signal,!0).then(u=>{u&&(t[o]=u)}))}}async function Tc(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:gt.data,data:e.deferredData.unwrappedData}}catch(o){return{type:gt.error,error:o}}return{type:gt.data,data:e.deferredData.data}}}function Ac(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Sa(e,t){let n=typeof t=="string"?ro(t).search:t.search;if(e[e.length-1].route.index&&Ac(n||""))return e[e.length-1];let r=Ig(e);return r[r.length-1]}function Gg(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:a}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}}}function _c(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function M2(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Ta(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function B2(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function io(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function j2(e,t){try{let n=e.sessionStorage.getItem(Tg);if(n){let r=JSON.parse(n);for(let[o,i]of Object.entries(r||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function V2(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(Tg,JSON.stringify(n))}catch(r){Xt(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/**
|
|
79
79
|
* React Router v6.26.2
|
|
80
80
|
*
|
|
81
81
|
* Copyright (c) Remix Software Inc.
|
|
@@ -84,9 +84,9 @@ Take a look at the reducer(s) handling this action type: ${y.type}.
|
|
|
84
84
|
* LICENSE.md file in the root directory of this source tree.
|
|
85
85
|
*
|
|
86
86
|
* @license MIT
|
|
87
|
-
*/function ul(){return ul=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ul.apply(this,arguments)}const yi=P.createContext(null);process.env.NODE_ENV!=="production"&&(yi.displayName="DataRouter");const cl=P.createContext(null);process.env.NODE_ENV!=="production"&&(cl.displayName="DataRouterState");const G2=P.createContext(null);process.env.NODE_ENV!=="production"&&(G2.displayName="Await");const cr=P.createContext(null);process.env.NODE_ENV!=="production"&&(cr.displayName="Navigation");const dl=P.createContext(null);process.env.NODE_ENV!=="production"&&(dl.displayName="Location");const dr=P.createContext({outlet:null,matches:[],isDataRoute:!1});process.env.NODE_ENV!=="production"&&(dr.displayName="Route");const Oc=P.createContext(null);process.env.NODE_ENV!=="production"&&(Oc.displayName="RouteError");function W2(e,t){let{relative:n}=t===void 0?{}:t;Aa()||(process.env.NODE_ENV!=="production"?Oe(!1,"useHref() may be used only in the context of a <Router> component."):Oe(!1));let{basename:r,navigator:o}=P.useContext(cr),{hash:i,pathname:a,search:
|
|
87
|
+
*/function ul(){return ul=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ul.apply(this,arguments)}const yi=P.createContext(null);process.env.NODE_ENV!=="production"&&(yi.displayName="DataRouter");const cl=P.createContext(null);process.env.NODE_ENV!=="production"&&(cl.displayName="DataRouterState");const G2=P.createContext(null);process.env.NODE_ENV!=="production"&&(G2.displayName="Await");const cr=P.createContext(null);process.env.NODE_ENV!=="production"&&(cr.displayName="Navigation");const dl=P.createContext(null);process.env.NODE_ENV!=="production"&&(dl.displayName="Location");const dr=P.createContext({outlet:null,matches:[],isDataRoute:!1});process.env.NODE_ENV!=="production"&&(dr.displayName="Route");const Oc=P.createContext(null);process.env.NODE_ENV!=="production"&&(Oc.displayName="RouteError");function W2(e,t){let{relative:n}=t===void 0?{}:t;Aa()||(process.env.NODE_ENV!=="production"?Oe(!1,"useHref() may be used only in the context of a <Router> component."):Oe(!1));let{basename:r,navigator:o}=P.useContext(cr),{hash:i,pathname:a,search:l}=_a(e,{relative:n}),s=a;return r!=="/"&&(s=a==="/"?r:Er([r,a])),o.createHref({pathname:s,search:l,hash:i})}function Aa(){return P.useContext(dl)!=null}function ao(){return Aa()||(process.env.NODE_ENV!=="production"?Oe(!1,"useLocation() may be used only in the context of a <Router> component."):Oe(!1)),P.useContext(dl).location}const Wg="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Hg(e){P.useContext(cr).static||P.useLayoutEffect(e)}function so(){let{isDataRoute:e}=P.useContext(dr);return e?rS():H2()}function H2(){Aa()||(process.env.NODE_ENV!=="production"?Oe(!1,"useNavigate() may be used only in the context of a <Router> component."):Oe(!1));let e=P.useContext(yi),{basename:t,future:n,navigator:r}=P.useContext(cr),{matches:o}=P.useContext(dr),{pathname:i}=ao(),a=JSON.stringify(Ec(o,n.v7_relativeSplatPath)),l=P.useRef(!1);return Hg(()=>{l.current=!0}),P.useCallback(function(u,c){if(c===void 0&&(c={}),process.env.NODE_ENV!=="production"&&Xt(l.current,Wg),!l.current)return;if(typeof u=="number"){r.go(u);return}let f=xc(u,JSON.parse(a),i,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Er([t,f.pathname])),(c.replace?r.replace:r.push)(f,c.state,c)},[t,r,a,i,e])}const z2=P.createContext(null);function X2(e){let t=P.useContext(dr).outlet;return t&&P.createElement(z2.Provider,{value:e},t)}function zg(){let{matches:e}=P.useContext(dr),t=e[e.length-1];return t?t.params:{}}function _a(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=P.useContext(cr),{matches:o}=P.useContext(dr),{pathname:i}=ao(),a=JSON.stringify(Ec(o,r.v7_relativeSplatPath));return P.useMemo(()=>xc(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function Z2(e,t,n,r){Aa()||(process.env.NODE_ENV!=="production"?Oe(!1,"useRoutes() may be used only in the context of a <Router> component."):Oe(!1));let{navigator:o}=P.useContext(cr),{matches:i}=P.useContext(dr),a=i[i.length-1],l=a?a.params:{},s=a?a.pathname:"/",u=a?a.pathnameBase:"/",c=a&&a.route;if(process.env.NODE_ENV!=="production"){let h=c&&c.path||"";Yg(s,!c||h.endsWith("*"),"You rendered descendant <Routes> (or called `useRoutes()`) at "+('"'+s+'" (under <Route path="'+h+'">) but the ')+`parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
88
88
|
|
|
89
|
-
`+('Please change the parent <Route path="'+h+'"> to <Route ')+('path="'+(h==="/"?"*":h+"/*")+'">.'))}let
|
|
89
|
+
`+('Please change the parent <Route path="'+h+'"> to <Route ')+('path="'+(h==="/"?"*":h+"/*")+'">.'))}let f=ao(),b;b=f;let y=b.pathname||"/",v=y;if(u!=="/"){let h=u.replace(/^\//,"").split("/");v="/"+y.replace(/^\//,"").split("/").slice(h.length).join("/")}let d=Go(e,{pathname:v});return process.env.NODE_ENV!=="production"&&(process.env.NODE_ENV!=="production"&&Xt(c||d!=null,'No routes matched location "'+b.pathname+b.search+b.hash+'" '),process.env.NODE_ENV!=="production"&&Xt(d==null||d[d.length-1].route.element!==void 0||d[d.length-1].route.Component!==void 0||d[d.length-1].route.lazy!==void 0,'Matched leaf route at location "'+b.pathname+b.search+b.hash+'" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.')),Q2(d&&d.map(h=>Object.assign({},h,{params:Object.assign({},l,h.params),pathname:Er([u,o.encodeLocation?o.encodeLocation(h.pathname).pathname:h.pathname]),pathnameBase:h.pathnameBase==="/"?u:Er([u,o.encodeLocation?o.encodeLocation(h.pathnameBase).pathname:h.pathnameBase])})),i,n,r)}function Y2(){let e=nS(),t=sl(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)",o={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},a=null;return process.env.NODE_ENV!=="production"&&(console.error("Error handled by React Router default ErrorBoundary:",e),a=P.createElement(P.Fragment,null,P.createElement("p",null,"💿 Hey developer 👋"),P.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",P.createElement("code",{style:i},"ErrorBoundary")," or"," ",P.createElement("code",{style:i},"errorElement")," prop on your route."))),P.createElement(P.Fragment,null,P.createElement("h2",null,"Unexpected Application Error!"),P.createElement("h3",{style:{fontStyle:"italic"}},t),n?P.createElement("pre",{style:o},n):null,a)}const U2=P.createElement(Y2,null);class q2 extends P.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?P.createElement(dr.Provider,{value:this.props.routeContext},P.createElement(Oc.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function J2(e){let{routeContext:t,match:n,children:r}=e,o=P.useContext(yi);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),P.createElement(dr.Provider,{value:t},r)}function Q2(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let c=a.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id])!==void 0);c>=0||(process.env.NODE_ENV!=="production"?Oe(!1,"Could not find a matching route for errors on route IDs: "+Object.keys(l).join(",")):Oe(!1)),a=a.slice(0,Math.min(a.length,c+1))}let s=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c<a.length;c++){let f=a[c];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=c),f.route.id){let{loaderData:b,errors:y}=n,v=f.route.loader&&b[f.route.id]===void 0&&(!y||y[f.route.id]===void 0);if(f.route.lazy||v){s=!0,u>=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((c,f,b)=>{let y,v=!1,d=null,p=null;n&&(y=l&&f.route.id?l[f.route.id]:void 0,d=f.route.errorElement||U2,s&&(u<0&&b===0?(Yg("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),v=!0,p=null):u===b&&(v=!0,p=f.route.hydrateFallbackElement||null)));let h=t.concat(a.slice(0,b+1)),g=()=>{let m;return y?m=d:v?m=p:f.route.Component?m=P.createElement(f.route.Component,null):f.route.element?m=f.route.element:m=c,P.createElement(J2,{match:f,routeContext:{outlet:c,matches:h,isDataRoute:n!=null},children:m})};return n&&(f.route.ErrorBoundary||f.route.errorElement||b===0)?P.createElement(q2,{location:n.location,revalidation:n.revalidation,component:d,error:y,children:g(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):g()},null)}var Xg=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Xg||{}),Oa=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}(Oa||{});function Rc(e){return e+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function $2(e){let t=P.useContext(yi);return t||(process.env.NODE_ENV!=="production"?Oe(!1,Rc(e)):Oe(!1)),t}function K2(e){let t=P.useContext(cl);return t||(process.env.NODE_ENV!=="production"?Oe(!1,Rc(e)):Oe(!1)),t}function eS(e){let t=P.useContext(dr);return t||(process.env.NODE_ENV!=="production"?Oe(!1,Rc(e)):Oe(!1)),t}function Nc(e){let t=eS(e),n=t.matches[t.matches.length-1];return n.route.id||(process.env.NODE_ENV!=="production"?Oe(!1,e+' can only be used on routes that contain a unique "id"'):Oe(!1)),n.route.id}function tS(){return Nc(Oa.UseRouteId)}function nS(){var e;let t=P.useContext(Oc),n=K2(Oa.UseRouteError),r=Nc(Oa.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function rS(){let{router:e}=$2(Xg.UseNavigateStable),t=Nc(Oa.UseNavigateStable),n=P.useRef(!1);return Hg(()=>{n.current=!0}),P.useCallback(function(o,i){i===void 0&&(i={}),process.env.NODE_ENV!=="production"&&Xt(n.current,Wg),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,ul({fromRouteId:t},i)))},[e,t])}const Zg={};function Yg(e,t,n){!t&&!Zg[e]&&(Zg[e]=!0,process.env.NODE_ENV!=="production"&&Xt(!1,n))}function oS(e){return X2(e.context)}function iS(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Mt.Pop,navigator:i,static:a=!1,future:l}=e;Aa()&&(process.env.NODE_ENV!=="production"?Oe(!1,"You cannot render a <Router> inside another <Router>. You should never have more than one in your app."):Oe(!1));let s=t.replace(/^\/*/,"/"),u=P.useMemo(()=>({basename:s,navigator:i,static:a,future:ul({v7_relativeSplatPath:!1},l)}),[s,l,i,a]);typeof r=="string"&&(r=ro(r));let{pathname:c="/",search:f="",hash:b="",state:y=null,key:v="default"}=r,d=P.useMemo(()=>{let p=lr(c,s);return p==null?null:{location:{pathname:p,search:f,hash:b,state:y,key:v},navigationType:o}},[s,c,f,b,y,v,o]);return process.env.NODE_ENV!=="production"&&Xt(d!=null,'<Router basename="'+s+'"> is not able to match the URL '+('"'+c+f+b+'" because it does not start with the ')+"basename, so the <Router> won't render anything."),d==null?null:P.createElement(cr.Provider,{value:u},P.createElement(dl.Provider,{children:n,value:d}))}new Promise(()=>{});function aS(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(process.env.NODE_ENV!=="production"&&e.element&&process.env.NODE_ENV!=="production"&&Xt(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:P.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(process.env.NODE_ENV!=="production"&&e.hydrateFallbackElement&&process.env.NODE_ENV!=="production"&&Xt(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:P.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(process.env.NODE_ENV!=="production"&&e.errorElement&&process.env.NODE_ENV!=="production"&&Xt(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:P.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}/**
|
|
90
90
|
* React Router DOM v6.26.2
|
|
91
91
|
*
|
|
92
92
|
* Copyright (c) Remix Software Inc.
|
|
@@ -95,7 +95,7 @@ Take a look at the reducer(s) handling this action type: ${y.type}.
|
|
|
95
95
|
* LICENSE.md file in the root directory of this source tree.
|
|
96
96
|
*
|
|
97
97
|
* @license MIT
|
|
98
|
-
*/function lo(){return lo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lo.apply(this,arguments)}function Dc(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}const fl="get",pl="application/x-www-form-urlencoded";function hl(e){return e!=null&&typeof e.tagName=="string"}function sS(e){return hl(e)&&e.tagName.toLowerCase()==="button"}function lS(e){return hl(e)&&e.tagName.toLowerCase()==="form"}function uS(e){return hl(e)&&e.tagName.toLowerCase()==="input"}function cS(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function dS(e,t){return e.button===0&&(!t||t==="_self")&&!cS(e)}function Pc(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function fS(e,t){let n=Pc(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(i=>{n.append(o,i)})}),n}let gl=null;function pS(){if(gl===null)try{new FormData(document.createElement("form"),0),gl=!1}catch{gl=!0}return gl}const hS=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function kc(e){return e!=null&&!hS.has(e)?(process.env.NODE_ENV!=="production"&&Xt(!1,'"'+e+'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` '+('and will default to "'+pl+'"')),null):e}function gS(e,t){let n,r,o,i,a;if(lS(e)){let s=e.getAttribute("action");r=s?lr(s,t):null,n=e.getAttribute("method")||fl,o=kc(e.getAttribute("enctype"))||pl,i=new FormData(e)}else if(sS(e)||uS(e)&&(e.type==="submit"||e.type==="image")){let s=e.form;if(s==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||s.getAttribute("action");if(r=l?lr(l,t):null,n=e.getAttribute("formmethod")||s.getAttribute("method")||fl,o=kc(e.getAttribute("formenctype"))||kc(s.getAttribute("enctype"))||pl,i=new FormData(s,e),!pS()){let{name:u,type:c,value:d}=e;if(c==="image"){let v=u?u+".":"";i.append(v+"x","0"),i.append(v+"y","0")}else u&&i.append(u,d)}}else{if(hl(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=fl,r=null,o=pl,a=e}return i&&o==="text/plain"&&(a=i,i=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:i,body:a}}const mS=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],bS=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],vS=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","unstable_viewTransition"],yS="6";try{window.__reactRouterVersion=yS}catch{}function ES(e,t){return v2({basename:t==null?void 0:t.basename,future:lo({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:WI({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||xS(),routes:e,mapRouteProperties:aS,unstable_dataStrategy:t==null?void 0:t.unstable_dataStrategy,unstable_patchRoutesOnNavigation:t==null?void 0:t.unstable_patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function xS(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=lo({},t,{errors:CS(t.errors)})),t}function CS(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new al(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let i=window[o.__subType];if(typeof i=="function")try{let a=new i(o.message);a.stack="",n[r]=a}catch{}}if(n[r]==null){let i=new Error(o.message);i.stack="",n[r]=i}}else n[r]=o;return n}const Lc=P.createContext({isTransitioning:!1});process.env.NODE_ENV!=="production"&&(Lc.displayName="ViewTransition");const Ug=P.createContext(new Map);process.env.NODE_ENV!=="production"&&(Ug.displayName="Fetchers");const qg=P["startTransition"],Jg=Oy["flushSync"];function wS(e){qg?qg(e):e()}function Ra(e){Jg?Jg(e):e()}class IS{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function SS(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=P.useState(n.state),[a,s]=P.useState(),[l,u]=P.useState({isTransitioning:!1}),[c,d]=P.useState(),[v,y]=P.useState(),[g,f]=P.useState(),p=P.useRef(new Map),{v7_startTransition:h}=r||{},m=P.useCallback(C=>{h?wS(C):C()},[h]),b=P.useCallback((C,O)=>{let{deletedFetchers:B,unstable_flushSync:M,unstable_viewTransitionOpts:Q}=O;B.forEach(W=>p.current.delete(W)),C.fetchers.forEach((W,q)=>{W.data!==void 0&&p.current.set(q,W.data)});let G=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!Q||G){M?Ra(()=>i(C)):m(()=>i(C));return}if(M){Ra(()=>{v&&(c&&c.resolve(),v.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:Q.currentLocation,nextLocation:Q.nextLocation})});let W=n.window.document.startViewTransition(()=>{Ra(()=>i(C))});W.finished.finally(()=>{Ra(()=>{d(void 0),y(void 0),s(void 0),u({isTransitioning:!1})})}),Ra(()=>y(W));return}v?(c&&c.resolve(),v.skipTransition(),f({state:C,currentLocation:Q.currentLocation,nextLocation:Q.nextLocation})):(s(C),u({isTransitioning:!0,flushSync:!1,currentLocation:Q.currentLocation,nextLocation:Q.nextLocation}))},[n.window,v,c,p,m]);P.useLayoutEffect(()=>n.subscribe(b),[n,b]),P.useEffect(()=>{l.isTransitioning&&!l.flushSync&&d(new IS)},[l]),P.useEffect(()=>{if(c&&a&&n.window){let C=a,O=c.promise,B=n.window.document.startViewTransition(async()=>{m(()=>i(C)),await O});B.finished.finally(()=>{d(void 0),y(void 0),s(void 0),u({isTransitioning:!1})}),y(B)}},[m,a,c,n.window]),P.useEffect(()=>{c&&a&&o.location.key===a.location.key&&c.resolve()},[c,v,o.location,a]),P.useEffect(()=>{!l.isTransitioning&&g&&(s(g.state),u({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),f(void 0))},[l.isTransitioning,g]),P.useEffect(()=>{process.env.NODE_ENV!=="production"&&Xt(t==null||!n.future.v7_partialHydration,"`<RouterProvider fallbackElement>` is deprecated when using `v7_partialHydration`, use a `HydrateFallback` component instead")},[]);let E=P.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:C=>n.navigate(C),push:(C,O,B)=>n.navigate(C,{state:O,preventScrollReset:B==null?void 0:B.preventScrollReset}),replace:(C,O,B)=>n.navigate(C,{replace:!0,state:O,preventScrollReset:B==null?void 0:B.preventScrollReset})}),[n]),x=n.basename||"/",T=P.useMemo(()=>({router:n,navigator:E,static:!1,basename:x}),[n,E,x]),A=P.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return P.createElement(P.Fragment,null,P.createElement(yi.Provider,{value:T},P.createElement(cl.Provider,{value:o},P.createElement(Ug.Provider,{value:p.current},P.createElement(Lc.Provider,{value:l},P.createElement(iS,{basename:x,location:o.location,navigationType:o.historyAction,navigator:E,future:A},o.initialized||n.future.v7_partialHydration?P.createElement(TS,{routes:n.routes,future:n.future,state:o}):t))))),null)}const TS=P.memo(AS);function AS(e){let{routes:t,future:n,state:r}=e;return Z2(t,void 0,r,n)}process.env.NODE_ENV;const _S=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",OS=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Qg=P.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:s,target:l,to:u,preventScrollReset:c,unstable_viewTransition:d}=t,v=Dc(t,mS),{basename:y}=P.useContext(cr),g,f=!1;if(typeof u=="string"&&OS.test(u)&&(g=u,_S))try{let b=new URL(window.location.href),E=u.startsWith("//")?new URL(b.protocol+u):new URL(u),x=lr(E.pathname,y);E.origin===b.origin&&x!=null?u=x+E.search+E.hash:f=!0}catch{process.env.NODE_ENV!=="production"&&Xt(!1,'<Link to="'+u+'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.')}let p=W2(u,{relative:o}),h=PS(u,{replace:a,state:s,target:l,preventScrollReset:c,relative:o,unstable_viewTransition:d});function m(b){r&&r(b),b.defaultPrevented||h(b)}return P.createElement("a",lo({},v,{href:g||p,onClick:f||i?r:m,ref:n,target:l}))});process.env.NODE_ENV!=="production"&&(Qg.displayName="Link");const RS=P.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:a=!1,style:s,to:l,unstable_viewTransition:u,children:c}=t,d=Dc(t,bS),v=_a(l,{relative:d.relative}),y=ao(),g=P.useContext(cl),{navigator:f,basename:p}=P.useContext(cr),h=g!=null&&jS(v)&&u===!0,m=f.encodeLocation?f.encodeLocation(v).pathname:v.pathname,b=y.pathname,E=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;o||(b=b.toLowerCase(),E=E?E.toLowerCase():null,m=m.toLowerCase()),E&&p&&(E=lr(E,p)||E);const x=m!=="/"&&m.endsWith("/")?m.length-1:m.length;let T=b===m||!a&&b.startsWith(m)&&b.charAt(x)==="/",A=E!=null&&(E===m||!a&&E.startsWith(m)&&E.charAt(m.length)==="/"),C={isActive:T,isPending:A,isTransitioning:h},O=T?r:void 0,B;typeof i=="function"?B=i(C):B=[i,T?"active":null,A?"pending":null,h?"transitioning":null].filter(Boolean).join(" ");let M=typeof s=="function"?s(C):s;return P.createElement(Qg,lo({},d,{"aria-current":O,className:B,ref:n,style:M,to:l,unstable_viewTransition:u}),typeof c=="function"?c(C):c)});process.env.NODE_ENV!=="production"&&(RS.displayName="NavLink");const NS=P.forwardRef((e,t)=>{let{fetcherKey:n,navigate:r,reloadDocument:o,replace:i,state:a,method:s=fl,action:l,onSubmit:u,relative:c,preventScrollReset:d,unstable_viewTransition:v}=e,y=Dc(e,vS),g=MS(),f=BS(l,{relative:c}),p=s.toLowerCase()==="get"?"get":"post",h=m=>{if(u&&u(m),m.defaultPrevented)return;m.preventDefault();let b=m.nativeEvent.submitter,E=(b==null?void 0:b.getAttribute("formmethod"))||s;g(b||m.currentTarget,{fetcherKey:n,method:E,navigate:r,replace:i,state:a,relative:c,preventScrollReset:d,unstable_viewTransition:v})};return P.createElement("form",lo({ref:t,method:p,action:f,onSubmit:o?u:h},y))});process.env.NODE_ENV!=="production"&&(NS.displayName="Form"),process.env.NODE_ENV;var ml;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ml||(ml={}));var $g;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})($g||($g={}));function DS(e){return e+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function Kg(e){let t=P.useContext(yi);return t||(process.env.NODE_ENV!=="production"?Oe(!1,DS(e)):Oe(!1)),t}function PS(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:s}=t===void 0?{}:t,l=so(),u=ao(),c=_a(e,{relative:a});return P.useCallback(d=>{if(dS(d,n)){d.preventDefault();let v=r!==void 0?r:no(u)===no(c);l(e,{replace:v,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:s})}},[u,l,c,r,o,n,e,i,a,s])}function em(e){process.env.NODE_ENV!=="production"&&Xt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=P.useRef(Pc(e)),n=P.useRef(!1),r=ao(),o=P.useMemo(()=>fS(r.search,n.current?null:t.current),[r.search]),i=so(),a=P.useCallback((s,l)=>{const u=Pc(typeof s=="function"?s(o):s);n.current=!0,i("?"+u,l)},[i,o]);return[o,a]}function kS(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}let LS=0,FS=()=>"__"+String(++LS)+"__";function MS(){let{router:e}=Kg(ml.UseSubmit),{basename:t}=P.useContext(cr),n=tS();return P.useCallback(function(r,o){o===void 0&&(o={}),kS();let{action:i,method:a,encType:s,formData:l,body:u}=gS(r,t);if(o.navigate===!1){let c=o.fetcherKey||FS();e.fetch(c,n,o.action||i,{preventScrollReset:o.preventScrollReset,formData:l,body:u,formMethod:o.method||a,formEncType:o.encType||s,unstable_flushSync:o.unstable_flushSync})}else e.navigate(o.action||i,{preventScrollReset:o.preventScrollReset,formData:l,body:u,formMethod:o.method||a,formEncType:o.encType||s,replace:o.replace,state:o.state,fromRouteId:n,unstable_flushSync:o.unstable_flushSync,unstable_viewTransition:o.unstable_viewTransition})},[e,t,n])}function BS(e,t){let{relative:n}=t===void 0?{}:t,{basename:r}=P.useContext(cr),o=P.useContext(dr);o||(process.env.NODE_ENV!=="production"?Oe(!1,"useFormAction must be used inside a RouteContext"):Oe(!1));let[i]=o.matches.slice(-1),a=lo({},_a(e||".",{relative:n})),s=ao();if(e==null){a.search=s.search;let l=new URLSearchParams(a.search);l.has("index")&&l.get("index")===""&&(l.delete("index"),a.search=l.toString()?"?"+l.toString():"")}return(!e||e===".")&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(a.pathname=a.pathname==="/"?r:Er([r,a.pathname])),no(a)}function jS(e,t){t===void 0&&(t={});let n=P.useContext(Lc);n==null&&(process.env.NODE_ENV!=="production"?Oe(!1,"`unstable_useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"):Oe(!1));let{basename:r}=Kg(ml.useViewTransitionState),o=_a(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=lr(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=lr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return il(o.pathname,a)!=null||il(o.pathname,i)!=null}const VS=w.styled(w.Stack)`
|
|
98
|
+
*/function lo(){return lo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lo.apply(this,arguments)}function Dc(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}const fl="get",pl="application/x-www-form-urlencoded";function hl(e){return e!=null&&typeof e.tagName=="string"}function sS(e){return hl(e)&&e.tagName.toLowerCase()==="button"}function lS(e){return hl(e)&&e.tagName.toLowerCase()==="form"}function uS(e){return hl(e)&&e.tagName.toLowerCase()==="input"}function cS(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function dS(e,t){return e.button===0&&(!t||t==="_self")&&!cS(e)}function Pc(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function fS(e,t){let n=Pc(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(i=>{n.append(o,i)})}),n}let gl=null;function pS(){if(gl===null)try{new FormData(document.createElement("form"),0),gl=!1}catch{gl=!0}return gl}const hS=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function kc(e){return e!=null&&!hS.has(e)?(process.env.NODE_ENV!=="production"&&Xt(!1,'"'+e+'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` '+('and will default to "'+pl+'"')),null):e}function gS(e,t){let n,r,o,i,a;if(lS(e)){let l=e.getAttribute("action");r=l?lr(l,t):null,n=e.getAttribute("method")||fl,o=kc(e.getAttribute("enctype"))||pl,i=new FormData(e)}else if(sS(e)||uS(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||l.getAttribute("action");if(r=s?lr(s,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||fl,o=kc(e.getAttribute("formenctype"))||kc(l.getAttribute("enctype"))||pl,i=new FormData(l,e),!pS()){let{name:u,type:c,value:f}=e;if(c==="image"){let b=u?u+".":"";i.append(b+"x","0"),i.append(b+"y","0")}else u&&i.append(u,f)}}else{if(hl(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=fl,r=null,o=pl,a=e}return i&&o==="text/plain"&&(a=i,i=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:i,body:a}}const mS=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],bS=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],vS=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","unstable_viewTransition"],yS="6";try{window.__reactRouterVersion=yS}catch{}function ES(e,t){return v2({basename:t==null?void 0:t.basename,future:lo({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:WI({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||xS(),routes:e,mapRouteProperties:aS,unstable_dataStrategy:t==null?void 0:t.unstable_dataStrategy,unstable_patchRoutesOnNavigation:t==null?void 0:t.unstable_patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function xS(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=lo({},t,{errors:CS(t.errors)})),t}function CS(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new al(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let i=window[o.__subType];if(typeof i=="function")try{let a=new i(o.message);a.stack="",n[r]=a}catch{}}if(n[r]==null){let i=new Error(o.message);i.stack="",n[r]=i}}else n[r]=o;return n}const Lc=P.createContext({isTransitioning:!1});process.env.NODE_ENV!=="production"&&(Lc.displayName="ViewTransition");const Ug=P.createContext(new Map);process.env.NODE_ENV!=="production"&&(Ug.displayName="Fetchers");const qg=P["startTransition"],Jg=Oy["flushSync"];function wS(e){qg?qg(e):e()}function Ra(e){Jg?Jg(e):e()}class IS{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function SS(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=P.useState(n.state),[a,l]=P.useState(),[s,u]=P.useState({isTransitioning:!1}),[c,f]=P.useState(),[b,y]=P.useState(),[v,d]=P.useState(),p=P.useRef(new Map),{v7_startTransition:h}=r||{},g=P.useCallback(C=>{h?wS(C):C()},[h]),m=P.useCallback((C,O)=>{let{deletedFetchers:M,unstable_flushSync:B,unstable_viewTransitionOpts:U}=O;M.forEach(X=>p.current.delete(X)),C.fetchers.forEach((X,q)=>{X.data!==void 0&&p.current.set(q,X.data)});let G=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!U||G){B?Ra(()=>i(C)):g(()=>i(C));return}if(B){Ra(()=>{b&&(c&&c.resolve(),b.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:U.currentLocation,nextLocation:U.nextLocation})});let X=n.window.document.startViewTransition(()=>{Ra(()=>i(C))});X.finished.finally(()=>{Ra(()=>{f(void 0),y(void 0),l(void 0),u({isTransitioning:!1})})}),Ra(()=>y(X));return}b?(c&&c.resolve(),b.skipTransition(),d({state:C,currentLocation:U.currentLocation,nextLocation:U.nextLocation})):(l(C),u({isTransitioning:!0,flushSync:!1,currentLocation:U.currentLocation,nextLocation:U.nextLocation}))},[n.window,b,c,p,g]);P.useLayoutEffect(()=>n.subscribe(m),[n,m]),P.useEffect(()=>{s.isTransitioning&&!s.flushSync&&f(new IS)},[s]),P.useEffect(()=>{if(c&&a&&n.window){let C=a,O=c.promise,M=n.window.document.startViewTransition(async()=>{g(()=>i(C)),await O});M.finished.finally(()=>{f(void 0),y(void 0),l(void 0),u({isTransitioning:!1})}),y(M)}},[g,a,c,n.window]),P.useEffect(()=>{c&&a&&o.location.key===a.location.key&&c.resolve()},[c,b,o.location,a]),P.useEffect(()=>{!s.isTransitioning&&v&&(l(v.state),u({isTransitioning:!0,flushSync:!1,currentLocation:v.currentLocation,nextLocation:v.nextLocation}),d(void 0))},[s.isTransitioning,v]),P.useEffect(()=>{process.env.NODE_ENV!=="production"&&Xt(t==null||!n.future.v7_partialHydration,"`<RouterProvider fallbackElement>` is deprecated when using `v7_partialHydration`, use a `HydrateFallback` component instead")},[]);let E=P.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:C=>n.navigate(C),push:(C,O,M)=>n.navigate(C,{state:O,preventScrollReset:M==null?void 0:M.preventScrollReset}),replace:(C,O,M)=>n.navigate(C,{replace:!0,state:O,preventScrollReset:M==null?void 0:M.preventScrollReset})}),[n]),x=n.basename||"/",A=P.useMemo(()=>({router:n,navigator:E,static:!1,basename:x}),[n,E,x]),T=P.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return P.createElement(P.Fragment,null,P.createElement(yi.Provider,{value:A},P.createElement(cl.Provider,{value:o},P.createElement(Ug.Provider,{value:p.current},P.createElement(Lc.Provider,{value:s},P.createElement(iS,{basename:x,location:o.location,navigationType:o.historyAction,navigator:E,future:T},o.initialized||n.future.v7_partialHydration?P.createElement(TS,{routes:n.routes,future:n.future,state:o}):t))))),null)}const TS=P.memo(AS);function AS(e){let{routes:t,future:n,state:r}=e;return Z2(t,void 0,r,n)}process.env.NODE_ENV;const _S=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",OS=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Qg=P.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:l,target:s,to:u,preventScrollReset:c,unstable_viewTransition:f}=t,b=Dc(t,mS),{basename:y}=P.useContext(cr),v,d=!1;if(typeof u=="string"&&OS.test(u)&&(v=u,_S))try{let m=new URL(window.location.href),E=u.startsWith("//")?new URL(m.protocol+u):new URL(u),x=lr(E.pathname,y);E.origin===m.origin&&x!=null?u=x+E.search+E.hash:d=!0}catch{process.env.NODE_ENV!=="production"&&Xt(!1,'<Link to="'+u+'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.')}let p=W2(u,{relative:o}),h=PS(u,{replace:a,state:l,target:s,preventScrollReset:c,relative:o,unstable_viewTransition:f});function g(m){r&&r(m),m.defaultPrevented||h(m)}return P.createElement("a",lo({},b,{href:v||p,onClick:d||i?r:g,ref:n,target:s}))});process.env.NODE_ENV!=="production"&&(Qg.displayName="Link");const RS=P.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:a=!1,style:l,to:s,unstable_viewTransition:u,children:c}=t,f=Dc(t,bS),b=_a(s,{relative:f.relative}),y=ao(),v=P.useContext(cl),{navigator:d,basename:p}=P.useContext(cr),h=v!=null&&jS(b)&&u===!0,g=d.encodeLocation?d.encodeLocation(b).pathname:b.pathname,m=y.pathname,E=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;o||(m=m.toLowerCase(),E=E?E.toLowerCase():null,g=g.toLowerCase()),E&&p&&(E=lr(E,p)||E);const x=g!=="/"&&g.endsWith("/")?g.length-1:g.length;let A=m===g||!a&&m.startsWith(g)&&m.charAt(x)==="/",T=E!=null&&(E===g||!a&&E.startsWith(g)&&E.charAt(g.length)==="/"),C={isActive:A,isPending:T,isTransitioning:h},O=A?r:void 0,M;typeof i=="function"?M=i(C):M=[i,A?"active":null,T?"pending":null,h?"transitioning":null].filter(Boolean).join(" ");let B=typeof l=="function"?l(C):l;return P.createElement(Qg,lo({},f,{"aria-current":O,className:M,ref:n,style:B,to:s,unstable_viewTransition:u}),typeof c=="function"?c(C):c)});process.env.NODE_ENV!=="production"&&(RS.displayName="NavLink");const NS=P.forwardRef((e,t)=>{let{fetcherKey:n,navigate:r,reloadDocument:o,replace:i,state:a,method:l=fl,action:s,onSubmit:u,relative:c,preventScrollReset:f,unstable_viewTransition:b}=e,y=Dc(e,vS),v=MS(),d=BS(s,{relative:c}),p=l.toLowerCase()==="get"?"get":"post",h=g=>{if(u&&u(g),g.defaultPrevented)return;g.preventDefault();let m=g.nativeEvent.submitter,E=(m==null?void 0:m.getAttribute("formmethod"))||l;v(m||g.currentTarget,{fetcherKey:n,method:E,navigate:r,replace:i,state:a,relative:c,preventScrollReset:f,unstable_viewTransition:b})};return P.createElement("form",lo({ref:t,method:p,action:d,onSubmit:o?u:h},y))});process.env.NODE_ENV!=="production"&&(NS.displayName="Form"),process.env.NODE_ENV;var ml;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ml||(ml={}));var $g;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})($g||($g={}));function DS(e){return e+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function Kg(e){let t=P.useContext(yi);return t||(process.env.NODE_ENV!=="production"?Oe(!1,DS(e)):Oe(!1)),t}function PS(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l}=t===void 0?{}:t,s=so(),u=ao(),c=_a(e,{relative:a});return P.useCallback(f=>{if(dS(f,n)){f.preventDefault();let b=r!==void 0?r:no(u)===no(c);s(e,{replace:b,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l})}},[u,s,c,r,o,n,e,i,a,l])}function em(e){process.env.NODE_ENV!=="production"&&Xt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=P.useRef(Pc(e)),n=P.useRef(!1),r=ao(),o=P.useMemo(()=>fS(r.search,n.current?null:t.current),[r.search]),i=so(),a=P.useCallback((l,s)=>{const u=Pc(typeof l=="function"?l(o):l);n.current=!0,i("?"+u,s)},[i,o]);return[o,a]}function kS(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}let LS=0,FS=()=>"__"+String(++LS)+"__";function MS(){let{router:e}=Kg(ml.UseSubmit),{basename:t}=P.useContext(cr),n=tS();return P.useCallback(function(r,o){o===void 0&&(o={}),kS();let{action:i,method:a,encType:l,formData:s,body:u}=gS(r,t);if(o.navigate===!1){let c=o.fetcherKey||FS();e.fetch(c,n,o.action||i,{preventScrollReset:o.preventScrollReset,formData:s,body:u,formMethod:o.method||a,formEncType:o.encType||l,unstable_flushSync:o.unstable_flushSync})}else e.navigate(o.action||i,{preventScrollReset:o.preventScrollReset,formData:s,body:u,formMethod:o.method||a,formEncType:o.encType||l,replace:o.replace,state:o.state,fromRouteId:n,unstable_flushSync:o.unstable_flushSync,unstable_viewTransition:o.unstable_viewTransition})},[e,t,n])}function BS(e,t){let{relative:n}=t===void 0?{}:t,{basename:r}=P.useContext(cr),o=P.useContext(dr);o||(process.env.NODE_ENV!=="production"?Oe(!1,"useFormAction must be used inside a RouteContext"):Oe(!1));let[i]=o.matches.slice(-1),a=lo({},_a(e||".",{relative:n})),l=ao();if(e==null){a.search=l.search;let s=new URLSearchParams(a.search);s.has("index")&&s.get("index")===""&&(s.delete("index"),a.search=s.toString()?"?"+s.toString():"")}return(!e||e===".")&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(a.pathname=a.pathname==="/"?r:Er([r,a.pathname])),no(a)}function jS(e,t){t===void 0&&(t={});let n=P.useContext(Lc);n==null&&(process.env.NODE_ENV!=="production"?Oe(!1,"`unstable_useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"):Oe(!1));let{basename:r}=Kg(ml.useViewTransitionState),o=_a(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=lr(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=lr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return il(o.pathname,a)!=null||il(o.pathname,i)!=null}const VS=w.styled(w.Stack)`
|
|
99
99
|
width: 100%;
|
|
100
100
|
height: 100%;
|
|
101
101
|
align-items: center;
|
|
@@ -147,7 +147,7 @@ Take a look at the reducer(s) handling this action type: ${y.type}.
|
|
|
147
147
|
align-items: center;
|
|
148
148
|
flex-direction: row;
|
|
149
149
|
margin-left: 23px;
|
|
150
|
-
`,tT=()=>I.jsx(eT,{children:I.jsx(KS,{})}),nT="Enhance with Custom Connectors",rT="Let us know your use case, and we'll design and deliver a custom connector tailored to your needs within a few working days.",nm="Request new connector",oT="Create your own (coming soon)",iT="Request new feature",aT="Request a new connector",rm="Tell us your use case and we will create a connector for you within a few working days.",sT=`Request new connectors to get better customer context and key actions right into your inbox. ${rm}`,lT="Select a feature",uT="Select a connector",cT="Feel free to add specific details (Optional)",dT="Submit Request",fT="Request submitted",pT="Your request has been submitted successfully. We will get back to you within a few working days.",hT="Done",gT="Add connector",mT="Edit connector",bT="Enable",vT="Disable",om={CONNECTOR:"connector",API:"api"},yT="Failed to submit the request. Please try again.",
|
|
150
|
+
`,tT=()=>I.jsx(eT,{children:I.jsx(KS,{})}),nT="Enhance with Custom Connectors",rT="Let us know your use case, and we'll design and deliver a custom connector tailored to your needs within a few working days.",nm="Request new connector",oT="Create your own (coming soon)",iT="Request new feature",aT="Request a new connector",rm="Tell us your use case and we will create a connector for you within a few working days.",sT=`Request new connectors to get better customer context and key actions right into your inbox. ${rm}`,lT="Select a feature",uT="Select a connector",cT="Feel free to add specific details (Optional)",dT="Submit Request",fT="Request submitted",pT="Your request has been submitted successfully. We will get back to you within a few working days.",hT="Done",gT="Add connector",mT="Edit connector",bT="Enable",vT="Disable",om={CONNECTOR:"connector",API:"api"},yT="Failed to submit the request. Please try again.",tt={REQUEST_NEW_CLICKED:"request_new_connector_clicked",TOGGLE_ENABLED:"connector_enabled_clicked",TOGGLE_DISABLED:"connector_disabled_clicked",SETTINGS_CLICKED:"connector_settings_clicked",ADD_CONNECTOR_CLICKED:"add_connector_clicked",CONNECTOR_BACK_CLICKED:"connector_back_button_clicked",SAVE_AUTHORIZE_CLICKED:"save_and_authenticate_clicked",SEND_TEST_CLICK:"send_test_request_clicked",AUTH_UPDATED:"auth_type_updated",REQUEST_NEW_FEATURE_CLICKED:"request_new_feature_clicked",REQUEST_NEW_CONNECTOR_SHOWN:"request_new_connector_popup_shown",REQUEST_NEW_CONNECTOR_SUBMIT_CLICKED:"request_new_connector_popup_submitted_clicked",REQUEST_NEW_CONNECTOR_CLOSE_CLICKED:"request_new_connector_popup_closed_clicked",REQUEST_NEW_CONNECTOR_DONE_CLICKED:"request_new_connector_popup_done_clicked",REQUEST_NEW_FEATURE_SHOWN:"request_new_feature_popup_shown",REQUEST_NEW_FEATURE_SUBMIT_CLICKED:"request_new_feature_popup_submitted_clicked",REQUEST_NEW_FEATURE_CLOSE_CLICKED:"request_new_feature_popup_closed_clicked",REQUEST_NEW_FEATURE_DONE_CLICKED:"request_new_feature_popup_done_clicked",LIBRARY_CARD_CLICKED:"library_item_clicked",TAB_CLICKED:"tab_clicked",CONFIGURE_VISIBILITY_CLICKED:"configure_visibility_clicked",CARD_VISIBILITY_UPDATED:"card_visibility_updated",CARD_VISIBILITY_UPDATE_CLOSED:"card_visibility_update_closed",CONNECTOR_VISIBILITY_FIELD_TAB_CLICKED:"connector_visibility_field_tab_clicked",SCHEDULE_CALL_CLICKED:"schedule_call_clicked",SCHEDULE_CALL_CROSS_CLICKED:"schedule_call_cross_clicked",CONNECTOR_VIDEO_CLICKED:"connector_video_clicked",CONNECTOR_AUTH_PAGE_KB_CLICKED:"connector_auth_page_kb_clicked",CONNECTOR_AUTH_PAGE_CONTACT_SUPPORT_CLICKED:"connector_auth_page_contact_support_clicked",CONNECTOR_AUTH_SUCCESS:"connector_auth_success"},ET={AUTH_PAGE:"auth_page",DETAILS_PAGE:"details_page",CONNECTORS_PAGE_ADMIN_SIDE:"connectors_page_admin_side"},uo=c1.withTypes(),qe=Ky.withTypes(),fr=w.styled(w.Skeleton)`
|
|
151
151
|
display: block;
|
|
152
152
|
margin: ${e=>e.margin?e.margin:0};
|
|
153
153
|
`,xT=w.styled("li")`
|
|
@@ -242,7 +242,7 @@ Take a look at the reducer(s) handling this action type: ${y.type}.
|
|
|
242
242
|
height: 20px;
|
|
243
243
|
background: linear-gradient(to right, #ffe250, #ffc350);
|
|
244
244
|
color: ${w.palette.gray.gray1};
|
|
245
|
-
`,rA=()=>{const{availableFeatures:e,sendTrackingEvent:t}=S.useContext(qt),n=so(),r=uo(),o=qe(zh),i=qe(oc),a=qe(Tw);S.useEffect(()=>{r(Hs())},[r]);const
|
|
245
|
+
`,rA=()=>{const{availableFeatures:e,sendTrackingEvent:t}=S.useContext(qt),n=so(),r=uo(),o=qe(zh),i=qe(oc),a=qe(Tw);S.useEffect(()=>{r(Hs())},[r]);const l=(s,u)=>{var f;s==null||s.stopPropagation();const c=(f=i==null?void 0:i[u])==null?void 0:f.name;t(tt.LIBRARY_CARD_CLICKED,{connector_name:c}),n(`${Xe.BASEPATH}${Xe.API_VIEW}/${u}`)};return I.jsx(wT,{"data-testid":"connector-library",component:"ul",children:a===Ie.LOADING?I.jsx(CT,{}):I.jsx(I.Fragment,{children:o.map(s=>{const u=i==null?void 0:i[s];if(!u)return null;const{isTemplateNew:c}=u,f=fa(e)&&c;return I.jsxs(IT,{onClick:b=>l(b,s),component:"li",children:[I.jsxs(w.Stack,{direction:"row",justifyContent:"space-between",children:[I.jsx(ST,{children:I.jsx("img",{src:u.logo??"",alt:u.name})}),I.jsx(Na,{hidden:!f,label:Mc})]}),I.jsx(Fc,{variant:"h2",children:u.name}),I.jsx(TT,{variant:"body1",color:"rgba(108, 123, 148, 1)",children:u.description})]},s)})})})},oA=w.styled(w.Icon)`
|
|
246
246
|
width: 203px;
|
|
247
247
|
height: 161px;
|
|
248
248
|
`,iA=w.styled(w.Stack)`
|
|
@@ -440,7 +440,7 @@ Take a look at the reducer(s) handling this action type: ${y.type}.
|
|
|
440
440
|
fill: #ffffff;
|
|
441
441
|
width: 10px;
|
|
442
442
|
}
|
|
443
|
-
`,WA=(e,{closeToast:t})=>I.jsx(GA,{children:I.jsx("img",{src:MA,onClick:t})}),vl=({message:e})=>I.jsxs(BA,{children:[I.jsx(VA,{}),I.jsx(jA,{children:e})]});function qn(e){const{message:t,type:n,autoClose:r}=e,o={closeButton:I.jsx(WA,{}),autoClose:r??5e3,pauseOnHover:!0,position:"bottom-left",rtl:!1,draggable:!0,closeOnClick:!0,hideProgressBar:!0};let i;switch(n){case Da:{i=
|
|
443
|
+
`,WA=(e,{closeToast:t})=>I.jsx(GA,{children:I.jsx("img",{src:MA,onClick:t})}),vl=({message:e})=>I.jsxs(BA,{children:[I.jsx(VA,{}),I.jsx(jA,{children:e})]});function qn(e){const{message:t,type:n,autoClose:r}=e,o={closeButton:I.jsx(WA,{}),autoClose:r??5e3,pauseOnHover:!0,position:"bottom-left",rtl:!1,draggable:!0,closeOnClick:!0,hideProgressBar:!0};let i;switch(n){case Da:{i=at.success(I.jsx(vl,{message:t}),{...o,icon:!1});break}case co:{i=at.error(I.jsx(vl,{message:t}),{...o,icon:!1});break}case mm:{i=at.info(I.jsx(vl,{message:t}),{...o,icon:!1});break}default:{i=at.info(I.jsx(vl,{message:t}),{...o,icon:!1});break}}return setTimeout(()=>{HA(i)},r&&!isNaN(r)?Number(r):5e3),i}function HA(e){at.dismiss(e)}const zA=w.styled(w.Box)`
|
|
444
444
|
height: 100%;
|
|
445
445
|
width: 100%;
|
|
446
446
|
padding: 16px 12px;
|
|
@@ -455,11 +455,11 @@ Take a look at the reducer(s) handling this action type: ${y.type}.
|
|
|
455
455
|
`,ZA=w.styled(w.Typography)`
|
|
456
456
|
margin-top: 9px;
|
|
457
457
|
color: ${w.theme.palette.gray.gray3};
|
|
458
|
-
`,YA="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_3297_163628)'%3e%3cpath%20d='M9.99967%205.41667C13.158%205.41667%2015.9747%207.19167%2017.3497%2010C15.9747%2012.8083%2013.1663%2014.5833%209.99967%2014.5833C6.83301%2014.5833%204.02467%2012.8083%202.64967%2010C4.02467%207.19167%206.84134%205.41667%209.99967%205.41667ZM9.99967%203.75C5.83301%203.75%202.27467%206.34167%200.833008%2010C2.27467%2013.6583%205.83301%2016.25%209.99967%2016.25C14.1663%2016.25%2017.7247%2013.6583%2019.1663%2010C17.7247%206.34167%2014.1663%203.75%209.99967%203.75ZM9.99967%207.91667C11.1497%207.91667%2012.083%208.85%2012.083%2010C12.083%2011.15%2011.1497%2012.0833%209.99967%2012.0833C8.84967%2012.0833%207.91634%2011.15%207.91634%2010C7.91634%208.85%208.84967%207.91667%209.99967%207.91667ZM9.99967%206.25C7.93301%206.25%206.24967%207.93333%206.24967%2010C6.24967%2012.0667%207.93301%2013.75%209.99967%2013.75C12.0663%2013.75%2013.7497%2012.0667%2013.7497%2010C13.7497%207.93333%2012.0663%206.25%209.99967%206.25Z'%20fill='%233E4C5A'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_3297_163628'%3e%3crect%20width='20'%20height='20'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",UA=()=>I.jsxs(zA,{children:[I.jsxs(w.Stack,{direction:"row",alignItems:"center",gap:1,children:[I.jsx(XA,{direction:"row",alignItems:"center",justifyContent:"center",children:I.jsx("img",{src:YA,alt:"visibility"})}),I.jsx(w.Typography,{variant:"h2",children:LT})]}),I.jsx(ZA,{children:FT})]});function qA(){const e=S.useContext(Bc);if(!e)throw new Error(MT);return e}const JA=w.styled(({className:e,...t})=>I.jsx(w.Tooltip,{...t,classes:{popper:e}}))(()=>({[`& .${w.tooltipClasses.arrow}`]:{color:"#fff !important"},[`& .${w.tooltipClasses.tooltip}`]:{backgroundColor:"#fff",maxWidth:"326px",height:"117px",width:"326px",borderRadius:"6px",boxShadow:"0px 2px 10px 0px #00000026"}})),QA=e=>{const{hasRendered:t,setHasRendered:n}=qA(),[r,o]=S.useState(!1),i=S.useCallback(a=>{a.target.closest(`.${w.tooltipClasses.tooltip}`)||o(!1)},[]);return S.useEffect(()=>{if(r)return document.addEventListener("click",i),()=>document.removeEventListener("click",i)},[r,i]),S.useEffect(()=>{try{!(localStorage.getItem(sm)==="true")&&!t&&(localStorage.setItem(sm,"true"),n(!0),o(!0))}catch{o(!1)}},[t,n]),I.jsx(JA,{arrow:!0,open:r,slotProps:{popper:{sx:{[`&.${w.tooltipClasses.popper}[data-popper-placement*="left"] .${w.tooltipClasses.tooltip}`]:{marginRight:"5px"}}}},title:I.jsx(UA,{}),placement:"left",...e})},$A=({children:e})=>{const{hasRendered:t,setHasRendered:n}=S.useContext(Bc),[r]=S.useState(()=>!t);return S.useEffect(()=>{r&&n(!0)},[r,n]),r?I.jsx(QA,{children:e}):I.jsx(I.Fragment,{children:e})},KA=e=>P.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("g",{clipPath:"url(#clip0_3297_163628)"},P.createElement("path",{d:"M9.99967 5.41667C13.158 5.41667 15.9747 7.19167 17.3497 10C15.9747 12.8083 13.1663 14.5833 9.99967 14.5833C6.83301 14.5833 4.02467 12.8083 2.64967 10C4.02467 7.19167 6.84134 5.41667 9.99967 5.41667ZM9.99967 3.75C5.83301 3.75 2.27467 6.34167 0.833008 10C2.27467 13.6583 5.83301 16.25 9.99967 16.25C14.1663 16.25 17.7247 13.6583 19.1663 10C17.7247 6.34167 14.1663 3.75 9.99967 3.75ZM9.99967 7.91667C11.1497 7.91667 12.083 8.85 12.083 10C12.083 11.15 11.1497 12.0833 9.99967 12.0833C8.84967 12.0833 7.91634 11.15 7.91634 10C7.91634 8.85 8.84967 7.91667 9.99967 7.91667ZM9.99967 6.25C7.93301 6.25 6.24967 7.93333 6.24967 10C6.24967 12.0667 7.93301 13.75 9.99967 13.75C12.0663 13.75 13.7497 12.0667 13.7497 10C13.7497 7.93333 12.0663 6.25 9.99967 6.25Z",fill:"#3E4C5A"})),P.createElement("defs",null,P.createElement("clipPath",{id:"clip0_3297_163628"},P.createElement("rect",{width:20,height:20,fill:"white"})))),e_=e=>P.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("mask",{id:"mask0_3354_177768",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:20,height:20},P.createElement("rect",{width:20,height:20,fill:"#D9D9D9"})),P.createElement("g",{mask:"url(#mask0_3354_177768)"},P.createElement("path",{d:"M13.2708 11.1462L11.9792 9.85449C12.0347 9.32671 11.875 8.87185 11.5 8.48991C11.125 8.10796 10.6736 7.94477 10.1458 8.00033L8.85417 6.70866C9.03472 6.63921 9.22222 6.58713 9.41667 6.55241C9.61111 6.51769 9.80556 6.50033 10 6.50033C10.9722 6.50033 11.7986 6.8406 12.4792 7.52116C13.1597 8.20171 13.5 9.0281 13.5 10.0003C13.5 10.1948 13.4826 10.3892 13.4479 10.5837C13.4132 10.7781 13.3542 10.9656 13.2708 11.1462ZM16.0417 13.917L14.9583 12.8337C15.4583 12.4448 15.9132 12.0177 16.3229 11.5524C16.7326 11.0871 17.0764 10.5698 17.3542 10.0003C16.6736 8.59755 15.6701 7.49685 14.3438 6.69824C13.0174 5.89963 11.5694 5.50033 10 5.50033C9.63889 5.50033 9.28472 5.52116 8.9375 5.56283C8.59028 5.60449 8.25 5.67394 7.91667 5.77116L6.70833 4.56283C7.23611 4.35449 7.77431 4.20866 8.32292 4.12533C8.87153 4.04199 9.43056 4.00033 10 4.00033C11.9861 4.00033 13.8021 4.53852 15.4479 5.61491C17.0938 6.6913 18.2778 8.1531 19 10.0003C18.6944 10.792 18.2882 11.5107 17.7812 12.1566C17.2743 12.8024 16.6944 13.3892 16.0417 13.917ZM16 18.1253L13.2917 15.417C12.7639 15.6114 12.2257 15.7573 11.6771 15.8545C11.1285 15.9517 10.5694 16.0003 10 16.0003C8.01389 16.0003 6.19792 15.4621 4.55208 14.3857C2.90625 13.3094 1.72222 11.8475 1 10.0003C1.30556 9.20866 1.70833 8.48644 2.20833 7.83366C2.70833 7.18088 3.29167 6.5906 3.95833 6.06283L1.875 3.97949L2.9375 2.91699L17.0625 17.0628L16 18.1253ZM5.02083 7.14616C4.53472 7.53505 4.08333 7.96213 3.66667 8.42741C3.25 8.89269 2.90972 9.41699 2.64583 10.0003C3.32639 11.4031 4.32986 12.5038 5.65625 13.3024C6.98264 14.101 8.43056 14.5003 10 14.5003C10.3611 14.5003 10.7153 14.476 11.0625 14.4274C11.4097 14.3788 11.7569 14.3128 12.1042 14.2295L11.1667 13.292C10.9722 13.3614 10.7778 13.4135 10.5833 13.4482C10.3889 13.483 10.1944 13.5003 10 13.5003C9.02778 13.5003 8.20139 13.16 7.52083 12.4795C6.84028 11.7989 6.5 10.9725 6.5 10.0003C6.5 9.80588 6.52431 9.61144 6.57292 9.41699C6.62153 9.22255 6.66667 9.0281 6.70833 8.83366L5.02083 7.14616Z",fill:"#6F7C90"})));function t_(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return S.useMemo(()=>r=>{t.forEach(o=>o(r))},t)}const yl=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Ei(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Gc(e){return"nodeType"in e}function An(e){var t,n;return e?Ei(e)?e:Gc(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function Wc(e){const{Document:t}=An(e);return e instanceof t}function Pa(e){return Ei(e)?!1:e instanceof An(e).HTMLElement}function vm(e){return e instanceof An(e).SVGElement}function xi(e){return e?Ei(e)?e.document:Gc(e)?Wc(e)?e:Pa(e)||vm(e)?e.ownerDocument:document:document:document}const xr=yl?S.useLayoutEffect:S.useEffect;function Hc(e){const t=S.useRef(e);return xr(()=>{t.current=e}),S.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}function n_(){const e=S.useRef(null),t=S.useCallback((r,o)=>{e.current=setInterval(r,o)},[]),n=S.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function ka(e,t){t===void 0&&(t=[e]);const n=S.useRef(e);return xr(()=>{n.current!==e&&(n.current=e)},t),n}function La(e,t){const n=S.useRef();return S.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function El(e){const t=Hc(e),n=S.useRef(null),r=S.useCallback(o=>{o!==n.current&&(t==null||t(o,n.current)),n.current=o},[]);return[n,r]}function zc(e){const t=S.useRef();return S.useEffect(()=>{t.current=e},[e]),t.current}let Xc={};function Fa(e,t){return S.useMemo(()=>{if(t)return t;const n=Xc[e]==null?0:Xc[e]+1;return Xc[e]=n,e+"-"+n},[e,t])}function ym(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce((i,a)=>{const s=Object.entries(a);for(const[l,u]of s){const c=i[l];c!=null&&(i[l]=c+e*u)}return i},{...t})}}const Ci=ym(1),xl=ym(-1);function r_(e){return"clientX"in e&&"clientY"in e}function Zc(e){if(!e)return!1;const{KeyboardEvent:t}=An(e.target);return t&&e instanceof t}function o_(e){if(!e)return!1;const{TouchEvent:t}=An(e.target);return t&&e instanceof t}function Yc(e){if(o_(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return r_(e)?{x:e.clientX,y:e.clientY}:null}const Ma=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Ma.Translate.toString(e),Ma.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),Em="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function i_(e){return e.matches(Em)?e:e.querySelector(Em)}const a_={display:"none"};function s_(e){let{id:t,value:n}=e;return S.createElement("div",{id:t,style:a_},n)}function l_(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const o={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return S.createElement("div",{id:t,style:o,role:"status","aria-live":r,"aria-atomic":!0},n)}function u_(){const[e,t]=S.useState("");return{announce:S.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const xm=S.createContext(null);function c_(e){const t=S.useContext(xm);S.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function d_(){const[e]=S.useState(()=>new Set),t=S.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[S.useCallback(r=>{let{type:o,event:i}=r;e.forEach(a=>{var s;return(s=a[o])==null?void 0:s.call(a,i)})},[e]),t]}const f_={draggable:`
|
|
458
|
+
`,YA="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_3297_163628)'%3e%3cpath%20d='M9.99967%205.41667C13.158%205.41667%2015.9747%207.19167%2017.3497%2010C15.9747%2012.8083%2013.1663%2014.5833%209.99967%2014.5833C6.83301%2014.5833%204.02467%2012.8083%202.64967%2010C4.02467%207.19167%206.84134%205.41667%209.99967%205.41667ZM9.99967%203.75C5.83301%203.75%202.27467%206.34167%200.833008%2010C2.27467%2013.6583%205.83301%2016.25%209.99967%2016.25C14.1663%2016.25%2017.7247%2013.6583%2019.1663%2010C17.7247%206.34167%2014.1663%203.75%209.99967%203.75ZM9.99967%207.91667C11.1497%207.91667%2012.083%208.85%2012.083%2010C12.083%2011.15%2011.1497%2012.0833%209.99967%2012.0833C8.84967%2012.0833%207.91634%2011.15%207.91634%2010C7.91634%208.85%208.84967%207.91667%209.99967%207.91667ZM9.99967%206.25C7.93301%206.25%206.24967%207.93333%206.24967%2010C6.24967%2012.0667%207.93301%2013.75%209.99967%2013.75C12.0663%2013.75%2013.7497%2012.0667%2013.7497%2010C13.7497%207.93333%2012.0663%206.25%209.99967%206.25Z'%20fill='%233E4C5A'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_3297_163628'%3e%3crect%20width='20'%20height='20'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",UA=()=>I.jsxs(zA,{children:[I.jsxs(w.Stack,{direction:"row",alignItems:"center",gap:1,children:[I.jsx(XA,{direction:"row",alignItems:"center",justifyContent:"center",children:I.jsx("img",{src:YA,alt:"visibility"})}),I.jsx(w.Typography,{variant:"h2",children:LT})]}),I.jsx(ZA,{children:FT})]});function qA(){const e=S.useContext(Bc);if(!e)throw new Error(MT);return e}const JA=w.styled(({className:e,...t})=>I.jsx(w.Tooltip,{...t,classes:{popper:e}}))(()=>({[`& .${w.tooltipClasses.arrow}`]:{color:"#fff !important"},[`& .${w.tooltipClasses.tooltip}`]:{backgroundColor:"#fff",maxWidth:"326px",height:"117px",width:"326px",borderRadius:"6px",boxShadow:"0px 2px 10px 0px #00000026"}})),QA=e=>{const{hasRendered:t,setHasRendered:n}=qA(),[r,o]=S.useState(!1),i=S.useCallback(a=>{a.target.closest(`.${w.tooltipClasses.tooltip}`)||o(!1)},[]);return S.useEffect(()=>{if(r)return document.addEventListener("click",i),()=>document.removeEventListener("click",i)},[r,i]),S.useEffect(()=>{try{!(localStorage.getItem(sm)==="true")&&!t&&(localStorage.setItem(sm,"true"),n(!0),o(!0))}catch{o(!1)}},[t,n]),I.jsx(JA,{arrow:!0,open:r,slotProps:{popper:{sx:{[`&.${w.tooltipClasses.popper}[data-popper-placement*="left"] .${w.tooltipClasses.tooltip}`]:{marginRight:"5px"}}}},title:I.jsx(UA,{}),placement:"left",...e})},$A=({children:e})=>{const{hasRendered:t,setHasRendered:n}=S.useContext(Bc),[r]=S.useState(()=>!t);return S.useEffect(()=>{r&&n(!0)},[r,n]),r?I.jsx(QA,{children:e}):I.jsx(I.Fragment,{children:e})},KA=e=>P.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("g",{clipPath:"url(#clip0_3297_163628)"},P.createElement("path",{d:"M9.99967 5.41667C13.158 5.41667 15.9747 7.19167 17.3497 10C15.9747 12.8083 13.1663 14.5833 9.99967 14.5833C6.83301 14.5833 4.02467 12.8083 2.64967 10C4.02467 7.19167 6.84134 5.41667 9.99967 5.41667ZM9.99967 3.75C5.83301 3.75 2.27467 6.34167 0.833008 10C2.27467 13.6583 5.83301 16.25 9.99967 16.25C14.1663 16.25 17.7247 13.6583 19.1663 10C17.7247 6.34167 14.1663 3.75 9.99967 3.75ZM9.99967 7.91667C11.1497 7.91667 12.083 8.85 12.083 10C12.083 11.15 11.1497 12.0833 9.99967 12.0833C8.84967 12.0833 7.91634 11.15 7.91634 10C7.91634 8.85 8.84967 7.91667 9.99967 7.91667ZM9.99967 6.25C7.93301 6.25 6.24967 7.93333 6.24967 10C6.24967 12.0667 7.93301 13.75 9.99967 13.75C12.0663 13.75 13.7497 12.0667 13.7497 10C13.7497 7.93333 12.0663 6.25 9.99967 6.25Z",fill:"#3E4C5A"})),P.createElement("defs",null,P.createElement("clipPath",{id:"clip0_3297_163628"},P.createElement("rect",{width:20,height:20,fill:"white"})))),e_=e=>P.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("mask",{id:"mask0_3354_177768",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:20,height:20},P.createElement("rect",{width:20,height:20,fill:"#D9D9D9"})),P.createElement("g",{mask:"url(#mask0_3354_177768)"},P.createElement("path",{d:"M13.2708 11.1462L11.9792 9.85449C12.0347 9.32671 11.875 8.87185 11.5 8.48991C11.125 8.10796 10.6736 7.94477 10.1458 8.00033L8.85417 6.70866C9.03472 6.63921 9.22222 6.58713 9.41667 6.55241C9.61111 6.51769 9.80556 6.50033 10 6.50033C10.9722 6.50033 11.7986 6.8406 12.4792 7.52116C13.1597 8.20171 13.5 9.0281 13.5 10.0003C13.5 10.1948 13.4826 10.3892 13.4479 10.5837C13.4132 10.7781 13.3542 10.9656 13.2708 11.1462ZM16.0417 13.917L14.9583 12.8337C15.4583 12.4448 15.9132 12.0177 16.3229 11.5524C16.7326 11.0871 17.0764 10.5698 17.3542 10.0003C16.6736 8.59755 15.6701 7.49685 14.3438 6.69824C13.0174 5.89963 11.5694 5.50033 10 5.50033C9.63889 5.50033 9.28472 5.52116 8.9375 5.56283C8.59028 5.60449 8.25 5.67394 7.91667 5.77116L6.70833 4.56283C7.23611 4.35449 7.77431 4.20866 8.32292 4.12533C8.87153 4.04199 9.43056 4.00033 10 4.00033C11.9861 4.00033 13.8021 4.53852 15.4479 5.61491C17.0938 6.6913 18.2778 8.1531 19 10.0003C18.6944 10.792 18.2882 11.5107 17.7812 12.1566C17.2743 12.8024 16.6944 13.3892 16.0417 13.917ZM16 18.1253L13.2917 15.417C12.7639 15.6114 12.2257 15.7573 11.6771 15.8545C11.1285 15.9517 10.5694 16.0003 10 16.0003C8.01389 16.0003 6.19792 15.4621 4.55208 14.3857C2.90625 13.3094 1.72222 11.8475 1 10.0003C1.30556 9.20866 1.70833 8.48644 2.20833 7.83366C2.70833 7.18088 3.29167 6.5906 3.95833 6.06283L1.875 3.97949L2.9375 2.91699L17.0625 17.0628L16 18.1253ZM5.02083 7.14616C4.53472 7.53505 4.08333 7.96213 3.66667 8.42741C3.25 8.89269 2.90972 9.41699 2.64583 10.0003C3.32639 11.4031 4.32986 12.5038 5.65625 13.3024C6.98264 14.101 8.43056 14.5003 10 14.5003C10.3611 14.5003 10.7153 14.476 11.0625 14.4274C11.4097 14.3788 11.7569 14.3128 12.1042 14.2295L11.1667 13.292C10.9722 13.3614 10.7778 13.4135 10.5833 13.4482C10.3889 13.483 10.1944 13.5003 10 13.5003C9.02778 13.5003 8.20139 13.16 7.52083 12.4795C6.84028 11.7989 6.5 10.9725 6.5 10.0003C6.5 9.80588 6.52431 9.61144 6.57292 9.41699C6.62153 9.22255 6.66667 9.0281 6.70833 8.83366L5.02083 7.14616Z",fill:"#6F7C90"})));function t_(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return S.useMemo(()=>r=>{t.forEach(o=>o(r))},t)}const yl=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Ei(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Gc(e){return"nodeType"in e}function An(e){var t,n;return e?Ei(e)?e:Gc(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function Wc(e){const{Document:t}=An(e);return e instanceof t}function Pa(e){return Ei(e)?!1:e instanceof An(e).HTMLElement}function vm(e){return e instanceof An(e).SVGElement}function xi(e){return e?Ei(e)?e.document:Gc(e)?Wc(e)?e:Pa(e)||vm(e)?e.ownerDocument:document:document:document}const xr=yl?S.useLayoutEffect:S.useEffect;function Hc(e){const t=S.useRef(e);return xr(()=>{t.current=e}),S.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}function n_(){const e=S.useRef(null),t=S.useCallback((r,o)=>{e.current=setInterval(r,o)},[]),n=S.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function ka(e,t){t===void 0&&(t=[e]);const n=S.useRef(e);return xr(()=>{n.current!==e&&(n.current=e)},t),n}function La(e,t){const n=S.useRef();return S.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function El(e){const t=Hc(e),n=S.useRef(null),r=S.useCallback(o=>{o!==n.current&&(t==null||t(o,n.current)),n.current=o},[]);return[n,r]}function zc(e){const t=S.useRef();return S.useEffect(()=>{t.current=e},[e]),t.current}let Xc={};function Fa(e,t){return S.useMemo(()=>{if(t)return t;const n=Xc[e]==null?0:Xc[e]+1;return Xc[e]=n,e+"-"+n},[e,t])}function ym(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce((i,a)=>{const l=Object.entries(a);for(const[s,u]of l){const c=i[s];c!=null&&(i[s]=c+e*u)}return i},{...t})}}const Ci=ym(1),xl=ym(-1);function r_(e){return"clientX"in e&&"clientY"in e}function Zc(e){if(!e)return!1;const{KeyboardEvent:t}=An(e.target);return t&&e instanceof t}function o_(e){if(!e)return!1;const{TouchEvent:t}=An(e.target);return t&&e instanceof t}function Yc(e){if(o_(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return r_(e)?{x:e.clientX,y:e.clientY}:null}const Ma=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Ma.Translate.toString(e),Ma.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),Em="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function i_(e){return e.matches(Em)?e:e.querySelector(Em)}const a_={display:"none"};function s_(e){let{id:t,value:n}=e;return S.createElement("div",{id:t,style:a_},n)}function l_(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const o={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return S.createElement("div",{id:t,style:o,role:"status","aria-live":r,"aria-atomic":!0},n)}function u_(){const[e,t]=S.useState("");return{announce:S.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const xm=S.createContext(null);function c_(e){const t=S.useContext(xm);S.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function d_(){const[e]=S.useState(()=>new Set),t=S.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[S.useCallback(r=>{let{type:o,event:i}=r;e.forEach(a=>{var l;return(l=a[o])==null?void 0:l.call(a,i)})},[e]),t]}const f_={draggable:`
|
|
459
459
|
To pick up a draggable item, press the space bar.
|
|
460
460
|
While dragging, use the arrow keys to move the item.
|
|
461
461
|
Press space again to drop the item in its new position, or press escape to cancel.
|
|
462
|
-
`},p_={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function h_(e){let{announcements:t=p_,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=f_}=e;const{announce:i,announcement:a}=u_(),s=Fa("DndLiveRegion"),[l,u]=S.useState(!1);if(S.useEffect(()=>{u(!0)},[]),c_(S.useMemo(()=>({onDragStart(d){let{active:v}=d;i(t.onDragStart({active:v}))},onDragMove(d){let{active:v,over:y}=d;t.onDragMove&&i(t.onDragMove({active:v,over:y}))},onDragOver(d){let{active:v,over:y}=d;i(t.onDragOver({active:v,over:y}))},onDragEnd(d){let{active:v,over:y}=d;i(t.onDragEnd({active:v,over:y}))},onDragCancel(d){let{active:v,over:y}=d;i(t.onDragCancel({active:v,over:y}))}}),[i,t])),!l)return null;const c=S.createElement(S.Fragment,null,S.createElement(s_,{id:r,value:o.draggable}),S.createElement(l_,{id:s,announcement:a}));return n?Qe.createPortal(c,n):c}var Zt;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Zt||(Zt={}));function Cl(){}function g_(e,t){return S.useMemo(()=>({sensor:e,options:{}}),[e,t])}function m_(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return S.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const pr=Object.freeze({x:0,y:0});function b_(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function v_(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function y_(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function E_(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function Cm(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const x_=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=Cm(t,t.left,t.top),i=[];for(const a of r){const{id:s}=a,l=n.get(s);if(l){const u=b_(Cm(l),o);i.push({id:s,data:{droppableContainer:a,value:u}})}}return i.sort(v_)};function C_(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-r,s=i-n;if(r<o&&n<i){const l=t.width*t.height,u=e.width*e.height,c=a*s,d=c/(l+u-c);return Number(d.toFixed(4))}return 0}const w_=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const i of r){const{id:a}=i,s=n.get(a);if(s){const l=C_(s,t);l>0&&o.push({id:a,data:{droppableContainer:i,value:l}})}}return o.sort(y_)};function I_(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function wm(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:pr}function S_(e){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return o.reduce((a,s)=>({...a,top:a.top+e*s.y,bottom:a.bottom+e*s.y,left:a.left+e*s.x,right:a.right+e*s.x}),{...n})}}const T_=S_(1);function A_(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function __(e,t,n){const r=A_(t);if(!r)return e;const{scaleX:o,scaleY:i,x:a,y:s}=r,l=e.left-a-(1-o)*parseFloat(n),u=e.top-s-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),c=o?e.width/o:e.width,d=i?e.height/i:e.height;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l}}const O_={ignoreTransform:!1};function wi(e,t){t===void 0&&(t=O_);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:u,transformOrigin:c}=An(e).getComputedStyle(e);u&&(n=__(n,u,c))}const{top:r,left:o,width:i,height:a,bottom:s,right:l}=n;return{top:r,left:o,width:i,height:a,bottom:s,right:l}}function Im(e){return wi(e,{ignoreTransform:!0})}function R_(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function N_(e,t){return t===void 0&&(t=An(e).getComputedStyle(e)),t.position==="fixed"}function D_(e,t){t===void 0&&(t=An(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(o=>{const i=t[o];return typeof i=="string"?n.test(i):!1})}function Uc(e,t){const n=[];function r(o){if(t!=null&&n.length>=t||!o)return n;if(Wc(o)&&o.scrollingElement!=null&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!Pa(o)||vm(o)||n.includes(o))return n;const i=An(e).getComputedStyle(o);return o!==e&&D_(o,i)&&n.push(o),N_(o,i)?n:r(o.parentNode)}return e?r(e):n}function Sm(e){const[t]=Uc(e,1);return t??null}function qc(e){return!yl||!e?null:Ei(e)?e:Gc(e)?Wc(e)||e===xi(e).scrollingElement?window:Pa(e)?e:null:null}function Tm(e){return Ei(e)?e.scrollX:e.scrollLeft}function Am(e){return Ei(e)?e.scrollY:e.scrollTop}function Jc(e){return{x:Tm(e),y:Am(e)}}var Jt;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Jt||(Jt={}));function _m(e){return!yl||!e?!1:e===document.scrollingElement}function Om(e){const t={x:0,y:0},n=_m(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},o=e.scrollTop<=t.y,i=e.scrollLeft<=t.x,a=e.scrollTop>=r.y,s=e.scrollLeft>=r.x;return{isTop:o,isLeft:i,isBottom:a,isRight:s,maxScroll:r,minScroll:t}}const P_={x:.2,y:.2};function k_(e,t,n,r,o){let{top:i,left:a,right:s,bottom:l}=n;r===void 0&&(r=10),o===void 0&&(o=P_);const{isTop:u,isBottom:c,isLeft:d,isRight:v}=Om(e),y={x:0,y:0},g={x:0,y:0},f={height:t.height*o.y,width:t.width*o.x};return!u&&i<=t.top+f.height?(y.y=Jt.Backward,g.y=r*Math.abs((t.top+f.height-i)/f.height)):!c&&l>=t.bottom-f.height&&(y.y=Jt.Forward,g.y=r*Math.abs((t.bottom-f.height-l)/f.height)),!v&&s>=t.right-f.width?(y.x=Jt.Forward,g.x=r*Math.abs((t.right-f.width-s)/f.width)):!d&&a<=t.left+f.width&&(y.x=Jt.Backward,g.x=r*Math.abs((t.left+f.width-a)/f.width)),{direction:y,speed:g}}function L_(e){if(e===document.scrollingElement){const{innerWidth:i,innerHeight:a}=window;return{top:0,left:0,right:i,bottom:a,width:i,height:a}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function Rm(e){return e.reduce((t,n)=>Ci(t,Jc(n)),pr)}function F_(e){return e.reduce((t,n)=>t+Tm(n),0)}function M_(e){return e.reduce((t,n)=>t+Am(n),0)}function B_(e,t){if(t===void 0&&(t=wi),!e)return;const{top:n,left:r,bottom:o,right:i}=t(e);Sm(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const j_=[["x",["left","right"],F_],["y",["top","bottom"],M_]];class Qc{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=Uc(n),o=Rm(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[i,a,s]of j_)for(const l of a)Object.defineProperty(this,l,{get:()=>{const u=s(r),c=o[i]-u;return this.rect[l]+c},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Ba{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var o;(o=this.target)==null||o.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function V_(e){const{EventTarget:t}=An(e);return e instanceof t?e:xi(e)}function $c(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var Jn;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Jn||(Jn={}));function Nm(e){e.preventDefault()}function G_(e){e.stopPropagation()}var at;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"})(at||(at={}));const Dm={start:[at.Space,at.Enter],cancel:[at.Esc],end:[at.Space,at.Enter]},W_=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case at.Right:return{...n,x:n.x+25};case at.Left:return{...n,x:n.x-25};case at.Down:return{...n,y:n.y+25};case at.Up:return{...n,y:n.y-25}}};class Pm{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new Ba(xi(n)),this.windowListeners=new Ba(An(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Jn.Resize,this.handleCancel),this.windowListeners.add(Jn.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Jn.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&B_(r),n(pr)}handleKeyDown(t){if(Zc(t)){const{active:n,context:r,options:o}=this.props,{keyboardCodes:i=Dm,coordinateGetter:a=W_,scrollBehavior:s="smooth"}=o,{code:l}=t;if(i.end.includes(l)){this.handleEnd(t);return}if(i.cancel.includes(l)){this.handleCancel(t);return}const{collisionRect:u}=r.current,c=u?{x:u.left,y:u.top}:pr;this.referenceCoordinates||(this.referenceCoordinates=c);const d=a(t,{active:n,context:r.current,currentCoordinates:c});if(d){const v=xl(d,c),y={x:0,y:0},{scrollableAncestors:g}=r.current;for(const f of g){const p=t.code,{isTop:h,isRight:m,isLeft:b,isBottom:E,maxScroll:x,minScroll:T}=Om(f),A=L_(f),C={x:Math.min(p===at.Right?A.right-A.width/2:A.right,Math.max(p===at.Right?A.left:A.left+A.width/2,d.x)),y:Math.min(p===at.Down?A.bottom-A.height/2:A.bottom,Math.max(p===at.Down?A.top:A.top+A.height/2,d.y))},O=p===at.Right&&!m||p===at.Left&&!b,B=p===at.Down&&!E||p===at.Up&&!h;if(O&&C.x!==d.x){const M=f.scrollLeft+v.x,Q=p===at.Right&&M<=x.x||p===at.Left&&M>=T.x;if(Q&&!v.y){f.scrollTo({left:M,behavior:s});return}Q?y.x=f.scrollLeft-M:y.x=p===at.Right?f.scrollLeft-x.x:f.scrollLeft-T.x,y.x&&f.scrollBy({left:-y.x,behavior:s});break}else if(B&&C.y!==d.y){const M=f.scrollTop+v.y,Q=p===at.Down&&M<=x.y||p===at.Up&&M>=T.y;if(Q&&!v.x){f.scrollTo({top:M,behavior:s});return}Q?y.y=f.scrollTop-M:y.y=p===at.Down?f.scrollTop-x.y:f.scrollTop-T.y,y.y&&f.scrollBy({top:-y.y,behavior:s});break}}this.handleMove(t,Ci(xl(d,this.referenceCoordinates),y))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}Pm.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=Dm,onActivation:o}=t,{active:i}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const s=i.activatorNode.current;return s&&e.target!==s?!1:(e.preventDefault(),o==null||o({event:e.nativeEvent}),!0)}return!1}}];function km(e){return!!(e&&"distance"in e)}function Lm(e){return!!(e&&"delay"in e)}class Kc{constructor(t,n,r){var o;r===void 0&&(r=V_(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:i}=t,{target:a}=i;this.props=t,this.events=n,this.document=xi(a),this.documentListeners=new Ba(this.document),this.listeners=new Ba(r),this.windowListeners=new Ba(An(a)),this.initialCoordinates=(o=Yc(i))!=null?o:pr,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(Jn.Resize,this.handleCancel),this.windowListeners.add(Jn.DragStart,Nm),this.windowListeners.add(Jn.VisibilityChange,this.handleCancel),this.windowListeners.add(Jn.ContextMenu,Nm),this.documentListeners.add(Jn.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Lm(n)){this.timeoutId=setTimeout(this.handleStart,n.delay);return}if(km(n))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(Jn.Click,G_,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Jn.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:o,props:i}=this,{onMove:a,options:{activationConstraint:s}}=i;if(!o)return;const l=(n=Yc(t))!=null?n:pr,u=xl(o,l);if(!r&&s){if(km(s)){if(s.tolerance!=null&&$c(u,s.tolerance))return this.handleCancel();if($c(u,s.distance))return this.handleStart()}return Lm(s)&&$c(u,s.tolerance)?this.handleCancel():void 0}t.cancelable&&t.preventDefault(),a(l)}handleEnd(){const{onEnd:t}=this.props;this.detach(),t()}handleCancel(){const{onCancel:t}=this.props;this.detach(),t()}handleKeydown(t){t.code===at.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const H_={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class ed extends Kc{constructor(t){const{event:n}=t,r=xi(n.target);super(t,H_,r)}}ed.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const z_={move:{name:"mousemove"},end:{name:"mouseup"}};var td;(function(e){e[e.RightClick=2]="RightClick"})(td||(td={}));class X_ extends Kc{constructor(t){super(t,z_,xi(t.event.target))}}X_.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===td.RightClick?!1:(r==null||r({event:n}),!0)}}];const nd={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class Z_ extends Kc{constructor(t){super(t,nd)}static setup(){return window.addEventListener(nd.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(nd.move.name,t)};function t(){}}}Z_.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return o.length>1?!1:(r==null||r({event:n}),!0)}}];var ja;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(ja||(ja={}));var wl;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(wl||(wl={}));function Y_(e){let{acceleration:t,activator:n=ja.Pointer,canScroll:r,draggingRect:o,enabled:i,interval:a=5,order:s=wl.TreeOrder,pointerCoordinates:l,scrollableAncestors:u,scrollableAncestorRects:c,delta:d,threshold:v}=e;const y=q_({delta:d,disabled:!i}),[g,f]=n_(),p=S.useRef({x:0,y:0}),h=S.useRef({x:0,y:0}),m=S.useMemo(()=>{switch(n){case ja.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case ja.DraggableRect:return o}},[n,o,l]),b=S.useRef(null),E=S.useCallback(()=>{const T=b.current;if(!T)return;const A=p.current.x*h.current.x,C=p.current.y*h.current.y;T.scrollBy(A,C)},[]),x=S.useMemo(()=>s===wl.TreeOrder?[...u].reverse():u,[s,u]);S.useEffect(()=>{if(!i||!u.length||!m){f();return}for(const T of x){if((r==null?void 0:r(T))===!1)continue;const A=u.indexOf(T),C=c[A];if(!C)continue;const{direction:O,speed:B}=k_(T,C,m,t,v);for(const M of["x","y"])y[M][O[M]]||(B[M]=0,O[M]=0);if(B.x>0||B.y>0){f(),b.current=T,g(E,a),p.current=B,h.current=O;return}}p.current={x:0,y:0},h.current={x:0,y:0},f()},[t,E,r,f,i,a,JSON.stringify(m),JSON.stringify(y),g,u,x,c,JSON.stringify(v)])}const U_={x:{[Jt.Backward]:!1,[Jt.Forward]:!1},y:{[Jt.Backward]:!1,[Jt.Forward]:!1}};function q_(e){let{delta:t,disabled:n}=e;const r=zc(t);return La(o=>{if(n||!r||!o)return U_;const i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[Jt.Backward]:o.x[Jt.Backward]||i.x===-1,[Jt.Forward]:o.x[Jt.Forward]||i.x===1},y:{[Jt.Backward]:o.y[Jt.Backward]||i.y===-1,[Jt.Forward]:o.y[Jt.Forward]||i.y===1}}},[n,t,r])}function J_(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return La(o=>{var i;return t==null?null:(i=r??o)!=null?i:null},[r,t])}function Q_(e,t){return S.useMemo(()=>e.reduce((n,r)=>{const{sensor:o}=r,i=o.activators.map(a=>({eventName:a.eventName,handler:t(a.handler,r)}));return[...n,...i]},[]),[e,t])}var Va;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Va||(Va={}));var rd;(function(e){e.Optimized="optimized"})(rd||(rd={}));const Fm=new Map;function $_(e,t){let{dragging:n,dependencies:r,config:o}=t;const[i,a]=S.useState(null),{frequency:s,measure:l,strategy:u}=o,c=S.useRef(e),d=p(),v=ka(d),y=S.useCallback(function(h){h===void 0&&(h=[]),!v.current&&a(m=>m===null?h:m.concat(h.filter(b=>!m.includes(b))))},[v]),g=S.useRef(null),f=La(h=>{if(d&&!n)return Fm;if(!h||h===Fm||c.current!==e||i!=null){const m=new Map;for(let b of e){if(!b)continue;if(i&&i.length>0&&!i.includes(b.id)&&b.rect.current){m.set(b.id,b.rect.current);continue}const E=b.node.current,x=E?new Qc(l(E),E):null;b.rect.current=x,x&&m.set(b.id,x)}return m}return h},[e,i,n,d,l]);return S.useEffect(()=>{c.current=e},[e]),S.useEffect(()=>{d||y()},[n,d]),S.useEffect(()=>{i&&i.length>0&&a(null)},[JSON.stringify(i)]),S.useEffect(()=>{d||typeof s!="number"||g.current!==null||(g.current=setTimeout(()=>{y(),g.current=null},s))},[s,d,y,...r]),{droppableRects:f,measureDroppableContainers:y,measuringScheduled:i!=null};function p(){switch(u){case Va.Always:return!1;case Va.BeforeDragging:return n;default:return!n}}}function Mm(e,t){return La(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function K_(e,t){return Mm(e,t)}function eO(e){let{callback:t,disabled:n}=e;const r=Hc(t),o=S.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:i}=window;return new i(r)},[r,n]);return S.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function Il(e){let{callback:t,disabled:n}=e;const r=Hc(t),o=S.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:i}=window;return new i(r)},[n]);return S.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function tO(e){return new Qc(wi(e),e)}function Bm(e,t,n){t===void 0&&(t=tO);const[r,o]=S.useState(null);function i(){o(l=>{if(!e)return null;if(e.isConnected===!1){var u;return(u=l??n)!=null?u:null}const c=t(e);return JSON.stringify(l)===JSON.stringify(c)?l:c})}const a=eO({callback(l){if(e)for(const u of l){const{type:c,target:d}=u;if(c==="childList"&&d instanceof HTMLElement&&d.contains(e)){i();break}}}}),s=Il({callback:i});return xr(()=>{i(),e?(s==null||s.observe(e),a==null||a.observe(document.body,{childList:!0,subtree:!0})):(s==null||s.disconnect(),a==null||a.disconnect())},[e]),r}function nO(e){const t=Mm(e);return wm(e,t)}const jm=[];function rO(e){const t=S.useRef(e),n=La(r=>e?r&&r!==jm&&e&&t.current&&e.parentNode===t.current.parentNode?r:Uc(e):jm,[e]);return S.useEffect(()=>{t.current=e},[e]),n}function oO(e){const[t,n]=S.useState(null),r=S.useRef(e),o=S.useCallback(i=>{const a=qc(i.target);a&&n(s=>s?(s.set(a,Jc(a)),new Map(s)):null)},[]);return S.useEffect(()=>{const i=r.current;if(e!==i){a(i);const s=e.map(l=>{const u=qc(l);return u?(u.addEventListener("scroll",o,{passive:!0}),[u,Jc(u)]):null}).filter(l=>l!=null);n(s.length?new Map(s):null),r.current=e}return()=>{a(e),a(i)};function a(s){s.forEach(l=>{const u=qc(l);u==null||u.removeEventListener("scroll",o)})}},[o,e]),S.useMemo(()=>e.length?t?Array.from(t.values()).reduce((i,a)=>Ci(i,a),pr):Rm(e):pr,[e,t])}function Vm(e,t){t===void 0&&(t=[]);const n=S.useRef(null);return S.useEffect(()=>{n.current=null},t),S.useEffect(()=>{const r=e!==pr;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?xl(e,n.current):pr}function iO(e){S.useEffect(()=>{if(!yl)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function aO(e,t){return S.useMemo(()=>e.reduce((n,r)=>{let{eventName:o,handler:i}=r;return n[o]=a=>{i(a,t)},n},{}),[e,t])}function Gm(e){return S.useMemo(()=>e?R_(e):null,[e])}const Wm=[];function sO(e,t){t===void 0&&(t=wi);const[n]=e,r=Gm(n?An(n):null),[o,i]=S.useState(Wm);function a(){i(()=>e.length?e.map(l=>_m(l)?r:new Qc(t(l),l)):Wm)}const s=Il({callback:a});return xr(()=>{s==null||s.disconnect(),a(),e.forEach(l=>s==null?void 0:s.observe(l))},[e]),o}function lO(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Pa(t)?t:e}function uO(e){let{measure:t}=e;const[n,r]=S.useState(null),o=S.useCallback(u=>{for(const{target:c}of u)if(Pa(c)){r(d=>{const v=t(c);return d?{...d,width:v.width,height:v.height}:v});break}},[t]),i=Il({callback:o}),a=S.useCallback(u=>{const c=lO(u);i==null||i.disconnect(),c&&(i==null||i.observe(c)),r(c?t(c):null)},[t,i]),[s,l]=El(a);return S.useMemo(()=>({nodeRef:s,rect:n,setRef:l}),[n,s,l])}const cO=[{sensor:ed,options:{}},{sensor:Pm,options:{}}],dO={current:{}},Sl={draggable:{measure:Im},droppable:{measure:Im,strategy:Va.WhileDragging,frequency:rd.Optimized},dragOverlay:{measure:wi}};class Ga extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const fO={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Ga,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Cl},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Sl,measureDroppableContainers:Cl,windowRect:null,measuringScheduled:!1},pO={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Cl,draggableNodes:new Map,over:null,measureDroppableContainers:Cl},Tl=S.createContext(pO),Hm=S.createContext(fO);function hO(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Ga}}}function gO(e,t){switch(t.type){case Zt.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Zt.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case Zt.DragEnd:case Zt.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Zt.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new Ga(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case Zt.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const a=new Ga(e.droppable.containers);return a.set(n,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:a}}}case Zt.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const i=new Ga(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function mO(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:o}=S.useContext(Tl),i=zc(r),a=zc(n==null?void 0:n.id);return S.useEffect(()=>{if(!t&&!r&&i&&a!=null){if(!Zc(i)||document.activeElement===i.target)return;const s=o.get(a);if(!s)return;const{activatorNode:l,node:u}=s;if(!l.current&&!u.current)return;requestAnimationFrame(()=>{for(const c of[l.current,u.current]){if(!c)continue;const d=i_(c);if(d){d.focus();break}}})}},[r,t,o,a,i]),null}function bO(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((o,i)=>i({transform:o,...r}),n):n}function vO(e){return S.useMemo(()=>({draggable:{...Sl.draggable,...e==null?void 0:e.draggable},droppable:{...Sl.droppable,...e==null?void 0:e.droppable},dragOverlay:{...Sl.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function yO(e){let{activeNode:t,measure:n,initialRect:r,config:o=!0}=e;const i=S.useRef(!1),{x:a,y:s}=typeof o=="boolean"?{x:o,y:o}:o;xr(()=>{if(!a&&!s||!t){i.current=!1;return}if(i.current||!r)return;const u=t==null?void 0:t.node.current;if(!u||u.isConnected===!1)return;const c=n(u),d=wm(c,r);if(a||(d.x=0),s||(d.y=0),i.current=!0,Math.abs(d.x)>0||Math.abs(d.y)>0){const v=Sm(u);v&&v.scrollBy({top:d.y,left:d.x})}},[t,a,s,r,n])}const zm=S.createContext({...pr,scaleX:1,scaleY:1});var fo;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(fo||(fo={}));const EO=S.memo(function(t){var n,r,o,i;let{id:a,accessibility:s,autoScroll:l=!0,children:u,sensors:c=cO,collisionDetection:d=w_,measuring:v,modifiers:y,...g}=t;const f=S.useReducer(gO,void 0,hO),[p,h]=f,[m,b]=d_(),[E,x]=S.useState(fo.Uninitialized),T=E===fo.Initialized,{draggable:{active:A,nodes:C,translate:O},droppable:{containers:B}}=p,M=A!=null?C.get(A):null,Q=S.useRef({initial:null,translated:null}),G=S.useMemo(()=>{var pt;return A!=null?{id:A,data:(pt=M==null?void 0:M.data)!=null?pt:dO,rect:Q}:null},[A,M]),W=S.useRef(null),[q,ee]=S.useState(null),[ue,se]=S.useState(null),ve=ka(g,Object.values(g)),H=Fa("DndDescribedBy",a),te=S.useMemo(()=>B.getEnabled(),[B]),re=vO(v),{droppableRects:$,measureDroppableContainers:oe,measuringScheduled:de}=$_(te,{dragging:T,dependencies:[O.x,O.y],config:re.droppable}),ie=J_(C,A),ge=S.useMemo(()=>ue?Yc(ue):null,[ue]),Ee=$e(),Ae=K_(ie,re.draggable.measure);yO({activeNode:A!=null?C.get(A):null,config:Ee.layoutShiftCompensation,initialRect:Ae,measure:re.draggable.measure});const me=Bm(ie,re.draggable.measure,Ae),ze=Bm(ie?ie.parentElement:null),V=S.useRef({activatorEvent:null,active:null,activeNode:ie,collisionRect:null,collisions:null,droppableRects:$,draggableNodes:C,draggingNode:null,draggingNodeRect:null,droppableContainers:B,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Ye=B.getNodeFor((n=V.current.over)==null?void 0:n.id),Le=uO({measure:re.dragOverlay.measure}),Ue=(r=Le.nodeRef.current)!=null?r:ie,Pt=T?(o=Le.rect)!=null?o:me:null,Nn=!!(Le.nodeRef.current&&Le.rect),kt=nO(Nn?null:me),Ut=Gm(Ue?An(Ue):null),mt=rO(T?Ye??ie:null),zn=sO(mt),cn=bO(y,{transform:{x:O.x-kt.x,y:O.y-kt.y,scaleX:1,scaleY:1},activatorEvent:ue,active:G,activeNodeRect:me,containerNodeRect:ze,draggingNodeRect:Pt,over:V.current.over,overlayNodeRect:Le.rect,scrollableAncestors:mt,scrollableAncestorRects:zn,windowRect:Ut}),So=ge?Ci(ge,O):null,To=oO(mt),Ao=Vm(To),Dn=Vm(To,[me]),Vt=Ci(cn,Ao),Xn=Pt?T_(Pt,cn):null,dn=G&&Xn?d({active:G,collisionRect:Xn,droppableRects:$,droppableContainers:te,pointerCoordinates:So}):null,fn=E_(dn,"id"),[Ct,Ur]=S.useState(null),Fr=Nn?cn:Ci(cn,Dn),_o=I_(Fr,(i=Ct==null?void 0:Ct.rect)!=null?i:null,me),pn=S.useRef(null),qr=S.useCallback((pt,At)=>{let{sensor:_t,options:rn}=At;if(W.current==null)return;const Lt=C.get(W.current);if(!Lt)return;const Gt=pt.nativeEvent,Kt=new _t({active:W.current,activeNode:Lt,event:Gt,options:rn,context:V,onStart(Wt){const xt=W.current;if(xt==null)return;const Zn=C.get(xt);if(!Zn)return;const{onDragStart:Yn}=ve.current,hn={activatorEvent:Gt,active:{id:xt,data:Zn.data,rect:Q}};Qe.unstable_batchedUpdates(()=>{Yn==null||Yn(hn),x(fo.Initializing),h({type:Zt.DragStart,initialCoordinates:Wt,active:xt}),m({type:"onDragStart",event:hn}),ee(pn.current),se(Gt)})},onMove(Wt){h({type:Zt.DragMove,coordinates:Wt})},onEnd:Pn(Zt.DragEnd),onCancel:Pn(Zt.DragCancel)});pn.current=Kt;function Pn(Wt){return async function(){const{active:Zn,collisions:Yn,over:hn,scrollAdjustedTranslate:R}=V.current;let k=null;if(Zn&&R){const{cancelDrop:j}=ve.current;k={activatorEvent:Gt,active:Zn,collisions:Yn,delta:R,over:hn},Wt===Zt.DragEnd&&typeof j=="function"&&await Promise.resolve(j(k))&&(Wt=Zt.DragCancel)}W.current=null,Qe.unstable_batchedUpdates(()=>{h({type:Wt}),x(fo.Uninitialized),Ur(null),ee(null),se(null),pn.current=null;const j=Wt===Zt.DragEnd?"onDragEnd":"onDragCancel";if(k){const _=ve.current[j];_==null||_(k),m({type:j,event:k})}})}}},[C]),we=S.useCallback((pt,At)=>(_t,rn)=>{const Lt=_t.nativeEvent,Gt=C.get(rn);if(W.current!==null||!Gt||Lt.dndKit||Lt.defaultPrevented)return;const Kt={active:Gt};pt(_t,At.options,Kt)===!0&&(Lt.dndKit={capturedBy:At.sensor},W.current=rn,qr(_t,At))},[C,qr]),mr=Q_(c,we);iO(c),xr(()=>{me&&E===fo.Initializing&&x(fo.Initialized)},[me,E]),S.useEffect(()=>{const{onDragMove:pt}=ve.current,{active:At,activatorEvent:_t,collisions:rn,over:Lt}=V.current;if(!At||!_t)return;const Gt={active:At,activatorEvent:_t,collisions:rn,delta:{x:Vt.x,y:Vt.y},over:Lt};Qe.unstable_batchedUpdates(()=>{pt==null||pt(Gt),m({type:"onDragMove",event:Gt})})},[Vt.x,Vt.y]),S.useEffect(()=>{const{active:pt,activatorEvent:At,collisions:_t,droppableContainers:rn,scrollAdjustedTranslate:Lt}=V.current;if(!pt||W.current==null||!At||!Lt)return;const{onDragOver:Gt}=ve.current,Kt=rn.get(fn),Pn=Kt&&Kt.rect.current?{id:Kt.id,rect:Kt.rect.current,data:Kt.data,disabled:Kt.disabled}:null,Wt={active:pt,activatorEvent:At,collisions:_t,delta:{x:Lt.x,y:Lt.y},over:Pn};Qe.unstable_batchedUpdates(()=>{Ur(Pn),Gt==null||Gt(Wt),m({type:"onDragOver",event:Wt})})},[fn]),xr(()=>{V.current={activatorEvent:ue,active:G,activeNode:ie,collisionRect:Xn,collisions:dn,droppableRects:$,draggableNodes:C,draggingNode:Ue,draggingNodeRect:Pt,droppableContainers:B,over:Ct,scrollableAncestors:mt,scrollAdjustedTranslate:Vt},Q.current={initial:Pt,translated:Xn}},[G,ie,dn,Xn,C,Ue,Pt,$,B,Ct,mt,Vt]),Y_({...Ee,delta:O,draggingRect:Xn,pointerCoordinates:So,scrollableAncestors:mt,scrollableAncestorRects:zn});const er=S.useMemo(()=>({active:G,activeNode:ie,activeNodeRect:me,activatorEvent:ue,collisions:dn,containerNodeRect:ze,dragOverlay:Le,draggableNodes:C,droppableContainers:B,droppableRects:$,over:Ct,measureDroppableContainers:oe,scrollableAncestors:mt,scrollableAncestorRects:zn,measuringConfiguration:re,measuringScheduled:de,windowRect:Ut}),[G,ie,me,ue,dn,ze,Le,C,B,$,Ct,oe,mt,zn,re,de,Ut]),wt=S.useMemo(()=>({activatorEvent:ue,activators:mr,active:G,activeNodeRect:me,ariaDescribedById:{draggable:H},dispatch:h,draggableNodes:C,over:Ct,measureDroppableContainers:oe}),[ue,mr,G,me,h,H,C,Ct,oe]);return S.createElement(xm.Provider,{value:b},S.createElement(Tl.Provider,{value:wt},S.createElement(Hm.Provider,{value:er},S.createElement(zm.Provider,{value:_o},u)),S.createElement(mO,{disabled:(s==null?void 0:s.restoreFocus)===!1})),S.createElement(h_,{...s,hiddenTextDescribedById:H}));function $e(){const pt=(q==null?void 0:q.autoScrollEnabled)===!1,At=typeof l=="object"?l.enabled===!1:l===!1,_t=T&&!pt&&!At;return typeof l=="object"?{...l,enabled:_t}:{enabled:_t}}}),xO=S.createContext(null),Xm="button",CO="Draggable";function wO(e){let{id:t,data:n,disabled:r=!1,attributes:o}=e;const i=Fa(CO),{activators:a,activatorEvent:s,active:l,activeNodeRect:u,ariaDescribedById:c,draggableNodes:d,over:v}=S.useContext(Tl),{role:y=Xm,roleDescription:g="draggable",tabIndex:f=0}=o??{},p=(l==null?void 0:l.id)===t,h=S.useContext(p?zm:xO),[m,b]=El(),[E,x]=El(),T=aO(a,t),A=ka(n);xr(()=>(d.set(t,{id:t,key:i,node:m,activatorNode:E,data:A}),()=>{const O=d.get(t);O&&O.key===i&&d.delete(t)}),[d,t]);const C=S.useMemo(()=>({role:y,tabIndex:f,"aria-disabled":r,"aria-pressed":p&&y===Xm?!0:void 0,"aria-roledescription":g,"aria-describedby":c.draggable}),[r,y,f,p,g,c.draggable]);return{active:l,activatorEvent:s,activeNodeRect:u,attributes:C,isDragging:p,listeners:r?void 0:T,node:m,over:v,setNodeRef:b,setActivatorNodeRef:x,transform:h}}function IO(){return S.useContext(Hm)}const SO="Droppable",TO={timeout:25};function AO(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:o}=e;const i=Fa(SO),{active:a,dispatch:s,over:l,measureDroppableContainers:u}=S.useContext(Tl),c=S.useRef({disabled:n}),d=S.useRef(!1),v=S.useRef(null),y=S.useRef(null),{disabled:g,updateMeasurementsFor:f,timeout:p}={...TO,...o},h=ka(f??r),m=S.useCallback(()=>{if(!d.current){d.current=!0;return}y.current!=null&&clearTimeout(y.current),y.current=setTimeout(()=>{u(Array.isArray(h.current)?h.current:[h.current]),y.current=null},p)},[p]),b=Il({callback:m,disabled:g||!a}),E=S.useCallback((C,O)=>{b&&(O&&(b.unobserve(O),d.current=!1),C&&b.observe(C))},[b]),[x,T]=El(E),A=ka(t);return S.useEffect(()=>{!b||!x.current||(b.disconnect(),d.current=!1,b.observe(x.current))},[x,b]),S.useEffect(()=>(s({type:Zt.RegisterDroppable,element:{id:r,key:i,disabled:n,node:x,rect:v,data:A}}),()=>s({type:Zt.UnregisterDroppable,key:i,id:r})),[r]),S.useEffect(()=>{n!==c.current.disabled&&(s({type:Zt.SetDroppableDisabled,id:r,key:i,disabled:n}),c.current.disabled=n)},[r,i,n,s]),{active:a,rect:v,isOver:(l==null?void 0:l.id)===r,node:x,over:l,setNodeRef:T}}function od(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function _O(e,t){return e.reduce((n,r,o)=>{const i=t.get(r);return i&&(n[o]=i),n},Array(e.length))}function Al(e){return e!==null&&e>=0}function OO(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function RO(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const Zm=e=>{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const i=od(t,r,n),a=t[o],s=i[o];return!s||!a?null:{x:s.left-a.left,y:s.top-a.top,scaleX:s.width/a.width,scaleY:s.height/a.height}},_l={scaleX:1,scaleY:1},NO=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:o,rects:i,overIndex:a}=e;const s=(t=i[n])!=null?t:r;if(!s)return null;if(o===n){const u=i[a];return u?{x:0,y:n<a?u.top+u.height-(s.top+s.height):u.top-s.top,..._l}:null}const l=DO(i,o,n);return o>n&&o<=a?{x:0,y:-s.height-l,..._l}:o<n&&o>=a?{x:0,y:s.height+l,..._l}:{x:0,y:0,..._l}};function DO(e,t,n){const r=e[t],o=e[t-1],i=e[t+1];return r?n<t?o?r.top-(o.top+o.height):i?i.top-(r.top+r.height):0:i?i.top-(r.top+r.height):o?r.top-(o.top+o.height):0:0}const Ym="Sortable",Um=S.createContext({activeIndex:-1,containerId:Ym,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Zm,disabled:{draggable:!1,droppable:!1}});function PO(e){let{children:t,id:n,items:r,strategy:o=Zm,disabled:i=!1}=e;const{active:a,dragOverlay:s,droppableRects:l,over:u,measureDroppableContainers:c}=IO(),d=Fa(Ym,n),v=s.rect!==null,y=S.useMemo(()=>r.map(T=>typeof T=="object"&&"id"in T?T.id:T),[r]),g=a!=null,f=a?y.indexOf(a.id):-1,p=u?y.indexOf(u.id):-1,h=S.useRef(y),m=!OO(y,h.current),b=p!==-1&&f===-1||m,E=RO(i);xr(()=>{m&&g&&c(y)},[m,y,g,c]),S.useEffect(()=>{h.current=y},[y]);const x=S.useMemo(()=>({activeIndex:f,containerId:d,disabled:E,disableTransforms:b,items:y,overIndex:p,useDragOverlay:v,sortedRects:_O(y,l),strategy:o}),[f,d,E.draggable,E.droppable,b,y,p,l,v,o]);return S.createElement(Um.Provider,{value:x},t)}const kO=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return od(n,r,o).indexOf(t)},LO=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:i,newIndex:a,previousItems:s,previousContainerId:l,transition:u}=e;return!u||!r||s!==i&&o===a?!1:n?!0:a!==o&&t===l},FO={duration:200,easing:"ease"},qm="transform",MO=Ma.Transition.toString({property:qm,duration:0,easing:"linear"}),BO={roleDescription:"sortable"};function jO(e){let{disabled:t,index:n,node:r,rect:o}=e;const[i,a]=S.useState(null),s=S.useRef(n);return xr(()=>{if(!t&&n!==s.current&&r.current){const l=o.current;if(l){const u=wi(r.current,{ignoreTransform:!0}),c={x:l.left-u.left,y:l.top-u.top,scaleX:l.width/u.width,scaleY:l.height/u.height};(c.x||c.y)&&a(c)}}n!==s.current&&(s.current=n)},[t,n,r,o]),S.useEffect(()=>{i&&a(null)},[i]),i}function VO(e){let{animateLayoutChanges:t=LO,attributes:n,disabled:r,data:o,getNewIndex:i=kO,id:a,strategy:s,resizeObserverConfig:l,transition:u=FO}=e;const{items:c,containerId:d,activeIndex:v,disabled:y,disableTransforms:g,sortedRects:f,overIndex:p,useDragOverlay:h,strategy:m}=S.useContext(Um),b=GO(r,y),E=c.indexOf(a),x=S.useMemo(()=>({sortable:{containerId:d,index:E,items:c},...o}),[d,o,E,c]),T=S.useMemo(()=>c.slice(c.indexOf(a)),[c,a]),{rect:A,node:C,isOver:O,setNodeRef:B}=AO({id:a,data:x,disabled:b.droppable,resizeObserverConfig:{updateMeasurementsFor:T,...l}}),{active:M,activatorEvent:Q,activeNodeRect:G,attributes:W,setNodeRef:q,listeners:ee,isDragging:ue,over:se,setActivatorNodeRef:ve,transform:H}=wO({id:a,data:x,attributes:{...BO,...n},disabled:b.draggable}),te=t_(B,q),re=!!M,$=re&&!g&&Al(v)&&Al(p),oe=!h&&ue,de=oe&&$?H:null,ge=$?de??(s??m)({rects:f,activeNodeRect:G,activeIndex:v,overIndex:p,index:E}):null,Ee=Al(v)&&Al(p)?i({id:a,items:c,activeIndex:v,overIndex:p}):E,Ae=M==null?void 0:M.id,me=S.useRef({activeId:Ae,items:c,newIndex:Ee,containerId:d}),ze=c!==me.current.items,V=t({active:M,containerId:d,isDragging:ue,isSorting:re,id:a,index:E,items:c,newIndex:me.current.newIndex,previousItems:me.current.items,previousContainerId:me.current.containerId,transition:u,wasDragging:me.current.activeId!=null}),Ye=jO({disabled:!V,index:E,node:C,rect:A});return S.useEffect(()=>{re&&me.current.newIndex!==Ee&&(me.current.newIndex=Ee),d!==me.current.containerId&&(me.current.containerId=d),c!==me.current.items&&(me.current.items=c)},[re,Ee,d,c]),S.useEffect(()=>{if(Ae===me.current.activeId)return;if(Ae!=null&&me.current.activeId==null){me.current.activeId=Ae;return}const Ue=setTimeout(()=>{me.current.activeId=Ae},50);return()=>clearTimeout(Ue)},[Ae]),{active:M,activeIndex:v,attributes:W,data:x,rect:A,index:E,newIndex:Ee,items:c,isOver:O,isSorting:re,isDragging:ue,listeners:ee,node:C,overIndex:p,over:se,setNodeRef:te,setActivatorNodeRef:ve,setDroppableNodeRef:B,setDraggableNodeRef:q,transform:Ye??ge,transition:Le()};function Le(){if(Ye||ze&&me.current.newIndex===E)return MO;if(!(oe&&!Zc(Q)||!u)&&(re||V))return Ma.Transition.toString({...u,property:qm})}}function GO(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e==null?void 0:e.draggable)!=null?n:t.draggable,droppable:(r=e==null?void 0:e.droppable)!=null?r:t.droppable}}at.Down,at.Right,at.Up,at.Left;const WO=w.styled(w.Stack)`
|
|
462
|
+
`},p_={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function h_(e){let{announcements:t=p_,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=f_}=e;const{announce:i,announcement:a}=u_(),l=Fa("DndLiveRegion"),[s,u]=S.useState(!1);if(S.useEffect(()=>{u(!0)},[]),c_(S.useMemo(()=>({onDragStart(f){let{active:b}=f;i(t.onDragStart({active:b}))},onDragMove(f){let{active:b,over:y}=f;t.onDragMove&&i(t.onDragMove({active:b,over:y}))},onDragOver(f){let{active:b,over:y}=f;i(t.onDragOver({active:b,over:y}))},onDragEnd(f){let{active:b,over:y}=f;i(t.onDragEnd({active:b,over:y}))},onDragCancel(f){let{active:b,over:y}=f;i(t.onDragCancel({active:b,over:y}))}}),[i,t])),!s)return null;const c=S.createElement(S.Fragment,null,S.createElement(s_,{id:r,value:o.draggable}),S.createElement(l_,{id:l,announcement:a}));return n?Qe.createPortal(c,n):c}var Zt;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Zt||(Zt={}));function Cl(){}function g_(e,t){return S.useMemo(()=>({sensor:e,options:{}}),[e,t])}function m_(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return S.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const pr=Object.freeze({x:0,y:0});function b_(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function v_(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function y_(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function E_(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function Cm(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const x_=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=Cm(t,t.left,t.top),i=[];for(const a of r){const{id:l}=a,s=n.get(l);if(s){const u=b_(Cm(s),o);i.push({id:l,data:{droppableContainer:a,value:u}})}}return i.sort(v_)};function C_(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-r,l=i-n;if(r<o&&n<i){const s=t.width*t.height,u=e.width*e.height,c=a*l,f=c/(s+u-c);return Number(f.toFixed(4))}return 0}const w_=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const i of r){const{id:a}=i,l=n.get(a);if(l){const s=C_(l,t);s>0&&o.push({id:a,data:{droppableContainer:i,value:s}})}}return o.sort(y_)};function I_(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function wm(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:pr}function S_(e){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return o.reduce((a,l)=>({...a,top:a.top+e*l.y,bottom:a.bottom+e*l.y,left:a.left+e*l.x,right:a.right+e*l.x}),{...n})}}const T_=S_(1);function A_(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function __(e,t,n){const r=A_(t);if(!r)return e;const{scaleX:o,scaleY:i,x:a,y:l}=r,s=e.left-a-(1-o)*parseFloat(n),u=e.top-l-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),c=o?e.width/o:e.width,f=i?e.height/i:e.height;return{width:c,height:f,top:u,right:s+c,bottom:u+f,left:s}}const O_={ignoreTransform:!1};function wi(e,t){t===void 0&&(t=O_);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:u,transformOrigin:c}=An(e).getComputedStyle(e);u&&(n=__(n,u,c))}const{top:r,left:o,width:i,height:a,bottom:l,right:s}=n;return{top:r,left:o,width:i,height:a,bottom:l,right:s}}function Im(e){return wi(e,{ignoreTransform:!0})}function R_(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function N_(e,t){return t===void 0&&(t=An(e).getComputedStyle(e)),t.position==="fixed"}function D_(e,t){t===void 0&&(t=An(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(o=>{const i=t[o];return typeof i=="string"?n.test(i):!1})}function Uc(e,t){const n=[];function r(o){if(t!=null&&n.length>=t||!o)return n;if(Wc(o)&&o.scrollingElement!=null&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!Pa(o)||vm(o)||n.includes(o))return n;const i=An(e).getComputedStyle(o);return o!==e&&D_(o,i)&&n.push(o),N_(o,i)?n:r(o.parentNode)}return e?r(e):n}function Sm(e){const[t]=Uc(e,1);return t??null}function qc(e){return!yl||!e?null:Ei(e)?e:Gc(e)?Wc(e)||e===xi(e).scrollingElement?window:Pa(e)?e:null:null}function Tm(e){return Ei(e)?e.scrollX:e.scrollLeft}function Am(e){return Ei(e)?e.scrollY:e.scrollTop}function Jc(e){return{x:Tm(e),y:Am(e)}}var Jt;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Jt||(Jt={}));function _m(e){return!yl||!e?!1:e===document.scrollingElement}function Om(e){const t={x:0,y:0},n=_m(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},o=e.scrollTop<=t.y,i=e.scrollLeft<=t.x,a=e.scrollTop>=r.y,l=e.scrollLeft>=r.x;return{isTop:o,isLeft:i,isBottom:a,isRight:l,maxScroll:r,minScroll:t}}const P_={x:.2,y:.2};function k_(e,t,n,r,o){let{top:i,left:a,right:l,bottom:s}=n;r===void 0&&(r=10),o===void 0&&(o=P_);const{isTop:u,isBottom:c,isLeft:f,isRight:b}=Om(e),y={x:0,y:0},v={x:0,y:0},d={height:t.height*o.y,width:t.width*o.x};return!u&&i<=t.top+d.height?(y.y=Jt.Backward,v.y=r*Math.abs((t.top+d.height-i)/d.height)):!c&&s>=t.bottom-d.height&&(y.y=Jt.Forward,v.y=r*Math.abs((t.bottom-d.height-s)/d.height)),!b&&l>=t.right-d.width?(y.x=Jt.Forward,v.x=r*Math.abs((t.right-d.width-l)/d.width)):!f&&a<=t.left+d.width&&(y.x=Jt.Backward,v.x=r*Math.abs((t.left+d.width-a)/d.width)),{direction:y,speed:v}}function L_(e){if(e===document.scrollingElement){const{innerWidth:i,innerHeight:a}=window;return{top:0,left:0,right:i,bottom:a,width:i,height:a}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function Rm(e){return e.reduce((t,n)=>Ci(t,Jc(n)),pr)}function F_(e){return e.reduce((t,n)=>t+Tm(n),0)}function M_(e){return e.reduce((t,n)=>t+Am(n),0)}function B_(e,t){if(t===void 0&&(t=wi),!e)return;const{top:n,left:r,bottom:o,right:i}=t(e);Sm(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const j_=[["x",["left","right"],F_],["y",["top","bottom"],M_]];class Qc{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=Uc(n),o=Rm(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[i,a,l]of j_)for(const s of a)Object.defineProperty(this,s,{get:()=>{const u=l(r),c=o[i]-u;return this.rect[s]+c},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Ba{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var o;(o=this.target)==null||o.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function V_(e){const{EventTarget:t}=An(e);return e instanceof t?e:xi(e)}function $c(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var Jn;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Jn||(Jn={}));function Nm(e){e.preventDefault()}function G_(e){e.stopPropagation()}var st;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"})(st||(st={}));const Dm={start:[st.Space,st.Enter],cancel:[st.Esc],end:[st.Space,st.Enter]},W_=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case st.Right:return{...n,x:n.x+25};case st.Left:return{...n,x:n.x-25};case st.Down:return{...n,y:n.y+25};case st.Up:return{...n,y:n.y-25}}};class Pm{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new Ba(xi(n)),this.windowListeners=new Ba(An(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Jn.Resize,this.handleCancel),this.windowListeners.add(Jn.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Jn.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&B_(r),n(pr)}handleKeyDown(t){if(Zc(t)){const{active:n,context:r,options:o}=this.props,{keyboardCodes:i=Dm,coordinateGetter:a=W_,scrollBehavior:l="smooth"}=o,{code:s}=t;if(i.end.includes(s)){this.handleEnd(t);return}if(i.cancel.includes(s)){this.handleCancel(t);return}const{collisionRect:u}=r.current,c=u?{x:u.left,y:u.top}:pr;this.referenceCoordinates||(this.referenceCoordinates=c);const f=a(t,{active:n,context:r.current,currentCoordinates:c});if(f){const b=xl(f,c),y={x:0,y:0},{scrollableAncestors:v}=r.current;for(const d of v){const p=t.code,{isTop:h,isRight:g,isLeft:m,isBottom:E,maxScroll:x,minScroll:A}=Om(d),T=L_(d),C={x:Math.min(p===st.Right?T.right-T.width/2:T.right,Math.max(p===st.Right?T.left:T.left+T.width/2,f.x)),y:Math.min(p===st.Down?T.bottom-T.height/2:T.bottom,Math.max(p===st.Down?T.top:T.top+T.height/2,f.y))},O=p===st.Right&&!g||p===st.Left&&!m,M=p===st.Down&&!E||p===st.Up&&!h;if(O&&C.x!==f.x){const B=d.scrollLeft+b.x,U=p===st.Right&&B<=x.x||p===st.Left&&B>=A.x;if(U&&!b.y){d.scrollTo({left:B,behavior:l});return}U?y.x=d.scrollLeft-B:y.x=p===st.Right?d.scrollLeft-x.x:d.scrollLeft-A.x,y.x&&d.scrollBy({left:-y.x,behavior:l});break}else if(M&&C.y!==f.y){const B=d.scrollTop+b.y,U=p===st.Down&&B<=x.y||p===st.Up&&B>=A.y;if(U&&!b.x){d.scrollTo({top:B,behavior:l});return}U?y.y=d.scrollTop-B:y.y=p===st.Down?d.scrollTop-x.y:d.scrollTop-A.y,y.y&&d.scrollBy({top:-y.y,behavior:l});break}}this.handleMove(t,Ci(xl(f,this.referenceCoordinates),y))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}Pm.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=Dm,onActivation:o}=t,{active:i}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const l=i.activatorNode.current;return l&&e.target!==l?!1:(e.preventDefault(),o==null||o({event:e.nativeEvent}),!0)}return!1}}];function km(e){return!!(e&&"distance"in e)}function Lm(e){return!!(e&&"delay"in e)}class Kc{constructor(t,n,r){var o;r===void 0&&(r=V_(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:i}=t,{target:a}=i;this.props=t,this.events=n,this.document=xi(a),this.documentListeners=new Ba(this.document),this.listeners=new Ba(r),this.windowListeners=new Ba(An(a)),this.initialCoordinates=(o=Yc(i))!=null?o:pr,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(Jn.Resize,this.handleCancel),this.windowListeners.add(Jn.DragStart,Nm),this.windowListeners.add(Jn.VisibilityChange,this.handleCancel),this.windowListeners.add(Jn.ContextMenu,Nm),this.documentListeners.add(Jn.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Lm(n)){this.timeoutId=setTimeout(this.handleStart,n.delay);return}if(km(n))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(Jn.Click,G_,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Jn.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:o,props:i}=this,{onMove:a,options:{activationConstraint:l}}=i;if(!o)return;const s=(n=Yc(t))!=null?n:pr,u=xl(o,s);if(!r&&l){if(km(l)){if(l.tolerance!=null&&$c(u,l.tolerance))return this.handleCancel();if($c(u,l.distance))return this.handleStart()}return Lm(l)&&$c(u,l.tolerance)?this.handleCancel():void 0}t.cancelable&&t.preventDefault(),a(s)}handleEnd(){const{onEnd:t}=this.props;this.detach(),t()}handleCancel(){const{onCancel:t}=this.props;this.detach(),t()}handleKeydown(t){t.code===st.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const H_={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class ed extends Kc{constructor(t){const{event:n}=t,r=xi(n.target);super(t,H_,r)}}ed.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const z_={move:{name:"mousemove"},end:{name:"mouseup"}};var td;(function(e){e[e.RightClick=2]="RightClick"})(td||(td={}));class X_ extends Kc{constructor(t){super(t,z_,xi(t.event.target))}}X_.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===td.RightClick?!1:(r==null||r({event:n}),!0)}}];const nd={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class Z_ extends Kc{constructor(t){super(t,nd)}static setup(){return window.addEventListener(nd.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(nd.move.name,t)};function t(){}}}Z_.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return o.length>1?!1:(r==null||r({event:n}),!0)}}];var ja;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(ja||(ja={}));var wl;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(wl||(wl={}));function Y_(e){let{acceleration:t,activator:n=ja.Pointer,canScroll:r,draggingRect:o,enabled:i,interval:a=5,order:l=wl.TreeOrder,pointerCoordinates:s,scrollableAncestors:u,scrollableAncestorRects:c,delta:f,threshold:b}=e;const y=q_({delta:f,disabled:!i}),[v,d]=n_(),p=S.useRef({x:0,y:0}),h=S.useRef({x:0,y:0}),g=S.useMemo(()=>{switch(n){case ja.Pointer:return s?{top:s.y,bottom:s.y,left:s.x,right:s.x}:null;case ja.DraggableRect:return o}},[n,o,s]),m=S.useRef(null),E=S.useCallback(()=>{const A=m.current;if(!A)return;const T=p.current.x*h.current.x,C=p.current.y*h.current.y;A.scrollBy(T,C)},[]),x=S.useMemo(()=>l===wl.TreeOrder?[...u].reverse():u,[l,u]);S.useEffect(()=>{if(!i||!u.length||!g){d();return}for(const A of x){if((r==null?void 0:r(A))===!1)continue;const T=u.indexOf(A),C=c[T];if(!C)continue;const{direction:O,speed:M}=k_(A,C,g,t,b);for(const B of["x","y"])y[B][O[B]]||(M[B]=0,O[B]=0);if(M.x>0||M.y>0){d(),m.current=A,v(E,a),p.current=M,h.current=O;return}}p.current={x:0,y:0},h.current={x:0,y:0},d()},[t,E,r,d,i,a,JSON.stringify(g),JSON.stringify(y),v,u,x,c,JSON.stringify(b)])}const U_={x:{[Jt.Backward]:!1,[Jt.Forward]:!1},y:{[Jt.Backward]:!1,[Jt.Forward]:!1}};function q_(e){let{delta:t,disabled:n}=e;const r=zc(t);return La(o=>{if(n||!r||!o)return U_;const i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[Jt.Backward]:o.x[Jt.Backward]||i.x===-1,[Jt.Forward]:o.x[Jt.Forward]||i.x===1},y:{[Jt.Backward]:o.y[Jt.Backward]||i.y===-1,[Jt.Forward]:o.y[Jt.Forward]||i.y===1}}},[n,t,r])}function J_(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return La(o=>{var i;return t==null?null:(i=r??o)!=null?i:null},[r,t])}function Q_(e,t){return S.useMemo(()=>e.reduce((n,r)=>{const{sensor:o}=r,i=o.activators.map(a=>({eventName:a.eventName,handler:t(a.handler,r)}));return[...n,...i]},[]),[e,t])}var Va;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Va||(Va={}));var rd;(function(e){e.Optimized="optimized"})(rd||(rd={}));const Fm=new Map;function $_(e,t){let{dragging:n,dependencies:r,config:o}=t;const[i,a]=S.useState(null),{frequency:l,measure:s,strategy:u}=o,c=S.useRef(e),f=p(),b=ka(f),y=S.useCallback(function(h){h===void 0&&(h=[]),!b.current&&a(g=>g===null?h:g.concat(h.filter(m=>!g.includes(m))))},[b]),v=S.useRef(null),d=La(h=>{if(f&&!n)return Fm;if(!h||h===Fm||c.current!==e||i!=null){const g=new Map;for(let m of e){if(!m)continue;if(i&&i.length>0&&!i.includes(m.id)&&m.rect.current){g.set(m.id,m.rect.current);continue}const E=m.node.current,x=E?new Qc(s(E),E):null;m.rect.current=x,x&&g.set(m.id,x)}return g}return h},[e,i,n,f,s]);return S.useEffect(()=>{c.current=e},[e]),S.useEffect(()=>{f||y()},[n,f]),S.useEffect(()=>{i&&i.length>0&&a(null)},[JSON.stringify(i)]),S.useEffect(()=>{f||typeof l!="number"||v.current!==null||(v.current=setTimeout(()=>{y(),v.current=null},l))},[l,f,y,...r]),{droppableRects:d,measureDroppableContainers:y,measuringScheduled:i!=null};function p(){switch(u){case Va.Always:return!1;case Va.BeforeDragging:return n;default:return!n}}}function Mm(e,t){return La(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function K_(e,t){return Mm(e,t)}function eO(e){let{callback:t,disabled:n}=e;const r=Hc(t),o=S.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:i}=window;return new i(r)},[r,n]);return S.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function Il(e){let{callback:t,disabled:n}=e;const r=Hc(t),o=S.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:i}=window;return new i(r)},[n]);return S.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function tO(e){return new Qc(wi(e),e)}function Bm(e,t,n){t===void 0&&(t=tO);const[r,o]=S.useState(null);function i(){o(s=>{if(!e)return null;if(e.isConnected===!1){var u;return(u=s??n)!=null?u:null}const c=t(e);return JSON.stringify(s)===JSON.stringify(c)?s:c})}const a=eO({callback(s){if(e)for(const u of s){const{type:c,target:f}=u;if(c==="childList"&&f instanceof HTMLElement&&f.contains(e)){i();break}}}}),l=Il({callback:i});return xr(()=>{i(),e?(l==null||l.observe(e),a==null||a.observe(document.body,{childList:!0,subtree:!0})):(l==null||l.disconnect(),a==null||a.disconnect())},[e]),r}function nO(e){const t=Mm(e);return wm(e,t)}const jm=[];function rO(e){const t=S.useRef(e),n=La(r=>e?r&&r!==jm&&e&&t.current&&e.parentNode===t.current.parentNode?r:Uc(e):jm,[e]);return S.useEffect(()=>{t.current=e},[e]),n}function oO(e){const[t,n]=S.useState(null),r=S.useRef(e),o=S.useCallback(i=>{const a=qc(i.target);a&&n(l=>l?(l.set(a,Jc(a)),new Map(l)):null)},[]);return S.useEffect(()=>{const i=r.current;if(e!==i){a(i);const l=e.map(s=>{const u=qc(s);return u?(u.addEventListener("scroll",o,{passive:!0}),[u,Jc(u)]):null}).filter(s=>s!=null);n(l.length?new Map(l):null),r.current=e}return()=>{a(e),a(i)};function a(l){l.forEach(s=>{const u=qc(s);u==null||u.removeEventListener("scroll",o)})}},[o,e]),S.useMemo(()=>e.length?t?Array.from(t.values()).reduce((i,a)=>Ci(i,a),pr):Rm(e):pr,[e,t])}function Vm(e,t){t===void 0&&(t=[]);const n=S.useRef(null);return S.useEffect(()=>{n.current=null},t),S.useEffect(()=>{const r=e!==pr;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?xl(e,n.current):pr}function iO(e){S.useEffect(()=>{if(!yl)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function aO(e,t){return S.useMemo(()=>e.reduce((n,r)=>{let{eventName:o,handler:i}=r;return n[o]=a=>{i(a,t)},n},{}),[e,t])}function Gm(e){return S.useMemo(()=>e?R_(e):null,[e])}const Wm=[];function sO(e,t){t===void 0&&(t=wi);const[n]=e,r=Gm(n?An(n):null),[o,i]=S.useState(Wm);function a(){i(()=>e.length?e.map(s=>_m(s)?r:new Qc(t(s),s)):Wm)}const l=Il({callback:a});return xr(()=>{l==null||l.disconnect(),a(),e.forEach(s=>l==null?void 0:l.observe(s))},[e]),o}function lO(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Pa(t)?t:e}function uO(e){let{measure:t}=e;const[n,r]=S.useState(null),o=S.useCallback(u=>{for(const{target:c}of u)if(Pa(c)){r(f=>{const b=t(c);return f?{...f,width:b.width,height:b.height}:b});break}},[t]),i=Il({callback:o}),a=S.useCallback(u=>{const c=lO(u);i==null||i.disconnect(),c&&(i==null||i.observe(c)),r(c?t(c):null)},[t,i]),[l,s]=El(a);return S.useMemo(()=>({nodeRef:l,rect:n,setRef:s}),[n,l,s])}const cO=[{sensor:ed,options:{}},{sensor:Pm,options:{}}],dO={current:{}},Sl={draggable:{measure:Im},droppable:{measure:Im,strategy:Va.WhileDragging,frequency:rd.Optimized},dragOverlay:{measure:wi}};class Ga extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const fO={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Ga,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Cl},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Sl,measureDroppableContainers:Cl,windowRect:null,measuringScheduled:!1},pO={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Cl,draggableNodes:new Map,over:null,measureDroppableContainers:Cl},Tl=S.createContext(pO),Hm=S.createContext(fO);function hO(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Ga}}}function gO(e,t){switch(t.type){case Zt.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Zt.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case Zt.DragEnd:case Zt.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Zt.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new Ga(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case Zt.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const a=new Ga(e.droppable.containers);return a.set(n,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:a}}}case Zt.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const i=new Ga(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function mO(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:o}=S.useContext(Tl),i=zc(r),a=zc(n==null?void 0:n.id);return S.useEffect(()=>{if(!t&&!r&&i&&a!=null){if(!Zc(i)||document.activeElement===i.target)return;const l=o.get(a);if(!l)return;const{activatorNode:s,node:u}=l;if(!s.current&&!u.current)return;requestAnimationFrame(()=>{for(const c of[s.current,u.current]){if(!c)continue;const f=i_(c);if(f){f.focus();break}}})}},[r,t,o,a,i]),null}function bO(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((o,i)=>i({transform:o,...r}),n):n}function vO(e){return S.useMemo(()=>({draggable:{...Sl.draggable,...e==null?void 0:e.draggable},droppable:{...Sl.droppable,...e==null?void 0:e.droppable},dragOverlay:{...Sl.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function yO(e){let{activeNode:t,measure:n,initialRect:r,config:o=!0}=e;const i=S.useRef(!1),{x:a,y:l}=typeof o=="boolean"?{x:o,y:o}:o;xr(()=>{if(!a&&!l||!t){i.current=!1;return}if(i.current||!r)return;const u=t==null?void 0:t.node.current;if(!u||u.isConnected===!1)return;const c=n(u),f=wm(c,r);if(a||(f.x=0),l||(f.y=0),i.current=!0,Math.abs(f.x)>0||Math.abs(f.y)>0){const b=Sm(u);b&&b.scrollBy({top:f.y,left:f.x})}},[t,a,l,r,n])}const zm=S.createContext({...pr,scaleX:1,scaleY:1});var fo;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(fo||(fo={}));const EO=S.memo(function(t){var n,r,o,i;let{id:a,accessibility:l,autoScroll:s=!0,children:u,sensors:c=cO,collisionDetection:f=w_,measuring:b,modifiers:y,...v}=t;const d=S.useReducer(gO,void 0,hO),[p,h]=d,[g,m]=d_(),[E,x]=S.useState(fo.Uninitialized),A=E===fo.Initialized,{draggable:{active:T,nodes:C,translate:O},droppable:{containers:M}}=p,B=T!=null?C.get(T):null,U=S.useRef({initial:null,translated:null}),G=S.useMemo(()=>{var ht;return T!=null?{id:T,data:(ht=B==null?void 0:B.data)!=null?ht:dO,rect:U}:null},[T,B]),X=S.useRef(null),[q,$]=S.useState(null),[ue,se]=S.useState(null),ve=ka(v,Object.values(v)),W=Fa("DndDescribedBy",a),te=S.useMemo(()=>M.getEnabled(),[M]),re=vO(b),{droppableRects:K,measureDroppableContainers:oe,measuringScheduled:de}=$_(te,{dragging:A,dependencies:[O.x,O.y],config:re.droppable}),ie=J_(C,T),ge=S.useMemo(()=>ue?Yc(ue):null,[ue]),Ee=$e(),Ae=K_(ie,re.draggable.measure);yO({activeNode:T!=null?C.get(T):null,config:Ee.layoutShiftCompensation,initialRect:Ae,measure:re.draggable.measure});const me=Bm(ie,re.draggable.measure,Ae),ze=Bm(ie?ie.parentElement:null),V=S.useRef({activatorEvent:null,active:null,activeNode:ie,collisionRect:null,collisions:null,droppableRects:K,draggableNodes:C,draggingNode:null,draggingNodeRect:null,droppableContainers:M,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Ye=M.getNodeFor((n=V.current.over)==null?void 0:n.id),Le=uO({measure:re.dragOverlay.measure}),Ue=(r=Le.nodeRef.current)!=null?r:ie,Pt=A?(o=Le.rect)!=null?o:me:null,Nn=!!(Le.nodeRef.current&&Le.rect),kt=nO(Nn?null:me),Ut=Gm(Ue?An(Ue):null),mt=rO(A?Ye??ie:null),zn=sO(mt),cn=bO(y,{transform:{x:O.x-kt.x,y:O.y-kt.y,scaleX:1,scaleY:1},activatorEvent:ue,active:G,activeNodeRect:me,containerNodeRect:ze,draggingNodeRect:Pt,over:V.current.over,overlayNodeRect:Le.rect,scrollableAncestors:mt,scrollableAncestorRects:zn,windowRect:Ut}),So=ge?Ci(ge,O):null,To=oO(mt),Ao=Vm(To),Dn=Vm(To,[me]),Vt=Ci(cn,Ao),Xn=Pt?T_(Pt,cn):null,dn=G&&Xn?f({active:G,collisionRect:Xn,droppableRects:K,droppableContainers:te,pointerCoordinates:So}):null,fn=E_(dn,"id"),[Ct,Ur]=S.useState(null),Fr=Nn?cn:Ci(cn,Dn),_o=I_(Fr,(i=Ct==null?void 0:Ct.rect)!=null?i:null,me),pn=S.useRef(null),qr=S.useCallback((ht,At)=>{let{sensor:_t,options:rn}=At;if(X.current==null)return;const Lt=C.get(X.current);if(!Lt)return;const Gt=ht.nativeEvent,Kt=new _t({active:X.current,activeNode:Lt,event:Gt,options:rn,context:V,onStart(Wt){const xt=X.current;if(xt==null)return;const Zn=C.get(xt);if(!Zn)return;const{onDragStart:Yn}=ve.current,hn={activatorEvent:Gt,active:{id:xt,data:Zn.data,rect:U}};Qe.unstable_batchedUpdates(()=>{Yn==null||Yn(hn),x(fo.Initializing),h({type:Zt.DragStart,initialCoordinates:Wt,active:xt}),g({type:"onDragStart",event:hn}),$(pn.current),se(Gt)})},onMove(Wt){h({type:Zt.DragMove,coordinates:Wt})},onEnd:Pn(Zt.DragEnd),onCancel:Pn(Zt.DragCancel)});pn.current=Kt;function Pn(Wt){return async function(){const{active:Zn,collisions:Yn,over:hn,scrollAdjustedTranslate:R}=V.current;let k=null;if(Zn&&R){const{cancelDrop:j}=ve.current;k={activatorEvent:Gt,active:Zn,collisions:Yn,delta:R,over:hn},Wt===Zt.DragEnd&&typeof j=="function"&&await Promise.resolve(j(k))&&(Wt=Zt.DragCancel)}X.current=null,Qe.unstable_batchedUpdates(()=>{h({type:Wt}),x(fo.Uninitialized),Ur(null),$(null),se(null),pn.current=null;const j=Wt===Zt.DragEnd?"onDragEnd":"onDragCancel";if(k){const _=ve.current[j];_==null||_(k),g({type:j,event:k})}})}}},[C]),we=S.useCallback((ht,At)=>(_t,rn)=>{const Lt=_t.nativeEvent,Gt=C.get(rn);if(X.current!==null||!Gt||Lt.dndKit||Lt.defaultPrevented)return;const Kt={active:Gt};ht(_t,At.options,Kt)===!0&&(Lt.dndKit={capturedBy:At.sensor},X.current=rn,qr(_t,At))},[C,qr]),mr=Q_(c,we);iO(c),xr(()=>{me&&E===fo.Initializing&&x(fo.Initialized)},[me,E]),S.useEffect(()=>{const{onDragMove:ht}=ve.current,{active:At,activatorEvent:_t,collisions:rn,over:Lt}=V.current;if(!At||!_t)return;const Gt={active:At,activatorEvent:_t,collisions:rn,delta:{x:Vt.x,y:Vt.y},over:Lt};Qe.unstable_batchedUpdates(()=>{ht==null||ht(Gt),g({type:"onDragMove",event:Gt})})},[Vt.x,Vt.y]),S.useEffect(()=>{const{active:ht,activatorEvent:At,collisions:_t,droppableContainers:rn,scrollAdjustedTranslate:Lt}=V.current;if(!ht||X.current==null||!At||!Lt)return;const{onDragOver:Gt}=ve.current,Kt=rn.get(fn),Pn=Kt&&Kt.rect.current?{id:Kt.id,rect:Kt.rect.current,data:Kt.data,disabled:Kt.disabled}:null,Wt={active:ht,activatorEvent:At,collisions:_t,delta:{x:Lt.x,y:Lt.y},over:Pn};Qe.unstable_batchedUpdates(()=>{Ur(Pn),Gt==null||Gt(Wt),g({type:"onDragOver",event:Wt})})},[fn]),xr(()=>{V.current={activatorEvent:ue,active:G,activeNode:ie,collisionRect:Xn,collisions:dn,droppableRects:K,draggableNodes:C,draggingNode:Ue,draggingNodeRect:Pt,droppableContainers:M,over:Ct,scrollableAncestors:mt,scrollAdjustedTranslate:Vt},U.current={initial:Pt,translated:Xn}},[G,ie,dn,Xn,C,Ue,Pt,K,M,Ct,mt,Vt]),Y_({...Ee,delta:O,draggingRect:Xn,pointerCoordinates:So,scrollableAncestors:mt,scrollableAncestorRects:zn});const er=S.useMemo(()=>({active:G,activeNode:ie,activeNodeRect:me,activatorEvent:ue,collisions:dn,containerNodeRect:ze,dragOverlay:Le,draggableNodes:C,droppableContainers:M,droppableRects:K,over:Ct,measureDroppableContainers:oe,scrollableAncestors:mt,scrollableAncestorRects:zn,measuringConfiguration:re,measuringScheduled:de,windowRect:Ut}),[G,ie,me,ue,dn,ze,Le,C,M,K,Ct,oe,mt,zn,re,de,Ut]),wt=S.useMemo(()=>({activatorEvent:ue,activators:mr,active:G,activeNodeRect:me,ariaDescribedById:{draggable:W},dispatch:h,draggableNodes:C,over:Ct,measureDroppableContainers:oe}),[ue,mr,G,me,h,W,C,Ct,oe]);return S.createElement(xm.Provider,{value:m},S.createElement(Tl.Provider,{value:wt},S.createElement(Hm.Provider,{value:er},S.createElement(zm.Provider,{value:_o},u)),S.createElement(mO,{disabled:(l==null?void 0:l.restoreFocus)===!1})),S.createElement(h_,{...l,hiddenTextDescribedById:W}));function $e(){const ht=(q==null?void 0:q.autoScrollEnabled)===!1,At=typeof s=="object"?s.enabled===!1:s===!1,_t=A&&!ht&&!At;return typeof s=="object"?{...s,enabled:_t}:{enabled:_t}}}),xO=S.createContext(null),Xm="button",CO="Draggable";function wO(e){let{id:t,data:n,disabled:r=!1,attributes:o}=e;const i=Fa(CO),{activators:a,activatorEvent:l,active:s,activeNodeRect:u,ariaDescribedById:c,draggableNodes:f,over:b}=S.useContext(Tl),{role:y=Xm,roleDescription:v="draggable",tabIndex:d=0}=o??{},p=(s==null?void 0:s.id)===t,h=S.useContext(p?zm:xO),[g,m]=El(),[E,x]=El(),A=aO(a,t),T=ka(n);xr(()=>(f.set(t,{id:t,key:i,node:g,activatorNode:E,data:T}),()=>{const O=f.get(t);O&&O.key===i&&f.delete(t)}),[f,t]);const C=S.useMemo(()=>({role:y,tabIndex:d,"aria-disabled":r,"aria-pressed":p&&y===Xm?!0:void 0,"aria-roledescription":v,"aria-describedby":c.draggable}),[r,y,d,p,v,c.draggable]);return{active:s,activatorEvent:l,activeNodeRect:u,attributes:C,isDragging:p,listeners:r?void 0:A,node:g,over:b,setNodeRef:m,setActivatorNodeRef:x,transform:h}}function IO(){return S.useContext(Hm)}const SO="Droppable",TO={timeout:25};function AO(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:o}=e;const i=Fa(SO),{active:a,dispatch:l,over:s,measureDroppableContainers:u}=S.useContext(Tl),c=S.useRef({disabled:n}),f=S.useRef(!1),b=S.useRef(null),y=S.useRef(null),{disabled:v,updateMeasurementsFor:d,timeout:p}={...TO,...o},h=ka(d??r),g=S.useCallback(()=>{if(!f.current){f.current=!0;return}y.current!=null&&clearTimeout(y.current),y.current=setTimeout(()=>{u(Array.isArray(h.current)?h.current:[h.current]),y.current=null},p)},[p]),m=Il({callback:g,disabled:v||!a}),E=S.useCallback((C,O)=>{m&&(O&&(m.unobserve(O),f.current=!1),C&&m.observe(C))},[m]),[x,A]=El(E),T=ka(t);return S.useEffect(()=>{!m||!x.current||(m.disconnect(),f.current=!1,m.observe(x.current))},[x,m]),S.useEffect(()=>(l({type:Zt.RegisterDroppable,element:{id:r,key:i,disabled:n,node:x,rect:b,data:T}}),()=>l({type:Zt.UnregisterDroppable,key:i,id:r})),[r]),S.useEffect(()=>{n!==c.current.disabled&&(l({type:Zt.SetDroppableDisabled,id:r,key:i,disabled:n}),c.current.disabled=n)},[r,i,n,l]),{active:a,rect:b,isOver:(s==null?void 0:s.id)===r,node:x,over:s,setNodeRef:A}}function od(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function _O(e,t){return e.reduce((n,r,o)=>{const i=t.get(r);return i&&(n[o]=i),n},Array(e.length))}function Al(e){return e!==null&&e>=0}function OO(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function RO(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const Zm=e=>{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const i=od(t,r,n),a=t[o],l=i[o];return!l||!a?null:{x:l.left-a.left,y:l.top-a.top,scaleX:l.width/a.width,scaleY:l.height/a.height}},_l={scaleX:1,scaleY:1},NO=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:o,rects:i,overIndex:a}=e;const l=(t=i[n])!=null?t:r;if(!l)return null;if(o===n){const u=i[a];return u?{x:0,y:n<a?u.top+u.height-(l.top+l.height):u.top-l.top,..._l}:null}const s=DO(i,o,n);return o>n&&o<=a?{x:0,y:-l.height-s,..._l}:o<n&&o>=a?{x:0,y:l.height+s,..._l}:{x:0,y:0,..._l}};function DO(e,t,n){const r=e[t],o=e[t-1],i=e[t+1];return r?n<t?o?r.top-(o.top+o.height):i?i.top-(r.top+r.height):0:i?i.top-(r.top+r.height):o?r.top-(o.top+o.height):0:0}const Ym="Sortable",Um=S.createContext({activeIndex:-1,containerId:Ym,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Zm,disabled:{draggable:!1,droppable:!1}});function PO(e){let{children:t,id:n,items:r,strategy:o=Zm,disabled:i=!1}=e;const{active:a,dragOverlay:l,droppableRects:s,over:u,measureDroppableContainers:c}=IO(),f=Fa(Ym,n),b=l.rect!==null,y=S.useMemo(()=>r.map(A=>typeof A=="object"&&"id"in A?A.id:A),[r]),v=a!=null,d=a?y.indexOf(a.id):-1,p=u?y.indexOf(u.id):-1,h=S.useRef(y),g=!OO(y,h.current),m=p!==-1&&d===-1||g,E=RO(i);xr(()=>{g&&v&&c(y)},[g,y,v,c]),S.useEffect(()=>{h.current=y},[y]);const x=S.useMemo(()=>({activeIndex:d,containerId:f,disabled:E,disableTransforms:m,items:y,overIndex:p,useDragOverlay:b,sortedRects:_O(y,s),strategy:o}),[d,f,E.draggable,E.droppable,m,y,p,s,b,o]);return S.createElement(Um.Provider,{value:x},t)}const kO=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return od(n,r,o).indexOf(t)},LO=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:i,newIndex:a,previousItems:l,previousContainerId:s,transition:u}=e;return!u||!r||l!==i&&o===a?!1:n?!0:a!==o&&t===s},FO={duration:200,easing:"ease"},qm="transform",MO=Ma.Transition.toString({property:qm,duration:0,easing:"linear"}),BO={roleDescription:"sortable"};function jO(e){let{disabled:t,index:n,node:r,rect:o}=e;const[i,a]=S.useState(null),l=S.useRef(n);return xr(()=>{if(!t&&n!==l.current&&r.current){const s=o.current;if(s){const u=wi(r.current,{ignoreTransform:!0}),c={x:s.left-u.left,y:s.top-u.top,scaleX:s.width/u.width,scaleY:s.height/u.height};(c.x||c.y)&&a(c)}}n!==l.current&&(l.current=n)},[t,n,r,o]),S.useEffect(()=>{i&&a(null)},[i]),i}function VO(e){let{animateLayoutChanges:t=LO,attributes:n,disabled:r,data:o,getNewIndex:i=kO,id:a,strategy:l,resizeObserverConfig:s,transition:u=FO}=e;const{items:c,containerId:f,activeIndex:b,disabled:y,disableTransforms:v,sortedRects:d,overIndex:p,useDragOverlay:h,strategy:g}=S.useContext(Um),m=GO(r,y),E=c.indexOf(a),x=S.useMemo(()=>({sortable:{containerId:f,index:E,items:c},...o}),[f,o,E,c]),A=S.useMemo(()=>c.slice(c.indexOf(a)),[c,a]),{rect:T,node:C,isOver:O,setNodeRef:M}=AO({id:a,data:x,disabled:m.droppable,resizeObserverConfig:{updateMeasurementsFor:A,...s}}),{active:B,activatorEvent:U,activeNodeRect:G,attributes:X,setNodeRef:q,listeners:$,isDragging:ue,over:se,setActivatorNodeRef:ve,transform:W}=wO({id:a,data:x,attributes:{...BO,...n},disabled:m.draggable}),te=t_(M,q),re=!!B,K=re&&!v&&Al(b)&&Al(p),oe=!h&&ue,de=oe&&K?W:null,ge=K?de??(l??g)({rects:d,activeNodeRect:G,activeIndex:b,overIndex:p,index:E}):null,Ee=Al(b)&&Al(p)?i({id:a,items:c,activeIndex:b,overIndex:p}):E,Ae=B==null?void 0:B.id,me=S.useRef({activeId:Ae,items:c,newIndex:Ee,containerId:f}),ze=c!==me.current.items,V=t({active:B,containerId:f,isDragging:ue,isSorting:re,id:a,index:E,items:c,newIndex:me.current.newIndex,previousItems:me.current.items,previousContainerId:me.current.containerId,transition:u,wasDragging:me.current.activeId!=null}),Ye=jO({disabled:!V,index:E,node:C,rect:T});return S.useEffect(()=>{re&&me.current.newIndex!==Ee&&(me.current.newIndex=Ee),f!==me.current.containerId&&(me.current.containerId=f),c!==me.current.items&&(me.current.items=c)},[re,Ee,f,c]),S.useEffect(()=>{if(Ae===me.current.activeId)return;if(Ae!=null&&me.current.activeId==null){me.current.activeId=Ae;return}const Ue=setTimeout(()=>{me.current.activeId=Ae},50);return()=>clearTimeout(Ue)},[Ae]),{active:B,activeIndex:b,attributes:X,data:x,rect:T,index:E,newIndex:Ee,items:c,isOver:O,isSorting:re,isDragging:ue,listeners:$,node:C,overIndex:p,over:se,setNodeRef:te,setActivatorNodeRef:ve,setDroppableNodeRef:M,setDraggableNodeRef:q,transform:Ye??ge,transition:Le()};function Le(){if(Ye||ze&&me.current.newIndex===E)return MO;if(!(oe&&!Zc(U)||!u)&&(re||V))return Ma.Transition.toString({...u,property:qm})}}function GO(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e==null?void 0:e.draggable)!=null?n:t.draggable,droppable:(r=e==null?void 0:e.droppable)!=null?r:t.droppable}}st.Down,st.Right,st.Up,st.Left;const WO=w.styled(w.Stack)`
|
|
463
463
|
flex-direction: row;
|
|
464
464
|
white-space: nowrap;
|
|
465
465
|
align-items: center;
|
|
@@ -491,7 +491,7 @@ Take a look at the reducer(s) handling this action type: ${y.type}.
|
|
|
491
491
|
background-color: #97a3b7;
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
|
-
`,zO="data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%200%2020%2021'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cellipse%20cx='7.48148'%20cy='4.94'%20rx='1.48148'%20ry='1.44'%20fill='%23828EA5'/%3e%3cellipse%20cx='7.48148'%20cy='10.7'%20rx='1.48148'%20ry='1.44'%20fill='%23828EA5'/%3e%3cellipse%20cx='7.48148'%20cy='16.46'%20rx='1.48148'%20ry='1.44'%20fill='%23828EA5'/%3e%3cellipse%20cx='12.42'%20cy='4.94'%20rx='1.48148'%20ry='1.44'%20fill='%23828EA5'/%3e%3cellipse%20cx='12.42'%20cy='10.7'%20rx='1.48148'%20ry='1.44'%20fill='%23828EA5'/%3e%3cellipse%20cx='12.42'%20cy='16.46'%20rx='1.48148'%20ry='1.44'%20fill='%23828EA5'/%3e%3c/svg%3e",XO=({field:e,toggleSelected:t,hideNewChip:n})=>{const{availableFeatures:r}=S.useContext(qt),{key:o,label:i,enabled:a,isFieldNew:
|
|
494
|
+
`,zO="data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%200%2020%2021'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cellipse%20cx='7.48148'%20cy='4.94'%20rx='1.48148'%20ry='1.44'%20fill='%23828EA5'/%3e%3cellipse%20cx='7.48148'%20cy='10.7'%20rx='1.48148'%20ry='1.44'%20fill='%23828EA5'/%3e%3cellipse%20cx='7.48148'%20cy='16.46'%20rx='1.48148'%20ry='1.44'%20fill='%23828EA5'/%3e%3cellipse%20cx='12.42'%20cy='4.94'%20rx='1.48148'%20ry='1.44'%20fill='%23828EA5'/%3e%3cellipse%20cx='12.42'%20cy='10.7'%20rx='1.48148'%20ry='1.44'%20fill='%23828EA5'/%3e%3cellipse%20cx='12.42'%20cy='16.46'%20rx='1.48148'%20ry='1.44'%20fill='%23828EA5'/%3e%3c/svg%3e",XO=({field:e,toggleSelected:t,hideNewChip:n})=>{const{availableFeatures:r}=S.useContext(qt),{key:o,label:i,enabled:a,isFieldNew:l}=e,{attributes:s,listeners:u,setNodeRef:c,transform:f,transition:b}=VO({id:o}),y=S.useRef(null),[v,d]=S.useState(!1),p=fa(r)&&l&&!n,h={transform:Ma.Transform.toString(f),transition:b};return S.useEffect(()=>{const g=y.current;g&&d(g.scrollWidth>g.clientWidth||g.scrollHeight>g.clientHeight)},[i]),I.jsxs(WO,{ref:c,style:h,...s,children:[I.jsx("img",{className:"field-drag-handle",...u,src:zO}),I.jsx(w.Checkbox,{checked:a,onChange:()=>t(o),sx:{marginLeft:"-6px"}}),I.jsx(w.Tooltip,{title:i,disableHoverListener:!v,children:I.jsxs(w.Stack,{direction:"row",gap:"5px",alignItems:"center",children:[I.jsx(w.Typography,{ref:y,variant:"body2",maxWidth:"325px",noWrap:!0,children:i}),p?I.jsx(Na,{label:Mc}):null]})})]})},ZO=e=>({[e]:{isExtensionNew:[],sidePanel:[],cards:{},fieldVisibility:{cards:{}}}}),Ii=()=>{try{return JSON.parse(localStorage.getItem(da)||"{}")}catch{return{}}},Si=()=>{const e=Ii();return Object.keys(e)[0]},Jm=e=>{var t;return(t=Ii())==null?void 0:t[e]},YO=e=>{if(!e)return;const t=Ii(),n=Si();(Object.keys(t).length===0||n!=e)&&localStorage.setItem(da,JSON.stringify(ZO(e)))},UO=(e,t)=>{var a,l,s,u,c,f;if(!e||!t)return;const n=Si()??"";if(!n)return;const r=Ii(),o=r[n],i={...r,[n]:{...o,fieldVisibility:{cards:{...(a=o==null?void 0:o.fieldVisibility)==null?void 0:a.cards,[e]:[...((s=(l=o==null?void 0:o.fieldVisibility)==null?void 0:l.cards)==null?void 0:s[e])||[],...(f=(c=(u=o==null?void 0:o.fieldVisibility)==null?void 0:u.cards)==null?void 0:c[e])!=null&&f.includes(t)?[]:[t]]}}}};localStorage.setItem(da,JSON.stringify(i))},id=(e,t)=>{var o,i;const n=Si();if(!n||!e||!t)return!1;const r=Jm(n);return!!((i=(o=r==null?void 0:r.fieldVisibility)==null?void 0:o.cards[e])!=null&&i.includes(t))},qO=(e,t)=>{var a,l,s;if(!e||!t)return;const n=Si()??"";if(!n)return;const r=Ii(),o=r[n],i={...r,[n]:{...o,cards:{...o==null?void 0:o.cards,[e]:[...((a=o==null?void 0:o.cards)==null?void 0:a[e])||[],...(s=(l=o==null?void 0:o.cards)==null?void 0:l[e])!=null&&s.includes(t)?[]:[t]]}}};localStorage.setItem(da,JSON.stringify(i))},JO=(e,t)=>{var o;const n=Si();if(!n||!e||!t)return!1;const r=Jm(n);return!!((o=r==null?void 0:r.cards[e])!=null&&o.includes(t))},QO=e=>{var i;if(!e)return;const t=Ii(),n=Si();if(!n)return;const r=t[n],o={[n]:{...r,sidePanel:[...(r==null?void 0:r.sidePanel)||[],...(i=r==null?void 0:r.sidePanel)!=null&&i.includes(e)?[]:[e]]}};localStorage.setItem(da,JSON.stringify(o))},$O=({fields:e,setFields:t,cardId:n})=>{const r=m_(g_(ed)),{userId:o}=hi()||{},i=qe(mA),a=u=>{const{active:c,over:f}=u;(c==null?void 0:c.id)!==(f==null?void 0:f.id)&&t(b=>{const y=b.findIndex(d=>d.key===(c==null?void 0:c.id)),v=b.findIndex(d=>d.key===(f==null?void 0:f.id));return od(b,y,v)})},l=!!(o&&id(n,o)),s=u=>{t(c=>c.map(f=>f.key===u?{...f,enabled:!f.enabled}:f))};return I.jsxs(I.Fragment,{children:[I.jsx(HO,{children:I.jsx(EO,{sensors:r,collisionDetection:x_,onDragEnd:a,children:I.jsx(PO,{items:e.map(u=>u.key),strategy:NO,children:e.map(u=>I.jsx(XO,{field:u,toggleSelected:s,hideNewChip:l},u.key))})})}),i===Ie.LOADING?I.jsxs(w.Stack,{flexDirection:"row",alignItems:"center",gap:"8px",children:[I.jsx(w.CircularProgress,{size:15}),I.jsx(w.Typography,{variant:"caption",color:w.palette.gray.gray3,fontSize:"12px",children:WT})]}):null]})},Qm=e=>I.jsx(w.TextField,{...e}),KO=w.styled(w.Box)`
|
|
495
495
|
.request-new-connector-img {
|
|
496
496
|
width: 500px;
|
|
497
497
|
height: 500px;
|
|
@@ -536,7 +536,7 @@ Take a look at the reducer(s) handling this action type: ${y.type}.
|
|
|
536
536
|
color: ${w.palette.gray.gray3};
|
|
537
537
|
margin-top: 0.5px;
|
|
538
538
|
}
|
|
539
|
-
`,r3=({options:e=[],type:t,placeholder:n,labelKey:r="label",valueKey:o="id",onChangeFunc:i,currentSelectedOptions:a=[],isSingleSelect:
|
|
539
|
+
`,r3=({options:e=[],type:t,placeholder:n,labelKey:r="label",valueKey:o="id",onChangeFunc:i,currentSelectedOptions:a=[],isSingleSelect:l=!1})=>{const s=!a.length;return I.jsx(t3,{children:l?I.jsx(w.Autocomplete,{value:Object.keys(a[0]).length?a[0]:null,getOptionLabel:u=>u[r]??"",onChange:i,options:e,renderOption:(u,c)=>I.jsx(w.Box,{component:"li",...u,minHeight:"34px !important",children:c[r]}),renderInput:u=>I.jsx(ad,{...u,ref:u.inputProps.ref,placeholder:n})}):I.jsx(w.Autocomplete,{value:a,slotProps:{popper:{modifiers:[{name:"flip",options:{rootBoundary:"document"}}]}},"data-testid":`${t}-dropdown`,disablePortal:!0,multiple:!0,disableCloseOnSelect:!0,limitTags:2,options:e,isOptionEqualToValue:(u,c)=>(c==null?void 0:c[o])===""?!0:u[o]===c[o],renderOption:(u,c,{selected:f})=>{const{key:b,...y}=u;return I.jsxs(w.Box,{component:"li",...y,minHeight:"36px",children:[I.jsx(w.Checkbox,{style:{marginRight:8},checked:f}),c[r]]},b)},renderTags:(u,c)=>u.map((f,b)=>I.jsx("div",{children:I.jsx(n3,{...c({index:b}),label:f[r],variant:"outlined",deleteIcon:I.jsx(w.icons.Close,{})})},f[o])),renderInput:u=>I.jsx(ad,{...u,variant:"standard",placeholder:s?n:""}),getOptionLabel:u=>u[r],ListboxProps:{style:{maxHeight:250}},onChange:i})})},o3="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_3803_129233)'%3e%3cpath%20d='M7.3335%204.66683H8.66683V6.00016H7.3335V4.66683ZM7.3335%207.3335H8.66683V11.3335H7.3335V7.3335ZM8.00016%201.3335C4.32016%201.3335%201.3335%204.32016%201.3335%208.00016C1.3335%2011.6802%204.32016%2014.6668%208.00016%2014.6668C11.6802%2014.6668%2014.6668%2011.6802%2014.6668%208.00016C14.6668%204.32016%2011.6802%201.3335%208.00016%201.3335ZM8.00016%2013.3335C5.06016%2013.3335%202.66683%2010.9402%202.66683%208.00016C2.66683%205.06016%205.06016%202.66683%208.00016%202.66683C10.9402%202.66683%2013.3335%205.06016%2013.3335%208.00016C13.3335%2010.9402%2010.9402%2013.3335%208.00016%2013.3335Z'%20fill='%236F7C90'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_3803_129233'%3e%3crect%20width='16'%20height='16'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",i3=e=>{const{selectedEmailInboxes:t,setSelectedEmailInboxes:n,selectedRoles:r,setSelectedRoles:o}=e,i=qe(gm)??[],a=qe(hm)??[];return[{type:am,options:a,label:RT,isSingleSelect:!1},{type:PT,options:i,label:NT,isSingleSelect:!0}].map(({type:s,options:u,label:c,isSingleSelect:f})=>{const b=s===am,y=b?t:r;return I.jsxs(w.Box,{marginBottom:"20px",children:[I.jsx(JT,{variant:"h4",children:c}),I.jsx(r3,{isSingleSelect:f,currentSelectedOptions:f?[y]:y,options:u,type:s,placeholder:b?OT:DT,onChangeFunc:(v,d)=>b?n(d):o(d??{}),valueKey:"id",labelKey:"name"}),f?I.jsxs(nA,{width:"fit-content",children:[I.jsx("img",{src:o3}),I.jsx(w.Typography,{variant:"caption",color:w.palette.gray.gray3,fontSize:"11px",children:GT})]}):null]},s)})},Ho={CARD_VISIBILITY:{ID:0,LABEL:"Card visibility"},FIELD_VISIBILITY:{ID:1,LABEL:"Field visibility"}},$m="New fields",Km=(e,t)=>{const n=e.reduce((o,i)=>(o[i.key]||(o[i.key]=!0),o),{}),r=[...e];return t.forEach(o=>{n[o.key]||r.push(o)}),r},a3=({handleClose:e,id:t,emailSMs:n,setShowEnabledModal:r,roles:o,currentConnectorId:i,title:a,fields:l,setVisitedFieldVisTab:s})=>{const{availableFeatures:u,sendTrackingEvent:c}=S.useContext(qt),f=uo(),b=qe(bl),y=qe(gm)??[],v=qe(hm)??[],d=qe(gA),p=qe(hA),{userId:h}=hi()||{},[g,m]=S.useState(()=>(v==null?void 0:v.filter(K=>n==null?void 0:n.includes(K.id)))??[]),[E,x]=S.useState(()=>(y==null?void 0:y.find(K=>o==null?void 0:o.includes(K.name)))??{}),[A,T]=S.useState(()=>{var K,oe,de;return((de=(oe=(K=b==null?void 0:b[i])==null?void 0:K.cardList)==null?void 0:oe.find(ie=>ie.id===t))==null?void 0:de.fields)??[]}),[C,O]=S.useState(Ho.CARD_VISIBILITY.ID);S.useEffect(()=>{f(qs(t))},[f,t]),S.useEffect(()=>{d[t]&&T(K=>Km(K,d[t]||[]))},[d,t]);const M=S.useMemo(()=>!Array.isArray(n)||n.length!==g.length?!1:n.every(K=>g.some(({id:oe})=>oe===K)),[n,g]),B=S.useMemo(()=>Array.isArray(o)?o.length?!!(o!=null&&o.every(K=>E.name===K)):!Object.keys(E).length:!1,[o,E]),U=S.useMemo(()=>{const K=d[t]||[];if(!Array.isArray(l))return!1;const oe=Km(l,K);if(A.length!=oe.length)return!1;for(let de=0;de<oe.length;de++){const ie=oe[de],ge=A[de];if(A&&(ie.key!==ge.key||ie.enabled!==ge.enabled))return!1}return!0},[l,A,d,t]),G=g.length!==0&&A.filter(K=>K.enabled).length===0,X=p===Ie.LOADING||M&&B&&U||G,q=S.useMemo(()=>!!(l!=null&&l.some(K=>K.isFieldNew)),[l]),$=h&&id(t,h),se=fa(u)&&q&&!$?$m:"",ve=K=>{K.stopPropagation();const oe=E!=null&&E.name?[E.name]:[],de=g.map(ge=>ge.id),ie=A.map((ge,Ee)=>({...ge,priority:Ee+1}));f(Zs({cardId:t,data:{roles:oe,inboxes:{email:de,chat:[]},fields:ie},currentConnector:i})).unwrap().then(()=>{var Ae,me,ze;const ge=(Ae=b==null?void 0:b[i])==null?void 0:Ae.name,Ee=(ze=(me=b==null?void 0:b[i])==null?void 0:me.cardList)==null?void 0:ze.some(V=>{var Nn;if(V.id===t)return!1;const{email:Ye,chat:Le}=V.inboxes,Ue=!!(((Ye==null?void 0:Ye.length)??0)+((Le==null?void 0:Le.length)??0)),Pt=!!((Nn=V==null?void 0:V.roles)!=null&&Nn.length);return Ue&&Pt});c(tt.CARD_VISIBILITY_UPDATED,{new_status:de.length&&(E!=null&&E.name)?lm:um,pre_status:n!=null&&n.length&&(y!=null&&y.length)?lm:um,connector_name:ge,card_title:a}),!Ee&&(E!=null&&E.name)&&de.length?r(!0):ge&&qn({message:jT.replace(BT,ge),type:Da})}).catch(()=>{qn({message:VT,type:co})}).finally(()=>e())},W=()=>{e(),c(tt.CARD_VISIBILITY_UPDATE_CLOSED)},te=(K,oe)=>{O(oe),oe===Ho.FIELD_VISIBILITY.ID&&(c(tt.CONNECTOR_VISIBILITY_FIELD_TAB_CLICKED),s(!0))},re=(K,oe)=>{var ie;const de=(ie=Object.values(Ho).find(ge=>ge.ID===K))==null?void 0:ie.LABEL;return I.jsxs(w.Stack,{direction:"row",alignItems:"center",gap:1.25,children:[de,oe?I.jsx(Na,{label:oe}):null]})};return I.jsx(UT,{children:I.jsxs(KT,{children:[I.jsx(qT,{variant:"h2",children:im}),I.jsx(w.Box,{marginBottom:"24px",children:I.jsxs(w.Tabs,{value:C,onChange:te,children:[I.jsx(cm,{label:re(Ho.CARD_VISIBILITY.ID)}),I.jsx(cm,{label:re(Ho.FIELD_VISIBILITY.ID,se)})]})}),I.jsx("div",{hidden:C!==Ho.CARD_VISIBILITY.ID,children:I.jsx(i3,{selectedEmailInboxes:g,setSelectedEmailInboxes:m,selectedRoles:E,setSelectedRoles:x})}),I.jsx("div",{hidden:C!==Ho.FIELD_VISIBILITY.ID,children:I.jsx($O,{fields:A,setFields:T,cardId:t})}),I.jsxs(QT,{children:[I.jsx(tA,{onClick:W,variant:"text",children:kT}),I.jsx(w.Tooltip,{title:G?zT:null,children:I.jsx("div",{children:I.jsx(eA,{onClick:ve,disabled:X,children:p!==Ie.LOADING?I.jsx(w.Typography,{variant:"body2_medium",children:HT}):I.jsx(w.Grid,{height:"22px",children:I.jsx($T,{size:22})})})})})]})]})})},s3=w.styled(w.Box)`
|
|
540
540
|
height: 52px;
|
|
541
541
|
box-sizing: border-box;
|
|
542
542
|
width: 100%;
|
|
@@ -592,13 +592,13 @@ Take a look at the reducer(s) handling this action type: ${y.type}.
|
|
|
592
592
|
opacity: 0.5;
|
|
593
593
|
background-color: transparent;
|
|
594
594
|
}
|
|
595
|
-
`,d3=({infoCard:e,currentConnectorId:t,setShowEnabledModal:n})=>{var
|
|
595
|
+
`,d3=({infoCard:e,currentConnectorId:t,setShowEnabledModal:n})=>{var T,C;const r=((T=e.inboxes)==null?void 0:T.email)||[],o=((C=e.inboxes)==null?void 0:C.chat)||[],i=e.roles??[],a=e.fields??[],{isCardNew:l}=e,s=r.length+o.length,u=s>0&&i.length>0,[c,f]=S.useState(!1),[b,y]=S.useState(!1),{availableFeatures:v,userPermissions:d,sendTrackingEvent:p}=S.useContext(qt),h=qE(d),{userId:g}=hi()||{},m=O=>{f(O),!O&&g&&(qO(e.id,g),b&&UO(e.id,g))},E=()=>{f(!0),p(tt.CONFIGURE_VISIBILITY_CLICKED)},x=S.useMemo(()=>fa(v)&&l&&g&&!JO(e.id,g),[v,e,g,c,l]),A=S.useMemo(()=>g&&fa(v)&&a.some(O=>O.isFieldNew)&&!id(e.id,g),[v,e,g,c,a]);return I.jsxs(I.Fragment,{children:[I.jsxs(s3,{children:[I.jsxs(w.Stack,{gap:"8px",direction:"row",children:[e.title,I.jsxs(w.Stack,{gap:"5px",direction:"row",children:[I.jsx(Na,{hidden:!x,label:Mc}),I.jsx(Na,{hidden:!A,label:$m})]})]}),I.jsxs(l3,{children:[I.jsx(w.Typography,{className:"hover__text",variant:"caption",children:u?`Visible across ${s} Shared mailbox${s>1?"es":""}`:AT}),I.jsx($A,{children:I.jsx(u3,{})}),I.jsx(w.Tooltip,{title:h?im:_T,placement:"bottom",children:I.jsx(c3,{className:"visibilityIcon",onClick:E,disabled:!h,children:u?I.jsx(KA,{}):I.jsx(e_,{})})})]})]}),I.jsx(Vc,{shown:c,setShown:m,customPaperProps:{overflow:"inherit"},children:I.jsx(a3,{roles:i,emailSMs:r,fields:a,handleClose:()=>m(!1),id:e.id,title:e.title,currentConnectorId:t,setShowEnabledModal:n,setVisitedFieldVisTab:y})})]})},f3=({infoCards:e,currentConnectorId:t,setShowEnabledModal:n})=>I.jsx("div",{children:e.map(r=>I.jsx(d3,{setShowEnabledModal:n,currentConnectorId:t,infoCard:r},r.id))}),p3=w.styled(w.Typography)`
|
|
596
596
|
text-align: left;
|
|
597
597
|
ul {
|
|
598
598
|
margin: 0;
|
|
599
599
|
padding-inline-start: 20px;
|
|
600
600
|
}
|
|
601
|
-
`,h3=({connectorName:e,updates:t=""})=>I.jsxs(w.Stack,{padding:"20px",children:[I.jsxs(w.Typography,{variant:"h2",marginBottom:1,children:["Upgrade ",e," connector"]}),I.jsx(p3,{variant:"body2",color:w.theme.palette.gray.gray2,dangerouslySetInnerHTML:{__html:t}})]}),g3=w.styled(({className:e,...t})=>I.jsx(w.Tooltip,{...t,classes:{popper:e}}))(()=>({[`& .${w.tooltipClasses.tooltip}`]:{backgroundColor:"#fff",padding:0,minWidth:"400px",borderRadius:"4px",boxShadow:"0px 3px 15px 0px #00000040"}})),e0=({connector:e,isConfigSettingsPage:t,isEdit:n=!1,isConnectorCard:r=!1})=>{const{sendTrackingEvent:o}=S.useContext(qt),{id:i,name:a,logo:
|
|
601
|
+
`,h3=({connectorName:e,updates:t=""})=>I.jsxs(w.Stack,{padding:"20px",children:[I.jsxs(w.Typography,{variant:"h2",marginBottom:1,children:["Upgrade ",e," connector"]}),I.jsx(p3,{variant:"body2",color:w.theme.palette.gray.gray2,dangerouslySetInnerHTML:{__html:t}})]}),g3=w.styled(({className:e,...t})=>I.jsx(w.Tooltip,{...t,classes:{popper:e}}))(()=>({[`& .${w.tooltipClasses.tooltip}`]:{backgroundColor:"#fff",padding:0,minWidth:"400px",borderRadius:"4px",boxShadow:"0px 3px 15px 0px #00000040"}})),e0=({connector:e,isConfigSettingsPage:t,isEdit:n=!1,isConnectorCard:r=!1})=>{const{sendTrackingEvent:o}=S.useContext(qt),{id:i,name:a,logo:l,description:s,isAuthenticated:u,showUpgradeButton:c=!1,updates:f}=e,b=qe(pA),y=qe(pm),v=qe(jc),[d,p]=S.useState(!1),h=uo(),g=so(),m=(X,q)=>{X==null||X.stopPropagation(),h(zs({id:q,enabled:X.target.checked})).unwrap().then(()=>{X.target.checked?o(tt.TOGGLE_ENABLED,{connector_name:a}):(o(tt.TOGGLE_DISABLED,{connector_name:a}),qn({message:AA,type:mm}))}).catch(()=>{qn({message:TA,type:co})})},E=(X,q)=>{X==null||X.stopPropagation(),o(tt.ADD_CONNECTOR_CLICKED,{connector_name:a}),g(`${Xe.BASEPATH}${Xe.CONNECTOR_SETTINGS}/${q}`)},x=(X,q)=>{X==null||X.stopPropagation(),o(tt.SETTINGS_CLICKED,{connector_name:a}),g(`${Xe.BASEPATH}${Xe.CONNECTOR_SETTINGS}/${q}?isEdit=true`)},A=(X,q="")=>{X==null||X.preventDefault(),X==null||X.stopPropagation(),!t&&g(`${Xe.BASEPATH}${Xe.API_VIEW}/${q}?isEdit=true`)},T=X=>{X==null||X.stopPropagation(),g(`${Xe.BASEPATH}${Xe.CONNECTOR_SETTINGS}/${i}?isEdit=true`)};let C=!1;"isEnabled"in e&&typeof e.isEnabled=="boolean"&&(C=e.isEnabled);const O=!(e!=null&&e.isAuthenticated),M=[y,v].includes(Ie.LOADING)||O,B=!t&&(e==null?void 0:e.cardList)&&e.isEnabled&&e.isAuthenticated,G=Wp({"connector-flex":!0,"connector-settings":!!t,"connector-expanded":!t&&C&&!!u,"connector-has-upgrade":c});return I.jsxs(bA,{className:t?"noBorder":"",children:[I.jsx(FA,{shown:d,setShown:p,connectorName:e.name}),I.jsxs(vA,{"data-testid":i,className:"connector-grid",onClick:X=>A(X,i),children:[I.jsxs(w.Stack,{className:G,width:"100%",children:[I.jsx(w.Stack,{direction:"row",gap:1,alignItems:"center",children:I.jsxs(w.Stack,{flexDirection:"row",alignItems:"center",children:[t?I.jsx("img",{src:l??"",className:"logoIcon",width:"28xp",height:"28px",alt:a}):null,I.jsxs(w.Box,{children:[I.jsx(yA,{variant:r?"body1_medium":"h2",children:a}),I.jsxs(w.Stack,{direction:"row",alignItems:"center",gap:"4px",hidden:t||!c||O||!f,children:[I.jsx(w.Typography,{variant:"body2",color:w.theme.palette.gray.gray3,children:YT}),I.jsx(g3,{placement:"bottom",title:I.jsx(h3,{connectorName:e.name,updates:f}),children:I.jsx(w.Icon,{children:I.jsx(SA,{})})})]})]})]})}),t&&!n?I.jsx(wA,{variant:"contained",onClick:X=>E(X,i),children:gT}):I.jsxs(EA,{children:[!t&&c&&!O?I.jsx(w.Box,{marginRight:"7px",children:I.jsx(w.Button,{size:"small",onClick:T,children:XT})}):null,!t&&O?I.jsx(IA,{severity:"error",children:ZT}):null,I.jsx(w.Tooltip,{title:mT,placement:"bottom",children:I.jsx(w.IconButton,{onClick:X=>x(X,i),children:I.jsx("img",{src:_A,className:"settingsIcon"})})}),(b==null?void 0:b[i])!==Ie.LOADING?I.jsx(w.Tooltip,{title:C?vT:bT,placement:"bottom",children:I.jsx(w.Switch,{id:`switch_${i}`,checked:C,disabled:M,onClick:X=>X==null?void 0:X.stopPropagation(),onChange:X=>m(X,i)})}):I.jsx(xA,{width:"58px",height:"38px",alignItems:"center",flexDirection:"row",justifyContent:"center",children:I.jsx(CA,{"data-testid":"loading"})})]})]}),t?I.jsx(w.Typography,{maxWidth:"577px",variant:"body1",color:w.theme.palette.gray.gray3,className:"connector-grid",children:s}):null]}),B?I.jsx(f3,{setShowEnabledModal:p,currentConnectorId:i,infoCards:e.cardList||[]}):null]})},m3=()=>{const e=qe(fm),t=qe(bl);return I.jsx(dm,{children:I.jsx(w.Box,{"data-testid":"connector-custom-card",children:e.map(n=>{var r;return(r=t==null?void 0:t[n])!=null&&r.id?I.jsx(e0,{connector:t[n],isConfigSettingsPage:!1,isConnectorCard:!0},n):null})})})},t0=e=>e.requestConnectorApi.connectorRequestsApiStatus,b3=e=>e.requestConnectorApi.requestableConnectors,v3=e=>e.requestConnectorApi.requestableApis,y3=({connectors:e,canSubmit:t,setSelectedConnectors:n,selectedConnectors:r,setOptionalDetails:o,handleSubmit:i,isApiText:a})=>{const{sendTrackingEvent:l}=S.useContext(qt),u=qe(t0)===Ie.LOADING,c=r.length===0?a?lT:uT:"";return S.useEffect(()=>{l(a?tt.REQUEST_NEW_FEATURE_SHOWN:tt.REQUEST_NEW_CONNECTOR_SHOWN)},[l,a]),I.jsx(w.Stack,{"data-testid":"request-panel",children:I.jsxs(w.Stack,{padding:"30px",height:"100%",children:[I.jsx(w.Stack,{width:"440px",height:"100%",children:I.jsxs(w.Stack,{gap:"14px",children:[I.jsxs(w.Stack,{gap:"4px",marginBottom:"36px",children:[I.jsx(w.Typography,{variant:"h2",children:a?iT:aT}),I.jsx(w.Typography,{variant:"body2",children:a?rm:sT})]}),I.jsx(w.Autocomplete,{"data-testid":"request-dropdown",disablePortal:!0,multiple:!0,disableCloseOnSelect:!0,limitTags:2,options:e,disabled:u,isOptionEqualToValue:(f,b)=>f.id===b.id,renderOption:(f,b,{selected:y})=>{const{key:v,...d}=f;return I.jsxs(w.Box,{component:"li",...d,minHeight:"36px",children:[I.jsx(w.Checkbox,{style:{marginRight:8},checked:y}),b.label]},v)},renderInput:f=>I.jsx(ad,{...f,variant:"outlined",placeholder:c}),ListboxProps:{style:{maxHeight:250}},onChange:(f,b)=>{n(b)}}),I.jsx(Qm,{multiline:!0,fullWidth:!0,minRows:8,variant:"outlined",disabled:u,placeholder:cT,onChange:f=>{o(f.target.value)}})]})}),I.jsx(w.Stack,{alignItems:"flex-end",children:I.jsx(w.Button,{"data-testid":"submit-request-button",onClick:i,color:"tertiary",size:"medium",sx:{height:"32px",width:"140.25px"},disabled:!t||u,children:u?I.jsx(w.CircularProgress,{sx:{color:"#97A3B7"},size:20}):I.jsx("div",{children:dT})})})]})})},E3=({handleClose:e})=>I.jsx(w.Stack,{children:I.jsxs(w.Stack,{padding:"30px",height:"100%",children:[I.jsx(w.Stack,{width:"378px",height:"100%",justifyContent:"center",children:I.jsxs(w.Stack,{gap:"14px",children:[I.jsx("img",{src:bm,alt:"checkmark",width:92,height:92}),I.jsxs(w.Stack,{gap:"4px",children:[I.jsx(w.Typography,{variant:"h2",children:fT}),I.jsx(w.Typography,{variant:"body2",children:pT})]})]})}),I.jsx(w.Stack,{alignItems:"flex-end",children:I.jsx(e3,{onClick:e,variant:"outlined",color:"tertiary",size:"medium",children:hT})})]})}),sd=({shown:e,setShown:t,connectorType:n,isApi:r=!1})=>{const{sendTrackingEvent:o}=S.useContext(qt),i=uo(),a=qe(b3),l=qe(v3),s=qe(t0),[u,c]=S.useState(""),[f,b]=S.useState([]),[y,v]=S.useState([]),[d,p]=S.useState(!1),[h,g]=S.useState(!1),m=()=>{const T=r?om.API:om.CONNECTOR,C=y.map(O=>O.id);i($s({type:T,values:C,description:u})).unwrap().then(()=>{o(r?tt.REQUEST_NEW_FEATURE_SUBMIT_CLICKED:tt.REQUEST_NEW_CONNECTOR_SUBMIT_CLICKED),g(!0)}).catch(()=>{qn({message:yT,type:co})})};S.useEffect(()=>(e&&h&&g(!1),()=>{v([]),c("")}),[e]),S.useEffect(()=>{var T;if(r){const C=((T=l==null?void 0:l.find(O=>O.connector_type===n))==null?void 0:T.apis)||[];b(C.map(O=>({label:O.name,id:O.key})))}else b((a||[]).map(C=>({label:C.name,id:C.key})))},[l,a,r,n]),S.useEffect(()=>{p(y.length>0)},[y,u]);const E=h&&s!==Ie.LOADING,x=T=>{T||o(r?tt.REQUEST_NEW_FEATURE_CLOSE_CLICKED:tt.REQUEST_NEW_CONNECTOR_CLOSE_CLICKED),t(T)},A=()=>{t(!1),o(r?tt.REQUEST_NEW_FEATURE_DONE_CLICKED:tt.REQUEST_NEW_CONNECTOR_DONE_CLICKED)};return I.jsxs(Vc,{shown:e,setShown:x,showCloseButton:!0,children:[E?I.jsx(E3,{handleClose:A}):I.jsx(y3,{connectors:f,canSubmit:d,setSelectedConnectors:v,selectedConnectors:y,setOptionalDetails:c,handleSubmit:m,isApiText:r}),I.jsx(KO,{children:I.jsx("img",{loading:"lazy",className:"request-new-connector-img",src:QS,alt:"Request new connector"})})]})},x3="Custom Connectors",C3="Connectors help you get a better customer context and key actions right into your inbox",w3="Library",I3="Use these pre-built connectors to get started without any hassle. Authenticate and access them from the right panel of Hiver.",S3=w.styled(w.Box)`
|
|
602
602
|
padding: 14px 0px 0 32px;
|
|
603
603
|
box-sizing: border-box;
|
|
604
604
|
`,T3=w.styled(w.Stack)`
|
|
@@ -682,7 +682,7 @@ Take a look at the reducer(s) handling this action type: ${y.type}.
|
|
|
682
682
|
`,q3=w.styled(w.icons.CalendarTodayOutlinedIcon)`
|
|
683
683
|
height: 16px;
|
|
684
684
|
width: 16px;
|
|
685
|
-
`,ud=({isApiViewPage:e=!1,isSettingsPage:t=!1})=>{const{availableFeatures:n,sendTrackingEvent:r}=S.useContext(qt),{DETAILS_PAGE:o,AUTH_PAGE:i,CONNECTORS_PAGE_ADMIN_SIDE:a}=ET,
|
|
685
|
+
`,ud=({isApiViewPage:e=!1,isSettingsPage:t=!1})=>{const{availableFeatures:n,sendTrackingEvent:r}=S.useContext(qt),{DETAILS_PAGE:o,AUTH_PAGE:i,CONNECTORS_PAGE_ADMIN_SIDE:a}=ET,l=t?i:e?o:a,s=Wp({"settings-page":t,"api-view-page":e}),[u,c]=S.useState(()=>{const y=localStorage.getItem(ld)==="true";return(t||!y)&&br(n,NE)});S.useEffect(()=>{localStorage.getItem(ld)==="true"&&!t&&c(!1)},[t]);const f=()=>{window.open(H3,"_blank"),r(tt.SCHEDULE_CALL_CLICKED,{source:l})},b=()=>{localStorage.setItem(ld,"true"),c(!1),r(tt.SCHEDULE_CALL_CROSS_CLICKED,{source:l})};return u?I.jsxs(X3,{direction:"row",className:s,children:[I.jsxs(Z3,{className:s,children:[I.jsxs("div",{children:[I.jsx(w.Typography,{color:w.theme.palette.gray.black,variant:"body2_medium",children:k3+(t?L3:"")}),I.jsx(w.Typography,{variant:"body2",children:F3})]}),I.jsxs(Y3,{onClick:f,variant:"outlined",size:"small",children:[I.jsx(q3,{}),M3]})]}),t?null:I.jsx("div",{className:"schedule-close",children:I.jsx(w.Tooltip,{title:"Close",placement:"bottom",children:I.jsx(w.IconButton,{onClick:b,children:I.jsx(U3,{})})})})]}):null},n0=()=>{const e=uo(),{connectorFunctions:t}=S.useContext(qt),[n,r]=S.useState(!1),[o,i]=S.useState(!1),a=qe(fm),l=qe(zh),s=qe(pm),u=!!a.length,c=!!l.length,{sendTrackingEvent:f}=S.useContext(qt),b=s===Ie.LOADING;S.useEffect(()=>{t&&(e(Xs(t.getInboxDetails)),e(Ys(t.getRoles)))},[t,e]),S.useEffect(()=>{e(Us()),e(Qs())},[e]);const y=d=>{r(d),i(!1),f(tt.REQUEST_NEW_CLICKED)},v=d=>{i(d),r(!1)};return I.jsxs(S3,{"data-testid":"connector-dashboard",children:[I.jsx(ud,{}),I.jsxs(T3,{children:[I.jsx(A3,{variant:"h2",children:x3}),u&&!b?I.jsx(w.Button,{"data-testid":"connector-available-request-new",onClick:()=>y(!0),children:nm}):null]}),I.jsx(_3,{variant:"body1",color:"rgba(108, 123, 148, 1)",children:C3}),b?I.jsx(P3,{}):I.jsx(I.Fragment,{children:u?I.jsx(m3,{}):I.jsx(fA,{setModalState:y})}),I.jsxs(w.Box,{marginTop:"32px",children:[c?I.jsxs(I.Fragment,{children:[I.jsx(O3,{variant:"h2",children:w3}),I.jsx(R3,{variant:"body1",color:w.theme.palette.gray.gray3,children:I3})]}):null,I.jsx(rA,{})]}),I.jsx(sd,{shown:o||n,setShown:o?v:y,isApi:o})]})},J3=w.styled(w.Box)`
|
|
686
686
|
box-sizing: border-box;
|
|
687
687
|
background-color: #ffffff;
|
|
688
688
|
width: 178px;
|
|
@@ -720,7 +720,7 @@ Take a look at the reducer(s) handling this action type: ${y.type}.
|
|
|
720
720
|
color: #343c45;
|
|
721
721
|
}
|
|
722
722
|
}
|
|
723
|
-
`,eR=({sidebarOptions:e=[]})=>{const{currentSideBar:t,setCurrentSideBar:n,sendTrackingEvent:r}=S.useContext(qt),o=so(),{pathname:i}=ao();S.useEffect(()=>{const
|
|
723
|
+
`,eR=({sidebarOptions:e=[]})=>{const{currentSideBar:t,setCurrentSideBar:n,sendTrackingEvent:r}=S.useContext(qt),o=so(),{pathname:i}=ao();S.useEffect(()=>{const s=e.find(c=>Xe.BASEPATH+c.route===i),u=Object.keys(Qh).find(c=>Qh[c].includes(i));s!=null&&s.value&&(s==null?void 0:s.value)!==t?n(s.value):u&&u!==t&&n(u)},[i]);const a=(s,u,c,f)=>{s.stopPropagation(),n(c),r(tt.TAB_CLICKED,{tab:f}),o(u)},l=()=>I.jsx(K3,{children:e.map(({id:s,value:u,route:c})=>{const f=t===u;return I.jsx("div",{"data-testid":s,className:f?"active":"",onClick:b=>a(b,c,u,s),children:u},s)})});return I.jsx(J3,{"data-testid":"sideBarParent",children:I.jsxs(Q3,{id:"connectors__sidebar",children:[I.jsx($3,{variant:"h3","data-testid":"custom-connector-heading",children:ac}),l()]})})},tR=w.styled(w.Stack)`
|
|
724
724
|
flex-direction: row;
|
|
725
725
|
align-items: stretch;
|
|
726
726
|
min-height: 100%;
|
|
@@ -747,26 +747,26 @@ Take a look at the reducer(s) handling this action type: ${y.type}.
|
|
|
747
747
|
color: ${w.theme.palette.purple.primary} !important;
|
|
748
748
|
border: 1px solid ${w.theme.palette.purple.primary} !important;
|
|
749
749
|
}
|
|
750
|
-
`,dR=({connectorName:e,connectorType:t,apiList:n,isLoading:r=!1,isEdit:o=!1})=>{const{sendTrackingEvent:i}=S.useContext(qt),a=oR.replace("{{connector}}",e??""),[s
|
|
750
|
+
`,dR=({connectorName:e,connectorType:t,apiList:n,isLoading:r=!1,isEdit:o=!1})=>{const{sendTrackingEvent:i}=S.useContext(qt),a=oR.replace("{{connector}}",e??""),[l,s]=S.useState(!1),u=()=>{i(tt.REQUEST_NEW_FEATURE_CLICKED,{connector_name:e}),s(!0)};return I.jsx(uR,{children:r?I.jsx(lR,{}):I.jsxs(I.Fragment,{children:[I.jsx(sd,{shown:l,setShown:s,isApi:!0,connectorType:t}),I.jsxs(w.Stack,{direction:"row",justifyContent:"space-between",marginTop:"28px",children:[I.jsxs("div",{children:[I.jsx(w.Typography,{variant:"h2",children:a}),I.jsx(w.Typography,{variant:"body1",marginBottom:"20px",children:iR})]}),o?I.jsx(cR,{color:"tertiary",variant:"outlined",sx:{height:"fit-content"},size:"medium",onClick:u,children:aR}):null]}),I.jsx(w.Stack,{gap:"12px",children:n.map(c=>I.jsxs(w.Stack,{width:"100%",height:"72px",border:"1px solid #E0E0E0",borderRadius:"5px",padding:"12px",gap:"10px",children:[I.jsx(w.Typography,{variant:"body1_medium",children:c.name}),I.jsx(w.Typography,{variant:"body2",children:c.description})]},c.keyName))})]})})};var cd={exports:{}},Ol={exports:{}},lt={};/** @license React v16.13.1
|
|
751
751
|
* react-is.production.min.js
|
|
752
752
|
*
|
|
753
753
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
754
754
|
*
|
|
755
755
|
* This source code is licensed under the MIT license found in the
|
|
756
756
|
* LICENSE file in the root directory of this source tree.
|
|
757
|
-
*/var o0;function fR(){if(o0)return
|
|
757
|
+
*/var o0;function fR(){if(o0)return lt;o0=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,d=e?Symbol.for("react.block"):60121,p=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,g=e?Symbol.for("react.scope"):60119;function m(x){if(typeof x=="object"&&x!==null){var A=x.$$typeof;switch(A){case t:switch(x=x.type,x){case s:case u:case r:case i:case o:case f:return x;default:switch(x=x&&x.$$typeof,x){case l:case c:case v:case y:case a:return x;default:return A}}case n:return A}}}function E(x){return m(x)===u}return lt.AsyncMode=s,lt.ConcurrentMode=u,lt.ContextConsumer=l,lt.ContextProvider=a,lt.Element=t,lt.ForwardRef=c,lt.Fragment=r,lt.Lazy=v,lt.Memo=y,lt.Portal=n,lt.Profiler=i,lt.StrictMode=o,lt.Suspense=f,lt.isAsyncMode=function(x){return E(x)||m(x)===s},lt.isConcurrentMode=E,lt.isContextConsumer=function(x){return m(x)===l},lt.isContextProvider=function(x){return m(x)===a},lt.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===t},lt.isForwardRef=function(x){return m(x)===c},lt.isFragment=function(x){return m(x)===r},lt.isLazy=function(x){return m(x)===v},lt.isMemo=function(x){return m(x)===y},lt.isPortal=function(x){return m(x)===n},lt.isProfiler=function(x){return m(x)===i},lt.isStrictMode=function(x){return m(x)===o},lt.isSuspense=function(x){return m(x)===f},lt.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===r||x===u||x===i||x===o||x===f||x===b||typeof x=="object"&&x!==null&&(x.$$typeof===v||x.$$typeof===y||x.$$typeof===a||x.$$typeof===l||x.$$typeof===c||x.$$typeof===p||x.$$typeof===h||x.$$typeof===g||x.$$typeof===d)},lt.typeOf=m,lt}var ut={};/** @license React v16.13.1
|
|
758
758
|
* react-is.development.js
|
|
759
759
|
*
|
|
760
760
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
761
761
|
*
|
|
762
762
|
* This source code is licensed under the MIT license found in the
|
|
763
763
|
* LICENSE file in the root directory of this source tree.
|
|
764
|
-
*/var i0;function pR(){return i0||(i0=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,
|
|
764
|
+
*/var i0;function pR(){return i0||(i0=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,d=e?Symbol.for("react.block"):60121,p=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,g=e?Symbol.for("react.scope"):60119;function m(V){return typeof V=="string"||typeof V=="function"||V===r||V===u||V===i||V===o||V===f||V===b||typeof V=="object"&&V!==null&&(V.$$typeof===v||V.$$typeof===y||V.$$typeof===a||V.$$typeof===l||V.$$typeof===c||V.$$typeof===p||V.$$typeof===h||V.$$typeof===g||V.$$typeof===d)}function E(V){if(typeof V=="object"&&V!==null){var Ye=V.$$typeof;switch(Ye){case t:var Le=V.type;switch(Le){case s:case u:case r:case i:case o:case f:return Le;default:var Ue=Le&&Le.$$typeof;switch(Ue){case l:case c:case v:case y:case a:return Ue;default:return Ye}}case n:return Ye}}}var x=s,A=u,T=l,C=a,O=t,M=c,B=r,U=v,G=y,X=n,q=i,$=o,ue=f,se=!1;function ve(V){return se||(se=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),W(V)||E(V)===s}function W(V){return E(V)===u}function te(V){return E(V)===l}function re(V){return E(V)===a}function K(V){return typeof V=="object"&&V!==null&&V.$$typeof===t}function oe(V){return E(V)===c}function de(V){return E(V)===r}function ie(V){return E(V)===v}function ge(V){return E(V)===y}function Ee(V){return E(V)===n}function Ae(V){return E(V)===i}function me(V){return E(V)===o}function ze(V){return E(V)===f}ut.AsyncMode=x,ut.ConcurrentMode=A,ut.ContextConsumer=T,ut.ContextProvider=C,ut.Element=O,ut.ForwardRef=M,ut.Fragment=B,ut.Lazy=U,ut.Memo=G,ut.Portal=X,ut.Profiler=q,ut.StrictMode=$,ut.Suspense=ue,ut.isAsyncMode=ve,ut.isConcurrentMode=W,ut.isContextConsumer=te,ut.isContextProvider=re,ut.isElement=K,ut.isForwardRef=oe,ut.isFragment=de,ut.isLazy=ie,ut.isMemo=ge,ut.isPortal=Ee,ut.isProfiler=Ae,ut.isStrictMode=me,ut.isSuspense=ze,ut.isValidElementType=m,ut.typeOf=E}()),ut}var a0;function s0(){return a0||(a0=1,process.env.NODE_ENV==="production"?Ol.exports=fR():Ol.exports=pR()),Ol.exports}/*
|
|
765
765
|
object-assign
|
|
766
766
|
(c) Sindre Sorhus
|
|
767
767
|
@license MIT
|
|
768
|
-
*/var dd,l0;function hR(){if(l0)return dd;l0=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},
|
|
769
|
-
Valid keys: `+JSON.stringify(Object.keys(H),null," "));var V=ze(ge,me,oe,de,ie+"."+me,n);if(V)return V}return null}return p(te)}function W(H){switch(typeof H){case"number":case"string":case"undefined":return!0;case"boolean":return!H;case"object":if(Array.isArray(H))return H.every(W);if(H===null||s(H))return!0;var te=d(H);if(te){var re=te.call(H),$;if(te!==H.entries){for(;!($=re.next()).done;)if(!W($.value))return!1}else for(;!($=re.next()).done;){var oe=$.value;if(oe&&!W(oe[1]))return!1}}else return!1;return!0;default:return!1}}function q(H,te){return H==="symbol"?!0:te?te["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&te instanceof Symbol:!1}function ee(H){var te=typeof H;return Array.isArray(H)?"array":H instanceof RegExp?"object":q(te,H)?"symbol":te}function ue(H){if(typeof H>"u"||H===null)return""+H;var te=ee(H);if(te==="object"){if(H instanceof Date)return"date";if(H instanceof RegExp)return"regexp"}return te}function se(H){var te=ue(H);switch(te){case"array":case"object":return"an "+te;case"boolean":case"date":case"regexp":return"a "+te;default:return te}}function ve(H){return!H.constructor||!H.constructor.name?v:H.constructor.name}return y.checkPropTypes=o,y.resetWarningCache=o.resetWarningCache,y.PropTypes=y,y},md}var bd,h0;function bR(){if(h0)return bd;h0=1;var e=pd();function t(){}function n(){}return n.resetWarningCache=t,bd=function(){function r(a,s,l,u,c,d){if(d!==e){var v=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw v.name="Invariant Violation",v}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},bd}if(process.env.NODE_ENV!=="production"){var vR=s0(),yR=!0;cd.exports=mR()(vR.isElement,yR)}else cd.exports=bR()();var Ti=cd.exports;const xe=ds(Ti);var Qn={},g0={};function ER(e){for(var t=5381,n=e.length;n;)t=t*33^e.charCodeAt(--n);return t>>>0}var m0=ER;const xR=ds(m0);var CR=vd;function vd(e){Cr.length||Rl(),Cr[Cr.length]=e}var Cr=[],Rl,wr=0,wR=1024;function b0(){for(;wr<Cr.length;){var e=wr;if(wr=wr+1,Cr[e].call(),wr>wR){for(var t=0,n=Cr.length-wr;t<n;t++)Cr[t]=Cr[t+wr];Cr.length-=wr,wr=0}}Cr.length=0,wr=0}var v0=typeof Be<"u"?Be:self,y0=v0.MutationObserver||v0.WebKitMutationObserver;typeof y0=="function"?Rl=IR(b0):Rl=E0(b0),vd.requestFlush=Rl;function IR(e){var t=1,n=new y0(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}function E0(e){return function(){var n=setTimeout(o,0),r=setInterval(o,50);function o(){clearTimeout(n),clearInterval(r),e()}}}vd.makeRequestCallFromTimer=E0;var x0=CR,Nl=[],yd=[],SR=x0.makeRequestCallFromTimer(TR);function TR(){if(yd.length)throw yd.shift()}var C0=Ed;function Ed(e){var t;Nl.length?t=Nl.pop():t=new w0,t.task=e,x0(t)}function w0(){this.task=null}w0.prototype.call=function(){try{this.task.call()}catch(e){Ed.onerror?Ed.onerror(e):(yd.push(e),SR())}finally{this.task=null,Nl[Nl.length]=this}};const AR=ds(C0);(function(e){function t(Z){return Z&&typeof Z=="object"&&"default"in Z?Z.default:Z}var n=t(m0),r=t(C0);function o(Z){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?o=function(N){return typeof N}:o=function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N},o(Z)}function i(Z,N,z){return N in Z?Object.defineProperty(Z,N,{value:z,enumerable:!0,configurable:!0,writable:!0}):Z[N]=z,Z}function a(Z){for(var N=1;N<arguments.length;N++){var z=arguments[N]!=null?arguments[N]:{},L=Object.keys(z);typeof Object.getOwnPropertySymbols=="function"&&(L=L.concat(Object.getOwnPropertySymbols(z).filter(function(X){return Object.getOwnPropertyDescriptor(z,X).enumerable}))),L.forEach(function(X){i(Z,X,z[X])})}return Z}function s(Z){return l(Z)||u(Z)||c()}function l(Z){if(Array.isArray(Z)){for(var N=0,z=new Array(Z.length);N<Z.length;N++)z[N]=Z[N];return z}}function u(Z){if(Symbol.iterator in Object(Z)||Object.prototype.toString.call(Z)==="[object Arguments]")return Array.from(Z)}function c(){throw new TypeError("Invalid attempt to spread non-iterable instance")}var d=/([A-Z])/g,v=function(N){return"-".concat(N.toLowerCase())},y=function(N){var z=N.replace(d,v);return z[0]==="m"&&z[1]==="s"&&z[2]==="-"?"-".concat(z):z},g={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function f(Z,N){return Z+N.charAt(0).toUpperCase()+N.substring(1)}var p=["Webkit","ms","Moz","O"];Object.keys(g).forEach(function(Z){p.forEach(function(N){g[f(N,Z)]=g[Z]})});var h=function(N,z){return typeof z=="number"?g[N]?""+z:z+"px":""+z},m=function(N,z){return x(h(N,z))},b=function(N,z){return n(N).toString(36)},E=function(N){return b(JSON.stringify(N))},x=function(N){return N[N.length-10]==="!"&&N.slice(-11)===" !important"?N:"".concat(N," !important")},T=typeof Map<"u",A=function(){function Z(){this.elements={},this.keyOrder=[]}var N=Z.prototype;return N.forEach=function(L){for(var X=0;X<this.keyOrder.length;X++)L(this.elements[this.keyOrder[X]],this.keyOrder[X])},N.set=function(L,X,J){if(!this.elements.hasOwnProperty(L))this.keyOrder.push(L);else if(J){var K=this.keyOrder.indexOf(L);this.keyOrder.splice(K,1),this.keyOrder.push(L)}if(X==null){this.elements[L]=X;return}if(T&&X instanceof Map||X instanceof Z){var pe=this.elements.hasOwnProperty(L)?this.elements[L]:new Z;X.forEach(function(Je,Ge){pe.set(Ge,Je,J)}),this.elements[L]=pe;return}if(!Array.isArray(X)&&o(X)==="object"){for(var fe=this.elements.hasOwnProperty(L)?this.elements[L]:new Z,he=Object.keys(X),ye=0;ye<he.length;ye+=1)fe.set(he[ye],X[he[ye]],J);this.elements[L]=fe;return}this.elements[L]=X},N.get=function(L){return this.elements[L]},N.has=function(L){return this.elements.hasOwnProperty(L)},N.addStyleType=function(L){var X=this;if(T&&L instanceof Map||L instanceof Z)L.forEach(function(pe,fe){X.set(fe,pe,!0)});else for(var J=Object.keys(L),K=0;K<J.length;K++)this.set(J[K],L[J[K]],!0)},Z}();function C(Z){return Z&&Z.__esModule&&Object.prototype.hasOwnProperty.call(Z,"default")?Z.default:Z}function O(Z,N){return N={exports:{}},Z(N,N.exports),N.exports}function B(Z){return Z&&Z.default||Z}var M=O(function(Z,N){Object.defineProperty(N,"__esModule",{value:!0}),N.default=z;function z(L){return L.charAt(0).toUpperCase()+L.slice(1)}});C(M);var Q=O(function(Z,N){Object.defineProperty(N,"__esModule",{value:!0}),N.default=X;var z=L(M);function L(J){return J&&J.__esModule?J:{default:J}}function X(J,K,pe){if(J.hasOwnProperty(K)){for(var fe={},he=J[K],ye=(0,z.default)(K),Je=Object.keys(pe),Ge=0;Ge<Je.length;Ge++){var Ke=Je[Ge];if(Ke===K)for(var ot=0;ot<he.length;ot++)fe[he[ot]+ye]=pe[K];fe[Ke]=pe[Ke]}return fe}return pe}});C(Q);var G=O(function(Z,N){Object.defineProperty(N,"__esModule",{value:!0}),N.default=z;function z(L,X,J,K,pe){for(var fe=0,he=L.length;fe<he;++fe){var ye=L[fe](X,J,K,pe);if(ye)return ye}}});C(G);var W=O(function(Z,N){Object.defineProperty(N,"__esModule",{value:!0}),N.default=L;function z(X,J){X.indexOf(J)===-1&&X.push(J)}function L(X,J){if(Array.isArray(J))for(var K=0,pe=J.length;K<pe;++K)z(X,J[K]);else z(X,J)}});C(W);var q=O(function(Z,N){Object.defineProperty(N,"__esModule",{value:!0}),N.default=z;function z(L){return L instanceof Object&&!Array.isArray(L)}});C(q);var ee=O(function(Z,N){Object.defineProperty(N,"__esModule",{value:!0}),N.default=pe;var z=K(Q),L=K(G),X=K(W),J=K(q);function K(fe){return fe&&fe.__esModule?fe:{default:fe}}function pe(fe){var he=fe.prefixMap,ye=fe.plugins;return function Je(Ge){for(var Ke in Ge){var ot=Ge[Ke];if((0,J.default)(ot))Ge[Ke]=Je(ot);else if(Array.isArray(ot)){for(var yt=[],Ht=0,kn=ot.length;Ht<kn;++Ht){var ea=(0,L.default)(ye,Ke,ot[Ht],Ge,he);(0,X.default)(yt,ea||ot[Ht])}yt.length>0&&(Ge[Ke]=yt)}else{var ss=(0,L.default)(ye,Ke,ot,Ge,he);ss&&(Ge[Ke]=ss),Ge=(0,z.default)(he,Ke,Ge)}}return Ge}}}),ue=C(ee),se=O(function(Z,N){Object.defineProperty(N,"__esModule",{value:!0}),N.default=z;function z(L,X){if(typeof X=="string"&&X==="text")return["-webkit-text","text"]}}),ve=C(se),H=O(function(Z,N){Object.defineProperty(N,"__esModule",{value:!0}),N.default=L;var z=/-webkit-|-moz-|-ms-/;function L(X){return typeof X=="string"&&z.test(X)}Z.exports=N.default});C(H);var te=O(function(Z,N){Object.defineProperty(N,"__esModule",{value:!0}),N.default=J;var z=L(H);function L(K){return K&&K.__esModule?K:{default:K}}var X=["-webkit-","-moz-",""];function J(K,pe){if(typeof pe=="string"&&!(0,z.default)(pe)&&pe.indexOf("calc(")>-1)return X.map(function(fe){return pe.replace(/calc\(/g,fe+"calc(")})}}),re=C(te),$=O(function(Z,N){Object.defineProperty(N,"__esModule",{value:!0}),N.default=J;var z=L(H);function L(K){return K&&K.__esModule?K:{default:K}}var X=["-webkit-",""];function J(K,pe){if(typeof pe=="string"&&!(0,z.default)(pe)&&pe.indexOf("cross-fade(")>-1)return X.map(function(fe){return pe.replace(/cross-fade\(/g,fe+"cross-fade(")})}}),oe=C($),de=O(function(Z,N){Object.defineProperty(N,"__esModule",{value:!0}),N.default=X;var z=["-webkit-","-moz-",""],L={"zoom-in":!0,"zoom-out":!0,grab:!0,grabbing:!0};function X(J,K){if(J==="cursor"&&L.hasOwnProperty(K))return z.map(function(pe){return pe+K})}}),ie=C(de),ge=O(function(Z,N){Object.defineProperty(N,"__esModule",{value:!0}),N.default=J;var z=L(H);function L(K){return K&&K.__esModule?K:{default:K}}var X=["-webkit-",""];function J(K,pe){if(typeof pe=="string"&&!(0,z.default)(pe)&&pe.indexOf("filter(")>-1)return X.map(function(fe){return pe.replace(/filter\(/g,fe+"filter(")})}}),Ee=C(ge),Ae=O(function(Z,N){Object.defineProperty(N,"__esModule",{value:!0}),N.default=L;var z={flex:["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex","flex"],"inline-flex":["-webkit-inline-box","-moz-inline-box","-ms-inline-flexbox","-webkit-inline-flex","inline-flex"]};function L(X,J){if(X==="display"&&z.hasOwnProperty(J))return z[J]}}),me=C(Ae),ze=O(function(Z,N){Object.defineProperty(N,"__esModule",{value:!0}),N.default=K;var z={"space-around":"distribute","space-between":"justify","flex-start":"start","flex-end":"end"},L={alignContent:"msFlexLinePack",alignSelf:"msFlexItemAlign",alignItems:"msFlexAlign",justifyContent:"msFlexPack",order:"msFlexOrder",flexGrow:"msFlexPositive",flexShrink:"msFlexNegative",flexBasis:"msFlexPreferredSize"},X={auto:"1 1 auto",inherit:"inherit",initial:"0 1 auto",none:"0 0 auto",unset:"unset"},J=/^\d+(\.\d+)?$/;function K(pe,fe,he){if(Object.prototype.hasOwnProperty.call(L,pe)&&(he[L[pe]]=z[fe]||fe),pe==="flex"){if(Object.prototype.hasOwnProperty.call(X,fe)){he.msFlex=X[fe];return}if(J.test(fe)){he.msFlex=fe+" 1 0%";return}var ye=fe.split(/\s/);switch(ye.length){case 1:he.msFlex="1 1 "+fe;return;case 2:J.test(ye[1])?he.msFlex=ye[0]+" "+ye[1]+" 0%":he.msFlex=ye[0]+" 1 "+ye[1];return;default:he.msFlex=fe}}}}),V=C(ze),Ye=O(function(Z,N){Object.defineProperty(N,"__esModule",{value:!0}),N.default=X;var z={"space-around":"justify","space-between":"justify","flex-start":"start","flex-end":"end","wrap-reverse":"multiple",wrap:"multiple"},L={alignItems:"WebkitBoxAlign",justifyContent:"WebkitBoxPack",flexWrap:"WebkitBoxLines",flexGrow:"WebkitBoxFlex"};function X(J,K,pe){J==="flexDirection"&&typeof K=="string"&&(K.indexOf("column")>-1?pe.WebkitBoxOrient="vertical":pe.WebkitBoxOrient="horizontal",K.indexOf("reverse")>-1?pe.WebkitBoxDirection="reverse":pe.WebkitBoxDirection="normal"),L.hasOwnProperty(J)&&(pe[L[J]]=z[K]||K)}}),Le=C(Ye),Ue=O(function(Z,N){Object.defineProperty(N,"__esModule",{value:!0}),N.default=K;var z=L(H);function L(pe){return pe&&pe.__esModule?pe:{default:pe}}var X=["-webkit-","-moz-",""],J=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/gi;function K(pe,fe){if(typeof fe=="string"&&!(0,z.default)(fe)&&J.test(fe))return X.map(function(he){return fe.replace(J,function(ye){return he+ye})})}}),Pt=C(Ue),Nn=O(function(Z,N){Object.defineProperty(N,"__esModule",{value:!0});var z=function(){function fe(he,ye){var Je=[],Ge=!0,Ke=!1,ot=void 0;try{for(var yt=he[Symbol.iterator](),Ht;!(Ge=(Ht=yt.next()).done)&&(Je.push(Ht.value),!(ye&&Je.length===ye));Ge=!0);}catch(kn){Ke=!0,ot=kn}finally{try{!Ge&&yt.return&&yt.return()}finally{if(Ke)throw ot}}return Je}return function(he,ye){if(Array.isArray(he))return he;if(Symbol.iterator in Object(he))return fe(he,ye);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();N.default=pe;function L(fe){return typeof fe=="number"&&!isNaN(fe)}var X=["center","end","start","stretch"],J={"inline-grid":["-ms-inline-grid","inline-grid"],grid:["-ms-grid","grid"]},K={alignSelf:function(he,ye){X.indexOf(he)>-1&&(ye.msGridRowAlign=he)},gridColumn:function(he,ye){if(L(he))ye.msGridColumn=he;else{var Je=he.split("/").map(function(yt){return+yt}),Ge=z(Je,2),Ke=Ge[0],ot=Ge[1];K.gridColumnStart(Ke,ye),K.gridColumnEnd(ot,ye)}},gridColumnEnd:function(he,ye){var Je=ye.msGridColumn;L(he)&&L(Je)&&(ye.msGridColumnSpan=he-Je)},gridColumnStart:function(he,ye){L(he)&&(ye.msGridColumn=he)},gridRow:function(he,ye){if(L(he))ye.msGridRow=he;else{var Je=he.split("/").map(function(yt){return+yt}),Ge=z(Je,2),Ke=Ge[0],ot=Ge[1];K.gridRowStart(Ke,ye),K.gridRowEnd(ot,ye)}},gridRowEnd:function(he,ye){var Je=ye.msGridRow;L(he)&&L(Je)&&(ye.msGridRowSpan=he-Je)},gridRowStart:function(he,ye){L(he)&&(ye.msGridRow=he)},gridTemplateColumns:function(he,ye){ye.msGridColumns=he},gridTemplateRows:function(he,ye){ye.msGridRows=he},justifySelf:function(he,ye){X.indexOf(he)>-1&&(ye.msGridColumnAlign=he)}};function pe(fe,he,ye){if(fe==="display"&&he in J)return J[he];if(fe in K){var Je=K[fe];Je(he,ye)}}}),kt=C(Nn),Ut=O(function(Z,N){Object.defineProperty(N,"__esModule",{value:!0}),N.default=J;var z=L(H);function L(K){return K&&K.__esModule?K:{default:K}}var X=["-webkit-",""];function J(K,pe){if(typeof pe=="string"&&!(0,z.default)(pe)&&pe.indexOf("image-set(")>-1)return X.map(function(fe){return pe.replace(/image-set\(/g,fe+"image-set(")})}}),mt=C(Ut),zn=O(function(Z,N){Object.defineProperty(N,"__esModule",{value:!0}),N.default=L;var z={marginBlockStart:["WebkitMarginBefore"],marginBlockEnd:["WebkitMarginAfter"],marginInlineStart:["WebkitMarginStart","MozMarginStart"],marginInlineEnd:["WebkitMarginEnd","MozMarginEnd"],paddingBlockStart:["WebkitPaddingBefore"],paddingBlockEnd:["WebkitPaddingAfter"],paddingInlineStart:["WebkitPaddingStart","MozPaddingStart"],paddingInlineEnd:["WebkitPaddingEnd","MozPaddingEnd"],borderBlockStart:["WebkitBorderBefore"],borderBlockStartColor:["WebkitBorderBeforeColor"],borderBlockStartStyle:["WebkitBorderBeforeStyle"],borderBlockStartWidth:["WebkitBorderBeforeWidth"],borderBlockEnd:["WebkitBorderAfter"],borderBlockEndColor:["WebkitBorderAfterColor"],borderBlockEndStyle:["WebkitBorderAfterStyle"],borderBlockEndWidth:["WebkitBorderAfterWidth"],borderInlineStart:["WebkitBorderStart","MozBorderStart"],borderInlineStartColor:["WebkitBorderStartColor","MozBorderStartColor"],borderInlineStartStyle:["WebkitBorderStartStyle","MozBorderStartStyle"],borderInlineStartWidth:["WebkitBorderStartWidth","MozBorderStartWidth"],borderInlineEnd:["WebkitBorderEnd","MozBorderEnd"],borderInlineEndColor:["WebkitBorderEndColor","MozBorderEndColor"],borderInlineEndStyle:["WebkitBorderEndStyle","MozBorderEndStyle"],borderInlineEndWidth:["WebkitBorderEndWidth","MozBorderEndWidth"]};function L(X,J,K){if(Object.prototype.hasOwnProperty.call(z,X))for(var pe=z[X],fe=0,he=pe.length;fe<he;++fe)K[pe[fe]]=J}}),cn=C(zn),So=O(function(Z,N){Object.defineProperty(N,"__esModule",{value:!0}),N.default=z;function z(L,X){if(L==="position"&&X==="sticky")return["-webkit-sticky","sticky"]}}),To=C(So),Ao=O(function(Z,N){Object.defineProperty(N,"__esModule",{value:!0}),N.default=J;var z=["-webkit-","-moz-",""],L={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},X={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};function J(K,pe){if(L.hasOwnProperty(K)&&X.hasOwnProperty(pe))return z.map(function(fe){return fe+pe})}}),Dn=C(Ao),Vt=/[A-Z]/g,Xn=/^ms-/,dn={};function fn(Z){return"-"+Z.toLowerCase()}function Ct(Z){if(dn.hasOwnProperty(Z))return dn[Z];var N=Z.replace(Vt,fn);return dn[Z]=Xn.test(N)?"-"+N:N}var Ur=Object.freeze({default:Ct}),Fr=B(Ur),_o=O(function(Z,N){Object.defineProperty(N,"__esModule",{value:!0}),N.default=X;var z=L(Fr);function L(J){return J&&J.__esModule?J:{default:J}}function X(J){return(0,z.default)(J)}Z.exports=N.default});C(_o);var pn=O(function(Z,N){Object.defineProperty(N,"__esModule",{value:!0}),N.default=he;var z=J(_o),L=J(H),X=J(M);function J(ye){return ye&&ye.__esModule?ye:{default:ye}}var K={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},pe={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-"};function fe(ye,Je){if((0,L.default)(ye))return ye;for(var Ge=ye.split(/,(?![^()]*(?:\([^()]*\))?\))/g),Ke=0,ot=Ge.length;Ke<ot;++Ke){var yt=Ge[Ke],Ht=[yt];for(var kn in Je){var ea=(0,z.default)(kn);if(yt.indexOf(ea)>-1&&ea!=="order")for(var ss=Je[kn],_f=0,q9=ss.length;_f<q9;++_f)Ht.unshift(yt.replace(ea,pe[ss[_f]]+ea))}Ge[Ke]=Ht.join(",")}return Ge.join(",")}function he(ye,Je,Ge,Ke){if(typeof Je=="string"&&K.hasOwnProperty(ye)){var ot=fe(Je,Ke),yt=ot.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(kn){return!/-moz-|-ms-/.test(kn)}).join(",");if(ye.indexOf("Webkit")>-1)return yt;var Ht=ot.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(kn){return!/-webkit-|-ms-/.test(kn)}).join(",");return ye.indexOf("Moz")>-1?Ht:(Ge["Webkit"+(0,X.default)(ye)]=yt,Ge["Moz"+(0,X.default)(ye)]=Ht,ot)}}}),qr=C(pn),we=["Webkit"],mr=["Moz"],er=["ms"],wt=["Webkit","Moz"],$e=["Webkit","ms"],pt=["Webkit","Moz","ms"],At={plugins:[ve,re,oe,ie,Ee,me,V,Le,Pt,kt,mt,cn,To,Dn,qr],prefixMap:{transform:$e,transformOrigin:$e,transformOriginX:$e,transformOriginY:$e,backfaceVisibility:we,perspective:we,perspectiveOrigin:we,transformStyle:we,transformOriginZ:we,animation:we,animationDelay:we,animationDirection:we,animationFillMode:we,animationDuration:we,animationIterationCount:we,animationName:we,animationPlayState:we,animationTimingFunction:we,appearance:wt,userSelect:pt,fontKerning:we,textEmphasisPosition:we,textEmphasis:we,textEmphasisStyle:we,textEmphasisColor:we,boxDecorationBreak:we,clipPath:we,maskImage:we,maskMode:we,maskRepeat:we,maskPosition:we,maskClip:we,maskOrigin:we,maskSize:we,maskComposite:we,mask:we,maskBorderSource:we,maskBorderMode:we,maskBorderSlice:we,maskBorderWidth:we,maskBorderOutset:we,maskBorderRepeat:we,maskBorder:we,maskType:we,textDecorationStyle:wt,textDecorationSkip:wt,textDecorationLine:wt,textDecorationColor:wt,filter:we,fontFeatureSettings:wt,breakAfter:pt,breakBefore:pt,breakInside:pt,columnCount:wt,columnFill:wt,columnGap:wt,columnRule:wt,columnRuleColor:wt,columnRuleStyle:wt,columnRuleWidth:wt,columns:wt,columnSpan:wt,columnWidth:wt,writingMode:$e,flex:$e,flexBasis:we,flexDirection:$e,flexGrow:we,flexFlow:$e,flexShrink:we,flexWrap:$e,alignContent:we,alignItems:we,alignSelf:we,justifyContent:we,order:we,transitionDelay:we,transitionDuration:we,transitionProperty:we,transitionTimingFunction:we,backdropFilter:we,scrollSnapType:$e,scrollSnapPointsX:$e,scrollSnapPointsY:$e,scrollSnapDestination:$e,scrollSnapCoordinate:$e,shapeImageThreshold:we,shapeImageMargin:we,shapeImageOutside:we,hyphens:pt,flowInto:$e,flowFrom:$e,regionFragment:$e,textOrientation:we,boxSizing:mr,textAlignLast:mr,tabSize:mr,wrapFlow:er,wrapThrough:er,wrapMargin:er,touchAction:er,textSizeAdjust:$e,borderImage:we,borderImageOutset:we,borderImageRepeat:we,borderImageSlice:we,borderImageSource:we,borderImageWidth:we}},_t=ue(At),rn=[function(N,z,L){return N[0]!==":"?null:L(z+N)},function(N,z,L){if(N[0]!=="@")return null;var X=L(z);return["".concat(N,"{").concat(X.join(""),"}")]}],Lt=function Z(N,z,L,X,J){for(var K=new A,pe=0;pe<z.length;pe++)K.addStyleType(z[pe]);var fe=new A,he=[];K.forEach(function(Je,Ge){var Ke=L.some(function(ot){var yt=ot(Ge,N,function(Ht){return Z(Ht,[Je],L,X,J)});if(yt!=null)return Array.isArray(yt)?he.push.apply(he,s(yt)):(console.warn("WARNING: Selector handlers should return an array of rules.Returning a string containing multiple rules is deprecated.",ot),he.push("@media all {".concat(yt,"}"))),!0});Ke||fe.set(Ge,Je,!0)});var ye=Wt(N,fe,X,J,L);return ye&&he.unshift(ye),he},Gt=function(N,z,L){if(z)for(var X=Object.keys(z),J=0;J<X.length;J++){var K=X[J];N.has(K)&&N.set(K,z[K](N.get(K),L),!1)}},Kt=function(N,z,L){return"".concat(y(N),":").concat(L(N,z),";")},Pn=function(N,z){return N[z]=!0,N},Wt=function(N,z,L,X,J){Gt(z,L,J);var K=Object.keys(z.elements).reduce(Pn,Object.create(null)),pe=_t(z.elements),fe=Object.keys(pe);if(fe.length!==z.keyOrder.length){for(var he=0;he<fe.length;he++)if(!K[fe[he]]){var ye=void 0;if(fe[he][0]==="W"?ye=fe[he][6].toLowerCase()+fe[he].slice(7):fe[he][1]==="o"?ye=fe[he][3].toLowerCase()+fe[he].slice(4):ye=fe[he][2].toLowerCase()+fe[he].slice(3),ye&&K[ye]){var Je=z.keyOrder.indexOf(ye);z.keyOrder.splice(Je,0,fe[he])}else z.keyOrder.unshift(fe[he])}}for(var Ge=X===!1?h:m,Ke=[],ot=0;ot<z.keyOrder.length;ot++){var yt=z.keyOrder[ot],Ht=pe[yt];if(Array.isArray(Ht))for(var kn=0;kn<Ht.length;kn++)Ke.push(Kt(yt,Ht[kn],Ge));else Ke.push(Kt(yt,Ht,Ge))}return Ke.length?"".concat(N,"{").concat(Ke.join(""),"}"):""},xt=null,Zn=function(N){if(xt==null&&(xt=document.querySelector("style[data-aphrodite]"),xt==null)){var z=document.head||document.getElementsByTagName("head")[0];xt=document.createElement("style"),xt.type="text/css",xt.setAttribute("data-aphrodite",""),z.appendChild(xt)}var L=xt.styleSheet||xt.sheet;if(L.insertRule){var X=L.cssRules.length;N.forEach(function(J){try{L.insertRule(J,X),X+=1}catch{}})}else xt.innerText=(xt.innerText||"")+N.join("")},Yn={fontFamily:function Z(N){if(Array.isArray(N)){var z={};return N.forEach(function(L){z[Z(L)]=!0}),Object.keys(z).join(",")}else return o(N)==="object"?(_(N.src,"@font-face",[N],!1),'"'.concat(N.fontFamily,'"')):N},animationName:function Z(N,z){if(Array.isArray(N))return N.map(function(J){return Z(J,z)}).join(",");if(o(N)==="object"){var L="keyframe_".concat(E(N)),X="@keyframes ".concat(L,"{");return N instanceof A?N.forEach(function(J,K){X+=Lt(K,[J],z,Yn,!1).join("")}):Object.keys(N).forEach(function(J){X+=Lt(J,[N[J]],z,Yn,!1).join("")}),X+="}",j(L,[X]),L}else return N}},hn={},R=[],k=!1,j=function(N,z){var L;if(!hn[N]){if(!k){if(typeof document>"u")throw new Error("Cannot automatically buffer without a document");k=!0,r(ae)}(L=R).push.apply(L,s(z)),hn[N]=!0}},_=function(N,z,L,X){var J=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[];if(!hn[N]){var K=Lt(z,L,J,Yn,X);j(N,K)}},F=function(){R=[],hn={},k=!1,xt=null},U=function(N){delete hn[N]},ce=function(){return R},ne=function(){if(k)throw new Error("Cannot buffer while already buffering");k=!0},be=function(){k=!1;var N=R;return R=[],N},le=function(){return be().join("")},ae=function(){var N=be();N.length>0&&Zn(N)},ke=function(){return Object.keys(hn)},Ne=function(N){N.forEach(function(z){hn[z]=!0})},Fe=function(N){return"_definition"in N&&"_name"in N&&"_len"in N},Me=function Z(N,z,L,X){for(var J=0;J<N.length;J+=1)if(N[J])if(Array.isArray(N[J]))X+=Z(N[J],z,L,X);else if(Fe(N[J]))z.push(N[J]._name),L.push(N[J]._definition),X+=N[J]._len;else throw new Error("Invalid Style Definition: Styles should be defined using the StyleSheet.create method.");return X},bt=function(N,z,L){var X=[],J=[],K=Me(z,X,J,0);if(X.length===0)return"";var pe;return process.env.NODE_ENV==="production"?pe=X.length===1?"_".concat(X[0]):"_".concat(b(X.join())).concat((K%36).toString(36)):pe=X.join("-o_O-"),_(pe,".".concat(pe),J,N,L),pe},rt=function(N,z){return"".concat(z,"_").concat(b(N))},Dt=function(){return process.env.NODE_ENV==="production"?b:rt},gn=Dt(),Mr={create:function(N){for(var z={},L=Object.keys(N),X=0;X<L.length;X+=1){var J=L[X],K=N[J],pe=JSON.stringify(K);z[J]={_len:pe.length,_name:gn(pe,J),_definition:K}}return z},rehydrate:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Ne(N)}},tr=typeof window<"u"?null:{renderStatic:function(N){F(),ne();var z=N(),L=le();return{html:z,css:{content:L,renderedClassNames:ke()}}}},Ki=process.env.NODE_ENV==="production"?null:{suppressStyleInjection:function(){F(),ne()},clearBufferAndResumeStyleInjection:function(){F()},getBufferedStyles:function(){return ce()}};function nr(Z){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:rn;return{StyleSheet:a({},Mr,{extend:function(L){var X=L.map(function(J){return J.selectorHandler}).filter(function(J){return J});return nr(Z,N.concat(X))}}),StyleSheetServer:tr,StyleSheetTestUtils:Ki,minify:function(L){gn=L?b:rt},css:function(){for(var L=arguments.length,X=new Array(L),J=0;J<L;J++)X[J]=arguments[J];return bt(Z,X,N)},flushToStyleTag:ae,injectAndGetClassName:bt,defaultSelectorHandlers:rn,reset:F,resetInjectedStyle:U}}e.makeExports=nr})(g0),Object.defineProperty(Qn,"__esModule",{value:!0});var _R=g0,OR=!1,Ir=_R.makeExports(OR),RR=Ir.StyleSheet,NR=Ir.StyleSheetServer,DR=Ir.StyleSheetTestUtils,PR=Ir.css,kR=Ir.minify,LR=Ir.flushToStyleTag,FR=Ir.injectAndGetClassName,MR=Ir.defaultSelectorHandlers,BR=Ir.reset,jR=Ir.resetInjectedStyle;Qn.StyleSheet=RR,Qn.StyleSheetServer=NR,Qn.StyleSheetTestUtils=DR,Qn.css=PR,Qn.minify=kR,Qn.flushToStyleTag=LR,Qn.injectAndGetClassName=FR,Qn.defaultSelectorHandlers=MR,Qn.reset=BR,Qn.resetInjectedStyle=jR;var Bt=Qn,xd={exports:{}},Cd={exports:{}},I0={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(I0);var VR=I0.exports,Dl={exports:{}},S0;function GR(){return S0||(S0=1,function(e,t){t.__esModule=!0,t.default=n;function n(r,o){return r.classList?!!o&&r.classList.contains(o):(" "+(r.className.baseVal||r.className)+" ").indexOf(" "+o+" ")!==-1}e.exports=t.default}(Dl,Dl.exports)),Dl.exports}(function(e,t){var n=VR;t.__esModule=!0,t.default=o;var r=n(GR());function o(i,a){i.classList?i.classList.add(a):(0,r.default)(i,a)||(typeof i.className=="string"?i.className=i.className+" "+a:i.setAttribute("class",(i.className&&i.className.baseVal||"")+" "+a))}e.exports=t.default})(Cd,Cd.exports);var WR=Cd.exports;function T0(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var HR=function(t,n){t.classList?t.classList.remove(n):typeof t.className=="string"?t.className=T0(t.className,n):t.setAttribute("class",T0(t.className&&t.className.baseVal||"",n))},vn={};function A0(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function _0(e){function t(n){var r=this.constructor.getDerivedStateFromProps(e,n);return r??null}this.setState(t.bind(this))}function O0(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}A0.__suppressDeprecationWarning=!0,_0.__suppressDeprecationWarning=!0,O0.__suppressDeprecationWarning=!0;function zR(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if(typeof e.getDerivedStateFromProps!="function"&&typeof t.getSnapshotBeforeUpdate!="function")return e;var n=null,r=null,o=null;if(typeof t.componentWillMount=="function"?n="componentWillMount":typeof t.UNSAFE_componentWillMount=="function"&&(n="UNSAFE_componentWillMount"),typeof t.componentWillReceiveProps=="function"?r="componentWillReceiveProps":typeof t.UNSAFE_componentWillReceiveProps=="function"&&(r="UNSAFE_componentWillReceiveProps"),typeof t.componentWillUpdate=="function"?o="componentWillUpdate":typeof t.UNSAFE_componentWillUpdate=="function"&&(o="UNSAFE_componentWillUpdate"),n!==null||r!==null||o!==null){var i=e.displayName||e.name,a=typeof e.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
768
|
+
*/var dd,l0;function hR(){if(l0)return dd;l0=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},l=0;l<10;l++)a["_"+String.fromCharCode(l)]=l;var s=Object.getOwnPropertyNames(a).map(function(c){return a[c]});if(s.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(c){u[c]=c}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return dd=o()?Object.assign:function(i,a){for(var l,s=r(i),u,c=1;c<arguments.length;c++){l=Object(arguments[c]);for(var f in l)t.call(l,f)&&(s[f]=l[f]);if(e){u=e(l);for(var b=0;b<u.length;b++)n.call(l,u[b])&&(s[u[b]]=l[u[b]])}}return s},dd}var fd,u0;function pd(){if(u0)return fd;u0=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return fd=e,fd}var hd,c0;function d0(){return c0||(c0=1,hd=Function.call.bind(Object.prototype.hasOwnProperty)),hd}var gd,f0;function gR(){if(f0)return gd;f0=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=pd(),n={},r=d0();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(i,a,l,s,u){if(process.env.NODE_ENV!=="production"){for(var c in i)if(r(i,c)){var f;try{if(typeof i[c]!="function"){var b=Error((s||"React class")+": "+l+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw b.name="Invariant Violation",b}f=i[c](a,c,s,l,null,t)}catch(v){f=v}if(f&&!(f instanceof Error)&&e((s||"React class")+": type specification of "+l+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var y=u?u():"";e("Failed "+l+" type: "+f.message+(y??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},gd=o,gd}var md,p0;function mR(){if(p0)return md;p0=1;var e=s0(),t=hR(),n=pd(),r=d0(),o=gR(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var s="Warning: "+l;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}});function a(){return null}return md=function(l,s){var u=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function f(W){var te=W&&(u&&W[u]||W[c]);if(typeof te=="function")return te}var b="<<anonymous>>",y={array:h("array"),bigint:h("bigint"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:g(),arrayOf:m,element:E(),elementType:x(),instanceOf:A,node:M(),objectOf:C,oneOf:T,oneOfType:O,shape:U,exact:G};function v(W,te){return W===te?W!==0||1/W===1/te:W!==W&&te!==te}function d(W,te){this.message=W,this.data=te&&typeof te=="object"?te:{},this.stack=""}d.prototype=Error.prototype;function p(W){if(process.env.NODE_ENV!=="production")var te={},re=0;function K(de,ie,ge,Ee,Ae,me,ze){if(Ee=Ee||b,me=me||ge,ze!==n){if(s){var V=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw V.name="Invariant Violation",V}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Ye=Ee+":"+ge;!te[Ye]&&re<3&&(i("You are manually calling a React.PropTypes validation function for the `"+me+"` prop on `"+Ee+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),te[Ye]=!0,re++)}}return ie[ge]==null?de?ie[ge]===null?new d("The "+Ae+" `"+me+"` is marked as required "+("in `"+Ee+"`, but its value is `null`.")):new d("The "+Ae+" `"+me+"` is marked as required in "+("`"+Ee+"`, but its value is `undefined`.")):null:W(ie,ge,Ee,Ae,me)}var oe=K.bind(null,!1);return oe.isRequired=K.bind(null,!0),oe}function h(W){function te(re,K,oe,de,ie,ge){var Ee=re[K],Ae=$(Ee);if(Ae!==W){var me=ue(Ee);return new d("Invalid "+de+" `"+ie+"` of type "+("`"+me+"` supplied to `"+oe+"`, expected ")+("`"+W+"`."),{expectedType:W})}return null}return p(te)}function g(){return p(a)}function m(W){function te(re,K,oe,de,ie){if(typeof W!="function")return new d("Property `"+ie+"` of component `"+oe+"` has invalid PropType notation inside arrayOf.");var ge=re[K];if(!Array.isArray(ge)){var Ee=$(ge);return new d("Invalid "+de+" `"+ie+"` of type "+("`"+Ee+"` supplied to `"+oe+"`, expected an array."))}for(var Ae=0;Ae<ge.length;Ae++){var me=W(ge,Ae,oe,de,ie+"["+Ae+"]",n);if(me instanceof Error)return me}return null}return p(te)}function E(){function W(te,re,K,oe,de){var ie=te[re];if(!l(ie)){var ge=$(ie);return new d("Invalid "+oe+" `"+de+"` of type "+("`"+ge+"` supplied to `"+K+"`, expected a single ReactElement."))}return null}return p(W)}function x(){function W(te,re,K,oe,de){var ie=te[re];if(!e.isValidElementType(ie)){var ge=$(ie);return new d("Invalid "+oe+" `"+de+"` of type "+("`"+ge+"` supplied to `"+K+"`, expected a single ReactElement type."))}return null}return p(W)}function A(W){function te(re,K,oe,de,ie){if(!(re[K]instanceof W)){var ge=W.name||b,Ee=ve(re[K]);return new d("Invalid "+de+" `"+ie+"` of type "+("`"+Ee+"` supplied to `"+oe+"`, expected ")+("instance of `"+ge+"`."))}return null}return p(te)}function T(W){if(!Array.isArray(W))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function te(re,K,oe,de,ie){for(var ge=re[K],Ee=0;Ee<W.length;Ee++)if(v(ge,W[Ee]))return null;var Ae=JSON.stringify(W,function(ze,V){var Ye=ue(V);return Ye==="symbol"?String(V):V});return new d("Invalid "+de+" `"+ie+"` of value `"+String(ge)+"` "+("supplied to `"+oe+"`, expected one of "+Ae+"."))}return p(te)}function C(W){function te(re,K,oe,de,ie){if(typeof W!="function")return new d("Property `"+ie+"` of component `"+oe+"` has invalid PropType notation inside objectOf.");var ge=re[K],Ee=$(ge);if(Ee!=="object")return new d("Invalid "+de+" `"+ie+"` of type "+("`"+Ee+"` supplied to `"+oe+"`, expected an object."));for(var Ae in ge)if(r(ge,Ae)){var me=W(ge,Ae,oe,de,ie+"."+Ae,n);if(me instanceof Error)return me}return null}return p(te)}function O(W){if(!Array.isArray(W))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var te=0;te<W.length;te++){var re=W[te];if(typeof re!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+se(re)+" at index "+te+"."),a}function K(oe,de,ie,ge,Ee){for(var Ae=[],me=0;me<W.length;me++){var ze=W[me],V=ze(oe,de,ie,ge,Ee,n);if(V==null)return null;V.data&&r(V.data,"expectedType")&&Ae.push(V.data.expectedType)}var Ye=Ae.length>0?", expected one of type ["+Ae.join(", ")+"]":"";return new d("Invalid "+ge+" `"+Ee+"` supplied to "+("`"+ie+"`"+Ye+"."))}return p(K)}function M(){function W(te,re,K,oe,de){return X(te[re])?null:new d("Invalid "+oe+" `"+de+"` supplied to "+("`"+K+"`, expected a ReactNode."))}return p(W)}function B(W,te,re,K,oe){return new d((W||"React class")+": "+te+" type `"+re+"."+K+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+oe+"`.")}function U(W){function te(re,K,oe,de,ie){var ge=re[K],Ee=$(ge);if(Ee!=="object")return new d("Invalid "+de+" `"+ie+"` of type `"+Ee+"` "+("supplied to `"+oe+"`, expected `object`."));for(var Ae in W){var me=W[Ae];if(typeof me!="function")return B(oe,de,ie,Ae,ue(me));var ze=me(ge,Ae,oe,de,ie+"."+Ae,n);if(ze)return ze}return null}return p(te)}function G(W){function te(re,K,oe,de,ie){var ge=re[K],Ee=$(ge);if(Ee!=="object")return new d("Invalid "+de+" `"+ie+"` of type `"+Ee+"` "+("supplied to `"+oe+"`, expected `object`."));var Ae=t({},re[K],W);for(var me in Ae){var ze=W[me];if(r(W,me)&&typeof ze!="function")return B(oe,de,ie,me,ue(ze));if(!ze)return new d("Invalid "+de+" `"+ie+"` key `"+me+"` supplied to `"+oe+"`.\nBad object: "+JSON.stringify(re[K],null," ")+`
|
|
769
|
+
Valid keys: `+JSON.stringify(Object.keys(W),null," "));var V=ze(ge,me,oe,de,ie+"."+me,n);if(V)return V}return null}return p(te)}function X(W){switch(typeof W){case"number":case"string":case"undefined":return!0;case"boolean":return!W;case"object":if(Array.isArray(W))return W.every(X);if(W===null||l(W))return!0;var te=f(W);if(te){var re=te.call(W),K;if(te!==W.entries){for(;!(K=re.next()).done;)if(!X(K.value))return!1}else for(;!(K=re.next()).done;){var oe=K.value;if(oe&&!X(oe[1]))return!1}}else return!1;return!0;default:return!1}}function q(W,te){return W==="symbol"?!0:te?te["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&te instanceof Symbol:!1}function $(W){var te=typeof W;return Array.isArray(W)?"array":W instanceof RegExp?"object":q(te,W)?"symbol":te}function ue(W){if(typeof W>"u"||W===null)return""+W;var te=$(W);if(te==="object"){if(W instanceof Date)return"date";if(W instanceof RegExp)return"regexp"}return te}function se(W){var te=ue(W);switch(te){case"array":case"object":return"an "+te;case"boolean":case"date":case"regexp":return"a "+te;default:return te}}function ve(W){return!W.constructor||!W.constructor.name?b:W.constructor.name}return y.checkPropTypes=o,y.resetWarningCache=o.resetWarningCache,y.PropTypes=y,y},md}var bd,h0;function bR(){if(h0)return bd;h0=1;var e=pd();function t(){}function n(){}return n.resetWarningCache=t,bd=function(){function r(a,l,s,u,c,f){if(f!==e){var b=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw b.name="Invariant Violation",b}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},bd}if(process.env.NODE_ENV!=="production"){var vR=s0(),yR=!0;cd.exports=mR()(vR.isElement,yR)}else cd.exports=bR()();var Ti=cd.exports;const xe=ds(Ti);var Qn={},g0={};function ER(e){for(var t=5381,n=e.length;n;)t=t*33^e.charCodeAt(--n);return t>>>0}var m0=ER;const xR=ds(m0);var CR=vd;function vd(e){Cr.length||Rl(),Cr[Cr.length]=e}var Cr=[],Rl,wr=0,wR=1024;function b0(){for(;wr<Cr.length;){var e=wr;if(wr=wr+1,Cr[e].call(),wr>wR){for(var t=0,n=Cr.length-wr;t<n;t++)Cr[t]=Cr[t+wr];Cr.length-=wr,wr=0}}Cr.length=0,wr=0}var v0=typeof Be<"u"?Be:self,y0=v0.MutationObserver||v0.WebKitMutationObserver;typeof y0=="function"?Rl=IR(b0):Rl=E0(b0),vd.requestFlush=Rl;function IR(e){var t=1,n=new y0(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}function E0(e){return function(){var n=setTimeout(o,0),r=setInterval(o,50);function o(){clearTimeout(n),clearInterval(r),e()}}}vd.makeRequestCallFromTimer=E0;var x0=CR,Nl=[],yd=[],SR=x0.makeRequestCallFromTimer(TR);function TR(){if(yd.length)throw yd.shift()}var C0=Ed;function Ed(e){var t;Nl.length?t=Nl.pop():t=new w0,t.task=e,x0(t)}function w0(){this.task=null}w0.prototype.call=function(){try{this.task.call()}catch(e){Ed.onerror?Ed.onerror(e):(yd.push(e),SR())}finally{this.task=null,Nl[Nl.length]=this}};const AR=ds(C0);(function(e){function t(Z){return Z&&typeof Z=="object"&&"default"in Z?Z.default:Z}var n=t(m0),r=t(C0);function o(Z){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?o=function(N){return typeof N}:o=function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N},o(Z)}function i(Z,N,H){return N in Z?Object.defineProperty(Z,N,{value:H,enumerable:!0,configurable:!0,writable:!0}):Z[N]=H,Z}function a(Z){for(var N=1;N<arguments.length;N++){var H=arguments[N]!=null?arguments[N]:{},L=Object.keys(H);typeof Object.getOwnPropertySymbols=="function"&&(L=L.concat(Object.getOwnPropertySymbols(H).filter(function(z){return Object.getOwnPropertyDescriptor(H,z).enumerable}))),L.forEach(function(z){i(Z,z,H[z])})}return Z}function l(Z){return s(Z)||u(Z)||c()}function s(Z){if(Array.isArray(Z)){for(var N=0,H=new Array(Z.length);N<Z.length;N++)H[N]=Z[N];return H}}function u(Z){if(Symbol.iterator in Object(Z)||Object.prototype.toString.call(Z)==="[object Arguments]")return Array.from(Z)}function c(){throw new TypeError("Invalid attempt to spread non-iterable instance")}var f=/([A-Z])/g,b=function(N){return"-".concat(N.toLowerCase())},y=function(N){var H=N.replace(f,b);return H[0]==="m"&&H[1]==="s"&&H[2]==="-"?"-".concat(H):H},v={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function d(Z,N){return Z+N.charAt(0).toUpperCase()+N.substring(1)}var p=["Webkit","ms","Moz","O"];Object.keys(v).forEach(function(Z){p.forEach(function(N){v[d(N,Z)]=v[Z]})});var h=function(N,H){return typeof H=="number"?v[N]?""+H:H+"px":""+H},g=function(N,H){return x(h(N,H))},m=function(N,H){return n(N).toString(36)},E=function(N){return m(JSON.stringify(N))},x=function(N){return N[N.length-10]==="!"&&N.slice(-11)===" !important"?N:"".concat(N," !important")},A=typeof Map<"u",T=function(){function Z(){this.elements={},this.keyOrder=[]}var N=Z.prototype;return N.forEach=function(L){for(var z=0;z<this.keyOrder.length;z++)L(this.elements[this.keyOrder[z]],this.keyOrder[z])},N.set=function(L,z,Q){if(!this.elements.hasOwnProperty(L))this.keyOrder.push(L);else if(Q){var ee=this.keyOrder.indexOf(L);this.keyOrder.splice(ee,1),this.keyOrder.push(L)}if(z==null){this.elements[L]=z;return}if(A&&z instanceof Map||z instanceof Z){var pe=this.elements.hasOwnProperty(L)?this.elements[L]:new Z;z.forEach(function(Je,Ge){pe.set(Ge,Je,Q)}),this.elements[L]=pe;return}if(!Array.isArray(z)&&o(z)==="object"){for(var fe=this.elements.hasOwnProperty(L)?this.elements[L]:new Z,he=Object.keys(z),ye=0;ye<he.length;ye+=1)fe.set(he[ye],z[he[ye]],Q);this.elements[L]=fe;return}this.elements[L]=z},N.get=function(L){return this.elements[L]},N.has=function(L){return this.elements.hasOwnProperty(L)},N.addStyleType=function(L){var z=this;if(A&&L instanceof Map||L instanceof Z)L.forEach(function(pe,fe){z.set(fe,pe,!0)});else for(var Q=Object.keys(L),ee=0;ee<Q.length;ee++)this.set(Q[ee],L[Q[ee]],!0)},Z}();function C(Z){return Z&&Z.__esModule&&Object.prototype.hasOwnProperty.call(Z,"default")?Z.default:Z}function O(Z,N){return N={exports:{}},Z(N,N.exports),N.exports}function M(Z){return Z&&Z.default||Z}var B=O(function(Z,N){Object.defineProperty(N,"__esModule",{value:!0}),N.default=H;function H(L){return L.charAt(0).toUpperCase()+L.slice(1)}});C(B);var U=O(function(Z,N){Object.defineProperty(N,"__esModule",{value:!0}),N.default=z;var H=L(B);function L(Q){return Q&&Q.__esModule?Q:{default:Q}}function z(Q,ee,pe){if(Q.hasOwnProperty(ee)){for(var fe={},he=Q[ee],ye=(0,H.default)(ee),Je=Object.keys(pe),Ge=0;Ge<Je.length;Ge++){var Ke=Je[Ge];if(Ke===ee)for(var it=0;it<he.length;it++)fe[he[it]+ye]=pe[ee];fe[Ke]=pe[Ke]}return fe}return pe}});C(U);var G=O(function(Z,N){Object.defineProperty(N,"__esModule",{value:!0}),N.default=H;function H(L,z,Q,ee,pe){for(var fe=0,he=L.length;fe<he;++fe){var ye=L[fe](z,Q,ee,pe);if(ye)return ye}}});C(G);var X=O(function(Z,N){Object.defineProperty(N,"__esModule",{value:!0}),N.default=L;function H(z,Q){z.indexOf(Q)===-1&&z.push(Q)}function L(z,Q){if(Array.isArray(Q))for(var ee=0,pe=Q.length;ee<pe;++ee)H(z,Q[ee]);else H(z,Q)}});C(X);var q=O(function(Z,N){Object.defineProperty(N,"__esModule",{value:!0}),N.default=H;function H(L){return L instanceof Object&&!Array.isArray(L)}});C(q);var $=O(function(Z,N){Object.defineProperty(N,"__esModule",{value:!0}),N.default=pe;var H=ee(U),L=ee(G),z=ee(X),Q=ee(q);function ee(fe){return fe&&fe.__esModule?fe:{default:fe}}function pe(fe){var he=fe.prefixMap,ye=fe.plugins;return function Je(Ge){for(var Ke in Ge){var it=Ge[Ke];if((0,Q.default)(it))Ge[Ke]=Je(it);else if(Array.isArray(it)){for(var yt=[],Ht=0,kn=it.length;Ht<kn;++Ht){var ea=(0,L.default)(ye,Ke,it[Ht],Ge,he);(0,z.default)(yt,ea||it[Ht])}yt.length>0&&(Ge[Ke]=yt)}else{var ss=(0,L.default)(ye,Ke,it,Ge,he);ss&&(Ge[Ke]=ss),Ge=(0,H.default)(he,Ke,Ge)}}return Ge}}}),ue=C($),se=O(function(Z,N){Object.defineProperty(N,"__esModule",{value:!0}),N.default=H;function H(L,z){if(typeof z=="string"&&z==="text")return["-webkit-text","text"]}}),ve=C(se),W=O(function(Z,N){Object.defineProperty(N,"__esModule",{value:!0}),N.default=L;var H=/-webkit-|-moz-|-ms-/;function L(z){return typeof z=="string"&&H.test(z)}Z.exports=N.default});C(W);var te=O(function(Z,N){Object.defineProperty(N,"__esModule",{value:!0}),N.default=Q;var H=L(W);function L(ee){return ee&&ee.__esModule?ee:{default:ee}}var z=["-webkit-","-moz-",""];function Q(ee,pe){if(typeof pe=="string"&&!(0,H.default)(pe)&&pe.indexOf("calc(")>-1)return z.map(function(fe){return pe.replace(/calc\(/g,fe+"calc(")})}}),re=C(te),K=O(function(Z,N){Object.defineProperty(N,"__esModule",{value:!0}),N.default=Q;var H=L(W);function L(ee){return ee&&ee.__esModule?ee:{default:ee}}var z=["-webkit-",""];function Q(ee,pe){if(typeof pe=="string"&&!(0,H.default)(pe)&&pe.indexOf("cross-fade(")>-1)return z.map(function(fe){return pe.replace(/cross-fade\(/g,fe+"cross-fade(")})}}),oe=C(K),de=O(function(Z,N){Object.defineProperty(N,"__esModule",{value:!0}),N.default=z;var H=["-webkit-","-moz-",""],L={"zoom-in":!0,"zoom-out":!0,grab:!0,grabbing:!0};function z(Q,ee){if(Q==="cursor"&&L.hasOwnProperty(ee))return H.map(function(pe){return pe+ee})}}),ie=C(de),ge=O(function(Z,N){Object.defineProperty(N,"__esModule",{value:!0}),N.default=Q;var H=L(W);function L(ee){return ee&&ee.__esModule?ee:{default:ee}}var z=["-webkit-",""];function Q(ee,pe){if(typeof pe=="string"&&!(0,H.default)(pe)&&pe.indexOf("filter(")>-1)return z.map(function(fe){return pe.replace(/filter\(/g,fe+"filter(")})}}),Ee=C(ge),Ae=O(function(Z,N){Object.defineProperty(N,"__esModule",{value:!0}),N.default=L;var H={flex:["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex","flex"],"inline-flex":["-webkit-inline-box","-moz-inline-box","-ms-inline-flexbox","-webkit-inline-flex","inline-flex"]};function L(z,Q){if(z==="display"&&H.hasOwnProperty(Q))return H[Q]}}),me=C(Ae),ze=O(function(Z,N){Object.defineProperty(N,"__esModule",{value:!0}),N.default=ee;var H={"space-around":"distribute","space-between":"justify","flex-start":"start","flex-end":"end"},L={alignContent:"msFlexLinePack",alignSelf:"msFlexItemAlign",alignItems:"msFlexAlign",justifyContent:"msFlexPack",order:"msFlexOrder",flexGrow:"msFlexPositive",flexShrink:"msFlexNegative",flexBasis:"msFlexPreferredSize"},z={auto:"1 1 auto",inherit:"inherit",initial:"0 1 auto",none:"0 0 auto",unset:"unset"},Q=/^\d+(\.\d+)?$/;function ee(pe,fe,he){if(Object.prototype.hasOwnProperty.call(L,pe)&&(he[L[pe]]=H[fe]||fe),pe==="flex"){if(Object.prototype.hasOwnProperty.call(z,fe)){he.msFlex=z[fe];return}if(Q.test(fe)){he.msFlex=fe+" 1 0%";return}var ye=fe.split(/\s/);switch(ye.length){case 1:he.msFlex="1 1 "+fe;return;case 2:Q.test(ye[1])?he.msFlex=ye[0]+" "+ye[1]+" 0%":he.msFlex=ye[0]+" 1 "+ye[1];return;default:he.msFlex=fe}}}}),V=C(ze),Ye=O(function(Z,N){Object.defineProperty(N,"__esModule",{value:!0}),N.default=z;var H={"space-around":"justify","space-between":"justify","flex-start":"start","flex-end":"end","wrap-reverse":"multiple",wrap:"multiple"},L={alignItems:"WebkitBoxAlign",justifyContent:"WebkitBoxPack",flexWrap:"WebkitBoxLines",flexGrow:"WebkitBoxFlex"};function z(Q,ee,pe){Q==="flexDirection"&&typeof ee=="string"&&(ee.indexOf("column")>-1?pe.WebkitBoxOrient="vertical":pe.WebkitBoxOrient="horizontal",ee.indexOf("reverse")>-1?pe.WebkitBoxDirection="reverse":pe.WebkitBoxDirection="normal"),L.hasOwnProperty(Q)&&(pe[L[Q]]=H[ee]||ee)}}),Le=C(Ye),Ue=O(function(Z,N){Object.defineProperty(N,"__esModule",{value:!0}),N.default=ee;var H=L(W);function L(pe){return pe&&pe.__esModule?pe:{default:pe}}var z=["-webkit-","-moz-",""],Q=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/gi;function ee(pe,fe){if(typeof fe=="string"&&!(0,H.default)(fe)&&Q.test(fe))return z.map(function(he){return fe.replace(Q,function(ye){return he+ye})})}}),Pt=C(Ue),Nn=O(function(Z,N){Object.defineProperty(N,"__esModule",{value:!0});var H=function(){function fe(he,ye){var Je=[],Ge=!0,Ke=!1,it=void 0;try{for(var yt=he[Symbol.iterator](),Ht;!(Ge=(Ht=yt.next()).done)&&(Je.push(Ht.value),!(ye&&Je.length===ye));Ge=!0);}catch(kn){Ke=!0,it=kn}finally{try{!Ge&&yt.return&&yt.return()}finally{if(Ke)throw it}}return Je}return function(he,ye){if(Array.isArray(he))return he;if(Symbol.iterator in Object(he))return fe(he,ye);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();N.default=pe;function L(fe){return typeof fe=="number"&&!isNaN(fe)}var z=["center","end","start","stretch"],Q={"inline-grid":["-ms-inline-grid","inline-grid"],grid:["-ms-grid","grid"]},ee={alignSelf:function(he,ye){z.indexOf(he)>-1&&(ye.msGridRowAlign=he)},gridColumn:function(he,ye){if(L(he))ye.msGridColumn=he;else{var Je=he.split("/").map(function(yt){return+yt}),Ge=H(Je,2),Ke=Ge[0],it=Ge[1];ee.gridColumnStart(Ke,ye),ee.gridColumnEnd(it,ye)}},gridColumnEnd:function(he,ye){var Je=ye.msGridColumn;L(he)&&L(Je)&&(ye.msGridColumnSpan=he-Je)},gridColumnStart:function(he,ye){L(he)&&(ye.msGridColumn=he)},gridRow:function(he,ye){if(L(he))ye.msGridRow=he;else{var Je=he.split("/").map(function(yt){return+yt}),Ge=H(Je,2),Ke=Ge[0],it=Ge[1];ee.gridRowStart(Ke,ye),ee.gridRowEnd(it,ye)}},gridRowEnd:function(he,ye){var Je=ye.msGridRow;L(he)&&L(Je)&&(ye.msGridRowSpan=he-Je)},gridRowStart:function(he,ye){L(he)&&(ye.msGridRow=he)},gridTemplateColumns:function(he,ye){ye.msGridColumns=he},gridTemplateRows:function(he,ye){ye.msGridRows=he},justifySelf:function(he,ye){z.indexOf(he)>-1&&(ye.msGridColumnAlign=he)}};function pe(fe,he,ye){if(fe==="display"&&he in Q)return Q[he];if(fe in ee){var Je=ee[fe];Je(he,ye)}}}),kt=C(Nn),Ut=O(function(Z,N){Object.defineProperty(N,"__esModule",{value:!0}),N.default=Q;var H=L(W);function L(ee){return ee&&ee.__esModule?ee:{default:ee}}var z=["-webkit-",""];function Q(ee,pe){if(typeof pe=="string"&&!(0,H.default)(pe)&&pe.indexOf("image-set(")>-1)return z.map(function(fe){return pe.replace(/image-set\(/g,fe+"image-set(")})}}),mt=C(Ut),zn=O(function(Z,N){Object.defineProperty(N,"__esModule",{value:!0}),N.default=L;var H={marginBlockStart:["WebkitMarginBefore"],marginBlockEnd:["WebkitMarginAfter"],marginInlineStart:["WebkitMarginStart","MozMarginStart"],marginInlineEnd:["WebkitMarginEnd","MozMarginEnd"],paddingBlockStart:["WebkitPaddingBefore"],paddingBlockEnd:["WebkitPaddingAfter"],paddingInlineStart:["WebkitPaddingStart","MozPaddingStart"],paddingInlineEnd:["WebkitPaddingEnd","MozPaddingEnd"],borderBlockStart:["WebkitBorderBefore"],borderBlockStartColor:["WebkitBorderBeforeColor"],borderBlockStartStyle:["WebkitBorderBeforeStyle"],borderBlockStartWidth:["WebkitBorderBeforeWidth"],borderBlockEnd:["WebkitBorderAfter"],borderBlockEndColor:["WebkitBorderAfterColor"],borderBlockEndStyle:["WebkitBorderAfterStyle"],borderBlockEndWidth:["WebkitBorderAfterWidth"],borderInlineStart:["WebkitBorderStart","MozBorderStart"],borderInlineStartColor:["WebkitBorderStartColor","MozBorderStartColor"],borderInlineStartStyle:["WebkitBorderStartStyle","MozBorderStartStyle"],borderInlineStartWidth:["WebkitBorderStartWidth","MozBorderStartWidth"],borderInlineEnd:["WebkitBorderEnd","MozBorderEnd"],borderInlineEndColor:["WebkitBorderEndColor","MozBorderEndColor"],borderInlineEndStyle:["WebkitBorderEndStyle","MozBorderEndStyle"],borderInlineEndWidth:["WebkitBorderEndWidth","MozBorderEndWidth"]};function L(z,Q,ee){if(Object.prototype.hasOwnProperty.call(H,z))for(var pe=H[z],fe=0,he=pe.length;fe<he;++fe)ee[pe[fe]]=Q}}),cn=C(zn),So=O(function(Z,N){Object.defineProperty(N,"__esModule",{value:!0}),N.default=H;function H(L,z){if(L==="position"&&z==="sticky")return["-webkit-sticky","sticky"]}}),To=C(So),Ao=O(function(Z,N){Object.defineProperty(N,"__esModule",{value:!0}),N.default=Q;var H=["-webkit-","-moz-",""],L={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},z={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};function Q(ee,pe){if(L.hasOwnProperty(ee)&&z.hasOwnProperty(pe))return H.map(function(fe){return fe+pe})}}),Dn=C(Ao),Vt=/[A-Z]/g,Xn=/^ms-/,dn={};function fn(Z){return"-"+Z.toLowerCase()}function Ct(Z){if(dn.hasOwnProperty(Z))return dn[Z];var N=Z.replace(Vt,fn);return dn[Z]=Xn.test(N)?"-"+N:N}var Ur=Object.freeze({default:Ct}),Fr=M(Ur),_o=O(function(Z,N){Object.defineProperty(N,"__esModule",{value:!0}),N.default=z;var H=L(Fr);function L(Q){return Q&&Q.__esModule?Q:{default:Q}}function z(Q){return(0,H.default)(Q)}Z.exports=N.default});C(_o);var pn=O(function(Z,N){Object.defineProperty(N,"__esModule",{value:!0}),N.default=he;var H=Q(_o),L=Q(W),z=Q(B);function Q(ye){return ye&&ye.__esModule?ye:{default:ye}}var ee={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},pe={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-"};function fe(ye,Je){if((0,L.default)(ye))return ye;for(var Ge=ye.split(/,(?![^()]*(?:\([^()]*\))?\))/g),Ke=0,it=Ge.length;Ke<it;++Ke){var yt=Ge[Ke],Ht=[yt];for(var kn in Je){var ea=(0,H.default)(kn);if(yt.indexOf(ea)>-1&&ea!=="order")for(var ss=Je[kn],_f=0,q9=ss.length;_f<q9;++_f)Ht.unshift(yt.replace(ea,pe[ss[_f]]+ea))}Ge[Ke]=Ht.join(",")}return Ge.join(",")}function he(ye,Je,Ge,Ke){if(typeof Je=="string"&&ee.hasOwnProperty(ye)){var it=fe(Je,Ke),yt=it.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(kn){return!/-moz-|-ms-/.test(kn)}).join(",");if(ye.indexOf("Webkit")>-1)return yt;var Ht=it.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(kn){return!/-webkit-|-ms-/.test(kn)}).join(",");return ye.indexOf("Moz")>-1?Ht:(Ge["Webkit"+(0,z.default)(ye)]=yt,Ge["Moz"+(0,z.default)(ye)]=Ht,it)}}}),qr=C(pn),we=["Webkit"],mr=["Moz"],er=["ms"],wt=["Webkit","Moz"],$e=["Webkit","ms"],ht=["Webkit","Moz","ms"],At={plugins:[ve,re,oe,ie,Ee,me,V,Le,Pt,kt,mt,cn,To,Dn,qr],prefixMap:{transform:$e,transformOrigin:$e,transformOriginX:$e,transformOriginY:$e,backfaceVisibility:we,perspective:we,perspectiveOrigin:we,transformStyle:we,transformOriginZ:we,animation:we,animationDelay:we,animationDirection:we,animationFillMode:we,animationDuration:we,animationIterationCount:we,animationName:we,animationPlayState:we,animationTimingFunction:we,appearance:wt,userSelect:ht,fontKerning:we,textEmphasisPosition:we,textEmphasis:we,textEmphasisStyle:we,textEmphasisColor:we,boxDecorationBreak:we,clipPath:we,maskImage:we,maskMode:we,maskRepeat:we,maskPosition:we,maskClip:we,maskOrigin:we,maskSize:we,maskComposite:we,mask:we,maskBorderSource:we,maskBorderMode:we,maskBorderSlice:we,maskBorderWidth:we,maskBorderOutset:we,maskBorderRepeat:we,maskBorder:we,maskType:we,textDecorationStyle:wt,textDecorationSkip:wt,textDecorationLine:wt,textDecorationColor:wt,filter:we,fontFeatureSettings:wt,breakAfter:ht,breakBefore:ht,breakInside:ht,columnCount:wt,columnFill:wt,columnGap:wt,columnRule:wt,columnRuleColor:wt,columnRuleStyle:wt,columnRuleWidth:wt,columns:wt,columnSpan:wt,columnWidth:wt,writingMode:$e,flex:$e,flexBasis:we,flexDirection:$e,flexGrow:we,flexFlow:$e,flexShrink:we,flexWrap:$e,alignContent:we,alignItems:we,alignSelf:we,justifyContent:we,order:we,transitionDelay:we,transitionDuration:we,transitionProperty:we,transitionTimingFunction:we,backdropFilter:we,scrollSnapType:$e,scrollSnapPointsX:$e,scrollSnapPointsY:$e,scrollSnapDestination:$e,scrollSnapCoordinate:$e,shapeImageThreshold:we,shapeImageMargin:we,shapeImageOutside:we,hyphens:ht,flowInto:$e,flowFrom:$e,regionFragment:$e,textOrientation:we,boxSizing:mr,textAlignLast:mr,tabSize:mr,wrapFlow:er,wrapThrough:er,wrapMargin:er,touchAction:er,textSizeAdjust:$e,borderImage:we,borderImageOutset:we,borderImageRepeat:we,borderImageSlice:we,borderImageSource:we,borderImageWidth:we}},_t=ue(At),rn=[function(N,H,L){return N[0]!==":"?null:L(H+N)},function(N,H,L){if(N[0]!=="@")return null;var z=L(H);return["".concat(N,"{").concat(z.join(""),"}")]}],Lt=function Z(N,H,L,z,Q){for(var ee=new T,pe=0;pe<H.length;pe++)ee.addStyleType(H[pe]);var fe=new T,he=[];ee.forEach(function(Je,Ge){var Ke=L.some(function(it){var yt=it(Ge,N,function(Ht){return Z(Ht,[Je],L,z,Q)});if(yt!=null)return Array.isArray(yt)?he.push.apply(he,l(yt)):(console.warn("WARNING: Selector handlers should return an array of rules.Returning a string containing multiple rules is deprecated.",it),he.push("@media all {".concat(yt,"}"))),!0});Ke||fe.set(Ge,Je,!0)});var ye=Wt(N,fe,z,Q,L);return ye&&he.unshift(ye),he},Gt=function(N,H,L){if(H)for(var z=Object.keys(H),Q=0;Q<z.length;Q++){var ee=z[Q];N.has(ee)&&N.set(ee,H[ee](N.get(ee),L),!1)}},Kt=function(N,H,L){return"".concat(y(N),":").concat(L(N,H),";")},Pn=function(N,H){return N[H]=!0,N},Wt=function(N,H,L,z,Q){Gt(H,L,Q);var ee=Object.keys(H.elements).reduce(Pn,Object.create(null)),pe=_t(H.elements),fe=Object.keys(pe);if(fe.length!==H.keyOrder.length){for(var he=0;he<fe.length;he++)if(!ee[fe[he]]){var ye=void 0;if(fe[he][0]==="W"?ye=fe[he][6].toLowerCase()+fe[he].slice(7):fe[he][1]==="o"?ye=fe[he][3].toLowerCase()+fe[he].slice(4):ye=fe[he][2].toLowerCase()+fe[he].slice(3),ye&&ee[ye]){var Je=H.keyOrder.indexOf(ye);H.keyOrder.splice(Je,0,fe[he])}else H.keyOrder.unshift(fe[he])}}for(var Ge=z===!1?h:g,Ke=[],it=0;it<H.keyOrder.length;it++){var yt=H.keyOrder[it],Ht=pe[yt];if(Array.isArray(Ht))for(var kn=0;kn<Ht.length;kn++)Ke.push(Kt(yt,Ht[kn],Ge));else Ke.push(Kt(yt,Ht,Ge))}return Ke.length?"".concat(N,"{").concat(Ke.join(""),"}"):""},xt=null,Zn=function(N){if(xt==null&&(xt=document.querySelector("style[data-aphrodite]"),xt==null)){var H=document.head||document.getElementsByTagName("head")[0];xt=document.createElement("style"),xt.type="text/css",xt.setAttribute("data-aphrodite",""),H.appendChild(xt)}var L=xt.styleSheet||xt.sheet;if(L.insertRule){var z=L.cssRules.length;N.forEach(function(Q){try{L.insertRule(Q,z),z+=1}catch{}})}else xt.innerText=(xt.innerText||"")+N.join("")},Yn={fontFamily:function Z(N){if(Array.isArray(N)){var H={};return N.forEach(function(L){H[Z(L)]=!0}),Object.keys(H).join(",")}else return o(N)==="object"?(_(N.src,"@font-face",[N],!1),'"'.concat(N.fontFamily,'"')):N},animationName:function Z(N,H){if(Array.isArray(N))return N.map(function(Q){return Z(Q,H)}).join(",");if(o(N)==="object"){var L="keyframe_".concat(E(N)),z="@keyframes ".concat(L,"{");return N instanceof T?N.forEach(function(Q,ee){z+=Lt(ee,[Q],H,Yn,!1).join("")}):Object.keys(N).forEach(function(Q){z+=Lt(Q,[N[Q]],H,Yn,!1).join("")}),z+="}",j(L,[z]),L}else return N}},hn={},R=[],k=!1,j=function(N,H){var L;if(!hn[N]){if(!k){if(typeof document>"u")throw new Error("Cannot automatically buffer without a document");k=!0,r(ae)}(L=R).push.apply(L,l(H)),hn[N]=!0}},_=function(N,H,L,z){var Q=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[];if(!hn[N]){var ee=Lt(H,L,Q,Yn,z);j(N,ee)}},F=function(){R=[],hn={},k=!1,xt=null},J=function(N){delete hn[N]},ce=function(){return R},ne=function(){if(k)throw new Error("Cannot buffer while already buffering");k=!0},be=function(){k=!1;var N=R;return R=[],N},le=function(){return be().join("")},ae=function(){var N=be();N.length>0&&Zn(N)},ke=function(){return Object.keys(hn)},Ne=function(N){N.forEach(function(H){hn[H]=!0})},Fe=function(N){return"_definition"in N&&"_name"in N&&"_len"in N},Me=function Z(N,H,L,z){for(var Q=0;Q<N.length;Q+=1)if(N[Q])if(Array.isArray(N[Q]))z+=Z(N[Q],H,L,z);else if(Fe(N[Q]))H.push(N[Q]._name),L.push(N[Q]._definition),z+=N[Q]._len;else throw new Error("Invalid Style Definition: Styles should be defined using the StyleSheet.create method.");return z},bt=function(N,H,L){var z=[],Q=[],ee=Me(H,z,Q,0);if(z.length===0)return"";var pe;return process.env.NODE_ENV==="production"?pe=z.length===1?"_".concat(z[0]):"_".concat(m(z.join())).concat((ee%36).toString(36)):pe=z.join("-o_O-"),_(pe,".".concat(pe),Q,N,L),pe},ot=function(N,H){return"".concat(H,"_").concat(m(N))},Dt=function(){return process.env.NODE_ENV==="production"?m:ot},gn=Dt(),Mr={create:function(N){for(var H={},L=Object.keys(N),z=0;z<L.length;z+=1){var Q=L[z],ee=N[Q],pe=JSON.stringify(ee);H[Q]={_len:pe.length,_name:gn(pe,Q),_definition:ee}}return H},rehydrate:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Ne(N)}},tr=typeof window<"u"?null:{renderStatic:function(N){F(),ne();var H=N(),L=le();return{html:H,css:{content:L,renderedClassNames:ke()}}}},Ki=process.env.NODE_ENV==="production"?null:{suppressStyleInjection:function(){F(),ne()},clearBufferAndResumeStyleInjection:function(){F()},getBufferedStyles:function(){return ce()}};function nr(Z){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:rn;return{StyleSheet:a({},Mr,{extend:function(L){var z=L.map(function(Q){return Q.selectorHandler}).filter(function(Q){return Q});return nr(Z,N.concat(z))}}),StyleSheetServer:tr,StyleSheetTestUtils:Ki,minify:function(L){gn=L?m:ot},css:function(){for(var L=arguments.length,z=new Array(L),Q=0;Q<L;Q++)z[Q]=arguments[Q];return bt(Z,z,N)},flushToStyleTag:ae,injectAndGetClassName:bt,defaultSelectorHandlers:rn,reset:F,resetInjectedStyle:J}}e.makeExports=nr})(g0),Object.defineProperty(Qn,"__esModule",{value:!0});var _R=g0,OR=!1,Ir=_R.makeExports(OR),RR=Ir.StyleSheet,NR=Ir.StyleSheetServer,DR=Ir.StyleSheetTestUtils,PR=Ir.css,kR=Ir.minify,LR=Ir.flushToStyleTag,FR=Ir.injectAndGetClassName,MR=Ir.defaultSelectorHandlers,BR=Ir.reset,jR=Ir.resetInjectedStyle;Qn.StyleSheet=RR,Qn.StyleSheetServer=NR,Qn.StyleSheetTestUtils=DR,Qn.css=PR,Qn.minify=kR,Qn.flushToStyleTag=LR,Qn.injectAndGetClassName=FR,Qn.defaultSelectorHandlers=MR,Qn.reset=BR,Qn.resetInjectedStyle=jR;var Bt=Qn,xd={exports:{}},Cd={exports:{}},I0={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(I0);var VR=I0.exports,Dl={exports:{}},S0;function GR(){return S0||(S0=1,function(e,t){t.__esModule=!0,t.default=n;function n(r,o){return r.classList?!!o&&r.classList.contains(o):(" "+(r.className.baseVal||r.className)+" ").indexOf(" "+o+" ")!==-1}e.exports=t.default}(Dl,Dl.exports)),Dl.exports}(function(e,t){var n=VR;t.__esModule=!0,t.default=o;var r=n(GR());function o(i,a){i.classList?i.classList.add(a):(0,r.default)(i,a)||(typeof i.className=="string"?i.className=i.className+" "+a:i.setAttribute("class",(i.className&&i.className.baseVal||"")+" "+a))}e.exports=t.default})(Cd,Cd.exports);var WR=Cd.exports;function T0(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var HR=function(t,n){t.classList?t.classList.remove(n):typeof t.className=="string"?t.className=T0(t.className,n):t.setAttribute("class",T0(t.className&&t.className.baseVal||"",n))},vn={};function A0(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function _0(e){function t(n){var r=this.constructor.getDerivedStateFromProps(e,n);return r??null}this.setState(t.bind(this))}function O0(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}A0.__suppressDeprecationWarning=!0,_0.__suppressDeprecationWarning=!0,O0.__suppressDeprecationWarning=!0;function zR(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if(typeof e.getDerivedStateFromProps!="function"&&typeof t.getSnapshotBeforeUpdate!="function")return e;var n=null,r=null,o=null;if(typeof t.componentWillMount=="function"?n="componentWillMount":typeof t.UNSAFE_componentWillMount=="function"&&(n="UNSAFE_componentWillMount"),typeof t.componentWillReceiveProps=="function"?r="componentWillReceiveProps":typeof t.UNSAFE_componentWillReceiveProps=="function"&&(r="UNSAFE_componentWillReceiveProps"),typeof t.componentWillUpdate=="function"?o="componentWillUpdate":typeof t.UNSAFE_componentWillUpdate=="function"&&(o="UNSAFE_componentWillUpdate"),n!==null||r!==null||o!==null){var i=e.displayName||e.name,a=typeof e.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
770
770
|
|
|
771
771
|
`+i+" uses "+a+" but also contains the following legacy lifecycles:"+(n!==null?`
|
|
772
772
|
`+n:"")+(r!==null?`
|
|
@@ -774,28 +774,28 @@ Valid keys: `+JSON.stringify(Object.keys(H),null," "));var V=ze(ge,me,oe,de,ie+
|
|
|
774
774
|
`+o:"")+`
|
|
775
775
|
|
|
776
776
|
The above lifecycles should be removed. Learn more about this warning here:
|
|
777
|
-
https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=A0,t.componentWillReceiveProps=_0),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=O0;var s=t.componentDidUpdate;t.componentDidUpdate=function(u,c,d){var v=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:d;s.call(this,u,c,v)}}return e}const R0=Ry(Object.freeze(Object.defineProperty({__proto__:null,polyfill:zR},Symbol.toStringTag,{value:"Module"})));var zo={};zo.__esModule=!0,zo.classNamesShape=zo.timeoutsShape=void 0;var Yt=XR(Ti);function XR(e){return e&&e.__esModule?e:{default:e}}var ZR=process.env.NODE_ENV!=="production"?Yt.default.oneOfType([Yt.default.number,Yt.default.shape({enter:Yt.default.number,exit:Yt.default.number,appear:Yt.default.number}).isRequired]):null;zo.timeoutsShape=ZR;var YR=process.env.NODE_ENV!=="production"?Yt.default.oneOfType([Yt.default.string,Yt.default.shape({enter:Yt.default.string,exit:Yt.default.string,active:Yt.default.string}),Yt.default.shape({enter:Yt.default.string,enterDone:Yt.default.string,enterActive:Yt.default.string,exit:Yt.default.string,exitDone:Yt.default.string,exitActive:Yt.default.string})]):null;zo.classNamesShape=YR,vn.__esModule=!0,vn.default=vn.EXITING=vn.ENTERED=vn.ENTERING=vn.EXITED=vn.UNMOUNTED=void 0;var tn=QR(Ti),wd=N0(S),UR=N0(Qe),qR=R0,JR=zo;function N0(e){return e&&e.__esModule?e:{default:e}}function QR(e){if(e&&e.__esModule)return e;var t={};if(e!=null){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}}return t.default=e,t}function $R(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function KR(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Wa="unmounted";vn.UNMOUNTED=Wa;var Xo="exited";vn.EXITED=Xo;var Zo="entering";vn.ENTERING=Zo;var Ai="entered";vn.ENTERED=Ai;var Id="exiting";vn.EXITING=Id;var Sr=function(e){KR(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o.transitionGroup,s=a&&!a.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?s?(l=Xo,i.appearStatus=Zo):l=Ai:r.unmountOnExit||r.mountOnEnter?l=Wa:l=Xo,i.state={status:l},i.nextCallback=null,i}var n=t.prototype;return n.getChildContext=function(){return{transitionGroup:null}},t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===Wa?{status:Xo}:null},n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==Zo&&a!==Ai&&(i=Zo):(a===Zo||a===Ai)&&(i=Id)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,s;return i=a=s=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,s=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:s}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null){this.cancelNextCallback();var a=UR.default.findDOMNode(this);i===Zo?this.performEnter(a,o):this.performExit(a)}else this.props.unmountOnExit&&this.state.status===Xo&&this.setState({status:Wa})},n.performEnter=function(o,i){var a=this,s=this.props.enter,l=this.context.transitionGroup?this.context.transitionGroup.isMounting:i,u=this.getTimeouts(),c=l?u.appear:u.enter;if(!i&&!s){this.safeSetState({status:Ai},function(){a.props.onEntered(o)});return}this.props.onEnter(o,l),this.safeSetState({status:Zo},function(){a.props.onEntering(o,l),a.onTransitionEnd(o,c,function(){a.safeSetState({status:Ai},function(){a.props.onEntered(o,l)})})})},n.performExit=function(o){var i=this,a=this.props.exit,s=this.getTimeouts();if(!a){this.safeSetState({status:Xo},function(){i.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:Id},function(){i.props.onExiting(o),i.onTransitionEnd(o,s.exit,function(){i.safeSetState({status:Xo},function(){i.props.onExited(o)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,i.nextCallback=null,o(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i,a){this.setNextCallback(a);var s=i==null&&!this.props.addEndListener;if(!o||s){setTimeout(this.nextCallback,0);return}this.props.addEndListener&&this.props.addEndListener(o,this.nextCallback),i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var o=this.state.status;if(o===Wa)return null;var i=this.props,a=i.children,s=$R(i,["children"]);if(delete s.in,delete s.mountOnEnter,delete s.unmountOnExit,delete s.appear,delete s.enter,delete s.exit,delete s.timeout,delete s.addEndListener,delete s.onEnter,delete s.onEntering,delete s.onEntered,delete s.onExit,delete s.onExiting,delete s.onExited,typeof a=="function")return a(o,s);var l=wd.default.Children.only(a);return wd.default.cloneElement(l,s)},t}(wd.default.Component);Sr.contextTypes={transitionGroup:tn.object},Sr.childContextTypes={transitionGroup:function(){}},Sr.propTypes=process.env.NODE_ENV!=="production"?{children:tn.oneOfType([tn.func.isRequired,tn.element.isRequired]).isRequired,in:tn.bool,mountOnEnter:tn.bool,unmountOnExit:tn.bool,appear:tn.bool,enter:tn.bool,exit:tn.bool,timeout:function(t){var n=JR.timeoutsShape;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return n.apply(void 0,[t].concat(o))},addEndListener:tn.func,onEnter:tn.func,onEntering:tn.func,onEntered:tn.func,onExit:tn.func,onExiting:tn.func,onExited:tn.func}:{};function _i(){}Sr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:_i,onEntering:_i,onEntered:_i,onExit:_i,onExiting:_i,onExited:_i},Sr.UNMOUNTED=0,Sr.EXITED=1,Sr.ENTERING=2,Sr.ENTERED=3,Sr.EXITING=4;var eN=(0,qR.polyfill)(Sr);vn.default=eN,function(e,t){t.__esModule=!0,t.default=void 0;var n=u(Ti),r=l(WR),o=l(HR),i=l(S),a=l(vn),s=zo;function l(p){return p&&p.__esModule?p:{default:p}}function u(p){if(p&&p.__esModule)return p;var h={};if(p!=null){for(var m in p)if(Object.prototype.hasOwnProperty.call(p,m)){var b=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(p,m):{};b.get||b.set?Object.defineProperty(h,m,b):h[m]=p[m]}}return h.default=p,h}function c(){return c=Object.assign||function(p){for(var h=1;h<arguments.length;h++){var m=arguments[h];for(var b in m)Object.prototype.hasOwnProperty.call(m,b)&&(p[b]=m[b])}return p},c.apply(this,arguments)}function d(p,h){p.prototype=Object.create(h.prototype),p.prototype.constructor=p,p.__proto__=h}var v=function(h,m){return h&&m&&m.split(" ").forEach(function(b){return(0,r.default)(h,b)})},y=function(h,m){return h&&m&&m.split(" ").forEach(function(b){return(0,o.default)(h,b)})},g=function(p){d(h,p);function h(){for(var b,E=arguments.length,x=new Array(E),T=0;T<E;T++)x[T]=arguments[T];return b=p.call.apply(p,[this].concat(x))||this,b.onEnter=function(A,C){var O=b.getClassNames(C?"appear":"enter"),B=O.className;b.removeClasses(A,"exit"),v(A,B),b.props.onEnter&&b.props.onEnter(A,C)},b.onEntering=function(A,C){var O=b.getClassNames(C?"appear":"enter"),B=O.activeClassName;b.reflowAndAddClass(A,B),b.props.onEntering&&b.props.onEntering(A,C)},b.onEntered=function(A,C){var O=b.getClassNames("appear").doneClassName,B=b.getClassNames("enter").doneClassName,M=C?O+" "+B:B;b.removeClasses(A,C?"appear":"enter"),v(A,M),b.props.onEntered&&b.props.onEntered(A,C)},b.onExit=function(A){var C=b.getClassNames("exit"),O=C.className;b.removeClasses(A,"appear"),b.removeClasses(A,"enter"),v(A,O),b.props.onExit&&b.props.onExit(A)},b.onExiting=function(A){var C=b.getClassNames("exit"),O=C.activeClassName;b.reflowAndAddClass(A,O),b.props.onExiting&&b.props.onExiting(A)},b.onExited=function(A){var C=b.getClassNames("exit"),O=C.doneClassName;b.removeClasses(A,"exit"),v(A,O),b.props.onExited&&b.props.onExited(A)},b.getClassNames=function(A){var C=b.props.classNames,O=typeof C=="string",B=O&&C?C+"-":"",M=O?B+A:C[A],Q=O?M+"-active":C[A+"Active"],G=O?M+"-done":C[A+"Done"];return{className:M,activeClassName:Q,doneClassName:G}},b}var m=h.prototype;return m.removeClasses=function(E,x){var T=this.getClassNames(x),A=T.className,C=T.activeClassName,O=T.doneClassName;A&&y(E,A),C&&y(E,C),O&&y(E,O)},m.reflowAndAddClass=function(E,x){x&&(E&&E.scrollTop,v(E,x))},m.render=function(){var E=c({},this.props);return delete E.classNames,i.default.createElement(a.default,c({},E,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},h}(i.default.Component);g.defaultProps={classNames:""},g.propTypes=process.env.NODE_ENV!=="production"?c({},a.default.propTypes,{classNames:s.classNamesShape,onEnter:n.func,onEntering:n.func,onEntered:n.func,onExit:n.func,onExiting:n.func,onExited:n.func}):{};var f=g;t.default=f,e.exports=t.default}(xd,xd.exports);var tN=xd.exports,Sd={exports:{}},Td={exports:{}},Oi={};Oi.__esModule=!0,Oi.getChildMapping=Ad,Oi.mergeChildMappings=D0,Oi.getInitialChildMapping=nN,Oi.getNextChildMapping=rN;var Gr=S;function Ad(e,t){var n=function(i){return t&&(0,Gr.isValidElement)(i)?t(i):i},r=Object.create(null);return e&&Gr.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function D0(e,t){e=e||{},t=t||{};function n(c){return c in t?t[c]:e[c]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,s={};for(var l in t){if(r[l])for(a=0;a<r[l].length;a++){var u=r[l][a];s[r[l][a]]=n(u)}s[l]=n(l)}for(a=0;a<o.length;a++)s[o[a]]=n(o[a]);return s}function Yo(e,t,n){return n[t]!=null?n[t]:e.props[t]}function nN(e,t){return Ad(e.children,function(n){return(0,Gr.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:Yo(n,"appear",e),enter:Yo(n,"enter",e),exit:Yo(n,"exit",e)})})}function rN(e,t,n){var r=Ad(e.children),o=D0(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if((0,Gr.isValidElement)(a)){var s=i in t,l=i in r,u=t[i],c=(0,Gr.isValidElement)(u)&&!u.props.in;l&&(!s||c)?o[i]=(0,Gr.cloneElement)(a,{onExited:n.bind(null,a),in:!0,exit:Yo(a,"exit",e),enter:Yo(a,"enter",e)}):!l&&s&&!c?o[i]=(0,Gr.cloneElement)(a,{in:!1}):l&&s&&(0,Gr.isValidElement)(u)&&(o[i]=(0,Gr.cloneElement)(a,{onExited:n.bind(null,a),in:u.props.in,exit:Yo(a,"exit",e),enter:Yo(a,"enter",e)}))}}),o}(function(e,t){t.__esModule=!0,t.default=void 0;var n=a(Ti),r=a(S),o=R0,i=Oi;function a(f){return f&&f.__esModule?f:{default:f}}function s(f,p){if(f==null)return{};var h={},m=Object.keys(f),b,E;for(E=0;E<m.length;E++)b=m[E],!(p.indexOf(b)>=0)&&(h[b]=f[b]);return h}function l(){return l=Object.assign||function(f){for(var p=1;p<arguments.length;p++){var h=arguments[p];for(var m in h)Object.prototype.hasOwnProperty.call(h,m)&&(f[m]=h[m])}return f},l.apply(this,arguments)}function u(f,p){f.prototype=Object.create(p.prototype),f.prototype.constructor=f,f.__proto__=p}function c(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}var d=Object.values||function(f){return Object.keys(f).map(function(p){return f[p]})},v={component:"div",childFactory:function(p){return p}},y=function(f){u(p,f);function p(m,b){var E;E=f.call(this,m,b)||this;var x=E.handleExited.bind(c(c(E)));return E.state={handleExited:x,firstRender:!0},E}var h=p.prototype;return h.getChildContext=function(){return{transitionGroup:{isMounting:!this.appeared}}},h.componentDidMount=function(){this.appeared=!0,this.mounted=!0},h.componentWillUnmount=function(){this.mounted=!1},p.getDerivedStateFromProps=function(b,E){var x=E.children,T=E.handleExited,A=E.firstRender;return{children:A?(0,i.getInitialChildMapping)(b,T):(0,i.getNextChildMapping)(b,x,T),firstRender:!1}},h.handleExited=function(b,E){var x=(0,i.getChildMapping)(this.props.children);b.key in x||(b.props.onExited&&b.props.onExited(E),this.mounted&&this.setState(function(T){var A=l({},T.children);return delete A[b.key],{children:A}}))},h.render=function(){var b=this.props,E=b.component,x=b.childFactory,T=s(b,["component","childFactory"]),A=d(this.state.children).map(x);return delete T.appear,delete T.enter,delete T.exit,E===null?A:r.default.createElement(E,T,A)},p}(r.default.Component);y.childContextTypes={transitionGroup:n.default.object.isRequired},y.propTypes=process.env.NODE_ENV!=="production"?{component:n.default.any,children:n.default.node,appear:n.default.bool,enter:n.default.bool,exit:n.default.bool,childFactory:n.default.func}:{},y.defaultProps=v;var g=(0,o.polyfill)(y);t.default=g,e.exports=t.default})(Td,Td.exports);var P0=Td.exports;(function(e,t){t.__esModule=!0,t.default=void 0;var n=a(Ti),r=a(S),o=Qe,i=a(P0);function a(d){return d&&d.__esModule?d:{default:d}}function s(d,v){if(d==null)return{};var y={},g=Object.keys(d),f,p;for(p=0;p<g.length;p++)f=g[p],!(v.indexOf(f)>=0)&&(y[f]=d[f]);return y}function l(d,v){d.prototype=Object.create(v.prototype),d.prototype.constructor=d,d.__proto__=v}var u=function(d){l(v,d);function v(){for(var g,f=arguments.length,p=new Array(f),h=0;h<f;h++)p[h]=arguments[h];return g=d.call.apply(d,[this].concat(p))||this,g.handleEnter=function(){for(var m=arguments.length,b=new Array(m),E=0;E<m;E++)b[E]=arguments[E];return g.handleLifecycle("onEnter",0,b)},g.handleEntering=function(){for(var m=arguments.length,b=new Array(m),E=0;E<m;E++)b[E]=arguments[E];return g.handleLifecycle("onEntering",0,b)},g.handleEntered=function(){for(var m=arguments.length,b=new Array(m),E=0;E<m;E++)b[E]=arguments[E];return g.handleLifecycle("onEntered",0,b)},g.handleExit=function(){for(var m=arguments.length,b=new Array(m),E=0;E<m;E++)b[E]=arguments[E];return g.handleLifecycle("onExit",1,b)},g.handleExiting=function(){for(var m=arguments.length,b=new Array(m),E=0;E<m;E++)b[E]=arguments[E];return g.handleLifecycle("onExiting",1,b)},g.handleExited=function(){for(var m=arguments.length,b=new Array(m),E=0;E<m;E++)b[E]=arguments[E];return g.handleLifecycle("onExited",1,b)},g}var y=v.prototype;return y.handleLifecycle=function(f,p,h){var m,b=this.props.children,E=r.default.Children.toArray(b)[p];E.props[f]&&(m=E.props)[f].apply(m,h),this.props[f]&&this.props[f]((0,o.findDOMNode)(this))},y.render=function(){var f=this.props,p=f.children,h=f.in,m=s(f,["children","in"]),b=r.default.Children.toArray(p),E=b[0],x=b[1];return delete m.onEnter,delete m.onEntering,delete m.onEntered,delete m.onExit,delete m.onExiting,delete m.onExited,r.default.createElement(i.default,m,h?r.default.cloneElement(E,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):r.default.cloneElement(x,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},v}(r.default.Component);u.propTypes=process.env.NODE_ENV!=="production"?{in:n.default.bool.isRequired,children:function(v,y){return r.default.Children.count(v[y])!==2?new Error('"'+y+'" must be exactly two transition components.'):null}}:{};var c=u;t.default=c,e.exports=t.default})(Sd,Sd.exports);var oN=Sd.exports,iN=Pl(tN),aN=Pl(oN),sN=Pl(P0),lN=Pl(vn);function Pl(e){return e&&e.__esModule?e:{default:e}}var k0={Transition:lN.default,TransitionGroup:sN.default,ReplaceTransition:aN.default,CSSTransition:iN.default};function Ri(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ri=function(t){return typeof t}:Ri=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ri(e)}function uN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){uN(e,o,n[o])})}return e}function L0(e){return dN(e)||fN(e)||pN()}function dN(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function fN(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function pN(){throw new TypeError("Invalid attempt to spread non-iterable instance")}var hN=/([A-Z])/g,gN=function(t){return"-".concat(t.toLowerCase())},mN=function(t){var n=t.replace(hN,gN);return n[0]==="m"&&n[1]==="s"&&n[2]==="-"?"-".concat(n):n},kl={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function bN(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var vN=["Webkit","ms","Moz","O"];Object.keys(kl).forEach(function(e){vN.forEach(function(t){kl[bN(t,e)]=kl[e]})});var F0=function(t,n){return typeof n=="number"?kl[t]?""+n:n+"px":""+n},yN=function(t,n){return xN(F0(t,n))},Ha=function(t,n){return xR(t).toString(36)},EN=function(t){return Ha(JSON.stringify(t))},xN=function(t){return t[t.length-10]==="!"&&t.slice(-11)===" !important"?t:"".concat(t," !important")},M0=typeof Map<"u",_d=function(){function e(){this.elements={},this.keyOrder=[]}var t=e.prototype;return t.forEach=function(r){for(var o=0;o<this.keyOrder.length;o++)r(this.elements[this.keyOrder[o]],this.keyOrder[o])},t.set=function(r,o,i){if(!this.elements.hasOwnProperty(r))this.keyOrder.push(r);else if(i){var a=this.keyOrder.indexOf(r);this.keyOrder.splice(a,1),this.keyOrder.push(r)}if(o==null){this.elements[r]=o;return}if(M0&&o instanceof Map||o instanceof e){var s=this.elements.hasOwnProperty(r)?this.elements[r]:new e;o.forEach(function(d,v){s.set(v,d,i)}),this.elements[r]=s;return}if(!Array.isArray(o)&&Ri(o)==="object"){for(var l=this.elements.hasOwnProperty(r)?this.elements[r]:new e,u=Object.keys(o),c=0;c<u.length;c+=1)l.set(u[c],o[u[c]],i);this.elements[r]=l;return}this.elements[r]=o},t.get=function(r){return this.elements[r]},t.has=function(r){return this.elements.hasOwnProperty(r)},t.addStyleType=function(r){var o=this;if(M0&&r instanceof Map||r instanceof e)r.forEach(function(s,l){o.set(l,s,!0)});else for(var i=Object.keys(r),a=0;a<i.length;a++)this.set(i[a],r[i[a]],!0)},e}();function St(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Tt(e,t){return t={exports:{}},e(t,t.exports),t.exports}function CN(e){return e&&e.default||e}var Od=Tt(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){return r.charAt(0).toUpperCase()+r.slice(1)}});St(Od);var B0=Tt(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(Od);function r(i){return i&&i.__esModule?i:{default:i}}function o(i,a,s){if(i.hasOwnProperty(a)){for(var l={},u=i[a],c=(0,n.default)(a),d=Object.keys(s),v=0;v<d.length;v++){var y=d[v];if(y===a)for(var g=0;g<u.length;g++)l[u[g]+c]=s[a];l[y]=s[y]}return l}return s}});St(B0);var j0=Tt(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,o,i,a,s){for(var l=0,u=r.length;l<u;++l){var c=r[l](o,i,a,s);if(c)return c}}});St(j0);var V0=Tt(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function n(o,i){o.indexOf(i)===-1&&o.push(i)}function r(o,i){if(Array.isArray(i))for(var a=0,s=i.length;a<s;++a)n(o,i[a]);else n(o,i)}});St(V0);var G0=Tt(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){return r instanceof Object&&!Array.isArray(r)}});St(G0);var wN=Tt(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=a(B0),r=a(j0),o=a(V0),i=a(G0);function a(l){return l&&l.__esModule?l:{default:l}}function s(l){var u=l.prefixMap,c=l.plugins;return function d(v){for(var y in v){var g=v[y];if((0,i.default)(g))v[y]=d(g);else if(Array.isArray(g)){for(var f=[],p=0,h=g.length;p<h;++p){var m=(0,r.default)(c,y,g[p],v,u);(0,o.default)(f,m||g[p])}f.length>0&&(v[y]=f)}else{var b=(0,r.default)(c,y,g,v,u);b&&(v[y]=b),v=(0,n.default)(u,y,v)}}return v}}}),IN=St(wN),SN=Tt(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,o){if(typeof o=="string"&&o==="text")return["-webkit-text","text"]}}),TN=St(SN),Uo=Tt(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var n=/-webkit-|-moz-|-ms-/;function r(o){return typeof o=="string"&&n.test(o)}e.exports=t.default});St(Uo);var AN=Tt(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Uo);function r(a){return a&&a.__esModule?a:{default:a}}var o=["-webkit-","-moz-",""];function i(a,s){if(typeof s=="string"&&!(0,n.default)(s)&&s.indexOf("calc(")>-1)return o.map(function(l){return s.replace(/calc\(/g,l+"calc(")})}}),_N=St(AN),ON=Tt(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Uo);function r(a){return a&&a.__esModule?a:{default:a}}var o=["-webkit-",""];function i(a,s){if(typeof s=="string"&&!(0,n.default)(s)&&s.indexOf("cross-fade(")>-1)return o.map(function(l){return s.replace(/cross-fade\(/g,l+"cross-fade(")})}}),RN=St(ON),NN=Tt(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=["-webkit-","-moz-",""],r={"zoom-in":!0,"zoom-out":!0,grab:!0,grabbing:!0};function o(i,a){if(i==="cursor"&&r.hasOwnProperty(a))return n.map(function(s){return s+a})}}),DN=St(NN),PN=Tt(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Uo);function r(a){return a&&a.__esModule?a:{default:a}}var o=["-webkit-",""];function i(a,s){if(typeof s=="string"&&!(0,n.default)(s)&&s.indexOf("filter(")>-1)return o.map(function(l){return s.replace(/filter\(/g,l+"filter(")})}}),kN=St(PN),LN=Tt(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var n={flex:["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex","flex"],"inline-flex":["-webkit-inline-box","-moz-inline-box","-ms-inline-flexbox","-webkit-inline-flex","inline-flex"]};function r(o,i){if(o==="display"&&n.hasOwnProperty(i))return n[i]}}),FN=St(LN),MN=Tt(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n={"space-around":"distribute","space-between":"justify","flex-start":"start","flex-end":"end"},r={alignContent:"msFlexLinePack",alignSelf:"msFlexItemAlign",alignItems:"msFlexAlign",justifyContent:"msFlexPack",order:"msFlexOrder",flexGrow:"msFlexPositive",flexShrink:"msFlexNegative",flexBasis:"msFlexPreferredSize"},o={auto:"1 1 auto",inherit:"inherit",initial:"0 1 auto",none:"0 0 auto",unset:"unset"},i=/^\d+(\.\d+)?$/;function a(s,l,u){if(Object.prototype.hasOwnProperty.call(r,s)&&(u[r[s]]=n[l]||l),s==="flex"){if(Object.prototype.hasOwnProperty.call(o,l)){u.msFlex=o[l];return}if(i.test(l)){u.msFlex=l+" 1 0%";return}var c=l.split(/\s/);switch(c.length){case 1:u.msFlex="1 1 "+l;return;case 2:i.test(c[1])?u.msFlex=c[0]+" "+c[1]+" 0%":u.msFlex=c[0]+" 1 "+c[1];return;default:u.msFlex=l}}}}),BN=St(MN),jN=Tt(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n={"space-around":"justify","space-between":"justify","flex-start":"start","flex-end":"end","wrap-reverse":"multiple",wrap:"multiple"},r={alignItems:"WebkitBoxAlign",justifyContent:"WebkitBoxPack",flexWrap:"WebkitBoxLines",flexGrow:"WebkitBoxFlex"};function o(i,a,s){i==="flexDirection"&&typeof a=="string"&&(a.indexOf("column")>-1?s.WebkitBoxOrient="vertical":s.WebkitBoxOrient="horizontal",a.indexOf("reverse")>-1?s.WebkitBoxDirection="reverse":s.WebkitBoxDirection="normal"),r.hasOwnProperty(i)&&(s[r[i]]=n[a]||a)}}),VN=St(jN),GN=Tt(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(Uo);function r(s){return s&&s.__esModule?s:{default:s}}var o=["-webkit-","-moz-",""],i=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/gi;function a(s,l){if(typeof l=="string"&&!(0,n.default)(l)&&i.test(l))return o.map(function(u){return l.replace(i,function(c){return u+c})})}}),WN=St(GN),HN=Tt(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function l(u,c){var d=[],v=!0,y=!1,g=void 0;try{for(var f=u[Symbol.iterator](),p;!(v=(p=f.next()).done)&&(d.push(p.value),!(c&&d.length===c));v=!0);}catch(h){y=!0,g=h}finally{try{!v&&f.return&&f.return()}finally{if(y)throw g}}return d}return function(u,c){if(Array.isArray(u))return u;if(Symbol.iterator in Object(u))return l(u,c);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.default=s;function r(l){return typeof l=="number"&&!isNaN(l)}var o=["center","end","start","stretch"],i={"inline-grid":["-ms-inline-grid","inline-grid"],grid:["-ms-grid","grid"]},a={alignSelf:function(u,c){o.indexOf(u)>-1&&(c.msGridRowAlign=u)},gridColumn:function(u,c){if(r(u))c.msGridColumn=u;else{var d=u.split("/").map(function(f){return+f}),v=n(d,2),y=v[0],g=v[1];a.gridColumnStart(y,c),a.gridColumnEnd(g,c)}},gridColumnEnd:function(u,c){var d=c.msGridColumn;r(u)&&r(d)&&(c.msGridColumnSpan=u-d)},gridColumnStart:function(u,c){r(u)&&(c.msGridColumn=u)},gridRow:function(u,c){if(r(u))c.msGridRow=u;else{var d=u.split("/").map(function(f){return+f}),v=n(d,2),y=v[0],g=v[1];a.gridRowStart(y,c),a.gridRowEnd(g,c)}},gridRowEnd:function(u,c){var d=c.msGridRow;r(u)&&r(d)&&(c.msGridRowSpan=u-d)},gridRowStart:function(u,c){r(u)&&(c.msGridRow=u)},gridTemplateColumns:function(u,c){c.msGridColumns=u},gridTemplateRows:function(u,c){c.msGridRows=u},justifySelf:function(u,c){o.indexOf(u)>-1&&(c.msGridColumnAlign=u)}};function s(l,u,c){if(l==="display"&&u in i)return i[u];if(l in a){var d=a[l];d(u,c)}}}),zN=St(HN),XN=Tt(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Uo);function r(a){return a&&a.__esModule?a:{default:a}}var o=["-webkit-",""];function i(a,s){if(typeof s=="string"&&!(0,n.default)(s)&&s.indexOf("image-set(")>-1)return o.map(function(l){return s.replace(/image-set\(/g,l+"image-set(")})}}),ZN=St(XN),YN=Tt(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var n={marginBlockStart:["WebkitMarginBefore"],marginBlockEnd:["WebkitMarginAfter"],marginInlineStart:["WebkitMarginStart","MozMarginStart"],marginInlineEnd:["WebkitMarginEnd","MozMarginEnd"],paddingBlockStart:["WebkitPaddingBefore"],paddingBlockEnd:["WebkitPaddingAfter"],paddingInlineStart:["WebkitPaddingStart","MozPaddingStart"],paddingInlineEnd:["WebkitPaddingEnd","MozPaddingEnd"],borderBlockStart:["WebkitBorderBefore"],borderBlockStartColor:["WebkitBorderBeforeColor"],borderBlockStartStyle:["WebkitBorderBeforeStyle"],borderBlockStartWidth:["WebkitBorderBeforeWidth"],borderBlockEnd:["WebkitBorderAfter"],borderBlockEndColor:["WebkitBorderAfterColor"],borderBlockEndStyle:["WebkitBorderAfterStyle"],borderBlockEndWidth:["WebkitBorderAfterWidth"],borderInlineStart:["WebkitBorderStart","MozBorderStart"],borderInlineStartColor:["WebkitBorderStartColor","MozBorderStartColor"],borderInlineStartStyle:["WebkitBorderStartStyle","MozBorderStartStyle"],borderInlineStartWidth:["WebkitBorderStartWidth","MozBorderStartWidth"],borderInlineEnd:["WebkitBorderEnd","MozBorderEnd"],borderInlineEndColor:["WebkitBorderEndColor","MozBorderEndColor"],borderInlineEndStyle:["WebkitBorderEndStyle","MozBorderEndStyle"],borderInlineEndWidth:["WebkitBorderEndWidth","MozBorderEndWidth"]};function r(o,i,a){if(Object.prototype.hasOwnProperty.call(n,o))for(var s=n[o],l=0,u=s.length;l<u;++l)a[s[l]]=i}}),UN=St(YN),qN=Tt(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,o){if(r==="position"&&o==="sticky")return["-webkit-sticky","sticky"]}}),JN=St(qN),QN=Tt(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=["-webkit-","-moz-",""],r={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},o={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};function i(a,s){if(r.hasOwnProperty(a)&&o.hasOwnProperty(s))return n.map(function(l){return l+s})}}),$N=St(QN),KN=/[A-Z]/g,eD=/^ms-/,Rd={};function tD(e){return"-"+e.toLowerCase()}function nD(e){if(Rd.hasOwnProperty(e))return Rd[e];var t=e.replace(KN,tD);return Rd[e]=eD.test(t)?"-"+t:t}var rD=Object.freeze({default:nD}),oD=CN(rD),W0=Tt(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(oD);function r(i){return i&&i.__esModule?i:{default:i}}function o(i){return(0,n.default)(i)}e.exports=t.default});St(W0);var iD=Tt(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var n=i(W0),r=i(Uo),o=i(Od);function i(c){return c&&c.__esModule?c:{default:c}}var a={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},s={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-"};function l(c,d){if((0,r.default)(c))return c;for(var v=c.split(/,(?![^()]*(?:\([^()]*\))?\))/g),y=0,g=v.length;y<g;++y){var f=v[y],p=[f];for(var h in d){var m=(0,n.default)(h);if(f.indexOf(m)>-1&&m!=="order")for(var b=d[h],E=0,x=b.length;E<x;++E)p.unshift(f.replace(m,s[b[E]]+m))}v[y]=p.join(",")}return v.join(",")}function u(c,d,v,y){if(typeof d=="string"&&a.hasOwnProperty(c)){var g=l(d,y),f=g.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(h){return!/-moz-|-ms-/.test(h)}).join(",");if(c.indexOf("Webkit")>-1)return f;var p=g.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(h){return!/-webkit-|-ms-/.test(h)}).join(",");return c.indexOf("Moz")>-1?p:(v["Webkit"+(0,o.default)(c)]=f,v["Moz"+(0,o.default)(c)]=p,g)}}}),aD=St(iD),Se=["Webkit"],Nd=["Moz"],Ll=["ms"],an=["Webkit","Moz"],Qt=["Webkit","ms"],za=["Webkit","Moz","ms"],sD={plugins:[TN,_N,RN,DN,kN,FN,BN,VN,WN,zN,ZN,UN,JN,$N,aD],prefixMap:{transform:Qt,transformOrigin:Qt,transformOriginX:Qt,transformOriginY:Qt,backfaceVisibility:Se,perspective:Se,perspectiveOrigin:Se,transformStyle:Se,transformOriginZ:Se,animation:Se,animationDelay:Se,animationDirection:Se,animationFillMode:Se,animationDuration:Se,animationIterationCount:Se,animationName:Se,animationPlayState:Se,animationTimingFunction:Se,appearance:an,userSelect:za,fontKerning:Se,textEmphasisPosition:Se,textEmphasis:Se,textEmphasisStyle:Se,textEmphasisColor:Se,boxDecorationBreak:Se,clipPath:Se,maskImage:Se,maskMode:Se,maskRepeat:Se,maskPosition:Se,maskClip:Se,maskOrigin:Se,maskSize:Se,maskComposite:Se,mask:Se,maskBorderSource:Se,maskBorderMode:Se,maskBorderSlice:Se,maskBorderWidth:Se,maskBorderOutset:Se,maskBorderRepeat:Se,maskBorder:Se,maskType:Se,textDecorationStyle:an,textDecorationSkip:an,textDecorationLine:an,textDecorationColor:an,filter:Se,fontFeatureSettings:an,breakAfter:za,breakBefore:za,breakInside:za,columnCount:an,columnFill:an,columnGap:an,columnRule:an,columnRuleColor:an,columnRuleStyle:an,columnRuleWidth:an,columns:an,columnSpan:an,columnWidth:an,writingMode:Qt,flex:Qt,flexBasis:Se,flexDirection:Qt,flexGrow:Se,flexFlow:Qt,flexShrink:Se,flexWrap:Qt,alignContent:Se,alignItems:Se,alignSelf:Se,justifyContent:Se,order:Se,transitionDelay:Se,transitionDuration:Se,transitionProperty:Se,transitionTimingFunction:Se,backdropFilter:Se,scrollSnapType:Qt,scrollSnapPointsX:Qt,scrollSnapPointsY:Qt,scrollSnapDestination:Qt,scrollSnapCoordinate:Qt,shapeImageThreshold:Se,shapeImageMargin:Se,shapeImageOutside:Se,hyphens:za,flowInto:Qt,flowFrom:Qt,regionFragment:Qt,textOrientation:Se,boxSizing:Nd,textAlignLast:Nd,tabSize:Nd,wrapFlow:Ll,wrapThrough:Ll,wrapMargin:Ll,touchAction:Ll,textSizeAdjust:Qt,borderImage:Se,borderImageOutset:Se,borderImageRepeat:Se,borderImageSlice:Se,borderImageSource:Se,borderImageWidth:Se}},lD=IN(sD),H0=[function(t,n,r){return t[0]!==":"?null:r(n+t)},function(t,n,r){if(t[0]!=="@")return null;var o=r(n);return["".concat(t,"{").concat(o.join(""),"}")]}],Dd=function e(t,n,r,o,i){for(var a=new _d,s=0;s<n.length;s++)a.addStyleType(n[s]);var l=new _d,u=[];a.forEach(function(d,v){var y=r.some(function(g){var f=g(v,t,function(p){return e(p,[d],r,o,i)});if(f!=null)return Array.isArray(f)?u.push.apply(u,L0(f)):(console.warn("WARNING: Selector handlers should return an array of rules.Returning a string containing multiple rules is deprecated.",g),u.push("@media all {".concat(f,"}"))),!0});y||l.set(v,d,!0)});var c=dD(t,l,o,i,r);return c&&u.unshift(c),u},uD=function(t,n,r){if(n)for(var o=Object.keys(n),i=0;i<o.length;i++){var a=o[i];t.has(a)&&t.set(a,n[a](t.get(a),r),!1)}},z0=function(t,n,r){return"".concat(mN(t),":").concat(r(t,n),";")},cD=function(t,n){return t[n]=!0,t},dD=function(t,n,r,o,i){uD(n,r,i);var a=Object.keys(n.elements).reduce(cD,Object.create(null)),s=lD(n.elements),l=Object.keys(s);if(l.length!==n.keyOrder.length){for(var u=0;u<l.length;u++)if(!a[l[u]]){var c=void 0;if(l[u][0]==="W"?c=l[u][6].toLowerCase()+l[u].slice(7):l[u][1]==="o"?c=l[u][3].toLowerCase()+l[u].slice(4):c=l[u][2].toLowerCase()+l[u].slice(3),c&&a[c]){var d=n.keyOrder.indexOf(c);n.keyOrder.splice(d,0,l[u])}else n.keyOrder.unshift(l[u])}}for(var v=o===!1?F0:yN,y=[],g=0;g<n.keyOrder.length;g++){var f=n.keyOrder[g],p=s[f];if(Array.isArray(p))for(var h=0;h<p.length;h++)y.push(z0(f,p[h],v));else y.push(z0(f,p,v))}return y.length?"".concat(t,"{").concat(y.join(""),"}"):""},$n=null,fD=function(t){if($n==null&&($n=document.querySelector("style[data-aphrodite]"),$n==null)){var n=document.head||document.getElementsByTagName("head")[0];$n=document.createElement("style"),$n.type="text/css",$n.setAttribute("data-aphrodite",""),n.appendChild($n)}var r=$n.styleSheet||$n.sheet;if(r.insertRule){var o=r.cssRules.length;t.forEach(function(i){try{r.insertRule(i,o),o+=1}catch{}})}else $n.innerText=($n.innerText||"")+t.join("")},Pd={fontFamily:function e(t){if(Array.isArray(t)){var n={};return t.forEach(function(r){n[e(r)]=!0}),Object.keys(n).join(",")}else return Ri(t)==="object"?(Z0(t.src,"@font-face",[t],!1),'"'.concat(t.fontFamily,'"')):t},animationName:function e(t,n){if(Array.isArray(t))return t.map(function(i){return e(i,n)}).join(",");if(Ri(t)==="object"){var r="keyframe_".concat(EN(t)),o="@keyframes ".concat(r,"{");return t instanceof _d?t.forEach(function(i,a){o+=Dd(a,[i],n,Pd,!1).join("")}):Object.keys(t).forEach(function(i){o+=Dd(i,[t[i]],n,Pd,!1).join("")}),o+="}",X0(r,[o]),r}else return t}},qo={},Xa=[],Ni=!1,X0=function(t,n){var r;if(!qo[t]){if(!Ni){if(typeof document>"u")throw new Error("Cannot automatically buffer without a document");Ni=!0,AR(q0)}(r=Xa).push.apply(r,L0(n)),qo[t]=!0}},Z0=function(t,n,r,o){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[];if(!qo[t]){var a=Dd(n,r,i,Pd,o);X0(t,a)}},Fl=function(){Xa=[],qo={},Ni=!1,$n=null},pD=function(t){delete qo[t]},hD=function(){return Xa},Y0=function(){if(Ni)throw new Error("Cannot buffer while already buffering");Ni=!0},U0=function(){Ni=!1;var t=Xa;return Xa=[],t},gD=function(){return U0().join("")},q0=function(){var t=U0();t.length>0&&fD(t)},mD=function(){return Object.keys(qo)},bD=function(t){t.forEach(function(n){qo[n]=!0})},vD=function(t){return"_definition"in t&&"_name"in t&&"_len"in t},yD=function e(t,n,r,o){for(var i=0;i<t.length;i+=1)if(t[i])if(Array.isArray(t[i]))o+=e(t[i],n,r,o);else if(vD(t[i]))n.push(t[i]._name),r.push(t[i]._definition),o+=t[i]._len;else throw new Error("Invalid Style Definition: Styles should be defined using the StyleSheet.create method.");return o},J0=function(t,n,r){var o=[],i=[],a=yD(n,o,i,0);if(o.length===0)return"";var s;return process.env.NODE_ENV==="production"?s=o.length===1?"_".concat(o[0]):"_".concat(Ha(o.join())).concat((a%36).toString(36)):s=o.join("-o_O-"),Z0(s,".".concat(s),i,t,r),s},Q0=function(t,n){return"".concat(n,"_").concat(Ha(t))},ED=function(){return process.env.NODE_ENV==="production"?Ha:Q0},$0=ED(),xD={create:function(t){for(var n={},r=Object.keys(t),o=0;o<r.length;o+=1){var i=r[o],a=t[i],s=JSON.stringify(a);n[i]={_len:s.length,_name:$0(s,i),_definition:a}}return n},rehydrate:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];bD(t)}},CD=typeof window<"u"?null:{renderStatic:function(t){Fl(),Y0();var n=t(),r=gD();return{html:n,css:{content:r,renderedClassNames:mD()}}}},wD=process.env.NODE_ENV==="production"?null:{suppressStyleInjection:function(){Fl(),Y0()},clearBufferAndResumeStyleInjection:function(){Fl()},getBufferedStyles:function(){return hD()}};function K0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:H0;return{StyleSheet:cN({},xD,{extend:function(r){var o=r.map(function(i){return i.selectorHandler}).filter(function(i){return i});return K0(e,t.concat(o))}}),StyleSheetServer:CD,StyleSheetTestUtils:wD,minify:function(r){$0=r?Ha:Q0},css:function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return J0(e,o,t)},flushToStyleTag:q0,injectAndGetClassName:J0,defaultSelectorHandlers:H0,reset:Fl,resetInjectedStyle:pD}}var ID=!0,Tr=K0(ID),SD=Tr.StyleSheet;Tr.StyleSheetServer,Tr.StyleSheetTestUtils;var Ml=Tr.css;Tr.minify,Tr.flushToStyleTag,Tr.injectAndGetClassName,Tr.defaultSelectorHandlers,Tr.reset,Tr.resetInjectedStyle;var eb={},kd={},tb={exports:{}};/*!
|
|
777
|
+
https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=A0,t.componentWillReceiveProps=_0),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=O0;var l=t.componentDidUpdate;t.componentDidUpdate=function(u,c,f){var b=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:f;l.call(this,u,c,b)}}return e}const R0=Ry(Object.freeze(Object.defineProperty({__proto__:null,polyfill:zR},Symbol.toStringTag,{value:"Module"})));var zo={};zo.__esModule=!0,zo.classNamesShape=zo.timeoutsShape=void 0;var Yt=XR(Ti);function XR(e){return e&&e.__esModule?e:{default:e}}var ZR=process.env.NODE_ENV!=="production"?Yt.default.oneOfType([Yt.default.number,Yt.default.shape({enter:Yt.default.number,exit:Yt.default.number,appear:Yt.default.number}).isRequired]):null;zo.timeoutsShape=ZR;var YR=process.env.NODE_ENV!=="production"?Yt.default.oneOfType([Yt.default.string,Yt.default.shape({enter:Yt.default.string,exit:Yt.default.string,active:Yt.default.string}),Yt.default.shape({enter:Yt.default.string,enterDone:Yt.default.string,enterActive:Yt.default.string,exit:Yt.default.string,exitDone:Yt.default.string,exitActive:Yt.default.string})]):null;zo.classNamesShape=YR,vn.__esModule=!0,vn.default=vn.EXITING=vn.ENTERED=vn.ENTERING=vn.EXITED=vn.UNMOUNTED=void 0;var tn=QR(Ti),wd=N0(S),UR=N0(Qe),qR=R0,JR=zo;function N0(e){return e&&e.__esModule?e:{default:e}}function QR(e){if(e&&e.__esModule)return e;var t={};if(e!=null){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}}return t.default=e,t}function $R(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function KR(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Wa="unmounted";vn.UNMOUNTED=Wa;var Xo="exited";vn.EXITED=Xo;var Zo="entering";vn.ENTERING=Zo;var Ai="entered";vn.ENTERED=Ai;var Id="exiting";vn.EXITING=Id;var Sr=function(e){KR(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o.transitionGroup,l=a&&!a.isMounting?r.enter:r.appear,s;return i.appearStatus=null,r.in?l?(s=Xo,i.appearStatus=Zo):s=Ai:r.unmountOnExit||r.mountOnEnter?s=Wa:s=Xo,i.state={status:s},i.nextCallback=null,i}var n=t.prototype;return n.getChildContext=function(){return{transitionGroup:null}},t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===Wa?{status:Xo}:null},n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==Zo&&a!==Ai&&(i=Zo):(a===Zo||a===Ai)&&(i=Id)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,l;return i=a=l=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,l=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:l}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null){this.cancelNextCallback();var a=UR.default.findDOMNode(this);i===Zo?this.performEnter(a,o):this.performExit(a)}else this.props.unmountOnExit&&this.state.status===Xo&&this.setState({status:Wa})},n.performEnter=function(o,i){var a=this,l=this.props.enter,s=this.context.transitionGroup?this.context.transitionGroup.isMounting:i,u=this.getTimeouts(),c=s?u.appear:u.enter;if(!i&&!l){this.safeSetState({status:Ai},function(){a.props.onEntered(o)});return}this.props.onEnter(o,s),this.safeSetState({status:Zo},function(){a.props.onEntering(o,s),a.onTransitionEnd(o,c,function(){a.safeSetState({status:Ai},function(){a.props.onEntered(o,s)})})})},n.performExit=function(o){var i=this,a=this.props.exit,l=this.getTimeouts();if(!a){this.safeSetState({status:Xo},function(){i.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:Id},function(){i.props.onExiting(o),i.onTransitionEnd(o,l.exit,function(){i.safeSetState({status:Xo},function(){i.props.onExited(o)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(l){a&&(a=!1,i.nextCallback=null,o(l))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i,a){this.setNextCallback(a);var l=i==null&&!this.props.addEndListener;if(!o||l){setTimeout(this.nextCallback,0);return}this.props.addEndListener&&this.props.addEndListener(o,this.nextCallback),i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var o=this.state.status;if(o===Wa)return null;var i=this.props,a=i.children,l=$R(i,["children"]);if(delete l.in,delete l.mountOnEnter,delete l.unmountOnExit,delete l.appear,delete l.enter,delete l.exit,delete l.timeout,delete l.addEndListener,delete l.onEnter,delete l.onEntering,delete l.onEntered,delete l.onExit,delete l.onExiting,delete l.onExited,typeof a=="function")return a(o,l);var s=wd.default.Children.only(a);return wd.default.cloneElement(s,l)},t}(wd.default.Component);Sr.contextTypes={transitionGroup:tn.object},Sr.childContextTypes={transitionGroup:function(){}},Sr.propTypes=process.env.NODE_ENV!=="production"?{children:tn.oneOfType([tn.func.isRequired,tn.element.isRequired]).isRequired,in:tn.bool,mountOnEnter:tn.bool,unmountOnExit:tn.bool,appear:tn.bool,enter:tn.bool,exit:tn.bool,timeout:function(t){var n=JR.timeoutsShape;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return n.apply(void 0,[t].concat(o))},addEndListener:tn.func,onEnter:tn.func,onEntering:tn.func,onEntered:tn.func,onExit:tn.func,onExiting:tn.func,onExited:tn.func}:{};function _i(){}Sr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:_i,onEntering:_i,onEntered:_i,onExit:_i,onExiting:_i,onExited:_i},Sr.UNMOUNTED=0,Sr.EXITED=1,Sr.ENTERING=2,Sr.ENTERED=3,Sr.EXITING=4;var eN=(0,qR.polyfill)(Sr);vn.default=eN,function(e,t){t.__esModule=!0,t.default=void 0;var n=u(Ti),r=s(WR),o=s(HR),i=s(S),a=s(vn),l=zo;function s(p){return p&&p.__esModule?p:{default:p}}function u(p){if(p&&p.__esModule)return p;var h={};if(p!=null){for(var g in p)if(Object.prototype.hasOwnProperty.call(p,g)){var m=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(p,g):{};m.get||m.set?Object.defineProperty(h,g,m):h[g]=p[g]}}return h.default=p,h}function c(){return c=Object.assign||function(p){for(var h=1;h<arguments.length;h++){var g=arguments[h];for(var m in g)Object.prototype.hasOwnProperty.call(g,m)&&(p[m]=g[m])}return p},c.apply(this,arguments)}function f(p,h){p.prototype=Object.create(h.prototype),p.prototype.constructor=p,p.__proto__=h}var b=function(h,g){return h&&g&&g.split(" ").forEach(function(m){return(0,r.default)(h,m)})},y=function(h,g){return h&&g&&g.split(" ").forEach(function(m){return(0,o.default)(h,m)})},v=function(p){f(h,p);function h(){for(var m,E=arguments.length,x=new Array(E),A=0;A<E;A++)x[A]=arguments[A];return m=p.call.apply(p,[this].concat(x))||this,m.onEnter=function(T,C){var O=m.getClassNames(C?"appear":"enter"),M=O.className;m.removeClasses(T,"exit"),b(T,M),m.props.onEnter&&m.props.onEnter(T,C)},m.onEntering=function(T,C){var O=m.getClassNames(C?"appear":"enter"),M=O.activeClassName;m.reflowAndAddClass(T,M),m.props.onEntering&&m.props.onEntering(T,C)},m.onEntered=function(T,C){var O=m.getClassNames("appear").doneClassName,M=m.getClassNames("enter").doneClassName,B=C?O+" "+M:M;m.removeClasses(T,C?"appear":"enter"),b(T,B),m.props.onEntered&&m.props.onEntered(T,C)},m.onExit=function(T){var C=m.getClassNames("exit"),O=C.className;m.removeClasses(T,"appear"),m.removeClasses(T,"enter"),b(T,O),m.props.onExit&&m.props.onExit(T)},m.onExiting=function(T){var C=m.getClassNames("exit"),O=C.activeClassName;m.reflowAndAddClass(T,O),m.props.onExiting&&m.props.onExiting(T)},m.onExited=function(T){var C=m.getClassNames("exit"),O=C.doneClassName;m.removeClasses(T,"exit"),b(T,O),m.props.onExited&&m.props.onExited(T)},m.getClassNames=function(T){var C=m.props.classNames,O=typeof C=="string",M=O&&C?C+"-":"",B=O?M+T:C[T],U=O?B+"-active":C[T+"Active"],G=O?B+"-done":C[T+"Done"];return{className:B,activeClassName:U,doneClassName:G}},m}var g=h.prototype;return g.removeClasses=function(E,x){var A=this.getClassNames(x),T=A.className,C=A.activeClassName,O=A.doneClassName;T&&y(E,T),C&&y(E,C),O&&y(E,O)},g.reflowAndAddClass=function(E,x){x&&(E&&E.scrollTop,b(E,x))},g.render=function(){var E=c({},this.props);return delete E.classNames,i.default.createElement(a.default,c({},E,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},h}(i.default.Component);v.defaultProps={classNames:""},v.propTypes=process.env.NODE_ENV!=="production"?c({},a.default.propTypes,{classNames:l.classNamesShape,onEnter:n.func,onEntering:n.func,onEntered:n.func,onExit:n.func,onExiting:n.func,onExited:n.func}):{};var d=v;t.default=d,e.exports=t.default}(xd,xd.exports);var tN=xd.exports,Sd={exports:{}},Td={exports:{}},Oi={};Oi.__esModule=!0,Oi.getChildMapping=Ad,Oi.mergeChildMappings=D0,Oi.getInitialChildMapping=nN,Oi.getNextChildMapping=rN;var Gr=S;function Ad(e,t){var n=function(i){return t&&(0,Gr.isValidElement)(i)?t(i):i},r=Object.create(null);return e&&Gr.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function D0(e,t){e=e||{},t=t||{};function n(c){return c in t?t[c]:e[c]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,l={};for(var s in t){if(r[s])for(a=0;a<r[s].length;a++){var u=r[s][a];l[r[s][a]]=n(u)}l[s]=n(s)}for(a=0;a<o.length;a++)l[o[a]]=n(o[a]);return l}function Yo(e,t,n){return n[t]!=null?n[t]:e.props[t]}function nN(e,t){return Ad(e.children,function(n){return(0,Gr.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:Yo(n,"appear",e),enter:Yo(n,"enter",e),exit:Yo(n,"exit",e)})})}function rN(e,t,n){var r=Ad(e.children),o=D0(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if((0,Gr.isValidElement)(a)){var l=i in t,s=i in r,u=t[i],c=(0,Gr.isValidElement)(u)&&!u.props.in;s&&(!l||c)?o[i]=(0,Gr.cloneElement)(a,{onExited:n.bind(null,a),in:!0,exit:Yo(a,"exit",e),enter:Yo(a,"enter",e)}):!s&&l&&!c?o[i]=(0,Gr.cloneElement)(a,{in:!1}):s&&l&&(0,Gr.isValidElement)(u)&&(o[i]=(0,Gr.cloneElement)(a,{onExited:n.bind(null,a),in:u.props.in,exit:Yo(a,"exit",e),enter:Yo(a,"enter",e)}))}}),o}(function(e,t){t.__esModule=!0,t.default=void 0;var n=a(Ti),r=a(S),o=R0,i=Oi;function a(d){return d&&d.__esModule?d:{default:d}}function l(d,p){if(d==null)return{};var h={},g=Object.keys(d),m,E;for(E=0;E<g.length;E++)m=g[E],!(p.indexOf(m)>=0)&&(h[m]=d[m]);return h}function s(){return s=Object.assign||function(d){for(var p=1;p<arguments.length;p++){var h=arguments[p];for(var g in h)Object.prototype.hasOwnProperty.call(h,g)&&(d[g]=h[g])}return d},s.apply(this,arguments)}function u(d,p){d.prototype=Object.create(p.prototype),d.prototype.constructor=d,d.__proto__=p}function c(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}var f=Object.values||function(d){return Object.keys(d).map(function(p){return d[p]})},b={component:"div",childFactory:function(p){return p}},y=function(d){u(p,d);function p(g,m){var E;E=d.call(this,g,m)||this;var x=E.handleExited.bind(c(c(E)));return E.state={handleExited:x,firstRender:!0},E}var h=p.prototype;return h.getChildContext=function(){return{transitionGroup:{isMounting:!this.appeared}}},h.componentDidMount=function(){this.appeared=!0,this.mounted=!0},h.componentWillUnmount=function(){this.mounted=!1},p.getDerivedStateFromProps=function(m,E){var x=E.children,A=E.handleExited,T=E.firstRender;return{children:T?(0,i.getInitialChildMapping)(m,A):(0,i.getNextChildMapping)(m,x,A),firstRender:!1}},h.handleExited=function(m,E){var x=(0,i.getChildMapping)(this.props.children);m.key in x||(m.props.onExited&&m.props.onExited(E),this.mounted&&this.setState(function(A){var T=s({},A.children);return delete T[m.key],{children:T}}))},h.render=function(){var m=this.props,E=m.component,x=m.childFactory,A=l(m,["component","childFactory"]),T=f(this.state.children).map(x);return delete A.appear,delete A.enter,delete A.exit,E===null?T:r.default.createElement(E,A,T)},p}(r.default.Component);y.childContextTypes={transitionGroup:n.default.object.isRequired},y.propTypes=process.env.NODE_ENV!=="production"?{component:n.default.any,children:n.default.node,appear:n.default.bool,enter:n.default.bool,exit:n.default.bool,childFactory:n.default.func}:{},y.defaultProps=b;var v=(0,o.polyfill)(y);t.default=v,e.exports=t.default})(Td,Td.exports);var P0=Td.exports;(function(e,t){t.__esModule=!0,t.default=void 0;var n=a(Ti),r=a(S),o=Qe,i=a(P0);function a(f){return f&&f.__esModule?f:{default:f}}function l(f,b){if(f==null)return{};var y={},v=Object.keys(f),d,p;for(p=0;p<v.length;p++)d=v[p],!(b.indexOf(d)>=0)&&(y[d]=f[d]);return y}function s(f,b){f.prototype=Object.create(b.prototype),f.prototype.constructor=f,f.__proto__=b}var u=function(f){s(b,f);function b(){for(var v,d=arguments.length,p=new Array(d),h=0;h<d;h++)p[h]=arguments[h];return v=f.call.apply(f,[this].concat(p))||this,v.handleEnter=function(){for(var g=arguments.length,m=new Array(g),E=0;E<g;E++)m[E]=arguments[E];return v.handleLifecycle("onEnter",0,m)},v.handleEntering=function(){for(var g=arguments.length,m=new Array(g),E=0;E<g;E++)m[E]=arguments[E];return v.handleLifecycle("onEntering",0,m)},v.handleEntered=function(){for(var g=arguments.length,m=new Array(g),E=0;E<g;E++)m[E]=arguments[E];return v.handleLifecycle("onEntered",0,m)},v.handleExit=function(){for(var g=arguments.length,m=new Array(g),E=0;E<g;E++)m[E]=arguments[E];return v.handleLifecycle("onExit",1,m)},v.handleExiting=function(){for(var g=arguments.length,m=new Array(g),E=0;E<g;E++)m[E]=arguments[E];return v.handleLifecycle("onExiting",1,m)},v.handleExited=function(){for(var g=arguments.length,m=new Array(g),E=0;E<g;E++)m[E]=arguments[E];return v.handleLifecycle("onExited",1,m)},v}var y=b.prototype;return y.handleLifecycle=function(d,p,h){var g,m=this.props.children,E=r.default.Children.toArray(m)[p];E.props[d]&&(g=E.props)[d].apply(g,h),this.props[d]&&this.props[d]((0,o.findDOMNode)(this))},y.render=function(){var d=this.props,p=d.children,h=d.in,g=l(d,["children","in"]),m=r.default.Children.toArray(p),E=m[0],x=m[1];return delete g.onEnter,delete g.onEntering,delete g.onEntered,delete g.onExit,delete g.onExiting,delete g.onExited,r.default.createElement(i.default,g,h?r.default.cloneElement(E,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):r.default.cloneElement(x,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},b}(r.default.Component);u.propTypes=process.env.NODE_ENV!=="production"?{in:n.default.bool.isRequired,children:function(b,y){return r.default.Children.count(b[y])!==2?new Error('"'+y+'" must be exactly two transition components.'):null}}:{};var c=u;t.default=c,e.exports=t.default})(Sd,Sd.exports);var oN=Sd.exports,iN=Pl(tN),aN=Pl(oN),sN=Pl(P0),lN=Pl(vn);function Pl(e){return e&&e.__esModule?e:{default:e}}var k0={Transition:lN.default,TransitionGroup:sN.default,ReplaceTransition:aN.default,CSSTransition:iN.default};function Ri(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ri=function(t){return typeof t}:Ri=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ri(e)}function uN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){uN(e,o,n[o])})}return e}function L0(e){return dN(e)||fN(e)||pN()}function dN(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function fN(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function pN(){throw new TypeError("Invalid attempt to spread non-iterable instance")}var hN=/([A-Z])/g,gN=function(t){return"-".concat(t.toLowerCase())},mN=function(t){var n=t.replace(hN,gN);return n[0]==="m"&&n[1]==="s"&&n[2]==="-"?"-".concat(n):n},kl={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function bN(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var vN=["Webkit","ms","Moz","O"];Object.keys(kl).forEach(function(e){vN.forEach(function(t){kl[bN(t,e)]=kl[e]})});var F0=function(t,n){return typeof n=="number"?kl[t]?""+n:n+"px":""+n},yN=function(t,n){return xN(F0(t,n))},Ha=function(t,n){return xR(t).toString(36)},EN=function(t){return Ha(JSON.stringify(t))},xN=function(t){return t[t.length-10]==="!"&&t.slice(-11)===" !important"?t:"".concat(t," !important")},M0=typeof Map<"u",_d=function(){function e(){this.elements={},this.keyOrder=[]}var t=e.prototype;return t.forEach=function(r){for(var o=0;o<this.keyOrder.length;o++)r(this.elements[this.keyOrder[o]],this.keyOrder[o])},t.set=function(r,o,i){if(!this.elements.hasOwnProperty(r))this.keyOrder.push(r);else if(i){var a=this.keyOrder.indexOf(r);this.keyOrder.splice(a,1),this.keyOrder.push(r)}if(o==null){this.elements[r]=o;return}if(M0&&o instanceof Map||o instanceof e){var l=this.elements.hasOwnProperty(r)?this.elements[r]:new e;o.forEach(function(f,b){l.set(b,f,i)}),this.elements[r]=l;return}if(!Array.isArray(o)&&Ri(o)==="object"){for(var s=this.elements.hasOwnProperty(r)?this.elements[r]:new e,u=Object.keys(o),c=0;c<u.length;c+=1)s.set(u[c],o[u[c]],i);this.elements[r]=s;return}this.elements[r]=o},t.get=function(r){return this.elements[r]},t.has=function(r){return this.elements.hasOwnProperty(r)},t.addStyleType=function(r){var o=this;if(M0&&r instanceof Map||r instanceof e)r.forEach(function(l,s){o.set(s,l,!0)});else for(var i=Object.keys(r),a=0;a<i.length;a++)this.set(i[a],r[i[a]],!0)},e}();function St(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Tt(e,t){return t={exports:{}},e(t,t.exports),t.exports}function CN(e){return e&&e.default||e}var Od=Tt(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){return r.charAt(0).toUpperCase()+r.slice(1)}});St(Od);var B0=Tt(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(Od);function r(i){return i&&i.__esModule?i:{default:i}}function o(i,a,l){if(i.hasOwnProperty(a)){for(var s={},u=i[a],c=(0,n.default)(a),f=Object.keys(l),b=0;b<f.length;b++){var y=f[b];if(y===a)for(var v=0;v<u.length;v++)s[u[v]+c]=l[a];s[y]=l[y]}return s}return l}});St(B0);var j0=Tt(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,o,i,a,l){for(var s=0,u=r.length;s<u;++s){var c=r[s](o,i,a,l);if(c)return c}}});St(j0);var V0=Tt(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function n(o,i){o.indexOf(i)===-1&&o.push(i)}function r(o,i){if(Array.isArray(i))for(var a=0,l=i.length;a<l;++a)n(o,i[a]);else n(o,i)}});St(V0);var G0=Tt(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){return r instanceof Object&&!Array.isArray(r)}});St(G0);var wN=Tt(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=a(B0),r=a(j0),o=a(V0),i=a(G0);function a(s){return s&&s.__esModule?s:{default:s}}function l(s){var u=s.prefixMap,c=s.plugins;return function f(b){for(var y in b){var v=b[y];if((0,i.default)(v))b[y]=f(v);else if(Array.isArray(v)){for(var d=[],p=0,h=v.length;p<h;++p){var g=(0,r.default)(c,y,v[p],b,u);(0,o.default)(d,g||v[p])}d.length>0&&(b[y]=d)}else{var m=(0,r.default)(c,y,v,b,u);m&&(b[y]=m),b=(0,n.default)(u,y,b)}}return b}}}),IN=St(wN),SN=Tt(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,o){if(typeof o=="string"&&o==="text")return["-webkit-text","text"]}}),TN=St(SN),Uo=Tt(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var n=/-webkit-|-moz-|-ms-/;function r(o){return typeof o=="string"&&n.test(o)}e.exports=t.default});St(Uo);var AN=Tt(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Uo);function r(a){return a&&a.__esModule?a:{default:a}}var o=["-webkit-","-moz-",""];function i(a,l){if(typeof l=="string"&&!(0,n.default)(l)&&l.indexOf("calc(")>-1)return o.map(function(s){return l.replace(/calc\(/g,s+"calc(")})}}),_N=St(AN),ON=Tt(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Uo);function r(a){return a&&a.__esModule?a:{default:a}}var o=["-webkit-",""];function i(a,l){if(typeof l=="string"&&!(0,n.default)(l)&&l.indexOf("cross-fade(")>-1)return o.map(function(s){return l.replace(/cross-fade\(/g,s+"cross-fade(")})}}),RN=St(ON),NN=Tt(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=["-webkit-","-moz-",""],r={"zoom-in":!0,"zoom-out":!0,grab:!0,grabbing:!0};function o(i,a){if(i==="cursor"&&r.hasOwnProperty(a))return n.map(function(l){return l+a})}}),DN=St(NN),PN=Tt(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Uo);function r(a){return a&&a.__esModule?a:{default:a}}var o=["-webkit-",""];function i(a,l){if(typeof l=="string"&&!(0,n.default)(l)&&l.indexOf("filter(")>-1)return o.map(function(s){return l.replace(/filter\(/g,s+"filter(")})}}),kN=St(PN),LN=Tt(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var n={flex:["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex","flex"],"inline-flex":["-webkit-inline-box","-moz-inline-box","-ms-inline-flexbox","-webkit-inline-flex","inline-flex"]};function r(o,i){if(o==="display"&&n.hasOwnProperty(i))return n[i]}}),FN=St(LN),MN=Tt(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n={"space-around":"distribute","space-between":"justify","flex-start":"start","flex-end":"end"},r={alignContent:"msFlexLinePack",alignSelf:"msFlexItemAlign",alignItems:"msFlexAlign",justifyContent:"msFlexPack",order:"msFlexOrder",flexGrow:"msFlexPositive",flexShrink:"msFlexNegative",flexBasis:"msFlexPreferredSize"},o={auto:"1 1 auto",inherit:"inherit",initial:"0 1 auto",none:"0 0 auto",unset:"unset"},i=/^\d+(\.\d+)?$/;function a(l,s,u){if(Object.prototype.hasOwnProperty.call(r,l)&&(u[r[l]]=n[s]||s),l==="flex"){if(Object.prototype.hasOwnProperty.call(o,s)){u.msFlex=o[s];return}if(i.test(s)){u.msFlex=s+" 1 0%";return}var c=s.split(/\s/);switch(c.length){case 1:u.msFlex="1 1 "+s;return;case 2:i.test(c[1])?u.msFlex=c[0]+" "+c[1]+" 0%":u.msFlex=c[0]+" 1 "+c[1];return;default:u.msFlex=s}}}}),BN=St(MN),jN=Tt(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n={"space-around":"justify","space-between":"justify","flex-start":"start","flex-end":"end","wrap-reverse":"multiple",wrap:"multiple"},r={alignItems:"WebkitBoxAlign",justifyContent:"WebkitBoxPack",flexWrap:"WebkitBoxLines",flexGrow:"WebkitBoxFlex"};function o(i,a,l){i==="flexDirection"&&typeof a=="string"&&(a.indexOf("column")>-1?l.WebkitBoxOrient="vertical":l.WebkitBoxOrient="horizontal",a.indexOf("reverse")>-1?l.WebkitBoxDirection="reverse":l.WebkitBoxDirection="normal"),r.hasOwnProperty(i)&&(l[r[i]]=n[a]||a)}}),VN=St(jN),GN=Tt(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(Uo);function r(l){return l&&l.__esModule?l:{default:l}}var o=["-webkit-","-moz-",""],i=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/gi;function a(l,s){if(typeof s=="string"&&!(0,n.default)(s)&&i.test(s))return o.map(function(u){return s.replace(i,function(c){return u+c})})}}),WN=St(GN),HN=Tt(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function s(u,c){var f=[],b=!0,y=!1,v=void 0;try{for(var d=u[Symbol.iterator](),p;!(b=(p=d.next()).done)&&(f.push(p.value),!(c&&f.length===c));b=!0);}catch(h){y=!0,v=h}finally{try{!b&&d.return&&d.return()}finally{if(y)throw v}}return f}return function(u,c){if(Array.isArray(u))return u;if(Symbol.iterator in Object(u))return s(u,c);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.default=l;function r(s){return typeof s=="number"&&!isNaN(s)}var o=["center","end","start","stretch"],i={"inline-grid":["-ms-inline-grid","inline-grid"],grid:["-ms-grid","grid"]},a={alignSelf:function(u,c){o.indexOf(u)>-1&&(c.msGridRowAlign=u)},gridColumn:function(u,c){if(r(u))c.msGridColumn=u;else{var f=u.split("/").map(function(d){return+d}),b=n(f,2),y=b[0],v=b[1];a.gridColumnStart(y,c),a.gridColumnEnd(v,c)}},gridColumnEnd:function(u,c){var f=c.msGridColumn;r(u)&&r(f)&&(c.msGridColumnSpan=u-f)},gridColumnStart:function(u,c){r(u)&&(c.msGridColumn=u)},gridRow:function(u,c){if(r(u))c.msGridRow=u;else{var f=u.split("/").map(function(d){return+d}),b=n(f,2),y=b[0],v=b[1];a.gridRowStart(y,c),a.gridRowEnd(v,c)}},gridRowEnd:function(u,c){var f=c.msGridRow;r(u)&&r(f)&&(c.msGridRowSpan=u-f)},gridRowStart:function(u,c){r(u)&&(c.msGridRow=u)},gridTemplateColumns:function(u,c){c.msGridColumns=u},gridTemplateRows:function(u,c){c.msGridRows=u},justifySelf:function(u,c){o.indexOf(u)>-1&&(c.msGridColumnAlign=u)}};function l(s,u,c){if(s==="display"&&u in i)return i[u];if(s in a){var f=a[s];f(u,c)}}}),zN=St(HN),XN=Tt(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Uo);function r(a){return a&&a.__esModule?a:{default:a}}var o=["-webkit-",""];function i(a,l){if(typeof l=="string"&&!(0,n.default)(l)&&l.indexOf("image-set(")>-1)return o.map(function(s){return l.replace(/image-set\(/g,s+"image-set(")})}}),ZN=St(XN),YN=Tt(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var n={marginBlockStart:["WebkitMarginBefore"],marginBlockEnd:["WebkitMarginAfter"],marginInlineStart:["WebkitMarginStart","MozMarginStart"],marginInlineEnd:["WebkitMarginEnd","MozMarginEnd"],paddingBlockStart:["WebkitPaddingBefore"],paddingBlockEnd:["WebkitPaddingAfter"],paddingInlineStart:["WebkitPaddingStart","MozPaddingStart"],paddingInlineEnd:["WebkitPaddingEnd","MozPaddingEnd"],borderBlockStart:["WebkitBorderBefore"],borderBlockStartColor:["WebkitBorderBeforeColor"],borderBlockStartStyle:["WebkitBorderBeforeStyle"],borderBlockStartWidth:["WebkitBorderBeforeWidth"],borderBlockEnd:["WebkitBorderAfter"],borderBlockEndColor:["WebkitBorderAfterColor"],borderBlockEndStyle:["WebkitBorderAfterStyle"],borderBlockEndWidth:["WebkitBorderAfterWidth"],borderInlineStart:["WebkitBorderStart","MozBorderStart"],borderInlineStartColor:["WebkitBorderStartColor","MozBorderStartColor"],borderInlineStartStyle:["WebkitBorderStartStyle","MozBorderStartStyle"],borderInlineStartWidth:["WebkitBorderStartWidth","MozBorderStartWidth"],borderInlineEnd:["WebkitBorderEnd","MozBorderEnd"],borderInlineEndColor:["WebkitBorderEndColor","MozBorderEndColor"],borderInlineEndStyle:["WebkitBorderEndStyle","MozBorderEndStyle"],borderInlineEndWidth:["WebkitBorderEndWidth","MozBorderEndWidth"]};function r(o,i,a){if(Object.prototype.hasOwnProperty.call(n,o))for(var l=n[o],s=0,u=l.length;s<u;++s)a[l[s]]=i}}),UN=St(YN),qN=Tt(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,o){if(r==="position"&&o==="sticky")return["-webkit-sticky","sticky"]}}),JN=St(qN),QN=Tt(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=["-webkit-","-moz-",""],r={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},o={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};function i(a,l){if(r.hasOwnProperty(a)&&o.hasOwnProperty(l))return n.map(function(s){return s+l})}}),$N=St(QN),KN=/[A-Z]/g,e4=/^ms-/,Rd={};function t4(e){return"-"+e.toLowerCase()}function n4(e){if(Rd.hasOwnProperty(e))return Rd[e];var t=e.replace(KN,t4);return Rd[e]=e4.test(t)?"-"+t:t}var r4=Object.freeze({default:n4}),o4=CN(r4),W0=Tt(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(o4);function r(i){return i&&i.__esModule?i:{default:i}}function o(i){return(0,n.default)(i)}e.exports=t.default});St(W0);var i4=Tt(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var n=i(W0),r=i(Uo),o=i(Od);function i(c){return c&&c.__esModule?c:{default:c}}var a={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},l={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-"};function s(c,f){if((0,r.default)(c))return c;for(var b=c.split(/,(?![^()]*(?:\([^()]*\))?\))/g),y=0,v=b.length;y<v;++y){var d=b[y],p=[d];for(var h in f){var g=(0,n.default)(h);if(d.indexOf(g)>-1&&g!=="order")for(var m=f[h],E=0,x=m.length;E<x;++E)p.unshift(d.replace(g,l[m[E]]+g))}b[y]=p.join(",")}return b.join(",")}function u(c,f,b,y){if(typeof f=="string"&&a.hasOwnProperty(c)){var v=s(f,y),d=v.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(h){return!/-moz-|-ms-/.test(h)}).join(",");if(c.indexOf("Webkit")>-1)return d;var p=v.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(h){return!/-webkit-|-ms-/.test(h)}).join(",");return c.indexOf("Moz")>-1?p:(b["Webkit"+(0,o.default)(c)]=d,b["Moz"+(0,o.default)(c)]=p,v)}}}),a4=St(i4),Se=["Webkit"],Nd=["Moz"],Ll=["ms"],an=["Webkit","Moz"],Qt=["Webkit","ms"],za=["Webkit","Moz","ms"],s4={plugins:[TN,_N,RN,DN,kN,FN,BN,VN,WN,zN,ZN,UN,JN,$N,a4],prefixMap:{transform:Qt,transformOrigin:Qt,transformOriginX:Qt,transformOriginY:Qt,backfaceVisibility:Se,perspective:Se,perspectiveOrigin:Se,transformStyle:Se,transformOriginZ:Se,animation:Se,animationDelay:Se,animationDirection:Se,animationFillMode:Se,animationDuration:Se,animationIterationCount:Se,animationName:Se,animationPlayState:Se,animationTimingFunction:Se,appearance:an,userSelect:za,fontKerning:Se,textEmphasisPosition:Se,textEmphasis:Se,textEmphasisStyle:Se,textEmphasisColor:Se,boxDecorationBreak:Se,clipPath:Se,maskImage:Se,maskMode:Se,maskRepeat:Se,maskPosition:Se,maskClip:Se,maskOrigin:Se,maskSize:Se,maskComposite:Se,mask:Se,maskBorderSource:Se,maskBorderMode:Se,maskBorderSlice:Se,maskBorderWidth:Se,maskBorderOutset:Se,maskBorderRepeat:Se,maskBorder:Se,maskType:Se,textDecorationStyle:an,textDecorationSkip:an,textDecorationLine:an,textDecorationColor:an,filter:Se,fontFeatureSettings:an,breakAfter:za,breakBefore:za,breakInside:za,columnCount:an,columnFill:an,columnGap:an,columnRule:an,columnRuleColor:an,columnRuleStyle:an,columnRuleWidth:an,columns:an,columnSpan:an,columnWidth:an,writingMode:Qt,flex:Qt,flexBasis:Se,flexDirection:Qt,flexGrow:Se,flexFlow:Qt,flexShrink:Se,flexWrap:Qt,alignContent:Se,alignItems:Se,alignSelf:Se,justifyContent:Se,order:Se,transitionDelay:Se,transitionDuration:Se,transitionProperty:Se,transitionTimingFunction:Se,backdropFilter:Se,scrollSnapType:Qt,scrollSnapPointsX:Qt,scrollSnapPointsY:Qt,scrollSnapDestination:Qt,scrollSnapCoordinate:Qt,shapeImageThreshold:Se,shapeImageMargin:Se,shapeImageOutside:Se,hyphens:za,flowInto:Qt,flowFrom:Qt,regionFragment:Qt,textOrientation:Se,boxSizing:Nd,textAlignLast:Nd,tabSize:Nd,wrapFlow:Ll,wrapThrough:Ll,wrapMargin:Ll,touchAction:Ll,textSizeAdjust:Qt,borderImage:Se,borderImageOutset:Se,borderImageRepeat:Se,borderImageSlice:Se,borderImageSource:Se,borderImageWidth:Se}},l4=IN(s4),H0=[function(t,n,r){return t[0]!==":"?null:r(n+t)},function(t,n,r){if(t[0]!=="@")return null;var o=r(n);return["".concat(t,"{").concat(o.join(""),"}")]}],Dd=function e(t,n,r,o,i){for(var a=new _d,l=0;l<n.length;l++)a.addStyleType(n[l]);var s=new _d,u=[];a.forEach(function(f,b){var y=r.some(function(v){var d=v(b,t,function(p){return e(p,[f],r,o,i)});if(d!=null)return Array.isArray(d)?u.push.apply(u,L0(d)):(console.warn("WARNING: Selector handlers should return an array of rules.Returning a string containing multiple rules is deprecated.",v),u.push("@media all {".concat(d,"}"))),!0});y||s.set(b,f,!0)});var c=d4(t,s,o,i,r);return c&&u.unshift(c),u},u4=function(t,n,r){if(n)for(var o=Object.keys(n),i=0;i<o.length;i++){var a=o[i];t.has(a)&&t.set(a,n[a](t.get(a),r),!1)}},z0=function(t,n,r){return"".concat(mN(t),":").concat(r(t,n),";")},c4=function(t,n){return t[n]=!0,t},d4=function(t,n,r,o,i){u4(n,r,i);var a=Object.keys(n.elements).reduce(c4,Object.create(null)),l=l4(n.elements),s=Object.keys(l);if(s.length!==n.keyOrder.length){for(var u=0;u<s.length;u++)if(!a[s[u]]){var c=void 0;if(s[u][0]==="W"?c=s[u][6].toLowerCase()+s[u].slice(7):s[u][1]==="o"?c=s[u][3].toLowerCase()+s[u].slice(4):c=s[u][2].toLowerCase()+s[u].slice(3),c&&a[c]){var f=n.keyOrder.indexOf(c);n.keyOrder.splice(f,0,s[u])}else n.keyOrder.unshift(s[u])}}for(var b=o===!1?F0:yN,y=[],v=0;v<n.keyOrder.length;v++){var d=n.keyOrder[v],p=l[d];if(Array.isArray(p))for(var h=0;h<p.length;h++)y.push(z0(d,p[h],b));else y.push(z0(d,p,b))}return y.length?"".concat(t,"{").concat(y.join(""),"}"):""},$n=null,f4=function(t){if($n==null&&($n=document.querySelector("style[data-aphrodite]"),$n==null)){var n=document.head||document.getElementsByTagName("head")[0];$n=document.createElement("style"),$n.type="text/css",$n.setAttribute("data-aphrodite",""),n.appendChild($n)}var r=$n.styleSheet||$n.sheet;if(r.insertRule){var o=r.cssRules.length;t.forEach(function(i){try{r.insertRule(i,o),o+=1}catch{}})}else $n.innerText=($n.innerText||"")+t.join("")},Pd={fontFamily:function e(t){if(Array.isArray(t)){var n={};return t.forEach(function(r){n[e(r)]=!0}),Object.keys(n).join(",")}else return Ri(t)==="object"?(Z0(t.src,"@font-face",[t],!1),'"'.concat(t.fontFamily,'"')):t},animationName:function e(t,n){if(Array.isArray(t))return t.map(function(i){return e(i,n)}).join(",");if(Ri(t)==="object"){var r="keyframe_".concat(EN(t)),o="@keyframes ".concat(r,"{");return t instanceof _d?t.forEach(function(i,a){o+=Dd(a,[i],n,Pd,!1).join("")}):Object.keys(t).forEach(function(i){o+=Dd(i,[t[i]],n,Pd,!1).join("")}),o+="}",X0(r,[o]),r}else return t}},qo={},Xa=[],Ni=!1,X0=function(t,n){var r;if(!qo[t]){if(!Ni){if(typeof document>"u")throw new Error("Cannot automatically buffer without a document");Ni=!0,AR(q0)}(r=Xa).push.apply(r,L0(n)),qo[t]=!0}},Z0=function(t,n,r,o){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[];if(!qo[t]){var a=Dd(n,r,i,Pd,o);X0(t,a)}},Fl=function(){Xa=[],qo={},Ni=!1,$n=null},p4=function(t){delete qo[t]},h4=function(){return Xa},Y0=function(){if(Ni)throw new Error("Cannot buffer while already buffering");Ni=!0},U0=function(){Ni=!1;var t=Xa;return Xa=[],t},g4=function(){return U0().join("")},q0=function(){var t=U0();t.length>0&&f4(t)},m4=function(){return Object.keys(qo)},b4=function(t){t.forEach(function(n){qo[n]=!0})},v4=function(t){return"_definition"in t&&"_name"in t&&"_len"in t},y4=function e(t,n,r,o){for(var i=0;i<t.length;i+=1)if(t[i])if(Array.isArray(t[i]))o+=e(t[i],n,r,o);else if(v4(t[i]))n.push(t[i]._name),r.push(t[i]._definition),o+=t[i]._len;else throw new Error("Invalid Style Definition: Styles should be defined using the StyleSheet.create method.");return o},J0=function(t,n,r){var o=[],i=[],a=y4(n,o,i,0);if(o.length===0)return"";var l;return process.env.NODE_ENV==="production"?l=o.length===1?"_".concat(o[0]):"_".concat(Ha(o.join())).concat((a%36).toString(36)):l=o.join("-o_O-"),Z0(l,".".concat(l),i,t,r),l},Q0=function(t,n){return"".concat(n,"_").concat(Ha(t))},E4=function(){return process.env.NODE_ENV==="production"?Ha:Q0},$0=E4(),x4={create:function(t){for(var n={},r=Object.keys(t),o=0;o<r.length;o+=1){var i=r[o],a=t[i],l=JSON.stringify(a);n[i]={_len:l.length,_name:$0(l,i),_definition:a}}return n},rehydrate:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];b4(t)}},C4=typeof window<"u"?null:{renderStatic:function(t){Fl(),Y0();var n=t(),r=g4();return{html:n,css:{content:r,renderedClassNames:m4()}}}},w4=process.env.NODE_ENV==="production"?null:{suppressStyleInjection:function(){Fl(),Y0()},clearBufferAndResumeStyleInjection:function(){Fl()},getBufferedStyles:function(){return h4()}};function K0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:H0;return{StyleSheet:cN({},x4,{extend:function(r){var o=r.map(function(i){return i.selectorHandler}).filter(function(i){return i});return K0(e,t.concat(o))}}),StyleSheetServer:C4,StyleSheetTestUtils:w4,minify:function(r){$0=r?Ha:Q0},css:function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return J0(e,o,t)},flushToStyleTag:q0,injectAndGetClassName:J0,defaultSelectorHandlers:H0,reset:Fl,resetInjectedStyle:p4}}var I4=!0,Tr=K0(I4),S4=Tr.StyleSheet;Tr.StyleSheetServer,Tr.StyleSheetTestUtils;var Ml=Tr.css;Tr.minify,Tr.flushToStyleTag,Tr.injectAndGetClassName,Tr.defaultSelectorHandlers,Tr.reset,Tr.resetInjectedStyle;var eb={},kd={},tb={exports:{}};/*!
|
|
778
778
|
Copyright (c) 2015 Jed Watson.
|
|
779
779
|
Based on code that is Copyright 2013-2015, Facebook, Inc.
|
|
780
780
|
All rights reserved.
|
|
781
|
-
*/(function(e){(function(){var t=!!(typeof window<"u"&&window.document&&window.document.createElement),n={canUseDOM:t,canUseWorkers:typeof Worker<"u",canUseEventListeners:t&&!!(window.addEventListener||window.attachEvent),canUseViewport:t&&!!window.screen};e.exports?e.exports=n:window.ExecutionEnvironment=n})()})(tb);var Ld=tb.exports,sn={};Object.defineProperty(sn,"__esModule",{value:!0}),sn.preventTouchMove=
|
|
781
|
+
*/(function(e){(function(){var t=!!(typeof window<"u"&&window.document&&window.document.createElement),n={canUseDOM:t,canUseWorkers:typeof Worker<"u",canUseEventListeners:t&&!!(window.addEventListener||window.attachEvent),canUseViewport:t&&!!window.screen};e.exports?e.exports=n:window.ExecutionEnvironment=n})()})(tb);var Ld=tb.exports,sn={};Object.defineProperty(sn,"__esModule",{value:!0}),sn.preventTouchMove=T4,sn.allowTouchMove=A4,sn.preventInertiaScroll=_4,sn.isTouchDevice=O4,sn.getPadding=R4,sn.camelToKebab=N4,sn.getWindowHeight=D4,sn.getDocumentHeight=P4,sn.parse=k4,sn.makeStyleTag=L4,sn.injectStyles=F4,sn.insertStyleTag=M4;function T4(e){e.preventDefault()}function A4(e){e.stopPropagation()}function _4(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function O4(){return typeof window>"u"||!window?!1:"ontouchstart"in window||navigator.maxTouchPoints}function R4(){if(typeof window>"u"||!window||!document)return 0;var e=parseInt(document.body.paddingRight,10)||0,t=document.body?document.body.clientWidth:0,n=window.innerWidth-t+e||0;return n}function N4(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function D4(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;if(typeof window<"u"&&window&&window.innerHeight)return window.innerHeight*e}function P4(){if(typeof window<"u"&&document&&document.body)return document.body.clientHeight}function k4(e){return isNaN(e)?e:e+"px"}function L4(e){var t=document.createElement("style");return t.type="text/css",t.setAttribute("data-react-scrolllock",""),t}function F4(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function M4(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Fd={};Object.defineProperty(Fd,"__esModule",{value:!0});var B4=function(){function e(t,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Fd.default=H4;var nb=S,j4=V4(nb),rb=Ld,po=sn;function V4(e){return e&&e.__esModule?e:{default:e}}function G4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ob(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function W4(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function H4(e){return function(t){W4(n,t);function n(){var r,o,i,a;G4(this,n);for(var l=arguments.length,s=Array(l),u=0;u<l;u++)s[u]=arguments[u];return a=(o=(i=ob(this,(r=n.__proto__||Object.getPrototypeOf(n)).call.apply(r,[this].concat(s))),i),i.listenerOptions={capture:!1,passive:!1},o),ob(i,a)}return B4(n,[{key:"componentDidMount",value:function(){if(rb.canUseDOM){var o=this.props.touchScrollTarget,i=document.body;i&&(0,po.isTouchDevice)()&&(i.addEventListener("touchmove",po.preventTouchMove,this.listenerOptions),o&&(o.addEventListener("touchstart",po.preventInertiaScroll,this.listenerOptions),o.addEventListener("touchmove",po.allowTouchMove,this.listenerOptions)))}}},{key:"componentWillUnmount",value:function(){if(rb.canUseDOM){var o=this.props.touchScrollTarget,i=document.body;i&&(0,po.isTouchDevice)()&&(i.removeEventListener("touchmove",po.preventTouchMove,this.listenerOptions),o&&(o.removeEventListener("touchstart",po.preventInertiaScroll,this.listenerOptions),o.removeEventListener("touchmove",po.allowTouchMove,this.listenerOptions)))}}},{key:"render",value:function(){return j4.default.createElement(e,this.props)}}]),n}(nb.PureComponent)}var Md={};Object.defineProperty(Md,"__esModule",{value:!0});var z4=function(){function e(t,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),ib=S;Z4(ib);var X4=Ld,Bd=sn;function Z4(e){return e&&e.__esModule?e:{default:e}}function Y4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ab(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function U4(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var q4=function(e){U4(t,e);function t(){var n,r,o,i;Y4(this,t);for(var a=arguments.length,l=Array(a),s=0;s<a;s++)l[s]=arguments[s];return i=(r=(o=ab(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(l))),o),o.addSheet=function(){var u=o.props.styles,c=(0,Bd.makeStyleTag)();c&&((0,Bd.injectStyles)(c,u),(0,Bd.insertStyleTag)(c),o.sheet=c)},r),ab(o,i)}return z4(t,[{key:"componentDidMount",value:function(){X4.canUseDOM&&this.addSheet()}},{key:"removeSheet",value:function(){this.sheet&&(this.sheet.parentNode.removeChild(this.sheet),this.sheet=null)}},{key:"componentWillUnmount",value:function(){this.removeSheet()}},{key:"render",value:function(){return null}}]),t}(ib.PureComponent);Md.default=q4,Object.defineProperty(kd,"__esModule",{value:!0});var J4=function(){function e(t,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),sb=S,Q4=jd(sb),$4=Ld,lb=sn,K4=Fd,eD=jd(K4),tD=Md,nD=jd(tD);function jd(e){return e&&e.__esModule?e:{default:e}}function rD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ub(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function oD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var cb=function(e){oD(t,e);function t(){var n,r,o,i;rD(this,t);for(var a=arguments.length,l=Array(a),s=0;s<a;s++)l[s]=arguments[s];return i=(r=(o=ub(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(l))),o),o.getStyles=function(){var u=o.props.accountForScrollbars,c=(0,lb.getDocumentHeight)(),f=u?(0,lb.getPadding)():null,b=`body {
|
|
782
782
|
box-sizing: border-box !important;
|
|
783
783
|
overflow: hidden !important;
|
|
784
784
|
position: relative !important;
|
|
785
785
|
`+(c?"height: "+c+"px !important;":"")+`
|
|
786
|
-
`+(
|
|
787
|
-
}`;return
|
|
786
|
+
`+(f?"padding-right: "+f+"px !important;":"")+`
|
|
787
|
+
}`;return b},r),ub(o,i)}return J4(t,[{key:"componentDidMount",value:function(){$4.canUseDOM&&(this.initialHeight=window.innerHeight)}},{key:"componentWillUnmount",value:function(){var r=window.innerHeight-this.initialHeight;r&&window.scrollTo(0,window.pageYOffset+r),this.initialHeight=window.innerHeight}},{key:"render",value:function(){return Q4.default.createElement(nD.default,{styles:this.getStyles()})}}]),t}(sb.PureComponent);cb.defaultProps={accountForScrollbars:!0},kd.default=(0,eD.default)(cb),function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=kd;Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n(t).default}});function n(r){return r&&r.__esModule?r:{default:r}}}(eb);const iD=ds(eb);var He={};He.container={background:"rgba(0, 0, 0, .8)",gutter:{horizontal:10,vertical:10},zIndex:2001},He.header={height:40},He.close={fill:"white"},He.footer={color:"#fff",count:{color:"rgba(255, 255, 255, .75)",fontSize:".85em"},height:40,gutter:{horizontal:0,vertical:5}},He.thumbnail={activeBorderColor:"#fff",size:50,gutter:2},He.arrow={background:"none",fill:"#fff",height:120};var aD=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vd=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Gd=function(){function e(t,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Di=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wd=function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},Bl=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},Hd=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e};function ho(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Object.assign({},t);return Object.keys(e).forEach(function(r){aD(e[r])!=="object"||!e[r]?n[r]=e[r]:t[r]?n[r]=ho(t[r],e[r]):n[r]=e[r]}),n}var sD=!!(typeof window<"u"&&window.document&&window.document.createElement);function lD(e){var t=this;e.forEach(function(n){return t[n]=t[n].bind(t)})}var uD=function(e){return'<svg fill="'+e+`" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="100%" height="100%" viewBox="0 0 512 512" xml:space="preserve">
|
|
788
788
|
<path d="M213.7,256L213.7,256L213.7,256L380.9,81.9c4.2-4.3,4.1-11.4-0.2-15.8l-29.9-30.6c-4.3-4.4-11.3-4.5-15.5-0.2L131.1,247.9 c-2.2,2.2-3.2,5.2-3,8.1c-0.1,3,0.9,5.9,3,8.1l204.2,212.7c4.2,4.3,11.2,4.2,15.5-0.2l29.9-30.6c4.3-4.4,4.4-11.5,0.2-15.8 L213.7,256z"/>
|
|
789
|
-
</svg>`},
|
|
789
|
+
</svg>`},cD=function(e){return'<svg fill="'+e+`" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="100%" height="100%" viewBox="0 0 512 512" xml:space="preserve">
|
|
790
790
|
<path d="M298.3,256L298.3,256L298.3,256L131.1,81.9c-4.2-4.3-4.1-11.4,0.2-15.8l29.9-30.6c4.3-4.4,11.3-4.5,15.5-0.2l204.2,212.7 c2.2,2.2,3.2,5.2,3,8.1c0.1,3-0.9,5.9-3,8.1L176.7,476.8c-4.2,4.3-11.2,4.2-15.5-0.2L131.3,446c-4.3-4.4-4.4-11.5-0.2-15.8 L298.3,256z"/>
|
|
791
|
-
</svg>`},
|
|
791
|
+
</svg>`},dD=function(e){return'<svg fill="'+e+`" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="100%" height="100%" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
|
|
792
792
|
<path d="M443.6,387.1L312.4,255.4l131.5-130c5.4-5.4,5.4-14.2,0-19.6l-37.4-37.6c-2.6-2.6-6.1-4-9.8-4c-3.7,0-7.2,1.5-9.8,4 L256,197.8L124.9,68.3c-2.6-2.6-6.1-4-9.8-4c-3.7,0-7.2,1.5-9.8,4L68,105.9c-5.4,5.4-5.4,14.2,0,19.6l131.5,130L68.4,387.1 c-2.6,2.6-4.1,6.1-4.1,9.8c0,3.7,1.4,7.2,4.1,9.8l37.4,37.6c2.7,2.7,6.2,4.1,9.8,4.1c3.5,0,7.1-1.3,9.8-4.1L256,313.1l130.7,131.1 c2.7,2.7,6.2,4.1,9.8,4.1c3.5,0,7.1-1.3,9.8-4.1l37.4-37.6c2.6-2.6,4.1-6.1,4.1-9.8C447.7,393.2,446.2,389.7,443.6,387.1z"/>
|
|
793
|
-
</svg>`},db={arrowLeft:
|
|
793
|
+
</svg>`},db={arrowLeft:uD,arrowRight:cD,close:dD},jl=function(t){var n=t.fill,r=t.type,o=Bl(t,["fill","type"]),i=db[r];return S.createElement("span",Di({dangerouslySetInnerHTML:{__html:i(n)}},o))};jl.propTypes={fill:xe.string,type:xe.oneOf(Object.keys(db))},jl.defaultProps={fill:"#fff"};function Pi(e){var t=e.direction,n=e.icon,r=e.onClick,o=e.size,i=e.theme,a=Bl(e,["direction","icon","onClick","size","theme"]),l=Bt.StyleSheet.create(ho(fD,i));return S.createElement("button",Di({type:"button",className:Bt.css(l.arrow,l["arrow__direction__"+t],o&&l["arrow__size__"+o]),onClick:r,onTouchEnd:r},a),S.createElement(jl,{fill:!!i.arrow&&i.arrow.fill||He.arrow.fill,type:n}))}Pi.propTypes={theme:xe.object,direction:xe.oneOf(["left","right"]),icon:xe.string,onClick:xe.func.isRequired,size:xe.oneOf(["medium","small"]).isRequired},Pi.defaultProps={size:"medium"};var fD={arrow:{background:"none",border:"none",borderRadius:4,cursor:"pointer",outline:"none",padding:10,position:"absolute",top:"50%",WebkitTouchCallout:"none",userSelect:"none"},arrow__size__medium:{height:He.arrow.height,marginTop:He.arrow.height/-2,width:40,"@media (min-width: 768px)":{width:70}},arrow__size__small:{height:He.thumbnail.size,marginTop:He.thumbnail.size/-2,width:30,"@media (min-width: 500px)":{width:40}},arrow__direction__right:{right:He.container.gutter.horizontal},arrow__direction__left:{left:He.container.gutter.horizontal}};function fb(e){var t=Bt.StyleSheet.create(ho(pD,e.theme));return S.createElement("div",Di({id:"viewerBackdrop",className:Bt.css(t.container)},e))}fb.propTypes={theme:xe.object};var pD={container:{alignItems:"center",backdropColor:He.container.background,boxSizing:"border-box",display:"flex",height:"100%",justifyContent:"center",left:0,paddingTop:He.container.gutter.vertical,paddingRight:He.container.gutter.horizontal,paddingBottom:He.container.gutter.vertical,paddingLeft:He.container.gutter.horizontal,position:"fixed",top:0,width:"100%",zIndex:He.container.zIndex}};function pb(e){var t=e.caption,n=e.countCurr,r=e.countSeparator,o=e.countTotal,i=e.showCount,a=e.theme,l=Bl(e,["caption","countCurr","countSeparator","countTotal","showCount","theme"]);if(!t&&!i)return null;var s=Bt.StyleSheet.create(ho(hD,a)),u=i?S.createElement("div",{className:Bt.css(s.footerCount)},n,r,o):S.createElement("span",null);return S.createElement("div",Di({className:Bt.css(s.footer)},l),t?S.createElement("figcaption",{className:Bt.css(s.footerCaption)},t):S.createElement("span",null),u)}pb.propTypes={theme:xe.object,caption:xe.oneOfType([xe.string,xe.element]),countCurr:xe.number,countSeparator:xe.string,countTotal:xe.number,showCount:xe.bool};var hD={footer:{boxSizing:"border-box",color:He.footer.color,cursor:"auto",display:"flex",justifyContent:"space-between",left:0,lineHeight:1.3,paddingTop:He.footer.gutter.vertical,paddingRight:He.footer.gutter.horizontal,paddingBottom:He.footer.gutter.vertical,paddingLeft:He.footer.gutter.horizontal},footerCount:{color:He.footer.count.color,fontSize:He.footer.count.fontSize,paddingLeft:"1em"},footerCaption:{flex:"1 1 0"}};function hb(e){var t=e.customControls,n=e.onClose,r=e.showCloseBtn,o=e.closeBtnTitle,i=e.theme,a=Bl(e,["customControls","onClose","showCloseBtn","closeBtnTitle","theme"]),l=Bt.StyleSheet.create(ho(gD,i));return S.createElement("div",Di({className:Bt.css(l.header)},a),t||S.createElement("span",null),!!r&&S.createElement("button",{title:o,className:Bt.css(l.close),onClick:n},S.createElement(jl,{fill:!!i.close&&i.close.fill||He.close.fill,type:"close"})))}hb.propTypes={theme:xe.object,customControls:xe.array,onClose:xe.func.isRequired,showCloseBtn:xe.bool,closeBtnTitle:xe.string};var gD={header:{display:"flex",justifyContent:"space-between",height:He.header.height},close:{background:"none",border:"none",cursor:"pointer",outline:"none",position:"relative",top:0,verticalAlign:"bottom",zIndex:1,height:40,marginRight:-10,padding:10,width:40}};function gb(e){var t=e.index,n=e.src,r=e.thumbnail,o=e.active,i=e.onClick,a=e.theme,l=r||n,s=Bt.StyleSheet.create(ho(mD,a));return S.createElement("div",{className:Bt.css(s.thumbnail,o&&s.thumbnail__active),onClick:function(c){c.preventDefault(),c.stopPropagation(),i(t)},style:{backgroundImage:'url("'+l+'")'}})}gb.propTypes={theme:xe.object,active:xe.bool,index:xe.number,onClick:xe.func.isRequired,src:xe.string,thumbnail:xe.string};var mD={thumbnail:{backgroundPosition:"center",backgroundSize:"cover",borderRadius:2,boxShadow:"inset 0 0 0 1px hsla(0, 0%, 100%, .2)",cursor:"pointer",display:"inline-block",height:He.thumbnail.size,margin:He.thumbnail.gutter,overflow:"hidden",width:He.thumbnail.size},thumbnail__active:{boxShadow:"inset 0 0 0 2px "+He.thumbnail.activeBorderColor}},bD=Bt.StyleSheet.create({paginatedThumbnails:{bottom:He.container.gutter.vertical,height:He.thumbnail.size,padding:"0 50px",position:"absolute",textAlign:"center",whiteSpace:"nowrap",left:"50%",transform:"translateX(-50%)"}}),mb={height:He.thumbnail.size+He.thumbnail.gutter*2,width:40},bb=function(e){Wd(t,e);function t(n){Vd(this,t);var r=Hd(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n));return r.state={hasCustomPage:!1},r.gotoPrev=r.gotoPrev.bind(r),r.gotoNext=r.gotoNext.bind(r),r}return Gd(t,[{key:"UNSAFE_componentWillReceiveProps",value:function(r){r.currImg!==this.props.currImg&&this.setState({hasCustomPage:!1})}},{key:"getFirst",value:function(){var r=this.props,o=r.currImg,i=r.offset;return this.state.hasCustomPage?this.clampFirst(this.state.first):this.clampFirst(o-i)}},{key:"setFirst",value:function(r,o){var i=this.state.first;r&&(r.preventDefault(),r.stopPropagation()),i!==o&&this.setState({hasCustomPage:!0,first:o})}},{key:"gotoPrev",value:function(r){this.setFirst(r,this.getFirst()-this.props.offset)}},{key:"gotoNext",value:function(r){this.setFirst(r,this.getFirst()+this.props.offset)}},{key:"clampFirst",value:function(r){var o=this.props,i=o.imgs,a=o.offset,l=2*a+1;return r<0?0:r+l>i.length?i.length-l:r}},{key:"renderArrowPrev",value:function(r){var o=this.props.leftTitle;return this.getFirst()<=0?null:S.createElement(Pi,{theme:r,direction:"left",size:"small",icon:"arrowLeft",onClick:this.gotoPrev,style:mb,title:o,type:"button"})}},{key:"renderArrowNext",value:function(r){var o=this.props,i=o.offset,a=o.imgs,l=o.rightTitle,s=2*i+1;return this.getFirst()+s>=a.length?null:S.createElement(Pi,{theme:r,direction:"right",size:"small",icon:"arrowRight",onClick:this.gotoNext,style:mb,title:l,type:"button"})}},{key:"render",value:function(){var r=this.props,o=r.imgs,i=r.currImg,a=r.onClickThumbnail,l=r.offset,s=r.theme,u=2*l+1,c=[],f=0;return o.length<=u?c=o:(f=this.getFirst(),c=o.slice(f,f+u)),S.createElement("div",{className:Bt.css(bD.paginatedThumbnails)},this.renderArrowPrev(s),c.map(function(b,y){return S.createElement(gb,Di({theme:s,key:f+y},b,{index:f+y,onClick:a,active:f+y===i}))}),this.renderArrowNext(s))}}]),t}(S.Component);bb.propTypes={theme:xe.object,leftTitle:xe.string,rightTitle:xe.string,currImg:xe.number,imgs:xe.array,offset:xe.number,onClickThumbnail:xe.func.isRequired};var vb=function(e){Wd(t,e);function t(){Vd(this,t);var n=Hd(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.portalElement=null,n}return Gd(t,[{key:"componentDidMount",value:function(){var r=document.createElement("div");document.body.appendChild(r),this.portalElement=r,this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var r=200,o=`
|
|
794
794
|
.fade-enter { opacity: 0.01; }
|
|
795
795
|
.fade-enter.fade-enter-active { opacity: 1; transition: opacity `+r+`ms; }
|
|
796
796
|
.fade-leave { opacity: 1; }
|
|
797
797
|
.fade-leave.fade-leave-active { opacity: .01; transition: opacity `+r+`ms; }
|
|
798
|
-
`;Qe.render(S.createElement("div",null,S.createElement("style",null,o),S.createElement(k0.TransitionGroup,this.props,S.createElement(k0.CSSTransition,{timeout:{enter:r,exit:r},className:"fade"},S.createElement("div",null,this.props.children)))),this.portalElement)}},{key:"componentWillUnmount",value:function(){Qe.unmountComponentAtNode(this.portalElement),document.body.removeChild(this.portalElement)}},{key:"render",value:function(){return null}}]),t}(S.Component);vb.propTypes={children:xe.arrayOf(xe.any)};var yb=function(t){var n=Bt.StyleSheet.create(
|
|
798
|
+
`;Qe.render(S.createElement("div",null,S.createElement("style",null,o),S.createElement(k0.TransitionGroup,this.props,S.createElement(k0.CSSTransition,{timeout:{enter:r,exit:r},className:"fade"},S.createElement("div",null,this.props.children)))),this.portalElement)}},{key:"componentWillUnmount",value:function(){Qe.unmountComponentAtNode(this.portalElement),document.body.removeChild(this.portalElement)}},{key:"render",value:function(){return null}}]),t}(S.Component);vb.propTypes={children:xe.arrayOf(xe.any)};var yb=function(t){var n=Bt.StyleSheet.create(yD(t));return S.createElement("div",{className:Bt.css(n.bouncingLoader)},S.createElement("div",{className:Bt.css(n.child)}),S.createElement("div",{className:Bt.css(n.child,n.child2)}),S.createElement("div",{className:Bt.css(n.child,n.child3)}))};yb.propTypes={color:xe.string,size:xe.number};var vD=function(t){return{"0%":{opacity:1,transform:"translateY(0)"},"100%":{opacity:.1,transform:"translateY(-"+t+"px)"}}},yD=function(t){var n=t.color,r=t.size;return{bouncingLoader:{display:"flex",justifyContent:"center"},child:{width:r,height:r,margin:3*r+"px "+.2*r+"px",background:n,borderRadius:"50%",animationName:vD(r),animationDuration:".6s",animationDirection:"alternate",animationIterationCount:"infinite"},child2:{animationDelay:"0.2s"},child3:{animationDelay:"0.4s"}}};function Eb(e){var t=e.srcSet||e.srcset;return Array.isArray(t)?t.join():t}var xb=S.createContext({theme:He,toggleTheme:function(t){}}),zd=function(e){Wd(t,e);function t(n){Vd(this,t);var r=Hd(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n));return r.theme=ho(He,r.props.theme),r.classes=S4.create(ho(ED,r.props.theme)),r.toggleTheme=function(o){r.setState(function(){return{theme:o}})},r.state={imgLoaded:!1,theme:r.theme,toggleTheme:r.toggleTheme},lD.call(r,["gotoNext","gotoPrev","closeBackdrop","handleKeyboardInput","handleImgLoaded"]),r}return Gd(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&(this.props.enableKeyboardInput&&window.addEventListener("keydown",this.handleKeyboardInput),typeof this.props.currImg=="number"&&this.preloadImg(this.props.currImg,this.handleImgLoaded))}},{key:"UNSAFE_componentWillReceiveProps",value:function(r){if(sD){if(r.preloadNextImg){var o=r.currImg+1,i=r.currImg-1;this.preloadImg(i),this.preloadImg(o)}if(this.props.currImg!==r.currImg||!this.props.isOpen&&r.isOpen){var a=this.preloadImgData(r.imgs[r.currImg],this.handleImgLoaded);a&&this.setState({imgLoaded:a.complete})}return!this.props.isOpen&&r.isOpen&&r.enableKeyboardInput&&window.addEventListener("keydown",this.handleKeyboardInput),!r.isOpen&&r.enableKeyboardInput&&window.removeEventListener("keydown",this.handleKeyboardInput),null}}},{key:"componentWillUnmount",value:function(){this.props.enableKeyboardInput&&window.removeEventListener("keydown",this.handleKeyboardInput)}},{key:"preloadImg",value:function(r,o){return this.preloadImgData(this.props.imgs[r],o)}},{key:"preloadImgData",value:function(r,o){if(r){var i=new Image,a=Eb(r);return i.onerror=o,i.onload=o,i.src=r.src,a&&(i.srcset=a),i}}},{key:"gotoNext",value:function(r){var o=this.props,i=o.currImg,a=o.imgs,l=this.state.imgLoaded;!l||i===a.length-1||(r&&(r.preventDefault(),r.stopPropagation()),this.props.onClickNext())}},{key:"gotoPrev",value:function(r){var o=this.props.currImg,i=this.state.imgLoaded;!i||o===0||(r&&(r.preventDefault(),r.stopPropagation()),this.props.onClickPrev())}},{key:"closeBackdrop",value:function(r){(r.target.id==="viewerBackdrop"||r.target.tagName==="FIGURE")&&this.props.onClose()}},{key:"handleKeyboardInput",value:function(r){var o=r.keyCode;return o===37||o===33||o===38?(this.gotoPrev(r),!0):o===39||o===34||o===40?(this.gotoNext(r),!0):o===27||o===32?(this.props.onClose(),!0):!1}},{key:"handleImgLoaded",value:function(){this.setState({imgLoaded:!0})}},{key:"renderArrowPrev",value:function(r){return this.props.currImg===0?null:S.createElement(Pi,{theme:r,direction:"left",icon:"arrowLeft",onClick:this.gotoPrev,title:this.props.leftArrowTitle,type:"button"})}},{key:"renderArrowNext",value:function(r){return this.props.currImg===this.props.imgs.length-1?null:S.createElement(Pi,{theme:r,direction:"right",icon:"arrowRight",onClick:this.gotoNext,title:this.props.rightArrowTitle,type:"button"})}},{key:"renderDialog",value:function(r){var o=this,i=this.props,a=i.backdropCloseable,l=i.isOpen,s=i.showThumbnails,u=i.width,c=this.state.imgLoaded;if(!l)return S.createElement("span",{key:"closed"});var f=s?this.theme.thumbnail.size+this.theme.container.gutter.vertical:0;return S.createElement(xb.Consumer,null,function(b){var y=b.theme;return b.toggleTheme,y=r.theme,S.createElement(fb,{theme:y,key:"open",onClick:a&&o.closeBackdrop,onTouchEnd:a&&o.closeBackdrop},S.createElement(S.Fragment,null,S.createElement("div",{className:Ml(o.classes.content),style:{marginBottom:f,maxWidth:u}},c&&o.renderHeader(y)," ",o.renderImgs(y),o.renderSpinner()," ",c&&o.renderFooter(y)),c&&o.renderThumbnails(y),c&&o.renderArrowPrev(y),c&&o.renderArrowNext(y),o.props.preventScroll&&S.createElement(iD,null)))})}},{key:"renderImgs",value:function(r){var o=this.props,i=o.currImg,a=o.imgs,l=o.onClickImg,s=o.showThumbnails,u=this.state.imgLoaded;if(!a||!a.length)return null;var c=a[i],f=Eb(c),b=f?"100vw":null,y=s?r.thumbnail.size:0,v=r.header.height+r.footer.height+y+r.container.gutter.vertical+"px";return S.createElement("figure",{className:Ml(this.classes.figure)},S.createElement("img",{className:Ml(this.classes.img,u&&this.classes.imgLoaded),onClick:l,sizes:b,alt:c.alt,src:c.src,srcSet:f,style:{cursor:l?"pointer":"auto",maxHeight:"calc(100vh - "+v}}))}},{key:"renderThumbnails",value:function(r){var o=this.props,i=o.imgs,a=o.currImg,l=o.leftArrowTitle,s=o.rightArrowTitle,u=o.onClickThumbnail,c=o.showThumbnails,f=o.thumbnailOffset;return c?S.createElement(bb,{theme:r,leftTitle:l,rightTitle:s,currImg:a,imgs:i,offset:f,onClickThumbnail:u}):null}},{key:"renderHeader",value:function(r){var o=this.props,i=o.closeBtnTitle,a=o.customControls,l=o.onClose,s=o.showCloseBtn;return S.createElement(hb,{theme:r,customControls:a,onClose:l,showCloseBtn:s,closeBtnTitle:i})}},{key:"renderFooter",value:function(r){var o=this.props,i=o.currImg,a=o.imgs,l=o.imgCountSeparator,s=o.showImgCount;return!a||!a.length?null:S.createElement(pb,{theme:r,caption:a[i].caption,countCurr:i+1,countSeparator:l,countTotal:a.length,showCount:s})}},{key:"renderSpinner",value:function(){var r=this.props,o=r.spinner,i=r.spinnerDisabled,a=r.spinnerColor,l=r.spinnerSize,s=this.state.imgLoaded,u=o;return i?null:S.createElement("div",{className:Ml(this.classes.spinner,!s&&this.classes.spinnerActive)},S.createElement(u,{color:a,size:l}))}},{key:"render",value:function(){return S.createElement(xb.Provider,{value:this.state},S.createElement(vb,null," ",this.renderDialog(this.state)," "))}}]),t}(S.Component);zd.propTypes={backdropCloseable:xe.bool,closeBtnTitle:xe.string,currImg:xe.number,customControls:xe.arrayOf(xe.node),enableKeyboardInput:xe.bool,imgCountSeparator:xe.string,imgs:xe.arrayOf(xe.shape({src:xe.string.isRequired,srcSet:xe.oneOfType([xe.array,xe.string]),caption:xe.oneOfType([xe.string,xe.element]),thumbnail:xe.string})).isRequired,isOpen:xe.bool,leftArrowTitle:xe.string,onClickImg:xe.func,onClickNext:xe.func,onClickPrev:xe.func,onClickThumbnail:xe.func,onClose:xe.func.isRequired,preloadNextImg:xe.bool,preventScroll:xe.bool,rightArrowTitle:xe.string,showCloseBtn:xe.bool,showImgCount:xe.bool,showThumbnails:xe.bool,spinnerDisabled:xe.bool,spinner:xe.func,spinnerColor:xe.string,spinnerSize:xe.number,theme:xe.object,thumbnailOffset:xe.number,width:xe.number},zd.defaultProps={currImg:0,enableKeyboardInput:!0,imgCountSeparator:" / ",onClickShowNextImg:!0,preloadNextImg:!0,preventScroll:!0,showCloseBtn:!0,showImgCount:!0,spinnerDisabled:!1,spinner:yb,spinnerColor:"#fff",spinnerSize:50,theme:{},thumbnailOffset:2,width:1024};var ED={content:{position:"relative"},figure:{margin:0},img:{display:"block",height:"auto",margin:"0 auto",maxWidth:"100%",WebkitTouchCallout:"none",userSelect:"none",opacity:0,transition:"opacity .3s"},imgLoaded:{opacity:1},spinner:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",opacity:0,transition:"opacity .3s",pointerEvents:"none"},spinnerActive:{opacity:1}};const xD={close:{boxSizing:"border-box"},arrow:{boxSizing:"border-box"},img:{borderRadius:"20px"}},CD=w.styled(w.Stack)`
|
|
799
799
|
flex-flow: row nowrap;
|
|
800
800
|
justify-content: flex-start;
|
|
801
801
|
width: 100%;
|
|
@@ -803,7 +803,7 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStat
|
|
|
803
803
|
overflow-x: auto;
|
|
804
804
|
overflow-y: hidden;
|
|
805
805
|
white-space: nowrap;
|
|
806
|
-
`,
|
|
806
|
+
`,wD=w.styled(w.Box)`
|
|
807
807
|
flex-shrink: 0;
|
|
808
808
|
width: 40%;
|
|
809
809
|
max-width: 400px;
|
|
@@ -820,7 +820,7 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStat
|
|
|
820
820
|
aspect-ratio: 16 / 10;
|
|
821
821
|
object-fit: cover;
|
|
822
822
|
}
|
|
823
|
-
`,
|
|
823
|
+
`,ID=({previewList:e})=>{const[t,n]=S.useState(-1),r=e[t],o=()=>n(l=>l-1),i=()=>n(l=>l+1),a=()=>n(-1);return I.jsxs(CD,{className:"h-screenshot-viewer",children:[e.map(({src:l},s)=>I.jsx(wD,{onClick:()=>n(s),children:I.jsx("img",{src:l,alt:"connector-preview"})},l+s)),r?I.jsx(zd,{imgs:e,currImg:t,isOpen:!!r,onClickPrev:o,onClickNext:i,onClose:a,backdropCloseable:!0,theme:xD}):null]})},SD="Request capability",Cb="connectorName",TD=`Need additional {{${Cb}}} capabilities? Let us know what you would like to integrate`,AD=e=>TD.replace(`{{${Cb}}}`,e),_D=w.styled(w.Stack)`
|
|
824
824
|
flex-flow: row nowrap;
|
|
825
825
|
justify-content: flex-start;
|
|
826
826
|
align-items: center;
|
|
@@ -828,7 +828,7 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStat
|
|
|
828
828
|
padding: 4px 16px;
|
|
829
829
|
border-radius: 4px;
|
|
830
830
|
background: #f6f8fc;
|
|
831
|
-
`,
|
|
831
|
+
`,OD=w.styled(w.Button)`
|
|
832
832
|
flex-shrink: 0;
|
|
833
833
|
border-radius: 4px;
|
|
834
834
|
border: 1px solid #d6dde8;
|
|
@@ -846,15 +846,15 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStat
|
|
|
846
846
|
border: 1px solid ${w.theme.palette.purple.primary} !important;
|
|
847
847
|
box-shadow: none;
|
|
848
848
|
}
|
|
849
|
-
`,
|
|
849
|
+
`,RD=w.styled(w.icons.InfoOutlined)`
|
|
850
850
|
flex-shrink: 0;
|
|
851
851
|
width: 22px;
|
|
852
852
|
height: 22px;
|
|
853
853
|
color: ${w.theme.palette.gray.gray3};
|
|
854
|
-
`,
|
|
854
|
+
`,ND=({connectorName:e,onRequestClick:t})=>I.jsxs(_D,{children:[I.jsx(RD,{}),I.jsx(w.Typography,{children:AD(e)}),I.jsx(OD,{onClick:t,children:SD})]}),DD=w.styled(w.Box)`
|
|
855
855
|
margin-top: 24px;
|
|
856
856
|
width: 100%;
|
|
857
|
-
`,
|
|
857
|
+
`,PD=w.styled(w.Box)`
|
|
858
858
|
margin-top: 27px;
|
|
859
859
|
margin-bottom: 24px;
|
|
860
860
|
font-size: 13px;
|
|
@@ -877,13 +877,13 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStat
|
|
|
877
877
|
ul {
|
|
878
878
|
margin-bottom: 20px;
|
|
879
879
|
}
|
|
880
|
-
`,
|
|
880
|
+
`,kD=({connectorName:e,carouselImages:t,templateDescription:n,isEdit:r,renderModal:o})=>{const[i,a]=S.useState(!1),l=t.map(({url:s})=>({src:s}));return I.jsxs(DD,{children:[I.jsx(ID,{previewList:l}),!!n&&I.jsx(PD,{dangerouslySetInnerHTML:{__html:n}}),r&&I.jsx(ND,{connectorName:e,onRequestClick:()=>a(!0)}),o({showModal:i,setShowModal:a})]})},LD=w.styled(w.Stack)`
|
|
881
881
|
flex-flow: row nowrap;
|
|
882
882
|
column-gap: 12px;
|
|
883
883
|
padding: 16px 0;
|
|
884
884
|
box-sizing: border-box;
|
|
885
885
|
overflow: hidden;
|
|
886
|
-
`,
|
|
886
|
+
`,FD=w.styled(w.Skeleton)`
|
|
887
887
|
display: block;
|
|
888
888
|
width: 40%;
|
|
889
889
|
max-width: 400px;
|
|
@@ -892,7 +892,7 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStat
|
|
|
892
892
|
flex-shrink: 0;
|
|
893
893
|
border-radius: 8px;
|
|
894
894
|
transform: scale(1, 1);
|
|
895
|
-
`,
|
|
895
|
+
`,MD=w.styled(w.Stack)`
|
|
896
896
|
box-sizing: border-box;
|
|
897
897
|
width: 100%;
|
|
898
898
|
`,Xd=w.styled(w.Skeleton)`
|
|
@@ -906,10 +906,10 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStat
|
|
|
906
906
|
margin-left: 20px;
|
|
907
907
|
width: 50%;
|
|
908
908
|
}
|
|
909
|
-
`,
|
|
909
|
+
`,BD=()=>I.jsxs(w.Stack,{marginTop:"28px",gap:"12px",children:[I.jsx(LD,{children:Os(3,e=>I.jsx(FD,{animation:"wave"},e))}),I.jsxs(MD,{children:[Os(3,e=>I.jsx(Xd,{animation:"wave"},e)),Os(4,e=>I.jsx(Xd,{className:"li",animation:"wave"},e)),Os(2,e=>I.jsx(Xd,{animation:"wave"},e))]})]}),jD="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.86421%2015.9708C9.20287%2016.3941%209.13423%2017.0118%208.71091%2017.3505C8.28758%2017.6891%207.66987%2017.6205%207.33121%2017.1972L8.86421%2015.9708ZM2.94434%2010.1423L2.17784%2010.7555C1.89104%2010.397%201.89104%209.88757%202.17784%209.52907L2.94434%2010.1423ZM7.33121%203.08735C7.66987%202.66403%208.28758%202.59539%208.71091%202.93405C9.13423%203.27271%209.20287%203.89042%208.86421%204.31375L7.33121%203.08735ZM3.31243%2011.1852C2.77031%2011.1852%202.33084%2010.7457%202.33084%2010.2036C2.33084%209.66149%202.77031%209.22201%203.31243%209.22201L3.31243%2011.1852ZM17.0548%209.22201C17.5969%209.22201%2018.0364%209.66149%2018.0364%2010.2036C18.0364%2010.7457%2017.5969%2011.1852%2017.0548%2011.1852V9.22201ZM7.33121%2017.1972L2.17784%2010.7555L3.71083%209.52907L8.86421%2015.9708L7.33121%2017.1972ZM2.17784%209.52907L7.33121%203.08735L8.86421%204.31375L3.71083%2010.7555L2.17784%209.52907ZM3.31243%209.22201L17.0548%209.22201V11.1852L3.31243%2011.1852L3.31243%209.22201Z'%20fill='%236F7C90'/%3e%3c/svg%3e",VD=w.styled(w.Stack)`
|
|
910
910
|
margin: 9px 0 0 52px;
|
|
911
911
|
position: relative;
|
|
912
|
-
`,
|
|
912
|
+
`,GD=w.styled(w.IconButton)`
|
|
913
913
|
position: absolute;
|
|
914
914
|
left: -36px;
|
|
915
915
|
margin: 3.5px 2.5px 3.5px 0;
|
|
@@ -918,7 +918,7 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStat
|
|
|
918
918
|
height: 18px;
|
|
919
919
|
margin: 0;
|
|
920
920
|
}
|
|
921
|
-
`,
|
|
921
|
+
`,WD=()=>{const{availableFeatures:e,sendTrackingEvent:t}=S.useContext(qt),n=so(),r=qe(bl),o=qe(oc),i=qe(jc),a=qe(Xh),l=uo(),{id:s=""}=zg(),[u]=em(),c=u.get("isEdit")==="true",f=(r==null?void 0:r[s])||null,b=(o==null?void 0:o[s])||null;S.useEffect(()=>{l(c?Ea(s):ya(s))},[c,l,s]);const y=g=>{g==null||g.stopPropagation(),t(tt.CONNECTOR_BACK_CLICKED,{connector_name:v==null?void 0:v.name}),n(Xe.BASEPATH)},v=c?f:b,d=!!(v!=null&&v.carouselImages)&&v.carouselImages.length>0,p=i===Ie.LOADING||a===Ie.LOADING,h=br(e,kE)&&(p||d);return I.jsxs(S.Fragment,{children:[c?null:I.jsx(ud,{isApiViewPage:!0}),I.jsxs(VD,{"data-testid":"connector-config",children:[I.jsx(w.Tooltip,{title:"Back",placement:"bottom",children:I.jsx(GD,{onClick:y,children:I.jsx("img",{src:jD})})}),v?I.jsx(e0,{isConfigSettingsPage:!0,connector:v,isEdit:c}):null,h&&(d?I.jsx(kD,{carouselImages:v.carouselImages,templateDescription:v.templateDescription,connectorName:v.name,isEdit:c,renderModal:({showModal:g,setShowModal:m})=>I.jsx(sd,{shown:g,setShown:m,connectorType:v.type,isApi:!0})}):I.jsx(BD,{})),!h&&I.jsx(dR,{isLoading:p&&!h,apiList:(v==null?void 0:v.apiList)||[],connectorName:(v==null?void 0:v.name)||"",connectorType:v==null?void 0:v.type,isEdit:c})]})]})},HD=w.styled(w.Stack)`
|
|
922
922
|
margin-bottom: 36px;
|
|
923
923
|
.arrow {
|
|
924
924
|
border: solid ${w.theme.palette.gray.gray3};
|
|
@@ -929,34 +929,34 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStat
|
|
|
929
929
|
-webkit-transform: rotate(-45deg);
|
|
930
930
|
height: 5px;
|
|
931
931
|
}
|
|
932
|
-
`,
|
|
932
|
+
`,zD=w.styled(w.Typography)`
|
|
933
933
|
margin-right: 4px;
|
|
934
934
|
cursor: pointer;
|
|
935
|
-
`,
|
|
935
|
+
`,XD=w.styled(w.Stack)`
|
|
936
936
|
width: 20px;
|
|
937
937
|
height: 20px;
|
|
938
938
|
margin-right: 4px;
|
|
939
939
|
padding-right: 6px;
|
|
940
|
-
`,
|
|
941
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $t(e,t){return sP(e)||lP(e,t)||Rb(e,t)||uP()}function cP(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function Ar(e,t){if(e==null)return{};var n,r,o=cP(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var dP=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Nb(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,o=r===void 0?!1:r,i=e.defaultValue,a=i===void 0?null:i,
|
|
942
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qd(e){return vP(e)||yP(e)||Rb(e)||EP()}var xP=!1;function CP(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function wP(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var IP=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!xP:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(wP(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=CP(o);try{i.insertRule(r,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e}(),ln="-ms-",Gl="-moz-",tt="-webkit-",kb="comm",$d="rule",Kd="decl",SP="@import",Lb="@keyframes",TP="@layer",AP=Math.abs,Wl=String.fromCharCode,_P=Object.assign;function OP(e,t){return nn(e,0)^45?(((t<<2^nn(e,0))<<2^nn(e,1))<<2^nn(e,2))<<2^nn(e,3):0}function Fb(e){return e.trim()}function RP(e,t){return(e=t.exec(e))?e[0]:e}function nt(e,t,n){return e.replace(t,n)}function ef(e,t){return e.indexOf(t)}function nn(e,t){return e.charCodeAt(t)|0}function Za(e,t,n){return e.slice(t,n)}function _r(e){return e.length}function tf(e){return e.length}function Hl(e,t){return t.push(e),e}function NP(e,t){return e.map(t).join("")}var zl=1,Li=1,Mb=0,_n=0,jt=0,Fi="";function Xl(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:zl,column:Li,length:a,return:""}}function Ya(e,t){return _P(Xl("",null,null,"",null,null,0),e,{length:-e.length},t)}function DP(){return jt}function PP(){return jt=_n>0?nn(Fi,--_n):0,Li--,jt===10&&(Li=1,zl--),jt}function Hn(){return jt=_n<Mb?nn(Fi,_n++):0,Li++,jt===10&&(Li=1,zl++),jt}function Or(){return nn(Fi,_n)}function Zl(){return _n}function Ua(e,t){return Za(Fi,e,t)}function qa(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Bb(e){return zl=Li=1,Mb=_r(Fi=e),_n=0,[]}function jb(e){return Fi="",e}function Yl(e){return Fb(Ua(_n-1,nf(e===91?e+2:e===40?e+1:e)))}function kP(e){for(;(jt=Or())&&jt<33;)Hn();return qa(e)>2||qa(jt)>3?"":" "}function LP(e,t){for(;--t&&Hn()&&!(jt<48||jt>102||jt>57&&jt<65||jt>70&&jt<97););return Ua(e,Zl()+(t<6&&Or()==32&&Hn()==32))}function nf(e){for(;Hn();)switch(jt){case e:return _n;case 34:case 39:e!==34&&e!==39&&nf(jt);break;case 40:e===41&&nf(e);break;case 92:Hn();break}return _n}function FP(e,t){for(;Hn()&&e+jt!==57;)if(e+jt===84&&Or()===47)break;return"/*"+Ua(t,_n-1)+"*"+Wl(e===47?e:Hn())}function MP(e){for(;!qa(Or());)Hn();return Ua(e,_n)}function BP(e){return jb(Ul("",null,null,null,[""],e=Bb(e),0,[0],e))}function Ul(e,t,n,r,o,i,a,s,l){for(var u=0,c=0,d=a,v=0,y=0,g=0,f=1,p=1,h=1,m=0,b="",E=o,x=i,T=r,A=b;p;)switch(g=m,m=Hn()){case 40:if(g!=108&&nn(A,d-1)==58){ef(A+=nt(Yl(m),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:A+=Yl(m);break;case 9:case 10:case 13:case 32:A+=kP(g);break;case 92:A+=LP(Zl()-1,7);continue;case 47:switch(Or()){case 42:case 47:Hl(jP(FP(Hn(),Zl()),t,n),l);break;default:A+="/"}break;case 123*f:s[u++]=_r(A)*h;case 125*f:case 59:case 0:switch(m){case 0:case 125:p=0;case 59+c:h==-1&&(A=nt(A,/\f/g,"")),y>0&&_r(A)-d&&Hl(y>32?Gb(A+";",r,n,d-1):Gb(nt(A," ","")+";",r,n,d-2),l);break;case 59:A+=";";default:if(Hl(T=Vb(A,t,n,u,c,o,s,b,E=[],x=[],d),i),m===123)if(c===0)Ul(A,t,T,T,E,i,d,s,x);else switch(v===99&&nn(A,3)===110?100:v){case 100:case 108:case 109:case 115:Ul(e,T,T,r&&Hl(Vb(e,T,T,0,0,o,s,b,o,E=[],d),x),o,x,d,s,r?E:x);break;default:Ul(A,T,T,T,[""],x,0,s,x)}}u=c=y=0,f=h=1,b=A="",d=a;break;case 58:d=1+_r(A),y=g;default:if(f<1){if(m==123)--f;else if(m==125&&f++==0&&PP()==125)continue}switch(A+=Wl(m),m*f){case 38:h=c>0?1:(A+="\f",-1);break;case 44:s[u++]=(_r(A)-1)*h,h=1;break;case 64:Or()===45&&(A+=Yl(Hn())),v=Or(),c=d=_r(b=A+=MP(Zl())),m++;break;case 45:g===45&&_r(A)==2&&(f=0)}}return i}function Vb(e,t,n,r,o,i,a,s,l,u,c){for(var d=o-1,v=o===0?i:[""],y=tf(v),g=0,f=0,p=0;g<r;++g)for(var h=0,m=Za(e,d+1,d=AP(f=a[g])),b=e;h<y;++h)(b=Fb(f>0?v[h]+" "+m:nt(m,/&\f/g,v[h])))&&(l[p++]=b);return Xl(e,t,n,o===0?$d:s,l,u,c)}function jP(e,t,n){return Xl(e,t,n,kb,Wl(DP()),Za(e,2,-2),0)}function Gb(e,t,n,r){return Xl(e,t,n,Kd,Za(e,0,r),Za(e,r+1,-1),r)}function Mi(e,t){for(var n="",r=tf(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function VP(e,t,n,r){switch(e.type){case TP:if(e.children.length)break;case SP:case Kd:return e.return=e.return||e.value;case kb:return"";case Lb:return e.return=e.value+"{"+Mi(e.children,r)+"}";case $d:e.value=e.props.join(",")}return _r(n=Mi(e.children,r))?e.return=e.value+"{"+n+"}":""}function GP(e){var t=tf(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}function WP(e){return function(t){t.root||(t=t.return)&&e(t)}}function HP(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var zP=function(t,n,r){for(var o=0,i=0;o=i,i=Or(),o===38&&i===12&&(n[r]=1),!qa(i);)Hn();return Ua(t,_n)},XP=function(t,n){var r=-1,o=44;do switch(qa(o)){case 0:o===38&&Or()===12&&(n[r]=1),t[r]+=zP(_n-1,n,r);break;case 2:t[r]+=Yl(o);break;case 4:if(o===44){t[++r]=Or()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Wl(o)}while(o=Hn());return t},ZP=function(t,n){return jb(XP(Bb(t),n))},Wb=new WeakMap,YP=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Wb.get(r))&&!o){Wb.set(t,!0);for(var i=[],a=ZP(n,i),s=r.props,l=0,u=0;l<a.length;l++)for(var c=0;c<s.length;c++,u++)t.props[u]=i[l]?a[l].replace(/&\f/g,s[c]):s[c]+" "+a[l]}}},UP=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function Hb(e,t){switch(OP(e,t)){case 5103:return tt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return tt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return tt+e+Gl+e+ln+e+e;case 6828:case 4268:return tt+e+ln+e+e;case 6165:return tt+e+ln+"flex-"+e+e;case 5187:return tt+e+nt(e,/(\w+).+(:[^]+)/,tt+"box-$1$2"+ln+"flex-$1$2")+e;case 5443:return tt+e+ln+"flex-item-"+nt(e,/flex-|-self/,"")+e;case 4675:return tt+e+ln+"flex-line-pack"+nt(e,/align-content|flex-|-self/,"")+e;case 5548:return tt+e+ln+nt(e,"shrink","negative")+e;case 5292:return tt+e+ln+nt(e,"basis","preferred-size")+e;case 6060:return tt+"box-"+nt(e,"-grow","")+tt+e+ln+nt(e,"grow","positive")+e;case 4554:return tt+nt(e,/([^-])(transform)/g,"$1"+tt+"$2")+e;case 6187:return nt(nt(nt(e,/(zoom-|grab)/,tt+"$1"),/(image-set)/,tt+"$1"),e,"")+e;case 5495:case 3959:return nt(e,/(image-set\([^]*)/,tt+"$1$`$1");case 4968:return nt(nt(e,/(.+:)(flex-)?(.*)/,tt+"box-pack:$3"+ln+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+tt+e+e;case 4095:case 3583:case 4068:case 2532:return nt(e,/(.+)-inline(.+)/,tt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(_r(e)-1-t>6)switch(nn(e,t+1)){case 109:if(nn(e,t+4)!==45)break;case 102:return nt(e,/(.+:)(.+)-([^]+)/,"$1"+tt+"$2-$3$1"+Gl+(nn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ef(e,"stretch")?Hb(nt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(nn(e,t+1)!==115)break;case 6444:switch(nn(e,_r(e)-3-(~ef(e,"!important")&&10))){case 107:return nt(e,":",":"+tt)+e;case 101:return nt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+tt+(nn(e,14)===45?"inline-":"")+"box$3$1"+tt+"$2$3$1"+ln+"$2box$3")+e}break;case 5936:switch(nn(e,t+11)){case 114:return tt+e+ln+nt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return tt+e+ln+nt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return tt+e+ln+nt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return tt+e+ln+e+e}return e}var qP=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Kd:t.return=Hb(t.value,t.length);break;case Lb:return Mi([Ya(t,{value:nt(t.value,"@","@"+tt)})],o);case $d:if(t.length)return NP(t.props,function(i){switch(RP(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Mi([Ya(t,{props:[nt(i,/:(read-\w+)/,":"+Gl+"$1")]})],o);case"::placeholder":return Mi([Ya(t,{props:[nt(i,/:(plac\w+)/,":"+tt+"input-$1")]}),Ya(t,{props:[nt(i,/:(plac\w+)/,":"+Gl+"$1")]}),Ya(t,{props:[nt(i,/:(plac\w+)/,ln+"input-$1")]})],o)}return""})}},JP=[qP],QP=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(f){var p=f.getAttribute("data-emotion");p.indexOf(" ")!==-1&&(document.head.appendChild(f),f.setAttribute("data-s",""))})}var o=t.stylisPlugins||JP,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(f){for(var p=f.getAttribute("data-emotion").split(" "),h=1;h<p.length;h++)i[p[h]]=!0;s.push(f)});var l,u=[YP,UP];{var c,d=[VP,WP(function(f){c.insert(f)})],v=GP(u.concat(o,d)),y=function(p){return Mi(BP(p),v)};l=function(p,h,m,b){c=m,y(p?p+"{"+h.styles+"}":h.styles),b&&(g.inserted[h.name]=!0)}}var g={key:n,sheet:new IP({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:l};return g.sheet.hydrate(s),g},rf={exports:{}},ut={};/** @license React v16.13.1
|
|
940
|
+
`,ZD=({options:e})=>{const t=so(),n=r=>{r&&t(r)};return I.jsx(HD,{direction:"row",alignItems:"center","data-testid":"breadCrumbs",children:e.map(({name:r,route:o},i)=>{const a=i===e.length-1,l=a?w.theme.palette.gray.black:w.theme.palette.gray.gray4,s=a?"lastCrumb":`crumb-${i}`;return I.jsxs(w.Stack,{direction:"row",alignItems:"center",children:[I.jsx(zD,{className:`breadcrumb--item ${a?"last":""}`,variant:"h3",color:l,onClick:()=>n(o),"data-testid":s,children:r}),a?null:I.jsx(XD,{direction:"row",alignItems:"center",justifyContent:"center",children:I.jsx("div",{className:"arrow"})})]},r.replace(/\s/g,""))})})},Zd="authSuccedded",wb="authFaield",YD="token",UD="connector_id",pt={IDLE:"idle",PENDING:"pending",OAUTH_SUCCESS:"oauth_success",OAUTH_FAILED:"oauth_failed",API_KEY_SUCCESS:"api_success",API_KEY_FAILED:"api_failed",BASIC_AUTH_SUCCESS:"basic_auth_success",BASIC_AUTH_FAILED:"basic_auth_failed",REQUEST_FAILED:"request_failed"},Ib="Successfully Authorized",Sb="Authorization Failed",qD="Copied to clipboard",Tb="Something Went Wrong!",JD="Successfully Saved Details",QD="Please enter a valid URL",$D="URL must start with https://",KD="URL should not end with a slash",eP="Update connector",tP="A new upgrade is available for your connector that requires action from your side:",nP="Required steps:",rP="View upgrade guide",Yd="Connector upgraded successfully",Ud="Connector upgrade failed",oP="\\{\\{([\\w_]+)\\}\\}",iP="Custom Connectors",Ab="Settings";function Jo(e){"@babel/helpers - typeof";return Jo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jo(e)}function aP(e,t){if(Jo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Jo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _b(e){var t=aP(e,"string");return Jo(t)=="symbol"?t:t+""}function ki(e,t,n){return(t=_b(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ob(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function _e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ob(Object(n),!0).forEach(function(r){ki(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ob(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sP(e){if(Array.isArray(e))return e}function lP(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,o=c}finally{try{if(!s&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}function qd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Rb(e,t){if(e){if(typeof e=="string")return qd(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qd(e,t):void 0}}function uP(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
941
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $t(e,t){return sP(e)||lP(e,t)||Rb(e,t)||uP()}function cP(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function Ar(e,t){if(e==null)return{};var n,r,o=cP(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var dP=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Nb(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,o=r===void 0?!1:r,i=e.defaultValue,a=i===void 0?null:i,l=e.inputValue,s=e.menuIsOpen,u=e.onChange,c=e.onInputChange,f=e.onMenuClose,b=e.onMenuOpen,y=e.value,v=Ar(e,dP),d=S.useState(l!==void 0?l:n),p=$t(d,2),h=p[0],g=p[1],m=S.useState(s!==void 0?s:o),E=$t(m,2),x=E[0],A=E[1],T=S.useState(y!==void 0?y:a),C=$t(T,2),O=C[0],M=C[1],B=S.useCallback(function(se,ve){typeof u=="function"&&u(se,ve),M(se)},[u]),U=S.useCallback(function(se,ve){var W;typeof c=="function"&&(W=c(se,ve)),g(W!==void 0?W:se)},[c]),G=S.useCallback(function(){typeof b=="function"&&b(),A(!0)},[b]),X=S.useCallback(function(){typeof f=="function"&&f(),A(!1)},[f]),q=l!==void 0?l:h,$=s!==void 0?s:x,ue=y!==void 0?y:O;return _e(_e({},v),{},{inputValue:q,menuIsOpen:$,onChange:B,onInputChange:U,onMenuClose:X,onMenuOpen:G,value:ue})}function Pe(){return Pe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pe.apply(null,arguments)}function fP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Db(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_b(r.key),r)}}function pP(e,t,n){return t&&Db(e.prototype,t),n&&Db(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Jd(e,t){return Jd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Jd(e,t)}function hP(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Jd(e,t)}function Vl(e){return Vl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Vl(e)}function Pb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Pb=function(){return!!e})()}function gP(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mP(e,t){if(t&&(Jo(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gP(e)}function bP(e){var t=Pb();return function(){var n,r=Vl(e);if(t){var o=Vl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return mP(this,n)}}function vP(e){if(Array.isArray(e))return qd(e)}function yP(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function EP(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
942
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qd(e){return vP(e)||yP(e)||Rb(e)||EP()}var xP=!1;function CP(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function wP(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var IP=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!xP:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(wP(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=CP(o);try{i.insertRule(r,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e}(),ln="-ms-",Gl="-moz-",nt="-webkit-",kb="comm",$d="rule",Kd="decl",SP="@import",Lb="@keyframes",TP="@layer",AP=Math.abs,Wl=String.fromCharCode,_P=Object.assign;function OP(e,t){return nn(e,0)^45?(((t<<2^nn(e,0))<<2^nn(e,1))<<2^nn(e,2))<<2^nn(e,3):0}function Fb(e){return e.trim()}function RP(e,t){return(e=t.exec(e))?e[0]:e}function rt(e,t,n){return e.replace(t,n)}function ef(e,t){return e.indexOf(t)}function nn(e,t){return e.charCodeAt(t)|0}function Za(e,t,n){return e.slice(t,n)}function _r(e){return e.length}function tf(e){return e.length}function Hl(e,t){return t.push(e),e}function NP(e,t){return e.map(t).join("")}var zl=1,Li=1,Mb=0,_n=0,jt=0,Fi="";function Xl(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:zl,column:Li,length:a,return:""}}function Ya(e,t){return _P(Xl("",null,null,"",null,null,0),e,{length:-e.length},t)}function DP(){return jt}function PP(){return jt=_n>0?nn(Fi,--_n):0,Li--,jt===10&&(Li=1,zl--),jt}function Hn(){return jt=_n<Mb?nn(Fi,_n++):0,Li++,jt===10&&(Li=1,zl++),jt}function Or(){return nn(Fi,_n)}function Zl(){return _n}function Ua(e,t){return Za(Fi,e,t)}function qa(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Bb(e){return zl=Li=1,Mb=_r(Fi=e),_n=0,[]}function jb(e){return Fi="",e}function Yl(e){return Fb(Ua(_n-1,nf(e===91?e+2:e===40?e+1:e)))}function kP(e){for(;(jt=Or())&&jt<33;)Hn();return qa(e)>2||qa(jt)>3?"":" "}function LP(e,t){for(;--t&&Hn()&&!(jt<48||jt>102||jt>57&&jt<65||jt>70&&jt<97););return Ua(e,Zl()+(t<6&&Or()==32&&Hn()==32))}function nf(e){for(;Hn();)switch(jt){case e:return _n;case 34:case 39:e!==34&&e!==39&&nf(jt);break;case 40:e===41&&nf(e);break;case 92:Hn();break}return _n}function FP(e,t){for(;Hn()&&e+jt!==57;)if(e+jt===84&&Or()===47)break;return"/*"+Ua(t,_n-1)+"*"+Wl(e===47?e:Hn())}function MP(e){for(;!qa(Or());)Hn();return Ua(e,_n)}function BP(e){return jb(Ul("",null,null,null,[""],e=Bb(e),0,[0],e))}function Ul(e,t,n,r,o,i,a,l,s){for(var u=0,c=0,f=a,b=0,y=0,v=0,d=1,p=1,h=1,g=0,m="",E=o,x=i,A=r,T=m;p;)switch(v=g,g=Hn()){case 40:if(v!=108&&nn(T,f-1)==58){ef(T+=rt(Yl(g),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:T+=Yl(g);break;case 9:case 10:case 13:case 32:T+=kP(v);break;case 92:T+=LP(Zl()-1,7);continue;case 47:switch(Or()){case 42:case 47:Hl(jP(FP(Hn(),Zl()),t,n),s);break;default:T+="/"}break;case 123*d:l[u++]=_r(T)*h;case 125*d:case 59:case 0:switch(g){case 0:case 125:p=0;case 59+c:h==-1&&(T=rt(T,/\f/g,"")),y>0&&_r(T)-f&&Hl(y>32?Gb(T+";",r,n,f-1):Gb(rt(T," ","")+";",r,n,f-2),s);break;case 59:T+=";";default:if(Hl(A=Vb(T,t,n,u,c,o,l,m,E=[],x=[],f),i),g===123)if(c===0)Ul(T,t,A,A,E,i,f,l,x);else switch(b===99&&nn(T,3)===110?100:b){case 100:case 108:case 109:case 115:Ul(e,A,A,r&&Hl(Vb(e,A,A,0,0,o,l,m,o,E=[],f),x),o,x,f,l,r?E:x);break;default:Ul(T,A,A,A,[""],x,0,l,x)}}u=c=y=0,d=h=1,m=T="",f=a;break;case 58:f=1+_r(T),y=v;default:if(d<1){if(g==123)--d;else if(g==125&&d++==0&&PP()==125)continue}switch(T+=Wl(g),g*d){case 38:h=c>0?1:(T+="\f",-1);break;case 44:l[u++]=(_r(T)-1)*h,h=1;break;case 64:Or()===45&&(T+=Yl(Hn())),b=Or(),c=f=_r(m=T+=MP(Zl())),g++;break;case 45:v===45&&_r(T)==2&&(d=0)}}return i}function Vb(e,t,n,r,o,i,a,l,s,u,c){for(var f=o-1,b=o===0?i:[""],y=tf(b),v=0,d=0,p=0;v<r;++v)for(var h=0,g=Za(e,f+1,f=AP(d=a[v])),m=e;h<y;++h)(m=Fb(d>0?b[h]+" "+g:rt(g,/&\f/g,b[h])))&&(s[p++]=m);return Xl(e,t,n,o===0?$d:l,s,u,c)}function jP(e,t,n){return Xl(e,t,n,kb,Wl(DP()),Za(e,2,-2),0)}function Gb(e,t,n,r){return Xl(e,t,n,Kd,Za(e,0,r),Za(e,r+1,-1),r)}function Mi(e,t){for(var n="",r=tf(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function VP(e,t,n,r){switch(e.type){case TP:if(e.children.length)break;case SP:case Kd:return e.return=e.return||e.value;case kb:return"";case Lb:return e.return=e.value+"{"+Mi(e.children,r)+"}";case $d:e.value=e.props.join(",")}return _r(n=Mi(e.children,r))?e.return=e.value+"{"+n+"}":""}function GP(e){var t=tf(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,i)||"";return a}}function WP(e){return function(t){t.root||(t=t.return)&&e(t)}}function HP(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var zP=function(t,n,r){for(var o=0,i=0;o=i,i=Or(),o===38&&i===12&&(n[r]=1),!qa(i);)Hn();return Ua(t,_n)},XP=function(t,n){var r=-1,o=44;do switch(qa(o)){case 0:o===38&&Or()===12&&(n[r]=1),t[r]+=zP(_n-1,n,r);break;case 2:t[r]+=Yl(o);break;case 4:if(o===44){t[++r]=Or()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Wl(o)}while(o=Hn());return t},ZP=function(t,n){return jb(XP(Bb(t),n))},Wb=new WeakMap,YP=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Wb.get(r))&&!o){Wb.set(t,!0);for(var i=[],a=ZP(n,i),l=r.props,s=0,u=0;s<a.length;s++)for(var c=0;c<l.length;c++,u++)t.props[u]=i[s]?a[s].replace(/&\f/g,l[c]):l[c]+" "+a[s]}}},UP=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function Hb(e,t){switch(OP(e,t)){case 5103:return nt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return nt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return nt+e+Gl+e+ln+e+e;case 6828:case 4268:return nt+e+ln+e+e;case 6165:return nt+e+ln+"flex-"+e+e;case 5187:return nt+e+rt(e,/(\w+).+(:[^]+)/,nt+"box-$1$2"+ln+"flex-$1$2")+e;case 5443:return nt+e+ln+"flex-item-"+rt(e,/flex-|-self/,"")+e;case 4675:return nt+e+ln+"flex-line-pack"+rt(e,/align-content|flex-|-self/,"")+e;case 5548:return nt+e+ln+rt(e,"shrink","negative")+e;case 5292:return nt+e+ln+rt(e,"basis","preferred-size")+e;case 6060:return nt+"box-"+rt(e,"-grow","")+nt+e+ln+rt(e,"grow","positive")+e;case 4554:return nt+rt(e,/([^-])(transform)/g,"$1"+nt+"$2")+e;case 6187:return rt(rt(rt(e,/(zoom-|grab)/,nt+"$1"),/(image-set)/,nt+"$1"),e,"")+e;case 5495:case 3959:return rt(e,/(image-set\([^]*)/,nt+"$1$`$1");case 4968:return rt(rt(e,/(.+:)(flex-)?(.*)/,nt+"box-pack:$3"+ln+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+nt+e+e;case 4095:case 3583:case 4068:case 2532:return rt(e,/(.+)-inline(.+)/,nt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(_r(e)-1-t>6)switch(nn(e,t+1)){case 109:if(nn(e,t+4)!==45)break;case 102:return rt(e,/(.+:)(.+)-([^]+)/,"$1"+nt+"$2-$3$1"+Gl+(nn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ef(e,"stretch")?Hb(rt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(nn(e,t+1)!==115)break;case 6444:switch(nn(e,_r(e)-3-(~ef(e,"!important")&&10))){case 107:return rt(e,":",":"+nt)+e;case 101:return rt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+nt+(nn(e,14)===45?"inline-":"")+"box$3$1"+nt+"$2$3$1"+ln+"$2box$3")+e}break;case 5936:switch(nn(e,t+11)){case 114:return nt+e+ln+rt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return nt+e+ln+rt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return nt+e+ln+rt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return nt+e+ln+e+e}return e}var qP=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Kd:t.return=Hb(t.value,t.length);break;case Lb:return Mi([Ya(t,{value:rt(t.value,"@","@"+nt)})],o);case $d:if(t.length)return NP(t.props,function(i){switch(RP(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Mi([Ya(t,{props:[rt(i,/:(read-\w+)/,":"+Gl+"$1")]})],o);case"::placeholder":return Mi([Ya(t,{props:[rt(i,/:(plac\w+)/,":"+nt+"input-$1")]}),Ya(t,{props:[rt(i,/:(plac\w+)/,":"+Gl+"$1")]}),Ya(t,{props:[rt(i,/:(plac\w+)/,ln+"input-$1")]})],o)}return""})}},JP=[qP],QP=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(d){var p=d.getAttribute("data-emotion");p.indexOf(" ")!==-1&&(document.head.appendChild(d),d.setAttribute("data-s",""))})}var o=t.stylisPlugins||JP,i={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(d){for(var p=d.getAttribute("data-emotion").split(" "),h=1;h<p.length;h++)i[p[h]]=!0;l.push(d)});var s,u=[YP,UP];{var c,f=[VP,WP(function(d){c.insert(d)})],b=GP(u.concat(o,f)),y=function(p){return Mi(BP(p),b)};s=function(p,h,g,m){c=g,y(p?p+"{"+h.styles+"}":h.styles),m&&(v.inserted[h.name]=!0)}}var v={key:n,sheet:new IP({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:s};return v.sheet.hydrate(l),v},rf={exports:{}},ct={};/** @license React v16.13.1
|
|
943
943
|
* react-is.production.min.js
|
|
944
944
|
*
|
|
945
945
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
946
946
|
*
|
|
947
947
|
* This source code is licensed under the MIT license found in the
|
|
948
948
|
* LICENSE file in the root directory of this source tree.
|
|
949
|
-
*/var zb;function $P(){if(zb)return
|
|
949
|
+
*/var zb;function $P(){if(zb)return ct;zb=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,d=e?Symbol.for("react.block"):60121,p=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,g=e?Symbol.for("react.scope"):60119;function m(x){if(typeof x=="object"&&x!==null){var A=x.$$typeof;switch(A){case t:switch(x=x.type,x){case s:case u:case r:case i:case o:case f:return x;default:switch(x=x&&x.$$typeof,x){case l:case c:case v:case y:case a:return x;default:return A}}case n:return A}}}function E(x){return m(x)===u}return ct.AsyncMode=s,ct.ConcurrentMode=u,ct.ContextConsumer=l,ct.ContextProvider=a,ct.Element=t,ct.ForwardRef=c,ct.Fragment=r,ct.Lazy=v,ct.Memo=y,ct.Portal=n,ct.Profiler=i,ct.StrictMode=o,ct.Suspense=f,ct.isAsyncMode=function(x){return E(x)||m(x)===s},ct.isConcurrentMode=E,ct.isContextConsumer=function(x){return m(x)===l},ct.isContextProvider=function(x){return m(x)===a},ct.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===t},ct.isForwardRef=function(x){return m(x)===c},ct.isFragment=function(x){return m(x)===r},ct.isLazy=function(x){return m(x)===v},ct.isMemo=function(x){return m(x)===y},ct.isPortal=function(x){return m(x)===n},ct.isProfiler=function(x){return m(x)===i},ct.isStrictMode=function(x){return m(x)===o},ct.isSuspense=function(x){return m(x)===f},ct.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===r||x===u||x===i||x===o||x===f||x===b||typeof x=="object"&&x!==null&&(x.$$typeof===v||x.$$typeof===y||x.$$typeof===a||x.$$typeof===l||x.$$typeof===c||x.$$typeof===p||x.$$typeof===h||x.$$typeof===g||x.$$typeof===d)},ct.typeOf=m,ct}var dt={};/** @license React v16.13.1
|
|
950
950
|
* react-is.development.js
|
|
951
951
|
*
|
|
952
952
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
953
953
|
*
|
|
954
954
|
* This source code is licensed under the MIT license found in the
|
|
955
955
|
* LICENSE file in the root directory of this source tree.
|
|
956
|
-
*/var Xb;function KP(){return Xb||(Xb=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,p=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,m=e?Symbol.for("react.scope"):60119;function b(V){return typeof V=="string"||typeof V=="function"||V===r||V===u||V===i||V===o||V===d||V===v||typeof V=="object"&&V!==null&&(V.$$typeof===g||V.$$typeof===y||V.$$typeof===a||V.$$typeof===s||V.$$typeof===c||V.$$typeof===p||V.$$typeof===h||V.$$typeof===m||V.$$typeof===f)}function E(V){if(typeof V=="object"&&V!==null){var Ye=V.$$typeof;switch(Ye){case t:var Le=V.type;switch(Le){case l:case u:case r:case i:case o:case d:return Le;default:var Ue=Le&&Le.$$typeof;switch(Ue){case s:case c:case g:case y:case a:return Ue;default:return Ye}}case n:return Ye}}}var x=l,T=u,A=s,C=a,O=t,B=c,M=r,Q=g,G=y,W=n,q=i,ee=o,ue=d,se=!1;function ve(V){return se||(se=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),H(V)||E(V)===l}function H(V){return E(V)===u}function te(V){return E(V)===s}function re(V){return E(V)===a}function $(V){return typeof V=="object"&&V!==null&&V.$$typeof===t}function oe(V){return E(V)===c}function de(V){return E(V)===r}function ie(V){return E(V)===g}function ge(V){return E(V)===y}function Ee(V){return E(V)===n}function Ae(V){return E(V)===i}function me(V){return E(V)===o}function ze(V){return E(V)===d}ct.AsyncMode=x,ct.ConcurrentMode=T,ct.ContextConsumer=A,ct.ContextProvider=C,ct.Element=O,ct.ForwardRef=B,ct.Fragment=M,ct.Lazy=Q,ct.Memo=G,ct.Portal=W,ct.Profiler=q,ct.StrictMode=ee,ct.Suspense=ue,ct.isAsyncMode=ve,ct.isConcurrentMode=H,ct.isContextConsumer=te,ct.isContextProvider=re,ct.isElement=$,ct.isForwardRef=oe,ct.isFragment=de,ct.isLazy=ie,ct.isMemo=ge,ct.isPortal=Ee,ct.isProfiler=Ae,ct.isStrictMode=me,ct.isSuspense=ze,ct.isValidElementType=b,ct.typeOf=E}()),ct}process.env.NODE_ENV==="production"?rf.exports=$P():rf.exports=KP();var ek=rf.exports,Zb=ek,tk={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},nk={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Yb={};Yb[Zb.ForwardRef]=tk,Yb[Zb.Memo]=nk;var rk=!0;function ok(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var Ub=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||rk===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},ik=function(t,n,r){Ub(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function ak(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var sk={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},lk=!1,uk=/[A-Z]|^ms/g,ck=/_EMO_([^_]+?)_([^]*?)_EMO_/g,qb=function(t){return t.charCodeAt(1)===45},Jb=function(t){return t!=null&&typeof t!="boolean"},of=HP(function(e){return qb(e)?e:e.replace(uk,"-$&").toLowerCase()}),Qb=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(ck,function(r,o,i){return Rr={name:o,styles:i,next:Rr},o})}return sk[t]!==1&&!qb(t)&&typeof n=="number"&&n!==0?n+"px":n},dk="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Ja(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return Rr={name:o.name,styles:o.styles,next:Rr},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)Rr={name:a.name,styles:a.styles,next:Rr},a=a.next;var s=i.styles+";";return s}return fk(e,t,n)}case"function":{if(e!==void 0){var l=Rr,u=n(e);return Rr=l,Ja(e,t,u)}break}}var c=n;return c}function fk(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Ja(e,t,n[o])+";";else for(var i in n){var a=n[i];if(typeof a!="object"){var s=a;Jb(s)&&(r+=of(i)+":"+Qb(i,s)+";")}else{if(i==="NO_COMPONENT_SELECTOR"&&lk)throw new Error(dk);if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var l=0;l<a.length;l++)Jb(a[l])&&(r+=of(i)+":"+Qb(i,a[l])+";");else{var u=Ja(e,t,a);switch(i){case"animation":case"animationName":{r+=of(i)+":"+u+";";break}default:r+=i+"{"+u+"}"}}}}return r}var $b=/label:\s*([^\s;{]+)\s*(;|$)/g,Rr;function Kb(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";Rr=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,o+=Ja(n,t,i);else{var a=i;o+=a[0]}for(var s=1;s<e.length;s++)if(o+=Ja(n,t,e[s]),r){var l=i;o+=l[s]}$b.lastIndex=0;for(var u="",c;(c=$b.exec(o))!==null;)u+="-"+c[1];var d=ak(o)+u;return{name:d,styles:o,next:Rr}}var pk=function(t){return t()},hk=P.useInsertionEffect?P.useInsertionEffect:!1,gk=hk||pk,mk=!1,ev=P.createContext(typeof HTMLElement<"u"?QP({key:"css"}):null);ev.Provider;var bk=function(t){return S.forwardRef(function(n,r){var o=S.useContext(ev);return t(n,o,r)})},vk=P.createContext({}),af={}.hasOwnProperty,sf="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",yk=function(t,n){var r={};for(var o in n)af.call(n,o)&&(r[o]=n[o]);return r[sf]=t,r},Ek=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Ub(n,r,o),gk(function(){return ik(n,r,o)}),null},xk=bk(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[sf],i=[r],a="";typeof e.className=="string"?a=ok(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var s=Kb(i,void 0,P.useContext(vk));a+=t.key+"-"+s.name;var l={};for(var u in e)af.call(e,u)&&u!=="css"&&u!==sf&&!mk&&(l[u]=e[u]);return l.className=a,n&&(l.ref=n),P.createElement(P.Fragment,null,P.createElement(Ek,{cache:t,serialized:s,isStringTag:typeof o=="string"}),P.createElement(o,l))}),Ck=xk,Re=function(t,n){var r=arguments;if(n==null||!af.call(n,"css"))return P.createElement.apply(void 0,r);var o=r.length,i=new Array(o);i[0]=Ck,i[1]=yk(t,n);for(var a=2;a<o;a++)i[a]=r[a];return P.createElement.apply(null,i)};function lf(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Kb(t)}var wk=function(){var t=lf.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}};function Ik(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const Sk=Math.min,Tk=Math.max,ql=Math.round,Jl=Math.floor,Ql=e=>({x:e,y:e});function Ak(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function $l(){return typeof window<"u"}function tv(e){return rv(e)?(e.nodeName||"").toLowerCase():"#document"}function Wr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function nv(e){var t;return(t=(rv(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function rv(e){return $l()?e instanceof Node||e instanceof Wr(e).Node:!1}function _k(e){return $l()?e instanceof Element||e instanceof Wr(e).Element:!1}function uf(e){return $l()?e instanceof HTMLElement||e instanceof Wr(e).HTMLElement:!1}function ov(e){return!$l()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Wr(e).ShadowRoot}function iv(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=cf(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Ok(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Rk(e){return["html","body","#document"].includes(tv(e))}function cf(e){return Wr(e).getComputedStyle(e)}function Nk(e){if(tv(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ov(e)&&e.host||nv(e);return ov(t)?t.host:t}function av(e){const t=Nk(e);return Rk(t)?e.ownerDocument?e.ownerDocument.body:e.body:uf(t)&&iv(t)?t:av(t)}function Kl(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=av(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=Wr(o);if(i){const s=df(a);return t.concat(a,a.visualViewport||[],iv(o)?o:[],s&&n?Kl(s):[])}return t.concat(o,Kl(o,[],n))}function df(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Dk(e){const t=cf(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=uf(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=ql(n)!==i||ql(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function ff(e){return _k(e)?e:e.contextElement}function sv(e){const t=ff(e);if(!uf(t))return Ql(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Dk(t);let a=(i?ql(n.width):n.width)/r,s=(i?ql(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const Pk=Ql(0);function kk(e){const t=Wr(e);return!Ok()||!t.visualViewport?Pk:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Lk(e,t,n){return!1}function lv(e,t,n,r){t===void 0&&(t=!1);const o=e.getBoundingClientRect(),i=ff(e);let a=Ql(1);t&&(a=sv(e));const s=Lk()?kk(i):Ql(0);let l=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,c=o.width/a.x,d=o.height/a.y;if(i){const v=Wr(i),y=r;let g=v,f=df(g);for(;f&&r&&y!==g;){const p=sv(f),h=f.getBoundingClientRect(),m=cf(f),b=h.left+(f.clientLeft+parseFloat(m.paddingLeft))*p.x,E=h.top+(f.clientTop+parseFloat(m.paddingTop))*p.y;l*=p.x,u*=p.y,c*=p.x,d*=p.y,l+=b,u+=E,g=Wr(f),f=df(g)}}return Ak({width:c,height:d,x:l,y:u})}function Fk(e,t){let n=null,r;const o=nv(e);function i(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const{left:u,top:c,width:d,height:v}=e.getBoundingClientRect();if(s||t(),!d||!v)return;const y=Jl(c),g=Jl(o.clientWidth-(u+d)),f=Jl(o.clientHeight-(c+v)),p=Jl(u),m={rootMargin:-y+"px "+-g+"px "+-f+"px "+-p+"px",threshold:Tk(0,Sk(1,l))||1};let b=!0;function E(x){const T=x[0].intersectionRatio;if(T!==l){if(!b)return a();T?a(!1,T):r=setTimeout(()=>{a(!1,1e-7)},1e3)}b=!1}try{n=new IntersectionObserver(E,{...m,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,m)}n.observe(e)}return a(!0),i}function Mk(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=ff(e),c=o||i?[...u?Kl(u):[],...Kl(t)]:[];c.forEach(h=>{o&&h.addEventListener("scroll",n,{passive:!0}),i&&h.addEventListener("resize",n)});const d=u&&s?Fk(u,n):null;let v=-1,y=null;a&&(y=new ResizeObserver(h=>{let[m]=h;m&&m.target===u&&y&&(y.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var b;(b=y)==null||b.observe(t)})),n()}),u&&!l&&y.observe(u),y.observe(t));let g,f=l?lv(e):null;l&&p();function p(){const h=lv(e);f&&(h.x!==f.x||h.y!==f.y||h.width!==f.width||h.height!==f.height)&&n(),f=h,g=requestAnimationFrame(p)}return n(),()=>{var h;c.forEach(m=>{o&&m.removeEventListener("scroll",n),i&&m.removeEventListener("resize",n)}),d==null||d(),(h=y)==null||h.disconnect(),y=null,l&&cancelAnimationFrame(g)}}var pf=S.useLayoutEffect,Bk=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],eu=function(){};function jk(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function Vk(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(jk(e,a)));return i.filter(function(s){return s}).map(function(s){return String(s).trim()}).join(" ")}var uv=function(t){return Jk(t)?t.filter(Boolean):Jo(t)==="object"&&t!==null?[t]:[]},cv=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=Ar(t,Bk);return _e({},n)},Rt=function(t,n,r){var o=t.cx,i=t.getStyles,a=t.getClassNames,s=t.className;return{css:i(n,t),className:o(r??{},a(n,t),s)}};function Gk(e,t,n){if(n){var r=n(e,t);if(typeof r=="string")return r}return e}function tu(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Wk(e){return tu(e)?window.innerHeight:e.clientHeight}function dv(e){return tu(e)?window.pageYOffset:e.scrollTop}function nu(e,t){if(tu(e)){window.scrollTo(0,t);return}e.scrollTop=t}function Hk(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}function zk(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function ru(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:eu,o=dv(e),i=t-o,a=10,s=0;function l(){s+=a;var u=zk(s,o,i,n);nu(e,u),s<n?window.requestAnimationFrame(l):r(e)}l()}function fv(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?nu(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&nu(e,Math.max(t.offsetTop-o,0))}function Xk(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function pv(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function Zk(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var hv=!1,Yk={get passive(){return hv=!0}},ou=typeof window<"u"?window:{};ou.addEventListener&&ou.removeEventListener&&(ou.addEventListener("p",eu,Yk),ou.removeEventListener("p",eu,!1));var Uk=hv;function qk(e){return e!=null}function Jk(e){return Array.isArray(e)}function iu(e,t,n){return e?t:n}function iM(e){return e}function aM(e){return e}var Qk=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=Object.entries(t).filter(function(a){var s=$t(a,1),l=s[0];return!r.includes(l)});return i.reduce(function(a,s){var l=$t(s,2),u=l[0],c=l[1];return a[u]=c,a},{})},$k=["children","innerProps"],Kk=["children","innerProps"];function eL(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,l=Hk(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c=l.getBoundingClientRect(),d=c.height,v=n.getBoundingClientRect(),y=v.bottom,g=v.height,f=v.top,p=n.offsetParent.getBoundingClientRect(),h=p.top,m=a?window.innerHeight:Wk(l),b=dv(l),E=parseInt(getComputedStyle(n).marginBottom,10),x=parseInt(getComputedStyle(n).marginTop,10),T=h-x,A=m-f,C=T+b,O=d-b-f,B=y-m+b+E,M=b+f-x,Q=160;switch(o){case"auto":case"bottom":if(A>=g)return{placement:"bottom",maxHeight:t};if(O>=g&&!a)return i&&ru(l,B,Q),{placement:"bottom",maxHeight:t};if(!a&&O>=r||a&&A>=r){i&&ru(l,B,Q);var G=a?A-E:O-E;return{placement:"bottom",maxHeight:G}}if(o==="auto"||a){var W=t,q=a?T:C;return q>=r&&(W=Math.min(q-E-s,t)),{placement:"top",maxHeight:W}}if(o==="bottom")return i&&nu(l,B),{placement:"bottom",maxHeight:t};break;case"top":if(T>=g)return{placement:"top",maxHeight:t};if(C>=g&&!a)return i&&ru(l,M,Q),{placement:"top",maxHeight:t};if(!a&&C>=r||a&&T>=r){var ee=t;return(!a&&C>=r||a&&T>=r)&&(ee=a?T-x:C-x),i&&ru(l,M,Q),{placement:"top",maxHeight:ee}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}function tL(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var gv=function(t){return t==="auto"?"bottom":t},nL=function(t,n){var r,o=t.placement,i=t.theme,a=i.borderRadius,s=i.spacing,l=i.colors;return _e((r={label:"menu"},ki(r,tL(o),"100%"),ki(r,"position","absolute"),ki(r,"width","100%"),ki(r,"zIndex",1),r),n?{}:{backgroundColor:l.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})},mv=S.createContext(null),rL=function(t){var n=t.children,r=t.minMenuHeight,o=t.maxMenuHeight,i=t.menuPlacement,a=t.menuPosition,s=t.menuShouldScrollIntoView,l=t.theme,u=S.useContext(mv)||{},c=u.setPortalPlacement,d=S.useRef(null),v=S.useState(o),y=$t(v,2),g=y[0],f=y[1],p=S.useState(null),h=$t(p,2),m=h[0],b=h[1],E=l.spacing.controlHeight;return pf(function(){var x=d.current;if(x){var T=a==="fixed",A=s&&!T,C=eL({maxHeight:o,menuEl:x,minHeight:r,placement:i,shouldScroll:A,isFixedPosition:T,controlHeight:E});f(C.maxHeight),b(C.placement),c==null||c(C.placement)}},[o,i,a,s,r,c,E]),n({ref:d,placerProps:_e(_e({},t),{},{placement:m||gv(i),maxHeight:g})})},oL=function(t){var n=t.children,r=t.innerRef,o=t.innerProps;return Re("div",Pe({},Rt(t,"menu",{menu:!0}),{ref:r},o),n)},iL=oL,aL=function(t,n){var r=t.maxHeight,o=t.theme.spacing.baseUnit;return _e({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:o,paddingTop:o})},sL=function(t){var n=t.children,r=t.innerProps,o=t.innerRef,i=t.isMulti;return Re("div",Pe({},Rt(t,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:o},r),n)},bv=function(t,n){var r=t.theme,o=r.spacing.baseUnit,i=r.colors;return _e({textAlign:"center"},n?{}:{color:i.neutral40,padding:"".concat(o*2,"px ").concat(o*3,"px")})},lL=bv,uL=bv,cL=function(t){var n=t.children,r=n===void 0?"No options":n,o=t.innerProps,i=Ar(t,$k);return Re("div",Pe({},Rt(_e(_e({},i),{},{children:r,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),r)},dL=function(t){var n=t.children,r=n===void 0?"Loading...":n,o=t.innerProps,i=Ar(t,Kk);return Re("div",Pe({},Rt(_e(_e({},i),{},{children:r,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),r)},fL=function(t){var n=t.rect,r=t.offset,o=t.position;return{left:n.left,position:o,top:r,width:n.width,zIndex:1}},pL=function(t){var n=t.appendTo,r=t.children,o=t.controlElement,i=t.innerProps,a=t.menuPlacement,s=t.menuPosition,l=S.useRef(null),u=S.useRef(null),c=S.useState(gv(a)),d=$t(c,2),v=d[0],y=d[1],g=S.useMemo(function(){return{setPortalPlacement:y}},[]),f=S.useState(null),p=$t(f,2),h=p[0],m=p[1],b=S.useCallback(function(){if(o){var A=Xk(o),C=s==="fixed"?0:window.pageYOffset,O=A[v]+C;(O!==(h==null?void 0:h.offset)||A.left!==(h==null?void 0:h.rect.left)||A.width!==(h==null?void 0:h.rect.width))&&m({offset:O,rect:A})}},[o,s,v,h==null?void 0:h.offset,h==null?void 0:h.rect.left,h==null?void 0:h.rect.width]);pf(function(){b()},[b]);var E=S.useCallback(function(){typeof u.current=="function"&&(u.current(),u.current=null),o&&l.current&&(u.current=Mk(o,l.current,b,{elementResize:"ResizeObserver"in window}))},[o,b]);pf(function(){E()},[E]);var x=S.useCallback(function(A){l.current=A,E()},[E]);if(!n&&s!=="fixed"||!h)return null;var T=Re("div",Pe({ref:x},Rt(_e(_e({},t),{},{offset:h.offset,position:s,rect:h.rect}),"menuPortal",{"menu-portal":!0}),i),r);return Re(mv.Provider,{value:g},n?Qe.createPortal(T,n):T)},hL=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},gL=function(t){var n=t.children,r=t.innerProps,o=t.isDisabled,i=t.isRtl;return Re("div",Pe({},Rt(t,"container",{"--is-disabled":o,"--is-rtl":i}),r),n)},mL=function(t,n){var r=t.theme.spacing,o=t.isMulti,i=t.hasValue,a=t.selectProps.controlShouldRenderValue;return _e({alignItems:"center",display:o&&i&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},bL=function(t){var n=t.children,r=t.innerProps,o=t.isMulti,i=t.hasValue;return Re("div",Pe({},Rt(t,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i}),r),n)},vL=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},yL=function(t){var n=t.children,r=t.innerProps;return Re("div",Pe({},Rt(t,"indicatorsContainer",{indicators:!0}),r),n)},vv,EL=["size"],xL=["innerProps","isRtl","size"];function CL(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var wL=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdXJyZW50Q29sb3InLFxuICAgICAgbGluZUhlaWdodDogMSxcbiAgICAgIHN0cm9rZTogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBzdHJva2VXaWR0aDogMCxcbiAgICB9fVxuICAgIHsuLi5wcm9wc31cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIENyb3NzSWNvblByb3BzID0gSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZT86IG51bWJlciB9O1xuZXhwb3J0IGNvbnN0IENyb3NzSWNvbiA9IChwcm9wczogQ3Jvc3NJY29uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCB0eXBlIERvd25DaGV2cm9uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgRG93bkNoZXZyb24gPSAocHJvcHM6IERvd25DaGV2cm9uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTQuNTE2IDcuNTQ4YzAuNDM2LTAuNDQ2IDEuMDQzLTAuNDgxIDEuNTc2IDBsMy45MDggMy43NDcgMy45MDgtMy43NDdjMC41MzMtMC40ODEgMS4xNDEtMC40NDYgMS41NzQgMCAwLjQzNiAwLjQ0NSAwLjQwOCAxLjE5NyAwIDEuNjE1LTAuNDA2IDAuNDE4LTQuNjk1IDQuNTAyLTQuNjk1IDQuNTAyLTAuMjE3IDAuMjIzLTAuNTAyIDAuMzM1LTAuNzg3IDAuMzM1cy0wLjU3LTAuMTEyLTAuNzg5LTAuMzM1YzAgMC00LjI4Ny00LjA4NC00LjY5NS00LjUwMnMtMC40MzYtMS4xNyAwLTEuNjE1elwiIC8+XG4gIDwvU3ZnPlxuKTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEJ1dHRvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xufVxuXG5jb25zdCBiYXNlQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTpcbiAgICB8IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbiAgICB8IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JDb250YWluZXInLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICAgICc6aG92ZXInOiB7XG4gICAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsODAgOiBjb2xvcnMubmV1dHJhbDQwLFxuICAgICAgICB9LFxuICAgICAgfSksXG59KTtcblxuZXhwb3J0IGNvbnN0IGRyb3Bkb3duSW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBEcm9wZG93bkluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2Ryb3Bkb3duSW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdkcm9wZG93bi1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPERvd25DaGV2cm9uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGludGVyZmFjZSBDbGVhckluZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW4/OiBSZWFjdE5vZGU7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGNvbnN0IGNsZWFySW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBDbGVhckluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2NsZWFySW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdjbGVhci1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPENyb3NzSWNvbiAvPn1cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gU2VwYXJhdG9yXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IGludGVyZmFjZSBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaW5uZXJQcm9wcz86IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3BhbiddO1xufVxuXG5leHBvcnQgY29uc3QgaW5kaWNhdG9yU2VwYXJhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNEaXNhYmxlZCxcbiAgICB0aGVtZToge1xuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgICAgY29sb3JzLFxuICAgIH0sXG4gIH06IEluZGljYXRvclNlcGFyYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+LFxuICB1bnN0eWxlZDogYm9vbGVhblxuKTogQ1NTT2JqZWN0V2l0aExhYmVsID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yU2VwYXJhdG9yJyxcbiAgYWxpZ25TZWxmOiAnc3RyZXRjaCcsXG4gIHdpZHRoOiAxLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGJhY2tncm91bmRDb2xvcjogaXNEaXNhYmxlZCA/IGNvbG9ycy5uZXV0cmFsMTAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBtYXJnaW5Cb3R0b206IGJhc2VVbml0ICogMixcbiAgICAgICAgbWFyZ2luVG9wOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxzcGFuXG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnaW5kaWNhdG9yU2VwYXJhdG9yJywge1xuICAgICAgICAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHNpemUsXG4gICAgdGhlbWU6IHtcbiAgICAgIGNvbG9ycyxcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICB9LFxuICB9OiBMb2FkaW5nSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdsb2FkaW5nSW5kaWNhdG9yJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDYwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgICAgICAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICAgICAgfSksXG59KTtcblxuaW50ZXJmYWNlIExvYWRpbmdEb3RQcm9wcyB7XG4gIGRlbGF5OiBudW1iZXI7XG4gIG9mZnNldDogYm9vbGVhbjtcbn1cbmNvbnN0IExvYWRpbmdEb3QgPSAoeyBkZWxheSwgb2Zmc2V0IH06IExvYWRpbmdEb3RQcm9wcykgPT4gKFxuICA8c3BhblxuICAgIGNzcz17e1xuICAgICAgYW5pbWF0aW9uOiBgJHtsb2FkaW5nRG90QW5pbWF0aW9uc30gMXMgZWFzZS1pbi1vdXQgJHtkZWxheX1tcyBpbmZpbml0ZTtgLFxuICAgICAgYmFja2dyb3VuZENvbG9yOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGJvcmRlclJhZGl1czogJzFlbScsXG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIG1hcmdpbkxlZnQ6IG9mZnNldCA/ICcxZW0nIDogdW5kZWZpbmVkLFxuICAgICAgaGVpZ2h0OiAnMWVtJyxcbiAgICAgIHZlcnRpY2FsQWxpZ246ICd0b3AnLFxuICAgICAgd2lkdGg6ICcxZW0nLFxuICAgIH19XG4gIC8+XG4pO1xuXG5leHBvcnQgaW50ZXJmYWNlIExvYWRpbmdJbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */",toString:CL},yv=function(t){var n=t.size,r=Ar(t,EL);return Re("svg",Pe({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:wL},r))},hf=function(t){return Re(yv,Pe({size:20},t),Re("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"}))},Ev=function(t){return Re(yv,Pe({size:20},t),Re("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"}))},xv=function(t,n){var r=t.isFocused,o=t.theme,i=o.spacing.baseUnit,a=o.colors;return _e({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?a.neutral60:a.neutral20,padding:i*2,":hover":{color:r?a.neutral80:a.neutral40}})},IL=xv,SL=function(t){var n=t.children,r=t.innerProps;return Re("div",Pe({},Rt(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||Re(Ev,null))},TL=xv,AL=function(t){var n=t.children,r=t.innerProps;return Re("div",Pe({},Rt(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||Re(hf,null))},_L=function(t,n){var r=t.isDisabled,o=t.theme,i=o.spacing.baseUnit,a=o.colors;return _e({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?a.neutral10:a.neutral20,marginBottom:i*2,marginTop:i*2})},OL=function(t){var n=t.innerProps;return Re("span",Pe({},n,Rt(t,"indicatorSeparator",{"indicator-separator":!0})))},RL=wk(vv||(vv=Ik([`
|
|
956
|
+
*/var Xb;function KP(){return Xb||(Xb=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,d=e?Symbol.for("react.block"):60121,p=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,g=e?Symbol.for("react.scope"):60119;function m(V){return typeof V=="string"||typeof V=="function"||V===r||V===u||V===i||V===o||V===f||V===b||typeof V=="object"&&V!==null&&(V.$$typeof===v||V.$$typeof===y||V.$$typeof===a||V.$$typeof===l||V.$$typeof===c||V.$$typeof===p||V.$$typeof===h||V.$$typeof===g||V.$$typeof===d)}function E(V){if(typeof V=="object"&&V!==null){var Ye=V.$$typeof;switch(Ye){case t:var Le=V.type;switch(Le){case s:case u:case r:case i:case o:case f:return Le;default:var Ue=Le&&Le.$$typeof;switch(Ue){case l:case c:case v:case y:case a:return Ue;default:return Ye}}case n:return Ye}}}var x=s,A=u,T=l,C=a,O=t,M=c,B=r,U=v,G=y,X=n,q=i,$=o,ue=f,se=!1;function ve(V){return se||(se=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),W(V)||E(V)===s}function W(V){return E(V)===u}function te(V){return E(V)===l}function re(V){return E(V)===a}function K(V){return typeof V=="object"&&V!==null&&V.$$typeof===t}function oe(V){return E(V)===c}function de(V){return E(V)===r}function ie(V){return E(V)===v}function ge(V){return E(V)===y}function Ee(V){return E(V)===n}function Ae(V){return E(V)===i}function me(V){return E(V)===o}function ze(V){return E(V)===f}dt.AsyncMode=x,dt.ConcurrentMode=A,dt.ContextConsumer=T,dt.ContextProvider=C,dt.Element=O,dt.ForwardRef=M,dt.Fragment=B,dt.Lazy=U,dt.Memo=G,dt.Portal=X,dt.Profiler=q,dt.StrictMode=$,dt.Suspense=ue,dt.isAsyncMode=ve,dt.isConcurrentMode=W,dt.isContextConsumer=te,dt.isContextProvider=re,dt.isElement=K,dt.isForwardRef=oe,dt.isFragment=de,dt.isLazy=ie,dt.isMemo=ge,dt.isPortal=Ee,dt.isProfiler=Ae,dt.isStrictMode=me,dt.isSuspense=ze,dt.isValidElementType=m,dt.typeOf=E}()),dt}process.env.NODE_ENV==="production"?rf.exports=$P():rf.exports=KP();var ek=rf.exports,Zb=ek,tk={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},nk={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Yb={};Yb[Zb.ForwardRef]=tk,Yb[Zb.Memo]=nk;var rk=!0;function ok(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var Ub=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||rk===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},ik=function(t,n,r){Ub(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function ak(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var sk={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},lk=!1,uk=/[A-Z]|^ms/g,ck=/_EMO_([^_]+?)_([^]*?)_EMO_/g,qb=function(t){return t.charCodeAt(1)===45},Jb=function(t){return t!=null&&typeof t!="boolean"},of=HP(function(e){return qb(e)?e:e.replace(uk,"-$&").toLowerCase()}),Qb=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(ck,function(r,o,i){return Rr={name:o,styles:i,next:Rr},o})}return sk[t]!==1&&!qb(t)&&typeof n=="number"&&n!==0?n+"px":n},dk="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Ja(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return Rr={name:o.name,styles:o.styles,next:Rr},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)Rr={name:a.name,styles:a.styles,next:Rr},a=a.next;var l=i.styles+";";return l}return fk(e,t,n)}case"function":{if(e!==void 0){var s=Rr,u=n(e);return Rr=s,Ja(e,t,u)}break}}var c=n;return c}function fk(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Ja(e,t,n[o])+";";else for(var i in n){var a=n[i];if(typeof a!="object"){var l=a;Jb(l)&&(r+=of(i)+":"+Qb(i,l)+";")}else{if(i==="NO_COMPONENT_SELECTOR"&&lk)throw new Error(dk);if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var s=0;s<a.length;s++)Jb(a[s])&&(r+=of(i)+":"+Qb(i,a[s])+";");else{var u=Ja(e,t,a);switch(i){case"animation":case"animationName":{r+=of(i)+":"+u+";";break}default:r+=i+"{"+u+"}"}}}}return r}var $b=/label:\s*([^\s;{]+)\s*(;|$)/g,Rr;function Kb(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";Rr=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,o+=Ja(n,t,i);else{var a=i;o+=a[0]}for(var l=1;l<e.length;l++)if(o+=Ja(n,t,e[l]),r){var s=i;o+=s[l]}$b.lastIndex=0;for(var u="",c;(c=$b.exec(o))!==null;)u+="-"+c[1];var f=ak(o)+u;return{name:f,styles:o,next:Rr}}var pk=function(t){return t()},hk=P.useInsertionEffect?P.useInsertionEffect:!1,gk=hk||pk,mk=!1,ev=P.createContext(typeof HTMLElement<"u"?QP({key:"css"}):null);ev.Provider;var bk=function(t){return S.forwardRef(function(n,r){var o=S.useContext(ev);return t(n,o,r)})},vk=P.createContext({}),af={}.hasOwnProperty,sf="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",yk=function(t,n){var r={};for(var o in n)af.call(n,o)&&(r[o]=n[o]);return r[sf]=t,r},Ek=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Ub(n,r,o),gk(function(){return ik(n,r,o)}),null},xk=bk(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[sf],i=[r],a="";typeof e.className=="string"?a=ok(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var l=Kb(i,void 0,P.useContext(vk));a+=t.key+"-"+l.name;var s={};for(var u in e)af.call(e,u)&&u!=="css"&&u!==sf&&!mk&&(s[u]=e[u]);return s.className=a,n&&(s.ref=n),P.createElement(P.Fragment,null,P.createElement(Ek,{cache:t,serialized:l,isStringTag:typeof o=="string"}),P.createElement(o,s))}),Ck=xk,Re=function(t,n){var r=arguments;if(n==null||!af.call(n,"css"))return P.createElement.apply(void 0,r);var o=r.length,i=new Array(o);i[0]=Ck,i[1]=yk(t,n);for(var a=2;a<o;a++)i[a]=r[a];return P.createElement.apply(null,i)};function lf(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Kb(t)}var wk=function(){var t=lf.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}};function Ik(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const Sk=Math.min,Tk=Math.max,ql=Math.round,Jl=Math.floor,Ql=e=>({x:e,y:e});function Ak(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function $l(){return typeof window<"u"}function tv(e){return rv(e)?(e.nodeName||"").toLowerCase():"#document"}function Wr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function nv(e){var t;return(t=(rv(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function rv(e){return $l()?e instanceof Node||e instanceof Wr(e).Node:!1}function _k(e){return $l()?e instanceof Element||e instanceof Wr(e).Element:!1}function uf(e){return $l()?e instanceof HTMLElement||e instanceof Wr(e).HTMLElement:!1}function ov(e){return!$l()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Wr(e).ShadowRoot}function iv(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=cf(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Ok(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Rk(e){return["html","body","#document"].includes(tv(e))}function cf(e){return Wr(e).getComputedStyle(e)}function Nk(e){if(tv(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ov(e)&&e.host||nv(e);return ov(t)?t.host:t}function av(e){const t=Nk(e);return Rk(t)?e.ownerDocument?e.ownerDocument.body:e.body:uf(t)&&iv(t)?t:av(t)}function Kl(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=av(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=Wr(o);if(i){const l=df(a);return t.concat(a,a.visualViewport||[],iv(o)?o:[],l&&n?Kl(l):[])}return t.concat(o,Kl(o,[],n))}function df(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Dk(e){const t=cf(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=uf(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=ql(n)!==i||ql(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function ff(e){return _k(e)?e:e.contextElement}function sv(e){const t=ff(e);if(!uf(t))return Ql(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Dk(t);let a=(i?ql(n.width):n.width)/r,l=(i?ql(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const Pk=Ql(0);function kk(e){const t=Wr(e);return!Ok()||!t.visualViewport?Pk:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Lk(e,t,n){return!1}function lv(e,t,n,r){t===void 0&&(t=!1);const o=e.getBoundingClientRect(),i=ff(e);let a=Ql(1);t&&(a=sv(e));const l=Lk()?kk(i):Ql(0);let s=(o.left+l.x)/a.x,u=(o.top+l.y)/a.y,c=o.width/a.x,f=o.height/a.y;if(i){const b=Wr(i),y=r;let v=b,d=df(v);for(;d&&r&&y!==v;){const p=sv(d),h=d.getBoundingClientRect(),g=cf(d),m=h.left+(d.clientLeft+parseFloat(g.paddingLeft))*p.x,E=h.top+(d.clientTop+parseFloat(g.paddingTop))*p.y;s*=p.x,u*=p.y,c*=p.x,f*=p.y,s+=m,u+=E,v=Wr(d),d=df(v)}}return Ak({width:c,height:f,x:s,y:u})}function Fk(e,t){let n=null,r;const o=nv(e);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function a(l,s){l===void 0&&(l=!1),s===void 0&&(s=1),i();const{left:u,top:c,width:f,height:b}=e.getBoundingClientRect();if(l||t(),!f||!b)return;const y=Jl(c),v=Jl(o.clientWidth-(u+f)),d=Jl(o.clientHeight-(c+b)),p=Jl(u),g={rootMargin:-y+"px "+-v+"px "+-d+"px "+-p+"px",threshold:Tk(0,Sk(1,s))||1};let m=!0;function E(x){const A=x[0].intersectionRatio;if(A!==s){if(!m)return a();A?a(!1,A):r=setTimeout(()=>{a(!1,1e-7)},1e3)}m=!1}try{n=new IntersectionObserver(E,{...g,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,g)}n.observe(e)}return a(!0),i}function Mk(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:s=!1}=r,u=ff(e),c=o||i?[...u?Kl(u):[],...Kl(t)]:[];c.forEach(h=>{o&&h.addEventListener("scroll",n,{passive:!0}),i&&h.addEventListener("resize",n)});const f=u&&l?Fk(u,n):null;let b=-1,y=null;a&&(y=new ResizeObserver(h=>{let[g]=h;g&&g.target===u&&y&&(y.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var m;(m=y)==null||m.observe(t)})),n()}),u&&!s&&y.observe(u),y.observe(t));let v,d=s?lv(e):null;s&&p();function p(){const h=lv(e);d&&(h.x!==d.x||h.y!==d.y||h.width!==d.width||h.height!==d.height)&&n(),d=h,v=requestAnimationFrame(p)}return n(),()=>{var h;c.forEach(g=>{o&&g.removeEventListener("scroll",n),i&&g.removeEventListener("resize",n)}),f==null||f(),(h=y)==null||h.disconnect(),y=null,s&&cancelAnimationFrame(v)}}var pf=S.useLayoutEffect,Bk=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],eu=function(){};function jk(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function Vk(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(jk(e,a)));return i.filter(function(l){return l}).map(function(l){return String(l).trim()}).join(" ")}var uv=function(t){return Jk(t)?t.filter(Boolean):Jo(t)==="object"&&t!==null?[t]:[]},cv=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=Ar(t,Bk);return _e({},n)},Rt=function(t,n,r){var o=t.cx,i=t.getStyles,a=t.getClassNames,l=t.className;return{css:i(n,t),className:o(r??{},a(n,t),l)}};function Gk(e,t,n){if(n){var r=n(e,t);if(typeof r=="string")return r}return e}function tu(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Wk(e){return tu(e)?window.innerHeight:e.clientHeight}function dv(e){return tu(e)?window.pageYOffset:e.scrollTop}function nu(e,t){if(tu(e)){window.scrollTo(0,t);return}e.scrollTop=t}function Hk(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}function zk(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function ru(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:eu,o=dv(e),i=t-o,a=10,l=0;function s(){l+=a;var u=zk(l,o,i,n);nu(e,u),l<n?window.requestAnimationFrame(s):r(e)}s()}function fv(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?nu(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&nu(e,Math.max(t.offsetTop-o,0))}function Xk(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function pv(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function Zk(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var hv=!1,Yk={get passive(){return hv=!0}},ou=typeof window<"u"?window:{};ou.addEventListener&&ou.removeEventListener&&(ou.addEventListener("p",eu,Yk),ou.removeEventListener("p",eu,!1));var Uk=hv;function qk(e){return e!=null}function Jk(e){return Array.isArray(e)}function iu(e,t,n){return e?t:n}function iM(e){return e}function aM(e){return e}var Qk=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=Object.entries(t).filter(function(a){var l=$t(a,1),s=l[0];return!r.includes(s)});return i.reduce(function(a,l){var s=$t(l,2),u=s[0],c=s[1];return a[u]=c,a},{})},$k=["children","innerProps"],Kk=["children","innerProps"];function eL(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,l=e.controlHeight,s=Hk(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c=s.getBoundingClientRect(),f=c.height,b=n.getBoundingClientRect(),y=b.bottom,v=b.height,d=b.top,p=n.offsetParent.getBoundingClientRect(),h=p.top,g=a?window.innerHeight:Wk(s),m=dv(s),E=parseInt(getComputedStyle(n).marginBottom,10),x=parseInt(getComputedStyle(n).marginTop,10),A=h-x,T=g-d,C=A+m,O=f-m-d,M=y-g+m+E,B=m+d-x,U=160;switch(o){case"auto":case"bottom":if(T>=v)return{placement:"bottom",maxHeight:t};if(O>=v&&!a)return i&&ru(s,M,U),{placement:"bottom",maxHeight:t};if(!a&&O>=r||a&&T>=r){i&&ru(s,M,U);var G=a?T-E:O-E;return{placement:"bottom",maxHeight:G}}if(o==="auto"||a){var X=t,q=a?A:C;return q>=r&&(X=Math.min(q-E-l,t)),{placement:"top",maxHeight:X}}if(o==="bottom")return i&&nu(s,M),{placement:"bottom",maxHeight:t};break;case"top":if(A>=v)return{placement:"top",maxHeight:t};if(C>=v&&!a)return i&&ru(s,B,U),{placement:"top",maxHeight:t};if(!a&&C>=r||a&&A>=r){var $=t;return(!a&&C>=r||a&&A>=r)&&($=a?A-x:C-x),i&&ru(s,B,U),{placement:"top",maxHeight:$}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}function tL(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var gv=function(t){return t==="auto"?"bottom":t},nL=function(t,n){var r,o=t.placement,i=t.theme,a=i.borderRadius,l=i.spacing,s=i.colors;return _e((r={label:"menu"},ki(r,tL(o),"100%"),ki(r,"position","absolute"),ki(r,"width","100%"),ki(r,"zIndex",1),r),n?{}:{backgroundColor:s.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:l.menuGutter,marginTop:l.menuGutter})},mv=S.createContext(null),rL=function(t){var n=t.children,r=t.minMenuHeight,o=t.maxMenuHeight,i=t.menuPlacement,a=t.menuPosition,l=t.menuShouldScrollIntoView,s=t.theme,u=S.useContext(mv)||{},c=u.setPortalPlacement,f=S.useRef(null),b=S.useState(o),y=$t(b,2),v=y[0],d=y[1],p=S.useState(null),h=$t(p,2),g=h[0],m=h[1],E=s.spacing.controlHeight;return pf(function(){var x=f.current;if(x){var A=a==="fixed",T=l&&!A,C=eL({maxHeight:o,menuEl:x,minHeight:r,placement:i,shouldScroll:T,isFixedPosition:A,controlHeight:E});d(C.maxHeight),m(C.placement),c==null||c(C.placement)}},[o,i,a,l,r,c,E]),n({ref:f,placerProps:_e(_e({},t),{},{placement:g||gv(i),maxHeight:v})})},oL=function(t){var n=t.children,r=t.innerRef,o=t.innerProps;return Re("div",Pe({},Rt(t,"menu",{menu:!0}),{ref:r},o),n)},iL=oL,aL=function(t,n){var r=t.maxHeight,o=t.theme.spacing.baseUnit;return _e({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:o,paddingTop:o})},sL=function(t){var n=t.children,r=t.innerProps,o=t.innerRef,i=t.isMulti;return Re("div",Pe({},Rt(t,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:o},r),n)},bv=function(t,n){var r=t.theme,o=r.spacing.baseUnit,i=r.colors;return _e({textAlign:"center"},n?{}:{color:i.neutral40,padding:"".concat(o*2,"px ").concat(o*3,"px")})},lL=bv,uL=bv,cL=function(t){var n=t.children,r=n===void 0?"No options":n,o=t.innerProps,i=Ar(t,$k);return Re("div",Pe({},Rt(_e(_e({},i),{},{children:r,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),r)},dL=function(t){var n=t.children,r=n===void 0?"Loading...":n,o=t.innerProps,i=Ar(t,Kk);return Re("div",Pe({},Rt(_e(_e({},i),{},{children:r,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),r)},fL=function(t){var n=t.rect,r=t.offset,o=t.position;return{left:n.left,position:o,top:r,width:n.width,zIndex:1}},pL=function(t){var n=t.appendTo,r=t.children,o=t.controlElement,i=t.innerProps,a=t.menuPlacement,l=t.menuPosition,s=S.useRef(null),u=S.useRef(null),c=S.useState(gv(a)),f=$t(c,2),b=f[0],y=f[1],v=S.useMemo(function(){return{setPortalPlacement:y}},[]),d=S.useState(null),p=$t(d,2),h=p[0],g=p[1],m=S.useCallback(function(){if(o){var T=Xk(o),C=l==="fixed"?0:window.pageYOffset,O=T[b]+C;(O!==(h==null?void 0:h.offset)||T.left!==(h==null?void 0:h.rect.left)||T.width!==(h==null?void 0:h.rect.width))&&g({offset:O,rect:T})}},[o,l,b,h==null?void 0:h.offset,h==null?void 0:h.rect.left,h==null?void 0:h.rect.width]);pf(function(){m()},[m]);var E=S.useCallback(function(){typeof u.current=="function"&&(u.current(),u.current=null),o&&s.current&&(u.current=Mk(o,s.current,m,{elementResize:"ResizeObserver"in window}))},[o,m]);pf(function(){E()},[E]);var x=S.useCallback(function(T){s.current=T,E()},[E]);if(!n&&l!=="fixed"||!h)return null;var A=Re("div",Pe({ref:x},Rt(_e(_e({},t),{},{offset:h.offset,position:l,rect:h.rect}),"menuPortal",{"menu-portal":!0}),i),r);return Re(mv.Provider,{value:v},n?Qe.createPortal(A,n):A)},hL=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},gL=function(t){var n=t.children,r=t.innerProps,o=t.isDisabled,i=t.isRtl;return Re("div",Pe({},Rt(t,"container",{"--is-disabled":o,"--is-rtl":i}),r),n)},mL=function(t,n){var r=t.theme.spacing,o=t.isMulti,i=t.hasValue,a=t.selectProps.controlShouldRenderValue;return _e({alignItems:"center",display:o&&i&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},bL=function(t){var n=t.children,r=t.innerProps,o=t.isMulti,i=t.hasValue;return Re("div",Pe({},Rt(t,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i}),r),n)},vL=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},yL=function(t){var n=t.children,r=t.innerProps;return Re("div",Pe({},Rt(t,"indicatorsContainer",{indicators:!0}),r),n)},vv,EL=["size"],xL=["innerProps","isRtl","size"];function CL(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var wL=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdXJyZW50Q29sb3InLFxuICAgICAgbGluZUhlaWdodDogMSxcbiAgICAgIHN0cm9rZTogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBzdHJva2VXaWR0aDogMCxcbiAgICB9fVxuICAgIHsuLi5wcm9wc31cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIENyb3NzSWNvblByb3BzID0gSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZT86IG51bWJlciB9O1xuZXhwb3J0IGNvbnN0IENyb3NzSWNvbiA9IChwcm9wczogQ3Jvc3NJY29uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCB0eXBlIERvd25DaGV2cm9uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgRG93bkNoZXZyb24gPSAocHJvcHM6IERvd25DaGV2cm9uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTQuNTE2IDcuNTQ4YzAuNDM2LTAuNDQ2IDEuMDQzLTAuNDgxIDEuNTc2IDBsMy45MDggMy43NDcgMy45MDgtMy43NDdjMC41MzMtMC40ODEgMS4xNDEtMC40NDYgMS41NzQgMCAwLjQzNiAwLjQ0NSAwLjQwOCAxLjE5NyAwIDEuNjE1LTAuNDA2IDAuNDE4LTQuNjk1IDQuNTAyLTQuNjk1IDQuNTAyLTAuMjE3IDAuMjIzLTAuNTAyIDAuMzM1LTAuNzg3IDAuMzM1cy0wLjU3LTAuMTEyLTAuNzg5LTAuMzM1YzAgMC00LjI4Ny00LjA4NC00LjY5NS00LjUwMnMtMC40MzYtMS4xNyAwLTEuNjE1elwiIC8+XG4gIDwvU3ZnPlxuKTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEJ1dHRvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xufVxuXG5jb25zdCBiYXNlQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTpcbiAgICB8IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbiAgICB8IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JDb250YWluZXInLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICAgICc6aG92ZXInOiB7XG4gICAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsODAgOiBjb2xvcnMubmV1dHJhbDQwLFxuICAgICAgICB9LFxuICAgICAgfSksXG59KTtcblxuZXhwb3J0IGNvbnN0IGRyb3Bkb3duSW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBEcm9wZG93bkluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2Ryb3Bkb3duSW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdkcm9wZG93bi1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPERvd25DaGV2cm9uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGludGVyZmFjZSBDbGVhckluZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW4/OiBSZWFjdE5vZGU7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGNvbnN0IGNsZWFySW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBDbGVhckluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2NsZWFySW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdjbGVhci1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPENyb3NzSWNvbiAvPn1cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gU2VwYXJhdG9yXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IGludGVyZmFjZSBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaW5uZXJQcm9wcz86IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3BhbiddO1xufVxuXG5leHBvcnQgY29uc3QgaW5kaWNhdG9yU2VwYXJhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNEaXNhYmxlZCxcbiAgICB0aGVtZToge1xuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgICAgY29sb3JzLFxuICAgIH0sXG4gIH06IEluZGljYXRvclNlcGFyYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+LFxuICB1bnN0eWxlZDogYm9vbGVhblxuKTogQ1NTT2JqZWN0V2l0aExhYmVsID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yU2VwYXJhdG9yJyxcbiAgYWxpZ25TZWxmOiAnc3RyZXRjaCcsXG4gIHdpZHRoOiAxLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGJhY2tncm91bmRDb2xvcjogaXNEaXNhYmxlZCA/IGNvbG9ycy5uZXV0cmFsMTAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBtYXJnaW5Cb3R0b206IGJhc2VVbml0ICogMixcbiAgICAgICAgbWFyZ2luVG9wOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxzcGFuXG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnaW5kaWNhdG9yU2VwYXJhdG9yJywge1xuICAgICAgICAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHNpemUsXG4gICAgdGhlbWU6IHtcbiAgICAgIGNvbG9ycyxcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICB9LFxuICB9OiBMb2FkaW5nSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdsb2FkaW5nSW5kaWNhdG9yJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDYwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgICAgICAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICAgICAgfSksXG59KTtcblxuaW50ZXJmYWNlIExvYWRpbmdEb3RQcm9wcyB7XG4gIGRlbGF5OiBudW1iZXI7XG4gIG9mZnNldDogYm9vbGVhbjtcbn1cbmNvbnN0IExvYWRpbmdEb3QgPSAoeyBkZWxheSwgb2Zmc2V0IH06IExvYWRpbmdEb3RQcm9wcykgPT4gKFxuICA8c3BhblxuICAgIGNzcz17e1xuICAgICAgYW5pbWF0aW9uOiBgJHtsb2FkaW5nRG90QW5pbWF0aW9uc30gMXMgZWFzZS1pbi1vdXQgJHtkZWxheX1tcyBpbmZpbml0ZTtgLFxuICAgICAgYmFja2dyb3VuZENvbG9yOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGJvcmRlclJhZGl1czogJzFlbScsXG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIG1hcmdpbkxlZnQ6IG9mZnNldCA/ICcxZW0nIDogdW5kZWZpbmVkLFxuICAgICAgaGVpZ2h0OiAnMWVtJyxcbiAgICAgIHZlcnRpY2FsQWxpZ246ICd0b3AnLFxuICAgICAgd2lkdGg6ICcxZW0nLFxuICAgIH19XG4gIC8+XG4pO1xuXG5leHBvcnQgaW50ZXJmYWNlIExvYWRpbmdJbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */",toString:CL},yv=function(t){var n=t.size,r=Ar(t,EL);return Re("svg",Pe({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:wL},r))},hf=function(t){return Re(yv,Pe({size:20},t),Re("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"}))},Ev=function(t){return Re(yv,Pe({size:20},t),Re("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"}))},xv=function(t,n){var r=t.isFocused,o=t.theme,i=o.spacing.baseUnit,a=o.colors;return _e({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?a.neutral60:a.neutral20,padding:i*2,":hover":{color:r?a.neutral80:a.neutral40}})},IL=xv,SL=function(t){var n=t.children,r=t.innerProps;return Re("div",Pe({},Rt(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||Re(Ev,null))},TL=xv,AL=function(t){var n=t.children,r=t.innerProps;return Re("div",Pe({},Rt(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||Re(hf,null))},_L=function(t,n){var r=t.isDisabled,o=t.theme,i=o.spacing.baseUnit,a=o.colors;return _e({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?a.neutral10:a.neutral20,marginBottom:i*2,marginTop:i*2})},OL=function(t){var n=t.innerProps;return Re("span",Pe({},n,Rt(t,"indicatorSeparator",{"indicator-separator":!0})))},RL=wk(vv||(vv=Ik([`
|
|
957
957
|
0%, 80%, 100% { opacity: 0; }
|
|
958
958
|
40% { opacity: 1; }
|
|
959
|
-
`]))),NL=function(t,n){var r=t.isFocused,o=t.size,i=t.theme,a=i.colors,s=i.spacing.baseUnit;return _e({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?a.neutral60:a.neutral20,padding:s*2})},gf=function(t){var n=t.delay,r=t.offset;return Re("span",{css:lf({animation:"".concat(RL," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdXJyZW50Q29sb3InLFxuICAgICAgbGluZUhlaWdodDogMSxcbiAgICAgIHN0cm9rZTogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBzdHJva2VXaWR0aDogMCxcbiAgICB9fVxuICAgIHsuLi5wcm9wc31cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIENyb3NzSWNvblByb3BzID0gSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZT86IG51bWJlciB9O1xuZXhwb3J0IGNvbnN0IENyb3NzSWNvbiA9IChwcm9wczogQ3Jvc3NJY29uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCB0eXBlIERvd25DaGV2cm9uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgRG93bkNoZXZyb24gPSAocHJvcHM6IERvd25DaGV2cm9uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTQuNTE2IDcuNTQ4YzAuNDM2LTAuNDQ2IDEuMDQzLTAuNDgxIDEuNTc2IDBsMy45MDggMy43NDcgMy45MDgtMy43NDdjMC41MzMtMC40ODEgMS4xNDEtMC40NDYgMS41NzQgMCAwLjQzNiAwLjQ0NSAwLjQwOCAxLjE5NyAwIDEuNjE1LTAuNDA2IDAuNDE4LTQuNjk1IDQuNTAyLTQuNjk1IDQuNTAyLTAuMjE3IDAuMjIzLTAuNTAyIDAuMzM1LTAuNzg3IDAuMzM1cy0wLjU3LTAuMTEyLTAuNzg5LTAuMzM1YzAgMC00LjI4Ny00LjA4NC00LjY5NS00LjUwMnMtMC40MzYtMS4xNyAwLTEuNjE1elwiIC8+XG4gIDwvU3ZnPlxuKTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEJ1dHRvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xufVxuXG5jb25zdCBiYXNlQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTpcbiAgICB8IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbiAgICB8IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JDb250YWluZXInLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICAgICc6aG92ZXInOiB7XG4gICAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsODAgOiBjb2xvcnMubmV1dHJhbDQwLFxuICAgICAgICB9LFxuICAgICAgfSksXG59KTtcblxuZXhwb3J0IGNvbnN0IGRyb3Bkb3duSW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBEcm9wZG93bkluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2Ryb3Bkb3duSW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdkcm9wZG93bi1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPERvd25DaGV2cm9uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGludGVyZmFjZSBDbGVhckluZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW4/OiBSZWFjdE5vZGU7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGNvbnN0IGNsZWFySW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBDbGVhckluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2NsZWFySW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdjbGVhci1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPENyb3NzSWNvbiAvPn1cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gU2VwYXJhdG9yXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IGludGVyZmFjZSBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaW5uZXJQcm9wcz86IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3BhbiddO1xufVxuXG5leHBvcnQgY29uc3QgaW5kaWNhdG9yU2VwYXJhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNEaXNhYmxlZCxcbiAgICB0aGVtZToge1xuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgICAgY29sb3JzLFxuICAgIH0sXG4gIH06IEluZGljYXRvclNlcGFyYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+LFxuICB1bnN0eWxlZDogYm9vbGVhblxuKTogQ1NTT2JqZWN0V2l0aExhYmVsID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yU2VwYXJhdG9yJyxcbiAgYWxpZ25TZWxmOiAnc3RyZXRjaCcsXG4gIHdpZHRoOiAxLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGJhY2tncm91bmRDb2xvcjogaXNEaXNhYmxlZCA/IGNvbG9ycy5uZXV0cmFsMTAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBtYXJnaW5Cb3R0b206IGJhc2VVbml0ICogMixcbiAgICAgICAgbWFyZ2luVG9wOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxzcGFuXG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnaW5kaWNhdG9yU2VwYXJhdG9yJywge1xuICAgICAgICAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHNpemUsXG4gICAgdGhlbWU6IHtcbiAgICAgIGNvbG9ycyxcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICB9LFxuICB9OiBMb2FkaW5nSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdsb2FkaW5nSW5kaWNhdG9yJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDYwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgICAgICAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICAgICAgfSksXG59KTtcblxuaW50ZXJmYWNlIExvYWRpbmdEb3RQcm9wcyB7XG4gIGRlbGF5OiBudW1iZXI7XG4gIG9mZnNldDogYm9vbGVhbjtcbn1cbmNvbnN0IExvYWRpbmdEb3QgPSAoeyBkZWxheSwgb2Zmc2V0IH06IExvYWRpbmdEb3RQcm9wcykgPT4gKFxuICA8c3BhblxuICAgIGNzcz17e1xuICAgICAgYW5pbWF0aW9uOiBgJHtsb2FkaW5nRG90QW5pbWF0aW9uc30gMXMgZWFzZS1pbi1vdXQgJHtkZWxheX1tcyBpbmZpbml0ZTtgLFxuICAgICAgYmFja2dyb3VuZENvbG9yOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGJvcmRlclJhZGl1czogJzFlbScsXG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIG1hcmdpbkxlZnQ6IG9mZnNldCA/ICcxZW0nIDogdW5kZWZpbmVkLFxuICAgICAgaGVpZ2h0OiAnMWVtJyxcbiAgICAgIHZlcnRpY2FsQWxpZ246ICd0b3AnLFxuICAgICAgd2lkdGg6ICcxZW0nLFxuICAgIH19XG4gIC8+XG4pO1xuXG5leHBvcnQgaW50ZXJmYWNlIExvYWRpbmdJbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */")})},DL=function(t){var n=t.innerProps,r=t.isRtl,o=t.size,i=o===void 0?4:o,a=Ar(t,xL);return Re("div",Pe({},Rt(_e(_e({},a),{},{innerProps:n,isRtl:r,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),Re(gf,{delay:0,offset:r}),Re(gf,{delay:160,offset:!0}),Re(gf,{delay:320,offset:!r}))},PL=function(t,n){var r=t.isDisabled,o=t.isFocused,i=t.theme,a=i.colors,s=i.borderRadius,l=i.spacing;return _e({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?a.neutral5:a.neutral0,borderColor:r?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}})},kL=function(t){var n=t.children,r=t.isDisabled,o=t.isFocused,i=t.innerRef,a=t.innerProps,s=t.menuIsOpen;return Re("div",Pe({ref:i},Rt(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":o,"control--menu-is-open":s}),a,{"aria-disabled":r||void 0}),n)},LL=kL,FL=["data"],ML=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},BL=function(t){var n=t.children,r=t.cx,o=t.getStyles,i=t.getClassNames,a=t.Heading,s=t.headingProps,l=t.innerProps,u=t.label,c=t.theme,d=t.selectProps;return Re("div",Pe({},Rt(t,"group",{group:!0}),l),Re(a,Pe({},s,{selectProps:d,theme:c,getStyles:o,getClassNames:i,cx:r}),u),Re("div",null,n))},jL=function(t,n){var r=t.theme,o=r.colors,i=r.spacing;return _e({label:"group",cursor:"default",display:"block"},n?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:i.baseUnit*3,paddingRight:i.baseUnit*3,textTransform:"uppercase"})},VL=function(t){var n=cv(t);n.data;var r=Ar(n,FL);return Re("div",Pe({},Rt(t,"groupHeading",{"group-heading":!0}),r))},GL=BL,WL=["innerRef","isDisabled","isHidden","inputClassName"],HL=function(t,n){var r=t.isDisabled,o=t.value,i=t.theme,a=i.spacing,s=i.colors;return _e(_e({visibility:r?"hidden":"visible",transform:o?"translateZ(0)":""},zL),n?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:s.neutral80})},Cv={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},zL={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":_e({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Cv)},XL=function(t){return _e({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},Cv)},ZL=function(t){var n=t.cx,r=t.value,o=cv(t),i=o.innerRef,a=o.isDisabled,s=o.isHidden,l=o.inputClassName,u=Ar(o,WL);return Re("div",Pe({},Rt(t,"input",{"input-container":!0}),{"data-value":r||""}),Re("input",Pe({className:n({input:!0},l),ref:i,style:XL(s),disabled:a},u)))},YL=ZL,UL=function(t,n){var r=t.theme,o=r.spacing,i=r.borderRadius,a=r.colors;return _e({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:a.neutral10,borderRadius:i/2,margin:o.baseUnit/2})},qL=function(t,n){var r=t.theme,o=r.borderRadius,i=r.colors,a=t.cropWithEllipsis;return _e({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:o/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},JL=function(t,n){var r=t.theme,o=r.spacing,i=r.borderRadius,a=r.colors,s=t.isFocused;return _e({alignItems:"center",display:"flex"},n?{}:{borderRadius:i/2,backgroundColor:s?a.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},wv=function(t){var n=t.children,r=t.innerProps;return Re("div",r,n)},QL=wv,$L=wv;function KL(e){var t=e.children,n=e.innerProps;return Re("div",Pe({role:"button"},n),t||Re(hf,{size:14}))}var eF=function(t){var n=t.children,r=t.components,o=t.data,i=t.innerProps,a=t.isDisabled,s=t.removeProps,l=t.selectProps,u=r.Container,c=r.Label,d=r.Remove;return Re(u,{data:o,innerProps:_e(_e({},Rt(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),i),selectProps:l},Re(c,{data:o,innerProps:_e({},Rt(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},n),Re(d,{data:o,innerProps:_e(_e({},Rt(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},s),selectProps:l}))},tF=eF,nF=function(t,n){var r=t.isDisabled,o=t.isFocused,i=t.isSelected,a=t.theme,s=a.spacing,l=a.colors;return _e({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:i?l.primary:o?l.primary25:"transparent",color:r?l.neutral20:i?l.neutral0:"inherit",padding:"".concat(s.baseUnit*2,"px ").concat(s.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:i?l.primary:l.primary50}})},rF=function(t){var n=t.children,r=t.isDisabled,o=t.isFocused,i=t.isSelected,a=t.innerRef,s=t.innerProps;return Re("div",Pe({},Rt(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":o,"option--is-selected":i}),{ref:a,"aria-disabled":r},s),n)},oF=rF,iF=function(t,n){var r=t.theme,o=r.spacing,i=r.colors;return _e({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:i.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},aF=function(t){var n=t.children,r=t.innerProps;return Re("div",Pe({},Rt(t,"placeholder",{placeholder:!0}),r),n)},sF=aF,lF=function(t,n){var r=t.isDisabled,o=t.theme,i=o.spacing,a=o.colors;return _e({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?a.neutral40:a.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},uF=function(t){var n=t.children,r=t.isDisabled,o=t.innerProps;return Re("div",Pe({},Rt(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),o),n)},cF=uF,Qa={ClearIndicator:AL,Control:LL,DropdownIndicator:SL,DownChevron:Ev,CrossIcon:hf,Group:GL,GroupHeading:VL,IndicatorsContainer:yL,IndicatorSeparator:OL,Input:YL,LoadingIndicator:DL,Menu:iL,MenuList:sL,MenuPortal:pL,LoadingMessage:dL,NoOptionsMessage:cL,MultiValue:tF,MultiValueContainer:QL,MultiValueLabel:$L,MultiValueRemove:KL,Option:oF,Placeholder:sF,SelectContainer:gL,SingleValue:cF,ValueContainer:bL},dF=function(t){return _e(_e({},Qa),t.components)},Iv=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function fF(e,t){return!!(e===t||Iv(e)&&Iv(t))}function pF(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!fF(e[n],t[n]))return!1;return!0}function hF(e,t){t===void 0&&(t=pF);var n=null;function r(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var a=e.apply(this,o);return n={lastResult:a,lastArgs:o,lastThis:this},a}return r.clear=function(){n=null},r}function gF(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}for(var mF=process.env.NODE_ENV==="production"?{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"}:{name:"1f43avz-a11yText-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;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:gF},bF=function(t){return Re("span",Pe({css:mF},t))},Sv=bF,vF={guidance:function(t){var n=t.isSearchable,r=t.isMulti,o=t.tabSelectsValue,i=t.context,a=t.isInitialFocus;switch(i){case"menu":return"Use Up and Down to choose options, 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 a?"".concat(t["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" 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(t){var n=t.action,r=t.label,o=r===void 0?"":r,i=t.labels,a=t.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return a?"option ".concat(o," is disabled. Select another option."):"option ".concat(o,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,o=t.options,i=t.label,a=i===void 0?"":i,s=t.selectValue,l=t.isDisabled,u=t.isSelected,c=t.isAppleDevice,d=function(f,p){return f&&f.length?"".concat(f.indexOf(p)+1," of ").concat(f.length):""};if(n==="value"&&s)return"value ".concat(a," focused, ").concat(d(s,r),".");if(n==="menu"&&c){var v=l?" disabled":"",y="".concat(u?" selected":"").concat(v);return"".concat(a).concat(y,", ").concat(d(o,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},yF=function(t){var n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.focusableOptions,a=t.isFocused,s=t.selectValue,l=t.selectProps,u=t.id,c=t.isAppleDevice,d=l.ariaLiveMessages,v=l.getOptionLabel,y=l.inputValue,g=l.isMulti,f=l.isOptionDisabled,p=l.isSearchable,h=l.menuIsOpen,m=l.options,b=l.screenReaderStatus,E=l.tabSelectsValue,x=l.isLoading,T=l["aria-label"],A=l["aria-live"],C=S.useMemo(function(){return _e(_e({},vF),d||{})},[d]),O=S.useMemo(function(){var q="";if(n&&C.onChange){var ee=n.option,ue=n.options,se=n.removedValue,ve=n.removedValues,H=n.value,te=function(Ee){return Array.isArray(Ee)?null:Ee},re=se||ee||te(H),$=re?v(re):"",oe=ue||ve||void 0,de=oe?oe.map(v):[],ie=_e({isDisabled:re&&f(re,s),label:$,labels:de},n);q=C.onChange(ie)}return q},[n,C,f,s,v]),B=S.useMemo(function(){var q="",ee=r||o,ue=!!(r&&s&&s.includes(r));if(ee&&C.onFocus){var se={focused:ee,label:v(ee),isDisabled:f(ee,s),isSelected:ue,options:i,context:ee===r?"menu":"value",selectValue:s,isAppleDevice:c};q=C.onFocus(se)}return q},[r,o,v,f,C,i,s,c]),M=S.useMemo(function(){var q="";if(h&&m.length&&!x&&C.onFilter){var ee=b({count:i.length});q=C.onFilter({inputValue:y,resultsMessage:ee})}return q},[i,y,h,C,m,b,x]),Q=(n==null?void 0:n.action)==="initial-input-focus",G=S.useMemo(function(){var q="";if(C.guidance){var ee=o?"value":h?"menu":"input";q=C.guidance({"aria-label":T,context:ee,isDisabled:r&&f(r,s),isMulti:g,isSearchable:p,tabSelectsValue:E,isInitialFocus:Q})}return q},[T,r,o,g,f,p,h,C,s,E,Q]),W=Re(S.Fragment,null,Re("span",{id:"aria-selection"},O),Re("span",{id:"aria-focused"},B),Re("span",{id:"aria-results"},M),Re("span",{id:"aria-guidance"},G));return Re(S.Fragment,null,Re(Sv,{id:u},Q&&W),Re(Sv,{"aria-live":A,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!Q&&W))},EF=yF,mf=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],xF=new RegExp("["+mf.map(function(e){return e.letters}).join("")+"]","g"),Tv={},bf=0;bf<mf.length;bf++)for(var vf=mf[bf],yf=0;yf<vf.letters.length;yf++)Tv[vf.letters[yf]]=vf.base;var Av=function(t){return t.replace(xF,function(n){return Tv[n]})},CF=hF(Av),_v=function(t){return t.replace(/^\s+|\s+$/g,"")},wF=function(t){return"".concat(t.label," ").concat(t.value)},IF=function(t){return function(n,r){if(n.data.__isNew__)return!0;var o=_e({ignoreCase:!0,ignoreAccents:!0,stringify:wF,trim:!0,matchFrom:"any"},t),i=o.ignoreCase,a=o.ignoreAccents,s=o.stringify,l=o.trim,u=o.matchFrom,c=l?_v(r):r,d=l?_v(s(n)):s(n);return i&&(c=c.toLowerCase(),d=d.toLowerCase()),a&&(c=CF(c),d=Av(d)),u==="start"?d.substr(0,c.length)===c:d.indexOf(c)>-1}},SF=["innerRef"];function TF(e){var t=e.innerRef,n=Ar(e,SF),r=Qk(n,"onExited","in","enter","exit","appear");return Re("input",Pe({ref:t},r,{css:lf({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVmIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgcmVtb3ZlUHJvcHMgfSBmcm9tICcuLi91dGlscyc7XG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIER1bW15SW5wdXQoe1xuICBpbm5lclJlZixcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snaW5wdXQnXSAmIHtcbiAgcmVhZG9ubHkgaW5uZXJSZWY6IFJlZjxIVE1MSW5wdXRFbGVtZW50Pjtcbn0pIHtcbiAgLy8gUmVtb3ZlIGFuaW1hdGlvbiBwcm9wcyBub3QgbWVhbnQgZm9yIEhUTUwgZWxlbWVudHNcbiAgY29uc3QgZmlsdGVyZWRQcm9wcyA9IHJlbW92ZVByb3BzKFxuICAgIHByb3BzLFxuICAgICdvbkV4aXRlZCcsXG4gICAgJ2luJyxcbiAgICAnZW50ZXInLFxuICAgICdleGl0JyxcbiAgICAnYXBwZWFyJ1xuICApO1xuXG4gIHJldHVybiAoXG4gICAgPGlucHV0XG4gICAgICByZWY9e2lubmVyUmVmfVxuICAgICAgey4uLmZpbHRlcmVkUHJvcHN9XG4gICAgICBjc3M9e3tcbiAgICAgICAgbGFiZWw6ICdkdW1teUlucHV0JyxcbiAgICAgICAgLy8gZ2V0IHJpZCBvZiBhbnkgZGVmYXVsdCBzdHlsZXNcbiAgICAgICAgYmFja2dyb3VuZDogMCxcbiAgICAgICAgYm9yZGVyOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHRoaXMgaGlkZXMgdGhlIGZsYXNoaW5nIGN1cnNvclxuICAgICAgICBjYXJldENvbG9yOiAndHJhbnNwYXJlbnQnLFxuICAgICAgICBmb250U2l6ZTogJ2luaGVyaXQnLFxuICAgICAgICBncmlkQXJlYTogJzEgLyAxIC8gMiAvIDMnLFxuICAgICAgICBvdXRsaW5lOiAwLFxuICAgICAgICBwYWRkaW5nOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHdpdGhvdXQgYHdpZHRoYCBicm93c2VycyB3b24ndCBhbGxvdyBmb2N1c1xuICAgICAgICB3aWR0aDogMSxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIGRlc2t0b3BcbiAgICAgICAgY29sb3I6ICd0cmFuc3BhcmVudCcsXG5cbiAgICAgICAgLy8gcmVtb3ZlIGN1cnNvciBvbiBtb2JpbGUgd2hpbHN0IG1haW50YWluaW5nIFwic2Nyb2xsIGludG8gdmlld1wiIGJlaGF2aW91clxuICAgICAgICBsZWZ0OiAtMTAwLFxuICAgICAgICBvcGFjaXR5OiAwLFxuICAgICAgICBwb3NpdGlvbjogJ3JlbGF0aXZlJyxcbiAgICAgICAgdHJhbnNmb3JtOiAnc2NhbGUoLjAxKScsXG4gICAgICB9fVxuICAgIC8+XG4gICk7XG59XG4iXX0= */")}))}var AF=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function _F(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,a=S.useRef(!1),s=S.useRef(!1),l=S.useRef(0),u=S.useRef(null),c=S.useCallback(function(p,h){if(u.current!==null){var m=u.current,b=m.scrollTop,E=m.scrollHeight,x=m.clientHeight,T=u.current,A=h>0,C=E-x-b,O=!1;C>h&&a.current&&(r&&r(p),a.current=!1),A&&s.current&&(i&&i(p),s.current=!1),A&&h>C?(n&&!a.current&&n(p),T.scrollTop=E,O=!0,a.current=!0):!A&&-h>b&&(o&&!s.current&&o(p),T.scrollTop=0,O=!0,s.current=!0),O&&AF(p)}},[n,r,o,i]),d=S.useCallback(function(p){c(p,p.deltaY)},[c]),v=S.useCallback(function(p){l.current=p.changedTouches[0].clientY},[]),y=S.useCallback(function(p){var h=l.current-p.changedTouches[0].clientY;c(p,h)},[c]),g=S.useCallback(function(p){if(p){var h=Uk?{passive:!1}:!1;p.addEventListener("wheel",d,h),p.addEventListener("touchstart",v,h),p.addEventListener("touchmove",y,h)}},[y,v,d]),f=S.useCallback(function(p){p&&(p.removeEventListener("wheel",d,!1),p.removeEventListener("touchstart",v,!1),p.removeEventListener("touchmove",y,!1))},[y,v,d]);return S.useEffect(function(){if(t){var p=u.current;return g(p),function(){f(p)}}},[t,g,f]),function(p){u.current=p}}var Ov=["boxSizing","height","overflow","paddingRight","position"],Rv={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Nv(e){e.preventDefault()}function Dv(e){e.stopPropagation()}function Pv(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function kv(){return"ontouchstart"in window||navigator.maxTouchPoints}var Lv=!!(typeof window<"u"&&window.document&&window.document.createElement),$a=0,Bi={capture:!1,passive:!1};function OF(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,o=S.useRef({}),i=S.useRef(null),a=S.useCallback(function(l){if(Lv){var u=document.body,c=u&&u.style;if(r&&Ov.forEach(function(g){var f=c&&c[g];o.current[g]=f}),r&&$a<1){var d=parseInt(o.current.paddingRight,10)||0,v=document.body?document.body.clientWidth:0,y=window.innerWidth-v+d||0;Object.keys(Rv).forEach(function(g){var f=Rv[g];c&&(c[g]=f)}),c&&(c.paddingRight="".concat(y,"px"))}u&&kv()&&(u.addEventListener("touchmove",Nv,Bi),l&&(l.addEventListener("touchstart",Pv,Bi),l.addEventListener("touchmove",Dv,Bi))),$a+=1}},[r]),s=S.useCallback(function(l){if(Lv){var u=document.body,c=u&&u.style;$a=Math.max($a-1,0),r&&$a<1&&Ov.forEach(function(d){var v=o.current[d];c&&(c[d]=v)}),u&&kv()&&(u.removeEventListener("touchmove",Nv,Bi),l&&(l.removeEventListener("touchstart",Pv,Bi),l.removeEventListener("touchmove",Dv,Bi)))}},[r]);return S.useEffect(function(){if(t){var l=i.current;return a(l),function(){s(l)}}},[t,a,s]),function(l){i.current=l}}function RF(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var NF=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},DF=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:RF};function PF(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=r===void 0?!0:r,i=e.onBottomArrive,a=e.onBottomLeave,s=e.onTopArrive,l=e.onTopLeave,u=_F({isEnabled:o,onBottomArrive:i,onBottomLeave:a,onTopArrive:s,onTopLeave:l}),c=OF({isEnabled:n}),d=function(y){u(y),c(y)};return Re(S.Fragment,null,n&&Re("div",{onClick:NF,css:DF}),t(d))}function kF(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var LF=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:kF},FF=function(t){var n=t.name,r=t.onFocus;return Re("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:LF,value:"",onChange:function(){}})},MF=FF;function Ef(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function BF(){return Ef(/^iPhone/i)}function Fv(){return Ef(/^Mac/i)}function jF(){return Ef(/^iPad/i)||Fv()&&navigator.maxTouchPoints>1}function VF(){return BF()||jF()}function GF(){return Fv()||VF()}var WF=function(t){return t.label},HF=function(t){return t.label},zF=function(t){return t.value},XF=function(t){return!!t.isDisabled},ZF={clearIndicator:TL,container:hL,control:PL,dropdownIndicator:IL,group:ML,groupHeading:jL,indicatorsContainer:vL,indicatorSeparator:_L,input:HL,loadingIndicator:NL,loadingMessage:uL,menu:nL,menuList:aL,menuPortal:fL,multiValue:UL,multiValueLabel:qL,multiValueRemove:JL,noOptionsMessage:lL,option:nF,placeholder:iF,singleValue:lF,valueContainer:mL},YF={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%)"},UF=4,Mv=4,qF=38,JF=Mv*2,QF={baseUnit:Mv,controlHeight:qF,menuGutter:JF},xf={borderRadius:UF,colors:YF,spacing:QF},$F={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:pv(),captureMenuScroll:!pv(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:IF(),formatGroupLabel:WF,getOptionLabel:HF,getOptionValue:zF,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:XF,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Zk(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Bv(e,t,n,r){var o=Hv(e,t,n),i=zv(e,t,n),a=Wv(e,t),s=su(e,t);return{type:"option",data:t,isDisabled:o,isSelected:i,label:a,value:s,index:r}}function au(e,t){return e.options.map(function(n,r){if("options"in n){var o=n.options.map(function(a,s){return Bv(e,a,t,s)}).filter(function(a){return Gv(e,a)});return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=Bv(e,n,t,r);return Gv(e,i)?i:void 0}).filter(qk)}function jv(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,Qd(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function Vv(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,Qd(r.options.map(function(o){return{data:o.data,id:"".concat(t,"-").concat(r.index,"-").concat(o.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function KF(e,t){return jv(au(e,t))}function Gv(e,t){var n=e.inputValue,r=n===void 0?"":n,o=t.data,i=t.isSelected,a=t.label,s=t.value;return(!Zv(e)||!i)&&Xv(e,{label:a,value:s,data:o},r)}function e5(e,t){var n=e.focusedValue,r=e.selectValue,o=r.indexOf(n);if(o>-1){var i=t.indexOf(n);if(i>-1)return n;if(o<t.length)return t[o]}return null}function t5(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var Cf=function(t,n){var r,o=(r=t.find(function(i){return i.data===n}))===null||r===void 0?void 0:r.id;return o||null},Wv=function(t,n){return t.getOptionLabel(n)},su=function(t,n){return t.getOptionValue(n)};function Hv(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function zv(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=su(e,t);return n.some(function(o){return su(e,o)===r})}function Xv(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var Zv=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},n5=1,wf=function(e){hP(n,e);var t=bP(n);function n(r){var o;if(fP(this,n),o=t.call(this,r),o.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.isAppleDevice=GF(),o.controlRef=null,o.getControlRef=function(l){o.controlRef=l},o.focusedOptionRef=null,o.getFocusedOptionRef=function(l){o.focusedOptionRef=l},o.menuListRef=null,o.getMenuListRef=function(l){o.menuListRef=l},o.inputRef=null,o.getInputRef=function(l){o.inputRef=l},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(l,u){var c=o.props,d=c.onChange,v=c.name;u.name=v,o.ariaOnChange(l,u),d(l,u)},o.setValue=function(l,u,c){var d=o.props,v=d.closeMenuOnSelect,y=d.isMulti,g=d.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:g}),v&&(o.setState({inputIsHiddenAfterUpdate:!y}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(l,{action:u,option:c})},o.selectOption=function(l){var u=o.props,c=u.blurInputOnSelect,d=u.isMulti,v=u.name,y=o.state.selectValue,g=d&&o.isOptionSelected(l,y),f=o.isOptionDisabled(l,y);if(g){var p=o.getOptionValue(l);o.setValue(y.filter(function(h){return o.getOptionValue(h)!==p}),"deselect-option",l)}else if(!f)d?o.setValue([].concat(Qd(y),[l]),"select-option",l):o.setValue(l,"select-option");else{o.ariaOnChange(l,{action:"select-option",option:l,name:v});return}c&&o.blurInput()},o.removeValue=function(l){var u=o.props.isMulti,c=o.state.selectValue,d=o.getOptionValue(l),v=c.filter(function(g){return o.getOptionValue(g)!==d}),y=iu(u,v,v[0]||null);o.onChange(y,{action:"remove-value",removedValue:l}),o.focusInput()},o.clearValue=function(){var l=o.state.selectValue;o.onChange(iu(o.props.isMulti,[],null),{action:"clear",removedValues:l})},o.popValue=function(){var l=o.props.isMulti,u=o.state.selectValue,c=u[u.length-1],d=u.slice(0,u.length-1),v=iu(l,d,d[0]||null);c&&o.onChange(v,{action:"pop-value",removedValue:c})},o.getFocusedOptionId=function(l){return Cf(o.state.focusableOptionsWithIds,l)},o.getFocusableOptionsWithIds=function(){return Vv(au(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];return Vk.apply(void 0,[o.props.classNamePrefix].concat(u))},o.getOptionLabel=function(l){return Wv(o.props,l)},o.getOptionValue=function(l){return su(o.props,l)},o.getStyles=function(l,u){var c=o.props.unstyled,d=ZF[l](u,c);d.boxSizing="border-box";var v=o.props.styles[l];return v?v(d,u):d},o.getClassNames=function(l,u){var c,d;return(c=(d=o.props.classNames)[l])===null||c===void 0?void 0:c.call(d,u)},o.getElementId=function(l){return"".concat(o.state.instancePrefix,"-").concat(l)},o.getComponents=function(){return dF(o.props)},o.buildCategorizedOptions=function(){return au(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return jv(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(l,u){o.setState({ariaSelection:_e({value:l},u)})},o.onMenuMouseDown=function(l){l.button===0&&(l.stopPropagation(),l.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(l){o.blockOptionHover=!1},o.onControlMouseDown=function(l){if(!l.defaultPrevented){var u=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&o.onMenuClose():u&&o.openMenu("first"):(u&&(o.openAfterFocus=!0),o.focusInput()),l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&l.preventDefault()}},o.onDropdownIndicatorMouseDown=function(l){if(!(l&&l.type==="mousedown"&&l.button!==0)&&!o.props.isDisabled){var u=o.props,c=u.isMulti,d=u.menuIsOpen;o.focusInput(),d?(o.setState({inputIsHiddenAfterUpdate:!c}),o.onMenuClose()):o.openMenu("first"),l.preventDefault()}},o.onClearIndicatorMouseDown=function(l){l&&l.type==="mousedown"&&l.button!==0||(o.clearValue(),l.preventDefault(),o.openAfterFocus=!1,l.type==="touchend"?o.focusInput():setTimeout(function(){return o.focusInput()}))},o.onScroll=function(l){typeof o.props.closeMenuOnScroll=="boolean"?l.target instanceof HTMLElement&&tu(l.target)&&o.props.onMenuClose():typeof o.props.closeMenuOnScroll=="function"&&o.props.closeMenuOnScroll(l)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(l){var u=l.touches,c=u&&u.item(0);c&&(o.initialTouchX=c.clientX,o.initialTouchY=c.clientY,o.userIsDragging=!1)},o.onTouchMove=function(l){var u=l.touches,c=u&&u.item(0);if(c){var d=Math.abs(c.clientX-o.initialTouchX),v=Math.abs(c.clientY-o.initialTouchY),y=5;o.userIsDragging=d>y||v>y}},o.onTouchEnd=function(l){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(l.target)&&o.menuListRef&&!o.menuListRef.contains(l.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(l){o.userIsDragging||o.onControlMouseDown(l)},o.onClearIndicatorTouchEnd=function(l){o.userIsDragging||o.onClearIndicatorMouseDown(l)},o.onDropdownIndicatorTouchEnd=function(l){o.userIsDragging||o.onDropdownIndicatorMouseDown(l)},o.handleInputChange=function(l){var u=o.props.inputValue,c=l.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(c,{action:"input-change",prevInputValue:u}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(l){o.props.onFocus&&o.props.onFocus(l),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(l){var u=o.props.inputValue;if(o.menuListRef&&o.menuListRef.contains(document.activeElement)){o.inputRef.focus();return}o.props.onBlur&&o.props.onBlur(l),o.onInputChange("",{action:"input-blur",prevInputValue:u}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1})},o.onOptionHover=function(l){if(!(o.blockOptionHover||o.state.focusedOption===l)){var u=o.getFocusableOptions(),c=u.indexOf(l);o.setState({focusedOption:l,focusedOptionId:c>-1?o.getFocusedOptionId(l):null})}},o.shouldHideSelectedOptions=function(){return Zv(o.props)},o.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),o.focus()},o.onKeyDown=function(l){var u=o.props,c=u.isMulti,d=u.backspaceRemovesValue,v=u.escapeClearsValue,y=u.inputValue,g=u.isClearable,f=u.isDisabled,p=u.menuIsOpen,h=u.onKeyDown,m=u.tabSelectsValue,b=u.openMenuOnFocus,E=o.state,x=E.focusedOption,T=E.focusedValue,A=E.selectValue;if(!f&&!(typeof h=="function"&&(h(l),l.defaultPrevented))){switch(o.blockOptionHover=!0,l.key){case"ArrowLeft":if(!c||y)return;o.focusValue("previous");break;case"ArrowRight":if(!c||y)return;o.focusValue("next");break;case"Delete":case"Backspace":if(y)return;if(T)o.removeValue(T);else{if(!d)return;c?o.popValue():g&&o.clearValue()}break;case"Tab":if(o.isComposing||l.shiftKey||!p||!m||!x||b&&o.isOptionSelected(x,A))return;o.selectOption(x);break;case"Enter":if(l.keyCode===229)break;if(p){if(!x||o.isComposing)return;o.selectOption(x);break}return;case"Escape":p?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:y}),o.onMenuClose()):g&&v&&o.clearValue();break;case" ":if(y)return;if(!p){o.openMenu("first");break}if(!x)return;o.selectOption(x);break;case"ArrowUp":p?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":p?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!p)return;o.focusOption("pageup");break;case"PageDown":if(!p)return;o.focusOption("pagedown");break;case"Home":if(!p)return;o.focusOption("first");break;case"End":if(!p)return;o.focusOption("last");break;default:return}l.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++n5),o.state.selectValue=uv(r.value),r.menuIsOpen&&o.state.selectValue.length){var i=o.getFocusableOptionsWithIds(),a=o.buildFocusableOptions(),s=a.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=i,o.state.focusedOption=a[s],o.state.focusedOptionId=Cf(i,a[s])}return o}return pP(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&&fv(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(o){var i=this.props,a=i.isDisabled,s=i.menuIsOpen,l=this.state.isFocused;(l&&!a&&o.isDisabled||l&&s&&!o.menuIsOpen)&&this.focusInput(),l&&a&&!o.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!a&&o.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(fv(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(o,i){this.props.onInputChange(o,i)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(o){var i=this,a=this.state,s=a.selectValue,l=a.isFocused,u=this.buildFocusableOptions(),c=o==="first"?0:u.length-1;if(!this.props.isMulti){var d=u.indexOf(s[0]);d>-1&&(c=d)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:u[c],focusedOptionId:this.getFocusedOptionId(u[c])},function(){return i.onMenuOpen()})}},{key:"focusValue",value:function(o){var i=this.state,a=i.selectValue,s=i.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=a.indexOf(s);s||(l=-1);var u=a.length-1,c=-1;if(a.length){switch(o){case"previous":l===0?c=0:l===-1?c=u:c=l-1;break;case"next":l>-1&&l<u&&(c=l+1);break}this.setState({inputIsHidden:c!==-1,focusedValue:a[c]})}}}},{key:"focusOption",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",i=this.props.pageSize,a=this.state.focusedOption,s=this.getFocusableOptions();if(s.length){var l=0,u=s.indexOf(a);a||(u=-1),o==="up"?l=u>0?u-1:s.length-1:o==="down"?l=(u+1)%s.length:o==="pageup"?(l=u-i,l<0&&(l=0)):o==="pagedown"?(l=u+i,l>s.length-1&&(l=s.length-1)):o==="last"&&(l=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[l],focusedValue:null,focusedOptionId:this.getFocusedOptionId(s[l])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(xf):_e(_e({},xf),this.props.theme):xf}},{key:"getCommonProps",value:function(){var o=this.clearValue,i=this.cx,a=this.getStyles,s=this.getClassNames,l=this.getValue,u=this.selectOption,c=this.setValue,d=this.props,v=d.isMulti,y=d.isRtl,g=d.options,f=this.hasValue();return{clearValue:o,cx:i,getStyles:a,getClassNames:s,getValue:l,hasValue:f,isMulti:v,isRtl:y,options:g,selectOption:u,selectProps:d,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var o=this.state.selectValue;return o.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var o=this.props,i=o.isClearable,a=o.isMulti;return i===void 0?a:i}},{key:"isOptionDisabled",value:function(o,i){return Hv(this.props,o,i)}},{key:"isOptionSelected",value:function(o,i){return zv(this.props,o,i)}},{key:"filterOption",value:function(o,i){return Xv(this.props,o,i)}},{key:"formatOptionLabel",value:function(o,i){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,s=this.state.selectValue;return this.props.formatOptionLabel(o,{context:i,inputValue:a,selectValue:s})}else return this.getOptionLabel(o)}},{key:"formatGroupLabel",value:function(o){return this.props.formatGroupLabel(o)}},{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 o=this.props,i=o.isDisabled,a=o.isSearchable,s=o.inputId,l=o.inputValue,u=o.tabIndex,c=o.form,d=o.menuIsOpen,v=o.required,y=this.getComponents(),g=y.Input,f=this.state,p=f.inputIsHidden,h=f.ariaSelection,m=this.commonProps,b=s||this.getElementId("input"),E=_e(_e(_e({"aria-autocomplete":"list","aria-expanded":d,"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":v,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},d&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?(h==null?void 0:h.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?P.createElement(g,Pe({},m,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:b,innerRef:this.getInputRef,isDisabled:i,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:c,type:"text",value:l},E)):P.createElement(TF,Pe({id:b,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:eu,onFocus:this.onInputFocus,disabled:i,tabIndex:u,inputMode:"none",form:c,value:""},E))}},{key:"renderPlaceholderOrValue",value:function(){var o=this,i=this.getComponents(),a=i.MultiValue,s=i.MultiValueContainer,l=i.MultiValueLabel,u=i.MultiValueRemove,c=i.SingleValue,d=i.Placeholder,v=this.commonProps,y=this.props,g=y.controlShouldRenderValue,f=y.isDisabled,p=y.isMulti,h=y.inputValue,m=y.placeholder,b=this.state,E=b.selectValue,x=b.focusedValue,T=b.isFocused;if(!this.hasValue()||!g)return h?null:P.createElement(d,Pe({},v,{key:"placeholder",isDisabled:f,isFocused:T,innerProps:{id:this.getElementId("placeholder")}}),m);if(p)return E.map(function(C,O){var B=C===x,M="".concat(o.getOptionLabel(C),"-").concat(o.getOptionValue(C));return P.createElement(a,Pe({},v,{components:{Container:s,Label:l,Remove:u},isFocused:B,isDisabled:f,key:M,index:O,removeProps:{onClick:function(){return o.removeValue(C)},onTouchEnd:function(){return o.removeValue(C)},onMouseDown:function(G){G.preventDefault()}},data:C}),o.formatOptionLabel(C,"value"))});if(h)return null;var A=E[0];return P.createElement(c,Pe({},v,{data:A,isDisabled:f}),this.formatOptionLabel(A,"value"))}},{key:"renderClearIndicator",value:function(){var o=this.getComponents(),i=o.ClearIndicator,a=this.commonProps,s=this.props,l=s.isDisabled,u=s.isLoading,c=this.state.isFocused;if(!this.isClearable()||!i||l||!this.hasValue()||u)return null;var d={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return P.createElement(i,Pe({},a,{innerProps:d,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var o=this.getComponents(),i=o.LoadingIndicator,a=this.commonProps,s=this.props,l=s.isDisabled,u=s.isLoading,c=this.state.isFocused;if(!i||!u)return null;var d={"aria-hidden":"true"};return P.createElement(i,Pe({},a,{innerProps:d,isDisabled:l,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator,a=o.IndicatorSeparator;if(!i||!a)return null;var s=this.commonProps,l=this.props.isDisabled,u=this.state.isFocused;return P.createElement(a,Pe({},s,{isDisabled:l,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator;if(!i)return null;var a=this.commonProps,s=this.props.isDisabled,l=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return P.createElement(i,Pe({},a,{innerProps:u,isDisabled:s,isFocused:l}))}},{key:"renderMenu",value:function(){var o=this,i=this.getComponents(),a=i.Group,s=i.GroupHeading,l=i.Menu,u=i.MenuList,c=i.MenuPortal,d=i.LoadingMessage,v=i.NoOptionsMessage,y=i.Option,g=this.commonProps,f=this.state.focusedOption,p=this.props,h=p.captureMenuScroll,m=p.inputValue,b=p.isLoading,E=p.loadingMessage,x=p.minMenuHeight,T=p.maxMenuHeight,A=p.menuIsOpen,C=p.menuPlacement,O=p.menuPosition,B=p.menuPortalTarget,M=p.menuShouldBlockScroll,Q=p.menuShouldScrollIntoView,G=p.noOptionsMessage,W=p.onMenuScrollToTop,q=p.onMenuScrollToBottom;if(!A)return null;var ee=function($,oe){var de=$.type,ie=$.data,ge=$.isDisabled,Ee=$.isSelected,Ae=$.label,me=$.value,ze=f===ie,V=ge?void 0:function(){return o.onOptionHover(ie)},Ye=ge?void 0:function(){return o.selectOption(ie)},Le="".concat(o.getElementId("option"),"-").concat(oe),Ue={id:Le,onClick:Ye,onMouseMove:V,onMouseOver:V,tabIndex:-1,role:"option","aria-selected":o.isAppleDevice?void 0:Ee};return P.createElement(y,Pe({},g,{innerProps:Ue,data:ie,isDisabled:ge,isSelected:Ee,key:Le,label:Ae,type:de,value:me,isFocused:ze,innerRef:ze?o.getFocusedOptionRef:void 0}),o.formatOptionLabel($.data,"menu"))},ue;if(this.hasOptions())ue=this.getCategorizedOptions().map(function(re){if(re.type==="group"){var $=re.data,oe=re.options,de=re.index,ie="".concat(o.getElementId("group"),"-").concat(de),ge="".concat(ie,"-heading");return P.createElement(a,Pe({},g,{key:ie,data:$,options:oe,Heading:s,headingProps:{id:ge,data:re.data},label:o.formatGroupLabel(re.data)}),re.options.map(function(Ee){return ee(Ee,"".concat(de,"-").concat(Ee.index))}))}else if(re.type==="option")return ee(re,"".concat(re.index))});else if(b){var se=E({inputValue:m});if(se===null)return null;ue=P.createElement(d,g,se)}else{var ve=G({inputValue:m});if(ve===null)return null;ue=P.createElement(v,g,ve)}var H={minMenuHeight:x,maxMenuHeight:T,menuPlacement:C,menuPosition:O,menuShouldScrollIntoView:Q},te=P.createElement(rL,Pe({},g,H),function(re){var $=re.ref,oe=re.placerProps,de=oe.placement,ie=oe.maxHeight;return P.createElement(l,Pe({},g,H,{innerRef:$,innerProps:{onMouseDown:o.onMenuMouseDown,onMouseMove:o.onMenuMouseMove},isLoading:b,placement:de}),P.createElement(PF,{captureEnabled:h,onTopArrive:W,onBottomArrive:q,lockEnabled:M},function(ge){return P.createElement(u,Pe({},g,{innerRef:function(Ae){o.getMenuListRef(Ae),ge(Ae)},innerProps:{role:"listbox","aria-multiselectable":g.isMulti,id:o.getElementId("listbox")},isLoading:b,maxHeight:ie,focusedOption:f}),ue)}))});return B||O==="fixed"?P.createElement(c,Pe({},g,{appendTo:B,controlElement:this.controlRef,menuPlacement:C,menuPosition:O}),te):te}},{key:"renderFormField",value:function(){var o=this,i=this.props,a=i.delimiter,s=i.isDisabled,l=i.isMulti,u=i.name,c=i.required,d=this.state.selectValue;if(c&&!this.hasValue()&&!s)return P.createElement(MF,{name:u,onFocus:this.onValueInputFocus});if(!(!u||s))if(l)if(a){var v=d.map(function(f){return o.getOptionValue(f)}).join(a);return P.createElement("input",{name:u,type:"hidden",value:v})}else{var y=d.length>0?d.map(function(f,p){return P.createElement("input",{key:"i-".concat(p),name:u,type:"hidden",value:o.getOptionValue(f)})}):P.createElement("input",{name:u,type:"hidden",value:""});return P.createElement("div",null,y)}else{var g=d[0]?this.getOptionValue(d[0]):"";return P.createElement("input",{name:u,type:"hidden",value:g})}}},{key:"renderLiveRegion",value:function(){var o=this.commonProps,i=this.state,a=i.ariaSelection,s=i.focusedOption,l=i.focusedValue,u=i.isFocused,c=i.selectValue,d=this.getFocusableOptions();return P.createElement(EF,Pe({},o,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:s,focusedValue:l,isFocused:u,selectValue:c,focusableOptions:d,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var o=this.getComponents(),i=o.Control,a=o.IndicatorsContainer,s=o.SelectContainer,l=o.ValueContainer,u=this.props,c=u.className,d=u.id,v=u.isDisabled,y=u.menuIsOpen,g=this.state.isFocused,f=this.commonProps=this.getCommonProps();return P.createElement(s,Pe({},f,{className:c,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:v,isFocused:g}),this.renderLiveRegion(),P.createElement(i,Pe({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:v,isFocused:g,menuIsOpen:y}),P.createElement(l,Pe({},f,{isDisabled:v}),this.renderPlaceholderOrValue(),this.renderInput()),P.createElement(a,Pe({},f,{isDisabled:v}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(o,i){var a=i.prevProps,s=i.clearFocusValueOnUpdate,l=i.inputIsHiddenAfterUpdate,u=i.ariaSelection,c=i.isFocused,d=i.prevWasFocused,v=i.instancePrefix,y=o.options,g=o.value,f=o.menuIsOpen,p=o.inputValue,h=o.isMulti,m=uv(g),b={};if(a&&(g!==a.value||y!==a.options||f!==a.menuIsOpen||p!==a.inputValue)){var E=f?KF(o,m):[],x=f?Vv(au(o,m),"".concat(v,"-option")):[],T=s?e5(i,m):null,A=t5(i,E),C=Cf(x,A);b={selectValue:m,focusedOption:A,focusedOptionId:C,focusableOptionsWithIds:x,focusedValue:T,clearFocusValueOnUpdate:!1}}var O=l!=null&&o!==a?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},B=u,M=c&&d;return c&&!M&&(B={value:iu(h,m,m[0]||null),options:m,action:"initial-input-focus"},M=!d),(u==null?void 0:u.action)==="initial-input-focus"&&(B=null),_e(_e(_e({},b),O),{},{prevProps:o,ariaSelection:B,prevWasFocused:M})}}]),n}(S.Component);wf.defaultProps=$F;var r5=S.forwardRef(function(e,t){var n=Nb(e);return P.createElement(wf,Pe({ref:t},n))}),o5=r5;const i5=w.styled(w.Box)`
|
|
959
|
+
`]))),NL=function(t,n){var r=t.isFocused,o=t.size,i=t.theme,a=i.colors,l=i.spacing.baseUnit;return _e({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?a.neutral60:a.neutral20,padding:l*2})},gf=function(t){var n=t.delay,r=t.offset;return Re("span",{css:lf({animation:"".concat(RL," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdXJyZW50Q29sb3InLFxuICAgICAgbGluZUhlaWdodDogMSxcbiAgICAgIHN0cm9rZTogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBzdHJva2VXaWR0aDogMCxcbiAgICB9fVxuICAgIHsuLi5wcm9wc31cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIENyb3NzSWNvblByb3BzID0gSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZT86IG51bWJlciB9O1xuZXhwb3J0IGNvbnN0IENyb3NzSWNvbiA9IChwcm9wczogQ3Jvc3NJY29uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCB0eXBlIERvd25DaGV2cm9uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgRG93bkNoZXZyb24gPSAocHJvcHM6IERvd25DaGV2cm9uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTQuNTE2IDcuNTQ4YzAuNDM2LTAuNDQ2IDEuMDQzLTAuNDgxIDEuNTc2IDBsMy45MDggMy43NDcgMy45MDgtMy43NDdjMC41MzMtMC40ODEgMS4xNDEtMC40NDYgMS41NzQgMCAwLjQzNiAwLjQ0NSAwLjQwOCAxLjE5NyAwIDEuNjE1LTAuNDA2IDAuNDE4LTQuNjk1IDQuNTAyLTQuNjk1IDQuNTAyLTAuMjE3IDAuMjIzLTAuNTAyIDAuMzM1LTAuNzg3IDAuMzM1cy0wLjU3LTAuMTEyLTAuNzg5LTAuMzM1YzAgMC00LjI4Ny00LjA4NC00LjY5NS00LjUwMnMtMC40MzYtMS4xNyAwLTEuNjE1elwiIC8+XG4gIDwvU3ZnPlxuKTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEJ1dHRvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xufVxuXG5jb25zdCBiYXNlQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTpcbiAgICB8IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbiAgICB8IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JDb250YWluZXInLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICAgICc6aG92ZXInOiB7XG4gICAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsODAgOiBjb2xvcnMubmV1dHJhbDQwLFxuICAgICAgICB9LFxuICAgICAgfSksXG59KTtcblxuZXhwb3J0IGNvbnN0IGRyb3Bkb3duSW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBEcm9wZG93bkluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2Ryb3Bkb3duSW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdkcm9wZG93bi1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPERvd25DaGV2cm9uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGludGVyZmFjZSBDbGVhckluZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW4/OiBSZWFjdE5vZGU7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGNvbnN0IGNsZWFySW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBDbGVhckluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2NsZWFySW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdjbGVhci1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPENyb3NzSWNvbiAvPn1cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gU2VwYXJhdG9yXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IGludGVyZmFjZSBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaW5uZXJQcm9wcz86IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3BhbiddO1xufVxuXG5leHBvcnQgY29uc3QgaW5kaWNhdG9yU2VwYXJhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNEaXNhYmxlZCxcbiAgICB0aGVtZToge1xuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgICAgY29sb3JzLFxuICAgIH0sXG4gIH06IEluZGljYXRvclNlcGFyYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+LFxuICB1bnN0eWxlZDogYm9vbGVhblxuKTogQ1NTT2JqZWN0V2l0aExhYmVsID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yU2VwYXJhdG9yJyxcbiAgYWxpZ25TZWxmOiAnc3RyZXRjaCcsXG4gIHdpZHRoOiAxLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGJhY2tncm91bmRDb2xvcjogaXNEaXNhYmxlZCA/IGNvbG9ycy5uZXV0cmFsMTAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBtYXJnaW5Cb3R0b206IGJhc2VVbml0ICogMixcbiAgICAgICAgbWFyZ2luVG9wOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxzcGFuXG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnaW5kaWNhdG9yU2VwYXJhdG9yJywge1xuICAgICAgICAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHNpemUsXG4gICAgdGhlbWU6IHtcbiAgICAgIGNvbG9ycyxcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICB9LFxuICB9OiBMb2FkaW5nSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdsb2FkaW5nSW5kaWNhdG9yJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDYwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgICAgICAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICAgICAgfSksXG59KTtcblxuaW50ZXJmYWNlIExvYWRpbmdEb3RQcm9wcyB7XG4gIGRlbGF5OiBudW1iZXI7XG4gIG9mZnNldDogYm9vbGVhbjtcbn1cbmNvbnN0IExvYWRpbmdEb3QgPSAoeyBkZWxheSwgb2Zmc2V0IH06IExvYWRpbmdEb3RQcm9wcykgPT4gKFxuICA8c3BhblxuICAgIGNzcz17e1xuICAgICAgYW5pbWF0aW9uOiBgJHtsb2FkaW5nRG90QW5pbWF0aW9uc30gMXMgZWFzZS1pbi1vdXQgJHtkZWxheX1tcyBpbmZpbml0ZTtgLFxuICAgICAgYmFja2dyb3VuZENvbG9yOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGJvcmRlclJhZGl1czogJzFlbScsXG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIG1hcmdpbkxlZnQ6IG9mZnNldCA/ICcxZW0nIDogdW5kZWZpbmVkLFxuICAgICAgaGVpZ2h0OiAnMWVtJyxcbiAgICAgIHZlcnRpY2FsQWxpZ246ICd0b3AnLFxuICAgICAgd2lkdGg6ICcxZW0nLFxuICAgIH19XG4gIC8+XG4pO1xuXG5leHBvcnQgaW50ZXJmYWNlIExvYWRpbmdJbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */")})},DL=function(t){var n=t.innerProps,r=t.isRtl,o=t.size,i=o===void 0?4:o,a=Ar(t,xL);return Re("div",Pe({},Rt(_e(_e({},a),{},{innerProps:n,isRtl:r,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),Re(gf,{delay:0,offset:r}),Re(gf,{delay:160,offset:!0}),Re(gf,{delay:320,offset:!r}))},PL=function(t,n){var r=t.isDisabled,o=t.isFocused,i=t.theme,a=i.colors,l=i.borderRadius,s=i.spacing;return _e({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:s.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?a.neutral5:a.neutral0,borderColor:r?a.neutral10:o?a.primary:a.neutral20,borderRadius:l,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:o?a.primary:a.neutral30}})},kL=function(t){var n=t.children,r=t.isDisabled,o=t.isFocused,i=t.innerRef,a=t.innerProps,l=t.menuIsOpen;return Re("div",Pe({ref:i},Rt(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":o,"control--menu-is-open":l}),a,{"aria-disabled":r||void 0}),n)},LL=kL,FL=["data"],ML=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},BL=function(t){var n=t.children,r=t.cx,o=t.getStyles,i=t.getClassNames,a=t.Heading,l=t.headingProps,s=t.innerProps,u=t.label,c=t.theme,f=t.selectProps;return Re("div",Pe({},Rt(t,"group",{group:!0}),s),Re(a,Pe({},l,{selectProps:f,theme:c,getStyles:o,getClassNames:i,cx:r}),u),Re("div",null,n))},jL=function(t,n){var r=t.theme,o=r.colors,i=r.spacing;return _e({label:"group",cursor:"default",display:"block"},n?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:i.baseUnit*3,paddingRight:i.baseUnit*3,textTransform:"uppercase"})},VL=function(t){var n=cv(t);n.data;var r=Ar(n,FL);return Re("div",Pe({},Rt(t,"groupHeading",{"group-heading":!0}),r))},GL=BL,WL=["innerRef","isDisabled","isHidden","inputClassName"],HL=function(t,n){var r=t.isDisabled,o=t.value,i=t.theme,a=i.spacing,l=i.colors;return _e(_e({visibility:r?"hidden":"visible",transform:o?"translateZ(0)":""},zL),n?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:l.neutral80})},Cv={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},zL={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":_e({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Cv)},XL=function(t){return _e({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},Cv)},ZL=function(t){var n=t.cx,r=t.value,o=cv(t),i=o.innerRef,a=o.isDisabled,l=o.isHidden,s=o.inputClassName,u=Ar(o,WL);return Re("div",Pe({},Rt(t,"input",{"input-container":!0}),{"data-value":r||""}),Re("input",Pe({className:n({input:!0},s),ref:i,style:XL(l),disabled:a},u)))},YL=ZL,UL=function(t,n){var r=t.theme,o=r.spacing,i=r.borderRadius,a=r.colors;return _e({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:a.neutral10,borderRadius:i/2,margin:o.baseUnit/2})},qL=function(t,n){var r=t.theme,o=r.borderRadius,i=r.colors,a=t.cropWithEllipsis;return _e({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:o/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},JL=function(t,n){var r=t.theme,o=r.spacing,i=r.borderRadius,a=r.colors,l=t.isFocused;return _e({alignItems:"center",display:"flex"},n?{}:{borderRadius:i/2,backgroundColor:l?a.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},wv=function(t){var n=t.children,r=t.innerProps;return Re("div",r,n)},QL=wv,$L=wv;function KL(e){var t=e.children,n=e.innerProps;return Re("div",Pe({role:"button"},n),t||Re(hf,{size:14}))}var eF=function(t){var n=t.children,r=t.components,o=t.data,i=t.innerProps,a=t.isDisabled,l=t.removeProps,s=t.selectProps,u=r.Container,c=r.Label,f=r.Remove;return Re(u,{data:o,innerProps:_e(_e({},Rt(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),i),selectProps:s},Re(c,{data:o,innerProps:_e({},Rt(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},n),Re(f,{data:o,innerProps:_e(_e({},Rt(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},l),selectProps:s}))},tF=eF,nF=function(t,n){var r=t.isDisabled,o=t.isFocused,i=t.isSelected,a=t.theme,l=a.spacing,s=a.colors;return _e({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:i?s.primary:o?s.primary25:"transparent",color:r?s.neutral20:i?s.neutral0:"inherit",padding:"".concat(l.baseUnit*2,"px ").concat(l.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:i?s.primary:s.primary50}})},rF=function(t){var n=t.children,r=t.isDisabled,o=t.isFocused,i=t.isSelected,a=t.innerRef,l=t.innerProps;return Re("div",Pe({},Rt(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":o,"option--is-selected":i}),{ref:a,"aria-disabled":r},l),n)},oF=rF,iF=function(t,n){var r=t.theme,o=r.spacing,i=r.colors;return _e({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:i.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},aF=function(t){var n=t.children,r=t.innerProps;return Re("div",Pe({},Rt(t,"placeholder",{placeholder:!0}),r),n)},sF=aF,lF=function(t,n){var r=t.isDisabled,o=t.theme,i=o.spacing,a=o.colors;return _e({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?a.neutral40:a.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},uF=function(t){var n=t.children,r=t.isDisabled,o=t.innerProps;return Re("div",Pe({},Rt(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),o),n)},cF=uF,Qa={ClearIndicator:AL,Control:LL,DropdownIndicator:SL,DownChevron:Ev,CrossIcon:hf,Group:GL,GroupHeading:VL,IndicatorsContainer:yL,IndicatorSeparator:OL,Input:YL,LoadingIndicator:DL,Menu:iL,MenuList:sL,MenuPortal:pL,LoadingMessage:dL,NoOptionsMessage:cL,MultiValue:tF,MultiValueContainer:QL,MultiValueLabel:$L,MultiValueRemove:KL,Option:oF,Placeholder:sF,SelectContainer:gL,SingleValue:cF,ValueContainer:bL},dF=function(t){return _e(_e({},Qa),t.components)},Iv=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function fF(e,t){return!!(e===t||Iv(e)&&Iv(t))}function pF(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!fF(e[n],t[n]))return!1;return!0}function hF(e,t){t===void 0&&(t=pF);var n=null;function r(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var a=e.apply(this,o);return n={lastResult:a,lastArgs:o,lastThis:this},a}return r.clear=function(){n=null},r}function gF(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}for(var mF=process.env.NODE_ENV==="production"?{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"}:{name:"1f43avz-a11yText-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;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:gF},bF=function(t){return Re("span",Pe({css:mF},t))},Sv=bF,vF={guidance:function(t){var n=t.isSearchable,r=t.isMulti,o=t.tabSelectsValue,i=t.context,a=t.isInitialFocus;switch(i){case"menu":return"Use Up and Down to choose options, 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 a?"".concat(t["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" 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(t){var n=t.action,r=t.label,o=r===void 0?"":r,i=t.labels,a=t.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return a?"option ".concat(o," is disabled. Select another option."):"option ".concat(o,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,o=t.options,i=t.label,a=i===void 0?"":i,l=t.selectValue,s=t.isDisabled,u=t.isSelected,c=t.isAppleDevice,f=function(d,p){return d&&d.length?"".concat(d.indexOf(p)+1," of ").concat(d.length):""};if(n==="value"&&l)return"value ".concat(a," focused, ").concat(f(l,r),".");if(n==="menu"&&c){var b=s?" disabled":"",y="".concat(u?" selected":"").concat(b);return"".concat(a).concat(y,", ").concat(f(o,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},yF=function(t){var n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.focusableOptions,a=t.isFocused,l=t.selectValue,s=t.selectProps,u=t.id,c=t.isAppleDevice,f=s.ariaLiveMessages,b=s.getOptionLabel,y=s.inputValue,v=s.isMulti,d=s.isOptionDisabled,p=s.isSearchable,h=s.menuIsOpen,g=s.options,m=s.screenReaderStatus,E=s.tabSelectsValue,x=s.isLoading,A=s["aria-label"],T=s["aria-live"],C=S.useMemo(function(){return _e(_e({},vF),f||{})},[f]),O=S.useMemo(function(){var q="";if(n&&C.onChange){var $=n.option,ue=n.options,se=n.removedValue,ve=n.removedValues,W=n.value,te=function(Ee){return Array.isArray(Ee)?null:Ee},re=se||$||te(W),K=re?b(re):"",oe=ue||ve||void 0,de=oe?oe.map(b):[],ie=_e({isDisabled:re&&d(re,l),label:K,labels:de},n);q=C.onChange(ie)}return q},[n,C,d,l,b]),M=S.useMemo(function(){var q="",$=r||o,ue=!!(r&&l&&l.includes(r));if($&&C.onFocus){var se={focused:$,label:b($),isDisabled:d($,l),isSelected:ue,options:i,context:$===r?"menu":"value",selectValue:l,isAppleDevice:c};q=C.onFocus(se)}return q},[r,o,b,d,C,i,l,c]),B=S.useMemo(function(){var q="";if(h&&g.length&&!x&&C.onFilter){var $=m({count:i.length});q=C.onFilter({inputValue:y,resultsMessage:$})}return q},[i,y,h,C,g,m,x]),U=(n==null?void 0:n.action)==="initial-input-focus",G=S.useMemo(function(){var q="";if(C.guidance){var $=o?"value":h?"menu":"input";q=C.guidance({"aria-label":A,context:$,isDisabled:r&&d(r,l),isMulti:v,isSearchable:p,tabSelectsValue:E,isInitialFocus:U})}return q},[A,r,o,v,d,p,h,C,l,E,U]),X=Re(S.Fragment,null,Re("span",{id:"aria-selection"},O),Re("span",{id:"aria-focused"},M),Re("span",{id:"aria-results"},B),Re("span",{id:"aria-guidance"},G));return Re(S.Fragment,null,Re(Sv,{id:u},U&&X),Re(Sv,{"aria-live":T,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!U&&X))},EF=yF,mf=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],xF=new RegExp("["+mf.map(function(e){return e.letters}).join("")+"]","g"),Tv={},bf=0;bf<mf.length;bf++)for(var vf=mf[bf],yf=0;yf<vf.letters.length;yf++)Tv[vf.letters[yf]]=vf.base;var Av=function(t){return t.replace(xF,function(n){return Tv[n]})},CF=hF(Av),_v=function(t){return t.replace(/^\s+|\s+$/g,"")},wF=function(t){return"".concat(t.label," ").concat(t.value)},IF=function(t){return function(n,r){if(n.data.__isNew__)return!0;var o=_e({ignoreCase:!0,ignoreAccents:!0,stringify:wF,trim:!0,matchFrom:"any"},t),i=o.ignoreCase,a=o.ignoreAccents,l=o.stringify,s=o.trim,u=o.matchFrom,c=s?_v(r):r,f=s?_v(l(n)):l(n);return i&&(c=c.toLowerCase(),f=f.toLowerCase()),a&&(c=CF(c),f=Av(f)),u==="start"?f.substr(0,c.length)===c:f.indexOf(c)>-1}},SF=["innerRef"];function TF(e){var t=e.innerRef,n=Ar(e,SF),r=Qk(n,"onExited","in","enter","exit","appear");return Re("input",Pe({ref:t},r,{css:lf({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVmIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgcmVtb3ZlUHJvcHMgfSBmcm9tICcuLi91dGlscyc7XG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIER1bW15SW5wdXQoe1xuICBpbm5lclJlZixcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snaW5wdXQnXSAmIHtcbiAgcmVhZG9ubHkgaW5uZXJSZWY6IFJlZjxIVE1MSW5wdXRFbGVtZW50Pjtcbn0pIHtcbiAgLy8gUmVtb3ZlIGFuaW1hdGlvbiBwcm9wcyBub3QgbWVhbnQgZm9yIEhUTUwgZWxlbWVudHNcbiAgY29uc3QgZmlsdGVyZWRQcm9wcyA9IHJlbW92ZVByb3BzKFxuICAgIHByb3BzLFxuICAgICdvbkV4aXRlZCcsXG4gICAgJ2luJyxcbiAgICAnZW50ZXInLFxuICAgICdleGl0JyxcbiAgICAnYXBwZWFyJ1xuICApO1xuXG4gIHJldHVybiAoXG4gICAgPGlucHV0XG4gICAgICByZWY9e2lubmVyUmVmfVxuICAgICAgey4uLmZpbHRlcmVkUHJvcHN9XG4gICAgICBjc3M9e3tcbiAgICAgICAgbGFiZWw6ICdkdW1teUlucHV0JyxcbiAgICAgICAgLy8gZ2V0IHJpZCBvZiBhbnkgZGVmYXVsdCBzdHlsZXNcbiAgICAgICAgYmFja2dyb3VuZDogMCxcbiAgICAgICAgYm9yZGVyOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHRoaXMgaGlkZXMgdGhlIGZsYXNoaW5nIGN1cnNvclxuICAgICAgICBjYXJldENvbG9yOiAndHJhbnNwYXJlbnQnLFxuICAgICAgICBmb250U2l6ZTogJ2luaGVyaXQnLFxuICAgICAgICBncmlkQXJlYTogJzEgLyAxIC8gMiAvIDMnLFxuICAgICAgICBvdXRsaW5lOiAwLFxuICAgICAgICBwYWRkaW5nOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHdpdGhvdXQgYHdpZHRoYCBicm93c2VycyB3b24ndCBhbGxvdyBmb2N1c1xuICAgICAgICB3aWR0aDogMSxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIGRlc2t0b3BcbiAgICAgICAgY29sb3I6ICd0cmFuc3BhcmVudCcsXG5cbiAgICAgICAgLy8gcmVtb3ZlIGN1cnNvciBvbiBtb2JpbGUgd2hpbHN0IG1haW50YWluaW5nIFwic2Nyb2xsIGludG8gdmlld1wiIGJlaGF2aW91clxuICAgICAgICBsZWZ0OiAtMTAwLFxuICAgICAgICBvcGFjaXR5OiAwLFxuICAgICAgICBwb3NpdGlvbjogJ3JlbGF0aXZlJyxcbiAgICAgICAgdHJhbnNmb3JtOiAnc2NhbGUoLjAxKScsXG4gICAgICB9fVxuICAgIC8+XG4gICk7XG59XG4iXX0= */")}))}var AF=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function _F(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,a=S.useRef(!1),l=S.useRef(!1),s=S.useRef(0),u=S.useRef(null),c=S.useCallback(function(p,h){if(u.current!==null){var g=u.current,m=g.scrollTop,E=g.scrollHeight,x=g.clientHeight,A=u.current,T=h>0,C=E-x-m,O=!1;C>h&&a.current&&(r&&r(p),a.current=!1),T&&l.current&&(i&&i(p),l.current=!1),T&&h>C?(n&&!a.current&&n(p),A.scrollTop=E,O=!0,a.current=!0):!T&&-h>m&&(o&&!l.current&&o(p),A.scrollTop=0,O=!0,l.current=!0),O&&AF(p)}},[n,r,o,i]),f=S.useCallback(function(p){c(p,p.deltaY)},[c]),b=S.useCallback(function(p){s.current=p.changedTouches[0].clientY},[]),y=S.useCallback(function(p){var h=s.current-p.changedTouches[0].clientY;c(p,h)},[c]),v=S.useCallback(function(p){if(p){var h=Uk?{passive:!1}:!1;p.addEventListener("wheel",f,h),p.addEventListener("touchstart",b,h),p.addEventListener("touchmove",y,h)}},[y,b,f]),d=S.useCallback(function(p){p&&(p.removeEventListener("wheel",f,!1),p.removeEventListener("touchstart",b,!1),p.removeEventListener("touchmove",y,!1))},[y,b,f]);return S.useEffect(function(){if(t){var p=u.current;return v(p),function(){d(p)}}},[t,v,d]),function(p){u.current=p}}var Ov=["boxSizing","height","overflow","paddingRight","position"],Rv={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Nv(e){e.preventDefault()}function Dv(e){e.stopPropagation()}function Pv(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function kv(){return"ontouchstart"in window||navigator.maxTouchPoints}var Lv=!!(typeof window<"u"&&window.document&&window.document.createElement),$a=0,Bi={capture:!1,passive:!1};function OF(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,o=S.useRef({}),i=S.useRef(null),a=S.useCallback(function(s){if(Lv){var u=document.body,c=u&&u.style;if(r&&Ov.forEach(function(v){var d=c&&c[v];o.current[v]=d}),r&&$a<1){var f=parseInt(o.current.paddingRight,10)||0,b=document.body?document.body.clientWidth:0,y=window.innerWidth-b+f||0;Object.keys(Rv).forEach(function(v){var d=Rv[v];c&&(c[v]=d)}),c&&(c.paddingRight="".concat(y,"px"))}u&&kv()&&(u.addEventListener("touchmove",Nv,Bi),s&&(s.addEventListener("touchstart",Pv,Bi),s.addEventListener("touchmove",Dv,Bi))),$a+=1}},[r]),l=S.useCallback(function(s){if(Lv){var u=document.body,c=u&&u.style;$a=Math.max($a-1,0),r&&$a<1&&Ov.forEach(function(f){var b=o.current[f];c&&(c[f]=b)}),u&&kv()&&(u.removeEventListener("touchmove",Nv,Bi),s&&(s.removeEventListener("touchstart",Pv,Bi),s.removeEventListener("touchmove",Dv,Bi)))}},[r]);return S.useEffect(function(){if(t){var s=i.current;return a(s),function(){l(s)}}},[t,a,l]),function(s){i.current=s}}function RF(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var NF=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},DF=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:RF};function PF(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=r===void 0?!0:r,i=e.onBottomArrive,a=e.onBottomLeave,l=e.onTopArrive,s=e.onTopLeave,u=_F({isEnabled:o,onBottomArrive:i,onBottomLeave:a,onTopArrive:l,onTopLeave:s}),c=OF({isEnabled:n}),f=function(y){u(y),c(y)};return Re(S.Fragment,null,n&&Re("div",{onClick:NF,css:DF}),t(f))}function kF(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var LF=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:kF},FF=function(t){var n=t.name,r=t.onFocus;return Re("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:LF,value:"",onChange:function(){}})},MF=FF;function Ef(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function BF(){return Ef(/^iPhone/i)}function Fv(){return Ef(/^Mac/i)}function jF(){return Ef(/^iPad/i)||Fv()&&navigator.maxTouchPoints>1}function VF(){return BF()||jF()}function GF(){return Fv()||VF()}var WF=function(t){return t.label},HF=function(t){return t.label},zF=function(t){return t.value},XF=function(t){return!!t.isDisabled},ZF={clearIndicator:TL,container:hL,control:PL,dropdownIndicator:IL,group:ML,groupHeading:jL,indicatorsContainer:vL,indicatorSeparator:_L,input:HL,loadingIndicator:NL,loadingMessage:uL,menu:nL,menuList:aL,menuPortal:fL,multiValue:UL,multiValueLabel:qL,multiValueRemove:JL,noOptionsMessage:lL,option:nF,placeholder:iF,singleValue:lF,valueContainer:mL},YF={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%)"},UF=4,Mv=4,qF=38,JF=Mv*2,QF={baseUnit:Mv,controlHeight:qF,menuGutter:JF},xf={borderRadius:UF,colors:YF,spacing:QF},$F={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:pv(),captureMenuScroll:!pv(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:IF(),formatGroupLabel:WF,getOptionLabel:HF,getOptionValue:zF,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:XF,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Zk(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Bv(e,t,n,r){var o=Hv(e,t,n),i=zv(e,t,n),a=Wv(e,t),l=su(e,t);return{type:"option",data:t,isDisabled:o,isSelected:i,label:a,value:l,index:r}}function au(e,t){return e.options.map(function(n,r){if("options"in n){var o=n.options.map(function(a,l){return Bv(e,a,t,l)}).filter(function(a){return Gv(e,a)});return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=Bv(e,n,t,r);return Gv(e,i)?i:void 0}).filter(qk)}function jv(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,Qd(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function Vv(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,Qd(r.options.map(function(o){return{data:o.data,id:"".concat(t,"-").concat(r.index,"-").concat(o.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function KF(e,t){return jv(au(e,t))}function Gv(e,t){var n=e.inputValue,r=n===void 0?"":n,o=t.data,i=t.isSelected,a=t.label,l=t.value;return(!Zv(e)||!i)&&Xv(e,{label:a,value:l,data:o},r)}function e5(e,t){var n=e.focusedValue,r=e.selectValue,o=r.indexOf(n);if(o>-1){var i=t.indexOf(n);if(i>-1)return n;if(o<t.length)return t[o]}return null}function t5(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var Cf=function(t,n){var r,o=(r=t.find(function(i){return i.data===n}))===null||r===void 0?void 0:r.id;return o||null},Wv=function(t,n){return t.getOptionLabel(n)},su=function(t,n){return t.getOptionValue(n)};function Hv(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function zv(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=su(e,t);return n.some(function(o){return su(e,o)===r})}function Xv(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var Zv=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},n5=1,wf=function(e){hP(n,e);var t=bP(n);function n(r){var o;if(fP(this,n),o=t.call(this,r),o.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.isAppleDevice=GF(),o.controlRef=null,o.getControlRef=function(s){o.controlRef=s},o.focusedOptionRef=null,o.getFocusedOptionRef=function(s){o.focusedOptionRef=s},o.menuListRef=null,o.getMenuListRef=function(s){o.menuListRef=s},o.inputRef=null,o.getInputRef=function(s){o.inputRef=s},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(s,u){var c=o.props,f=c.onChange,b=c.name;u.name=b,o.ariaOnChange(s,u),f(s,u)},o.setValue=function(s,u,c){var f=o.props,b=f.closeMenuOnSelect,y=f.isMulti,v=f.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:v}),b&&(o.setState({inputIsHiddenAfterUpdate:!y}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(s,{action:u,option:c})},o.selectOption=function(s){var u=o.props,c=u.blurInputOnSelect,f=u.isMulti,b=u.name,y=o.state.selectValue,v=f&&o.isOptionSelected(s,y),d=o.isOptionDisabled(s,y);if(v){var p=o.getOptionValue(s);o.setValue(y.filter(function(h){return o.getOptionValue(h)!==p}),"deselect-option",s)}else if(!d)f?o.setValue([].concat(Qd(y),[s]),"select-option",s):o.setValue(s,"select-option");else{o.ariaOnChange(s,{action:"select-option",option:s,name:b});return}c&&o.blurInput()},o.removeValue=function(s){var u=o.props.isMulti,c=o.state.selectValue,f=o.getOptionValue(s),b=c.filter(function(v){return o.getOptionValue(v)!==f}),y=iu(u,b,b[0]||null);o.onChange(y,{action:"remove-value",removedValue:s}),o.focusInput()},o.clearValue=function(){var s=o.state.selectValue;o.onChange(iu(o.props.isMulti,[],null),{action:"clear",removedValues:s})},o.popValue=function(){var s=o.props.isMulti,u=o.state.selectValue,c=u[u.length-1],f=u.slice(0,u.length-1),b=iu(s,f,f[0]||null);c&&o.onChange(b,{action:"pop-value",removedValue:c})},o.getFocusedOptionId=function(s){return Cf(o.state.focusableOptionsWithIds,s)},o.getFocusableOptionsWithIds=function(){return Vv(au(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var s=arguments.length,u=new Array(s),c=0;c<s;c++)u[c]=arguments[c];return Vk.apply(void 0,[o.props.classNamePrefix].concat(u))},o.getOptionLabel=function(s){return Wv(o.props,s)},o.getOptionValue=function(s){return su(o.props,s)},o.getStyles=function(s,u){var c=o.props.unstyled,f=ZF[s](u,c);f.boxSizing="border-box";var b=o.props.styles[s];return b?b(f,u):f},o.getClassNames=function(s,u){var c,f;return(c=(f=o.props.classNames)[s])===null||c===void 0?void 0:c.call(f,u)},o.getElementId=function(s){return"".concat(o.state.instancePrefix,"-").concat(s)},o.getComponents=function(){return dF(o.props)},o.buildCategorizedOptions=function(){return au(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return jv(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(s,u){o.setState({ariaSelection:_e({value:s},u)})},o.onMenuMouseDown=function(s){s.button===0&&(s.stopPropagation(),s.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(s){o.blockOptionHover=!1},o.onControlMouseDown=function(s){if(!s.defaultPrevented){var u=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?s.target.tagName!=="INPUT"&&s.target.tagName!=="TEXTAREA"&&o.onMenuClose():u&&o.openMenu("first"):(u&&(o.openAfterFocus=!0),o.focusInput()),s.target.tagName!=="INPUT"&&s.target.tagName!=="TEXTAREA"&&s.preventDefault()}},o.onDropdownIndicatorMouseDown=function(s){if(!(s&&s.type==="mousedown"&&s.button!==0)&&!o.props.isDisabled){var u=o.props,c=u.isMulti,f=u.menuIsOpen;o.focusInput(),f?(o.setState({inputIsHiddenAfterUpdate:!c}),o.onMenuClose()):o.openMenu("first"),s.preventDefault()}},o.onClearIndicatorMouseDown=function(s){s&&s.type==="mousedown"&&s.button!==0||(o.clearValue(),s.preventDefault(),o.openAfterFocus=!1,s.type==="touchend"?o.focusInput():setTimeout(function(){return o.focusInput()}))},o.onScroll=function(s){typeof o.props.closeMenuOnScroll=="boolean"?s.target instanceof HTMLElement&&tu(s.target)&&o.props.onMenuClose():typeof o.props.closeMenuOnScroll=="function"&&o.props.closeMenuOnScroll(s)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(s){var u=s.touches,c=u&&u.item(0);c&&(o.initialTouchX=c.clientX,o.initialTouchY=c.clientY,o.userIsDragging=!1)},o.onTouchMove=function(s){var u=s.touches,c=u&&u.item(0);if(c){var f=Math.abs(c.clientX-o.initialTouchX),b=Math.abs(c.clientY-o.initialTouchY),y=5;o.userIsDragging=f>y||b>y}},o.onTouchEnd=function(s){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(s.target)&&o.menuListRef&&!o.menuListRef.contains(s.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(s){o.userIsDragging||o.onControlMouseDown(s)},o.onClearIndicatorTouchEnd=function(s){o.userIsDragging||o.onClearIndicatorMouseDown(s)},o.onDropdownIndicatorTouchEnd=function(s){o.userIsDragging||o.onDropdownIndicatorMouseDown(s)},o.handleInputChange=function(s){var u=o.props.inputValue,c=s.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(c,{action:"input-change",prevInputValue:u}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(s){o.props.onFocus&&o.props.onFocus(s),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(s){var u=o.props.inputValue;if(o.menuListRef&&o.menuListRef.contains(document.activeElement)){o.inputRef.focus();return}o.props.onBlur&&o.props.onBlur(s),o.onInputChange("",{action:"input-blur",prevInputValue:u}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1})},o.onOptionHover=function(s){if(!(o.blockOptionHover||o.state.focusedOption===s)){var u=o.getFocusableOptions(),c=u.indexOf(s);o.setState({focusedOption:s,focusedOptionId:c>-1?o.getFocusedOptionId(s):null})}},o.shouldHideSelectedOptions=function(){return Zv(o.props)},o.onValueInputFocus=function(s){s.preventDefault(),s.stopPropagation(),o.focus()},o.onKeyDown=function(s){var u=o.props,c=u.isMulti,f=u.backspaceRemovesValue,b=u.escapeClearsValue,y=u.inputValue,v=u.isClearable,d=u.isDisabled,p=u.menuIsOpen,h=u.onKeyDown,g=u.tabSelectsValue,m=u.openMenuOnFocus,E=o.state,x=E.focusedOption,A=E.focusedValue,T=E.selectValue;if(!d&&!(typeof h=="function"&&(h(s),s.defaultPrevented))){switch(o.blockOptionHover=!0,s.key){case"ArrowLeft":if(!c||y)return;o.focusValue("previous");break;case"ArrowRight":if(!c||y)return;o.focusValue("next");break;case"Delete":case"Backspace":if(y)return;if(A)o.removeValue(A);else{if(!f)return;c?o.popValue():v&&o.clearValue()}break;case"Tab":if(o.isComposing||s.shiftKey||!p||!g||!x||m&&o.isOptionSelected(x,T))return;o.selectOption(x);break;case"Enter":if(s.keyCode===229)break;if(p){if(!x||o.isComposing)return;o.selectOption(x);break}return;case"Escape":p?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:y}),o.onMenuClose()):v&&b&&o.clearValue();break;case" ":if(y)return;if(!p){o.openMenu("first");break}if(!x)return;o.selectOption(x);break;case"ArrowUp":p?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":p?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!p)return;o.focusOption("pageup");break;case"PageDown":if(!p)return;o.focusOption("pagedown");break;case"Home":if(!p)return;o.focusOption("first");break;case"End":if(!p)return;o.focusOption("last");break;default:return}s.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++n5),o.state.selectValue=uv(r.value),r.menuIsOpen&&o.state.selectValue.length){var i=o.getFocusableOptionsWithIds(),a=o.buildFocusableOptions(),l=a.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=i,o.state.focusedOption=a[l],o.state.focusedOptionId=Cf(i,a[l])}return o}return pP(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&&fv(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(o){var i=this.props,a=i.isDisabled,l=i.menuIsOpen,s=this.state.isFocused;(s&&!a&&o.isDisabled||s&&l&&!o.menuIsOpen)&&this.focusInput(),s&&a&&!o.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!s&&!a&&o.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(fv(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(o,i){this.props.onInputChange(o,i)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(o){var i=this,a=this.state,l=a.selectValue,s=a.isFocused,u=this.buildFocusableOptions(),c=o==="first"?0:u.length-1;if(!this.props.isMulti){var f=u.indexOf(l[0]);f>-1&&(c=f)}this.scrollToFocusedOptionOnUpdate=!(s&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:u[c],focusedOptionId:this.getFocusedOptionId(u[c])},function(){return i.onMenuOpen()})}},{key:"focusValue",value:function(o){var i=this.state,a=i.selectValue,l=i.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var s=a.indexOf(l);l||(s=-1);var u=a.length-1,c=-1;if(a.length){switch(o){case"previous":s===0?c=0:s===-1?c=u:c=s-1;break;case"next":s>-1&&s<u&&(c=s+1);break}this.setState({inputIsHidden:c!==-1,focusedValue:a[c]})}}}},{key:"focusOption",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",i=this.props.pageSize,a=this.state.focusedOption,l=this.getFocusableOptions();if(l.length){var s=0,u=l.indexOf(a);a||(u=-1),o==="up"?s=u>0?u-1:l.length-1:o==="down"?s=(u+1)%l.length:o==="pageup"?(s=u-i,s<0&&(s=0)):o==="pagedown"?(s=u+i,s>l.length-1&&(s=l.length-1)):o==="last"&&(s=l.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:l[s],focusedValue:null,focusedOptionId:this.getFocusedOptionId(l[s])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(xf):_e(_e({},xf),this.props.theme):xf}},{key:"getCommonProps",value:function(){var o=this.clearValue,i=this.cx,a=this.getStyles,l=this.getClassNames,s=this.getValue,u=this.selectOption,c=this.setValue,f=this.props,b=f.isMulti,y=f.isRtl,v=f.options,d=this.hasValue();return{clearValue:o,cx:i,getStyles:a,getClassNames:l,getValue:s,hasValue:d,isMulti:b,isRtl:y,options:v,selectOption:u,selectProps:f,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var o=this.state.selectValue;return o.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var o=this.props,i=o.isClearable,a=o.isMulti;return i===void 0?a:i}},{key:"isOptionDisabled",value:function(o,i){return Hv(this.props,o,i)}},{key:"isOptionSelected",value:function(o,i){return zv(this.props,o,i)}},{key:"filterOption",value:function(o,i){return Xv(this.props,o,i)}},{key:"formatOptionLabel",value:function(o,i){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,l=this.state.selectValue;return this.props.formatOptionLabel(o,{context:i,inputValue:a,selectValue:l})}else return this.getOptionLabel(o)}},{key:"formatGroupLabel",value:function(o){return this.props.formatGroupLabel(o)}},{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 o=this.props,i=o.isDisabled,a=o.isSearchable,l=o.inputId,s=o.inputValue,u=o.tabIndex,c=o.form,f=o.menuIsOpen,b=o.required,y=this.getComponents(),v=y.Input,d=this.state,p=d.inputIsHidden,h=d.ariaSelection,g=this.commonProps,m=l||this.getElementId("input"),E=_e(_e(_e({"aria-autocomplete":"list","aria-expanded":f,"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":b,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},f&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?(h==null?void 0:h.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?P.createElement(v,Pe({},g,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:i,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:c,type:"text",value:s},E)):P.createElement(TF,Pe({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:eu,onFocus:this.onInputFocus,disabled:i,tabIndex:u,inputMode:"none",form:c,value:""},E))}},{key:"renderPlaceholderOrValue",value:function(){var o=this,i=this.getComponents(),a=i.MultiValue,l=i.MultiValueContainer,s=i.MultiValueLabel,u=i.MultiValueRemove,c=i.SingleValue,f=i.Placeholder,b=this.commonProps,y=this.props,v=y.controlShouldRenderValue,d=y.isDisabled,p=y.isMulti,h=y.inputValue,g=y.placeholder,m=this.state,E=m.selectValue,x=m.focusedValue,A=m.isFocused;if(!this.hasValue()||!v)return h?null:P.createElement(f,Pe({},b,{key:"placeholder",isDisabled:d,isFocused:A,innerProps:{id:this.getElementId("placeholder")}}),g);if(p)return E.map(function(C,O){var M=C===x,B="".concat(o.getOptionLabel(C),"-").concat(o.getOptionValue(C));return P.createElement(a,Pe({},b,{components:{Container:l,Label:s,Remove:u},isFocused:M,isDisabled:d,key:B,index:O,removeProps:{onClick:function(){return o.removeValue(C)},onTouchEnd:function(){return o.removeValue(C)},onMouseDown:function(G){G.preventDefault()}},data:C}),o.formatOptionLabel(C,"value"))});if(h)return null;var T=E[0];return P.createElement(c,Pe({},b,{data:T,isDisabled:d}),this.formatOptionLabel(T,"value"))}},{key:"renderClearIndicator",value:function(){var o=this.getComponents(),i=o.ClearIndicator,a=this.commonProps,l=this.props,s=l.isDisabled,u=l.isLoading,c=this.state.isFocused;if(!this.isClearable()||!i||s||!this.hasValue()||u)return null;var f={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return P.createElement(i,Pe({},a,{innerProps:f,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var o=this.getComponents(),i=o.LoadingIndicator,a=this.commonProps,l=this.props,s=l.isDisabled,u=l.isLoading,c=this.state.isFocused;if(!i||!u)return null;var f={"aria-hidden":"true"};return P.createElement(i,Pe({},a,{innerProps:f,isDisabled:s,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator,a=o.IndicatorSeparator;if(!i||!a)return null;var l=this.commonProps,s=this.props.isDisabled,u=this.state.isFocused;return P.createElement(a,Pe({},l,{isDisabled:s,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator;if(!i)return null;var a=this.commonProps,l=this.props.isDisabled,s=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return P.createElement(i,Pe({},a,{innerProps:u,isDisabled:l,isFocused:s}))}},{key:"renderMenu",value:function(){var o=this,i=this.getComponents(),a=i.Group,l=i.GroupHeading,s=i.Menu,u=i.MenuList,c=i.MenuPortal,f=i.LoadingMessage,b=i.NoOptionsMessage,y=i.Option,v=this.commonProps,d=this.state.focusedOption,p=this.props,h=p.captureMenuScroll,g=p.inputValue,m=p.isLoading,E=p.loadingMessage,x=p.minMenuHeight,A=p.maxMenuHeight,T=p.menuIsOpen,C=p.menuPlacement,O=p.menuPosition,M=p.menuPortalTarget,B=p.menuShouldBlockScroll,U=p.menuShouldScrollIntoView,G=p.noOptionsMessage,X=p.onMenuScrollToTop,q=p.onMenuScrollToBottom;if(!T)return null;var $=function(K,oe){var de=K.type,ie=K.data,ge=K.isDisabled,Ee=K.isSelected,Ae=K.label,me=K.value,ze=d===ie,V=ge?void 0:function(){return o.onOptionHover(ie)},Ye=ge?void 0:function(){return o.selectOption(ie)},Le="".concat(o.getElementId("option"),"-").concat(oe),Ue={id:Le,onClick:Ye,onMouseMove:V,onMouseOver:V,tabIndex:-1,role:"option","aria-selected":o.isAppleDevice?void 0:Ee};return P.createElement(y,Pe({},v,{innerProps:Ue,data:ie,isDisabled:ge,isSelected:Ee,key:Le,label:Ae,type:de,value:me,isFocused:ze,innerRef:ze?o.getFocusedOptionRef:void 0}),o.formatOptionLabel(K.data,"menu"))},ue;if(this.hasOptions())ue=this.getCategorizedOptions().map(function(re){if(re.type==="group"){var K=re.data,oe=re.options,de=re.index,ie="".concat(o.getElementId("group"),"-").concat(de),ge="".concat(ie,"-heading");return P.createElement(a,Pe({},v,{key:ie,data:K,options:oe,Heading:l,headingProps:{id:ge,data:re.data},label:o.formatGroupLabel(re.data)}),re.options.map(function(Ee){return $(Ee,"".concat(de,"-").concat(Ee.index))}))}else if(re.type==="option")return $(re,"".concat(re.index))});else if(m){var se=E({inputValue:g});if(se===null)return null;ue=P.createElement(f,v,se)}else{var ve=G({inputValue:g});if(ve===null)return null;ue=P.createElement(b,v,ve)}var W={minMenuHeight:x,maxMenuHeight:A,menuPlacement:C,menuPosition:O,menuShouldScrollIntoView:U},te=P.createElement(rL,Pe({},v,W),function(re){var K=re.ref,oe=re.placerProps,de=oe.placement,ie=oe.maxHeight;return P.createElement(s,Pe({},v,W,{innerRef:K,innerProps:{onMouseDown:o.onMenuMouseDown,onMouseMove:o.onMenuMouseMove},isLoading:m,placement:de}),P.createElement(PF,{captureEnabled:h,onTopArrive:X,onBottomArrive:q,lockEnabled:B},function(ge){return P.createElement(u,Pe({},v,{innerRef:function(Ae){o.getMenuListRef(Ae),ge(Ae)},innerProps:{role:"listbox","aria-multiselectable":v.isMulti,id:o.getElementId("listbox")},isLoading:m,maxHeight:ie,focusedOption:d}),ue)}))});return M||O==="fixed"?P.createElement(c,Pe({},v,{appendTo:M,controlElement:this.controlRef,menuPlacement:C,menuPosition:O}),te):te}},{key:"renderFormField",value:function(){var o=this,i=this.props,a=i.delimiter,l=i.isDisabled,s=i.isMulti,u=i.name,c=i.required,f=this.state.selectValue;if(c&&!this.hasValue()&&!l)return P.createElement(MF,{name:u,onFocus:this.onValueInputFocus});if(!(!u||l))if(s)if(a){var b=f.map(function(d){return o.getOptionValue(d)}).join(a);return P.createElement("input",{name:u,type:"hidden",value:b})}else{var y=f.length>0?f.map(function(d,p){return P.createElement("input",{key:"i-".concat(p),name:u,type:"hidden",value:o.getOptionValue(d)})}):P.createElement("input",{name:u,type:"hidden",value:""});return P.createElement("div",null,y)}else{var v=f[0]?this.getOptionValue(f[0]):"";return P.createElement("input",{name:u,type:"hidden",value:v})}}},{key:"renderLiveRegion",value:function(){var o=this.commonProps,i=this.state,a=i.ariaSelection,l=i.focusedOption,s=i.focusedValue,u=i.isFocused,c=i.selectValue,f=this.getFocusableOptions();return P.createElement(EF,Pe({},o,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:l,focusedValue:s,isFocused:u,selectValue:c,focusableOptions:f,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var o=this.getComponents(),i=o.Control,a=o.IndicatorsContainer,l=o.SelectContainer,s=o.ValueContainer,u=this.props,c=u.className,f=u.id,b=u.isDisabled,y=u.menuIsOpen,v=this.state.isFocused,d=this.commonProps=this.getCommonProps();return P.createElement(l,Pe({},d,{className:c,innerProps:{id:f,onKeyDown:this.onKeyDown},isDisabled:b,isFocused:v}),this.renderLiveRegion(),P.createElement(i,Pe({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:b,isFocused:v,menuIsOpen:y}),P.createElement(s,Pe({},d,{isDisabled:b}),this.renderPlaceholderOrValue(),this.renderInput()),P.createElement(a,Pe({},d,{isDisabled:b}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(o,i){var a=i.prevProps,l=i.clearFocusValueOnUpdate,s=i.inputIsHiddenAfterUpdate,u=i.ariaSelection,c=i.isFocused,f=i.prevWasFocused,b=i.instancePrefix,y=o.options,v=o.value,d=o.menuIsOpen,p=o.inputValue,h=o.isMulti,g=uv(v),m={};if(a&&(v!==a.value||y!==a.options||d!==a.menuIsOpen||p!==a.inputValue)){var E=d?KF(o,g):[],x=d?Vv(au(o,g),"".concat(b,"-option")):[],A=l?e5(i,g):null,T=t5(i,E),C=Cf(x,T);m={selectValue:g,focusedOption:T,focusedOptionId:C,focusableOptionsWithIds:x,focusedValue:A,clearFocusValueOnUpdate:!1}}var O=s!=null&&o!==a?{inputIsHidden:s,inputIsHiddenAfterUpdate:void 0}:{},M=u,B=c&&f;return c&&!B&&(M={value:iu(h,g,g[0]||null),options:g,action:"initial-input-focus"},B=!f),(u==null?void 0:u.action)==="initial-input-focus"&&(M=null),_e(_e(_e({},m),O),{},{prevProps:o,ariaSelection:M,prevWasFocused:B})}}]),n}(S.Component);wf.defaultProps=$F;var r5=S.forwardRef(function(e,t){var n=Nb(e);return P.createElement(wf,Pe({ref:t},n))}),o5=r5;const i5=w.styled(w.Box)`
|
|
960
960
|
display: flex;
|
|
961
961
|
align-items: center;
|
|
962
962
|
gap: 2px;
|
|
@@ -1127,12 +1127,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1127
1127
|
position: absolute;
|
|
1128
1128
|
margin-left: 5px;
|
|
1129
1129
|
}
|
|
1130
|
-
`;var p5=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function h5(e){var t=e.defaultOptions,n=t===void 0?!1:t,r=e.cacheOptions,o=r===void 0?!1:r,i=e.loadOptions;e.options;var a=e.isLoading,
|
|
1130
|
+
`;var p5=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function h5(e){var t=e.defaultOptions,n=t===void 0?!1:t,r=e.cacheOptions,o=r===void 0?!1:r,i=e.loadOptions;e.options;var a=e.isLoading,l=a===void 0?!1:a,s=e.onInputChange,u=e.filterOption,c=u===void 0?null:u,f=Ar(e,p5),b=f.inputValue,y=S.useRef(void 0),v=S.useRef(!1),d=S.useState(Array.isArray(n)?n:void 0),p=$t(d,2),h=p[0],g=p[1],m=S.useState(typeof b<"u"?b:""),E=$t(m,2),x=E[0],A=E[1],T=S.useState(n===!0),C=$t(T,2),O=C[0],M=C[1],B=S.useState(void 0),U=$t(B,2),G=U[0],X=U[1],q=S.useState([]),$=$t(q,2),ue=$[0],se=$[1],ve=S.useState(!1),W=$t(ve,2),te=W[0],re=W[1],K=S.useState({}),oe=$t(K,2),de=oe[0],ie=oe[1],ge=S.useState(void 0),Ee=$t(ge,2),Ae=Ee[0],me=Ee[1],ze=S.useState(void 0),V=$t(ze,2),Ye=V[0],Le=V[1];o!==Ye&&(ie({}),Le(o)),n!==Ae&&(g(Array.isArray(n)?n:void 0),me(n)),S.useEffect(function(){return v.current=!0,function(){v.current=!1}},[]);var Ue=S.useCallback(function(kt,Ut){if(!i)return Ut();var mt=i(kt,Ut);mt&&typeof mt.then=="function"&&mt.then(Ut,function(){return Ut()})},[i]);S.useEffect(function(){n===!0&&Ue(x,function(kt){v.current&&(g(kt||[]),M(!!y.current))})},[]);var Pt=S.useCallback(function(kt,Ut){var mt=Gk(kt,Ut,s);if(!mt){y.current=void 0,A(""),X(""),se([]),M(!1),re(!1);return}if(o&&de[mt])A(mt),X(mt),se(de[mt]),M(!1),re(!1);else{var zn=y.current={};A(mt),M(!0),re(!G),Ue(mt,function(cn){v&&zn===y.current&&(y.current=void 0,M(!1),X(mt),se(cn||[]),re(!1),ie(cn?_e(_e({},de),{},ki({},mt,cn)):de))})}},[o,Ue,G,de,s]),Nn=te?[]:x&&G?ue:h||[];return _e(_e({},f),{},{options:Nn,isLoading:O||l,onInputChange:Pt,filterOption:c})}var g5=S.forwardRef(function(e,t){var n=h5(e),r=Nb(n);return P.createElement(wf,Pe({ref:t},r))}),m5=g5;function b5(e){return I.jsx(Qa.DropdownIndicator,{...e,children:I.jsx(w.Icon,{children:e.selectProps.menuIsOpen?I.jsx(w.icons.ArrowDropUp,{}):I.jsx(w.icons.ArrowDropDown,{})})})}function v5(e){const[t,n]=S.useState([]),[r,o]=S.useState(""),[i,a]=S.useState(!1),{loadOptions:l,isApiSearchEnabled:s=!1,isInfiniteScrollable:u=!1,loadOptionsOnFocus:c=!1}=e,f=(h,g)=>{if(o(h),t.length>0&&!s){const E=t.filter(x=>x&&typeof x=="object"&&"label"in x&&typeof x.label=="string"?x.label.toLowerCase().includes(h.toLowerCase()):!1);g(E);return}const m=E=>{g(E),n(E)};l==null||l(h,m,!1)},b=(h,g)=>{a(!1),!(g&&"isError"in g&&g.isError)&&n(h)},y=h=>{var g;(g=e.onMenuScrollToBottom)==null||g.call(e,h),u&&l&&!i&&(a(!0),l(r,b,!0))},v=(h,g)=>{var m;(m=e.onInputChange)==null||m.call(e,h,g),g.action==="input-change"&&s&&(o(h),n([]))},d=h=>{var g;o(""),(g=e.onBlur)==null||g.call(e,h)},p=h=>{var g;(g=e.onFocus)==null||g.call(e,h),!i&&c&&(n([]),a(!0),l==null||l(r,b,!1))};return I.jsx(m5,{...e,value:e.value?e.value:null,isDisabled:e.disabled,loadOptions:f,onMenuScrollToBottom:y,onInputChange:v,onBlur:d,onFocus:p,isLoading:i,defaultOptions:t.length?t:e.defaultOptions||!1,components:{ClearIndicator:Uv,DropdownIndicator:b5,IndicatorSeparator:()=>null,Option:Yv}})}function y5(e){const[t,n]=S.useState(!1),r=S.useRef(null);S.useEffect(()=>{t&&r.current&&r.current.focus()},[t]);const o=(i,a)=>{i===null&&e.onChange(i,a),i&&typeof i.getTime=="function"&&!isNaN(i.getTime())&&e.onChange(i,a),e.onChange(i,a)};return I.jsx(w.DatePicker,{inputFormat:e.inputFormat?e.inputFormat:$v.DATE,...e,value:e.value||null,open:t,onOpen:()=>n(!0),onClose:()=>n(!1),onChange:o,PopperProps:{anchorEl:r.current},renderInput:i=>I.jsx(w.DateTextField,{...i,fullWidth:!0,variant:"outlined",disabled:e.disabled,inputRef:r,inputProps:{...i.inputProps,placeholder:e.placeholder},onBlur:e.onBlur,onFocus:e.onFocus,InputProps:{endAdornment:I.jsx(w.InputAdornment,{position:"end",sx:{backgroundColor:"#FFFFFF",cursor:"pointer"},children:I.jsx(w.icons.CalendarTodayOutlinedIcon,{})})},sx:{"& .MuiOutlinedInput-root":{backgroundColor:"#FFFFFF"}},onClick:()=>{t||n(!0)}})})}const E5=e=>{const{validation:t,helperText:n,id:r,label:o,name:i,validateOnBlur:a=!0,validateOnChange:l=!0,inputChangeHandler:s,selectChangeHandler:u,dateChangeHandler:c,onValidationError:f,iconData:b,isRequired:y,labelSpacing:v=1,loadOptions:d,showGlobalLoader:p=!1}=e,[h,g]=S.useState(!1),[m,E]=S.useState("");S.useEffect(()=>{h||A(e.value,!1)},[h,e.value]);const x=G=>{G&&!h&&g(!0)};function A(G,X=!0,q){let $="";if((t!=null&&t.isRequired||y)&&($=G?"":Qv,!G&&typeof(t==null?void 0:t.isRequired)=="function")){const se=t.isRequired(G);se&&typeof se=="boolean"?$=Qv:se&&($=se)}let ue={id:r,name:i,label:o};if(e.type==="date"?ue={...ue,disableFuture:e.disableFuture,disablePast:e.disablePast}:e.type==="number"?ue={...ue,min:e.min,max:e.max}:e.type==="text"&&e.multiline&&(ue={...ue,maxCharacters:e.maxCharacters}),G&&!$&&(t!=null&&t.validate)){const se=t.validate(G,{...ue,...q});typeof se=="boolean"&&se===!1?$=u5:typeof se=="string"&&($=se)}X&&E($),f==null||f(i,$)}const T=G=>{var X;h||g(!0),(X=e.onBlur)==null||X.call(e,G),h&&a&&A(e.value)},C=()=>e.helperText?I.jsx(ey,{children:n}):h&&m?I.jsx(ey,{className:"helper--error",children:m}):null,O=G=>{G&&!h&&g(!0),s==null||s(G),h&&l&&A(G.target.value)},M=(G,X)=>{u==null||u(G,X),G&&!h&&g(!0),G&&typeof G=="object"&&"value"in G&&h&&l&&A(G.value)},B=(G,X)=>{c==null||c(i,G,X),G&&!h&&g(!0),h&&l&&A(G)},U=G=>{if(p)return I.jsx(w.Skeleton,{variant:"rounded",height:29.69,animation:"wave"});switch(G.type){case"select":return I.jsx(Kv,{children:I.jsx(Jv,{...G,className:`formField__select ${m&&h?"formField__select--error":""} ${G.className||""}`,classNamePrefix:"hiverFormField",onBlur:T,onChange:M,onFocus:x})});case"async-select":return I.jsx(Kv,{children:I.jsx(v5,{...G,className:`formField__select ${m&&h?"formField__select--error":""} ${G.className||""}`,classNamePrefix:"hiverFormField",onBlur:T,onChange:M,onFocus:x,loadOptions:d})});case"date":return I.jsx(y5,{...G,label:void 0,onBlur:T,onFocus:x,onChange:B,error:!!(m&&h)});default:return I.jsx(d5,{variant:"outlined",fullWidth:!0,id:r,...G,label:void 0,onBlur:T,onChange:O,onFocus:x,error:!!(m&&h),inputProps:{type:G.type,min:G.min,max:G.max,...G.inputProps}})}};return I.jsxs(w.Stack,{spacing:v,useFlexGap:!0,children:[o?I.jsxs(w.Typography,{variant:"h4",component:"label",htmlFor:r,color:w.theme.palette.gray.gray1,className:"hiver__field--label",children:[o,t!=null&&t.isRequired||y?I.jsx("span",{className:"required__star",children:"*"}):null]}):null,I.jsxs(f5,{children:[I.jsx(w.Tooltip,{title:e.toolTipTitle,arrow:!0,placement:"right-end",disableHoverListener:!0,children:U(e)}),b!=null&&b.icon?I.jsx(w.Tooltip,{title:b.toolTipText,placement:"bottom",children:I.jsx(w.IconButton,{className:"form--sideIcon",children:b==null?void 0:b.icon})}):null,C()]})]})},x5=w.styled(w.Stack)`
|
|
1131
1131
|
& .authform__section-title {
|
|
1132
1132
|
margin-top: 32px;
|
|
1133
1133
|
margin-bottom: -12px;
|
|
1134
1134
|
}
|
|
1135
|
-
`,ty=({formConfig:e,icons:t,selectChangeHandler:n,inputChangeHandler:r,dateChangeHandler:o,predicates:i,values:a,validations:
|
|
1135
|
+
`,ty=({formConfig:e,icons:t,selectChangeHandler:n,inputChangeHandler:r,dateChangeHandler:o,predicates:i,values:a,validations:l,onValidationError:s,sectionSpacing:u=3,fieldsSpacing:c=3,labelSpacing:f=1,fetchConfig:b,showGlobalLoader:y=!1})=>{const v=d=>(p,h)=>{n==null||n(p,h,d)};return I.jsx(x5,{spacing:u,children:e.map(({id:d,title:p,formFields:h})=>I.jsxs(S.Fragment,{children:[p?I.jsx(w.Typography,{variant:"h3",className:"authform__section-title",children:p}):null,I.jsx(w.Stack,{useFlexGap:!0,spacing:c,children:h.map(g=>{var m,E;return i&&typeof i=="object"&&g.name in i&&i[g.name]===!1?null:I.jsx(E5,{value:a==null?void 0:a[g.name],...g,selectChangeHandler:v(g),inputChangeHandler:r,dateChangeHandler:o,validation:l==null?void 0:l[g.name],onValidationError:s,iconData:t==null?void 0:t[g.name],labelSpacing:f,loadOptions:(m=b==null?void 0:b[g.name])==null?void 0:m.loadOptions,showGlobalLoader:y},((E=b==null?void 0:b[g.name])==null?void 0:E.key)||g.name)})})]},d))})},C5=w.styled(w.Box)`
|
|
1136
1136
|
width: 100%;
|
|
1137
1137
|
aspect-ratio: ${({aspectRatio:e})=>e};
|
|
1138
1138
|
border-radius: 8px;
|
|
@@ -1178,7 +1178,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1178
1178
|
${({expanded:e})=>e&&`
|
|
1179
1179
|
transform: rotate(90deg);
|
|
1180
1180
|
`}
|
|
1181
|
-
`,O5=({titleNode:e,children:t,defaultExpanded:n=!1})=>{const[r,o]=S.useState(n);return I.jsxs(S5,{expanded:r,onChange:(i,a)=>o(a),children:[I.jsxs(T5,{children:[I.jsx(_5,{expanded:r}),I.jsx("div",{children:e})]}),I.jsx(A5,{children:t})]})},R5=()=>I.jsxs(I.Fragment,{children:[I.jsx(fr,{variant:"rounded",width:180,height:24,animation:"wave",margin:"12px 0px 10px 0px"}),I.jsx(fr,{variant:"rounded",width:450,height:40,animation:"wave"})]}),Ka="Oauth2",ny="ApiKey",es="BasicAuth";function N5(e,t){return e in t}const ry=e=>!M5.includes(e.id),oy=(e,t,n)=>{const r=[],o=[],i=iy(n);for(const a of e)t.includes(a.name)||t.includes(i[a.name])?o.push(a):r.push(a);return{advanced:o,basic:r}},D5=(e,t,n)=>{const r=[],o=[];for(const i of e){const{basic:a,advanced:
|
|
1181
|
+
`,O5=({titleNode:e,children:t,defaultExpanded:n=!1})=>{const[r,o]=S.useState(n);return I.jsxs(S5,{expanded:r,onChange:(i,a)=>o(a),children:[I.jsxs(T5,{children:[I.jsx(_5,{expanded:r}),I.jsx("div",{children:e})]}),I.jsx(A5,{children:t})]})},R5=()=>I.jsxs(I.Fragment,{children:[I.jsx(fr,{variant:"rounded",width:180,height:24,animation:"wave",margin:"12px 0px 10px 0px"}),I.jsx(fr,{variant:"rounded",width:450,height:40,animation:"wave"})]}),Ka="Oauth2",ny="ApiKey",es="BasicAuth";function N5(e,t){return e in t}const ry=e=>!M5.includes(e.id),oy=(e,t,n)=>{const r=[],o=[],i=iy(n);for(const a of e)t.includes(a.name)||t.includes(i[a.name])?o.push(a):r.push(a);return{advanced:o,basic:r}},D5=(e,t,n)=>{const r=[],o=[];for(const i of e){const{basic:a,advanced:l}=oy(i.formFields,t,n);r.push(...a),l.length&&o.push({...i,formFields:l})}return{basicFields:r,advancedConfigs:o}},P5=({isEdit:e,templateId:t,values:n,formFields:r,predicates:o})=>{const i={};return n.authType&&typeof n.authType=="object"?i.authType=n.authType.value:i.authType=go.apiToken.value,Object.keys(r).forEach(a=>{let l;if(n[a]&&typeof n[a]=="object"?l=n[a].value:l=n[a],typeof l>"u"||o[a]===!1)return;let s;switch(i.authType){case Ka:s=Sf[a],s!==Hr.authType&&s!==void 0&&(i[s]=l);break;case es:s=Af[a],s!==Hr.authType&&s!==void 0&&(i[s]=l);break;default:s=Tf[a],s!==Hr.authType&&s!==void 0&&(i[s]=l)}}),!e&&t?{templateId:t,authDetails:i}:{authDetails:i}};function k5(e){const t={},n=iy(e.authType);return Object.keys(n).forEach(r=>{if(N5(r,n)){const o=n[r];let i;if(e.authType===Ka){const a=e[o];Array.isArray(a)?i=a.join(", "):i=a}else i=e[o];r===Hr.authType&&(i=Object.values(go).filter(a=>a.value===i)[0]),r===Qo.apiAddTo&&(i=Object.values(lu).filter(a=>a.value===i)[0]),t[r]=i}}),t}const L5=(e,t)=>{console.log(e,t);const n={};return e.forEach(r=>{n[r.name]=t[r.name]}),n},ts=e=>{if(e&&typeof e=="string"){const t=e.replace(/\/$/,"");return t.startsWith("https://")?e.endsWith("/")?KD:/^https:\/\/([a-z0-9-]+(\.[a-z0-9-]+)+)(:[0-9]{1,5})?(\/[^\s/]*)*$/i.test(t)?!0:QD:$D}return!1},If=e=>{const t=Object.entries(e).map(([n,r])=>[r,n]);return Object.fromEntries(t)},iy=e=>{switch(e){case Ka:return Sf;case es:return Af;default:return Tf}},ay=e=>{switch(e){case Ka:return j5;case es:return G5;default:return V5}},sy=new RegExp(oP,"g"),ly=(e,t)=>e.replace(sy,(n,r)=>t[r]??""),F5=e=>{const t={};for(const n in e){const o=[...e[n].matchAll(sy)].map(i=>i==null?void 0:i[1]);for(const i of o)t[i]=t[i]??[],t[i].push(n)}return t},Hr={baseUrl:"baseUrl",authType:"authType"},Qo={apiKey:"apiKey",apiAddTo:"apiAddTo",apiHeaderPrefix:"apiHeaderPrefix",apiHeaderName:"apiHeaderName",apiParamName:"apiParamName"},zr={oAuthClientId:"oAuthClientId",oAuthClientSecret:"oAuthClientSecret",oAuthEndUrl:"oAuthEndUrl",oAuthTokenUrl:"oAuthTokenUrl",oAuthRefreshTokenUrl:"oAuthRefreshTokenUrl",oAuthRedirectUrl:"oAuthRedirectUrl",oAuthHeaderName:"oAuthHeaderName",oAuthHeaderPrefix:"oAuthHeaderPrefix",oAuthScopes:"oAuthScopes"},ji={basicAuthKey:"basicAuthKey",basicAuthSecret:"basicAuthSecret",basicAuthAddTo:"basicAuthAddTo",basicAuthHeaderName:"basicAuthHeaderName",basicAuthPrefix:"basicAuthPrefix"},Te={...Hr,...Qo,...zr,...ji},go={apiToken:{label:"API Token",value:ny},oAuth:{label:"OAuth2.0",value:Ka},basicAuth:{label:"Basic Auth",value:es}},lu={header:{label:"Header",value:"header"},queryParam:{label:"Query Param",value:"queryParam"}},M5=["basicForm"],B5={id:"basicForm",formFields:[]},ns={id:"dynamicAuthForm",formFields:[]},uu=[{id:"baseFormInfo",formFields:[{id:Te.authType,type:"select",name:Te.authType,label:"Authentication Types",options:Object.values(go),toolTipTitle:"Select the authentication method for API requests."}]}],uy=[{id:"apiKeyFormInfo",title:"API Form",formFields:[{id:Te.apiKey,type:"password",name:Te.apiKey,label:"API Key(Encrypted)",placeholder:"API Key",toolTipTitle:"Enter the value for the API Key. The value will be encrypted and stored securely."},{id:Te.apiAddTo,type:"select",name:Te.apiAddTo,label:"Add To",options:Object.values(lu),toolTipTitle:"Specify how the API key should be added to the API request—either in the request headers or as a query parameter."},{id:Te.apiHeaderName,type:"text",name:Te.apiHeaderName,label:"Header Name",placeholder:"eg: X-Custom-Access-Token"},{id:Te.apiHeaderPrefix,type:"text",name:Te.apiHeaderPrefix,label:"Header Prefix",placeholder:"eg: Bearer",toolTipTitle:"If a prefix is required for the API key (e.g., 'Bearer'), specify it here. This will be added before the API key in the request."},{id:Te.apiParamName,type:"text",name:Te.apiParamName,label:"Param Name",placeholder:"eg: customAccessToken"}]}],cy=[{title:"CLIENT INFORMATION",id:"clientInfo",formFields:[{id:Te.oAuthClientId,type:"text",name:Te.oAuthClientId,label:"Client ID",placeholder:"Client ID",toolTipTitle:"Enter the Client ID provided by the external service for OAuth authentication."},{id:Te.oAuthClientSecret,type:"password",name:Te.oAuthClientSecret,label:"Client Secret(Encrypted)",placeholder:"Client Secret",toolTipTitle:"Enter the Client Secret associated with the Client ID. This is used to authenticate your application."},{id:Te.oAuthScopes,type:"text",name:Te.oAuthScopes,label:"Scope(s)",placeholder:"e.g: read, write",toolTipTitle:"Specify the scopes required for the API. Scopes define the access level for API resources."}]},{title:"AUTHORIZATION INFORMATION",id:"authInfo",formFields:[{id:Te.oAuthEndUrl,type:"text",name:Te.oAuthEndUrl,label:"Authorization Endpoint URL",placeholder:"e.g: https://example.com/login/oauth/authorize",toolTipTitle:"Enter the URL for the authorization endpoint where the user will be redirected to authenticate."},{id:Te.oAuthTokenUrl,type:"text",name:Te.oAuthTokenUrl,label:"Token Endpoint URL",placeholder:"e.g: https://example.com/login/oauth/token",toolTipTitle:"Provide the URL for exchanging the authorization code for an access token."},{id:Te.oAuthRefreshTokenUrl,type:"text",name:Te.oAuthRefreshTokenUrl,label:"Refresh Token URL",placeholder:"e.g: https://example.com/login/oauth/refresh/token",toolTipTitle:"Enter the URL to refresh the access token, if supported by the API."},{id:Te.oAuthRedirectUrl,type:"text",name:Te.oAuthRedirectUrl,label:"Redirect URL",disabled:!0},{id:Te.oAuthHeaderName,type:"text",name:Te.oAuthHeaderName,label:"Header Name",placeholder:"eg: X-Custom-Access-Token"},{id:Te.oAuthHeaderPrefix,type:"text",name:Te.oAuthHeaderPrefix,label:"Header Prefix",placeholder:"eg: Bearer"}]}],dy=[{id:"basicAuthFormInfo",title:"Basic Auth Form",formFields:[{id:Te.basicAuthKey,type:"password",name:Te.basicAuthKey,label:"Key",placeholder:"Enter Key / Username",toolTipTitle:"Enter the value for the Key/Username. The value will be encrypted and stored securely."},{id:Te.basicAuthSecret,type:"password",name:Te.basicAuthSecret,label:"Secret",placeholder:"Enter Secret / Password",toolTipTitle:"Enter the value for the Secret/Password. The value will be encrypted and stored securely."},{id:Te.basicAuthAddTo,type:"text",name:Te.basicAuthAddTo,label:"Add To",placeholder:"Header"},{id:Te.basicAuthHeaderName,type:"text",name:Te.basicAuthHeaderName,label:"Header Name",placeholder:"eg: Authorization"},{id:Te.basicAuthPrefix,type:"text",name:Te.basicAuthPrefix,label:"Header Prefix",placeholder:"eg: Basic"}]}],fy={[Te.baseUrl]:{isRequired:!0,validate:ts},[Te.authType]:{isRequired:!0},[Te.apiKey]:{isRequired:!0},[Te.apiAddTo]:{isRequired:!0},[Te.apiParamName]:{isRequired:!0},[Te.apiHeaderName]:{isRequired:!0},[Te.basicAuthKey]:{isRequired:!0},[Te.basicAuthSecret]:{isRequired:!0},[Te.basicAuthAddTo]:{isRequired:!0},[Te.basicAuthHeaderName]:{isRequired:!0},[Te.basicAuthPrefix]:{isRequired:!0},[Te.oAuthClientId]:{isRequired:!0},[Te.oAuthClientSecret]:{isRequired:!0},[Te.oAuthEndUrl]:{isRequired:!0,validate:ts},[Te.oAuthTokenUrl]:{isRequired:!0,validate:ts},[Te.oAuthRefreshTokenUrl]:{isRequired:!0,validate:ts},[Te.oAuthRedirectUrl]:{isRequired:!0,validate:ts},[Te.oAuthHeaderName]:{isRequired:!0}},Sf={[zr.oAuthClientId]:"clientId",[zr.oAuthClientSecret]:"clientSecret",[Hr.authType]:"authType",[zr.oAuthEndUrl]:"authEndpointUrl",[zr.oAuthTokenUrl]:"tokenEndpointUrl",[zr.oAuthRefreshTokenUrl]:"refreshTokenUrl",[zr.oAuthScopes]:"scopes",[zr.oAuthHeaderName]:"keyName",[zr.oAuthHeaderPrefix]:"prefix"},j5=If(Sf),Tf={[Hr.authType]:"authType",[Qo.apiAddTo]:"location",[Qo.apiKey]:"keyValue",[Qo.apiHeaderName]:"keyName",[Qo.apiHeaderPrefix]:"prefix",[Qo.apiParamName]:"keyName"},V5=If(Tf),Af={[Hr.authType]:"authType",[ji.basicAuthAddTo]:"location",[ji.basicAuthKey]:"keyValue",[ji.basicAuthSecret]:"secretValue",[ji.basicAuthHeaderName]:"keyName",[ji.basicAuthPrefix]:"prefix"},G5=If(Af),W5={values:{authType:go.apiToken,apiAddTo:lu.header},errors:{}},Nr={SET_FIELD_VALUE:"SET_FIELD_VALUE",CLEAR_FIELD_VALUE:"CLEAR_FIELD",SET_FIELD_ERROR:"SET_FIELD_ERROR",SET_FIELDS:"SET_FIELDS",CLEAR_FIELDS:"CLEAR_FIELDS"},H5=(e,t)=>{const{type:n,payload:r}=t;switch(n){case Nr.SET_FIELD_VALUE:{if(!r||!("name"in r))return e;const{name:o,value:i}=r;return{...e,values:{...e.values,[o]:i}}}case Nr.SET_FIELD_ERROR:{if(!r||!("name"in r))return e;const{name:o,value:i}=r;return{...e,errors:{...e.errors,[o]:i}}}case Nr.CLEAR_FIELD_VALUE:{if(!r||!("name"in r))return e;const{name:o}=r;return{...e,errors:{...e.errors,[o]:""}}}case Nr.SET_FIELDS:{if(!r||"name"in r)return e;const{values:o}=r;return{...e,values:o}}}return e},z5=w.styled(w.Stack)`
|
|
1182
1182
|
margin-bottom: 16px;
|
|
1183
1183
|
& .MuiPaper-elevation {
|
|
1184
1184
|
height: 30px;
|
|
@@ -1228,7 +1228,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1228
1228
|
padding-bottom: 13px;
|
|
1229
1229
|
border-top: 1px solid #d6dde8;
|
|
1230
1230
|
gap: 16px;
|
|
1231
|
-
`,J5="data:image/svg+xml,%3csvg%20width='22'%20height='22'%20viewBox='0%200%2022%2022'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1446_32274)'%3e%3cpath%20d='M14.6663%200.916687H3.66634C2.65801%200.916687%201.83301%201.74169%201.83301%202.75002V15.5834H3.66634V2.75002H14.6663V0.916687ZM17.4163%204.58335H7.33301C6.32467%204.58335%205.49967%205.40835%205.49967%206.41669V19.25C5.49967%2020.2584%206.32467%2021.0834%207.33301%2021.0834H17.4163C18.4247%2021.0834%2019.2497%2020.2584%2019.2497%2019.25V6.41669C19.2497%205.40835%2018.4247%204.58335%2017.4163%204.58335ZM17.4163%2019.25H7.33301V6.41669H17.4163V19.25Z'%20fill='%236F7C90'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1446_32274'%3e%3crect%20width='22'%20height='22'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Q5=()=>I.jsxs(w.Stack,{gap:"24px",marginTop:"28px",paddingRight:"65px",children:[I.jsxs("div",{children:[I.jsx(fr,{variant:"rounded",width:100,height:24,animation:"wave",margin:"12px 0px 10px 0px"}),I.jsx(fr,{variant:"rounded",height:40,animation:"wave",margin:"12px 0px 10px 0px"})]}),I.jsxs("div",{children:[I.jsx(fr,{variant:"rounded",width:100,height:24,animation:"wave",margin:"12px 0px 10px 0px"}),I.jsx(fr,{variant:"rounded",height:40,animation:"wave",margin:"12px 0px 10px 0px"})]})]}),$5=({isEdit:e=!1,connectorId:t,isLoading:n=!1,connectorData:r,authStatus:o,authMutate:i})=>{const{sendTrackingEvent:a,availableFeatures:
|
|
1231
|
+
`,J5="data:image/svg+xml,%3csvg%20width='22'%20height='22'%20viewBox='0%200%2022%2022'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1446_32274)'%3e%3cpath%20d='M14.6663%200.916687H3.66634C2.65801%200.916687%201.83301%201.74169%201.83301%202.75002V15.5834H3.66634V2.75002H14.6663V0.916687ZM17.4163%204.58335H7.33301C6.32467%204.58335%205.49967%205.40835%205.49967%206.41669V19.25C5.49967%2020.2584%206.32467%2021.0834%207.33301%2021.0834H17.4163C18.4247%2021.0834%2019.2497%2020.2584%2019.2497%2019.25V6.41669C19.2497%205.40835%2018.4247%204.58335%2017.4163%204.58335ZM17.4163%2019.25H7.33301V6.41669H17.4163V19.25Z'%20fill='%236F7C90'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1446_32274'%3e%3crect%20width='22'%20height='22'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Q5=()=>I.jsxs(w.Stack,{gap:"24px",marginTop:"28px",paddingRight:"65px",children:[I.jsxs("div",{children:[I.jsx(fr,{variant:"rounded",width:100,height:24,animation:"wave",margin:"12px 0px 10px 0px"}),I.jsx(fr,{variant:"rounded",height:40,animation:"wave",margin:"12px 0px 10px 0px"})]}),I.jsxs("div",{children:[I.jsx(fr,{variant:"rounded",width:100,height:24,animation:"wave",margin:"12px 0px 10px 0px"}),I.jsx(fr,{variant:"rounded",height:40,animation:"wave",margin:"12px 0px 10px 0px"})]})]}),$5=({isEdit:e=!1,connectorId:t,isLoading:n=!1,connectorData:r,authStatus:o,authMutate:i})=>{const{sendTrackingEvent:a,availableFeatures:l}=S.useContext(qt),[s,u]=S.useReducer(H5,W5),[c,f]=S.useState(!1),b=r?r.name:"",y=r?r.description:"",v=r?r.isAuthenticated:!1,d=r&&r.variablesConfig?r.variablesConfig:[],p=(r==null?void 0:r.advancedSettingsFields)??[],h=Vp(l),g=S.useMemo(()=>!h||!(r!=null&&r.interpolationFields)?{}:F5(r==null?void 0:r.interpolationFields),[r==null?void 0:r.interpolationFields,h]);S.useEffect(()=>{var q;if(r!=null&&r.authDetails){const $=k5(r.authDetails);u({type:Nr.SET_FIELDS,payload:{values:$}})}if(r!=null&&r.variables&&Object.keys(r.variables).forEach($=>{var ue;u({type:Nr.SET_FIELD_VALUE,payload:{name:$,value:((ue=r.variables)==null?void 0:ue[$])||""}})}),r!=null&&r.redirectUrl&&u({type:Nr.SET_FIELD_VALUE,payload:{name:Te.oAuthRedirectUrl,value:r==null?void 0:r.redirectUrl}}),h&&(r!=null&&r.interpolationFields)&&(r!=null&&r.variables)){const $=ay((q=r==null?void 0:r.authDetails)==null?void 0:q.authType);Object.entries(r.interpolationFields).forEach(([ue,se])=>{const ve=$[ue];ve&&u({type:Nr.SET_FIELD_VALUE,payload:{name:ve,value:ly(se,r.variables)}})})}},[r,h]);const m=(q,$)=>{u({type:Nr.SET_FIELD_VALUE,payload:{value:$,name:q}})},E=q=>{var te,re;q.stopPropagation();const{name:$,value:ue}=(q==null?void 0:q.target)||{};m($,ue.trim());const se=g[$];if(!h||!(se!=null&&se.length))return;const ve=(te=s.values)==null?void 0:te.authType,W=ay(typeof ve=="object"?ve.value:void 0);for(const K of se){const oe=W[K],de=(re=r==null?void 0:r.interpolationFields)==null?void 0:re[K];if(!oe||!de)continue;const ie=ly(de,{...s.values,[$]:ue});m(oe,ie)}},x=(q,$)=>{q&&typeof q=="object"&&"label"in q&&typeof q.label=="string"&&"value"in q&&typeof q.value=="string"&&typeof $.name<"u"&&($.name===Hr.authType&&a(tt.AUTH_UPDATED,{selected_auth_type:q.label}),m($.name,{value:q.value,label:q.label}))},A=(q,$)=>{u({type:Nr.SET_FIELD_ERROR,payload:{name:q,value:$}})},T=()=>{const q={...B5};if(d)if(h){const{advanced:se,basic:ve}=oy(d,p);ns.formFields=se,q.formFields=ve}else ns.formFields=[...d];let $=[];ns.formFields&&ns.formFields.length&&($=[ns]);const ue=s.values.authType;if(h){const se=typeof ue=="object"?ue.value:void 0,ve=[...uu];se===go.apiToken.value?ve.push(...uy):se===go.oAuth.value?ve.push(...cy):ve.push(...dy);const{basicFields:W,advancedConfigs:te}=D5(ve,p,se);q.formFields.push(...W),$.push(...te),q.formFields.length&&$.push(q)}else typeof ue=="object"&&ue.value===go.apiToken.value?$=[...$,...uu,...uy]:typeof ue=="object"&&ue.value===go.oAuth.value?$=[...$,...uu,...cy]:$=[...$,...uu,...dy];return $},C=()=>{const q={};return typeof s.values.apiAddTo=="object"&&s.values.apiAddTo.value===lu.queryParam.value?(q.apiHeaderPrefix=!1,q.apiHeaderName=!1):q.apiParamName=!1,q},O=()=>{const q=C(),$=jp(T());return!Object.keys(s.errors).filter(se=>!!s.errors[se]).filter(se=>se in q?q[se]:!0).filter(se=>se in $).length},M=()=>{var se;const q=C(),$=jp(T()),ue=P5({isEdit:e,templateId:t,values:s.values,formFields:$,predicates:q});if(d&&d.length){const ve=L5(d,s.values);ue.variables=ve}a(tt.SAVE_AUTHORIZE_CLICKED,{connector_name:b,auth_type:((se=s.values.authType)==null?void 0:se.label)??s.values.authType,base_url:s.values.baseUrl}),!e&&"templateId"in ue?i({data:ue}):i({data:ue,connectorId:t})},B=()=>{s.values.oAuthRedirectUrl&&UE(s.values.oAuthRedirectUrl,q=>f(!q))},U={[Te.oAuthRedirectUrl]:{icon:I.jsx("img",{alt:"copy",src:J5,onClick:B}),toolTipText:HE}},G=T().filter(q=>!ry(q)),X=T().filter(ry);return I.jsxs(U5,{id:"connectors-auth-wrapper",children:[I.jsxs(z5,{direction:"column",gap:1,children:[e&&!v?I.jsx(w.Alert,{severity:"error",sx:{width:"fit-content"},children:zE}):null,I.jsx(X5,{variant:"h2",children:Ab})]}),n?I.jsxs(I.Fragment,{children:[I.jsx(R5,{}),I.jsx(Q5,{})]}):I.jsxs(I.Fragment,{children:[I.jsxs("div",{children:[I.jsx(w.Typography,{variant:"h3",children:b}),I.jsx(Z5,{variant:"body2",children:y})]}),I.jsxs(Y5,{id:"conectors-auth-form",children:[I.jsx(ty,{formConfig:h?G:T(),selectChangeHandler:x,inputChangeHandler:E,predicates:C(),values:s.values,validations:fy,onValidationError:A,icons:U}),h&&X.length>0&&I.jsx(O5,{titleNode:I.jsx(w.Typography,{variant:"h3",children:"Advanced settings"}),children:I.jsx(ty,{formConfig:X,selectChangeHandler:x,inputChangeHandler:E,predicates:C(),values:s.values,validations:fy,onValidationError:A,icons:U})})]}),I.jsx(q5,{direction:"row",children:I.jsx(w.Button,{disabled:!O()||n||o===pt.PENDING,onClick:M,children:"Save & Authorize"})})]}),I.jsx(w.Snackbar,{message:qD,anchorOrigin:{vertical:"bottom",horizontal:"left"},autoHideDuration:2e3,onClose:()=>f(!1),open:c})]})},K5=e=>P.createElement("svg",{width:19,height:14,viewBox:"0 0 19 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M4.5 11C5.15764 11 5.79771 11.0833 6.42021 11.25C7.04285 11.4167 7.65278 11.625 8.25 11.875V2.41667C7.66667 2.11111 7.0625 1.88194 6.4375 1.72917C5.8125 1.57639 5.16514 1.5 4.49542 1.5C3.98236 1.5 3.47292 1.54514 2.96708 1.63542C2.46125 1.72569 1.97222 1.875 1.5 2.08333V11.5C1.98611 11.3194 2.47785 11.191 2.97521 11.1146C3.47271 11.0382 3.98097 11 4.5 11ZM9.75 11.875C10.3472 11.5972 10.9572 11.3819 11.5798 11.2292C12.2023 11.0764 12.8424 11 13.5 11C14.0139 11 14.5243 11.0312 15.0312 11.0938C15.5382 11.1562 16.0278 11.2917 16.5 11.5V2.08333C16.0139 1.90278 15.5195 1.76042 15.0169 1.65625C14.5142 1.55208 14.0081 1.5 13.4983 1.5C12.8328 1.5 12.1875 1.57639 11.5625 1.72917C10.9375 1.88194 10.3333 2.11111 9.75 2.41667V11.875ZM9 14C8.31944 13.5556 7.60417 13.1944 6.85417 12.9167C6.10417 12.6389 5.31944 12.5 4.5 12.5C3.97222 12.5 3.44444 12.5521 2.91667 12.6562C2.38889 12.7604 1.88194 12.9167 1.39583 13.125C1.0625 13.2639 0.746528 13.2394 0.447917 13.0515C0.149306 12.8635 0 12.5894 0 12.2292V1.75C0 1.55556 0.0520833 1.375 0.15625 1.20833C0.260417 1.04167 0.402778 0.916667 0.583333 0.833333C1.20833 0.555556 1.8475 0.347222 2.50083 0.208333C3.15417 0.0694444 3.82056 0 4.5 0C5.29097 0 6.06486 0.09375 6.82167 0.28125C7.57847 0.46875 8.30458 0.75 9 1.125C9.70833 0.763889 10.4388 0.486111 11.1915 0.291667C11.944 0.0972222 12.7135 0 13.5 0C14.1794 0 14.8458 0.0694444 15.4992 0.208333C16.1525 0.347222 16.7917 0.555556 17.4167 0.833333C17.5972 0.916667 17.7431 1.04167 17.8542 1.20833C17.9653 1.375 18.0208 1.55556 18.0208 1.75V12.2292C18.0208 12.5764 17.9132 12.8542 17.6979 13.0625C17.4826 13.2708 17.2569 13.3194 17.0208 13.2083C16.4653 12.9583 15.8925 12.7778 15.3025 12.6667C14.7126 12.5556 14.1118 12.5 13.5 12.5C12.6806 12.5 11.8958 12.6389 11.1458 12.9167C10.3958 13.1944 9.68056 13.5556 9 14Z",fill:"#4D596C"})),e9=e=>P.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,viewBox:"0 0 20 20",fill:"none",...e},P.createElement("g",{clipPath:"url(#clip0_5762_155564)"},P.createElement("path",{d:"M8.33342 13.75L13.3334 9.99996L8.33342 6.24996V13.75ZM10.0001 1.66663C5.40008 1.66663 1.66675 5.39996 1.66675 9.99996C1.66675 14.6 5.40008 18.3333 10.0001 18.3333C14.6001 18.3333 18.3334 14.6 18.3334 9.99996C18.3334 5.39996 14.6001 1.66663 10.0001 1.66663ZM10.0001 16.6666C6.32508 16.6666 3.33341 13.675 3.33341 9.99996C3.33341 6.32496 6.32508 3.33329 10.0001 3.33329C13.6751 3.33329 16.6667 6.32496 16.6667 9.99996C16.6667 13.675 13.6751 16.6666 10.0001 16.6666Z",fill:"#4D596C"})),P.createElement("defs",null,P.createElement("clipPath",{id:"clip0_5762_155564"},P.createElement("rect",{width:20,height:20,fill:"white"})))),t9=e=>P.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M17.5 9.31947C17.503 10.456 17.2374 11.5772 16.725 12.5917C16.1174 13.8074 15.1834 14.8299 14.0275 15.5447C12.8717 16.2595 11.5396 16.6384 10.1806 16.6389C9.044 16.6419 7.92282 16.3763 6.90833 15.8639L2 17.5L3.63611 12.5917C3.12369 11.5772 2.85815 10.456 2.86111 9.31947C2.86164 7.96043 3.24053 6.62837 3.95534 5.4725C4.67016 4.31663 5.69266 3.3826 6.90833 2.77502C7.92282 2.2626 9.044 1.99706 10.1806 2.00002H10.6111C11.4833 2.04814 12.332 2.25177 13.1199 2.59427C13.9534 2.95658 14.7189 3.4743 15.3723 4.12771C16.1287 4.8841 16.7033 5.7907 17.0654 6.77911C17.3118 7.45168 17.4599 8.16213 17.5 8.88891V9.31947Z",stroke:"#4D596C",strokeWidth:1.44667,strokeLinecap:"round",strokeLinejoin:"round"}),P.createElement("circle",{cx:7,cy:9.5,r:1,fill:"#4D596C"}),P.createElement("circle",{cx:10,cy:9.5,r:1,fill:"#4D596C"}),P.createElement("circle",{cx:13,cy:9.5,r:1,fill:"#4D596C"})),n9=w.styled(w.Box)`
|
|
1232
1232
|
background-color: #f6f8fc;
|
|
1233
1233
|
border-radius: 4px;
|
|
1234
1234
|
padding: 4px 12px 4px 12px;
|
|
@@ -1248,7 +1248,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1248
1248
|
`,s9=w.styled(w.icons.ChevronRightOutlined)`
|
|
1249
1249
|
height: 20px;
|
|
1250
1250
|
width: 20px;
|
|
1251
|
-
`,l9=[{icon:I.jsx(e9,{}),text:B3,keys:{link:"setupGuideVideoLink",preview:"setupGuideVideoPreviewImage"},event:
|
|
1251
|
+
`,l9=[{icon:I.jsx(e9,{}),text:B3,keys:{link:"setupGuideVideoLink",preview:"setupGuideVideoPreviewImage"},event:tt.CONNECTOR_VIDEO_CLICKED},{icon:I.jsx(K5,{}),text:j3,link:G3,keys:{link:"helpArticleLink"},event:tt.CONNECTOR_AUTH_PAGE_KB_CLICKED,prefixName:!0},{icon:I.jsx(t9,{}),text:V3,link:W3,event:tt.CONNECTOR_AUTH_PAGE_CONTACT_SUPPORT_CLICKED}],u9=({connectorName:e,supportLinks:t})=>{const{availableFeatures:n,sendTrackingEvent:r}=S.useContext(qt),o=br(n,DE),i=Vp(n),a=(l,s)=>{r(s,{source:e}),window.open(l,"_blank")};return o?I.jsx(w.Stack,{gap:"12px",children:l9.map(({icon:l,text:s,link:u,keys:c,event:f,prefixName:b})=>{const y=c!=null&&c.link?t==null?void 0:t[c.link]:null,v=i?y??u:u;if(!v)return null;const d=i&&b&&e?`${e} ${s}`:s,p=i&&(c!=null&&c.preview)?t==null?void 0:t[c.preview]:null;return I.jsxs(n9,{onClick:()=>a(v,f),children:[I.jsxs(r9,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[I.jsxs(w.Stack,{direction:"row",gap:"11px",alignItems:"center",children:[I.jsx(i9,{children:l}),I.jsx(a9,{variant:"body2_medium",children:d})]}),p?null:I.jsx(s9,{})]}),p&&I.jsx(o9,{children:I.jsx(I5,{src:p,alt:s,aspectRatio:"4 / 3"})})]},v)})}):null},c9=w.styled(w.Stack)`
|
|
1252
1252
|
width: 100%;
|
|
1253
1253
|
height: 100%;
|
|
1254
1254
|
padding: 17px 52px 0 0;
|
|
@@ -1284,14 +1284,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1284
1284
|
`,g9=w.styled(w.icons.OpenInNew)`
|
|
1285
1285
|
height: 18px;
|
|
1286
1286
|
width: 18px;
|
|
1287
|
-
`,m9=({upgradeGuideContent:e,upgradeGuideLink:t})=>I.jsxs(d9,{children:[I.jsxs(w.Stack,{marginBottom:"20px",children:[I.jsxs(w.Stack,{direction:"row",padding:"8px 0",gap:"4px",alignItems:"center",children:[I.jsx(f9,{}),I.jsx(w.Typography,{variant:"body1_medium",color:w.theme.palette.gray.black,children:eP})]}),I.jsx(w.Typography,{variant:"body2",children:tP})]}),I.jsx(w.Typography,{variant:"body2_medium",marginBottom:"8px",color:w.theme.palette.gray.black,children:nP}),I.jsx(h9,{variant:"body2",dangerouslySetInnerHTML:{__html:e}}),t?I.jsxs(p9,{target:"_blank",underline:"none",href:t,children:[I.jsx(g9,{}),rP]}):null]}),py=(e,t)=>{const n=t.authType===es,r=t.authType===ny;if(!e||!e.data)return{authUrl:"",authStatus:r?
|
|
1287
|
+
`,m9=({upgradeGuideContent:e,upgradeGuideLink:t})=>I.jsxs(d9,{children:[I.jsxs(w.Stack,{marginBottom:"20px",children:[I.jsxs(w.Stack,{direction:"row",padding:"8px 0",gap:"4px",alignItems:"center",children:[I.jsx(f9,{}),I.jsx(w.Typography,{variant:"body1_medium",color:w.theme.palette.gray.black,children:eP})]}),I.jsx(w.Typography,{variant:"body2",children:tP})]}),I.jsx(w.Typography,{variant:"body2_medium",marginBottom:"8px",color:w.theme.palette.gray.black,children:nP}),I.jsx(h9,{variant:"body2",dangerouslySetInnerHTML:{__html:e}}),t?I.jsxs(p9,{target:"_blank",underline:"none",href:t,children:[I.jsx(g9,{}),rP]}):null]}),py=(e,t)=>{const n=t.authType===es,r=t.authType===ny;if(!e||!e.data)return{authUrl:"",authStatus:r?pt.API_KEY_FAILED:n?pt.BASIC_AUTH_FAILED:pt.OAUTH_FAILED};const o=e.data;return r?{authUrl:"",id:o.id,authStatus:pt.API_KEY_SUCCESS}:n?{authUrl:"",id:o.id,authStatus:pt.BASIC_AUTH_SUCCESS}:o.authorizationUrl?{authUrl:o.authorizationUrl,id:o.id,authStatus:pt.PENDING}:{authUrl:"",id:"",authStatus:pt.OAUTH_FAILED}},b9=async e=>{try{const t=await on({url:Ww,method:wn.POST,data:e});return py(t,e.authDetails)}catch(t){return Promise.reject(t)}},v9=async(e,t)=>{try{const n=zw.replace("{{id}}",t),r=await on({url:n,method:wn.PATCH,data:e});return py(r,e.authDetails)}catch(n){return Promise.reject(n)}},y9=({connectorId:e,onSuccess:t})=>{const n=rl(),r=S.useMemo(()=>["authDetails",{connectorId:e}],[e]),{data:o}=vg({queryKey:r,queryFn:()=>Promise.resolve({authUrl:"",authStatus:pt.IDLE,id:""}),enabled:!1}),i=BI({mutationFn:l=>"connectorId"in l?v9(l.data,l.connectorId):b9(l.data),onSuccess:l=>{n.setQueryData(r,l),t==null||t()}});S.useEffect(()=>()=>{n.removeQueries({queryKey:r,exact:!0})},[n,r]);const a=S.useCallback(l=>{n.setQueryData(r,s=>s&&{...s,authStatus:l})},[r,n]);return{mutate:i.mutate,isLoading:i.isPending,data:o,mutateStatus:a}},E9=async e=>{var t;try{const n=await on({url:Hp(Zw,{connectorId:e}),method:wn.GET});return!n||!((t=n==null?void 0:n.data)!=null&&t.status)?{status:"failed"}:n==null?void 0:n.data}catch(n){return Promise.reject(n)}},x9=({connectorId:e,enabled:t=!1})=>{const n=rl(),r=S.useMemo(()=>["authSuccessStatus",{connectorId:e}],[e]),o=vg({queryKey:r,queryFn:()=>E9(e),refetchInterval:i=>{var a,l;return((a=i.state.data)==null?void 0:a.status)==="failed"||((l=i.state.data)==null?void 0:l.status)==="success"?!1:500},enabled:t,refetchOnWindowFocus:!1,refetchIntervalInBackground:!0});return S.useEffect(()=>()=>{n.removeQueries({queryKey:r,exact:!0})},[n,r]),o},C9=()=>{const{sendTrackingEvent:e,availableFeatures:t}=S.useContext(qt),[n,r]=S.useState(!1),o=qe(bl),i=qe(oc),a=qe(jc),l=qe(Xh),s=S.useRef(null),u=so(),{id:c=""}=zg(),[f]=em(),b=f.get("isEdit")==="true",y=(o==null?void 0:o[c])||null,v=(i==null?void 0:i[c])||null,d=b?y:v,p=!!(d!=null&&d.showUpgradeButton),h=br(t,LE),{data:g,mutateStatus:m,mutate:E}=y9({connectorId:c,onSuccess:()=>{h&&r(!0)}}),x=x9({connectorId:(g==null?void 0:g.id)||"",enabled:n}),{status:A}=x.data||{},T=(g==null?void 0:g.authStatus)||pt.IDLE,C=(g==null?void 0:g.authUrl)||"",O=uo();S.useEffect(()=>()=>{O(qw())},[O]),S.useEffect(()=>{O(b?Ea(c):ya(c))},[b,O,c]),S.useEffect(()=>{let U,G;const X=q=>{s.current&&q.origin===window.location.origin&&(q.data===wb||q.data===Zd)&&(clearTimeout(U),s.current.close(),s.current=null,m(q.data===Zd?pt.OAUTH_SUCCESS:pt.OAUTH_FAILED))};try{if(C){s.current=window.open(C,"_blank");const q=5*60*1e3;U=setTimeout(()=>{var $;($=s.current)==null||$.close(),s.current=null,m(pt.OAUTH_FAILED)},q),G=setInterval(()=>{var $;($=s.current)!=null&&$.closed&&(clearInterval(G),s.current=null,m(pt.OAUTH_FAILED))},500),window.addEventListener("message",X)}}catch(q){console.log("Error in Authentication",q)}return()=>{window.removeEventListener("message",X),clearTimeout(U),clearInterval(G)}},[C,O,m]),S.useEffect(()=>{A&&A!=="pending"&&s.current&&h&&(s.current.close(),s.current=null,m(A==="success"?pt.OAUTH_SUCCESS:pt.OAUTH_FAILED))},[A,m,h]),S.useEffect(()=>{switch((T===pt.OAUTH_SUCCESS||T===pt.OAUTH_FAILED||T===pt.API_KEY_SUCCESS||T===pt.API_KEY_FAILED||T===pt.BASIC_AUTH_SUCCESS||T===pt.BASIC_AUTH_FAILED)&&u(Xe.BASEPATH),T){case pt.OAUTH_SUCCESS:{qn({message:p?Yd:Ib,type:Da}),e(tt.CONNECTOR_AUTH_SUCCESS,{connector_name:d==null?void 0:d.name});break}case pt.OAUTH_FAILED:{qn({message:p?Ud:Sb,type:co});break}case pt.REQUEST_FAILED:{qn({message:Tb,type:co});break}case pt.API_KEY_SUCCESS:{qn({message:p?Yd:JD,type:Da}),e(tt.CONNECTOR_AUTH_SUCCESS,{connector_name:d==null?void 0:d.name});break}case pt.API_KEY_FAILED:{qn({message:p?Ud:Tb,type:co});break}case pt.BASIC_AUTH_SUCCESS:{qn({message:p?Yd:Ib,type:Da}),e(tt.CONNECTOR_AUTH_SUCCESS,{connector_name:d==null?void 0:d.name});break}case pt.BASIC_AUTH_FAILED:{qn({message:p?Ud:Sb,type:co});break}}},[T,u,p,d==null?void 0:d.name,e]);const M=a===Ie.LOADING||l===Ie.LOADING,B=[{name:iP,route:`${Xe.BASEPATH}${Xe.DASHBOARD}`},{name:(d==null?void 0:d.name)||"",route:`${Xe.BASEPATH}${Xe.API_VIEW}/${c}?isEdit=${String(b)}`},{name:Ab}];return I.jsxs(c9,{direction:"row",id:"connectors-auth-page",children:[I.jsxs("div",{children:[I.jsx(ZD,{options:B}),I.jsx($5,{connectorId:c,isEdit:b,connectorData:d,authStatus:T,isLoading:M,authMutate:E})]}),I.jsxs(w.Stack,{gap:"36px",width:"322px",children:[d!=null&&d.upgradeGuideContent?I.jsx(m9,{upgradeGuideContent:d.upgradeGuideContent,upgradeGuideLink:d.upgradeGuideLink}):null,I.jsxs(w.Stack,{gap:"12px",children:[I.jsx(w.Typography,{variant:"h2",marginBottom:"8px",children:z3}),b?null:I.jsx(ud,{isSettingsPage:!0}),I.jsx(u9,{connectorName:d==null?void 0:d.name,supportLinks:d==null?void 0:d.supportLinks})]})]})]})},w9=e=>e.auth.verifyTokenApiStatus,I9=e=>e.auth.authVerificationDone,S9=w.styled(w.Box)`
|
|
1288
1288
|
position: fixed;
|
|
1289
1289
|
z-index: 1000;
|
|
1290
1290
|
background-color: #fff;
|
|
1291
1291
|
width: 100vw;
|
|
1292
1292
|
height: 100vh;
|
|
1293
1293
|
padding: 20px;
|
|
1294
|
-
`,T9=()=>{const e=uo(),t=qe(I9),n=qe(w9);return S.useEffect(()=>{const r=new URLSearchParams(window.location.search),o=r.get(
|
|
1294
|
+
`,T9=()=>{const e=uo(),t=qe(I9),n=qe(w9);return S.useEffect(()=>{const r=new URLSearchParams(window.location.search),o=r.get(YD),i=r.get(UD);window.opener&&i&&o&&e(Js({data:{token:o},connectorId:i}))},[e]),S.useEffect(()=>{window.opener&&t&&window.opener.postMessage(n===Ie.FAILED?wb:Zd,window.location.origin)},[t,n]),I.jsxs(S9,{children:[I.jsx("h1",{children:"Authentication Complete"}),I.jsx("p",{children:"Redirecting..."})]})},A9=e=>ES([{path:Xe.BASEPATH,element:I.jsx(rR,{}),children:[{index:!0,element:I.jsx(n0,{})},{path:Xe.DASHBOARD,element:I.jsx(n0,{})},{path:Xe.AGENT,element:I.jsx(tT,{})},{path:`${Xe.API_VIEW}/:id`,element:I.jsx(WD,{})}]},{path:`${Xe.CONNECTOR_SETTINGS}/:id`,element:I.jsx(C9,{})},{path:Xe.AUTH_SUCCESS,element:I.jsx(T9,{})}],{basename:e}),_9=({basename:e="/",metaData:t,userId:n})=>{var o;const r=S.useMemo(()=>A9(e),[e]);return(o=t==null?void 0:t.templateUpdates)!=null&&o.version&&n&&(YO(t.templateUpdates.version),QO(n)),I.jsx(SS,{router:r})},O9=w.styled(w.Box)`
|
|
1295
1295
|
padding: 43px 0px 0 35px;
|
|
1296
1296
|
box-sizing: border-box;
|
|
1297
1297
|
width: 100%;
|