@ws-ui/shared 0.2.29 → 0.2.31

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/dist/index.cjs.js CHANGED
@@ -1,90 +1,90 @@
1
- "use strict";var tS=Object.defineProperty;var nS=(e,r,n)=>r in e?tS(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n;var Bd=(e,r,n)=>(nS(e,typeof r!="symbol"?r+"":r,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("react"),go=require("react-dom"),pl=require("@emotion/react");function wh(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return r.default=e,Object.freeze(r)}const L=wh(N),rS=wh(go);var zr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function iS(e){if(e.__esModule)return e;var r=e.default;if(typeof r=="function"){var n=function o(){return this instanceof o?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};n.prototype=r.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var a=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,a.get?a:{enumerable:!0,get:function(){return e[o]}})}),n}var hl={exports:{}},wi={};/*
1
+ "use strict";var rS=Object.defineProperty;var iS=(e,r,n)=>r in e?rS(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n;var qd=(e,r,n)=>(iS(e,typeof r!="symbol"?r+"":r,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("react"),yo=require("react-dom"),hl=require("@emotion/react");function Sh(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return r.default=e,Object.freeze(r)}const L=Sh(N),oS=Sh(yo);var Gr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Eh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function aS(e){if(e.__esModule)return e;var r=e.default;if(typeof r=="function"){var n=function o(){return this instanceof o?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};n.prototype=r.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var a=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,a.get?a:{enumerable:!0,get:function(){return e[o]}})}),n}var vl={exports:{}},bi={};/*
2
2
  object-assign
3
3
  (c) Sindre Sorhus
4
4
  @license MIT
5
- */var Tu,zd;function Fl(){if(zd)return Tu;zd=1;var e=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(u){if(u==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(u)}function a(){try{if(!Object.assign)return!1;var u=new String("abc");if(u[5]="de",Object.getOwnPropertyNames(u)[0]==="5")return!1;for(var l={},f=0;f<10;f++)l["_"+String.fromCharCode(f)]=f;var d=Object.getOwnPropertyNames(l).map(function(g){return l[g]});if(d.join("")!=="0123456789")return!1;var v={};return"abcdefghijklmnopqrst".split("").forEach(function(g){v[g]=g}),Object.keys(Object.assign({},v)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Tu=a()?Object.assign:function(u,l){for(var f,d=o(u),v,g=1;g<arguments.length;g++){f=Object(arguments[g]);for(var _ in f)r.call(f,_)&&(d[_]=f[_]);if(e){v=e(f);for(var O=0;O<v.length;O++)n.call(f,v[O])&&(d[v[O]]=f[v[O]])}}return d},Tu}/** @license React v17.0.2
5
+ */var Cu,Gd;function Wl(){if(Gd)return Cu;Gd=1;var e=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(u){if(u==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(u)}function a(){try{if(!Object.assign)return!1;var u=new String("abc");if(u[5]="de",Object.getOwnPropertyNames(u)[0]==="5")return!1;for(var l={},f=0;f<10;f++)l["_"+String.fromCharCode(f)]=f;var d=Object.getOwnPropertyNames(l).map(function(g){return l[g]});if(d.join("")!=="0123456789")return!1;var v={};return"abcdefghijklmnopqrst".split("").forEach(function(g){v[g]=g}),Object.keys(Object.assign({},v)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Cu=a()?Object.assign:function(u,l){for(var f,d=o(u),v,g=1;g<arguments.length;g++){f=Object(arguments[g]);for(var _ in f)r.call(f,_)&&(d[_]=f[_]);if(e){v=e(f);for(var O=0;O<v.length;O++)n.call(f,v[O])&&(d[v[O]]=f[v[O]])}}return d},Cu}/** @license React v17.0.2
6
6
  * react-jsx-runtime.production.min.js
7
7
  *
8
8
  * Copyright (c) Facebook, Inc. and its affiliates.
9
9
  *
10
10
  * This source code is licensed under the MIT license found in the
11
11
  * LICENSE file in the root directory of this source tree.
12
- */var qd;function oS(){if(qd)return wi;qd=1,Fl();var e=N,r=60103;if(wi.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var n=Symbol.for;r=n("react.element"),wi.Fragment=n("react.fragment")}var o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function l(f,d,v){var g,_={},O=null,m=null;v!==void 0&&(O=""+v),d.key!==void 0&&(O=""+d.key),d.ref!==void 0&&(m=d.ref);for(g in d)a.call(d,g)&&!u.hasOwnProperty(g)&&(_[g]=d[g]);if(f&&f.defaultProps)for(g in d=f.defaultProps,d)_[g]===void 0&&(_[g]=d[g]);return{$$typeof:r,type:f,key:O,ref:m,props:_,_owner:o.current}}return wi.jsx=l,wi.jsxs=l,wi}var Cu={};/** @license React v17.0.2
12
+ */var Kd;function sS(){if(Kd)return bi;Kd=1,Wl();var e=N,r=60103;if(bi.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var n=Symbol.for;r=n("react.element"),bi.Fragment=n("react.fragment")}var o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function l(f,d,v){var g,_={},O=null,m=null;v!==void 0&&(O=""+v),d.key!==void 0&&(O=""+d.key),d.ref!==void 0&&(m=d.ref);for(g in d)a.call(d,g)&&!u.hasOwnProperty(g)&&(_[g]=d[g]);if(f&&f.defaultProps)for(g in d=f.defaultProps,d)_[g]===void 0&&(_[g]=d[g]);return{$$typeof:r,type:f,key:O,ref:m,props:_,_owner:o.current}}return bi.jsx=l,bi.jsxs=l,bi}var Ru={};/** @license React v17.0.2
13
13
  * react-jsx-runtime.development.js
14
14
  *
15
15
  * Copyright (c) Facebook, Inc. and its affiliates.
16
16
  *
17
17
  * This source code is licensed under the MIT license found in the
18
18
  * LICENSE file in the root directory of this source tree.
19
- */var Gd;function aS(){return Gd||(Gd=1,function(e){process.env.NODE_ENV!=="production"&&function(){var r=N,n=Fl(),o=60103,a=60106;e.Fragment=60107;var u=60108,l=60114,f=60109,d=60110,v=60112,g=60113,_=60120,O=60115,m=60116,S=60121,y=60122,E=60117,D=60129,I=60131;if(typeof Symbol=="function"&&Symbol.for){var C=Symbol.for;o=C("react.element"),a=C("react.portal"),e.Fragment=C("react.fragment"),u=C("react.strict_mode"),l=C("react.profiler"),f=C("react.provider"),d=C("react.context"),v=C("react.forward_ref"),g=C("react.suspense"),_=C("react.suspense_list"),O=C("react.memo"),m=C("react.lazy"),S=C("react.block"),y=C("react.server.block"),E=C("react.fundamental"),C("react.scope"),C("react.opaque.id"),D=C("react.debug_trace_mode"),C("react.offscreen"),I=C("react.legacy_hidden")}var k=typeof Symbol=="function"&&Symbol.iterator,T="@@iterator";function H(p){if(p===null||typeof p!="object")return null;var P=k&&p[k]||p[T];return typeof P=="function"?P:null}var U=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function j(p){{for(var P=arguments.length,F=new Array(P>1?P-1:0),Y=1;Y<P;Y++)F[Y-1]=arguments[Y];J("error",p,F)}}function J(p,P,F){{var Y=U.ReactDebugCurrentFrame,oe=Y.getStackAddendum();oe!==""&&(P+="%s",F=F.concat([oe]));var ae=F.map(function(te){return""+te});ae.unshift("Warning: "+P),Function.prototype.apply.call(console[p],console,ae)}}var ee=!1;function ge(p){return!!(typeof p=="string"||typeof p=="function"||p===e.Fragment||p===l||p===D||p===u||p===g||p===_||p===I||ee||typeof p=="object"&&p!==null&&(p.$$typeof===m||p.$$typeof===O||p.$$typeof===f||p.$$typeof===d||p.$$typeof===v||p.$$typeof===E||p.$$typeof===S||p[0]===y))}function Ce(p,P,F){var Y=P.displayName||P.name||"";return p.displayName||(Y!==""?F+"("+Y+")":F)}function _e(p){return p.displayName||"Context"}function se(p){if(p==null)return null;if(typeof p.tag=="number"&&j("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof p=="function")return p.displayName||p.name||null;if(typeof p=="string")return p;switch(p){case e.Fragment:return"Fragment";case a:return"Portal";case l:return"Profiler";case u:return"StrictMode";case g:return"Suspense";case _:return"SuspenseList"}if(typeof p=="object")switch(p.$$typeof){case d:var P=p;return _e(P)+".Consumer";case f:var F=p;return _e(F._context)+".Provider";case v:return Ce(p,p.render,"ForwardRef");case O:return se(p.type);case S:return se(p._render);case m:{var Y=p,oe=Y._payload,ae=Y._init;try{return se(ae(oe))}catch{return null}}}return null}var Le=0,we,xe,We,ut,G,X,de;function ie(){}ie.__reactDisabledLog=!0;function ce(){{if(Le===0){we=console.log,xe=console.info,We=console.warn,ut=console.error,G=console.group,X=console.groupCollapsed,de=console.groupEnd;var p={configurable:!0,enumerable:!0,value:ie,writable:!0};Object.defineProperties(console,{info:p,log:p,warn:p,error:p,group:p,groupCollapsed:p,groupEnd:p})}Le++}}function fe(){{if(Le--,Le===0){var p={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:n({},p,{value:we}),info:n({},p,{value:xe}),warn:n({},p,{value:We}),error:n({},p,{value:ut}),group:n({},p,{value:G}),groupCollapsed:n({},p,{value:X}),groupEnd:n({},p,{value:de})})}Le<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ue=U.ReactCurrentDispatcher,pe;function le(p,P,F){{if(pe===void 0)try{throw Error()}catch(oe){var Y=oe.stack.trim().match(/\n( *(at )?)/);pe=Y&&Y[1]||""}return`
20
- `+pe+p}}var ye=!1,be;{var Ke=typeof WeakMap=="function"?WeakMap:Map;be=new Ke}function V(p,P){if(!p||ye)return"";{var F=be.get(p);if(F!==void 0)return F}var Y;ye=!0;var oe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ae;ae=ue.current,ue.current=null,ce();try{if(P){var te=function(){throw Error()};if(Object.defineProperty(te.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(te,[])}catch(lt){Y=lt}Reflect.construct(p,[],te)}else{try{te.call()}catch(lt){Y=lt}p.call(te.prototype)}}else{try{throw Error()}catch(lt){Y=lt}p()}}catch(lt){if(lt&&Y&&typeof lt.stack=="string"){for(var Q=lt.stack.split(`
19
+ */var Yd;function uS(){return Yd||(Yd=1,function(e){process.env.NODE_ENV!=="production"&&function(){var r=N,n=Wl(),o=60103,a=60106;e.Fragment=60107;var u=60108,l=60114,f=60109,d=60110,v=60112,g=60113,_=60120,O=60115,m=60116,S=60121,y=60122,E=60117,D=60129,I=60131;if(typeof Symbol=="function"&&Symbol.for){var C=Symbol.for;o=C("react.element"),a=C("react.portal"),e.Fragment=C("react.fragment"),u=C("react.strict_mode"),l=C("react.profiler"),f=C("react.provider"),d=C("react.context"),v=C("react.forward_ref"),g=C("react.suspense"),_=C("react.suspense_list"),O=C("react.memo"),m=C("react.lazy"),S=C("react.block"),y=C("react.server.block"),E=C("react.fundamental"),C("react.scope"),C("react.opaque.id"),D=C("react.debug_trace_mode"),C("react.offscreen"),I=C("react.legacy_hidden")}var k=typeof Symbol=="function"&&Symbol.iterator,T="@@iterator";function H(p){if(p===null||typeof p!="object")return null;var P=k&&p[k]||p[T];return typeof P=="function"?P:null}var U=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function j(p){{for(var P=arguments.length,F=new Array(P>1?P-1:0),Y=1;Y<P;Y++)F[Y-1]=arguments[Y];Z("error",p,F)}}function Z(p,P,F){{var Y=U.ReactDebugCurrentFrame,oe=Y.getStackAddendum();oe!==""&&(P+="%s",F=F.concat([oe]));var ae=F.map(function(te){return""+te});ae.unshift("Warning: "+P),Function.prototype.apply.call(console[p],console,ae)}}var ee=!1;function ge(p){return!!(typeof p=="string"||typeof p=="function"||p===e.Fragment||p===l||p===D||p===u||p===g||p===_||p===I||ee||typeof p=="object"&&p!==null&&(p.$$typeof===m||p.$$typeof===O||p.$$typeof===f||p.$$typeof===d||p.$$typeof===v||p.$$typeof===E||p.$$typeof===S||p[0]===y))}function Ce(p,P,F){var Y=P.displayName||P.name||"";return p.displayName||(Y!==""?F+"("+Y+")":F)}function _e(p){return p.displayName||"Context"}function se(p){if(p==null)return null;if(typeof p.tag=="number"&&j("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof p=="function")return p.displayName||p.name||null;if(typeof p=="string")return p;switch(p){case e.Fragment:return"Fragment";case a:return"Portal";case l:return"Profiler";case u:return"StrictMode";case g:return"Suspense";case _:return"SuspenseList"}if(typeof p=="object")switch(p.$$typeof){case d:var P=p;return _e(P)+".Consumer";case f:var F=p;return _e(F._context)+".Provider";case v:return Ce(p,p.render,"ForwardRef");case O:return se(p.type);case S:return se(p._render);case m:{var Y=p,oe=Y._payload,ae=Y._init;try{return se(ae(oe))}catch{return null}}}return null}var Le=0,we,xe,We,ut,G,X,de;function ie(){}ie.__reactDisabledLog=!0;function ce(){{if(Le===0){we=console.log,xe=console.info,We=console.warn,ut=console.error,G=console.group,X=console.groupCollapsed,de=console.groupEnd;var p={configurable:!0,enumerable:!0,value:ie,writable:!0};Object.defineProperties(console,{info:p,log:p,warn:p,error:p,group:p,groupCollapsed:p,groupEnd:p})}Le++}}function fe(){{if(Le--,Le===0){var p={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:n({},p,{value:we}),info:n({},p,{value:xe}),warn:n({},p,{value:We}),error:n({},p,{value:ut}),group:n({},p,{value:G}),groupCollapsed:n({},p,{value:X}),groupEnd:n({},p,{value:de})})}Le<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ue=U.ReactCurrentDispatcher,pe;function le(p,P,F){{if(pe===void 0)try{throw Error()}catch(oe){var Y=oe.stack.trim().match(/\n( *(at )?)/);pe=Y&&Y[1]||""}return`
20
+ `+pe+p}}var ye=!1,be;{var Ge=typeof WeakMap=="function"?WeakMap:Map;be=new Ge}function V(p,P){if(!p||ye)return"";{var F=be.get(p);if(F!==void 0)return F}var Y;ye=!0;var oe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ae;ae=ue.current,ue.current=null,ce();try{if(P){var te=function(){throw Error()};if(Object.defineProperty(te.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(te,[])}catch(lt){Y=lt}Reflect.construct(p,[],te)}else{try{te.call()}catch(lt){Y=lt}p.call(te.prototype)}}else{try{throw Error()}catch(lt){Y=lt}p()}}catch(lt){if(lt&&Y&&typeof lt.stack=="string"){for(var Q=lt.stack.split(`
21
21
  `),je=Y.stack.split(`
22
22
  `),Se=Q.length-1,Oe=je.length-1;Se>=1&&Oe>=0&&Q[Se]!==je[Oe];)Oe--;for(;Se>=1&&Oe>=0;Se--,Oe--)if(Q[Se]!==je[Oe]){if(Se!==1||Oe!==1)do if(Se--,Oe--,Oe<0||Q[Se]!==je[Oe]){var ot=`
23
- `+Q[Se].replace(" at new "," at ");return typeof p=="function"&&be.set(p,ot),ot}while(Se>=1&&Oe>=0);break}}}finally{ye=!1,ue.current=ae,fe(),Error.prepareStackTrace=oe}var kt=p?p.displayName||p.name:"",Ir=kt?le(kt):"";return typeof p=="function"&&be.set(p,Ir),Ir}function rt(p,P,F){return V(p,!1)}function it(p){var P=p.prototype;return!!(P&&P.isReactComponent)}function dt(p,P,F){if(p==null)return"";if(typeof p=="function")return V(p,it(p));if(typeof p=="string")return le(p);switch(p){case g:return le("Suspense");case _:return le("SuspenseList")}if(typeof p=="object")switch(p.$$typeof){case v:return rt(p.render);case O:return dt(p.type,P,F);case S:return rt(p._render);case m:{var Y=p,oe=Y._payload,ae=Y._init;try{return dt(ae(oe),P,F)}catch{}}}return""}var An={},gt=U.ReactDebugCurrentFrame;function Wt(p){if(p){var P=p._owner,F=dt(p.type,p._source,P?P.type:null);gt.setExtraStackFrame(F)}else gt.setExtraStackFrame(null)}function Sr(p,P,F,Y,oe){{var ae=Function.call.bind(Object.prototype.hasOwnProperty);for(var te in p)if(ae(p,te)){var Q=void 0;try{if(typeof p[te]!="function"){var je=Error((Y||"React class")+": "+F+" type `"+te+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof p[te]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw je.name="Invariant Violation",je}Q=p[te](P,te,Y,F,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Se){Q=Se}Q&&!(Q instanceof Error)&&(Wt(oe),j("%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).",Y||"React class",F,te,typeof Q),Wt(null)),Q instanceof Error&&!(Q.message in An)&&(An[Q.message]=!0,Wt(oe),j("Failed %s type: %s",F,Q.message),Wt(null))}}}var Je=U.ReactCurrentOwner,Qe=Object.prototype.hasOwnProperty,rn={key:!0,ref:!0,__self:!0,__source:!0},Kt,gn,Tt;Tt={};function rr(p){if(Qe.call(p,"ref")){var P=Object.getOwnPropertyDescriptor(p,"ref").get;if(P&&P.isReactWarning)return!1}return p.ref!==void 0}function on(p){if(Qe.call(p,"key")){var P=Object.getOwnPropertyDescriptor(p,"key").get;if(P&&P.isReactWarning)return!1}return p.key!==void 0}function Yt(p,P){if(typeof p.ref=="string"&&Je.current&&P&&Je.current.stateNode!==P){var F=se(Je.current.type);Tt[F]||(j('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',se(Je.current.type),p.ref),Tt[F]=!0)}}function Er(p,P){{var F=function(){Kt||(Kt=!0,j("%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)",P))};F.isReactWarning=!0,Object.defineProperty(p,"key",{get:F,configurable:!0})}}function xr(p,P){{var F=function(){gn||(gn=!0,j("%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)",P))};F.isReactWarning=!0,Object.defineProperty(p,"ref",{get:F,configurable:!0})}}var Or=function(p,P,F,Y,oe,ae,te){var Q={$$typeof:o,type:p,key:P,ref:F,props:te,_owner:ae};return Q._store={},Object.defineProperty(Q._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Q,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Y}),Object.defineProperty(Q,"_source",{configurable:!1,enumerable:!1,writable:!1,value:oe}),Object.freeze&&(Object.freeze(Q.props),Object.freeze(Q)),Q};function Tr(p,P,F,Y,oe){{var ae,te={},Q=null,je=null;F!==void 0&&(Q=""+F),on(P)&&(Q=""+P.key),rr(P)&&(je=P.ref,Yt(P,oe));for(ae in P)Qe.call(P,ae)&&!rn.hasOwnProperty(ae)&&(te[ae]=P[ae]);if(p&&p.defaultProps){var Se=p.defaultProps;for(ae in Se)te[ae]===void 0&&(te[ae]=Se[ae])}if(Q||je){var Oe=typeof p=="function"?p.displayName||p.name||"Unknown":p;Q&&Er(te,Oe),je&&xr(te,Oe)}return Or(p,Q,je,oe,Y,Je.current,te)}}var yn=U.ReactCurrentOwner,Un=U.ReactDebugCurrentFrame;function bt(p){if(p){var P=p._owner,F=dt(p.type,p._source,P?P.type:null);Un.setExtraStackFrame(F)}else Un.setExtraStackFrame(null)}var wn;wn=!1;function bn(p){return typeof p=="object"&&p!==null&&p.$$typeof===o}function Cr(){{if(yn.current){var p=se(yn.current.type);if(p)return`
23
+ `+Q[Se].replace(" at new "," at ");return typeof p=="function"&&be.set(p,ot),ot}while(Se>=1&&Oe>=0);break}}}finally{ye=!1,ue.current=ae,fe(),Error.prepareStackTrace=oe}var kt=p?p.displayName||p.name:"",Mr=kt?le(kt):"";return typeof p=="function"&&be.set(p,Mr),Mr}function rt(p,P,F){return V(p,!1)}function it(p){var P=p.prototype;return!!(P&&P.isReactComponent)}function dt(p,P,F){if(p==null)return"";if(typeof p=="function")return V(p,it(p));if(typeof p=="string")return le(p);switch(p){case g:return le("Suspense");case _:return le("SuspenseList")}if(typeof p=="object")switch(p.$$typeof){case v:return rt(p.render);case O:return dt(p.type,P,F);case S:return rt(p._render);case m:{var Y=p,oe=Y._payload,ae=Y._init;try{return dt(ae(oe),P,F)}catch{}}}return""}var An={},gt=U.ReactDebugCurrentFrame;function Wt(p){if(p){var P=p._owner,F=dt(p.type,p._source,P?P.type:null);gt.setExtraStackFrame(F)}else gt.setExtraStackFrame(null)}function xr(p,P,F,Y,oe){{var ae=Function.call.bind(Object.prototype.hasOwnProperty);for(var te in p)if(ae(p,te)){var Q=void 0;try{if(typeof p[te]!="function"){var je=Error((Y||"React class")+": "+F+" type `"+te+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof p[te]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw je.name="Invariant Violation",je}Q=p[te](P,te,Y,F,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Se){Q=Se}Q&&!(Q instanceof Error)&&(Wt(oe),j("%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).",Y||"React class",F,te,typeof Q),Wt(null)),Q instanceof Error&&!(Q.message in An)&&(An[Q.message]=!0,Wt(oe),j("Failed %s type: %s",F,Q.message),Wt(null))}}}var Ze=U.ReactCurrentOwner,Qe=Object.prototype.hasOwnProperty,rn={key:!0,ref:!0,__self:!0,__source:!0},Kt,gn,Tt;Tt={};function ir(p){if(Qe.call(p,"ref")){var P=Object.getOwnPropertyDescriptor(p,"ref").get;if(P&&P.isReactWarning)return!1}return p.ref!==void 0}function on(p){if(Qe.call(p,"key")){var P=Object.getOwnPropertyDescriptor(p,"key").get;if(P&&P.isReactWarning)return!1}return p.key!==void 0}function Yt(p,P){if(typeof p.ref=="string"&&Ze.current&&P&&Ze.current.stateNode!==P){var F=se(Ze.current.type);Tt[F]||(j('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',se(Ze.current.type),p.ref),Tt[F]=!0)}}function Or(p,P){{var F=function(){Kt||(Kt=!0,j("%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)",P))};F.isReactWarning=!0,Object.defineProperty(p,"key",{get:F,configurable:!0})}}function Tr(p,P){{var F=function(){gn||(gn=!0,j("%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)",P))};F.isReactWarning=!0,Object.defineProperty(p,"ref",{get:F,configurable:!0})}}var Cr=function(p,P,F,Y,oe,ae,te){var Q={$$typeof:o,type:p,key:P,ref:F,props:te,_owner:ae};return Q._store={},Object.defineProperty(Q._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Q,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Y}),Object.defineProperty(Q,"_source",{configurable:!1,enumerable:!1,writable:!1,value:oe}),Object.freeze&&(Object.freeze(Q.props),Object.freeze(Q)),Q};function Rr(p,P,F,Y,oe){{var ae,te={},Q=null,je=null;F!==void 0&&(Q=""+F),on(P)&&(Q=""+P.key),ir(P)&&(je=P.ref,Yt(P,oe));for(ae in P)Qe.call(P,ae)&&!rn.hasOwnProperty(ae)&&(te[ae]=P[ae]);if(p&&p.defaultProps){var Se=p.defaultProps;for(ae in Se)te[ae]===void 0&&(te[ae]=Se[ae])}if(Q||je){var Oe=typeof p=="function"?p.displayName||p.name||"Unknown":p;Q&&Or(te,Oe),je&&Tr(te,Oe)}return Cr(p,Q,je,oe,Y,Ze.current,te)}}var yn=U.ReactCurrentOwner,Bn=U.ReactDebugCurrentFrame;function bt(p){if(p){var P=p._owner,F=dt(p.type,p._source,P?P.type:null);Bn.setExtraStackFrame(F)}else Bn.setExtraStackFrame(null)}var wn;wn=!1;function bn(p){return typeof p=="object"&&p!==null&&p.$$typeof===o}function Pr(){{if(yn.current){var p=se(yn.current.type);if(p)return`
24
24
 
25
- Check the render method of \``+p+"`."}return""}}function Di(p){{if(p!==void 0){var P=p.fileName.replace(/^.*[\\\/]/,""),F=p.lineNumber;return`
25
+ Check the render method of \``+p+"`."}return""}}function ki(p){{if(p!==void 0){var P=p.fileName.replace(/^.*[\\\/]/,""),F=p.lineNumber;return`
26
26
 
27
- Check your code at `+P+":"+F+"."}return""}}var Rr={};function ri(p){{var P=Cr();if(!P){var F=typeof p=="string"?p:p.displayName||p.name;F&&(P=`
27
+ Check your code at `+P+":"+F+"."}return""}}var Ar={};function ii(p){{var P=Pr();if(!P){var F=typeof p=="string"?p:p.displayName||p.name;F&&(P=`
28
28
 
29
- Check the top-level render call using <`+F+">.")}return P}}function ir(p,P){{if(!p._store||p._store.validated||p.key!=null)return;p._store.validated=!0;var F=ri(P);if(Rr[F])return;Rr[F]=!0;var Y="";p&&p._owner&&p._owner!==yn.current&&(Y=" It was passed a child from "+se(p._owner.type)+"."),bt(p),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',F,Y),bt(null)}}function Pr(p,P){{if(typeof p!="object")return;if(Array.isArray(p))for(var F=0;F<p.length;F++){var Y=p[F];bn(Y)&&ir(Y,P)}else if(bn(p))p._store&&(p._store.validated=!0);else if(p){var oe=H(p);if(typeof oe=="function"&&oe!==p.entries)for(var ae=oe.call(p),te;!(te=ae.next()).done;)bn(te.value)&&ir(te.value,P)}}}function ki(p){{var P=p.type;if(P==null||typeof P=="string")return;var F;if(typeof P=="function")F=P.propTypes;else if(typeof P=="object"&&(P.$$typeof===v||P.$$typeof===O))F=P.propTypes;else return;if(F){var Y=se(P);Sr(F,p.props,"prop",Y,p)}else if(P.PropTypes!==void 0&&!wn){wn=!0;var oe=se(P);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",oe||"Unknown")}typeof P.getDefaultProps=="function"&&!P.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ni(p){{for(var P=Object.keys(p.props),F=0;F<P.length;F++){var Y=P[F];if(Y!=="children"&&Y!=="key"){bt(p),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Y),bt(null);break}}p.ref!==null&&(bt(p),j("Invalid attribute `ref` supplied to `React.Fragment`."),bt(null))}}function Ar(p,P,F,Y,oe,ae){{var te=ge(p);if(!te){var Q="";(p===void 0||typeof p=="object"&&p!==null&&Object.keys(p).length===0)&&(Q+=" 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 je=Di(oe);je?Q+=je:Q+=Cr();var Se;p===null?Se="null":Array.isArray(p)?Se="array":p!==void 0&&p.$$typeof===o?(Se="<"+(se(p.type)||"Unknown")+" />",Q=" Did you accidentally export a JSX literal instead of a component?"):Se=typeof p,j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Se,Q)}var Oe=Tr(p,P,F,oe,ae);if(Oe==null)return Oe;if(te){var ot=P.children;if(ot!==void 0)if(Y)if(Array.isArray(ot)){for(var kt=0;kt<ot.length;kt++)Pr(ot[kt],p);Object.freeze&&Object.freeze(ot)}else j("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 Pr(ot,p)}return p===e.Fragment?Ni(Oe):ki(Oe),Oe}}function ii(p,P,F){return Ar(p,P,F,!0)}function $i(p,P,F){return Ar(p,P,F,!1)}var ji=$i,Fi=ii;e.jsx=ji,e.jsxs=Fi}()}(Cu)),Cu}process.env.NODE_ENV==="production"?hl.exports=oS():hl.exports=aS();var $=hl.exports;const _h=({children:e})=>go.createPortal(e,document.querySelector("body"));var Kd=function(r){return r.reduce(function(n,o){var a=o[0],u=o[1];return n[a]=u,n},{})},Yd=typeof window<"u"&&window.document&&window.document.createElement?L.useLayoutEffect:L.useEffect,qt="top",vn="bottom",mn="right",Gt="left",Wl="auto",yo=[qt,vn,mn,Gt],Ri="start",uo="end",sS="clippingParents",Sh="viewport",to="popper",uS="reference",Xd=yo.reduce(function(e,r){return e.concat([r+"-"+Ri,r+"-"+uo])},[]),Eh=[].concat(yo,[Wl]).reduce(function(e,r){return e.concat([r,r+"-"+Ri,r+"-"+uo])},[]),lS="beforeRead",cS="read",fS="afterRead",dS="beforeMain",pS="main",hS="afterMain",vS="beforeWrite",mS="write",gS="afterWrite",yS=[lS,cS,fS,dS,pS,hS,vS,mS,gS];function Fn(e){return e?(e.nodeName||"").toLowerCase():null}function nn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var r=e.ownerDocument;return r&&r.defaultView||window}return e}function Vr(e){var r=nn(e).Element;return e instanceof r||e instanceof Element}function hn(e){var r=nn(e).HTMLElement;return e instanceof r||e instanceof HTMLElement}function Hl(e){if(typeof ShadowRoot>"u")return!1;var r=nn(e).ShadowRoot;return e instanceof r||e instanceof ShadowRoot}function wS(e){var r=e.state;Object.keys(r.elements).forEach(function(n){var o=r.styles[n]||{},a=r.attributes[n]||{},u=r.elements[n];!hn(u)||!Fn(u)||(Object.assign(u.style,o),Object.keys(a).forEach(function(l){var f=a[l];f===!1?u.removeAttribute(l):u.setAttribute(l,f===!0?"":f)}))})}function bS(e){var r=e.state,n={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(r.elements.popper.style,n.popper),r.styles=n,r.elements.arrow&&Object.assign(r.elements.arrow.style,n.arrow),function(){Object.keys(r.elements).forEach(function(o){var a=r.elements[o],u=r.attributes[o]||{},l=Object.keys(r.styles.hasOwnProperty(o)?r.styles[o]:n[o]),f=l.reduce(function(d,v){return d[v]="",d},{});!hn(a)||!Fn(a)||(Object.assign(a.style,f),Object.keys(u).forEach(function(d){a.removeAttribute(d)}))})}}const _S={name:"applyStyles",enabled:!0,phase:"write",fn:wS,effect:bS,requires:["computeStyles"]};function jn(e){return e.split("-")[0]}var Kr=Math.max,Ba=Math.min,Pi=Math.round;function vl(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(r){return r.brand+"/"+r.version}).join(" "):navigator.userAgent}function xh(){return!/^((?!chrome|android).)*safari/i.test(vl())}function Ai(e,r,n){r===void 0&&(r=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),a=1,u=1;r&&hn(e)&&(a=e.offsetWidth>0&&Pi(o.width)/e.offsetWidth||1,u=e.offsetHeight>0&&Pi(o.height)/e.offsetHeight||1);var l=Vr(e)?nn(e):window,f=l.visualViewport,d=!xh()&&n,v=(o.left+(d&&f?f.offsetLeft:0))/a,g=(o.top+(d&&f?f.offsetTop:0))/u,_=o.width/a,O=o.height/u;return{width:_,height:O,top:g,right:v+_,bottom:g+O,left:v,x:v,y:g}}function Ul(e){var r=Ai(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(r.width-n)<=1&&(n=r.width),Math.abs(r.height-o)<=1&&(o=r.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function Oh(e,r){var n=r.getRootNode&&r.getRootNode();if(e.contains(r))return!0;if(n&&Hl(n)){var o=r;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function nr(e){return nn(e).getComputedStyle(e)}function SS(e){return["table","td","th"].indexOf(Fn(e))>=0}function _r(e){return((Vr(e)?e.ownerDocument:e.document)||window.document).documentElement}function es(e){return Fn(e)==="html"?e:e.assignedSlot||e.parentNode||(Hl(e)?e.host:null)||_r(e)}function Vd(e){return!hn(e)||nr(e).position==="fixed"?null:e.offsetParent}function ES(e){var r=/firefox/i.test(vl()),n=/Trident/i.test(vl());if(n&&hn(e)){var o=nr(e);if(o.position==="fixed")return null}var a=es(e);for(Hl(a)&&(a=a.host);hn(a)&&["html","body"].indexOf(Fn(a))<0;){var u=nr(a);if(u.transform!=="none"||u.perspective!=="none"||u.contain==="paint"||["transform","perspective"].indexOf(u.willChange)!==-1||r&&u.willChange==="filter"||r&&u.filter&&u.filter!=="none")return a;a=a.parentNode}return null}function wo(e){for(var r=nn(e),n=Vd(e);n&&SS(n)&&nr(n).position==="static";)n=Vd(n);return n&&(Fn(n)==="html"||Fn(n)==="body"&&nr(n).position==="static")?r:n||ES(e)||r}function Bl(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function io(e,r,n){return Kr(e,Ba(r,n))}function xS(e,r,n){var o=io(e,r,n);return o>n?n:o}function Th(){return{top:0,right:0,bottom:0,left:0}}function Ch(e){return Object.assign({},Th(),e)}function Rh(e,r){return r.reduce(function(n,o){return n[o]=e,n},{})}var OS=function(r,n){return r=typeof r=="function"?r(Object.assign({},n.rects,{placement:n.placement})):r,Ch(typeof r!="number"?r:Rh(r,yo))};function TS(e){var r,n=e.state,o=e.name,a=e.options,u=n.elements.arrow,l=n.modifiersData.popperOffsets,f=jn(n.placement),d=Bl(f),v=[Gt,mn].indexOf(f)>=0,g=v?"height":"width";if(!(!u||!l)){var _=OS(a.padding,n),O=Ul(u),m=d==="y"?qt:Gt,S=d==="y"?vn:mn,y=n.rects.reference[g]+n.rects.reference[d]-l[d]-n.rects.popper[g],E=l[d]-n.rects.reference[d],D=wo(u),I=D?d==="y"?D.clientHeight||0:D.clientWidth||0:0,C=y/2-E/2,k=_[m],T=I-O[g]-_[S],H=I/2-O[g]/2+C,U=io(k,H,T),j=d;n.modifiersData[o]=(r={},r[j]=U,r.centerOffset=U-H,r)}}function CS(e){var r=e.state,n=e.options,o=n.element,a=o===void 0?"[data-popper-arrow]":o;a!=null&&(typeof a=="string"&&(a=r.elements.popper.querySelector(a),!a)||Oh(r.elements.popper,a)&&(r.elements.arrow=a))}const RS={name:"arrow",enabled:!0,phase:"main",fn:TS,effect:CS,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ii(e){return e.split("-")[1]}var PS={top:"auto",right:"auto",bottom:"auto",left:"auto"};function AS(e,r){var n=e.x,o=e.y,a=r.devicePixelRatio||1;return{x:Pi(n*a)/a||0,y:Pi(o*a)/a||0}}function Jd(e){var r,n=e.popper,o=e.popperRect,a=e.placement,u=e.variation,l=e.offsets,f=e.position,d=e.gpuAcceleration,v=e.adaptive,g=e.roundOffsets,_=e.isFixed,O=l.x,m=O===void 0?0:O,S=l.y,y=S===void 0?0:S,E=typeof g=="function"?g({x:m,y}):{x:m,y};m=E.x,y=E.y;var D=l.hasOwnProperty("x"),I=l.hasOwnProperty("y"),C=Gt,k=qt,T=window;if(v){var H=wo(n),U="clientHeight",j="clientWidth";if(H===nn(n)&&(H=_r(n),nr(H).position!=="static"&&f==="absolute"&&(U="scrollHeight",j="scrollWidth")),H=H,a===qt||(a===Gt||a===mn)&&u===uo){k=vn;var J=_&&H===T&&T.visualViewport?T.visualViewport.height:H[U];y-=J-o.height,y*=d?1:-1}if(a===Gt||(a===qt||a===vn)&&u===uo){C=mn;var ee=_&&H===T&&T.visualViewport?T.visualViewport.width:H[j];m-=ee-o.width,m*=d?1:-1}}var ge=Object.assign({position:f},v&&PS),Ce=g===!0?AS({x:m,y},nn(n)):{x:m,y};if(m=Ce.x,y=Ce.y,d){var _e;return Object.assign({},ge,(_e={},_e[k]=I?"0":"",_e[C]=D?"0":"",_e.transform=(T.devicePixelRatio||1)<=1?"translate("+m+"px, "+y+"px)":"translate3d("+m+"px, "+y+"px, 0)",_e))}return Object.assign({},ge,(r={},r[k]=I?y+"px":"",r[C]=D?m+"px":"",r.transform="",r))}function IS(e){var r=e.state,n=e.options,o=n.gpuAcceleration,a=o===void 0?!0:o,u=n.adaptive,l=u===void 0?!0:u,f=n.roundOffsets,d=f===void 0?!0:f,v={placement:jn(r.placement),variation:Ii(r.placement),popper:r.elements.popper,popperRect:r.rects.popper,gpuAcceleration:a,isFixed:r.options.strategy==="fixed"};r.modifiersData.popperOffsets!=null&&(r.styles.popper=Object.assign({},r.styles.popper,Jd(Object.assign({},v,{offsets:r.modifiersData.popperOffsets,position:r.options.strategy,adaptive:l,roundOffsets:d})))),r.modifiersData.arrow!=null&&(r.styles.arrow=Object.assign({},r.styles.arrow,Jd(Object.assign({},v,{offsets:r.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-placement":r.placement})}const LS={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:IS,data:{}};var ya={passive:!0};function MS(e){var r=e.state,n=e.instance,o=e.options,a=o.scroll,u=a===void 0?!0:a,l=o.resize,f=l===void 0?!0:l,d=nn(r.elements.popper),v=[].concat(r.scrollParents.reference,r.scrollParents.popper);return u&&v.forEach(function(g){g.addEventListener("scroll",n.update,ya)}),f&&d.addEventListener("resize",n.update,ya),function(){u&&v.forEach(function(g){g.removeEventListener("scroll",n.update,ya)}),f&&d.removeEventListener("resize",n.update,ya)}}const DS={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:MS,data:{}};var kS={left:"right",right:"left",bottom:"top",top:"bottom"};function Na(e){return e.replace(/left|right|bottom|top/g,function(r){return kS[r]})}var NS={start:"end",end:"start"};function Zd(e){return e.replace(/start|end/g,function(r){return NS[r]})}function zl(e){var r=nn(e),n=r.pageXOffset,o=r.pageYOffset;return{scrollLeft:n,scrollTop:o}}function ql(e){return Ai(_r(e)).left+zl(e).scrollLeft}function $S(e,r){var n=nn(e),o=_r(e),a=n.visualViewport,u=o.clientWidth,l=o.clientHeight,f=0,d=0;if(a){u=a.width,l=a.height;var v=xh();(v||!v&&r==="fixed")&&(f=a.offsetLeft,d=a.offsetTop)}return{width:u,height:l,x:f+ql(e),y:d}}function jS(e){var r,n=_r(e),o=zl(e),a=(r=e.ownerDocument)==null?void 0:r.body,u=Kr(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),l=Kr(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),f=-o.scrollLeft+ql(e),d=-o.scrollTop;return nr(a||n).direction==="rtl"&&(f+=Kr(n.clientWidth,a?a.clientWidth:0)-u),{width:u,height:l,x:f,y:d}}function Gl(e){var r=nr(e),n=r.overflow,o=r.overflowX,a=r.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+o)}function Ph(e){return["html","body","#document"].indexOf(Fn(e))>=0?e.ownerDocument.body:hn(e)&&Gl(e)?e:Ph(es(e))}function oo(e,r){var n;r===void 0&&(r=[]);var o=Ph(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),u=nn(o),l=a?[u].concat(u.visualViewport||[],Gl(o)?o:[]):o,f=r.concat(l);return a?f:f.concat(oo(es(l)))}function ml(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function FS(e,r){var n=Ai(e,!1,r==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Qd(e,r,n){return r===Sh?ml($S(e,n)):Vr(r)?FS(r,n):ml(jS(_r(e)))}function WS(e){var r=oo(es(e)),n=["absolute","fixed"].indexOf(nr(e).position)>=0,o=n&&hn(e)?wo(e):e;return Vr(o)?r.filter(function(a){return Vr(a)&&Oh(a,o)&&Fn(a)!=="body"}):[]}function HS(e,r,n,o){var a=r==="clippingParents"?WS(e):[].concat(r),u=[].concat(a,[n]),l=u[0],f=u.reduce(function(d,v){var g=Qd(e,v,o);return d.top=Kr(g.top,d.top),d.right=Ba(g.right,d.right),d.bottom=Ba(g.bottom,d.bottom),d.left=Kr(g.left,d.left),d},Qd(e,l,o));return f.width=f.right-f.left,f.height=f.bottom-f.top,f.x=f.left,f.y=f.top,f}function Ah(e){var r=e.reference,n=e.element,o=e.placement,a=o?jn(o):null,u=o?Ii(o):null,l=r.x+r.width/2-n.width/2,f=r.y+r.height/2-n.height/2,d;switch(a){case qt:d={x:l,y:r.y-n.height};break;case vn:d={x:l,y:r.y+r.height};break;case mn:d={x:r.x+r.width,y:f};break;case Gt:d={x:r.x-n.width,y:f};break;default:d={x:r.x,y:r.y}}var v=a?Bl(a):null;if(v!=null){var g=v==="y"?"height":"width";switch(u){case Ri:d[v]=d[v]-(r[g]/2-n[g]/2);break;case uo:d[v]=d[v]+(r[g]/2-n[g]/2);break}}return d}function lo(e,r){r===void 0&&(r={});var n=r,o=n.placement,a=o===void 0?e.placement:o,u=n.strategy,l=u===void 0?e.strategy:u,f=n.boundary,d=f===void 0?sS:f,v=n.rootBoundary,g=v===void 0?Sh:v,_=n.elementContext,O=_===void 0?to:_,m=n.altBoundary,S=m===void 0?!1:m,y=n.padding,E=y===void 0?0:y,D=Ch(typeof E!="number"?E:Rh(E,yo)),I=O===to?uS:to,C=e.rects.popper,k=e.elements[S?I:O],T=HS(Vr(k)?k:k.contextElement||_r(e.elements.popper),d,g,l),H=Ai(e.elements.reference),U=Ah({reference:H,element:C,strategy:"absolute",placement:a}),j=ml(Object.assign({},C,U)),J=O===to?j:H,ee={top:T.top-J.top+D.top,bottom:J.bottom-T.bottom+D.bottom,left:T.left-J.left+D.left,right:J.right-T.right+D.right},ge=e.modifiersData.offset;if(O===to&&ge){var Ce=ge[a];Object.keys(ee).forEach(function(_e){var se=[mn,vn].indexOf(_e)>=0?1:-1,Le=[qt,vn].indexOf(_e)>=0?"y":"x";ee[_e]+=Ce[Le]*se})}return ee}function US(e,r){r===void 0&&(r={});var n=r,o=n.placement,a=n.boundary,u=n.rootBoundary,l=n.padding,f=n.flipVariations,d=n.allowedAutoPlacements,v=d===void 0?Eh:d,g=Ii(o),_=g?f?Xd:Xd.filter(function(S){return Ii(S)===g}):yo,O=_.filter(function(S){return v.indexOf(S)>=0});O.length===0&&(O=_);var m=O.reduce(function(S,y){return S[y]=lo(e,{placement:y,boundary:a,rootBoundary:u,padding:l})[jn(y)],S},{});return Object.keys(m).sort(function(S,y){return m[S]-m[y]})}function BS(e){if(jn(e)===Wl)return[];var r=Na(e);return[Zd(e),r,Zd(r)]}function zS(e){var r=e.state,n=e.options,o=e.name;if(!r.modifiersData[o]._skip){for(var a=n.mainAxis,u=a===void 0?!0:a,l=n.altAxis,f=l===void 0?!0:l,d=n.fallbackPlacements,v=n.padding,g=n.boundary,_=n.rootBoundary,O=n.altBoundary,m=n.flipVariations,S=m===void 0?!0:m,y=n.allowedAutoPlacements,E=r.options.placement,D=jn(E),I=D===E,C=d||(I||!S?[Na(E)]:BS(E)),k=[E].concat(C).reduce(function(ce,fe){return ce.concat(jn(fe)===Wl?US(r,{placement:fe,boundary:g,rootBoundary:_,padding:v,flipVariations:S,allowedAutoPlacements:y}):fe)},[]),T=r.rects.reference,H=r.rects.popper,U=new Map,j=!0,J=k[0],ee=0;ee<k.length;ee++){var ge=k[ee],Ce=jn(ge),_e=Ii(ge)===Ri,se=[qt,vn].indexOf(Ce)>=0,Le=se?"width":"height",we=lo(r,{placement:ge,boundary:g,rootBoundary:_,altBoundary:O,padding:v}),xe=se?_e?mn:Gt:_e?vn:qt;T[Le]>H[Le]&&(xe=Na(xe));var We=Na(xe),ut=[];if(u&&ut.push(we[Ce]<=0),f&&ut.push(we[xe]<=0,we[We]<=0),ut.every(function(ce){return ce})){J=ge,j=!1;break}U.set(ge,ut)}if(j)for(var G=S?3:1,X=function(fe){var ue=k.find(function(pe){var le=U.get(pe);if(le)return le.slice(0,fe).every(function(ye){return ye})});if(ue)return J=ue,"break"},de=G;de>0;de--){var ie=X(de);if(ie==="break")break}r.placement!==J&&(r.modifiersData[o]._skip=!0,r.placement=J,r.reset=!0)}}const qS={name:"flip",enabled:!0,phase:"main",fn:zS,requiresIfExists:["offset"],data:{_skip:!1}};function ep(e,r,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-r.height-n.y,right:e.right-r.width+n.x,bottom:e.bottom-r.height+n.y,left:e.left-r.width-n.x}}function tp(e){return[qt,mn,vn,Gt].some(function(r){return e[r]>=0})}function GS(e){var r=e.state,n=e.name,o=r.rects.reference,a=r.rects.popper,u=r.modifiersData.preventOverflow,l=lo(r,{elementContext:"reference"}),f=lo(r,{altBoundary:!0}),d=ep(l,o),v=ep(f,a,u),g=tp(d),_=tp(v);r.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:v,isReferenceHidden:g,hasPopperEscaped:_},r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-reference-hidden":g,"data-popper-escaped":_})}const KS={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:GS};function YS(e,r,n){var o=jn(e),a=[Gt,qt].indexOf(o)>=0?-1:1,u=typeof n=="function"?n(Object.assign({},r,{placement:e})):n,l=u[0],f=u[1];return l=l||0,f=(f||0)*a,[Gt,mn].indexOf(o)>=0?{x:f,y:l}:{x:l,y:f}}function XS(e){var r=e.state,n=e.options,o=e.name,a=n.offset,u=a===void 0?[0,0]:a,l=Eh.reduce(function(g,_){return g[_]=YS(_,r.rects,u),g},{}),f=l[r.placement],d=f.x,v=f.y;r.modifiersData.popperOffsets!=null&&(r.modifiersData.popperOffsets.x+=d,r.modifiersData.popperOffsets.y+=v),r.modifiersData[o]=l}const VS={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:XS};function JS(e){var r=e.state,n=e.name;r.modifiersData[n]=Ah({reference:r.rects.reference,element:r.rects.popper,strategy:"absolute",placement:r.placement})}const ZS={name:"popperOffsets",enabled:!0,phase:"read",fn:JS,data:{}};function QS(e){return e==="x"?"y":"x"}function eE(e){var r=e.state,n=e.options,o=e.name,a=n.mainAxis,u=a===void 0?!0:a,l=n.altAxis,f=l===void 0?!1:l,d=n.boundary,v=n.rootBoundary,g=n.altBoundary,_=n.padding,O=n.tether,m=O===void 0?!0:O,S=n.tetherOffset,y=S===void 0?0:S,E=lo(r,{boundary:d,rootBoundary:v,padding:_,altBoundary:g}),D=jn(r.placement),I=Ii(r.placement),C=!I,k=Bl(D),T=QS(k),H=r.modifiersData.popperOffsets,U=r.rects.reference,j=r.rects.popper,J=typeof y=="function"?y(Object.assign({},r.rects,{placement:r.placement})):y,ee=typeof J=="number"?{mainAxis:J,altAxis:J}:Object.assign({mainAxis:0,altAxis:0},J),ge=r.modifiersData.offset?r.modifiersData.offset[r.placement]:null,Ce={x:0,y:0};if(H){if(u){var _e,se=k==="y"?qt:Gt,Le=k==="y"?vn:mn,we=k==="y"?"height":"width",xe=H[k],We=xe+E[se],ut=xe-E[Le],G=m?-j[we]/2:0,X=I===Ri?U[we]:j[we],de=I===Ri?-j[we]:-U[we],ie=r.elements.arrow,ce=m&&ie?Ul(ie):{width:0,height:0},fe=r.modifiersData["arrow#persistent"]?r.modifiersData["arrow#persistent"].padding:Th(),ue=fe[se],pe=fe[Le],le=io(0,U[we],ce[we]),ye=C?U[we]/2-G-le-ue-ee.mainAxis:X-le-ue-ee.mainAxis,be=C?-U[we]/2+G+le+pe+ee.mainAxis:de+le+pe+ee.mainAxis,Ke=r.elements.arrow&&wo(r.elements.arrow),V=Ke?k==="y"?Ke.clientTop||0:Ke.clientLeft||0:0,rt=(_e=ge==null?void 0:ge[k])!=null?_e:0,it=xe+ye-rt-V,dt=xe+be-rt,An=io(m?Ba(We,it):We,xe,m?Kr(ut,dt):ut);H[k]=An,Ce[k]=An-xe}if(f){var gt,Wt=k==="x"?qt:Gt,Sr=k==="x"?vn:mn,Je=H[T],Qe=T==="y"?"height":"width",rn=Je+E[Wt],Kt=Je-E[Sr],gn=[qt,Gt].indexOf(D)!==-1,Tt=(gt=ge==null?void 0:ge[T])!=null?gt:0,rr=gn?rn:Je-U[Qe]-j[Qe]-Tt+ee.altAxis,on=gn?Je+U[Qe]+j[Qe]-Tt-ee.altAxis:Kt,Yt=m&&gn?xS(rr,Je,on):io(m?rr:rn,Je,m?on:Kt);H[T]=Yt,Ce[T]=Yt-Je}r.modifiersData[o]=Ce}}const tE={name:"preventOverflow",enabled:!0,phase:"main",fn:eE,requiresIfExists:["offset"]};function nE(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function rE(e){return e===nn(e)||!hn(e)?zl(e):nE(e)}function iE(e){var r=e.getBoundingClientRect(),n=Pi(r.width)/e.offsetWidth||1,o=Pi(r.height)/e.offsetHeight||1;return n!==1||o!==1}function oE(e,r,n){n===void 0&&(n=!1);var o=hn(r),a=hn(r)&&iE(r),u=_r(r),l=Ai(e,a,n),f={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(o||!o&&!n)&&((Fn(r)!=="body"||Gl(u))&&(f=rE(r)),hn(r)?(d=Ai(r,!0),d.x+=r.clientLeft,d.y+=r.clientTop):u&&(d.x=ql(u))),{x:l.left+f.scrollLeft-d.x,y:l.top+f.scrollTop-d.y,width:l.width,height:l.height}}function aE(e){var r=new Map,n=new Set,o=[];e.forEach(function(u){r.set(u.name,u)});function a(u){n.add(u.name);var l=[].concat(u.requires||[],u.requiresIfExists||[]);l.forEach(function(f){if(!n.has(f)){var d=r.get(f);d&&a(d)}}),o.push(u)}return e.forEach(function(u){n.has(u.name)||a(u)}),o}function sE(e){var r=aE(e);return yS.reduce(function(n,o){return n.concat(r.filter(function(a){return a.phase===o}))},[])}function uE(e){var r;return function(){return r||(r=new Promise(function(n){Promise.resolve().then(function(){r=void 0,n(e())})})),r}}function lE(e){var r=e.reduce(function(n,o){var a=n[o.name];return n[o.name]=a?Object.assign({},a,o,{options:Object.assign({},a.options,o.options),data:Object.assign({},a.data,o.data)}):o,n},{});return Object.keys(r).map(function(n){return r[n]})}var np={placement:"bottom",modifiers:[],strategy:"absolute"};function rp(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return!r.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function cE(e){e===void 0&&(e={});var r=e,n=r.defaultModifiers,o=n===void 0?[]:n,a=r.defaultOptions,u=a===void 0?np:a;return function(f,d,v){v===void 0&&(v=u);var g={placement:"bottom",orderedModifiers:[],options:Object.assign({},np,u),modifiersData:{},elements:{reference:f,popper:d},attributes:{},styles:{}},_=[],O=!1,m={state:g,setOptions:function(D){var I=typeof D=="function"?D(g.options):D;y(),g.options=Object.assign({},u,g.options,I),g.scrollParents={reference:Vr(f)?oo(f):f.contextElement?oo(f.contextElement):[],popper:oo(d)};var C=sE(lE([].concat(o,g.options.modifiers)));return g.orderedModifiers=C.filter(function(k){return k.enabled}),S(),m.update()},forceUpdate:function(){if(!O){var D=g.elements,I=D.reference,C=D.popper;if(rp(I,C)){g.rects={reference:oE(I,wo(C),g.options.strategy==="fixed"),popper:Ul(C)},g.reset=!1,g.placement=g.options.placement,g.orderedModifiers.forEach(function(ee){return g.modifiersData[ee.name]=Object.assign({},ee.data)});for(var k=0;k<g.orderedModifiers.length;k++){if(g.reset===!0){g.reset=!1,k=-1;continue}var T=g.orderedModifiers[k],H=T.fn,U=T.options,j=U===void 0?{}:U,J=T.name;typeof H=="function"&&(g=H({state:g,options:j,name:J,instance:m})||g)}}}},update:uE(function(){return new Promise(function(E){m.forceUpdate(),E(g)})}),destroy:function(){y(),O=!0}};if(!rp(f,d))return m;m.setOptions(v).then(function(E){!O&&v.onFirstUpdate&&v.onFirstUpdate(E)});function S(){g.orderedModifiers.forEach(function(E){var D=E.name,I=E.options,C=I===void 0?{}:I,k=E.effect;if(typeof k=="function"){var T=k({state:g,name:D,instance:m,options:C}),H=function(){};_.push(T||H)}})}function y(){_.forEach(function(E){return E()}),_=[]}return m}}var fE=[DS,ZS,LS,_S,VS,qS,tE,RS,KS],dE=cE({defaultModifiers:fE}),pE=typeof Element<"u",hE=typeof Map=="function",vE=typeof Set=="function",mE=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function $a(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var n,o,a;if(Array.isArray(e)){if(n=e.length,n!=r.length)return!1;for(o=n;o--!==0;)if(!$a(e[o],r[o]))return!1;return!0}var u;if(hE&&e instanceof Map&&r instanceof Map){if(e.size!==r.size)return!1;for(u=e.entries();!(o=u.next()).done;)if(!r.has(o.value[0]))return!1;for(u=e.entries();!(o=u.next()).done;)if(!$a(o.value[1],r.get(o.value[0])))return!1;return!0}if(vE&&e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;for(u=e.entries();!(o=u.next()).done;)if(!r.has(o.value[0]))return!1;return!0}if(mE&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(r)){if(n=e.length,n!=r.length)return!1;for(o=n;o--!==0;)if(e[o]!==r[o])return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof r.valueOf=="function")return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof r.toString=="function")return e.toString()===r.toString();if(a=Object.keys(e),n=a.length,n!==Object.keys(r).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[o]))return!1;if(pE&&e instanceof Element)return!1;for(o=n;o--!==0;)if(!((a[o]==="_owner"||a[o]==="__v"||a[o]==="__o")&&e.$$typeof)&&!$a(e[a[o]],r[a[o]]))return!1;return!0}return e!==e&&r!==r}var gE=function(r,n){try{return $a(r,n)}catch(o){if((o.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw o}};const yE=bh(gE);var wE=[],Ih=function(r,n,o){o===void 0&&(o={});var a=L.useRef(null),u={onFirstUpdate:o.onFirstUpdate,placement:o.placement||"bottom",strategy:o.strategy||"absolute",modifiers:o.modifiers||wE},l=L.useState({styles:{popper:{position:u.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),f=l[0],d=l[1],v=L.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(m){var S=m.state,y=Object.keys(S.elements);rS.flushSync(function(){d({styles:Kd(y.map(function(E){return[E,S.styles[E]||{}]})),attributes:Kd(y.map(function(E){return[E,S.attributes[E]]}))})})},requires:["computeStyles"]}},[]),g=L.useMemo(function(){var O={onFirstUpdate:u.onFirstUpdate,placement:u.placement,strategy:u.strategy,modifiers:[].concat(u.modifiers,[v,{name:"applyStyles",enabled:!1}])};return yE(a.current,O)?a.current||O:(a.current=O,O)},[u.onFirstUpdate,u.placement,u.strategy,u.modifiers,v]),_=L.useRef();return Yd(function(){_.current&&_.current.setOptions(g)},[g]),Yd(function(){if(!(r==null||n==null)){var O=o.createPopper||dE,m=O(r,n,g);return _.current=m,function(){m.destroy(),_.current=null}}},[r,n,o.createPopper]),{state:_.current?_.current.state:null,styles:f.styles,attributes:f.attributes,update:_.current?_.current.update:null,forceUpdate:_.current?_.current.forceUpdate:null}};const Lh=e=>$.jsx("div",{className:"absolute inset-0 z-[1999]",onClick:e.onClick}),Mh=N.forwardRef(({children:e,style:r,attributes:n},o)=>$.jsx("div",{style:{...r,zIndex:2e3},...n,ref:o,className:"w-60 rounded border rounded border border-grey-50 bg-grey-900 shadow-2xl","data-cy":"dialogBody",children:e})),bE=({referenceElement:e,placement:r,isOpen:n,children:o,onClose:a})=>{const[u,l]=N.useState(null),{styles:f,attributes:d}=Ih(e,u,{placement:r||"bottom-start"}),v=N.useCallback(()=>{a&&a()},[a]);return n?$.jsxs(_h,{children:[$.jsx(Lh,{onClick:()=>v()}),$.jsx(Mh,{ref:l,style:f.popper,attributes:d.popper,children:o})]}):null};var gl={exports:{}},bi={};/*
29
+ Check the top-level render call using <`+F+">.")}return P}}function or(p,P){{if(!p._store||p._store.validated||p.key!=null)return;p._store.validated=!0;var F=ii(P);if(Ar[F])return;Ar[F]=!0;var Y="";p&&p._owner&&p._owner!==yn.current&&(Y=" It was passed a child from "+se(p._owner.type)+"."),bt(p),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',F,Y),bt(null)}}function Ir(p,P){{if(typeof p!="object")return;if(Array.isArray(p))for(var F=0;F<p.length;F++){var Y=p[F];bn(Y)&&or(Y,P)}else if(bn(p))p._store&&(p._store.validated=!0);else if(p){var oe=H(p);if(typeof oe=="function"&&oe!==p.entries)for(var ae=oe.call(p),te;!(te=ae.next()).done;)bn(te.value)&&or(te.value,P)}}}function Ni(p){{var P=p.type;if(P==null||typeof P=="string")return;var F;if(typeof P=="function")F=P.propTypes;else if(typeof P=="object"&&(P.$$typeof===v||P.$$typeof===O))F=P.propTypes;else return;if(F){var Y=se(P);xr(F,p.props,"prop",Y,p)}else if(P.PropTypes!==void 0&&!wn){wn=!0;var oe=se(P);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",oe||"Unknown")}typeof P.getDefaultProps=="function"&&!P.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function $i(p){{for(var P=Object.keys(p.props),F=0;F<P.length;F++){var Y=P[F];if(Y!=="children"&&Y!=="key"){bt(p),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Y),bt(null);break}}p.ref!==null&&(bt(p),j("Invalid attribute `ref` supplied to `React.Fragment`."),bt(null))}}function Lr(p,P,F,Y,oe,ae){{var te=ge(p);if(!te){var Q="";(p===void 0||typeof p=="object"&&p!==null&&Object.keys(p).length===0)&&(Q+=" 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 je=ki(oe);je?Q+=je:Q+=Pr();var Se;p===null?Se="null":Array.isArray(p)?Se="array":p!==void 0&&p.$$typeof===o?(Se="<"+(se(p.type)||"Unknown")+" />",Q=" Did you accidentally export a JSX literal instead of a component?"):Se=typeof p,j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Se,Q)}var Oe=Rr(p,P,F,oe,ae);if(Oe==null)return Oe;if(te){var ot=P.children;if(ot!==void 0)if(Y)if(Array.isArray(ot)){for(var kt=0;kt<ot.length;kt++)Ir(ot[kt],p);Object.freeze&&Object.freeze(ot)}else j("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 Ir(ot,p)}return p===e.Fragment?$i(Oe):Ni(Oe),Oe}}function oi(p,P,F){return Lr(p,P,F,!0)}function ji(p,P,F){return Lr(p,P,F,!1)}var Fi=ji,Wi=oi;e.jsx=Fi,e.jsxs=Wi}()}(Ru)),Ru}process.env.NODE_ENV==="production"?vl.exports=sS():vl.exports=uS();var $=vl.exports;const xh=({children:e})=>yo.createPortal(e,document.querySelector("body"));var Xd=function(r){return r.reduce(function(n,o){var a=o[0],u=o[1];return n[a]=u,n},{})},Vd=typeof window<"u"&&window.document&&window.document.createElement?L.useLayoutEffect:L.useEffect,qt="top",vn="bottom",mn="right",Gt="left",Hl="auto",wo=[qt,vn,mn,Gt],Pi="start",lo="end",lS="clippingParents",Oh="viewport",no="popper",cS="reference",Zd=wo.reduce(function(e,r){return e.concat([r+"-"+Pi,r+"-"+lo])},[]),Th=[].concat(wo,[Hl]).reduce(function(e,r){return e.concat([r,r+"-"+Pi,r+"-"+lo])},[]),fS="beforeRead",dS="read",pS="afterRead",hS="beforeMain",vS="main",mS="afterMain",gS="beforeWrite",yS="write",wS="afterWrite",bS=[fS,dS,pS,hS,vS,mS,gS,yS,wS];function Fn(e){return e?(e.nodeName||"").toLowerCase():null}function nn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var r=e.ownerDocument;return r&&r.defaultView||window}return e}function Jr(e){var r=nn(e).Element;return e instanceof r||e instanceof Element}function hn(e){var r=nn(e).HTMLElement;return e instanceof r||e instanceof HTMLElement}function Ul(e){if(typeof ShadowRoot>"u")return!1;var r=nn(e).ShadowRoot;return e instanceof r||e instanceof ShadowRoot}function _S(e){var r=e.state;Object.keys(r.elements).forEach(function(n){var o=r.styles[n]||{},a=r.attributes[n]||{},u=r.elements[n];!hn(u)||!Fn(u)||(Object.assign(u.style,o),Object.keys(a).forEach(function(l){var f=a[l];f===!1?u.removeAttribute(l):u.setAttribute(l,f===!0?"":f)}))})}function SS(e){var r=e.state,n={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(r.elements.popper.style,n.popper),r.styles=n,r.elements.arrow&&Object.assign(r.elements.arrow.style,n.arrow),function(){Object.keys(r.elements).forEach(function(o){var a=r.elements[o],u=r.attributes[o]||{},l=Object.keys(r.styles.hasOwnProperty(o)?r.styles[o]:n[o]),f=l.reduce(function(d,v){return d[v]="",d},{});!hn(a)||!Fn(a)||(Object.assign(a.style,f),Object.keys(u).forEach(function(d){a.removeAttribute(d)}))})}}const ES={name:"applyStyles",enabled:!0,phase:"write",fn:_S,effect:SS,requires:["computeStyles"]};function jn(e){return e.split("-")[0]}var Xr=Math.max,za=Math.min,Ai=Math.round;function ml(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(r){return r.brand+"/"+r.version}).join(" "):navigator.userAgent}function Ch(){return!/^((?!chrome|android).)*safari/i.test(ml())}function Ii(e,r,n){r===void 0&&(r=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),a=1,u=1;r&&hn(e)&&(a=e.offsetWidth>0&&Ai(o.width)/e.offsetWidth||1,u=e.offsetHeight>0&&Ai(o.height)/e.offsetHeight||1);var l=Jr(e)?nn(e):window,f=l.visualViewport,d=!Ch()&&n,v=(o.left+(d&&f?f.offsetLeft:0))/a,g=(o.top+(d&&f?f.offsetTop:0))/u,_=o.width/a,O=o.height/u;return{width:_,height:O,top:g,right:v+_,bottom:g+O,left:v,x:v,y:g}}function Bl(e){var r=Ii(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(r.width-n)<=1&&(n=r.width),Math.abs(r.height-o)<=1&&(o=r.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function Rh(e,r){var n=r.getRootNode&&r.getRootNode();if(e.contains(r))return!0;if(n&&Ul(n)){var o=r;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function rr(e){return nn(e).getComputedStyle(e)}function xS(e){return["table","td","th"].indexOf(Fn(e))>=0}function Er(e){return((Jr(e)?e.ownerDocument:e.document)||window.document).documentElement}function ts(e){return Fn(e)==="html"?e:e.assignedSlot||e.parentNode||(Ul(e)?e.host:null)||Er(e)}function Jd(e){return!hn(e)||rr(e).position==="fixed"?null:e.offsetParent}function OS(e){var r=/firefox/i.test(ml()),n=/Trident/i.test(ml());if(n&&hn(e)){var o=rr(e);if(o.position==="fixed")return null}var a=ts(e);for(Ul(a)&&(a=a.host);hn(a)&&["html","body"].indexOf(Fn(a))<0;){var u=rr(a);if(u.transform!=="none"||u.perspective!=="none"||u.contain==="paint"||["transform","perspective"].indexOf(u.willChange)!==-1||r&&u.willChange==="filter"||r&&u.filter&&u.filter!=="none")return a;a=a.parentNode}return null}function bo(e){for(var r=nn(e),n=Jd(e);n&&xS(n)&&rr(n).position==="static";)n=Jd(n);return n&&(Fn(n)==="html"||Fn(n)==="body"&&rr(n).position==="static")?r:n||OS(e)||r}function zl(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function oo(e,r,n){return Xr(e,za(r,n))}function TS(e,r,n){var o=oo(e,r,n);return o>n?n:o}function Ph(){return{top:0,right:0,bottom:0,left:0}}function Ah(e){return Object.assign({},Ph(),e)}function Ih(e,r){return r.reduce(function(n,o){return n[o]=e,n},{})}var CS=function(r,n){return r=typeof r=="function"?r(Object.assign({},n.rects,{placement:n.placement})):r,Ah(typeof r!="number"?r:Ih(r,wo))};function RS(e){var r,n=e.state,o=e.name,a=e.options,u=n.elements.arrow,l=n.modifiersData.popperOffsets,f=jn(n.placement),d=zl(f),v=[Gt,mn].indexOf(f)>=0,g=v?"height":"width";if(!(!u||!l)){var _=CS(a.padding,n),O=Bl(u),m=d==="y"?qt:Gt,S=d==="y"?vn:mn,y=n.rects.reference[g]+n.rects.reference[d]-l[d]-n.rects.popper[g],E=l[d]-n.rects.reference[d],D=bo(u),I=D?d==="y"?D.clientHeight||0:D.clientWidth||0:0,C=y/2-E/2,k=_[m],T=I-O[g]-_[S],H=I/2-O[g]/2+C,U=oo(k,H,T),j=d;n.modifiersData[o]=(r={},r[j]=U,r.centerOffset=U-H,r)}}function PS(e){var r=e.state,n=e.options,o=n.element,a=o===void 0?"[data-popper-arrow]":o;a!=null&&(typeof a=="string"&&(a=r.elements.popper.querySelector(a),!a)||Rh(r.elements.popper,a)&&(r.elements.arrow=a))}const AS={name:"arrow",enabled:!0,phase:"main",fn:RS,effect:PS,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Li(e){return e.split("-")[1]}var IS={top:"auto",right:"auto",bottom:"auto",left:"auto"};function LS(e,r){var n=e.x,o=e.y,a=r.devicePixelRatio||1;return{x:Ai(n*a)/a||0,y:Ai(o*a)/a||0}}function Qd(e){var r,n=e.popper,o=e.popperRect,a=e.placement,u=e.variation,l=e.offsets,f=e.position,d=e.gpuAcceleration,v=e.adaptive,g=e.roundOffsets,_=e.isFixed,O=l.x,m=O===void 0?0:O,S=l.y,y=S===void 0?0:S,E=typeof g=="function"?g({x:m,y}):{x:m,y};m=E.x,y=E.y;var D=l.hasOwnProperty("x"),I=l.hasOwnProperty("y"),C=Gt,k=qt,T=window;if(v){var H=bo(n),U="clientHeight",j="clientWidth";if(H===nn(n)&&(H=Er(n),rr(H).position!=="static"&&f==="absolute"&&(U="scrollHeight",j="scrollWidth")),H=H,a===qt||(a===Gt||a===mn)&&u===lo){k=vn;var Z=_&&H===T&&T.visualViewport?T.visualViewport.height:H[U];y-=Z-o.height,y*=d?1:-1}if(a===Gt||(a===qt||a===vn)&&u===lo){C=mn;var ee=_&&H===T&&T.visualViewport?T.visualViewport.width:H[j];m-=ee-o.width,m*=d?1:-1}}var ge=Object.assign({position:f},v&&IS),Ce=g===!0?LS({x:m,y},nn(n)):{x:m,y};if(m=Ce.x,y=Ce.y,d){var _e;return Object.assign({},ge,(_e={},_e[k]=I?"0":"",_e[C]=D?"0":"",_e.transform=(T.devicePixelRatio||1)<=1?"translate("+m+"px, "+y+"px)":"translate3d("+m+"px, "+y+"px, 0)",_e))}return Object.assign({},ge,(r={},r[k]=I?y+"px":"",r[C]=D?m+"px":"",r.transform="",r))}function MS(e){var r=e.state,n=e.options,o=n.gpuAcceleration,a=o===void 0?!0:o,u=n.adaptive,l=u===void 0?!0:u,f=n.roundOffsets,d=f===void 0?!0:f,v={placement:jn(r.placement),variation:Li(r.placement),popper:r.elements.popper,popperRect:r.rects.popper,gpuAcceleration:a,isFixed:r.options.strategy==="fixed"};r.modifiersData.popperOffsets!=null&&(r.styles.popper=Object.assign({},r.styles.popper,Qd(Object.assign({},v,{offsets:r.modifiersData.popperOffsets,position:r.options.strategy,adaptive:l,roundOffsets:d})))),r.modifiersData.arrow!=null&&(r.styles.arrow=Object.assign({},r.styles.arrow,Qd(Object.assign({},v,{offsets:r.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-placement":r.placement})}const DS={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:MS,data:{}};var wa={passive:!0};function kS(e){var r=e.state,n=e.instance,o=e.options,a=o.scroll,u=a===void 0?!0:a,l=o.resize,f=l===void 0?!0:l,d=nn(r.elements.popper),v=[].concat(r.scrollParents.reference,r.scrollParents.popper);return u&&v.forEach(function(g){g.addEventListener("scroll",n.update,wa)}),f&&d.addEventListener("resize",n.update,wa),function(){u&&v.forEach(function(g){g.removeEventListener("scroll",n.update,wa)}),f&&d.removeEventListener("resize",n.update,wa)}}const NS={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:kS,data:{}};var $S={left:"right",right:"left",bottom:"top",top:"bottom"};function $a(e){return e.replace(/left|right|bottom|top/g,function(r){return $S[r]})}var jS={start:"end",end:"start"};function ep(e){return e.replace(/start|end/g,function(r){return jS[r]})}function ql(e){var r=nn(e),n=r.pageXOffset,o=r.pageYOffset;return{scrollLeft:n,scrollTop:o}}function Gl(e){return Ii(Er(e)).left+ql(e).scrollLeft}function FS(e,r){var n=nn(e),o=Er(e),a=n.visualViewport,u=o.clientWidth,l=o.clientHeight,f=0,d=0;if(a){u=a.width,l=a.height;var v=Ch();(v||!v&&r==="fixed")&&(f=a.offsetLeft,d=a.offsetTop)}return{width:u,height:l,x:f+Gl(e),y:d}}function WS(e){var r,n=Er(e),o=ql(e),a=(r=e.ownerDocument)==null?void 0:r.body,u=Xr(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),l=Xr(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),f=-o.scrollLeft+Gl(e),d=-o.scrollTop;return rr(a||n).direction==="rtl"&&(f+=Xr(n.clientWidth,a?a.clientWidth:0)-u),{width:u,height:l,x:f,y:d}}function Kl(e){var r=rr(e),n=r.overflow,o=r.overflowX,a=r.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+o)}function Lh(e){return["html","body","#document"].indexOf(Fn(e))>=0?e.ownerDocument.body:hn(e)&&Kl(e)?e:Lh(ts(e))}function ao(e,r){var n;r===void 0&&(r=[]);var o=Lh(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),u=nn(o),l=a?[u].concat(u.visualViewport||[],Kl(o)?o:[]):o,f=r.concat(l);return a?f:f.concat(ao(ts(l)))}function gl(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function HS(e,r){var n=Ii(e,!1,r==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function tp(e,r,n){return r===Oh?gl(FS(e,n)):Jr(r)?HS(r,n):gl(WS(Er(e)))}function US(e){var r=ao(ts(e)),n=["absolute","fixed"].indexOf(rr(e).position)>=0,o=n&&hn(e)?bo(e):e;return Jr(o)?r.filter(function(a){return Jr(a)&&Rh(a,o)&&Fn(a)!=="body"}):[]}function BS(e,r,n,o){var a=r==="clippingParents"?US(e):[].concat(r),u=[].concat(a,[n]),l=u[0],f=u.reduce(function(d,v){var g=tp(e,v,o);return d.top=Xr(g.top,d.top),d.right=za(g.right,d.right),d.bottom=za(g.bottom,d.bottom),d.left=Xr(g.left,d.left),d},tp(e,l,o));return f.width=f.right-f.left,f.height=f.bottom-f.top,f.x=f.left,f.y=f.top,f}function Mh(e){var r=e.reference,n=e.element,o=e.placement,a=o?jn(o):null,u=o?Li(o):null,l=r.x+r.width/2-n.width/2,f=r.y+r.height/2-n.height/2,d;switch(a){case qt:d={x:l,y:r.y-n.height};break;case vn:d={x:l,y:r.y+r.height};break;case mn:d={x:r.x+r.width,y:f};break;case Gt:d={x:r.x-n.width,y:f};break;default:d={x:r.x,y:r.y}}var v=a?zl(a):null;if(v!=null){var g=v==="y"?"height":"width";switch(u){case Pi:d[v]=d[v]-(r[g]/2-n[g]/2);break;case lo:d[v]=d[v]+(r[g]/2-n[g]/2);break}}return d}function co(e,r){r===void 0&&(r={});var n=r,o=n.placement,a=o===void 0?e.placement:o,u=n.strategy,l=u===void 0?e.strategy:u,f=n.boundary,d=f===void 0?lS:f,v=n.rootBoundary,g=v===void 0?Oh:v,_=n.elementContext,O=_===void 0?no:_,m=n.altBoundary,S=m===void 0?!1:m,y=n.padding,E=y===void 0?0:y,D=Ah(typeof E!="number"?E:Ih(E,wo)),I=O===no?cS:no,C=e.rects.popper,k=e.elements[S?I:O],T=BS(Jr(k)?k:k.contextElement||Er(e.elements.popper),d,g,l),H=Ii(e.elements.reference),U=Mh({reference:H,element:C,strategy:"absolute",placement:a}),j=gl(Object.assign({},C,U)),Z=O===no?j:H,ee={top:T.top-Z.top+D.top,bottom:Z.bottom-T.bottom+D.bottom,left:T.left-Z.left+D.left,right:Z.right-T.right+D.right},ge=e.modifiersData.offset;if(O===no&&ge){var Ce=ge[a];Object.keys(ee).forEach(function(_e){var se=[mn,vn].indexOf(_e)>=0?1:-1,Le=[qt,vn].indexOf(_e)>=0?"y":"x";ee[_e]+=Ce[Le]*se})}return ee}function zS(e,r){r===void 0&&(r={});var n=r,o=n.placement,a=n.boundary,u=n.rootBoundary,l=n.padding,f=n.flipVariations,d=n.allowedAutoPlacements,v=d===void 0?Th:d,g=Li(o),_=g?f?Zd:Zd.filter(function(S){return Li(S)===g}):wo,O=_.filter(function(S){return v.indexOf(S)>=0});O.length===0&&(O=_);var m=O.reduce(function(S,y){return S[y]=co(e,{placement:y,boundary:a,rootBoundary:u,padding:l})[jn(y)],S},{});return Object.keys(m).sort(function(S,y){return m[S]-m[y]})}function qS(e){if(jn(e)===Hl)return[];var r=$a(e);return[ep(e),r,ep(r)]}function GS(e){var r=e.state,n=e.options,o=e.name;if(!r.modifiersData[o]._skip){for(var a=n.mainAxis,u=a===void 0?!0:a,l=n.altAxis,f=l===void 0?!0:l,d=n.fallbackPlacements,v=n.padding,g=n.boundary,_=n.rootBoundary,O=n.altBoundary,m=n.flipVariations,S=m===void 0?!0:m,y=n.allowedAutoPlacements,E=r.options.placement,D=jn(E),I=D===E,C=d||(I||!S?[$a(E)]:qS(E)),k=[E].concat(C).reduce(function(ce,fe){return ce.concat(jn(fe)===Hl?zS(r,{placement:fe,boundary:g,rootBoundary:_,padding:v,flipVariations:S,allowedAutoPlacements:y}):fe)},[]),T=r.rects.reference,H=r.rects.popper,U=new Map,j=!0,Z=k[0],ee=0;ee<k.length;ee++){var ge=k[ee],Ce=jn(ge),_e=Li(ge)===Pi,se=[qt,vn].indexOf(Ce)>=0,Le=se?"width":"height",we=co(r,{placement:ge,boundary:g,rootBoundary:_,altBoundary:O,padding:v}),xe=se?_e?mn:Gt:_e?vn:qt;T[Le]>H[Le]&&(xe=$a(xe));var We=$a(xe),ut=[];if(u&&ut.push(we[Ce]<=0),f&&ut.push(we[xe]<=0,we[We]<=0),ut.every(function(ce){return ce})){Z=ge,j=!1;break}U.set(ge,ut)}if(j)for(var G=S?3:1,X=function(fe){var ue=k.find(function(pe){var le=U.get(pe);if(le)return le.slice(0,fe).every(function(ye){return ye})});if(ue)return Z=ue,"break"},de=G;de>0;de--){var ie=X(de);if(ie==="break")break}r.placement!==Z&&(r.modifiersData[o]._skip=!0,r.placement=Z,r.reset=!0)}}const KS={name:"flip",enabled:!0,phase:"main",fn:GS,requiresIfExists:["offset"],data:{_skip:!1}};function np(e,r,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-r.height-n.y,right:e.right-r.width+n.x,bottom:e.bottom-r.height+n.y,left:e.left-r.width-n.x}}function rp(e){return[qt,mn,vn,Gt].some(function(r){return e[r]>=0})}function YS(e){var r=e.state,n=e.name,o=r.rects.reference,a=r.rects.popper,u=r.modifiersData.preventOverflow,l=co(r,{elementContext:"reference"}),f=co(r,{altBoundary:!0}),d=np(l,o),v=np(f,a,u),g=rp(d),_=rp(v);r.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:v,isReferenceHidden:g,hasPopperEscaped:_},r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-reference-hidden":g,"data-popper-escaped":_})}const XS={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:YS};function VS(e,r,n){var o=jn(e),a=[Gt,qt].indexOf(o)>=0?-1:1,u=typeof n=="function"?n(Object.assign({},r,{placement:e})):n,l=u[0],f=u[1];return l=l||0,f=(f||0)*a,[Gt,mn].indexOf(o)>=0?{x:f,y:l}:{x:l,y:f}}function ZS(e){var r=e.state,n=e.options,o=e.name,a=n.offset,u=a===void 0?[0,0]:a,l=Th.reduce(function(g,_){return g[_]=VS(_,r.rects,u),g},{}),f=l[r.placement],d=f.x,v=f.y;r.modifiersData.popperOffsets!=null&&(r.modifiersData.popperOffsets.x+=d,r.modifiersData.popperOffsets.y+=v),r.modifiersData[o]=l}const JS={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ZS};function QS(e){var r=e.state,n=e.name;r.modifiersData[n]=Mh({reference:r.rects.reference,element:r.rects.popper,strategy:"absolute",placement:r.placement})}const eE={name:"popperOffsets",enabled:!0,phase:"read",fn:QS,data:{}};function tE(e){return e==="x"?"y":"x"}function nE(e){var r=e.state,n=e.options,o=e.name,a=n.mainAxis,u=a===void 0?!0:a,l=n.altAxis,f=l===void 0?!1:l,d=n.boundary,v=n.rootBoundary,g=n.altBoundary,_=n.padding,O=n.tether,m=O===void 0?!0:O,S=n.tetherOffset,y=S===void 0?0:S,E=co(r,{boundary:d,rootBoundary:v,padding:_,altBoundary:g}),D=jn(r.placement),I=Li(r.placement),C=!I,k=zl(D),T=tE(k),H=r.modifiersData.popperOffsets,U=r.rects.reference,j=r.rects.popper,Z=typeof y=="function"?y(Object.assign({},r.rects,{placement:r.placement})):y,ee=typeof Z=="number"?{mainAxis:Z,altAxis:Z}:Object.assign({mainAxis:0,altAxis:0},Z),ge=r.modifiersData.offset?r.modifiersData.offset[r.placement]:null,Ce={x:0,y:0};if(H){if(u){var _e,se=k==="y"?qt:Gt,Le=k==="y"?vn:mn,we=k==="y"?"height":"width",xe=H[k],We=xe+E[se],ut=xe-E[Le],G=m?-j[we]/2:0,X=I===Pi?U[we]:j[we],de=I===Pi?-j[we]:-U[we],ie=r.elements.arrow,ce=m&&ie?Bl(ie):{width:0,height:0},fe=r.modifiersData["arrow#persistent"]?r.modifiersData["arrow#persistent"].padding:Ph(),ue=fe[se],pe=fe[Le],le=oo(0,U[we],ce[we]),ye=C?U[we]/2-G-le-ue-ee.mainAxis:X-le-ue-ee.mainAxis,be=C?-U[we]/2+G+le+pe+ee.mainAxis:de+le+pe+ee.mainAxis,Ge=r.elements.arrow&&bo(r.elements.arrow),V=Ge?k==="y"?Ge.clientTop||0:Ge.clientLeft||0:0,rt=(_e=ge==null?void 0:ge[k])!=null?_e:0,it=xe+ye-rt-V,dt=xe+be-rt,An=oo(m?za(We,it):We,xe,m?Xr(ut,dt):ut);H[k]=An,Ce[k]=An-xe}if(f){var gt,Wt=k==="x"?qt:Gt,xr=k==="x"?vn:mn,Ze=H[T],Qe=T==="y"?"height":"width",rn=Ze+E[Wt],Kt=Ze-E[xr],gn=[qt,Gt].indexOf(D)!==-1,Tt=(gt=ge==null?void 0:ge[T])!=null?gt:0,ir=gn?rn:Ze-U[Qe]-j[Qe]-Tt+ee.altAxis,on=gn?Ze+U[Qe]+j[Qe]-Tt-ee.altAxis:Kt,Yt=m&&gn?TS(ir,Ze,on):oo(m?ir:rn,Ze,m?on:Kt);H[T]=Yt,Ce[T]=Yt-Ze}r.modifiersData[o]=Ce}}const rE={name:"preventOverflow",enabled:!0,phase:"main",fn:nE,requiresIfExists:["offset"]};function iE(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function oE(e){return e===nn(e)||!hn(e)?ql(e):iE(e)}function aE(e){var r=e.getBoundingClientRect(),n=Ai(r.width)/e.offsetWidth||1,o=Ai(r.height)/e.offsetHeight||1;return n!==1||o!==1}function sE(e,r,n){n===void 0&&(n=!1);var o=hn(r),a=hn(r)&&aE(r),u=Er(r),l=Ii(e,a,n),f={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(o||!o&&!n)&&((Fn(r)!=="body"||Kl(u))&&(f=oE(r)),hn(r)?(d=Ii(r,!0),d.x+=r.clientLeft,d.y+=r.clientTop):u&&(d.x=Gl(u))),{x:l.left+f.scrollLeft-d.x,y:l.top+f.scrollTop-d.y,width:l.width,height:l.height}}function uE(e){var r=new Map,n=new Set,o=[];e.forEach(function(u){r.set(u.name,u)});function a(u){n.add(u.name);var l=[].concat(u.requires||[],u.requiresIfExists||[]);l.forEach(function(f){if(!n.has(f)){var d=r.get(f);d&&a(d)}}),o.push(u)}return e.forEach(function(u){n.has(u.name)||a(u)}),o}function lE(e){var r=uE(e);return bS.reduce(function(n,o){return n.concat(r.filter(function(a){return a.phase===o}))},[])}function cE(e){var r;return function(){return r||(r=new Promise(function(n){Promise.resolve().then(function(){r=void 0,n(e())})})),r}}function fE(e){var r=e.reduce(function(n,o){var a=n[o.name];return n[o.name]=a?Object.assign({},a,o,{options:Object.assign({},a.options,o.options),data:Object.assign({},a.data,o.data)}):o,n},{});return Object.keys(r).map(function(n){return r[n]})}var ip={placement:"bottom",modifiers:[],strategy:"absolute"};function op(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return!r.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function dE(e){e===void 0&&(e={});var r=e,n=r.defaultModifiers,o=n===void 0?[]:n,a=r.defaultOptions,u=a===void 0?ip:a;return function(f,d,v){v===void 0&&(v=u);var g={placement:"bottom",orderedModifiers:[],options:Object.assign({},ip,u),modifiersData:{},elements:{reference:f,popper:d},attributes:{},styles:{}},_=[],O=!1,m={state:g,setOptions:function(D){var I=typeof D=="function"?D(g.options):D;y(),g.options=Object.assign({},u,g.options,I),g.scrollParents={reference:Jr(f)?ao(f):f.contextElement?ao(f.contextElement):[],popper:ao(d)};var C=lE(fE([].concat(o,g.options.modifiers)));return g.orderedModifiers=C.filter(function(k){return k.enabled}),S(),m.update()},forceUpdate:function(){if(!O){var D=g.elements,I=D.reference,C=D.popper;if(op(I,C)){g.rects={reference:sE(I,bo(C),g.options.strategy==="fixed"),popper:Bl(C)},g.reset=!1,g.placement=g.options.placement,g.orderedModifiers.forEach(function(ee){return g.modifiersData[ee.name]=Object.assign({},ee.data)});for(var k=0;k<g.orderedModifiers.length;k++){if(g.reset===!0){g.reset=!1,k=-1;continue}var T=g.orderedModifiers[k],H=T.fn,U=T.options,j=U===void 0?{}:U,Z=T.name;typeof H=="function"&&(g=H({state:g,options:j,name:Z,instance:m})||g)}}}},update:cE(function(){return new Promise(function(E){m.forceUpdate(),E(g)})}),destroy:function(){y(),O=!0}};if(!op(f,d))return m;m.setOptions(v).then(function(E){!O&&v.onFirstUpdate&&v.onFirstUpdate(E)});function S(){g.orderedModifiers.forEach(function(E){var D=E.name,I=E.options,C=I===void 0?{}:I,k=E.effect;if(typeof k=="function"){var T=k({state:g,name:D,instance:m,options:C}),H=function(){};_.push(T||H)}})}function y(){_.forEach(function(E){return E()}),_=[]}return m}}var pE=[NS,eE,DS,ES,JS,KS,rE,AS,XS],hE=dE({defaultModifiers:pE}),vE=typeof Element<"u",mE=typeof Map=="function",gE=typeof Set=="function",yE=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function ja(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var n,o,a;if(Array.isArray(e)){if(n=e.length,n!=r.length)return!1;for(o=n;o--!==0;)if(!ja(e[o],r[o]))return!1;return!0}var u;if(mE&&e instanceof Map&&r instanceof Map){if(e.size!==r.size)return!1;for(u=e.entries();!(o=u.next()).done;)if(!r.has(o.value[0]))return!1;for(u=e.entries();!(o=u.next()).done;)if(!ja(o.value[1],r.get(o.value[0])))return!1;return!0}if(gE&&e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;for(u=e.entries();!(o=u.next()).done;)if(!r.has(o.value[0]))return!1;return!0}if(yE&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(r)){if(n=e.length,n!=r.length)return!1;for(o=n;o--!==0;)if(e[o]!==r[o])return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof r.valueOf=="function")return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof r.toString=="function")return e.toString()===r.toString();if(a=Object.keys(e),n=a.length,n!==Object.keys(r).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[o]))return!1;if(vE&&e instanceof Element)return!1;for(o=n;o--!==0;)if(!((a[o]==="_owner"||a[o]==="__v"||a[o]==="__o")&&e.$$typeof)&&!ja(e[a[o]],r[a[o]]))return!1;return!0}return e!==e&&r!==r}var wE=function(r,n){try{return ja(r,n)}catch(o){if((o.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw o}};const bE=Eh(wE);var _E=[],Dh=function(r,n,o){o===void 0&&(o={});var a=L.useRef(null),u={onFirstUpdate:o.onFirstUpdate,placement:o.placement||"bottom",strategy:o.strategy||"absolute",modifiers:o.modifiers||_E},l=L.useState({styles:{popper:{position:u.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),f=l[0],d=l[1],v=L.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(m){var S=m.state,y=Object.keys(S.elements);oS.flushSync(function(){d({styles:Xd(y.map(function(E){return[E,S.styles[E]||{}]})),attributes:Xd(y.map(function(E){return[E,S.attributes[E]]}))})})},requires:["computeStyles"]}},[]),g=L.useMemo(function(){var O={onFirstUpdate:u.onFirstUpdate,placement:u.placement,strategy:u.strategy,modifiers:[].concat(u.modifiers,[v,{name:"applyStyles",enabled:!1}])};return bE(a.current,O)?a.current||O:(a.current=O,O)},[u.onFirstUpdate,u.placement,u.strategy,u.modifiers,v]),_=L.useRef();return Vd(function(){_.current&&_.current.setOptions(g)},[g]),Vd(function(){if(!(r==null||n==null)){var O=o.createPopper||hE,m=O(r,n,g);return _.current=m,function(){m.destroy(),_.current=null}}},[r,n,o.createPopper]),{state:_.current?_.current.state:null,styles:f.styles,attributes:f.attributes,update:_.current?_.current.update:null,forceUpdate:_.current?_.current.forceUpdate:null}};const kh=e=>$.jsx("div",{className:"absolute inset-0 z-[1999]",onClick:e.onClick}),Nh=N.forwardRef(({children:e,style:r,attributes:n},o)=>$.jsx("div",{style:{...r,zIndex:2e3},...n,ref:o,className:"w-60 rounded border rounded border border-grey-50 bg-grey-900 shadow-2xl","data-cy":"dialogBody",children:e})),SE=({referenceElement:e,placement:r,isOpen:n,children:o,onClose:a})=>{const[u,l]=N.useState(null),{styles:f,attributes:d}=Dh(e,u,{placement:r||"bottom-start"}),v=N.useCallback(()=>{a&&a()},[a]);return n?$.jsxs(xh,{children:[$.jsx(kh,{onClick:()=>v()}),$.jsx(Nh,{ref:l,style:f.popper,attributes:d.popper,children:o})]}):null};var yl={exports:{}},_i={};/*
30
30
  object-assign
31
31
  (c) Sindre Sorhus
32
32
  @license MIT
33
- */var Ru,ip;function Dh(){if(ip)return Ru;ip=1;var e=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(u){if(u==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(u)}function a(){try{if(!Object.assign)return!1;var u=new String("abc");if(u[5]="de",Object.getOwnPropertyNames(u)[0]==="5")return!1;for(var l={},f=0;f<10;f++)l["_"+String.fromCharCode(f)]=f;var d=Object.getOwnPropertyNames(l).map(function(g){return l[g]});if(d.join("")!=="0123456789")return!1;var v={};return"abcdefghijklmnopqrst".split("").forEach(function(g){v[g]=g}),Object.keys(Object.assign({},v)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Ru=a()?Object.assign:function(u,l){for(var f,d=o(u),v,g=1;g<arguments.length;g++){f=Object(arguments[g]);for(var _ in f)r.call(f,_)&&(d[_]=f[_]);if(e){v=e(f);for(var O=0;O<v.length;O++)n.call(f,v[O])&&(d[v[O]]=f[v[O]])}}return d},Ru}/** @license React v17.0.2
33
+ */var Pu,ap;function $h(){if(ap)return Pu;ap=1;var e=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(u){if(u==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(u)}function a(){try{if(!Object.assign)return!1;var u=new String("abc");if(u[5]="de",Object.getOwnPropertyNames(u)[0]==="5")return!1;for(var l={},f=0;f<10;f++)l["_"+String.fromCharCode(f)]=f;var d=Object.getOwnPropertyNames(l).map(function(g){return l[g]});if(d.join("")!=="0123456789")return!1;var v={};return"abcdefghijklmnopqrst".split("").forEach(function(g){v[g]=g}),Object.keys(Object.assign({},v)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Pu=a()?Object.assign:function(u,l){for(var f,d=o(u),v,g=1;g<arguments.length;g++){f=Object(arguments[g]);for(var _ in f)r.call(f,_)&&(d[_]=f[_]);if(e){v=e(f);for(var O=0;O<v.length;O++)n.call(f,v[O])&&(d[v[O]]=f[v[O]])}}return d},Pu}/** @license React v17.0.2
34
34
  * react-jsx-runtime.production.min.js
35
35
  *
36
36
  * Copyright (c) Facebook, Inc. and its affiliates.
37
37
  *
38
38
  * This source code is licensed under the MIT license found in the
39
39
  * LICENSE file in the root directory of this source tree.
40
- */var op;function _E(){if(op)return bi;op=1,Dh();var e=N,r=60103;if(bi.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var n=Symbol.for;r=n("react.element"),bi.Fragment=n("react.fragment")}var o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function l(f,d,v){var g,_={},O=null,m=null;v!==void 0&&(O=""+v),d.key!==void 0&&(O=""+d.key),d.ref!==void 0&&(m=d.ref);for(g in d)a.call(d,g)&&!u.hasOwnProperty(g)&&(_[g]=d[g]);if(f&&f.defaultProps)for(g in d=f.defaultProps,d)_[g]===void 0&&(_[g]=d[g]);return{$$typeof:r,type:f,key:O,ref:m,props:_,_owner:o.current}}return bi.jsx=l,bi.jsxs=l,bi}var ap={};/** @license React v17.0.2
40
+ */var sp;function EE(){if(sp)return _i;sp=1,$h();var e=N,r=60103;if(_i.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var n=Symbol.for;r=n("react.element"),_i.Fragment=n("react.fragment")}var o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function l(f,d,v){var g,_={},O=null,m=null;v!==void 0&&(O=""+v),d.key!==void 0&&(O=""+d.key),d.ref!==void 0&&(m=d.ref);for(g in d)a.call(d,g)&&!u.hasOwnProperty(g)&&(_[g]=d[g]);if(f&&f.defaultProps)for(g in d=f.defaultProps,d)_[g]===void 0&&(_[g]=d[g]);return{$$typeof:r,type:f,key:O,ref:m,props:_,_owner:o.current}}return _i.jsx=l,_i.jsxs=l,_i}var up={};/** @license React v17.0.2
41
41
  * react-jsx-runtime.development.js
42
42
  *
43
43
  * Copyright (c) Facebook, Inc. and its affiliates.
44
44
  *
45
45
  * This source code is licensed under the MIT license found in the
46
46
  * LICENSE file in the root directory of this source tree.
47
- */var sp;function SE(){return sp||(sp=1,function(e){process.env.NODE_ENV!=="production"&&function(){var r=N,n=Dh(),o=60103,a=60106;e.Fragment=60107;var u=60108,l=60114,f=60109,d=60110,v=60112,g=60113,_=60120,O=60115,m=60116,S=60121,y=60122,E=60117,D=60129,I=60131;if(typeof Symbol=="function"&&Symbol.for){var C=Symbol.for;o=C("react.element"),a=C("react.portal"),e.Fragment=C("react.fragment"),u=C("react.strict_mode"),l=C("react.profiler"),f=C("react.provider"),d=C("react.context"),v=C("react.forward_ref"),g=C("react.suspense"),_=C("react.suspense_list"),O=C("react.memo"),m=C("react.lazy"),S=C("react.block"),y=C("react.server.block"),E=C("react.fundamental"),C("react.scope"),C("react.opaque.id"),D=C("react.debug_trace_mode"),C("react.offscreen"),I=C("react.legacy_hidden")}var k=typeof Symbol=="function"&&Symbol.iterator,T="@@iterator";function H(p){if(p===null||typeof p!="object")return null;var P=k&&p[k]||p[T];return typeof P=="function"?P:null}var U=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function j(p){{for(var P=arguments.length,F=new Array(P>1?P-1:0),Y=1;Y<P;Y++)F[Y-1]=arguments[Y];J("error",p,F)}}function J(p,P,F){{var Y=U.ReactDebugCurrentFrame,oe=Y.getStackAddendum();oe!==""&&(P+="%s",F=F.concat([oe]));var ae=F.map(function(te){return""+te});ae.unshift("Warning: "+P),Function.prototype.apply.call(console[p],console,ae)}}var ee=!1;function ge(p){return!!(typeof p=="string"||typeof p=="function"||p===e.Fragment||p===l||p===D||p===u||p===g||p===_||p===I||ee||typeof p=="object"&&p!==null&&(p.$$typeof===m||p.$$typeof===O||p.$$typeof===f||p.$$typeof===d||p.$$typeof===v||p.$$typeof===E||p.$$typeof===S||p[0]===y))}function Ce(p,P,F){var Y=P.displayName||P.name||"";return p.displayName||(Y!==""?F+"("+Y+")":F)}function _e(p){return p.displayName||"Context"}function se(p){if(p==null)return null;if(typeof p.tag=="number"&&j("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof p=="function")return p.displayName||p.name||null;if(typeof p=="string")return p;switch(p){case e.Fragment:return"Fragment";case a:return"Portal";case l:return"Profiler";case u:return"StrictMode";case g:return"Suspense";case _:return"SuspenseList"}if(typeof p=="object")switch(p.$$typeof){case d:var P=p;return _e(P)+".Consumer";case f:var F=p;return _e(F._context)+".Provider";case v:return Ce(p,p.render,"ForwardRef");case O:return se(p.type);case S:return se(p._render);case m:{var Y=p,oe=Y._payload,ae=Y._init;try{return se(ae(oe))}catch{return null}}}return null}var Le=0,we,xe,We,ut,G,X,de;function ie(){}ie.__reactDisabledLog=!0;function ce(){{if(Le===0){we=console.log,xe=console.info,We=console.warn,ut=console.error,G=console.group,X=console.groupCollapsed,de=console.groupEnd;var p={configurable:!0,enumerable:!0,value:ie,writable:!0};Object.defineProperties(console,{info:p,log:p,warn:p,error:p,group:p,groupCollapsed:p,groupEnd:p})}Le++}}function fe(){{if(Le--,Le===0){var p={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:n({},p,{value:we}),info:n({},p,{value:xe}),warn:n({},p,{value:We}),error:n({},p,{value:ut}),group:n({},p,{value:G}),groupCollapsed:n({},p,{value:X}),groupEnd:n({},p,{value:de})})}Le<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ue=U.ReactCurrentDispatcher,pe;function le(p,P,F){{if(pe===void 0)try{throw Error()}catch(oe){var Y=oe.stack.trim().match(/\n( *(at )?)/);pe=Y&&Y[1]||""}return`
48
- `+pe+p}}var ye=!1,be;{var Ke=typeof WeakMap=="function"?WeakMap:Map;be=new Ke}function V(p,P){if(!p||ye)return"";{var F=be.get(p);if(F!==void 0)return F}var Y;ye=!0;var oe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ae;ae=ue.current,ue.current=null,ce();try{if(P){var te=function(){throw Error()};if(Object.defineProperty(te.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(te,[])}catch(lt){Y=lt}Reflect.construct(p,[],te)}else{try{te.call()}catch(lt){Y=lt}p.call(te.prototype)}}else{try{throw Error()}catch(lt){Y=lt}p()}}catch(lt){if(lt&&Y&&typeof lt.stack=="string"){for(var Q=lt.stack.split(`
47
+ */var lp;function xE(){return lp||(lp=1,function(e){process.env.NODE_ENV!=="production"&&function(){var r=N,n=$h(),o=60103,a=60106;e.Fragment=60107;var u=60108,l=60114,f=60109,d=60110,v=60112,g=60113,_=60120,O=60115,m=60116,S=60121,y=60122,E=60117,D=60129,I=60131;if(typeof Symbol=="function"&&Symbol.for){var C=Symbol.for;o=C("react.element"),a=C("react.portal"),e.Fragment=C("react.fragment"),u=C("react.strict_mode"),l=C("react.profiler"),f=C("react.provider"),d=C("react.context"),v=C("react.forward_ref"),g=C("react.suspense"),_=C("react.suspense_list"),O=C("react.memo"),m=C("react.lazy"),S=C("react.block"),y=C("react.server.block"),E=C("react.fundamental"),C("react.scope"),C("react.opaque.id"),D=C("react.debug_trace_mode"),C("react.offscreen"),I=C("react.legacy_hidden")}var k=typeof Symbol=="function"&&Symbol.iterator,T="@@iterator";function H(p){if(p===null||typeof p!="object")return null;var P=k&&p[k]||p[T];return typeof P=="function"?P:null}var U=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function j(p){{for(var P=arguments.length,F=new Array(P>1?P-1:0),Y=1;Y<P;Y++)F[Y-1]=arguments[Y];Z("error",p,F)}}function Z(p,P,F){{var Y=U.ReactDebugCurrentFrame,oe=Y.getStackAddendum();oe!==""&&(P+="%s",F=F.concat([oe]));var ae=F.map(function(te){return""+te});ae.unshift("Warning: "+P),Function.prototype.apply.call(console[p],console,ae)}}var ee=!1;function ge(p){return!!(typeof p=="string"||typeof p=="function"||p===e.Fragment||p===l||p===D||p===u||p===g||p===_||p===I||ee||typeof p=="object"&&p!==null&&(p.$$typeof===m||p.$$typeof===O||p.$$typeof===f||p.$$typeof===d||p.$$typeof===v||p.$$typeof===E||p.$$typeof===S||p[0]===y))}function Ce(p,P,F){var Y=P.displayName||P.name||"";return p.displayName||(Y!==""?F+"("+Y+")":F)}function _e(p){return p.displayName||"Context"}function se(p){if(p==null)return null;if(typeof p.tag=="number"&&j("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof p=="function")return p.displayName||p.name||null;if(typeof p=="string")return p;switch(p){case e.Fragment:return"Fragment";case a:return"Portal";case l:return"Profiler";case u:return"StrictMode";case g:return"Suspense";case _:return"SuspenseList"}if(typeof p=="object")switch(p.$$typeof){case d:var P=p;return _e(P)+".Consumer";case f:var F=p;return _e(F._context)+".Provider";case v:return Ce(p,p.render,"ForwardRef");case O:return se(p.type);case S:return se(p._render);case m:{var Y=p,oe=Y._payload,ae=Y._init;try{return se(ae(oe))}catch{return null}}}return null}var Le=0,we,xe,We,ut,G,X,de;function ie(){}ie.__reactDisabledLog=!0;function ce(){{if(Le===0){we=console.log,xe=console.info,We=console.warn,ut=console.error,G=console.group,X=console.groupCollapsed,de=console.groupEnd;var p={configurable:!0,enumerable:!0,value:ie,writable:!0};Object.defineProperties(console,{info:p,log:p,warn:p,error:p,group:p,groupCollapsed:p,groupEnd:p})}Le++}}function fe(){{if(Le--,Le===0){var p={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:n({},p,{value:we}),info:n({},p,{value:xe}),warn:n({},p,{value:We}),error:n({},p,{value:ut}),group:n({},p,{value:G}),groupCollapsed:n({},p,{value:X}),groupEnd:n({},p,{value:de})})}Le<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ue=U.ReactCurrentDispatcher,pe;function le(p,P,F){{if(pe===void 0)try{throw Error()}catch(oe){var Y=oe.stack.trim().match(/\n( *(at )?)/);pe=Y&&Y[1]||""}return`
48
+ `+pe+p}}var ye=!1,be;{var Ge=typeof WeakMap=="function"?WeakMap:Map;be=new Ge}function V(p,P){if(!p||ye)return"";{var F=be.get(p);if(F!==void 0)return F}var Y;ye=!0;var oe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ae;ae=ue.current,ue.current=null,ce();try{if(P){var te=function(){throw Error()};if(Object.defineProperty(te.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(te,[])}catch(lt){Y=lt}Reflect.construct(p,[],te)}else{try{te.call()}catch(lt){Y=lt}p.call(te.prototype)}}else{try{throw Error()}catch(lt){Y=lt}p()}}catch(lt){if(lt&&Y&&typeof lt.stack=="string"){for(var Q=lt.stack.split(`
49
49
  `),je=Y.stack.split(`
50
50
  `),Se=Q.length-1,Oe=je.length-1;Se>=1&&Oe>=0&&Q[Se]!==je[Oe];)Oe--;for(;Se>=1&&Oe>=0;Se--,Oe--)if(Q[Se]!==je[Oe]){if(Se!==1||Oe!==1)do if(Se--,Oe--,Oe<0||Q[Se]!==je[Oe]){var ot=`
51
- `+Q[Se].replace(" at new "," at ");return typeof p=="function"&&be.set(p,ot),ot}while(Se>=1&&Oe>=0);break}}}finally{ye=!1,ue.current=ae,fe(),Error.prepareStackTrace=oe}var kt=p?p.displayName||p.name:"",Ir=kt?le(kt):"";return typeof p=="function"&&be.set(p,Ir),Ir}function rt(p,P,F){return V(p,!1)}function it(p){var P=p.prototype;return!!(P&&P.isReactComponent)}function dt(p,P,F){if(p==null)return"";if(typeof p=="function")return V(p,it(p));if(typeof p=="string")return le(p);switch(p){case g:return le("Suspense");case _:return le("SuspenseList")}if(typeof p=="object")switch(p.$$typeof){case v:return rt(p.render);case O:return dt(p.type,P,F);case S:return rt(p._render);case m:{var Y=p,oe=Y._payload,ae=Y._init;try{return dt(ae(oe),P,F)}catch{}}}return""}var An={},gt=U.ReactDebugCurrentFrame;function Wt(p){if(p){var P=p._owner,F=dt(p.type,p._source,P?P.type:null);gt.setExtraStackFrame(F)}else gt.setExtraStackFrame(null)}function Sr(p,P,F,Y,oe){{var ae=Function.call.bind(Object.prototype.hasOwnProperty);for(var te in p)if(ae(p,te)){var Q=void 0;try{if(typeof p[te]!="function"){var je=Error((Y||"React class")+": "+F+" type `"+te+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof p[te]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw je.name="Invariant Violation",je}Q=p[te](P,te,Y,F,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Se){Q=Se}Q&&!(Q instanceof Error)&&(Wt(oe),j("%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).",Y||"React class",F,te,typeof Q),Wt(null)),Q instanceof Error&&!(Q.message in An)&&(An[Q.message]=!0,Wt(oe),j("Failed %s type: %s",F,Q.message),Wt(null))}}}var Je=U.ReactCurrentOwner,Qe=Object.prototype.hasOwnProperty,rn={key:!0,ref:!0,__self:!0,__source:!0},Kt,gn,Tt;Tt={};function rr(p){if(Qe.call(p,"ref")){var P=Object.getOwnPropertyDescriptor(p,"ref").get;if(P&&P.isReactWarning)return!1}return p.ref!==void 0}function on(p){if(Qe.call(p,"key")){var P=Object.getOwnPropertyDescriptor(p,"key").get;if(P&&P.isReactWarning)return!1}return p.key!==void 0}function Yt(p,P){if(typeof p.ref=="string"&&Je.current&&P&&Je.current.stateNode!==P){var F=se(Je.current.type);Tt[F]||(j('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',se(Je.current.type),p.ref),Tt[F]=!0)}}function Er(p,P){{var F=function(){Kt||(Kt=!0,j("%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)",P))};F.isReactWarning=!0,Object.defineProperty(p,"key",{get:F,configurable:!0})}}function xr(p,P){{var F=function(){gn||(gn=!0,j("%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)",P))};F.isReactWarning=!0,Object.defineProperty(p,"ref",{get:F,configurable:!0})}}var Or=function(p,P,F,Y,oe,ae,te){var Q={$$typeof:o,type:p,key:P,ref:F,props:te,_owner:ae};return Q._store={},Object.defineProperty(Q._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Q,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Y}),Object.defineProperty(Q,"_source",{configurable:!1,enumerable:!1,writable:!1,value:oe}),Object.freeze&&(Object.freeze(Q.props),Object.freeze(Q)),Q};function Tr(p,P,F,Y,oe){{var ae,te={},Q=null,je=null;F!==void 0&&(Q=""+F),on(P)&&(Q=""+P.key),rr(P)&&(je=P.ref,Yt(P,oe));for(ae in P)Qe.call(P,ae)&&!rn.hasOwnProperty(ae)&&(te[ae]=P[ae]);if(p&&p.defaultProps){var Se=p.defaultProps;for(ae in Se)te[ae]===void 0&&(te[ae]=Se[ae])}if(Q||je){var Oe=typeof p=="function"?p.displayName||p.name||"Unknown":p;Q&&Er(te,Oe),je&&xr(te,Oe)}return Or(p,Q,je,oe,Y,Je.current,te)}}var yn=U.ReactCurrentOwner,Un=U.ReactDebugCurrentFrame;function bt(p){if(p){var P=p._owner,F=dt(p.type,p._source,P?P.type:null);Un.setExtraStackFrame(F)}else Un.setExtraStackFrame(null)}var wn;wn=!1;function bn(p){return typeof p=="object"&&p!==null&&p.$$typeof===o}function Cr(){{if(yn.current){var p=se(yn.current.type);if(p)return`
51
+ `+Q[Se].replace(" at new "," at ");return typeof p=="function"&&be.set(p,ot),ot}while(Se>=1&&Oe>=0);break}}}finally{ye=!1,ue.current=ae,fe(),Error.prepareStackTrace=oe}var kt=p?p.displayName||p.name:"",Mr=kt?le(kt):"";return typeof p=="function"&&be.set(p,Mr),Mr}function rt(p,P,F){return V(p,!1)}function it(p){var P=p.prototype;return!!(P&&P.isReactComponent)}function dt(p,P,F){if(p==null)return"";if(typeof p=="function")return V(p,it(p));if(typeof p=="string")return le(p);switch(p){case g:return le("Suspense");case _:return le("SuspenseList")}if(typeof p=="object")switch(p.$$typeof){case v:return rt(p.render);case O:return dt(p.type,P,F);case S:return rt(p._render);case m:{var Y=p,oe=Y._payload,ae=Y._init;try{return dt(ae(oe),P,F)}catch{}}}return""}var An={},gt=U.ReactDebugCurrentFrame;function Wt(p){if(p){var P=p._owner,F=dt(p.type,p._source,P?P.type:null);gt.setExtraStackFrame(F)}else gt.setExtraStackFrame(null)}function xr(p,P,F,Y,oe){{var ae=Function.call.bind(Object.prototype.hasOwnProperty);for(var te in p)if(ae(p,te)){var Q=void 0;try{if(typeof p[te]!="function"){var je=Error((Y||"React class")+": "+F+" type `"+te+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof p[te]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw je.name="Invariant Violation",je}Q=p[te](P,te,Y,F,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Se){Q=Se}Q&&!(Q instanceof Error)&&(Wt(oe),j("%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).",Y||"React class",F,te,typeof Q),Wt(null)),Q instanceof Error&&!(Q.message in An)&&(An[Q.message]=!0,Wt(oe),j("Failed %s type: %s",F,Q.message),Wt(null))}}}var Ze=U.ReactCurrentOwner,Qe=Object.prototype.hasOwnProperty,rn={key:!0,ref:!0,__self:!0,__source:!0},Kt,gn,Tt;Tt={};function ir(p){if(Qe.call(p,"ref")){var P=Object.getOwnPropertyDescriptor(p,"ref").get;if(P&&P.isReactWarning)return!1}return p.ref!==void 0}function on(p){if(Qe.call(p,"key")){var P=Object.getOwnPropertyDescriptor(p,"key").get;if(P&&P.isReactWarning)return!1}return p.key!==void 0}function Yt(p,P){if(typeof p.ref=="string"&&Ze.current&&P&&Ze.current.stateNode!==P){var F=se(Ze.current.type);Tt[F]||(j('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',se(Ze.current.type),p.ref),Tt[F]=!0)}}function Or(p,P){{var F=function(){Kt||(Kt=!0,j("%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)",P))};F.isReactWarning=!0,Object.defineProperty(p,"key",{get:F,configurable:!0})}}function Tr(p,P){{var F=function(){gn||(gn=!0,j("%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)",P))};F.isReactWarning=!0,Object.defineProperty(p,"ref",{get:F,configurable:!0})}}var Cr=function(p,P,F,Y,oe,ae,te){var Q={$$typeof:o,type:p,key:P,ref:F,props:te,_owner:ae};return Q._store={},Object.defineProperty(Q._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Q,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Y}),Object.defineProperty(Q,"_source",{configurable:!1,enumerable:!1,writable:!1,value:oe}),Object.freeze&&(Object.freeze(Q.props),Object.freeze(Q)),Q};function Rr(p,P,F,Y,oe){{var ae,te={},Q=null,je=null;F!==void 0&&(Q=""+F),on(P)&&(Q=""+P.key),ir(P)&&(je=P.ref,Yt(P,oe));for(ae in P)Qe.call(P,ae)&&!rn.hasOwnProperty(ae)&&(te[ae]=P[ae]);if(p&&p.defaultProps){var Se=p.defaultProps;for(ae in Se)te[ae]===void 0&&(te[ae]=Se[ae])}if(Q||je){var Oe=typeof p=="function"?p.displayName||p.name||"Unknown":p;Q&&Or(te,Oe),je&&Tr(te,Oe)}return Cr(p,Q,je,oe,Y,Ze.current,te)}}var yn=U.ReactCurrentOwner,Bn=U.ReactDebugCurrentFrame;function bt(p){if(p){var P=p._owner,F=dt(p.type,p._source,P?P.type:null);Bn.setExtraStackFrame(F)}else Bn.setExtraStackFrame(null)}var wn;wn=!1;function bn(p){return typeof p=="object"&&p!==null&&p.$$typeof===o}function Pr(){{if(yn.current){var p=se(yn.current.type);if(p)return`
52
52
 
53
- Check the render method of \``+p+"`."}return""}}function Di(p){{if(p!==void 0){var P=p.fileName.replace(/^.*[\\\/]/,""),F=p.lineNumber;return`
53
+ Check the render method of \``+p+"`."}return""}}function ki(p){{if(p!==void 0){var P=p.fileName.replace(/^.*[\\\/]/,""),F=p.lineNumber;return`
54
54
 
55
- Check your code at `+P+":"+F+"."}return""}}var Rr={};function ri(p){{var P=Cr();if(!P){var F=typeof p=="string"?p:p.displayName||p.name;F&&(P=`
55
+ Check your code at `+P+":"+F+"."}return""}}var Ar={};function ii(p){{var P=Pr();if(!P){var F=typeof p=="string"?p:p.displayName||p.name;F&&(P=`
56
56
 
57
- Check the top-level render call using <`+F+">.")}return P}}function ir(p,P){{if(!p._store||p._store.validated||p.key!=null)return;p._store.validated=!0;var F=ri(P);if(Rr[F])return;Rr[F]=!0;var Y="";p&&p._owner&&p._owner!==yn.current&&(Y=" It was passed a child from "+se(p._owner.type)+"."),bt(p),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',F,Y),bt(null)}}function Pr(p,P){{if(typeof p!="object")return;if(Array.isArray(p))for(var F=0;F<p.length;F++){var Y=p[F];bn(Y)&&ir(Y,P)}else if(bn(p))p._store&&(p._store.validated=!0);else if(p){var oe=H(p);if(typeof oe=="function"&&oe!==p.entries)for(var ae=oe.call(p),te;!(te=ae.next()).done;)bn(te.value)&&ir(te.value,P)}}}function ki(p){{var P=p.type;if(P==null||typeof P=="string")return;var F;if(typeof P=="function")F=P.propTypes;else if(typeof P=="object"&&(P.$$typeof===v||P.$$typeof===O))F=P.propTypes;else return;if(F){var Y=se(P);Sr(F,p.props,"prop",Y,p)}else if(P.PropTypes!==void 0&&!wn){wn=!0;var oe=se(P);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",oe||"Unknown")}typeof P.getDefaultProps=="function"&&!P.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ni(p){{for(var P=Object.keys(p.props),F=0;F<P.length;F++){var Y=P[F];if(Y!=="children"&&Y!=="key"){bt(p),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Y),bt(null);break}}p.ref!==null&&(bt(p),j("Invalid attribute `ref` supplied to `React.Fragment`."),bt(null))}}function Ar(p,P,F,Y,oe,ae){{var te=ge(p);if(!te){var Q="";(p===void 0||typeof p=="object"&&p!==null&&Object.keys(p).length===0)&&(Q+=" 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 je=Di(oe);je?Q+=je:Q+=Cr();var Se;p===null?Se="null":Array.isArray(p)?Se="array":p!==void 0&&p.$$typeof===o?(Se="<"+(se(p.type)||"Unknown")+" />",Q=" Did you accidentally export a JSX literal instead of a component?"):Se=typeof p,j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Se,Q)}var Oe=Tr(p,P,F,oe,ae);if(Oe==null)return Oe;if(te){var ot=P.children;if(ot!==void 0)if(Y)if(Array.isArray(ot)){for(var kt=0;kt<ot.length;kt++)Pr(ot[kt],p);Object.freeze&&Object.freeze(ot)}else j("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 Pr(ot,p)}return p===e.Fragment?Ni(Oe):ki(Oe),Oe}}function ii(p,P,F){return Ar(p,P,F,!0)}function $i(p,P,F){return Ar(p,P,F,!1)}var ji=$i,Fi=ii;e.jsx=ji,e.jsxs=Fi}()}(ap)),ap}process.env.NODE_ENV==="production"?gl.exports=_E():gl.exports=SE();var nt=gl.exports;const EE=e=>nt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:nt.jsx("path",{d:"M8.82 19.748c.001.245.075.486.214.69l.38 1.004c.117.172.573.312.758.41.185.097.391.148.601.148h2.454c.21 0 .417-.05.601-.148.185-.098.621-.238.737-.41l.402-1.003c.138-.205.213-.445.213-.691l.001-1.498H8.82l.002 1.498ZM5 8.875c0 1.733.654 3.314 1.732 4.522.658.737 1.685 2.275 2.077 3.573l.004.03h6.374l.004-.03c.392-1.298 1.42-2.836 2.076-3.573A6.766 6.766 0 0 0 19 8.875C19 5.07 15.854 1.988 11.978 2 7.921 2.012 5 5.241 5 8.875Z",fill:"currentColor"})}),xE=e=>nt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:nt.jsx("path",{d:"M4.497 5.361a.5.5 0 0 0 0 .707L10.429 12l-5.932 5.932a.5.5 0 0 0 0 .707l.864.864a.5.5 0 0 0 .707 0L12 13.571l5.932 5.932a.5.5 0 0 0 .707 0l.864-.864a.5.5 0 0 0 0-.707L13.571 12l5.932-5.932a.5.5 0 0 0 0-.707l-.864-.864a.5.5 0 0 0-.707 0L12 10.429 6.068 4.497a.5.5 0 0 0-.707 0l-.864.864Z",fill:"currentColor"})}),Pu=e=>nt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:nt.jsx("path",{d:"M11.701 18.797c.206.195.52.195.726 0l2.487-2.349-.008-.007 6.973-6.585a.58.58 0 0 0 0-.835l-2.045-1.932a.524.524 0 0 0-.726 0l-7.052 6.66-7.051-6.66a.524.524 0 0 0-.726 0L2.234 9.021a.58.58 0 0 0 0 .835l9.467 8.941Z",fill:"currentColor"})}),yl=e=>nt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:nt.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 21c5.523 0 10-4.477 10-10S16.523 1 11 1 1 5.477 1 11s4.477 10 10 10Zm0-14a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm1 1.5a.5.5 0 0 0-.5-.5h-2a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h.5v4h-.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5H12V8.5Z",fill:"currentColor"})}),OE=e=>nt.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[nt.jsx("path",{d:"M13 17.5a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-8a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v8ZM12 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z",fill:"currentColor"}),nt.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z",fill:"currentColor"})]}),kh=e=>nt.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[nt.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.7 6.7v13.6h13.6v-8.925c0-.235.19-.425.425-.425h.85c.235 0 .425.19.425.425v9.775c0 .47-.38.85-.85.85H2.85a.85.85 0 0 1-.85-.85V5.85c0-.47.38-.85.85-.85h9.775c.235 0 .425.19.425.425v.85c0 .235-.19.425-.425.425H3.7Z",fill:"currentColor"}),nt.jsx("path",{d:"M21.435 2.01a.468.468 0 0 1 .554.555L20.42 9.757a.454.454 0 0 1-.77.215l-1.555-1.555-3.453 3.453a.444.444 0 0 1-.628 0L12.13 9.986a.444.444 0 0 1 0-.628l3.453-3.453-1.555-1.555a.454.454 0 0 1 .215-.77l7.192-1.57Z",fill:"currentColor"})]}),TE=e=>nt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:nt.jsx("path",{d:"M18.797 12.299a.524.524 0 0 0 0-.726l-2.349-2.487-.007.008L9.856 2.12a.58.58 0 0 0-.835 0L7.089 4.166a.524.524 0 0 0 0 .726l6.66 7.051-6.66 7.053a.524.524 0 0 0 0 .725l1.932 2.045a.58.58 0 0 0 .835 0l8.941-9.467Z",fill:"currentColor"})}),CE=e=>nt.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[nt.jsx("path",{fill:"#fff",d:"M8 5h8v14H8z"}),nt.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10ZM11 6.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v7a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-7ZM13 17a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",fill:"currentColor"})]}),RE=e=>nt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:nt.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.076 2.203a.5.5 0 0 0-.354-.146H3.001a1 1 0 0 0-1 1v18a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1V8.335a.5.5 0 0 0-.147-.354l-5.778-5.778ZM12 19.057a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm-8-14.5a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-4Z",fill:"currentColor"})}),Kl=e=>nt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:nt.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.953 3.53c-.393-.707-1.513-.707-1.906 0L2.114 19.612c-.354.638.16 1.388.953 1.388h17.866c.792 0 1.307-.75.953-1.388L12.953 3.53ZM11.508 8a.504.504 0 0 0-.507.531l.491 8A.505.505 0 0 0 12 17c.269 0 .49-.205.508-.469l.492-8A.504.504 0 0 0 12.492 8h-.984ZM12 20c.561 0 1.016-.448 1.016-1s-.455-1-1.016-1c-.561 0-1.016.448-1.016 1s.455 1 1.016 1Z",fill:"currentColor"})});var Nh={exports:{}};/*!
57
+ Check the top-level render call using <`+F+">.")}return P}}function or(p,P){{if(!p._store||p._store.validated||p.key!=null)return;p._store.validated=!0;var F=ii(P);if(Ar[F])return;Ar[F]=!0;var Y="";p&&p._owner&&p._owner!==yn.current&&(Y=" It was passed a child from "+se(p._owner.type)+"."),bt(p),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',F,Y),bt(null)}}function Ir(p,P){{if(typeof p!="object")return;if(Array.isArray(p))for(var F=0;F<p.length;F++){var Y=p[F];bn(Y)&&or(Y,P)}else if(bn(p))p._store&&(p._store.validated=!0);else if(p){var oe=H(p);if(typeof oe=="function"&&oe!==p.entries)for(var ae=oe.call(p),te;!(te=ae.next()).done;)bn(te.value)&&or(te.value,P)}}}function Ni(p){{var P=p.type;if(P==null||typeof P=="string")return;var F;if(typeof P=="function")F=P.propTypes;else if(typeof P=="object"&&(P.$$typeof===v||P.$$typeof===O))F=P.propTypes;else return;if(F){var Y=se(P);xr(F,p.props,"prop",Y,p)}else if(P.PropTypes!==void 0&&!wn){wn=!0;var oe=se(P);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",oe||"Unknown")}typeof P.getDefaultProps=="function"&&!P.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function $i(p){{for(var P=Object.keys(p.props),F=0;F<P.length;F++){var Y=P[F];if(Y!=="children"&&Y!=="key"){bt(p),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Y),bt(null);break}}p.ref!==null&&(bt(p),j("Invalid attribute `ref` supplied to `React.Fragment`."),bt(null))}}function Lr(p,P,F,Y,oe,ae){{var te=ge(p);if(!te){var Q="";(p===void 0||typeof p=="object"&&p!==null&&Object.keys(p).length===0)&&(Q+=" 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 je=ki(oe);je?Q+=je:Q+=Pr();var Se;p===null?Se="null":Array.isArray(p)?Se="array":p!==void 0&&p.$$typeof===o?(Se="<"+(se(p.type)||"Unknown")+" />",Q=" Did you accidentally export a JSX literal instead of a component?"):Se=typeof p,j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Se,Q)}var Oe=Rr(p,P,F,oe,ae);if(Oe==null)return Oe;if(te){var ot=P.children;if(ot!==void 0)if(Y)if(Array.isArray(ot)){for(var kt=0;kt<ot.length;kt++)Ir(ot[kt],p);Object.freeze&&Object.freeze(ot)}else j("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 Ir(ot,p)}return p===e.Fragment?$i(Oe):Ni(Oe),Oe}}function oi(p,P,F){return Lr(p,P,F,!0)}function ji(p,P,F){return Lr(p,P,F,!1)}var Fi=ji,Wi=oi;e.jsx=Fi,e.jsxs=Wi}()}(up)),up}process.env.NODE_ENV==="production"?yl.exports=EE():yl.exports=xE();var nt=yl.exports;const OE=e=>nt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:nt.jsx("path",{d:"M8.82 19.748c.001.245.075.486.214.69l.38 1.004c.117.172.573.312.758.41.185.097.391.148.601.148h2.454c.21 0 .417-.05.601-.148.185-.098.621-.238.737-.41l.402-1.003c.138-.205.213-.445.213-.691l.001-1.498H8.82l.002 1.498ZM5 8.875c0 1.733.654 3.314 1.732 4.522.658.737 1.685 2.275 2.077 3.573l.004.03h6.374l.004-.03c.392-1.298 1.42-2.836 2.076-3.573A6.766 6.766 0 0 0 19 8.875C19 5.07 15.854 1.988 11.978 2 7.921 2.012 5 5.241 5 8.875Z",fill:"currentColor"})}),TE=e=>nt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:nt.jsx("path",{d:"M4.497 5.361a.5.5 0 0 0 0 .707L10.429 12l-5.932 5.932a.5.5 0 0 0 0 .707l.864.864a.5.5 0 0 0 .707 0L12 13.571l5.932 5.932a.5.5 0 0 0 .707 0l.864-.864a.5.5 0 0 0 0-.707L13.571 12l5.932-5.932a.5.5 0 0 0 0-.707l-.864-.864a.5.5 0 0 0-.707 0L12 10.429 6.068 4.497a.5.5 0 0 0-.707 0l-.864.864Z",fill:"currentColor"})}),Au=e=>nt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:nt.jsx("path",{d:"M11.701 18.797c.206.195.52.195.726 0l2.487-2.349-.008-.007 6.973-6.585a.58.58 0 0 0 0-.835l-2.045-1.932a.524.524 0 0 0-.726 0l-7.052 6.66-7.051-6.66a.524.524 0 0 0-.726 0L2.234 9.021a.58.58 0 0 0 0 .835l9.467 8.941Z",fill:"currentColor"})}),wl=e=>nt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:nt.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 21c5.523 0 10-4.477 10-10S16.523 1 11 1 1 5.477 1 11s4.477 10 10 10Zm0-14a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm1 1.5a.5.5 0 0 0-.5-.5h-2a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h.5v4h-.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5H12V8.5Z",fill:"currentColor"})}),CE=e=>nt.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[nt.jsx("path",{d:"M13 17.5a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-8a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v8ZM12 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z",fill:"currentColor"}),nt.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z",fill:"currentColor"})]}),jh=e=>nt.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[nt.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.7 6.7v13.6h13.6v-8.925c0-.235.19-.425.425-.425h.85c.235 0 .425.19.425.425v9.775c0 .47-.38.85-.85.85H2.85a.85.85 0 0 1-.85-.85V5.85c0-.47.38-.85.85-.85h9.775c.235 0 .425.19.425.425v.85c0 .235-.19.425-.425.425H3.7Z",fill:"currentColor"}),nt.jsx("path",{d:"M21.435 2.01a.468.468 0 0 1 .554.555L20.42 9.757a.454.454 0 0 1-.77.215l-1.555-1.555-3.453 3.453a.444.444 0 0 1-.628 0L12.13 9.986a.444.444 0 0 1 0-.628l3.453-3.453-1.555-1.555a.454.454 0 0 1 .215-.77l7.192-1.57Z",fill:"currentColor"})]}),RE=e=>nt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:nt.jsx("path",{d:"M18.797 12.299a.524.524 0 0 0 0-.726l-2.349-2.487-.007.008L9.856 2.12a.58.58 0 0 0-.835 0L7.089 4.166a.524.524 0 0 0 0 .726l6.66 7.051-6.66 7.053a.524.524 0 0 0 0 .725l1.932 2.045a.58.58 0 0 0 .835 0l8.941-9.467Z",fill:"currentColor"})}),PE=e=>nt.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[nt.jsx("path",{fill:"#fff",d:"M8 5h8v14H8z"}),nt.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10ZM11 6.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v7a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-7ZM13 17a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",fill:"currentColor"})]}),AE=e=>nt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:nt.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.076 2.203a.5.5 0 0 0-.354-.146H3.001a1 1 0 0 0-1 1v18a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1V8.335a.5.5 0 0 0-.147-.354l-5.778-5.778ZM12 19.057a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm-8-14.5a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-4Z",fill:"currentColor"})}),Yl=e=>nt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:nt.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.953 3.53c-.393-.707-1.513-.707-1.906 0L2.114 19.612c-.354.638.16 1.388.953 1.388h17.866c.792 0 1.307-.75.953-1.388L12.953 3.53ZM11.508 8a.504.504 0 0 0-.507.531l.491 8A.505.505 0 0 0 12 17c.269 0 .49-.205.508-.469l.492-8A.504.504 0 0 0 12.492 8h-.984ZM12 20c.561 0 1.016-.448 1.016-1s-.455-1-1.016-1c-.561 0-1.016.448-1.016 1s.455 1 1.016 1Z",fill:"currentColor"})});var Fh={exports:{}};/*!
58
58
  Copyright (c) 2018 Jed Watson.
59
59
  Licensed under the MIT License (MIT), see
60
60
  http://jedwatson.github.io/classnames
61
- */(function(e){(function(){var r={}.hasOwnProperty;function n(){for(var o=[],a=0;a<arguments.length;a++){var u=arguments[a];if(u){var l=typeof u;if(l==="string"||l==="number")o.push(u);else if(Array.isArray(u)){if(u.length){var f=n.apply(null,u);f&&o.push(f)}}else if(l==="object"){if(u.toString!==Object.prototype.toString&&!u.toString.toString().includes("[native code]")){o.push(u.toString());continue}for(var d in u)r.call(u,d)&&u[d]&&o.push(d)}}}return o.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Nh);var $h=Nh.exports;const Ot=bh($h);function qr(){return qr=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},qr.apply(this,arguments)}const PE=["children","options"],up=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","className","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,r)=>(e[r.toLowerCase()]=r,e),{for:"htmlFor"}),lp={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},AE=["style","script"],IE=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,LE=/mailto:/i,ME=/\n{2,}$/,jh=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,DE=/^ *> ?/gm,kE=/^ {2,}\n/,NE=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,Fh=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,Wh=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,$E=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,jE=/^(?:\n *)*\n/,FE=/\r\n?/g,WE=/^\[\^([^\]]+)](:.*)\n/,HE=/^\[\^([^\]]+)]/,UE=/\f/g,BE=/^\s*?\[(x|\s)\]/,Hh=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Uh=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Bh=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,wl=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,zE=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,zh=/^<!--[\s\S]*?(?:-->)/,qE=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,bl=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,GE=/^\{.*\}$/,KE=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,YE=/^<([^ >]+@[^ >]+)>/,XE=/^<([^ >]+:\/[^ >]+)>/,VE=/-([a-z])?/gi,qh=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,JE=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,ZE=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,QE=/^\[([^\]]*)\] ?\[([^\]]*)\]/,ex=/(\[|\])/g,tx=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,nx=/\t/g,rx=/^ *\| */,ix=/(^ *\||\| *$)/g,ox=/ *$/,ax=/^ *:-+: *$/,sx=/^ *:-+ *$/,ux=/^ *-+: *$/,lx=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,cx=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,fx=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,dx=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,px=/^\\([^0-9A-Za-z\s])/,hx=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,vx=/^\n+/,mx=/^([ \t]*)/,gx=/\\([^\\])/g,cp=/ *\n+$/,yx=/(?:^|\n)( *)$/,Yl="(?:\\d+\\.)",Xl="(?:[*+-])";function Gh(e){return"( *)("+(e===1?Yl:Xl)+") +"}const Kh=Gh(1),Yh=Gh(2);function Xh(e){return new RegExp("^"+(e===1?Kh:Yh))}const wx=Xh(1),bx=Xh(2);function Vh(e){return new RegExp("^"+(e===1?Kh:Yh)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Yl:Xl)+" )[^\\n]*)*(\\n|$)","gm")}const Jh=Vh(1),Zh=Vh(2);function Qh(e){const r=e===1?Yl:Xl;return new RegExp("^( *)("+r+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+r+" (?!"+r+" ))\\n*|\\s*\\n*$)")}const ev=Qh(1),tv=Qh(2);function fp(e,r){const n=r===1,o=n?ev:tv,a=n?Jh:Zh,u=n?wx:bx;return{t(l,f,d){const v=yx.exec(d);return v&&(f.o||!f._&&!f.u)?o.exec(l=v[1]+l):null},i:$e.HIGH,l(l,f,d){const v=n?+l[2]:void 0,g=l[0].replace(ME,`
61
+ */(function(e){(function(){var r={}.hasOwnProperty;function n(){for(var o=[],a=0;a<arguments.length;a++){var u=arguments[a];if(u){var l=typeof u;if(l==="string"||l==="number")o.push(u);else if(Array.isArray(u)){if(u.length){var f=n.apply(null,u);f&&o.push(f)}}else if(l==="object"){if(u.toString!==Object.prototype.toString&&!u.toString.toString().includes("[native code]")){o.push(u.toString());continue}for(var d in u)r.call(u,d)&&u[d]&&o.push(d)}}}return o.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Fh);var Wh=Fh.exports;const Ot=Eh(Wh);function Kr(){return Kr=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Kr.apply(this,arguments)}const IE=["children","options"],cp=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","className","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,r)=>(e[r.toLowerCase()]=r,e),{for:"htmlFor"}),fp={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},LE=["style","script"],ME=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,DE=/mailto:/i,kE=/\n{2,}$/,Hh=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,NE=/^ *> ?/gm,$E=/^ {2,}\n/,jE=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,Uh=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,Bh=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,FE=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,WE=/^(?:\n *)*\n/,HE=/\r\n?/g,UE=/^\[\^([^\]]+)](:.*)\n/,BE=/^\[\^([^\]]+)]/,zE=/\f/g,qE=/^\s*?\[(x|\s)\]/,zh=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,qh=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Gh=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,bl=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,GE=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Kh=/^<!--[\s\S]*?(?:-->)/,KE=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,_l=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,YE=/^\{.*\}$/,XE=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,VE=/^<([^ >]+@[^ >]+)>/,ZE=/^<([^ >]+:\/[^ >]+)>/,JE=/-([a-z])?/gi,Yh=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,QE=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,ex=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,tx=/^\[([^\]]*)\] ?\[([^\]]*)\]/,nx=/(\[|\])/g,rx=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,ix=/\t/g,ox=/^ *\| */,ax=/(^ *\||\| *$)/g,sx=/ *$/,ux=/^ *:-+: *$/,lx=/^ *:-+ *$/,cx=/^ *-+: *$/,fx=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,dx=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,px=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,hx=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,vx=/^\\([^0-9A-Za-z\s])/,mx=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,gx=/^\n+/,yx=/^([ \t]*)/,wx=/\\([^\\])/g,dp=/ *\n+$/,bx=/(?:^|\n)( *)$/,Xl="(?:\\d+\\.)",Vl="(?:[*+-])";function Xh(e){return"( *)("+(e===1?Xl:Vl)+") +"}const Vh=Xh(1),Zh=Xh(2);function Jh(e){return new RegExp("^"+(e===1?Vh:Zh))}const _x=Jh(1),Sx=Jh(2);function Qh(e){return new RegExp("^"+(e===1?Vh:Zh)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Xl:Vl)+" )[^\\n]*)*(\\n|$)","gm")}const ev=Qh(1),tv=Qh(2);function nv(e){const r=e===1?Xl:Vl;return new RegExp("^( *)("+r+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+r+" (?!"+r+" ))\\n*|\\s*\\n*$)")}const rv=nv(1),iv=nv(2);function pp(e,r){const n=r===1,o=n?rv:iv,a=n?ev:tv,u=n?_x:Sx;return{t(l,f,d){const v=bx.exec(d);return v&&(f.o||!f._&&!f.u)?o.exec(l=v[1]+l):null},i:$e.HIGH,l(l,f,d){const v=n?+l[2]:void 0,g=l[0].replace(kE,`
62
62
  `).match(a);let _=!1;return{p:g.map(function(O,m){const S=u.exec(O)[0].length,y=new RegExp("^ {1,"+S+"}","gm"),E=O.replace(y,"").replace(u,""),D=m===g.length-1,I=E.indexOf(`
63
63
 
64
- `)!==-1||D&&_;_=I;const C=d._,k=d.o;let T;d.o=!0,I?(d._=!1,T=E.replace(cp,`
64
+ `)!==-1||D&&_;_=I;const C=d._,k=d.o;let T;d.o=!0,I?(d._=!1,T=E.replace(dp,`
65
65
 
66
- `)):(d._=!0,T=E.replace(cp,""));const H=f(T,d);return d._=C,d.o=k,H}),m:n,g:v}},h:(l,f,d)=>e(l.m?"ol":"ul",{key:d.k,start:l.g},l.p.map(function(v,g){return e("li",{key:g},f(v,d))}))}}const _x=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Sx=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,nv=[jh,Fh,Wh,Hh,Bh,Uh,zh,qh,Jh,ev,Zh,tv],Ex=[...nv,/^[^\n]+(?: \n|\n{2,})/,wl,bl];function xx(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function Ox(e){return ux.test(e)?"right":ax.test(e)?"center":sx.test(e)?"left":null}function dp(e,r,n){const o=n.$;n.$=!0;const a=r(e.trim(),n);n.$=o;let u=[[]];return a.forEach(function(l,f){l.type==="tableSeparator"?f!==0&&f!==a.length-1&&u.push([]):(l.type!=="text"||a[f+1]!=null&&a[f+1].type!=="tableSeparator"||(l.v=l.v.replace(ox,"")),u[u.length-1].push(l))}),u}function Tx(e,r,n){n._=!0;const o=dp(e[1],r,n),a=e[2].replace(ix,"").split("|").map(Ox),u=function(l,f,d){return l.trim().split(`
67
- `).map(function(v){return dp(v,f,d)})}(e[3],r,n);return n._=!1,{S:a,A:u,L:o,type:"table"}}function pp(e,r){return e.S[r]==null?{}:{textAlign:e.S[r]}}function hr(e){return function(r,n){return n._?e.exec(r):null}}function vr(e){return function(r,n){return n._||n.u?e.exec(r):null}}function Zn(e){return function(r,n){return n._||n.u?null:e.exec(r)}}function no(e){return function(r){return e.exec(r)}}function Cx(e,r,n){if(r._||r.u||n&&!n.endsWith(`
66
+ `)):(d._=!0,T=E.replace(dp,""));const H=f(T,d);return d._=C,d.o=k,H}),m:n,g:v}},h:(l,f,d)=>e(l.m?"ol":"ul",{key:d.k,start:l.g},l.p.map(function(v,g){return e("li",{key:g},f(v,d))}))}}const Ex=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,xx=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,ov=[Hh,Uh,Bh,zh,Gh,qh,Kh,Yh,ev,rv,tv,iv],Ox=[...ov,/^[^\n]+(?: \n|\n{2,})/,bl,_l];function Tx(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function Cx(e){return cx.test(e)?"right":ux.test(e)?"center":lx.test(e)?"left":null}function hp(e,r,n){const o=n.$;n.$=!0;const a=r(e.trim(),n);n.$=o;let u=[[]];return a.forEach(function(l,f){l.type==="tableSeparator"?f!==0&&f!==a.length-1&&u.push([]):(l.type!=="text"||a[f+1]!=null&&a[f+1].type!=="tableSeparator"||(l.v=l.v.replace(sx,"")),u[u.length-1].push(l))}),u}function Rx(e,r,n){n._=!0;const o=hp(e[1],r,n),a=e[2].replace(ax,"").split("|").map(Cx),u=function(l,f,d){return l.trim().split(`
67
+ `).map(function(v){return hp(v,f,d)})}(e[3],r,n);return n._=!1,{S:a,A:u,L:o,type:"table"}}function vp(e,r){return e.S[r]==null?{}:{textAlign:e.S[r]}}function vr(e){return function(r,n){return n._?e.exec(r):null}}function mr(e){return function(r,n){return n._||n.u?e.exec(r):null}}function Qn(e){return function(r,n){return n._||n.u?null:e.exec(r)}}function ro(e){return function(r){return e.exec(r)}}function Px(e,r,n){if(r._||r.u||n&&!n.endsWith(`
68
68
  `))return null;let o="";e.split(`
69
- `).every(u=>!nv.some(l=>l.test(u))&&(o+=u+`
70
- `,u.trim()));const a=o.trimEnd();return a==""?null:[o,a]}function _i(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return}catch{return null}return e}function hp(e){return e.replace(gx,"$1")}function ja(e,r,n){const o=n._||!1,a=n.u||!1;n._=!0,n.u=!0;const u=e(r,n);return n._=o,n.u=a,u}function Rx(e,r,n){const o=n._||!1,a=n.u||!1;n._=!1,n.u=!0;const u=e(r,n);return n._=o,n.u=a,u}function Px(e,r,n){return n._=!1,e(r,n)}const Au=(e,r,n)=>({v:ja(r,e[1],n)});function Iu(){return{}}function Lu(){return null}function Ax(...e){return e.filter(Boolean).join(" ")}function Mu(e,r,n){let o=e;const a=r.split(".");for(;a.length&&(o=o[a[0]],o!==void 0);)a.shift();return o||n}var $e;function Ix(e,r={}){r.overrides=r.overrides||{},r.slugify=r.slugify||xx,r.namedCodesToUnicode=r.namedCodesToUnicode?qr({},lp,r.namedCodesToUnicode):lp;const n=r.createElement||L.createElement;function o(m,S,...y){const E=Mu(r.overrides,`${m}.props`,{});return n(function(D,I){const C=Mu(I,D);return C?typeof C=="function"||typeof C=="object"&&"render"in C?C:Mu(I,`${D}.component`,D):D}(m,r.overrides),qr({},S,E,{className:Ax(S==null?void 0:S.className,E.className)||void 0}),...y)}function a(m){let S=!1;r.forceInline?S=!0:r.forceBlock||(S=tx.test(m)===!1);const y=g(v(S?m:`${m.trimEnd().replace(vx,"")}
69
+ `).every(u=>!ov.some(l=>l.test(u))&&(o+=u+`
70
+ `,u.trim()));const a=o.trimEnd();return a==""?null:[o,a]}function Si(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return}catch{return null}return e}function mp(e){return e.replace(wx,"$1")}function Fa(e,r,n){const o=n._||!1,a=n.u||!1;n._=!0,n.u=!0;const u=e(r,n);return n._=o,n.u=a,u}function Ax(e,r,n){const o=n._||!1,a=n.u||!1;n._=!1,n.u=!0;const u=e(r,n);return n._=o,n.u=a,u}function Ix(e,r,n){return n._=!1,e(r,n)}const Iu=(e,r,n)=>({v:Fa(r,e[1],n)});function Lu(){return{}}function Mu(){return null}function Lx(...e){return e.filter(Boolean).join(" ")}function Du(e,r,n){let o=e;const a=r.split(".");for(;a.length&&(o=o[a[0]],o!==void 0);)a.shift();return o||n}var $e;function Mx(e,r={}){r.overrides=r.overrides||{},r.slugify=r.slugify||Tx,r.namedCodesToUnicode=r.namedCodesToUnicode?Kr({},fp,r.namedCodesToUnicode):fp;const n=r.createElement||L.createElement;function o(m,S,...y){const E=Du(r.overrides,`${m}.props`,{});return n(function(D,I){const C=Du(I,D);return C?typeof C=="function"||typeof C=="object"&&"render"in C?C:Du(I,`${D}.component`,D):D}(m,r.overrides),Kr({},S,E,{className:Lx(S==null?void 0:S.className,E.className)||void 0}),...y)}function a(m){let S=!1;r.forceInline?S=!0:r.forceBlock||(S=rx.test(m)===!1);const y=g(v(S?m:`${m.trimEnd().replace(gx,"")}
71
71
 
72
- `,{_:S}));for(;typeof y[y.length-1]=="string"&&!y[y.length-1].trim();)y.pop();if(r.wrapper===null)return y;const E=r.wrapper||(S?"span":"div");let D;if(y.length>1||r.forceWrapper)D=y;else{if(y.length===1)return D=y[0],typeof D=="string"?o("span",{key:"outer"},D):D;D=null}return L.createElement(E,{key:"outer"},D)}function u(m){const S=m.match(IE);return S?S.reduce(function(y,E,D){const I=E.indexOf("=");if(I!==-1){const C=function(U){return U.indexOf("-")!==-1&&U.match(qE)===null&&(U=U.replace(VE,function(j,J){return J.toUpperCase()})),U}(E.slice(0,I)).trim(),k=function(U){const j=U[0];return(j==='"'||j==="'")&&U.length>=2&&U[U.length-1]===j?U.slice(1,-1):U}(E.slice(I+1).trim()),T=up[C]||C,H=y[T]=function(U,j){return U==="style"?j.split(/;\s?/).reduce(function(J,ee){const ge=ee.slice(0,ee.indexOf(":"));return J[ge.replace(/(-[a-z])/g,Ce=>Ce[1].toUpperCase())]=ee.slice(ge.length+1).trim(),J},{}):U==="href"?_i(j):(j.match(GE)&&(j=j.slice(1,j.length-1)),j==="true"||j!=="false"&&j)}(C,k);typeof H=="string"&&(wl.test(H)||bl.test(H))&&(y[T]=L.cloneElement(a(H.trim()),{key:D}))}else E!=="style"&&(y[up[E]||E]=!0);return y},{}):null}const l=[],f={},d={blockQuote:{t:Zn(jh),i:$e.HIGH,l:(m,S,y)=>({v:S(m[0].replace(DE,""),y)}),h:(m,S,y)=>o("blockquote",{key:y.k},S(m.v,y))},breakLine:{t:no(kE),i:$e.HIGH,l:Iu,h:(m,S,y)=>o("br",{key:y.k})},breakThematic:{t:Zn(NE),i:$e.HIGH,l:Iu,h:(m,S,y)=>o("hr",{key:y.k})},codeBlock:{t:Zn(Wh),i:$e.MAX,l:m=>({v:m[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),M:void 0}),h:(m,S,y)=>o("pre",{key:y.k},o("code",qr({},m.O,{className:m.M?`lang-${m.M}`:""}),m.v))},codeFenced:{t:Zn(Fh),i:$e.MAX,l:m=>({O:u(m[3]||""),v:m[4],M:m[2]||void 0,type:"codeBlock"})},codeInline:{t:vr($E),i:$e.LOW,l:m=>({v:m[2]}),h:(m,S,y)=>o("code",{key:y.k},m.v)},footnote:{t:Zn(WE),i:$e.MAX,l:m=>(l.push({I:m[2],j:m[1]}),{}),h:Lu},footnoteReference:{t:hr(HE),i:$e.HIGH,l:m=>({v:m[1],B:`#${r.slugify(m[1])}`}),h:(m,S,y)=>o("a",{key:y.k,href:_i(m.B)},o("sup",{key:y.k},m.v))},gfmTask:{t:hr(BE),i:$e.HIGH,l:m=>({R:m[1].toLowerCase()==="x"}),h:(m,S,y)=>o("input",{checked:m.R,key:y.k,readOnly:!0,type:"checkbox"})},heading:{t:Zn(r.enforceAtxHeadings?Uh:Hh),i:$e.HIGH,l:(m,S,y)=>({v:ja(S,m[2],y),T:r.slugify(m[2]),C:m[1].length}),h:(m,S,y)=>o(`h${m.C}`,{id:m.T,key:y.k},S(m.v,y))},headingSetext:{t:Zn(Bh),i:$e.MAX,l:(m,S,y)=>({v:ja(S,m[1],y),C:m[2]==="="?1:2,type:"heading"})},htmlComment:{t:no(zh),i:$e.HIGH,l:()=>({}),h:Lu},image:{t:vr(Sx),i:$e.HIGH,l:m=>({D:m[1],B:hp(m[2]),F:m[3]}),h:(m,S,y)=>o("img",{key:y.k,alt:m.D||void 0,title:m.F||void 0,src:_i(m.B)})},link:{t:hr(_x),i:$e.LOW,l:(m,S,y)=>({v:Rx(S,m[1],y),B:hp(m[2]),F:m[3]}),h:(m,S,y)=>o("a",{key:y.k,href:_i(m.B),title:m.F},S(m.v,y))},linkAngleBraceStyleDetector:{t:hr(XE),i:$e.MAX,l:m=>({v:[{v:m[1],type:"text"}],B:m[1],type:"link"})},linkBareUrlDetector:{t:(m,S)=>S.N?null:hr(KE)(m,S),i:$e.MAX,l:m=>({v:[{v:m[1],type:"text"}],B:m[1],F:void 0,type:"link"})},linkMailtoDetector:{t:hr(YE),i:$e.MAX,l(m){let S=m[1],y=m[1];return LE.test(y)||(y="mailto:"+y),{v:[{v:S.replace("mailto:",""),type:"text"}],B:y,type:"link"}}},orderedList:fp(o,1),unorderedList:fp(o,2),newlineCoalescer:{t:Zn(jE),i:$e.LOW,l:Iu,h:()=>`
73
- `},paragraph:{t:Cx,i:$e.LOW,l:Au,h:(m,S,y)=>o("p",{key:y.k},S(m.v,y))},ref:{t:hr(JE),i:$e.MAX,l:m=>(f[m[1]]={B:m[2],F:m[4]},{}),h:Lu},refImage:{t:vr(ZE),i:$e.MAX,l:m=>({D:m[1]||void 0,P:m[2]}),h:(m,S,y)=>o("img",{key:y.k,alt:m.D,src:_i(f[m.P].B),title:f[m.P].F})},refLink:{t:hr(QE),i:$e.MAX,l:(m,S,y)=>({v:S(m[1],y),Z:S(m[0].replace(ex,"\\$1"),y),P:m[2]}),h:(m,S,y)=>f[m.P]?o("a",{key:y.k,href:_i(f[m.P].B),title:f[m.P].F},S(m.v,y)):o("span",{key:y.k},S(m.Z,y))},table:{t:Zn(qh),i:$e.HIGH,l:Tx,h:(m,S,y)=>o("table",{key:y.k},o("thead",null,o("tr",null,m.L.map(function(E,D){return o("th",{key:D,style:pp(m,D)},S(E,y))}))),o("tbody",null,m.A.map(function(E,D){return o("tr",{key:D},E.map(function(I,C){return o("td",{key:C,style:pp(m,C)},S(I,y))}))})))},tableSeparator:{t:function(m,S){return S.$?(S._=!0,rx.exec(m)):null},i:$e.HIGH,l:function(){return{type:"tableSeparator"}},h:()=>" | "},text:{t:no(hx),i:$e.MIN,l:m=>({v:m[0].replace(zE,(S,y)=>r.namedCodesToUnicode[y]?r.namedCodesToUnicode[y]:S)}),h:m=>m.v},textBolded:{t:vr(lx),i:$e.MED,l:(m,S,y)=>({v:S(m[2],y)}),h:(m,S,y)=>o("strong",{key:y.k},S(m.v,y))},textEmphasized:{t:vr(cx),i:$e.LOW,l:(m,S,y)=>({v:S(m[2],y)}),h:(m,S,y)=>o("em",{key:y.k},S(m.v,y))},textEscaped:{t:vr(px),i:$e.HIGH,l:m=>({v:m[1],type:"text"})},textMarked:{t:vr(fx),i:$e.LOW,l:Au,h:(m,S,y)=>o("mark",{key:y.k},S(m.v,y))},textStrikethroughed:{t:vr(dx),i:$e.LOW,l:Au,h:(m,S,y)=>o("del",{key:y.k},S(m.v,y))}};r.disableParsingRawHTML!==!0&&(d.htmlBlock={t:no(wl),i:$e.HIGH,l(m,S,y){const[,E]=m[3].match(mx),D=new RegExp(`^${E}`,"gm"),I=m[3].replace(D,""),C=(k=I,Ex.some(j=>j.test(k))?Px:ja);var k;const T=m[1].toLowerCase(),H=AE.indexOf(T)!==-1;y.N=y.N||T==="a";const U=H?m[3]:C(S,I,y);return y.N=!1,{O:u(m[2]),v:U,G:H,H:H?T:m[1]}},h:(m,S,y)=>o(m.H,qr({key:y.k},m.O),m.G?m.v:S(m.v,y))},d.htmlSelfClosing={t:no(bl),i:$e.HIGH,l:m=>({O:u(m[2]||""),H:m[1]}),h:(m,S,y)=>o(m.H,qr({},m.O,{key:y.k}))});const v=function(m){let S=Object.keys(m);function y(E,D){let I=[],C="";for(;E;){let k=0;for(;k<S.length;){const T=S[k],H=m[T],U=H.t(E,D,C);if(U){const j=U[0];E=E.substring(j.length);const J=H.l(U,y,D);J.type==null&&(J.type=T),I.push(J),C=j;break}k++}}return I}return S.sort(function(E,D){let I=m[E].i,C=m[D].i;return I!==C?I-C:E<D?-1:1}),function(E,D){return y(function(I){return I.replace(FE,`
74
- `).replace(UE,"").replace(nx," ")}(E),D)}}(d),g=(_=function(m){return function(S,y,E){return m[S.type].h(S,y,E)}}(d),function m(S,y={}){if(Array.isArray(S)){const E=y.k,D=[];let I=!1;for(let C=0;C<S.length;C++){y.k=C;const k=m(S[C],y),T=typeof k=="string";T&&I?D[D.length-1]+=k:k!==null&&D.push(k),I=T}return y.k=E,D}return _(S,m,y)});var _;const O=a(e);return l.length?o("div",null,O,o("footer",{key:"footer"},l.map(function(m){return o("div",{id:r.slugify(m.j),key:m.j},m.j,g(v(m.I,{_:!0})))}))):O}(function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"})($e||($e={}));const za=e=>{let{children:r,options:n}=e,o=function(a,u){if(a==null)return{};var l,f,d={},v=Object.keys(a);for(f=0;f<v.length;f++)u.indexOf(l=v[f])>=0||(d[l]=a[l]);return d}(e,PE);return L.cloneElement(Ix(r,n),o)},vp=({kind:e,customIcon:r})=>{if(r)return $.jsx(r,{className:"mr-1 h-6 w-6 flex-none"});switch(e){case"error":case"danger":return $.jsx(CE,{className:"flex-none h-6 w-6"});case"info":return $.jsx($.Fragment,{children:$.jsx(yl,{className:"flex-none h-6 w-6"})});case"warning":return $.jsx($.Fragment,{children:$.jsx(Kl,{className:"flex-none h-6 w-6"})});case"message":return $.jsx($.Fragment,{children:$.jsx(yl,{className:"flex-none h-6 w-6"})});default:return null}},Lx=({id:e,onClose:r,kind:n,message:o,markdown:a,customIcon:u})=>{const l=({className:f}={})=>$.jsx("button",{onClick:r,className:Ot("flex items-center justify-center p-1",f),children:$.jsx(xE,{className:"h-5 w-5 font-thin stroke-current"})});return $.jsx("div",{className:Ot("relative flex items-center rounded-lg py-2 px-4 font-semibold",{"bg-yellow-100 text-yellow-400":n==="warning","bg-red-200 text-red-500":n==="danger"||n==="error","bg-primary-light text-primary":n==="info","bg-green-200 text-green-500":n==="message"}),children:typeof o=="string"?$.jsxs("div",{className:"w-full flex items-center justify-between gap-x-3",children:[$.jsxs("div",{className:"flex items-center gap-1",children:[$.jsx(vp,{kind:n,customIcon:u}),a?$.jsx(za,{children:o}):$.jsx($.Fragment,{children:o})]}),l()]}):$.jsxs("div",{className:"flex items-start",children:[$.jsx("div",{className:"flex flex-col gap-2 justify-between",children:o.filter(f=>f.messages.length>0).map(f=>$.jsxs($.Fragment,{children:[$.jsxs("span",{className:"flex items-center gap-1 font-bold capitalize",children:[$.jsx(vp,{kind:n,customIcon:u}),$.jsxs("span",{children:[f.title," :"]})]}),$.jsx("ul",{className:"list-disc px-12",children:f.messages.map(d=>$.jsx("li",{children:a?$.jsx(za,{children:d}):$.jsx($.Fragment,{children:d})}))})]}))}),l({className:"absolute top-1 right-1"})]})},e)},rv=({children:e,size:r,className:n,...o})=>$.jsx("div",{style:{"--width":`${r||24}px`},className:Ot("h-6 flex items-center pr-1 w-[--width]",n),...o,children:e});var wa,Mx=new Uint8Array(16);function iv(){if(!wa&&(wa=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!wa))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return wa(Mx)}const Dx=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function ts(e){return typeof e=="string"&&Dx.test(e)}var Et=[];for(var Du=0;Du<256;++Du)Et.push((Du+256).toString(16).substr(1));function ns(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(Et[e[r+0]]+Et[e[r+1]]+Et[e[r+2]]+Et[e[r+3]]+"-"+Et[e[r+4]]+Et[e[r+5]]+"-"+Et[e[r+6]]+Et[e[r+7]]+"-"+Et[e[r+8]]+Et[e[r+9]]+"-"+Et[e[r+10]]+Et[e[r+11]]+Et[e[r+12]]+Et[e[r+13]]+Et[e[r+14]]+Et[e[r+15]]).toLowerCase();if(!ts(n))throw TypeError("Stringified UUID is invalid");return n}var mp,ku,Nu=0,$u=0;function kx(e,r,n){var o=r&&n||0,a=r||new Array(16);e=e||{};var u=e.node||mp,l=e.clockseq!==void 0?e.clockseq:ku;if(u==null||l==null){var f=e.random||(e.rng||iv)();u==null&&(u=mp=[f[0]|1,f[1],f[2],f[3],f[4],f[5]]),l==null&&(l=ku=(f[6]<<8|f[7])&16383)}var d=e.msecs!==void 0?e.msecs:Date.now(),v=e.nsecs!==void 0?e.nsecs:$u+1,g=d-Nu+(v-$u)/1e4;if(g<0&&e.clockseq===void 0&&(l=l+1&16383),(g<0||d>Nu)&&e.nsecs===void 0&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Nu=d,$u=v,ku=l,d+=122192928e5;var _=((d&268435455)*1e4+v)%4294967296;a[o++]=_>>>24&255,a[o++]=_>>>16&255,a[o++]=_>>>8&255,a[o++]=_&255;var O=d/4294967296*1e4&268435455;a[o++]=O>>>8&255,a[o++]=O&255,a[o++]=O>>>24&15|16,a[o++]=O>>>16&255,a[o++]=l>>>8|128,a[o++]=l&255;for(var m=0;m<6;++m)a[o+m]=u[m];return r||ns(a)}function ov(e){if(!ts(e))throw TypeError("Invalid UUID");var r,n=new Uint8Array(16);return n[0]=(r=parseInt(e.slice(0,8),16))>>>24,n[1]=r>>>16&255,n[2]=r>>>8&255,n[3]=r&255,n[4]=(r=parseInt(e.slice(9,13),16))>>>8,n[5]=r&255,n[6]=(r=parseInt(e.slice(14,18),16))>>>8,n[7]=r&255,n[8]=(r=parseInt(e.slice(19,23),16))>>>8,n[9]=r&255,n[10]=(r=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=r/4294967296&255,n[12]=r>>>24&255,n[13]=r>>>16&255,n[14]=r>>>8&255,n[15]=r&255,n}function Nx(e){e=unescape(encodeURIComponent(e));for(var r=[],n=0;n<e.length;++n)r.push(e.charCodeAt(n));return r}var $x="6ba7b810-9dad-11d1-80b4-00c04fd430c8",jx="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function av(e,r,n){function o(a,u,l,f){if(typeof a=="string"&&(a=Nx(a)),typeof u=="string"&&(u=ov(u)),u.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var d=new Uint8Array(16+a.length);if(d.set(u),d.set(a,u.length),d=n(d),d[6]=d[6]&15|r,d[8]=d[8]&63|128,l){f=f||0;for(var v=0;v<16;++v)l[f+v]=d[v];return l}return ns(d)}try{o.name=e}catch{}return o.DNS=$x,o.URL=jx,o}function Fx(e){if(typeof e=="string"){var r=unescape(encodeURIComponent(e));e=new Uint8Array(r.length);for(var n=0;n<r.length;++n)e[n]=r.charCodeAt(n)}return Wx(Hx(Ux(e),e.length*8))}function Wx(e){for(var r=[],n=e.length*32,o="0123456789abcdef",a=0;a<n;a+=8){var u=e[a>>5]>>>a%32&255,l=parseInt(o.charAt(u>>>4&15)+o.charAt(u&15),16);r.push(l)}return r}function sv(e){return(e+64>>>9<<4)+14+1}function Hx(e,r){e[r>>5]|=128<<r%32,e[sv(r)-1]=r;for(var n=1732584193,o=-271733879,a=-1732584194,u=271733878,l=0;l<e.length;l+=16){var f=n,d=o,v=a,g=u;n=Pt(n,o,a,u,e[l],7,-680876936),u=Pt(u,n,o,a,e[l+1],12,-389564586),a=Pt(a,u,n,o,e[l+2],17,606105819),o=Pt(o,a,u,n,e[l+3],22,-1044525330),n=Pt(n,o,a,u,e[l+4],7,-176418897),u=Pt(u,n,o,a,e[l+5],12,1200080426),a=Pt(a,u,n,o,e[l+6],17,-1473231341),o=Pt(o,a,u,n,e[l+7],22,-45705983),n=Pt(n,o,a,u,e[l+8],7,1770035416),u=Pt(u,n,o,a,e[l+9],12,-1958414417),a=Pt(a,u,n,o,e[l+10],17,-42063),o=Pt(o,a,u,n,e[l+11],22,-1990404162),n=Pt(n,o,a,u,e[l+12],7,1804603682),u=Pt(u,n,o,a,e[l+13],12,-40341101),a=Pt(a,u,n,o,e[l+14],17,-1502002290),o=Pt(o,a,u,n,e[l+15],22,1236535329),n=At(n,o,a,u,e[l+1],5,-165796510),u=At(u,n,o,a,e[l+6],9,-1069501632),a=At(a,u,n,o,e[l+11],14,643717713),o=At(o,a,u,n,e[l],20,-373897302),n=At(n,o,a,u,e[l+5],5,-701558691),u=At(u,n,o,a,e[l+10],9,38016083),a=At(a,u,n,o,e[l+15],14,-660478335),o=At(o,a,u,n,e[l+4],20,-405537848),n=At(n,o,a,u,e[l+9],5,568446438),u=At(u,n,o,a,e[l+14],9,-1019803690),a=At(a,u,n,o,e[l+3],14,-187363961),o=At(o,a,u,n,e[l+8],20,1163531501),n=At(n,o,a,u,e[l+13],5,-1444681467),u=At(u,n,o,a,e[l+2],9,-51403784),a=At(a,u,n,o,e[l+7],14,1735328473),o=At(o,a,u,n,e[l+12],20,-1926607734),n=It(n,o,a,u,e[l+5],4,-378558),u=It(u,n,o,a,e[l+8],11,-2022574463),a=It(a,u,n,o,e[l+11],16,1839030562),o=It(o,a,u,n,e[l+14],23,-35309556),n=It(n,o,a,u,e[l+1],4,-1530992060),u=It(u,n,o,a,e[l+4],11,1272893353),a=It(a,u,n,o,e[l+7],16,-155497632),o=It(o,a,u,n,e[l+10],23,-1094730640),n=It(n,o,a,u,e[l+13],4,681279174),u=It(u,n,o,a,e[l],11,-358537222),a=It(a,u,n,o,e[l+3],16,-722521979),o=It(o,a,u,n,e[l+6],23,76029189),n=It(n,o,a,u,e[l+9],4,-640364487),u=It(u,n,o,a,e[l+12],11,-421815835),a=It(a,u,n,o,e[l+15],16,530742520),o=It(o,a,u,n,e[l+2],23,-995338651),n=Lt(n,o,a,u,e[l],6,-198630844),u=Lt(u,n,o,a,e[l+7],10,1126891415),a=Lt(a,u,n,o,e[l+14],15,-1416354905),o=Lt(o,a,u,n,e[l+5],21,-57434055),n=Lt(n,o,a,u,e[l+12],6,1700485571),u=Lt(u,n,o,a,e[l+3],10,-1894986606),a=Lt(a,u,n,o,e[l+10],15,-1051523),o=Lt(o,a,u,n,e[l+1],21,-2054922799),n=Lt(n,o,a,u,e[l+8],6,1873313359),u=Lt(u,n,o,a,e[l+15],10,-30611744),a=Lt(a,u,n,o,e[l+6],15,-1560198380),o=Lt(o,a,u,n,e[l+13],21,1309151649),n=Lt(n,o,a,u,e[l+4],6,-145523070),u=Lt(u,n,o,a,e[l+11],10,-1120210379),a=Lt(a,u,n,o,e[l+2],15,718787259),o=Lt(o,a,u,n,e[l+9],21,-343485551),n=yr(n,f),o=yr(o,d),a=yr(a,v),u=yr(u,g)}return[n,o,a,u]}function Ux(e){if(e.length===0)return[];for(var r=e.length*8,n=new Uint32Array(sv(r)),o=0;o<r;o+=8)n[o>>5]|=(e[o/8]&255)<<o%32;return n}function yr(e,r){var n=(e&65535)+(r&65535),o=(e>>16)+(r>>16)+(n>>16);return o<<16|n&65535}function Bx(e,r){return e<<r|e>>>32-r}function rs(e,r,n,o,a,u){return yr(Bx(yr(yr(r,e),yr(o,u)),a),n)}function Pt(e,r,n,o,a,u,l){return rs(r&n|~r&o,e,r,a,u,l)}function At(e,r,n,o,a,u,l){return rs(r&o|n&~o,e,r,a,u,l)}function It(e,r,n,o,a,u,l){return rs(r^n^o,e,r,a,u,l)}function Lt(e,r,n,o,a,u,l){return rs(n^(r|~o),e,r,a,u,l)}var zx=av("v3",48,Fx);const qx=zx;function Gx(e,r,n){e=e||{};var o=e.random||(e.rng||iv)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,r){n=n||0;for(var a=0;a<16;++a)r[n+a]=o[a];return r}return ns(o)}function Kx(e,r,n,o){switch(e){case 0:return r&n^~r&o;case 1:return r^n^o;case 2:return r&n^r&o^n&o;case 3:return r^n^o}}function ju(e,r){return e<<r|e>>>32-r}function Yx(e){var r=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){var o=unescape(encodeURIComponent(e));e=[];for(var a=0;a<o.length;++a)e.push(o.charCodeAt(a))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var u=e.length/4+2,l=Math.ceil(u/16),f=new Array(l),d=0;d<l;++d){for(var v=new Uint32Array(16),g=0;g<16;++g)v[g]=e[d*64+g*4]<<24|e[d*64+g*4+1]<<16|e[d*64+g*4+2]<<8|e[d*64+g*4+3];f[d]=v}f[l-1][14]=(e.length-1)*8/Math.pow(2,32),f[l-1][14]=Math.floor(f[l-1][14]),f[l-1][15]=(e.length-1)*8&4294967295;for(var _=0;_<l;++_){for(var O=new Uint32Array(80),m=0;m<16;++m)O[m]=f[_][m];for(var S=16;S<80;++S)O[S]=ju(O[S-3]^O[S-8]^O[S-14]^O[S-16],1);for(var y=n[0],E=n[1],D=n[2],I=n[3],C=n[4],k=0;k<80;++k){var T=Math.floor(k/20),H=ju(y,5)+Kx(T,E,D,I)+C+r[T]+O[k]>>>0;C=I,I=D,D=ju(E,30)>>>0,E=y,y=H}n[0]=n[0]+y>>>0,n[1]=n[1]+E>>>0,n[2]=n[2]+D>>>0,n[3]=n[3]+I>>>0,n[4]=n[4]+C>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,n[0]&255,n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,n[1]&255,n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,n[2]&255,n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,n[3]&255,n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,n[4]&255]}var Xx=av("v5",80,Yx);const Vx=Xx,Jx="00000000-0000-0000-0000-000000000000";function Zx(e){if(!ts(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const Qx=Object.freeze(Object.defineProperty({__proto__:null,NIL:Jx,parse:ov,stringify:ns,v1:kx,v3:qx,v4:Gx,v5:Vx,validate:ts,version:Zx},Symbol.toStringTag,{value:"Module"})),eO=iS(Qx);function Vl(e,r){if(!e||!r||!e.length||!r.length)throw new Error("Bad alphabet");this.srcAlphabet=e,this.dstAlphabet=r}Vl.prototype.convert=function(e){var r,n,o,a={},u=this.srcAlphabet.length,l=this.dstAlphabet.length,f=e.length,d=typeof e=="string"?"":[];if(!this.isValid(e))throw new Error('Number "'+e+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return e;for(r=0;r<f;r++)a[r]=this.srcAlphabet.indexOf(e[r]);do{for(n=0,o=0,r=0;r<f;r++)n=n*u+a[r],n>=l?(a[o++]=parseInt(n/l,10),n=n%l):o>0&&(a[o++]=0);f=o,d=this.dstAlphabet.slice(n,n+1).concat(d)}while(o!==0);return d};Vl.prototype.isValid=function(e){for(var r=0;r<e.length;++r)if(this.srcAlphabet.indexOf(e[r])===-1)return!1;return!0};var tO=Vl,nO=tO;function bo(e,r){var n=new nO(e,r);return function(o){return n.convert(o)}}bo.BIN="01";bo.OCT="01234567";bo.DEC="0123456789";bo.HEX="0123456789abcdef";var rO=bo;const{v4:Fu}=eO,ba=rO,Wu="123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",iO="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",oO={consistentLength:!0};let Hu;const gp=(e,r,n)=>{const o=r(e.toLowerCase().replace(/-/g,""));return!n||!n.consistentLength?o:o.padStart(n.shortIdLength,n.paddingChar)},aO=(e,r)=>{const o=r(e).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[o[1],o[2],o[3],o[4],o[5]].join("-")},sO=e=>Math.ceil(Math.log(2**128)/Math.log(e));var Jl=(()=>{const e=(r,n)=>{const o=r||Wu,a={...oO,...n};if([...new Set(Array.from(o))].length!==o.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const u=sO(o.length),l={shortIdLength:u,consistentLength:a.consistentLength,paddingChar:o[0]},f=ba(ba.HEX,o),d=ba(o,ba.HEX),v=()=>gp(Fu(),f,l),g={new:v,generate:v,uuid:Fu,fromUUID:_=>gp(_,f,l),toUUID:_=>aO(_,d),alphabet:o,maxLength:u};return Object.freeze(g),g};return e.constants={flickrBase58:Wu,cookieBase90:iO},e.uuid=Fu,e.generate=()=>(Hu||(Hu=e(Wu).generate),Hu()),e})();const uv=({depth:e,height:r=24,width:n=11,showLines:o=!0})=>{const a=`indent_line_${Jl.generate()}`;return $.jsxs("svg",{viewBox:`0 0 ${11*e} 24`,width:`${11*e}`,height:r,children:[$.jsx("defs",{children:$.jsx("pattern",{id:a,x:"0",y:"0",width:n,height:r,patternUnits:"userSpaceOnUse",children:$.jsx("line",{x1:n/2,y1:"0",x2:n/2,y2:r,stroke:"rgb(241, 245, 249)"})})}),o?$.jsx("rect",{fill:`url(#${a})`,x:"0",y:"0",width:`${11*e}`,height:r}):$.jsx("rect",{fill:o?`url(#${a})`:"",x:"0",y:"0",width:0,height:r})]})},lv=({show:e,expanded:r,onClick:n,variant:o="arrow"})=>e?$.jsx("div",{className:"flex h-6 w-5 items-center",onClick:a=>n&&n(a),children:(()=>{switch(o){case"arrow":return $.jsx(Pu,{className:Ot(["h-3 w-3 transform text-grey-50 transition ease-in-out",{"rotate-0":r,"-rotate-90":!r}])});case"caret":return r?$.jsx(Pu,{}):$.jsx(TE,{});default:return $.jsx(Pu,{className:"h-3 w-3 transform text-grey-50 transition ease-in-out"})}})()}):$.jsx("div",{className:"flex h-6 w-3 items-center"}),Zl=({node:e,depth:r,expandedKeys:n,selectedKeys:o,actions:a,searchQuery:u,renderNode:l,onNodeClick:f})=>{var m;const{key:d,children:v}=e,g=N.useMemo(()=>({expanded:n.includes(e.key),selected:o.includes(e.key)}),[n,e.key,o]),_=l&&typeof l=="function"?l(e,r,g,a,u):cO(e,r,g,f);return!((m=e.options)!=null&&m.filterable)||!u||e.title.toLowerCase().includes(u.toLowerCase())?$.jsxs($.Fragment,{children:[$.jsx("div",{className:"flex items-center space-x-2",children:_},d),lO(v||[],r,u,n,o,g.expanded,a,f,l)]}):null},uO=function(e,r){var l;const{title:n,icon:o,subtitle:a}=e;let u=null;return o&&(u=$.jsx(rv,{children:o})),$.jsxs("div",{className:"flex flex-1 select-none items-center overflow-hidden text-ellipsis whitespace-nowrap",draggable:(l=e.options)==null?void 0:l.draggable,onClick:()=>{r&&r(e)},children:[u,$.jsx("div",{style:{lineHeight:"24px",fontSize:11},children:n}),a&&$.jsx("div",{className:"mx-1 min-w-0 text-xxs italic text-fd-gray-mild",children:a})]})},lO=function(e,r,n,o,a,u,l,f,d){return e.length&&u?e.map(v=>$.jsx(Zl,{actions:l,node:v,searchQuery:n,depth:r+1,expandedKeys:o,selectedKeys:a,onNodeClick:f,renderNode:d},v.key)):null},cO=function(e,r,n,o){return $.jsxs($.Fragment,{children:[$.jsx(uv,{showLines:!0,depth:r}),$.jsx(lv,{show:e.children&&e.children.length>0||!1,expanded:n.expanded}),uO(e,o)]})},_a=e=>r=>e===r,fO=function({treeData:r,renderNode:n,onNodeClick:o,onExpandNode:a,searchQuery:u,expandedKeys:l,expandCondition:f="always",encapsulated:d}){const[v,g]=N.useState(()=>({expandedKeys:l||[],selectedKeys:[]}));N.useEffect(()=>{f==="when-collapsed"&&v.expandedKeys.length>0||g({...v,expandedKeys:l||v.expandedKeys})},[l]);const _=N.useCallback(E=>{if(!E)return;const D=v.expandedKeys.findIndex(_a(E.key));let I=[];D===-1?(I=[...v.expandedKeys,E.key],g(()=>({...v,expandedKeys:I})),a&&a(I)):(I=v.expandedKeys.filter(C=>C!==E.key),g(()=>({...v,expandedKeys:I})),a&&a(I))},[v]),O=N.useCallback(E=>{var I;if(!((I=E==null?void 0:E.options)!=null&&I.selectable))return;v.selectedKeys.findIndex(_a(E.key))===-1&&g({...v,selectedKeys:[...v.selectedKeys,E.key]})},[v]),m=N.useCallback(E=>{var I;if(!((I=E==null?void 0:E.options)!=null&&I.selectable))return;v.selectedKeys.findIndex(_a(E.key))===-1&&g({...v,selectedKeys:[E.key]})},[v]),S=N.useCallback(E=>{var I;if(!((I=E==null?void 0:E.options)!=null&&I.selectable)){g({...v,selectedKeys:[]});return}v.selectedKeys.findIndex(_a(E.key))!==-1&&g({...v,selectedKeys:v.selectedKeys.filter(C=>C!==E.key)})},[v]),y=N.useMemo(()=>({expand:_,select:O,selectSingle:m,deselect:S}),[S,_,O,m]);return $.jsx("div",{className:Ot("fd-tree",{"pl-2 mb-1 rounded border bg-grey-900 p-1":d}),children:r.map(E=>$.jsx(Zl,{node:E,searchQuery:u||"",depth:0,expandedKeys:v.expandedKeys,selectedKeys:v.selectedKeys,actions:y,renderNode:n,onNodeClick:o},E.key))})};function dO(e){return e.of&&e.children?$.jsx($.Fragment,{children:e.children}):null}function wt(){return wt=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},wt.apply(this,arguments)}function cv(e){var r=Object.create(null);return function(n){return r[n]===void 0&&(r[n]=e(n)),r[n]}}var pO=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,hO=cv(function(e){return pO.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),vO=!0;function mO(e,r,n){var o="";return n.split(" ").forEach(function(a){e[a]!==void 0?r.push(e[a]+";"):o+=a+" "}),o}var fv=function(r,n,o){var a=r.key+"-"+n.name;(o===!1||vO===!1)&&r.registered[a]===void 0&&(r.registered[a]=n.styles)},gO=function(r,n,o){fv(r,n,o);var a=r.key+"-"+n.name;if(r.inserted[n.name]===void 0){var u=n;do r.insert(n===u?"."+a:"",u,r.sheet,!0),u=u.next;while(u!==void 0)}};function yO(e){for(var r=0,n,o=0,a=e.length;a>=4;++o,a-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,r=(n&65535)*1540483477+((n>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(a){case 3:r^=(e.charCodeAt(o+2)&255)<<16;case 2:r^=(e.charCodeAt(o+1)&255)<<8;case 1:r^=e.charCodeAt(o)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var wO={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,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},yp=`You have illegal escape sequence in your template literal, most likely inside content's property value.
72
+ `,{_:S}));for(;typeof y[y.length-1]=="string"&&!y[y.length-1].trim();)y.pop();if(r.wrapper===null)return y;const E=r.wrapper||(S?"span":"div");let D;if(y.length>1||r.forceWrapper)D=y;else{if(y.length===1)return D=y[0],typeof D=="string"?o("span",{key:"outer"},D):D;D=null}return L.createElement(E,{key:"outer"},D)}function u(m){const S=m.match(ME);return S?S.reduce(function(y,E,D){const I=E.indexOf("=");if(I!==-1){const C=function(U){return U.indexOf("-")!==-1&&U.match(KE)===null&&(U=U.replace(JE,function(j,Z){return Z.toUpperCase()})),U}(E.slice(0,I)).trim(),k=function(U){const j=U[0];return(j==='"'||j==="'")&&U.length>=2&&U[U.length-1]===j?U.slice(1,-1):U}(E.slice(I+1).trim()),T=cp[C]||C,H=y[T]=function(U,j){return U==="style"?j.split(/;\s?/).reduce(function(Z,ee){const ge=ee.slice(0,ee.indexOf(":"));return Z[ge.replace(/(-[a-z])/g,Ce=>Ce[1].toUpperCase())]=ee.slice(ge.length+1).trim(),Z},{}):U==="href"?Si(j):(j.match(YE)&&(j=j.slice(1,j.length-1)),j==="true"||j!=="false"&&j)}(C,k);typeof H=="string"&&(bl.test(H)||_l.test(H))&&(y[T]=L.cloneElement(a(H.trim()),{key:D}))}else E!=="style"&&(y[cp[E]||E]=!0);return y},{}):null}const l=[],f={},d={blockQuote:{t:Qn(Hh),i:$e.HIGH,l:(m,S,y)=>({v:S(m[0].replace(NE,""),y)}),h:(m,S,y)=>o("blockquote",{key:y.k},S(m.v,y))},breakLine:{t:ro($E),i:$e.HIGH,l:Lu,h:(m,S,y)=>o("br",{key:y.k})},breakThematic:{t:Qn(jE),i:$e.HIGH,l:Lu,h:(m,S,y)=>o("hr",{key:y.k})},codeBlock:{t:Qn(Bh),i:$e.MAX,l:m=>({v:m[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),M:void 0}),h:(m,S,y)=>o("pre",{key:y.k},o("code",Kr({},m.O,{className:m.M?`lang-${m.M}`:""}),m.v))},codeFenced:{t:Qn(Uh),i:$e.MAX,l:m=>({O:u(m[3]||""),v:m[4],M:m[2]||void 0,type:"codeBlock"})},codeInline:{t:mr(FE),i:$e.LOW,l:m=>({v:m[2]}),h:(m,S,y)=>o("code",{key:y.k},m.v)},footnote:{t:Qn(UE),i:$e.MAX,l:m=>(l.push({I:m[2],j:m[1]}),{}),h:Mu},footnoteReference:{t:vr(BE),i:$e.HIGH,l:m=>({v:m[1],B:`#${r.slugify(m[1])}`}),h:(m,S,y)=>o("a",{key:y.k,href:Si(m.B)},o("sup",{key:y.k},m.v))},gfmTask:{t:vr(qE),i:$e.HIGH,l:m=>({R:m[1].toLowerCase()==="x"}),h:(m,S,y)=>o("input",{checked:m.R,key:y.k,readOnly:!0,type:"checkbox"})},heading:{t:Qn(r.enforceAtxHeadings?qh:zh),i:$e.HIGH,l:(m,S,y)=>({v:Fa(S,m[2],y),T:r.slugify(m[2]),C:m[1].length}),h:(m,S,y)=>o(`h${m.C}`,{id:m.T,key:y.k},S(m.v,y))},headingSetext:{t:Qn(Gh),i:$e.MAX,l:(m,S,y)=>({v:Fa(S,m[1],y),C:m[2]==="="?1:2,type:"heading"})},htmlComment:{t:ro(Kh),i:$e.HIGH,l:()=>({}),h:Mu},image:{t:mr(xx),i:$e.HIGH,l:m=>({D:m[1],B:mp(m[2]),F:m[3]}),h:(m,S,y)=>o("img",{key:y.k,alt:m.D||void 0,title:m.F||void 0,src:Si(m.B)})},link:{t:vr(Ex),i:$e.LOW,l:(m,S,y)=>({v:Ax(S,m[1],y),B:mp(m[2]),F:m[3]}),h:(m,S,y)=>o("a",{key:y.k,href:Si(m.B),title:m.F},S(m.v,y))},linkAngleBraceStyleDetector:{t:vr(ZE),i:$e.MAX,l:m=>({v:[{v:m[1],type:"text"}],B:m[1],type:"link"})},linkBareUrlDetector:{t:(m,S)=>S.N?null:vr(XE)(m,S),i:$e.MAX,l:m=>({v:[{v:m[1],type:"text"}],B:m[1],F:void 0,type:"link"})},linkMailtoDetector:{t:vr(VE),i:$e.MAX,l(m){let S=m[1],y=m[1];return DE.test(y)||(y="mailto:"+y),{v:[{v:S.replace("mailto:",""),type:"text"}],B:y,type:"link"}}},orderedList:pp(o,1),unorderedList:pp(o,2),newlineCoalescer:{t:Qn(WE),i:$e.LOW,l:Lu,h:()=>`
73
+ `},paragraph:{t:Px,i:$e.LOW,l:Iu,h:(m,S,y)=>o("p",{key:y.k},S(m.v,y))},ref:{t:vr(QE),i:$e.MAX,l:m=>(f[m[1]]={B:m[2],F:m[4]},{}),h:Mu},refImage:{t:mr(ex),i:$e.MAX,l:m=>({D:m[1]||void 0,P:m[2]}),h:(m,S,y)=>o("img",{key:y.k,alt:m.D,src:Si(f[m.P].B),title:f[m.P].F})},refLink:{t:vr(tx),i:$e.MAX,l:(m,S,y)=>({v:S(m[1],y),Z:S(m[0].replace(nx,"\\$1"),y),P:m[2]}),h:(m,S,y)=>f[m.P]?o("a",{key:y.k,href:Si(f[m.P].B),title:f[m.P].F},S(m.v,y)):o("span",{key:y.k},S(m.Z,y))},table:{t:Qn(Yh),i:$e.HIGH,l:Rx,h:(m,S,y)=>o("table",{key:y.k},o("thead",null,o("tr",null,m.L.map(function(E,D){return o("th",{key:D,style:vp(m,D)},S(E,y))}))),o("tbody",null,m.A.map(function(E,D){return o("tr",{key:D},E.map(function(I,C){return o("td",{key:C,style:vp(m,C)},S(I,y))}))})))},tableSeparator:{t:function(m,S){return S.$?(S._=!0,ox.exec(m)):null},i:$e.HIGH,l:function(){return{type:"tableSeparator"}},h:()=>" | "},text:{t:ro(mx),i:$e.MIN,l:m=>({v:m[0].replace(GE,(S,y)=>r.namedCodesToUnicode[y]?r.namedCodesToUnicode[y]:S)}),h:m=>m.v},textBolded:{t:mr(fx),i:$e.MED,l:(m,S,y)=>({v:S(m[2],y)}),h:(m,S,y)=>o("strong",{key:y.k},S(m.v,y))},textEmphasized:{t:mr(dx),i:$e.LOW,l:(m,S,y)=>({v:S(m[2],y)}),h:(m,S,y)=>o("em",{key:y.k},S(m.v,y))},textEscaped:{t:mr(vx),i:$e.HIGH,l:m=>({v:m[1],type:"text"})},textMarked:{t:mr(px),i:$e.LOW,l:Iu,h:(m,S,y)=>o("mark",{key:y.k},S(m.v,y))},textStrikethroughed:{t:mr(hx),i:$e.LOW,l:Iu,h:(m,S,y)=>o("del",{key:y.k},S(m.v,y))}};r.disableParsingRawHTML!==!0&&(d.htmlBlock={t:ro(bl),i:$e.HIGH,l(m,S,y){const[,E]=m[3].match(yx),D=new RegExp(`^${E}`,"gm"),I=m[3].replace(D,""),C=(k=I,Ox.some(j=>j.test(k))?Ix:Fa);var k;const T=m[1].toLowerCase(),H=LE.indexOf(T)!==-1;y.N=y.N||T==="a";const U=H?m[3]:C(S,I,y);return y.N=!1,{O:u(m[2]),v:U,G:H,H:H?T:m[1]}},h:(m,S,y)=>o(m.H,Kr({key:y.k},m.O),m.G?m.v:S(m.v,y))},d.htmlSelfClosing={t:ro(_l),i:$e.HIGH,l:m=>({O:u(m[2]||""),H:m[1]}),h:(m,S,y)=>o(m.H,Kr({},m.O,{key:y.k}))});const v=function(m){let S=Object.keys(m);function y(E,D){let I=[],C="";for(;E;){let k=0;for(;k<S.length;){const T=S[k],H=m[T],U=H.t(E,D,C);if(U){const j=U[0];E=E.substring(j.length);const Z=H.l(U,y,D);Z.type==null&&(Z.type=T),I.push(Z),C=j;break}k++}}return I}return S.sort(function(E,D){let I=m[E].i,C=m[D].i;return I!==C?I-C:E<D?-1:1}),function(E,D){return y(function(I){return I.replace(HE,`
74
+ `).replace(zE,"").replace(ix," ")}(E),D)}}(d),g=(_=function(m){return function(S,y,E){return m[S.type].h(S,y,E)}}(d),function m(S,y={}){if(Array.isArray(S)){const E=y.k,D=[];let I=!1;for(let C=0;C<S.length;C++){y.k=C;const k=m(S[C],y),T=typeof k=="string";T&&I?D[D.length-1]+=k:k!==null&&D.push(k),I=T}return y.k=E,D}return _(S,m,y)});var _;const O=a(e);return l.length?o("div",null,O,o("footer",{key:"footer"},l.map(function(m){return o("div",{id:r.slugify(m.j),key:m.j},m.j,g(v(m.I,{_:!0})))}))):O}(function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"})($e||($e={}));const qa=e=>{let{children:r,options:n}=e,o=function(a,u){if(a==null)return{};var l,f,d={},v=Object.keys(a);for(f=0;f<v.length;f++)u.indexOf(l=v[f])>=0||(d[l]=a[l]);return d}(e,IE);return L.cloneElement(Mx(r,n),o)},gp=({kind:e,customIcon:r})=>{if(r)return $.jsx(r,{className:"mr-1 h-6 w-6 flex-none"});switch(e){case"error":case"danger":return $.jsx(PE,{className:"flex-none h-6 w-6"});case"info":return $.jsx($.Fragment,{children:$.jsx(wl,{className:"flex-none h-6 w-6"})});case"warning":return $.jsx($.Fragment,{children:$.jsx(Yl,{className:"flex-none h-6 w-6"})});case"message":return $.jsx($.Fragment,{children:$.jsx(wl,{className:"flex-none h-6 w-6"})});default:return null}},Dx=({id:e,onClose:r,kind:n,message:o,markdown:a,customIcon:u})=>{const l=({className:f}={})=>$.jsx("button",{onClick:r,className:Ot("flex items-center justify-center p-1",f),children:$.jsx(TE,{className:"h-5 w-5 font-thin stroke-current"})});return $.jsx("div",{className:Ot("relative flex items-center rounded-lg py-2 px-4 font-semibold",{"bg-yellow-100 text-yellow-400":n==="warning","bg-red-200 text-red-500":n==="danger"||n==="error","bg-primary-light text-primary":n==="info","bg-green-200 text-green-500":n==="message"}),children:typeof o=="string"?$.jsxs("div",{className:"w-full flex items-center justify-between gap-x-3",children:[$.jsxs("div",{className:"flex items-center gap-1",children:[$.jsx(gp,{kind:n,customIcon:u}),a?$.jsx(qa,{children:o}):$.jsx($.Fragment,{children:o})]}),l()]}):$.jsxs("div",{className:"flex items-start",children:[$.jsx("div",{className:"flex flex-col gap-2 justify-between",children:o.filter(f=>f.messages.length>0).map(f=>$.jsxs($.Fragment,{children:[$.jsxs("span",{className:"flex items-center gap-1 font-bold capitalize",children:[$.jsx(gp,{kind:n,customIcon:u}),$.jsxs("span",{children:[f.title," :"]})]}),$.jsx("ul",{className:"list-disc px-12",children:f.messages.map(d=>$.jsx("li",{children:a?$.jsx(qa,{children:d}):$.jsx($.Fragment,{children:d})}))})]}))}),l({className:"absolute top-1 right-1"})]})},e)},av=({children:e,size:r,className:n,...o})=>$.jsx("div",{style:{"--width":`${r||24}px`},className:Ot("h-6 flex items-center pr-1 w-[--width]",n),...o,children:e});var ba,kx=new Uint8Array(16);function sv(){if(!ba&&(ba=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!ba))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ba(kx)}const Nx=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function ns(e){return typeof e=="string"&&Nx.test(e)}var Et=[];for(var ku=0;ku<256;++ku)Et.push((ku+256).toString(16).substr(1));function rs(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(Et[e[r+0]]+Et[e[r+1]]+Et[e[r+2]]+Et[e[r+3]]+"-"+Et[e[r+4]]+Et[e[r+5]]+"-"+Et[e[r+6]]+Et[e[r+7]]+"-"+Et[e[r+8]]+Et[e[r+9]]+"-"+Et[e[r+10]]+Et[e[r+11]]+Et[e[r+12]]+Et[e[r+13]]+Et[e[r+14]]+Et[e[r+15]]).toLowerCase();if(!ns(n))throw TypeError("Stringified UUID is invalid");return n}var yp,Nu,$u=0,ju=0;function $x(e,r,n){var o=r&&n||0,a=r||new Array(16);e=e||{};var u=e.node||yp,l=e.clockseq!==void 0?e.clockseq:Nu;if(u==null||l==null){var f=e.random||(e.rng||sv)();u==null&&(u=yp=[f[0]|1,f[1],f[2],f[3],f[4],f[5]]),l==null&&(l=Nu=(f[6]<<8|f[7])&16383)}var d=e.msecs!==void 0?e.msecs:Date.now(),v=e.nsecs!==void 0?e.nsecs:ju+1,g=d-$u+(v-ju)/1e4;if(g<0&&e.clockseq===void 0&&(l=l+1&16383),(g<0||d>$u)&&e.nsecs===void 0&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");$u=d,ju=v,Nu=l,d+=122192928e5;var _=((d&268435455)*1e4+v)%4294967296;a[o++]=_>>>24&255,a[o++]=_>>>16&255,a[o++]=_>>>8&255,a[o++]=_&255;var O=d/4294967296*1e4&268435455;a[o++]=O>>>8&255,a[o++]=O&255,a[o++]=O>>>24&15|16,a[o++]=O>>>16&255,a[o++]=l>>>8|128,a[o++]=l&255;for(var m=0;m<6;++m)a[o+m]=u[m];return r||rs(a)}function uv(e){if(!ns(e))throw TypeError("Invalid UUID");var r,n=new Uint8Array(16);return n[0]=(r=parseInt(e.slice(0,8),16))>>>24,n[1]=r>>>16&255,n[2]=r>>>8&255,n[3]=r&255,n[4]=(r=parseInt(e.slice(9,13),16))>>>8,n[5]=r&255,n[6]=(r=parseInt(e.slice(14,18),16))>>>8,n[7]=r&255,n[8]=(r=parseInt(e.slice(19,23),16))>>>8,n[9]=r&255,n[10]=(r=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=r/4294967296&255,n[12]=r>>>24&255,n[13]=r>>>16&255,n[14]=r>>>8&255,n[15]=r&255,n}function jx(e){e=unescape(encodeURIComponent(e));for(var r=[],n=0;n<e.length;++n)r.push(e.charCodeAt(n));return r}var Fx="6ba7b810-9dad-11d1-80b4-00c04fd430c8",Wx="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function lv(e,r,n){function o(a,u,l,f){if(typeof a=="string"&&(a=jx(a)),typeof u=="string"&&(u=uv(u)),u.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var d=new Uint8Array(16+a.length);if(d.set(u),d.set(a,u.length),d=n(d),d[6]=d[6]&15|r,d[8]=d[8]&63|128,l){f=f||0;for(var v=0;v<16;++v)l[f+v]=d[v];return l}return rs(d)}try{o.name=e}catch{}return o.DNS=Fx,o.URL=Wx,o}function Hx(e){if(typeof e=="string"){var r=unescape(encodeURIComponent(e));e=new Uint8Array(r.length);for(var n=0;n<r.length;++n)e[n]=r.charCodeAt(n)}return Ux(Bx(zx(e),e.length*8))}function Ux(e){for(var r=[],n=e.length*32,o="0123456789abcdef",a=0;a<n;a+=8){var u=e[a>>5]>>>a%32&255,l=parseInt(o.charAt(u>>>4&15)+o.charAt(u&15),16);r.push(l)}return r}function cv(e){return(e+64>>>9<<4)+14+1}function Bx(e,r){e[r>>5]|=128<<r%32,e[cv(r)-1]=r;for(var n=1732584193,o=-271733879,a=-1732584194,u=271733878,l=0;l<e.length;l+=16){var f=n,d=o,v=a,g=u;n=Pt(n,o,a,u,e[l],7,-680876936),u=Pt(u,n,o,a,e[l+1],12,-389564586),a=Pt(a,u,n,o,e[l+2],17,606105819),o=Pt(o,a,u,n,e[l+3],22,-1044525330),n=Pt(n,o,a,u,e[l+4],7,-176418897),u=Pt(u,n,o,a,e[l+5],12,1200080426),a=Pt(a,u,n,o,e[l+6],17,-1473231341),o=Pt(o,a,u,n,e[l+7],22,-45705983),n=Pt(n,o,a,u,e[l+8],7,1770035416),u=Pt(u,n,o,a,e[l+9],12,-1958414417),a=Pt(a,u,n,o,e[l+10],17,-42063),o=Pt(o,a,u,n,e[l+11],22,-1990404162),n=Pt(n,o,a,u,e[l+12],7,1804603682),u=Pt(u,n,o,a,e[l+13],12,-40341101),a=Pt(a,u,n,o,e[l+14],17,-1502002290),o=Pt(o,a,u,n,e[l+15],22,1236535329),n=At(n,o,a,u,e[l+1],5,-165796510),u=At(u,n,o,a,e[l+6],9,-1069501632),a=At(a,u,n,o,e[l+11],14,643717713),o=At(o,a,u,n,e[l],20,-373897302),n=At(n,o,a,u,e[l+5],5,-701558691),u=At(u,n,o,a,e[l+10],9,38016083),a=At(a,u,n,o,e[l+15],14,-660478335),o=At(o,a,u,n,e[l+4],20,-405537848),n=At(n,o,a,u,e[l+9],5,568446438),u=At(u,n,o,a,e[l+14],9,-1019803690),a=At(a,u,n,o,e[l+3],14,-187363961),o=At(o,a,u,n,e[l+8],20,1163531501),n=At(n,o,a,u,e[l+13],5,-1444681467),u=At(u,n,o,a,e[l+2],9,-51403784),a=At(a,u,n,o,e[l+7],14,1735328473),o=At(o,a,u,n,e[l+12],20,-1926607734),n=It(n,o,a,u,e[l+5],4,-378558),u=It(u,n,o,a,e[l+8],11,-2022574463),a=It(a,u,n,o,e[l+11],16,1839030562),o=It(o,a,u,n,e[l+14],23,-35309556),n=It(n,o,a,u,e[l+1],4,-1530992060),u=It(u,n,o,a,e[l+4],11,1272893353),a=It(a,u,n,o,e[l+7],16,-155497632),o=It(o,a,u,n,e[l+10],23,-1094730640),n=It(n,o,a,u,e[l+13],4,681279174),u=It(u,n,o,a,e[l],11,-358537222),a=It(a,u,n,o,e[l+3],16,-722521979),o=It(o,a,u,n,e[l+6],23,76029189),n=It(n,o,a,u,e[l+9],4,-640364487),u=It(u,n,o,a,e[l+12],11,-421815835),a=It(a,u,n,o,e[l+15],16,530742520),o=It(o,a,u,n,e[l+2],23,-995338651),n=Lt(n,o,a,u,e[l],6,-198630844),u=Lt(u,n,o,a,e[l+7],10,1126891415),a=Lt(a,u,n,o,e[l+14],15,-1416354905),o=Lt(o,a,u,n,e[l+5],21,-57434055),n=Lt(n,o,a,u,e[l+12],6,1700485571),u=Lt(u,n,o,a,e[l+3],10,-1894986606),a=Lt(a,u,n,o,e[l+10],15,-1051523),o=Lt(o,a,u,n,e[l+1],21,-2054922799),n=Lt(n,o,a,u,e[l+8],6,1873313359),u=Lt(u,n,o,a,e[l+15],10,-30611744),a=Lt(a,u,n,o,e[l+6],15,-1560198380),o=Lt(o,a,u,n,e[l+13],21,1309151649),n=Lt(n,o,a,u,e[l+4],6,-145523070),u=Lt(u,n,o,a,e[l+11],10,-1120210379),a=Lt(a,u,n,o,e[l+2],15,718787259),o=Lt(o,a,u,n,e[l+9],21,-343485551),n=wr(n,f),o=wr(o,d),a=wr(a,v),u=wr(u,g)}return[n,o,a,u]}function zx(e){if(e.length===0)return[];for(var r=e.length*8,n=new Uint32Array(cv(r)),o=0;o<r;o+=8)n[o>>5]|=(e[o/8]&255)<<o%32;return n}function wr(e,r){var n=(e&65535)+(r&65535),o=(e>>16)+(r>>16)+(n>>16);return o<<16|n&65535}function qx(e,r){return e<<r|e>>>32-r}function is(e,r,n,o,a,u){return wr(qx(wr(wr(r,e),wr(o,u)),a),n)}function Pt(e,r,n,o,a,u,l){return is(r&n|~r&o,e,r,a,u,l)}function At(e,r,n,o,a,u,l){return is(r&o|n&~o,e,r,a,u,l)}function It(e,r,n,o,a,u,l){return is(r^n^o,e,r,a,u,l)}function Lt(e,r,n,o,a,u,l){return is(n^(r|~o),e,r,a,u,l)}var Gx=lv("v3",48,Hx);const Kx=Gx;function Yx(e,r,n){e=e||{};var o=e.random||(e.rng||sv)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,r){n=n||0;for(var a=0;a<16;++a)r[n+a]=o[a];return r}return rs(o)}function Xx(e,r,n,o){switch(e){case 0:return r&n^~r&o;case 1:return r^n^o;case 2:return r&n^r&o^n&o;case 3:return r^n^o}}function Fu(e,r){return e<<r|e>>>32-r}function Vx(e){var r=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){var o=unescape(encodeURIComponent(e));e=[];for(var a=0;a<o.length;++a)e.push(o.charCodeAt(a))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var u=e.length/4+2,l=Math.ceil(u/16),f=new Array(l),d=0;d<l;++d){for(var v=new Uint32Array(16),g=0;g<16;++g)v[g]=e[d*64+g*4]<<24|e[d*64+g*4+1]<<16|e[d*64+g*4+2]<<8|e[d*64+g*4+3];f[d]=v}f[l-1][14]=(e.length-1)*8/Math.pow(2,32),f[l-1][14]=Math.floor(f[l-1][14]),f[l-1][15]=(e.length-1)*8&4294967295;for(var _=0;_<l;++_){for(var O=new Uint32Array(80),m=0;m<16;++m)O[m]=f[_][m];for(var S=16;S<80;++S)O[S]=Fu(O[S-3]^O[S-8]^O[S-14]^O[S-16],1);for(var y=n[0],E=n[1],D=n[2],I=n[3],C=n[4],k=0;k<80;++k){var T=Math.floor(k/20),H=Fu(y,5)+Xx(T,E,D,I)+C+r[T]+O[k]>>>0;C=I,I=D,D=Fu(E,30)>>>0,E=y,y=H}n[0]=n[0]+y>>>0,n[1]=n[1]+E>>>0,n[2]=n[2]+D>>>0,n[3]=n[3]+I>>>0,n[4]=n[4]+C>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,n[0]&255,n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,n[1]&255,n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,n[2]&255,n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,n[3]&255,n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,n[4]&255]}var Zx=lv("v5",80,Vx);const Jx=Zx,Qx="00000000-0000-0000-0000-000000000000";function eO(e){if(!ns(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const tO=Object.freeze(Object.defineProperty({__proto__:null,NIL:Qx,parse:uv,stringify:rs,v1:$x,v3:Kx,v4:Yx,v5:Jx,validate:ns,version:eO},Symbol.toStringTag,{value:"Module"})),nO=aS(tO);function Zl(e,r){if(!e||!r||!e.length||!r.length)throw new Error("Bad alphabet");this.srcAlphabet=e,this.dstAlphabet=r}Zl.prototype.convert=function(e){var r,n,o,a={},u=this.srcAlphabet.length,l=this.dstAlphabet.length,f=e.length,d=typeof e=="string"?"":[];if(!this.isValid(e))throw new Error('Number "'+e+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return e;for(r=0;r<f;r++)a[r]=this.srcAlphabet.indexOf(e[r]);do{for(n=0,o=0,r=0;r<f;r++)n=n*u+a[r],n>=l?(a[o++]=parseInt(n/l,10),n=n%l):o>0&&(a[o++]=0);f=o,d=this.dstAlphabet.slice(n,n+1).concat(d)}while(o!==0);return d};Zl.prototype.isValid=function(e){for(var r=0;r<e.length;++r)if(this.srcAlphabet.indexOf(e[r])===-1)return!1;return!0};var rO=Zl,iO=rO;function _o(e,r){var n=new iO(e,r);return function(o){return n.convert(o)}}_o.BIN="01";_o.OCT="01234567";_o.DEC="0123456789";_o.HEX="0123456789abcdef";var oO=_o;const{v4:Wu}=nO,_a=oO,Hu="123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",aO="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",sO={consistentLength:!0};let Uu;const wp=(e,r,n)=>{const o=r(e.toLowerCase().replace(/-/g,""));return!n||!n.consistentLength?o:o.padStart(n.shortIdLength,n.paddingChar)},uO=(e,r)=>{const o=r(e).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[o[1],o[2],o[3],o[4],o[5]].join("-")},lO=e=>Math.ceil(Math.log(2**128)/Math.log(e));var Jl=(()=>{const e=(r,n)=>{const o=r||Hu,a={...sO,...n};if([...new Set(Array.from(o))].length!==o.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const u=lO(o.length),l={shortIdLength:u,consistentLength:a.consistentLength,paddingChar:o[0]},f=_a(_a.HEX,o),d=_a(o,_a.HEX),v=()=>wp(Wu(),f,l),g={new:v,generate:v,uuid:Wu,fromUUID:_=>wp(_,f,l),toUUID:_=>uO(_,d),alphabet:o,maxLength:u};return Object.freeze(g),g};return e.constants={flickrBase58:Hu,cookieBase90:aO},e.uuid=Wu,e.generate=()=>(Uu||(Uu=e(Hu).generate),Uu()),e})();const fv=({depth:e,height:r=24,width:n=11,showLines:o=!0})=>{const a=`indent_line_${Jl.generate()}`;return $.jsxs("svg",{viewBox:`0 0 ${11*e} 24`,width:`${11*e}`,height:r,children:[$.jsx("defs",{children:$.jsx("pattern",{id:a,x:"0",y:"0",width:n,height:r,patternUnits:"userSpaceOnUse",children:$.jsx("line",{x1:n/2,y1:"0",x2:n/2,y2:r,stroke:"rgb(241, 245, 249)"})})}),o?$.jsx("rect",{fill:`url(#${a})`,x:"0",y:"0",width:`${11*e}`,height:r}):$.jsx("rect",{fill:o?`url(#${a})`:"",x:"0",y:"0",width:0,height:r})]})},dv=({show:e,expanded:r,onClick:n,variant:o="arrow"})=>e?$.jsx("div",{className:"flex h-6 w-5 items-center",onClick:a=>n&&n(a),children:(()=>{switch(o){case"arrow":return $.jsx(Au,{className:Ot(["h-3 w-3 transform text-grey-50 transition ease-in-out",{"rotate-0":r,"-rotate-90":!r}])});case"caret":return r?$.jsx(Au,{}):$.jsx(RE,{});default:return $.jsx(Au,{className:"h-3 w-3 transform text-grey-50 transition ease-in-out"})}})()}):$.jsx("div",{className:"flex h-6 w-3 items-center"}),Ql=({node:e,depth:r,expandedKeys:n,selectedKeys:o,actions:a,searchQuery:u,renderNode:l,onNodeClick:f})=>{var m;const{key:d,children:v}=e,g=N.useMemo(()=>({expanded:n.includes(e.key),selected:o.includes(e.key)}),[n,e.key,o]),_=l&&typeof l=="function"?l(e,r,g,a,u):dO(e,r,g,f);return!((m=e.options)!=null&&m.filterable)||!u||e.title.toLowerCase().includes(u.toLowerCase())?$.jsxs($.Fragment,{children:[$.jsx("div",{className:"flex items-center space-x-2",children:_},d),fO(v||[],r,u,n,o,g.expanded,a,f,l)]}):null},cO=function(e,r){var l;const{title:n,icon:o,subtitle:a}=e;let u=null;return o&&(u=$.jsx(av,{children:o})),$.jsxs("div",{className:"flex flex-1 select-none items-center overflow-hidden text-ellipsis whitespace-nowrap",draggable:(l=e.options)==null?void 0:l.draggable,onClick:()=>{r&&r(e)},children:[u,$.jsx("div",{style:{lineHeight:"24px",fontSize:11},children:n}),a&&$.jsx("div",{className:"mx-1 min-w-0 text-xxs italic text-fd-gray-mild",children:a})]})},fO=function(e,r,n,o,a,u,l,f,d){return e.length&&u?e.map(v=>$.jsx(Ql,{actions:l,node:v,searchQuery:n,depth:r+1,expandedKeys:o,selectedKeys:a,onNodeClick:f,renderNode:d},v.key)):null},dO=function(e,r,n,o){return $.jsxs($.Fragment,{children:[$.jsx(fv,{showLines:!0,depth:r}),$.jsx(dv,{show:e.children&&e.children.length>0||!1,expanded:n.expanded}),cO(e,o)]})},Sa=e=>r=>e===r,pO=function({treeData:r,renderNode:n,onNodeClick:o,onExpandNode:a,searchQuery:u,expandedKeys:l,expandCondition:f="always",encapsulated:d}){const[v,g]=N.useState(()=>({expandedKeys:l||[],selectedKeys:[]}));N.useEffect(()=>{f==="when-collapsed"&&v.expandedKeys.length>0||g({...v,expandedKeys:l||v.expandedKeys})},[l]);const _=N.useCallback(E=>{if(!E)return;const D=v.expandedKeys.findIndex(Sa(E.key));let I=[];D===-1?(I=[...v.expandedKeys,E.key],g(()=>({...v,expandedKeys:I})),a&&a(I)):(I=v.expandedKeys.filter(C=>C!==E.key),g(()=>({...v,expandedKeys:I})),a&&a(I))},[v]),O=N.useCallback(E=>{var I;if(!((I=E==null?void 0:E.options)!=null&&I.selectable))return;v.selectedKeys.findIndex(Sa(E.key))===-1&&g({...v,selectedKeys:[...v.selectedKeys,E.key]})},[v]),m=N.useCallback(E=>{var I;if(!((I=E==null?void 0:E.options)!=null&&I.selectable))return;v.selectedKeys.findIndex(Sa(E.key))===-1&&g({...v,selectedKeys:[E.key]})},[v]),S=N.useCallback(E=>{var I;if(!((I=E==null?void 0:E.options)!=null&&I.selectable)){g({...v,selectedKeys:[]});return}v.selectedKeys.findIndex(Sa(E.key))!==-1&&g({...v,selectedKeys:v.selectedKeys.filter(C=>C!==E.key)})},[v]),y=N.useMemo(()=>({expand:_,select:O,selectSingle:m,deselect:S}),[S,_,O,m]);return $.jsx("div",{className:Ot("fd-tree",{"pl-2 mb-1 rounded border bg-grey-900 p-1":d}),children:r.map(E=>$.jsx(Ql,{node:E,searchQuery:u||"",depth:0,expandedKeys:v.expandedKeys,selectedKeys:v.selectedKeys,actions:y,renderNode:n,onNodeClick:o},E.key))})};function hO(e){return e.of&&e.children?$.jsx($.Fragment,{children:e.children}):null}function wt(){return wt=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},wt.apply(this,arguments)}function pv(e){var r=Object.create(null);return function(n){return r[n]===void 0&&(r[n]=e(n)),r[n]}}var vO=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,mO=pv(function(e){return vO.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),gO=!0;function yO(e,r,n){var o="";return n.split(" ").forEach(function(a){e[a]!==void 0?r.push(e[a]+";"):o+=a+" "}),o}var hv=function(r,n,o){var a=r.key+"-"+n.name;(o===!1||gO===!1)&&r.registered[a]===void 0&&(r.registered[a]=n.styles)},wO=function(r,n,o){hv(r,n,o);var a=r.key+"-"+n.name;if(r.inserted[n.name]===void 0){var u=n;do r.insert(n===u?"."+a:"",u,r.sheet,!0),u=u.next;while(u!==void 0)}};function bO(e){for(var r=0,n,o=0,a=e.length;a>=4;++o,a-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,r=(n&65535)*1540483477+((n>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(a){case 3:r^=(e.charCodeAt(o+2)&255)<<16;case 2:r^=(e.charCodeAt(o+1)&255)<<8;case 1:r^=e.charCodeAt(o)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var _O={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,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},bp=`You have illegal escape sequence in your template literal, most likely inside content's property value.
75
75
  Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
76
76
  You can read more about this here:
77
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,bO="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",_O=/[A-Z]|^ms/g,dv=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ql=function(r){return r.charCodeAt(1)===45},wp=function(r){return r!=null&&typeof r!="boolean"},Uu=cv(function(e){return Ql(e)?e:e.replace(_O,"-$&").toLowerCase()}),qa=function(r,n){switch(r){case"animation":case"animationName":if(typeof n=="string")return n.replace(dv,function(o,a,u){return Rn={name:a,styles:u,next:Rn},a})}return wO[r]!==1&&!Ql(r)&&typeof n=="number"&&n!==0?n+"px":n};if(process.env.NODE_ENV!=="production"){var SO=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,EO=["normal","none","initial","inherit","unset"],xO=qa,OO=/^-ms-/,TO=/-(.)/g,bp={};qa=function(r,n){if(r==="content"&&(typeof n!="string"||EO.indexOf(n)===-1&&!SO.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+n+"\"'`");var o=xO(r,n);return o!==""&&!Ql(r)&&r.indexOf("-")!==-1&&bp[r]===void 0&&(bp[r]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+r.replace(OO,"ms-").replace(TO,function(a,u){return u.toUpperCase()})+"?")),o}}var pv="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function co(e,r,n){if(n==null)return"";if(n.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&n.toString()==="NO_COMPONENT_SELECTOR")throw new Error(pv);return n}switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Rn={name:n.name,styles:n.styles,next:Rn},n.name;if(n.styles!==void 0){var o=n.next;if(o!==void 0)for(;o!==void 0;)Rn={name:o.name,styles:o.styles,next:Rn},o=o.next;var a=n.styles+";";return process.env.NODE_ENV!=="production"&&n.map!==void 0&&(a+=n.map),a}return CO(e,r,n)}case"function":{if(e!==void 0){var u=Rn,l=n(e);return Rn=u,co(e,r,l)}else process.env.NODE_ENV!=="production"&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":if(process.env.NODE_ENV!=="production"){var f=[],d=n.replace(dv,function(g,_,O){var m="animation"+f.length;return f.push("const "+m+" = keyframes`"+O.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+m+"}"});f.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(f,["`"+d+"`"]).join(`
77
+ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,SO="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",EO=/[A-Z]|^ms/g,vv=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ec=function(r){return r.charCodeAt(1)===45},_p=function(r){return r!=null&&typeof r!="boolean"},Bu=pv(function(e){return ec(e)?e:e.replace(EO,"-$&").toLowerCase()}),Ga=function(r,n){switch(r){case"animation":case"animationName":if(typeof n=="string")return n.replace(vv,function(o,a,u){return Rn={name:a,styles:u,next:Rn},a})}return _O[r]!==1&&!ec(r)&&typeof n=="number"&&n!==0?n+"px":n};if(process.env.NODE_ENV!=="production"){var xO=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,OO=["normal","none","initial","inherit","unset"],TO=Ga,CO=/^-ms-/,RO=/-(.)/g,Sp={};Ga=function(r,n){if(r==="content"&&(typeof n!="string"||OO.indexOf(n)===-1&&!xO.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+n+"\"'`");var o=TO(r,n);return o!==""&&!ec(r)&&r.indexOf("-")!==-1&&Sp[r]===void 0&&(Sp[r]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+r.replace(CO,"ms-").replace(RO,function(a,u){return u.toUpperCase()})+"?")),o}}var mv="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function fo(e,r,n){if(n==null)return"";if(n.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&n.toString()==="NO_COMPONENT_SELECTOR")throw new Error(mv);return n}switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Rn={name:n.name,styles:n.styles,next:Rn},n.name;if(n.styles!==void 0){var o=n.next;if(o!==void 0)for(;o!==void 0;)Rn={name:o.name,styles:o.styles,next:Rn},o=o.next;var a=n.styles+";";return process.env.NODE_ENV!=="production"&&n.map!==void 0&&(a+=n.map),a}return PO(e,r,n)}case"function":{if(e!==void 0){var u=Rn,l=n(e);return Rn=u,fo(e,r,l)}else process.env.NODE_ENV!=="production"&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":if(process.env.NODE_ENV!=="production"){var f=[],d=n.replace(vv,function(g,_,O){var m="animation"+f.length;return f.push("const "+m+" = keyframes`"+O.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+m+"}"});f.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(f,["`"+d+"`"]).join(`
78
78
  `)+`
79
79
 
80
80
  You should wrap it with \`css\` like this:
81
81
 
82
- `+("css`"+d+"`"))}break}if(r==null)return n;var v=r[n];return v!==void 0?v:n}function CO(e,r,n){var o="";if(Array.isArray(n))for(var a=0;a<n.length;a++)o+=co(e,r,n[a])+";";else for(var u in n){var l=n[u];if(typeof l!="object")r!=null&&r[l]!==void 0?o+=u+"{"+r[l]+"}":wp(l)&&(o+=Uu(u)+":"+qa(u,l)+";");else{if(u==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(pv);if(Array.isArray(l)&&typeof l[0]=="string"&&(r==null||r[l[0]]===void 0))for(var f=0;f<l.length;f++)wp(l[f])&&(o+=Uu(u)+":"+qa(u,l[f])+";");else{var d=co(e,r,l);switch(u){case"animation":case"animationName":{o+=Uu(u)+":"+d+";";break}default:process.env.NODE_ENV!=="production"&&u==="undefined"&&console.error(bO),o+=u+"{"+d+"}"}}}}return o}var _p=/label:\s*([^\s;\n{]+)\s*(;|$)/g,hv;process.env.NODE_ENV!=="production"&&(hv=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var Rn,RO=function(r,n,o){if(r.length===1&&typeof r[0]=="object"&&r[0]!==null&&r[0].styles!==void 0)return r[0];var a=!0,u="";Rn=void 0;var l=r[0];l==null||l.raw===void 0?(a=!1,u+=co(o,n,l)):(process.env.NODE_ENV!=="production"&&l[0]===void 0&&console.error(yp),u+=l[0]);for(var f=1;f<r.length;f++)u+=co(o,n,r[f]),a&&(process.env.NODE_ENV!=="production"&&l[f]===void 0&&console.error(yp),u+=l[f]);var d;process.env.NODE_ENV!=="production"&&(u=u.replace(hv,function(O){return d=O,""})),_p.lastIndex=0;for(var v="",g;(g=_p.exec(u))!==null;)v+="-"+g[1];var _=yO(u)+v;return process.env.NODE_ENV!=="production"?{name:_,styles:u,map:d,next:Rn,toString:function(){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)."}}:{name:_,styles:u,next:Rn}},PO=function(r){return r()},AO=L["useInsertionEffect"]?L["useInsertionEffect"]:!1,IO=AO||PO,LO=hO,MO=function(r){return r!=="theme"},Sp=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?LO:MO},Ep=function(r,n,o){var a;if(n){var u=n.shouldForwardProp;a=r.__emotion_forwardProp&&u?function(l){return r.__emotion_forwardProp(l)&&u(l)}:u}return typeof a!="function"&&o&&(a=r.__emotion_forwardProp),a},xp=`You have illegal escape sequence in your template literal, most likely inside content's property value.
82
+ `+("css`"+d+"`"))}break}if(r==null)return n;var v=r[n];return v!==void 0?v:n}function PO(e,r,n){var o="";if(Array.isArray(n))for(var a=0;a<n.length;a++)o+=fo(e,r,n[a])+";";else for(var u in n){var l=n[u];if(typeof l!="object")r!=null&&r[l]!==void 0?o+=u+"{"+r[l]+"}":_p(l)&&(o+=Bu(u)+":"+Ga(u,l)+";");else{if(u==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(mv);if(Array.isArray(l)&&typeof l[0]=="string"&&(r==null||r[l[0]]===void 0))for(var f=0;f<l.length;f++)_p(l[f])&&(o+=Bu(u)+":"+Ga(u,l[f])+";");else{var d=fo(e,r,l);switch(u){case"animation":case"animationName":{o+=Bu(u)+":"+d+";";break}default:process.env.NODE_ENV!=="production"&&u==="undefined"&&console.error(SO),o+=u+"{"+d+"}"}}}}return o}var Ep=/label:\s*([^\s;\n{]+)\s*(;|$)/g,gv;process.env.NODE_ENV!=="production"&&(gv=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var Rn,AO=function(r,n,o){if(r.length===1&&typeof r[0]=="object"&&r[0]!==null&&r[0].styles!==void 0)return r[0];var a=!0,u="";Rn=void 0;var l=r[0];l==null||l.raw===void 0?(a=!1,u+=fo(o,n,l)):(process.env.NODE_ENV!=="production"&&l[0]===void 0&&console.error(bp),u+=l[0]);for(var f=1;f<r.length;f++)u+=fo(o,n,r[f]),a&&(process.env.NODE_ENV!=="production"&&l[f]===void 0&&console.error(bp),u+=l[f]);var d;process.env.NODE_ENV!=="production"&&(u=u.replace(gv,function(O){return d=O,""})),Ep.lastIndex=0;for(var v="",g;(g=Ep.exec(u))!==null;)v+="-"+g[1];var _=bO(u)+v;return process.env.NODE_ENV!=="production"?{name:_,styles:u,map:d,next:Rn,toString:function(){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)."}}:{name:_,styles:u,next:Rn}},IO=function(r){return r()},LO=L["useInsertionEffect"]?L["useInsertionEffect"]:!1,MO=LO||IO,DO=mO,kO=function(r){return r!=="theme"},xp=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?DO:kO},Op=function(r,n,o){var a;if(n){var u=n.shouldForwardProp;a=r.__emotion_forwardProp&&u?function(l){return r.__emotion_forwardProp(l)&&u(l)}:u}return typeof a!="function"&&o&&(a=r.__emotion_forwardProp),a},Tp=`You have illegal escape sequence in your template literal, most likely inside content's property value.
83
83
  Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
84
84
  You can read more about this here:
85
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,DO=function(r){var n=r.cache,o=r.serialized,a=r.isStringTag;return fv(n,o,a),IO(function(){return gO(n,o,a)}),null},kO=function e(r,n){if(process.env.NODE_ENV!=="production"&&r===void 0)throw new Error(`You are trying to create a styled element with an undefined component.
86
- You may have forgotten to import it.`);var o=r.__emotion_real===r,a=o&&r.__emotion_base||r,u,l;n!==void 0&&(u=n.label,l=n.target);var f=Ep(r,n,o),d=f||Sp(a),v=!d("as");return function(){var g=arguments,_=o&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(u!==void 0&&_.push("label:"+u+";"),g[0]==null||g[0].raw===void 0)_.push.apply(_,g);else{process.env.NODE_ENV!=="production"&&g[0][0]===void 0&&console.error(xp),_.push(g[0][0]);for(var O=g.length,m=1;m<O;m++)process.env.NODE_ENV!=="production"&&g[0][m]===void 0&&console.error(xp),_.push(g[m],g[0][m])}var S=pl.withEmotionCache(function(y,E,D){var I=v&&y.as||a,C="",k=[],T=y;if(y.theme==null){T={};for(var H in y)T[H]=y[H];T.theme=L.useContext(pl.ThemeContext)}typeof y.className=="string"?C=mO(E.registered,k,y.className):y.className!=null&&(C=y.className+" ");var U=RO(_.concat(k),E.registered,T);C+=E.key+"-"+U.name,l!==void 0&&(C+=" "+l);var j=v&&f===void 0?Sp(I):d,J={};for(var ee in y)v&&ee==="as"||j(ee)&&(J[ee]=y[ee]);return J.className=C,J.ref=D,L.createElement(L.Fragment,null,L.createElement(DO,{cache:E,serialized:U,isStringTag:typeof I=="string"}),L.createElement(I,J))});return S.displayName=u!==void 0?u:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",S.defaultProps=r.defaultProps,S.__emotion_real=S,S.__emotion_base=a,S.__emotion_styles=_,S.__emotion_forwardProp=f,Object.defineProperty(S,"toString",{value:function(){return l===void 0&&process.env.NODE_ENV!=="production"?"NO_COMPONENT_SELECTOR":"."+l}}),S.withComponent=function(y,E){return e(y,wt({},n,E,{shouldForwardProp:Ep(S,E,!0)})).apply(void 0,_)},S}},NO=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Ga=kO.bind();NO.forEach(function(e){Ga[e]=Ga(e)});var $O=function(e){if(typeof document>"u")return null;var r=Array.isArray(e)?e[0]:e;return r.ownerDocument.body},Si=new WeakMap,Sa=new WeakMap,Ea={},Bu=0,vv=function(e){return e&&(e.host||vv(e.parentNode))},jO=function(e,r){return r.map(function(n){if(e.contains(n))return n;var o=vv(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},FO=function(e,r,n,o){var a=jO(r,Array.isArray(e)?e:[e]);Ea[n]||(Ea[n]=new WeakMap);var u=Ea[n],l=[],f=new Set,d=new Set(a),v=function(_){!_||f.has(_)||(f.add(_),v(_.parentNode))};a.forEach(v);var g=function(_){!_||d.has(_)||Array.prototype.forEach.call(_.children,function(O){if(f.has(O))g(O);else{var m=O.getAttribute(o),S=m!==null&&m!=="false",y=(Si.get(O)||0)+1,E=(u.get(O)||0)+1;Si.set(O,y),u.set(O,E),l.push(O),y===1&&S&&Sa.set(O,!0),E===1&&O.setAttribute(n,"true"),S||O.setAttribute(o,"true")}})};return g(r),f.clear(),Bu++,function(){l.forEach(function(_){var O=Si.get(_)-1,m=u.get(_)-1;Si.set(_,O),u.set(_,m),O||(Sa.has(_)||_.removeAttribute(o),Sa.delete(_)),m||_.removeAttribute(n)}),Bu--,Bu||(Si=new WeakMap,Si=new WeakMap,Sa=new WeakMap,Ea={})}},WO=function(e,r,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),a=r||$O(e);return a?(o.push.apply(o,Array.from(a.querySelectorAll("[aria-live]"))),FO(o,a,n,"aria-hidden")):function(){return null}},_l=function(e,r){return _l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(n[a]=o[a])},_l(e,r)};function is(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");_l(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}var Dn=function(){return Dn=Object.assign||function(r){for(var n,o=1,a=arguments.length;o<a;o++){n=arguments[o];for(var u in n)Object.prototype.hasOwnProperty.call(n,u)&&(r[u]=n[u])}return r},Dn.apply(this,arguments)};function mv(e,r){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);a<o.length;a++)r.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n}function Sl(e){var r=typeof Symbol=="function"&&Symbol.iterator,n=r&&e[r],o=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ka(e,r){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var o=n.call(e),a,u=[],l;try{for(;(r===void 0||r-- >0)&&!(a=o.next()).done;)u.push(a.value)}catch(f){l={error:f}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(l)throw l.error}}return u}function fo(e,r,n){if(n||arguments.length===2)for(var o=0,a=r.length,u;o<a;o++)(u||!(o in r))&&(u||(u=Array.prototype.slice.call(r,0,o)),u[o]=r[o]);return e.concat(u||Array.prototype.slice.call(r))}var Fa="right-scroll-bar-position",Wa="width-before-scroll-bar",HO="with-scroll-bars-hidden",UO="--removed-body-scroll-bar-size";function BO(e,r){return typeof e=="function"?e(r):e&&(e.current=r),e}function zO(e,r){var n=N.useState(function(){return{value:e,callback:r,facade:{get current(){return n.value},set current(o){var a=n.value;a!==o&&(n.value=o,n.callback(o,a))}}}})[0];return n.callback=r,n.facade}function qO(e,r){return zO(r||null,function(n){return e.forEach(function(o){return BO(o,n)})})}function GO(e){return e}function KO(e,r){r===void 0&&(r=GO);var n=[],o=!1,a={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(u){var l=r(u,o);return n.push(l),function(){n=n.filter(function(f){return f!==l})}},assignSyncMedium:function(u){for(o=!0;n.length;){var l=n;n=[],l.forEach(u)}n={push:function(f){return u(f)},filter:function(){return n}}},assignMedium:function(u){o=!0;var l=[];if(n.length){var f=n;n=[],f.forEach(u),l=n}var d=function(){var g=l;l=[],g.forEach(u)},v=function(){return Promise.resolve().then(d)};v(),n={push:function(g){l.push(g),v()},filter:function(g){return l=l.filter(g),n}}}};return a}function YO(e){e===void 0&&(e={});var r=KO(null);return r.options=Dn({async:!0,ssr:!1},e),r}var gv=function(e){var r=e.sideCar,n=mv(e,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=r.read();if(!o)throw new Error("Sidecar medium not found");return L.createElement(o,Dn({},n))};gv.isSideCarExport=!0;function XO(e,r){return e.useMedium(r),gv}var yv=YO(),zu=function(){},os=L.forwardRef(function(e,r){var n=L.useRef(null),o=L.useState({onScrollCapture:zu,onWheelCapture:zu,onTouchMoveCapture:zu}),a=o[0],u=o[1],l=e.forwardProps,f=e.children,d=e.className,v=e.removeScrollBar,g=e.enabled,_=e.shards,O=e.sideCar,m=e.noIsolation,S=e.inert,y=e.allowPinchZoom,E=e.as,D=E===void 0?"div":E,I=e.gapMode,C=mv(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=O,T=qO([n,r]),H=Dn(Dn({},C),a);return L.createElement(L.Fragment,null,g&&L.createElement(k,{sideCar:yv,removeScrollBar:v,shards:_,noIsolation:m,inert:S,setCallbacks:u,allowPinchZoom:!!y,lockRef:n,gapMode:I}),l?L.cloneElement(L.Children.only(f),Dn(Dn({},H),{ref:T})):L.createElement(D,Dn({},H,{className:d,ref:T}),f))});os.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};os.classNames={fullWidth:Wa,zeroRight:Fa};var Op,VO=function(){if(Op)return Op;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function JO(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var r=VO();return r&&e.setAttribute("nonce",r),e}function ZO(e,r){e.styleSheet?e.styleSheet.cssText=r:e.appendChild(document.createTextNode(r))}function QO(e){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(e)}var eT=function(){var e=0,r=null;return{add:function(n){e==0&&(r=JO())&&(ZO(r,n),QO(r)),e++},remove:function(){e--,!e&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},tT=function(){var e=eT();return function(r,n){L.useEffect(function(){return e.add(r),function(){e.remove()}},[r&&n])}},wv=function(){var e=tT(),r=function(n){var o=n.styles,a=n.dynamic;return e(o,a),null};return r},nT={left:0,top:0,right:0,gap:0},qu=function(e){return parseInt(e||"",10)||0},rT=function(e){var r=window.getComputedStyle(document.body),n=r[e==="padding"?"paddingLeft":"marginLeft"],o=r[e==="padding"?"paddingTop":"marginTop"],a=r[e==="padding"?"paddingRight":"marginRight"];return[qu(n),qu(o),qu(a)]},iT=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return nT;var r=rT(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,o-n+r[2]-r[0])}},oT=wv(),aT=function(e,r,n,o){var a=e.left,u=e.top,l=e.right,f=e.gap;return n===void 0&&(n="margin"),`
87
- .`.concat(HO,` {
85
+ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,NO=function(r){var n=r.cache,o=r.serialized,a=r.isStringTag;return hv(n,o,a),MO(function(){return wO(n,o,a)}),null},$O=function e(r,n){if(process.env.NODE_ENV!=="production"&&r===void 0)throw new Error(`You are trying to create a styled element with an undefined component.
86
+ You may have forgotten to import it.`);var o=r.__emotion_real===r,a=o&&r.__emotion_base||r,u,l;n!==void 0&&(u=n.label,l=n.target);var f=Op(r,n,o),d=f||xp(a),v=!d("as");return function(){var g=arguments,_=o&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(u!==void 0&&_.push("label:"+u+";"),g[0]==null||g[0].raw===void 0)_.push.apply(_,g);else{process.env.NODE_ENV!=="production"&&g[0][0]===void 0&&console.error(Tp),_.push(g[0][0]);for(var O=g.length,m=1;m<O;m++)process.env.NODE_ENV!=="production"&&g[0][m]===void 0&&console.error(Tp),_.push(g[m],g[0][m])}var S=hl.withEmotionCache(function(y,E,D){var I=v&&y.as||a,C="",k=[],T=y;if(y.theme==null){T={};for(var H in y)T[H]=y[H];T.theme=L.useContext(hl.ThemeContext)}typeof y.className=="string"?C=yO(E.registered,k,y.className):y.className!=null&&(C=y.className+" ");var U=AO(_.concat(k),E.registered,T);C+=E.key+"-"+U.name,l!==void 0&&(C+=" "+l);var j=v&&f===void 0?xp(I):d,Z={};for(var ee in y)v&&ee==="as"||j(ee)&&(Z[ee]=y[ee]);return Z.className=C,Z.ref=D,L.createElement(L.Fragment,null,L.createElement(NO,{cache:E,serialized:U,isStringTag:typeof I=="string"}),L.createElement(I,Z))});return S.displayName=u!==void 0?u:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",S.defaultProps=r.defaultProps,S.__emotion_real=S,S.__emotion_base=a,S.__emotion_styles=_,S.__emotion_forwardProp=f,Object.defineProperty(S,"toString",{value:function(){return l===void 0&&process.env.NODE_ENV!=="production"?"NO_COMPONENT_SELECTOR":"."+l}}),S.withComponent=function(y,E){return e(y,wt({},n,E,{shouldForwardProp:Op(S,E,!0)})).apply(void 0,_)},S}},jO=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Ka=$O.bind();jO.forEach(function(e){Ka[e]=Ka(e)});var FO=function(e){if(typeof document>"u")return null;var r=Array.isArray(e)?e[0]:e;return r.ownerDocument.body},Ei=new WeakMap,Ea=new WeakMap,xa={},zu=0,yv=function(e){return e&&(e.host||yv(e.parentNode))},WO=function(e,r){return r.map(function(n){if(e.contains(n))return n;var o=yv(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},HO=function(e,r,n,o){var a=WO(r,Array.isArray(e)?e:[e]);xa[n]||(xa[n]=new WeakMap);var u=xa[n],l=[],f=new Set,d=new Set(a),v=function(_){!_||f.has(_)||(f.add(_),v(_.parentNode))};a.forEach(v);var g=function(_){!_||d.has(_)||Array.prototype.forEach.call(_.children,function(O){if(f.has(O))g(O);else{var m=O.getAttribute(o),S=m!==null&&m!=="false",y=(Ei.get(O)||0)+1,E=(u.get(O)||0)+1;Ei.set(O,y),u.set(O,E),l.push(O),y===1&&S&&Ea.set(O,!0),E===1&&O.setAttribute(n,"true"),S||O.setAttribute(o,"true")}})};return g(r),f.clear(),zu++,function(){l.forEach(function(_){var O=Ei.get(_)-1,m=u.get(_)-1;Ei.set(_,O),u.set(_,m),O||(Ea.has(_)||_.removeAttribute(o),Ea.delete(_)),m||_.removeAttribute(n)}),zu--,zu||(Ei=new WeakMap,Ei=new WeakMap,Ea=new WeakMap,xa={})}},UO=function(e,r,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),a=r||FO(e);return a?(o.push.apply(o,Array.from(a.querySelectorAll("[aria-live]"))),HO(o,a,n,"aria-hidden")):function(){return null}},Sl=function(e,r){return Sl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(n[a]=o[a])},Sl(e,r)};function os(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");Sl(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}var Dn=function(){return Dn=Object.assign||function(r){for(var n,o=1,a=arguments.length;o<a;o++){n=arguments[o];for(var u in n)Object.prototype.hasOwnProperty.call(n,u)&&(r[u]=n[u])}return r},Dn.apply(this,arguments)};function wv(e,r){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);a<o.length;a++)r.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n}function El(e){var r=typeof Symbol=="function"&&Symbol.iterator,n=r&&e[r],o=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ya(e,r){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var o=n.call(e),a,u=[],l;try{for(;(r===void 0||r-- >0)&&!(a=o.next()).done;)u.push(a.value)}catch(f){l={error:f}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(l)throw l.error}}return u}function po(e,r,n){if(n||arguments.length===2)for(var o=0,a=r.length,u;o<a;o++)(u||!(o in r))&&(u||(u=Array.prototype.slice.call(r,0,o)),u[o]=r[o]);return e.concat(u||Array.prototype.slice.call(r))}var Wa="right-scroll-bar-position",Ha="width-before-scroll-bar",BO="with-scroll-bars-hidden",zO="--removed-body-scroll-bar-size";function qO(e,r){return typeof e=="function"?e(r):e&&(e.current=r),e}function GO(e,r){var n=N.useState(function(){return{value:e,callback:r,facade:{get current(){return n.value},set current(o){var a=n.value;a!==o&&(n.value=o,n.callback(o,a))}}}})[0];return n.callback=r,n.facade}function KO(e,r){return GO(r||null,function(n){return e.forEach(function(o){return qO(o,n)})})}function YO(e){return e}function XO(e,r){r===void 0&&(r=YO);var n=[],o=!1,a={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(u){var l=r(u,o);return n.push(l),function(){n=n.filter(function(f){return f!==l})}},assignSyncMedium:function(u){for(o=!0;n.length;){var l=n;n=[],l.forEach(u)}n={push:function(f){return u(f)},filter:function(){return n}}},assignMedium:function(u){o=!0;var l=[];if(n.length){var f=n;n=[],f.forEach(u),l=n}var d=function(){var g=l;l=[],g.forEach(u)},v=function(){return Promise.resolve().then(d)};v(),n={push:function(g){l.push(g),v()},filter:function(g){return l=l.filter(g),n}}}};return a}function VO(e){e===void 0&&(e={});var r=XO(null);return r.options=Dn({async:!0,ssr:!1},e),r}var bv=function(e){var r=e.sideCar,n=wv(e,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=r.read();if(!o)throw new Error("Sidecar medium not found");return L.createElement(o,Dn({},n))};bv.isSideCarExport=!0;function ZO(e,r){return e.useMedium(r),bv}var _v=VO(),qu=function(){},as=L.forwardRef(function(e,r){var n=L.useRef(null),o=L.useState({onScrollCapture:qu,onWheelCapture:qu,onTouchMoveCapture:qu}),a=o[0],u=o[1],l=e.forwardProps,f=e.children,d=e.className,v=e.removeScrollBar,g=e.enabled,_=e.shards,O=e.sideCar,m=e.noIsolation,S=e.inert,y=e.allowPinchZoom,E=e.as,D=E===void 0?"div":E,I=e.gapMode,C=wv(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=O,T=KO([n,r]),H=Dn(Dn({},C),a);return L.createElement(L.Fragment,null,g&&L.createElement(k,{sideCar:_v,removeScrollBar:v,shards:_,noIsolation:m,inert:S,setCallbacks:u,allowPinchZoom:!!y,lockRef:n,gapMode:I}),l?L.cloneElement(L.Children.only(f),Dn(Dn({},H),{ref:T})):L.createElement(D,Dn({},H,{className:d,ref:T}),f))});as.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};as.classNames={fullWidth:Ha,zeroRight:Wa};var Cp,JO=function(){if(Cp)return Cp;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function QO(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var r=JO();return r&&e.setAttribute("nonce",r),e}function eT(e,r){e.styleSheet?e.styleSheet.cssText=r:e.appendChild(document.createTextNode(r))}function tT(e){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(e)}var nT=function(){var e=0,r=null;return{add:function(n){e==0&&(r=QO())&&(eT(r,n),tT(r)),e++},remove:function(){e--,!e&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},rT=function(){var e=nT();return function(r,n){L.useEffect(function(){return e.add(r),function(){e.remove()}},[r&&n])}},Sv=function(){var e=rT(),r=function(n){var o=n.styles,a=n.dynamic;return e(o,a),null};return r},iT={left:0,top:0,right:0,gap:0},Gu=function(e){return parseInt(e||"",10)||0},oT=function(e){var r=window.getComputedStyle(document.body),n=r[e==="padding"?"paddingLeft":"marginLeft"],o=r[e==="padding"?"paddingTop":"marginTop"],a=r[e==="padding"?"paddingRight":"marginRight"];return[Gu(n),Gu(o),Gu(a)]},aT=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return iT;var r=oT(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,o-n+r[2]-r[0])}},sT=Sv(),uT=function(e,r,n,o){var a=e.left,u=e.top,l=e.right,f=e.gap;return n===void 0&&(n="margin"),`
87
+ .`.concat(BO,` {
88
88
  overflow: hidden `).concat(o,`;
89
89
  padding-right: `).concat(f,"px ").concat(o,`;
90
90
  }
@@ -101,58 +101,58 @@ You may have forgotten to import it.`);var o=r.__emotion_real===r,a=o&&r.__emoti
101
101
  `),n==="padding"&&"padding-right: ".concat(f,"px ").concat(o,";")].filter(Boolean).join(""),`
102
102
  }
103
103
 
104
- .`).concat(Fa,` {
104
+ .`).concat(Wa,` {
105
105
  right: `).concat(f,"px ").concat(o,`;
106
106
  }
107
107
 
108
- .`).concat(Wa,` {
108
+ .`).concat(Ha,` {
109
109
  margin-right: `).concat(f,"px ").concat(o,`;
110
110
  }
111
111
 
112
- .`).concat(Fa," .").concat(Fa,` {
112
+ .`).concat(Wa," .").concat(Wa,` {
113
113
  right: 0 `).concat(o,`;
114
114
  }
115
115
 
116
- .`).concat(Wa," .").concat(Wa,` {
116
+ .`).concat(Ha," .").concat(Ha,` {
117
117
  margin-right: 0 `).concat(o,`;
118
118
  }
119
119
 
120
120
  body {
121
- `).concat(UO,": ").concat(f,`px;
121
+ `).concat(zO,": ").concat(f,`px;
122
122
  }
123
- `)},sT=function(e){var r=e.noRelative,n=e.noImportant,o=e.gapMode,a=o===void 0?"margin":o,u=L.useMemo(function(){return iT(a)},[a]);return L.createElement(oT,{styles:aT(u,!r,a,n?"":"!important")})},El=!1;if(typeof window<"u")try{var xa=Object.defineProperty({},"passive",{get:function(){return El=!0,!0}});window.addEventListener("test",xa,xa),window.removeEventListener("test",xa,xa)}catch{El=!1}var Ei=El?{passive:!1}:!1,uT=function(e){return e.tagName==="TEXTAREA"},bv=function(e,r){var n=window.getComputedStyle(e);return n[r]!=="hidden"&&!(n.overflowY===n.overflowX&&!uT(e)&&n[r]==="visible")},lT=function(e){return bv(e,"overflowY")},cT=function(e){return bv(e,"overflowX")},Tp=function(e,r){var n=r.ownerDocument,o=r;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var a=_v(e,o);if(a){var u=Sv(e,o),l=u[1],f=u[2];if(l>f)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},fT=function(e){var r=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[r,n,o]},dT=function(e){var r=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[r,n,o]},_v=function(e,r){return e==="v"?lT(r):cT(r)},Sv=function(e,r){return e==="v"?fT(r):dT(r)},pT=function(e,r){return e==="h"&&r==="rtl"?-1:1},hT=function(e,r,n,o,a){var u=pT(e,window.getComputedStyle(r).direction),l=u*o,f=n.target,d=r.contains(f),v=!1,g=l>0,_=0,O=0;do{var m=Sv(e,f),S=m[0],y=m[1],E=m[2],D=y-E-u*S;(S||D)&&_v(e,f)&&(_+=D,O+=S),f instanceof ShadowRoot?f=f.host:f=f.parentNode}while(!d&&f!==document.body||d&&(r.contains(f)||r===f));return(g&&(a&&Math.abs(_)<1||!a&&l>_)||!g&&(a&&Math.abs(O)<1||!a&&-l>O))&&(v=!0),v},Oa=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Cp=function(e){return[e.deltaX,e.deltaY]},Rp=function(e){return e&&"current"in e?e.current:e},vT=function(e,r){return e[0]===r[0]&&e[1]===r[1]},mT=function(e){return`
123
+ `)},lT=function(e){var r=e.noRelative,n=e.noImportant,o=e.gapMode,a=o===void 0?"margin":o,u=L.useMemo(function(){return aT(a)},[a]);return L.createElement(sT,{styles:uT(u,!r,a,n?"":"!important")})},xl=!1;if(typeof window<"u")try{var Oa=Object.defineProperty({},"passive",{get:function(){return xl=!0,!0}});window.addEventListener("test",Oa,Oa),window.removeEventListener("test",Oa,Oa)}catch{xl=!1}var xi=xl?{passive:!1}:!1,cT=function(e){return e.tagName==="TEXTAREA"},Ev=function(e,r){var n=window.getComputedStyle(e);return n[r]!=="hidden"&&!(n.overflowY===n.overflowX&&!cT(e)&&n[r]==="visible")},fT=function(e){return Ev(e,"overflowY")},dT=function(e){return Ev(e,"overflowX")},Rp=function(e,r){var n=r.ownerDocument,o=r;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var a=xv(e,o);if(a){var u=Ov(e,o),l=u[1],f=u[2];if(l>f)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},pT=function(e){var r=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[r,n,o]},hT=function(e){var r=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[r,n,o]},xv=function(e,r){return e==="v"?fT(r):dT(r)},Ov=function(e,r){return e==="v"?pT(r):hT(r)},vT=function(e,r){return e==="h"&&r==="rtl"?-1:1},mT=function(e,r,n,o,a){var u=vT(e,window.getComputedStyle(r).direction),l=u*o,f=n.target,d=r.contains(f),v=!1,g=l>0,_=0,O=0;do{var m=Ov(e,f),S=m[0],y=m[1],E=m[2],D=y-E-u*S;(S||D)&&xv(e,f)&&(_+=D,O+=S),f instanceof ShadowRoot?f=f.host:f=f.parentNode}while(!d&&f!==document.body||d&&(r.contains(f)||r===f));return(g&&(a&&Math.abs(_)<1||!a&&l>_)||!g&&(a&&Math.abs(O)<1||!a&&-l>O))&&(v=!0),v},Ta=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Pp=function(e){return[e.deltaX,e.deltaY]},Ap=function(e){return e&&"current"in e?e.current:e},gT=function(e,r){return e[0]===r[0]&&e[1]===r[1]},yT=function(e){return`
124
124
  .block-interactivity-`.concat(e,` {pointer-events: none;}
125
125
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
126
- `)},gT=0,xi=[];function yT(e){var r=L.useRef([]),n=L.useRef([0,0]),o=L.useRef(),a=L.useState(gT++)[0],u=L.useState(wv)[0],l=L.useRef(e);L.useEffect(function(){l.current=e},[e]),L.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var y=fo([e.lockRef.current],(e.shards||[]).map(Rp),!0).filter(Boolean);return y.forEach(function(E){return E.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),y.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var f=L.useCallback(function(y,E){if("touches"in y&&y.touches.length===2)return!l.current.allowPinchZoom;var D=Oa(y),I=n.current,C="deltaX"in y?y.deltaX:I[0]-D[0],k="deltaY"in y?y.deltaY:I[1]-D[1],T,H=y.target,U=Math.abs(C)>Math.abs(k)?"h":"v";if("touches"in y&&U==="h"&&H.type==="range")return!1;var j=Tp(U,H);if(!j)return!0;if(j?T=U:(T=U==="v"?"h":"v",j=Tp(U,H)),!j)return!1;if(!o.current&&"changedTouches"in y&&(C||k)&&(o.current=T),!T)return!0;var J=o.current||T;return hT(J,E,y,J==="h"?C:k,!0)},[]),d=L.useCallback(function(y){var E=y;if(!(!xi.length||xi[xi.length-1]!==u)){var D="deltaY"in E?Cp(E):Oa(E),I=r.current.filter(function(T){return T.name===E.type&&(T.target===E.target||E.target===T.shadowParent)&&vT(T.delta,D)})[0];if(I&&I.should){E.cancelable&&E.preventDefault();return}if(!I){var C=(l.current.shards||[]).map(Rp).filter(Boolean).filter(function(T){return T.contains(E.target)}),k=C.length>0?f(E,C[0]):!l.current.noIsolation;k&&E.cancelable&&E.preventDefault()}}},[]),v=L.useCallback(function(y,E,D,I){var C={name:y,delta:E,target:D,should:I,shadowParent:wT(D)};r.current.push(C),setTimeout(function(){r.current=r.current.filter(function(k){return k!==C})},1)},[]),g=L.useCallback(function(y){n.current=Oa(y),o.current=void 0},[]),_=L.useCallback(function(y){v(y.type,Cp(y),y.target,f(y,e.lockRef.current))},[]),O=L.useCallback(function(y){v(y.type,Oa(y),y.target,f(y,e.lockRef.current))},[]);L.useEffect(function(){return xi.push(u),e.setCallbacks({onScrollCapture:_,onWheelCapture:_,onTouchMoveCapture:O}),document.addEventListener("wheel",d,Ei),document.addEventListener("touchmove",d,Ei),document.addEventListener("touchstart",g,Ei),function(){xi=xi.filter(function(y){return y!==u}),document.removeEventListener("wheel",d,Ei),document.removeEventListener("touchmove",d,Ei),document.removeEventListener("touchstart",g,Ei)}},[]);var m=e.removeScrollBar,S=e.inert;return L.createElement(L.Fragment,null,S?L.createElement(u,{styles:mT(a)}):null,m?L.createElement(sT,{gapMode:e.gapMode}):null)}function wT(e){for(var r=null;e!==null;)e instanceof ShadowRoot&&(r=e.host,e=e.host),e=e.parentNode;return r}const bT=XO(yv,yT);var Ev=L.forwardRef(function(e,r){return L.createElement(os,Dn({},e,{ref:r,sideCar:bT}))});Ev.classNames=os.classNames;const _T=Ev,po=globalThis!=null&&globalThis.document?L.useLayoutEffect:()=>{},ST=L["useId".toString()]||(()=>{});let ET=0;function xT(e){const[r,n]=L.useState(ST());return po(()=>{e||n(o=>o??String(ET++))},[e]),e||(r?`radix-${r}`:"")}function xv(...e){return r=>e.forEach(n=>function(o,a){typeof o=="function"?o(a):o!=null&&(o.current=a)}(n,r))}function Zr(...e){return L.useCallback(xv(...e),e)}const Ov=L.forwardRef((e,r)=>{const{children:n,...o}=e;return L.Children.toArray(n).some(Pp)?L.createElement(L.Fragment,null,L.Children.map(n,a=>Pp(a)?L.createElement(xl,wt({},o,{ref:r}),a.props.children):a)):L.createElement(xl,wt({},o,{ref:r}),n)});Ov.displayName="Slot";const xl=L.forwardRef((e,r)=>{const{children:n,...o}=e;return L.isValidElement(n)?L.cloneElement(n,{...TT(o,n.props),ref:xv(r,n.ref)}):L.Children.count(n)>1?L.Children.only(null):null});xl.displayName="SlotClone";const OT=({children:e})=>L.createElement(L.Fragment,null,e);function Pp(e){return L.isValidElement(e)&&e.type===OT}function TT(e,r){const n={...r};for(const o in r){const a=e[o],u=r[o];/^on[A-Z]/.test(o)?n[o]=(...l)=>{u==null||u(...l),a==null||a(...l)}:o==="style"?n[o]={...a,...u}:o==="className"&&(n[o]=[a,u].filter(Boolean).join(" "))}return{...e,...n}}const Li=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((e,r)=>({...e,[r]:L.forwardRef((n,o)=>{const{asChild:a,...u}=n,l=a?Ov:r;return L.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),L.createElement(l,wt({},u,{ref:o}))})}),{}),Tv=e=>{const{present:r,children:n}=e,o=function(l){const[f,d]=L.useState(),v=L.useRef({}),g=L.useRef(l),_=L.useRef("none"),O=l?"mounted":"unmounted",[m,S]=function(y,E){return L.useReducer((D,I)=>{const C=E[D][I];return C??D},y)}(O,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return L.useEffect(()=>{const y=Ta(v.current);_.current=m==="mounted"?y:"none"},[m]),po(()=>{const y=v.current,E=g.current;if(E!==l){const D=_.current,I=Ta(y);l?S("MOUNT"):I==="none"||(y==null?void 0:y.display)==="none"?S("UNMOUNT"):S(E&&D!==I?"ANIMATION_OUT":"UNMOUNT"),g.current=l}},[l,S]),po(()=>{if(f){const y=D=>{const I=Ta(v.current).includes(D.animationName);D.target===f&&I&&S("ANIMATION_END")},E=D=>{D.target===f&&(_.current=Ta(v.current))};return f.addEventListener("animationstart",E),f.addEventListener("animationcancel",y),f.addEventListener("animationend",y),()=>{f.removeEventListener("animationstart",E),f.removeEventListener("animationcancel",y),f.removeEventListener("animationend",y)}}S("ANIMATION_END")},[f,S]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:L.useCallback(y=>{y&&(v.current=getComputedStyle(y)),d(y)},[])}}(r),a=typeof n=="function"?n({present:o.isPresent}):L.Children.only(n),u=Zr(o.ref,a.ref);return typeof n=="function"||o.isPresent?L.cloneElement(a,{ref:u}):null};function Ta(e){return(e==null?void 0:e.animationName)||"none"}Tv.displayName="Presence";let Gu=0;function CT(){L.useEffect(()=>{var e,r;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:Ap()),document.body.insertAdjacentElement("beforeend",(r=n[1])!==null&&r!==void 0?r:Ap()),Gu++,()=>{Gu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(o=>o.remove()),Gu--}},[])}function Ap(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const Cv=L.forwardRef((e,r)=>{var n,o;const{containerRef:a,style:u,...l}=e,f=(n=a==null?void 0:a.current)!==null&&n!==void 0?n:globalThis==null||(o=globalThis.document)===null||o===void 0?void 0:o.body,[,d]=L.useState({});return po(()=>{d({})},[]),f?go.createPortal(L.createElement(Li.div,wt({"data-radix-portal":""},l,{ref:r,style:f===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...u}:void 0})),f):null});function Jr(e){const r=L.useRef(e);return L.useEffect(()=>{r.current=e}),L.useMemo(()=>(...n)=>{var o;return(o=r.current)===null||o===void 0?void 0:o.call(r,...n)},[])}const Ip={bubbles:!1,cancelable:!0},RT=L.forwardRef((e,r)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:a,onUnmountAutoFocus:u,...l}=e,[f,d]=L.useState(null),v=Jr(a),g=Jr(u),_=L.useRef(null),O=Zr(r,y=>d(y)),m=L.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;L.useEffect(()=>{if(o){let y=function(D){if(m.paused||!f)return;const I=D.target;f.contains(I)?_.current=I:Hr(_.current,{select:!0})},E=function(D){!m.paused&&f&&(f.contains(D.relatedTarget)||Hr(_.current,{select:!0}))};return document.addEventListener("focusin",y),document.addEventListener("focusout",E),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",E)}}},[o,f,m.paused]),L.useEffect(()=>{if(f){Dp.add(m);const E=document.activeElement;if(!f.contains(E)){const D=new Event("focusScope.autoFocusOnMount",Ip);f.addEventListener("focusScope.autoFocusOnMount",v),f.dispatchEvent(D),D.defaultPrevented||(function(I,{select:C=!1}={}){const k=document.activeElement;for(const T of I)if(Hr(T,{select:C}),document.activeElement!==k)return}((y=Lp(f),y.filter(I=>I.tagName!=="A")),{select:!0}),document.activeElement===E&&Hr(f))}return()=>{f.removeEventListener("focusScope.autoFocusOnMount",v),setTimeout(()=>{const D=new Event("focusScope.autoFocusOnUnmount",Ip);f.addEventListener("focusScope.autoFocusOnUnmount",g),f.dispatchEvent(D),D.defaultPrevented||Hr(E??document.body,{select:!0}),f.removeEventListener("focusScope.autoFocusOnUnmount",g),Dp.remove(m)},0)}}var y},[f,v,g,m]);const S=L.useCallback(y=>{if(!n&&!o||m.paused)return;const E=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,D=document.activeElement;if(E&&D){const I=y.currentTarget,[C,k]=function(T){const H=Lp(T),U=Mp(H,T),j=Mp(H.reverse(),T);return[U,j]}(I);C&&k?y.shiftKey||D!==k?y.shiftKey&&D===C&&(y.preventDefault(),n&&Hr(k,{select:!0})):(y.preventDefault(),n&&Hr(C,{select:!0})):D===I&&y.preventDefault()}},[n,o,m.paused]);return L.createElement(Li.div,wt({tabIndex:-1},l,{ref:O,onKeyDown:S}))});function Lp(e){const r=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const a=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||a?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)r.push(n.currentNode);return r}function Mp(e,r){for(const n of e)if(!PT(n,{upTo:r}))return n}function PT(e,{upTo:r}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(r!==void 0&&e===r)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Hr(e,{select:r=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(o){return o instanceof HTMLInputElement&&"select"in o}(e)&&r&&e.select()}}const Dp=function(){let e=[];return{add(r){const n=e[0];r!==n&&(n==null||n.pause()),e=kp(e,r),e.unshift(r)},remove(r){var n;e=kp(e,r),(n=e[0])===null||n===void 0||n.resume()}}}();function kp(e,r){const n=[...e],o=n.indexOf(r);return o!==-1&&n.splice(o,1),n}function AT(e){const r=Jr(e);L.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[r])}let Np,Ca=0;function IT({disabled:e}){const r=L.useRef(!1);po(()=>{if(e){let n=function(){Ca--,Ca===0&&(document.body.style.pointerEvents=Np)},o=function(a){r.current=a.pointerType!=="mouse"};return Ca===0&&(Np=document.body.style.pointerEvents),document.body.style.pointerEvents="none",Ca++,document.addEventListener("pointerup",o),()=>{r.current?document.addEventListener("click",n,{once:!0}):n(),document.removeEventListener("pointerup",o)}}},[e])}function Yr(e,r,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return r==null?void 0:r(o)}}const LT=L.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),MT=L.forwardRef((e,r)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:u,onInteractOutside:l,onDismiss:f,...d}=e,v=L.useContext(LT),[g,_]=L.useState(null),[,O]=L.useState({}),m=Zr(r,H=>_(H)),S=Array.from(v.layers),[y]=[...v.layersWithOutsidePointerEventsDisabled].slice(-1),E=S.indexOf(y),D=g?S.indexOf(g):-1,I=v.layersWithOutsidePointerEventsDisabled.size>0,C=D>=E,k=function(H){const U=Jr(H),j=L.useRef(!1);return L.useEffect(()=>{const J=ge=>{ge.target&&!j.current&&jp("dismissableLayer.pointerDownOutside",U,{originalEvent:ge}),j.current=!1},ee=window.setTimeout(()=>{document.addEventListener("pointerdown",J)},0);return()=>{window.clearTimeout(ee),document.removeEventListener("pointerdown",J)}},[U]),{onPointerDownCapture:()=>j.current=!0}}(H=>{const U=H.target,j=[...v.branches].some(J=>J.contains(U));C&&!j&&(a==null||a(H),l==null||l(H),H.defaultPrevented||f==null||f())}),T=function(H){const U=Jr(H),j=L.useRef(!1);return L.useEffect(()=>{const J=ee=>{ee.target&&!j.current&&jp("dismissableLayer.focusOutside",U,{originalEvent:ee})};return document.addEventListener("focusin",J),()=>document.removeEventListener("focusin",J)},[U]),{onFocusCapture:()=>j.current=!0,onBlurCapture:()=>j.current=!1}}(H=>{const U=H.target;[...v.branches].some(j=>j.contains(U))||(u==null||u(H),l==null||l(H),H.defaultPrevented||f==null||f())});return AT(H=>{D===v.layers.size-1&&(o==null||o(H),H.defaultPrevented||f==null||f())}),IT({disabled:n}),L.useEffect(()=>{g&&(n&&v.layersWithOutsidePointerEventsDisabled.add(g),v.layers.add(g),$p())},[g,n,v]),L.useEffect(()=>()=>{g&&(v.layers.delete(g),v.layersWithOutsidePointerEventsDisabled.delete(g),$p())},[g,v]),L.useEffect(()=>{const H=()=>O({});return document.addEventListener("dismissableLayer.update",H),()=>document.removeEventListener("dismissableLayer.update",H)},[]),L.createElement(Li.div,wt({},d,{ref:m,style:{pointerEvents:I?C?"auto":"none":void 0,...e.style},onFocusCapture:Yr(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Yr(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Yr(e.onPointerDownCapture,k.onPointerDownCapture)}))});function $p(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function jp(e,r,n){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});return r&&o.addEventListener(e,r,{once:!0}),!o.dispatchEvent(a)}function Fp(e){const[r,n]=L.useState(void 0);return L.useEffect(()=>{if(e){const o=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const u=a[0];let l,f;if("borderBoxSize"in u){const d=u.borderBoxSize,v=Array.isArray(d)?d[0]:d;l=v.inlineSize,f=v.blockSize}else{const d=e.getBoundingClientRect();l=d.width,f=d.height}n({width:l,height:f})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}n(void 0)},[e]),r}function DT(e,r){const n=Br.get(e);return n===void 0?(Br.set(e,{rect:{},callbacks:[r]}),Br.size===1&&(Ol=requestAnimationFrame(Rv))):(n.callbacks.push(r),r(e.getBoundingClientRect())),()=>{const o=Br.get(e);if(o===void 0)return;const a=o.callbacks.indexOf(r);a>-1&&o.callbacks.splice(a,1),o.callbacks.length===0&&(Br.delete(e),Br.size===0&&cancelAnimationFrame(Ol))}}let Ol;const Br=new Map;function Rv(){const e=[];Br.forEach((r,n)=>{const o=n.getBoundingClientRect();var a,u;a=r.rect,u=o,(a.width!==u.width||a.height!==u.height||a.top!==u.top||a.right!==u.right||a.bottom!==u.bottom||a.left!==u.left)&&(r.rect=o,e.push(r))}),e.forEach(r=>{r.callbacks.forEach(n=>n(r.rect))}),Ol=requestAnimationFrame(Rv)}function kT(e){const[r,n]=L.useState();return L.useEffect(()=>{if(e){const o=DT(e,n);return()=>{n(void 0),o()}}},[e]),r}function Pv(e,r=[]){let n=[];const o=()=>{const a=n.map(u=>L.createContext(u));return function(u){const l=(u==null?void 0:u[e])||a;return L.useMemo(()=>({[`__scope${e}`]:{...u,[e]:l}}),[u,l])}};return o.scopeName=e,[function(a,u){const l=L.createContext(u),f=n.length;function d(v){const{scope:g,children:_,...O}=v,m=(g==null?void 0:g[e][f])||l,S=L.useMemo(()=>O,Object.values(O));return L.createElement(m.Provider,{value:S},_)}return n=[...n,u],d.displayName=a+"Provider",[d,function(v,g){const _=(g==null?void 0:g[e][f])||l,O=L.useContext(_);if(O)return O;if(u!==void 0)return u;throw new Error(`\`${v}\` must be used within \`${a}\``)}]},NT(o,...r)]}function NT(...e){const r=e[0];if(e.length===1)return r;const n=()=>{const o=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(a){const u=o.reduce((l,{useScope:f,scopeName:d})=>({...l,...f(a)[`__scope${d}`]}),{});return L.useMemo(()=>({[`__scope${r.scopeName}`]:u}),[u])}};return n.scopeName=r.scopeName,n}function $T({anchorRect:e,popperSize:r,arrowSize:n,arrowOffset:o=0,side:a,sideOffset:u=0,align:l,alignOffset:f=0,shouldAvoidCollisions:d=!0,collisionBoundariesRect:v,collisionTolerance:g=0}){if(!e||!r||!v)return{popperStyles:jT,arrowStyles:Ku};const _=function(U,j,J=0,ee=0,ge){const Ce=ge?ge.height:0,_e=Wp(j,U,"x"),se=Wp(j,U,"y"),Le=se.before-J-Ce,we=se.after+J+Ce,xe=_e.before-J-Ce,We=_e.after+J+Ce;return{top:{start:{x:_e.start+ee,y:Le},center:{x:_e.center,y:Le},end:{x:_e.end-ee,y:Le}},right:{start:{x:We,y:se.start+ee},center:{x:We,y:se.center},end:{x:We,y:se.end-ee}},bottom:{start:{x:_e.start+ee,y:we},center:{x:_e.center,y:we},end:{x:_e.end-ee,y:we}},left:{start:{x:xe,y:se.start+ee},center:{x:xe,y:se.center},end:{x:xe,y:se.end-ee}}}}(r,e,u,f,n),O=_[a][l];if(d===!1){const U=Hp(O);let j=Ku;return n&&(j=Bp({popperSize:r,arrowSize:n,arrowOffset:o,side:a,align:l})),{popperStyles:{...U,"--radix-popper-transform-origin":Up(r,a,l,o,n)},arrowStyles:j,placedSide:a,placedAlign:l}}const m=DOMRect.fromRect({...r,...O}),S=(y=v,E=g,DOMRect.fromRect({width:y.width-2*E,height:y.height-2*E,x:y.left+E,y:y.top+E}));var y,E;const D=qp(m,S),I=_[zp(a)][l],C=function(U,j,J){const ee=zp(U);return j[U]&&!J[ee]?ee:U}(a,D,qp(DOMRect.fromRect({...r,...I}),S)),k=function(U,j,J,ee,ge){const Ce=J==="top"||J==="bottom",_e=Ce?"left":"top",se=Ce?"right":"bottom",Le=Ce?"width":"height",we=j[Le]>U[Le];return(ee==="start"||ee==="center")&&(ge[_e]&&we||ge[se]&&!we)?"end":(ee==="end"||ee==="center")&&(ge[se]&&we||ge[_e]&&!we)?"start":ee}(r,e,a,l,D),T=Hp(_[C][k]);let H=Ku;return n&&(H=Bp({popperSize:r,arrowSize:n,arrowOffset:o,side:C,align:k})),{popperStyles:{...T,"--radix-popper-transform-origin":Up(r,C,k,o,n)},arrowStyles:H,placedSide:C,placedAlign:k}}function Wp(e,r,n){const o=e[n==="x"?"left":"top"],a=n==="x"?"width":"height",u=e[a],l=r[a];return{before:o-l,start:o,center:o+(u-l)/2,end:o+u-l,after:o+u}}function Hp(e){return{position:"absolute",top:0,left:0,minWidth:"max-content",willChange:"transform",transform:`translate3d(${Math.round(e.x+window.scrollX)}px, ${Math.round(e.y+window.scrollY)}px, 0)`}}function Up(e,r,n,o,a){const u=r==="top"||r==="bottom",l=a?a.width:0,f=a?a.height:0,d=l/2+o;let v="",g="";return u?(v={start:`${d}px`,center:"center",end:e.width-d+"px"}[n],g=r==="top"?`${e.height+f}px`:-f+"px"):(v=r==="left"?`${e.width+f}px`:-f+"px",g={start:`${d}px`,center:"center",end:e.height-d+"px"}[n]),`${v} ${g}`}const jT={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},Ku={position:"absolute",opacity:0};function Bp({popperSize:e,arrowSize:r,arrowOffset:n,side:o,align:a}){const u=(e.width-r.width)/2,l=(e.height-r.width)/2,f={top:0,right:90,bottom:180,left:-90}[o],d=Math.max(r.width,r.height),v={width:`${d}px`,height:`${d}px`,transform:`rotate(${f}deg)`,willChange:"transform",position:"absolute",[o]:"100%",direction:FT(o,a)};return o!=="top"&&o!=="bottom"||(a==="start"&&(v.left=`${n}px`),a==="center"&&(v.left=`${u}px`),a==="end"&&(v.right=`${n}px`)),o!=="left"&&o!=="right"||(a==="start"&&(v.top=`${n}px`),a==="center"&&(v.top=`${l}px`),a==="end"&&(v.bottom=`${n}px`)),v}function FT(e,r){return(e!=="top"&&e!=="right"||r!=="end")&&(e!=="bottom"&&e!=="left"||r==="end")?"ltr":"rtl"}function zp(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function qp(e,r){return{top:e.top<r.top,right:e.right>r.right,bottom:e.bottom>r.bottom,left:e.left<r.left}}const[Av,Iv]=Pv("Popper"),[WT,Lv]=Av("Popper"),HT=e=>{const{__scopePopper:r,children:n}=e,[o,a]=L.useState(null);return L.createElement(WT,{scope:r,anchor:o,onAnchorChange:a},n)},UT=L.forwardRef((e,r)=>{const{__scopePopper:n,virtualRef:o,...a}=e,u=Lv("PopperAnchor",n),l=L.useRef(null),f=Zr(r,l);return L.useEffect(()=>{u.onAnchorChange((o==null?void 0:o.current)||l.current)}),o?null:L.createElement(Li.div,wt({},a,{ref:f}))}),[BT,dI]=Av("PopperContent"),zT=L.forwardRef((e,r)=>{const{__scopePopper:n,side:o="bottom",sideOffset:a,align:u="center",alignOffset:l,collisionTolerance:f,avoidCollisions:d=!0,...v}=e,g=Lv("PopperContent",n),[_,O]=L.useState(),m=kT(g.anchor),[S,y]=L.useState(null),E=Fp(S),[D,I]=L.useState(null),C=Fp(D),k=Zr(r,Ce=>y(Ce)),T=function(){const[Ce,_e]=L.useState(void 0);return L.useEffect(()=>{let se;function Le(){_e({width:window.innerWidth,height:window.innerHeight})}function we(){window.clearTimeout(se),se=window.setTimeout(Le,100)}return Le(),window.addEventListener("resize",we),()=>window.removeEventListener("resize",we)},[]),Ce}(),H=T?DOMRect.fromRect({...T,x:0,y:0}):void 0,{popperStyles:U,arrowStyles:j,placedSide:J,placedAlign:ee}=$T({anchorRect:m,popperSize:E,arrowSize:C,arrowOffset:_,side:o,sideOffset:a,align:u,alignOffset:l,shouldAvoidCollisions:d,collisionBoundariesRect:H,collisionTolerance:f}),ge=J!==void 0;return L.createElement("div",{style:U,"data-radix-popper-content-wrapper":""},L.createElement(BT,{scope:n,arrowStyles:j,onArrowChange:I,onArrowOffsetChange:O},L.createElement(Li.div,wt({"data-side":J,"data-align":ee},v,{style:{...v.style,animation:ge?void 0:"none"},ref:k}))))}),qT=HT,GT=UT,KT=zT;function YT({prop:e,defaultProp:r,onChange:n=()=>{}}){const[o,a]=function({defaultProp:d,onChange:v}){const g=L.useState(d),[_]=g,O=L.useRef(_),m=Jr(v);return L.useEffect(()=>{O.current!==_&&(m(_),O.current=_)},[_,O,m]),g}({defaultProp:r,onChange:n}),u=e!==void 0,l=u?e:o,f=Jr(n);return[l,L.useCallback(d=>{if(u){const v=d,g=typeof d=="function"?v(e):d;g!==e&&f(g)}else a(d)},[u,e,a,f])]}const[XT,pI]=Pv("Popover",[Iv]),ec=Iv(),[VT,_o]=XT("Popover"),JT=e=>{const{__scopePopover:r,children:n,open:o,defaultOpen:a,onOpenChange:u,modal:l=!1}=e,f=ec(r),d=L.useRef(null),[v,g]=L.useState(!1),[_=!1,O]=YT({prop:o,defaultProp:a,onChange:u});return L.createElement(qT,f,L.createElement(VT,{scope:r,contentId:xT(),triggerRef:d,open:_,onOpenChange:O,onOpenToggle:L.useCallback(()=>O(m=>!m),[O]),hasCustomAnchor:v,onCustomAnchorAdd:L.useCallback(()=>g(!0),[]),onCustomAnchorRemove:L.useCallback(()=>g(!1),[]),modal:l},n))},ZT=L.forwardRef((e,r)=>{const{__scopePopover:n,...o}=e,a=_o("PopoverTrigger",n),u=ec(n),l=Zr(r,a.triggerRef),f=L.createElement(Li.button,wt({type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Dv(a.open)},o,{ref:l,onClick:Yr(e.onClick,a.onOpenToggle)}));return a.hasCustomAnchor?f:L.createElement(GT,wt({asChild:!0},u),f)}),QT=L.forwardRef((e,r)=>{const{forceMount:n,...o}=e,a=_o("PopoverContent",e.__scopePopover);return L.createElement(Tv,{present:n||a.open},a.modal?L.createElement(eC,wt({},o,{ref:r})):L.createElement(tC,wt({},o,{ref:r})))}),eC=L.forwardRef((e,r)=>{const{allowPinchZoom:n,portalled:o=!0,...a}=e,u=_o("PopoverContent",e.__scopePopover),l=L.useRef(null),f=Zr(r,l),d=L.useRef(!1);L.useEffect(()=>{const g=l.current;if(g)return WO(g)},[]);const v=o?Cv:L.Fragment;return L.createElement(v,null,L.createElement(_T,{allowPinchZoom:n},L.createElement(Mv,wt({},a,{ref:f,trapFocus:u.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Yr(e.onCloseAutoFocus,g=>{var _;g.preventDefault(),d.current||(_=u.triggerRef.current)===null||_===void 0||_.focus()}),onPointerDownOutside:Yr(e.onPointerDownOutside,g=>{const _=g.detail.originalEvent,O=_.button===0&&_.ctrlKey===!0,m=_.button===2||O;d.current=m},{checkForDefaultPrevented:!1}),onFocusOutside:Yr(e.onFocusOutside,g=>g.preventDefault(),{checkForDefaultPrevented:!1})}))))}),tC=L.forwardRef((e,r)=>{const{portalled:n=!0,...o}=e,a=_o("PopoverContent",e.__scopePopover),u=L.useRef(!1),l=n?Cv:L.Fragment;return L.createElement(l,null,L.createElement(Mv,wt({},o,{ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:f=>{var d,v;(d=e.onCloseAutoFocus)===null||d===void 0||d.call(e,f),f.defaultPrevented||(u.current||(v=a.triggerRef.current)===null||v===void 0||v.focus(),f.preventDefault()),u.current=!1},onInteractOutside:f=>{var d,v;(d=e.onInteractOutside)===null||d===void 0||d.call(e,f),f.defaultPrevented||(u.current=!0);const g=f.target;!((v=a.triggerRef.current)===null||v===void 0)&&v.contains(g)&&f.preventDefault()}})))}),Mv=L.forwardRef((e,r)=>{const{__scopePopover:n,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:u,disableOutsidePointerEvents:l,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:v,onInteractOutside:g,..._}=e,O=_o("PopoverContent",n),m=ec(n);return CT(),L.createElement(RT,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:u},L.createElement(MT,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:g,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:v,onDismiss:()=>O.onOpenChange(!1)},L.createElement(KT,wt({"data-state":Dv(O.open),role:"dialog",id:O.contentId},m,_,{ref:r,style:{..._.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))});function Dv(e){return e?"open":"closed"}const nC=JT,rC=ZT,iC=QT;var Ha=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(Ha||{});var kv={},as={},tc={},Yu={},Ra={exports:{}},Pa={exports:{}},Ue={};/** @license React v16.13.1
126
+ `)},wT=0,Oi=[];function bT(e){var r=L.useRef([]),n=L.useRef([0,0]),o=L.useRef(),a=L.useState(wT++)[0],u=L.useState(Sv)[0],l=L.useRef(e);L.useEffect(function(){l.current=e},[e]),L.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var y=po([e.lockRef.current],(e.shards||[]).map(Ap),!0).filter(Boolean);return y.forEach(function(E){return E.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),y.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var f=L.useCallback(function(y,E){if("touches"in y&&y.touches.length===2)return!l.current.allowPinchZoom;var D=Ta(y),I=n.current,C="deltaX"in y?y.deltaX:I[0]-D[0],k="deltaY"in y?y.deltaY:I[1]-D[1],T,H=y.target,U=Math.abs(C)>Math.abs(k)?"h":"v";if("touches"in y&&U==="h"&&H.type==="range")return!1;var j=Rp(U,H);if(!j)return!0;if(j?T=U:(T=U==="v"?"h":"v",j=Rp(U,H)),!j)return!1;if(!o.current&&"changedTouches"in y&&(C||k)&&(o.current=T),!T)return!0;var Z=o.current||T;return mT(Z,E,y,Z==="h"?C:k,!0)},[]),d=L.useCallback(function(y){var E=y;if(!(!Oi.length||Oi[Oi.length-1]!==u)){var D="deltaY"in E?Pp(E):Ta(E),I=r.current.filter(function(T){return T.name===E.type&&(T.target===E.target||E.target===T.shadowParent)&&gT(T.delta,D)})[0];if(I&&I.should){E.cancelable&&E.preventDefault();return}if(!I){var C=(l.current.shards||[]).map(Ap).filter(Boolean).filter(function(T){return T.contains(E.target)}),k=C.length>0?f(E,C[0]):!l.current.noIsolation;k&&E.cancelable&&E.preventDefault()}}},[]),v=L.useCallback(function(y,E,D,I){var C={name:y,delta:E,target:D,should:I,shadowParent:_T(D)};r.current.push(C),setTimeout(function(){r.current=r.current.filter(function(k){return k!==C})},1)},[]),g=L.useCallback(function(y){n.current=Ta(y),o.current=void 0},[]),_=L.useCallback(function(y){v(y.type,Pp(y),y.target,f(y,e.lockRef.current))},[]),O=L.useCallback(function(y){v(y.type,Ta(y),y.target,f(y,e.lockRef.current))},[]);L.useEffect(function(){return Oi.push(u),e.setCallbacks({onScrollCapture:_,onWheelCapture:_,onTouchMoveCapture:O}),document.addEventListener("wheel",d,xi),document.addEventListener("touchmove",d,xi),document.addEventListener("touchstart",g,xi),function(){Oi=Oi.filter(function(y){return y!==u}),document.removeEventListener("wheel",d,xi),document.removeEventListener("touchmove",d,xi),document.removeEventListener("touchstart",g,xi)}},[]);var m=e.removeScrollBar,S=e.inert;return L.createElement(L.Fragment,null,S?L.createElement(u,{styles:yT(a)}):null,m?L.createElement(lT,{gapMode:e.gapMode}):null)}function _T(e){for(var r=null;e!==null;)e instanceof ShadowRoot&&(r=e.host,e=e.host),e=e.parentNode;return r}const ST=ZO(_v,bT);var Tv=L.forwardRef(function(e,r){return L.createElement(as,Dn({},e,{ref:r,sideCar:ST}))});Tv.classNames=as.classNames;const ET=Tv,ho=globalThis!=null&&globalThis.document?L.useLayoutEffect:()=>{},xT=L["useId".toString()]||(()=>{});let OT=0;function TT(e){const[r,n]=L.useState(xT());return ho(()=>{e||n(o=>o??String(OT++))},[e]),e||(r?`radix-${r}`:"")}function Cv(...e){return r=>e.forEach(n=>function(o,a){typeof o=="function"?o(a):o!=null&&(o.current=a)}(n,r))}function ei(...e){return L.useCallback(Cv(...e),e)}const Rv=L.forwardRef((e,r)=>{const{children:n,...o}=e;return L.Children.toArray(n).some(Ip)?L.createElement(L.Fragment,null,L.Children.map(n,a=>Ip(a)?L.createElement(Ol,wt({},o,{ref:r}),a.props.children):a)):L.createElement(Ol,wt({},o,{ref:r}),n)});Rv.displayName="Slot";const Ol=L.forwardRef((e,r)=>{const{children:n,...o}=e;return L.isValidElement(n)?L.cloneElement(n,{...RT(o,n.props),ref:Cv(r,n.ref)}):L.Children.count(n)>1?L.Children.only(null):null});Ol.displayName="SlotClone";const CT=({children:e})=>L.createElement(L.Fragment,null,e);function Ip(e){return L.isValidElement(e)&&e.type===CT}function RT(e,r){const n={...r};for(const o in r){const a=e[o],u=r[o];/^on[A-Z]/.test(o)?n[o]=(...l)=>{u==null||u(...l),a==null||a(...l)}:o==="style"?n[o]={...a,...u}:o==="className"&&(n[o]=[a,u].filter(Boolean).join(" "))}return{...e,...n}}const Mi=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((e,r)=>({...e,[r]:L.forwardRef((n,o)=>{const{asChild:a,...u}=n,l=a?Rv:r;return L.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),L.createElement(l,wt({},u,{ref:o}))})}),{}),Pv=e=>{const{present:r,children:n}=e,o=function(l){const[f,d]=L.useState(),v=L.useRef({}),g=L.useRef(l),_=L.useRef("none"),O=l?"mounted":"unmounted",[m,S]=function(y,E){return L.useReducer((D,I)=>{const C=E[D][I];return C??D},y)}(O,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return L.useEffect(()=>{const y=Ca(v.current);_.current=m==="mounted"?y:"none"},[m]),ho(()=>{const y=v.current,E=g.current;if(E!==l){const D=_.current,I=Ca(y);l?S("MOUNT"):I==="none"||(y==null?void 0:y.display)==="none"?S("UNMOUNT"):S(E&&D!==I?"ANIMATION_OUT":"UNMOUNT"),g.current=l}},[l,S]),ho(()=>{if(f){const y=D=>{const I=Ca(v.current).includes(D.animationName);D.target===f&&I&&S("ANIMATION_END")},E=D=>{D.target===f&&(_.current=Ca(v.current))};return f.addEventListener("animationstart",E),f.addEventListener("animationcancel",y),f.addEventListener("animationend",y),()=>{f.removeEventListener("animationstart",E),f.removeEventListener("animationcancel",y),f.removeEventListener("animationend",y)}}S("ANIMATION_END")},[f,S]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:L.useCallback(y=>{y&&(v.current=getComputedStyle(y)),d(y)},[])}}(r),a=typeof n=="function"?n({present:o.isPresent}):L.Children.only(n),u=ei(o.ref,a.ref);return typeof n=="function"||o.isPresent?L.cloneElement(a,{ref:u}):null};function Ca(e){return(e==null?void 0:e.animationName)||"none"}Pv.displayName="Presence";let Ku=0;function PT(){L.useEffect(()=>{var e,r;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:Lp()),document.body.insertAdjacentElement("beforeend",(r=n[1])!==null&&r!==void 0?r:Lp()),Ku++,()=>{Ku===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(o=>o.remove()),Ku--}},[])}function Lp(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const Av=L.forwardRef((e,r)=>{var n,o;const{containerRef:a,style:u,...l}=e,f=(n=a==null?void 0:a.current)!==null&&n!==void 0?n:globalThis==null||(o=globalThis.document)===null||o===void 0?void 0:o.body,[,d]=L.useState({});return ho(()=>{d({})},[]),f?yo.createPortal(L.createElement(Mi.div,wt({"data-radix-portal":""},l,{ref:r,style:f===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...u}:void 0})),f):null});function Qr(e){const r=L.useRef(e);return L.useEffect(()=>{r.current=e}),L.useMemo(()=>(...n)=>{var o;return(o=r.current)===null||o===void 0?void 0:o.call(r,...n)},[])}const Mp={bubbles:!1,cancelable:!0},AT=L.forwardRef((e,r)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:a,onUnmountAutoFocus:u,...l}=e,[f,d]=L.useState(null),v=Qr(a),g=Qr(u),_=L.useRef(null),O=ei(r,y=>d(y)),m=L.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;L.useEffect(()=>{if(o){let y=function(D){if(m.paused||!f)return;const I=D.target;f.contains(I)?_.current=I:Br(_.current,{select:!0})},E=function(D){!m.paused&&f&&(f.contains(D.relatedTarget)||Br(_.current,{select:!0}))};return document.addEventListener("focusin",y),document.addEventListener("focusout",E),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",E)}}},[o,f,m.paused]),L.useEffect(()=>{if(f){Np.add(m);const E=document.activeElement;if(!f.contains(E)){const D=new Event("focusScope.autoFocusOnMount",Mp);f.addEventListener("focusScope.autoFocusOnMount",v),f.dispatchEvent(D),D.defaultPrevented||(function(I,{select:C=!1}={}){const k=document.activeElement;for(const T of I)if(Br(T,{select:C}),document.activeElement!==k)return}((y=Dp(f),y.filter(I=>I.tagName!=="A")),{select:!0}),document.activeElement===E&&Br(f))}return()=>{f.removeEventListener("focusScope.autoFocusOnMount",v),setTimeout(()=>{const D=new Event("focusScope.autoFocusOnUnmount",Mp);f.addEventListener("focusScope.autoFocusOnUnmount",g),f.dispatchEvent(D),D.defaultPrevented||Br(E??document.body,{select:!0}),f.removeEventListener("focusScope.autoFocusOnUnmount",g),Np.remove(m)},0)}}var y},[f,v,g,m]);const S=L.useCallback(y=>{if(!n&&!o||m.paused)return;const E=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,D=document.activeElement;if(E&&D){const I=y.currentTarget,[C,k]=function(T){const H=Dp(T),U=kp(H,T),j=kp(H.reverse(),T);return[U,j]}(I);C&&k?y.shiftKey||D!==k?y.shiftKey&&D===C&&(y.preventDefault(),n&&Br(k,{select:!0})):(y.preventDefault(),n&&Br(C,{select:!0})):D===I&&y.preventDefault()}},[n,o,m.paused]);return L.createElement(Mi.div,wt({tabIndex:-1},l,{ref:O,onKeyDown:S}))});function Dp(e){const r=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const a=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||a?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)r.push(n.currentNode);return r}function kp(e,r){for(const n of e)if(!IT(n,{upTo:r}))return n}function IT(e,{upTo:r}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(r!==void 0&&e===r)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Br(e,{select:r=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(o){return o instanceof HTMLInputElement&&"select"in o}(e)&&r&&e.select()}}const Np=function(){let e=[];return{add(r){const n=e[0];r!==n&&(n==null||n.pause()),e=$p(e,r),e.unshift(r)},remove(r){var n;e=$p(e,r),(n=e[0])===null||n===void 0||n.resume()}}}();function $p(e,r){const n=[...e],o=n.indexOf(r);return o!==-1&&n.splice(o,1),n}function LT(e){const r=Qr(e);L.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[r])}let jp,Ra=0;function MT({disabled:e}){const r=L.useRef(!1);ho(()=>{if(e){let n=function(){Ra--,Ra===0&&(document.body.style.pointerEvents=jp)},o=function(a){r.current=a.pointerType!=="mouse"};return Ra===0&&(jp=document.body.style.pointerEvents),document.body.style.pointerEvents="none",Ra++,document.addEventListener("pointerup",o),()=>{r.current?document.addEventListener("click",n,{once:!0}):n(),document.removeEventListener("pointerup",o)}}},[e])}function Vr(e,r,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return r==null?void 0:r(o)}}const DT=L.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),kT=L.forwardRef((e,r)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:u,onInteractOutside:l,onDismiss:f,...d}=e,v=L.useContext(DT),[g,_]=L.useState(null),[,O]=L.useState({}),m=ei(r,H=>_(H)),S=Array.from(v.layers),[y]=[...v.layersWithOutsidePointerEventsDisabled].slice(-1),E=S.indexOf(y),D=g?S.indexOf(g):-1,I=v.layersWithOutsidePointerEventsDisabled.size>0,C=D>=E,k=function(H){const U=Qr(H),j=L.useRef(!1);return L.useEffect(()=>{const Z=ge=>{ge.target&&!j.current&&Wp("dismissableLayer.pointerDownOutside",U,{originalEvent:ge}),j.current=!1},ee=window.setTimeout(()=>{document.addEventListener("pointerdown",Z)},0);return()=>{window.clearTimeout(ee),document.removeEventListener("pointerdown",Z)}},[U]),{onPointerDownCapture:()=>j.current=!0}}(H=>{const U=H.target,j=[...v.branches].some(Z=>Z.contains(U));C&&!j&&(a==null||a(H),l==null||l(H),H.defaultPrevented||f==null||f())}),T=function(H){const U=Qr(H),j=L.useRef(!1);return L.useEffect(()=>{const Z=ee=>{ee.target&&!j.current&&Wp("dismissableLayer.focusOutside",U,{originalEvent:ee})};return document.addEventListener("focusin",Z),()=>document.removeEventListener("focusin",Z)},[U]),{onFocusCapture:()=>j.current=!0,onBlurCapture:()=>j.current=!1}}(H=>{const U=H.target;[...v.branches].some(j=>j.contains(U))||(u==null||u(H),l==null||l(H),H.defaultPrevented||f==null||f())});return LT(H=>{D===v.layers.size-1&&(o==null||o(H),H.defaultPrevented||f==null||f())}),MT({disabled:n}),L.useEffect(()=>{g&&(n&&v.layersWithOutsidePointerEventsDisabled.add(g),v.layers.add(g),Fp())},[g,n,v]),L.useEffect(()=>()=>{g&&(v.layers.delete(g),v.layersWithOutsidePointerEventsDisabled.delete(g),Fp())},[g,v]),L.useEffect(()=>{const H=()=>O({});return document.addEventListener("dismissableLayer.update",H),()=>document.removeEventListener("dismissableLayer.update",H)},[]),L.createElement(Mi.div,wt({},d,{ref:m,style:{pointerEvents:I?C?"auto":"none":void 0,...e.style},onFocusCapture:Vr(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Vr(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Vr(e.onPointerDownCapture,k.onPointerDownCapture)}))});function Fp(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function Wp(e,r,n){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});return r&&o.addEventListener(e,r,{once:!0}),!o.dispatchEvent(a)}function Hp(e){const[r,n]=L.useState(void 0);return L.useEffect(()=>{if(e){const o=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const u=a[0];let l,f;if("borderBoxSize"in u){const d=u.borderBoxSize,v=Array.isArray(d)?d[0]:d;l=v.inlineSize,f=v.blockSize}else{const d=e.getBoundingClientRect();l=d.width,f=d.height}n({width:l,height:f})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}n(void 0)},[e]),r}function NT(e,r){const n=qr.get(e);return n===void 0?(qr.set(e,{rect:{},callbacks:[r]}),qr.size===1&&(Tl=requestAnimationFrame(Iv))):(n.callbacks.push(r),r(e.getBoundingClientRect())),()=>{const o=qr.get(e);if(o===void 0)return;const a=o.callbacks.indexOf(r);a>-1&&o.callbacks.splice(a,1),o.callbacks.length===0&&(qr.delete(e),qr.size===0&&cancelAnimationFrame(Tl))}}let Tl;const qr=new Map;function Iv(){const e=[];qr.forEach((r,n)=>{const o=n.getBoundingClientRect();var a,u;a=r.rect,u=o,(a.width!==u.width||a.height!==u.height||a.top!==u.top||a.right!==u.right||a.bottom!==u.bottom||a.left!==u.left)&&(r.rect=o,e.push(r))}),e.forEach(r=>{r.callbacks.forEach(n=>n(r.rect))}),Tl=requestAnimationFrame(Iv)}function $T(e){const[r,n]=L.useState();return L.useEffect(()=>{if(e){const o=NT(e,n);return()=>{n(void 0),o()}}},[e]),r}function Lv(e,r=[]){let n=[];const o=()=>{const a=n.map(u=>L.createContext(u));return function(u){const l=(u==null?void 0:u[e])||a;return L.useMemo(()=>({[`__scope${e}`]:{...u,[e]:l}}),[u,l])}};return o.scopeName=e,[function(a,u){const l=L.createContext(u),f=n.length;function d(v){const{scope:g,children:_,...O}=v,m=(g==null?void 0:g[e][f])||l,S=L.useMemo(()=>O,Object.values(O));return L.createElement(m.Provider,{value:S},_)}return n=[...n,u],d.displayName=a+"Provider",[d,function(v,g){const _=(g==null?void 0:g[e][f])||l,O=L.useContext(_);if(O)return O;if(u!==void 0)return u;throw new Error(`\`${v}\` must be used within \`${a}\``)}]},jT(o,...r)]}function jT(...e){const r=e[0];if(e.length===1)return r;const n=()=>{const o=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(a){const u=o.reduce((l,{useScope:f,scopeName:d})=>({...l,...f(a)[`__scope${d}`]}),{});return L.useMemo(()=>({[`__scope${r.scopeName}`]:u}),[u])}};return n.scopeName=r.scopeName,n}function FT({anchorRect:e,popperSize:r,arrowSize:n,arrowOffset:o=0,side:a,sideOffset:u=0,align:l,alignOffset:f=0,shouldAvoidCollisions:d=!0,collisionBoundariesRect:v,collisionTolerance:g=0}){if(!e||!r||!v)return{popperStyles:WT,arrowStyles:Yu};const _=function(U,j,Z=0,ee=0,ge){const Ce=ge?ge.height:0,_e=Up(j,U,"x"),se=Up(j,U,"y"),Le=se.before-Z-Ce,we=se.after+Z+Ce,xe=_e.before-Z-Ce,We=_e.after+Z+Ce;return{top:{start:{x:_e.start+ee,y:Le},center:{x:_e.center,y:Le},end:{x:_e.end-ee,y:Le}},right:{start:{x:We,y:se.start+ee},center:{x:We,y:se.center},end:{x:We,y:se.end-ee}},bottom:{start:{x:_e.start+ee,y:we},center:{x:_e.center,y:we},end:{x:_e.end-ee,y:we}},left:{start:{x:xe,y:se.start+ee},center:{x:xe,y:se.center},end:{x:xe,y:se.end-ee}}}}(r,e,u,f,n),O=_[a][l];if(d===!1){const U=Bp(O);let j=Yu;return n&&(j=qp({popperSize:r,arrowSize:n,arrowOffset:o,side:a,align:l})),{popperStyles:{...U,"--radix-popper-transform-origin":zp(r,a,l,o,n)},arrowStyles:j,placedSide:a,placedAlign:l}}const m=DOMRect.fromRect({...r,...O}),S=(y=v,E=g,DOMRect.fromRect({width:y.width-2*E,height:y.height-2*E,x:y.left+E,y:y.top+E}));var y,E;const D=Kp(m,S),I=_[Gp(a)][l],C=function(U,j,Z){const ee=Gp(U);return j[U]&&!Z[ee]?ee:U}(a,D,Kp(DOMRect.fromRect({...r,...I}),S)),k=function(U,j,Z,ee,ge){const Ce=Z==="top"||Z==="bottom",_e=Ce?"left":"top",se=Ce?"right":"bottom",Le=Ce?"width":"height",we=j[Le]>U[Le];return(ee==="start"||ee==="center")&&(ge[_e]&&we||ge[se]&&!we)?"end":(ee==="end"||ee==="center")&&(ge[se]&&we||ge[_e]&&!we)?"start":ee}(r,e,a,l,D),T=Bp(_[C][k]);let H=Yu;return n&&(H=qp({popperSize:r,arrowSize:n,arrowOffset:o,side:C,align:k})),{popperStyles:{...T,"--radix-popper-transform-origin":zp(r,C,k,o,n)},arrowStyles:H,placedSide:C,placedAlign:k}}function Up(e,r,n){const o=e[n==="x"?"left":"top"],a=n==="x"?"width":"height",u=e[a],l=r[a];return{before:o-l,start:o,center:o+(u-l)/2,end:o+u-l,after:o+u}}function Bp(e){return{position:"absolute",top:0,left:0,minWidth:"max-content",willChange:"transform",transform:`translate3d(${Math.round(e.x+window.scrollX)}px, ${Math.round(e.y+window.scrollY)}px, 0)`}}function zp(e,r,n,o,a){const u=r==="top"||r==="bottom",l=a?a.width:0,f=a?a.height:0,d=l/2+o;let v="",g="";return u?(v={start:`${d}px`,center:"center",end:e.width-d+"px"}[n],g=r==="top"?`${e.height+f}px`:-f+"px"):(v=r==="left"?`${e.width+f}px`:-f+"px",g={start:`${d}px`,center:"center",end:e.height-d+"px"}[n]),`${v} ${g}`}const WT={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},Yu={position:"absolute",opacity:0};function qp({popperSize:e,arrowSize:r,arrowOffset:n,side:o,align:a}){const u=(e.width-r.width)/2,l=(e.height-r.width)/2,f={top:0,right:90,bottom:180,left:-90}[o],d=Math.max(r.width,r.height),v={width:`${d}px`,height:`${d}px`,transform:`rotate(${f}deg)`,willChange:"transform",position:"absolute",[o]:"100%",direction:HT(o,a)};return o!=="top"&&o!=="bottom"||(a==="start"&&(v.left=`${n}px`),a==="center"&&(v.left=`${u}px`),a==="end"&&(v.right=`${n}px`)),o!=="left"&&o!=="right"||(a==="start"&&(v.top=`${n}px`),a==="center"&&(v.top=`${l}px`),a==="end"&&(v.bottom=`${n}px`)),v}function HT(e,r){return(e!=="top"&&e!=="right"||r!=="end")&&(e!=="bottom"&&e!=="left"||r==="end")?"ltr":"rtl"}function Gp(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function Kp(e,r){return{top:e.top<r.top,right:e.right>r.right,bottom:e.bottom>r.bottom,left:e.left<r.left}}const[Mv,Dv]=Lv("Popper"),[UT,kv]=Mv("Popper"),BT=e=>{const{__scopePopper:r,children:n}=e,[o,a]=L.useState(null);return L.createElement(UT,{scope:r,anchor:o,onAnchorChange:a},n)},zT=L.forwardRef((e,r)=>{const{__scopePopper:n,virtualRef:o,...a}=e,u=kv("PopperAnchor",n),l=L.useRef(null),f=ei(r,l);return L.useEffect(()=>{u.onAnchorChange((o==null?void 0:o.current)||l.current)}),o?null:L.createElement(Mi.div,wt({},a,{ref:f}))}),[qT,pI]=Mv("PopperContent"),GT=L.forwardRef((e,r)=>{const{__scopePopper:n,side:o="bottom",sideOffset:a,align:u="center",alignOffset:l,collisionTolerance:f,avoidCollisions:d=!0,...v}=e,g=kv("PopperContent",n),[_,O]=L.useState(),m=$T(g.anchor),[S,y]=L.useState(null),E=Hp(S),[D,I]=L.useState(null),C=Hp(D),k=ei(r,Ce=>y(Ce)),T=function(){const[Ce,_e]=L.useState(void 0);return L.useEffect(()=>{let se;function Le(){_e({width:window.innerWidth,height:window.innerHeight})}function we(){window.clearTimeout(se),se=window.setTimeout(Le,100)}return Le(),window.addEventListener("resize",we),()=>window.removeEventListener("resize",we)},[]),Ce}(),H=T?DOMRect.fromRect({...T,x:0,y:0}):void 0,{popperStyles:U,arrowStyles:j,placedSide:Z,placedAlign:ee}=FT({anchorRect:m,popperSize:E,arrowSize:C,arrowOffset:_,side:o,sideOffset:a,align:u,alignOffset:l,shouldAvoidCollisions:d,collisionBoundariesRect:H,collisionTolerance:f}),ge=Z!==void 0;return L.createElement("div",{style:U,"data-radix-popper-content-wrapper":""},L.createElement(qT,{scope:n,arrowStyles:j,onArrowChange:I,onArrowOffsetChange:O},L.createElement(Mi.div,wt({"data-side":Z,"data-align":ee},v,{style:{...v.style,animation:ge?void 0:"none"},ref:k}))))}),KT=BT,YT=zT,XT=GT;function VT({prop:e,defaultProp:r,onChange:n=()=>{}}){const[o,a]=function({defaultProp:d,onChange:v}){const g=L.useState(d),[_]=g,O=L.useRef(_),m=Qr(v);return L.useEffect(()=>{O.current!==_&&(m(_),O.current=_)},[_,O,m]),g}({defaultProp:r,onChange:n}),u=e!==void 0,l=u?e:o,f=Qr(n);return[l,L.useCallback(d=>{if(u){const v=d,g=typeof d=="function"?v(e):d;g!==e&&f(g)}else a(d)},[u,e,a,f])]}const[ZT,hI]=Lv("Popover",[Dv]),tc=Dv(),[JT,So]=ZT("Popover"),QT=e=>{const{__scopePopover:r,children:n,open:o,defaultOpen:a,onOpenChange:u,modal:l=!1}=e,f=tc(r),d=L.useRef(null),[v,g]=L.useState(!1),[_=!1,O]=VT({prop:o,defaultProp:a,onChange:u});return L.createElement(KT,f,L.createElement(JT,{scope:r,contentId:TT(),triggerRef:d,open:_,onOpenChange:O,onOpenToggle:L.useCallback(()=>O(m=>!m),[O]),hasCustomAnchor:v,onCustomAnchorAdd:L.useCallback(()=>g(!0),[]),onCustomAnchorRemove:L.useCallback(()=>g(!1),[]),modal:l},n))},eC=L.forwardRef((e,r)=>{const{__scopePopover:n,...o}=e,a=So("PopoverTrigger",n),u=tc(n),l=ei(r,a.triggerRef),f=L.createElement(Mi.button,wt({type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":$v(a.open)},o,{ref:l,onClick:Vr(e.onClick,a.onOpenToggle)}));return a.hasCustomAnchor?f:L.createElement(YT,wt({asChild:!0},u),f)}),tC=L.forwardRef((e,r)=>{const{forceMount:n,...o}=e,a=So("PopoverContent",e.__scopePopover);return L.createElement(Pv,{present:n||a.open},a.modal?L.createElement(nC,wt({},o,{ref:r})):L.createElement(rC,wt({},o,{ref:r})))}),nC=L.forwardRef((e,r)=>{const{allowPinchZoom:n,portalled:o=!0,...a}=e,u=So("PopoverContent",e.__scopePopover),l=L.useRef(null),f=ei(r,l),d=L.useRef(!1);L.useEffect(()=>{const g=l.current;if(g)return UO(g)},[]);const v=o?Av:L.Fragment;return L.createElement(v,null,L.createElement(ET,{allowPinchZoom:n},L.createElement(Nv,wt({},a,{ref:f,trapFocus:u.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Vr(e.onCloseAutoFocus,g=>{var _;g.preventDefault(),d.current||(_=u.triggerRef.current)===null||_===void 0||_.focus()}),onPointerDownOutside:Vr(e.onPointerDownOutside,g=>{const _=g.detail.originalEvent,O=_.button===0&&_.ctrlKey===!0,m=_.button===2||O;d.current=m},{checkForDefaultPrevented:!1}),onFocusOutside:Vr(e.onFocusOutside,g=>g.preventDefault(),{checkForDefaultPrevented:!1})}))))}),rC=L.forwardRef((e,r)=>{const{portalled:n=!0,...o}=e,a=So("PopoverContent",e.__scopePopover),u=L.useRef(!1),l=n?Av:L.Fragment;return L.createElement(l,null,L.createElement(Nv,wt({},o,{ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:f=>{var d,v;(d=e.onCloseAutoFocus)===null||d===void 0||d.call(e,f),f.defaultPrevented||(u.current||(v=a.triggerRef.current)===null||v===void 0||v.focus(),f.preventDefault()),u.current=!1},onInteractOutside:f=>{var d,v;(d=e.onInteractOutside)===null||d===void 0||d.call(e,f),f.defaultPrevented||(u.current=!0);const g=f.target;!((v=a.triggerRef.current)===null||v===void 0)&&v.contains(g)&&f.preventDefault()}})))}),Nv=L.forwardRef((e,r)=>{const{__scopePopover:n,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:u,disableOutsidePointerEvents:l,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:v,onInteractOutside:g,..._}=e,O=So("PopoverContent",n),m=tc(n);return PT(),L.createElement(AT,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:u},L.createElement(kT,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:g,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:v,onDismiss:()=>O.onOpenChange(!1)},L.createElement(XT,wt({"data-state":$v(O.open),role:"dialog",id:O.contentId},m,_,{ref:r,style:{..._.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))});function $v(e){return e?"open":"closed"}const iC=QT,oC=eC,aC=tC;var Ua=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(Ua||{});var jv={},ss={},nc={},Xu={},Pa={exports:{}},Aa={exports:{}},Ue={};/** @license React v16.13.1
127
127
  * react-is.production.min.js
128
128
  *
129
129
  * Copyright (c) Facebook, Inc. and its affiliates.
130
130
  *
131
131
  * This source code is licensed under the MIT license found in the
132
132
  * LICENSE file in the root directory of this source tree.
133
- */var Gp;function oC(){if(Gp)return Ue;Gp=1;var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,u=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,v=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,_=e?Symbol.for("react.suspense"):60113,O=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,D=e?Symbol.for("react.responder"):60118,I=e?Symbol.for("react.scope"):60119;function C(T){if(typeof T=="object"&&T!==null){var H=T.$$typeof;switch(H){case r:switch(T=T.type,T){case d:case v:case o:case u:case a:case _:return T;default:switch(T=T&&T.$$typeof,T){case f:case g:case S:case m:case l:return T;default:return H}}case n:return H}}}function k(T){return C(T)===v}return Ue.AsyncMode=d,Ue.ConcurrentMode=v,Ue.ContextConsumer=f,Ue.ContextProvider=l,Ue.Element=r,Ue.ForwardRef=g,Ue.Fragment=o,Ue.Lazy=S,Ue.Memo=m,Ue.Portal=n,Ue.Profiler=u,Ue.StrictMode=a,Ue.Suspense=_,Ue.isAsyncMode=function(T){return k(T)||C(T)===d},Ue.isConcurrentMode=k,Ue.isContextConsumer=function(T){return C(T)===f},Ue.isContextProvider=function(T){return C(T)===l},Ue.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===r},Ue.isForwardRef=function(T){return C(T)===g},Ue.isFragment=function(T){return C(T)===o},Ue.isLazy=function(T){return C(T)===S},Ue.isMemo=function(T){return C(T)===m},Ue.isPortal=function(T){return C(T)===n},Ue.isProfiler=function(T){return C(T)===u},Ue.isStrictMode=function(T){return C(T)===a},Ue.isSuspense=function(T){return C(T)===_},Ue.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===o||T===v||T===u||T===a||T===_||T===O||typeof T=="object"&&T!==null&&(T.$$typeof===S||T.$$typeof===m||T.$$typeof===l||T.$$typeof===f||T.$$typeof===g||T.$$typeof===E||T.$$typeof===D||T.$$typeof===I||T.$$typeof===y)},Ue.typeOf=C,Ue}var Be={};/** @license React v16.13.1
133
+ */var Yp;function sC(){if(Yp)return Ue;Yp=1;var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,u=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,v=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,_=e?Symbol.for("react.suspense"):60113,O=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,D=e?Symbol.for("react.responder"):60118,I=e?Symbol.for("react.scope"):60119;function C(T){if(typeof T=="object"&&T!==null){var H=T.$$typeof;switch(H){case r:switch(T=T.type,T){case d:case v:case o:case u:case a:case _:return T;default:switch(T=T&&T.$$typeof,T){case f:case g:case S:case m:case l:return T;default:return H}}case n:return H}}}function k(T){return C(T)===v}return Ue.AsyncMode=d,Ue.ConcurrentMode=v,Ue.ContextConsumer=f,Ue.ContextProvider=l,Ue.Element=r,Ue.ForwardRef=g,Ue.Fragment=o,Ue.Lazy=S,Ue.Memo=m,Ue.Portal=n,Ue.Profiler=u,Ue.StrictMode=a,Ue.Suspense=_,Ue.isAsyncMode=function(T){return k(T)||C(T)===d},Ue.isConcurrentMode=k,Ue.isContextConsumer=function(T){return C(T)===f},Ue.isContextProvider=function(T){return C(T)===l},Ue.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===r},Ue.isForwardRef=function(T){return C(T)===g},Ue.isFragment=function(T){return C(T)===o},Ue.isLazy=function(T){return C(T)===S},Ue.isMemo=function(T){return C(T)===m},Ue.isPortal=function(T){return C(T)===n},Ue.isProfiler=function(T){return C(T)===u},Ue.isStrictMode=function(T){return C(T)===a},Ue.isSuspense=function(T){return C(T)===_},Ue.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===o||T===v||T===u||T===a||T===_||T===O||typeof T=="object"&&T!==null&&(T.$$typeof===S||T.$$typeof===m||T.$$typeof===l||T.$$typeof===f||T.$$typeof===g||T.$$typeof===E||T.$$typeof===D||T.$$typeof===I||T.$$typeof===y)},Ue.typeOf=C,Ue}var Be={};/** @license React v16.13.1
134
134
  * react-is.development.js
135
135
  *
136
136
  * Copyright (c) Facebook, Inc. and its affiliates.
137
137
  *
138
138
  * This source code is licensed under the MIT license found in the
139
139
  * LICENSE file in the root directory of this source tree.
140
- */var Kp;function aC(){return Kp||(Kp=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,u=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,v=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,_=e?Symbol.for("react.suspense"):60113,O=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,D=e?Symbol.for("react.responder"):60118,I=e?Symbol.for("react.scope"):60119;function C(V){return typeof V=="string"||typeof V=="function"||V===o||V===v||V===u||V===a||V===_||V===O||typeof V=="object"&&V!==null&&(V.$$typeof===S||V.$$typeof===m||V.$$typeof===l||V.$$typeof===f||V.$$typeof===g||V.$$typeof===E||V.$$typeof===D||V.$$typeof===I||V.$$typeof===y)}function k(V){if(typeof V=="object"&&V!==null){var rt=V.$$typeof;switch(rt){case r:var it=V.type;switch(it){case d:case v:case o:case u:case a:case _:return it;default:var dt=it&&it.$$typeof;switch(dt){case f:case g:case S:case m:case l:return dt;default:return rt}}case n:return rt}}}var T=d,H=v,U=f,j=l,J=r,ee=g,ge=o,Ce=S,_e=m,se=n,Le=u,we=a,xe=_,We=!1;function ut(V){return We||(We=!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.")),G(V)||k(V)===d}function G(V){return k(V)===v}function X(V){return k(V)===f}function de(V){return k(V)===l}function ie(V){return typeof V=="object"&&V!==null&&V.$$typeof===r}function ce(V){return k(V)===g}function fe(V){return k(V)===o}function ue(V){return k(V)===S}function pe(V){return k(V)===m}function le(V){return k(V)===n}function ye(V){return k(V)===u}function be(V){return k(V)===a}function Ke(V){return k(V)===_}Be.AsyncMode=T,Be.ConcurrentMode=H,Be.ContextConsumer=U,Be.ContextProvider=j,Be.Element=J,Be.ForwardRef=ee,Be.Fragment=ge,Be.Lazy=Ce,Be.Memo=_e,Be.Portal=se,Be.Profiler=Le,Be.StrictMode=we,Be.Suspense=xe,Be.isAsyncMode=ut,Be.isConcurrentMode=G,Be.isContextConsumer=X,Be.isContextProvider=de,Be.isElement=ie,Be.isForwardRef=ce,Be.isFragment=fe,Be.isLazy=ue,Be.isMemo=pe,Be.isPortal=le,Be.isProfiler=ye,Be.isStrictMode=be,Be.isSuspense=Ke,Be.isValidElementType=C,Be.typeOf=k}()),Be}var Yp;function Nv(){return Yp||(Yp=1,process.env.NODE_ENV==="production"?Pa.exports=oC():Pa.exports=aC()),Pa.exports}var Xu,Xp;function nc(){if(Xp)return Xu;Xp=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Xu=e,Xu}var Vu,Vp;function $v(){return Vp||(Vp=1,Vu=Function.call.bind(Object.prototype.hasOwnProperty)),Vu}var Ju,Jp;function sC(){if(Jp)return Ju;Jp=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var r=nc(),n={},o=$v();e=function(u){var l="Warning: "+u;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function a(u,l,f,d,v){if(process.env.NODE_ENV!=="production"){for(var g in u)if(o(u,g)){var _;try{if(typeof u[g]!="function"){var O=Error((d||"React class")+": "+f+" type `"+g+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof u[g]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw O.name="Invariant Violation",O}_=u[g](l,g,d,f,null,r)}catch(S){_=S}if(_&&!(_ instanceof Error)&&e((d||"React class")+": type specification of "+f+" `"+g+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof _+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),_ instanceof Error&&!(_.message in n)){n[_.message]=!0;var m=v?v():"";e("Failed "+f+" type: "+_.message+(m??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Ju=a,Ju}var Zu,Zp;function uC(){if(Zp)return Zu;Zp=1;var e=Nv(),r=Fl(),n=nc(),o=$v(),a=sC(),u=function(){};process.env.NODE_ENV!=="production"&&(u=function(f){var d="Warning: "+f;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function l(){return null}return Zu=function(f,d){var v=typeof Symbol=="function"&&Symbol.iterator,g="@@iterator";function _(G){var X=G&&(v&&G[v]||G[g]);if(typeof X=="function")return X}var O="<<anonymous>>",m={array:D("array"),bigint:D("bigint"),bool:D("boolean"),func:D("function"),number:D("number"),object:D("object"),string:D("string"),symbol:D("symbol"),any:I(),arrayOf:C,element:k(),elementType:T(),instanceOf:H,node:ee(),objectOf:j,oneOf:U,oneOfType:J,shape:Ce,exact:_e};function S(G,X){return G===X?G!==0||1/G===1/X:G!==G&&X!==X}function y(G,X){this.message=G,this.data=X&&typeof X=="object"?X:{},this.stack=""}y.prototype=Error.prototype;function E(G){if(process.env.NODE_ENV!=="production")var X={},de=0;function ie(fe,ue,pe,le,ye,be,Ke){if(le=le||O,be=be||pe,Ke!==n){if(d){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 rt=le+":"+pe;!X[rt]&&de<3&&(u("You are manually calling a React.PropTypes validation function for the `"+be+"` prop on `"+le+"`. 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."),X[rt]=!0,de++)}}return ue[pe]==null?fe?ue[pe]===null?new y("The "+ye+" `"+be+"` is marked as required "+("in `"+le+"`, but its value is `null`.")):new y("The "+ye+" `"+be+"` is marked as required in "+("`"+le+"`, but its value is `undefined`.")):null:G(ue,pe,le,ye,be)}var ce=ie.bind(null,!1);return ce.isRequired=ie.bind(null,!0),ce}function D(G){function X(de,ie,ce,fe,ue,pe){var le=de[ie],ye=we(le);if(ye!==G){var be=xe(le);return new y("Invalid "+fe+" `"+ue+"` of type "+("`"+be+"` supplied to `"+ce+"`, expected ")+("`"+G+"`."),{expectedType:G})}return null}return E(X)}function I(){return E(l)}function C(G){function X(de,ie,ce,fe,ue){if(typeof G!="function")return new y("Property `"+ue+"` of component `"+ce+"` has invalid PropType notation inside arrayOf.");var pe=de[ie];if(!Array.isArray(pe)){var le=we(pe);return new y("Invalid "+fe+" `"+ue+"` of type "+("`"+le+"` supplied to `"+ce+"`, expected an array."))}for(var ye=0;ye<pe.length;ye++){var be=G(pe,ye,ce,fe,ue+"["+ye+"]",n);if(be instanceof Error)return be}return null}return E(X)}function k(){function G(X,de,ie,ce,fe){var ue=X[de];if(!f(ue)){var pe=we(ue);return new y("Invalid "+ce+" `"+fe+"` of type "+("`"+pe+"` supplied to `"+ie+"`, expected a single ReactElement."))}return null}return E(G)}function T(){function G(X,de,ie,ce,fe){var ue=X[de];if(!e.isValidElementType(ue)){var pe=we(ue);return new y("Invalid "+ce+" `"+fe+"` of type "+("`"+pe+"` supplied to `"+ie+"`, expected a single ReactElement type."))}return null}return E(G)}function H(G){function X(de,ie,ce,fe,ue){if(!(de[ie]instanceof G)){var pe=G.name||O,le=ut(de[ie]);return new y("Invalid "+fe+" `"+ue+"` of type "+("`"+le+"` supplied to `"+ce+"`, expected ")+("instance of `"+pe+"`."))}return null}return E(X)}function U(G){if(!Array.isArray(G))return process.env.NODE_ENV!=="production"&&(arguments.length>1?u("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])."):u("Invalid argument supplied to oneOf, expected an array.")),l;function X(de,ie,ce,fe,ue){for(var pe=de[ie],le=0;le<G.length;le++)if(S(pe,G[le]))return null;var ye=JSON.stringify(G,function(Ke,V){var rt=xe(V);return rt==="symbol"?String(V):V});return new y("Invalid "+fe+" `"+ue+"` of value `"+String(pe)+"` "+("supplied to `"+ce+"`, expected one of "+ye+"."))}return E(X)}function j(G){function X(de,ie,ce,fe,ue){if(typeof G!="function")return new y("Property `"+ue+"` of component `"+ce+"` has invalid PropType notation inside objectOf.");var pe=de[ie],le=we(pe);if(le!=="object")return new y("Invalid "+fe+" `"+ue+"` of type "+("`"+le+"` supplied to `"+ce+"`, expected an object."));for(var ye in pe)if(o(pe,ye)){var be=G(pe,ye,ce,fe,ue+"."+ye,n);if(be instanceof Error)return be}return null}return E(X)}function J(G){if(!Array.isArray(G))return process.env.NODE_ENV!=="production"&&u("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var X=0;X<G.length;X++){var de=G[X];if(typeof de!="function")return u("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+We(de)+" at index "+X+"."),l}function ie(ce,fe,ue,pe,le){for(var ye=[],be=0;be<G.length;be++){var Ke=G[be],V=Ke(ce,fe,ue,pe,le,n);if(V==null)return null;V.data&&o(V.data,"expectedType")&&ye.push(V.data.expectedType)}var rt=ye.length>0?", expected one of type ["+ye.join(", ")+"]":"";return new y("Invalid "+pe+" `"+le+"` supplied to "+("`"+ue+"`"+rt+"."))}return E(ie)}function ee(){function G(X,de,ie,ce,fe){return se(X[de])?null:new y("Invalid "+ce+" `"+fe+"` supplied to "+("`"+ie+"`, expected a ReactNode."))}return E(G)}function ge(G,X,de,ie,ce){return new y((G||"React class")+": "+X+" type `"+de+"."+ie+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ce+"`.")}function Ce(G){function X(de,ie,ce,fe,ue){var pe=de[ie],le=we(pe);if(le!=="object")return new y("Invalid "+fe+" `"+ue+"` of type `"+le+"` "+("supplied to `"+ce+"`, expected `object`."));for(var ye in G){var be=G[ye];if(typeof be!="function")return ge(ce,fe,ue,ye,xe(be));var Ke=be(pe,ye,ce,fe,ue+"."+ye,n);if(Ke)return Ke}return null}return E(X)}function _e(G){function X(de,ie,ce,fe,ue){var pe=de[ie],le=we(pe);if(le!=="object")return new y("Invalid "+fe+" `"+ue+"` of type `"+le+"` "+("supplied to `"+ce+"`, expected `object`."));var ye=r({},de[ie],G);for(var be in ye){var Ke=G[be];if(o(G,be)&&typeof Ke!="function")return ge(ce,fe,ue,be,xe(Ke));if(!Ke)return new y("Invalid "+fe+" `"+ue+"` key `"+be+"` supplied to `"+ce+"`.\nBad object: "+JSON.stringify(de[ie],null," ")+`
141
- Valid keys: `+JSON.stringify(Object.keys(G),null," "));var V=Ke(pe,be,ce,fe,ue+"."+be,n);if(V)return V}return null}return E(X)}function se(G){switch(typeof G){case"number":case"string":case"undefined":return!0;case"boolean":return!G;case"object":if(Array.isArray(G))return G.every(se);if(G===null||f(G))return!0;var X=_(G);if(X){var de=X.call(G),ie;if(X!==G.entries){for(;!(ie=de.next()).done;)if(!se(ie.value))return!1}else for(;!(ie=de.next()).done;){var ce=ie.value;if(ce&&!se(ce[1]))return!1}}else return!1;return!0;default:return!1}}function Le(G,X){return G==="symbol"?!0:X?X["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&X instanceof Symbol:!1}function we(G){var X=typeof G;return Array.isArray(G)?"array":G instanceof RegExp?"object":Le(X,G)?"symbol":X}function xe(G){if(typeof G>"u"||G===null)return""+G;var X=we(G);if(X==="object"){if(G instanceof Date)return"date";if(G instanceof RegExp)return"regexp"}return X}function We(G){var X=xe(G);switch(X){case"array":case"object":return"an "+X;case"boolean":case"date":case"regexp":return"a "+X;default:return X}}function ut(G){return!G.constructor||!G.constructor.name?O:G.constructor.name}return m.checkPropTypes=a,m.resetWarningCache=a.resetWarningCache,m.PropTypes=m,m},Zu}var Qu,Qp;function lC(){if(Qp)return Qu;Qp=1;var e=nc();function r(){}function n(){}return n.resetWarningCache=r,Qu=function(){function o(l,f,d,v,g,_){if(_!==e){var O=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 O.name="Invariant Violation",O}}o.isRequired=o;function a(){return o}var u={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:a,element:o,elementType:o,instanceOf:a,node:o,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:r};return u.PropTypes=u,u},Qu}var eh;function cC(){if(eh)return Ra.exports;if(eh=1,process.env.NODE_ENV!=="production"){var e=Nv(),r=!0;Ra.exports=uC()(e.isElement,r)}else Ra.exports=lC()();return Ra.exports}var th;function fC(){return th||(th=1,function(e){(function(r,n){n(e,N,cC())})(zr,function(r,n,o){Object.defineProperty(r,"__esModule",{value:!0}),r.setHasSupportToCaptureOption=S;var a=l(n),u=l(o);function l(I){return I&&I.__esModule?I:{default:I}}var f=Object.assign||function(I){for(var C=1;C<arguments.length;C++){var k=arguments[C];for(var T in k)Object.prototype.hasOwnProperty.call(k,T)&&(I[T]=k[T])}return I};function d(I,C){var k={};for(var T in I)C.indexOf(T)>=0||Object.prototype.hasOwnProperty.call(I,T)&&(k[T]=I[T]);return k}function v(I,C){if(!(I instanceof C))throw new TypeError("Cannot call a class as a function")}var g=function(){function I(C,k){for(var T=0;T<k.length;T++){var H=k[T];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(C,H.key,H)}}return function(C,k,T){return k&&I(C.prototype,k),T&&I(C,T),C}}();function _(I,C){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:I}function O(I,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);I.prototype=Object.create(C&&C.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(I,C):I.__proto__=C)}var m=!1;function S(I){m=I}try{addEventListener("test",null,Object.defineProperty({},"capture",{get:function(){S(!0)}}))}catch{}function y(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return m?I:I.capture}function E(I){if("touches"in I){var C=I.touches[0],k=C.pageX,T=C.pageY;return{x:k,y:T}}var H=I.screenX,U=I.screenY;return{x:H,y:U}}var D=function(I){O(C,I);function C(){var k;v(this,C);for(var T=arguments.length,H=Array(T),U=0;U<T;U++)H[U]=arguments[U];var j=_(this,(k=C.__proto__||Object.getPrototypeOf(C)).call.apply(k,[this].concat(H)));return j._handleSwipeStart=j._handleSwipeStart.bind(j),j._handleSwipeMove=j._handleSwipeMove.bind(j),j._handleSwipeEnd=j._handleSwipeEnd.bind(j),j._onMouseDown=j._onMouseDown.bind(j),j._onMouseMove=j._onMouseMove.bind(j),j._onMouseUp=j._onMouseUp.bind(j),j._setSwiperRef=j._setSwiperRef.bind(j),j}return g(C,[{key:"componentDidMount",value:function(){this.swiper&&this.swiper.addEventListener("touchmove",this._handleSwipeMove,y({capture:!0,passive:!1}))}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.removeEventListener("touchmove",this._handleSwipeMove,y({capture:!0,passive:!1}))}},{key:"_onMouseDown",value:function(T){this.props.allowMouseEvents&&(this.mouseDown=!0,document.addEventListener("mouseup",this._onMouseUp),document.addEventListener("mousemove",this._onMouseMove),this._handleSwipeStart(T))}},{key:"_onMouseMove",value:function(T){this.mouseDown&&this._handleSwipeMove(T)}},{key:"_onMouseUp",value:function(T){this.mouseDown=!1,document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("mousemove",this._onMouseMove),this._handleSwipeEnd(T)}},{key:"_handleSwipeStart",value:function(T){var H=E(T),U=H.x,j=H.y;this.moveStart={x:U,y:j},this.props.onSwipeStart(T)}},{key:"_handleSwipeMove",value:function(T){if(this.moveStart){var H=E(T),U=H.x,j=H.y,J=U-this.moveStart.x,ee=j-this.moveStart.y;this.moving=!0;var ge=this.props.onSwipeMove({x:J,y:ee},T);ge&&T.cancelable&&T.preventDefault(),this.movePosition={deltaX:J,deltaY:ee}}}},{key:"_handleSwipeEnd",value:function(T){this.props.onSwipeEnd(T);var H=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-H?this.props.onSwipeLeft(1,T):this.movePosition.deltaX>H&&this.props.onSwipeRight(1,T),this.movePosition.deltaY<-H?this.props.onSwipeUp(1,T):this.movePosition.deltaY>H&&this.props.onSwipeDown(1,T)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(T){this.swiper=T,this.props.innerRef(T)}},{key:"render",value:function(){var T=this.props;T.tagName;var H=T.className,U=T.style,j=T.children;T.allowMouseEvents,T.onSwipeUp,T.onSwipeDown,T.onSwipeLeft,T.onSwipeRight,T.onSwipeStart,T.onSwipeMove,T.onSwipeEnd,T.innerRef,T.tolerance;var J=d(T,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return a.default.createElement(this.props.tagName,f({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:H,style:U},J),j)}}]),C}(n.Component);D.displayName="ReactSwipe",D.propTypes={tagName:u.default.string,className:u.default.string,style:u.default.object,children:u.default.node,allowMouseEvents:u.default.bool,onSwipeUp:u.default.func,onSwipeDown:u.default.func,onSwipeLeft:u.default.func,onSwipeRight:u.default.func,onSwipeStart:u.default.func,onSwipeMove:u.default.func,onSwipeEnd:u.default.func,innerRef:u.default.func,tolerance:u.default.number.isRequired},D.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},r.default=D})}(Yu)),Yu}(function(e){(function(r,n){n(e,fC())})(zr,function(r,n){Object.defineProperty(r,"__esModule",{value:!0});var o=a(n);function a(u){return u&&u.__esModule?u:{default:u}}r.default=o.default})})(tc);var So={};Object.defineProperty(So,"__esModule",{value:!0});So.default=void 0;var mr=dC($h);function dC(e){return e&&e.__esModule?e:{default:e}}function pC(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var hC={ROOT:function(r){return(0,mr.default)(pC({"carousel-root":!0},r||"",!!r))},CAROUSEL:function(r){return(0,mr.default)({carousel:!0,"carousel-slider":r})},WRAPPER:function(r,n){return(0,mr.default)({"thumbs-wrapper":!r,"slider-wrapper":r,"axis-horizontal":n==="horizontal","axis-vertical":n!=="horizontal"})},SLIDER:function(r,n){return(0,mr.default)({thumbs:!r,slider:r,animated:!n})},ITEM:function(r,n,o){return(0,mr.default)({thumb:!r,slide:r,selected:n,previous:o})},ARROW_PREV:function(r){return(0,mr.default)({"control-arrow control-prev":!0,"control-disabled":r})},ARROW_NEXT:function(r){return(0,mr.default)({"control-arrow control-next":!0,"control-disabled":r})},DOT:function(r){return(0,mr.default)({dot:!0,selected:r})}};So.default=hC;var Eo={},ss={};Object.defineProperty(ss,"__esModule",{value:!0});ss.outerWidth=void 0;var vC=function(r){var n=r.offsetWidth,o=getComputedStyle(r);return n+=parseInt(o.marginLeft)+parseInt(o.marginRight),n};ss.outerWidth=vC;var Mi={};Object.defineProperty(Mi,"__esModule",{value:!0});Mi.default=void 0;var mC=function(r,n,o){var a=r===0?r:r+n,u=o==="horizontal"?[a,0,0]:[0,a,0],l="translate3d",f="("+u.join(",")+")";return l+f};Mi.default=mC;var xo={};Object.defineProperty(xo,"__esModule",{value:!0});xo.default=void 0;var gC=function(){return window};xo.default=gC;Object.defineProperty(Eo,"__esModule",{value:!0});Eo.default=void 0;var On=bC(N),Ur=us(So),yC=ss,nh=us(Mi),wC=us(tc),Aa=us(xo);function us(e){return e&&e.__esModule?e:{default:e}}function jv(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return jv=function(){return e},e}function bC(e){if(e&&e.__esModule)return e;if(e===null||ao(e)!=="object"&&typeof e!="function")return{default:e};var r=jv();if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var u=o?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(n,a,u):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function ao(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ao=function(n){return typeof n}:ao=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ao(e)}function Tl(){return Tl=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Tl.apply(this,arguments)}function _C(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function rh(e,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function SC(e,r,n){return r&&rh(e.prototype,r),n&&rh(e,n),e}function EC(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&Cl(e,r)}function Cl(e,r){return Cl=Object.setPrototypeOf||function(o,a){return o.__proto__=a,o},Cl(e,r)}function xC(e){var r=TC();return function(){var o=Ya(e),a;if(r){var u=Ya(this).constructor;a=Reflect.construct(o,arguments,u)}else a=o.apply(this,arguments);return OC(this,a)}}function OC(e,r){return r&&(ao(r)==="object"||typeof r=="function")?r:Ft(e)}function Ft(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TC(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Ya(e){return Ya=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ya(e)}function Mt(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var CC=function(r){return r.hasOwnProperty("key")},rc=function(e){EC(n,e);var r=xC(n);function n(o){var a;return _C(this,n),a=r.call(this,o),Mt(Ft(a),"itemsWrapperRef",void 0),Mt(Ft(a),"itemsListRef",void 0),Mt(Ft(a),"thumbsRef",void 0),Mt(Ft(a),"setItemsWrapperRef",function(u){a.itemsWrapperRef=u}),Mt(Ft(a),"setItemsListRef",function(u){a.itemsListRef=u}),Mt(Ft(a),"setThumbsRef",function(u,l){a.thumbsRef||(a.thumbsRef=[]),a.thumbsRef[l]=u}),Mt(Ft(a),"updateSizes",function(){if(!(!a.props.children||!a.itemsWrapperRef||!a.thumbsRef)){var u=On.Children.count(a.props.children),l=a.itemsWrapperRef.clientWidth,f=a.props.thumbWidth?a.props.thumbWidth:(0,yC.outerWidth)(a.thumbsRef[0]),d=Math.floor(l/f),v=d<u,g=v?u-d:0;a.setState(function(_,O){return{itemSize:f,visibleItems:d,firstItem:v?a.getFirstItem(O.selectedItem):0,lastPosition:g,showArrows:v}})}}),Mt(Ft(a),"handleClickItem",function(u,l,f){if(!CC(f)||f.key==="Enter"){var d=a.props.onSelectItem;typeof d=="function"&&d(u,l)}}),Mt(Ft(a),"onSwipeStart",function(){a.setState({swiping:!0})}),Mt(Ft(a),"onSwipeEnd",function(){a.setState({swiping:!1})}),Mt(Ft(a),"onSwipeMove",function(u){var l=u.x;if(!a.state.itemSize||!a.itemsWrapperRef||!a.state.visibleItems)return!1;var f=0,d=On.Children.count(a.props.children),v=-(a.state.firstItem*100)/a.state.visibleItems,g=Math.max(d-a.state.visibleItems,0),_=-g*100/a.state.visibleItems;v===f&&l>0&&(l=0),v===_&&l<0&&(l=0);var O=a.itemsWrapperRef.clientWidth,m=v+100/(O/l);return a.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(S){a.itemsListRef.style[S]=(0,nh.default)(m,"%",a.props.axis)}),!0}),Mt(Ft(a),"slideRight",function(u){a.moveTo(a.state.firstItem-(typeof u=="number"?u:1))}),Mt(Ft(a),"slideLeft",function(u){a.moveTo(a.state.firstItem+(typeof u=="number"?u:1))}),Mt(Ft(a),"moveTo",function(u){u=u<0?0:u,u=u>=a.state.lastPosition?a.state.lastPosition:u,a.setState({firstItem:u})}),a.state={selectedItem:o.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},a}return SC(n,[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"componentDidUpdate",value:function(a){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==a.children&&this.updateSizes()}},{key:"componentWillUnmount",value:function(){this.destroyThumbs()}},{key:"setupThumbs",value:function(){(0,Aa.default)().addEventListener("resize",this.updateSizes),(0,Aa.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,Aa.default)().removeEventListener("resize",this.updateSizes),(0,Aa.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(a){var u=a;return a>=this.state.lastPosition&&(u=this.state.lastPosition),a<this.state.firstItem+this.state.visibleItems&&(u=this.state.firstItem),a<this.state.firstItem&&(u=a),u}},{key:"renderItems",value:function(){var a=this;return this.props.children.map(function(u,l){var f=Ur.default.ITEM(!1,l===a.state.selectedItem),d={key:l,ref:function(g){return a.setThumbsRef(g,l)},className:f,onClick:a.handleClickItem.bind(a,l,a.props.children[l]),onKeyDown:a.handleClickItem.bind(a,l,a.props.children[l]),"aria-label":"".concat(a.props.labels.item," ").concat(l+1),style:{width:a.props.thumbWidth}};return On.default.createElement("li",Tl({},d,{role:"button",tabIndex:0}),u)})}},{key:"render",value:function(){var a=this;if(!this.props.children)return null;var u=On.Children.count(this.props.children)>1,l=this.state.showArrows&&this.state.firstItem>0,f=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,d={},v=-this.state.firstItem*(this.state.itemSize||0),g=(0,nh.default)(v,"px",this.props.axis),_=this.props.transitionTime+"ms";return d={WebkitTransform:g,MozTransform:g,MsTransform:g,OTransform:g,transform:g,msTransform:g,WebkitTransitionDuration:_,MozTransitionDuration:_,MsTransitionDuration:_,OTransitionDuration:_,transitionDuration:_,msTransitionDuration:_},On.default.createElement("div",{className:Ur.default.CAROUSEL(!1)},On.default.createElement("div",{className:Ur.default.WRAPPER(!1),ref:this.setItemsWrapperRef},On.default.createElement("button",{type:"button",className:Ur.default.ARROW_PREV(!l),onClick:function(){return a.slideRight()},"aria-label":this.props.labels.leftArrow}),u?On.default.createElement(wC.default,{tagName:"ul",className:Ur.default.SLIDER(!1,this.state.swiping),onSwipeLeft:this.slideLeft,onSwipeRight:this.slideRight,onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:d,innerRef:this.setItemsListRef,allowMouseEvents:this.props.emulateTouch},this.renderItems()):On.default.createElement("ul",{className:Ur.default.SLIDER(!1,this.state.swiping),ref:function(m){return a.setItemsListRef(m)},style:d},this.renderItems()),On.default.createElement("button",{type:"button",className:Ur.default.ARROW_NEXT(!f),onClick:function(){return a.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}]),n}(On.Component);Eo.default=rc;Mt(rc,"displayName","Thumbs");Mt(rc,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350});var ls={};Object.defineProperty(ls,"__esModule",{value:!0});ls.default=void 0;var RC=function(){return document};ls.default=RC;var tn={};Object.defineProperty(tn,"__esModule",{value:!0});tn.setPosition=tn.getPosition=tn.isKeyboardEvent=tn.defaultStatusFormatter=tn.noop=void 0;var PC=N,AC=IC(Mi);function IC(e){return e&&e.__esModule?e:{default:e}}var LC=function(){};tn.noop=LC;var MC=function(r,n){return"".concat(r," of ").concat(n)};tn.defaultStatusFormatter=MC;var DC=function(r){return r?r.hasOwnProperty("key"):!1};tn.isKeyboardEvent=DC;var kC=function(r,n){if(n.infiniteLoop&&++r,r===0)return 0;var o=PC.Children.count(n.children);if(n.centerMode&&n.axis==="horizontal"){var a=-r*n.centerSlidePercentage,u=o-1;return r&&(r!==u||n.infiniteLoop)?a+=(100-n.centerSlidePercentage)/2:r===u&&(a+=100-n.centerSlidePercentage),a}return-r*100};tn.getPosition=kC;var NC=function(r,n){var o={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(a){o[a]=(0,AC.default)(r,"%",n)}),o};tn.setPosition=NC;var kn={};Object.defineProperty(kn,"__esModule",{value:!0});kn.fadeAnimationHandler=kn.slideStopSwipingHandler=kn.slideSwipeAnimationHandler=kn.slideAnimationHandler=void 0;var Fv=N,$C=jC(Mi),Nn=tn;function jC(e){return e&&e.__esModule?e:{default:e}}function ih(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,o)}return n}function Gr(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?ih(Object(n),!0).forEach(function(o){FC(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ih(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function FC(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var WC=function(r,n){var o={},a=n.selectedItem,u=a,l=Fv.Children.count(r.children)-1,f=r.infiniteLoop&&(a<0||a>l);if(f)return u<0?r.centerMode&&r.centerSlidePercentage&&r.axis==="horizontal"?o.itemListStyle=(0,Nn.setPosition)(-(l+2)*r.centerSlidePercentage-(100-r.centerSlidePercentage)/2,r.axis):o.itemListStyle=(0,Nn.setPosition)(-(l+2)*100,r.axis):u>l&&(o.itemListStyle=(0,Nn.setPosition)(0,r.axis)),o;var d=(0,Nn.getPosition)(a,r),v=(0,$C.default)(d,"%",r.axis),g=r.transitionTime+"ms";return o.itemListStyle={WebkitTransform:v,msTransform:v,OTransform:v,transform:v},n.swiping||(o.itemListStyle=Gr(Gr({},o.itemListStyle),{},{WebkitTransitionDuration:g,MozTransitionDuration:g,OTransitionDuration:g,transitionDuration:g,msTransitionDuration:g})),o};kn.slideAnimationHandler=WC;var HC=function(r,n,o,a){var u={},l=n.axis==="horizontal",f=Fv.Children.count(n.children),d=0,v=(0,Nn.getPosition)(o.selectedItem,n),g=n.infiniteLoop?(0,Nn.getPosition)(f-1,n)-100:(0,Nn.getPosition)(f-1,n),_=l?r.x:r.y,O=_;v===d&&_>0&&(O=0),v===g&&_<0&&(O=0);var m=v+100/(o.itemSize/O),S=Math.abs(_)>n.swipeScrollTolerance;return n.infiniteLoop&&S&&(o.selectedItem===0&&m>-100?m-=f*100:o.selectedItem===f-1&&m<-f*100&&(m+=f*100)),(!n.preventMovementUntilSwipeScrollTolerance||S||o.swipeMovementStarted)&&(o.swipeMovementStarted||a({swipeMovementStarted:!0}),u.itemListStyle=(0,Nn.setPosition)(m,n.axis)),S&&!o.cancelClick&&a({cancelClick:!0}),u};kn.slideSwipeAnimationHandler=HC;var UC=function(r,n){var o=(0,Nn.getPosition)(n.selectedItem,r),a=(0,Nn.setPosition)(o,r.axis);return{itemListStyle:a}};kn.slideStopSwipingHandler=UC;var BC=function(r,n){var o=r.transitionTime+"ms",a="ease-in-out",u={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:a,msTransitionTimingFunction:a,MozTransitionTimingFunction:a,WebkitTransitionTimingFunction:a,OTransitionTimingFunction:a};return n.swiping||(u=Gr(Gr({},u),{},{WebkitTransitionDuration:o,MozTransitionDuration:o,OTransitionDuration:o,transitionDuration:o,msTransitionDuration:o})),{slideStyle:u,selectedStyle:Gr(Gr({},u),{},{opacity:1,position:"relative"}),prevStyle:Gr({},u)}};kn.fadeAnimationHandler=BC;Object.defineProperty(as,"__esModule",{value:!0});as.default=void 0;var Ge=GC(N),zC=Oo(tc),Qn=Oo(So),qC=Oo(Eo),Ia=Oo(ls),La=Oo(xo),ro=tn,Xa=kn;function Oo(e){return e&&e.__esModule?e:{default:e}}function Wv(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return Wv=function(){return e},e}function GC(e){if(e&&e.__esModule)return e;if(e===null||so(e)!=="object"&&typeof e!="function")return{default:e};var r=Wv();if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var u=o?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(n,a,u):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function so(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?so=function(n){return typeof n}:so=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},so(e)}function Rl(){return Rl=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Rl.apply(this,arguments)}function oh(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,o)}return n}function Tn(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?oh(Object(n),!0).forEach(function(o){Ie(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oh(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function KC(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function ah(e,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function YC(e,r,n){return r&&ah(e.prototype,r),n&&ah(e,n),e}function XC(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&Pl(e,r)}function Pl(e,r){return Pl=Object.setPrototypeOf||function(o,a){return o.__proto__=a,o},Pl(e,r)}function VC(e){var r=ZC();return function(){var o=Va(e),a;if(r){var u=Va(this).constructor;a=Reflect.construct(o,arguments,u)}else a=o.apply(this,arguments);return JC(this,a)}}function JC(e,r){return r&&(so(r)==="object"||typeof r=="function")?r:Me(e)}function Me(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ZC(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Va(e){return Va=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Va(e)}function Ie(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var ic=function(e){XC(n,e);var r=VC(n);function n(o){var a;KC(this,n),a=r.call(this,o),Ie(Me(a),"thumbsRef",void 0),Ie(Me(a),"carouselWrapperRef",void 0),Ie(Me(a),"listRef",void 0),Ie(Me(a),"itemsRef",void 0),Ie(Me(a),"timer",void 0),Ie(Me(a),"animationHandler",void 0),Ie(Me(a),"setThumbsRef",function(l){a.thumbsRef=l}),Ie(Me(a),"setCarouselWrapperRef",function(l){a.carouselWrapperRef=l}),Ie(Me(a),"setListRef",function(l){a.listRef=l}),Ie(Me(a),"setItemsRef",function(l,f){a.itemsRef||(a.itemsRef=[]),a.itemsRef[f]=l}),Ie(Me(a),"autoPlay",function(){Ge.Children.count(a.props.children)<=1||(a.clearAutoPlay(),a.props.autoPlay&&(a.timer=setTimeout(function(){a.increment()},a.props.interval)))}),Ie(Me(a),"clearAutoPlay",function(){a.timer&&clearTimeout(a.timer)}),Ie(Me(a),"resetAutoPlay",function(){a.clearAutoPlay(),a.autoPlay()}),Ie(Me(a),"stopOnHover",function(){a.setState({isMouseEntered:!0},a.clearAutoPlay)}),Ie(Me(a),"startOnLeave",function(){a.setState({isMouseEntered:!1},a.autoPlay)}),Ie(Me(a),"isFocusWithinTheCarousel",function(){return a.carouselWrapperRef?!!((0,Ia.default)().activeElement===a.carouselWrapperRef||a.carouselWrapperRef.contains((0,Ia.default)().activeElement)):!1}),Ie(Me(a),"navigateWithKeyboard",function(l){if(a.isFocusWithinTheCarousel()){var f=a.props.axis,d=f==="horizontal",v={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},g=d?v.ArrowRight:v.ArrowDown,_=d?v.ArrowLeft:v.ArrowUp;g===l.keyCode?a.increment():_===l.keyCode&&a.decrement()}}),Ie(Me(a),"updateSizes",function(){if(!(!a.state.initialized||!a.itemsRef||a.itemsRef.length===0)){var l=a.props.axis==="horizontal",f=a.itemsRef[0];if(f){var d=l?f.clientWidth:f.clientHeight;a.setState({itemSize:d}),a.thumbsRef&&a.thumbsRef.updateSizes()}}}),Ie(Me(a),"setMountState",function(){a.setState({hasMount:!0}),a.updateSizes()}),Ie(Me(a),"handleClickItem",function(l,f){if(Ge.Children.count(a.props.children)!==0){if(a.state.cancelClick){a.setState({cancelClick:!1});return}a.props.onClickItem(l,f),l!==a.state.selectedItem&&a.setState({selectedItem:l})}}),Ie(Me(a),"handleOnChange",function(l,f){Ge.Children.count(a.props.children)<=1||a.props.onChange(l,f)}),Ie(Me(a),"handleClickThumb",function(l,f){a.props.onClickThumb(l,f),a.moveTo(l)}),Ie(Me(a),"onSwipeStart",function(l){a.setState({swiping:!0}),a.props.onSwipeStart(l)}),Ie(Me(a),"onSwipeEnd",function(l){a.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),a.props.onSwipeEnd(l),a.clearAutoPlay(),a.state.autoPlay&&a.autoPlay()}),Ie(Me(a),"onSwipeMove",function(l,f){a.props.onSwipeMove(f);var d=a.props.swipeAnimationHandler(l,a.props,a.state,a.setState.bind(Me(a)));return a.setState(Tn({},d)),!!Object.keys(d).length}),Ie(Me(a),"decrement",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;a.moveTo(a.state.selectedItem-(typeof l=="number"?l:1))}),Ie(Me(a),"increment",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;a.moveTo(a.state.selectedItem+(typeof l=="number"?l:1))}),Ie(Me(a),"moveTo",function(l){if(typeof l=="number"){var f=Ge.Children.count(a.props.children)-1;l<0&&(l=a.props.infiniteLoop?f:0),l>f&&(l=a.props.infiniteLoop?0:f),a.selectItem({selectedItem:l}),a.state.autoPlay&&a.state.isMouseEntered===!1&&a.resetAutoPlay()}}),Ie(Me(a),"onClickNext",function(){a.increment(1)}),Ie(Me(a),"onClickPrev",function(){a.decrement(1)}),Ie(Me(a),"onSwipeForward",function(){a.increment(1),a.props.emulateTouch&&a.setState({cancelClick:!0})}),Ie(Me(a),"onSwipeBackwards",function(){a.decrement(1),a.props.emulateTouch&&a.setState({cancelClick:!0})}),Ie(Me(a),"changeItem",function(l){return function(f){(!(0,ro.isKeyboardEvent)(f)||f.key==="Enter")&&a.moveTo(l)}}),Ie(Me(a),"selectItem",function(l){a.setState(Tn({previousItem:a.state.selectedItem},l),function(){a.setState(a.animationHandler(a.props,a.state))}),a.handleOnChange(l.selectedItem,Ge.Children.toArray(a.props.children)[l.selectedItem])}),Ie(Me(a),"getInitialImage",function(){var l=a.props.selectedItem,f=a.itemsRef&&a.itemsRef[l],d=f&&f.getElementsByTagName("img")||[];return d[0]}),Ie(Me(a),"getVariableItemHeight",function(l){var f=a.itemsRef&&a.itemsRef[l];if(a.state.hasMount&&f&&f.children.length){var d=f.children[0].getElementsByTagName("img")||[];if(d.length>0){var v=d[0];if(!v.complete){var g=function m(){a.forceUpdate(),v.removeEventListener("load",m)};v.addEventListener("load",g)}}var _=d[0]||f.children[0],O=_.clientHeight;return O>0?O:null}return null});var u={initialized:!1,previousItem:o.selectedItem,selectedItem:o.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:o.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return a.animationHandler=typeof o.animationHandler=="function"&&o.animationHandler||o.animationHandler==="fade"&&Xa.fadeAnimationHandler||Xa.slideAnimationHandler,a.state=Tn(Tn({},u),a.animationHandler(o,u)),a}return YC(n,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(a,u){!a.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!a.autoFocus&&this.props.autoFocus&&this.forceFocus(),u.swiping&&!this.state.swiping&&this.setState(Tn({},this.props.stopSwipingHandler(this.props,this.state))),(a.selectedItem!==this.props.selectedItem||a.centerMode!==this.props.centerMode)&&(this.updateSizes(),this.moveTo(this.props.selectedItem)),a.autoPlay!==this.props.autoPlay&&(this.props.autoPlay?this.setupAutoPlay():this.destroyAutoPlay(),this.setState({autoPlay:this.props.autoPlay}))}},{key:"componentWillUnmount",value:function(){this.destroyCarousel()}},{key:"setupCarousel",value:function(){var a=this;this.bindEvents(),this.state.autoPlay&&Ge.Children.count(this.props.children)>1&&this.setupAutoPlay(),this.props.autoFocus&&this.forceFocus(),this.setState({initialized:!0},function(){var u=a.getInitialImage();u&&!u.complete?u.addEventListener("load",a.setMountState):a.setMountState()})}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var a=this.carouselWrapperRef;this.props.stopOnHover&&a&&(a.addEventListener("mouseenter",this.stopOnHover),a.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var a=this.carouselWrapperRef;this.props.stopOnHover&&a&&(a.removeEventListener("mouseenter",this.stopOnHover),a.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,La.default)().addEventListener("resize",this.updateSizes),(0,La.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,Ia.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,La.default)().removeEventListener("resize",this.updateSizes),(0,La.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var a=this.getInitialImage();a&&a.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,Ia.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var a;(a=this.carouselWrapperRef)===null||a===void 0||a.focus()}},{key:"renderItems",value:function(a){var u=this;return this.props.children?Ge.Children.map(this.props.children,function(l,f){var d=f===u.state.selectedItem,v=f===u.state.previousItem,g=d&&u.state.selectedStyle||v&&u.state.prevStyle||u.state.slideStyle||{};u.props.centerMode&&u.props.axis==="horizontal"&&(g=Tn(Tn({},g),{},{minWidth:u.props.centerSlidePercentage+"%"})),u.state.swiping&&u.state.swipeMovementStarted&&(g=Tn(Tn({},g),{},{pointerEvents:"none"}));var _={ref:function(m){return u.setItemsRef(m,f)},key:"itemKey"+f+(a?"clone":""),className:Qn.default.ITEM(!0,f===u.state.selectedItem,f===u.state.previousItem),onClick:u.handleClickItem.bind(u,f,l),style:g};return Ge.default.createElement("li",_,u.props.renderItem(l,{isSelected:f===u.state.selectedItem,isPrevious:f===u.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var a=this,u=this.props,l=u.showIndicators,f=u.labels,d=u.renderIndicator,v=u.children;return l?Ge.default.createElement("ul",{className:"control-dots"},Ge.Children.map(v,function(g,_){return d&&d(a.changeItem(_),_===a.state.selectedItem,_,f.item)})):null}},{key:"renderStatus",value:function(){return this.props.showStatus?Ge.default.createElement("p",{className:"carousel-status"},this.props.statusFormatter(this.state.selectedItem+1,Ge.Children.count(this.props.children))):null}},{key:"renderThumbs",value:function(){return!this.props.showThumbs||!this.props.children||Ge.Children.count(this.props.children)===0?null:Ge.default.createElement(qC.default,{ref:this.setThumbsRef,onSelectItem:this.handleClickThumb,selectedItem:this.state.selectedItem,transitionTime:this.props.transitionTime,thumbWidth:this.props.thumbWidth,labels:this.props.labels,emulateTouch:this.props.emulateTouch},this.props.renderThumbs(this.props.children))}},{key:"render",value:function(){var a=this;if(!this.props.children||Ge.Children.count(this.props.children)===0)return null;var u=this.props.swipeable&&Ge.Children.count(this.props.children)>1,l=this.props.axis==="horizontal",f=this.props.showArrows&&Ge.Children.count(this.props.children)>1,d=f&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,v=f&&(this.state.selectedItem<Ge.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,g=this.renderItems(!0),_=g.shift(),O=g.pop(),m={className:Qn.default.SLIDER(!0,this.state.swiping),onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:this.state.itemListStyle,tolerance:this.props.swipeScrollTolerance},S={};if(l){if(m.onSwipeLeft=this.onSwipeForward,m.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var y=this.getVariableItemHeight(this.state.selectedItem);S.height=y||"auto"}}else m.onSwipeUp=this.props.verticalSwipe==="natural"?this.onSwipeBackwards:this.onSwipeForward,m.onSwipeDown=this.props.verticalSwipe==="natural"?this.onSwipeForward:this.onSwipeBackwards,m.style=Tn(Tn({},m.style),{},{height:this.state.itemSize}),S.height=this.state.itemSize;return Ge.default.createElement("div",{"aria-label":this.props.ariaLabel,className:Qn.default.ROOT(this.props.className),ref:this.setCarouselWrapperRef,tabIndex:this.props.useKeyboardArrows?0:void 0},Ge.default.createElement("div",{className:Qn.default.CAROUSEL(!0),style:{width:this.props.width}},this.renderControls(),this.props.renderArrowPrev(this.onClickPrev,d,this.props.labels.leftArrow),Ge.default.createElement("div",{className:Qn.default.WRAPPER(!0,this.props.axis),style:S},u?Ge.default.createElement(zC.default,Rl({tagName:"ul",innerRef:this.setListRef},m,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&O,this.renderItems(),this.props.infiniteLoop&&_):Ge.default.createElement("ul",{className:Qn.default.SLIDER(!0,this.state.swiping),ref:function(D){return a.setListRef(D)},style:this.state.itemListStyle||{}},this.props.infiniteLoop&&O,this.renderItems(),this.props.infiniteLoop&&_)),this.props.renderArrowNext(this.onClickNext,v,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}]),n}(Ge.default.Component);as.default=ic;Ie(ic,"displayName","Carousel");Ie(ic,"defaultProps",{ariaLabel:void 0,axis:"horizontal",centerSlidePercentage:80,interval:3e3,labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},onClickItem:ro.noop,onClickThumb:ro.noop,onChange:ro.noop,onSwipeStart:function(){},onSwipeEnd:function(){},onSwipeMove:function(){return!1},preventMovementUntilSwipeScrollTolerance:!1,renderArrowPrev:function(r,n,o){return Ge.default.createElement("button",{type:"button","aria-label":o,className:Qn.default.ARROW_PREV(!n),onClick:r})},renderArrowNext:function(r,n,o){return Ge.default.createElement("button",{type:"button","aria-label":o,className:Qn.default.ARROW_NEXT(!n),onClick:r})},renderIndicator:function(r,n,o,a){return Ge.default.createElement("li",{className:Qn.default.DOT(n),onClick:r,onKeyDown:r,value:o,key:o,role:"button",tabIndex:0,"aria-label":"".concat(a," ").concat(o+1)})},renderItem:function(r){return r},renderThumbs:function(r){var n=Ge.Children.map(r,function(o){var a=o;if(o.type!=="img"&&(a=Ge.Children.toArray(o.props.children).find(function(u){return u.type==="img"})),!!a)return a});return n.filter(function(o){return o}).length===0?(console.warn("No images found! Can't build the thumb list without images. If you don't need thumbs, set showThumbs={false} in the Carousel. Note that it's not possible to get images rendered inside custom components. More info at https://github.com/leandrowd/react-responsive-carousel/blob/master/TROUBLESHOOTING.md"),[]):n},statusFormatter:ro.defaultStatusFormatter,selectedItem:0,showArrows:!0,showIndicators:!0,showStatus:!0,showThumbs:!0,stopOnHover:!0,swipeScrollTolerance:5,swipeable:!0,transitionTime:350,verticalSwipe:"standard",width:"100%",animationHandler:"slide",swipeAnimationHandler:Xa.slideSwipeAnimationHandler,stopSwipingHandler:Xa.slideStopSwipingHandler});var QC={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Carousel",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"CarouselProps",{enumerable:!0,get:function(){return n.CarouselProps}}),Object.defineProperty(e,"Thumbs",{enumerable:!0,get:function(){return o.default}});var r=a(as),n=QC,o=a(Eo);function a(u){return u&&u.__esModule?u:{default:u}}})(kv);const eR=({tip:e})=>$.jsx("div",{className:"px-8 pb-8",children:Hv(e,!0)}),tR=({pages:e})=>$.jsx("div",{className:"min-h-[10rem] w-96",children:$.jsx(kv.Carousel,{autoPlay:!1,infiniteLoop:!0,showThumbs:!1,showArrows:!0,showStatus:!1,children:e&&e.map(r=>$.jsx(eR,{tip:r},r.key))})}),nR=({body:e,isInsideCarousel:r})=>$.jsx("article",{className:Ot(["prose prose-sm max-h-[10rem] overflow-auto p-1 px-2 text-left text-[12px] text-grey-100 ",{"w-60":!r}]),children:$.jsx(za,{children:e,options:{overrides:{a:{component:({children:n,...o})=>$.jsxs("a",{...o,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-start text-primary-dark",children:[n,$.jsx(kh,{className:"ml-1 mt-px h-4 w-4"})]})}}}})}),rR=({video:e,body:r,title:n,isInsideCarousel:o})=>$.jsxs("div",{className:Ot([{"flex flex-row":!o,"flex max-h-[10rem] flex-col overflow-y-auto":o}]),children:[$.jsx("div",{className:Ot([{"mr-1":!o,"mb-1":o}]),children:$.jsx("iframe",{height:o?"auto":90,width:o?"100%":160,src:e==null?void 0:e.link,title:n,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}),$.jsx("article",{className:Ot(["prose prose-sm p-1 text-left text-xs text-grey-100",{"w-60 overflow-auto":!o,"-mt-6":o}]),children:$.jsx(za,{children:r||"",options:{overrides:{a:{component:({children:a,...u})=>$.jsxs("a",{...u,target:"_blank",rel:"noopener noreferrer",className:"flex items-start",children:[a,$.jsx(kh,{className:"ml-1 mt-px h-4 w-4"})]})}}}})})]}),Hv=(e,r)=>{switch(e.type){case Ha.TEXT:return $.jsx(nR,{body:e.body,isInsideCarousel:r});case Ha.VIDEO:return $.jsx(rR,{video:e.video,body:e.body,title:e.title,isInsideCarousel:r});case Ha.CAROUSEL:return $.jsx(tR,{pages:e.pages})}},Uv=N.createContext(void 0);function sh(e,r){const n=[];return e.forEach(o=>{o.key===r&&n.push(o)}),n}const iR=({children:e,enabled:r,baseUrl:n="https://raw.githubusercontent.com/4d/Web-studio-TIPS/main"})=>{const[{tips:o,show:a},u]=N.useState({tips:{},show:!0});N.useEffect(()=>{const f=new AbortController;try{fetch(`${n}/tips.json`,{signal:f.signal}).then(d=>d.json()).then(d=>{const v=d.reduce((g,_)=>sh(d,_.key).length>1?{...g,[_.key]:{type:"carousel",pages:sh(d,_.key)}}:{...g,[_.key]:_},{});u(g=>({...g,tips:v}))})}catch{}return()=>{f.abort()}},[]);const l=()=>{u(f=>({...f,show:!a}))};return $.jsx(Uv.Provider,{value:{tips:o,toggleTips:l,show:a,enabled:r},children:e})},Bv=e=>{const r=N.useContext(Uv);if(r===void 0)throw new Error("useTip must be used within a TipsContext");return{tip:e?r.tips[e]:null,toggleTips:r.toggleTips,show:r.show,enabled:r.enabled}},oR=Ga(rC)`
140
+ */var Xp;function uC(){return Xp||(Xp=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,u=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,v=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,_=e?Symbol.for("react.suspense"):60113,O=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,D=e?Symbol.for("react.responder"):60118,I=e?Symbol.for("react.scope"):60119;function C(V){return typeof V=="string"||typeof V=="function"||V===o||V===v||V===u||V===a||V===_||V===O||typeof V=="object"&&V!==null&&(V.$$typeof===S||V.$$typeof===m||V.$$typeof===l||V.$$typeof===f||V.$$typeof===g||V.$$typeof===E||V.$$typeof===D||V.$$typeof===I||V.$$typeof===y)}function k(V){if(typeof V=="object"&&V!==null){var rt=V.$$typeof;switch(rt){case r:var it=V.type;switch(it){case d:case v:case o:case u:case a:case _:return it;default:var dt=it&&it.$$typeof;switch(dt){case f:case g:case S:case m:case l:return dt;default:return rt}}case n:return rt}}}var T=d,H=v,U=f,j=l,Z=r,ee=g,ge=o,Ce=S,_e=m,se=n,Le=u,we=a,xe=_,We=!1;function ut(V){return We||(We=!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.")),G(V)||k(V)===d}function G(V){return k(V)===v}function X(V){return k(V)===f}function de(V){return k(V)===l}function ie(V){return typeof V=="object"&&V!==null&&V.$$typeof===r}function ce(V){return k(V)===g}function fe(V){return k(V)===o}function ue(V){return k(V)===S}function pe(V){return k(V)===m}function le(V){return k(V)===n}function ye(V){return k(V)===u}function be(V){return k(V)===a}function Ge(V){return k(V)===_}Be.AsyncMode=T,Be.ConcurrentMode=H,Be.ContextConsumer=U,Be.ContextProvider=j,Be.Element=Z,Be.ForwardRef=ee,Be.Fragment=ge,Be.Lazy=Ce,Be.Memo=_e,Be.Portal=se,Be.Profiler=Le,Be.StrictMode=we,Be.Suspense=xe,Be.isAsyncMode=ut,Be.isConcurrentMode=G,Be.isContextConsumer=X,Be.isContextProvider=de,Be.isElement=ie,Be.isForwardRef=ce,Be.isFragment=fe,Be.isLazy=ue,Be.isMemo=pe,Be.isPortal=le,Be.isProfiler=ye,Be.isStrictMode=be,Be.isSuspense=Ge,Be.isValidElementType=C,Be.typeOf=k}()),Be}var Vp;function Fv(){return Vp||(Vp=1,process.env.NODE_ENV==="production"?Aa.exports=sC():Aa.exports=uC()),Aa.exports}var Vu,Zp;function rc(){if(Zp)return Vu;Zp=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Vu=e,Vu}var Zu,Jp;function Wv(){return Jp||(Jp=1,Zu=Function.call.bind(Object.prototype.hasOwnProperty)),Zu}var Ju,Qp;function lC(){if(Qp)return Ju;Qp=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var r=rc(),n={},o=Wv();e=function(u){var l="Warning: "+u;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function a(u,l,f,d,v){if(process.env.NODE_ENV!=="production"){for(var g in u)if(o(u,g)){var _;try{if(typeof u[g]!="function"){var O=Error((d||"React class")+": "+f+" type `"+g+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof u[g]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw O.name="Invariant Violation",O}_=u[g](l,g,d,f,null,r)}catch(S){_=S}if(_&&!(_ instanceof Error)&&e((d||"React class")+": type specification of "+f+" `"+g+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof _+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),_ instanceof Error&&!(_.message in n)){n[_.message]=!0;var m=v?v():"";e("Failed "+f+" type: "+_.message+(m??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Ju=a,Ju}var Qu,eh;function cC(){if(eh)return Qu;eh=1;var e=Fv(),r=Wl(),n=rc(),o=Wv(),a=lC(),u=function(){};process.env.NODE_ENV!=="production"&&(u=function(f){var d="Warning: "+f;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function l(){return null}return Qu=function(f,d){var v=typeof Symbol=="function"&&Symbol.iterator,g="@@iterator";function _(G){var X=G&&(v&&G[v]||G[g]);if(typeof X=="function")return X}var O="<<anonymous>>",m={array:D("array"),bigint:D("bigint"),bool:D("boolean"),func:D("function"),number:D("number"),object:D("object"),string:D("string"),symbol:D("symbol"),any:I(),arrayOf:C,element:k(),elementType:T(),instanceOf:H,node:ee(),objectOf:j,oneOf:U,oneOfType:Z,shape:Ce,exact:_e};function S(G,X){return G===X?G!==0||1/G===1/X:G!==G&&X!==X}function y(G,X){this.message=G,this.data=X&&typeof X=="object"?X:{},this.stack=""}y.prototype=Error.prototype;function E(G){if(process.env.NODE_ENV!=="production")var X={},de=0;function ie(fe,ue,pe,le,ye,be,Ge){if(le=le||O,be=be||pe,Ge!==n){if(d){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 rt=le+":"+pe;!X[rt]&&de<3&&(u("You are manually calling a React.PropTypes validation function for the `"+be+"` prop on `"+le+"`. 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."),X[rt]=!0,de++)}}return ue[pe]==null?fe?ue[pe]===null?new y("The "+ye+" `"+be+"` is marked as required "+("in `"+le+"`, but its value is `null`.")):new y("The "+ye+" `"+be+"` is marked as required in "+("`"+le+"`, but its value is `undefined`.")):null:G(ue,pe,le,ye,be)}var ce=ie.bind(null,!1);return ce.isRequired=ie.bind(null,!0),ce}function D(G){function X(de,ie,ce,fe,ue,pe){var le=de[ie],ye=we(le);if(ye!==G){var be=xe(le);return new y("Invalid "+fe+" `"+ue+"` of type "+("`"+be+"` supplied to `"+ce+"`, expected ")+("`"+G+"`."),{expectedType:G})}return null}return E(X)}function I(){return E(l)}function C(G){function X(de,ie,ce,fe,ue){if(typeof G!="function")return new y("Property `"+ue+"` of component `"+ce+"` has invalid PropType notation inside arrayOf.");var pe=de[ie];if(!Array.isArray(pe)){var le=we(pe);return new y("Invalid "+fe+" `"+ue+"` of type "+("`"+le+"` supplied to `"+ce+"`, expected an array."))}for(var ye=0;ye<pe.length;ye++){var be=G(pe,ye,ce,fe,ue+"["+ye+"]",n);if(be instanceof Error)return be}return null}return E(X)}function k(){function G(X,de,ie,ce,fe){var ue=X[de];if(!f(ue)){var pe=we(ue);return new y("Invalid "+ce+" `"+fe+"` of type "+("`"+pe+"` supplied to `"+ie+"`, expected a single ReactElement."))}return null}return E(G)}function T(){function G(X,de,ie,ce,fe){var ue=X[de];if(!e.isValidElementType(ue)){var pe=we(ue);return new y("Invalid "+ce+" `"+fe+"` of type "+("`"+pe+"` supplied to `"+ie+"`, expected a single ReactElement type."))}return null}return E(G)}function H(G){function X(de,ie,ce,fe,ue){if(!(de[ie]instanceof G)){var pe=G.name||O,le=ut(de[ie]);return new y("Invalid "+fe+" `"+ue+"` of type "+("`"+le+"` supplied to `"+ce+"`, expected ")+("instance of `"+pe+"`."))}return null}return E(X)}function U(G){if(!Array.isArray(G))return process.env.NODE_ENV!=="production"&&(arguments.length>1?u("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])."):u("Invalid argument supplied to oneOf, expected an array.")),l;function X(de,ie,ce,fe,ue){for(var pe=de[ie],le=0;le<G.length;le++)if(S(pe,G[le]))return null;var ye=JSON.stringify(G,function(Ge,V){var rt=xe(V);return rt==="symbol"?String(V):V});return new y("Invalid "+fe+" `"+ue+"` of value `"+String(pe)+"` "+("supplied to `"+ce+"`, expected one of "+ye+"."))}return E(X)}function j(G){function X(de,ie,ce,fe,ue){if(typeof G!="function")return new y("Property `"+ue+"` of component `"+ce+"` has invalid PropType notation inside objectOf.");var pe=de[ie],le=we(pe);if(le!=="object")return new y("Invalid "+fe+" `"+ue+"` of type "+("`"+le+"` supplied to `"+ce+"`, expected an object."));for(var ye in pe)if(o(pe,ye)){var be=G(pe,ye,ce,fe,ue+"."+ye,n);if(be instanceof Error)return be}return null}return E(X)}function Z(G){if(!Array.isArray(G))return process.env.NODE_ENV!=="production"&&u("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var X=0;X<G.length;X++){var de=G[X];if(typeof de!="function")return u("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+We(de)+" at index "+X+"."),l}function ie(ce,fe,ue,pe,le){for(var ye=[],be=0;be<G.length;be++){var Ge=G[be],V=Ge(ce,fe,ue,pe,le,n);if(V==null)return null;V.data&&o(V.data,"expectedType")&&ye.push(V.data.expectedType)}var rt=ye.length>0?", expected one of type ["+ye.join(", ")+"]":"";return new y("Invalid "+pe+" `"+le+"` supplied to "+("`"+ue+"`"+rt+"."))}return E(ie)}function ee(){function G(X,de,ie,ce,fe){return se(X[de])?null:new y("Invalid "+ce+" `"+fe+"` supplied to "+("`"+ie+"`, expected a ReactNode."))}return E(G)}function ge(G,X,de,ie,ce){return new y((G||"React class")+": "+X+" type `"+de+"."+ie+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ce+"`.")}function Ce(G){function X(de,ie,ce,fe,ue){var pe=de[ie],le=we(pe);if(le!=="object")return new y("Invalid "+fe+" `"+ue+"` of type `"+le+"` "+("supplied to `"+ce+"`, expected `object`."));for(var ye in G){var be=G[ye];if(typeof be!="function")return ge(ce,fe,ue,ye,xe(be));var Ge=be(pe,ye,ce,fe,ue+"."+ye,n);if(Ge)return Ge}return null}return E(X)}function _e(G){function X(de,ie,ce,fe,ue){var pe=de[ie],le=we(pe);if(le!=="object")return new y("Invalid "+fe+" `"+ue+"` of type `"+le+"` "+("supplied to `"+ce+"`, expected `object`."));var ye=r({},de[ie],G);for(var be in ye){var Ge=G[be];if(o(G,be)&&typeof Ge!="function")return ge(ce,fe,ue,be,xe(Ge));if(!Ge)return new y("Invalid "+fe+" `"+ue+"` key `"+be+"` supplied to `"+ce+"`.\nBad object: "+JSON.stringify(de[ie],null," ")+`
141
+ Valid keys: `+JSON.stringify(Object.keys(G),null," "));var V=Ge(pe,be,ce,fe,ue+"."+be,n);if(V)return V}return null}return E(X)}function se(G){switch(typeof G){case"number":case"string":case"undefined":return!0;case"boolean":return!G;case"object":if(Array.isArray(G))return G.every(se);if(G===null||f(G))return!0;var X=_(G);if(X){var de=X.call(G),ie;if(X!==G.entries){for(;!(ie=de.next()).done;)if(!se(ie.value))return!1}else for(;!(ie=de.next()).done;){var ce=ie.value;if(ce&&!se(ce[1]))return!1}}else return!1;return!0;default:return!1}}function Le(G,X){return G==="symbol"?!0:X?X["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&X instanceof Symbol:!1}function we(G){var X=typeof G;return Array.isArray(G)?"array":G instanceof RegExp?"object":Le(X,G)?"symbol":X}function xe(G){if(typeof G>"u"||G===null)return""+G;var X=we(G);if(X==="object"){if(G instanceof Date)return"date";if(G instanceof RegExp)return"regexp"}return X}function We(G){var X=xe(G);switch(X){case"array":case"object":return"an "+X;case"boolean":case"date":case"regexp":return"a "+X;default:return X}}function ut(G){return!G.constructor||!G.constructor.name?O:G.constructor.name}return m.checkPropTypes=a,m.resetWarningCache=a.resetWarningCache,m.PropTypes=m,m},Qu}var el,th;function fC(){if(th)return el;th=1;var e=rc();function r(){}function n(){}return n.resetWarningCache=r,el=function(){function o(l,f,d,v,g,_){if(_!==e){var O=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 O.name="Invariant Violation",O}}o.isRequired=o;function a(){return o}var u={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:a,element:o,elementType:o,instanceOf:a,node:o,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:r};return u.PropTypes=u,u},el}var nh;function dC(){if(nh)return Pa.exports;if(nh=1,process.env.NODE_ENV!=="production"){var e=Fv(),r=!0;Pa.exports=cC()(e.isElement,r)}else Pa.exports=fC()();return Pa.exports}var rh;function pC(){return rh||(rh=1,function(e){(function(r,n){n(e,N,dC())})(Gr,function(r,n,o){Object.defineProperty(r,"__esModule",{value:!0}),r.setHasSupportToCaptureOption=S;var a=l(n),u=l(o);function l(I){return I&&I.__esModule?I:{default:I}}var f=Object.assign||function(I){for(var C=1;C<arguments.length;C++){var k=arguments[C];for(var T in k)Object.prototype.hasOwnProperty.call(k,T)&&(I[T]=k[T])}return I};function d(I,C){var k={};for(var T in I)C.indexOf(T)>=0||Object.prototype.hasOwnProperty.call(I,T)&&(k[T]=I[T]);return k}function v(I,C){if(!(I instanceof C))throw new TypeError("Cannot call a class as a function")}var g=function(){function I(C,k){for(var T=0;T<k.length;T++){var H=k[T];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(C,H.key,H)}}return function(C,k,T){return k&&I(C.prototype,k),T&&I(C,T),C}}();function _(I,C){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:I}function O(I,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);I.prototype=Object.create(C&&C.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(I,C):I.__proto__=C)}var m=!1;function S(I){m=I}try{addEventListener("test",null,Object.defineProperty({},"capture",{get:function(){S(!0)}}))}catch{}function y(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return m?I:I.capture}function E(I){if("touches"in I){var C=I.touches[0],k=C.pageX,T=C.pageY;return{x:k,y:T}}var H=I.screenX,U=I.screenY;return{x:H,y:U}}var D=function(I){O(C,I);function C(){var k;v(this,C);for(var T=arguments.length,H=Array(T),U=0;U<T;U++)H[U]=arguments[U];var j=_(this,(k=C.__proto__||Object.getPrototypeOf(C)).call.apply(k,[this].concat(H)));return j._handleSwipeStart=j._handleSwipeStart.bind(j),j._handleSwipeMove=j._handleSwipeMove.bind(j),j._handleSwipeEnd=j._handleSwipeEnd.bind(j),j._onMouseDown=j._onMouseDown.bind(j),j._onMouseMove=j._onMouseMove.bind(j),j._onMouseUp=j._onMouseUp.bind(j),j._setSwiperRef=j._setSwiperRef.bind(j),j}return g(C,[{key:"componentDidMount",value:function(){this.swiper&&this.swiper.addEventListener("touchmove",this._handleSwipeMove,y({capture:!0,passive:!1}))}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.removeEventListener("touchmove",this._handleSwipeMove,y({capture:!0,passive:!1}))}},{key:"_onMouseDown",value:function(T){this.props.allowMouseEvents&&(this.mouseDown=!0,document.addEventListener("mouseup",this._onMouseUp),document.addEventListener("mousemove",this._onMouseMove),this._handleSwipeStart(T))}},{key:"_onMouseMove",value:function(T){this.mouseDown&&this._handleSwipeMove(T)}},{key:"_onMouseUp",value:function(T){this.mouseDown=!1,document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("mousemove",this._onMouseMove),this._handleSwipeEnd(T)}},{key:"_handleSwipeStart",value:function(T){var H=E(T),U=H.x,j=H.y;this.moveStart={x:U,y:j},this.props.onSwipeStart(T)}},{key:"_handleSwipeMove",value:function(T){if(this.moveStart){var H=E(T),U=H.x,j=H.y,Z=U-this.moveStart.x,ee=j-this.moveStart.y;this.moving=!0;var ge=this.props.onSwipeMove({x:Z,y:ee},T);ge&&T.cancelable&&T.preventDefault(),this.movePosition={deltaX:Z,deltaY:ee}}}},{key:"_handleSwipeEnd",value:function(T){this.props.onSwipeEnd(T);var H=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-H?this.props.onSwipeLeft(1,T):this.movePosition.deltaX>H&&this.props.onSwipeRight(1,T),this.movePosition.deltaY<-H?this.props.onSwipeUp(1,T):this.movePosition.deltaY>H&&this.props.onSwipeDown(1,T)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(T){this.swiper=T,this.props.innerRef(T)}},{key:"render",value:function(){var T=this.props;T.tagName;var H=T.className,U=T.style,j=T.children;T.allowMouseEvents,T.onSwipeUp,T.onSwipeDown,T.onSwipeLeft,T.onSwipeRight,T.onSwipeStart,T.onSwipeMove,T.onSwipeEnd,T.innerRef,T.tolerance;var Z=d(T,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return a.default.createElement(this.props.tagName,f({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:H,style:U},Z),j)}}]),C}(n.Component);D.displayName="ReactSwipe",D.propTypes={tagName:u.default.string,className:u.default.string,style:u.default.object,children:u.default.node,allowMouseEvents:u.default.bool,onSwipeUp:u.default.func,onSwipeDown:u.default.func,onSwipeLeft:u.default.func,onSwipeRight:u.default.func,onSwipeStart:u.default.func,onSwipeMove:u.default.func,onSwipeEnd:u.default.func,innerRef:u.default.func,tolerance:u.default.number.isRequired},D.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},r.default=D})}(Xu)),Xu}(function(e){(function(r,n){n(e,pC())})(Gr,function(r,n){Object.defineProperty(r,"__esModule",{value:!0});var o=a(n);function a(u){return u&&u.__esModule?u:{default:u}}r.default=o.default})})(nc);var Eo={};Object.defineProperty(Eo,"__esModule",{value:!0});Eo.default=void 0;var gr=hC(Wh);function hC(e){return e&&e.__esModule?e:{default:e}}function vC(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var mC={ROOT:function(r){return(0,gr.default)(vC({"carousel-root":!0},r||"",!!r))},CAROUSEL:function(r){return(0,gr.default)({carousel:!0,"carousel-slider":r})},WRAPPER:function(r,n){return(0,gr.default)({"thumbs-wrapper":!r,"slider-wrapper":r,"axis-horizontal":n==="horizontal","axis-vertical":n!=="horizontal"})},SLIDER:function(r,n){return(0,gr.default)({thumbs:!r,slider:r,animated:!n})},ITEM:function(r,n,o){return(0,gr.default)({thumb:!r,slide:r,selected:n,previous:o})},ARROW_PREV:function(r){return(0,gr.default)({"control-arrow control-prev":!0,"control-disabled":r})},ARROW_NEXT:function(r){return(0,gr.default)({"control-arrow control-next":!0,"control-disabled":r})},DOT:function(r){return(0,gr.default)({dot:!0,selected:r})}};Eo.default=mC;var xo={},us={};Object.defineProperty(us,"__esModule",{value:!0});us.outerWidth=void 0;var gC=function(r){var n=r.offsetWidth,o=getComputedStyle(r);return n+=parseInt(o.marginLeft)+parseInt(o.marginRight),n};us.outerWidth=gC;var Di={};Object.defineProperty(Di,"__esModule",{value:!0});Di.default=void 0;var yC=function(r,n,o){var a=r===0?r:r+n,u=o==="horizontal"?[a,0,0]:[0,a,0],l="translate3d",f="("+u.join(",")+")";return l+f};Di.default=yC;var Oo={};Object.defineProperty(Oo,"__esModule",{value:!0});Oo.default=void 0;var wC=function(){return window};Oo.default=wC;Object.defineProperty(xo,"__esModule",{value:!0});xo.default=void 0;var On=SC(N),zr=ls(Eo),bC=us,ih=ls(Di),_C=ls(nc),Ia=ls(Oo);function ls(e){return e&&e.__esModule?e:{default:e}}function Hv(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return Hv=function(){return e},e}function SC(e){if(e&&e.__esModule)return e;if(e===null||so(e)!=="object"&&typeof e!="function")return{default:e};var r=Hv();if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var u=o?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(n,a,u):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function so(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?so=function(n){return typeof n}:so=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},so(e)}function Cl(){return Cl=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Cl.apply(this,arguments)}function EC(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function oh(e,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function xC(e,r,n){return r&&oh(e.prototype,r),n&&oh(e,n),e}function OC(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&Rl(e,r)}function Rl(e,r){return Rl=Object.setPrototypeOf||function(o,a){return o.__proto__=a,o},Rl(e,r)}function TC(e){var r=RC();return function(){var o=Xa(e),a;if(r){var u=Xa(this).constructor;a=Reflect.construct(o,arguments,u)}else a=o.apply(this,arguments);return CC(this,a)}}function CC(e,r){return r&&(so(r)==="object"||typeof r=="function")?r:Ft(e)}function Ft(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function RC(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Xa(e){return Xa=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Xa(e)}function Mt(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var PC=function(r){return r.hasOwnProperty("key")},ic=function(e){OC(n,e);var r=TC(n);function n(o){var a;return EC(this,n),a=r.call(this,o),Mt(Ft(a),"itemsWrapperRef",void 0),Mt(Ft(a),"itemsListRef",void 0),Mt(Ft(a),"thumbsRef",void 0),Mt(Ft(a),"setItemsWrapperRef",function(u){a.itemsWrapperRef=u}),Mt(Ft(a),"setItemsListRef",function(u){a.itemsListRef=u}),Mt(Ft(a),"setThumbsRef",function(u,l){a.thumbsRef||(a.thumbsRef=[]),a.thumbsRef[l]=u}),Mt(Ft(a),"updateSizes",function(){if(!(!a.props.children||!a.itemsWrapperRef||!a.thumbsRef)){var u=On.Children.count(a.props.children),l=a.itemsWrapperRef.clientWidth,f=a.props.thumbWidth?a.props.thumbWidth:(0,bC.outerWidth)(a.thumbsRef[0]),d=Math.floor(l/f),v=d<u,g=v?u-d:0;a.setState(function(_,O){return{itemSize:f,visibleItems:d,firstItem:v?a.getFirstItem(O.selectedItem):0,lastPosition:g,showArrows:v}})}}),Mt(Ft(a),"handleClickItem",function(u,l,f){if(!PC(f)||f.key==="Enter"){var d=a.props.onSelectItem;typeof d=="function"&&d(u,l)}}),Mt(Ft(a),"onSwipeStart",function(){a.setState({swiping:!0})}),Mt(Ft(a),"onSwipeEnd",function(){a.setState({swiping:!1})}),Mt(Ft(a),"onSwipeMove",function(u){var l=u.x;if(!a.state.itemSize||!a.itemsWrapperRef||!a.state.visibleItems)return!1;var f=0,d=On.Children.count(a.props.children),v=-(a.state.firstItem*100)/a.state.visibleItems,g=Math.max(d-a.state.visibleItems,0),_=-g*100/a.state.visibleItems;v===f&&l>0&&(l=0),v===_&&l<0&&(l=0);var O=a.itemsWrapperRef.clientWidth,m=v+100/(O/l);return a.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(S){a.itemsListRef.style[S]=(0,ih.default)(m,"%",a.props.axis)}),!0}),Mt(Ft(a),"slideRight",function(u){a.moveTo(a.state.firstItem-(typeof u=="number"?u:1))}),Mt(Ft(a),"slideLeft",function(u){a.moveTo(a.state.firstItem+(typeof u=="number"?u:1))}),Mt(Ft(a),"moveTo",function(u){u=u<0?0:u,u=u>=a.state.lastPosition?a.state.lastPosition:u,a.setState({firstItem:u})}),a.state={selectedItem:o.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},a}return xC(n,[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"componentDidUpdate",value:function(a){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==a.children&&this.updateSizes()}},{key:"componentWillUnmount",value:function(){this.destroyThumbs()}},{key:"setupThumbs",value:function(){(0,Ia.default)().addEventListener("resize",this.updateSizes),(0,Ia.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,Ia.default)().removeEventListener("resize",this.updateSizes),(0,Ia.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(a){var u=a;return a>=this.state.lastPosition&&(u=this.state.lastPosition),a<this.state.firstItem+this.state.visibleItems&&(u=this.state.firstItem),a<this.state.firstItem&&(u=a),u}},{key:"renderItems",value:function(){var a=this;return this.props.children.map(function(u,l){var f=zr.default.ITEM(!1,l===a.state.selectedItem),d={key:l,ref:function(g){return a.setThumbsRef(g,l)},className:f,onClick:a.handleClickItem.bind(a,l,a.props.children[l]),onKeyDown:a.handleClickItem.bind(a,l,a.props.children[l]),"aria-label":"".concat(a.props.labels.item," ").concat(l+1),style:{width:a.props.thumbWidth}};return On.default.createElement("li",Cl({},d,{role:"button",tabIndex:0}),u)})}},{key:"render",value:function(){var a=this;if(!this.props.children)return null;var u=On.Children.count(this.props.children)>1,l=this.state.showArrows&&this.state.firstItem>0,f=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,d={},v=-this.state.firstItem*(this.state.itemSize||0),g=(0,ih.default)(v,"px",this.props.axis),_=this.props.transitionTime+"ms";return d={WebkitTransform:g,MozTransform:g,MsTransform:g,OTransform:g,transform:g,msTransform:g,WebkitTransitionDuration:_,MozTransitionDuration:_,MsTransitionDuration:_,OTransitionDuration:_,transitionDuration:_,msTransitionDuration:_},On.default.createElement("div",{className:zr.default.CAROUSEL(!1)},On.default.createElement("div",{className:zr.default.WRAPPER(!1),ref:this.setItemsWrapperRef},On.default.createElement("button",{type:"button",className:zr.default.ARROW_PREV(!l),onClick:function(){return a.slideRight()},"aria-label":this.props.labels.leftArrow}),u?On.default.createElement(_C.default,{tagName:"ul",className:zr.default.SLIDER(!1,this.state.swiping),onSwipeLeft:this.slideLeft,onSwipeRight:this.slideRight,onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:d,innerRef:this.setItemsListRef,allowMouseEvents:this.props.emulateTouch},this.renderItems()):On.default.createElement("ul",{className:zr.default.SLIDER(!1,this.state.swiping),ref:function(m){return a.setItemsListRef(m)},style:d},this.renderItems()),On.default.createElement("button",{type:"button",className:zr.default.ARROW_NEXT(!f),onClick:function(){return a.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}]),n}(On.Component);xo.default=ic;Mt(ic,"displayName","Thumbs");Mt(ic,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350});var cs={};Object.defineProperty(cs,"__esModule",{value:!0});cs.default=void 0;var AC=function(){return document};cs.default=AC;var tn={};Object.defineProperty(tn,"__esModule",{value:!0});tn.setPosition=tn.getPosition=tn.isKeyboardEvent=tn.defaultStatusFormatter=tn.noop=void 0;var IC=N,LC=MC(Di);function MC(e){return e&&e.__esModule?e:{default:e}}var DC=function(){};tn.noop=DC;var kC=function(r,n){return"".concat(r," of ").concat(n)};tn.defaultStatusFormatter=kC;var NC=function(r){return r?r.hasOwnProperty("key"):!1};tn.isKeyboardEvent=NC;var $C=function(r,n){if(n.infiniteLoop&&++r,r===0)return 0;var o=IC.Children.count(n.children);if(n.centerMode&&n.axis==="horizontal"){var a=-r*n.centerSlidePercentage,u=o-1;return r&&(r!==u||n.infiniteLoop)?a+=(100-n.centerSlidePercentage)/2:r===u&&(a+=100-n.centerSlidePercentage),a}return-r*100};tn.getPosition=$C;var jC=function(r,n){var o={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(a){o[a]=(0,LC.default)(r,"%",n)}),o};tn.setPosition=jC;var kn={};Object.defineProperty(kn,"__esModule",{value:!0});kn.fadeAnimationHandler=kn.slideStopSwipingHandler=kn.slideSwipeAnimationHandler=kn.slideAnimationHandler=void 0;var Uv=N,FC=WC(Di),Nn=tn;function WC(e){return e&&e.__esModule?e:{default:e}}function ah(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,o)}return n}function Yr(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?ah(Object(n),!0).forEach(function(o){HC(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ah(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function HC(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var UC=function(r,n){var o={},a=n.selectedItem,u=a,l=Uv.Children.count(r.children)-1,f=r.infiniteLoop&&(a<0||a>l);if(f)return u<0?r.centerMode&&r.centerSlidePercentage&&r.axis==="horizontal"?o.itemListStyle=(0,Nn.setPosition)(-(l+2)*r.centerSlidePercentage-(100-r.centerSlidePercentage)/2,r.axis):o.itemListStyle=(0,Nn.setPosition)(-(l+2)*100,r.axis):u>l&&(o.itemListStyle=(0,Nn.setPosition)(0,r.axis)),o;var d=(0,Nn.getPosition)(a,r),v=(0,FC.default)(d,"%",r.axis),g=r.transitionTime+"ms";return o.itemListStyle={WebkitTransform:v,msTransform:v,OTransform:v,transform:v},n.swiping||(o.itemListStyle=Yr(Yr({},o.itemListStyle),{},{WebkitTransitionDuration:g,MozTransitionDuration:g,OTransitionDuration:g,transitionDuration:g,msTransitionDuration:g})),o};kn.slideAnimationHandler=UC;var BC=function(r,n,o,a){var u={},l=n.axis==="horizontal",f=Uv.Children.count(n.children),d=0,v=(0,Nn.getPosition)(o.selectedItem,n),g=n.infiniteLoop?(0,Nn.getPosition)(f-1,n)-100:(0,Nn.getPosition)(f-1,n),_=l?r.x:r.y,O=_;v===d&&_>0&&(O=0),v===g&&_<0&&(O=0);var m=v+100/(o.itemSize/O),S=Math.abs(_)>n.swipeScrollTolerance;return n.infiniteLoop&&S&&(o.selectedItem===0&&m>-100?m-=f*100:o.selectedItem===f-1&&m<-f*100&&(m+=f*100)),(!n.preventMovementUntilSwipeScrollTolerance||S||o.swipeMovementStarted)&&(o.swipeMovementStarted||a({swipeMovementStarted:!0}),u.itemListStyle=(0,Nn.setPosition)(m,n.axis)),S&&!o.cancelClick&&a({cancelClick:!0}),u};kn.slideSwipeAnimationHandler=BC;var zC=function(r,n){var o=(0,Nn.getPosition)(n.selectedItem,r),a=(0,Nn.setPosition)(o,r.axis);return{itemListStyle:a}};kn.slideStopSwipingHandler=zC;var qC=function(r,n){var o=r.transitionTime+"ms",a="ease-in-out",u={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:a,msTransitionTimingFunction:a,MozTransitionTimingFunction:a,WebkitTransitionTimingFunction:a,OTransitionTimingFunction:a};return n.swiping||(u=Yr(Yr({},u),{},{WebkitTransitionDuration:o,MozTransitionDuration:o,OTransitionDuration:o,transitionDuration:o,msTransitionDuration:o})),{slideStyle:u,selectedStyle:Yr(Yr({},u),{},{opacity:1,position:"relative"}),prevStyle:Yr({},u)}};kn.fadeAnimationHandler=qC;Object.defineProperty(ss,"__esModule",{value:!0});ss.default=void 0;var qe=YC(N),GC=To(nc),er=To(Eo),KC=To(xo),La=To(cs),Ma=To(Oo),io=tn,Va=kn;function To(e){return e&&e.__esModule?e:{default:e}}function Bv(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return Bv=function(){return e},e}function YC(e){if(e&&e.__esModule)return e;if(e===null||uo(e)!=="object"&&typeof e!="function")return{default:e};var r=Bv();if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var u=o?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(n,a,u):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function uo(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?uo=function(n){return typeof n}:uo=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},uo(e)}function Pl(){return Pl=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Pl.apply(this,arguments)}function sh(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,o)}return n}function Tn(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?sh(Object(n),!0).forEach(function(o){Ie(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sh(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function XC(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function uh(e,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function VC(e,r,n){return r&&uh(e.prototype,r),n&&uh(e,n),e}function ZC(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&Al(e,r)}function Al(e,r){return Al=Object.setPrototypeOf||function(o,a){return o.__proto__=a,o},Al(e,r)}function JC(e){var r=eR();return function(){var o=Za(e),a;if(r){var u=Za(this).constructor;a=Reflect.construct(o,arguments,u)}else a=o.apply(this,arguments);return QC(this,a)}}function QC(e,r){return r&&(uo(r)==="object"||typeof r=="function")?r:Me(e)}function Me(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eR(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Za(e){return Za=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Za(e)}function Ie(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var oc=function(e){ZC(n,e);var r=JC(n);function n(o){var a;XC(this,n),a=r.call(this,o),Ie(Me(a),"thumbsRef",void 0),Ie(Me(a),"carouselWrapperRef",void 0),Ie(Me(a),"listRef",void 0),Ie(Me(a),"itemsRef",void 0),Ie(Me(a),"timer",void 0),Ie(Me(a),"animationHandler",void 0),Ie(Me(a),"setThumbsRef",function(l){a.thumbsRef=l}),Ie(Me(a),"setCarouselWrapperRef",function(l){a.carouselWrapperRef=l}),Ie(Me(a),"setListRef",function(l){a.listRef=l}),Ie(Me(a),"setItemsRef",function(l,f){a.itemsRef||(a.itemsRef=[]),a.itemsRef[f]=l}),Ie(Me(a),"autoPlay",function(){qe.Children.count(a.props.children)<=1||(a.clearAutoPlay(),a.props.autoPlay&&(a.timer=setTimeout(function(){a.increment()},a.props.interval)))}),Ie(Me(a),"clearAutoPlay",function(){a.timer&&clearTimeout(a.timer)}),Ie(Me(a),"resetAutoPlay",function(){a.clearAutoPlay(),a.autoPlay()}),Ie(Me(a),"stopOnHover",function(){a.setState({isMouseEntered:!0},a.clearAutoPlay)}),Ie(Me(a),"startOnLeave",function(){a.setState({isMouseEntered:!1},a.autoPlay)}),Ie(Me(a),"isFocusWithinTheCarousel",function(){return a.carouselWrapperRef?!!((0,La.default)().activeElement===a.carouselWrapperRef||a.carouselWrapperRef.contains((0,La.default)().activeElement)):!1}),Ie(Me(a),"navigateWithKeyboard",function(l){if(a.isFocusWithinTheCarousel()){var f=a.props.axis,d=f==="horizontal",v={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},g=d?v.ArrowRight:v.ArrowDown,_=d?v.ArrowLeft:v.ArrowUp;g===l.keyCode?a.increment():_===l.keyCode&&a.decrement()}}),Ie(Me(a),"updateSizes",function(){if(!(!a.state.initialized||!a.itemsRef||a.itemsRef.length===0)){var l=a.props.axis==="horizontal",f=a.itemsRef[0];if(f){var d=l?f.clientWidth:f.clientHeight;a.setState({itemSize:d}),a.thumbsRef&&a.thumbsRef.updateSizes()}}}),Ie(Me(a),"setMountState",function(){a.setState({hasMount:!0}),a.updateSizes()}),Ie(Me(a),"handleClickItem",function(l,f){if(qe.Children.count(a.props.children)!==0){if(a.state.cancelClick){a.setState({cancelClick:!1});return}a.props.onClickItem(l,f),l!==a.state.selectedItem&&a.setState({selectedItem:l})}}),Ie(Me(a),"handleOnChange",function(l,f){qe.Children.count(a.props.children)<=1||a.props.onChange(l,f)}),Ie(Me(a),"handleClickThumb",function(l,f){a.props.onClickThumb(l,f),a.moveTo(l)}),Ie(Me(a),"onSwipeStart",function(l){a.setState({swiping:!0}),a.props.onSwipeStart(l)}),Ie(Me(a),"onSwipeEnd",function(l){a.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),a.props.onSwipeEnd(l),a.clearAutoPlay(),a.state.autoPlay&&a.autoPlay()}),Ie(Me(a),"onSwipeMove",function(l,f){a.props.onSwipeMove(f);var d=a.props.swipeAnimationHandler(l,a.props,a.state,a.setState.bind(Me(a)));return a.setState(Tn({},d)),!!Object.keys(d).length}),Ie(Me(a),"decrement",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;a.moveTo(a.state.selectedItem-(typeof l=="number"?l:1))}),Ie(Me(a),"increment",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;a.moveTo(a.state.selectedItem+(typeof l=="number"?l:1))}),Ie(Me(a),"moveTo",function(l){if(typeof l=="number"){var f=qe.Children.count(a.props.children)-1;l<0&&(l=a.props.infiniteLoop?f:0),l>f&&(l=a.props.infiniteLoop?0:f),a.selectItem({selectedItem:l}),a.state.autoPlay&&a.state.isMouseEntered===!1&&a.resetAutoPlay()}}),Ie(Me(a),"onClickNext",function(){a.increment(1)}),Ie(Me(a),"onClickPrev",function(){a.decrement(1)}),Ie(Me(a),"onSwipeForward",function(){a.increment(1),a.props.emulateTouch&&a.setState({cancelClick:!0})}),Ie(Me(a),"onSwipeBackwards",function(){a.decrement(1),a.props.emulateTouch&&a.setState({cancelClick:!0})}),Ie(Me(a),"changeItem",function(l){return function(f){(!(0,io.isKeyboardEvent)(f)||f.key==="Enter")&&a.moveTo(l)}}),Ie(Me(a),"selectItem",function(l){a.setState(Tn({previousItem:a.state.selectedItem},l),function(){a.setState(a.animationHandler(a.props,a.state))}),a.handleOnChange(l.selectedItem,qe.Children.toArray(a.props.children)[l.selectedItem])}),Ie(Me(a),"getInitialImage",function(){var l=a.props.selectedItem,f=a.itemsRef&&a.itemsRef[l],d=f&&f.getElementsByTagName("img")||[];return d[0]}),Ie(Me(a),"getVariableItemHeight",function(l){var f=a.itemsRef&&a.itemsRef[l];if(a.state.hasMount&&f&&f.children.length){var d=f.children[0].getElementsByTagName("img")||[];if(d.length>0){var v=d[0];if(!v.complete){var g=function m(){a.forceUpdate(),v.removeEventListener("load",m)};v.addEventListener("load",g)}}var _=d[0]||f.children[0],O=_.clientHeight;return O>0?O:null}return null});var u={initialized:!1,previousItem:o.selectedItem,selectedItem:o.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:o.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return a.animationHandler=typeof o.animationHandler=="function"&&o.animationHandler||o.animationHandler==="fade"&&Va.fadeAnimationHandler||Va.slideAnimationHandler,a.state=Tn(Tn({},u),a.animationHandler(o,u)),a}return VC(n,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(a,u){!a.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!a.autoFocus&&this.props.autoFocus&&this.forceFocus(),u.swiping&&!this.state.swiping&&this.setState(Tn({},this.props.stopSwipingHandler(this.props,this.state))),(a.selectedItem!==this.props.selectedItem||a.centerMode!==this.props.centerMode)&&(this.updateSizes(),this.moveTo(this.props.selectedItem)),a.autoPlay!==this.props.autoPlay&&(this.props.autoPlay?this.setupAutoPlay():this.destroyAutoPlay(),this.setState({autoPlay:this.props.autoPlay}))}},{key:"componentWillUnmount",value:function(){this.destroyCarousel()}},{key:"setupCarousel",value:function(){var a=this;this.bindEvents(),this.state.autoPlay&&qe.Children.count(this.props.children)>1&&this.setupAutoPlay(),this.props.autoFocus&&this.forceFocus(),this.setState({initialized:!0},function(){var u=a.getInitialImage();u&&!u.complete?u.addEventListener("load",a.setMountState):a.setMountState()})}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var a=this.carouselWrapperRef;this.props.stopOnHover&&a&&(a.addEventListener("mouseenter",this.stopOnHover),a.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var a=this.carouselWrapperRef;this.props.stopOnHover&&a&&(a.removeEventListener("mouseenter",this.stopOnHover),a.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,Ma.default)().addEventListener("resize",this.updateSizes),(0,Ma.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,La.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,Ma.default)().removeEventListener("resize",this.updateSizes),(0,Ma.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var a=this.getInitialImage();a&&a.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,La.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var a;(a=this.carouselWrapperRef)===null||a===void 0||a.focus()}},{key:"renderItems",value:function(a){var u=this;return this.props.children?qe.Children.map(this.props.children,function(l,f){var d=f===u.state.selectedItem,v=f===u.state.previousItem,g=d&&u.state.selectedStyle||v&&u.state.prevStyle||u.state.slideStyle||{};u.props.centerMode&&u.props.axis==="horizontal"&&(g=Tn(Tn({},g),{},{minWidth:u.props.centerSlidePercentage+"%"})),u.state.swiping&&u.state.swipeMovementStarted&&(g=Tn(Tn({},g),{},{pointerEvents:"none"}));var _={ref:function(m){return u.setItemsRef(m,f)},key:"itemKey"+f+(a?"clone":""),className:er.default.ITEM(!0,f===u.state.selectedItem,f===u.state.previousItem),onClick:u.handleClickItem.bind(u,f,l),style:g};return qe.default.createElement("li",_,u.props.renderItem(l,{isSelected:f===u.state.selectedItem,isPrevious:f===u.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var a=this,u=this.props,l=u.showIndicators,f=u.labels,d=u.renderIndicator,v=u.children;return l?qe.default.createElement("ul",{className:"control-dots"},qe.Children.map(v,function(g,_){return d&&d(a.changeItem(_),_===a.state.selectedItem,_,f.item)})):null}},{key:"renderStatus",value:function(){return this.props.showStatus?qe.default.createElement("p",{className:"carousel-status"},this.props.statusFormatter(this.state.selectedItem+1,qe.Children.count(this.props.children))):null}},{key:"renderThumbs",value:function(){return!this.props.showThumbs||!this.props.children||qe.Children.count(this.props.children)===0?null:qe.default.createElement(KC.default,{ref:this.setThumbsRef,onSelectItem:this.handleClickThumb,selectedItem:this.state.selectedItem,transitionTime:this.props.transitionTime,thumbWidth:this.props.thumbWidth,labels:this.props.labels,emulateTouch:this.props.emulateTouch},this.props.renderThumbs(this.props.children))}},{key:"render",value:function(){var a=this;if(!this.props.children||qe.Children.count(this.props.children)===0)return null;var u=this.props.swipeable&&qe.Children.count(this.props.children)>1,l=this.props.axis==="horizontal",f=this.props.showArrows&&qe.Children.count(this.props.children)>1,d=f&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,v=f&&(this.state.selectedItem<qe.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,g=this.renderItems(!0),_=g.shift(),O=g.pop(),m={className:er.default.SLIDER(!0,this.state.swiping),onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:this.state.itemListStyle,tolerance:this.props.swipeScrollTolerance},S={};if(l){if(m.onSwipeLeft=this.onSwipeForward,m.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var y=this.getVariableItemHeight(this.state.selectedItem);S.height=y||"auto"}}else m.onSwipeUp=this.props.verticalSwipe==="natural"?this.onSwipeBackwards:this.onSwipeForward,m.onSwipeDown=this.props.verticalSwipe==="natural"?this.onSwipeForward:this.onSwipeBackwards,m.style=Tn(Tn({},m.style),{},{height:this.state.itemSize}),S.height=this.state.itemSize;return qe.default.createElement("div",{"aria-label":this.props.ariaLabel,className:er.default.ROOT(this.props.className),ref:this.setCarouselWrapperRef,tabIndex:this.props.useKeyboardArrows?0:void 0},qe.default.createElement("div",{className:er.default.CAROUSEL(!0),style:{width:this.props.width}},this.renderControls(),this.props.renderArrowPrev(this.onClickPrev,d,this.props.labels.leftArrow),qe.default.createElement("div",{className:er.default.WRAPPER(!0,this.props.axis),style:S},u?qe.default.createElement(GC.default,Pl({tagName:"ul",innerRef:this.setListRef},m,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&O,this.renderItems(),this.props.infiniteLoop&&_):qe.default.createElement("ul",{className:er.default.SLIDER(!0,this.state.swiping),ref:function(D){return a.setListRef(D)},style:this.state.itemListStyle||{}},this.props.infiniteLoop&&O,this.renderItems(),this.props.infiniteLoop&&_)),this.props.renderArrowNext(this.onClickNext,v,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}]),n}(qe.default.Component);ss.default=oc;Ie(oc,"displayName","Carousel");Ie(oc,"defaultProps",{ariaLabel:void 0,axis:"horizontal",centerSlidePercentage:80,interval:3e3,labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},onClickItem:io.noop,onClickThumb:io.noop,onChange:io.noop,onSwipeStart:function(){},onSwipeEnd:function(){},onSwipeMove:function(){return!1},preventMovementUntilSwipeScrollTolerance:!1,renderArrowPrev:function(r,n,o){return qe.default.createElement("button",{type:"button","aria-label":o,className:er.default.ARROW_PREV(!n),onClick:r})},renderArrowNext:function(r,n,o){return qe.default.createElement("button",{type:"button","aria-label":o,className:er.default.ARROW_NEXT(!n),onClick:r})},renderIndicator:function(r,n,o,a){return qe.default.createElement("li",{className:er.default.DOT(n),onClick:r,onKeyDown:r,value:o,key:o,role:"button",tabIndex:0,"aria-label":"".concat(a," ").concat(o+1)})},renderItem:function(r){return r},renderThumbs:function(r){var n=qe.Children.map(r,function(o){var a=o;if(o.type!=="img"&&(a=qe.Children.toArray(o.props.children).find(function(u){return u.type==="img"})),!!a)return a});return n.filter(function(o){return o}).length===0?(console.warn("No images found! Can't build the thumb list without images. If you don't need thumbs, set showThumbs={false} in the Carousel. Note that it's not possible to get images rendered inside custom components. More info at https://github.com/leandrowd/react-responsive-carousel/blob/master/TROUBLESHOOTING.md"),[]):n},statusFormatter:io.defaultStatusFormatter,selectedItem:0,showArrows:!0,showIndicators:!0,showStatus:!0,showThumbs:!0,stopOnHover:!0,swipeScrollTolerance:5,swipeable:!0,transitionTime:350,verticalSwipe:"standard",width:"100%",animationHandler:"slide",swipeAnimationHandler:Va.slideSwipeAnimationHandler,stopSwipingHandler:Va.slideStopSwipingHandler});var tR={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Carousel",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"CarouselProps",{enumerable:!0,get:function(){return n.CarouselProps}}),Object.defineProperty(e,"Thumbs",{enumerable:!0,get:function(){return o.default}});var r=a(ss),n=tR,o=a(xo);function a(u){return u&&u.__esModule?u:{default:u}}})(jv);const nR=({tip:e})=>$.jsx("div",{className:"px-8 pb-8",children:zv(e,!0)}),rR=({pages:e})=>$.jsx("div",{className:"min-h-[10rem] w-96",children:$.jsx(jv.Carousel,{autoPlay:!1,infiniteLoop:!0,showThumbs:!1,showArrows:!0,showStatus:!1,children:e&&e.map(r=>$.jsx(nR,{tip:r},r.key))})}),iR=({body:e,isInsideCarousel:r})=>$.jsx("article",{className:Ot(["prose prose-sm max-h-[10rem] overflow-auto p-1 px-2 text-left text-[12px] text-grey-100 ",{"w-60":!r}]),children:$.jsx(qa,{children:e,options:{overrides:{a:{component:({children:n,...o})=>$.jsxs("a",{...o,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-start text-primary-dark",children:[n,$.jsx(jh,{className:"ml-1 mt-px h-4 w-4"})]})}}}})}),oR=({video:e,body:r,title:n,isInsideCarousel:o})=>$.jsxs("div",{className:Ot([{"flex flex-row":!o,"flex max-h-[10rem] flex-col overflow-y-auto":o}]),children:[$.jsx("div",{className:Ot([{"mr-1":!o,"mb-1":o}]),children:$.jsx("iframe",{height:o?"auto":90,width:o?"100%":160,src:e==null?void 0:e.link,title:n,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}),$.jsx("article",{className:Ot(["prose prose-sm p-1 text-left text-xs text-grey-100",{"w-60 overflow-auto":!o,"-mt-6":o}]),children:$.jsx(qa,{children:r||"",options:{overrides:{a:{component:({children:a,...u})=>$.jsxs("a",{...u,target:"_blank",rel:"noopener noreferrer",className:"flex items-start",children:[a,$.jsx(jh,{className:"ml-1 mt-px h-4 w-4"})]})}}}})})]}),zv=(e,r)=>{switch(e.type){case Ua.TEXT:return $.jsx(iR,{body:e.body,isInsideCarousel:r});case Ua.VIDEO:return $.jsx(oR,{video:e.video,body:e.body,title:e.title,isInsideCarousel:r});case Ua.CAROUSEL:return $.jsx(rR,{pages:e.pages})}},qv=N.createContext(void 0);function lh(e,r){const n=[];return e.forEach(o=>{o.key===r&&n.push(o)}),n}const aR=({children:e,enabled:r,baseUrl:n="https://raw.githubusercontent.com/4d/Web-studio-TIPS/main"})=>{const[{tips:o,show:a},u]=N.useState({tips:{},show:!0});N.useEffect(()=>{const f=new AbortController;try{fetch(`${n}/tips.json`,{signal:f.signal}).then(d=>d.json()).then(d=>{const v=d.reduce((g,_)=>lh(d,_.key).length>1?{...g,[_.key]:{type:"carousel",pages:lh(d,_.key)}}:{...g,[_.key]:_},{});u(g=>({...g,tips:v}))})}catch{}return()=>{f.abort()}},[]);const l=()=>{u(f=>({...f,show:!a}))};return $.jsx(qv.Provider,{value:{tips:o,toggleTips:l,show:a,enabled:r},children:e})},Gv=e=>{const r=N.useContext(qv);if(r===void 0)throw new Error("useTip must be used within a TipsContext");return{tip:e?r.tips[e]:null,toggleTips:r.toggleTips,show:r.show,enabled:r.enabled}},sR=Ka(oC)`
142
142
  &[data-state='open'] > * {
143
143
  display: block !important;
144
144
  }
145
- `,aR=({tipKey:e,side:r="right",alwaysOn:n,asButton:o=!1})=>{const{tip:a,enabled:u}=Bv(e),[l,f]=N.useState(!1),d=N.useRef(null);return N.useEffect(()=>{if(d.current){const v=new IntersectionObserver(g=>{g[0].isIntersecting||f(!1)});return v.observe(d.current),()=>{d.current&&v.unobserve(d.current)}}},[]),a&&u?$.jsxs(nC,{open:l,onOpenChange:f,children:[$.jsx(oR,{ref:d,className:Ot("focus:outline-none",{"rounded p-1 text-gray-100 hover:bg-primary-hover":o}),onClick:v=>v.stopPropagation(),children:$.jsx("span",{className:Ot("group-hover:block",{hidden:!n}),children:$.jsx(EE,{className:"h-4 w-4 text-yellow-300"})})}),$.jsx(iC,{side:r,sideOffset:5,children:$.jsx("div",{className:"relative rounded border border-grey-50 bg-grey-900 p-2 text-xs text-white shadow-2xl",children:Hv(a)})})]}):null};var sR=Object.defineProperty,uR=(e,r,n)=>r in e?sR(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,el=(e,r,n)=>(uR(e,typeof r!="symbol"?r+"":r,n),n);let lR=class{constructor(){el(this,"current",this.detect()),el(this,"handoffState","pending"),el(this,"currentId",0)}set(r){this.current!==r&&(this.handoffState="pending",this.currentId=0,this.current=r)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},Ti=new lR,Wn=(e,r)=>{Ti.isServer?N.useEffect(e,r):N.useLayoutEffect(e,r)};function Ci(e){let r=N.useRef(e);return Wn(()=>{r.current=e},[e]),r}function cR(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(r=>setTimeout(()=>{throw r}))}function To(){let e=[],r={addEventListener(n,o,a,u){return n.addEventListener(o,a,u),r.add(()=>n.removeEventListener(o,a,u))},requestAnimationFrame(...n){let o=requestAnimationFrame(...n);return r.add(()=>cancelAnimationFrame(o))},nextFrame(...n){return r.requestAnimationFrame(()=>r.requestAnimationFrame(...n))},setTimeout(...n){let o=setTimeout(...n);return r.add(()=>clearTimeout(o))},microTask(...n){let o={current:!0};return cR(()=>{o.current&&n[0]()}),r.add(()=>{o.current=!1})},style(n,o,a){let u=n.style.getPropertyValue(o);return Object.assign(n.style,{[o]:a}),this.add(()=>{Object.assign(n.style,{[o]:u})})},group(n){let o=To();return n(o),this.add(()=>o.dispose())},add(n){return e.push(n),()=>{let o=e.indexOf(n);if(o>=0)for(let a of e.splice(o,1))a()}},dispose(){for(let n of e.splice(0))n()}};return r}function oc(){let[e]=N.useState(To);return N.useEffect(()=>()=>e.dispose(),[e]),e}let Dt=function(e){let r=Ci(e);return N.useCallback((...n)=>r.current(...n),[r])};function fR(){let e=typeof document>"u";return"useSyncExternalStore"in L?(r=>r.useSyncExternalStore)(L)(()=>()=>{},()=>!1,()=>!e):!1}function ac(){let e=fR(),[r,n]=L.useState(Ti.isHandoffComplete);return r&&Ti.isHandoffComplete===!1&&n(!1),L.useEffect(()=>{r!==!0&&n(!0)},[r]),L.useEffect(()=>Ti.handoff(),[]),e?!1:r}var uh;let sc=(uh=N.useId)!=null?uh:function(){let e=ac(),[r,n]=N.useState(e?()=>Ti.nextId():null);return Wn(()=>{r===null&&n(Ti.nextId())},[r]),r!=null?""+r:void 0};function $n(e,r,...n){if(e in r){let a=r[e];return typeof a=="function"?a(...n):a}let o=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(r).map(a=>`"${a}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,$n),o}function lh(e){var r;if(e.type)return e.type;let n=(r=e.as)!=null?r:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function dR(e,r){let[n,o]=N.useState(()=>lh(e));return Wn(()=>{o(lh(e))},[e.type,e.as]),Wn(()=>{n||r.current&&r.current instanceof HTMLButtonElement&&!r.current.hasAttribute("type")&&o("button")},[n,r]),n}let pR=Symbol();function Co(...e){let r=N.useRef(e);N.useEffect(()=>{r.current=e},[e]);let n=Dt(o=>{for(let a of r.current)a!=null&&(typeof a=="function"?a(o):a.current=o)});return e.every(o=>o==null||(o==null?void 0:o[pR]))?void 0:n}function Ja(...e){return Array.from(new Set(e.flatMap(r=>typeof r=="string"?r.split(" "):[]))).filter(Boolean).join(" ")}var zv=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(zv||{}),wr=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(wr||{});function Qr({ourProps:e,theirProps:r,slot:n,defaultTag:o,features:a,visible:u=!0,name:l}){let f=qv(r,e);if(u)return Ma(f,n,o,l);let d=a??0;if(d&2){let{static:v=!1,...g}=f;if(v)return Ma(g,n,o,l)}if(d&1){let{unmount:v=!0,...g}=f;return $n(v?0:1,{0(){return null},1(){return Ma({...g,hidden:!0,style:{display:"none"}},n,o,l)}})}return Ma(f,n,o,l)}function Ma(e,r={},n,o){let{as:a=n,children:u,refName:l="ref",...f}=tl(e,["unmount","static"]),d=e.ref!==void 0?{[l]:e.ref}:{},v=typeof u=="function"?u(r):u;"className"in f&&f.className&&typeof f.className=="function"&&(f.className=f.className(r));let g={};if(r){let _=!1,O=[];for(let[m,S]of Object.entries(r))typeof S=="boolean"&&(_=!0),S===!0&&O.push(m);_&&(g["data-headlessui-state"]=O.join(" "))}if(a===N.Fragment&&Object.keys(Al(f)).length>0){if(!N.isValidElement(v)||Array.isArray(v)&&v.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${o} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(f).map(S=>` - ${S}`).join(`
145
+ `,uR=({tipKey:e,side:r="right",alwaysOn:n,asButton:o=!1})=>{const{tip:a,enabled:u}=Gv(e),[l,f]=N.useState(!1),d=N.useRef(null);return N.useEffect(()=>{if(d.current){const v=new IntersectionObserver(g=>{g[0].isIntersecting||f(!1)});return v.observe(d.current),()=>{d.current&&v.unobserve(d.current)}}},[]),a&&u?$.jsxs(iC,{open:l,onOpenChange:f,children:[$.jsx(sR,{ref:d,className:Ot("focus:outline-none",{"rounded p-1 text-gray-100 hover:bg-primary-hover":o}),onClick:v=>v.stopPropagation(),children:$.jsx("span",{className:Ot("group-hover:block",{hidden:!n}),children:$.jsx(OE,{className:"h-4 w-4 text-yellow-300"})})}),$.jsx(aC,{side:r,sideOffset:5,children:$.jsx("div",{className:"relative rounded border border-grey-50 bg-grey-900 p-2 text-xs text-white shadow-2xl",children:zv(a)})})]}):null};var lR=Object.defineProperty,cR=(e,r,n)=>r in e?lR(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,tl=(e,r,n)=>(cR(e,typeof r!="symbol"?r+"":r,n),n);let fR=class{constructor(){tl(this,"current",this.detect()),tl(this,"handoffState","pending"),tl(this,"currentId",0)}set(r){this.current!==r&&(this.handoffState="pending",this.currentId=0,this.current=r)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},Ci=new fR,Wn=(e,r)=>{Ci.isServer?N.useEffect(e,r):N.useLayoutEffect(e,r)};function Ri(e){let r=N.useRef(e);return Wn(()=>{r.current=e},[e]),r}function dR(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(r=>setTimeout(()=>{throw r}))}function Co(){let e=[],r={addEventListener(n,o,a,u){return n.addEventListener(o,a,u),r.add(()=>n.removeEventListener(o,a,u))},requestAnimationFrame(...n){let o=requestAnimationFrame(...n);return r.add(()=>cancelAnimationFrame(o))},nextFrame(...n){return r.requestAnimationFrame(()=>r.requestAnimationFrame(...n))},setTimeout(...n){let o=setTimeout(...n);return r.add(()=>clearTimeout(o))},microTask(...n){let o={current:!0};return dR(()=>{o.current&&n[0]()}),r.add(()=>{o.current=!1})},style(n,o,a){let u=n.style.getPropertyValue(o);return Object.assign(n.style,{[o]:a}),this.add(()=>{Object.assign(n.style,{[o]:u})})},group(n){let o=Co();return n(o),this.add(()=>o.dispose())},add(n){return e.push(n),()=>{let o=e.indexOf(n);if(o>=0)for(let a of e.splice(o,1))a()}},dispose(){for(let n of e.splice(0))n()}};return r}function ac(){let[e]=N.useState(Co);return N.useEffect(()=>()=>e.dispose(),[e]),e}let Dt=function(e){let r=Ri(e);return N.useCallback((...n)=>r.current(...n),[r])};function pR(){let e=typeof document>"u";return"useSyncExternalStore"in L?(r=>r.useSyncExternalStore)(L)(()=>()=>{},()=>!1,()=>!e):!1}function sc(){let e=pR(),[r,n]=L.useState(Ci.isHandoffComplete);return r&&Ci.isHandoffComplete===!1&&n(!1),L.useEffect(()=>{r!==!0&&n(!0)},[r]),L.useEffect(()=>Ci.handoff(),[]),e?!1:r}var ch;let uc=(ch=N.useId)!=null?ch:function(){let e=sc(),[r,n]=N.useState(e?()=>Ci.nextId():null);return Wn(()=>{r===null&&n(Ci.nextId())},[r]),r!=null?""+r:void 0};function $n(e,r,...n){if(e in r){let a=r[e];return typeof a=="function"?a(...n):a}let o=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(r).map(a=>`"${a}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,$n),o}function fh(e){var r;if(e.type)return e.type;let n=(r=e.as)!=null?r:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function hR(e,r){let[n,o]=N.useState(()=>fh(e));return Wn(()=>{o(fh(e))},[e.type,e.as]),Wn(()=>{n||r.current&&r.current instanceof HTMLButtonElement&&!r.current.hasAttribute("type")&&o("button")},[n,r]),n}let vR=Symbol();function Ro(...e){let r=N.useRef(e);N.useEffect(()=>{r.current=e},[e]);let n=Dt(o=>{for(let a of r.current)a!=null&&(typeof a=="function"?a(o):a.current=o)});return e.every(o=>o==null||(o==null?void 0:o[vR]))?void 0:n}function Ja(...e){return Array.from(new Set(e.flatMap(r=>typeof r=="string"?r.split(" "):[]))).filter(Boolean).join(" ")}var Kv=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Kv||{}),br=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(br||{});function ti({ourProps:e,theirProps:r,slot:n,defaultTag:o,features:a,visible:u=!0,name:l}){let f=Yv(r,e);if(u)return Da(f,n,o,l);let d=a??0;if(d&2){let{static:v=!1,...g}=f;if(v)return Da(g,n,o,l)}if(d&1){let{unmount:v=!0,...g}=f;return $n(v?0:1,{0(){return null},1(){return Da({...g,hidden:!0,style:{display:"none"}},n,o,l)}})}return Da(f,n,o,l)}function Da(e,r={},n,o){let{as:a=n,children:u,refName:l="ref",...f}=nl(e,["unmount","static"]),d=e.ref!==void 0?{[l]:e.ref}:{},v=typeof u=="function"?u(r):u;"className"in f&&f.className&&typeof f.className=="function"&&(f.className=f.className(r));let g={};if(r){let _=!1,O=[];for(let[m,S]of Object.entries(r))typeof S=="boolean"&&(_=!0),S===!0&&O.push(m);_&&(g["data-headlessui-state"]=O.join(" "))}if(a===N.Fragment&&Object.keys(Il(f)).length>0){if(!N.isValidElement(v)||Array.isArray(v)&&v.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${o} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(f).map(S=>` - ${S}`).join(`
146
146
  `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(S=>` - ${S}`).join(`
147
147
  `)].join(`
148
- `));let _=v.props,O=typeof(_==null?void 0:_.className)=="function"?(...S)=>Ja(_==null?void 0:_.className(...S),f.className):Ja(_==null?void 0:_.className,f.className),m=O?{className:O}:{};return N.cloneElement(v,Object.assign({},qv(v.props,Al(tl(f,["ref"]))),g,d,hR(v.ref,d.ref),m))}return N.createElement(a,Object.assign({},tl(f,["ref"]),a!==N.Fragment&&d,a!==N.Fragment&&g),v)}function hR(...e){return{ref:e.every(r=>r==null)?void 0:r=>{for(let n of e)n!=null&&(typeof n=="function"?n(r):n.current=r)}}}function qv(...e){if(e.length===0)return{};if(e.length===1)return e[0];let r={},n={};for(let o of e)for(let a in o)a.startsWith("on")&&typeof o[a]=="function"?(n[a]!=null||(n[a]=[]),n[a].push(o[a])):r[a]=o[a];if(r.disabled||r["aria-disabled"])return Object.assign(r,Object.fromEntries(Object.keys(n).map(o=>[o,void 0])));for(let o in n)Object.assign(r,{[o](a,...u){let l=n[o];for(let f of l){if((a instanceof Event||(a==null?void 0:a.nativeEvent)instanceof Event)&&a.defaultPrevented)return;f(a,...u)}}});return r}function ei(e){var r;return Object.assign(N.forwardRef(e),{displayName:(r=e.displayName)!=null?r:e.name})}function Al(e){let r=Object.assign({},e);for(let n in r)r[n]===void 0&&delete r[n];return r}function tl(e,r=[]){let n=Object.assign({},e);for(let o of r)o in n&&delete n[o];return n}function vR(e){let r=e.parentElement,n=null;for(;r&&!(r instanceof HTMLFieldSetElement);)r instanceof HTMLLegendElement&&(n=r),r=r.parentElement;let o=(r==null?void 0:r.getAttribute("disabled"))==="";return o&&mR(n)?!1:o}function mR(e){if(!e)return!1;let r=e.previousElementSibling;for(;r!==null;){if(r instanceof HTMLLegendElement)return!1;r=r.previousElementSibling}return!0}function gR(e){var r,n;let o=(r=e==null?void 0:e.form)!=null?r:e.closest("form");if(o){for(let a of o.elements)if(a!==e&&(a.tagName==="INPUT"&&a.type==="submit"||a.tagName==="BUTTON"&&a.type==="submit"||a.nodeName==="INPUT"&&a.type==="image")){a.click();return}(n=o.requestSubmit)==null||n.call(o)}}let yR="div";var Gv=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Gv||{});function wR(e,r){let{features:n=1,...o}=e,a={ref:r,"aria-hidden":(n&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return Qr({ourProps:a,theirProps:o,slot:{},defaultTag:yR,name:"Hidden"})}let bR=ei(wR),uc=N.createContext(null);uc.displayName="OpenClosedContext";var er=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(er||{});function Kv(){return N.useContext(uc)}function _R({value:e,children:r}){return N.createElement(uc.Provider,{value:e},r)}var Il=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Il||{});function SR(e,r,n){let[o,a]=N.useState(n),u=e!==void 0,l=N.useRef(u),f=N.useRef(!1),d=N.useRef(!1);return u&&!l.current&&!f.current?(f.current=!0,l.current=u,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!u&&l.current&&!d.current&&(d.current=!0,l.current=u,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[u?e:o,Dt(v=>(u||a(v),r==null?void 0:r(v)))]}function lc(){let e=N.useRef(!1);return Wn(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let Yv=N.createContext(null);function Xv(){let e=N.useContext(Yv);if(e===null){let r=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(r,Xv),r}return e}function ER(){let[e,r]=N.useState([]);return[e.length>0?e.join(" "):void 0,N.useMemo(()=>function(n){let o=Dt(u=>(r(l=>[...l,u]),()=>r(l=>{let f=l.slice(),d=f.indexOf(u);return d!==-1&&f.splice(d,1),f}))),a=N.useMemo(()=>({register:o,slot:n.slot,name:n.name,props:n.props}),[o,n.slot,n.name,n.props]);return N.createElement(Yv.Provider,{value:a},n.children)},[r])]}let xR="p";function OR(e,r){let n=sc(),{id:o=`headlessui-description-${n}`,...a}=e,u=Xv(),l=Co(r);Wn(()=>u.register(o),[o,u.register]);let f={ref:l,...u.props,id:o};return Qr({ourProps:f,theirProps:a,slot:u.slot||{},defaultTag:xR,name:u.name||"Description"})}let TR=ei(OR),CR=Object.assign(TR,{});function RR(e=0){let[r,n]=N.useState(e),o=lc(),a=N.useCallback(d=>{o.current&&n(v=>v|d)},[r,o]),u=N.useCallback(d=>!!(r&d),[r]),l=N.useCallback(d=>{o.current&&n(v=>v&~d)},[n,o]),f=N.useCallback(d=>{o.current&&n(v=>v^d)},[n]);return{flags:r,addFlag:a,hasFlag:u,removeFlag:l,toggleFlag:f}}let Vv=N.createContext(null);function Jv(){let e=N.useContext(Vv);if(e===null){let r=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(r,Jv),r}return e}function PR(){let[e,r]=N.useState([]);return[e.length>0?e.join(" "):void 0,N.useMemo(()=>function(n){let o=Dt(u=>(r(l=>[...l,u]),()=>r(l=>{let f=l.slice(),d=f.indexOf(u);return d!==-1&&f.splice(d,1),f}))),a=N.useMemo(()=>({register:o,slot:n.slot,name:n.name,props:n.props}),[o,n.slot,n.name,n.props]);return N.createElement(Vv.Provider,{value:a},n.children)},[r])]}let AR="label";function IR(e,r){let n=sc(),{id:o=`headlessui-label-${n}`,passive:a=!1,...u}=e,l=Jv(),f=Co(r);Wn(()=>l.register(o),[o,l.register]);let d={ref:f,...l.props,id:o};return a&&("onClick"in d&&(delete d.htmlFor,delete d.onClick),"onClick"in u&&delete u.onClick),Qr({ourProps:d,theirProps:u,slot:l.slot||{},defaultTag:AR,name:l.name||"Label"})}let LR=ei(IR),MR=Object.assign(LR,{}),cc=N.createContext(null);cc.displayName="GroupContext";let DR=N.Fragment;function kR(e){var r;let[n,o]=N.useState(null),[a,u]=PR(),[l,f]=ER(),d=N.useMemo(()=>({switch:n,setSwitch:o,labelledby:a,describedby:l}),[n,o,a,l]),v={},g=e;return N.createElement(f,{name:"Switch.Description"},N.createElement(u,{name:"Switch.Label",props:{htmlFor:(r=d.switch)==null?void 0:r.id,onClick(_){n&&(_.currentTarget.tagName==="LABEL"&&_.preventDefault(),n.click(),n.focus({preventScroll:!0}))}}},N.createElement(cc.Provider,{value:d},Qr({ourProps:v,theirProps:g,defaultTag:DR,name:"Switch.Group"}))))}let NR="button";function $R(e,r){let n=sc(),{id:o=`headlessui-switch-${n}`,checked:a,defaultChecked:u=!1,onChange:l,name:f,value:d,form:v,...g}=e,_=N.useContext(cc),O=N.useRef(null),m=Co(O,r,_===null?null:_.setSwitch),[S,y]=SR(a,l,u),E=Dt(()=>y==null?void 0:y(!S)),D=Dt(U=>{if(vR(U.currentTarget))return U.preventDefault();U.preventDefault(),E()}),I=Dt(U=>{U.key===Il.Space?(U.preventDefault(),E()):U.key===Il.Enter&&gR(U.currentTarget)}),C=Dt(U=>U.preventDefault()),k=N.useMemo(()=>({checked:S}),[S]),T={id:o,ref:m,role:"switch",type:dR(e,O),tabIndex:0,"aria-checked":S,"aria-labelledby":_==null?void 0:_.labelledby,"aria-describedby":_==null?void 0:_.describedby,onClick:D,onKeyUp:I,onKeyPress:C},H=oc();return N.useEffect(()=>{var U;let j=(U=O.current)==null?void 0:U.closest("form");j&&u!==void 0&&H.addEventListener(j,"reset",()=>{y(u)})},[O,y]),N.createElement(N.Fragment,null,f!=null&&S&&N.createElement(bR,{features:Gv.Hidden,...Al({as:"input",type:"checkbox",hidden:!0,readOnly:!0,form:v,checked:S,name:f,value:d})}),Qr({ourProps:T,theirProps:g,slot:k,defaultTag:NR,name:"Switch"}))}let jR=ei($R),FR=kR,WR=Object.assign(jR,{Group:FR,Label:MR,Description:CR});function HR(e){let r={called:!1};return(...n)=>{if(!r.called)return r.called=!0,e(...n)}}function nl(e,...r){e&&r.length>0&&e.classList.add(...r)}function rl(e,...r){e&&r.length>0&&e.classList.remove(...r)}function UR(e,r){let n=To();if(!e)return n.dispose;let{transitionDuration:o,transitionDelay:a}=getComputedStyle(e),[u,l]=[o,a].map(d=>{let[v=0]=d.split(",").filter(Boolean).map(g=>g.includes("ms")?parseFloat(g):parseFloat(g)*1e3).sort((g,_)=>_-g);return v}),f=u+l;if(f!==0){n.group(v=>{v.setTimeout(()=>{r(),v.dispose()},f),v.addEventListener(e,"transitionrun",g=>{g.target===g.currentTarget&&v.dispose()})});let d=n.addEventListener(e,"transitionend",v=>{v.target===v.currentTarget&&(r(),d())})}else r();return n.add(()=>r()),n.dispose}function BR(e,r,n,o){let a=n?"enter":"leave",u=To(),l=o!==void 0?HR(o):()=>{};a==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let f=$n(a,{enter:()=>r.enter,leave:()=>r.leave}),d=$n(a,{enter:()=>r.enterTo,leave:()=>r.leaveTo}),v=$n(a,{enter:()=>r.enterFrom,leave:()=>r.leaveFrom});return rl(e,...r.base,...r.enter,...r.enterTo,...r.enterFrom,...r.leave,...r.leaveFrom,...r.leaveTo,...r.entered),nl(e,...r.base,...f,...v),u.nextFrame(()=>{rl(e,...r.base,...f,...v),nl(e,...r.base,...f,...d),UR(e,()=>(rl(e,...r.base,...f),nl(e,...r.base,...r.entered),l()))}),u.dispose}function zR({immediate:e,container:r,direction:n,classes:o,onStart:a,onStop:u}){let l=lc(),f=oc(),d=Ci(n);Wn(()=>{e&&(d.current="enter")},[e]),Wn(()=>{let v=To();f.add(v.dispose);let g=r.current;if(g&&d.current!=="idle"&&l.current)return v.dispose(),a.current(d.current),v.add(BR(g,o.current,d.current==="enter",()=>{v.dispose(),u.current(d.current)})),v.dispose},[n])}function gr(e=""){return e.split(" ").filter(r=>r.trim().length>1)}let cs=N.createContext(null);cs.displayName="TransitionContext";var qR=(e=>(e.Visible="visible",e.Hidden="hidden",e))(qR||{});function GR(){let e=N.useContext(cs);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function KR(){let e=N.useContext(fs);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let fs=N.createContext(null);fs.displayName="NestingContext";function ds(e){return"children"in e?ds(e.children):e.current.filter(({el:r})=>r.current!==null).filter(({state:r})=>r==="visible").length>0}function Zv(e,r){let n=Ci(e),o=N.useRef([]),a=lc(),u=oc(),l=Dt((m,S=wr.Hidden)=>{let y=o.current.findIndex(({el:E})=>E===m);y!==-1&&($n(S,{[wr.Unmount](){o.current.splice(y,1)},[wr.Hidden](){o.current[y].state="hidden"}}),u.microTask(()=>{var E;!ds(o)&&a.current&&((E=n.current)==null||E.call(n))}))}),f=Dt(m=>{let S=o.current.find(({el:y})=>y===m);return S?S.state!=="visible"&&(S.state="visible"):o.current.push({el:m,state:"visible"}),()=>l(m,wr.Unmount)}),d=N.useRef([]),v=N.useRef(Promise.resolve()),g=N.useRef({enter:[],leave:[],idle:[]}),_=Dt((m,S,y)=>{d.current.splice(0),r&&(r.chains.current[S]=r.chains.current[S].filter(([E])=>E!==m)),r==null||r.chains.current[S].push([m,new Promise(E=>{d.current.push(E)})]),r==null||r.chains.current[S].push([m,new Promise(E=>{Promise.all(g.current[S].map(([D,I])=>I)).then(()=>E())})]),S==="enter"?v.current=v.current.then(()=>r==null?void 0:r.wait.current).then(()=>y(S)):y(S)}),O=Dt((m,S,y)=>{Promise.all(g.current[S].splice(0).map(([E,D])=>D)).then(()=>{var E;(E=d.current.shift())==null||E()}).then(()=>y(S))});return N.useMemo(()=>({children:o,register:f,unregister:l,onStart:_,onStop:O,wait:v,chains:g}),[f,l,o,_,O,g,v])}function YR(){}let XR=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function ch(e){var r;let n={};for(let o of XR)n[o]=(r=e[o])!=null?r:YR;return n}function VR(e){let r=N.useRef(ch(e));return N.useEffect(()=>{r.current=ch(e)},[e]),r}let JR="div",Qv=zv.RenderStrategy;function ZR(e,r){var n,o;let{beforeEnter:a,afterEnter:u,beforeLeave:l,afterLeave:f,enter:d,enterFrom:v,enterTo:g,entered:_,leave:O,leaveFrom:m,leaveTo:S,...y}=e,E=N.useRef(null),D=Co(E,r),I=(n=y.unmount)==null||n?wr.Unmount:wr.Hidden,{show:C,appear:k,initial:T}=GR(),[H,U]=N.useState(C?"visible":"hidden"),j=KR(),{register:J,unregister:ee}=j;N.useEffect(()=>J(E),[J,E]),N.useEffect(()=>{if(I===wr.Hidden&&E.current){if(C&&H!=="visible"){U("visible");return}return $n(H,{hidden:()=>ee(E),visible:()=>J(E)})}},[H,E,J,ee,C,I]);let ge=Ci({base:gr(y.className),enter:gr(d),enterFrom:gr(v),enterTo:gr(g),entered:gr(_),leave:gr(O),leaveFrom:gr(m),leaveTo:gr(S)}),Ce=VR({beforeEnter:a,afterEnter:u,beforeLeave:l,afterLeave:f}),_e=ac();N.useEffect(()=>{if(_e&&H==="visible"&&E.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[E,H,_e]);let se=T&&!k,Le=k&&C&&T,we=(()=>!_e||se?"idle":C?"enter":"leave")(),xe=RR(0),We=Dt(ie=>$n(ie,{enter:()=>{xe.addFlag(er.Opening),Ce.current.beforeEnter()},leave:()=>{xe.addFlag(er.Closing),Ce.current.beforeLeave()},idle:()=>{}})),ut=Dt(ie=>$n(ie,{enter:()=>{xe.removeFlag(er.Opening),Ce.current.afterEnter()},leave:()=>{xe.removeFlag(er.Closing),Ce.current.afterLeave()},idle:()=>{}})),G=Zv(()=>{U("hidden"),ee(E)},j);zR({immediate:Le,container:E,classes:ge,direction:we,onStart:Ci(ie=>{G.onStart(E,ie,We)}),onStop:Ci(ie=>{G.onStop(E,ie,ut),ie==="leave"&&!ds(G)&&(U("hidden"),ee(E))})});let X=y,de={ref:D};return Le?X={...X,className:Ja(y.className,...ge.current.enter,...ge.current.enterFrom)}:(X.className=Ja(y.className,(o=E.current)==null?void 0:o.className),X.className===""&&delete X.className),N.createElement(fs.Provider,{value:G},N.createElement(_R,{value:$n(H,{visible:er.Open,hidden:er.Closed})|xe.flags},Qr({ourProps:de,theirProps:X,defaultTag:JR,features:Qv,visible:H==="visible",name:"Transition.Child"})))}function QR(e,r){let{show:n,appear:o=!1,unmount:a=!0,...u}=e,l=N.useRef(null),f=Co(l,r);ac();let d=Kv();if(n===void 0&&d!==null&&(n=(d&er.Open)===er.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[v,g]=N.useState(n?"visible":"hidden"),_=Zv(()=>{g("hidden")}),[O,m]=N.useState(!0),S=N.useRef([n]);Wn(()=>{O!==!1&&S.current[S.current.length-1]!==n&&(S.current.push(n),m(!1))},[S,n]);let y=N.useMemo(()=>({show:n,appear:o,initial:O}),[n,o,O]);N.useEffect(()=>{if(n)g("visible");else if(!ds(_))g("hidden");else{let C=l.current;if(!C)return;let k=C.getBoundingClientRect();k.x===0&&k.y===0&&k.width===0&&k.height===0&&g("hidden")}},[n,_]);let E={unmount:a},D=Dt(()=>{var C;O&&m(!1),(C=e.beforeEnter)==null||C.call(e)}),I=Dt(()=>{var C;O&&m(!1),(C=e.beforeLeave)==null||C.call(e)});return N.createElement(fs.Provider,{value:_},N.createElement(cs.Provider,{value:y},Qr({ourProps:{...E,as:N.Fragment,children:N.createElement(em,{ref:f,...E,...u,beforeEnter:D,beforeLeave:I})},theirProps:{},defaultTag:N.Fragment,features:Qv,visible:v==="visible",name:"Transition"})))}function eP(e,r){let n=N.useContext(cs)!==null,o=Kv()!==null;return N.createElement(N.Fragment,null,!n&&o?N.createElement(Ll,{ref:r,...e}):N.createElement(em,{ref:r,...e}))}let Ll=ei(QR),em=ei(ZR),tP=ei(eP),Za=Object.assign(Ll,{Child:tP,Root:Ll});const il={xs:{switch:"h-2.5 w-2.5",translate:"translate-x-2.5",container:"w-6 h-3.5"},sm:{switch:"h-3.5 w-3.5",translate:"translate-x-[0.85rem]",container:"h-4.5 w-8"},md:{switch:"h-4 w-4",translate:"translate-x-3",container:"h-5 w-8"},lg:{switch:"h-4 w-4",translate:"translate-x-3",container:"h-5 w-8"}},tm=N.forwardRef(({onChange:e,value:r,size:n="md",className:o="ml-auto"},a)=>{const u=l=>{e(l)};return $.jsx("div",{className:Ot("flex items-center",o),children:$.jsx(WR,{ref:a,checked:r,onChange:u,onKeyDown:l=>{l.key==="Enter"&&u(!r)},className:`${r?"bg-primary-dark":"bg-grey-200"}
149
- relative inline-flex shrink-0 ${il[n].container} cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75`,children:$.jsx("span",{"aria-hidden":"true",className:`${r?il[n].translate:"translate-x-0"}
150
- pointer-events-none inline-block ${il[n].switch} transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out`})})})}),nP=({children:e,label:r,placement:n="top",className:o})=>{const[a,u]=N.useState(null),[l,f]=N.useState(null),[d,v]=N.useState(!1),{styles:g,attributes:_}=Ih(a,l,{placement:n,modifiers:[{name:"offset",options:{offset:[0,8]}}]}),O=N.Children.map(e,m=>N.isValidElement(m)?N.cloneElement(m,{ref:u,onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1)}):m);return $.jsxs($.Fragment,{children:[O,d&&go.createPortal($.jsx("div",{ref:f,style:g.popper,..._.popper,className:Ot("z-10 select-none rounded bg-gray-50 px-2 py-1 text-xs text-gray-800",o),children:r}),document.querySelector("body"))]})},rP=pl.keyframes`
148
+ `));let _=v.props,O=typeof(_==null?void 0:_.className)=="function"?(...S)=>Ja(_==null?void 0:_.className(...S),f.className):Ja(_==null?void 0:_.className,f.className),m=O?{className:O}:{};return N.cloneElement(v,Object.assign({},Yv(v.props,Il(nl(f,["ref"]))),g,d,mR(v.ref,d.ref),m))}return N.createElement(a,Object.assign({},nl(f,["ref"]),a!==N.Fragment&&d,a!==N.Fragment&&g),v)}function mR(...e){return{ref:e.every(r=>r==null)?void 0:r=>{for(let n of e)n!=null&&(typeof n=="function"?n(r):n.current=r)}}}function Yv(...e){if(e.length===0)return{};if(e.length===1)return e[0];let r={},n={};for(let o of e)for(let a in o)a.startsWith("on")&&typeof o[a]=="function"?(n[a]!=null||(n[a]=[]),n[a].push(o[a])):r[a]=o[a];if(r.disabled||r["aria-disabled"])return Object.assign(r,Object.fromEntries(Object.keys(n).map(o=>[o,void 0])));for(let o in n)Object.assign(r,{[o](a,...u){let l=n[o];for(let f of l){if((a instanceof Event||(a==null?void 0:a.nativeEvent)instanceof Event)&&a.defaultPrevented)return;f(a,...u)}}});return r}function ni(e){var r;return Object.assign(N.forwardRef(e),{displayName:(r=e.displayName)!=null?r:e.name})}function Il(e){let r=Object.assign({},e);for(let n in r)r[n]===void 0&&delete r[n];return r}function nl(e,r=[]){let n=Object.assign({},e);for(let o of r)o in n&&delete n[o];return n}function gR(e){let r=e.parentElement,n=null;for(;r&&!(r instanceof HTMLFieldSetElement);)r instanceof HTMLLegendElement&&(n=r),r=r.parentElement;let o=(r==null?void 0:r.getAttribute("disabled"))==="";return o&&yR(n)?!1:o}function yR(e){if(!e)return!1;let r=e.previousElementSibling;for(;r!==null;){if(r instanceof HTMLLegendElement)return!1;r=r.previousElementSibling}return!0}function wR(e){var r,n;let o=(r=e==null?void 0:e.form)!=null?r:e.closest("form");if(o){for(let a of o.elements)if(a!==e&&(a.tagName==="INPUT"&&a.type==="submit"||a.tagName==="BUTTON"&&a.type==="submit"||a.nodeName==="INPUT"&&a.type==="image")){a.click();return}(n=o.requestSubmit)==null||n.call(o)}}let bR="div";var Xv=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Xv||{});function _R(e,r){let{features:n=1,...o}=e,a={ref:r,"aria-hidden":(n&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return ti({ourProps:a,theirProps:o,slot:{},defaultTag:bR,name:"Hidden"})}let SR=ni(_R),lc=N.createContext(null);lc.displayName="OpenClosedContext";var tr=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(tr||{});function Vv(){return N.useContext(lc)}function ER({value:e,children:r}){return N.createElement(lc.Provider,{value:e},r)}var Ll=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Ll||{});function xR(e,r,n){let[o,a]=N.useState(n),u=e!==void 0,l=N.useRef(u),f=N.useRef(!1),d=N.useRef(!1);return u&&!l.current&&!f.current?(f.current=!0,l.current=u,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!u&&l.current&&!d.current&&(d.current=!0,l.current=u,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[u?e:o,Dt(v=>(u||a(v),r==null?void 0:r(v)))]}function cc(){let e=N.useRef(!1);return Wn(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let Zv=N.createContext(null);function Jv(){let e=N.useContext(Zv);if(e===null){let r=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(r,Jv),r}return e}function OR(){let[e,r]=N.useState([]);return[e.length>0?e.join(" "):void 0,N.useMemo(()=>function(n){let o=Dt(u=>(r(l=>[...l,u]),()=>r(l=>{let f=l.slice(),d=f.indexOf(u);return d!==-1&&f.splice(d,1),f}))),a=N.useMemo(()=>({register:o,slot:n.slot,name:n.name,props:n.props}),[o,n.slot,n.name,n.props]);return N.createElement(Zv.Provider,{value:a},n.children)},[r])]}let TR="p";function CR(e,r){let n=uc(),{id:o=`headlessui-description-${n}`,...a}=e,u=Jv(),l=Ro(r);Wn(()=>u.register(o),[o,u.register]);let f={ref:l,...u.props,id:o};return ti({ourProps:f,theirProps:a,slot:u.slot||{},defaultTag:TR,name:u.name||"Description"})}let RR=ni(CR),PR=Object.assign(RR,{});function AR(e=0){let[r,n]=N.useState(e),o=cc(),a=N.useCallback(d=>{o.current&&n(v=>v|d)},[r,o]),u=N.useCallback(d=>!!(r&d),[r]),l=N.useCallback(d=>{o.current&&n(v=>v&~d)},[n,o]),f=N.useCallback(d=>{o.current&&n(v=>v^d)},[n]);return{flags:r,addFlag:a,hasFlag:u,removeFlag:l,toggleFlag:f}}let Qv=N.createContext(null);function em(){let e=N.useContext(Qv);if(e===null){let r=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(r,em),r}return e}function IR(){let[e,r]=N.useState([]);return[e.length>0?e.join(" "):void 0,N.useMemo(()=>function(n){let o=Dt(u=>(r(l=>[...l,u]),()=>r(l=>{let f=l.slice(),d=f.indexOf(u);return d!==-1&&f.splice(d,1),f}))),a=N.useMemo(()=>({register:o,slot:n.slot,name:n.name,props:n.props}),[o,n.slot,n.name,n.props]);return N.createElement(Qv.Provider,{value:a},n.children)},[r])]}let LR="label";function MR(e,r){let n=uc(),{id:o=`headlessui-label-${n}`,passive:a=!1,...u}=e,l=em(),f=Ro(r);Wn(()=>l.register(o),[o,l.register]);let d={ref:f,...l.props,id:o};return a&&("onClick"in d&&(delete d.htmlFor,delete d.onClick),"onClick"in u&&delete u.onClick),ti({ourProps:d,theirProps:u,slot:l.slot||{},defaultTag:LR,name:l.name||"Label"})}let DR=ni(MR),kR=Object.assign(DR,{}),fc=N.createContext(null);fc.displayName="GroupContext";let NR=N.Fragment;function $R(e){var r;let[n,o]=N.useState(null),[a,u]=IR(),[l,f]=OR(),d=N.useMemo(()=>({switch:n,setSwitch:o,labelledby:a,describedby:l}),[n,o,a,l]),v={},g=e;return N.createElement(f,{name:"Switch.Description"},N.createElement(u,{name:"Switch.Label",props:{htmlFor:(r=d.switch)==null?void 0:r.id,onClick(_){n&&(_.currentTarget.tagName==="LABEL"&&_.preventDefault(),n.click(),n.focus({preventScroll:!0}))}}},N.createElement(fc.Provider,{value:d},ti({ourProps:v,theirProps:g,defaultTag:NR,name:"Switch.Group"}))))}let jR="button";function FR(e,r){let n=uc(),{id:o=`headlessui-switch-${n}`,checked:a,defaultChecked:u=!1,onChange:l,name:f,value:d,form:v,...g}=e,_=N.useContext(fc),O=N.useRef(null),m=Ro(O,r,_===null?null:_.setSwitch),[S,y]=xR(a,l,u),E=Dt(()=>y==null?void 0:y(!S)),D=Dt(U=>{if(gR(U.currentTarget))return U.preventDefault();U.preventDefault(),E()}),I=Dt(U=>{U.key===Ll.Space?(U.preventDefault(),E()):U.key===Ll.Enter&&wR(U.currentTarget)}),C=Dt(U=>U.preventDefault()),k=N.useMemo(()=>({checked:S}),[S]),T={id:o,ref:m,role:"switch",type:hR(e,O),tabIndex:0,"aria-checked":S,"aria-labelledby":_==null?void 0:_.labelledby,"aria-describedby":_==null?void 0:_.describedby,onClick:D,onKeyUp:I,onKeyPress:C},H=ac();return N.useEffect(()=>{var U;let j=(U=O.current)==null?void 0:U.closest("form");j&&u!==void 0&&H.addEventListener(j,"reset",()=>{y(u)})},[O,y]),N.createElement(N.Fragment,null,f!=null&&S&&N.createElement(SR,{features:Xv.Hidden,...Il({as:"input",type:"checkbox",hidden:!0,readOnly:!0,form:v,checked:S,name:f,value:d})}),ti({ourProps:T,theirProps:g,slot:k,defaultTag:jR,name:"Switch"}))}let WR=ni(FR),HR=$R,UR=Object.assign(WR,{Group:HR,Label:kR,Description:PR});function BR(e){let r={called:!1};return(...n)=>{if(!r.called)return r.called=!0,e(...n)}}function rl(e,...r){e&&r.length>0&&e.classList.add(...r)}function il(e,...r){e&&r.length>0&&e.classList.remove(...r)}function zR(e,r){let n=Co();if(!e)return n.dispose;let{transitionDuration:o,transitionDelay:a}=getComputedStyle(e),[u,l]=[o,a].map(d=>{let[v=0]=d.split(",").filter(Boolean).map(g=>g.includes("ms")?parseFloat(g):parseFloat(g)*1e3).sort((g,_)=>_-g);return v}),f=u+l;if(f!==0){n.group(v=>{v.setTimeout(()=>{r(),v.dispose()},f),v.addEventListener(e,"transitionrun",g=>{g.target===g.currentTarget&&v.dispose()})});let d=n.addEventListener(e,"transitionend",v=>{v.target===v.currentTarget&&(r(),d())})}else r();return n.add(()=>r()),n.dispose}function qR(e,r,n,o){let a=n?"enter":"leave",u=Co(),l=o!==void 0?BR(o):()=>{};a==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let f=$n(a,{enter:()=>r.enter,leave:()=>r.leave}),d=$n(a,{enter:()=>r.enterTo,leave:()=>r.leaveTo}),v=$n(a,{enter:()=>r.enterFrom,leave:()=>r.leaveFrom});return il(e,...r.base,...r.enter,...r.enterTo,...r.enterFrom,...r.leave,...r.leaveFrom,...r.leaveTo,...r.entered),rl(e,...r.base,...f,...v),u.nextFrame(()=>{il(e,...r.base,...f,...v),rl(e,...r.base,...f,...d),zR(e,()=>(il(e,...r.base,...f),rl(e,...r.base,...r.entered),l()))}),u.dispose}function GR({immediate:e,container:r,direction:n,classes:o,onStart:a,onStop:u}){let l=cc(),f=ac(),d=Ri(n);Wn(()=>{e&&(d.current="enter")},[e]),Wn(()=>{let v=Co();f.add(v.dispose);let g=r.current;if(g&&d.current!=="idle"&&l.current)return v.dispose(),a.current(d.current),v.add(qR(g,o.current,d.current==="enter",()=>{v.dispose(),u.current(d.current)})),v.dispose},[n])}function yr(e=""){return e.split(" ").filter(r=>r.trim().length>1)}let fs=N.createContext(null);fs.displayName="TransitionContext";var KR=(e=>(e.Visible="visible",e.Hidden="hidden",e))(KR||{});function YR(){let e=N.useContext(fs);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function XR(){let e=N.useContext(ds);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let ds=N.createContext(null);ds.displayName="NestingContext";function ps(e){return"children"in e?ps(e.children):e.current.filter(({el:r})=>r.current!==null).filter(({state:r})=>r==="visible").length>0}function tm(e,r){let n=Ri(e),o=N.useRef([]),a=cc(),u=ac(),l=Dt((m,S=br.Hidden)=>{let y=o.current.findIndex(({el:E})=>E===m);y!==-1&&($n(S,{[br.Unmount](){o.current.splice(y,1)},[br.Hidden](){o.current[y].state="hidden"}}),u.microTask(()=>{var E;!ps(o)&&a.current&&((E=n.current)==null||E.call(n))}))}),f=Dt(m=>{let S=o.current.find(({el:y})=>y===m);return S?S.state!=="visible"&&(S.state="visible"):o.current.push({el:m,state:"visible"}),()=>l(m,br.Unmount)}),d=N.useRef([]),v=N.useRef(Promise.resolve()),g=N.useRef({enter:[],leave:[],idle:[]}),_=Dt((m,S,y)=>{d.current.splice(0),r&&(r.chains.current[S]=r.chains.current[S].filter(([E])=>E!==m)),r==null||r.chains.current[S].push([m,new Promise(E=>{d.current.push(E)})]),r==null||r.chains.current[S].push([m,new Promise(E=>{Promise.all(g.current[S].map(([D,I])=>I)).then(()=>E())})]),S==="enter"?v.current=v.current.then(()=>r==null?void 0:r.wait.current).then(()=>y(S)):y(S)}),O=Dt((m,S,y)=>{Promise.all(g.current[S].splice(0).map(([E,D])=>D)).then(()=>{var E;(E=d.current.shift())==null||E()}).then(()=>y(S))});return N.useMemo(()=>({children:o,register:f,unregister:l,onStart:_,onStop:O,wait:v,chains:g}),[f,l,o,_,O,g,v])}function VR(){}let ZR=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function dh(e){var r;let n={};for(let o of ZR)n[o]=(r=e[o])!=null?r:VR;return n}function JR(e){let r=N.useRef(dh(e));return N.useEffect(()=>{r.current=dh(e)},[e]),r}let QR="div",nm=Kv.RenderStrategy;function eP(e,r){var n,o;let{beforeEnter:a,afterEnter:u,beforeLeave:l,afterLeave:f,enter:d,enterFrom:v,enterTo:g,entered:_,leave:O,leaveFrom:m,leaveTo:S,...y}=e,E=N.useRef(null),D=Ro(E,r),I=(n=y.unmount)==null||n?br.Unmount:br.Hidden,{show:C,appear:k,initial:T}=YR(),[H,U]=N.useState(C?"visible":"hidden"),j=XR(),{register:Z,unregister:ee}=j;N.useEffect(()=>Z(E),[Z,E]),N.useEffect(()=>{if(I===br.Hidden&&E.current){if(C&&H!=="visible"){U("visible");return}return $n(H,{hidden:()=>ee(E),visible:()=>Z(E)})}},[H,E,Z,ee,C,I]);let ge=Ri({base:yr(y.className),enter:yr(d),enterFrom:yr(v),enterTo:yr(g),entered:yr(_),leave:yr(O),leaveFrom:yr(m),leaveTo:yr(S)}),Ce=JR({beforeEnter:a,afterEnter:u,beforeLeave:l,afterLeave:f}),_e=sc();N.useEffect(()=>{if(_e&&H==="visible"&&E.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[E,H,_e]);let se=T&&!k,Le=k&&C&&T,we=(()=>!_e||se?"idle":C?"enter":"leave")(),xe=AR(0),We=Dt(ie=>$n(ie,{enter:()=>{xe.addFlag(tr.Opening),Ce.current.beforeEnter()},leave:()=>{xe.addFlag(tr.Closing),Ce.current.beforeLeave()},idle:()=>{}})),ut=Dt(ie=>$n(ie,{enter:()=>{xe.removeFlag(tr.Opening),Ce.current.afterEnter()},leave:()=>{xe.removeFlag(tr.Closing),Ce.current.afterLeave()},idle:()=>{}})),G=tm(()=>{U("hidden"),ee(E)},j);GR({immediate:Le,container:E,classes:ge,direction:we,onStart:Ri(ie=>{G.onStart(E,ie,We)}),onStop:Ri(ie=>{G.onStop(E,ie,ut),ie==="leave"&&!ps(G)&&(U("hidden"),ee(E))})});let X=y,de={ref:D};return Le?X={...X,className:Ja(y.className,...ge.current.enter,...ge.current.enterFrom)}:(X.className=Ja(y.className,(o=E.current)==null?void 0:o.className),X.className===""&&delete X.className),N.createElement(ds.Provider,{value:G},N.createElement(ER,{value:$n(H,{visible:tr.Open,hidden:tr.Closed})|xe.flags},ti({ourProps:de,theirProps:X,defaultTag:QR,features:nm,visible:H==="visible",name:"Transition.Child"})))}function tP(e,r){let{show:n,appear:o=!1,unmount:a=!0,...u}=e,l=N.useRef(null),f=Ro(l,r);sc();let d=Vv();if(n===void 0&&d!==null&&(n=(d&tr.Open)===tr.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[v,g]=N.useState(n?"visible":"hidden"),_=tm(()=>{g("hidden")}),[O,m]=N.useState(!0),S=N.useRef([n]);Wn(()=>{O!==!1&&S.current[S.current.length-1]!==n&&(S.current.push(n),m(!1))},[S,n]);let y=N.useMemo(()=>({show:n,appear:o,initial:O}),[n,o,O]);N.useEffect(()=>{if(n)g("visible");else if(!ps(_))g("hidden");else{let C=l.current;if(!C)return;let k=C.getBoundingClientRect();k.x===0&&k.y===0&&k.width===0&&k.height===0&&g("hidden")}},[n,_]);let E={unmount:a},D=Dt(()=>{var C;O&&m(!1),(C=e.beforeEnter)==null||C.call(e)}),I=Dt(()=>{var C;O&&m(!1),(C=e.beforeLeave)==null||C.call(e)});return N.createElement(ds.Provider,{value:_},N.createElement(fs.Provider,{value:y},ti({ourProps:{...E,as:N.Fragment,children:N.createElement(rm,{ref:f,...E,...u,beforeEnter:D,beforeLeave:I})},theirProps:{},defaultTag:N.Fragment,features:nm,visible:v==="visible",name:"Transition"})))}function nP(e,r){let n=N.useContext(fs)!==null,o=Vv()!==null;return N.createElement(N.Fragment,null,!n&&o?N.createElement(Ml,{ref:r,...e}):N.createElement(rm,{ref:r,...e}))}let Ml=ni(tP),rm=ni(eP),rP=ni(nP),Qa=Object.assign(Ml,{Child:rP,Root:Ml});const ol={xs:{switch:"h-2.5 w-2.5",translate:"translate-x-2.5",container:"w-6 h-3.5"},sm:{switch:"h-3.5 w-3.5",translate:"translate-x-[0.85rem]",container:"h-4.5 w-8"},md:{switch:"h-4 w-4",translate:"translate-x-3",container:"h-5 w-8"},lg:{switch:"h-4 w-4",translate:"translate-x-3",container:"h-5 w-8"}},im=N.forwardRef(({onChange:e,value:r,size:n="md",className:o="ml-auto"},a)=>{const u=l=>{e(l)};return $.jsx("div",{className:Ot("flex items-center",o),children:$.jsx(UR,{ref:a,checked:r,onChange:u,onKeyDown:l=>{l.key==="Enter"&&u(!r)},className:`${r?"bg-primary-dark":"bg-grey-200"}
149
+ relative inline-flex shrink-0 ${ol[n].container} cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75`,children:$.jsx("span",{"aria-hidden":"true",className:`${r?ol[n].translate:"translate-x-0"}
150
+ pointer-events-none inline-block ${ol[n].switch} transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out`})})})}),iP=({children:e,label:r,placement:n="top",className:o})=>{const[a,u]=N.useState(null),[l,f]=N.useState(null),[d,v]=N.useState(!1),{styles:g,attributes:_}=Dh(a,l,{placement:n,modifiers:[{name:"offset",options:{offset:[0,8]}}]}),O=N.Children.map(e,m=>N.isValidElement(m)?N.cloneElement(m,{ref:u,onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1)}):m);return $.jsxs($.Fragment,{children:[O,d&&yo.createPortal($.jsx("div",{ref:f,style:g.popper,..._.popper,className:Ot("z-10 select-none rounded bg-gray-50 px-2 py-1 text-xs text-gray-800",o),children:r}),document.querySelector("body"))]})},oP=hl.keyframes`
151
151
  to {
152
152
  fill: url(#d);
153
153
  stroke-dashoffset: 0;
154
154
  }
155
- `,nm=Ga.svg`
155
+ `,om=Ka.svg`
156
156
  & .e {
157
157
  fill: url(#d);
158
158
  }
@@ -163,7 +163,7 @@ pointer-events-none inline-block ${il[n].switch} transform rounded-full bg-white
163
163
  fill: transparent;
164
164
  stroke-dasharray: 700;
165
165
  stroke-dashoffset: 700;
166
- animation: ${rP} 1.5s ease-in-out infinite alternate-reverse;
166
+ animation: ${oP} 1.5s ease-in-out infinite alternate-reverse;
167
167
  }
168
168
 
169
169
  & #circle {
@@ -173,34 +173,34 @@ pointer-events-none inline-block ${il[n].switch} transform rounded-full bg-white
173
173
  stroke-dasharray: 700;
174
174
  stroke-dashoffset: 700;
175
175
  }
176
- `,iP=({message:e,version:r})=>$.jsx("div",{className:"absolute inset-0 flex h-screen w-screen flex-col items-center justify-center bg-fd-gray-default text-white",children:$.jsxs("div",{className:"flex flex-col text-center",children:[$.jsx("div",{className:"relative mr-4 self-center",children:$.jsx("div",{className:"flex items-center justify-center rounded",children:$.jsxs(nm,{className:"h-60 w-60",viewBox:"0 0 143.14 136.27",children:[$.jsx("defs",{children:$.jsxs("linearGradient",{id:"d",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[$.jsx("stop",{offset:"0%",stopColor:"#2743a6",children:$.jsx("animate",{attributeName:"stop-color",values:"#ffa4c0; #2743a6;",dur:"6s",repeatCount:"indefinite"})}),$.jsx("stop",{offset:"100%",stopColor:"#ffa4c0",children:$.jsx("animate",{attributeName:"stop-color",values:"#2743a6; #ffa4c0;",dur:"2ds",repeatCount:"indefinite"})})]})}),$.jsx("g",{id:"a"}),$.jsx("g",{id:"b",children:$.jsx("g",{id:"c",children:$.jsxs("g",{children:[$.jsx("path",{id:"tail",className:"e",d:"M134.13,79.9l.25-1.2h-21.87l-.21,.7c-.03,.08-2.41,7.72-7.11,14.56-5.87,8.54-12.57,12.63-12.63,12.67l-1,.6,24.25,28.96h27.33l-22.61-26.46c2.2-2.67,10.06-13.09,13.6-29.83Z"}),$.jsx("path",{id:"circle",className:"f",d:"M83.08,113.64l18.93,22.6-33.68,.03-11.17-.03c-9.38,.01-18.55-2.45-26.56-7.11-2.94-1.71-5.72-3.71-8.29-6-8.79-7.8-17.6-19.72-20.92-37.37-.01-.02-.02-.03-.03-.05v-.09c-1.68-9.04-1.93-19.58,0-31.84C8.57,21.67,36.68-.66,69.93,.02c12.81,.27,25.06,4.28,35.59,11.48,.31,.2,.62,.41,.92,.62,.25,.18,.5,.35,.74,.53,8.82,6.31,16.06,14.69,21.02,24.42,.17,.33,.34,.65,.5,.98,.1,.21,.2,.41,.3,.61,4.35,8.92,6.63,18.54,6.54,28.06,0,.36,.02,.71,.02,1.06,0,.82-.03,1.62-.06,2.43h-22c.04-.81,.06-1.61,.06-2.43,0-1.52-.08-3.02-.23-4.5-2.68-22.17-21.26-39.86-43.98-40.63-4.43-.15-8.75,.29-12.88,1.28-.02,0-.04,.01-.05,.01-.48,.12-.95,.24-1.42,.38-.97,.26-1.94,.56-2.89,.9-.23,.07-.46,.15-.69,.24-6.2,2.27-11.84,5.87-16.59,10.67-8.99,9.09-13.84,21.44-13.3,33.9,0,19.98,17.86,39.48,35.59,42.56,6.4,1.37,24.04,1.24,25.96,1.05Z"})]})})})]})})}),$.jsxs("div",{children:[$.jsx("span",{className:"text-xs text-grey-200",children:r}),$.jsx("h2",{className:"text-lg text-grey-100",children:e})]})]})});var Qa={exports:{}};/**
176
+ `,aP=({message:e,version:r})=>$.jsx("div",{className:"absolute inset-0 flex h-screen w-screen flex-col items-center justify-center bg-fd-gray-default text-white",children:$.jsxs("div",{className:"flex flex-col text-center",children:[$.jsx("div",{className:"relative mr-4 self-center",children:$.jsx("div",{className:"flex items-center justify-center rounded",children:$.jsxs(om,{className:"h-60 w-60",viewBox:"0 0 143.14 136.27",children:[$.jsx("defs",{children:$.jsxs("linearGradient",{id:"d",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[$.jsx("stop",{offset:"0%",stopColor:"#2743a6",children:$.jsx("animate",{attributeName:"stop-color",values:"#ffa4c0; #2743a6;",dur:"6s",repeatCount:"indefinite"})}),$.jsx("stop",{offset:"100%",stopColor:"#ffa4c0",children:$.jsx("animate",{attributeName:"stop-color",values:"#2743a6; #ffa4c0;",dur:"2ds",repeatCount:"indefinite"})})]})}),$.jsx("g",{id:"a"}),$.jsx("g",{id:"b",children:$.jsx("g",{id:"c",children:$.jsxs("g",{children:[$.jsx("path",{id:"tail",className:"e",d:"M134.13,79.9l.25-1.2h-21.87l-.21,.7c-.03,.08-2.41,7.72-7.11,14.56-5.87,8.54-12.57,12.63-12.63,12.67l-1,.6,24.25,28.96h27.33l-22.61-26.46c2.2-2.67,10.06-13.09,13.6-29.83Z"}),$.jsx("path",{id:"circle",className:"f",d:"M83.08,113.64l18.93,22.6-33.68,.03-11.17-.03c-9.38,.01-18.55-2.45-26.56-7.11-2.94-1.71-5.72-3.71-8.29-6-8.79-7.8-17.6-19.72-20.92-37.37-.01-.02-.02-.03-.03-.05v-.09c-1.68-9.04-1.93-19.58,0-31.84C8.57,21.67,36.68-.66,69.93,.02c12.81,.27,25.06,4.28,35.59,11.48,.31,.2,.62,.41,.92,.62,.25,.18,.5,.35,.74,.53,8.82,6.31,16.06,14.69,21.02,24.42,.17,.33,.34,.65,.5,.98,.1,.21,.2,.41,.3,.61,4.35,8.92,6.63,18.54,6.54,28.06,0,.36,.02,.71,.02,1.06,0,.82-.03,1.62-.06,2.43h-22c.04-.81,.06-1.61,.06-2.43,0-1.52-.08-3.02-.23-4.5-2.68-22.17-21.26-39.86-43.98-40.63-4.43-.15-8.75,.29-12.88,1.28-.02,0-.04,.01-.05,.01-.48,.12-.95,.24-1.42,.38-.97,.26-1.94,.56-2.89,.9-.23,.07-.46,.15-.69,.24-6.2,2.27-11.84,5.87-16.59,10.67-8.99,9.09-13.84,21.44-13.3,33.9,0,19.98,17.86,39.48,35.59,42.56,6.4,1.37,24.04,1.24,25.96,1.05Z"})]})})})]})})}),$.jsxs("div",{children:[$.jsx("span",{className:"text-xs text-grey-200",children:r}),$.jsx("h2",{className:"text-lg text-grey-100",children:e})]})]})});var es={exports:{}};/**
177
177
  * @license
178
178
  * Lodash <https://lodash.com/>
179
179
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
180
180
  * Released under MIT license <https://lodash.com/license>
181
181
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
182
182
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
183
- */Qa.exports;(function(e,r){(function(){var n,o="4.17.21",a=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",f="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",v=500,g="__lodash_placeholder__",_=1,O=2,m=4,S=1,y=2,E=1,D=2,I=4,C=8,k=16,T=32,H=64,U=128,j=256,J=512,ee=30,ge="...",Ce=800,_e=16,se=1,Le=2,we=3,xe=1/0,We=9007199254740991,ut=17976931348623157e292,G=0/0,X=4294967295,de=X-1,ie=X>>>1,ce=[["ary",U],["bind",E],["bindKey",D],["curry",C],["curryRight",k],["flip",J],["partial",T],["partialRight",H],["rearg",j]],fe="[object Arguments]",ue="[object Array]",pe="[object AsyncFunction]",le="[object Boolean]",ye="[object Date]",be="[object DOMException]",Ke="[object Error]",V="[object Function]",rt="[object GeneratorFunction]",it="[object Map]",dt="[object Number]",An="[object Null]",gt="[object Object]",Wt="[object Promise]",Sr="[object Proxy]",Je="[object RegExp]",Qe="[object Set]",rn="[object String]",Kt="[object Symbol]",gn="[object Undefined]",Tt="[object WeakMap]",rr="[object WeakSet]",on="[object ArrayBuffer]",Yt="[object DataView]",Er="[object Float32Array]",xr="[object Float64Array]",Or="[object Int8Array]",Tr="[object Int16Array]",yn="[object Int32Array]",Un="[object Uint8Array]",bt="[object Uint8ClampedArray]",wn="[object Uint16Array]",bn="[object Uint32Array]",Cr=/\b__p \+= '';/g,Di=/\b(__p \+=) '' \+/g,Rr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ri=/&(?:amp|lt|gt|quot|#39);/g,ir=/[&<>"']/g,Pr=RegExp(ri.source),ki=RegExp(ir.source),Ni=/<%-([\s\S]+?)%>/g,Ar=/<%([\s\S]+?)%>/g,ii=/<%=([\s\S]+?)%>/g,$i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ji=/^\w*$/,Fi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,p=/[\\^$.*+?()[\]{}|]/g,P=RegExp(p.source),F=/^\s+/,Y=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,te=/,? & /,Q=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,je=/[()=,{}\[\]\/\s]/,Se=/\\(\\)?/g,Oe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ot=/\w*$/,kt=/^[-+]0x[0-9a-f]+$/i,Ir=/^0b[01]+$/i,lt=/^\[object .+?Constructor\]$/,zm=/^0o[0-7]+$/i,qm=/^(?:0|[1-9]\d*)$/,Gm=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ao=/($^)/,Km=/['\n\r\u2028\u2029\\]/g,Io="\\ud800-\\udfff",Ym="\\u0300-\\u036f",Xm="\\ufe20-\\ufe2f",Vm="\\u20d0-\\u20ff",gc=Ym+Xm+Vm,yc="\\u2700-\\u27bf",wc="a-z\\xdf-\\xf6\\xf8-\\xff",Jm="\\xac\\xb1\\xd7\\xf7",Zm="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Qm="\\u2000-\\u206f",eg=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",bc="A-Z\\xc0-\\xd6\\xd8-\\xde",_c="\\ufe0e\\ufe0f",Sc=Jm+Zm+Qm+eg,ms="['’]",tg="["+Io+"]",Ec="["+Sc+"]",Lo="["+gc+"]",xc="\\d+",ng="["+yc+"]",Oc="["+wc+"]",Tc="[^"+Io+Sc+xc+yc+wc+bc+"]",gs="\\ud83c[\\udffb-\\udfff]",rg="(?:"+Lo+"|"+gs+")",Cc="[^"+Io+"]",ys="(?:\\ud83c[\\udde6-\\uddff]){2}",ws="[\\ud800-\\udbff][\\udc00-\\udfff]",oi="["+bc+"]",Rc="\\u200d",Pc="(?:"+Oc+"|"+Tc+")",ig="(?:"+oi+"|"+Tc+")",Ac="(?:"+ms+"(?:d|ll|m|re|s|t|ve))?",Ic="(?:"+ms+"(?:D|LL|M|RE|S|T|VE))?",Lc=rg+"?",Mc="["+_c+"]?",og="(?:"+Rc+"(?:"+[Cc,ys,ws].join("|")+")"+Mc+Lc+")*",ag="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",sg="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Dc=Mc+Lc+og,ug="(?:"+[ng,ys,ws].join("|")+")"+Dc,lg="(?:"+[Cc+Lo+"?",Lo,ys,ws,tg].join("|")+")",cg=RegExp(ms,"g"),fg=RegExp(Lo,"g"),bs=RegExp(gs+"(?="+gs+")|"+lg+Dc,"g"),dg=RegExp([oi+"?"+Oc+"+"+Ac+"(?="+[Ec,oi,"$"].join("|")+")",ig+"+"+Ic+"(?="+[Ec,oi+Pc,"$"].join("|")+")",oi+"?"+Pc+"+"+Ac,oi+"+"+Ic,sg,ag,xc,ug].join("|"),"g"),pg=RegExp("["+Rc+Io+gc+_c+"]"),hg=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,vg=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],mg=-1,Ze={};Ze[Er]=Ze[xr]=Ze[Or]=Ze[Tr]=Ze[yn]=Ze[Un]=Ze[bt]=Ze[wn]=Ze[bn]=!0,Ze[fe]=Ze[ue]=Ze[on]=Ze[le]=Ze[Yt]=Ze[ye]=Ze[Ke]=Ze[V]=Ze[it]=Ze[dt]=Ze[gt]=Ze[Je]=Ze[Qe]=Ze[rn]=Ze[Tt]=!1;var Xe={};Xe[fe]=Xe[ue]=Xe[on]=Xe[Yt]=Xe[le]=Xe[ye]=Xe[Er]=Xe[xr]=Xe[Or]=Xe[Tr]=Xe[yn]=Xe[it]=Xe[dt]=Xe[gt]=Xe[Je]=Xe[Qe]=Xe[rn]=Xe[Kt]=Xe[Un]=Xe[bt]=Xe[wn]=Xe[bn]=!0,Xe[Ke]=Xe[V]=Xe[Tt]=!1;var gg={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},yg={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},wg={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},bg={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},_g=parseFloat,Sg=parseInt,kc=typeof zr=="object"&&zr&&zr.Object===Object&&zr,Eg=typeof self=="object"&&self&&self.Object===Object&&self,_t=kc||Eg||Function("return this")(),_s=r&&!r.nodeType&&r,Lr=_s&&!0&&e&&!e.nodeType&&e,Nc=Lr&&Lr.exports===_s,Ss=Nc&&kc.process,an=function(){try{var A=Lr&&Lr.require&&Lr.require("util").types;return A||Ss&&Ss.binding&&Ss.binding("util")}catch{}}(),$c=an&&an.isArrayBuffer,jc=an&&an.isDate,Fc=an&&an.isMap,Wc=an&&an.isRegExp,Hc=an&&an.isSet,Uc=an&&an.isTypedArray;function Xt(A,B,W){switch(W.length){case 0:return A.call(B);case 1:return A.call(B,W[0]);case 2:return A.call(B,W[0],W[1]);case 3:return A.call(B,W[0],W[1],W[2])}return A.apply(B,W)}function xg(A,B,W,ne){for(var Ee=-1,Fe=A==null?0:A.length;++Ee<Fe;){var ht=A[Ee];B(ne,ht,W(ht),A)}return ne}function sn(A,B){for(var W=-1,ne=A==null?0:A.length;++W<ne&&B(A[W],W,A)!==!1;);return A}function Og(A,B){for(var W=A==null?0:A.length;W--&&B(A[W],W,A)!==!1;);return A}function Bc(A,B){for(var W=-1,ne=A==null?0:A.length;++W<ne;)if(!B(A[W],W,A))return!1;return!0}function or(A,B){for(var W=-1,ne=A==null?0:A.length,Ee=0,Fe=[];++W<ne;){var ht=A[W];B(ht,W,A)&&(Fe[Ee++]=ht)}return Fe}function Mo(A,B){var W=A==null?0:A.length;return!!W&&ai(A,B,0)>-1}function Es(A,B,W){for(var ne=-1,Ee=A==null?0:A.length;++ne<Ee;)if(W(B,A[ne]))return!0;return!1}function et(A,B){for(var W=-1,ne=A==null?0:A.length,Ee=Array(ne);++W<ne;)Ee[W]=B(A[W],W,A);return Ee}function ar(A,B){for(var W=-1,ne=B.length,Ee=A.length;++W<ne;)A[Ee+W]=B[W];return A}function xs(A,B,W,ne){var Ee=-1,Fe=A==null?0:A.length;for(ne&&Fe&&(W=A[++Ee]);++Ee<Fe;)W=B(W,A[Ee],Ee,A);return W}function Tg(A,B,W,ne){var Ee=A==null?0:A.length;for(ne&&Ee&&(W=A[--Ee]);Ee--;)W=B(W,A[Ee],Ee,A);return W}function Os(A,B){for(var W=-1,ne=A==null?0:A.length;++W<ne;)if(B(A[W],W,A))return!0;return!1}var Cg=Ts("length");function Rg(A){return A.split("")}function Pg(A){return A.match(Q)||[]}function zc(A,B,W){var ne;return W(A,function(Ee,Fe,ht){if(B(Ee,Fe,ht))return ne=Fe,!1}),ne}function Do(A,B,W,ne){for(var Ee=A.length,Fe=W+(ne?1:-1);ne?Fe--:++Fe<Ee;)if(B(A[Fe],Fe,A))return Fe;return-1}function ai(A,B,W){return B===B?Hg(A,B,W):Do(A,qc,W)}function Ag(A,B,W,ne){for(var Ee=W-1,Fe=A.length;++Ee<Fe;)if(ne(A[Ee],B))return Ee;return-1}function qc(A){return A!==A}function Gc(A,B){var W=A==null?0:A.length;return W?Rs(A,B)/W:G}function Ts(A){return function(B){return B==null?n:B[A]}}function Cs(A){return function(B){return A==null?n:A[B]}}function Kc(A,B,W,ne,Ee){return Ee(A,function(Fe,ht,Ye){W=ne?(ne=!1,Fe):B(W,Fe,ht,Ye)}),W}function Ig(A,B){var W=A.length;for(A.sort(B);W--;)A[W]=A[W].value;return A}function Rs(A,B){for(var W,ne=-1,Ee=A.length;++ne<Ee;){var Fe=B(A[ne]);Fe!==n&&(W=W===n?Fe:W+Fe)}return W}function Ps(A,B){for(var W=-1,ne=Array(A);++W<A;)ne[W]=B(W);return ne}function Lg(A,B){return et(B,function(W){return[W,A[W]]})}function Yc(A){return A&&A.slice(0,Zc(A)+1).replace(F,"")}function Vt(A){return function(B){return A(B)}}function As(A,B){return et(B,function(W){return A[W]})}function Wi(A,B){return A.has(B)}function Xc(A,B){for(var W=-1,ne=A.length;++W<ne&&ai(B,A[W],0)>-1;);return W}function Vc(A,B){for(var W=A.length;W--&&ai(B,A[W],0)>-1;);return W}function Mg(A,B){for(var W=A.length,ne=0;W--;)A[W]===B&&++ne;return ne}var Dg=Cs(gg),kg=Cs(yg);function Ng(A){return"\\"+bg[A]}function $g(A,B){return A==null?n:A[B]}function si(A){return pg.test(A)}function jg(A){return hg.test(A)}function Fg(A){for(var B,W=[];!(B=A.next()).done;)W.push(B.value);return W}function Is(A){var B=-1,W=Array(A.size);return A.forEach(function(ne,Ee){W[++B]=[Ee,ne]}),W}function Jc(A,B){return function(W){return A(B(W))}}function sr(A,B){for(var W=-1,ne=A.length,Ee=0,Fe=[];++W<ne;){var ht=A[W];(ht===B||ht===g)&&(A[W]=g,Fe[Ee++]=W)}return Fe}function ko(A){var B=-1,W=Array(A.size);return A.forEach(function(ne){W[++B]=ne}),W}function Wg(A){var B=-1,W=Array(A.size);return A.forEach(function(ne){W[++B]=[ne,ne]}),W}function Hg(A,B,W){for(var ne=W-1,Ee=A.length;++ne<Ee;)if(A[ne]===B)return ne;return-1}function Ug(A,B,W){for(var ne=W+1;ne--;)if(A[ne]===B)return ne;return ne}function ui(A){return si(A)?zg(A):Cg(A)}function _n(A){return si(A)?qg(A):Rg(A)}function Zc(A){for(var B=A.length;B--&&Y.test(A.charAt(B)););return B}var Bg=Cs(wg);function zg(A){for(var B=bs.lastIndex=0;bs.test(A);)++B;return B}function qg(A){return A.match(bs)||[]}function Gg(A){return A.match(dg)||[]}var Kg=function A(B){B=B==null?_t:li.defaults(_t.Object(),B,li.pick(_t,vg));var W=B.Array,ne=B.Date,Ee=B.Error,Fe=B.Function,ht=B.Math,Ye=B.Object,Ls=B.RegExp,Yg=B.String,un=B.TypeError,No=W.prototype,Xg=Fe.prototype,ci=Ye.prototype,$o=B["__core-js_shared__"],jo=Xg.toString,qe=ci.hasOwnProperty,Vg=0,Qc=function(){var t=/[^.]+$/.exec($o&&$o.keys&&$o.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Fo=ci.toString,Jg=jo.call(Ye),Zg=_t._,Qg=Ls("^"+jo.call(qe).replace(p,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Wo=Nc?B.Buffer:n,ur=B.Symbol,Ho=B.Uint8Array,ef=Wo?Wo.allocUnsafe:n,Uo=Jc(Ye.getPrototypeOf,Ye),tf=Ye.create,nf=ci.propertyIsEnumerable,Bo=No.splice,rf=ur?ur.isConcatSpreadable:n,Hi=ur?ur.iterator:n,Mr=ur?ur.toStringTag:n,zo=function(){try{var t=jr(Ye,"defineProperty");return t({},"",{}),t}catch{}}(),e0=B.clearTimeout!==_t.clearTimeout&&B.clearTimeout,t0=ne&&ne.now!==_t.Date.now&&ne.now,n0=B.setTimeout!==_t.setTimeout&&B.setTimeout,qo=ht.ceil,Go=ht.floor,Ms=Ye.getOwnPropertySymbols,r0=Wo?Wo.isBuffer:n,of=B.isFinite,i0=No.join,o0=Jc(Ye.keys,Ye),vt=ht.max,Ct=ht.min,a0=ne.now,s0=B.parseInt,af=ht.random,u0=No.reverse,Ds=jr(B,"DataView"),Ui=jr(B,"Map"),ks=jr(B,"Promise"),fi=jr(B,"Set"),Bi=jr(B,"WeakMap"),zi=jr(Ye,"create"),Ko=Bi&&new Bi,di={},l0=Fr(Ds),c0=Fr(Ui),f0=Fr(ks),d0=Fr(fi),p0=Fr(Bi),Yo=ur?ur.prototype:n,qi=Yo?Yo.valueOf:n,sf=Yo?Yo.toString:n;function w(t){if(at(t)&&!Te(t)&&!(t instanceof ke)){if(t instanceof ln)return t;if(qe.call(t,"__wrapped__"))return ud(t)}return new ln(t)}var pi=function(){function t(){}return function(i){if(!tt(i))return{};if(tf)return tf(i);t.prototype=i;var s=new t;return t.prototype=n,s}}();function Xo(){}function ln(t,i){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!i,this.__index__=0,this.__values__=n}w.templateSettings={escape:Ni,evaluate:Ar,interpolate:ii,variable:"",imports:{_:w}},w.prototype=Xo.prototype,w.prototype.constructor=w,ln.prototype=pi(Xo.prototype),ln.prototype.constructor=ln;function ke(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=X,this.__views__=[]}function h0(){var t=new ke(this.__wrapped__);return t.__actions__=Ht(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ht(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ht(this.__views__),t}function v0(){if(this.__filtered__){var t=new ke(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function m0(){var t=this.__wrapped__.value(),i=this.__dir__,s=Te(t),c=i<0,h=s?t.length:0,b=Ry(0,h,this.__views__),x=b.start,R=b.end,M=R-x,z=c?R:x-1,q=this.__iteratees__,K=q.length,Z=0,re=Ct(M,this.__takeCount__);if(!s||!c&&h==M&&re==M)return If(t,this.__actions__);var ve=[];e:for(;M--&&Z<re;){z+=i;for(var Pe=-1,me=t[z];++Pe<K;){var De=q[Pe],Ne=De.iteratee,Qt=De.type,jt=Ne(me);if(Qt==Le)me=jt;else if(!jt){if(Qt==se)continue e;break e}}ve[Z++]=me}return ve}ke.prototype=pi(Xo.prototype),ke.prototype.constructor=ke;function Dr(t){var i=-1,s=t==null?0:t.length;for(this.clear();++i<s;){var c=t[i];this.set(c[0],c[1])}}function g0(){this.__data__=zi?zi(null):{},this.size=0}function y0(t){var i=this.has(t)&&delete this.__data__[t];return this.size-=i?1:0,i}function w0(t){var i=this.__data__;if(zi){var s=i[t];return s===d?n:s}return qe.call(i,t)?i[t]:n}function b0(t){var i=this.__data__;return zi?i[t]!==n:qe.call(i,t)}function _0(t,i){var s=this.__data__;return this.size+=this.has(t)?0:1,s[t]=zi&&i===n?d:i,this}Dr.prototype.clear=g0,Dr.prototype.delete=y0,Dr.prototype.get=w0,Dr.prototype.has=b0,Dr.prototype.set=_0;function Bn(t){var i=-1,s=t==null?0:t.length;for(this.clear();++i<s;){var c=t[i];this.set(c[0],c[1])}}function S0(){this.__data__=[],this.size=0}function E0(t){var i=this.__data__,s=Vo(i,t);if(s<0)return!1;var c=i.length-1;return s==c?i.pop():Bo.call(i,s,1),--this.size,!0}function x0(t){var i=this.__data__,s=Vo(i,t);return s<0?n:i[s][1]}function O0(t){return Vo(this.__data__,t)>-1}function T0(t,i){var s=this.__data__,c=Vo(s,t);return c<0?(++this.size,s.push([t,i])):s[c][1]=i,this}Bn.prototype.clear=S0,Bn.prototype.delete=E0,Bn.prototype.get=x0,Bn.prototype.has=O0,Bn.prototype.set=T0;function zn(t){var i=-1,s=t==null?0:t.length;for(this.clear();++i<s;){var c=t[i];this.set(c[0],c[1])}}function C0(){this.size=0,this.__data__={hash:new Dr,map:new(Ui||Bn),string:new Dr}}function R0(t){var i=ua(this,t).delete(t);return this.size-=i?1:0,i}function P0(t){return ua(this,t).get(t)}function A0(t){return ua(this,t).has(t)}function I0(t,i){var s=ua(this,t),c=s.size;return s.set(t,i),this.size+=s.size==c?0:1,this}zn.prototype.clear=C0,zn.prototype.delete=R0,zn.prototype.get=P0,zn.prototype.has=A0,zn.prototype.set=I0;function kr(t){var i=-1,s=t==null?0:t.length;for(this.__data__=new zn;++i<s;)this.add(t[i])}function L0(t){return this.__data__.set(t,d),this}function M0(t){return this.__data__.has(t)}kr.prototype.add=kr.prototype.push=L0,kr.prototype.has=M0;function Sn(t){var i=this.__data__=new Bn(t);this.size=i.size}function D0(){this.__data__=new Bn,this.size=0}function k0(t){var i=this.__data__,s=i.delete(t);return this.size=i.size,s}function N0(t){return this.__data__.get(t)}function $0(t){return this.__data__.has(t)}function j0(t,i){var s=this.__data__;if(s instanceof Bn){var c=s.__data__;if(!Ui||c.length<a-1)return c.push([t,i]),this.size=++s.size,this;s=this.__data__=new zn(c)}return s.set(t,i),this.size=s.size,this}Sn.prototype.clear=D0,Sn.prototype.delete=k0,Sn.prototype.get=N0,Sn.prototype.has=$0,Sn.prototype.set=j0;function uf(t,i){var s=Te(t),c=!s&&Wr(t),h=!s&&!c&&pr(t),b=!s&&!c&&!h&&gi(t),x=s||c||h||b,R=x?Ps(t.length,Yg):[],M=R.length;for(var z in t)(i||qe.call(t,z))&&!(x&&(z=="length"||h&&(z=="offset"||z=="parent")||b&&(z=="buffer"||z=="byteLength"||z=="byteOffset")||Yn(z,M)))&&R.push(z);return R}function lf(t){var i=t.length;return i?t[Gs(0,i-1)]:n}function F0(t,i){return la(Ht(t),Nr(i,0,t.length))}function W0(t){return la(Ht(t))}function Ns(t,i,s){(s!==n&&!En(t[i],s)||s===n&&!(i in t))&&qn(t,i,s)}function Gi(t,i,s){var c=t[i];(!(qe.call(t,i)&&En(c,s))||s===n&&!(i in t))&&qn(t,i,s)}function Vo(t,i){for(var s=t.length;s--;)if(En(t[s][0],i))return s;return-1}function H0(t,i,s,c){return lr(t,function(h,b,x){i(c,h,s(h),x)}),c}function cf(t,i){return t&&Ln(i,yt(i),t)}function U0(t,i){return t&&Ln(i,Bt(i),t)}function qn(t,i,s){i=="__proto__"&&zo?zo(t,i,{configurable:!0,enumerable:!0,value:s,writable:!0}):t[i]=s}function $s(t,i){for(var s=-1,c=i.length,h=W(c),b=t==null;++s<c;)h[s]=b?n:gu(t,i[s]);return h}function Nr(t,i,s){return t===t&&(s!==n&&(t=t<=s?t:s),i!==n&&(t=t>=i?t:i)),t}function cn(t,i,s,c,h,b){var x,R=i&_,M=i&O,z=i&m;if(s&&(x=h?s(t,c,h,b):s(t)),x!==n)return x;if(!tt(t))return t;var q=Te(t);if(q){if(x=Ay(t),!R)return Ht(t,x)}else{var K=Rt(t),Z=K==V||K==rt;if(pr(t))return Df(t,R);if(K==gt||K==fe||Z&&!h){if(x=M||Z?{}:Qf(t),!R)return M?wy(t,U0(x,t)):yy(t,cf(x,t))}else{if(!Xe[K])return h?t:{};x=Iy(t,K,R)}}b||(b=new Sn);var re=b.get(t);if(re)return re;b.set(t,x),Rd(t)?t.forEach(function(me){x.add(cn(me,i,s,me,t,b))}):Td(t)&&t.forEach(function(me,De){x.set(De,cn(me,i,s,De,t,b))});var ve=z?M?ru:nu:M?Bt:yt,Pe=q?n:ve(t);return sn(Pe||t,function(me,De){Pe&&(De=me,me=t[De]),Gi(x,De,cn(me,i,s,De,t,b))}),x}function B0(t){var i=yt(t);return function(s){return ff(s,t,i)}}function ff(t,i,s){var c=s.length;if(t==null)return!c;for(t=Ye(t);c--;){var h=s[c],b=i[h],x=t[h];if(x===n&&!(h in t)||!b(x))return!1}return!0}function df(t,i,s){if(typeof t!="function")throw new un(l);return Qi(function(){t.apply(n,s)},i)}function Ki(t,i,s,c){var h=-1,b=Mo,x=!0,R=t.length,M=[],z=i.length;if(!R)return M;s&&(i=et(i,Vt(s))),c?(b=Es,x=!1):i.length>=a&&(b=Wi,x=!1,i=new kr(i));e:for(;++h<R;){var q=t[h],K=s==null?q:s(q);if(q=c||q!==0?q:0,x&&K===K){for(var Z=z;Z--;)if(i[Z]===K)continue e;M.push(q)}else b(i,K,c)||M.push(q)}return M}var lr=Ff(In),pf=Ff(Fs,!0);function z0(t,i){var s=!0;return lr(t,function(c,h,b){return s=!!i(c,h,b),s}),s}function Jo(t,i,s){for(var c=-1,h=t.length;++c<h;){var b=t[c],x=i(b);if(x!=null&&(R===n?x===x&&!Zt(x):s(x,R)))var R=x,M=b}return M}function q0(t,i,s,c){var h=t.length;for(s=Re(s),s<0&&(s=-s>h?0:h+s),c=c===n||c>h?h:Re(c),c<0&&(c+=h),c=s>c?0:Ad(c);s<c;)t[s++]=i;return t}function hf(t,i){var s=[];return lr(t,function(c,h,b){i(c,h,b)&&s.push(c)}),s}function St(t,i,s,c,h){var b=-1,x=t.length;for(s||(s=My),h||(h=[]);++b<x;){var R=t[b];i>0&&s(R)?i>1?St(R,i-1,s,c,h):ar(h,R):c||(h[h.length]=R)}return h}var js=Wf(),vf=Wf(!0);function In(t,i){return t&&js(t,i,yt)}function Fs(t,i){return t&&vf(t,i,yt)}function Zo(t,i){return or(i,function(s){return Xn(t[s])})}function $r(t,i){i=fr(i,t);for(var s=0,c=i.length;t!=null&&s<c;)t=t[Mn(i[s++])];return s&&s==c?t:n}function mf(t,i,s){var c=i(t);return Te(t)?c:ar(c,s(t))}function Nt(t){return t==null?t===n?gn:An:Mr&&Mr in Ye(t)?Cy(t):Wy(t)}function Ws(t,i){return t>i}function G0(t,i){return t!=null&&qe.call(t,i)}function K0(t,i){return t!=null&&i in Ye(t)}function Y0(t,i,s){return t>=Ct(i,s)&&t<vt(i,s)}function Hs(t,i,s){for(var c=s?Es:Mo,h=t[0].length,b=t.length,x=b,R=W(b),M=1/0,z=[];x--;){var q=t[x];x&&i&&(q=et(q,Vt(i))),M=Ct(q.length,M),R[x]=!s&&(i||h>=120&&q.length>=120)?new kr(x&&q):n}q=t[0];var K=-1,Z=R[0];e:for(;++K<h&&z.length<M;){var re=q[K],ve=i?i(re):re;if(re=s||re!==0?re:0,!(Z?Wi(Z,ve):c(z,ve,s))){for(x=b;--x;){var Pe=R[x];if(!(Pe?Wi(Pe,ve):c(t[x],ve,s)))continue e}Z&&Z.push(ve),z.push(re)}}return z}function X0(t,i,s,c){return In(t,function(h,b,x){i(c,s(h),b,x)}),c}function Yi(t,i,s){i=fr(i,t),t=rd(t,i);var c=t==null?t:t[Mn(dn(i))];return c==null?n:Xt(c,t,s)}function gf(t){return at(t)&&Nt(t)==fe}function V0(t){return at(t)&&Nt(t)==on}function J0(t){return at(t)&&Nt(t)==ye}function Xi(t,i,s,c,h){return t===i?!0:t==null||i==null||!at(t)&&!at(i)?t!==t&&i!==i:Z0(t,i,s,c,Xi,h)}function Z0(t,i,s,c,h,b){var x=Te(t),R=Te(i),M=x?ue:Rt(t),z=R?ue:Rt(i);M=M==fe?gt:M,z=z==fe?gt:z;var q=M==gt,K=z==gt,Z=M==z;if(Z&&pr(t)){if(!pr(i))return!1;x=!0,q=!1}if(Z&&!q)return b||(b=new Sn),x||gi(t)?Vf(t,i,s,c,h,b):Oy(t,i,M,s,c,h,b);if(!(s&S)){var re=q&&qe.call(t,"__wrapped__"),ve=K&&qe.call(i,"__wrapped__");if(re||ve){var Pe=re?t.value():t,me=ve?i.value():i;return b||(b=new Sn),h(Pe,me,s,c,b)}}return Z?(b||(b=new Sn),Ty(t,i,s,c,h,b)):!1}function Q0(t){return at(t)&&Rt(t)==it}function Us(t,i,s,c){var h=s.length,b=h,x=!c;if(t==null)return!b;for(t=Ye(t);h--;){var R=s[h];if(x&&R[2]?R[1]!==t[R[0]]:!(R[0]in t))return!1}for(;++h<b;){R=s[h];var M=R[0],z=t[M],q=R[1];if(x&&R[2]){if(z===n&&!(M in t))return!1}else{var K=new Sn;if(c)var Z=c(z,q,M,t,i,K);if(!(Z===n?Xi(q,z,S|y,c,K):Z))return!1}}return!0}function yf(t){if(!tt(t)||ky(t))return!1;var i=Xn(t)?Qg:lt;return i.test(Fr(t))}function ey(t){return at(t)&&Nt(t)==Je}function ty(t){return at(t)&&Rt(t)==Qe}function ny(t){return at(t)&&va(t.length)&&!!Ze[Nt(t)]}function wf(t){return typeof t=="function"?t:t==null?zt:typeof t=="object"?Te(t)?Sf(t[0],t[1]):_f(t):Hd(t)}function Bs(t){if(!Zi(t))return o0(t);var i=[];for(var s in Ye(t))qe.call(t,s)&&s!="constructor"&&i.push(s);return i}function ry(t){if(!tt(t))return Fy(t);var i=Zi(t),s=[];for(var c in t)c=="constructor"&&(i||!qe.call(t,c))||s.push(c);return s}function zs(t,i){return t<i}function bf(t,i){var s=-1,c=Ut(t)?W(t.length):[];return lr(t,function(h,b,x){c[++s]=i(h,b,x)}),c}function _f(t){var i=ou(t);return i.length==1&&i[0][2]?td(i[0][0],i[0][1]):function(s){return s===t||Us(s,t,i)}}function Sf(t,i){return su(t)&&ed(i)?td(Mn(t),i):function(s){var c=gu(s,t);return c===n&&c===i?yu(s,t):Xi(i,c,S|y)}}function Qo(t,i,s,c,h){t!==i&&js(i,function(b,x){if(h||(h=new Sn),tt(b))iy(t,i,x,s,Qo,c,h);else{var R=c?c(lu(t,x),b,x+"",t,i,h):n;R===n&&(R=b),Ns(t,x,R)}},Bt)}function iy(t,i,s,c,h,b,x){var R=lu(t,s),M=lu(i,s),z=x.get(M);if(z){Ns(t,s,z);return}var q=b?b(R,M,s+"",t,i,x):n,K=q===n;if(K){var Z=Te(M),re=!Z&&pr(M),ve=!Z&&!re&&gi(M);q=M,Z||re||ve?Te(R)?q=R:ct(R)?q=Ht(R):re?(K=!1,q=Df(M,!0)):ve?(K=!1,q=kf(M,!0)):q=[]:eo(M)||Wr(M)?(q=R,Wr(R)?q=Id(R):(!tt(R)||Xn(R))&&(q=Qf(M))):K=!1}K&&(x.set(M,q),h(q,M,c,b,x),x.delete(M)),Ns(t,s,q)}function Ef(t,i){var s=t.length;if(s)return i+=i<0?s:0,Yn(i,s)?t[i]:n}function xf(t,i,s){i.length?i=et(i,function(b){return Te(b)?function(x){return $r(x,b.length===1?b[0]:b)}:b}):i=[zt];var c=-1;i=et(i,Vt(he()));var h=bf(t,function(b,x,R){var M=et(i,function(z){return z(b)});return{criteria:M,index:++c,value:b}});return Ig(h,function(b,x){return gy(b,x,s)})}function oy(t,i){return Of(t,i,function(s,c){return yu(t,c)})}function Of(t,i,s){for(var c=-1,h=i.length,b={};++c<h;){var x=i[c],R=$r(t,x);s(R,x)&&Vi(b,fr(x,t),R)}return b}function ay(t){return function(i){return $r(i,t)}}function qs(t,i,s,c){var h=c?Ag:ai,b=-1,x=i.length,R=t;for(t===i&&(i=Ht(i)),s&&(R=et(t,Vt(s)));++b<x;)for(var M=0,z=i[b],q=s?s(z):z;(M=h(R,q,M,c))>-1;)R!==t&&Bo.call(R,M,1),Bo.call(t,M,1);return t}function Tf(t,i){for(var s=t?i.length:0,c=s-1;s--;){var h=i[s];if(s==c||h!==b){var b=h;Yn(h)?Bo.call(t,h,1):Xs(t,h)}}return t}function Gs(t,i){return t+Go(af()*(i-t+1))}function sy(t,i,s,c){for(var h=-1,b=vt(qo((i-t)/(s||1)),0),x=W(b);b--;)x[c?b:++h]=t,t+=s;return x}function Ks(t,i){var s="";if(!t||i<1||i>We)return s;do i%2&&(s+=t),i=Go(i/2),i&&(t+=t);while(i);return s}function Ae(t,i){return cu(nd(t,i,zt),t+"")}function uy(t){return lf(yi(t))}function ly(t,i){var s=yi(t);return la(s,Nr(i,0,s.length))}function Vi(t,i,s,c){if(!tt(t))return t;i=fr(i,t);for(var h=-1,b=i.length,x=b-1,R=t;R!=null&&++h<b;){var M=Mn(i[h]),z=s;if(M==="__proto__"||M==="constructor"||M==="prototype")return t;if(h!=x){var q=R[M];z=c?c(q,M,R):n,z===n&&(z=tt(q)?q:Yn(i[h+1])?[]:{})}Gi(R,M,z),R=R[M]}return t}var Cf=Ko?function(t,i){return Ko.set(t,i),t}:zt,cy=zo?function(t,i){return zo(t,"toString",{configurable:!0,enumerable:!1,value:bu(i),writable:!0})}:zt;function fy(t){return la(yi(t))}function fn(t,i,s){var c=-1,h=t.length;i<0&&(i=-i>h?0:h+i),s=s>h?h:s,s<0&&(s+=h),h=i>s?0:s-i>>>0,i>>>=0;for(var b=W(h);++c<h;)b[c]=t[c+i];return b}function dy(t,i){var s;return lr(t,function(c,h,b){return s=i(c,h,b),!s}),!!s}function ea(t,i,s){var c=0,h=t==null?c:t.length;if(typeof i=="number"&&i===i&&h<=ie){for(;c<h;){var b=c+h>>>1,x=t[b];x!==null&&!Zt(x)&&(s?x<=i:x<i)?c=b+1:h=b}return h}return Ys(t,i,zt,s)}function Ys(t,i,s,c){var h=0,b=t==null?0:t.length;if(b===0)return 0;i=s(i);for(var x=i!==i,R=i===null,M=Zt(i),z=i===n;h<b;){var q=Go((h+b)/2),K=s(t[q]),Z=K!==n,re=K===null,ve=K===K,Pe=Zt(K);if(x)var me=c||ve;else z?me=ve&&(c||Z):R?me=ve&&Z&&(c||!re):M?me=ve&&Z&&!re&&(c||!Pe):re||Pe?me=!1:me=c?K<=i:K<i;me?h=q+1:b=q}return Ct(b,de)}function Rf(t,i){for(var s=-1,c=t.length,h=0,b=[];++s<c;){var x=t[s],R=i?i(x):x;if(!s||!En(R,M)){var M=R;b[h++]=x===0?0:x}}return b}function Pf(t){return typeof t=="number"?t:Zt(t)?G:+t}function Jt(t){if(typeof t=="string")return t;if(Te(t))return et(t,Jt)+"";if(Zt(t))return sf?sf.call(t):"";var i=t+"";return i=="0"&&1/t==-xe?"-0":i}function cr(t,i,s){var c=-1,h=Mo,b=t.length,x=!0,R=[],M=R;if(s)x=!1,h=Es;else if(b>=a){var z=i?null:Ey(t);if(z)return ko(z);x=!1,h=Wi,M=new kr}else M=i?[]:R;e:for(;++c<b;){var q=t[c],K=i?i(q):q;if(q=s||q!==0?q:0,x&&K===K){for(var Z=M.length;Z--;)if(M[Z]===K)continue e;i&&M.push(K),R.push(q)}else h(M,K,s)||(M!==R&&M.push(K),R.push(q))}return R}function Xs(t,i){return i=fr(i,t),t=rd(t,i),t==null||delete t[Mn(dn(i))]}function Af(t,i,s,c){return Vi(t,i,s($r(t,i)),c)}function ta(t,i,s,c){for(var h=t.length,b=c?h:-1;(c?b--:++b<h)&&i(t[b],b,t););return s?fn(t,c?0:b,c?b+1:h):fn(t,c?b+1:0,c?h:b)}function If(t,i){var s=t;return s instanceof ke&&(s=s.value()),xs(i,function(c,h){return h.func.apply(h.thisArg,ar([c],h.args))},s)}function Vs(t,i,s){var c=t.length;if(c<2)return c?cr(t[0]):[];for(var h=-1,b=W(c);++h<c;)for(var x=t[h],R=-1;++R<c;)R!=h&&(b[h]=Ki(b[h]||x,t[R],i,s));return cr(St(b,1),i,s)}function Lf(t,i,s){for(var c=-1,h=t.length,b=i.length,x={};++c<h;){var R=c<b?i[c]:n;s(x,t[c],R)}return x}function Js(t){return ct(t)?t:[]}function Zs(t){return typeof t=="function"?t:zt}function fr(t,i){return Te(t)?t:su(t,i)?[t]:sd(He(t))}var py=Ae;function dr(t,i,s){var c=t.length;return s=s===n?c:s,!i&&s>=c?t:fn(t,i,s)}var Mf=e0||function(t){return _t.clearTimeout(t)};function Df(t,i){if(i)return t.slice();var s=t.length,c=ef?ef(s):new t.constructor(s);return t.copy(c),c}function Qs(t){var i=new t.constructor(t.byteLength);return new Ho(i).set(new Ho(t)),i}function hy(t,i){var s=i?Qs(t.buffer):t.buffer;return new t.constructor(s,t.byteOffset,t.byteLength)}function vy(t){var i=new t.constructor(t.source,ot.exec(t));return i.lastIndex=t.lastIndex,i}function my(t){return qi?Ye(qi.call(t)):{}}function kf(t,i){var s=i?Qs(t.buffer):t.buffer;return new t.constructor(s,t.byteOffset,t.length)}function Nf(t,i){if(t!==i){var s=t!==n,c=t===null,h=t===t,b=Zt(t),x=i!==n,R=i===null,M=i===i,z=Zt(i);if(!R&&!z&&!b&&t>i||b&&x&&M&&!R&&!z||c&&x&&M||!s&&M||!h)return 1;if(!c&&!b&&!z&&t<i||z&&s&&h&&!c&&!b||R&&s&&h||!x&&h||!M)return-1}return 0}function gy(t,i,s){for(var c=-1,h=t.criteria,b=i.criteria,x=h.length,R=s.length;++c<x;){var M=Nf(h[c],b[c]);if(M){if(c>=R)return M;var z=s[c];return M*(z=="desc"?-1:1)}}return t.index-i.index}function $f(t,i,s,c){for(var h=-1,b=t.length,x=s.length,R=-1,M=i.length,z=vt(b-x,0),q=W(M+z),K=!c;++R<M;)q[R]=i[R];for(;++h<x;)(K||h<b)&&(q[s[h]]=t[h]);for(;z--;)q[R++]=t[h++];return q}function jf(t,i,s,c){for(var h=-1,b=t.length,x=-1,R=s.length,M=-1,z=i.length,q=vt(b-R,0),K=W(q+z),Z=!c;++h<q;)K[h]=t[h];for(var re=h;++M<z;)K[re+M]=i[M];for(;++x<R;)(Z||h<b)&&(K[re+s[x]]=t[h++]);return K}function Ht(t,i){var s=-1,c=t.length;for(i||(i=W(c));++s<c;)i[s]=t[s];return i}function Ln(t,i,s,c){var h=!s;s||(s={});for(var b=-1,x=i.length;++b<x;){var R=i[b],M=c?c(s[R],t[R],R,s,t):n;M===n&&(M=t[R]),h?qn(s,R,M):Gi(s,R,M)}return s}function yy(t,i){return Ln(t,au(t),i)}function wy(t,i){return Ln(t,Jf(t),i)}function na(t,i){return function(s,c){var h=Te(s)?xg:H0,b=i?i():{};return h(s,t,he(c,2),b)}}function hi(t){return Ae(function(i,s){var c=-1,h=s.length,b=h>1?s[h-1]:n,x=h>2?s[2]:n;for(b=t.length>3&&typeof b=="function"?(h--,b):n,x&&$t(s[0],s[1],x)&&(b=h<3?n:b,h=1),i=Ye(i);++c<h;){var R=s[c];R&&t(i,R,c,b)}return i})}function Ff(t,i){return function(s,c){if(s==null)return s;if(!Ut(s))return t(s,c);for(var h=s.length,b=i?h:-1,x=Ye(s);(i?b--:++b<h)&&c(x[b],b,x)!==!1;);return s}}function Wf(t){return function(i,s,c){for(var h=-1,b=Ye(i),x=c(i),R=x.length;R--;){var M=x[t?R:++h];if(s(b[M],M,b)===!1)break}return i}}function by(t,i,s){var c=i&E,h=Ji(t);function b(){var x=this&&this!==_t&&this instanceof b?h:t;return x.apply(c?s:this,arguments)}return b}function Hf(t){return function(i){i=He(i);var s=si(i)?_n(i):n,c=s?s[0]:i.charAt(0),h=s?dr(s,1).join(""):i.slice(1);return c[t]()+h}}function vi(t){return function(i){return xs(Fd(jd(i).replace(cg,"")),t,"")}}function Ji(t){return function(){var i=arguments;switch(i.length){case 0:return new t;case 1:return new t(i[0]);case 2:return new t(i[0],i[1]);case 3:return new t(i[0],i[1],i[2]);case 4:return new t(i[0],i[1],i[2],i[3]);case 5:return new t(i[0],i[1],i[2],i[3],i[4]);case 6:return new t(i[0],i[1],i[2],i[3],i[4],i[5]);case 7:return new t(i[0],i[1],i[2],i[3],i[4],i[5],i[6])}var s=pi(t.prototype),c=t.apply(s,i);return tt(c)?c:s}}function _y(t,i,s){var c=Ji(t);function h(){for(var b=arguments.length,x=W(b),R=b,M=mi(h);R--;)x[R]=arguments[R];var z=b<3&&x[0]!==M&&x[b-1]!==M?[]:sr(x,M);if(b-=z.length,b<s)return Gf(t,i,ra,h.placeholder,n,x,z,n,n,s-b);var q=this&&this!==_t&&this instanceof h?c:t;return Xt(q,this,x)}return h}function Uf(t){return function(i,s,c){var h=Ye(i);if(!Ut(i)){var b=he(s,3);i=yt(i),s=function(R){return b(h[R],R,h)}}var x=t(i,s,c);return x>-1?h[b?i[x]:x]:n}}function Bf(t){return Kn(function(i){var s=i.length,c=s,h=ln.prototype.thru;for(t&&i.reverse();c--;){var b=i[c];if(typeof b!="function")throw new un(l);if(h&&!x&&sa(b)=="wrapper")var x=new ln([],!0)}for(c=x?c:s;++c<s;){b=i[c];var R=sa(b),M=R=="wrapper"?iu(b):n;M&&uu(M[0])&&M[1]==(U|C|T|j)&&!M[4].length&&M[9]==1?x=x[sa(M[0])].apply(x,M[3]):x=b.length==1&&uu(b)?x[R]():x.thru(b)}return function(){var z=arguments,q=z[0];if(x&&z.length==1&&Te(q))return x.plant(q).value();for(var K=0,Z=s?i[K].apply(this,z):q;++K<s;)Z=i[K].call(this,Z);return Z}})}function ra(t,i,s,c,h,b,x,R,M,z){var q=i&U,K=i&E,Z=i&D,re=i&(C|k),ve=i&J,Pe=Z?n:Ji(t);function me(){for(var De=arguments.length,Ne=W(De),Qt=De;Qt--;)Ne[Qt]=arguments[Qt];if(re)var jt=mi(me),en=Mg(Ne,jt);if(c&&(Ne=$f(Ne,c,h,re)),b&&(Ne=jf(Ne,b,x,re)),De-=en,re&&De<z){var ft=sr(Ne,jt);return Gf(t,i,ra,me.placeholder,s,Ne,ft,R,M,z-De)}var xn=K?s:this,Jn=Z?xn[t]:t;return De=Ne.length,R?Ne=Hy(Ne,R):ve&&De>1&&Ne.reverse(),q&&M<De&&(Ne.length=M),this&&this!==_t&&this instanceof me&&(Jn=Pe||Ji(Jn)),Jn.apply(xn,Ne)}return me}function zf(t,i){return function(s,c){return X0(s,t,i(c),{})}}function ia(t,i){return function(s,c){var h;if(s===n&&c===n)return i;if(s!==n&&(h=s),c!==n){if(h===n)return c;typeof s=="string"||typeof c=="string"?(s=Jt(s),c=Jt(c)):(s=Pf(s),c=Pf(c)),h=t(s,c)}return h}}function eu(t){return Kn(function(i){return i=et(i,Vt(he())),Ae(function(s){var c=this;return t(i,function(h){return Xt(h,c,s)})})})}function oa(t,i){i=i===n?" ":Jt(i);var s=i.length;if(s<2)return s?Ks(i,t):i;var c=Ks(i,qo(t/ui(i)));return si(i)?dr(_n(c),0,t).join(""):c.slice(0,t)}function Sy(t,i,s,c){var h=i&E,b=Ji(t);function x(){for(var R=-1,M=arguments.length,z=-1,q=c.length,K=W(q+M),Z=this&&this!==_t&&this instanceof x?b:t;++z<q;)K[z]=c[z];for(;M--;)K[z++]=arguments[++R];return Xt(Z,h?s:this,K)}return x}function qf(t){return function(i,s,c){return c&&typeof c!="number"&&$t(i,s,c)&&(s=c=n),i=Vn(i),s===n?(s=i,i=0):s=Vn(s),c=c===n?i<s?1:-1:Vn(c),sy(i,s,c,t)}}function aa(t){return function(i,s){return typeof i=="string"&&typeof s=="string"||(i=pn(i),s=pn(s)),t(i,s)}}function Gf(t,i,s,c,h,b,x,R,M,z){var q=i&C,K=q?x:n,Z=q?n:x,re=q?b:n,ve=q?n:b;i|=q?T:H,i&=~(q?H:T),i&I||(i&=~(E|D));var Pe=[t,i,h,re,K,ve,Z,R,M,z],me=s.apply(n,Pe);return uu(t)&&id(me,Pe),me.placeholder=c,od(me,t,i)}function tu(t){var i=ht[t];return function(s,c){if(s=pn(s),c=c==null?0:Ct(Re(c),292),c&&of(s)){var h=(He(s)+"e").split("e"),b=i(h[0]+"e"+(+h[1]+c));return h=(He(b)+"e").split("e"),+(h[0]+"e"+(+h[1]-c))}return i(s)}}var Ey=fi&&1/ko(new fi([,-0]))[1]==xe?function(t){return new fi(t)}:Eu;function Kf(t){return function(i){var s=Rt(i);return s==it?Is(i):s==Qe?Wg(i):Lg(i,t(i))}}function Gn(t,i,s,c,h,b,x,R){var M=i&D;if(!M&&typeof t!="function")throw new un(l);var z=c?c.length:0;if(z||(i&=~(T|H),c=h=n),x=x===n?x:vt(Re(x),0),R=R===n?R:Re(R),z-=h?h.length:0,i&H){var q=c,K=h;c=h=n}var Z=M?n:iu(t),re=[t,i,s,c,h,q,K,b,x,R];if(Z&&jy(re,Z),t=re[0],i=re[1],s=re[2],c=re[3],h=re[4],R=re[9]=re[9]===n?M?0:t.length:vt(re[9]-z,0),!R&&i&(C|k)&&(i&=~(C|k)),!i||i==E)var ve=by(t,i,s);else i==C||i==k?ve=_y(t,i,R):(i==T||i==(E|T))&&!h.length?ve=Sy(t,i,s,c):ve=ra.apply(n,re);var Pe=Z?Cf:id;return od(Pe(ve,re),t,i)}function Yf(t,i,s,c){return t===n||En(t,ci[s])&&!qe.call(c,s)?i:t}function Xf(t,i,s,c,h,b){return tt(t)&&tt(i)&&(b.set(i,t),Qo(t,i,n,Xf,b),b.delete(i)),t}function xy(t){return eo(t)?n:t}function Vf(t,i,s,c,h,b){var x=s&S,R=t.length,M=i.length;if(R!=M&&!(x&&M>R))return!1;var z=b.get(t),q=b.get(i);if(z&&q)return z==i&&q==t;var K=-1,Z=!0,re=s&y?new kr:n;for(b.set(t,i),b.set(i,t);++K<R;){var ve=t[K],Pe=i[K];if(c)var me=x?c(Pe,ve,K,i,t,b):c(ve,Pe,K,t,i,b);if(me!==n){if(me)continue;Z=!1;break}if(re){if(!Os(i,function(De,Ne){if(!Wi(re,Ne)&&(ve===De||h(ve,De,s,c,b)))return re.push(Ne)})){Z=!1;break}}else if(!(ve===Pe||h(ve,Pe,s,c,b))){Z=!1;break}}return b.delete(t),b.delete(i),Z}function Oy(t,i,s,c,h,b,x){switch(s){case Yt:if(t.byteLength!=i.byteLength||t.byteOffset!=i.byteOffset)return!1;t=t.buffer,i=i.buffer;case on:return!(t.byteLength!=i.byteLength||!b(new Ho(t),new Ho(i)));case le:case ye:case dt:return En(+t,+i);case Ke:return t.name==i.name&&t.message==i.message;case Je:case rn:return t==i+"";case it:var R=Is;case Qe:var M=c&S;if(R||(R=ko),t.size!=i.size&&!M)return!1;var z=x.get(t);if(z)return z==i;c|=y,x.set(t,i);var q=Vf(R(t),R(i),c,h,b,x);return x.delete(t),q;case Kt:if(qi)return qi.call(t)==qi.call(i)}return!1}function Ty(t,i,s,c,h,b){var x=s&S,R=nu(t),M=R.length,z=nu(i),q=z.length;if(M!=q&&!x)return!1;for(var K=M;K--;){var Z=R[K];if(!(x?Z in i:qe.call(i,Z)))return!1}var re=b.get(t),ve=b.get(i);if(re&&ve)return re==i&&ve==t;var Pe=!0;b.set(t,i),b.set(i,t);for(var me=x;++K<M;){Z=R[K];var De=t[Z],Ne=i[Z];if(c)var Qt=x?c(Ne,De,Z,i,t,b):c(De,Ne,Z,t,i,b);if(!(Qt===n?De===Ne||h(De,Ne,s,c,b):Qt)){Pe=!1;break}me||(me=Z=="constructor")}if(Pe&&!me){var jt=t.constructor,en=i.constructor;jt!=en&&"constructor"in t&&"constructor"in i&&!(typeof jt=="function"&&jt instanceof jt&&typeof en=="function"&&en instanceof en)&&(Pe=!1)}return b.delete(t),b.delete(i),Pe}function Kn(t){return cu(nd(t,n,fd),t+"")}function nu(t){return mf(t,yt,au)}function ru(t){return mf(t,Bt,Jf)}var iu=Ko?function(t){return Ko.get(t)}:Eu;function sa(t){for(var i=t.name+"",s=di[i],c=qe.call(di,i)?s.length:0;c--;){var h=s[c],b=h.func;if(b==null||b==t)return h.name}return i}function mi(t){var i=qe.call(w,"placeholder")?w:t;return i.placeholder}function he(){var t=w.iteratee||_u;return t=t===_u?wf:t,arguments.length?t(arguments[0],arguments[1]):t}function ua(t,i){var s=t.__data__;return Dy(i)?s[typeof i=="string"?"string":"hash"]:s.map}function ou(t){for(var i=yt(t),s=i.length;s--;){var c=i[s],h=t[c];i[s]=[c,h,ed(h)]}return i}function jr(t,i){var s=$g(t,i);return yf(s)?s:n}function Cy(t){var i=qe.call(t,Mr),s=t[Mr];try{t[Mr]=n;var c=!0}catch{}var h=Fo.call(t);return c&&(i?t[Mr]=s:delete t[Mr]),h}var au=Ms?function(t){return t==null?[]:(t=Ye(t),or(Ms(t),function(i){return nf.call(t,i)}))}:xu,Jf=Ms?function(t){for(var i=[];t;)ar(i,au(t)),t=Uo(t);return i}:xu,Rt=Nt;(Ds&&Rt(new Ds(new ArrayBuffer(1)))!=Yt||Ui&&Rt(new Ui)!=it||ks&&Rt(ks.resolve())!=Wt||fi&&Rt(new fi)!=Qe||Bi&&Rt(new Bi)!=Tt)&&(Rt=function(t){var i=Nt(t),s=i==gt?t.constructor:n,c=s?Fr(s):"";if(c)switch(c){case l0:return Yt;case c0:return it;case f0:return Wt;case d0:return Qe;case p0:return Tt}return i});function Ry(t,i,s){for(var c=-1,h=s.length;++c<h;){var b=s[c],x=b.size;switch(b.type){case"drop":t+=x;break;case"dropRight":i-=x;break;case"take":i=Ct(i,t+x);break;case"takeRight":t=vt(t,i-x);break}}return{start:t,end:i}}function Py(t){var i=t.match(ae);return i?i[1].split(te):[]}function Zf(t,i,s){i=fr(i,t);for(var c=-1,h=i.length,b=!1;++c<h;){var x=Mn(i[c]);if(!(b=t!=null&&s(t,x)))break;t=t[x]}return b||++c!=h?b:(h=t==null?0:t.length,!!h&&va(h)&&Yn(x,h)&&(Te(t)||Wr(t)))}function Ay(t){var i=t.length,s=new t.constructor(i);return i&&typeof t[0]=="string"&&qe.call(t,"index")&&(s.index=t.index,s.input=t.input),s}function Qf(t){return typeof t.constructor=="function"&&!Zi(t)?pi(Uo(t)):{}}function Iy(t,i,s){var c=t.constructor;switch(i){case on:return Qs(t);case le:case ye:return new c(+t);case Yt:return hy(t,s);case Er:case xr:case Or:case Tr:case yn:case Un:case bt:case wn:case bn:return kf(t,s);case it:return new c;case dt:case rn:return new c(t);case Je:return vy(t);case Qe:return new c;case Kt:return my(t)}}function Ly(t,i){var s=i.length;if(!s)return t;var c=s-1;return i[c]=(s>1?"& ":"")+i[c],i=i.join(s>2?", ":" "),t.replace(oe,`{
183
+ */es.exports;(function(e,r){(function(){var n,o="4.17.21",a=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",f="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",v=500,g="__lodash_placeholder__",_=1,O=2,m=4,S=1,y=2,E=1,D=2,I=4,C=8,k=16,T=32,H=64,U=128,j=256,Z=512,ee=30,ge="...",Ce=800,_e=16,se=1,Le=2,we=3,xe=1/0,We=9007199254740991,ut=17976931348623157e292,G=0/0,X=4294967295,de=X-1,ie=X>>>1,ce=[["ary",U],["bind",E],["bindKey",D],["curry",C],["curryRight",k],["flip",Z],["partial",T],["partialRight",H],["rearg",j]],fe="[object Arguments]",ue="[object Array]",pe="[object AsyncFunction]",le="[object Boolean]",ye="[object Date]",be="[object DOMException]",Ge="[object Error]",V="[object Function]",rt="[object GeneratorFunction]",it="[object Map]",dt="[object Number]",An="[object Null]",gt="[object Object]",Wt="[object Promise]",xr="[object Proxy]",Ze="[object RegExp]",Qe="[object Set]",rn="[object String]",Kt="[object Symbol]",gn="[object Undefined]",Tt="[object WeakMap]",ir="[object WeakSet]",on="[object ArrayBuffer]",Yt="[object DataView]",Or="[object Float32Array]",Tr="[object Float64Array]",Cr="[object Int8Array]",Rr="[object Int16Array]",yn="[object Int32Array]",Bn="[object Uint8Array]",bt="[object Uint8ClampedArray]",wn="[object Uint16Array]",bn="[object Uint32Array]",Pr=/\b__p \+= '';/g,ki=/\b(__p \+=) '' \+/g,Ar=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ii=/&(?:amp|lt|gt|quot|#39);/g,or=/[&<>"']/g,Ir=RegExp(ii.source),Ni=RegExp(or.source),$i=/<%-([\s\S]+?)%>/g,Lr=/<%([\s\S]+?)%>/g,oi=/<%=([\s\S]+?)%>/g,ji=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Fi=/^\w*$/,Wi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,p=/[\\^$.*+?()[\]{}|]/g,P=RegExp(p.source),F=/^\s+/,Y=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,te=/,? & /,Q=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,je=/[()=,{}\[\]\/\s]/,Se=/\\(\\)?/g,Oe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ot=/\w*$/,kt=/^[-+]0x[0-9a-f]+$/i,Mr=/^0b[01]+$/i,lt=/^\[object .+?Constructor\]$/,Gm=/^0o[0-7]+$/i,Km=/^(?:0|[1-9]\d*)$/,Ym=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Io=/($^)/,Xm=/['\n\r\u2028\u2029\\]/g,Lo="\\ud800-\\udfff",Vm="\\u0300-\\u036f",Zm="\\ufe20-\\ufe2f",Jm="\\u20d0-\\u20ff",wc=Vm+Zm+Jm,bc="\\u2700-\\u27bf",_c="a-z\\xdf-\\xf6\\xf8-\\xff",Qm="\\xac\\xb1\\xd7\\xf7",eg="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",tg="\\u2000-\\u206f",ng=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Sc="A-Z\\xc0-\\xd6\\xd8-\\xde",Ec="\\ufe0e\\ufe0f",xc=Qm+eg+tg+ng,gs="['’]",rg="["+Lo+"]",Oc="["+xc+"]",Mo="["+wc+"]",Tc="\\d+",ig="["+bc+"]",Cc="["+_c+"]",Rc="[^"+Lo+xc+Tc+bc+_c+Sc+"]",ys="\\ud83c[\\udffb-\\udfff]",og="(?:"+Mo+"|"+ys+")",Pc="[^"+Lo+"]",ws="(?:\\ud83c[\\udde6-\\uddff]){2}",bs="[\\ud800-\\udbff][\\udc00-\\udfff]",ai="["+Sc+"]",Ac="\\u200d",Ic="(?:"+Cc+"|"+Rc+")",ag="(?:"+ai+"|"+Rc+")",Lc="(?:"+gs+"(?:d|ll|m|re|s|t|ve))?",Mc="(?:"+gs+"(?:D|LL|M|RE|S|T|VE))?",Dc=og+"?",kc="["+Ec+"]?",sg="(?:"+Ac+"(?:"+[Pc,ws,bs].join("|")+")"+kc+Dc+")*",ug="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",lg="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Nc=kc+Dc+sg,cg="(?:"+[ig,ws,bs].join("|")+")"+Nc,fg="(?:"+[Pc+Mo+"?",Mo,ws,bs,rg].join("|")+")",dg=RegExp(gs,"g"),pg=RegExp(Mo,"g"),_s=RegExp(ys+"(?="+ys+")|"+fg+Nc,"g"),hg=RegExp([ai+"?"+Cc+"+"+Lc+"(?="+[Oc,ai,"$"].join("|")+")",ag+"+"+Mc+"(?="+[Oc,ai+Ic,"$"].join("|")+")",ai+"?"+Ic+"+"+Lc,ai+"+"+Mc,lg,ug,Tc,cg].join("|"),"g"),vg=RegExp("["+Ac+Lo+wc+Ec+"]"),mg=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,gg=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],yg=-1,Je={};Je[Or]=Je[Tr]=Je[Cr]=Je[Rr]=Je[yn]=Je[Bn]=Je[bt]=Je[wn]=Je[bn]=!0,Je[fe]=Je[ue]=Je[on]=Je[le]=Je[Yt]=Je[ye]=Je[Ge]=Je[V]=Je[it]=Je[dt]=Je[gt]=Je[Ze]=Je[Qe]=Je[rn]=Je[Tt]=!1;var Xe={};Xe[fe]=Xe[ue]=Xe[on]=Xe[Yt]=Xe[le]=Xe[ye]=Xe[Or]=Xe[Tr]=Xe[Cr]=Xe[Rr]=Xe[yn]=Xe[it]=Xe[dt]=Xe[gt]=Xe[Ze]=Xe[Qe]=Xe[rn]=Xe[Kt]=Xe[Bn]=Xe[bt]=Xe[wn]=Xe[bn]=!0,Xe[Ge]=Xe[V]=Xe[Tt]=!1;var wg={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},bg={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},_g={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Sg={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Eg=parseFloat,xg=parseInt,$c=typeof Gr=="object"&&Gr&&Gr.Object===Object&&Gr,Og=typeof self=="object"&&self&&self.Object===Object&&self,_t=$c||Og||Function("return this")(),Ss=r&&!r.nodeType&&r,Dr=Ss&&!0&&e&&!e.nodeType&&e,jc=Dr&&Dr.exports===Ss,Es=jc&&$c.process,an=function(){try{var A=Dr&&Dr.require&&Dr.require("util").types;return A||Es&&Es.binding&&Es.binding("util")}catch{}}(),Fc=an&&an.isArrayBuffer,Wc=an&&an.isDate,Hc=an&&an.isMap,Uc=an&&an.isRegExp,Bc=an&&an.isSet,zc=an&&an.isTypedArray;function Xt(A,B,W){switch(W.length){case 0:return A.call(B);case 1:return A.call(B,W[0]);case 2:return A.call(B,W[0],W[1]);case 3:return A.call(B,W[0],W[1],W[2])}return A.apply(B,W)}function Tg(A,B,W,ne){for(var Ee=-1,Fe=A==null?0:A.length;++Ee<Fe;){var ht=A[Ee];B(ne,ht,W(ht),A)}return ne}function sn(A,B){for(var W=-1,ne=A==null?0:A.length;++W<ne&&B(A[W],W,A)!==!1;);return A}function Cg(A,B){for(var W=A==null?0:A.length;W--&&B(A[W],W,A)!==!1;);return A}function qc(A,B){for(var W=-1,ne=A==null?0:A.length;++W<ne;)if(!B(A[W],W,A))return!1;return!0}function ar(A,B){for(var W=-1,ne=A==null?0:A.length,Ee=0,Fe=[];++W<ne;){var ht=A[W];B(ht,W,A)&&(Fe[Ee++]=ht)}return Fe}function Do(A,B){var W=A==null?0:A.length;return!!W&&si(A,B,0)>-1}function xs(A,B,W){for(var ne=-1,Ee=A==null?0:A.length;++ne<Ee;)if(W(B,A[ne]))return!0;return!1}function et(A,B){for(var W=-1,ne=A==null?0:A.length,Ee=Array(ne);++W<ne;)Ee[W]=B(A[W],W,A);return Ee}function sr(A,B){for(var W=-1,ne=B.length,Ee=A.length;++W<ne;)A[Ee+W]=B[W];return A}function Os(A,B,W,ne){var Ee=-1,Fe=A==null?0:A.length;for(ne&&Fe&&(W=A[++Ee]);++Ee<Fe;)W=B(W,A[Ee],Ee,A);return W}function Rg(A,B,W,ne){var Ee=A==null?0:A.length;for(ne&&Ee&&(W=A[--Ee]);Ee--;)W=B(W,A[Ee],Ee,A);return W}function Ts(A,B){for(var W=-1,ne=A==null?0:A.length;++W<ne;)if(B(A[W],W,A))return!0;return!1}var Pg=Cs("length");function Ag(A){return A.split("")}function Ig(A){return A.match(Q)||[]}function Gc(A,B,W){var ne;return W(A,function(Ee,Fe,ht){if(B(Ee,Fe,ht))return ne=Fe,!1}),ne}function ko(A,B,W,ne){for(var Ee=A.length,Fe=W+(ne?1:-1);ne?Fe--:++Fe<Ee;)if(B(A[Fe],Fe,A))return Fe;return-1}function si(A,B,W){return B===B?Bg(A,B,W):ko(A,Kc,W)}function Lg(A,B,W,ne){for(var Ee=W-1,Fe=A.length;++Ee<Fe;)if(ne(A[Ee],B))return Ee;return-1}function Kc(A){return A!==A}function Yc(A,B){var W=A==null?0:A.length;return W?Ps(A,B)/W:G}function Cs(A){return function(B){return B==null?n:B[A]}}function Rs(A){return function(B){return A==null?n:A[B]}}function Xc(A,B,W,ne,Ee){return Ee(A,function(Fe,ht,Ke){W=ne?(ne=!1,Fe):B(W,Fe,ht,Ke)}),W}function Mg(A,B){var W=A.length;for(A.sort(B);W--;)A[W]=A[W].value;return A}function Ps(A,B){for(var W,ne=-1,Ee=A.length;++ne<Ee;){var Fe=B(A[ne]);Fe!==n&&(W=W===n?Fe:W+Fe)}return W}function As(A,B){for(var W=-1,ne=Array(A);++W<A;)ne[W]=B(W);return ne}function Dg(A,B){return et(B,function(W){return[W,A[W]]})}function Vc(A){return A&&A.slice(0,ef(A)+1).replace(F,"")}function Vt(A){return function(B){return A(B)}}function Is(A,B){return et(B,function(W){return A[W]})}function Hi(A,B){return A.has(B)}function Zc(A,B){for(var W=-1,ne=A.length;++W<ne&&si(B,A[W],0)>-1;);return W}function Jc(A,B){for(var W=A.length;W--&&si(B,A[W],0)>-1;);return W}function kg(A,B){for(var W=A.length,ne=0;W--;)A[W]===B&&++ne;return ne}var Ng=Rs(wg),$g=Rs(bg);function jg(A){return"\\"+Sg[A]}function Fg(A,B){return A==null?n:A[B]}function ui(A){return vg.test(A)}function Wg(A){return mg.test(A)}function Hg(A){for(var B,W=[];!(B=A.next()).done;)W.push(B.value);return W}function Ls(A){var B=-1,W=Array(A.size);return A.forEach(function(ne,Ee){W[++B]=[Ee,ne]}),W}function Qc(A,B){return function(W){return A(B(W))}}function ur(A,B){for(var W=-1,ne=A.length,Ee=0,Fe=[];++W<ne;){var ht=A[W];(ht===B||ht===g)&&(A[W]=g,Fe[Ee++]=W)}return Fe}function No(A){var B=-1,W=Array(A.size);return A.forEach(function(ne){W[++B]=ne}),W}function Ug(A){var B=-1,W=Array(A.size);return A.forEach(function(ne){W[++B]=[ne,ne]}),W}function Bg(A,B,W){for(var ne=W-1,Ee=A.length;++ne<Ee;)if(A[ne]===B)return ne;return-1}function zg(A,B,W){for(var ne=W+1;ne--;)if(A[ne]===B)return ne;return ne}function li(A){return ui(A)?Gg(A):Pg(A)}function _n(A){return ui(A)?Kg(A):Ag(A)}function ef(A){for(var B=A.length;B--&&Y.test(A.charAt(B)););return B}var qg=Rs(_g);function Gg(A){for(var B=_s.lastIndex=0;_s.test(A);)++B;return B}function Kg(A){return A.match(_s)||[]}function Yg(A){return A.match(hg)||[]}var Xg=function A(B){B=B==null?_t:ci.defaults(_t.Object(),B,ci.pick(_t,gg));var W=B.Array,ne=B.Date,Ee=B.Error,Fe=B.Function,ht=B.Math,Ke=B.Object,Ms=B.RegExp,Vg=B.String,un=B.TypeError,$o=W.prototype,Zg=Fe.prototype,fi=Ke.prototype,jo=B["__core-js_shared__"],Fo=Zg.toString,ze=fi.hasOwnProperty,Jg=0,tf=function(){var t=/[^.]+$/.exec(jo&&jo.keys&&jo.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Wo=fi.toString,Qg=Fo.call(Ke),e0=_t._,t0=Ms("^"+Fo.call(ze).replace(p,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ho=jc?B.Buffer:n,lr=B.Symbol,Uo=B.Uint8Array,nf=Ho?Ho.allocUnsafe:n,Bo=Qc(Ke.getPrototypeOf,Ke),rf=Ke.create,of=fi.propertyIsEnumerable,zo=$o.splice,af=lr?lr.isConcatSpreadable:n,Ui=lr?lr.iterator:n,kr=lr?lr.toStringTag:n,qo=function(){try{var t=Wr(Ke,"defineProperty");return t({},"",{}),t}catch{}}(),n0=B.clearTimeout!==_t.clearTimeout&&B.clearTimeout,r0=ne&&ne.now!==_t.Date.now&&ne.now,i0=B.setTimeout!==_t.setTimeout&&B.setTimeout,Go=ht.ceil,Ko=ht.floor,Ds=Ke.getOwnPropertySymbols,o0=Ho?Ho.isBuffer:n,sf=B.isFinite,a0=$o.join,s0=Qc(Ke.keys,Ke),vt=ht.max,Ct=ht.min,u0=ne.now,l0=B.parseInt,uf=ht.random,c0=$o.reverse,ks=Wr(B,"DataView"),Bi=Wr(B,"Map"),Ns=Wr(B,"Promise"),di=Wr(B,"Set"),zi=Wr(B,"WeakMap"),qi=Wr(Ke,"create"),Yo=zi&&new zi,pi={},f0=Hr(ks),d0=Hr(Bi),p0=Hr(Ns),h0=Hr(di),v0=Hr(zi),Xo=lr?lr.prototype:n,Gi=Xo?Xo.valueOf:n,lf=Xo?Xo.toString:n;function w(t){if(at(t)&&!Te(t)&&!(t instanceof ke)){if(t instanceof ln)return t;if(ze.call(t,"__wrapped__"))return cd(t)}return new ln(t)}var hi=function(){function t(){}return function(i){if(!tt(i))return{};if(rf)return rf(i);t.prototype=i;var s=new t;return t.prototype=n,s}}();function Vo(){}function ln(t,i){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!i,this.__index__=0,this.__values__=n}w.templateSettings={escape:$i,evaluate:Lr,interpolate:oi,variable:"",imports:{_:w}},w.prototype=Vo.prototype,w.prototype.constructor=w,ln.prototype=hi(Vo.prototype),ln.prototype.constructor=ln;function ke(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=X,this.__views__=[]}function m0(){var t=new ke(this.__wrapped__);return t.__actions__=Ht(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ht(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ht(this.__views__),t}function g0(){if(this.__filtered__){var t=new ke(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function y0(){var t=this.__wrapped__.value(),i=this.__dir__,s=Te(t),c=i<0,h=s?t.length:0,b=Ay(0,h,this.__views__),x=b.start,R=b.end,M=R-x,z=c?R:x-1,q=this.__iteratees__,K=q.length,J=0,re=Ct(M,this.__takeCount__);if(!s||!c&&h==M&&re==M)return Mf(t,this.__actions__);var ve=[];e:for(;M--&&J<re;){z+=i;for(var Pe=-1,me=t[z];++Pe<K;){var De=q[Pe],Ne=De.iteratee,Qt=De.type,jt=Ne(me);if(Qt==Le)me=jt;else if(!jt){if(Qt==se)continue e;break e}}ve[J++]=me}return ve}ke.prototype=hi(Vo.prototype),ke.prototype.constructor=ke;function Nr(t){var i=-1,s=t==null?0:t.length;for(this.clear();++i<s;){var c=t[i];this.set(c[0],c[1])}}function w0(){this.__data__=qi?qi(null):{},this.size=0}function b0(t){var i=this.has(t)&&delete this.__data__[t];return this.size-=i?1:0,i}function _0(t){var i=this.__data__;if(qi){var s=i[t];return s===d?n:s}return ze.call(i,t)?i[t]:n}function S0(t){var i=this.__data__;return qi?i[t]!==n:ze.call(i,t)}function E0(t,i){var s=this.__data__;return this.size+=this.has(t)?0:1,s[t]=qi&&i===n?d:i,this}Nr.prototype.clear=w0,Nr.prototype.delete=b0,Nr.prototype.get=_0,Nr.prototype.has=S0,Nr.prototype.set=E0;function zn(t){var i=-1,s=t==null?0:t.length;for(this.clear();++i<s;){var c=t[i];this.set(c[0],c[1])}}function x0(){this.__data__=[],this.size=0}function O0(t){var i=this.__data__,s=Zo(i,t);if(s<0)return!1;var c=i.length-1;return s==c?i.pop():zo.call(i,s,1),--this.size,!0}function T0(t){var i=this.__data__,s=Zo(i,t);return s<0?n:i[s][1]}function C0(t){return Zo(this.__data__,t)>-1}function R0(t,i){var s=this.__data__,c=Zo(s,t);return c<0?(++this.size,s.push([t,i])):s[c][1]=i,this}zn.prototype.clear=x0,zn.prototype.delete=O0,zn.prototype.get=T0,zn.prototype.has=C0,zn.prototype.set=R0;function qn(t){var i=-1,s=t==null?0:t.length;for(this.clear();++i<s;){var c=t[i];this.set(c[0],c[1])}}function P0(){this.size=0,this.__data__={hash:new Nr,map:new(Bi||zn),string:new Nr}}function A0(t){var i=la(this,t).delete(t);return this.size-=i?1:0,i}function I0(t){return la(this,t).get(t)}function L0(t){return la(this,t).has(t)}function M0(t,i){var s=la(this,t),c=s.size;return s.set(t,i),this.size+=s.size==c?0:1,this}qn.prototype.clear=P0,qn.prototype.delete=A0,qn.prototype.get=I0,qn.prototype.has=L0,qn.prototype.set=M0;function $r(t){var i=-1,s=t==null?0:t.length;for(this.__data__=new qn;++i<s;)this.add(t[i])}function D0(t){return this.__data__.set(t,d),this}function k0(t){return this.__data__.has(t)}$r.prototype.add=$r.prototype.push=D0,$r.prototype.has=k0;function Sn(t){var i=this.__data__=new zn(t);this.size=i.size}function N0(){this.__data__=new zn,this.size=0}function $0(t){var i=this.__data__,s=i.delete(t);return this.size=i.size,s}function j0(t){return this.__data__.get(t)}function F0(t){return this.__data__.has(t)}function W0(t,i){var s=this.__data__;if(s instanceof zn){var c=s.__data__;if(!Bi||c.length<a-1)return c.push([t,i]),this.size=++s.size,this;s=this.__data__=new qn(c)}return s.set(t,i),this.size=s.size,this}Sn.prototype.clear=N0,Sn.prototype.delete=$0,Sn.prototype.get=j0,Sn.prototype.has=F0,Sn.prototype.set=W0;function cf(t,i){var s=Te(t),c=!s&&Ur(t),h=!s&&!c&&hr(t),b=!s&&!c&&!h&&yi(t),x=s||c||h||b,R=x?As(t.length,Vg):[],M=R.length;for(var z in t)(i||ze.call(t,z))&&!(x&&(z=="length"||h&&(z=="offset"||z=="parent")||b&&(z=="buffer"||z=="byteLength"||z=="byteOffset")||Xn(z,M)))&&R.push(z);return R}function ff(t){var i=t.length;return i?t[Ks(0,i-1)]:n}function H0(t,i){return ca(Ht(t),jr(i,0,t.length))}function U0(t){return ca(Ht(t))}function $s(t,i,s){(s!==n&&!En(t[i],s)||s===n&&!(i in t))&&Gn(t,i,s)}function Ki(t,i,s){var c=t[i];(!(ze.call(t,i)&&En(c,s))||s===n&&!(i in t))&&Gn(t,i,s)}function Zo(t,i){for(var s=t.length;s--;)if(En(t[s][0],i))return s;return-1}function B0(t,i,s,c){return cr(t,function(h,b,x){i(c,h,s(h),x)}),c}function df(t,i){return t&&Ln(i,yt(i),t)}function z0(t,i){return t&&Ln(i,Bt(i),t)}function Gn(t,i,s){i=="__proto__"&&qo?qo(t,i,{configurable:!0,enumerable:!0,value:s,writable:!0}):t[i]=s}function js(t,i){for(var s=-1,c=i.length,h=W(c),b=t==null;++s<c;)h[s]=b?n:yu(t,i[s]);return h}function jr(t,i,s){return t===t&&(s!==n&&(t=t<=s?t:s),i!==n&&(t=t>=i?t:i)),t}function cn(t,i,s,c,h,b){var x,R=i&_,M=i&O,z=i&m;if(s&&(x=h?s(t,c,h,b):s(t)),x!==n)return x;if(!tt(t))return t;var q=Te(t);if(q){if(x=Ly(t),!R)return Ht(t,x)}else{var K=Rt(t),J=K==V||K==rt;if(hr(t))return Nf(t,R);if(K==gt||K==fe||J&&!h){if(x=M||J?{}:td(t),!R)return M?_y(t,z0(x,t)):by(t,df(x,t))}else{if(!Xe[K])return h?t:{};x=My(t,K,R)}}b||(b=new Sn);var re=b.get(t);if(re)return re;b.set(t,x),Ad(t)?t.forEach(function(me){x.add(cn(me,i,s,me,t,b))}):Rd(t)&&t.forEach(function(me,De){x.set(De,cn(me,i,s,De,t,b))});var ve=z?M?iu:ru:M?Bt:yt,Pe=q?n:ve(t);return sn(Pe||t,function(me,De){Pe&&(De=me,me=t[De]),Ki(x,De,cn(me,i,s,De,t,b))}),x}function q0(t){var i=yt(t);return function(s){return pf(s,t,i)}}function pf(t,i,s){var c=s.length;if(t==null)return!c;for(t=Ke(t);c--;){var h=s[c],b=i[h],x=t[h];if(x===n&&!(h in t)||!b(x))return!1}return!0}function hf(t,i,s){if(typeof t!="function")throw new un(l);return eo(function(){t.apply(n,s)},i)}function Yi(t,i,s,c){var h=-1,b=Do,x=!0,R=t.length,M=[],z=i.length;if(!R)return M;s&&(i=et(i,Vt(s))),c?(b=xs,x=!1):i.length>=a&&(b=Hi,x=!1,i=new $r(i));e:for(;++h<R;){var q=t[h],K=s==null?q:s(q);if(q=c||q!==0?q:0,x&&K===K){for(var J=z;J--;)if(i[J]===K)continue e;M.push(q)}else b(i,K,c)||M.push(q)}return M}var cr=Hf(In),vf=Hf(Ws,!0);function G0(t,i){var s=!0;return cr(t,function(c,h,b){return s=!!i(c,h,b),s}),s}function Jo(t,i,s){for(var c=-1,h=t.length;++c<h;){var b=t[c],x=i(b);if(x!=null&&(R===n?x===x&&!Jt(x):s(x,R)))var R=x,M=b}return M}function K0(t,i,s,c){var h=t.length;for(s=Re(s),s<0&&(s=-s>h?0:h+s),c=c===n||c>h?h:Re(c),c<0&&(c+=h),c=s>c?0:Ld(c);s<c;)t[s++]=i;return t}function mf(t,i){var s=[];return cr(t,function(c,h,b){i(c,h,b)&&s.push(c)}),s}function St(t,i,s,c,h){var b=-1,x=t.length;for(s||(s=ky),h||(h=[]);++b<x;){var R=t[b];i>0&&s(R)?i>1?St(R,i-1,s,c,h):sr(h,R):c||(h[h.length]=R)}return h}var Fs=Uf(),gf=Uf(!0);function In(t,i){return t&&Fs(t,i,yt)}function Ws(t,i){return t&&gf(t,i,yt)}function Qo(t,i){return ar(i,function(s){return Vn(t[s])})}function Fr(t,i){i=dr(i,t);for(var s=0,c=i.length;t!=null&&s<c;)t=t[Mn(i[s++])];return s&&s==c?t:n}function yf(t,i,s){var c=i(t);return Te(t)?c:sr(c,s(t))}function Nt(t){return t==null?t===n?gn:An:kr&&kr in Ke(t)?Py(t):Uy(t)}function Hs(t,i){return t>i}function Y0(t,i){return t!=null&&ze.call(t,i)}function X0(t,i){return t!=null&&i in Ke(t)}function V0(t,i,s){return t>=Ct(i,s)&&t<vt(i,s)}function Us(t,i,s){for(var c=s?xs:Do,h=t[0].length,b=t.length,x=b,R=W(b),M=1/0,z=[];x--;){var q=t[x];x&&i&&(q=et(q,Vt(i))),M=Ct(q.length,M),R[x]=!s&&(i||h>=120&&q.length>=120)?new $r(x&&q):n}q=t[0];var K=-1,J=R[0];e:for(;++K<h&&z.length<M;){var re=q[K],ve=i?i(re):re;if(re=s||re!==0?re:0,!(J?Hi(J,ve):c(z,ve,s))){for(x=b;--x;){var Pe=R[x];if(!(Pe?Hi(Pe,ve):c(t[x],ve,s)))continue e}J&&J.push(ve),z.push(re)}}return z}function Z0(t,i,s,c){return In(t,function(h,b,x){i(c,s(h),b,x)}),c}function Xi(t,i,s){i=dr(i,t),t=od(t,i);var c=t==null?t:t[Mn(dn(i))];return c==null?n:Xt(c,t,s)}function wf(t){return at(t)&&Nt(t)==fe}function J0(t){return at(t)&&Nt(t)==on}function Q0(t){return at(t)&&Nt(t)==ye}function Vi(t,i,s,c,h){return t===i?!0:t==null||i==null||!at(t)&&!at(i)?t!==t&&i!==i:ey(t,i,s,c,Vi,h)}function ey(t,i,s,c,h,b){var x=Te(t),R=Te(i),M=x?ue:Rt(t),z=R?ue:Rt(i);M=M==fe?gt:M,z=z==fe?gt:z;var q=M==gt,K=z==gt,J=M==z;if(J&&hr(t)){if(!hr(i))return!1;x=!0,q=!1}if(J&&!q)return b||(b=new Sn),x||yi(t)?Jf(t,i,s,c,h,b):Cy(t,i,M,s,c,h,b);if(!(s&S)){var re=q&&ze.call(t,"__wrapped__"),ve=K&&ze.call(i,"__wrapped__");if(re||ve){var Pe=re?t.value():t,me=ve?i.value():i;return b||(b=new Sn),h(Pe,me,s,c,b)}}return J?(b||(b=new Sn),Ry(t,i,s,c,h,b)):!1}function ty(t){return at(t)&&Rt(t)==it}function Bs(t,i,s,c){var h=s.length,b=h,x=!c;if(t==null)return!b;for(t=Ke(t);h--;){var R=s[h];if(x&&R[2]?R[1]!==t[R[0]]:!(R[0]in t))return!1}for(;++h<b;){R=s[h];var M=R[0],z=t[M],q=R[1];if(x&&R[2]){if(z===n&&!(M in t))return!1}else{var K=new Sn;if(c)var J=c(z,q,M,t,i,K);if(!(J===n?Vi(q,z,S|y,c,K):J))return!1}}return!0}function bf(t){if(!tt(t)||$y(t))return!1;var i=Vn(t)?t0:lt;return i.test(Hr(t))}function ny(t){return at(t)&&Nt(t)==Ze}function ry(t){return at(t)&&Rt(t)==Qe}function iy(t){return at(t)&&ma(t.length)&&!!Je[Nt(t)]}function _f(t){return typeof t=="function"?t:t==null?zt:typeof t=="object"?Te(t)?xf(t[0],t[1]):Ef(t):Bd(t)}function zs(t){if(!Qi(t))return s0(t);var i=[];for(var s in Ke(t))ze.call(t,s)&&s!="constructor"&&i.push(s);return i}function oy(t){if(!tt(t))return Hy(t);var i=Qi(t),s=[];for(var c in t)c=="constructor"&&(i||!ze.call(t,c))||s.push(c);return s}function qs(t,i){return t<i}function Sf(t,i){var s=-1,c=Ut(t)?W(t.length):[];return cr(t,function(h,b,x){c[++s]=i(h,b,x)}),c}function Ef(t){var i=au(t);return i.length==1&&i[0][2]?rd(i[0][0],i[0][1]):function(s){return s===t||Bs(s,t,i)}}function xf(t,i){return uu(t)&&nd(i)?rd(Mn(t),i):function(s){var c=yu(s,t);return c===n&&c===i?wu(s,t):Vi(i,c,S|y)}}function ea(t,i,s,c,h){t!==i&&Fs(i,function(b,x){if(h||(h=new Sn),tt(b))ay(t,i,x,s,ea,c,h);else{var R=c?c(cu(t,x),b,x+"",t,i,h):n;R===n&&(R=b),$s(t,x,R)}},Bt)}function ay(t,i,s,c,h,b,x){var R=cu(t,s),M=cu(i,s),z=x.get(M);if(z){$s(t,s,z);return}var q=b?b(R,M,s+"",t,i,x):n,K=q===n;if(K){var J=Te(M),re=!J&&hr(M),ve=!J&&!re&&yi(M);q=M,J||re||ve?Te(R)?q=R:ct(R)?q=Ht(R):re?(K=!1,q=Nf(M,!0)):ve?(K=!1,q=$f(M,!0)):q=[]:to(M)||Ur(M)?(q=R,Ur(R)?q=Md(R):(!tt(R)||Vn(R))&&(q=td(M))):K=!1}K&&(x.set(M,q),h(q,M,c,b,x),x.delete(M)),$s(t,s,q)}function Of(t,i){var s=t.length;if(s)return i+=i<0?s:0,Xn(i,s)?t[i]:n}function Tf(t,i,s){i.length?i=et(i,function(b){return Te(b)?function(x){return Fr(x,b.length===1?b[0]:b)}:b}):i=[zt];var c=-1;i=et(i,Vt(he()));var h=Sf(t,function(b,x,R){var M=et(i,function(z){return z(b)});return{criteria:M,index:++c,value:b}});return Mg(h,function(b,x){return wy(b,x,s)})}function sy(t,i){return Cf(t,i,function(s,c){return wu(t,c)})}function Cf(t,i,s){for(var c=-1,h=i.length,b={};++c<h;){var x=i[c],R=Fr(t,x);s(R,x)&&Zi(b,dr(x,t),R)}return b}function uy(t){return function(i){return Fr(i,t)}}function Gs(t,i,s,c){var h=c?Lg:si,b=-1,x=i.length,R=t;for(t===i&&(i=Ht(i)),s&&(R=et(t,Vt(s)));++b<x;)for(var M=0,z=i[b],q=s?s(z):z;(M=h(R,q,M,c))>-1;)R!==t&&zo.call(R,M,1),zo.call(t,M,1);return t}function Rf(t,i){for(var s=t?i.length:0,c=s-1;s--;){var h=i[s];if(s==c||h!==b){var b=h;Xn(h)?zo.call(t,h,1):Vs(t,h)}}return t}function Ks(t,i){return t+Ko(uf()*(i-t+1))}function ly(t,i,s,c){for(var h=-1,b=vt(Go((i-t)/(s||1)),0),x=W(b);b--;)x[c?b:++h]=t,t+=s;return x}function Ys(t,i){var s="";if(!t||i<1||i>We)return s;do i%2&&(s+=t),i=Ko(i/2),i&&(t+=t);while(i);return s}function Ae(t,i){return fu(id(t,i,zt),t+"")}function cy(t){return ff(wi(t))}function fy(t,i){var s=wi(t);return ca(s,jr(i,0,s.length))}function Zi(t,i,s,c){if(!tt(t))return t;i=dr(i,t);for(var h=-1,b=i.length,x=b-1,R=t;R!=null&&++h<b;){var M=Mn(i[h]),z=s;if(M==="__proto__"||M==="constructor"||M==="prototype")return t;if(h!=x){var q=R[M];z=c?c(q,M,R):n,z===n&&(z=tt(q)?q:Xn(i[h+1])?[]:{})}Ki(R,M,z),R=R[M]}return t}var Pf=Yo?function(t,i){return Yo.set(t,i),t}:zt,dy=qo?function(t,i){return qo(t,"toString",{configurable:!0,enumerable:!1,value:_u(i),writable:!0})}:zt;function py(t){return ca(wi(t))}function fn(t,i,s){var c=-1,h=t.length;i<0&&(i=-i>h?0:h+i),s=s>h?h:s,s<0&&(s+=h),h=i>s?0:s-i>>>0,i>>>=0;for(var b=W(h);++c<h;)b[c]=t[c+i];return b}function hy(t,i){var s;return cr(t,function(c,h,b){return s=i(c,h,b),!s}),!!s}function ta(t,i,s){var c=0,h=t==null?c:t.length;if(typeof i=="number"&&i===i&&h<=ie){for(;c<h;){var b=c+h>>>1,x=t[b];x!==null&&!Jt(x)&&(s?x<=i:x<i)?c=b+1:h=b}return h}return Xs(t,i,zt,s)}function Xs(t,i,s,c){var h=0,b=t==null?0:t.length;if(b===0)return 0;i=s(i);for(var x=i!==i,R=i===null,M=Jt(i),z=i===n;h<b;){var q=Ko((h+b)/2),K=s(t[q]),J=K!==n,re=K===null,ve=K===K,Pe=Jt(K);if(x)var me=c||ve;else z?me=ve&&(c||J):R?me=ve&&J&&(c||!re):M?me=ve&&J&&!re&&(c||!Pe):re||Pe?me=!1:me=c?K<=i:K<i;me?h=q+1:b=q}return Ct(b,de)}function Af(t,i){for(var s=-1,c=t.length,h=0,b=[];++s<c;){var x=t[s],R=i?i(x):x;if(!s||!En(R,M)){var M=R;b[h++]=x===0?0:x}}return b}function If(t){return typeof t=="number"?t:Jt(t)?G:+t}function Zt(t){if(typeof t=="string")return t;if(Te(t))return et(t,Zt)+"";if(Jt(t))return lf?lf.call(t):"";var i=t+"";return i=="0"&&1/t==-xe?"-0":i}function fr(t,i,s){var c=-1,h=Do,b=t.length,x=!0,R=[],M=R;if(s)x=!1,h=xs;else if(b>=a){var z=i?null:Oy(t);if(z)return No(z);x=!1,h=Hi,M=new $r}else M=i?[]:R;e:for(;++c<b;){var q=t[c],K=i?i(q):q;if(q=s||q!==0?q:0,x&&K===K){for(var J=M.length;J--;)if(M[J]===K)continue e;i&&M.push(K),R.push(q)}else h(M,K,s)||(M!==R&&M.push(K),R.push(q))}return R}function Vs(t,i){return i=dr(i,t),t=od(t,i),t==null||delete t[Mn(dn(i))]}function Lf(t,i,s,c){return Zi(t,i,s(Fr(t,i)),c)}function na(t,i,s,c){for(var h=t.length,b=c?h:-1;(c?b--:++b<h)&&i(t[b],b,t););return s?fn(t,c?0:b,c?b+1:h):fn(t,c?b+1:0,c?h:b)}function Mf(t,i){var s=t;return s instanceof ke&&(s=s.value()),Os(i,function(c,h){return h.func.apply(h.thisArg,sr([c],h.args))},s)}function Zs(t,i,s){var c=t.length;if(c<2)return c?fr(t[0]):[];for(var h=-1,b=W(c);++h<c;)for(var x=t[h],R=-1;++R<c;)R!=h&&(b[h]=Yi(b[h]||x,t[R],i,s));return fr(St(b,1),i,s)}function Df(t,i,s){for(var c=-1,h=t.length,b=i.length,x={};++c<h;){var R=c<b?i[c]:n;s(x,t[c],R)}return x}function Js(t){return ct(t)?t:[]}function Qs(t){return typeof t=="function"?t:zt}function dr(t,i){return Te(t)?t:uu(t,i)?[t]:ld(He(t))}var vy=Ae;function pr(t,i,s){var c=t.length;return s=s===n?c:s,!i&&s>=c?t:fn(t,i,s)}var kf=n0||function(t){return _t.clearTimeout(t)};function Nf(t,i){if(i)return t.slice();var s=t.length,c=nf?nf(s):new t.constructor(s);return t.copy(c),c}function eu(t){var i=new t.constructor(t.byteLength);return new Uo(i).set(new Uo(t)),i}function my(t,i){var s=i?eu(t.buffer):t.buffer;return new t.constructor(s,t.byteOffset,t.byteLength)}function gy(t){var i=new t.constructor(t.source,ot.exec(t));return i.lastIndex=t.lastIndex,i}function yy(t){return Gi?Ke(Gi.call(t)):{}}function $f(t,i){var s=i?eu(t.buffer):t.buffer;return new t.constructor(s,t.byteOffset,t.length)}function jf(t,i){if(t!==i){var s=t!==n,c=t===null,h=t===t,b=Jt(t),x=i!==n,R=i===null,M=i===i,z=Jt(i);if(!R&&!z&&!b&&t>i||b&&x&&M&&!R&&!z||c&&x&&M||!s&&M||!h)return 1;if(!c&&!b&&!z&&t<i||z&&s&&h&&!c&&!b||R&&s&&h||!x&&h||!M)return-1}return 0}function wy(t,i,s){for(var c=-1,h=t.criteria,b=i.criteria,x=h.length,R=s.length;++c<x;){var M=jf(h[c],b[c]);if(M){if(c>=R)return M;var z=s[c];return M*(z=="desc"?-1:1)}}return t.index-i.index}function Ff(t,i,s,c){for(var h=-1,b=t.length,x=s.length,R=-1,M=i.length,z=vt(b-x,0),q=W(M+z),K=!c;++R<M;)q[R]=i[R];for(;++h<x;)(K||h<b)&&(q[s[h]]=t[h]);for(;z--;)q[R++]=t[h++];return q}function Wf(t,i,s,c){for(var h=-1,b=t.length,x=-1,R=s.length,M=-1,z=i.length,q=vt(b-R,0),K=W(q+z),J=!c;++h<q;)K[h]=t[h];for(var re=h;++M<z;)K[re+M]=i[M];for(;++x<R;)(J||h<b)&&(K[re+s[x]]=t[h++]);return K}function Ht(t,i){var s=-1,c=t.length;for(i||(i=W(c));++s<c;)i[s]=t[s];return i}function Ln(t,i,s,c){var h=!s;s||(s={});for(var b=-1,x=i.length;++b<x;){var R=i[b],M=c?c(s[R],t[R],R,s,t):n;M===n&&(M=t[R]),h?Gn(s,R,M):Ki(s,R,M)}return s}function by(t,i){return Ln(t,su(t),i)}function _y(t,i){return Ln(t,Qf(t),i)}function ra(t,i){return function(s,c){var h=Te(s)?Tg:B0,b=i?i():{};return h(s,t,he(c,2),b)}}function vi(t){return Ae(function(i,s){var c=-1,h=s.length,b=h>1?s[h-1]:n,x=h>2?s[2]:n;for(b=t.length>3&&typeof b=="function"?(h--,b):n,x&&$t(s[0],s[1],x)&&(b=h<3?n:b,h=1),i=Ke(i);++c<h;){var R=s[c];R&&t(i,R,c,b)}return i})}function Hf(t,i){return function(s,c){if(s==null)return s;if(!Ut(s))return t(s,c);for(var h=s.length,b=i?h:-1,x=Ke(s);(i?b--:++b<h)&&c(x[b],b,x)!==!1;);return s}}function Uf(t){return function(i,s,c){for(var h=-1,b=Ke(i),x=c(i),R=x.length;R--;){var M=x[t?R:++h];if(s(b[M],M,b)===!1)break}return i}}function Sy(t,i,s){var c=i&E,h=Ji(t);function b(){var x=this&&this!==_t&&this instanceof b?h:t;return x.apply(c?s:this,arguments)}return b}function Bf(t){return function(i){i=He(i);var s=ui(i)?_n(i):n,c=s?s[0]:i.charAt(0),h=s?pr(s,1).join(""):i.slice(1);return c[t]()+h}}function mi(t){return function(i){return Os(Hd(Wd(i).replace(dg,"")),t,"")}}function Ji(t){return function(){var i=arguments;switch(i.length){case 0:return new t;case 1:return new t(i[0]);case 2:return new t(i[0],i[1]);case 3:return new t(i[0],i[1],i[2]);case 4:return new t(i[0],i[1],i[2],i[3]);case 5:return new t(i[0],i[1],i[2],i[3],i[4]);case 6:return new t(i[0],i[1],i[2],i[3],i[4],i[5]);case 7:return new t(i[0],i[1],i[2],i[3],i[4],i[5],i[6])}var s=hi(t.prototype),c=t.apply(s,i);return tt(c)?c:s}}function Ey(t,i,s){var c=Ji(t);function h(){for(var b=arguments.length,x=W(b),R=b,M=gi(h);R--;)x[R]=arguments[R];var z=b<3&&x[0]!==M&&x[b-1]!==M?[]:ur(x,M);if(b-=z.length,b<s)return Yf(t,i,ia,h.placeholder,n,x,z,n,n,s-b);var q=this&&this!==_t&&this instanceof h?c:t;return Xt(q,this,x)}return h}function zf(t){return function(i,s,c){var h=Ke(i);if(!Ut(i)){var b=he(s,3);i=yt(i),s=function(R){return b(h[R],R,h)}}var x=t(i,s,c);return x>-1?h[b?i[x]:x]:n}}function qf(t){return Yn(function(i){var s=i.length,c=s,h=ln.prototype.thru;for(t&&i.reverse();c--;){var b=i[c];if(typeof b!="function")throw new un(l);if(h&&!x&&ua(b)=="wrapper")var x=new ln([],!0)}for(c=x?c:s;++c<s;){b=i[c];var R=ua(b),M=R=="wrapper"?ou(b):n;M&&lu(M[0])&&M[1]==(U|C|T|j)&&!M[4].length&&M[9]==1?x=x[ua(M[0])].apply(x,M[3]):x=b.length==1&&lu(b)?x[R]():x.thru(b)}return function(){var z=arguments,q=z[0];if(x&&z.length==1&&Te(q))return x.plant(q).value();for(var K=0,J=s?i[K].apply(this,z):q;++K<s;)J=i[K].call(this,J);return J}})}function ia(t,i,s,c,h,b,x,R,M,z){var q=i&U,K=i&E,J=i&D,re=i&(C|k),ve=i&Z,Pe=J?n:Ji(t);function me(){for(var De=arguments.length,Ne=W(De),Qt=De;Qt--;)Ne[Qt]=arguments[Qt];if(re)var jt=gi(me),en=kg(Ne,jt);if(c&&(Ne=Ff(Ne,c,h,re)),b&&(Ne=Wf(Ne,b,x,re)),De-=en,re&&De<z){var ft=ur(Ne,jt);return Yf(t,i,ia,me.placeholder,s,Ne,ft,R,M,z-De)}var xn=K?s:this,Jn=J?xn[t]:t;return De=Ne.length,R?Ne=By(Ne,R):ve&&De>1&&Ne.reverse(),q&&M<De&&(Ne.length=M),this&&this!==_t&&this instanceof me&&(Jn=Pe||Ji(Jn)),Jn.apply(xn,Ne)}return me}function Gf(t,i){return function(s,c){return Z0(s,t,i(c),{})}}function oa(t,i){return function(s,c){var h;if(s===n&&c===n)return i;if(s!==n&&(h=s),c!==n){if(h===n)return c;typeof s=="string"||typeof c=="string"?(s=Zt(s),c=Zt(c)):(s=If(s),c=If(c)),h=t(s,c)}return h}}function tu(t){return Yn(function(i){return i=et(i,Vt(he())),Ae(function(s){var c=this;return t(i,function(h){return Xt(h,c,s)})})})}function aa(t,i){i=i===n?" ":Zt(i);var s=i.length;if(s<2)return s?Ys(i,t):i;var c=Ys(i,Go(t/li(i)));return ui(i)?pr(_n(c),0,t).join(""):c.slice(0,t)}function xy(t,i,s,c){var h=i&E,b=Ji(t);function x(){for(var R=-1,M=arguments.length,z=-1,q=c.length,K=W(q+M),J=this&&this!==_t&&this instanceof x?b:t;++z<q;)K[z]=c[z];for(;M--;)K[z++]=arguments[++R];return Xt(J,h?s:this,K)}return x}function Kf(t){return function(i,s,c){return c&&typeof c!="number"&&$t(i,s,c)&&(s=c=n),i=Zn(i),s===n?(s=i,i=0):s=Zn(s),c=c===n?i<s?1:-1:Zn(c),ly(i,s,c,t)}}function sa(t){return function(i,s){return typeof i=="string"&&typeof s=="string"||(i=pn(i),s=pn(s)),t(i,s)}}function Yf(t,i,s,c,h,b,x,R,M,z){var q=i&C,K=q?x:n,J=q?n:x,re=q?b:n,ve=q?n:b;i|=q?T:H,i&=~(q?H:T),i&I||(i&=~(E|D));var Pe=[t,i,h,re,K,ve,J,R,M,z],me=s.apply(n,Pe);return lu(t)&&ad(me,Pe),me.placeholder=c,sd(me,t,i)}function nu(t){var i=ht[t];return function(s,c){if(s=pn(s),c=c==null?0:Ct(Re(c),292),c&&sf(s)){var h=(He(s)+"e").split("e"),b=i(h[0]+"e"+(+h[1]+c));return h=(He(b)+"e").split("e"),+(h[0]+"e"+(+h[1]-c))}return i(s)}}var Oy=di&&1/No(new di([,-0]))[1]==xe?function(t){return new di(t)}:xu;function Xf(t){return function(i){var s=Rt(i);return s==it?Ls(i):s==Qe?Ug(i):Dg(i,t(i))}}function Kn(t,i,s,c,h,b,x,R){var M=i&D;if(!M&&typeof t!="function")throw new un(l);var z=c?c.length:0;if(z||(i&=~(T|H),c=h=n),x=x===n?x:vt(Re(x),0),R=R===n?R:Re(R),z-=h?h.length:0,i&H){var q=c,K=h;c=h=n}var J=M?n:ou(t),re=[t,i,s,c,h,q,K,b,x,R];if(J&&Wy(re,J),t=re[0],i=re[1],s=re[2],c=re[3],h=re[4],R=re[9]=re[9]===n?M?0:t.length:vt(re[9]-z,0),!R&&i&(C|k)&&(i&=~(C|k)),!i||i==E)var ve=Sy(t,i,s);else i==C||i==k?ve=Ey(t,i,R):(i==T||i==(E|T))&&!h.length?ve=xy(t,i,s,c):ve=ia.apply(n,re);var Pe=J?Pf:ad;return sd(Pe(ve,re),t,i)}function Vf(t,i,s,c){return t===n||En(t,fi[s])&&!ze.call(c,s)?i:t}function Zf(t,i,s,c,h,b){return tt(t)&&tt(i)&&(b.set(i,t),ea(t,i,n,Zf,b),b.delete(i)),t}function Ty(t){return to(t)?n:t}function Jf(t,i,s,c,h,b){var x=s&S,R=t.length,M=i.length;if(R!=M&&!(x&&M>R))return!1;var z=b.get(t),q=b.get(i);if(z&&q)return z==i&&q==t;var K=-1,J=!0,re=s&y?new $r:n;for(b.set(t,i),b.set(i,t);++K<R;){var ve=t[K],Pe=i[K];if(c)var me=x?c(Pe,ve,K,i,t,b):c(ve,Pe,K,t,i,b);if(me!==n){if(me)continue;J=!1;break}if(re){if(!Ts(i,function(De,Ne){if(!Hi(re,Ne)&&(ve===De||h(ve,De,s,c,b)))return re.push(Ne)})){J=!1;break}}else if(!(ve===Pe||h(ve,Pe,s,c,b))){J=!1;break}}return b.delete(t),b.delete(i),J}function Cy(t,i,s,c,h,b,x){switch(s){case Yt:if(t.byteLength!=i.byteLength||t.byteOffset!=i.byteOffset)return!1;t=t.buffer,i=i.buffer;case on:return!(t.byteLength!=i.byteLength||!b(new Uo(t),new Uo(i)));case le:case ye:case dt:return En(+t,+i);case Ge:return t.name==i.name&&t.message==i.message;case Ze:case rn:return t==i+"";case it:var R=Ls;case Qe:var M=c&S;if(R||(R=No),t.size!=i.size&&!M)return!1;var z=x.get(t);if(z)return z==i;c|=y,x.set(t,i);var q=Jf(R(t),R(i),c,h,b,x);return x.delete(t),q;case Kt:if(Gi)return Gi.call(t)==Gi.call(i)}return!1}function Ry(t,i,s,c,h,b){var x=s&S,R=ru(t),M=R.length,z=ru(i),q=z.length;if(M!=q&&!x)return!1;for(var K=M;K--;){var J=R[K];if(!(x?J in i:ze.call(i,J)))return!1}var re=b.get(t),ve=b.get(i);if(re&&ve)return re==i&&ve==t;var Pe=!0;b.set(t,i),b.set(i,t);for(var me=x;++K<M;){J=R[K];var De=t[J],Ne=i[J];if(c)var Qt=x?c(Ne,De,J,i,t,b):c(De,Ne,J,t,i,b);if(!(Qt===n?De===Ne||h(De,Ne,s,c,b):Qt)){Pe=!1;break}me||(me=J=="constructor")}if(Pe&&!me){var jt=t.constructor,en=i.constructor;jt!=en&&"constructor"in t&&"constructor"in i&&!(typeof jt=="function"&&jt instanceof jt&&typeof en=="function"&&en instanceof en)&&(Pe=!1)}return b.delete(t),b.delete(i),Pe}function Yn(t){return fu(id(t,n,pd),t+"")}function ru(t){return yf(t,yt,su)}function iu(t){return yf(t,Bt,Qf)}var ou=Yo?function(t){return Yo.get(t)}:xu;function ua(t){for(var i=t.name+"",s=pi[i],c=ze.call(pi,i)?s.length:0;c--;){var h=s[c],b=h.func;if(b==null||b==t)return h.name}return i}function gi(t){var i=ze.call(w,"placeholder")?w:t;return i.placeholder}function he(){var t=w.iteratee||Su;return t=t===Su?_f:t,arguments.length?t(arguments[0],arguments[1]):t}function la(t,i){var s=t.__data__;return Ny(i)?s[typeof i=="string"?"string":"hash"]:s.map}function au(t){for(var i=yt(t),s=i.length;s--;){var c=i[s],h=t[c];i[s]=[c,h,nd(h)]}return i}function Wr(t,i){var s=Fg(t,i);return bf(s)?s:n}function Py(t){var i=ze.call(t,kr),s=t[kr];try{t[kr]=n;var c=!0}catch{}var h=Wo.call(t);return c&&(i?t[kr]=s:delete t[kr]),h}var su=Ds?function(t){return t==null?[]:(t=Ke(t),ar(Ds(t),function(i){return of.call(t,i)}))}:Ou,Qf=Ds?function(t){for(var i=[];t;)sr(i,su(t)),t=Bo(t);return i}:Ou,Rt=Nt;(ks&&Rt(new ks(new ArrayBuffer(1)))!=Yt||Bi&&Rt(new Bi)!=it||Ns&&Rt(Ns.resolve())!=Wt||di&&Rt(new di)!=Qe||zi&&Rt(new zi)!=Tt)&&(Rt=function(t){var i=Nt(t),s=i==gt?t.constructor:n,c=s?Hr(s):"";if(c)switch(c){case f0:return Yt;case d0:return it;case p0:return Wt;case h0:return Qe;case v0:return Tt}return i});function Ay(t,i,s){for(var c=-1,h=s.length;++c<h;){var b=s[c],x=b.size;switch(b.type){case"drop":t+=x;break;case"dropRight":i-=x;break;case"take":i=Ct(i,t+x);break;case"takeRight":t=vt(t,i-x);break}}return{start:t,end:i}}function Iy(t){var i=t.match(ae);return i?i[1].split(te):[]}function ed(t,i,s){i=dr(i,t);for(var c=-1,h=i.length,b=!1;++c<h;){var x=Mn(i[c]);if(!(b=t!=null&&s(t,x)))break;t=t[x]}return b||++c!=h?b:(h=t==null?0:t.length,!!h&&ma(h)&&Xn(x,h)&&(Te(t)||Ur(t)))}function Ly(t){var i=t.length,s=new t.constructor(i);return i&&typeof t[0]=="string"&&ze.call(t,"index")&&(s.index=t.index,s.input=t.input),s}function td(t){return typeof t.constructor=="function"&&!Qi(t)?hi(Bo(t)):{}}function My(t,i,s){var c=t.constructor;switch(i){case on:return eu(t);case le:case ye:return new c(+t);case Yt:return my(t,s);case Or:case Tr:case Cr:case Rr:case yn:case Bn:case bt:case wn:case bn:return $f(t,s);case it:return new c;case dt:case rn:return new c(t);case Ze:return gy(t);case Qe:return new c;case Kt:return yy(t)}}function Dy(t,i){var s=i.length;if(!s)return t;var c=s-1;return i[c]=(s>1?"& ":"")+i[c],i=i.join(s>2?", ":" "),t.replace(oe,`{
184
184
  /* [wrapped with `+i+`] */
185
- `)}function My(t){return Te(t)||Wr(t)||!!(rf&&t&&t[rf])}function Yn(t,i){var s=typeof t;return i=i??We,!!i&&(s=="number"||s!="symbol"&&qm.test(t))&&t>-1&&t%1==0&&t<i}function $t(t,i,s){if(!tt(s))return!1;var c=typeof i;return(c=="number"?Ut(s)&&Yn(i,s.length):c=="string"&&i in s)?En(s[i],t):!1}function su(t,i){if(Te(t))return!1;var s=typeof t;return s=="number"||s=="symbol"||s=="boolean"||t==null||Zt(t)?!0:ji.test(t)||!$i.test(t)||i!=null&&t in Ye(i)}function Dy(t){var i=typeof t;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?t!=="__proto__":t===null}function uu(t){var i=sa(t),s=w[i];if(typeof s!="function"||!(i in ke.prototype))return!1;if(t===s)return!0;var c=iu(s);return!!c&&t===c[0]}function ky(t){return!!Qc&&Qc in t}var Ny=$o?Xn:Ou;function Zi(t){var i=t&&t.constructor,s=typeof i=="function"&&i.prototype||ci;return t===s}function ed(t){return t===t&&!tt(t)}function td(t,i){return function(s){return s==null?!1:s[t]===i&&(i!==n||t in Ye(s))}}function $y(t){var i=pa(t,function(c){return s.size===v&&s.clear(),c}),s=i.cache;return i}function jy(t,i){var s=t[1],c=i[1],h=s|c,b=h<(E|D|U),x=c==U&&s==C||c==U&&s==j&&t[7].length<=i[8]||c==(U|j)&&i[7].length<=i[8]&&s==C;if(!(b||x))return t;c&E&&(t[2]=i[2],h|=s&E?0:I);var R=i[3];if(R){var M=t[3];t[3]=M?$f(M,R,i[4]):R,t[4]=M?sr(t[3],g):i[4]}return R=i[5],R&&(M=t[5],t[5]=M?jf(M,R,i[6]):R,t[6]=M?sr(t[5],g):i[6]),R=i[7],R&&(t[7]=R),c&U&&(t[8]=t[8]==null?i[8]:Ct(t[8],i[8])),t[9]==null&&(t[9]=i[9]),t[0]=i[0],t[1]=h,t}function Fy(t){var i=[];if(t!=null)for(var s in Ye(t))i.push(s);return i}function Wy(t){return Fo.call(t)}function nd(t,i,s){return i=vt(i===n?t.length-1:i,0),function(){for(var c=arguments,h=-1,b=vt(c.length-i,0),x=W(b);++h<b;)x[h]=c[i+h];h=-1;for(var R=W(i+1);++h<i;)R[h]=c[h];return R[i]=s(x),Xt(t,this,R)}}function rd(t,i){return i.length<2?t:$r(t,fn(i,0,-1))}function Hy(t,i){for(var s=t.length,c=Ct(i.length,s),h=Ht(t);c--;){var b=i[c];t[c]=Yn(b,s)?h[b]:n}return t}function lu(t,i){if(!(i==="constructor"&&typeof t[i]=="function")&&i!="__proto__")return t[i]}var id=ad(Cf),Qi=n0||function(t,i){return _t.setTimeout(t,i)},cu=ad(cy);function od(t,i,s){var c=i+"";return cu(t,Ly(c,Uy(Py(c),s)))}function ad(t){var i=0,s=0;return function(){var c=a0(),h=_e-(c-s);if(s=c,h>0){if(++i>=Ce)return arguments[0]}else i=0;return t.apply(n,arguments)}}function la(t,i){var s=-1,c=t.length,h=c-1;for(i=i===n?c:i;++s<i;){var b=Gs(s,h),x=t[b];t[b]=t[s],t[s]=x}return t.length=i,t}var sd=$y(function(t){var i=[];return t.charCodeAt(0)===46&&i.push(""),t.replace(Fi,function(s,c,h,b){i.push(h?b.replace(Se,"$1"):c||s)}),i});function Mn(t){if(typeof t=="string"||Zt(t))return t;var i=t+"";return i=="0"&&1/t==-xe?"-0":i}function Fr(t){if(t!=null){try{return jo.call(t)}catch{}try{return t+""}catch{}}return""}function Uy(t,i){return sn(ce,function(s){var c="_."+s[0];i&s[1]&&!Mo(t,c)&&t.push(c)}),t.sort()}function ud(t){if(t instanceof ke)return t.clone();var i=new ln(t.__wrapped__,t.__chain__);return i.__actions__=Ht(t.__actions__),i.__index__=t.__index__,i.__values__=t.__values__,i}function By(t,i,s){(s?$t(t,i,s):i===n)?i=1:i=vt(Re(i),0);var c=t==null?0:t.length;if(!c||i<1)return[];for(var h=0,b=0,x=W(qo(c/i));h<c;)x[b++]=fn(t,h,h+=i);return x}function zy(t){for(var i=-1,s=t==null?0:t.length,c=0,h=[];++i<s;){var b=t[i];b&&(h[c++]=b)}return h}function qy(){var t=arguments.length;if(!t)return[];for(var i=W(t-1),s=arguments[0],c=t;c--;)i[c-1]=arguments[c];return ar(Te(s)?Ht(s):[s],St(i,1))}var Gy=Ae(function(t,i){return ct(t)?Ki(t,St(i,1,ct,!0)):[]}),Ky=Ae(function(t,i){var s=dn(i);return ct(s)&&(s=n),ct(t)?Ki(t,St(i,1,ct,!0),he(s,2)):[]}),Yy=Ae(function(t,i){var s=dn(i);return ct(s)&&(s=n),ct(t)?Ki(t,St(i,1,ct,!0),n,s):[]});function Xy(t,i,s){var c=t==null?0:t.length;return c?(i=s||i===n?1:Re(i),fn(t,i<0?0:i,c)):[]}function Vy(t,i,s){var c=t==null?0:t.length;return c?(i=s||i===n?1:Re(i),i=c-i,fn(t,0,i<0?0:i)):[]}function Jy(t,i){return t&&t.length?ta(t,he(i,3),!0,!0):[]}function Zy(t,i){return t&&t.length?ta(t,he(i,3),!0):[]}function Qy(t,i,s,c){var h=t==null?0:t.length;return h?(s&&typeof s!="number"&&$t(t,i,s)&&(s=0,c=h),q0(t,i,s,c)):[]}function ld(t,i,s){var c=t==null?0:t.length;if(!c)return-1;var h=s==null?0:Re(s);return h<0&&(h=vt(c+h,0)),Do(t,he(i,3),h)}function cd(t,i,s){var c=t==null?0:t.length;if(!c)return-1;var h=c-1;return s!==n&&(h=Re(s),h=s<0?vt(c+h,0):Ct(h,c-1)),Do(t,he(i,3),h,!0)}function fd(t){var i=t==null?0:t.length;return i?St(t,1):[]}function e1(t){var i=t==null?0:t.length;return i?St(t,xe):[]}function t1(t,i){var s=t==null?0:t.length;return s?(i=i===n?1:Re(i),St(t,i)):[]}function n1(t){for(var i=-1,s=t==null?0:t.length,c={};++i<s;){var h=t[i];c[h[0]]=h[1]}return c}function dd(t){return t&&t.length?t[0]:n}function r1(t,i,s){var c=t==null?0:t.length;if(!c)return-1;var h=s==null?0:Re(s);return h<0&&(h=vt(c+h,0)),ai(t,i,h)}function i1(t){var i=t==null?0:t.length;return i?fn(t,0,-1):[]}var o1=Ae(function(t){var i=et(t,Js);return i.length&&i[0]===t[0]?Hs(i):[]}),a1=Ae(function(t){var i=dn(t),s=et(t,Js);return i===dn(s)?i=n:s.pop(),s.length&&s[0]===t[0]?Hs(s,he(i,2)):[]}),s1=Ae(function(t){var i=dn(t),s=et(t,Js);return i=typeof i=="function"?i:n,i&&s.pop(),s.length&&s[0]===t[0]?Hs(s,n,i):[]});function u1(t,i){return t==null?"":i0.call(t,i)}function dn(t){var i=t==null?0:t.length;return i?t[i-1]:n}function l1(t,i,s){var c=t==null?0:t.length;if(!c)return-1;var h=c;return s!==n&&(h=Re(s),h=h<0?vt(c+h,0):Ct(h,c-1)),i===i?Ug(t,i,h):Do(t,qc,h,!0)}function c1(t,i){return t&&t.length?Ef(t,Re(i)):n}var f1=Ae(pd);function pd(t,i){return t&&t.length&&i&&i.length?qs(t,i):t}function d1(t,i,s){return t&&t.length&&i&&i.length?qs(t,i,he(s,2)):t}function p1(t,i,s){return t&&t.length&&i&&i.length?qs(t,i,n,s):t}var h1=Kn(function(t,i){var s=t==null?0:t.length,c=$s(t,i);return Tf(t,et(i,function(h){return Yn(h,s)?+h:h}).sort(Nf)),c});function v1(t,i){var s=[];if(!(t&&t.length))return s;var c=-1,h=[],b=t.length;for(i=he(i,3);++c<b;){var x=t[c];i(x,c,t)&&(s.push(x),h.push(c))}return Tf(t,h),s}function fu(t){return t==null?t:u0.call(t)}function m1(t,i,s){var c=t==null?0:t.length;return c?(s&&typeof s!="number"&&$t(t,i,s)?(i=0,s=c):(i=i==null?0:Re(i),s=s===n?c:Re(s)),fn(t,i,s)):[]}function g1(t,i){return ea(t,i)}function y1(t,i,s){return Ys(t,i,he(s,2))}function w1(t,i){var s=t==null?0:t.length;if(s){var c=ea(t,i);if(c<s&&En(t[c],i))return c}return-1}function b1(t,i){return ea(t,i,!0)}function _1(t,i,s){return Ys(t,i,he(s,2),!0)}function S1(t,i){var s=t==null?0:t.length;if(s){var c=ea(t,i,!0)-1;if(En(t[c],i))return c}return-1}function E1(t){return t&&t.length?Rf(t):[]}function x1(t,i){return t&&t.length?Rf(t,he(i,2)):[]}function O1(t){var i=t==null?0:t.length;return i?fn(t,1,i):[]}function T1(t,i,s){return t&&t.length?(i=s||i===n?1:Re(i),fn(t,0,i<0?0:i)):[]}function C1(t,i,s){var c=t==null?0:t.length;return c?(i=s||i===n?1:Re(i),i=c-i,fn(t,i<0?0:i,c)):[]}function R1(t,i){return t&&t.length?ta(t,he(i,3),!1,!0):[]}function P1(t,i){return t&&t.length?ta(t,he(i,3)):[]}var A1=Ae(function(t){return cr(St(t,1,ct,!0))}),I1=Ae(function(t){var i=dn(t);return ct(i)&&(i=n),cr(St(t,1,ct,!0),he(i,2))}),L1=Ae(function(t){var i=dn(t);return i=typeof i=="function"?i:n,cr(St(t,1,ct,!0),n,i)});function M1(t){return t&&t.length?cr(t):[]}function D1(t,i){return t&&t.length?cr(t,he(i,2)):[]}function k1(t,i){return i=typeof i=="function"?i:n,t&&t.length?cr(t,n,i):[]}function du(t){if(!(t&&t.length))return[];var i=0;return t=or(t,function(s){if(ct(s))return i=vt(s.length,i),!0}),Ps(i,function(s){return et(t,Ts(s))})}function hd(t,i){if(!(t&&t.length))return[];var s=du(t);return i==null?s:et(s,function(c){return Xt(i,n,c)})}var N1=Ae(function(t,i){return ct(t)?Ki(t,i):[]}),$1=Ae(function(t){return Vs(or(t,ct))}),j1=Ae(function(t){var i=dn(t);return ct(i)&&(i=n),Vs(or(t,ct),he(i,2))}),F1=Ae(function(t){var i=dn(t);return i=typeof i=="function"?i:n,Vs(or(t,ct),n,i)}),W1=Ae(du);function H1(t,i){return Lf(t||[],i||[],Gi)}function U1(t,i){return Lf(t||[],i||[],Vi)}var B1=Ae(function(t){var i=t.length,s=i>1?t[i-1]:n;return s=typeof s=="function"?(t.pop(),s):n,hd(t,s)});function vd(t){var i=w(t);return i.__chain__=!0,i}function z1(t,i){return i(t),t}function ca(t,i){return i(t)}var q1=Kn(function(t){var i=t.length,s=i?t[0]:0,c=this.__wrapped__,h=function(b){return $s(b,t)};return i>1||this.__actions__.length||!(c instanceof ke)||!Yn(s)?this.thru(h):(c=c.slice(s,+s+(i?1:0)),c.__actions__.push({func:ca,args:[h],thisArg:n}),new ln(c,this.__chain__).thru(function(b){return i&&!b.length&&b.push(n),b}))});function G1(){return vd(this)}function K1(){return new ln(this.value(),this.__chain__)}function Y1(){this.__values__===n&&(this.__values__=Pd(this.value()));var t=this.__index__>=this.__values__.length,i=t?n:this.__values__[this.__index__++];return{done:t,value:i}}function X1(){return this}function V1(t){for(var i,s=this;s instanceof Xo;){var c=ud(s);c.__index__=0,c.__values__=n,i?h.__wrapped__=c:i=c;var h=c;s=s.__wrapped__}return h.__wrapped__=t,i}function J1(){var t=this.__wrapped__;if(t instanceof ke){var i=t;return this.__actions__.length&&(i=new ke(this)),i=i.reverse(),i.__actions__.push({func:ca,args:[fu],thisArg:n}),new ln(i,this.__chain__)}return this.thru(fu)}function Z1(){return If(this.__wrapped__,this.__actions__)}var Q1=na(function(t,i,s){qe.call(t,s)?++t[s]:qn(t,s,1)});function ew(t,i,s){var c=Te(t)?Bc:z0;return s&&$t(t,i,s)&&(i=n),c(t,he(i,3))}function tw(t,i){var s=Te(t)?or:hf;return s(t,he(i,3))}var nw=Uf(ld),rw=Uf(cd);function iw(t,i){return St(fa(t,i),1)}function ow(t,i){return St(fa(t,i),xe)}function aw(t,i,s){return s=s===n?1:Re(s),St(fa(t,i),s)}function md(t,i){var s=Te(t)?sn:lr;return s(t,he(i,3))}function gd(t,i){var s=Te(t)?Og:pf;return s(t,he(i,3))}var sw=na(function(t,i,s){qe.call(t,s)?t[s].push(i):qn(t,s,[i])});function uw(t,i,s,c){t=Ut(t)?t:yi(t),s=s&&!c?Re(s):0;var h=t.length;return s<0&&(s=vt(h+s,0)),ma(t)?s<=h&&t.indexOf(i,s)>-1:!!h&&ai(t,i,s)>-1}var lw=Ae(function(t,i,s){var c=-1,h=typeof i=="function",b=Ut(t)?W(t.length):[];return lr(t,function(x){b[++c]=h?Xt(i,x,s):Yi(x,i,s)}),b}),cw=na(function(t,i,s){qn(t,s,i)});function fa(t,i){var s=Te(t)?et:bf;return s(t,he(i,3))}function fw(t,i,s,c){return t==null?[]:(Te(i)||(i=i==null?[]:[i]),s=c?n:s,Te(s)||(s=s==null?[]:[s]),xf(t,i,s))}var dw=na(function(t,i,s){t[s?0:1].push(i)},function(){return[[],[]]});function pw(t,i,s){var c=Te(t)?xs:Kc,h=arguments.length<3;return c(t,he(i,4),s,h,lr)}function hw(t,i,s){var c=Te(t)?Tg:Kc,h=arguments.length<3;return c(t,he(i,4),s,h,pf)}function vw(t,i){var s=Te(t)?or:hf;return s(t,ha(he(i,3)))}function mw(t){var i=Te(t)?lf:uy;return i(t)}function gw(t,i,s){(s?$t(t,i,s):i===n)?i=1:i=Re(i);var c=Te(t)?F0:ly;return c(t,i)}function yw(t){var i=Te(t)?W0:fy;return i(t)}function ww(t){if(t==null)return 0;if(Ut(t))return ma(t)?ui(t):t.length;var i=Rt(t);return i==it||i==Qe?t.size:Bs(t).length}function bw(t,i,s){var c=Te(t)?Os:dy;return s&&$t(t,i,s)&&(i=n),c(t,he(i,3))}var _w=Ae(function(t,i){if(t==null)return[];var s=i.length;return s>1&&$t(t,i[0],i[1])?i=[]:s>2&&$t(i[0],i[1],i[2])&&(i=[i[0]]),xf(t,St(i,1),[])}),da=t0||function(){return _t.Date.now()};function Sw(t,i){if(typeof i!="function")throw new un(l);return t=Re(t),function(){if(--t<1)return i.apply(this,arguments)}}function yd(t,i,s){return i=s?n:i,i=t&&i==null?t.length:i,Gn(t,U,n,n,n,n,i)}function wd(t,i){var s;if(typeof i!="function")throw new un(l);return t=Re(t),function(){return--t>0&&(s=i.apply(this,arguments)),t<=1&&(i=n),s}}var pu=Ae(function(t,i,s){var c=E;if(s.length){var h=sr(s,mi(pu));c|=T}return Gn(t,c,i,s,h)}),bd=Ae(function(t,i,s){var c=E|D;if(s.length){var h=sr(s,mi(bd));c|=T}return Gn(i,c,t,s,h)});function _d(t,i,s){i=s?n:i;var c=Gn(t,C,n,n,n,n,n,i);return c.placeholder=_d.placeholder,c}function Sd(t,i,s){i=s?n:i;var c=Gn(t,k,n,n,n,n,n,i);return c.placeholder=Sd.placeholder,c}function Ed(t,i,s){var c,h,b,x,R,M,z=0,q=!1,K=!1,Z=!0;if(typeof t!="function")throw new un(l);i=pn(i)||0,tt(s)&&(q=!!s.leading,K="maxWait"in s,b=K?vt(pn(s.maxWait)||0,i):b,Z="trailing"in s?!!s.trailing:Z);function re(ft){var xn=c,Jn=h;return c=h=n,z=ft,x=t.apply(Jn,xn),x}function ve(ft){return z=ft,R=Qi(De,i),q?re(ft):x}function Pe(ft){var xn=ft-M,Jn=ft-z,Ud=i-xn;return K?Ct(Ud,b-Jn):Ud}function me(ft){var xn=ft-M,Jn=ft-z;return M===n||xn>=i||xn<0||K&&Jn>=b}function De(){var ft=da();if(me(ft))return Ne(ft);R=Qi(De,Pe(ft))}function Ne(ft){return R=n,Z&&c?re(ft):(c=h=n,x)}function Qt(){R!==n&&Mf(R),z=0,c=M=h=R=n}function jt(){return R===n?x:Ne(da())}function en(){var ft=da(),xn=me(ft);if(c=arguments,h=this,M=ft,xn){if(R===n)return ve(M);if(K)return Mf(R),R=Qi(De,i),re(M)}return R===n&&(R=Qi(De,i)),x}return en.cancel=Qt,en.flush=jt,en}var Ew=Ae(function(t,i){return df(t,1,i)}),xw=Ae(function(t,i,s){return df(t,pn(i)||0,s)});function Ow(t){return Gn(t,J)}function pa(t,i){if(typeof t!="function"||i!=null&&typeof i!="function")throw new un(l);var s=function(){var c=arguments,h=i?i.apply(this,c):c[0],b=s.cache;if(b.has(h))return b.get(h);var x=t.apply(this,c);return s.cache=b.set(h,x)||b,x};return s.cache=new(pa.Cache||zn),s}pa.Cache=zn;function ha(t){if(typeof t!="function")throw new un(l);return function(){var i=arguments;switch(i.length){case 0:return!t.call(this);case 1:return!t.call(this,i[0]);case 2:return!t.call(this,i[0],i[1]);case 3:return!t.call(this,i[0],i[1],i[2])}return!t.apply(this,i)}}function Tw(t){return wd(2,t)}var Cw=py(function(t,i){i=i.length==1&&Te(i[0])?et(i[0],Vt(he())):et(St(i,1),Vt(he()));var s=i.length;return Ae(function(c){for(var h=-1,b=Ct(c.length,s);++h<b;)c[h]=i[h].call(this,c[h]);return Xt(t,this,c)})}),hu=Ae(function(t,i){var s=sr(i,mi(hu));return Gn(t,T,n,i,s)}),xd=Ae(function(t,i){var s=sr(i,mi(xd));return Gn(t,H,n,i,s)}),Rw=Kn(function(t,i){return Gn(t,j,n,n,n,i)});function Pw(t,i){if(typeof t!="function")throw new un(l);return i=i===n?i:Re(i),Ae(t,i)}function Aw(t,i){if(typeof t!="function")throw new un(l);return i=i==null?0:vt(Re(i),0),Ae(function(s){var c=s[i],h=dr(s,0,i);return c&&ar(h,c),Xt(t,this,h)})}function Iw(t,i,s){var c=!0,h=!0;if(typeof t!="function")throw new un(l);return tt(s)&&(c="leading"in s?!!s.leading:c,h="trailing"in s?!!s.trailing:h),Ed(t,i,{leading:c,maxWait:i,trailing:h})}function Lw(t){return yd(t,1)}function Mw(t,i){return hu(Zs(i),t)}function Dw(){if(!arguments.length)return[];var t=arguments[0];return Te(t)?t:[t]}function kw(t){return cn(t,m)}function Nw(t,i){return i=typeof i=="function"?i:n,cn(t,m,i)}function $w(t){return cn(t,_|m)}function jw(t,i){return i=typeof i=="function"?i:n,cn(t,_|m,i)}function Fw(t,i){return i==null||ff(t,i,yt(i))}function En(t,i){return t===i||t!==t&&i!==i}var Ww=aa(Ws),Hw=aa(function(t,i){return t>=i}),Wr=gf(function(){return arguments}())?gf:function(t){return at(t)&&qe.call(t,"callee")&&!nf.call(t,"callee")},Te=W.isArray,Uw=$c?Vt($c):V0;function Ut(t){return t!=null&&va(t.length)&&!Xn(t)}function ct(t){return at(t)&&Ut(t)}function Bw(t){return t===!0||t===!1||at(t)&&Nt(t)==le}var pr=r0||Ou,zw=jc?Vt(jc):J0;function qw(t){return at(t)&&t.nodeType===1&&!eo(t)}function Gw(t){if(t==null)return!0;if(Ut(t)&&(Te(t)||typeof t=="string"||typeof t.splice=="function"||pr(t)||gi(t)||Wr(t)))return!t.length;var i=Rt(t);if(i==it||i==Qe)return!t.size;if(Zi(t))return!Bs(t).length;for(var s in t)if(qe.call(t,s))return!1;return!0}function Kw(t,i){return Xi(t,i)}function Yw(t,i,s){s=typeof s=="function"?s:n;var c=s?s(t,i):n;return c===n?Xi(t,i,n,s):!!c}function vu(t){if(!at(t))return!1;var i=Nt(t);return i==Ke||i==be||typeof t.message=="string"&&typeof t.name=="string"&&!eo(t)}function Xw(t){return typeof t=="number"&&of(t)}function Xn(t){if(!tt(t))return!1;var i=Nt(t);return i==V||i==rt||i==pe||i==Sr}function Od(t){return typeof t=="number"&&t==Re(t)}function va(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=We}function tt(t){var i=typeof t;return t!=null&&(i=="object"||i=="function")}function at(t){return t!=null&&typeof t=="object"}var Td=Fc?Vt(Fc):Q0;function Vw(t,i){return t===i||Us(t,i,ou(i))}function Jw(t,i,s){return s=typeof s=="function"?s:n,Us(t,i,ou(i),s)}function Zw(t){return Cd(t)&&t!=+t}function Qw(t){if(Ny(t))throw new Ee(u);return yf(t)}function eb(t){return t===null}function tb(t){return t==null}function Cd(t){return typeof t=="number"||at(t)&&Nt(t)==dt}function eo(t){if(!at(t)||Nt(t)!=gt)return!1;var i=Uo(t);if(i===null)return!0;var s=qe.call(i,"constructor")&&i.constructor;return typeof s=="function"&&s instanceof s&&jo.call(s)==Jg}var mu=Wc?Vt(Wc):ey;function nb(t){return Od(t)&&t>=-We&&t<=We}var Rd=Hc?Vt(Hc):ty;function ma(t){return typeof t=="string"||!Te(t)&&at(t)&&Nt(t)==rn}function Zt(t){return typeof t=="symbol"||at(t)&&Nt(t)==Kt}var gi=Uc?Vt(Uc):ny;function rb(t){return t===n}function ib(t){return at(t)&&Rt(t)==Tt}function ob(t){return at(t)&&Nt(t)==rr}var ab=aa(zs),sb=aa(function(t,i){return t<=i});function Pd(t){if(!t)return[];if(Ut(t))return ma(t)?_n(t):Ht(t);if(Hi&&t[Hi])return Fg(t[Hi]());var i=Rt(t),s=i==it?Is:i==Qe?ko:yi;return s(t)}function Vn(t){if(!t)return t===0?t:0;if(t=pn(t),t===xe||t===-xe){var i=t<0?-1:1;return i*ut}return t===t?t:0}function Re(t){var i=Vn(t),s=i%1;return i===i?s?i-s:i:0}function Ad(t){return t?Nr(Re(t),0,X):0}function pn(t){if(typeof t=="number")return t;if(Zt(t))return G;if(tt(t)){var i=typeof t.valueOf=="function"?t.valueOf():t;t=tt(i)?i+"":i}if(typeof t!="string")return t===0?t:+t;t=Yc(t);var s=Ir.test(t);return s||zm.test(t)?Sg(t.slice(2),s?2:8):kt.test(t)?G:+t}function Id(t){return Ln(t,Bt(t))}function ub(t){return t?Nr(Re(t),-We,We):t===0?t:0}function He(t){return t==null?"":Jt(t)}var lb=hi(function(t,i){if(Zi(i)||Ut(i)){Ln(i,yt(i),t);return}for(var s in i)qe.call(i,s)&&Gi(t,s,i[s])}),Ld=hi(function(t,i){Ln(i,Bt(i),t)}),ga=hi(function(t,i,s,c){Ln(i,Bt(i),t,c)}),cb=hi(function(t,i,s,c){Ln(i,yt(i),t,c)}),fb=Kn($s);function db(t,i){var s=pi(t);return i==null?s:cf(s,i)}var pb=Ae(function(t,i){t=Ye(t);var s=-1,c=i.length,h=c>2?i[2]:n;for(h&&$t(i[0],i[1],h)&&(c=1);++s<c;)for(var b=i[s],x=Bt(b),R=-1,M=x.length;++R<M;){var z=x[R],q=t[z];(q===n||En(q,ci[z])&&!qe.call(t,z))&&(t[z]=b[z])}return t}),hb=Ae(function(t){return t.push(n,Xf),Xt(Md,n,t)});function vb(t,i){return zc(t,he(i,3),In)}function mb(t,i){return zc(t,he(i,3),Fs)}function gb(t,i){return t==null?t:js(t,he(i,3),Bt)}function yb(t,i){return t==null?t:vf(t,he(i,3),Bt)}function wb(t,i){return t&&In(t,he(i,3))}function bb(t,i){return t&&Fs(t,he(i,3))}function _b(t){return t==null?[]:Zo(t,yt(t))}function Sb(t){return t==null?[]:Zo(t,Bt(t))}function gu(t,i,s){var c=t==null?n:$r(t,i);return c===n?s:c}function Eb(t,i){return t!=null&&Zf(t,i,G0)}function yu(t,i){return t!=null&&Zf(t,i,K0)}var xb=zf(function(t,i,s){i!=null&&typeof i.toString!="function"&&(i=Fo.call(i)),t[i]=s},bu(zt)),Ob=zf(function(t,i,s){i!=null&&typeof i.toString!="function"&&(i=Fo.call(i)),qe.call(t,i)?t[i].push(s):t[i]=[s]},he),Tb=Ae(Yi);function yt(t){return Ut(t)?uf(t):Bs(t)}function Bt(t){return Ut(t)?uf(t,!0):ry(t)}function Cb(t,i){var s={};return i=he(i,3),In(t,function(c,h,b){qn(s,i(c,h,b),c)}),s}function Rb(t,i){var s={};return i=he(i,3),In(t,function(c,h,b){qn(s,h,i(c,h,b))}),s}var Pb=hi(function(t,i,s){Qo(t,i,s)}),Md=hi(function(t,i,s,c){Qo(t,i,s,c)}),Ab=Kn(function(t,i){var s={};if(t==null)return s;var c=!1;i=et(i,function(b){return b=fr(b,t),c||(c=b.length>1),b}),Ln(t,ru(t),s),c&&(s=cn(s,_|O|m,xy));for(var h=i.length;h--;)Xs(s,i[h]);return s});function Ib(t,i){return Dd(t,ha(he(i)))}var Lb=Kn(function(t,i){return t==null?{}:oy(t,i)});function Dd(t,i){if(t==null)return{};var s=et(ru(t),function(c){return[c]});return i=he(i),Of(t,s,function(c,h){return i(c,h[0])})}function Mb(t,i,s){i=fr(i,t);var c=-1,h=i.length;for(h||(h=1,t=n);++c<h;){var b=t==null?n:t[Mn(i[c])];b===n&&(c=h,b=s),t=Xn(b)?b.call(t):b}return t}function Db(t,i,s){return t==null?t:Vi(t,i,s)}function kb(t,i,s,c){return c=typeof c=="function"?c:n,t==null?t:Vi(t,i,s,c)}var kd=Kf(yt),Nd=Kf(Bt);function Nb(t,i,s){var c=Te(t),h=c||pr(t)||gi(t);if(i=he(i,4),s==null){var b=t&&t.constructor;h?s=c?new b:[]:tt(t)?s=Xn(b)?pi(Uo(t)):{}:s={}}return(h?sn:In)(t,function(x,R,M){return i(s,x,R,M)}),s}function $b(t,i){return t==null?!0:Xs(t,i)}function jb(t,i,s){return t==null?t:Af(t,i,Zs(s))}function Fb(t,i,s,c){return c=typeof c=="function"?c:n,t==null?t:Af(t,i,Zs(s),c)}function yi(t){return t==null?[]:As(t,yt(t))}function Wb(t){return t==null?[]:As(t,Bt(t))}function Hb(t,i,s){return s===n&&(s=i,i=n),s!==n&&(s=pn(s),s=s===s?s:0),i!==n&&(i=pn(i),i=i===i?i:0),Nr(pn(t),i,s)}function Ub(t,i,s){return i=Vn(i),s===n?(s=i,i=0):s=Vn(s),t=pn(t),Y0(t,i,s)}function Bb(t,i,s){if(s&&typeof s!="boolean"&&$t(t,i,s)&&(i=s=n),s===n&&(typeof i=="boolean"?(s=i,i=n):typeof t=="boolean"&&(s=t,t=n)),t===n&&i===n?(t=0,i=1):(t=Vn(t),i===n?(i=t,t=0):i=Vn(i)),t>i){var c=t;t=i,i=c}if(s||t%1||i%1){var h=af();return Ct(t+h*(i-t+_g("1e-"+((h+"").length-1))),i)}return Gs(t,i)}var zb=vi(function(t,i,s){return i=i.toLowerCase(),t+(s?$d(i):i)});function $d(t){return wu(He(t).toLowerCase())}function jd(t){return t=He(t),t&&t.replace(Gm,Dg).replace(fg,"")}function qb(t,i,s){t=He(t),i=Jt(i);var c=t.length;s=s===n?c:Nr(Re(s),0,c);var h=s;return s-=i.length,s>=0&&t.slice(s,h)==i}function Gb(t){return t=He(t),t&&ki.test(t)?t.replace(ir,kg):t}function Kb(t){return t=He(t),t&&P.test(t)?t.replace(p,"\\$&"):t}var Yb=vi(function(t,i,s){return t+(s?"-":"")+i.toLowerCase()}),Xb=vi(function(t,i,s){return t+(s?" ":"")+i.toLowerCase()}),Vb=Hf("toLowerCase");function Jb(t,i,s){t=He(t),i=Re(i);var c=i?ui(t):0;if(!i||c>=i)return t;var h=(i-c)/2;return oa(Go(h),s)+t+oa(qo(h),s)}function Zb(t,i,s){t=He(t),i=Re(i);var c=i?ui(t):0;return i&&c<i?t+oa(i-c,s):t}function Qb(t,i,s){t=He(t),i=Re(i);var c=i?ui(t):0;return i&&c<i?oa(i-c,s)+t:t}function e_(t,i,s){return s||i==null?i=0:i&&(i=+i),s0(He(t).replace(F,""),i||0)}function t_(t,i,s){return(s?$t(t,i,s):i===n)?i=1:i=Re(i),Ks(He(t),i)}function n_(){var t=arguments,i=He(t[0]);return t.length<3?i:i.replace(t[1],t[2])}var r_=vi(function(t,i,s){return t+(s?"_":"")+i.toLowerCase()});function i_(t,i,s){return s&&typeof s!="number"&&$t(t,i,s)&&(i=s=n),s=s===n?X:s>>>0,s?(t=He(t),t&&(typeof i=="string"||i!=null&&!mu(i))&&(i=Jt(i),!i&&si(t))?dr(_n(t),0,s):t.split(i,s)):[]}var o_=vi(function(t,i,s){return t+(s?" ":"")+wu(i)});function a_(t,i,s){return t=He(t),s=s==null?0:Nr(Re(s),0,t.length),i=Jt(i),t.slice(s,s+i.length)==i}function s_(t,i,s){var c=w.templateSettings;s&&$t(t,i,s)&&(i=n),t=He(t),i=ga({},i,c,Yf);var h=ga({},i.imports,c.imports,Yf),b=yt(h),x=As(h,b),R,M,z=0,q=i.interpolate||Ao,K="__p += '",Z=Ls((i.escape||Ao).source+"|"+q.source+"|"+(q===ii?Oe:Ao).source+"|"+(i.evaluate||Ao).source+"|$","g"),re="//# sourceURL="+(qe.call(i,"sourceURL")?(i.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++mg+"]")+`
186
- `;t.replace(Z,function(me,De,Ne,Qt,jt,en){return Ne||(Ne=Qt),K+=t.slice(z,en).replace(Km,Ng),De&&(R=!0,K+=`' +
185
+ `)}function ky(t){return Te(t)||Ur(t)||!!(af&&t&&t[af])}function Xn(t,i){var s=typeof t;return i=i??We,!!i&&(s=="number"||s!="symbol"&&Km.test(t))&&t>-1&&t%1==0&&t<i}function $t(t,i,s){if(!tt(s))return!1;var c=typeof i;return(c=="number"?Ut(s)&&Xn(i,s.length):c=="string"&&i in s)?En(s[i],t):!1}function uu(t,i){if(Te(t))return!1;var s=typeof t;return s=="number"||s=="symbol"||s=="boolean"||t==null||Jt(t)?!0:Fi.test(t)||!ji.test(t)||i!=null&&t in Ke(i)}function Ny(t){var i=typeof t;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?t!=="__proto__":t===null}function lu(t){var i=ua(t),s=w[i];if(typeof s!="function"||!(i in ke.prototype))return!1;if(t===s)return!0;var c=ou(s);return!!c&&t===c[0]}function $y(t){return!!tf&&tf in t}var jy=jo?Vn:Tu;function Qi(t){var i=t&&t.constructor,s=typeof i=="function"&&i.prototype||fi;return t===s}function nd(t){return t===t&&!tt(t)}function rd(t,i){return function(s){return s==null?!1:s[t]===i&&(i!==n||t in Ke(s))}}function Fy(t){var i=ha(t,function(c){return s.size===v&&s.clear(),c}),s=i.cache;return i}function Wy(t,i){var s=t[1],c=i[1],h=s|c,b=h<(E|D|U),x=c==U&&s==C||c==U&&s==j&&t[7].length<=i[8]||c==(U|j)&&i[7].length<=i[8]&&s==C;if(!(b||x))return t;c&E&&(t[2]=i[2],h|=s&E?0:I);var R=i[3];if(R){var M=t[3];t[3]=M?Ff(M,R,i[4]):R,t[4]=M?ur(t[3],g):i[4]}return R=i[5],R&&(M=t[5],t[5]=M?Wf(M,R,i[6]):R,t[6]=M?ur(t[5],g):i[6]),R=i[7],R&&(t[7]=R),c&U&&(t[8]=t[8]==null?i[8]:Ct(t[8],i[8])),t[9]==null&&(t[9]=i[9]),t[0]=i[0],t[1]=h,t}function Hy(t){var i=[];if(t!=null)for(var s in Ke(t))i.push(s);return i}function Uy(t){return Wo.call(t)}function id(t,i,s){return i=vt(i===n?t.length-1:i,0),function(){for(var c=arguments,h=-1,b=vt(c.length-i,0),x=W(b);++h<b;)x[h]=c[i+h];h=-1;for(var R=W(i+1);++h<i;)R[h]=c[h];return R[i]=s(x),Xt(t,this,R)}}function od(t,i){return i.length<2?t:Fr(t,fn(i,0,-1))}function By(t,i){for(var s=t.length,c=Ct(i.length,s),h=Ht(t);c--;){var b=i[c];t[c]=Xn(b,s)?h[b]:n}return t}function cu(t,i){if(!(i==="constructor"&&typeof t[i]=="function")&&i!="__proto__")return t[i]}var ad=ud(Pf),eo=i0||function(t,i){return _t.setTimeout(t,i)},fu=ud(dy);function sd(t,i,s){var c=i+"";return fu(t,Dy(c,zy(Iy(c),s)))}function ud(t){var i=0,s=0;return function(){var c=u0(),h=_e-(c-s);if(s=c,h>0){if(++i>=Ce)return arguments[0]}else i=0;return t.apply(n,arguments)}}function ca(t,i){var s=-1,c=t.length,h=c-1;for(i=i===n?c:i;++s<i;){var b=Ks(s,h),x=t[b];t[b]=t[s],t[s]=x}return t.length=i,t}var ld=Fy(function(t){var i=[];return t.charCodeAt(0)===46&&i.push(""),t.replace(Wi,function(s,c,h,b){i.push(h?b.replace(Se,"$1"):c||s)}),i});function Mn(t){if(typeof t=="string"||Jt(t))return t;var i=t+"";return i=="0"&&1/t==-xe?"-0":i}function Hr(t){if(t!=null){try{return Fo.call(t)}catch{}try{return t+""}catch{}}return""}function zy(t,i){return sn(ce,function(s){var c="_."+s[0];i&s[1]&&!Do(t,c)&&t.push(c)}),t.sort()}function cd(t){if(t instanceof ke)return t.clone();var i=new ln(t.__wrapped__,t.__chain__);return i.__actions__=Ht(t.__actions__),i.__index__=t.__index__,i.__values__=t.__values__,i}function qy(t,i,s){(s?$t(t,i,s):i===n)?i=1:i=vt(Re(i),0);var c=t==null?0:t.length;if(!c||i<1)return[];for(var h=0,b=0,x=W(Go(c/i));h<c;)x[b++]=fn(t,h,h+=i);return x}function Gy(t){for(var i=-1,s=t==null?0:t.length,c=0,h=[];++i<s;){var b=t[i];b&&(h[c++]=b)}return h}function Ky(){var t=arguments.length;if(!t)return[];for(var i=W(t-1),s=arguments[0],c=t;c--;)i[c-1]=arguments[c];return sr(Te(s)?Ht(s):[s],St(i,1))}var Yy=Ae(function(t,i){return ct(t)?Yi(t,St(i,1,ct,!0)):[]}),Xy=Ae(function(t,i){var s=dn(i);return ct(s)&&(s=n),ct(t)?Yi(t,St(i,1,ct,!0),he(s,2)):[]}),Vy=Ae(function(t,i){var s=dn(i);return ct(s)&&(s=n),ct(t)?Yi(t,St(i,1,ct,!0),n,s):[]});function Zy(t,i,s){var c=t==null?0:t.length;return c?(i=s||i===n?1:Re(i),fn(t,i<0?0:i,c)):[]}function Jy(t,i,s){var c=t==null?0:t.length;return c?(i=s||i===n?1:Re(i),i=c-i,fn(t,0,i<0?0:i)):[]}function Qy(t,i){return t&&t.length?na(t,he(i,3),!0,!0):[]}function e1(t,i){return t&&t.length?na(t,he(i,3),!0):[]}function t1(t,i,s,c){var h=t==null?0:t.length;return h?(s&&typeof s!="number"&&$t(t,i,s)&&(s=0,c=h),K0(t,i,s,c)):[]}function fd(t,i,s){var c=t==null?0:t.length;if(!c)return-1;var h=s==null?0:Re(s);return h<0&&(h=vt(c+h,0)),ko(t,he(i,3),h)}function dd(t,i,s){var c=t==null?0:t.length;if(!c)return-1;var h=c-1;return s!==n&&(h=Re(s),h=s<0?vt(c+h,0):Ct(h,c-1)),ko(t,he(i,3),h,!0)}function pd(t){var i=t==null?0:t.length;return i?St(t,1):[]}function n1(t){var i=t==null?0:t.length;return i?St(t,xe):[]}function r1(t,i){var s=t==null?0:t.length;return s?(i=i===n?1:Re(i),St(t,i)):[]}function i1(t){for(var i=-1,s=t==null?0:t.length,c={};++i<s;){var h=t[i];c[h[0]]=h[1]}return c}function hd(t){return t&&t.length?t[0]:n}function o1(t,i,s){var c=t==null?0:t.length;if(!c)return-1;var h=s==null?0:Re(s);return h<0&&(h=vt(c+h,0)),si(t,i,h)}function a1(t){var i=t==null?0:t.length;return i?fn(t,0,-1):[]}var s1=Ae(function(t){var i=et(t,Js);return i.length&&i[0]===t[0]?Us(i):[]}),u1=Ae(function(t){var i=dn(t),s=et(t,Js);return i===dn(s)?i=n:s.pop(),s.length&&s[0]===t[0]?Us(s,he(i,2)):[]}),l1=Ae(function(t){var i=dn(t),s=et(t,Js);return i=typeof i=="function"?i:n,i&&s.pop(),s.length&&s[0]===t[0]?Us(s,n,i):[]});function c1(t,i){return t==null?"":a0.call(t,i)}function dn(t){var i=t==null?0:t.length;return i?t[i-1]:n}function f1(t,i,s){var c=t==null?0:t.length;if(!c)return-1;var h=c;return s!==n&&(h=Re(s),h=h<0?vt(c+h,0):Ct(h,c-1)),i===i?zg(t,i,h):ko(t,Kc,h,!0)}function d1(t,i){return t&&t.length?Of(t,Re(i)):n}var p1=Ae(vd);function vd(t,i){return t&&t.length&&i&&i.length?Gs(t,i):t}function h1(t,i,s){return t&&t.length&&i&&i.length?Gs(t,i,he(s,2)):t}function v1(t,i,s){return t&&t.length&&i&&i.length?Gs(t,i,n,s):t}var m1=Yn(function(t,i){var s=t==null?0:t.length,c=js(t,i);return Rf(t,et(i,function(h){return Xn(h,s)?+h:h}).sort(jf)),c});function g1(t,i){var s=[];if(!(t&&t.length))return s;var c=-1,h=[],b=t.length;for(i=he(i,3);++c<b;){var x=t[c];i(x,c,t)&&(s.push(x),h.push(c))}return Rf(t,h),s}function du(t){return t==null?t:c0.call(t)}function y1(t,i,s){var c=t==null?0:t.length;return c?(s&&typeof s!="number"&&$t(t,i,s)?(i=0,s=c):(i=i==null?0:Re(i),s=s===n?c:Re(s)),fn(t,i,s)):[]}function w1(t,i){return ta(t,i)}function b1(t,i,s){return Xs(t,i,he(s,2))}function _1(t,i){var s=t==null?0:t.length;if(s){var c=ta(t,i);if(c<s&&En(t[c],i))return c}return-1}function S1(t,i){return ta(t,i,!0)}function E1(t,i,s){return Xs(t,i,he(s,2),!0)}function x1(t,i){var s=t==null?0:t.length;if(s){var c=ta(t,i,!0)-1;if(En(t[c],i))return c}return-1}function O1(t){return t&&t.length?Af(t):[]}function T1(t,i){return t&&t.length?Af(t,he(i,2)):[]}function C1(t){var i=t==null?0:t.length;return i?fn(t,1,i):[]}function R1(t,i,s){return t&&t.length?(i=s||i===n?1:Re(i),fn(t,0,i<0?0:i)):[]}function P1(t,i,s){var c=t==null?0:t.length;return c?(i=s||i===n?1:Re(i),i=c-i,fn(t,i<0?0:i,c)):[]}function A1(t,i){return t&&t.length?na(t,he(i,3),!1,!0):[]}function I1(t,i){return t&&t.length?na(t,he(i,3)):[]}var L1=Ae(function(t){return fr(St(t,1,ct,!0))}),M1=Ae(function(t){var i=dn(t);return ct(i)&&(i=n),fr(St(t,1,ct,!0),he(i,2))}),D1=Ae(function(t){var i=dn(t);return i=typeof i=="function"?i:n,fr(St(t,1,ct,!0),n,i)});function k1(t){return t&&t.length?fr(t):[]}function N1(t,i){return t&&t.length?fr(t,he(i,2)):[]}function $1(t,i){return i=typeof i=="function"?i:n,t&&t.length?fr(t,n,i):[]}function pu(t){if(!(t&&t.length))return[];var i=0;return t=ar(t,function(s){if(ct(s))return i=vt(s.length,i),!0}),As(i,function(s){return et(t,Cs(s))})}function md(t,i){if(!(t&&t.length))return[];var s=pu(t);return i==null?s:et(s,function(c){return Xt(i,n,c)})}var j1=Ae(function(t,i){return ct(t)?Yi(t,i):[]}),F1=Ae(function(t){return Zs(ar(t,ct))}),W1=Ae(function(t){var i=dn(t);return ct(i)&&(i=n),Zs(ar(t,ct),he(i,2))}),H1=Ae(function(t){var i=dn(t);return i=typeof i=="function"?i:n,Zs(ar(t,ct),n,i)}),U1=Ae(pu);function B1(t,i){return Df(t||[],i||[],Ki)}function z1(t,i){return Df(t||[],i||[],Zi)}var q1=Ae(function(t){var i=t.length,s=i>1?t[i-1]:n;return s=typeof s=="function"?(t.pop(),s):n,md(t,s)});function gd(t){var i=w(t);return i.__chain__=!0,i}function G1(t,i){return i(t),t}function fa(t,i){return i(t)}var K1=Yn(function(t){var i=t.length,s=i?t[0]:0,c=this.__wrapped__,h=function(b){return js(b,t)};return i>1||this.__actions__.length||!(c instanceof ke)||!Xn(s)?this.thru(h):(c=c.slice(s,+s+(i?1:0)),c.__actions__.push({func:fa,args:[h],thisArg:n}),new ln(c,this.__chain__).thru(function(b){return i&&!b.length&&b.push(n),b}))});function Y1(){return gd(this)}function X1(){return new ln(this.value(),this.__chain__)}function V1(){this.__values__===n&&(this.__values__=Id(this.value()));var t=this.__index__>=this.__values__.length,i=t?n:this.__values__[this.__index__++];return{done:t,value:i}}function Z1(){return this}function J1(t){for(var i,s=this;s instanceof Vo;){var c=cd(s);c.__index__=0,c.__values__=n,i?h.__wrapped__=c:i=c;var h=c;s=s.__wrapped__}return h.__wrapped__=t,i}function Q1(){var t=this.__wrapped__;if(t instanceof ke){var i=t;return this.__actions__.length&&(i=new ke(this)),i=i.reverse(),i.__actions__.push({func:fa,args:[du],thisArg:n}),new ln(i,this.__chain__)}return this.thru(du)}function ew(){return Mf(this.__wrapped__,this.__actions__)}var tw=ra(function(t,i,s){ze.call(t,s)?++t[s]:Gn(t,s,1)});function nw(t,i,s){var c=Te(t)?qc:G0;return s&&$t(t,i,s)&&(i=n),c(t,he(i,3))}function rw(t,i){var s=Te(t)?ar:mf;return s(t,he(i,3))}var iw=zf(fd),ow=zf(dd);function aw(t,i){return St(da(t,i),1)}function sw(t,i){return St(da(t,i),xe)}function uw(t,i,s){return s=s===n?1:Re(s),St(da(t,i),s)}function yd(t,i){var s=Te(t)?sn:cr;return s(t,he(i,3))}function wd(t,i){var s=Te(t)?Cg:vf;return s(t,he(i,3))}var lw=ra(function(t,i,s){ze.call(t,s)?t[s].push(i):Gn(t,s,[i])});function cw(t,i,s,c){t=Ut(t)?t:wi(t),s=s&&!c?Re(s):0;var h=t.length;return s<0&&(s=vt(h+s,0)),ga(t)?s<=h&&t.indexOf(i,s)>-1:!!h&&si(t,i,s)>-1}var fw=Ae(function(t,i,s){var c=-1,h=typeof i=="function",b=Ut(t)?W(t.length):[];return cr(t,function(x){b[++c]=h?Xt(i,x,s):Xi(x,i,s)}),b}),dw=ra(function(t,i,s){Gn(t,s,i)});function da(t,i){var s=Te(t)?et:Sf;return s(t,he(i,3))}function pw(t,i,s,c){return t==null?[]:(Te(i)||(i=i==null?[]:[i]),s=c?n:s,Te(s)||(s=s==null?[]:[s]),Tf(t,i,s))}var hw=ra(function(t,i,s){t[s?0:1].push(i)},function(){return[[],[]]});function vw(t,i,s){var c=Te(t)?Os:Xc,h=arguments.length<3;return c(t,he(i,4),s,h,cr)}function mw(t,i,s){var c=Te(t)?Rg:Xc,h=arguments.length<3;return c(t,he(i,4),s,h,vf)}function gw(t,i){var s=Te(t)?ar:mf;return s(t,va(he(i,3)))}function yw(t){var i=Te(t)?ff:cy;return i(t)}function ww(t,i,s){(s?$t(t,i,s):i===n)?i=1:i=Re(i);var c=Te(t)?H0:fy;return c(t,i)}function bw(t){var i=Te(t)?U0:py;return i(t)}function _w(t){if(t==null)return 0;if(Ut(t))return ga(t)?li(t):t.length;var i=Rt(t);return i==it||i==Qe?t.size:zs(t).length}function Sw(t,i,s){var c=Te(t)?Ts:hy;return s&&$t(t,i,s)&&(i=n),c(t,he(i,3))}var Ew=Ae(function(t,i){if(t==null)return[];var s=i.length;return s>1&&$t(t,i[0],i[1])?i=[]:s>2&&$t(i[0],i[1],i[2])&&(i=[i[0]]),Tf(t,St(i,1),[])}),pa=r0||function(){return _t.Date.now()};function xw(t,i){if(typeof i!="function")throw new un(l);return t=Re(t),function(){if(--t<1)return i.apply(this,arguments)}}function bd(t,i,s){return i=s?n:i,i=t&&i==null?t.length:i,Kn(t,U,n,n,n,n,i)}function _d(t,i){var s;if(typeof i!="function")throw new un(l);return t=Re(t),function(){return--t>0&&(s=i.apply(this,arguments)),t<=1&&(i=n),s}}var hu=Ae(function(t,i,s){var c=E;if(s.length){var h=ur(s,gi(hu));c|=T}return Kn(t,c,i,s,h)}),Sd=Ae(function(t,i,s){var c=E|D;if(s.length){var h=ur(s,gi(Sd));c|=T}return Kn(i,c,t,s,h)});function Ed(t,i,s){i=s?n:i;var c=Kn(t,C,n,n,n,n,n,i);return c.placeholder=Ed.placeholder,c}function xd(t,i,s){i=s?n:i;var c=Kn(t,k,n,n,n,n,n,i);return c.placeholder=xd.placeholder,c}function Od(t,i,s){var c,h,b,x,R,M,z=0,q=!1,K=!1,J=!0;if(typeof t!="function")throw new un(l);i=pn(i)||0,tt(s)&&(q=!!s.leading,K="maxWait"in s,b=K?vt(pn(s.maxWait)||0,i):b,J="trailing"in s?!!s.trailing:J);function re(ft){var xn=c,Jn=h;return c=h=n,z=ft,x=t.apply(Jn,xn),x}function ve(ft){return z=ft,R=eo(De,i),q?re(ft):x}function Pe(ft){var xn=ft-M,Jn=ft-z,zd=i-xn;return K?Ct(zd,b-Jn):zd}function me(ft){var xn=ft-M,Jn=ft-z;return M===n||xn>=i||xn<0||K&&Jn>=b}function De(){var ft=pa();if(me(ft))return Ne(ft);R=eo(De,Pe(ft))}function Ne(ft){return R=n,J&&c?re(ft):(c=h=n,x)}function Qt(){R!==n&&kf(R),z=0,c=M=h=R=n}function jt(){return R===n?x:Ne(pa())}function en(){var ft=pa(),xn=me(ft);if(c=arguments,h=this,M=ft,xn){if(R===n)return ve(M);if(K)return kf(R),R=eo(De,i),re(M)}return R===n&&(R=eo(De,i)),x}return en.cancel=Qt,en.flush=jt,en}var Ow=Ae(function(t,i){return hf(t,1,i)}),Tw=Ae(function(t,i,s){return hf(t,pn(i)||0,s)});function Cw(t){return Kn(t,Z)}function ha(t,i){if(typeof t!="function"||i!=null&&typeof i!="function")throw new un(l);var s=function(){var c=arguments,h=i?i.apply(this,c):c[0],b=s.cache;if(b.has(h))return b.get(h);var x=t.apply(this,c);return s.cache=b.set(h,x)||b,x};return s.cache=new(ha.Cache||qn),s}ha.Cache=qn;function va(t){if(typeof t!="function")throw new un(l);return function(){var i=arguments;switch(i.length){case 0:return!t.call(this);case 1:return!t.call(this,i[0]);case 2:return!t.call(this,i[0],i[1]);case 3:return!t.call(this,i[0],i[1],i[2])}return!t.apply(this,i)}}function Rw(t){return _d(2,t)}var Pw=vy(function(t,i){i=i.length==1&&Te(i[0])?et(i[0],Vt(he())):et(St(i,1),Vt(he()));var s=i.length;return Ae(function(c){for(var h=-1,b=Ct(c.length,s);++h<b;)c[h]=i[h].call(this,c[h]);return Xt(t,this,c)})}),vu=Ae(function(t,i){var s=ur(i,gi(vu));return Kn(t,T,n,i,s)}),Td=Ae(function(t,i){var s=ur(i,gi(Td));return Kn(t,H,n,i,s)}),Aw=Yn(function(t,i){return Kn(t,j,n,n,n,i)});function Iw(t,i){if(typeof t!="function")throw new un(l);return i=i===n?i:Re(i),Ae(t,i)}function Lw(t,i){if(typeof t!="function")throw new un(l);return i=i==null?0:vt(Re(i),0),Ae(function(s){var c=s[i],h=pr(s,0,i);return c&&sr(h,c),Xt(t,this,h)})}function Mw(t,i,s){var c=!0,h=!0;if(typeof t!="function")throw new un(l);return tt(s)&&(c="leading"in s?!!s.leading:c,h="trailing"in s?!!s.trailing:h),Od(t,i,{leading:c,maxWait:i,trailing:h})}function Dw(t){return bd(t,1)}function kw(t,i){return vu(Qs(i),t)}function Nw(){if(!arguments.length)return[];var t=arguments[0];return Te(t)?t:[t]}function $w(t){return cn(t,m)}function jw(t,i){return i=typeof i=="function"?i:n,cn(t,m,i)}function Fw(t){return cn(t,_|m)}function Ww(t,i){return i=typeof i=="function"?i:n,cn(t,_|m,i)}function Hw(t,i){return i==null||pf(t,i,yt(i))}function En(t,i){return t===i||t!==t&&i!==i}var Uw=sa(Hs),Bw=sa(function(t,i){return t>=i}),Ur=wf(function(){return arguments}())?wf:function(t){return at(t)&&ze.call(t,"callee")&&!of.call(t,"callee")},Te=W.isArray,zw=Fc?Vt(Fc):J0;function Ut(t){return t!=null&&ma(t.length)&&!Vn(t)}function ct(t){return at(t)&&Ut(t)}function qw(t){return t===!0||t===!1||at(t)&&Nt(t)==le}var hr=o0||Tu,Gw=Wc?Vt(Wc):Q0;function Kw(t){return at(t)&&t.nodeType===1&&!to(t)}function Yw(t){if(t==null)return!0;if(Ut(t)&&(Te(t)||typeof t=="string"||typeof t.splice=="function"||hr(t)||yi(t)||Ur(t)))return!t.length;var i=Rt(t);if(i==it||i==Qe)return!t.size;if(Qi(t))return!zs(t).length;for(var s in t)if(ze.call(t,s))return!1;return!0}function Xw(t,i){return Vi(t,i)}function Vw(t,i,s){s=typeof s=="function"?s:n;var c=s?s(t,i):n;return c===n?Vi(t,i,n,s):!!c}function mu(t){if(!at(t))return!1;var i=Nt(t);return i==Ge||i==be||typeof t.message=="string"&&typeof t.name=="string"&&!to(t)}function Zw(t){return typeof t=="number"&&sf(t)}function Vn(t){if(!tt(t))return!1;var i=Nt(t);return i==V||i==rt||i==pe||i==xr}function Cd(t){return typeof t=="number"&&t==Re(t)}function ma(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=We}function tt(t){var i=typeof t;return t!=null&&(i=="object"||i=="function")}function at(t){return t!=null&&typeof t=="object"}var Rd=Hc?Vt(Hc):ty;function Jw(t,i){return t===i||Bs(t,i,au(i))}function Qw(t,i,s){return s=typeof s=="function"?s:n,Bs(t,i,au(i),s)}function eb(t){return Pd(t)&&t!=+t}function tb(t){if(jy(t))throw new Ee(u);return bf(t)}function nb(t){return t===null}function rb(t){return t==null}function Pd(t){return typeof t=="number"||at(t)&&Nt(t)==dt}function to(t){if(!at(t)||Nt(t)!=gt)return!1;var i=Bo(t);if(i===null)return!0;var s=ze.call(i,"constructor")&&i.constructor;return typeof s=="function"&&s instanceof s&&Fo.call(s)==Qg}var gu=Uc?Vt(Uc):ny;function ib(t){return Cd(t)&&t>=-We&&t<=We}var Ad=Bc?Vt(Bc):ry;function ga(t){return typeof t=="string"||!Te(t)&&at(t)&&Nt(t)==rn}function Jt(t){return typeof t=="symbol"||at(t)&&Nt(t)==Kt}var yi=zc?Vt(zc):iy;function ob(t){return t===n}function ab(t){return at(t)&&Rt(t)==Tt}function sb(t){return at(t)&&Nt(t)==ir}var ub=sa(qs),lb=sa(function(t,i){return t<=i});function Id(t){if(!t)return[];if(Ut(t))return ga(t)?_n(t):Ht(t);if(Ui&&t[Ui])return Hg(t[Ui]());var i=Rt(t),s=i==it?Ls:i==Qe?No:wi;return s(t)}function Zn(t){if(!t)return t===0?t:0;if(t=pn(t),t===xe||t===-xe){var i=t<0?-1:1;return i*ut}return t===t?t:0}function Re(t){var i=Zn(t),s=i%1;return i===i?s?i-s:i:0}function Ld(t){return t?jr(Re(t),0,X):0}function pn(t){if(typeof t=="number")return t;if(Jt(t))return G;if(tt(t)){var i=typeof t.valueOf=="function"?t.valueOf():t;t=tt(i)?i+"":i}if(typeof t!="string")return t===0?t:+t;t=Vc(t);var s=Mr.test(t);return s||Gm.test(t)?xg(t.slice(2),s?2:8):kt.test(t)?G:+t}function Md(t){return Ln(t,Bt(t))}function cb(t){return t?jr(Re(t),-We,We):t===0?t:0}function He(t){return t==null?"":Zt(t)}var fb=vi(function(t,i){if(Qi(i)||Ut(i)){Ln(i,yt(i),t);return}for(var s in i)ze.call(i,s)&&Ki(t,s,i[s])}),Dd=vi(function(t,i){Ln(i,Bt(i),t)}),ya=vi(function(t,i,s,c){Ln(i,Bt(i),t,c)}),db=vi(function(t,i,s,c){Ln(i,yt(i),t,c)}),pb=Yn(js);function hb(t,i){var s=hi(t);return i==null?s:df(s,i)}var vb=Ae(function(t,i){t=Ke(t);var s=-1,c=i.length,h=c>2?i[2]:n;for(h&&$t(i[0],i[1],h)&&(c=1);++s<c;)for(var b=i[s],x=Bt(b),R=-1,M=x.length;++R<M;){var z=x[R],q=t[z];(q===n||En(q,fi[z])&&!ze.call(t,z))&&(t[z]=b[z])}return t}),mb=Ae(function(t){return t.push(n,Zf),Xt(kd,n,t)});function gb(t,i){return Gc(t,he(i,3),In)}function yb(t,i){return Gc(t,he(i,3),Ws)}function wb(t,i){return t==null?t:Fs(t,he(i,3),Bt)}function bb(t,i){return t==null?t:gf(t,he(i,3),Bt)}function _b(t,i){return t&&In(t,he(i,3))}function Sb(t,i){return t&&Ws(t,he(i,3))}function Eb(t){return t==null?[]:Qo(t,yt(t))}function xb(t){return t==null?[]:Qo(t,Bt(t))}function yu(t,i,s){var c=t==null?n:Fr(t,i);return c===n?s:c}function Ob(t,i){return t!=null&&ed(t,i,Y0)}function wu(t,i){return t!=null&&ed(t,i,X0)}var Tb=Gf(function(t,i,s){i!=null&&typeof i.toString!="function"&&(i=Wo.call(i)),t[i]=s},_u(zt)),Cb=Gf(function(t,i,s){i!=null&&typeof i.toString!="function"&&(i=Wo.call(i)),ze.call(t,i)?t[i].push(s):t[i]=[s]},he),Rb=Ae(Xi);function yt(t){return Ut(t)?cf(t):zs(t)}function Bt(t){return Ut(t)?cf(t,!0):oy(t)}function Pb(t,i){var s={};return i=he(i,3),In(t,function(c,h,b){Gn(s,i(c,h,b),c)}),s}function Ab(t,i){var s={};return i=he(i,3),In(t,function(c,h,b){Gn(s,h,i(c,h,b))}),s}var Ib=vi(function(t,i,s){ea(t,i,s)}),kd=vi(function(t,i,s,c){ea(t,i,s,c)}),Lb=Yn(function(t,i){var s={};if(t==null)return s;var c=!1;i=et(i,function(b){return b=dr(b,t),c||(c=b.length>1),b}),Ln(t,iu(t),s),c&&(s=cn(s,_|O|m,Ty));for(var h=i.length;h--;)Vs(s,i[h]);return s});function Mb(t,i){return Nd(t,va(he(i)))}var Db=Yn(function(t,i){return t==null?{}:sy(t,i)});function Nd(t,i){if(t==null)return{};var s=et(iu(t),function(c){return[c]});return i=he(i),Cf(t,s,function(c,h){return i(c,h[0])})}function kb(t,i,s){i=dr(i,t);var c=-1,h=i.length;for(h||(h=1,t=n);++c<h;){var b=t==null?n:t[Mn(i[c])];b===n&&(c=h,b=s),t=Vn(b)?b.call(t):b}return t}function Nb(t,i,s){return t==null?t:Zi(t,i,s)}function $b(t,i,s,c){return c=typeof c=="function"?c:n,t==null?t:Zi(t,i,s,c)}var $d=Xf(yt),jd=Xf(Bt);function jb(t,i,s){var c=Te(t),h=c||hr(t)||yi(t);if(i=he(i,4),s==null){var b=t&&t.constructor;h?s=c?new b:[]:tt(t)?s=Vn(b)?hi(Bo(t)):{}:s={}}return(h?sn:In)(t,function(x,R,M){return i(s,x,R,M)}),s}function Fb(t,i){return t==null?!0:Vs(t,i)}function Wb(t,i,s){return t==null?t:Lf(t,i,Qs(s))}function Hb(t,i,s,c){return c=typeof c=="function"?c:n,t==null?t:Lf(t,i,Qs(s),c)}function wi(t){return t==null?[]:Is(t,yt(t))}function Ub(t){return t==null?[]:Is(t,Bt(t))}function Bb(t,i,s){return s===n&&(s=i,i=n),s!==n&&(s=pn(s),s=s===s?s:0),i!==n&&(i=pn(i),i=i===i?i:0),jr(pn(t),i,s)}function zb(t,i,s){return i=Zn(i),s===n?(s=i,i=0):s=Zn(s),t=pn(t),V0(t,i,s)}function qb(t,i,s){if(s&&typeof s!="boolean"&&$t(t,i,s)&&(i=s=n),s===n&&(typeof i=="boolean"?(s=i,i=n):typeof t=="boolean"&&(s=t,t=n)),t===n&&i===n?(t=0,i=1):(t=Zn(t),i===n?(i=t,t=0):i=Zn(i)),t>i){var c=t;t=i,i=c}if(s||t%1||i%1){var h=uf();return Ct(t+h*(i-t+Eg("1e-"+((h+"").length-1))),i)}return Ks(t,i)}var Gb=mi(function(t,i,s){return i=i.toLowerCase(),t+(s?Fd(i):i)});function Fd(t){return bu(He(t).toLowerCase())}function Wd(t){return t=He(t),t&&t.replace(Ym,Ng).replace(pg,"")}function Kb(t,i,s){t=He(t),i=Zt(i);var c=t.length;s=s===n?c:jr(Re(s),0,c);var h=s;return s-=i.length,s>=0&&t.slice(s,h)==i}function Yb(t){return t=He(t),t&&Ni.test(t)?t.replace(or,$g):t}function Xb(t){return t=He(t),t&&P.test(t)?t.replace(p,"\\$&"):t}var Vb=mi(function(t,i,s){return t+(s?"-":"")+i.toLowerCase()}),Zb=mi(function(t,i,s){return t+(s?" ":"")+i.toLowerCase()}),Jb=Bf("toLowerCase");function Qb(t,i,s){t=He(t),i=Re(i);var c=i?li(t):0;if(!i||c>=i)return t;var h=(i-c)/2;return aa(Ko(h),s)+t+aa(Go(h),s)}function e_(t,i,s){t=He(t),i=Re(i);var c=i?li(t):0;return i&&c<i?t+aa(i-c,s):t}function t_(t,i,s){t=He(t),i=Re(i);var c=i?li(t):0;return i&&c<i?aa(i-c,s)+t:t}function n_(t,i,s){return s||i==null?i=0:i&&(i=+i),l0(He(t).replace(F,""),i||0)}function r_(t,i,s){return(s?$t(t,i,s):i===n)?i=1:i=Re(i),Ys(He(t),i)}function i_(){var t=arguments,i=He(t[0]);return t.length<3?i:i.replace(t[1],t[2])}var o_=mi(function(t,i,s){return t+(s?"_":"")+i.toLowerCase()});function a_(t,i,s){return s&&typeof s!="number"&&$t(t,i,s)&&(i=s=n),s=s===n?X:s>>>0,s?(t=He(t),t&&(typeof i=="string"||i!=null&&!gu(i))&&(i=Zt(i),!i&&ui(t))?pr(_n(t),0,s):t.split(i,s)):[]}var s_=mi(function(t,i,s){return t+(s?" ":"")+bu(i)});function u_(t,i,s){return t=He(t),s=s==null?0:jr(Re(s),0,t.length),i=Zt(i),t.slice(s,s+i.length)==i}function l_(t,i,s){var c=w.templateSettings;s&&$t(t,i,s)&&(i=n),t=He(t),i=ya({},i,c,Vf);var h=ya({},i.imports,c.imports,Vf),b=yt(h),x=Is(h,b),R,M,z=0,q=i.interpolate||Io,K="__p += '",J=Ms((i.escape||Io).source+"|"+q.source+"|"+(q===oi?Oe:Io).source+"|"+(i.evaluate||Io).source+"|$","g"),re="//# sourceURL="+(ze.call(i,"sourceURL")?(i.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++yg+"]")+`
186
+ `;t.replace(J,function(me,De,Ne,Qt,jt,en){return Ne||(Ne=Qt),K+=t.slice(z,en).replace(Xm,jg),De&&(R=!0,K+=`' +
187
187
  __e(`+De+`) +
188
188
  '`),jt&&(M=!0,K+=`';
189
189
  `+jt+`;
190
190
  __p += '`),Ne&&(K+=`' +
191
191
  ((__t = (`+Ne+`)) == null ? '' : __t) +
192
192
  '`),z=en+me.length,me}),K+=`';
193
- `;var ve=qe.call(i,"variable")&&i.variable;if(!ve)K=`with (obj) {
193
+ `;var ve=ze.call(i,"variable")&&i.variable;if(!ve)K=`with (obj) {
194
194
  `+K+`
195
195
  }
196
- `;else if(je.test(ve))throw new Ee(f);K=(M?K.replace(Cr,""):K).replace(Di,"$1").replace(Rr,"$1;"),K="function("+(ve||"obj")+`) {
196
+ `;else if(je.test(ve))throw new Ee(f);K=(M?K.replace(Pr,""):K).replace(ki,"$1").replace(Ar,"$1;"),K="function("+(ve||"obj")+`) {
197
197
  `+(ve?"":`obj || (obj = {});
198
198
  `)+"var __t, __p = ''"+(R?", __e = _.escape":"")+(M?`, __j = Array.prototype.join;
199
199
  function print() { __p += __j.call(arguments, '') }
200
200
  `:`;
201
201
  `)+K+`return __p
202
- }`;var Pe=Wd(function(){return Fe(b,re+"return "+K).apply(n,x)});if(Pe.source=K,vu(Pe))throw Pe;return Pe}function u_(t){return He(t).toLowerCase()}function l_(t){return He(t).toUpperCase()}function c_(t,i,s){if(t=He(t),t&&(s||i===n))return Yc(t);if(!t||!(i=Jt(i)))return t;var c=_n(t),h=_n(i),b=Xc(c,h),x=Vc(c,h)+1;return dr(c,b,x).join("")}function f_(t,i,s){if(t=He(t),t&&(s||i===n))return t.slice(0,Zc(t)+1);if(!t||!(i=Jt(i)))return t;var c=_n(t),h=Vc(c,_n(i))+1;return dr(c,0,h).join("")}function d_(t,i,s){if(t=He(t),t&&(s||i===n))return t.replace(F,"");if(!t||!(i=Jt(i)))return t;var c=_n(t),h=Xc(c,_n(i));return dr(c,h).join("")}function p_(t,i){var s=ee,c=ge;if(tt(i)){var h="separator"in i?i.separator:h;s="length"in i?Re(i.length):s,c="omission"in i?Jt(i.omission):c}t=He(t);var b=t.length;if(si(t)){var x=_n(t);b=x.length}if(s>=b)return t;var R=s-ui(c);if(R<1)return c;var M=x?dr(x,0,R).join(""):t.slice(0,R);if(h===n)return M+c;if(x&&(R+=M.length-R),mu(h)){if(t.slice(R).search(h)){var z,q=M;for(h.global||(h=Ls(h.source,He(ot.exec(h))+"g")),h.lastIndex=0;z=h.exec(q);)var K=z.index;M=M.slice(0,K===n?R:K)}}else if(t.indexOf(Jt(h),R)!=R){var Z=M.lastIndexOf(h);Z>-1&&(M=M.slice(0,Z))}return M+c}function h_(t){return t=He(t),t&&Pr.test(t)?t.replace(ri,Bg):t}var v_=vi(function(t,i,s){return t+(s?" ":"")+i.toUpperCase()}),wu=Hf("toUpperCase");function Fd(t,i,s){return t=He(t),i=s?n:i,i===n?jg(t)?Gg(t):Pg(t):t.match(i)||[]}var Wd=Ae(function(t,i){try{return Xt(t,n,i)}catch(s){return vu(s)?s:new Ee(s)}}),m_=Kn(function(t,i){return sn(i,function(s){s=Mn(s),qn(t,s,pu(t[s],t))}),t});function g_(t){var i=t==null?0:t.length,s=he();return t=i?et(t,function(c){if(typeof c[1]!="function")throw new un(l);return[s(c[0]),c[1]]}):[],Ae(function(c){for(var h=-1;++h<i;){var b=t[h];if(Xt(b[0],this,c))return Xt(b[1],this,c)}})}function y_(t){return B0(cn(t,_))}function bu(t){return function(){return t}}function w_(t,i){return t==null||t!==t?i:t}var b_=Bf(),__=Bf(!0);function zt(t){return t}function _u(t){return wf(typeof t=="function"?t:cn(t,_))}function S_(t){return _f(cn(t,_))}function E_(t,i){return Sf(t,cn(i,_))}var x_=Ae(function(t,i){return function(s){return Yi(s,t,i)}}),O_=Ae(function(t,i){return function(s){return Yi(t,s,i)}});function Su(t,i,s){var c=yt(i),h=Zo(i,c);s==null&&!(tt(i)&&(h.length||!c.length))&&(s=i,i=t,t=this,h=Zo(i,yt(i)));var b=!(tt(s)&&"chain"in s)||!!s.chain,x=Xn(t);return sn(h,function(R){var M=i[R];t[R]=M,x&&(t.prototype[R]=function(){var z=this.__chain__;if(b||z){var q=t(this.__wrapped__),K=q.__actions__=Ht(this.__actions__);return K.push({func:M,args:arguments,thisArg:t}),q.__chain__=z,q}return M.apply(t,ar([this.value()],arguments))})}),t}function T_(){return _t._===this&&(_t._=Zg),this}function Eu(){}function C_(t){return t=Re(t),Ae(function(i){return Ef(i,t)})}var R_=eu(et),P_=eu(Bc),A_=eu(Os);function Hd(t){return su(t)?Ts(Mn(t)):ay(t)}function I_(t){return function(i){return t==null?n:$r(t,i)}}var L_=qf(),M_=qf(!0);function xu(){return[]}function Ou(){return!1}function D_(){return{}}function k_(){return""}function N_(){return!0}function $_(t,i){if(t=Re(t),t<1||t>We)return[];var s=X,c=Ct(t,X);i=he(i),t-=X;for(var h=Ps(c,i);++s<t;)i(s);return h}function j_(t){return Te(t)?et(t,Mn):Zt(t)?[t]:Ht(sd(He(t)))}function F_(t){var i=++Vg;return He(t)+i}var W_=ia(function(t,i){return t+i},0),H_=tu("ceil"),U_=ia(function(t,i){return t/i},1),B_=tu("floor");function z_(t){return t&&t.length?Jo(t,zt,Ws):n}function q_(t,i){return t&&t.length?Jo(t,he(i,2),Ws):n}function G_(t){return Gc(t,zt)}function K_(t,i){return Gc(t,he(i,2))}function Y_(t){return t&&t.length?Jo(t,zt,zs):n}function X_(t,i){return t&&t.length?Jo(t,he(i,2),zs):n}var V_=ia(function(t,i){return t*i},1),J_=tu("round"),Z_=ia(function(t,i){return t-i},0);function Q_(t){return t&&t.length?Rs(t,zt):0}function eS(t,i){return t&&t.length?Rs(t,he(i,2)):0}return w.after=Sw,w.ary=yd,w.assign=lb,w.assignIn=Ld,w.assignInWith=ga,w.assignWith=cb,w.at=fb,w.before=wd,w.bind=pu,w.bindAll=m_,w.bindKey=bd,w.castArray=Dw,w.chain=vd,w.chunk=By,w.compact=zy,w.concat=qy,w.cond=g_,w.conforms=y_,w.constant=bu,w.countBy=Q1,w.create=db,w.curry=_d,w.curryRight=Sd,w.debounce=Ed,w.defaults=pb,w.defaultsDeep=hb,w.defer=Ew,w.delay=xw,w.difference=Gy,w.differenceBy=Ky,w.differenceWith=Yy,w.drop=Xy,w.dropRight=Vy,w.dropRightWhile=Jy,w.dropWhile=Zy,w.fill=Qy,w.filter=tw,w.flatMap=iw,w.flatMapDeep=ow,w.flatMapDepth=aw,w.flatten=fd,w.flattenDeep=e1,w.flattenDepth=t1,w.flip=Ow,w.flow=b_,w.flowRight=__,w.fromPairs=n1,w.functions=_b,w.functionsIn=Sb,w.groupBy=sw,w.initial=i1,w.intersection=o1,w.intersectionBy=a1,w.intersectionWith=s1,w.invert=xb,w.invertBy=Ob,w.invokeMap=lw,w.iteratee=_u,w.keyBy=cw,w.keys=yt,w.keysIn=Bt,w.map=fa,w.mapKeys=Cb,w.mapValues=Rb,w.matches=S_,w.matchesProperty=E_,w.memoize=pa,w.merge=Pb,w.mergeWith=Md,w.method=x_,w.methodOf=O_,w.mixin=Su,w.negate=ha,w.nthArg=C_,w.omit=Ab,w.omitBy=Ib,w.once=Tw,w.orderBy=fw,w.over=R_,w.overArgs=Cw,w.overEvery=P_,w.overSome=A_,w.partial=hu,w.partialRight=xd,w.partition=dw,w.pick=Lb,w.pickBy=Dd,w.property=Hd,w.propertyOf=I_,w.pull=f1,w.pullAll=pd,w.pullAllBy=d1,w.pullAllWith=p1,w.pullAt=h1,w.range=L_,w.rangeRight=M_,w.rearg=Rw,w.reject=vw,w.remove=v1,w.rest=Pw,w.reverse=fu,w.sampleSize=gw,w.set=Db,w.setWith=kb,w.shuffle=yw,w.slice=m1,w.sortBy=_w,w.sortedUniq=E1,w.sortedUniqBy=x1,w.split=i_,w.spread=Aw,w.tail=O1,w.take=T1,w.takeRight=C1,w.takeRightWhile=R1,w.takeWhile=P1,w.tap=z1,w.throttle=Iw,w.thru=ca,w.toArray=Pd,w.toPairs=kd,w.toPairsIn=Nd,w.toPath=j_,w.toPlainObject=Id,w.transform=Nb,w.unary=Lw,w.union=A1,w.unionBy=I1,w.unionWith=L1,w.uniq=M1,w.uniqBy=D1,w.uniqWith=k1,w.unset=$b,w.unzip=du,w.unzipWith=hd,w.update=jb,w.updateWith=Fb,w.values=yi,w.valuesIn=Wb,w.without=N1,w.words=Fd,w.wrap=Mw,w.xor=$1,w.xorBy=j1,w.xorWith=F1,w.zip=W1,w.zipObject=H1,w.zipObjectDeep=U1,w.zipWith=B1,w.entries=kd,w.entriesIn=Nd,w.extend=Ld,w.extendWith=ga,Su(w,w),w.add=W_,w.attempt=Wd,w.camelCase=zb,w.capitalize=$d,w.ceil=H_,w.clamp=Hb,w.clone=kw,w.cloneDeep=$w,w.cloneDeepWith=jw,w.cloneWith=Nw,w.conformsTo=Fw,w.deburr=jd,w.defaultTo=w_,w.divide=U_,w.endsWith=qb,w.eq=En,w.escape=Gb,w.escapeRegExp=Kb,w.every=ew,w.find=nw,w.findIndex=ld,w.findKey=vb,w.findLast=rw,w.findLastIndex=cd,w.findLastKey=mb,w.floor=B_,w.forEach=md,w.forEachRight=gd,w.forIn=gb,w.forInRight=yb,w.forOwn=wb,w.forOwnRight=bb,w.get=gu,w.gt=Ww,w.gte=Hw,w.has=Eb,w.hasIn=yu,w.head=dd,w.identity=zt,w.includes=uw,w.indexOf=r1,w.inRange=Ub,w.invoke=Tb,w.isArguments=Wr,w.isArray=Te,w.isArrayBuffer=Uw,w.isArrayLike=Ut,w.isArrayLikeObject=ct,w.isBoolean=Bw,w.isBuffer=pr,w.isDate=zw,w.isElement=qw,w.isEmpty=Gw,w.isEqual=Kw,w.isEqualWith=Yw,w.isError=vu,w.isFinite=Xw,w.isFunction=Xn,w.isInteger=Od,w.isLength=va,w.isMap=Td,w.isMatch=Vw,w.isMatchWith=Jw,w.isNaN=Zw,w.isNative=Qw,w.isNil=tb,w.isNull=eb,w.isNumber=Cd,w.isObject=tt,w.isObjectLike=at,w.isPlainObject=eo,w.isRegExp=mu,w.isSafeInteger=nb,w.isSet=Rd,w.isString=ma,w.isSymbol=Zt,w.isTypedArray=gi,w.isUndefined=rb,w.isWeakMap=ib,w.isWeakSet=ob,w.join=u1,w.kebabCase=Yb,w.last=dn,w.lastIndexOf=l1,w.lowerCase=Xb,w.lowerFirst=Vb,w.lt=ab,w.lte=sb,w.max=z_,w.maxBy=q_,w.mean=G_,w.meanBy=K_,w.min=Y_,w.minBy=X_,w.stubArray=xu,w.stubFalse=Ou,w.stubObject=D_,w.stubString=k_,w.stubTrue=N_,w.multiply=V_,w.nth=c1,w.noConflict=T_,w.noop=Eu,w.now=da,w.pad=Jb,w.padEnd=Zb,w.padStart=Qb,w.parseInt=e_,w.random=Bb,w.reduce=pw,w.reduceRight=hw,w.repeat=t_,w.replace=n_,w.result=Mb,w.round=J_,w.runInContext=A,w.sample=mw,w.size=ww,w.snakeCase=r_,w.some=bw,w.sortedIndex=g1,w.sortedIndexBy=y1,w.sortedIndexOf=w1,w.sortedLastIndex=b1,w.sortedLastIndexBy=_1,w.sortedLastIndexOf=S1,w.startCase=o_,w.startsWith=a_,w.subtract=Z_,w.sum=Q_,w.sumBy=eS,w.template=s_,w.times=$_,w.toFinite=Vn,w.toInteger=Re,w.toLength=Ad,w.toLower=u_,w.toNumber=pn,w.toSafeInteger=ub,w.toString=He,w.toUpper=l_,w.trim=c_,w.trimEnd=f_,w.trimStart=d_,w.truncate=p_,w.unescape=h_,w.uniqueId=F_,w.upperCase=v_,w.upperFirst=wu,w.each=md,w.eachRight=gd,w.first=dd,Su(w,function(){var t={};return In(w,function(i,s){qe.call(w.prototype,s)||(t[s]=i)}),t}(),{chain:!1}),w.VERSION=o,sn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){w[t].placeholder=w}),sn(["drop","take"],function(t,i){ke.prototype[t]=function(s){s=s===n?1:vt(Re(s),0);var c=this.__filtered__&&!i?new ke(this):this.clone();return c.__filtered__?c.__takeCount__=Ct(s,c.__takeCount__):c.__views__.push({size:Ct(s,X),type:t+(c.__dir__<0?"Right":"")}),c},ke.prototype[t+"Right"]=function(s){return this.reverse()[t](s).reverse()}}),sn(["filter","map","takeWhile"],function(t,i){var s=i+1,c=s==se||s==we;ke.prototype[t]=function(h){var b=this.clone();return b.__iteratees__.push({iteratee:he(h,3),type:s}),b.__filtered__=b.__filtered__||c,b}}),sn(["head","last"],function(t,i){var s="take"+(i?"Right":"");ke.prototype[t]=function(){return this[s](1).value()[0]}}),sn(["initial","tail"],function(t,i){var s="drop"+(i?"":"Right");ke.prototype[t]=function(){return this.__filtered__?new ke(this):this[s](1)}}),ke.prototype.compact=function(){return this.filter(zt)},ke.prototype.find=function(t){return this.filter(t).head()},ke.prototype.findLast=function(t){return this.reverse().find(t)},ke.prototype.invokeMap=Ae(function(t,i){return typeof t=="function"?new ke(this):this.map(function(s){return Yi(s,t,i)})}),ke.prototype.reject=function(t){return this.filter(ha(he(t)))},ke.prototype.slice=function(t,i){t=Re(t);var s=this;return s.__filtered__&&(t>0||i<0)?new ke(s):(t<0?s=s.takeRight(-t):t&&(s=s.drop(t)),i!==n&&(i=Re(i),s=i<0?s.dropRight(-i):s.take(i-t)),s)},ke.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},ke.prototype.toArray=function(){return this.take(X)},In(ke.prototype,function(t,i){var s=/^(?:filter|find|map|reject)|While$/.test(i),c=/^(?:head|last)$/.test(i),h=w[c?"take"+(i=="last"?"Right":""):i],b=c||/^find/.test(i);h&&(w.prototype[i]=function(){var x=this.__wrapped__,R=c?[1]:arguments,M=x instanceof ke,z=R[0],q=M||Te(x),K=function(De){var Ne=h.apply(w,ar([De],R));return c&&Z?Ne[0]:Ne};q&&s&&typeof z=="function"&&z.length!=1&&(M=q=!1);var Z=this.__chain__,re=!!this.__actions__.length,ve=b&&!Z,Pe=M&&!re;if(!b&&q){x=Pe?x:new ke(this);var me=t.apply(x,R);return me.__actions__.push({func:ca,args:[K],thisArg:n}),new ln(me,Z)}return ve&&Pe?t.apply(this,R):(me=this.thru(K),ve?c?me.value()[0]:me.value():me)})}),sn(["pop","push","shift","sort","splice","unshift"],function(t){var i=No[t],s=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",c=/^(?:pop|shift)$/.test(t);w.prototype[t]=function(){var h=arguments;if(c&&!this.__chain__){var b=this.value();return i.apply(Te(b)?b:[],h)}return this[s](function(x){return i.apply(Te(x)?x:[],h)})}}),In(ke.prototype,function(t,i){var s=w[i];if(s){var c=s.name+"";qe.call(di,c)||(di[c]=[]),di[c].push({name:i,func:s})}}),di[ra(n,D).name]=[{name:"wrapper",func:n}],ke.prototype.clone=h0,ke.prototype.reverse=v0,ke.prototype.value=m0,w.prototype.at=q1,w.prototype.chain=G1,w.prototype.commit=K1,w.prototype.next=Y1,w.prototype.plant=V1,w.prototype.reverse=J1,w.prototype.toJSON=w.prototype.valueOf=w.prototype.value=Z1,w.prototype.first=w.prototype.head,Hi&&(w.prototype[Hi]=X1),w},li=Kg();Lr?((Lr.exports=li)._=li,_s._=li):_t._=li}).call(zr)})(Qa,Qa.exports);var pt=Qa.exports;const Ml={FdSave:RE,FdWarningDanger:Kl,FdInfoCircle:OE,FdInfoBold:yl};var fc=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(fc||{}),Xr=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(Xr||{}),Oi=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(Oi||{});const rm={[Xr.PRIMARY]:{icon:"blue-500",button:"primary-dark"},[Xr.DANGER]:{icon:"red-500",button:"primary-dark"},[Xr.WARNING]:{icon:"yellow-400",button:"primary-dark"}},ol=({color:e=Xr.PRIMARY,variant:r="solid",children:n,autoFocus:o,...a})=>{const u=rm[e].button,l=r==="outlined"?`bg-transparent text-white border border-white hover:border-white hover:bg-white hover:text-${u}`:`text-white bg-${u} border border-${u} hover:border-white hover:bg-white hover:text-${u}`;return $.jsx("button",{autoFocus:o,className:Ot("w-28 rounded p-1.5 text-xs font-medium hover:font-bold focus:outline-none",l),...a,children:n})},oP=({name:e,color:r=Xr.PRIMARY,className:n="w-10 h-10"})=>{const o=Ml[e]||Ml.FdInfoCircle,a=`text-${rm[r].icon}`;return $.jsx(o,{className:Ot(n,a)})},aP=({id:e,title:r,message:n,icon:o,type:a,color:u,zIndex:l=3e3,views:f,width:d=520,hasOverlay:v=!0,onClose:g,onEdit:_})=>{const O=y=>{g({id:e,reason:y})};N.useEffect(()=>{function y(E){E.key==="Escape"&&O(Oi.CANCELED)}return window.addEventListener("keyup",y),()=>{window.removeEventListener("keyup",y)}},[]);const m=pt.merge(pt.values(f==null?void 0:f.toggles).flatMap(y=>y.value?y.warnings||[]:[]),f==null?void 0:f.tips),S=(y,E)=>{var I;if(!(f!=null&&f.toggles))return;const D=pt.cloneDeep(f);(I=D.toggles)!=null&&I[y]&&(D.toggles[y].value=E),_({id:e,views:D})};return go.createPortal($.jsx(Za,{appear:!0,show:!0,as:N.Fragment,children:$.jsx("div",{className:Ot("absolute inset-0 flex h-full w-full items-center justify-center overflow-y-auto",{"bg-black bg-opacity-80":v}),style:{zIndex:l},onClick:()=>O(Oi.CANCELED),children:$.jsx(Za.Child,{as:N.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:$.jsx("div",{"data-cy":"confirmation-modal-cy",className:"relative rounded-md border border-grey-200 bg-grey-500",style:{width:d},onClick:y=>y.stopPropagation(),children:$.jsxs("div",{className:"flex flex-col items-center gap-5 p-6 px-12",children:[o?$.jsx("div",{className:"flex items-center justify-center",children:$.jsx(oP,{name:o,color:u})}):null,$.jsx(sP,{condition:r,children:$.jsx("h4",{className:"w-full text-wrap text-lg font-bold leading-6 text-white text-center",children:r})}),$.jsx("p",{className:"w-full text-wrap text-center text-sm font-medium text-white",children:n}),$.jsx("div",{className:"text-xs text-white",children:pt.values(f==null?void 0:f.toggles).map(y=>$.jsx("div",{children:$.jsxs("label",{htmlFor:y.key,className:"flex items-center",children:[$.jsx(tm,{size:"xs",value:y.value,onChange:E=>S(y.key,E)}),$.jsx("span",{className:"ml-1",children:y.title})]})},y.key))}),$.jsx(uP,{warnings:m}),$.jsx("div",{className:"flex items-center gap-4 p-1",children:a===fc.CONFIRM?$.jsxs($.Fragment,{children:[$.jsx(ol,{autoFocus:!0,color:u,onClick:()=>O(Oi.CONFIRMED),children:"Confirm"}),$.jsx(ol,{color:u,variant:"outlined",onClick:()=>O(Oi.CANCELED),children:"Cancel"})]}):$.jsx(ol,{autoFocus:!0,onClick:()=>O(),children:"OK"})})]})})})})}),document.querySelector("body"))},sP=e=>e.condition?$.jsx($.Fragment,{children:e.children}):null,uP=e=>e.warnings?$.jsx(Za,{appear:!0,show:!!e.warnings.length,as:N.Fragment,children:$.jsx("div",{className:"flex flex-col gap-1 rounded-sm bg-grey-600 p-2 text-xs text-white",children:e.warnings.map((r,n)=>$.jsx(Za.Child,{as:N.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:$.jsxs("div",{className:"flex flex-1 items-center gap-1 rounded-sm px-2 py-1",children:[$.jsx(Kl,{className:Ot({"h-3 w-3":!0,"text-orange-400":r.type==="warning","text-red-400":r.type==="error","text-primary-dark":r.type==="info"},"mr-3")}),$.jsx("div",{className:"flex-1",children:r.message})]})},`modal-warnings-${n}`))})}):null;function lP(e,r){const n=N.useRef(!1);N.useEffect(()=>{if(n.current)return e();n.current=!0},r)}var al=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function sl(e,r,n,o){e.addEventListener?e.addEventListener(r,n,o):e.attachEvent&&e.attachEvent("on".concat(r),function(){n(window.event)})}function im(e,r){for(var n=r.slice(0,r.length-1),o=0;o<n.length;o++)n[o]=e[n[o].toLowerCase()];return n}function om(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");for(var r=e.split(","),n=r.lastIndexOf("");n>=0;)r[n-1]+=",",r.splice(n,1),n=r.lastIndexOf("");return r}function cP(e,r){for(var n=e.length>=r.length?e:r,o=e.length>=r.length?r:e,a=!0,u=0;u<n.length;u++)o.indexOf(n[u])===-1&&(a=!1);return a}var ho={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":al?173:189,"=":al?61:187,";":al?59:186,"'":222,"[":219,"]":221,"\\":220},Hn={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},Dl={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},xt={16:!1,18:!1,17:!1,91:!1},st={};for(var Da=1;Da<20;Da++)ho["f".concat(Da)]=111+Da;var Ve=[],fh=!1,am="all",sm=[],Ro=function(r){return ho[r.toLowerCase()]||Hn[r.toLowerCase()]||r.toUpperCase().charCodeAt(0)},fP=function(r){return Object.keys(ho).find(function(n){return ho[n]===r})},dP=function(r){return Object.keys(Hn).find(function(n){return Hn[n]===r})};function um(e){am=e||"all"}function vo(){return am||"all"}function pP(){return Ve.slice(0)}function hP(){return Ve.map(function(e){return fP(e)||dP(e)||String.fromCharCode(e)})}function vP(){var e=[];return Object.keys(st).forEach(function(r){st[r].forEach(function(n){var o=n.key,a=n.scope,u=n.mods,l=n.shortcut;e.push({scope:a,shortcut:l,mods:u,keys:o.split("+").map(function(f){return Ro(f)})})})}),e}function mP(e){var r=e.target||e.srcElement,n=r.tagName,o=!0;return(r.isContentEditable||(n==="INPUT"||n==="TEXTAREA"||n==="SELECT")&&!r.readOnly)&&(o=!1),o}function gP(e){return typeof e=="string"&&(e=Ro(e)),Ve.indexOf(e)!==-1}function yP(e,r){var n,o;e||(e=vo());for(var a in st)if(Object.prototype.hasOwnProperty.call(st,a))for(n=st[a],o=0;o<n.length;)n[o].scope===e?n.splice(o,1):o++;vo()===e&&um(r||"all")}function wP(e){var r=e.keyCode||e.which||e.charCode,n=Ve.indexOf(r);if(n>=0&&Ve.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&Ve.splice(0,Ve.length),(r===93||r===224)&&(r=91),r in xt){xt[r]=!1;for(var o in Hn)Hn[o]===r&&(Pn[o]=!1)}}function bP(e){if(typeof e>"u")Object.keys(st).forEach(function(l){return delete st[l]});else if(Array.isArray(e))e.forEach(function(l){l.key&&ul(l)});else if(typeof e=="object")e.key&&ul(e);else if(typeof e=="string"){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];var a=n[0],u=n[1];typeof a=="function"&&(u=a,a=""),ul({key:e,scope:a,method:u,splitKey:"+"})}}var ul=function(r){var n=r.key,o=r.scope,a=r.method,u=r.splitKey,l=u===void 0?"+":u,f=om(n);f.forEach(function(d){var v=d.split(l),g=v.length,_=v[g-1],O=_==="*"?"*":Ro(_);if(st[O]){o||(o=vo());var m=g>1?im(Hn,v):[];st[O]=st[O].filter(function(S){var y=a?S.method===a:!0;return!(y&&S.scope===o&&cP(S.mods,m))})}})};function dh(e,r,n,o){if(r.element===o){var a;if(r.scope===n||r.scope==="all"){a=r.mods.length>0;for(var u in xt)Object.prototype.hasOwnProperty.call(xt,u)&&(!xt[u]&&r.mods.indexOf(+u)>-1||xt[u]&&r.mods.indexOf(+u)===-1)&&(a=!1);(r.mods.length===0&&!xt[16]&&!xt[18]&&!xt[17]&&!xt[91]||a||r.shortcut==="*")&&(r.keys=[],r.keys=r.keys.concat(Ve),r.method(e,r)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}}function ph(e,r){var n=st["*"],o=e.keyCode||e.which||e.charCode;if(Pn.filter.call(this,e)){if((o===93||o===224)&&(o=91),Ve.indexOf(o)===-1&&o!==229&&Ve.push(o),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(S){var y=Dl[S];e[S]&&Ve.indexOf(y)===-1?Ve.push(y):!e[S]&&Ve.indexOf(y)>-1?Ve.splice(Ve.indexOf(y),1):S==="metaKey"&&e[S]&&Ve.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(Ve=Ve.slice(Ve.indexOf(y))))}),o in xt){xt[o]=!0;for(var a in Hn)Hn[a]===o&&(Pn[a]=!0);if(!n)return}for(var u in xt)Object.prototype.hasOwnProperty.call(xt,u)&&(xt[u]=e[Dl[u]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Ve.indexOf(17)===-1&&Ve.push(17),Ve.indexOf(18)===-1&&Ve.push(18),xt[17]=!0,xt[18]=!0);var l=vo();if(n)for(var f=0;f<n.length;f++)n[f].scope===l&&(e.type==="keydown"&&n[f].keydown||e.type==="keyup"&&n[f].keyup)&&dh(e,n[f],l,r);if(o in st){for(var d=0;d<st[o].length;d++)if((e.type==="keydown"&&st[o][d].keydown||e.type==="keyup"&&st[o][d].keyup)&&st[o][d].key){for(var v=st[o][d],g=v.splitKey,_=v.key.split(g),O=[],m=0;m<_.length;m++)O.push(Ro(_[m]));O.sort().join("")===Ve.sort().join("")&&dh(e,v,l,r)}}}}function _P(e){return sm.indexOf(e)>-1}function Pn(e,r,n){Ve=[];var o=om(e),a=[],u="all",l=document,f=0,d=!1,v=!0,g="+",_=!1;for(n===void 0&&typeof r=="function"&&(n=r),Object.prototype.toString.call(r)==="[object Object]"&&(r.scope&&(u=r.scope),r.element&&(l=r.element),r.keyup&&(d=r.keyup),r.keydown!==void 0&&(v=r.keydown),r.capture!==void 0&&(_=r.capture),typeof r.splitKey=="string"&&(g=r.splitKey)),typeof r=="string"&&(u=r);f<o.length;f++)e=o[f].split(g),a=[],e.length>1&&(a=im(Hn,e)),e=e[e.length-1],e=e==="*"?"*":Ro(e),e in st||(st[e]=[]),st[e].push({keyup:d,keydown:v,scope:u,mods:a,shortcut:o[f],method:n,key:o[f],splitKey:g,element:l});typeof l<"u"&&!_P(l)&&window&&(sm.push(l),sl(l,"keydown",function(O){ph(O,l)},_),fh||(fh=!0,sl(window,"focus",function(){Ve=[]},_)),sl(l,"keyup",function(O){ph(O,l),wP(O)},_))}function SP(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(st).forEach(function(n){var o=st[n].filter(function(a){return a.scope===r&&a.shortcut===e});o.forEach(function(a){a&&a.method&&a.method()})})}var ll={getPressedKeyString:hP,setScope:um,getScope:vo,deleteScope:yP,getPressedKeyCodes:pP,getAllKeyCodes:vP,isPressed:gP,filter:mP,trigger:SP,unbind:bP,keyMap:ho,modifier:Hn,modifierMap:Dl};for(var cl in ll)Object.prototype.hasOwnProperty.call(ll,cl)&&(Pn[cl]=ll[cl]);if(typeof window<"u"){var EP=window.hotkeys;Pn.noConflict=function(e){return e&&window.hotkeys===Pn&&(window.hotkeys=EP),Pn},window.hotkeys=Pn}Pn.filter=()=>!0;function xP(e,r,n,o){n instanceof Array&&(o=n,n=void 0),o=o||[],n=n||{};const{preventDefault:a=!0}=n,u=N.useCallback((f,d)=>{a&&f.preventDefault(),setTimeout(()=>r(f,d))},o),l=()=>{Pn.unbind(e,u)};N.useEffect(()=>(Pn(e,n,u),l),[e,n,u])}const OP=e=>{const r=N.useRef(null);return N.useEffect(()=>{const n=o=>{r.current&&!r.current.contains(o.target)&&e(o)};return document.addEventListener("click",n,!0),()=>{document.removeEventListener("click",n,!0)}},[e]),r};function TP(e){const r=N.useRef();return N.useEffect(()=>{r.current=e},[e]),r.current}function CP(e){const r=N.useRef(e);return N.useEffect(()=>{r.current=e},[e]),r}function RP(e){const r=N.useRef(null);return N.useEffect(()=>{e&&(typeof e=="function"?e(r.current):e.current=r.current)}),r}function PP(e){const[r,n]=N.useState(e),o=(u,l)=>{n(f=>({...f,features:{...f.features,[u]:{enabled:l}}}))},a=N.useCallback((...u)=>u.every(l=>{var f;return(f=r.features[l])==null?void 0:f.enabled}),[r.features]);return{setFeature:o,isFeatureEnabled:a}}const lm=N.createContext(""),AP=e=>$.jsx(lm.Provider,{value:e.value,children:e.children}),IP=()=>{const e=N.useContext(lm);if(typeof e!="string")throw new Error("Error while calling useIdentity! Context has incorrect type (expected string)");return e};function LP(e){const[r,n]=N.useState(e),o=N.useMemo(()=>MP(r,n),[]);return{state:r,actions:{...o,set:a=>{n(typeof a=="function"?a:u=>({...u,...a}))}}}}function MP(e,r=()=>{}){return Object.keys(e).reduce((o,a)=>({...o,[`set${pt.upperFirst(a)}`]:u=>r(l=>({...l,[a]:u}))}),{})}const DP=(e,r,n={})=>{n={timeout:200,...n};const o=N.useRef(),a=()=>{o.current&&(clearTimeout(o.current),o.current=null)};return N.useCallback((u,...l)=>{a(),r&&u.detail===1&&(o.current=setTimeout(()=>{r(u,...l)},n.timeout)),u.detail%2===0&&e(u,...l)},[r,e,n.timeout])};function tr(e){return typeof e=="function"}function cm(e){var r=function(o){Error.call(o),o.stack=new Error().stack},n=e(r);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var fl=cm(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
202
+ }`;var Pe=Ud(function(){return Fe(b,re+"return "+K).apply(n,x)});if(Pe.source=K,mu(Pe))throw Pe;return Pe}function c_(t){return He(t).toLowerCase()}function f_(t){return He(t).toUpperCase()}function d_(t,i,s){if(t=He(t),t&&(s||i===n))return Vc(t);if(!t||!(i=Zt(i)))return t;var c=_n(t),h=_n(i),b=Zc(c,h),x=Jc(c,h)+1;return pr(c,b,x).join("")}function p_(t,i,s){if(t=He(t),t&&(s||i===n))return t.slice(0,ef(t)+1);if(!t||!(i=Zt(i)))return t;var c=_n(t),h=Jc(c,_n(i))+1;return pr(c,0,h).join("")}function h_(t,i,s){if(t=He(t),t&&(s||i===n))return t.replace(F,"");if(!t||!(i=Zt(i)))return t;var c=_n(t),h=Zc(c,_n(i));return pr(c,h).join("")}function v_(t,i){var s=ee,c=ge;if(tt(i)){var h="separator"in i?i.separator:h;s="length"in i?Re(i.length):s,c="omission"in i?Zt(i.omission):c}t=He(t);var b=t.length;if(ui(t)){var x=_n(t);b=x.length}if(s>=b)return t;var R=s-li(c);if(R<1)return c;var M=x?pr(x,0,R).join(""):t.slice(0,R);if(h===n)return M+c;if(x&&(R+=M.length-R),gu(h)){if(t.slice(R).search(h)){var z,q=M;for(h.global||(h=Ms(h.source,He(ot.exec(h))+"g")),h.lastIndex=0;z=h.exec(q);)var K=z.index;M=M.slice(0,K===n?R:K)}}else if(t.indexOf(Zt(h),R)!=R){var J=M.lastIndexOf(h);J>-1&&(M=M.slice(0,J))}return M+c}function m_(t){return t=He(t),t&&Ir.test(t)?t.replace(ii,qg):t}var g_=mi(function(t,i,s){return t+(s?" ":"")+i.toUpperCase()}),bu=Bf("toUpperCase");function Hd(t,i,s){return t=He(t),i=s?n:i,i===n?Wg(t)?Yg(t):Ig(t):t.match(i)||[]}var Ud=Ae(function(t,i){try{return Xt(t,n,i)}catch(s){return mu(s)?s:new Ee(s)}}),y_=Yn(function(t,i){return sn(i,function(s){s=Mn(s),Gn(t,s,hu(t[s],t))}),t});function w_(t){var i=t==null?0:t.length,s=he();return t=i?et(t,function(c){if(typeof c[1]!="function")throw new un(l);return[s(c[0]),c[1]]}):[],Ae(function(c){for(var h=-1;++h<i;){var b=t[h];if(Xt(b[0],this,c))return Xt(b[1],this,c)}})}function b_(t){return q0(cn(t,_))}function _u(t){return function(){return t}}function __(t,i){return t==null||t!==t?i:t}var S_=qf(),E_=qf(!0);function zt(t){return t}function Su(t){return _f(typeof t=="function"?t:cn(t,_))}function x_(t){return Ef(cn(t,_))}function O_(t,i){return xf(t,cn(i,_))}var T_=Ae(function(t,i){return function(s){return Xi(s,t,i)}}),C_=Ae(function(t,i){return function(s){return Xi(t,s,i)}});function Eu(t,i,s){var c=yt(i),h=Qo(i,c);s==null&&!(tt(i)&&(h.length||!c.length))&&(s=i,i=t,t=this,h=Qo(i,yt(i)));var b=!(tt(s)&&"chain"in s)||!!s.chain,x=Vn(t);return sn(h,function(R){var M=i[R];t[R]=M,x&&(t.prototype[R]=function(){var z=this.__chain__;if(b||z){var q=t(this.__wrapped__),K=q.__actions__=Ht(this.__actions__);return K.push({func:M,args:arguments,thisArg:t}),q.__chain__=z,q}return M.apply(t,sr([this.value()],arguments))})}),t}function R_(){return _t._===this&&(_t._=e0),this}function xu(){}function P_(t){return t=Re(t),Ae(function(i){return Of(i,t)})}var A_=tu(et),I_=tu(qc),L_=tu(Ts);function Bd(t){return uu(t)?Cs(Mn(t)):uy(t)}function M_(t){return function(i){return t==null?n:Fr(t,i)}}var D_=Kf(),k_=Kf(!0);function Ou(){return[]}function Tu(){return!1}function N_(){return{}}function $_(){return""}function j_(){return!0}function F_(t,i){if(t=Re(t),t<1||t>We)return[];var s=X,c=Ct(t,X);i=he(i),t-=X;for(var h=As(c,i);++s<t;)i(s);return h}function W_(t){return Te(t)?et(t,Mn):Jt(t)?[t]:Ht(ld(He(t)))}function H_(t){var i=++Jg;return He(t)+i}var U_=oa(function(t,i){return t+i},0),B_=nu("ceil"),z_=oa(function(t,i){return t/i},1),q_=nu("floor");function G_(t){return t&&t.length?Jo(t,zt,Hs):n}function K_(t,i){return t&&t.length?Jo(t,he(i,2),Hs):n}function Y_(t){return Yc(t,zt)}function X_(t,i){return Yc(t,he(i,2))}function V_(t){return t&&t.length?Jo(t,zt,qs):n}function Z_(t,i){return t&&t.length?Jo(t,he(i,2),qs):n}var J_=oa(function(t,i){return t*i},1),Q_=nu("round"),eS=oa(function(t,i){return t-i},0);function tS(t){return t&&t.length?Ps(t,zt):0}function nS(t,i){return t&&t.length?Ps(t,he(i,2)):0}return w.after=xw,w.ary=bd,w.assign=fb,w.assignIn=Dd,w.assignInWith=ya,w.assignWith=db,w.at=pb,w.before=_d,w.bind=hu,w.bindAll=y_,w.bindKey=Sd,w.castArray=Nw,w.chain=gd,w.chunk=qy,w.compact=Gy,w.concat=Ky,w.cond=w_,w.conforms=b_,w.constant=_u,w.countBy=tw,w.create=hb,w.curry=Ed,w.curryRight=xd,w.debounce=Od,w.defaults=vb,w.defaultsDeep=mb,w.defer=Ow,w.delay=Tw,w.difference=Yy,w.differenceBy=Xy,w.differenceWith=Vy,w.drop=Zy,w.dropRight=Jy,w.dropRightWhile=Qy,w.dropWhile=e1,w.fill=t1,w.filter=rw,w.flatMap=aw,w.flatMapDeep=sw,w.flatMapDepth=uw,w.flatten=pd,w.flattenDeep=n1,w.flattenDepth=r1,w.flip=Cw,w.flow=S_,w.flowRight=E_,w.fromPairs=i1,w.functions=Eb,w.functionsIn=xb,w.groupBy=lw,w.initial=a1,w.intersection=s1,w.intersectionBy=u1,w.intersectionWith=l1,w.invert=Tb,w.invertBy=Cb,w.invokeMap=fw,w.iteratee=Su,w.keyBy=dw,w.keys=yt,w.keysIn=Bt,w.map=da,w.mapKeys=Pb,w.mapValues=Ab,w.matches=x_,w.matchesProperty=O_,w.memoize=ha,w.merge=Ib,w.mergeWith=kd,w.method=T_,w.methodOf=C_,w.mixin=Eu,w.negate=va,w.nthArg=P_,w.omit=Lb,w.omitBy=Mb,w.once=Rw,w.orderBy=pw,w.over=A_,w.overArgs=Pw,w.overEvery=I_,w.overSome=L_,w.partial=vu,w.partialRight=Td,w.partition=hw,w.pick=Db,w.pickBy=Nd,w.property=Bd,w.propertyOf=M_,w.pull=p1,w.pullAll=vd,w.pullAllBy=h1,w.pullAllWith=v1,w.pullAt=m1,w.range=D_,w.rangeRight=k_,w.rearg=Aw,w.reject=gw,w.remove=g1,w.rest=Iw,w.reverse=du,w.sampleSize=ww,w.set=Nb,w.setWith=$b,w.shuffle=bw,w.slice=y1,w.sortBy=Ew,w.sortedUniq=O1,w.sortedUniqBy=T1,w.split=a_,w.spread=Lw,w.tail=C1,w.take=R1,w.takeRight=P1,w.takeRightWhile=A1,w.takeWhile=I1,w.tap=G1,w.throttle=Mw,w.thru=fa,w.toArray=Id,w.toPairs=$d,w.toPairsIn=jd,w.toPath=W_,w.toPlainObject=Md,w.transform=jb,w.unary=Dw,w.union=L1,w.unionBy=M1,w.unionWith=D1,w.uniq=k1,w.uniqBy=N1,w.uniqWith=$1,w.unset=Fb,w.unzip=pu,w.unzipWith=md,w.update=Wb,w.updateWith=Hb,w.values=wi,w.valuesIn=Ub,w.without=j1,w.words=Hd,w.wrap=kw,w.xor=F1,w.xorBy=W1,w.xorWith=H1,w.zip=U1,w.zipObject=B1,w.zipObjectDeep=z1,w.zipWith=q1,w.entries=$d,w.entriesIn=jd,w.extend=Dd,w.extendWith=ya,Eu(w,w),w.add=U_,w.attempt=Ud,w.camelCase=Gb,w.capitalize=Fd,w.ceil=B_,w.clamp=Bb,w.clone=$w,w.cloneDeep=Fw,w.cloneDeepWith=Ww,w.cloneWith=jw,w.conformsTo=Hw,w.deburr=Wd,w.defaultTo=__,w.divide=z_,w.endsWith=Kb,w.eq=En,w.escape=Yb,w.escapeRegExp=Xb,w.every=nw,w.find=iw,w.findIndex=fd,w.findKey=gb,w.findLast=ow,w.findLastIndex=dd,w.findLastKey=yb,w.floor=q_,w.forEach=yd,w.forEachRight=wd,w.forIn=wb,w.forInRight=bb,w.forOwn=_b,w.forOwnRight=Sb,w.get=yu,w.gt=Uw,w.gte=Bw,w.has=Ob,w.hasIn=wu,w.head=hd,w.identity=zt,w.includes=cw,w.indexOf=o1,w.inRange=zb,w.invoke=Rb,w.isArguments=Ur,w.isArray=Te,w.isArrayBuffer=zw,w.isArrayLike=Ut,w.isArrayLikeObject=ct,w.isBoolean=qw,w.isBuffer=hr,w.isDate=Gw,w.isElement=Kw,w.isEmpty=Yw,w.isEqual=Xw,w.isEqualWith=Vw,w.isError=mu,w.isFinite=Zw,w.isFunction=Vn,w.isInteger=Cd,w.isLength=ma,w.isMap=Rd,w.isMatch=Jw,w.isMatchWith=Qw,w.isNaN=eb,w.isNative=tb,w.isNil=rb,w.isNull=nb,w.isNumber=Pd,w.isObject=tt,w.isObjectLike=at,w.isPlainObject=to,w.isRegExp=gu,w.isSafeInteger=ib,w.isSet=Ad,w.isString=ga,w.isSymbol=Jt,w.isTypedArray=yi,w.isUndefined=ob,w.isWeakMap=ab,w.isWeakSet=sb,w.join=c1,w.kebabCase=Vb,w.last=dn,w.lastIndexOf=f1,w.lowerCase=Zb,w.lowerFirst=Jb,w.lt=ub,w.lte=lb,w.max=G_,w.maxBy=K_,w.mean=Y_,w.meanBy=X_,w.min=V_,w.minBy=Z_,w.stubArray=Ou,w.stubFalse=Tu,w.stubObject=N_,w.stubString=$_,w.stubTrue=j_,w.multiply=J_,w.nth=d1,w.noConflict=R_,w.noop=xu,w.now=pa,w.pad=Qb,w.padEnd=e_,w.padStart=t_,w.parseInt=n_,w.random=qb,w.reduce=vw,w.reduceRight=mw,w.repeat=r_,w.replace=i_,w.result=kb,w.round=Q_,w.runInContext=A,w.sample=yw,w.size=_w,w.snakeCase=o_,w.some=Sw,w.sortedIndex=w1,w.sortedIndexBy=b1,w.sortedIndexOf=_1,w.sortedLastIndex=S1,w.sortedLastIndexBy=E1,w.sortedLastIndexOf=x1,w.startCase=s_,w.startsWith=u_,w.subtract=eS,w.sum=tS,w.sumBy=nS,w.template=l_,w.times=F_,w.toFinite=Zn,w.toInteger=Re,w.toLength=Ld,w.toLower=c_,w.toNumber=pn,w.toSafeInteger=cb,w.toString=He,w.toUpper=f_,w.trim=d_,w.trimEnd=p_,w.trimStart=h_,w.truncate=v_,w.unescape=m_,w.uniqueId=H_,w.upperCase=g_,w.upperFirst=bu,w.each=yd,w.eachRight=wd,w.first=hd,Eu(w,function(){var t={};return In(w,function(i,s){ze.call(w.prototype,s)||(t[s]=i)}),t}(),{chain:!1}),w.VERSION=o,sn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){w[t].placeholder=w}),sn(["drop","take"],function(t,i){ke.prototype[t]=function(s){s=s===n?1:vt(Re(s),0);var c=this.__filtered__&&!i?new ke(this):this.clone();return c.__filtered__?c.__takeCount__=Ct(s,c.__takeCount__):c.__views__.push({size:Ct(s,X),type:t+(c.__dir__<0?"Right":"")}),c},ke.prototype[t+"Right"]=function(s){return this.reverse()[t](s).reverse()}}),sn(["filter","map","takeWhile"],function(t,i){var s=i+1,c=s==se||s==we;ke.prototype[t]=function(h){var b=this.clone();return b.__iteratees__.push({iteratee:he(h,3),type:s}),b.__filtered__=b.__filtered__||c,b}}),sn(["head","last"],function(t,i){var s="take"+(i?"Right":"");ke.prototype[t]=function(){return this[s](1).value()[0]}}),sn(["initial","tail"],function(t,i){var s="drop"+(i?"":"Right");ke.prototype[t]=function(){return this.__filtered__?new ke(this):this[s](1)}}),ke.prototype.compact=function(){return this.filter(zt)},ke.prototype.find=function(t){return this.filter(t).head()},ke.prototype.findLast=function(t){return this.reverse().find(t)},ke.prototype.invokeMap=Ae(function(t,i){return typeof t=="function"?new ke(this):this.map(function(s){return Xi(s,t,i)})}),ke.prototype.reject=function(t){return this.filter(va(he(t)))},ke.prototype.slice=function(t,i){t=Re(t);var s=this;return s.__filtered__&&(t>0||i<0)?new ke(s):(t<0?s=s.takeRight(-t):t&&(s=s.drop(t)),i!==n&&(i=Re(i),s=i<0?s.dropRight(-i):s.take(i-t)),s)},ke.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},ke.prototype.toArray=function(){return this.take(X)},In(ke.prototype,function(t,i){var s=/^(?:filter|find|map|reject)|While$/.test(i),c=/^(?:head|last)$/.test(i),h=w[c?"take"+(i=="last"?"Right":""):i],b=c||/^find/.test(i);h&&(w.prototype[i]=function(){var x=this.__wrapped__,R=c?[1]:arguments,M=x instanceof ke,z=R[0],q=M||Te(x),K=function(De){var Ne=h.apply(w,sr([De],R));return c&&J?Ne[0]:Ne};q&&s&&typeof z=="function"&&z.length!=1&&(M=q=!1);var J=this.__chain__,re=!!this.__actions__.length,ve=b&&!J,Pe=M&&!re;if(!b&&q){x=Pe?x:new ke(this);var me=t.apply(x,R);return me.__actions__.push({func:fa,args:[K],thisArg:n}),new ln(me,J)}return ve&&Pe?t.apply(this,R):(me=this.thru(K),ve?c?me.value()[0]:me.value():me)})}),sn(["pop","push","shift","sort","splice","unshift"],function(t){var i=$o[t],s=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",c=/^(?:pop|shift)$/.test(t);w.prototype[t]=function(){var h=arguments;if(c&&!this.__chain__){var b=this.value();return i.apply(Te(b)?b:[],h)}return this[s](function(x){return i.apply(Te(x)?x:[],h)})}}),In(ke.prototype,function(t,i){var s=w[i];if(s){var c=s.name+"";ze.call(pi,c)||(pi[c]=[]),pi[c].push({name:i,func:s})}}),pi[ia(n,D).name]=[{name:"wrapper",func:n}],ke.prototype.clone=m0,ke.prototype.reverse=g0,ke.prototype.value=y0,w.prototype.at=K1,w.prototype.chain=Y1,w.prototype.commit=X1,w.prototype.next=V1,w.prototype.plant=J1,w.prototype.reverse=Q1,w.prototype.toJSON=w.prototype.valueOf=w.prototype.value=ew,w.prototype.first=w.prototype.head,Ui&&(w.prototype[Ui]=Z1),w},ci=Xg();Dr?((Dr.exports=ci)._=ci,Ss._=ci):_t._=ci}).call(Gr)})(es,es.exports);var pt=es.exports;const Dl={FdSave:AE,FdWarningDanger:Yl,FdInfoCircle:CE,FdInfoBold:wl};var dc=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(dc||{}),Zr=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(Zr||{}),Ti=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(Ti||{});const am={[Zr.PRIMARY]:{icon:"blue-500",button:"primary-dark"},[Zr.DANGER]:{icon:"red-500",button:"primary-dark"},[Zr.WARNING]:{icon:"yellow-400",button:"primary-dark"}},al=({color:e=Zr.PRIMARY,variant:r="solid",children:n,autoFocus:o,...a})=>{const u=am[e].button,l=r==="outlined"?`bg-transparent text-white border border-white hover:border-white hover:bg-white hover:text-${u}`:`text-white bg-${u} border border-${u} hover:border-white hover:bg-white hover:text-${u}`;return $.jsx("button",{autoFocus:o,className:Ot("w-28 rounded p-1.5 text-xs font-medium hover:font-bold focus:outline-none",l),...a,children:n})},sP=({name:e,color:r=Zr.PRIMARY,className:n="w-10 h-10"})=>{const o=Dl[e]||Dl.FdInfoCircle,a=`text-${am[r].icon}`;return $.jsx(o,{className:Ot(n,a)})},uP=({id:e,title:r,message:n,icon:o,type:a,color:u,zIndex:l=3e3,views:f,width:d=520,hasOverlay:v=!0,onClose:g,onEdit:_})=>{const O=y=>{g({id:e,reason:y})};N.useEffect(()=>{function y(E){E.key==="Escape"&&O(Ti.CANCELED)}return window.addEventListener("keyup",y),()=>{window.removeEventListener("keyup",y)}},[]);const m=pt.merge(pt.values(f==null?void 0:f.toggles).flatMap(y=>y.value?y.warnings||[]:[]),f==null?void 0:f.tips),S=(y,E)=>{var I;if(!(f!=null&&f.toggles))return;const D=pt.cloneDeep(f);(I=D.toggles)!=null&&I[y]&&(D.toggles[y].value=E),_({id:e,views:D})};return yo.createPortal($.jsx(Qa,{appear:!0,show:!0,as:N.Fragment,children:$.jsx("div",{className:Ot("absolute inset-0 flex h-full w-full items-center justify-center overflow-y-auto",{"bg-black bg-opacity-80":v}),style:{zIndex:l},onClick:()=>O(Ti.CANCELED),children:$.jsx(Qa.Child,{as:N.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:$.jsx("div",{"data-cy":"confirmation-modal-cy",className:"relative rounded-md border border-grey-200 bg-grey-500",style:{width:d},onClick:y=>y.stopPropagation(),children:$.jsxs("div",{className:"flex flex-col items-center gap-5 p-6 px-12",children:[o?$.jsx("div",{className:"flex items-center justify-center",children:$.jsx(sP,{name:o,color:u})}):null,$.jsx(lP,{condition:r,children:$.jsx("h4",{className:"w-full text-wrap text-lg font-bold leading-6 text-white text-center",children:r})}),$.jsx("p",{className:"w-full text-wrap text-center text-sm font-medium text-white",children:n}),$.jsx("div",{className:"text-xs text-white",children:pt.values(f==null?void 0:f.toggles).map(y=>$.jsx("div",{children:$.jsxs("label",{htmlFor:y.key,className:"flex items-center",children:[$.jsx(im,{size:"xs",value:y.value,onChange:E=>S(y.key,E)}),$.jsx("span",{className:"ml-1",children:y.title})]})},y.key))}),$.jsx(cP,{warnings:m}),$.jsx("div",{className:"flex items-center gap-4 p-1",children:a===dc.CONFIRM?$.jsxs($.Fragment,{children:[$.jsx(al,{autoFocus:!0,color:u,onClick:()=>O(Ti.CONFIRMED),children:"Confirm"}),$.jsx(al,{color:u,variant:"outlined",onClick:()=>O(Ti.CANCELED),children:"Cancel"})]}):$.jsx(al,{autoFocus:!0,onClick:()=>O(),children:"OK"})})]})})})})}),document.querySelector("body"))},lP=e=>e.condition?$.jsx($.Fragment,{children:e.children}):null,cP=e=>e.warnings?$.jsx(Qa,{appear:!0,show:!!e.warnings.length,as:N.Fragment,children:$.jsx("div",{className:"flex flex-col gap-1 rounded-sm bg-grey-600 p-2 text-xs text-white",children:e.warnings.map((r,n)=>$.jsx(Qa.Child,{as:N.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:$.jsxs("div",{className:"flex flex-1 items-center gap-1 rounded-sm px-2 py-1",children:[$.jsx(Yl,{className:Ot({"h-3 w-3":!0,"text-orange-400":r.type==="warning","text-red-400":r.type==="error","text-primary-dark":r.type==="info"},"mr-3")}),$.jsx("div",{className:"flex-1",children:r.message})]})},`modal-warnings-${n}`))})}):null;function fP(e,r){const n=N.useRef(!1);N.useEffect(()=>{if(n.current)return e();n.current=!0},r)}var sl=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function ul(e,r,n,o){e.addEventListener?e.addEventListener(r,n,o):e.attachEvent&&e.attachEvent("on".concat(r),function(){n(window.event)})}function sm(e,r){for(var n=r.slice(0,r.length-1),o=0;o<n.length;o++)n[o]=e[n[o].toLowerCase()];return n}function um(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");for(var r=e.split(","),n=r.lastIndexOf("");n>=0;)r[n-1]+=",",r.splice(n,1),n=r.lastIndexOf("");return r}function dP(e,r){for(var n=e.length>=r.length?e:r,o=e.length>=r.length?r:e,a=!0,u=0;u<n.length;u++)o.indexOf(n[u])===-1&&(a=!1);return a}var vo={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":sl?173:189,"=":sl?61:187,";":sl?59:186,"'":222,"[":219,"]":221,"\\":220},Hn={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},kl={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},xt={16:!1,18:!1,17:!1,91:!1},st={};for(var ka=1;ka<20;ka++)vo["f".concat(ka)]=111+ka;var Ve=[],ph=!1,lm="all",cm=[],Po=function(r){return vo[r.toLowerCase()]||Hn[r.toLowerCase()]||r.toUpperCase().charCodeAt(0)},pP=function(r){return Object.keys(vo).find(function(n){return vo[n]===r})},hP=function(r){return Object.keys(Hn).find(function(n){return Hn[n]===r})};function fm(e){lm=e||"all"}function mo(){return lm||"all"}function vP(){return Ve.slice(0)}function mP(){return Ve.map(function(e){return pP(e)||hP(e)||String.fromCharCode(e)})}function gP(){var e=[];return Object.keys(st).forEach(function(r){st[r].forEach(function(n){var o=n.key,a=n.scope,u=n.mods,l=n.shortcut;e.push({scope:a,shortcut:l,mods:u,keys:o.split("+").map(function(f){return Po(f)})})})}),e}function yP(e){var r=e.target||e.srcElement,n=r.tagName,o=!0;return(r.isContentEditable||(n==="INPUT"||n==="TEXTAREA"||n==="SELECT")&&!r.readOnly)&&(o=!1),o}function wP(e){return typeof e=="string"&&(e=Po(e)),Ve.indexOf(e)!==-1}function bP(e,r){var n,o;e||(e=mo());for(var a in st)if(Object.prototype.hasOwnProperty.call(st,a))for(n=st[a],o=0;o<n.length;)n[o].scope===e?n.splice(o,1):o++;mo()===e&&fm(r||"all")}function _P(e){var r=e.keyCode||e.which||e.charCode,n=Ve.indexOf(r);if(n>=0&&Ve.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&Ve.splice(0,Ve.length),(r===93||r===224)&&(r=91),r in xt){xt[r]=!1;for(var o in Hn)Hn[o]===r&&(Pn[o]=!1)}}function SP(e){if(typeof e>"u")Object.keys(st).forEach(function(l){return delete st[l]});else if(Array.isArray(e))e.forEach(function(l){l.key&&ll(l)});else if(typeof e=="object")e.key&&ll(e);else if(typeof e=="string"){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];var a=n[0],u=n[1];typeof a=="function"&&(u=a,a=""),ll({key:e,scope:a,method:u,splitKey:"+"})}}var ll=function(r){var n=r.key,o=r.scope,a=r.method,u=r.splitKey,l=u===void 0?"+":u,f=um(n);f.forEach(function(d){var v=d.split(l),g=v.length,_=v[g-1],O=_==="*"?"*":Po(_);if(st[O]){o||(o=mo());var m=g>1?sm(Hn,v):[];st[O]=st[O].filter(function(S){var y=a?S.method===a:!0;return!(y&&S.scope===o&&dP(S.mods,m))})}})};function hh(e,r,n,o){if(r.element===o){var a;if(r.scope===n||r.scope==="all"){a=r.mods.length>0;for(var u in xt)Object.prototype.hasOwnProperty.call(xt,u)&&(!xt[u]&&r.mods.indexOf(+u)>-1||xt[u]&&r.mods.indexOf(+u)===-1)&&(a=!1);(r.mods.length===0&&!xt[16]&&!xt[18]&&!xt[17]&&!xt[91]||a||r.shortcut==="*")&&(r.keys=[],r.keys=r.keys.concat(Ve),r.method(e,r)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}}function vh(e,r){var n=st["*"],o=e.keyCode||e.which||e.charCode;if(Pn.filter.call(this,e)){if((o===93||o===224)&&(o=91),Ve.indexOf(o)===-1&&o!==229&&Ve.push(o),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(S){var y=kl[S];e[S]&&Ve.indexOf(y)===-1?Ve.push(y):!e[S]&&Ve.indexOf(y)>-1?Ve.splice(Ve.indexOf(y),1):S==="metaKey"&&e[S]&&Ve.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(Ve=Ve.slice(Ve.indexOf(y))))}),o in xt){xt[o]=!0;for(var a in Hn)Hn[a]===o&&(Pn[a]=!0);if(!n)return}for(var u in xt)Object.prototype.hasOwnProperty.call(xt,u)&&(xt[u]=e[kl[u]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Ve.indexOf(17)===-1&&Ve.push(17),Ve.indexOf(18)===-1&&Ve.push(18),xt[17]=!0,xt[18]=!0);var l=mo();if(n)for(var f=0;f<n.length;f++)n[f].scope===l&&(e.type==="keydown"&&n[f].keydown||e.type==="keyup"&&n[f].keyup)&&hh(e,n[f],l,r);if(o in st){for(var d=0;d<st[o].length;d++)if((e.type==="keydown"&&st[o][d].keydown||e.type==="keyup"&&st[o][d].keyup)&&st[o][d].key){for(var v=st[o][d],g=v.splitKey,_=v.key.split(g),O=[],m=0;m<_.length;m++)O.push(Po(_[m]));O.sort().join("")===Ve.sort().join("")&&hh(e,v,l,r)}}}}function EP(e){return cm.indexOf(e)>-1}function Pn(e,r,n){Ve=[];var o=um(e),a=[],u="all",l=document,f=0,d=!1,v=!0,g="+",_=!1;for(n===void 0&&typeof r=="function"&&(n=r),Object.prototype.toString.call(r)==="[object Object]"&&(r.scope&&(u=r.scope),r.element&&(l=r.element),r.keyup&&(d=r.keyup),r.keydown!==void 0&&(v=r.keydown),r.capture!==void 0&&(_=r.capture),typeof r.splitKey=="string"&&(g=r.splitKey)),typeof r=="string"&&(u=r);f<o.length;f++)e=o[f].split(g),a=[],e.length>1&&(a=sm(Hn,e)),e=e[e.length-1],e=e==="*"?"*":Po(e),e in st||(st[e]=[]),st[e].push({keyup:d,keydown:v,scope:u,mods:a,shortcut:o[f],method:n,key:o[f],splitKey:g,element:l});typeof l<"u"&&!EP(l)&&window&&(cm.push(l),ul(l,"keydown",function(O){vh(O,l)},_),ph||(ph=!0,ul(window,"focus",function(){Ve=[]},_)),ul(l,"keyup",function(O){vh(O,l),_P(O)},_))}function xP(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(st).forEach(function(n){var o=st[n].filter(function(a){return a.scope===r&&a.shortcut===e});o.forEach(function(a){a&&a.method&&a.method()})})}var cl={getPressedKeyString:mP,setScope:fm,getScope:mo,deleteScope:bP,getPressedKeyCodes:vP,getAllKeyCodes:gP,isPressed:wP,filter:yP,trigger:xP,unbind:SP,keyMap:vo,modifier:Hn,modifierMap:kl};for(var fl in cl)Object.prototype.hasOwnProperty.call(cl,fl)&&(Pn[fl]=cl[fl]);if(typeof window<"u"){var OP=window.hotkeys;Pn.noConflict=function(e){return e&&window.hotkeys===Pn&&(window.hotkeys=OP),Pn},window.hotkeys=Pn}Pn.filter=()=>!0;function TP(e,r,n,o){n instanceof Array&&(o=n,n=void 0),o=o||[],n=n||{};const{preventDefault:a=!0}=n,u=N.useCallback((f,d)=>{a&&f.preventDefault(),setTimeout(()=>r(f,d))},o),l=()=>{Pn.unbind(e,u)};N.useEffect(()=>(Pn(e,n,u),l),[e,n,u])}const CP=e=>{const r=N.useRef(null);return N.useEffect(()=>{const n=o=>{r.current&&!r.current.contains(o.target)&&e(o)};return document.addEventListener("click",n,!0),()=>{document.removeEventListener("click",n,!0)}},[e]),r};function RP(e){const r=N.useRef();return N.useEffect(()=>{r.current=e},[e]),r.current}function PP(e){const r=N.useRef(e);return N.useEffect(()=>{r.current=e},[e]),r}function AP(e){const r=N.useRef(null);return N.useEffect(()=>{e&&(typeof e=="function"?e(r.current):e.current=r.current)}),r}function IP(e){const[r,n]=N.useState(e),o=(u,l)=>{n(f=>({...f,features:{...f.features,[u]:{enabled:l}}}))},a=N.useCallback((...u)=>u.every(l=>{var f;return(f=r.features[l])==null?void 0:f.enabled}),[r.features]);return{setFeature:o,isFeatureEnabled:a}}const dm=N.createContext(""),LP=e=>$.jsx(dm.Provider,{value:e.value,children:e.children}),MP=()=>{const e=N.useContext(dm);if(typeof e!="string")throw new Error("Error while calling useIdentity! Context has incorrect type (expected string)");return e};function DP(e){const[r,n]=N.useState(e),o=N.useMemo(()=>kP(r,n),[]);return{state:r,actions:{...o,set:a=>{n(typeof a=="function"?a:u=>({...u,...a}))}}}}function kP(e,r=()=>{}){return Object.keys(e).reduce((o,a)=>({...o,[`set${pt.upperFirst(a)}`]:u=>r(l=>({...l,[a]:u}))}),{})}const NP=(e,r,n={})=>{n={timeout:200,...n};const o=N.useRef(),a=()=>{o.current&&(clearTimeout(o.current),o.current=null)};return N.useCallback((u,...l)=>{a(),r&&u.detail===1&&(o.current=setTimeout(()=>{r(u,...l)},n.timeout)),u.detail%2===0&&e(u,...l)},[r,e,n.timeout])};function nr(e){return typeof e=="function"}function pm(e){var r=function(o){Error.call(o),o.stack=new Error().stack},n=e(r);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var dl=pm(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
203
203
  `+n.map(function(o,a){return a+1+") "+o.toString()}).join(`
204
- `):"",this.name="UnsubscriptionError",this.errors=n}});function kl(e,r){if(e){var n=e.indexOf(r);0<=n&&e.splice(n,1)}}var ps=function(){function e(r){this.initialTeardown=r,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var r,n,o,a,u;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var f=Sl(l),d=f.next();!d.done;d=f.next()){var v=d.value;v.remove(this)}}catch(y){r={error:y}}finally{try{d&&!d.done&&(n=f.return)&&n.call(f)}finally{if(r)throw r.error}}else l.remove(this);var g=this.initialTeardown;if(tr(g))try{g()}catch(y){u=y instanceof fl?y.errors:[y]}var _=this._finalizers;if(_){this._finalizers=null;try{for(var O=Sl(_),m=O.next();!m.done;m=O.next()){var S=m.value;try{hh(S)}catch(y){u=u??[],y instanceof fl?u=fo(fo([],Ka(u)),Ka(y.errors)):u.push(y)}}}catch(y){o={error:y}}finally{try{m&&!m.done&&(a=O.return)&&a.call(O)}finally{if(o)throw o.error}}}if(u)throw new fl(u)}},e.prototype.add=function(r){var n;if(r&&r!==this)if(this.closed)hh(r);else{if(r instanceof e){if(r.closed||r._hasParent(this))return;r._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(r)}},e.prototype._hasParent=function(r){var n=this._parentage;return n===r||Array.isArray(n)&&n.includes(r)},e.prototype._addParent=function(r){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(r),n):n?[n,r]:r},e.prototype._removeParent=function(r){var n=this._parentage;n===r?this._parentage=null:Array.isArray(n)&&kl(n,r)},e.prototype.remove=function(r){var n=this._finalizers;n&&kl(n,r),r instanceof e&&r._removeParent(this)},e.EMPTY=function(){var r=new e;return r.closed=!0,r}(),e}(),fm=ps.EMPTY;function dm(e){return e instanceof ps||e&&"closed"in e&&tr(e.remove)&&tr(e.add)&&tr(e.unsubscribe)}function hh(e){tr(e)?e():e.unsubscribe()}var pm={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Nl={setTimeout:function(e,r){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];var a=Nl.delegate;return a!=null&&a.setTimeout?a.setTimeout.apply(a,fo([e,r],Ka(n))):setTimeout.apply(void 0,fo([e,r],Ka(n)))},clearTimeout:function(e){var r=Nl.delegate;return((r==null?void 0:r.clearTimeout)||clearTimeout)(e)},delegate:void 0};function kP(e){Nl.setTimeout(function(){throw e})}function vh(){}function Ua(e){e()}var hm=function(e){is(r,e);function r(n){var o=e.call(this)||this;return o.isStopped=!1,n?(o.destination=n,dm(n)&&n.add(o)):o.destination=FP,o}return r.create=function(n,o,a){return new $l(n,o,a)},r.prototype.next=function(n){this.isStopped||this._next(n)},r.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},r.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(n){this.destination.next(n)},r.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},r}(ps),NP=Function.prototype.bind;function dl(e,r){return NP.call(e,r)}var $P=function(){function e(r){this.partialObserver=r}return e.prototype.next=function(r){var n=this.partialObserver;if(n.next)try{n.next(r)}catch(o){ka(o)}},e.prototype.error=function(r){var n=this.partialObserver;if(n.error)try{n.error(r)}catch(o){ka(o)}else ka(r)},e.prototype.complete=function(){var r=this.partialObserver;if(r.complete)try{r.complete()}catch(n){ka(n)}},e}(),$l=function(e){is(r,e);function r(n,o,a){var u=e.call(this)||this,l;if(tr(n)||!n)l={next:n??void 0,error:o??void 0,complete:a??void 0};else{var f;u&&pm.useDeprecatedNextContext?(f=Object.create(n),f.unsubscribe=function(){return u.unsubscribe()},l={next:n.next&&dl(n.next,f),error:n.error&&dl(n.error,f),complete:n.complete&&dl(n.complete,f)}):l=n}return u.destination=new $P(l),u}return r}(hm);function ka(e){kP(e)}function jP(e){throw e}var FP={closed:!0,next:vh,error:jP,complete:vh},WP=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function HP(e){return e}function UP(e){return e.length===0?HP:e.length===1?e[0]:function(n){return e.reduce(function(o,a){return a(o)},n)}}var mh=function(){function e(r){r&&(this._subscribe=r)}return e.prototype.lift=function(r){var n=new e;return n.source=this,n.operator=r,n},e.prototype.subscribe=function(r,n,o){var a=this,u=zP(r)?r:new $l(r,n,o);return Ua(function(){var l=a,f=l.operator,d=l.source;u.add(f?f.call(u,d):d?a._subscribe(u):a._trySubscribe(u))}),u},e.prototype._trySubscribe=function(r){try{return this._subscribe(r)}catch(n){r.error(n)}},e.prototype.forEach=function(r,n){var o=this;return n=gh(n),new n(function(a,u){var l=new $l({next:function(f){try{r(f)}catch(d){u(d),l.unsubscribe()}},error:u,complete:a});o.subscribe(l)})},e.prototype._subscribe=function(r){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(r)},e.prototype[WP]=function(){return this},e.prototype.pipe=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return UP(r)(this)},e.prototype.toPromise=function(r){var n=this;return r=gh(r),new r(function(o,a){var u;n.subscribe(function(l){return u=l},function(l){return a(l)},function(){return o(u)})})},e.create=function(r){return new e(r)},e}();function gh(e){var r;return(r=e??pm.Promise)!==null&&r!==void 0?r:Promise}function BP(e){return e&&tr(e.next)&&tr(e.error)&&tr(e.complete)}function zP(e){return e&&e instanceof hm||BP(e)&&dm(e)}var qP=cm(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),ti=function(e){is(r,e);function r(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return r.prototype.lift=function(n){var o=new yh(this,this);return o.operator=n,o},r.prototype._throwIfClosed=function(){if(this.closed)throw new qP},r.prototype.next=function(n){var o=this;Ua(function(){var a,u;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var l=Sl(o.currentObservers),f=l.next();!f.done;f=l.next()){var d=f.value;d.next(n)}}catch(v){a={error:v}}finally{try{f&&!f.done&&(u=l.return)&&u.call(l)}finally{if(a)throw a.error}}}})},r.prototype.error=function(n){var o=this;Ua(function(){if(o._throwIfClosed(),!o.isStopped){o.hasError=o.isStopped=!0,o.thrownError=n;for(var a=o.observers;a.length;)a.shift().error(n)}})},r.prototype.complete=function(){var n=this;Ua(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var o=n.observers;o.length;)o.shift().complete()}})},r.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(r.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),r.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},r.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},r.prototype._innerSubscribe=function(n){var o=this,a=this,u=a.hasError,l=a.isStopped,f=a.observers;return u||l?fm:(this.currentObservers=null,f.push(n),new ps(function(){o.currentObservers=null,kl(f,n)}))},r.prototype._checkFinalizedStatuses=function(n){var o=this,a=o.hasError,u=o.thrownError,l=o.isStopped;a?n.error(u):l&&n.complete()},r.prototype.asObservable=function(){var n=new mh;return n.source=this,n},r.create=function(n,o){return new yh(n,o)},r}(mh),yh=function(e){is(r,e);function r(n,o){var a=e.call(this)||this;return a.destination=n,a.source=o,a}return r.prototype.next=function(n){var o,a;(a=(o=this.destination)===null||o===void 0?void 0:o.next)===null||a===void 0||a.call(o,n)},r.prototype.error=function(n){var o,a;(a=(o=this.destination)===null||o===void 0?void 0:o.error)===null||a===void 0||a.call(o,n)},r.prototype.complete=function(){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||o===void 0||o.call(n)},r.prototype._subscribe=function(n){var o,a;return(a=(o=this.source)===null||o===void 0?void 0:o.subscribe(n))!==null&&a!==void 0?a:fm},r}(ti),vm=(e=>(e.RELOAD="reload",e))(vm||{}),mm=(e=>(e.RENAME="rename",e.TYPE_CHANGE="type-change",e))(mm||{});const GP=new ti,KP=new ti,YP=new ti;var gm=(e=>(e.SAVE_ALL="save-all",e))(gm||{});const XP=new ti;var ym=(e=>(e.WILL_SAVE="will-save",e.DID_SAVE="did-save",e.WILL_CREATE="will-create",e.WILL_RENAME="will-rename",e.WILL_DELETE="will-delete",e.DID_CREATE="did-create",e.DID_RENAME="did-rename",e.DID_DELETE="did-delete",e.DIAGNOSTIC_REFRESH="diagnostic-refresh",e))(ym||{});const VP=new ti;var wm=(e=>(e.RESEND_BREAKPOINTS="resend-breakpoints",e))(wm||{});const JP=new ti,dc=31;var pc=(e=>(e.EMPTY="Please enter a valid name",e[e.LENGTH_EXCEEDED=`The name is too long, it should not exceed ${dc} characters`]="LENGTH_EXCEEDED",e.SHOULD_START_WITH_LETTER="The name can only start with a letter or a Japanese character",e.INVALID="Invalid name",e))(pc||{});function bm(e){if(e==="")throw new Error("Please enter a valid name");if(e.length>dc)throw new Error(pc.LENGTH_EXCEEDED);if(!/^[a-zA-Z\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF]/.test(e))throw new Error("The name can only start with a letter or a Japanese character");if(!/^[\w\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF-]+$/i.test(e))throw new Error("Invalid name");return!0}function ZP(e){if(!e)return null;if(typeof e=="string")try{bm(e)}catch(r){return r.message}}function QP(e,r){let n="";if(["array","object"].includes(r))try{const o=JSON.parse(e);r==="array"&&(!Array.isArray(o)||!pt.isObject(o))&&(n=`Invalid value for type ${r}`),r==="object"&&(!pt.isObject(o)||Array.isArray(o))&&(n=`Invalid value for type ${r}`)}catch{n=`Invalid value for type ${r}`}return r==="date"&&(new RegExp(/^(0?[1-9]|[12][0-9]|3[01])[/-](0?[1-9]|1[012])[/-]\d{4}$/).test(e)||(n=`Invalid value for type ${r}`)),r==="number"&&isNaN(+e)&&(n=`Invalid value for type ${r}`),["boolean","bool"].includes(r)&&typeof e!="boolean"&&!["true","false"].includes(e)&&(n=`Invalid value for type ${r}`),n}function hs(e){const r=new RegExp(':(?!4D\\.\\w+)[CPK]?\\d+(?=(?:[^"{}\\[\\]\\\\]*(?:\\\\.|"(?:[^"{}\\[\\]\\\\]*\\\\.)*[^"{}\\[\\]\\\\]*"))*[^"}\\]]*$)',"gm");return e.replace(r,"")}var hc=(e=>(e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.WELCOME="welcome",e.SETTINGS="settings",e.ROOT="root",e.REPORTS="report",e))(hc||{});const br={CLASSES:"Classes",METHODS:"Methods",SHARED:"Shared",WEBFORMS:"WebForms",CLASSES_FOLDER:"ClassesFolder",REPORTS:"Reports"};var Cn=(e=>(e.FOLDER="folder",e.WEBFORM="webform",e.REPORT="report",e.METHOD="method",e.CLASS="class",e.CLASS_FOLDER="classfolder",e.DEBUGGER="debugger",e.WELCOME="welcome",e.SETTINGS="settings",e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.DEBUGGERS="debugger",e.MODELS="models",e.ROLES="roles",e.MODEL="model",e.DATA_EXPLORER="dataexplorer",e.MOBILE="mobile",e.MOBILEFORM="mform",e.FILE="file",e.TEXT="text",e))(Cn||{}),ni=(e=>(e.GET_FOLDER="getFolder",e.GET="get",e.SAVE="save",e.RENAME="rename",e.DROP="drop",e.ADD_FOLDER="addFolder",e.CREATE_FOLDER="mkdir",e.RENAME_FOLDER="renameFolder",e.DROP_FOLDER="dropFolder",e.REMOVE_ITEM="removeItem",e.MOVE_ITEM="moveItem",e.GET_INFO="getInfo",e.SAVE_CONTENT="save",e.UPDATE_CHECK="update:check",e.UPDATE_INSTALL="update:install",e.GET_APP_SETTINGS="getWebServerInfo",e.GET_FILE_CONTENT="getFileContent",e.SET_FILE_CONTENT="setFileContent",e.GET_FILES_INFO="getFilesInfo",e))(ni||{}),vc=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))(vc||{});const _m="roles.json",Sm="qodlyApp.json",eA="model.4DModel",tA="HTTPHandlers.json";function Em(e){const r=e.split("."),n=r.pop(),o=r.join(".").split("/")[0];switch(!0){case n==="4DModel":return Cn.MODEL;case n==="WebForm":return Cn.WEBFORM;case(["4dm","4qs","4qm"].includes(n)&&o===br.METHODS):return Cn.METHOD;case(["4dm","4qs","4qm"].includes(n)&&o===br.CLASSES):return Cn.CLASS;case e===_m:return Cn.ROLES;case e===Sm:return Cn.SETTINGS;default:return Cn.TEXT}}function nA(e,r=!1){switch(e){case br.REPORTS:case"report":return"QoDoc";case br.WEBFORMS:case"webform":return"WebForm";case"Mobile":case"mform":return"MForm";case"class":case"method":case br.CLASSES:case br.METHODS:return r?"4qs":"4dm";default:return""}}function rA(e,r=""){const n=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return n?n[1]:r}class xm{constructor(){Bd(this,"current",Promise.resolve())}lock(){let r;const n=new Promise(a=>{r=a}),o=this.current.then(()=>r);return this.current=n,o}}function Om(){const e=new xm;return async r=>{const n=await e.lock();try{const o=await r();return n(),o}catch(o){console.error(o),n();return}}}const Tm=pt.curry((e,r,n)=>e&&pt.get(n,e)===r),iA=pt.curry((e,r,n)=>pt.get(n,e)!==r),oA=pt.curry((e,r)=>pt.get(r,"id")!==e),aA=pt.curry((e,r)=>pt.get(r,"id")===e),sA=pt.curry((e,r)=>pt.get(r,"path")===e);function uA(e="id",r,n){return n.findIndex(Tm(e,r))!==-1}function lA(e){if(!e)return"";const{id:r,namespace:n}=e;return n&&r?`${n}:${r}`:r}function Cm(e){return["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}function cA(e){return e.type==="object"}function Rm(e){var r;return e.kind==="relatedEntities"||((r=e.type)==null?void 0:r.includes("Selection"))||e.behavior==="relatedEntities"}function Pm(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!Cm(e)}function fA(e){return Rm(e)||Pm(e)}function dA(e){return e.applyTo==="dataStore"}function pA(e){return e.applyTo==="dataClass"}function hA(e){return e.applyTo==="entity"}function vA(e){return e.applyTo==="entityCollection"}function mA(e){return e.type==="entity"}function gA(e){return e.type==="entitysel"}function Am(e){return e.dataType==="array"}function Im(e){return e.dataType==="object"}function Lm(e){return e.type==="scalar"}function yA(e){return Am(e)||Im(e)||Lm(e)}const wA=e=>e!=null&&e.type==="entity",bA=e=>e.type==="entitysel",_A=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",SA=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",EA=e=>e.type==="scalar"&&e.dataType==="date";function xA(){return new Promise((e,r)=>{window.addEventListener("bundle:ready",n=>n.data?e():r(n.caughtErr))})}var mo=(e=>(e.capable="capable",e.incapable="incapable",e.indifferent="indifferent",e))(mo||{}),Mm=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(Mm||{}),mc=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(mc||{});const OA={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function TA(e){var u;let r={};try{const l=((u=e.match(/\/\/%attributes = (.*)/))==null?void 0:u[1])||"";r=JSON.parse(l)}catch{}const{published4DMobile:n,...o}=r;return{...{invisible:!1,shared:!1,executedOnServer:!1,preemptive:mo.indifferent,publishedSoap:!1,publishedWsdl:!1,publishedWeb:!1,publishedSql:!1,publishedRest:!!n,publishedRestOptions:n||{table:"",scope:mc.table}},...o}}function Dm(e){const r={};return e.invisible&&(r.invisible=!0),e.shared&&(r.shared=!0),e.executedOnServer&&(r.executedOnServer=!0),e.preemptive&&[mo.capable,mo.incapable].includes(e.preemptive)&&(r.preemptive=e.preemptive),e.publishedSoap&&(r.publishedSoap=!0,e.publishedWsdl&&(r.publishedWsdl=!0)),e.publishedWeb&&(r.publishedWeb=!0),e.publishedSql&&(r.publishedSql=!0),e.publishedRest&&e.publishedRestOptions&&(r.published4DMobile=e.publishedRestOptions),JSON.stringify(r).replace(/"(true|false)"/g,"$1")}function CA(e,r,n=!1){const o=pt.isString(r)?r:Dm(r);if(!n&&km(e))return e;const a=Nm(e);return`//%attributes = ${o}\r
205
- ${a}`}function km(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function Nm(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const RA=()=>Jl.uuid().replaceAll("-","").toUpperCase(),mt="/rest/$designer",Po="/rest/$designer-ext",vs="/$shared";function PA(...e){return r=>{if(e.length===0)return r;const n={...r};return e.forEach(o=>{typeof n[o]=="string"&&(n[o]=new Date(n[o]))}),n}}class jl extends Error{constructor(r,n,o){super(),this.url=r,this.response=n,this.data=o}log(){console.error("Error while sending the request",this)}}async function ze(e,r){const n=await window.fetch(e,r);if(/401/.test(n.status.toString())&&(window.location.href="/login.html?redirect=studio"),/^[45]/.test(n.status.toString())){let a;try{const u=await n.json();a=new jl(e,n,u)}catch{a=new jl(e,n)}throw a.log(),a}return await n.json()}function AA(e){return ze(Po,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function IA(e){return ze(Po,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const $m=()=>{const{host:e,protocol:r}=window.location,n=r==="https:";return{projectOpened:!1,remoteDebuggerMode:vc.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:`ws${n?"s":""}://${e}/remoteDebugger`,lsp:`ws${n?"s":""}://${e}/LSP`},isRestActive:!0}};async function LA(){const{hostname:e,host:r,protocol:n}=window.location,o=n==="https:";try{const a=await ze(mt,{method:"POST",body:JSON.stringify({verb:ni.GET_APP_SETTINGS}),headers:new Headers({"Content-Type":"application/json"})}),u=(()=>{if(a.rendererPath)return a.rendererPath;const l=`http://${e}:${a.webServerHTTPPort}`,f=`https://${e}:${a.webServerHTTPSPort}`;return a.webServerHTTPPort&&a.webServerHTTPSPort?o?f:l:a.webServerHTTPPort?l:f})();return{projectOpened:a.webServerHTTPSPort>0||a.webServerHTTPPort>0,remoteDebuggerMode:a.remoteDebuggerMode,baseUrl:u,qodly:typeof a.qodly>"u"?!0:a.qodly,urls:{renderer:a.rendererPath||`${u}/$lib/renderer/`,debugger:`ws${o?"s":""}://${r}/remoteDebugger`,lsp:`ws${o?"s":""}://${r}/LSP`},isRestActive:a.isRESTActive}}catch(a){return console.error(a),$m()}}async function jm(e){return await ze(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function MA(...e){return(await Promise.all(e.map(o=>jm({root:o,verb:ni.GET_FOLDER})))).map(({children:o})=>o.map(({name:a,date:u,type:l})=>({name:a,type:l,date:u,path:`${l}/${a}`}))).flat()}function DA(e,r={}){const{sanitize:n=!0}=r;return ze(`/rest/$getWebForm/${e}`,{method:"GET"}).then(o=>{if(!(o!=null&&o.components)||!n)return o;const a=new Map;return{...o,components:pt.entries(o.components).map(([u,l])=>{const{resolvedName:f}=l.type;if(f==="WebformLoader"){const d=Jl.generate();a.set(u,d),u=d}return[u,l]}).reduce((u,[l,f])=>{var d;return f.nodes&&(f.nodes=f.nodes.map(v=>a.get(v)||v)),f.linkedNodes&&(f.linkedNodes=pt.entries(f.linkedNodes).reduce((v,[g,_])=>({...v,[g]:a.get(_)||_}),{})),(d=f.props)!=null&&d.events&&(f.props.events=f.props.events.map(v=>(v.type==="navigation"&&v.loader&&(v.loader=a.get(v.loader)||v.loader),v))),{...u,[l]:f}},{})}})}function kA(e){return ze(mt,{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)}).then(r=>({...r,content:[Cn.METHOD,Cn.CLASS].includes(r.type)?hs(r.content):r.content}))}function NA(e){return e.type==="folder"?ze(Po,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}):ze(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function $A(e){return e.type==="folder"?(await ze(Po,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted:(await ze(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}function jA(e){return ze(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function FA(e){return ze(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function WA(e){return(await ze(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function HA(...e){return await ze(mt,{method:"POST",body:JSON.stringify({verb:ni.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function UA(e){const r=await ze("/api/login",{method:"POST",body:JSON.stringify({accessKey:e}),headers:new Headers({"Content-Type":"application/json"})});return r.isLogged&&r.success}async function BA(){return await ze("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function zA({name:e,path:r="",root:n="root",asText:o=!1}){return ze(mt,{method:"POST",body:JSON.stringify({verb:"getFileContent",root:n,path:r,name:e,asText:o}),headers:new Headers({"Content-Type":"application/json"})})}async function qA(){try{const e=await ze(`${vs}/shared_datasources.json?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})});return typeof e=="string"?JSON.parse(e):e}catch{return{}}}async function GA(){try{const e=await ze(`${vs}/shared_css.json?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})});return typeof e=="string"?JSON.parse(e):e}catch{return{classes:[]}}}async function KA(){try{const e=await ze(`${vs}/saved_conditions.json?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})});return typeof e=="string"?JSON.parse(e):e}catch{return{conditions:[]}}}async function YA(){try{return await ze("/rest/$info/privileges",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch{return{privileges:[]}}}async function XA(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const VA=Om(),JA=async e=>{const r={verb:ni.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:e};return VA(async()=>(await ze(mt,{method:"POST",body:JSON.stringify(r),headers:new Headers({"Content-Type":"application/json"})}),e))},Fm=async e=>{const r=await ze(mt,{method:"POST",body:JSON.stringify({...e,verb:ni.SET_FILE_CONTENT,root:hc.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),n=Em(`${e.path||"Sources"}/${e.name}`);return{...r,type:n,size:0}},ZA=async e=>await Fm({name:"crafted_components.json",path:br.WEBFORMS,content:e});function QA(e){return ze(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function eI(e){return ze(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function tI(e){return ze(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function nI(e){return ze(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}).then(r=>Array.isArray(r)?r:{...r,content:["4dm","4qm","4qs"].includes(r.ext)?hs(r.content):r.content})}function rI(e){return ze(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function iI(e){const r=new RegExp(/^\((.+)(?=\))/gi).exec(e);return r!==null?r[1]:""}function oI(e){const r=new RegExp(/(->)(.*)/gi).exec(e);if(r!==null)return r[0].replace("->","");const n=/:([^)]*)$/.exec(e);return n!==null?`result : ${n[1].trim()}`:""}function aI(e){const r=iI(e).split(/[;,]/g).filter(Boolean).map(a=>{const u=a.split(":")[0].trim(),l=a.split(":")[1].trim();return{name:u,type:l}}),n=oI(e),o=n?{name:n.split(":")[0].trim(),type:n.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:r,result:o}}async function sI(e,r){const o=e.split(".").pop();try{const a=await ze(mt,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:r,functionName:o}),headers:new Headers({"Content-Type":"application/json"})});a.content=hs(a.content);const{params:u,result:l}=aI(a.parameters);return{...a,params:u,returns:l}}catch(a){return console.error(a),{className:r,functionName:o,filePath:e,content:"",params:[]}}}var Wm=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(Wm||{});function uI(e,r){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...r}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(n=>{})}var Hm=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(Hm||{}),Um=(e=>(e.WelCome="WelCome",e.ActionPanel="ActionPanel",e.SideBar="SideBar",e.Settings="Settings",e.Main="Main",e.Explorer="Explorer",e.Header="Header",e.ComponentList="ComponentList",e))(Um||{}),Bm=(e=>(e[e.FILE_NOT_FOUND=1839]="FILE_NOT_FOUND",e[e.JSON_MALFORMED=554]="JSON_MALFORMED",e[e.JSON_MALFORMED_AT_LINE=550]="JSON_MALFORMED_AT_LINE",e))(Bm||{});const lI={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},cI={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}};exports.API_PREFIX=mt;exports.AppLoader=iP;exports.ControlledSwitch=tm;exports.DATASOURCE_THEMES=lI;exports.DatasourcesActions=mm;exports.DebuggerActions=wm;exports.DesignerRequestVerb=ni;exports.Dialog=bE;exports.DialogBody=Mh;exports.EActivity=Wm;exports.EDITOR=cI;exports.EIDENTIFIERS=Um;exports.ERROR_CODES=Bm;exports.EWebFormStyleClassScope=Hm;exports.EXT_API_PREFIX=Po;exports.FileFolderType=Cn;exports.FolderRootPath=br;exports.FolderRootType=hc;exports.HTTPError=jl;exports.HTTP_HANDLERS_PATH=tA;exports.IPreemptive=mo;exports.IPublished=Mm;exports.IPublishedRestScope=mc;exports.IdentityProvider=AP;exports.Incase=dO;exports.IndentLines=uv;exports.LogoSVG=nm;exports.LspActions=ym;exports.MAX_FILE_NAME_LENGTH=dc;exports.MODEL_TAB_PATH=eA;exports.Modal=aP;exports.ModalCloseReason=Oi;exports.ModalColor=Xr;exports.ModalIcons=Ml;exports.ModalType=fc;exports.Mutex=xm;exports.NameError=pc;exports.Overlay=Lh;exports.Portal=_h;exports.PublishOptions=OA;exports.ROLES_TAB_PATH=_m;exports.RemoteDebuggerMode=vc;exports.SETTINGS_TAB_PATH=Sm;exports.SHARED_API_PREFIX=vs;exports.Switcher=lv;exports.TabEventsActions=gm;exports.Tip=aR;exports.TipsProvider=iR;exports.Toast=Lx;exports.Tooltip=nP;exports.Tree=fO;exports.TreeIcon=rv;exports.TreeNode=Zl;exports.WebformActions=vm;exports._isArrayDatasource=_A;exports._isObjectDatasource=SA;exports.addAttributesToContent=CA;exports.addFolder=jA;exports.by=Tm;exports.byId=aA;exports.byPath=sA;exports.checkUpdates=AA;exports.createFolder=QA;exports.datasourcesSubject=GP;exports.debuggerSubject=JP;exports.dropFile=$A;exports.dropFolder=WA;exports.exists=uA;exports.extractWebformName=rA;exports.generateUUID=RA;exports.getAppSettings=LA;exports.getCatalog=BA;exports.getDatasourceId=lA;exports.getDefaultAppSettings=$m;exports.getFile=kA;exports.getFileContent=zA;exports.getFileExtentionFromType=nA;exports.getFilesInfo=HA;exports.getFolder=jm;exports.getFolders=MA;exports.getFunctionContent=sI;exports.getMonacoTheme=XA;exports.getNodeInfo=nI;exports.getSavedConditions=KA;exports.getSharedCSS=GA;exports.getSharedDatasources=qA;exports.getTypeFromExtension=Em;exports.getUserPrivileges=YA;exports.getWebForm=DA;exports.hasAttributesString=km;exports.http=ze;exports.installUpdates=IA;exports.isArrayDatasource=Am;exports.isDataClassMethod=pA;exports.isDataStoreMethod=dA;exports.isDateDatasource=EA;exports.isEntity=wA;exports.isEntityDatasource=mA;exports.isEntityMethod=hA;exports.isEntitySelection=bA;exports.isEntitySelectionDatasource=gA;exports.isEntitySelectionMethod=vA;exports.isObjectAttribute=cA;exports.isObjectDatasource=Im;exports.isRelatedAttribute=fA;exports.isRelatedEntitiesAttribute=Rm;exports.isRelatedEntityAttribute=Pm;exports.isScalarDatasource=Lm;exports.isSimpleAttribute=Cm;exports.isSimpleDatasource=yA;exports.loadDS=xA;exports.log=uI;exports.login=UA;exports.lspSubject=VP;exports.moveItem=tI;exports.outBy=iA;exports.outById=oA;exports.parseAttributes=TA;exports.queue=Om;exports.removeAttributesString=Nm;exports.removeItem=eI;exports.renameFile=NA;exports.renameFolder=FA;exports.sanitizeContent=hs;exports.saveContent=rI;exports.setCraftedComponents=ZA;exports.setFileContent=Fm;exports.setSharedSources=JA;exports.stringifyAttributes=Dm;exports.tabEventsSubject=XP;exports.toastSubject=YP;exports.transformDates=PA;exports.useDidMountEffect=lP;exports.useDoubleClick=DP;exports.useFeatureFlags=PP;exports.useForwardedRef=RP;exports.useHotkeys=xP;exports.useIdentity=IP;exports.useOutsideClick=OP;exports.usePrevious=TP;exports.useStateObject=LP;exports.useStateRef=CP;exports.useTip=Bv;exports.validateName=bm;exports.validateServerSide=ZP;exports.validateValue=QP;exports.webformSubject=KP;
204
+ `):"",this.name="UnsubscriptionError",this.errors=n}});function Nl(e,r){if(e){var n=e.indexOf(r);0<=n&&e.splice(n,1)}}var hs=function(){function e(r){this.initialTeardown=r,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var r,n,o,a,u;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var f=El(l),d=f.next();!d.done;d=f.next()){var v=d.value;v.remove(this)}}catch(y){r={error:y}}finally{try{d&&!d.done&&(n=f.return)&&n.call(f)}finally{if(r)throw r.error}}else l.remove(this);var g=this.initialTeardown;if(nr(g))try{g()}catch(y){u=y instanceof dl?y.errors:[y]}var _=this._finalizers;if(_){this._finalizers=null;try{for(var O=El(_),m=O.next();!m.done;m=O.next()){var S=m.value;try{mh(S)}catch(y){u=u??[],y instanceof dl?u=po(po([],Ya(u)),Ya(y.errors)):u.push(y)}}}catch(y){o={error:y}}finally{try{m&&!m.done&&(a=O.return)&&a.call(O)}finally{if(o)throw o.error}}}if(u)throw new dl(u)}},e.prototype.add=function(r){var n;if(r&&r!==this)if(this.closed)mh(r);else{if(r instanceof e){if(r.closed||r._hasParent(this))return;r._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(r)}},e.prototype._hasParent=function(r){var n=this._parentage;return n===r||Array.isArray(n)&&n.includes(r)},e.prototype._addParent=function(r){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(r),n):n?[n,r]:r},e.prototype._removeParent=function(r){var n=this._parentage;n===r?this._parentage=null:Array.isArray(n)&&Nl(n,r)},e.prototype.remove=function(r){var n=this._finalizers;n&&Nl(n,r),r instanceof e&&r._removeParent(this)},e.EMPTY=function(){var r=new e;return r.closed=!0,r}(),e}(),hm=hs.EMPTY;function vm(e){return e instanceof hs||e&&"closed"in e&&nr(e.remove)&&nr(e.add)&&nr(e.unsubscribe)}function mh(e){nr(e)?e():e.unsubscribe()}var mm={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},$l={setTimeout:function(e,r){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];var a=$l.delegate;return a!=null&&a.setTimeout?a.setTimeout.apply(a,po([e,r],Ya(n))):setTimeout.apply(void 0,po([e,r],Ya(n)))},clearTimeout:function(e){var r=$l.delegate;return((r==null?void 0:r.clearTimeout)||clearTimeout)(e)},delegate:void 0};function $P(e){$l.setTimeout(function(){throw e})}function gh(){}function Ba(e){e()}var gm=function(e){os(r,e);function r(n){var o=e.call(this)||this;return o.isStopped=!1,n?(o.destination=n,vm(n)&&n.add(o)):o.destination=HP,o}return r.create=function(n,o,a){return new jl(n,o,a)},r.prototype.next=function(n){this.isStopped||this._next(n)},r.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},r.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(n){this.destination.next(n)},r.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},r}(hs),jP=Function.prototype.bind;function pl(e,r){return jP.call(e,r)}var FP=function(){function e(r){this.partialObserver=r}return e.prototype.next=function(r){var n=this.partialObserver;if(n.next)try{n.next(r)}catch(o){Na(o)}},e.prototype.error=function(r){var n=this.partialObserver;if(n.error)try{n.error(r)}catch(o){Na(o)}else Na(r)},e.prototype.complete=function(){var r=this.partialObserver;if(r.complete)try{r.complete()}catch(n){Na(n)}},e}(),jl=function(e){os(r,e);function r(n,o,a){var u=e.call(this)||this,l;if(nr(n)||!n)l={next:n??void 0,error:o??void 0,complete:a??void 0};else{var f;u&&mm.useDeprecatedNextContext?(f=Object.create(n),f.unsubscribe=function(){return u.unsubscribe()},l={next:n.next&&pl(n.next,f),error:n.error&&pl(n.error,f),complete:n.complete&&pl(n.complete,f)}):l=n}return u.destination=new FP(l),u}return r}(gm);function Na(e){$P(e)}function WP(e){throw e}var HP={closed:!0,next:gh,error:WP,complete:gh},UP=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function BP(e){return e}function zP(e){return e.length===0?BP:e.length===1?e[0]:function(n){return e.reduce(function(o,a){return a(o)},n)}}var yh=function(){function e(r){r&&(this._subscribe=r)}return e.prototype.lift=function(r){var n=new e;return n.source=this,n.operator=r,n},e.prototype.subscribe=function(r,n,o){var a=this,u=GP(r)?r:new jl(r,n,o);return Ba(function(){var l=a,f=l.operator,d=l.source;u.add(f?f.call(u,d):d?a._subscribe(u):a._trySubscribe(u))}),u},e.prototype._trySubscribe=function(r){try{return this._subscribe(r)}catch(n){r.error(n)}},e.prototype.forEach=function(r,n){var o=this;return n=wh(n),new n(function(a,u){var l=new jl({next:function(f){try{r(f)}catch(d){u(d),l.unsubscribe()}},error:u,complete:a});o.subscribe(l)})},e.prototype._subscribe=function(r){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(r)},e.prototype[UP]=function(){return this},e.prototype.pipe=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return zP(r)(this)},e.prototype.toPromise=function(r){var n=this;return r=wh(r),new r(function(o,a){var u;n.subscribe(function(l){return u=l},function(l){return a(l)},function(){return o(u)})})},e.create=function(r){return new e(r)},e}();function wh(e){var r;return(r=e??mm.Promise)!==null&&r!==void 0?r:Promise}function qP(e){return e&&nr(e.next)&&nr(e.error)&&nr(e.complete)}function GP(e){return e&&e instanceof gm||qP(e)&&vm(e)}var KP=pm(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),ri=function(e){os(r,e);function r(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return r.prototype.lift=function(n){var o=new bh(this,this);return o.operator=n,o},r.prototype._throwIfClosed=function(){if(this.closed)throw new KP},r.prototype.next=function(n){var o=this;Ba(function(){var a,u;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var l=El(o.currentObservers),f=l.next();!f.done;f=l.next()){var d=f.value;d.next(n)}}catch(v){a={error:v}}finally{try{f&&!f.done&&(u=l.return)&&u.call(l)}finally{if(a)throw a.error}}}})},r.prototype.error=function(n){var o=this;Ba(function(){if(o._throwIfClosed(),!o.isStopped){o.hasError=o.isStopped=!0,o.thrownError=n;for(var a=o.observers;a.length;)a.shift().error(n)}})},r.prototype.complete=function(){var n=this;Ba(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var o=n.observers;o.length;)o.shift().complete()}})},r.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(r.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),r.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},r.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},r.prototype._innerSubscribe=function(n){var o=this,a=this,u=a.hasError,l=a.isStopped,f=a.observers;return u||l?hm:(this.currentObservers=null,f.push(n),new hs(function(){o.currentObservers=null,Nl(f,n)}))},r.prototype._checkFinalizedStatuses=function(n){var o=this,a=o.hasError,u=o.thrownError,l=o.isStopped;a?n.error(u):l&&n.complete()},r.prototype.asObservable=function(){var n=new yh;return n.source=this,n},r.create=function(n,o){return new bh(n,o)},r}(yh),bh=function(e){os(r,e);function r(n,o){var a=e.call(this)||this;return a.destination=n,a.source=o,a}return r.prototype.next=function(n){var o,a;(a=(o=this.destination)===null||o===void 0?void 0:o.next)===null||a===void 0||a.call(o,n)},r.prototype.error=function(n){var o,a;(a=(o=this.destination)===null||o===void 0?void 0:o.error)===null||a===void 0||a.call(o,n)},r.prototype.complete=function(){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||o===void 0||o.call(n)},r.prototype._subscribe=function(n){var o,a;return(a=(o=this.source)===null||o===void 0?void 0:o.subscribe(n))!==null&&a!==void 0?a:hm},r}(ri),ym=(e=>(e.RELOAD="reload",e))(ym||{}),wm=(e=>(e.RENAME="rename",e.TYPE_CHANGE="type-change",e))(wm||{});const YP=new ri,XP=new ri,VP=new ri;var bm=(e=>(e.SAVE_ALL="save-all",e))(bm||{});const ZP=new ri;var _m=(e=>(e.WILL_SAVE="will-save",e.DID_SAVE="did-save",e.WILL_CREATE="will-create",e.WILL_RENAME="will-rename",e.WILL_DELETE="will-delete",e.DID_CREATE="did-create",e.DID_RENAME="did-rename",e.DID_DELETE="did-delete",e.DIAGNOSTIC_REFRESH="diagnostic-refresh",e))(_m||{});const JP=new ri;var Sm=(e=>(e.RESEND_BREAKPOINTS="resend-breakpoints",e))(Sm||{});const QP=new ri,pc=31;var hc=(e=>(e.EMPTY="Please enter a valid name",e[e.LENGTH_EXCEEDED=`The name is too long, it should not exceed ${pc} characters`]="LENGTH_EXCEEDED",e.SHOULD_START_WITH_LETTER="The name can only start with a letter or a Japanese character",e.INVALID="Invalid name",e))(hc||{});function Em(e){if(e==="")throw new Error("Please enter a valid name");if(e.length>pc)throw new Error(hc.LENGTH_EXCEEDED);if(!/^[a-zA-Z\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF]/.test(e))throw new Error("The name can only start with a letter or a Japanese character");if(!/^[\w\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF-]+$/i.test(e))throw new Error("Invalid name");return!0}function eA(e){if(!e)return null;if(typeof e=="string")try{Em(e)}catch(r){return r.message}}function tA(e,r){let n="";if(["array","object"].includes(r))try{const o=JSON.parse(e);r==="array"&&(!Array.isArray(o)||!pt.isObject(o))&&(n=`Invalid value for type ${r}`),r==="object"&&(!pt.isObject(o)||Array.isArray(o))&&(n=`Invalid value for type ${r}`)}catch{n=`Invalid value for type ${r}`}return r==="date"&&(new RegExp(/^(0?[1-9]|[12][0-9]|3[01])[/-](0?[1-9]|1[012])[/-]\d{4}$/).test(e)||(n=`Invalid value for type ${r}`)),r==="number"&&isNaN(+e)&&(n=`Invalid value for type ${r}`),["boolean","bool"].includes(r)&&typeof e!="boolean"&&!["true","false"].includes(e)&&(n=`Invalid value for type ${r}`),n}function vs(e){const r=new RegExp(':(?!4D\\.\\w+)[CPK]?\\d+(?=(?:[^"{}\\[\\]\\\\]*(?:\\\\.|"(?:[^"{}\\[\\]\\\\]*\\\\.)*[^"{}\\[\\]\\\\]*"))*[^"}\\]]*$)',"gm");return e.replace(r,"")}var vc=(e=>(e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.WELCOME="welcome",e.SETTINGS="settings",e.ROOT="root",e.REPORTS="report",e))(vc||{});const _r={CLASSES:"Classes",METHODS:"Methods",SHARED:"Shared",WEBFORMS:"WebForms",CLASSES_FOLDER:"ClassesFolder",REPORTS:"Reports",DEBUGGER:"Debugger"};var Cn=(e=>(e.FOLDER="folder",e.WEBFORM="webform",e.REPORT="report",e.METHOD="method",e.CLASS="class",e.CLASS_FOLDER="classfolder",e.DEBUGGER="debugger",e.WELCOME="welcome",e.SETTINGS="settings",e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.DEBUGGERS="debugger",e.MODELS="models",e.ROLES="roles",e.MODEL="model",e.DATA_EXPLORER="dataexplorer",e.MOBILE="mobile",e.MOBILEFORM="mform",e.FILE="file",e.TEXT="text",e))(Cn||{}),Un=(e=>(e.GET_FOLDER="getFolder",e.GET="get",e.SAVE="save",e.RENAME="rename",e.DROP="drop",e.ADD_FOLDER="addFolder",e.CREATE_FOLDER="mkdir",e.RENAME_FOLDER="renameFolder",e.DROP_FOLDER="dropFolder",e.REMOVE_ITEM="removeItem",e.MOVE_ITEM="moveItem",e.GET_INFO="getInfo",e.SAVE_CONTENT="save",e.UPDATE_CHECK="update:check",e.UPDATE_INSTALL="update:install",e.GET_APP_SETTINGS="getWebServerInfo",e.GET_FILE_CONTENT="getFileContent",e.SET_FILE_CONTENT="setFileContent",e.GET_FILES_INFO="getFilesInfo",e))(Un||{}),mc=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))(mc||{});const xm="roles.json",Om="qodlyApp.json",nA="model.4DModel",rA="HTTPHandlers.json";function Tm(e){const r=e.split("."),n=r.pop(),o=r.join(".").split("/")[0];switch(!0){case n==="4DModel":return Cn.MODEL;case n==="WebForm":return Cn.WEBFORM;case(["4dm","4qs","4qm"].includes(n)&&o===_r.METHODS):return Cn.METHOD;case(["4dm","4qs","4qm"].includes(n)&&o===_r.CLASSES):return Cn.CLASS;case e===xm:return Cn.ROLES;case e===Om:return Cn.SETTINGS;default:return Cn.TEXT}}function iA(e,r=!1){switch(e){case _r.REPORTS:case"report":return"QoDoc";case _r.WEBFORMS:case"webform":return"WebForm";case"Mobile":case"mform":return"MForm";case"class":case"method":case _r.CLASSES:case _r.METHODS:return r?"4qs":"4dm";default:return""}}function oA(e,r=""){const n=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return n?n[1]:r}class Cm{constructor(){qd(this,"current",Promise.resolve())}lock(){let r;const n=new Promise(a=>{r=a}),o=this.current.then(()=>r);return this.current=n,o}}function Rm(){const e=new Cm;return async r=>{const n=await e.lock();try{const o=await r();return n(),o}catch(o){console.error(o),n();return}}}const Pm=pt.curry((e,r,n)=>e&&pt.get(n,e)===r),aA=pt.curry((e,r,n)=>pt.get(n,e)!==r),sA=pt.curry((e,r)=>pt.get(r,"id")!==e),uA=pt.curry((e,r)=>pt.get(r,"id")===e),lA=pt.curry((e,r)=>pt.get(r,"path")===e);function cA(e="id",r,n){return n.findIndex(Pm(e,r))!==-1}function fA(e){if(!e)return"";const{id:r,namespace:n}=e;return n&&r?`${n}:${r}`:r}function Am(e){return["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}function dA(e){return e.type==="object"}function Im(e){var r;return e.kind==="relatedEntities"||((r=e.type)==null?void 0:r.includes("Selection"))||e.behavior==="relatedEntities"}function Lm(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!Am(e)}function pA(e){return Im(e)||Lm(e)}function hA(e){return e.applyTo==="dataStore"}function vA(e){return e.applyTo==="dataClass"}function mA(e){return e.applyTo==="entity"}function gA(e){return e.applyTo==="entityCollection"}function yA(e){return e.type==="entity"}function wA(e){return e.type==="entitysel"}function Mm(e){return e.dataType==="array"}function Dm(e){return e.dataType==="object"}function km(e){return e.type==="scalar"}function bA(e){return Mm(e)||Dm(e)||km(e)}const _A=e=>e!=null&&e.type==="entity",SA=e=>e.type==="entitysel",EA=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",xA=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",OA=e=>e.type==="scalar"&&e.dataType==="date";function TA(){return new Promise((e,r)=>{window.addEventListener("bundle:ready",n=>n.data?e():r(n.caughtErr))})}var go=(e=>(e.capable="capable",e.incapable="incapable",e.indifferent="indifferent",e))(go||{}),Nm=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(Nm||{}),gc=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(gc||{});const CA={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function RA(e){var u;let r={};try{const l=((u=e.match(/\/\/%attributes = (.*)/))==null?void 0:u[1])||"";r=JSON.parse(l)}catch{}const{published4DMobile:n,...o}=r;return{...{invisible:!1,shared:!1,executedOnServer:!1,preemptive:go.indifferent,publishedSoap:!1,publishedWsdl:!1,publishedWeb:!1,publishedSql:!1,publishedRest:!!n,publishedRestOptions:n||{table:"",scope:gc.table}},...o}}function $m(e){const r={};return e.invisible&&(r.invisible=!0),e.shared&&(r.shared=!0),e.executedOnServer&&(r.executedOnServer=!0),e.preemptive&&[go.capable,go.incapable].includes(e.preemptive)&&(r.preemptive=e.preemptive),e.publishedSoap&&(r.publishedSoap=!0,e.publishedWsdl&&(r.publishedWsdl=!0)),e.publishedWeb&&(r.publishedWeb=!0),e.publishedSql&&(r.publishedSql=!0),e.publishedRest&&e.publishedRestOptions&&(r.published4DMobile=e.publishedRestOptions),JSON.stringify(r).replace(/"(true|false)"/g,"$1")}function PA(e,r,n=!1){const o=pt.isString(r)?r:$m(r);if(!n&&jm(e))return e;const a=Fm(e);return`//%attributes = ${o}\r
205
+ ${a}`}function jm(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function Fm(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const AA=()=>Jl.uuid().replaceAll("-","").toUpperCase(),mt="/rest/$designer",Ao="/rest/$designer-ext",Sr="/Shared";function IA(...e){return r=>{if(e.length===0)return r;const n={...r};return e.forEach(o=>{typeof n[o]=="string"&&(n[o]=new Date(n[o]))}),n}}class Fl extends Error{constructor(r,n,o){super(),this.url=r,this.response=n,this.data=o}log(){console.error("Error while sending the request",this)}}async function Ye(e,r){const n=await window.fetch(e,r);if(/401/.test(n.status.toString())&&(window.location.href="/login.html?redirect=studio"),/^[45]/.test(n.status.toString())){let a;try{const u=await n.json();a=new Fl(e,n,u)}catch{a=new Fl(e,n)}throw a.log(),a}return await n.json()}function LA(e){return Ye(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function MA(e){return Ye(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function DA(e){return Ye(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const _h={[`${Sr}/saved_conditions.json`]:"{}",[`${Sr}/shared_datasources.json`]:"[]",[`${Sr}/shared_css.json`]:"{}",[`${Sr}/CustomComponents/manifest.json`]:"[]","WebForms/crafted_components.json":"[]"};function ms(e){return Ye(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}).then(r=>Array.isArray(r)?r:{...r,content:["4dm","4qm","4qs"].includes(r.ext)?vs(r.content):r.content}).catch(r=>{var n,o;((o=(n=r.data)==null?void 0:n.__ERROR[0])==null?void 0:o.errCode)===1839&&Object.keys(_h).includes(e.path)&&yc({name:e.path,content:_h[`${e.path}`]})})}function kA(e){return Ye(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function NA(e){return Ye(Ao,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function $A(e){return Ye(Ao,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const Wm=()=>{const{host:e,protocol:r}=window.location,n=r==="https:";return{projectOpened:!1,remoteDebuggerMode:mc.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:`ws${n?"s":""}://${e}/remoteDebugger`,lsp:`ws${n?"s":""}://${e}/LSP`},isRestActive:!0}};async function jA(){const{hostname:e,host:r,protocol:n}=window.location,o=n==="https:";try{const a=await Ye(mt,{method:"POST",body:JSON.stringify({verb:Un.GET_APP_SETTINGS}),headers:new Headers({"Content-Type":"application/json"})}),u=(()=>{if(a.rendererPath)return a.rendererPath;const l=`http://${e}:${a.webServerHTTPPort}`,f=`https://${e}:${a.webServerHTTPSPort}`;return a.webServerHTTPPort&&a.webServerHTTPSPort?o?f:l:a.webServerHTTPPort?l:f})();return{projectOpened:a.webServerHTTPSPort>0||a.webServerHTTPPort>0,remoteDebuggerMode:a.remoteDebuggerMode,baseUrl:u,qodly:typeof a.qodly>"u"?!0:a.qodly,urls:{renderer:a.rendererPath||`${u}/$lib/renderer/`,debugger:`ws${o?"s":""}://${r}/remoteDebugger`,lsp:`ws${o?"s":""}://${r}/LSP`},isRestActive:a.isRESTActive}}catch(a){return console.error(a),Wm()}}async function Hm(e){return await Ye(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function FA(...e){return(await Promise.all(e.map(o=>Hm({root:o,verb:Un.GET_FOLDER})))).map(({children:o})=>o.map(({name:a,date:u,type:l})=>({name:a,type:l,date:u,path:`${l}/${a}`}))).flat()}function WA(e,r={}){const{sanitize:n=!0}=r;return Ye(`/rest/$getWebForm/${e}`,{method:"GET"}).then(o=>{if(!(o!=null&&o.components)||!n)return o;const a=new Map;return{...o,components:pt.entries(o.components).map(([u,l])=>{const{resolvedName:f}=l.type;if(f==="WebformLoader"){const d=Jl.generate();a.set(u,d),u=d}return[u,l]}).reduce((u,[l,f])=>{var d;return f.nodes&&(f.nodes=f.nodes.map(v=>a.get(v)||v)),f.linkedNodes&&(f.linkedNodes=pt.entries(f.linkedNodes).reduce((v,[g,_])=>({...v,[g]:a.get(_)||_}),{})),(d=f.props)!=null&&d.events&&(f.props.events=f.props.events.map(v=>(v.type==="navigation"&&v.loader&&(v.loader=a.get(v.loader)||v.loader),v))),{...u,[l]:f}},{})}})}function HA(e){return Ye(mt,{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)}).then(r=>({...r,content:[Cn.METHOD,Cn.CLASS].includes(r.type)?vs(r.content):r.content}))}function UA(e){return e.type==="folder"?Ye(Ao,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}):Ye(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function BA(e){return e.type==="folder"?(await Ye(Ao,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted:(await Ye(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}function zA(e){return Ye(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function qA(e){return Ye(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function GA(e){return(await Ye(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function KA(...e){return await Ye(mt,{method:"POST",body:JSON.stringify({verb:Un.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function YA(e){const r=await Ye("/api/login",{method:"POST",body:JSON.stringify({accessKey:e}),headers:new Headers({"Content-Type":"application/json"})});return r.isLogged&&r.success}async function XA(){return await Ye("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function VA({name:e,path:r="",root:n="root",asText:o=!1}){return Ye(mt,{method:"POST",body:JSON.stringify({verb:"getFileContent",root:n,path:r,name:e,asText:o}),headers:new Headers({"Content-Type":"application/json"})})}async function ZA(){try{return(await ms({verb:Un.GET_INFO,path:`${Sr}/shared_datasources.json`,content:!0,as:"json"})).content}catch{return{}}}async function JA(){try{return(await ms({verb:Un.GET_INFO,path:`${Sr}/shared_css.json`,content:!0,as:"json"})).content}catch{return{classes:[]}}}async function QA(){try{return(await ms({verb:Un.GET_INFO,path:`${Sr}/saved_conditions.json`,content:!0,as:"json"})).content}catch{return{conditions:[]}}}async function eI(){try{return await Ye("/rest/$info/privileges",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch{return{privileges:[]}}}async function tI(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const nI=Rm(),rI=async e=>{const r={verb:Un.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:e};return nI(async()=>(await Ye(mt,{method:"POST",body:JSON.stringify(r),headers:new Headers({"Content-Type":"application/json"})}),e))},yc=async e=>{const r=await Ye(mt,{method:"POST",body:JSON.stringify({...e,verb:Un.SET_FILE_CONTENT,root:vc.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),n=Tm(`${e.path||"Sources"}/${e.name}`);return{...r,type:n,size:0}},iI=async e=>await yc({name:"crafted_components.json",path:_r.WEBFORMS,content:e});function oI(e){const r=new RegExp(/^\((.+)(?=\))/gi).exec(e);return r!==null?r[1]:""}function aI(e){const r=new RegExp(/(->)(.*)/gi).exec(e);if(r!==null)return r[0].replace("->","");const n=/:([^)]*)$/.exec(e);return n!==null?`result : ${n[1].trim()}`:""}function sI(e){const r=oI(e).split(/[;,]/g).filter(Boolean).map(a=>{const u=a.split(":")[0].trim(),l=a.split(":")[1].trim();return{name:u,type:l}}),n=aI(e),o=n?{name:n.split(":")[0].trim(),type:n.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:r,result:o}}async function uI(e,r){const o=e.split(".").pop();try{const a=await Ye(mt,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:r,functionName:o}),headers:new Headers({"Content-Type":"application/json"})});a.content=vs(a.content);const{params:u,result:l}=sI(a.parameters);return{...a,params:u,returns:l}}catch(a){return console.error(a),{className:r,functionName:o,filePath:e,content:"",params:[]}}}var Um=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(Um||{});function lI(e,r){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...r}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(n=>{})}var Bm=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(Bm||{}),zm=(e=>(e.WelCome="WelCome",e.ActionPanel="ActionPanel",e.SideBar="SideBar",e.Settings="Settings",e.Main="Main",e.Explorer="Explorer",e.Header="Header",e.ComponentList="ComponentList",e))(zm||{}),qm=(e=>(e[e.FILE_NOT_FOUND=1839]="FILE_NOT_FOUND",e[e.JSON_MALFORMED=554]="JSON_MALFORMED",e[e.JSON_MALFORMED_AT_LINE=550]="JSON_MALFORMED_AT_LINE",e))(qm||{});const cI={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},fI={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}};exports.API_PREFIX=mt;exports.AppLoader=aP;exports.ControlledSwitch=im;exports.DATASOURCE_THEMES=cI;exports.DatasourcesActions=wm;exports.DebuggerActions=Sm;exports.DesignerRequestVerb=Un;exports.Dialog=SE;exports.DialogBody=Nh;exports.EActivity=Um;exports.EDITOR=fI;exports.EIDENTIFIERS=zm;exports.ERROR_CODES=qm;exports.EWebFormStyleClassScope=Bm;exports.EXT_API_PREFIX=Ao;exports.FileFolderType=Cn;exports.FolderRootPath=_r;exports.FolderRootType=vc;exports.HTTPError=Fl;exports.HTTP_HANDLERS_PATH=rA;exports.IPreemptive=go;exports.IPublished=Nm;exports.IPublishedRestScope=gc;exports.IdentityProvider=LP;exports.Incase=hO;exports.IndentLines=fv;exports.LogoSVG=om;exports.LspActions=_m;exports.MAX_FILE_NAME_LENGTH=pc;exports.MODEL_TAB_PATH=nA;exports.Modal=uP;exports.ModalCloseReason=Ti;exports.ModalColor=Zr;exports.ModalIcons=Dl;exports.ModalType=dc;exports.Mutex=Cm;exports.NameError=hc;exports.Overlay=kh;exports.Portal=xh;exports.PublishOptions=CA;exports.ROLES_TAB_PATH=xm;exports.RemoteDebuggerMode=mc;exports.SETTINGS_TAB_PATH=Om;exports.SHARED_API_PREFIX=Sr;exports.Switcher=dv;exports.TabEventsActions=bm;exports.Tip=uR;exports.TipsProvider=aR;exports.Toast=Dx;exports.Tooltip=iP;exports.Tree=pO;exports.TreeIcon=av;exports.TreeNode=Ql;exports.WebformActions=ym;exports._isArrayDatasource=EA;exports._isObjectDatasource=xA;exports.addAttributesToContent=PA;exports.addFolder=zA;exports.by=Pm;exports.byId=uA;exports.byPath=lA;exports.checkUpdates=NA;exports.createFolder=LA;exports.datasourcesSubject=YP;exports.debuggerSubject=QP;exports.dropFile=BA;exports.dropFolder=GA;exports.exists=cA;exports.extractWebformName=oA;exports.generateUUID=AA;exports.getAppSettings=jA;exports.getCatalog=XA;exports.getDatasourceId=fA;exports.getDefaultAppSettings=Wm;exports.getFile=HA;exports.getFileContent=VA;exports.getFileExtentionFromType=iA;exports.getFilesInfo=KA;exports.getFolder=Hm;exports.getFolders=FA;exports.getFunctionContent=uI;exports.getMonacoTheme=tI;exports.getNodeInfo=ms;exports.getSavedConditions=QA;exports.getSharedCSS=JA;exports.getSharedDatasources=ZA;exports.getTypeFromExtension=Tm;exports.getUserPrivileges=eI;exports.getWebForm=WA;exports.hasAttributesString=jm;exports.http=Ye;exports.installUpdates=$A;exports.isArrayDatasource=Mm;exports.isDataClassMethod=vA;exports.isDataStoreMethod=hA;exports.isDateDatasource=OA;exports.isEntity=_A;exports.isEntityDatasource=yA;exports.isEntityMethod=mA;exports.isEntitySelection=SA;exports.isEntitySelectionDatasource=wA;exports.isEntitySelectionMethod=gA;exports.isObjectAttribute=dA;exports.isObjectDatasource=Dm;exports.isRelatedAttribute=pA;exports.isRelatedEntitiesAttribute=Im;exports.isRelatedEntityAttribute=Lm;exports.isScalarDatasource=km;exports.isSimpleAttribute=Am;exports.isSimpleDatasource=bA;exports.loadDS=TA;exports.log=lI;exports.login=YA;exports.lspSubject=JP;exports.moveItem=DA;exports.outBy=aA;exports.outById=sA;exports.parseAttributes=RA;exports.queue=Rm;exports.removeAttributesString=Fm;exports.removeItem=MA;exports.renameFile=UA;exports.renameFolder=qA;exports.sanitizeContent=vs;exports.saveContent=kA;exports.setCraftedComponents=iI;exports.setFileContent=yc;exports.setSharedSources=rI;exports.stringifyAttributes=$m;exports.tabEventsSubject=ZP;exports.toastSubject=VP;exports.transformDates=IA;exports.useDidMountEffect=fP;exports.useDoubleClick=NP;exports.useFeatureFlags=IP;exports.useForwardedRef=AP;exports.useHotkeys=TP;exports.useIdentity=MP;exports.useOutsideClick=CP;exports.usePrevious=RP;exports.useStateObject=DP;exports.useStateRef=PP;exports.useTip=Gv;exports.validateName=Em;exports.validateServerSide=eA;exports.validateValue=tA;exports.webformSubject=XP;
206
206
  //# sourceMappingURL=index.cjs.js.map