@ws-ui/shared 0.1.7 → 0.1.8

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 R_=Object.defineProperty;var P_=(e,r,n)=>r in e?R_(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n;var md=(e,r,n)=>(P_(e,typeof r!="symbol"?r+"":r,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("react"),Ba=require("react-dom"),Vu=require("@emotion/react");function Yp(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 I=Yp(q),A_=Yp(Ba);var Fr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function I_(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 Ju={exports:{}},di={};/*
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 Ud=(e,r,n)=>(iS(e,typeof r!="symbol"?r+"":r,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("react"),yo=require("react-dom"),pl=require("@emotion/react");function yh(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=yh(k),oS=yh(yo);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 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 hl={exports:{}},wi={};/*
2
2
  object-assign
3
3
  (c) Sindre Sorhus
4
4
  @license MIT
5
- */var du,gd;function wc(){if(gd)return du;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 c={},f=0;f<10;f++)c["_"+String.fromCharCode(f)]=f;var h=Object.getOwnPropertyNames(c).map(function(y){return c[y]});if(h.join("")!=="0123456789")return!1;var m={};return"abcdefghijklmnopqrst".split("").forEach(function(y){m[y]=y}),Object.keys(Object.assign({},m)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return du=a()?Object.assign:function(u,c){for(var f,h=o(u),m,y=1;y<arguments.length;y++){f=Object(arguments[y]);for(var _ in f)r.call(f,_)&&(h[_]=f[_]);if(e){m=e(f);for(var O=0;O<m.length;O++)n.call(f,m[O])&&(h[m[O]]=f[m[O]])}}return h},du}/** @license React v17.0.2
5
+ */var Tu,Bd;function Fl(){if(Bd)return Tu;Bd=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 m={};return"abcdefghijklmnopqrst".split("").forEach(function(g){m[g]=g}),Object.keys(Object.assign({},m)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Tu=a()?Object.assign:function(u,l){for(var f,d=o(u),m,g=1;g<arguments.length;g++){f=Object(arguments[g]);for(var _ in f)r.call(f,_)&&(d[_]=f[_]);if(e){m=e(f);for(var O=0;O<m.length;O++)n.call(f,m[O])&&(d[m[O]]=f[m[O]])}}return d},Tu}/** @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 yd;function L_(){if(yd)return di;yd=1,wc();var e=q,r=60103;if(di.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var n=Symbol.for;r=n("react.element"),di.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 c(f,h,m){var y,_={},O=null,v=null;m!==void 0&&(O=""+m),h.key!==void 0&&(O=""+h.key),h.ref!==void 0&&(v=h.ref);for(y in h)a.call(h,y)&&!u.hasOwnProperty(y)&&(_[y]=h[y]);if(f&&f.defaultProps)for(y in h=f.defaultProps,h)_[y]===void 0&&(_[y]=h[y]);return{$$typeof:r,type:f,key:O,ref:v,props:_,_owner:o.current}}return di.jsx=c,di.jsxs=c,di}var pu={};/** @license React v17.0.2
12
+ */var Hd;function sS(){if(Hd)return wi;Hd=1,Fl();var e=k,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,m){var g,_={},O=null,v=null;m!==void 0&&(O=""+m),d.key!==void 0&&(O=""+d.key),d.ref!==void 0&&(v=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:v,props:_,_owner:o.current}}return wi.jsx=l,wi.jsxs=l,wi}var Cu={};/** @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 wd;function M_(){return wd||(wd=1,function(e){process.env.NODE_ENV!=="production"&&function(){var r=q,n=wc(),o=60103,a=60106;e.Fragment=60107;var u=60108,c=60114,f=60109,h=60110,m=60112,y=60113,_=60120,O=60115,v=60116,S=60121,w=60122,T=60117,D=60129,M=60131;if(typeof Symbol=="function"&&Symbol.for){var R=Symbol.for;o=R("react.element"),a=R("react.portal"),e.Fragment=R("react.fragment"),u=R("react.strict_mode"),c=R("react.profiler"),f=R("react.provider"),h=R("react.context"),m=R("react.forward_ref"),y=R("react.suspense"),_=R("react.suspense_list"),O=R("react.memo"),v=R("react.lazy"),S=R("react.block"),w=R("react.server.block"),T=R("react.fundamental"),R("react.scope"),R("react.opaque.id"),D=R("react.debug_trace_mode"),R("react.offscreen"),M=R("react.legacy_hidden")}var k=typeof Symbol=="function"&&Symbol.iterator,x="@@iterator";function W(d){if(d===null||typeof d!="object")return null;var P=k&&d[k]||d[x];return typeof P=="function"?P:null}var F=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function $(d){{for(var P=arguments.length,N=new Array(P>1?P-1:0),Y=1;Y<P;Y++)N[Y-1]=arguments[Y];Z("error",d,N)}}function Z(d,P,N){{var Y=F.ReactDebugCurrentFrame,ie=Y.getStackAddendum();ie!==""&&(P+="%s",N=N.concat([ie]));var oe=N.map(function(ee){return""+ee});oe.unshift("Warning: "+P),Function.prototype.apply.call(console[d],console,oe)}}var ne=!1;function we(d){return!!(typeof d=="string"||typeof d=="function"||d===e.Fragment||d===c||d===D||d===u||d===y||d===_||d===M||ne||typeof d=="object"&&d!==null&&(d.$$typeof===v||d.$$typeof===O||d.$$typeof===f||d.$$typeof===h||d.$$typeof===m||d.$$typeof===T||d.$$typeof===S||d[0]===w))}function Me(d,P,N){var Y=P.displayName||P.name||"";return d.displayName||(Y!==""?N+"("+Y+")":N)}function Oe(d){return d.displayName||"Context"}function ue(d){if(d==null)return null;if(typeof d.tag=="number"&&$("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof d=="function")return d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case e.Fragment:return"Fragment";case a:return"Portal";case c:return"Profiler";case u:return"StrictMode";case y:return"Suspense";case _:return"SuspenseList"}if(typeof d=="object")switch(d.$$typeof){case h:var P=d;return Oe(P)+".Consumer";case f:var N=d;return Oe(N._context)+".Provider";case m:return Me(d,d.render,"ForwardRef");case O:return ue(d.type);case S:return ue(d._render);case v:{var Y=d,ie=Y._payload,oe=Y._init;try{return ue(oe(ie))}catch{return null}}}return null}var ke=0,_e,Ie,qe,ft,G,X,ve;function me(){}me.__reactDisabledLog=!0;function ce(){{if(ke===0){_e=console.log,Ie=console.info,qe=console.warn,ft=console.error,G=console.group,X=console.groupCollapsed,ve=console.groupEnd;var d={configurable:!0,enumerable:!0,value:me,writable:!0};Object.defineProperties(console,{info:d,log:d,warn:d,error:d,group:d,groupCollapsed:d,groupEnd:d})}ke++}}function le(){{if(ke--,ke===0){var d={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:n({},d,{value:_e}),info:n({},d,{value:Ie}),warn:n({},d,{value:qe}),error:n({},d,{value:ft}),group:n({},d,{value:G}),groupCollapsed:n({},d,{value:X}),groupEnd:n({},d,{value:ve})})}ke<0&&$("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ae=F.ReactCurrentDispatcher,fe;function se(d,P,N){{if(fe===void 0)try{throw Error()}catch(ie){var Y=ie.stack.trim().match(/\n( *(at )?)/);fe=Y&&Y[1]||""}return`
20
- `+fe+d}}var ge=!1,ye;{var Ge=typeof WeakMap=="function"?WeakMap:Map;ye=new Ge}function V(d,P){if(!d||ge)return"";{var N=ye.get(d);if(N!==void 0)return N}var Y;ge=!0;var ie=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var oe;oe=ae.current,ae.current=null,ce();try{if(P){var ee=function(){throw Error()};if(Object.defineProperty(ee.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ee,[])}catch(st){Y=st}Reflect.construct(d,[],ee)}else{try{ee.call()}catch(st){Y=st}d.call(ee.prototype)}}else{try{throw Error()}catch(st){Y=st}d()}}catch(st){if(st&&Y&&typeof st.stack=="string"){for(var Q=st.stack.split(`
19
+ */var zd;function uS(){return zd||(zd=1,function(e){process.env.NODE_ENV!=="production"&&function(){var r=k,n=Fl(),o=60103,a=60106;e.Fragment=60107;var u=60108,l=60114,f=60109,d=60110,m=60112,g=60113,_=60120,O=60115,v=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"),m=C("react.forward_ref"),g=C("react.suspense"),_=C("react.suspense_list"),O=C("react.memo"),v=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 N=typeof Symbol=="function"&&Symbol.iterator,T="@@iterator";function U(p){if(p===null||typeof p!="object")return null;var P=N&&p[N]||p[T];return typeof P=="function"?P:null}var B=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=B.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===v||p.$$typeof===O||p.$$typeof===f||p.$$typeof===d||p.$$typeof===m||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 m:return Ce(p,p.render,"ForwardRef");case O:return se(p.type);case S:return se(p._render);case v:{var Y=p,oe=Y._payload,ae=Y._init;try{return se(ae(oe))}catch{return null}}}return null}var Le=0,be,xe,We,st,K,V,de;function ie(){}ie.__reactDisabledLog=!0;function ce(){{if(Le===0){be=console.log,xe=console.info,We=console.warn,st=console.error,K=console.group,V=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:be}),info:n({},p,{value:xe}),warn:n({},p,{value:We}),error:n({},p,{value:st}),group:n({},p,{value:K}),groupCollapsed:n({},p,{value:V}),groupEnd:n({},p,{value:de})})}Le<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ue=B.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,we;{var Ge=typeof WeakMap=="function"?WeakMap:Map;we=new Ge}function X(p,P){if(!p||ye)return"";{var F=we.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(ut){Y=ut}Reflect.construct(p,[],te)}else{try{te.call()}catch(ut){Y=ut}p.call(te.prototype)}}else{try{throw Error()}catch(ut){Y=ut}p()}}catch(ut){if(ut&&Y&&typeof ut.stack=="string"){for(var Q=ut.stack.split(`
21
21
  `),je=Y.stack.split(`
22
- `),be=Q.length-1,Ee=je.length-1;be>=1&&Ee>=0&&Q[be]!==je[Ee];)Ee--;for(;be>=1&&Ee>=0;be--,Ee--)if(Q[be]!==je[Ee]){if(be!==1||Ee!==1)do if(be--,Ee--,Ee<0||Q[be]!==je[Ee]){var it=`
23
- `+Q[be].replace(" at new "," at ");return typeof d=="function"&&ye.set(d,it),it}while(be>=1&&Ee>=0);break}}}finally{ge=!1,ae.current=oe,le(),Error.prepareStackTrace=ie}var It=d?d.displayName||d.name:"",Tr=It?se(It):"";return typeof d=="function"&&ye.set(d,Tr),Tr}function nt(d,P,N){return V(d,!1)}function rt(d){var P=d.prototype;return!!(P&&P.isReactComponent)}function lt(d,P,N){if(d==null)return"";if(typeof d=="function")return V(d,rt(d));if(typeof d=="string")return se(d);switch(d){case y:return se("Suspense");case _:return se("SuspenseList")}if(typeof d=="object")switch(d.$$typeof){case m:return nt(d.render);case O:return lt(d.type,P,N);case S:return nt(d._render);case v:{var Y=d,ie=Y._payload,oe=Y._init;try{return lt(oe(ie),P,N)}catch{}}}return""}var Pn={},vt=F.ReactDebugCurrentFrame;function $t(d){if(d){var P=d._owner,N=lt(d.type,d._source,P?P.type:null);vt.setExtraStackFrame(N)}else vt.setExtraStackFrame(null)}function gr(d,P,N,Y,ie){{var oe=Function.call.bind(Object.prototype.hasOwnProperty);for(var ee in d)if(oe(d,ee)){var Q=void 0;try{if(typeof d[ee]!="function"){var je=Error((Y||"React class")+": "+N+" type `"+ee+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof d[ee]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw je.name="Invariant Violation",je}Q=d[ee](P,ee,Y,N,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(be){Q=be}Q&&!(Q instanceof Error)&&($t(ie),$("%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",N,ee,typeof Q),$t(null)),Q instanceof Error&&!(Q.message in Pn)&&(Pn[Q.message]=!0,$t(ie),$("Failed %s type: %s",N,Q.message),$t(null))}}}var Je=F.ReactCurrentOwner,Qe=Object.prototype.hasOwnProperty,tn={key:!0,ref:!0,__self:!0,__source:!0},qt,mn,Et;Et={};function Qn(d){if(Qe.call(d,"ref")){var P=Object.getOwnPropertyDescriptor(d,"ref").get;if(P&&P.isReactWarning)return!1}return d.ref!==void 0}function nn(d){if(Qe.call(d,"key")){var P=Object.getOwnPropertyDescriptor(d,"key").get;if(P&&P.isReactWarning)return!1}return d.key!==void 0}function Kt(d,P){if(typeof d.ref=="string"&&Je.current&&P&&Je.current.stateNode!==P){var N=ue(Je.current.type);Et[N]||($('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',ue(Je.current.type),d.ref),Et[N]=!0)}}function yr(d,P){{var N=function(){qt||(qt=!0,$("%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))};N.isReactWarning=!0,Object.defineProperty(d,"key",{get:N,configurable:!0})}}function wr(d,P){{var N=function(){mn||(mn=!0,$("%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))};N.isReactWarning=!0,Object.defineProperty(d,"ref",{get:N,configurable:!0})}}var br=function(d,P,N,Y,ie,oe,ee){var Q={$$typeof:o,type:d,key:P,ref:N,props:ee,_owner:oe};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:ie}),Object.freeze&&(Object.freeze(Q.props),Object.freeze(Q)),Q};function _r(d,P,N,Y,ie){{var oe,ee={},Q=null,je=null;N!==void 0&&(Q=""+N),nn(P)&&(Q=""+P.key),Qn(P)&&(je=P.ref,Kt(P,ie));for(oe in P)Qe.call(P,oe)&&!tn.hasOwnProperty(oe)&&(ee[oe]=P[oe]);if(d&&d.defaultProps){var be=d.defaultProps;for(oe in be)ee[oe]===void 0&&(ee[oe]=be[oe])}if(Q||je){var Ee=typeof d=="function"?d.displayName||d.name||"Unknown":d;Q&&yr(ee,Ee),je&&wr(ee,Ee)}return br(d,Q,je,ie,Y,Je.current,ee)}}var gn=F.ReactCurrentOwner,Fn=F.ReactDebugCurrentFrame;function yt(d){if(d){var P=d._owner,N=lt(d.type,d._source,P?P.type:null);Fn.setExtraStackFrame(N)}else Fn.setExtraStackFrame(null)}var yn;yn=!1;function wn(d){return typeof d=="object"&&d!==null&&d.$$typeof===o}function Sr(){{if(gn.current){var d=ue(gn.current.type);if(d)return`
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 it=`
23
+ `+Q[Se].replace(" at new "," at ");return typeof p=="function"&&we.set(p,it),it}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"&&we.set(p,Ir),Ir}function nt(p,P,F){return X(p,!1)}function rt(p){var P=p.prototype;return!!(P&&P.isReactComponent)}function ft(p,P,F){if(p==null)return"";if(typeof p=="function")return X(p,rt(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 m:return nt(p.render);case O:return ft(p.type,P,F);case S:return nt(p._render);case v:{var Y=p,oe=Y._payload,ae=Y._init;try{return ft(ae(oe),P,F)}catch{}}}return""}var An={},mt=B.ReactDebugCurrentFrame;function Wt(p){if(p){var P=p._owner,F=ft(p.type,p._source,P?P.type:null);mt.setExtraStackFrame(F)}else mt.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=B.ReactCurrentOwner,Qe=Object.prototype.hasOwnProperty,rn={key:!0,ref:!0,__self:!0,__source:!0},Gt,gn,Ot;Ot={};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);Ot[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),Ot[F]=!0)}}function Er(p,P){{var F=function(){Gt||(Gt=!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=B.ReactCurrentOwner,Bn=B.ReactDebugCurrentFrame;function wt(p){if(p){var P=p._owner,F=ft(p.type,p._source,P?P.type:null);Bn.setExtraStackFrame(F)}else Bn.setExtraStackFrame(null)}var bn;bn=!1;function wn(p){return typeof p=="object"&&p!==null&&p.$$typeof===o}function Cr(){{if(yn.current){var p=se(yn.current.type);if(p)return`
24
24
 
25
- Check the render method of \``+d+"`."}return""}}function Ti(d){{if(d!==void 0){var P=d.fileName.replace(/^.*[\\\/]/,""),N=d.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+":"+N+"."}return""}}var Er={};function Vr(d){{var P=Sr();if(!P){var N=typeof d=="string"?d:d.displayName||d.name;N&&(P=`
27
+ Check your code at `+P+":"+F+"."}return""}}var Rr={};function ii(p){{var P=Cr();if(!P){var F=typeof p=="string"?p:p.displayName||p.name;F&&(P=`
28
28
 
29
- Check the top-level render call using <`+N+">.")}return P}}function er(d,P){{if(!d._store||d._store.validated||d.key!=null)return;d._store.validated=!0;var N=Vr(P);if(Er[N])return;Er[N]=!0;var Y="";d&&d._owner&&d._owner!==gn.current&&(Y=" It was passed a child from "+ue(d._owner.type)+"."),yt(d),$('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',N,Y),yt(null)}}function xr(d,P){{if(typeof d!="object")return;if(Array.isArray(d))for(var N=0;N<d.length;N++){var Y=d[N];wn(Y)&&er(Y,P)}else if(wn(d))d._store&&(d._store.validated=!0);else if(d){var ie=W(d);if(typeof ie=="function"&&ie!==d.entries)for(var oe=ie.call(d),ee;!(ee=oe.next()).done;)wn(ee.value)&&er(ee.value,P)}}}function Ci(d){{var P=d.type;if(P==null||typeof P=="string")return;var N;if(typeof P=="function")N=P.propTypes;else if(typeof P=="object"&&(P.$$typeof===m||P.$$typeof===O))N=P.propTypes;else return;if(N){var Y=ue(P);gr(N,d.props,"prop",Y,d)}else if(P.PropTypes!==void 0&&!yn){yn=!0;var ie=ue(P);$("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ie||"Unknown")}typeof P.getDefaultProps=="function"&&!P.getDefaultProps.isReactClassApproved&&$("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ri(d){{for(var P=Object.keys(d.props),N=0;N<P.length;N++){var Y=P[N];if(Y!=="children"&&Y!=="key"){yt(d),$("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Y),yt(null);break}}d.ref!==null&&(yt(d),$("Invalid attribute `ref` supplied to `React.Fragment`."),yt(null))}}function Or(d,P,N,Y,ie,oe){{var ee=we(d);if(!ee){var Q="";(d===void 0||typeof d=="object"&&d!==null&&Object.keys(d).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=Ti(ie);je?Q+=je:Q+=Sr();var be;d===null?be="null":Array.isArray(d)?be="array":d!==void 0&&d.$$typeof===o?(be="<"+(ue(d.type)||"Unknown")+" />",Q=" Did you accidentally export a JSX literal instead of a component?"):be=typeof d,$("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",be,Q)}var Ee=_r(d,P,N,ie,oe);if(Ee==null)return Ee;if(ee){var it=P.children;if(it!==void 0)if(Y)if(Array.isArray(it)){for(var It=0;It<it.length;It++)xr(it[It],d);Object.freeze&&Object.freeze(it)}else $("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 xr(it,d)}return d===e.Fragment?Ri(Ee):Ci(Ee),Ee}}function Jr(d,P,N){return Or(d,P,N,!0)}function Pi(d,P,N){return Or(d,P,N,!1)}var Ai=Pi,Ii=Jr;e.jsx=Ai,e.jsxs=Ii}()}(pu)),pu}process.env.NODE_ENV==="production"?Ju.exports=L_():Ju.exports=M_();var B=Ju.exports;const Vp=({children:e})=>Ba.createPortal(e,document.querySelector("body"));var bd=function(r){return r.reduce(function(n,o){var a=o[0],u=o[1];return n[a]=u,n},{})},_d=typeof window<"u"&&window.document&&window.document.createElement?I.useLayoutEffect:I.useEffect,Bt="top",pn="bottom",hn="right",Ht="left",bc="auto",uo=[Bt,pn,hn,Ht],wi="start",eo="end",D_="clippingParents",Jp="viewport",Gi="popper",k_="reference",Sd=uo.reduce(function(e,r){return e.concat([r+"-"+wi,r+"-"+eo])},[]),Zp=[].concat(uo,[bc]).reduce(function(e,r){return e.concat([r,r+"-"+wi,r+"-"+eo])},[]),N_="beforeRead",$_="read",j_="afterRead",F_="beforeMain",W_="main",U_="afterMain",B_="beforeWrite",H_="write",z_="afterWrite",q_=[N_,$_,j_,F_,W_,U_,B_,H_,z_];function $n(e){return e?(e.nodeName||"").toLowerCase():null}function en(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var r=e.ownerDocument;return r&&r.defaultView||window}return e}function qr(e){var r=en(e).Element;return e instanceof r||e instanceof Element}function dn(e){var r=en(e).HTMLElement;return e instanceof r||e instanceof HTMLElement}function _c(e){if(typeof ShadowRoot>"u")return!1;var r=en(e).ShadowRoot;return e instanceof r||e instanceof ShadowRoot}function K_(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];!dn(u)||!$n(u)||(Object.assign(u.style,o),Object.keys(a).forEach(function(c){var f=a[c];f===!1?u.removeAttribute(c):u.setAttribute(c,f===!0?"":f)}))})}function G_(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]||{},c=Object.keys(r.styles.hasOwnProperty(o)?r.styles[o]:n[o]),f=c.reduce(function(h,m){return h[m]="",h},{});!dn(a)||!$n(a)||(Object.assign(a.style,f),Object.keys(u).forEach(function(h){a.removeAttribute(h)}))})}}const Y_={name:"applyStyles",enabled:!0,phase:"write",fn:K_,effect:G_,requires:["computeStyles"]};function Nn(e){return e.split("-")[0]}var Br=Math.max,Ma=Math.min,bi=Math.round;function Zu(){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 Qp(){return!/^((?!chrome|android).)*safari/i.test(Zu())}function _i(e,r,n){r===void 0&&(r=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),a=1,u=1;r&&dn(e)&&(a=e.offsetWidth>0&&bi(o.width)/e.offsetWidth||1,u=e.offsetHeight>0&&bi(o.height)/e.offsetHeight||1);var c=qr(e)?en(e):window,f=c.visualViewport,h=!Qp()&&n,m=(o.left+(h&&f?f.offsetLeft:0))/a,y=(o.top+(h&&f?f.offsetTop:0))/u,_=o.width/a,O=o.height/u;return{width:_,height:O,top:y,right:m+_,bottom:y+O,left:m,x:m,y}}function Sc(e){var r=_i(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 eh(e,r){var n=r.getRootNode&&r.getRootNode();if(e.contains(r))return!0;if(n&&_c(n)){var o=r;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Zn(e){return en(e).getComputedStyle(e)}function X_(e){return["table","td","th"].indexOf($n(e))>=0}function mr(e){return((qr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ha(e){return $n(e)==="html"?e:e.assignedSlot||e.parentNode||(_c(e)?e.host:null)||mr(e)}function Ed(e){return!dn(e)||Zn(e).position==="fixed"?null:e.offsetParent}function V_(e){var r=/firefox/i.test(Zu()),n=/Trident/i.test(Zu());if(n&&dn(e)){var o=Zn(e);if(o.position==="fixed")return null}var a=Ha(e);for(_c(a)&&(a=a.host);dn(a)&&["html","body"].indexOf($n(a))<0;){var u=Zn(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 co(e){for(var r=en(e),n=Ed(e);n&&X_(n)&&Zn(n).position==="static";)n=Ed(n);return n&&($n(n)==="html"||$n(n)==="body"&&Zn(n).position==="static")?r:n||V_(e)||r}function Ec(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Vi(e,r,n){return Br(e,Ma(r,n))}function J_(e,r,n){var o=Vi(e,r,n);return o>n?n:o}function th(){return{top:0,right:0,bottom:0,left:0}}function nh(e){return Object.assign({},th(),e)}function rh(e,r){return r.reduce(function(n,o){return n[o]=e,n},{})}var Z_=function(r,n){return r=typeof r=="function"?r(Object.assign({},n.rects,{placement:n.placement})):r,nh(typeof r!="number"?r:rh(r,uo))};function Q_(e){var r,n=e.state,o=e.name,a=e.options,u=n.elements.arrow,c=n.modifiersData.popperOffsets,f=Nn(n.placement),h=Ec(f),m=[Ht,hn].indexOf(f)>=0,y=m?"height":"width";if(!(!u||!c)){var _=Z_(a.padding,n),O=Sc(u),v=h==="y"?Bt:Ht,S=h==="y"?pn:hn,w=n.rects.reference[y]+n.rects.reference[h]-c[h]-n.rects.popper[y],T=c[h]-n.rects.reference[h],D=co(u),M=D?h==="y"?D.clientHeight||0:D.clientWidth||0:0,R=w/2-T/2,k=_[v],x=M-O[y]-_[S],W=M/2-O[y]/2+R,F=Vi(k,W,x),$=h;n.modifiersData[o]=(r={},r[$]=F,r.centerOffset=F-W,r)}}function eS(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)||eh(r.elements.popper,a)&&(r.elements.arrow=a))}const tS={name:"arrow",enabled:!0,phase:"main",fn:Q_,effect:eS,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Si(e){return e.split("-")[1]}var nS={top:"auto",right:"auto",bottom:"auto",left:"auto"};function rS(e,r){var n=e.x,o=e.y,a=r.devicePixelRatio||1;return{x:bi(n*a)/a||0,y:bi(o*a)/a||0}}function xd(e){var r,n=e.popper,o=e.popperRect,a=e.placement,u=e.variation,c=e.offsets,f=e.position,h=e.gpuAcceleration,m=e.adaptive,y=e.roundOffsets,_=e.isFixed,O=c.x,v=O===void 0?0:O,S=c.y,w=S===void 0?0:S,T=typeof y=="function"?y({x:v,y:w}):{x:v,y:w};v=T.x,w=T.y;var D=c.hasOwnProperty("x"),M=c.hasOwnProperty("y"),R=Ht,k=Bt,x=window;if(m){var W=co(n),F="clientHeight",$="clientWidth";if(W===en(n)&&(W=mr(n),Zn(W).position!=="static"&&f==="absolute"&&(F="scrollHeight",$="scrollWidth")),W=W,a===Bt||(a===Ht||a===hn)&&u===eo){k=pn;var Z=_&&W===x&&x.visualViewport?x.visualViewport.height:W[F];w-=Z-o.height,w*=h?1:-1}if(a===Ht||(a===Bt||a===pn)&&u===eo){R=hn;var ne=_&&W===x&&x.visualViewport?x.visualViewport.width:W[$];v-=ne-o.width,v*=h?1:-1}}var we=Object.assign({position:f},m&&nS),Me=y===!0?rS({x:v,y:w},en(n)):{x:v,y:w};if(v=Me.x,w=Me.y,h){var Oe;return Object.assign({},we,(Oe={},Oe[k]=M?"0":"",Oe[R]=D?"0":"",Oe.transform=(x.devicePixelRatio||1)<=1?"translate("+v+"px, "+w+"px)":"translate3d("+v+"px, "+w+"px, 0)",Oe))}return Object.assign({},we,(r={},r[k]=M?w+"px":"",r[R]=D?v+"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,c=u===void 0?!0:u,f=n.roundOffsets,h=f===void 0?!0:f,m={placement:Nn(r.placement),variation:Si(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,xd(Object.assign({},m,{offsets:r.modifiersData.popperOffsets,position:r.options.strategy,adaptive:c,roundOffsets:h})))),r.modifiersData.arrow!=null&&(r.styles.arrow=Object.assign({},r.styles.arrow,xd(Object.assign({},m,{offsets:r.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:h})))),r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-placement":r.placement})}const oS={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:iS,data:{}};var ua={passive:!0};function aS(e){var r=e.state,n=e.instance,o=e.options,a=o.scroll,u=a===void 0?!0:a,c=o.resize,f=c===void 0?!0:c,h=en(r.elements.popper),m=[].concat(r.scrollParents.reference,r.scrollParents.popper);return u&&m.forEach(function(y){y.addEventListener("scroll",n.update,ua)}),f&&h.addEventListener("resize",n.update,ua),function(){u&&m.forEach(function(y){y.removeEventListener("scroll",n.update,ua)}),f&&h.removeEventListener("resize",n.update,ua)}}const sS={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:aS,data:{}};var uS={left:"right",right:"left",bottom:"top",top:"bottom"};function Ta(e){return e.replace(/left|right|bottom|top/g,function(r){return uS[r]})}var cS={start:"end",end:"start"};function Od(e){return e.replace(/start|end/g,function(r){return cS[r]})}function xc(e){var r=en(e),n=r.pageXOffset,o=r.pageYOffset;return{scrollLeft:n,scrollTop:o}}function Oc(e){return _i(mr(e)).left+xc(e).scrollLeft}function lS(e,r){var n=en(e),o=mr(e),a=n.visualViewport,u=o.clientWidth,c=o.clientHeight,f=0,h=0;if(a){u=a.width,c=a.height;var m=Qp();(m||!m&&r==="fixed")&&(f=a.offsetLeft,h=a.offsetTop)}return{width:u,height:c,x:f+Oc(e),y:h}}function fS(e){var r,n=mr(e),o=xc(e),a=(r=e.ownerDocument)==null?void 0:r.body,u=Br(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),c=Br(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),f=-o.scrollLeft+Oc(e),h=-o.scrollTop;return Zn(a||n).direction==="rtl"&&(f+=Br(n.clientWidth,a?a.clientWidth:0)-u),{width:u,height:c,x:f,y:h}}function Tc(e){var r=Zn(e),n=r.overflow,o=r.overflowX,a=r.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+o)}function ih(e){return["html","body","#document"].indexOf($n(e))>=0?e.ownerDocument.body:dn(e)&&Tc(e)?e:ih(Ha(e))}function Ji(e,r){var n;r===void 0&&(r=[]);var o=ih(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),u=en(o),c=a?[u].concat(u.visualViewport||[],Tc(o)?o:[]):o,f=r.concat(c);return a?f:f.concat(Ji(Ha(c)))}function Qu(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function dS(e,r){var n=_i(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 Td(e,r,n){return r===Jp?Qu(lS(e,n)):qr(r)?dS(r,n):Qu(fS(mr(e)))}function pS(e){var r=Ji(Ha(e)),n=["absolute","fixed"].indexOf(Zn(e).position)>=0,o=n&&dn(e)?co(e):e;return qr(o)?r.filter(function(a){return qr(a)&&eh(a,o)&&$n(a)!=="body"}):[]}function hS(e,r,n,o){var a=r==="clippingParents"?pS(e):[].concat(r),u=[].concat(a,[n]),c=u[0],f=u.reduce(function(h,m){var y=Td(e,m,o);return h.top=Br(y.top,h.top),h.right=Ma(y.right,h.right),h.bottom=Ma(y.bottom,h.bottom),h.left=Br(y.left,h.left),h},Td(e,c,o));return f.width=f.right-f.left,f.height=f.bottom-f.top,f.x=f.left,f.y=f.top,f}function oh(e){var r=e.reference,n=e.element,o=e.placement,a=o?Nn(o):null,u=o?Si(o):null,c=r.x+r.width/2-n.width/2,f=r.y+r.height/2-n.height/2,h;switch(a){case Bt:h={x:c,y:r.y-n.height};break;case pn:h={x:c,y:r.y+r.height};break;case hn:h={x:r.x+r.width,y:f};break;case Ht:h={x:r.x-n.width,y:f};break;default:h={x:r.x,y:r.y}}var m=a?Ec(a):null;if(m!=null){var y=m==="y"?"height":"width";switch(u){case wi:h[m]=h[m]-(r[y]/2-n[y]/2);break;case eo:h[m]=h[m]+(r[y]/2-n[y]/2);break}}return h}function to(e,r){r===void 0&&(r={});var n=r,o=n.placement,a=o===void 0?e.placement:o,u=n.strategy,c=u===void 0?e.strategy:u,f=n.boundary,h=f===void 0?D_:f,m=n.rootBoundary,y=m===void 0?Jp:m,_=n.elementContext,O=_===void 0?Gi:_,v=n.altBoundary,S=v===void 0?!1:v,w=n.padding,T=w===void 0?0:w,D=nh(typeof T!="number"?T:rh(T,uo)),M=O===Gi?k_:Gi,R=e.rects.popper,k=e.elements[S?M:O],x=hS(qr(k)?k:k.contextElement||mr(e.elements.popper),h,y,c),W=_i(e.elements.reference),F=oh({reference:W,element:R,strategy:"absolute",placement:a}),$=Qu(Object.assign({},R,F)),Z=O===Gi?$:W,ne={top:x.top-Z.top+D.top,bottom:Z.bottom-x.bottom+D.bottom,left:x.left-Z.left+D.left,right:Z.right-x.right+D.right},we=e.modifiersData.offset;if(O===Gi&&we){var Me=we[a];Object.keys(ne).forEach(function(Oe){var ue=[hn,pn].indexOf(Oe)>=0?1:-1,ke=[Bt,pn].indexOf(Oe)>=0?"y":"x";ne[Oe]+=Me[ke]*ue})}return ne}function vS(e,r){r===void 0&&(r={});var n=r,o=n.placement,a=n.boundary,u=n.rootBoundary,c=n.padding,f=n.flipVariations,h=n.allowedAutoPlacements,m=h===void 0?Zp:h,y=Si(o),_=y?f?Sd:Sd.filter(function(S){return Si(S)===y}):uo,O=_.filter(function(S){return m.indexOf(S)>=0});O.length===0&&(O=_);var v=O.reduce(function(S,w){return S[w]=to(e,{placement:w,boundary:a,rootBoundary:u,padding:c})[Nn(w)],S},{});return Object.keys(v).sort(function(S,w){return v[S]-v[w]})}function mS(e){if(Nn(e)===bc)return[];var r=Ta(e);return[Od(e),r,Od(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,c=n.altAxis,f=c===void 0?!0:c,h=n.fallbackPlacements,m=n.padding,y=n.boundary,_=n.rootBoundary,O=n.altBoundary,v=n.flipVariations,S=v===void 0?!0:v,w=n.allowedAutoPlacements,T=r.options.placement,D=Nn(T),M=D===T,R=h||(M||!S?[Ta(T)]:mS(T)),k=[T].concat(R).reduce(function(ce,le){return ce.concat(Nn(le)===bc?vS(r,{placement:le,boundary:y,rootBoundary:_,padding:m,flipVariations:S,allowedAutoPlacements:w}):le)},[]),x=r.rects.reference,W=r.rects.popper,F=new Map,$=!0,Z=k[0],ne=0;ne<k.length;ne++){var we=k[ne],Me=Nn(we),Oe=Si(we)===wi,ue=[Bt,pn].indexOf(Me)>=0,ke=ue?"width":"height",_e=to(r,{placement:we,boundary:y,rootBoundary:_,altBoundary:O,padding:m}),Ie=ue?Oe?hn:Ht:Oe?pn:Bt;x[ke]>W[ke]&&(Ie=Ta(Ie));var qe=Ta(Ie),ft=[];if(u&&ft.push(_e[Me]<=0),f&&ft.push(_e[Ie]<=0,_e[qe]<=0),ft.every(function(ce){return ce})){Z=we,$=!1;break}F.set(we,ft)}if($)for(var G=S?3:1,X=function(le){var ae=k.find(function(fe){var se=F.get(fe);if(se)return se.slice(0,le).every(function(ge){return ge})});if(ae)return Z=ae,"break"},ve=G;ve>0;ve--){var me=X(ve);if(me==="break")break}r.placement!==Z&&(r.modifiersData[o]._skip=!0,r.placement=Z,r.reset=!0)}}const yS={name:"flip",enabled:!0,phase:"main",fn:gS,requiresIfExists:["offset"],data:{_skip:!1}};function Cd(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 Rd(e){return[Bt,hn,pn,Ht].some(function(r){return e[r]>=0})}function wS(e){var r=e.state,n=e.name,o=r.rects.reference,a=r.rects.popper,u=r.modifiersData.preventOverflow,c=to(r,{elementContext:"reference"}),f=to(r,{altBoundary:!0}),h=Cd(c,o),m=Cd(f,a,u),y=Rd(h),_=Rd(m);r.modifiersData[n]={referenceClippingOffsets:h,popperEscapeOffsets:m,isReferenceHidden:y,hasPopperEscaped:_},r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-reference-hidden":y,"data-popper-escaped":_})}const bS={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:wS};function _S(e,r,n){var o=Nn(e),a=[Ht,Bt].indexOf(o)>=0?-1:1,u=typeof n=="function"?n(Object.assign({},r,{placement:e})):n,c=u[0],f=u[1];return c=c||0,f=(f||0)*a,[Ht,hn].indexOf(o)>=0?{x:f,y:c}:{x:c,y:f}}function SS(e){var r=e.state,n=e.options,o=e.name,a=n.offset,u=a===void 0?[0,0]:a,c=Zp.reduce(function(y,_){return y[_]=_S(_,r.rects,u),y},{}),f=c[r.placement],h=f.x,m=f.y;r.modifiersData.popperOffsets!=null&&(r.modifiersData.popperOffsets.x+=h,r.modifiersData.popperOffsets.y+=m),r.modifiersData[o]=c}const ES={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:SS};function xS(e){var r=e.state,n=e.name;r.modifiersData[n]=oh({reference:r.rects.reference,element:r.rects.popper,strategy:"absolute",placement:r.placement})}const OS={name:"popperOffsets",enabled:!0,phase:"read",fn:xS,data:{}};function TS(e){return e==="x"?"y":"x"}function CS(e){var r=e.state,n=e.options,o=e.name,a=n.mainAxis,u=a===void 0?!0:a,c=n.altAxis,f=c===void 0?!1:c,h=n.boundary,m=n.rootBoundary,y=n.altBoundary,_=n.padding,O=n.tether,v=O===void 0?!0:O,S=n.tetherOffset,w=S===void 0?0:S,T=to(r,{boundary:h,rootBoundary:m,padding:_,altBoundary:y}),D=Nn(r.placement),M=Si(r.placement),R=!M,k=Ec(D),x=TS(k),W=r.modifiersData.popperOffsets,F=r.rects.reference,$=r.rects.popper,Z=typeof w=="function"?w(Object.assign({},r.rects,{placement:r.placement})):w,ne=typeof Z=="number"?{mainAxis:Z,altAxis:Z}:Object.assign({mainAxis:0,altAxis:0},Z),we=r.modifiersData.offset?r.modifiersData.offset[r.placement]:null,Me={x:0,y:0};if(W){if(u){var Oe,ue=k==="y"?Bt:Ht,ke=k==="y"?pn:hn,_e=k==="y"?"height":"width",Ie=W[k],qe=Ie+T[ue],ft=Ie-T[ke],G=v?-$[_e]/2:0,X=M===wi?F[_e]:$[_e],ve=M===wi?-$[_e]:-F[_e],me=r.elements.arrow,ce=v&&me?Sc(me):{width:0,height:0},le=r.modifiersData["arrow#persistent"]?r.modifiersData["arrow#persistent"].padding:th(),ae=le[ue],fe=le[ke],se=Vi(0,F[_e],ce[_e]),ge=R?F[_e]/2-G-se-ae-ne.mainAxis:X-se-ae-ne.mainAxis,ye=R?-F[_e]/2+G+se+fe+ne.mainAxis:ve+se+fe+ne.mainAxis,Ge=r.elements.arrow&&co(r.elements.arrow),V=Ge?k==="y"?Ge.clientTop||0:Ge.clientLeft||0:0,nt=(Oe=we==null?void 0:we[k])!=null?Oe:0,rt=Ie+ge-nt-V,lt=Ie+ye-nt,Pn=Vi(v?Ma(qe,rt):qe,Ie,v?Br(ft,lt):ft);W[k]=Pn,Me[k]=Pn-Ie}if(f){var vt,$t=k==="x"?Bt:Ht,gr=k==="x"?pn:hn,Je=W[x],Qe=x==="y"?"height":"width",tn=Je+T[$t],qt=Je-T[gr],mn=[Bt,Ht].indexOf(D)!==-1,Et=(vt=we==null?void 0:we[x])!=null?vt:0,Qn=mn?tn:Je-F[Qe]-$[Qe]-Et+ne.altAxis,nn=mn?Je+F[Qe]+$[Qe]-Et-ne.altAxis:qt,Kt=v&&mn?J_(Qn,Je,nn):Vi(v?Qn:tn,Je,v?nn:qt);W[x]=Kt,Me[x]=Kt-Je}r.modifiersData[o]=Me}}const RS={name:"preventOverflow",enabled:!0,phase:"main",fn:CS,requiresIfExists:["offset"]};function PS(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function AS(e){return e===en(e)||!dn(e)?xc(e):PS(e)}function IS(e){var r=e.getBoundingClientRect(),n=bi(r.width)/e.offsetWidth||1,o=bi(r.height)/e.offsetHeight||1;return n!==1||o!==1}function LS(e,r,n){n===void 0&&(n=!1);var o=dn(r),a=dn(r)&&IS(r),u=mr(r),c=_i(e,a,n),f={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(o||!o&&!n)&&(($n(r)!=="body"||Tc(u))&&(f=AS(r)),dn(r)?(h=_i(r,!0),h.x+=r.clientLeft,h.y+=r.clientTop):u&&(h.x=Oc(u))),{x:c.left+f.scrollLeft-h.x,y:c.top+f.scrollTop-h.y,width:c.width,height:c.height}}function MS(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 c=[].concat(u.requires||[],u.requiresIfExists||[]);c.forEach(function(f){if(!n.has(f)){var h=r.get(f);h&&a(h)}}),o.push(u)}return e.forEach(function(u){n.has(u.name)||a(u)}),o}function DS(e){var r=MS(e);return q_.reduce(function(n,o){return n.concat(r.filter(function(a){return a.phase===o}))},[])}function kS(e){var r;return function(){return r||(r=new Promise(function(n){Promise.resolve().then(function(){r=void 0,n(e())})})),r}}function NS(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 Pd={placement:"bottom",modifiers:[],strategy:"absolute"};function Ad(){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 $S(e){e===void 0&&(e={});var r=e,n=r.defaultModifiers,o=n===void 0?[]:n,a=r.defaultOptions,u=a===void 0?Pd:a;return function(f,h,m){m===void 0&&(m=u);var y={placement:"bottom",orderedModifiers:[],options:Object.assign({},Pd,u),modifiersData:{},elements:{reference:f,popper:h},attributes:{},styles:{}},_=[],O=!1,v={state:y,setOptions:function(D){var M=typeof D=="function"?D(y.options):D;w(),y.options=Object.assign({},u,y.options,M),y.scrollParents={reference:qr(f)?Ji(f):f.contextElement?Ji(f.contextElement):[],popper:Ji(h)};var R=DS(NS([].concat(o,y.options.modifiers)));return y.orderedModifiers=R.filter(function(k){return k.enabled}),S(),v.update()},forceUpdate:function(){if(!O){var D=y.elements,M=D.reference,R=D.popper;if(Ad(M,R)){y.rects={reference:LS(M,co(R),y.options.strategy==="fixed"),popper:Sc(R)},y.reset=!1,y.placement=y.options.placement,y.orderedModifiers.forEach(function(ne){return y.modifiersData[ne.name]=Object.assign({},ne.data)});for(var k=0;k<y.orderedModifiers.length;k++){if(y.reset===!0){y.reset=!1,k=-1;continue}var x=y.orderedModifiers[k],W=x.fn,F=x.options,$=F===void 0?{}:F,Z=x.name;typeof W=="function"&&(y=W({state:y,options:$,name:Z,instance:v})||y)}}}},update:kS(function(){return new Promise(function(T){v.forceUpdate(),T(y)})}),destroy:function(){w(),O=!0}};if(!Ad(f,h))return v;v.setOptions(m).then(function(T){!O&&m.onFirstUpdate&&m.onFirstUpdate(T)});function S(){y.orderedModifiers.forEach(function(T){var D=T.name,M=T.options,R=M===void 0?{}:M,k=T.effect;if(typeof k=="function"){var x=k({state:y,name:D,instance:v,options:R}),W=function(){};_.push(x||W)}})}function w(){_.forEach(function(T){return T()}),_=[]}return v}}var jS=[sS,OS,oS,Y_,ES,yS,RS,tS,bS],FS=$S({defaultModifiers:jS}),WS=typeof Element<"u",US=typeof Map=="function",BS=typeof Set=="function",HS=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Ca(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(!Ca(e[o],r[o]))return!1;return!0}var u;if(US&&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(!Ca(o.value[1],r.get(o.value[0])))return!1;return!0}if(BS&&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(HS&&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(WS&&e instanceof Element)return!1;for(o=n;o--!==0;)if(!((a[o]==="_owner"||a[o]==="__v"||a[o]==="__o")&&e.$$typeof)&&!Ca(e[a[o]],r[a[o]]))return!1;return!0}return e!==e&&r!==r}var zS=function(r,n){try{return Ca(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 qS=Xp(zS);var KS=[],ah=function(r,n,o){o===void 0&&(o={});var a=I.useRef(null),u={onFirstUpdate:o.onFirstUpdate,placement:o.placement||"bottom",strategy:o.strategy||"absolute",modifiers:o.modifiers||KS},c=I.useState({styles:{popper:{position:u.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),f=c[0],h=c[1],m=I.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(v){var S=v.state,w=Object.keys(S.elements);A_.flushSync(function(){h({styles:bd(w.map(function(T){return[T,S.styles[T]||{}]})),attributes:bd(w.map(function(T){return[T,S.attributes[T]]}))})})},requires:["computeStyles"]}},[]),y=I.useMemo(function(){var O={onFirstUpdate:u.onFirstUpdate,placement:u.placement,strategy:u.strategy,modifiers:[].concat(u.modifiers,[m,{name:"applyStyles",enabled:!1}])};return qS(a.current,O)?a.current||O:(a.current=O,O)},[u.onFirstUpdate,u.placement,u.strategy,u.modifiers,m]),_=I.useRef();return _d(function(){_.current&&_.current.setOptions(y)},[y]),_d(function(){if(!(r==null||n==null)){var O=o.createPopper||FS,v=O(r,n,y);return _.current=v,function(){v.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 sh=e=>B.jsx("div",{className:"absolute inset-0 z-[1999]",onClick:e.onClick}),uh=q.forwardRef(({children:e,style:r,attributes:n},o)=>B.jsx("div",{style:{...r,zIndex:2e3},...n,ref:o,className:"w-60 rounded border border-grey-900 bg-fd-gray-light shadow-2xl","data-cy":"dialogBody",children:e})),GS=({referenceElement:e,placement:r,isOpen:n,children:o,onClose:a})=>{const[u,c]=q.useState(null),{styles:f,attributes:h}=ah(e,u,{placement:r||"bottom-start"}),m=q.useCallback(()=>{a&&a()},[a]);return n?B.jsxs(Vp,{children:[B.jsx(sh,{onClick:()=>m()}),B.jsx(uh,{ref:c,style:f.popper,attributes:h.popper,children:o})]}):null};var ec={exports:{}},pi={};/*
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=ii(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)+"."),wt(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),wt(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];wn(Y)&&ir(Y,P)}else if(wn(p))p._store&&(p._store.validated=!0);else if(p){var oe=U(p);if(typeof oe=="function"&&oe!==p.entries)for(var ae=oe.call(p),te;!(te=ae.next()).done;)wn(te.value)&&ir(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===m||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&&!bn){bn=!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"){wt(p),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Y),wt(null);break}}p.ref!==null&&(wt(p),j("Invalid attribute `ref` supplied to `React.Fragment`."),wt(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=ki(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 it=P.children;if(it!==void 0)if(Y)if(Array.isArray(it)){for(var kt=0;kt<it.length;kt++)Pr(it[kt],p);Object.freeze&&Object.freeze(it)}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(it,p)}return p===e.Fragment?$i(Oe):Ni(Oe),Oe}}function oi(p,P,F){return Ar(p,P,F,!0)}function ji(p,P,F){return Ar(p,P,F,!1)}var Fi=ji,Wi=oi;e.jsx=Fi,e.jsxs=Wi}()}(Cu)),Cu}process.env.NODE_ENV==="production"?hl.exports=sS():hl.exports=uS();var $=hl.exports;const wh=({children:e})=>yo.createPortal(e,document.querySelector("body"));var qd=function(r){return r.reduce(function(n,o){var a=o[0],u=o[1];return n[a]=u,n},{})},Kd=typeof window<"u"&&window.document&&window.document.createElement?L.useLayoutEffect:L.useEffect,qt="top",vn="bottom",mn="right",Kt="left",Wl="auto",bo=[qt,vn,mn,Kt],Pi="start",lo="end",lS="clippingParents",_h="viewport",no="popper",cS="reference",Gd=bo.reduce(function(e,r){return e.concat([r+"-"+Pi,r+"-"+lo])},[]),Sh=[].concat(bo,[Wl]).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",bS="afterWrite",wS=[fS,dS,pS,hS,vS,mS,gS,yS,bS];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,m){return d[m]="",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 Gr=Math.max,za=Math.min,Ai=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 Eh(){return!/^((?!chrome|android).)*safari/i.test(vl())}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=!Eh()&&n,m=(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:m+_,bottom:g+O,left:m,x:m,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 xh(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 nr(e){return nn(e).getComputedStyle(e)}function xS(e){return["table","td","th"].indexOf(Fn(e))>=0}function _r(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)||_r(e)}function Yd(e){return!hn(e)||nr(e).position==="fixed"?null:e.offsetParent}function OS(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=ts(e);for(Ul(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=Yd(e);n&&xS(n)&&nr(n).position==="static";)n=Yd(n);return n&&(Fn(n)==="html"||Fn(n)==="body"&&nr(n).position==="static")?r:n||OS(e)||r}function Hl(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function oo(e,r,n){return Gr(e,za(r,n))}function TS(e,r,n){var o=oo(e,r,n);return o>n?n:o}function Oh(){return{top:0,right:0,bottom:0,left:0}}function Th(e){return Object.assign({},Oh(),e)}function Ch(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,Th(typeof r!="number"?r:Ch(r,bo))};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=Hl(f),m=[Kt,mn].indexOf(f)>=0,g=m?"height":"width";if(!(!u||!l)){var _=CS(a.padding,n),O=Bl(u),v=d==="y"?qt:Kt,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,N=_[v],T=I-O[g]-_[S],U=I/2-O[g]/2+C,B=oo(N,U,T),j=d;n.modifiersData[o]=(r={},r[j]=B,r.centerOffset=B-U,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)||xh(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 Vd(e){var r,n=e.popper,o=e.popperRect,a=e.placement,u=e.variation,l=e.offsets,f=e.position,d=e.gpuAcceleration,m=e.adaptive,g=e.roundOffsets,_=e.isFixed,O=l.x,v=O===void 0?0:O,S=l.y,y=S===void 0?0:S,E=typeof g=="function"?g({x:v,y}):{x:v,y};v=E.x,y=E.y;var D=l.hasOwnProperty("x"),I=l.hasOwnProperty("y"),C=Kt,N=qt,T=window;if(m){var U=wo(n),B="clientHeight",j="clientWidth";if(U===nn(n)&&(U=_r(n),nr(U).position!=="static"&&f==="absolute"&&(B="scrollHeight",j="scrollWidth")),U=U,a===qt||(a===Kt||a===mn)&&u===lo){N=vn;var J=_&&U===T&&T.visualViewport?T.visualViewport.height:U[B];y-=J-o.height,y*=d?1:-1}if(a===Kt||(a===qt||a===vn)&&u===lo){C=mn;var ee=_&&U===T&&T.visualViewport?T.visualViewport.width:U[j];v-=ee-o.width,v*=d?1:-1}}var ge=Object.assign({position:f},m&&IS),Ce=g===!0?LS({x:v,y},nn(n)):{x:v,y};if(v=Ce.x,y=Ce.y,d){var _e;return Object.assign({},ge,(_e={},_e[N]=I?"0":"",_e[C]=D?"0":"",_e.transform=(T.devicePixelRatio||1)<=1?"translate("+v+"px, "+y+"px)":"translate3d("+v+"px, "+y+"px, 0)",_e))}return Object.assign({},ge,(r={},r[N]=I?y+"px":"",r[C]=D?v+"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,m={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,Vd(Object.assign({},m,{offsets:r.modifiersData.popperOffsets,position:r.options.strategy,adaptive:l,roundOffsets:d})))),r.modifiersData.arrow!=null&&(r.styles.arrow=Object.assign({},r.styles.arrow,Vd(Object.assign({},m,{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 ba={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),m=[].concat(r.scrollParents.reference,r.scrollParents.popper);return u&&m.forEach(function(g){g.addEventListener("scroll",n.update,ba)}),f&&d.addEventListener("resize",n.update,ba),function(){u&&m.forEach(function(g){g.removeEventListener("scroll",n.update,ba)}),f&&d.removeEventListener("resize",n.update,ba)}}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 Xd(e){return e.replace(/start|end/g,function(r){return jS[r]})}function zl(e){var r=nn(e),n=r.pageXOffset,o=r.pageYOffset;return{scrollLeft:n,scrollTop:o}}function ql(e){return Ii(_r(e)).left+zl(e).scrollLeft}function FS(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 m=Eh();(m||!m&&r==="fixed")&&(f=a.offsetLeft,d=a.offsetTop)}return{width:u,height:l,x:f+ql(e),y:d}}function WS(e){var r,n=_r(e),o=zl(e),a=(r=e.ownerDocument)==null?void 0:r.body,u=Gr(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),l=Gr(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+=Gr(n.clientWidth,a?a.clientWidth:0)-u),{width:u,height:l,x:f,y:d}}function Kl(e){var r=nr(e),n=r.overflow,o=r.overflowX,a=r.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+o)}function Rh(e){return["html","body","#document"].indexOf(Fn(e))>=0?e.ownerDocument.body:hn(e)&&Kl(e)?e:Rh(ts(e))}function ao(e,r){var n;r===void 0&&(r=[]);var o=Rh(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 ml(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function US(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 Jd(e,r,n){return r===_h?ml(FS(e,n)):Jr(r)?US(r,n):ml(WS(_r(e)))}function BS(e){var r=ao(ts(e)),n=["absolute","fixed"].indexOf(nr(e).position)>=0,o=n&&hn(e)?wo(e):e;return Jr(o)?r.filter(function(a){return Jr(a)&&xh(a,o)&&Fn(a)!=="body"}):[]}function HS(e,r,n,o){var a=r==="clippingParents"?BS(e):[].concat(r),u=[].concat(a,[n]),l=u[0],f=u.reduce(function(d,m){var g=Jd(e,m,o);return d.top=Gr(g.top,d.top),d.right=za(g.right,d.right),d.bottom=za(g.bottom,d.bottom),d.left=Gr(g.left,d.left),d},Jd(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 Ph(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 Kt:d={x:r.x-n.width,y:f};break;default:d={x:r.x,y:r.y}}var m=a?Hl(a):null;if(m!=null){var g=m==="y"?"height":"width";switch(u){case Pi:d[m]=d[m]-(r[g]/2-n[g]/2);break;case lo:d[m]=d[m]+(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,m=n.rootBoundary,g=m===void 0?_h:m,_=n.elementContext,O=_===void 0?no:_,v=n.altBoundary,S=v===void 0?!1:v,y=n.padding,E=y===void 0?0:y,D=Th(typeof E!="number"?E:Ch(E,bo)),I=O===no?cS:no,C=e.rects.popper,N=e.elements[S?I:O],T=HS(Jr(N)?N:N.contextElement||_r(e.elements.popper),d,g,l),U=Ii(e.elements.reference),B=Ph({reference:U,element:C,strategy:"absolute",placement:a}),j=ml(Object.assign({},C,B)),J=O===no?j:U,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===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,m=d===void 0?Sh:d,g=Li(o),_=g?f?Gd:Gd.filter(function(S){return Li(S)===g}):bo,O=_.filter(function(S){return m.indexOf(S)>=0});O.length===0&&(O=_);var v=O.reduce(function(S,y){return S[y]=co(e,{placement:y,boundary:a,rootBoundary:u,padding:l})[jn(y)],S},{});return Object.keys(v).sort(function(S,y){return v[S]-v[y]})}function qS(e){if(jn(e)===Wl)return[];var r=$a(e);return[Xd(e),r,Xd(r)]}function KS(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,m=n.padding,g=n.boundary,_=n.rootBoundary,O=n.altBoundary,v=n.flipVariations,S=v===void 0?!0:v,y=n.allowedAutoPlacements,E=r.options.placement,D=jn(E),I=D===E,C=d||(I||!S?[$a(E)]:qS(E)),N=[E].concat(C).reduce(function(ce,fe){return ce.concat(jn(fe)===Wl?zS(r,{placement:fe,boundary:g,rootBoundary:_,padding:m,flipVariations:S,allowedAutoPlacements:y}):fe)},[]),T=r.rects.reference,U=r.rects.popper,B=new Map,j=!0,J=N[0],ee=0;ee<N.length;ee++){var ge=N[ee],Ce=jn(ge),_e=Li(ge)===Pi,se=[qt,vn].indexOf(Ce)>=0,Le=se?"width":"height",be=co(r,{placement:ge,boundary:g,rootBoundary:_,altBoundary:O,padding:m}),xe=se?_e?mn:Kt:_e?vn:qt;T[Le]>U[Le]&&(xe=$a(xe));var We=$a(xe),st=[];if(u&&st.push(be[Ce]<=0),f&&st.push(be[xe]<=0,be[We]<=0),st.every(function(ce){return ce})){J=ge,j=!1;break}B.set(ge,st)}if(j)for(var K=S?3:1,V=function(fe){var ue=N.find(function(pe){var le=B.get(pe);if(le)return le.slice(0,fe).every(function(ye){return ye})});if(ue)return J=ue,"break"},de=K;de>0;de--){var ie=V(de);if(ie==="break")break}r.placement!==J&&(r.modifiersData[o]._skip=!0,r.placement=J,r.reset=!0)}}const GS={name:"flip",enabled:!0,phase:"main",fn:KS,requiresIfExists:["offset"],data:{_skip:!1}};function Zd(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 Qd(e){return[qt,mn,vn,Kt].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=Zd(l,o),m=Zd(f,a,u),g=Qd(d),_=Qd(m);r.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:m,isReferenceHidden:g,hasPopperEscaped:_},r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-reference-hidden":g,"data-popper-escaped":_})}const VS={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:YS};function XS(e,r,n){var o=jn(e),a=[Kt,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,[Kt,mn].indexOf(o)>=0?{x:f,y:l}:{x:l,y:f}}function JS(e){var r=e.state,n=e.options,o=e.name,a=n.offset,u=a===void 0?[0,0]:a,l=Sh.reduce(function(g,_){return g[_]=XS(_,r.rects,u),g},{}),f=l[r.placement],d=f.x,m=f.y;r.modifiersData.popperOffsets!=null&&(r.modifiersData.popperOffsets.x+=d,r.modifiersData.popperOffsets.y+=m),r.modifiersData[o]=l}const ZS={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:JS};function QS(e){var r=e.state,n=e.name;r.modifiersData[n]=Ph({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,m=n.rootBoundary,g=n.altBoundary,_=n.padding,O=n.tether,v=O===void 0?!0:O,S=n.tetherOffset,y=S===void 0?0:S,E=co(r,{boundary:d,rootBoundary:m,padding:_,altBoundary:g}),D=jn(r.placement),I=Li(r.placement),C=!I,N=Hl(D),T=tE(N),U=r.modifiersData.popperOffsets,B=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(U){if(u){var _e,se=N==="y"?qt:Kt,Le=N==="y"?vn:mn,be=N==="y"?"height":"width",xe=U[N],We=xe+E[se],st=xe-E[Le],K=v?-j[be]/2:0,V=I===Pi?B[be]:j[be],de=I===Pi?-j[be]:-B[be],ie=r.elements.arrow,ce=v&&ie?Bl(ie):{width:0,height:0},fe=r.modifiersData["arrow#persistent"]?r.modifiersData["arrow#persistent"].padding:Oh(),ue=fe[se],pe=fe[Le],le=oo(0,B[be],ce[be]),ye=C?B[be]/2-K-le-ue-ee.mainAxis:V-le-ue-ee.mainAxis,we=C?-B[be]/2+K+le+pe+ee.mainAxis:de+le+pe+ee.mainAxis,Ge=r.elements.arrow&&wo(r.elements.arrow),X=Ge?N==="y"?Ge.clientTop||0:Ge.clientLeft||0:0,nt=(_e=ge==null?void 0:ge[N])!=null?_e:0,rt=xe+ye-nt-X,ft=xe+we-nt,An=oo(v?za(We,rt):We,xe,v?Gr(st,ft):st);U[N]=An,Ce[N]=An-xe}if(f){var mt,Wt=N==="x"?qt:Kt,Sr=N==="x"?vn:mn,Je=U[T],Qe=T==="y"?"height":"width",rn=Je+E[Wt],Gt=Je-E[Sr],gn=[qt,Kt].indexOf(D)!==-1,Ot=(mt=ge==null?void 0:ge[T])!=null?mt:0,rr=gn?rn:Je-B[Qe]-j[Qe]-Ot+ee.altAxis,on=gn?Je+B[Qe]+j[Qe]-Ot-ee.altAxis:Gt,Yt=v&&gn?TS(rr,Je,on):oo(v?rr:rn,Je,v?on:Gt);U[T]=Yt,Ce[T]=Yt-Je}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)?zl(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=_r(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=ql(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 wS.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 ep={placement:"bottom",modifiers:[],strategy:"absolute"};function tp(){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?ep:a;return function(f,d,m){m===void 0&&(m=u);var g={placement:"bottom",orderedModifiers:[],options:Object.assign({},ep,u),modifiersData:{},elements:{reference:f,popper:d},attributes:{},styles:{}},_=[],O=!1,v={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(N){return N.enabled}),S(),v.update()},forceUpdate:function(){if(!O){var D=g.elements,I=D.reference,C=D.popper;if(tp(I,C)){g.rects={reference:sE(I,wo(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 N=0;N<g.orderedModifiers.length;N++){if(g.reset===!0){g.reset=!1,N=-1;continue}var T=g.orderedModifiers[N],U=T.fn,B=T.options,j=B===void 0?{}:B,J=T.name;typeof U=="function"&&(g=U({state:g,options:j,name:J,instance:v})||g)}}}},update:cE(function(){return new Promise(function(E){v.forceUpdate(),E(g)})}),destroy:function(){y(),O=!0}};if(!tp(f,d))return v;v.setOptions(m).then(function(E){!O&&m.onFirstUpdate&&m.onFirstUpdate(E)});function S(){g.orderedModifiers.forEach(function(E){var D=E.name,I=E.options,C=I===void 0?{}:I,N=E.effect;if(typeof N=="function"){var T=N({state:g,name:D,instance:v,options:C}),U=function(){};_.push(T||U)}})}function y(){_.forEach(function(E){return E()}),_=[]}return v}}var pE=[NS,eE,DS,ES,ZS,GS,rE,AS,VS],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 bE=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 wE=bh(bE);var _E=[],Ah=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],m=L.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(v){var S=v.state,y=Object.keys(S.elements);oS.flushSync(function(){d({styles:qd(y.map(function(E){return[E,S.styles[E]||{}]})),attributes:qd(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,[m,{name:"applyStyles",enabled:!1}])};return wE(a.current,O)?a.current||O:(a.current=O,O)},[u.onFirstUpdate,u.placement,u.strategy,u.modifiers,m]),_=L.useRef();return Kd(function(){_.current&&_.current.setOptions(g)},[g]),Kd(function(){if(!(r==null||n==null)){var O=o.createPopper||hE,v=O(r,n,g);return _.current=v,function(){v.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 Ih=e=>$.jsx("div",{className:"absolute inset-0 z-[1999]",onClick:e.onClick}),Lh=k.forwardRef(({children:e,style:r,attributes:n},o)=>$.jsx("div",{style:{...r,zIndex:2e3},...n,ref:o,className:"w-60 rounded border border-grey-900 bg-fd-gray-light shadow-2xl","data-cy":"dialogBody",children:e})),SE=({referenceElement:e,placement:r,isOpen:n,children:o,onClose:a})=>{const[u,l]=k.useState(null),{styles:f,attributes:d}=Ah(e,u,{placement:r||"bottom-start"}),m=k.useCallback(()=>{a&&a()},[a]);return n?$.jsxs(wh,{children:[$.jsx(Ih,{onClick:()=>m()}),$.jsx(Lh,{ref:l,style:f.popper,attributes:d.popper,children:o})]}):null};var gl={exports:{}},_i={};/*
30
30
  object-assign
31
31
  (c) Sindre Sorhus
32
32
  @license MIT
33
- */var hu,Id;function ch(){if(Id)return hu;Id=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 c={},f=0;f<10;f++)c["_"+String.fromCharCode(f)]=f;var h=Object.getOwnPropertyNames(c).map(function(y){return c[y]});if(h.join("")!=="0123456789")return!1;var m={};return"abcdefghijklmnopqrst".split("").forEach(function(y){m[y]=y}),Object.keys(Object.assign({},m)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return hu=a()?Object.assign:function(u,c){for(var f,h=o(u),m,y=1;y<arguments.length;y++){f=Object(arguments[y]);for(var _ in f)r.call(f,_)&&(h[_]=f[_]);if(e){m=e(f);for(var O=0;O<m.length;O++)n.call(f,m[O])&&(h[m[O]]=f[m[O]])}}return h},hu}/** @license React v17.0.2
33
+ */var Ru,np;function Mh(){if(np)return Ru;np=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 m={};return"abcdefghijklmnopqrst".split("").forEach(function(g){m[g]=g}),Object.keys(Object.assign({},m)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Ru=a()?Object.assign:function(u,l){for(var f,d=o(u),m,g=1;g<arguments.length;g++){f=Object(arguments[g]);for(var _ in f)r.call(f,_)&&(d[_]=f[_]);if(e){m=e(f);for(var O=0;O<m.length;O++)n.call(f,m[O])&&(d[m[O]]=f[m[O]])}}return d},Ru}/** @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 Ld;function YS(){if(Ld)return pi;Ld=1,ch();var e=q,r=60103;if(pi.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var n=Symbol.for;r=n("react.element"),pi.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 c(f,h,m){var y,_={},O=null,v=null;m!==void 0&&(O=""+m),h.key!==void 0&&(O=""+h.key),h.ref!==void 0&&(v=h.ref);for(y in h)a.call(h,y)&&!u.hasOwnProperty(y)&&(_[y]=h[y]);if(f&&f.defaultProps)for(y in h=f.defaultProps,h)_[y]===void 0&&(_[y]=h[y]);return{$$typeof:r,type:f,key:O,ref:v,props:_,_owner:o.current}}return pi.jsx=c,pi.jsxs=c,pi}var Md={};/** @license React v17.0.2
40
+ */var rp;function EE(){if(rp)return _i;rp=1,Mh();var e=k,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,m){var g,_={},O=null,v=null;m!==void 0&&(O=""+m),d.key!==void 0&&(O=""+d.key),d.ref!==void 0&&(v=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:v,props:_,_owner:o.current}}return _i.jsx=l,_i.jsxs=l,_i}var ip={};/** @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 Dd;function XS(){return Dd||(Dd=1,function(e){process.env.NODE_ENV!=="production"&&function(){var r=q,n=ch(),o=60103,a=60106;e.Fragment=60107;var u=60108,c=60114,f=60109,h=60110,m=60112,y=60113,_=60120,O=60115,v=60116,S=60121,w=60122,T=60117,D=60129,M=60131;if(typeof Symbol=="function"&&Symbol.for){var R=Symbol.for;o=R("react.element"),a=R("react.portal"),e.Fragment=R("react.fragment"),u=R("react.strict_mode"),c=R("react.profiler"),f=R("react.provider"),h=R("react.context"),m=R("react.forward_ref"),y=R("react.suspense"),_=R("react.suspense_list"),O=R("react.memo"),v=R("react.lazy"),S=R("react.block"),w=R("react.server.block"),T=R("react.fundamental"),R("react.scope"),R("react.opaque.id"),D=R("react.debug_trace_mode"),R("react.offscreen"),M=R("react.legacy_hidden")}var k=typeof Symbol=="function"&&Symbol.iterator,x="@@iterator";function W(d){if(d===null||typeof d!="object")return null;var P=k&&d[k]||d[x];return typeof P=="function"?P:null}var F=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function $(d){{for(var P=arguments.length,N=new Array(P>1?P-1:0),Y=1;Y<P;Y++)N[Y-1]=arguments[Y];Z("error",d,N)}}function Z(d,P,N){{var Y=F.ReactDebugCurrentFrame,ie=Y.getStackAddendum();ie!==""&&(P+="%s",N=N.concat([ie]));var oe=N.map(function(ee){return""+ee});oe.unshift("Warning: "+P),Function.prototype.apply.call(console[d],console,oe)}}var ne=!1;function we(d){return!!(typeof d=="string"||typeof d=="function"||d===e.Fragment||d===c||d===D||d===u||d===y||d===_||d===M||ne||typeof d=="object"&&d!==null&&(d.$$typeof===v||d.$$typeof===O||d.$$typeof===f||d.$$typeof===h||d.$$typeof===m||d.$$typeof===T||d.$$typeof===S||d[0]===w))}function Me(d,P,N){var Y=P.displayName||P.name||"";return d.displayName||(Y!==""?N+"("+Y+")":N)}function Oe(d){return d.displayName||"Context"}function ue(d){if(d==null)return null;if(typeof d.tag=="number"&&$("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof d=="function")return d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case e.Fragment:return"Fragment";case a:return"Portal";case c:return"Profiler";case u:return"StrictMode";case y:return"Suspense";case _:return"SuspenseList"}if(typeof d=="object")switch(d.$$typeof){case h:var P=d;return Oe(P)+".Consumer";case f:var N=d;return Oe(N._context)+".Provider";case m:return Me(d,d.render,"ForwardRef");case O:return ue(d.type);case S:return ue(d._render);case v:{var Y=d,ie=Y._payload,oe=Y._init;try{return ue(oe(ie))}catch{return null}}}return null}var ke=0,_e,Ie,qe,ft,G,X,ve;function me(){}me.__reactDisabledLog=!0;function ce(){{if(ke===0){_e=console.log,Ie=console.info,qe=console.warn,ft=console.error,G=console.group,X=console.groupCollapsed,ve=console.groupEnd;var d={configurable:!0,enumerable:!0,value:me,writable:!0};Object.defineProperties(console,{info:d,log:d,warn:d,error:d,group:d,groupCollapsed:d,groupEnd:d})}ke++}}function le(){{if(ke--,ke===0){var d={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:n({},d,{value:_e}),info:n({},d,{value:Ie}),warn:n({},d,{value:qe}),error:n({},d,{value:ft}),group:n({},d,{value:G}),groupCollapsed:n({},d,{value:X}),groupEnd:n({},d,{value:ve})})}ke<0&&$("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ae=F.ReactCurrentDispatcher,fe;function se(d,P,N){{if(fe===void 0)try{throw Error()}catch(ie){var Y=ie.stack.trim().match(/\n( *(at )?)/);fe=Y&&Y[1]||""}return`
48
- `+fe+d}}var ge=!1,ye;{var Ge=typeof WeakMap=="function"?WeakMap:Map;ye=new Ge}function V(d,P){if(!d||ge)return"";{var N=ye.get(d);if(N!==void 0)return N}var Y;ge=!0;var ie=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var oe;oe=ae.current,ae.current=null,ce();try{if(P){var ee=function(){throw Error()};if(Object.defineProperty(ee.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ee,[])}catch(st){Y=st}Reflect.construct(d,[],ee)}else{try{ee.call()}catch(st){Y=st}d.call(ee.prototype)}}else{try{throw Error()}catch(st){Y=st}d()}}catch(st){if(st&&Y&&typeof st.stack=="string"){for(var Q=st.stack.split(`
47
+ */var op;function xE(){return op||(op=1,function(e){process.env.NODE_ENV!=="production"&&function(){var r=k,n=Mh(),o=60103,a=60106;e.Fragment=60107;var u=60108,l=60114,f=60109,d=60110,m=60112,g=60113,_=60120,O=60115,v=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"),m=C("react.forward_ref"),g=C("react.suspense"),_=C("react.suspense_list"),O=C("react.memo"),v=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 N=typeof Symbol=="function"&&Symbol.iterator,T="@@iterator";function U(p){if(p===null||typeof p!="object")return null;var P=N&&p[N]||p[T];return typeof P=="function"?P:null}var B=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=B.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===v||p.$$typeof===O||p.$$typeof===f||p.$$typeof===d||p.$$typeof===m||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 m:return Ce(p,p.render,"ForwardRef");case O:return se(p.type);case S:return se(p._render);case v:{var Y=p,oe=Y._payload,ae=Y._init;try{return se(ae(oe))}catch{return null}}}return null}var Le=0,be,xe,We,st,K,V,de;function ie(){}ie.__reactDisabledLog=!0;function ce(){{if(Le===0){be=console.log,xe=console.info,We=console.warn,st=console.error,K=console.group,V=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:be}),info:n({},p,{value:xe}),warn:n({},p,{value:We}),error:n({},p,{value:st}),group:n({},p,{value:K}),groupCollapsed:n({},p,{value:V}),groupEnd:n({},p,{value:de})})}Le<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ue=B.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,we;{var Ge=typeof WeakMap=="function"?WeakMap:Map;we=new Ge}function X(p,P){if(!p||ye)return"";{var F=we.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(ut){Y=ut}Reflect.construct(p,[],te)}else{try{te.call()}catch(ut){Y=ut}p.call(te.prototype)}}else{try{throw Error()}catch(ut){Y=ut}p()}}catch(ut){if(ut&&Y&&typeof ut.stack=="string"){for(var Q=ut.stack.split(`
49
49
  `),je=Y.stack.split(`
50
- `),be=Q.length-1,Ee=je.length-1;be>=1&&Ee>=0&&Q[be]!==je[Ee];)Ee--;for(;be>=1&&Ee>=0;be--,Ee--)if(Q[be]!==je[Ee]){if(be!==1||Ee!==1)do if(be--,Ee--,Ee<0||Q[be]!==je[Ee]){var it=`
51
- `+Q[be].replace(" at new "," at ");return typeof d=="function"&&ye.set(d,it),it}while(be>=1&&Ee>=0);break}}}finally{ge=!1,ae.current=oe,le(),Error.prepareStackTrace=ie}var It=d?d.displayName||d.name:"",Tr=It?se(It):"";return typeof d=="function"&&ye.set(d,Tr),Tr}function nt(d,P,N){return V(d,!1)}function rt(d){var P=d.prototype;return!!(P&&P.isReactComponent)}function lt(d,P,N){if(d==null)return"";if(typeof d=="function")return V(d,rt(d));if(typeof d=="string")return se(d);switch(d){case y:return se("Suspense");case _:return se("SuspenseList")}if(typeof d=="object")switch(d.$$typeof){case m:return nt(d.render);case O:return lt(d.type,P,N);case S:return nt(d._render);case v:{var Y=d,ie=Y._payload,oe=Y._init;try{return lt(oe(ie),P,N)}catch{}}}return""}var Pn={},vt=F.ReactDebugCurrentFrame;function $t(d){if(d){var P=d._owner,N=lt(d.type,d._source,P?P.type:null);vt.setExtraStackFrame(N)}else vt.setExtraStackFrame(null)}function gr(d,P,N,Y,ie){{var oe=Function.call.bind(Object.prototype.hasOwnProperty);for(var ee in d)if(oe(d,ee)){var Q=void 0;try{if(typeof d[ee]!="function"){var je=Error((Y||"React class")+": "+N+" type `"+ee+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof d[ee]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw je.name="Invariant Violation",je}Q=d[ee](P,ee,Y,N,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(be){Q=be}Q&&!(Q instanceof Error)&&($t(ie),$("%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",N,ee,typeof Q),$t(null)),Q instanceof Error&&!(Q.message in Pn)&&(Pn[Q.message]=!0,$t(ie),$("Failed %s type: %s",N,Q.message),$t(null))}}}var Je=F.ReactCurrentOwner,Qe=Object.prototype.hasOwnProperty,tn={key:!0,ref:!0,__self:!0,__source:!0},qt,mn,Et;Et={};function Qn(d){if(Qe.call(d,"ref")){var P=Object.getOwnPropertyDescriptor(d,"ref").get;if(P&&P.isReactWarning)return!1}return d.ref!==void 0}function nn(d){if(Qe.call(d,"key")){var P=Object.getOwnPropertyDescriptor(d,"key").get;if(P&&P.isReactWarning)return!1}return d.key!==void 0}function Kt(d,P){if(typeof d.ref=="string"&&Je.current&&P&&Je.current.stateNode!==P){var N=ue(Je.current.type);Et[N]||($('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',ue(Je.current.type),d.ref),Et[N]=!0)}}function yr(d,P){{var N=function(){qt||(qt=!0,$("%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))};N.isReactWarning=!0,Object.defineProperty(d,"key",{get:N,configurable:!0})}}function wr(d,P){{var N=function(){mn||(mn=!0,$("%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))};N.isReactWarning=!0,Object.defineProperty(d,"ref",{get:N,configurable:!0})}}var br=function(d,P,N,Y,ie,oe,ee){var Q={$$typeof:o,type:d,key:P,ref:N,props:ee,_owner:oe};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:ie}),Object.freeze&&(Object.freeze(Q.props),Object.freeze(Q)),Q};function _r(d,P,N,Y,ie){{var oe,ee={},Q=null,je=null;N!==void 0&&(Q=""+N),nn(P)&&(Q=""+P.key),Qn(P)&&(je=P.ref,Kt(P,ie));for(oe in P)Qe.call(P,oe)&&!tn.hasOwnProperty(oe)&&(ee[oe]=P[oe]);if(d&&d.defaultProps){var be=d.defaultProps;for(oe in be)ee[oe]===void 0&&(ee[oe]=be[oe])}if(Q||je){var Ee=typeof d=="function"?d.displayName||d.name||"Unknown":d;Q&&yr(ee,Ee),je&&wr(ee,Ee)}return br(d,Q,je,ie,Y,Je.current,ee)}}var gn=F.ReactCurrentOwner,Fn=F.ReactDebugCurrentFrame;function yt(d){if(d){var P=d._owner,N=lt(d.type,d._source,P?P.type:null);Fn.setExtraStackFrame(N)}else Fn.setExtraStackFrame(null)}var yn;yn=!1;function wn(d){return typeof d=="object"&&d!==null&&d.$$typeof===o}function Sr(){{if(gn.current){var d=ue(gn.current.type);if(d)return`
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 it=`
51
+ `+Q[Se].replace(" at new "," at ");return typeof p=="function"&&we.set(p,it),it}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"&&we.set(p,Ir),Ir}function nt(p,P,F){return X(p,!1)}function rt(p){var P=p.prototype;return!!(P&&P.isReactComponent)}function ft(p,P,F){if(p==null)return"";if(typeof p=="function")return X(p,rt(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 m:return nt(p.render);case O:return ft(p.type,P,F);case S:return nt(p._render);case v:{var Y=p,oe=Y._payload,ae=Y._init;try{return ft(ae(oe),P,F)}catch{}}}return""}var An={},mt=B.ReactDebugCurrentFrame;function Wt(p){if(p){var P=p._owner,F=ft(p.type,p._source,P?P.type:null);mt.setExtraStackFrame(F)}else mt.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=B.ReactCurrentOwner,Qe=Object.prototype.hasOwnProperty,rn={key:!0,ref:!0,__self:!0,__source:!0},Gt,gn,Ot;Ot={};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);Ot[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),Ot[F]=!0)}}function Er(p,P){{var F=function(){Gt||(Gt=!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=B.ReactCurrentOwner,Bn=B.ReactDebugCurrentFrame;function wt(p){if(p){var P=p._owner,F=ft(p.type,p._source,P?P.type:null);Bn.setExtraStackFrame(F)}else Bn.setExtraStackFrame(null)}var bn;bn=!1;function wn(p){return typeof p=="object"&&p!==null&&p.$$typeof===o}function Cr(){{if(yn.current){var p=se(yn.current.type);if(p)return`
52
52
 
53
- Check the render method of \``+d+"`."}return""}}function Ti(d){{if(d!==void 0){var P=d.fileName.replace(/^.*[\\\/]/,""),N=d.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+":"+N+"."}return""}}var Er={};function Vr(d){{var P=Sr();if(!P){var N=typeof d=="string"?d:d.displayName||d.name;N&&(P=`
55
+ Check your code at `+P+":"+F+"."}return""}}var Rr={};function ii(p){{var P=Cr();if(!P){var F=typeof p=="string"?p:p.displayName||p.name;F&&(P=`
56
56
 
57
- Check the top-level render call using <`+N+">.")}return P}}function er(d,P){{if(!d._store||d._store.validated||d.key!=null)return;d._store.validated=!0;var N=Vr(P);if(Er[N])return;Er[N]=!0;var Y="";d&&d._owner&&d._owner!==gn.current&&(Y=" It was passed a child from "+ue(d._owner.type)+"."),yt(d),$('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',N,Y),yt(null)}}function xr(d,P){{if(typeof d!="object")return;if(Array.isArray(d))for(var N=0;N<d.length;N++){var Y=d[N];wn(Y)&&er(Y,P)}else if(wn(d))d._store&&(d._store.validated=!0);else if(d){var ie=W(d);if(typeof ie=="function"&&ie!==d.entries)for(var oe=ie.call(d),ee;!(ee=oe.next()).done;)wn(ee.value)&&er(ee.value,P)}}}function Ci(d){{var P=d.type;if(P==null||typeof P=="string")return;var N;if(typeof P=="function")N=P.propTypes;else if(typeof P=="object"&&(P.$$typeof===m||P.$$typeof===O))N=P.propTypes;else return;if(N){var Y=ue(P);gr(N,d.props,"prop",Y,d)}else if(P.PropTypes!==void 0&&!yn){yn=!0;var ie=ue(P);$("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ie||"Unknown")}typeof P.getDefaultProps=="function"&&!P.getDefaultProps.isReactClassApproved&&$("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ri(d){{for(var P=Object.keys(d.props),N=0;N<P.length;N++){var Y=P[N];if(Y!=="children"&&Y!=="key"){yt(d),$("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Y),yt(null);break}}d.ref!==null&&(yt(d),$("Invalid attribute `ref` supplied to `React.Fragment`."),yt(null))}}function Or(d,P,N,Y,ie,oe){{var ee=we(d);if(!ee){var Q="";(d===void 0||typeof d=="object"&&d!==null&&Object.keys(d).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=Ti(ie);je?Q+=je:Q+=Sr();var be;d===null?be="null":Array.isArray(d)?be="array":d!==void 0&&d.$$typeof===o?(be="<"+(ue(d.type)||"Unknown")+" />",Q=" Did you accidentally export a JSX literal instead of a component?"):be=typeof d,$("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",be,Q)}var Ee=_r(d,P,N,ie,oe);if(Ee==null)return Ee;if(ee){var it=P.children;if(it!==void 0)if(Y)if(Array.isArray(it)){for(var It=0;It<it.length;It++)xr(it[It],d);Object.freeze&&Object.freeze(it)}else $("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 xr(it,d)}return d===e.Fragment?Ri(Ee):Ci(Ee),Ee}}function Jr(d,P,N){return Or(d,P,N,!0)}function Pi(d,P,N){return Or(d,P,N,!1)}var Ai=Pi,Ii=Jr;e.jsx=Ai,e.jsxs=Ii}()}(Md)),Md}process.env.NODE_ENV==="production"?ec.exports=YS():ec.exports=XS();var Nt=ec.exports;const VS=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"})}),JS=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"})}),vu=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"})}),kd=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"})}),ZS=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"})}),QS=e=>Nt.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[Nt.jsx("path",{d:"M10 18h4V5h-4v13Z",fill:"#fff"}),Nt.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10Zm1-15.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v7a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-7ZM11 17a1 1 0 1 0 2 0 1 1 0 0 0-2 0Z",fill:"currentColor"})]}),eE=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 lh={exports:{}};/*!
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=ii(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)+"."),wt(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),wt(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];wn(Y)&&ir(Y,P)}else if(wn(p))p._store&&(p._store.validated=!0);else if(p){var oe=U(p);if(typeof oe=="function"&&oe!==p.entries)for(var ae=oe.call(p),te;!(te=ae.next()).done;)wn(te.value)&&ir(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===m||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&&!bn){bn=!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"){wt(p),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Y),wt(null);break}}p.ref!==null&&(wt(p),j("Invalid attribute `ref` supplied to `React.Fragment`."),wt(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=ki(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 it=P.children;if(it!==void 0)if(Y)if(Array.isArray(it)){for(var kt=0;kt<it.length;kt++)Pr(it[kt],p);Object.freeze&&Object.freeze(it)}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(it,p)}return p===e.Fragment?$i(Oe):Ni(Oe),Oe}}function oi(p,P,F){return Ar(p,P,F,!0)}function ji(p,P,F){return Ar(p,P,F,!1)}var Fi=ji,Wi=oi;e.jsx=Fi,e.jsxs=Wi}()}(ip)),ip}process.env.NODE_ENV==="production"?gl.exports=EE():gl.exports=xE();var dt=gl.exports;const OE=e=>dt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:dt.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=>dt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:dt.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=>dt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:dt.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=>dt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:dt.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=>dt.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[dt.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"}),dt.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"})]}),RE=e=>dt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:dt.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=>dt.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[dt.jsx("path",{d:"M10 18h4V5h-4v13Z",fill:"#fff"}),dt.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10Zm1-15.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v7a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-7ZM11 17a1 1 0 1 0 2 0 1 1 0 0 0-2 0Z",fill:"currentColor"})]}),AE=e=>dt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:dt.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"})}),Gl=e=>dt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:dt.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 Dh={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 c=typeof u;if(c==="string"||c==="number")o.push(u);else if(Array.isArray(u)){if(u.length){var f=n.apply(null,u);f&&o.push(f)}}else if(c==="object"){if(u.toString!==Object.prototype.toString&&!u.toString.toString().includes("[native code]")){o.push(u.toString());continue}for(var h in u)r.call(u,h)&&u[h]&&o.push(h)}}}return o.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(lh);var fh=lh.exports;const zt=Xp(fh);function Wr(){return Wr=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},Wr.apply(this,arguments)}const tE=["children","options"],Nd=["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"}),$d={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},nE=["style","script"],rE=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,iE=/mailto:/i,oE=/\n{2,}$/,dh=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,aE=/^ *> ?/gm,sE=/^ {2,}\n/,uE=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,ph=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,hh=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,cE=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,lE=/^(?:\n *)*\n/,fE=/\r\n?/g,dE=/^\[\^([^\]]+)](:.*)\n/,pE=/^\[\^([^\]]+)]/,hE=/\f/g,vE=/^\s*?\[(x|\s)\]/,vh=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,mh=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,gh=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,tc=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,mE=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,yh=/^<!--[\s\S]*?(?:-->)/,gE=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,nc=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,yE=/^\{.*\}$/,wE=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,bE=/^<([^ >]+@[^ >]+)>/,_E=/^<([^ >]+:\/[^ >]+)>/,SE=/-([a-z])?/gi,wh=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,EE=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,xE=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,OE=/^\[([^\]]*)\] ?\[([^\]]*)\]/,TE=/(\[|\])/g,CE=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,RE=/\t/g,PE=/^ *\| */,AE=/(^ *\||\| *$)/g,IE=/ *$/,LE=/^ *:-+: *$/,ME=/^ *:-+ *$/,DE=/^ *-+: *$/,kE=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,NE=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,$E=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,jE=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,FE=/^\\([^0-9A-Za-z\s])/,WE=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,UE=/^\n+/,BE=/^([ \t]*)/,HE=/\\([^\\])/g,jd=/ *\n+$/,zE=/(?:^|\n)( *)$/,Cc="(?:\\d+\\.)",Rc="(?:[*+-])";function bh(e){return"( *)("+(e===1?Cc:Rc)+") +"}const _h=bh(1),Sh=bh(2);function Eh(e){return new RegExp("^"+(e===1?_h:Sh))}const qE=Eh(1),KE=Eh(2);function xh(e){return new RegExp("^"+(e===1?_h:Sh)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Cc:Rc)+" )[^\\n]*)*(\\n|$)","gm")}const Oh=xh(1),Th=xh(2);function Ch(e){const r=e===1?Cc:Rc;return new RegExp("^( *)("+r+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+r+" (?!"+r+" ))\\n*|\\s*\\n*$)")}const Rh=Ch(1),Ph=Ch(2);function Fd(e,r){const n=r===1,o=n?Rh:Ph,a=n?Oh:Th,u=n?qE:KE;return{t(c,f,h){const m=zE.exec(h);return m&&(f.o||!f._&&!f.u)?o.exec(c=m[1]+c):null},i:$e.HIGH,l(c,f,h){const m=n?+c[2]:void 0,y=c[0].replace(oE,`
62
- `).match(a);let _=!1;return{p:y.map(function(O,v){const S=u.exec(O)[0].length,w=new RegExp("^ {1,"+S+"}","gm"),T=O.replace(w,"").replace(u,""),D=v===y.length-1,M=T.indexOf(`
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})()})(Dh);var kh=Dh.exports;const yt=bh(kh);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 IE=["children","options"],ap=["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"}),sp={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},LE=["style","script"],ME=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,DE=/mailto:/i,kE=/\n{2,}$/,Nh=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,NE=/^ *> ?/gm,$E=/^ {2,}\n/,jE=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,$h=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,jh=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,FE=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,WE=/^(?:\n *)*\n/,UE=/\r\n?/g,BE=/^\[\^([^\]]+)](:.*)\n/,HE=/^\[\^([^\]]+)]/,zE=/\f/g,qE=/^\s*?\[(x|\s)\]/,Fh=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Wh=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Uh=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,bl=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,KE=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Bh=/^<!--[\s\S]*?(?:-->)/,GE=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,wl=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,YE=/^\{.*\}$/,VE=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,XE=/^<([^ >]+@[^ >]+)>/,JE=/^<([^ >]+:\/[^ >]+)>/,ZE=/-([a-z])?/gi,Hh=/^(.*\|?.*)\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]*)/,bx=/\\([^\\])/g,up=/ *\n+$/,wx=/(?:^|\n)( *)$/,Yl="(?:\\d+\\.)",Vl="(?:[*+-])";function zh(e){return"( *)("+(e===1?Yl:Vl)+") +"}const qh=zh(1),Kh=zh(2);function Gh(e){return new RegExp("^"+(e===1?qh:Kh))}const _x=Gh(1),Sx=Gh(2);function Yh(e){return new RegExp("^"+(e===1?qh:Kh)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Yl:Vl)+" )[^\\n]*)*(\\n|$)","gm")}const Vh=Yh(1),Xh=Yh(2);function Jh(e){const r=e===1?Yl:Vl;return new RegExp("^( *)("+r+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+r+" (?!"+r+" ))\\n*|\\s*\\n*$)")}const Zh=Jh(1),Qh=Jh(2);function lp(e,r){const n=r===1,o=n?Zh:Qh,a=n?Vh:Xh,u=n?_x:Sx;return{t(l,f,d){const m=wx.exec(d);return m&&(f.o||!f._&&!f.u)?o.exec(l=m[1]+l):null},i:$e.HIGH,l(l,f,d){const m=n?+l[2]:void 0,g=l[0].replace(kE,`
62
+ `).match(a);let _=!1;return{p:g.map(function(O,v){const S=u.exec(O)[0].length,y=new RegExp("^ {1,"+S+"}","gm"),E=O.replace(y,"").replace(u,""),D=v===g.length-1,I=E.indexOf(`
63
63
 
64
- `)!==-1||D&&_;_=M;const R=h._,k=h.o;let x;h.o=!0,M?(h._=!1,x=T.replace(jd,`
64
+ `)!==-1||D&&_;_=I;const C=d._,N=d.o;let T;d.o=!0,I?(d._=!1,T=E.replace(up,`
65
65
 
66
- `)):(h._=!0,x=T.replace(jd,""));const W=f(x,h);return h._=R,h.o=k,W}),m:n,g:m}},h:(c,f,h)=>e(c.m?"ol":"ul",{key:h.k,start:c.g},c.p.map(function(m,y){return e("li",{key:y},f(m,h))}))}}const GE=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,YE=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Ah=[dh,ph,hh,vh,gh,mh,yh,wh,Oh,Rh,Th,Ph],XE=[...Ah,/^[^\n]+(?: \n|\n{2,})/,tc,nc];function VE(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 JE(e){return DE.test(e)?"right":LE.test(e)?"center":ME.test(e)?"left":null}function Wd(e,r,n){const o=n.$;n.$=!0;const a=r(e.trim(),n);n.$=o;let u=[[]];return a.forEach(function(c,f){c.type==="tableSeparator"?f!==0&&f!==a.length-1&&u.push([]):(c.type!=="text"||a[f+1]!=null&&a[f+1].type!=="tableSeparator"||(c.v=c.v.replace(IE,"")),u[u.length-1].push(c))}),u}function ZE(e,r,n){n._=!0;const o=Wd(e[1],r,n),a=e[2].replace(AE,"").split("|").map(JE),u=function(c,f,h){return c.trim().split(`
67
- `).map(function(m){return Wd(m,f,h)})}(e[3],r,n);return n._=!1,{S:a,A:u,L:o,type:"table"}}function Ud(e,r){return e.S[r]==null?{}:{textAlign:e.S[r]}}function lr(e){return function(r,n){return n._?e.exec(r):null}}function fr(e){return function(r,n){return n._||n.u?e.exec(r):null}}function Xn(e){return function(r,n){return n._||n.u?null:e.exec(r)}}function Yi(e){return function(r){return e.exec(r)}}function QE(e,r,n){if(r._||r.u||n&&!n.endsWith(`
66
+ `)):(d._=!0,T=E.replace(up,""));const U=f(T,d);return d._=C,d.o=N,U}),m:n,g:m}},h:(l,f,d)=>e(l.m?"ol":"ul",{key:d.k,start:l.g},l.p.map(function(m,g){return e("li",{key:g},f(m,d))}))}}const Ex=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,xx=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,ev=[Nh,$h,jh,Fh,Uh,Wh,Bh,Hh,Vh,Zh,Xh,Qh],Ox=[...ev,/^[^\n]+(?: \n|\n{2,})/,bl,wl];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 cp(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=cp(e[1],r,n),a=e[2].replace(ax,"").split("|").map(Cx),u=function(l,f,d){return l.trim().split(`
67
+ `).map(function(m){return cp(m,f,d)})}(e[3],r,n);return n._=!1,{S:a,A:u,L:o,type:"table"}}function fp(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 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=>!Ah.some(c=>c.test(u))&&(o+=u+`
70
- `,u.trim()));const a=o.trimEnd();return a==""?null:[o,a]}function hi(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 Bd(e){return e.replace(HE,"$1")}function Ra(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 ex(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 tx(e,r,n){return n._=!1,e(r,n)}const mu=(e,r,n)=>({v:Ra(r,e[1],n)});function gu(){return{}}function yu(){return null}function nx(...e){return e.filter(Boolean).join(" ")}function wu(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 rx(e,r={}){r.overrides=r.overrides||{},r.slugify=r.slugify||VE,r.namedCodesToUnicode=r.namedCodesToUnicode?Wr({},$d,r.namedCodesToUnicode):$d;const n=r.createElement||I.createElement;function o(v,S,...w){const T=wu(r.overrides,`${v}.props`,{});return n(function(D,M){const R=wu(M,D);return R?typeof R=="function"||typeof R=="object"&&"render"in R?R:wu(M,`${D}.component`,D):D}(v,r.overrides),Wr({},S,T,{className:nx(S==null?void 0:S.className,T.className)||void 0}),...w)}function a(v){let S=!1;r.forceInline?S=!0:r.forceBlock||(S=CE.test(v)===!1);const w=y(m(S?v:`${v.trimEnd().replace(UE,"")}
69
+ `).every(u=>!ev.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 dp(e){return e.replace(bx,"$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 Au=(e,r,n)=>({v:Fa(r,e[1],n)});function Iu(){return{}}function Lu(){return null}function Lx(...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 Mx(e,r={}){r.overrides=r.overrides||{},r.slugify=r.slugify||Tx,r.namedCodesToUnicode=r.namedCodesToUnicode?qr({},sp,r.namedCodesToUnicode):sp;const n=r.createElement||L.createElement;function o(v,S,...y){const E=Mu(r.overrides,`${v}.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}(v,r.overrides),qr({},S,E,{className:Lx(S==null?void 0:S.className,E.className)||void 0}),...y)}function a(v){let S=!1;r.forceInline?S=!0:r.forceBlock||(S=rx.test(v)===!1);const y=g(m(S?v:`${v.trimEnd().replace(gx,"")}
71
71
 
72
- `,{_:S}));for(;typeof w[w.length-1]=="string"&&!w[w.length-1].trim();)w.pop();if(r.wrapper===null)return w;const T=r.wrapper||(S?"span":"div");let D;if(w.length>1||r.forceWrapper)D=w;else{if(w.length===1)return D=w[0],typeof D=="string"?o("span",{key:"outer"},D):D;D=null}return I.createElement(T,{key:"outer"},D)}function u(v){const S=v.match(rE);return S?S.reduce(function(w,T,D){const M=T.indexOf("=");if(M!==-1){const R=function(F){return F.indexOf("-")!==-1&&F.match(gE)===null&&(F=F.replace(SE,function($,Z){return Z.toUpperCase()})),F}(T.slice(0,M)).trim(),k=function(F){const $=F[0];return($==='"'||$==="'")&&F.length>=2&&F[F.length-1]===$?F.slice(1,-1):F}(T.slice(M+1).trim()),x=Nd[R]||R,W=w[x]=function(F,$){return F==="style"?$.split(/;\s?/).reduce(function(Z,ne){const we=ne.slice(0,ne.indexOf(":"));return Z[we.replace(/(-[a-z])/g,Me=>Me[1].toUpperCase())]=ne.slice(we.length+1).trim(),Z},{}):F==="href"?hi($):($.match(yE)&&($=$.slice(1,$.length-1)),$==="true"||$!=="false"&&$)}(R,k);typeof W=="string"&&(tc.test(W)||nc.test(W))&&(w[x]=I.cloneElement(a(W.trim()),{key:D}))}else T!=="style"&&(w[Nd[T]||T]=!0);return w},{}):null}const c=[],f={},h={blockQuote:{t:Xn(dh),i:$e.HIGH,l:(v,S,w)=>({v:S(v[0].replace(aE,""),w)}),h:(v,S,w)=>o("blockquote",{key:w.k},S(v.v,w))},breakLine:{t:Yi(sE),i:$e.HIGH,l:gu,h:(v,S,w)=>o("br",{key:w.k})},breakThematic:{t:Xn(uE),i:$e.HIGH,l:gu,h:(v,S,w)=>o("hr",{key:w.k})},codeBlock:{t:Xn(hh),i:$e.MAX,l:v=>({v:v[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),M:void 0}),h:(v,S,w)=>o("pre",{key:w.k},o("code",Wr({},v.O,{className:v.M?`lang-${v.M}`:""}),v.v))},codeFenced:{t:Xn(ph),i:$e.MAX,l:v=>({O:u(v[3]||""),v:v[4],M:v[2]||void 0,type:"codeBlock"})},codeInline:{t:fr(cE),i:$e.LOW,l:v=>({v:v[2]}),h:(v,S,w)=>o("code",{key:w.k},v.v)},footnote:{t:Xn(dE),i:$e.MAX,l:v=>(c.push({I:v[2],j:v[1]}),{}),h:yu},footnoteReference:{t:lr(pE),i:$e.HIGH,l:v=>({v:v[1],B:`#${r.slugify(v[1])}`}),h:(v,S,w)=>o("a",{key:w.k,href:hi(v.B)},o("sup",{key:w.k},v.v))},gfmTask:{t:lr(vE),i:$e.HIGH,l:v=>({R:v[1].toLowerCase()==="x"}),h:(v,S,w)=>o("input",{checked:v.R,key:w.k,readOnly:!0,type:"checkbox"})},heading:{t:Xn(r.enforceAtxHeadings?mh:vh),i:$e.HIGH,l:(v,S,w)=>({v:Ra(S,v[2],w),T:r.slugify(v[2]),C:v[1].length}),h:(v,S,w)=>o(`h${v.C}`,{id:v.T,key:w.k},S(v.v,w))},headingSetext:{t:Xn(gh),i:$e.MAX,l:(v,S,w)=>({v:Ra(S,v[1],w),C:v[2]==="="?1:2,type:"heading"})},htmlComment:{t:Yi(yh),i:$e.HIGH,l:()=>({}),h:yu},image:{t:fr(YE),i:$e.HIGH,l:v=>({D:v[1],B:Bd(v[2]),F:v[3]}),h:(v,S,w)=>o("img",{key:w.k,alt:v.D||void 0,title:v.F||void 0,src:hi(v.B)})},link:{t:lr(GE),i:$e.LOW,l:(v,S,w)=>({v:ex(S,v[1],w),B:Bd(v[2]),F:v[3]}),h:(v,S,w)=>o("a",{key:w.k,href:hi(v.B),title:v.F},S(v.v,w))},linkAngleBraceStyleDetector:{t:lr(_E),i:$e.MAX,l:v=>({v:[{v:v[1],type:"text"}],B:v[1],type:"link"})},linkBareUrlDetector:{t:(v,S)=>S.N?null:lr(wE)(v,S),i:$e.MAX,l:v=>({v:[{v:v[1],type:"text"}],B:v[1],F:void 0,type:"link"})},linkMailtoDetector:{t:lr(bE),i:$e.MAX,l(v){let S=v[1],w=v[1];return iE.test(w)||(w="mailto:"+w),{v:[{v:S.replace("mailto:",""),type:"text"}],B:w,type:"link"}}},orderedList:Fd(o,1),unorderedList:Fd(o,2),newlineCoalescer:{t:Xn(lE),i:$e.LOW,l:gu,h:()=>`
73
- `},paragraph:{t:QE,i:$e.LOW,l:mu,h:(v,S,w)=>o("p",{key:w.k},S(v.v,w))},ref:{t:lr(EE),i:$e.MAX,l:v=>(f[v[1]]={B:v[2],F:v[4]},{}),h:yu},refImage:{t:fr(xE),i:$e.MAX,l:v=>({D:v[1]||void 0,P:v[2]}),h:(v,S,w)=>o("img",{key:w.k,alt:v.D,src:hi(f[v.P].B),title:f[v.P].F})},refLink:{t:lr(OE),i:$e.MAX,l:(v,S,w)=>({v:S(v[1],w),Z:S(v[0].replace(TE,"\\$1"),w),P:v[2]}),h:(v,S,w)=>f[v.P]?o("a",{key:w.k,href:hi(f[v.P].B),title:f[v.P].F},S(v.v,w)):o("span",{key:w.k},S(v.Z,w))},table:{t:Xn(wh),i:$e.HIGH,l:ZE,h:(v,S,w)=>o("table",{key:w.k},o("thead",null,o("tr",null,v.L.map(function(T,D){return o("th",{key:D,style:Ud(v,D)},S(T,w))}))),o("tbody",null,v.A.map(function(T,D){return o("tr",{key:D},T.map(function(M,R){return o("td",{key:R,style:Ud(v,R)},S(M,w))}))})))},tableSeparator:{t:function(v,S){return S.$?(S._=!0,PE.exec(v)):null},i:$e.HIGH,l:function(){return{type:"tableSeparator"}},h:()=>" | "},text:{t:Yi(WE),i:$e.MIN,l:v=>({v:v[0].replace(mE,(S,w)=>r.namedCodesToUnicode[w]?r.namedCodesToUnicode[w]:S)}),h:v=>v.v},textBolded:{t:fr(kE),i:$e.MED,l:(v,S,w)=>({v:S(v[2],w)}),h:(v,S,w)=>o("strong",{key:w.k},S(v.v,w))},textEmphasized:{t:fr(NE),i:$e.LOW,l:(v,S,w)=>({v:S(v[2],w)}),h:(v,S,w)=>o("em",{key:w.k},S(v.v,w))},textEscaped:{t:fr(FE),i:$e.HIGH,l:v=>({v:v[1],type:"text"})},textMarked:{t:fr($E),i:$e.LOW,l:mu,h:(v,S,w)=>o("mark",{key:w.k},S(v.v,w))},textStrikethroughed:{t:fr(jE),i:$e.LOW,l:mu,h:(v,S,w)=>o("del",{key:w.k},S(v.v,w))}};r.disableParsingRawHTML!==!0&&(h.htmlBlock={t:Yi(tc),i:$e.HIGH,l(v,S,w){const[,T]=v[3].match(BE),D=new RegExp(`^${T}`,"gm"),M=v[3].replace(D,""),R=(k=M,XE.some($=>$.test(k))?tx:Ra);var k;const x=v[1].toLowerCase(),W=nE.indexOf(x)!==-1;w.N=w.N||x==="a";const F=W?v[3]:R(S,M,w);return w.N=!1,{O:u(v[2]),v:F,G:W,H:W?x:v[1]}},h:(v,S,w)=>o(v.H,Wr({key:w.k},v.O),v.G?v.v:S(v.v,w))},h.htmlSelfClosing={t:Yi(nc),i:$e.HIGH,l:v=>({O:u(v[2]||""),H:v[1]}),h:(v,S,w)=>o(v.H,Wr({},v.O,{key:w.k}))});const m=function(v){let S=Object.keys(v);function w(T,D){let M=[],R="";for(;T;){let k=0;for(;k<S.length;){const x=S[k],W=v[x],F=W.t(T,D,R);if(F){const $=F[0];T=T.substring($.length);const Z=W.l(F,w,D);Z.type==null&&(Z.type=x),M.push(Z),R=$;break}k++}}return M}return S.sort(function(T,D){let M=v[T].i,R=v[D].i;return M!==R?M-R:T<D?-1:1}),function(T,D){return w(function(M){return M.replace(fE,`
74
- `).replace(hE,"").replace(RE," ")}(T),D)}}(h),y=(_=function(v){return function(S,w,T){return v[S.type].h(S,w,T)}}(h),function v(S,w={}){if(Array.isArray(S)){const T=w.k,D=[];let M=!1;for(let R=0;R<S.length;R++){w.k=R;const k=v(S[R],w),x=typeof k=="string";x&&M?D[D.length-1]+=k:k!==null&&D.push(k),M=x}return w.k=T,D}return _(S,v,w)});var _;const O=a(e);return c.length?o("div",null,O,o("footer",{key:"footer"},c.map(function(v){return o("div",{id:r.slugify(v.j),key:v.j},v.j,y(m(v.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 Da=e=>{let{children:r,options:n}=e,o=function(a,u){if(a==null)return{};var c,f,h={},m=Object.keys(a);for(f=0;f<m.length;f++)u.indexOf(c=m[f])>=0||(h[c]=a[c]);return h}(e,tE);return I.cloneElement(rx(r,n),o)},Hd=({kind:e,customIcon:r})=>{if(r)return B.jsx(r,{className:"mr-1 h-6 w-6 flex-none"});switch(e){case"error":case"danger":return B.jsx(QS,{className:"flex-none h-6 w-6"});case"info":return B.jsx(B.Fragment,{children:B.jsx(kd,{className:"flex-none h-6 w-6"})});case"warning":return B.jsx(B.Fragment,{children:B.jsx(eE,{className:"flex-none h-6 w-6"})});case"message":return B.jsx(B.Fragment,{children:B.jsx(kd,{className:"flex-none h-6 w-6"})});default:return null}},ix=({id:e,onClose:r,kind:n,message:o,markdown:a,customIcon:u})=>{const c=({className:f}={})=>B.jsx("button",{onClick:r,className:zt("flex items-center justify-center p-1",f),children:B.jsx(JS,{className:"h-5 w-5 font-thin stroke-current"})});return B.jsx("div",{className:zt("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-blue-100 text-blue-900":n==="info","bg-green-200 text-green-500":n==="message"}),children:typeof o=="string"?B.jsxs("div",{className:"w-full flex items-center justify-between gap-x-3",children:[B.jsxs("div",{className:"flex items-center gap-1",children:[B.jsx(Hd,{kind:n,customIcon:u}),a?B.jsx(Da,{children:o}):B.jsx(B.Fragment,{children:o})]}),c()]}):B.jsxs("div",{className:"flex items-start",children:[B.jsx("div",{className:"flex flex-col gap-2 justify-between",children:o.filter(f=>f.messages.length>0).map(f=>B.jsxs(B.Fragment,{children:[B.jsxs("span",{className:"flex items-center gap-1 font-bold capitalize",children:[B.jsx(Hd,{kind:n,customIcon:u}),B.jsxs("span",{children:[f.title," :"]})]}),B.jsx("ul",{className:"list-disc px-12",children:f.messages.map(h=>B.jsx("li",{children:a?B.jsx(Da,{children:h}):B.jsx(B.Fragment,{children:h})}))})]}))}),c({className:"absolute top-1 right-1"})]})},e)},Ih=({children:e,size:r,className:n,...o})=>B.jsx("div",{style:{"--width":`${r||24}px`},className:zt("h-6 flex items-center pr-1 w-[--width]",n),...o,children:e});var ca,ox=new Uint8Array(16);function Lh(){if(!ca&&(ca=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!ca))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ca(ox)}const ax=/^(?:[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 za(e){return typeof e=="string"&&ax.test(e)}var _t=[];for(var bu=0;bu<256;++bu)_t.push((bu+256).toString(16).substr(1));function qa(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(_t[e[r+0]]+_t[e[r+1]]+_t[e[r+2]]+_t[e[r+3]]+"-"+_t[e[r+4]]+_t[e[r+5]]+"-"+_t[e[r+6]]+_t[e[r+7]]+"-"+_t[e[r+8]]+_t[e[r+9]]+"-"+_t[e[r+10]]+_t[e[r+11]]+_t[e[r+12]]+_t[e[r+13]]+_t[e[r+14]]+_t[e[r+15]]).toLowerCase();if(!za(n))throw TypeError("Stringified UUID is invalid");return n}var zd,_u,Su=0,Eu=0;function sx(e,r,n){var o=r&&n||0,a=r||new Array(16);e=e||{};var u=e.node||zd,c=e.clockseq!==void 0?e.clockseq:_u;if(u==null||c==null){var f=e.random||(e.rng||Lh)();u==null&&(u=zd=[f[0]|1,f[1],f[2],f[3],f[4],f[5]]),c==null&&(c=_u=(f[6]<<8|f[7])&16383)}var h=e.msecs!==void 0?e.msecs:Date.now(),m=e.nsecs!==void 0?e.nsecs:Eu+1,y=h-Su+(m-Eu)/1e4;if(y<0&&e.clockseq===void 0&&(c=c+1&16383),(y<0||h>Su)&&e.nsecs===void 0&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Su=h,Eu=m,_u=c,h+=122192928e5;var _=((h&268435455)*1e4+m)%4294967296;a[o++]=_>>>24&255,a[o++]=_>>>16&255,a[o++]=_>>>8&255,a[o++]=_&255;var O=h/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++]=c>>>8|128,a[o++]=c&255;for(var v=0;v<6;++v)a[o+v]=u[v];return r||qa(a)}function Mh(e){if(!za(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 ux(e){e=unescape(encodeURIComponent(e));for(var r=[],n=0;n<e.length;++n)r.push(e.charCodeAt(n));return r}var cx="6ba7b810-9dad-11d1-80b4-00c04fd430c8",lx="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Dh(e,r,n){function o(a,u,c,f){if(typeof a=="string"&&(a=ux(a)),typeof u=="string"&&(u=Mh(u)),u.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var h=new Uint8Array(16+a.length);if(h.set(u),h.set(a,u.length),h=n(h),h[6]=h[6]&15|r,h[8]=h[8]&63|128,c){f=f||0;for(var m=0;m<16;++m)c[f+m]=h[m];return c}return qa(h)}try{o.name=e}catch{}return o.DNS=cx,o.URL=lx,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 dx(px(hx(e),e.length*8))}function dx(e){for(var r=[],n=e.length*32,o="0123456789abcdef",a=0;a<n;a+=8){var u=e[a>>5]>>>a%32&255,c=parseInt(o.charAt(u>>>4&15)+o.charAt(u&15),16);r.push(c)}return r}function kh(e){return(e+64>>>9<<4)+14+1}function px(e,r){e[r>>5]|=128<<r%32,e[kh(r)-1]=r;for(var n=1732584193,o=-271733879,a=-1732584194,u=271733878,c=0;c<e.length;c+=16){var f=n,h=o,m=a,y=u;n=Tt(n,o,a,u,e[c],7,-680876936),u=Tt(u,n,o,a,e[c+1],12,-389564586),a=Tt(a,u,n,o,e[c+2],17,606105819),o=Tt(o,a,u,n,e[c+3],22,-1044525330),n=Tt(n,o,a,u,e[c+4],7,-176418897),u=Tt(u,n,o,a,e[c+5],12,1200080426),a=Tt(a,u,n,o,e[c+6],17,-1473231341),o=Tt(o,a,u,n,e[c+7],22,-45705983),n=Tt(n,o,a,u,e[c+8],7,1770035416),u=Tt(u,n,o,a,e[c+9],12,-1958414417),a=Tt(a,u,n,o,e[c+10],17,-42063),o=Tt(o,a,u,n,e[c+11],22,-1990404162),n=Tt(n,o,a,u,e[c+12],7,1804603682),u=Tt(u,n,o,a,e[c+13],12,-40341101),a=Tt(a,u,n,o,e[c+14],17,-1502002290),o=Tt(o,a,u,n,e[c+15],22,1236535329),n=Ct(n,o,a,u,e[c+1],5,-165796510),u=Ct(u,n,o,a,e[c+6],9,-1069501632),a=Ct(a,u,n,o,e[c+11],14,643717713),o=Ct(o,a,u,n,e[c],20,-373897302),n=Ct(n,o,a,u,e[c+5],5,-701558691),u=Ct(u,n,o,a,e[c+10],9,38016083),a=Ct(a,u,n,o,e[c+15],14,-660478335),o=Ct(o,a,u,n,e[c+4],20,-405537848),n=Ct(n,o,a,u,e[c+9],5,568446438),u=Ct(u,n,o,a,e[c+14],9,-1019803690),a=Ct(a,u,n,o,e[c+3],14,-187363961),o=Ct(o,a,u,n,e[c+8],20,1163531501),n=Ct(n,o,a,u,e[c+13],5,-1444681467),u=Ct(u,n,o,a,e[c+2],9,-51403784),a=Ct(a,u,n,o,e[c+7],14,1735328473),o=Ct(o,a,u,n,e[c+12],20,-1926607734),n=Rt(n,o,a,u,e[c+5],4,-378558),u=Rt(u,n,o,a,e[c+8],11,-2022574463),a=Rt(a,u,n,o,e[c+11],16,1839030562),o=Rt(o,a,u,n,e[c+14],23,-35309556),n=Rt(n,o,a,u,e[c+1],4,-1530992060),u=Rt(u,n,o,a,e[c+4],11,1272893353),a=Rt(a,u,n,o,e[c+7],16,-155497632),o=Rt(o,a,u,n,e[c+10],23,-1094730640),n=Rt(n,o,a,u,e[c+13],4,681279174),u=Rt(u,n,o,a,e[c],11,-358537222),a=Rt(a,u,n,o,e[c+3],16,-722521979),o=Rt(o,a,u,n,e[c+6],23,76029189),n=Rt(n,o,a,u,e[c+9],4,-640364487),u=Rt(u,n,o,a,e[c+12],11,-421815835),a=Rt(a,u,n,o,e[c+15],16,530742520),o=Rt(o,a,u,n,e[c+2],23,-995338651),n=Pt(n,o,a,u,e[c],6,-198630844),u=Pt(u,n,o,a,e[c+7],10,1126891415),a=Pt(a,u,n,o,e[c+14],15,-1416354905),o=Pt(o,a,u,n,e[c+5],21,-57434055),n=Pt(n,o,a,u,e[c+12],6,1700485571),u=Pt(u,n,o,a,e[c+3],10,-1894986606),a=Pt(a,u,n,o,e[c+10],15,-1051523),o=Pt(o,a,u,n,e[c+1],21,-2054922799),n=Pt(n,o,a,u,e[c+8],6,1873313359),u=Pt(u,n,o,a,e[c+15],10,-30611744),a=Pt(a,u,n,o,e[c+6],15,-1560198380),o=Pt(o,a,u,n,e[c+13],21,1309151649),n=Pt(n,o,a,u,e[c+4],6,-145523070),u=Pt(u,n,o,a,e[c+11],10,-1120210379),a=Pt(a,u,n,o,e[c+2],15,718787259),o=Pt(o,a,u,n,e[c+9],21,-343485551),n=pr(n,f),o=pr(o,h),a=pr(a,m),u=pr(u,y)}return[n,o,a,u]}function hx(e){if(e.length===0)return[];for(var r=e.length*8,n=new Uint32Array(kh(r)),o=0;o<r;o+=8)n[o>>5]|=(e[o/8]&255)<<o%32;return n}function pr(e,r){var n=(e&65535)+(r&65535),o=(e>>16)+(r>>16)+(n>>16);return o<<16|n&65535}function vx(e,r){return e<<r|e>>>32-r}function Ka(e,r,n,o,a,u){return pr(vx(pr(pr(r,e),pr(o,u)),a),n)}function Tt(e,r,n,o,a,u,c){return Ka(r&n|~r&o,e,r,a,u,c)}function Ct(e,r,n,o,a,u,c){return Ka(r&o|n&~o,e,r,a,u,c)}function Rt(e,r,n,o,a,u,c){return Ka(r^n^o,e,r,a,u,c)}function Pt(e,r,n,o,a,u,c){return Ka(n^(r|~o),e,r,a,u,c)}var mx=Dh("v3",48,fx);const gx=mx;function yx(e,r,n){e=e||{};var o=e.random||(e.rng||Lh)();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 qa(o)}function wx(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 xu(e,r){return e<<r|e>>>32-r}function bx(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,c=Math.ceil(u/16),f=new Array(c),h=0;h<c;++h){for(var m=new Uint32Array(16),y=0;y<16;++y)m[y]=e[h*64+y*4]<<24|e[h*64+y*4+1]<<16|e[h*64+y*4+2]<<8|e[h*64+y*4+3];f[h]=m}f[c-1][14]=(e.length-1)*8/Math.pow(2,32),f[c-1][14]=Math.floor(f[c-1][14]),f[c-1][15]=(e.length-1)*8&4294967295;for(var _=0;_<c;++_){for(var O=new Uint32Array(80),v=0;v<16;++v)O[v]=f[_][v];for(var S=16;S<80;++S)O[S]=xu(O[S-3]^O[S-8]^O[S-14]^O[S-16],1);for(var w=n[0],T=n[1],D=n[2],M=n[3],R=n[4],k=0;k<80;++k){var x=Math.floor(k/20),W=xu(w,5)+wx(x,T,D,M)+R+r[x]+O[k]>>>0;R=M,M=D,D=xu(T,30)>>>0,T=w,w=W}n[0]=n[0]+w>>>0,n[1]=n[1]+T>>>0,n[2]=n[2]+D>>>0,n[3]=n[3]+M>>>0,n[4]=n[4]+R>>>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 _x=Dh("v5",80,bx);const Sx=_x,Ex="00000000-0000-0000-0000-000000000000";function xx(e){if(!za(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const Ox=Object.freeze(Object.defineProperty({__proto__:null,NIL:Ex,parse:Mh,stringify:qa,v1:sx,v3:gx,v4:yx,v5:Sx,validate:za,version:xx},Symbol.toStringTag,{value:"Module"})),Tx=I_(Ox);function Pc(e,r){if(!e||!r||!e.length||!r.length)throw new Error("Bad alphabet");this.srcAlphabet=e,this.dstAlphabet=r}Pc.prototype.convert=function(e){var r,n,o,a={},u=this.srcAlphabet.length,c=this.dstAlphabet.length,f=e.length,h=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>=c?(a[o++]=parseInt(n/c,10),n=n%c):o>0&&(a[o++]=0);f=o,h=this.dstAlphabet.slice(n,n+1).concat(h)}while(o!==0);return h};Pc.prototype.isValid=function(e){for(var r=0;r<e.length;++r)if(this.srcAlphabet.indexOf(e[r])===-1)return!1;return!0};var Cx=Pc,Rx=Cx;function lo(e,r){var n=new Rx(e,r);return function(o){return n.convert(o)}}lo.BIN="01";lo.OCT="01234567";lo.DEC="0123456789";lo.HEX="0123456789abcdef";var Px=lo;const{v4:Ou}=Tx,la=Px,Tu="123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",Ax="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",Ix={consistentLength:!0};let Cu;const qd=(e,r,n)=>{const o=r(e.toLowerCase().replace(/-/g,""));return!n||!n.consistentLength?o:o.padStart(n.shortIdLength,n.paddingChar)},Lx=(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("-")},Mx=e=>Math.ceil(Math.log(2**128)/Math.log(e));var Nh=(()=>{const e=(r,n)=>{const o=r||Tu,a={...Ix,...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=Mx(o.length),c={shortIdLength:u,consistentLength:a.consistentLength,paddingChar:o[0]},f=la(la.HEX,o),h=la(o,la.HEX),m=()=>qd(Ou(),f,c),y={new:m,generate:m,uuid:Ou,fromUUID:_=>qd(_,f,c),toUUID:_=>Lx(_,h),alphabet:o,maxLength:u};return Object.freeze(y),y};return e.constants={flickrBase58:Tu,cookieBase90:Ax},e.uuid=Ou,e.generate=()=>(Cu||(Cu=e(Tu).generate),Cu()),e})();const $h=({depth:e,height:r=24,width:n=14,showLines:o=!0})=>{const a=`indent_line_${Nh.generate()}`;return B.jsxs("svg",{viewBox:`0 0 ${12*e} 24`,width:`${12*e}`,height:r,children:[B.jsx("defs",{children:B.jsx("pattern",{id:a,x:"0",y:"0",width:n,height:r,patternUnits:"userSpaceOnUse",children:B.jsx("line",{x1:n/2,y1:"0",x2:n/2,y2:r,stroke:"rgba(255,255,255,0.4)"})})}),o?B.jsx("rect",{fill:`url(#${a})`,x:"0",y:"0",width:`${12*e}`,height:r}):B.jsx("rect",{fill:o?`url(#${a})`:"",x:"0",y:"0",width:0,height:r})]})},jh=({show:e,expanded:r,onClick:n,variant:o="arrow"})=>e?B.jsx("div",{className:"flex h-6 w-5 items-center",onClick:a=>n&&n(a),children:(()=>{switch(o){case"arrow":return B.jsx(vu,{className:zt(["h-3 w-3 transform text-grey-50 transition ease-in-out",{"rotate-0":r,"-rotate-90":!r}])});case"caret":return r?B.jsx(vu,{}):B.jsx(ZS,{});default:return B.jsx(vu,{className:"h-3 w-3 transform text-grey-50 transition ease-in-out"})}})()}):B.jsx("div",{className:"flex h-6 w-3 items-center"}),Ac=({node:e,depth:r,expandedKeys:n,selectedKeys:o,actions:a,searchQuery:u,renderNode:c,onNodeClick:f})=>{var v;const{key:h,children:m}=e,y=q.useMemo(()=>({expanded:n.includes(e.key),selected:o.includes(e.key)}),[n,e.key,o]),_=c&&typeof c=="function"?c(e,r,y,a,u):Nx(e,r,y,f);return!((v=e.options)!=null&&v.filterable)||!u||e.title.toLowerCase().includes(u.toLowerCase())?B.jsxs(B.Fragment,{children:[B.jsx("div",{className:"flex items-center space-x-2",children:_},h),kx(m||[],r,u,n,o,y.expanded,a,f,c)]}):null},Dx=function(e,r){var c;const{title:n,icon:o,subtitle:a}=e;let u=null;return o&&(u=B.jsx(Ih,{children:o})),B.jsxs("div",{className:"flex flex-1 select-none items-center overflow-hidden text-ellipsis whitespace-nowrap",draggable:(c=e.options)==null?void 0:c.draggable,onClick:()=>{r&&r(e)},children:[u,B.jsx("div",{style:{lineHeight:"24px",fontSize:11},children:n}),a&&B.jsx("div",{className:"mx-1 min-w-0 text-xxs italic text-fd-gray-mild",children:a})]})},kx=function(e,r,n,o,a,u,c,f,h){return e.length&&u?e.map(m=>B.jsx(Ac,{actions:c,node:m,searchQuery:n,depth:r+1,expandedKeys:o,selectedKeys:a,onNodeClick:f,renderNode:h},m.key)):null},Nx=function(e,r,n,o){return B.jsxs(B.Fragment,{children:[B.jsx($h,{showLines:!0,depth:r}),B.jsx(jh,{show:e.children&&e.children.length>0||!1,expanded:n.expanded}),Dx(e,o)]})},fa=e=>r=>e===r,$x=function({treeData:r,renderNode:n,onNodeClick:o,onExpandNode:a,searchQuery:u,expandedKeys:c,expandCondition:f="always",encapsulated:h}){const[m,y]=q.useState(()=>({expandedKeys:c||[],selectedKeys:[]}));q.useEffect(()=>{f==="when-collapsed"&&m.expandedKeys.length>0||y({...m,expandedKeys:c||m.expandedKeys})},[c]);const _=q.useCallback(T=>{if(!T)return;const D=m.expandedKeys.findIndex(fa(T.key));let M=[];D===-1?(M=[...m.expandedKeys,T.key],y(()=>({...m,expandedKeys:M})),a&&a(M)):(M=m.expandedKeys.filter(R=>R!==T.key),y(()=>({...m,expandedKeys:M})),a&&a(M))},[m]),O=q.useCallback(T=>{var M;if(!((M=T==null?void 0:T.options)!=null&&M.selectable))return;m.selectedKeys.findIndex(fa(T.key))===-1&&y({...m,selectedKeys:[...m.selectedKeys,T.key]})},[m]),v=q.useCallback(T=>{var M;if(!((M=T==null?void 0:T.options)!=null&&M.selectable))return;m.selectedKeys.findIndex(fa(T.key))===-1&&y({...m,selectedKeys:[T.key]})},[m]),S=q.useCallback(T=>{var M;if(!((M=T==null?void 0:T.options)!=null&&M.selectable)){y({...m,selectedKeys:[]});return}m.selectedKeys.findIndex(fa(T.key))!==-1&&y({...m,selectedKeys:m.selectedKeys.filter(R=>R!==T.key)})},[m]),w=q.useMemo(()=>({expand:_,select:O,selectSingle:v,deselect:S}),[S,_,O,v]);return B.jsx("div",{className:zt("fd-tree",{"mb-1 rounded border bg-grey-900 p-1":h}),children:r.map(T=>B.jsx(Ac,{node:T,searchQuery:u||"",depth:0,expandedKeys:m.expandedKeys,selectedKeys:m.selectedKeys,actions:w,renderNode:n,onNodeClick:o},T.key))})};function jx(e){return e.of&&e.children?B.jsx(B.Fragment,{children:e.children}):null}function gt(){return gt=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},gt.apply(this,arguments)}function Fh(e){var r=Object.create(null);return function(n){return r[n]===void 0&&(r[n]=e(n)),r[n]}}var Fx=/^((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)-.*))$/,Wx=Fh(function(e){return Fx.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Ux=!0;function Bx(e,r,n){var o="";return n.split(" ").forEach(function(a){e[a]!==void 0?r.push(e[a]+";"):o+=a+" "}),o}var Wh=function(r,n,o){var a=r.key+"-"+n.name;(o===!1||Ux===!1)&&r.registered[a]===void 0&&(r.registered[a]=n.styles)},Hx=function(r,n,o){Wh(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 zx(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 qx={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},Kd=`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(v){const S=v.match(ME);return S?S.reduce(function(y,E,D){const I=E.indexOf("=");if(I!==-1){const C=function(B){return B.indexOf("-")!==-1&&B.match(GE)===null&&(B=B.replace(ZE,function(j,J){return J.toUpperCase()})),B}(E.slice(0,I)).trim(),N=function(B){const j=B[0];return(j==='"'||j==="'")&&B.length>=2&&B[B.length-1]===j?B.slice(1,-1):B}(E.slice(I+1).trim()),T=ap[C]||C,U=y[T]=function(B,j){return B==="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},{}):B==="href"?Si(j):(j.match(YE)&&(j=j.slice(1,j.length-1)),j==="true"||j!=="false"&&j)}(C,N);typeof U=="string"&&(bl.test(U)||wl.test(U))&&(y[T]=L.cloneElement(a(U.trim()),{key:D}))}else E!=="style"&&(y[ap[E]||E]=!0);return y},{}):null}const l=[],f={},d={blockQuote:{t:Zn(Nh),i:$e.HIGH,l:(v,S,y)=>({v:S(v[0].replace(NE,""),y)}),h:(v,S,y)=>o("blockquote",{key:y.k},S(v.v,y))},breakLine:{t:ro($E),i:$e.HIGH,l:Iu,h:(v,S,y)=>o("br",{key:y.k})},breakThematic:{t:Zn(jE),i:$e.HIGH,l:Iu,h:(v,S,y)=>o("hr",{key:y.k})},codeBlock:{t:Zn(jh),i:$e.MAX,l:v=>({v:v[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),M:void 0}),h:(v,S,y)=>o("pre",{key:y.k},o("code",qr({},v.O,{className:v.M?`lang-${v.M}`:""}),v.v))},codeFenced:{t:Zn($h),i:$e.MAX,l:v=>({O:u(v[3]||""),v:v[4],M:v[2]||void 0,type:"codeBlock"})},codeInline:{t:vr(FE),i:$e.LOW,l:v=>({v:v[2]}),h:(v,S,y)=>o("code",{key:y.k},v.v)},footnote:{t:Zn(BE),i:$e.MAX,l:v=>(l.push({I:v[2],j:v[1]}),{}),h:Lu},footnoteReference:{t:hr(HE),i:$e.HIGH,l:v=>({v:v[1],B:`#${r.slugify(v[1])}`}),h:(v,S,y)=>o("a",{key:y.k,href:Si(v.B)},o("sup",{key:y.k},v.v))},gfmTask:{t:hr(qE),i:$e.HIGH,l:v=>({R:v[1].toLowerCase()==="x"}),h:(v,S,y)=>o("input",{checked:v.R,key:y.k,readOnly:!0,type:"checkbox"})},heading:{t:Zn(r.enforceAtxHeadings?Wh:Fh),i:$e.HIGH,l:(v,S,y)=>({v:Fa(S,v[2],y),T:r.slugify(v[2]),C:v[1].length}),h:(v,S,y)=>o(`h${v.C}`,{id:v.T,key:y.k},S(v.v,y))},headingSetext:{t:Zn(Uh),i:$e.MAX,l:(v,S,y)=>({v:Fa(S,v[1],y),C:v[2]==="="?1:2,type:"heading"})},htmlComment:{t:ro(Bh),i:$e.HIGH,l:()=>({}),h:Lu},image:{t:vr(xx),i:$e.HIGH,l:v=>({D:v[1],B:dp(v[2]),F:v[3]}),h:(v,S,y)=>o("img",{key:y.k,alt:v.D||void 0,title:v.F||void 0,src:Si(v.B)})},link:{t:hr(Ex),i:$e.LOW,l:(v,S,y)=>({v:Ax(S,v[1],y),B:dp(v[2]),F:v[3]}),h:(v,S,y)=>o("a",{key:y.k,href:Si(v.B),title:v.F},S(v.v,y))},linkAngleBraceStyleDetector:{t:hr(JE),i:$e.MAX,l:v=>({v:[{v:v[1],type:"text"}],B:v[1],type:"link"})},linkBareUrlDetector:{t:(v,S)=>S.N?null:hr(VE)(v,S),i:$e.MAX,l:v=>({v:[{v:v[1],type:"text"}],B:v[1],F:void 0,type:"link"})},linkMailtoDetector:{t:hr(XE),i:$e.MAX,l(v){let S=v[1],y=v[1];return DE.test(y)||(y="mailto:"+y),{v:[{v:S.replace("mailto:",""),type:"text"}],B:y,type:"link"}}},orderedList:lp(o,1),unorderedList:lp(o,2),newlineCoalescer:{t:Zn(WE),i:$e.LOW,l:Iu,h:()=>`
73
+ `},paragraph:{t:Px,i:$e.LOW,l:Au,h:(v,S,y)=>o("p",{key:y.k},S(v.v,y))},ref:{t:hr(QE),i:$e.MAX,l:v=>(f[v[1]]={B:v[2],F:v[4]},{}),h:Lu},refImage:{t:vr(ex),i:$e.MAX,l:v=>({D:v[1]||void 0,P:v[2]}),h:(v,S,y)=>o("img",{key:y.k,alt:v.D,src:Si(f[v.P].B),title:f[v.P].F})},refLink:{t:hr(tx),i:$e.MAX,l:(v,S,y)=>({v:S(v[1],y),Z:S(v[0].replace(nx,"\\$1"),y),P:v[2]}),h:(v,S,y)=>f[v.P]?o("a",{key:y.k,href:Si(f[v.P].B),title:f[v.P].F},S(v.v,y)):o("span",{key:y.k},S(v.Z,y))},table:{t:Zn(Hh),i:$e.HIGH,l:Rx,h:(v,S,y)=>o("table",{key:y.k},o("thead",null,o("tr",null,v.L.map(function(E,D){return o("th",{key:D,style:fp(v,D)},S(E,y))}))),o("tbody",null,v.A.map(function(E,D){return o("tr",{key:D},E.map(function(I,C){return o("td",{key:C,style:fp(v,C)},S(I,y))}))})))},tableSeparator:{t:function(v,S){return S.$?(S._=!0,ox.exec(v)):null},i:$e.HIGH,l:function(){return{type:"tableSeparator"}},h:()=>" | "},text:{t:ro(mx),i:$e.MIN,l:v=>({v:v[0].replace(KE,(S,y)=>r.namedCodesToUnicode[y]?r.namedCodesToUnicode[y]:S)}),h:v=>v.v},textBolded:{t:vr(fx),i:$e.MED,l:(v,S,y)=>({v:S(v[2],y)}),h:(v,S,y)=>o("strong",{key:y.k},S(v.v,y))},textEmphasized:{t:vr(dx),i:$e.LOW,l:(v,S,y)=>({v:S(v[2],y)}),h:(v,S,y)=>o("em",{key:y.k},S(v.v,y))},textEscaped:{t:vr(vx),i:$e.HIGH,l:v=>({v:v[1],type:"text"})},textMarked:{t:vr(px),i:$e.LOW,l:Au,h:(v,S,y)=>o("mark",{key:y.k},S(v.v,y))},textStrikethroughed:{t:vr(hx),i:$e.LOW,l:Au,h:(v,S,y)=>o("del",{key:y.k},S(v.v,y))}};r.disableParsingRawHTML!==!0&&(d.htmlBlock={t:ro(bl),i:$e.HIGH,l(v,S,y){const[,E]=v[3].match(yx),D=new RegExp(`^${E}`,"gm"),I=v[3].replace(D,""),C=(N=I,Ox.some(j=>j.test(N))?Ix:Fa);var N;const T=v[1].toLowerCase(),U=LE.indexOf(T)!==-1;y.N=y.N||T==="a";const B=U?v[3]:C(S,I,y);return y.N=!1,{O:u(v[2]),v:B,G:U,H:U?T:v[1]}},h:(v,S,y)=>o(v.H,qr({key:y.k},v.O),v.G?v.v:S(v.v,y))},d.htmlSelfClosing={t:ro(wl),i:$e.HIGH,l:v=>({O:u(v[2]||""),H:v[1]}),h:(v,S,y)=>o(v.H,qr({},v.O,{key:y.k}))});const m=function(v){let S=Object.keys(v);function y(E,D){let I=[],C="";for(;E;){let N=0;for(;N<S.length;){const T=S[N],U=v[T],B=U.t(E,D,C);if(B){const j=B[0];E=E.substring(j.length);const J=U.l(B,y,D);J.type==null&&(J.type=T),I.push(J),C=j;break}N++}}return I}return S.sort(function(E,D){let I=v[E].i,C=v[D].i;return I!==C?I-C:E<D?-1:1}),function(E,D){return y(function(I){return I.replace(UE,`
74
+ `).replace(zE,"").replace(ix," ")}(E),D)}}(d),g=(_=function(v){return function(S,y,E){return v[S.type].h(S,y,E)}}(d),function v(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 N=v(S[C],y),T=typeof N=="string";T&&I?D[D.length-1]+=N:N!==null&&D.push(N),I=T}return y.k=E,D}return _(S,v,y)});var _;const O=a(e);return l.length?o("div",null,O,o("footer",{key:"footer"},l.map(function(v){return o("div",{id:r.slugify(v.j),key:v.j},v.j,g(m(v.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={},m=Object.keys(a);for(f=0;f<m.length;f++)u.indexOf(l=m[f])>=0||(d[l]=a[l]);return d}(e,IE);return L.cloneElement(Mx(r,n),o)},pp=({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(yl,{className:"flex-none h-6 w-6"})});case"warning":return $.jsx($.Fragment,{children:$.jsx(Gl,{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}},Dx=({id:e,onClose:r,kind:n,message:o,markdown:a,customIcon:u})=>{const l=({className:f}={})=>$.jsx("button",{onClick:r,className:yt("flex items-center justify-center p-1",f),children:$.jsx(TE,{className:"h-5 w-5 font-thin stroke-current"})});return $.jsx("div",{className:yt("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-blue-100 text-blue-900":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(pp,{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(pp,{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)},tv=({children:e,size:r,className:n,...o})=>$.jsx("div",{style:{"--width":`${r||24}px`},className:yt("h-6 flex items-center pr-1 w-[--width]",n),...o,children:e});var wa,kx=new Uint8Array(16);function nv(){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(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 Du=0;Du<256;++Du)Et.push((Du+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 hp,ku,Nu=0,$u=0;function $x(e,r,n){var o=r&&n||0,a=r||new Array(16);e=e||{};var u=e.node||hp,l=e.clockseq!==void 0?e.clockseq:ku;if(u==null||l==null){var f=e.random||(e.rng||nv)();u==null&&(u=hp=[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(),m=e.nsecs!==void 0?e.nsecs:$u+1,g=d-Nu+(m-$u)/1e4;if(g<0&&e.clockseq===void 0&&(l=l+1&16383),(g<0||d>Nu)&&e.nsecs===void 0&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Nu=d,$u=m,ku=l,d+=122192928e5;var _=((d&268435455)*1e4+m)%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 v=0;v<6;++v)a[o+v]=u[v];return r||rs(a)}function rv(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 iv(e,r,n){function o(a,u,l,f){if(typeof a=="string"&&(a=jx(a)),typeof u=="string"&&(u=rv(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 m=0;m<16;++m)l[f+m]=d[m];return l}return rs(d)}try{o.name=e}catch{}return o.DNS=Fx,o.URL=Wx,o}function Ux(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 Bx(Hx(zx(e),e.length*8))}function Bx(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 ov(e){return(e+64>>>9<<4)+14+1}function Hx(e,r){e[r>>5]|=128<<r%32,e[ov(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,m=a,g=u;n=Rt(n,o,a,u,e[l],7,-680876936),u=Rt(u,n,o,a,e[l+1],12,-389564586),a=Rt(a,u,n,o,e[l+2],17,606105819),o=Rt(o,a,u,n,e[l+3],22,-1044525330),n=Rt(n,o,a,u,e[l+4],7,-176418897),u=Rt(u,n,o,a,e[l+5],12,1200080426),a=Rt(a,u,n,o,e[l+6],17,-1473231341),o=Rt(o,a,u,n,e[l+7],22,-45705983),n=Rt(n,o,a,u,e[l+8],7,1770035416),u=Rt(u,n,o,a,e[l+9],12,-1958414417),a=Rt(a,u,n,o,e[l+10],17,-42063),o=Rt(o,a,u,n,e[l+11],22,-1990404162),n=Rt(n,o,a,u,e[l+12],7,1804603682),u=Rt(u,n,o,a,e[l+13],12,-40341101),a=Rt(a,u,n,o,e[l+14],17,-1502002290),o=Rt(o,a,u,n,e[l+15],22,1236535329),n=Pt(n,o,a,u,e[l+1],5,-165796510),u=Pt(u,n,o,a,e[l+6],9,-1069501632),a=Pt(a,u,n,o,e[l+11],14,643717713),o=Pt(o,a,u,n,e[l],20,-373897302),n=Pt(n,o,a,u,e[l+5],5,-701558691),u=Pt(u,n,o,a,e[l+10],9,38016083),a=Pt(a,u,n,o,e[l+15],14,-660478335),o=Pt(o,a,u,n,e[l+4],20,-405537848),n=Pt(n,o,a,u,e[l+9],5,568446438),u=Pt(u,n,o,a,e[l+14],9,-1019803690),a=Pt(a,u,n,o,e[l+3],14,-187363961),o=Pt(o,a,u,n,e[l+8],20,1163531501),n=Pt(n,o,a,u,e[l+13],5,-1444681467),u=Pt(u,n,o,a,e[l+2],9,-51403784),a=Pt(a,u,n,o,e[l+7],14,1735328473),o=Pt(o,a,u,n,e[l+12],20,-1926607734),n=At(n,o,a,u,e[l+5],4,-378558),u=At(u,n,o,a,e[l+8],11,-2022574463),a=At(a,u,n,o,e[l+11],16,1839030562),o=At(o,a,u,n,e[l+14],23,-35309556),n=At(n,o,a,u,e[l+1],4,-1530992060),u=At(u,n,o,a,e[l+4],11,1272893353),a=At(a,u,n,o,e[l+7],16,-155497632),o=At(o,a,u,n,e[l+10],23,-1094730640),n=At(n,o,a,u,e[l+13],4,681279174),u=At(u,n,o,a,e[l],11,-358537222),a=At(a,u,n,o,e[l+3],16,-722521979),o=At(o,a,u,n,e[l+6],23,76029189),n=At(n,o,a,u,e[l+9],4,-640364487),u=At(u,n,o,a,e[l+12],11,-421815835),a=At(a,u,n,o,e[l+15],16,530742520),o=At(o,a,u,n,e[l+2],23,-995338651),n=It(n,o,a,u,e[l],6,-198630844),u=It(u,n,o,a,e[l+7],10,1126891415),a=It(a,u,n,o,e[l+14],15,-1416354905),o=It(o,a,u,n,e[l+5],21,-57434055),n=It(n,o,a,u,e[l+12],6,1700485571),u=It(u,n,o,a,e[l+3],10,-1894986606),a=It(a,u,n,o,e[l+10],15,-1051523),o=It(o,a,u,n,e[l+1],21,-2054922799),n=It(n,o,a,u,e[l+8],6,1873313359),u=It(u,n,o,a,e[l+15],10,-30611744),a=It(a,u,n,o,e[l+6],15,-1560198380),o=It(o,a,u,n,e[l+13],21,1309151649),n=It(n,o,a,u,e[l+4],6,-145523070),u=It(u,n,o,a,e[l+11],10,-1120210379),a=It(a,u,n,o,e[l+2],15,718787259),o=It(o,a,u,n,e[l+9],21,-343485551),n=yr(n,f),o=yr(o,d),a=yr(a,m),u=yr(u,g)}return[n,o,a,u]}function zx(e){if(e.length===0)return[];for(var r=e.length*8,n=new Uint32Array(ov(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 qx(e,r){return e<<r|e>>>32-r}function is(e,r,n,o,a,u){return yr(qx(yr(yr(r,e),yr(o,u)),a),n)}function Rt(e,r,n,o,a,u,l){return is(r&n|~r&o,e,r,a,u,l)}function Pt(e,r,n,o,a,u,l){return is(r&o|n&~o,e,r,a,u,l)}function At(e,r,n,o,a,u,l){return is(r^n^o,e,r,a,u,l)}function It(e,r,n,o,a,u,l){return is(n^(r|~o),e,r,a,u,l)}var Kx=iv("v3",48,Ux);const Gx=Kx;function Yx(e,r,n){e=e||{};var o=e.random||(e.rng||nv)();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 Vx(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 Xx(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 m=new Uint32Array(16),g=0;g<16;++g)m[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]=m}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),v=0;v<16;++v)O[v]=f[_][v];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],N=0;N<80;++N){var T=Math.floor(N/20),U=ju(y,5)+Vx(T,E,D,I)+C+r[T]+O[N]>>>0;C=I,I=D,D=ju(E,30)>>>0,E=y,y=U}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 Jx=iv("v5",80,Xx);const Zx=Jx,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:rv,stringify:rs,v1:$x,v3:Gx,v4:Yx,v5:Zx,validate:ns,version:eO},Symbol.toStringTag,{value:"Module"})),nO=aS(tO);function Xl(e,r){if(!e||!r||!e.length||!r.length)throw new Error("Bad alphabet");this.srcAlphabet=e,this.dstAlphabet=r}Xl.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};Xl.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=Xl,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:Fu}=nO,_a=oO,Wu="123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",aO="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",sO={consistentLength:!0};let Uu;const vp=(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 av=(()=>{const e=(r,n)=>{const o=r||Wu,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),m=()=>vp(Fu(),f,l),g={new:m,generate:m,uuid:Fu,fromUUID:_=>vp(_,f,l),toUUID:_=>uO(_,d),alphabet:o,maxLength:u};return Object.freeze(g),g};return e.constants={flickrBase58:Wu,cookieBase90:aO},e.uuid=Fu,e.generate=()=>(Uu||(Uu=e(Wu).generate),Uu()),e})();const sv=({depth:e,height:r=24,width:n=14,showLines:o=!0})=>{const a=`indent_line_${av.generate()}`;return $.jsxs("svg",{viewBox:`0 0 ${12*e} 24`,width:`${12*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:"rgba(255,255,255,0.4)"})})}),o?$.jsx("rect",{fill:`url(#${a})`,x:"0",y:"0",width:`${12*e}`,height:r}):$.jsx("rect",{fill:o?`url(#${a})`:"",x:"0",y:"0",width:0,height:r})]})},uv=({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:yt(["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(RE,{});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"}),Jl=({node:e,depth:r,expandedKeys:n,selectedKeys:o,actions:a,searchQuery:u,renderNode:l,onNodeClick:f})=>{var v;const{key:d,children:m}=e,g=k.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!((v=e.options)!=null&&v.filterable)||!u||e.title.toLowerCase().includes(u.toLowerCase())?$.jsxs($.Fragment,{children:[$.jsx("div",{className:"flex items-center space-x-2",children:_},d),fO(m||[],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(tv,{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(m=>$.jsx(Jl,{actions:l,node:m,searchQuery:n,depth:r+1,expandedKeys:o,selectedKeys:a,onNodeClick:f,renderNode:d},m.key)):null},dO=function(e,r,n,o){return $.jsxs($.Fragment,{children:[$.jsx(sv,{showLines:!0,depth:r}),$.jsx(uv,{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[m,g]=k.useState(()=>({expandedKeys:l||[],selectedKeys:[]}));k.useEffect(()=>{f==="when-collapsed"&&m.expandedKeys.length>0||g({...m,expandedKeys:l||m.expandedKeys})},[l]);const _=k.useCallback(E=>{if(!E)return;const D=m.expandedKeys.findIndex(Sa(E.key));let I=[];D===-1?(I=[...m.expandedKeys,E.key],g(()=>({...m,expandedKeys:I})),a&&a(I)):(I=m.expandedKeys.filter(C=>C!==E.key),g(()=>({...m,expandedKeys:I})),a&&a(I))},[m]),O=k.useCallback(E=>{var I;if(!((I=E==null?void 0:E.options)!=null&&I.selectable))return;m.selectedKeys.findIndex(Sa(E.key))===-1&&g({...m,selectedKeys:[...m.selectedKeys,E.key]})},[m]),v=k.useCallback(E=>{var I;if(!((I=E==null?void 0:E.options)!=null&&I.selectable))return;m.selectedKeys.findIndex(Sa(E.key))===-1&&g({...m,selectedKeys:[E.key]})},[m]),S=k.useCallback(E=>{var I;if(!((I=E==null?void 0:E.options)!=null&&I.selectable)){g({...m,selectedKeys:[]});return}m.selectedKeys.findIndex(Sa(E.key))!==-1&&g({...m,selectedKeys:m.selectedKeys.filter(C=>C!==E.key)})},[m]),y=k.useMemo(()=>({expand:_,select:O,selectSingle:v,deselect:S}),[S,_,O,v]);return $.jsx("div",{className:yt("fd-tree",{"mb-1 rounded border bg-grey-900 p-1":d}),children:r.map(E=>$.jsx(Jl,{node:E,searchQuery:u||"",depth:0,expandedKeys:m.expandedKeys,selectedKeys:m.selectedKeys,actions:y,renderNode:n,onNodeClick:o},E.key))})};function hO(e){return e.of&&e.children?$.jsx($.Fragment,{children:e.children}):null}function bt(){return bt=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},bt.apply(this,arguments)}function lv(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=lv(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 cv=function(r,n,o){var a=r.key+"-"+n.name;(o===!1||gO===!1)&&r.registered[a]===void 0&&(r.registered[a]=n.styles)},bO=function(r,n,o){cv(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 wO(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},mp=`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`,Kx="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",Gx=/[A-Z]|^ms/g,Uh=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ic=function(r){return r.charCodeAt(1)===45},Gd=function(r){return r!=null&&typeof r!="boolean"},Ru=Fh(function(e){return Ic(e)?e:e.replace(Gx,"-$&").toLowerCase()}),ka=function(r,n){switch(r){case"animation":case"animationName":if(typeof n=="string")return n.replace(Uh,function(o,a,u){return Cn={name:a,styles:u,next:Cn},a})}return qx[r]!==1&&!Ic(r)&&typeof n=="number"&&n!==0?n+"px":n};if(process.env.NODE_ENV!=="production"){var Yx=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Xx=["normal","none","initial","inherit","unset"],Vx=ka,Jx=/^-ms-/,Zx=/-(.)/g,Yd={};ka=function(r,n){if(r==="content"&&(typeof n!="string"||Xx.indexOf(n)===-1&&!Yx.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=Vx(r,n);return o!==""&&!Ic(r)&&r.indexOf("-")!==-1&&Yd[r]===void 0&&(Yd[r]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+r.replace(Jx,"ms-").replace(Zx,function(a,u){return u.toUpperCase()})+"?")),o}}var Bh="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function no(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(Bh);return n}switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Cn={name:n.name,styles:n.styles,next:Cn},n.name;if(n.styles!==void 0){var o=n.next;if(o!==void 0)for(;o!==void 0;)Cn={name:o.name,styles:o.styles,next:Cn},o=o.next;var a=n.styles+";";return process.env.NODE_ENV!=="production"&&n.map!==void 0&&(a+=n.map),a}return Qx(e,r,n)}case"function":{if(e!==void 0){var u=Cn,c=n(e);return Cn=u,no(e,r,c)}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=[],h=n.replace(Uh,function(y,_,O){var v="animation"+f.length;return f.push("const "+v+" = keyframes`"+O.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+v+"}"});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,["`"+h+"`"]).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,fv=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Zl=function(r){return r.charCodeAt(1)===45},gp=function(r){return r!=null&&typeof r!="boolean"},Bu=lv(function(e){return Zl(e)?e:e.replace(EO,"-$&").toLowerCase()}),Ka=function(r,n){switch(r){case"animation":case"animationName":if(typeof n=="string")return n.replace(fv,function(o,a,u){return Rn={name:a,styles:u,next:Rn},a})}return _O[r]!==1&&!Zl(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=Ka,CO=/^-ms-/,RO=/-(.)/g,yp={};Ka=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!==""&&!Zl(r)&&r.indexOf("-")!==-1&&yp[r]===void 0&&(yp[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 dv="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(dv);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(fv,function(g,_,O){var v="animation"+f.length;return f.push("const "+v+" = keyframes`"+O.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+v+"}"});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`"+h+"`"))}break}if(r==null)return n;var m=r[n];return m!==void 0?m:n}function Qx(e,r,n){var o="";if(Array.isArray(n))for(var a=0;a<n.length;a++)o+=no(e,r,n[a])+";";else for(var u in n){var c=n[u];if(typeof c!="object")r!=null&&r[c]!==void 0?o+=u+"{"+r[c]+"}":Gd(c)&&(o+=Ru(u)+":"+ka(u,c)+";");else{if(u==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(Bh);if(Array.isArray(c)&&typeof c[0]=="string"&&(r==null||r[c[0]]===void 0))for(var f=0;f<c.length;f++)Gd(c[f])&&(o+=Ru(u)+":"+ka(u,c[f])+";");else{var h=no(e,r,c);switch(u){case"animation":case"animationName":{o+=Ru(u)+":"+h+";";break}default:process.env.NODE_ENV!=="production"&&u==="undefined"&&console.error(Kx),o+=u+"{"+h+"}"}}}}return o}var Xd=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Hh;process.env.NODE_ENV!=="production"&&(Hh=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var Cn,eO=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="";Cn=void 0;var c=r[0];c==null||c.raw===void 0?(a=!1,u+=no(o,n,c)):(process.env.NODE_ENV!=="production"&&c[0]===void 0&&console.error(Kd),u+=c[0]);for(var f=1;f<r.length;f++)u+=no(o,n,r[f]),a&&(process.env.NODE_ENV!=="production"&&c[f]===void 0&&console.error(Kd),u+=c[f]);var h;process.env.NODE_ENV!=="production"&&(u=u.replace(Hh,function(O){return h=O,""})),Xd.lastIndex=0;for(var m="",y;(y=Xd.exec(u))!==null;)m+="-"+y[1];var _=zx(u)+m;return process.env.NODE_ENV!=="production"?{name:_,styles:u,map:h,next:Cn,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:Cn}},tO=function(r){return r()},nO=I["useInsertionEffect"]?I["useInsertionEffect"]:!1,rO=nO||tO,iO=Wx,oO=function(r){return r!=="theme"},Vd=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?iO:oO},Jd=function(r,n,o){var a;if(n){var u=n.shouldForwardProp;a=r.__emotion_forwardProp&&u?function(c){return r.__emotion_forwardProp(c)&&u(c)}:u}return typeof a!="function"&&o&&(a=r.__emotion_forwardProp),a},Zd=`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 m=r[n];return m!==void 0?m: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]+"}":gp(l)&&(o+=Bu(u)+":"+Ka(u,l)+";");else{if(u==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(dv);if(Array.isArray(l)&&typeof l[0]=="string"&&(r==null||r[l[0]]===void 0))for(var f=0;f<l.length;f++)gp(l[f])&&(o+=Bu(u)+":"+Ka(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 bp=/label:\s*([^\s;\n{]+)\s*(;|$)/g,pv;process.env.NODE_ENV!=="production"&&(pv=/\/\*#\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(mp),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(mp),u+=l[f]);var d;process.env.NODE_ENV!=="production"&&(u=u.replace(pv,function(O){return d=O,""})),bp.lastIndex=0;for(var m="",g;(g=bp.exec(u))!==null;)m+="-"+g[1];var _=wO(u)+m;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"},wp=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?DO:kO},_p=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},Sp=`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`,aO=function(r){var n=r.cache,o=r.serialized,a=r.isStringTag;return Wh(n,o,a),rO(function(){return Hx(n,o,a)}),null},sO=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,c;n!==void 0&&(u=n.label,c=n.target);var f=Jd(r,n,o),h=f||Vd(a),m=!h("as");return function(){var y=arguments,_=o&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(u!==void 0&&_.push("label:"+u+";"),y[0]==null||y[0].raw===void 0)_.push.apply(_,y);else{process.env.NODE_ENV!=="production"&&y[0][0]===void 0&&console.error(Zd),_.push(y[0][0]);for(var O=y.length,v=1;v<O;v++)process.env.NODE_ENV!=="production"&&y[0][v]===void 0&&console.error(Zd),_.push(y[v],y[0][v])}var S=Vu.withEmotionCache(function(w,T,D){var M=m&&w.as||a,R="",k=[],x=w;if(w.theme==null){x={};for(var W in w)x[W]=w[W];x.theme=I.useContext(Vu.ThemeContext)}typeof w.className=="string"?R=Bx(T.registered,k,w.className):w.className!=null&&(R=w.className+" ");var F=eO(_.concat(k),T.registered,x);R+=T.key+"-"+F.name,c!==void 0&&(R+=" "+c);var $=m&&f===void 0?Vd(M):h,Z={};for(var ne in w)m&&ne==="as"||$(ne)&&(Z[ne]=w[ne]);return Z.className=R,Z.ref=D,I.createElement(I.Fragment,null,I.createElement(aO,{cache:T,serialized:F,isStringTag:typeof M=="string"}),I.createElement(M,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 c===void 0&&process.env.NODE_ENV!=="production"?"NO_COMPONENT_SELECTOR":"."+c}}),S.withComponent=function(w,T){return e(w,gt({},n,T,{shouldForwardProp:Jd(S,T,!0)})).apply(void 0,_)},S}},uO=["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"],Na=sO.bind();uO.forEach(function(e){Na[e]=Na(e)});var cO=function(e){if(typeof document>"u")return null;var r=Array.isArray(e)?e[0]:e;return r.ownerDocument.body},vi=new WeakMap,da=new WeakMap,pa={},Pu=0,zh=function(e){return e&&(e.host||zh(e.parentNode))},lO=function(e,r){return r.map(function(n){if(e.contains(n))return n;var o=zh(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=lO(r,Array.isArray(e)?e:[e]);pa[n]||(pa[n]=new WeakMap);var u=pa[n],c=[],f=new Set,h=new Set(a),m=function(_){!_||f.has(_)||(f.add(_),m(_.parentNode))};a.forEach(m);var y=function(_){!_||h.has(_)||Array.prototype.forEach.call(_.children,function(O){if(f.has(O))y(O);else{var v=O.getAttribute(o),S=v!==null&&v!=="false",w=(vi.get(O)||0)+1,T=(u.get(O)||0)+1;vi.set(O,w),u.set(O,T),c.push(O),w===1&&S&&da.set(O,!0),T===1&&O.setAttribute(n,"true"),S||O.setAttribute(o,"true")}})};return y(r),f.clear(),Pu++,function(){c.forEach(function(_){var O=vi.get(_)-1,v=u.get(_)-1;vi.set(_,O),u.set(_,v),O||(da.has(_)||_.removeAttribute(o),da.delete(_)),v||_.removeAttribute(n)}),Pu--,Pu||(vi=new WeakMap,vi=new WeakMap,da=new WeakMap,pa={})}},dO=function(e,r,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),a=r||cO(e);return a?(o.push.apply(o,Array.from(a.querySelectorAll("[aria-live]"))),fO(o,a,n,"aria-hidden")):function(){return null}},rc=function(e,r){return rc=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])},rc(e,r)};function Ga(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");rc(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}var Mn=function(){return Mn=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},Mn.apply(this,arguments)};function qh(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 ic(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 $a(e,r){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var o=n.call(e),a,u=[],c;try{for(;(r===void 0||r-- >0)&&!(a=o.next()).done;)u.push(a.value)}catch(f){c={error:f}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(c)throw c.error}}return u}function ro(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 Pa="right-scroll-bar-position",Aa="width-before-scroll-bar",pO="with-scroll-bars-hidden",hO="--removed-body-scroll-bar-size";function vO(e,r){return typeof e=="function"?e(r):e&&(e.current=r),e}function mO(e,r){var n=q.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 gO(e,r){return mO(r||null,function(n){return e.forEach(function(o){return vO(o,n)})})}function yO(e){return e}function wO(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 c=r(u,o);return n.push(c),function(){n=n.filter(function(f){return f!==c})}},assignSyncMedium:function(u){for(o=!0;n.length;){var c=n;n=[],c.forEach(u)}n={push:function(f){return u(f)},filter:function(){return n}}},assignMedium:function(u){o=!0;var c=[];if(n.length){var f=n;n=[],f.forEach(u),c=n}var h=function(){var y=c;c=[],y.forEach(u)},m=function(){return Promise.resolve().then(h)};m(),n={push:function(y){c.push(y),m()},filter:function(y){return c=c.filter(y),n}}}};return a}function bO(e){e===void 0&&(e={});var r=wO(null);return r.options=Mn({async:!0,ssr:!1},e),r}var Kh=function(e){var r=e.sideCar,n=qh(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 I.createElement(o,Mn({},n))};Kh.isSideCarExport=!0;function _O(e,r){return e.useMedium(r),Kh}var Gh=bO(),Au=function(){},Ya=I.forwardRef(function(e,r){var n=I.useRef(null),o=I.useState({onScrollCapture:Au,onWheelCapture:Au,onTouchMoveCapture:Au}),a=o[0],u=o[1],c=e.forwardProps,f=e.children,h=e.className,m=e.removeScrollBar,y=e.enabled,_=e.shards,O=e.sideCar,v=e.noIsolation,S=e.inert,w=e.allowPinchZoom,T=e.as,D=T===void 0?"div":T,M=e.gapMode,R=qh(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=O,x=gO([n,r]),W=Mn(Mn({},R),a);return I.createElement(I.Fragment,null,y&&I.createElement(k,{sideCar:Gh,removeScrollBar:m,shards:_,noIsolation:v,inert:S,setCallbacks:u,allowPinchZoom:!!w,lockRef:n,gapMode:M}),c?I.cloneElement(I.Children.only(f),Mn(Mn({},W),{ref:x})):I.createElement(D,Mn({},W,{className:h,ref:x}),f))});Ya.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ya.classNames={fullWidth:Aa,zeroRight:Pa};var Qd,SO=function(){if(Qd)return Qd;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function EO(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var r=SO();return r&&e.setAttribute("nonce",r),e}function xO(e,r){e.styleSheet?e.styleSheet.cssText=r:e.appendChild(document.createTextNode(r))}function OO(e){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(e)}var TO=function(){var e=0,r=null;return{add:function(n){e==0&&(r=EO())&&(xO(r,n),OO(r)),e++},remove:function(){e--,!e&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},CO=function(){var e=TO();return function(r,n){I.useEffect(function(){return e.add(r),function(){e.remove()}},[r&&n])}},Yh=function(){var e=CO(),r=function(n){var o=n.styles,a=n.dynamic;return e(o,a),null};return r},RO={left:0,top:0,right:0,gap:0},Iu=function(e){return parseInt(e||"",10)||0},PO=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[Iu(n),Iu(o),Iu(a)]},AO=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return RO;var r=PO(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])}},IO=Yh(),LO=function(e,r,n,o){var a=e.left,u=e.top,c=e.right,f=e.gap;return n===void 0&&(n="margin"),`
87
- .`.concat(pO,` {
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 cv(n,o,a),MO(function(){return bO(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=_p(r,n,o),d=f||wp(a),m=!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(Sp),_.push(g[0][0]);for(var O=g.length,v=1;v<O;v++)process.env.NODE_ENV!=="production"&&g[0][v]===void 0&&console.error(Sp),_.push(g[v],g[0][v])}var S=pl.withEmotionCache(function(y,E,D){var I=m&&y.as||a,C="",N=[],T=y;if(y.theme==null){T={};for(var U in y)T[U]=y[U];T.theme=L.useContext(pl.ThemeContext)}typeof y.className=="string"?C=yO(E.registered,N,y.className):y.className!=null&&(C=y.className+" ");var B=AO(_.concat(N),E.registered,T);C+=E.key+"-"+B.name,l!==void 0&&(C+=" "+l);var j=m&&f===void 0?wp(I):d,J={};for(var ee in y)m&&ee==="as"||j(ee)&&(J[ee]=y[ee]);return J.className=C,J.ref=D,L.createElement(L.Fragment,null,L.createElement(NO,{cache:E,serialized:B,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,bt({},n,E,{shouldForwardProp:_p(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"],Ga=$O.bind();jO.forEach(function(e){Ga[e]=Ga(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={},Hu=0,hv=function(e){return e&&(e.host||hv(e.parentNode))},WO=function(e,r){return r.map(function(n){if(e.contains(n))return n;var o=hv(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})},UO=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),m=function(_){!_||f.has(_)||(f.add(_),m(_.parentNode))};a.forEach(m);var g=function(_){!_||d.has(_)||Array.prototype.forEach.call(_.children,function(O){if(f.has(O))g(O);else{var v=O.getAttribute(o),S=v!==null&&v!=="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(),Hu++,function(){l.forEach(function(_){var O=Ei.get(_)-1,v=u.get(_)-1;Ei.set(_,O),u.set(_,v),O||(Ea.has(_)||_.removeAttribute(o),Ea.delete(_)),v||_.removeAttribute(n)}),Hu--,Hu||(Ei=new WeakMap,Ei=new WeakMap,Ea=new WeakMap,xa={})}},BO=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]"))),UO(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 os(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 vv(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 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",Ua="width-before-scroll-bar",HO="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 KO(e,r){var n=k.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 GO(e,r){return KO(r||null,function(n){return e.forEach(function(o){return qO(o,n)})})}function YO(e){return e}function VO(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)},m=function(){return Promise.resolve().then(d)};m(),n={push:function(g){l.push(g),m()},filter:function(g){return l=l.filter(g),n}}}};return a}function XO(e){e===void 0&&(e={});var r=VO(null);return r.options=Dn({async:!0,ssr:!1},e),r}var mv=function(e){var r=e.sideCar,n=vv(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))};mv.isSideCarExport=!0;function JO(e,r){return e.useMedium(r),mv}var gv=XO(),zu=function(){},as=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,m=e.removeScrollBar,g=e.enabled,_=e.shards,O=e.sideCar,v=e.noIsolation,S=e.inert,y=e.allowPinchZoom,E=e.as,D=E===void 0?"div":E,I=e.gapMode,C=vv(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),N=O,T=GO([n,r]),U=Dn(Dn({},C),a);return L.createElement(L.Fragment,null,g&&L.createElement(N,{sideCar:gv,removeScrollBar:m,shards:_,noIsolation:v,inert:S,setCallbacks:u,allowPinchZoom:!!y,lockRef:n,gapMode:I}),l?L.cloneElement(L.Children.only(f),Dn(Dn({},U),{ref:T})):L.createElement(D,Dn({},U,{className:d,ref:T}),f))});as.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};as.classNames={fullWidth:Ua,zeroRight:Wa};var Ep,ZO=function(){if(Ep)return Ep;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=ZO();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])}},yv=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},qu=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[qu(n),qu(o),qu(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=yv(),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(HO,` {
88
88
  overflow: hidden `).concat(o,`;
89
89
  padding-right: `).concat(f,"px ").concat(o,`;
90
90
  }
@@ -94,65 +94,65 @@ You may have forgotten to import it.`);var o=r.__emotion_real===r,a=o&&r.__emoti
94
94
  `).concat([r&&"position: relative ".concat(o,";"),n==="margin"&&`
95
95
  padding-left: `.concat(a,`px;
96
96
  padding-top: `).concat(u,`px;
97
- padding-right: `).concat(c,`px;
97
+ padding-right: `).concat(l,`px;
98
98
  margin-left:0;
99
99
  margin-top:0;
100
100
  margin-right: `).concat(f,"px ").concat(o,`;
101
101
  `),n==="padding"&&"padding-right: ".concat(f,"px ").concat(o,";")].filter(Boolean).join(""),`
102
102
  }
103
103
 
104
- .`).concat(Pa,` {
104
+ .`).concat(Wa,` {
105
105
  right: `).concat(f,"px ").concat(o,`;
106
106
  }
107
107
 
108
- .`).concat(Aa,` {
108
+ .`).concat(Ua,` {
109
109
  margin-right: `).concat(f,"px ").concat(o,`;
110
110
  }
111
111
 
112
- .`).concat(Pa," .").concat(Pa,` {
112
+ .`).concat(Wa," .").concat(Wa,` {
113
113
  right: 0 `).concat(o,`;
114
114
  }
115
115
 
116
- .`).concat(Aa," .").concat(Aa,` {
116
+ .`).concat(Ua," .").concat(Ua,` {
117
117
  margin-right: 0 `).concat(o,`;
118
118
  }
119
119
 
120
120
  body {
121
- `).concat(hO,": ").concat(f,`px;
121
+ `).concat(zO,": ").concat(f,`px;
122
122
  }
123
- `)},MO=function(e){var r=e.noRelative,n=e.noImportant,o=e.gapMode,a=o===void 0?"margin":o,u=I.useMemo(function(){return AO(a)},[a]);return I.createElement(IO,{styles:LO(u,!r,a,n?"":"!important")})},oc=!1;if(typeof window<"u")try{var ha=Object.defineProperty({},"passive",{get:function(){return oc=!0,!0}});window.addEventListener("test",ha,ha),window.removeEventListener("test",ha,ha)}catch{oc=!1}var mi=oc?{passive:!1}:!1,DO=function(e){return e.tagName==="TEXTAREA"},Xh=function(e,r){var n=window.getComputedStyle(e);return n[r]!=="hidden"&&!(n.overflowY===n.overflowX&&!DO(e)&&n[r]==="visible")},kO=function(e){return Xh(e,"overflowY")},NO=function(e){return Xh(e,"overflowX")},ep=function(e,r){var n=r.ownerDocument,o=r;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var a=Vh(e,o);if(a){var u=Jh(e,o),c=u[1],f=u[2];if(c>f)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},$O=function(e){var r=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[r,n,o]},jO=function(e){var r=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[r,n,o]},Vh=function(e,r){return e==="v"?kO(r):NO(r)},Jh=function(e,r){return e==="v"?$O(r):jO(r)},FO=function(e,r){return e==="h"&&r==="rtl"?-1:1},WO=function(e,r,n,o,a){var u=FO(e,window.getComputedStyle(r).direction),c=u*o,f=n.target,h=r.contains(f),m=!1,y=c>0,_=0,O=0;do{var v=Jh(e,f),S=v[0],w=v[1],T=v[2],D=w-T-u*S;(S||D)&&Vh(e,f)&&(_+=D,O+=S),f instanceof ShadowRoot?f=f.host:f=f.parentNode}while(!h&&f!==document.body||h&&(r.contains(f)||r===f));return(y&&(a&&Math.abs(_)<1||!a&&c>_)||!y&&(a&&Math.abs(O)<1||!a&&-c>O))&&(m=!0),m},va=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},tp=function(e){return[e.deltaX,e.deltaY]},np=function(e){return e&&"current"in e?e.current:e},UO=function(e,r){return e[0]===r[0]&&e[1]===r[1]},BO=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")})},El=!1;if(typeof window<"u")try{var Oa=Object.defineProperty({},"passive",{get:function(){return El=!0,!0}});window.addEventListener("test",Oa,Oa),window.removeEventListener("test",Oa,Oa)}catch{El=!1}var xi=El?{passive:!1}:!1,cT=function(e){return e.tagName==="TEXTAREA"},bv=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 bv(e,"overflowY")},dT=function(e){return bv(e,"overflowX")},xp=function(e,r){var n=r.ownerDocument,o=r;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var a=wv(e,o);if(a){var u=_v(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]},wv=function(e,r){return e==="v"?fT(r):dT(r)},_v=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),m=!1,g=l>0,_=0,O=0;do{var v=_v(e,f),S=v[0],y=v[1],E=v[2],D=y-E-u*S;(S||D)&&wv(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))&&(m=!0),m},Ta=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Op=function(e){return[e.deltaX,e.deltaY]},Tp=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
- `)},HO=0,gi=[];function zO(e){var r=I.useRef([]),n=I.useRef([0,0]),o=I.useRef(),a=I.useState(HO++)[0],u=I.useState(Yh)[0],c=I.useRef(e);I.useEffect(function(){c.current=e},[e]),I.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var w=ro([e.lockRef.current],(e.shards||[]).map(np),!0).filter(Boolean);return w.forEach(function(T){return T.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),w.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var f=I.useCallback(function(w,T){if("touches"in w&&w.touches.length===2)return!c.current.allowPinchZoom;var D=va(w),M=n.current,R="deltaX"in w?w.deltaX:M[0]-D[0],k="deltaY"in w?w.deltaY:M[1]-D[1],x,W=w.target,F=Math.abs(R)>Math.abs(k)?"h":"v";if("touches"in w&&F==="h"&&W.type==="range")return!1;var $=ep(F,W);if(!$)return!0;if($?x=F:(x=F==="v"?"h":"v",$=ep(F,W)),!$)return!1;if(!o.current&&"changedTouches"in w&&(R||k)&&(o.current=x),!x)return!0;var Z=o.current||x;return WO(Z,T,w,Z==="h"?R:k,!0)},[]),h=I.useCallback(function(w){var T=w;if(!(!gi.length||gi[gi.length-1]!==u)){var D="deltaY"in T?tp(T):va(T),M=r.current.filter(function(x){return x.name===T.type&&(x.target===T.target||T.target===x.shadowParent)&&UO(x.delta,D)})[0];if(M&&M.should){T.cancelable&&T.preventDefault();return}if(!M){var R=(c.current.shards||[]).map(np).filter(Boolean).filter(function(x){return x.contains(T.target)}),k=R.length>0?f(T,R[0]):!c.current.noIsolation;k&&T.cancelable&&T.preventDefault()}}},[]),m=I.useCallback(function(w,T,D,M){var R={name:w,delta:T,target:D,should:M,shadowParent:qO(D)};r.current.push(R),setTimeout(function(){r.current=r.current.filter(function(k){return k!==R})},1)},[]),y=I.useCallback(function(w){n.current=va(w),o.current=void 0},[]),_=I.useCallback(function(w){m(w.type,tp(w),w.target,f(w,e.lockRef.current))},[]),O=I.useCallback(function(w){m(w.type,va(w),w.target,f(w,e.lockRef.current))},[]);I.useEffect(function(){return gi.push(u),e.setCallbacks({onScrollCapture:_,onWheelCapture:_,onTouchMoveCapture:O}),document.addEventListener("wheel",h,mi),document.addEventListener("touchmove",h,mi),document.addEventListener("touchstart",y,mi),function(){gi=gi.filter(function(w){return w!==u}),document.removeEventListener("wheel",h,mi),document.removeEventListener("touchmove",h,mi),document.removeEventListener("touchstart",y,mi)}},[]);var v=e.removeScrollBar,S=e.inert;return I.createElement(I.Fragment,null,S?I.createElement(u,{styles:BO(a)}):null,v?I.createElement(MO,{gapMode:e.gapMode}):null)}function qO(e){for(var r=null;e!==null;)e instanceof ShadowRoot&&(r=e.host,e=e.host),e=e.parentNode;return r}const KO=_O(Gh,zO);var Zh=I.forwardRef(function(e,r){return I.createElement(Ya,Mn({},e,{ref:r,sideCar:KO}))});Zh.classNames=Ya.classNames;const GO=Zh,io=globalThis!=null&&globalThis.document?I.useLayoutEffect:()=>{},YO=I["useId".toString()]||(()=>{});let XO=0;function VO(e){const[r,n]=I.useState(YO());return io(()=>{e||n(o=>o??String(XO++))},[e]),e||(r?`radix-${r}`:"")}function Qh(...e){return r=>e.forEach(n=>function(o,a){typeof o=="function"?o(a):o!=null&&(o.current=a)}(n,r))}function Gr(...e){return I.useCallback(Qh(...e),e)}const ev=I.forwardRef((e,r)=>{const{children:n,...o}=e;return I.Children.toArray(n).some(rp)?I.createElement(I.Fragment,null,I.Children.map(n,a=>rp(a)?I.createElement(ac,gt({},o,{ref:r}),a.props.children):a)):I.createElement(ac,gt({},o,{ref:r}),n)});ev.displayName="Slot";const ac=I.forwardRef((e,r)=>{const{children:n,...o}=e;return I.isValidElement(n)?I.cloneElement(n,{...ZO(o,n.props),ref:Qh(r,n.ref)}):I.Children.count(n)>1?I.Children.only(null):null});ac.displayName="SlotClone";const JO=({children:e})=>I.createElement(I.Fragment,null,e);function rp(e){return I.isValidElement(e)&&e.type===JO}function ZO(e,r){const n={...r};for(const o in r){const a=e[o],u=r[o];/^on[A-Z]/.test(o)?n[o]=(...c)=>{u==null||u(...c),a==null||a(...c)}:o==="style"?n[o]={...a,...u}:o==="className"&&(n[o]=[a,u].filter(Boolean).join(" "))}return{...e,...n}}const xi=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((e,r)=>({...e,[r]:I.forwardRef((n,o)=>{const{asChild:a,...u}=n,c=a?ev:r;return I.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),I.createElement(c,gt({},u,{ref:o}))})}),{}),tv=e=>{const{present:r,children:n}=e,o=function(c){const[f,h]=I.useState(),m=I.useRef({}),y=I.useRef(c),_=I.useRef("none"),O=c?"mounted":"unmounted",[v,S]=function(w,T){return I.useReducer((D,M)=>{const R=T[D][M];return R??D},w)}(O,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return I.useEffect(()=>{const w=ma(m.current);_.current=v==="mounted"?w:"none"},[v]),io(()=>{const w=m.current,T=y.current;if(T!==c){const D=_.current,M=ma(w);c?S("MOUNT"):M==="none"||(w==null?void 0:w.display)==="none"?S("UNMOUNT"):S(T&&D!==M?"ANIMATION_OUT":"UNMOUNT"),y.current=c}},[c,S]),io(()=>{if(f){const w=D=>{const M=ma(m.current).includes(D.animationName);D.target===f&&M&&S("ANIMATION_END")},T=D=>{D.target===f&&(_.current=ma(m.current))};return f.addEventListener("animationstart",T),f.addEventListener("animationcancel",w),f.addEventListener("animationend",w),()=>{f.removeEventListener("animationstart",T),f.removeEventListener("animationcancel",w),f.removeEventListener("animationend",w)}}S("ANIMATION_END")},[f,S]),{isPresent:["mounted","unmountSuspended"].includes(v),ref:I.useCallback(w=>{w&&(m.current=getComputedStyle(w)),h(w)},[])}}(r),a=typeof n=="function"?n({present:o.isPresent}):I.Children.only(n),u=Gr(o.ref,a.ref);return typeof n=="function"||o.isPresent?I.cloneElement(a,{ref:u}):null};function ma(e){return(e==null?void 0:e.animationName)||"none"}tv.displayName="Presence";let Lu=0;function QO(){I.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:ip()),document.body.insertAdjacentElement("beforeend",(r=n[1])!==null&&r!==void 0?r:ip()),Lu++,()=>{Lu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(o=>o.remove()),Lu--}},[])}function ip(){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 nv=I.forwardRef((e,r)=>{var n,o;const{containerRef:a,style:u,...c}=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,[,h]=I.useState({});return io(()=>{h({})},[]),f?Ba.createPortal(I.createElement(xi.div,gt({"data-radix-portal":""},c,{ref:r,style:f===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...u}:void 0})),f):null});function Kr(e){const r=I.useRef(e);return I.useEffect(()=>{r.current=e}),I.useMemo(()=>(...n)=>{var o;return(o=r.current)===null||o===void 0?void 0:o.call(r,...n)},[])}const op={bubbles:!1,cancelable:!0},eT=I.forwardRef((e,r)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:a,onUnmountAutoFocus:u,...c}=e,[f,h]=I.useState(null),m=Kr(a),y=Kr(u),_=I.useRef(null),O=Gr(r,w=>h(w)),v=I.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;I.useEffect(()=>{if(o){let w=function(D){if(v.paused||!f)return;const M=D.target;f.contains(M)?_.current=M:Nr(_.current,{select:!0})},T=function(D){!v.paused&&f&&(f.contains(D.relatedTarget)||Nr(_.current,{select:!0}))};return document.addEventListener("focusin",w),document.addEventListener("focusout",T),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",T)}}},[o,f,v.paused]),I.useEffect(()=>{if(f){up.add(v);const T=document.activeElement;if(!f.contains(T)){const D=new Event("focusScope.autoFocusOnMount",op);f.addEventListener("focusScope.autoFocusOnMount",m),f.dispatchEvent(D),D.defaultPrevented||(function(M,{select:R=!1}={}){const k=document.activeElement;for(const x of M)if(Nr(x,{select:R}),document.activeElement!==k)return}((w=ap(f),w.filter(M=>M.tagName!=="A")),{select:!0}),document.activeElement===T&&Nr(f))}return()=>{f.removeEventListener("focusScope.autoFocusOnMount",m),setTimeout(()=>{const D=new Event("focusScope.autoFocusOnUnmount",op);f.addEventListener("focusScope.autoFocusOnUnmount",y),f.dispatchEvent(D),D.defaultPrevented||Nr(T??document.body,{select:!0}),f.removeEventListener("focusScope.autoFocusOnUnmount",y),up.remove(v)},0)}}var w},[f,m,y,v]);const S=I.useCallback(w=>{if(!n&&!o||v.paused)return;const T=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,D=document.activeElement;if(T&&D){const M=w.currentTarget,[R,k]=function(x){const W=ap(x),F=sp(W,x),$=sp(W.reverse(),x);return[F,$]}(M);R&&k?w.shiftKey||D!==k?w.shiftKey&&D===R&&(w.preventDefault(),n&&Nr(k,{select:!0})):(w.preventDefault(),n&&Nr(R,{select:!0})):D===M&&w.preventDefault()}},[n,o,v.paused]);return I.createElement(xi.div,gt({tabIndex:-1},c,{ref:O,onKeyDown:S}))});function ap(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 sp(e,r){for(const n of e)if(!tT(n,{upTo:r}))return n}function tT(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 Nr(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 up=function(){let e=[];return{add(r){const n=e[0];r!==n&&(n==null||n.pause()),e=cp(e,r),e.unshift(r)},remove(r){var n;e=cp(e,r),(n=e[0])===null||n===void 0||n.resume()}}}();function cp(e,r){const n=[...e],o=n.indexOf(r);return o!==-1&&n.splice(o,1),n}function nT(e){const r=Kr(e);I.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[r])}let lp,ga=0;function rT({disabled:e}){const r=I.useRef(!1);io(()=>{if(e){let n=function(){ga--,ga===0&&(document.body.style.pointerEvents=lp)},o=function(a){r.current=a.pointerType!=="mouse"};return ga===0&&(lp=document.body.style.pointerEvents),document.body.style.pointerEvents="none",ga++,document.addEventListener("pointerup",o),()=>{r.current?document.addEventListener("click",n,{once:!0}):n(),document.removeEventListener("pointerup",o)}}},[e])}function Hr(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 iT=I.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),oT=I.forwardRef((e,r)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:u,onInteractOutside:c,onDismiss:f,...h}=e,m=I.useContext(iT),[y,_]=I.useState(null),[,O]=I.useState({}),v=Gr(r,W=>_(W)),S=Array.from(m.layers),[w]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),T=S.indexOf(w),D=y?S.indexOf(y):-1,M=m.layersWithOutsidePointerEventsDisabled.size>0,R=D>=T,k=function(W){const F=Kr(W),$=I.useRef(!1);return I.useEffect(()=>{const Z=we=>{we.target&&!$.current&&dp("dismissableLayer.pointerDownOutside",F,{originalEvent:we}),$.current=!1},ne=window.setTimeout(()=>{document.addEventListener("pointerdown",Z)},0);return()=>{window.clearTimeout(ne),document.removeEventListener("pointerdown",Z)}},[F]),{onPointerDownCapture:()=>$.current=!0}}(W=>{const F=W.target,$=[...m.branches].some(Z=>Z.contains(F));R&&!$&&(a==null||a(W),c==null||c(W),W.defaultPrevented||f==null||f())}),x=function(W){const F=Kr(W),$=I.useRef(!1);return I.useEffect(()=>{const Z=ne=>{ne.target&&!$.current&&dp("dismissableLayer.focusOutside",F,{originalEvent:ne})};return document.addEventListener("focusin",Z),()=>document.removeEventListener("focusin",Z)},[F]),{onFocusCapture:()=>$.current=!0,onBlurCapture:()=>$.current=!1}}(W=>{const F=W.target;[...m.branches].some($=>$.contains(F))||(u==null||u(W),c==null||c(W),W.defaultPrevented||f==null||f())});return nT(W=>{D===m.layers.size-1&&(o==null||o(W),W.defaultPrevented||f==null||f())}),rT({disabled:n}),I.useEffect(()=>{y&&(n&&m.layersWithOutsidePointerEventsDisabled.add(y),m.layers.add(y),fp())},[y,n,m]),I.useEffect(()=>()=>{y&&(m.layers.delete(y),m.layersWithOutsidePointerEventsDisabled.delete(y),fp())},[y,m]),I.useEffect(()=>{const W=()=>O({});return document.addEventListener("dismissableLayer.update",W),()=>document.removeEventListener("dismissableLayer.update",W)},[]),I.createElement(xi.div,gt({},h,{ref:v,style:{pointerEvents:M?R?"auto":"none":void 0,...e.style},onFocusCapture:Hr(e.onFocusCapture,x.onFocusCapture),onBlurCapture:Hr(e.onBlurCapture,x.onBlurCapture),onPointerDownCapture:Hr(e.onPointerDownCapture,k.onPointerDownCapture)}))});function fp(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function dp(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 pp(e){const[r,n]=I.useState(void 0);return I.useEffect(()=>{if(e){const o=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const u=a[0];let c,f;if("borderBoxSize"in u){const h=u.borderBoxSize,m=Array.isArray(h)?h[0]:h;c=m.inlineSize,f=m.blockSize}else{const h=e.getBoundingClientRect();c=h.width,f=h.height}n({width:c,height:f})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}n(void 0)},[e]),r}function aT(e,r){const n=jr.get(e);return n===void 0?(jr.set(e,{rect:{},callbacks:[r]}),jr.size===1&&(sc=requestAnimationFrame(rv))):(n.callbacks.push(r),r(e.getBoundingClientRect())),()=>{const o=jr.get(e);if(o===void 0)return;const a=o.callbacks.indexOf(r);a>-1&&o.callbacks.splice(a,1),o.callbacks.length===0&&(jr.delete(e),jr.size===0&&cancelAnimationFrame(sc))}}let sc;const jr=new Map;function rv(){const e=[];jr.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))}),sc=requestAnimationFrame(rv)}function sT(e){const[r,n]=I.useState();return I.useEffect(()=>{if(e){const o=aT(e,n);return()=>{n(void 0),o()}}},[e]),r}function iv(e,r=[]){let n=[];const o=()=>{const a=n.map(u=>I.createContext(u));return function(u){const c=(u==null?void 0:u[e])||a;return I.useMemo(()=>({[`__scope${e}`]:{...u,[e]:c}}),[u,c])}};return o.scopeName=e,[function(a,u){const c=I.createContext(u),f=n.length;function h(m){const{scope:y,children:_,...O}=m,v=(y==null?void 0:y[e][f])||c,S=I.useMemo(()=>O,Object.values(O));return I.createElement(v.Provider,{value:S},_)}return n=[...n,u],h.displayName=a+"Provider",[h,function(m,y){const _=(y==null?void 0:y[e][f])||c,O=I.useContext(_);if(O)return O;if(u!==void 0)return u;throw new Error(`\`${m}\` must be used within \`${a}\``)}]},uT(o,...r)]}function uT(...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((c,{useScope:f,scopeName:h})=>({...c,...f(a)[`__scope${h}`]}),{});return I.useMemo(()=>({[`__scope${r.scopeName}`]:u}),[u])}};return n.scopeName=r.scopeName,n}function cT({anchorRect:e,popperSize:r,arrowSize:n,arrowOffset:o=0,side:a,sideOffset:u=0,align:c,alignOffset:f=0,shouldAvoidCollisions:h=!0,collisionBoundariesRect:m,collisionTolerance:y=0}){if(!e||!r||!m)return{popperStyles:lT,arrowStyles:Mu};const _=function(F,$,Z=0,ne=0,we){const Me=we?we.height:0,Oe=hp($,F,"x"),ue=hp($,F,"y"),ke=ue.before-Z-Me,_e=ue.after+Z+Me,Ie=Oe.before-Z-Me,qe=Oe.after+Z+Me;return{top:{start:{x:Oe.start+ne,y:ke},center:{x:Oe.center,y:ke},end:{x:Oe.end-ne,y:ke}},right:{start:{x:qe,y:ue.start+ne},center:{x:qe,y:ue.center},end:{x:qe,y:ue.end-ne}},bottom:{start:{x:Oe.start+ne,y:_e},center:{x:Oe.center,y:_e},end:{x:Oe.end-ne,y:_e}},left:{start:{x:Ie,y:ue.start+ne},center:{x:Ie,y:ue.center},end:{x:Ie,y:ue.end-ne}}}}(r,e,u,f,n),O=_[a][c];if(h===!1){const F=vp(O);let $=Mu;return n&&($=gp({popperSize:r,arrowSize:n,arrowOffset:o,side:a,align:c})),{popperStyles:{...F,"--radix-popper-transform-origin":mp(r,a,c,o,n)},arrowStyles:$,placedSide:a,placedAlign:c}}const v=DOMRect.fromRect({...r,...O}),S=(w=m,T=y,DOMRect.fromRect({width:w.width-2*T,height:w.height-2*T,x:w.left+T,y:w.top+T}));var w,T;const D=wp(v,S),M=_[yp(a)][c],R=function(F,$,Z){const ne=yp(F);return $[F]&&!Z[ne]?ne:F}(a,D,wp(DOMRect.fromRect({...r,...M}),S)),k=function(F,$,Z,ne,we){const Me=Z==="top"||Z==="bottom",Oe=Me?"left":"top",ue=Me?"right":"bottom",ke=Me?"width":"height",_e=$[ke]>F[ke];return(ne==="start"||ne==="center")&&(we[Oe]&&_e||we[ue]&&!_e)?"end":(ne==="end"||ne==="center")&&(we[ue]&&_e||we[Oe]&&!_e)?"start":ne}(r,e,a,c,D),x=vp(_[R][k]);let W=Mu;return n&&(W=gp({popperSize:r,arrowSize:n,arrowOffset:o,side:R,align:k})),{popperStyles:{...x,"--radix-popper-transform-origin":mp(r,R,k,o,n)},arrowStyles:W,placedSide:R,placedAlign:k}}function hp(e,r,n){const o=e[n==="x"?"left":"top"],a=n==="x"?"width":"height",u=e[a],c=r[a];return{before:o-c,start:o,center:o+(u-c)/2,end:o+u-c,after:o+u}}function vp(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 mp(e,r,n,o,a){const u=r==="top"||r==="bottom",c=a?a.width:0,f=a?a.height:0,h=c/2+o;let m="",y="";return u?(m={start:`${h}px`,center:"center",end:e.width-h+"px"}[n],y=r==="top"?`${e.height+f}px`:-f+"px"):(m=r==="left"?`${e.width+f}px`:-f+"px",y={start:`${h}px`,center:"center",end:e.height-h+"px"}[n]),`${m} ${y}`}const lT={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},Mu={position:"absolute",opacity:0};function gp({popperSize:e,arrowSize:r,arrowOffset:n,side:o,align:a}){const u=(e.width-r.width)/2,c=(e.height-r.width)/2,f={top:0,right:90,bottom:180,left:-90}[o],h=Math.max(r.width,r.height),m={width:`${h}px`,height:`${h}px`,transform:`rotate(${f}deg)`,willChange:"transform",position:"absolute",[o]:"100%",direction:fT(o,a)};return o!=="top"&&o!=="bottom"||(a==="start"&&(m.left=`${n}px`),a==="center"&&(m.left=`${u}px`),a==="end"&&(m.right=`${n}px`)),o!=="left"&&o!=="right"||(a==="start"&&(m.top=`${n}px`),a==="center"&&(m.top=`${c}px`),a==="end"&&(m.bottom=`${n}px`)),m}function fT(e,r){return(e!=="top"&&e!=="right"||r!=="end")&&(e!=="bottom"&&e!=="left"||r==="end")?"ltr":"rtl"}function yp(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function wp(e,r){return{top:e.top<r.top,right:e.right>r.right,bottom:e.bottom>r.bottom,left:e.left<r.left}}const[ov,av]=iv("Popper"),[dT,sv]=ov("Popper"),pT=e=>{const{__scopePopper:r,children:n}=e,[o,a]=I.useState(null);return I.createElement(dT,{scope:r,anchor:o,onAnchorChange:a},n)},hT=I.forwardRef((e,r)=>{const{__scopePopper:n,virtualRef:o,...a}=e,u=sv("PopperAnchor",n),c=I.useRef(null),f=Gr(r,c);return I.useEffect(()=>{u.onAnchorChange((o==null?void 0:o.current)||c.current)}),o?null:I.createElement(xi.div,gt({},a,{ref:f}))}),[vT,xA]=ov("PopperContent"),mT=I.forwardRef((e,r)=>{const{__scopePopper:n,side:o="bottom",sideOffset:a,align:u="center",alignOffset:c,collisionTolerance:f,avoidCollisions:h=!0,...m}=e,y=sv("PopperContent",n),[_,O]=I.useState(),v=sT(y.anchor),[S,w]=I.useState(null),T=pp(S),[D,M]=I.useState(null),R=pp(D),k=Gr(r,Me=>w(Me)),x=function(){const[Me,Oe]=I.useState(void 0);return I.useEffect(()=>{let ue;function ke(){Oe({width:window.innerWidth,height:window.innerHeight})}function _e(){window.clearTimeout(ue),ue=window.setTimeout(ke,100)}return ke(),window.addEventListener("resize",_e),()=>window.removeEventListener("resize",_e)},[]),Me}(),W=x?DOMRect.fromRect({...x,x:0,y:0}):void 0,{popperStyles:F,arrowStyles:$,placedSide:Z,placedAlign:ne}=cT({anchorRect:v,popperSize:T,arrowSize:R,arrowOffset:_,side:o,sideOffset:a,align:u,alignOffset:c,shouldAvoidCollisions:h,collisionBoundariesRect:W,collisionTolerance:f}),we=Z!==void 0;return I.createElement("div",{style:F,"data-radix-popper-content-wrapper":""},I.createElement(vT,{scope:n,arrowStyles:$,onArrowChange:M,onArrowOffsetChange:O},I.createElement(xi.div,gt({"data-side":Z,"data-align":ne},m,{style:{...m.style,animation:we?void 0:"none"},ref:k}))))}),gT=pT,yT=hT,wT=mT;function bT({prop:e,defaultProp:r,onChange:n=()=>{}}){const[o,a]=function({defaultProp:h,onChange:m}){const y=I.useState(h),[_]=y,O=I.useRef(_),v=Kr(m);return I.useEffect(()=>{O.current!==_&&(v(_),O.current=_)},[_,O,v]),y}({defaultProp:r,onChange:n}),u=e!==void 0,c=u?e:o,f=Kr(n);return[c,I.useCallback(h=>{if(u){const m=h,y=typeof h=="function"?m(e):h;y!==e&&f(y)}else a(h)},[u,e,a,f])]}const[_T,OA]=iv("Popover",[av]),Lc=av(),[ST,fo]=_T("Popover"),ET=e=>{const{__scopePopover:r,children:n,open:o,defaultOpen:a,onOpenChange:u,modal:c=!1}=e,f=Lc(r),h=I.useRef(null),[m,y]=I.useState(!1),[_=!1,O]=bT({prop:o,defaultProp:a,onChange:u});return I.createElement(gT,f,I.createElement(ST,{scope:r,contentId:VO(),triggerRef:h,open:_,onOpenChange:O,onOpenToggle:I.useCallback(()=>O(v=>!v),[O]),hasCustomAnchor:m,onCustomAnchorAdd:I.useCallback(()=>y(!0),[]),onCustomAnchorRemove:I.useCallback(()=>y(!1),[]),modal:c},n))},xT=I.forwardRef((e,r)=>{const{__scopePopover:n,...o}=e,a=fo("PopoverTrigger",n),u=Lc(n),c=Gr(r,a.triggerRef),f=I.createElement(xi.button,gt({type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":cv(a.open)},o,{ref:c,onClick:Hr(e.onClick,a.onOpenToggle)}));return a.hasCustomAnchor?f:I.createElement(yT,gt({asChild:!0},u),f)}),OT=I.forwardRef((e,r)=>{const{forceMount:n,...o}=e,a=fo("PopoverContent",e.__scopePopover);return I.createElement(tv,{present:n||a.open},a.modal?I.createElement(TT,gt({},o,{ref:r})):I.createElement(CT,gt({},o,{ref:r})))}),TT=I.forwardRef((e,r)=>{const{allowPinchZoom:n,portalled:o=!0,...a}=e,u=fo("PopoverContent",e.__scopePopover),c=I.useRef(null),f=Gr(r,c),h=I.useRef(!1);I.useEffect(()=>{const y=c.current;if(y)return dO(y)},[]);const m=o?nv:I.Fragment;return I.createElement(m,null,I.createElement(GO,{allowPinchZoom:n},I.createElement(uv,gt({},a,{ref:f,trapFocus:u.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Hr(e.onCloseAutoFocus,y=>{var _;y.preventDefault(),h.current||(_=u.triggerRef.current)===null||_===void 0||_.focus()}),onPointerDownOutside:Hr(e.onPointerDownOutside,y=>{const _=y.detail.originalEvent,O=_.button===0&&_.ctrlKey===!0,v=_.button===2||O;h.current=v},{checkForDefaultPrevented:!1}),onFocusOutside:Hr(e.onFocusOutside,y=>y.preventDefault(),{checkForDefaultPrevented:!1})}))))}),CT=I.forwardRef((e,r)=>{const{portalled:n=!0,...o}=e,a=fo("PopoverContent",e.__scopePopover),u=I.useRef(!1),c=n?nv:I.Fragment;return I.createElement(c,null,I.createElement(uv,gt({},o,{ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:f=>{var h,m;(h=e.onCloseAutoFocus)===null||h===void 0||h.call(e,f),f.defaultPrevented||(u.current||(m=a.triggerRef.current)===null||m===void 0||m.focus(),f.preventDefault()),u.current=!1},onInteractOutside:f=>{var h,m;(h=e.onInteractOutside)===null||h===void 0||h.call(e,f),f.defaultPrevented||(u.current=!0);const y=f.target;!((m=a.triggerRef.current)===null||m===void 0)&&m.contains(y)&&f.preventDefault()}})))}),uv=I.forwardRef((e,r)=>{const{__scopePopover:n,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:u,disableOutsidePointerEvents:c,onEscapeKeyDown:f,onPointerDownOutside:h,onFocusOutside:m,onInteractOutside:y,..._}=e,O=fo("PopoverContent",n),v=Lc(n);return QO(),I.createElement(eT,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:u},I.createElement(oT,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:y,onEscapeKeyDown:f,onPointerDownOutside:h,onFocusOutside:m,onDismiss:()=>O.onOpenChange(!1)},I.createElement(wT,gt({"data-state":cv(O.open),role:"dialog",id:O.contentId},v,_,{ref:r,style:{..._.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))});function cv(e){return e?"open":"closed"}const RT=ET,PT=xT,AT=OT;var Ia=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(Ia||{});var lv={},Xa={},Mc={},Du={},ya={exports:{}},wa={exports:{}},Ue={};/** @license React v16.13.1
126
+ `)},bT=0,Oi=[];function wT(e){var r=L.useRef([]),n=L.useRef([0,0]),o=L.useRef(),a=L.useState(bT++)[0],u=L.useState(yv)[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(Tp),!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],N="deltaY"in y?y.deltaY:I[1]-D[1],T,U=y.target,B=Math.abs(C)>Math.abs(N)?"h":"v";if("touches"in y&&B==="h"&&U.type==="range")return!1;var j=xp(B,U);if(!j)return!0;if(j?T=B:(T=B==="v"?"h":"v",j=xp(B,U)),!j)return!1;if(!o.current&&"changedTouches"in y&&(C||N)&&(o.current=T),!T)return!0;var J=o.current||T;return mT(J,E,y,J==="h"?C:N,!0)},[]),d=L.useCallback(function(y){var E=y;if(!(!Oi.length||Oi[Oi.length-1]!==u)){var D="deltaY"in E?Op(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(Tp).filter(Boolean).filter(function(T){return T.contains(E.target)}),N=C.length>0?f(E,C[0]):!l.current.noIsolation;N&&E.cancelable&&E.preventDefault()}}},[]),m=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(N){return N!==C})},1)},[]),g=L.useCallback(function(y){n.current=Ta(y),o.current=void 0},[]),_=L.useCallback(function(y){m(y.type,Op(y),y.target,f(y,e.lockRef.current))},[]),O=L.useCallback(function(y){m(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 v=e.removeScrollBar,S=e.inert;return L.createElement(L.Fragment,null,S?L.createElement(u,{styles:yT(a)}):null,v?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=JO(gv,wT);var Sv=L.forwardRef(function(e,r){return L.createElement(as,Dn({},e,{ref:r,sideCar:ST}))});Sv.classNames=as.classNames;const ET=Sv,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 Ev(...e){return r=>e.forEach(n=>function(o,a){typeof o=="function"?o(a):o!=null&&(o.current=a)}(n,r))}function Qr(...e){return L.useCallback(Ev(...e),e)}const xv=L.forwardRef((e,r)=>{const{children:n,...o}=e;return L.Children.toArray(n).some(Cp)?L.createElement(L.Fragment,null,L.Children.map(n,a=>Cp(a)?L.createElement(xl,bt({},o,{ref:r}),a.props.children):a)):L.createElement(xl,bt({},o,{ref:r}),n)});xv.displayName="Slot";const xl=L.forwardRef((e,r)=>{const{children:n,...o}=e;return L.isValidElement(n)?L.cloneElement(n,{...RT(o,n.props),ref:Ev(r,n.ref)}):L.Children.count(n)>1?L.Children.only(null):null});xl.displayName="SlotClone";const CT=({children:e})=>L.createElement(L.Fragment,null,e);function Cp(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?xv:r;return L.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),L.createElement(l,bt({},u,{ref:o}))})}),{}),Ov=e=>{const{present:r,children:n}=e,o=function(l){const[f,d]=L.useState(),m=L.useRef({}),g=L.useRef(l),_=L.useRef("none"),O=l?"mounted":"unmounted",[v,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(m.current);_.current=v==="mounted"?y:"none"},[v]),ho(()=>{const y=m.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(m.current).includes(D.animationName);D.target===f&&I&&S("ANIMATION_END")},E=D=>{D.target===f&&(_.current=Ca(m.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(v),ref:L.useCallback(y=>{y&&(m.current=getComputedStyle(y)),d(y)},[])}}(r),a=typeof n=="function"?n({present:o.isPresent}):L.Children.only(n),u=Qr(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"}Ov.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:Rp()),document.body.insertAdjacentElement("beforeend",(r=n[1])!==null&&r!==void 0?r:Rp()),Ku++,()=>{Ku===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(o=>o.remove()),Ku--}},[])}function Rp(){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 Tv=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,bt({"data-radix-portal":""},l,{ref:r,style:f===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...u}:void 0})),f):null});function Zr(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 Pp={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),m=Zr(a),g=Zr(u),_=L.useRef(null),O=Qr(r,y=>d(y)),v=L.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;L.useEffect(()=>{if(o){let y=function(D){if(v.paused||!f)return;const I=D.target;f.contains(I)?_.current=I:Ur(_.current,{select:!0})},E=function(D){!v.paused&&f&&(f.contains(D.relatedTarget)||Ur(_.current,{select:!0}))};return document.addEventListener("focusin",y),document.addEventListener("focusout",E),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",E)}}},[o,f,v.paused]),L.useEffect(()=>{if(f){Lp.add(v);const E=document.activeElement;if(!f.contains(E)){const D=new Event("focusScope.autoFocusOnMount",Pp);f.addEventListener("focusScope.autoFocusOnMount",m),f.dispatchEvent(D),D.defaultPrevented||(function(I,{select:C=!1}={}){const N=document.activeElement;for(const T of I)if(Ur(T,{select:C}),document.activeElement!==N)return}((y=Ap(f),y.filter(I=>I.tagName!=="A")),{select:!0}),document.activeElement===E&&Ur(f))}return()=>{f.removeEventListener("focusScope.autoFocusOnMount",m),setTimeout(()=>{const D=new Event("focusScope.autoFocusOnUnmount",Pp);f.addEventListener("focusScope.autoFocusOnUnmount",g),f.dispatchEvent(D),D.defaultPrevented||Ur(E??document.body,{select:!0}),f.removeEventListener("focusScope.autoFocusOnUnmount",g),Lp.remove(v)},0)}}var y},[f,m,g,v]);const S=L.useCallback(y=>{if(!n&&!o||v.paused)return;const E=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,D=document.activeElement;if(E&&D){const I=y.currentTarget,[C,N]=function(T){const U=Ap(T),B=Ip(U,T),j=Ip(U.reverse(),T);return[B,j]}(I);C&&N?y.shiftKey||D!==N?y.shiftKey&&D===C&&(y.preventDefault(),n&&Ur(N,{select:!0})):(y.preventDefault(),n&&Ur(C,{select:!0})):D===I&&y.preventDefault()}},[n,o,v.paused]);return L.createElement(Mi.div,bt({tabIndex:-1},l,{ref:O,onKeyDown:S}))});function Ap(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 Ip(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 Ur(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 Lp=function(){let e=[];return{add(r){const n=e[0];r!==n&&(n==null||n.pause()),e=Mp(e,r),e.unshift(r)},remove(r){var n;e=Mp(e,r),(n=e[0])===null||n===void 0||n.resume()}}}();function Mp(e,r){const n=[...e],o=n.indexOf(r);return o!==-1&&n.splice(o,1),n}function LT(e){const r=Zr(e);L.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[r])}let Dp,Ra=0;function MT({disabled:e}){const r=L.useRef(!1);ho(()=>{if(e){let n=function(){Ra--,Ra===0&&(document.body.style.pointerEvents=Dp)},o=function(a){r.current=a.pointerType!=="mouse"};return Ra===0&&(Dp=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 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 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,m=L.useContext(DT),[g,_]=L.useState(null),[,O]=L.useState({}),v=Qr(r,U=>_(U)),S=Array.from(m.layers),[y]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),E=S.indexOf(y),D=g?S.indexOf(g):-1,I=m.layersWithOutsidePointerEventsDisabled.size>0,C=D>=E,N=function(U){const B=Zr(U),j=L.useRef(!1);return L.useEffect(()=>{const J=ge=>{ge.target&&!j.current&&Np("dismissableLayer.pointerDownOutside",B,{originalEvent:ge}),j.current=!1},ee=window.setTimeout(()=>{document.addEventListener("pointerdown",J)},0);return()=>{window.clearTimeout(ee),document.removeEventListener("pointerdown",J)}},[B]),{onPointerDownCapture:()=>j.current=!0}}(U=>{const B=U.target,j=[...m.branches].some(J=>J.contains(B));C&&!j&&(a==null||a(U),l==null||l(U),U.defaultPrevented||f==null||f())}),T=function(U){const B=Zr(U),j=L.useRef(!1);return L.useEffect(()=>{const J=ee=>{ee.target&&!j.current&&Np("dismissableLayer.focusOutside",B,{originalEvent:ee})};return document.addEventListener("focusin",J),()=>document.removeEventListener("focusin",J)},[B]),{onFocusCapture:()=>j.current=!0,onBlurCapture:()=>j.current=!1}}(U=>{const B=U.target;[...m.branches].some(j=>j.contains(B))||(u==null||u(U),l==null||l(U),U.defaultPrevented||f==null||f())});return LT(U=>{D===m.layers.size-1&&(o==null||o(U),U.defaultPrevented||f==null||f())}),MT({disabled:n}),L.useEffect(()=>{g&&(n&&m.layersWithOutsidePointerEventsDisabled.add(g),m.layers.add(g),kp())},[g,n,m]),L.useEffect(()=>()=>{g&&(m.layers.delete(g),m.layersWithOutsidePointerEventsDisabled.delete(g),kp())},[g,m]),L.useEffect(()=>{const U=()=>O({});return document.addEventListener("dismissableLayer.update",U),()=>document.removeEventListener("dismissableLayer.update",U)},[]),L.createElement(Mi.div,bt({},d,{ref:v,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,N.onPointerDownCapture)}))});function kp(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function Np(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 $p(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,m=Array.isArray(d)?d[0]:d;l=m.inlineSize,f=m.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=Hr.get(e);return n===void 0?(Hr.set(e,{rect:{},callbacks:[r]}),Hr.size===1&&(Ol=requestAnimationFrame(Cv))):(n.callbacks.push(r),r(e.getBoundingClientRect())),()=>{const o=Hr.get(e);if(o===void 0)return;const a=o.callbacks.indexOf(r);a>-1&&o.callbacks.splice(a,1),o.callbacks.length===0&&(Hr.delete(e),Hr.size===0&&cancelAnimationFrame(Ol))}}let Ol;const Hr=new Map;function Cv(){const e=[];Hr.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(Cv)}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 Rv(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(m){const{scope:g,children:_,...O}=m,v=(g==null?void 0:g[e][f])||l,S=L.useMemo(()=>O,Object.values(O));return L.createElement(v.Provider,{value:S},_)}return n=[...n,u],d.displayName=a+"Provider",[d,function(m,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(`\`${m}\` 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:m,collisionTolerance:g=0}){if(!e||!r||!m)return{popperStyles:WT,arrowStyles:Gu};const _=function(B,j,J=0,ee=0,ge){const Ce=ge?ge.height:0,_e=jp(j,B,"x"),se=jp(j,B,"y"),Le=se.before-J-Ce,be=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:be},center:{x:_e.center,y:be},end:{x:_e.end-ee,y:be}},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 B=Fp(O);let j=Gu;return n&&(j=Up({popperSize:r,arrowSize:n,arrowOffset:o,side:a,align:l})),{popperStyles:{...B,"--radix-popper-transform-origin":Wp(r,a,l,o,n)},arrowStyles:j,placedSide:a,placedAlign:l}}const v=DOMRect.fromRect({...r,...O}),S=(y=m,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=Hp(v,S),I=_[Bp(a)][l],C=function(B,j,J){const ee=Bp(B);return j[B]&&!J[ee]?ee:B}(a,D,Hp(DOMRect.fromRect({...r,...I}),S)),N=function(B,j,J,ee,ge){const Ce=J==="top"||J==="bottom",_e=Ce?"left":"top",se=Ce?"right":"bottom",Le=Ce?"width":"height",be=j[Le]>B[Le];return(ee==="start"||ee==="center")&&(ge[_e]&&be||ge[se]&&!be)?"end":(ee==="end"||ee==="center")&&(ge[se]&&be||ge[_e]&&!be)?"start":ee}(r,e,a,l,D),T=Fp(_[C][N]);let U=Gu;return n&&(U=Up({popperSize:r,arrowSize:n,arrowOffset:o,side:C,align:N})),{popperStyles:{...T,"--radix-popper-transform-origin":Wp(r,C,N,o,n)},arrowStyles:U,placedSide:C,placedAlign:N}}function jp(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 Fp(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 Wp(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 m="",g="";return u?(m={start:`${d}px`,center:"center",end:e.width-d+"px"}[n],g=r==="top"?`${e.height+f}px`:-f+"px"):(m=r==="left"?`${e.width+f}px`:-f+"px",g={start:`${d}px`,center:"center",end:e.height-d+"px"}[n]),`${m} ${g}`}const WT={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},Gu={position:"absolute",opacity:0};function Up({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),m={width:`${d}px`,height:`${d}px`,transform:`rotate(${f}deg)`,willChange:"transform",position:"absolute",[o]:"100%",direction:UT(o,a)};return o!=="top"&&o!=="bottom"||(a==="start"&&(m.left=`${n}px`),a==="center"&&(m.left=`${u}px`),a==="end"&&(m.right=`${n}px`)),o!=="left"&&o!=="right"||(a==="start"&&(m.top=`${n}px`),a==="center"&&(m.top=`${l}px`),a==="end"&&(m.bottom=`${n}px`)),m}function UT(e,r){return(e!=="top"&&e!=="right"||r!=="end")&&(e!=="bottom"&&e!=="left"||r==="end")?"ltr":"rtl"}function Bp(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function Hp(e,r){return{top:e.top<r.top,right:e.right>r.right,bottom:e.bottom>r.bottom,left:e.left<r.left}}const[Pv,Av]=Rv("Popper"),[BT,Iv]=Pv("Popper"),HT=e=>{const{__scopePopper:r,children:n}=e,[o,a]=L.useState(null);return L.createElement(BT,{scope:r,anchor:o,onAnchorChange:a},n)},zT=L.forwardRef((e,r)=>{const{__scopePopper:n,virtualRef:o,...a}=e,u=Iv("PopperAnchor",n),l=L.useRef(null),f=Qr(r,l);return L.useEffect(()=>{u.onAnchorChange((o==null?void 0:o.current)||l.current)}),o?null:L.createElement(Mi.div,bt({},a,{ref:f}))}),[qT,v2]=Pv("PopperContent"),KT=L.forwardRef((e,r)=>{const{__scopePopper:n,side:o="bottom",sideOffset:a,align:u="center",alignOffset:l,collisionTolerance:f,avoidCollisions:d=!0,...m}=e,g=Iv("PopperContent",n),[_,O]=L.useState(),v=$T(g.anchor),[S,y]=L.useState(null),E=$p(S),[D,I]=L.useState(null),C=$p(D),N=Qr(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 be(){window.clearTimeout(se),se=window.setTimeout(Le,100)}return Le(),window.addEventListener("resize",be),()=>window.removeEventListener("resize",be)},[]),Ce}(),U=T?DOMRect.fromRect({...T,x:0,y:0}):void 0,{popperStyles:B,arrowStyles:j,placedSide:J,placedAlign:ee}=FT({anchorRect:v,popperSize:E,arrowSize:C,arrowOffset:_,side:o,sideOffset:a,align:u,alignOffset:l,shouldAvoidCollisions:d,collisionBoundariesRect:U,collisionTolerance:f}),ge=J!==void 0;return L.createElement("div",{style:B,"data-radix-popper-content-wrapper":""},L.createElement(qT,{scope:n,arrowStyles:j,onArrowChange:I,onArrowOffsetChange:O},L.createElement(Mi.div,bt({"data-side":J,"data-align":ee},m,{style:{...m.style,animation:ge?void 0:"none"},ref:N}))))}),GT=HT,YT=zT,VT=KT;function XT({prop:e,defaultProp:r,onChange:n=()=>{}}){const[o,a]=function({defaultProp:d,onChange:m}){const g=L.useState(d),[_]=g,O=L.useRef(_),v=Zr(m);return L.useEffect(()=>{O.current!==_&&(v(_),O.current=_)},[_,O,v]),g}({defaultProp:r,onChange:n}),u=e!==void 0,l=u?e:o,f=Zr(n);return[l,L.useCallback(d=>{if(u){const m=d,g=typeof d=="function"?m(e):d;g!==e&&f(g)}else a(d)},[u,e,a,f])]}const[JT,m2]=Rv("Popover",[Av]),Ql=Av(),[ZT,So]=JT("Popover"),QT=e=>{const{__scopePopover:r,children:n,open:o,defaultOpen:a,onOpenChange:u,modal:l=!1}=e,f=Ql(r),d=L.useRef(null),[m,g]=L.useState(!1),[_=!1,O]=XT({prop:o,defaultProp:a,onChange:u});return L.createElement(GT,f,L.createElement(ZT,{scope:r,contentId:TT(),triggerRef:d,open:_,onOpenChange:O,onOpenToggle:L.useCallback(()=>O(v=>!v),[O]),hasCustomAnchor:m,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=Ql(n),l=Qr(r,a.triggerRef),f=L.createElement(Mi.button,bt({type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Mv(a.open)},o,{ref:l,onClick:Yr(e.onClick,a.onOpenToggle)}));return a.hasCustomAnchor?f:L.createElement(YT,bt({asChild:!0},u),f)}),tC=L.forwardRef((e,r)=>{const{forceMount:n,...o}=e,a=So("PopoverContent",e.__scopePopover);return L.createElement(Ov,{present:n||a.open},a.modal?L.createElement(nC,bt({},o,{ref:r})):L.createElement(rC,bt({},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=Qr(r,l),d=L.useRef(!1);L.useEffect(()=>{const g=l.current;if(g)return BO(g)},[]);const m=o?Tv:L.Fragment;return L.createElement(m,null,L.createElement(ET,{allowPinchZoom:n},L.createElement(Lv,bt({},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,v=_.button===2||O;d.current=v},{checkForDefaultPrevented:!1}),onFocusOutside:Yr(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?Tv:L.Fragment;return L.createElement(l,null,L.createElement(Lv,bt({},o,{ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:f=>{var d,m;(d=e.onCloseAutoFocus)===null||d===void 0||d.call(e,f),f.defaultPrevented||(u.current||(m=a.triggerRef.current)===null||m===void 0||m.focus(),f.preventDefault()),u.current=!1},onInteractOutside:f=>{var d,m;(d=e.onInteractOutside)===null||d===void 0||d.call(e,f),f.defaultPrevented||(u.current=!0);const g=f.target;!((m=a.triggerRef.current)===null||m===void 0)&&m.contains(g)&&f.preventDefault()}})))}),Lv=L.forwardRef((e,r)=>{const{__scopePopover:n,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:u,disableOutsidePointerEvents:l,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:m,onInteractOutside:g,..._}=e,O=So("PopoverContent",n),v=Ql(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:m,onDismiss:()=>O.onOpenChange(!1)},L.createElement(VT,bt({"data-state":Mv(O.open),role:"dialog",id:O.contentId},v,_,{ref:r,style:{..._.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))});function Mv(e){return e?"open":"closed"}const iC=QT,oC=eC,aC=tC;var Ba=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(Ba||{});var Dv={},ss={},ec={},Yu={},Pa={exports:{}},Aa={exports:{}},Be={};/** @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 bp;function IT(){if(bp)return Ue;bp=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,c=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,y=e?Symbol.for("react.forward_ref"):60112,_=e?Symbol.for("react.suspense"):60113,O=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,w=e?Symbol.for("react.block"):60121,T=e?Symbol.for("react.fundamental"):60117,D=e?Symbol.for("react.responder"):60118,M=e?Symbol.for("react.scope"):60119;function R(x){if(typeof x=="object"&&x!==null){var W=x.$$typeof;switch(W){case r:switch(x=x.type,x){case h:case m:case o:case u:case a:case _:return x;default:switch(x=x&&x.$$typeof,x){case f:case y:case S:case v:case c:return x;default:return W}}case n:return W}}}function k(x){return R(x)===m}return Ue.AsyncMode=h,Ue.ConcurrentMode=m,Ue.ContextConsumer=f,Ue.ContextProvider=c,Ue.Element=r,Ue.ForwardRef=y,Ue.Fragment=o,Ue.Lazy=S,Ue.Memo=v,Ue.Portal=n,Ue.Profiler=u,Ue.StrictMode=a,Ue.Suspense=_,Ue.isAsyncMode=function(x){return k(x)||R(x)===h},Ue.isConcurrentMode=k,Ue.isContextConsumer=function(x){return R(x)===f},Ue.isContextProvider=function(x){return R(x)===c},Ue.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===r},Ue.isForwardRef=function(x){return R(x)===y},Ue.isFragment=function(x){return R(x)===o},Ue.isLazy=function(x){return R(x)===S},Ue.isMemo=function(x){return R(x)===v},Ue.isPortal=function(x){return R(x)===n},Ue.isProfiler=function(x){return R(x)===u},Ue.isStrictMode=function(x){return R(x)===a},Ue.isSuspense=function(x){return R(x)===_},Ue.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===o||x===m||x===u||x===a||x===_||x===O||typeof x=="object"&&x!==null&&(x.$$typeof===S||x.$$typeof===v||x.$$typeof===c||x.$$typeof===f||x.$$typeof===y||x.$$typeof===T||x.$$typeof===D||x.$$typeof===M||x.$$typeof===w)},Ue.typeOf=R,Ue}var Be={};/** @license React v16.13.1
133
+ */var zp;function sC(){if(zp)return Be;zp=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,m=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,v=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 U=T.$$typeof;switch(U){case r:switch(T=T.type,T){case d:case m:case o:case u:case a:case _:return T;default:switch(T=T&&T.$$typeof,T){case f:case g:case S:case v:case l:return T;default:return U}}case n:return U}}}function N(T){return C(T)===m}return Be.AsyncMode=d,Be.ConcurrentMode=m,Be.ContextConsumer=f,Be.ContextProvider=l,Be.Element=r,Be.ForwardRef=g,Be.Fragment=o,Be.Lazy=S,Be.Memo=v,Be.Portal=n,Be.Profiler=u,Be.StrictMode=a,Be.Suspense=_,Be.isAsyncMode=function(T){return N(T)||C(T)===d},Be.isConcurrentMode=N,Be.isContextConsumer=function(T){return C(T)===f},Be.isContextProvider=function(T){return C(T)===l},Be.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===r},Be.isForwardRef=function(T){return C(T)===g},Be.isFragment=function(T){return C(T)===o},Be.isLazy=function(T){return C(T)===S},Be.isMemo=function(T){return C(T)===v},Be.isPortal=function(T){return C(T)===n},Be.isProfiler=function(T){return C(T)===u},Be.isStrictMode=function(T){return C(T)===a},Be.isSuspense=function(T){return C(T)===_},Be.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===o||T===m||T===u||T===a||T===_||T===O||typeof T=="object"&&T!==null&&(T.$$typeof===S||T.$$typeof===v||T.$$typeof===l||T.$$typeof===f||T.$$typeof===g||T.$$typeof===E||T.$$typeof===D||T.$$typeof===I||T.$$typeof===y)},Be.typeOf=C,Be}var He={};/** @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 _p;function LT(){return _p||(_p=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,c=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,y=e?Symbol.for("react.forward_ref"):60112,_=e?Symbol.for("react.suspense"):60113,O=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,w=e?Symbol.for("react.block"):60121,T=e?Symbol.for("react.fundamental"):60117,D=e?Symbol.for("react.responder"):60118,M=e?Symbol.for("react.scope"):60119;function R(V){return typeof V=="string"||typeof V=="function"||V===o||V===m||V===u||V===a||V===_||V===O||typeof V=="object"&&V!==null&&(V.$$typeof===S||V.$$typeof===v||V.$$typeof===c||V.$$typeof===f||V.$$typeof===y||V.$$typeof===T||V.$$typeof===D||V.$$typeof===M||V.$$typeof===w)}function k(V){if(typeof V=="object"&&V!==null){var nt=V.$$typeof;switch(nt){case r:var rt=V.type;switch(rt){case h:case m:case o:case u:case a:case _:return rt;default:var lt=rt&&rt.$$typeof;switch(lt){case f:case y:case S:case v:case c:return lt;default:return nt}}case n:return nt}}}var x=h,W=m,F=f,$=c,Z=r,ne=y,we=o,Me=S,Oe=v,ue=n,ke=u,_e=a,Ie=_,qe=!1;function ft(V){return qe||(qe=!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)===h}function G(V){return k(V)===m}function X(V){return k(V)===f}function ve(V){return k(V)===c}function me(V){return typeof V=="object"&&V!==null&&V.$$typeof===r}function ce(V){return k(V)===y}function le(V){return k(V)===o}function ae(V){return k(V)===S}function fe(V){return k(V)===v}function se(V){return k(V)===n}function ge(V){return k(V)===u}function ye(V){return k(V)===a}function Ge(V){return k(V)===_}Be.AsyncMode=x,Be.ConcurrentMode=W,Be.ContextConsumer=F,Be.ContextProvider=$,Be.Element=Z,Be.ForwardRef=ne,Be.Fragment=we,Be.Lazy=Me,Be.Memo=Oe,Be.Portal=ue,Be.Profiler=ke,Be.StrictMode=_e,Be.Suspense=Ie,Be.isAsyncMode=ft,Be.isConcurrentMode=G,Be.isContextConsumer=X,Be.isContextProvider=ve,Be.isElement=me,Be.isForwardRef=ce,Be.isFragment=le,Be.isLazy=ae,Be.isMemo=fe,Be.isPortal=se,Be.isProfiler=ge,Be.isStrictMode=ye,Be.isSuspense=Ge,Be.isValidElementType=R,Be.typeOf=k}()),Be}var Sp;function fv(){return Sp||(Sp=1,process.env.NODE_ENV==="production"?wa.exports=IT():wa.exports=LT()),wa.exports}var ku,Ep;function Dc(){if(Ep)return ku;Ep=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ku=e,ku}var Nu,xp;function dv(){return xp||(xp=1,Nu=Function.call.bind(Object.prototype.hasOwnProperty)),Nu}var $u,Op;function MT(){if(Op)return $u;Op=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var r=Dc(),n={},o=dv();e=function(u){var c="Warning: "+u;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}}}function a(u,c,f,h,m){if(process.env.NODE_ENV!=="production"){for(var y in u)if(o(u,y)){var _;try{if(typeof u[y]!="function"){var O=Error((h||"React class")+": "+f+" type `"+y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof u[y]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw O.name="Invariant Violation",O}_=u[y](c,y,h,f,null,r)}catch(S){_=S}if(_&&!(_ instanceof Error)&&e((h||"React class")+": type specification of "+f+" `"+y+"` 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 v=m?m():"";e("Failed "+f+" type: "+_.message+(v??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},$u=a,$u}var ju,Tp;function DT(){if(Tp)return ju;Tp=1;var e=fv(),r=wc(),n=Dc(),o=dv(),a=MT(),u=function(){};process.env.NODE_ENV!=="production"&&(u=function(f){var h="Warning: "+f;typeof console<"u"&&console.error(h);try{throw new Error(h)}catch{}});function c(){return null}return ju=function(f,h){var m=typeof Symbol=="function"&&Symbol.iterator,y="@@iterator";function _(G){var X=G&&(m&&G[m]||G[y]);if(typeof X=="function")return X}var O="<<anonymous>>",v={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:M(),arrayOf:R,element:k(),elementType:x(),instanceOf:W,node:ne(),objectOf:$,oneOf:F,oneOfType:Z,shape:Me,exact:Oe};function S(G,X){return G===X?G!==0||1/G===1/X:G!==G&&X!==X}function w(G,X){this.message=G,this.data=X&&typeof X=="object"?X:{},this.stack=""}w.prototype=Error.prototype;function T(G){if(process.env.NODE_ENV!=="production")var X={},ve=0;function me(le,ae,fe,se,ge,ye,Ge){if(se=se||O,ye=ye||fe,Ge!==n){if(h){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 nt=se+":"+fe;!X[nt]&&ve<3&&(u("You are manually calling a React.PropTypes validation function for the `"+ye+"` prop on `"+se+"`. 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[nt]=!0,ve++)}}return ae[fe]==null?le?ae[fe]===null?new w("The "+ge+" `"+ye+"` is marked as required "+("in `"+se+"`, but its value is `null`.")):new w("The "+ge+" `"+ye+"` is marked as required in "+("`"+se+"`, but its value is `undefined`.")):null:G(ae,fe,se,ge,ye)}var ce=me.bind(null,!1);return ce.isRequired=me.bind(null,!0),ce}function D(G){function X(ve,me,ce,le,ae,fe){var se=ve[me],ge=_e(se);if(ge!==G){var ye=Ie(se);return new w("Invalid "+le+" `"+ae+"` of type "+("`"+ye+"` supplied to `"+ce+"`, expected ")+("`"+G+"`."),{expectedType:G})}return null}return T(X)}function M(){return T(c)}function R(G){function X(ve,me,ce,le,ae){if(typeof G!="function")return new w("Property `"+ae+"` of component `"+ce+"` has invalid PropType notation inside arrayOf.");var fe=ve[me];if(!Array.isArray(fe)){var se=_e(fe);return new w("Invalid "+le+" `"+ae+"` of type "+("`"+se+"` supplied to `"+ce+"`, expected an array."))}for(var ge=0;ge<fe.length;ge++){var ye=G(fe,ge,ce,le,ae+"["+ge+"]",n);if(ye instanceof Error)return ye}return null}return T(X)}function k(){function G(X,ve,me,ce,le){var ae=X[ve];if(!f(ae)){var fe=_e(ae);return new w("Invalid "+ce+" `"+le+"` of type "+("`"+fe+"` supplied to `"+me+"`, expected a single ReactElement."))}return null}return T(G)}function x(){function G(X,ve,me,ce,le){var ae=X[ve];if(!e.isValidElementType(ae)){var fe=_e(ae);return new w("Invalid "+ce+" `"+le+"` of type "+("`"+fe+"` supplied to `"+me+"`, expected a single ReactElement type."))}return null}return T(G)}function W(G){function X(ve,me,ce,le,ae){if(!(ve[me]instanceof G)){var fe=G.name||O,se=ft(ve[me]);return new w("Invalid "+le+" `"+ae+"` of type "+("`"+se+"` supplied to `"+ce+"`, expected ")+("instance of `"+fe+"`."))}return null}return T(X)}function F(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.")),c;function X(ve,me,ce,le,ae){for(var fe=ve[me],se=0;se<G.length;se++)if(S(fe,G[se]))return null;var ge=JSON.stringify(G,function(Ge,V){var nt=Ie(V);return nt==="symbol"?String(V):V});return new w("Invalid "+le+" `"+ae+"` of value `"+String(fe)+"` "+("supplied to `"+ce+"`, expected one of "+ge+"."))}return T(X)}function $(G){function X(ve,me,ce,le,ae){if(typeof G!="function")return new w("Property `"+ae+"` of component `"+ce+"` has invalid PropType notation inside objectOf.");var fe=ve[me],se=_e(fe);if(se!=="object")return new w("Invalid "+le+" `"+ae+"` of type "+("`"+se+"` supplied to `"+ce+"`, expected an object."));for(var ge in fe)if(o(fe,ge)){var ye=G(fe,ge,ce,le,ae+"."+ge,n);if(ye instanceof Error)return ye}return null}return T(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."),c;for(var X=0;X<G.length;X++){var ve=G[X];if(typeof ve!="function")return u("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+qe(ve)+" at index "+X+"."),c}function me(ce,le,ae,fe,se){for(var ge=[],ye=0;ye<G.length;ye++){var Ge=G[ye],V=Ge(ce,le,ae,fe,se,n);if(V==null)return null;V.data&&o(V.data,"expectedType")&&ge.push(V.data.expectedType)}var nt=ge.length>0?", expected one of type ["+ge.join(", ")+"]":"";return new w("Invalid "+fe+" `"+se+"` supplied to "+("`"+ae+"`"+nt+"."))}return T(me)}function ne(){function G(X,ve,me,ce,le){return ue(X[ve])?null:new w("Invalid "+ce+" `"+le+"` supplied to "+("`"+me+"`, expected a ReactNode."))}return T(G)}function we(G,X,ve,me,ce){return new w((G||"React class")+": "+X+" type `"+ve+"."+me+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ce+"`.")}function Me(G){function X(ve,me,ce,le,ae){var fe=ve[me],se=_e(fe);if(se!=="object")return new w("Invalid "+le+" `"+ae+"` of type `"+se+"` "+("supplied to `"+ce+"`, expected `object`."));for(var ge in G){var ye=G[ge];if(typeof ye!="function")return we(ce,le,ae,ge,Ie(ye));var Ge=ye(fe,ge,ce,le,ae+"."+ge,n);if(Ge)return Ge}return null}return T(X)}function Oe(G){function X(ve,me,ce,le,ae){var fe=ve[me],se=_e(fe);if(se!=="object")return new w("Invalid "+le+" `"+ae+"` of type `"+se+"` "+("supplied to `"+ce+"`, expected `object`."));var ge=r({},ve[me],G);for(var ye in ge){var Ge=G[ye];if(o(G,ye)&&typeof Ge!="function")return we(ce,le,ae,ye,Ie(Ge));if(!Ge)return new w("Invalid "+le+" `"+ae+"` key `"+ye+"` supplied to `"+ce+"`.\nBad object: "+JSON.stringify(ve[me],null," ")+`
141
- Valid keys: `+JSON.stringify(Object.keys(G),null," "));var V=Ge(fe,ye,ce,le,ae+"."+ye,n);if(V)return V}return null}return T(X)}function ue(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(ue);if(G===null||f(G))return!0;var X=_(G);if(X){var ve=X.call(G),me;if(X!==G.entries){for(;!(me=ve.next()).done;)if(!ue(me.value))return!1}else for(;!(me=ve.next()).done;){var ce=me.value;if(ce&&!ue(ce[1]))return!1}}else return!1;return!0;default:return!1}}function ke(G,X){return G==="symbol"?!0:X?X["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&X instanceof Symbol:!1}function _e(G){var X=typeof G;return Array.isArray(G)?"array":G instanceof RegExp?"object":ke(X,G)?"symbol":X}function Ie(G){if(typeof G>"u"||G===null)return""+G;var X=_e(G);if(X==="object"){if(G instanceof Date)return"date";if(G instanceof RegExp)return"regexp"}return X}function qe(G){var X=Ie(G);switch(X){case"array":case"object":return"an "+X;case"boolean":case"date":case"regexp":return"a "+X;default:return X}}function ft(G){return!G.constructor||!G.constructor.name?O:G.constructor.name}return v.checkPropTypes=a,v.resetWarningCache=a.resetWarningCache,v.PropTypes=v,v},ju}var Fu,Cp;function kT(){if(Cp)return Fu;Cp=1;var e=Dc();function r(){}function n(){}return n.resetWarningCache=r,Fu=function(){function o(c,f,h,m,y,_){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},Fu}var Rp;function NT(){if(Rp)return ya.exports;if(Rp=1,process.env.NODE_ENV!=="production"){var e=fv(),r=!0;ya.exports=DT()(e.isElement,r)}else ya.exports=kT()();return ya.exports}var Pp;function $T(){return Pp||(Pp=1,function(e){(function(r,n){n(e,q,NT())})(Fr,function(r,n,o){Object.defineProperty(r,"__esModule",{value:!0}),r.setHasSupportToCaptureOption=S;var a=c(n),u=c(o);function c(M){return M&&M.__esModule?M:{default:M}}var f=Object.assign||function(M){for(var R=1;R<arguments.length;R++){var k=arguments[R];for(var x in k)Object.prototype.hasOwnProperty.call(k,x)&&(M[x]=k[x])}return M};function h(M,R){var k={};for(var x in M)R.indexOf(x)>=0||Object.prototype.hasOwnProperty.call(M,x)&&(k[x]=M[x]);return k}function m(M,R){if(!(M instanceof R))throw new TypeError("Cannot call a class as a function")}var y=function(){function M(R,k){for(var x=0;x<k.length;x++){var W=k[x];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(R,W.key,W)}}return function(R,k,x){return k&&M(R.prototype,k),x&&M(R,x),R}}();function _(M,R){if(!M)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R&&(typeof R=="object"||typeof R=="function")?R:M}function O(M,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof R);M.prototype=Object.create(R&&R.prototype,{constructor:{value:M,enumerable:!1,writable:!0,configurable:!0}}),R&&(Object.setPrototypeOf?Object.setPrototypeOf(M,R):M.__proto__=R)}var v=!1;function S(M){v=M}try{addEventListener("test",null,Object.defineProperty({},"capture",{get:function(){S(!0)}}))}catch{}function w(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return v?M:M.capture}function T(M){if("touches"in M){var R=M.touches[0],k=R.pageX,x=R.pageY;return{x:k,y:x}}var W=M.screenX,F=M.screenY;return{x:W,y:F}}var D=function(M){O(R,M);function R(){var k;m(this,R);for(var x=arguments.length,W=Array(x),F=0;F<x;F++)W[F]=arguments[F];var $=_(this,(k=R.__proto__||Object.getPrototypeOf(R)).call.apply(k,[this].concat(W)));return $._handleSwipeStart=$._handleSwipeStart.bind($),$._handleSwipeMove=$._handleSwipeMove.bind($),$._handleSwipeEnd=$._handleSwipeEnd.bind($),$._onMouseDown=$._onMouseDown.bind($),$._onMouseMove=$._onMouseMove.bind($),$._onMouseUp=$._onMouseUp.bind($),$._setSwiperRef=$._setSwiperRef.bind($),$}return y(R,[{key:"componentDidMount",value:function(){this.swiper&&this.swiper.addEventListener("touchmove",this._handleSwipeMove,w({capture:!0,passive:!1}))}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.removeEventListener("touchmove",this._handleSwipeMove,w({capture:!0,passive:!1}))}},{key:"_onMouseDown",value:function(x){this.props.allowMouseEvents&&(this.mouseDown=!0,document.addEventListener("mouseup",this._onMouseUp),document.addEventListener("mousemove",this._onMouseMove),this._handleSwipeStart(x))}},{key:"_onMouseMove",value:function(x){this.mouseDown&&this._handleSwipeMove(x)}},{key:"_onMouseUp",value:function(x){this.mouseDown=!1,document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("mousemove",this._onMouseMove),this._handleSwipeEnd(x)}},{key:"_handleSwipeStart",value:function(x){var W=T(x),F=W.x,$=W.y;this.moveStart={x:F,y:$},this.props.onSwipeStart(x)}},{key:"_handleSwipeMove",value:function(x){if(this.moveStart){var W=T(x),F=W.x,$=W.y,Z=F-this.moveStart.x,ne=$-this.moveStart.y;this.moving=!0;var we=this.props.onSwipeMove({x:Z,y:ne},x);we&&x.cancelable&&x.preventDefault(),this.movePosition={deltaX:Z,deltaY:ne}}}},{key:"_handleSwipeEnd",value:function(x){this.props.onSwipeEnd(x);var W=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-W?this.props.onSwipeLeft(1,x):this.movePosition.deltaX>W&&this.props.onSwipeRight(1,x),this.movePosition.deltaY<-W?this.props.onSwipeUp(1,x):this.movePosition.deltaY>W&&this.props.onSwipeDown(1,x)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(x){this.swiper=x,this.props.innerRef(x)}},{key:"render",value:function(){var x=this.props;x.tagName;var W=x.className,F=x.style,$=x.children;x.allowMouseEvents,x.onSwipeUp,x.onSwipeDown,x.onSwipeLeft,x.onSwipeRight,x.onSwipeStart,x.onSwipeMove,x.onSwipeEnd,x.innerRef,x.tolerance;var Z=h(x,["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:W,style:F},Z),$)}}]),R}(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})}(Du)),Du}(function(e){(function(r,n){n(e,$T())})(Fr,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})})(Mc);var po={};Object.defineProperty(po,"__esModule",{value:!0});po.default=void 0;var dr=jT(fh);function jT(e){return e&&e.__esModule?e:{default:e}}function FT(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var WT={ROOT:function(r){return(0,dr.default)(FT({"carousel-root":!0},r||"",!!r))},CAROUSEL:function(r){return(0,dr.default)({carousel:!0,"carousel-slider":r})},WRAPPER:function(r,n){return(0,dr.default)({"thumbs-wrapper":!r,"slider-wrapper":r,"axis-horizontal":n==="horizontal","axis-vertical":n!=="horizontal"})},SLIDER:function(r,n){return(0,dr.default)({thumbs:!r,slider:r,animated:!n})},ITEM:function(r,n,o){return(0,dr.default)({thumb:!r,slide:r,selected:n,previous:o})},ARROW_PREV:function(r){return(0,dr.default)({"control-arrow control-prev":!0,"control-disabled":r})},ARROW_NEXT:function(r){return(0,dr.default)({"control-arrow control-next":!0,"control-disabled":r})},DOT:function(r){return(0,dr.default)({dot:!0,selected:r})}};po.default=WT;var ho={},Va={};Object.defineProperty(Va,"__esModule",{value:!0});Va.outerWidth=void 0;var UT=function(r){var n=r.offsetWidth,o=getComputedStyle(r);return n+=parseInt(o.marginLeft)+parseInt(o.marginRight),n};Va.outerWidth=UT;var Oi={};Object.defineProperty(Oi,"__esModule",{value:!0});Oi.default=void 0;var BT=function(r,n,o){var a=r===0?r:r+n,u=o==="horizontal"?[a,0,0]:[0,a,0],c="translate3d",f="("+u.join(",")+")";return c+f};Oi.default=BT;var vo={};Object.defineProperty(vo,"__esModule",{value:!0});vo.default=void 0;var HT=function(){return window};vo.default=HT;Object.defineProperty(ho,"__esModule",{value:!0});ho.default=void 0;var xn=KT(q),$r=Ja(po),zT=Va,Ap=Ja(Oi),qT=Ja(Mc),ba=Ja(vo);function Ja(e){return e&&e.__esModule?e:{default:e}}function pv(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return pv=function(){return e},e}function KT(e){if(e&&e.__esModule)return e;if(e===null||Zi(e)!=="object"&&typeof e!="function")return{default:e};var r=pv();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 Zi(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Zi=function(n){return typeof n}:Zi=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Zi(e)}function uc(){return uc=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},uc.apply(this,arguments)}function GT(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Ip(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 YT(e,r,n){return r&&Ip(e.prototype,r),n&&Ip(e,n),e}function XT(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&&cc(e,r)}function cc(e,r){return cc=Object.setPrototypeOf||function(o,a){return o.__proto__=a,o},cc(e,r)}function VT(e){var r=ZT();return function(){var o=ja(e),a;if(r){var u=ja(this).constructor;a=Reflect.construct(o,arguments,u)}else a=o.apply(this,arguments);return JT(this,a)}}function JT(e,r){return r&&(Zi(r)==="object"||typeof r=="function")?r:kt(e)}function kt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ZT(){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 ja(e){return ja=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ja(e)}function At(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var QT=function(r){return r.hasOwnProperty("key")},kc=function(e){XT(n,e);var r=VT(n);function n(o){var a;return GT(this,n),a=r.call(this,o),At(kt(a),"itemsWrapperRef",void 0),At(kt(a),"itemsListRef",void 0),At(kt(a),"thumbsRef",void 0),At(kt(a),"setItemsWrapperRef",function(u){a.itemsWrapperRef=u}),At(kt(a),"setItemsListRef",function(u){a.itemsListRef=u}),At(kt(a),"setThumbsRef",function(u,c){a.thumbsRef||(a.thumbsRef=[]),a.thumbsRef[c]=u}),At(kt(a),"updateSizes",function(){if(!(!a.props.children||!a.itemsWrapperRef||!a.thumbsRef)){var u=xn.Children.count(a.props.children),c=a.itemsWrapperRef.clientWidth,f=a.props.thumbWidth?a.props.thumbWidth:(0,zT.outerWidth)(a.thumbsRef[0]),h=Math.floor(c/f),m=h<u,y=m?u-h:0;a.setState(function(_,O){return{itemSize:f,visibleItems:h,firstItem:m?a.getFirstItem(O.selectedItem):0,lastPosition:y,showArrows:m}})}}),At(kt(a),"handleClickItem",function(u,c,f){if(!QT(f)||f.key==="Enter"){var h=a.props.onSelectItem;typeof h=="function"&&h(u,c)}}),At(kt(a),"onSwipeStart",function(){a.setState({swiping:!0})}),At(kt(a),"onSwipeEnd",function(){a.setState({swiping:!1})}),At(kt(a),"onSwipeMove",function(u){var c=u.x;if(!a.state.itemSize||!a.itemsWrapperRef||!a.state.visibleItems)return!1;var f=0,h=xn.Children.count(a.props.children),m=-(a.state.firstItem*100)/a.state.visibleItems,y=Math.max(h-a.state.visibleItems,0),_=-y*100/a.state.visibleItems;m===f&&c>0&&(c=0),m===_&&c<0&&(c=0);var O=a.itemsWrapperRef.clientWidth,v=m+100/(O/c);return a.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(S){a.itemsListRef.style[S]=(0,Ap.default)(v,"%",a.props.axis)}),!0}),At(kt(a),"slideRight",function(u){a.moveTo(a.state.firstItem-(typeof u=="number"?u:1))}),At(kt(a),"slideLeft",function(u){a.moveTo(a.state.firstItem+(typeof u=="number"?u:1))}),At(kt(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 YT(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,ba.default)().addEventListener("resize",this.updateSizes),(0,ba.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,ba.default)().removeEventListener("resize",this.updateSizes),(0,ba.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,c){var f=$r.default.ITEM(!1,c===a.state.selectedItem),h={key:c,ref:function(y){return a.setThumbsRef(y,c)},className:f,onClick:a.handleClickItem.bind(a,c,a.props.children[c]),onKeyDown:a.handleClickItem.bind(a,c,a.props.children[c]),"aria-label":"".concat(a.props.labels.item," ").concat(c+1),style:{width:a.props.thumbWidth}};return xn.default.createElement("li",uc({},h,{role:"button",tabIndex:0}),u)})}},{key:"render",value:function(){var a=this;if(!this.props.children)return null;var u=xn.Children.count(this.props.children)>1,c=this.state.showArrows&&this.state.firstItem>0,f=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,h={},m=-this.state.firstItem*(this.state.itemSize||0),y=(0,Ap.default)(m,"px",this.props.axis),_=this.props.transitionTime+"ms";return h={WebkitTransform:y,MozTransform:y,MsTransform:y,OTransform:y,transform:y,msTransform:y,WebkitTransitionDuration:_,MozTransitionDuration:_,MsTransitionDuration:_,OTransitionDuration:_,transitionDuration:_,msTransitionDuration:_},xn.default.createElement("div",{className:$r.default.CAROUSEL(!1)},xn.default.createElement("div",{className:$r.default.WRAPPER(!1),ref:this.setItemsWrapperRef},xn.default.createElement("button",{type:"button",className:$r.default.ARROW_PREV(!c),onClick:function(){return a.slideRight()},"aria-label":this.props.labels.leftArrow}),u?xn.default.createElement(qT.default,{tagName:"ul",className:$r.default.SLIDER(!1,this.state.swiping),onSwipeLeft:this.slideLeft,onSwipeRight:this.slideRight,onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:h,innerRef:this.setItemsListRef,allowMouseEvents:this.props.emulateTouch},this.renderItems()):xn.default.createElement("ul",{className:$r.default.SLIDER(!1,this.state.swiping),ref:function(v){return a.setItemsListRef(v)},style:h},this.renderItems()),xn.default.createElement("button",{type:"button",className:$r.default.ARROW_NEXT(!f),onClick:function(){return a.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}]),n}(xn.Component);ho.default=kc;At(kc,"displayName","Thumbs");At(kc,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350});var Za={};Object.defineProperty(Za,"__esModule",{value:!0});Za.default=void 0;var eC=function(){return document};Za.default=eC;var Qt={};Object.defineProperty(Qt,"__esModule",{value:!0});Qt.setPosition=Qt.getPosition=Qt.isKeyboardEvent=Qt.defaultStatusFormatter=Qt.noop=void 0;var tC=q,nC=rC(Oi);function rC(e){return e&&e.__esModule?e:{default:e}}var iC=function(){};Qt.noop=iC;var oC=function(r,n){return"".concat(r," of ").concat(n)};Qt.defaultStatusFormatter=oC;var aC=function(r){return r?r.hasOwnProperty("key"):!1};Qt.isKeyboardEvent=aC;var sC=function(r,n){if(n.infiniteLoop&&++r,r===0)return 0;var o=tC.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};Qt.getPosition=sC;var uC=function(r,n){var o={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(a){o[a]=(0,nC.default)(r,"%",n)}),o};Qt.setPosition=uC;var Dn={};Object.defineProperty(Dn,"__esModule",{value:!0});Dn.fadeAnimationHandler=Dn.slideStopSwipingHandler=Dn.slideSwipeAnimationHandler=Dn.slideAnimationHandler=void 0;var hv=q,cC=lC(Oi),kn=Qt;function lC(e){return e&&e.__esModule?e:{default:e}}function Lp(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 Ur(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?Lp(Object(n),!0).forEach(function(o){fC(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lp(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 dC=function(r,n){var o={},a=n.selectedItem,u=a,c=hv.Children.count(r.children)-1,f=r.infiniteLoop&&(a<0||a>c);if(f)return u<0?r.centerMode&&r.centerSlidePercentage&&r.axis==="horizontal"?o.itemListStyle=(0,kn.setPosition)(-(c+2)*r.centerSlidePercentage-(100-r.centerSlidePercentage)/2,r.axis):o.itemListStyle=(0,kn.setPosition)(-(c+2)*100,r.axis):u>c&&(o.itemListStyle=(0,kn.setPosition)(0,r.axis)),o;var h=(0,kn.getPosition)(a,r),m=(0,cC.default)(h,"%",r.axis),y=r.transitionTime+"ms";return o.itemListStyle={WebkitTransform:m,msTransform:m,OTransform:m,transform:m},n.swiping||(o.itemListStyle=Ur(Ur({},o.itemListStyle),{},{WebkitTransitionDuration:y,MozTransitionDuration:y,OTransitionDuration:y,transitionDuration:y,msTransitionDuration:y})),o};Dn.slideAnimationHandler=dC;var pC=function(r,n,o,a){var u={},c=n.axis==="horizontal",f=hv.Children.count(n.children),h=0,m=(0,kn.getPosition)(o.selectedItem,n),y=n.infiniteLoop?(0,kn.getPosition)(f-1,n)-100:(0,kn.getPosition)(f-1,n),_=c?r.x:r.y,O=_;m===h&&_>0&&(O=0),m===y&&_<0&&(O=0);var v=m+100/(o.itemSize/O),S=Math.abs(_)>n.swipeScrollTolerance;return n.infiniteLoop&&S&&(o.selectedItem===0&&v>-100?v-=f*100:o.selectedItem===f-1&&v<-f*100&&(v+=f*100)),(!n.preventMovementUntilSwipeScrollTolerance||S||o.swipeMovementStarted)&&(o.swipeMovementStarted||a({swipeMovementStarted:!0}),u.itemListStyle=(0,kn.setPosition)(v,n.axis)),S&&!o.cancelClick&&a({cancelClick:!0}),u};Dn.slideSwipeAnimationHandler=pC;var hC=function(r,n){var o=(0,kn.getPosition)(n.selectedItem,r),a=(0,kn.setPosition)(o,r.axis);return{itemListStyle:a}};Dn.slideStopSwipingHandler=hC;var vC=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=Ur(Ur({},u),{},{WebkitTransitionDuration:o,MozTransitionDuration:o,OTransitionDuration:o,transitionDuration:o,msTransitionDuration:o})),{slideStyle:u,selectedStyle:Ur(Ur({},u),{},{opacity:1,position:"relative"}),prevStyle:Ur({},u)}};Dn.fadeAnimationHandler=vC;Object.defineProperty(Xa,"__esModule",{value:!0});Xa.default=void 0;var ze=yC(q),mC=mo(Mc),Vn=mo(po),gC=mo(ho),_a=mo(Za),Sa=mo(vo),Xi=Qt,Fa=Dn;function mo(e){return e&&e.__esModule?e:{default:e}}function vv(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return vv=function(){return e},e}function yC(e){if(e&&e.__esModule)return e;if(e===null||Qi(e)!=="object"&&typeof e!="function")return{default:e};var r=vv();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 Qi(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Qi=function(n){return typeof n}:Qi=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Qi(e)}function lc(){return lc=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},lc.apply(this,arguments)}function Mp(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 On(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?Mp(Object(n),!0).forEach(function(o){Pe(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mp(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function wC(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Dp(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 bC(e,r,n){return r&&Dp(e.prototype,r),n&&Dp(e,n),e}function _C(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&&fc(e,r)}function fc(e,r){return fc=Object.setPrototypeOf||function(o,a){return o.__proto__=a,o},fc(e,r)}function SC(e){var r=xC();return function(){var o=Wa(e),a;if(r){var u=Wa(this).constructor;a=Reflect.construct(o,arguments,u)}else a=o.apply(this,arguments);return EC(this,a)}}function EC(e,r){return r&&(Qi(r)==="object"||typeof r=="function")?r:Ae(e)}function Ae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xC(){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 Wa(e){return Wa=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Wa(e)}function Pe(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var Nc=function(e){_C(n,e);var r=SC(n);function n(o){var a;wC(this,n),a=r.call(this,o),Pe(Ae(a),"thumbsRef",void 0),Pe(Ae(a),"carouselWrapperRef",void 0),Pe(Ae(a),"listRef",void 0),Pe(Ae(a),"itemsRef",void 0),Pe(Ae(a),"timer",void 0),Pe(Ae(a),"animationHandler",void 0),Pe(Ae(a),"setThumbsRef",function(c){a.thumbsRef=c}),Pe(Ae(a),"setCarouselWrapperRef",function(c){a.carouselWrapperRef=c}),Pe(Ae(a),"setListRef",function(c){a.listRef=c}),Pe(Ae(a),"setItemsRef",function(c,f){a.itemsRef||(a.itemsRef=[]),a.itemsRef[f]=c}),Pe(Ae(a),"autoPlay",function(){ze.Children.count(a.props.children)<=1||(a.clearAutoPlay(),a.props.autoPlay&&(a.timer=setTimeout(function(){a.increment()},a.props.interval)))}),Pe(Ae(a),"clearAutoPlay",function(){a.timer&&clearTimeout(a.timer)}),Pe(Ae(a),"resetAutoPlay",function(){a.clearAutoPlay(),a.autoPlay()}),Pe(Ae(a),"stopOnHover",function(){a.setState({isMouseEntered:!0},a.clearAutoPlay)}),Pe(Ae(a),"startOnLeave",function(){a.setState({isMouseEntered:!1},a.autoPlay)}),Pe(Ae(a),"isFocusWithinTheCarousel",function(){return a.carouselWrapperRef?!!((0,_a.default)().activeElement===a.carouselWrapperRef||a.carouselWrapperRef.contains((0,_a.default)().activeElement)):!1}),Pe(Ae(a),"navigateWithKeyboard",function(c){if(a.isFocusWithinTheCarousel()){var f=a.props.axis,h=f==="horizontal",m={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},y=h?m.ArrowRight:m.ArrowDown,_=h?m.ArrowLeft:m.ArrowUp;y===c.keyCode?a.increment():_===c.keyCode&&a.decrement()}}),Pe(Ae(a),"updateSizes",function(){if(!(!a.state.initialized||!a.itemsRef||a.itemsRef.length===0)){var c=a.props.axis==="horizontal",f=a.itemsRef[0];if(f){var h=c?f.clientWidth:f.clientHeight;a.setState({itemSize:h}),a.thumbsRef&&a.thumbsRef.updateSizes()}}}),Pe(Ae(a),"setMountState",function(){a.setState({hasMount:!0}),a.updateSizes()}),Pe(Ae(a),"handleClickItem",function(c,f){if(ze.Children.count(a.props.children)!==0){if(a.state.cancelClick){a.setState({cancelClick:!1});return}a.props.onClickItem(c,f),c!==a.state.selectedItem&&a.setState({selectedItem:c})}}),Pe(Ae(a),"handleOnChange",function(c,f){ze.Children.count(a.props.children)<=1||a.props.onChange(c,f)}),Pe(Ae(a),"handleClickThumb",function(c,f){a.props.onClickThumb(c,f),a.moveTo(c)}),Pe(Ae(a),"onSwipeStart",function(c){a.setState({swiping:!0}),a.props.onSwipeStart(c)}),Pe(Ae(a),"onSwipeEnd",function(c){a.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),a.props.onSwipeEnd(c),a.clearAutoPlay(),a.state.autoPlay&&a.autoPlay()}),Pe(Ae(a),"onSwipeMove",function(c,f){a.props.onSwipeMove(f);var h=a.props.swipeAnimationHandler(c,a.props,a.state,a.setState.bind(Ae(a)));return a.setState(On({},h)),!!Object.keys(h).length}),Pe(Ae(a),"decrement",function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;a.moveTo(a.state.selectedItem-(typeof c=="number"?c:1))}),Pe(Ae(a),"increment",function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;a.moveTo(a.state.selectedItem+(typeof c=="number"?c:1))}),Pe(Ae(a),"moveTo",function(c){if(typeof c=="number"){var f=ze.Children.count(a.props.children)-1;c<0&&(c=a.props.infiniteLoop?f:0),c>f&&(c=a.props.infiniteLoop?0:f),a.selectItem({selectedItem:c}),a.state.autoPlay&&a.state.isMouseEntered===!1&&a.resetAutoPlay()}}),Pe(Ae(a),"onClickNext",function(){a.increment(1)}),Pe(Ae(a),"onClickPrev",function(){a.decrement(1)}),Pe(Ae(a),"onSwipeForward",function(){a.increment(1),a.props.emulateTouch&&a.setState({cancelClick:!0})}),Pe(Ae(a),"onSwipeBackwards",function(){a.decrement(1),a.props.emulateTouch&&a.setState({cancelClick:!0})}),Pe(Ae(a),"changeItem",function(c){return function(f){(!(0,Xi.isKeyboardEvent)(f)||f.key==="Enter")&&a.moveTo(c)}}),Pe(Ae(a),"selectItem",function(c){a.setState(On({previousItem:a.state.selectedItem},c),function(){a.setState(a.animationHandler(a.props,a.state))}),a.handleOnChange(c.selectedItem,ze.Children.toArray(a.props.children)[c.selectedItem])}),Pe(Ae(a),"getInitialImage",function(){var c=a.props.selectedItem,f=a.itemsRef&&a.itemsRef[c],h=f&&f.getElementsByTagName("img")||[];return h[0]}),Pe(Ae(a),"getVariableItemHeight",function(c){var f=a.itemsRef&&a.itemsRef[c];if(a.state.hasMount&&f&&f.children.length){var h=f.children[0].getElementsByTagName("img")||[];if(h.length>0){var m=h[0];if(!m.complete){var y=function v(){a.forceUpdate(),m.removeEventListener("load",v)};m.addEventListener("load",y)}}var _=h[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"&&Fa.fadeAnimationHandler||Fa.slideAnimationHandler,a.state=On(On({},u),a.animationHandler(o,u)),a}return bC(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(On({},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&&ze.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,Sa.default)().addEventListener("resize",this.updateSizes),(0,Sa.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,_a.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,Sa.default)().removeEventListener("resize",this.updateSizes),(0,Sa.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var a=this.getInitialImage();a&&a.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,_a.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?ze.Children.map(this.props.children,function(c,f){var h=f===u.state.selectedItem,m=f===u.state.previousItem,y=h&&u.state.selectedStyle||m&&u.state.prevStyle||u.state.slideStyle||{};u.props.centerMode&&u.props.axis==="horizontal"&&(y=On(On({},y),{},{minWidth:u.props.centerSlidePercentage+"%"})),u.state.swiping&&u.state.swipeMovementStarted&&(y=On(On({},y),{},{pointerEvents:"none"}));var _={ref:function(v){return u.setItemsRef(v,f)},key:"itemKey"+f+(a?"clone":""),className:Vn.default.ITEM(!0,f===u.state.selectedItem,f===u.state.previousItem),onClick:u.handleClickItem.bind(u,f,c),style:y};return ze.default.createElement("li",_,u.props.renderItem(c,{isSelected:f===u.state.selectedItem,isPrevious:f===u.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var a=this,u=this.props,c=u.showIndicators,f=u.labels,h=u.renderIndicator,m=u.children;return c?ze.default.createElement("ul",{className:"control-dots"},ze.Children.map(m,function(y,_){return h&&h(a.changeItem(_),_===a.state.selectedItem,_,f.item)})):null}},{key:"renderStatus",value:function(){return this.props.showStatus?ze.default.createElement("p",{className:"carousel-status"},this.props.statusFormatter(this.state.selectedItem+1,ze.Children.count(this.props.children))):null}},{key:"renderThumbs",value:function(){return!this.props.showThumbs||!this.props.children||ze.Children.count(this.props.children)===0?null:ze.default.createElement(gC.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||ze.Children.count(this.props.children)===0)return null;var u=this.props.swipeable&&ze.Children.count(this.props.children)>1,c=this.props.axis==="horizontal",f=this.props.showArrows&&ze.Children.count(this.props.children)>1,h=f&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,m=f&&(this.state.selectedItem<ze.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,y=this.renderItems(!0),_=y.shift(),O=y.pop(),v={className:Vn.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(c){if(v.onSwipeLeft=this.onSwipeForward,v.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var w=this.getVariableItemHeight(this.state.selectedItem);S.height=w||"auto"}}else v.onSwipeUp=this.props.verticalSwipe==="natural"?this.onSwipeBackwards:this.onSwipeForward,v.onSwipeDown=this.props.verticalSwipe==="natural"?this.onSwipeForward:this.onSwipeBackwards,v.style=On(On({},v.style),{},{height:this.state.itemSize}),S.height=this.state.itemSize;return ze.default.createElement("div",{"aria-label":this.props.ariaLabel,className:Vn.default.ROOT(this.props.className),ref:this.setCarouselWrapperRef,tabIndex:this.props.useKeyboardArrows?0:void 0},ze.default.createElement("div",{className:Vn.default.CAROUSEL(!0),style:{width:this.props.width}},this.renderControls(),this.props.renderArrowPrev(this.onClickPrev,h,this.props.labels.leftArrow),ze.default.createElement("div",{className:Vn.default.WRAPPER(!0,this.props.axis),style:S},u?ze.default.createElement(mC.default,lc({tagName:"ul",innerRef:this.setListRef},v,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&O,this.renderItems(),this.props.infiniteLoop&&_):ze.default.createElement("ul",{className:Vn.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,m,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}]),n}(ze.default.Component);Xa.default=Nc;Pe(Nc,"displayName","Carousel");Pe(Nc,"defaultProps",{ariaLabel:void 0,axis:"horizontal",centerSlidePercentage:80,interval:3e3,labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},onClickItem:Xi.noop,onClickThumb:Xi.noop,onChange:Xi.noop,onSwipeStart:function(){},onSwipeEnd:function(){},onSwipeMove:function(){return!1},preventMovementUntilSwipeScrollTolerance:!1,renderArrowPrev:function(r,n,o){return ze.default.createElement("button",{type:"button","aria-label":o,className:Vn.default.ARROW_PREV(!n),onClick:r})},renderArrowNext:function(r,n,o){return ze.default.createElement("button",{type:"button","aria-label":o,className:Vn.default.ARROW_NEXT(!n),onClick:r})},renderIndicator:function(r,n,o,a){return ze.default.createElement("li",{className:Vn.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=ze.Children.map(r,function(o){var a=o;if(o.type!=="img"&&(a=ze.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:Xi.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:Fa.slideSwipeAnimationHandler,stopSwipingHandler:Fa.slideStopSwipingHandler});var OC={};(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(Xa),n=OC,o=a(ho);function a(u){return u&&u.__esModule?u:{default:u}}})(lv);const TC=({tip:e})=>B.jsx("div",{className:"px-8 pb-8",children:wv(e,!0)}),CC=({pages:e})=>B.jsx("div",{className:"min-h-[10rem] w-96",children:B.jsx(lv.Carousel,{autoPlay:!1,infiniteLoop:!0,showThumbs:!1,showArrows:!0,showStatus:!1,children:e&&e.map(r=>B.jsx(TC,{tip:r},r.key))})});var mv={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},kp=q.createContext&&q.createContext(mv),vr=globalThis&&globalThis.__assign||function(){return vr=Object.assign||function(e){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},vr.apply(this,arguments)},RC=globalThis&&globalThis.__rest||function(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 gv(e){return e&&e.map(function(r,n){return q.createElement(r.tag,vr({key:n},r.attr),gv(r.child))})}function PC(e){return function(r){return q.createElement(AC,vr({attr:vr({},e.attr)},r),gv(e.child))}}function AC(e){var r=function(n){var o=e.attr,a=e.size,u=e.title,c=RC(e,["attr","size","title"]),f=a||n.size||"1em",h;return n.className&&(h=n.className),e.className&&(h=(h?h+" ":"")+e.className),q.createElement("svg",vr({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,o,c,{className:h,style:vr(vr({color:e.color||n.color},n.style),e.style),height:f,width:f,xmlns:"http://www.w3.org/2000/svg"}),u&&q.createElement("title",null,u),e.children)};return kp!==void 0?q.createElement(kp.Consumer,null,function(n){return r(n)}):r(mv)}function yv(e){return PC({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"}}]})(e)}const IC=({body:e,isInsideCarousel:r})=>B.jsx("article",{className:zt(["prose prose-sm max-h-[10rem] overflow-auto p-1 px-2 text-left text-[12px] text-grey-100 ",{"w-60":!r}]),children:B.jsx(Da,{children:e,options:{overrides:{a:{component:({children:n,...o})=>B.jsxs("a",{...o,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-start text-primary-dark",children:[n,B.jsx(yv,{className:"ml-1 mt-px h-4 w-4"})]})}}}})}),LC=({video:e,body:r,title:n,isInsideCarousel:o})=>B.jsxs("div",{className:zt([{"flex flex-row":!o,"flex max-h-[10rem] flex-col overflow-y-auto":o}]),children:[B.jsx("div",{className:zt([{"mr-1":!o,"mb-1":o}]),children:B.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})}),B.jsx("article",{className:zt(["prose prose-sm p-1 text-left text-xs text-grey-100",{"w-60 overflow-auto":!o,"-mt-6":o}]),children:B.jsx(Da,{children:r||"",options:{overrides:{a:{component:({children:a,...u})=>B.jsxs("a",{...u,target:"_blank",rel:"noopener noreferrer",className:"flex items-start",children:[a,B.jsx(yv,{className:"ml-1 mt-px h-4 w-4"})]})}}}})})]}),wv=(e,r)=>{switch(e.type){case Ia.TEXT:return B.jsx(IC,{body:e.body,isInsideCarousel:r});case Ia.VIDEO:return B.jsx(LC,{video:e.video,body:e.body,title:e.title,isInsideCarousel:r});case Ia.CAROUSEL:return B.jsx(CC,{pages:e.pages})}},bv=q.createContext(void 0);function Np(e,r){const n=[];return e.forEach(o=>{o.key===r&&n.push(o)}),n}const MC=({children:e,enabled:r,baseUrl:n="https://raw.githubusercontent.com/4d/Web-studio-TIPS/main"})=>{const[{tips:o,show:a},u]=q.useState({tips:{},show:!0});q.useEffect(()=>{fetch(`${n}/tips.json`).then(f=>f.json()).then(f=>{const h=f.reduce((m,y)=>Np(f,y.key).length>1?{...m,[y.key]:{type:"carousel",pages:Np(f,y.key)}}:{...m,[y.key]:y},{});u(m=>({...m,tips:h}))})},[]);const c=()=>{u(f=>({...f,show:!a}))};return B.jsx(bv.Provider,{value:{tips:o,toggleTips:c,show:a,enabled:r},children:e})},_v=e=>{const r=q.useContext(bv);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}},DC=({side:e,children:r,...n})=>B.jsx("div",{...n,style:{top:"calc(50% - 0.25rem)",[e==="right"?"left":"right"]:"-5px"},children:r}),kC=Na(PT)`
140
+ */var qp;function uC(){return qp||(qp=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,m=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,v=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(X){return typeof X=="string"||typeof X=="function"||X===o||X===m||X===u||X===a||X===_||X===O||typeof X=="object"&&X!==null&&(X.$$typeof===S||X.$$typeof===v||X.$$typeof===l||X.$$typeof===f||X.$$typeof===g||X.$$typeof===E||X.$$typeof===D||X.$$typeof===I||X.$$typeof===y)}function N(X){if(typeof X=="object"&&X!==null){var nt=X.$$typeof;switch(nt){case r:var rt=X.type;switch(rt){case d:case m:case o:case u:case a:case _:return rt;default:var ft=rt&&rt.$$typeof;switch(ft){case f:case g:case S:case v:case l:return ft;default:return nt}}case n:return nt}}}var T=d,U=m,B=f,j=l,J=r,ee=g,ge=o,Ce=S,_e=v,se=n,Le=u,be=a,xe=_,We=!1;function st(X){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.")),K(X)||N(X)===d}function K(X){return N(X)===m}function V(X){return N(X)===f}function de(X){return N(X)===l}function ie(X){return typeof X=="object"&&X!==null&&X.$$typeof===r}function ce(X){return N(X)===g}function fe(X){return N(X)===o}function ue(X){return N(X)===S}function pe(X){return N(X)===v}function le(X){return N(X)===n}function ye(X){return N(X)===u}function we(X){return N(X)===a}function Ge(X){return N(X)===_}He.AsyncMode=T,He.ConcurrentMode=U,He.ContextConsumer=B,He.ContextProvider=j,He.Element=J,He.ForwardRef=ee,He.Fragment=ge,He.Lazy=Ce,He.Memo=_e,He.Portal=se,He.Profiler=Le,He.StrictMode=be,He.Suspense=xe,He.isAsyncMode=st,He.isConcurrentMode=K,He.isContextConsumer=V,He.isContextProvider=de,He.isElement=ie,He.isForwardRef=ce,He.isFragment=fe,He.isLazy=ue,He.isMemo=pe,He.isPortal=le,He.isProfiler=ye,He.isStrictMode=we,He.isSuspense=Ge,He.isValidElementType=C,He.typeOf=N}()),He}var Kp;function kv(){return Kp||(Kp=1,process.env.NODE_ENV==="production"?Aa.exports=sC():Aa.exports=uC()),Aa.exports}var Vu,Gp;function tc(){if(Gp)return Vu;Gp=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Vu=e,Vu}var Xu,Yp;function Nv(){return Yp||(Yp=1,Xu=Function.call.bind(Object.prototype.hasOwnProperty)),Xu}var Ju,Vp;function lC(){if(Vp)return Ju;Vp=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var r=tc(),n={},o=Nv();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,m){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 v=m?m():"";e("Failed "+f+" type: "+_.message+(v??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Ju=a,Ju}var Zu,Xp;function cC(){if(Xp)return Zu;Xp=1;var e=kv(),r=Fl(),n=tc(),o=Nv(),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 Zu=function(f,d){var m=typeof Symbol=="function"&&Symbol.iterator,g="@@iterator";function _(K){var V=K&&(m&&K[m]||K[g]);if(typeof V=="function")return V}var O="<<anonymous>>",v={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:N(),elementType:T(),instanceOf:U,node:ee(),objectOf:j,oneOf:B,oneOfType:J,shape:Ce,exact:_e};function S(K,V){return K===V?K!==0||1/K===1/V:K!==K&&V!==V}function y(K,V){this.message=K,this.data=V&&typeof V=="object"?V:{},this.stack=""}y.prototype=Error.prototype;function E(K){if(process.env.NODE_ENV!=="production")var V={},de=0;function ie(fe,ue,pe,le,ye,we,Ge){if(le=le||O,we=we||pe,Ge!==n){if(d){var X=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 X.name="Invariant Violation",X}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var nt=le+":"+pe;!V[nt]&&de<3&&(u("You are manually calling a React.PropTypes validation function for the `"+we+"` 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."),V[nt]=!0,de++)}}return ue[pe]==null?fe?ue[pe]===null?new y("The "+ye+" `"+we+"` is marked as required "+("in `"+le+"`, but its value is `null`.")):new y("The "+ye+" `"+we+"` is marked as required in "+("`"+le+"`, but its value is `undefined`.")):null:K(ue,pe,le,ye,we)}var ce=ie.bind(null,!1);return ce.isRequired=ie.bind(null,!0),ce}function D(K){function V(de,ie,ce,fe,ue,pe){var le=de[ie],ye=be(le);if(ye!==K){var we=xe(le);return new y("Invalid "+fe+" `"+ue+"` of type "+("`"+we+"` supplied to `"+ce+"`, expected ")+("`"+K+"`."),{expectedType:K})}return null}return E(V)}function I(){return E(l)}function C(K){function V(de,ie,ce,fe,ue){if(typeof K!="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=be(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 we=K(pe,ye,ce,fe,ue+"["+ye+"]",n);if(we instanceof Error)return we}return null}return E(V)}function N(){function K(V,de,ie,ce,fe){var ue=V[de];if(!f(ue)){var pe=be(ue);return new y("Invalid "+ce+" `"+fe+"` of type "+("`"+pe+"` supplied to `"+ie+"`, expected a single ReactElement."))}return null}return E(K)}function T(){function K(V,de,ie,ce,fe){var ue=V[de];if(!e.isValidElementType(ue)){var pe=be(ue);return new y("Invalid "+ce+" `"+fe+"` of type "+("`"+pe+"` supplied to `"+ie+"`, expected a single ReactElement type."))}return null}return E(K)}function U(K){function V(de,ie,ce,fe,ue){if(!(de[ie]instanceof K)){var pe=K.name||O,le=st(de[ie]);return new y("Invalid "+fe+" `"+ue+"` of type "+("`"+le+"` supplied to `"+ce+"`, expected ")+("instance of `"+pe+"`."))}return null}return E(V)}function B(K){if(!Array.isArray(K))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 V(de,ie,ce,fe,ue){for(var pe=de[ie],le=0;le<K.length;le++)if(S(pe,K[le]))return null;var ye=JSON.stringify(K,function(Ge,X){var nt=xe(X);return nt==="symbol"?String(X):X});return new y("Invalid "+fe+" `"+ue+"` of value `"+String(pe)+"` "+("supplied to `"+ce+"`, expected one of "+ye+"."))}return E(V)}function j(K){function V(de,ie,ce,fe,ue){if(typeof K!="function")return new y("Property `"+ue+"` of component `"+ce+"` has invalid PropType notation inside objectOf.");var pe=de[ie],le=be(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 we=K(pe,ye,ce,fe,ue+"."+ye,n);if(we instanceof Error)return we}return null}return E(V)}function J(K){if(!Array.isArray(K))return process.env.NODE_ENV!=="production"&&u("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var V=0;V<K.length;V++){var de=K[V];if(typeof de!="function")return u("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+We(de)+" at index "+V+"."),l}function ie(ce,fe,ue,pe,le){for(var ye=[],we=0;we<K.length;we++){var Ge=K[we],X=Ge(ce,fe,ue,pe,le,n);if(X==null)return null;X.data&&o(X.data,"expectedType")&&ye.push(X.data.expectedType)}var nt=ye.length>0?", expected one of type ["+ye.join(", ")+"]":"";return new y("Invalid "+pe+" `"+le+"` supplied to "+("`"+ue+"`"+nt+"."))}return E(ie)}function ee(){function K(V,de,ie,ce,fe){return se(V[de])?null:new y("Invalid "+ce+" `"+fe+"` supplied to "+("`"+ie+"`, expected a ReactNode."))}return E(K)}function ge(K,V,de,ie,ce){return new y((K||"React class")+": "+V+" type `"+de+"."+ie+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ce+"`.")}function Ce(K){function V(de,ie,ce,fe,ue){var pe=de[ie],le=be(pe);if(le!=="object")return new y("Invalid "+fe+" `"+ue+"` of type `"+le+"` "+("supplied to `"+ce+"`, expected `object`."));for(var ye in K){var we=K[ye];if(typeof we!="function")return ge(ce,fe,ue,ye,xe(we));var Ge=we(pe,ye,ce,fe,ue+"."+ye,n);if(Ge)return Ge}return null}return E(V)}function _e(K){function V(de,ie,ce,fe,ue){var pe=de[ie],le=be(pe);if(le!=="object")return new y("Invalid "+fe+" `"+ue+"` of type `"+le+"` "+("supplied to `"+ce+"`, expected `object`."));var ye=r({},de[ie],K);for(var we in ye){var Ge=K[we];if(o(K,we)&&typeof Ge!="function")return ge(ce,fe,ue,we,xe(Ge));if(!Ge)return new y("Invalid "+fe+" `"+ue+"` key `"+we+"` supplied to `"+ce+"`.\nBad object: "+JSON.stringify(de[ie],null," ")+`
141
+ Valid keys: `+JSON.stringify(Object.keys(K),null," "));var X=Ge(pe,we,ce,fe,ue+"."+we,n);if(X)return X}return null}return E(V)}function se(K){switch(typeof K){case"number":case"string":case"undefined":return!0;case"boolean":return!K;case"object":if(Array.isArray(K))return K.every(se);if(K===null||f(K))return!0;var V=_(K);if(V){var de=V.call(K),ie;if(V!==K.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(K,V){return K==="symbol"?!0:V?V["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&V instanceof Symbol:!1}function be(K){var V=typeof K;return Array.isArray(K)?"array":K instanceof RegExp?"object":Le(V,K)?"symbol":V}function xe(K){if(typeof K>"u"||K===null)return""+K;var V=be(K);if(V==="object"){if(K instanceof Date)return"date";if(K instanceof RegExp)return"regexp"}return V}function We(K){var V=xe(K);switch(V){case"array":case"object":return"an "+V;case"boolean":case"date":case"regexp":return"a "+V;default:return V}}function st(K){return!K.constructor||!K.constructor.name?O:K.constructor.name}return v.checkPropTypes=a,v.resetWarningCache=a.resetWarningCache,v.PropTypes=v,v},Zu}var Qu,Jp;function fC(){if(Jp)return Qu;Jp=1;var e=tc();function r(){}function n(){}return n.resetWarningCache=r,Qu=function(){function o(l,f,d,m,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 Zp;function dC(){if(Zp)return Pa.exports;if(Zp=1,process.env.NODE_ENV!=="production"){var e=kv(),r=!0;Pa.exports=cC()(e.isElement,r)}else Pa.exports=fC()();return Pa.exports}var Qp;function pC(){return Qp||(Qp=1,function(e){(function(r,n){n(e,k,dC())})(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 N=arguments[C];for(var T in N)Object.prototype.hasOwnProperty.call(N,T)&&(I[T]=N[T])}return I};function d(I,C){var N={};for(var T in I)C.indexOf(T)>=0||Object.prototype.hasOwnProperty.call(I,T)&&(N[T]=I[T]);return N}function m(I,C){if(!(I instanceof C))throw new TypeError("Cannot call a class as a function")}var g=function(){function I(C,N){for(var T=0;T<N.length;T++){var U=N[T];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(C,U.key,U)}}return function(C,N,T){return N&&I(C.prototype,N),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 v=!1;function S(I){v=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 v?I:I.capture}function E(I){if("touches"in I){var C=I.touches[0],N=C.pageX,T=C.pageY;return{x:N,y:T}}var U=I.screenX,B=I.screenY;return{x:U,y:B}}var D=function(I){O(C,I);function C(){var N;m(this,C);for(var T=arguments.length,U=Array(T),B=0;B<T;B++)U[B]=arguments[B];var j=_(this,(N=C.__proto__||Object.getPrototypeOf(C)).call.apply(N,[this].concat(U)));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 U=E(T),B=U.x,j=U.y;this.moveStart={x:B,y:j},this.props.onSwipeStart(T)}},{key:"_handleSwipeMove",value:function(T){if(this.moveStart){var U=E(T),B=U.x,j=U.y,J=B-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 U=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-U?this.props.onSwipeLeft(1,T):this.movePosition.deltaX>U&&this.props.onSwipeRight(1,T),this.movePosition.deltaY<-U?this.props.onSwipeUp(1,T):this.movePosition.deltaY>U&&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 U=T.className,B=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:U,style:B},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,pC())})(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})})(ec);var Eo={};Object.defineProperty(Eo,"__esModule",{value:!0});Eo.default=void 0;var mr=hC(kh);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,mr.default)(vC({"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})}};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 bC=function(){return window};Oo.default=bC;Object.defineProperty(xo,"__esModule",{value:!0});xo.default=void 0;var On=SC(k),Br=ls(Eo),wC=us,eh=ls(Di),_C=ls(ec),Ia=ls(Oo);function ls(e){return e&&e.__esModule?e:{default:e}}function $v(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return $v=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=$v();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 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 EC(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function th(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&&th(e.prototype,r),n&&th(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&&Cl(e,r)}function Cl(e,r){return Cl=Object.setPrototypeOf||function(o,a){return o.__proto__=a,o},Cl(e,r)}function TC(e){var r=RC();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 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 Va(e){return Va=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Va(e)}function Lt(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")},nc=function(e){OC(n,e);var r=TC(n);function n(o){var a;return EC(this,n),a=r.call(this,o),Lt(Ft(a),"itemsWrapperRef",void 0),Lt(Ft(a),"itemsListRef",void 0),Lt(Ft(a),"thumbsRef",void 0),Lt(Ft(a),"setItemsWrapperRef",function(u){a.itemsWrapperRef=u}),Lt(Ft(a),"setItemsListRef",function(u){a.itemsListRef=u}),Lt(Ft(a),"setThumbsRef",function(u,l){a.thumbsRef||(a.thumbsRef=[]),a.thumbsRef[l]=u}),Lt(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,wC.outerWidth)(a.thumbsRef[0]),d=Math.floor(l/f),m=d<u,g=m?u-d:0;a.setState(function(_,O){return{itemSize:f,visibleItems:d,firstItem:m?a.getFirstItem(O.selectedItem):0,lastPosition:g,showArrows:m}})}}),Lt(Ft(a),"handleClickItem",function(u,l,f){if(!PC(f)||f.key==="Enter"){var d=a.props.onSelectItem;typeof d=="function"&&d(u,l)}}),Lt(Ft(a),"onSwipeStart",function(){a.setState({swiping:!0})}),Lt(Ft(a),"onSwipeEnd",function(){a.setState({swiping:!1})}),Lt(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),m=-(a.state.firstItem*100)/a.state.visibleItems,g=Math.max(d-a.state.visibleItems,0),_=-g*100/a.state.visibleItems;m===f&&l>0&&(l=0),m===_&&l<0&&(l=0);var O=a.itemsWrapperRef.clientWidth,v=m+100/(O/l);return a.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(S){a.itemsListRef.style[S]=(0,eh.default)(v,"%",a.props.axis)}),!0}),Lt(Ft(a),"slideRight",function(u){a.moveTo(a.state.firstItem-(typeof u=="number"?u:1))}),Lt(Ft(a),"slideLeft",function(u){a.moveTo(a.state.firstItem+(typeof u=="number"?u:1))}),Lt(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=Br.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={},m=-this.state.firstItem*(this.state.itemSize||0),g=(0,eh.default)(m,"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:Br.default.CAROUSEL(!1)},On.default.createElement("div",{className:Br.default.WRAPPER(!1),ref:this.setItemsWrapperRef},On.default.createElement("button",{type:"button",className:Br.default.ARROW_PREV(!l),onClick:function(){return a.slideRight()},"aria-label":this.props.labels.leftArrow}),u?On.default.createElement(_C.default,{tagName:"ul",className:Br.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:Br.default.SLIDER(!1,this.state.swiping),ref:function(v){return a.setItemsListRef(v)},style:d},this.renderItems()),On.default.createElement("button",{type:"button",className:Br.default.ARROW_NEXT(!f),onClick:function(){return a.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}]),n}(On.Component);xo.default=nc;Lt(nc,"displayName","Thumbs");Lt(nc,"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=k,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 jv=k,FC=WC(Di),Nn=tn;function WC(e){return e&&e.__esModule?e:{default:e}}function nh(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 Kr(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?nh(Object(n),!0).forEach(function(o){UC(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nh(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function UC(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var BC=function(r,n){var o={},a=n.selectedItem,u=a,l=jv.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),m=(0,FC.default)(d,"%",r.axis),g=r.transitionTime+"ms";return o.itemListStyle={WebkitTransform:m,msTransform:m,OTransform:m,transform:m},n.swiping||(o.itemListStyle=Kr(Kr({},o.itemListStyle),{},{WebkitTransitionDuration:g,MozTransitionDuration:g,OTransitionDuration:g,transitionDuration:g,msTransitionDuration:g})),o};kn.slideAnimationHandler=BC;var HC=function(r,n,o,a){var u={},l=n.axis==="horizontal",f=jv.Children.count(n.children),d=0,m=(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=_;m===d&&_>0&&(O=0),m===g&&_<0&&(O=0);var v=m+100/(o.itemSize/O),S=Math.abs(_)>n.swipeScrollTolerance;return n.infiniteLoop&&S&&(o.selectedItem===0&&v>-100?v-=f*100:o.selectedItem===f-1&&v<-f*100&&(v+=f*100)),(!n.preventMovementUntilSwipeScrollTolerance||S||o.swipeMovementStarted)&&(o.swipeMovementStarted||a({swipeMovementStarted:!0}),u.itemListStyle=(0,Nn.setPosition)(v,n.axis)),S&&!o.cancelClick&&a({cancelClick:!0}),u};kn.slideSwipeAnimationHandler=HC;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=Kr(Kr({},u),{},{WebkitTransitionDuration:o,MozTransitionDuration:o,OTransitionDuration:o,transitionDuration:o,msTransitionDuration:o})),{slideStyle:u,selectedStyle:Kr(Kr({},u),{},{opacity:1,position:"relative"}),prevStyle:Kr({},u)}};kn.fadeAnimationHandler=qC;Object.defineProperty(ss,"__esModule",{value:!0});ss.default=void 0;var qe=YC(k),KC=To(ec),Qn=To(Eo),GC=To(xo),La=To(cs),Ma=To(Oo),io=tn,Xa=kn;function To(e){return e&&e.__esModule?e:{default:e}}function Fv(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return Fv=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=Fv();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 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 rh(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?rh(Object(n),!0).forEach(function(o){Ie(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rh(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function VC(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function ih(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&&ih(e.prototype,r),n&&ih(e,n),e}function JC(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 ZC(e){var r=eR();return function(){var o=Ja(e),a;if(r){var u=Ja(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 Ja(e){return Ja=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ja(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 rc=function(e){JC(n,e);var r=ZC(n);function n(o){var a;VC(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",m={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},g=d?m.ArrowRight:m.ArrowDown,_=d?m.ArrowLeft:m.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 m=d[0];if(!m.complete){var g=function v(){a.forceUpdate(),m.removeEventListener("load",v)};m.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 XC(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,m=f===u.state.previousItem,g=d&&u.state.selectedStyle||m&&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(v){return u.setItemsRef(v,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 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,m=u.children;return l?qe.default.createElement("ul",{className:"control-dots"},qe.Children.map(m,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(GC.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,m=f&&(this.state.selectedItem<qe.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,g=this.renderItems(!0),_=g.shift(),O=g.pop(),v={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(v.onSwipeLeft=this.onSwipeForward,v.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var y=this.getVariableItemHeight(this.state.selectedItem);S.height=y||"auto"}}else v.onSwipeUp=this.props.verticalSwipe==="natural"?this.onSwipeBackwards:this.onSwipeForward,v.onSwipeDown=this.props.verticalSwipe==="natural"?this.onSwipeForward:this.onSwipeBackwards,v.style=Tn(Tn({},v.style),{},{height:this.state.itemSize}),S.height=this.state.itemSize;return qe.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},qe.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),qe.default.createElement("div",{className:Qn.default.WRAPPER(!0,this.props.axis),style:S},u?qe.default.createElement(KC.default,Rl({tagName:"ul",innerRef:this.setListRef},v,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&O,this.renderItems(),this.props.infiniteLoop&&_):qe.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,m,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}]),n}(qe.default.Component);ss.default=rc;Ie(rc,"displayName","Carousel");Ie(rc,"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:Qn.default.ARROW_PREV(!n),onClick:r})},renderArrowNext:function(r,n,o){return qe.default.createElement("button",{type:"button","aria-label":o,className:Qn.default.ARROW_NEXT(!n),onClick:r})},renderIndicator:function(r,n,o,a){return qe.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=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:Xa.slideSwipeAnimationHandler,stopSwipingHandler:Xa.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}}})(Dv);const nR=({tip:e})=>$.jsx("div",{className:"px-8 pb-8",children:Hv(e,!0)}),rR=({pages:e})=>$.jsx("div",{className:"min-h-[10rem] w-96",children:$.jsx(Dv.Carousel,{autoPlay:!1,infiniteLoop:!0,showThumbs:!1,showArrows:!0,showStatus:!1,children:e&&e.map(r=>$.jsx(nR,{tip:r},r.key))})});var Wv={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},oh=k.createContext&&k.createContext(Wv),wr=globalThis&&globalThis.__assign||function(){return wr=Object.assign||function(e){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},wr.apply(this,arguments)},iR=globalThis&&globalThis.__rest||function(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 Uv(e){return e&&e.map(function(r,n){return k.createElement(r.tag,wr({key:n},r.attr),Uv(r.child))})}function oR(e){return function(r){return k.createElement(aR,wr({attr:wr({},e.attr)},r),Uv(e.child))}}function aR(e){var r=function(n){var o=e.attr,a=e.size,u=e.title,l=iR(e,["attr","size","title"]),f=a||n.size||"1em",d;return n.className&&(d=n.className),e.className&&(d=(d?d+" ":"")+e.className),k.createElement("svg",wr({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,o,l,{className:d,style:wr(wr({color:e.color||n.color},n.style),e.style),height:f,width:f,xmlns:"http://www.w3.org/2000/svg"}),u&&k.createElement("title",null,u),e.children)};return oh!==void 0?k.createElement(oh.Consumer,null,function(n){return r(n)}):r(Wv)}function Bv(e){return oR({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"}}]})(e)}const sR=({body:e,isInsideCarousel:r})=>$.jsx("article",{className:yt(["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(Bv,{className:"ml-1 mt-px h-4 w-4"})]})}}}})}),uR=({video:e,body:r,title:n,isInsideCarousel:o})=>$.jsxs("div",{className:yt([{"flex flex-row":!o,"flex max-h-[10rem] flex-col overflow-y-auto":o}]),children:[$.jsx("div",{className:yt([{"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:yt(["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(Bv,{className:"ml-1 mt-px h-4 w-4"})]})}}}})})]}),Hv=(e,r)=>{switch(e.type){case Ba.TEXT:return $.jsx(sR,{body:e.body,isInsideCarousel:r});case Ba.VIDEO:return $.jsx(uR,{video:e.video,body:e.body,title:e.title,isInsideCarousel:r});case Ba.CAROUSEL:return $.jsx(rR,{pages:e.pages})}},zv=k.createContext(void 0);function ah(e,r){const n=[];return e.forEach(o=>{o.key===r&&n.push(o)}),n}const lR=({children:e,enabled:r,baseUrl:n="https://raw.githubusercontent.com/4d/Web-studio-TIPS/main"})=>{const[{tips:o,show:a},u]=k.useState({tips:{},show:!0});k.useEffect(()=>{fetch(`${n}/tips.json`).then(f=>f.json()).then(f=>{const d=f.reduce((m,g)=>ah(f,g.key).length>1?{...m,[g.key]:{type:"carousel",pages:ah(f,g.key)}}:{...m,[g.key]:g},{});u(m=>({...m,tips:d}))})},[]);const l=()=>{u(f=>({...f,show:!a}))};return $.jsx(zv.Provider,{value:{tips:o,toggleTips:l,show:a,enabled:r},children:e})},qv=e=>{const r=k.useContext(zv);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}},cR=({side:e,children:r,...n})=>$.jsx("div",{...n,style:{top:"calc(50% - 0.25rem)",[e==="right"?"left":"right"]:"-5px"},children:r}),fR=Ga(oC)`
142
142
  &[data-state='open'] > * {
143
143
  display: block !important;
144
144
  }
145
- `,NC=({tipKey:e,side:r="right",alwaysOn:n,asButton:o=!1})=>{const{tip:a,enabled:u}=_v(e),[c,f]=q.useState(!1),h=q.useRef(null);return q.useEffect(()=>{if(h.current){const m=new IntersectionObserver(y=>{y[0].isIntersecting||f(!1)});return m.observe(h.current),()=>{h.current&&m.unobserve(h.current)}}},[]),a&&u?B.jsxs(RT,{open:c,onOpenChange:f,children:[B.jsx(kC,{ref:h,className:zt("focus:outline-none",{"rounded-md p-1 text-gray-100 hover:bg-primary-dark hover:bg-opacity-40":o}),onClick:m=>m.stopPropagation(),children:B.jsx("span",{className:zt("group-hover:block",{hidden:!n}),children:B.jsx(VS,{className:"h-[0.6rem] w-[0.6rem] text-yellow-300"})})}),B.jsx(AT,{side:r,sideOffset:5,children:B.jsxs("div",{className:"relative rounded-md border border-grey-100 bg-grey-900 p-2 text-xs text-white shadow-2xl",children:[wv(a),B.jsx(DC,{className:zt(["absolute h-2 w-2 rotate-45 transform border-grey-100 bg-grey-900",{"border-b border-l":r==="right","border-r border-t":r==="left"}]),side:r})]})})]}):null};var $C=Object.defineProperty,jC=(e,r,n)=>r in e?$C(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Wu=(e,r,n)=>(jC(e,typeof r!="symbol"?r+"":r,n),n);let FC=class{constructor(){Wu(this,"current",this.detect()),Wu(this,"handoffState","pending"),Wu(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"}},yi=new FC,Ei=(e,r)=>{yi.isServer?q.useEffect(e,r):q.useLayoutEffect(e,r)};function WC(e){let r=q.useRef(e);return Ei(()=>{r.current=e},[e]),r}function UC(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(r=>setTimeout(()=>{throw r}))}function Sv(){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 UC(()=>{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=Sv();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 BC(){let[e]=q.useState(Sv);return q.useEffect(()=>()=>e.dispose(),[e]),e}let hr=function(e){let r=WC(e);return q.useCallback((...n)=>r.current(...n),[r])};function HC(){let e=typeof document>"u";return"useSyncExternalStore"in I?(r=>r.useSyncExternalStore)(I)(()=>()=>{},()=>!1,()=>!e):!1}function zC(){let e=HC(),[r,n]=I.useState(yi.isHandoffComplete);return r&&yi.isHandoffComplete===!1&&n(!1),I.useEffect(()=>{r!==!0&&n(!0)},[r]),I.useEffect(()=>yi.handoff(),[]),e?!1:r}var $p;let $c=($p=q.useId)!=null?$p:function(){let e=zC(),[r,n]=q.useState(e?()=>yi.nextId():null);return Ei(()=>{r===null&&n(yi.nextId())},[r]),r!=null?""+r:void 0};function Ev(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,Ev),o}function jp(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 qC(e,r){let[n,o]=q.useState(()=>jp(e));return Ei(()=>{o(jp(e))},[e.type,e.as]),Ei(()=>{n||r.current&&r.current instanceof HTMLButtonElement&&!r.current.hasAttribute("type")&&o("button")},[n,r]),n}let KC=Symbol();function jc(...e){let r=q.useRef(e);q.useEffect(()=>{r.current=e},[e]);let n=hr(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[KC]))?void 0:n}function Fp(...e){return Array.from(new Set(e.flatMap(r=>typeof r=="string"?r.split(" "):[]))).filter(Boolean).join(" ")}var GC=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(GC||{}),YC=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(YC||{});function go({ourProps:e,theirProps:r,slot:n,defaultTag:o,features:a,visible:u=!0,name:c}){let f=xv(r,e);if(u)return Ea(f,n,o,c);let h=a??0;if(h&2){let{static:m=!1,...y}=f;if(m)return Ea(y,n,o,c)}if(h&1){let{unmount:m=!0,...y}=f;return Ev(m?0:1,{0(){return null},1(){return Ea({...y,hidden:!0,style:{display:"none"}},n,o,c)}})}return Ea(f,n,o,c)}function Ea(e,r={},n,o){let{as:a=n,children:u,refName:c="ref",...f}=Uu(e,["unmount","static"]),h=e.ref!==void 0?{[c]:e.ref}:{},m=typeof u=="function"?u(r):u;"className"in f&&f.className&&typeof f.className=="function"&&(f.className=f.className(r));let y={};if(r){let _=!1,O=[];for(let[v,S]of Object.entries(r))typeof S=="boolean"&&(_=!0),S===!0&&O.push(v);_&&(y["data-headlessui-state"]=O.join(" "))}if(a===q.Fragment&&Object.keys(dc(f)).length>0){if(!q.isValidElement(m)||Array.isArray(m)&&m.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
+ `,dR=({tipKey:e,side:r="right",alwaysOn:n,asButton:o=!1})=>{const{tip:a,enabled:u}=qv(e),[l,f]=k.useState(!1),d=k.useRef(null);return k.useEffect(()=>{if(d.current){const m=new IntersectionObserver(g=>{g[0].isIntersecting||f(!1)});return m.observe(d.current),()=>{d.current&&m.unobserve(d.current)}}},[]),a&&u?$.jsxs(iC,{open:l,onOpenChange:f,children:[$.jsx(fR,{ref:d,className:yt("focus:outline-none",{"rounded-md p-1 text-gray-100 hover:bg-primary-dark hover:bg-opacity-40":o}),onClick:m=>m.stopPropagation(),children:$.jsx("span",{className:yt("group-hover:block",{hidden:!n}),children:$.jsx(OE,{className:"h-[0.6rem] w-[0.6rem] text-yellow-300"})})}),$.jsx(aC,{side:r,sideOffset:5,children:$.jsxs("div",{className:"relative rounded-md border border-grey-100 bg-grey-900 p-2 text-xs text-white shadow-2xl",children:[Hv(a),$.jsx(cR,{className:yt(["absolute h-2 w-2 rotate-45 transform border-grey-100 bg-grey-900",{"border-b border-l":r==="right","border-r border-t":r==="left"}]),side:r})]})})]}):null};var pR=Object.defineProperty,hR=(e,r,n)=>r in e?pR(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,el=(e,r,n)=>(hR(e,typeof r!="symbol"?r+"":r,n),n);let vR=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"}},Ci=new vR,Wn=(e,r)=>{Ci.isServer?k.useEffect(e,r):k.useLayoutEffect(e,r)};function Ri(e){let r=k.useRef(e);return Wn(()=>{r.current=e},[e]),r}function mR(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 mR(()=>{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 ic(){let[e]=k.useState(Co);return k.useEffect(()=>()=>e.dispose(),[e]),e}let Mt=function(e){let r=Ri(e);return k.useCallback((...n)=>r.current(...n),[r])};function gR(){let e=typeof document>"u";return"useSyncExternalStore"in L?(r=>r.useSyncExternalStore)(L)(()=>()=>{},()=>!1,()=>!e):!1}function oc(){let e=gR(),[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 sh;let ac=(sh=k.useId)!=null?sh:function(){let e=oc(),[r,n]=k.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 uh(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 yR(e,r){let[n,o]=k.useState(()=>uh(e));return Wn(()=>{o(uh(e))},[e.type,e.as]),Wn(()=>{n||r.current&&r.current instanceof HTMLButtonElement&&!r.current.hasAttribute("type")&&o("button")},[n,r]),n}let bR=Symbol();function Ro(...e){let r=k.useRef(e);k.useEffect(()=>{r.current=e},[e]);let n=Mt(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[bR]))?void 0:n}function Za(...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 ei({ourProps:e,theirProps:r,slot:n,defaultTag:o,features:a,visible:u=!0,name:l}){let f=Gv(r,e);if(u)return Da(f,n,o,l);let d=a??0;if(d&2){let{static:m=!1,...g}=f;if(m)return Da(g,n,o,l)}if(d&1){let{unmount:m=!0,...g}=f;return $n(m?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}=tl(e,["unmount","static"]),d=e.ref!==void 0?{[l]:e.ref}:{},m=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[v,S]of Object.entries(r))typeof S=="boolean"&&(_=!0),S===!0&&O.push(v);_&&(g["data-headlessui-state"]=O.join(" "))}if(a===k.Fragment&&Object.keys(Al(f)).length>0){if(!k.isValidElement(m)||Array.isArray(m)&&m.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 _=m.props,O=typeof(_==null?void 0:_.className)=="function"?(...S)=>Fp(_==null?void 0:_.className(...S),f.className):Fp(_==null?void 0:_.className,f.className),v=O?{className:O}:{};return q.cloneElement(m,Object.assign({},xv(m.props,dc(Uu(f,["ref"]))),y,h,XC(m.ref,h.ref),v))}return q.createElement(a,Object.assign({},Uu(f,["ref"]),a!==q.Fragment&&h,a!==q.Fragment&&y),m)}function XC(...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 xv(...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 c=n[o];for(let f of c){if((a instanceof Event||(a==null?void 0:a.nativeEvent)instanceof Event)&&a.defaultPrevented)return;f(a,...u)}}});return r}function Qa(e){var r;return Object.assign(q.forwardRef(e),{displayName:(r=e.displayName)!=null?r:e.name})}function dc(e){let r=Object.assign({},e);for(let n in r)r[n]===void 0&&delete r[n];return r}function Uu(e,r=[]){let n=Object.assign({},e);for(let o of r)o in n&&delete n[o];return n}function VC(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&&JC(n)?!1:o}function JC(e){if(!e)return!1;let r=e.previousElementSibling;for(;r!==null;){if(r instanceof HTMLLegendElement)return!1;r=r.previousElementSibling}return!0}function ZC(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 QC="div";var Ov=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Ov||{});function eR(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 go({ourProps:a,theirProps:o,slot:{},defaultTag:QC,name:"Hidden"})}let tR=Qa(eR);var pc=(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))(pc||{});function nR(e,r,n){let[o,a]=q.useState(n),u=e!==void 0,c=q.useRef(u),f=q.useRef(!1),h=q.useRef(!1);return u&&!c.current&&!f.current?(f.current=!0,c.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&&c.current&&!h.current&&(h.current=!0,c.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,hr(m=>(u||a(m),r==null?void 0:r(m)))]}let Tv=q.createContext(null);function Cv(){let e=q.useContext(Tv);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,Cv),r}return e}function rR(){let[e,r]=q.useState([]);return[e.length>0?e.join(" "):void 0,q.useMemo(()=>function(n){let o=hr(u=>(r(c=>[...c,u]),()=>r(c=>{let f=c.slice(),h=f.indexOf(u);return h!==-1&&f.splice(h,1),f}))),a=q.useMemo(()=>({register:o,slot:n.slot,name:n.name,props:n.props}),[o,n.slot,n.name,n.props]);return q.createElement(Tv.Provider,{value:a},n.children)},[r])]}let iR="p";function oR(e,r){let n=$c(),{id:o=`headlessui-description-${n}`,...a}=e,u=Cv(),c=jc(r);Ei(()=>u.register(o),[o,u.register]);let f={ref:c,...u.props,id:o};return go({ourProps:f,theirProps:a,slot:u.slot||{},defaultTag:iR,name:u.name||"Description"})}let aR=Qa(oR),sR=Object.assign(aR,{}),Rv=q.createContext(null);function Pv(){let e=q.useContext(Rv);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,Pv),r}return e}function uR(){let[e,r]=q.useState([]);return[e.length>0?e.join(" "):void 0,q.useMemo(()=>function(n){let o=hr(u=>(r(c=>[...c,u]),()=>r(c=>{let f=c.slice(),h=f.indexOf(u);return h!==-1&&f.splice(h,1),f}))),a=q.useMemo(()=>({register:o,slot:n.slot,name:n.name,props:n.props}),[o,n.slot,n.name,n.props]);return q.createElement(Rv.Provider,{value:a},n.children)},[r])]}let cR="label";function lR(e,r){let n=$c(),{id:o=`headlessui-label-${n}`,passive:a=!1,...u}=e,c=Pv(),f=jc(r);Ei(()=>c.register(o),[o,c.register]);let h={ref:f,...c.props,id:o};return a&&("onClick"in h&&(delete h.htmlFor,delete h.onClick),"onClick"in u&&delete u.onClick),go({ourProps:h,theirProps:u,slot:c.slot||{},defaultTag:cR,name:c.name||"Label"})}let fR=Qa(lR),dR=Object.assign(fR,{}),Fc=q.createContext(null);Fc.displayName="GroupContext";let pR=q.Fragment;function hR(e){var r;let[n,o]=q.useState(null),[a,u]=uR(),[c,f]=rR(),h=q.useMemo(()=>({switch:n,setSwitch:o,labelledby:a,describedby:c}),[n,o,a,c]),m={},y=e;return q.createElement(f,{name:"Switch.Description"},q.createElement(u,{name:"Switch.Label",props:{htmlFor:(r=h.switch)==null?void 0:r.id,onClick(_){n&&(_.currentTarget.tagName==="LABEL"&&_.preventDefault(),n.click(),n.focus({preventScroll:!0}))}}},q.createElement(Fc.Provider,{value:h},go({ourProps:m,theirProps:y,defaultTag:pR,name:"Switch.Group"}))))}let vR="button";function mR(e,r){let n=$c(),{id:o=`headlessui-switch-${n}`,checked:a,defaultChecked:u=!1,onChange:c,name:f,value:h,form:m,...y}=e,_=q.useContext(Fc),O=q.useRef(null),v=jc(O,r,_===null?null:_.setSwitch),[S,w]=nR(a,c,u),T=hr(()=>w==null?void 0:w(!S)),D=hr(F=>{if(VC(F.currentTarget))return F.preventDefault();F.preventDefault(),T()}),M=hr(F=>{F.key===pc.Space?(F.preventDefault(),T()):F.key===pc.Enter&&ZC(F.currentTarget)}),R=hr(F=>F.preventDefault()),k=q.useMemo(()=>({checked:S}),[S]),x={id:o,ref:v,role:"switch",type:qC(e,O),tabIndex:0,"aria-checked":S,"aria-labelledby":_==null?void 0:_.labelledby,"aria-describedby":_==null?void 0:_.describedby,onClick:D,onKeyUp:M,onKeyPress:R},W=BC();return q.useEffect(()=>{var F;let $=(F=O.current)==null?void 0:F.closest("form");$&&u!==void 0&&W.addEventListener($,"reset",()=>{w(u)})},[O,w]),q.createElement(q.Fragment,null,f!=null&&S&&q.createElement(tR,{features:Ov.Hidden,...dc({as:"input",type:"checkbox",hidden:!0,readOnly:!0,form:m,checked:S,name:f,value:h})}),go({ourProps:x,theirProps:y,slot:k,defaultTag:vR,name:"Switch"}))}let gR=Qa(mR),yR=hR,wR=Object.assign(gR,{Group:yR,Label:dR,Description:sR});const Bu={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"}},bR=q.forwardRef(({onChange:e,value:r,size:n="md",className:o="ml-auto"},a)=>{const u=c=>{e(c)};return B.jsx("div",{className:zt("flex items-center",o),children:B.jsx(wR,{ref:a,checked:r,onChange:u,onKeyDown:c=>{c.key==="Enter"&&u(!r)},className:`${r?"bg-primary-dark":"bg-grey-200"}
149
- relative inline-flex shrink-0 ${Bu[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:B.jsx("span",{"aria-hidden":"true",className:`${r?Bu[n].translate:"translate-x-0"}
150
- pointer-events-none inline-block ${Bu[n].switch} transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out`})})})}),_R=({children:e,label:r,placement:n="top",className:o})=>{const[a,u]=q.useState(null),[c,f]=q.useState(null),[h,m]=q.useState(!1),{styles:y,attributes:_}=ah(a,c,{placement:n,modifiers:[{name:"offset",options:{offset:[0,8]}}]}),O=q.Children.map(e,v=>q.isValidElement(v)?q.cloneElement(v,{ref:u,onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1)}):v);return B.jsxs(B.Fragment,{children:[O,h&&Ba.createPortal(B.jsx("div",{ref:f,style:y.popper,..._.popper,className:zt("z-10 select-none rounded-sm bg-gray-50 px-2 py-1 text-xs text-gray-800",o),children:r}),document.querySelector("body"))]})},SR=Vu.keyframes`
148
+ `));let _=m.props,O=typeof(_==null?void 0:_.className)=="function"?(...S)=>Za(_==null?void 0:_.className(...S),f.className):Za(_==null?void 0:_.className,f.className),v=O?{className:O}:{};return k.cloneElement(m,Object.assign({},Gv(m.props,Al(tl(f,["ref"]))),g,d,wR(m.ref,d.ref),v))}return k.createElement(a,Object.assign({},tl(f,["ref"]),a!==k.Fragment&&d,a!==k.Fragment&&g),m)}function wR(...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 Gv(...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 ti(e){var r;return Object.assign(k.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 _R(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&&SR(n)?!1:o}function SR(e){if(!e)return!1;let r=e.previousElementSibling;for(;r!==null;){if(r instanceof HTMLLegendElement)return!1;r=r.previousElementSibling}return!0}function ER(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 xR="div";var Yv=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Yv||{});function OR(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 ei({ourProps:a,theirProps:o,slot:{},defaultTag:xR,name:"Hidden"})}let TR=ti(OR),sc=k.createContext(null);sc.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 Vv(){return k.useContext(sc)}function CR({value:e,children:r}){return k.createElement(sc.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 RR(e,r,n){let[o,a]=k.useState(n),u=e!==void 0,l=k.useRef(u),f=k.useRef(!1),d=k.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,Mt(m=>(u||a(m),r==null?void 0:r(m)))]}function uc(){let e=k.useRef(!1);return Wn(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let Xv=k.createContext(null);function Jv(){let e=k.useContext(Xv);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 PR(){let[e,r]=k.useState([]);return[e.length>0?e.join(" "):void 0,k.useMemo(()=>function(n){let o=Mt(u=>(r(l=>[...l,u]),()=>r(l=>{let f=l.slice(),d=f.indexOf(u);return d!==-1&&f.splice(d,1),f}))),a=k.useMemo(()=>({register:o,slot:n.slot,name:n.name,props:n.props}),[o,n.slot,n.name,n.props]);return k.createElement(Xv.Provider,{value:a},n.children)},[r])]}let AR="p";function IR(e,r){let n=ac(),{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 ei({ourProps:f,theirProps:a,slot:u.slot||{},defaultTag:AR,name:u.name||"Description"})}let LR=ti(IR),MR=Object.assign(LR,{});function DR(e=0){let[r,n]=k.useState(e),o=uc(),a=k.useCallback(d=>{o.current&&n(m=>m|d)},[r,o]),u=k.useCallback(d=>!!(r&d),[r]),l=k.useCallback(d=>{o.current&&n(m=>m&~d)},[n,o]),f=k.useCallback(d=>{o.current&&n(m=>m^d)},[n]);return{flags:r,addFlag:a,hasFlag:u,removeFlag:l,toggleFlag:f}}let Zv=k.createContext(null);function Qv(){let e=k.useContext(Zv);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,Qv),r}return e}function kR(){let[e,r]=k.useState([]);return[e.length>0?e.join(" "):void 0,k.useMemo(()=>function(n){let o=Mt(u=>(r(l=>[...l,u]),()=>r(l=>{let f=l.slice(),d=f.indexOf(u);return d!==-1&&f.splice(d,1),f}))),a=k.useMemo(()=>({register:o,slot:n.slot,name:n.name,props:n.props}),[o,n.slot,n.name,n.props]);return k.createElement(Zv.Provider,{value:a},n.children)},[r])]}let NR="label";function $R(e,r){let n=ac(),{id:o=`headlessui-label-${n}`,passive:a=!1,...u}=e,l=Qv(),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),ei({ourProps:d,theirProps:u,slot:l.slot||{},defaultTag:NR,name:l.name||"Label"})}let jR=ti($R),FR=Object.assign(jR,{}),lc=k.createContext(null);lc.displayName="GroupContext";let WR=k.Fragment;function UR(e){var r;let[n,o]=k.useState(null),[a,u]=kR(),[l,f]=PR(),d=k.useMemo(()=>({switch:n,setSwitch:o,labelledby:a,describedby:l}),[n,o,a,l]),m={},g=e;return k.createElement(f,{name:"Switch.Description"},k.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}))}}},k.createElement(lc.Provider,{value:d},ei({ourProps:m,theirProps:g,defaultTag:WR,name:"Switch.Group"}))))}let BR="button";function HR(e,r){let n=ac(),{id:o=`headlessui-switch-${n}`,checked:a,defaultChecked:u=!1,onChange:l,name:f,value:d,form:m,...g}=e,_=k.useContext(lc),O=k.useRef(null),v=Ro(O,r,_===null?null:_.setSwitch),[S,y]=RR(a,l,u),E=Mt(()=>y==null?void 0:y(!S)),D=Mt(B=>{if(_R(B.currentTarget))return B.preventDefault();B.preventDefault(),E()}),I=Mt(B=>{B.key===Il.Space?(B.preventDefault(),E()):B.key===Il.Enter&&ER(B.currentTarget)}),C=Mt(B=>B.preventDefault()),N=k.useMemo(()=>({checked:S}),[S]),T={id:o,ref:v,role:"switch",type:yR(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},U=ic();return k.useEffect(()=>{var B;let j=(B=O.current)==null?void 0:B.closest("form");j&&u!==void 0&&U.addEventListener(j,"reset",()=>{y(u)})},[O,y]),k.createElement(k.Fragment,null,f!=null&&S&&k.createElement(TR,{features:Yv.Hidden,...Al({as:"input",type:"checkbox",hidden:!0,readOnly:!0,form:m,checked:S,name:f,value:d})}),ei({ourProps:T,theirProps:g,slot:N,defaultTag:BR,name:"Switch"}))}let zR=ti(HR),qR=UR,KR=Object.assign(zR,{Group:qR,Label:FR,Description:MR});function GR(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 YR(e,r){let n=Co();if(!e)return n.dispose;let{transitionDuration:o,transitionDelay:a}=getComputedStyle(e),[u,l]=[o,a].map(d=>{let[m=0]=d.split(",").filter(Boolean).map(g=>g.includes("ms")?parseFloat(g):parseFloat(g)*1e3).sort((g,_)=>_-g);return m}),f=u+l;if(f!==0){n.group(m=>{m.setTimeout(()=>{r(),m.dispose()},f),m.addEventListener(e,"transitionrun",g=>{g.target===g.currentTarget&&m.dispose()})});let d=n.addEventListener(e,"transitionend",m=>{m.target===m.currentTarget&&(r(),d())})}else r();return n.add(()=>r()),n.dispose}function VR(e,r,n,o){let a=n?"enter":"leave",u=Co(),l=o!==void 0?GR(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}),m=$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,...m),u.nextFrame(()=>{rl(e,...r.base,...f,...m),nl(e,...r.base,...f,...d),YR(e,()=>(rl(e,...r.base,...f),nl(e,...r.base,...r.entered),l()))}),u.dispose}function XR({immediate:e,container:r,direction:n,classes:o,onStart:a,onStop:u}){let l=uc(),f=ic(),d=Ri(n);Wn(()=>{e&&(d.current="enter")},[e]),Wn(()=>{let m=Co();f.add(m.dispose);let g=r.current;if(g&&d.current!=="idle"&&l.current)return m.dispose(),a.current(d.current),m.add(VR(g,o.current,d.current==="enter",()=>{m.dispose(),u.current(d.current)})),m.dispose},[n])}function gr(e=""){return e.split(" ").filter(r=>r.trim().length>1)}let fs=k.createContext(null);fs.displayName="TransitionContext";var JR=(e=>(e.Visible="visible",e.Hidden="hidden",e))(JR||{});function ZR(){let e=k.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 QR(){let e=k.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=k.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 em(e,r){let n=Ri(e),o=k.useRef([]),a=uc(),u=ic(),l=Mt((v,S=br.Hidden)=>{let y=o.current.findIndex(({el:E})=>E===v);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=Mt(v=>{let S=o.current.find(({el:y})=>y===v);return S?S.state!=="visible"&&(S.state="visible"):o.current.push({el:v,state:"visible"}),()=>l(v,br.Unmount)}),d=k.useRef([]),m=k.useRef(Promise.resolve()),g=k.useRef({enter:[],leave:[],idle:[]}),_=Mt((v,S,y)=>{d.current.splice(0),r&&(r.chains.current[S]=r.chains.current[S].filter(([E])=>E!==v)),r==null||r.chains.current[S].push([v,new Promise(E=>{d.current.push(E)})]),r==null||r.chains.current[S].push([v,new Promise(E=>{Promise.all(g.current[S].map(([D,I])=>I)).then(()=>E())})]),S==="enter"?m.current=m.current.then(()=>r==null?void 0:r.wait.current).then(()=>y(S)):y(S)}),O=Mt((v,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 k.useMemo(()=>({children:o,register:f,unregister:l,onStart:_,onStop:O,wait:m,chains:g}),[f,l,o,_,O,g,m])}function eP(){}let tP=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function lh(e){var r;let n={};for(let o of tP)n[o]=(r=e[o])!=null?r:eP;return n}function nP(e){let r=k.useRef(lh(e));return k.useEffect(()=>{r.current=lh(e)},[e]),r}let rP="div",tm=Kv.RenderStrategy;function iP(e,r){var n,o;let{beforeEnter:a,afterEnter:u,beforeLeave:l,afterLeave:f,enter:d,enterFrom:m,enterTo:g,entered:_,leave:O,leaveFrom:v,leaveTo:S,...y}=e,E=k.useRef(null),D=Ro(E,r),I=(n=y.unmount)==null||n?br.Unmount:br.Hidden,{show:C,appear:N,initial:T}=ZR(),[U,B]=k.useState(C?"visible":"hidden"),j=QR(),{register:J,unregister:ee}=j;k.useEffect(()=>J(E),[J,E]),k.useEffect(()=>{if(I===br.Hidden&&E.current){if(C&&U!=="visible"){B("visible");return}return $n(U,{hidden:()=>ee(E),visible:()=>J(E)})}},[U,E,J,ee,C,I]);let ge=Ri({base:gr(y.className),enter:gr(d),enterFrom:gr(m),enterTo:gr(g),entered:gr(_),leave:gr(O),leaveFrom:gr(v),leaveTo:gr(S)}),Ce=nP({beforeEnter:a,afterEnter:u,beforeLeave:l,afterLeave:f}),_e=oc();k.useEffect(()=>{if(_e&&U==="visible"&&E.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[E,U,_e]);let se=T&&!N,Le=N&&C&&T,be=(()=>!_e||se?"idle":C?"enter":"leave")(),xe=DR(0),We=Mt(ie=>$n(ie,{enter:()=>{xe.addFlag(er.Opening),Ce.current.beforeEnter()},leave:()=>{xe.addFlag(er.Closing),Ce.current.beforeLeave()},idle:()=>{}})),st=Mt(ie=>$n(ie,{enter:()=>{xe.removeFlag(er.Opening),Ce.current.afterEnter()},leave:()=>{xe.removeFlag(er.Closing),Ce.current.afterLeave()},idle:()=>{}})),K=em(()=>{B("hidden"),ee(E)},j);XR({immediate:Le,container:E,classes:ge,direction:be,onStart:Ri(ie=>{K.onStart(E,ie,We)}),onStop:Ri(ie=>{K.onStop(E,ie,st),ie==="leave"&&!ps(K)&&(B("hidden"),ee(E))})});let V=y,de={ref:D};return Le?V={...V,className:Za(y.className,...ge.current.enter,...ge.current.enterFrom)}:(V.className=Za(y.className,(o=E.current)==null?void 0:o.className),V.className===""&&delete V.className),k.createElement(ds.Provider,{value:K},k.createElement(CR,{value:$n(U,{visible:er.Open,hidden:er.Closed})|xe.flags},ei({ourProps:de,theirProps:V,defaultTag:rP,features:tm,visible:U==="visible",name:"Transition.Child"})))}function oP(e,r){let{show:n,appear:o=!1,unmount:a=!0,...u}=e,l=k.useRef(null),f=Ro(l,r);oc();let d=Vv();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[m,g]=k.useState(n?"visible":"hidden"),_=em(()=>{g("hidden")}),[O,v]=k.useState(!0),S=k.useRef([n]);Wn(()=>{O!==!1&&S.current[S.current.length-1]!==n&&(S.current.push(n),v(!1))},[S,n]);let y=k.useMemo(()=>({show:n,appear:o,initial:O}),[n,o,O]);k.useEffect(()=>{if(n)g("visible");else if(!ps(_))g("hidden");else{let C=l.current;if(!C)return;let N=C.getBoundingClientRect();N.x===0&&N.y===0&&N.width===0&&N.height===0&&g("hidden")}},[n,_]);let E={unmount:a},D=Mt(()=>{var C;O&&v(!1),(C=e.beforeEnter)==null||C.call(e)}),I=Mt(()=>{var C;O&&v(!1),(C=e.beforeLeave)==null||C.call(e)});return k.createElement(ds.Provider,{value:_},k.createElement(fs.Provider,{value:y},ei({ourProps:{...E,as:k.Fragment,children:k.createElement(nm,{ref:f,...E,...u,beforeEnter:D,beforeLeave:I})},theirProps:{},defaultTag:k.Fragment,features:tm,visible:m==="visible",name:"Transition"})))}function aP(e,r){let n=k.useContext(fs)!==null,o=Vv()!==null;return k.createElement(k.Fragment,null,!n&&o?k.createElement(Ll,{ref:r,...e}):k.createElement(nm,{ref:r,...e}))}let Ll=ti(oP),nm=ti(iP),sP=ti(aP),Qa=Object.assign(Ll,{Child:sP,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"}},rm=k.forwardRef(({onChange:e,value:r,size:n="md",className:o="ml-auto"},a)=>{const u=l=>{e(l)};return $.jsx("div",{className:yt("flex items-center",o),children:$.jsx(KR,{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`})})})}),uP=({children:e,label:r,placement:n="top",className:o})=>{const[a,u]=k.useState(null),[l,f]=k.useState(null),[d,m]=k.useState(!1),{styles:g,attributes:_}=Ah(a,l,{placement:n,modifiers:[{name:"offset",options:{offset:[0,8]}}]}),O=k.Children.map(e,v=>k.isValidElement(v)?k.cloneElement(v,{ref:u,onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1)}):v);return $.jsxs($.Fragment,{children:[O,d&&yo.createPortal($.jsx("div",{ref:f,style:g.popper,..._.popper,className:yt("z-10 select-none rounded-sm bg-gray-50 px-2 py-1 text-xs text-gray-800",o),children:r}),document.querySelector("body"))]})},lP=pl.keyframes`
151
151
  to {
152
152
  fill: url(#d);
153
153
  stroke-dashoffset: 0;
154
154
  }
155
- `,Av=Na.svg`
155
+ `,im=Ga.svg`
156
156
  & .e {
157
157
  fill: url(#d);
158
158
  }
@@ -163,7 +163,7 @@ pointer-events-none inline-block ${Bu[n].switch} transform rounded-full bg-white
163
163
  fill: transparent;
164
164
  stroke-dasharray: 700;
165
165
  stroke-dashoffset: 700;
166
- animation: ${SR} 1.5s ease-in-out infinite alternate-reverse;
166
+ animation: ${lP} 1.5s ease-in-out infinite alternate-reverse;
167
167
  }
168
168
 
169
169
  & #circle {
@@ -173,34 +173,34 @@ pointer-events-none inline-block ${Bu[n].switch} transform rounded-full bg-white
173
173
  stroke-dasharray: 700;
174
174
  stroke-dashoffset: 700;
175
175
  }
176
- `,ER=({message:e,version:r})=>B.jsx("div",{className:"absolute inset-0 flex h-screen w-screen flex-col items-center justify-center bg-fd-gray-default text-white",children:B.jsxs("div",{className:"flex flex-col text-center",children:[B.jsx("div",{className:"relative mr-4 self-center",children:B.jsx("div",{className:"flex items-center justify-center rounded-md",children:B.jsxs(Av,{className:"h-60 w-60",viewBox:"0 0 143.14 136.27",children:[B.jsx("defs",{children:B.jsxs("linearGradient",{id:"d",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[B.jsx("stop",{offset:"0%",stopColor:"#2743a6",children:B.jsx("animate",{attributeName:"stop-color",values:"#ffa4c0; #2743a6;",dur:"6s",repeatCount:"indefinite"})}),B.jsx("stop",{offset:"100%",stopColor:"#ffa4c0",children:B.jsx("animate",{attributeName:"stop-color",values:"#2743a6; #ffa4c0;",dur:"2ds",repeatCount:"indefinite"})})]})}),B.jsx("g",{id:"a"}),B.jsx("g",{id:"b",children:B.jsx("g",{id:"c",children:B.jsxs("g",{children:[B.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"}),B.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"})]})})})]})})}),B.jsxs("div",{children:[B.jsx("span",{className:"text-xs text-grey-200",children:r}),B.jsx("h2",{className:"text-lg text-grey-100",children:e})]})]})});function xR(e,r){const n=q.useRef(!1);q.useEffect(()=>{if(n.current)return e();n.current=!0},r)}var Hu=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function zu(e,r,n,o){e.addEventListener?e.addEventListener(r,n,o):e.attachEvent&&e.attachEvent("on".concat(r),function(){n(window.event)})}function Iv(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 Lv(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 OR(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 oo={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,"-":Hu?173:189,"=":Hu?61:187,";":Hu?59:186,"'":222,"[":219,"]":221,"\\":220},jn={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},hc={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},St={16:!1,18:!1,17:!1,91:!1},at={};for(var xa=1;xa<20;xa++)oo["f".concat(xa)]=111+xa;var Ve=[],Wp=!1,Mv="all",Dv=[],yo=function(r){return oo[r.toLowerCase()]||jn[r.toLowerCase()]||r.toUpperCase().charCodeAt(0)},TR=function(r){return Object.keys(oo).find(function(n){return oo[n]===r})},CR=function(r){return Object.keys(jn).find(function(n){return jn[n]===r})};function kv(e){Mv=e||"all"}function ao(){return Mv||"all"}function RR(){return Ve.slice(0)}function PR(){return Ve.map(function(e){return TR(e)||CR(e)||String.fromCharCode(e)})}function AR(){var e=[];return Object.keys(at).forEach(function(r){at[r].forEach(function(n){var o=n.key,a=n.scope,u=n.mods,c=n.shortcut;e.push({scope:a,shortcut:c,mods:u,keys:o.split("+").map(function(f){return yo(f)})})})}),e}function IR(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 LR(e){return typeof e=="string"&&(e=yo(e)),Ve.indexOf(e)!==-1}function MR(e,r){var n,o;e||(e=ao());for(var a in at)if(Object.prototype.hasOwnProperty.call(at,a))for(n=at[a],o=0;o<n.length;)n[o].scope===e?n.splice(o,1):o++;ao()===e&&kv(r||"all")}function DR(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 St){St[r]=!1;for(var o in jn)jn[o]===r&&(Rn[o]=!1)}}function kR(e){if(typeof e>"u")Object.keys(at).forEach(function(c){return delete at[c]});else if(Array.isArray(e))e.forEach(function(c){c.key&&qu(c)});else if(typeof e=="object")e.key&&qu(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=""),qu({key:e,scope:a,method:u,splitKey:"+"})}}var qu=function(r){var n=r.key,o=r.scope,a=r.method,u=r.splitKey,c=u===void 0?"+":u,f=Lv(n);f.forEach(function(h){var m=h.split(c),y=m.length,_=m[y-1],O=_==="*"?"*":yo(_);if(at[O]){o||(o=ao());var v=y>1?Iv(jn,m):[];at[O]=at[O].filter(function(S){var w=a?S.method===a:!0;return!(w&&S.scope===o&&OR(S.mods,v))})}})};function Up(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 St)Object.prototype.hasOwnProperty.call(St,u)&&(!St[u]&&r.mods.indexOf(+u)>-1||St[u]&&r.mods.indexOf(+u)===-1)&&(a=!1);(r.mods.length===0&&!St[16]&&!St[18]&&!St[17]&&!St[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 Bp(e,r){var n=at["*"],o=e.keyCode||e.which||e.charCode;if(Rn.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 w=hc[S];e[S]&&Ve.indexOf(w)===-1?Ve.push(w):!e[S]&&Ve.indexOf(w)>-1?Ve.splice(Ve.indexOf(w),1):S==="metaKey"&&e[S]&&Ve.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(Ve=Ve.slice(Ve.indexOf(w))))}),o in St){St[o]=!0;for(var a in jn)jn[a]===o&&(Rn[a]=!0);if(!n)return}for(var u in St)Object.prototype.hasOwnProperty.call(St,u)&&(St[u]=e[hc[u]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Ve.indexOf(17)===-1&&Ve.push(17),Ve.indexOf(18)===-1&&Ve.push(18),St[17]=!0,St[18]=!0);var c=ao();if(n)for(var f=0;f<n.length;f++)n[f].scope===c&&(e.type==="keydown"&&n[f].keydown||e.type==="keyup"&&n[f].keyup)&&Up(e,n[f],c,r);if(o in at){for(var h=0;h<at[o].length;h++)if((e.type==="keydown"&&at[o][h].keydown||e.type==="keyup"&&at[o][h].keyup)&&at[o][h].key){for(var m=at[o][h],y=m.splitKey,_=m.key.split(y),O=[],v=0;v<_.length;v++)O.push(yo(_[v]));O.sort().join("")===Ve.sort().join("")&&Up(e,m,c,r)}}}}function NR(e){return Dv.indexOf(e)>-1}function Rn(e,r,n){Ve=[];var o=Lv(e),a=[],u="all",c=document,f=0,h=!1,m=!0,y="+",_=!1;for(n===void 0&&typeof r=="function"&&(n=r),Object.prototype.toString.call(r)==="[object Object]"&&(r.scope&&(u=r.scope),r.element&&(c=r.element),r.keyup&&(h=r.keyup),r.keydown!==void 0&&(m=r.keydown),r.capture!==void 0&&(_=r.capture),typeof r.splitKey=="string"&&(y=r.splitKey)),typeof r=="string"&&(u=r);f<o.length;f++)e=o[f].split(y),a=[],e.length>1&&(a=Iv(jn,e)),e=e[e.length-1],e=e==="*"?"*":yo(e),e in at||(at[e]=[]),at[e].push({keyup:h,keydown:m,scope:u,mods:a,shortcut:o[f],method:n,key:o[f],splitKey:y,element:c});typeof c<"u"&&!NR(c)&&window&&(Dv.push(c),zu(c,"keydown",function(O){Bp(O,c)},_),Wp||(Wp=!0,zu(window,"focus",function(){Ve=[]},_)),zu(c,"keyup",function(O){Bp(O,c),DR(O)},_))}function $R(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(at).forEach(function(n){var o=at[n].filter(function(a){return a.scope===r&&a.shortcut===e});o.forEach(function(a){a&&a.method&&a.method()})})}var Ku={getPressedKeyString:PR,setScope:kv,getScope:ao,deleteScope:MR,getPressedKeyCodes:RR,getAllKeyCodes:AR,isPressed:LR,filter:IR,trigger:$R,unbind:kR,keyMap:oo,modifier:jn,modifierMap:hc};for(var Gu in Ku)Object.prototype.hasOwnProperty.call(Ku,Gu)&&(Rn[Gu]=Ku[Gu]);if(typeof window<"u"){var jR=window.hotkeys;Rn.noConflict=function(e){return e&&window.hotkeys===Rn&&(window.hotkeys=jR),Rn},window.hotkeys=Rn}Rn.filter=()=>!0;function FR(e,r,n,o){n instanceof Array&&(o=n,n=void 0),o=o||[],n=n||{};const{preventDefault:a=!0}=n,u=q.useCallback((f,h)=>{a&&f.preventDefault(),setTimeout(()=>r(f,h))},o),c=()=>{Rn.unbind(e,u)};q.useEffect(()=>(Rn(e,n,u),c),[e,n,u])}const WR=e=>{const r=q.useRef(null);return q.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 UR(e){const r=q.useRef();return q.useEffect(()=>{r.current=e},[e]),r.current}function BR(e){const r=q.useRef(e);return q.useEffect(()=>{r.current=e},[e]),r}function HR(e){const r=q.useRef(null);return q.useEffect(()=>{e&&(typeof e=="function"?e(r.current):e.current=r.current)}),r}const zR={features:{debugger:{enabled:process.env.REACT_APP_DEBUGGER_ENABLED!=="false"},modelEditor:{enabled:process.env.REACT_APP_MODEL_EDITOR_ENABLED!=="false"},roles:{enabled:process.env.REACT_APP_ROLES_ENABLED!=="false"}}};function qR(){const[e,r]=q.useState(zR),n=(a,u)=>{r(c=>({...c,features:{...c.features,[a]:u}}))},o=q.useCallback((...a)=>a.every(u=>{var c;return(c=e.features[u])==null?void 0:c.enabled}),[e.features]);return{setFeature:n,isFeatureEnabled:o}}const Nv=q.createContext(""),KR=e=>B.jsx(Nv.Provider,{value:e.value,children:e.children}),GR=()=>{const e=q.useContext(Nv);if(typeof e!="string")throw new Error("Error while calling useIdentity! Context has incorrect type (expected string)");return e};var Ua={exports:{}};/**
176
+ `,cP=({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-md",children:$.jsxs(im,{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
- */Ua.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.",c="Expected a function",f="Invalid `variable` option passed into `_.template`",h="__lodash_hash_undefined__",m=500,y="__lodash_placeholder__",_=1,O=2,v=4,S=1,w=2,T=1,D=2,M=4,R=8,k=16,x=32,W=64,F=128,$=256,Z=512,ne=30,we="...",Me=800,Oe=16,ue=1,ke=2,_e=3,Ie=1/0,qe=9007199254740991,ft=17976931348623157e292,G=0/0,X=4294967295,ve=X-1,me=X>>>1,ce=[["ary",F],["bind",T],["bindKey",D],["curry",R],["curryRight",k],["flip",Z],["partial",x],["partialRight",W],["rearg",$]],le="[object Arguments]",ae="[object Array]",fe="[object AsyncFunction]",se="[object Boolean]",ge="[object Date]",ye="[object DOMException]",Ge="[object Error]",V="[object Function]",nt="[object GeneratorFunction]",rt="[object Map]",lt="[object Number]",Pn="[object Null]",vt="[object Object]",$t="[object Promise]",gr="[object Proxy]",Je="[object RegExp]",Qe="[object Set]",tn="[object String]",qt="[object Symbol]",mn="[object Undefined]",Et="[object WeakMap]",Qn="[object WeakSet]",nn="[object ArrayBuffer]",Kt="[object DataView]",yr="[object Float32Array]",wr="[object Float64Array]",br="[object Int8Array]",_r="[object Int16Array]",gn="[object Int32Array]",Fn="[object Uint8Array]",yt="[object Uint8ClampedArray]",yn="[object Uint16Array]",wn="[object Uint32Array]",Sr=/\b__p \+= '';/g,Ti=/\b(__p \+=) '' \+/g,Er=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Vr=/&(?:amp|lt|gt|quot|#39);/g,er=/[&<>"']/g,xr=RegExp(Vr.source),Ci=RegExp(er.source),Ri=/<%-([\s\S]+?)%>/g,Or=/<%([\s\S]+?)%>/g,Jr=/<%=([\s\S]+?)%>/g,Pi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ai=/^\w*$/,Ii=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,d=/[\\^$.*+?()[\]{}|]/g,P=RegExp(d.source),N=/^\s+/,Y=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,oe=/\{\n\/\* \[wrapped with (.+)\] \*/,ee=/,? & /,Q=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,je=/[()=,{}\[\]\/\s]/,be=/\\(\\)?/g,Ee=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,it=/\w*$/,It=/^[-+]0x[0-9a-f]+$/i,Tr=/^0b[01]+$/i,st=/^\[object .+?Constructor\]$/,gm=/^0o[0-7]+$/i,ym=/^(?:0|[1-9]\d*)$/,wm=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,bo=/($^)/,bm=/['\n\r\u2028\u2029\\]/g,_o="\\ud800-\\udfff",_m="\\u0300-\\u036f",Sm="\\ufe20-\\ufe2f",Em="\\u20d0-\\u20ff",zc=_m+Sm+Em,qc="\\u2700-\\u27bf",Kc="a-z\\xdf-\\xf6\\xf8-\\xff",xm="\\xac\\xb1\\xd7\\xf7",Om="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Tm="\\u2000-\\u206f",Cm=" \\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",Gc="A-Z\\xc0-\\xd6\\xd8-\\xde",Yc="\\ufe0e\\ufe0f",Xc=xm+Om+Tm+Cm,ns="['’]",Rm="["+_o+"]",Vc="["+Xc+"]",So="["+zc+"]",Jc="\\d+",Pm="["+qc+"]",Zc="["+Kc+"]",Qc="[^"+_o+Xc+Jc+qc+Kc+Gc+"]",rs="\\ud83c[\\udffb-\\udfff]",Am="(?:"+So+"|"+rs+")",el="[^"+_o+"]",is="(?:\\ud83c[\\udde6-\\uddff]){2}",os="[\\ud800-\\udbff][\\udc00-\\udfff]",Zr="["+Gc+"]",tl="\\u200d",nl="(?:"+Zc+"|"+Qc+")",Im="(?:"+Zr+"|"+Qc+")",rl="(?:"+ns+"(?:d|ll|m|re|s|t|ve))?",il="(?:"+ns+"(?:D|LL|M|RE|S|T|VE))?",ol=Am+"?",al="["+Yc+"]?",Lm="(?:"+tl+"(?:"+[el,is,os].join("|")+")"+al+ol+")*",Mm="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Dm="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",sl=al+ol+Lm,km="(?:"+[Pm,is,os].join("|")+")"+sl,Nm="(?:"+[el+So+"?",So,is,os,Rm].join("|")+")",$m=RegExp(ns,"g"),jm=RegExp(So,"g"),as=RegExp(rs+"(?="+rs+")|"+Nm+sl,"g"),Fm=RegExp([Zr+"?"+Zc+"+"+rl+"(?="+[Vc,Zr,"$"].join("|")+")",Im+"+"+il+"(?="+[Vc,Zr+nl,"$"].join("|")+")",Zr+"?"+nl+"+"+rl,Zr+"+"+il,Dm,Mm,Jc,km].join("|"),"g"),Wm=RegExp("["+tl+_o+zc+Yc+"]"),Um=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Bm=["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"],Hm=-1,Ze={};Ze[yr]=Ze[wr]=Ze[br]=Ze[_r]=Ze[gn]=Ze[Fn]=Ze[yt]=Ze[yn]=Ze[wn]=!0,Ze[le]=Ze[ae]=Ze[nn]=Ze[se]=Ze[Kt]=Ze[ge]=Ze[Ge]=Ze[V]=Ze[rt]=Ze[lt]=Ze[vt]=Ze[Je]=Ze[Qe]=Ze[tn]=Ze[Et]=!1;var Xe={};Xe[le]=Xe[ae]=Xe[nn]=Xe[Kt]=Xe[se]=Xe[ge]=Xe[yr]=Xe[wr]=Xe[br]=Xe[_r]=Xe[gn]=Xe[rt]=Xe[lt]=Xe[vt]=Xe[Je]=Xe[Qe]=Xe[tn]=Xe[qt]=Xe[Fn]=Xe[yt]=Xe[yn]=Xe[wn]=!0,Xe[Ge]=Xe[V]=Xe[Et]=!1;var zm={À:"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"},qm={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Km={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Gm={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ym=parseFloat,Xm=parseInt,ul=typeof Fr=="object"&&Fr&&Fr.Object===Object&&Fr,Vm=typeof self=="object"&&self&&self.Object===Object&&self,wt=ul||Vm||Function("return this")(),ss=r&&!r.nodeType&&r,Cr=ss&&!0&&e&&!e.nodeType&&e,cl=Cr&&Cr.exports===ss,us=cl&&ul.process,rn=function(){try{var A=Cr&&Cr.require&&Cr.require("util").types;return A||us&&us.binding&&us.binding("util")}catch{}}(),ll=rn&&rn.isArrayBuffer,fl=rn&&rn.isDate,dl=rn&&rn.isMap,pl=rn&&rn.isRegExp,hl=rn&&rn.isSet,vl=rn&&rn.isTypedArray;function Gt(A,U,j){switch(j.length){case 0:return A.call(U);case 1:return A.call(U,j[0]);case 2:return A.call(U,j[0],j[1]);case 3:return A.call(U,j[0],j[1],j[2])}return A.apply(U,j)}function Jm(A,U,j,te){for(var Se=-1,Fe=A==null?0:A.length;++Se<Fe;){var dt=A[Se];U(te,dt,j(dt),A)}return te}function on(A,U){for(var j=-1,te=A==null?0:A.length;++j<te&&U(A[j],j,A)!==!1;);return A}function Zm(A,U){for(var j=A==null?0:A.length;j--&&U(A[j],j,A)!==!1;);return A}function ml(A,U){for(var j=-1,te=A==null?0:A.length;++j<te;)if(!U(A[j],j,A))return!1;return!0}function tr(A,U){for(var j=-1,te=A==null?0:A.length,Se=0,Fe=[];++j<te;){var dt=A[j];U(dt,j,A)&&(Fe[Se++]=dt)}return Fe}function Eo(A,U){var j=A==null?0:A.length;return!!j&&Qr(A,U,0)>-1}function cs(A,U,j){for(var te=-1,Se=A==null?0:A.length;++te<Se;)if(j(U,A[te]))return!0;return!1}function et(A,U){for(var j=-1,te=A==null?0:A.length,Se=Array(te);++j<te;)Se[j]=U(A[j],j,A);return Se}function nr(A,U){for(var j=-1,te=U.length,Se=A.length;++j<te;)A[Se+j]=U[j];return A}function ls(A,U,j,te){var Se=-1,Fe=A==null?0:A.length;for(te&&Fe&&(j=A[++Se]);++Se<Fe;)j=U(j,A[Se],Se,A);return j}function Qm(A,U,j,te){var Se=A==null?0:A.length;for(te&&Se&&(j=A[--Se]);Se--;)j=U(j,A[Se],Se,A);return j}function fs(A,U){for(var j=-1,te=A==null?0:A.length;++j<te;)if(U(A[j],j,A))return!0;return!1}var eg=ds("length");function tg(A){return A.split("")}function ng(A){return A.match(Q)||[]}function gl(A,U,j){var te;return j(A,function(Se,Fe,dt){if(U(Se,Fe,dt))return te=Fe,!1}),te}function xo(A,U,j,te){for(var Se=A.length,Fe=j+(te?1:-1);te?Fe--:++Fe<Se;)if(U(A[Fe],Fe,A))return Fe;return-1}function Qr(A,U,j){return U===U?hg(A,U,j):xo(A,yl,j)}function rg(A,U,j,te){for(var Se=j-1,Fe=A.length;++Se<Fe;)if(te(A[Se],U))return Se;return-1}function yl(A){return A!==A}function wl(A,U){var j=A==null?0:A.length;return j?hs(A,U)/j:G}function ds(A){return function(U){return U==null?n:U[A]}}function ps(A){return function(U){return A==null?n:A[U]}}function bl(A,U,j,te,Se){return Se(A,function(Fe,dt,Ye){j=te?(te=!1,Fe):U(j,Fe,dt,Ye)}),j}function ig(A,U){var j=A.length;for(A.sort(U);j--;)A[j]=A[j].value;return A}function hs(A,U){for(var j,te=-1,Se=A.length;++te<Se;){var Fe=U(A[te]);Fe!==n&&(j=j===n?Fe:j+Fe)}return j}function vs(A,U){for(var j=-1,te=Array(A);++j<A;)te[j]=U(j);return te}function og(A,U){return et(U,function(j){return[j,A[j]]})}function _l(A){return A&&A.slice(0,Ol(A)+1).replace(N,"")}function Yt(A){return function(U){return A(U)}}function ms(A,U){return et(U,function(j){return A[j]})}function Li(A,U){return A.has(U)}function Sl(A,U){for(var j=-1,te=A.length;++j<te&&Qr(U,A[j],0)>-1;);return j}function El(A,U){for(var j=A.length;j--&&Qr(U,A[j],0)>-1;);return j}function ag(A,U){for(var j=A.length,te=0;j--;)A[j]===U&&++te;return te}var sg=ps(zm),ug=ps(qm);function cg(A){return"\\"+Gm[A]}function lg(A,U){return A==null?n:A[U]}function ei(A){return Wm.test(A)}function fg(A){return Um.test(A)}function dg(A){for(var U,j=[];!(U=A.next()).done;)j.push(U.value);return j}function gs(A){var U=-1,j=Array(A.size);return A.forEach(function(te,Se){j[++U]=[Se,te]}),j}function xl(A,U){return function(j){return A(U(j))}}function rr(A,U){for(var j=-1,te=A.length,Se=0,Fe=[];++j<te;){var dt=A[j];(dt===U||dt===y)&&(A[j]=y,Fe[Se++]=j)}return Fe}function Oo(A){var U=-1,j=Array(A.size);return A.forEach(function(te){j[++U]=te}),j}function pg(A){var U=-1,j=Array(A.size);return A.forEach(function(te){j[++U]=[te,te]}),j}function hg(A,U,j){for(var te=j-1,Se=A.length;++te<Se;)if(A[te]===U)return te;return-1}function vg(A,U,j){for(var te=j+1;te--;)if(A[te]===U)return te;return te}function ti(A){return ei(A)?gg(A):eg(A)}function bn(A){return ei(A)?yg(A):tg(A)}function Ol(A){for(var U=A.length;U--&&Y.test(A.charAt(U)););return U}var mg=ps(Km);function gg(A){for(var U=as.lastIndex=0;as.test(A);)++U;return U}function yg(A){return A.match(as)||[]}function wg(A){return A.match(Fm)||[]}var bg=function A(U){U=U==null?wt:ni.defaults(wt.Object(),U,ni.pick(wt,Bm));var j=U.Array,te=U.Date,Se=U.Error,Fe=U.Function,dt=U.Math,Ye=U.Object,ys=U.RegExp,_g=U.String,an=U.TypeError,To=j.prototype,Sg=Fe.prototype,ri=Ye.prototype,Co=U["__core-js_shared__"],Ro=Sg.toString,He=ri.hasOwnProperty,Eg=0,Tl=function(){var t=/[^.]+$/.exec(Co&&Co.keys&&Co.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Po=ri.toString,xg=Ro.call(Ye),Og=wt._,Tg=ys("^"+Ro.call(He).replace(d,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ao=cl?U.Buffer:n,ir=U.Symbol,Io=U.Uint8Array,Cl=Ao?Ao.allocUnsafe:n,Lo=xl(Ye.getPrototypeOf,Ye),Rl=Ye.create,Pl=ri.propertyIsEnumerable,Mo=To.splice,Al=ir?ir.isConcatSpreadable:n,Mi=ir?ir.iterator:n,Rr=ir?ir.toStringTag:n,Do=function(){try{var t=Mr(Ye,"defineProperty");return t({},"",{}),t}catch{}}(),Cg=U.clearTimeout!==wt.clearTimeout&&U.clearTimeout,Rg=te&&te.now!==wt.Date.now&&te.now,Pg=U.setTimeout!==wt.setTimeout&&U.setTimeout,ko=dt.ceil,No=dt.floor,ws=Ye.getOwnPropertySymbols,Ag=Ao?Ao.isBuffer:n,Il=U.isFinite,Ig=To.join,Lg=xl(Ye.keys,Ye),pt=dt.max,xt=dt.min,Mg=te.now,Dg=U.parseInt,Ll=dt.random,kg=To.reverse,bs=Mr(U,"DataView"),Di=Mr(U,"Map"),_s=Mr(U,"Promise"),ii=Mr(U,"Set"),ki=Mr(U,"WeakMap"),Ni=Mr(Ye,"create"),$o=ki&&new ki,oi={},Ng=Dr(bs),$g=Dr(Di),jg=Dr(_s),Fg=Dr(ii),Wg=Dr(ki),jo=ir?ir.prototype:n,$i=jo?jo.valueOf:n,Ml=jo?jo.toString:n;function g(t){if(ot(t)&&!xe(t)&&!(t instanceof De)){if(t instanceof sn)return t;if(He.call(t,"__wrapped__"))return kf(t)}return new sn(t)}var ai=function(){function t(){}return function(i){if(!tt(i))return{};if(Rl)return Rl(i);t.prototype=i;var s=new t;return t.prototype=n,s}}();function Fo(){}function sn(t,i){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!i,this.__index__=0,this.__values__=n}g.templateSettings={escape:Ri,evaluate:Or,interpolate:Jr,variable:"",imports:{_:g}},g.prototype=Fo.prototype,g.prototype.constructor=g,sn.prototype=ai(Fo.prototype),sn.prototype.constructor=sn;function De(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=X,this.__views__=[]}function Ug(){var t=new De(this.__wrapped__);return t.__actions__=jt(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=jt(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=jt(this.__views__),t}function Bg(){if(this.__filtered__){var t=new De(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function Hg(){var t=this.__wrapped__.value(),i=this.__dir__,s=xe(t),l=i<0,p=s?t.length:0,b=ty(0,p,this.__views__),E=b.start,C=b.end,L=C-E,H=l?C:E-1,z=this.__iteratees__,K=z.length,J=0,re=xt(L,this.__takeCount__);if(!s||!l&&p==L&&re==L)return rf(t,this.__actions__);var pe=[];e:for(;L--&&J<re;){H+=i;for(var Ce=-1,he=t[H];++Ce<K;){var Le=z[Ce],Ne=Le.iteratee,Jt=Le.type,Dt=Ne(he);if(Jt==ke)he=Dt;else if(!Dt){if(Jt==ue)continue e;break e}}pe[J++]=he}return pe}De.prototype=ai(Fo.prototype),De.prototype.constructor=De;function Pr(t){var i=-1,s=t==null?0:t.length;for(this.clear();++i<s;){var l=t[i];this.set(l[0],l[1])}}function zg(){this.__data__=Ni?Ni(null):{},this.size=0}function qg(t){var i=this.has(t)&&delete this.__data__[t];return this.size-=i?1:0,i}function Kg(t){var i=this.__data__;if(Ni){var s=i[t];return s===h?n:s}return He.call(i,t)?i[t]:n}function Gg(t){var i=this.__data__;return Ni?i[t]!==n:He.call(i,t)}function Yg(t,i){var s=this.__data__;return this.size+=this.has(t)?0:1,s[t]=Ni&&i===n?h:i,this}Pr.prototype.clear=zg,Pr.prototype.delete=qg,Pr.prototype.get=Kg,Pr.prototype.has=Gg,Pr.prototype.set=Yg;function Wn(t){var i=-1,s=t==null?0:t.length;for(this.clear();++i<s;){var l=t[i];this.set(l[0],l[1])}}function Xg(){this.__data__=[],this.size=0}function Vg(t){var i=this.__data__,s=Wo(i,t);if(s<0)return!1;var l=i.length-1;return s==l?i.pop():Mo.call(i,s,1),--this.size,!0}function Jg(t){var i=this.__data__,s=Wo(i,t);return s<0?n:i[s][1]}function Zg(t){return Wo(this.__data__,t)>-1}function Qg(t,i){var s=this.__data__,l=Wo(s,t);return l<0?(++this.size,s.push([t,i])):s[l][1]=i,this}Wn.prototype.clear=Xg,Wn.prototype.delete=Vg,Wn.prototype.get=Jg,Wn.prototype.has=Zg,Wn.prototype.set=Qg;function Un(t){var i=-1,s=t==null?0:t.length;for(this.clear();++i<s;){var l=t[i];this.set(l[0],l[1])}}function e0(){this.size=0,this.__data__={hash:new Pr,map:new(Di||Wn),string:new Pr}}function t0(t){var i=Zo(this,t).delete(t);return this.size-=i?1:0,i}function n0(t){return Zo(this,t).get(t)}function r0(t){return Zo(this,t).has(t)}function i0(t,i){var s=Zo(this,t),l=s.size;return s.set(t,i),this.size+=s.size==l?0:1,this}Un.prototype.clear=e0,Un.prototype.delete=t0,Un.prototype.get=n0,Un.prototype.has=r0,Un.prototype.set=i0;function Ar(t){var i=-1,s=t==null?0:t.length;for(this.__data__=new Un;++i<s;)this.add(t[i])}function o0(t){return this.__data__.set(t,h),this}function a0(t){return this.__data__.has(t)}Ar.prototype.add=Ar.prototype.push=o0,Ar.prototype.has=a0;function _n(t){var i=this.__data__=new Wn(t);this.size=i.size}function s0(){this.__data__=new Wn,this.size=0}function u0(t){var i=this.__data__,s=i.delete(t);return this.size=i.size,s}function c0(t){return this.__data__.get(t)}function l0(t){return this.__data__.has(t)}function f0(t,i){var s=this.__data__;if(s instanceof Wn){var l=s.__data__;if(!Di||l.length<a-1)return l.push([t,i]),this.size=++s.size,this;s=this.__data__=new Un(l)}return s.set(t,i),this.size=s.size,this}_n.prototype.clear=s0,_n.prototype.delete=u0,_n.prototype.get=c0,_n.prototype.has=l0,_n.prototype.set=f0;function Dl(t,i){var s=xe(t),l=!s&&kr(t),p=!s&&!l&&cr(t),b=!s&&!l&&!p&&li(t),E=s||l||p||b,C=E?vs(t.length,_g):[],L=C.length;for(var H in t)(i||He.call(t,H))&&!(E&&(H=="length"||p&&(H=="offset"||H=="parent")||b&&(H=="buffer"||H=="byteLength"||H=="byteOffset")||qn(H,L)))&&C.push(H);return C}function kl(t){var i=t.length;return i?t[Ls(0,i-1)]:n}function d0(t,i){return Qo(jt(t),Ir(i,0,t.length))}function p0(t){return Qo(jt(t))}function Ss(t,i,s){(s!==n&&!Sn(t[i],s)||s===n&&!(i in t))&&Bn(t,i,s)}function ji(t,i,s){var l=t[i];(!(He.call(t,i)&&Sn(l,s))||s===n&&!(i in t))&&Bn(t,i,s)}function Wo(t,i){for(var s=t.length;s--;)if(Sn(t[s][0],i))return s;return-1}function h0(t,i,s,l){return or(t,function(p,b,E){i(l,p,s(p),E)}),l}function Nl(t,i){return t&&In(i,mt(i),t)}function v0(t,i){return t&&In(i,Wt(i),t)}function Bn(t,i,s){i=="__proto__"&&Do?Do(t,i,{configurable:!0,enumerable:!0,value:s,writable:!0}):t[i]=s}function Es(t,i){for(var s=-1,l=i.length,p=j(l),b=t==null;++s<l;)p[s]=b?n:ru(t,i[s]);return p}function Ir(t,i,s){return t===t&&(s!==n&&(t=t<=s?t:s),i!==n&&(t=t>=i?t:i)),t}function un(t,i,s,l,p,b){var E,C=i&_,L=i&O,H=i&v;if(s&&(E=p?s(t,l,p,b):s(t)),E!==n)return E;if(!tt(t))return t;var z=xe(t);if(z){if(E=ry(t),!C)return jt(t,E)}else{var K=Ot(t),J=K==V||K==nt;if(cr(t))return sf(t,C);if(K==vt||K==le||J&&!p){if(E=L||J?{}:Tf(t),!C)return L?K0(t,v0(E,t)):q0(t,Nl(E,t))}else{if(!Xe[K])return p?t:{};E=iy(t,K,C)}}b||(b=new _n);var re=b.get(t);if(re)return re;b.set(t,E),td(t)?t.forEach(function(he){E.add(un(he,i,s,he,t,b))}):Qf(t)&&t.forEach(function(he,Le){E.set(Le,un(he,i,s,Le,t,b))});var pe=H?L?Hs:Bs:L?Wt:mt,Ce=z?n:pe(t);return on(Ce||t,function(he,Le){Ce&&(Le=he,he=t[Le]),ji(E,Le,un(he,i,s,Le,t,b))}),E}function m0(t){var i=mt(t);return function(s){return $l(s,t,i)}}function $l(t,i,s){var l=s.length;if(t==null)return!l;for(t=Ye(t);l--;){var p=s[l],b=i[p],E=t[p];if(E===n&&!(p in t)||!b(E))return!1}return!0}function jl(t,i,s){if(typeof t!="function")throw new an(c);return qi(function(){t.apply(n,s)},i)}function Fi(t,i,s,l){var p=-1,b=Eo,E=!0,C=t.length,L=[],H=i.length;if(!C)return L;s&&(i=et(i,Yt(s))),l?(b=cs,E=!1):i.length>=a&&(b=Li,E=!1,i=new Ar(i));e:for(;++p<C;){var z=t[p],K=s==null?z:s(z);if(z=l||z!==0?z:0,E&&K===K){for(var J=H;J--;)if(i[J]===K)continue e;L.push(z)}else b(i,K,l)||L.push(z)}return L}var or=df(An),Fl=df(Os,!0);function g0(t,i){var s=!0;return or(t,function(l,p,b){return s=!!i(l,p,b),s}),s}function Uo(t,i,s){for(var l=-1,p=t.length;++l<p;){var b=t[l],E=i(b);if(E!=null&&(C===n?E===E&&!Vt(E):s(E,C)))var C=E,L=b}return L}function y0(t,i,s,l){var p=t.length;for(s=Te(s),s<0&&(s=-s>p?0:p+s),l=l===n||l>p?p:Te(l),l<0&&(l+=p),l=s>l?0:rd(l);s<l;)t[s++]=i;return t}function Wl(t,i){var s=[];return or(t,function(l,p,b){i(l,p,b)&&s.push(l)}),s}function bt(t,i,s,l,p){var b=-1,E=t.length;for(s||(s=ay),p||(p=[]);++b<E;){var C=t[b];i>0&&s(C)?i>1?bt(C,i-1,s,l,p):nr(p,C):l||(p[p.length]=C)}return p}var xs=pf(),Ul=pf(!0);function An(t,i){return t&&xs(t,i,mt)}function Os(t,i){return t&&Ul(t,i,mt)}function Bo(t,i){return tr(i,function(s){return Kn(t[s])})}function Lr(t,i){i=sr(i,t);for(var s=0,l=i.length;t!=null&&s<l;)t=t[Ln(i[s++])];return s&&s==l?t:n}function Bl(t,i,s){var l=i(t);return xe(t)?l:nr(l,s(t))}function Lt(t){return t==null?t===n?mn:Pn:Rr&&Rr in Ye(t)?ey(t):py(t)}function Ts(t,i){return t>i}function w0(t,i){return t!=null&&He.call(t,i)}function b0(t,i){return t!=null&&i in Ye(t)}function _0(t,i,s){return t>=xt(i,s)&&t<pt(i,s)}function Cs(t,i,s){for(var l=s?cs:Eo,p=t[0].length,b=t.length,E=b,C=j(b),L=1/0,H=[];E--;){var z=t[E];E&&i&&(z=et(z,Yt(i))),L=xt(z.length,L),C[E]=!s&&(i||p>=120&&z.length>=120)?new Ar(E&&z):n}z=t[0];var K=-1,J=C[0];e:for(;++K<p&&H.length<L;){var re=z[K],pe=i?i(re):re;if(re=s||re!==0?re:0,!(J?Li(J,pe):l(H,pe,s))){for(E=b;--E;){var Ce=C[E];if(!(Ce?Li(Ce,pe):l(t[E],pe,s)))continue e}J&&J.push(pe),H.push(re)}}return H}function S0(t,i,s,l){return An(t,function(p,b,E){i(l,s(p),b,E)}),l}function Wi(t,i,s){i=sr(i,t),t=Af(t,i);var l=t==null?t:t[Ln(ln(i))];return l==null?n:Gt(l,t,s)}function Hl(t){return ot(t)&&Lt(t)==le}function E0(t){return ot(t)&&Lt(t)==nn}function x0(t){return ot(t)&&Lt(t)==ge}function Ui(t,i,s,l,p){return t===i?!0:t==null||i==null||!ot(t)&&!ot(i)?t!==t&&i!==i:O0(t,i,s,l,Ui,p)}function O0(t,i,s,l,p,b){var E=xe(t),C=xe(i),L=E?ae:Ot(t),H=C?ae:Ot(i);L=L==le?vt:L,H=H==le?vt:H;var z=L==vt,K=H==vt,J=L==H;if(J&&cr(t)){if(!cr(i))return!1;E=!0,z=!1}if(J&&!z)return b||(b=new _n),E||li(t)?Ef(t,i,s,l,p,b):Z0(t,i,L,s,l,p,b);if(!(s&S)){var re=z&&He.call(t,"__wrapped__"),pe=K&&He.call(i,"__wrapped__");if(re||pe){var Ce=re?t.value():t,he=pe?i.value():i;return b||(b=new _n),p(Ce,he,s,l,b)}}return J?(b||(b=new _n),Q0(t,i,s,l,p,b)):!1}function T0(t){return ot(t)&&Ot(t)==rt}function Rs(t,i,s,l){var p=s.length,b=p,E=!l;if(t==null)return!b;for(t=Ye(t);p--;){var C=s[p];if(E&&C[2]?C[1]!==t[C[0]]:!(C[0]in t))return!1}for(;++p<b;){C=s[p];var L=C[0],H=t[L],z=C[1];if(E&&C[2]){if(H===n&&!(L in t))return!1}else{var K=new _n;if(l)var J=l(H,z,L,t,i,K);if(!(J===n?Ui(z,H,S|w,l,K):J))return!1}}return!0}function zl(t){if(!tt(t)||uy(t))return!1;var i=Kn(t)?Tg:st;return i.test(Dr(t))}function C0(t){return ot(t)&&Lt(t)==Je}function R0(t){return ot(t)&&Ot(t)==Qe}function P0(t){return ot(t)&&oa(t.length)&&!!Ze[Lt(t)]}function ql(t){return typeof t=="function"?t:t==null?Ut:typeof t=="object"?xe(t)?Yl(t[0],t[1]):Gl(t):hd(t)}function Ps(t){if(!zi(t))return Lg(t);var i=[];for(var s in Ye(t))He.call(t,s)&&s!="constructor"&&i.push(s);return i}function A0(t){if(!tt(t))return dy(t);var i=zi(t),s=[];for(var l in t)l=="constructor"&&(i||!He.call(t,l))||s.push(l);return s}function As(t,i){return t<i}function Kl(t,i){var s=-1,l=Ft(t)?j(t.length):[];return or(t,function(p,b,E){l[++s]=i(p,b,E)}),l}function Gl(t){var i=qs(t);return i.length==1&&i[0][2]?Rf(i[0][0],i[0][1]):function(s){return s===t||Rs(s,t,i)}}function Yl(t,i){return Gs(t)&&Cf(i)?Rf(Ln(t),i):function(s){var l=ru(s,t);return l===n&&l===i?iu(s,t):Ui(i,l,S|w)}}function Ho(t,i,s,l,p){t!==i&&xs(i,function(b,E){if(p||(p=new _n),tt(b))I0(t,i,E,s,Ho,l,p);else{var C=l?l(Xs(t,E),b,E+"",t,i,p):n;C===n&&(C=b),Ss(t,E,C)}},Wt)}function I0(t,i,s,l,p,b,E){var C=Xs(t,s),L=Xs(i,s),H=E.get(L);if(H){Ss(t,s,H);return}var z=b?b(C,L,s+"",t,i,E):n,K=z===n;if(K){var J=xe(L),re=!J&&cr(L),pe=!J&&!re&&li(L);z=L,J||re||pe?xe(C)?z=C:ut(C)?z=jt(C):re?(K=!1,z=sf(L,!0)):pe?(K=!1,z=uf(L,!0)):z=[]:Ki(L)||kr(L)?(z=C,kr(C)?z=id(C):(!tt(C)||Kn(C))&&(z=Tf(L))):K=!1}K&&(E.set(L,z),p(z,L,l,b,E),E.delete(L)),Ss(t,s,z)}function Xl(t,i){var s=t.length;if(s)return i+=i<0?s:0,qn(i,s)?t[i]:n}function Vl(t,i,s){i.length?i=et(i,function(b){return xe(b)?function(E){return Lr(E,b.length===1?b[0]:b)}:b}):i=[Ut];var l=-1;i=et(i,Yt(de()));var p=Kl(t,function(b,E,C){var L=et(i,function(H){return H(b)});return{criteria:L,index:++l,value:b}});return ig(p,function(b,E){return z0(b,E,s)})}function L0(t,i){return Jl(t,i,function(s,l){return iu(t,l)})}function Jl(t,i,s){for(var l=-1,p=i.length,b={};++l<p;){var E=i[l],C=Lr(t,E);s(C,E)&&Bi(b,sr(E,t),C)}return b}function M0(t){return function(i){return Lr(i,t)}}function Is(t,i,s,l){var p=l?rg:Qr,b=-1,E=i.length,C=t;for(t===i&&(i=jt(i)),s&&(C=et(t,Yt(s)));++b<E;)for(var L=0,H=i[b],z=s?s(H):H;(L=p(C,z,L,l))>-1;)C!==t&&Mo.call(C,L,1),Mo.call(t,L,1);return t}function Zl(t,i){for(var s=t?i.length:0,l=s-1;s--;){var p=i[s];if(s==l||p!==b){var b=p;qn(p)?Mo.call(t,p,1):ks(t,p)}}return t}function Ls(t,i){return t+No(Ll()*(i-t+1))}function D0(t,i,s,l){for(var p=-1,b=pt(ko((i-t)/(s||1)),0),E=j(b);b--;)E[l?b:++p]=t,t+=s;return E}function Ms(t,i){var s="";if(!t||i<1||i>qe)return s;do i%2&&(s+=t),i=No(i/2),i&&(t+=t);while(i);return s}function Re(t,i){return Vs(Pf(t,i,Ut),t+"")}function k0(t){return kl(fi(t))}function N0(t,i){var s=fi(t);return Qo(s,Ir(i,0,s.length))}function Bi(t,i,s,l){if(!tt(t))return t;i=sr(i,t);for(var p=-1,b=i.length,E=b-1,C=t;C!=null&&++p<b;){var L=Ln(i[p]),H=s;if(L==="__proto__"||L==="constructor"||L==="prototype")return t;if(p!=E){var z=C[L];H=l?l(z,L,C):n,H===n&&(H=tt(z)?z:qn(i[p+1])?[]:{})}ji(C,L,H),C=C[L]}return t}var Ql=$o?function(t,i){return $o.set(t,i),t}:Ut,$0=Do?function(t,i){return Do(t,"toString",{configurable:!0,enumerable:!1,value:au(i),writable:!0})}:Ut;function j0(t){return Qo(fi(t))}function cn(t,i,s){var l=-1,p=t.length;i<0&&(i=-i>p?0:p+i),s=s>p?p:s,s<0&&(s+=p),p=i>s?0:s-i>>>0,i>>>=0;for(var b=j(p);++l<p;)b[l]=t[l+i];return b}function F0(t,i){var s;return or(t,function(l,p,b){return s=i(l,p,b),!s}),!!s}function zo(t,i,s){var l=0,p=t==null?l:t.length;if(typeof i=="number"&&i===i&&p<=me){for(;l<p;){var b=l+p>>>1,E=t[b];E!==null&&!Vt(E)&&(s?E<=i:E<i)?l=b+1:p=b}return p}return Ds(t,i,Ut,s)}function Ds(t,i,s,l){var p=0,b=t==null?0:t.length;if(b===0)return 0;i=s(i);for(var E=i!==i,C=i===null,L=Vt(i),H=i===n;p<b;){var z=No((p+b)/2),K=s(t[z]),J=K!==n,re=K===null,pe=K===K,Ce=Vt(K);if(E)var he=l||pe;else H?he=pe&&(l||J):C?he=pe&&J&&(l||!re):L?he=pe&&J&&!re&&(l||!Ce):re||Ce?he=!1:he=l?K<=i:K<i;he?p=z+1:b=z}return xt(b,ve)}function ef(t,i){for(var s=-1,l=t.length,p=0,b=[];++s<l;){var E=t[s],C=i?i(E):E;if(!s||!Sn(C,L)){var L=C;b[p++]=E===0?0:E}}return b}function tf(t){return typeof t=="number"?t:Vt(t)?G:+t}function Xt(t){if(typeof t=="string")return t;if(xe(t))return et(t,Xt)+"";if(Vt(t))return Ml?Ml.call(t):"";var i=t+"";return i=="0"&&1/t==-Ie?"-0":i}function ar(t,i,s){var l=-1,p=Eo,b=t.length,E=!0,C=[],L=C;if(s)E=!1,p=cs;else if(b>=a){var H=i?null:V0(t);if(H)return Oo(H);E=!1,p=Li,L=new Ar}else L=i?[]:C;e:for(;++l<b;){var z=t[l],K=i?i(z):z;if(z=s||z!==0?z:0,E&&K===K){for(var J=L.length;J--;)if(L[J]===K)continue e;i&&L.push(K),C.push(z)}else p(L,K,s)||(L!==C&&L.push(K),C.push(z))}return C}function ks(t,i){return i=sr(i,t),t=Af(t,i),t==null||delete t[Ln(ln(i))]}function nf(t,i,s,l){return Bi(t,i,s(Lr(t,i)),l)}function qo(t,i,s,l){for(var p=t.length,b=l?p:-1;(l?b--:++b<p)&&i(t[b],b,t););return s?cn(t,l?0:b,l?b+1:p):cn(t,l?b+1:0,l?p:b)}function rf(t,i){var s=t;return s instanceof De&&(s=s.value()),ls(i,function(l,p){return p.func.apply(p.thisArg,nr([l],p.args))},s)}function Ns(t,i,s){var l=t.length;if(l<2)return l?ar(t[0]):[];for(var p=-1,b=j(l);++p<l;)for(var E=t[p],C=-1;++C<l;)C!=p&&(b[p]=Fi(b[p]||E,t[C],i,s));return ar(bt(b,1),i,s)}function of(t,i,s){for(var l=-1,p=t.length,b=i.length,E={};++l<p;){var C=l<b?i[l]:n;s(E,t[l],C)}return E}function $s(t){return ut(t)?t:[]}function js(t){return typeof t=="function"?t:Ut}function sr(t,i){return xe(t)?t:Gs(t,i)?[t]:Df(We(t))}var W0=Re;function ur(t,i,s){var l=t.length;return s=s===n?l:s,!i&&s>=l?t:cn(t,i,s)}var af=Cg||function(t){return wt.clearTimeout(t)};function sf(t,i){if(i)return t.slice();var s=t.length,l=Cl?Cl(s):new t.constructor(s);return t.copy(l),l}function Fs(t){var i=new t.constructor(t.byteLength);return new Io(i).set(new Io(t)),i}function U0(t,i){var s=i?Fs(t.buffer):t.buffer;return new t.constructor(s,t.byteOffset,t.byteLength)}function B0(t){var i=new t.constructor(t.source,it.exec(t));return i.lastIndex=t.lastIndex,i}function H0(t){return $i?Ye($i.call(t)):{}}function uf(t,i){var s=i?Fs(t.buffer):t.buffer;return new t.constructor(s,t.byteOffset,t.length)}function cf(t,i){if(t!==i){var s=t!==n,l=t===null,p=t===t,b=Vt(t),E=i!==n,C=i===null,L=i===i,H=Vt(i);if(!C&&!H&&!b&&t>i||b&&E&&L&&!C&&!H||l&&E&&L||!s&&L||!p)return 1;if(!l&&!b&&!H&&t<i||H&&s&&p&&!l&&!b||C&&s&&p||!E&&p||!L)return-1}return 0}function z0(t,i,s){for(var l=-1,p=t.criteria,b=i.criteria,E=p.length,C=s.length;++l<E;){var L=cf(p[l],b[l]);if(L){if(l>=C)return L;var H=s[l];return L*(H=="desc"?-1:1)}}return t.index-i.index}function lf(t,i,s,l){for(var p=-1,b=t.length,E=s.length,C=-1,L=i.length,H=pt(b-E,0),z=j(L+H),K=!l;++C<L;)z[C]=i[C];for(;++p<E;)(K||p<b)&&(z[s[p]]=t[p]);for(;H--;)z[C++]=t[p++];return z}function ff(t,i,s,l){for(var p=-1,b=t.length,E=-1,C=s.length,L=-1,H=i.length,z=pt(b-C,0),K=j(z+H),J=!l;++p<z;)K[p]=t[p];for(var re=p;++L<H;)K[re+L]=i[L];for(;++E<C;)(J||p<b)&&(K[re+s[E]]=t[p++]);return K}function jt(t,i){var s=-1,l=t.length;for(i||(i=j(l));++s<l;)i[s]=t[s];return i}function In(t,i,s,l){var p=!s;s||(s={});for(var b=-1,E=i.length;++b<E;){var C=i[b],L=l?l(s[C],t[C],C,s,t):n;L===n&&(L=t[C]),p?Bn(s,C,L):ji(s,C,L)}return s}function q0(t,i){return In(t,Ks(t),i)}function K0(t,i){return In(t,xf(t),i)}function Ko(t,i){return function(s,l){var p=xe(s)?Jm:h0,b=i?i():{};return p(s,t,de(l,2),b)}}function si(t){return Re(function(i,s){var l=-1,p=s.length,b=p>1?s[p-1]:n,E=p>2?s[2]:n;for(b=t.length>3&&typeof b=="function"?(p--,b):n,E&&Mt(s[0],s[1],E)&&(b=p<3?n:b,p=1),i=Ye(i);++l<p;){var C=s[l];C&&t(i,C,l,b)}return i})}function df(t,i){return function(s,l){if(s==null)return s;if(!Ft(s))return t(s,l);for(var p=s.length,b=i?p:-1,E=Ye(s);(i?b--:++b<p)&&l(E[b],b,E)!==!1;);return s}}function pf(t){return function(i,s,l){for(var p=-1,b=Ye(i),E=l(i),C=E.length;C--;){var L=E[t?C:++p];if(s(b[L],L,b)===!1)break}return i}}function G0(t,i,s){var l=i&T,p=Hi(t);function b(){var E=this&&this!==wt&&this instanceof b?p:t;return E.apply(l?s:this,arguments)}return b}function hf(t){return function(i){i=We(i);var s=ei(i)?bn(i):n,l=s?s[0]:i.charAt(0),p=s?ur(s,1).join(""):i.slice(1);return l[t]()+p}}function ui(t){return function(i){return ls(dd(fd(i).replace($m,"")),t,"")}}function Hi(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=ai(t.prototype),l=t.apply(s,i);return tt(l)?l:s}}function Y0(t,i,s){var l=Hi(t);function p(){for(var b=arguments.length,E=j(b),C=b,L=ci(p);C--;)E[C]=arguments[C];var H=b<3&&E[0]!==L&&E[b-1]!==L?[]:rr(E,L);if(b-=H.length,b<s)return wf(t,i,Go,p.placeholder,n,E,H,n,n,s-b);var z=this&&this!==wt&&this instanceof p?l:t;return Gt(z,this,E)}return p}function vf(t){return function(i,s,l){var p=Ye(i);if(!Ft(i)){var b=de(s,3);i=mt(i),s=function(C){return b(p[C],C,p)}}var E=t(i,s,l);return E>-1?p[b?i[E]:E]:n}}function mf(t){return zn(function(i){var s=i.length,l=s,p=sn.prototype.thru;for(t&&i.reverse();l--;){var b=i[l];if(typeof b!="function")throw new an(c);if(p&&!E&&Jo(b)=="wrapper")var E=new sn([],!0)}for(l=E?l:s;++l<s;){b=i[l];var C=Jo(b),L=C=="wrapper"?zs(b):n;L&&Ys(L[0])&&L[1]==(F|R|x|$)&&!L[4].length&&L[9]==1?E=E[Jo(L[0])].apply(E,L[3]):E=b.length==1&&Ys(b)?E[C]():E.thru(b)}return function(){var H=arguments,z=H[0];if(E&&H.length==1&&xe(z))return E.plant(z).value();for(var K=0,J=s?i[K].apply(this,H):z;++K<s;)J=i[K].call(this,J);return J}})}function Go(t,i,s,l,p,b,E,C,L,H){var z=i&F,K=i&T,J=i&D,re=i&(R|k),pe=i&Z,Ce=J?n:Hi(t);function he(){for(var Le=arguments.length,Ne=j(Le),Jt=Le;Jt--;)Ne[Jt]=arguments[Jt];if(re)var Dt=ci(he),Zt=ag(Ne,Dt);if(l&&(Ne=lf(Ne,l,p,re)),b&&(Ne=ff(Ne,b,E,re)),Le-=Zt,re&&Le<H){var ct=rr(Ne,Dt);return wf(t,i,Go,he.placeholder,s,Ne,ct,C,L,H-Le)}var En=K?s:this,Yn=J?En[t]:t;return Le=Ne.length,C?Ne=hy(Ne,C):pe&&Le>1&&Ne.reverse(),z&&L<Le&&(Ne.length=L),this&&this!==wt&&this instanceof he&&(Yn=Ce||Hi(Yn)),Yn.apply(En,Ne)}return he}function gf(t,i){return function(s,l){return S0(s,t,i(l),{})}}function Yo(t,i){return function(s,l){var p;if(s===n&&l===n)return i;if(s!==n&&(p=s),l!==n){if(p===n)return l;typeof s=="string"||typeof l=="string"?(s=Xt(s),l=Xt(l)):(s=tf(s),l=tf(l)),p=t(s,l)}return p}}function Ws(t){return zn(function(i){return i=et(i,Yt(de())),Re(function(s){var l=this;return t(i,function(p){return Gt(p,l,s)})})})}function Xo(t,i){i=i===n?" ":Xt(i);var s=i.length;if(s<2)return s?Ms(i,t):i;var l=Ms(i,ko(t/ti(i)));return ei(i)?ur(bn(l),0,t).join(""):l.slice(0,t)}function X0(t,i,s,l){var p=i&T,b=Hi(t);function E(){for(var C=-1,L=arguments.length,H=-1,z=l.length,K=j(z+L),J=this&&this!==wt&&this instanceof E?b:t;++H<z;)K[H]=l[H];for(;L--;)K[H++]=arguments[++C];return Gt(J,p?s:this,K)}return E}function yf(t){return function(i,s,l){return l&&typeof l!="number"&&Mt(i,s,l)&&(s=l=n),i=Gn(i),s===n?(s=i,i=0):s=Gn(s),l=l===n?i<s?1:-1:Gn(l),D0(i,s,l,t)}}function Vo(t){return function(i,s){return typeof i=="string"&&typeof s=="string"||(i=fn(i),s=fn(s)),t(i,s)}}function wf(t,i,s,l,p,b,E,C,L,H){var z=i&R,K=z?E:n,J=z?n:E,re=z?b:n,pe=z?n:b;i|=z?x:W,i&=~(z?W:x),i&M||(i&=~(T|D));var Ce=[t,i,p,re,K,pe,J,C,L,H],he=s.apply(n,Ce);return Ys(t)&&If(he,Ce),he.placeholder=l,Lf(he,t,i)}function Us(t){var i=dt[t];return function(s,l){if(s=fn(s),l=l==null?0:xt(Te(l),292),l&&Il(s)){var p=(We(s)+"e").split("e"),b=i(p[0]+"e"+(+p[1]+l));return p=(We(b)+"e").split("e"),+(p[0]+"e"+(+p[1]-l))}return i(s)}}var V0=ii&&1/Oo(new ii([,-0]))[1]==Ie?function(t){return new ii(t)}:cu;function bf(t){return function(i){var s=Ot(i);return s==rt?gs(i):s==Qe?pg(i):og(i,t(i))}}function Hn(t,i,s,l,p,b,E,C){var L=i&D;if(!L&&typeof t!="function")throw new an(c);var H=l?l.length:0;if(H||(i&=~(x|W),l=p=n),E=E===n?E:pt(Te(E),0),C=C===n?C:Te(C),H-=p?p.length:0,i&W){var z=l,K=p;l=p=n}var J=L?n:zs(t),re=[t,i,s,l,p,z,K,b,E,C];if(J&&fy(re,J),t=re[0],i=re[1],s=re[2],l=re[3],p=re[4],C=re[9]=re[9]===n?L?0:t.length:pt(re[9]-H,0),!C&&i&(R|k)&&(i&=~(R|k)),!i||i==T)var pe=G0(t,i,s);else i==R||i==k?pe=Y0(t,i,C):(i==x||i==(T|x))&&!p.length?pe=X0(t,i,s,l):pe=Go.apply(n,re);var Ce=J?Ql:If;return Lf(Ce(pe,re),t,i)}function _f(t,i,s,l){return t===n||Sn(t,ri[s])&&!He.call(l,s)?i:t}function Sf(t,i,s,l,p,b){return tt(t)&&tt(i)&&(b.set(i,t),Ho(t,i,n,Sf,b),b.delete(i)),t}function J0(t){return Ki(t)?n:t}function Ef(t,i,s,l,p,b){var E=s&S,C=t.length,L=i.length;if(C!=L&&!(E&&L>C))return!1;var H=b.get(t),z=b.get(i);if(H&&z)return H==i&&z==t;var K=-1,J=!0,re=s&w?new Ar:n;for(b.set(t,i),b.set(i,t);++K<C;){var pe=t[K],Ce=i[K];if(l)var he=E?l(Ce,pe,K,i,t,b):l(pe,Ce,K,t,i,b);if(he!==n){if(he)continue;J=!1;break}if(re){if(!fs(i,function(Le,Ne){if(!Li(re,Ne)&&(pe===Le||p(pe,Le,s,l,b)))return re.push(Ne)})){J=!1;break}}else if(!(pe===Ce||p(pe,Ce,s,l,b))){J=!1;break}}return b.delete(t),b.delete(i),J}function Z0(t,i,s,l,p,b,E){switch(s){case Kt:if(t.byteLength!=i.byteLength||t.byteOffset!=i.byteOffset)return!1;t=t.buffer,i=i.buffer;case nn:return!(t.byteLength!=i.byteLength||!b(new Io(t),new Io(i)));case se:case ge:case lt:return Sn(+t,+i);case Ge:return t.name==i.name&&t.message==i.message;case Je:case tn:return t==i+"";case rt:var C=gs;case Qe:var L=l&S;if(C||(C=Oo),t.size!=i.size&&!L)return!1;var H=E.get(t);if(H)return H==i;l|=w,E.set(t,i);var z=Ef(C(t),C(i),l,p,b,E);return E.delete(t),z;case qt:if($i)return $i.call(t)==$i.call(i)}return!1}function Q0(t,i,s,l,p,b){var E=s&S,C=Bs(t),L=C.length,H=Bs(i),z=H.length;if(L!=z&&!E)return!1;for(var K=L;K--;){var J=C[K];if(!(E?J in i:He.call(i,J)))return!1}var re=b.get(t),pe=b.get(i);if(re&&pe)return re==i&&pe==t;var Ce=!0;b.set(t,i),b.set(i,t);for(var he=E;++K<L;){J=C[K];var Le=t[J],Ne=i[J];if(l)var Jt=E?l(Ne,Le,J,i,t,b):l(Le,Ne,J,t,i,b);if(!(Jt===n?Le===Ne||p(Le,Ne,s,l,b):Jt)){Ce=!1;break}he||(he=J=="constructor")}if(Ce&&!he){var Dt=t.constructor,Zt=i.constructor;Dt!=Zt&&"constructor"in t&&"constructor"in i&&!(typeof Dt=="function"&&Dt instanceof Dt&&typeof Zt=="function"&&Zt instanceof Zt)&&(Ce=!1)}return b.delete(t),b.delete(i),Ce}function zn(t){return Vs(Pf(t,n,jf),t+"")}function Bs(t){return Bl(t,mt,Ks)}function Hs(t){return Bl(t,Wt,xf)}var zs=$o?function(t){return $o.get(t)}:cu;function Jo(t){for(var i=t.name+"",s=oi[i],l=He.call(oi,i)?s.length:0;l--;){var p=s[l],b=p.func;if(b==null||b==t)return p.name}return i}function ci(t){var i=He.call(g,"placeholder")?g:t;return i.placeholder}function de(){var t=g.iteratee||su;return t=t===su?ql:t,arguments.length?t(arguments[0],arguments[1]):t}function Zo(t,i){var s=t.__data__;return sy(i)?s[typeof i=="string"?"string":"hash"]:s.map}function qs(t){for(var i=mt(t),s=i.length;s--;){var l=i[s],p=t[l];i[s]=[l,p,Cf(p)]}return i}function Mr(t,i){var s=lg(t,i);return zl(s)?s:n}function ey(t){var i=He.call(t,Rr),s=t[Rr];try{t[Rr]=n;var l=!0}catch{}var p=Po.call(t);return l&&(i?t[Rr]=s:delete t[Rr]),p}var Ks=ws?function(t){return t==null?[]:(t=Ye(t),tr(ws(t),function(i){return Pl.call(t,i)}))}:lu,xf=ws?function(t){for(var i=[];t;)nr(i,Ks(t)),t=Lo(t);return i}:lu,Ot=Lt;(bs&&Ot(new bs(new ArrayBuffer(1)))!=Kt||Di&&Ot(new Di)!=rt||_s&&Ot(_s.resolve())!=$t||ii&&Ot(new ii)!=Qe||ki&&Ot(new ki)!=Et)&&(Ot=function(t){var i=Lt(t),s=i==vt?t.constructor:n,l=s?Dr(s):"";if(l)switch(l){case Ng:return Kt;case $g:return rt;case jg:return $t;case Fg:return Qe;case Wg:return Et}return i});function ty(t,i,s){for(var l=-1,p=s.length;++l<p;){var b=s[l],E=b.size;switch(b.type){case"drop":t+=E;break;case"dropRight":i-=E;break;case"take":i=xt(i,t+E);break;case"takeRight":t=pt(t,i-E);break}}return{start:t,end:i}}function ny(t){var i=t.match(oe);return i?i[1].split(ee):[]}function Of(t,i,s){i=sr(i,t);for(var l=-1,p=i.length,b=!1;++l<p;){var E=Ln(i[l]);if(!(b=t!=null&&s(t,E)))break;t=t[E]}return b||++l!=p?b:(p=t==null?0:t.length,!!p&&oa(p)&&qn(E,p)&&(xe(t)||kr(t)))}function ry(t){var i=t.length,s=new t.constructor(i);return i&&typeof t[0]=="string"&&He.call(t,"index")&&(s.index=t.index,s.input=t.input),s}function Tf(t){return typeof t.constructor=="function"&&!zi(t)?ai(Lo(t)):{}}function iy(t,i,s){var l=t.constructor;switch(i){case nn:return Fs(t);case se:case ge:return new l(+t);case Kt:return U0(t,s);case yr:case wr:case br:case _r:case gn:case Fn:case yt:case yn:case wn:return uf(t,s);case rt:return new l;case lt:case tn:return new l(t);case Je:return B0(t);case Qe:return new l;case qt:return H0(t)}}function oy(t,i){var s=i.length;if(!s)return t;var l=s-1;return i[l]=(s>1?"& ":"")+i[l],i=i.join(s>2?", ":" "),t.replace(ie,`{
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__",m=500,g="__lodash_placeholder__",_=1,O=2,v=4,S=1,y=2,E=1,D=2,I=4,C=8,N=16,T=32,U=64,B=128,j=256,J=512,ee=30,ge="...",Ce=800,_e=16,se=1,Le=2,be=3,xe=1/0,We=9007199254740991,st=17976931348623157e292,K=0/0,V=4294967295,de=V-1,ie=V>>>1,ce=[["ary",B],["bind",E],["bindKey",D],["curry",C],["curryRight",N],["flip",J],["partial",T],["partialRight",U],["rearg",j]],fe="[object Arguments]",ue="[object Array]",pe="[object AsyncFunction]",le="[object Boolean]",ye="[object Date]",we="[object DOMException]",Ge="[object Error]",X="[object Function]",nt="[object GeneratorFunction]",rt="[object Map]",ft="[object Number]",An="[object Null]",mt="[object Object]",Wt="[object Promise]",Sr="[object Proxy]",Je="[object RegExp]",Qe="[object Set]",rn="[object String]",Gt="[object Symbol]",gn="[object Undefined]",Ot="[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]",Bn="[object Uint8Array]",wt="[object Uint8ClampedArray]",bn="[object Uint16Array]",wn="[object Uint32Array]",Cr=/\b__p \+= '';/g,ki=/\b(__p \+=) '' \+/g,Rr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ii=/&(?:amp|lt|gt|quot|#39);/g,ir=/[&<>"']/g,Pr=RegExp(ii.source),Ni=RegExp(ir.source),$i=/<%-([\s\S]+?)%>/g,Ar=/<%([\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,it=/\w*$/,kt=/^[-+]0x[0-9a-f]+$/i,Ir=/^0b[01]+$/i,ut=/^\[object .+?Constructor\]$/,Km=/^0o[0-7]+$/i,Gm=/^(?:0|[1-9]\d*)$/,Ym=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Io=/($^)/,Vm=/['\n\r\u2028\u2029\\]/g,Lo="\\ud800-\\udfff",Xm="\\u0300-\\u036f",Jm="\\ufe20-\\ufe2f",Zm="\\u20d0-\\u20ff",vc=Xm+Jm+Zm,mc="\\u2700-\\u27bf",gc="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",yc="A-Z\\xc0-\\xd6\\xd8-\\xde",bc="\\ufe0e\\ufe0f",wc=Qm+eg+tg+ng,ms="['’]",rg="["+Lo+"]",_c="["+wc+"]",Mo="["+vc+"]",Sc="\\d+",ig="["+mc+"]",Ec="["+gc+"]",xc="[^"+Lo+wc+Sc+mc+gc+yc+"]",gs="\\ud83c[\\udffb-\\udfff]",og="(?:"+Mo+"|"+gs+")",Oc="[^"+Lo+"]",ys="(?:\\ud83c[\\udde6-\\uddff]){2}",bs="[\\ud800-\\udbff][\\udc00-\\udfff]",ai="["+yc+"]",Tc="\\u200d",Cc="(?:"+Ec+"|"+xc+")",ag="(?:"+ai+"|"+xc+")",Rc="(?:"+ms+"(?:d|ll|m|re|s|t|ve))?",Pc="(?:"+ms+"(?:D|LL|M|RE|S|T|VE))?",Ac=og+"?",Ic="["+bc+"]?",sg="(?:"+Tc+"(?:"+[Oc,ys,bs].join("|")+")"+Ic+Ac+")*",ug="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",lg="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Lc=Ic+Ac+sg,cg="(?:"+[ig,ys,bs].join("|")+")"+Lc,fg="(?:"+[Oc+Mo+"?",Mo,ys,bs,rg].join("|")+")",dg=RegExp(ms,"g"),pg=RegExp(Mo,"g"),ws=RegExp(gs+"(?="+gs+")|"+fg+Lc,"g"),hg=RegExp([ai+"?"+Ec+"+"+Rc+"(?="+[_c,ai,"$"].join("|")+")",ag+"+"+Pc+"(?="+[_c,ai+Cc,"$"].join("|")+")",ai+"?"+Cc+"+"+Rc,ai+"+"+Pc,lg,ug,Sc,cg].join("|"),"g"),vg=RegExp("["+Tc+Lo+vc+bc+"]"),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,Ze={};Ze[Er]=Ze[xr]=Ze[Or]=Ze[Tr]=Ze[yn]=Ze[Bn]=Ze[wt]=Ze[bn]=Ze[wn]=!0,Ze[fe]=Ze[ue]=Ze[on]=Ze[le]=Ze[Yt]=Ze[ye]=Ze[Ge]=Ze[X]=Ze[rt]=Ze[ft]=Ze[mt]=Ze[Je]=Ze[Qe]=Ze[rn]=Ze[Ot]=!1;var Ve={};Ve[fe]=Ve[ue]=Ve[on]=Ve[Yt]=Ve[le]=Ve[ye]=Ve[Er]=Ve[xr]=Ve[Or]=Ve[Tr]=Ve[yn]=Ve[rt]=Ve[ft]=Ve[mt]=Ve[Je]=Ve[Qe]=Ve[rn]=Ve[Gt]=Ve[Bn]=Ve[wt]=Ve[bn]=Ve[wn]=!0,Ve[Ge]=Ve[X]=Ve[Ot]=!1;var bg={À:"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"},wg={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},_g={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Sg={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Eg=parseFloat,xg=parseInt,Mc=typeof zr=="object"&&zr&&zr.Object===Object&&zr,Og=typeof self=="object"&&self&&self.Object===Object&&self,_t=Mc||Og||Function("return this")(),_s=r&&!r.nodeType&&r,Lr=_s&&!0&&e&&!e.nodeType&&e,Dc=Lr&&Lr.exports===_s,Ss=Dc&&Mc.process,an=function(){try{var A=Lr&&Lr.require&&Lr.require("util").types;return A||Ss&&Ss.binding&&Ss.binding("util")}catch{}}(),kc=an&&an.isArrayBuffer,Nc=an&&an.isDate,$c=an&&an.isMap,jc=an&&an.isRegExp,Fc=an&&an.isSet,Wc=an&&an.isTypedArray;function Vt(A,H,W){switch(W.length){case 0:return A.call(H);case 1:return A.call(H,W[0]);case 2:return A.call(H,W[0],W[1]);case 3:return A.call(H,W[0],W[1],W[2])}return A.apply(H,W)}function Tg(A,H,W,ne){for(var Ee=-1,Fe=A==null?0:A.length;++Ee<Fe;){var pt=A[Ee];H(ne,pt,W(pt),A)}return ne}function sn(A,H){for(var W=-1,ne=A==null?0:A.length;++W<ne&&H(A[W],W,A)!==!1;);return A}function Cg(A,H){for(var W=A==null?0:A.length;W--&&H(A[W],W,A)!==!1;);return A}function Uc(A,H){for(var W=-1,ne=A==null?0:A.length;++W<ne;)if(!H(A[W],W,A))return!1;return!0}function or(A,H){for(var W=-1,ne=A==null?0:A.length,Ee=0,Fe=[];++W<ne;){var pt=A[W];H(pt,W,A)&&(Fe[Ee++]=pt)}return Fe}function Do(A,H){var W=A==null?0:A.length;return!!W&&si(A,H,0)>-1}function Es(A,H,W){for(var ne=-1,Ee=A==null?0:A.length;++ne<Ee;)if(W(H,A[ne]))return!0;return!1}function et(A,H){for(var W=-1,ne=A==null?0:A.length,Ee=Array(ne);++W<ne;)Ee[W]=H(A[W],W,A);return Ee}function ar(A,H){for(var W=-1,ne=H.length,Ee=A.length;++W<ne;)A[Ee+W]=H[W];return A}function xs(A,H,W,ne){var Ee=-1,Fe=A==null?0:A.length;for(ne&&Fe&&(W=A[++Ee]);++Ee<Fe;)W=H(W,A[Ee],Ee,A);return W}function Rg(A,H,W,ne){var Ee=A==null?0:A.length;for(ne&&Ee&&(W=A[--Ee]);Ee--;)W=H(W,A[Ee],Ee,A);return W}function Os(A,H){for(var W=-1,ne=A==null?0:A.length;++W<ne;)if(H(A[W],W,A))return!0;return!1}var Pg=Ts("length");function Ag(A){return A.split("")}function Ig(A){return A.match(Q)||[]}function Bc(A,H,W){var ne;return W(A,function(Ee,Fe,pt){if(H(Ee,Fe,pt))return ne=Fe,!1}),ne}function ko(A,H,W,ne){for(var Ee=A.length,Fe=W+(ne?1:-1);ne?Fe--:++Fe<Ee;)if(H(A[Fe],Fe,A))return Fe;return-1}function si(A,H,W){return H===H?Hg(A,H,W):ko(A,Hc,W)}function Lg(A,H,W,ne){for(var Ee=W-1,Fe=A.length;++Ee<Fe;)if(ne(A[Ee],H))return Ee;return-1}function Hc(A){return A!==A}function zc(A,H){var W=A==null?0:A.length;return W?Rs(A,H)/W:K}function Ts(A){return function(H){return H==null?n:H[A]}}function Cs(A){return function(H){return A==null?n:A[H]}}function qc(A,H,W,ne,Ee){return Ee(A,function(Fe,pt,Ye){W=ne?(ne=!1,Fe):H(W,Fe,pt,Ye)}),W}function Mg(A,H){var W=A.length;for(A.sort(H);W--;)A[W]=A[W].value;return A}function Rs(A,H){for(var W,ne=-1,Ee=A.length;++ne<Ee;){var Fe=H(A[ne]);Fe!==n&&(W=W===n?Fe:W+Fe)}return W}function Ps(A,H){for(var W=-1,ne=Array(A);++W<A;)ne[W]=H(W);return ne}function Dg(A,H){return et(H,function(W){return[W,A[W]]})}function Kc(A){return A&&A.slice(0,Xc(A)+1).replace(F,"")}function Xt(A){return function(H){return A(H)}}function As(A,H){return et(H,function(W){return A[W]})}function Ui(A,H){return A.has(H)}function Gc(A,H){for(var W=-1,ne=A.length;++W<ne&&si(H,A[W],0)>-1;);return W}function Yc(A,H){for(var W=A.length;W--&&si(H,A[W],0)>-1;);return W}function kg(A,H){for(var W=A.length,ne=0;W--;)A[W]===H&&++ne;return ne}var Ng=Cs(bg),$g=Cs(wg);function jg(A){return"\\"+Sg[A]}function Fg(A,H){return A==null?n:A[H]}function ui(A){return vg.test(A)}function Wg(A){return mg.test(A)}function Ug(A){for(var H,W=[];!(H=A.next()).done;)W.push(H.value);return W}function Is(A){var H=-1,W=Array(A.size);return A.forEach(function(ne,Ee){W[++H]=[Ee,ne]}),W}function Vc(A,H){return function(W){return A(H(W))}}function sr(A,H){for(var W=-1,ne=A.length,Ee=0,Fe=[];++W<ne;){var pt=A[W];(pt===H||pt===g)&&(A[W]=g,Fe[Ee++]=W)}return Fe}function No(A){var H=-1,W=Array(A.size);return A.forEach(function(ne){W[++H]=ne}),W}function Bg(A){var H=-1,W=Array(A.size);return A.forEach(function(ne){W[++H]=[ne,ne]}),W}function Hg(A,H,W){for(var ne=W-1,Ee=A.length;++ne<Ee;)if(A[ne]===H)return ne;return-1}function zg(A,H,W){for(var ne=W+1;ne--;)if(A[ne]===H)return ne;return ne}function li(A){return ui(A)?Kg(A):Pg(A)}function _n(A){return ui(A)?Gg(A):Ag(A)}function Xc(A){for(var H=A.length;H--&&Y.test(A.charAt(H)););return H}var qg=Cs(_g);function Kg(A){for(var H=ws.lastIndex=0;ws.test(A);)++H;return H}function Gg(A){return A.match(ws)||[]}function Yg(A){return A.match(hg)||[]}var Vg=function A(H){H=H==null?_t:ci.defaults(_t.Object(),H,ci.pick(_t,gg));var W=H.Array,ne=H.Date,Ee=H.Error,Fe=H.Function,pt=H.Math,Ye=H.Object,Ls=H.RegExp,Xg=H.String,un=H.TypeError,$o=W.prototype,Jg=Fe.prototype,fi=Ye.prototype,jo=H["__core-js_shared__"],Fo=Jg.toString,ze=fi.hasOwnProperty,Zg=0,Jc=function(){var t=/[^.]+$/.exec(jo&&jo.keys&&jo.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Wo=fi.toString,Qg=Fo.call(Ye),e0=_t._,t0=Ls("^"+Fo.call(ze).replace(p,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Uo=Dc?H.Buffer:n,ur=H.Symbol,Bo=H.Uint8Array,Zc=Uo?Uo.allocUnsafe:n,Ho=Vc(Ye.getPrototypeOf,Ye),Qc=Ye.create,ef=fi.propertyIsEnumerable,zo=$o.splice,tf=ur?ur.isConcatSpreadable:n,Bi=ur?ur.iterator:n,Mr=ur?ur.toStringTag:n,qo=function(){try{var t=jr(Ye,"defineProperty");return t({},"",{}),t}catch{}}(),n0=H.clearTimeout!==_t.clearTimeout&&H.clearTimeout,r0=ne&&ne.now!==_t.Date.now&&ne.now,i0=H.setTimeout!==_t.setTimeout&&H.setTimeout,Ko=pt.ceil,Go=pt.floor,Ms=Ye.getOwnPropertySymbols,o0=Uo?Uo.isBuffer:n,nf=H.isFinite,a0=$o.join,s0=Vc(Ye.keys,Ye),ht=pt.max,Tt=pt.min,u0=ne.now,l0=H.parseInt,rf=pt.random,c0=$o.reverse,Ds=jr(H,"DataView"),Hi=jr(H,"Map"),ks=jr(H,"Promise"),di=jr(H,"Set"),zi=jr(H,"WeakMap"),qi=jr(Ye,"create"),Yo=zi&&new zi,pi={},f0=Fr(Ds),d0=Fr(Hi),p0=Fr(ks),h0=Fr(di),v0=Fr(zi),Vo=ur?ur.prototype:n,Ki=Vo?Vo.valueOf:n,of=Vo?Vo.toString:n;function b(t){if(ot(t)&&!Te(t)&&!(t instanceof ke)){if(t instanceof ln)return t;if(ze.call(t,"__wrapped__"))return ad(t)}return new ln(t)}var hi=function(){function t(){}return function(i){if(!tt(i))return{};if(Qc)return Qc(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}b.templateSettings={escape:$i,evaluate:Ar,interpolate:oi,variable:"",imports:{_:b}},b.prototype=Xo.prototype,b.prototype.constructor=b,ln.prototype=hi(Xo.prototype),ln.prototype.constructor=ln;function ke(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=V,this.__views__=[]}function m0(){var t=new ke(this.__wrapped__);return t.__actions__=Ut(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ut(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ut(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,w=Ay(0,h,this.__views__),x=w.start,R=w.end,M=R-x,z=c?R:x-1,q=this.__iteratees__,G=q.length,Z=0,re=Tt(M,this.__takeCount__);if(!s||!c&&h==M&&re==M)return Pf(t,this.__actions__);var ve=[];e:for(;M--&&Z<re;){z+=i;for(var Pe=-1,me=t[z];++Pe<G;){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=hi(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 b0(){this.__data__=qi?qi(null):{},this.size=0}function w0(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}Dr.prototype.clear=b0,Dr.prototype.delete=w0,Dr.prototype.get=_0,Dr.prototype.has=S0,Dr.prototype.set=E0;function Hn(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=Jo(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=Jo(i,t);return s<0?n:i[s][1]}function C0(t){return Jo(this.__data__,t)>-1}function R0(t,i){var s=this.__data__,c=Jo(s,t);return c<0?(++this.size,s.push([t,i])):s[c][1]=i,this}Hn.prototype.clear=x0,Hn.prototype.delete=O0,Hn.prototype.get=T0,Hn.prototype.has=C0,Hn.prototype.set=R0;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 P0(){this.size=0,this.__data__={hash:new Dr,map:new(Hi||Hn),string:new Dr}}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}zn.prototype.clear=P0,zn.prototype.delete=A0,zn.prototype.get=I0,zn.prototype.has=L0,zn.prototype.set=M0;function kr(t){var i=-1,s=t==null?0:t.length;for(this.__data__=new zn;++i<s;)this.add(t[i])}function D0(t){return this.__data__.set(t,d),this}function k0(t){return this.__data__.has(t)}kr.prototype.add=kr.prototype.push=D0,kr.prototype.has=k0;function Sn(t){var i=this.__data__=new Hn(t);this.size=i.size}function N0(){this.__data__=new Hn,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 Hn){var c=s.__data__;if(!Hi||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=N0,Sn.prototype.delete=$0,Sn.prototype.get=j0,Sn.prototype.has=F0,Sn.prototype.set=W0;function af(t,i){var s=Te(t),c=!s&&Wr(t),h=!s&&!c&&pr(t),w=!s&&!c&&!h&&yi(t),x=s||c||h||w,R=x?Ps(t.length,Xg):[],M=R.length;for(var z in t)(i||ze.call(t,z))&&!(x&&(z=="length"||h&&(z=="offset"||z=="parent")||w&&(z=="buffer"||z=="byteLength"||z=="byteOffset")||Yn(z,M)))&&R.push(z);return R}function sf(t){var i=t.length;return i?t[Ks(0,i-1)]:n}function U0(t,i){return ca(Ut(t),Nr(i,0,t.length))}function B0(t){return ca(Ut(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];(!(ze.call(t,i)&&En(c,s))||s===n&&!(i in t))&&qn(t,i,s)}function Jo(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,w,x){i(c,h,s(h),x)}),c}function uf(t,i){return t&&Ln(i,gt(i),t)}function z0(t,i){return t&&Ln(i,Ht(i),t)}function qn(t,i,s){i=="__proto__"&&qo?qo(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),w=t==null;++s<c;)h[s]=w?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,w){var x,R=i&_,M=i&O,z=i&v;if(s&&(x=h?s(t,c,h,w):s(t)),x!==n)return x;if(!tt(t))return t;var q=Te(t);if(q){if(x=Ly(t),!R)return Ut(t,x)}else{var G=Ct(t),Z=G==X||G==nt;if(pr(t))return Lf(t,R);if(G==mt||G==fe||Z&&!h){if(x=M||Z?{}:Jf(t),!R)return M?_y(t,z0(x,t)):wy(t,uf(x,t))}else{if(!Ve[G])return h?t:{};x=My(t,G,R)}}w||(w=new Sn);var re=w.get(t);if(re)return re;w.set(t,x),Td(t)?t.forEach(function(me){x.add(cn(me,i,s,me,t,w))}):xd(t)&&t.forEach(function(me,De){x.set(De,cn(me,i,s,De,t,w))});var ve=z?M?ru:nu:M?Ht:gt,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,w))}),x}function q0(t){var i=gt(t);return function(s){return lf(s,t,i)}}function lf(t,i,s){var c=s.length;if(t==null)return!c;for(t=Ye(t);c--;){var h=s[c],w=i[h],x=t[h];if(x===n&&!(h in t)||!w(x))return!1}return!0}function cf(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,w=Do,x=!0,R=t.length,M=[],z=i.length;if(!R)return M;s&&(i=et(i,Xt(s))),c?(w=Es,x=!1):i.length>=a&&(w=Ui,x=!1,i=new kr(i));e:for(;++h<R;){var q=t[h],G=s==null?q:s(q);if(q=c||q!==0?q:0,x&&G===G){for(var Z=z;Z--;)if(i[Z]===G)continue e;M.push(q)}else w(i,G,c)||M.push(q)}return M}var lr=$f(In),ff=$f(Fs,!0);function K0(t,i){var s=!0;return lr(t,function(c,h,w){return s=!!i(c,h,w),s}),s}function Zo(t,i,s){for(var c=-1,h=t.length;++c<h;){var w=t[c],x=i(w);if(x!=null&&(R===n?x===x&&!Zt(x):s(x,R)))var R=x,M=w}return M}function G0(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:Rd(c);s<c;)t[s++]=i;return t}function df(t,i){var s=[];return lr(t,function(c,h,w){i(c,h,w)&&s.push(c)}),s}function St(t,i,s,c,h){var w=-1,x=t.length;for(s||(s=ky),h||(h=[]);++w<x;){var R=t[w];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=jf(),pf=jf(!0);function In(t,i){return t&&js(t,i,gt)}function Fs(t,i){return t&&pf(t,i,gt)}function Qo(t,i){return or(i,function(s){return Vn(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 hf(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)?Py(t):By(t)}function Ws(t,i){return t>i}function Y0(t,i){return t!=null&&ze.call(t,i)}function V0(t,i){return t!=null&&i in Ye(t)}function X0(t,i,s){return t>=Tt(i,s)&&t<ht(i,s)}function Us(t,i,s){for(var c=s?Es:Do,h=t[0].length,w=t.length,x=w,R=W(w),M=1/0,z=[];x--;){var q=t[x];x&&i&&(q=et(q,Xt(i))),M=Tt(q.length,M),R[x]=!s&&(i||h>=120&&q.length>=120)?new kr(x&&q):n}q=t[0];var G=-1,Z=R[0];e:for(;++G<h&&z.length<M;){var re=q[G],ve=i?i(re):re;if(re=s||re!==0?re:0,!(Z?Ui(Z,ve):c(z,ve,s))){for(x=w;--x;){var Pe=R[x];if(!(Pe?Ui(Pe,ve):c(t[x],ve,s)))continue e}Z&&Z.push(ve),z.push(re)}}return z}function J0(t,i,s,c){return In(t,function(h,w,x){i(c,s(h),w,x)}),c}function Vi(t,i,s){i=fr(i,t),t=td(t,i);var c=t==null?t:t[Mn(dn(i))];return c==null?n:Vt(c,t,s)}function vf(t){return ot(t)&&Nt(t)==fe}function Z0(t){return ot(t)&&Nt(t)==on}function Q0(t){return ot(t)&&Nt(t)==ye}function Xi(t,i,s,c,h){return t===i?!0:t==null||i==null||!ot(t)&&!ot(i)?t!==t&&i!==i:ey(t,i,s,c,Xi,h)}function ey(t,i,s,c,h,w){var x=Te(t),R=Te(i),M=x?ue:Ct(t),z=R?ue:Ct(i);M=M==fe?mt:M,z=z==fe?mt:z;var q=M==mt,G=z==mt,Z=M==z;if(Z&&pr(t)){if(!pr(i))return!1;x=!0,q=!1}if(Z&&!q)return w||(w=new Sn),x||yi(t)?Yf(t,i,s,c,h,w):Cy(t,i,M,s,c,h,w);if(!(s&S)){var re=q&&ze.call(t,"__wrapped__"),ve=G&&ze.call(i,"__wrapped__");if(re||ve){var Pe=re?t.value():t,me=ve?i.value():i;return w||(w=new Sn),h(Pe,me,s,c,w)}}return Z?(w||(w=new Sn),Ry(t,i,s,c,h,w)):!1}function ty(t){return ot(t)&&Ct(t)==rt}function Bs(t,i,s,c){var h=s.length,w=h,x=!c;if(t==null)return!w;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<w;){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 G=new Sn;if(c)var Z=c(z,q,M,t,i,G);if(!(Z===n?Xi(q,z,S|y,c,G):Z))return!1}}return!0}function mf(t){if(!tt(t)||$y(t))return!1;var i=Vn(t)?t0:ut;return i.test(Fr(t))}function ny(t){return ot(t)&&Nt(t)==Je}function ry(t){return ot(t)&&Ct(t)==Qe}function iy(t){return ot(t)&&ma(t.length)&&!!Ze[Nt(t)]}function gf(t){return typeof t=="function"?t:t==null?zt:typeof t=="object"?Te(t)?wf(t[0],t[1]):bf(t):Fd(t)}function Hs(t){if(!Qi(t))return s0(t);var i=[];for(var s in Ye(t))ze.call(t,s)&&s!="constructor"&&i.push(s);return i}function oy(t){if(!tt(t))return Uy(t);var i=Qi(t),s=[];for(var c in t)c=="constructor"&&(i||!ze.call(t,c))||s.push(c);return s}function zs(t,i){return t<i}function yf(t,i){var s=-1,c=Bt(t)?W(t.length):[];return lr(t,function(h,w,x){c[++s]=i(h,w,x)}),c}function bf(t){var i=ou(t);return i.length==1&&i[0][2]?Qf(i[0][0],i[0][1]):function(s){return s===t||Bs(s,t,i)}}function wf(t,i){return su(t)&&Zf(i)?Qf(Mn(t),i):function(s){var c=gu(s,t);return c===n&&c===i?yu(s,t):Xi(i,c,S|y)}}function ea(t,i,s,c,h){t!==i&&js(i,function(w,x){if(h||(h=new Sn),tt(w))ay(t,i,x,s,ea,c,h);else{var R=c?c(lu(t,x),w,x+"",t,i,h):n;R===n&&(R=w),Ns(t,x,R)}},Ht)}function ay(t,i,s,c,h,w,x){var R=lu(t,s),M=lu(i,s),z=x.get(M);if(z){Ns(t,s,z);return}var q=w?w(R,M,s+"",t,i,x):n,G=q===n;if(G){var Z=Te(M),re=!Z&&pr(M),ve=!Z&&!re&&yi(M);q=M,Z||re||ve?Te(R)?q=R:lt(R)?q=Ut(R):re?(G=!1,q=Lf(M,!0)):ve?(G=!1,q=Mf(M,!0)):q=[]:to(M)||Wr(M)?(q=R,Wr(R)?q=Pd(R):(!tt(R)||Vn(R))&&(q=Jf(M))):G=!1}G&&(x.set(M,q),h(q,M,c,w,x),x.delete(M)),Ns(t,s,q)}function _f(t,i){var s=t.length;if(s)return i+=i<0?s:0,Yn(i,s)?t[i]:n}function Sf(t,i,s){i.length?i=et(i,function(w){return Te(w)?function(x){return $r(x,w.length===1?w[0]:w)}:w}):i=[zt];var c=-1;i=et(i,Xt(he()));var h=yf(t,function(w,x,R){var M=et(i,function(z){return z(w)});return{criteria:M,index:++c,value:w}});return Mg(h,function(w,x){return by(w,x,s)})}function sy(t,i){return Ef(t,i,function(s,c){return yu(t,c)})}function Ef(t,i,s){for(var c=-1,h=i.length,w={};++c<h;){var x=i[c],R=$r(t,x);s(R,x)&&Ji(w,fr(x,t),R)}return w}function uy(t){return function(i){return $r(i,t)}}function qs(t,i,s,c){var h=c?Lg:si,w=-1,x=i.length,R=t;for(t===i&&(i=Ut(i)),s&&(R=et(t,Xt(s)));++w<x;)for(var M=0,z=i[w],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 xf(t,i){for(var s=t?i.length:0,c=s-1;s--;){var h=i[s];if(s==c||h!==w){var w=h;Yn(h)?zo.call(t,h,1):Vs(t,h)}}return t}function Ks(t,i){return t+Go(rf()*(i-t+1))}function ly(t,i,s,c){for(var h=-1,w=ht(Ko((i-t)/(s||1)),0),x=W(w);w--;)x[c?w:++h]=t,t+=s;return x}function Gs(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(ed(t,i,zt),t+"")}function cy(t){return sf(bi(t))}function fy(t,i){var s=bi(t);return ca(s,Nr(i,0,s.length))}function Ji(t,i,s,c){if(!tt(t))return t;i=fr(i,t);for(var h=-1,w=i.length,x=w-1,R=t;R!=null&&++h<w;){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 Of=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:wu(i),writable:!0})}:zt;function py(t){return ca(bi(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 w=W(h);++c<h;)w[c]=t[c+i];return w}function hy(t,i){var s;return lr(t,function(c,h,w){return s=i(c,h,w),!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 w=c+h>>>1,x=t[w];x!==null&&!Zt(x)&&(s?x<=i:x<i)?c=w+1:h=w}return h}return Ys(t,i,zt,s)}function Ys(t,i,s,c){var h=0,w=t==null?0:t.length;if(w===0)return 0;i=s(i);for(var x=i!==i,R=i===null,M=Zt(i),z=i===n;h<w;){var q=Go((h+w)/2),G=s(t[q]),Z=G!==n,re=G===null,ve=G===G,Pe=Zt(G);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?G<=i:G<i;me?h=q+1:w=q}return Tt(w,de)}function Tf(t,i){for(var s=-1,c=t.length,h=0,w=[];++s<c;){var x=t[s],R=i?i(x):x;if(!s||!En(R,M)){var M=R;w[h++]=x===0?0:x}}return w}function Cf(t){return typeof t=="number"?t:Zt(t)?K:+t}function Jt(t){if(typeof t=="string")return t;if(Te(t))return et(t,Jt)+"";if(Zt(t))return of?of.call(t):"";var i=t+"";return i=="0"&&1/t==-xe?"-0":i}function cr(t,i,s){var c=-1,h=Do,w=t.length,x=!0,R=[],M=R;if(s)x=!1,h=Es;else if(w>=a){var z=i?null:Oy(t);if(z)return No(z);x=!1,h=Ui,M=new kr}else M=i?[]:R;e:for(;++c<w;){var q=t[c],G=i?i(q):q;if(q=s||q!==0?q:0,x&&G===G){for(var Z=M.length;Z--;)if(M[Z]===G)continue e;i&&M.push(G),R.push(q)}else h(M,G,s)||(M!==R&&M.push(G),R.push(q))}return R}function Vs(t,i){return i=fr(i,t),t=td(t,i),t==null||delete t[Mn(dn(i))]}function Rf(t,i,s,c){return Ji(t,i,s($r(t,i)),c)}function na(t,i,s,c){for(var h=t.length,w=c?h:-1;(c?w--:++w<h)&&i(t[w],w,t););return s?fn(t,c?0:w,c?w+1:h):fn(t,c?w+1:0,c?h:w)}function Pf(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 Xs(t,i,s){var c=t.length;if(c<2)return c?cr(t[0]):[];for(var h=-1,w=W(c);++h<c;)for(var x=t[h],R=-1;++R<c;)R!=h&&(w[h]=Yi(w[h]||x,t[R],i,s));return cr(St(w,1),i,s)}function Af(t,i,s){for(var c=-1,h=t.length,w=i.length,x={};++c<h;){var R=c<w?i[c]:n;s(x,t[c],R)}return x}function Js(t){return lt(t)?t:[]}function Zs(t){return typeof t=="function"?t:zt}function fr(t,i){return Te(t)?t:su(t,i)?[t]:od(Ue(t))}var vy=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 If=n0||function(t){return _t.clearTimeout(t)};function Lf(t,i){if(i)return t.slice();var s=t.length,c=Zc?Zc(s):new t.constructor(s);return t.copy(c),c}function Qs(t){var i=new t.constructor(t.byteLength);return new Bo(i).set(new Bo(t)),i}function my(t,i){var s=i?Qs(t.buffer):t.buffer;return new t.constructor(s,t.byteOffset,t.byteLength)}function gy(t){var i=new t.constructor(t.source,it.exec(t));return i.lastIndex=t.lastIndex,i}function yy(t){return Ki?Ye(Ki.call(t)):{}}function Mf(t,i){var s=i?Qs(t.buffer):t.buffer;return new t.constructor(s,t.byteOffset,t.length)}function Df(t,i){if(t!==i){var s=t!==n,c=t===null,h=t===t,w=Zt(t),x=i!==n,R=i===null,M=i===i,z=Zt(i);if(!R&&!z&&!w&&t>i||w&&x&&M&&!R&&!z||c&&x&&M||!s&&M||!h)return 1;if(!c&&!w&&!z&&t<i||z&&s&&h&&!c&&!w||R&&s&&h||!x&&h||!M)return-1}return 0}function by(t,i,s){for(var c=-1,h=t.criteria,w=i.criteria,x=h.length,R=s.length;++c<x;){var M=Df(h[c],w[c]);if(M){if(c>=R)return M;var z=s[c];return M*(z=="desc"?-1:1)}}return t.index-i.index}function kf(t,i,s,c){for(var h=-1,w=t.length,x=s.length,R=-1,M=i.length,z=ht(w-x,0),q=W(M+z),G=!c;++R<M;)q[R]=i[R];for(;++h<x;)(G||h<w)&&(q[s[h]]=t[h]);for(;z--;)q[R++]=t[h++];return q}function Nf(t,i,s,c){for(var h=-1,w=t.length,x=-1,R=s.length,M=-1,z=i.length,q=ht(w-R,0),G=W(q+z),Z=!c;++h<q;)G[h]=t[h];for(var re=h;++M<z;)G[re+M]=i[M];for(;++x<R;)(Z||h<w)&&(G[re+s[x]]=t[h++]);return G}function Ut(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 w=-1,x=i.length;++w<x;){var R=i[w],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 wy(t,i){return Ln(t,au(t),i)}function _y(t,i){return Ln(t,Vf(t),i)}function ra(t,i){return function(s,c){var h=Te(s)?Tg:H0,w=i?i():{};return h(s,t,he(c,2),w)}}function vi(t){return Ae(function(i,s){var c=-1,h=s.length,w=h>1?s[h-1]:n,x=h>2?s[2]:n;for(w=t.length>3&&typeof w=="function"?(h--,w):n,x&&$t(s[0],s[1],x)&&(w=h<3?n:w,h=1),i=Ye(i);++c<h;){var R=s[c];R&&t(i,R,c,w)}return i})}function $f(t,i){return function(s,c){if(s==null)return s;if(!Bt(s))return t(s,c);for(var h=s.length,w=i?h:-1,x=Ye(s);(i?w--:++w<h)&&c(x[w],w,x)!==!1;);return s}}function jf(t){return function(i,s,c){for(var h=-1,w=Ye(i),x=c(i),R=x.length;R--;){var M=x[t?R:++h];if(s(w[M],M,w)===!1)break}return i}}function Sy(t,i,s){var c=i&E,h=Zi(t);function w(){var x=this&&this!==_t&&this instanceof w?h:t;return x.apply(c?s:this,arguments)}return w}function Ff(t){return function(i){i=Ue(i);var s=ui(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 mi(t){return function(i){return xs($d(Nd(i).replace(dg,"")),t,"")}}function Zi(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=Zi(t);function h(){for(var w=arguments.length,x=W(w),R=w,M=gi(h);R--;)x[R]=arguments[R];var z=w<3&&x[0]!==M&&x[w-1]!==M?[]:sr(x,M);if(w-=z.length,w<s)return zf(t,i,ia,h.placeholder,n,x,z,n,n,s-w);var q=this&&this!==_t&&this instanceof h?c:t;return Vt(q,this,x)}return h}function Wf(t){return function(i,s,c){var h=Ye(i);if(!Bt(i)){var w=he(s,3);i=gt(i),s=function(R){return w(h[R],R,h)}}var x=t(i,s,c);return x>-1?h[w?i[x]:x]:n}}function Uf(t){return Gn(function(i){var s=i.length,c=s,h=ln.prototype.thru;for(t&&i.reverse();c--;){var w=i[c];if(typeof w!="function")throw new un(l);if(h&&!x&&ua(w)=="wrapper")var x=new ln([],!0)}for(c=x?c:s;++c<s;){w=i[c];var R=ua(w),M=R=="wrapper"?iu(w):n;M&&uu(M[0])&&M[1]==(B|C|T|j)&&!M[4].length&&M[9]==1?x=x[ua(M[0])].apply(x,M[3]):x=w.length==1&&uu(w)?x[R]():x.thru(w)}return function(){var z=arguments,q=z[0];if(x&&z.length==1&&Te(q))return x.plant(q).value();for(var G=0,Z=s?i[G].apply(this,z):q;++G<s;)Z=i[G].call(this,Z);return Z}})}function ia(t,i,s,c,h,w,x,R,M,z){var q=i&B,G=i&E,Z=i&D,re=i&(C|N),ve=i&J,Pe=Z?n:Zi(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=kf(Ne,c,h,re)),w&&(Ne=Nf(Ne,w,x,re)),De-=en,re&&De<z){var ct=sr(Ne,jt);return zf(t,i,ia,me.placeholder,s,Ne,ct,R,M,z-De)}var xn=G?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||Zi(Jn)),Jn.apply(xn,Ne)}return me}function Bf(t,i){return function(s,c){return J0(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=Jt(s),c=Jt(c)):(s=Cf(s),c=Cf(c)),h=t(s,c)}return h}}function eu(t){return Gn(function(i){return i=et(i,Xt(he())),Ae(function(s){var c=this;return t(i,function(h){return Vt(h,c,s)})})})}function aa(t,i){i=i===n?" ":Jt(i);var s=i.length;if(s<2)return s?Gs(i,t):i;var c=Gs(i,Ko(t/li(i)));return ui(i)?dr(_n(c),0,t).join(""):c.slice(0,t)}function xy(t,i,s,c){var h=i&E,w=Zi(t);function x(){for(var R=-1,M=arguments.length,z=-1,q=c.length,G=W(q+M),Z=this&&this!==_t&&this instanceof x?w:t;++z<q;)G[z]=c[z];for(;M--;)G[z++]=arguments[++R];return Vt(Z,h?s:this,G)}return x}function Hf(t){return function(i,s,c){return c&&typeof c!="number"&&$t(i,s,c)&&(s=c=n),i=Xn(i),s===n?(s=i,i=0):s=Xn(s),c=c===n?i<s?1:-1:Xn(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 zf(t,i,s,c,h,w,x,R,M,z){var q=i&C,G=q?x:n,Z=q?n:x,re=q?w:n,ve=q?n:w;i|=q?T:U,i&=~(q?U:T),i&I||(i&=~(E|D));var Pe=[t,i,h,re,G,ve,Z,R,M,z],me=s.apply(n,Pe);return uu(t)&&nd(me,Pe),me.placeholder=c,rd(me,t,i)}function tu(t){var i=pt[t];return function(s,c){if(s=pn(s),c=c==null?0:Tt(Re(c),292),c&&nf(s)){var h=(Ue(s)+"e").split("e"),w=i(h[0]+"e"+(+h[1]+c));return h=(Ue(w)+"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)}:Eu;function qf(t){return function(i){var s=Ct(i);return s==rt?Is(i):s==Qe?Bg(i):Dg(i,t(i))}}function Kn(t,i,s,c,h,w,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|U),c=h=n),x=x===n?x:ht(Re(x),0),R=R===n?R:Re(R),z-=h?h.length:0,i&U){var q=c,G=h;c=h=n}var Z=M?n:iu(t),re=[t,i,s,c,h,q,G,w,x,R];if(Z&&Wy(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:ht(re[9]-z,0),!R&&i&(C|N)&&(i&=~(C|N)),!i||i==E)var ve=Sy(t,i,s);else i==C||i==N?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=Z?Of:nd;return rd(Pe(ve,re),t,i)}function Kf(t,i,s,c){return t===n||En(t,fi[s])&&!ze.call(c,s)?i:t}function Gf(t,i,s,c,h,w){return tt(t)&&tt(i)&&(w.set(i,t),ea(t,i,n,Gf,w),w.delete(i)),t}function Ty(t){return to(t)?n:t}function Yf(t,i,s,c,h,w){var x=s&S,R=t.length,M=i.length;if(R!=M&&!(x&&M>R))return!1;var z=w.get(t),q=w.get(i);if(z&&q)return z==i&&q==t;var G=-1,Z=!0,re=s&y?new kr:n;for(w.set(t,i),w.set(i,t);++G<R;){var ve=t[G],Pe=i[G];if(c)var me=x?c(Pe,ve,G,i,t,w):c(ve,Pe,G,t,i,w);if(me!==n){if(me)continue;Z=!1;break}if(re){if(!Os(i,function(De,Ne){if(!Ui(re,Ne)&&(ve===De||h(ve,De,s,c,w)))return re.push(Ne)})){Z=!1;break}}else if(!(ve===Pe||h(ve,Pe,s,c,w))){Z=!1;break}}return w.delete(t),w.delete(i),Z}function Cy(t,i,s,c,h,w,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||!w(new Bo(t),new Bo(i)));case le:case ye:case ft:return En(+t,+i);case Ge:return t.name==i.name&&t.message==i.message;case Je:case rn:return t==i+"";case rt:var R=Is;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=Yf(R(t),R(i),c,h,w,x);return x.delete(t),q;case Gt:if(Ki)return Ki.call(t)==Ki.call(i)}return!1}function Ry(t,i,s,c,h,w){var x=s&S,R=nu(t),M=R.length,z=nu(i),q=z.length;if(M!=q&&!x)return!1;for(var G=M;G--;){var Z=R[G];if(!(x?Z in i:ze.call(i,Z)))return!1}var re=w.get(t),ve=w.get(i);if(re&&ve)return re==i&&ve==t;var Pe=!0;w.set(t,i),w.set(i,t);for(var me=x;++G<M;){Z=R[G];var De=t[Z],Ne=i[Z];if(c)var Qt=x?c(Ne,De,Z,i,t,w):c(De,Ne,Z,t,i,w);if(!(Qt===n?De===Ne||h(De,Ne,s,c,w):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 w.delete(t),w.delete(i),Pe}function Gn(t){return cu(ed(t,n,ld),t+"")}function nu(t){return hf(t,gt,au)}function ru(t){return hf(t,Ht,Vf)}var iu=Yo?function(t){return Yo.get(t)}:Eu;function ua(t){for(var i=t.name+"",s=pi[i],c=ze.call(pi,i)?s.length:0;c--;){var h=s[c],w=h.func;if(w==null||w==t)return h.name}return i}function gi(t){var i=ze.call(b,"placeholder")?b:t;return i.placeholder}function he(){var t=b.iteratee||_u;return t=t===_u?gf: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 ou(t){for(var i=gt(t),s=i.length;s--;){var c=i[s],h=t[c];i[s]=[c,h,Zf(h)]}return i}function jr(t,i){var s=Fg(t,i);return mf(s)?s:n}function Py(t){var i=ze.call(t,Mr),s=t[Mr];try{t[Mr]=n;var c=!0}catch{}var h=Wo.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 ef.call(t,i)}))}:xu,Vf=Ms?function(t){for(var i=[];t;)ar(i,au(t)),t=Ho(t);return i}:xu,Ct=Nt;(Ds&&Ct(new Ds(new ArrayBuffer(1)))!=Yt||Hi&&Ct(new Hi)!=rt||ks&&Ct(ks.resolve())!=Wt||di&&Ct(new di)!=Qe||zi&&Ct(new zi)!=Ot)&&(Ct=function(t){var i=Nt(t),s=i==mt?t.constructor:n,c=s?Fr(s):"";if(c)switch(c){case f0:return Yt;case d0:return rt;case p0:return Wt;case h0:return Qe;case v0:return Ot}return i});function Ay(t,i,s){for(var c=-1,h=s.length;++c<h;){var w=s[c],x=w.size;switch(w.type){case"drop":t+=x;break;case"dropRight":i-=x;break;case"take":i=Tt(i,t+x);break;case"takeRight":t=ht(t,i-x);break}}return{start:t,end:i}}function Iy(t){var i=t.match(ae);return i?i[1].split(te):[]}function Xf(t,i,s){i=fr(i,t);for(var c=-1,h=i.length,w=!1;++c<h;){var x=Mn(i[c]);if(!(w=t!=null&&s(t,x)))break;t=t[x]}return w||++c!=h?w:(h=t==null?0:t.length,!!h&&ma(h)&&Yn(x,h)&&(Te(t)||Wr(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 Jf(t){return typeof t.constructor=="function"&&!Qi(t)?hi(Ho(t)):{}}function My(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 my(t,s);case Er:case xr:case Or:case Tr:case yn:case Bn:case wt:case bn:case wn:return Mf(t,s);case rt:return new c;case ft:case rn:return new c(t);case Je:return gy(t);case Qe:return new c;case Gt: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 ay(t){return xe(t)||kr(t)||!!(Al&&t&&t[Al])}function qn(t,i){var s=typeof t;return i=i??qe,!!i&&(s=="number"||s!="symbol"&&ym.test(t))&&t>-1&&t%1==0&&t<i}function Mt(t,i,s){if(!tt(s))return!1;var l=typeof i;return(l=="number"?Ft(s)&&qn(i,s.length):l=="string"&&i in s)?Sn(s[i],t):!1}function Gs(t,i){if(xe(t))return!1;var s=typeof t;return s=="number"||s=="symbol"||s=="boolean"||t==null||Vt(t)?!0:Ai.test(t)||!Pi.test(t)||i!=null&&t in Ye(i)}function sy(t){var i=typeof t;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?t!=="__proto__":t===null}function Ys(t){var i=Jo(t),s=g[i];if(typeof s!="function"||!(i in De.prototype))return!1;if(t===s)return!0;var l=zs(s);return!!l&&t===l[0]}function uy(t){return!!Tl&&Tl in t}var cy=Co?Kn:fu;function zi(t){var i=t&&t.constructor,s=typeof i=="function"&&i.prototype||ri;return t===s}function Cf(t){return t===t&&!tt(t)}function Rf(t,i){return function(s){return s==null?!1:s[t]===i&&(i!==n||t in Ye(s))}}function ly(t){var i=ra(t,function(l){return s.size===m&&s.clear(),l}),s=i.cache;return i}function fy(t,i){var s=t[1],l=i[1],p=s|l,b=p<(T|D|F),E=l==F&&s==R||l==F&&s==$&&t[7].length<=i[8]||l==(F|$)&&i[7].length<=i[8]&&s==R;if(!(b||E))return t;l&T&&(t[2]=i[2],p|=s&T?0:M);var C=i[3];if(C){var L=t[3];t[3]=L?lf(L,C,i[4]):C,t[4]=L?rr(t[3],y):i[4]}return C=i[5],C&&(L=t[5],t[5]=L?ff(L,C,i[6]):C,t[6]=L?rr(t[5],y):i[6]),C=i[7],C&&(t[7]=C),l&F&&(t[8]=t[8]==null?i[8]:xt(t[8],i[8])),t[9]==null&&(t[9]=i[9]),t[0]=i[0],t[1]=p,t}function dy(t){var i=[];if(t!=null)for(var s in Ye(t))i.push(s);return i}function py(t){return Po.call(t)}function Pf(t,i,s){return i=pt(i===n?t.length-1:i,0),function(){for(var l=arguments,p=-1,b=pt(l.length-i,0),E=j(b);++p<b;)E[p]=l[i+p];p=-1;for(var C=j(i+1);++p<i;)C[p]=l[p];return C[i]=s(E),Gt(t,this,C)}}function Af(t,i){return i.length<2?t:Lr(t,cn(i,0,-1))}function hy(t,i){for(var s=t.length,l=xt(i.length,s),p=jt(t);l--;){var b=i[l];t[l]=qn(b,s)?p[b]:n}return t}function Xs(t,i){if(!(i==="constructor"&&typeof t[i]=="function")&&i!="__proto__")return t[i]}var If=Mf(Ql),qi=Pg||function(t,i){return wt.setTimeout(t,i)},Vs=Mf($0);function Lf(t,i,s){var l=i+"";return Vs(t,oy(l,vy(ny(l),s)))}function Mf(t){var i=0,s=0;return function(){var l=Mg(),p=Oe-(l-s);if(s=l,p>0){if(++i>=Me)return arguments[0]}else i=0;return t.apply(n,arguments)}}function Qo(t,i){var s=-1,l=t.length,p=l-1;for(i=i===n?l:i;++s<i;){var b=Ls(s,p),E=t[b];t[b]=t[s],t[s]=E}return t.length=i,t}var Df=ly(function(t){var i=[];return t.charCodeAt(0)===46&&i.push(""),t.replace(Ii,function(s,l,p,b){i.push(p?b.replace(be,"$1"):l||s)}),i});function Ln(t){if(typeof t=="string"||Vt(t))return t;var i=t+"";return i=="0"&&1/t==-Ie?"-0":i}function Dr(t){if(t!=null){try{return Ro.call(t)}catch{}try{return t+""}catch{}}return""}function vy(t,i){return on(ce,function(s){var l="_."+s[0];i&s[1]&&!Eo(t,l)&&t.push(l)}),t.sort()}function kf(t){if(t instanceof De)return t.clone();var i=new sn(t.__wrapped__,t.__chain__);return i.__actions__=jt(t.__actions__),i.__index__=t.__index__,i.__values__=t.__values__,i}function my(t,i,s){(s?Mt(t,i,s):i===n)?i=1:i=pt(Te(i),0);var l=t==null?0:t.length;if(!l||i<1)return[];for(var p=0,b=0,E=j(ko(l/i));p<l;)E[b++]=cn(t,p,p+=i);return E}function gy(t){for(var i=-1,s=t==null?0:t.length,l=0,p=[];++i<s;){var b=t[i];b&&(p[l++]=b)}return p}function yy(){var t=arguments.length;if(!t)return[];for(var i=j(t-1),s=arguments[0],l=t;l--;)i[l-1]=arguments[l];return nr(xe(s)?jt(s):[s],bt(i,1))}var wy=Re(function(t,i){return ut(t)?Fi(t,bt(i,1,ut,!0)):[]}),by=Re(function(t,i){var s=ln(i);return ut(s)&&(s=n),ut(t)?Fi(t,bt(i,1,ut,!0),de(s,2)):[]}),_y=Re(function(t,i){var s=ln(i);return ut(s)&&(s=n),ut(t)?Fi(t,bt(i,1,ut,!0),n,s):[]});function Sy(t,i,s){var l=t==null?0:t.length;return l?(i=s||i===n?1:Te(i),cn(t,i<0?0:i,l)):[]}function Ey(t,i,s){var l=t==null?0:t.length;return l?(i=s||i===n?1:Te(i),i=l-i,cn(t,0,i<0?0:i)):[]}function xy(t,i){return t&&t.length?qo(t,de(i,3),!0,!0):[]}function Oy(t,i){return t&&t.length?qo(t,de(i,3),!0):[]}function Ty(t,i,s,l){var p=t==null?0:t.length;return p?(s&&typeof s!="number"&&Mt(t,i,s)&&(s=0,l=p),y0(t,i,s,l)):[]}function Nf(t,i,s){var l=t==null?0:t.length;if(!l)return-1;var p=s==null?0:Te(s);return p<0&&(p=pt(l+p,0)),xo(t,de(i,3),p)}function $f(t,i,s){var l=t==null?0:t.length;if(!l)return-1;var p=l-1;return s!==n&&(p=Te(s),p=s<0?pt(l+p,0):xt(p,l-1)),xo(t,de(i,3),p,!0)}function jf(t){var i=t==null?0:t.length;return i?bt(t,1):[]}function Cy(t){var i=t==null?0:t.length;return i?bt(t,Ie):[]}function Ry(t,i){var s=t==null?0:t.length;return s?(i=i===n?1:Te(i),bt(t,i)):[]}function Py(t){for(var i=-1,s=t==null?0:t.length,l={};++i<s;){var p=t[i];l[p[0]]=p[1]}return l}function Ff(t){return t&&t.length?t[0]:n}function Ay(t,i,s){var l=t==null?0:t.length;if(!l)return-1;var p=s==null?0:Te(s);return p<0&&(p=pt(l+p,0)),Qr(t,i,p)}function Iy(t){var i=t==null?0:t.length;return i?cn(t,0,-1):[]}var Ly=Re(function(t){var i=et(t,$s);return i.length&&i[0]===t[0]?Cs(i):[]}),My=Re(function(t){var i=ln(t),s=et(t,$s);return i===ln(s)?i=n:s.pop(),s.length&&s[0]===t[0]?Cs(s,de(i,2)):[]}),Dy=Re(function(t){var i=ln(t),s=et(t,$s);return i=typeof i=="function"?i:n,i&&s.pop(),s.length&&s[0]===t[0]?Cs(s,n,i):[]});function ky(t,i){return t==null?"":Ig.call(t,i)}function ln(t){var i=t==null?0:t.length;return i?t[i-1]:n}function Ny(t,i,s){var l=t==null?0:t.length;if(!l)return-1;var p=l;return s!==n&&(p=Te(s),p=p<0?pt(l+p,0):xt(p,l-1)),i===i?vg(t,i,p):xo(t,yl,p,!0)}function $y(t,i){return t&&t.length?Xl(t,Te(i)):n}var jy=Re(Wf);function Wf(t,i){return t&&t.length&&i&&i.length?Is(t,i):t}function Fy(t,i,s){return t&&t.length&&i&&i.length?Is(t,i,de(s,2)):t}function Wy(t,i,s){return t&&t.length&&i&&i.length?Is(t,i,n,s):t}var Uy=zn(function(t,i){var s=t==null?0:t.length,l=Es(t,i);return Zl(t,et(i,function(p){return qn(p,s)?+p:p}).sort(cf)),l});function By(t,i){var s=[];if(!(t&&t.length))return s;var l=-1,p=[],b=t.length;for(i=de(i,3);++l<b;){var E=t[l];i(E,l,t)&&(s.push(E),p.push(l))}return Zl(t,p),s}function Js(t){return t==null?t:kg.call(t)}function Hy(t,i,s){var l=t==null?0:t.length;return l?(s&&typeof s!="number"&&Mt(t,i,s)?(i=0,s=l):(i=i==null?0:Te(i),s=s===n?l:Te(s)),cn(t,i,s)):[]}function zy(t,i){return zo(t,i)}function qy(t,i,s){return Ds(t,i,de(s,2))}function Ky(t,i){var s=t==null?0:t.length;if(s){var l=zo(t,i);if(l<s&&Sn(t[l],i))return l}return-1}function Gy(t,i){return zo(t,i,!0)}function Yy(t,i,s){return Ds(t,i,de(s,2),!0)}function Xy(t,i){var s=t==null?0:t.length;if(s){var l=zo(t,i,!0)-1;if(Sn(t[l],i))return l}return-1}function Vy(t){return t&&t.length?ef(t):[]}function Jy(t,i){return t&&t.length?ef(t,de(i,2)):[]}function Zy(t){var i=t==null?0:t.length;return i?cn(t,1,i):[]}function Qy(t,i,s){return t&&t.length?(i=s||i===n?1:Te(i),cn(t,0,i<0?0:i)):[]}function e1(t,i,s){var l=t==null?0:t.length;return l?(i=s||i===n?1:Te(i),i=l-i,cn(t,i<0?0:i,l)):[]}function t1(t,i){return t&&t.length?qo(t,de(i,3),!1,!0):[]}function n1(t,i){return t&&t.length?qo(t,de(i,3)):[]}var r1=Re(function(t){return ar(bt(t,1,ut,!0))}),i1=Re(function(t){var i=ln(t);return ut(i)&&(i=n),ar(bt(t,1,ut,!0),de(i,2))}),o1=Re(function(t){var i=ln(t);return i=typeof i=="function"?i:n,ar(bt(t,1,ut,!0),n,i)});function a1(t){return t&&t.length?ar(t):[]}function s1(t,i){return t&&t.length?ar(t,de(i,2)):[]}function u1(t,i){return i=typeof i=="function"?i:n,t&&t.length?ar(t,n,i):[]}function Zs(t){if(!(t&&t.length))return[];var i=0;return t=tr(t,function(s){if(ut(s))return i=pt(s.length,i),!0}),vs(i,function(s){return et(t,ds(s))})}function Uf(t,i){if(!(t&&t.length))return[];var s=Zs(t);return i==null?s:et(s,function(l){return Gt(i,n,l)})}var c1=Re(function(t,i){return ut(t)?Fi(t,i):[]}),l1=Re(function(t){return Ns(tr(t,ut))}),f1=Re(function(t){var i=ln(t);return ut(i)&&(i=n),Ns(tr(t,ut),de(i,2))}),d1=Re(function(t){var i=ln(t);return i=typeof i=="function"?i:n,Ns(tr(t,ut),n,i)}),p1=Re(Zs);function h1(t,i){return of(t||[],i||[],ji)}function v1(t,i){return of(t||[],i||[],Bi)}var m1=Re(function(t){var i=t.length,s=i>1?t[i-1]:n;return s=typeof s=="function"?(t.pop(),s):n,Uf(t,s)});function Bf(t){var i=g(t);return i.__chain__=!0,i}function g1(t,i){return i(t),t}function ea(t,i){return i(t)}var y1=zn(function(t){var i=t.length,s=i?t[0]:0,l=this.__wrapped__,p=function(b){return Es(b,t)};return i>1||this.__actions__.length||!(l instanceof De)||!qn(s)?this.thru(p):(l=l.slice(s,+s+(i?1:0)),l.__actions__.push({func:ea,args:[p],thisArg:n}),new sn(l,this.__chain__).thru(function(b){return i&&!b.length&&b.push(n),b}))});function w1(){return Bf(this)}function b1(){return new sn(this.value(),this.__chain__)}function _1(){this.__values__===n&&(this.__values__=nd(this.value()));var t=this.__index__>=this.__values__.length,i=t?n:this.__values__[this.__index__++];return{done:t,value:i}}function S1(){return this}function E1(t){for(var i,s=this;s instanceof Fo;){var l=kf(s);l.__index__=0,l.__values__=n,i?p.__wrapped__=l:i=l;var p=l;s=s.__wrapped__}return p.__wrapped__=t,i}function x1(){var t=this.__wrapped__;if(t instanceof De){var i=t;return this.__actions__.length&&(i=new De(this)),i=i.reverse(),i.__actions__.push({func:ea,args:[Js],thisArg:n}),new sn(i,this.__chain__)}return this.thru(Js)}function O1(){return rf(this.__wrapped__,this.__actions__)}var T1=Ko(function(t,i,s){He.call(t,s)?++t[s]:Bn(t,s,1)});function C1(t,i,s){var l=xe(t)?ml:g0;return s&&Mt(t,i,s)&&(i=n),l(t,de(i,3))}function R1(t,i){var s=xe(t)?tr:Wl;return s(t,de(i,3))}var P1=vf(Nf),A1=vf($f);function I1(t,i){return bt(ta(t,i),1)}function L1(t,i){return bt(ta(t,i),Ie)}function M1(t,i,s){return s=s===n?1:Te(s),bt(ta(t,i),s)}function Hf(t,i){var s=xe(t)?on:or;return s(t,de(i,3))}function zf(t,i){var s=xe(t)?Zm:Fl;return s(t,de(i,3))}var D1=Ko(function(t,i,s){He.call(t,s)?t[s].push(i):Bn(t,s,[i])});function k1(t,i,s,l){t=Ft(t)?t:fi(t),s=s&&!l?Te(s):0;var p=t.length;return s<0&&(s=pt(p+s,0)),aa(t)?s<=p&&t.indexOf(i,s)>-1:!!p&&Qr(t,i,s)>-1}var N1=Re(function(t,i,s){var l=-1,p=typeof i=="function",b=Ft(t)?j(t.length):[];return or(t,function(E){b[++l]=p?Gt(i,E,s):Wi(E,i,s)}),b}),$1=Ko(function(t,i,s){Bn(t,s,i)});function ta(t,i){var s=xe(t)?et:Kl;return s(t,de(i,3))}function j1(t,i,s,l){return t==null?[]:(xe(i)||(i=i==null?[]:[i]),s=l?n:s,xe(s)||(s=s==null?[]:[s]),Vl(t,i,s))}var F1=Ko(function(t,i,s){t[s?0:1].push(i)},function(){return[[],[]]});function W1(t,i,s){var l=xe(t)?ls:bl,p=arguments.length<3;return l(t,de(i,4),s,p,or)}function U1(t,i,s){var l=xe(t)?Qm:bl,p=arguments.length<3;return l(t,de(i,4),s,p,Fl)}function B1(t,i){var s=xe(t)?tr:Wl;return s(t,ia(de(i,3)))}function H1(t){var i=xe(t)?kl:k0;return i(t)}function z1(t,i,s){(s?Mt(t,i,s):i===n)?i=1:i=Te(i);var l=xe(t)?d0:N0;return l(t,i)}function q1(t){var i=xe(t)?p0:j0;return i(t)}function K1(t){if(t==null)return 0;if(Ft(t))return aa(t)?ti(t):t.length;var i=Ot(t);return i==rt||i==Qe?t.size:Ps(t).length}function G1(t,i,s){var l=xe(t)?fs:F0;return s&&Mt(t,i,s)&&(i=n),l(t,de(i,3))}var Y1=Re(function(t,i){if(t==null)return[];var s=i.length;return s>1&&Mt(t,i[0],i[1])?i=[]:s>2&&Mt(i[0],i[1],i[2])&&(i=[i[0]]),Vl(t,bt(i,1),[])}),na=Rg||function(){return wt.Date.now()};function X1(t,i){if(typeof i!="function")throw new an(c);return t=Te(t),function(){if(--t<1)return i.apply(this,arguments)}}function qf(t,i,s){return i=s?n:i,i=t&&i==null?t.length:i,Hn(t,F,n,n,n,n,i)}function Kf(t,i){var s;if(typeof i!="function")throw new an(c);return t=Te(t),function(){return--t>0&&(s=i.apply(this,arguments)),t<=1&&(i=n),s}}var Qs=Re(function(t,i,s){var l=T;if(s.length){var p=rr(s,ci(Qs));l|=x}return Hn(t,l,i,s,p)}),Gf=Re(function(t,i,s){var l=T|D;if(s.length){var p=rr(s,ci(Gf));l|=x}return Hn(i,l,t,s,p)});function Yf(t,i,s){i=s?n:i;var l=Hn(t,R,n,n,n,n,n,i);return l.placeholder=Yf.placeholder,l}function Xf(t,i,s){i=s?n:i;var l=Hn(t,k,n,n,n,n,n,i);return l.placeholder=Xf.placeholder,l}function Vf(t,i,s){var l,p,b,E,C,L,H=0,z=!1,K=!1,J=!0;if(typeof t!="function")throw new an(c);i=fn(i)||0,tt(s)&&(z=!!s.leading,K="maxWait"in s,b=K?pt(fn(s.maxWait)||0,i):b,J="trailing"in s?!!s.trailing:J);function re(ct){var En=l,Yn=p;return l=p=n,H=ct,E=t.apply(Yn,En),E}function pe(ct){return H=ct,C=qi(Le,i),z?re(ct):E}function Ce(ct){var En=ct-L,Yn=ct-H,vd=i-En;return K?xt(vd,b-Yn):vd}function he(ct){var En=ct-L,Yn=ct-H;return L===n||En>=i||En<0||K&&Yn>=b}function Le(){var ct=na();if(he(ct))return Ne(ct);C=qi(Le,Ce(ct))}function Ne(ct){return C=n,J&&l?re(ct):(l=p=n,E)}function Jt(){C!==n&&af(C),H=0,l=L=p=C=n}function Dt(){return C===n?E:Ne(na())}function Zt(){var ct=na(),En=he(ct);if(l=arguments,p=this,L=ct,En){if(C===n)return pe(L);if(K)return af(C),C=qi(Le,i),re(L)}return C===n&&(C=qi(Le,i)),E}return Zt.cancel=Jt,Zt.flush=Dt,Zt}var V1=Re(function(t,i){return jl(t,1,i)}),J1=Re(function(t,i,s){return jl(t,fn(i)||0,s)});function Z1(t){return Hn(t,Z)}function ra(t,i){if(typeof t!="function"||i!=null&&typeof i!="function")throw new an(c);var s=function(){var l=arguments,p=i?i.apply(this,l):l[0],b=s.cache;if(b.has(p))return b.get(p);var E=t.apply(this,l);return s.cache=b.set(p,E)||b,E};return s.cache=new(ra.Cache||Un),s}ra.Cache=Un;function ia(t){if(typeof t!="function")throw new an(c);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 Q1(t){return Kf(2,t)}var ew=W0(function(t,i){i=i.length==1&&xe(i[0])?et(i[0],Yt(de())):et(bt(i,1),Yt(de()));var s=i.length;return Re(function(l){for(var p=-1,b=xt(l.length,s);++p<b;)l[p]=i[p].call(this,l[p]);return Gt(t,this,l)})}),eu=Re(function(t,i){var s=rr(i,ci(eu));return Hn(t,x,n,i,s)}),Jf=Re(function(t,i){var s=rr(i,ci(Jf));return Hn(t,W,n,i,s)}),tw=zn(function(t,i){return Hn(t,$,n,n,n,i)});function nw(t,i){if(typeof t!="function")throw new an(c);return i=i===n?i:Te(i),Re(t,i)}function rw(t,i){if(typeof t!="function")throw new an(c);return i=i==null?0:pt(Te(i),0),Re(function(s){var l=s[i],p=ur(s,0,i);return l&&nr(p,l),Gt(t,this,p)})}function iw(t,i,s){var l=!0,p=!0;if(typeof t!="function")throw new an(c);return tt(s)&&(l="leading"in s?!!s.leading:l,p="trailing"in s?!!s.trailing:p),Vf(t,i,{leading:l,maxWait:i,trailing:p})}function ow(t){return qf(t,1)}function aw(t,i){return eu(js(i),t)}function sw(){if(!arguments.length)return[];var t=arguments[0];return xe(t)?t:[t]}function uw(t){return un(t,v)}function cw(t,i){return i=typeof i=="function"?i:n,un(t,v,i)}function lw(t){return un(t,_|v)}function fw(t,i){return i=typeof i=="function"?i:n,un(t,_|v,i)}function dw(t,i){return i==null||$l(t,i,mt(i))}function Sn(t,i){return t===i||t!==t&&i!==i}var pw=Vo(Ts),hw=Vo(function(t,i){return t>=i}),kr=Hl(function(){return arguments}())?Hl:function(t){return ot(t)&&He.call(t,"callee")&&!Pl.call(t,"callee")},xe=j.isArray,vw=ll?Yt(ll):E0;function Ft(t){return t!=null&&oa(t.length)&&!Kn(t)}function ut(t){return ot(t)&&Ft(t)}function mw(t){return t===!0||t===!1||ot(t)&&Lt(t)==se}var cr=Ag||fu,gw=fl?Yt(fl):x0;function yw(t){return ot(t)&&t.nodeType===1&&!Ki(t)}function ww(t){if(t==null)return!0;if(Ft(t)&&(xe(t)||typeof t=="string"||typeof t.splice=="function"||cr(t)||li(t)||kr(t)))return!t.length;var i=Ot(t);if(i==rt||i==Qe)return!t.size;if(zi(t))return!Ps(t).length;for(var s in t)if(He.call(t,s))return!1;return!0}function bw(t,i){return Ui(t,i)}function _w(t,i,s){s=typeof s=="function"?s:n;var l=s?s(t,i):n;return l===n?Ui(t,i,n,s):!!l}function tu(t){if(!ot(t))return!1;var i=Lt(t);return i==Ge||i==ye||typeof t.message=="string"&&typeof t.name=="string"&&!Ki(t)}function Sw(t){return typeof t=="number"&&Il(t)}function Kn(t){if(!tt(t))return!1;var i=Lt(t);return i==V||i==nt||i==fe||i==gr}function Zf(t){return typeof t=="number"&&t==Te(t)}function oa(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=qe}function tt(t){var i=typeof t;return t!=null&&(i=="object"||i=="function")}function ot(t){return t!=null&&typeof t=="object"}var Qf=dl?Yt(dl):T0;function Ew(t,i){return t===i||Rs(t,i,qs(i))}function xw(t,i,s){return s=typeof s=="function"?s:n,Rs(t,i,qs(i),s)}function Ow(t){return ed(t)&&t!=+t}function Tw(t){if(cy(t))throw new Se(u);return zl(t)}function Cw(t){return t===null}function Rw(t){return t==null}function ed(t){return typeof t=="number"||ot(t)&&Lt(t)==lt}function Ki(t){if(!ot(t)||Lt(t)!=vt)return!1;var i=Lo(t);if(i===null)return!0;var s=He.call(i,"constructor")&&i.constructor;return typeof s=="function"&&s instanceof s&&Ro.call(s)==xg}var nu=pl?Yt(pl):C0;function Pw(t){return Zf(t)&&t>=-qe&&t<=qe}var td=hl?Yt(hl):R0;function aa(t){return typeof t=="string"||!xe(t)&&ot(t)&&Lt(t)==tn}function Vt(t){return typeof t=="symbol"||ot(t)&&Lt(t)==qt}var li=vl?Yt(vl):P0;function Aw(t){return t===n}function Iw(t){return ot(t)&&Ot(t)==Et}function Lw(t){return ot(t)&&Lt(t)==Qn}var Mw=Vo(As),Dw=Vo(function(t,i){return t<=i});function nd(t){if(!t)return[];if(Ft(t))return aa(t)?bn(t):jt(t);if(Mi&&t[Mi])return dg(t[Mi]());var i=Ot(t),s=i==rt?gs:i==Qe?Oo:fi;return s(t)}function Gn(t){if(!t)return t===0?t:0;if(t=fn(t),t===Ie||t===-Ie){var i=t<0?-1:1;return i*ft}return t===t?t:0}function Te(t){var i=Gn(t),s=i%1;return i===i?s?i-s:i:0}function rd(t){return t?Ir(Te(t),0,X):0}function fn(t){if(typeof t=="number")return t;if(Vt(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=_l(t);var s=Tr.test(t);return s||gm.test(t)?Xm(t.slice(2),s?2:8):It.test(t)?G:+t}function id(t){return In(t,Wt(t))}function kw(t){return t?Ir(Te(t),-qe,qe):t===0?t:0}function We(t){return t==null?"":Xt(t)}var Nw=si(function(t,i){if(zi(i)||Ft(i)){In(i,mt(i),t);return}for(var s in i)He.call(i,s)&&ji(t,s,i[s])}),od=si(function(t,i){In(i,Wt(i),t)}),sa=si(function(t,i,s,l){In(i,Wt(i),t,l)}),$w=si(function(t,i,s,l){In(i,mt(i),t,l)}),jw=zn(Es);function Fw(t,i){var s=ai(t);return i==null?s:Nl(s,i)}var Ww=Re(function(t,i){t=Ye(t);var s=-1,l=i.length,p=l>2?i[2]:n;for(p&&Mt(i[0],i[1],p)&&(l=1);++s<l;)for(var b=i[s],E=Wt(b),C=-1,L=E.length;++C<L;){var H=E[C],z=t[H];(z===n||Sn(z,ri[H])&&!He.call(t,H))&&(t[H]=b[H])}return t}),Uw=Re(function(t){return t.push(n,Sf),Gt(ad,n,t)});function Bw(t,i){return gl(t,de(i,3),An)}function Hw(t,i){return gl(t,de(i,3),Os)}function zw(t,i){return t==null?t:xs(t,de(i,3),Wt)}function qw(t,i){return t==null?t:Ul(t,de(i,3),Wt)}function Kw(t,i){return t&&An(t,de(i,3))}function Gw(t,i){return t&&Os(t,de(i,3))}function Yw(t){return t==null?[]:Bo(t,mt(t))}function Xw(t){return t==null?[]:Bo(t,Wt(t))}function ru(t,i,s){var l=t==null?n:Lr(t,i);return l===n?s:l}function Vw(t,i){return t!=null&&Of(t,i,w0)}function iu(t,i){return t!=null&&Of(t,i,b0)}var Jw=gf(function(t,i,s){i!=null&&typeof i.toString!="function"&&(i=Po.call(i)),t[i]=s},au(Ut)),Zw=gf(function(t,i,s){i!=null&&typeof i.toString!="function"&&(i=Po.call(i)),He.call(t,i)?t[i].push(s):t[i]=[s]},de),Qw=Re(Wi);function mt(t){return Ft(t)?Dl(t):Ps(t)}function Wt(t){return Ft(t)?Dl(t,!0):A0(t)}function eb(t,i){var s={};return i=de(i,3),An(t,function(l,p,b){Bn(s,i(l,p,b),l)}),s}function tb(t,i){var s={};return i=de(i,3),An(t,function(l,p,b){Bn(s,p,i(l,p,b))}),s}var nb=si(function(t,i,s){Ho(t,i,s)}),ad=si(function(t,i,s,l){Ho(t,i,s,l)}),rb=zn(function(t,i){var s={};if(t==null)return s;var l=!1;i=et(i,function(b){return b=sr(b,t),l||(l=b.length>1),b}),In(t,Hs(t),s),l&&(s=un(s,_|O|v,J0));for(var p=i.length;p--;)ks(s,i[p]);return s});function ib(t,i){return sd(t,ia(de(i)))}var ob=zn(function(t,i){return t==null?{}:L0(t,i)});function sd(t,i){if(t==null)return{};var s=et(Hs(t),function(l){return[l]});return i=de(i),Jl(t,s,function(l,p){return i(l,p[0])})}function ab(t,i,s){i=sr(i,t);var l=-1,p=i.length;for(p||(p=1,t=n);++l<p;){var b=t==null?n:t[Ln(i[l])];b===n&&(l=p,b=s),t=Kn(b)?b.call(t):b}return t}function sb(t,i,s){return t==null?t:Bi(t,i,s)}function ub(t,i,s,l){return l=typeof l=="function"?l:n,t==null?t:Bi(t,i,s,l)}var ud=bf(mt),cd=bf(Wt);function cb(t,i,s){var l=xe(t),p=l||cr(t)||li(t);if(i=de(i,4),s==null){var b=t&&t.constructor;p?s=l?new b:[]:tt(t)?s=Kn(b)?ai(Lo(t)):{}:s={}}return(p?on:An)(t,function(E,C,L){return i(s,E,C,L)}),s}function lb(t,i){return t==null?!0:ks(t,i)}function fb(t,i,s){return t==null?t:nf(t,i,js(s))}function db(t,i,s,l){return l=typeof l=="function"?l:n,t==null?t:nf(t,i,js(s),l)}function fi(t){return t==null?[]:ms(t,mt(t))}function pb(t){return t==null?[]:ms(t,Wt(t))}function hb(t,i,s){return s===n&&(s=i,i=n),s!==n&&(s=fn(s),s=s===s?s:0),i!==n&&(i=fn(i),i=i===i?i:0),Ir(fn(t),i,s)}function vb(t,i,s){return i=Gn(i),s===n?(s=i,i=0):s=Gn(s),t=fn(t),_0(t,i,s)}function mb(t,i,s){if(s&&typeof s!="boolean"&&Mt(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=Gn(t),i===n?(i=t,t=0):i=Gn(i)),t>i){var l=t;t=i,i=l}if(s||t%1||i%1){var p=Ll();return xt(t+p*(i-t+Ym("1e-"+((p+"").length-1))),i)}return Ls(t,i)}var gb=ui(function(t,i,s){return i=i.toLowerCase(),t+(s?ld(i):i)});function ld(t){return ou(We(t).toLowerCase())}function fd(t){return t=We(t),t&&t.replace(wm,sg).replace(jm,"")}function yb(t,i,s){t=We(t),i=Xt(i);var l=t.length;s=s===n?l:Ir(Te(s),0,l);var p=s;return s-=i.length,s>=0&&t.slice(s,p)==i}function wb(t){return t=We(t),t&&Ci.test(t)?t.replace(er,ug):t}function bb(t){return t=We(t),t&&P.test(t)?t.replace(d,"\\$&"):t}var _b=ui(function(t,i,s){return t+(s?"-":"")+i.toLowerCase()}),Sb=ui(function(t,i,s){return t+(s?" ":"")+i.toLowerCase()}),Eb=hf("toLowerCase");function xb(t,i,s){t=We(t),i=Te(i);var l=i?ti(t):0;if(!i||l>=i)return t;var p=(i-l)/2;return Xo(No(p),s)+t+Xo(ko(p),s)}function Ob(t,i,s){t=We(t),i=Te(i);var l=i?ti(t):0;return i&&l<i?t+Xo(i-l,s):t}function Tb(t,i,s){t=We(t),i=Te(i);var l=i?ti(t):0;return i&&l<i?Xo(i-l,s)+t:t}function Cb(t,i,s){return s||i==null?i=0:i&&(i=+i),Dg(We(t).replace(N,""),i||0)}function Rb(t,i,s){return(s?Mt(t,i,s):i===n)?i=1:i=Te(i),Ms(We(t),i)}function Pb(){var t=arguments,i=We(t[0]);return t.length<3?i:i.replace(t[1],t[2])}var Ab=ui(function(t,i,s){return t+(s?"_":"")+i.toLowerCase()});function Ib(t,i,s){return s&&typeof s!="number"&&Mt(t,i,s)&&(i=s=n),s=s===n?X:s>>>0,s?(t=We(t),t&&(typeof i=="string"||i!=null&&!nu(i))&&(i=Xt(i),!i&&ei(t))?ur(bn(t),0,s):t.split(i,s)):[]}var Lb=ui(function(t,i,s){return t+(s?" ":"")+ou(i)});function Mb(t,i,s){return t=We(t),s=s==null?0:Ir(Te(s),0,t.length),i=Xt(i),t.slice(s,s+i.length)==i}function Db(t,i,s){var l=g.templateSettings;s&&Mt(t,i,s)&&(i=n),t=We(t),i=sa({},i,l,_f);var p=sa({},i.imports,l.imports,_f),b=mt(p),E=ms(p,b),C,L,H=0,z=i.interpolate||bo,K="__p += '",J=ys((i.escape||bo).source+"|"+z.source+"|"+(z===Jr?Ee:bo).source+"|"+(i.evaluate||bo).source+"|$","g"),re="//# sourceURL="+(He.call(i,"sourceURL")?(i.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Hm+"]")+`
186
- `;t.replace(J,function(he,Le,Ne,Jt,Dt,Zt){return Ne||(Ne=Jt),K+=t.slice(H,Zt).replace(bm,cg),Le&&(C=!0,K+=`' +
187
- __e(`+Le+`) +
188
- '`),Dt&&(L=!0,K+=`';
189
- `+Dt+`;
190
- __p += '`),Ne&&(K+=`' +
185
+ `)}function ky(t){return Te(t)||Wr(t)||!!(tf&&t&&t[tf])}function Yn(t,i){var s=typeof t;return i=i??We,!!i&&(s=="number"||s!="symbol"&&Gm.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"?Bt(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:Fi.test(t)||!ji.test(t)||i!=null&&t in Ye(i)}function Ny(t){var i=typeof t;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?t!=="__proto__":t===null}function uu(t){var i=ua(t),s=b[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 $y(t){return!!Jc&&Jc in t}var jy=jo?Vn:Ou;function Qi(t){var i=t&&t.constructor,s=typeof i=="function"&&i.prototype||fi;return t===s}function Zf(t){return t===t&&!tt(t)}function Qf(t,i){return function(s){return s==null?!1:s[t]===i&&(i!==n||t in Ye(s))}}function Fy(t){var i=ha(t,function(c){return s.size===m&&s.clear(),c}),s=i.cache;return i}function Wy(t,i){var s=t[1],c=i[1],h=s|c,w=h<(E|D|B),x=c==B&&s==C||c==B&&s==j&&t[7].length<=i[8]||c==(B|j)&&i[7].length<=i[8]&&s==C;if(!(w||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?kf(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?Nf(M,R,i[6]):R,t[6]=M?sr(t[5],g):i[6]),R=i[7],R&&(t[7]=R),c&B&&(t[8]=t[8]==null?i[8]:Tt(t[8],i[8])),t[9]==null&&(t[9]=i[9]),t[0]=i[0],t[1]=h,t}function Uy(t){var i=[];if(t!=null)for(var s in Ye(t))i.push(s);return i}function By(t){return Wo.call(t)}function ed(t,i,s){return i=ht(i===n?t.length-1:i,0),function(){for(var c=arguments,h=-1,w=ht(c.length-i,0),x=W(w);++h<w;)x[h]=c[i+h];h=-1;for(var R=W(i+1);++h<i;)R[h]=c[h];return R[i]=s(x),Vt(t,this,R)}}function td(t,i){return i.length<2?t:$r(t,fn(i,0,-1))}function Hy(t,i){for(var s=t.length,c=Tt(i.length,s),h=Ut(t);c--;){var w=i[c];t[c]=Yn(w,s)?h[w]:n}return t}function lu(t,i){if(!(i==="constructor"&&typeof t[i]=="function")&&i!="__proto__")return t[i]}var nd=id(Of),eo=i0||function(t,i){return _t.setTimeout(t,i)},cu=id(dy);function rd(t,i,s){var c=i+"";return cu(t,Dy(c,zy(Iy(c),s)))}function id(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 w=Ks(s,h),x=t[w];t[w]=t[s],t[s]=x}return t.length=i,t}var od=Fy(function(t){var i=[];return t.charCodeAt(0)===46&&i.push(""),t.replace(Wi,function(s,c,h,w){i.push(h?w.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 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 ad(t){if(t instanceof ke)return t.clone();var i=new ln(t.__wrapped__,t.__chain__);return i.__actions__=Ut(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=ht(Re(i),0);var c=t==null?0:t.length;if(!c||i<1)return[];for(var h=0,w=0,x=W(Ko(c/i));h<c;)x[w++]=fn(t,h,h+=i);return x}function Ky(t){for(var i=-1,s=t==null?0:t.length,c=0,h=[];++i<s;){var w=t[i];w&&(h[c++]=w)}return h}function Gy(){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)?Ut(s):[s],St(i,1))}var Yy=Ae(function(t,i){return lt(t)?Yi(t,St(i,1,lt,!0)):[]}),Vy=Ae(function(t,i){var s=dn(i);return lt(s)&&(s=n),lt(t)?Yi(t,St(i,1,lt,!0),he(s,2)):[]}),Xy=Ae(function(t,i){var s=dn(i);return lt(s)&&(s=n),lt(t)?Yi(t,St(i,1,lt,!0),n,s):[]});function Jy(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 Zy(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),G0(t,i,s,c)):[]}function sd(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=ht(c+h,0)),ko(t,he(i,3),h)}function ud(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?ht(c+h,0):Tt(h,c-1)),ko(t,he(i,3),h,!0)}function ld(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 cd(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=ht(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?ht(c+h,0):Tt(h,c-1)),i===i?zg(t,i,h):ko(t,Hc,h,!0)}function d1(t,i){return t&&t.length?_f(t,Re(i)):n}var p1=Ae(fd);function fd(t,i){return t&&t.length&&i&&i.length?qs(t,i):t}function h1(t,i,s){return t&&t.length&&i&&i.length?qs(t,i,he(s,2)):t}function v1(t,i,s){return t&&t.length&&i&&i.length?qs(t,i,n,s):t}var m1=Gn(function(t,i){var s=t==null?0:t.length,c=$s(t,i);return xf(t,et(i,function(h){return Yn(h,s)?+h:h}).sort(Df)),c});function g1(t,i){var s=[];if(!(t&&t.length))return s;var c=-1,h=[],w=t.length;for(i=he(i,3);++c<w;){var x=t[c];i(x,c,t)&&(s.push(x),h.push(c))}return xf(t,h),s}function fu(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 b1(t,i){return ta(t,i)}function w1(t,i,s){return Ys(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 Ys(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?Tf(t):[]}function T1(t,i){return t&&t.length?Tf(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 cr(St(t,1,lt,!0))}),M1=Ae(function(t){var i=dn(t);return lt(i)&&(i=n),cr(St(t,1,lt,!0),he(i,2))}),D1=Ae(function(t){var i=dn(t);return i=typeof i=="function"?i:n,cr(St(t,1,lt,!0),n,i)});function k1(t){return t&&t.length?cr(t):[]}function N1(t,i){return t&&t.length?cr(t,he(i,2)):[]}function $1(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(lt(s))return i=ht(s.length,i),!0}),Ps(i,function(s){return et(t,Ts(s))})}function dd(t,i){if(!(t&&t.length))return[];var s=du(t);return i==null?s:et(s,function(c){return Vt(i,n,c)})}var j1=Ae(function(t,i){return lt(t)?Yi(t,i):[]}),F1=Ae(function(t){return Xs(or(t,lt))}),W1=Ae(function(t){var i=dn(t);return lt(i)&&(i=n),Xs(or(t,lt),he(i,2))}),U1=Ae(function(t){var i=dn(t);return i=typeof i=="function"?i:n,Xs(or(t,lt),n,i)}),B1=Ae(du);function H1(t,i){return Af(t||[],i||[],Gi)}function z1(t,i){return Af(t||[],i||[],Ji)}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,dd(t,s)});function pd(t){var i=b(t);return i.__chain__=!0,i}function K1(t,i){return i(t),t}function fa(t,i){return i(t)}var G1=Gn(function(t){var i=t.length,s=i?t[0]:0,c=this.__wrapped__,h=function(w){return $s(w,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:fa,args:[h],thisArg:n}),new ln(c,this.__chain__).thru(function(w){return i&&!w.length&&w.push(n),w}))});function Y1(){return pd(this)}function V1(){return new ln(this.value(),this.__chain__)}function X1(){this.__values__===n&&(this.__values__=Cd(this.value()));var t=this.__index__>=this.__values__.length,i=t?n:this.__values__[this.__index__++];return{done:t,value:i}}function J1(){return this}function Z1(t){for(var i,s=this;s instanceof Xo;){var c=ad(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:[fu],thisArg:n}),new ln(i,this.__chain__)}return this.thru(fu)}function eb(){return Pf(this.__wrapped__,this.__actions__)}var tb=ra(function(t,i,s){ze.call(t,s)?++t[s]:qn(t,s,1)});function nb(t,i,s){var c=Te(t)?Uc:K0;return s&&$t(t,i,s)&&(i=n),c(t,he(i,3))}function rb(t,i){var s=Te(t)?or:df;return s(t,he(i,3))}var ib=Wf(sd),ob=Wf(ud);function ab(t,i){return St(da(t,i),1)}function sb(t,i){return St(da(t,i),xe)}function ub(t,i,s){return s=s===n?1:Re(s),St(da(t,i),s)}function hd(t,i){var s=Te(t)?sn:lr;return s(t,he(i,3))}function vd(t,i){var s=Te(t)?Cg:ff;return s(t,he(i,3))}var lb=ra(function(t,i,s){ze.call(t,s)?t[s].push(i):qn(t,s,[i])});function cb(t,i,s,c){t=Bt(t)?t:bi(t),s=s&&!c?Re(s):0;var h=t.length;return s<0&&(s=ht(h+s,0)),ga(t)?s<=h&&t.indexOf(i,s)>-1:!!h&&si(t,i,s)>-1}var fb=Ae(function(t,i,s){var c=-1,h=typeof i=="function",w=Bt(t)?W(t.length):[];return lr(t,function(x){w[++c]=h?Vt(i,x,s):Vi(x,i,s)}),w}),db=ra(function(t,i,s){qn(t,s,i)});function da(t,i){var s=Te(t)?et:yf;return s(t,he(i,3))}function pb(t,i,s,c){return t==null?[]:(Te(i)||(i=i==null?[]:[i]),s=c?n:s,Te(s)||(s=s==null?[]:[s]),Sf(t,i,s))}var hb=ra(function(t,i,s){t[s?0:1].push(i)},function(){return[[],[]]});function vb(t,i,s){var c=Te(t)?xs:qc,h=arguments.length<3;return c(t,he(i,4),s,h,lr)}function mb(t,i,s){var c=Te(t)?Rg:qc,h=arguments.length<3;return c(t,he(i,4),s,h,ff)}function gb(t,i){var s=Te(t)?or:df;return s(t,va(he(i,3)))}function yb(t){var i=Te(t)?sf:cy;return i(t)}function bb(t,i,s){(s?$t(t,i,s):i===n)?i=1:i=Re(i);var c=Te(t)?U0:fy;return c(t,i)}function wb(t){var i=Te(t)?B0:py;return i(t)}function _b(t){if(t==null)return 0;if(Bt(t))return ga(t)?li(t):t.length;var i=Ct(t);return i==rt||i==Qe?t.size:Hs(t).length}function Sb(t,i,s){var c=Te(t)?Os:hy;return s&&$t(t,i,s)&&(i=n),c(t,he(i,3))}var Eb=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]]),Sf(t,St(i,1),[])}),pa=r0||function(){return _t.Date.now()};function xb(t,i){if(typeof i!="function")throw new un(l);return t=Re(t),function(){if(--t<1)return i.apply(this,arguments)}}function md(t,i,s){return i=s?n:i,i=t&&i==null?t.length:i,Kn(t,B,n,n,n,n,i)}function gd(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,gi(pu));c|=T}return Kn(t,c,i,s,h)}),yd=Ae(function(t,i,s){var c=E|D;if(s.length){var h=sr(s,gi(yd));c|=T}return Kn(i,c,t,s,h)});function bd(t,i,s){i=s?n:i;var c=Kn(t,C,n,n,n,n,n,i);return c.placeholder=bd.placeholder,c}function wd(t,i,s){i=s?n:i;var c=Kn(t,N,n,n,n,n,n,i);return c.placeholder=wd.placeholder,c}function _d(t,i,s){var c,h,w,x,R,M,z=0,q=!1,G=!1,Z=!0;if(typeof t!="function")throw new un(l);i=pn(i)||0,tt(s)&&(q=!!s.leading,G="maxWait"in s,w=G?ht(pn(s.maxWait)||0,i):w,Z="trailing"in s?!!s.trailing:Z);function re(ct){var xn=c,Jn=h;return c=h=n,z=ct,x=t.apply(Jn,xn),x}function ve(ct){return z=ct,R=eo(De,i),q?re(ct):x}function Pe(ct){var xn=ct-M,Jn=ct-z,Wd=i-xn;return G?Tt(Wd,w-Jn):Wd}function me(ct){var xn=ct-M,Jn=ct-z;return M===n||xn>=i||xn<0||G&&Jn>=w}function De(){var ct=pa();if(me(ct))return Ne(ct);R=eo(De,Pe(ct))}function Ne(ct){return R=n,Z&&c?re(ct):(c=h=n,x)}function Qt(){R!==n&&If(R),z=0,c=M=h=R=n}function jt(){return R===n?x:Ne(pa())}function en(){var ct=pa(),xn=me(ct);if(c=arguments,h=this,M=ct,xn){if(R===n)return ve(M);if(G)return If(R),R=eo(De,i),re(M)}return R===n&&(R=eo(De,i)),x}return en.cancel=Qt,en.flush=jt,en}var Ob=Ae(function(t,i){return cf(t,1,i)}),Tb=Ae(function(t,i,s){return cf(t,pn(i)||0,s)});function Cb(t){return Kn(t,J)}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],w=s.cache;if(w.has(h))return w.get(h);var x=t.apply(this,c);return s.cache=w.set(h,x)||w,x};return s.cache=new(ha.Cache||zn),s}ha.Cache=zn;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 Rb(t){return gd(2,t)}var Pb=vy(function(t,i){i=i.length==1&&Te(i[0])?et(i[0],Xt(he())):et(St(i,1),Xt(he()));var s=i.length;return Ae(function(c){for(var h=-1,w=Tt(c.length,s);++h<w;)c[h]=i[h].call(this,c[h]);return Vt(t,this,c)})}),hu=Ae(function(t,i){var s=sr(i,gi(hu));return Kn(t,T,n,i,s)}),Sd=Ae(function(t,i){var s=sr(i,gi(Sd));return Kn(t,U,n,i,s)}),Ab=Gn(function(t,i){return Kn(t,j,n,n,n,i)});function Ib(t,i){if(typeof t!="function")throw new un(l);return i=i===n?i:Re(i),Ae(t,i)}function Lb(t,i){if(typeof t!="function")throw new un(l);return i=i==null?0:ht(Re(i),0),Ae(function(s){var c=s[i],h=dr(s,0,i);return c&&ar(h,c),Vt(t,this,h)})}function Mb(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),_d(t,i,{leading:c,maxWait:i,trailing:h})}function Db(t){return md(t,1)}function kb(t,i){return hu(Zs(i),t)}function Nb(){if(!arguments.length)return[];var t=arguments[0];return Te(t)?t:[t]}function $b(t){return cn(t,v)}function jb(t,i){return i=typeof i=="function"?i:n,cn(t,v,i)}function Fb(t){return cn(t,_|v)}function Wb(t,i){return i=typeof i=="function"?i:n,cn(t,_|v,i)}function Ub(t,i){return i==null||lf(t,i,gt(i))}function En(t,i){return t===i||t!==t&&i!==i}var Bb=sa(Ws),Hb=sa(function(t,i){return t>=i}),Wr=vf(function(){return arguments}())?vf:function(t){return ot(t)&&ze.call(t,"callee")&&!ef.call(t,"callee")},Te=W.isArray,zb=kc?Xt(kc):Z0;function Bt(t){return t!=null&&ma(t.length)&&!Vn(t)}function lt(t){return ot(t)&&Bt(t)}function qb(t){return t===!0||t===!1||ot(t)&&Nt(t)==le}var pr=o0||Ou,Kb=Nc?Xt(Nc):Q0;function Gb(t){return ot(t)&&t.nodeType===1&&!to(t)}function Yb(t){if(t==null)return!0;if(Bt(t)&&(Te(t)||typeof t=="string"||typeof t.splice=="function"||pr(t)||yi(t)||Wr(t)))return!t.length;var i=Ct(t);if(i==rt||i==Qe)return!t.size;if(Qi(t))return!Hs(t).length;for(var s in t)if(ze.call(t,s))return!1;return!0}function Vb(t,i){return Xi(t,i)}function Xb(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(!ot(t))return!1;var i=Nt(t);return i==Ge||i==we||typeof t.message=="string"&&typeof t.name=="string"&&!to(t)}function Jb(t){return typeof t=="number"&&nf(t)}function Vn(t){if(!tt(t))return!1;var i=Nt(t);return i==X||i==nt||i==pe||i==Sr}function Ed(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 ot(t){return t!=null&&typeof t=="object"}var xd=$c?Xt($c):ty;function Zb(t,i){return t===i||Bs(t,i,ou(i))}function Qb(t,i,s){return s=typeof s=="function"?s:n,Bs(t,i,ou(i),s)}function ew(t){return Od(t)&&t!=+t}function tw(t){if(jy(t))throw new Ee(u);return mf(t)}function nw(t){return t===null}function rw(t){return t==null}function Od(t){return typeof t=="number"||ot(t)&&Nt(t)==ft}function to(t){if(!ot(t)||Nt(t)!=mt)return!1;var i=Ho(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 mu=jc?Xt(jc):ny;function iw(t){return Ed(t)&&t>=-We&&t<=We}var Td=Fc?Xt(Fc):ry;function ga(t){return typeof t=="string"||!Te(t)&&ot(t)&&Nt(t)==rn}function Zt(t){return typeof t=="symbol"||ot(t)&&Nt(t)==Gt}var yi=Wc?Xt(Wc):iy;function ow(t){return t===n}function aw(t){return ot(t)&&Ct(t)==Ot}function sw(t){return ot(t)&&Nt(t)==rr}var uw=sa(zs),lw=sa(function(t,i){return t<=i});function Cd(t){if(!t)return[];if(Bt(t))return ga(t)?_n(t):Ut(t);if(Bi&&t[Bi])return Ug(t[Bi]());var i=Ct(t),s=i==rt?Is:i==Qe?No:bi;return s(t)}function Xn(t){if(!t)return t===0?t:0;if(t=pn(t),t===xe||t===-xe){var i=t<0?-1:1;return i*st}return t===t?t:0}function Re(t){var i=Xn(t),s=i%1;return i===i?s?i-s:i:0}function Rd(t){return t?Nr(Re(t),0,V):0}function pn(t){if(typeof t=="number")return t;if(Zt(t))return K;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=Kc(t);var s=Ir.test(t);return s||Km.test(t)?xg(t.slice(2),s?2:8):kt.test(t)?K:+t}function Pd(t){return Ln(t,Ht(t))}function cw(t){return t?Nr(Re(t),-We,We):t===0?t:0}function Ue(t){return t==null?"":Jt(t)}var fw=vi(function(t,i){if(Qi(i)||Bt(i)){Ln(i,gt(i),t);return}for(var s in i)ze.call(i,s)&&Gi(t,s,i[s])}),Ad=vi(function(t,i){Ln(i,Ht(i),t)}),ya=vi(function(t,i,s,c){Ln(i,Ht(i),t,c)}),dw=vi(function(t,i,s,c){Ln(i,gt(i),t,c)}),pw=Gn($s);function hw(t,i){var s=hi(t);return i==null?s:uf(s,i)}var vw=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 w=i[s],x=Ht(w),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]=w[z])}return t}),mw=Ae(function(t){return t.push(n,Gf),Vt(Id,n,t)});function gw(t,i){return Bc(t,he(i,3),In)}function yw(t,i){return Bc(t,he(i,3),Fs)}function bw(t,i){return t==null?t:js(t,he(i,3),Ht)}function ww(t,i){return t==null?t:pf(t,he(i,3),Ht)}function _w(t,i){return t&&In(t,he(i,3))}function Sw(t,i){return t&&Fs(t,he(i,3))}function Ew(t){return t==null?[]:Qo(t,gt(t))}function xw(t){return t==null?[]:Qo(t,Ht(t))}function gu(t,i,s){var c=t==null?n:$r(t,i);return c===n?s:c}function Ow(t,i){return t!=null&&Xf(t,i,Y0)}function yu(t,i){return t!=null&&Xf(t,i,V0)}var Tw=Bf(function(t,i,s){i!=null&&typeof i.toString!="function"&&(i=Wo.call(i)),t[i]=s},wu(zt)),Cw=Bf(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),Rw=Ae(Vi);function gt(t){return Bt(t)?af(t):Hs(t)}function Ht(t){return Bt(t)?af(t,!0):oy(t)}function Pw(t,i){var s={};return i=he(i,3),In(t,function(c,h,w){qn(s,i(c,h,w),c)}),s}function Aw(t,i){var s={};return i=he(i,3),In(t,function(c,h,w){qn(s,h,i(c,h,w))}),s}var Iw=vi(function(t,i,s){ea(t,i,s)}),Id=vi(function(t,i,s,c){ea(t,i,s,c)}),Lw=Gn(function(t,i){var s={};if(t==null)return s;var c=!1;i=et(i,function(w){return w=fr(w,t),c||(c=w.length>1),w}),Ln(t,ru(t),s),c&&(s=cn(s,_|O|v,Ty));for(var h=i.length;h--;)Vs(s,i[h]);return s});function Mw(t,i){return Ld(t,va(he(i)))}var Dw=Gn(function(t,i){return t==null?{}:sy(t,i)});function Ld(t,i){if(t==null)return{};var s=et(ru(t),function(c){return[c]});return i=he(i),Ef(t,s,function(c,h){return i(c,h[0])})}function kw(t,i,s){i=fr(i,t);var c=-1,h=i.length;for(h||(h=1,t=n);++c<h;){var w=t==null?n:t[Mn(i[c])];w===n&&(c=h,w=s),t=Vn(w)?w.call(t):w}return t}function Nw(t,i,s){return t==null?t:Ji(t,i,s)}function $w(t,i,s,c){return c=typeof c=="function"?c:n,t==null?t:Ji(t,i,s,c)}var Md=qf(gt),Dd=qf(Ht);function jw(t,i,s){var c=Te(t),h=c||pr(t)||yi(t);if(i=he(i,4),s==null){var w=t&&t.constructor;h?s=c?new w:[]:tt(t)?s=Vn(w)?hi(Ho(t)):{}:s={}}return(h?sn:In)(t,function(x,R,M){return i(s,x,R,M)}),s}function Fw(t,i){return t==null?!0:Vs(t,i)}function Ww(t,i,s){return t==null?t:Rf(t,i,Zs(s))}function Uw(t,i,s,c){return c=typeof c=="function"?c:n,t==null?t:Rf(t,i,Zs(s),c)}function bi(t){return t==null?[]:As(t,gt(t))}function Bw(t){return t==null?[]:As(t,Ht(t))}function Hw(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 zw(t,i,s){return i=Xn(i),s===n?(s=i,i=0):s=Xn(s),t=pn(t),X0(t,i,s)}function qw(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=Xn(t),i===n?(i=t,t=0):i=Xn(i)),t>i){var c=t;t=i,i=c}if(s||t%1||i%1){var h=rf();return Tt(t+h*(i-t+Eg("1e-"+((h+"").length-1))),i)}return Ks(t,i)}var Kw=mi(function(t,i,s){return i=i.toLowerCase(),t+(s?kd(i):i)});function kd(t){return bu(Ue(t).toLowerCase())}function Nd(t){return t=Ue(t),t&&t.replace(Ym,Ng).replace(pg,"")}function Gw(t,i,s){t=Ue(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 Yw(t){return t=Ue(t),t&&Ni.test(t)?t.replace(ir,$g):t}function Vw(t){return t=Ue(t),t&&P.test(t)?t.replace(p,"\\$&"):t}var Xw=mi(function(t,i,s){return t+(s?"-":"")+i.toLowerCase()}),Jw=mi(function(t,i,s){return t+(s?" ":"")+i.toLowerCase()}),Zw=Ff("toLowerCase");function Qw(t,i,s){t=Ue(t),i=Re(i);var c=i?li(t):0;if(!i||c>=i)return t;var h=(i-c)/2;return aa(Go(h),s)+t+aa(Ko(h),s)}function e_(t,i,s){t=Ue(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=Ue(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(Ue(t).replace(F,""),i||0)}function r_(t,i,s){return(s?$t(t,i,s):i===n)?i=1:i=Re(i),Gs(Ue(t),i)}function i_(){var t=arguments,i=Ue(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?V:s>>>0,s?(t=Ue(t),t&&(typeof i=="string"||i!=null&&!mu(i))&&(i=Jt(i),!i&&ui(t))?dr(_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=Ue(t),s=s==null?0:Nr(Re(s),0,t.length),i=Jt(i),t.slice(s,s+i.length)==i}function l_(t,i,s){var c=b.templateSettings;s&&$t(t,i,s)&&(i=n),t=Ue(t),i=ya({},i,c,Kf);var h=ya({},i.imports,c.imports,Kf),w=gt(h),x=As(h,w),R,M,z=0,q=i.interpolate||Io,G="__p += '",Z=Ls((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(Z,function(me,De,Ne,Qt,jt,en){return Ne||(Ne=Qt),G+=t.slice(z,en).replace(Vm,jg),De&&(R=!0,G+=`' +
187
+ __e(`+De+`) +
188
+ '`),jt&&(M=!0,G+=`';
189
+ `+jt+`;
190
+ __p += '`),Ne&&(G+=`' +
191
191
  ((__t = (`+Ne+`)) == null ? '' : __t) +
192
- '`),H=Zt+he.length,he}),K+=`';
193
- `;var pe=He.call(i,"variable")&&i.variable;if(!pe)K=`with (obj) {
194
- `+K+`
192
+ '`),z=en+me.length,me}),G+=`';
193
+ `;var ve=ze.call(i,"variable")&&i.variable;if(!ve)G=`with (obj) {
194
+ `+G+`
195
195
  }
196
- `;else if(je.test(pe))throw new Se(f);K=(L?K.replace(Sr,""):K).replace(Ti,"$1").replace(Er,"$1;"),K="function("+(pe||"obj")+`) {
197
- `+(pe?"":`obj || (obj = {});
198
- `)+"var __t, __p = ''"+(C?", __e = _.escape":"")+(L?`, __j = Array.prototype.join;
196
+ `;else if(je.test(ve))throw new Ee(f);G=(M?G.replace(Cr,""):G).replace(ki,"$1").replace(Rr,"$1;"),G="function("+(ve||"obj")+`) {
197
+ `+(ve?"":`obj || (obj = {});
198
+ `)+"var __t, __p = ''"+(R?", __e = _.escape":"")+(M?`, __j = Array.prototype.join;
199
199
  function print() { __p += __j.call(arguments, '') }
200
200
  `:`;
201
- `)+K+`return __p
202
- }`;var Ce=pd(function(){return Fe(b,re+"return "+K).apply(n,E)});if(Ce.source=K,tu(Ce))throw Ce;return Ce}function kb(t){return We(t).toLowerCase()}function Nb(t){return We(t).toUpperCase()}function $b(t,i,s){if(t=We(t),t&&(s||i===n))return _l(t);if(!t||!(i=Xt(i)))return t;var l=bn(t),p=bn(i),b=Sl(l,p),E=El(l,p)+1;return ur(l,b,E).join("")}function jb(t,i,s){if(t=We(t),t&&(s||i===n))return t.slice(0,Ol(t)+1);if(!t||!(i=Xt(i)))return t;var l=bn(t),p=El(l,bn(i))+1;return ur(l,0,p).join("")}function Fb(t,i,s){if(t=We(t),t&&(s||i===n))return t.replace(N,"");if(!t||!(i=Xt(i)))return t;var l=bn(t),p=Sl(l,bn(i));return ur(l,p).join("")}function Wb(t,i){var s=ne,l=we;if(tt(i)){var p="separator"in i?i.separator:p;s="length"in i?Te(i.length):s,l="omission"in i?Xt(i.omission):l}t=We(t);var b=t.length;if(ei(t)){var E=bn(t);b=E.length}if(s>=b)return t;var C=s-ti(l);if(C<1)return l;var L=E?ur(E,0,C).join(""):t.slice(0,C);if(p===n)return L+l;if(E&&(C+=L.length-C),nu(p)){if(t.slice(C).search(p)){var H,z=L;for(p.global||(p=ys(p.source,We(it.exec(p))+"g")),p.lastIndex=0;H=p.exec(z);)var K=H.index;L=L.slice(0,K===n?C:K)}}else if(t.indexOf(Xt(p),C)!=C){var J=L.lastIndexOf(p);J>-1&&(L=L.slice(0,J))}return L+l}function Ub(t){return t=We(t),t&&xr.test(t)?t.replace(Vr,mg):t}var Bb=ui(function(t,i,s){return t+(s?" ":"")+i.toUpperCase()}),ou=hf("toUpperCase");function dd(t,i,s){return t=We(t),i=s?n:i,i===n?fg(t)?wg(t):ng(t):t.match(i)||[]}var pd=Re(function(t,i){try{return Gt(t,n,i)}catch(s){return tu(s)?s:new Se(s)}}),Hb=zn(function(t,i){return on(i,function(s){s=Ln(s),Bn(t,s,Qs(t[s],t))}),t});function zb(t){var i=t==null?0:t.length,s=de();return t=i?et(t,function(l){if(typeof l[1]!="function")throw new an(c);return[s(l[0]),l[1]]}):[],Re(function(l){for(var p=-1;++p<i;){var b=t[p];if(Gt(b[0],this,l))return Gt(b[1],this,l)}})}function qb(t){return m0(un(t,_))}function au(t){return function(){return t}}function Kb(t,i){return t==null||t!==t?i:t}var Gb=mf(),Yb=mf(!0);function Ut(t){return t}function su(t){return ql(typeof t=="function"?t:un(t,_))}function Xb(t){return Gl(un(t,_))}function Vb(t,i){return Yl(t,un(i,_))}var Jb=Re(function(t,i){return function(s){return Wi(s,t,i)}}),Zb=Re(function(t,i){return function(s){return Wi(t,s,i)}});function uu(t,i,s){var l=mt(i),p=Bo(i,l);s==null&&!(tt(i)&&(p.length||!l.length))&&(s=i,i=t,t=this,p=Bo(i,mt(i)));var b=!(tt(s)&&"chain"in s)||!!s.chain,E=Kn(t);return on(p,function(C){var L=i[C];t[C]=L,E&&(t.prototype[C]=function(){var H=this.__chain__;if(b||H){var z=t(this.__wrapped__),K=z.__actions__=jt(this.__actions__);return K.push({func:L,args:arguments,thisArg:t}),z.__chain__=H,z}return L.apply(t,nr([this.value()],arguments))})}),t}function Qb(){return wt._===this&&(wt._=Og),this}function cu(){}function e_(t){return t=Te(t),Re(function(i){return Xl(i,t)})}var t_=Ws(et),n_=Ws(ml),r_=Ws(fs);function hd(t){return Gs(t)?ds(Ln(t)):M0(t)}function i_(t){return function(i){return t==null?n:Lr(t,i)}}var o_=yf(),a_=yf(!0);function lu(){return[]}function fu(){return!1}function s_(){return{}}function u_(){return""}function c_(){return!0}function l_(t,i){if(t=Te(t),t<1||t>qe)return[];var s=X,l=xt(t,X);i=de(i),t-=X;for(var p=vs(l,i);++s<t;)i(s);return p}function f_(t){return xe(t)?et(t,Ln):Vt(t)?[t]:jt(Df(We(t)))}function d_(t){var i=++Eg;return We(t)+i}var p_=Yo(function(t,i){return t+i},0),h_=Us("ceil"),v_=Yo(function(t,i){return t/i},1),m_=Us("floor");function g_(t){return t&&t.length?Uo(t,Ut,Ts):n}function y_(t,i){return t&&t.length?Uo(t,de(i,2),Ts):n}function w_(t){return wl(t,Ut)}function b_(t,i){return wl(t,de(i,2))}function __(t){return t&&t.length?Uo(t,Ut,As):n}function S_(t,i){return t&&t.length?Uo(t,de(i,2),As):n}var E_=Yo(function(t,i){return t*i},1),x_=Us("round"),O_=Yo(function(t,i){return t-i},0);function T_(t){return t&&t.length?hs(t,Ut):0}function C_(t,i){return t&&t.length?hs(t,de(i,2)):0}return g.after=X1,g.ary=qf,g.assign=Nw,g.assignIn=od,g.assignInWith=sa,g.assignWith=$w,g.at=jw,g.before=Kf,g.bind=Qs,g.bindAll=Hb,g.bindKey=Gf,g.castArray=sw,g.chain=Bf,g.chunk=my,g.compact=gy,g.concat=yy,g.cond=zb,g.conforms=qb,g.constant=au,g.countBy=T1,g.create=Fw,g.curry=Yf,g.curryRight=Xf,g.debounce=Vf,g.defaults=Ww,g.defaultsDeep=Uw,g.defer=V1,g.delay=J1,g.difference=wy,g.differenceBy=by,g.differenceWith=_y,g.drop=Sy,g.dropRight=Ey,g.dropRightWhile=xy,g.dropWhile=Oy,g.fill=Ty,g.filter=R1,g.flatMap=I1,g.flatMapDeep=L1,g.flatMapDepth=M1,g.flatten=jf,g.flattenDeep=Cy,g.flattenDepth=Ry,g.flip=Z1,g.flow=Gb,g.flowRight=Yb,g.fromPairs=Py,g.functions=Yw,g.functionsIn=Xw,g.groupBy=D1,g.initial=Iy,g.intersection=Ly,g.intersectionBy=My,g.intersectionWith=Dy,g.invert=Jw,g.invertBy=Zw,g.invokeMap=N1,g.iteratee=su,g.keyBy=$1,g.keys=mt,g.keysIn=Wt,g.map=ta,g.mapKeys=eb,g.mapValues=tb,g.matches=Xb,g.matchesProperty=Vb,g.memoize=ra,g.merge=nb,g.mergeWith=ad,g.method=Jb,g.methodOf=Zb,g.mixin=uu,g.negate=ia,g.nthArg=e_,g.omit=rb,g.omitBy=ib,g.once=Q1,g.orderBy=j1,g.over=t_,g.overArgs=ew,g.overEvery=n_,g.overSome=r_,g.partial=eu,g.partialRight=Jf,g.partition=F1,g.pick=ob,g.pickBy=sd,g.property=hd,g.propertyOf=i_,g.pull=jy,g.pullAll=Wf,g.pullAllBy=Fy,g.pullAllWith=Wy,g.pullAt=Uy,g.range=o_,g.rangeRight=a_,g.rearg=tw,g.reject=B1,g.remove=By,g.rest=nw,g.reverse=Js,g.sampleSize=z1,g.set=sb,g.setWith=ub,g.shuffle=q1,g.slice=Hy,g.sortBy=Y1,g.sortedUniq=Vy,g.sortedUniqBy=Jy,g.split=Ib,g.spread=rw,g.tail=Zy,g.take=Qy,g.takeRight=e1,g.takeRightWhile=t1,g.takeWhile=n1,g.tap=g1,g.throttle=iw,g.thru=ea,g.toArray=nd,g.toPairs=ud,g.toPairsIn=cd,g.toPath=f_,g.toPlainObject=id,g.transform=cb,g.unary=ow,g.union=r1,g.unionBy=i1,g.unionWith=o1,g.uniq=a1,g.uniqBy=s1,g.uniqWith=u1,g.unset=lb,g.unzip=Zs,g.unzipWith=Uf,g.update=fb,g.updateWith=db,g.values=fi,g.valuesIn=pb,g.without=c1,g.words=dd,g.wrap=aw,g.xor=l1,g.xorBy=f1,g.xorWith=d1,g.zip=p1,g.zipObject=h1,g.zipObjectDeep=v1,g.zipWith=m1,g.entries=ud,g.entriesIn=cd,g.extend=od,g.extendWith=sa,uu(g,g),g.add=p_,g.attempt=pd,g.camelCase=gb,g.capitalize=ld,g.ceil=h_,g.clamp=hb,g.clone=uw,g.cloneDeep=lw,g.cloneDeepWith=fw,g.cloneWith=cw,g.conformsTo=dw,g.deburr=fd,g.defaultTo=Kb,g.divide=v_,g.endsWith=yb,g.eq=Sn,g.escape=wb,g.escapeRegExp=bb,g.every=C1,g.find=P1,g.findIndex=Nf,g.findKey=Bw,g.findLast=A1,g.findLastIndex=$f,g.findLastKey=Hw,g.floor=m_,g.forEach=Hf,g.forEachRight=zf,g.forIn=zw,g.forInRight=qw,g.forOwn=Kw,g.forOwnRight=Gw,g.get=ru,g.gt=pw,g.gte=hw,g.has=Vw,g.hasIn=iu,g.head=Ff,g.identity=Ut,g.includes=k1,g.indexOf=Ay,g.inRange=vb,g.invoke=Qw,g.isArguments=kr,g.isArray=xe,g.isArrayBuffer=vw,g.isArrayLike=Ft,g.isArrayLikeObject=ut,g.isBoolean=mw,g.isBuffer=cr,g.isDate=gw,g.isElement=yw,g.isEmpty=ww,g.isEqual=bw,g.isEqualWith=_w,g.isError=tu,g.isFinite=Sw,g.isFunction=Kn,g.isInteger=Zf,g.isLength=oa,g.isMap=Qf,g.isMatch=Ew,g.isMatchWith=xw,g.isNaN=Ow,g.isNative=Tw,g.isNil=Rw,g.isNull=Cw,g.isNumber=ed,g.isObject=tt,g.isObjectLike=ot,g.isPlainObject=Ki,g.isRegExp=nu,g.isSafeInteger=Pw,g.isSet=td,g.isString=aa,g.isSymbol=Vt,g.isTypedArray=li,g.isUndefined=Aw,g.isWeakMap=Iw,g.isWeakSet=Lw,g.join=ky,g.kebabCase=_b,g.last=ln,g.lastIndexOf=Ny,g.lowerCase=Sb,g.lowerFirst=Eb,g.lt=Mw,g.lte=Dw,g.max=g_,g.maxBy=y_,g.mean=w_,g.meanBy=b_,g.min=__,g.minBy=S_,g.stubArray=lu,g.stubFalse=fu,g.stubObject=s_,g.stubString=u_,g.stubTrue=c_,g.multiply=E_,g.nth=$y,g.noConflict=Qb,g.noop=cu,g.now=na,g.pad=xb,g.padEnd=Ob,g.padStart=Tb,g.parseInt=Cb,g.random=mb,g.reduce=W1,g.reduceRight=U1,g.repeat=Rb,g.replace=Pb,g.result=ab,g.round=x_,g.runInContext=A,g.sample=H1,g.size=K1,g.snakeCase=Ab,g.some=G1,g.sortedIndex=zy,g.sortedIndexBy=qy,g.sortedIndexOf=Ky,g.sortedLastIndex=Gy,g.sortedLastIndexBy=Yy,g.sortedLastIndexOf=Xy,g.startCase=Lb,g.startsWith=Mb,g.subtract=O_,g.sum=T_,g.sumBy=C_,g.template=Db,g.times=l_,g.toFinite=Gn,g.toInteger=Te,g.toLength=rd,g.toLower=kb,g.toNumber=fn,g.toSafeInteger=kw,g.toString=We,g.toUpper=Nb,g.trim=$b,g.trimEnd=jb,g.trimStart=Fb,g.truncate=Wb,g.unescape=Ub,g.uniqueId=d_,g.upperCase=Bb,g.upperFirst=ou,g.each=Hf,g.eachRight=zf,g.first=Ff,uu(g,function(){var t={};return An(g,function(i,s){He.call(g.prototype,s)||(t[s]=i)}),t}(),{chain:!1}),g.VERSION=o,on(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){g[t].placeholder=g}),on(["drop","take"],function(t,i){De.prototype[t]=function(s){s=s===n?1:pt(Te(s),0);var l=this.__filtered__&&!i?new De(this):this.clone();return l.__filtered__?l.__takeCount__=xt(s,l.__takeCount__):l.__views__.push({size:xt(s,X),type:t+(l.__dir__<0?"Right":"")}),l},De.prototype[t+"Right"]=function(s){return this.reverse()[t](s).reverse()}}),on(["filter","map","takeWhile"],function(t,i){var s=i+1,l=s==ue||s==_e;De.prototype[t]=function(p){var b=this.clone();return b.__iteratees__.push({iteratee:de(p,3),type:s}),b.__filtered__=b.__filtered__||l,b}}),on(["head","last"],function(t,i){var s="take"+(i?"Right":"");De.prototype[t]=function(){return this[s](1).value()[0]}}),on(["initial","tail"],function(t,i){var s="drop"+(i?"":"Right");De.prototype[t]=function(){return this.__filtered__?new De(this):this[s](1)}}),De.prototype.compact=function(){return this.filter(Ut)},De.prototype.find=function(t){return this.filter(t).head()},De.prototype.findLast=function(t){return this.reverse().find(t)},De.prototype.invokeMap=Re(function(t,i){return typeof t=="function"?new De(this):this.map(function(s){return Wi(s,t,i)})}),De.prototype.reject=function(t){return this.filter(ia(de(t)))},De.prototype.slice=function(t,i){t=Te(t);var s=this;return s.__filtered__&&(t>0||i<0)?new De(s):(t<0?s=s.takeRight(-t):t&&(s=s.drop(t)),i!==n&&(i=Te(i),s=i<0?s.dropRight(-i):s.take(i-t)),s)},De.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},De.prototype.toArray=function(){return this.take(X)},An(De.prototype,function(t,i){var s=/^(?:filter|find|map|reject)|While$/.test(i),l=/^(?:head|last)$/.test(i),p=g[l?"take"+(i=="last"?"Right":""):i],b=l||/^find/.test(i);p&&(g.prototype[i]=function(){var E=this.__wrapped__,C=l?[1]:arguments,L=E instanceof De,H=C[0],z=L||xe(E),K=function(Le){var Ne=p.apply(g,nr([Le],C));return l&&J?Ne[0]:Ne};z&&s&&typeof H=="function"&&H.length!=1&&(L=z=!1);var J=this.__chain__,re=!!this.__actions__.length,pe=b&&!J,Ce=L&&!re;if(!b&&z){E=Ce?E:new De(this);var he=t.apply(E,C);return he.__actions__.push({func:ea,args:[K],thisArg:n}),new sn(he,J)}return pe&&Ce?t.apply(this,C):(he=this.thru(K),pe?l?he.value()[0]:he.value():he)})}),on(["pop","push","shift","sort","splice","unshift"],function(t){var i=To[t],s=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",l=/^(?:pop|shift)$/.test(t);g.prototype[t]=function(){var p=arguments;if(l&&!this.__chain__){var b=this.value();return i.apply(xe(b)?b:[],p)}return this[s](function(E){return i.apply(xe(E)?E:[],p)})}}),An(De.prototype,function(t,i){var s=g[i];if(s){var l=s.name+"";He.call(oi,l)||(oi[l]=[]),oi[l].push({name:i,func:s})}}),oi[Go(n,D).name]=[{name:"wrapper",func:n}],De.prototype.clone=Ug,De.prototype.reverse=Bg,De.prototype.value=Hg,g.prototype.at=y1,g.prototype.chain=w1,g.prototype.commit=b1,g.prototype.next=_1,g.prototype.plant=E1,g.prototype.reverse=x1,g.prototype.toJSON=g.prototype.valueOf=g.prototype.value=O1,g.prototype.first=g.prototype.head,Mi&&(g.prototype[Mi]=S1),g},ni=bg();Cr?((Cr.exports=ni)._=ni,ss._=ni):wt._=ni}).call(Fr)})(Ua,Ua.exports);var vn=Ua.exports;function YR(e){const[r,n]=q.useState(e),o=q.useMemo(()=>XR(r,n),[]);return{state:r,actions:{...o,set:n}}}function XR(e,r=()=>{}){return Object.keys(e).reduce((o,a)=>({...o,[`set${vn.upperFirst(a)}`]:u=>r(c=>({...c,[a]:u}))}),{})}const VR=(e,r,n={})=>{n={timeout:200,...n};const o=q.useRef(),a=()=>{o.current&&(clearTimeout(o.current),o.current=null)};return q.useCallback((u,...c)=>{a(),r&&u.detail===1&&(o.current=setTimeout(()=>{r(u,...c)},n.timeout)),u.detail%2===0&&e(u,...c)},[r,e,n.timeout])};function Jn(e){return typeof e=="function"}function $v(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 Yu=$v(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
201
+ `)+G+`return __p
202
+ }`;var Pe=jd(function(){return Fe(w,re+"return "+G).apply(n,x)});if(Pe.source=G,vu(Pe))throw Pe;return Pe}function c_(t){return Ue(t).toLowerCase()}function f_(t){return Ue(t).toUpperCase()}function d_(t,i,s){if(t=Ue(t),t&&(s||i===n))return Kc(t);if(!t||!(i=Jt(i)))return t;var c=_n(t),h=_n(i),w=Gc(c,h),x=Yc(c,h)+1;return dr(c,w,x).join("")}function p_(t,i,s){if(t=Ue(t),t&&(s||i===n))return t.slice(0,Xc(t)+1);if(!t||!(i=Jt(i)))return t;var c=_n(t),h=Yc(c,_n(i))+1;return dr(c,0,h).join("")}function h_(t,i,s){if(t=Ue(t),t&&(s||i===n))return t.replace(F,"");if(!t||!(i=Jt(i)))return t;var c=_n(t),h=Gc(c,_n(i));return dr(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?Jt(i.omission):c}t=Ue(t);var w=t.length;if(ui(t)){var x=_n(t);w=x.length}if(s>=w)return t;var R=s-li(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,Ue(it.exec(h))+"g")),h.lastIndex=0;z=h.exec(q);)var G=z.index;M=M.slice(0,G===n?R:G)}}else if(t.indexOf(Jt(h),R)!=R){var Z=M.lastIndexOf(h);Z>-1&&(M=M.slice(0,Z))}return M+c}function m_(t){return t=Ue(t),t&&Pr.test(t)?t.replace(ii,qg):t}var g_=mi(function(t,i,s){return t+(s?" ":"")+i.toUpperCase()}),bu=Ff("toUpperCase");function $d(t,i,s){return t=Ue(t),i=s?n:i,i===n?Wg(t)?Yg(t):Ig(t):t.match(i)||[]}var jd=Ae(function(t,i){try{return Vt(t,n,i)}catch(s){return vu(s)?s:new Ee(s)}}),y_=Gn(function(t,i){return sn(i,function(s){s=Mn(s),qn(t,s,pu(t[s],t))}),t});function b_(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 w=t[h];if(Vt(w[0],this,c))return Vt(w[1],this,c)}})}function w_(t){return q0(cn(t,_))}function wu(t){return function(){return t}}function __(t,i){return t==null||t!==t?i:t}var S_=Uf(),E_=Uf(!0);function zt(t){return t}function _u(t){return gf(typeof t=="function"?t:cn(t,_))}function x_(t){return bf(cn(t,_))}function O_(t,i){return wf(t,cn(i,_))}var T_=Ae(function(t,i){return function(s){return Vi(s,t,i)}}),C_=Ae(function(t,i){return function(s){return Vi(t,s,i)}});function Su(t,i,s){var c=gt(i),h=Qo(i,c);s==null&&!(tt(i)&&(h.length||!c.length))&&(s=i,i=t,t=this,h=Qo(i,gt(i)));var w=!(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(w||z){var q=t(this.__wrapped__),G=q.__actions__=Ut(this.__actions__);return G.push({func:M,args:arguments,thisArg:t}),q.__chain__=z,q}return M.apply(t,ar([this.value()],arguments))})}),t}function R_(){return _t._===this&&(_t._=e0),this}function Eu(){}function P_(t){return t=Re(t),Ae(function(i){return _f(i,t)})}var A_=eu(et),I_=eu(Uc),L_=eu(Os);function Fd(t){return su(t)?Ts(Mn(t)):uy(t)}function M_(t){return function(i){return t==null?n:$r(t,i)}}var D_=Hf(),k_=Hf(!0);function xu(){return[]}function Ou(){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=V,c=Tt(t,V);i=he(i),t-=V;for(var h=Ps(c,i);++s<t;)i(s);return h}function W_(t){return Te(t)?et(t,Mn):Zt(t)?[t]:Ut(od(Ue(t)))}function U_(t){var i=++Zg;return Ue(t)+i}var B_=oa(function(t,i){return t+i},0),H_=tu("ceil"),z_=oa(function(t,i){return t/i},1),q_=tu("floor");function K_(t){return t&&t.length?Zo(t,zt,Ws):n}function G_(t,i){return t&&t.length?Zo(t,he(i,2),Ws):n}function Y_(t){return zc(t,zt)}function V_(t,i){return zc(t,he(i,2))}function X_(t){return t&&t.length?Zo(t,zt,zs):n}function J_(t,i){return t&&t.length?Zo(t,he(i,2),zs):n}var Z_=oa(function(t,i){return t*i},1),Q_=tu("round"),eS=oa(function(t,i){return t-i},0);function tS(t){return t&&t.length?Rs(t,zt):0}function nS(t,i){return t&&t.length?Rs(t,he(i,2)):0}return b.after=xb,b.ary=md,b.assign=fw,b.assignIn=Ad,b.assignInWith=ya,b.assignWith=dw,b.at=pw,b.before=gd,b.bind=pu,b.bindAll=y_,b.bindKey=yd,b.castArray=Nb,b.chain=pd,b.chunk=qy,b.compact=Ky,b.concat=Gy,b.cond=b_,b.conforms=w_,b.constant=wu,b.countBy=tb,b.create=hw,b.curry=bd,b.curryRight=wd,b.debounce=_d,b.defaults=vw,b.defaultsDeep=mw,b.defer=Ob,b.delay=Tb,b.difference=Yy,b.differenceBy=Vy,b.differenceWith=Xy,b.drop=Jy,b.dropRight=Zy,b.dropRightWhile=Qy,b.dropWhile=e1,b.fill=t1,b.filter=rb,b.flatMap=ab,b.flatMapDeep=sb,b.flatMapDepth=ub,b.flatten=ld,b.flattenDeep=n1,b.flattenDepth=r1,b.flip=Cb,b.flow=S_,b.flowRight=E_,b.fromPairs=i1,b.functions=Ew,b.functionsIn=xw,b.groupBy=lb,b.initial=a1,b.intersection=s1,b.intersectionBy=u1,b.intersectionWith=l1,b.invert=Tw,b.invertBy=Cw,b.invokeMap=fb,b.iteratee=_u,b.keyBy=db,b.keys=gt,b.keysIn=Ht,b.map=da,b.mapKeys=Pw,b.mapValues=Aw,b.matches=x_,b.matchesProperty=O_,b.memoize=ha,b.merge=Iw,b.mergeWith=Id,b.method=T_,b.methodOf=C_,b.mixin=Su,b.negate=va,b.nthArg=P_,b.omit=Lw,b.omitBy=Mw,b.once=Rb,b.orderBy=pb,b.over=A_,b.overArgs=Pb,b.overEvery=I_,b.overSome=L_,b.partial=hu,b.partialRight=Sd,b.partition=hb,b.pick=Dw,b.pickBy=Ld,b.property=Fd,b.propertyOf=M_,b.pull=p1,b.pullAll=fd,b.pullAllBy=h1,b.pullAllWith=v1,b.pullAt=m1,b.range=D_,b.rangeRight=k_,b.rearg=Ab,b.reject=gb,b.remove=g1,b.rest=Ib,b.reverse=fu,b.sampleSize=bb,b.set=Nw,b.setWith=$w,b.shuffle=wb,b.slice=y1,b.sortBy=Eb,b.sortedUniq=O1,b.sortedUniqBy=T1,b.split=a_,b.spread=Lb,b.tail=C1,b.take=R1,b.takeRight=P1,b.takeRightWhile=A1,b.takeWhile=I1,b.tap=K1,b.throttle=Mb,b.thru=fa,b.toArray=Cd,b.toPairs=Md,b.toPairsIn=Dd,b.toPath=W_,b.toPlainObject=Pd,b.transform=jw,b.unary=Db,b.union=L1,b.unionBy=M1,b.unionWith=D1,b.uniq=k1,b.uniqBy=N1,b.uniqWith=$1,b.unset=Fw,b.unzip=du,b.unzipWith=dd,b.update=Ww,b.updateWith=Uw,b.values=bi,b.valuesIn=Bw,b.without=j1,b.words=$d,b.wrap=kb,b.xor=F1,b.xorBy=W1,b.xorWith=U1,b.zip=B1,b.zipObject=H1,b.zipObjectDeep=z1,b.zipWith=q1,b.entries=Md,b.entriesIn=Dd,b.extend=Ad,b.extendWith=ya,Su(b,b),b.add=B_,b.attempt=jd,b.camelCase=Kw,b.capitalize=kd,b.ceil=H_,b.clamp=Hw,b.clone=$b,b.cloneDeep=Fb,b.cloneDeepWith=Wb,b.cloneWith=jb,b.conformsTo=Ub,b.deburr=Nd,b.defaultTo=__,b.divide=z_,b.endsWith=Gw,b.eq=En,b.escape=Yw,b.escapeRegExp=Vw,b.every=nb,b.find=ib,b.findIndex=sd,b.findKey=gw,b.findLast=ob,b.findLastIndex=ud,b.findLastKey=yw,b.floor=q_,b.forEach=hd,b.forEachRight=vd,b.forIn=bw,b.forInRight=ww,b.forOwn=_w,b.forOwnRight=Sw,b.get=gu,b.gt=Bb,b.gte=Hb,b.has=Ow,b.hasIn=yu,b.head=cd,b.identity=zt,b.includes=cb,b.indexOf=o1,b.inRange=zw,b.invoke=Rw,b.isArguments=Wr,b.isArray=Te,b.isArrayBuffer=zb,b.isArrayLike=Bt,b.isArrayLikeObject=lt,b.isBoolean=qb,b.isBuffer=pr,b.isDate=Kb,b.isElement=Gb,b.isEmpty=Yb,b.isEqual=Vb,b.isEqualWith=Xb,b.isError=vu,b.isFinite=Jb,b.isFunction=Vn,b.isInteger=Ed,b.isLength=ma,b.isMap=xd,b.isMatch=Zb,b.isMatchWith=Qb,b.isNaN=ew,b.isNative=tw,b.isNil=rw,b.isNull=nw,b.isNumber=Od,b.isObject=tt,b.isObjectLike=ot,b.isPlainObject=to,b.isRegExp=mu,b.isSafeInteger=iw,b.isSet=Td,b.isString=ga,b.isSymbol=Zt,b.isTypedArray=yi,b.isUndefined=ow,b.isWeakMap=aw,b.isWeakSet=sw,b.join=c1,b.kebabCase=Xw,b.last=dn,b.lastIndexOf=f1,b.lowerCase=Jw,b.lowerFirst=Zw,b.lt=uw,b.lte=lw,b.max=K_,b.maxBy=G_,b.mean=Y_,b.meanBy=V_,b.min=X_,b.minBy=J_,b.stubArray=xu,b.stubFalse=Ou,b.stubObject=N_,b.stubString=$_,b.stubTrue=j_,b.multiply=Z_,b.nth=d1,b.noConflict=R_,b.noop=Eu,b.now=pa,b.pad=Qw,b.padEnd=e_,b.padStart=t_,b.parseInt=n_,b.random=qw,b.reduce=vb,b.reduceRight=mb,b.repeat=r_,b.replace=i_,b.result=kw,b.round=Q_,b.runInContext=A,b.sample=yb,b.size=_b,b.snakeCase=o_,b.some=Sb,b.sortedIndex=b1,b.sortedIndexBy=w1,b.sortedIndexOf=_1,b.sortedLastIndex=S1,b.sortedLastIndexBy=E1,b.sortedLastIndexOf=x1,b.startCase=s_,b.startsWith=u_,b.subtract=eS,b.sum=tS,b.sumBy=nS,b.template=l_,b.times=F_,b.toFinite=Xn,b.toInteger=Re,b.toLength=Rd,b.toLower=c_,b.toNumber=pn,b.toSafeInteger=cw,b.toString=Ue,b.toUpper=f_,b.trim=d_,b.trimEnd=p_,b.trimStart=h_,b.truncate=v_,b.unescape=m_,b.uniqueId=U_,b.upperCase=g_,b.upperFirst=bu,b.each=hd,b.eachRight=vd,b.first=cd,Su(b,function(){var t={};return In(b,function(i,s){ze.call(b.prototype,s)||(t[s]=i)}),t}(),{chain:!1}),b.VERSION=o,sn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){b[t].placeholder=b}),sn(["drop","take"],function(t,i){ke.prototype[t]=function(s){s=s===n?1:ht(Re(s),0);var c=this.__filtered__&&!i?new ke(this):this.clone();return c.__filtered__?c.__takeCount__=Tt(s,c.__takeCount__):c.__views__.push({size:Tt(s,V),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==be;ke.prototype[t]=function(h){var w=this.clone();return w.__iteratees__.push({iteratee:he(h,3),type:s}),w.__filtered__=w.__filtered__||c,w}}),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 Vi(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(V)},In(ke.prototype,function(t,i){var s=/^(?:filter|find|map|reject)|While$/.test(i),c=/^(?:head|last)$/.test(i),h=b[c?"take"+(i=="last"?"Right":""):i],w=c||/^find/.test(i);h&&(b.prototype[i]=function(){var x=this.__wrapped__,R=c?[1]:arguments,M=x instanceof ke,z=R[0],q=M||Te(x),G=function(De){var Ne=h.apply(b,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=w&&!Z,Pe=M&&!re;if(!w&&q){x=Pe?x:new ke(this);var me=t.apply(x,R);return me.__actions__.push({func:fa,args:[G],thisArg:n}),new ln(me,Z)}return ve&&Pe?t.apply(this,R):(me=this.thru(G),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);b.prototype[t]=function(){var h=arguments;if(c&&!this.__chain__){var w=this.value();return i.apply(Te(w)?w:[],h)}return this[s](function(x){return i.apply(Te(x)?x:[],h)})}}),In(ke.prototype,function(t,i){var s=b[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,b.prototype.at=G1,b.prototype.chain=Y1,b.prototype.commit=V1,b.prototype.next=X1,b.prototype.plant=Z1,b.prototype.reverse=Q1,b.prototype.toJSON=b.prototype.valueOf=b.prototype.value=eb,b.prototype.first=b.prototype.head,Bi&&(b.prototype[Bi]=J1),b},ci=Vg();Lr?((Lr.exports=ci)._=ci,_s._=ci):_t._=ci}).call(zr)})(es,es.exports);var Dt=es.exports;const Ml={FdSave:AE,FdWarningDanger:Gl,FdInfoCircle:CE,FdInfoBold:yl};var cc=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(cc||{}),Vr=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(Vr||{}),Ti=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(Ti||{});const om={[Vr.PRIMARY]:{icon:"blue-500",button:"primary-dark"},[Vr.DANGER]:{icon:"red-500",button:"primary-dark"},[Vr.WARNING]:{icon:"yellow-400",button:"primary-dark"}},ol=({color:e=Vr.PRIMARY,variant:r="solid",children:n,autoFocus:o,...a})=>{const u=om[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:yt("w-28 rounded p-1.5 text-xs font-medium hover:font-bold focus:outline-none",l),...a,children:n})},fP=({name:e,color:r=Vr.PRIMARY,className:n="w-10 h-10"})=>{const o=Ml[e]||Ml.FdInfoCircle,a=`text-${om[r].icon}`;return $.jsx(o,{className:yt(n,a)})},dP=({id:e,title:r,message:n,icon:o,type:a,color:u,zIndex:l=3e3,views:f,width:d=520,hasOverlay:m=!0,onClose:g,onEdit:_})=>{const O=y=>{g({id:e,reason:y})};k.useEffect(()=>{function y(E){E.key==="Escape"&&O(Ti.CANCELED)}return window.addEventListener("keyup",y),()=>{window.removeEventListener("keyup",y)}},[]);const v=Dt.merge(Dt.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=Dt.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:k.Fragment,children:$.jsx("div",{className:yt("absolute inset-0 flex h-full w-full items-center justify-center overflow-y-auto",{"bg-black bg-opacity-80":m}),style:{zIndex:l},onClick:()=>O(Ti.CANCELED),children:$.jsx(Qa.Child,{as:k.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(fP,{name:o,color:u})}):null,$.jsx(pP,{condition:r,children:$.jsx("h4",{className:"text-lg font-bold leading-6 text-white",children:r})}),$.jsx("p",{className:"text-center text-sm font-medium text-white",children:n}),$.jsx("div",{className:"text-xs text-white",children:Dt.values(f==null?void 0:f.toggles).map(y=>$.jsx("div",{children:$.jsxs("label",{htmlFor:y.key,className:"flex items-center",children:[$.jsx(rm,{size:"xs",value:y.value,onChange:E=>S(y.key,E)}),$.jsx("span",{className:"ml-1",children:y.title})]})},y.key))}),$.jsx(hP,{warnings:v}),$.jsx("div",{className:"flex items-center gap-4 p-1",children:a===cc.CONFIRM?$.jsxs($.Fragment,{children:[$.jsx(ol,{autoFocus:!0,color:u,onClick:()=>O(Ti.CONFIRMED),children:"Confirm"}),$.jsx(ol,{color:u,variant:"outlined",onClick:()=>O(Ti.CANCELED),children:"Cancel"})]}):$.jsx(ol,{autoFocus:!0,onClick:()=>O(),children:"OK"})})]})})})})}),document.querySelector("body"))},pP=e=>e.condition?$.jsx($.Fragment,{children:e.children}):null,hP=e=>e.warnings?$.jsx(Qa,{appear:!0,show:!!e.warnings.length,as:k.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:k.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(Gl,{className:yt({"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 vP(e,r){const n=k.useRef(!1);k.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 am(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 sm(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 mP(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,"-":al?173:189,"=":al?61:187,";":al?59:186,"'":222,"[":219,"]":221,"\\":220},Un={"⇧":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},at={};for(var ka=1;ka<20;ka++)vo["f".concat(ka)]=111+ka;var Xe=[],ch=!1,um="all",lm=[],Po=function(r){return vo[r.toLowerCase()]||Un[r.toLowerCase()]||r.toUpperCase().charCodeAt(0)},gP=function(r){return Object.keys(vo).find(function(n){return vo[n]===r})},yP=function(r){return Object.keys(Un).find(function(n){return Un[n]===r})};function cm(e){um=e||"all"}function mo(){return um||"all"}function bP(){return Xe.slice(0)}function wP(){return Xe.map(function(e){return gP(e)||yP(e)||String.fromCharCode(e)})}function _P(){var e=[];return Object.keys(at).forEach(function(r){at[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 SP(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 EP(e){return typeof e=="string"&&(e=Po(e)),Xe.indexOf(e)!==-1}function xP(e,r){var n,o;e||(e=mo());for(var a in at)if(Object.prototype.hasOwnProperty.call(at,a))for(n=at[a],o=0;o<n.length;)n[o].scope===e?n.splice(o,1):o++;mo()===e&&cm(r||"all")}function OP(e){var r=e.keyCode||e.which||e.charCode,n=Xe.indexOf(r);if(n>=0&&Xe.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&Xe.splice(0,Xe.length),(r===93||r===224)&&(r=91),r in xt){xt[r]=!1;for(var o in Un)Un[o]===r&&(Pn[o]=!1)}}function TP(e){if(typeof e>"u")Object.keys(at).forEach(function(l){return delete at[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=sm(n);f.forEach(function(d){var m=d.split(l),g=m.length,_=m[g-1],O=_==="*"?"*":Po(_);if(at[O]){o||(o=mo());var v=g>1?am(Un,m):[];at[O]=at[O].filter(function(S){var y=a?S.method===a:!0;return!(y&&S.scope===o&&mP(S.mods,v))})}})};function fh(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(Xe),r.method(e,r)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}}function dh(e,r){var n=at["*"],o=e.keyCode||e.which||e.charCode;if(Pn.filter.call(this,e)){if((o===93||o===224)&&(o=91),Xe.indexOf(o)===-1&&o!==229&&Xe.push(o),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(S){var y=Dl[S];e[S]&&Xe.indexOf(y)===-1?Xe.push(y):!e[S]&&Xe.indexOf(y)>-1?Xe.splice(Xe.indexOf(y),1):S==="metaKey"&&e[S]&&Xe.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(Xe=Xe.slice(Xe.indexOf(y))))}),o in xt){xt[o]=!0;for(var a in Un)Un[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")&&(Xe.indexOf(17)===-1&&Xe.push(17),Xe.indexOf(18)===-1&&Xe.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)&&fh(e,n[f],l,r);if(o in at){for(var d=0;d<at[o].length;d++)if((e.type==="keydown"&&at[o][d].keydown||e.type==="keyup"&&at[o][d].keyup)&&at[o][d].key){for(var m=at[o][d],g=m.splitKey,_=m.key.split(g),O=[],v=0;v<_.length;v++)O.push(Po(_[v]));O.sort().join("")===Xe.sort().join("")&&fh(e,m,l,r)}}}}function CP(e){return lm.indexOf(e)>-1}function Pn(e,r,n){Xe=[];var o=sm(e),a=[],u="all",l=document,f=0,d=!1,m=!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&&(m=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=am(Un,e)),e=e[e.length-1],e=e==="*"?"*":Po(e),e in at||(at[e]=[]),at[e].push({keyup:d,keydown:m,scope:u,mods:a,shortcut:o[f],method:n,key:o[f],splitKey:g,element:l});typeof l<"u"&&!CP(l)&&window&&(lm.push(l),sl(l,"keydown",function(O){dh(O,l)},_),ch||(ch=!0,sl(window,"focus",function(){Xe=[]},_)),sl(l,"keyup",function(O){dh(O,l),OP(O)},_))}function RP(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(at).forEach(function(n){var o=at[n].filter(function(a){return a.scope===r&&a.shortcut===e});o.forEach(function(a){a&&a.method&&a.method()})})}var ll={getPressedKeyString:wP,setScope:cm,getScope:mo,deleteScope:xP,getPressedKeyCodes:bP,getAllKeyCodes:_P,isPressed:EP,filter:SP,trigger:RP,unbind:TP,keyMap:vo,modifier:Un,modifierMap:Dl};for(var cl in ll)Object.prototype.hasOwnProperty.call(ll,cl)&&(Pn[cl]=ll[cl]);if(typeof window<"u"){var PP=window.hotkeys;Pn.noConflict=function(e){return e&&window.hotkeys===Pn&&(window.hotkeys=PP),Pn},window.hotkeys=Pn}Pn.filter=()=>!0;function AP(e,r,n,o){n instanceof Array&&(o=n,n=void 0),o=o||[],n=n||{};const{preventDefault:a=!0}=n,u=k.useCallback((f,d)=>{a&&f.preventDefault(),setTimeout(()=>r(f,d))},o),l=()=>{Pn.unbind(e,u)};k.useEffect(()=>(Pn(e,n,u),l),[e,n,u])}const IP=e=>{const r=k.useRef(null);return k.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 LP(e){const r=k.useRef();return k.useEffect(()=>{r.current=e},[e]),r.current}function MP(e){const r=k.useRef(e);return k.useEffect(()=>{r.current=e},[e]),r}function DP(e){const r=k.useRef(null);return k.useEffect(()=>{e&&(typeof e=="function"?e(r.current):e.current=r.current)}),r}const kP={features:{debugger:{enabled:process.env.REACT_APP_DEBUGGER_ENABLED!=="false"},modelEditor:{enabled:process.env.REACT_APP_MODEL_EDITOR_ENABLED!=="false"},roles:{enabled:process.env.REACT_APP_ROLES_ENABLED!=="false"}}};function NP(){const[e,r]=k.useState(kP),n=(a,u)=>{r(l=>({...l,features:{...l.features,[a]:u}}))},o=k.useCallback((...a)=>a.every(u=>{var l;return(l=e.features[u])==null?void 0:l.enabled}),[e.features]);return{setFeature:n,isFeatureEnabled:o}}const fm=k.createContext(""),$P=e=>$.jsx(fm.Provider,{value:e.value,children:e.children}),jP=()=>{const e=k.useContext(fm);if(typeof e!="string")throw new Error("Error while calling useIdentity! Context has incorrect type (expected string)");return e};function FP(e){const[r,n]=k.useState(e),o=k.useMemo(()=>WP(r,n),[]);return{state:r,actions:{...o,set:n}}}function WP(e,r=()=>{}){return Object.keys(e).reduce((o,a)=>({...o,[`set${Dt.upperFirst(a)}`]:u=>r(l=>({...l,[a]:u}))}),{})}const UP=(e,r,n={})=>{n={timeout:200,...n};const o=k.useRef(),a=()=>{o.current&&(clearTimeout(o.current),o.current=null)};return k.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 dm(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=dm(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 vc(e,r){if(e){var n=e.indexOf(r);0<=n&&e.splice(n,1)}}var es=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 c=this._parentage;if(c)if(this._parentage=null,Array.isArray(c))try{for(var f=ic(c),h=f.next();!h.done;h=f.next()){var m=h.value;m.remove(this)}}catch(w){r={error:w}}finally{try{h&&!h.done&&(n=f.return)&&n.call(f)}finally{if(r)throw r.error}}else c.remove(this);var y=this.initialTeardown;if(Jn(y))try{y()}catch(w){u=w instanceof Yu?w.errors:[w]}var _=this._finalizers;if(_){this._finalizers=null;try{for(var O=ic(_),v=O.next();!v.done;v=O.next()){var S=v.value;try{Hp(S)}catch(w){u=u??[],w instanceof Yu?u=ro(ro([],$a(u)),$a(w.errors)):u.push(w)}}}catch(w){o={error:w}}finally{try{v&&!v.done&&(a=O.return)&&a.call(O)}finally{if(o)throw o.error}}}if(u)throw new Yu(u)}},e.prototype.add=function(r){var n;if(r&&r!==this)if(this.closed)Hp(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)&&vc(n,r)},e.prototype.remove=function(r){var n=this._finalizers;n&&vc(n,r),r instanceof e&&r._removeParent(this)},e.EMPTY=function(){var r=new e;return r.closed=!0,r}(),e}(),jv=es.EMPTY;function Fv(e){return e instanceof es||e&&"closed"in e&&Jn(e.remove)&&Jn(e.add)&&Jn(e.unsubscribe)}function Hp(e){Jn(e)?e():e.unsubscribe()}var Wv={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},mc={setTimeout:function(e,r){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];var a=mc.delegate;return a!=null&&a.setTimeout?a.setTimeout.apply(a,ro([e,r],$a(n))):setTimeout.apply(void 0,ro([e,r],$a(n)))},clearTimeout:function(e){var r=mc.delegate;return((r==null?void 0:r.clearTimeout)||clearTimeout)(e)},delegate:void 0};function JR(e){mc.setTimeout(function(){throw e})}function zp(){}function La(e){e()}var Uv=function(e){Ga(r,e);function r(n){var o=e.call(this)||this;return o.isStopped=!1,n?(o.destination=n,Fv(n)&&n.add(o)):o.destination=tP,o}return r.create=function(n,o,a){return new gc(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}(es),ZR=Function.prototype.bind;function Xu(e,r){return ZR.call(e,r)}var QR=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){Oa(o)}},e.prototype.error=function(r){var n=this.partialObserver;if(n.error)try{n.error(r)}catch(o){Oa(o)}else Oa(r)},e.prototype.complete=function(){var r=this.partialObserver;if(r.complete)try{r.complete()}catch(n){Oa(n)}},e}(),gc=function(e){Ga(r,e);function r(n,o,a){var u=e.call(this)||this,c;if(Jn(n)||!n)c={next:n??void 0,error:o??void 0,complete:a??void 0};else{var f;u&&Wv.useDeprecatedNextContext?(f=Object.create(n),f.unsubscribe=function(){return u.unsubscribe()},c={next:n.next&&Xu(n.next,f),error:n.error&&Xu(n.error,f),complete:n.complete&&Xu(n.complete,f)}):c=n}return u.destination=new QR(c),u}return r}(Uv);function Oa(e){JR(e)}function eP(e){throw e}var tP={closed:!0,next:zp,error:eP,complete:zp},nP=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function rP(e){return e}function iP(e){return e.length===0?rP:e.length===1?e[0]:function(n){return e.reduce(function(o,a){return a(o)},n)}}var qp=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=aP(r)?r:new gc(r,n,o);return La(function(){var c=a,f=c.operator,h=c.source;u.add(f?f.call(u,h):h?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=Kp(n),new n(function(a,u){var c=new gc({next:function(f){try{r(f)}catch(h){u(h),c.unsubscribe()}},error:u,complete:a});o.subscribe(c)})},e.prototype._subscribe=function(r){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(r)},e.prototype[nP]=function(){return this},e.prototype.pipe=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return iP(r)(this)},e.prototype.toPromise=function(r){var n=this;return r=Kp(r),new r(function(o,a){var u;n.subscribe(function(c){return u=c},function(c){return a(c)},function(){return o(u)})})},e.create=function(r){return new e(r)},e}();function Kp(e){var r;return(r=e??Wv.Promise)!==null&&r!==void 0?r:Promise}function oP(e){return e&&Jn(e.next)&&Jn(e.error)&&Jn(e.complete)}function aP(e){return e&&e instanceof Uv||oP(e)&&Fv(e)}var sP=$v(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Yr=function(e){Ga(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 Gp(this,this);return o.operator=n,o},r.prototype._throwIfClosed=function(){if(this.closed)throw new sP},r.prototype.next=function(n){var o=this;La(function(){var a,u;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var c=ic(o.currentObservers),f=c.next();!f.done;f=c.next()){var h=f.value;h.next(n)}}catch(m){a={error:m}}finally{try{f&&!f.done&&(u=c.return)&&u.call(c)}finally{if(a)throw a.error}}}})},r.prototype.error=function(n){var o=this;La(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;La(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,c=a.isStopped,f=a.observers;return u||c?jv:(this.currentObservers=null,f.push(n),new es(function(){o.currentObservers=null,vc(f,n)}))},r.prototype._checkFinalizedStatuses=function(n){var o=this,a=o.hasError,u=o.thrownError,c=o.isStopped;a?n.error(u):c&&n.complete()},r.prototype.asObservable=function(){var n=new qp;return n.source=this,n},r.create=function(n,o){return new Gp(n,o)},r}(qp),Gp=function(e){Ga(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:jv},r}(Yr),Bv=(e=>(e.RELOAD="reload",e))(Bv||{}),Hv=(e=>(e.RENAME="rename",e))(Hv||{});const uP=new Yr,cP=new Yr,lP=new Yr;var zv=(e=>(e.SAVE_ALL="save-all",e))(zv||{});const fP=new Yr;var qv=(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))(qv||{});const dP=new Yr;var Kv=(e=>(e.RESEND_BREAKPOINTS="resend-breakpoints",e))(Kv||{});const pP=new Yr;function Gv(e){if(e==="")throw new Error("Please enter a valid name");if(!/^[a-zA-Z]/i.test(e))throw new Error("The name can only start with a letter");if(!/^[\w-]+$/i.test(e))throw new Error("Invalid name");return!0}function hP(e){if(!e)return null;if(typeof e=="string")try{Gv(e)}catch(r){return r.message}}function ts(e){const r=new RegExp(':(?!4D\\.\\w+)[CPK]?\\d+(?=(?:[^"\\\\]*(?:\\\\.|"(?:[^"\\\\]*\\\\.)*[^"\\\\]*"))*[^"]*$)',"gm");return e.replace(r,"")}var Wc=(e=>(e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.WELCOME="welcome",e.SETTINGS="settings",e.ROOT="root",e))(Wc||{});const zr={CLASSES:"Classes",METHODS:"Methods",SHARED:"Shared",WEBFORMS:"WebForms"};var Tn=(e=>(e.FOLDER="folder",e.WEBFORM="webform",e.METHOD="method",e.CLASS="class",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))(Tn||{}),Xr=(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))(Xr||{}),Uc=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))(Uc||{});const Yv="roles.json",Xv="qodlyApp.json",vP="model.4DModel";function Vv(e){const r=e.split("."),n=r.pop(),o=r.join(".").split("/")[0];switch(!0){case n==="4DModel":return Tn.MODEL;case n==="WebForm":return Tn.WEBFORM;case(["4dm","4qs","4qm"].includes(n)&&o===zr.METHODS):return Tn.METHOD;case(["4dm","4qs","4qm"].includes(n)&&o===zr.CLASSES):return Tn.CLASS;case e===Yv:return Tn.ROLES;case e===Xv:return Tn.SETTINGS;default:return Tn.WEBFORM}}function mP(e,r=!1){switch(e){case zr.WEBFORMS:case"webform":return"WebForm";case"Mobile":case"mform":return"MForm";case"class":case"method":case zr.CLASSES:case zr.METHODS:return r?"4qs":"4dm";default:return""}}function gP(e,r=""){const n=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return n?n[1]:r}class Jv{constructor(){md(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 Zv(){const e=new Jv;return async r=>{const n=await e.lock();try{const o=await r();return n(),o}catch(o){console.error(o),n();return}}}const Qv=vn.curry((e,r,n)=>e&&vn.get(n,e)===r),yP=vn.curry((e,r,n)=>vn.get(n,e)!==r),wP=vn.curry((e,r)=>vn.get(r,"id")!==e),bP=vn.curry((e,r)=>vn.get(r,"id")===e),_P=vn.curry((e,r)=>vn.get(r,"path")===e);function SP(e="id",r,n){return n.findIndex(Qv(e,r))!==-1}function EP(e){if(!e)return"";const{id:r,namespace:n}=e;return n?`${n}:${r}`:r}function em(e){return["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}function xP(e){return e.type==="object"}function tm(e){var r;return e.kind==="relatedEntities"||((r=e.type)==null?void 0:r.includes("Selection"))||e.behavior==="relatedEntities"}function nm(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!em(e)}function OP(e){return tm(e)||nm(e)}function TP(e){return e.applyTo==="dataStore"}function CP(e){return e.applyTo==="dataClass"}function RP(e){return e.applyTo==="entity"}function PP(e){return e.applyTo==="entityCollection"}function AP(e){return e.type==="entity"}function IP(e){return e.type==="entitysel"}function rm(e){return e.dataType==="array"}function im(e){return e.dataType==="object"}function om(e){return e.type==="scalar"}function LP(e){return rm(e)||im(e)||om(e)}const MP=e=>e!=null&&e.type==="entity",DP=e=>e.type==="entitysel",kP=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",NP=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",$P=e=>e.type==="scalar"&&e.dataType==="date";function jP(){return new Promise((e,r)=>{window.addEventListener("bundle:ready",n=>n.data?e():r(n.caughtErr))})}var so=(e=>(e.capable="capable",e.incapable="incapable",e.indifferent="indifferent",e))(so||{}),am=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(am||{}),Bc=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(Bc||{});const FP={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function WP(e){var u;let r={};try{const c=((u=e.match(/\/\/%attributes = (.*)/))==null?void 0:u[1])||"";r=JSON.parse(c)}catch{}const{published4DMobile:n,...o}=r;return{...{invisible:!1,shared:!1,executedOnServer:!1,preemptive:so.indifferent,publishedSoap:!1,publishedWsdl:!1,publishedWeb:!1,publishedSql:!1,publishedRest:!!n,publishedRestOptions:n||{table:"",scope:Bc.table}},...o}}function sm(e){const r={};return e.invisible&&(r.invisible=!0),e.shared&&(r.shared=!0),e.executedOnServer&&(r.executedOnServer=!0),e.preemptive&&[so.capable,so.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 UP(e,r,n=!1){const o=vn.isString(r)?r:sm(r);if(!n&&um(e))return e;const a=cm(e);return`//%attributes = ${o}\r
205
- ${a}`}function um(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function cm(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const BP=()=>Nh.uuid().replaceAll("-","").toUpperCase(),ht="/rest/$designer",wo="/rest/$designer-ext",Hc="/$shared";function HP(...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 yc 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 Ke(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 yc(e,n,u)}catch{a=new yc(e,n)}throw a.log(),a}return await n.json()}function zP(e){return Ke(wo,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function qP(e){return Ke(wo,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const lm=()=>{const{host:e,protocol:r}=window.location,n=r==="https:";return{projectOpened:!1,remoteDebuggerMode:Uc.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:`ws${n?"s":""}://${e}/remoteDebugger`,lsp:`ws${n?"s":""}://${e}/LSP`},isRestActive:!0}};async function KP(){const{hostname:e,host:r,protocol:n}=window.location,o=n==="https:";try{const a=await Ke(ht,{method:"POST",body:JSON.stringify({verb:Xr.GET_APP_SETTINGS}),headers:new Headers({"Content-Type":"application/json"})}),u=(()=>{if(a.rendererPath)return a.rendererPath;const c=`http://${e}:${a.webServerHTTPPort}`,f=`https://${e}:${a.webServerHTTPSPort}`;return a.webServerHTTPPort&&a.webServerHTTPSPort?o?f:c:a.webServerHTTPPort?c: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),lm()}}async function fm(e){return await Ke(ht,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function GP(...e){return(await Promise.all(e.map(o=>fm({root:o,verb:Xr.GET_FOLDER})))).map(({children:o})=>o.map(({name:a,date:u,type:c})=>({name:a,type:c,date:u,path:`${c}/${a}`}))).flat()}function YP(e){return Ke(`/rest/$getWebForm/${e}`,{method:"GET"})}function XP(e){return Ke(ht,{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)}).then(r=>({...r,content:[Tn.METHOD,Tn.CLASS].includes(r.type)?ts(r.content):r.content}))}function VP(e){return e.type==="folder"?Ke(wo,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}):Ke(ht,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function JP(e){return e.type==="folder"?(await Ke(wo,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted:(await Ke(ht,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}function ZP(e){return Ke(ht,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function QP(e){return Ke(ht,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function eA(e){return(await Ke(ht,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function tA(...e){return await Ke(ht,{method:"POST",body:JSON.stringify({verb:Xr.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function nA(e){const r=await Ke("/api/login",{method:"POST",body:JSON.stringify({accessKey:e}),headers:new Headers({"Content-Type":"application/json"})});return r.isLogged&&r.success}async function rA(){return await Ke("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function iA({name:e,path:r="",root:n="root",asText:o=!1}){return Ke(ht,{method:"POST",body:JSON.stringify({verb:"getFileContent",root:n,path:r,name:e,asText:o}),headers:new Headers({"Content-Type":"application/json"})})}async function oA(){try{const e=await Ke(`${Hc}/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 aA(){try{const e=await Ke(`${Hc}/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 sA(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const uA=Zv(),cA=async e=>{const r={verb:Xr.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:e};return uA(async()=>(await Ke(ht,{method:"POST",body:JSON.stringify(r),headers:new Headers({"Content-Type":"application/json"})}),e))},dm=async e=>{const r=await Ke(ht,{method:"POST",body:JSON.stringify({...e,verb:Xr.SET_FILE_CONTENT,root:Wc.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),n=Vv(`${e.path||"Sources"}/${e.name}`);return{...r,type:n,size:0}},lA=async e=>await dm({name:"crafted_components.json",path:zr.WEBFORMS,content:e});function fA(e){return Ke(ht,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function dA(e){return Ke(ht,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function pA(e){return Ke(ht,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function hA(e){return Ke(ht,{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)?ts(r.content):r.content})}function vA(e){return Ke(ht,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function mA(e){const r=new RegExp(/^\((.+)(?=\))/gi).exec(e);return r!==null?r[1]:""}function gA(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 yA(e){const r=mA(e).split(/[;,]/g).filter(Boolean).map(a=>{const u=a.split(":")[0].trim(),c=a.split(":")[1].trim();return{name:u,type:c}}),n=gA(e),o=n?{name:n.split(":")[0].trim(),type:n.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:r,result:o}}async function wA(e,r){const o=e.split(".").pop();try{const a=await Ke(ht,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:r,functionName:o}),headers:new Headers({"Content-Type":"application/json"})});a.content=ts(a.content);const{params:u,result:c}=yA(a.parameters);return{...a,params:u,returns:c}}catch(a){return console.error(a),{className:r,functionName:o,filePath:e,content:"",params:[]}}}var pm=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(pm||{});function bA(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||{}),vm=(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))(vm||{}),mm=(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))(mm||{});const _A={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},SA={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}};exports.API_PREFIX=ht;exports.AppLoader=ER;exports.ControlledSwitch=bR;exports.DATASOURCE_THEMES=_A;exports.DatasourcesActions=Hv;exports.DebuggerActions=Kv;exports.DesignerRequestVerb=Xr;exports.Dialog=GS;exports.DialogBody=uh;exports.EActivity=pm;exports.EDITOR=SA;exports.EIDENTIFIERS=vm;exports.ERROR_CODES=mm;exports.EWebFormStyleClassScope=hm;exports.EXT_API_PREFIX=wo;exports.FileFolderType=Tn;exports.FolderRootPath=zr;exports.FolderRootType=Wc;exports.HTTPError=yc;exports.IPreemptive=so;exports.IPublished=am;exports.IPublishedRestScope=Bc;exports.IdentityProvider=KR;exports.Incase=jx;exports.IndentLines=$h;exports.LogoSVG=Av;exports.LspActions=qv;exports.MODEL_TAB_PATH=vP;exports.Mutex=Jv;exports.Overlay=sh;exports.Portal=Vp;exports.PublishOptions=FP;exports.ROLES_TAB_PATH=Yv;exports.RemoteDebuggerMode=Uc;exports.SETTINGS_TAB_PATH=Xv;exports.SHARED_API_PREFIX=Hc;exports.Switcher=jh;exports.TabEventsActions=zv;exports.Tip=NC;exports.TipsProvider=MC;exports.Toast=ix;exports.Tooltip=_R;exports.Tree=$x;exports.TreeIcon=Ih;exports.TreeNode=Ac;exports.WebformActions=Bv;exports._isArrayDatasource=kP;exports._isObjectDatasource=NP;exports.addAttributesToContent=UP;exports.addFolder=ZP;exports.by=Qv;exports.byId=bP;exports.byPath=_P;exports.checkUpdates=zP;exports.createFolder=fA;exports.datasourcesSubject=uP;exports.debuggerSubject=pP;exports.dropFile=JP;exports.dropFolder=eA;exports.exists=SP;exports.extractWebformName=gP;exports.generateUUID=BP;exports.getAppSettings=KP;exports.getCatalog=rA;exports.getDatasourceId=EP;exports.getDefaultAppSettings=lm;exports.getFile=XP;exports.getFileContent=iA;exports.getFileExtentionFromType=mP;exports.getFilesInfo=tA;exports.getFolder=fm;exports.getFolders=GP;exports.getFunctionContent=wA;exports.getMonacoTheme=sA;exports.getNodeInfo=hA;exports.getSharedCSS=aA;exports.getSharedDatasources=oA;exports.getTypeFromExtension=Vv;exports.getWebForm=YP;exports.hasAttributesString=um;exports.http=Ke;exports.installUpdates=qP;exports.isArrayDatasource=rm;exports.isDataClassMethod=CP;exports.isDataStoreMethod=TP;exports.isDateDatasource=$P;exports.isEntity=MP;exports.isEntityDatasource=AP;exports.isEntityMethod=RP;exports.isEntitySelection=DP;exports.isEntitySelectionDatasource=IP;exports.isEntitySelectionMethod=PP;exports.isObjectAttribute=xP;exports.isObjectDatasource=im;exports.isRelatedAttribute=OP;exports.isRelatedEntitiesAttribute=tm;exports.isRelatedEntityAttribute=nm;exports.isScalarDatasource=om;exports.isSimpleAttribute=em;exports.isSimpleDatasource=LP;exports.loadDS=jP;exports.log=bA;exports.login=nA;exports.lspSubject=dP;exports.moveItem=pA;exports.outBy=yP;exports.outById=wP;exports.parseAttributes=WP;exports.queue=Zv;exports.removeAttributesString=cm;exports.removeItem=dA;exports.renameFile=VP;exports.renameFolder=QP;exports.sanitizeContent=ts;exports.saveContent=vA;exports.setCraftedComponents=lA;exports.setFileContent=dm;exports.setSharedSources=cA;exports.stringifyAttributes=sm;exports.tabEventsSubject=fP;exports.toastSubject=lP;exports.transformDates=HP;exports.useDidMountEffect=xR;exports.useDoubleClick=VR;exports.useFeatureFlags=qR;exports.useForwardedRef=HR;exports.useHotkeys=FR;exports.useIdentity=GR;exports.useOutsideClick=WR;exports.usePrevious=UR;exports.useStateObject=YR;exports.useStateRef=BR;exports.useTip=_v;exports.validateName=Gv;exports.validateServerSide=hP;exports.webformSubject=cP;
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 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=Sl(l),d=f.next();!d.done;d=f.next()){var m=d.value;m.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(_),v=O.next();!v.done;v=O.next()){var S=v.value;try{ph(S)}catch(y){u=u??[],y instanceof fl?u=po(po([],Ya(u)),Ya(y.errors)):u.push(y)}}}catch(y){o={error:y}}finally{try{v&&!v.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)ph(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}(),pm=hs.EMPTY;function hm(e){return e instanceof hs||e&&"closed"in e&&tr(e.remove)&&tr(e.add)&&tr(e.unsubscribe)}function ph(e){tr(e)?e():e.unsubscribe()}var vm={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,po([e,r],Ya(n))):setTimeout.apply(void 0,po([e,r],Ya(n)))},clearTimeout:function(e){var r=Nl.delegate;return((r==null?void 0:r.clearTimeout)||clearTimeout)(e)},delegate:void 0};function BP(e){Nl.setTimeout(function(){throw e})}function hh(){}function Ha(e){e()}var mm=function(e){os(r,e);function r(n){var o=e.call(this)||this;return o.isStopped=!1,n?(o.destination=n,hm(n)&&n.add(o)):o.destination=KP,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}(hs),HP=Function.prototype.bind;function dl(e,r){return HP.call(e,r)}var zP=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}(),$l=function(e){os(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&&vm.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 zP(l),u}return r}(mm);function Na(e){BP(e)}function qP(e){throw e}var KP={closed:!0,next:hh,error:qP,complete:hh},GP=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function YP(e){return e}function VP(e){return e.length===0?YP:e.length===1?e[0]:function(n){return e.reduce(function(o,a){return a(o)},n)}}var vh=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=JP(r)?r:new $l(r,n,o);return Ha(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=mh(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[GP]=function(){return this},e.prototype.pipe=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return VP(r)(this)},e.prototype.toPromise=function(r){var n=this;return r=mh(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 mh(e){var r;return(r=e??vm.Promise)!==null&&r!==void 0?r:Promise}function XP(e){return e&&tr(e.next)&&tr(e.error)&&tr(e.complete)}function JP(e){return e&&e instanceof mm||XP(e)&&hm(e)}var ZP=dm(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),ni=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 gh(this,this);return o.operator=n,o},r.prototype._throwIfClosed=function(){if(this.closed)throw new ZP},r.prototype.next=function(n){var o=this;Ha(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(m){a={error:m}}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;Ha(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;Ha(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?pm:(this.currentObservers=null,f.push(n),new hs(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 vh;return n.source=this,n},r.create=function(n,o){return new gh(n,o)},r}(vh),gh=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:pm},r}(ni),gm=(e=>(e.RELOAD="reload",e))(gm||{}),ym=(e=>(e.RENAME="rename",e))(ym||{});const QP=new ni,eA=new ni,tA=new ni;var bm=(e=>(e.SAVE_ALL="save-all",e))(bm||{});const nA=new ni;var wm=(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))(wm||{});const rA=new ni;var _m=(e=>(e.RESEND_BREAKPOINTS="resend-breakpoints",e))(_m||{});const iA=new ni;function Sm(e){if(e==="")throw new Error("Please enter a valid name");if(!/^[a-zA-Z]/i.test(e))throw new Error("The name can only start with a letter");if(!/^[\w-]+$/i.test(e))throw new Error("Invalid name");return!0}function oA(e){if(!e)return null;if(typeof e=="string")try{Sm(e)}catch(r){return r.message}}function vs(e){const r=new RegExp(':(?!4D\\.\\w+)[CPK]?\\d+(?=(?:[^"\\\\]*(?:\\\\.|"(?:[^"\\\\]*\\\\.)*[^"\\\\]*"))*[^"]*$)',"gm");return e.replace(r,"")}var fc=(e=>(e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.WELCOME="welcome",e.SETTINGS="settings",e.ROOT="root",e))(fc||{});const Xr={CLASSES:"Classes",METHODS:"Methods",SHARED:"Shared",WEBFORMS:"WebForms"};var Cn=(e=>(e.FOLDER="folder",e.WEBFORM="webform",e.METHOD="method",e.CLASS="class",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))(Cn||{}),ri=(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))(ri||{}),dc=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))(dc||{});const Em="roles.json",xm="qodlyApp.json",aA="model.4DModel";function Om(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===Xr.METHODS):return Cn.METHOD;case(["4dm","4qs","4qm"].includes(n)&&o===Xr.CLASSES):return Cn.CLASS;case e===Em:return Cn.ROLES;case e===xm:return Cn.SETTINGS;default:return Cn.WEBFORM}}function sA(e,r=!1){switch(e){case Xr.WEBFORMS:case"webform":return"WebForm";case"Mobile":case"mform":return"MForm";case"class":case"method":case Xr.CLASSES:case Xr.METHODS:return r?"4qs":"4dm";default:return""}}function uA(e,r=""){const n=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return n?n[1]:r}class Tm{constructor(){Ud(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 Cm(){const e=new Tm;return async r=>{const n=await e.lock();try{const o=await r();return n(),o}catch(o){console.error(o),n();return}}}const Rm=Dt.curry((e,r,n)=>e&&Dt.get(n,e)===r),lA=Dt.curry((e,r,n)=>Dt.get(n,e)!==r),cA=Dt.curry((e,r)=>Dt.get(r,"id")!==e),fA=Dt.curry((e,r)=>Dt.get(r,"id")===e),dA=Dt.curry((e,r)=>Dt.get(r,"path")===e);function pA(e="id",r,n){return n.findIndex(Rm(e,r))!==-1}function hA(e){if(!e)return"";const{id:r,namespace:n}=e;return n?`${n}:${r}`:r}function Pm(e){return["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}function vA(e){return e.type==="object"}function Am(e){var r;return e.kind==="relatedEntities"||((r=e.type)==null?void 0:r.includes("Selection"))||e.behavior==="relatedEntities"}function Im(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!Pm(e)}function mA(e){return Am(e)||Im(e)}function gA(e){return e.applyTo==="dataStore"}function yA(e){return e.applyTo==="dataClass"}function bA(e){return e.applyTo==="entity"}function wA(e){return e.applyTo==="entityCollection"}function _A(e){return e.type==="entity"}function SA(e){return e.type==="entitysel"}function Lm(e){return e.dataType==="array"}function Mm(e){return e.dataType==="object"}function Dm(e){return e.type==="scalar"}function EA(e){return Lm(e)||Mm(e)||Dm(e)}const xA=e=>e!=null&&e.type==="entity",OA=e=>e.type==="entitysel",TA=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",CA=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",RA=e=>e.type==="scalar"&&e.dataType==="date";function PA(){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||{}),km=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(km||{}),pc=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(pc||{});const AA={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function IA(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:pc.table}},...o}}function Nm(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 LA(e,r,n=!1){const o=Dt.isString(r)?r:Nm(r);if(!n&&$m(e))return e;const a=jm(e);return`//%attributes = ${o}\r
205
+ ${a}`}function $m(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function jm(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const MA=()=>av.uuid().replaceAll("-","").toUpperCase(),vt="/rest/$designer",Ao="/rest/$designer-ext",hc="/$shared";function DA(...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 Ke(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 kA(e){return Ke(Ao,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function NA(e){return Ke(Ao,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const Fm=()=>{const{host:e,protocol:r}=window.location,n=r==="https:";return{projectOpened:!1,remoteDebuggerMode:dc.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:`ws${n?"s":""}://${e}/remoteDebugger`,lsp:`ws${n?"s":""}://${e}/LSP`},isRestActive:!0}};async function $A(){const{hostname:e,host:r,protocol:n}=window.location,o=n==="https:";try{const a=await Ke(vt,{method:"POST",body:JSON.stringify({verb:ri.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),Fm()}}async function Wm(e){return await Ke(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function jA(...e){return(await Promise.all(e.map(o=>Wm({root:o,verb:ri.GET_FOLDER})))).map(({children:o})=>o.map(({name:a,date:u,type:l})=>({name:a,type:l,date:u,path:`${l}/${a}`}))).flat()}function FA(e){return Ke(`/rest/$getWebForm/${e}`,{method:"GET"})}function WA(e){return Ke(vt,{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"?Ke(Ao,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}):Ke(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function BA(e){return e.type==="folder"?(await Ke(Ao,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted:(await Ke(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}function HA(e){return Ke(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function zA(e){return Ke(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function qA(e){return(await Ke(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function KA(...e){return await Ke(vt,{method:"POST",body:JSON.stringify({verb:ri.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function GA(e){const r=await Ke("/api/login",{method:"POST",body:JSON.stringify({accessKey:e}),headers:new Headers({"Content-Type":"application/json"})});return r.isLogged&&r.success}async function YA(){return await Ke("/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 Ke(vt,{method:"POST",body:JSON.stringify({verb:"getFileContent",root:n,path:r,name:e,asText:o}),headers:new Headers({"Content-Type":"application/json"})})}async function XA(){try{const e=await Ke(`${hc}/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 JA(){try{const e=await Ke(`${hc}/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 ZA(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const QA=Cm(),e2=async e=>{const r={verb:ri.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:e};return QA(async()=>(await Ke(vt,{method:"POST",body:JSON.stringify(r),headers:new Headers({"Content-Type":"application/json"})}),e))},Um=async e=>{const r=await Ke(vt,{method:"POST",body:JSON.stringify({...e,verb:ri.SET_FILE_CONTENT,root:fc.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),n=Om(`${e.path||"Sources"}/${e.name}`);return{...r,type:n,size:0}},t2=async e=>await Um({name:"crafted_components.json",path:Xr.WEBFORMS,content:e});function n2(e){return Ke(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function r2(e){return Ke(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function i2(e){return Ke(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function o2(e){return Ke(vt,{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})}function a2(e){return Ke(vt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function s2(e){const r=new RegExp(/^\((.+)(?=\))/gi).exec(e);return r!==null?r[1]:""}function u2(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 l2(e){const r=s2(e).split(/[;,]/g).filter(Boolean).map(a=>{const u=a.split(":")[0].trim(),l=a.split(":")[1].trim();return{name:u,type:l}}),n=u2(e),o=n?{name:n.split(":")[0].trim(),type:n.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:r,result:o}}async function c2(e,r){const o=e.split(".").pop();try{const a=await Ke(vt,{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}=l2(a.parameters);return{...a,params:u,returns:l}}catch(a){return console.error(a),{className:r,functionName:o,filePath:e,content:"",params:[]}}}var Bm=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(Bm||{});function f2(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||{}),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 d2={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},p2={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}};exports.API_PREFIX=vt;exports.AppLoader=cP;exports.ControlledSwitch=rm;exports.DATASOURCE_THEMES=d2;exports.DatasourcesActions=ym;exports.DebuggerActions=_m;exports.DesignerRequestVerb=ri;exports.Dialog=SE;exports.DialogBody=Lh;exports.EActivity=Bm;exports.EDITOR=p2;exports.EIDENTIFIERS=zm;exports.ERROR_CODES=qm;exports.EWebFormStyleClassScope=Hm;exports.EXT_API_PREFIX=Ao;exports.FileFolderType=Cn;exports.FolderRootPath=Xr;exports.FolderRootType=fc;exports.HTTPError=jl;exports.IPreemptive=go;exports.IPublished=km;exports.IPublishedRestScope=pc;exports.IdentityProvider=$P;exports.Incase=hO;exports.IndentLines=sv;exports.LogoSVG=im;exports.LspActions=wm;exports.MODEL_TAB_PATH=aA;exports.Modal=dP;exports.ModalCloseReason=Ti;exports.ModalColor=Vr;exports.ModalIcons=Ml;exports.ModalType=cc;exports.Mutex=Tm;exports.Overlay=Ih;exports.Portal=wh;exports.PublishOptions=AA;exports.ROLES_TAB_PATH=Em;exports.RemoteDebuggerMode=dc;exports.SETTINGS_TAB_PATH=xm;exports.SHARED_API_PREFIX=hc;exports.Switcher=uv;exports.TabEventsActions=bm;exports.Tip=dR;exports.TipsProvider=lR;exports.Toast=Dx;exports.Tooltip=uP;exports.Tree=pO;exports.TreeIcon=tv;exports.TreeNode=Jl;exports.WebformActions=gm;exports._isArrayDatasource=TA;exports._isObjectDatasource=CA;exports.addAttributesToContent=LA;exports.addFolder=HA;exports.by=Rm;exports.byId=fA;exports.byPath=dA;exports.checkUpdates=kA;exports.createFolder=n2;exports.datasourcesSubject=QP;exports.debuggerSubject=iA;exports.dropFile=BA;exports.dropFolder=qA;exports.exists=pA;exports.extractWebformName=uA;exports.generateUUID=MA;exports.getAppSettings=$A;exports.getCatalog=YA;exports.getDatasourceId=hA;exports.getDefaultAppSettings=Fm;exports.getFile=WA;exports.getFileContent=VA;exports.getFileExtentionFromType=sA;exports.getFilesInfo=KA;exports.getFolder=Wm;exports.getFolders=jA;exports.getFunctionContent=c2;exports.getMonacoTheme=ZA;exports.getNodeInfo=o2;exports.getSharedCSS=JA;exports.getSharedDatasources=XA;exports.getTypeFromExtension=Om;exports.getWebForm=FA;exports.hasAttributesString=$m;exports.http=Ke;exports.installUpdates=NA;exports.isArrayDatasource=Lm;exports.isDataClassMethod=yA;exports.isDataStoreMethod=gA;exports.isDateDatasource=RA;exports.isEntity=xA;exports.isEntityDatasource=_A;exports.isEntityMethod=bA;exports.isEntitySelection=OA;exports.isEntitySelectionDatasource=SA;exports.isEntitySelectionMethod=wA;exports.isObjectAttribute=vA;exports.isObjectDatasource=Mm;exports.isRelatedAttribute=mA;exports.isRelatedEntitiesAttribute=Am;exports.isRelatedEntityAttribute=Im;exports.isScalarDatasource=Dm;exports.isSimpleAttribute=Pm;exports.isSimpleDatasource=EA;exports.loadDS=PA;exports.log=f2;exports.login=GA;exports.lspSubject=rA;exports.moveItem=i2;exports.outBy=lA;exports.outById=cA;exports.parseAttributes=IA;exports.queue=Cm;exports.removeAttributesString=jm;exports.removeItem=r2;exports.renameFile=UA;exports.renameFolder=zA;exports.sanitizeContent=vs;exports.saveContent=a2;exports.setCraftedComponents=t2;exports.setFileContent=Um;exports.setSharedSources=e2;exports.stringifyAttributes=Nm;exports.tabEventsSubject=nA;exports.toastSubject=tA;exports.transformDates=DA;exports.useDidMountEffect=vP;exports.useDoubleClick=UP;exports.useFeatureFlags=NP;exports.useForwardedRef=DP;exports.useHotkeys=AP;exports.useIdentity=jP;exports.useOutsideClick=IP;exports.usePrevious=LP;exports.useStateObject=FP;exports.useStateRef=MP;exports.useTip=qv;exports.validateName=Sm;exports.validateServerSide=oA;exports.webformSubject=eA;
206
206
  //# sourceMappingURL=index.cjs.js.map